@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
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"part": "root",
|
|
125
125
|
"element": "div (ColorPicker)",
|
|
126
126
|
"required": true,
|
|
127
|
-
"purpose": "The panel. Carries data-ui=\"color-picker\", data-size, data-format, data-disabled, data-readonly, data-invalid and data-out-of-gamut, and every
|
|
127
|
+
"purpose": "The panel. Carries data-ui=\"color-picker\", data-size, data-format, data-disabled, data-readonly, data-invalid and data-out-of-gamut, and every color it paints as a runtime property: --slotted-color-picker-color, -opaque, -hue, -x, -y, -alpha, -previous, -contrast-with."
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"part": "area",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"part": "channel-thumb",
|
|
149
149
|
"element": "div role=\"slider\"",
|
|
150
150
|
"required": false,
|
|
151
|
-
"purpose": "The APG slider: arrows ±1, Shift and PageUp/PageDown ±10, Home and End to the ends. It travels inside its track, so at either end it still sits on the
|
|
151
|
+
"purpose": "The APG slider: arrows ±1, Shift and PageUp/PageDown ±10, Home and End to the ends. It travels inside its track, so at either end it still sits on the color it names."
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"part": "row",
|
|
@@ -160,19 +160,19 @@
|
|
|
160
160
|
"part": "swatch",
|
|
161
161
|
"element": "span role=\"img\"",
|
|
162
162
|
"required": false,
|
|
163
|
-
"purpose": "The
|
|
163
|
+
"purpose": "The color now, over the transparency grid, named by its value."
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"part": "previous",
|
|
167
167
|
"element": "button",
|
|
168
168
|
"required": false,
|
|
169
|
-
"purpose": "The
|
|
169
|
+
"purpose": "The color the panel opened with, beside the color now; pressing it restores that color with the reason \"select\"."
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"part": "input",
|
|
173
173
|
"element": "input, in a text-field frame (ColorPickerInput)",
|
|
174
174
|
"required": false,
|
|
175
|
-
"purpose": "The value as text in any notation. A
|
|
175
|
+
"purpose": "The value as text in any notation. A color still being written is aria-invalid and left alone; Enter or leaving commits it in the current notation, or puts back the last valid one. Always left-to-right."
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"part": "format",
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
"part": "eyedropper",
|
|
185
185
|
"element": "button (ColorPickerEyedropper)",
|
|
186
186
|
"required": false,
|
|
187
|
-
"purpose": "The platform’s EyeDropper, drawn only where window.EyeDropper exists; the
|
|
187
|
+
"purpose": "The platform’s EyeDropper, drawn only where window.EyeDropper exists; the color picked arrives with the reason \"programmatic\"."
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"part": "presets",
|
|
191
191
|
"element": "div role=\"radiogroup\" (ColorPickerPresets)",
|
|
192
192
|
"required": false,
|
|
193
|
-
"purpose": "
|
|
193
|
+
"purpose": "Colors offered as one press; arrow keys move and choose, the radio group’s own way."
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
"part": "preset",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"part": "contrast",
|
|
203
203
|
"element": "div aria-live=\"polite\" (ColorPickerContrast)",
|
|
204
204
|
"required": false,
|
|
205
|
-
"purpose": "Drawn when contrastWith is given: Aa in the
|
|
205
|
+
"purpose": "Drawn when contrastWith is given: Aa in the color over that background, the WCAG ratio, and the level in words — AAA, AA, AA large or Fail."
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"part": "contrast-sample",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"part": "gamut",
|
|
227
227
|
"element": "p role=\"status\" (ColorPickerGamut)",
|
|
228
228
|
"required": false,
|
|
229
|
-
"purpose": "Drawn when an oklch value lies outside sRGB: the value is kept as written and the panel says the screen shows the nearest
|
|
229
|
+
"purpose": "Drawn when an oklch value lies outside sRGB: the value is kept as written and the panel says the screen shows the nearest color."
|
|
230
230
|
}
|
|
231
231
|
],
|
|
232
232
|
"api": [
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
"type": "string",
|
|
250
250
|
"defaultValue": "—",
|
|
251
251
|
"appliesTo": "ColorPicker, ColorField",
|
|
252
|
-
"description": "Present means controlled: a
|
|
252
|
+
"description": "Present means controlled: a color in hex, rgb, hsl or oklch"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"name": "defaultValue",
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
"type": "boolean",
|
|
271
271
|
"defaultValue": "true",
|
|
272
272
|
"appliesTo": "ColorPicker, ColorField",
|
|
273
|
-
"description": "Whether the
|
|
273
|
+
"description": "Whether the color carries an alpha channel"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"name": "size",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"type": "readonly string[]",
|
|
285
285
|
"defaultValue": "—",
|
|
286
286
|
"appliesTo": "ColorPicker, ColorField, ColorPickerDefaultsProvider",
|
|
287
|
-
"description": "
|
|
287
|
+
"description": "Colors offered as one press"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"name": "contrastWith",
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"type": "boolean",
|
|
299
299
|
"defaultValue": "from the field, or false",
|
|
300
300
|
"appliesTo": "ColorPicker, ColorField",
|
|
301
|
-
"description": "Out of the tab order; the
|
|
301
|
+
"description": "Out of the tab order; the color greyed"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"name": "readOnly",
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
{
|
|
357
357
|
"name": "onValueChange",
|
|
358
358
|
"payload": "(value: string, request: ChangeRequest<string>)",
|
|
359
|
-
"when": "Before the
|
|
359
|
+
"when": "Before the color moves, in the current notation: reason \"pointer\" for a drag, \"keyboard\" for a key or typed text, \"select\" for a preset, the restore or a notation change, \"programmatic\" for the eyedropper."
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"name": "onFormatChange",
|
|
@@ -370,11 +370,11 @@
|
|
|
370
370
|
}
|
|
371
371
|
],
|
|
372
372
|
"accessibility": [
|
|
373
|
-
"Each thumb is a slider with a name and a value text in words — \"Hue, 221°\", \"Opacity, 60 %\", \"Saturation and brightness, 84 %, 92 %\" — so the
|
|
373
|
+
"Each thumb is a slider with a name and a value text in words — \"Hue, 221°\", \"Opacity, 60 %\", \"Saturation and brightness, 84 %, 92 %\" — so the color is never told by color alone; the area thumb carries aria-roledescription \"2D slider\", the React Aria convention for a slider with two axes.",
|
|
374
374
|
"The keyboard is the APG slider for each channel and the APG radio group for the presets; in a right-to-left document the horizontal arrows follow the mirrored axis.",
|
|
375
|
-
"The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the
|
|
376
|
-
"The text is always left-to-right: a
|
|
377
|
-
"Forced
|
|
375
|
+
"The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the color hears when it crosses AA.",
|
|
376
|
+
"The text is always left-to-right: a color notation reads the same in every language.",
|
|
377
|
+
"Forced colors keep the reader’s colors visible: the area, the channels, the swatches and the presets opt out of the system palette, because a color picker whose colors are replaced shows nothing."
|
|
378
378
|
]
|
|
379
379
|
}
|
|
380
380
|
},
|
|
@@ -440,17 +440,17 @@
|
|
|
440
440
|
{
|
|
441
441
|
"id": "playground",
|
|
442
442
|
"title": "Playground",
|
|
443
|
-
"note": "The whole panel. Drag in the area, move the hue and the opacity, type a
|
|
443
|
+
"note": "The whole panel. Drag in the area, move the hue and the opacity, type a color in any notation, change the notation, pick a preset; the value under the panel is what onValueChange receives.",
|
|
444
444
|
"language": "tsx",
|
|
445
445
|
"source": "<ColorPicker defaultValue=\"#2563EB\" onValueChange={(value) => setColor(value)} />;\n",
|
|
446
446
|
"verdict": "excerpt"
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
"id": "field",
|
|
450
|
-
"title": "A field that holds a
|
|
450
|
+
"title": "A field that holds a color",
|
|
451
451
|
"note": "The swatch in the field’s start opens the panel in a popover; the text takes any notation and keeps the one shown. In a Field, the label names the text.",
|
|
452
452
|
"language": "tsx",
|
|
453
|
-
"source": "<Field>\n <FieldLabel>
|
|
453
|
+
"source": "<Field>\n <FieldLabel>Primary color</FieldLabel>\n <ColorField defaultValue=\"#2563EB\" presets={brand} />\n</Field>;\n",
|
|
454
454
|
"verdict": "excerpt"
|
|
455
455
|
},
|
|
456
456
|
{
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
465
|
"id": "formats",
|
|
466
|
-
"title": "Four notations, one
|
|
466
|
+
"title": "Four notations, one color",
|
|
467
467
|
"note": "The value comes back in the notation shown. Change it in the menu and the value is rewritten; type another notation and it is converted to this one.",
|
|
468
468
|
"language": "tsx",
|
|
469
469
|
"source": "<ColorPicker defaultValue=\"#2563EB\" format={format} onFormatChange={setFormat} />;\n",
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
{
|
|
473
473
|
"id": "alpha",
|
|
474
474
|
"title": "Opacity",
|
|
475
|
-
"note": "The alpha channel fades the
|
|
475
|
+
"note": "The alpha channel fades the color over the transparency grid, drawn from the theme’s own surfaces. alpha={false} removes it for a color that must be opaque — a brand color, a text color.",
|
|
476
476
|
"language": "tsx",
|
|
477
477
|
"source": "<ColorPicker defaultValue=\"rgb(22 163 74 / 60%)\" />;\n<ColorPicker defaultValue=\"#16A34A\" alpha={false} />;\n",
|
|
478
478
|
"verdict": "excerpt"
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
{
|
|
489
489
|
"id": "contrast",
|
|
490
490
|
"title": "Contrast against the background it will sit on",
|
|
491
|
-
"note": "contrastWith names the background; the panel shows Aa in the
|
|
491
|
+
"note": "contrastWith names the background; the panel shows Aa in the color over it, the WCAG ratio and the level in words. An alpha color is composited first, because that is what the reader sees.",
|
|
492
492
|
"language": "tsx",
|
|
493
493
|
"source": "<ColorPicker defaultValue=\"#64748B\" contrastWith=\"#FFFFFF\" />;\n",
|
|
494
494
|
"verdict": "excerpt"
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
{
|
|
497
497
|
"id": "states",
|
|
498
498
|
"title": "Disabled, read-only and out of gamut",
|
|
499
|
-
"note": "Disabled greys the
|
|
499
|
+
"note": "Disabled greys the color and takes the panel out of the tab order; read-only keeps the sliders focusable and moves nothing; an oklch color outside sRGB is said, never quietly clipped.",
|
|
500
500
|
"language": "tsx",
|
|
501
501
|
"source": "<ColorPicker disabled defaultValue=\"#64748B\" />;\n<ColorPicker readOnly defaultValue=\"#DB2777\" />;\n<ColorPicker defaultValue=\"oklch(0.9 0.3 150)\" />;\n",
|
|
502
502
|
"verdict": "excerpt"
|
|
@@ -46,14 +46,14 @@ Excerpt — not a complete module
|
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
47
|
| `variant` | `'outline' \| 'subtle'` | outline | ColorField | The text-field frame of the field |
|
|
48
48
|
| `required` | `boolean` | from the field | ColorField | aria-required on the text, never the native attribute |
|
|
49
|
-
| `value` | `string` | — | ColorPicker, ColorField | Present means controlled: a
|
|
49
|
+
| `value` | `string` | — | ColorPicker, ColorField | Present means controlled: a color in hex, rgb, hsl or oklch |
|
|
50
50
|
| `defaultValue` | `string` | #000000 | ColorPicker, ColorField | What an uncontrolled picker starts from |
|
|
51
51
|
| `format` | `'hex' \| 'rgb' \| 'hsl' \| 'oklch'` | hex | ColorPicker, ColorField, ColorPickerDefaultsProvider | The notation the value is written in; defaults to the value’s own, then to the provider’s. defaultFormat is the uncontrolled half |
|
|
52
|
-
| `alpha` | `boolean` | true | ColorPicker, ColorField | Whether the
|
|
52
|
+
| `alpha` | `boolean` | true | ColorPicker, ColorField | Whether the color carries an alpha channel |
|
|
53
53
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | ColorPicker, ColorField, ColorPickerDefaultsProvider | The step, read from the field first |
|
|
54
|
-
| `presets` | `readonly string[]` | — | ColorPicker, ColorField, ColorPickerDefaultsProvider |
|
|
54
|
+
| `presets` | `readonly string[]` | — | ColorPicker, ColorField, ColorPickerDefaultsProvider | Colors offered as one press |
|
|
55
55
|
| `contrastWith` | `string` | — | ColorPicker, ColorField | The background the contrast is measured against; absent, no contrast is drawn |
|
|
56
|
-
| `disabled` | `boolean` | from the field, or false | ColorPicker, ColorField | Out of the tab order; the
|
|
56
|
+
| `disabled` | `boolean` | from the field, or false | ColorPicker, ColorField | Out of the tab order; the color greyed |
|
|
57
57
|
| `readOnly` | `boolean` | from the field, or false | ColorPicker, ColorField | Focusable and legible; nothing moves |
|
|
58
58
|
| `invalid` | `boolean` | from the field, or false | ColorPicker, ColorField | data-invalid on the root; aria-invalid on the text |
|
|
59
59
|
| `open` | `boolean` | false | ColorField | Present means the consumer owns whether the panel is open; defaultOpen is the uncontrolled half |
|
|
@@ -66,7 +66,7 @@ Excerpt — not a complete module
|
|
|
66
66
|
|
|
67
67
|
| Name | Payload | When |
|
|
68
68
|
| --- | --- | --- |
|
|
69
|
-
| `onValueChange` | `(value: string, request: ChangeRequest<string>)` | Before the
|
|
69
|
+
| `onValueChange` | `(value: string, request: ChangeRequest<string>)` | Before the color moves, in the current notation: reason "pointer" for a drag, "keyboard" for a key or typed text, "select" for a preset, the restore or a notation change, "programmatic" for the eyedropper. |
|
|
70
70
|
| `onFormatChange` | `(format: ColorFormat, request: ChangeRequest<ColorFormat>)` | Before the notation changes, with reason "select". |
|
|
71
71
|
| `onOpenChange` | `(open: boolean, request)` | On ColorField, before the popover opens or closes. |
|
|
72
72
|
|
|
@@ -81,11 +81,11 @@ Excerpt — not a complete module
|
|
|
81
81
|
|
|
82
82
|
## Rules
|
|
83
83
|
|
|
84
|
-
- Each thumb is a slider with a name and a value text in words — "Hue, 221°", "Opacity, 60 %", "Saturation and brightness, 84 %, 92 %" — so the
|
|
84
|
+
- Each thumb is a slider with a name and a value text in words — "Hue, 221°", "Opacity, 60 %", "Saturation and brightness, 84 %, 92 %" — so the color is never told by color alone; the area thumb carries aria-roledescription "2D slider", the React Aria convention for a slider with two axes.
|
|
85
85
|
- The keyboard is the APG slider for each channel and the APG radio group for the presets; in a right-to-left document the horizontal arrows follow the mirrored axis.
|
|
86
|
-
- The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the
|
|
87
|
-
- The text is always left-to-right: a
|
|
88
|
-
- Forced
|
|
86
|
+
- The contrast part names the level in words beside the ratio, and it is aria-live polite, so a reader adjusting the color hears when it crosses AA.
|
|
87
|
+
- The text is always left-to-right: a color notation reads the same in every language.
|
|
88
|
+
- Forced colors keep the reader’s colors visible: the area, the channels, the swatches and the presets opt out of the system palette, because a color picker whose colors are replaced shows nothing.
|
|
89
89
|
|
|
90
90
|
## Tokens
|
|
91
91
|
|
|
@@ -93,7 +93,7 @@ Excerpt — not a complete module
|
|
|
93
93
|
|
|
94
94
|
## Examples
|
|
95
95
|
|
|
96
|
-
### A field that holds a
|
|
96
|
+
### A field that holds a color
|
|
97
97
|
|
|
98
98
|
The swatch in the field’s start opens the panel in a popover; the text takes any notation and keeps the one shown. In a Field, the label names the text.
|
|
99
99
|
|
|
@@ -101,7 +101,7 @@ Excerpt — not a complete module
|
|
|
101
101
|
|
|
102
102
|
```tsx
|
|
103
103
|
<Field>
|
|
104
|
-
<FieldLabel>
|
|
104
|
+
<FieldLabel>Primary color</FieldLabel>
|
|
105
105
|
<ColorField defaultValue="#2563EB" presets={brand} />
|
|
106
106
|
</Field>;
|
|
107
107
|
```
|
|
@@ -120,7 +120,7 @@ Excerpt — not a complete module
|
|
|
120
120
|
</ColorPicker>;
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
### Four notations, one
|
|
123
|
+
### Four notations, one color
|
|
124
124
|
|
|
125
125
|
The value comes back in the notation shown. Change it in the menu and the value is rewritten; type another notation and it is converted to this one.
|
|
126
126
|
|
|
@@ -132,7 +132,7 @@ Excerpt — not a complete module
|
|
|
132
132
|
|
|
133
133
|
### Opacity
|
|
134
134
|
|
|
135
|
-
The alpha channel fades the
|
|
135
|
+
The alpha channel fades the color over the transparency grid, drawn from the theme’s own surfaces. alpha={false} removes it for a color that must be opaque — a brand color, a text color.
|
|
136
136
|
|
|
137
137
|
Excerpt — not a complete module
|
|
138
138
|
|
|
@@ -155,7 +155,7 @@ Excerpt — not a complete module
|
|
|
155
155
|
|
|
156
156
|
### Contrast against the background it will sit on
|
|
157
157
|
|
|
158
|
-
contrastWith names the background; the panel shows Aa in the
|
|
158
|
+
contrastWith names the background; the panel shows Aa in the color over it, the WCAG ratio and the level in words. An alpha color is composited first, because that is what the reader sees.
|
|
159
159
|
|
|
160
160
|
Excerpt — not a complete module
|
|
161
161
|
|
|
@@ -165,7 +165,7 @@ Excerpt — not a complete module
|
|
|
165
165
|
|
|
166
166
|
### Disabled, read-only and out of gamut
|
|
167
167
|
|
|
168
|
-
Disabled greys the
|
|
168
|
+
Disabled greys the color and takes the panel out of the tab order; read-only keeps the sliders focusable and moves nothing; an oklch color outside sRGB is said, never quietly clipped.
|
|
169
169
|
|
|
170
170
|
Excerpt — not a complete module
|
|
171
171
|
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"type": "GridColumnState",
|
|
228
228
|
"defaultValue": "—",
|
|
229
229
|
"appliesTo": "ColumnManager",
|
|
230
|
-
"description": "Present means the consumer owns the state, for the life of the component;
|
|
230
|
+
"description": "Present means the consumer owns the state, for the life of the component; normalized against columns"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"name": "defaultColumnState",
|
|
@@ -58,7 +58,7 @@ const manager = useRef<ColumnManagerHandle>(null);
|
|
|
58
58
|
| Name | Type | Default | Applies to | Description |
|
|
59
59
|
| --- | --- | --- | --- | --- |
|
|
60
60
|
| `columns` | `readonly GridColumn<Row>[]` | — | ColumnManager | The grid’s columns: id, label, description, hideable, reorderable. Every column is listed |
|
|
61
|
-
| `columnState` | `GridColumnState` | — | ColumnManager | Present means the consumer owns the state, for the life of the component;
|
|
61
|
+
| `columnState` | `GridColumnState` | — | ColumnManager | Present means the consumer owns the state, for the life of the component; normalized against columns |
|
|
62
62
|
| `defaultColumnState` | `Partial<GridColumnState>` | — | ColumnManager | The uncontrolled start, read once, and the target of Restore defaults in both modes |
|
|
63
63
|
| `outOfSpace` | `GridOutOfSpace` | { popin: [], hidden: [] } | ColumnManager | The columns the grid took out for room — onOutOfSpaceChange or handle.getOutOfSpace() — listed with Shown in row for popin and Hidden for space for hidden, never written to the state |
|
|
64
64
|
| `presentation` | `'popover' \| 'drawer' \| 'inline'` | popover | ColumnManager, ColumnManagerProvider | A popover on the trigger, a drawer at the end, or the panel in place |
|
package/dist/docs/combobox.json
CHANGED
|
@@ -799,7 +799,7 @@
|
|
|
799
799
|
],
|
|
800
800
|
"accessibility": [
|
|
801
801
|
"The input has role=\"combobox\" with aria-autocomplete, aria-expanded and aria-controls. The popup has role=\"listbox\", and each row has role=\"option\". The trigger button is out of the tab sequence, as the ARIA combobox pattern requires.",
|
|
802
|
-
"Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing
|
|
802
|
+
"Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing behavior. The highlight moves through aria-activedescendant, and the caret does not move with it.",
|
|
803
803
|
"Escape works in two steps, both named by the pattern. With the popup open, it closes the popup and keeps the text. With the popup closed, it restores the label of the chosen option, and a second press clears the selection.",
|
|
804
804
|
"The status row is a polite live region. It announces how many options matched, and \"Loading…\" while a request is in flight.",
|
|
805
805
|
"Tab commits nothing: an option the reader arrowed past is not a choice, which is where the combobox differs from the select. Tab does accept an inline completion that is still showing."
|
package/dist/docs/combobox.md
CHANGED
|
@@ -183,7 +183,7 @@ export default function ComboboxBasic() {
|
|
|
183
183
|
## Rules
|
|
184
184
|
|
|
185
185
|
- The input has role="combobox" with aria-autocomplete, aria-expanded and aria-controls. The popup has role="listbox", and each row has role="option". The trigger button is out of the tab sequence, as the ARIA combobox pattern requires.
|
|
186
|
-
- Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing
|
|
186
|
+
- Focus stays on the input, so Home, End, ArrowLeft, ArrowRight, Backspace and Delete keep their text-editing behavior. The highlight moves through aria-activedescendant, and the caret does not move with it.
|
|
187
187
|
- Escape works in two steps, both named by the pattern. With the popup open, it closes the popup and keeps the text. With the popup closed, it restores the label of the chosen option, and a second press clears the selection.
|
|
188
188
|
- The status row is a polite live region. It announces how many options matched, and "Loading…" while a request is in flight.
|
|
189
189
|
- Tab commits nothing: an option the reader arrowed past is not a choice, which is where the combobox differs from the select. Tab does accept an inline completion that is still showing.
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
{
|
|
235
235
|
"id": "states",
|
|
236
236
|
"title": "States",
|
|
237
|
-
"note": "Three tiles: at rest nothing is painted; open draws the inward mark in the
|
|
237
|
+
"note": "Three tiles: at rest nothing is painted; open draws the inward mark in the color that separates two surfaces; disabled paints nothing either; pressed exists only for the half second a finger is held, and turns off selection rather than painting.",
|
|
238
238
|
"language": "css",
|
|
239
239
|
"source": "[data-ui='context-menu'][data-open] {\n --slotted-context-menu-mark-color: var(--slotted-tone-accent-border);\n}\n[data-ui='context-menu'][data-pressed] {\n opacity: 0.9;\n}\n",
|
|
240
240
|
"verdict": "excerpt"
|
|
@@ -192,7 +192,7 @@ Excerpt — not a complete module
|
|
|
192
192
|
|
|
193
193
|
### States
|
|
194
194
|
|
|
195
|
-
Three tiles: at rest nothing is painted; open draws the inward mark in the
|
|
195
|
+
Three tiles: at rest nothing is painted; open draws the inward mark in the color that separates two surfaces; disabled paints nothing either; pressed exists only for the half second a finger is held, and turns off selection rather than painting.
|
|
196
196
|
|
|
197
197
|
Excerpt — not a complete module
|
|
198
198
|
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"part": "decrement",
|
|
154
154
|
"element": "button[type=button][tabindex=-1]",
|
|
155
155
|
"required": false,
|
|
156
|
-
"purpose": "Steps down by step — one major unit by default, not one cent — by largeStep with Shift and by smallStep with Alt. Held, it repeats. Disabled at min, and out of the tab order because the arrow keys reach the same
|
|
156
|
+
"purpose": "Steps down by step — one major unit by default, not one cent — by largeStep with Shift and by smallStep with Alt. Held, it repeats. Disabled at min, and out of the tab order because the arrow keys reach the same behavior from the control."
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"part": "increment",
|
|
@@ -464,9 +464,9 @@
|
|
|
464
464
|
"The frame carries no role. WAI-ARIA requires the children of a spinbutton to be non-interactive and presentational, so the two steppers are the control’s siblings inside a box that announces nothing.",
|
|
465
465
|
"Under cents-first entry the caret is put back after the last digit on every edit, and it decides nothing while it is anywhere else: a digit typed against the front of R$ 0,00 is two cents, not twenty reais, because the digits that changed are read from the difference between the text before the edit and the text after it. That is legal here and forbidden in number-field for one reason: the text is generated rather than typed, so there is no reader’s caret to preserve and exactly one position where the next keystroke means something. A separator keystroke is refused outright rather than silently swallowed, and the sign is a key of its own so it never enters the digit run.",
|
|
466
466
|
"inputMode is numeric under cents-first entry — the separator is never typed and the sign is a single key, so the numeric keypad is complete for the task — and derived from the format under natural entry. It is never derived from the user agent, which would be a hydration mismatch.",
|
|
467
|
-
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
467
|
+
"aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled and readonly are native, because that is what those two words mean.",
|
|
468
468
|
"transaction-amount and transaction-currency are the standard autofill field names for a payment amount, and naming a field’s purpose is what WCAG 2.2 SC 1.3.5 asks for. The family leaves autoComplete off by default and documents the token, because most amounts in a back office are not payment amounts.",
|
|
469
|
-
"The invalid state is never
|
|
469
|
+
"The invalid state is never color alone: aria-invalid announces it and the field’s error says it in words. In the high-contrast scheme the border cannot carry it at all, which is why it never has to."
|
|
470
470
|
]
|
|
471
471
|
}
|
|
472
472
|
},
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
"title": "Playground",
|
|
570
570
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type 1, 2, 3, 4 without touching a separator: the digits enter at the cent and shift left.",
|
|
571
571
|
"language": "tsx",
|
|
572
|
-
"source": "<Field>\n <FieldLabel>
|
|
572
|
+
"source": "<Field>\n <FieldLabel>Order total</FieldLabel>\n <CurrencyField currency=\"BRL\" defaultValue={1480} locale=\"pt-BR\" min={0} />\n <FieldDescription>Type digits only: 1234 becomes R$ 12,34.</FieldDescription>\n</Field>;\n",
|
|
573
573
|
"verdict": "excerpt"
|
|
574
574
|
},
|
|
575
575
|
{
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
"title": "The symbol inside the amount, and the symbol beside it",
|
|
642
642
|
"note": "Both are here because choosing wrongly is the mistake: the symbol from currency is selected, copied and parsed with the amount, and the one in start is none of those things.",
|
|
643
643
|
"language": "tsx",
|
|
644
|
-
"source": "// Inside: R$ moves with the locale, is copied with the amount and is\n// what aria-valuetext announces.\n<CurrencyField currency=\"BRL\" defaultValue={1480} locale=\"pt-BR\" />;\n\n// Beside: a label rather than part of the number. The amount is written\n// without a symbol, and the adornment is never parsed.\n<CurrencyField\n currency=\"BRL\"\n currencyDisplay=\"none\"\n defaultValue={1480}\n end=\"
|
|
644
|
+
"source": "// Inside: R$ moves with the locale, is copied with the amount and is\n// what aria-valuetext announces.\n<CurrencyField currency=\"BRL\" defaultValue={1480} locale=\"pt-BR\" />;\n\n// Beside: a label rather than part of the number. The amount is written\n// without a symbol, and the adornment is never parsed.\n<CurrencyField\n currency=\"BRL\"\n currencyDisplay=\"none\"\n defaultValue={1480}\n end=\"per month\"\n locale=\"pt-BR\"\n start=\"R$\"\n/>;\n",
|
|
645
645
|
"verdict": "excerpt"
|
|
646
646
|
},
|
|
647
647
|
{
|
|
@@ -15,9 +15,9 @@ Excerpt — not a complete module
|
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
17
|
<Field>
|
|
18
|
-
<FieldLabel>
|
|
18
|
+
<FieldLabel>Order total</FieldLabel>
|
|
19
19
|
<CurrencyField currency="BRL" defaultValue={1480} locale="pt-BR" min={0} />
|
|
20
|
-
<FieldDescription>
|
|
20
|
+
<FieldDescription>Type digits only: 1234 becomes R$ 12,34.</FieldDescription>
|
|
21
21
|
</Field>;
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -108,9 +108,9 @@ Excerpt — not a complete module
|
|
|
108
108
|
- The frame carries no role. WAI-ARIA requires the children of a spinbutton to be non-interactive and presentational, so the two steppers are the control’s siblings inside a box that announces nothing.
|
|
109
109
|
- Under cents-first entry the caret is put back after the last digit on every edit, and it decides nothing while it is anywhere else: a digit typed against the front of R$ 0,00 is two cents, not twenty reais, because the digits that changed are read from the difference between the text before the edit and the text after it. That is legal here and forbidden in number-field for one reason: the text is generated rather than typed, so there is no reader’s caret to preserve and exactly one position where the next keystroke means something. A separator keystroke is refused outright rather than silently swallowed, and the sign is a key of its own so it never enters the digit run.
|
|
110
110
|
- inputMode is numeric under cents-first entry — the separator is never typed and the sign is a single key, so the numeric keypad is complete for the task — and derived from the format under natural entry. It is never derived from the user agent, which would be a hydration mismatch.
|
|
111
|
-
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit
|
|
111
|
+
- aria-required, never the native required. The native attribute engages browser constraint validation and changes submit behavior, which the library must not impose as a side effect of describing a field. disabled and readonly are native, because that is what those two words mean.
|
|
112
112
|
- transaction-amount and transaction-currency are the standard autofill field names for a payment amount, and naming a field’s purpose is what WCAG 2.2 SC 1.3.5 asks for. The family leaves autoComplete off by default and documents the token, because most amounts in a back office are not payment amounts.
|
|
113
|
-
- The invalid state is never
|
|
113
|
+
- The invalid state is never color alone: aria-invalid announces it and the field’s error says it in words. In the high-contrast scheme the border cannot carry it at all, which is why it never has to.
|
|
114
114
|
|
|
115
115
|
## Tokens
|
|
116
116
|
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"part": "message",
|
|
190
190
|
"element": "div around a ResultState",
|
|
191
191
|
"required": false,
|
|
192
|
-
"purpose": "status=\"empty\" or \"error\",
|
|
192
|
+
"purpose": "status=\"empty\" or \"error\", centerd in the body; the error names Try again when onRetry is given."
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"part": "retry",
|
package/dist/docs/data-grid.json
CHANGED
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
"type": "GridColumnState",
|
|
610
610
|
"defaultValue": "—",
|
|
611
611
|
"appliesTo": "DataGrid",
|
|
612
|
-
"description": "order, widths, hidden and pinned. Present puts the arrangement in controlled mode; it is
|
|
612
|
+
"description": "order, widths, hidden and pinned. Present puts the arrangement in controlled mode; it is normalized against columns."
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
615
|
"name": "defaultColumnState",
|
|
@@ -1211,7 +1211,7 @@
|
|
|
1211
1211
|
}
|
|
1212
1212
|
],
|
|
1213
1213
|
"accessibility": [
|
|
1214
|
-
"`columns`, `disabledKeys` and a function `rowKey` are compared by identity: a new array or function on a render of the parent re-renders every mounted row, so declare them at module scope or
|
|
1214
|
+
"`columns`, `disabledKeys` and a function `rowKey` are compared by identity: a new array or function on a render of the parent re-renders every mounted row, so declare them at module scope or memoize them. The renderers — `cellRenderers`, `editorRenderers`, `renderCell`, `renderEditor`, `renderHeader`, `renderGroup`, `renderDetail` — `messages` and `tree` are read when a row renders and may be written inline. A row renders again for its own row object, selection, cursor, edit or expansion, and for a change of `columns` or the language; a renderer whose output reads state outside its row is refreshed by memoizing `columns` on that state.",
|
|
1215
1215
|
"The root is role=\"grid\": a composite widget with one tab stop. The current cell — or the single simple widget inside it, a link, a button or a checkbox — is the only element with tabindex=\"0\"; Tab enters there and leaves the grid to the next control of the page, which is what the APG requires of a grid and what a table cannot give.",
|
|
1216
1216
|
"Every row carries aria-rowindex against aria-rowcount on the root, and every cell aria-colindex against aria-colcount, always: the grid windows its rows and columns, so the DOM is never the whole set, and the counts are what let a screen reader say “row 4,812 of 9,000”.",
|
|
1217
1217
|
"aria-sort is written on the first sort key’s header only — the practice says more than one is ambiguous — and the whole order is announced through the live announcer: “Sorted by Carrier ascending, Weight descending”. A resize announces the column and its width; a filter announces its sentence through describeFilter; a copy announces the count.",
|
package/dist/docs/data-grid.md
CHANGED
|
@@ -200,7 +200,7 @@ See [data-grid.props.md](./data-grid.props.md).
|
|
|
200
200
|
|
|
201
201
|
## Rules
|
|
202
202
|
|
|
203
|
-
- `columns`, `disabledKeys` and a function `rowKey` are compared by identity: a new array or function on a render of the parent re-renders every mounted row, so declare them at module scope or
|
|
203
|
+
- `columns`, `disabledKeys` and a function `rowKey` are compared by identity: a new array or function on a render of the parent re-renders every mounted row, so declare them at module scope or memoize them. The renderers — `cellRenderers`, `editorRenderers`, `renderCell`, `renderEditor`, `renderHeader`, `renderGroup`, `renderDetail` — `messages` and `tree` are read when a row renders and may be written inline. A row renders again for its own row object, selection, cursor, edit or expansion, and for a change of `columns` or the language; a renderer whose output reads state outside its row is refreshed by memoizing `columns` on that state.
|
|
204
204
|
- The root is role="grid": a composite widget with one tab stop. The current cell — or the single simple widget inside it, a link, a button or a checkbox — is the only element with tabindex="0"; Tab enters there and leaves the grid to the next control of the page, which is what the APG requires of a grid and what a table cannot give.
|
|
205
205
|
- Every row carries aria-rowindex against aria-rowcount on the root, and every cell aria-colindex against aria-colcount, always: the grid windows its rows and columns, so the DOM is never the whole set, and the counts are what let a screen reader say “row 4,812 of 9,000”.
|
|
206
206
|
- aria-sort is written on the first sort key’s header only — the practice says more than one is ambiguous — and the whole order is announced through the live announcer: “Sorted by Carrier ascending, Weight descending”. A resize announces the column and its width; a filter announces its sentence through describeFilter; a copy announces the count.
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| `query` | `GridQuery` | — | DataGrid | sort, filter, search, page and group in one object. Present puts the query in controlled mode. |
|
|
25
25
|
| `defaultQuery` | `GridQuery` | emptyQuery() | DataGrid | The query an uncontrolled grid starts from, read once. |
|
|
26
26
|
| `onQueryChange` | `(query, request) => void` | — | DataGrid | Asked before the query moves; the request carries change: sort \| filter \| search \| page \| group, the reason, and cancel(). |
|
|
27
|
-
| `columnState` | `GridColumnState` | — | DataGrid | order, widths, hidden and pinned. Present puts the arrangement in controlled mode; it is
|
|
27
|
+
| `columnState` | `GridColumnState` | — | DataGrid | order, widths, hidden and pinned. Present puts the arrangement in controlled mode; it is normalized against columns. |
|
|
28
28
|
| `defaultColumnState` | `Partial<GridColumnState>` | — | DataGrid | The arrangement an uncontrolled grid starts from, read once. |
|
|
29
29
|
| `onColumnStateChange` | `(state, request) => void` | — | DataGrid | Asked before the arrangement moves; the request carries change: order \| width \| hidden \| pinned. |
|
|
30
30
|
| `onManageColumns` | `() => void` | — | DataGrid | Called by the column menu’s Manage columns; the application opens its column-manager. |
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
"title": "Playground",
|
|
416
416
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type into it: each field takes digits, the arrows step it, and the clear button appears only once there is something to clear.",
|
|
417
417
|
"language": "tsx",
|
|
418
|
-
"source": "<Field>\n <FieldLabel>
|
|
418
|
+
"source": "<Field>\n <FieldLabel>Due date</FieldLabel>\n <DateField clearable locale=\"pt-BR\" name=\"due-date\" />\n <FieldDescription>The invoice is due on this date.</FieldDescription>\n</Field>;\n",
|
|
419
419
|
"verdict": "excerpt"
|
|
420
420
|
},
|
|
421
421
|
{
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
{
|
|
454
454
|
"id": "states",
|
|
455
455
|
"title": "States",
|
|
456
|
-
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its
|
|
456
|
+
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color. Tab through the row to see each one answer.",
|
|
457
457
|
"language": "tsx",
|
|
458
458
|
"source": "<>\n <DateField readOnly />\n <DateField invalid />\n <DateField disabled />\n <DateField required />\n</>;\n",
|
|
459
459
|
"verdict": "excerpt"
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
"title": "In a form",
|
|
480
480
|
"note": "The hidden input carries the value as an ISO string under the name prop, so a plain form post sends 2026-09-09 with no JavaScript reading the control. Submit the form to see what it sends.",
|
|
481
481
|
"language": "tsx",
|
|
482
|
-
"source": "<form action=\"/
|
|
482
|
+
"source": "<form action=\"/invoices\" method=\"post\">\n <Field>\n <FieldLabel>Due date</FieldLabel>\n <DateField name=\"due-date\" required />\n </Field>\n <Button type=\"submit\">Save</Button>\n</form>;\n",
|
|
483
483
|
"verdict": "excerpt"
|
|
484
484
|
},
|
|
485
485
|
{
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
{
|
|
502
502
|
"id": "keyboard",
|
|
503
503
|
"title": "The keyboard",
|
|
504
|
-
"note": "Every key the spin-button pattern lists, on the field that has focus. Note two
|
|
504
|
+
"note": "Every key the spin-button pattern lists, on the field that has focus. Note two behaviors nothing else here has: a step wraps inside its own field, and a day a short month could not hold comes back when a longer one can.",
|
|
505
505
|
"language": "tsx",
|
|
506
506
|
"source": "// ArrowUp / ArrowDown step one, wrapping inside the field\n// PageUp / PageDown five for a day or a month, ten for a year\n// Home / End the field's lowest and highest value\n// ArrowLeft / Right the previous and next field, in writing order\n// 0-9 fills the field and moves on when it is full\n// Backspace / Delete empties one field back to its placeholder\n",
|
|
507
507
|
"verdict": "excerpt"
|
package/dist/docs/date-field.md
CHANGED
|
@@ -15,9 +15,9 @@ Excerpt — not a complete module
|
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
17
|
<Field>
|
|
18
|
-
<FieldLabel>
|
|
19
|
-
<DateField clearable locale="pt-BR" name="
|
|
20
|
-
<FieldDescription>
|
|
18
|
+
<FieldLabel>Due date</FieldLabel>
|
|
19
|
+
<DateField clearable locale="pt-BR" name="due-date" />
|
|
20
|
+
<FieldDescription>The invoice is due on this date.</FieldDescription>
|
|
21
21
|
</Field>;
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -153,7 +153,7 @@ Excerpt — not a complete module
|
|
|
153
153
|
|
|
154
154
|
### States
|
|
155
155
|
|
|
156
|
-
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its
|
|
156
|
+
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color. Tab through the row to see each one answer.
|
|
157
157
|
|
|
158
158
|
Excerpt — not a complete module
|
|
159
159
|
|
|
@@ -200,12 +200,12 @@ The hidden input carries the value as an ISO string under the name prop, so a pl
|
|
|
200
200
|
Excerpt — not a complete module
|
|
201
201
|
|
|
202
202
|
```tsx
|
|
203
|
-
<form action="/
|
|
203
|
+
<form action="/invoices" method="post">
|
|
204
204
|
<Field>
|
|
205
|
-
<FieldLabel>
|
|
206
|
-
<DateField name="
|
|
205
|
+
<FieldLabel>Due date</FieldLabel>
|
|
206
|
+
<DateField name="due-date" required />
|
|
207
207
|
</Field>
|
|
208
|
-
<Button type="submit">
|
|
208
|
+
<Button type="submit">Save</Button>
|
|
209
209
|
</form>;
|
|
210
210
|
```
|
|
211
211
|
|
|
@@ -238,7 +238,7 @@ Excerpt — not a complete module
|
|
|
238
238
|
|
|
239
239
|
### The keyboard
|
|
240
240
|
|
|
241
|
-
Every key the spin-button pattern lists, on the field that has focus. Note two
|
|
241
|
+
Every key the spin-button pattern lists, on the field that has focus. Note two behaviors nothing else here has: a step wraps inside its own field, and a day a short month could not hold comes back when a longer one can.
|
|
242
242
|
|
|
243
243
|
Excerpt — not a complete module
|
|
244
244
|
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"part": "grip",
|
|
122
122
|
"element": "span, aria-hidden",
|
|
123
123
|
"required": false,
|
|
124
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
124
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"part": "presets",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"part": "grip",
|
|
171
171
|
"element": "span, aria-hidden",
|
|
172
172
|
"required": false,
|
|
173
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
173
|
+
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"part": "head",
|