@slotted/react 0.1.0-beta.2 → 0.1.0-beta.20
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/README.md +20 -3
- package/dist/accordion-n5D6mcmS.js +144 -0
- package/dist/accordion.js +1 -1
- package/dist/action-bar-D-V2uWjA.js +285 -0
- package/dist/action-bar.js +1 -1
- package/dist/action-sheet-dNnB26br.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/alert-BGox6hzF.js +164 -0
- package/dist/alert.js +1 -1
- package/dist/app-shell-CXlO6z0w.js +921 -0
- package/dist/app-shell.js +1 -1
- package/dist/aspect-ratio-CLxOFJVH.js +41 -0
- package/dist/aspect-ratio.js +1 -1
- package/dist/attachment-C1wBuup6.js +307 -0
- package/dist/attachment.js +1 -1
- package/dist/avatar-DLWElrgg.js +104 -0
- package/dist/avatar-group-DshHqe8B.js +50 -0
- package/dist/avatar-group.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge-pgYVOnZO.js +98 -0
- package/dist/badge.js +1 -1
- package/dist/bin/slotted-agent-docs.mjs +297 -0
- package/dist/breadcrumb-DWbUEBpm.js +222 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/button-BxgjXAos.js +118 -0
- package/dist/button-group-C-m4aSqu.js +51 -0
- package/dist/button-group.js +1 -1
- package/dist/button.js +3 -3
- package/dist/calendar-wqDIW4Z8.js +469 -0
- package/dist/calendar.js +1 -1
- package/dist/card-DRmq8_5e.js +103 -0
- package/dist/card.js +1 -1
- package/dist/carousel-B9nMK7Yf.js +499 -0
- package/dist/carousel.js +1 -1
- package/dist/cascader-DO1HiJT6.js +1157 -0
- package/dist/cascader.js +1 -1
- package/dist/chart-CbOswR3s.js +1010 -0
- package/dist/chart.js +1 -1
- package/dist/checkbox-Hq1PXk04.js +144 -0
- package/dist/checkbox-group-Ckoh-2GJ.js +109 -0
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/code-block-Cy548yk7.js +282 -0
- package/dist/code-block.js +1 -1
- package/dist/collapsible-BuUBeNDg.js +222 -0
- package/dist/collapsible.js +1 -1
- package/dist/color-picker-BsDplfdK.js +506 -0
- package/dist/color-picker.js +1 -1
- package/dist/column-manager-Dm5ZLz6p.js +586 -0
- package/dist/column-manager.js +1 -1
- package/dist/combobox-vE8dmv4K.js +904 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-DEKWsUFR.js +744 -0
- package/dist/command-palette.js +1 -1
- package/dist/container-WoYiHo50.js +47 -0
- package/dist/container.js +1 -1
- package/dist/context-menu-BxbGq4bu.js +151 -0
- package/dist/context-menu.js +1 -1
- package/dist/currency-field-ZvfrfM0z.js +469 -0
- package/dist/currency-field.js +1 -1
- package/dist/dashboard-grid-Bx4J-aC7.js +1149 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/data-grid-Dez5RojO.js +3848 -0
- package/dist/data-grid.js +1 -1
- package/dist/data-list-B18kLC9Q.js +587 -0
- package/dist/data-list.js +1 -1
- package/dist/date-field-EBPrQL6A.js +299 -0
- package/dist/date-field.js +1 -1
- package/dist/date-picker-B5V8NZCT.js +316 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-B89Q973N.js +501 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/datetime-field-DavJbR0H.js +424 -0
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-Cx6Z52Ka.js +662 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-DYshAlgq.js +1029 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/description-list-BbWLehw0.js +242 -0
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-qOJiNuzr.js → detail-panel-DYe_D46K.js} +121 -113
- package/dist/detail-panel.js +1 -1
- package/dist/dialog-CjOBjHrL.js +537 -0
- package/dist/dialog.js +1 -1
- package/dist/divider-ryFeK0Pi.js +35 -0
- package/dist/divider.js +1 -1
- package/dist/docs/AGENTS.snippet.md +3 -1
- package/dist/docs/action-bar.json +5 -4
- package/dist/docs/action-bar.md +4 -4
- package/dist/docs/action-sheet.json +399 -64
- package/dist/docs/action-sheet.md +291 -0
- package/dist/docs/alert.json +22 -5
- package/dist/docs/alert.md +16 -5
- package/dist/docs/app-shell.examples.md +1 -1
- package/dist/docs/app-shell.json +24 -7
- package/dist/docs/app-shell.md +5 -3
- package/dist/docs/avatar.json +22 -1
- package/dist/docs/avatar.md +5 -3
- package/dist/docs/badge.json +7 -1
- package/dist/docs/badge.md +3 -3
- package/dist/docs/button-group.json +2 -0
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.examples.md +20 -0
- package/dist/docs/button.json +170 -11
- package/dist/docs/button.md +32 -6
- package/dist/docs/calendar.json +27 -2
- package/dist/docs/calendar.md +6 -3
- package/dist/docs/cascader.json +1 -0
- package/dist/docs/cascader.md +1 -1
- package/dist/docs/chart.examples.md +13 -2
- package/dist/docs/chart.json +13 -4
- package/dist/docs/chart.md +4 -3
- package/dist/docs/code-block.json +93 -93
- package/dist/docs/code-block.md +71 -71
- package/dist/docs/collapsible.json +1 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/combobox.json +2 -0
- package/dist/docs/combobox.md +1 -1
- package/dist/docs/command-palette.json +1 -0
- package/dist/docs/command-palette.md +1 -1
- package/dist/docs/currency-field.json +40 -1
- package/dist/docs/currency-field.md +5 -1
- package/dist/docs/dashboard-grid.json +30 -8
- package/dist/docs/dashboard-grid.md +8 -5
- package/dist/docs/data-grid.examples.md +10 -4
- package/dist/docs/data-grid.json +37 -10
- package/dist/docs/data-grid.md +3 -1
- package/dist/docs/data-grid.props.md +6 -4
- package/dist/docs/data-list.json +2 -1
- package/dist/docs/data-list.md +1 -1
- package/dist/docs/date-field.json +9 -1
- package/dist/docs/date-field.md +3 -2
- package/dist/docs/date-picker.examples.md +29 -0
- package/dist/docs/date-picker.json +17 -1
- package/dist/docs/date-picker.md +3 -2
- package/dist/docs/datetime-field.json +1 -0
- package/dist/docs/datetime-field.md +1 -1
- package/dist/docs/description-list.json +10 -2
- package/dist/docs/description-list.md +2 -1
- package/dist/docs/detail-panel.json +4 -2
- package/dist/docs/detail-panel.md +15 -5
- package/dist/docs/dialog.examples.md +144 -116
- package/dist/docs/dialog.json +36 -11
- package/dist/docs/dialog.md +5 -3
- package/dist/docs/drawer.examples.md +1 -1
- package/dist/docs/drawer.json +29 -10
- package/dist/docs/drawer.md +9 -7
- package/dist/docs/entity-picker.json +19 -3
- package/dist/docs/entity-picker.md +11 -4
- package/dist/docs/event-calendar.md +2 -2
- package/dist/docs/filter-bar.json +115 -115
- package/dist/docs/filter-bar.md +78 -78
- package/dist/docs/form.json +2 -1
- package/dist/docs/form.md +1 -1
- package/dist/docs/guidelines/README.md +2 -2
- package/dist/docs/guidelines/async-feedback.md +25 -4
- package/dist/docs/guidelines/composition.md +33 -7
- package/dist/docs/guidelines/errors-and-conflicts.md +7 -6
- package/dist/docs/guidelines/forms.md +10 -0
- package/dist/docs/guidelines/index.md +16 -4
- package/dist/docs/guidelines/layout-alignment.md +19 -9
- package/dist/docs/guidelines/list-pages.md +44 -3
- package/dist/docs/guidelines/overviews.md +31 -1
- package/dist/docs/guidelines/own-elements.md +1 -1
- package/dist/docs/guidelines/reading-permissions.md +2 -2
- package/dist/docs/guidelines/reports.md +1 -1
- package/dist/docs/icon.json +3 -1
- package/dist/docs/icon.md +3 -3
- package/dist/docs/index.md +2 -2
- package/dist/docs/inline-message.json +21 -8
- package/dist/docs/inline-message.md +12 -9
- package/dist/docs/kbd.json +3 -0
- package/dist/docs/kbd.md +1 -1
- package/dist/docs/link.json +16 -0
- package/dist/docs/link.md +3 -1
- package/dist/docs/list-item.json +19 -3
- package/dist/docs/list-item.md +23 -16
- package/dist/docs/list.json +26 -1
- package/dist/docs/list.md +4 -1
- package/dist/docs/markdown.json +82 -75
- package/dist/docs/markdown.md +64 -63
- package/dist/docs/menu.json +13 -0
- package/dist/docs/menu.md +3 -1
- package/dist/docs/message-scroller.json +1 -1
- package/dist/docs/message.json +7 -1
- package/dist/docs/message.md +3 -3
- package/dist/docs/multi-select.json +1 -0
- package/dist/docs/multi-select.md +1 -1
- package/dist/docs/notification-center.json +4 -0
- package/dist/docs/notification-center.md +2 -2
- package/dist/docs/number-field.json +1 -0
- package/dist/docs/number-field.md +1 -1
- package/dist/docs/otp-input.json +1 -0
- package/dist/docs/otp-input.md +1 -1
- package/dist/docs/page-header.json +21 -4
- package/dist/docs/page-header.md +6 -4
- package/dist/docs/page.json +4 -2
- package/dist/docs/page.md +3 -2
- package/dist/docs/popover.json +2 -1
- package/dist/docs/popover.md +1 -1
- package/dist/docs/progress-indicator.json +3 -1
- package/dist/docs/progress-indicator.md +3 -3
- package/dist/docs/prompt-composer.json +50 -3
- package/dist/docs/prompt-composer.md +8 -2
- package/dist/docs/rating.json +5 -3
- package/dist/docs/rating.md +6 -6
- package/dist/docs/scroll-area.json +278 -64
- package/dist/docs/scroll-area.md +198 -0
- package/dist/docs/section.json +37 -15
- package/dist/docs/section.md +26 -19
- package/dist/docs/segmented-control.json +36 -12
- package/dist/docs/segmented-control.md +17 -1
- package/dist/docs/select.json +3 -1
- package/dist/docs/select.md +2 -2
- package/dist/docs/side-navigation.json +3 -2
- package/dist/docs/side-navigation.md +20 -5
- package/dist/docs/skills/build-own-element/SKILL.md +6 -6
- package/dist/docs/skills/compose-screen/SKILL.md +53 -17
- package/dist/docs/skills/review-screen/SKILL.md +28 -17
- package/dist/docs/skills/theme-app/SKILL.md +53 -15
- package/dist/docs/skills/waiting-states/SKILL.md +14 -10
- package/dist/docs/sparkline.json +5 -2
- package/dist/docs/sparkline.md +4 -4
- package/dist/docs/split-button.json +4 -1
- package/dist/docs/split-button.md +3 -3
- package/dist/docs/splitter.json +293 -64
- package/dist/docs/splitter.md +222 -0
- package/dist/docs/stat-card.json +11 -5
- package/dist/docs/stat-card.md +6 -6
- 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/table.examples.md +14 -18
- package/dist/docs/table.json +94 -5
- package/dist/docs/table.md +14 -1
- package/dist/docs/tabs.examples.md +1 -1
- package/dist/docs/tabs.json +26 -5
- package/dist/docs/tabs.md +6 -3
- package/dist/docs/tag.json +14 -4
- package/dist/docs/tag.md +6 -6
- package/dist/docs/tags-input.json +29 -2
- package/dist/docs/tags-input.md +4 -1
- package/dist/docs/text-field.json +2 -1
- package/dist/docs/text-field.md +2 -2
- package/dist/docs/textarea.examples.md +504 -0
- package/dist/docs/textarea.json +1 -0
- package/dist/docs/textarea.md +2 -498
- package/dist/docs/time-field.json +1 -0
- package/dist/docs/time-field.md +1 -1
- package/dist/docs/timeline.json +136 -130
- package/dist/docs/timeline.md +122 -122
- package/dist/docs/toast.json +8 -1
- package/dist/docs/toast.md +3 -3
- package/dist/docs/toggle-group.json +14 -3
- package/dist/docs/toggle-group.md +3 -3
- package/dist/docs/toggle.json +12 -3
- package/dist/docs/toggle.md +3 -3
- package/dist/docs/tokens.md +54 -11
- package/dist/docs/toolbar.json +1 -1
- package/dist/docs/toolbar.md +1 -1
- package/dist/docs/tooltip.json +1 -0
- package/dist/docs/tooltip.md +1 -1
- package/dist/docs/top-navigation.examples.md +23 -5
- package/dist/docs/top-navigation.json +2 -2
- package/dist/docs/tour.json +1 -1
- package/dist/docs/typography.json +4 -2
- package/dist/docs/typography.md +5 -5
- package/dist/drawer-Du1aC1px.js +830 -0
- package/dist/drawer.js +2 -2
- package/dist/entity-picker-DB1HeuvJ.js +1283 -0
- package/dist/entity-picker.js +2 -2
- package/dist/event-calendar-CEIyV-fW.js +1469 -0
- package/dist/event-calendar.js +1 -1
- package/dist/field-CnSMUZw6.js +367 -0
- package/dist/field-group-RACkEXPp.js +138 -0
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/filter-bar-CzuAJsSf.js +1342 -0
- package/dist/filter-bar.js +1 -1
- package/dist/{form-vTCQhZM-.js → form-DEcJ7tHf.js} +97 -88
- package/dist/form.js +1 -1
- package/dist/fullscreen-CaEg6U-M.js +190 -0
- package/dist/fullscreen.js +1 -1
- package/dist/grid-l7xi6DUg.js +26 -0
- package/dist/grid.js +1 -1
- package/dist/highlight-9lRPIZ9O.js +59 -0
- package/dist/highlight.js +1 -1
- package/dist/hover-card-D8OyhmEG.js +215 -0
- package/dist/hover-card.js +1 -1
- package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
- package/dist/i18n.js +1 -1
- package/dist/icon-D04-_QFA.js +134 -0
- package/dist/icon-button-DERKFHX1.js +251 -0
- package/dist/icon.js +1 -1
- package/dist/{image-DpDFrrXL.js → image-cyX9-F0x.js} +24 -20
- package/dist/image.js +1 -1
- package/dist/import-export-center-tbHmRTGb.js +867 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +129 -127
- package/dist/inline-CqF8iT4m.js +17 -0
- package/dist/inline-message-DgEAUjar.js +119 -0
- package/dist/inline-message.js +2 -2
- package/dist/inline.js +1 -1
- package/dist/kbd-dNz8QHfL.js +105 -0
- package/dist/kbd.js +1 -1
- package/dist/link-YvD_Wov8.js +92 -0
- package/dist/link.js +1 -1
- package/dist/list-B7gaPH1U.js +95 -0
- package/dist/list-item-2z75VYyp.js +160 -0
- package/dist/list-item.js +1 -1
- package/dist/list.js +1 -1
- package/dist/listbox-DvwUa0yH.js +626 -0
- package/dist/listbox.js +1 -1
- package/dist/loading-overlay-BLIrcaoj.js +218 -0
- package/dist/loading-overlay.js +1 -1
- package/dist/markdown-BEQ1uEqm.js +311 -0
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-BDdCTmko.js +805 -0
- package/dist/menu.js +1 -1
- package/dist/menubar-hazvXRYd.js +157 -0
- package/dist/menubar.js +1 -1
- package/dist/message-C1O3jr31.js +436 -0
- package/dist/message-scroller-BSpE5DHM.js +218 -0
- package/dist/message-scroller.js +1 -1
- package/dist/message.js +1 -1
- package/dist/multi-select-C1GNk4e0.js +1259 -0
- package/dist/multi-select.js +1 -1
- package/dist/navigation-menu-parts-CRLmigjy.js +492 -0
- package/dist/navigation-menu.js +1 -1
- package/dist/notification-center-CQqPcJr4.js +516 -0
- package/dist/notification-center.js +1 -1
- package/dist/number-field-BPYe9kLB.js +345 -0
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Bf8JUiVR.js → otp-input-CYtF30Q-.js} +75 -72
- package/dist/otp-input.js +1 -1
- package/dist/page-CzqbnTnU.js +179 -0
- package/dist/page-header-TejJ-BTC.js +372 -0
- package/dist/page-header.js +1 -1
- package/dist/page.js +2 -2
- package/dist/pagination-D0PUAFYm.js +299 -0
- package/dist/pagination.js +1 -1
- package/dist/popover-BfEn2wdZ.js +500 -0
- package/dist/popover.js +1 -1
- package/dist/press-selection-DjOllE2B.js +29 -0
- package/dist/press-selection.js +2 -0
- package/dist/progress-indicator-D0acshNn.js +292 -0
- package/dist/progress-indicator.js +1 -1
- package/dist/prompt-composer-C57BzYrn.js +308 -0
- package/dist/prompt-composer.js +2 -2
- package/dist/prose-CQN4Bqqh.js +92 -0
- package/dist/prose.js +1 -1
- package/dist/radio-group-CLX8D2Ew.js +143 -0
- package/dist/radio-group.js +1 -1
- package/dist/rating-BB2k-Fay.js +501 -0
- package/dist/rating.js +1 -1
- package/dist/result-state-BMYhelu1.js +128 -0
- package/dist/result-state.js +1 -1
- package/dist/roving-focus-C5-rVFzI.js +89 -0
- package/dist/roving-focus.js +2 -0
- package/dist/saved-views-B54F_Bk4.js +456 -0
- package/dist/saved-views.js +1 -1
- package/dist/scroll-area-Fr0PmnRS.js +112 -0
- package/dist/scroll-area.js +1 -1
- package/dist/section-CjlMOyZE.js +195 -0
- package/dist/section.js +2 -2
- package/dist/segmented-control-B1U-s58C.js +156 -0
- package/dist/segmented-control.js +1 -1
- package/dist/select-OUGNxyS5.js +1020 -0
- package/dist/{select-tags-CQMcHIQN.js → select-tags-3792weoq.js} +11 -1
- package/dist/select.js +1 -1
- package/dist/side-navigation-CvIGfGjZ.js +747 -0
- package/dist/side-navigation.js +1 -1
- package/dist/skeleton-DeEOmm1y.js +149 -0
- package/dist/skeleton.js +1 -1
- package/dist/slider-Bp1QjJKu.js +264 -0
- package/dist/slider.js +1 -1
- package/dist/sparkline-CYU4_lCD.js +152 -0
- package/dist/sparkline.js +1 -1
- package/dist/spinner-ring-DyfaYloA.js +19 -0
- package/dist/split-button-Dg67gBMP.js +136 -0
- package/dist/split-button.js +1 -1
- package/dist/splitter-CspZHJz4.js +293 -0
- package/dist/splitter.js +1 -1
- package/dist/stack-BbgvuQ7m.js +16 -0
- package/dist/stack.js +1 -1
- package/dist/stat-card-Dv9oJAbF.js +252 -0
- package/dist/stat-card.js +1 -1
- package/dist/status-indicator-DkV95RZc.js +82 -0
- package/dist/status-indicator.js +1 -1
- package/dist/stepper-DHdrANZI.js +261 -0
- package/dist/stepper.js +1 -1
- package/dist/styles/accordion.css +2 -0
- package/dist/styles/action-bar.css +8 -0
- package/dist/styles/action-sheet.css +8 -0
- package/dist/styles/alert.css +4 -0
- package/dist/styles/app-shell.css +8 -0
- package/dist/styles/aspect-ratio.css +2 -0
- package/dist/styles/attachment.css +8 -0
- package/dist/styles/avatar-group.css +6 -0
- package/dist/styles/avatar.css +4 -0
- package/dist/styles/badge.css +2 -0
- package/dist/styles/breadcrumb.css +4 -0
- package/dist/styles/button-group.css +2 -0
- package/dist/styles/button.css +4 -0
- package/dist/styles/calendar.css +6 -0
- package/dist/styles/card.css +2 -0
- package/dist/styles/carousel.css +4 -0
- package/dist/styles/cascader.css +20 -0
- package/dist/styles/chart.css +10 -0
- package/dist/styles/checkbox-group.css +12 -0
- package/dist/styles/checkbox.css +14 -0
- package/dist/styles/code-block.css +10 -0
- package/dist/styles/collapsible.css +6 -0
- package/dist/styles/color-picker.css +18 -0
- package/dist/styles/column-manager.css +32 -0
- package/dist/styles/combobox.css +12 -0
- package/dist/styles/command-palette.css +14 -0
- package/dist/styles/container.css +2 -0
- package/dist/styles/context-menu.css +8 -0
- package/dist/styles/currency-field.css +10 -0
- package/dist/styles/dashboard-grid.css +22 -0
- package/dist/styles/data-grid.css +64 -0
- package/dist/styles/data-list.css +34 -0
- package/dist/styles/date-field.css +10 -0
- package/dist/styles/date-picker.css +16 -0
- package/dist/styles/date-range-picker.css +16 -0
- package/dist/styles/datetime-field.css +10 -0
- package/dist/styles/datetime-picker.css +16 -0
- package/dist/styles/datetime-range-picker.css +16 -0
- package/dist/styles/description-list.css +6 -0
- package/dist/styles/detail-panel.css +24 -0
- package/dist/styles/dialog.css +4 -0
- package/dist/styles/divider.css +2 -0
- package/dist/styles/drawer.css +4 -0
- package/dist/styles/entity-picker.css +22 -0
- package/dist/styles/event-calendar.css +28 -0
- package/dist/styles/field-group.css +10 -0
- package/dist/styles/field.css +8 -0
- package/dist/styles/filter-bar.css +56 -0
- package/dist/styles/form.css +2 -0
- package/dist/styles/fullscreen.css +4 -0
- package/dist/styles/grid.css +2 -0
- package/dist/styles/highlight.css +2 -0
- package/dist/styles/hover-card.css +6 -0
- package/dist/styles/i18n.css +1 -0
- package/dist/styles/icon.css +2 -0
- package/dist/styles/image.css +6 -0
- package/dist/styles/import-export-center.css +70 -0
- package/dist/styles/index.css +248 -0
- package/dist/styles/inline-message.css +4 -0
- package/dist/styles/inline.css +2 -0
- package/dist/styles/kbd.css +2 -0
- package/dist/styles/link.css +6 -0
- package/dist/styles/list-item.css +6 -0
- package/dist/styles/list.css +2 -0
- package/dist/styles/listbox.css +10 -0
- package/dist/styles/loading-overlay.css +6 -0
- package/dist/styles/markdown.css +34 -0
- package/dist/styles/menu.css +6 -0
- package/dist/styles/menubar.css +8 -0
- package/dist/styles/message-scroller.css +4 -0
- package/dist/styles/message.css +4 -0
- package/dist/styles/multi-select.css +18 -0
- package/dist/styles/navigation-menu.css +4 -0
- package/dist/styles/notification-center.css +16 -0
- package/dist/styles/number-field.css +10 -0
- package/dist/styles/otp-input.css +10 -0
- package/dist/styles/page-header.css +16 -0
- package/dist/styles/page.css +6 -0
- package/dist/styles/pagination.css +4 -0
- package/dist/styles/popover.css +4 -0
- package/dist/styles/press-selection.css +1 -0
- package/dist/styles/progress-indicator.css +4 -0
- package/dist/styles/prompt-composer.css +12 -0
- package/dist/styles/prose.css +2 -0
- package/dist/styles/radio-group.css +12 -0
- package/dist/styles/rating.css +10 -0
- package/dist/styles/result-state.css +2 -0
- package/dist/styles/roving-focus.css +1 -0
- package/dist/styles/saved-views.css +20 -0
- package/dist/styles/scroll-area.css +2 -0
- package/dist/styles/section.css +4 -0
- package/dist/styles/segmented-control.css +12 -0
- package/dist/styles/select.css +14 -0
- package/dist/styles/side-navigation.css +14 -0
- package/dist/styles/skeleton.css +4 -0
- package/dist/styles/slider.css +10 -0
- package/dist/styles/sparkline.css +2 -0
- package/dist/styles/split-button.css +12 -0
- package/dist/styles/splitter.css +2 -0
- package/dist/styles/stack.css +2 -0
- package/dist/styles/stat-card.css +10 -0
- package/dist/styles/status-indicator.css +6 -0
- package/dist/styles/stepper.css +6 -0
- package/dist/styles/switch.css +12 -0
- package/dist/styles/table-of-contents.css +8 -0
- package/dist/styles/table.css +60 -0
- package/dist/styles/tabs.css +4 -0
- package/dist/styles/tag.css +4 -0
- package/dist/styles/tags-input.css +12 -0
- package/dist/styles/text-field.css +10 -0
- package/dist/styles/textarea.css +10 -0
- package/dist/styles/theme.css +1 -0
- package/dist/styles/time-field.css +10 -0
- package/dist/styles/time-picker.css +12 -0
- package/dist/styles/time-range-picker.css +12 -0
- package/dist/styles/timeline.css +8 -0
- package/dist/styles/toast.css +8 -0
- package/dist/styles/toggle-group.css +10 -0
- package/dist/styles/toggle.css +2 -0
- package/dist/styles/toolbar.css +8 -0
- package/dist/styles/tooltip.css +2 -0
- package/dist/styles/top-navigation.css +14 -0
- package/dist/styles/tour.css +8 -0
- package/dist/styles/transfer.css +26 -0
- package/dist/styles/tree.css +6 -0
- package/dist/styles/typography.css +2 -0
- package/dist/styles/upload.css +16 -0
- package/dist/styles/visually-hidden.css +2 -0
- package/dist/styles/wizard.css +22 -0
- package/dist/styles.css +1 -1
- package/dist/switch-DmLzDbTb.js +144 -0
- package/dist/switch.js +1 -1
- package/dist/table-Cz9YpgLT.js +1019 -0
- package/dist/table-of-contents-kFr_3Dzs.js +471 -0
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +2 -2
- package/dist/tabs-C-Bc7WmQ.js +361 -0
- package/dist/tabs.js +1 -1
- package/dist/tag-BYzDYvM_.js +374 -0
- package/dist/tag.js +1 -1
- package/dist/tags-input-CAmXKSeZ.js +729 -0
- package/dist/tags-input.js +1 -1
- package/dist/text-field-CHYoral_.js +205 -0
- package/dist/text-field.js +1 -1
- package/dist/textarea-47JGOZKv.js +100 -0
- package/dist/textarea.js +1 -1
- package/dist/theme.js +10 -9
- package/dist/time-field-D1-rNBsB.js +366 -0
- package/dist/time-field.js +1 -1
- package/dist/time-picker-mwCULYh7.js +415 -0
- package/dist/time-picker.js +1 -1
- package/dist/time-range-picker-BKgsEHmd.js +779 -0
- package/dist/time-range-picker.js +1 -1
- package/dist/timeline-BiL2CXfn.js +449 -0
- package/dist/timeline.js +1 -1
- package/dist/{toast-wI8BtPY5.js → toast-DHDVXIew.js} +118 -116
- package/dist/toast.js +1 -1
- package/dist/toggle-group-Bnig_MWl.js +145 -0
- package/dist/toggle-group.js +1 -1
- package/dist/toggle-zDTD5G3H.js +67 -0
- package/dist/toggle.js +1 -1
- package/dist/toolbar-EdmEn_ph.js +243 -0
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-DrFiRlH8.js +411 -0
- package/dist/tooltip.js +1 -1
- package/dist/top-navigation-D_Jt0jNw.js +744 -0
- package/dist/top-navigation.js +1 -1
- package/dist/tour-BYNqu1dL.js +809 -0
- package/dist/tour.js +1 -1
- package/dist/transfer-CEHIa2XD.js +606 -0
- package/dist/transfer.js +1 -1
- package/dist/tree-DBirM2v9.js +794 -0
- package/dist/tree.js +1 -1
- package/dist/types/accordion/accordion.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar-parts.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar.types.d.ts +2 -2
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/alert/alert-parts.d.ts.map +1 -1
- package/dist/types/alert/alert.d.ts +1 -1
- package/dist/types/alert/alert.d.ts.map +1 -1
- package/dist/types/alert/alert.types.d.ts +9 -1
- package/dist/types/alert/alert.types.d.ts.map +1 -1
- package/dist/types/alert/index.d.ts +1 -1
- package/dist/types/alert/index.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +6 -4
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.types.d.ts +21 -14
- package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
- package/dist/types/app-shell/index.d.ts +1 -1
- package/dist/types/app-shell/index.d.ts.map +1 -1
- package/dist/types/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
- package/dist/types/attachment/attachment.d.ts.map +1 -1
- package/dist/types/avatar/avatar.d.ts +1 -1
- package/dist/types/avatar/avatar.d.ts.map +1 -1
- package/dist/types/avatar/avatar.types.d.ts +10 -1
- package/dist/types/avatar/avatar.types.d.ts.map +1 -1
- package/dist/types/avatar/index.d.ts +1 -1
- package/dist/types/avatar/index.d.ts.map +1 -1
- package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/types/badge/badge-anchor.d.ts.map +1 -1
- package/dist/types/badge/badge.d.ts.map +1 -1
- package/dist/types/badge/badge.types.d.ts +1 -1
- package/dist/types/badge/badge.types.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb-parts.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/types/breadcrumb/breadcrumb.types.d.ts +2 -1
- package/dist/types/breadcrumb/breadcrumb.types.d.ts.map +1 -1
- package/dist/types/button/button-content.d.ts.map +1 -1
- package/dist/types/button/button-indicator.d.ts.map +1 -1
- package/dist/types/button/button-link.d.ts +1 -1
- package/dist/types/button/button-link.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +28 -6
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.constants.d.ts +2 -1
- package/dist/types/button/button.constants.d.ts.map +1 -1
- package/dist/types/button/button.d.ts +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/button.types.d.ts +30 -3
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/button/icon-button-link.d.ts +9 -0
- package/dist/types/button/icon-button-link.d.ts.map +1 -0
- package/dist/types/button/icon-button.d.ts.map +1 -1
- package/dist/types/button/index.d.ts +2 -1
- package/dist/types/button/index.d.ts.map +1 -1
- package/dist/types/button/spinner-ring.d.ts +8 -0
- package/dist/types/button/spinner-ring.d.ts.map +1 -0
- package/dist/types/button/toggle-button.d.ts +1 -1
- package/dist/types/button/toggle-button.d.ts.map +1 -1
- package/dist/types/button-group/button-group-separator.d.ts.map +1 -1
- package/dist/types/button-group/button-group.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts +2 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +20 -0
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/calendar/index.d.ts +1 -1
- package/dist/types/calendar/index.d.ts.map +1 -1
- package/dist/types/card/card-actions.d.ts.map +1 -1
- package/dist/types/card/card-body.d.ts.map +1 -1
- package/dist/types/card/card-footer.d.ts.map +1 -1
- package/dist/types/card/card-header.d.ts.map +1 -1
- package/dist/types/card/card-link.d.ts.map +1 -1
- package/dist/types/card/card-media.d.ts.map +1 -1
- package/dist/types/card/card-selection.d.ts.map +1 -1
- package/dist/types/card/card.d.ts.map +1 -1
- package/dist/types/card/card.types.d.ts +2 -1
- package/dist/types/card/card.types.d.ts.map +1 -1
- package/dist/types/carousel/carousel-parts.d.ts.map +1 -1
- package/dist/types/carousel/carousel.d.ts.map +1 -1
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts +2 -2
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/chart/chart.types.d.ts +10 -6
- package/dist/types/chart/chart.types.d.ts.map +1 -1
- package/dist/types/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/types/code-block/code-block.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible-parts.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/combobox/combobox-items.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/container/container-breakout.d.ts.map +1 -1
- package/dist/types/container/container.d.ts.map +1 -1
- package/dist/types/context-menu/context-menu.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field-defaults.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.d.ts +1 -1
- package/dist/types/currency-field/currency-field.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.types.d.ts +28 -5
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/currency-field/index.d.ts +1 -1
- package/dist/types/currency-field/index.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid-context.d.ts +14 -1
- package/dist/types/dashboard-grid/dashboard-grid-context.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +27 -3
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/dashboard-grid/index.d.ts +1 -1
- package/dist/types/dashboard-grid/index.d.ts.map +1 -1
- package/dist/types/dashboard-grid/use-persisted-dashboard-layout.d.ts +2 -1
- package/dist/types/dashboard-grid/use-persisted-dashboard-layout.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-body.d.ts +7 -2
- package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +29 -0
- package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.d.ts +1 -1
- package/dist/types/data-grid/data-grid.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.types.d.ts +24 -1
- package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
- package/dist/types/data-grid/index.d.ts +1 -1
- package/dist/types/data-grid/index.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/date-field/date-field.d.ts +1 -1
- package/dist/types/date-field/date-field.d.ts.map +1 -1
- package/dist/types/date-field/date-field.types.d.ts +7 -0
- package/dist/types/date-field/date-field.types.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts +5 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.types.d.ts +20 -2
- package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
- package/dist/types/date-picker/index.d.ts +1 -1
- package/dist/types/date-picker/index.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-field/datetime-field.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/description-list/description-list-defaults.d.ts.map +1 -1
- package/dist/types/description-list/description-list-parts.d.ts.map +1 -1
- package/dist/types/description-list/description-list.d.ts +1 -1
- package/dist/types/description-list/description-list.d.ts.map +1 -1
- package/dist/types/description-list/description-list.types.d.ts +7 -0
- package/dist/types/description-list/description-list.types.d.ts.map +1 -1
- package/dist/types/description-list/index.d.ts +1 -1
- package/dist/types/description-list/index.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/types/dialog/dialog-demo.d.ts +8 -0
- package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
- package/dist/types/dialog/dialog-parts.d.ts.map +1 -1
- package/dist/types/dialog/dialog.d.ts.map +1 -1
- package/dist/types/dialog/dialog.types.d.ts +12 -2
- package/dist/types/dialog/dialog.types.d.ts.map +1 -1
- package/dist/types/divider/divider.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts +3 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer.d.ts +1 -1
- package/dist/types/drawer/drawer.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +8 -0
- package/dist/types/drawer/drawer.types.d.ts.map +1 -1
- package/dist/types/drawer/index.d.ts +2 -2
- package/dist/types/drawer/index.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-option-parts.d.ts +13 -0
- package/dist/types/entity-picker/entity-picker-option-parts.d.ts.map +1 -0
- package/dist/types/entity-picker/entity-picker-popup.d.ts +0 -7
- package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.types.d.ts +8 -0
- package/dist/types/entity-picker/entity-picker.types.d.ts.map +1 -1
- package/dist/types/entity-picker/index.d.ts +1 -0
- package/dist/types/entity-picker/index.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-event.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-list.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-month.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar-time-grid.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/field/field-parts.d.ts.map +1 -1
- package/dist/types/field/field.d.ts.map +1 -1
- package/dist/types/field-group/field-group-parts.d.ts.map +1 -1
- package/dist/types/field-group/field-group.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/form/form-parts.d.ts.map +1 -1
- package/dist/types/form/form.d.ts.map +1 -1
- package/dist/types/fullscreen/fullscreen.d.ts.map +1 -1
- package/dist/types/grid/grid.d.ts.map +1 -1
- package/dist/types/highlight/highlight.d.ts.map +1 -1
- package/dist/types/hover-card/hover-card.d.ts.map +1 -1
- package/dist/types/i18n/slotted-provider.d.ts +6 -0
- package/dist/types/i18n/slotted-provider.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/icon/icon.d.ts.map +1 -1
- package/dist/types/icon/icon.types.d.ts +1 -1
- package/dist/types/icon/icon.types.d.ts.map +1 -1
- package/dist/types/image/image.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/inline/inline.d.ts.map +1 -1
- package/dist/types/inline-message/index.d.ts +2 -2
- package/dist/types/inline-message/index.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message-defaults.d.ts +1 -1
- package/dist/types/inline-message/inline-message-defaults.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message.d.ts +13 -5
- package/dist/types/inline-message/inline-message.d.ts.map +1 -1
- package/dist/types/inline-message/inline-message.types.d.ts +6 -4
- package/dist/types/inline-message/inline-message.types.d.ts.map +1 -1
- package/dist/types/kbd/key-element.d.ts.map +1 -1
- package/dist/types/kbd/shortcut.d.ts.map +1 -1
- package/dist/types/link/index.d.ts +1 -1
- package/dist/types/link/index.d.ts.map +1 -1
- package/dist/types/link/link.d.ts +1 -1
- package/dist/types/link/link.d.ts.map +1 -1
- package/dist/types/link/link.types.d.ts +9 -1
- package/dist/types/link/link.types.d.ts.map +1 -1
- package/dist/types/list/index.d.ts +1 -1
- package/dist/types/list/index.d.ts.map +1 -1
- package/dist/types/list/list-parts.d.ts +1 -1
- package/dist/types/list/list-parts.d.ts.map +1 -1
- package/dist/types/list/list.d.ts.map +1 -1
- package/dist/types/list/list.types.d.ts +12 -0
- package/dist/types/list/list.types.d.ts.map +1 -1
- package/dist/types/list-item/list-item-content.d.ts +3 -3
- package/dist/types/list-item/list-item-content.d.ts.map +1 -1
- package/dist/types/list-item/list-item-nesting.d.ts +15 -0
- package/dist/types/list-item/list-item-nesting.d.ts.map +1 -0
- package/dist/types/list-item/list-item-parts.d.ts +3 -3
- package/dist/types/list-item/list-item-parts.d.ts.map +1 -1
- package/dist/types/list-item/list-item.d.ts.map +1 -1
- package/dist/types/list-item/list-item.types.d.ts +3 -2
- package/dist/types/list-item/list-item.types.d.ts.map +1 -1
- package/dist/types/listbox/listbox-parts.d.ts.map +1 -1
- package/dist/types/listbox/listbox.d.ts.map +1 -1
- package/dist/types/loading-overlay/loading-overlay.d.ts.map +1 -1
- package/dist/types/markdown/markdown.d.ts +1 -1
- package/dist/types/markdown/markdown.d.ts.map +1 -1
- package/dist/types/markdown/markdown.types.d.ts +6 -1
- package/dist/types/markdown/markdown.types.d.ts.map +1 -1
- package/dist/types/menu/index.d.ts +1 -1
- package/dist/types/menu/index.d.ts.map +1 -1
- package/dist/types/menu/menu-defaults.d.ts.map +1 -1
- package/dist/types/menu/menu-items.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/menu/menu.d.ts +1 -1
- package/dist/types/menu/menu.d.ts.map +1 -1
- package/dist/types/menu/menu.types.d.ts +10 -0
- package/dist/types/menu/menu.types.d.ts.map +1 -1
- package/dist/types/menubar/menubar.d.ts.map +1 -1
- package/dist/types/message/bubble.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.d.ts.map +1 -1
- package/dist/types/message/message.types.d.ts +1 -1
- package/dist/types/message/message.types.d.ts.map +1 -1
- package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-chips.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-items.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu-parts.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu.types.d.ts +2 -1
- package/dist/types/navigation-menu/navigation-menu.types.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.d.ts.map +1 -1
- package/dist/types/notification-center/notification-center.types.d.ts +1 -1
- package/dist/types/notification-center/notification-center.types.d.ts.map +1 -1
- package/dist/types/number-field/number-field.d.ts.map +1 -1
- package/dist/types/otp-input/otp-input.d.ts.map +1 -1
- package/dist/types/page/index.d.ts +1 -1
- package/dist/types/page/index.d.ts.map +1 -1
- package/dist/types/page/page.d.ts +6 -0
- package/dist/types/page/page.d.ts.map +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts +3 -3
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header.d.ts +1 -1
- package/dist/types/page-header/page-header.d.ts.map +1 -1
- package/dist/types/page-header/page-header.types.d.ts +11 -1
- package/dist/types/page-header/page-header.types.d.ts.map +1 -1
- package/dist/types/pagination/pagination-parts.d.ts.map +1 -1
- package/dist/types/pagination/pagination.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/press-selection/index.d.ts +3 -0
- package/dist/types/press-selection/index.d.ts.map +1 -0
- package/dist/types/press-selection/press-selection.d.ts +23 -0
- package/dist/types/press-selection/press-selection.d.ts.map +1 -0
- package/dist/types/progress-indicator/progress-bar.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-circle.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-indicator.types.d.ts +1 -1
- package/dist/types/progress-indicator/progress-indicator.types.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-parts.d.ts.map +1 -1
- package/dist/types/progress-indicator/use-progress-indicator.d.ts +6 -0
- package/dist/types/progress-indicator/use-progress-indicator.d.ts.map +1 -1
- package/dist/types/prompt-composer/index.d.ts +2 -2
- package/dist/types/prompt-composer/index.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer-defaults.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts +9 -2
- package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.types.d.ts +16 -1
- package/dist/types/prompt-composer/prompt-composer.types.d.ts.map +1 -1
- package/dist/types/prose/prose-parts.d.ts.map +1 -1
- package/dist/types/prose/prose-scroll.d.ts.map +1 -1
- package/dist/types/prose/prose.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group-parts.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group.d.ts.map +1 -1
- package/dist/types/rating/rating-display.d.ts.map +1 -1
- package/dist/types/rating/rating-summary.d.ts.map +1 -1
- package/dist/types/rating/rating.d.ts.map +1 -1
- package/dist/types/rating/rating.types.d.ts +1 -1
- package/dist/types/rating/rating.types.d.ts.map +1 -1
- package/dist/types/result-state/result-state-parts.d.ts.map +1 -1
- package/dist/types/result-state/result-state.d.ts.map +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/saved-views/saved-views.d.ts.map +1 -1
- package/dist/types/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/types/section/index.d.ts +1 -1
- package/dist/types/section/index.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +7 -2
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/section/section.d.ts.map +1 -1
- package/dist/types/segmented-control/index.d.ts +1 -1
- package/dist/types/segmented-control/index.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
- package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
- package/dist/types/select/select-items.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/select/select-tags.d.ts.map +1 -1
- package/dist/types/select/select.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation.types.d.ts +2 -1
- package/dist/types/side-navigation/side-navigation.types.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton.d.ts.map +1 -1
- package/dist/types/slider/slider.d.ts.map +1 -1
- package/dist/types/sparkline/sparkline.d.ts.map +1 -1
- package/dist/types/sparkline/sparkline.types.d.ts +3 -1
- package/dist/types/sparkline/sparkline.types.d.ts.map +1 -1
- package/dist/types/split-button/split-button-parts.d.ts.map +1 -1
- package/dist/types/split-button/split-button.d.ts.map +1 -1
- package/dist/types/splitter/splitter.d.ts.map +1 -1
- package/dist/types/stack/stack.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-parts.d.ts +7 -3
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-value.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.types.d.ts +3 -3
- package/dist/types/stat-card/stat-card.types.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/stepper/stepper-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper.d.ts.map +1 -1
- package/dist/types/switch/switch.d.ts.map +1 -1
- package/dist/types/table/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-content.d.ts.map +1 -1
- package/dist/types/table/table-defaults.d.ts.map +1 -1
- package/dist/types/table/table-filter.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +12 -2
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.d.ts +1 -1
- package/dist/types/table/table.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +43 -1
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents-demo.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents-parts.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents.d.ts.map +1 -1
- package/dist/types/table-of-contents/table-of-contents.types.d.ts +2 -1
- package/dist/types/table-of-contents/table-of-contents.types.d.ts.map +1 -1
- package/dist/types/tabs/tabs-parts.d.ts +2 -4
- package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
- package/dist/types/tabs/tabs.d.ts +1 -1
- package/dist/types/tabs/tabs.d.ts.map +1 -1
- package/dist/types/tabs/tabs.types.d.ts +18 -0
- package/dist/types/tabs/tabs.types.d.ts.map +1 -1
- package/dist/types/tag/tag-button.d.ts.map +1 -1
- package/dist/types/tag/tag-chip.d.ts +2 -2
- package/dist/types/tag/tag-chip.d.ts.map +1 -1
- package/dist/types/tag/tag-group.d.ts.map +1 -1
- package/dist/types/tag/tag-link.d.ts.map +1 -1
- package/dist/types/tag/tag-toggle.d.ts.map +1 -1
- package/dist/types/tag/tag.types.d.ts +3 -2
- package/dist/types/tag/tag.types.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input-chips.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts +7 -1
- package/dist/types/tags-input/tags-input.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.types.d.ts +10 -0
- package/dist/types/tags-input/tags-input.types.d.ts.map +1 -1
- package/dist/types/text-field/text-field.d.ts.map +1 -1
- package/dist/types/textarea/textarea.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/types/time-field/time-field.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/timeline/timeline.d.ts.map +1 -1
- package/dist/types/timeline/timeline.types.d.ts +1 -1
- package/dist/types/timeline/timeline.types.d.ts.map +1 -1
- package/dist/types/toast/toast-parts.d.ts.map +1 -1
- package/dist/types/toast/toast.d.ts.map +1 -1
- package/dist/types/toast/toast.types.d.ts +1 -1
- package/dist/types/toast/toast.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle/toggle.types.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group-parts.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar-parts.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts +2 -2
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation-parts.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.types.d.ts +8 -7
- package/dist/types/top-navigation/top-navigation.types.d.ts.map +1 -1
- package/dist/types/tour/tour-parts.d.ts.map +1 -1
- package/dist/types/tour/tour.d.ts.map +1 -1
- package/dist/types/transfer/transfer.d.ts.map +1 -1
- package/dist/types/tree/tree-parts.d.ts.map +1 -1
- package/dist/types/tree/tree.d.ts.map +1 -1
- package/dist/types/typography/heading.d.ts +2 -2
- package/dist/types/typography/heading.d.ts.map +1 -1
- package/dist/types/typography/text.d.ts.map +1 -1
- package/dist/types/typography/typography.types.d.ts +1 -1
- package/dist/types/typography/typography.types.d.ts.map +1 -1
- package/dist/types/upload/upload-viewer.d.ts.map +1 -1
- package/dist/types/upload/upload.d.ts.map +1 -1
- package/dist/types/visually-hidden/visually-hidden.d.ts.map +1 -1
- package/dist/types/wizard/wizard-parts.d.ts.map +1 -1
- package/dist/types/wizard/wizard.d.ts.map +1 -1
- package/dist/typography-BESqb4C0.js +93 -0
- package/dist/typography.js +1 -1
- package/dist/upload-S3d3tUt-.js +648 -0
- package/dist/upload.js +1 -1
- package/dist/visually-hidden-BUSrFZ1_.js +15 -0
- package/dist/visually-hidden.js +1 -1
- package/dist/wizard-DCS6BaK8.js +838 -0
- package/dist/wizard.js +1 -1
- package/package.json +28 -11
- package/dist/accordion-D-YuMJzk.js +0 -143
- package/dist/action-bar-C7cGnEyJ.js +0 -282
- package/dist/action-sheet-DgwzC3iY.js +0 -347
- package/dist/alert-CP62p9Ul.js +0 -159
- package/dist/app-shell-CXwma4XA.js +0 -836
- package/dist/aspect-ratio-C76l-aoY.js +0 -40
- package/dist/attachment-DdBbQcEB.js +0 -302
- package/dist/avatar-BnlE5jjr.js +0 -100
- package/dist/avatar-group-4rBj99tz.js +0 -47
- package/dist/badge-C6rbwVpu.js +0 -94
- package/dist/breadcrumb-Bf01N4wK.js +0 -218
- package/dist/button-DakQ-7Tm.js +0 -97
- package/dist/button-group-Det_nYor.js +0 -50
- package/dist/calendar-B3mio8iQ.js +0 -387
- package/dist/card-CpVu8PyZ.js +0 -102
- package/dist/carousel-BPi-Y5yF.js +0 -498
- package/dist/cascader-CARCYdHh.js +0 -1097
- package/dist/chart-Gb_P3Kdq.js +0 -959
- package/dist/checkbox-CwUOc-3u.js +0 -139
- package/dist/checkbox-group-BYTjgAcX.js +0 -108
- package/dist/code-block-CFHf8uTm.js +0 -269
- package/dist/collapsible-CGo49NNW.js +0 -217
- package/dist/color-picker-BlPR4g4H.js +0 -504
- package/dist/column-manager-B7_a_jDK.js +0 -585
- package/dist/combobox-C66dNlMR.js +0 -856
- package/dist/command-palette-BqRyNR9Y.js +0 -707
- package/dist/container-CjxY6rYv.js +0 -46
- package/dist/context-menu-DMiHdggw.js +0 -150
- package/dist/currency-field-B7OZ0hk7.js +0 -436
- package/dist/dashboard-grid-CKdyO4j6.js +0 -1043
- package/dist/data-grid-rWMDNl-6.js +0 -3648
- package/dist/data-list-2xfDpHVC.js +0 -561
- package/dist/date-field-D_kLLTfL.js +0 -279
- package/dist/date-picker-DQ5SIhdA.js +0 -264
- package/dist/date-range-picker-lpB08hK_.js +0 -471
- package/dist/datetime-field-T1gNdJ7t.js +0 -411
- package/dist/datetime-picker-0F0kDW-8.js +0 -629
- package/dist/datetime-range-picker-ClnEleth.js +0 -994
- package/dist/description-list-IYLnFgHT.js +0 -232
- package/dist/dialog-Dmy-m_pe.js +0 -499
- package/dist/divider-D36Jqo0J.js +0 -33
- package/dist/drawer-Dtospdqk.js +0 -758
- package/dist/entity-picker-Dm-y0RNE.js +0 -1111
- package/dist/event-calendar-DYjVwTI6.js +0 -1400
- package/dist/field-BJh5HI7w.js +0 -365
- package/dist/field-group-BDaspQPh.js +0 -138
- package/dist/filter-bar-Bh7cbqDE.js +0 -1335
- package/dist/fullscreen-CF0UN4mv.js +0 -187
- package/dist/grid-CIkG_2IQ.js +0 -25
- package/dist/highlight-0Qw23QPp.js +0 -57
- package/dist/hover-card-CSDbA6zd.js +0 -214
- package/dist/icon-T9Yt4tnm.js +0 -73
- package/dist/icon-button-TnvMhK4o.js +0 -211
- package/dist/import-export-center-CkZ_Ar9w.js +0 -813
- package/dist/inline-D_IjcJ1n.js +0 -16
- package/dist/inline-message-C4a-A2mw.js +0 -91
- package/dist/kbd-eFSWTKxN.js +0 -100
- package/dist/link-TjvRl2VQ.js +0 -87
- package/dist/list-C1Y8MWp2.js +0 -87
- package/dist/list-item-DN_mcouU.js +0 -123
- package/dist/listbox-4WvqR0JF.js +0 -615
- package/dist/loading-overlay-B83XFctM.js +0 -208
- package/dist/markdown-CpfDn1LF.js +0 -295
- package/dist/menu-parts-BQej6eU9.js +0 -787
- package/dist/menubar-CtGavUTO.js +0 -156
- package/dist/message-Cp0rLCyW.js +0 -430
- package/dist/message-scroller-UZjFpflz.js +0 -214
- package/dist/multi-select-B-tuIwAu.js +0 -1188
- package/dist/navigation-menu-parts-D8qFAwHX.js +0 -492
- package/dist/notification-center-C4pEHJ3h.js +0 -485
- package/dist/number-field-J_koud1r.js +0 -342
- package/dist/page-header-CWEBfMGq.js +0 -367
- package/dist/page-kQgLctsA.js +0 -167
- package/dist/pagination-DWJc521r.js +0 -292
- package/dist/popover-DE22lSpV.js +0 -476
- package/dist/progress-indicator-DwvUSFFs.js +0 -269
- package/dist/prompt-composer-B7MMcER0.js +0 -259
- package/dist/prose-CkeNYS0X.js +0 -91
- package/dist/radio-group-BFpjhDkV.js +0 -140
- package/dist/rating-D1EsADFM.js +0 -459
- package/dist/react-dom-DzrKNxo6.js +0 -273
- package/dist/result-state-CZsQfdN4.js +0 -126
- package/dist/saved-views-BueW-Lyb.js +0 -446
- package/dist/scroll-area-BriwmvYY.js +0 -111
- package/dist/section-Be7dX9MC.js +0 -176
- package/dist/segmented-control-Cy_5D3Nj.js +0 -149
- package/dist/select-hRFp8nCj.js +0 -944
- package/dist/side-navigation-YUiJRpng.js +0 -729
- package/dist/skeleton-2LSpg84Z.js +0 -143
- package/dist/slider-B432T6nD.js +0 -256
- package/dist/sparkline-rY7HIFE4.js +0 -131
- package/dist/split-button-DHF3v3PJ.js +0 -135
- package/dist/splitter-Bg3UgmbV.js +0 -289
- package/dist/stack-BEFavbRs.js +0 -15
- package/dist/stat-card-BG7uLytP.js +0 -244
- package/dist/status-indicator-BOjpXkU5.js +0 -73
- package/dist/stepper-DQJuRWqR.js +0 -253
- package/dist/switch-4MHwKmkz.js +0 -138
- package/dist/table-Bd79IwDC.js +0 -970
- package/dist/table-of-contents-DfAeYtFJ.js +0 -461
- package/dist/tabs-DQ36APY-.js +0 -343
- package/dist/tag-DjtW53xN.js +0 -365
- package/dist/tags-input-DLdHLWrH.js +0 -625
- package/dist/text-field-BktZbmzD.js +0 -195
- package/dist/textarea-JAK2RJl0.js +0 -99
- package/dist/time-field-DCG_VtGO.js +0 -355
- package/dist/time-picker-DuT1tf5-.js +0 -396
- package/dist/time-range-picker-HwBvrrXN.js +0 -745
- package/dist/timeline-DH_02ysz.js +0 -421
- package/dist/toggle-CBFhM4Jh.js +0 -64
- package/dist/toggle-group-DQBlI1TV.js +0 -140
- package/dist/toolbar-CDQTydDx.js +0 -240
- package/dist/tooltip-BggqPDcW.js +0 -393
- package/dist/top-navigation-COQZsNqW.js +0 -740
- package/dist/tour-C11DmYTC.js +0 -799
- package/dist/transfer-JA9TWjAw.js +0 -596
- package/dist/tree-C6fYJqT9.js +0 -783
- package/dist/typography-B2iaigEC.js +0 -92
- package/dist/upload-Bq_UiyMr.js +0 -613
- package/dist/visually-hidden-CE6u5JLW.js +0 -14
- package/dist/wizard-B4GrlEqh.js +0 -815
package/dist/docs/section.json
CHANGED
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"title",
|
|
59
59
|
"eyebrow",
|
|
60
60
|
"heading",
|
|
61
|
+
"tags",
|
|
61
62
|
"description",
|
|
62
63
|
"actions",
|
|
63
64
|
"body"
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"docs": {
|
|
68
69
|
"section": {
|
|
69
70
|
"imports": {
|
|
70
|
-
"source": "import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';"
|
|
71
|
+
"source": "import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';"
|
|
71
72
|
},
|
|
72
73
|
"anatomy": [
|
|
73
74
|
{
|
|
@@ -78,42 +79,56 @@
|
|
|
78
79
|
},
|
|
79
80
|
{
|
|
80
81
|
"part": "header",
|
|
82
|
+
"parent": "root",
|
|
81
83
|
"element": "div",
|
|
82
84
|
"required": false,
|
|
83
|
-
"purpose": "The row above the body: the
|
|
85
|
+
"purpose": "The row above the body: the heading, its tags and the actions on one baseline, the eyebrow above and the description below on rows of their own. Sticky under the page chrome when sticky is set, painted in the page’s ground so what scrolls under it is covered; it carries data-stuck while content passes under it, and its ground is --slotted-section-header-background, which defaults to the page’s; its height is measured and added to the sticky top the body publishes, so a table’s column header or a nested section inside stops under it, not under the page."
|
|
84
86
|
},
|
|
85
87
|
{
|
|
86
88
|
"part": "title",
|
|
89
|
+
"parent": "header",
|
|
87
90
|
"element": "div",
|
|
88
91
|
"required": false,
|
|
89
|
-
"purpose": "Eyebrow, heading and description, in that order,
|
|
92
|
+
"purpose": "Eyebrow, heading, tags and description, in that order, laid out on the header’s rows, so the actions align with the heading and not with the top of an eyebrow."
|
|
90
93
|
},
|
|
91
94
|
{
|
|
92
95
|
"part": "eyebrow",
|
|
96
|
+
"parent": "title",
|
|
93
97
|
"element": "span",
|
|
94
98
|
"required": false,
|
|
95
|
-
"purpose": "A short overline above the heading in small capitals — a count, a category. Structural rather than status: status is a
|
|
99
|
+
"purpose": "A short overline above the heading in small capitals — a count, a category. Structural rather than status: status is a tag."
|
|
96
100
|
},
|
|
97
101
|
{
|
|
98
102
|
"part": "heading",
|
|
103
|
+
"parent": "title",
|
|
99
104
|
"element": "h1 to h6, from the outline or level, or the element render returns",
|
|
100
105
|
"required": false,
|
|
101
106
|
"purpose": "The heading at the rank the section resolved. Rendering it is what names the region; render keeps the rank through aria-level when the element is not a heading."
|
|
102
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"part": "tags",
|
|
110
|
+
"parent": "title",
|
|
111
|
+
"element": "div",
|
|
112
|
+
"required": false,
|
|
113
|
+
"purpose": "Badges or tags beside the heading — a count, a status — aligned on the heading’s baseline. Outside the heading, so they are not read into the region’s name. They never leave the heading’s row: a long heading wraps its words and the badges stack beside it."
|
|
114
|
+
},
|
|
103
115
|
{
|
|
104
116
|
"part": "description",
|
|
117
|
+
"parent": "title",
|
|
105
118
|
"element": "p",
|
|
106
119
|
"required": false,
|
|
107
120
|
"purpose": "A paragraph under the heading, in the muted text, with a measure of seventy characters."
|
|
108
121
|
},
|
|
109
122
|
{
|
|
110
123
|
"part": "actions",
|
|
124
|
+
"parent": "header",
|
|
111
125
|
"element": "div",
|
|
112
126
|
"required": false,
|
|
113
|
-
"purpose": "The end of the
|
|
127
|
+
"purpose": "The end of the heading’s row, on its baseline: a Button, a Toolbar, a Link. On a header narrower than 20rem it takes a row of its own at the end."
|
|
114
128
|
},
|
|
115
129
|
{
|
|
116
130
|
"part": "body",
|
|
131
|
+
"parent": "root",
|
|
117
132
|
"element": "div",
|
|
118
133
|
"required": true,
|
|
119
134
|
"purpose": "The content, wrapped one HeadingLevel deeper, so a section inside it takes the next rank without being told."
|
|
@@ -125,7 +140,7 @@
|
|
|
125
140
|
"type": "'sm' | 'md' | 'lg'",
|
|
126
141
|
"defaultValue": "md",
|
|
127
142
|
"appliesTo": "Section, SectionDefaultsProvider",
|
|
128
|
-
"description": "The step the heading
|
|
143
|
+
"description": "The step of the heading: the label’s, xs for sm and md and sm for lg; a nested section’s mixed-case heading, sm, md or lg. Independent of its rank"
|
|
129
144
|
},
|
|
130
145
|
{
|
|
131
146
|
"name": "level",
|
|
@@ -153,7 +168,7 @@
|
|
|
153
168
|
"type": "boolean",
|
|
154
169
|
"defaultValue": "false",
|
|
155
170
|
"appliesTo": "Section, SectionDefaultsProvider",
|
|
156
|
-
"description": "The header stays under the page chrome while the body scrolls, painted in the page’s ground. Without a page it sticks to the top of whatever scrolls"
|
|
171
|
+
"description": "The header stays under the page chrome while the body scrolls, painted in the page’s ground. Without a page it sticks to the top of whatever scrolls. A region inside a page that paints a ground of its own declares --slotted-page-ground with that ground, so a sticky header under it matches the region."
|
|
157
172
|
},
|
|
158
173
|
{
|
|
159
174
|
"name": "id",
|
|
@@ -202,6 +217,7 @@
|
|
|
202
217
|
],
|
|
203
218
|
"events": [],
|
|
204
219
|
"accessibility": [
|
|
220
|
+
"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.",
|
|
205
221
|
"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.",
|
|
206
222
|
"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.",
|
|
207
223
|
"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.",
|
|
@@ -219,30 +235,36 @@
|
|
|
219
235
|
"--slotted-font-size-lg",
|
|
220
236
|
"--slotted-font-size-md",
|
|
221
237
|
"--slotted-font-size-sm",
|
|
222
|
-
"--slotted-font-size-xl",
|
|
223
238
|
"--slotted-font-size-xs",
|
|
224
239
|
"--slotted-font-weight-semibold",
|
|
225
240
|
"--slotted-line-height-lg",
|
|
226
241
|
"--slotted-line-height-md",
|
|
227
242
|
"--slotted-line-height-sm",
|
|
228
|
-
"--slotted-line-height-xl",
|
|
229
243
|
"--slotted-line-height-xs",
|
|
230
244
|
"--slotted-page-ground",
|
|
231
245
|
"--slotted-radius-lg",
|
|
232
246
|
"--slotted-section-border",
|
|
233
247
|
"--slotted-section-description-measure",
|
|
234
248
|
"--slotted-section-gap",
|
|
249
|
+
"--slotted-section-header-background",
|
|
235
250
|
"--slotted-section-heading-size-lg",
|
|
236
251
|
"--slotted-section-heading-size-md",
|
|
237
252
|
"--slotted-section-heading-size-sm",
|
|
238
253
|
"--slotted-section-inset",
|
|
239
254
|
"--slotted-section-radius",
|
|
255
|
+
"--slotted-section-spacing",
|
|
256
|
+
"--slotted-section-subheading-size-lg",
|
|
257
|
+
"--slotted-section-subheading-size-md",
|
|
258
|
+
"--slotted-section-subheading-size-sm",
|
|
259
|
+
"--slotted-section-subsection-spacing",
|
|
240
260
|
"--slotted-section-surface",
|
|
241
261
|
"--slotted-space-1",
|
|
242
262
|
"--slotted-space-3",
|
|
243
263
|
"--slotted-space-4",
|
|
244
264
|
"--slotted-space-5",
|
|
245
265
|
"--slotted-space-6",
|
|
266
|
+
"--slotted-space-7",
|
|
267
|
+
"--slotted-space-9",
|
|
246
268
|
"--slotted-surface",
|
|
247
269
|
"--slotted-surface-raised",
|
|
248
270
|
"--slotted-text",
|
|
@@ -261,9 +283,9 @@
|
|
|
261
283
|
{
|
|
262
284
|
"id": "anatomy",
|
|
263
285
|
"title": "Every part, written out",
|
|
264
|
-
"note": "The eyebrow with the count, the heading, the description under it,
|
|
286
|
+
"note": "The eyebrow with the count, the heading with a status tag beside it, the description under it, an action at the end of the heading’s row, and the body with the table. The section is a region named by its heading.",
|
|
265
287
|
"language": "tsx",
|
|
266
|
-
"source": "<Section divider id=\"itens\">\n <SectionHeader>\n <SectionTitle>\n <SectionEyebrow>36 itens</SectionEyebrow>\n <SectionHeading>Itens do pedido</SectionHeading>\n <SectionDescription>Quantidades conforme a cotação aceite.</SectionDescription>\n </SectionTitle>\n <SectionActions>\n <Button size=\"sm\" variant=\"outline\">\n Exportar\n </Button>\n </SectionActions>\n </SectionHeader>\n <SectionBody>\n <Table>…</Table>\n </SectionBody>\n</Section>;\n",
|
|
288
|
+
"source": "<Section divider id=\"itens\">\n <SectionHeader>\n <SectionTitle>\n <SectionEyebrow>36 itens</SectionEyebrow>\n <SectionHeading>Itens do pedido</SectionHeading>\n <SectionTags>\n <Badge size=\"sm\" tone=\"warning\">\n Pendente\n </Badge>\n </SectionTags>\n <SectionDescription>Quantidades conforme a cotação aceite.</SectionDescription>\n </SectionTitle>\n <SectionActions>\n <Button size=\"sm\" variant=\"outline\">\n Exportar\n </Button>\n </SectionActions>\n </SectionHeader>\n <SectionBody>\n <Table>…</Table>\n </SectionBody>\n</Section>;\n",
|
|
267
289
|
"verdict": "excerpt"
|
|
268
290
|
},
|
|
269
291
|
{
|
|
@@ -276,8 +298,8 @@
|
|
|
276
298
|
},
|
|
277
299
|
{
|
|
278
300
|
"id": "size",
|
|
279
|
-
"title": "The step the
|
|
280
|
-
"note": "
|
|
301
|
+
"title": "The step the label sits at",
|
|
302
|
+
"note": "The heading is a label in tracked small capitals: xs for sm and md, sm for lg. A section nested in another sets its heading in mixed case and the muted tone, on sm, md or lg for its own size. The step says nothing about the rank.",
|
|
281
303
|
"language": "tsx",
|
|
282
304
|
"source": "<Section level=\"3\" size=\"lg\">\n …\n</Section>;\n",
|
|
283
305
|
"verdict": "excerpt"
|
|
@@ -285,7 +307,7 @@
|
|
|
285
307
|
{
|
|
286
308
|
"id": "separation",
|
|
287
309
|
"title": "Space, a rule, or a surface",
|
|
288
|
-
"note": "Three sections on the page’s sunken canvas: separated by the
|
|
310
|
+
"note": "Three sections on the page’s sunken canvas: separated by the family’s own spacing and the label alone, by a divider under the header, and by a surface with an edge and a radius — no shadow, no hover, because a section is not a card.",
|
|
289
311
|
"language": "tsx",
|
|
290
312
|
"source": "<Section ground=\"surface\">…</Section>;\n",
|
|
291
313
|
"verdict": "excerpt"
|
|
@@ -301,7 +323,7 @@
|
|
|
301
323
|
{
|
|
302
324
|
"id": "nested",
|
|
303
325
|
"title": "A section inside a section",
|
|
304
|
-
"note": "The fleet, its heavy vehicles, the tractors: three depths, three ranks, and
|
|
326
|
+
"note": "The fleet, its heavy vehicles, the tractors: three depths, three ranks. The outer heading is a label in small capitals; the inner ones are mixed case in the muted tone, the level read in case, size and tone. Every other rule reaches its part with a child combinator, so the outer header styles nothing else of the inner one.",
|
|
305
327
|
"language": "tsx",
|
|
306
328
|
"source": "<Section size=\"lg\">\n <SectionHeading>Frota</SectionHeading>\n <SectionBody>\n <Section>\n <SectionHeading>Veículos pesados</SectionHeading>\n <SectionBody>\n <Section size=\"sm\">\n <SectionHeading>Cavalos mecânicos</SectionHeading>\n </Section>\n </SectionBody>\n </Section>\n </SectionBody>\n</Section>;\n",
|
|
307
329
|
"verdict": "excerpt"
|
package/dist/docs/section.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```tsx
|
|
9
|
-
import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';
|
|
9
|
+
import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
@@ -26,26 +26,27 @@ 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
|
-
| `
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
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 |
|
|
39
40
|
|
|
40
41
|
## Props
|
|
41
42
|
|
|
42
43
|
| Name | Type | Default | Applies to | Description |
|
|
43
44
|
| --- | --- | --- | --- | --- |
|
|
44
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | Section, SectionDefaultsProvider | The step the heading
|
|
45
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | Section, SectionDefaultsProvider | The step of the heading: the label’s, xs for sm and md and sm for lg; a nested section’s mixed-case heading, sm, md or lg. Independent of its rank |
|
|
45
46
|
| `level` | `'auto' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | auto | Section | The rank of the heading. auto takes the one typography’s outline gives: h2 directly in a page, one deeper inside another section |
|
|
46
47
|
| `divider` | `boolean` | false | Section, SectionDefaultsProvider | A rule under the header, for a page where space alone does not separate |
|
|
47
48
|
| `ground` | `'none' \| 'surface'` | none | Section, SectionDefaultsProvider | none is transparent; surface paints the raised surface with a subtle edge and the large radius — no shadow, no hover, no action, because a section is not a card |
|
|
48
|
-
| `sticky` | `boolean` | false | Section, SectionDefaultsProvider | The header stays under the page chrome while the body scrolls, painted in the page’s ground. Without a page it sticks to the top of whatever scrolls |
|
|
49
|
+
| `sticky` | `boolean` | false | Section, SectionDefaultsProvider | The header stays under the page chrome while the body scrolls, painted in the page’s ground. Without a page it sticks to the top of whatever scrolls. A region inside a page that paints a ground of its own declares --slotted-page-ground with that ground, so a sticky header under it matches the region. |
|
|
49
50
|
| `id` | `string` | from useId | Section | The identifier a hash link reaches. The heading’s own id is derived from it |
|
|
50
51
|
| `render` | `(props) => ReactNode` | — | every part | Substitutes the element and hands it every attribute. A heading rendered into another element keeps its rank through role="heading" and aria-level |
|
|
51
52
|
| `ref` | `Ref<HTMLElement>` | — | every part | Reaches the element itself; no imperative handle is invented for a family with no state |
|
|
@@ -65,6 +66,7 @@ Excerpt — not a complete module
|
|
|
65
66
|
|
|
66
67
|
## Rules
|
|
67
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.
|
|
68
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.
|
|
69
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.
|
|
70
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.
|
|
@@ -73,13 +75,13 @@ Excerpt — not a complete module
|
|
|
73
75
|
|
|
74
76
|
## Tokens
|
|
75
77
|
|
|
76
|
-
`--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-
|
|
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`
|
|
77
79
|
|
|
78
80
|
## Examples
|
|
79
81
|
|
|
80
82
|
### Every part, written out
|
|
81
83
|
|
|
82
|
-
The eyebrow with the count, the heading, the description under it,
|
|
84
|
+
The eyebrow with the count, the heading with a status tag beside it, the description under it, an action at the end of the heading’s row, and the body with the table. The section is a region named by its heading.
|
|
83
85
|
|
|
84
86
|
Excerpt — not a complete module
|
|
85
87
|
|
|
@@ -89,6 +91,11 @@ Excerpt — not a complete module
|
|
|
89
91
|
<SectionTitle>
|
|
90
92
|
<SectionEyebrow>36 itens</SectionEyebrow>
|
|
91
93
|
<SectionHeading>Itens do pedido</SectionHeading>
|
|
94
|
+
<SectionTags>
|
|
95
|
+
<Badge size="sm" tone="warning">
|
|
96
|
+
Pendente
|
|
97
|
+
</Badge>
|
|
98
|
+
</SectionTags>
|
|
92
99
|
<SectionDescription>Quantidades conforme a cotação aceite.</SectionDescription>
|
|
93
100
|
</SectionTitle>
|
|
94
101
|
<SectionActions>
|
|
@@ -120,9 +127,9 @@ Excerpt — not a complete module
|
|
|
120
127
|
</Section>;
|
|
121
128
|
```
|
|
122
129
|
|
|
123
|
-
### The step the
|
|
130
|
+
### The step the label sits at
|
|
124
131
|
|
|
125
|
-
|
|
132
|
+
The heading is a label in tracked small capitals: xs for sm and md, sm for lg. A section nested in another sets its heading in mixed case and the muted tone, on sm, md or lg for its own size. The step says nothing about the rank.
|
|
126
133
|
|
|
127
134
|
Excerpt — not a complete module
|
|
128
135
|
|
|
@@ -134,7 +141,7 @@ Excerpt — not a complete module
|
|
|
134
141
|
|
|
135
142
|
### Space, a rule, or a surface
|
|
136
143
|
|
|
137
|
-
Three sections on the page’s sunken canvas: separated by the
|
|
144
|
+
Three sections on the page’s sunken canvas: separated by the family’s own spacing and the label alone, by a divider under the header, and by a surface with an edge and a radius — no shadow, no hover, because a section is not a card.
|
|
138
145
|
|
|
139
146
|
Excerpt — not a complete module
|
|
140
147
|
|
|
@@ -154,7 +161,7 @@ Excerpt — not a complete module
|
|
|
154
161
|
|
|
155
162
|
### A section inside a section
|
|
156
163
|
|
|
157
|
-
The fleet, its heavy vehicles, the tractors: three depths, three ranks, and
|
|
164
|
+
The fleet, its heavy vehicles, the tractors: three depths, three ranks. The outer heading is a label in small capitals; the inner ones are mixed case in the muted tone, the level read in case, size and tone. Every other rule reaches its part with a child combinator, so the outer header styles nothing else of the inner one.
|
|
158
165
|
|
|
159
166
|
Excerpt — not a complete module
|
|
160
167
|
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"condense": [
|
|
20
20
|
"none",
|
|
21
21
|
"icons"
|
|
22
|
+
],
|
|
23
|
+
"variant": [
|
|
24
|
+
"track",
|
|
25
|
+
"underline"
|
|
22
26
|
]
|
|
23
27
|
},
|
|
24
28
|
"members": {
|
|
@@ -29,7 +33,8 @@
|
|
|
29
33
|
"orientation": "horizontal",
|
|
30
34
|
"condense": "none",
|
|
31
35
|
"fullWidth": false,
|
|
32
|
-
"disabled": false
|
|
36
|
+
"disabled": false,
|
|
37
|
+
"variant": "track"
|
|
33
38
|
},
|
|
34
39
|
"capabilities": [
|
|
35
40
|
"selection",
|
|
@@ -143,6 +148,13 @@
|
|
|
143
148
|
"appliesTo": "SegmentedControl",
|
|
144
149
|
"description": "How the segments flow and which way the thumb travels. A horizontal set writes aria-orientation, because radiogroup already implies vertical"
|
|
145
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"name": "variant",
|
|
153
|
+
"type": "'track' | 'underline'",
|
|
154
|
+
"defaultValue": "track",
|
|
155
|
+
"appliesTo": "SegmentedControl",
|
|
156
|
+
"description": "How the choice is drawn: a track with a thumb, or the words alone with the chosen one underlined"
|
|
157
|
+
},
|
|
146
158
|
{
|
|
147
159
|
"name": "condense",
|
|
148
160
|
"type": "'none' | 'icons'",
|
|
@@ -268,14 +280,12 @@
|
|
|
268
280
|
}
|
|
269
281
|
},
|
|
270
282
|
"tokens": [
|
|
271
|
-
"--slotted-border-
|
|
272
|
-
"--slotted-control-border-color",
|
|
283
|
+
"--slotted-border-width-thick",
|
|
273
284
|
"--slotted-control-border-width",
|
|
274
285
|
"--slotted-control-font-family",
|
|
275
286
|
"--slotted-control-font-size-lg",
|
|
276
287
|
"--slotted-control-font-size-md",
|
|
277
288
|
"--slotted-control-font-size-sm",
|
|
278
|
-
"--slotted-control-font-weight",
|
|
279
289
|
"--slotted-control-gap-lg",
|
|
280
290
|
"--slotted-control-gap-md",
|
|
281
291
|
"--slotted-control-gap-sm",
|
|
@@ -292,8 +302,6 @@
|
|
|
292
302
|
"--slotted-control-padding-inline-md",
|
|
293
303
|
"--slotted-control-padding-inline-sm",
|
|
294
304
|
"--slotted-control-radius",
|
|
295
|
-
"--slotted-control-shadow",
|
|
296
|
-
"--slotted-control-surface",
|
|
297
305
|
"--slotted-control-transition-duration",
|
|
298
306
|
"--slotted-control-transition-easing",
|
|
299
307
|
"--slotted-disabled-background",
|
|
@@ -304,7 +312,10 @@
|
|
|
304
312
|
"--slotted-easing-standard",
|
|
305
313
|
"--slotted-focus-ring-color",
|
|
306
314
|
"--slotted-focus-ring-color-invalid",
|
|
315
|
+
"--slotted-focus-ring-offset",
|
|
307
316
|
"--slotted-focus-ring-width",
|
|
317
|
+
"--slotted-font-weight-medium",
|
|
318
|
+
"--slotted-radius-full",
|
|
308
319
|
"--slotted-radius-xs",
|
|
309
320
|
"--slotted-segmented-control-active-background",
|
|
310
321
|
"--slotted-segmented-control-background",
|
|
@@ -315,24 +326,29 @@
|
|
|
315
326
|
"--slotted-segmented-control-disabled-color",
|
|
316
327
|
"--slotted-segmented-control-disabled-indicator-background",
|
|
317
328
|
"--slotted-segmented-control-divider-color",
|
|
329
|
+
"--slotted-segmented-control-font-weight",
|
|
330
|
+
"--slotted-segmented-control-gap",
|
|
318
331
|
"--slotted-segmented-control-hover-background",
|
|
319
332
|
"--slotted-segmented-control-indicator-background",
|
|
320
333
|
"--slotted-segmented-control-indicator-border-color",
|
|
334
|
+
"--slotted-segmented-control-indicator-shadow",
|
|
321
335
|
"--slotted-segmented-control-inset",
|
|
322
336
|
"--slotted-segmented-control-invalid-border-color",
|
|
323
337
|
"--slotted-segmented-control-invalid-edge-width",
|
|
324
338
|
"--slotted-segmented-control-invalid-focus-ring-color",
|
|
325
339
|
"--slotted-segmented-control-radius",
|
|
326
340
|
"--slotted-segmented-control-shadow",
|
|
341
|
+
"--slotted-segmented-control-underline-checked-color",
|
|
342
|
+
"--slotted-segmented-control-underline-color",
|
|
343
|
+
"--slotted-segmented-control-underline-gap",
|
|
344
|
+
"--slotted-shadow-xs",
|
|
327
345
|
"--slotted-space-1",
|
|
346
|
+
"--slotted-space-6",
|
|
347
|
+
"--slotted-surface-raised",
|
|
328
348
|
"--slotted-target-min",
|
|
329
349
|
"--slotted-text",
|
|
330
|
-
"--slotted-
|
|
331
|
-
"--slotted-tone-
|
|
332
|
-
"--slotted-tone-accent-text",
|
|
333
|
-
"--slotted-tone-danger-border",
|
|
334
|
-
"--slotted-tone-secondary-subtle-active",
|
|
335
|
-
"--slotted-tone-secondary-subtle-hover"
|
|
350
|
+
"--slotted-text-muted",
|
|
351
|
+
"--slotted-tone-danger-border"
|
|
336
352
|
],
|
|
337
353
|
"examples": [
|
|
338
354
|
{
|
|
@@ -375,6 +391,14 @@
|
|
|
375
391
|
"source": "<SegmentedControl aria-label=\"Alinhamento\" defaultValue=\"center\">\n <Segment aria-label=\"Início\" icon={<AlignStartIcon />} value=\"start\" />\n <Segment aria-label=\"Centro\" icon={<AlignCenterIcon />} value=\"center\" />\n</SegmentedControl>;\n",
|
|
376
392
|
"verdict": "excerpt"
|
|
377
393
|
},
|
|
394
|
+
{
|
|
395
|
+
"id": "variants",
|
|
396
|
+
"title": "A track, or the words alone",
|
|
397
|
+
"note": "underline draws the same radio group as words: each as wide as itself, the chosen one in the text colour and underlined, the others muted. One tab stop, the arrows move the value, and inside a field the label names the set.",
|
|
398
|
+
"language": "tsx",
|
|
399
|
+
"source": "<SegmentedControl aria-label=\"Período\" defaultValue=\"month\" variant=\"underline\">\n <Segment value=\"day\">Dia</Segment>\n <Segment value=\"week\">Semana</Segment>\n <Segment value=\"month\">Mês</Segment>\n</SegmentedControl>;\n",
|
|
400
|
+
"verdict": "excerpt"
|
|
401
|
+
},
|
|
378
402
|
{
|
|
379
403
|
"id": "condense",
|
|
380
404
|
"title": "Narrower than its words",
|
|
@@ -41,6 +41,7 @@ Excerpt — not a complete module
|
|
|
41
41
|
| `name` | `string` | — | SegmentedControl | The submission name the segments share, and the reason the platform treats them as one radio group. Generated when none is written, and the cost is that such a control submits under a generated key |
|
|
42
42
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | SegmentedControl | The control step. The track measures its segments back from it, so the whole control is exactly as tall as the field beside it |
|
|
43
43
|
| `orientation` | `'horizontal' \| 'vertical'` | horizontal | SegmentedControl | How the segments flow and which way the thumb travels. A horizontal set writes aria-orientation, because radiogroup already implies vertical |
|
|
44
|
+
| `variant` | `'track' \| 'underline'` | track | SegmentedControl | How the choice is drawn: a track with a thumb, or the words alone with the chosen one underlined |
|
|
44
45
|
| `condense` | `'none' \| 'icons'` | none | SegmentedControl | What the control does when it is narrower than its labels need. icons keeps the marks and hides the words, and makes the control take its parent’s width so there is a width to ask a question about |
|
|
45
46
|
| `fullWidth` | `boolean` | false | SegmentedControl | Whether the equal columns spread across the whole line. Left alone every column is the widest label’s |
|
|
46
47
|
| `disabled` | `boolean` | false | SegmentedControl | Unstated rather than false, so the control defers to the field around it. Stated, it reaches every radio as the native attribute, which is also what makes the browser skip it with the arrows |
|
|
@@ -70,6 +71,7 @@ Excerpt — not a complete module
|
|
|
70
71
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
71
72
|
| `orientation` | `horizontal`, `vertical` | `horizontal` |
|
|
72
73
|
| `condense` | `none`, `icons` | `none` |
|
|
74
|
+
| `variant` | `track`, `underline` | `track` |
|
|
73
75
|
|
|
74
76
|
## Rules
|
|
75
77
|
|
|
@@ -83,7 +85,7 @@ Excerpt — not a complete module
|
|
|
83
85
|
|
|
84
86
|
## Tokens
|
|
85
87
|
|
|
86
|
-
`--slotted-border-
|
|
88
|
+
`--slotted-border-width-thick`, `--slotted-control-border-width`, `--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-invalid-edge-width`, `--slotted-control-letter-spacing`, `--slotted-control-line-height`, `--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-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-medium`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-radius-full`, `--slotted-radius-xs`, `--slotted-segmented-control-active-background`, `--slotted-segmented-control-background`, `--slotted-segmented-control-border-color`, `--slotted-segmented-control-checked-color`, `--slotted-segmented-control-color`, `--slotted-segmented-control-disabled-border-color`, `--slotted-segmented-control-disabled-color`, `--slotted-segmented-control-disabled-indicator-background`, `--slotted-segmented-control-divider-color`, `--slotted-segmented-control-font-weight`, `--slotted-segmented-control-gap`, `--slotted-segmented-control-hover-background`, `--slotted-segmented-control-indicator-background`, `--slotted-segmented-control-indicator-border-color`, `--slotted-segmented-control-indicator-shadow`, `--slotted-segmented-control-inset`, `--slotted-segmented-control-invalid-border-color`, `--slotted-segmented-control-invalid-edge-width`, `--slotted-segmented-control-invalid-focus-ring-color`, `--slotted-segmented-control-radius`, `--slotted-segmented-control-shadow`, `--slotted-segmented-control-underline-checked-color`, `--slotted-segmented-control-underline-color`, `--slotted-segmented-control-underline-gap`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-danger-border`
|
|
87
89
|
|
|
88
90
|
## Examples
|
|
89
91
|
|
|
@@ -143,6 +145,20 @@ Excerpt — not a complete module
|
|
|
143
145
|
</SegmentedControl>;
|
|
144
146
|
```
|
|
145
147
|
|
|
148
|
+
### A track, or the words alone
|
|
149
|
+
|
|
150
|
+
underline draws the same radio group as words: each as wide as itself, the chosen one in the text colour and underlined, the others muted. One tab stop, the arrows move the value, and inside a field the label names the set.
|
|
151
|
+
|
|
152
|
+
Excerpt — not a complete module
|
|
153
|
+
|
|
154
|
+
```tsx
|
|
155
|
+
<SegmentedControl aria-label="Período" defaultValue="month" variant="underline">
|
|
156
|
+
<Segment value="day">Dia</Segment>
|
|
157
|
+
<Segment value="week">Semana</Segment>
|
|
158
|
+
<Segment value="month">Mês</Segment>
|
|
159
|
+
</SegmentedControl>;
|
|
160
|
+
```
|
|
161
|
+
|
|
146
162
|
### Narrower than its words
|
|
147
163
|
|
|
148
164
|
Below the width its labels need, a control told to condense keeps its marks and hides its words — hidden, never removed, so every segment is announced the same at every width.
|
package/dist/docs/select.json
CHANGED
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
"type": "SelectItems",
|
|
484
484
|
"defaultValue": "—",
|
|
485
485
|
"appliesTo": "Select",
|
|
486
|
-
"description": "Values with their labels,
|
|
486
|
+
"description": "Values with their labels, read before any option renders. Without it, a held value takes its label from its SelectItem: while the list is closed and a held value has no label, the options render once outside the document and register theirs. Pass items when the options are not rendered until the list opens, such as options fetched on open."
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
"name": "name",
|
|
@@ -861,6 +861,7 @@
|
|
|
861
861
|
"--slotted-border-width-thin",
|
|
862
862
|
"--slotted-control-border-color",
|
|
863
863
|
"--slotted-control-border-width",
|
|
864
|
+
"--slotted-control-focus-ring-offset",
|
|
864
865
|
"--slotted-control-font-family",
|
|
865
866
|
"--slotted-control-font-size-lg",
|
|
866
867
|
"--slotted-control-font-size-md",
|
|
@@ -915,6 +916,7 @@
|
|
|
915
916
|
"--slotted-select-background",
|
|
916
917
|
"--slotted-select-border-color",
|
|
917
918
|
"--slotted-select-color",
|
|
919
|
+
"--slotted-select-content-backdrop-filter",
|
|
918
920
|
"--slotted-select-content-border-color",
|
|
919
921
|
"--slotted-select-content-padding-block",
|
|
920
922
|
"--slotted-select-content-padding-inline",
|
package/dist/docs/select.md
CHANGED
|
@@ -100,7 +100,7 @@ export default function SelectBasic() {
|
|
|
100
100
|
| `defaultOpen` | `boolean` | false | Select | Whether an uncontrolled select starts open. |
|
|
101
101
|
| `highlightedValue` | `string \| null` | — | Select | The highlighted option. Passing it makes the highlight controlled. The highlight is where the keyboard is, not what is chosen. |
|
|
102
102
|
| `defaultHighlightedValue` | `string \| null` | — | Select | The option an uncontrolled highlight starts on. |
|
|
103
|
-
| `items` | `SelectItems` | — | Select | Values with their labels,
|
|
103
|
+
| `items` | `SelectItems` | — | Select | Values with their labels, read before any option renders. Without it, a held value takes its label from its SelectItem: while the list is closed and a held value has no label, the options render once outside the document and register theirs. Pass items when the options are not rendered until the list opens, such as options fetched on open. |
|
|
104
104
|
| `name` | `string` | — | Select | The name the value is submitted under. It renders a hidden native select, which FormData reads and a form reset restores. |
|
|
105
105
|
| `form` | `string` | — | Select | The id of the form the control belongs to, when it is not the enclosing form. |
|
|
106
106
|
| `total` | `number` | — | Select | The size of the whole collection when only part of it is rendered. Options with position then carry aria-setsize and aria-posinset. |
|
|
@@ -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-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
|
|
|
@@ -429,6 +429,7 @@
|
|
|
429
429
|
"--slotted-app-shell-row-inset",
|
|
430
430
|
"--slotted-app-shell-row-line-height",
|
|
431
431
|
"--slotted-app-shell-row-mark",
|
|
432
|
+
"--slotted-app-shell-row-ring-inset",
|
|
432
433
|
"--slotted-border-subtle",
|
|
433
434
|
"--slotted-border-width-thin",
|
|
434
435
|
"--slotted-control-font-family",
|
|
@@ -553,9 +554,9 @@
|
|
|
553
554
|
{
|
|
554
555
|
"id": "current",
|
|
555
556
|
"title": "Where the reader is",
|
|
556
|
-
"note": "value on the root names the destination and a press asks it to move; a link that states current itself wins. The parent of a hidden destination is marked until its group opens, and autoExpand opens it.",
|
|
557
|
+
"note": "value on the root names the destination and a press asks it to move; a link that states current itself wins. The parent of a hidden destination is marked until its group opens, and autoExpand opens it. With a router, usePressSelection paints the press before the route renders: the item is current at once, and the navigation runs after the frame that shows it. A click carrying a modifier key is left to the browser.",
|
|
557
558
|
"language": "tsx",
|
|
558
|
-
"source": "const
|
|
559
|
+
"source": "const { pathname } = useLocation();\nconst navigate = useNavigate();\nconst { selected, select } = usePressSelection(pathname);\n\nconst press = (to: string) => (event: MouseEvent) => {\n if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) {\n return;\n }\n event.preventDefault();\n select(to, () => navigate(to));\n};\n\n<SideNavigation value={selected ?? null}>\n …\n <SideNavigationItem value=\"/orders\">\n <SideNavigationLink href=\"/orders\" onClick={press('/orders')}>\n Orders\n </SideNavigationLink>\n </SideNavigationItem>\n</SideNavigation>;\n",
|
|
559
560
|
"verdict": "excerpt"
|
|
560
561
|
},
|
|
561
562
|
{
|
|
@@ -130,7 +130,7 @@ export default function SideNavigationBasic() {
|
|
|
130
130
|
|
|
131
131
|
## Tokens
|
|
132
132
|
|
|
133
|
-
`--slotted-app-shell-row-font-size`, `--slotted-app-shell-row-gap`, `--slotted-app-shell-row-height`, `--slotted-app-shell-row-inset`, `--slotted-app-shell-row-line-height`, `--slotted-app-shell-row-mark`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--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-transition-duration`, `--slotted-control-transition-easing`, `--slotted-current-edge`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--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-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-shadow-md`, `--slotted-side-navigation-active-background`, `--slotted-side-navigation-color`, `--slotted-side-navigation-current-background`, `--slotted-side-navigation-current-color`, `--slotted-side-navigation-current-description-color`, `--slotted-side-navigation-current-edge`, `--slotted-side-navigation-description-color`, `--slotted-side-navigation-description-gap`, `--slotted-side-navigation-dot-color`, `--slotted-side-navigation-dot-size`, `--slotted-side-navigation-flyout-border-color`, `--slotted-side-navigation-flyout-measure`, `--slotted-side-navigation-flyout-min-measure`, `--slotted-side-navigation-flyout-radius`, `--slotted-side-navigation-flyout-shadow`, `--slotted-side-navigation-flyout-surface`, `--slotted-side-navigation-guide-color`, `--slotted-side-navigation-hover-background`, `--slotted-side-navigation-hover-color`, `--slotted-side-navigation-indent`, `--slotted-side-navigation-indent-step`, `--slotted-side-navigation-radius`, `--slotted-side-navigation-row-gap`, `--slotted-side-navigation-section-color`, `--slotted-side-navigation-section-gap`, `--slotted-side-navigation-section-label-gap`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
133
|
+
`--slotted-app-shell-row-font-size`, `--slotted-app-shell-row-gap`, `--slotted-app-shell-row-height`, `--slotted-app-shell-row-inset`, `--slotted-app-shell-row-line-height`, `--slotted-app-shell-row-mark`, `--slotted-app-shell-row-ring-inset`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--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-transition-duration`, `--slotted-control-transition-easing`, `--slotted-current-edge`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--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-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-shadow-md`, `--slotted-side-navigation-active-background`, `--slotted-side-navigation-color`, `--slotted-side-navigation-current-background`, `--slotted-side-navigation-current-color`, `--slotted-side-navigation-current-description-color`, `--slotted-side-navigation-current-edge`, `--slotted-side-navigation-description-color`, `--slotted-side-navigation-description-gap`, `--slotted-side-navigation-dot-color`, `--slotted-side-navigation-dot-size`, `--slotted-side-navigation-flyout-border-color`, `--slotted-side-navigation-flyout-measure`, `--slotted-side-navigation-flyout-min-measure`, `--slotted-side-navigation-flyout-radius`, `--slotted-side-navigation-flyout-shadow`, `--slotted-side-navigation-flyout-surface`, `--slotted-side-navigation-guide-color`, `--slotted-side-navigation-hover-background`, `--slotted-side-navigation-hover-color`, `--slotted-side-navigation-indent`, `--slotted-side-navigation-indent-step`, `--slotted-side-navigation-radius`, `--slotted-side-navigation-row-gap`, `--slotted-side-navigation-section-color`, `--slotted-side-navigation-section-gap`, `--slotted-side-navigation-section-label-gap`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
134
134
|
|
|
135
135
|
## Examples
|
|
136
136
|
|
|
@@ -272,15 +272,30 @@ Excerpt — not a complete module
|
|
|
272
272
|
|
|
273
273
|
### Where the reader is
|
|
274
274
|
|
|
275
|
-
value on the root names the destination and a press asks it to move; a link that states current itself wins. The parent of a hidden destination is marked until its group opens, and autoExpand opens it.
|
|
275
|
+
value on the root names the destination and a press asks it to move; a link that states current itself wins. The parent of a hidden destination is marked until its group opens, and autoExpand opens it. With a router, usePressSelection paints the press before the route renders: the item is current at once, and the navigation runs after the frame that shows it. A click carrying a modifier key is left to the browser.
|
|
276
276
|
|
|
277
277
|
Excerpt — not a complete module
|
|
278
278
|
|
|
279
279
|
```tsx
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
const { pathname } = useLocation();
|
|
281
|
+
const navigate = useNavigate();
|
|
282
|
+
const { selected, select } = usePressSelection(pathname);
|
|
283
|
+
|
|
284
|
+
const press = (to: string) => (event: MouseEvent) => {
|
|
285
|
+
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
event.preventDefault();
|
|
289
|
+
select(to, () => navigate(to));
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
<SideNavigation value={selected ?? null}>
|
|
283
293
|
…
|
|
294
|
+
<SideNavigationItem value="/orders">
|
|
295
|
+
<SideNavigationLink href="/orders" onClick={press('/orders')}>
|
|
296
|
+
Orders
|
|
297
|
+
</SideNavigationLink>
|
|
298
|
+
</SideNavigationItem>
|
|
284
299
|
</SideNavigation>;
|
|
285
300
|
```
|
|
286
301
|
|