@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/sparkline.json
CHANGED
|
@@ -117,13 +117,13 @@
|
|
|
117
117
|
"part": "ring",
|
|
118
118
|
"element": "path",
|
|
119
119
|
"required": false,
|
|
120
|
-
"purpose": "The ground-
|
|
120
|
+
"purpose": "The ground-colored ring under the marker, drawn as a round-capped stroke so it stays round on a stretched grid."
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"part": "marker",
|
|
124
124
|
"element": "path",
|
|
125
125
|
"required": false,
|
|
126
|
-
"purpose": "The disc on the last real point, in the series
|
|
126
|
+
"purpose": "The disc on the last real point, in the series color. Present with marker on a line."
|
|
127
127
|
}
|
|
128
128
|
],
|
|
129
129
|
"api": [
|
|
@@ -282,8 +282,8 @@
|
|
|
282
282
|
"The root carries role=\"img\" and an aria-label generated from the data: the last value, the direction and the change since the first — “Fill rate: 96.1%, up 3.2% since 92.9%”. Those are the two numbers a sparkline exists to compare, and they reach a reader who cannot see the shape.",
|
|
283
283
|
"The svg is aria-hidden. A drawing with no interaction is an image, and its content is pixels; there is no APG pattern for a sparkline, and the WAI-ARIA Graphics module reserves graphics-document for a drawing whose parts are navigable, which this one has none of.",
|
|
284
284
|
"Nothing here is focusable and nothing answers a key. Tooltips and per-point highlight belong to chart; a sparkline with them would be a small line chart.",
|
|
285
|
-
"
|
|
286
|
-
"Under forced
|
|
285
|
+
"Color never carries the reading alone: the direction is in the description, the current bar is the last one by position as well as by color, and a tone is a second encoding on top of the shape.",
|
|
286
|
+
"Under forced colors the data scale and the tones map to CanvasText, the wash is withdrawn, earlier bars take GrayText and the current one CanvasText, so a series still reads as one.",
|
|
287
287
|
"The eight slots of the data scale were chosen by measurement: adjacent slots separate by at least ΔE 16.8 under simulated protanopia and deuteranopia in every scheme, and every slot clears 3:1 against every surface."
|
|
288
288
|
]
|
|
289
289
|
}
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
{
|
|
348
348
|
"id": "types",
|
|
349
349
|
"title": "A line for a trend, bars for a count per period",
|
|
350
|
-
"note": "The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full
|
|
350
|
+
"note": "The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full color.",
|
|
351
351
|
"language": "tsx",
|
|
352
352
|
"source": "<Sparkline data={orders} />;\n<Sparkline area data={orders} />;\n<Sparkline area curve=\"monotone\" data={orders} />;\n<Sparkline data={orders} type=\"bar\" />;\n",
|
|
353
353
|
"verdict": "excerpt"
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
{
|
|
364
364
|
"id": "tone",
|
|
365
365
|
"title": "How the series is doing",
|
|
366
|
-
"note": "A tone paints the line in the tone’s text
|
|
366
|
+
"note": "A tone paints the line in the tone’s text color: success for an error rate that fell, danger for a lead time that grew, neutral for the comparison series behind a current one. Without a tone the line is the first slot of the data scale, the accent’s own hue.",
|
|
367
367
|
"language": "tsx",
|
|
368
368
|
"source": "<Sparkline data={errorRate} label=\"Error rate\" tone=\"success\" />;\n<Sparkline data={leadTime} label=\"Lead time\" tone=\"danger\" />;\n<Sparkline data={lastQuarter} label=\"Last quarter\" tone=\"neutral\" />;\n",
|
|
369
369
|
"verdict": "excerpt"
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
{
|
|
372
372
|
"id": "series",
|
|
373
373
|
"title": "Which series this is",
|
|
374
|
-
"note": "Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight
|
|
374
|
+
"note": "Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight colors a reader with deuteranopia still tells apart. A tone wins over a series where both are given.",
|
|
375
375
|
"language": "tsx",
|
|
376
376
|
"source": "<>\n {warehouses.map((warehouse, index) => (\n <Sparkline\n data={warehouse.shipments}\n key={warehouse.id}\n label={warehouse.name}\n series={(index + 1) as SparklineSeries}\n />\n ))}\n</>;\n",
|
|
377
377
|
"verdict": "excerpt"
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
{
|
|
380
380
|
"id": "reference",
|
|
381
381
|
"title": "A line that is not data",
|
|
382
|
-
"note": "The reference is dashed and neutral so it reads as a target before its
|
|
382
|
+
"note": "The reference is dashed and neutral so it reads as a target before its color does, and it widens the extent when it lies outside the data: a target of 95% above a series that peaks at 91% is drawn above the line, not clipped.",
|
|
383
383
|
"language": "tsx",
|
|
384
384
|
"source": "<Sparkline area data={onTime} label=\"On-time delivery\" reference={0.95} />;\n\n// A share of a whole is drawn from nought.\n<Sparkline data={onTime} min={0} type=\"bar\" />;\n",
|
|
385
385
|
"verdict": "excerpt"
|
package/dist/docs/sparkline.md
CHANGED
|
@@ -71,8 +71,8 @@ Excerpt — not a complete module
|
|
|
71
71
|
- The root carries role="img" and an aria-label generated from the data: the last value, the direction and the change since the first — “Fill rate: 96.1%, up 3.2% since 92.9%”. Those are the two numbers a sparkline exists to compare, and they reach a reader who cannot see the shape.
|
|
72
72
|
- The svg is aria-hidden. A drawing with no interaction is an image, and its content is pixels; there is no APG pattern for a sparkline, and the WAI-ARIA Graphics module reserves graphics-document for a drawing whose parts are navigable, which this one has none of.
|
|
73
73
|
- Nothing here is focusable and nothing answers a key. Tooltips and per-point highlight belong to chart; a sparkline with them would be a small line chart.
|
|
74
|
-
-
|
|
75
|
-
- Under forced
|
|
74
|
+
- Color never carries the reading alone: the direction is in the description, the current bar is the last one by position as well as by color, and a tone is a second encoding on top of the shape.
|
|
75
|
+
- Under forced colors the data scale and the tones map to CanvasText, the wash is withdrawn, earlier bars take GrayText and the current one CanvasText, so a series still reads as one.
|
|
76
76
|
- The eight slots of the data scale were chosen by measurement: adjacent slots separate by at least ΔE 16.8 under simulated protanopia and deuteranopia in every scheme, and every slot clears 3:1 against every surface.
|
|
77
77
|
|
|
78
78
|
## Tokens
|
|
@@ -83,7 +83,7 @@ Excerpt — not a complete module
|
|
|
83
83
|
|
|
84
84
|
### A line for a trend, bars for a count per period
|
|
85
85
|
|
|
86
|
-
The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full
|
|
86
|
+
The same twelve weeks four ways: a straight line, the line washed, the line smoothed with a monotone curve that never overshoots a point, and one bar per week with the current week at full color.
|
|
87
87
|
|
|
88
88
|
Excerpt — not a complete module
|
|
89
89
|
|
|
@@ -108,7 +108,7 @@ Excerpt — not a complete module
|
|
|
108
108
|
|
|
109
109
|
### How the series is doing
|
|
110
110
|
|
|
111
|
-
A tone paints the line in the tone’s text
|
|
111
|
+
A tone paints the line in the tone’s text color: success for an error rate that fell, danger for a lead time that grew, neutral for the comparison series behind a current one. Without a tone the line is the first slot of the data scale, the accent’s own hue.
|
|
112
112
|
|
|
113
113
|
Excerpt — not a complete module
|
|
114
114
|
|
|
@@ -120,7 +120,7 @@ Excerpt — not a complete module
|
|
|
120
120
|
|
|
121
121
|
### Which series this is
|
|
122
122
|
|
|
123
|
-
Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight
|
|
123
|
+
Eight slots of the data scale in a fixed order, so the sparklines of eight warehouses beside each other are eight colors a reader with deuteranopia still tells apart. A tone wins over a series where both are given.
|
|
124
124
|
|
|
125
125
|
Excerpt — not a complete module
|
|
126
126
|
|
|
@@ -139,7 +139,7 @@ Excerpt — not a complete module
|
|
|
139
139
|
|
|
140
140
|
### A line that is not data
|
|
141
141
|
|
|
142
|
-
The reference is dashed and neutral so it reads as a target before its
|
|
142
|
+
The reference is dashed and neutral so it reads as a target before its color does, and it widens the extent when it lies outside the data: a target of 95% above a series that peaks at 91% is drawn above the line, not clipped.
|
|
143
143
|
|
|
144
144
|
Excerpt — not a complete module
|
|
145
145
|
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
"title": "Playground",
|
|
277
277
|
"note": "One split button with every axis on it, driven by the controls below the canvas. Tab reaches the action, then the menu button: two controls, two stops, one shape.",
|
|
278
278
|
"language": "tsx",
|
|
279
|
-
"source": "<SplitButton>\n <SplitButtonPrimary onClick={save}>
|
|
279
|
+
"source": "<SplitButton>\n <SplitButtonPrimary onClick={save}>Save</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More save options\" />\n <MenuContent>\n <MenuItem onSelect={saveDraft}>Save as draft</MenuItem>\n <MenuItem onSelect={saveAndClose}>Save and close</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
280
280
|
"verdict": "excerpt"
|
|
281
281
|
},
|
|
282
282
|
{
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"title": "Five tones, three variants, one seam",
|
|
285
285
|
"note": "Every tone and variant is button’s, handed to both halves at once. Between two solid halves the seam is the tone’s darkest step, painted on the trigger’s leading edge — the one edge the join leaves in the shared column.",
|
|
286
286
|
"language": "tsx",
|
|
287
|
-
"source": "<SplitButton tone=\"danger\" variant=\"outline\">\n <SplitButtonPrimary onClick={remove}>
|
|
287
|
+
"source": "<SplitButton tone=\"danger\" variant=\"outline\">\n <SplitButtonPrimary onClick={remove}>Delete</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More delete options\" />\n <MenuContent>\n <MenuItem onSelect={archive}>Archive instead</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
288
288
|
"verdict": "excerpt"
|
|
289
289
|
},
|
|
290
290
|
{
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"title": "Three steps, one control tall",
|
|
293
293
|
"note": "Both halves read the control scale, so the bar is exactly as tall as the field beside it and the trigger stays square at every step. Switch the density in the toolbar: the pair moves together.",
|
|
294
294
|
"language": "tsx",
|
|
295
|
-
"source": "<SplitButton size=\"sm\">\n <SplitButtonPrimary onClick={save}>
|
|
295
|
+
"source": "<SplitButton size=\"sm\">\n <SplitButtonPrimary onClick={save}>Save</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More save options\" />\n <MenuContent>\n <MenuItem onSelect={saveDraft}>Save as draft</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
296
296
|
"verdict": "excerpt"
|
|
297
297
|
},
|
|
298
298
|
{
|
|
@@ -300,15 +300,15 @@
|
|
|
300
300
|
"title": "The choice becomes the action",
|
|
301
301
|
"note": "Under remember the alternatives are radio items bound to the family’s value, and the page renders the action’s label from it — the merge button whose strategy a repository remembers. Choose one, then read the primary. Without remember the items are actions.",
|
|
302
302
|
"language": "tsx",
|
|
303
|
-
"source": "const [strategy, setStrategy] = useState('squash');\n\n<SplitButton onValueChange={setStrategy} remember value={strategy}>\n <SplitButtonPrimary onClick={() => merge(strategy)}>{labels[strategy]}</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"
|
|
303
|
+
"source": "const [strategy, setStrategy] = useState('squash');\n\n<SplitButton onValueChange={setStrategy} remember value={strategy}>\n <SplitButtonPrimary onClick={() => merge(strategy)}>{labels[strategy]}</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More merge strategies\" />\n <MenuContent>\n <SplitButtonChoices>\n <MenuRadioItem value=\"merge\">Criar um commit de merge</MenuRadioItem>\n <MenuRadioItem value=\"squash\">Squash e merge</MenuRadioItem>\n <MenuRadioItem value=\"rebase\">Rebase e merge</MenuRadioItem>\n </SplitButtonChoices>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
304
304
|
"verdict": "excerpt"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"id": "loading",
|
|
308
308
|
"title": "The action in flight",
|
|
309
|
-
"note": "Press
|
|
309
|
+
"note": "Press Save: the primary shows button’s indicator with its width and name held, and the menu button waits with it — aria-disabled, still focusable, still painted in the tone, refusing the click and the arrow keys. The bar is one control that is busy.",
|
|
310
310
|
"language": "tsx",
|
|
311
|
-
"source": "<SplitButton loading={saving}>\n <SplitButtonPrimary onClick={save}>
|
|
311
|
+
"source": "<SplitButton loading={saving}>\n <SplitButtonPrimary onClick={save}>Save</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More save options\" />\n <MenuContent>\n <MenuItem onSelect={saveDraft}>Save as draft</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
312
312
|
"verdict": "excerpt"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"title": "Every state the contract declares",
|
|
317
317
|
"note": "disabled on the root takes both halves out natively; disabled on one half leaves the other an action. Hover, press and focus are button’s, and only focus is raised above the seam, because a hover repaints a fill and never an edge.",
|
|
318
318
|
"language": "tsx",
|
|
319
|
-
"source": "<SplitButton>\n <SplitButtonPrimary disabled>
|
|
319
|
+
"source": "<SplitButton>\n <SplitButtonPrimary disabled>Merge</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More merge options\" />\n <MenuContent>\n <MenuItem onSelect={closeRequest}>Close without merging</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
320
320
|
"verdict": "excerpt"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"title": "The line, and a narrow room",
|
|
325
325
|
"note": "fullWidth gives the line to the action alone and the trigger stays square. In a narrow column the label wraps inside its own control, which is button’s rule, and the bar never pushes past the container.",
|
|
326
326
|
"language": "tsx",
|
|
327
|
-
"source": "<SplitButton fullWidth>\n <SplitButtonPrimary onClick={order}>
|
|
327
|
+
"source": "<SplitButton fullWidth>\n <SplitButtonPrimary onClick={order}>Place order</SplitButtonPrimary>\n <SplitButtonMenu>\n <SplitButtonMenuTrigger aria-label=\"More order options\" />\n <MenuContent>\n <MenuItem onSelect={schedule}>Schedule delivery</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n</SplitButton>;\n",
|
|
328
328
|
"verdict": "excerpt"
|
|
329
329
|
},
|
|
330
330
|
{
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"title": "Content the family did not choose",
|
|
333
333
|
"note": "An icon before the label is Button’s start slot and reaches the primary unchanged; a long translated action wraps rather than growing the bar; a right-to-left document puts the trigger at the other end of the action. Switch the direction in the toolbar.",
|
|
334
334
|
"language": "tsx",
|
|
335
|
-
"source": "<SplitButtonPrimary onClick={save} start={<Save size={16} />}>\n
|
|
335
|
+
"source": "<SplitButtonPrimary onClick={save} start={<Save size={16} />}>\n Save\n</SplitButtonPrimary>;\n",
|
|
336
336
|
"verdict": "excerpt"
|
|
337
337
|
},
|
|
338
338
|
{
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"title": "Defaults once, the consumer’s own elements, and the handle",
|
|
341
341
|
"note": "The provider sets tone, variant and size for every split button under it, and button’s own provider is consulted after it. render substitutes the root and either half and keeps the part; the ref on SplitButtonMenu is menu’s handle — open(), close(), focus().",
|
|
342
342
|
"language": "tsx",
|
|
343
|
-
"source": "<SplitButtonDefaultsProvider size=\"sm\" variant=\"outline\">\n <SplitButton render={(props) => <section {...props} />}>\n <SplitButtonPrimary render={(props) => <button {...props} data-track=\"save\" />}>\n
|
|
343
|
+
"source": "<SplitButtonDefaultsProvider size=\"sm\" variant=\"outline\">\n <SplitButton render={(props) => <section {...props} />}>\n <SplitButtonPrimary render={(props) => <button {...props} data-track=\"save\" />}>\n Save\n </SplitButtonPrimary>\n <SplitButtonMenu ref={menu}>\n <SplitButtonMenuTrigger aria-label=\"More save options\" />\n <MenuContent>\n <MenuItem onSelect={saveDraft}>Save as draft</MenuItem>\n </MenuContent>\n </SplitButtonMenu>\n </SplitButton>\n</SplitButtonDefaultsProvider>;\n",
|
|
344
344
|
"verdict": "excerpt"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"title": "The keyboard, key by key",
|
|
349
349
|
"note": "Tab reaches the action, then the menu button. Space and Enter run the action from the first and open the menu from the second; ArrowDown opens on the first item, ArrowUp on the last; Escape closes and returns to the trigger. ArrowDown on the action does nothing.",
|
|
350
350
|
"language": "tsx",
|
|
351
|
-
"source": "<SplitButtonMenu onOpenChange={(open, request) => log(request.reason)}>\n <SplitButtonMenuTrigger aria-label=\"
|
|
351
|
+
"source": "<SplitButtonMenu onOpenChange={(open, request) => log(request.reason)}>\n <SplitButtonMenuTrigger aria-label=\"More save options\" />\n <MenuContent>\n <MenuItem onSelect={saveDraft}>Save as draft</MenuItem>\n </MenuContent>\n</SplitButtonMenu>;\n",
|
|
352
352
|
"verdict": "excerpt"
|
|
353
353
|
}
|
|
354
354
|
]
|
|
@@ -22,12 +22,12 @@ Excerpt — not a complete module
|
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
24
|
<SplitButton>
|
|
25
|
-
<SplitButtonPrimary onClick={save}>
|
|
25
|
+
<SplitButtonPrimary onClick={save}>Save</SplitButtonPrimary>
|
|
26
26
|
<SplitButtonMenu>
|
|
27
|
-
<SplitButtonMenuTrigger aria-label="
|
|
27
|
+
<SplitButtonMenuTrigger aria-label="More save options" />
|
|
28
28
|
<MenuContent>
|
|
29
|
-
<MenuItem onSelect={saveDraft}>
|
|
30
|
-
<MenuItem onSelect={saveAndClose}>
|
|
29
|
+
<MenuItem onSelect={saveDraft}>Save as draft</MenuItem>
|
|
30
|
+
<MenuItem onSelect={saveAndClose}>Save and close</MenuItem>
|
|
31
31
|
</MenuContent>
|
|
32
32
|
</SplitButtonMenu>
|
|
33
33
|
</SplitButton>;
|
|
@@ -104,11 +104,11 @@ Excerpt — not a complete module
|
|
|
104
104
|
|
|
105
105
|
```tsx
|
|
106
106
|
<SplitButton tone="danger" variant="outline">
|
|
107
|
-
<SplitButtonPrimary onClick={remove}>
|
|
107
|
+
<SplitButtonPrimary onClick={remove}>Delete</SplitButtonPrimary>
|
|
108
108
|
<SplitButtonMenu>
|
|
109
|
-
<SplitButtonMenuTrigger aria-label="
|
|
109
|
+
<SplitButtonMenuTrigger aria-label="More delete options" />
|
|
110
110
|
<MenuContent>
|
|
111
|
-
<MenuItem onSelect={archive}>
|
|
111
|
+
<MenuItem onSelect={archive}>Archive instead</MenuItem>
|
|
112
112
|
</MenuContent>
|
|
113
113
|
</SplitButtonMenu>
|
|
114
114
|
</SplitButton>;
|
|
@@ -122,11 +122,11 @@ Excerpt — not a complete module
|
|
|
122
122
|
|
|
123
123
|
```tsx
|
|
124
124
|
<SplitButton size="sm">
|
|
125
|
-
<SplitButtonPrimary onClick={save}>
|
|
125
|
+
<SplitButtonPrimary onClick={save}>Save</SplitButtonPrimary>
|
|
126
126
|
<SplitButtonMenu>
|
|
127
|
-
<SplitButtonMenuTrigger aria-label="
|
|
127
|
+
<SplitButtonMenuTrigger aria-label="More save options" />
|
|
128
128
|
<MenuContent>
|
|
129
|
-
<MenuItem onSelect={saveDraft}>
|
|
129
|
+
<MenuItem onSelect={saveDraft}>Save as draft</MenuItem>
|
|
130
130
|
</MenuContent>
|
|
131
131
|
</SplitButtonMenu>
|
|
132
132
|
</SplitButton>;
|
|
@@ -144,7 +144,7 @@ const [strategy, setStrategy] = useState('squash');
|
|
|
144
144
|
<SplitButton onValueChange={setStrategy} remember value={strategy}>
|
|
145
145
|
<SplitButtonPrimary onClick={() => merge(strategy)}>{labels[strategy]}</SplitButtonPrimary>
|
|
146
146
|
<SplitButtonMenu>
|
|
147
|
-
<SplitButtonMenuTrigger aria-label="
|
|
147
|
+
<SplitButtonMenuTrigger aria-label="More merge strategies" />
|
|
148
148
|
<MenuContent>
|
|
149
149
|
<SplitButtonChoices>
|
|
150
150
|
<MenuRadioItem value="merge">Criar um commit de merge</MenuRadioItem>
|
|
@@ -158,17 +158,17 @@ const [strategy, setStrategy] = useState('squash');
|
|
|
158
158
|
|
|
159
159
|
### The action in flight
|
|
160
160
|
|
|
161
|
-
Press
|
|
161
|
+
Press Save: the primary shows button’s indicator with its width and name held, and the menu button waits with it — aria-disabled, still focusable, still painted in the tone, refusing the click and the arrow keys. The bar is one control that is busy.
|
|
162
162
|
|
|
163
163
|
Excerpt — not a complete module
|
|
164
164
|
|
|
165
165
|
```tsx
|
|
166
166
|
<SplitButton loading={saving}>
|
|
167
|
-
<SplitButtonPrimary onClick={save}>
|
|
167
|
+
<SplitButtonPrimary onClick={save}>Save</SplitButtonPrimary>
|
|
168
168
|
<SplitButtonMenu>
|
|
169
|
-
<SplitButtonMenuTrigger aria-label="
|
|
169
|
+
<SplitButtonMenuTrigger aria-label="More save options" />
|
|
170
170
|
<MenuContent>
|
|
171
|
-
<MenuItem onSelect={saveDraft}>
|
|
171
|
+
<MenuItem onSelect={saveDraft}>Save as draft</MenuItem>
|
|
172
172
|
</MenuContent>
|
|
173
173
|
</SplitButtonMenu>
|
|
174
174
|
</SplitButton>;
|
|
@@ -182,11 +182,11 @@ Excerpt — not a complete module
|
|
|
182
182
|
|
|
183
183
|
```tsx
|
|
184
184
|
<SplitButton>
|
|
185
|
-
<SplitButtonPrimary disabled>
|
|
185
|
+
<SplitButtonPrimary disabled>Merge</SplitButtonPrimary>
|
|
186
186
|
<SplitButtonMenu>
|
|
187
|
-
<SplitButtonMenuTrigger aria-label="
|
|
187
|
+
<SplitButtonMenuTrigger aria-label="More merge options" />
|
|
188
188
|
<MenuContent>
|
|
189
|
-
<MenuItem onSelect={closeRequest}>
|
|
189
|
+
<MenuItem onSelect={closeRequest}>Close without merging</MenuItem>
|
|
190
190
|
</MenuContent>
|
|
191
191
|
</SplitButtonMenu>
|
|
192
192
|
</SplitButton>;
|
|
@@ -200,11 +200,11 @@ Excerpt — not a complete module
|
|
|
200
200
|
|
|
201
201
|
```tsx
|
|
202
202
|
<SplitButton fullWidth>
|
|
203
|
-
<SplitButtonPrimary onClick={order}>
|
|
203
|
+
<SplitButtonPrimary onClick={order}>Place order</SplitButtonPrimary>
|
|
204
204
|
<SplitButtonMenu>
|
|
205
|
-
<SplitButtonMenuTrigger aria-label="
|
|
205
|
+
<SplitButtonMenuTrigger aria-label="More order options" />
|
|
206
206
|
<MenuContent>
|
|
207
|
-
<MenuItem onSelect={schedule}>
|
|
207
|
+
<MenuItem onSelect={schedule}>Schedule delivery</MenuItem>
|
|
208
208
|
</MenuContent>
|
|
209
209
|
</SplitButtonMenu>
|
|
210
210
|
</SplitButton>;
|
|
@@ -218,7 +218,7 @@ Excerpt — not a complete module
|
|
|
218
218
|
|
|
219
219
|
```tsx
|
|
220
220
|
<SplitButtonPrimary onClick={save} start={<Save size={16} />}>
|
|
221
|
-
|
|
221
|
+
Save
|
|
222
222
|
</SplitButtonPrimary>;
|
|
223
223
|
```
|
|
224
224
|
|
|
@@ -232,12 +232,12 @@ Excerpt — not a complete module
|
|
|
232
232
|
<SplitButtonDefaultsProvider size="sm" variant="outline">
|
|
233
233
|
<SplitButton render={(props) => <section {...props} />}>
|
|
234
234
|
<SplitButtonPrimary render={(props) => <button {...props} data-track="save" />}>
|
|
235
|
-
|
|
235
|
+
Save
|
|
236
236
|
</SplitButtonPrimary>
|
|
237
237
|
<SplitButtonMenu ref={menu}>
|
|
238
|
-
<SplitButtonMenuTrigger aria-label="
|
|
238
|
+
<SplitButtonMenuTrigger aria-label="More save options" />
|
|
239
239
|
<MenuContent>
|
|
240
|
-
<MenuItem onSelect={saveDraft}>
|
|
240
|
+
<MenuItem onSelect={saveDraft}>Save as draft</MenuItem>
|
|
241
241
|
</MenuContent>
|
|
242
242
|
</SplitButtonMenu>
|
|
243
243
|
</SplitButton>
|
|
@@ -252,9 +252,9 @@ Excerpt — not a complete module
|
|
|
252
252
|
|
|
253
253
|
```tsx
|
|
254
254
|
<SplitButtonMenu onOpenChange={(open, request) => log(request.reason)}>
|
|
255
|
-
<SplitButtonMenuTrigger aria-label="
|
|
255
|
+
<SplitButtonMenuTrigger aria-label="More save options" />
|
|
256
256
|
<MenuContent>
|
|
257
|
-
<MenuItem onSelect={saveDraft}>
|
|
257
|
+
<MenuItem onSelect={saveDraft}>Save as draft</MenuItem>
|
|
258
258
|
</MenuContent>
|
|
259
259
|
</SplitButtonMenu>;
|
|
260
260
|
```
|
package/dist/docs/stack.json
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"title": "The outer stack separates sections, the inner separates lines",
|
|
128
128
|
"note": null,
|
|
129
129
|
"language": "tsx",
|
|
130
|
-
"source": "<Stack gap={8}>\n <Stack gap={2}>\n <Text weight=\"semibold\">Payment method</Text>\n <Text tone=\"muted\">Visa ending 4242</Text>\n </Stack>\n <Stack gap={2}>\n <Text weight=\"semibold\">Billing address</Text>\n <Text tone=\"muted\">
|
|
130
|
+
"source": "<Stack gap={8}>\n <Stack gap={2}>\n <Text weight=\"semibold\">Payment method</Text>\n <Text tone=\"muted\">Visa ending 4242</Text>\n </Stack>\n <Stack gap={2}>\n <Text weight=\"semibold\">Billing address</Text>\n <Text tone=\"muted\">200 Harbor Street</Text>\n </Stack>\n</Stack>;\n",
|
|
131
131
|
"verdict": "excerpt"
|
|
132
132
|
},
|
|
133
133
|
{
|
package/dist/docs/stack.md
CHANGED
package/dist/docs/stat-card.json
CHANGED
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"part": "indicator",
|
|
163
163
|
"element": "span",
|
|
164
164
|
"required": false,
|
|
165
|
-
"purpose": "The mark beside the delta: trending-up, turned over for a fall, minus for no change. Painted from the delta’s ink and kept under forced
|
|
165
|
+
"purpose": "The mark beside the delta: trending-up, turned over for a fall, minus for no change. Painted from the delta’s ink and kept under forced colors."
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"part": "comparison",
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"accessibility": [
|
|
352
352
|
"The root is a group named by its label through aria-labelledby, so a reader who lands on the action inside it hears which metric it belongs to. There is no APG pattern for a statistic; a group with a name is what the platform offers a labelled region that is not a landmark.",
|
|
353
353
|
"The delta reads its direction before its number — “up +12.4%” — from a visually hidden word, because a sign is a glyph some readers skip and “12.4%” alone does not say which way. The indicator is aria-hidden; it repeats what the word says.",
|
|
354
|
-
"The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in
|
|
354
|
+
"The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in color and in nothing a reader without color loses.",
|
|
355
355
|
"While loading the root carries aria-busy=\"true\" and every placeholder is a skeleton, hidden and inert. One announcement for a whole dashboard is a SkeletonRegion around it, which is the platform’s own answer rather than one per card.",
|
|
356
356
|
"A missing or failed value is a dash and a message, in the DOM and in the tree; a card never announces a stale number as current.",
|
|
357
357
|
"The value is never truncated. A number wider than the trend’s room takes the room; a number wider than the card breaks; nothing is clipped or hidden behind an ellipsis."
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
{
|
|
500
500
|
"id": "fill",
|
|
501
501
|
"title": "Four frames",
|
|
502
|
-
"note": "outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced
|
|
502
|
+
"note": "outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced colors; subtle recedes onto the sunken surface; plain has no frame and no inset, for a table cell or a row divided by rules where a second edge would be a box in a box.",
|
|
503
503
|
"language": "tsx",
|
|
504
504
|
"source": "<StatCard fill=\"outline\">…</StatCard>;\n<StatCard fill=\"elevated\">…</StatCard>;\n<StatCard fill=\"subtle\">…</StatCard>;\n<StatCard fill=\"plain\">…</StatCard>;\n",
|
|
505
505
|
"verdict": "excerpt"
|
package/dist/docs/stat-card.md
CHANGED
|
@@ -110,7 +110,7 @@ Excerpt — not a complete module
|
|
|
110
110
|
|
|
111
111
|
- The root is a group named by its label through aria-labelledby, so a reader who lands on the action inside it hears which metric it belongs to. There is no APG pattern for a statistic; a group with a name is what the platform offers a labelled region that is not a landmark.
|
|
112
112
|
- The delta reads its direction before its number — “up +12.4%” — from a visually hidden word, because a sign is a glyph some readers skip and “12.4%” alone does not say which way. The indicator is aria-hidden; it repeats what the word says.
|
|
113
|
-
- The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in
|
|
113
|
+
- The tone is never the only channel: the indicator turns, the word is read, the sign is written. A rise that is bad and a rise that is good differ in color and in nothing a reader without color loses.
|
|
114
114
|
- While loading the root carries aria-busy="true" and every placeholder is a skeleton, hidden and inert. One announcement for a whole dashboard is a SkeletonRegion around it, which is the platform’s own answer rather than one per card.
|
|
115
115
|
- A missing or failed value is a dash and a message, in the DOM and in the tree; a card never announces a stale number as current.
|
|
116
116
|
- The value is never truncated. A number wider than the trend’s room takes the room; a number wider than the card breaks; nothing is clipped or hidden behind an ellipsis.
|
|
@@ -195,7 +195,7 @@ Excerpt — not a complete module
|
|
|
195
195
|
|
|
196
196
|
### Four frames
|
|
197
197
|
|
|
198
|
-
outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced
|
|
198
|
+
outline is the hairline card; elevated lifts on a shadow and keeps the hairline for forced colors; subtle recedes onto the sunken surface; plain has no frame and no inset, for a table cell or a row divided by rules where a second edge would be a box in a box.
|
|
199
199
|
|
|
200
200
|
Excerpt — not a complete module
|
|
201
201
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"part": "mark",
|
|
76
76
|
"element": "span",
|
|
77
77
|
"required": true,
|
|
78
|
-
"purpose": "The disc or the glyph, inside the first line and
|
|
78
|
+
"purpose": "The disc or the glyph, inside the first line and centerd on its capitals, so the mark stays on that line however far the label wraps. Hidden from assistive technology: it says nothing the label does not."
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"part": "label",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"part": "detail",
|
|
88
88
|
"element": "span",
|
|
89
89
|
"required": false,
|
|
90
|
-
"purpose": "A second, quieter line under the words — a progress, a time — set in the muted text
|
|
90
|
+
"purpose": "A second, quieter line under the words — a progress, a time — set in the muted text color and hanging under the first word. Rendered from the detail prop, inside the label, so it is read with the words."
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"part": "announcement",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"type": "'dot' | 'icon'",
|
|
110
110
|
"defaultValue": "dot",
|
|
111
111
|
"appliesTo": "StatusIndicator",
|
|
112
|
-
"description": "dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on
|
|
112
|
+
"description": "dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on color"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "size",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"type": "boolean",
|
|
131
131
|
"defaultValue": "false",
|
|
132
132
|
"appliesTo": "StatusIndicator",
|
|
133
|
-
"description": "A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced
|
|
133
|
+
"description": "A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced colors, so it is never the only carrier"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"name": "label",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"accessibility": [
|
|
196
196
|
"There is no status-indicator pattern in the WAI-ARIA Authoring Practices: the pattern index carries thirty entries and none of them is this family. The applicable guidance is the ARIA status role, WCAG 2.2 1.4.1 Use of Color and 1.4.11 Non-text Contrast, and each is answered below.",
|
|
197
197
|
"The name is always real text in the document — the visible words, or the status’s own word clipped by visually-hidden. role=\"img\" with an aria-label, which is Fluent’s answer, is deliberately not used: text is what lets a live region announce its own contents, lets an aria-labelledby elsewhere point at it, and lets a page search find the word.",
|
|
198
|
-
"
|
|
198
|
+
"Color is never the only carrier. Every indicator has words, and mark=\"icon\" adds a distinct silhouette per status — six circles — so the six survive grayscale, the high-contrast scheme, and the operating system’s forced colors, where every author color is replaced and the glyph is all that is left.",
|
|
199
199
|
"Every dot fill clears the 3:1 that WCAG 2.2 1.4.11 asks of a graphic against the surface in the light and dark schemes, except warning, whose yellow is 1.53:1 on white; that dot alone is rimmed in the warning border role, 2.94:1. The word beside the dot carries the status, so the dot is never the only carrier.",
|
|
200
200
|
"live=\"polite\" writes role=\"status\", which the platform gives an implicit aria-live=\"polite\" and aria-atomic=\"true\", so the mark and its word are announced as one thing rather than as two events. live=\"assertive\" writes role=\"alert\" and interrupts, which the APG reserves for a message needing immediate attention. Nothing here takes focus when the status changes.",
|
|
201
201
|
"The pulse is withdrawn under prefers-reduced-motion rather than shortened, because an endless animation has to stop; a wave frozen halfway through an expansion is a rendering fault rather than a state. Nothing is lost, since the tone, the glyph and the word were already carrying the status.",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
{
|
|
243
243
|
"id": "playground",
|
|
244
244
|
"title": "Playground",
|
|
245
|
-
"note": "One indicator with every axis on it, driven by the controls below the canvas. Switch mark to icon and the meaning survives with the
|
|
245
|
+
"note": "One indicator with every axis on it, driven by the controls below the canvas. Switch mark to icon and the meaning survives with the color switched off.",
|
|
246
246
|
"language": "tsx",
|
|
247
247
|
"source": "<StatusIndicator status=\"success\">Healthy</StatusIndicator>;\n\n// With no words, the status names itself.\n<StatusIndicator status=\"success\" />;\n",
|
|
248
248
|
"verdict": "excerpt"
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
"id": "marks",
|
|
260
|
-
"title": "The dot, and the mark that does not need
|
|
260
|
+
"title": "The dot, and the mark that does not need color",
|
|
261
261
|
"note": "A dot is compact and chromatic, so the words beside it carry the meaning. An icon carries a distinct silhouette per status, which is what WCAG 2.2 1.4.1 asks for where the words cannot be shown.",
|
|
262
262
|
"language": "tsx",
|
|
263
263
|
"source": "<StatusIndicator status=\"warning\">Degraded</StatusIndicator>;\n<StatusIndicator mark=\"icon\" status=\"warning\">\n Degraded\n</StatusIndicator>;\n",
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
{
|
|
291
291
|
"id": "context",
|
|
292
292
|
"title": "Where a status actually lives",
|
|
293
|
-
"note": "A column of services, and a header where one status stands for a whole page. The words take the page’s own
|
|
293
|
+
"note": "A column of services, and a header where one status stands for a whole page. The words take the page’s own color, so the status column reads as easily as the one beside it.",
|
|
294
294
|
"language": "tsx",
|
|
295
295
|
"source": "<tr>\n <td>checkout-api</td>\n <td>\n <StatusIndicator size=\"sm\" status=\"success\">\n Healthy\n </StatusIndicator>\n </td>\n</tr>;\n",
|
|
296
296
|
"verdict": "excerpt"
|
|
@@ -35,10 +35,10 @@ Excerpt — not a complete module
|
|
|
35
35
|
| Name | Type | Default | Applies to | Description |
|
|
36
36
|
| --- | --- | --- | --- | --- |
|
|
37
37
|
| `status` | `'neutral' \| 'info' \| 'success' \| 'warning' \| 'danger' \| 'unknown'` | neutral | StatusIndicator | The operational state. Each value owns a tone and a glyph; the vocabulary is closed, so a domain status maps onto one of the six and writes its own words |
|
|
38
|
-
| `mark` | `'dot' \| 'icon'` | dot | StatusIndicator | dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on
|
|
38
|
+
| `mark` | `'dot' \| 'icon'` | dot | StatusIndicator | dot is the compact chromatic mark; icon carries a distinct silhouette per status and is the alternative that does not depend on color |
|
|
39
39
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | StatusIndicator | Reads the control type and glyph scales, so all three steps answer density |
|
|
40
40
|
| `live` | `'off' \| 'polite' \| 'assertive'` | off | StatusIndicator | Whether a change is announced. polite writes role="status"; assertive writes role="alert" and interrupts. A role the consumer wrote is never replaced |
|
|
41
|
-
| `pulse` | `boolean` | false | StatusIndicator | A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced
|
|
41
|
+
| `pulse` | `boolean` | false | StatusIndicator | A wave leaving the dot, for a change happening now. Not drawn on an icon mark, and withdrawn under reduced motion and under forced colors, so it is never the only carrier |
|
|
42
42
|
| `label` | `string` | — | StatusIndicator | What a reader hears when there are no visible words. Ignored when there are. Falls back to the status’s word in the catalog |
|
|
43
43
|
| `messages` | `Partial<StatusIndicatorMessages>` | — | StatusIndicator | Words laid over the language in force, key by key: the word each status is heard as when there are no visible words (neutral, info, success, warning, danger, unknown) |
|
|
44
44
|
| `children` | `ReactNode` | — | StatusIndicator | The visible words, which are also the accessible name — a status that shows its words needs no second copy of them |
|
|
@@ -61,7 +61,7 @@ Excerpt — not a complete module
|
|
|
61
61
|
|
|
62
62
|
- There is no status-indicator pattern in the WAI-ARIA Authoring Practices: the pattern index carries thirty entries and none of them is this family. The applicable guidance is the ARIA status role, WCAG 2.2 1.4.1 Use of Color and 1.4.11 Non-text Contrast, and each is answered below.
|
|
63
63
|
- The name is always real text in the document — the visible words, or the status’s own word clipped by visually-hidden. role="img" with an aria-label, which is Fluent’s answer, is deliberately not used: text is what lets a live region announce its own contents, lets an aria-labelledby elsewhere point at it, and lets a page search find the word.
|
|
64
|
-
-
|
|
64
|
+
- Color is never the only carrier. Every indicator has words, and mark="icon" adds a distinct silhouette per status — six circles — so the six survive grayscale, the high-contrast scheme, and the operating system’s forced colors, where every author color is replaced and the glyph is all that is left.
|
|
65
65
|
- Every dot fill clears the 3:1 that WCAG 2.2 1.4.11 asks of a graphic against the surface in the light and dark schemes, except warning, whose yellow is 1.53:1 on white; that dot alone is rimmed in the warning border role, 2.94:1. The word beside the dot carries the status, so the dot is never the only carrier.
|
|
66
66
|
- live="polite" writes role="status", which the platform gives an implicit aria-live="polite" and aria-atomic="true", so the mark and its word are announced as one thing rather than as two events. live="assertive" writes role="alert" and interrupts, which the APG reserves for a message needing immediate attention. Nothing here takes focus when the status changes.
|
|
67
67
|
- The pulse is withdrawn under prefers-reduced-motion rather than shortened, because an endless animation has to stop; a wave frozen halfway through an expansion is a rendering fault rather than a state. Nothing is lost, since the tone, the glyph and the word were already carrying the status.
|
|
@@ -88,7 +88,7 @@ Excerpt — not a complete module
|
|
|
88
88
|
<StatusIndicator status="unknown">No data</StatusIndicator>;
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
### The dot, and the mark that does not need
|
|
91
|
+
### The dot, and the mark that does not need color
|
|
92
92
|
|
|
93
93
|
A dot is compact and chromatic, so the words beside it carry the meaning. An icon carries a distinct silhouette per status, which is what WCAG 2.2 1.4.1 asks for where the words cannot be shown.
|
|
94
94
|
|
|
@@ -153,7 +153,7 @@ Excerpt — not a complete module
|
|
|
153
153
|
|
|
154
154
|
### Where a status actually lives
|
|
155
155
|
|
|
156
|
-
A column of services, and a header where one status stands for a whole page. The words take the page’s own
|
|
156
|
+
A column of services, and a header where one status stands for a whole page. The words take the page’s own color, so the status column reads as easily as the one beside it.
|
|
157
157
|
|
|
158
158
|
Excerpt — not a complete module
|
|
159
159
|
|
package/dist/docs/stepper.json
CHANGED
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"Each header holds a visually hidden status, so what a reader hears is \"Cart, Step 2 of 4, current\" rather than \"2\". The marker is aria-hidden for the same reason: the number is the picture, and the words are the announcement.",
|
|
288
288
|
"A panel is a group labelled by its own header, related through aria-controls and aria-labelledby without either claiming to be a tab, and it takes tabindex=\"-1\" so a consumer moving focus after a step change has somewhere to put it.",
|
|
289
289
|
"The arrows reach every header, exactly where Tab reaches. They were added on top of the tab sequence rather than replacing it with a roving tab stop — that is the model a tablist has — so a step a linear flow has not opened is still one a reader is allowed to find.",
|
|
290
|
-
"No status depends on
|
|
290
|
+
"No status depends on color: a complete step fills and draws a check, a failed one fills and draws a cross, the current one is a ring, and a pending one is an outline whose ring holds the 3:1 a non-text element needs."
|
|
291
291
|
]
|
|
292
292
|
}
|
|
293
293
|
},
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
{
|
|
376
376
|
"id": "orientation",
|
|
377
377
|
"title": "Which way the flow runs",
|
|
378
|
-
"note": "Horizontal is a row of equal columns, so five steps divide the width evenly however long their names are. Vertical runs the connector down the marker
|
|
378
|
+
"note": "Horizontal is a row of equal columns, so five steps divide the width evenly however long their names are. Vertical runs the connector down the marker center and leaves room for a panel under each step.",
|
|
379
379
|
"language": "tsx",
|
|
380
380
|
"source": "<Stepper orientation=\"vertical\">\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
|
|
381
381
|
"verdict": "excerpt"
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
{
|
|
384
384
|
"id": "statuses",
|
|
385
385
|
"title": "The five things a step can be",
|
|
386
|
-
"note": "Each status is a fill and a shape, never a
|
|
386
|
+
"note": "Each status is a fill and a shape, never a color alone: an outline for pending, a ring for current, a filled disc with a check for complete, a red disc with a cross for a failure, and a grey outline for a step the flow closed.",
|
|
387
387
|
"language": "tsx",
|
|
388
388
|
"source": "<StepperStep label=\"Cart\" complete />;\n<StepperStep label=\"Address\" invalid />;\n<StepperStep label=\"Review\" disabled />;\n",
|
|
389
389
|
"verdict": "excerpt"
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
{
|
|
408
408
|
"id": "placement",
|
|
409
409
|
"title": "Where the label sits",
|
|
410
|
-
"note": "end puts the name beside the marker and leaves the connector whatever the name does not take; bottom
|
|
410
|
+
"note": "end puts the name beside the marker and leaves the connector whatever the name does not take; bottom centers the marker over its own column, which is what a row of five long names needs.",
|
|
411
411
|
"language": "tsx",
|
|
412
412
|
"source": "<Stepper labelPlacement=\"bottom\">\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
|
|
413
413
|
"verdict": "excerpt"
|