@slotted/react 0.1.0-beta.46 → 0.1.0-beta.48
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/{action-bar-BSUuY6pJ.js → action-bar-CZAowvra.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/action-sheet-D5XBXFe2.js +359 -0
- package/dist/action-sheet.js +1 -1
- package/dist/{calendar-BO5teotM.js → calendar-MztDEqAz.js} +13 -12
- package/dist/calendar.js +1 -1
- package/dist/cascader-Bf0CzPu-.js +1305 -0
- package/dist/cascader.js +1 -1
- package/dist/{chart-sewqbbm-.js → chart-C6NdybXy.js} +6 -6
- package/dist/chart.js +1 -1
- package/dist/{checkbox-D8HZG0be.js → checkbox-Bv1b6qh_.js} +3 -3
- package/dist/{checkbox-group-5zuE2Kd1.js → checkbox-group-BnxPixJG.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{color-picker-fiLSUBjj.js → color-picker-B66gG2WU.js} +12 -11
- package/dist/color-picker.js +1 -1
- package/dist/column-manager-BtzX-KIk.js +589 -0
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-DMtXrMYE.js → combobox-BpBFn5wM.js} +2 -2
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-DwjkexvN.js → command-palette-Bk94SEuy.js} +2 -1
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-CRRp-PhP.js → context-menu-DoH2mtbN.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-Cxr8MT75.js → currency-field-D7LKgNcS.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-CBqqgiKr.js → dashboard-grid-C3XZRM2i.js} +8 -8
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-BlElqHOU.js → data-grid-udreCRZy.js} +1352 -1355
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-5zvM-DUz.js → data-list-BMIQwNKA.js} +13 -13
- package/dist/data-list.js +1 -1
- package/dist/date-field-BTbbf38h.js +313 -0
- package/dist/date-field.js +1 -1
- package/dist/date-picker-ClZMRCJ1.js +347 -0
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-DzuuvudX.js → date-range-picker-DN2It6LA.js} +75 -71
- package/dist/date-range-picker.js +1 -1
- package/dist/datetime-field-DmgZDYhb.js +438 -0
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-BUhSr8yp.js → datetime-picker-vVXAefqf.js} +158 -154
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-DXllehEN.js → datetime-range-picker-B4GYh_jU.js} +149 -145
- package/dist/datetime-range-picker.js +1 -1
- package/dist/dialog-lceAPWMr.js +591 -0
- package/dist/dialog.js +1 -1
- package/dist/docs/action-sheet.json +1 -3
- package/dist/docs/action-sheet.md +1 -1
- package/dist/docs/calendar.json +1 -1
- package/dist/docs/calendar.md +1 -1
- package/dist/docs/cascader.json +73 -2
- package/dist/docs/cascader.md +10 -1
- package/dist/docs/collapsible.examples.md +1 -1
- package/dist/docs/collapsible.json +2 -2
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/color-picker.json +1 -1
- package/dist/docs/column-manager.json +6 -4
- package/dist/docs/column-manager.md +3 -3
- package/dist/docs/combobox.json +1 -0
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/data-grid.json +2 -1
- package/dist/docs/data-grid.md +1 -1
- package/dist/docs/date-picker.json +10 -2
- package/dist/docs/date-picker.md +3 -2
- package/dist/docs/date-range-picker.json +10 -1
- package/dist/docs/date-range-picker.md +3 -2
- package/dist/docs/datetime-picker.json +9 -1
- package/dist/docs/datetime-picker.md +2 -1
- package/dist/docs/datetime-range-picker.json +10 -1
- package/dist/docs/datetime-range-picker.md +3 -2
- package/dist/docs/dialog.json +56 -8
- package/dist/docs/dialog.md +3 -0
- package/dist/docs/dialog.props.md +6 -2
- package/dist/docs/drawer.examples.md +108 -1
- package/dist/docs/drawer.json +70 -13
- package/dist/docs/drawer.md +31 -21
- package/dist/docs/entity-picker.examples.md +1 -1
- package/dist/docs/entity-picker.json +112 -4
- package/dist/docs/entity-picker.md +16 -2
- package/dist/docs/field.json +1 -1
- package/dist/docs/field.md +1 -1
- package/dist/docs/filter-bar.examples.md +215 -0
- package/dist/docs/filter-bar.json +232 -6
- package/dist/docs/filter-bar.md +32 -4
- package/dist/docs/guidelines/index.md +1 -0
- package/dist/docs/guidelines/shell-composition.md +13 -0
- package/dist/docs/list-item.examples.md +50 -0
- package/dist/docs/list-item.json +20 -3
- package/dist/docs/list-item.md +4 -3
- package/dist/docs/list.examples.md +93 -0
- package/dist/docs/list.json +41 -1
- package/dist/docs/list.md +4 -0
- package/dist/docs/menu.examples.md +39 -0
- package/dist/docs/menu.json +25 -12
- package/dist/docs/menu.md +3 -2
- package/dist/docs/multi-select.json +89 -3
- package/dist/docs/multi-select.md +14 -2
- package/dist/docs/popover.json +31 -14
- package/dist/docs/popover.md +5 -2
- package/dist/docs/saved-views.json +3 -3
- package/dist/docs/saved-views.md +1 -1
- package/dist/docs/select.examples.md +51 -0
- package/dist/docs/select.json +37 -15
- package/dist/docs/select.md +5 -3
- package/dist/docs/table.json +2 -1
- package/dist/docs/table.md +1 -1
- package/dist/docs/time-picker.json +9 -1
- package/dist/docs/time-picker.md +2 -1
- package/dist/docs/time-range-picker.json +10 -1
- package/dist/docs/time-range-picker.md +3 -2
- package/dist/docs/toast.examples.md +57 -1
- package/dist/docs/toast.json +15 -6
- package/dist/docs/toast.md +3 -3
- package/dist/drawer-Bx08Xyos.js +923 -0
- package/dist/drawer.js +2 -2
- package/dist/entity-picker-DFQxelpt.js +1499 -0
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-Bxx8eoGK.js → event-calendar-BkGLOaea.js} +527 -527
- package/dist/event-calendar.js +1 -1
- package/dist/{field-N0TiMbaI.js → field-C85R0vVs.js} +6 -6
- package/dist/{field-group-BrnE6FvP.js → field-group-QR1buowc.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/filter-bar-CQ0CjZCJ.js +1881 -0
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-D9-rb9ts.js → hover-card-DCgVwHxC.js} +25 -25
- package/dist/hover-card.js +1 -1
- package/dist/{import-export-center-BpGga5jr.js → import-export-center-DycVct7z.js} +2 -2
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +132 -132
- package/dist/{list-CvwJXjA0.js → list-DBKKu3Ql.js} +26 -19
- package/dist/{list-item-DHKlkY65.js → list-item-B4W0cAQZ.js} +18 -9
- package/dist/list-item.js +2 -2
- package/dist/list.js +1 -1
- package/dist/{listbox-3XVusnCr.js → listbox-CHa-ekIV.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-BMda5ino.js → markdown-QdcPI0nq.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/{media-viewer-C_cbuAq-.js → media-viewer-_hsM_dLR.js} +1 -1
- package/dist/media-viewer.js +1 -1
- package/dist/menu-parts-KmGR46Np.js +940 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-CVoAFc6r.js → menubar-3ij92kyN.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/multi-select-kY7LFJqS.js +1489 -0
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-Cp33JMGB.js → number-field-D65B-uRs.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-CEP60HOi.js → otp-input-DN8jHJnY.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{picker-frame-C3Fhjfaj.js → picker-frame--0zIvoSA.js} +1 -1
- package/dist/{picker-range-head-B4tsDOc5.js → picker-range-head-BLoTsTRu.js} +13 -5
- package/dist/popover-CUsTCP0m.js +632 -0
- package/dist/popover.js +2 -2
- package/dist/{prompt-composer-CwjvdgBR.js → prompt-composer-i5y3qaDA.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-D6bOV_ea.js → radio-group-DLr2C-XS.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-D8BvDdjM.js → rating-Bb5srSz4.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/saved-views-w9GpSo76.js +526 -0
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-BLcGhQ4J.js → segmented-control-Cpx_RYQ6.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/select-CAUuknw3.js +1160 -0
- package/dist/select.js +1 -1
- package/dist/{slider-COLWTaxi.js → slider-CAd6tQlw.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-Czr2D3HP.js → split-button-CNNYK9zU.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles/action-bar.css +3 -1
- package/dist/styles/action-sheet.css +4 -2
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/cascader.css +4 -2
- package/dist/styles/chart.css +3 -1
- package/dist/styles/checkbox-group.css +3 -1
- package/dist/styles/checkbox.css +3 -1
- package/dist/styles/collapsible.css +1 -1
- package/dist/styles/color-picker.css +5 -3
- package/dist/styles/column-manager.css +6 -4
- package/dist/styles/combobox.css +4 -2
- package/dist/styles/command-palette.css +8 -4
- package/dist/styles/context-menu.css +3 -1
- package/dist/styles/currency-field.css +3 -1
- package/dist/styles/dashboard-grid.css +4 -2
- package/dist/styles/data-grid.css +15 -13
- package/dist/styles/data-list.css +6 -4
- package/dist/styles/date-field.css +4 -2
- package/dist/styles/date-picker.css +6 -4
- package/dist/styles/date-range-picker.css +7 -5
- package/dist/styles/datetime-field.css +4 -2
- package/dist/styles/datetime-picker.css +7 -5
- package/dist/styles/datetime-range-picker.css +7 -5
- package/dist/styles/dialog.css +7 -1
- package/dist/styles/drawer.css +3 -1
- package/dist/styles/entity-picker.css +8 -6
- package/dist/styles/event-calendar.css +5 -3
- package/dist/styles/field-group.css +3 -1
- package/dist/styles/field.css +3 -1
- package/dist/styles/filter-bar.css +18 -16
- package/dist/styles/hover-card.css +3 -1
- package/dist/styles/import-export-center.css +14 -12
- package/dist/styles/index.css +32 -30
- package/dist/styles/list-item.css +2 -2
- package/dist/styles/list.css +1 -1
- package/dist/styles/listbox.css +3 -1
- package/dist/styles/markdown.css +3 -1
- package/dist/styles/media-viewer.css +7 -1
- package/dist/styles/menu.css +3 -1
- package/dist/styles/menubar.css +3 -1
- package/dist/styles/multi-select.css +7 -5
- package/dist/styles/number-field.css +3 -1
- package/dist/styles/otp-input.css +3 -1
- package/dist/styles/popover.css +3 -1
- package/dist/styles/prompt-composer.css +3 -1
- package/dist/styles/radio-group.css +3 -1
- package/dist/styles/rating.css +3 -1
- package/dist/styles/saved-views.css +7 -3
- package/dist/styles/segmented-control.css +3 -1
- package/dist/styles/select.css +7 -5
- package/dist/styles/slider.css +3 -1
- package/dist/styles/split-button.css +3 -1
- package/dist/styles/switch.css +3 -1
- package/dist/styles/table.css +13 -11
- package/dist/styles/tags-input.css +3 -1
- package/dist/styles/text-field.css +3 -1
- package/dist/styles/textarea.css +3 -1
- package/dist/styles/time-field.css +4 -2
- package/dist/styles/time-picker.css +5 -3
- package/dist/styles/time-range-picker.css +6 -4
- package/dist/styles/toast.css +1 -1
- package/dist/styles/toggle-group.css +3 -1
- package/dist/styles/toolbar.css +3 -1
- package/dist/styles/transfer.css +3 -1
- package/dist/styles/tree.css +1 -1
- package/dist/styles/upload.css +4 -2
- package/dist/styles.css +1 -1
- package/dist/{switch-CEbZkLlX.js → switch-DQF6Qg4y.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-BU7XsbQX.js → table-BHTF9AZK.js} +302 -290
- package/dist/table.js +1 -1
- package/dist/{tags-input-BdjkB19P.js → tags-input-Dp_9HJjh.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-QJnu-rln.js → text-field-CEBNOMlK.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DsrXI3xB.js → textarea-B9hyx3D3.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/time-field-B8KPjZBf.js +380 -0
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-WmeCIySv.js → time-picker-aw-WIlPe.js} +35 -31
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-CwSbsJPt.js → time-range-picker-BN5speYJ.js} +106 -102
- package/dist/time-range-picker.js +1 -1
- package/dist/toast-D7G0-9nW.js +467 -0
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-SP_W-yeh.js → toggle-group-K1U5TQ5h.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-BniP4i1C.js → toolbar-B6ijf51c.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{transfer-DX6umI2M.js → transfer-A6dqhEGq.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +6 -3
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/cascader/cascader-defaults.d.ts.map +1 -1
- package/dist/types/cascader/cascader-sheet-panel.d.ts +29 -0
- package/dist/types/cascader/cascader-sheet-panel.d.ts.map +1 -0
- package/dist/types/cascader/cascader.d.ts +1 -0
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/cascader/cascader.types.d.ts +8 -0
- package/dist/types/cascader/cascader.types.d.ts.map +1 -1
- package/dist/types/cascader/index.d.ts +1 -1
- package/dist/types/cascader/index.d.ts.map +1 -1
- package/dist/types/cascader/use-cascader-sheet.d.ts +25 -0
- package/dist/types/cascader/use-cascader-sheet.d.ts.map +1 -0
- package/dist/types/color-picker/color-picker.d.ts +1 -1
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.types.d.ts +5 -2
- package/dist/types/column-manager/column-manager.types.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
- package/dist/types/date-field/date-field.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker-defaults.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.types.d.ts +5 -0
- 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/use-date-picker.d.ts +2 -1
- package/dist/types/date-picker/use-date-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker-defaults.d.ts.map +1 -1
- 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 +5 -0
- package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
- package/dist/types/date-range-picker/index.d.ts +1 -1
- package/dist/types/date-range-picker/index.d.ts.map +1 -1
- package/dist/types/date-range-picker/use-date-range-picker.d.ts +1 -0
- package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-field/datetime-field.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.types.d.ts +5 -0
- package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
- package/dist/types/datetime-picker/index.d.ts +1 -1
- package/dist/types/datetime-picker/index.d.ts.map +1 -1
- package/dist/types/datetime-picker/use-datetime-picker.d.ts +1 -0
- package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
- 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 +5 -0
- package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/index.d.ts +1 -1
- package/dist/types/datetime-range-picker/index.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +1 -0
- package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -1
- package/dist/types/dialog/dialog-defaults.d.ts.map +1 -1
- package/dist/types/dialog/dialog-parts.d.ts +1 -1
- package/dist/types/dialog/dialog-parts.d.ts.map +1 -1
- package/dist/types/dialog/dialog-sheet-footer.d.ts +7 -0
- package/dist/types/dialog/dialog-sheet-footer.d.ts.map +1 -0
- package/dist/types/dialog/dialog.d.ts +1 -0
- package/dist/types/dialog/dialog.d.ts.map +1 -1
- package/dist/types/dialog/dialog.types.d.ts +25 -0
- package/dist/types/dialog/dialog.types.d.ts.map +1 -1
- package/dist/types/dialog/index.d.ts +1 -1
- package/dist/types/dialog/index.d.ts.map +1 -1
- package/dist/types/dialog/use-dialog-sheet.d.ts +8 -0
- package/dist/types/dialog/use-dialog-sheet.d.ts.map +1 -0
- package/dist/types/drawer/drawer-parts.d.ts +10 -2
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer.d.ts +2 -1
- package/dist/types/drawer/drawer.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +21 -0
- package/dist/types/drawer/drawer.types.d.ts.map +1 -1
- package/dist/types/drawer/index.d.ts +2 -2
- package/dist/types/drawer/index.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-defaults.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-sheet-panel.d.ts +17 -0
- package/dist/types/entity-picker/entity-picker-sheet-panel.d.ts.map +1 -0
- package/dist/types/entity-picker/entity-picker.d.ts +3 -0
- package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.types.d.ts +8 -0
- package/dist/types/entity-picker/entity-picker.types.d.ts.map +1 -1
- package/dist/types/entity-picker/index.d.ts +1 -1
- package/dist/types/entity-picker/index.d.ts.map +1 -1
- package/dist/types/entity-picker/sheet-keys.d.ts +9 -0
- package/dist/types/entity-picker/sheet-keys.d.ts.map +1 -0
- package/dist/types/entity-picker/use-entity-picker-sheet.d.ts +16 -0
- package/dist/types/entity-picker/use-entity-picker-sheet.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-editor.d.ts +21 -0
- package/dist/types/filter-bar/filter-bar-sheet-editor.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-list.d.ts +19 -0
- package/dist/types/filter-bar/filter-bar-sheet-list.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-notice.d.ts +17 -0
- package/dist/types/filter-bar/filter-bar-sheet-notice.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-operands.d.ts +22 -0
- package/dist/types/filter-bar/filter-bar-sheet-operands.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-option.d.ts +12 -0
- package/dist/types/filter-bar/filter-bar-sheet-option.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-row.d.ts +15 -0
- package/dist/types/filter-bar/filter-bar-sheet-row.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet-words.d.ts +11 -0
- package/dist/types/filter-bar/filter-bar-sheet-words.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar-sheet.d.ts +36 -0
- package/dist/types/filter-bar/filter-bar-sheet.d.ts.map +1 -0
- package/dist/types/filter-bar/filter-bar.d.ts +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.types.d.ts +59 -1
- package/dist/types/filter-bar/filter-bar.types.d.ts.map +1 -1
- package/dist/types/filter-bar/index.d.ts +1 -1
- package/dist/types/filter-bar/index.d.ts.map +1 -1
- package/dist/types/filter-bar/use-sheet-draft.d.ts +12 -0
- package/dist/types/filter-bar/use-sheet-draft.d.ts.map +1 -0
- package/dist/types/list/index.d.ts +1 -1
- package/dist/types/list/index.d.ts.map +1 -1
- package/dist/types/list/list-defaults.d.ts.map +1 -1
- package/dist/types/list/list.d.ts +1 -1
- package/dist/types/list/list.d.ts.map +1 -1
- package/dist/types/list/list.types.d.ts +28 -0
- package/dist/types/list/list.types.d.ts.map +1 -1
- package/dist/types/list-item/index.d.ts +1 -1
- package/dist/types/list-item/index.d.ts.map +1 -1
- package/dist/types/list-item/list-item-parts.d.ts +7 -0
- package/dist/types/list-item/list-item-parts.d.ts.map +1 -1
- package/dist/types/list-item/list-item.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/menu/menu.d.ts +1 -0
- package/dist/types/menu/menu.d.ts.map +1 -1
- package/dist/types/menu/menu.types.d.ts +6 -2
- package/dist/types/menu/menu.types.d.ts.map +1 -1
- package/dist/types/menu/use-menu-sheet.d.ts +7 -5
- package/dist/types/menu/use-menu-sheet.d.ts.map +1 -1
- package/dist/types/multi-select/index.d.ts +1 -1
- package/dist/types/multi-select/index.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-chips.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-defaults.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-items.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-sheet-panel.d.ts +21 -0
- package/dist/types/multi-select/multi-select-sheet-panel.d.ts.map +1 -0
- package/dist/types/multi-select/multi-select.d.ts +5 -0
- package/dist/types/multi-select/multi-select.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select.types.d.ts +7 -0
- package/dist/types/multi-select/multi-select.types.d.ts.map +1 -1
- package/dist/types/multi-select/use-multi-select-sheet.d.ts +16 -0
- package/dist/types/multi-select/use-multi-select-sheet.d.ts.map +1 -0
- package/dist/types/picker-panel/picker-layer.d.ts +1 -0
- package/dist/types/picker-panel/picker-layer.d.ts.map +1 -1
- package/dist/types/picker-panel/use-picker-layer.d.ts +2 -0
- package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
- package/dist/types/popover/index.d.ts +2 -2
- package/dist/types/popover/index.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts +4 -2
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/popover/popover.d.ts +1 -0
- package/dist/types/popover/popover.d.ts.map +1 -1
- package/dist/types/popover/popover.types.d.ts +10 -0
- package/dist/types/popover/popover.types.d.ts.map +1 -1
- package/dist/types/saved-views/saved-views-name-field.d.ts +11 -0
- package/dist/types/saved-views/saved-views-name-field.d.ts.map +1 -0
- package/dist/types/saved-views/saved-views-name-sheet.d.ts +23 -0
- package/dist/types/saved-views/saved-views-name-sheet.d.ts.map +1 -0
- package/dist/types/saved-views/saved-views.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/select/select-sheet-panel.d.ts +21 -0
- package/dist/types/select/select-sheet-panel.d.ts.map +1 -0
- package/dist/types/select/select.d.ts +2 -1
- package/dist/types/select/select.d.ts.map +1 -1
- package/dist/types/select/select.types.d.ts +3 -3
- package/dist/types/select/use-select-sheet.d.ts +7 -3
- package/dist/types/select/use-select-sheet.d.ts.map +1 -1
- package/dist/types/sheet/use-sheet.d.ts +22 -0
- package/dist/types/sheet/use-sheet.d.ts.map +1 -0
- package/dist/types/table/table-filter.d.ts.map +1 -1
- package/dist/types/time-field/time-field.d.ts.map +1 -1
- package/dist/types/time-picker/index.d.ts +1 -1
- package/dist/types/time-picker/index.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker-defaults.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.types.d.ts +5 -0
- package/dist/types/time-picker/time-picker.types.d.ts.map +1 -1
- package/dist/types/time-picker/use-time-picker.d.ts +1 -0
- package/dist/types/time-picker/use-time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/index.d.ts +1 -1
- package/dist/types/time-range-picker/index.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker-defaults.d.ts.map +1 -1
- 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 +5 -0
- package/dist/types/time-range-picker/time-range-picker.types.d.ts.map +1 -1
- package/dist/types/time-range-picker/use-time-range-picker.d.ts +1 -0
- package/dist/types/time-range-picker/use-time-range-picker.d.ts.map +1 -1
- package/dist/types/toast/toast-parts.d.ts.map +1 -1
- package/dist/types/toast/toast.d.ts.map +1 -1
- package/dist/types/toast/toast.types.d.ts +6 -2
- package/dist/types/toast/toast.types.d.ts.map +1 -1
- package/dist/types/toast/use-toast-keyboard-inset.d.ts +7 -0
- package/dist/types/toast/use-toast-keyboard-inset.d.ts.map +1 -0
- package/dist/types/toast/use-toast-reach.d.ts +28 -0
- package/dist/types/toast/use-toast-reach.d.ts.map +1 -0
- package/dist/types/toast/use-toast-swipe.d.ts +6 -0
- package/dist/types/toast/use-toast-swipe.d.ts.map +1 -0
- package/dist/{upload-BtD1nLHa.js → upload-BUNMpgbU.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{use-date-picker-CwH791Jm.js → use-date-picker-CXtGSr7_.js} +5 -2
- package/dist/{use-picker-draft-BnLS4lDY.js → use-picker-draft-DBzDfMwd.js} +110 -109
- package/dist/use-sheet-DFy3znDR.js +44 -0
- package/package.json +13 -8
- package/dist/action-sheet-q1UXXruJ.js +0 -360
- package/dist/cascader-BbhADVGt.js +0 -1160
- package/dist/column-manager-Cc72e1j-.js +0 -586
- package/dist/date-field-CjlOWVRA.js +0 -299
- package/dist/date-picker-BoIHK8_U.js +0 -346
- package/dist/datetime-field-PSEOgzfN.js +0 -424
- package/dist/dialog-CjOBjHrL.js +0 -537
- package/dist/drawer-JP3p-QZB.js +0 -879
- package/dist/entity-picker-BWpuo-mp.js +0 -1292
- package/dist/filter-bar-nQH58RVl.js +0 -1358
- package/dist/menu-parts-DXs5YuUA.js +0 -932
- package/dist/multi-select-IpsZvoQ2.js +0 -1259
- package/dist/popover-DED1MTi-.js +0 -615
- package/dist/saved-views-D-CP7JIE.js +0 -459
- package/dist/select-Dbc3ng0M.js +0 -1124
- package/dist/time-field-DlZdMsNw.js +0 -366
- package/dist/toast-C3xLEFDE.js +0 -474
package/dist/docs/drawer.json
CHANGED
|
@@ -68,7 +68,8 @@
|
|
|
68
68
|
"minExtent": 0.2,
|
|
69
69
|
"maxExtent": 1,
|
|
70
70
|
"loading": false,
|
|
71
|
-
"scrimFrom": 0
|
|
71
|
+
"scrimFrom": 0,
|
|
72
|
+
"dismissible": true
|
|
72
73
|
},
|
|
73
74
|
"fixed": {
|
|
74
75
|
"modalUnderInline": false
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"line",
|
|
102
103
|
"grip",
|
|
103
104
|
"header",
|
|
105
|
+
"back",
|
|
104
106
|
"title",
|
|
105
107
|
"actions",
|
|
106
108
|
"description",
|
|
@@ -113,7 +115,7 @@
|
|
|
113
115
|
"docs": {
|
|
114
116
|
"drawer": {
|
|
115
117
|
"imports": {
|
|
116
|
-
"source": "import { Drawer, DrawerActions, DrawerBody, DrawerClose, DrawerDefaultsProvider, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerResizer, DrawerTitle, DrawerTrigger } from '@slotted/react';"
|
|
118
|
+
"source": "import { Drawer, DrawerActions, DrawerBack, DrawerBody, DrawerClose, DrawerDefaultsProvider, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerResizer, DrawerTitle, DrawerTrigger } from '@slotted/react';"
|
|
117
119
|
},
|
|
118
120
|
"anatomy": [
|
|
119
121
|
{
|
|
@@ -130,75 +132,101 @@
|
|
|
130
132
|
},
|
|
131
133
|
{
|
|
132
134
|
"part": "backdrop",
|
|
135
|
+
"parent": "root",
|
|
133
136
|
"element": "div",
|
|
134
137
|
"required": false,
|
|
135
|
-
"purpose": "The scrim behind the panel, painted from --slotted-drawer-scrim under mode=\"overlay\" whether the drawer is modal or not, and
|
|
138
|
+
"purpose": "The scrim behind the panel, painted from --slotted-drawer-scrim under mode=\"overlay\" whether the drawer is modal or not, and, on a bottom sheet with scrimFrom, none up to the highest stop under scrimFrom and whole at it, growing with the sheet’s position between them. It takes a press like the page would, so a press on it is a press outside the drawer. Set --slotted-drawer-scrim: transparent to paint none."
|
|
136
139
|
},
|
|
137
140
|
{
|
|
138
141
|
"part": "panel",
|
|
142
|
+
"parent": "root",
|
|
139
143
|
"element": "div, or the element render returns",
|
|
140
144
|
"required": true,
|
|
141
145
|
"purpose": "The surface, aligned to side. Under mode=\"overlay\" it carries role=\"dialog\", and aria-modal=\"true\" while modal; under mode=\"inline\" it has no role, so use render to make it a nav or an aside. Its rows are the header, the body and the footer, and only the body scrolls."
|
|
142
146
|
},
|
|
143
147
|
{
|
|
144
148
|
"part": "resizer",
|
|
149
|
+
"parent": "panel",
|
|
145
150
|
"element": "div with role=\"separator\"",
|
|
146
151
|
"required": false,
|
|
147
152
|
"purpose": "The separator the reader drags, or focuses and moves with the keyboard, to resize the panel. Rendering it is what makes the drawer resizable. It carries role=\"separator\", tabindex=\"0\", aria-orientation, aria-valuenow, aria-valuemin and aria-valuemax as percentages, aria-controls naming the panel and aria-labelledby naming the title. On start and end it sits on the panel’s inner edge; on top and bottom it is the grip above the header."
|
|
148
153
|
},
|
|
149
154
|
{
|
|
150
155
|
"part": "line",
|
|
156
|
+
"parent": "resizer",
|
|
151
157
|
"element": "span",
|
|
152
158
|
"required": true,
|
|
153
159
|
"purpose": "A hairline on each side of the grip on start and end, which runs the whole edge under the pointer, under focus and during a drag. It is not drawn on top and bottom."
|
|
154
160
|
},
|
|
155
161
|
{
|
|
156
162
|
"part": "grip",
|
|
163
|
+
"parent": "resizer",
|
|
157
164
|
"element": "span[aria-hidden]",
|
|
158
165
|
"required": true,
|
|
159
166
|
"purpose": "The mark the pointer aims at: a dot grid on start and end, and a pill above the header on top and bottom. It is hidden from assistive technology, because the separator around it is already named and valued."
|
|
160
167
|
},
|
|
161
168
|
{
|
|
162
169
|
"part": "header",
|
|
170
|
+
"parent": "panel",
|
|
163
171
|
"element": "header, or the element render returns",
|
|
164
172
|
"required": false,
|
|
165
|
-
"purpose": "Lays out the title and the description in
|
|
173
|
+
"purpose": "Lays out the way back in a leading column when it is rendered, the title and the description in the next, the actions after them when they are rendered, and the close button in the last, so a title that wraps grows the row instead of moving the buttons."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"part": "back",
|
|
177
|
+
"parent": "header",
|
|
178
|
+
"element": "button, or the element render returns",
|
|
179
|
+
"required": false,
|
|
180
|
+
"purpose": "The way back before the title, for a drawer opened over another one, such as the list of choices for one row of a sheet. It stands at the start of the title’s line, centered on the title’s capitals, with the close button’s box and target, and the header keeps the height it has without it. A press closes the drawer with the reason back, unless your onClick calls preventDefault(). It is named by the back message, and it draws a chevron that mirrors in a right-to-left document unless you pass children."
|
|
166
181
|
},
|
|
167
182
|
{
|
|
168
183
|
"part": "actions",
|
|
184
|
+
"parent": "header",
|
|
169
185
|
"element": "div, or the element render returns",
|
|
170
186
|
"required": false,
|
|
171
187
|
"purpose": "One or two actions beside the title, such as icon buttons for history and a new conversation, centered on the title’s first line between the title and the close button. Its buttons take the small size, drawn at the close button’s box; a button that states a size keeps it."
|
|
172
188
|
},
|
|
173
189
|
{
|
|
174
190
|
"part": "title",
|
|
191
|
+
"parent": "header",
|
|
175
192
|
"element": "h2, or the element render returns",
|
|
176
193
|
"required": false,
|
|
177
194
|
"purpose": "The visible name of the drawer. The panel and the separator point at it with aria-labelledby, and only while it is rendered."
|
|
178
195
|
},
|
|
179
196
|
{
|
|
180
197
|
"part": "description",
|
|
198
|
+
"parent": "header",
|
|
181
199
|
"element": "p, or the element render returns",
|
|
182
200
|
"required": false,
|
|
183
201
|
"purpose": "The sentence under the title. The panel points at it with aria-describedby while it is rendered."
|
|
184
202
|
},
|
|
185
203
|
{
|
|
186
204
|
"part": "body",
|
|
205
|
+
"parent": "panel",
|
|
187
206
|
"element": "div, or the element render returns",
|
|
188
207
|
"required": false,
|
|
189
208
|
"purpose": "The row that scrolls, and the row that carries aria-busy while loading is set. A wheel that reaches its end does not scroll the page behind. inset=\"none\" removes its padding, for content that brings its own, such as a list that runs to the panel’s edges."
|
|
190
209
|
},
|
|
191
210
|
{
|
|
192
211
|
"part": "footer",
|
|
212
|
+
"parent": "panel",
|
|
193
213
|
"element": "footer, or the element render returns",
|
|
194
214
|
"required": false,
|
|
195
|
-
"purpose": "The actions, in a wrapping row aligned to the end, on a sunken surface with a rule above it.
|
|
215
|
+
"purpose": "The actions, in a wrapping row aligned to the end, on a sunken surface with a rule above it."
|
|
196
216
|
},
|
|
197
217
|
{
|
|
198
218
|
"part": "close",
|
|
219
|
+
"parent": "header",
|
|
199
220
|
"element": "button",
|
|
200
221
|
"required": false,
|
|
201
222
|
"purpose": "The ✕ button. Its target is at least --slotted-target-min in both directions. It closes the drawer with the reason dismiss, and its value is the result of that close. An overlay bottom sheet does not draw it in the header: the grip, the scrim and the footer close it."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"part": "close",
|
|
226
|
+
"parent": "footer",
|
|
227
|
+
"element": "button",
|
|
228
|
+
"required": false,
|
|
229
|
+
"purpose": "The full-width accent Close button of the footer an overlay bottom sheet draws when none is written. It closes the drawer with the reason dismiss."
|
|
202
230
|
}
|
|
203
231
|
],
|
|
204
232
|
"api": [
|
|
@@ -286,6 +314,20 @@
|
|
|
286
314
|
"appliesTo": "Drawer, DrawerDefaultsProvider",
|
|
287
315
|
"description": "Whether the page behind is inert, its scroll is locked and focus is contained in the panel, and whether the panel carries aria-modal. The scrim is painted either way. Always false under mode=\"inline\"."
|
|
288
316
|
},
|
|
317
|
+
{
|
|
318
|
+
"name": "dismissible",
|
|
319
|
+
"type": "boolean",
|
|
320
|
+
"defaultValue": "true",
|
|
321
|
+
"appliesTo": "Drawer",
|
|
322
|
+
"description": "false makes a panel the reader cannot put away, the ride picker of a map app: no drag, Escape, press outside or way back closes it, a bottom sheet rests no lower than its lowest stop, and it draws no automatic Close. Only open set to false closes it. Always false under mode=\"inline\"."
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "align",
|
|
326
|
+
"type": "'start' | 'center'",
|
|
327
|
+
"defaultValue": "start",
|
|
328
|
+
"appliesTo": "DrawerHeader",
|
|
329
|
+
"description": "center sets the title in the middle, one button before it (DrawerBack or DrawerClose) and DrawerActions after it, the bar a phone app draws over its content. A centred header draws the DrawerClose written in it in a bottom sheet too, where a header set at the start draws none."
|
|
330
|
+
},
|
|
289
331
|
{
|
|
290
332
|
"name": "escape",
|
|
291
333
|
"type": "'close' | 'none'",
|
|
@@ -312,14 +354,14 @@
|
|
|
312
354
|
"type": "'panel' | 'resizer'",
|
|
313
355
|
"defaultValue": "panel",
|
|
314
356
|
"appliesTo": "Drawer, DrawerDefaultsProvider",
|
|
315
|
-
"description": "What a touch moves a bottom sheet by: panel, anywhere on the panel, the sheet and its content scrolling as one; or resizer, the separator only, the body scrolling on its own at the highest stop. A mouse drags the separator, and
|
|
357
|
+
"description": "What a touch moves a bottom sheet by: panel, anywhere on the panel, the sheet and its content scrolling as one; or resizer, the separator only, the body scrolling on its own at the highest stop. A mouse drags the separator, and its release lands where its position and speed send it, as a finger’s does."
|
|
316
358
|
},
|
|
317
359
|
{
|
|
318
360
|
"name": "scrimFrom",
|
|
319
361
|
"type": "number",
|
|
320
362
|
"defaultValue": "0",
|
|
321
363
|
"appliesTo": "Drawer",
|
|
322
|
-
"description": "While the measure is below this fraction
|
|
364
|
+
"description": "While the measure is below this fraction a press reaches the page and the root carries data-undimmed. On a bottom sheet the dim is none up to the highest stop under this fraction and whole at it, growing with the sheet’s position between them. Use it with modal={false} and outsidePress=\"none\"."
|
|
323
365
|
},
|
|
324
366
|
{
|
|
325
367
|
"name": "loading",
|
|
@@ -419,7 +461,7 @@
|
|
|
419
461
|
{
|
|
420
462
|
"name": "onOpenChange",
|
|
421
463
|
"payload": "(open: boolean, request: DrawerChangeRequest)",
|
|
422
|
-
"when": "Before the drawer opens or closes, for every way it can: the trigger, the ✕, Escape, a press outside, the back gesture and the handle. The request carries value, previous, reason (pointer, keyboard, dismiss, escape, outsidePress, back or programmatic), result, the source event and cancel(), which keeps the drawer as it is."
|
|
464
|
+
"when": "Before the drawer opens or closes, for every way it can: the trigger, the ✕, the way back, Escape, a press outside, the back gesture and the handle. The request carries value, previous, reason (pointer, keyboard, dismiss, escape, outsidePress, back or programmatic), result, the source event and cancel(), which keeps the drawer as it is."
|
|
423
465
|
},
|
|
424
466
|
{
|
|
425
467
|
"name": "onOpenChangeComplete",
|
|
@@ -485,11 +527,7 @@
|
|
|
485
527
|
"--slotted-drawer-rule-color",
|
|
486
528
|
"--slotted-drawer-scrim",
|
|
487
529
|
"--slotted-drawer-scrim-backdrop-filter",
|
|
488
|
-
"--slotted-drawer-sheet-dim",
|
|
489
|
-
"--slotted-drawer-sheet-floor",
|
|
490
|
-
"--slotted-drawer-sheet-height",
|
|
491
530
|
"--slotted-drawer-sheet-inline-size",
|
|
492
|
-
"--slotted-drawer-sheet-travel",
|
|
493
531
|
"--slotted-drawer-slide-duration",
|
|
494
532
|
"--slotted-drawer-slide-easing",
|
|
495
533
|
"--slotted-drawer-slide-exit-duration",
|
|
@@ -520,6 +558,17 @@
|
|
|
520
558
|
"--slotted-radius-sm",
|
|
521
559
|
"--slotted-scrim",
|
|
522
560
|
"--slotted-shadow-lg",
|
|
561
|
+
"--slotted-sheet-border-color",
|
|
562
|
+
"--slotted-sheet-exit-duration",
|
|
563
|
+
"--slotted-sheet-exit-easing",
|
|
564
|
+
"--slotted-sheet-grip-color",
|
|
565
|
+
"--slotted-sheet-inline-size",
|
|
566
|
+
"--slotted-sheet-radius",
|
|
567
|
+
"--slotted-sheet-scrim",
|
|
568
|
+
"--slotted-sheet-scrim-backdrop-filter",
|
|
569
|
+
"--slotted-sheet-slide-duration",
|
|
570
|
+
"--slotted-sheet-slide-easing",
|
|
571
|
+
"--slotted-sheet-surface",
|
|
523
572
|
"--slotted-space-11",
|
|
524
573
|
"--slotted-space-12",
|
|
525
574
|
"--slotted-space-2",
|
|
@@ -591,7 +640,7 @@
|
|
|
591
640
|
{
|
|
592
641
|
"id": "sheet",
|
|
593
642
|
"title": "A bottom sheet as a phone draws one",
|
|
594
|
-
"note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening,
|
|
643
|
+
"note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, every close — a finger released past the threshold included — and a tap on the grabber travel in --slotted-sheet-slide-duration and --slotted-sheet-slide-easing (default --slotted-easing-standard) going up, and in --slotted-sheet-exit-duration and --slotted-sheet-exit-easing (default --slotted-easing-exit) going down: the tokens every bottom sheet reads, a Popover, Menu, Select or picker on a phone included. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.",
|
|
595
644
|
"language": "tsx",
|
|
596
645
|
"source": "import { useState } from 'react';\n\nimport { Button } from '@slotted/react/button';\nimport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerPanel,\n DrawerResizer,\n DrawerTitle,\n DrawerTrigger,\n} from '@slotted/react/drawer';\nimport { FieldGroup, FieldGroupContent, FieldGroupLegend } from '@slotted/react/field-group';\nimport { Inline } from '@slotted/react/inline';\nimport { Radio, RadioGroup } from '@slotted/react/radio-group';\nimport { Text } from '@slotted/react/typography';\n\nconst WINDOWS = [\n { value: 'morning', label: 'Thursday 8 October, 8 AM to noon' },\n { value: 'afternoon', label: 'Thursday 8 October, 1 to 5 PM' },\n { value: 'friday', label: 'Friday 9 October, 8 AM to noon' },\n];\n\nexport default function DrawerSheet() {\n const [open, setOpen] = useState(false);\n const [pickup, setPickup] = useState('morning');\n const [draft, setDraft] = useState(pickup);\n\n return (\n <Inline align=\"center\" gap={3}>\n <Text size=\"sm\">Pickup: {WINDOWS.find((window) => window.value === pickup)?.label}</Text>\n <Drawer\n open={open}\n onOpenChange={(next) => {\n if (next) setDraft(pickup);\n setOpen(next);\n }}\n side=\"bottom\"\n >\n <DrawerTrigger\n render={(props) => (\n <Button {...props} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Reschedule\n </Button>\n )}\n />\n <DrawerPanel>\n <DrawerResizer />\n <DrawerHeader>\n <DrawerTitle>Reschedule pickup</DrawerTitle>\n <DrawerDescription>Shipment SH-4471, UPS Ground from Reno, NV.</DrawerDescription>\n <DrawerClose />\n </DrawerHeader>\n <DrawerBody>\n <FieldGroup>\n <FieldGroupLegend>Pickup window</FieldGroupLegend>\n <FieldGroupContent>\n <RadioGroup value={draft} onValueChange={setDraft}>\n {WINDOWS.map((window) => (\n <Radio key={window.value} value={window.value}>\n {window.label}\n </Radio>\n ))}\n </RadioGroup>\n </FieldGroupContent>\n </FieldGroup>\n </DrawerBody>\n <DrawerFooter>\n <Button variant=\"ghost\" tone=\"secondary\" onClick={() => setOpen(false)}>\n Cancel\n </Button>\n <Button\n onClick={() => {\n setPickup(draft);\n setOpen(false);\n }}\n >\n Reschedule\n </Button>\n </DrawerFooter>\n </DrawerPanel>\n </Drawer>\n </Inline>\n );\n}\n",
|
|
597
646
|
"verdict": "example"
|
|
@@ -748,6 +797,14 @@
|
|
|
748
797
|
"source": "import { useState } from 'react';\n\nimport { Button } from '@slotted/react/button';\nimport {\n DescriptionList,\n DescriptionListDescription,\n DescriptionListItem,\n DescriptionListTerm,\n} from '@slotted/react/description-list';\nimport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerFooter,\n DrawerHeader,\n DrawerPanel,\n DrawerTitle,\n DrawerTrigger,\n} from '@slotted/react/drawer';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Textarea } from '@slotted/react/textarea';\n\nconst DETAILS = [\n { term: 'Customer', value: 'Contoso Foods, Seattle' },\n { term: 'Items', value: '14 cases, 3 products' },\n { term: 'Warehouse', value: 'Reno, NV' },\n];\n\nexport default function DrawerPin() {\n const [open, setOpen] = useState(false);\n const [pinned, setPinned] = useState(false);\n\n return (\n <Drawer mode={pinned ? 'inline' : 'overlay'} open={open} onOpenChange={setOpen} size=\"sm\">\n <Stack gap={3}>\n <Inline>\n <DrawerTrigger\n render={(props) => (\n <Button {...props} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Notes\n </Button>\n )}\n />\n </Inline>\n <div\n style={{\n display: 'flex',\n flexWrap: 'wrap',\n minBlockSize: '18rem',\n border: '1px solid var(--slotted-border-subtle)',\n borderRadius: 'var(--slotted-radius-lg)',\n overflow: 'hidden',\n }}\n >\n <div style={{ flex: '1 1 12rem', padding: 'var(--slotted-space-6)' }}>\n <DescriptionList>\n {DETAILS.map((detail) => (\n <DescriptionListItem key={detail.term}>\n <DescriptionListTerm>{detail.term}</DescriptionListTerm>\n <DescriptionListDescription>{detail.value}</DescriptionListDescription>\n </DescriptionListItem>\n ))}\n </DescriptionList>\n </div>\n <DrawerPanel>\n <DrawerHeader>\n <DrawerTitle>Notes on SO-1182</DrawerTitle>\n <DrawerClose />\n </DrawerHeader>\n <DrawerBody>\n <Field>\n <FieldLabel>Note for the warehouse</FieldLabel>\n <Textarea placeholder=\"Pallet height, dock number, contact on site\" />\n </Field>\n </DrawerBody>\n <DrawerFooter>\n <Button\n size=\"sm\"\n tone=\"secondary\"\n variant=\"outline\"\n onClick={() => setPinned(!pinned)}\n >\n {pinned ? 'Unpin' : 'Pin beside the order'}\n </Button>\n </DrawerFooter>\n </DrawerPanel>\n </div>\n </Stack>\n </Drawer>\n );\n}\n",
|
|
749
798
|
"verdict": "example"
|
|
750
799
|
},
|
|
800
|
+
{
|
|
801
|
+
"id": "sheet-over-sheet",
|
|
802
|
+
"title": "sheet-over-sheet.tsx",
|
|
803
|
+
"note": null,
|
|
804
|
+
"language": "tsx",
|
|
805
|
+
"source": "import { useState } from 'react';\n\nimport { Button } from '@slotted/react/button';\nimport {\n DescriptionList,\n DescriptionListDescription,\n DescriptionListItem,\n DescriptionListTerm,\n} from '@slotted/react/description-list';\nimport {\n Drawer,\n DrawerBack,\n DrawerBody,\n DrawerFooter,\n DrawerHeader,\n DrawerPanel,\n DrawerTitle,\n DrawerTrigger,\n} from '@slotted/react/drawer';\nimport { Inline } from '@slotted/react/inline';\nimport { Radio, RadioGroup } from '@slotted/react/radio-group';\nimport { Stack } from '@slotted/react/stack';\n\nconst CARRIERS = ['UPS Ground', 'FedEx Express Saver', 'USPS Priority Mail'];\n\nexport default function DrawerSheetOverSheet() {\n const [carrier, setCarrier] = useState('UPS Ground');\n const [choosing, setChoosing] = useState(false);\n const [draft, setDraft] = useState(carrier);\n\n const handleChoosingChange = (next: boolean) => {\n if (next) setDraft(carrier);\n setChoosing(next);\n };\n\n const handleUse = () => {\n setCarrier(draft);\n setChoosing(false);\n };\n\n return (\n <Drawer side=\"bottom\">\n <DrawerTrigger\n render={(props) => (\n <Button {...props} tone=\"secondary\" variant=\"outline\">\n View shipment SH-4471\n </Button>\n )}\n />\n <DrawerPanel>\n <DrawerHeader>\n <DrawerTitle>Shipment SH-4471</DrawerTitle>\n </DrawerHeader>\n <DrawerBody>\n <Stack gap={5}>\n <DescriptionList>\n <DescriptionListItem>\n <DescriptionListTerm>Destination</DescriptionListTerm>\n <DescriptionListDescription>Reno, NV</DescriptionListDescription>\n </DescriptionListItem>\n <DescriptionListItem>\n <DescriptionListTerm>Carrier</DescriptionListTerm>\n <DescriptionListDescription>{carrier}</DescriptionListDescription>\n </DescriptionListItem>\n </DescriptionList>\n <Inline>\n <Drawer open={choosing} onOpenChange={handleChoosingChange} side=\"bottom\">\n <DrawerTrigger\n render={(props) => (\n <Button {...props} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Change carrier\n </Button>\n )}\n />\n <DrawerPanel>\n <DrawerHeader>\n <DrawerBack />\n <DrawerTitle>Carrier</DrawerTitle>\n </DrawerHeader>\n <DrawerBody>\n <RadioGroup aria-label=\"Carrier\" value={draft} onValueChange={setDraft}>\n {CARRIERS.map((name) => (\n <Radio key={name} value={name}>\n {name}\n </Radio>\n ))}\n </RadioGroup>\n </DrawerBody>\n <DrawerFooter>\n <Button onClick={handleUse}>Use carrier</Button>\n </DrawerFooter>\n </DrawerPanel>\n </Drawer>\n </Inline>\n </Stack>\n </DrawerBody>\n </DrawerPanel>\n </Drawer>\n );\n}\n",
|
|
806
|
+
"verdict": "example"
|
|
807
|
+
},
|
|
751
808
|
{
|
|
752
809
|
"id": "sides",
|
|
753
810
|
"title": "sides.tsx",
|
package/dist/docs/drawer.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```tsx
|
|
9
|
-
import { Drawer, DrawerActions, DrawerBody, DrawerClose, DrawerDefaultsProvider, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerResizer, DrawerTitle, DrawerTrigger } from '@slotted/react';
|
|
9
|
+
import { Drawer, DrawerActions, DrawerBack, DrawerBody, DrawerClose, DrawerDefaultsProvider, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerResizer, DrawerTitle, DrawerTrigger } from '@slotted/react';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
@@ -93,22 +93,24 @@ export default function DrawerBasic() {
|
|
|
93
93
|
|
|
94
94
|
## Anatomy
|
|
95
95
|
|
|
96
|
-
| Part | Element | Required |
|
|
97
|
-
| --- | --- | --- |
|
|
98
|
-
| `root` | div, in a portal under mode="overlay" | yes |
|
|
99
|
-
| `trigger` | button, or the element render returns | no |
|
|
100
|
-
| `backdrop` | div | no |
|
|
101
|
-
| `panel` | div, or the element render returns | yes |
|
|
102
|
-
| `resizer` | div with role="separator" | no |
|
|
103
|
-
| `line` | span | yes |
|
|
104
|
-
| `grip` | span[aria-hidden] | yes |
|
|
105
|
-
| `header` | header, or the element render returns | no |
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `
|
|
96
|
+
| Part | Parent | Element | Required |
|
|
97
|
+
| --- | --- | --- | --- |
|
|
98
|
+
| `root` | — | div, in a portal under mode="overlay" | yes |
|
|
99
|
+
| `trigger` | — | button, or the element render returns | no |
|
|
100
|
+
| `backdrop` | `root` | div | no |
|
|
101
|
+
| `panel` | `root` | div, or the element render returns | yes |
|
|
102
|
+
| `resizer` | `panel` | div with role="separator" | no |
|
|
103
|
+
| `line` | `resizer` | span | yes |
|
|
104
|
+
| `grip` | `resizer` | span[aria-hidden] | yes |
|
|
105
|
+
| `header` | `panel` | header, or the element render returns | no |
|
|
106
|
+
| `back` | `header` | button, or the element render returns | no |
|
|
107
|
+
| `actions` | `header` | div, or the element render returns | no |
|
|
108
|
+
| `title` | `header` | h2, or the element render returns | no |
|
|
109
|
+
| `description` | `header` | p, or the element render returns | no |
|
|
110
|
+
| `body` | `panel` | div, or the element render returns | no |
|
|
111
|
+
| `footer` | `panel` | footer, or the element render returns | no |
|
|
112
|
+
| `close` | `header` | button | no |
|
|
113
|
+
| `close` | `footer` | button | no |
|
|
112
114
|
|
|
113
115
|
## Props
|
|
114
116
|
|
|
@@ -126,11 +128,13 @@ export default function DrawerBasic() {
|
|
|
126
128
|
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full' \| 'content'` | content on top and bottom, md on start and end | Drawer, DrawerDefaultsProvider | The panel’s measure at rest: one of the steps sm (18rem), md (24rem), lg (30rem), xl (40rem) and full, or content, which fits what the panel holds, up to 4rem short of the screen. A step wider than the screen is held to it. On a bottom sheet, full is the screen’s height and the footer rests at its bottom. |
|
|
127
129
|
| `mount` | `'active' \| 'lazy' \| 'eager'` | active | Drawer, DrawerDefaultsProvider | When an overlay layer is in the document: active only while it is open or closing, lazy from the first open on, and eager from the start, inert while closed. An inline drawer is always in the document. |
|
|
128
130
|
| `modal` | `boolean` | true | Drawer, DrawerDefaultsProvider | Whether the page behind is inert, its scroll is locked and focus is contained in the panel, and whether the panel carries aria-modal. The scrim is painted either way. Always false under mode="inline". |
|
|
131
|
+
| `dismissible` | `boolean` | true | Drawer | false makes a panel the reader cannot put away, the ride picker of a map app: no drag, Escape, press outside or way back closes it, a bottom sheet rests no lower than its lowest stop, and it draws no automatic Close. Only open set to false closes it. Always false under mode="inline". |
|
|
132
|
+
| `align` | `'start' \| 'center'` | start | DrawerHeader | center sets the title in the middle, one button before it (DrawerBack or DrawerClose) and DrawerActions after it, the bar a phone app draws over its content. A centred header draws the DrawerClose written in it in a bottom sheet too, where a header set at the start draws none. |
|
|
129
133
|
| `escape` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether Escape asks to close the drawer. Escape reaches only the topmost layer, and a layer that refuses it does not pass it to the one below. |
|
|
130
134
|
| `outsidePress` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether a press outside the layer, the scrim included, asks to close the drawer. It has no effect under mode="inline". |
|
|
131
135
|
| `back` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one close watcher while it is open where the browser has CloseWatcher, and one history entry elsewhere; a drawer opened without a press shares the way back with the layer opened before it. It has no effect under mode="inline". |
|
|
132
|
-
| `drag` | `'panel' \| 'resizer'` | panel | Drawer, DrawerDefaultsProvider | What a touch moves a bottom sheet by: panel, anywhere on the panel, the sheet and its content scrolling as one; or resizer, the separator only, the body scrolling on its own at the highest stop. A mouse drags the separator, and
|
|
133
|
-
| `scrimFrom` | `number` | 0 | Drawer | While the measure is below this fraction
|
|
136
|
+
| `drag` | `'panel' \| 'resizer'` | panel | Drawer, DrawerDefaultsProvider | What a touch moves a bottom sheet by: panel, anywhere on the panel, the sheet and its content scrolling as one; or resizer, the separator only, the body scrolling on its own at the highest stop. A mouse drags the separator, and its release lands where its position and speed send it, as a finger’s does. |
|
|
137
|
+
| `scrimFrom` | `number` | 0 | Drawer | While the measure is below this fraction a press reaches the page and the root carries data-undimmed. On a bottom sheet the dim is none up to the highest stop under this fraction and whole at it, growing with the sheet’s position between them. Use it with modal={false} and outsidePress="none". |
|
|
134
138
|
| `loading` | `boolean` | false | Drawer | Marks the body as busy with aria-busy and gives it a minimum height, so the panel does not jump when the content arrives. The header, the ✕, Escape and the separator stay available. |
|
|
135
139
|
| `messages` | `Partial<DrawerMessages>` | — | Drawer | Words laid over the current language, key by key: close, the name of the ✕. An aria-label on DrawerClose takes precedence. |
|
|
136
140
|
| `initialFocus` | `'first' \| 'container' \| RefObject \| false` | first | Drawer | Where focus goes when an overlay drawer opens: first, the first focusable element; container, the panel itself, for content that is read before it is used; a ref; or false, nowhere. An inline drawer moves no focus. |
|
|
@@ -149,7 +153,7 @@ export default function DrawerBasic() {
|
|
|
149
153
|
|
|
150
154
|
| Name | Payload | When |
|
|
151
155
|
| --- | --- | --- |
|
|
152
|
-
| `onOpenChange` | `(open: boolean, request: DrawerChangeRequest)` | Before the drawer opens or closes, for every way it can: the trigger, the ✕, Escape, a press outside, the back gesture and the handle. The request carries value, previous, reason (pointer, keyboard, dismiss, escape, outsidePress, back or programmatic), result, the source event and cancel(), which keeps the drawer as it is. |
|
|
156
|
+
| `onOpenChange` | `(open: boolean, request: DrawerChangeRequest)` | Before the drawer opens or closes, for every way it can: the trigger, the ✕, the way back, Escape, a press outside, the back gesture and the handle. The request carries value, previous, reason (pointer, keyboard, dismiss, escape, outsidePress, back or programmatic), result, the source event and cancel(), which keeps the drawer as it is. |
|
|
153
157
|
| `onOpenChangeComplete` | `(open: boolean)` | After the entrance or the exit has ended: true once the drawer is settled open, false once it has left — the moment an application that renders the drawer conditionally removes it, so the exit runs. A drawer mounted open enters from its closed style, as one opened later does. |
|
|
154
158
|
| `onExtentChange` | `(extent: number \| undefined, request: DrawerExtentRequest)` | Before the panel’s measure changes, with the reason pointer for a drag or a tap on the grip, keyboard for an arrow key, Home, End or Enter, and programmatic for a change from code. A drag of the separator fires on every pointer move and can report a value below minExtent; a bottom sheet fires once its scroll comes to rest, with the stop it rests on. undefined means the panel is back on its size step, or on the height of its content under size="content". |
|
|
155
159
|
| `onClick, onKeyDown, onPointerDown, on every part` | `the element’s own events` | Whenever the element fires them. Your handler runs first, and preventDefault() in it cancels the drawer’s own behavior for that event. |
|
|
@@ -179,9 +183,15 @@ export default function DrawerBasic() {
|
|
|
179
183
|
- Focus moves into an overlay panel when it opens, to the first focusable element unless initialFocus names another, and returns on close to the element that had it before; if that element has left the document, focus goes to its nearest ancestor still in it. An inline drawer moves no focus when it opens, and on close restores focus only when focus is inside the panel or on the page body.
|
|
180
184
|
- The ✕ button and the separator are each at least --slotted-target-min across, so both meet the WCAG 2.2 minimum target size of 24 by 24 pixels.
|
|
181
185
|
|
|
186
|
+
## Behavior
|
|
187
|
+
|
|
188
|
+
- An overlay bottom drawer always ends in a footer. Without a DrawerFooter, it draws one with a full-width Close button, and it draws a DrawerResizer when none is given. A DrawerFooter replaces the automatic one: a sheet with its own way back in the header writes the footer it needs.
|
|
189
|
+
- The close message names both the ✕ and the Close button of the automatic footer, so a catalog that renames one renames the other.
|
|
190
|
+
- Popover under presentation="auto" draws the same footer when it is a sheet. Menu, Select and a DatePicker without confirm commit on a choice, and their sheets draw no Close.
|
|
191
|
+
|
|
182
192
|
## Tokens
|
|
183
193
|
|
|
184
|
-
`--slotted-action-gap`, `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-header-backdrop-filter`, `--slotted-drawer-header-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-scrim-backdrop-filter`, `--slotted-drawer-sheet-
|
|
194
|
+
`--slotted-action-gap`, `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-header-backdrop-filter`, `--slotted-drawer-header-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-scrim-backdrop-filter`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-easing`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-slide-exit-easing`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-sheet-border-color`, `--slotted-sheet-exit-duration`, `--slotted-sheet-exit-easing`, `--slotted-sheet-grip-color`, `--slotted-sheet-inline-size`, `--slotted-sheet-radius`, `--slotted-sheet-scrim`, `--slotted-sheet-scrim-backdrop-filter`, `--slotted-sheet-slide-duration`, `--slotted-sheet-slide-easing`, `--slotted-sheet-surface`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
185
195
|
|
|
186
196
|
## Examples
|
|
187
197
|
|
|
@@ -364,7 +364,7 @@ export default function EntityPickerCreationExample() {
|
|
|
364
364
|
|
|
365
365
|
### When the source fails
|
|
366
366
|
|
|
367
|
-
The
|
|
367
|
+
The failure is a state of its own: a mark, a title that names what failed and a hint, with Try again centered under them. Try again is an option, so ArrowDown reaches it and Enter takes it. Chips already chosen stay.
|
|
368
368
|
|
|
369
369
|
Excerpt — not a complete module
|
|
370
370
|
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
true,
|
|
63
63
|
false
|
|
64
64
|
],
|
|
65
|
+
"presentation": [
|
|
66
|
+
"popover",
|
|
67
|
+
"auto"
|
|
68
|
+
],
|
|
65
69
|
"fullWidth": [
|
|
66
70
|
true,
|
|
67
71
|
false
|
|
@@ -100,6 +104,7 @@
|
|
|
100
104
|
"loop": false,
|
|
101
105
|
"highlightMatch": true,
|
|
102
106
|
"portal": true,
|
|
107
|
+
"presentation": "auto",
|
|
103
108
|
"fullWidth": true,
|
|
104
109
|
"disabled": false,
|
|
105
110
|
"readOnly": false,
|
|
@@ -155,7 +160,16 @@
|
|
|
155
160
|
"arrow",
|
|
156
161
|
"busy",
|
|
157
162
|
"positioner",
|
|
163
|
+
"backdrop",
|
|
158
164
|
"content",
|
|
165
|
+
"grip",
|
|
166
|
+
"header",
|
|
167
|
+
"title",
|
|
168
|
+
"search",
|
|
169
|
+
"search-icon",
|
|
170
|
+
"search-input",
|
|
171
|
+
"list",
|
|
172
|
+
"footer",
|
|
159
173
|
"group",
|
|
160
174
|
"group-label",
|
|
161
175
|
"item",
|
|
@@ -166,6 +180,9 @@
|
|
|
166
180
|
"meta",
|
|
167
181
|
"indicator",
|
|
168
182
|
"error",
|
|
183
|
+
"error-mark",
|
|
184
|
+
"error-title",
|
|
185
|
+
"error-hint",
|
|
169
186
|
"empty",
|
|
170
187
|
"placeholder",
|
|
171
188
|
"more",
|
|
@@ -258,10 +275,64 @@
|
|
|
258
275
|
"purpose": "The layer, carrying data-ui=\"entity-picker\" so the stylesheet reaches it."
|
|
259
276
|
},
|
|
260
277
|
{
|
|
261
|
-
"part": "
|
|
278
|
+
"part": "backdrop",
|
|
262
279
|
"element": "div",
|
|
280
|
+
"required": false,
|
|
281
|
+
"purpose": "The scrim over the page while the list is a sheet (presentation=\"auto\" on a phone), aria-hidden. A press on it closes the sheet."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"part": "content",
|
|
285
|
+
"element": "div with role=\"listbox\", or role=\"dialog\" in the sheet",
|
|
263
286
|
"required": true,
|
|
264
|
-
"purpose": "role=\"listbox\", aria-multiselectable in multiple, aria-busy while a search travels; data-loading while a new query recedes the rows already shown."
|
|
287
|
+
"purpose": "role=\"listbox\", aria-multiselectable in multiple, aria-busy while a search travels; data-loading while a new query recedes the rows already shown. In the sheet it is a dialog, aria-modal and named by the title, that holds the header, the list and the footer."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"part": "grip",
|
|
291
|
+
"element": "span",
|
|
292
|
+
"required": false,
|
|
293
|
+
"purpose": "The bar at the top of the sheet, aria-hidden. A mouse pulls the sheet by it; a touch moves the sheet anywhere on it."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"part": "header",
|
|
297
|
+
"element": "div",
|
|
298
|
+
"required": false,
|
|
299
|
+
"purpose": "The row above the list of the sheet, holding its title and its search field."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"part": "title",
|
|
303
|
+
"element": "div",
|
|
304
|
+
"required": false,
|
|
305
|
+
"purpose": "The heading of the sheet: the label of the control, as a reader hears it."
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"part": "search",
|
|
309
|
+
"element": "div, drawn only in the sheet",
|
|
310
|
+
"required": false,
|
|
311
|
+
"purpose": "The search row of the sheet, under the title."
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"part": "search-icon",
|
|
315
|
+
"element": "span, aria-hidden",
|
|
316
|
+
"required": false,
|
|
317
|
+
"purpose": "The magnifier, a Glyph inside an Icon box."
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"part": "search-input",
|
|
321
|
+
"element": "input with role=\"combobox\"",
|
|
322
|
+
"required": false,
|
|
323
|
+
"purpose": "The search field of the sheet, bound to the control’s query. It carries aria-controls naming the list, aria-autocomplete=\"list\" and aria-activedescendant; the arrows move the highlight and Enter takes it. It is not focused as the sheet opens, so the keyboard rises only on a touch on it."
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"part": "list",
|
|
327
|
+
"element": "div with role=\"listbox\", drawn only in the sheet",
|
|
328
|
+
"required": false,
|
|
329
|
+
"purpose": "The listbox inside the dialog of the sheet. It holds focus as the sheet opens, scrolls with the sheet as one scroll, and passes a printable key on to the search field."
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"part": "footer",
|
|
333
|
+
"element": "footer, drawn only in the sheet of a multiple picker",
|
|
334
|
+
"required": false,
|
|
335
|
+
"purpose": "The foot of the sheet, holding a full-width Done that closes it with the choices as they were made."
|
|
265
336
|
},
|
|
266
337
|
{
|
|
267
338
|
"part": "group",
|
|
@@ -321,7 +392,25 @@
|
|
|
321
392
|
"part": "error",
|
|
322
393
|
"element": "div",
|
|
323
394
|
"required": false,
|
|
324
|
-
"purpose": "
|
|
395
|
+
"purpose": "The failure, shown as a state of its own: the mark, the title and the hint, centered above the retry option."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"part": "error-mark",
|
|
399
|
+
"element": "span",
|
|
400
|
+
"required": false,
|
|
401
|
+
"purpose": "The alert glyph in a disc of the danger tone, hidden from assistive technology."
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"part": "error-title",
|
|
405
|
+
"element": "span",
|
|
406
|
+
"required": false,
|
|
407
|
+
"purpose": "The error message: what failed."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"part": "error-hint",
|
|
411
|
+
"element": "span",
|
|
412
|
+
"required": false,
|
|
413
|
+
"purpose": "The errorHint message: what to do next."
|
|
325
414
|
},
|
|
326
415
|
{
|
|
327
416
|
"part": "empty",
|
|
@@ -629,6 +718,13 @@
|
|
|
629
718
|
"appliesTo": "EntityPicker",
|
|
630
719
|
"description": "false keeps the layer in the DOM of the picker, where the nearest ancestor with overflow clips it. Inside another layer (Popover, Dialog) keep the default: a choice in the portalled list is not an outside press of the parent layer"
|
|
631
720
|
},
|
|
721
|
+
{
|
|
722
|
+
"name": "presentation",
|
|
723
|
+
"type": "'popover' | 'auto'",
|
|
724
|
+
"defaultValue": "auto",
|
|
725
|
+
"appliesTo": "EntityPicker",
|
|
726
|
+
"description": "auto, the default, draws the list in a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label and a search field of its own, at the full height of the screen less a strip of scrim, every option at least --slotted-target-min tall, moved as every bottom sheet is. A single picker closes on a choice; a multiple picker stays open and ends in Done. A release past the threshold, the scrim, Escape and the platform’s way back close it, each by one slide down in the --slotted-sheet-* tokens. The list holds focus as it opens, so the keyboard rises on a touch on the field. popover keeps the anchored list on every screen"
|
|
727
|
+
},
|
|
632
728
|
{
|
|
633
729
|
"name": "fullWidth",
|
|
634
730
|
"type": "boolean",
|
|
@@ -749,6 +845,7 @@
|
|
|
749
845
|
"--slotted-avatar-size-md",
|
|
750
846
|
"--slotted-avatar-size-sm",
|
|
751
847
|
"--slotted-avatar-size-xs",
|
|
848
|
+
"--slotted-border-strong",
|
|
752
849
|
"--slotted-border-subtle",
|
|
753
850
|
"--slotted-border-width-thin",
|
|
754
851
|
"--slotted-control-border-color",
|
|
@@ -783,6 +880,7 @@
|
|
|
783
880
|
"--slotted-disabled-background",
|
|
784
881
|
"--slotted-disabled-border",
|
|
785
882
|
"--slotted-disabled-foreground",
|
|
883
|
+
"--slotted-duration-long",
|
|
786
884
|
"--slotted-duration-medium",
|
|
787
885
|
"--slotted-duration-short",
|
|
788
886
|
"--slotted-easing-enter",
|
|
@@ -806,6 +904,7 @@
|
|
|
806
904
|
"--slotted-entity-picker-disabled-border-color",
|
|
807
905
|
"--slotted-entity-picker-disabled-color",
|
|
808
906
|
"--slotted-entity-picker-error-color",
|
|
907
|
+
"--slotted-entity-picker-error-surface",
|
|
809
908
|
"--slotted-entity-picker-field-basis",
|
|
810
909
|
"--slotted-entity-picker-field-min",
|
|
811
910
|
"--slotted-entity-picker-group-label-height",
|
|
@@ -839,7 +938,9 @@
|
|
|
839
938
|
"--slotted-focus-ring-color-invalid",
|
|
840
939
|
"--slotted-focus-ring-offset",
|
|
841
940
|
"--slotted-focus-ring-width",
|
|
941
|
+
"--slotted-font-family-heading",
|
|
842
942
|
"--slotted-font-family-sans",
|
|
943
|
+
"--slotted-font-size-md",
|
|
843
944
|
"--slotted-font-size-xs",
|
|
844
945
|
"--slotted-font-weight-medium",
|
|
845
946
|
"--slotted-font-weight-semibold",
|
|
@@ -848,12 +949,18 @@
|
|
|
848
949
|
"--slotted-overlay-max-block-size",
|
|
849
950
|
"--slotted-radius-lg",
|
|
850
951
|
"--slotted-radius-none",
|
|
952
|
+
"--slotted-scrim",
|
|
851
953
|
"--slotted-shadow-md",
|
|
954
|
+
"--slotted-sheet-scrim",
|
|
852
955
|
"--slotted-space-1",
|
|
956
|
+
"--slotted-space-12",
|
|
853
957
|
"--slotted-space-2",
|
|
854
958
|
"--slotted-space-3",
|
|
855
959
|
"--slotted-space-4",
|
|
856
960
|
"--slotted-space-5",
|
|
961
|
+
"--slotted-space-6",
|
|
962
|
+
"--slotted-space-7",
|
|
963
|
+
"--slotted-space-8",
|
|
857
964
|
"--slotted-surface-raised",
|
|
858
965
|
"--slotted-surface-sunken",
|
|
859
966
|
"--slotted-target-comfortable",
|
|
@@ -864,6 +971,7 @@
|
|
|
864
971
|
"--slotted-tone-accent-surface",
|
|
865
972
|
"--slotted-tone-accent-text",
|
|
866
973
|
"--slotted-tone-danger-border",
|
|
974
|
+
"--slotted-tone-danger-surface",
|
|
867
975
|
"--slotted-tone-danger-text",
|
|
868
976
|
"--slotted-tone-secondary-subtle-active",
|
|
869
977
|
"--slotted-tone-secondary-subtle-hover",
|
|
@@ -937,7 +1045,7 @@
|
|
|
937
1045
|
{
|
|
938
1046
|
"id": "error",
|
|
939
1047
|
"title": "When the source fails",
|
|
940
|
-
"note": "The
|
|
1048
|
+
"note": "The failure is a state of its own: a mark, a title that names what failed and a hint, with Try again centered under them. Try again is an option, so ArrowDown reaches it and Enter takes it. Chips already chosen stay.",
|
|
941
1049
|
"language": "tsx",
|
|
942
1050
|
"source": "<EntityPicker aria-label=\"Owner\" source={offline} />;\n",
|
|
943
1051
|
"verdict": "excerpt"
|