Add the checkbox input widget (#204)

* Add the checkbox input widget

* Add OptionalInput widget
This commit is contained in:
Keavon Chambers
2021-07-08 14:10:30 -07:00
parent 8666ff4390
commit 29a2b46684
16 changed files with 274 additions and 39 deletions
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<polygon points="5.19,11.83 0.18,7.44 1.82,5.56 4.81,8.17 10,1.25 12,2.75" />
</svg>

After

Width:  |  Height:  |  Size: 147 B

+10
View File
@@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<rect width="1" height="12" x="4" y="0" />
<rect width="1" height="12" x="1" y="0" />
<rect width="1" height="12" x="7" y="0" />
<rect width="1" height="12" x="10" y="0" />
<rect width="12" height="1" x="0" y="4" />
<rect width="12" height="1" x="0" y="1" />
<rect width="12" height="1" x="0" y="7" />
<rect width="12" height="1" x="0" y="10" />
</svg>

After

Width:  |  Height:  |  Size: 422 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<path d="M4.68,9.32L4,10c-0.53,0.53-1.47,0.53-2,0C1.73,9.73,1.59,9.38,1.59,9S1.73,8.27,2,8l2.5-2.5c0.27-0.27,0.62-0.41,1-0.41s0.73,0.15,1,0.41l1-1c-1.07-1.07-2.93-1.07-4,0L1,7C0.47,7.53,0.17,8.24,0.17,9S0.47,10.47,1,11s1.24,0.83,2,0.83S4.47,11.53,5,11l1.27-1.27C5.71,9.7,5.17,9.56,4.68,9.32z" />
<path d="M11,1C9.93-0.07,8.07-0.07,7,1L5.7,2.3c0.56,0.03,1.11,0.16,1.61,0.39L8,2c0.27-0.27,0.62-0.41,1-0.41S9.73,1.73,10,2s0.41,0.62,0.41,1S10.27,3.73,10,4L7.5,6.5c-0.53,0.53-1.47,0.53-2,0l-1,1c0.53,0.53,1.24,0.83,2,0.83s1.47-0.29,2-0.83L11,5c0.53-0.53,0.83-1.24,0.83-2S11.53,1.53,11,1z" />
</svg>

After

Width:  |  Height:  |  Size: 657 B

+10
View File
@@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<rect width="3" height="3" />
<rect width="3" height="3" y="9" />
<rect width="1" height="4" y="4" />
<rect width="4" height="1" x="4" y="11" />
<rect width="1" height="4" x="11" y="4" />
<rect width="3" height="3" x="9" />
<rect width="3" height="3" x="9" y="9" />
<rect width="4" height="1" x="4" />
</svg>

After

Width:  |  Height:  |  Size: 378 B

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<path d="M7.5,7.5L6,9C5.17,9.83,3.83,9.83,3,9S2.17,6.83,3,6l1.5-1.5L3,3L1.5,4.5c-1.66,1.66-1.66,4.34,0,6s4.34,1.66,6,0L9,9L7.5,7.5z" />
<polygon points="4,2 5.5,0.5 7,2 5.5,3.5" />
<polygon points="8.5,6.5 10,5 11.5,6.5 10,8" />
<polygon points="12,0 8.29,1.21 9.29,3.21 7,4 7,5 10.71,3.79 9.71,1.79 12,1" />
</svg>

After

Width:  |  Height:  |  Size: 381 B

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<rect x="15" width="1" height="16" />
<rect x="6" y="9" width="7" height="5" />
<rect y="2" width="13" height="5" />
<rect x="6" y="2" width="7" height="5" />
<rect y="9" width="13" height="5" />
</svg>

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<rect y="15" width="16" height="1" />
<rect x="2" y="6" width="5" height="7" />
<rect x="9" width="5" height="13" />
<rect x="9" y="6" width="5" height="7" />
<rect x="2" width="5" height="13" />
</svg>

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B