@slotted/react 0.1.0-beta.41 → 0.1.0-beta.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accordion-n5D6mcmS.js → accordion-xW-aFeGb.js} +1 -1
- package/dist/accordion.js +1 -1
- package/dist/{action-bar-Cq4dt4hP.js → action-bar-BSUuY6pJ.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-dNnB26br.js → action-sheet-BouG2qh_.js} +1 -1
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-DyPHYe4K.js → app-shell-DsWhsSMU.js} +128 -111
- package/dist/app-shell.js +2 -2
- package/dist/attachment-TZykYNu5.js +300 -0
- package/dist/attachment.js +2 -2
- package/dist/{avatar-group-bJaZE1_C.js → avatar-group-Bzmmj2HI.js} +2 -1
- package/dist/avatar-group.js +1 -1
- package/dist/{calendar-DRuJ7z0H.js → calendar-YQ784o4d.js} +139 -123
- package/dist/calendar.js +1 -1
- package/dist/{carousel-B9nMK7Yf.js → carousel-CRNz-T3g.js} +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{cascader-CivJ76VR.js → cascader-fq8fNWSr.js} +1 -1
- package/dist/cascader.js +1 -1
- package/dist/{chart-CgXbG6gZ.js → chart-vedR0BDN.js} +1 -1
- package/dist/chart.js +1 -1
- package/dist/{checkbox-D3E4gzMe.js → checkbox-DsJhlB5c.js} +3 -3
- package/dist/{checkbox-group-Dg5YN3fx.js → checkbox-group-pvX9R_yS.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{collapsible-CT4_3aXm.js → collapsible-KzBs5HvA.js} +2 -2
- package/dist/collapsible.js +1 -1
- package/dist/{color-picker-CeOl4ikV.js → color-picker-i-MJ5VVs.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CnOhzVGP.js → column-manager-D028QbfO.js} +5 -5
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-C2qlkTw6.js → combobox-599heRN_.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-C90CzfQi.js → command-palette-Bgf5tfCI.js} +160 -156
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-WiKS4Zwv.js → context-menu-WM_tT9hz.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-LAawS9qo.js → currency-field-rS36pjCO.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-Zzqmbzqq.js → dashboard-grid-Dh2Q3IQv.js} +2 -2
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Y5aX9njc.js → data-grid-DUft3rJb.js} +17 -17
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-CyEq7M2D.js → data-list-Dv3orBtf.js} +17 -17
- package/dist/data-list.js +1 -1
- package/dist/{date-field-CxubN_3u.js → date-field-BZ5JcvXJ.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-6hj83x5D.js → date-picker-BvEbsbJC.js} +4 -4
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-CBWnFTgL.js → date-range-picker-uIr-yReE.js} +5 -5
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-GMIqBuTa.js → datetime-field-DDs3mV9Z.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-DwUYd3zF.js → datetime-picker-DDYXqrjm.js} +6 -6
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-CX_tBt6b.js → datetime-range-picker-CFTHW771.js} +6 -6
- package/dist/datetime-range-picker.js +1 -1
- package/dist/detail-panel-Cke3ZFU3.js +342 -0
- package/dist/detail-panel.js +2 -2
- package/dist/docs/accordion.examples.md +743 -0
- package/dist/docs/accordion.json +84 -28
- package/dist/docs/accordion.md +56 -152
- package/dist/docs/action-bar.examples.md +768 -0
- package/dist/docs/action-bar.json +74 -50
- package/dist/docs/action-bar.md +49 -311
- package/dist/docs/action-sheet.examples.md +771 -0
- package/dist/docs/action-sheet.json +91 -51
- package/dist/docs/action-sheet.md +72 -233
- package/dist/docs/app-shell.examples.md +1221 -64
- package/dist/docs/app-shell.json +99 -60
- package/dist/docs/app-shell.md +93 -57
- package/dist/docs/attachment.examples.md +689 -0
- package/dist/docs/attachment.json +69 -37
- package/dist/docs/attachment.md +44 -203
- package/dist/docs/avatar-group.json +111 -23
- package/dist/docs/avatar-group.md +487 -28
- package/dist/docs/breadcrumb.json +64 -16
- package/dist/docs/breadcrumb.md +489 -56
- package/dist/docs/button-group.json +98 -2
- package/dist/docs/button-group.md +411 -8
- package/dist/docs/calendar.examples.md +512 -0
- package/dist/docs/calendar.json +72 -24
- package/dist/docs/calendar.md +18 -147
- package/dist/docs/carousel.examples.md +868 -0
- package/dist/docs/carousel.json +58 -50
- package/dist/docs/carousel.md +66 -300
- package/dist/docs/cascader.examples.md +1269 -0
- package/dist/docs/cascader.json +72 -16
- package/dist/docs/cascader.md +78 -154
- package/dist/docs/chart.examples.md +734 -24
- package/dist/docs/chart.json +93 -13
- package/dist/docs/chart.md +28 -7
- package/dist/docs/clock.json +71 -15
- package/dist/docs/clock.md +326 -21
- package/dist/docs/code-block.json +79 -55
- package/dist/docs/code-block.md +417 -74
- package/dist/docs/collapsible.examples.md +575 -0
- package/dist/docs/collapsible.json +89 -49
- package/dist/docs/collapsible.md +47 -197
- package/dist/docs/color-picker.json +60 -12
- package/dist/docs/color-picker.md +245 -22
- package/dist/docs/column-manager.examples.md +764 -0
- package/dist/docs/column-manager.json +68 -12
- package/dist/docs/column-manager.md +44 -203
- package/dist/docs/command-palette.examples.md +747 -0
- package/dist/docs/command-palette.json +48 -24
- package/dist/docs/command-palette.md +60 -339
- package/dist/docs/context-menu.json +58 -18
- package/dist/docs/context-menu.md +442 -77
- package/dist/docs/currency-field.examples.md +355 -73
- package/dist/docs/currency-field.json +96 -64
- package/dist/docs/currency-field.md +57 -50
- package/dist/docs/dashboard-grid.examples.md +629 -0
- package/dist/docs/dashboard-grid.json +64 -16
- package/dist/docs/dashboard-grid.md +34 -152
- package/dist/docs/data-list.examples.md +1556 -0
- package/dist/docs/data-list.json +58 -18
- package/dist/docs/data-list.md +139 -224
- package/dist/docs/date-field.examples.md +543 -0
- package/dist/docs/date-field.json +64 -24
- package/dist/docs/date-field.md +22 -168
- package/dist/docs/datetime-field.examples.md +699 -0
- package/dist/docs/datetime-field.json +79 -31
- package/dist/docs/datetime-field.md +24 -269
- package/dist/docs/datetime-range-picker.examples.md +682 -0
- package/dist/docs/datetime-range-picker.json +117 -61
- package/dist/docs/datetime-range-picker.md +59 -224
- package/dist/docs/description-list.examples.md +652 -0
- package/dist/docs/description-list.json +49 -25
- package/dist/docs/description-list.md +33 -188
- package/dist/docs/detail-panel.examples.md +1177 -0
- package/dist/docs/detail-panel.json +69 -53
- package/dist/docs/detail-panel.md +114 -324
- package/dist/docs/entity-picker.examples.md +1037 -0
- package/dist/docs/entity-picker.json +66 -18
- package/dist/docs/entity-picker.md +56 -246
- package/dist/docs/event-calendar.examples.md +749 -49
- package/dist/docs/event-calendar.json +46 -22
- package/dist/docs/event-calendar.md +81 -11
- package/dist/docs/field-group.examples.md +554 -0
- package/dist/docs/field-group.json +98 -34
- package/dist/docs/field-group.md +55 -133
- package/dist/docs/field.json +15 -1
- package/dist/docs/field.md +3 -1
- package/dist/docs/filter-bar.examples.md +772 -0
- package/dist/docs/filter-bar.json +41 -25
- package/dist/docs/filter-bar.md +42 -246
- package/dist/docs/floating-panel.json +56 -0
- package/dist/docs/floating-panel.md +329 -8
- package/dist/docs/form.examples.md +579 -0
- package/dist/docs/form.json +87 -39
- package/dist/docs/form.md +53 -177
- package/dist/docs/fullscreen.examples.md +558 -0
- package/dist/docs/fullscreen.json +58 -18
- package/dist/docs/fullscreen.md +50 -169
- package/dist/docs/highlight.json +57 -25
- package/dist/docs/highlight.md +402 -50
- package/dist/docs/hover-card.json +65 -17
- package/dist/docs/hover-card.md +422 -64
- package/dist/docs/icon.json +85 -5
- package/dist/docs/icon.md +401 -10
- package/dist/docs/image.examples.md +670 -0
- package/dist/docs/image.json +44 -28
- package/dist/docs/image.md +24 -176
- package/dist/docs/import-export-center.examples.md +1280 -0
- package/dist/docs/import-export-center.json +67 -27
- package/dist/docs/import-export-center.md +121 -226
- package/dist/docs/list-item.examples.md +769 -0
- package/dist/docs/list-item.json +110 -38
- package/dist/docs/list-item.md +84 -201
- package/dist/docs/listbox.examples.md +858 -0
- package/dist/docs/listbox.json +76 -28
- package/dist/docs/listbox.md +41 -263
- package/dist/docs/loading-overlay.examples.md +577 -0
- package/dist/docs/loading-overlay.json +55 -23
- package/dist/docs/loading-overlay.md +49 -168
- package/dist/docs/markdown.json +79 -55
- package/dist/docs/markdown.md +581 -85
- package/dist/docs/media-viewer.examples.md +1038 -0
- package/dist/docs/media-viewer.json +70 -15
- package/dist/docs/media-viewer.md +84 -135
- package/dist/docs/menu.json +67 -0
- package/dist/docs/menu.md +8 -1
- package/dist/docs/menubar.json +55 -15
- package/dist/docs/menubar.md +488 -42
- package/dist/docs/message-scroller.examples.md +1193 -0
- package/dist/docs/message-scroller.json +41 -17
- package/dist/docs/message-scroller.md +80 -134
- package/dist/docs/message.examples.md +944 -0
- package/dist/docs/message.json +64 -16
- package/dist/docs/message.md +34 -326
- package/dist/docs/meter.json +58 -26
- package/dist/docs/meter.md +312 -32
- package/dist/docs/navigation-menu.examples.md +1107 -0
- package/dist/docs/navigation-menu.json +57 -41
- package/dist/docs/navigation-menu.md +105 -298
- package/dist/docs/notification-center.examples.md +1045 -0
- package/dist/docs/notification-center.json +71 -15
- package/dist/docs/notification-center.md +76 -266
- package/dist/docs/otp-input.examples.md +490 -0
- package/dist/docs/otp-input.json +65 -25
- package/dist/docs/otp-input.md +20 -191
- package/dist/docs/page-header.examples.md +1041 -0
- package/dist/docs/page-header.json +75 -43
- package/dist/docs/page-header.md +79 -291
- package/dist/docs/page.examples.md +633 -0
- package/dist/docs/page.json +48 -16
- package/dist/docs/page.md +62 -129
- package/dist/docs/pagination.json +89 -33
- package/dist/docs/pagination.md +462 -55
- package/dist/docs/popover.json +1 -1
- package/dist/docs/popover.md +1 -1
- package/dist/docs/prompt-composer.examples.md +630 -0
- package/dist/docs/prompt-composer.json +66 -18
- package/dist/docs/prompt-composer.md +35 -161
- package/dist/docs/prose.json +69 -37
- package/dist/docs/prose.md +393 -75
- package/dist/docs/rating.examples.md +525 -0
- package/dist/docs/rating.json +92 -28
- package/dist/docs/rating.md +27 -241
- package/dist/docs/saved-views.examples.md +1108 -0
- package/dist/docs/saved-views.json +53 -21
- package/dist/docs/saved-views.md +86 -171
- package/dist/docs/scroll-area.examples.md +837 -0
- package/dist/docs/scroll-area.json +64 -24
- package/dist/docs/scroll-area.md +57 -140
- package/dist/docs/section.examples.md +676 -0
- package/dist/docs/section.json +68 -20
- package/dist/docs/section.md +39 -162
- package/dist/docs/segmented-control.examples.md +480 -0
- package/dist/docs/segmented-control.json +76 -28
- package/dist/docs/segmented-control.md +20 -191
- package/dist/docs/select.json +55 -1
- package/dist/docs/select.md +7 -2
- package/dist/docs/side-navigation.examples.md +1468 -0
- package/dist/docs/side-navigation.json +53 -53
- package/dist/docs/side-navigation.md +79 -354
- package/dist/docs/slider.examples.md +505 -0
- package/dist/docs/slider.json +91 -51
- package/dist/docs/slider.md +47 -212
- package/dist/docs/sparkline.json +60 -36
- package/dist/docs/sparkline.md +447 -71
- package/dist/docs/split-button.examples.md +509 -0
- package/dist/docs/split-button.json +73 -41
- package/dist/docs/split-button.md +64 -194
- package/dist/docs/splitter.examples.md +921 -0
- package/dist/docs/splitter.json +94 -46
- package/dist/docs/splitter.md +75 -182
- package/dist/docs/stat-card.examples.md +725 -0
- package/dist/docs/stat-card.json +89 -41
- package/dist/docs/stat-card.md +55 -227
- package/dist/docs/status-indicator.json +80 -32
- package/dist/docs/status-indicator.md +409 -65
- package/dist/docs/stepper.json +53 -21
- package/dist/docs/stepper.md +369 -48
- package/dist/docs/table-of-contents.examples.md +550 -0
- package/dist/docs/table-of-contents.json +60 -28
- package/dist/docs/table-of-contents.md +70 -205
- package/dist/docs/tags-input.examples.md +541 -0
- package/dist/docs/tags-input.json +64 -16
- package/dist/docs/tags-input.md +15 -262
- package/dist/docs/time-field.examples.md +587 -0
- package/dist/docs/time-field.json +69 -29
- package/dist/docs/time-field.md +21 -223
- package/dist/docs/time-picker.json +117 -53
- package/dist/docs/time-picker.md +499 -54
- package/dist/docs/time-range-picker.examples.md +750 -0
- package/dist/docs/time-range-picker.json +139 -75
- package/dist/docs/time-range-picker.md +63 -225
- package/dist/docs/timeline.examples.md +617 -0
- package/dist/docs/timeline.json +44 -28
- package/dist/docs/timeline.md +34 -208
- package/dist/docs/toggle-group.examples.md +584 -0
- package/dist/docs/toggle-group.json +84 -20
- package/dist/docs/toggle-group.md +17 -182
- package/dist/docs/toggle.json +93 -37
- package/dist/docs/toggle.md +304 -51
- package/dist/docs/toolbar.json +56 -16
- package/dist/docs/toolbar.md +357 -63
- package/dist/docs/top-navigation.examples.md +1206 -140
- package/dist/docs/top-navigation.json +49 -33
- package/dist/docs/top-navigation.md +87 -36
- package/dist/docs/tour.examples.md +960 -0
- package/dist/docs/tour.json +57 -25
- package/dist/docs/tour.md +60 -244
- package/dist/docs/transfer.examples.md +631 -0
- package/dist/docs/transfer.json +80 -16
- package/dist/docs/transfer.md +41 -170
- package/dist/docs/typography.json +96 -0
- package/dist/docs/typography.md +352 -4
- package/dist/docs/upload.examples.md +555 -53
- package/dist/docs/upload.json +62 -30
- package/dist/docs/upload.md +46 -11
- package/dist/docs/wizard.examples.md +1389 -0
- package/dist/docs/wizard.json +89 -49
- package/dist/docs/wizard.md +122 -263
- package/dist/{drawer-Du1aC1px.js → drawer-CQagePr_.js} +256 -256
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-BwJX0gNJ.js → entity-picker-C78f3Z0o.js} +11 -8
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-DzlL95E4.js → event-calendar-DJPoCi-O.js} +5 -5
- package/dist/event-calendar.js +1 -1
- package/dist/field-C-HRhke0.js +421 -0
- package/dist/{field-group-7zV68b3d.js → field-group-CU0PasvW.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-DMuP5P6e.js → filter-bar-D61wiQFP.js} +11 -11
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CWCSZ5_p.js → hover-card-CTItbEfH.js} +2 -2
- package/dist/hover-card.js +1 -1
- package/dist/{import-export-center-DzAUMTq5.js → import-export-center-mqvmlzwB.js} +45 -37
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +132 -132
- package/dist/{listbox-CWU3DiEt.js → listbox-ZqiJ2yer.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-7wOBMXTl.js → markdown-8CtV4k44.js} +3 -3
- package/dist/markdown.js +1 -1
- package/dist/{media-viewer-zEXcwfEY.js → media-viewer-C_cbuAq-.js} +64 -60
- package/dist/media-viewer.js +2 -2
- package/dist/menu-parts-DXs5YuUA.js +932 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-k8Q4_p9l.js → menubar-CVoAFc6r.js} +2 -2
- package/dist/menubar.js +1 -1
- package/dist/message-P91bEGyV.js +455 -0
- package/dist/message.js +2 -2
- package/dist/{multi-select-DEd_92BC.js → multi-select-Dc2d6dDB.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-BJKoidAE.js → number-field-BQ54hXmk.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Czz9Z6dQ.js → otp-input-DRooqa3f.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-header-DmwBGwlm.js → page-header-jeAIQSZM.js} +103 -108
- package/dist/page-header.js +1 -1
- package/dist/{pagination-D0PUAFYm.js → pagination-BRXuyPzo.js} +1 -1
- package/dist/pagination.js +1 -1
- package/dist/{picker-frame-CT5WNEnw.js → picker-frame-B6sPCP5Y.js} +1 -1
- package/dist/{popover-B2t__iNO.js → popover-1DlOu95x.js} +198 -197
- package/dist/popover.js +1 -1
- package/dist/{prompt-composer-Lsfcz_i9.js → prompt-composer-tYIs39rn.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-_ZRUgcI5.js → radio-group-AW3xcYYh.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-C6AkIIUi.js → rating-h3qdHLNi.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-zM-DxT1F.js → saved-views-nqn0SDXn.js} +4 -4
- package/dist/saved-views.js +1 -1
- package/dist/section-CVTQdWBl.js +216 -0
- package/dist/section.js +2 -2
- package/dist/{segmented-control-D52GeOlS.js → segmented-control-BSMVjukr.js} +3 -3
- package/dist/segmented-control.js +1 -1
- package/dist/select-d448Wkzb.js +1124 -0
- package/dist/select.js +1 -1
- package/dist/{side-navigation-CtZuP87S.js → side-navigation-BQzBxz2B.js} +220 -220
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-DQqQ0skr.js → slider-DQ2CnxTO.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-BYowsA6Q.js → split-button-D4MPKSB2.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-CL3Xe6pV.js → stat-card-BpGZiFbG.js} +12 -14
- package/dist/stat-card.js +1 -1
- package/dist/{stepper-DHdrANZI.js → stepper-Cxb_tHnA.js} +130 -127
- package/dist/stepper.js +2 -2
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/cascader.css +2 -0
- package/dist/styles/chart.css +1 -1
- package/dist/styles/checkbox-group.css +2 -0
- package/dist/styles/checkbox.css +2 -0
- package/dist/styles/color-picker.css +3 -3
- package/dist/styles/column-manager.css +2 -2
- package/dist/styles/combobox.css +2 -0
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +2 -0
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +4 -4
- package/dist/styles/data-list.css +3 -1
- package/dist/styles/date-field.css +2 -0
- package/dist/styles/date-picker.css +3 -1
- package/dist/styles/date-range-picker.css +3 -1
- package/dist/styles/datetime-field.css +2 -0
- package/dist/styles/datetime-picker.css +3 -1
- package/dist/styles/datetime-range-picker.css +3 -1
- package/dist/styles/entity-picker.css +3 -1
- package/dist/styles/event-calendar.css +2 -2
- package/dist/styles/field-group.css +2 -0
- package/dist/styles/field.css +2 -0
- package/dist/styles/filter-bar.css +4 -4
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/hover-card.css +1 -1
- package/dist/styles/import-export-center.css +3 -3
- package/dist/styles/index.css +10 -10
- package/dist/styles/listbox.css +2 -0
- package/dist/styles/markdown.css +2 -0
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +1 -1
- package/dist/styles/multi-select.css +2 -0
- package/dist/styles/number-field.css +2 -0
- package/dist/styles/otp-input.css +2 -0
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/popover.css +1 -1
- package/dist/styles/prompt-composer.css +2 -0
- package/dist/styles/radio-group.css +2 -0
- package/dist/styles/rating.css +2 -0
- package/dist/styles/saved-views.css +3 -3
- package/dist/styles/segmented-control.css +2 -0
- package/dist/styles/select.css +3 -1
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/slider.css +2 -0
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +2 -0
- package/dist/styles/table.css +3 -3
- package/dist/styles/tags-input.css +2 -0
- package/dist/styles/text-field.css +2 -0
- package/dist/styles/textarea.css +2 -0
- package/dist/styles/time-field.css +2 -0
- package/dist/styles/time-picker.css +3 -1
- package/dist/styles/time-range-picker.css +3 -1
- package/dist/styles/toggle-group.css +3 -1
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/transfer.css +2 -0
- package/dist/styles/upload.css +2 -0
- package/dist/styles.css +1 -1
- package/dist/{switch-CcZAVLiW.js → switch-DxMukg7F.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-D4oX9Gvn.js → table-BecApjeD.js} +13 -13
- package/dist/table.js +1 -1
- package/dist/{tags-input-O87zTh7h.js → tags-input-CqCeLtk-.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-Cnjc7LB5.js → text-field-CMOkJ9Z6.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DcA7jwOM.js → textarea-DfqPfXTr.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-BanhrUvf.js → time-field-GyLQsxcc.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Cu1iV039.js → time-picker-CGHPnust.js} +3 -3
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-sdbaFJFN.js → time-range-picker-BMRtAqPy.js} +4 -4
- package/dist/time-range-picker.js +1 -1
- package/dist/{timeline-BiL2CXfn.js → timeline-ZngK6zLC.js} +9 -6
- package/dist/timeline.js +1 -1
- package/dist/{toggle-zDTD5G3H.js → toggle-DSEEtL3Y.js} +7 -2
- package/dist/{toggle-group-D7GQyNQP.js → toggle-group-DZEWkVRo.js} +8 -3
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/{toolbar-DOV4BKY8.js → toolbar-BP7ka6lN.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/top-navigation-YSEQzBhD.js +744 -0
- package/dist/top-navigation.js +2 -2
- package/dist/{transfer-CuLlF_nY.js → transfer-Cv5yQuTN.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +7 -0
- package/dist/types/app-shell/app-shell-parts.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/attachment/attachment-parts.d.ts +24 -11
- package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
- package/dist/types/attachment/attachment.d.ts +3 -3
- package/dist/types/attachment/attachment.d.ts.map +1 -1
- package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/use-clock-today.d.ts +10 -0
- package/dist/types/calendar/use-clock-today.d.ts.map +1 -0
- package/dist/types/carousel/carousel-parts.d.ts +2 -2
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts +10 -3
- 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/detail-panel/detail-panel.types.d.ts +7 -0
- package/dist/types/detail-panel/detail-panel.types.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
- package/dist/types/field/field-defaults.d.ts +1 -1
- package/dist/types/field/field-defaults.d.ts.map +1 -1
- package/dist/types/field/field-help-sheet.d.ts +15 -0
- package/dist/types/field/field-help-sheet.d.ts.map +1 -0
- package/dist/types/field/field-parts.d.ts +1 -1
- package/dist/types/field/field-parts.d.ts.map +1 -1
- package/dist/types/field/field.types.d.ts +11 -0
- package/dist/types/field/field.types.d.ts.map +1 -1
- package/dist/types/field/index.d.ts +1 -1
- package/dist/types/field/index.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/media-viewer/index.d.ts +2 -2
- package/dist/types/media-viewer/index.d.ts.map +1 -1
- package/dist/types/media-viewer/media-viewer-bar.d.ts +3 -1
- package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -1
- package/dist/types/media-viewer/media-viewer.types.d.ts +1 -0
- package/dist/types/media-viewer/media-viewer.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-parts.d.ts.map +1 -1
- package/dist/types/menu/menu-sheet-step.d.ts +6 -0
- package/dist/types/menu/menu-sheet-step.d.ts.map +1 -0
- 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 +15 -0
- package/dist/types/menu/menu.types.d.ts.map +1 -1
- package/dist/types/menu/use-menu-sheet.d.ts +9 -0
- package/dist/types/menu/use-menu-sheet.d.ts.map +1 -0
- package/dist/types/message/message-parts.d.ts +7 -0
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/pagination/pagination-parts.d.ts.map +1 -1
- package/dist/types/picker-panel/picker-layer.d.ts +4 -1
- package/dist/types/picker-panel/picker-layer.d.ts.map +1 -1
- package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +16 -8
- 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/segmented-control-parts.d.ts.map +1 -1
- package/dist/types/select/index.d.ts +1 -1
- package/dist/types/select/index.d.ts.map +1 -1
- package/dist/types/select/select-defaults.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/select/select.d.ts +6 -2
- package/dist/types/select/select.d.ts.map +1 -1
- package/dist/types/select/select.types.d.ts +9 -0
- package/dist/types/select/select.types.d.ts.map +1 -1
- package/dist/types/select/use-select-sheet.d.ts +9 -0
- package/dist/types/select/use-select-sheet.d.ts.map +1 -0
- package/dist/types/side-navigation/side-navigation-parts.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 +3 -3
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper-parts.d.ts +11 -2
- package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/toggle/toggle.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +4 -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.types.d.ts +4 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
- package/dist/{upload-CPl38p-S.js → upload-CuMOaPK3.js} +1 -1
- package/dist/upload.js +1 -1
- package/dist/{use-date-picker-DWV7KWS7.js → use-date-picker-DdSX3RE4.js} +2 -2
- package/dist/{use-picker-draft-BJlHcb6J.js → use-picker-draft-I_pxqYsc.js} +48 -35
- package/dist/{wizard-4c0X7Bx_.js → wizard-Dfryz1id.js} +214 -214
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/attachment-MqczA38F.js +0 -292
- package/dist/detail-panel-EImAtksY.js +0 -327
- package/dist/field-vOVzvq5t.js +0 -368
- package/dist/menu-parts-DgL617_H.js +0 -814
- package/dist/message-D1Dd6Y2k.js +0 -452
- package/dist/section-D_qOfdxR.js +0 -213
- package/dist/select-BkUuIVBK.js +0 -1017
- package/dist/top-navigation-D3rpgBV2.js +0 -744
package/dist/docs/collapsible.md
CHANGED
|
@@ -6,20 +6,34 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```tsx
|
|
9
|
-
import { Collapsible, CollapsibleActions, CollapsibleDefaultsProvider, CollapsibleHeader, CollapsiblePanel, CollapsibleTrigger } from '@slotted/react';
|
|
9
|
+
import { Collapsible, CollapsibleActions, CollapsibleDefaultsProvider, CollapsibleHeader, CollapsibleMore, CollapsiblePanel, CollapsibleTrigger } from '@slotted/react';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Example
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
import {
|
|
18
|
+
Collapsible,
|
|
19
|
+
CollapsibleHeader,
|
|
20
|
+
CollapsiblePanel,
|
|
21
|
+
CollapsibleTrigger,
|
|
22
|
+
} from '@slotted/react/collapsible';
|
|
23
|
+
|
|
24
|
+
export default function CollapsibleBasic() {
|
|
25
|
+
return (
|
|
26
|
+
<Collapsible defaultOpen>
|
|
27
|
+
<CollapsibleHeader>
|
|
28
|
+
<CollapsibleTrigger>Delivery address</CollapsibleTrigger>
|
|
29
|
+
</CollapsibleHeader>
|
|
30
|
+
<CollapsiblePanel>
|
|
31
|
+
Northwind Traders, 402 Maple Street, Seattle, WA 98101. The dock entrance is on the east
|
|
32
|
+
side.
|
|
33
|
+
</CollapsiblePanel>
|
|
34
|
+
</Collapsible>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
23
37
|
```
|
|
24
38
|
|
|
25
39
|
## Anatomy
|
|
@@ -42,33 +56,33 @@ Excerpt — not a complete module
|
|
|
42
56
|
|
|
43
57
|
| Name | Type | Default | Applies to | Description |
|
|
44
58
|
| --- | --- | --- | --- | --- |
|
|
45
|
-
| `open` | `boolean` | — | Collapsible | Present means the consumer owns the state, for the life of the component. Inside an Accordion the set owns it instead, and an explicit open still wins over both |
|
|
46
|
-
| `defaultOpen` | `boolean` | — | Collapsible | The value an uncontrolled disclosure starts from, read once. A later change to it does not silently become new state |
|
|
47
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | Collapsible, Accordion, CollapsibleDefaultsProvider | The step the header sits at. The title comes from the type scale and everything geometric from the control scales, so a density changes the rhythm rather than the reading size |
|
|
48
|
-
| `variant` | `'plain' \| 'ruled' \| 'framed'` | plain | Collapsible, CollapsibleDefaultsProvider | plain paints no chrome, ruled draws a hairline above the header so a stack reads as one list, and framed is its own card. An Accordion hands its items the one its own variant maps onto |
|
|
49
|
-
| `indicator` | `'chevron' \| 'plus-minus' \| 'none'` | chevron | Collapsible, Accordion, CollapsibleDefaultsProvider | The mark, drawn from a glyph token. The chevron turns between down and up rather than pointing along the inline axis, so nothing is mirrored for a right-to-left document |
|
|
50
|
-
| `togglePlacement` | `'end' \| 'start'` | end | Collapsible, Accordion, CollapsibleDefaultsProvider | Which side of the words the mark stands on. With it at the start the panel’s content is indented to line up with the title rather than with the mark |
|
|
51
|
-
| `level` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | none | Collapsible, CollapsibleDefaultsProvider | The heading element the trigger is wrapped in. none renders a div and writes no heading semantics; an Accordion sets it for a whole set through headingLevel |
|
|
52
|
-
| `mount` | `'active' \| 'lazy' \| 'eager' \| 'until-found'` | eager | Collapsible, Accordion, CollapsibleDefaultsProvider | When the panel’s content exists. The box always does, so aria-controls never names an element that is gone. until-found writes hidden="until-found" and answers beforematch by opening |
|
|
53
|
-
| `peek` | `string` | — | Collapsible, CollapsibleDefaultsProvider | A length (9rem): a closed panel keeps that block size of its content in view under a fade, stays inert, and animates to its full size with the same durations; forced colors drop the fade and keep the clip. The panel carries data-state="peek", and mount is forced to eager |
|
|
54
|
-
| `truncate` | `boolean` | false | Collapsible, Accordion, CollapsibleDefaultsProvider | Clips the title to one line instead of letting the row grow. The whole string stays in the DOM, which
|
|
55
|
-
| `region` | `boolean` | false | Collapsible | Makes the panel a region landmark. Off by default, because the pattern’s own example warns that a landmark per panel fills the landmark list |
|
|
56
|
-
| `disabled` | `boolean` | false | Collapsible | Reaches the trigger as the native attribute, which is also what stops the press. Unstated rather than false, so the disclosure defers to the Accordion around it |
|
|
57
|
-
| `loading` | `boolean` | false | Collapsible | The panel keeps a line’s height and carries aria-busy; what stands in for the content is Skeleton, composed by the consumer |
|
|
58
|
-
| `value` | `string` | from useId | Collapsible | What this disclosure is called inside an Accordion. It is identity rather than state, and it reaches the DOM as data-value |
|
|
59
|
-
| `summary` | `ReactNode` | — | CollapsibleTrigger | What the disclosure holds, at the end of the title line and before the mark, cut with an ellipsis; inside the trigger and therefore inside its accessible name |
|
|
60
|
-
| `description` | `ReactNode` | — | CollapsibleTrigger | A second line under the title, inside the trigger and therefore inside its accessible name |
|
|
61
|
-
| `render` | `(props) => ReactNode` | — | Collapsible, CollapsibleHeader, CollapsibleTrigger, CollapsibleActions, CollapsiblePanel | Substitutes any of the five roots and hands it every attribute — a disclosure can be a section, a panel an article. The heading may become another element, but the trigger has to stay its only child |
|
|
62
|
-
| `ref` | `Ref<HTMLElement>` | — | every part | Reaches the element itself, so focus() and click() are the platform’s and no imperative handle is invented for what it already ships |
|
|
63
|
-
| `useCollapsible()` | `() => CollapsibleContextValue` | — | inside Collapsible | What the parts read: the open state, the identifiers, the mount strategy, whether the group holds this one open, and toggle(next, reason). It throws outside
|
|
64
|
-
| `CollapsibleDefaultsProvider` | `{ size, variant, indicator, togglePlacement, level, mount, truncate }` | — | a subtree | The
|
|
59
|
+
| `open` | `boolean` | — | Collapsible | Present means the consumer owns the state, for the life of the component. Inside an Accordion the set owns it instead, and an explicit open still wins over both. |
|
|
60
|
+
| `defaultOpen` | `boolean` | — | Collapsible | The value an uncontrolled disclosure starts from, read once. A later change to it does not silently become new state. |
|
|
61
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | Collapsible, Accordion, CollapsibleDefaultsProvider | The step the header sits at. The title comes from the type scale and everything geometric from the control scales, so a density changes the rhythm rather than the reading size. |
|
|
62
|
+
| `variant` | `'plain' \| 'ruled' \| 'framed'` | plain | Collapsible, CollapsibleDefaultsProvider | plain paints no chrome, ruled draws a hairline above the header so a stack reads as one list, and framed is its own card. An Accordion hands its items the one its own variant maps onto. |
|
|
63
|
+
| `indicator` | `'chevron' \| 'plus-minus' \| 'none'` | chevron | Collapsible, Accordion, CollapsibleDefaultsProvider | The mark, drawn from a glyph token. The chevron turns between down and up rather than pointing along the inline axis, so nothing is mirrored for a right-to-left document. |
|
|
64
|
+
| `togglePlacement` | `'end' \| 'start'` | end | Collapsible, Accordion, CollapsibleDefaultsProvider | Which side of the words the mark stands on. With it at the start the panel’s content is indented to line up with the title rather than with the mark. |
|
|
65
|
+
| `level` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | none | Collapsible, CollapsibleDefaultsProvider | The heading element the trigger is wrapped in. none renders a div and writes no heading semantics; an Accordion sets it for a whole set through headingLevel. |
|
|
66
|
+
| `mount` | `'active' \| 'lazy' \| 'eager' \| 'until-found'` | eager | Collapsible, Accordion, CollapsibleDefaultsProvider | When the panel’s content exists. The box always does, so aria-controls never names an element that is gone. until-found writes hidden="until-found" and answers beforematch by opening. |
|
|
67
|
+
| `peek` | `string` | — | Collapsible, CollapsibleDefaultsProvider | A length (9rem): a closed panel keeps that block size of its content in view under a fade, stays inert, and animates to its full size with the same durations; forced colors drop the fade and keep the clip. The panel carries data-state="peek", and mount is forced to eager. |
|
|
68
|
+
| `truncate` | `boolean` | false | Collapsible, Accordion, CollapsibleDefaultsProvider | Clips the title to one line instead of letting the row grow. The whole string stays in the DOM, which holds for every component. |
|
|
69
|
+
| `region` | `boolean` | false | Collapsible | Makes the panel a region landmark. Off by default, because the pattern’s own example warns that a landmark per panel fills the landmark list. |
|
|
70
|
+
| `disabled` | `boolean` | false | Collapsible | Reaches the trigger as the native attribute, which is also what stops the press. Unstated rather than false, so the disclosure defers to the Accordion around it. |
|
|
71
|
+
| `loading` | `boolean` | false | Collapsible | The panel keeps a line’s height and carries aria-busy; what stands in for the content is Skeleton, composed by the consumer. |
|
|
72
|
+
| `value` | `string` | from useId | Collapsible | What this disclosure is called inside an Accordion. It is identity rather than state, and it reaches the DOM as data-value. |
|
|
73
|
+
| `summary` | `ReactNode` | — | CollapsibleTrigger | What the disclosure holds, at the end of the title line and before the mark, cut with an ellipsis; inside the trigger and therefore inside its accessible name. |
|
|
74
|
+
| `description` | `ReactNode` | — | CollapsibleTrigger | A second line under the title, inside the trigger and therefore inside its accessible name. |
|
|
75
|
+
| `render` | `(props) => ReactNode` | — | Collapsible, CollapsibleHeader, CollapsibleTrigger, CollapsibleActions, CollapsiblePanel | Substitutes any of the five roots and hands it every attribute — a disclosure can be a section, a panel an article. The heading may become another element, but the trigger has to stay its only child. |
|
|
76
|
+
| `ref` | `Ref<HTMLElement>` | — | every part | Reaches the element itself, so focus() and click() are the platform’s and no imperative handle is invented for what it already ships. |
|
|
77
|
+
| `useCollapsible()` | `() => CollapsibleContextValue` | — | inside Collapsible | What the parts read: the open state, the identifiers, the mount strategy, whether the group holds this one open, and toggle(next, reason). It throws outside Collapsible rather than rendering a control that does nothing. |
|
|
78
|
+
| `CollapsibleDefaultsProvider` | `{ size, variant, indicator, togglePlacement, level, mount, peek, truncate }` | — | a subtree | The decisions an application takes once: size, variant, indicator, togglePlacement, level, mount, peek and truncate. An Accordion sits between it and the item, and a disclosure that states any of them itself still wins. |
|
|
65
79
|
|
|
66
80
|
## Events
|
|
67
81
|
|
|
68
82
|
| Name | Payload | When |
|
|
69
83
|
| --- | --- | --- |
|
|
70
84
|
| `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | Before the panel moves. The request carries the new value, the value it replaces, the reason (pointer, keyboard, select or programmatic), the originating event, and cancel(), which refuses the move before anything commits. Inside an Accordion it still fires, so a consumer may watch one panel without unpacking the set’s array. |
|
|
71
|
-
| `onClick, onFocus, onKeyDown, on the trigger` | `the element’s own events` | Whenever the button fires them.
|
|
85
|
+
| `onClick, onFocus, onKeyDown, on the trigger` | `the element’s own events` | Whenever the button fires them. Collapsible composes with a consumer’s handler rather than replacing it: the consumer’s runs first, and preventDefault() in onClick refuses the toggle as well. |
|
|
72
86
|
|
|
73
87
|
## Axes and defaults
|
|
74
88
|
|
|
@@ -83,12 +97,12 @@ Excerpt — not a complete module
|
|
|
83
97
|
|
|
84
98
|
## Rules
|
|
85
99
|
|
|
86
|
-
- The pattern is the WAI-ARIA APG’s Disclosure (w3.org/WAI/ARIA/apg/patterns/disclosure/), and inside an Accordion it answers the Accordion pattern as well. Its whole keyboard table is the platform’s: the trigger is a button, so Enter and Space toggle without
|
|
100
|
+
- The pattern is the WAI-ARIA APG’s Disclosure (w3.org/WAI/ARIA/apg/patterns/disclosure/), and inside an Accordion it answers the Accordion pattern as well. Its whole keyboard table is the platform’s: the trigger is a button, so Enter and Space toggle without Collapsible binding a key, and Tab reaches it like any other control — the pattern requires every focusable element in an accordion to be in the page tab sequence, which is why nothing here writes tabindex.
|
|
87
101
|
- The trigger carries aria-expanded and aria-controls; the panel carries aria-labelledby pointing back. Both identifiers come from useId, so a server response and the first client render agree. The panel’s box is never removed — mount drops its content, not the box — because aria-controls naming an element that is not there is a reference a screen reader has to make sense of.
|
|
88
|
-
- A closed panel is out of the tab sequence and out of the accessibility tree twice over: the stylesheet with content-visibility, and the binding with inert, so a browser without the property still cannot put focus inside it. Under mount="until-found" neither applies: hidden="until-found" is what lets the browser’s page search reach the text and open the panel, and beforematch is what tells
|
|
102
|
+
- A closed panel is out of the tab sequence and out of the accessibility tree twice over: the stylesheet with content-visibility, and the binding with inert, so a browser without the property still cannot put focus inside it. Under mount="until-found" neither applies: hidden="until-found" is what lets the browser’s page search reach the text and open the panel, and beforematch is what tells Collapsible to open.
|
|
89
103
|
- The heading is real. level renders h1 to h6 and the trigger is its only element, which is what the pattern requires; an accordion sets the level once for a whole set. level="none" writes no heading semantics at all, for a disclosure that belongs to no outline.
|
|
90
104
|
- aria-disabled appears on the trigger only when an Accordion refuses to let this panel close. That is the pattern’s own instruction for a set that requires one panel to stay open, and it leaves the control focusable and announced rather than removing it from the reader’s path.
|
|
91
|
-
- The
|
|
105
|
+
- The trigger is a button and the panel a div, rather than details and summary. What that costs is written down: a page with JavaScript disabled cannot open a panel. What it buys is the accordion pattern — a summary cannot be wrapped in a heading — a value the consumer can own, a request that carries a reason, and a panel that animates without interpolate-size.
|
|
92
106
|
- The mark is never the only thing that says the state: aria-expanded says it to a reader, and the indicator turns rather than changing color, so the high-contrast scheme and forced colors both keep it.
|
|
93
107
|
|
|
94
108
|
## Tokens
|
|
@@ -97,168 +111,4 @@ Excerpt — not a complete module
|
|
|
97
111
|
|
|
98
112
|
## Examples
|
|
99
113
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
plain paints no chrome, ruled puts a hairline above the header so a stack reads as one list, and framed is a card. All three keep the same geometry.
|
|
103
|
-
|
|
104
|
-
Excerpt — not a complete module
|
|
105
|
-
|
|
106
|
-
```tsx
|
|
107
|
-
<Collapsible variant="framed" defaultOpen>
|
|
108
|
-
<CollapsibleHeader>
|
|
109
|
-
<CollapsibleTrigger>Payment methods</CollapsibleTrigger>
|
|
110
|
-
</CollapsibleHeader>
|
|
111
|
-
<CollapsiblePanel>Credit card, ACH transfer and Zelle.</CollapsiblePanel>
|
|
112
|
-
</Collapsible>;
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### The step the header sits at
|
|
116
|
-
|
|
117
|
-
The title comes from the type scale, because a header is prose; the row’s height, padding, gap and mark come from the control scales, so a dense page is tighter rather than smaller.
|
|
118
|
-
|
|
119
|
-
Excerpt — not a complete module
|
|
120
|
-
|
|
121
|
-
```tsx
|
|
122
|
-
<Collapsible size="lg" defaultOpen>
|
|
123
|
-
<CollapsibleHeader>
|
|
124
|
-
<CollapsibleTrigger description="3 of 12 items">Summary</CollapsibleTrigger>
|
|
125
|
-
</CollapsibleHeader>
|
|
126
|
-
<CollapsiblePanel>Delivery scheduled for September 12.</CollapsiblePanel>
|
|
127
|
-
</Collapsible>;
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### The mark, and which side it stands on
|
|
131
|
-
|
|
132
|
-
The chevron turns rather than pointing along the inline axis, so a right-to-left document needs no mirrored artwork; plus-minus is one pair drawn on one grid, and none draws nothing.
|
|
133
|
-
|
|
134
|
-
Excerpt — not a complete module
|
|
135
|
-
|
|
136
|
-
```tsx
|
|
137
|
-
<Collapsible indicator="plus-minus" togglePlacement="start">
|
|
138
|
-
<CollapsibleHeader>
|
|
139
|
-
<CollapsibleTrigger>Invoice</CollapsibleTrigger>
|
|
140
|
-
</CollapsibleHeader>
|
|
141
|
-
<CollapsiblePanel>Issued on September 3.</CollapsiblePanel>
|
|
142
|
-
</Collapsible>;
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Where it sits in the outline
|
|
146
|
-
|
|
147
|
-
level renders the heading element itself, so a screen reader’s heading list holds the disclosure at the right depth. none renders a div, for a control that belongs to no outline.
|
|
148
|
-
|
|
149
|
-
Excerpt — not a complete module
|
|
150
|
-
|
|
151
|
-
```tsx
|
|
152
|
-
<Collapsible level="3">
|
|
153
|
-
<CollapsibleHeader>
|
|
154
|
-
<CollapsibleTrigger>Return conditions</CollapsibleTrigger>
|
|
155
|
-
</CollapsibleHeader>
|
|
156
|
-
<CollapsiblePanel>Thirty calendar days.</CollapsiblePanel>
|
|
157
|
-
</Collapsible>;
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### A summary that stays visible
|
|
161
|
-
|
|
162
|
-
The second line is inside the trigger and therefore inside the accessible name, which is what the pattern means by a snippet of the hidden content staying visible.
|
|
163
|
-
|
|
164
|
-
Excerpt — not a complete module
|
|
165
|
-
|
|
166
|
-
```tsx
|
|
167
|
-
<CollapsibleTrigger description="2 regras ativas">Regras de frete</CollapsibleTrigger>;
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### A control beside the heading
|
|
171
|
-
|
|
172
|
-
It is a sibling of the heading rather than a child, because the pattern requires the button to be the only element inside it — and a control inside a button is invalid besides.
|
|
173
|
-
|
|
174
|
-
Excerpt — not a complete module
|
|
175
|
-
|
|
176
|
-
```tsx
|
|
177
|
-
<Collapsible variant="framed" defaultOpen>
|
|
178
|
-
<CollapsibleHeader>
|
|
179
|
-
<CollapsibleTrigger>Regras de frete</CollapsibleTrigger>
|
|
180
|
-
</CollapsibleHeader>
|
|
181
|
-
<CollapsibleActions>
|
|
182
|
-
<Toolbar aria-label="Rule actions" size="sm">
|
|
183
|
-
<Button size="sm" variant="ghost">
|
|
184
|
-
Edit
|
|
185
|
-
</Button>
|
|
186
|
-
</Toolbar>
|
|
187
|
-
</CollapsibleActions>
|
|
188
|
-
<CollapsiblePanel>Free shipping over $250.00.</CollapsiblePanel>
|
|
189
|
-
</Collapsible>;
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### When the content exists
|
|
193
|
-
|
|
194
|
-
eager builds it up front so the panel can transition closed, lazy builds it on the first open, active drops it each time, and until-found lets the browser’s own page search open the panel. A closed item under active commits once and reads no layout and no computed style; it creates no observer and no portal. Fifty closed items inside an Accordion, measured in Chrome: 7 ms of script and 23 ms to layout with a production build of React, 46 ms of script and 83 ms to layout with its development build.
|
|
195
|
-
|
|
196
|
-
Excerpt — not a complete module
|
|
197
|
-
|
|
198
|
-
```tsx
|
|
199
|
-
<Collapsible mount="until-found">
|
|
200
|
-
<CollapsibleHeader>
|
|
201
|
-
<CollapsibleTrigger>Delivery history</CollapsibleTrigger>
|
|
202
|
-
</CollapsibleHeader>
|
|
203
|
-
<CollapsiblePanel>Delivered on September 2 by Anna Rivers.</CollapsiblePanel>
|
|
204
|
-
</Collapsible>;
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Every state the family paints
|
|
208
|
-
|
|
209
|
-
Hover lays a wash under the row and press goes one step further; disabled answers neither, because the browser has already taken the control out of action; loading holds the box open and says so.
|
|
210
|
-
|
|
211
|
-
Excerpt — not a complete module
|
|
212
|
-
|
|
213
|
-
```tsx
|
|
214
|
-
<Collapsible loading defaultOpen mount="lazy">
|
|
215
|
-
<CollapsibleHeader>
|
|
216
|
-
<CollapsibleTrigger>Delivery history</CollapsibleTrigger>
|
|
217
|
-
</CollapsibleHeader>
|
|
218
|
-
<CollapsiblePanel>
|
|
219
|
-
<Skeleton shape="text" />
|
|
220
|
-
</CollapsiblePanel>
|
|
221
|
-
</Collapsible>;
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
### Content the family did not choose
|
|
225
|
-
|
|
226
|
-
A long title grows the row instead of pushing the mark off the line, truncate clips it to one line with the whole string still in the DOM, and a title in another script reads its own way.
|
|
227
|
-
|
|
228
|
-
Excerpt — not a complete module
|
|
229
|
-
|
|
230
|
-
```tsx
|
|
231
|
-
<Collapsible truncate>
|
|
232
|
-
<CollapsibleHeader>
|
|
233
|
-
<CollapsibleTrigger>Return conditions for international orders</CollapsibleTrigger>
|
|
234
|
-
</CollapsibleHeader>
|
|
235
|
-
<CollapsiblePanel>Thirty calendar days.</CollapsiblePanel>
|
|
236
|
-
</Collapsible>;
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
### Setting it once, and reaching past it
|
|
240
|
-
|
|
241
|
-
The provider carries the seven decisions an application takes once, render substitutes every root, and a disclosure nests inside another’s panel without the outer one opening it.
|
|
242
|
-
|
|
243
|
-
Excerpt — not a complete module
|
|
244
|
-
|
|
245
|
-
```tsx
|
|
246
|
-
<CollapsibleDefaultsProvider variant="framed" size="sm">
|
|
247
|
-
<Collapsible>…</Collapsible>
|
|
248
|
-
</CollapsibleDefaultsProvider>;
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### The pattern’s table, and which device asked
|
|
252
|
-
|
|
253
|
-
Enter and Space toggle because the trigger is a button; Tab reaches it like any other control, because the pattern keeps every disclosure in the page tab sequence.
|
|
254
|
-
|
|
255
|
-
Excerpt — not a complete module
|
|
256
|
-
|
|
257
|
-
```tsx
|
|
258
|
-
<Collapsible onOpenChange={(open, request) => report(request.reason)}>
|
|
259
|
-
<CollapsibleHeader>
|
|
260
|
-
<CollapsibleTrigger>With the pointer, then with the keyboard</CollapsibleTrigger>
|
|
261
|
-
</CollapsibleHeader>
|
|
262
|
-
<CollapsiblePanel>The reason changes with the device.</CollapsiblePanel>
|
|
263
|
-
</Collapsible>;
|
|
264
|
-
```
|
|
114
|
+
See [collapsible.examples.md](./collapsible.examples.md).
|
|
@@ -450,8 +450,8 @@
|
|
|
450
450
|
"title": "A field that holds a color",
|
|
451
451
|
"note": "The swatch in the field’s start opens the panel in a popover; the text takes any notation and keeps the one shown. In a Field, the label names the text.",
|
|
452
452
|
"language": "tsx",
|
|
453
|
-
"source": "<Field>\n
|
|
454
|
-
"verdict": "
|
|
453
|
+
"source": "import { ColorField } from '@slotted/react/color-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\n\nconst brand = ['#0F172A', '#DC2626', '#16A34A', '#2563EB'];\n\nexport default function ColorPickerFieldExample() {\n return (\n <Field>\n <FieldLabel>Accent color</FieldLabel>\n <ColorField defaultValue=\"#2563EB\" presets={brand} />\n <FieldDescription>Used for links and buttons in the Northwind storefront.</FieldDescription>\n </Field>\n );\n}\n",
|
|
454
|
+
"verdict": "example"
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
457
|
"id": "panel",
|
|
@@ -466,40 +466,40 @@
|
|
|
466
466
|
"title": "Four notations, one color",
|
|
467
467
|
"note": "The value comes back in the notation shown. Change it in the menu and the value is rewritten; type another notation and it is converted to this one.",
|
|
468
468
|
"language": "tsx",
|
|
469
|
-
"source": "
|
|
470
|
-
"verdict": "
|
|
469
|
+
"source": "import { useState } from 'react';\nimport { ColorPicker } from '@slotted/react/color-picker';\nimport type { ColorFormat } from '@slotted/react/color-picker';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function ColorPickerFormatsExample() {\n const [value, setValue] = useState('#2563EB');\n const [format, setFormat] = useState<ColorFormat>('hex');\n\n return (\n <Stack gap={4}>\n <ColorPicker\n format={format}\n onFormatChange={setFormat}\n onValueChange={setValue}\n value={value}\n />\n <Text size=\"sm\" tone=\"muted\">\n Header background in {format}: {value}\n </Text>\n </Stack>\n );\n}\n",
|
|
470
|
+
"verdict": "example"
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
473
|
"id": "alpha",
|
|
474
474
|
"title": "Opacity",
|
|
475
475
|
"note": "The alpha channel fades the color over the transparency grid, drawn from the theme’s own surfaces. alpha={false} removes it for a color that must be opaque — a brand color, a text color.",
|
|
476
476
|
"language": "tsx",
|
|
477
|
-
"source": "<ColorPicker defaultValue=\"rgb(22 163 74 / 60%)\"
|
|
478
|
-
"verdict": "
|
|
477
|
+
"source": "import { ColorPicker } from '@slotted/react/color-picker';\nimport { Inline } from '@slotted/react/inline';\n\nexport default function ColorPickerAlphaExample() {\n return (\n <Inline gap={5}>\n <ColorPicker defaultValue=\"rgb(22 163 74 / 60%)\" />\n <ColorPicker alpha={false} defaultValue=\"#16A34A\" />\n </Inline>\n );\n}\n",
|
|
478
|
+
"verdict": "example"
|
|
479
479
|
},
|
|
480
480
|
{
|
|
481
481
|
"id": "presets",
|
|
482
482
|
"title": "A palette as one press",
|
|
483
483
|
"note": "The presets are a radio group: arrow keys move and choose. The chosen one is ringed; a value that matches none leaves the first focusable.",
|
|
484
484
|
"language": "tsx",
|
|
485
|
-
"source": "
|
|
486
|
-
"verdict": "
|
|
485
|
+
"source": "import { useState } from 'react';\nimport { ColorPicker } from '@slotted/react/color-picker';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst statusColors = ['#0F172A', '#DC2626', '#F59E0B', '#16A34A', '#2563EB', '#7C3AED'];\n\nexport default function ColorPickerPresetsExample() {\n const [value, setValue] = useState('#F59E0B');\n\n return (\n <Stack gap={4}>\n <ColorPicker onValueChange={setValue} presets={statusColors} value={value} />\n <Text size=\"sm\" tone=\"muted\">\n Label color for the "Delayed" status: {value}\n </Text>\n </Stack>\n );\n}\n",
|
|
486
|
+
"verdict": "example"
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
"id": "contrast",
|
|
490
490
|
"title": "Contrast against the background it will sit on",
|
|
491
491
|
"note": "contrastWith names the background; the panel shows Aa in the color over it, the WCAG ratio and the level in words. An alpha color is composited first, because that is what the reader sees.",
|
|
492
492
|
"language": "tsx",
|
|
493
|
-
"source": "<ColorPicker
|
|
494
|
-
"verdict": "
|
|
493
|
+
"source": "import { ColorPicker } from '@slotted/react/color-picker';\n\nexport default function ColorPickerContrastExample() {\n return <ColorPicker contrastWith=\"#FFFFFF\" defaultValue=\"#64748B\" />;\n}\n",
|
|
494
|
+
"verdict": "example"
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
"id": "states",
|
|
498
498
|
"title": "Disabled, read-only and out of gamut",
|
|
499
499
|
"note": "Disabled greys the color and takes the panel out of the tab order; read-only keeps the sliders focusable and moves nothing; an oklch color outside sRGB is said, never quietly clipped.",
|
|
500
500
|
"language": "tsx",
|
|
501
|
-
"source": "<ColorPicker
|
|
502
|
-
"verdict": "
|
|
501
|
+
"source": "import { ColorPicker } from '@slotted/react/color-picker';\nimport { Inline } from '@slotted/react/inline';\n\nexport default function ColorPickerStatesExample() {\n return (\n <Inline gap={5}>\n <ColorPicker defaultValue=\"#64748B\" disabled />\n <ColorPicker defaultValue=\"#0D9488\" readOnly />\n <ColorPicker defaultValue=\"#DC2626\" invalid />\n </Inline>\n );\n}\n",
|
|
502
|
+
"verdict": "example"
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
"id": "composition",
|
|
@@ -516,6 +516,54 @@
|
|
|
516
516
|
"language": "tsx",
|
|
517
517
|
"source": "<ColorPicker defaultValue=\"#2563EB\" />;\n",
|
|
518
518
|
"verdict": "excerpt"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "basic",
|
|
522
|
+
"title": "basic.tsx",
|
|
523
|
+
"note": null,
|
|
524
|
+
"language": "tsx",
|
|
525
|
+
"source": "import { ColorPicker } from '@slotted/react/color-picker';\n\nexport default function ColorPickerBasicExample() {\n return <ColorPicker defaultValue=\"#2563EB\" />;\n}\n",
|
|
526
|
+
"verdict": "example"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"id": "defaults",
|
|
530
|
+
"title": "defaults.tsx",
|
|
531
|
+
"note": null,
|
|
532
|
+
"language": "tsx",
|
|
533
|
+
"source": "import { ColorField, ColorPicker, ColorPickerDefaultsProvider } from '@slotted/react/color-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\n\nconst palette = ['#0F172A', '#DC2626', '#16A34A', '#2563EB'];\n\nexport default function ColorPickerDefaultsExample() {\n return (\n <ColorPickerDefaultsProvider format=\"hsl\" presets={palette}>\n <Stack gap={5}>\n <Field>\n <FieldLabel>Report cover</FieldLabel>\n <ColorField defaultValue=\"#2563EB\" />\n </Field>\n <ColorPicker defaultValue=\"#16A34A\" />\n </Stack>\n </ColorPickerDefaultsProvider>\n );\n}\n",
|
|
534
|
+
"verdict": "example"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"id": "field-states",
|
|
538
|
+
"title": "field-states.tsx",
|
|
539
|
+
"note": null,
|
|
540
|
+
"language": "tsx",
|
|
541
|
+
"source": "import { ColorField } from '@slotted/react/color-picker';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ColorPickerFieldStatesExample() {\n return (\n <Stack gap={5}>\n <Field invalid required>\n <FieldLabel>Brand color</FieldLabel>\n <ColorField defaultValue=\"#DC2626\" />\n <FieldError>The brand color must reach AA contrast on white.</FieldError>\n </Field>\n <Field readOnly>\n <FieldLabel>Invoice accent</FieldLabel>\n <ColorField defaultValue=\"#0F172A\" />\n <FieldDescription>Set by the finance template.</FieldDescription>\n </Field>\n <Field disabled>\n <FieldLabel>Warehouse label</FieldLabel>\n <ColorField defaultValue=\"#16A34A\" />\n <FieldDescription>Only a warehouse manager can change it.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
|
|
542
|
+
"verdict": "example"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"id": "gamut",
|
|
546
|
+
"title": "gamut.tsx",
|
|
547
|
+
"note": null,
|
|
548
|
+
"language": "tsx",
|
|
549
|
+
"source": "import { ColorPicker } from '@slotted/react/color-picker';\n\nexport default function ColorPickerGamutExample() {\n return <ColorPicker defaultValue=\"oklch(0.9 0.3 150)\" />;\n}\n",
|
|
550
|
+
"verdict": "example"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"id": "open",
|
|
554
|
+
"title": "open.tsx",
|
|
555
|
+
"note": null,
|
|
556
|
+
"language": "tsx",
|
|
557
|
+
"source": "import { useState } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { ColorField } from '@slotted/react/color-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function ColorPickerOpenExample() {\n const [open, setOpen] = useState(false);\n\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Highlight color</FieldLabel>\n <ColorField defaultValue=\"#7C3AED\" onOpenChange={setOpen} open={open} />\n </Field>\n <Inline align=\"center\" gap={3}>\n <Button onClick={() => setOpen(true)} tone=\"secondary\" variant=\"outline\">\n Open the panel\n </Button>\n <Text size=\"sm\" tone=\"muted\">\n The panel is {open ? 'open' : 'closed'}.\n </Text>\n </Inline>\n </Stack>\n );\n}\n",
|
|
558
|
+
"verdict": "example"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"id": "sizes",
|
|
562
|
+
"title": "sizes.tsx",
|
|
563
|
+
"note": null,
|
|
564
|
+
"language": "tsx",
|
|
565
|
+
"source": "import { ColorField } from '@slotted/react/color-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ColorPickerSizesExample() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Chart line (sm)</FieldLabel>\n <ColorField defaultValue=\"#2563EB\" size=\"sm\" />\n </Field>\n <Field>\n <FieldLabel>Chart bar (md)</FieldLabel>\n <ColorField defaultValue=\"#16A34A\" size=\"md\" />\n </Field>\n <Field>\n <FieldLabel>Chart area (lg)</FieldLabel>\n <ColorField defaultValue=\"#F59E0B\" size=\"lg\" />\n </Field>\n <Field>\n <FieldLabel>Chart grid (subtle)</FieldLabel>\n <ColorField defaultValue=\"#94A3B8\" variant=\"subtle\" />\n </Field>\n </Stack>\n );\n}\n",
|
|
566
|
+
"verdict": "example"
|
|
519
567
|
}
|
|
520
568
|
]
|
|
521
569
|
}
|