@slotted/react 0.1.0-beta.12 → 0.1.0-beta.13
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-z2DPc1Wy.js → action-bar-D-V2uWjA.js} +2 -2
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-BnedGewu.js → action-sheet-CYwRLOKq.js} +1 -1
- package/dist/action-sheet.js +1 -1
- package/dist/{alert-BTAXJ69M.js → alert-DPSZUCRn.js} +6 -6
- package/dist/alert.js +1 -1
- package/dist/{app-shell-Cb_kDBeV.js → app-shell-CJwXBvE5.js} +1 -1
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-D1O4qS8H.js → attachment-DKKiNUKe.js} +1 -1
- package/dist/attachment.js +1 -1
- package/dist/{avatar-C1mYlU05.js → avatar-DLWElrgg.js} +1 -1
- package/dist/{avatar-group-DhbHJlMx.js → avatar-group-DshHqe8B.js} +1 -1
- package/dist/avatar-group.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/{breadcrumb-CnFjxxI2.js → breadcrumb-DWbUEBpm.js} +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/{calendar-DZyC1gAT.js → calendar-DZx00W81.js} +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{carousel-Dso3gcYd.js → carousel-B9nMK7Yf.js} +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{cascader-BbajBwsX.js → cascader-neDJl-we.js} +3 -3
- package/dist/cascader.js +1 -1
- package/dist/{chart-Bb6ctahn.js → chart-CbOswR3s.js} +1 -1
- package/dist/chart.js +1 -1
- package/dist/{checkbox-C_8GVtjD.js → checkbox-Hq1PXk04.js} +4 -4
- package/dist/{checkbox-group-DXCcusol.js → checkbox-group-Ckoh-2GJ.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{code-block-C4mtsROE.js → code-block-Cy548yk7.js} +1 -1
- package/dist/code-block.js +1 -1
- package/dist/{collapsible-B_UjYE2f.js → collapsible-BuUBeNDg.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/{color-picker-JZPnPb7s.js → color-picker-BsDplfdK.js} +5 -5
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-BDUj-WIs.js → column-manager-CIf2SAzx.js} +6 -6
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-Dn69QwGX.js → combobox-vE8dmv4K.js} +2 -2
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-Dh1HKz_F.js → command-palette-DEKWsUFR.js} +2 -2
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-uJjEmAN3.js → context-menu-BxbGq4bu.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-lHcrNJ7X.js → currency-field-ZvfrfM0z.js} +2 -2
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-z-SOm9H0.js → dashboard-grid-B9-_lwn6.js} +2 -2
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Kj1b9RD-.js → data-grid-B5feiNsE.js} +18 -18
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-BgdkA3bD.js → data-list-CUvUS2AX.js} +4 -4
- package/dist/data-list.js +1 -1
- package/dist/{date-field-B2lQzE3p.js → date-field-EBPrQL6A.js} +2 -2
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-DpTRb-Y1.js → date-picker-Dys-z9mZ.js} +4 -4
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-CBUPJep5.js → date-range-picker-Cu95hHyO.js} +4 -4
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-BZ44uJ_B.js → datetime-field-DavJbR0H.js} +2 -2
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-BK_bV3Yr.js → datetime-picker-B7eWKoN3.js} +4 -4
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-ChdbRgzQ.js → datetime-range-picker-Cm42pY3M.js} +4 -4
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{description-list-CYlfHDwx.js → description-list-KjUs1muC.js} +1 -1
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-DimjnPI8.js → detail-panel-BNfYQJfv.js} +3 -3
- package/dist/detail-panel.js +1 -1
- package/dist/{dialog-BB5MdJex.js → dialog-CjOBjHrL.js} +8 -8
- package/dist/dialog.js +1 -1
- package/dist/docs/action-bar.json +1 -0
- package/dist/docs/action-bar.md +1 -1
- package/dist/docs/action-sheet.json +399 -64
- package/dist/docs/action-sheet.md +291 -0
- package/dist/docs/alert.json +1 -1
- package/dist/docs/alert.md +1 -1
- package/dist/docs/combobox.json +1 -0
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/data-grid.json +1 -1
- package/dist/docs/date-picker.json +1 -0
- package/dist/docs/date-picker.md +1 -1
- package/dist/docs/drawer.json +1 -0
- package/dist/docs/drawer.md +1 -1
- package/dist/docs/entity-picker.json +1 -0
- package/dist/docs/entity-picker.md +1 -1
- package/dist/docs/inline-message.json +1 -1
- package/dist/docs/inline-message.md +1 -1
- package/dist/docs/kbd.json +3 -0
- package/dist/docs/kbd.md +1 -1
- package/dist/docs/menu.json +1 -0
- package/dist/docs/menu.md +1 -1
- package/dist/docs/popover.json +1 -0
- package/dist/docs/popover.md +1 -1
- package/dist/docs/scroll-area.json +278 -64
- package/dist/docs/scroll-area.md +198 -0
- package/dist/docs/section.json +11 -1
- package/dist/docs/section.md +13 -12
- package/dist/docs/select.json +1 -0
- package/dist/docs/select.md +1 -1
- package/dist/docs/skills/theme-app/SKILL.md +18 -4
- package/dist/docs/splitter.json +293 -64
- package/dist/docs/splitter.md +222 -0
- package/dist/docs/status-indicator.json +16 -5
- package/dist/docs/status-indicator.md +3 -1
- package/dist/docs/table-of-contents.json +2 -1
- package/dist/docs/table-of-contents.md +2 -2
- package/dist/docs/tooltip.json +1 -0
- package/dist/docs/tooltip.md +1 -1
- package/dist/drawer-CIsrtQcM.js +816 -0
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-ClyhBTyK.js → entity-picker-DB1HeuvJ.js} +4 -4
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-COgC24UG.js → event-calendar-DKwvcNF_.js} +6 -6
- package/dist/event-calendar.js +1 -1
- package/dist/{field-tnEZiRLg.js → field-CnSMUZw6.js} +2 -2
- package/dist/{field-group-Bj-EbPIU.js → field-group-RACkEXPp.js} +2 -2
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-BRuCz79-.js → filter-bar-NipgBi5v.js} +12 -12
- package/dist/filter-bar.js +1 -1
- package/dist/{fullscreen-BwweNj3-.js → fullscreen-CaEg6U-M.js} +1 -1
- package/dist/fullscreen.js +1 -1
- package/dist/{hover-card-BWcU37Yp.js → hover-card-D8OyhmEG.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/icon-D04-_QFA.js +134 -0
- package/dist/icon.js +1 -1
- package/dist/{image-Ajqo38Uz.js → image-cyX9-F0x.js} +1 -1
- package/dist/image.js +1 -1
- package/dist/{import-export-center-CYf0Qxl_.js → import-export-center-BIB7sRCl.js} +4 -4
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +102 -101
- package/dist/{inline-message-DM7mf2cM.js → inline-message-DgEAUjar.js} +6 -6
- package/dist/inline-message.js +1 -1
- package/dist/{link-DLPyg54C.js → link-rGL3Lr2t.js} +1 -1
- package/dist/link.js +1 -1
- package/dist/{list-item-DMeNfokY.js → list-item-CHaJYl5r.js} +1 -1
- package/dist/list-item.js +1 -1
- package/dist/{listbox-BSqx_ARf.js → listbox-DvwUa0yH.js} +2 -2
- package/dist/listbox.js +1 -1
- package/dist/{markdown-DccRb1xf.js → markdown-B_lMpWz0.js} +6 -6
- package/dist/markdown.js +1 -1
- package/dist/{menu-parts-CNNHRduK.js → menu-parts-BDdCTmko.js} +1 -1
- package/dist/menu.js +1 -1
- package/dist/{menubar-Bdr6zigi.js → menubar-hazvXRYd.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{message-BkTiWsUp.js → message-C1O3jr31.js} +1 -1
- package/dist/{message-scroller-akQEtQLn.js → message-scroller-BSpE5DHM.js} +1 -1
- package/dist/message-scroller.js +1 -1
- package/dist/message.js +1 -1
- package/dist/{multi-select-BvlJIEtz.js → multi-select-C1GNk4e0.js} +2 -2
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-menu-parts-CEW4fgCo.js → navigation-menu-parts-CRLmigjy.js} +1 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/{notification-center-BQO0Ey3h.js → notification-center-CAbkHDlC.js} +2 -2
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-D1MqT8_A.js → number-field-BPYe9kLB.js} +2 -2
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Cub9H9Di.js → otp-input-CYtF30Q-.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-header-CMxCQqu_.js → page-header-BgYXPEbd.js} +1 -1
- package/dist/page-header.js +1 -1
- package/dist/{pagination-IEuos7H1.js → pagination-D0PUAFYm.js} +1 -1
- package/dist/pagination.js +1 -1
- package/dist/{popover-C7NpEzq6.js → popover-BfEn2wdZ.js} +1 -1
- package/dist/popover.js +1 -1
- package/dist/{prompt-composer-Cu8bj1Vb.js → prompt-composer-BDOi4rVK.js} +2 -2
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-BHlDgCLk.js → radio-group-CLX8D2Ew.js} +3 -3
- package/dist/radio-group.js +1 -1
- package/dist/{rating-Cr0lXaAV.js → rating-BB2k-Fay.js} +2 -2
- package/dist/rating.js +1 -1
- package/dist/roving-focus-C5-rVFzI.js +89 -0
- package/dist/roving-focus.js +2 -0
- package/dist/{saved-views-CyLSn8a2.js → saved-views-CmsTqrCY.js} +5 -5
- package/dist/saved-views.js +1 -1
- package/dist/section-CjlMOyZE.js +195 -0
- package/dist/section.js +1 -1
- package/dist/{segmented-control-uPnQYklX.js → segmented-control-B1U-s58C.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-C0JYHwBy.js → select-OUGNxyS5.js} +3 -3
- package/dist/{select-tags-CMe5rzql.js → select-tags-3792weoq.js} +1 -1
- package/dist/select.js +1 -1
- package/dist/{side-navigation-D8lRpHwj.js → side-navigation-DRLWTlJ4.js} +2 -2
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-BSI1xvjw.js → slider-Bp1QjJKu.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-CkbylOMN.js → split-button-BhKdDspN.js} +2 -2
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-CAh4SdeY.js → stat-card-CUISfM36.js} +1 -1
- package/dist/stat-card.js +1 -1
- package/dist/{status-indicator-BVMnpcm8.js → status-indicator-DkV95RZc.js} +30 -26
- package/dist/status-indicator.js +1 -1
- package/dist/{stepper-BLfvMz04.js → stepper-DHdrANZI.js} +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles/action-bar.css +3 -3
- package/dist/styles/action-sheet.css +2 -2
- package/dist/styles/alert.css +2 -2
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/attachment.css +1 -1
- package/dist/styles/avatar-group.css +1 -1
- package/dist/styles/avatar.css +1 -1
- package/dist/styles/breadcrumb.css +1 -1
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/cascader.css +3 -3
- package/dist/styles/chart.css +2 -2
- package/dist/styles/checkbox-group.css +3 -3
- package/dist/styles/checkbox.css +3 -3
- package/dist/styles/code-block.css +1 -1
- package/dist/styles/collapsible.css +1 -1
- package/dist/styles/color-picker.css +5 -5
- package/dist/styles/column-manager.css +6 -6
- package/dist/styles/combobox.css +4 -4
- package/dist/styles/command-palette.css +2 -2
- package/dist/styles/context-menu.css +2 -2
- package/dist/styles/currency-field.css +3 -3
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +8 -8
- package/dist/styles/data-list.css +4 -4
- package/dist/styles/date-field.css +3 -3
- package/dist/styles/date-picker.css +4 -4
- package/dist/styles/date-range-picker.css +3 -3
- package/dist/styles/datetime-field.css +3 -3
- package/dist/styles/datetime-picker.css +3 -3
- package/dist/styles/datetime-range-picker.css +3 -3
- package/dist/styles/description-list.css +1 -1
- package/dist/styles/detail-panel.css +2 -2
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +2 -2
- package/dist/styles/entity-picker.css +5 -5
- package/dist/styles/event-calendar.css +6 -6
- package/dist/styles/field-group.css +3 -3
- package/dist/styles/field.css +3 -3
- package/dist/styles/filter-bar.css +10 -10
- package/dist/styles/fullscreen.css +1 -1
- package/dist/styles/hover-card.css +2 -2
- package/dist/styles/icon.css +1 -1
- package/dist/styles/image.css +1 -1
- package/dist/styles/import-export-center.css +7 -7
- package/dist/styles/index.css +19 -19
- package/dist/styles/inline-message.css +2 -2
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/link.css +1 -1
- package/dist/styles/list-item.css +1 -1
- package/dist/styles/listbox.css +3 -3
- package/dist/styles/markdown.css +4 -4
- package/dist/styles/menu.css +2 -2
- package/dist/styles/menubar.css +2 -2
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +4 -4
- package/dist/styles/navigation-menu.css +1 -1
- package/dist/styles/notification-center.css +2 -2
- package/dist/styles/number-field.css +3 -3
- package/dist/styles/otp-input.css +3 -3
- package/dist/styles/page-header.css +1 -1
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/popover.css +2 -2
- package/dist/styles/prompt-composer.css +3 -3
- package/dist/styles/radio-group.css +3 -3
- package/dist/styles/rating.css +3 -3
- package/dist/styles/roving-focus.css +1 -0
- package/dist/styles/saved-views.css +5 -5
- package/dist/styles/section.css +1 -1
- package/dist/styles/segmented-control.css +3 -3
- package/dist/styles/select.css +4 -4
- package/dist/styles/side-navigation.css +2 -2
- package/dist/styles/slider.css +3 -3
- package/dist/styles/split-button.css +2 -2
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/status-indicator.css +2 -2
- package/dist/styles/stepper.css +1 -1
- package/dist/styles/switch.css +3 -3
- package/dist/styles/table-of-contents.css +2 -2
- package/dist/styles/table.css +6 -6
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/tag.css +1 -1
- package/dist/styles/tags-input.css +3 -3
- package/dist/styles/text-field.css +3 -3
- package/dist/styles/textarea.css +3 -3
- package/dist/styles/time-field.css +3 -3
- package/dist/styles/time-picker.css +3 -3
- package/dist/styles/time-range-picker.css +3 -3
- package/dist/styles/timeline.css +1 -1
- package/dist/styles/toast.css +2 -2
- package/dist/styles/toggle-group.css +3 -3
- package/dist/styles/toolbar.css +2 -2
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-navigation.css +2 -2
- package/dist/styles/tour.css +1 -1
- package/dist/styles/transfer.css +3 -3
- package/dist/styles/tree.css +1 -1
- package/dist/styles/upload.css +3 -3
- package/dist/styles/wizard.css +2 -2
- package/dist/styles.css +1 -1
- package/dist/{switch-BHyKHqeI.js → switch-DmLzDbTb.js} +2 -2
- package/dist/switch.js +1 -1
- package/dist/{table-C8zOHDcY.js → table-_xX87qua.js} +14 -14
- package/dist/{table-of-contents-BAIuPCdy.js → table-of-contents-kFr_3Dzs.js} +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-DjEpS9uq.js → tabs-C-Bc7WmQ.js} +1 -1
- package/dist/tabs.js +1 -1
- package/dist/{tag-XYGEPUHR.js → tag-BYzDYvM_.js} +1 -1
- package/dist/tag.js +1 -1
- package/dist/{tags-input-ClYSd-No.js → tags-input-CAmXKSeZ.js} +2 -2
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-Cguj75tn.js → text-field-CHYoral_.js} +2 -2
- package/dist/text-field.js +1 -1
- package/dist/{textarea-BKsh_jAo.js → textarea-47JGOZKv.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/theme.js +10 -9
- package/dist/{time-field-BIE4WMpS.js → time-field-D1-rNBsB.js} +2 -2
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-CNfafRDF.js → time-picker-mwCULYh7.js} +3 -3
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-D7gM_Wno.js → time-range-picker-BKgsEHmd.js} +3 -3
- package/dist/time-range-picker.js +1 -1
- package/dist/{timeline-BLadNUkS.js → timeline-BiL2CXfn.js} +1 -1
- package/dist/timeline.js +1 -1
- package/dist/{toast-CjbiXiza.js → toast-DHDVXIew.js} +6 -6
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-BZmghKac.js → toggle-group-Bnig_MWl.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-BI4ZepBs.js → toolbar-EdmEn_ph.js} +2 -2
- package/dist/toolbar.js +1 -1
- package/dist/{top-navigation-BTZpx5VA.js → top-navigation-B_oQgy56.js} +3 -3
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-_CQ1kYov.js → tour-6ai_6m2y.js} +1 -1
- package/dist/tour.js +1 -1
- package/dist/{transfer-BVhBdIGp.js → transfer-4Vo11sGY.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/{tree-DfI9UWLA.js → tree-DBirM2v9.js} +1 -1
- package/dist/tree.js +1 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/icon/glyph.d.ts +3 -0
- package/dist/types/icon/glyph.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message.types.d.ts +1 -1
- package/dist/types/roving-focus/index.d.ts +3 -0
- package/dist/types/roving-focus/index.d.ts.map +1 -0
- package/dist/types/roving-focus/roving-focus.d.ts +48 -0
- package/dist/types/roving-focus/roving-focus.d.ts.map +1 -0
- package/dist/types/section/section-parts.d.ts +1 -4
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/section/section.d.ts.map +1 -1
- package/dist/types/status-indicator/status-indicator.d.ts +1 -1
- package/dist/types/status-indicator/status-indicator.d.ts.map +1 -1
- package/dist/types/status-indicator/status-indicator.types.d.ts +6 -0
- package/dist/types/status-indicator/status-indicator.types.d.ts.map +1 -1
- package/dist/types/theme/index.d.ts +1 -1
- package/dist/types/theme/index.d.ts.map +1 -1
- package/dist/types/theme/theme-scope.d.ts +6 -3
- package/dist/types/theme/theme-scope.d.ts.map +1 -1
- package/dist/{upload-N2-nyO8x.js → upload-S3d3tUt-.js} +3 -3
- package/dist/upload.js +1 -1
- package/dist/{wizard-CK1x2fs3.js → wizard-ijqGsc5t.js} +4 -4
- package/dist/wizard.js +1 -1
- package/package.json +10 -6
- package/dist/drawer-fyPyxnYQ.js +0 -782
- package/dist/icon-DjqSEQ-o.js +0 -75
- package/dist/section-DY8yPm11.js +0 -177
|
@@ -3,6 +3,95 @@
|
|
|
3
3
|
|
|
4
4
|
`data-ui="action-sheet"` · Bottom sheet of short actions for touch.
|
|
5
5
|
|
|
6
|
+
## Import
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { ActionSheet, ActionSheetCancel, ActionSheetContent, ActionSheetDefaultsProvider, ActionSheetGroup, ActionSheetHeader, ActionSheetItem, ActionSheetList, ActionSheetMessage, ActionSheetSeparator, ActionSheetTitle, ActionSheetTrigger } from '@slotted/react';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Minimal example
|
|
13
|
+
|
|
14
|
+
Excerpt — not a complete module
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
<ActionSheet onOpenChange={(open, request) => run(request.result)}>
|
|
18
|
+
<ActionSheetTrigger>Partilhar</ActionSheetTrigger>
|
|
19
|
+
<ActionSheetContent>
|
|
20
|
+
<ActionSheetHeader>
|
|
21
|
+
<ActionSheetTitle>Partilhar relatório</ActionSheetTitle>
|
|
22
|
+
<ActionSheetMessage>Quem recebe a ligação vê a versão de hoje.</ActionSheetMessage>
|
|
23
|
+
</ActionSheetHeader>
|
|
24
|
+
<ActionSheetList>
|
|
25
|
+
<ActionSheetItem value="copy" icon={<Copy />}>
|
|
26
|
+
Copiar ligação
|
|
27
|
+
</ActionSheetItem>
|
|
28
|
+
<ActionSheetItem value="pdf" icon={<FileText />}>
|
|
29
|
+
Descarregar PDF
|
|
30
|
+
</ActionSheetItem>
|
|
31
|
+
</ActionSheetList>
|
|
32
|
+
<ActionSheetCancel>Cancelar</ActionSheetCancel>
|
|
33
|
+
</ActionSheetContent>
|
|
34
|
+
</ActionSheet>;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Anatomy
|
|
38
|
+
|
|
39
|
+
| Part | Element | Required |
|
|
40
|
+
| --- | --- | --- |
|
|
41
|
+
| `root` | div, inside drawer’s panel | yes |
|
|
42
|
+
| `trigger` | button, or the element render returns | no |
|
|
43
|
+
| `header` | header | no |
|
|
44
|
+
| `title` | h2, or the element render returns | no |
|
|
45
|
+
| `message` | p, or the element render returns | no |
|
|
46
|
+
| `list` | div with role="menu" | yes |
|
|
47
|
+
| `group` | div with role="group" | no |
|
|
48
|
+
| `group-label` | div | no |
|
|
49
|
+
| `item` | button with role="menuitem", or the element render returns | yes |
|
|
50
|
+
| `icon` | span[aria-hidden] | no |
|
|
51
|
+
| `label` | span | yes |
|
|
52
|
+
| `description` | span | no |
|
|
53
|
+
| `separator` | hr with role="separator" | no |
|
|
54
|
+
| `footer` | div, rendered by ActionSheetCancel | no |
|
|
55
|
+
| `cancel` | button, or the element render returns | no |
|
|
56
|
+
|
|
57
|
+
## Props
|
|
58
|
+
|
|
59
|
+
| Name | Type | Default | Applies to | Description |
|
|
60
|
+
| --- | --- | --- | --- | --- |
|
|
61
|
+
| `open` | `boolean` | — | ActionSheet | Present at all means the consumer owns the state, for the life of the component. The family then asks and waits |
|
|
62
|
+
| `defaultOpen` | `boolean` | — | ActionSheet | The value an uncontrolled sheet starts from, read once |
|
|
63
|
+
| `modal` | `boolean` | true | ActionSheet, ActionSheetDefaultsProvider | Whether the page is inert, the scroll locked, focus contained and the scrim painted. false keeps the page operable and paints no scrim |
|
|
64
|
+
| `mount` | `'active' \| 'lazy' \| 'eager'` | active | ActionSheet, ActionSheetDefaultsProvider | When the layer exists. active drops it once the exit is over, lazy builds it on the first open and keeps it, eager builds it up front and makes it inert |
|
|
65
|
+
| `escape` | `'close' \| 'none'` | close | ActionSheet, ActionSheetDefaultsProvider | Whether Escape asks to close. It reaches the topmost layer only |
|
|
66
|
+
| `outsidePress` | `'close' \| 'none'` | close | ActionSheet, ActionSheetDefaultsProvider | Whether a press outside the panel — on the scrim, or on the page behind a non-modal sheet — asks to close |
|
|
67
|
+
| `back` | `'close' \| 'none'` | close | ActionSheet, ActionSheetDefaultsProvider | The platform’s way back — a phone’s gesture, a browser’s button — closes the sheet instead of leaving the page, while it is modal |
|
|
68
|
+
| `closeOnSelect` | `boolean` | true | ActionSheet, ActionSheetDefaultsProvider | Whether choosing an action closes the sheet with the reason select |
|
|
69
|
+
| `messages` | `Partial<ActionSheetMessages>` | — | ActionSheet | Words laid over the language in force, key by key: the cancel’s words when it is given no children (cancel) |
|
|
70
|
+
| `initialFocus` | `RefObject<HTMLElement> \| false` | — | ActionSheet | Where focus goes on opening. Unstated, the first action that can run, or the least destructive one when that action is danger. false moves nothing |
|
|
71
|
+
| `finalFocus` | `RefObject<HTMLElement> \| false` | — | ActionSheet | Where focus goes on closing. Unstated, the element that held it on opening |
|
|
72
|
+
| `value` | `string` | — | ActionSheetItem | What the close request carries as result when this action is chosen |
|
|
73
|
+
| `textValue` | `string` | — | ActionSheetItem | What typeahead matches when the label is not plain text |
|
|
74
|
+
| `icon` | `ReactNode` | — | ActionSheetItem | The action’s visual, drawn in the mark column |
|
|
75
|
+
| `description` | `ReactNode` | — | ActionSheetItem | The second line, which aria-describedby points at |
|
|
76
|
+
| `tone` | `'accent' \| 'secondary' \| 'success' \| 'warning' \| 'danger'` | — | ActionSheetItem | Paints the words, the mark and the highlight. danger is the destructive action |
|
|
77
|
+
| `disabled` | `boolean` | false | ActionSheetItem | The action cannot run. It stays focusable and takes aria-disabled |
|
|
78
|
+
| `loading` | `boolean` | false | ActionSheetItem | The action is running: the ring takes the mark’s box, aria-busy is written, a second press is refused and the sheet stays open |
|
|
79
|
+
| `closeOnSelect` | `boolean` | — | ActionSheetItem | Overrides the sheet’s closeOnSelect for this action |
|
|
80
|
+
| `label` | `ReactNode` | — | ActionSheetGroup | Rendered as the group-label part, and the group’s accessible name |
|
|
81
|
+
| `render` | `(props) => ReactNode` | — | ActionSheetTrigger, ActionSheetContent, ActionSheetTitle, ActionSheetMessage, ActionSheetItem, ActionSheetCancel | Substitutes the element. An item that navigates renders an anchor and keeps its role and keyboard; the trigger becomes the application’s own Button. The list, the groups and the separator are fixed, because their role is what they are |
|
|
82
|
+
| `ref` | `Ref<ActionSheetHandle> on ActionSheet, Ref<HTMLElement> on every part` | — | ActionSheet, every part | On a part it reaches the element. On the family it is a handle with open(), close() and focus() — the actions a consumer cannot express declaratively |
|
|
83
|
+
| `container` | `Element \| null` | — | ActionSheet | A parent for this layer alone instead of the shared portal root, passed to drawer |
|
|
84
|
+
| `useActionSheet()` | `() => ActionSheetContextValue` | — | inside ActionSheet | What the parts read: the open state, the identifiers, the axes and close(reason, result). It throws outside a sheet |
|
|
85
|
+
| `ActionSheetDefaultsProvider` | `{ modal, mount, escape, outsidePress, back, closeOnSelect }` | — | a subtree | The decisions an application takes once. A sheet that states any of them itself still wins |
|
|
86
|
+
|
|
87
|
+
## Events
|
|
88
|
+
|
|
89
|
+
| Name | Payload | When |
|
|
90
|
+
| --- | --- | --- |
|
|
91
|
+
| `onOpenChange` | `(open: boolean, request: ActionSheetChangeRequest)` | Before the sheet moves, for every way it can: reason is pointer or keyboard from the trigger, pointer from a drag of the sheet that asks to close, select from an item, dismiss from the cancel, escape, outsidePress, back, or programmatic from the handle. result carries the chosen item’s value when the reason is select, and cancel() refuses the move before anything commits. |
|
|
92
|
+
| `onSelect` | `(event: ActionSheetSelectEvent)` | On ActionSheetItem, when an item that can run is activated, before the sheet asks to close. The event carries reason, value and the originating event; preventDefault() keeps the sheet open. |
|
|
93
|
+
| `onClick, onKeyDown, onPointerMove, on every part` | `the element’s own events` | Whenever the element fires them. The consumer’s handler runs first, and preventDefault() refuses the family’s own behaviour. |
|
|
94
|
+
|
|
6
95
|
## Axes and defaults
|
|
7
96
|
|
|
8
97
|
| Axis | Values | Default |
|
|
@@ -14,6 +103,208 @@
|
|
|
14
103
|
| `back` | `close`, `none` | `close` |
|
|
15
104
|
| `closeOnSelect` | `true`, `false` | `true` |
|
|
16
105
|
|
|
106
|
+
## Rules
|
|
107
|
+
|
|
108
|
+
- No WAI-ARIA APG pattern describes an action sheet, so the layer answers Dialog (Modal) — w3.org/WAI/ARIA/apg/patterns/dialog-modal/ — and the list answers Menu — w3.org/WAI/ARIA/apg/patterns/menubar/. The panel is role="dialog", aria-modal while modal, named by the title and described by the message; the list is role="menu", named by the same title, and every action is a native button with role="menuitem".
|
|
109
|
+
- The list is one tab stop. ArrowDown and ArrowUp move between actions and wrap, Home and End reach the ends, and a printable character moves to the next action whose label, or textValue, begins with it. Tab moves between the list and the cancel and does not close — the one departure from the menu pattern, because the menu is the content of a dialog and the dialog contains focus. A reader leaves with Escape or the cancel.
|
|
110
|
+
- A screen reader hears the title twice on entry, once for the dialog and once for the menu. Without a name the menu would be anonymous to a reader moving by widget, and the repetition is the cheaper cost.
|
|
111
|
+
- Focus enters on the first action that can run. When that action is destructive it enters on the cancel, which is the least destructive action the dialog pattern’s first note recommends; with no cancel, on the first action that is not danger. It returns to the element that held it on close, except after a press outside a non-modal sheet, where the reader was going somewhere else.
|
|
112
|
+
- A disabled or loading action keeps its place in the ring and takes aria-disabled, as the menu pattern requires; a loading one also carries aria-busy. The cancel is never disabled, because a sheet that cannot be left is a trap. Every action is a control’s height tall, which the theme raises to the 44-pixel comfortable target under a coarse pointer; on a phone the label grows from 14 to 16 pixels with it.
|
|
113
|
+
- The layer is drawer’s, so the sheet answers everything a drawer from the bottom answers: a touch on its body drags it and a release toward the edge asks to close with the reason pointer, which cancel() refuses like any other close; with the virtual keyboard open the sheet lands above the keys. Nothing of that needs a key: Escape and the cancel are the keyboard’s way out.
|
|
114
|
+
- A mouse or a pen moving over an action focuses it, so one row is lit whichever device drives; a finger does not, because focus moving under a touch that is about to scroll would light rows at random.
|
|
115
|
+
|
|
17
116
|
## Tokens
|
|
18
117
|
|
|
19
118
|
`--slotted-action-sheet-footer-surface`, `--slotted-action-sheet-highlight`, `--slotted-action-sheet-highlight-active`, `--slotted-action-sheet-inline-size`, `--slotted-action-sheet-rule-color`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-gap-lg`, `--slotted-control-height-lg`, `--slotted-control-padding-inline-lg`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--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-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-sunken`, `--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`
|
|
119
|
+
|
|
120
|
+
## Examples
|
|
121
|
+
|
|
122
|
+
### The destructive choice, at the top
|
|
123
|
+
|
|
124
|
+
tone="danger" paints the words, the mark and the highlight red, and the destructive action goes first, where it is noticed. Opened, this sheet puts focus on Cancelar rather than on the danger.
|
|
125
|
+
|
|
126
|
+
Excerpt — not a complete module
|
|
127
|
+
|
|
128
|
+
```tsx
|
|
129
|
+
<ActionSheetList>
|
|
130
|
+
<ActionSheetItem value="delete" tone="danger">
|
|
131
|
+
Eliminar rascunho
|
|
132
|
+
</ActionSheetItem>
|
|
133
|
+
<ActionSheetItem value="save">Guardar rascunho</ActionSheetItem>
|
|
134
|
+
</ActionSheetList>;
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Groups, a rule, a second line and an action that is not available
|
|
138
|
+
|
|
139
|
+
A group is named by its label, a separator draws the rule between two runs, and a disabled action keeps its place and says in its second line why it cannot run — it stays in the arrow ring and refuses the press.
|
|
140
|
+
|
|
141
|
+
Excerpt — not a complete module
|
|
142
|
+
|
|
143
|
+
```tsx
|
|
144
|
+
<ActionSheetList>
|
|
145
|
+
<ActionSheetGroup label="Enviar">
|
|
146
|
+
<ActionSheetItem value="remind">Lembrar o cliente</ActionSheetItem>
|
|
147
|
+
<ActionSheetItem value="accounting" disabled description="Disponível depois de aprovada">
|
|
148
|
+
Enviar para a contabilidade
|
|
149
|
+
</ActionSheetItem>
|
|
150
|
+
</ActionSheetGroup>
|
|
151
|
+
<ActionSheetSeparator />
|
|
152
|
+
<ActionSheetGroup label="Estado">
|
|
153
|
+
<ActionSheetItem value="paid" tone="success">
|
|
154
|
+
Marcar como paga
|
|
155
|
+
</ActionSheetItem>
|
|
156
|
+
</ActionSheetGroup>
|
|
157
|
+
</ActionSheetList>;
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Content the family did not choose
|
|
161
|
+
|
|
162
|
+
A title of two lines, a long message, labels that wrap and a reference with no spaces: nothing truncates, the list is the one row that scrolls, and the title and the cancel stay on screen.
|
|
163
|
+
|
|
164
|
+
Excerpt — not a complete module
|
|
165
|
+
|
|
166
|
+
```tsx
|
|
167
|
+
<ActionSheetItem value="copy-ref">
|
|
168
|
+
Copiar ENC-2026-0000088213-ATLANTICA-PT-LISBOA-NORTE
|
|
169
|
+
</ActionSheetItem>;
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### An action that takes time
|
|
173
|
+
|
|
174
|
+
Press Descarregar PDF: the ring takes the mark’s box and the label stays, so nothing moves; the item carries aria-busy, refuses a second press, and the sheet stays open until the consumer clears loading.
|
|
175
|
+
|
|
176
|
+
Excerpt — not a complete module
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
<ActionSheetItem
|
|
180
|
+
value="pdf"
|
|
181
|
+
loading={exporting}
|
|
182
|
+
onSelect={(event) => {
|
|
183
|
+
event.preventDefault();
|
|
184
|
+
setExporting(true);
|
|
185
|
+
exportPdf().then(() => {
|
|
186
|
+
setExporting(false);
|
|
187
|
+
setOpen(false);
|
|
188
|
+
});
|
|
189
|
+
}}
|
|
190
|
+
>
|
|
191
|
+
Descarregar PDF
|
|
192
|
+
</ActionSheetItem>;
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Modal, or beside the page
|
|
196
|
+
|
|
197
|
+
modal is the default: the page is inert, the scroll is locked and the scrim is painted. modal={false} paints no scrim and leaves the page operable — the map behind stays live — while a press outside still closes the sheet.
|
|
198
|
+
|
|
199
|
+
Excerpt — not a complete module
|
|
200
|
+
|
|
201
|
+
```tsx
|
|
202
|
+
<ActionSheet modal={false}>…</ActionSheet>;
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### What may close it
|
|
206
|
+
|
|
207
|
+
escape, outsidePress and back each take close or none, and every close is a request the consumer can cancel. Here only Cancelar closes the sheet; the line under the trigger names each request that arrived and whether it was refused.
|
|
208
|
+
|
|
209
|
+
Excerpt — not a complete module
|
|
210
|
+
|
|
211
|
+
```tsx
|
|
212
|
+
<ActionSheet escape="none" outsidePress="none" back="none">
|
|
213
|
+
…
|
|
214
|
+
</ActionSheet>;
|
|
215
|
+
|
|
216
|
+
<ActionSheet
|
|
217
|
+
onOpenChange={(open, request) => {
|
|
218
|
+
if (!open && saving) request.cancel();
|
|
219
|
+
}}
|
|
220
|
+
>
|
|
221
|
+
…
|
|
222
|
+
</ActionSheet>;
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Where focus enters, and where it goes back
|
|
226
|
+
|
|
227
|
+
Focus enters on the first action that can run; when that action is destructive it enters on Cancelar, the least destructive one the dialog pattern asks for. On close it returns to the trigger; initialFocus and finalFocus name other elements.
|
|
228
|
+
|
|
229
|
+
Excerpt — not a complete module
|
|
230
|
+
|
|
231
|
+
```tsx
|
|
232
|
+
<ActionSheet initialFocus={saveRef} finalFocus={composerRef}>
|
|
233
|
+
…
|
|
234
|
+
</ActionSheet>;
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Which action was chosen, and why it closed
|
|
238
|
+
|
|
239
|
+
The close request carries reason and, when the reason is select, result — the value of the item chosen. There is no controller that returns a promise: the request already says what the promise would.
|
|
240
|
+
|
|
241
|
+
Excerpt — not a complete module
|
|
242
|
+
|
|
243
|
+
```tsx
|
|
244
|
+
<ActionSheet
|
|
245
|
+
open={open}
|
|
246
|
+
onOpenChange={(next, request) => {
|
|
247
|
+
setOpen(next);
|
|
248
|
+
if (request.reason === 'select') archive(request.result);
|
|
249
|
+
}}
|
|
250
|
+
>
|
|
251
|
+
…
|
|
252
|
+
</ActionSheet>;
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### One list of actions, a menu on a pointer and a sheet on a phone
|
|
256
|
+
|
|
257
|
+
The item vocabulary is menu’s, word for word — value, icon, description, tone, disabled, onSelect — so one array renders as either family, and the breakpoint that picks between them is the application’s.
|
|
258
|
+
|
|
259
|
+
Excerpt — not a complete module
|
|
260
|
+
|
|
261
|
+
```tsx
|
|
262
|
+
const coarse = useMediaQuery('(pointer: coarse)');
|
|
263
|
+
|
|
264
|
+
coarse ? (
|
|
265
|
+
<ActionSheet>
|
|
266
|
+
<ActionSheetTrigger>Mais</ActionSheetTrigger>
|
|
267
|
+
<ActionSheetContent aria-label="Ações">
|
|
268
|
+
<ActionSheetList aria-label="Ações">
|
|
269
|
+
{actions.map((action) => (
|
|
270
|
+
<ActionSheetItem key={action.value} {...action} />
|
|
271
|
+
))}
|
|
272
|
+
</ActionSheetList>
|
|
273
|
+
<ActionSheetCancel />
|
|
274
|
+
</ActionSheetContent>
|
|
275
|
+
</ActionSheet>
|
|
276
|
+
) : (
|
|
277
|
+
<Menu>
|
|
278
|
+
<MenuTrigger>Mais</MenuTrigger>
|
|
279
|
+
<MenuContent aria-label="Ações">
|
|
280
|
+
{actions.map((action) => (
|
|
281
|
+
<MenuItem key={action.value} {...action} />
|
|
282
|
+
))}
|
|
283
|
+
</MenuContent>
|
|
284
|
+
</Menu>
|
|
285
|
+
);
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Decided once for the application
|
|
289
|
+
|
|
290
|
+
ActionSheetDefaultsProvider sets modal, mount, escape, outsidePress, back and closeOnSelect for every sheet below it, and a sheet that states a value itself still wins. The cancel’s words come from the language in force (SlottedProvider).
|
|
291
|
+
|
|
292
|
+
Excerpt — not a complete module
|
|
293
|
+
|
|
294
|
+
```tsx
|
|
295
|
+
<ActionSheetDefaultsProvider closeOnSelect={false} back="close">
|
|
296
|
+
<App />
|
|
297
|
+
</ActionSheetDefaultsProvider>;
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### The keyboard
|
|
301
|
+
|
|
302
|
+
Open it and use the keys: the arrows move between actions and wrap, Home and End reach the ends, a letter moves to the next action that starts with it, Tab moves between the list and Cancelar, and Escape closes and returns focus.
|
|
303
|
+
|
|
304
|
+
Excerpt — not a complete module
|
|
305
|
+
|
|
306
|
+
```tsx
|
|
307
|
+
<ActionSheetItem value="flag" textValue="Sinalizar">
|
|
308
|
+
<FlagBadge /> Sinalizar
|
|
309
|
+
</ActionSheetItem>;
|
|
310
|
+
```
|
package/dist/docs/alert.json
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"type": "'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
|
|
123
123
|
"defaultValue": "accent",
|
|
124
124
|
"appliesTo": "Alert",
|
|
125
|
-
"description": "Which of the five semantic colours the message speaks in, and which mark it draws:
|
|
125
|
+
"description": "Which of the five semantic colours the message speaks in, and which mark it draws: status-info, none for secondary, status-success, status-warning, status-danger"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"name": "variant",
|
package/dist/docs/alert.md
CHANGED
|
@@ -45,7 +45,7 @@ Excerpt — not a complete module
|
|
|
45
45
|
|
|
46
46
|
| Name | Type | Default | Applies to | Description |
|
|
47
47
|
| --- | --- | --- | --- | --- |
|
|
48
|
-
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | Alert | Which of the five semantic colours the message speaks in, and which mark it draws:
|
|
48
|
+
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | accent | Alert | Which of the five semantic colours the message speaks in, and which mark it draws: status-info, none for secondary, status-success, status-warning, status-danger |
|
|
49
49
|
| `variant` | `'soft' \| 'outline' \| 'solid'` | soft | Alert | How that colour is painted. soft carries the tone’s surface and its border, outline the border alone, solid the tone’s fill and the ink the theme measures against it |
|
|
50
50
|
| `reach` | `'inline' \| 'section' \| 'page'` | section | Alert | The scope the message applies to. inline is tightest and sits beside a field group; page loses its corners and its inline edges because it runs to both edges of what holds it |
|
|
51
51
|
| `live` | `'off' \| 'polite' \| 'assertive'` | off | Alert | Whether the text announces itself. polite writes role="status" on the content part and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box |
|
package/dist/docs/combobox.json
CHANGED
|
@@ -820,6 +820,7 @@
|
|
|
820
820
|
"--slotted-combobox-color",
|
|
821
821
|
"--slotted-combobox-completion-background",
|
|
822
822
|
"--slotted-combobox-completion-color",
|
|
823
|
+
"--slotted-combobox-content-backdrop-filter",
|
|
823
824
|
"--slotted-combobox-content-border-color",
|
|
824
825
|
"--slotted-combobox-content-padding-block",
|
|
825
826
|
"--slotted-combobox-content-padding-inline",
|
package/dist/docs/combobox.md
CHANGED
|
@@ -190,7 +190,7 @@ export default function ComboboxBasic() {
|
|
|
190
190
|
|
|
191
191
|
## Tokens
|
|
192
192
|
|
|
193
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-combobox-action-active-background`, `--slotted-combobox-action-color`, `--slotted-combobox-action-hover-background`, `--slotted-combobox-action-size`, `--slotted-combobox-arrow-color`, `--slotted-combobox-autofill-background`, `--slotted-combobox-background`, `--slotted-combobox-border-color`, `--slotted-combobox-color`, `--slotted-combobox-completion-background`, `--slotted-combobox-completion-color`, `--slotted-combobox-content-border-color`, `--slotted-combobox-content-padding-block`, `--slotted-combobox-content-padding-inline`, `--slotted-combobox-content-radius`, `--slotted-combobox-content-shadow`, `--slotted-combobox-content-text`, `--slotted-combobox-content-text-muted`, `--slotted-combobox-disabled-background`, `--slotted-combobox-disabled-border-color`, `--slotted-combobox-disabled-color`, `--slotted-combobox-highlight`, `--slotted-combobox-highlight-active`, `--slotted-combobox-highlight-ring`, `--slotted-combobox-hover-border-color`, `--slotted-combobox-icon-size-min`, `--slotted-combobox-invalid-border-color`, `--slotted-combobox-invalid-edge-width`, `--slotted-combobox-invalid-focus-ring-color`, `--slotted-combobox-item-radius`, `--slotted-combobox-measure`, `--slotted-combobox-open-border-color`, `--slotted-combobox-placeholder-color`, `--slotted-combobox-plain-hover-background`, `--slotted-combobox-radius`, `--slotted-combobox-readonly-background`, `--slotted-combobox-selected-color`, `--slotted-combobox-separator-color`, `--slotted-combobox-shadow`, `--slotted-combobox-subtle-background`, `--slotted-combobox-subtle-border-color`, `--slotted-combobox-subtle-hover-background`, `--slotted-combobox-surface`, `--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-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`
|
|
193
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-combobox-action-active-background`, `--slotted-combobox-action-color`, `--slotted-combobox-action-hover-background`, `--slotted-combobox-action-size`, `--slotted-combobox-arrow-color`, `--slotted-combobox-autofill-background`, `--slotted-combobox-background`, `--slotted-combobox-border-color`, `--slotted-combobox-color`, `--slotted-combobox-completion-background`, `--slotted-combobox-completion-color`, `--slotted-combobox-content-backdrop-filter`, `--slotted-combobox-content-border-color`, `--slotted-combobox-content-padding-block`, `--slotted-combobox-content-padding-inline`, `--slotted-combobox-content-radius`, `--slotted-combobox-content-shadow`, `--slotted-combobox-content-text`, `--slotted-combobox-content-text-muted`, `--slotted-combobox-disabled-background`, `--slotted-combobox-disabled-border-color`, `--slotted-combobox-disabled-color`, `--slotted-combobox-highlight`, `--slotted-combobox-highlight-active`, `--slotted-combobox-highlight-ring`, `--slotted-combobox-hover-border-color`, `--slotted-combobox-icon-size-min`, `--slotted-combobox-invalid-border-color`, `--slotted-combobox-invalid-edge-width`, `--slotted-combobox-invalid-focus-ring-color`, `--slotted-combobox-item-radius`, `--slotted-combobox-measure`, `--slotted-combobox-open-border-color`, `--slotted-combobox-placeholder-color`, `--slotted-combobox-plain-hover-background`, `--slotted-combobox-radius`, `--slotted-combobox-readonly-background`, `--slotted-combobox-selected-color`, `--slotted-combobox-separator-color`, `--slotted-combobox-shadow`, `--slotted-combobox-subtle-background`, `--slotted-combobox-subtle-border-color`, `--slotted-combobox-subtle-hover-background`, `--slotted-combobox-surface`, `--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-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`
|
|
194
194
|
|
|
195
195
|
## Examples
|
|
196
196
|
|
package/dist/docs/data-grid.json
CHANGED
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
"docs": {
|
|
193
|
-
"
|
|
193
|
+
"data-grid": {
|
|
194
194
|
"imports": {
|
|
195
195
|
"source": "import { DataGrid, DataGridDefaultsProvider, type DataGridColumn } from '@slotted/react';\nimport type { GridColumn, GridQuery, GridColumnState } from '@slotted/core/grid';\nimport { applyQuery, emptyQuery, toGridParams, fromGridParams } from '@slotted/core/grid';"
|
|
196
196
|
},
|
|
@@ -413,6 +413,7 @@
|
|
|
413
413
|
"--slotted-control-radius",
|
|
414
414
|
"--slotted-control-transition-duration",
|
|
415
415
|
"--slotted-control-transition-easing",
|
|
416
|
+
"--slotted-date-picker-content-backdrop-filter",
|
|
416
417
|
"--slotted-date-picker-content-border-color",
|
|
417
418
|
"--slotted-date-picker-content-color",
|
|
418
419
|
"--slotted-date-picker-content-padding",
|
package/dist/docs/date-picker.md
CHANGED
|
@@ -108,7 +108,7 @@ export default function DatePickerBasic() {
|
|
|
108
108
|
|
|
109
109
|
## Tokens
|
|
110
110
|
|
|
111
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--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-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-date-picker-content-border-color`, `--slotted-date-picker-content-color`, `--slotted-date-picker-content-padding`, `--slotted-date-picker-content-radius`, `--slotted-date-picker-content-shadow`, `--slotted-date-picker-invalid-focus-ring-color`, `--slotted-date-picker-radius`, `--slotted-date-picker-surface`, `--slotted-date-picker-trigger-active-background`, `--slotted-date-picker-trigger-color`, `--slotted-date-picker-trigger-hover-background`, `--slotted-date-picker-trigger-size`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
111
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--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-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-date-picker-content-backdrop-filter`, `--slotted-date-picker-content-border-color`, `--slotted-date-picker-content-color`, `--slotted-date-picker-content-padding`, `--slotted-date-picker-content-radius`, `--slotted-date-picker-content-shadow`, `--slotted-date-picker-invalid-focus-ring-color`, `--slotted-date-picker-radius`, `--slotted-date-picker-surface`, `--slotted-date-picker-trigger-active-background`, `--slotted-date-picker-trigger-color`, `--slotted-date-picker-trigger-hover-background`, `--slotted-date-picker-trigger-size`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
112
112
|
|
|
113
113
|
## Examples
|
|
114
114
|
|
package/dist/docs/drawer.json
CHANGED
|
@@ -453,6 +453,7 @@
|
|
|
453
453
|
"--slotted-control-radius",
|
|
454
454
|
"--slotted-control-transition-duration",
|
|
455
455
|
"--slotted-control-transition-easing",
|
|
456
|
+
"--slotted-drawer-backdrop-filter",
|
|
456
457
|
"--slotted-drawer-body-color",
|
|
457
458
|
"--slotted-drawer-border-color",
|
|
458
459
|
"--slotted-drawer-close-active-background",
|
package/dist/docs/drawer.md
CHANGED
|
@@ -180,7 +180,7 @@ export default function DrawerBasic() {
|
|
|
180
180
|
|
|
181
181
|
## Tokens
|
|
182
182
|
|
|
183
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
183
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
184
184
|
|
|
185
185
|
## Examples
|
|
186
186
|
|
|
@@ -796,6 +796,7 @@
|
|
|
796
796
|
"--slotted-entity-picker-background",
|
|
797
797
|
"--slotted-entity-picker-border-color",
|
|
798
798
|
"--slotted-entity-picker-color",
|
|
799
|
+
"--slotted-entity-picker-content-backdrop-filter",
|
|
799
800
|
"--slotted-entity-picker-content-border-color",
|
|
800
801
|
"--slotted-entity-picker-content-radius",
|
|
801
802
|
"--slotted-entity-picker-content-shadow",
|
|
@@ -160,7 +160,7 @@ const directory: EntitySource = {
|
|
|
160
160
|
|
|
161
161
|
## Tokens
|
|
162
162
|
|
|
163
|
-
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xs`, `--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-entity-picker-action-active-background`, `--slotted-entity-picker-action-color`, `--slotted-entity-picker-action-hover-background`, `--slotted-entity-picker-action-size`, `--slotted-entity-picker-autofill-background`, `--slotted-entity-picker-background`, `--slotted-entity-picker-border-color`, `--slotted-entity-picker-color`, `--slotted-entity-picker-content-border-color`, `--slotted-entity-picker-content-radius`, `--slotted-entity-picker-content-shadow`, `--slotted-entity-picker-content-text`, `--slotted-entity-picker-content-text-muted`, `--slotted-entity-picker-disabled-background`, `--slotted-entity-picker-disabled-border-color`, `--slotted-entity-picker-disabled-color`, `--slotted-entity-picker-error-color`, `--slotted-entity-picker-field-basis`, `--slotted-entity-picker-field-min`, `--slotted-entity-picker-highlight`, `--slotted-entity-picker-highlight-active`, `--slotted-entity-picker-highlight-ring`, `--slotted-entity-picker-hover-border-color`, `--slotted-entity-picker-icon-size-min`, `--slotted-entity-picker-invalid-border-color`, `--slotted-entity-picker-invalid-edge-width`, `--slotted-entity-picker-invalid-focus-ring-color`, `--slotted-entity-picker-item-radius`, `--slotted-entity-picker-measure`, `--slotted-entity-picker-meta-measure`, `--slotted-entity-picker-offer-color`, `--slotted-entity-picker-open-border-color`, `--slotted-entity-picker-placeholder-color`, `--slotted-entity-picker-plain-hover-background`, `--slotted-entity-picker-radius`, `--slotted-entity-picker-readonly-background`, `--slotted-entity-picker-scope-inline-size`, `--slotted-entity-picker-selected-color`, `--slotted-entity-picker-shadow`, `--slotted-entity-picker-subtle-background`, `--slotted-entity-picker-subtle-border-color`, `--slotted-entity-picker-subtle-hover-background`, `--slotted-entity-picker-surface`, `--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-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--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-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
163
|
+
`--slotted-avatar-size-md`, `--slotted-avatar-size-sm`, `--slotted-avatar-size-xs`, `--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-entity-picker-action-active-background`, `--slotted-entity-picker-action-color`, `--slotted-entity-picker-action-hover-background`, `--slotted-entity-picker-action-size`, `--slotted-entity-picker-autofill-background`, `--slotted-entity-picker-background`, `--slotted-entity-picker-border-color`, `--slotted-entity-picker-color`, `--slotted-entity-picker-content-backdrop-filter`, `--slotted-entity-picker-content-border-color`, `--slotted-entity-picker-content-radius`, `--slotted-entity-picker-content-shadow`, `--slotted-entity-picker-content-text`, `--slotted-entity-picker-content-text-muted`, `--slotted-entity-picker-disabled-background`, `--slotted-entity-picker-disabled-border-color`, `--slotted-entity-picker-disabled-color`, `--slotted-entity-picker-error-color`, `--slotted-entity-picker-field-basis`, `--slotted-entity-picker-field-min`, `--slotted-entity-picker-highlight`, `--slotted-entity-picker-highlight-active`, `--slotted-entity-picker-highlight-ring`, `--slotted-entity-picker-hover-border-color`, `--slotted-entity-picker-icon-size-min`, `--slotted-entity-picker-invalid-border-color`, `--slotted-entity-picker-invalid-edge-width`, `--slotted-entity-picker-invalid-focus-ring-color`, `--slotted-entity-picker-item-radius`, `--slotted-entity-picker-measure`, `--slotted-entity-picker-meta-measure`, `--slotted-entity-picker-offer-color`, `--slotted-entity-picker-open-border-color`, `--slotted-entity-picker-placeholder-color`, `--slotted-entity-picker-plain-hover-background`, `--slotted-entity-picker-radius`, `--slotted-entity-picker-readonly-background`, `--slotted-entity-picker-scope-inline-size`, `--slotted-entity-picker-selected-color`, `--slotted-entity-picker-shadow`, `--slotted-entity-picker-subtle-background`, `--slotted-entity-picker-subtle-border-color`, `--slotted-entity-picker-subtle-hover-background`, `--slotted-entity-picker-surface`, `--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-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--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-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
164
164
|
|
|
165
165
|
## Examples
|
|
166
166
|
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"The severity is a word, not only a colour and a mark. A reader who cannot see the message hears the sentence and nothing else, so the family writes “Error:”, “Warning:” or “Success:” in clipped text before it — GOV.UK’s Error message component publishes the idea for errors, and this generalises it to every severity and to a table an application replaces once through the provider.",
|
|
216
216
|
"The live role goes on the message itself. Alert puts its role on an inner part because it has a dismiss button beside its text and MDN’s alert role reference restricts the role to text content; this family owns no controls, so the element that is the text is the element that announces. live defaults to off, because a message already present when the page finishes loading is announced by nothing whatever role it carries.",
|
|
217
217
|
"Wiring is the control’s job and the identifier is the family’s. MDN: set aria-invalid=\"true\" on the control, then aria-errormessage to the id of the element holding the message. The family generates an id with useId when the page states none, and never replaces one the page wrote.",
|
|
218
|
-
"The mark is aria-hidden, because it repeats what the severity word already says. Under forced colours it keeps its silhouette in CanvasText — the circle, the
|
|
218
|
+
"The mark is aria-hidden, because it repeats what the severity word already says. Under forced colours it keeps its silhouette in CanvasText — the circle, the diamond and the circled exclamation are what tell an error from a note when every colour has been replaced, which is WCAG 2.2 1.4.1.",
|
|
219
219
|
"A disabled message is muted to a measured colour rather than faded by opacity, and its ring stops: STATE_PRECEDENCE puts disabled above loading, and a control nobody can use is not waiting for anything. Nothing is removed from the accessibility tree, because a message about a disabled field is still a message.",
|
|
220
220
|
"The family never becomes a tooltip. The message is visible text in the flow of the page, which is the requirement WCAG 2.2 3.3.1 states and the one a hover-only error fails for every reader who does not hover."
|
|
221
221
|
]
|
|
@@ -66,7 +66,7 @@ Excerpt — not a complete module
|
|
|
66
66
|
- The severity is a word, not only a colour and a mark. A reader who cannot see the message hears the sentence and nothing else, so the family writes “Error:”, “Warning:” or “Success:” in clipped text before it — GOV.UK’s Error message component publishes the idea for errors, and this generalises it to every severity and to a table an application replaces once through the provider.
|
|
67
67
|
- The live role goes on the message itself. Alert puts its role on an inner part because it has a dismiss button beside its text and MDN’s alert role reference restricts the role to text content; this family owns no controls, so the element that is the text is the element that announces. live defaults to off, because a message already present when the page finishes loading is announced by nothing whatever role it carries.
|
|
68
68
|
- Wiring is the control’s job and the identifier is the family’s. MDN: set aria-invalid="true" on the control, then aria-errormessage to the id of the element holding the message. The family generates an id with useId when the page states none, and never replaces one the page wrote.
|
|
69
|
-
- The mark is aria-hidden, because it repeats what the severity word already says. Under forced colours it keeps its silhouette in CanvasText — the circle, the
|
|
69
|
+
- The mark is aria-hidden, because it repeats what the severity word already says. Under forced colours it keeps its silhouette in CanvasText — the circle, the diamond and the circled exclamation are what tell an error from a note when every colour has been replaced, which is WCAG 2.2 1.4.1.
|
|
70
70
|
- A disabled message is muted to a measured colour rather than faded by opacity, and its ring stops: STATE_PRECEDENCE puts disabled above loading, and a control nobody can use is not waiting for anything. Nothing is removed from the accessibility tree, because a message about a disabled field is still a message.
|
|
71
71
|
- The family never becomes a tooltip. The message is visible text in the flow of the page, which is the requirement WCAG 2.2 3.3.1 states and the one a hover-only error fails for every reader who does not hover.
|
|
72
72
|
|
package/dist/docs/kbd.json
CHANGED
|
@@ -233,10 +233,13 @@
|
|
|
233
233
|
"--slotted-font-family-sans",
|
|
234
234
|
"--slotted-font-weight-medium",
|
|
235
235
|
"--slotted-kbd-base-width",
|
|
236
|
+
"--slotted-kbd-border-color",
|
|
236
237
|
"--slotted-kbd-border-width",
|
|
238
|
+
"--slotted-kbd-color",
|
|
237
239
|
"--slotted-kbd-font-family",
|
|
238
240
|
"--slotted-kbd-font-weight",
|
|
239
241
|
"--slotted-kbd-radius",
|
|
242
|
+
"--slotted-kbd-surface",
|
|
240
243
|
"--slotted-kbd-symbol-font-family",
|
|
241
244
|
"--slotted-radius-lg",
|
|
242
245
|
"--slotted-radius-md",
|
package/dist/docs/kbd.md
CHANGED
|
@@ -71,7 +71,7 @@ Excerpt — not a complete module
|
|
|
71
71
|
|
|
72
72
|
## Tokens
|
|
73
73
|
|
|
74
|
-
`--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-inner-size`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-font-family-sans`, `--slotted-font-weight-medium`, `--slotted-kbd-base-width`, `--slotted-kbd-border-width`, `--slotted-kbd-font-family`, `--slotted-kbd-font-weight`, `--slotted-kbd-radius`, `--slotted-kbd-symbol-font-family`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`
|
|
74
|
+
`--slotted-border-strong`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-inner-size`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-font-family-sans`, `--slotted-font-weight-medium`, `--slotted-kbd-base-width`, `--slotted-kbd-border-color`, `--slotted-kbd-border-width`, `--slotted-kbd-color`, `--slotted-kbd-font-family`, `--slotted-kbd-font-weight`, `--slotted-kbd-radius`, `--slotted-kbd-surface`, `--slotted-kbd-symbol-font-family`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`
|
|
75
75
|
|
|
76
76
|
## Examples
|
|
77
77
|
|
package/dist/docs/menu.json
CHANGED
package/dist/docs/menu.md
CHANGED
|
@@ -158,7 +158,7 @@ export default function MenuBasic() {
|
|
|
158
158
|
|
|
159
159
|
## Tokens
|
|
160
160
|
|
|
161
|
-
`--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-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-menu-border-color`, `--slotted-menu-gap`, `--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-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--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`
|
|
161
|
+
`--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-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-width`, `--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-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-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--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`
|
|
162
162
|
|
|
163
163
|
## Examples
|
|
164
164
|
|
package/dist/docs/popover.json
CHANGED
package/dist/docs/popover.md
CHANGED
|
@@ -175,7 +175,7 @@ export default function PopoverBasic() {
|
|
|
175
175
|
|
|
176
176
|
## Tokens
|
|
177
177
|
|
|
178
|
-
`--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-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-popover-arrow-size`, `--slotted-popover-arrow-tip-radius`, `--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-shadow-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
178
|
+
`--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-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-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-shadow-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
179
179
|
|
|
180
180
|
## Examples
|
|
181
181
|
|