@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
|
@@ -19,18 +19,33 @@ import {
|
|
|
19
19
|
|
|
20
20
|
## Minimal example
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Example
|
|
23
23
|
|
|
24
24
|
```tsx
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
import { Button } from '@slotted/react/button';
|
|
26
|
+
import {
|
|
27
|
+
ResultState,
|
|
28
|
+
ResultStateActions,
|
|
29
|
+
ResultStateContent,
|
|
30
|
+
ResultStateDescription,
|
|
31
|
+
ResultStateTitle,
|
|
32
|
+
} from '@slotted/react/result-state';
|
|
33
|
+
|
|
34
|
+
export default function ResultStateBasic() {
|
|
35
|
+
return (
|
|
36
|
+
<ResultState>
|
|
37
|
+
<ResultStateContent>
|
|
38
|
+
<ResultStateTitle>No purchase orders yet</ResultStateTitle>
|
|
39
|
+
<ResultStateDescription>
|
|
40
|
+
Create the first order to start tracking what you buy from suppliers.
|
|
41
|
+
</ResultStateDescription>
|
|
42
|
+
</ResultStateContent>
|
|
43
|
+
<ResultStateActions>
|
|
44
|
+
<Button>Create purchase order</Button>
|
|
45
|
+
</ResultStateActions>
|
|
46
|
+
</ResultState>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
34
49
|
```
|
|
35
50
|
|
|
36
51
|
## Anatomy
|
|
@@ -49,18 +64,18 @@ Excerpt — not a complete module
|
|
|
49
64
|
|
|
50
65
|
| Name | Type | Default | Applies to | Description |
|
|
51
66
|
| --- | --- | --- | --- | --- |
|
|
52
|
-
| `status` | `'empty' \| 'no-results' \| 'not-found' \| 'error' \| 'forbidden' \| 'offline' \| 'success'` | empty | ResultState | What the region is reporting, written on the root as data-status for a page to key its own artwork on.
|
|
53
|
-
| `reach` | `'inline' \| 'section' \| 'page'` | section | ResultState | The scope the message applies to. inline is a row for a table cell and draws no illustration; page takes the
|
|
54
|
-
| `align` | `'center' \| 'start'` | center | ResultState | Whether the region reads
|
|
55
|
-
| `live` | `'off' \| 'polite' \| 'assertive'` | polite | ResultState | Whether the text announces itself. polite writes role="status" on the content part and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box |
|
|
56
|
-
| `illustration` | `'none' \| 'tile' \| 'stack' \| 'cards'` | none | ResultState | The drawing
|
|
57
|
-
| `media` | `ReactNode` | — | ResultState | The glyph an illustration is drawn around, or artwork the page supplies under illustration="none", projected into the box
|
|
58
|
-
| `render` | `(props) => ReactNode` | — | every part | Substitutes the rendered element of ResultState, ResultStateContent, ResultStateTitle, ResultStateDescription, ResultStateActions or ResultStateFooter, and hands it every data attribute. A title rendered as a heading is how a page puts the region in its outline |
|
|
59
|
-
| `ref` | `Ref<HTMLElement>` | — | ResultState | Reaches the section, which carries tabindex="-1" so focus() works. It is the whole imperative surface:
|
|
60
|
-
| `id` | `string` | — | ResultStateTitle | An identifier
|
|
61
|
-
| `ResultStateDefaultsProvider` | `{ status, reach, align, live, illustration }` | — | a subtree | Sets all five once for every region under it; an explicit prop on one region still wins |
|
|
62
|
-
| `children` | `ReactNode` | — | ResultStateContent | The title and the description. Anything else placed here joins the live region, which is why the actions and the footer are parts of their own |
|
|
63
|
-
| `Container, Card` | `composition` | — | around ResultState | The measure belongs to
|
|
67
|
+
| `status` | `'empty' \| 'no-results' \| 'not-found' \| 'error' \| 'forbidden' \| 'offline' \| 'success'` | empty | ResultState | What the region is reporting, written on the root as data-status for a page to key its own artwork on. Result state paints nothing for it: what happened is in the title and the description. |
|
|
68
|
+
| `reach` | `'inline' \| 'section' \| 'page'` | section | ResultState | The scope the message applies to. inline is a row for a table cell and draws no illustration; page takes the 3xl step of the type scale and draws the illustration half again as large. |
|
|
69
|
+
| `align` | `'center' \| 'start'` | center | ResultState | Whether the region reads centered or from the inline edge. start is for a data-dense screen, where a centered column reads as an interruption. |
|
|
70
|
+
| `live` | `'off' \| 'polite' \| 'assertive'` | polite | ResultState | Whether the text announces itself. polite writes role="status" on the content part and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box. |
|
|
71
|
+
| `illustration` | `'none' \| 'tile' \| 'stack' \| 'cards'` | none | ResultState | The drawing result state makes around the glyph in media, in the neutral surface and border roles and never in a tone. tile and stack frame a glyph and draw nothing without one; cards draws its lines with or without it; none draws nothing of its own. |
|
|
72
|
+
| `media` | `ReactNode` | — | ResultState | The glyph an illustration is drawn around, or artwork the page supplies under illustration="none", projected into the box result state draws so it keeps the height the reach gives it. Angular projects an element carrying slResultStateMedia instead. |
|
|
73
|
+
| `render` | `(props) => ReactNode` | — | every part | Substitutes the rendered element of ResultState, ResultStateContent, ResultStateTitle, ResultStateDescription, ResultStateActions or ResultStateFooter, and hands it every data attribute. A title rendered as a heading is how a page puts the region in its outline. |
|
|
74
|
+
| `ref` | `Ref<HTMLElement>` | — | ResultState | Reaches the section, which carries tabindex="-1" so focus() works. It is the whole imperative surface: result state never moves focus by itself, because moving it unprompted is a change of context nobody asked for. |
|
|
75
|
+
| `id` | `string` | — | ResultStateTitle | An identifier you write is kept, and the root points aria-labelledby at that one rather than at its own. |
|
|
76
|
+
| `ResultStateDefaultsProvider` | `{ status, reach, align, live, illustration }` | — | a subtree | Sets all five once for every region under it; an explicit prop on one region still wins. |
|
|
77
|
+
| `children` | `ReactNode` | — | ResultStateContent | The title and the description. Anything else placed here joins the live region, which is why the actions and the footer are parts of their own. |
|
|
78
|
+
| `Container, Card` | `composition` | — | around ResultState | The measure belongs to Container and the frame to Card. Result state caps no width and draws no box. |
|
|
64
79
|
|
|
65
80
|
## Axes and defaults
|
|
66
81
|
|
|
@@ -74,13 +89,13 @@ Excerpt — not a complete module
|
|
|
74
89
|
|
|
75
90
|
## Rules
|
|
76
91
|
|
|
77
|
-
-
|
|
78
|
-
- The box is a landmark, not a live region. MDN
|
|
79
|
-
- live defaults to polite,
|
|
80
|
-
- Status is never carried by color
|
|
81
|
-
- The media box is hidden from assistive technology, with the glyph, the drawing made around it and any artwork
|
|
82
|
-
- The root carries tabindex="-1" and is not in the tab sequence.
|
|
83
|
-
-
|
|
92
|
+
- The Authoring Practices Guide has no pattern for empty, error or result states. The nearest guidance is the region landmark practice, which states that “a region landmark must have a label”. The root is a section and aria-labelledby is written only once a title exists, so a region without a title is a plain grouping element rather than a landmark with no name.
|
|
93
|
+
- The box is a landmark, not a live region. The MDN reference for the alert role states that the role “should only be used for text content, not interactive elements such as links or buttons”, and a result state holds buttons. The content part is the live region and holds the title and the description alone; the media, the actions and the footer are its siblings.
|
|
94
|
+
- live defaults to polite, where Alert defaults to off. The Understanding document for WCAG 2.2 SC 4.1.3 gives “No results returned” as an example of a status message. An alert may be a standing notice that was on the page before it loaded; a result is always the outcome of an operation.
|
|
95
|
+
- Status is never carried by color, because result state paints no color for it: what happened is in the title and the description, which forced colors leave legible. The illustrations keep the theme’s system-color mapping under forced colors, so a stack is still three layers and not three outlines laid over one another.
|
|
96
|
+
- The media box is hidden from assistive technology, with the glyph, the drawing made around it and any artwork you supply. The title and the description must say what the picture says. An illustration that adds information is not decorative, and what it adds belongs in the description.
|
|
97
|
+
- The root carries tabindex="-1" and is not in the tab sequence. After your code empties a table, it can send the reader to the message through the ref. Result state never moves focus by itself, because moving focus unprompted is a change of context nobody asked for.
|
|
98
|
+
- Result state holds no mutable value, so it emits no events and has no event table. Which status a region is in is a fact about your own data: a region that decided it would be deciding whether the request failed.
|
|
84
99
|
- A region that announces arrives: its words fade in and its drawing assembles, on the entering curve, and a hidden region fades out on the leaving curve. Under reduced motion the drawing arrives assembled. The focus indicator is not animated, because a focus indicator that fades in is one that is not there yet.
|
|
85
100
|
|
|
86
101
|
## Tokens
|
|
@@ -89,202 +104,4 @@ Excerpt — not a complete module
|
|
|
89
104
|
|
|
90
105
|
## Examples
|
|
91
106
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Seven semantics, seven silhouettes. Read in grayscale, or under forced colors where every ground becomes one system color, the shape is the only thing left telling an absent collection from a failed request.
|
|
95
|
-
|
|
96
|
-
Excerpt — not a complete module
|
|
97
|
-
|
|
98
|
-
```tsx
|
|
99
|
-
// empty: the collection exists and holds nothing.
|
|
100
|
-
// no-results: a query or a filter matched nothing.
|
|
101
|
-
// not-found: the thing that was asked for is not here.
|
|
102
|
-
// error: a failure the reader can act on.
|
|
103
|
-
// forbidden: the reader is not allowed to see it.
|
|
104
|
-
// offline: the connection is gone.
|
|
105
|
-
// success: the flow finished and there is nothing left to do.
|
|
106
|
-
<ResultState status="no-results" />;
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### How far the region reaches
|
|
110
|
-
|
|
111
|
-
A row inside a table cell, a panel inside a card, the whole route — the same three words alert uses. The mark is the title’s own size at every reach and stands over the title at section and page; at inline it sits on the message’s first line and the actions join it, and at page the title takes the top step of the type scale.
|
|
112
|
-
|
|
113
|
-
Excerpt — not a complete module
|
|
114
|
-
|
|
115
|
-
```tsx
|
|
116
|
-
<ResultState reach="inline" status="no-results">
|
|
117
|
-
<ResultStateContent>
|
|
118
|
-
<ResultStateTitle>No rows match the filter</ResultStateTitle>
|
|
119
|
-
</ResultStateContent>
|
|
120
|
-
<ResultStateActions>
|
|
121
|
-
<Button size="sm" variant="ghost">
|
|
122
|
-
Clear filters
|
|
123
|
-
</Button>
|
|
124
|
-
</ResultStateActions>
|
|
125
|
-
</ResultState>;
|
|
126
|
-
|
|
127
|
-
<ResultState reach="page" status="not-found" />;
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Centerd, or from the inline edge
|
|
131
|
-
|
|
132
|
-
Carbon left-aligns its empty states inside data-dense views and the other six surveyed implementations center unconditionally. Both readings are real, and align is one axis rather than a second family.
|
|
133
|
-
|
|
134
|
-
Excerpt — not a complete module
|
|
135
|
-
|
|
136
|
-
```tsx
|
|
137
|
-
// The default, for a panel or a route.
|
|
138
|
-
<ResultState align="center" />;
|
|
139
|
-
|
|
140
|
-
// For a data-dense screen, where a centerd column reads as an interruption.
|
|
141
|
-
<ResultState align="start" reach="inline" />;
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### The page’s own illustration
|
|
145
|
-
|
|
146
|
-
The box is sized before anything is in it, so an illustration that has not loaded reserves the space it will occupy and the title below it never moves. Atlassian spends four props on that and Polaris a skeleton with an effect.
|
|
147
|
-
|
|
148
|
-
Excerpt — not a complete module
|
|
149
|
-
|
|
150
|
-
```tsx
|
|
151
|
-
// A title, a description and an action: the family draws no picture.
|
|
152
|
-
<ResultState status="offline" />;
|
|
153
|
-
|
|
154
|
-
// The page draws its own, in the box the family keeps.
|
|
155
|
-
<ResultState media={<BoardIllustration />} />;
|
|
156
|
-
|
|
157
|
-
// Or named in CSS, for a page that skins its states in the theme:
|
|
158
|
-
// [data-ui="result-state"][data-status="offline"] > [data-part="media"] {
|
|
159
|
-
// display: block;
|
|
160
|
-
// --slotted-result-state-media: url("/illustrations/offline.svg");
|
|
161
|
-
// }
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
### A drawing around the page’s glyph
|
|
165
|
-
|
|
166
|
-
Three drawings in the neutral surface and border roles — a framed tile, three layers leaning back, a stack of cards — made around the glyph in media. None takes a tone, and inline reach draws none. A region that announces assembles its drawing as it arrives; under reduced motion it arrives assembled.
|
|
167
|
-
|
|
168
|
-
Excerpt — not a complete module
|
|
169
|
-
|
|
170
|
-
```tsx
|
|
171
|
-
const glyph = (
|
|
172
|
-
<Icon>
|
|
173
|
-
<Glyph name="bell" />
|
|
174
|
-
</Icon>
|
|
175
|
-
);
|
|
176
|
-
|
|
177
|
-
<ResultState illustration="stack" media={glyph}>
|
|
178
|
-
<ResultStateContent>
|
|
179
|
-
<ResultStateTitle>No alerts configured</ResultStateTitle>
|
|
180
|
-
</ResultStateContent>
|
|
181
|
-
</ResultState>;
|
|
182
|
-
|
|
183
|
-
// A framed tile, and a stack of cards standing in for rows.
|
|
184
|
-
<ResultState illustration="tile" media={glyph} />;
|
|
185
|
-
<ResultState illustration="cards" media={glyph} />;
|
|
186
|
-
|
|
187
|
-
// The cards draw their two lines with no glyph at all.
|
|
188
|
-
<ResultState illustration="cards" />;
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### The way out of the situation
|
|
192
|
-
|
|
193
|
-
The controls are the consumer’s own Buttons in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. Narrow the window past 20rem and watch them stack.
|
|
194
|
-
|
|
195
|
-
Excerpt — not a complete module
|
|
196
|
-
|
|
197
|
-
```tsx
|
|
198
|
-
<ResultState status="error">
|
|
199
|
-
<ResultStateContent>
|
|
200
|
-
<ResultStateTitle>The run failed</ResultStateTitle>
|
|
201
|
-
</ResultStateContent>
|
|
202
|
-
<ResultStateActions>
|
|
203
|
-
<Button loading={retrying} tone="danger">
|
|
204
|
-
Try again
|
|
205
|
-
</Button>
|
|
206
|
-
<Button variant="outline">Open log</Button>
|
|
207
|
-
</ResultStateActions>
|
|
208
|
-
<ResultStateFooter>
|
|
209
|
-
<Link href="/docs/retries">How retries are counted</Link>
|
|
210
|
-
</ResultStateFooter>
|
|
211
|
-
</ResultState>;
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### What a reader hears, and when
|
|
215
|
-
|
|
216
|
-
polite by default, which is where this family and alert disagree: WCAG 2.2 SC 4.1.3 names “No results returned” as its own example of a status message. Press the button and the region arrives while the reader is elsewhere.
|
|
217
|
-
|
|
218
|
-
Excerpt — not a complete module
|
|
219
|
-
|
|
220
|
-
```tsx
|
|
221
|
-
// The default. role="status" on the text, which implies aria-live and
|
|
222
|
-
// aria-atomic; the buttons beside it are outside the region.
|
|
223
|
-
<ResultState live="polite" status="no-results" />;
|
|
224
|
-
|
|
225
|
-
// role="alert", for a failure the reader has to hear now.
|
|
226
|
-
<ResultState live="assertive" status="error" />;
|
|
227
|
-
|
|
228
|
-
// Off, when the page already owns a live region around this one.
|
|
229
|
-
<ResultState live="off" />;
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### Content the family did not choose
|
|
233
|
-
|
|
234
|
-
A German compound with no break opportunity, a digest no language can break, a title standing alone and a region with no mark — all in a column narrow enough to make each of them a problem.
|
|
235
|
-
|
|
236
|
-
Excerpt — not a complete module
|
|
237
|
-
|
|
238
|
-
```tsx
|
|
239
|
-
<ResultState status="error">
|
|
240
|
-
<ResultStateContent>
|
|
241
|
-
<ResultStateTitle>{longTranslatedTitle}</ResultStateTitle>
|
|
242
|
-
<ResultStateDescription>The run {digest} failed.</ResultStateDescription>
|
|
243
|
-
</ResultStateContent>
|
|
244
|
-
</ResultState>;
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Composition and escape hatches
|
|
248
|
-
|
|
249
|
-
Measure belongs to container and the frame to card, so the region caps nothing and draws no box: these two lines are what a consumer writes instead. The provider sets the axes once, and render substitutes the element of any part.
|
|
250
|
-
|
|
251
|
-
Excerpt — not a complete module
|
|
252
|
-
|
|
253
|
-
```tsx
|
|
254
|
-
<Container size="measure">
|
|
255
|
-
<ResultState reach="page" status="no-results" />
|
|
256
|
-
</Container>;
|
|
257
|
-
|
|
258
|
-
<Card>
|
|
259
|
-
<ResultState status="empty" />
|
|
260
|
-
</Card>;
|
|
261
|
-
|
|
262
|
-
<ResultStateDefaultsProvider align="start" reach="inline">
|
|
263
|
-
<App />
|
|
264
|
-
</ResultStateDefaultsProvider>;
|
|
265
|
-
|
|
266
|
-
<ResultStateTitle render={(props) => <h2 {...props} />}>This page does not exist</ResultStateTitle>;
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
### The landmark, the region and the keyboard
|
|
270
|
-
|
|
271
|
-
Tab past the region and then send the keyboard into it: the box is a landmark a reader can jump to, the text is the only thing that announces, and nothing moves focus unless the application asks.
|
|
272
|
-
|
|
273
|
-
Excerpt — not a complete module
|
|
274
|
-
|
|
275
|
-
```tsx
|
|
276
|
-
// A region landmark named "Nada corresponde ao filtro", holding a polite
|
|
277
|
-
// status region. The button is outside it.
|
|
278
|
-
<ResultState live="polite">
|
|
279
|
-
<ResultStateContent>
|
|
280
|
-
<ResultStateTitle>Nada corresponde ao filtro</ResultStateTitle>
|
|
281
|
-
</ResultStateContent>
|
|
282
|
-
<ResultStateActions>
|
|
283
|
-
<Button>Limpar filtros</Button>
|
|
284
|
-
</ResultStateActions>
|
|
285
|
-
</ResultState>;
|
|
286
|
-
|
|
287
|
-
// The application decides when the keyboard goes there. The family never does.
|
|
288
|
-
const region = useRef<HTMLElement>(null);
|
|
289
|
-
region.current?.focus();
|
|
290
|
-
```
|
|
107
|
+
See [result-state.examples.md](./result-state.examples.md).
|
package/dist/docs/skeleton.json
CHANGED
|
@@ -107,84 +107,84 @@
|
|
|
107
107
|
"type": "'text' | 'block' | 'circle' | 'square'",
|
|
108
108
|
"defaultValue": "text",
|
|
109
109
|
"appliesTo": "Skeleton",
|
|
110
|
-
"description": "What the placeholder stands for: a line of type, a block of content, or
|
|
110
|
+
"description": "What the placeholder stands for: a line of type, a block of content, a round avatar or a square avatar."
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "size",
|
|
114
114
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
115
115
|
"defaultValue": "md",
|
|
116
116
|
"appliesTo": "Skeleton",
|
|
117
|
-
"description": "The avatar scale
|
|
117
|
+
"description": "The avatar scale, read by the circle and square shapes. Text takes its height from the surrounding type, and block takes it from blockSize or from its content."
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"name": "inlineSize, blockSize",
|
|
121
121
|
"type": "number | string",
|
|
122
122
|
"defaultValue": "—",
|
|
123
123
|
"appliesTo": "Skeleton, SkeletonText",
|
|
124
|
-
"description": "The reserved geometry
|
|
124
|
+
"description": "The reserved geometry along the inline and block axes. A bare number is pixels. SkeletonText takes inlineSize only. A box that covers content takes that content’s size unless you state one."
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"name": "loading",
|
|
128
128
|
"type": "boolean",
|
|
129
129
|
"defaultValue": "true",
|
|
130
130
|
"appliesTo": "Skeleton, SkeletonText, SkeletonRegion",
|
|
131
|
-
"description": "Whether the content is still on its way. On a box, unset
|
|
131
|
+
"description": "Whether the content is still on its way. On a box, leaving it unset hands the decision to the nearest region."
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"name": "lines",
|
|
135
135
|
"type": "number",
|
|
136
136
|
"defaultValue": "3",
|
|
137
137
|
"appliesTo": "SkeletonText",
|
|
138
|
-
"description": "How many rows of the paragraph to reserve"
|
|
138
|
+
"description": "How many rows of the paragraph to reserve."
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"name": "lastLineSize",
|
|
142
142
|
"type": "string",
|
|
143
143
|
"defaultValue": "62%",
|
|
144
144
|
"appliesTo": "SkeletonText",
|
|
145
|
-
"description": "
|
|
145
|
+
"description": "The width of the last row. It applies only when there is more than one row."
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"name": "animation",
|
|
149
149
|
"type": "'shimmer' | 'pulse' | 'none'",
|
|
150
150
|
"defaultValue": "shimmer",
|
|
151
151
|
"appliesTo": "Skeleton, SkeletonText, SkeletonRegion",
|
|
152
|
-
"description": "How the wait moves. A region
|
|
152
|
+
"description": "How the wait moves. A region passes its value to every placeholder inside it."
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"name": "live",
|
|
156
156
|
"type": "'polite' | 'off'",
|
|
157
157
|
"defaultValue": "polite",
|
|
158
158
|
"appliesTo": "SkeletonRegion",
|
|
159
|
-
"description": "Whether the region announces the wait
|
|
159
|
+
"description": "Whether the region announces the wait. The value off leaves the status element out."
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "messages",
|
|
163
163
|
"type": "Partial<SkeletonMessages>",
|
|
164
164
|
"defaultValue": "—",
|
|
165
165
|
"appliesTo": "SkeletonRegion",
|
|
166
|
-
"description": "Words laid over the language in force, key by key
|
|
166
|
+
"description": "Words laid over the language in force, key by key. The label key is what a screen reader hears once, while the region waits."
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"name": "loadedLabel",
|
|
170
170
|
"type": "string",
|
|
171
171
|
"defaultValue": "—",
|
|
172
172
|
"appliesTo": "SkeletonRegion",
|
|
173
|
-
"description": "What
|
|
173
|
+
"description": "What a screen reader hears when the content arrives. The region is silent on arrival unless this is set."
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"name": "delay",
|
|
177
177
|
"type": "number",
|
|
178
178
|
"defaultValue": "0",
|
|
179
179
|
"appliesTo": "SkeletonRegion",
|
|
180
|
-
"description": "Milliseconds the wait must last before anything is painted"
|
|
180
|
+
"description": "Milliseconds the wait must last before anything is painted."
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"name": "minDuration",
|
|
184
184
|
"type": "number",
|
|
185
185
|
"defaultValue": "0",
|
|
186
186
|
"appliesTo": "SkeletonRegion",
|
|
187
|
-
"description": "Milliseconds a placeholder that did appear
|
|
187
|
+
"description": "Milliseconds a placeholder that did appear stays painted before it is withdrawn."
|
|
188
188
|
}
|
|
189
189
|
],
|
|
190
190
|
"composition": [
|
|
@@ -193,44 +193,44 @@
|
|
|
193
193
|
"type": "ReactNode",
|
|
194
194
|
"defaultValue": "—",
|
|
195
195
|
"appliesTo": "Skeleton",
|
|
196
|
-
"description": "Covered rather than replaced: the box takes the content’s own geometry, hides it, and reveals it untouched when loading ends"
|
|
196
|
+
"description": "Covered rather than replaced: the box takes the content’s own geometry, hides it, and reveals it untouched when loading ends."
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"name": "render",
|
|
200
200
|
"type": "(props) => ReactNode",
|
|
201
201
|
"defaultValue": "—",
|
|
202
202
|
"appliesTo": "Skeleton, SkeletonText, SkeletonRegion",
|
|
203
|
-
"description": "Substitutes the rendered element. Every data attribute and the geometry style are
|
|
203
|
+
"description": "Substitutes the rendered element. Every data attribute and the geometry style are passed to it."
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
"name": "ref",
|
|
207
207
|
"type": "Ref<HTMLSpanElement | HTMLDivElement>",
|
|
208
208
|
"defaultValue": "—",
|
|
209
209
|
"appliesTo": "all three",
|
|
210
|
-
"description": "Reaches the native element
|
|
210
|
+
"description": "Reaches the native element. The props of each part are the props of that element, extended."
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"name": "SkeletonDefaultsProvider",
|
|
214
214
|
"type": "SkeletonDefaults",
|
|
215
215
|
"defaultValue": "—",
|
|
216
216
|
"appliesTo": "Application",
|
|
217
|
-
"description": "Sets animation, delay, minDuration, loadedLabel, lastLineSize and live once for everything below it
|
|
217
|
+
"description": "Sets animation, delay, minDuration, loadedLabel, lastLineSize and live once for everything below it. A prop on a region or a box still wins."
|
|
218
218
|
}
|
|
219
219
|
],
|
|
220
220
|
"events": [
|
|
221
221
|
{
|
|
222
222
|
"name": "onReveal",
|
|
223
223
|
"payload": "void",
|
|
224
|
-
"when": "The placeholders are actually withdrawn
|
|
224
|
+
"when": "The placeholders are actually withdrawn, which is later than loading turning false whenever minDuration still holds them. Use it to move focus on."
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
227
|
"accessibility": [
|
|
228
228
|
"Every placeholder carries aria-hidden=\"true\" and inert while it is painted. Reading out the absence of something is noise, and focus must not fall into content that is not ready — a covered button is unreachable rather than reachable and useless.",
|
|
229
|
-
"aria-hidden
|
|
230
|
-
"The region carries aria-busy=\"true\" while it waits, which is the platform’s own answer: ARIA 1.2 asks an author to set it on the container before the first change and clear it when the last change is complete.
|
|
229
|
+
"An aria-hidden written by hand on a placeholder is kept, so a placeholder that has to stay announced can be.",
|
|
230
|
+
"The region carries aria-busy=\"true\" while it waits, which is the platform’s own answer: ARIA 1.2 asks an author to set it on the container before the first change and clear it when the last change is complete. The ARIA Authoring Practices Guide has no pattern for a skeleton.",
|
|
231
231
|
"One region is one announcement. A visually-hidden role=\"status\" holds the label while waiting and is emptied afterwards, and emptying a live region announces nothing, so twelve placeholders do not become twelve messages. loadedLabel opts into a second.",
|
|
232
232
|
"Under prefers-reduced-motion the loop stops rather than shortening: an infinite animation that hurries is still moving. animation=\"none\", set once through the provider, is the author-side mechanism WCAG 2.2 SC 2.2.2 asks for.",
|
|
233
|
-
"The placeholder is visible in all three color schemes. The fill is the unavailable surface
|
|
233
|
+
"The placeholder is visible in all three color schemes. The fill is the unavailable surface shifted slightly toward the text color, and a hairline rim takes over in high contrast, where that surface is the page’s own white."
|
|
234
234
|
]
|
|
235
235
|
}
|
|
236
236
|
},
|
|
@@ -277,24 +277,24 @@
|
|
|
277
277
|
"title": "What the placeholder stands for",
|
|
278
278
|
"note": "Four relationships to the layout rather than four points on a scale: a line of type, a block of content, and the two boxes an avatar can be.",
|
|
279
279
|
"language": "tsx",
|
|
280
|
-
"source": "
|
|
281
|
-
"verdict": "
|
|
280
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Skeleton } from '@slotted/react/skeleton';\n\nexport default function SkeletonShapes() {\n return (\n <Inline align=\"center\" gap={5}>\n <Skeleton inlineSize=\"6rem\" shape=\"text\" />\n <Skeleton blockSize=\"4rem\" inlineSize=\"6rem\" shape=\"block\" />\n <Skeleton shape=\"circle\" size=\"lg\" />\n <Skeleton shape=\"square\" size=\"lg\" />\n </Inline>\n );\n}\n",
|
|
281
|
+
"verdict": "example"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
"id": "text",
|
|
285
285
|
"title": "A paragraph that has not arrived",
|
|
286
286
|
"note": "The rows are exactly one line box each, so three rows are the three lines the words will take — at any type size, at any density, with no height typed anywhere.",
|
|
287
287
|
"language": "tsx",
|
|
288
|
-
"source": "
|
|
289
|
-
"verdict": "
|
|
288
|
+
"source": "import { SkeletonText } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function SkeletonTextRows() {\n return (\n <Stack gap={6}>\n <SkeletonText />\n <SkeletonText lastLineSize=\"40%\" lines={5} />\n <SkeletonText inlineSize=\"12rem\" lines={1} />\n </Stack>\n );\n}\n",
|
|
289
|
+
"verdict": "example"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"id": "sizes",
|
|
293
293
|
"title": "The round placeholder and the avatar it replaces",
|
|
294
294
|
"note": "size reads the avatar scale, so a placeholder and the picture that lands in its place are the same box at every step and at every density.",
|
|
295
295
|
"language": "tsx",
|
|
296
|
-
"source": "
|
|
297
|
-
"verdict": "
|
|
296
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Skeleton } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\n\nconst SIZES = ['xs', 'sm', 'md', 'lg', 'xl'] as const;\n\nexport default function SkeletonSizes() {\n return (\n <Stack gap={4}>\n <Inline align=\"center\" gap={3}>\n {SIZES.map((size) => (\n <Skeleton key={size} shape=\"circle\" size={size} />\n ))}\n </Inline>\n <Inline align=\"center\" gap={3}>\n {SIZES.map((size) => (\n <Skeleton key={size} shape=\"square\" size={size} />\n ))}\n </Inline>\n </Stack>\n );\n}\n",
|
|
297
|
+
"verdict": "example"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"id": "wrapping",
|
|
@@ -309,40 +309,40 @@
|
|
|
309
309
|
"title": "One wait, one announcement",
|
|
310
310
|
"note": "The region carries aria-busy and the single status message; every placeholder inside it is hidden, inert, and reads the region loading state instead of its own.",
|
|
311
311
|
"language": "tsx",
|
|
312
|
-
"source": "<SkeletonRegion messages={{ label: 'Loading
|
|
313
|
-
"verdict": "
|
|
312
|
+
"source": "import { useEffect, useState } from 'react';\n\nimport { Avatar } from '@slotted/react/avatar';\nimport { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport { Skeleton, SkeletonRegion } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst TEAM = [\n { name: 'Maria Chen', role: 'Dock supervisor', widths: ['5.5rem', '7rem'] },\n { name: 'Tomás Rivera', role: 'Forklift operator', widths: ['6.5rem', '8rem'] },\n { name: 'Priya Nair', role: 'Inventory analyst', widths: ['5rem', '7.5rem'] },\n];\n\nexport default function SkeletonRegionExample() {\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (!loading) return;\n const timer = setTimeout(() => setLoading(false), 1500);\n return () => clearTimeout(timer);\n }, [loading]);\n\n return (\n <Stack gap={4}>\n <Inline align=\"center\" gap={3}>\n <Heading level={2} size=\"md\">\n Warehouse team\n </Heading>\n <Button onClick={() => setLoading(true)} size=\"sm\" variant=\"outline\">\n Replay loading\n </Button>\n </Inline>\n <SkeletonRegion\n loadedLabel=\"Team loaded\"\n loading={loading}\n messages={{ label: 'Loading the team' }}\n >\n <Stack gap={4}>\n {TEAM.map((member) => (\n <Inline key={member.name} align=\"center\" gap={3}>\n {loading ? (\n <Skeleton shape=\"circle\" size=\"md\" />\n ) : (\n <Avatar name={member.name} size=\"md\" />\n )}\n <Stack gap={1}>\n <Text>{loading ? <Skeleton inlineSize={member.widths[0]} /> : member.name}</Text>\n <Text size=\"sm\" tone=\"muted\">\n {loading ? <Skeleton inlineSize={member.widths[1]} /> : member.role}\n </Text>\n </Stack>\n </Inline>\n ))}\n </Stack>\n </SkeletonRegion>\n </Stack>\n );\n}\n",
|
|
313
|
+
"verdict": "example"
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"id": "timing",
|
|
317
317
|
"title": "The flash, and the flash in reverse",
|
|
318
318
|
"note": "delay withholds the paint until the wait is worth reporting; minDuration holds a placeholder that did appear. Both are zero unless an application sets them.",
|
|
319
319
|
"language": "tsx",
|
|
320
|
-
"source": "<SkeletonDefaultsProvider delay={200} minDuration={400}>\n
|
|
321
|
-
"verdict": "
|
|
320
|
+
"source": "import { useState } from 'react';\n\nimport { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport { Skeleton, SkeletonDefaultsProvider, SkeletonRegion } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function SkeletonTiming() {\n const [loading, setLoading] = useState(false);\n const [withdrawn, setWithdrawn] = useState(0);\n\n const load = (duration: number) => {\n setLoading(true);\n setTimeout(() => setLoading(false), duration);\n };\n\n return (\n <SkeletonDefaultsProvider delay={200} minDuration={400}>\n <Stack gap={4}>\n <Inline gap={2}>\n <Button disabled={loading} onClick={() => load(80)} size=\"sm\" variant=\"outline\">\n Respond in 80 ms\n </Button>\n <Button disabled={loading} onClick={() => load(250)} size=\"sm\" variant=\"outline\">\n Respond in 250 ms\n </Button>\n <Button disabled={loading} onClick={() => load(1500)} size=\"sm\" variant=\"outline\">\n Respond in 1.5 s\n </Button>\n </Inline>\n <SkeletonRegion\n loading={loading}\n messages={{ label: 'Loading the shipment' }}\n onReveal={() => setWithdrawn((count) => count + 1)}\n >\n <Skeleton>\n <Text>Pallet PL-4821 left dock 6 at 14:05.</Text>\n </Skeleton>\n </SkeletonRegion>\n <Text size=\"sm\" tone=\"muted\">\n Placeholders withdrawn: {withdrawn}\n </Text>\n </Stack>\n </SkeletonDefaultsProvider>\n );\n}\n",
|
|
321
|
+
"verdict": "example"
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
"id": "animation",
|
|
325
325
|
"title": "How the wait moves",
|
|
326
326
|
"note": "shimmer sends a band across the placeholder and is the default; pulse dims the fill and back for a quieter surface; none is still. Under reduced motion all three stop.",
|
|
327
327
|
"language": "tsx",
|
|
328
|
-
"source": "
|
|
329
|
-
"verdict": "
|
|
328
|
+
"source": "import { SkeletonText } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst ANIMATIONS = ['shimmer', 'pulse', 'none'] as const;\n\nexport default function SkeletonAnimation() {\n return (\n <Stack gap={5}>\n {ANIMATIONS.map((animation) => (\n <Stack key={animation} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n {animation}\n </Text>\n <SkeletonText animation={animation} lines={2} />\n </Stack>\n ))}\n </Stack>\n );\n}\n",
|
|
329
|
+
"verdict": "example"
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"id": "composition",
|
|
333
333
|
"title": "A loading surface a product would ship",
|
|
334
|
-
"note": "An avatar, a name, a role and a status chip, each placeholder standing in the box its own
|
|
334
|
+
"note": "An avatar, a name, a role and a status chip, each placeholder standing in the box its own component will occupy, all under one region that owns the wait.",
|
|
335
335
|
"language": "tsx",
|
|
336
|
-
"source": "<SkeletonRegion messages={{ label: 'Loading members' }} loading={pending}>\n <Inline gap
|
|
336
|
+
"source": "<SkeletonRegion messages={{ label: 'Loading members' }} loading={pending}>\n <Inline gap={5}>\n <Skeleton shape=\"circle\" size=\"md\" />\n <Stack gap={2}>\n <Skeleton inlineSize=\"9rem\" shape=\"text\" />\n <Skeleton inlineSize=\"5rem\" shape=\"text\" />\n </Stack>\n </Inline>\n</SkeletonRegion>;\n",
|
|
337
337
|
"verdict": "excerpt"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"id": "content",
|
|
341
|
-
"title": "Content the
|
|
342
|
-
"note": "A narrow column, a right-to-left paragraph
|
|
341
|
+
"title": "Content the component does not control",
|
|
342
|
+
"note": "A narrow column, a right-to-left paragraph, and a heading whose placeholder is as tall as the heading without being told what a heading is.",
|
|
343
343
|
"language": "tsx",
|
|
344
|
-
"source": "<Heading level={2}>\n
|
|
345
|
-
"verdict": "
|
|
344
|
+
"source": "import { Skeleton, SkeletonText } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading } from '@slotted/react/typography';\n\nexport default function SkeletonContent() {\n return (\n <Stack gap={6}>\n <Heading level={2} size=\"2xl\">\n <Skeleton inlineSize=\"60%\" />\n </Heading>\n <Heading level={2} size=\"md\">\n <Skeleton inlineSize=\"45%\" />\n </Heading>\n <div dir=\"rtl\">\n <SkeletonText lines={3} />\n </div>\n </Stack>\n );\n}\n",
|
|
345
|
+
"verdict": "example"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
"id": "accessibility",
|
|
@@ -351,6 +351,38 @@
|
|
|
351
351
|
"language": "tsx",
|
|
352
352
|
"source": "<SkeletonRegion messages={{ label: 'Loading invoices' }} loadedLabel=\"Invoices loaded\">\n <SkeletonText />\n</SkeletonRegion>;\n\n// A region the reader never waits on says nothing at all.\n<SkeletonRegion live=\"off\">\n <Skeleton shape=\"circle\" />\n</SkeletonRegion>;\n",
|
|
353
353
|
"verdict": "excerpt"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"id": "basic",
|
|
357
|
+
"title": "basic.tsx",
|
|
358
|
+
"note": null,
|
|
359
|
+
"language": "tsx",
|
|
360
|
+
"source": "import { Inline } from '@slotted/react/inline';\nimport { Skeleton, SkeletonRegion } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function SkeletonBasic() {\n return (\n <SkeletonRegion messages={{ label: 'Loading the dock supervisor' }}>\n <Inline align=\"center\" gap={4}>\n <Skeleton shape=\"circle\" size=\"lg\" />\n <Stack gap={2}>\n <Skeleton inlineSize=\"9rem\" />\n <Skeleton inlineSize=\"6rem\" />\n </Stack>\n </Inline>\n </SkeletonRegion>\n );\n}\n",
|
|
361
|
+
"verdict": "example"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"id": "cover",
|
|
365
|
+
"title": "cover.tsx",
|
|
366
|
+
"note": null,
|
|
367
|
+
"language": "tsx",
|
|
368
|
+
"source": "import { useEffect, useState } from 'react';\n\nimport { Avatar } from '@slotted/react/avatar';\nimport { Badge } from '@slotted/react/badge';\nimport { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport { Skeleton, SkeletonRegion } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function SkeletonCover() {\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (!loading) return;\n const timer = setTimeout(() => setLoading(false), 1500);\n return () => clearTimeout(timer);\n }, [loading]);\n\n return (\n <Stack gap={4}>\n <Inline>\n <Button onClick={() => setLoading(true)} size=\"sm\" variant=\"outline\">\n Replay loading\n </Button>\n </Inline>\n <SkeletonRegion loading={loading} messages={{ label: 'Loading the invoice' }}>\n <Inline align=\"center\" gap={4}>\n <Skeleton shape=\"circle\" size=\"lg\">\n <Avatar name=\"Tomás Rivera\" size=\"lg\" />\n </Skeleton>\n <Stack gap={1}>\n <Skeleton>\n <Text>Tomás Rivera</Text>\n </Skeleton>\n <Skeleton>\n <Text size=\"sm\" tone=\"muted\">\n Invoice 4821, due 30 Nov\n </Text>\n </Skeleton>\n </Stack>\n <Skeleton>\n <Badge tone=\"success\">Paid in full</Badge>\n </Skeleton>\n </Inline>\n </SkeletonRegion>\n </Stack>\n );\n}\n",
|
|
369
|
+
"verdict": "example"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"id": "partial",
|
|
373
|
+
"title": "partial.tsx",
|
|
374
|
+
"note": null,
|
|
375
|
+
"language": "tsx",
|
|
376
|
+
"source": "import { Badge } from '@slotted/react/badge';\nimport { Inline } from '@slotted/react/inline';\nimport { Skeleton, SkeletonRegion, SkeletonText } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading } from '@slotted/react/typography';\n\nexport default function SkeletonPartial() {\n return (\n <SkeletonRegion messages={{ label: 'Loading shipment SO-10482' }}>\n <Stack gap={3}>\n <Heading level={2} size=\"md\">\n Shipment SO-10482\n </Heading>\n <Inline align=\"center\" gap={3}>\n <Skeleton loading={false}>\n <Badge tone=\"info\">In transit</Badge>\n </Skeleton>\n <Skeleton inlineSize=\"8rem\" />\n </Inline>\n <SkeletonText lines={2} />\n </Stack>\n </SkeletonRegion>\n );\n}\n",
|
|
377
|
+
"verdict": "example"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"id": "silent",
|
|
381
|
+
"title": "silent.tsx",
|
|
382
|
+
"note": null,
|
|
383
|
+
"language": "tsx",
|
|
384
|
+
"source": "import { useEffect, useState } from 'react';\n\nimport { Avatar } from '@slotted/react/avatar';\nimport { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport { Skeleton, SkeletonRegion } from '@slotted/react/skeleton';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading } from '@slotted/react/typography';\n\nconst ACTIVE = ['Maria Chen', 'Tomás Rivera', 'Priya Nair', 'Jonas Weber'];\n\nexport default function SkeletonSilent() {\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n if (!loading) return;\n const timer = setTimeout(() => setLoading(false), 1500);\n return () => clearTimeout(timer);\n }, [loading]);\n\n return (\n <Stack gap={4}>\n <Inline align=\"center\" gap={3}>\n <Heading level={2} size=\"md\">\n Recently active\n </Heading>\n <Button onClick={() => setLoading(true)} size=\"sm\" variant=\"outline\">\n Replay loading\n </Button>\n </Inline>\n <SkeletonRegion live=\"off\" loading={loading}>\n <Inline gap={2}>\n {ACTIVE.map((name) =>\n loading ? (\n <Skeleton key={name} shape=\"circle\" size=\"md\" />\n ) : (\n <Avatar key={name} name={name} size=\"md\" />\n ),\n )}\n </Inline>\n </SkeletonRegion>\n </Stack>\n );\n}\n",
|
|
385
|
+
"verdict": "example"
|
|
354
386
|
}
|
|
355
387
|
]
|
|
356
388
|
}
|