@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/app-shell.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, S as t, T as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./app-shell-
|
|
2
|
-
export { y as APP_SHELL_OVERLAY_AT, m as AppShell, i as AppShellActions, h as AppShellAside, v as AppShellAsideBody, o as AppShellAsideFooter, f as AppShellAsideHeader, b as AppShellAsideResizer, s as AppShellAsideToggle, c as AppShellBanner, g as AppShellBrand, p as
|
|
1
|
+
import { C as e, S as t, T as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./app-shell-ClwskWBN.js";
|
|
2
|
+
export { y as APP_SHELL_OVERLAY_AT, m as AppShell, i as AppShellActions, h as AppShellAside, v as AppShellAsideBody, o as AppShellAsideFooter, f as AppShellAsideHeader, b as AppShellAsideResizer, s as AppShellAsideToggle, c as AppShellBanner, g as AppShellBrand, p as AppShellCenter, S as AppShellDefaultsProvider, u as AppShellFooter, l as AppShellMain, r as AppShellNav, x as AppShellNavBody, w as AppShellNavFooter, a as AppShellNavHeader, C as AppShellNavRail, t as AppShellNavToggle, e as AppShellProgress, _ as useAppShell, n as useAppShellDefaults, d as useAppShellIfPresent };
|
|
@@ -20,4 +20,4 @@ Read the skill before the task:
|
|
|
20
20
|
- Show what a screen draws while it waits, and its empty and error states: `node_modules/@slotted/react/dist/docs/skills/waiting-states/SKILL.md`
|
|
21
21
|
- Review a screen against the guidelines, or fix what a review found: `node_modules/@slotted/react/dist/docs/skills/review-screen/SKILL.md`
|
|
22
22
|
- Write a component or element that no family draws: `node_modules/@slotted/react/dist/docs/skills/build-own-element/SKILL.md`
|
|
23
|
-
- Change the brand
|
|
23
|
+
- Change the brand color, the scheme, the density or a control's shape: `node_modules/@slotted/react/dist/docs/skills/theme-app/SKILL.md`
|
package/dist/docs/accordion.json
CHANGED
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"title": "Playground",
|
|
266
266
|
"note": "One set with every axis on it, driven by the controls below the canvas. Tab reaches every header; the arrows move between them without opening anything.",
|
|
267
267
|
"language": "tsx",
|
|
268
|
-
"source": "<Accordion defaultValue={['
|
|
268
|
+
"source": "<Accordion defaultValue={['delivery']}>\n <Collapsible value=\"delivery\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Delivery</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Scheduled for September 12.</CollapsiblePanel>\n </Collapsible>\n <Collapsible value=\"payment\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Payment</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>Credit card, approved.</CollapsiblePanel>\n </Collapsible>\n</Accordion>;\n",
|
|
269
269
|
"verdict": "excerpt"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"title": "One panel open, or several",
|
|
274
274
|
"note": "With multiple off, opening one closes the one that was — and that panel is told it closed with the reason select, not because the reader asked it to.",
|
|
275
275
|
"language": "tsx",
|
|
276
|
-
"source": "<Accordion multiple defaultValue={['
|
|
276
|
+
"source": "<Accordion multiple defaultValue={['delivery', 'payment']}>\n …\n</Accordion>;\n",
|
|
277
277
|
"verdict": "excerpt"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"title": "A set that refuses to empty",
|
|
282
282
|
"note": "The one open header carries aria-disabled=\"true\", which is the pattern’s own instruction for an accordion that does not permit its panel to be collapsed. It stays focusable and announced.",
|
|
283
283
|
"language": "tsx",
|
|
284
|
-
"source": "<Accordion requireOpen defaultValue={['
|
|
284
|
+
"source": "<Accordion requireOpen defaultValue={['delivery']}>\n …\n</Accordion>;\n",
|
|
285
285
|
"verdict": "excerpt"
|
|
286
286
|
},
|
|
287
287
|
{
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"title": "Every state the set paints",
|
|
314
314
|
"note": "A disabled set reaches every trigger as the native attribute, and one item may be out of action inside a live set. Hover and press are the item’s, held back for both.",
|
|
315
315
|
"language": "tsx",
|
|
316
|
-
"source": "<Accordion>\n <Collapsible value=\"
|
|
316
|
+
"source": "<Accordion>\n <Collapsible value=\"delivery\" disabled>\n …\n </Collapsible>\n</Accordion>;\n",
|
|
317
317
|
"verdict": "excerpt"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
"title": "Opening and closing everything",
|
|
322
322
|
"note": "A controlled consumer already owns the array and needs neither of these; an uncontrolled one has no array to set, which is the case the handle exists for.",
|
|
323
323
|
"language": "tsx",
|
|
324
|
-
"source": "const set = useRef<AccordionHandle>(null);\n\n<Accordion handle={set} multiple>\n …\n</Accordion>;\n\n<Button onClick={() => set.current?.openAll()}>
|
|
324
|
+
"source": "const set = useRef<AccordionHandle>(null);\n\n<Accordion handle={set} multiple>\n …\n</Accordion>;\n\n<Button onClick={() => set.current?.openAll()}>Open all</Button>;\n",
|
|
325
325
|
"verdict": "excerpt"
|
|
326
326
|
},
|
|
327
327
|
{
|
package/dist/docs/accordion.md
CHANGED
|
@@ -14,18 +14,18 @@ import { Accordion, AccordionDefaultsProvider, Collapsible, CollapsibleHeader, C
|
|
|
14
14
|
Excerpt — not a complete module
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
<Accordion defaultValue={['
|
|
18
|
-
<Collapsible value="
|
|
17
|
+
<Accordion defaultValue={['delivery']}>
|
|
18
|
+
<Collapsible value="delivery">
|
|
19
19
|
<CollapsibleHeader>
|
|
20
|
-
<CollapsibleTrigger>
|
|
20
|
+
<CollapsibleTrigger>Delivery</CollapsibleTrigger>
|
|
21
21
|
</CollapsibleHeader>
|
|
22
|
-
<CollapsiblePanel>
|
|
22
|
+
<CollapsiblePanel>Scheduled for September 12.</CollapsiblePanel>
|
|
23
23
|
</Collapsible>
|
|
24
|
-
<Collapsible value="
|
|
24
|
+
<Collapsible value="payment">
|
|
25
25
|
<CollapsibleHeader>
|
|
26
|
-
<CollapsibleTrigger>
|
|
26
|
+
<CollapsibleTrigger>Payment</CollapsibleTrigger>
|
|
27
27
|
</CollapsibleHeader>
|
|
28
|
-
<CollapsiblePanel>
|
|
28
|
+
<CollapsiblePanel>Credit card, approved.</CollapsiblePanel>
|
|
29
29
|
</Collapsible>
|
|
30
30
|
</Accordion>;
|
|
31
31
|
```
|
|
@@ -100,7 +100,7 @@ With multiple off, opening one closes the one that was — and that panel is tol
|
|
|
100
100
|
Excerpt — not a complete module
|
|
101
101
|
|
|
102
102
|
```tsx
|
|
103
|
-
<Accordion multiple defaultValue={['
|
|
103
|
+
<Accordion multiple defaultValue={['delivery', 'payment']}>
|
|
104
104
|
…
|
|
105
105
|
</Accordion>;
|
|
106
106
|
```
|
|
@@ -112,7 +112,7 @@ The one open header carries aria-disabled="true", which is the pattern’s own i
|
|
|
112
112
|
Excerpt — not a complete module
|
|
113
113
|
|
|
114
114
|
```tsx
|
|
115
|
-
<Accordion requireOpen defaultValue={['
|
|
115
|
+
<Accordion requireOpen defaultValue={['delivery']}>
|
|
116
116
|
…
|
|
117
117
|
</Accordion>;
|
|
118
118
|
```
|
|
@@ -157,7 +157,7 @@ Excerpt — not a complete module
|
|
|
157
157
|
|
|
158
158
|
```tsx
|
|
159
159
|
<Accordion>
|
|
160
|
-
<Collapsible value="
|
|
160
|
+
<Collapsible value="delivery" disabled>
|
|
161
161
|
…
|
|
162
162
|
</Collapsible>
|
|
163
163
|
</Accordion>;
|
|
@@ -176,7 +176,7 @@ const set = useRef<AccordionHandle>(null);
|
|
|
176
176
|
…
|
|
177
177
|
</Accordion>;
|
|
178
178
|
|
|
179
|
-
<Button onClick={() => set.current?.openAll()}>
|
|
179
|
+
<Button onClick={() => set.current?.openAll()}>Open all</Button>;
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
### Content the set did not choose
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"type": "the Page family’s own slot",
|
|
237
237
|
"defaultValue": "—",
|
|
238
238
|
"appliesTo": "around an ActionBar",
|
|
239
|
-
"description": "Where a page’s bar belongs. Page paints the ground, the rule and the sticky
|
|
239
|
+
"description": "Where a page’s bar belongs. Page paints the ground, the rule and the sticky behavior; this family arranges what is on it, which is why variant=\"plain\" paints nothing"
|
|
240
240
|
}
|
|
241
241
|
],
|
|
242
242
|
"events": [],
|
|
@@ -244,10 +244,10 @@
|
|
|
244
244
|
"There is no APG pattern for a bar of actions, and the closest official guidance is the Toolbar pattern (w3.org/WAI/ARIA/apg/patterns/toolbar/). This family departs from it deliberately: there is no roving focus, so Tab reaches every action in the order the author wrote it. The controls here are the page’s own form actions, and a reader walking a form expects to arrive at Cancel and then at Save; a composite would make the whole bar one tab stop and put Save behind an arrow key that announces nothing. The cost is written down — a bar of ten icon-only actions is ten tab stops, and that bar is the Toolbar family.",
|
|
245
245
|
"The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role the consumer wrote on the element survives the family’s own.",
|
|
246
246
|
"The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.",
|
|
247
|
-
"The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural
|
|
247
|
+
"The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural. The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.",
|
|
248
248
|
"A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.",
|
|
249
249
|
"A bar that is not present leaves the document once it has left the view, rather than staying mounted and hidden. Carbon’s batch bar writes aria-hidden on its root and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.",
|
|
250
|
-
"Under forced
|
|
250
|
+
"Under forced colors the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast."
|
|
251
251
|
]
|
|
252
252
|
}
|
|
253
253
|
},
|
|
@@ -308,15 +308,15 @@
|
|
|
308
308
|
"title": "Playground",
|
|
309
309
|
"note": "One bar with every axis on it, driven by the controls below the canvas. Tab through it: each action is its own stop, in the order the form is read, and no arrow key is bound.",
|
|
310
310
|
"language": "tsx",
|
|
311
|
-
"source": "<ActionBar aria-label=\"
|
|
311
|
+
"source": "<ActionBar aria-label=\"Order actions\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"secondary\">\n Cancelar\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Submit for approval</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
312
312
|
"verdict": "excerpt"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
"id": "priority",
|
|
316
316
|
"title": "Which action gives way first",
|
|
317
|
-
"note": "Narrow the stage and watch the order: “
|
|
317
|
+
"note": "Narrow the stage and watch the order: “Preview” goes without a trace, “Duplicate” becomes a menu row, “Return” follows it, and “Approve” never moves. Position decides nothing here — the rank does.",
|
|
318
318
|
"language": "tsx",
|
|
319
|
-
"source": "<ActionBarActions>\n {/* Gives way before every other rank, and is not offered in the menu. */}\n <ActionBarAction priority=\"hide\">\n <Button variant=\"ghost\">
|
|
319
|
+
"source": "<ActionBarActions>\n {/* Gives way before every other rank, and is not offered in the menu. */}\n <ActionBarAction priority=\"hide\">\n <Button variant=\"ghost\">Preview</Button>\n </ActionBarAction>\n {/* low is the default for an action that declares a counterpart. */}\n <ActionBarAction counterpart={<MenuItem>Duplicar</MenuItem>}>\n <Button variant=\"ghost\">Duplicar</Button>\n </ActionBarAction>\n <ActionBarAction priority=\"high\" counterpart={<MenuItem>Devolver</MenuItem>}>\n <Button variant=\"outline\">Devolver</Button>\n </ActionBarAction>\n {/* No counterpart, so it is pinned: it has nowhere to go. */}\n <ActionBarAction>\n <Button>Aprovar</Button>\n </ActionBarAction>\n <ActionBarOverflow />\n</ActionBarActions>;\n",
|
|
320
320
|
"verdict": "excerpt"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"title": "What is left over, behind one control",
|
|
325
325
|
"note": "The surface holds what gave way and what was never in the bar, in the bar’s own order, with a rule wherever one of the bar’s own rules divided two of them. The trigger’s name is the count, not three dots.",
|
|
326
326
|
"language": "tsx",
|
|
327
|
-
"source": "<ActionBarActions>\n <ActionBarAction priority=\"always\" counterpart={<MenuItem>
|
|
327
|
+
"source": "<ActionBarActions>\n <ActionBarAction priority=\"always\" counterpart={<MenuItem>View history</MenuItem>}>\n <Button variant=\"ghost\">View history</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Approve</Button>\n </ActionBarAction>\n <ActionBarOverflow label={(hidden) => `${hidden} more actions`} />\n</ActionBarActions>;\n",
|
|
328
328
|
"verdict": "excerpt"
|
|
329
329
|
},
|
|
330
330
|
{
|
|
@@ -332,15 +332,15 @@
|
|
|
332
332
|
"title": "The action that confirms does not move",
|
|
333
333
|
"note": "Four bars on one stage: no message, a short one, one that fills the bar, and a secondary action removed by a permission filter. Read the right edge — “Aprovar” is on the same pixel in all four.",
|
|
334
334
|
"language": "tsx",
|
|
335
|
-
"source": "// The run carries margin-inline-start: auto, so what grows or leaves\n// moves what is *before* the last action and never the last action.\n<ActionBar aria-label=\"
|
|
335
|
+
"source": "// The run carries margin-inline-start: auto, so what grows or leaves\n// moves what is *before* the last action and never the last action.\n<ActionBar aria-label=\"Order actions\">\n {dirty ? <ActionBarStatus>{message}</ActionBarStatus> : null}\n <ActionBarActions>\n {canReturn ? (\n <ActionBarAction>\n <Button variant=\"ghost\">Devolver</Button>\n </ActionBarAction>\n ) : null}\n <ActionBarAction>\n <Button loading={saving}>Aprovar</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
336
336
|
"verdict": "excerpt"
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
339
|
"id": "danger",
|
|
340
340
|
"title": "A destructive action, and the rule beside it",
|
|
341
|
-
"note": "The first bar keeps “
|
|
341
|
+
"note": "The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms *is* the destructive one, and the rule is what a hand about to press Keep reads.",
|
|
342
342
|
"language": "tsx",
|
|
343
|
-
"source": "<ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"danger\">\n
|
|
343
|
+
"source": "<ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"danger\">\n Void invoice\n </Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"secondary\">\n Cancelar\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Guardar</Button>\n </ActionBarAction>\n</ActionBarActions>;\n",
|
|
344
344
|
"verdict": "excerpt"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"title": "The bar a selection brings",
|
|
357
357
|
"note": "Table owns the selection and its count; this family supplies the place, the ranks and the entry. Toggle the selection and watch the bar arrive from below rather than appear — and leave the document when it goes, rather than staying hidden and still reachable by Tab.",
|
|
358
358
|
"language": "tsx",
|
|
359
|
-
"source": "<ActionBar aria-label=\"
|
|
359
|
+
"source": "<ActionBar aria-label=\"Selection actions\" present={selected.length > 0} variant=\"raised\">\n <ActionBarStatus>\n <strong>{selected.length} invoices selected</strong>\n <Button size=\"sm\" variant=\"ghost\" tone=\"accent\" onClick={selectAll}>\n Select all {total} matching the filter\n </Button>\n </ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction counterpart={<MenuItem>Exportar</MenuItem>}>\n <Button variant=\"ghost\">Exportar</Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button tone=\"danger\">Anular</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
360
360
|
"verdict": "excerpt"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
@@ -364,15 +364,15 @@
|
|
|
364
364
|
"title": "Stuck to the end of what scrolls",
|
|
365
365
|
"note": "Scroll the panel: the bar stays at the bottom and the last line of content scrolls up to it rather than under it. Inside a Page it reads --slotted-page-sticky-bottom and stops above that page’s own footer instead of covering it.",
|
|
366
366
|
"language": "tsx",
|
|
367
|
-
"source": "<ActionBar aria-label=\"
|
|
367
|
+
"source": "<ActionBar aria-label=\"Form actions\" sticky variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button>Guardar</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
368
368
|
"verdict": "excerpt"
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
"id": "align",
|
|
372
372
|
"title": "Where the run sits",
|
|
373
|
-
"note": "end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce
|
|
373
|
+
"note": "end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce centers a docked footer, Polaris ends it, Fluent starts it — so it is an axis.",
|
|
374
374
|
"language": "tsx",
|
|
375
|
-
"source": "<ActionBar aria-label=\"
|
|
375
|
+
"source": "<ActionBar aria-label=\"Actions\" align=\"center\" variant=\"raised\" />;\n",
|
|
376
376
|
"verdict": "excerpt"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
"title": "The step the bar sits at",
|
|
381
381
|
"note": "The size moves the bar’s own inset, gap, minimum height and rule — and it reaches the buttons through the Button family’s own defaults, so a bar does not make a consumer repeat size on every control. A button that states its own still wins.",
|
|
382
382
|
"language": "tsx",
|
|
383
|
-
"source": "<ActionBar aria-label=\"
|
|
383
|
+
"source": "<ActionBar aria-label=\"Actions\" size=\"sm\" variant=\"raised\">\n <ActionBarActions>\n {/* No size here: the bar hands its own down. */}\n <ActionBarAction>\n <Button variant=\"ghost\">Cancelar</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button size=\"lg\">Guardar</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
384
384
|
"verdict": "excerpt"
|
|
385
385
|
},
|
|
386
386
|
{
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
"title": "Whether the bar paints a ground",
|
|
389
389
|
"note": "plain is the default and paints nothing — a bar inside a Page footer is already standing on a ground that family painted. raised takes the surface and one hairline at the top, which is the bar with no page around it: a drawer, a dialog, a card.",
|
|
390
390
|
"language": "tsx",
|
|
391
|
-
"source": "<ActionBar aria-label=\"
|
|
391
|
+
"source": "<ActionBar aria-label=\"Actions\" variant=\"plain\" />;\n<ActionBar aria-label=\"Actions\" variant=\"raised\" />;\n",
|
|
392
392
|
"verdict": "excerpt"
|
|
393
393
|
},
|
|
394
394
|
{
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"title": "The bar on a phone",
|
|
397
397
|
"note": "Below 24rem of container a bar with no overflow control becomes a full-width column with the action that confirms on top, and the collapse stops running — a column has room for everything, so there is no menu. A bar with an overflow control keeps one row: the actions without a counterpart stay and the rest fold into the menu. The DOM order does not change, so Tab still reads the form’s order.",
|
|
398
398
|
"language": "tsx",
|
|
399
|
-
"source": "// The breakpoint lives in the stylesheet's container query, and the\n// binding reads back the property that query raises rather than holding\n// a copy of the number.\n<ActionBar aria-label=\"
|
|
399
|
+
"source": "// The breakpoint lives in the stylesheet's container query, and the\n// binding reads back the property that query raises rather than holding\n// a copy of the number.\n<ActionBar aria-label=\"Order actions\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Discard changes</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save changes</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
|
|
400
400
|
"verdict": "excerpt"
|
|
401
401
|
},
|
|
402
402
|
{
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"title": "Setting it once, and standing beside other families",
|
|
413
413
|
"note": "The provider carries the four decisions an application takes once. The bar is what goes inside a Page footer, inside a Drawer and under a Table — and every part can be rendered as the consumer’s own element.",
|
|
414
414
|
"language": "tsx",
|
|
415
|
-
"source": "<ActionBarDefaultsProvider size=\"sm\" variant=\"plain\">\n <Page\n footer={\n <ActionBar aria-label=\"
|
|
415
|
+
"source": "<ActionBarDefaultsProvider size=\"sm\" variant=\"plain\">\n <Page\n footer={\n <ActionBar aria-label=\"Order actions\" render={(props) => <div {...props} />}>\n <ActionBarActions>\n <ActionBarAction>\n <Button>Submeter</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n }\n >\n <PageBody>…</PageBody>\n </Page>\n</ActionBarDefaultsProvider>;\n",
|
|
416
416
|
"verdict": "excerpt"
|
|
417
417
|
},
|
|
418
418
|
{
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
"title": "The keyboard, and what a reader hears",
|
|
421
421
|
"note": "Tab reaches each action in the order the author wrote it. The bar is role=\"group\" with the consumer’s own name; a fieldset around it is how it goes out of action, and the platform takes the controls out of the tab order with it.",
|
|
422
422
|
"language": "tsx",
|
|
423
|
-
"source": "<fieldset disabled={submitting}>\n <ActionBar aria-label=\"
|
|
423
|
+
"source": "<fieldset disabled={submitting}>\n <ActionBar aria-label=\"Order actions\">\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Cancelar</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Guardar</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n</fieldset>;\n",
|
|
424
424
|
"verdict": "excerpt"
|
|
425
425
|
}
|
|
426
426
|
]
|
package/dist/docs/action-bar.md
CHANGED
|
@@ -14,8 +14,8 @@ import { ActionBar, ActionBarAction, ActionBarActions, ActionBarDefaultsProvider
|
|
|
14
14
|
Excerpt — not a complete module
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
<ActionBar aria-label="
|
|
18
|
-
<ActionBarStatus>
|
|
17
|
+
<ActionBar aria-label="Order actions">
|
|
18
|
+
<ActionBarStatus>Draft saved at 14:07</ActionBarStatus>
|
|
19
19
|
<ActionBarActions>
|
|
20
20
|
<ActionBarAction>
|
|
21
21
|
<Button variant="ghost" tone="secondary">
|
|
@@ -23,7 +23,7 @@ Excerpt — not a complete module
|
|
|
23
23
|
</Button>
|
|
24
24
|
</ActionBarAction>
|
|
25
25
|
<ActionBarAction>
|
|
26
|
-
<Button>
|
|
26
|
+
<Button>Submit for approval</Button>
|
|
27
27
|
</ActionBarAction>
|
|
28
28
|
</ActionBarActions>
|
|
29
29
|
</ActionBar>;
|
|
@@ -62,7 +62,7 @@ Excerpt — not a complete module
|
|
|
62
62
|
| `useActionBarOverflow` | `() => { surface, counterpart }` | — | inside ActionBar | What the parts read: the actions the surface holds, in the order the bar holds them, and what each one becomes. A consumer’s own trigger reads the same value |
|
|
63
63
|
| `ref` | `Ref<HTMLDivElement>` | — | ActionBar and every part | Reaches the element itself. No imperative handle is invented: focus() on the action a page wants to start from is the platform’s own |
|
|
64
64
|
| `fieldset` | `the platform’s own element` | — | around an ActionBar | How a bar is taken out of action. A container cannot disable controls it does not own, and a bar that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent |
|
|
65
|
-
| `Page footer` | `the Page family’s own slot` | — | around an ActionBar | Where a page’s bar belongs. Page paints the ground, the rule and the sticky
|
|
65
|
+
| `Page footer` | `the Page family’s own slot` | — | around an ActionBar | Where a page’s bar belongs. Page paints the ground, the rule and the sticky behavior; this family arranges what is on it, which is why variant="plain" paints nothing |
|
|
66
66
|
|
|
67
67
|
## Axes and defaults
|
|
68
68
|
|
|
@@ -78,10 +78,10 @@ Excerpt — not a complete module
|
|
|
78
78
|
- There is no APG pattern for a bar of actions, and the closest official guidance is the Toolbar pattern (w3.org/WAI/ARIA/apg/patterns/toolbar/). This family departs from it deliberately: there is no roving focus, so Tab reaches every action in the order the author wrote it. The controls here are the page’s own form actions, and a reader walking a form expects to arrive at Cancel and then at Save; a composite would make the whole bar one tab stop and put Save behind an arrow key that announces nothing. The cost is written down — a bar of ten icon-only actions is ten tab stops, and that bar is the Toolbar family.
|
|
79
79
|
- The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role the consumer wrote on the element survives the family’s own.
|
|
80
80
|
- The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.
|
|
81
|
-
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural
|
|
81
|
+
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural. The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.
|
|
82
82
|
- A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.
|
|
83
83
|
- A bar that is not present leaves the document once it has left the view, rather than staying mounted and hidden. Carbon’s batch bar writes aria-hidden on its root and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.
|
|
84
|
-
- Under forced
|
|
84
|
+
- Under forced colors the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast.
|
|
85
85
|
|
|
86
86
|
## Tokens
|
|
87
87
|
|
|
@@ -91,7 +91,7 @@ Excerpt — not a complete module
|
|
|
91
91
|
|
|
92
92
|
### Which action gives way first
|
|
93
93
|
|
|
94
|
-
Narrow the stage and watch the order: “
|
|
94
|
+
Narrow the stage and watch the order: “Preview” goes without a trace, “Duplicate” becomes a menu row, “Return” follows it, and “Approve” never moves. Position decides nothing here — the rank does.
|
|
95
95
|
|
|
96
96
|
Excerpt — not a complete module
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@ Excerpt — not a complete module
|
|
|
99
99
|
<ActionBarActions>
|
|
100
100
|
{/* Gives way before every other rank, and is not offered in the menu. */}
|
|
101
101
|
<ActionBarAction priority="hide">
|
|
102
|
-
<Button variant="ghost">
|
|
102
|
+
<Button variant="ghost">Preview</Button>
|
|
103
103
|
</ActionBarAction>
|
|
104
104
|
{/* low is the default for an action that declares a counterpart. */}
|
|
105
105
|
<ActionBarAction counterpart={<MenuItem>Duplicar</MenuItem>}>
|
|
@@ -124,13 +124,13 @@ Excerpt — not a complete module
|
|
|
124
124
|
|
|
125
125
|
```tsx
|
|
126
126
|
<ActionBarActions>
|
|
127
|
-
<ActionBarAction priority="always" counterpart={<MenuItem>
|
|
128
|
-
<Button variant="ghost">
|
|
127
|
+
<ActionBarAction priority="always" counterpart={<MenuItem>View history</MenuItem>}>
|
|
128
|
+
<Button variant="ghost">View history</Button>
|
|
129
129
|
</ActionBarAction>
|
|
130
130
|
<ActionBarAction>
|
|
131
|
-
<Button>
|
|
131
|
+
<Button>Approve</Button>
|
|
132
132
|
</ActionBarAction>
|
|
133
|
-
<ActionBarOverflow label={(hidden) =>
|
|
133
|
+
<ActionBarOverflow label={(hidden) => `${hidden} more actions`} />
|
|
134
134
|
</ActionBarActions>;
|
|
135
135
|
```
|
|
136
136
|
|
|
@@ -143,7 +143,7 @@ Excerpt — not a complete module
|
|
|
143
143
|
```tsx
|
|
144
144
|
// The run carries margin-inline-start: auto, so what grows or leaves
|
|
145
145
|
// moves what is *before* the last action and never the last action.
|
|
146
|
-
<ActionBar aria-label="
|
|
146
|
+
<ActionBar aria-label="Order actions">
|
|
147
147
|
{dirty ? <ActionBarStatus>{message}</ActionBarStatus> : null}
|
|
148
148
|
<ActionBarActions>
|
|
149
149
|
{canReturn ? (
|
|
@@ -160,7 +160,7 @@ Excerpt — not a complete module
|
|
|
160
160
|
|
|
161
161
|
### A destructive action, and the rule beside it
|
|
162
162
|
|
|
163
|
-
The first bar keeps “
|
|
163
|
+
The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms *is* the destructive one, and the rule is what a hand about to press Keep reads.
|
|
164
164
|
|
|
165
165
|
Excerpt — not a complete module
|
|
166
166
|
|
|
@@ -168,7 +168,7 @@ Excerpt — not a complete module
|
|
|
168
168
|
<ActionBarActions>
|
|
169
169
|
<ActionBarAction>
|
|
170
170
|
<Button variant="ghost" tone="danger">
|
|
171
|
-
|
|
171
|
+
Void invoice
|
|
172
172
|
</Button>
|
|
173
173
|
</ActionBarAction>
|
|
174
174
|
<ActionBarSeparator />
|
|
@@ -202,11 +202,11 @@ Table owns the selection and its count; this family supplies the place, the rank
|
|
|
202
202
|
Excerpt — not a complete module
|
|
203
203
|
|
|
204
204
|
```tsx
|
|
205
|
-
<ActionBar aria-label="
|
|
205
|
+
<ActionBar aria-label="Selection actions" present={selected.length > 0} variant="raised">
|
|
206
206
|
<ActionBarStatus>
|
|
207
|
-
<strong>{selected.length}
|
|
207
|
+
<strong>{selected.length} invoices selected</strong>
|
|
208
208
|
<Button size="sm" variant="ghost" tone="accent" onClick={selectAll}>
|
|
209
|
-
|
|
209
|
+
Select all {total} matching the filter
|
|
210
210
|
</Button>
|
|
211
211
|
</ActionBarStatus>
|
|
212
212
|
<ActionBarActions>
|
|
@@ -228,7 +228,7 @@ Scroll the panel: the bar stays at the bottom and the last line of content scrol
|
|
|
228
228
|
Excerpt — not a complete module
|
|
229
229
|
|
|
230
230
|
```tsx
|
|
231
|
-
<ActionBar aria-label="
|
|
231
|
+
<ActionBar aria-label="Form actions" sticky variant="raised">
|
|
232
232
|
<ActionBarActions>
|
|
233
233
|
<ActionBarAction>
|
|
234
234
|
<Button>Guardar</Button>
|
|
@@ -239,12 +239,12 @@ Excerpt — not a complete module
|
|
|
239
239
|
|
|
240
240
|
### Where the run sits
|
|
241
241
|
|
|
242
|
-
end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce
|
|
242
|
+
end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce centers a docked footer, Polaris ends it, Fluent starts it — so it is an axis.
|
|
243
243
|
|
|
244
244
|
Excerpt — not a complete module
|
|
245
245
|
|
|
246
246
|
```tsx
|
|
247
|
-
<ActionBar aria-label="
|
|
247
|
+
<ActionBar aria-label="Actions" align="center" variant="raised" />;
|
|
248
248
|
```
|
|
249
249
|
|
|
250
250
|
### The step the bar sits at
|
|
@@ -254,7 +254,7 @@ The size moves the bar’s own inset, gap, minimum height and rule — and it re
|
|
|
254
254
|
Excerpt — not a complete module
|
|
255
255
|
|
|
256
256
|
```tsx
|
|
257
|
-
<ActionBar aria-label="
|
|
257
|
+
<ActionBar aria-label="Actions" size="sm" variant="raised">
|
|
258
258
|
<ActionBarActions>
|
|
259
259
|
{/* No size here: the bar hands its own down. */}
|
|
260
260
|
<ActionBarAction>
|
|
@@ -274,8 +274,8 @@ plain is the default and paints nothing — a bar inside a Page footer is alread
|
|
|
274
274
|
Excerpt — not a complete module
|
|
275
275
|
|
|
276
276
|
```tsx
|
|
277
|
-
<ActionBar aria-label="
|
|
278
|
-
<ActionBar aria-label="
|
|
277
|
+
<ActionBar aria-label="Actions" variant="plain" />;
|
|
278
|
+
<ActionBar aria-label="Actions" variant="raised" />;
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
### The bar on a phone
|
|
@@ -288,13 +288,13 @@ Excerpt — not a complete module
|
|
|
288
288
|
// The breakpoint lives in the stylesheet's container query, and the
|
|
289
289
|
// binding reads back the property that query raises rather than holding
|
|
290
290
|
// a copy of the number.
|
|
291
|
-
<ActionBar aria-label="
|
|
291
|
+
<ActionBar aria-label="Order actions" variant="raised">
|
|
292
292
|
<ActionBarActions>
|
|
293
293
|
<ActionBarAction>
|
|
294
|
-
<Button variant="ghost">
|
|
294
|
+
<Button variant="ghost">Discard changes</Button>
|
|
295
295
|
</ActionBarAction>
|
|
296
296
|
<ActionBarAction>
|
|
297
|
-
<Button>
|
|
297
|
+
<Button>Save changes</Button>
|
|
298
298
|
</ActionBarAction>
|
|
299
299
|
</ActionBarActions>
|
|
300
300
|
</ActionBar>;
|
|
@@ -330,7 +330,7 @@ Excerpt — not a complete module
|
|
|
330
330
|
<ActionBarDefaultsProvider size="sm" variant="plain">
|
|
331
331
|
<Page
|
|
332
332
|
footer={
|
|
333
|
-
<ActionBar aria-label="
|
|
333
|
+
<ActionBar aria-label="Order actions" render={(props) => <div {...props} />}>
|
|
334
334
|
<ActionBarActions>
|
|
335
335
|
<ActionBarAction>
|
|
336
336
|
<Button>Submeter</Button>
|
|
@@ -352,7 +352,7 @@ Excerpt — not a complete module
|
|
|
352
352
|
|
|
353
353
|
```tsx
|
|
354
354
|
<fieldset disabled={submitting}>
|
|
355
|
-
<ActionBar aria-label="
|
|
355
|
+
<ActionBar aria-label="Order actions">
|
|
356
356
|
<ActionBarActions>
|
|
357
357
|
<ActionBarAction>
|
|
358
358
|
<Button variant="ghost">Cancelar</Button>
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
{
|
|
372
372
|
"name": "onClick, onKeyDown, onPointerMove, on every part",
|
|
373
373
|
"payload": "the element’s own events",
|
|
374
|
-
"when": "Whenever the element fires them. The consumer’s handler runs first, and preventDefault() refuses the family’s own
|
|
374
|
+
"when": "Whenever the element fires them. The consumer’s handler runs first, and preventDefault() refuses the family’s own behavior."
|
|
375
375
|
}
|
|
376
376
|
],
|
|
377
377
|
"accessibility": [
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"title": "A trigger, the actions and the way out",
|
|
451
451
|
"note": "Press Partilhar: the sheet rises from the bottom edge over a scrim, focus lands on the first action, and choosing one closes it with the reason select and the action’s value.",
|
|
452
452
|
"language": "tsx",
|
|
453
|
-
"source": "<ActionSheet onOpenChange={(open, request) => run(request.result)}>\n <ActionSheetTrigger>Partilhar</ActionSheetTrigger>\n <ActionSheetContent>\n <ActionSheetHeader>\n <ActionSheetTitle>
|
|
453
|
+
"source": "<ActionSheet onOpenChange={(open, request) => run(request.result)}>\n <ActionSheetTrigger>Partilhar</ActionSheetTrigger>\n <ActionSheetContent>\n <ActionSheetHeader>\n <ActionSheetTitle>Share report</ActionSheetTitle>\n <ActionSheetMessage>Anyone who receives the link sees today's version.</ActionSheetMessage>\n </ActionSheetHeader>\n <ActionSheetList>\n <ActionSheetItem value=\"copy\" icon={<Copy />}>\n Copy link\n </ActionSheetItem>\n <ActionSheetItem value=\"pdf\" icon={<FileText />}>\n Descarregar PDF\n </ActionSheetItem>\n </ActionSheetList>\n <ActionSheetCancel>Cancelar</ActionSheetCancel>\n </ActionSheetContent>\n</ActionSheet>;\n",
|
|
454
454
|
"verdict": "excerpt"
|
|
455
455
|
},
|
|
456
456
|
{
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"title": "The destructive choice, at the top",
|
|
459
459
|
"note": "tone=\"danger\" paints the words, the mark and the highlight red, and the destructive action goes first, where it is noticed. Opened, this sheet puts focus on Cancelar rather than on the danger.",
|
|
460
460
|
"language": "tsx",
|
|
461
|
-
"source": "<ActionSheetList>\n <ActionSheetItem value=\"delete\" tone=\"danger\">\n
|
|
461
|
+
"source": "<ActionSheetList>\n <ActionSheetItem value=\"delete\" tone=\"danger\">\n Delete draft\n </ActionSheetItem>\n <ActionSheetItem value=\"save\">Save draft</ActionSheetItem>\n</ActionSheetList>;\n",
|
|
462
462
|
"verdict": "excerpt"
|
|
463
463
|
},
|
|
464
464
|
{
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
"title": "Groups, a rule, a second line and an action that is not available",
|
|
467
467
|
"note": "A group is named by its label, a separator draws the rule between two runs, and a disabled action keeps its place and says in its second line why it cannot run — it stays in the arrow ring and refuses the press.",
|
|
468
468
|
"language": "tsx",
|
|
469
|
-
"source": "<ActionSheetList>\n <ActionSheetGroup label=\"
|
|
469
|
+
"source": "<ActionSheetList>\n <ActionSheetGroup label=\"Send\">\n <ActionSheetItem value=\"remind\">Remind the customer</ActionSheetItem>\n <ActionSheetItem value=\"accounting\" disabled description=\"Available after approval\">\n Send to accounting\n </ActionSheetItem>\n </ActionSheetGroup>\n <ActionSheetSeparator />\n <ActionSheetGroup label=\"Estado\">\n <ActionSheetItem value=\"paid\" tone=\"success\">\n Marcar como paga\n </ActionSheetItem>\n </ActionSheetGroup>\n</ActionSheetList>;\n",
|
|
470
470
|
"verdict": "excerpt"
|
|
471
471
|
},
|
|
472
472
|
{
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"title": "One list of actions, a menu on a pointer and a sheet on a phone",
|
|
523
523
|
"note": "The item vocabulary is menu’s, word for word — value, icon, description, tone, disabled, onSelect — so one array renders as either family, and the breakpoint that picks between them is the application’s.",
|
|
524
524
|
"language": "tsx",
|
|
525
|
-
"source": "const coarse = useMediaQuery('(pointer: coarse)');\n\ncoarse ? (\n <ActionSheet>\n <ActionSheetTrigger>
|
|
525
|
+
"source": "const coarse = useMediaQuery('(pointer: coarse)');\n\ncoarse ? (\n <ActionSheet>\n <ActionSheetTrigger>More</ActionSheetTrigger>\n <ActionSheetContent aria-label=\"Actions\">\n <ActionSheetList aria-label=\"Actions\">\n {actions.map((action) => (\n <ActionSheetItem key={action.value} {...action} />\n ))}\n </ActionSheetList>\n <ActionSheetCancel />\n </ActionSheetContent>\n </ActionSheet>\n) : (\n <Menu>\n <MenuTrigger>More</MenuTrigger>\n <MenuContent aria-label=\"Actions\">\n {actions.map((action) => (\n <MenuItem key={action.value} {...action} />\n ))}\n </MenuContent>\n </Menu>\n);\n",
|
|
526
526
|
"verdict": "excerpt"
|
|
527
527
|
},
|
|
528
528
|
{
|