@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
package/dist/docs/section.md
CHANGED
|
@@ -26,17 +26,17 @@ Excerpt — not a complete module
|
|
|
26
26
|
|
|
27
27
|
## Anatomy
|
|
28
28
|
|
|
29
|
-
| Part | Element | Required |
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| `root` | section, or the element render returns | yes |
|
|
32
|
-
| `header` | div | no |
|
|
33
|
-
| `title` | div | no |
|
|
34
|
-
| `eyebrow` | span | no |
|
|
35
|
-
| `heading` | h1 to h6, from the outline or level, or the element render returns | no |
|
|
36
|
-
| `tags` | div | no |
|
|
37
|
-
| `description` | p | no |
|
|
38
|
-
| `actions` | div | no |
|
|
39
|
-
| `body` | div | yes |
|
|
29
|
+
| Part | Parent | Element | Required |
|
|
30
|
+
| --- | --- | --- | --- |
|
|
31
|
+
| `root` | — | section, or the element render returns | yes |
|
|
32
|
+
| `header` | `root` | div | no |
|
|
33
|
+
| `title` | `header` | div | no |
|
|
34
|
+
| `eyebrow` | `title` | span | no |
|
|
35
|
+
| `heading` | `title` | h1 to h6, from the outline or level, or the element render returns | no |
|
|
36
|
+
| `tags` | `title` | div | no |
|
|
37
|
+
| `description` | `title` | p | no |
|
|
38
|
+
| `actions` | `header` | div | no |
|
|
39
|
+
| `body` | `root` | div | yes |
|
|
40
40
|
|
|
41
41
|
## Props
|
|
42
42
|
|
|
@@ -66,6 +66,7 @@ Excerpt — not a complete module
|
|
|
66
66
|
|
|
67
67
|
## Rules
|
|
68
68
|
|
|
69
|
+
- A description outside SectionTitle is not styled: the stylesheet reaches it as a child of the title, so SectionDescription is written inside SectionTitle and nowhere else.
|
|
69
70
|
- The practice is the WAI-ARIA APG’s Landmark Regions (w3.org/WAI/ARIA/apg/practices/landmark-regions/): a section element with an accessible name is a region landmark. The root is aria-labelledby its heading once one is rendered, so a section with a heading appears in the landmark list under the heading’s words, and one without a heading is a plain section that clutters nothing.
|
|
70
71
|
- The rank is real. The heading renders h1 to h6 from the outline typography keeps — h2 directly in a page body, one deeper inside another section’s body — and level overrides it. A heading rendered into another element through render carries role="heading" and aria-level, so the outline survives an editable or linked title.
|
|
71
72
|
- The body is one HeadingLevel deeper, which is what keeps a nested section, a collapsible or a table caption at the right rank without either family reading the other. The HTML Standard requires each heading to be at most one deeper than the one before, and stepping by exactly one is the only way to hold that in a tree assembled from components.
|
|
@@ -74,7 +75,7 @@ Excerpt — not a complete module
|
|
|
74
75
|
|
|
75
76
|
## Tokens
|
|
76
77
|
|
|
77
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-gap-md`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-page-ground`, `--slotted-radius-lg`, `--slotted-section-border`, `--slotted-section-description-measure`, `--slotted-section-gap`, `--slotted-section-heading-size-lg`, `--slotted-section-heading-size-md`, `--slotted-section-heading-size-sm`, `--slotted-section-inset`, `--slotted-section-radius`, `--slotted-section-spacing`, `--slotted-section-subheading-size-lg`, `--slotted-section-subheading-size-md`, `--slotted-section-subheading-size-sm`, `--slotted-section-subsection-spacing`, `--slotted-section-surface`, `--slotted-space-1`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-z-index-sticky`
|
|
78
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-gap-md`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-page-ground`, `--slotted-radius-lg`, `--slotted-section-border`, `--slotted-section-description-measure`, `--slotted-section-gap`, `--slotted-section-header-background`, `--slotted-section-heading-size-lg`, `--slotted-section-heading-size-md`, `--slotted-section-heading-size-sm`, `--slotted-section-inset`, `--slotted-section-radius`, `--slotted-section-spacing`, `--slotted-section-subheading-size-lg`, `--slotted-section-subheading-size-md`, `--slotted-section-subheading-size-sm`, `--slotted-section-subsection-spacing`, `--slotted-section-surface`, `--slotted-space-1`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-z-index-sticky`
|
|
78
79
|
|
|
79
80
|
## Examples
|
|
80
81
|
|
package/dist/docs/select.json
CHANGED
|
@@ -916,6 +916,7 @@
|
|
|
916
916
|
"--slotted-select-background",
|
|
917
917
|
"--slotted-select-border-color",
|
|
918
918
|
"--slotted-select-color",
|
|
919
|
+
"--slotted-select-content-backdrop-filter",
|
|
919
920
|
"--slotted-select-content-border-color",
|
|
920
921
|
"--slotted-select-content-padding-block",
|
|
921
922
|
"--slotted-select-content-padding-inline",
|
package/dist/docs/select.md
CHANGED
|
@@ -201,7 +201,7 @@ export default function SelectBasic() {
|
|
|
201
201
|
|
|
202
202
|
## Tokens
|
|
203
203
|
|
|
204
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-select-action-active-background`, `--slotted-select-action-color`, `--slotted-select-action-hover-background`, `--slotted-select-action-size`, `--slotted-select-arrow-color`, `--slotted-select-background`, `--slotted-select-border-color`, `--slotted-select-color`, `--slotted-select-content-border-color`, `--slotted-select-content-padding-block`, `--slotted-select-content-padding-inline`, `--slotted-select-content-radius`, `--slotted-select-content-shadow`, `--slotted-select-content-text`, `--slotted-select-content-text-muted`, `--slotted-select-disabled-background`, `--slotted-select-disabled-border-color`, `--slotted-select-disabled-color`, `--slotted-select-highlight`, `--slotted-select-highlight-active`, `--slotted-select-highlight-ring`, `--slotted-select-hover-border-color`, `--slotted-select-icon-size-min`, `--slotted-select-invalid-border-color`, `--slotted-select-invalid-edge-width`, `--slotted-select-invalid-focus-ring-color`, `--slotted-select-item-radius`, `--slotted-select-measure`, `--slotted-select-open-border-color`, `--slotted-select-placeholder-color`, `--slotted-select-plain-hover-background`, `--slotted-select-radius`, `--slotted-select-readonly-background`, `--slotted-select-search-icon-color`, `--slotted-select-selected-color`, `--slotted-select-separator-color`, `--slotted-select-shadow`, `--slotted-select-subtle-background`, `--slotted-select-subtle-border-color`, `--slotted-select-subtle-hover-background`, `--slotted-select-surface`, `--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`
|
|
204
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-select-action-active-background`, `--slotted-select-action-color`, `--slotted-select-action-hover-background`, `--slotted-select-action-size`, `--slotted-select-arrow-color`, `--slotted-select-background`, `--slotted-select-border-color`, `--slotted-select-color`, `--slotted-select-content-backdrop-filter`, `--slotted-select-content-border-color`, `--slotted-select-content-padding-block`, `--slotted-select-content-padding-inline`, `--slotted-select-content-radius`, `--slotted-select-content-shadow`, `--slotted-select-content-text`, `--slotted-select-content-text-muted`, `--slotted-select-disabled-background`, `--slotted-select-disabled-border-color`, `--slotted-select-disabled-color`, `--slotted-select-highlight`, `--slotted-select-highlight-active`, `--slotted-select-highlight-ring`, `--slotted-select-hover-border-color`, `--slotted-select-icon-size-min`, `--slotted-select-invalid-border-color`, `--slotted-select-invalid-edge-width`, `--slotted-select-invalid-focus-ring-color`, `--slotted-select-item-radius`, `--slotted-select-measure`, `--slotted-select-open-border-color`, `--slotted-select-placeholder-color`, `--slotted-select-plain-hover-background`, `--slotted-select-radius`, `--slotted-select-readonly-background`, `--slotted-select-search-icon-color`, `--slotted-select-selected-color`, `--slotted-select-separator-color`, `--slotted-select-shadow`, `--slotted-select-subtle-background`, `--slotted-select-subtle-border-color`, `--slotted-select-subtle-hover-background`, `--slotted-select-surface`, `--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`
|
|
205
205
|
|
|
206
206
|
## Examples
|
|
207
207
|
|
|
@@ -17,6 +17,7 @@ Take the first row that reaches the change.
|
|
|
17
17
|
| The brand colour, or the colour of one intent | a seed: `--slotted-seed-accent` or another name of `SEED_NAMES` | the theme's `seeds`, or a scope |
|
|
18
18
|
| Light, dark, high contrast, or the system's preference | the scheme: `light`, `dark`, `high-contrast`, `system` | `data-slotted-scheme`, or the scheme of the `ThemeScope` component from `@slotted/react/theme` |
|
|
19
19
|
| How tight controls and rows are | the density: `comfortable`, `compact`, `dense` | `data-slotted-density`, or the density of the `ThemeScope` component from `@slotted/react/theme` |
|
|
20
|
+
| How round corners are, chosen by the reader | the corners: `square`, `soft`, `standard`, `round` | `data-slotted-corners`, or the corners of the `ThemeScope` component from `@slotted/react/theme`; the theme's `corners` holds each radius scale |
|
|
20
21
|
| How deep a scheme's grounds sit, or how far each layer steps from the one below | the recipe: one derivation per token per scheme | the theme's `recipe`, spread from the base theme's, as below; `themeConformance` still checks every contrast |
|
|
21
22
|
| Spacing, corners, type, lines, shadows or motion | a token of a group in `../../tokens.md` | the theme's `base`; `schemes` for a value per scheme; `densities` per density |
|
|
22
23
|
| One family's look | a token the family's page lists under Tokens | the theme's `components` |
|
|
@@ -54,9 +55,10 @@ has.
|
|
|
54
55
|
|
|
55
56
|
## 3. One region
|
|
56
57
|
|
|
57
|
-
1. A scheme
|
|
58
|
-
an overlay opened inside it, or the `data-slotted-scheme
|
|
59
|
-
`data-slotted-density` attributes on the
|
|
58
|
+
1. A scheme, a density or corners for a subtree: the `ThemeScope` component from `@slotted/react/theme`, which carries
|
|
59
|
+
them to an overlay opened inside it, or the `data-slotted-scheme`,
|
|
60
|
+
`data-slotted-density` and `data-slotted-corners` attributes on the
|
|
61
|
+
subtree's root.
|
|
60
62
|
2. A seed for a subtree: the seed property on an element that also carries
|
|
61
63
|
`data-slotted-seeds`, or the seeds of the `ThemeScope` component from `@slotted/react/theme`. Every colour under it
|
|
62
64
|
derives again from that seed.
|
|
@@ -88,7 +90,19 @@ has.
|
|
|
88
90
|
3. Else a theme rule. It lives in `slotted.theme-rules`, selects only
|
|
89
91
|
`data-ui`, `data-part`, the attributes a family writes and the theme's
|
|
90
92
|
attributes, and reads only tokens; the compiler names the file, the line
|
|
91
|
-
and the selector of a rule it refuses.
|
|
93
|
+
and the selector of a rule it refuses. A rule for one scheme begins with
|
|
94
|
+
the nesting selector, which names the theme root that carries the scheme.
|
|
95
|
+
The same selector without it asks for a descendant of the root and is
|
|
96
|
+
refused:
|
|
97
|
+
|
|
98
|
+
```css
|
|
99
|
+
&[data-slotted-scheme='dark'] [data-ui='card'] {
|
|
100
|
+
/* accepted */
|
|
101
|
+
}
|
|
102
|
+
[data-slotted-scheme='dark'] [data-ui='card'] {
|
|
103
|
+
/* refused */
|
|
104
|
+
}
|
|
105
|
+
```
|
|
92
106
|
|
|
93
107
|
## 5. Done
|
|
94
108
|
|
package/dist/docs/splitter.json
CHANGED
|
@@ -49,69 +49,185 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"docs": {
|
|
52
|
-
"
|
|
53
|
-
"imports":
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
52
|
+
"splitter": {
|
|
53
|
+
"imports": {
|
|
54
|
+
"source": "import { Splitter, SplitterDefaultsProvider } from '@slotted/react/splitter';"
|
|
55
|
+
},
|
|
56
|
+
"anatomy": [
|
|
57
|
+
{
|
|
58
|
+
"part": "root",
|
|
59
|
+
"element": "div[role=separator][tabindex=0]",
|
|
60
|
+
"required": true,
|
|
61
|
+
"purpose": "The bar. The target, the tab stop, and the whole family: it carries the value, the limits, the ARIA triple and the keyboard."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"part": "line",
|
|
65
|
+
"element": "span",
|
|
66
|
+
"required": true,
|
|
67
|
+
"purpose": "A hairline each side of the grip, fading out away from it. Runs the whole track under the hand and under a drag."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"part": "grip",
|
|
71
|
+
"element": "span[aria-hidden]",
|
|
72
|
+
"required": true,
|
|
73
|
+
"purpose": "The mark in the middle, so a resizable boundary is one a reader can see before touching it. Hidden from the accessibility tree: the bar around it is already named and already valued."
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"api": [
|
|
77
|
+
{
|
|
78
|
+
"name": "orientation",
|
|
79
|
+
"type": "'vertical' | 'horizontal'",
|
|
80
|
+
"defaultValue": "vertical",
|
|
81
|
+
"appliesTo": "Splitter",
|
|
82
|
+
"description": "Which way the bar’s own line runs. A vertical line divides two regions side by side"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "for",
|
|
86
|
+
"type": "RefObject<HTMLElement | null>",
|
|
87
|
+
"defaultValue": "the previous element sibling",
|
|
88
|
+
"appliesTo": "Splitter",
|
|
89
|
+
"description": "The element the bar sizes, announces, and writes the fraction on"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "value",
|
|
93
|
+
"type": "number",
|
|
94
|
+
"defaultValue": "—",
|
|
95
|
+
"appliesTo": "Splitter",
|
|
96
|
+
"description": "The fraction of the container taken by the region before the bar, in [0, 1]"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "defaultValue",
|
|
100
|
+
"type": "number",
|
|
101
|
+
"defaultValue": "0.5",
|
|
102
|
+
"appliesTo": "Splitter",
|
|
103
|
+
"description": "Where an uncontrolled bar starts, and where a double click and reset() return it, brought inside min and max"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "min",
|
|
107
|
+
"type": "number | string",
|
|
108
|
+
"defaultValue": "0",
|
|
109
|
+
"appliesTo": "Splitter",
|
|
110
|
+
"description": "A fraction, or any CSS length resolved against the container — \"200px\", \"18rem\", \"25%\""
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "max",
|
|
114
|
+
"type": "number | string",
|
|
115
|
+
"defaultValue": "1",
|
|
116
|
+
"appliesTo": "Splitter",
|
|
117
|
+
"description": "The ceiling, in either unit"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "snapPoints",
|
|
121
|
+
"type": "readonly number[]",
|
|
122
|
+
"defaultValue": "",
|
|
123
|
+
"appliesTo": "Splitter",
|
|
124
|
+
"description": "Stops a released drag lands on and an arrow steps between. Empty is a continuous range"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "collapsible",
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"defaultValue": "false",
|
|
130
|
+
"appliesTo": "Splitter",
|
|
131
|
+
"description": "Whether Enter collapses the region before the bar"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "collapsedValue",
|
|
135
|
+
"type": "number",
|
|
136
|
+
"defaultValue": "0",
|
|
137
|
+
"appliesTo": "Splitter",
|
|
138
|
+
"description": "Where a collapse lands"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "collapsed",
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"defaultValue": "—",
|
|
144
|
+
"appliesTo": "Splitter",
|
|
145
|
+
"description": "Whether the region is collapsed, when the consumer owns it"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "defaultCollapsed",
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"defaultValue": "false",
|
|
151
|
+
"appliesTo": "Splitter",
|
|
152
|
+
"description": "Where an uncontrolled collapse starts"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "disabled",
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"defaultValue": "false",
|
|
158
|
+
"appliesTo": "Splitter",
|
|
159
|
+
"description": "Stops the bar moving. It keeps the tab stop, so the value stays readable"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "render",
|
|
163
|
+
"type": "(props) => ReactNode",
|
|
164
|
+
"defaultValue": "—",
|
|
165
|
+
"appliesTo": "Splitter",
|
|
166
|
+
"description": "Renders a different root element, keeping the picture"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"composition": [
|
|
170
|
+
{
|
|
171
|
+
"name": "SplitterDefaultsProvider",
|
|
172
|
+
"type": "orientation | min | max | collapsedValue",
|
|
173
|
+
"defaultValue": "—",
|
|
174
|
+
"appliesTo": "Provider",
|
|
175
|
+
"description": "An application states its floor once rather than on every bar in it"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "ref",
|
|
179
|
+
"type": "RefObject<SplitterHandle>",
|
|
180
|
+
"defaultValue": "—",
|
|
181
|
+
"appliesTo": "Splitter",
|
|
182
|
+
"description": "collapse(), expand(), reset(), focus() and the bar itself"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "render",
|
|
186
|
+
"type": "(props) => ReactNode",
|
|
187
|
+
"defaultValue": "—",
|
|
188
|
+
"appliesTo": "Splitter",
|
|
189
|
+
"description": "Substitutes the element; the two lines and the grip travel with it, so the element must accept children"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "onKeyDown, onPointerDown, onDoubleClick",
|
|
193
|
+
"type": "(event) => void",
|
|
194
|
+
"defaultValue": "—",
|
|
195
|
+
"appliesTo": "Splitter",
|
|
196
|
+
"description": "Composed, never replaced: the consumer’s handler runs first, and preventDefault() refuses the family’s"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "--slotted-splitter-value",
|
|
200
|
+
"type": "number",
|
|
201
|
+
"defaultValue": "—",
|
|
202
|
+
"appliesTo": "the element `for` names",
|
|
203
|
+
"description": "The fraction, published where CSS can read it, so the common case needs no state at all"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"events": [
|
|
207
|
+
{
|
|
208
|
+
"name": "onValueChange",
|
|
209
|
+
"payload": "(value: number, request: SplitterValueRequest)",
|
|
210
|
+
"when": "Before the position moves, on every step of a drag and on every key press. Call request.cancel() to refuse it; request.reason is pointer, keyboard or programmatic."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "onCollapsedChange",
|
|
214
|
+
"payload": "(collapsed: boolean, request: SplitterCollapsedRequest)",
|
|
215
|
+
"when": "Before Enter collapses the region or brings it back. Refusing it leaves both the state and the measure where they were."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "onResizeEnd",
|
|
219
|
+
"payload": "(value: number)",
|
|
220
|
+
"when": "Once, when a drag settles. onValueChange fires throughout one, so a consumer saving a layout saves here rather than sixty times there."
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"accessibility": [
|
|
224
|
+
"The bar has no default accessible name: the family cannot know which region it sizes. Name it with aria-labelledby pointing at the heading of the element `for` names, or with aria-label.",
|
|
225
|
+
"The bar is role=\"separator\" with tabindex=\"0\", which is the focusable widget form the role takes in the WAI-ARIA Window Splitter pattern; aria-valuenow, aria-valuemin and aria-valuemax are the fraction times a hundred, and the value reported is the clamped one, so the announcement and the layout cannot disagree.",
|
|
226
|
+
"aria-orientation is written only for the vertical bar, because horizontal is the attribute’s own default on role=\"separator\" and a family writes the departure from an element’s semantics rather than the agreement with it.",
|
|
227
|
+
"aria-controls names the element `for` hands the bar — the same element that carries --slotted-splitter-value and the same one the bar sizes, so what a reader hears and what a reader sees are one region rather than two that can drift; the family writes that element an id when it has none.",
|
|
228
|
+
"A disabled bar keeps its tab stop and its announcement. A reader who cannot move a separator can still read the value it holds, and taking the stop away would take the value with it.",
|
|
229
|
+
"Both lines and the grip are aria-hidden: they are the bar’s own picture, and the bar around them is already named and already valued."
|
|
230
|
+
]
|
|
115
231
|
}
|
|
116
232
|
},
|
|
117
233
|
"tokens": [
|
|
@@ -138,5 +254,118 @@
|
|
|
138
254
|
"--slotted-target-min",
|
|
139
255
|
"--slotted-text-muted"
|
|
140
256
|
],
|
|
141
|
-
"examples": [
|
|
257
|
+
"examples": [
|
|
258
|
+
{
|
|
259
|
+
"id": "playground",
|
|
260
|
+
"title": "A workspace with a movable boundary",
|
|
261
|
+
"note": "Drag the bar, or Tab to it and use the arrows. The number announced and the measure applied are the same number, and the region beside it takes whatever is left.",
|
|
262
|
+
"language": "tsx",
|
|
263
|
+
"source": "<div className=\"workspace\">\n <aside>…</aside>\n <Splitter defaultValue={0.34} />\n <main>…</main>\n</div>;\n",
|
|
264
|
+
"verdict": "excerpt"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "orientation",
|
|
268
|
+
"title": "Both axes, and the arrows each one answers",
|
|
269
|
+
"note": "A vertical bar divides two regions side by side and answers Left and Right; a horizontal bar divides two stacked regions and answers Up and Down. The other pair is left to the page, so a document that scrolls still scrolls.",
|
|
270
|
+
"language": "tsx",
|
|
271
|
+
"source": "<Splitter orientation=\"vertical\" />;\n<Splitter orientation=\"horizontal\" />;\n",
|
|
272
|
+
"verdict": "excerpt"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"id": "value",
|
|
276
|
+
"title": "Controlled, and the fraction published to CSS",
|
|
277
|
+
"note": "The left pair is uncontrolled and writes --slotted-splitter-value on the region; the right pair is controlled and the number is in React state. Both regions are sized by one CSS rule, never by a style attribute.",
|
|
278
|
+
"language": "tsx",
|
|
279
|
+
"source": "/* aside { inline-size: calc(var(--slotted-splitter-value, 0.34) * 100%) } */\n<Splitter defaultValue={0.34} />;\n\n<Splitter onValueChange={setValue} value={value} />;\n",
|
|
280
|
+
"verdict": "excerpt"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "limits",
|
|
284
|
+
"title": "A floor in pixels beside a ceiling in per cent",
|
|
285
|
+
"note": "Drag both bars to their ends. The first stops at two hundred pixels however narrow the window gets; the second stops at sixty per cent of it. Not one of the seven surveyed implementations can state the first — Zag says outright that it takes percentages only.",
|
|
286
|
+
"language": "tsx",
|
|
287
|
+
"source": "<Splitter max={0.6} min=\"200px\" />;\n",
|
|
288
|
+
"verdict": "excerpt"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"id": "collapse",
|
|
292
|
+
"title": "Enter collapses the region, and Enter brings it back",
|
|
293
|
+
"note": "The pattern’s own key. Collapsing stores the fraction the region had and expanding returns it, so a restored region comes back where it was rather than at some small size indistinguishable from a collapse.",
|
|
294
|
+
"language": "tsx",
|
|
295
|
+
"source": "<Splitter collapsedValue={0.06} collapsible defaultValue={0.34} />;\n",
|
|
296
|
+
"verdict": "excerpt"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "snapPoints",
|
|
300
|
+
"title": "Three stops a released drag lands on",
|
|
301
|
+
"note": "Drag past a stop and let go: the bar takes the nearest one. It snaps on release and never during the drag, because a bar that snapped on every move would fight the hand rather than help it. The arrows step between the same stops.",
|
|
302
|
+
"language": "tsx",
|
|
303
|
+
"source": "<Splitter snapPoints={[0.2, 0.34, 0.5]} />;\n",
|
|
304
|
+
"verdict": "excerpt"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"id": "reset",
|
|
308
|
+
"title": "Double click puts it back at defaultValue",
|
|
309
|
+
"note": "Move the bar anywhere, then double click it: it returns to defaultValue, inside min and max. The pattern assigns double click nothing, and every surveyed implementation that ships a reset puts it there; the same action is on the handle as reset().",
|
|
310
|
+
"language": "tsx",
|
|
311
|
+
"source": "<Splitter defaultValue={0.34} />; /* double click returns to 0.34 */\n",
|
|
312
|
+
"verdict": "excerpt"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "disabled",
|
|
316
|
+
"title": "Frozen, and still readable",
|
|
317
|
+
"note": "The bar keeps its tab stop and its three ARIA values, and the lines drop to the disabled step. Hover and press are held back for it. A reader who cannot move a separator can still be told where it is.",
|
|
318
|
+
"language": "tsx",
|
|
319
|
+
"source": "<Splitter disabled value={0.34} />;\n",
|
|
320
|
+
"verdict": "excerpt"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"id": "keyboard",
|
|
324
|
+
"title": "Every key the pattern lists",
|
|
325
|
+
"note": "Tab to the bar: arrows move sixteen pixels and sixty-four with Shift, Home and End go to the limits, Enter collapses and restores. Watch aria-valuenow in the row beneath as each one lands.",
|
|
326
|
+
"language": "tsx",
|
|
327
|
+
"source": "<Splitter collapsible max={0.75} min={0.15} onValueChange={(value) => setAnnounced(value)} />;\n",
|
|
328
|
+
"verdict": "excerpt"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "twoBars",
|
|
332
|
+
"title": "Two bars in series, each clamping alone",
|
|
333
|
+
"note": "The shape the SAP Help Portal uses. The family holds no panels, so the consumer owns the layout and therefore the policy: each bar clamps against its own limits and neither negotiates with the other.",
|
|
334
|
+
"language": "tsx",
|
|
335
|
+
"source": "<div className=\"workspace\">\n <aside ref={toc}>…</aside>\n <Splitter for={toc} max={0.4} min=\"180px\" />\n <main ref={doc}>…</main>\n <Splitter for={doc} max={0.85} min={0.4} />\n <aside>…</aside>\n</div>;\n",
|
|
336
|
+
"verdict": "excerpt"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"id": "persistence",
|
|
340
|
+
"title": "A layout that survives a reload",
|
|
341
|
+
"note": "Move the bar and press Reload: the position comes back. onResizeEnd fires once when a drag settles, so the write happens once rather than on every frame of it. The family never touches storage — which storage, and whether a layout crosses a login, are the application’s decisions.",
|
|
342
|
+
"language": "tsx",
|
|
343
|
+
"source": "<Splitter\n defaultValue={load() ?? 0.34}\n onResizeEnd={(value) => localStorage.setItem('workspace', String(value))}\n/>;\n",
|
|
344
|
+
"verdict": "excerpt"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": "composition",
|
|
348
|
+
"title": "A different element, a ref, and a handler that refuses",
|
|
349
|
+
"note": "The bar is rendered as the consumer’s own element with render, and the two lines and the grip travel with it. The buttons drive the handle; the third bar refuses every keyboard move from its own onKeyDown.",
|
|
350
|
+
"language": "tsx",
|
|
351
|
+
"source": "<Splitter ref={handle} render={(props) => <section {...props} />} />;\n\nhandle.current?.collapse();\n",
|
|
352
|
+
"verdict": "excerpt"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "defaults",
|
|
356
|
+
"title": "One floor, stated once for the application",
|
|
357
|
+
"note": "Both bars inside the provider inherit a two-hundred-pixel floor; the second states its own and wins, because an explicit consumer value always does. None of the seven surveyed implementations has an equivalent.",
|
|
358
|
+
"language": "tsx",
|
|
359
|
+
"source": "<SplitterDefaultsProvider min=\"200px\">\n <Splitter />\n <Splitter min={0.05} />\n</SplitterDefaultsProvider>;\n",
|
|
360
|
+
"verdict": "excerpt"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"id": "accessibility",
|
|
364
|
+
"title": "What a screen reader is told",
|
|
365
|
+
"note": "The bar names the region through aria-controls and takes its name from that region’s own heading, which is the pattern’s rule: a separator is named for the region it sizes. The row beneath prints the four attributes as they stand in the DOM.",
|
|
366
|
+
"language": "tsx",
|
|
367
|
+
"source": "<div className=\"workspace\">\n <aside ref={region}>\n <h3 id=\"contas-heading\">Contas a receber</h3>\n </aside>\n <Splitter aria-labelledby=\"contas-heading\" for={region} />\n <main>…</main>\n</div>;\n",
|
|
368
|
+
"verdict": "excerpt"
|
|
369
|
+
}
|
|
370
|
+
]
|
|
142
371
|
}
|