@solexllc/usx-react 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.cjs +3231 -3270
- package/dist/index.js +3232 -3271
- package/package.json +4 -4
- package/src/components/accordion/Accordion.tsx +4 -1
- package/src/components/accordion/accordion.django.html +1 -1
- package/src/components/accordion/config.json +1 -0
- package/src/components/banner/Banner.tsx +3 -1
- package/src/components/banner/banner.django.html +1 -1
- package/src/components/banner/config.json +1 -0
- package/src/components/carousel/carousel.django-snapshot.html +0 -40
- package/src/components/carousel/carousel.react-snapshot.html +0 -38
- package/src/components/character-count/CharacterCount.tsx +3 -0
- package/src/components/character-count/character-count.django-snapshot.html +43 -0
- package/src/components/character-count/character-count.django.html +2 -2
- package/src/components/character-count/character-count.react-snapshot.html +37 -0
- package/src/components/character-count/config.json +9 -0
- package/src/components/checkbox/Checkbox.tsx +17 -13
- package/src/components/checkbox/checkbox.django-snapshot.html +18 -0
- package/src/components/checkbox/checkbox.django.html +6 -4
- package/src/components/checkbox/checkbox.react-snapshot.html +14 -0
- package/src/components/checkbox/config.json +10 -1
- package/src/components/checkbox-group/checkbox-group.django-snapshot.html +54 -0
- package/src/components/checkbox-group/checkbox-group.react-snapshot.html +45 -0
- package/src/components/combobox/Combobox.tsx +6 -1
- package/src/components/combobox/combobox.django-snapshot.html +141 -0
- package/src/components/combobox/combobox.django.html +2 -2
- package/src/components/combobox/combobox.react-snapshot.html +76 -0
- package/src/components/combobox/config.json +9 -0
- package/src/components/data-table/DataTable.tsx +180 -0
- package/src/components/data-table/README.md +42 -0
- package/src/components/data-table/TableBody.tsx +123 -0
- package/src/components/{table → data-table}/TableCell.tsx +6 -3
- package/src/components/data-table/TableContext.tsx +49 -0
- package/src/components/{table → data-table}/TableFoot.tsx +8 -7
- package/src/components/data-table/TableGroup.tsx +62 -0
- package/src/components/data-table/TableHead.tsx +126 -0
- package/src/components/data-table/TableRow.tsx +24 -0
- package/src/components/data-table/cells.ts +49 -0
- package/src/components/data-table/columns.ts +15 -0
- package/src/components/data-table/config.json +379 -0
- package/src/components/data-table/data-table.django-snapshot.html +13560 -0
- package/src/components/data-table/data-table.django.html +13 -0
- package/src/components/data-table/data-table.html +34 -0
- package/src/components/data-table/data-table.react-snapshot.html +12033 -0
- package/src/components/{table → data-table}/table-body.django.html +12 -12
- package/src/components/{table → data-table}/table-foot.django.html +6 -6
- package/src/components/data-table/table-group.django.html +24 -0
- package/src/components/data-table/table-head.django.html +21 -0
- package/src/components/data-table/table-row.django.html +57 -0
- package/src/components/{table → data-table}/types.ts +48 -5
- package/src/components/date-picker/DatePicker.tsx +6 -1
- package/src/components/date-picker/config.json +9 -0
- package/src/components/date-picker/date-picker.django-snapshot.html +23 -0
- package/src/components/date-picker/date-picker.django.html +4 -4
- package/src/components/date-picker/date-picker.react-snapshot.html +19 -0
- package/src/components/date-range-picker/DateRangePicker.tsx +11 -2
- package/src/components/date-range-picker/config.json +14 -0
- package/src/components/date-range-picker/date-range-picker.django-snapshot.html +47 -0
- package/src/components/date-range-picker/date-range-picker.django.html +5 -5
- package/src/components/date-range-picker/date-range-picker.react-snapshot.html +38 -0
- package/src/components/drawer/Drawer.tsx +3 -1
- package/src/components/drawer/config.json +4 -0
- package/src/components/drawer/drawer.django.html +1 -1
- package/src/components/file-input/FileInput.tsx +7 -2
- package/src/components/file-input/_contents.django.html +2 -1
- package/src/components/file-input/config.json +4 -0
- package/src/components/header/Header.tsx +15 -9
- package/src/components/header/config.json +1 -0
- package/src/components/header/header.django-snapshot.html +24 -0
- package/src/components/header/header.django.html +8 -4
- package/src/components/header/header.html +20 -0
- package/src/components/header/header.react-snapshot.html +20 -0
- package/src/components/in-page-nav/InPageNav.tsx +3 -0
- package/src/components/in-page-nav/config.json +1 -0
- package/src/components/in-page-nav/in-page-nav.django.html +1 -1
- package/src/components/input/Input.tsx +3 -0
- package/src/components/input/config.json +10 -0
- package/src/components/input/input.django-snapshot.html +24 -0
- package/src/components/input/input.django.html +4 -4
- package/src/components/input/input.react-snapshot.html +22 -0
- package/src/components/language-selector/LanguageSelector.tsx +10 -5
- package/src/components/language-selector/config.json +1 -0
- package/src/components/language-selector/language-selector.django.html +2 -2
- package/src/components/layout/Layout.tsx +3 -1
- package/src/components/layout/config.json +4 -0
- package/src/components/layout/layout.django.html +1 -1
- package/src/components/memorable-date/MemorableDate.tsx +18 -3
- package/src/components/memorable-date/config.json +15 -0
- package/src/components/memorable-date/memorable-date.django-snapshot.html +82 -0
- package/src/components/memorable-date/memorable-date.django.html +14 -14
- package/src/components/memorable-date/memorable-date.react-snapshot.html +70 -0
- package/src/components/modal/Modal.tsx +3 -0
- package/src/components/modal/config.json +1 -0
- package/src/components/modal/modal.django.html +1 -1
- package/src/components/pagination/Pagination.tsx +7 -1
- package/src/components/pagination/config.json +8 -0
- package/src/components/pagination/navigation/PaginationNavigation.tsx +10 -0
- package/src/components/pagination/step-options/PaginationStepOptions.tsx +3 -0
- package/src/components/popover/Popover.tsx +3 -0
- package/src/components/popover/config.json +4 -0
- package/src/components/popover/popover.django-snapshot.html +30 -0
- package/src/components/popover/popover.django.html +1 -0
- package/src/components/radio-buttons/RadioButtons.tsx +41 -27
- package/src/components/radio-buttons/config.json +19 -1
- package/src/components/radio-buttons/radio-buttons.django-snapshot.html +93 -60
- package/src/components/radio-buttons/radio-buttons.django.html +16 -28
- package/src/components/radio-buttons/radio-buttons.react-snapshot.html +53 -0
- package/src/components/range-slider/RangeSlider.tsx +4 -2
- package/src/components/range-slider/config.json +1 -0
- package/src/components/range-slider/range-slider.django-snapshot.html +17 -0
- package/src/components/range-slider/range-slider.django.html +4 -4
- package/src/components/range-slider/range-slider.react-snapshot.html +16 -0
- package/src/components/search/Search.tsx +6 -1
- package/src/components/search/config.json +5 -0
- package/src/components/search/search.django-snapshot.html +683 -563
- package/src/components/search/search.django.html +1 -1
- package/src/components/search/search.react-snapshot.html +25 -0
- package/src/components/select/Select.tsx +3 -1
- package/src/components/select/config.json +5 -0
- package/src/components/select/select.django-snapshot.html +15 -0
- package/src/components/select/select.django.html +2 -2
- package/src/components/select/select.react-snapshot.html +11 -0
- package/src/components/switch/Switch.tsx +13 -70
- package/src/components/switch/config.json +60 -23
- package/src/components/switch/switch.django-snapshot.html +507 -56
- package/src/components/switch/switch.django.html +23 -26
- package/src/components/switch/switch.html +425 -33
- package/src/components/switch/switch.react-snapshot.html +447 -58
- package/src/components/table/Table.tsx +66 -334
- package/src/components/table/config.json +22 -339
- package/src/components/table/table.django-snapshot.html +712 -1482
- package/src/components/table/table.django.html +14 -59
- package/src/components/table/table.html +7 -2364
- package/src/components/table/table.react-snapshot.html +711 -2085
- package/src/components/text-area/TextArea.tsx +3 -1
- package/src/components/text-area/config.json +5 -0
- package/src/components/text-area/text-area.django-snapshot.html +18 -0
- package/src/components/text-area/text-area.django.html +4 -4
- package/src/components/text-area/text-area.react-snapshot.html +16 -0
- package/src/components/theme-picker/ThemePicker.tsx +3 -1
- package/src/components/theme-picker/config.json +14 -1
- package/src/components/theme-picker/theme-picker.django-snapshot.html +64 -0
- package/src/components/theme-picker/theme-picker.django.html +2 -2
- package/src/components/theme-picker/theme-picker.react-snapshot.html +52 -0
- package/src/components/time-picker/TimePicker.tsx +6 -1
- package/src/components/time-picker/config.json +9 -0
- package/src/components/time-picker/time-picker.django-snapshot.html +26 -0
- package/src/components/time-picker/time-picker.django.html +4 -4
- package/src/components/time-picker/time-picker.react-snapshot.html +22 -0
- package/src/index.js +1 -0
- package/src/components/table/TableBody.tsx +0 -256
- package/src/components/table/TableContext.tsx +0 -87
- package/src/components/table/TableGroup.tsx +0 -69
- package/src/components/table/TableHead.tsx +0 -139
- package/src/components/table/TableRow.tsx +0 -56
- package/src/components/table/hooks/useRowDetails.ts +0 -34
- package/src/components/table/hooks/useTableGroups.ts +0 -61
- package/src/components/table/hooks/useTableSelect.ts +0 -82
- package/src/components/table/hooks/useTableSort.ts +0 -60
- package/src/components/table/table-group.django.html +0 -40
- package/src/components/table/table-head.django.html +0 -85
- package/src/components/table/table-row.django.html +0 -98
- package/src/components/table/table_helper.py +0 -298
- /package/src/components/{table → data-table}/table-detail-row.django.html +0 -0
|
@@ -1,73 +1,462 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
-
<
|
|
2
|
+
<div class="usa-form-group usx-form-group">
|
|
3
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
4
|
+
<input
|
|
5
|
+
class="usa-checkbox__input"
|
|
6
|
+
id="react-example-switch-1"
|
|
7
|
+
type="checkbox"
|
|
8
|
+
name="example-1"
|
|
9
|
+
value="example-value-1"
|
|
10
|
+
/><label class="usa-checkbox__label" for="react-example-switch-1">Example Switch 1</label>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
3
13
|
|
|
4
|
-
<h3 class="site-preview-heading">
|
|
5
|
-
<
|
|
14
|
+
<h3 class="site-preview-heading">Checked</h3>
|
|
15
|
+
<div class="usa-form-group usx-form-group">
|
|
16
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
17
|
+
<input
|
|
18
|
+
class="usa-checkbox__input"
|
|
19
|
+
id="react-example-switch-2"
|
|
20
|
+
type="checkbox"
|
|
21
|
+
name="example-2"
|
|
22
|
+
checked=""
|
|
23
|
+
value="example-value-2"
|
|
24
|
+
/><label class="usa-checkbox__label" for="react-example-switch-2">Example Switch 2</label>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
6
27
|
|
|
7
|
-
<h3 class="site-preview-heading">
|
|
8
|
-
<
|
|
28
|
+
<h3 class="site-preview-heading">Tile</h3>
|
|
29
|
+
<div class="usa-form-group usx-form-group">
|
|
30
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
31
|
+
<input
|
|
32
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
33
|
+
id="react-example-switch-3"
|
|
34
|
+
type="checkbox"
|
|
35
|
+
name="example-3"
|
|
36
|
+
value="example-value-3"
|
|
37
|
+
/><label class="usa-checkbox__label" for="react-example-switch-3">Example Switch 3</label>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
9
40
|
|
|
10
|
-
<h3 class="site-preview-heading">
|
|
11
|
-
<
|
|
41
|
+
<h3 class="site-preview-heading">Description</h3>
|
|
42
|
+
<div class="usa-form-group usx-form-group">
|
|
43
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
44
|
+
<input
|
|
45
|
+
class="usa-checkbox__input"
|
|
46
|
+
id="react-example-switch-4"
|
|
47
|
+
type="checkbox"
|
|
48
|
+
name="example-4"
|
|
49
|
+
value="example-value-4"
|
|
50
|
+
/><label class="usa-checkbox__label" for="react-example-switch-4"
|
|
51
|
+
>Example Switch 4<span class="usa-checkbox__label-description"
|
|
52
|
+
>Additional details about this setting.</span
|
|
53
|
+
></label
|
|
54
|
+
>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
12
57
|
|
|
13
|
-
<h3 class="site-preview-heading">
|
|
14
|
-
<
|
|
58
|
+
<h3 class="site-preview-heading">Tile With Description</h3>
|
|
59
|
+
<div class="usa-form-group usx-form-group">
|
|
60
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
61
|
+
<input
|
|
62
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
63
|
+
id="react-example-switch-5"
|
|
64
|
+
type="checkbox"
|
|
65
|
+
name="example-5"
|
|
66
|
+
value="example-value-5"
|
|
67
|
+
/><label class="usa-checkbox__label" for="react-example-switch-5"
|
|
68
|
+
>Example Switch 5<span class="usa-checkbox__label-description"
|
|
69
|
+
>Additional details about this setting.</span
|
|
70
|
+
></label
|
|
71
|
+
>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
15
74
|
|
|
16
|
-
<h3 class="site-preview-heading">
|
|
17
|
-
<
|
|
75
|
+
<h3 class="site-preview-heading">Disabled</h3>
|
|
76
|
+
<div class="usa-form-group usx-form-group">
|
|
77
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
78
|
+
<input
|
|
79
|
+
class="usa-checkbox__input"
|
|
80
|
+
id="react-example-switch-6"
|
|
81
|
+
type="checkbox"
|
|
82
|
+
name="example-6"
|
|
83
|
+
disabled=""
|
|
84
|
+
value="example-value-6"
|
|
85
|
+
/><label class="usa-checkbox__label" for="react-example-switch-6">Example Switch 6</label>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
18
88
|
|
|
19
|
-
<h3 class="site-preview-heading">
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
89
|
+
<h3 class="site-preview-heading">Disabled Checked</h3>
|
|
90
|
+
<div class="usa-form-group usx-form-group">
|
|
91
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
92
|
+
<input
|
|
93
|
+
class="usa-checkbox__input"
|
|
94
|
+
id="react-example-switch-7"
|
|
95
|
+
type="checkbox"
|
|
96
|
+
name="example-7"
|
|
97
|
+
disabled=""
|
|
98
|
+
checked=""
|
|
99
|
+
value="example-value-7"
|
|
100
|
+
/><label class="usa-checkbox__label" for="react-example-switch-7">Example Switch 7</label>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
26
103
|
|
|
27
|
-
<h3 class="site-preview-heading">
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
checked=""
|
|
41
|
-
/>
|
|
104
|
+
<h3 class="site-preview-heading">Disabled Tile</h3>
|
|
105
|
+
<div class="usa-form-group usx-form-group">
|
|
106
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
107
|
+
<input
|
|
108
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
109
|
+
id="react-example-switch-8"
|
|
110
|
+
type="checkbox"
|
|
111
|
+
name="example-8"
|
|
112
|
+
disabled=""
|
|
113
|
+
value="example-value-8"
|
|
114
|
+
/><label class="usa-checkbox__label" for="react-example-switch-8">Example Switch 8</label>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
42
117
|
|
|
43
|
-
<h3 class="site-preview-heading">
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
118
|
+
<h3 class="site-preview-heading">Disabled Checked Tile</h3>
|
|
119
|
+
<div class="usa-form-group usx-form-group">
|
|
120
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
121
|
+
<input
|
|
122
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
123
|
+
id="react-example-switch-9"
|
|
124
|
+
type="checkbox"
|
|
125
|
+
name="example-9"
|
|
126
|
+
disabled=""
|
|
127
|
+
checked=""
|
|
128
|
+
value="example-value-9"
|
|
129
|
+
/><label class="usa-checkbox__label" for="react-example-switch-9">Example Switch 9</label>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
50
132
|
|
|
51
|
-
<h3 class="site-preview-heading">
|
|
52
|
-
<
|
|
133
|
+
<h3 class="site-preview-heading">Small</h3>
|
|
134
|
+
<div class="usa-form-group usx-form-group">
|
|
135
|
+
<div class="usa-checkbox usx-checkbox usx-checkbox--small usx-switch">
|
|
136
|
+
<input
|
|
137
|
+
class="usa-checkbox__input"
|
|
138
|
+
id="react-example-switch-10"
|
|
139
|
+
type="checkbox"
|
|
140
|
+
name="example-10"
|
|
141
|
+
value="example-value-10"
|
|
142
|
+
/><label class="usa-checkbox__label" for="react-example-switch-10">Example Switch 10</label>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
53
145
|
|
|
54
|
-
<h3 class="site-preview-heading">
|
|
55
|
-
<
|
|
146
|
+
<h3 class="site-preview-heading">Small Tile</h3>
|
|
147
|
+
<div class="usa-form-group usx-form-group">
|
|
148
|
+
<div class="usa-checkbox usx-checkbox usx-checkbox--small usx-switch">
|
|
149
|
+
<input
|
|
150
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
151
|
+
id="react-example-switch-11"
|
|
152
|
+
type="checkbox"
|
|
153
|
+
name="example-11"
|
|
154
|
+
value="example-value-11"
|
|
155
|
+
/><label class="usa-checkbox__label" for="react-example-switch-11">Example Switch 11</label>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
56
158
|
|
|
57
|
-
<h3 class="site-preview-heading">Disabled
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
159
|
+
<h3 class="site-preview-heading">Small Disabled</h3>
|
|
160
|
+
<div class="usa-form-group usx-form-group">
|
|
161
|
+
<div class="usa-checkbox usx-checkbox usx-checkbox--small usx-switch">
|
|
162
|
+
<input
|
|
163
|
+
class="usa-checkbox__input"
|
|
164
|
+
id="react-example-switch-12"
|
|
165
|
+
type="checkbox"
|
|
166
|
+
name="example-12"
|
|
167
|
+
disabled=""
|
|
168
|
+
value="example-value-12"
|
|
169
|
+
/><label class="usa-checkbox__label" for="react-example-switch-12">Example Switch 12</label>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<h3 class="site-preview-heading">Small Checked Disabled</h3>
|
|
174
|
+
<div class="usa-form-group usx-form-group">
|
|
175
|
+
<div class="usa-checkbox usx-checkbox usx-checkbox--small usx-switch">
|
|
176
|
+
<input
|
|
177
|
+
class="usa-checkbox__input"
|
|
178
|
+
id="react-example-switch-13"
|
|
179
|
+
type="checkbox"
|
|
180
|
+
name="example-13"
|
|
181
|
+
disabled=""
|
|
182
|
+
checked=""
|
|
183
|
+
value="example-value-13"
|
|
184
|
+
/><label class="usa-checkbox__label" for="react-example-switch-13">Example Switch 13</label>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
<h3 class="site-preview-heading">Small Tile Disabled</h3>
|
|
189
|
+
<div class="usa-form-group usx-form-group">
|
|
190
|
+
<div class="usa-checkbox usx-checkbox usx-checkbox--small usx-switch">
|
|
191
|
+
<input
|
|
192
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
193
|
+
id="react-example-switch-14"
|
|
194
|
+
type="checkbox"
|
|
195
|
+
name="example-14"
|
|
196
|
+
disabled=""
|
|
197
|
+
value="example-value-14"
|
|
198
|
+
/><label class="usa-checkbox__label" for="react-example-switch-14"
|
|
199
|
+
>Example Switch 14<span class="usa-checkbox__label-description"
|
|
200
|
+
>Additional details about this setting.</span
|
|
201
|
+
></label
|
|
202
|
+
>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
<h3 class="site-preview-heading">Small Checked Tile Disabled</h3>
|
|
207
|
+
<div class="usa-form-group usx-form-group">
|
|
208
|
+
<div class="usa-checkbox usx-checkbox usx-checkbox--small usx-switch">
|
|
209
|
+
<input
|
|
210
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
211
|
+
id="react-example-switch-15"
|
|
212
|
+
type="checkbox"
|
|
213
|
+
name="example-15"
|
|
214
|
+
disabled=""
|
|
215
|
+
checked=""
|
|
216
|
+
value="example-value-15"
|
|
217
|
+
/><label class="usa-checkbox__label" for="react-example-switch-15"
|
|
218
|
+
>Example Switch 15<span class="usa-checkbox__label-description"
|
|
219
|
+
>Additional details about this setting.</span
|
|
220
|
+
></label
|
|
221
|
+
>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<h3 class="site-preview-heading">With On Change</h3>
|
|
226
|
+
<div class="usa-form-group usx-form-group">
|
|
227
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
228
|
+
<input
|
|
229
|
+
class="usa-checkbox__input"
|
|
230
|
+
id="react-example-switch-16"
|
|
231
|
+
type="checkbox"
|
|
232
|
+
name="example-16"
|
|
233
|
+
value="example-value-16"
|
|
234
|
+
/><label class="usa-checkbox__label" for="react-example-switch-16">Example Switch 16</label>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<h3 class="site-preview-heading">Required</h3>
|
|
239
|
+
<div class="usa-form-group usx-form-group">
|
|
240
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
241
|
+
<input
|
|
242
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
243
|
+
id="react-example-switch-17"
|
|
244
|
+
type="checkbox"
|
|
245
|
+
name="example-17"
|
|
246
|
+
required=""
|
|
247
|
+
value="example-value-17"
|
|
248
|
+
/><label class="usa-checkbox__label" for="react-example-switch-17"
|
|
249
|
+
><abbr title="Required" class="usx-required">*</abbr> Example Switch 17<span
|
|
250
|
+
class="usa-checkbox__label-description"
|
|
251
|
+
>This setting is required.</span
|
|
252
|
+
></label
|
|
253
|
+
>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
<h3 class="site-preview-heading">Error</h3>
|
|
258
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
259
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
260
|
+
<input
|
|
261
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
262
|
+
id="react-example-switch-18"
|
|
263
|
+
type="checkbox"
|
|
264
|
+
name="example-18"
|
|
265
|
+
value="example-value-18"
|
|
266
|
+
/><label class="usa-checkbox__label" for="react-example-switch-18"
|
|
267
|
+
>Example Switch 18<span class="usa-checkbox__label-description"
|
|
268
|
+
>Please review this setting.</span
|
|
269
|
+
></label
|
|
270
|
+
>
|
|
271
|
+
</div>
|
|
272
|
+
<span class="usa-error-message usx-error-message" role="alert"
|
|
273
|
+
>Choose a setting before continuing.</span
|
|
274
|
+
>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<h3 class="site-preview-heading">Error Without Form Group</h3>
|
|
278
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
279
|
+
<input
|
|
280
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
281
|
+
id="react-example-switch-19"
|
|
282
|
+
type="checkbox"
|
|
283
|
+
name="example-19"
|
|
284
|
+
value="example-value-19"
|
|
285
|
+
/><label class="usa-checkbox__label" for="react-example-switch-19"
|
|
286
|
+
>Example Switch 19<span class="usa-checkbox__label-description"
|
|
287
|
+
>Please review this setting.</span
|
|
288
|
+
></label
|
|
289
|
+
>
|
|
290
|
+
</div>
|
|
291
|
+
<span class="usa-error-message usx-error-message" role="alert"
|
|
292
|
+
>Choose a setting before continuing.</span
|
|
70
293
|
>
|
|
71
294
|
|
|
295
|
+
<h3 class="site-preview-heading">Success</h3>
|
|
296
|
+
<div class="usa-form-group usx-form-group">
|
|
297
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
298
|
+
<input
|
|
299
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
300
|
+
id="react-example-switch-20"
|
|
301
|
+
type="checkbox"
|
|
302
|
+
name="example-20"
|
|
303
|
+
value="example-value-20"
|
|
304
|
+
/><label class="usa-checkbox__label" for="react-example-switch-20"
|
|
305
|
+
>Example Switch 20<span class="usa-checkbox__label-description"
|
|
306
|
+
>Your choice has been recorded.</span
|
|
307
|
+
></label
|
|
308
|
+
>
|
|
309
|
+
</div>
|
|
310
|
+
<span class="usa-success-message text-success" role="status">Setting saved.</span>
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
<h3 class="site-preview-heading">Aria Label</h3>
|
|
314
|
+
<div class="usa-form-group usx-form-group">
|
|
315
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
316
|
+
<input
|
|
317
|
+
class="usa-checkbox__input"
|
|
318
|
+
id="react-example-switch-21"
|
|
319
|
+
type="checkbox"
|
|
320
|
+
name="example-21"
|
|
321
|
+
aria-label="Email notifications"
|
|
322
|
+
value="example-value-21"
|
|
323
|
+
/><label class="usa-checkbox__label" for="react-example-switch-21"></label>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<h3 class="site-preview-heading">Custom Class</h3>
|
|
328
|
+
<div class="usa-form-group usx-form-group">
|
|
329
|
+
<div class="usa-checkbox usx-checkbox usx-switch custom-switch">
|
|
330
|
+
<input
|
|
331
|
+
class="usa-checkbox__input"
|
|
332
|
+
id="react-example-switch-22"
|
|
333
|
+
type="checkbox"
|
|
334
|
+
name="example-22"
|
|
335
|
+
value="example-value-22"
|
|
336
|
+
/><label class="usa-checkbox__label" for="react-example-switch-22">Example Switch 22</label>
|
|
337
|
+
</div>
|
|
338
|
+
</div>
|
|
339
|
+
|
|
72
340
|
<h3 class="site-preview-heading">Indeterminate</h3>
|
|
73
|
-
<
|
|
341
|
+
<div class="usa-form-group usx-form-group">
|
|
342
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
343
|
+
<input
|
|
344
|
+
class="usa-checkbox__input"
|
|
345
|
+
id="react-example-switch-23"
|
|
346
|
+
type="checkbox"
|
|
347
|
+
name="example-23"
|
|
348
|
+
value="example-value-23"
|
|
349
|
+
/><label class="usa-checkbox__label" for="react-example-switch-23">Example Switch 23</label>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
|
|
353
|
+
<h3 class="site-preview-heading">Color Success</h3>
|
|
354
|
+
<div class="usa-form-group usx-form-group">
|
|
355
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
356
|
+
<input
|
|
357
|
+
class="usa-checkbox__input"
|
|
358
|
+
id="react-example-switch-24"
|
|
359
|
+
type="checkbox"
|
|
360
|
+
name="example-24"
|
|
361
|
+
checked=""
|
|
362
|
+
value="example-value-24"
|
|
363
|
+
/><label class="usa-checkbox__label before-success" for="react-example-switch-24"
|
|
364
|
+
>Example Switch 24</label
|
|
365
|
+
>
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
|
|
369
|
+
<h3 class="site-preview-heading">Color Warning</h3>
|
|
370
|
+
<div class="usa-form-group usx-form-group">
|
|
371
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
372
|
+
<input
|
|
373
|
+
class="usa-checkbox__input"
|
|
374
|
+
id="react-example-switch-25"
|
|
375
|
+
type="checkbox"
|
|
376
|
+
name="example-25"
|
|
377
|
+
checked=""
|
|
378
|
+
value="example-value-25"
|
|
379
|
+
/><label class="usa-checkbox__label before-warning" for="react-example-switch-25"
|
|
380
|
+
>Example Switch 25</label
|
|
381
|
+
>
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
|
|
385
|
+
<h3 class="site-preview-heading">Color Error</h3>
|
|
386
|
+
<div class="usa-form-group usx-form-group">
|
|
387
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
388
|
+
<input
|
|
389
|
+
class="usa-checkbox__input"
|
|
390
|
+
id="react-example-switch-26"
|
|
391
|
+
type="checkbox"
|
|
392
|
+
name="example-26"
|
|
393
|
+
checked=""
|
|
394
|
+
value="example-value-26"
|
|
395
|
+
/><label class="usa-checkbox__label before-error" for="react-example-switch-26"
|
|
396
|
+
>Example Switch 26</label
|
|
397
|
+
>
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
|
|
401
|
+
<h3 class="site-preview-heading">Color Secondary Tile</h3>
|
|
402
|
+
<div class="usa-form-group usx-form-group">
|
|
403
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
404
|
+
<input
|
|
405
|
+
class="usa-checkbox__input usa-checkbox__input--tile"
|
|
406
|
+
id="react-example-switch-27"
|
|
407
|
+
type="checkbox"
|
|
408
|
+
name="example-27"
|
|
409
|
+
checked=""
|
|
410
|
+
value="example-value-27"
|
|
411
|
+
/><label class="usa-checkbox__label before-secondary" for="react-example-switch-27"
|
|
412
|
+
>Example Switch 27</label
|
|
413
|
+
>
|
|
414
|
+
</div>
|
|
415
|
+
</div>
|
|
416
|
+
|
|
417
|
+
<h3 class="site-preview-heading">Color Accent Cool</h3>
|
|
418
|
+
<div class="usa-form-group usx-form-group">
|
|
419
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
420
|
+
<input
|
|
421
|
+
class="usa-checkbox__input"
|
|
422
|
+
id="react-example-switch-28"
|
|
423
|
+
type="checkbox"
|
|
424
|
+
name="example-28"
|
|
425
|
+
checked=""
|
|
426
|
+
value="example-value-28"
|
|
427
|
+
/><label class="usa-checkbox__label before-accent-cool" for="react-example-switch-28"
|
|
428
|
+
>Example Switch 28</label
|
|
429
|
+
>
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
|
|
433
|
+
<h3 class="site-preview-heading">Color Disabled Checked</h3>
|
|
434
|
+
<div class="usa-form-group usx-form-group">
|
|
435
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
436
|
+
<input
|
|
437
|
+
class="usa-checkbox__input"
|
|
438
|
+
id="react-example-switch-30"
|
|
439
|
+
type="checkbox"
|
|
440
|
+
name="example-30"
|
|
441
|
+
disabled=""
|
|
442
|
+
checked=""
|
|
443
|
+
value="example-value-30"
|
|
444
|
+
/><label class="usa-checkbox__label before-error" for="react-example-switch-30"
|
|
445
|
+
>Example Switch 30</label
|
|
446
|
+
>
|
|
447
|
+
</div>
|
|
448
|
+
</div>
|
|
449
|
+
|
|
450
|
+
<h3 class="site-preview-heading">Default Checked</h3>
|
|
451
|
+
<div class="usa-form-group usx-form-group">
|
|
452
|
+
<div class="usa-checkbox usx-checkbox usx-switch">
|
|
453
|
+
<input
|
|
454
|
+
class="usa-checkbox__input"
|
|
455
|
+
id="react-example-switch-31"
|
|
456
|
+
type="checkbox"
|
|
457
|
+
name="example-31"
|
|
458
|
+
checked=""
|
|
459
|
+
value="example-value-31"
|
|
460
|
+
/><label class="usa-checkbox__label" for="react-example-switch-31">Example Switch 31</label>
|
|
461
|
+
</div>
|
|
462
|
+
</div>
|