@slotted/react 0.1.0-beta.39 → 0.1.0-beta.40
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/alert-CV8wKS-N.js +179 -0
- package/dist/alert.js +1 -1
- package/dist/{avatar-DLWElrgg.js → avatar-fHRva5zn.js} +1 -1
- package/dist/{avatar-group-DshHqe8B.js → avatar-group-bJaZE1_C.js} +1 -1
- package/dist/avatar-group.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/calendar-D3QZDlm0.js +598 -0
- package/dist/calendar.js +1 -1
- package/dist/clock-DzkQa57Q.js +290 -0
- package/dist/clock.js +2 -0
- package/dist/{dashboard-grid-B6jxBz4j.js → dashboard-grid-DAY_CjCW.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Cx0ZOf_e.js → data-grid-B7UuUvBH.js} +42 -37
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-Cb2sNA6I.js → data-list-CyEq7M2D.js} +1 -1
- package/dist/data-list.js +1 -1
- package/dist/date-picker-DMcMFW_N.js +344 -0
- package/dist/date-picker.js +3 -2
- package/dist/date-range-picker-D9zo93NE.js +543 -0
- package/dist/date-range-picker.js +2 -2
- package/dist/datetime-picker-lOXZbAx_.js +462 -0
- package/dist/datetime-picker.js +2 -2
- package/dist/datetime-range-picker-DU5ctZbm.js +641 -0
- package/dist/datetime-range-picker.js +2 -2
- package/dist/divider-DUUPCIh4.js +35 -0
- package/dist/divider.js +1 -1
- package/dist/docs/alert.examples.md +500 -0
- package/dist/docs/alert.json +85 -37
- package/dist/docs/alert.md +37 -189
- package/dist/docs/aspect-ratio.json +40 -16
- package/dist/docs/aspect-ratio.md +204 -29
- package/dist/docs/avatar.json +125 -29
- package/dist/docs/avatar.md +374 -31
- package/dist/docs/badge.json +119 -23
- package/dist/docs/badge.md +436 -27
- package/dist/docs/calendar.json +53 -5
- package/dist/docs/calendar.md +7 -2
- package/dist/docs/card.json +98 -10
- package/dist/docs/card.md +468 -26
- package/dist/docs/clock.json +405 -0
- package/dist/docs/clock.md +189 -0
- package/dist/docs/container.json +54 -6
- package/dist/docs/container.md +247 -17
- package/dist/docs/date-picker.examples.md +143 -169
- package/dist/docs/date-picker.json +178 -223
- package/dist/docs/date-picker.md +44 -50
- package/dist/docs/date-range-picker.examples.md +169 -187
- package/dist/docs/date-range-picker.json +206 -337
- package/dist/docs/date-range-picker.md +52 -67
- package/dist/docs/datetime-picker.examples.md +75 -210
- package/dist/docs/datetime-picker.json +183 -410
- package/dist/docs/datetime-picker.md +50 -72
- package/dist/docs/datetime-range-picker.json +225 -502
- package/dist/docs/datetime-range-picker.md +250 -101
- package/dist/docs/divider.json +71 -7
- package/dist/docs/divider.md +281 -13
- package/dist/docs/grid.json +76 -12
- package/dist/docs/grid.md +376 -18
- package/dist/docs/index.md +1 -0
- package/dist/docs/inline-message.json +87 -40
- package/dist/docs/inline-message.md +314 -71
- package/dist/docs/inline.json +65 -9
- package/dist/docs/inline.md +276 -13
- package/dist/docs/kbd.json +76 -36
- package/dist/docs/kbd.md +346 -63
- package/dist/docs/link.json +65 -25
- package/dist/docs/link.md +317 -60
- package/dist/docs/progress-indicator.examples.md +522 -0
- package/dist/docs/progress-indicator.json +51 -27
- package/dist/docs/progress-indicator.md +13 -238
- package/dist/docs/result-state.examples.md +752 -0
- package/dist/docs/result-state.json +95 -47
- package/dist/docs/result-state.md +45 -228
- package/dist/docs/skeleton.json +70 -38
- package/dist/docs/skeleton.md +393 -71
- package/dist/docs/stack.json +57 -9
- package/dist/docs/stack.md +225 -12
- package/dist/docs/table.examples.md +6 -10
- package/dist/docs/table.json +5 -5
- package/dist/docs/table.md +1 -1
- package/dist/docs/tag.examples.md +503 -0
- package/dist/docs/tag.json +128 -32
- package/dist/docs/tag.md +27 -138
- package/dist/docs/time-picker.json +162 -300
- package/dist/docs/time-picker.md +100 -154
- package/dist/docs/time-range-picker.json +203 -465
- package/dist/docs/time-range-picker.md +125 -173
- package/dist/docs/toast.examples.md +690 -0
- package/dist/docs/toast.json +119 -71
- package/dist/docs/toast.md +44 -212
- package/dist/docs/tree.examples.md +2008 -0
- package/dist/docs/tree.json +283 -106
- package/dist/docs/tree.md +96 -328
- package/dist/docs/visually-hidden.json +38 -6
- package/dist/docs/visually-hidden.md +148 -11
- package/dist/{entity-picker-CwfA1wr_.js → entity-picker-BwJX0gNJ.js} +1 -1
- package/dist/entity-picker.js +1 -1
- package/dist/{filter-bar-b8bRNPs9.js → filter-bar-BQZFgV0A.js} +5 -3
- package/dist/filter-bar.js +1 -1
- package/dist/{import-export-center-C_oNc-RM.js → import-export-center-DWSEOV5Z.js} +3 -3
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +101 -99
- package/dist/{markdown-x59MHBAa.js → markdown-7wOBMXTl.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/picker-frame-_9ZqQOjf.js +43 -0
- package/dist/picker-group-CrNRKUxz.js +33 -0
- package/dist/picker-head-C_Z0tQGq.js +69 -0
- package/dist/picker-jump-BcTRIJs6.js +70 -0
- package/dist/picker-range-head-B4tsDOc5.js +100 -0
- package/dist/picker-step-MgBwF9g1.js +26 -0
- package/dist/read-title-id-DQZVWlMt.js +14 -0
- package/dist/result-state-Ct9AB01a.js +123 -0
- package/dist/result-state.js +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/aspect-ratio.css +1 -1
- package/dist/styles/attachment.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/cascader.css +1 -1
- package/dist/styles/chart.css +1 -1
- package/dist/styles/clock.css +2 -0
- package/dist/styles/code-block.css +1 -1
- package/dist/styles/command-palette.css +1 -1
- package/dist/styles/dashboard-grid.css +1 -1
- package/dist/styles/data-grid.css +14 -10
- package/dist/styles/data-list.css +1 -1
- package/dist/styles/date-picker.css +4 -2
- package/dist/styles/date-range-picker.css +4 -2
- package/dist/styles/datetime-picker.css +8 -2
- package/dist/styles/datetime-range-picker.css +6 -2
- package/dist/styles/detail-panel.css +3 -3
- package/dist/styles/entity-picker.css +1 -1
- package/dist/styles/event-calendar.css +1 -1
- package/dist/styles/filter-bar.css +11 -7
- package/dist/styles/grid.css +1 -1
- package/dist/styles/image.css +1 -1
- package/dist/styles/import-export-center.css +15 -11
- package/dist/styles/index.css +21 -17
- package/dist/styles/inline.css +1 -1
- package/dist/styles/loading-overlay.css +1 -1
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/notification-center.css +1 -1
- package/dist/styles/page-header.css +2 -2
- package/dist/styles/progress-indicator.css +1 -1
- package/dist/styles/side-navigation.css +2 -2
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/stack.css +1 -1
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/table-of-contents.css +1 -1
- package/dist/styles/table.css +14 -10
- package/dist/styles/time-picker.css +5 -1
- package/dist/styles/time-range-picker.css +5 -1
- package/dist/styles/toast.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/tree.css +1 -1
- package/dist/styles/upload.css +1 -1
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table-DqwYPHGS.js → table-MGb3iZY_.js} +11 -6
- package/dist/table.js +1 -1
- package/dist/time-picker-z4GSRuha.js +313 -0
- package/dist/time-picker.js +2 -2
- package/dist/time-range-picker-ar40oPcf.js +563 -0
- package/dist/time-range-picker.js +2 -2
- package/dist/{toast-DHDVXIew.js → toast-Cg28GkqX.js} +121 -117
- package/dist/toast.js +1 -1
- package/dist/tree-CytfCFT-.js +874 -0
- package/dist/tree.js +1 -1
- package/dist/types/alert/alert-parts.d.ts +1 -1
- package/dist/types/alert/alert-parts.d.ts.map +1 -1
- package/dist/types/alert/alert.d.ts.map +1 -1
- package/dist/types/alert/alert.types.d.ts +1 -1
- package/dist/types/alert/alert.types.d.ts.map +1 -1
- package/dist/types/avatar/avatar.d.ts.map +1 -1
- package/dist/types/badge/badge.types.d.ts +1 -1
- package/dist/types/badge/badge.types.d.ts.map +1 -1
- package/dist/types/calendar/calendar-day-cell.d.ts +3 -1
- package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -1
- package/dist/types/calendar/calendar-header.d.ts +9 -5
- package/dist/types/calendar/calendar-header.d.ts.map +1 -1
- package/dist/types/calendar/calendar-month-table.d.ts +8 -3
- package/dist/types/calendar/calendar-month-table.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +12 -1
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/clock/clock-body.d.ts +16 -0
- package/dist/types/clock/clock-body.d.ts.map +1 -0
- package/dist/types/clock/clock-demo.d.ts +15 -0
- package/dist/types/clock/clock-demo.d.ts.map +1 -0
- package/dist/types/clock/clock-groups.d.ts +15 -0
- package/dist/types/clock/clock-groups.d.ts.map +1 -0
- package/dist/types/clock/clock-option.d.ts +14 -0
- package/dist/types/clock/clock-option.d.ts.map +1 -0
- package/dist/types/clock/clock-units.d.ts +13 -0
- package/dist/types/clock/clock-units.d.ts.map +1 -0
- package/dist/types/clock/clock.d.ts +11 -0
- package/dist/types/clock/clock.d.ts.map +1 -0
- package/dist/types/clock/clock.types.d.ts +66 -0
- package/dist/types/clock/clock.types.d.ts.map +1 -0
- package/dist/types/clock/index.d.ts +3 -0
- package/dist/types/clock/index.d.ts.map +1 -0
- package/dist/types/clock/use-clock-grid.d.ts +28 -0
- package/dist/types/clock/use-clock-grid.d.ts.map +1 -0
- package/dist/types/clock/use-clock-view.d.ts +16 -0
- package/dist/types/clock/use-clock-view.d.ts.map +1 -0
- package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
- package/dist/types/date-picker/date-panel.d.ts +32 -0
- package/dist/types/date-picker/date-panel.d.ts.map +1 -0
- package/dist/types/date-picker/date-picker-demo.d.ts +8 -15
- package/dist/types/date-picker/date-picker-demo.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker-panel.d.ts +18 -0
- package/dist/types/date-picker/date-picker-panel.d.ts.map +1 -0
- package/dist/types/date-picker/date-picker.d.ts +7 -13
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.types.d.ts +15 -16
- package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
- package/dist/types/date-picker/index.d.ts +1 -1
- package/dist/types/date-picker/index.d.ts.map +1 -1
- package/dist/types/date-picker/month-picker.d.ts +12 -0
- package/dist/types/date-picker/month-picker.d.ts.map +1 -0
- package/dist/types/date-picker/use-date-panel.d.ts +50 -0
- package/dist/types/date-picker/use-date-panel.d.ts.map +1 -0
- package/dist/types/date-picker/use-date-picker.d.ts +24 -0
- package/dist/types/date-picker/use-date-picker.d.ts.map +1 -0
- package/dist/types/date-range-picker/date-range-control.d.ts +34 -0
- package/dist/types/date-range-picker/date-range-control.d.ts.map +1 -0
- package/dist/types/date-range-picker/date-range-panel.d.ts +24 -0
- package/dist/types/date-range-picker/date-range-panel.d.ts.map +1 -0
- package/dist/types/date-range-picker/date-range-picker-demo.d.ts +8 -15
- package/dist/types/date-range-picker/date-range-picker-demo.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts +11 -21
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.types.d.ts +12 -26
- package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
- package/dist/types/date-range-picker/index.d.ts +2 -2
- package/dist/types/date-range-picker/index.d.ts.map +1 -1
- package/dist/types/date-range-picker/range-words.d.ts +30 -0
- package/dist/types/date-range-picker/range-words.d.ts.map +1 -0
- package/dist/types/date-range-picker/use-date-range-picker.d.ts +32 -0
- package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -0
- package/dist/types/date-range-picker/use-range-draft.d.ts +39 -0
- package/dist/types/date-range-picker/use-range-draft.d.ts.map +1 -0
- package/dist/types/date-range-picker/use-range-panel.d.ts +71 -0
- package/dist/types/date-range-picker/use-range-panel.d.ts.map +1 -0
- package/dist/types/datetime-picker/datetime-picker-defaults.d.ts +3 -9
- package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker-demo.d.ts +8 -31
- package/dist/types/datetime-picker/datetime-picker-demo.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker-panel.d.ts +23 -0
- package/dist/types/datetime-picker/datetime-picker-panel.d.ts.map +1 -0
- package/dist/types/datetime-picker/datetime-picker.d.ts +8 -19
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.types.d.ts +25 -66
- package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
- package/dist/types/datetime-picker/index.d.ts +2 -2
- package/dist/types/datetime-picker/index.d.ts.map +1 -1
- package/dist/types/datetime-picker/use-datetime-panel.d.ts +69 -0
- package/dist/types/datetime-picker/use-datetime-panel.d.ts.map +1 -0
- package/dist/types/datetime-picker/use-datetime-picker.d.ts +22 -0
- package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -0
- package/dist/types/datetime-range-picker/datetime-range-half.d.ts +20 -0
- package/dist/types/datetime-range-picker/datetime-range-half.d.ts.map +1 -0
- package/dist/types/datetime-range-picker/datetime-range-panel.d.ts +30 -0
- package/dist/types/datetime-range-picker/datetime-range-panel.d.ts.map +1 -0
- package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts +5 -7
- package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts +8 -24
- package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts +12 -24
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +31 -66
- package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-words.d.ts +40 -0
- package/dist/types/datetime-range-picker/datetime-range-words.d.ts.map +1 -0
- package/dist/types/datetime-range-picker/index.d.ts +4 -3
- package/dist/types/datetime-range-picker/index.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts +43 -0
- package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts.map +1 -0
- package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts +82 -0
- package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts.map +1 -0
- package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +28 -0
- package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -0
- package/dist/types/divider/divider.d.ts +1 -1
- package/dist/types/divider/divider.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/picker-panel/picker-footer.d.ts +17 -0
- package/dist/types/picker-panel/picker-footer.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-frame.d.ts +21 -0
- package/dist/types/picker-panel/picker-frame.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-group.d.ts +18 -0
- package/dist/types/picker-panel/picker-group.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-head.d.ts +27 -0
- package/dist/types/picker-panel/picker-head.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-jump.d.ts +18 -0
- package/dist/types/picker-panel/picker-jump.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-layer.d.ts +14 -0
- package/dist/types/picker-panel/picker-layer.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-panel.d.ts +17 -0
- package/dist/types/picker-panel/picker-panel.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-rail.d.ts +17 -0
- package/dist/types/picker-panel/picker-rail.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-range-head.d.ts +37 -0
- package/dist/types/picker-panel/picker-range-head.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-ruler.d.ts +14 -0
- package/dist/types/picker-panel/picker-ruler.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-step.d.ts +11 -0
- package/dist/types/picker-panel/picker-step.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-trigger.d.ts +16 -0
- package/dist/types/picker-panel/picker-trigger.d.ts.map +1 -0
- package/dist/types/picker-panel/use-media-query.d.ts +3 -0
- package/dist/types/picker-panel/use-media-query.d.ts.map +1 -0
- package/dist/types/picker-panel/use-picker-draft.d.ts +18 -0
- package/dist/types/picker-panel/use-picker-draft.d.ts.map +1 -0
- package/dist/types/picker-panel/use-picker-layer.d.ts +31 -0
- package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -0
- package/dist/types/picker-panel/use-picker-open.d.ts +14 -0
- package/dist/types/picker-panel/use-picker-open.d.ts.map +1 -0
- package/dist/types/picker-panel/use-picker-position.d.ts +12 -0
- package/dist/types/picker-panel/use-picker-position.d.ts.map +1 -0
- package/dist/types/picker-panel/use-picker-value.d.ts +20 -0
- package/dist/types/picker-panel/use-picker-value.d.ts.map +1 -0
- package/dist/types/result-state/result-state.d.ts +32 -2
- package/dist/types/result-state/result-state.d.ts.map +1 -1
- package/dist/types/table/table-filter.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +16 -14
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/types/tag/tag.types.d.ts +1 -1
- package/dist/types/tag/tag.types.d.ts.map +1 -1
- package/dist/types/time-picker/index.d.ts +2 -2
- package/dist/types/time-picker/index.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker-defaults.d.ts +0 -7
- package/dist/types/time-picker/time-picker-defaults.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker-demo.d.ts +15 -0
- package/dist/types/time-picker/time-picker-demo.d.ts.map +1 -0
- package/dist/types/time-picker/time-picker-panel.d.ts +17 -0
- package/dist/types/time-picker/time-picker-panel.d.ts.map +1 -0
- package/dist/types/time-picker/time-picker.d.ts +6 -14
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.types.d.ts +21 -45
- package/dist/types/time-picker/time-picker.types.d.ts.map +1 -1
- package/dist/types/time-picker/use-time-panel.d.ts +42 -0
- package/dist/types/time-picker/use-time-panel.d.ts.map +1 -0
- package/dist/types/time-picker/use-time-picker.d.ts +27 -0
- package/dist/types/time-picker/use-time-picker.d.ts.map +1 -0
- package/dist/types/time-range-picker/index.d.ts +4 -3
- package/dist/types/time-range-picker/index.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-panel.d.ts +23 -0
- package/dist/types/time-range-picker/time-range-panel.d.ts.map +1 -0
- package/dist/types/time-range-picker/time-range-picker-defaults.d.ts +2 -4
- package/dist/types/time-range-picker/time-range-picker-defaults.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker-demo.d.ts +8 -24
- package/dist/types/time-range-picker/time-range-picker-demo.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts +12 -28
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.types.d.ts +24 -64
- package/dist/types/time-range-picker/time-range-picker.types.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-words.d.ts +37 -0
- package/dist/types/time-range-picker/time-range-words.d.ts.map +1 -0
- package/dist/types/time-range-picker/use-time-range-panel.d.ts +68 -0
- package/dist/types/time-range-picker/use-time-range-panel.d.ts.map +1 -0
- package/dist/types/time-range-picker/use-time-range-picker.d.ts +25 -0
- package/dist/types/time-range-picker/use-time-range-picker.d.ts.map +1 -0
- package/dist/types/title-id/read-title-id.d.ts +15 -0
- package/dist/types/title-id/read-title-id.d.ts.map +1 -0
- package/dist/types/toast/toast.d.ts.map +1 -1
- package/dist/types/tree/index.d.ts +1 -1
- package/dist/types/tree/index.d.ts.map +1 -1
- package/dist/types/tree/tree-parts.d.ts +2 -0
- package/dist/types/tree/tree-parts.d.ts.map +1 -1
- package/dist/types/tree/tree.d.ts +1 -1
- package/dist/types/tree/tree.d.ts.map +1 -1
- package/dist/types/tree/tree.types.d.ts +15 -5
- package/dist/types/tree/tree.types.d.ts.map +1 -1
- package/dist/use-date-picker-DL8tRXji.js +63 -0
- package/dist/use-picker-draft-Bw8VFaj0.js +377 -0
- package/dist/{wizard-CL6u1aJb.js → wizard-BokOrtwq.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +10 -6
- package/dist/alert-Bi9s1cjV.js +0 -174
- package/dist/calendar-CX0wN5Bh.js +0 -564
- package/dist/date-picker-CLXTtQGe.js +0 -337
- package/dist/date-range-picker-Br0neGyT.js +0 -522
- package/dist/datetime-picker-CR-H_BLu.js +0 -683
- package/dist/datetime-range-picker-BLo58OIk.js +0 -1050
- package/dist/divider-ryFeK0Pi.js +0 -35
- package/dist/docs/datetime-range-picker.examples.md +0 -219
- package/dist/result-state-BMYhelu1.js +0 -128
- package/dist/time-picker-B4-GsO24.js +0 -436
- package/dist/time-range-picker-DVOWN8PF.js +0 -800
- package/dist/tree-D-y-0TrL.js +0 -794
package/dist/docs/inline.md
CHANGED
|
@@ -5,24 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
## Minimal example
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Example
|
|
9
9
|
|
|
10
10
|
```tsx
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { Avatar } from '@slotted/react/avatar';
|
|
12
|
+
import { Badge } from '@slotted/react/badge';
|
|
13
|
+
import { Inline } from '@slotted/react/inline';
|
|
14
|
+
import { Text } from '@slotted/react/typography';
|
|
15
|
+
|
|
16
|
+
export default function InlineBasic() {
|
|
17
|
+
return (
|
|
18
|
+
<Inline>
|
|
19
|
+
<Avatar name="Maria Chen" />
|
|
20
|
+
<Text weight="semibold">Maria Chen</Text>
|
|
21
|
+
<Badge tone="success">Approver</Badge>
|
|
22
|
+
<Badge tone="info">Finance</Badge>
|
|
23
|
+
</Inline>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
15
26
|
```
|
|
16
27
|
|
|
17
28
|
## Props
|
|
18
29
|
|
|
19
30
|
| Name | Type | Default | Applies to | Description |
|
|
20
31
|
| --- | --- | --- | --- | --- |
|
|
21
|
-
| `gap` | `0 \| 1 \| … \| 12` | 4 | Inline |
|
|
22
|
-
| `align` | `'start' \| 'center' \| 'end' \| 'stretch' \| 'baseline'` | center | Inline | Positions items across the
|
|
23
|
-
| `justify` | `'start' \| 'center' \| 'end' \| 'between' \| 'around' \| 'evenly'` | — | Inline | Positions items along the
|
|
24
|
-
| `wrap` | `'wrap' \| 'nowrap'` | wrap | Inline | nowrap keeps one line
|
|
25
|
-
| `render` | `(props) => ReactNode` | — | Inline | Renders a different root element |
|
|
32
|
+
| `gap` | `0 \| 1 \| … \| 12` | 4 | Inline | Sets the separation between items as a step on the space scale. |
|
|
33
|
+
| `align` | `'start' \| 'center' \| 'end' \| 'stretch' \| 'baseline'` | center | Inline | Positions items across the row, along the block axis. baseline puts their text on one line. |
|
|
34
|
+
| `justify` | `'start' \| 'center' \| 'end' \| 'between' \| 'around' \| 'evenly'` | — | Inline | Positions items along the row and distributes the free space between them. |
|
|
35
|
+
| `wrap` | `'wrap' \| 'nowrap'` | wrap | Inline | Decides what happens when the row is full. nowrap keeps one line and overflows a container narrower than it. |
|
|
36
|
+
| `render` | `(props) => ReactNode` | — | Inline | Renders a different root element from the props it receives. |
|
|
26
37
|
|
|
27
38
|
## Axes and defaults
|
|
28
39
|
|
|
@@ -35,11 +46,11 @@ Excerpt — not a complete module
|
|
|
35
46
|
|
|
36
47
|
## Rules
|
|
37
48
|
|
|
38
|
-
- Inline has no role and no ARIA. It arranges what
|
|
49
|
+
- Inline has no role and no ARIA. It arranges what you write inside it, and the items keep whatever semantics they already had.
|
|
39
50
|
- There is no axis that reverses the items. Visual order stays DOM order, which is what WCAG 2.2 SC 1.3.2 asks for (technique C27, failure F1) and what keeps the Tab order matching the page.
|
|
40
|
-
- Wrapping is the default because a row that cannot wrap has one answer to a narrow container: overflow it.
|
|
51
|
+
- Wrapping is the default because a row that cannot wrap has one answer to a narrow container: overflow it. nowrap accepts that overflow, so check WCAG 1.4.10 Reflow before choosing it.
|
|
41
52
|
- baseline is the alignment for items that carry text of different sizes. It puts the type on one line where centering only puts the boxes there.
|
|
42
|
-
- Alignment and distribution use the logical keywords, so a right-to-left document is the same
|
|
53
|
+
- Alignment and distribution use the logical keywords, so a right-to-left document is the same row mirrored.
|
|
43
54
|
|
|
44
55
|
## Tokens
|
|
45
56
|
|
|
@@ -47,6 +58,19 @@ Excerpt — not a complete module
|
|
|
47
58
|
|
|
48
59
|
## Examples
|
|
49
60
|
|
|
61
|
+
### Cancel and confirm, pushed apart
|
|
62
|
+
|
|
63
|
+
Excerpt — not a complete module
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
<Inline gap={4} justify="between">
|
|
67
|
+
<Button tone="secondary" variant="outline">
|
|
68
|
+
Cancel
|
|
69
|
+
</Button>
|
|
70
|
+
<Button>Save changes</Button>
|
|
71
|
+
</Inline>;
|
|
72
|
+
```
|
|
73
|
+
|
|
50
74
|
### A list of tags that wraps
|
|
51
75
|
|
|
52
76
|
Excerpt — not a complete module
|
|
@@ -73,3 +97,242 @@ Excerpt — not a complete module
|
|
|
73
97
|
</Text>
|
|
74
98
|
</Inline>;
|
|
75
99
|
```
|
|
100
|
+
|
|
101
|
+
### align.tsx
|
|
102
|
+
|
|
103
|
+
Example
|
|
104
|
+
|
|
105
|
+
```tsx
|
|
106
|
+
import { Badge } from '@slotted/react/badge';
|
|
107
|
+
import { Button } from '@slotted/react/button';
|
|
108
|
+
import { Card, CardBody, CardHeader } from '@slotted/react/card';
|
|
109
|
+
import { Inline } from '@slotted/react/inline';
|
|
110
|
+
import { Stack } from '@slotted/react/stack';
|
|
111
|
+
import { Heading, Text } from '@slotted/react/typography';
|
|
112
|
+
|
|
113
|
+
const ALIGNS = ['start', 'center', 'end', 'stretch'] as const;
|
|
114
|
+
|
|
115
|
+
export default function InlineAlign() {
|
|
116
|
+
return (
|
|
117
|
+
<Stack gap={4}>
|
|
118
|
+
{ALIGNS.map((align) => (
|
|
119
|
+
<Card key={align}>
|
|
120
|
+
<CardHeader>
|
|
121
|
+
<Heading level={2} size="sm">
|
|
122
|
+
align {align}
|
|
123
|
+
</Heading>
|
|
124
|
+
</CardHeader>
|
|
125
|
+
<CardBody>
|
|
126
|
+
<Inline align={align}>
|
|
127
|
+
<Text size="3xl" weight="semibold">
|
|
128
|
+
14
|
|
129
|
+
</Text>
|
|
130
|
+
<Badge tone="warning">Late pickups</Badge>
|
|
131
|
+
<Button tone="secondary" variant="outline">
|
|
132
|
+
Review
|
|
133
|
+
</Button>
|
|
134
|
+
</Inline>
|
|
135
|
+
</CardBody>
|
|
136
|
+
</Card>
|
|
137
|
+
))}
|
|
138
|
+
</Stack>
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### baseline.tsx
|
|
144
|
+
|
|
145
|
+
Example
|
|
146
|
+
|
|
147
|
+
```tsx
|
|
148
|
+
import { Card, CardBody, CardHeader } from '@slotted/react/card';
|
|
149
|
+
import { Inline } from '@slotted/react/inline';
|
|
150
|
+
import { Stack } from '@slotted/react/stack';
|
|
151
|
+
import { Heading, Text } from '@slotted/react/typography';
|
|
152
|
+
|
|
153
|
+
const ALIGNS = ['center', 'baseline'] as const;
|
|
154
|
+
|
|
155
|
+
export default function InlineBaseline() {
|
|
156
|
+
return (
|
|
157
|
+
<Stack gap={4}>
|
|
158
|
+
{ALIGNS.map((align) => (
|
|
159
|
+
<Card key={align}>
|
|
160
|
+
<CardHeader>
|
|
161
|
+
<Heading level={2} size="sm">
|
|
162
|
+
align {align}
|
|
163
|
+
</Heading>
|
|
164
|
+
</CardHeader>
|
|
165
|
+
<CardBody>
|
|
166
|
+
<Inline align={align} gap={3}>
|
|
167
|
+
<Text tone="muted">Open invoices</Text>
|
|
168
|
+
<Text numeric="tabular" size="3xl" weight="semibold">
|
|
169
|
+
$48,200
|
|
170
|
+
</Text>
|
|
171
|
+
<Text size="sm" tone="muted">
|
|
172
|
+
across 14 customers
|
|
173
|
+
</Text>
|
|
174
|
+
</Inline>
|
|
175
|
+
</CardBody>
|
|
176
|
+
</Card>
|
|
177
|
+
))}
|
|
178
|
+
</Stack>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### form.tsx
|
|
184
|
+
|
|
185
|
+
Example
|
|
186
|
+
|
|
187
|
+
```tsx
|
|
188
|
+
import { Button } from '@slotted/react/button';
|
|
189
|
+
import { Field, FieldLabel } from '@slotted/react/field';
|
|
190
|
+
import { Inline } from '@slotted/react/inline';
|
|
191
|
+
import { TextField } from '@slotted/react/text-field';
|
|
192
|
+
|
|
193
|
+
export default function InlineForm() {
|
|
194
|
+
return (
|
|
195
|
+
<Inline
|
|
196
|
+
align="end"
|
|
197
|
+
gap={3}
|
|
198
|
+
render={(props) => (
|
|
199
|
+
<form
|
|
200
|
+
{...props}
|
|
201
|
+
aria-label="Find orders"
|
|
202
|
+
onSubmit={(event) => {
|
|
203
|
+
event.preventDefault();
|
|
204
|
+
}}
|
|
205
|
+
/>
|
|
206
|
+
)}
|
|
207
|
+
>
|
|
208
|
+
<Field>
|
|
209
|
+
<FieldLabel>Order number</FieldLabel>
|
|
210
|
+
<TextField placeholder="SO-10482" />
|
|
211
|
+
</Field>
|
|
212
|
+
<Field>
|
|
213
|
+
<FieldLabel>Customer</FieldLabel>
|
|
214
|
+
<TextField placeholder="Harbor Street store" />
|
|
215
|
+
</Field>
|
|
216
|
+
<Button type="submit">Search</Button>
|
|
217
|
+
</Inline>
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### gap.tsx
|
|
223
|
+
|
|
224
|
+
Example
|
|
225
|
+
|
|
226
|
+
```tsx
|
|
227
|
+
import { Avatar } from '@slotted/react/avatar';
|
|
228
|
+
import { Grid } from '@slotted/react/grid';
|
|
229
|
+
import { Inline } from '@slotted/react/inline';
|
|
230
|
+
import { Stack } from '@slotted/react/stack';
|
|
231
|
+
import { Text } from '@slotted/react/typography';
|
|
232
|
+
|
|
233
|
+
const GAPS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] as const;
|
|
234
|
+
const PEOPLE = ['Maria Chen', 'Tomas Reyes', 'Priya Nair'] as const;
|
|
235
|
+
|
|
236
|
+
export default function InlineGap() {
|
|
237
|
+
return (
|
|
238
|
+
<Grid columns={2} gap={5} minItemWidth="sm">
|
|
239
|
+
{GAPS.map((gap) => (
|
|
240
|
+
<Stack key={gap} gap={1}>
|
|
241
|
+
<Text size="xs" tone="muted">
|
|
242
|
+
Gap {gap}
|
|
243
|
+
</Text>
|
|
244
|
+
<Inline gap={gap}>
|
|
245
|
+
{PEOPLE.map((person) => (
|
|
246
|
+
<Avatar key={person} name={person} size="sm" />
|
|
247
|
+
))}
|
|
248
|
+
</Inline>
|
|
249
|
+
</Stack>
|
|
250
|
+
))}
|
|
251
|
+
</Grid>
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### justify.tsx
|
|
257
|
+
|
|
258
|
+
Example
|
|
259
|
+
|
|
260
|
+
```tsx
|
|
261
|
+
import { Badge } from '@slotted/react/badge';
|
|
262
|
+
import { Card, CardBody, CardHeader } from '@slotted/react/card';
|
|
263
|
+
import { Inline } from '@slotted/react/inline';
|
|
264
|
+
import { Stack } from '@slotted/react/stack';
|
|
265
|
+
import { Heading } from '@slotted/react/typography';
|
|
266
|
+
|
|
267
|
+
const JUSTIFIES = ['start', 'center', 'end', 'between', 'around', 'evenly'] as const;
|
|
268
|
+
|
|
269
|
+
export default function InlineJustify() {
|
|
270
|
+
return (
|
|
271
|
+
<Stack gap={4}>
|
|
272
|
+
{JUSTIFIES.map((justify) => (
|
|
273
|
+
<Card key={justify}>
|
|
274
|
+
<CardHeader>
|
|
275
|
+
<Heading level={2} size="sm">
|
|
276
|
+
justify {justify}
|
|
277
|
+
</Heading>
|
|
278
|
+
</CardHeader>
|
|
279
|
+
<CardBody>
|
|
280
|
+
<Inline justify={justify}>
|
|
281
|
+
<Badge tone="info">Packed</Badge>
|
|
282
|
+
<Badge tone="warning">Shipped</Badge>
|
|
283
|
+
<Badge tone="success">Delivered</Badge>
|
|
284
|
+
</Inline>
|
|
285
|
+
</CardBody>
|
|
286
|
+
</Card>
|
|
287
|
+
))}
|
|
288
|
+
</Stack>
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### wrap.tsx
|
|
294
|
+
|
|
295
|
+
Example
|
|
296
|
+
|
|
297
|
+
```tsx
|
|
298
|
+
import { Badge } from '@slotted/react/badge';
|
|
299
|
+
import { Card, CardBody, CardHeader } from '@slotted/react/card';
|
|
300
|
+
import { Inline } from '@slotted/react/inline';
|
|
301
|
+
import { Stack } from '@slotted/react/stack';
|
|
302
|
+
import { Heading } from '@slotted/react/typography';
|
|
303
|
+
|
|
304
|
+
const WRAPS = ['wrap', 'nowrap'] as const;
|
|
305
|
+
const LABELS = [
|
|
306
|
+
'Wholesale',
|
|
307
|
+
'Fragile',
|
|
308
|
+
'Priority shipping',
|
|
309
|
+
'Refrigerated',
|
|
310
|
+
'Hazardous materials',
|
|
311
|
+
'Signature required',
|
|
312
|
+
] as const;
|
|
313
|
+
|
|
314
|
+
export default function InlineWrap() {
|
|
315
|
+
return (
|
|
316
|
+
<Stack gap={4}>
|
|
317
|
+
{WRAPS.map((wrap) => (
|
|
318
|
+
<Card key={wrap}>
|
|
319
|
+
<CardHeader>
|
|
320
|
+
<Heading level={2} size="sm">
|
|
321
|
+
wrap {wrap}
|
|
322
|
+
</Heading>
|
|
323
|
+
</CardHeader>
|
|
324
|
+
<CardBody>
|
|
325
|
+
<Inline gap={2} wrap={wrap}>
|
|
326
|
+
{LABELS.map((label) => (
|
|
327
|
+
<Badge key={label} tone="secondary" variant="outline">
|
|
328
|
+
{label}
|
|
329
|
+
</Badge>
|
|
330
|
+
))}
|
|
331
|
+
</Inline>
|
|
332
|
+
</CardBody>
|
|
333
|
+
</Card>
|
|
334
|
+
))}
|
|
335
|
+
</Stack>
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
```
|
package/dist/docs/kbd.json
CHANGED
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"part": "name",
|
|
79
79
|
"element": "span",
|
|
80
80
|
"required": false,
|
|
81
|
-
"purpose": "What a reader hears in place of the legend — “Command”, “Control”, “Up arrow”. Clipped from view by
|
|
81
|
+
"purpose": "What a reader hears in place of the legend — “Command”, “Control”, “Up arrow”. Clipped from view by a rule of Kbd’s own. Rendered only for a key in the vocabulary."
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"part": "shortcut",
|
|
85
85
|
"element": "kbd",
|
|
86
86
|
"required": false,
|
|
87
|
-
"purpose": "A whole combination, holding the key roots. The one part that contains the
|
|
87
|
+
"purpose": "A whole combination, holding the key roots. The one part that contains the root instead of sitting inside it, so it carries data-ui itself, plus data-platform for the resolution it made."
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"part": "separator",
|
|
@@ -99,70 +99,70 @@
|
|
|
99
99
|
"type": "string",
|
|
100
100
|
"defaultValue": "—",
|
|
101
101
|
"appliesTo": "Kbd",
|
|
102
|
-
"description": "A token from the vocabulary — mod, meta, ctrl, alt, shift, fn, enter, escape, tab, space, backspace, delete, capslock, pageup, pagedown, home, end, plus, up, down, left, right — or an alias such as cmd, option, esc or arrowup. Wins over children where both are written"
|
|
102
|
+
"description": "A token from the vocabulary — mod, meta, ctrl, alt, shift, fn, enter, escape, tab, space, backspace, delete, capslock, pageup, pagedown, home, end, plus, up, down, left, right — or an alias such as cmd, option, esc or arrowup. Wins over children where both are written."
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "keys",
|
|
106
106
|
"type": "string",
|
|
107
107
|
"defaultValue": "—",
|
|
108
108
|
"appliesTo": "Shortcut",
|
|
109
|
-
"description": "The whole combination: + joins keys pressed together, whitespace joins the steps of a sequence"
|
|
109
|
+
"description": "The whole combination: + joins keys pressed together, whitespace joins the steps of a sequence."
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"name": "platform",
|
|
113
113
|
"type": "'auto' | 'mac' | 'windows' | 'linux' | 'other'",
|
|
114
114
|
"defaultValue": "auto",
|
|
115
115
|
"appliesTo": "Kbd, Shortcut",
|
|
116
|
-
"description": "Which keyboard the legends are drawn for. auto reads the browser; state it where the page is server-rendered"
|
|
116
|
+
"description": "Which keyboard the legends are drawn for. auto reads the browser; state it where the page is server-rendered."
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"name": "size",
|
|
120
120
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'inherit'",
|
|
121
121
|
"defaultValue": "md",
|
|
122
122
|
"appliesTo": "Kbd, Shortcut",
|
|
123
|
-
"description": "xs to lg are fixed heights of 16, 20, 24 and 28 pixels whose legend answers density; inherit reads the text around the key and stays inside its line"
|
|
123
|
+
"description": "xs to lg are fixed heights of 16, 20, 24 and 28 pixels whose legend answers density; inherit reads the text around the key and stays inside its line."
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"name": "variant",
|
|
127
127
|
"type": "'raised' | 'outline' | 'soft' | 'plain'",
|
|
128
128
|
"defaultValue": "raised",
|
|
129
129
|
"appliesTo": "Kbd, Shortcut",
|
|
130
|
-
"description": "raised is a key with a bottom edge, outline owns no ground, soft is the tinted chip, plain takes the color of the text it sits in"
|
|
130
|
+
"description": "raised is a key with a bottom edge, outline owns no ground, soft is the tinted chip, plain takes the color of the text it sits in."
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"name": "disabled",
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"defaultValue": "false",
|
|
136
136
|
"appliesTo": "Kbd, Shortcut",
|
|
137
|
-
"description": "Dims the key without writing aria-disabled, which kbd may not carry. The item the shortcut belongs to owns the semantics"
|
|
137
|
+
"description": "Dims the key without writing aria-disabled, which kbd may not carry. The item the shortcut belongs to owns the semantics."
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "separator",
|
|
141
141
|
"type": "string",
|
|
142
142
|
"defaultValue": "+",
|
|
143
143
|
"appliesTo": "Shortcut",
|
|
144
|
-
"description": "Between two simultaneous keys. A Mac joins with nothing whatever this says"
|
|
144
|
+
"description": "Between two simultaneous keys. A Mac joins with nothing whatever this says."
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"name": "messages",
|
|
148
148
|
"type": "PartialMessages<KeysMessages>",
|
|
149
149
|
"defaultValue": "—",
|
|
150
150
|
"appliesTo": "Kbd, Shortcut",
|
|
151
|
-
"description": "Words laid over the keys catalog of the language in force, key by key: legends.*, names.*, and then — the word between two steps of a sequence, read aloud"
|
|
151
|
+
"description": "Words laid over the keys catalog of the language in force, key by key: legends.*, names.*, and then — the word between two steps of a sequence, read aloud."
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "legends",
|
|
155
155
|
"type": "Record<string, string>",
|
|
156
156
|
"defaultValue": "—",
|
|
157
157
|
"appliesTo": "Shortcut",
|
|
158
|
-
"description": "Replaces what the eye sees, per key token: {
|
|
158
|
+
"description": "Replaces what the eye sees, per key token: { mod: \"Control\" }. Falls back to the provider."
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"name": "names",
|
|
162
162
|
"type": "Record<string, string>",
|
|
163
163
|
"defaultValue": "—",
|
|
164
164
|
"appliesTo": "Shortcut",
|
|
165
|
-
"description": "Replaces what a reader hears, per key token: {
|
|
165
|
+
"description": "Replaces what a reader hears, per key token: { delete: \"Remove\" }. Falls back to the provider."
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
"composition": [
|
|
@@ -171,47 +171,47 @@
|
|
|
171
171
|
"type": "ReactNode",
|
|
172
172
|
"defaultValue": "—",
|
|
173
173
|
"appliesTo": "Kbd",
|
|
174
|
-
"description": "The legend written verbatim — the application’s own word, neither resolved nor given a hidden name"
|
|
174
|
+
"description": "The legend written verbatim — the application’s own word, neither resolved nor given a hidden name."
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"name": "children",
|
|
178
178
|
"type": "ReactNode",
|
|
179
179
|
"defaultValue": "—",
|
|
180
180
|
"appliesTo": "Shortcut",
|
|
181
|
-
"description": "Keys authored one by one. They are rendered in the order written, which is the way out of the platform reordering"
|
|
181
|
+
"description": "Keys authored one by one. They are rendered in the order written, which is the way out of the platform reordering."
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"name": "render",
|
|
185
185
|
"type": "(props: KbdRootProps) => ReactNode",
|
|
186
186
|
"defaultValue": "—",
|
|
187
187
|
"appliesTo": "Kbd, Shortcut",
|
|
188
|
-
"description": "Substitutes the rendered element. Every data attribute and every part are handed to it"
|
|
188
|
+
"description": "Substitutes the rendered element. Every data attribute and every part are handed to it."
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "ref",
|
|
192
192
|
"type": "Ref<HTMLElement>",
|
|
193
193
|
"defaultValue": "—",
|
|
194
194
|
"appliesTo": "Kbd, Shortcut",
|
|
195
|
-
"description": "Reaches the kbd element. There is no imperative handle beyond it:
|
|
195
|
+
"description": "Reaches the kbd element. There is no imperative handle beyond it: Kbd has no action a page cannot express declaratively."
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"name": "KbdDefaultsProvider",
|
|
199
199
|
"type": "{ platform, size, variant, separator, legends, names }",
|
|
200
200
|
"defaultValue": "—",
|
|
201
201
|
"appliesTo": "a subtree",
|
|
202
|
-
"description": "Sets all six once for everything below it; an explicit prop on a key still wins"
|
|
202
|
+
"description": "Sets all six once for everything below it; an explicit prop on a key still wins."
|
|
203
203
|
}
|
|
204
204
|
],
|
|
205
205
|
"events": [],
|
|
206
206
|
"accessibility": [
|
|
207
|
-
"There is no kbd pattern in the WAI-ARIA Authoring Practices — the pattern index carries no entry — and ARIA in HTML (W3C Recommendation, 11 August 2026) maps the kbd element to no corresponding role and declares it Naming Prohibited.
|
|
208
|
-
"A key in the vocabulary hides its legend with aria-hidden and carries the word in a name part
|
|
207
|
+
"There is no kbd pattern in the WAI-ARIA Authoring Practices — the pattern index carries no entry — and ARIA in HTML (W3C Recommendation, 11 August 2026) maps the kbd element to no corresponding role and declares it Naming Prohibited. Kbd therefore writes no role, no aria-label and no aria-disabled, and every word a reader hears is content.",
|
|
208
|
+
"A key in the vocabulary hides its legend with aria-hidden and carries the word in a name part that Kbd clips from view itself. ⌘ is U+2318 PLACE OF INTEREST SIGN and would otherwise be read as one; Ctrl is an abbreviation whose pronunciation belongs to the screen reader’s dictionary. Both are announced “Control” or “Command” here.",
|
|
209
209
|
"The plus between two keys is aria-hidden — it is punctuation joining two caps, and “Command Shift K” is what the operating systems announce for the same shortcut. The word between two steps of a sequence is not hidden, because it is the only thing that distinguishes “G then I” from “G and I together”.",
|
|
210
210
|
"Nothing here is focusable and nothing here binds a key. WCAG 2.2 2.1.4 Character Key Shortcuts belongs to whoever registers the shortcut, because only the application knows whether a single-character shortcut can be turned off.",
|
|
211
211
|
"The keys inside a combination keep their left-to-right order in a right-to-left document. A combination is one formula, the bidi algorithm renders the same string as one left-to-right run inside an Arabic paragraph, and a mirrored K + ⌘ is a shortcut no operating system displays. The combination as a whole still sits where the paragraph puts it.",
|
|
212
212
|
"An arrow legend is never mirrored: ← is the physical Left arrow key, not a direction of travel.",
|
|
213
213
|
"A key label is never truncated. A shortcut too wide for its column wraps between caps and never inside one, because half a key name is a wrong instruction where a wrapped shortcut is only a taller row.",
|
|
214
|
-
"The legends and the spoken names are both replaceable, per application through the provider and per shortcut through legends and names, so
|
|
214
|
+
"The legends and the spoken names are both replaceable, per application through the provider and per shortcut through legends and names, so one wording is one decision rather than one per shortcut."
|
|
215
215
|
]
|
|
216
216
|
}
|
|
217
217
|
},
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"title": "Playground",
|
|
266
266
|
"note": "One key with every axis on it, driven by the controls below the canvas. Change platform and watch the legend change without the markup changing.",
|
|
267
267
|
"language": "tsx",
|
|
268
|
-
"source": "<Kbd keyName=\"mod\" />;\n\n// Or a word
|
|
268
|
+
"source": "<Kbd keyName=\"mod\" />;\n\n// Or a word outside the vocabulary.\n<Kbd>Any key</Kbd>;\n",
|
|
269
269
|
"verdict": "excerpt"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
@@ -273,16 +273,16 @@
|
|
|
273
273
|
"title": "How the key is painted",
|
|
274
274
|
"note": "raised is the only value that looks like an object; outline owns no ground, so it survives on a solid surface where raised would cut a white hole.",
|
|
275
275
|
"language": "tsx",
|
|
276
|
-
"source": "<Shortcut keys=\"mod+b\"
|
|
277
|
-
"verdict": "
|
|
276
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdVariants() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>raised</Text>\n <Shortcut keys=\"mod+b\" variant=\"raised\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>outline</Text>\n <Shortcut keys=\"mod+b\" variant=\"outline\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>soft</Text>\n <Shortcut keys=\"mod+b\" variant=\"soft\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>plain</Text>\n <Shortcut keys=\"mod+b\" variant=\"plain\" />\n </Inline>\n </Stack>\n );\n}\n",
|
|
277
|
+
"verdict": "example"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"id": "sizes",
|
|
281
281
|
"title": "How large the key is",
|
|
282
282
|
"note": "Four absolute heights, 16, 20, 24 and 28 pixels, that no legend and no variant changes; the legend reads the control type scale, so it shrinks with density inside the same box. xs fits a caption or a tooltip. inherit reads the text around it and stays inside its line, which is the step a heading and a footnote both need.",
|
|
283
283
|
"language": "tsx",
|
|
284
|
-
"source": "<Kbd keyName=\"escape\" size=\"xs\"
|
|
285
|
-
"verdict": "
|
|
284
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Kbd } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function KbdSizes() {\n return (\n <Stack gap={4}>\n <Inline gap={3} align=\"center\">\n <Kbd keyName=\"escape\" size=\"xs\" />\n <Kbd keyName=\"escape\" size=\"sm\" />\n <Kbd keyName=\"escape\" size=\"md\" />\n <Kbd keyName=\"escape\" size=\"lg\" />\n </Inline>\n <Heading level={3} size=\"md\">\n Press <Kbd keyName=\"escape\" size=\"inherit\" /> to cancel the count\n </Heading>\n <Text size=\"sm\">\n Press <Kbd keyName=\"escape\" size=\"inherit\" /> to discard the draft.\n </Text>\n </Stack>\n );\n}\n",
|
|
285
|
+
"verdict": "example"
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"id": "shortcut",
|
|
@@ -297,16 +297,16 @@
|
|
|
297
297
|
"title": "The same string on three keyboards",
|
|
298
298
|
"note": "The modifiers are reordered into each platform’s own convention and the legends redrawn; on a Mac the separator is not rendered at all, because a Mac joins with nothing.",
|
|
299
299
|
"language": "tsx",
|
|
300
|
-
"source": "<Shortcut keys=\"
|
|
301
|
-
"verdict": "
|
|
300
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdPlatform() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>mac</Text>\n <Shortcut keys=\"meta+shift+s\" platform=\"mac\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>windows</Text>\n <Shortcut keys=\"meta+shift+s\" platform=\"windows\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>linux</Text>\n <Shortcut keys=\"meta+shift+s\" platform=\"linux\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>other</Text>\n <Shortcut keys=\"meta+shift+s\" platform=\"other\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>auto</Text>\n <Shortcut keys=\"meta+shift+s\" platform=\"auto\" />\n </Inline>\n </Stack>\n );\n}\n",
|
|
301
|
+
"verdict": "example"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"id": "sequence",
|
|
305
305
|
"title": "One key after another",
|
|
306
306
|
"note": "Whitespace between two groups is a step break, so “g i” is G then I. The word is read aloud where the plus is not, because it is the only thing that tells a sequence from a chord.",
|
|
307
307
|
"language": "tsx",
|
|
308
|
-
"source": "<Shortcut keys=\"g i\"
|
|
309
|
-
"verdict": "
|
|
308
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdSequence() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Go to the inbox</Text>\n <Shortcut keys=\"g i\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Go to orders</Text>\n <Shortcut keys=\"g o\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Shortcuts</Text>\n <Shortcut keys=\"mod+k mod+s\" />\n </Inline>\n </Stack>\n );\n}\n",
|
|
309
|
+
"verdict": "example"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"id": "context",
|
|
@@ -321,15 +321,15 @@
|
|
|
321
321
|
"title": "Available and unavailable",
|
|
322
322
|
"note": "disabled dims the ground, the rim and the ink, and writes no aria-disabled: kbd may carry only the global ARIA attributes, so the item owns the semantics.",
|
|
323
323
|
"language": "tsx",
|
|
324
|
-
"source": "<Shortcut keys=\"mod+
|
|
325
|
-
"verdict": "
|
|
324
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Kbd, Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdStates() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Approve payment run</Text>\n <Shortcut keys=\"mod+enter\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Reverse posting</Text>\n <Shortcut disabled keys=\"mod+shift+r\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Dispatch to carrier</Text>\n <Kbd disabled keyName=\"enter\" />\n </Inline>\n </Stack>\n );\n}\n",
|
|
325
|
+
"verdict": "example"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"id": "content",
|
|
329
|
-
"title": "Content the
|
|
330
|
-
"note": "The longest real key name, a
|
|
329
|
+
"title": "Content the application chose",
|
|
330
|
+
"note": "The longest real key name, a legend replaced through the provider, and a four-key combination in a 320-pixel column: it wraps between caps and never inside one.",
|
|
331
331
|
"language": "tsx",
|
|
332
|
-
"source": "<KbdDefaultsProvider\n legends={{
|
|
332
|
+
"source": "<KbdDefaultsProvider\n legends={{ mod: 'Control', delete: 'Delete' }}\n names={{ delete: 'Remove' }}\n platform=\"windows\"\n>\n <Shortcut keys=\"mod+shift+delete\" />\n</KbdDefaultsProvider>;\n",
|
|
333
333
|
"verdict": "excerpt"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
@@ -337,8 +337,8 @@
|
|
|
337
337
|
"title": "Composition and escape hatches",
|
|
338
338
|
"note": "Keys written by hand are rendered in the order written, which is the way out of the platform reordering. render substitutes the element, and the provider decides for a whole application.",
|
|
339
339
|
"language": "tsx",
|
|
340
|
-
"source": "<Shortcut>\n
|
|
341
|
-
"verdict": "
|
|
340
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Kbd, Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdComposition() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Select a range of rows</Text>\n <Shortcut platform=\"windows\" size=\"sm\" variant=\"soft\">\n <Kbd keyName=\"shift\" />\n <Kbd>Click</Kbd>\n </Shortcut>\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Add a row to the selection</Text>\n <Shortcut platform=\"windows\" size=\"sm\" variant=\"soft\">\n <Kbd keyName=\"mod\" />\n <Kbd>Click</Kbd>\n </Shortcut>\n </Inline>\n </Stack>\n );\n}\n",
|
|
341
|
+
"verdict": "example"
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"id": "accessibility",
|
|
@@ -347,6 +347,46 @@
|
|
|
347
347
|
"language": "tsx",
|
|
348
348
|
"source": "// “Command Shift K”\n<Shortcut keys=\"mod+shift+k\" platform=\"mac\" />;\n\n// “G then I”\n<Shortcut keys=\"g i\" />;\n\n// “Any key” — a word the page wrote, so the page owns it.\n<Kbd>Any key</Kbd>;\n",
|
|
349
349
|
"verdict": "excerpt"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "basic",
|
|
353
|
+
"title": "basic.tsx",
|
|
354
|
+
"note": null,
|
|
355
|
+
"language": "tsx",
|
|
356
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Shortcut } from '@slotted/react/kbd';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdBasic() {\n return (\n <Inline gap={3} align=\"center\">\n <Text>Search orders</Text>\n <Shortcut keys=\"mod+k\" />\n </Inline>\n );\n}\n",
|
|
357
|
+
"verdict": "example"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"id": "commands",
|
|
361
|
+
"title": "commands.tsx",
|
|
362
|
+
"note": null,
|
|
363
|
+
"language": "tsx",
|
|
364
|
+
"source": "import { Card, CardBody } from '@slotted/react/card';\nimport { Inline } from '@slotted/react/inline';\nimport { Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdCommands() {\n return (\n <Card>\n <CardBody>\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Open command palette</Text>\n <Shortcut keys=\"mod+k\" size=\"sm\" variant=\"plain\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Duplicate order</Text>\n <Shortcut keys=\"mod+d\" size=\"sm\" variant=\"plain\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Archive order</Text>\n <Shortcut keys=\"mod+shift+a\" size=\"sm\" variant=\"plain\" />\n </Inline>\n </Stack>\n </CardBody>\n </Card>\n );\n}\n",
|
|
365
|
+
"verdict": "example"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"id": "defaults",
|
|
369
|
+
"title": "defaults.tsx",
|
|
370
|
+
"note": null,
|
|
371
|
+
"language": "tsx",
|
|
372
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { KbdDefaultsProvider, Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdDefaults() {\n return (\n <KbdDefaultsProvider platform=\"windows\" size=\"sm\" variant=\"soft\">\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Open search</Text>\n <Shortcut keys=\"mod+k\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Create order</Text>\n <Shortcut keys=\"mod+n\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Print packing slip</Text>\n <Shortcut keys=\"mod+p\" variant=\"outline\" />\n </Inline>\n </Stack>\n </KbdDefaultsProvider>\n );\n}\n",
|
|
373
|
+
"verdict": "example"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"id": "keys",
|
|
377
|
+
"title": "keys.tsx",
|
|
378
|
+
"note": null,
|
|
379
|
+
"language": "tsx",
|
|
380
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Kbd } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdKeys() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Next field</Text>\n <Kbd keyName=\"tab\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Close the panel</Text>\n <Kbd keyName=\"esc\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Previous order</Text>\n <Kbd keyName=\"up\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Refresh the list</Text>\n <Kbd keyName=\"f5\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Open the row menu</Text>\n <Kbd>Right click</Kbd>\n </Inline>\n </Stack>\n );\n}\n",
|
|
381
|
+
"verdict": "example"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"id": "words",
|
|
385
|
+
"title": "words.tsx",
|
|
386
|
+
"note": null,
|
|
387
|
+
"language": "tsx",
|
|
388
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Shortcut } from '@slotted/react/kbd';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function KbdWords() {\n return (\n <Stack gap={3}>\n <Inline justify=\"between\" align=\"center\">\n <Text>Remove row</Text>\n <Shortcut\n keys=\"mod+delete\"\n legends={{ mod: 'Control', delete: 'Delete' }}\n names={{ delete: 'Remove' }}\n platform=\"windows\"\n />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Export report</Text>\n <Shortcut keys=\"mod+shift+e\" platform=\"windows\" separator=\"-\" />\n </Inline>\n <Inline justify=\"between\" align=\"center\">\n <Text>Go to inbox</Text>\n <Shortcut keys=\"g i\" messages={{ then: 'followed by' }} />\n </Inline>\n </Stack>\n );\n}\n",
|
|
389
|
+
"verdict": "example"
|
|
350
390
|
}
|
|
351
391
|
]
|
|
352
392
|
}
|