@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/kbd.md
CHANGED
|
@@ -11,13 +11,21 @@ import { Kbd, KbdDefaultsProvider, Shortcut } from '@slotted/react';
|
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Example
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
import { Inline } from '@slotted/react/inline';
|
|
18
|
+
import { Shortcut } from '@slotted/react/kbd';
|
|
19
|
+
import { Text } from '@slotted/react/typography';
|
|
20
|
+
|
|
21
|
+
export default function KbdBasic() {
|
|
22
|
+
return (
|
|
23
|
+
<Inline gap={3} align="center">
|
|
24
|
+
<Text>Search orders</Text>
|
|
25
|
+
<Shortcut keys="mod+k" />
|
|
26
|
+
</Inline>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
21
29
|
```
|
|
22
30
|
|
|
23
31
|
## Anatomy
|
|
@@ -34,21 +42,21 @@ Excerpt — not a complete module
|
|
|
34
42
|
|
|
35
43
|
| Name | Type | Default | Applies to | Description |
|
|
36
44
|
| --- | --- | --- | --- | --- |
|
|
37
|
-
| `keyName` | `string` | — | Kbd | 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 |
|
|
38
|
-
| `keys` | `string` | — | Shortcut | The whole combination: + joins keys pressed together, whitespace joins the steps of a sequence |
|
|
39
|
-
| `platform` | `'auto' \| 'mac' \| 'windows' \| 'linux' \| 'other'` | auto | Kbd, Shortcut | Which keyboard the legends are drawn for. auto reads the browser; state it where the page is server-rendered |
|
|
40
|
-
| `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'inherit'` | md | Kbd, Shortcut | 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 |
|
|
41
|
-
| `variant` | `'raised' \| 'outline' \| 'soft' \| 'plain'` | raised | Kbd, Shortcut | 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 |
|
|
42
|
-
| `disabled` | `boolean` | false | Kbd, Shortcut | Dims the key without writing aria-disabled, which kbd may not carry. The item the shortcut belongs to owns the semantics |
|
|
43
|
-
| `separator` | `string` | + | Shortcut | Between two simultaneous keys. A Mac joins with nothing whatever this says |
|
|
44
|
-
| `messages` | `PartialMessages<KeysMessages>` | — | Kbd, Shortcut | 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 |
|
|
45
|
-
| `legends` | `Record<string, string>` | — | Shortcut | Replaces what the eye sees, per key token: {
|
|
46
|
-
| `names` | `Record<string, string>` | — | Shortcut | Replaces what a reader hears, per key token: {
|
|
47
|
-
| `children` | `ReactNode` | — | Kbd | The legend written verbatim — the application’s own word, neither resolved nor given a hidden name |
|
|
48
|
-
| `children` | `ReactNode` | — | Shortcut | Keys authored one by one. They are rendered in the order written, which is the way out of the platform reordering |
|
|
49
|
-
| `render` | `(props: KbdRootProps) => ReactNode` | — | Kbd, Shortcut | Substitutes the rendered element. Every data attribute and every part are handed to it |
|
|
50
|
-
| `ref` | `Ref<HTMLElement>` | — | Kbd, Shortcut | Reaches the kbd element. There is no imperative handle beyond it:
|
|
51
|
-
| `KbdDefaultsProvider` | `{ platform, size, variant, separator, legends, names }` | — | a subtree | Sets all six once for everything below it; an explicit prop on a key still wins |
|
|
45
|
+
| `keyName` | `string` | — | Kbd | 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. |
|
|
46
|
+
| `keys` | `string` | — | Shortcut | The whole combination: + joins keys pressed together, whitespace joins the steps of a sequence. |
|
|
47
|
+
| `platform` | `'auto' \| 'mac' \| 'windows' \| 'linux' \| 'other'` | auto | Kbd, Shortcut | Which keyboard the legends are drawn for. auto reads the browser; state it where the page is server-rendered. |
|
|
48
|
+
| `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'inherit'` | md | Kbd, Shortcut | 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. |
|
|
49
|
+
| `variant` | `'raised' \| 'outline' \| 'soft' \| 'plain'` | raised | Kbd, Shortcut | 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. |
|
|
50
|
+
| `disabled` | `boolean` | false | Kbd, Shortcut | Dims the key without writing aria-disabled, which kbd may not carry. The item the shortcut belongs to owns the semantics. |
|
|
51
|
+
| `separator` | `string` | + | Shortcut | Between two simultaneous keys. A Mac joins with nothing whatever this says. |
|
|
52
|
+
| `messages` | `PartialMessages<KeysMessages>` | — | Kbd, Shortcut | 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. |
|
|
53
|
+
| `legends` | `Record<string, string>` | — | Shortcut | Replaces what the eye sees, per key token: { mod: "Control" }. Falls back to the provider. |
|
|
54
|
+
| `names` | `Record<string, string>` | — | Shortcut | Replaces what a reader hears, per key token: { delete: "Remove" }. Falls back to the provider. |
|
|
55
|
+
| `children` | `ReactNode` | — | Kbd | The legend written verbatim — the application’s own word, neither resolved nor given a hidden name. |
|
|
56
|
+
| `children` | `ReactNode` | — | Shortcut | Keys authored one by one. They are rendered in the order written, which is the way out of the platform reordering. |
|
|
57
|
+
| `render` | `(props: KbdRootProps) => ReactNode` | — | Kbd, Shortcut | Substitutes the rendered element. Every data attribute and every part are handed to it. |
|
|
58
|
+
| `ref` | `Ref<HTMLElement>` | — | Kbd, Shortcut | Reaches the kbd element. There is no imperative handle beyond it: Kbd has no action a page cannot express declaratively. |
|
|
59
|
+
| `KbdDefaultsProvider` | `{ platform, size, variant, separator, legends, names }` | — | a subtree | Sets all six once for everything below it; an explicit prop on a key still wins. |
|
|
52
60
|
|
|
53
61
|
## Axes and defaults
|
|
54
62
|
|
|
@@ -60,14 +68,14 @@ Excerpt — not a complete module
|
|
|
60
68
|
|
|
61
69
|
## Rules
|
|
62
70
|
|
|
63
|
-
- 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.
|
|
64
|
-
- A key in the vocabulary hides its legend with aria-hidden and carries the word in a name part
|
|
71
|
+
- 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.
|
|
72
|
+
- 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.
|
|
65
73
|
- 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”.
|
|
66
74
|
- 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.
|
|
67
75
|
- 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.
|
|
68
76
|
- An arrow legend is never mirrored: ← is the physical Left arrow key, not a direction of travel.
|
|
69
77
|
- 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.
|
|
70
|
-
- The legends and the spoken names are both replaceable, per application through the provider and per shortcut through legends and names, so
|
|
78
|
+
- 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.
|
|
71
79
|
|
|
72
80
|
## Tokens
|
|
73
81
|
|
|
@@ -75,33 +83,85 @@ Excerpt — not a complete module
|
|
|
75
83
|
|
|
76
84
|
## Examples
|
|
77
85
|
|
|
86
|
+
### Playground
|
|
87
|
+
|
|
88
|
+
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.
|
|
89
|
+
|
|
90
|
+
Excerpt — not a complete module
|
|
91
|
+
|
|
92
|
+
```tsx
|
|
93
|
+
<Kbd keyName="mod" />;
|
|
94
|
+
|
|
95
|
+
// Or a word outside the vocabulary.
|
|
96
|
+
<Kbd>Any key</Kbd>;
|
|
97
|
+
```
|
|
98
|
+
|
|
78
99
|
### How the key is painted
|
|
79
100
|
|
|
80
101
|
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.
|
|
81
102
|
|
|
82
|
-
|
|
103
|
+
Example
|
|
83
104
|
|
|
84
105
|
```tsx
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
106
|
+
import { Inline } from '@slotted/react/inline';
|
|
107
|
+
import { Shortcut } from '@slotted/react/kbd';
|
|
108
|
+
import { Stack } from '@slotted/react/stack';
|
|
109
|
+
import { Text } from '@slotted/react/typography';
|
|
110
|
+
|
|
111
|
+
export default function KbdVariants() {
|
|
112
|
+
return (
|
|
113
|
+
<Stack gap={3}>
|
|
114
|
+
<Inline justify="between" align="center">
|
|
115
|
+
<Text>raised</Text>
|
|
116
|
+
<Shortcut keys="mod+b" variant="raised" />
|
|
117
|
+
</Inline>
|
|
118
|
+
<Inline justify="between" align="center">
|
|
119
|
+
<Text>outline</Text>
|
|
120
|
+
<Shortcut keys="mod+b" variant="outline" />
|
|
121
|
+
</Inline>
|
|
122
|
+
<Inline justify="between" align="center">
|
|
123
|
+
<Text>soft</Text>
|
|
124
|
+
<Shortcut keys="mod+b" variant="soft" />
|
|
125
|
+
</Inline>
|
|
126
|
+
<Inline justify="between" align="center">
|
|
127
|
+
<Text>plain</Text>
|
|
128
|
+
<Shortcut keys="mod+b" variant="plain" />
|
|
129
|
+
</Inline>
|
|
130
|
+
</Stack>
|
|
131
|
+
);
|
|
132
|
+
}
|
|
89
133
|
```
|
|
90
134
|
|
|
91
135
|
### How large the key is
|
|
92
136
|
|
|
93
137
|
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.
|
|
94
138
|
|
|
95
|
-
|
|
139
|
+
Example
|
|
96
140
|
|
|
97
141
|
```tsx
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
142
|
+
import { Inline } from '@slotted/react/inline';
|
|
143
|
+
import { Kbd } from '@slotted/react/kbd';
|
|
144
|
+
import { Stack } from '@slotted/react/stack';
|
|
145
|
+
import { Heading, Text } from '@slotted/react/typography';
|
|
146
|
+
|
|
147
|
+
export default function KbdSizes() {
|
|
148
|
+
return (
|
|
149
|
+
<Stack gap={4}>
|
|
150
|
+
<Inline gap={3} align="center">
|
|
151
|
+
<Kbd keyName="escape" size="xs" />
|
|
152
|
+
<Kbd keyName="escape" size="sm" />
|
|
153
|
+
<Kbd keyName="escape" size="md" />
|
|
154
|
+
<Kbd keyName="escape" size="lg" />
|
|
155
|
+
</Inline>
|
|
156
|
+
<Heading level={3} size="md">
|
|
157
|
+
Press <Kbd keyName="escape" size="inherit" /> to cancel the count
|
|
158
|
+
</Heading>
|
|
159
|
+
<Text size="sm">
|
|
160
|
+
Press <Kbd keyName="escape" size="inherit" /> to discard the draft.
|
|
161
|
+
</Text>
|
|
162
|
+
</Stack>
|
|
163
|
+
);
|
|
164
|
+
}
|
|
105
165
|
```
|
|
106
166
|
|
|
107
167
|
### A whole combination
|
|
@@ -118,25 +178,72 @@ Excerpt — not a complete module
|
|
|
118
178
|
|
|
119
179
|
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.
|
|
120
180
|
|
|
121
|
-
|
|
181
|
+
Example
|
|
122
182
|
|
|
123
183
|
```tsx
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
184
|
+
import { Inline } from '@slotted/react/inline';
|
|
185
|
+
import { Shortcut } from '@slotted/react/kbd';
|
|
186
|
+
import { Stack } from '@slotted/react/stack';
|
|
187
|
+
import { Text } from '@slotted/react/typography';
|
|
188
|
+
|
|
189
|
+
export default function KbdPlatform() {
|
|
190
|
+
return (
|
|
191
|
+
<Stack gap={3}>
|
|
192
|
+
<Inline justify="between" align="center">
|
|
193
|
+
<Text>mac</Text>
|
|
194
|
+
<Shortcut keys="meta+shift+s" platform="mac" />
|
|
195
|
+
</Inline>
|
|
196
|
+
<Inline justify="between" align="center">
|
|
197
|
+
<Text>windows</Text>
|
|
198
|
+
<Shortcut keys="meta+shift+s" platform="windows" />
|
|
199
|
+
</Inline>
|
|
200
|
+
<Inline justify="between" align="center">
|
|
201
|
+
<Text>linux</Text>
|
|
202
|
+
<Shortcut keys="meta+shift+s" platform="linux" />
|
|
203
|
+
</Inline>
|
|
204
|
+
<Inline justify="between" align="center">
|
|
205
|
+
<Text>other</Text>
|
|
206
|
+
<Shortcut keys="meta+shift+s" platform="other" />
|
|
207
|
+
</Inline>
|
|
208
|
+
<Inline justify="between" align="center">
|
|
209
|
+
<Text>auto</Text>
|
|
210
|
+
<Shortcut keys="meta+shift+s" platform="auto" />
|
|
211
|
+
</Inline>
|
|
212
|
+
</Stack>
|
|
213
|
+
);
|
|
214
|
+
}
|
|
129
215
|
```
|
|
130
216
|
|
|
131
217
|
### One key after another
|
|
132
218
|
|
|
133
219
|
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.
|
|
134
220
|
|
|
135
|
-
|
|
221
|
+
Example
|
|
136
222
|
|
|
137
223
|
```tsx
|
|
138
|
-
|
|
139
|
-
|
|
224
|
+
import { Inline } from '@slotted/react/inline';
|
|
225
|
+
import { Shortcut } from '@slotted/react/kbd';
|
|
226
|
+
import { Stack } from '@slotted/react/stack';
|
|
227
|
+
import { Text } from '@slotted/react/typography';
|
|
228
|
+
|
|
229
|
+
export default function KbdSequence() {
|
|
230
|
+
return (
|
|
231
|
+
<Stack gap={3}>
|
|
232
|
+
<Inline justify="between" align="center">
|
|
233
|
+
<Text>Go to the inbox</Text>
|
|
234
|
+
<Shortcut keys="g i" />
|
|
235
|
+
</Inline>
|
|
236
|
+
<Inline justify="between" align="center">
|
|
237
|
+
<Text>Go to orders</Text>
|
|
238
|
+
<Shortcut keys="g o" />
|
|
239
|
+
</Inline>
|
|
240
|
+
<Inline justify="between" align="center">
|
|
241
|
+
<Text>Shortcuts</Text>
|
|
242
|
+
<Shortcut keys="mod+k mod+s" />
|
|
243
|
+
</Inline>
|
|
244
|
+
</Stack>
|
|
245
|
+
);
|
|
246
|
+
}
|
|
140
247
|
```
|
|
141
248
|
|
|
142
249
|
### Where a shortcut actually lives
|
|
@@ -156,23 +263,44 @@ Excerpt — not a complete module
|
|
|
156
263
|
|
|
157
264
|
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.
|
|
158
265
|
|
|
159
|
-
|
|
266
|
+
Example
|
|
160
267
|
|
|
161
268
|
```tsx
|
|
162
|
-
|
|
163
|
-
|
|
269
|
+
import { Inline } from '@slotted/react/inline';
|
|
270
|
+
import { Kbd, Shortcut } from '@slotted/react/kbd';
|
|
271
|
+
import { Stack } from '@slotted/react/stack';
|
|
272
|
+
import { Text } from '@slotted/react/typography';
|
|
273
|
+
|
|
274
|
+
export default function KbdStates() {
|
|
275
|
+
return (
|
|
276
|
+
<Stack gap={3}>
|
|
277
|
+
<Inline justify="between" align="center">
|
|
278
|
+
<Text>Approve payment run</Text>
|
|
279
|
+
<Shortcut keys="mod+enter" />
|
|
280
|
+
</Inline>
|
|
281
|
+
<Inline justify="between" align="center">
|
|
282
|
+
<Text>Reverse posting</Text>
|
|
283
|
+
<Shortcut disabled keys="mod+shift+r" />
|
|
284
|
+
</Inline>
|
|
285
|
+
<Inline justify="between" align="center">
|
|
286
|
+
<Text>Dispatch to carrier</Text>
|
|
287
|
+
<Kbd disabled keyName="enter" />
|
|
288
|
+
</Inline>
|
|
289
|
+
</Stack>
|
|
290
|
+
);
|
|
291
|
+
}
|
|
164
292
|
```
|
|
165
293
|
|
|
166
|
-
### Content the
|
|
294
|
+
### Content the application chose
|
|
167
295
|
|
|
168
|
-
The longest real key name, a
|
|
296
|
+
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.
|
|
169
297
|
|
|
170
298
|
Excerpt — not a complete module
|
|
171
299
|
|
|
172
300
|
```tsx
|
|
173
301
|
<KbdDefaultsProvider
|
|
174
|
-
legends={{
|
|
175
|
-
names={{
|
|
302
|
+
legends={{ mod: 'Control', delete: 'Delete' }}
|
|
303
|
+
names={{ delete: 'Remove' }}
|
|
176
304
|
platform="windows"
|
|
177
305
|
>
|
|
178
306
|
<Shortcut keys="mod+shift+delete" />
|
|
@@ -183,19 +311,34 @@ Excerpt — not a complete module
|
|
|
183
311
|
|
|
184
312
|
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.
|
|
185
313
|
|
|
186
|
-
|
|
314
|
+
Example
|
|
187
315
|
|
|
188
316
|
```tsx
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
</
|
|
317
|
+
import { Inline } from '@slotted/react/inline';
|
|
318
|
+
import { Kbd, Shortcut } from '@slotted/react/kbd';
|
|
319
|
+
import { Stack } from '@slotted/react/stack';
|
|
320
|
+
import { Text } from '@slotted/react/typography';
|
|
321
|
+
|
|
322
|
+
export default function KbdComposition() {
|
|
323
|
+
return (
|
|
324
|
+
<Stack gap={3}>
|
|
325
|
+
<Inline justify="between" align="center">
|
|
326
|
+
<Text>Select a range of rows</Text>
|
|
327
|
+
<Shortcut platform="windows" size="sm" variant="soft">
|
|
328
|
+
<Kbd keyName="shift" />
|
|
329
|
+
<Kbd>Click</Kbd>
|
|
330
|
+
</Shortcut>
|
|
331
|
+
</Inline>
|
|
332
|
+
<Inline justify="between" align="center">
|
|
333
|
+
<Text>Add a row to the selection</Text>
|
|
334
|
+
<Shortcut platform="windows" size="sm" variant="soft">
|
|
335
|
+
<Kbd keyName="mod" />
|
|
336
|
+
<Kbd>Click</Kbd>
|
|
337
|
+
</Shortcut>
|
|
338
|
+
</Inline>
|
|
339
|
+
</Stack>
|
|
340
|
+
);
|
|
341
|
+
}
|
|
199
342
|
```
|
|
200
343
|
|
|
201
344
|
### What a reader hears
|
|
@@ -214,3 +357,143 @@ Excerpt — not a complete module
|
|
|
214
357
|
// “Any key” — a word the page wrote, so the page owns it.
|
|
215
358
|
<Kbd>Any key</Kbd>;
|
|
216
359
|
```
|
|
360
|
+
|
|
361
|
+
### commands.tsx
|
|
362
|
+
|
|
363
|
+
Example
|
|
364
|
+
|
|
365
|
+
```tsx
|
|
366
|
+
import { Card, CardBody } from '@slotted/react/card';
|
|
367
|
+
import { Inline } from '@slotted/react/inline';
|
|
368
|
+
import { Shortcut } from '@slotted/react/kbd';
|
|
369
|
+
import { Stack } from '@slotted/react/stack';
|
|
370
|
+
import { Text } from '@slotted/react/typography';
|
|
371
|
+
|
|
372
|
+
export default function KbdCommands() {
|
|
373
|
+
return (
|
|
374
|
+
<Card>
|
|
375
|
+
<CardBody>
|
|
376
|
+
<Stack gap={3}>
|
|
377
|
+
<Inline justify="between" align="center">
|
|
378
|
+
<Text>Open command palette</Text>
|
|
379
|
+
<Shortcut keys="mod+k" size="sm" variant="plain" />
|
|
380
|
+
</Inline>
|
|
381
|
+
<Inline justify="between" align="center">
|
|
382
|
+
<Text>Duplicate order</Text>
|
|
383
|
+
<Shortcut keys="mod+d" size="sm" variant="plain" />
|
|
384
|
+
</Inline>
|
|
385
|
+
<Inline justify="between" align="center">
|
|
386
|
+
<Text>Archive order</Text>
|
|
387
|
+
<Shortcut keys="mod+shift+a" size="sm" variant="plain" />
|
|
388
|
+
</Inline>
|
|
389
|
+
</Stack>
|
|
390
|
+
</CardBody>
|
|
391
|
+
</Card>
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### defaults.tsx
|
|
397
|
+
|
|
398
|
+
Example
|
|
399
|
+
|
|
400
|
+
```tsx
|
|
401
|
+
import { Inline } from '@slotted/react/inline';
|
|
402
|
+
import { KbdDefaultsProvider, Shortcut } from '@slotted/react/kbd';
|
|
403
|
+
import { Stack } from '@slotted/react/stack';
|
|
404
|
+
import { Text } from '@slotted/react/typography';
|
|
405
|
+
|
|
406
|
+
export default function KbdDefaults() {
|
|
407
|
+
return (
|
|
408
|
+
<KbdDefaultsProvider platform="windows" size="sm" variant="soft">
|
|
409
|
+
<Stack gap={3}>
|
|
410
|
+
<Inline justify="between" align="center">
|
|
411
|
+
<Text>Open search</Text>
|
|
412
|
+
<Shortcut keys="mod+k" />
|
|
413
|
+
</Inline>
|
|
414
|
+
<Inline justify="between" align="center">
|
|
415
|
+
<Text>Create order</Text>
|
|
416
|
+
<Shortcut keys="mod+n" />
|
|
417
|
+
</Inline>
|
|
418
|
+
<Inline justify="between" align="center">
|
|
419
|
+
<Text>Print packing slip</Text>
|
|
420
|
+
<Shortcut keys="mod+p" variant="outline" />
|
|
421
|
+
</Inline>
|
|
422
|
+
</Stack>
|
|
423
|
+
</KbdDefaultsProvider>
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### keys.tsx
|
|
429
|
+
|
|
430
|
+
Example
|
|
431
|
+
|
|
432
|
+
```tsx
|
|
433
|
+
import { Inline } from '@slotted/react/inline';
|
|
434
|
+
import { Kbd } from '@slotted/react/kbd';
|
|
435
|
+
import { Stack } from '@slotted/react/stack';
|
|
436
|
+
import { Text } from '@slotted/react/typography';
|
|
437
|
+
|
|
438
|
+
export default function KbdKeys() {
|
|
439
|
+
return (
|
|
440
|
+
<Stack gap={3}>
|
|
441
|
+
<Inline justify="between" align="center">
|
|
442
|
+
<Text>Next field</Text>
|
|
443
|
+
<Kbd keyName="tab" />
|
|
444
|
+
</Inline>
|
|
445
|
+
<Inline justify="between" align="center">
|
|
446
|
+
<Text>Close the panel</Text>
|
|
447
|
+
<Kbd keyName="esc" />
|
|
448
|
+
</Inline>
|
|
449
|
+
<Inline justify="between" align="center">
|
|
450
|
+
<Text>Previous order</Text>
|
|
451
|
+
<Kbd keyName="up" />
|
|
452
|
+
</Inline>
|
|
453
|
+
<Inline justify="between" align="center">
|
|
454
|
+
<Text>Refresh the list</Text>
|
|
455
|
+
<Kbd keyName="f5" />
|
|
456
|
+
</Inline>
|
|
457
|
+
<Inline justify="between" align="center">
|
|
458
|
+
<Text>Open the row menu</Text>
|
|
459
|
+
<Kbd>Right click</Kbd>
|
|
460
|
+
</Inline>
|
|
461
|
+
</Stack>
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
### words.tsx
|
|
467
|
+
|
|
468
|
+
Example
|
|
469
|
+
|
|
470
|
+
```tsx
|
|
471
|
+
import { Inline } from '@slotted/react/inline';
|
|
472
|
+
import { Shortcut } from '@slotted/react/kbd';
|
|
473
|
+
import { Stack } from '@slotted/react/stack';
|
|
474
|
+
import { Text } from '@slotted/react/typography';
|
|
475
|
+
|
|
476
|
+
export default function KbdWords() {
|
|
477
|
+
return (
|
|
478
|
+
<Stack gap={3}>
|
|
479
|
+
<Inline justify="between" align="center">
|
|
480
|
+
<Text>Remove row</Text>
|
|
481
|
+
<Shortcut
|
|
482
|
+
keys="mod+delete"
|
|
483
|
+
legends={{ mod: 'Control', delete: 'Delete' }}
|
|
484
|
+
names={{ delete: 'Remove' }}
|
|
485
|
+
platform="windows"
|
|
486
|
+
/>
|
|
487
|
+
</Inline>
|
|
488
|
+
<Inline justify="between" align="center">
|
|
489
|
+
<Text>Export report</Text>
|
|
490
|
+
<Shortcut keys="mod+shift+e" platform="windows" separator="-" />
|
|
491
|
+
</Inline>
|
|
492
|
+
<Inline justify="between" align="center">
|
|
493
|
+
<Text>Go to inbox</Text>
|
|
494
|
+
<Shortcut keys="g i" messages={{ then: 'followed by' }} />
|
|
495
|
+
</Inline>
|
|
496
|
+
</Stack>
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
```
|