@slotted/react 0.1.0-beta.46 → 0.1.0-beta.47
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 +31 -29
- 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/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/menu.json
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"part": "grip",
|
|
187
187
|
"element": "span",
|
|
188
188
|
"required": false,
|
|
189
|
-
"purpose": "The bar at the top of the sheet, aria-hidden. A
|
|
189
|
+
"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."
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"part": "step",
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
"type": "'popover' | 'auto'",
|
|
475
475
|
"defaultValue": "popover",
|
|
476
476
|
"appliesTo": "Menu, MenuDefaultsProvider",
|
|
477
|
-
"description": "auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall,
|
|
477
|
+
"description": "popover, the default, keeps the anchored menu on every screen. auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall, moved as every bottom sheet is and closed by a release past the threshold, its scrim, Escape and the platform’s way back, each by one slide down in the --slotted-sheet-* tokens, with focus given back to the trigger. It commits on a choice and draws no Close. A submenu opens as a second step of the same sheet. A menu on a bar stays anchored. An application turns the sheet on for every menu with MenuDefaultsProvider presentation=\"auto\"."
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
"name": "messages",
|
|
@@ -686,6 +686,7 @@
|
|
|
686
686
|
"accessibility": [
|
|
687
687
|
"An item is a native button, so Enter and Space run it and the pointer behaves as the browser's own. role=\"menuitem\" replaces role=\"button\", so a screen reader announces a menu item. A link item is an a that keeps its href and takes the same role.",
|
|
688
688
|
"Menu supplies the keyboard of the WAI-ARIA menu pattern: the arrow keys move and wrap, Home and End reach the ends, letters move by typeahead, the inline-end arrow opens a submenu and the inline-start arrow closes it, Escape closes the menu that holds focus, and Tab closes every menu and moves focus past the trigger.",
|
|
689
|
+
"A tap of a finger or a pen opens the menu with focus on the surface and no item highlighted; a key or a click of the mouse opens it onto its first item, as the pattern says.",
|
|
689
690
|
"A disabled item stays focusable and carries aria-disabled instead of the native disabled attribute, so a keyboard user can still find a command that is unavailable. A natively disabled button cannot take focus.",
|
|
690
691
|
"A header is not an item and never takes focus, because role=\"menu\" owns only items, groups and separators. The surface references it with aria-describedby, joined to any description you give, so a screen reader announces who the menu belongs to once, as it opens.",
|
|
691
692
|
"The surface is named by its trigger, or by its own aria-label. A checkbox or radio item announces its state through aria-checked, a group is named by its label, and a shortcut is announced through aria-keyshortcuts while the printed keys are hidden, so the item's name stays the command."
|
|
@@ -695,6 +696,7 @@
|
|
|
695
696
|
"tokens": [
|
|
696
697
|
"--slotted-border-strong",
|
|
697
698
|
"--slotted-border-subtle",
|
|
699
|
+
"--slotted-border-width-thick",
|
|
698
700
|
"--slotted-border-width-thin",
|
|
699
701
|
"--slotted-control-font-size-lg",
|
|
700
702
|
"--slotted-control-font-size-md",
|
|
@@ -714,16 +716,6 @@
|
|
|
714
716
|
"--slotted-control-transition-duration",
|
|
715
717
|
"--slotted-control-transition-easing",
|
|
716
718
|
"--slotted-disabled-foreground",
|
|
717
|
-
"--slotted-drawer-border-color",
|
|
718
|
-
"--slotted-drawer-radius",
|
|
719
|
-
"--slotted-drawer-resizer-line-color",
|
|
720
|
-
"--slotted-drawer-scrim",
|
|
721
|
-
"--slotted-drawer-scrim-backdrop-filter",
|
|
722
|
-
"--slotted-drawer-slide-duration",
|
|
723
|
-
"--slotted-drawer-slide-easing",
|
|
724
|
-
"--slotted-drawer-slide-exit-duration",
|
|
725
|
-
"--slotted-drawer-slide-exit-easing",
|
|
726
|
-
"--slotted-drawer-surface",
|
|
727
719
|
"--slotted-duration-long",
|
|
728
720
|
"--slotted-duration-medium",
|
|
729
721
|
"--slotted-duration-short",
|
|
@@ -762,9 +754,22 @@
|
|
|
762
754
|
"--slotted-scrim",
|
|
763
755
|
"--slotted-shadow-lg",
|
|
764
756
|
"--slotted-shadow-md",
|
|
757
|
+
"--slotted-sheet-border-color",
|
|
758
|
+
"--slotted-sheet-exit-duration",
|
|
759
|
+
"--slotted-sheet-exit-easing",
|
|
760
|
+
"--slotted-sheet-grip-color",
|
|
761
|
+
"--slotted-sheet-inline-size",
|
|
762
|
+
"--slotted-sheet-radius",
|
|
763
|
+
"--slotted-sheet-scrim",
|
|
764
|
+
"--slotted-sheet-scrim-backdrop-filter",
|
|
765
|
+
"--slotted-sheet-slide-duration",
|
|
766
|
+
"--slotted-sheet-slide-easing",
|
|
767
|
+
"--slotted-sheet-surface",
|
|
765
768
|
"--slotted-space-1",
|
|
766
769
|
"--slotted-space-11",
|
|
770
|
+
"--slotted-space-12",
|
|
767
771
|
"--slotted-space-2",
|
|
772
|
+
"--slotted-space-4",
|
|
768
773
|
"--slotted-space-5",
|
|
769
774
|
"--slotted-space-6",
|
|
770
775
|
"--slotted-surface-raised",
|
|
@@ -1014,6 +1019,14 @@
|
|
|
1014
1019
|
"source": "import { Button } from '@slotted/react/button';\nimport { Glyph } from '@slotted/react/icon';\nimport { Menu, MenuContent, MenuItem, MenuTrigger } from '@slotted/react/menu';\n\nconst LOCATIONS = [\n 'Amsterdam',\n 'Antwerp',\n 'Barcelona',\n 'Berlin',\n 'Bologna',\n 'Bordeaux',\n 'Bratislava',\n 'Brno',\n 'Brussels',\n 'Budapest',\n 'Copenhagen',\n 'Dublin',\n 'Gdańsk',\n 'Geneva',\n 'Hamburg',\n 'Helsinki',\n 'Kraków',\n 'Leipzig',\n 'Lisbon',\n 'Ljubljana',\n 'Lyon',\n 'Madrid',\n 'Milan',\n 'Munich',\n 'Oslo',\n 'Porto',\n 'Prague',\n 'Rotterdam',\n 'Stockholm',\n 'Tallinn',\n 'Valencia',\n 'Vienna',\n 'Vilnius',\n 'Warsaw',\n 'Zagreb',\n 'Zürich',\n];\n\nexport default function MenuLongList() {\n return (\n <Menu>\n <MenuTrigger\n render={(props) => (\n <Button {...props} end={<Glyph name=\"chevron-down\" />} variant=\"outline\">\n Move to warehouse\n </Button>\n )}\n />\n <MenuContent>\n {LOCATIONS.map((location) => (\n <MenuItem key={location}>{location}</MenuItem>\n ))}\n </MenuContent>\n </Menu>\n );\n}\n",
|
|
1015
1020
|
"verdict": "example"
|
|
1016
1021
|
},
|
|
1022
|
+
{
|
|
1023
|
+
"id": "phone-sheet",
|
|
1024
|
+
"title": "phone-sheet.tsx",
|
|
1025
|
+
"note": null,
|
|
1026
|
+
"language": "tsx",
|
|
1027
|
+
"source": "import { Button } from '@slotted/react/button';\nimport {\n Menu,\n MenuContent,\n MenuDefaultsProvider,\n MenuItem,\n MenuSeparator,\n MenuTrigger,\n} from '@slotted/react/menu';\n\nexport default function MenuPhoneSheet() {\n return (\n <MenuDefaultsProvider presentation=\"auto\">\n <Menu>\n <MenuTrigger\n render={(props) => (\n <Button {...props} tone=\"secondary\" variant=\"outline\">\n Order SO-10482\n </Button>\n )}\n />\n <MenuContent>\n <MenuItem>View order</MenuItem>\n <MenuItem>Duplicate</MenuItem>\n <MenuItem>Print packing slip</MenuItem>\n <MenuSeparator />\n <MenuItem tone=\"danger\">Cancel order…</MenuItem>\n </MenuContent>\n </Menu>\n </MenuDefaultsProvider>\n );\n}\n",
|
|
1028
|
+
"verdict": "example"
|
|
1029
|
+
},
|
|
1017
1030
|
{
|
|
1018
1031
|
"id": "row-actions",
|
|
1019
1032
|
"title": "row-actions.tsx",
|
package/dist/docs/menu.md
CHANGED
|
@@ -96,7 +96,7 @@ export default function MenuBasic() {
|
|
|
96
96
|
| `shift` | `boolean` | true | Menu | Whether the surface slides along its edge to stay in the window. |
|
|
97
97
|
| `hideWhenDetached` | `boolean` | true | Menu | Whether the surface hides once its trigger has scrolled out of view. |
|
|
98
98
|
| `portal` | `boolean` | true | Menu | Whether the layer is rendered at the end of the document. |
|
|
99
|
-
| `presentation` | `'popover' \| 'auto'` | popover | Menu, MenuDefaultsProvider | auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall,
|
|
99
|
+
| `presentation` | `'popover' \| 'auto'` | popover | Menu, MenuDefaultsProvider | popover, the default, keeps the anchored menu on every screen. auto draws the menu as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, as ActionSheet draws its actions, every item at least --slotted-target-min tall, moved as every bottom sheet is and closed by a release past the threshold, its scrim, Escape and the platform’s way back, each by one slide down in the --slotted-sheet-* tokens, with focus given back to the trigger. It commits on a choice and draws no Close. A submenu opens as a second step of the same sheet. A menu on a bar stays anchored. An application turns the sheet on for every menu with MenuDefaultsProvider presentation="auto". |
|
|
100
100
|
| `messages` | `Partial<MenuMessages>` | — | Menu | Words laid over the catalog of the language in force: back, the name of the control that returns from a submenu step to the first step of a sheet. |
|
|
101
101
|
| `disabled` | `boolean` | false | Menu, MenuItem | A disabled menu never opens, and its trigger keeps aria-expanded="false". A disabled item stays focusable and runs nothing. |
|
|
102
102
|
| `loading` | `boolean` | false | MenuContent | Whether the items are on their way. The surface keeps its width, sets aria-busy and shows the MenuEmpty message. |
|
|
@@ -159,13 +159,14 @@ export default function MenuBasic() {
|
|
|
159
159
|
|
|
160
160
|
- An item is a native button, so Enter and Space run it and the pointer behaves as the browser's own. role="menuitem" replaces role="button", so a screen reader announces a menu item. A link item is an a that keeps its href and takes the same role.
|
|
161
161
|
- Menu supplies the keyboard of the WAI-ARIA menu pattern: the arrow keys move and wrap, Home and End reach the ends, letters move by typeahead, the inline-end arrow opens a submenu and the inline-start arrow closes it, Escape closes the menu that holds focus, and Tab closes every menu and moves focus past the trigger.
|
|
162
|
+
- A tap of a finger or a pen opens the menu with focus on the surface and no item highlighted; a key or a click of the mouse opens it onto its first item, as the pattern says.
|
|
162
163
|
- A disabled item stays focusable and carries aria-disabled instead of the native disabled attribute, so a keyboard user can still find a command that is unavailable. A natively disabled button cannot take focus.
|
|
163
164
|
- A header is not an item and never takes focus, because role="menu" owns only items, groups and separators. The surface references it with aria-describedby, joined to any description you give, so a screen reader announces who the menu belongs to once, as it opens.
|
|
164
165
|
- The surface is named by its trigger, or by its own aria-label. A checkbox or radio item announces its state through aria-checked, a group is named by its label, and a shortcut is announced through aria-keyshortcuts while the printed keys are hidden, so the item's name stays the command.
|
|
165
166
|
|
|
166
167
|
## Tokens
|
|
167
168
|
|
|
168
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-
|
|
169
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--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-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-menu-backdrop-filter`, `--slotted-menu-border-color`, `--slotted-menu-gap`, `--slotted-menu-group-label-height`, `--slotted-menu-highlight`, `--slotted-menu-highlight-active`, `--slotted-menu-item-radius`, `--slotted-menu-measure`, `--slotted-menu-measure-lg`, `--slotted-menu-measure-sm`, `--slotted-menu-min-measure`, `--slotted-menu-padding-block`, `--slotted-menu-padding-inline`, `--slotted-menu-radius`, `--slotted-menu-separator-color`, `--slotted-menu-shadow`, `--slotted-menu-surface`, `--slotted-menu-text`, `--slotted-menu-text-muted`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--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-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`, `--slotted-z-index-popover`
|
|
169
170
|
|
|
170
171
|
## Examples
|
|
171
172
|
|
|
@@ -120,6 +120,10 @@
|
|
|
120
120
|
true,
|
|
121
121
|
false
|
|
122
122
|
],
|
|
123
|
+
"presentation": [
|
|
124
|
+
"popover",
|
|
125
|
+
"auto"
|
|
126
|
+
],
|
|
123
127
|
"fullWidth": [
|
|
124
128
|
true,
|
|
125
129
|
false
|
|
@@ -175,6 +179,7 @@
|
|
|
175
179
|
"shift": true,
|
|
176
180
|
"hideWhenDetached": true,
|
|
177
181
|
"portal": true,
|
|
182
|
+
"presentation": "auto",
|
|
178
183
|
"fullWidth": true,
|
|
179
184
|
"disabled": false,
|
|
180
185
|
"readOnly": false,
|
|
@@ -234,7 +239,16 @@
|
|
|
234
239
|
"trigger",
|
|
235
240
|
"arrow",
|
|
236
241
|
"positioner",
|
|
242
|
+
"backdrop",
|
|
237
243
|
"content",
|
|
244
|
+
"grip",
|
|
245
|
+
"header",
|
|
246
|
+
"title",
|
|
247
|
+
"search",
|
|
248
|
+
"search-icon",
|
|
249
|
+
"search-input",
|
|
250
|
+
"list",
|
|
251
|
+
"footer",
|
|
238
252
|
"chosen",
|
|
239
253
|
"group",
|
|
240
254
|
"group-label",
|
|
@@ -323,17 +337,71 @@
|
|
|
323
337
|
"required": true,
|
|
324
338
|
"purpose": "The layer, portalled to the end of the document. It carries data-ui=\"multi-select\" as well, so the stylesheet reaches the list outside the root."
|
|
325
339
|
},
|
|
340
|
+
{
|
|
341
|
+
"part": "backdrop",
|
|
342
|
+
"element": "div",
|
|
343
|
+
"required": false,
|
|
344
|
+
"purpose": "The scrim over the page while the listbox is a sheet (presentation=\"auto\" on a phone), aria-hidden. A press on it closes the sheet."
|
|
345
|
+
},
|
|
326
346
|
{
|
|
327
347
|
"part": "content",
|
|
328
|
-
"element": "div with role=\"listbox\" and aria-multiselectable",
|
|
348
|
+
"element": "div with role=\"listbox\" and aria-multiselectable, or role=\"dialog\" in the sheet",
|
|
329
349
|
"required": true,
|
|
330
|
-
"purpose": "The list surface. Selection does not follow the highlight: moving through the options chooses nothing, which departs from the combobox pattern on purpose."
|
|
350
|
+
"purpose": "The list surface. Selection does not follow the highlight: moving through the options chooses nothing, which departs from the combobox pattern on purpose. In the sheet it is a dialog that holds the header, the list and the footer."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"part": "grip",
|
|
354
|
+
"element": "span",
|
|
355
|
+
"required": false,
|
|
356
|
+
"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."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"part": "header",
|
|
360
|
+
"element": "div",
|
|
361
|
+
"required": false,
|
|
362
|
+
"purpose": "The row above the list of the sheet, holding its title and its search field."
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"part": "title",
|
|
366
|
+
"element": "div",
|
|
367
|
+
"required": false,
|
|
368
|
+
"purpose": "The heading of the sheet: the label of the control, as a reader hears it. It names the dialog the sheet is."
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"part": "search",
|
|
372
|
+
"element": "div, drawn only in the sheet",
|
|
373
|
+
"required": false,
|
|
374
|
+
"purpose": "The search row of the sheet, under the title. Its text is the control’s own text: a query typed in either filters the same list."
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"part": "search-icon",
|
|
378
|
+
"element": "span, aria-hidden",
|
|
379
|
+
"required": false,
|
|
380
|
+
"purpose": "The magnifier, a Glyph inside an Icon box."
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"part": "search-input",
|
|
384
|
+
"element": "input with role=\"combobox\"",
|
|
385
|
+
"required": false,
|
|
386
|
+
"purpose": "The search field of the sheet. 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."
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"part": "list",
|
|
390
|
+
"element": "div with role=\"listbox\" and aria-multiselectable, drawn only in the sheet",
|
|
391
|
+
"required": false,
|
|
392
|
+
"purpose": "The listbox inside the dialog of the sheet. It holds focus as the sheet opens and scrolls with the sheet as one scroll."
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"part": "footer",
|
|
396
|
+
"element": "footer, drawn only in the sheet",
|
|
397
|
+
"required": false,
|
|
398
|
+
"purpose": "The foot of the sheet, holding a full-width Done that closes it with the choices as they were made."
|
|
331
399
|
},
|
|
332
400
|
{
|
|
333
401
|
"part": "chosen",
|
|
334
402
|
"element": "div",
|
|
335
403
|
"required": false,
|
|
336
|
-
"purpose": "Every chosen value as a tag, at the top of the list, whatever the row in the control shows. With overflow=\"collapse\", the values the +N tag counts stay readable here."
|
|
404
|
+
"purpose": "Every chosen value as a tag, at the top of the list, whatever the row in the control shows. With overflow=\"collapse\", the values the +N tag counts stay readable here. The edge that has more chips fades them into the band, marked by data-scrollable."
|
|
337
405
|
},
|
|
338
406
|
{
|
|
339
407
|
"part": "group",
|
|
@@ -731,6 +799,13 @@
|
|
|
731
799
|
"appliesTo": "MultiSelect",
|
|
732
800
|
"description": "Whether the list is portalled to the end of the document."
|
|
733
801
|
},
|
|
802
|
+
{
|
|
803
|
+
"name": "presentation",
|
|
804
|
+
"type": "'popover' | 'auto'",
|
|
805
|
+
"defaultValue": "auto",
|
|
806
|
+
"appliesTo": "MultiSelect",
|
|
807
|
+
"description": "auto, the default, draws the listbox 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 choice keeps it open; Done in its footer, a release past the threshold, its 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."
|
|
808
|
+
},
|
|
734
809
|
{
|
|
735
810
|
"name": "fullWidth",
|
|
736
811
|
"type": "boolean",
|
|
@@ -931,6 +1006,7 @@
|
|
|
931
1006
|
"The input is the tab stop of the control. The tags, their remove buttons and the trigger carry tabindex=\"-1\", as the combobox and grid patterns ask; the clear button, while it is drawn, is in the tab order.",
|
|
932
1007
|
"The tags are a layout grid with one row, which leaves ArrowDown and ArrowUp to the list. Focus lands on a tag rather than on its remove button, and Delete and Backspace do what the button does. The grid carries the number of chosen values as its name.",
|
|
933
1008
|
"The list sets aria-multiselectable, and selection does not follow the highlight: moving through the options chooses nothing until Enter or a press. This departs from the note in the combobox pattern, as every implementation surveyed does.",
|
|
1009
|
+
"After a tap on a touch screen the list holds focus instead of the input, with aria-activedescendant naming the highlighted option: the arrow keys, Home, End, PageUp and PageDown move the highlight, Enter and Space toggle it, Escape closes the list and returns focus to the input, and a typed character moves focus to the input. aria-expanded and aria-controls stay on the input.",
|
|
934
1010
|
"Changes are announced as well as drawn: a value added with the count now held, a value removed with its label and the count left, a value moved with its new position, and the limit when it is reached. The status row announces how many options match the query."
|
|
935
1011
|
]
|
|
936
1012
|
}
|
|
@@ -970,6 +1046,8 @@
|
|
|
970
1046
|
"--slotted-disabled-background",
|
|
971
1047
|
"--slotted-disabled-border",
|
|
972
1048
|
"--slotted-disabled-foreground",
|
|
1049
|
+
"--slotted-duration-instant",
|
|
1050
|
+
"--slotted-duration-long",
|
|
973
1051
|
"--slotted-duration-medium",
|
|
974
1052
|
"--slotted-duration-short",
|
|
975
1053
|
"--slotted-easing-enter",
|
|
@@ -979,7 +1057,9 @@
|
|
|
979
1057
|
"--slotted-focus-ring-color-invalid",
|
|
980
1058
|
"--slotted-focus-ring-offset",
|
|
981
1059
|
"--slotted-focus-ring-width",
|
|
1060
|
+
"--slotted-font-family-heading",
|
|
982
1061
|
"--slotted-font-family-sans",
|
|
1062
|
+
"--slotted-font-size-md",
|
|
983
1063
|
"--slotted-font-size-xs",
|
|
984
1064
|
"--slotted-font-weight-medium",
|
|
985
1065
|
"--slotted-font-weight-semibold",
|
|
@@ -1034,10 +1114,16 @@
|
|
|
1034
1114
|
"--slotted-overlay-max-block-size",
|
|
1035
1115
|
"--slotted-radius-lg",
|
|
1036
1116
|
"--slotted-radius-none",
|
|
1117
|
+
"--slotted-scrim",
|
|
1037
1118
|
"--slotted-shadow-md",
|
|
1119
|
+
"--slotted-sheet-scrim",
|
|
1038
1120
|
"--slotted-space-1",
|
|
1121
|
+
"--slotted-space-11",
|
|
1122
|
+
"--slotted-space-12",
|
|
1039
1123
|
"--slotted-space-2",
|
|
1124
|
+
"--slotted-space-4",
|
|
1040
1125
|
"--slotted-space-5",
|
|
1126
|
+
"--slotted-space-7",
|
|
1041
1127
|
"--slotted-surface-raised",
|
|
1042
1128
|
"--slotted-surface-sunken",
|
|
1043
1129
|
"--slotted-target-comfortable",
|
|
@@ -68,7 +68,16 @@ export default function MultiSelectBasic() {
|
|
|
68
68
|
| `trigger` | button | yes |
|
|
69
69
|
| `arrow` | span | yes |
|
|
70
70
|
| `positioner` | div, rendered by MultiSelectContent | yes |
|
|
71
|
-
| `
|
|
71
|
+
| `backdrop` | div | no |
|
|
72
|
+
| `content` | div with role="listbox" and aria-multiselectable, or role="dialog" in the sheet | yes |
|
|
73
|
+
| `grip` | span | no |
|
|
74
|
+
| `header` | div | no |
|
|
75
|
+
| `title` | div | no |
|
|
76
|
+
| `search` | div, drawn only in the sheet | no |
|
|
77
|
+
| `search-icon` | span, aria-hidden | no |
|
|
78
|
+
| `search-input` | input with role="combobox" | no |
|
|
79
|
+
| `list` | div with role="listbox" and aria-multiselectable, drawn only in the sheet | no |
|
|
80
|
+
| `footer` | footer, drawn only in the sheet | no |
|
|
72
81
|
| `chosen` | div | no |
|
|
73
82
|
| `group` | div with role="group" | no |
|
|
74
83
|
| `group-label` | div | no |
|
|
@@ -133,6 +142,7 @@ export default function MultiSelectBasic() {
|
|
|
133
142
|
| `shift` | `boolean` | true | MultiSelect | Whether the list slides along its side to stay in view. |
|
|
134
143
|
| `hideWhenDetached` | `boolean` | true | MultiSelect | Whether the list hides when the control scrolls out of its clipping container. |
|
|
135
144
|
| `portal` | `boolean` | true | MultiSelect | Whether the list is portalled to the end of the document. |
|
|
145
|
+
| `presentation` | `'popover' \| 'auto'` | auto | MultiSelect | auto, the default, draws the listbox 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 choice keeps it open; Done in its footer, a release past the threshold, its 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. |
|
|
136
146
|
| `fullWidth` | `boolean` | true | MultiSelect | Whether the control fills the width of its container. |
|
|
137
147
|
| `disabled` | `boolean` | false | MultiSelect | Whether the control is disabled: it takes no input, draws no remove buttons and leaves the tab order. |
|
|
138
148
|
| `readOnly` | `boolean` | false | MultiSelect | Whether the values can be read and copied but not changed. The input stays focusable; the list, the remove buttons and the clear button are withheld. |
|
|
@@ -198,6 +208,7 @@ export default function MultiSelectBasic() {
|
|
|
198
208
|
| `shift` | `true`, `false` | `true` |
|
|
199
209
|
| `hideWhenDetached` | `true`, `false` | `true` |
|
|
200
210
|
| `portal` | `true`, `false` | `true` |
|
|
211
|
+
| `presentation` | `popover`, `auto` | `auto` |
|
|
201
212
|
| `fullWidth` | `true`, `false` | `true` |
|
|
202
213
|
| `disabled` | `true`, `false` | `false` |
|
|
203
214
|
| `readOnly` | `true`, `false` | `false` |
|
|
@@ -210,11 +221,12 @@ export default function MultiSelectBasic() {
|
|
|
210
221
|
- The input is the tab stop of the control. The tags, their remove buttons and the trigger carry tabindex="-1", as the combobox and grid patterns ask; the clear button, while it is drawn, is in the tab order.
|
|
211
222
|
- The tags are a layout grid with one row, which leaves ArrowDown and ArrowUp to the list. Focus lands on a tag rather than on its remove button, and Delete and Backspace do what the button does. The grid carries the number of chosen values as its name.
|
|
212
223
|
- The list sets aria-multiselectable, and selection does not follow the highlight: moving through the options chooses nothing until Enter or a press. This departs from the note in the combobox pattern, as every implementation surveyed does.
|
|
224
|
+
- After a tap on a touch screen the list holds focus instead of the input, with aria-activedescendant naming the highlighted option: the arrow keys, Home, End, PageUp and PageDown move the highlight, Enter and Space toggle it, Escape closes the list and returns focus to the input, and a typed character moves focus to the input. aria-expanded and aria-controls stay on the input.
|
|
213
225
|
- Changes are announced as well as drawn: a value added with the count now held, a value removed with its label and the count left, a value moved with its new position, and the limit when it is reached. The status row announces how many options match the query.
|
|
214
226
|
|
|
215
227
|
## Tokens
|
|
216
228
|
|
|
217
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-multi-select-action-active-background`, `--slotted-multi-select-action-color`, `--slotted-multi-select-action-hover-background`, `--slotted-multi-select-action-size`, `--slotted-multi-select-arrow-color`, `--slotted-multi-select-autofill-background`, `--slotted-multi-select-background`, `--slotted-multi-select-border-color`, `--slotted-multi-select-color`, `--slotted-multi-select-content-border-color`, `--slotted-multi-select-content-padding-block`, `--slotted-multi-select-content-padding-inline`, `--slotted-multi-select-content-radius`, `--slotted-multi-select-content-shadow`, `--slotted-multi-select-content-text`, `--slotted-multi-select-content-text-muted`, `--slotted-multi-select-counter-color`, `--slotted-multi-select-counter-complete-color`, `--slotted-multi-select-disabled-background`, `--slotted-multi-select-disabled-border-color`, `--slotted-multi-select-disabled-color`, `--slotted-multi-select-field-basis`, `--slotted-multi-select-field-min`, `--slotted-multi-select-group-label-height`, `--slotted-multi-select-highlight`, `--slotted-multi-select-highlight-active`, `--slotted-multi-select-highlight-ring`, `--slotted-multi-select-hover-border-color`, `--slotted-multi-select-icon-size-min`, `--slotted-multi-select-invalid-border-color`, `--slotted-multi-select-invalid-edge-width`, `--slotted-multi-select-invalid-focus-ring-color`, `--slotted-multi-select-item-radius`, `--slotted-multi-select-measure`, `--slotted-multi-select-open-border-color`, `--slotted-multi-select-placeholder-color`, `--slotted-multi-select-plain-hover-background`, `--slotted-multi-select-radius`, `--slotted-multi-select-readonly-background`, `--slotted-multi-select-selected-color`, `--slotted-multi-select-separator-color`, `--slotted-multi-select-shadow`, `--slotted-multi-select-subtle-background`, `--slotted-multi-select-subtle-border-color`, `--slotted-multi-select-subtle-hover-background`, `--slotted-multi-select-surface`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
229
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--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-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-md`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-multi-select-action-active-background`, `--slotted-multi-select-action-color`, `--slotted-multi-select-action-hover-background`, `--slotted-multi-select-action-size`, `--slotted-multi-select-arrow-color`, `--slotted-multi-select-autofill-background`, `--slotted-multi-select-background`, `--slotted-multi-select-border-color`, `--slotted-multi-select-color`, `--slotted-multi-select-content-border-color`, `--slotted-multi-select-content-padding-block`, `--slotted-multi-select-content-padding-inline`, `--slotted-multi-select-content-radius`, `--slotted-multi-select-content-shadow`, `--slotted-multi-select-content-text`, `--slotted-multi-select-content-text-muted`, `--slotted-multi-select-counter-color`, `--slotted-multi-select-counter-complete-color`, `--slotted-multi-select-disabled-background`, `--slotted-multi-select-disabled-border-color`, `--slotted-multi-select-disabled-color`, `--slotted-multi-select-field-basis`, `--slotted-multi-select-field-min`, `--slotted-multi-select-group-label-height`, `--slotted-multi-select-highlight`, `--slotted-multi-select-highlight-active`, `--slotted-multi-select-highlight-ring`, `--slotted-multi-select-hover-border-color`, `--slotted-multi-select-icon-size-min`, `--slotted-multi-select-invalid-border-color`, `--slotted-multi-select-invalid-edge-width`, `--slotted-multi-select-invalid-focus-ring-color`, `--slotted-multi-select-item-radius`, `--slotted-multi-select-measure`, `--slotted-multi-select-open-border-color`, `--slotted-multi-select-placeholder-color`, `--slotted-multi-select-plain-hover-background`, `--slotted-multi-select-radius`, `--slotted-multi-select-readonly-background`, `--slotted-multi-select-selected-color`, `--slotted-multi-select-separator-color`, `--slotted-multi-select-shadow`, `--slotted-multi-select-subtle-background`, `--slotted-multi-select-subtle-border-color`, `--slotted-multi-select-subtle-hover-background`, `--slotted-multi-select-surface`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-scrim`, `--slotted-shadow-md`, `--slotted-sheet-scrim`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
218
230
|
|
|
219
231
|
## Examples
|
|
220
232
|
|
package/dist/docs/popover.json
CHANGED
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
"header",
|
|
130
130
|
"title",
|
|
131
131
|
"description",
|
|
132
|
+
"actions",
|
|
132
133
|
"body",
|
|
133
134
|
"footer",
|
|
134
135
|
"close",
|
|
@@ -142,7 +143,7 @@
|
|
|
142
143
|
"docs": {
|
|
143
144
|
"popover": {
|
|
144
145
|
"imports": {
|
|
145
|
-
"source": "import {\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverBody,\n PopoverClose,\n PopoverContent,\n PopoverDefaultsProvider,\n PopoverDescription,\n PopoverFooter,\n PopoverHeader,\n PopoverLayer,\n PopoverTitle,\n PopoverTrigger,\n} from '@slotted/react';"
|
|
146
|
+
"source": "import {\n Popover,\n PopoverActions,\n PopoverAnchor,\n PopoverArrow,\n PopoverBody,\n PopoverClose,\n PopoverContent,\n PopoverDefaultsProvider,\n PopoverDescription,\n PopoverFooter,\n PopoverHeader,\n PopoverLayer,\n PopoverTitle,\n PopoverTrigger,\n} from '@slotted/react';"
|
|
146
147
|
},
|
|
147
148
|
"anatomy": [
|
|
148
149
|
{
|
|
@@ -185,7 +186,13 @@
|
|
|
185
186
|
"part": "footer",
|
|
186
187
|
"element": "div",
|
|
187
188
|
"required": false,
|
|
188
|
-
"purpose": "The actions row, separated from the body by a rule and kept under it. A sheet with no footer written draws one holding a full-width secondary Close button."
|
|
189
|
+
"purpose": "The actions row, separated from the body by a rule and kept under it. Every action of the panel goes here, Save, Apply and Clear included, also when the rest of the panel is a composition of your own inside PopoverContent. A sheet with no footer written draws one holding a full-width secondary Close button, the footer for content with nothing to act on, such as a help text. A row of actions written anywhere but PopoverFooter stands above that Close as a second footer."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"part": "actions",
|
|
193
|
+
"element": "div",
|
|
194
|
+
"required": false,
|
|
195
|
+
"purpose": "One or two actions of the header, such as a reload, on the title’s row: after the title and before the close button, or at the end of a centred header."
|
|
189
196
|
},
|
|
190
197
|
{
|
|
191
198
|
"part": "close",
|
|
@@ -209,7 +216,7 @@
|
|
|
209
216
|
"part": "grip",
|
|
210
217
|
"element": "span",
|
|
211
218
|
"required": false,
|
|
212
|
-
"purpose": "The line at the top of that sheet, hidden from assistive technology. A
|
|
219
|
+
"purpose": "The line at the top of that sheet, hidden from assistive technology. A mouse pulls the sheet by it; a touch moves the sheet anywhere on it."
|
|
213
220
|
},
|
|
214
221
|
{
|
|
215
222
|
"part": "focus-guard",
|
|
@@ -343,7 +350,14 @@
|
|
|
343
350
|
"type": "'popover' | 'auto'",
|
|
344
351
|
"defaultValue": "popover",
|
|
345
352
|
"appliesTo": "Popover",
|
|
346
|
-
"description": "auto presents the panel as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, with a scrim, a grip and focus held in it, headed by PopoverTitle or by the panel’s aria-label. A
|
|
353
|
+
"description": "auto presents the panel as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, with a scrim, a grip and focus held in it, headed by PopoverTitle or by the panel’s aria-label. A touch anywhere on it, or a mouse on the grip, moves the sheet, as every bottom sheet moves, and a release past the threshold closes it by the same slide down as its scrim, Escape and the full-width Close. It reads the --slotted-sheet-* tokens every bottom sheet reads. A panel with actions writes them in PopoverFooter, which replaces the sheet’s Close footer; the footer row below states the rule."
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "align",
|
|
357
|
+
"type": "'start' | 'center'",
|
|
358
|
+
"defaultValue": "start",
|
|
359
|
+
"appliesTo": "PopoverHeader",
|
|
360
|
+
"description": "center sets the title in the middle, the PopoverClose before it and PopoverActions after it, the bar a phone app draws over its content. A centred header draws the PopoverClose written in it in a sheet too, where a header set at the start draws none."
|
|
347
361
|
},
|
|
348
362
|
{
|
|
349
363
|
"name": "disabled",
|
|
@@ -464,22 +478,13 @@
|
|
|
464
478
|
"tokens": [
|
|
465
479
|
"--slotted-border-strong",
|
|
466
480
|
"--slotted-border-subtle",
|
|
481
|
+
"--slotted-border-width-thick",
|
|
467
482
|
"--slotted-border-width-thin",
|
|
468
483
|
"--slotted-control-gap-md",
|
|
469
484
|
"--slotted-control-height-sm",
|
|
470
485
|
"--slotted-control-radius",
|
|
471
486
|
"--slotted-control-transition-duration",
|
|
472
487
|
"--slotted-control-transition-easing",
|
|
473
|
-
"--slotted-drawer-border-color",
|
|
474
|
-
"--slotted-drawer-radius",
|
|
475
|
-
"--slotted-drawer-resizer-line-color",
|
|
476
|
-
"--slotted-drawer-scrim",
|
|
477
|
-
"--slotted-drawer-scrim-backdrop-filter",
|
|
478
|
-
"--slotted-drawer-slide-duration",
|
|
479
|
-
"--slotted-drawer-slide-easing",
|
|
480
|
-
"--slotted-drawer-slide-exit-duration",
|
|
481
|
-
"--slotted-drawer-slide-exit-easing",
|
|
482
|
-
"--slotted-drawer-surface",
|
|
483
488
|
"--slotted-duration-long",
|
|
484
489
|
"--slotted-duration-medium",
|
|
485
490
|
"--slotted-duration-short",
|
|
@@ -524,7 +529,19 @@
|
|
|
524
529
|
"--slotted-scrim",
|
|
525
530
|
"--slotted-shadow-lg",
|
|
526
531
|
"--slotted-shadow-md",
|
|
532
|
+
"--slotted-sheet-border-color",
|
|
533
|
+
"--slotted-sheet-exit-duration",
|
|
534
|
+
"--slotted-sheet-exit-easing",
|
|
535
|
+
"--slotted-sheet-grip-color",
|
|
536
|
+
"--slotted-sheet-inline-size",
|
|
537
|
+
"--slotted-sheet-radius",
|
|
538
|
+
"--slotted-sheet-scrim",
|
|
539
|
+
"--slotted-sheet-scrim-backdrop-filter",
|
|
540
|
+
"--slotted-sheet-slide-duration",
|
|
541
|
+
"--slotted-sheet-slide-easing",
|
|
542
|
+
"--slotted-sheet-surface",
|
|
527
543
|
"--slotted-space-11",
|
|
544
|
+
"--slotted-space-12",
|
|
528
545
|
"--slotted-space-2",
|
|
529
546
|
"--slotted-space-3",
|
|
530
547
|
"--slotted-space-4",
|
package/dist/docs/popover.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
```tsx
|
|
9
9
|
import {
|
|
10
10
|
Popover,
|
|
11
|
+
PopoverActions,
|
|
11
12
|
PopoverAnchor,
|
|
12
13
|
PopoverArrow,
|
|
13
14
|
PopoverBody,
|
|
@@ -101,6 +102,7 @@ export default function PopoverBasic() {
|
|
|
101
102
|
| `description` | p | no |
|
|
102
103
|
| `body` | div | no |
|
|
103
104
|
| `footer` | div | no |
|
|
105
|
+
| `actions` | div | no |
|
|
104
106
|
| `close` | button | no |
|
|
105
107
|
| `arrow` | div | no |
|
|
106
108
|
| `backdrop` | div | no |
|
|
@@ -128,7 +130,8 @@ export default function PopoverBasic() {
|
|
|
128
130
|
| `followPointer` | `boolean \| 'x' \| 'y' \| 'entry'` | false | Popover | Whether the panel stands against the pointer over the trigger instead of the trigger's box, for a trigger with no small point of its own. true follows the pointer; x takes its horizontal position on the trigger's edge; y the converse; entry holds the point it opened at: where the pointer pressed for a popover, where it entered for a hover card. Opened from the keyboard, it stands against the trigger. |
|
|
129
131
|
| `hideWhenDetached` | `boolean` | false | Popover | Whether the panel hides when its anchor scrolls out of view. It is off, unlike Tooltip’s, so a task the reader is halfway through does not disappear when the row behind it scrolls. |
|
|
130
132
|
| `portal` | `boolean` | true | Popover | Whether the layer is rendered into the shared portal root at the end of the document. The portalled layer keeps the theme, color scheme, density and direction of the region it was opened from. |
|
|
131
|
-
| `presentation` | `'popover' \| 'auto'` | popover | Popover | auto presents the panel as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, with a scrim, a grip and focus held in it, headed by PopoverTitle or by the panel’s aria-label. A
|
|
133
|
+
| `presentation` | `'popover' \| 'auto'` | popover | Popover | auto presents the panel as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, with a scrim, a grip and focus held in it, headed by PopoverTitle or by the panel’s aria-label. A touch anywhere on it, or a mouse on the grip, moves the sheet, as every bottom sheet moves, and a release past the threshold closes it by the same slide down as its scrim, Escape and the full-width Close. It reads the --slotted-sheet-* tokens every bottom sheet reads. A panel with actions writes them in PopoverFooter, which replaces the sheet’s Close footer; the footer row below states the rule. |
|
|
134
|
+
| `align` | `'start' \| 'center'` | start | PopoverHeader | center sets the title in the middle, the PopoverClose before it and PopoverActions after it, the bar a phone app draws over its content. A centred header draws the PopoverClose written in it in a sheet too, where a header set at the start draws none. |
|
|
132
135
|
| `disabled` | `boolean` | false | Popover | Whether the popover never opens. It does not disable the trigger; set disabled on the trigger element for that. |
|
|
133
136
|
| `messages` | `Partial<PopoverMessages>` | — | Popover | Text that replaces the language’s messages for this popover, key by key. close is the close button’s accessible name; an aria-label on PopoverClose takes precedence. |
|
|
134
137
|
| `sideOffset` | `number` | 0 | Popover | Extra distance from the anchor in pixels, added to the standard gap. |
|
|
@@ -180,7 +183,7 @@ export default function PopoverBasic() {
|
|
|
180
183
|
|
|
181
184
|
## Tokens
|
|
182
185
|
|
|
183
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-gap-md`, `--slotted-control-height-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-
|
|
186
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-gap-md`, `--slotted-control-height-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-sm`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-popover-arrow-size`, `--slotted-popover-arrow-tip-radius`, `--slotted-popover-backdrop-filter`, `--slotted-popover-border-color`, `--slotted-popover-gap`, `--slotted-popover-measure`, `--slotted-popover-measure-lg`, `--slotted-popover-measure-sm`, `--slotted-popover-padding-block`, `--slotted-popover-padding-block-lg`, `--slotted-popover-padding-block-sm`, `--slotted-popover-padding-inline`, `--slotted-popover-padding-inline-lg`, `--slotted-popover-padding-inline-sm`, `--slotted-popover-radius`, `--slotted-popover-shadow`, `--slotted-popover-surface`, `--slotted-popover-text`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--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-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
184
187
|
|
|
185
188
|
## Examples
|
|
186
189
|
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"part": "form",
|
|
116
116
|
"element": "form",
|
|
117
117
|
"required": false,
|
|
118
|
-
"purpose": "A Field with the name label, a TextField and the error, then Cancel and the submit: in the row for a rename, above the footer for Save as new view
|
|
118
|
+
"purpose": "A Field with the name label, a TextField and the error, then Cancel and the submit: in the row for a rename, above the footer for Save as new view…. On a phone, where the views are a bottom sheet, the name is typed in a second sheet over it, a Dialog titled New view or Rename with Cancel and the submit on its footer."
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
"part": "footer",
|
|
@@ -236,8 +236,6 @@
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
"tokens": [
|
|
239
|
-
"--slotted-border-subtle",
|
|
240
|
-
"--slotted-border-width-thin",
|
|
241
239
|
"--slotted-control-border-color",
|
|
242
240
|
"--slotted-control-border-width",
|
|
243
241
|
"--slotted-control-font-size-md",
|
|
@@ -266,7 +264,9 @@
|
|
|
266
264
|
"--slotted-space-2",
|
|
267
265
|
"--slotted-space-3",
|
|
268
266
|
"--slotted-space-4",
|
|
267
|
+
"--slotted-space-7",
|
|
269
268
|
"--slotted-surface-sunken",
|
|
269
|
+
"--slotted-target-comfortable",
|
|
270
270
|
"--slotted-text",
|
|
271
271
|
"--slotted-text-muted",
|
|
272
272
|
"--slotted-tone-accent-solid",
|
package/dist/docs/saved-views.md
CHANGED
|
@@ -148,7 +148,7 @@ export default function SavedViewsBasic() {
|
|
|
148
148
|
|
|
149
149
|
## Tokens
|
|
150
150
|
|
|
151
|
-
`--slotted-
|
|
151
|
+
`--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-md`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-duration-instant`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-saved-views-panel-inline-size`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-7`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
152
152
|
|
|
153
153
|
## Examples
|
|
154
154
|
|
|
@@ -1229,6 +1229,57 @@ export default function SelectNarrow() {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
```
|
|
1231
1231
|
|
|
1232
|
+
### phone-sheet.tsx
|
|
1233
|
+
|
|
1234
|
+
Example
|
|
1235
|
+
|
|
1236
|
+
```tsx
|
|
1237
|
+
import { Field, FieldLabel } from '@slotted/react/field';
|
|
1238
|
+
import {
|
|
1239
|
+
Select,
|
|
1240
|
+
SelectContent,
|
|
1241
|
+
SelectDefaultsProvider,
|
|
1242
|
+
SelectItem,
|
|
1243
|
+
type SelectOption,
|
|
1244
|
+
SelectTrigger,
|
|
1245
|
+
SelectValue,
|
|
1246
|
+
} from '@slotted/react/select';
|
|
1247
|
+
|
|
1248
|
+
const WAREHOUSES: SelectOption[] = [
|
|
1249
|
+
{ value: 'atl', label: 'Atlanta, GA' },
|
|
1250
|
+
{ value: 'chi', label: 'Chicago, IL' },
|
|
1251
|
+
{ value: 'dal', label: 'Dallas, TX' },
|
|
1252
|
+
{ value: 'den', label: 'Denver, CO' },
|
|
1253
|
+
{ value: 'lax', label: 'Los Angeles, CA' },
|
|
1254
|
+
{ value: 'mia', label: 'Miami, FL' },
|
|
1255
|
+
{ value: 'nyc', label: 'New York, NY' },
|
|
1256
|
+
{ value: 'phx', label: 'Phoenix, AZ' },
|
|
1257
|
+
{ value: 'sea', label: 'Seattle, WA' },
|
|
1258
|
+
];
|
|
1259
|
+
|
|
1260
|
+
export default function SelectPhoneSheet() {
|
|
1261
|
+
return (
|
|
1262
|
+
<SelectDefaultsProvider presentation="auto">
|
|
1263
|
+
<Field>
|
|
1264
|
+
<FieldLabel>Ship from</FieldLabel>
|
|
1265
|
+
<Select defaultValue="chi" items={WAREHOUSES}>
|
|
1266
|
+
<SelectTrigger>
|
|
1267
|
+
<SelectValue placeholder="Choose a warehouse" />
|
|
1268
|
+
</SelectTrigger>
|
|
1269
|
+
<SelectContent>
|
|
1270
|
+
{WAREHOUSES.map((warehouse) => (
|
|
1271
|
+
<SelectItem key={warehouse.value} value={warehouse.value}>
|
|
1272
|
+
{warehouse.label}
|
|
1273
|
+
</SelectItem>
|
|
1274
|
+
))}
|
|
1275
|
+
</SelectContent>
|
|
1276
|
+
</Select>
|
|
1277
|
+
</Field>
|
|
1278
|
+
</SelectDefaultsProvider>
|
|
1279
|
+
);
|
|
1280
|
+
}
|
|
1281
|
+
```
|
|
1282
|
+
|
|
1232
1283
|
### status-filter.tsx
|
|
1233
1284
|
|
|
1234
1285
|
Example
|