@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/filter-bar.md
CHANGED
|
@@ -94,12 +94,36 @@ export default function FilterBarBasicExample() {
|
|
|
94
94
|
| `add-group` | button | yes |
|
|
95
95
|
| `remove-group` | button | no |
|
|
96
96
|
| `save-preset` | button | no |
|
|
97
|
+
| `sheet` | div | no |
|
|
98
|
+
| `sheet-locked` | p | no |
|
|
99
|
+
| `sheet-row` | button | no |
|
|
100
|
+
| `sheet-label` | span | no |
|
|
101
|
+
| `sheet-value` | span | no |
|
|
102
|
+
| `sheet-mark` | span | no |
|
|
103
|
+
| `sheet-clear` | button | no |
|
|
104
|
+
| `sheet-actions` | div | no |
|
|
105
|
+
| `sheet-more` | button | no |
|
|
106
|
+
| `sheet-show` | button | no |
|
|
107
|
+
| `sheet-list` | div | no |
|
|
108
|
+
| `sheet-search` | div | no |
|
|
109
|
+
| `sheet-options` | div | no |
|
|
110
|
+
| `sheet-group` | div | no |
|
|
111
|
+
| `sheet-option` | button | no |
|
|
112
|
+
| `sheet-option-label` | span | no |
|
|
113
|
+
| `sheet-option-context` | span | no |
|
|
114
|
+
| `sheet-option-check` | span | no |
|
|
115
|
+
| `sheet-placeholder` | div | no |
|
|
116
|
+
| `sheet-notice` | div | no |
|
|
117
|
+
| `sheet-editor` | div | no |
|
|
118
|
+
| `sheet-range` | div | no |
|
|
119
|
+
| `sheet-remove` | button | no |
|
|
120
|
+
| `sheet-apply` | button | no |
|
|
97
121
|
|
|
98
122
|
## Props
|
|
99
123
|
|
|
100
124
|
| Name | Type | Default | Applies to | Description |
|
|
101
125
|
| --- | --- | --- | --- | --- |
|
|
102
|
-
| `fields` | `FilterBarField[]` | — | FilterBar | The filterable fields: key, label, kind, icon (glyph name or node), operators, pinned, required, defaultValue, section, options,
|
|
126
|
+
| `fields` | `FilterBarField[]` | — | FilterBar | The filterable fields: key, label, kind, icon (glyph name or node), operators, pinned, required, defaultValue, section, searchable, options (value, label, group, context, searchText), multiple, sheet (hidden, order, operator, format, editor), status and onRetry |
|
|
103
127
|
| `value` | `FilterGroup \| null` | — | FilterBar | The tree the consumer owns. Present means controlled, for the life of the bar |
|
|
104
128
|
| `defaultValue` | `FilterGroup \| null` | — | FilterBar | Where an uncontrolled bar starts, read once |
|
|
105
129
|
| `query` | `string` | — | FilterBar | The global search, controlled |
|
|
@@ -112,16 +136,18 @@ export default function FilterBarBasicExample() {
|
|
|
112
136
|
| `revealed` | `boolean` | — | FilterBar | Whether the folded chips are in view, controlled |
|
|
113
137
|
| `defaultRevealed` | `boolean` | false | FilterBar | Whether they start in view |
|
|
114
138
|
| `apply` | `'live' \| 'manual'` | live | FilterBar | Requests on every edit, or edits a draft until Apply |
|
|
139
|
+
| `presentation` | `'builder' \| 'sheet' \| 'auto'` | auto | FilterBar | The builder, a sheet of one row per field, or the sheet below 36rem of viewport and the builder above |
|
|
140
|
+
| `chips` | `'inline' \| 'none' \| 'auto'` | auto | FilterBar | A chip per rule on the bar, none, or none under the sheet and inline under the builder |
|
|
115
141
|
| `sticky` | `boolean` | false | FilterBar | Sticks under the page header and adds its height to what follows |
|
|
116
142
|
| `container` | `Element \| null` | — | FilterBar | A parent for the builder drawer only, instead of the shared portal root |
|
|
117
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | FilterBar | The step of the
|
|
143
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | FilterBar | The step of every control the bar draws: the search, the chips, the builder, the rule popover and their footers. |
|
|
118
144
|
| `queryDelay` | `number` | 320 | FilterBar | Milliseconds the search and a text operand wait under live |
|
|
119
145
|
| `chipLimit` | `number` | 6 | FilterBar | Chips in view before folding |
|
|
120
146
|
| `shortcut` | `string \| null` | null | FilterBar | The document key that focuses the search, outside an editable field |
|
|
121
147
|
| `disabled` | `boolean` | false | FilterBar | Turns off every control |
|
|
122
148
|
| `readOnly` | `boolean` | false | FilterBar | Every condition reachable and readable, none changeable: no X, add, clear or empty pills |
|
|
123
149
|
| `loading` | `boolean` | false | FilterBar | Keeps the width, turns off Apply, spinner in place of the count |
|
|
124
|
-
| `count` | `number` | — | FilterBar | How many rows the filter kept |
|
|
150
|
+
| `count` | `number` | — | FilterBar | How many rows the filter kept; the sheet’s primary action reads it |
|
|
125
151
|
| `total` | `number` | — | FilterBar | How many there are |
|
|
126
152
|
| `messages` | `Partial<FilterBarMessages>` | — | FilterBar | Words over those of the current locale, key by key: the landmark name (bar), the controls, the chip names, the count and the announcements |
|
|
127
153
|
| `renderOperand` | `(props: FilterBarOperandProps) => ReactNode` | — | FilterBar | Replaces the operand control; undefined keeps the one for the kind |
|
|
@@ -150,6 +176,8 @@ export default function FilterBarBasicExample() {
|
|
|
150
176
|
| `apply` | `live`, `manual` | `live` |
|
|
151
177
|
| `sticky` | `false`, `true` | `false` |
|
|
152
178
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
179
|
+
| `presentation` | `builder`, `sheet`, `auto` | — |
|
|
180
|
+
| `chips` | `inline`, `none`, `auto` | — |
|
|
153
181
|
|
|
154
182
|
## Rules
|
|
155
183
|
|
|
@@ -162,7 +190,7 @@ export default function FilterBarBasicExample() {
|
|
|
162
190
|
|
|
163
191
|
## Tokens
|
|
164
192
|
|
|
165
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--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-invalid-edge-width`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--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-standard`, `--slotted-filter-bar-chip-seam`, `--slotted-filter-bar-color`, `--slotted-filter-bar-color-muted`, `--slotted-filter-bar-editor-size`, `--slotted-filter-bar-font-family`, `--slotted-filter-bar-gap`, `--slotted-filter-bar-group-border`, `--slotted-filter-bar-group-surface`, `--slotted-filter-bar-join-size`, `--slotted-filter-bar-pill-border`, `--slotted-filter-bar-pill-radius`, `--slotted-filter-bar-search-max`, `--slotted-filter-bar-surface`, `--slotted-filter-bar-value-max`, `--slotted-filter-bar-value-max-narrow`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
193
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--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-invalid-edge-width`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--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-standard`, `--slotted-filter-bar-chip-seam`, `--slotted-filter-bar-color`, `--slotted-filter-bar-color-muted`, `--slotted-filter-bar-editor-size`, `--slotted-filter-bar-font-family`, `--slotted-filter-bar-gap`, `--slotted-filter-bar-group-border`, `--slotted-filter-bar-group-surface`, `--slotted-filter-bar-join-size`, `--slotted-filter-bar-pill-border`, `--slotted-filter-bar-pill-radius`, `--slotted-filter-bar-search-max`, `--slotted-filter-bar-sheet-group-height`, `--slotted-filter-bar-sheet-option-height`, `--slotted-filter-bar-sheet-row-height`, `--slotted-filter-bar-surface`, `--slotted-filter-bar-value-max`, `--slotted-filter-bar-value-max-narrow`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
166
194
|
|
|
167
195
|
## Examples
|
|
168
196
|
|
|
@@ -140,5 +140,6 @@ Every active rule, one line each. Load this first; load a topic file when the ta
|
|
|
140
140
|
| SC-04 | SHOULD | The search region carries one space step of leading margin beyond the bar's own gap. | `shell-composition.md` |
|
|
141
141
|
| SC-05 | SHOULD | Below the bar's high step the actions hold the search toggle, the bell, the help and the account; a product's own `action` leaves the bar and stays reachable from the navigation column or the palette. | `shell-composition.md` |
|
|
142
142
|
| SC-06 | SHOULD | Where the primary input is a touch screen — `(hover: none) and (pointer: coarse)` — a shortcut drawn as a hint is not shown. | `shell-composition.md` |
|
|
143
|
+
| SC-07 | MUST | Every action of the panel stands in the popover's `footer` part, and nowhere else in the panel. | `shell-composition.md` |
|
|
143
144
|
| WS-01 | SHOULD | Below 600 pixels the workspace shows the queue, and opening a row goes to the row's own address, where the record's page holds the other two regions, the third under the second; the back gesture returns to the queue. | `workspaces.md` |
|
|
144
145
|
| WS-02 | SHOULD | The score is shown as a table of its criteria, each with the points it earned or none of its points, ending in the summary row that adds back up to the score and says where a cap applies, and its band is one mark beside one sentence giving the thresholds. | `workspaces.md` |
|
|
@@ -19,6 +19,9 @@ triggers:
|
|
|
19
19
|
layer,
|
|
20
20
|
host,
|
|
21
21
|
popover,
|
|
22
|
+
footer,
|
|
23
|
+
sheet,
|
|
24
|
+
bottom sheet,
|
|
22
25
|
notification-center,
|
|
23
26
|
brand,
|
|
24
27
|
]
|
|
@@ -92,3 +95,13 @@ Why: The legend names a key the reader has no way to press; on a phone it is noi
|
|
|
92
95
|
Do: Hide the hint under the media query. Keep a `kbd` that is content — a settings page listing the application's shortcuts — because it documents rather than hints.
|
|
93
96
|
Don't: Hide the control the hint stands beside, or key the rule on width: a narrow window on a laptop still has a keyboard.
|
|
94
97
|
Check: On a touch screen the search trigger shows the magnifier and the words alone, and the palette's footer is absent.
|
|
98
|
+
|
|
99
|
+
### SC-07 · A panel's actions are its footer
|
|
100
|
+
|
|
101
|
+
Level: MUST
|
|
102
|
+
Applies to: a `popover` whose content holds actions — Save, Apply, Clear, Cancel — whether it is written from the family's parts or is a composition of the consumer's own inside `content`
|
|
103
|
+
Rule: Every action of the panel stands in the popover's `footer` part, and nowhere else in the panel.
|
|
104
|
+
Why: On a phone the popover is a bottom sheet, and a sheet with no `footer` draws one of its own holding a full-width Close, so actions written in the body stand above that Close as a second footer.
|
|
105
|
+
Do: Put the row of actions in `footer`, also when the rest of the panel is the consumer's own markup. Leave a panel with nothing to act on, such as a help text, without a `footer`: the sheet draws its Close there. A header set at the center holds its own `close`, and the sheet draws no footer under it.
|
|
106
|
+
Don't: Draw a row of buttons at the end of `body` or of a consumer region, or add a Close button of the consumer's own beside the one the sheet draws.
|
|
107
|
+
Check: At 390px with a coarse pointer, open each popover: the sheet ends in exactly one footer, and it holds the panel's actions or the single Close.
|
|
@@ -615,6 +615,56 @@ export default function ListItemEndPlacementExample() {
|
|
|
615
615
|
}
|
|
616
616
|
```
|
|
617
617
|
|
|
618
|
+
### meta.tsx
|
|
619
|
+
|
|
620
|
+
Example
|
|
621
|
+
|
|
622
|
+
```tsx
|
|
623
|
+
import { List } from '@slotted/react/list';
|
|
624
|
+
import {
|
|
625
|
+
ListItem,
|
|
626
|
+
ListItemBody,
|
|
627
|
+
ListItemContent,
|
|
628
|
+
ListItemEnd,
|
|
629
|
+
ListItemLabel,
|
|
630
|
+
ListItemMeta,
|
|
631
|
+
} from '@slotted/react/list-item';
|
|
632
|
+
|
|
633
|
+
const STATEMENTS = [
|
|
634
|
+
{
|
|
635
|
+
month: 'October 2026',
|
|
636
|
+
amount: '$312.40',
|
|
637
|
+
status: 'Partly paid · $312.40 left',
|
|
638
|
+
tone: 'warning',
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
month: 'September 2026',
|
|
642
|
+
amount: '$3,729.13',
|
|
643
|
+
status: 'The bank reports $88.56 more',
|
|
644
|
+
tone: 'danger',
|
|
645
|
+
},
|
|
646
|
+
{ month: 'August 2026', amount: '$1,813.64', status: 'Paid on 08/28', tone: 'secondary' },
|
|
647
|
+
] as const;
|
|
648
|
+
|
|
649
|
+
export default function ListItemMetaExample() {
|
|
650
|
+
return (
|
|
651
|
+
<List aria-label="Statements" variant="ruled">
|
|
652
|
+
{STATEMENTS.map((statement) => (
|
|
653
|
+
<ListItem endPlacement="beside" key={statement.month} tone={statement.tone}>
|
|
654
|
+
<ListItemContent>
|
|
655
|
+
<ListItemBody>
|
|
656
|
+
<ListItemLabel>{statement.month}</ListItemLabel>
|
|
657
|
+
</ListItemBody>
|
|
658
|
+
<ListItemEnd>{statement.amount}</ListItemEnd>
|
|
659
|
+
<ListItemMeta>{statement.status}</ListItemMeta>
|
|
660
|
+
</ListItemContent>
|
|
661
|
+
</ListItem>
|
|
662
|
+
))}
|
|
663
|
+
</List>
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
```
|
|
667
|
+
|
|
618
668
|
### select.tsx
|
|
619
669
|
|
|
620
670
|
Example
|
package/dist/docs/list-item.json
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"label",
|
|
72
72
|
"description",
|
|
73
73
|
"end",
|
|
74
|
+
"meta",
|
|
74
75
|
"actions"
|
|
75
76
|
]
|
|
76
77
|
}
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
"docs": {
|
|
79
80
|
"listItem": {
|
|
80
81
|
"imports": {
|
|
81
|
-
"source": "import { ListItem, ListItemActions, ListItemBody, ListItemButton, ListItemContent, ListItemDefaultsProvider, ListItemDescription, ListItemEnd, ListItemLabel, ListItemLink, ListItemSelect, ListItemStart } from '@slotted/react';"
|
|
82
|
+
"source": "import { ListItem, ListItemActions, ListItemBody, ListItemButton, ListItemContent, ListItemDefaultsProvider, ListItemDescription, ListItemEnd, ListItemLabel, ListItemLink, ListItemMeta, ListItemSelect, ListItemStart } from '@slotted/react';"
|
|
82
83
|
},
|
|
83
84
|
"anatomy": [
|
|
84
85
|
{
|
|
@@ -143,12 +144,19 @@
|
|
|
143
144
|
"required": false,
|
|
144
145
|
"purpose": "Trailing metadata that is part of what the row says — a timestamp, a count, a Badge. Below 22rem it leaves the inline axis and sits under the title."
|
|
145
146
|
},
|
|
147
|
+
{
|
|
148
|
+
"part": "meta",
|
|
149
|
+
"parent": "content",
|
|
150
|
+
"element": "div",
|
|
151
|
+
"required": false,
|
|
152
|
+
"purpose": "The second line of the row, under the label and the end together, so a status sentence beside an amount keeps one line on a narrow screen. It is a direct child of the box, beside body and end."
|
|
153
|
+
},
|
|
146
154
|
{
|
|
147
155
|
"part": "actions",
|
|
148
156
|
"parent": "root",
|
|
149
157
|
"element": "div",
|
|
150
158
|
"required": false,
|
|
151
|
-
"purpose": "Independent targets, and a sibling of the box rather than its child: interactive content may not nest inside an a or a button. A step of space stands above and below the control, so a row of one line is taller than its text where a control needs it."
|
|
159
|
+
"purpose": "Independent targets, and a sibling of the box rather than its child: interactive content may not nest inside an a or a button. A step of space stands above and below the control, so a row of one line is taller than its text where a control needs it. Under actionsColumn=\"reserve\" on the list, a row without actions ends in an empty, aria-hidden actions part with data-reserved, as wide as a default control and the end inset; --slotted-list-item-actions-inline-size, when set, is the width of every actions part."
|
|
152
160
|
}
|
|
153
161
|
],
|
|
154
162
|
"api": [
|
|
@@ -157,7 +165,7 @@
|
|
|
157
165
|
"type": "'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'danger'",
|
|
158
166
|
"defaultValue": "secondary",
|
|
159
167
|
"appliesTo": "ListItem",
|
|
160
|
-
"description": "The ink of the row, the wash under the pointer and the ground of a selected row. It never fills a resting row."
|
|
168
|
+
"description": "The ink of the row, the wash under the pointer and the ground of a selected row. In a row with an end or a meta line, the tone paints those two and the label keeps the text color. It never fills a resting row."
|
|
161
169
|
},
|
|
162
170
|
{
|
|
163
171
|
"name": "size",
|
|
@@ -333,6 +341,7 @@
|
|
|
333
341
|
"--slotted-line-height-md",
|
|
334
342
|
"--slotted-line-height-sm",
|
|
335
343
|
"--slotted-list-fill-inset",
|
|
344
|
+
"--slotted-list-item-actions-inline-size",
|
|
336
345
|
"--slotted-list-item-background",
|
|
337
346
|
"--slotted-list-item-background-active",
|
|
338
347
|
"--slotted-list-item-background-current",
|
|
@@ -561,6 +570,14 @@
|
|
|
561
570
|
"source": "import { Grid } from '@slotted/react/grid';\nimport { List } from '@slotted/react/list';\nimport {\n ListItem,\n ListItemBody,\n ListItemContent,\n ListItemEnd,\n ListItemLabel,\n} from '@slotted/react/list-item';\n\nexport default function ListItemEndPlacementExample() {\n return (\n <Grid columns={2} gap={3} minItemWidth=\"xs\">\n <List aria-label=\"Metadata under the title\" variant=\"framed\">\n <ListItem endPlacement=\"auto\">\n <ListItemContent>\n <ListItemBody>\n <ListItemLabel>Invoice INV-3081</ListItemLabel>\n </ListItemBody>\n <ListItemEnd>$4,280.00</ListItemEnd>\n </ListItemContent>\n </ListItem>\n </List>\n <List aria-label=\"Metadata beside the title\" variant=\"framed\">\n <ListItem endPlacement=\"beside\">\n <ListItemContent>\n <ListItemBody>\n <ListItemLabel>Invoice INV-3082</ListItemLabel>\n </ListItemBody>\n <ListItemEnd>$912.40</ListItemEnd>\n </ListItemContent>\n </ListItem>\n </List>\n </Grid>\n );\n}\n",
|
|
562
571
|
"verdict": "example"
|
|
563
572
|
},
|
|
573
|
+
{
|
|
574
|
+
"id": "meta",
|
|
575
|
+
"title": "meta.tsx",
|
|
576
|
+
"note": null,
|
|
577
|
+
"language": "tsx",
|
|
578
|
+
"source": "import { List } from '@slotted/react/list';\nimport {\n ListItem,\n ListItemBody,\n ListItemContent,\n ListItemEnd,\n ListItemLabel,\n ListItemMeta,\n} from '@slotted/react/list-item';\n\nconst STATEMENTS = [\n {\n month: 'October 2026',\n amount: '$312.40',\n status: 'Partly paid · $312.40 left',\n tone: 'warning',\n },\n {\n month: 'September 2026',\n amount: '$3,729.13',\n status: 'The bank reports $88.56 more',\n tone: 'danger',\n },\n { month: 'August 2026', amount: '$1,813.64', status: 'Paid on 08/28', tone: 'secondary' },\n] as const;\n\nexport default function ListItemMetaExample() {\n return (\n <List aria-label=\"Statements\" variant=\"ruled\">\n {STATEMENTS.map((statement) => (\n <ListItem endPlacement=\"beside\" key={statement.month} tone={statement.tone}>\n <ListItemContent>\n <ListItemBody>\n <ListItemLabel>{statement.month}</ListItemLabel>\n </ListItemBody>\n <ListItemEnd>{statement.amount}</ListItemEnd>\n <ListItemMeta>{statement.status}</ListItemMeta>\n </ListItemContent>\n </ListItem>\n ))}\n </List>\n );\n}\n",
|
|
579
|
+
"verdict": "example"
|
|
580
|
+
},
|
|
564
581
|
{
|
|
565
582
|
"id": "select",
|
|
566
583
|
"title": "select.tsx",
|
package/dist/docs/list-item.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```tsx
|
|
9
|
-
import { ListItem, ListItemActions, ListItemBody, ListItemButton, ListItemContent, ListItemDefaultsProvider, ListItemDescription, ListItemEnd, ListItemLabel, ListItemLink, ListItemSelect, ListItemStart } from '@slotted/react';
|
|
9
|
+
import { ListItem, ListItemActions, ListItemBody, ListItemButton, ListItemContent, ListItemDefaultsProvider, ListItemDescription, ListItemEnd, ListItemLabel, ListItemLink, ListItemMeta, ListItemSelect, ListItemStart } from '@slotted/react';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
@@ -87,13 +87,14 @@ export default function ListItemBasicExample() {
|
|
|
87
87
|
| `label` | `body` | div | no |
|
|
88
88
|
| `description` | `body` | div | no |
|
|
89
89
|
| `end` | `content` | div | no |
|
|
90
|
+
| `meta` | `content` | div | no |
|
|
90
91
|
| `actions` | `root` | div | no |
|
|
91
92
|
|
|
92
93
|
## Props
|
|
93
94
|
|
|
94
95
|
| Name | Type | Default | Applies to | Description |
|
|
95
96
|
| --- | --- | --- | --- | --- |
|
|
96
|
-
| `tone` | `'secondary' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | ListItem | The ink of the row, the wash under the pointer and the ground of a selected row. It never fills a resting row. |
|
|
97
|
+
| `tone` | `'secondary' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | ListItem | The ink of the row, the wash under the pointer and the ground of a selected row. In a row with an end or a meta line, the tone paints those two and the label keeps the text color. It never fills a resting row. |
|
|
97
98
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | ListItem | The room the row gets. Falls back to the list, then the provider. |
|
|
98
99
|
| `align` | `'center' \| 'start'` | center | ListItem | Where the leading visual and the metadata sit against a row of more than one line. |
|
|
99
100
|
| `endPlacement` | `'auto' \| 'beside'` | auto | ListItem | Where the end goes in a row narrower than 22rem: under the title, or on its line for a figure that belongs beside its name. |
|
|
@@ -138,7 +139,7 @@ export default function ListItemBasicExample() {
|
|
|
138
139
|
|
|
139
140
|
## Tokens
|
|
140
141
|
|
|
141
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-fine-height-lg`, `--slotted-control-fine-height-md`, `--slotted-control-fine-height-sm`, `--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-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-list-fill-inset`, `--slotted-list-item-background`, `--slotted-list-item-background-active`, `--slotted-list-item-background-current`, `--slotted-list-item-background-hover`, `--slotted-list-item-background-selected`, `--slotted-list-item-body-gap`, `--slotted-list-item-body-min-inline-size`, `--slotted-list-item-border-color`, `--slotted-list-item-border-width`, `--slotted-list-item-color`, `--slotted-list-item-color-disabled`, `--slotted-list-item-color-muted`, `--slotted-list-item-control-size`, `--slotted-list-item-control-size-lg`, `--slotted-list-item-control-size-sm`, `--slotted-list-item-description-font-size`, `--slotted-list-item-font-size`, `--slotted-list-item-font-size-lg`, `--slotted-list-item-font-size-sm`, `--slotted-list-item-font-weight`, `--slotted-list-item-font-weight-current`, `--slotted-list-item-font-weight-selected`, `--slotted-list-item-gap`, `--slotted-list-item-gap-lg`, `--slotted-list-item-gap-sm`, `--slotted-list-item-icon-size`, `--slotted-list-item-icon-size-lg`, `--slotted-list-item-icon-size-sm`, `--slotted-list-item-min-block-size`, `--slotted-list-item-min-block-size-lg`, `--slotted-list-item-min-block-size-sm`, `--slotted-list-item-padding-block`, `--slotted-list-item-padding-block-lg`, `--slotted-list-item-padding-block-sm`, `--slotted-list-item-padding-inline`, `--slotted-list-item-padding-inline-lg`, `--slotted-list-item-padding-inline-sm`, `--slotted-list-item-radius`, `--slotted-radius-md`, `--slotted-selection-size-lg`, `--slotted-selection-size-md`, `--slotted-selection-size-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
142
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-fine-height-lg`, `--slotted-control-fine-height-md`, `--slotted-control-fine-height-sm`, `--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-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-list-fill-inset`, `--slotted-list-item-actions-inline-size`, `--slotted-list-item-background`, `--slotted-list-item-background-active`, `--slotted-list-item-background-current`, `--slotted-list-item-background-hover`, `--slotted-list-item-background-selected`, `--slotted-list-item-body-gap`, `--slotted-list-item-body-min-inline-size`, `--slotted-list-item-border-color`, `--slotted-list-item-border-width`, `--slotted-list-item-color`, `--slotted-list-item-color-disabled`, `--slotted-list-item-color-muted`, `--slotted-list-item-control-size`, `--slotted-list-item-control-size-lg`, `--slotted-list-item-control-size-sm`, `--slotted-list-item-description-font-size`, `--slotted-list-item-font-size`, `--slotted-list-item-font-size-lg`, `--slotted-list-item-font-size-sm`, `--slotted-list-item-font-weight`, `--slotted-list-item-font-weight-current`, `--slotted-list-item-font-weight-selected`, `--slotted-list-item-gap`, `--slotted-list-item-gap-lg`, `--slotted-list-item-gap-sm`, `--slotted-list-item-icon-size`, `--slotted-list-item-icon-size-lg`, `--slotted-list-item-icon-size-sm`, `--slotted-list-item-min-block-size`, `--slotted-list-item-min-block-size-lg`, `--slotted-list-item-min-block-size-sm`, `--slotted-list-item-padding-block`, `--slotted-list-item-padding-block-lg`, `--slotted-list-item-padding-block-sm`, `--slotted-list-item-padding-inline`, `--slotted-list-item-padding-inline-lg`, `--slotted-list-item-padding-inline-sm`, `--slotted-list-item-radius`, `--slotted-radius-md`, `--slotted-selection-size-lg`, `--slotted-selection-size-md`, `--slotted-selection-size-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
142
143
|
|
|
143
144
|
## Examples
|
|
144
145
|
|
|
@@ -215,6 +215,56 @@ Excerpt — not a complete module
|
|
|
215
215
|
</nav>;
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
+
### actions-column.tsx
|
|
219
|
+
|
|
220
|
+
Example
|
|
221
|
+
|
|
222
|
+
```tsx
|
|
223
|
+
import { IconButton } from '@slotted/react/button';
|
|
224
|
+
import { Glyph, Icon } from '@slotted/react/icon';
|
|
225
|
+
import { List } from '@slotted/react/list';
|
|
226
|
+
import {
|
|
227
|
+
ListItem,
|
|
228
|
+
ListItemActions,
|
|
229
|
+
ListItemBody,
|
|
230
|
+
ListItemContent,
|
|
231
|
+
ListItemEnd,
|
|
232
|
+
ListItemLabel,
|
|
233
|
+
} from '@slotted/react/list-item';
|
|
234
|
+
|
|
235
|
+
const PAYMENTS = [
|
|
236
|
+
{ payee: 'Northwind Traders', amount: '$1,240.00', editable: true },
|
|
237
|
+
{ payee: 'Contoso Freight', amount: '$86.10', editable: false },
|
|
238
|
+
{ payee: 'Fabrikam Supplies', amount: '$412.75', editable: true },
|
|
239
|
+
] as const;
|
|
240
|
+
|
|
241
|
+
export default function ListActionsColumnExample() {
|
|
242
|
+
return (
|
|
243
|
+
<List actionsColumn="reserve" aria-label="Scheduled payments" variant="ruled">
|
|
244
|
+
{PAYMENTS.map((payment) => (
|
|
245
|
+
<ListItem endPlacement="beside" key={payment.payee}>
|
|
246
|
+
<ListItemContent>
|
|
247
|
+
<ListItemBody>
|
|
248
|
+
<ListItemLabel>{payment.payee}</ListItemLabel>
|
|
249
|
+
</ListItemBody>
|
|
250
|
+
<ListItemEnd>{payment.amount}</ListItemEnd>
|
|
251
|
+
</ListItemContent>
|
|
252
|
+
{payment.editable ? (
|
|
253
|
+
<ListItemActions>
|
|
254
|
+
<IconButton aria-label={`Options for ${payment.payee}`} variant="ghost">
|
|
255
|
+
<Icon>
|
|
256
|
+
<Glyph name="ellipsis" />
|
|
257
|
+
</Icon>
|
|
258
|
+
</IconButton>
|
|
259
|
+
</ListItemActions>
|
|
260
|
+
) : null}
|
|
261
|
+
</ListItem>
|
|
262
|
+
))}
|
|
263
|
+
</List>
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
218
268
|
### defaults.tsx
|
|
219
269
|
|
|
220
270
|
Example
|
|
@@ -567,6 +617,49 @@ export default function ListSelection() {
|
|
|
567
617
|
}
|
|
568
618
|
```
|
|
569
619
|
|
|
620
|
+
### shared-columns.tsx
|
|
621
|
+
|
|
622
|
+
Example
|
|
623
|
+
|
|
624
|
+
```tsx
|
|
625
|
+
import { Badge } from '@slotted/react/badge';
|
|
626
|
+
import { List } from '@slotted/react/list';
|
|
627
|
+
import {
|
|
628
|
+
ListItem,
|
|
629
|
+
ListItemBody,
|
|
630
|
+
ListItemContent,
|
|
631
|
+
ListItemEnd,
|
|
632
|
+
ListItemLabel,
|
|
633
|
+
} from '@slotted/react/list-item';
|
|
634
|
+
|
|
635
|
+
const ACCOUNTS = [
|
|
636
|
+
{ name: 'Northwind Traders', status: 'Overdue', amount: '$12,345.67' },
|
|
637
|
+
{ name: 'Alfreds Futterkiste', status: 'Paid', amount: '$812.40' },
|
|
638
|
+
{ name: 'Ernst Handel', status: undefined, amount: '$4,892.40' },
|
|
639
|
+
{ name: 'Island Trading', status: 'Financed', amount: '$3,729.13' },
|
|
640
|
+
] as const;
|
|
641
|
+
|
|
642
|
+
export default function ListSharedColumnsExample() {
|
|
643
|
+
return (
|
|
644
|
+
<List aria-label="Receivables" columns="shared" variant="ruled">
|
|
645
|
+
{ACCOUNTS.map((account) => (
|
|
646
|
+
<ListItem endPlacement="beside" key={account.name}>
|
|
647
|
+
<ListItemContent>
|
|
648
|
+
<ListItemBody>
|
|
649
|
+
<ListItemLabel>{account.name}</ListItemLabel>
|
|
650
|
+
</ListItemBody>
|
|
651
|
+
<ListItemEnd>
|
|
652
|
+
{account.status === undefined ? null : <Badge>{account.status}</Badge>}
|
|
653
|
+
<span>{account.amount}</span>
|
|
654
|
+
</ListItemEnd>
|
|
655
|
+
</ListItemContent>
|
|
656
|
+
</ListItem>
|
|
657
|
+
))}
|
|
658
|
+
</List>
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
```
|
|
662
|
+
|
|
570
663
|
### sizes.tsx
|
|
571
664
|
|
|
572
665
|
Example
|
package/dist/docs/list.json
CHANGED
|
@@ -26,6 +26,14 @@
|
|
|
26
26
|
"fill": [
|
|
27
27
|
"row",
|
|
28
28
|
"inset"
|
|
29
|
+
],
|
|
30
|
+
"columns": [
|
|
31
|
+
"row",
|
|
32
|
+
"shared"
|
|
33
|
+
],
|
|
34
|
+
"actionsColumn": [
|
|
35
|
+
"auto",
|
|
36
|
+
"reserve"
|
|
29
37
|
]
|
|
30
38
|
},
|
|
31
39
|
"members": {
|
|
@@ -40,7 +48,9 @@
|
|
|
40
48
|
"fill": "row",
|
|
41
49
|
"loading": false,
|
|
42
50
|
"level": "3",
|
|
43
|
-
"sticky": false
|
|
51
|
+
"sticky": false,
|
|
52
|
+
"columns": "row",
|
|
53
|
+
"actionsColumn": "auto"
|
|
44
54
|
},
|
|
45
55
|
"capabilities": [
|
|
46
56
|
"appearance",
|
|
@@ -141,6 +151,20 @@
|
|
|
141
151
|
"appliesTo": "List",
|
|
142
152
|
"description": "Removes the rows' inline padding, for a list inside a box that already pads its content. Rules and hover fills still run edge to edge."
|
|
143
153
|
},
|
|
154
|
+
{
|
|
155
|
+
"name": "columns",
|
|
156
|
+
"type": "'row' | 'shared'",
|
|
157
|
+
"defaultValue": "row",
|
|
158
|
+
"appliesTo": "List",
|
|
159
|
+
"description": "Whether each row lays out its own columns, or the list is one grid whose rows share them through subgrid: the leading control, the leading visual, the text, the end and the actions each stand in one column, so a bar before an amount stands at one place and every amount ends on one line. Under shared the end stays on the title's line at every width."
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "actionsColumn",
|
|
163
|
+
"type": "'auto' | 'reserve'",
|
|
164
|
+
"defaultValue": "auto",
|
|
165
|
+
"appliesTo": "List",
|
|
166
|
+
"description": "Whether a row without actions keeps the actions column. reserve ends such a row in an empty part, hidden from assistive technology, as wide as a default control and the end inset, so the ends of every row stand on one line. Set --slotted-list-item-actions-inline-size on an element around the list and a heading beside it to give every actions part, and the heading's end, one width."
|
|
167
|
+
},
|
|
144
168
|
{
|
|
145
169
|
"name": "fill",
|
|
146
170
|
"type": "'row' | 'inset'",
|
|
@@ -360,6 +384,14 @@
|
|
|
360
384
|
"source": "<nav aria-label=\"Sections\">\n <List>\n <ListItem current=\"page\">\n <ListItemLink href=\"/billing\">Billing</ListItemLink>\n </ListItem>\n </List>\n</nav>;\n",
|
|
361
385
|
"verdict": "excerpt"
|
|
362
386
|
},
|
|
387
|
+
{
|
|
388
|
+
"id": "actions-column",
|
|
389
|
+
"title": "actions-column.tsx",
|
|
390
|
+
"note": null,
|
|
391
|
+
"language": "tsx",
|
|
392
|
+
"source": "import { IconButton } from '@slotted/react/button';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { List } from '@slotted/react/list';\nimport {\n ListItem,\n ListItemActions,\n ListItemBody,\n ListItemContent,\n ListItemEnd,\n ListItemLabel,\n} from '@slotted/react/list-item';\n\nconst PAYMENTS = [\n { payee: 'Northwind Traders', amount: '$1,240.00', editable: true },\n { payee: 'Contoso Freight', amount: '$86.10', editable: false },\n { payee: 'Fabrikam Supplies', amount: '$412.75', editable: true },\n] as const;\n\nexport default function ListActionsColumnExample() {\n return (\n <List actionsColumn=\"reserve\" aria-label=\"Scheduled payments\" variant=\"ruled\">\n {PAYMENTS.map((payment) => (\n <ListItem endPlacement=\"beside\" key={payment.payee}>\n <ListItemContent>\n <ListItemBody>\n <ListItemLabel>{payment.payee}</ListItemLabel>\n </ListItemBody>\n <ListItemEnd>{payment.amount}</ListItemEnd>\n </ListItemContent>\n {payment.editable ? (\n <ListItemActions>\n <IconButton aria-label={`Options for ${payment.payee}`} variant=\"ghost\">\n <Icon>\n <Glyph name=\"ellipsis\" />\n </Icon>\n </IconButton>\n </ListItemActions>\n ) : null}\n </ListItem>\n ))}\n </List>\n );\n}\n",
|
|
393
|
+
"verdict": "example"
|
|
394
|
+
},
|
|
363
395
|
{
|
|
364
396
|
"id": "basic",
|
|
365
397
|
"title": "basic.tsx",
|
|
@@ -424,6 +456,14 @@
|
|
|
424
456
|
"source": "import { useState } from 'react';\n\nimport { Badge } from '@slotted/react/badge';\nimport { Checkbox } from '@slotted/react/checkbox';\nimport { List } from '@slotted/react/list';\nimport {\n ListItem,\n ListItemBody,\n ListItemContent,\n ListItemDescription,\n ListItemEnd,\n ListItemLabel,\n ListItemStart,\n} from '@slotted/react/list-item';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\nimport { VisuallyHidden } from '@slotted/react/visually-hidden';\n\nconst ORDERS = [\n { id: 'SO-1182', customer: 'Contoso Foods', lines: 6 },\n { id: 'SO-1183', customer: 'Atlas Freight', lines: 2 },\n { id: 'SO-1184', customer: 'Ember Goods', lines: 11 },\n];\n\nexport default function ListSelection() {\n const [picked, setPicked] = useState<string[]>(['SO-1182']);\n\n function handlePick(id: string, checked: boolean) {\n setPicked((current) => (checked ? [...current, id] : current.filter((entry) => entry !== id)));\n }\n\n return (\n <Stack gap={3}>\n <List aria-label=\"Orders to pick\" variant=\"ruled\">\n {ORDERS.map((order) => (\n <ListItem key={order.id} selected={picked.includes(order.id)}>\n <ListItemContent>\n <ListItemStart>\n <Checkbox\n checked={picked.includes(order.id)}\n onCheckedChange={(checked) => handlePick(order.id, checked)}\n >\n <VisuallyHidden>Pick {order.id}</VisuallyHidden>\n </Checkbox>\n </ListItemStart>\n <ListItemBody>\n <ListItemLabel>{order.id}</ListItemLabel>\n <ListItemDescription>{order.customer}</ListItemDescription>\n </ListItemBody>\n <ListItemEnd>\n <Badge variant=\"soft\">{order.lines} lines</Badge>\n </ListItemEnd>\n </ListItemContent>\n </ListItem>\n ))}\n </List>\n <Text size=\"sm\" tone=\"muted\">\n {picked.length} of {ORDERS.length} orders on the pick list\n </Text>\n </Stack>\n );\n}\n",
|
|
425
457
|
"verdict": "example"
|
|
426
458
|
},
|
|
459
|
+
{
|
|
460
|
+
"id": "shared-columns",
|
|
461
|
+
"title": "shared-columns.tsx",
|
|
462
|
+
"note": null,
|
|
463
|
+
"language": "tsx",
|
|
464
|
+
"source": "import { Badge } from '@slotted/react/badge';\nimport { List } from '@slotted/react/list';\nimport {\n ListItem,\n ListItemBody,\n ListItemContent,\n ListItemEnd,\n ListItemLabel,\n} from '@slotted/react/list-item';\n\nconst ACCOUNTS = [\n { name: 'Northwind Traders', status: 'Overdue', amount: '$12,345.67' },\n { name: 'Alfreds Futterkiste', status: 'Paid', amount: '$812.40' },\n { name: 'Ernst Handel', status: undefined, amount: '$4,892.40' },\n { name: 'Island Trading', status: 'Financed', amount: '$3,729.13' },\n] as const;\n\nexport default function ListSharedColumnsExample() {\n return (\n <List aria-label=\"Receivables\" columns=\"shared\" variant=\"ruled\">\n {ACCOUNTS.map((account) => (\n <ListItem endPlacement=\"beside\" key={account.name}>\n <ListItemContent>\n <ListItemBody>\n <ListItemLabel>{account.name}</ListItemLabel>\n </ListItemBody>\n <ListItemEnd>\n {account.status === undefined ? null : <Badge>{account.status}</Badge>}\n <span>{account.amount}</span>\n </ListItemEnd>\n </ListItemContent>\n </ListItem>\n ))}\n </List>\n );\n}\n",
|
|
465
|
+
"verdict": "example"
|
|
466
|
+
},
|
|
427
467
|
{
|
|
428
468
|
"id": "sizes",
|
|
429
469
|
"title": "sizes.tsx",
|
package/dist/docs/list.md
CHANGED
|
@@ -69,6 +69,8 @@ export default function ListBasic() {
|
|
|
69
69
|
| `marker` | `'none' \| 'bullet' \| 'number'` | none | List | What is painted in the marker column. List draws the marker itself, so removing it never removes the list semantics. |
|
|
70
70
|
| `ordered` | `boolean` | false | List | Renders an ol, so the reading order of the rows is part of the markup rather than only of the look. |
|
|
71
71
|
| `inset` | `boolean` | false | List | Removes the rows' inline padding, for a list inside a box that already pads its content. Rules and hover fills still run edge to edge. |
|
|
72
|
+
| `columns` | `'row' \| 'shared'` | row | List | Whether each row lays out its own columns, or the list is one grid whose rows share them through subgrid: the leading control, the leading visual, the text, the end and the actions each stand in one column, so a bar before an amount stands at one place and every amount ends on one line. Under shared the end stays on the title's line at every width. |
|
|
73
|
+
| `actionsColumn` | `'auto' \| 'reserve'` | auto | List | Whether a row without actions keeps the actions column. reserve ends such a row in an empty part, hidden from assistive technology, as wide as a default control and the end inset, so the ends of every row stand on one line. Set --slotted-list-item-actions-inline-size on an element around the list and a heading beside it to give every actions part, and the heading's end, one width. |
|
|
72
74
|
| `fill` | `'row' \| 'inset'` | row | List | How a row draws its hover, pressed, selected and current grounds. row: edge to edge of the list. inset, for a plain or ruled list inside a container that pads its content: as a tile with the row radius that reaches past the content by --slotted-list-fill-inset on each side, while the content keeps the inline edge of the container. A framed or separated list keeps row. |
|
|
73
75
|
| `loading` | `boolean` | false | List | Writes aria-busy on the list and draws nothing. Skeleton, composed inside the rows, stands in for their content. |
|
|
74
76
|
| `level` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | 3 | ListSection | The heading element a group name renders as. none renders a div, which is not announced as a heading. |
|
|
@@ -90,6 +92,8 @@ export default function ListBasic() {
|
|
|
90
92
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
91
93
|
| `marker` | `none`, `bullet`, `number` | `none` |
|
|
92
94
|
| `fill` | `row`, `inset` | `row` |
|
|
95
|
+
| `columns` | `row`, `shared` | `row` |
|
|
96
|
+
| `actionsColumn` | `auto`, `reserve` | `auto` |
|
|
93
97
|
|
|
94
98
|
## Rules
|
|
95
99
|
|
|
@@ -1089,6 +1089,45 @@ export default function MenuLongList() {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
```
|
|
1091
1091
|
|
|
1092
|
+
### phone-sheet.tsx
|
|
1093
|
+
|
|
1094
|
+
Example
|
|
1095
|
+
|
|
1096
|
+
```tsx
|
|
1097
|
+
import { Button } from '@slotted/react/button';
|
|
1098
|
+
import {
|
|
1099
|
+
Menu,
|
|
1100
|
+
MenuContent,
|
|
1101
|
+
MenuDefaultsProvider,
|
|
1102
|
+
MenuItem,
|
|
1103
|
+
MenuSeparator,
|
|
1104
|
+
MenuTrigger,
|
|
1105
|
+
} from '@slotted/react/menu';
|
|
1106
|
+
|
|
1107
|
+
export default function MenuPhoneSheet() {
|
|
1108
|
+
return (
|
|
1109
|
+
<MenuDefaultsProvider presentation="auto">
|
|
1110
|
+
<Menu>
|
|
1111
|
+
<MenuTrigger
|
|
1112
|
+
render={(props) => (
|
|
1113
|
+
<Button {...props} tone="secondary" variant="outline">
|
|
1114
|
+
Order SO-10482
|
|
1115
|
+
</Button>
|
|
1116
|
+
)}
|
|
1117
|
+
/>
|
|
1118
|
+
<MenuContent>
|
|
1119
|
+
<MenuItem>View order</MenuItem>
|
|
1120
|
+
<MenuItem>Duplicate</MenuItem>
|
|
1121
|
+
<MenuItem>Print packing slip</MenuItem>
|
|
1122
|
+
<MenuSeparator />
|
|
1123
|
+
<MenuItem tone="danger">Cancel order…</MenuItem>
|
|
1124
|
+
</MenuContent>
|
|
1125
|
+
</Menu>
|
|
1126
|
+
</MenuDefaultsProvider>
|
|
1127
|
+
);
|
|
1128
|
+
}
|
|
1129
|
+
```
|
|
1130
|
+
|
|
1092
1131
|
### row-actions.tsx
|
|
1093
1132
|
|
|
1094
1133
|
Example
|