@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
package/dist/docs/tag.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Excerpt — not a complete module
|
|
9
9
|
|
|
10
10
|
```tsx
|
|
11
|
-
<Tag tone="success">
|
|
11
|
+
<Tag tone="success">Delivered</Tag>;
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Props
|
|
@@ -17,11 +17,11 @@ Excerpt — not a complete module
|
|
|
17
17
|
|
|
18
18
|
| Name | Type | Default | Applies to | Description |
|
|
19
19
|
| --- | --- | --- | --- | --- |
|
|
20
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | Tag | Which of the five semantic
|
|
21
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | Tag | How that
|
|
20
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | Tag | Which of the five semantic colors the tag speaks in |
|
|
21
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | Tag | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
22
22
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | Tag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
23
23
|
| `shape` | `'pill' \| 'square'` | pill | Tag | A rounded chip, or a rectangle with the small corner radius |
|
|
24
|
-
| `start` | `ReactNode` | — | Tag | A glyph or an avatar before the words, wrapped in the start part, which sizes and
|
|
24
|
+
| `start` | `ReactNode` | — | Tag | A glyph or an avatar before the words, wrapped in the start part, which sizes and centers it |
|
|
25
25
|
| `end` | `ReactNode` | — | Tag | A glyph after the words, wrapped in the end part |
|
|
26
26
|
| `disabled` | `boolean` | false | Tag | Refuses every interaction the tag offers, including its removal |
|
|
27
27
|
| `onRemove` | `(request: TagRemoveRequest) => void` | — | Tag | Asks to be removed. The remove control is rendered only when this is present. request.reason is remove for the control and keyboard for Backspace or Delete; request.cancel() refuses it, and the group then leaves focus where it is |
|
|
@@ -39,11 +39,11 @@ Excerpt — not a complete module
|
|
|
39
39
|
|
|
40
40
|
| Name | Type | Default | Applies to | Description |
|
|
41
41
|
| --- | --- | --- | --- | --- |
|
|
42
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagButton | Which of the five semantic
|
|
43
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagButton | How that
|
|
42
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagButton | Which of the five semantic colors the tag speaks in |
|
|
43
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagButton | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
44
44
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | TagButton | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
45
45
|
| `shape` | `'pill' \| 'square'` | pill | TagButton | A rounded chip, or a rectangle with the small corner radius |
|
|
46
|
-
| `start` | `ReactNode` | — | TagButton | A glyph or an avatar before the words, wrapped in the start part, which sizes and
|
|
46
|
+
| `start` | `ReactNode` | — | TagButton | A glyph or an avatar before the words, wrapped in the start part, which sizes and centers it |
|
|
47
47
|
| `end` | `ReactNode` | — | TagButton | A glyph after the words, wrapped in the end part |
|
|
48
48
|
| `disabled` | `boolean` | false | TagButton | Refuses every interaction the tag offers, including its removal |
|
|
49
49
|
| `onRemove` | `(request: TagRemoveRequest) => void` | — | TagButton | Asks to be removed. The remove control is rendered only when this is present. request.reason is remove for the control and keyboard for Backspace or Delete; request.cancel() refuses it, and the group then leaves focus where it is |
|
|
@@ -55,11 +55,11 @@ Excerpt — not a complete module
|
|
|
55
55
|
|
|
56
56
|
| Name | Type | Default | Applies to | Description |
|
|
57
57
|
| --- | --- | --- | --- | --- |
|
|
58
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagLink | Which of the five semantic
|
|
59
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagLink | How that
|
|
58
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagLink | Which of the five semantic colors the tag speaks in |
|
|
59
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagLink | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
60
60
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | TagLink | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
61
61
|
| `shape` | `'pill' \| 'square'` | pill | TagLink | A rounded chip, or a rectangle with the small corner radius |
|
|
62
|
-
| `start` | `ReactNode` | — | TagLink | A glyph or an avatar before the words, wrapped in the start part, which sizes and
|
|
62
|
+
| `start` | `ReactNode` | — | TagLink | A glyph or an avatar before the words, wrapped in the start part, which sizes and centers it |
|
|
63
63
|
| `end` | `ReactNode` | — | TagLink | A glyph after the words, wrapped in the end part |
|
|
64
64
|
| `disabled` | `boolean` | false | TagLink | Refuses every interaction the tag offers, including its removal |
|
|
65
65
|
| `onRemove` | `(request: TagRemoveRequest) => void` | — | TagLink | Asks to be removed. The remove control is rendered only when this is present. request.reason is remove for the control and keyboard for Backspace or Delete; request.cancel() refuses it, and the group then leaves focus where it is |
|
|
@@ -71,11 +71,11 @@ Excerpt — not a complete module
|
|
|
71
71
|
|
|
72
72
|
| Name | Type | Default | Applies to | Description |
|
|
73
73
|
| --- | --- | --- | --- | --- |
|
|
74
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagToggle | Which of the five semantic
|
|
75
|
-
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagToggle | How that
|
|
74
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagToggle | Which of the five semantic colors the tag speaks in |
|
|
75
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagToggle | How that color is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
76
76
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | TagToggle | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
77
77
|
| `shape` | `'pill' \| 'square'` | pill | TagToggle | A rounded chip, or a rectangle with the small corner radius |
|
|
78
|
-
| `start` | `ReactNode` | — | TagToggle | A glyph or an avatar before the words, wrapped in the start part, which sizes and
|
|
78
|
+
| `start` | `ReactNode` | — | TagToggle | A glyph or an avatar before the words, wrapped in the start part, which sizes and centers it |
|
|
79
79
|
| `end` | `ReactNode` | — | TagToggle | A glyph after the words, wrapped in the end part |
|
|
80
80
|
| `disabled` | `boolean` | false | TagToggle | Refuses every interaction the tag offers, including its removal |
|
|
81
81
|
| `onRemove` | `(request: TagRemoveRequest) => void` | — | TagToggle | Asks to be removed. The remove control is rendered only when this is present. request.reason is remove for the control and keyboard for Backspace or Delete; request.cancel() refuses it, and the group then leaves focus where it is |
|
|
@@ -105,7 +105,7 @@ Excerpt — not a complete module
|
|
|
105
105
|
- The remove control is as tall as the chip and as wide as its glyph plus a step of air on each side, floored at the WCAG 2.2 2.5.8 minimum of 24 CSS pixels, which carries it past that minimum in both axes at every size and every density. The chip’s own height is floored at that minimum for the same reason.
|
|
106
106
|
- A tag is one line. A value too long for its container is clipped with an ellipsis rather than reflowed, and the clipping is visual only: text-overflow shortens nothing, so the whole value stays in the DOM, stays in the accessibility tree, and a page search still finds it.
|
|
107
107
|
- The label is a bidi isolate whose direction comes from its own first strong character, so an Arabic value inside an English page reads right to left and is clipped at its own end.
|
|
108
|
-
- Under forced
|
|
108
|
+
- Under forced colors every tone ground becomes one system color, so the family draws its edge in currentColor there, and a selected chip takes the system’s own Highlight pair — its whole signal is a ground the system has replaced.
|
|
109
109
|
- A static tag carries no role of its own. What a value means comes from where it sits, and a role invented here would be wrong more often than right.
|
|
110
110
|
- A group of static tags is written role="list", which announces its length and turns the arrow keys off — a list is a structure rather than a widget.
|
|
111
111
|
- The command is a real button, so Enter and Space both activate it and the platform supplies the rest.
|
|
@@ -114,7 +114,7 @@ Excerpt — not a complete module
|
|
|
114
114
|
- A chip that navigates to another origin says so in its own words or in a visually hidden sentence. The external marker belongs to the link family, on a link.
|
|
115
115
|
- A selected tag announces aria-pressed, not aria-selected. aria-selected is only valid inside a listbox, a grid or a tree, and an option may not contain the remove control this family puts beside the label. Carbon’s SelectableTag reaches the same conclusion; Angular Material reaches the other one and gives up the remove button.
|
|
116
116
|
- The label never changes with the state, which is the APG’s rule for a toggle: “Aberto” stays “Aberto” and the state is announced beside it.
|
|
117
|
-
- Selection is not
|
|
117
|
+
- Selection is not color alone. The chip fills, and a check grows into the label beside the words — WCAG 2.2 1.4.1.
|
|
118
118
|
|
|
119
119
|
## Tokens
|
|
120
120
|
|
|
@@ -127,7 +127,7 @@ Excerpt — not a complete module
|
|
|
127
127
|
Excerpt — not a complete module
|
|
128
128
|
|
|
129
129
|
```tsx
|
|
130
|
-
<TagGroup aria-label="
|
|
130
|
+
<TagGroup aria-label="Labels">
|
|
131
131
|
{labels.map((label) => (
|
|
132
132
|
<Tag key={label} onRemove={() => setLabels(labels.filter((it) => it !== label))}>
|
|
133
133
|
{label}
|
|
@@ -151,7 +151,7 @@ Excerpt — not a complete module
|
|
|
151
151
|
remove();
|
|
152
152
|
}}
|
|
153
153
|
>
|
|
154
|
-
|
|
154
|
+
Production
|
|
155
155
|
</Tag>;
|
|
156
156
|
```
|
|
157
157
|
|
|
@@ -182,7 +182,7 @@ Excerpt — not a complete module
|
|
|
182
182
|
Excerpt — not a complete module
|
|
183
183
|
|
|
184
184
|
```tsx
|
|
185
|
-
<TagButton onClick={() => openAssignee()}>
|
|
185
|
+
<TagButton onClick={() => openAssignee()}>Assign owner</TagButton>;
|
|
186
186
|
```
|
|
187
187
|
|
|
188
188
|
### The remaining values, behind one more chip
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
"accessibility": [
|
|
505
505
|
"The control is a layout grid with one row: the chips are cells and the field is the last cell, so one Tab reaches the input and the arrows walk the row. The input carries no role, because it opens nothing.",
|
|
506
506
|
"Focus is set on a chip cell rather than on the remove button inside it, which is tabindex=\"-1\"; Delete and Backspace do what the button does, and the row’s hint says so. React Aria and Angular Material resolve the grid pattern’s text-plus-widget cell the same way.",
|
|
507
|
-
"An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because
|
|
507
|
+
"An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because color alone is not a message. The same reason is the input’s custom validity, so a native submit is refused with the browser’s bubble.",
|
|
508
508
|
"Every change is announced once, politely: a value added with the count now held and its reason if it failed, a value removed with the count that is left, a move with its new position, a duplicate with the chip that holds it, and a copy with the count copied.",
|
|
509
509
|
"After a removal focus goes to the chip that took the removed one’s index, then the previous one, then the input — it is never lost to the document body."
|
|
510
510
|
]
|
package/dist/docs/tags-input.md
CHANGED
|
@@ -114,7 +114,7 @@ Excerpt — not a complete module
|
|
|
114
114
|
|
|
115
115
|
- The control is a layout grid with one row: the chips are cells and the field is the last cell, so one Tab reaches the input and the arrows walk the row. The input carries no role, because it opens nothing.
|
|
116
116
|
- Focus is set on a chip cell rather than on the remove button inside it, which is tabindex="-1"; Delete and Backspace do what the button does, and the row’s hint says so. React Aria and Angular Material resolve the grid pattern’s text-plus-widget cell the same way.
|
|
117
|
-
- An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because
|
|
117
|
+
- An invalid value is said three ways — the danger tone, the alert mark, and a description carrying the reason — because color alone is not a message. The same reason is the input’s custom validity, so a native submit is refused with the browser’s bubble.
|
|
118
118
|
- Every change is announced once, politely: a value added with the count now held and its reason if it failed, a value removed with the count that is left, a move with its new position, a duplicate with the chip that holds it, and a copy with the count copied.
|
|
119
119
|
- After a removal focus goes to the chip that took the removed one’s index, then the previous one, then the input — it is never lost to the document body.
|
|
120
120
|
|
|
@@ -14,8 +14,8 @@ Excerpt — not a complete module
|
|
|
14
14
|
```tsx
|
|
15
15
|
<Field>
|
|
16
16
|
<FieldLabel>E-mail</FieldLabel>
|
|
17
|
-
<TextField type="email" placeholder="
|
|
18
|
-
<FieldDescription>
|
|
17
|
+
<TextField type="email" placeholder="you@company.com" clearable />
|
|
18
|
+
<FieldDescription>We will use this address for billing.</FieldDescription>
|
|
19
19
|
</Field>;
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -154,7 +154,7 @@ Excerpt — not a complete module
|
|
|
154
154
|
|
|
155
155
|
```tsx
|
|
156
156
|
// Emits onValueChange with reason "clear", then focuses the control.
|
|
157
|
-
<TextField clearable defaultValue="
|
|
157
|
+
<TextField clearable defaultValue="invoice 2026" type="search" />;
|
|
158
158
|
|
|
159
159
|
// aria-pressed carries the state; the label never changes with it.
|
|
160
160
|
<TextField revealable type="password" autoComplete="current-password" />;
|
|
@@ -329,7 +329,7 @@ export default function TextFieldLoading() {
|
|
|
329
329
|
|
|
330
330
|
### The four states the frame paints
|
|
331
331
|
|
|
332
|
-
Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured
|
|
332
|
+
Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured color rather than faded, so a disabled form still says what it holds.
|
|
333
333
|
|
|
334
334
|
Example
|
|
335
335
|
|
|
@@ -464,7 +464,7 @@ Excerpt — not a complete module
|
|
|
464
464
|
|
|
465
465
|
```tsx
|
|
466
466
|
// Enter submits the form the element belongs to — the platform's
|
|
467
|
-
//
|
|
467
|
+
// behavior for a single-line control, left alone.
|
|
468
468
|
<form onSubmit={onSubmit}>
|
|
469
469
|
<TextField name="q" type="search" clearable />
|
|
470
470
|
</form>;
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
"loading sets aria-busy on the input and leaves it enabled, so the keyboard stays on the input while an asynchronous check runs. The spinner is hidden from assistive technology.",
|
|
355
355
|
"A menu inside the frame follows the APG menu button pattern (w3.org/WAI/ARIA/apg/patterns/menu-button/). The menu trigger on the action supplies aria-haspopup, aria-expanded, and Enter, Space and ArrowDown to open.",
|
|
356
356
|
"No key is bound to Escape. Some browsers clear a search input on Escape, and a text field that consumed the key inside a dialog would leave a keyboard user unable to close the dialog. WCAG success criterion 2.1.4 addresses the defects that single-key shortcuts cause.",
|
|
357
|
-
"The invalid state does not rely on
|
|
357
|
+
"The invalid state does not rely on color alone: aria-invalid announces it, the field’s error states it in words, and the inline message writes a visually hidden “Error:” before the sentence. In the high-contrast scheme the border cannot carry the state, so nothing depends on it."
|
|
358
358
|
]
|
|
359
359
|
}
|
|
360
360
|
},
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
"title": "Playground",
|
|
453
453
|
"note": "One control with every axis on it, driven by the controls below the canvas. Type into it: the clear button appears only once there is something to clear.",
|
|
454
454
|
"language": "tsx",
|
|
455
|
-
"source": "<Field>\n <FieldLabel>E-mail</FieldLabel>\n <TextField type=\"email\" placeholder=\"
|
|
455
|
+
"source": "<Field>\n <FieldLabel>E-mail</FieldLabel>\n <TextField type=\"email\" placeholder=\"you@company.com\" clearable />\n <FieldDescription>We will use this address for billing.</FieldDescription>\n</Field>;\n",
|
|
456
456
|
"verdict": "excerpt"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
"title": "The two buttons the family draws",
|
|
485
485
|
"note": "Both are real buttons inside the frame, both keep the caret, and both are held to the 24-pixel minimum. Tab into the field and press Tab again: the ring moves to the button rather than staying around the box.",
|
|
486
486
|
"language": "tsx",
|
|
487
|
-
"source": "// Emits onValueChange with reason \"clear\", then focuses the control.\n<TextField clearable defaultValue=\"
|
|
487
|
+
"source": "// Emits onValueChange with reason \"clear\", then focuses the control.\n<TextField clearable defaultValue=\"invoice 2026\" type=\"search\" />;\n\n// aria-pressed carries the state; the label never changes with it.\n<TextField revealable type=\"password\" autoComplete=\"current-password\" />;\n",
|
|
488
488
|
"verdict": "excerpt"
|
|
489
489
|
},
|
|
490
490
|
{
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
{
|
|
523
523
|
"id": "states",
|
|
524
524
|
"title": "The four states the frame paints",
|
|
525
|
-
"note": "Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured
|
|
525
|
+
"note": "Read-only keeps full-strength ink and only its ground changes, because the value is real and still submitted; disabled is muted to a measured color rather than faded, so a disabled form still says what it holds.",
|
|
526
526
|
"language": "tsx",
|
|
527
527
|
"source": "import { Field, FieldDescription, FieldError, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { TextField } from '@slotted/react/text-field';\n\nexport default function TextFieldStates() {\n return (\n <Stack gap={5}>\n <Field invalid>\n <FieldLabel>VAT number</FieldLabel>\n <TextField defaultValue=\"DE 81234\" />\n <FieldError>A German VAT number has nine digits after DE.</FieldError>\n </Field>\n <Field readOnly>\n <FieldLabel>Order number</FieldLabel>\n <TextField defaultValue=\"SO-2026-00418\" mono />\n <FieldDescription>Assigned when the order was placed.</FieldDescription>\n </Field>\n <Field disabled>\n <FieldLabel>Currency</FieldLabel>\n <TextField defaultValue=\"USD\" />\n <FieldDescription>Set by the customer’s price list.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
|
|
528
528
|
"verdict": "example"
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
"title": "What the keyboard does, and what it deliberately does not",
|
|
565
565
|
"note": "Tab reaches the value, then each button in turn. Nothing is bound to Escape: some user agents clear a search input on it, and a control that swallowed the key inside a dialog would be one a keyboard user cannot leave.",
|
|
566
566
|
"language": "tsx",
|
|
567
|
-
"source": "// Enter submits the form the element belongs to — the platform's\n//
|
|
567
|
+
"source": "// Enter submits the form the element belongs to — the platform's\n// behavior for a single-line control, left alone.\n<form onSubmit={onSubmit}>\n <TextField name=\"q\" type=\"search\" clearable />\n</form>;\n",
|
|
568
568
|
"verdict": "excerpt"
|
|
569
569
|
},
|
|
570
570
|
{
|
package/dist/docs/text-field.md
CHANGED
|
@@ -101,7 +101,7 @@ export default function TextFieldBasic() {
|
|
|
101
101
|
- loading sets aria-busy on the input and leaves it enabled, so the keyboard stays on the input while an asynchronous check runs. The spinner is hidden from assistive technology.
|
|
102
102
|
- A menu inside the frame follows the APG menu button pattern (w3.org/WAI/ARIA/apg/patterns/menu-button/). The menu trigger on the action supplies aria-haspopup, aria-expanded, and Enter, Space and ArrowDown to open.
|
|
103
103
|
- No key is bound to Escape. Some browsers clear a search input on Escape, and a text field that consumed the key inside a dialog would leave a keyboard user unable to close the dialog. WCAG success criterion 2.1.4 addresses the defects that single-key shortcuts cause.
|
|
104
|
-
- The invalid state does not rely on
|
|
104
|
+
- The invalid state does not rely on color alone: aria-invalid announces it, the field’s error states it in words, and the inline message writes a visually hidden “Error:” before the sentence. In the high-contrast scheme the border cannot carry the state, so nothing depends on it.
|
|
105
105
|
|
|
106
106
|
## Tokens
|
|
107
107
|
|
|
@@ -13,9 +13,9 @@ Excerpt — not a complete module
|
|
|
13
13
|
|
|
14
14
|
```tsx
|
|
15
15
|
<Field>
|
|
16
|
-
<FieldLabel>
|
|
17
|
-
<Textarea rows={3} placeholder="
|
|
18
|
-
<FieldDescription>
|
|
16
|
+
<FieldLabel>Notes</FieldLabel>
|
|
17
|
+
<Textarea rows={3} placeholder="Describe what happened" />
|
|
18
|
+
<FieldDescription>Appears in the ticket history.</FieldDescription>
|
|
19
19
|
</Field>;
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -236,7 +236,7 @@ Excerpt — not a complete module
|
|
|
236
236
|
```tsx
|
|
237
237
|
<form onSubmit={onSubmit}>
|
|
238
238
|
<Textarea name="notes" rows={3} />
|
|
239
|
-
<Button type="submit">
|
|
239
|
+
<Button type="submit">Send</Button>
|
|
240
240
|
</form>;
|
|
241
241
|
```
|
|
242
242
|
|
package/dist/docs/textarea.json
CHANGED
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"title": "Playground",
|
|
298
298
|
"note": "One control with every axis on it, driven by the controls below the canvas. Turn autoSize on and type: the box grows to the ceiling and then scrolls.",
|
|
299
299
|
"language": "tsx",
|
|
300
|
-
"source": "<Field>\n <FieldLabel>
|
|
300
|
+
"source": "<Field>\n <FieldLabel>Notes</FieldLabel>\n <Textarea rows={3} placeholder=\"Describe what happened\" />\n <FieldDescription>Appears in the ticket history.</FieldDescription>\n</Field>;\n",
|
|
301
301
|
"verdict": "excerpt"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"title": "What the keyboard does, and what it deliberately does not",
|
|
370
370
|
"note": "Enter makes a line and never submits — the difference WAI-ARIA notes between a single-line and a multi-line control — and Tab leaves the control rather than inserting a tab, so a keyboard user is never trapped in a comment box.",
|
|
371
371
|
"language": "tsx",
|
|
372
|
-
"source": "<form onSubmit={onSubmit}>\n <Textarea name=\"notes\" rows={3} />\n <Button type=\"submit\">
|
|
372
|
+
"source": "<form onSubmit={onSubmit}>\n <Textarea name=\"notes\" rows={3} />\n <Button type=\"submit\">Send</Button>\n</form>;\n",
|
|
373
373
|
"verdict": "excerpt"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
"title": "Playground",
|
|
449
449
|
"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 pressing + turns it into a duration from now.",
|
|
450
450
|
"language": "tsx",
|
|
451
|
-
"source": "<Field>\n <FieldLabel>
|
|
451
|
+
"source": "<Field>\n <FieldLabel>Start time</FieldLabel>\n <TimeField clearable locale=\"pt-BR\" name=\"start\" />\n <FieldDescription>The meeting starts at this time.</FieldDescription>\n</Field>;\n",
|
|
452
452
|
"verdict": "excerpt"
|
|
453
453
|
},
|
|
454
454
|
{
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
{
|
|
527
527
|
"id": "states",
|
|
528
528
|
"title": "States",
|
|
529
|
-
"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
|
|
529
|
+
"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.",
|
|
530
530
|
"language": "tsx",
|
|
531
531
|
"source": "<>\n <TimeField readOnly />\n <TimeField invalid />\n <TimeField disabled />\n <TimeField required />\n</>;\n",
|
|
532
532
|
"verdict": "excerpt"
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
"title": "In a form",
|
|
553
553
|
"note": "The value reaches a plain form post as an HH:mm:ss string through a hidden input, so a server reads it without any JavaScript touching the control. A half-typed time posts nothing at all, because it is not a time.",
|
|
554
554
|
"language": "tsx",
|
|
555
|
-
"source": "<form action=\"/
|
|
555
|
+
"source": "<form action=\"/schedule\" method=\"post\">\n <Field>\n <FieldLabel>Start time</FieldLabel>\n <TimeField name=\"start\" required />\n </Field>\n</form>;\n",
|
|
556
556
|
"verdict": "excerpt"
|
|
557
557
|
},
|
|
558
558
|
{
|
package/dist/docs/time-field.md
CHANGED
|
@@ -15,9 +15,9 @@ Excerpt — not a complete module
|
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
17
|
<Field>
|
|
18
|
-
<FieldLabel>
|
|
19
|
-
<TimeField clearable locale="pt-BR" name="
|
|
20
|
-
<FieldDescription>
|
|
18
|
+
<FieldLabel>Start time</FieldLabel>
|
|
19
|
+
<TimeField clearable locale="pt-BR" name="start" />
|
|
20
|
+
<FieldDescription>The meeting starts at this time.</FieldDescription>
|
|
21
21
|
</Field>;
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -216,7 +216,7 @@ Excerpt — not a complete module
|
|
|
216
216
|
|
|
217
217
|
### States
|
|
218
218
|
|
|
219
|
-
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
|
|
219
|
+
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.
|
|
220
220
|
|
|
221
221
|
Excerpt — not a complete module
|
|
222
222
|
|
|
@@ -263,10 +263,10 @@ The value reaches a plain form post as an HH:mm:ss string through a hidden input
|
|
|
263
263
|
Excerpt — not a complete module
|
|
264
264
|
|
|
265
265
|
```tsx
|
|
266
|
-
<form action="/
|
|
266
|
+
<form action="/schedule" method="post">
|
|
267
267
|
<Field>
|
|
268
|
-
<FieldLabel>
|
|
269
|
-
<TimeField name="
|
|
268
|
+
<FieldLabel>Start time</FieldLabel>
|
|
269
|
+
<TimeField name="start" required />
|
|
270
270
|
</Field>
|
|
271
271
|
</form>;
|
|
272
272
|
```
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"part": "grip",
|
|
143
143
|
"element": "span, aria-hidden",
|
|
144
144
|
"required": false,
|
|
145
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
145
|
+
"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."
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"part": "head",
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"title": "Playground",
|
|
545
545
|
"note": "One picker with every axis on it, driven by the controls below the canvas. Open it with the clock, type into the field, and press Alt+ArrowDown to open the panel without leaving the segments.",
|
|
546
546
|
"language": "tsx",
|
|
547
|
-
"source": "<Field>\n <FieldLabel>
|
|
547
|
+
"source": "<Field>\n <FieldLabel>Start time</FieldLabel>\n <TimePicker clearable locale=\"pt-BR\" name=\"start\" step={900} />\n</Field>;\n",
|
|
548
548
|
"verdict": "excerpt"
|
|
549
549
|
},
|
|
550
550
|
{
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
"title": "Shortcuts and actions",
|
|
617
617
|
"note": "Two slots the family ships empty: a column of the consumer’s own shortcuts beside the list, and a row of their own actions under it. The surface stops being the anchor’s width when the shortcuts are there, so the times keep a column worth reading.",
|
|
618
618
|
"language": "tsx",
|
|
619
|
-
"source": "<TimePicker\n footer={<Button size=\"sm\">
|
|
619
|
+
"source": "<TimePicker\n footer={<Button size=\"sm\">Apply</Button>}\n presets={<Button size=\"sm\">Start of shift</Button>}\n/>;\n",
|
|
620
620
|
"verdict": "excerpt"
|
|
621
621
|
},
|
|
622
622
|
{
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
"title": "In a form",
|
|
657
657
|
"note": "The value reaches a plain form post as an HH:mm:ss string through the field’s hidden input, so a server reads it without any JavaScript touching the control.",
|
|
658
658
|
"language": "tsx",
|
|
659
|
-
"source": "<form action=\"/
|
|
659
|
+
"source": "<form action=\"/schedule\" method=\"post\">\n <Field>\n <FieldLabel>Start time</FieldLabel>\n <TimePicker name=\"start\" required />\n </Field>\n</form>;\n",
|
|
660
660
|
"verdict": "excerpt"
|
|
661
661
|
},
|
|
662
662
|
{
|
package/dist/docs/time-picker.md
CHANGED
|
@@ -15,8 +15,8 @@ Excerpt — not a complete module
|
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
17
|
<Field>
|
|
18
|
-
<FieldLabel>
|
|
19
|
-
<TimePicker clearable locale="pt-BR" name="
|
|
18
|
+
<FieldLabel>Start time</FieldLabel>
|
|
19
|
+
<TimePicker clearable locale="pt-BR" name="start" step={900} />
|
|
20
20
|
</Field>;
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -223,8 +223,8 @@ Excerpt — not a complete module
|
|
|
223
223
|
|
|
224
224
|
```tsx
|
|
225
225
|
<TimePicker
|
|
226
|
-
footer={<Button size="sm">
|
|
227
|
-
presets={<Button size="sm">
|
|
226
|
+
footer={<Button size="sm">Apply</Button>}
|
|
227
|
+
presets={<Button size="sm">Start of shift</Button>}
|
|
228
228
|
/>;
|
|
229
229
|
```
|
|
230
230
|
|
|
@@ -291,10 +291,10 @@ The value reaches a plain form post as an HH:mm:ss string through the field’s
|
|
|
291
291
|
Excerpt — not a complete module
|
|
292
292
|
|
|
293
293
|
```tsx
|
|
294
|
-
<form action="/
|
|
294
|
+
<form action="/schedule" method="post">
|
|
295
295
|
<Field>
|
|
296
|
-
<FieldLabel>
|
|
297
|
-
<TimePicker name="
|
|
296
|
+
<FieldLabel>Start time</FieldLabel>
|
|
297
|
+
<TimePicker name="start" required />
|
|
298
298
|
</Field>
|
|
299
299
|
</form>;
|
|
300
300
|
```
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"part": "grip",
|
|
181
181
|
"element": "span, aria-hidden",
|
|
182
182
|
"required": false,
|
|
183
|
-
"purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line
|
|
183
|
+
"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."
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"part": "head",
|
|
@@ -799,7 +799,7 @@
|
|
|
799
799
|
"title": "Playground",
|
|
800
800
|
"note": "A meeting room booked for the afternoon. The frame is one line: press it and the two tabs, the field, the hint and the list of the current end open under it. Every prop is on the controls panel.",
|
|
801
801
|
"language": "tsx",
|
|
802
|
-
"source": "<Field>\n <FieldLabel>Reserva da sala</FieldLabel>\n <TimeRangePicker\n clearable\n defaultValue={{ start: plainTime(14), end: plainTime(16, 30) }}\n locale=\"pt-BR\"\n messages={{ start: '
|
|
802
|
+
"source": "<Field>\n <FieldLabel>Reserva da sala</FieldLabel>\n <TimeRangePicker\n clearable\n defaultValue={{ start: plainTime(14), end: plainTime(16, 30) }}\n locale=\"pt-BR\"\n messages={{ start: 'Start', end: 'End' }}\n />\n</Field>;\n",
|
|
803
803
|
"verdict": "excerpt"
|
|
804
804
|
},
|
|
805
805
|
{
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
"title": "Presets",
|
|
856
856
|
"note": "The slots the office books by name. Each is a TimeRangePickerPreset with its own range; pressing one writes the value and closes, and the one equal to the value is marked. The list is the product’s.",
|
|
857
857
|
"language": "tsx",
|
|
858
|
-
"source": "<TimeRangePicker\n presets={\n <>\n <TimeRangePickerPreset value={morning}>
|
|
858
|
+
"source": "<TimeRangePicker\n presets={\n <>\n <TimeRangePickerPreset value={morning}>Morning</TimeRangePickerPreset>\n <TimeRangePickerPreset value={() => nextHour()}>Next hour</TimeRangePickerPreset>\n </>\n }\n/>;\n",
|
|
859
859
|
"verdict": "excerpt"
|
|
860
860
|
},
|
|
861
861
|
{
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
"title": "Forms",
|
|
896
896
|
"note": "Two hidden inputs under startName and endName send HH:mm:ss with a plain form post, whether the reader typed the times or pressed them.",
|
|
897
897
|
"language": "tsx",
|
|
898
|
-
"source": "<form onSubmit={onSubmit}>\n <TimeRangePicker endName=\"
|
|
898
|
+
"source": "<form onSubmit={onSubmit}>\n <TimeRangePicker endName=\"end\" required startName=\"start\" />\n <Button type=\"submit\">Book</Button>\n</form>;\n",
|
|
899
899
|
"verdict": "excerpt"
|
|
900
900
|
},
|
|
901
901
|
{
|
|
@@ -20,7 +20,7 @@ Excerpt — not a complete module
|
|
|
20
20
|
clearable
|
|
21
21
|
defaultValue={{ start: plainTime(14), end: plainTime(16, 30) }}
|
|
22
22
|
locale="pt-BR"
|
|
23
|
-
messages={{ start: '
|
|
23
|
+
messages={{ start: 'Start', end: 'End' }}
|
|
24
24
|
/>
|
|
25
25
|
</Field>;
|
|
26
26
|
```
|
|
@@ -220,8 +220,8 @@ Excerpt — not a complete module
|
|
|
220
220
|
<TimeRangePicker
|
|
221
221
|
presets={
|
|
222
222
|
<>
|
|
223
|
-
<TimeRangePickerPreset value={morning}>
|
|
224
|
-
<TimeRangePickerPreset value={() => nextHour()}>
|
|
223
|
+
<TimeRangePickerPreset value={morning}>Morning</TimeRangePickerPreset>
|
|
224
|
+
<TimeRangePickerPreset value={() => nextHour()}>Next hour</TimeRangePickerPreset>
|
|
225
225
|
</>
|
|
226
226
|
}
|
|
227
227
|
/>;
|
|
@@ -290,8 +290,8 @@ Excerpt — not a complete module
|
|
|
290
290
|
|
|
291
291
|
```tsx
|
|
292
292
|
<form onSubmit={onSubmit}>
|
|
293
|
-
<TimeRangePicker endName="
|
|
294
|
-
<Button type="submit">
|
|
293
|
+
<TimeRangePicker endName="end" required startName="start" />
|
|
294
|
+
<Button type="submit">Book</Button>
|
|
295
295
|
</form>;
|
|
296
296
|
```
|
|
297
297
|
|
package/dist/docs/toast.json
CHANGED
|
@@ -257,14 +257,14 @@
|
|
|
257
257
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
258
258
|
"defaultValue": "accent",
|
|
259
259
|
"appliesTo": "toast.show",
|
|
260
|
-
"description": "Which of the five semantic
|
|
260
|
+
"description": "Which of the five semantic colors the message speaks in, and which mark it draws"
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"name": "variant",
|
|
264
264
|
"type": "'raised' | 'soft' | 'solid'",
|
|
265
265
|
"defaultValue": "raised",
|
|
266
266
|
"appliesTo": "toast.show",
|
|
267
|
-
"description": "How that
|
|
267
|
+
"description": "How that color is painted. raised keeps the neutral surface and puts the tone in the mark, which is what a box floating over unknown content should do"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"name": "priority",
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"When the message holding focus is taken away — by its own control, or by the page’s state — focus goes to the next message, then to the element it came from. Only React Aria answers this at all, and only for its own close button.",
|
|
430
430
|
"WCAG 2.2 SC 2.2.1 is the criterion a timer answers, and the family takes the first of the criterion’s six ways out: the limit can be turned off before a reader meets it, by setting duration to 0 on ToastDefaultsProvider for the whole application. Putting that switch in front of the reader is the application’s work, not the family’s.",
|
|
431
431
|
"A message that carries an action is given no duration unless one is stated, and a message waiting on a promise is given none either. Angular Material states the first rule and is alone in it; five surveyed implementations ship the action and the timer and leave the combination to the consumer.",
|
|
432
|
-
"Every tone with a severity carries a mark as well as a
|
|
432
|
+
"Every tone with a severity carries a mark as well as a color, and secondary carries none: a neutral note has no severity to state. Under forced colors the five grounds become one system color, so the mark, and its absence on a note, is the only thing distinguishing a failure from a note — WCAG 2.2 1.4.1.",
|
|
433
433
|
"The region takes no pointer events and each message takes its own, so a region pinned over a page never eats a press meant for the page. Every surveyed implementation does this and none of them says so, which is how a consumer finds a dead corner in their own application."
|
|
434
434
|
]
|
|
435
435
|
}
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
{
|
|
543
543
|
"id": "tones",
|
|
544
544
|
"title": "What the message is about",
|
|
545
|
-
"note": "Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in
|
|
545
|
+
"note": "Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in grayscale, or under forced colors where every ground becomes one system color, the silhouette is the only thing left to tell a failure from a note.",
|
|
546
546
|
"language": "tsx",
|
|
547
547
|
"source": "// accent is information, secondary a neutral note, success something\n// finished, warning something that needs attention, danger something failed.\ntoast.show({ title: 'Could not send', tone: 'danger' });\n",
|
|
548
548
|
"verdict": "excerpt"
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
{
|
|
631
631
|
"id": "composition",
|
|
632
632
|
"title": "A message a page draws itself",
|
|
633
|
-
"note": "The region hands each message to a function and keeps everything that is
|
|
633
|
+
"note": "The region hands each message to a function and keeps everything that is behavior: the clock, the exit, the swipe, the keyboard and the announcement. What the page writes is the body, and it can be anything at all.",
|
|
634
634
|
"language": "tsx",
|
|
635
635
|
"source": "<ToastRegion>\n {(message) => (\n <Toast key={message.id} message={message}>\n <ToastContent>\n <ToastTitle>{message.data.title}</ToastTitle>\n </ToastContent>\n </Toast>\n )}\n</ToastRegion>;\n",
|
|
636
636
|
"verdict": "excerpt"
|
package/dist/docs/toast.md
CHANGED
|
@@ -73,8 +73,8 @@ export default function ToastBasic() {
|
|
|
73
73
|
| `pauseWhenHidden` | `boolean` | true | ToastRegion | A hidden tab holds every clock. A five-second message shown to a tab nobody is looking at was never shown |
|
|
74
74
|
| `hotkey` | `string` | F6 | ToastRegion | The key that moves focus into the region, written the way a reader says it — F6, Alt+T, Shift+F8 |
|
|
75
75
|
| `messages` | `Partial<ToastMessages>` | — | ToastRegion | Words laid over the language in force, key by key: the name a reader finds the region by in their landmark list, and what the hotkey lands in (label), and what each close control announces (close) |
|
|
76
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | toast.show | Which of the five semantic
|
|
77
|
-
| `variant` | `'raised' \| 'soft' \| 'solid'` | raised | toast.show | How that
|
|
76
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | toast.show | Which of the five semantic colors the message speaks in, and which mark it draws |
|
|
77
|
+
| `variant` | `'raised' \| 'soft' \| 'solid'` | raised | toast.show | How that color is painted. raised keeps the neutral surface and puts the tone in the mark, which is what a box floating over unknown content should do |
|
|
78
78
|
| `priority` | `'polite' \| 'assertive'` | polite | toast.show | How loudly the announcer says it. Never inferred from the tone: a danger message a background job produced must not cut into a sentence |
|
|
79
79
|
| `dismissible` | `boolean` | true | toast.show | Renders the control that closes the message. A touch reader has no Escape key, so the pointer needs a target |
|
|
80
80
|
| `progress` | `boolean` | false | toast.show | Draws how much of the duration is left. It is off by default because a message with no duration has nothing to draw |
|
|
@@ -128,7 +128,7 @@ export default function ToastBasic() {
|
|
|
128
128
|
- When the message holding focus is taken away — by its own control, or by the page’s state — focus goes to the next message, then to the element it came from. Only React Aria answers this at all, and only for its own close button.
|
|
129
129
|
- WCAG 2.2 SC 2.2.1 is the criterion a timer answers, and the family takes the first of the criterion’s six ways out: the limit can be turned off before a reader meets it, by setting duration to 0 on ToastDefaultsProvider for the whole application. Putting that switch in front of the reader is the application’s work, not the family’s.
|
|
130
130
|
- A message that carries an action is given no duration unless one is stated, and a message waiting on a promise is given none either. Angular Material states the first rule and is alone in it; five surveyed implementations ship the action and the timer and leave the combination to the consumer.
|
|
131
|
-
- Every tone with a severity carries a mark as well as a
|
|
131
|
+
- Every tone with a severity carries a mark as well as a color, and secondary carries none: a neutral note has no severity to state. Under forced colors the five grounds become one system color, so the mark, and its absence on a note, is the only thing distinguishing a failure from a note — WCAG 2.2 1.4.1.
|
|
132
132
|
- The region takes no pointer events and each message takes its own, so a region pinned over a page never eats a press meant for the page. Every surveyed implementation does this and none of them says so, which is how a consumer finds a dead corner in their own application.
|
|
133
133
|
|
|
134
134
|
## Tokens
|
|
@@ -156,7 +156,7 @@ toast.show({
|
|
|
156
156
|
|
|
157
157
|
### What the message is about
|
|
158
158
|
|
|
159
|
-
Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in
|
|
159
|
+
Five tones and five marks. The mark is the answer to WCAG 2.2 1.4.1: read in grayscale, or under forced colors where every ground becomes one system color, the silhouette is the only thing left to tell a failure from a note.
|
|
160
160
|
|
|
161
161
|
Excerpt — not a complete module
|
|
162
162
|
|
|
@@ -291,7 +291,7 @@ toast.show({
|
|
|
291
291
|
|
|
292
292
|
### A message a page draws itself
|
|
293
293
|
|
|
294
|
-
The region hands each message to a function and keeps everything that is
|
|
294
|
+
The region hands each message to a function and keeps everything that is behavior: the clock, the exit, the swipe, the keyboard and the announcement. What the page writes is the body, and it can be anything at all.
|
|
295
295
|
|
|
296
296
|
Excerpt — not a complete module
|
|
297
297
|
|