@slotted/react 0.1.0-beta.29 → 0.1.0-beta.30
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/dist/{app-shell-CXlO6z0w.js → app-shell-ClwskWBN.js} +1 -1
- package/dist/app-shell.js +2 -2
- package/dist/docs/AGENTS.snippet.md +1 -1
- package/dist/docs/accordion.json +5 -5
- package/dist/docs/accordion.md +11 -11
- package/dist/docs/action-bar.json +19 -19
- package/dist/docs/action-bar.md +29 -29
- package/dist/docs/action-sheet.json +5 -5
- package/dist/docs/action-sheet.md +15 -15
- package/dist/docs/alert.json +11 -11
- package/dist/docs/alert.md +17 -17
- package/dist/docs/app-shell.examples.md +8 -8
- package/dist/docs/app-shell.json +11 -11
- package/dist/docs/app-shell.md +2 -2
- package/dist/docs/attachment.json +1 -1
- package/dist/docs/attachment.md +1 -1
- package/dist/docs/avatar-group.json +1 -1
- package/dist/docs/avatar-group.md +1 -1
- package/dist/docs/avatar.json +10 -10
- package/dist/docs/avatar.md +9 -9
- package/dist/docs/badge.json +5 -5
- package/dist/docs/badge.md +5 -5
- package/dist/docs/breadcrumb.json +2 -2
- package/dist/docs/breadcrumb.md +2 -2
- package/dist/docs/button-group.json +1 -1
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.json +11 -11
- package/dist/docs/button.md +7 -7
- package/dist/docs/calendar.json +4 -4
- package/dist/docs/calendar.md +3 -3
- package/dist/docs/card.json +2 -2
- package/dist/docs/card.md +2 -2
- package/dist/docs/carousel.json +11 -11
- package/dist/docs/carousel.md +12 -12
- package/dist/docs/chart.examples.md +41 -41
- package/dist/docs/chart.json +28 -28
- package/dist/docs/chart.md +4 -4
- package/dist/docs/checkbox-group.examples.md +12 -12
- package/dist/docs/checkbox-group.json +6 -6
- package/dist/docs/checkbox-group.md +1 -1
- package/dist/docs/checkbox.examples.md +8 -8
- package/dist/docs/checkbox.json +7 -7
- package/dist/docs/checkbox.md +4 -4
- package/dist/docs/code-block.json +1 -1
- package/dist/docs/code-block.md +1 -1
- package/dist/docs/collapsible.json +12 -12
- package/dist/docs/collapsible.md +21 -21
- package/dist/docs/color-picker.json +25 -25
- package/dist/docs/color-picker.md +15 -15
- package/dist/docs/column-manager.json +1 -1
- package/dist/docs/column-manager.md +1 -1
- package/dist/docs/combobox.json +1 -1
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/context-menu.json +1 -1
- package/dist/docs/context-menu.md +1 -1
- package/dist/docs/currency-field.examples.md +1 -1
- package/dist/docs/currency-field.json +5 -5
- package/dist/docs/currency-field.md +4 -4
- package/dist/docs/dashboard-grid.json +1 -1
- package/dist/docs/data-grid.json +2 -2
- package/dist/docs/data-grid.md +1 -1
- package/dist/docs/data-grid.props.md +1 -1
- package/dist/docs/date-field.json +4 -4
- package/dist/docs/date-field.md +9 -9
- package/dist/docs/date-picker.json +1 -1
- package/dist/docs/date-range-picker.json +1 -1
- package/dist/docs/datetime-field.json +3 -3
- package/dist/docs/datetime-field.md +7 -7
- package/dist/docs/datetime-picker.json +1 -1
- package/dist/docs/datetime-range-picker.examples.md +2 -2
- package/dist/docs/datetime-range-picker.json +3 -3
- package/dist/docs/datetime-range-picker.md +2 -2
- package/dist/docs/description-list.json +5 -5
- package/dist/docs/description-list.md +4 -4
- package/dist/docs/detail-panel.json +9 -9
- package/dist/docs/detail-panel.md +11 -11
- package/dist/docs/dialog.examples.md +5 -5
- package/dist/docs/dialog.json +12 -12
- package/dist/docs/dialog.md +4 -4
- package/dist/docs/dialog.props.md +2 -2
- package/dist/docs/drawer.examples.md +14 -14
- package/dist/docs/drawer.json +8 -8
- package/dist/docs/drawer.md +1 -1
- package/dist/docs/entity-picker.json +1 -1
- package/dist/docs/entity-picker.md +2 -2
- package/dist/docs/event-calendar.examples.md +3 -3
- package/dist/docs/event-calendar.json +5 -5
- package/dist/docs/event-calendar.md +2 -2
- package/dist/docs/field-group.json +5 -5
- package/dist/docs/field-group.md +9 -9
- package/dist/docs/field.examples.md +3 -3
- package/dist/docs/field.json +4 -4
- package/dist/docs/field.md +1 -1
- package/dist/docs/form.json +6 -6
- package/dist/docs/form.md +10 -10
- package/dist/docs/fullscreen.json +3 -3
- package/dist/docs/fullscreen.md +6 -6
- package/dist/docs/guidelines/async-feedback.md +2 -2
- package/dist/docs/guidelines/builders.md +1 -1
- package/dist/docs/guidelines/composition.md +4 -4
- package/dist/docs/guidelines/conversations.md +1 -1
- package/dist/docs/guidelines/index.md +2 -2
- package/dist/docs/guidelines/layout-alignment.md +5 -5
- package/dist/docs/guidelines/overviews.md +3 -3
- package/dist/docs/guidelines/own-elements.md +7 -7
- package/dist/docs/guidelines/record-pages.md +1 -1
- package/dist/docs/highlight.json +11 -11
- package/dist/docs/highlight.md +18 -18
- package/dist/docs/icon.json +2 -2
- package/dist/docs/icon.md +2 -2
- package/dist/docs/image.json +3 -3
- package/dist/docs/image.md +3 -3
- package/dist/docs/import-export-center.json +25 -25
- package/dist/docs/import-export-center.md +21 -21
- package/dist/docs/inline-message.json +14 -14
- package/dist/docs/inline-message.md +20 -20
- package/dist/docs/inline.json +1 -1
- package/dist/docs/inline.md +1 -1
- package/dist/docs/kbd.json +2 -2
- package/dist/docs/kbd.md +2 -2
- package/dist/docs/link.json +7 -7
- package/dist/docs/link.md +7 -7
- package/dist/docs/list-item.json +1 -1
- package/dist/docs/list-item.md +1 -1
- package/dist/docs/list.json +2 -2
- package/dist/docs/list.md +1 -1
- package/dist/docs/listbox.json +1 -1
- package/dist/docs/listbox.md +1 -1
- package/dist/docs/loading-overlay.json +2 -2
- package/dist/docs/loading-overlay.md +2 -2
- package/dist/docs/media-viewer.json +1 -1
- package/dist/docs/media-viewer.md +1 -1
- package/dist/docs/message-scroller.json +1 -1
- package/dist/docs/message-scroller.md +1 -1
- package/dist/docs/message.json +11 -11
- package/dist/docs/message.md +17 -17
- package/dist/docs/multi-select.json +1 -1
- package/dist/docs/notification-center.json +18 -18
- package/dist/docs/notification-center.md +25 -22
- package/dist/docs/number-field.examples.md +4 -4
- package/dist/docs/number-field.json +3 -3
- package/dist/docs/otp-input.json +9 -9
- package/dist/docs/otp-input.md +12 -12
- package/dist/docs/page-header.json +9 -9
- package/dist/docs/page-header.md +23 -23
- package/dist/docs/pagination.json +2 -2
- package/dist/docs/pagination.md +1 -1
- package/dist/docs/popover.examples.md +1 -1
- package/dist/docs/popover.json +3 -3
- package/dist/docs/popover.md +1 -1
- package/dist/docs/progress-indicator.json +4 -4
- package/dist/docs/progress-indicator.md +4 -4
- package/dist/docs/prompt-composer.json +3 -3
- package/dist/docs/prompt-composer.md +4 -4
- package/dist/docs/prose.json +1 -1
- package/dist/docs/prose.md +1 -1
- package/dist/docs/radio-group.examples.md +16 -16
- package/dist/docs/radio-group.json +9 -9
- package/dist/docs/radio-group.md +2 -2
- package/dist/docs/rating.json +18 -18
- package/dist/docs/rating.md +19 -23
- package/dist/docs/result-state.json +13 -13
- package/dist/docs/result-state.md +18 -20
- package/dist/docs/saved-views.json +1 -1
- package/dist/docs/scroll-area.json +5 -5
- package/dist/docs/scroll-area.md +6 -6
- package/dist/docs/section.json +6 -6
- package/dist/docs/section.md +11 -11
- package/dist/docs/segmented-control.json +15 -15
- package/dist/docs/segmented-control.md +39 -39
- package/dist/docs/skeleton.json +1 -1
- package/dist/docs/skeleton.md +1 -1
- package/dist/docs/skills/build-own-element/SKILL.md +3 -3
- package/dist/docs/skills/compose-screen/SKILL.md +2 -2
- package/dist/docs/skills/index.md +2 -2
- package/dist/docs/skills/review-screen/SKILL.md +3 -3
- package/dist/docs/skills/theme-app/SKILL.md +9 -9
- package/dist/docs/skills/waiting-states/SKILL.md +1 -1
- package/dist/docs/slider.json +9 -9
- package/dist/docs/slider.md +19 -19
- package/dist/docs/sparkline.json +8 -8
- package/dist/docs/sparkline.md +6 -6
- package/dist/docs/split-button.json +11 -11
- package/dist/docs/split-button.md +27 -27
- package/dist/docs/stack.json +1 -1
- package/dist/docs/stack.md +1 -1
- package/dist/docs/stat-card.json +3 -3
- package/dist/docs/stat-card.md +2 -2
- package/dist/docs/status-indicator.json +8 -8
- package/dist/docs/status-indicator.md +5 -5
- package/dist/docs/stepper.json +4 -4
- package/dist/docs/stepper.md +4 -4
- package/dist/docs/switch.json +5 -5
- package/dist/docs/switch.md +11 -7
- package/dist/docs/table-of-contents.json +9 -9
- package/dist/docs/table-of-contents.md +13 -13
- package/dist/docs/table.examples.md +1 -1
- package/dist/docs/table.json +1 -1
- package/dist/docs/tabs.json +1 -1
- package/dist/docs/tabs.md +1 -1
- package/dist/docs/tag.json +21 -21
- package/dist/docs/tag.md +18 -18
- package/dist/docs/tags-input.json +1 -1
- package/dist/docs/tags-input.md +1 -1
- package/dist/docs/text-field.examples.md +5 -5
- package/dist/docs/text-field.json +5 -5
- package/dist/docs/text-field.md +1 -1
- package/dist/docs/textarea.examples.md +4 -4
- package/dist/docs/textarea.json +2 -2
- package/dist/docs/time-field.json +3 -3
- package/dist/docs/time-field.md +7 -7
- package/dist/docs/time-picker.json +4 -4
- package/dist/docs/time-picker.md +7 -7
- package/dist/docs/time-range-picker.json +4 -4
- package/dist/docs/time-range-picker.md +5 -5
- package/dist/docs/toast.json +5 -5
- package/dist/docs/toast.md +5 -5
- package/dist/docs/toggle-group.json +13 -13
- package/dist/docs/toggle-group.md +38 -38
- package/dist/docs/toggle.json +8 -8
- package/dist/docs/toggle.md +8 -8
- package/dist/docs/tokens.md +15 -15
- package/dist/docs/toolbar.json +11 -11
- package/dist/docs/toolbar.md +28 -28
- package/dist/docs/tooltip.json +3 -3
- package/dist/docs/tooltip.md +3 -3
- package/dist/docs/top-navigation.examples.md +13 -13
- package/dist/docs/top-navigation.json +10 -10
- package/dist/docs/top-navigation.md +7 -7
- package/dist/docs/tour.json +8 -8
- package/dist/docs/tour.md +5 -5
- package/dist/docs/typography.json +2 -2
- package/dist/docs/typography.md +2 -2
- package/dist/docs/upload.examples.md +5 -5
- package/dist/docs/upload.json +10 -10
- package/dist/docs/upload.md +3 -3
- package/dist/{form-Im9lGi45.js → form-DnV8ndwm.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/index.js +8 -8
- package/dist/{rating-Cjrwmxyw.js → rating-BtrkTAi0.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{side-navigation-CvIGfGjZ.js → side-navigation-DNMpckRs.js} +1 -1
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-DuJGh0pf.js → slider-CU89H3i0.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{top-navigation-D_Jt0jNw.js → top-navigation-C73WDqLg.js} +1 -1
- package/dist/top-navigation.js +1 -1
- package/dist/types/alert/alert.types.d.ts +2 -2
- package/dist/types/alert/alert.types.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-demo/atrio.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-demo/aurora.d.ts +6 -6
- package/dist/types/app-shell/app-shell-demo/aurora.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-demo/cadence.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +2 -2
- package/dist/types/app-shell/app-shell.types.d.ts +1 -1
- package/dist/types/app-shell/index.d.ts +2 -2
- package/dist/types/avatar/avatar.types.d.ts +8 -8
- package/dist/types/avatar/avatar.types.d.ts.map +1 -1
- package/dist/types/badge/badge.types.d.ts +4 -4
- package/dist/types/badge/badge.types.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb-parts.d.ts +1 -1
- package/dist/types/button/button.constants.d.ts +1 -1
- package/dist/types/button-group/button-group-separator.d.ts +1 -1
- package/dist/types/card/card-selection.d.ts +1 -1
- package/dist/types/carousel/carousel-catalogue.d.ts +6 -6
- package/dist/types/carousel/carousel-parts.d.ts +2 -2
- package/dist/types/code-block/code-block.types.d.ts +1 -1
- package/dist/types/collapsible/collapsible.types.d.ts +1 -1
- package/dist/types/color-picker/color-picker.d.ts +7 -7
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.types.d.ts +5 -5
- package/dist/types/color-picker/color-picker.types.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts +2 -2
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/combobox/combobox-collection.d.ts +1 -1
- package/dist/types/combobox/combobox-defaults.d.ts +1 -1
- package/dist/types/command-palette/command-palette-defaults.d.ts +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +2 -2
- package/dist/types/description-list/description-list-clipboard.d.ts +1 -1
- package/dist/types/detail-panel/detail-panel-demo.d.ts.map +1 -1
- package/dist/types/dialog/dialog.types.d.ts +1 -1
- package/dist/types/drawer/drawer.types.d.ts +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts +1 -1
- package/dist/types/field/field-parts.d.ts +1 -1
- package/dist/types/field/field.d.ts +1 -1
- package/dist/types/field/field.types.d.ts +1 -1
- package/dist/types/form/form.d.ts +1 -1
- package/dist/types/form/form.types.d.ts +1 -1
- package/dist/types/highlight/highlight.types.d.ts +1 -1
- package/dist/types/icon/glyph.d.ts +1 -1
- package/dist/types/icon/icon.d.ts +2 -2
- package/dist/types/icon/icon.types.d.ts +1 -1
- package/dist/types/icon/icon.types.d.ts.map +1 -1
- package/dist/types/image/image.d.ts +1 -1
- package/dist/types/import-export-center/import-export-center-defaults.d.ts +3 -3
- package/dist/types/import-export-center/import-export-center-demo.d.ts +2 -2
- package/dist/types/import-export-center/import-export-center-demo.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.types.d.ts +3 -3
- package/dist/types/import-export-center/use-job-toasts.d.ts +3 -3
- package/dist/types/inline/inline.d.ts +1 -1
- package/dist/types/inline-message/inline-message-defaults.d.ts +1 -1
- package/dist/types/inline-message/inline-message.d.ts +2 -2
- package/dist/types/inline-message/inline-message.types.d.ts +1 -1
- package/dist/types/inline-message/inline-message.types.d.ts.map +1 -1
- package/dist/types/kbd/kbd.types.d.ts +1 -1
- package/dist/types/list/list.types.d.ts +1 -1
- package/dist/types/listbox/listbox-defaults.d.ts +1 -1
- package/dist/types/listbox/listbox-parts.d.ts +2 -2
- package/dist/types/menu/menu-defaults.d.ts +1 -1
- package/dist/types/menu/menu-parts.d.ts +1 -1
- package/dist/types/message/message-demo.d.ts +2 -2
- package/dist/types/message/message-demo.d.ts.map +1 -1
- package/dist/types/message-scroller/message-scroller.d.ts +1 -1
- package/dist/types/notification-center/notification-center-defaults.d.ts +2 -2
- package/dist/types/notification-center/notification-center-demo.d.ts +1 -1
- package/dist/types/notification-center/notification-center-demo.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.types.d.ts +2 -2
- package/dist/types/otp-input/otp-input.d.ts +1 -1
- package/dist/types/page/page-demo.d.ts +2 -2
- package/dist/types/page/page-demo.d.ts.map +1 -1
- package/dist/types/progress-indicator/loader.d.ts +1 -1
- package/dist/types/progress-indicator/progress-circle.d.ts +1 -1
- package/dist/types/progress-indicator/progress-indicator.types.d.ts +1 -1
- package/dist/types/rating/rating-summary.d.ts +1 -1
- package/dist/types/rating/rating.types.d.ts +1 -1
- package/dist/types/result-state/result-state-demo.d.ts +1 -1
- package/dist/types/result-state/result-state.types.d.ts +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +1 -1
- package/dist/types/select/select.types.d.ts +1 -1
- package/dist/types/side-navigation/side-navigation.d.ts +1 -1
- package/dist/types/stat-card/stat-card.d.ts +1 -1
- package/dist/types/status-indicator/status-indicator.types.d.ts +3 -3
- package/dist/types/status-indicator/status-indicator.types.d.ts.map +1 -1
- package/dist/types/switch/switch.types.d.ts +1 -1
- package/dist/types/table/table-parts.d.ts +1 -1
- package/dist/types/table/table.types.d.ts +1 -1
- package/dist/types/table-of-contents/table-of-contents-demo.d.ts.map +1 -1
- package/dist/types/tabs/tabs.types.d.ts +2 -2
- package/dist/types/tag/tag.types.d.ts +3 -3
- package/dist/types/tag/tag.types.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts +1 -1
- package/dist/types/theme/theme-scope.d.ts +2 -2
- package/dist/types/theme/theme-scope.d.ts.map +1 -1
- package/dist/types/toast/toast-defaults.d.ts +1 -1
- package/dist/types/toast/toast.types.d.ts +2 -2
- package/dist/types/toast/toast.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +1 -1
- package/dist/types/tooltip/tooltip-defaults.d.ts +1 -1
- package/dist/types/tour/tour.types.d.ts +2 -2
- package/dist/types/typography/text.d.ts +1 -1
- package/dist/types/typography/typography.attributes.d.ts +1 -1
- package/dist/types/typography/typography.types.d.ts +1 -1
- package/dist/types/typography/typography.types.d.ts.map +1 -1
- package/dist/{wizard-CpYwQGQ-.js → wizard-CmEJK55_.js} +2 -2
- package/dist/wizard.js +1 -1
- package/package.json +18 -6
|
@@ -57,11 +57,11 @@ Excerpt — not a complete module
|
|
|
57
57
|
```tsx
|
|
58
58
|
<CheckboxGroup defaultValue={['pix']} variant="tile">
|
|
59
59
|
<Grid minItemWidth="sm">
|
|
60
|
-
<Checkbox description="
|
|
61
|
-
|
|
60
|
+
<Checkbox description="Instant settlement." value="pix">
|
|
61
|
+
Zelle
|
|
62
62
|
</Checkbox>
|
|
63
|
-
<Checkbox description="
|
|
64
|
-
|
|
63
|
+
<Checkbox description="Installments up to twelve times." value="card">
|
|
64
|
+
Credit card
|
|
65
65
|
</Checkbox>
|
|
66
66
|
</Grid>
|
|
67
67
|
</CheckboxGroup>;
|
|
@@ -207,10 +207,10 @@ Excerpt — not a complete module
|
|
|
207
207
|
|
|
208
208
|
```tsx
|
|
209
209
|
<FieldGroup required>
|
|
210
|
-
<FieldGroupLegend>
|
|
210
|
+
<FieldGroupLegend>Notifications</FieldGroupLegend>
|
|
211
211
|
<CheckboxGroup name="alerts">
|
|
212
|
-
<Checkbox value="approved">
|
|
213
|
-
<Checkbox value="refused">
|
|
212
|
+
<Checkbox value="approved">Order approved</Checkbox>
|
|
213
|
+
<Checkbox value="refused">Order refused</Checkbox>
|
|
214
214
|
</CheckboxGroup>
|
|
215
215
|
</FieldGroup>;
|
|
216
216
|
```
|
|
@@ -224,9 +224,9 @@ Excerpt — not a complete module
|
|
|
224
224
|
```tsx
|
|
225
225
|
<CheckboxGroup orientation="horizontal">
|
|
226
226
|
<Checkbox value="a">
|
|
227
|
-
|
|
227
|
+
I authorize the use of browsing data to personalize the recommendations
|
|
228
228
|
</Checkbox>
|
|
229
|
-
<Checkbox value="b">
|
|
229
|
+
<Checkbox value="b">And also to measure the reach of campaigns</Checkbox>
|
|
230
230
|
</CheckboxGroup>;
|
|
231
231
|
```
|
|
232
232
|
|
|
@@ -239,7 +239,7 @@ Excerpt — not a complete module
|
|
|
239
239
|
```tsx
|
|
240
240
|
<CheckboxGroupDefaultsProvider orientation="horizontal" size="sm">
|
|
241
241
|
<CheckboxGroup>
|
|
242
|
-
<Checkbox value="a">
|
|
242
|
+
<Checkbox value="a">Inherits all three</Checkbox>
|
|
243
243
|
</CheckboxGroup>
|
|
244
244
|
</CheckboxGroupDefaultsProvider>;
|
|
245
245
|
|
|
@@ -261,8 +261,8 @@ Excerpt — not a complete module
|
|
|
261
261
|
// The group binds no key at all: each box is a native checkbox, so Tab
|
|
262
262
|
// reaches every one of them and Space toggles the one that has focus.
|
|
263
263
|
<CheckboxGroup allValues={['a', 'b']}>
|
|
264
|
-
<Checkbox value="a">Tab
|
|
265
|
-
<Checkbox value="b">
|
|
264
|
+
<Checkbox value="a">Tab to here</Checkbox>
|
|
265
|
+
<Checkbox value="b">And again to here</Checkbox>
|
|
266
266
|
</CheckboxGroup>;
|
|
267
267
|
```
|
|
268
268
|
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
}
|
|
222
222
|
],
|
|
223
223
|
"accessibility": [
|
|
224
|
-
"The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard
|
|
224
|
+
"The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard behavior. The sources are the ARIA group role and the Providing Accessible Names and Descriptions practice (w3.org/WAI/ARIA/apg/practices/names-and-descriptions/).",
|
|
225
225
|
"Every box is its own tab stop, and Space toggles the box that has focus. The platform provides this whole keyboard model. It is what sets a checkbox group apart from a radio group, where the set is a single tab stop and the arrow keys move the choice.",
|
|
226
226
|
"The role depends on the container. A field group is a fieldset with a legend, which is already a named group to assistive technology; a role=\"group\" inside it, named by the same legend, would announce the set twice. Inside a field group the checkbox group renders no role, and the legend names the set. Inside a field, the field’s label names the group through aria-labelledby.",
|
|
227
227
|
"The group writes aria-required, never the native required on a box. The native attribute on a checkbox demands that one particular box be checked, which is not what \"choose at least one\" means, and it turns on browser constraint validation.",
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"title": "A set of framed choices",
|
|
259
259
|
"note": "The variant belongs to the group, not to each box: a set with one plain choice among four tiles is a set nobody meant to write. Arrangement is not the group’s — Grid already owns columns, minItemWidth and a stretching alignment, so tiles in a row come out the same width and the same height.",
|
|
260
260
|
"language": "tsx",
|
|
261
|
-
"source": "<CheckboxGroup defaultValue={['pix']} variant=\"tile\">\n <Grid minItemWidth=\"sm\">\n <Checkbox description=\"
|
|
261
|
+
"source": "<CheckboxGroup defaultValue={['pix']} variant=\"tile\">\n <Grid minItemWidth=\"sm\">\n <Checkbox description=\"Instant settlement.\" value=\"pix\">\n Zelle\n </Checkbox>\n <Checkbox description=\"Installments up to twelve times.\" value=\"card\">\n Credit card\n </Checkbox>\n </Grid>\n</CheckboxGroup>;\n",
|
|
262
262
|
"verdict": "excerpt"
|
|
263
263
|
},
|
|
264
264
|
{
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
"title": "Inside a group of fields",
|
|
291
291
|
"note": "The fieldset and its legend are what group and name the set, so this group withdraws its own role rather than announcing the same set twice — and a disabled fieldset disables every box with nothing passed down.",
|
|
292
292
|
"language": "tsx",
|
|
293
|
-
"source": "<FieldGroup required>\n <FieldGroupLegend>
|
|
293
|
+
"source": "<FieldGroup required>\n <FieldGroupLegend>Notifications</FieldGroupLegend>\n <CheckboxGroup name=\"alerts\">\n <Checkbox value=\"approved\">Order approved</Checkbox>\n <Checkbox value=\"refused\">Order refused</Checkbox>\n </CheckboxGroup>\n</FieldGroup>;\n",
|
|
294
294
|
"verdict": "excerpt"
|
|
295
295
|
},
|
|
296
296
|
{
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"title": "Content the family did not choose",
|
|
299
299
|
"note": "A set of long options keeps every box on the first line of its own label, a narrow column turns a horizontal set into a stack without a media query, and a right-to-left set mirrors whole rather than rearranging.",
|
|
300
300
|
"language": "tsx",
|
|
301
|
-
"source": "<CheckboxGroup orientation=\"horizontal\">\n <Checkbox value=\"a\">\n
|
|
301
|
+
"source": "<CheckboxGroup orientation=\"horizontal\">\n <Checkbox value=\"a\">\n I authorize the use of browsing data to personalize the recommendations\n </Checkbox>\n <Checkbox value=\"b\">And also to measure the reach of campaigns</Checkbox>\n</CheckboxGroup>;\n",
|
|
302
302
|
"verdict": "excerpt"
|
|
303
303
|
},
|
|
304
304
|
{
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"title": "Setting it once, and reaching past it",
|
|
307
307
|
"note": "The provider carries the three decisions an application takes once, render substitutes the root so a set can be a real list, and useCheckboxGroup reads the same state a box reads.",
|
|
308
308
|
"language": "tsx",
|
|
309
|
-
"source": "<CheckboxGroupDefaultsProvider orientation=\"horizontal\" size=\"sm\">\n <CheckboxGroup>\n <Checkbox value=\"a\">
|
|
309
|
+
"source": "<CheckboxGroupDefaultsProvider orientation=\"horizontal\" size=\"sm\">\n <CheckboxGroup>\n <Checkbox value=\"a\">Inherits all three</Checkbox>\n </CheckboxGroup>\n</CheckboxGroupDefaultsProvider>;\n\n// The root becomes a real list, and each box a list item.\n<CheckboxGroup render={(props) => <ul {...props} />}>\n <Checkbox render={(props) => <li {...props} />} value=\"a\">\n Um item\n </Checkbox>\n</CheckboxGroup>;\n",
|
|
310
310
|
"verdict": "excerpt"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"title": "What the keyboard does, and who implements it",
|
|
315
315
|
"note": "Every box is its own tab stop and Space toggles it, because a checkbox is one choice made on its own — which is exactly what tells this family apart from a radio group, where the whole set is one stop.",
|
|
316
316
|
"language": "tsx",
|
|
317
|
-
"source": "// The group binds no key at all: each box is a native checkbox, so Tab\n// reaches every one of them and Space toggles the one that has focus.\n<CheckboxGroup allValues={['a', 'b']}>\n <Checkbox value=\"a\">Tab
|
|
317
|
+
"source": "// The group binds no key at all: each box is a native checkbox, so Tab\n// reaches every one of them and Space toggles the one that has focus.\n<CheckboxGroup allValues={['a', 'b']}>\n <Checkbox value=\"a\">Tab to here</Checkbox>\n <Checkbox value=\"b\">And again to here</Checkbox>\n</CheckboxGroup>;\n",
|
|
318
318
|
"verdict": "excerpt"
|
|
319
319
|
},
|
|
320
320
|
{
|
|
@@ -83,7 +83,7 @@ export default function CheckboxGroupBasic() {
|
|
|
83
83
|
|
|
84
84
|
## Rules
|
|
85
85
|
|
|
86
|
-
- The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard
|
|
86
|
+
- The WAI-ARIA Authoring Practices have no pattern for a group of checkboxes: the Checkbox pattern covers one box, and grouping is a question of naming rather than of keyboard behavior. The sources are the ARIA group role and the Providing Accessible Names and Descriptions practice (w3.org/WAI/ARIA/apg/practices/names-and-descriptions/).
|
|
87
87
|
- Every box is its own tab stop, and Space toggles the box that has focus. The platform provides this whole keyboard model. It is what sets a checkbox group apart from a radio group, where the set is a single tab stop and the arrow keys move the choice.
|
|
88
88
|
- The role depends on the container. A field group is a fieldset with a legend, which is already a named group to assistive technology; a role="group" inside it, named by the same legend, would announce the set twice. Inside a field group the checkbox group renders no role, and the legend names the set. Inside a field, the field’s label names the group through aria-labelledby.
|
|
89
89
|
- The group writes aria-required, never the native required on a box. The native attribute on a checkbox demands that one particular box be checked, which is not what "choose at least one" means, and it turns on browser constraint validation.
|
|
@@ -12,8 +12,8 @@ One box with every axis on it, driven by the controls below the canvas. Click th
|
|
|
12
12
|
Excerpt — not a complete module
|
|
13
13
|
|
|
14
14
|
```tsx
|
|
15
|
-
<Checkbox description="
|
|
16
|
-
|
|
15
|
+
<Checkbox description="We will send the receipt by email." defaultChecked>
|
|
16
|
+
Send receipt
|
|
17
17
|
</Checkbox>;
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -196,10 +196,10 @@ Excerpt — not a complete module
|
|
|
196
196
|
|
|
197
197
|
```tsx
|
|
198
198
|
<FieldGroup required>
|
|
199
|
-
<FieldGroupLegend>
|
|
199
|
+
<FieldGroupLegend>Notifications</FieldGroupLegend>
|
|
200
200
|
<CheckboxGroup name="alerts">
|
|
201
|
-
<Checkbox value="approved">
|
|
202
|
-
<Checkbox value="refused">
|
|
201
|
+
<Checkbox value="approved">Order approved</Checkbox>
|
|
202
|
+
<Checkbox value="refused">Order refused</Checkbox>
|
|
203
203
|
</CheckboxGroup>
|
|
204
204
|
</FieldGroup>;
|
|
205
205
|
```
|
|
@@ -211,9 +211,9 @@ A label that wraps to three lines keeps the box on the first of them rather than
|
|
|
211
211
|
Excerpt — not a complete module
|
|
212
212
|
|
|
213
213
|
```tsx
|
|
214
|
-
<Checkbox description="
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
<Checkbox description="The box stays on the first line of the label.">
|
|
215
|
+
I agree to receive communications about contract changes, delivery deadlines and changes to the
|
|
216
|
+
returns policy.
|
|
217
217
|
</Checkbox>;
|
|
218
218
|
|
|
219
219
|
<Checkbox dir="rtl">أوافق على تلقي رسائل حول التغييرات في العقد.</Checkbox>;
|
package/dist/docs/checkbox.json
CHANGED
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"type": "(props: CheckboxRootProps) => ReactNode",
|
|
199
199
|
"defaultValue": "—",
|
|
200
200
|
"appliesTo": "Checkbox",
|
|
201
|
-
"description": "Replaces the root element and receives every attribute it would carry. The props are typed against HTMLAttributes<HTMLElement>, so they can be spread onto a li or a label. The input cannot be replaced, because it holds the value and the platform’s keyboard
|
|
201
|
+
"description": "Replaces the root element and receives every attribute it would carry. The props are typed against HTMLAttributes<HTMLElement>, so they can be spread onto a li or a label. The input cannot be replaced, because it holds the value and the platform’s keyboard behavior."
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"name": "ref",
|
|
@@ -242,13 +242,13 @@
|
|
|
242
242
|
}
|
|
243
243
|
],
|
|
244
244
|
"accessibility": [
|
|
245
|
-
"Checkbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled
|
|
245
|
+
"Checkbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled behavior. Checkbox adds no key listener, so the keyboard behavior is the platform’s in every language and in right-to-left documents.",
|
|
246
246
|
"The label names the control through for, which points at an identifier Checkbox generates when you pass no id. The description sits outside the label and reaches the control through aria-describedby, so it is read as a description, and a press on it toggles nothing.",
|
|
247
247
|
"Inside a required field the control carries aria-required, never the native required, because the native attribute turns on browser constraint validation and changes how the form submits. Pass required on the box to opt into the platform’s validation; Checkbox leaves it unchanged. disabled is the native attribute.",
|
|
248
248
|
"A native checkbox has no read-only state, so Checkbox enforces one: it refuses the click that a pointer and Space both produce, and aria-readonly announces the state. The box keeps its tab stop, its focus ring and its full contrast, because a read-only value is real and must not look disabled.",
|
|
249
|
-
"The invalid state does not rely on
|
|
249
|
+
"The invalid state does not rely on color alone. In the high-contrast scheme the theme paints every border the same color, so an invalid box also draws a thicker border. The message that says what is wrong belongs to the field or field group.",
|
|
250
250
|
"The target is larger than the box. A 24-pixel square around the box meets WCAG 2.2 success criterion 2.5.8 at every size and density, including size=\"sm\", where the box is 14 pixels. The label extends the target to the end of its text, and the hover wash covers exactly that area. The target is drawn around the box, so the row keeps its line height.",
|
|
251
|
-
"The mark stays visible under forced
|
|
251
|
+
"The mark stays visible under forced colors. It is a mask over a background color, and forced colors replace both, so Checkbox restates the pair in system colors."
|
|
252
252
|
]
|
|
253
253
|
}
|
|
254
254
|
},
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"title": "Playground",
|
|
361
361
|
"note": "One box with every axis on it, driven by the controls below the canvas. Click the label, not only the box: the target runs from the square to the end of the text.",
|
|
362
362
|
"language": "tsx",
|
|
363
|
-
"source": "<Checkbox description=\"
|
|
363
|
+
"source": "<Checkbox description=\"We will send the receipt by email.\" defaultChecked>\n Send receipt\n</Checkbox>;\n",
|
|
364
364
|
"verdict": "excerpt"
|
|
365
365
|
},
|
|
366
366
|
{
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
"title": "Inside a field, and inside a group of fields",
|
|
417
417
|
"note": "The box reads the field for its step and its four shared states and never for its identifier: it owns its own label, and a field’s label would name the same control twice.",
|
|
418
418
|
"language": "tsx",
|
|
419
|
-
"source": "<FieldGroup required>\n <FieldGroupLegend>
|
|
419
|
+
"source": "<FieldGroup required>\n <FieldGroupLegend>Notifications</FieldGroupLegend>\n <CheckboxGroup name=\"alerts\">\n <Checkbox value=\"approved\">Order approved</Checkbox>\n <Checkbox value=\"refused\">Order refused</Checkbox>\n </CheckboxGroup>\n</FieldGroup>;\n",
|
|
420
420
|
"verdict": "excerpt"
|
|
421
421
|
},
|
|
422
422
|
{
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
"title": "Content the family did not choose",
|
|
425
425
|
"note": "A label that wraps to three lines keeps the box on the first of them rather than in the middle of the block, an unbroken token breaks instead of taking the page with it, and a right-to-left label mirrors the whole row.",
|
|
426
426
|
"language": "tsx",
|
|
427
|
-
"source": "<Checkbox description=\"
|
|
427
|
+
"source": "<Checkbox description=\"The box stays on the first line of the label.\">\n I agree to receive communications about contract changes, delivery deadlines and changes to the\n returns policy.\n</Checkbox>;\n\n<Checkbox dir=\"rtl\">أوافق على تلقي رسائل حول التغييرات في العقد.</Checkbox>;\n",
|
|
428
428
|
"verdict": "excerpt"
|
|
429
429
|
},
|
|
430
430
|
{
|
package/dist/docs/checkbox.md
CHANGED
|
@@ -55,7 +55,7 @@ export default function CheckboxBasic() {
|
|
|
55
55
|
| `required` | `boolean` | — | Checkbox | The native attribute, passed through unchanged; Checkbox never writes it. A field marks necessity with aria-required instead, because the native attribute turns on browser constraint validation. |
|
|
56
56
|
| `description` | `ReactNode` | — | Checkbox | Help text under the label, referenced by aria-describedby. It sits outside the label, so it describes the control instead of naming it. |
|
|
57
57
|
| `name / value` | `string` | — / on | Checkbox | The native submission pair: a checked box submits value under name. Inside a checkbox group, a box without a name takes the group’s, and value is the entry the group’s selection holds. |
|
|
58
|
-
| `render` | `(props: CheckboxRootProps) => ReactNode` | — | Checkbox | Replaces the root element and receives every attribute it would carry. The props are typed against HTMLAttributes<HTMLElement>, so they can be spread onto a li or a label. The input cannot be replaced, because it holds the value and the platform’s keyboard
|
|
58
|
+
| `render` | `(props: CheckboxRootProps) => ReactNode` | — | Checkbox | Replaces the root element and receives every attribute it would carry. The props are typed against HTMLAttributes<HTMLElement>, so they can be spread onto a li or a label. The input cannot be replaced, because it holds the value and the platform’s keyboard behavior. |
|
|
59
59
|
| `ref` | `Ref<HTMLInputElement>` | — | Checkbox | Reaches the input. focus() and click() are the element’s own methods. |
|
|
60
60
|
| `className / style` | `string / CSSProperties` | — | Checkbox | Reach the root. Every other native prop reaches the input. |
|
|
61
61
|
| `CheckboxDefaultsProvider` | `{ size, variant, labelPlacement }` | — | a subtree | Sets size, variant and labelPlacement once for every box under it, merged over an outer provider. A box that states a value keeps it. A checkbox group around the box outranks the provider for all three, and a field or field group outranks it for size. |
|
|
@@ -78,13 +78,13 @@ export default function CheckboxBasic() {
|
|
|
78
78
|
|
|
79
79
|
## Rules
|
|
80
80
|
|
|
81
|
-
- Checkbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled
|
|
81
|
+
- Checkbox follows the WAI-ARIA Authoring Practices checkbox pattern (w3.org/WAI/ARIA/apg/patterns/checkbox/), and the native input supplies every part of it: the role, the checked and mixed states, Space to toggle, Enter left to the form, and disabled behavior. Checkbox adds no key listener, so the keyboard behavior is the platform’s in every language and in right-to-left documents.
|
|
82
82
|
- The label names the control through for, which points at an identifier Checkbox generates when you pass no id. The description sits outside the label and reaches the control through aria-describedby, so it is read as a description, and a press on it toggles nothing.
|
|
83
83
|
- Inside a required field the control carries aria-required, never the native required, because the native attribute turns on browser constraint validation and changes how the form submits. Pass required on the box to opt into the platform’s validation; Checkbox leaves it unchanged. disabled is the native attribute.
|
|
84
84
|
- A native checkbox has no read-only state, so Checkbox enforces one: it refuses the click that a pointer and Space both produce, and aria-readonly announces the state. The box keeps its tab stop, its focus ring and its full contrast, because a read-only value is real and must not look disabled.
|
|
85
|
-
- The invalid state does not rely on
|
|
85
|
+
- The invalid state does not rely on color alone. In the high-contrast scheme the theme paints every border the same color, so an invalid box also draws a thicker border. The message that says what is wrong belongs to the field or field group.
|
|
86
86
|
- The target is larger than the box. A 24-pixel square around the box meets WCAG 2.2 success criterion 2.5.8 at every size and density, including size="sm", where the box is 14 pixels. The label extends the target to the end of its text, and the hover wash covers exactly that area. The target is drawn around the box, so the row keeps its line height.
|
|
87
|
-
- The mark stays visible under forced
|
|
87
|
+
- The mark stays visible under forced colors. It is a mask over a background color, and forced colors replace both, so Checkbox restates the pair in system colors.
|
|
88
88
|
|
|
89
89
|
## Tokens
|
|
90
90
|
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
"title": "Text first, tokens when they arrive",
|
|
510
510
|
"note": "The block draws the plain text on the first paint and swaps in the tokens line by line when the engine answers: the height does not change, because each line is a row of the grid. The colors are the theme’s --slotted-code-* scale, and change with the scheme.",
|
|
511
511
|
"language": "tsx",
|
|
512
|
-
"source": "<CodeBlock\n code={source}\n highlight={async (code, language) =>
|
|
512
|
+
"source": "<CodeBlock\n code={source}\n highlight={async (code, language) => tokenize(code, language)}\n language=\"ts\"\n/>;\n",
|
|
513
513
|
"verdict": "excerpt"
|
|
514
514
|
},
|
|
515
515
|
{
|
package/dist/docs/code-block.md
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"part": "description",
|
|
128
128
|
"element": "span",
|
|
129
129
|
"required": false,
|
|
130
|
-
"purpose": "A second line under the title. It is inside the trigger, so it is part of the accessible name — “
|
|
130
|
+
"purpose": "A second line under the title. It is inside the trigger, so it is part of the accessible name — “Delivery, 3 of 12 items” is what a reader hears."
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"part": "actions",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"The heading is real. level renders h1 to h6 and the trigger is its only element, which is what the pattern requires; an accordion sets the level once for a whole set. level=\"none\" writes no heading semantics at all, for a disclosure that belongs to no outline.",
|
|
298
298
|
"aria-disabled appears on the trigger only when an Accordion refuses to let this panel close. That is the pattern’s own instruction for a set that requires one panel to stay open, and it leaves the control focusable and announced rather than removing it from the reader’s path.",
|
|
299
299
|
"The element is a button and a region rather than details and summary. What that costs is written down: a page with JavaScript disabled cannot open a panel. What it buys is the accordion pattern — a summary cannot be wrapped in a heading — a value the consumer can own, a request that carries a reason, and a panel that animates without interpolate-size.",
|
|
300
|
-
"The mark is never the only thing that says the state: aria-expanded says it to a reader, and the indicator turns rather than changing
|
|
300
|
+
"The mark is never the only thing that says the state: aria-expanded says it to a reader, and the indicator turns rather than changing color, so the high-contrast scheme and forced colors both keep it."
|
|
301
301
|
]
|
|
302
302
|
}
|
|
303
303
|
},
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"title": "Playground",
|
|
363
363
|
"note": "One disclosure with every axis on it, driven by the controls below the canvas. Tab lands on the trigger; Enter and Space are the platform’s.",
|
|
364
364
|
"language": "tsx",
|
|
365
|
-
"source": "<Collapsible defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
365
|
+
"source": "<Collapsible defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger>Delivery address</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>402 Maple Street — Seattle.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
366
366
|
"verdict": "excerpt"
|
|
367
367
|
},
|
|
368
368
|
{
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"title": "The three ways it is drawn",
|
|
371
371
|
"note": "plain paints no chrome, ruled puts a hairline above the header so a stack reads as one list, and framed is a card. All three keep the same geometry.",
|
|
372
372
|
"language": "tsx",
|
|
373
|
-
"source": "<Collapsible variant=\"framed\" defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
373
|
+
"source": "<Collapsible variant=\"framed\" defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger>Payment methods</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Credit card, ACH transfer and Zelle.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
374
374
|
"verdict": "excerpt"
|
|
375
375
|
},
|
|
376
376
|
{
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
"title": "The step the header sits at",
|
|
379
379
|
"note": "The title comes from the type scale, because a header is prose; the row’s height, padding, gap and mark come from the control scales, so a dense page is tighter rather than smaller.",
|
|
380
380
|
"language": "tsx",
|
|
381
|
-
"source": "<Collapsible size=\"lg\" defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger description=\"3
|
|
381
|
+
"source": "<Collapsible size=\"lg\" defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger description=\"3 of 12 items\">Summary</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Delivery scheduled for September 12.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
382
382
|
"verdict": "excerpt"
|
|
383
383
|
},
|
|
384
384
|
{
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"title": "The mark, and which side it stands on",
|
|
387
387
|
"note": "The chevron turns rather than pointing along the inline axis, so a right-to-left document needs no mirrored artwork; plus-minus is one pair drawn on one grid, and none draws nothing.",
|
|
388
388
|
"language": "tsx",
|
|
389
|
-
"source": "<Collapsible indicator=\"plus-minus\" togglePlacement=\"start\">\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
389
|
+
"source": "<Collapsible indicator=\"plus-minus\" togglePlacement=\"start\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Invoice</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Issued on September 3.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
390
390
|
"verdict": "excerpt"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
"title": "Where it sits in the outline",
|
|
395
395
|
"note": "level renders the heading element itself, so a screen reader’s heading list holds the disclosure at the right depth. none renders a div, for a control that belongs to no outline.",
|
|
396
396
|
"language": "tsx",
|
|
397
|
-
"source": "<Collapsible level=\"3\">\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
397
|
+
"source": "<Collapsible level=\"3\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Return conditions</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Thirty calendar days.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
398
398
|
"verdict": "excerpt"
|
|
399
399
|
},
|
|
400
400
|
{
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
"title": "A control beside the heading",
|
|
411
411
|
"note": "It is a sibling of the heading rather than a child, because the pattern requires the button to be the only element inside it — and a control inside a button is invalid besides.",
|
|
412
412
|
"language": "tsx",
|
|
413
|
-
"source": "<Collapsible variant=\"framed\" defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger>Regras de frete</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsibleActions>\n <Toolbar aria-label=\"
|
|
413
|
+
"source": "<Collapsible variant=\"framed\" defaultOpen>\n <CollapsibleHeader>\n <CollapsibleTrigger>Regras de frete</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsibleActions>\n <Toolbar aria-label=\"Rule actions\" size=\"sm\">\n <Button size=\"sm\" variant=\"ghost\">\n Edit\n </Button>\n </Toolbar>\n </CollapsibleActions>\n <CollapsiblePanel>Free shipping over $250.00.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
414
414
|
"verdict": "excerpt"
|
|
415
415
|
},
|
|
416
416
|
{
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
"title": "When the content exists",
|
|
419
419
|
"note": "eager builds it up front so the panel can transition closed, lazy builds it on the first open, active drops it each time, and until-found lets the browser’s own page search open the panel. A closed item under active commits once and reads no layout and no computed style; it creates no observer and no portal. Fifty closed items inside an Accordion, measured in Chrome: 7 ms of script and 23 ms to layout with a production build of React, 46 ms of script and 83 ms to layout with its development build.",
|
|
420
420
|
"language": "tsx",
|
|
421
|
-
"source": "<Collapsible mount=\"until-found\">\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
421
|
+
"source": "<Collapsible mount=\"until-found\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Delivery history</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Delivered on September 2 by Anna Rivers.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
422
422
|
"verdict": "excerpt"
|
|
423
423
|
},
|
|
424
424
|
{
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
"title": "Every state the family paints",
|
|
427
427
|
"note": "Hover lays a wash under the row and press goes one step further; disabled answers neither, because the browser has already taken the control out of action; loading holds the box open and says so.",
|
|
428
428
|
"language": "tsx",
|
|
429
|
-
"source": "<Collapsible loading defaultOpen mount=\"lazy\">\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
429
|
+
"source": "<Collapsible loading defaultOpen mount=\"lazy\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Delivery history</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>\n <Skeleton shape=\"text\" />\n </CollapsiblePanel>\n</Collapsible>;\n",
|
|
430
430
|
"verdict": "excerpt"
|
|
431
431
|
},
|
|
432
432
|
{
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
"title": "Content the family did not choose",
|
|
435
435
|
"note": "A long title grows the row instead of pushing the mark off the line, truncate clips it to one line with the whole string still in the DOM, and a title in another script reads its own way.",
|
|
436
436
|
"language": "tsx",
|
|
437
|
-
"source": "<Collapsible truncate>\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
437
|
+
"source": "<Collapsible truncate>\n <CollapsibleHeader>\n <CollapsibleTrigger>Return conditions for international orders</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Thirty calendar days.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
438
438
|
"verdict": "excerpt"
|
|
439
439
|
},
|
|
440
440
|
{
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"title": "The pattern’s table, and which device asked",
|
|
451
451
|
"note": "Enter and Space toggle because the trigger is a button; Tab reaches it like any other control, because the pattern keeps every disclosure in the page tab sequence.",
|
|
452
452
|
"language": "tsx",
|
|
453
|
-
"source": "<Collapsible onOpenChange={(open, request) => report(request.reason)}>\n <CollapsibleHeader>\n <CollapsibleTrigger>
|
|
453
|
+
"source": "<Collapsible onOpenChange={(open, request) => report(request.reason)}>\n <CollapsibleHeader>\n <CollapsibleTrigger>With the pointer, then with the keyboard</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>The reason changes with the device.</CollapsiblePanel>\n</Collapsible>;\n",
|
|
454
454
|
"verdict": "excerpt"
|
|
455
455
|
}
|
|
456
456
|
]
|
package/dist/docs/collapsible.md
CHANGED
|
@@ -16,9 +16,9 @@ Excerpt — not a complete module
|
|
|
16
16
|
```tsx
|
|
17
17
|
<Collapsible defaultOpen>
|
|
18
18
|
<CollapsibleHeader>
|
|
19
|
-
<CollapsibleTrigger>
|
|
19
|
+
<CollapsibleTrigger>Delivery address</CollapsibleTrigger>
|
|
20
20
|
</CollapsibleHeader>
|
|
21
|
-
<CollapsiblePanel>
|
|
21
|
+
<CollapsiblePanel>402 Maple Street — Seattle.</CollapsiblePanel>
|
|
22
22
|
</Collapsible>;
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -85,7 +85,7 @@ Excerpt — not a complete module
|
|
|
85
85
|
- The heading is real. level renders h1 to h6 and the trigger is its only element, which is what the pattern requires; an accordion sets the level once for a whole set. level="none" writes no heading semantics at all, for a disclosure that belongs to no outline.
|
|
86
86
|
- aria-disabled appears on the trigger only when an Accordion refuses to let this panel close. That is the pattern’s own instruction for a set that requires one panel to stay open, and it leaves the control focusable and announced rather than removing it from the reader’s path.
|
|
87
87
|
- The element is a button and a region rather than details and summary. What that costs is written down: a page with JavaScript disabled cannot open a panel. What it buys is the accordion pattern — a summary cannot be wrapped in a heading — a value the consumer can own, a request that carries a reason, and a panel that animates without interpolate-size.
|
|
88
|
-
- The mark is never the only thing that says the state: aria-expanded says it to a reader, and the indicator turns rather than changing
|
|
88
|
+
- The mark is never the only thing that says the state: aria-expanded says it to a reader, and the indicator turns rather than changing color, so the high-contrast scheme and forced colors both keep it.
|
|
89
89
|
|
|
90
90
|
## Tokens
|
|
91
91
|
|
|
@@ -102,9 +102,9 @@ Excerpt — not a complete module
|
|
|
102
102
|
```tsx
|
|
103
103
|
<Collapsible variant="framed" defaultOpen>
|
|
104
104
|
<CollapsibleHeader>
|
|
105
|
-
<CollapsibleTrigger>
|
|
105
|
+
<CollapsibleTrigger>Payment methods</CollapsibleTrigger>
|
|
106
106
|
</CollapsibleHeader>
|
|
107
|
-
<CollapsiblePanel>
|
|
107
|
+
<CollapsiblePanel>Credit card, ACH transfer and Zelle.</CollapsiblePanel>
|
|
108
108
|
</Collapsible>;
|
|
109
109
|
```
|
|
110
110
|
|
|
@@ -117,9 +117,9 @@ Excerpt — not a complete module
|
|
|
117
117
|
```tsx
|
|
118
118
|
<Collapsible size="lg" defaultOpen>
|
|
119
119
|
<CollapsibleHeader>
|
|
120
|
-
<CollapsibleTrigger description="3
|
|
120
|
+
<CollapsibleTrigger description="3 of 12 items">Summary</CollapsibleTrigger>
|
|
121
121
|
</CollapsibleHeader>
|
|
122
|
-
<CollapsiblePanel>
|
|
122
|
+
<CollapsiblePanel>Delivery scheduled for September 12.</CollapsiblePanel>
|
|
123
123
|
</Collapsible>;
|
|
124
124
|
```
|
|
125
125
|
|
|
@@ -132,9 +132,9 @@ Excerpt — not a complete module
|
|
|
132
132
|
```tsx
|
|
133
133
|
<Collapsible indicator="plus-minus" togglePlacement="start">
|
|
134
134
|
<CollapsibleHeader>
|
|
135
|
-
<CollapsibleTrigger>
|
|
135
|
+
<CollapsibleTrigger>Invoice</CollapsibleTrigger>
|
|
136
136
|
</CollapsibleHeader>
|
|
137
|
-
<CollapsiblePanel>
|
|
137
|
+
<CollapsiblePanel>Issued on September 3.</CollapsiblePanel>
|
|
138
138
|
</Collapsible>;
|
|
139
139
|
```
|
|
140
140
|
|
|
@@ -147,9 +147,9 @@ Excerpt — not a complete module
|
|
|
147
147
|
```tsx
|
|
148
148
|
<Collapsible level="3">
|
|
149
149
|
<CollapsibleHeader>
|
|
150
|
-
<CollapsibleTrigger>
|
|
150
|
+
<CollapsibleTrigger>Return conditions</CollapsibleTrigger>
|
|
151
151
|
</CollapsibleHeader>
|
|
152
|
-
<CollapsiblePanel>
|
|
152
|
+
<CollapsiblePanel>Thirty calendar days.</CollapsiblePanel>
|
|
153
153
|
</Collapsible>;
|
|
154
154
|
```
|
|
155
155
|
|
|
@@ -175,13 +175,13 @@ Excerpt — not a complete module
|
|
|
175
175
|
<CollapsibleTrigger>Regras de frete</CollapsibleTrigger>
|
|
176
176
|
</CollapsibleHeader>
|
|
177
177
|
<CollapsibleActions>
|
|
178
|
-
<Toolbar aria-label="
|
|
178
|
+
<Toolbar aria-label="Rule actions" size="sm">
|
|
179
179
|
<Button size="sm" variant="ghost">
|
|
180
|
-
|
|
180
|
+
Edit
|
|
181
181
|
</Button>
|
|
182
182
|
</Toolbar>
|
|
183
183
|
</CollapsibleActions>
|
|
184
|
-
<CollapsiblePanel>
|
|
184
|
+
<CollapsiblePanel>Free shipping over $250.00.</CollapsiblePanel>
|
|
185
185
|
</Collapsible>;
|
|
186
186
|
```
|
|
187
187
|
|
|
@@ -194,9 +194,9 @@ Excerpt — not a complete module
|
|
|
194
194
|
```tsx
|
|
195
195
|
<Collapsible mount="until-found">
|
|
196
196
|
<CollapsibleHeader>
|
|
197
|
-
<CollapsibleTrigger>
|
|
197
|
+
<CollapsibleTrigger>Delivery history</CollapsibleTrigger>
|
|
198
198
|
</CollapsibleHeader>
|
|
199
|
-
<CollapsiblePanel>
|
|
199
|
+
<CollapsiblePanel>Delivered on September 2 by Anna Rivers.</CollapsiblePanel>
|
|
200
200
|
</Collapsible>;
|
|
201
201
|
```
|
|
202
202
|
|
|
@@ -209,7 +209,7 @@ Excerpt — not a complete module
|
|
|
209
209
|
```tsx
|
|
210
210
|
<Collapsible loading defaultOpen mount="lazy">
|
|
211
211
|
<CollapsibleHeader>
|
|
212
|
-
<CollapsibleTrigger>
|
|
212
|
+
<CollapsibleTrigger>Delivery history</CollapsibleTrigger>
|
|
213
213
|
</CollapsibleHeader>
|
|
214
214
|
<CollapsiblePanel>
|
|
215
215
|
<Skeleton shape="text" />
|
|
@@ -226,9 +226,9 @@ Excerpt — not a complete module
|
|
|
226
226
|
```tsx
|
|
227
227
|
<Collapsible truncate>
|
|
228
228
|
<CollapsibleHeader>
|
|
229
|
-
<CollapsibleTrigger>
|
|
229
|
+
<CollapsibleTrigger>Return conditions for international orders</CollapsibleTrigger>
|
|
230
230
|
</CollapsibleHeader>
|
|
231
|
-
<CollapsiblePanel>
|
|
231
|
+
<CollapsiblePanel>Thirty calendar days.</CollapsiblePanel>
|
|
232
232
|
</Collapsible>;
|
|
233
233
|
```
|
|
234
234
|
|
|
@@ -253,8 +253,8 @@ Excerpt — not a complete module
|
|
|
253
253
|
```tsx
|
|
254
254
|
<Collapsible onOpenChange={(open, request) => report(request.reason)}>
|
|
255
255
|
<CollapsibleHeader>
|
|
256
|
-
<CollapsibleTrigger>
|
|
256
|
+
<CollapsibleTrigger>With the pointer, then with the keyboard</CollapsibleTrigger>
|
|
257
257
|
</CollapsibleHeader>
|
|
258
|
-
<CollapsiblePanel>
|
|
258
|
+
<CollapsiblePanel>The reason changes with the device.</CollapsiblePanel>
|
|
259
259
|
</Collapsible>;
|
|
260
260
|
```
|