@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/app-shell.json
CHANGED
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
"nav",
|
|
126
126
|
"nav-rail",
|
|
127
127
|
"nav-header",
|
|
128
|
+
"nav-pinned",
|
|
128
129
|
"nav-body",
|
|
129
130
|
"nav-footer",
|
|
130
131
|
"scrim",
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
"docs": {
|
|
148
149
|
"appShell": {
|
|
149
150
|
"imports": {
|
|
150
|
-
"source": "import {\n AppShell,\n AppShellActions,\n AppShellAside,\n AppShellAsideBody,\n AppShellAsideFooter,\n AppShellAsideHeader,\n AppShellAsideResizer,\n AppShellAsideToggle,\n AppShellBanner,\n AppShellBrand,\n AppShellCenter,\n AppShellDefaultsProvider,\n AppShellFooter,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavFooter,\n AppShellNavHeader,\n AppShellNavRail,\n AppShellNavToggle,\n AppShellProgress,\n} from '@slotted/react';"
|
|
151
|
+
"source": "import {\n AppShell,\n AppShellActions,\n AppShellAside,\n AppShellAsideBody,\n AppShellAsideFooter,\n AppShellAsideHeader,\n AppShellAsideResizer,\n AppShellAsideToggle,\n AppShellBanner,\n AppShellBrand,\n AppShellCenter,\n AppShellDefaultsProvider,\n AppShellFooter,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavFooter,\n AppShellNavHeader,\n AppShellNavPinned,\n AppShellNavRail,\n AppShellNavToggle,\n AppShellProgress,\n} from '@slotted/react/app-shell';"
|
|
151
152
|
},
|
|
152
153
|
"anatomy": [
|
|
153
154
|
{
|
|
@@ -178,7 +179,7 @@
|
|
|
178
179
|
"part": "center",
|
|
179
180
|
"element": "div",
|
|
180
181
|
"required": false,
|
|
181
|
-
"purpose": "The middle of the bar, and the one cluster that grows: a search field, a breadcrumb trail, the route title, tabs. Without it a bar is two clusters and a void
|
|
182
|
+
"purpose": "The middle of the bar, and the one cluster that grows: a search field, a breadcrumb trail, the route title, tabs. Without it a bar is two clusters and a void."
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
185
|
"part": "actions",
|
|
@@ -190,7 +191,7 @@
|
|
|
190
191
|
"part": "nav-toggle",
|
|
191
192
|
"element": "button, or the element render returns",
|
|
192
193
|
"required": false,
|
|
193
|
-
"purpose": "The disclosure control for the navigation region: aria-expanded, aria-controls and the
|
|
194
|
+
"purpose": "The disclosure control for the navigation region: aria-expanded, aria-controls and the shell’s own label, all taken from the shell’s context rather than from where it stands. Draws the panel-open or panel-close Glyph element by state, mirrored by navSide and by direction."
|
|
194
195
|
},
|
|
195
196
|
{
|
|
196
197
|
"part": "nav",
|
|
@@ -210,6 +211,12 @@
|
|
|
210
211
|
"required": false,
|
|
211
212
|
"purpose": "The pinned top of the column: the workspace switcher, the mark. Under primary=\"nav\" it takes the banner’s height, so the workspace and the bar sit on one line."
|
|
212
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"part": "nav-pinned",
|
|
216
|
+
"element": "div",
|
|
217
|
+
"required": false,
|
|
218
|
+
"purpose": "A block of commands between the head and the list — create, search, open a panel — that stays where it is while the list scrolls under it with a hard edge. It takes the list’s inline inset and gutter, so its rows align with the rows below; each command stretches to the row width in the open column and centers on the marks’ axis in the rail."
|
|
219
|
+
},
|
|
213
220
|
{
|
|
214
221
|
"part": "nav-body",
|
|
215
222
|
"element": "div",
|
|
@@ -244,7 +251,7 @@
|
|
|
244
251
|
"part": "aside",
|
|
245
252
|
"element": "aside, or the element render returns",
|
|
246
253
|
"required": false,
|
|
247
|
-
"purpose": "The complementary landmark, carrying the
|
|
254
|
+
"purpose": "The complementary landmark, carrying the shell’s own label. It opens and closes the way the navigation does — a column beside the content or a layer over it, by asideMode — and carries its own data-open, because the root’s is the navigation’s. Closed, it leaves the layout: a pane has no rail."
|
|
248
255
|
},
|
|
249
256
|
{
|
|
250
257
|
"part": "aside-resizer",
|
|
@@ -307,182 +314,182 @@
|
|
|
307
314
|
"type": "boolean",
|
|
308
315
|
"defaultValue": "—",
|
|
309
316
|
"appliesTo": "AppShell",
|
|
310
|
-
"description": "The controlled value of the navigation region. Passing anything but undefined puts the shell in controlled mode for its lifetime, and it then reports and waits rather than moving itself"
|
|
317
|
+
"description": "The controlled value of the navigation region. Passing anything but undefined puts the shell in controlled mode for its lifetime, and it then reports and waits rather than moving itself."
|
|
311
318
|
},
|
|
312
319
|
{
|
|
313
320
|
"name": "defaultNavOpen",
|
|
314
321
|
"type": "boolean",
|
|
315
322
|
"defaultValue": "true",
|
|
316
323
|
"appliesTo": "AppShell",
|
|
317
|
-
"description": "The uncontrolled starting value, read once. A later change to it does not silently become new state"
|
|
324
|
+
"description": "The uncontrolled starting value, read once. A later change to it does not silently become new state."
|
|
318
325
|
},
|
|
319
326
|
{
|
|
320
327
|
"name": "asideOpen",
|
|
321
328
|
"type": "boolean",
|
|
322
329
|
"defaultValue": "—",
|
|
323
330
|
"appliesTo": "AppShell",
|
|
324
|
-
"description": "The controlled value of the secondary pane, under the same rule. A product that opens the pane on a selection passes the selection down as this"
|
|
331
|
+
"description": "The controlled value of the secondary pane, under the same rule. A product that opens the pane on a selection passes the selection down as this."
|
|
325
332
|
},
|
|
326
333
|
{
|
|
327
334
|
"name": "defaultAsideOpen",
|
|
328
335
|
"type": "boolean",
|
|
329
336
|
"defaultValue": "true",
|
|
330
337
|
"appliesTo": "AppShell",
|
|
331
|
-
"description": "The uncontrolled starting value of the pane. A product that projects a pane wants to see it, so the default is open"
|
|
338
|
+
"description": "The uncontrolled starting value of the pane. A product that projects a pane wants to see it, so the default is open."
|
|
332
339
|
},
|
|
333
340
|
{
|
|
334
341
|
"name": "asideExtent",
|
|
335
342
|
"type": "number | undefined",
|
|
336
343
|
"defaultValue": "—",
|
|
337
344
|
"appliesTo": "AppShell",
|
|
338
|
-
"description": "The controlled measure of the pane as a column, as a fraction of the shell’s inline size. Unset, asideSize decides. The pane writes it as --slotted-app-shell-aside-extent in cqi, which the stylesheet reads in the column alone: a layer keeps its step"
|
|
345
|
+
"description": "The controlled measure of the pane as a column, as a fraction of the shell’s inline size. Unset, asideSize decides. The pane writes it as --slotted-app-shell-aside-extent in cqi, which the stylesheet reads in the column alone: a layer keeps its step."
|
|
339
346
|
},
|
|
340
347
|
{
|
|
341
348
|
"name": "defaultAsideExtent",
|
|
342
349
|
"type": "number | undefined",
|
|
343
350
|
"defaultValue": "—",
|
|
344
351
|
"appliesTo": "AppShell",
|
|
345
|
-
"description": "The uncontrolled starting measure, read once. Unset, the pane starts on its asideSize step"
|
|
352
|
+
"description": "The uncontrolled starting measure, read once. Unset, the pane starts on its asideSize step."
|
|
346
353
|
},
|
|
347
354
|
{
|
|
348
355
|
"name": "minAsideExtent",
|
|
349
356
|
"type": "number",
|
|
350
357
|
"defaultValue": "0.16",
|
|
351
358
|
"appliesTo": "AppShell",
|
|
352
|
-
"description": "The smallest fraction of the shell the reader may give the pane, and Home’s target. aria-valuemin is this times a hundred"
|
|
359
|
+
"description": "The smallest fraction of the shell the reader may give the pane, and Home’s target. aria-valuemin is this times a hundred."
|
|
353
360
|
},
|
|
354
361
|
{
|
|
355
362
|
"name": "maxAsideExtent",
|
|
356
363
|
"type": "number",
|
|
357
364
|
"defaultValue": "0.6",
|
|
358
365
|
"appliesTo": "AppShell",
|
|
359
|
-
"description": "The largest fraction, and End’s target. aria-valuemax is this times a hundred"
|
|
366
|
+
"description": "The largest fraction, and End’s target. aria-valuemax is this times a hundred."
|
|
360
367
|
},
|
|
361
368
|
{
|
|
362
369
|
"name": "inset",
|
|
363
370
|
"type": "'none' | undefined",
|
|
364
371
|
"defaultValue": "—",
|
|
365
372
|
"appliesTo": "AppShellAsideBody",
|
|
366
|
-
"description": "none drops the body’s own padding, for content that brings its own inset. Written as data-inset"
|
|
373
|
+
"description": "none drops the body’s own padding, for content that brings its own inset. Written as data-inset."
|
|
367
374
|
},
|
|
368
375
|
{
|
|
369
376
|
"name": "primary",
|
|
370
377
|
"type": "'banner' | 'nav' | 'main'",
|
|
371
378
|
"defaultValue": "banner",
|
|
372
379
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
373
|
-
"description": "Which region reaches the corner. Under nav the navigation spans every row and its head takes the banner’s height so the two marks sit on one line; under main it does too, and the banner stands inside the card that holds the content"
|
|
380
|
+
"description": "Which region reaches the corner. Under nav the navigation spans every row and its head takes the banner’s height so the two marks sit on one line; under main it does too, and the banner stands inside the card that holds the content."
|
|
374
381
|
},
|
|
375
382
|
{
|
|
376
383
|
"name": "canvas",
|
|
377
384
|
"type": "'inset' | 'flush' | 'floating' | 'panel'",
|
|
378
385
|
"defaultValue": "inset",
|
|
379
386
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
380
|
-
"description": "The plane of every region at once. inset: content and pane as cards over a sunken frame. flush: every region edge to edge, seams drawn. floating: the column a card as well. panel: column, content and pane in one card, the bar and the footer on the frame"
|
|
387
|
+
"description": "The plane of every region at once. inset: content and pane as cards over a sunken frame. flush: every region edge to edge, seams drawn. floating: the column a card as well. panel: column, content and pane in one card, the bar and the footer on the frame."
|
|
381
388
|
},
|
|
382
389
|
{
|
|
383
390
|
"name": "navMode",
|
|
384
391
|
"type": "'inline' | 'overlay' | 'auto'",
|
|
385
392
|
"defaultValue": "auto",
|
|
386
393
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
387
|
-
"description": "How the region occupies space. auto is inline at or above 600 pixels of the shell’s own inline size and overlay below it, answered in CSS for the layout and in script for the keyboard"
|
|
394
|
+
"description": "How the region occupies space. auto is inline at or above 600 pixels of the shell’s own inline size and overlay below it, answered in CSS for the layout and in script for the keyboard."
|
|
388
395
|
},
|
|
389
396
|
{
|
|
390
397
|
"name": "asideMode",
|
|
391
398
|
"type": "'inline' | 'overlay' | 'auto'",
|
|
392
399
|
"defaultValue": "auto",
|
|
393
400
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
394
|
-
"description": "How the pane occupies space: the navigation’s pair, resolved on the same width. inline is a column beside the content, or a row under it when there is no room; overlay is a layer from the end the navigation is not on"
|
|
401
|
+
"description": "How the pane occupies space: the navigation’s pair, resolved on the same width. inline is a column beside the content, or a row under it when there is no room; overlay is a layer from the end the navigation is not on."
|
|
395
402
|
},
|
|
396
403
|
{
|
|
397
404
|
"name": "navSide",
|
|
398
405
|
"type": "'start' | 'end'",
|
|
399
406
|
"defaultValue": "start",
|
|
400
407
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
401
|
-
"description": "Which end of the line the region sits at. Logical, so a right-to-left document mirrors the whole frame; the pane sits at the other end, and both controls turn their marks"
|
|
408
|
+
"description": "Which end of the line the region sits at. Logical, so a right-to-left document mirrors the whole frame; the pane sits at the other end, and both controls turn their marks."
|
|
402
409
|
},
|
|
403
410
|
{
|
|
404
411
|
"name": "navSize",
|
|
405
412
|
"type": "'sm' | 'md' | 'lg'",
|
|
406
413
|
"defaultValue": "md",
|
|
407
414
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
408
|
-
"description": "The width of the open region, as a step on the
|
|
415
|
+
"description": "The width of the open region, as a step on the shell’s own scale. A theme retunes the step; nothing retunes a pixel string."
|
|
409
416
|
},
|
|
410
417
|
{
|
|
411
418
|
"name": "asideSize",
|
|
412
419
|
"type": "'sm' | 'md' | 'lg'",
|
|
413
420
|
"defaultValue": "md",
|
|
414
421
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
415
|
-
"description": "The width of the secondary pane, on the same kind of scale"
|
|
422
|
+
"description": "The width of the secondary pane, on the same kind of scale."
|
|
416
423
|
},
|
|
417
424
|
{
|
|
418
425
|
"name": "collapsedTo",
|
|
419
426
|
"type": "'rail' | 'hidden'",
|
|
420
427
|
"defaultValue": "rail",
|
|
421
428
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
422
|
-
"description": "What a closed inline navigation leaves behind. rail keeps a strip the width of a target and keeps the tab order; hidden takes the region out of both. A closed pane always leaves nothing: it has no marks to keep"
|
|
429
|
+
"description": "What a closed inline navigation leaves behind. rail keeps a strip the width of a target and keeps the tab order; hidden takes the region out of both. A closed pane always leaves nothing: it has no marks to keep."
|
|
423
430
|
},
|
|
424
431
|
{
|
|
425
432
|
"name": "scroll",
|
|
426
433
|
"type": "'content' | 'document'",
|
|
427
434
|
"defaultValue": "content",
|
|
428
435
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
429
|
-
"description": "content makes the shell the height it was given, capped at 100dvh, and only the content column and the pane’s body scroll; document lets the shell grow and the banner travel with it"
|
|
436
|
+
"description": "content makes the shell the height it was given, capped at 100dvh, and only the content column and the pane’s body scroll; document lets the shell grow and the banner travel with it."
|
|
430
437
|
},
|
|
431
438
|
{
|
|
432
439
|
"name": "separation",
|
|
433
440
|
"type": "'rule' | 'tone'",
|
|
434
441
|
"defaultValue": "rule",
|
|
435
442
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
436
|
-
"description": "What draws a seam where two regions touch without a gutter. rule is a line; tone is a ground of its own on the chrome regions, with the subtle tones inside them recomputed from it. Where a gutter separates, it draws nothing either way"
|
|
443
|
+
"description": "What draws a seam where two regions touch without a gutter. rule is a line; tone is a ground of its own on the chrome regions, with the subtle tones inside them recomputed from it. Where a gutter separates, it draws nothing either way."
|
|
437
444
|
},
|
|
438
445
|
{
|
|
439
446
|
"name": "modal",
|
|
440
447
|
"type": "boolean",
|
|
441
448
|
"defaultValue": "true",
|
|
442
449
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
443
|
-
"description": "Whether an overlaid region contains focus and makes every other region inert. Only the overlaid modes read it, and it applies to whichever layer is open"
|
|
450
|
+
"description": "Whether an overlaid region contains focus and makes every other region inert. Only the overlaid modes read it, and it applies to whichever layer is open."
|
|
444
451
|
},
|
|
445
452
|
{
|
|
446
453
|
"name": "escape",
|
|
447
454
|
"type": "'close' | 'none'",
|
|
448
455
|
"defaultValue": "close",
|
|
449
456
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
450
|
-
"description": "Whether Escape closes an overlaid region. Registered in the capture phase by @slotted/core/dismissable-layer, so a handler inside the panel runs after the layer has already asked"
|
|
457
|
+
"description": "Whether Escape closes an overlaid region. Registered in the capture phase by @slotted/core/dismissable-layer, so a handler inside the panel runs after the layer has already asked."
|
|
451
458
|
},
|
|
452
459
|
{
|
|
453
460
|
"name": "outsidePress",
|
|
454
461
|
"type": "'close' | 'none'",
|
|
455
462
|
"defaultValue": "close",
|
|
456
463
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
457
|
-
"description": "Whether a press outside an overlaid panel closes it"
|
|
464
|
+
"description": "Whether a press outside an overlaid panel closes it."
|
|
458
465
|
},
|
|
459
466
|
{
|
|
460
467
|
"name": "back",
|
|
461
468
|
"type": "'close' | 'none'",
|
|
462
469
|
"defaultValue": "close",
|
|
463
470
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
464
|
-
"description": "The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one close watcher per modal layer where the browser has CloseWatcher, and one history entry elsewhere, and answers the way back with the reason back"
|
|
471
|
+
"description": "The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one close watcher per modal layer where the browser has CloseWatcher, and one history entry elsewhere, and answers the way back with the reason back."
|
|
465
472
|
},
|
|
466
473
|
{
|
|
467
474
|
"name": "closeOnNavigate",
|
|
468
475
|
"type": "boolean",
|
|
469
476
|
"defaultValue": "true",
|
|
470
477
|
"appliesTo": "AppShell, AppShellDefaultsProvider",
|
|
471
|
-
"description": "Whether a click on an a[href] inside the overlaid navigation closes it, with the reason select — a router’s preventDefault included, an aria-disabled link excluded. Without it a phone costs two taps per destination"
|
|
478
|
+
"description": "Whether a click on an a[href] inside the overlaid navigation closes it, with the reason select — a router’s preventDefault included, an aria-disabled link excluded. Without it a phone costs two taps per destination."
|
|
472
479
|
},
|
|
473
480
|
{
|
|
474
481
|
"name": "messages",
|
|
475
482
|
"type": "Partial<AppShellMessages>",
|
|
476
483
|
"defaultValue": "—",
|
|
477
484
|
"appliesTo": "AppShell",
|
|
478
|
-
"description": "Words laid over the language in force, key by key — aside, close, closeAside, nav, open, openAside, progress, resizeAside, skipToAside, skipToMain, skipToNav: the two regions’ accessible names, the two controls’ labels in each state, the wait’s name, the pane edge’s name, and the three skip links. An aria-label written on the part itself still wins"
|
|
485
|
+
"description": "Words laid over the language in force, key by key — aside, close, closeAside, nav, open, openAside, progress, resizeAside, skipToAside, skipToMain, skipToNav: the two regions’ accessible names, the two controls’ labels in each state, the wait’s name, the pane edge’s name, and the three skip links. An aria-label written on the part itself still wins."
|
|
479
486
|
},
|
|
480
487
|
{
|
|
481
488
|
"name": "loading",
|
|
482
489
|
"type": "boolean",
|
|
483
490
|
"defaultValue": "true",
|
|
484
491
|
"appliesTo": "AppShellProgress",
|
|
485
|
-
"description": "Whether the next page is on its way. The bar appears once it has lasted delay (200 ms), stays at least minDuration (400 ms), and main carries aria-busy for exactly that long. Every other ProgressBar prop but placement passes through — value for a wait that reports its fraction, tone, label, size (sm by default) — and a value set through ProgressIndicatorDefaultsProvider wins over the shell’s timing"
|
|
492
|
+
"description": "Whether the next page is on its way. The bar appears once it has lasted delay (200 ms), stays at least minDuration (400 ms), and main carries aria-busy for exactly that long. Every other ProgressBar prop but placement passes through — value for a wait that reports its fraction, tone, label, size (sm by default) — and a value set through ProgressIndicatorDefaultsProvider wins over the shell’s timing."
|
|
486
493
|
}
|
|
487
494
|
],
|
|
488
495
|
"composition": [
|
|
@@ -491,77 +498,77 @@
|
|
|
491
498
|
"type": "anything",
|
|
492
499
|
"defaultValue": "—",
|
|
493
500
|
"appliesTo": "every region",
|
|
494
|
-
"description": "The
|
|
501
|
+
"description": "The shell owns where a region is drawn, its landmark, its width and its state, and nothing about what is in it. The bar’s three clusters, the column’s three ends, the content, the pane’s three parts and the footer each take whatever an application puts there — its own search, its own account, another family, its own markup."
|
|
495
502
|
},
|
|
496
503
|
{
|
|
497
504
|
"name": "published geometry",
|
|
498
505
|
"type": "--slotted-app-shell-row-*",
|
|
499
506
|
"defaultValue": "—",
|
|
500
507
|
"appliesTo": "anything inside a region",
|
|
501
|
-
"description": "Six numbers the shell publishes for the rows a product brings: row-inset, row-mark, row-gap, row-height, row-font-size and row-line-height.
|
|
508
|
+
"description": "Six numbers the shell publishes for the rows a product brings: row-inset, row-mark, row-gap, row-height, row-font-size and row-line-height. A row that reads them and states nothing of its own keeps a destination’s mark under the control in the bar."
|
|
502
509
|
},
|
|
503
510
|
{
|
|
504
511
|
"name": "custom properties",
|
|
505
512
|
"type": "--slotted-app-shell-*",
|
|
506
513
|
"defaultValue": "—",
|
|
507
514
|
"appliesTo": "the frame or any region",
|
|
508
|
-
"description": "A ground and an ink per region, plus every measure the frame stands on. Each region reads the public name and falls back to the plane’s default, so a property written on the region resolves in the region’s own scope. The full list is under Theme-owned decisions below"
|
|
515
|
+
"description": "A ground and an ink per region, plus every measure the frame stands on. Each region reads the public name and falls back to the plane’s default, so a property written on the region resolves in the region’s own scope. The full list is under Theme-owned decisions below."
|
|
509
516
|
},
|
|
510
517
|
{
|
|
511
518
|
"name": "data-part selectors",
|
|
512
519
|
"type": "[data-ui=\"app-shell\"] [data-part=\"…\"]",
|
|
513
520
|
"defaultValue": "—",
|
|
514
521
|
"appliesTo": "every part",
|
|
515
|
-
"description": "Anything the properties do not reach is one selector away. [data-ui=\"app-shell\"][data-open] is the navigation; [data-part=\"aside\"][data-open] is the pane"
|
|
522
|
+
"description": "Anything the properties do not reach is one selector away. [data-ui=\"app-shell\"][data-open] is the navigation; [data-part=\"aside\"][data-open] is the pane."
|
|
516
523
|
},
|
|
517
524
|
{
|
|
518
525
|
"name": "render",
|
|
519
526
|
"type": "(props) => ReactNode",
|
|
520
527
|
"defaultValue": "—",
|
|
521
528
|
"appliesTo": "every part",
|
|
522
|
-
"description": "Substitutes the rendered element and hands it every attribute, listener and data-* the part had. The skip links, the veil and the portal root are the shell’s own and are not substitutable"
|
|
529
|
+
"description": "Substitutes the rendered element and hands it every attribute, listener and data-* the part had. The skip links, the veil and the portal root are the shell’s own and are not substitutable."
|
|
523
530
|
},
|
|
524
531
|
{
|
|
525
532
|
"name": "ref",
|
|
526
533
|
"type": "Ref<AppShellHandle> on AppShell, Ref<HTMLElement> on every part",
|
|
527
534
|
"defaultValue": "—",
|
|
528
535
|
"appliesTo": "AppShell and its parts",
|
|
529
|
-
"description": "The root exposes a handle — openNav(), closeNav(), openAside(), closeAside(), focusMain() and root — because those are the actions a consumer cannot express declaratively; every part exposes its own element"
|
|
536
|
+
"description": "The root exposes a handle — openNav(), closeNav(), openAside(), closeAside(), focusMain() and root — because those are the actions a consumer cannot express declaratively; every part exposes its own element."
|
|
530
537
|
},
|
|
531
538
|
{
|
|
532
539
|
"name": "useAppShell()",
|
|
533
540
|
"type": "() => AppShellContextValue",
|
|
534
541
|
"defaultValue": "—",
|
|
535
542
|
"appliesTo": "inside AppShell",
|
|
536
|
-
"description": "What a part reads: open, asideOpen, the resolved modes, every axis, the ids, the translator t, setOpen(next, reason) and setAsideOpen(next, reason). Throws outside a shell rather than rendering a div that navigates nothing"
|
|
543
|
+
"description": "What a part reads: open, asideOpen, the resolved modes, every axis, the ids, the translator t, setOpen(next, reason) and setAsideOpen(next, reason). Throws outside a shell rather than rendering a div that navigates nothing."
|
|
537
544
|
},
|
|
538
545
|
{
|
|
539
546
|
"name": "AppShellDefaultsProvider",
|
|
540
547
|
"type": "{ …fourteen axes }",
|
|
541
548
|
"defaultValue": "—",
|
|
542
549
|
"appliesTo": "a subtree",
|
|
543
|
-
"description": "What an application decides once for every route. A shell that states any of them itself still wins"
|
|
550
|
+
"description": "What an application decides once for every route. A shell that states any of them itself still wins."
|
|
544
551
|
},
|
|
545
552
|
{
|
|
546
553
|
"name": "AppShellNavToggle and AppShellAsideToggle anywhere",
|
|
547
554
|
"type": "take their wiring from context",
|
|
548
555
|
"defaultValue": "—",
|
|
549
556
|
"appliesTo": "inside AppShell",
|
|
550
|
-
"description": "id, aria-expanded, aria-controls, the label and the handler come from the shell, so each control can stand in the banner, in its region’s own head or foot, or anywhere else — and there is still exactly one control carrying each state. Where it goes is
|
|
557
|
+
"description": "id, aria-expanded, aria-controls, the label and the handler come from the shell, so each control can stand in the banner, in its region’s own head or foot, or anywhere else — and there is still exactly one control carrying each state. Where it goes is shown in the Rail and Nav rail examples."
|
|
551
558
|
},
|
|
552
559
|
{
|
|
553
560
|
"name": "setPortalContainer",
|
|
554
561
|
"type": "the layer part, named once",
|
|
555
562
|
"defaultValue": "—",
|
|
556
563
|
"appliesTo": "every overlay under the shell",
|
|
557
|
-
"description": "Dialog, Drawer, Menu, Popover, Tooltip and Toast land in the shell’s own layer instead of on the body, which is what keeps an application’s overlays inside the application’s stacking context"
|
|
564
|
+
"description": "Dialog, Drawer, Menu, Popover, Tooltip and Toast land in the shell’s own layer instead of on the body, which is what keeps an application’s overlays inside the application’s stacking context."
|
|
558
565
|
},
|
|
559
566
|
{
|
|
560
567
|
"name": "onClick, onKeyDown, …",
|
|
561
568
|
"type": "composed, never replaced",
|
|
562
569
|
"defaultValue": "—",
|
|
563
570
|
"appliesTo": "every part",
|
|
564
|
-
"description": "A consumer’s own handler runs first; the
|
|
571
|
+
"description": "A consumer’s own handler runs first; the shell acts afterwards and only if the event was not prevented."
|
|
565
572
|
}
|
|
566
573
|
],
|
|
567
574
|
"events": [
|
|
@@ -584,7 +591,7 @@
|
|
|
584
591
|
"accessibility": [
|
|
585
592
|
"The structure is the WAI-ARIA APG’s Landmark Regions (w3.org/WAI/ARIA/apg/practices/landmark-regions/), and every one of the five is earned from the element rather than written as a role: header in the context of the body is banner, nav is navigation, main is main, aside is complementary, footer is contentinfo. The root is a div for exactly that reason — a main inside a sectioning element stops being a landmark, and the shell has to be placeable anywhere.",
|
|
586
593
|
"Both controls are the APG’s Disclosure pattern (w3.org/WAI/ARIA/apg/patterns/disclosure/): real buttons, so Enter and Space activate them natively, carrying aria-expanded and aria-controls pointing at their region. One departure is written and costed: under collapsedTo=\"rail\" the navigation does not disappear, it narrows — aria-expanded is still true or false about the region’s full form, and the region stays in the tab order because a rail whose destinations cannot be reached is not a rail. The pane has no such departure: closed, it leaves the layout and the tab order.",
|
|
587
|
-
"A document with more than one navigation or complementary landmark needs a unique label on each, so both regions carry the
|
|
594
|
+
"A document with more than one navigation or complementary landmark needs a unique label on each, so both regions carry the shell’s strings and a consumer may replace either per instance. Each control’s own name changes with the state — “Open navigation” and “Close navigation”, “Open side panel” and “Close side panel” — because a control whose name never changes leaves the reader to infer the state from aria-expanded alone.",
|
|
588
595
|
"The skip links are written from the regions that rendered and are open, so no link ever points at a target nobody built or the reader closed, and the main link writes tabindex=\"-1\" on main before it moves the focus: without it the browser moves the scroll and leaves the focus behind in Safari and Firefox. Blur or the next pointer press inside removes the attribute, so a click on the content never focuses main.",
|
|
589
596
|
"While an overlaid region is modal, @slotted/core/focus contains the keyboard inside it and returns it to the control that opened it on close, and every region beside it — the banner included — takes inert, so Tab cannot reach them and a screen reader does not read them. The ways out are Escape, the veil, a destination, and whatever control the product put in the panel. Two layers can be open together only with both modes forced, and @slotted/core/dismissable-layer keeps one stack, so Escape reaches the topmost.",
|
|
590
597
|
"The pane’s edge is the APG’s Window Splitter (w3.org/WAI/ARIA/apg/patterns/windowsplitter/): a focusable separator with aria-orientation=\"vertical\", aria-controls pointing at the pane and aria-valuemin, aria-valuemax and aria-valuenow as whole percentages of the shell, named “Resize panel”. ArrowLeft and ArrowRight move it sixteen pixels, sixty-four with Shift, by the direction on the screen — so ArrowLeft grows an end pane and shrinks a start one, mirrored in right-to-left — and Home and End go to the limits.",
|
|
@@ -695,7 +702,7 @@
|
|
|
695
702
|
{
|
|
696
703
|
"id": "anatomy",
|
|
697
704
|
"title": "The frame with nothing in it",
|
|
698
|
-
"note": "Every part the contract declares, drawn as its own name. Everything else
|
|
705
|
+
"note": "Every part the contract declares, drawn as its own name. Everything else in these scenes is a product standing in these boxes; this is the shell on its own — four rows, three columns, one gutter, the card the content stands on, three clusters in the bar, and a pane with a head, a body and a foot.",
|
|
699
706
|
"language": "tsx",
|
|
700
707
|
"source": "<AppShell>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n </AppShellBrand>\n <AppShellCenter>…</AppShellCenter>\n <AppShellActions>…</AppShellActions>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavHeader>…</AppShellNavHeader>\n <AppShellNavBody>…</AppShellNavBody>\n <AppShellNavFooter>…</AppShellNavFooter>\n </AppShellNav>\n <AppShellMain>…</AppShellMain>\n <AppShellAside>\n <AppShellAsideHeader>\n …\n <AppShellAsideToggle />\n </AppShellAsideHeader>\n <AppShellAsideBody>…</AppShellAsideBody>\n <AppShellAsideFooter>…</AppShellAsideFooter>\n </AppShellAside>\n <AppShellFooter>…</AppShellFooter>\n</AppShell>;\n",
|
|
701
708
|
"verdict": "excerpt"
|
|
@@ -705,8 +712,8 @@
|
|
|
705
712
|
"title": "Five regions, five landmarks",
|
|
706
713
|
"note": "Each region is the HTML element that already means what it is, so none of them writes a role: header is banner, nav is navigation, main is main, aside is complementary, footer is contentinfo. The root is a div precisely so that stays true — a main inside an article is not a landmark. Cadence has no pane and no footer, and the landmark list is then exactly three.",
|
|
707
714
|
"language": "tsx",
|
|
708
|
-
"source": "<AppShell
|
|
709
|
-
"verdict": "
|
|
715
|
+
"source": "import {\n AppShell,\n AppShellActions,\n AppShellBanner,\n AppShellBrand,\n AppShellCenter,\n AppShellFooter,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavFooter,\n AppShellNavHeader,\n AppShellNavPinned,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Avatar } from '@slotted/react/avatar';\nimport { Button, IconButton } from '@slotted/react/button';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { TextField } from '@slotted/react/text-field';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellRegionsExample() {\n return (\n <AppShell>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n <AppShellCenter>\n <TextField\n aria-label=\"Search orders\"\n placeholder=\"Search orders\"\n start={\n <Icon>\n <Glyph name=\"search\" />\n </Icon>\n }\n type=\"search\"\n />\n </AppShellCenter>\n <AppShellActions>\n <IconButton aria-label=\"Notifications\" tone=\"secondary\" variant=\"ghost\">\n <Glyph name=\"bell\" />\n </IconButton>\n <Avatar name=\"Maria Chen\" />\n </AppShellActions>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavHeader>Rotterdam warehouse</AppShellNavHeader>\n <AppShellNavPinned>\n <Button>New order</Button>\n </AppShellNavPinned>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n <AppShellNavFooter>\n <Text size=\"sm\" tone=\"muted\">\n Maria Chen, shift lead\n </Text>\n </AppShellNavFooter>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n <AppShellFooter>Northwind Traders, EU region</AppShellFooter>\n </AppShell>\n );\n}\n",
|
|
716
|
+
"verdict": "example"
|
|
710
717
|
},
|
|
711
718
|
{
|
|
712
719
|
"id": "banner",
|
|
@@ -753,8 +760,8 @@
|
|
|
753
760
|
"title": "What a closed region leaves behind",
|
|
754
761
|
"note": "rail keeps a strip one mark column wide with a row’s inset on each side: every destination stays reachable by its mark, the region stays in the tab order, and the column’s own query container is what tells the rows to drop their labels. hidden takes the region out of the layout and the tab order entirely. Under primary=\"nav\" the control stands in the column’s own foot, over the column it moves, and survives the rail.",
|
|
755
762
|
"language": "tsx",
|
|
756
|
-
"source": "
|
|
757
|
-
"verdict": "
|
|
763
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n type AppShellCollapsedTo,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { Segment, SegmentedControl } from '@slotted/react/segmented-control';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellRailExample() {\n const [collapsedTo, setCollapsedTo] = useState<AppShellCollapsedTo>('rail');\n\n return (\n <Stack gap={3}>\n <SegmentedControl\n aria-label=\"Closed navigation\"\n onValueChange={(next) => setCollapsedTo(next as AppShellCollapsedTo)}\n value={collapsedTo}\n >\n <Segment value=\"rail\">Rail</Segment>\n <Segment value=\"hidden\">Hidden</Segment>\n </SegmentedControl>\n <AppShell collapsedTo={collapsedTo} defaultNavOpen={false}>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Reports\n </Heading>\n <Text tone=\"muted\">Margin by warehouse, updated at 06:00.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n </Stack>\n );\n}\n",
|
|
764
|
+
"verdict": "example"
|
|
758
765
|
},
|
|
759
766
|
{
|
|
760
767
|
"id": "navRail",
|
|
@@ -769,16 +776,16 @@
|
|
|
769
776
|
"title": "The pane opens on a selection, and closes from its own head",
|
|
770
777
|
"note": "The pane holds the second open state, under the same shape as the navigation’s: asideOpen, defaultAsideOpen, onAsideOpenChange with a reason. Select a row and the product opens the pane; press the control in the pane’s head, or Escape when it is a layer, and it closes — the content takes the room, because a closed pane leaves no rail. The skip link to the pane exists only while it is open. Drag the pane’s inner edge, or focus it and press the arrows, Home and End: asideExtent is a fraction of the shell between minAsideExtent and maxAsideExtent, and onAsideExtentChange says which hand moved it.",
|
|
771
778
|
"language": "tsx",
|
|
772
|
-
"source": "const [selected, setSelected] = useState<string | undefined>();\n\n<AppShell\n
|
|
773
|
-
"verdict": "
|
|
779
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellAside,\n AppShellAsideBody,\n AppShellAsideFooter,\n AppShellAsideHeader,\n AppShellAsideToggle,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Button } from '@slotted/react/button';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { Inline } from '@slotted/react/inline';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellAsideExample() {\n const [selected, setSelected] = useState<string | undefined>();\n const details: Record<string, string> = {\n 'SH-3101': '12 pallets from Antwerp to Cologne, delivered.',\n 'SH-3102': '18 pallets from Rotterdam to Lyon, due Thursday.',\n 'SH-3103': '6 pallets from Hamburg to Prague, held at customs.',\n };\n\n return (\n <AppShell\n asideOpen={selected !== undefined}\n onAsideOpenChange={(open) => {\n if (!open) setSelected(undefined);\n }}\n >\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Shipments\n </Heading>\n <Inline gap={2}>\n <Button onClick={() => setSelected('SH-3101')} tone=\"secondary\" variant=\"outline\">\n SH-3101\n </Button>\n <Button onClick={() => setSelected('SH-3102')} tone=\"secondary\" variant=\"outline\">\n SH-3102\n </Button>\n <Button onClick={() => setSelected('SH-3103')} tone=\"secondary\" variant=\"outline\">\n SH-3103\n </Button>\n </Inline>\n </Stack>\n </AppShellMain>\n <AppShellAside>\n <AppShellAsideHeader>\n <span>{selected}</span>\n <AppShellAsideToggle />\n </AppShellAsideHeader>\n <AppShellAsideBody>\n <Text>{selected === undefined ? '' : details[selected]}</Text>\n </AppShellAsideBody>\n <AppShellAsideFooter>\n <Button>Reschedule pickup</Button>\n </AppShellAsideFooter>\n </AppShellAside>\n </AppShell>\n );\n}\n",
|
|
780
|
+
"verdict": "example"
|
|
774
781
|
},
|
|
775
782
|
{
|
|
776
783
|
"id": "overlay",
|
|
777
784
|
"title": "The layer, and what it does to the rest",
|
|
778
785
|
"note": "Atrium overlays its navigation at every width. While the layer is modal, the rest of the shell is inert — the banner and its toggle included, exactly as a dialog’s trigger is — and the ways out are Escape, the veil, a destination, and whatever control the product put in the panel. The pane is a layer of its own under the same policies: escape=\"none\" keeps it open on Escape, outsidePress=\"none\" keeps it open on a press outside, modal={false} draws no veil and inerts nothing.",
|
|
779
786
|
"language": "tsx",
|
|
780
|
-
"source": "<AppShell navMode=\"overlay\"
|
|
781
|
-
"verdict": "
|
|
787
|
+
"source": "import {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellOverlayExample() {\n return (\n <AppShell defaultNavOpen={false} navMode=\"overlay\">\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n );\n}\n",
|
|
788
|
+
"verdict": "example"
|
|
782
789
|
},
|
|
783
790
|
{
|
|
784
791
|
"id": "primary",
|
|
@@ -791,10 +798,10 @@
|
|
|
791
798
|
{
|
|
792
799
|
"id": "sides",
|
|
793
800
|
"title": "Sides, sizes and the mirror",
|
|
794
|
-
"note": "Atrium puts the navigation at the end of the line and the pane at the start; the controls turn their marks with them. Switch the direction to right-to-left and the whole frame mirrors, because every distance is logical. navSize and asideSize are steps on the
|
|
801
|
+
"note": "Atrium puts the navigation at the end of the line and the pane at the start; the controls turn their marks with them. Switch the direction to right-to-left and the whole frame mirrors, because every distance is logical. navSize and asideSize are steps on the shell’s own scale — a theme retunes a step, and nothing retunes a pixel string.",
|
|
795
802
|
"language": "tsx",
|
|
796
|
-
"source": "
|
|
797
|
-
"verdict": "
|
|
803
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellAside,\n AppShellAsideBody,\n AppShellAsideHeader,\n AppShellAsideToggle,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n type AppShellNavSide,\n AppShellNavToggle,\n type AppShellSize,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { Segment, SegmentedControl } from '@slotted/react/segmented-control';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellSidesExample() {\n const [navSide, setNavSide] = useState<AppShellNavSide>('start');\n const [navSize, setNavSize] = useState<AppShellSize>('md');\n const [asideSize, setAsideSize] = useState<AppShellSize>('md');\n\n return (\n <Stack gap={3}>\n <SegmentedControl\n aria-label=\"Navigation side\"\n onValueChange={(next) => setNavSide(next as AppShellNavSide)}\n value={navSide}\n >\n <Segment value=\"start\">Start</Segment>\n <Segment value=\"end\">End</Segment>\n </SegmentedControl>\n <SegmentedControl\n aria-label=\"Navigation size\"\n onValueChange={(next) => setNavSize(next as AppShellSize)}\n value={navSize}\n >\n <Segment value=\"sm\">SM</Segment>\n <Segment value=\"md\">MD</Segment>\n <Segment value=\"lg\">LG</Segment>\n </SegmentedControl>\n <SegmentedControl\n aria-label=\"Pane size\"\n onValueChange={(next) => setAsideSize(next as AppShellSize)}\n value={asideSize}\n >\n <Segment value=\"sm\">SM</Segment>\n <Segment value=\"md\">MD</Segment>\n <Segment value=\"lg\">LG</Segment>\n </SegmentedControl>\n <AppShell asideSize={asideSize} navSide={navSide} navSize={navSize}>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Shipments\n </Heading>\n <Text tone=\"muted\">23 in transit, 4 late.</Text>\n </Stack>\n </AppShellMain>\n <AppShellAside>\n <AppShellAsideHeader>\n <span>Shipment SH-3102</span>\n <AppShellAsideToggle />\n </AppShellAsideHeader>\n <AppShellAsideBody>\n <Text>18 pallets from Rotterdam to Lyon, due Thursday.</Text>\n </AppShellAsideBody>\n </AppShellAside>\n </AppShell>\n </Stack>\n );\n}\n",
|
|
804
|
+
"verdict": "example"
|
|
798
805
|
},
|
|
799
806
|
{
|
|
800
807
|
"id": "scroll",
|
|
@@ -807,10 +814,10 @@
|
|
|
807
814
|
{
|
|
808
815
|
"id": "progress",
|
|
809
816
|
"title": "The wait for the next page",
|
|
810
|
-
"note": "AppShellProgress draws an indeterminate bar on the line between the chrome and the content — wherever the canvas draws that line — after 200 ms, holds it for at least 400 ms, and marks main aria-busy for exactly as long as it is painted. A page header inside a busy content region draws no bar of its own. Pass loading from the router; nothing in the
|
|
817
|
+
"note": "AppShellProgress draws an indeterminate bar on the line between the chrome and the content — wherever the canvas draws that line — after 200 ms, holds it for at least 400 ms, and marks main aria-busy for exactly as long as it is painted. A page header inside a busy content region draws no bar of its own. Pass loading from the router; nothing in the shell knows one.",
|
|
811
818
|
"language": "tsx",
|
|
812
|
-
"source": "
|
|
813
|
-
"verdict": "
|
|
819
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n AppShellProgress,\n} from '@slotted/react/app-shell';\nimport { Button } from '@slotted/react/button';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { Inline } from '@slotted/react/inline';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellProgressExample() {\n const [loading, setLoading] = useState(false);\n\n function handleRefresh() {\n setLoading(true);\n setTimeout(() => setLoading(false), 2500);\n }\n\n return (\n <AppShell>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n <Inline gap={2}>\n <Button onClick={handleRefresh}>Open reports</Button>\n </Inline>\n </Stack>\n </AppShellMain>\n <AppShellProgress loading={loading} />\n </AppShell>\n );\n}\n",
|
|
820
|
+
"verdict": "example"
|
|
814
821
|
},
|
|
815
822
|
{
|
|
816
823
|
"id": "skipLinks",
|
|
@@ -833,8 +840,8 @@
|
|
|
833
840
|
"title": "Setting it once, and reaching past it",
|
|
834
841
|
"note": "AppShellDefaultsProvider takes every axis and the strings, so an application decides once how its routes are framed and a shell that states any of them itself still wins. ref gives an AppShellHandle rather than a DOM node: openNav, closeNav, openAside, closeAside and focusMain are the actions a prop cannot express. render makes the root the consumer’s own element and keeps every attribute on it.",
|
|
835
842
|
"language": "tsx",
|
|
836
|
-
"source": "<AppShellDefaultsProvider canvas=\"
|
|
837
|
-
"verdict": "
|
|
843
|
+
"source": "import {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellDefaultsProvider,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellDefaultsExample() {\n return (\n <AppShellDefaultsProvider canvas=\"panel\" navSize=\"sm\" primary=\"nav\">\n <AppShell messages={{ skipToMain: 'Skip to the order list' }}>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n </AppShellDefaultsProvider>\n );\n}\n",
|
|
844
|
+
"verdict": "example"
|
|
838
845
|
},
|
|
839
846
|
{
|
|
840
847
|
"id": "composition",
|
|
@@ -852,12 +859,44 @@
|
|
|
852
859
|
"source": "<AppShellNav aria-label=\"Main navigation\">…</AppShellNav>;\n<AppShellAside aria-label=\"Order details\">…</AppShellAside>;\n",
|
|
853
860
|
"verdict": "excerpt"
|
|
854
861
|
},
|
|
862
|
+
{
|
|
863
|
+
"id": "arrangement",
|
|
864
|
+
"title": "arrangement.tsx",
|
|
865
|
+
"note": null,
|
|
866
|
+
"language": "tsx",
|
|
867
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n type AppShellCanvas,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n type AppShellPrimary,\n type AppShellSeparation,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { Segment, SegmentedControl } from '@slotted/react/segmented-control';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellArrangementExample() {\n const [primary, setPrimary] = useState<AppShellPrimary>('banner');\n const [canvas, setCanvas] = useState<AppShellCanvas>('flush');\n const [separation, setSeparation] = useState<AppShellSeparation>('rule');\n\n return (\n <Stack gap={3}>\n <SegmentedControl\n aria-label=\"Primary region\"\n onValueChange={(next) => setPrimary(next as AppShellPrimary)}\n value={primary}\n >\n <Segment value=\"banner\">Banner</Segment>\n <Segment value=\"nav\">Nav</Segment>\n <Segment value=\"main\">Main</Segment>\n </SegmentedControl>\n <SegmentedControl\n aria-label=\"Canvas\"\n onValueChange={(next) => setCanvas(next as AppShellCanvas)}\n value={canvas}\n >\n <Segment value=\"inset\">Inset</Segment>\n <Segment value=\"flush\">Flush</Segment>\n <Segment value=\"floating\">Floating</Segment>\n <Segment value=\"panel\">Panel</Segment>\n </SegmentedControl>\n <SegmentedControl\n aria-label=\"Separation\"\n onValueChange={(next) => setSeparation(next as AppShellSeparation)}\n value={separation}\n >\n <Segment value=\"rule\">Rule</Segment>\n <Segment value=\"tone\">Tone</Segment>\n </SegmentedControl>\n <AppShell canvas={canvas} primary={primary} separation={separation}>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n </Stack>\n );\n}\n",
|
|
868
|
+
"verdict": "example"
|
|
869
|
+
},
|
|
855
870
|
{
|
|
856
871
|
"id": "basic",
|
|
857
872
|
"title": "basic.tsx",
|
|
858
873
|
"note": null,
|
|
859
874
|
"language": "tsx",
|
|
860
|
-
"source": "import {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport {\n SideNavigation,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\n\nexport default function
|
|
875
|
+
"source": "import {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellBasicExample() {\n return (\n <AppShell>\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n );\n}\n",
|
|
876
|
+
"verdict": "example"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"id": "dismissal",
|
|
880
|
+
"title": "dismissal.tsx",
|
|
881
|
+
"note": null,
|
|
882
|
+
"language": "tsx",
|
|
883
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavFooter,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Button } from '@slotted/react/button';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellDismissalExample() {\n const [open, setOpen] = useState(false);\n\n return (\n <AppShell\n back=\"none\"\n closeOnNavigate={false}\n escape=\"none\"\n modal={false}\n navMode=\"overlay\"\n navOpen={open}\n onNavOpenChange={setOpen}\n outsidePress=\"none\"\n >\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n <AppShellNavFooter>\n <Button onClick={() => setOpen(false)}>Close navigation</Button>\n </AppShellNavFooter>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n );\n}\n",
|
|
884
|
+
"verdict": "example"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "nav-rail",
|
|
888
|
+
"title": "nav-rail.tsx",
|
|
889
|
+
"note": null,
|
|
890
|
+
"language": "tsx",
|
|
891
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavHeader,\n AppShellNavRail,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { IconButton } from '@slotted/react/button';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellNavRailExample() {\n const [active, setActive] = useState('sales');\n const titles: Record<string, string> = {\n sales: 'Sales',\n warehouse: 'Warehouse',\n finance: 'Finance',\n };\n\n return (\n <AppShell primary=\"main\">\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavRail aria-label=\"Modules\">\n <IconButton\n aria-current={active === 'sales' ? 'true' : undefined}\n aria-label=\"Sales\"\n onClick={() => setActive('sales')}\n tone=\"secondary\"\n variant={active === 'sales' ? 'solid' : 'ghost'}\n >\n <Glyph name=\"inbox\" />\n </IconButton>\n <IconButton\n aria-current={active === 'warehouse' ? 'true' : undefined}\n aria-label=\"Warehouse\"\n onClick={() => setActive('warehouse')}\n tone=\"secondary\"\n variant={active === 'warehouse' ? 'solid' : 'ghost'}\n >\n <Glyph name=\"calendar\" />\n </IconButton>\n <IconButton\n aria-current={active === 'finance' ? 'true' : undefined}\n aria-label=\"Finance\"\n onClick={() => setActive('finance')}\n tone=\"secondary\"\n variant={active === 'finance' ? 'solid' : 'ghost'}\n >\n <Glyph name=\"trending-up\" />\n </IconButton>\n <AppShellNavToggle />\n </AppShellNavRail>\n <AppShellNavHeader>{titles[active]}</AppShellNavHeader>\n <AppShellNavBody>\n {active === 'sales' && (\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"quotes\">\n <SideNavigationLink href=\"#quotes\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"file-text\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Quotes</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n )}\n {active === 'warehouse' && (\n <SideNavigation defaultValue=\"shipments\">\n <SideNavigationList>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"counts\">\n <SideNavigationLink href=\"#counts\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"clock\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Cycle counts</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n )}\n {active === 'finance' && (\n <SideNavigation defaultValue=\"invoices\">\n <SideNavigationList>\n <SideNavigationItem value=\"invoices\">\n <SideNavigationLink href=\"#invoices\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"file-spreadsheet\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Invoices</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n )}\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n );\n}\n",
|
|
892
|
+
"verdict": "example"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"id": "reasons",
|
|
896
|
+
"title": "reasons.tsx",
|
|
897
|
+
"note": null,
|
|
898
|
+
"language": "tsx",
|
|
899
|
+
"source": "import { useState } from 'react';\nimport {\n AppShell,\n AppShellBanner,\n AppShellBrand,\n AppShellMain,\n AppShellNav,\n AppShellNavBody,\n AppShellNavToggle,\n} from '@slotted/react/app-shell';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport {\n SideNavigation,\n SideNavigationIcon,\n SideNavigationItem,\n SideNavigationLabel,\n SideNavigationLink,\n SideNavigationList,\n} from '@slotted/react/side-navigation';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function AppShellReasonsExample() {\n const [open, setOpen] = useState(false);\n const [reason, setReason] = useState('none yet');\n\n return (\n <AppShell\n navMode=\"overlay\"\n navOpen={open}\n onNavOpenChange={(next, request) => {\n setOpen(next);\n setReason(request.reason);\n }}\n >\n <AppShellBanner>\n <AppShellBrand>\n <AppShellNavToggle />\n <span>Northwind</span>\n </AppShellBrand>\n </AppShellBanner>\n <AppShellNav>\n <AppShellNavBody>\n <SideNavigation defaultValue=\"orders\">\n <SideNavigationList>\n <SideNavigationItem value=\"orders\">\n <SideNavigationLink href=\"#orders\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"inbox\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Orders</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"shipments\">\n <SideNavigationLink href=\"#shipments\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Shipments</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n <SideNavigationItem value=\"reports\">\n <SideNavigationLink href=\"#reports\">\n <SideNavigationIcon>\n <Icon>\n <Glyph name=\"trending-up\" />\n </Icon>\n </SideNavigationIcon>\n <SideNavigationLabel>Reports</SideNavigationLabel>\n </SideNavigationLink>\n </SideNavigationItem>\n </SideNavigationList>\n </SideNavigation>\n </AppShellNavBody>\n </AppShellNav>\n <AppShellMain>\n <Stack gap={2}>\n <Heading level={1} size=\"md\">\n Orders\n </Heading>\n <Text tone=\"muted\">128 open orders, 14 awaiting payment.</Text>\n <Text size=\"sm\">Last request: {reason}</Text>\n </Stack>\n </AppShellMain>\n </AppShell>\n );\n}\n",
|
|
861
900
|
"verdict": "example"
|
|
862
901
|
}
|
|
863
902
|
]
|