@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/action-bar.md
CHANGED
|
@@ -11,22 +11,34 @@ import { ActionBar, ActionBarAction, ActionBarActions, ActionBarDefaultsProvider
|
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```tsx
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
Example
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import {
|
|
18
|
+
ActionBar,
|
|
19
|
+
ActionBarAction,
|
|
20
|
+
ActionBarActions,
|
|
21
|
+
ActionBarStatus,
|
|
22
|
+
} from '@slotted/react/action-bar';
|
|
23
|
+
import { Button } from '@slotted/react/button';
|
|
24
|
+
|
|
25
|
+
export default function ActionBarBasicExample() {
|
|
26
|
+
return (
|
|
27
|
+
<ActionBar aria-label="Purchase order PO-4521 actions" variant="raised">
|
|
28
|
+
<ActionBarStatus>Draft saved at 14:07</ActionBarStatus>
|
|
29
|
+
<ActionBarActions>
|
|
30
|
+
<ActionBarAction>
|
|
31
|
+
<Button tone="secondary" variant="ghost">
|
|
32
|
+
Discard changes
|
|
33
|
+
</Button>
|
|
34
|
+
</ActionBarAction>
|
|
35
|
+
<ActionBarAction>
|
|
36
|
+
<Button>Submit for approval</Button>
|
|
37
|
+
</ActionBarAction>
|
|
38
|
+
</ActionBarActions>
|
|
39
|
+
</ActionBar>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
30
42
|
```
|
|
31
43
|
|
|
32
44
|
## Anatomy
|
|
@@ -44,25 +56,25 @@ Excerpt — not a complete module
|
|
|
44
56
|
|
|
45
57
|
| Name | Type | Default | Applies to | Description |
|
|
46
58
|
| --- | --- | --- | --- | --- |
|
|
47
|
-
| `variant` | `'plain' \| 'raised'` | plain | ActionBar, ActionBarDefaultsProvider | Whether the bar paints a ground and a rule of its own. plain is for a bar that already stands on one — a Page footer, a Card footer; raised is the bar with nothing under it |
|
|
48
|
-
| `size` | `'sm' \| 'md' \| 'lg'` | md | ActionBar, ActionBarDefaultsProvider | The bar’s own inset, gap, minimum height and rule, from the control scales. It also reaches the buttons inside through the Button family’s own defaults token, so a button that states its own size still wins |
|
|
49
|
-
| `align` | `'end' \| 'start' \| 'center'` | end | ActionBar, ActionBarDefaultsProvider | Where the run sits in the room left after the status. end is the anchor that keeps the action that confirms still, and it is the default for that reason |
|
|
50
|
-
| `sticky` | `boolean` | false | ActionBar, ActionBarDefaultsProvider | Whether the bar sticks to the end of the region that scrolls. Sticky and never fixed: it takes its own height in the flow, and its offset is whatever Page publishes as --slotted-page-sticky-bottom, so it stops above that page’s footer rather than covering it |
|
|
51
|
-
| `present` | `boolean` | true | ActionBar | Whether the bar belongs on screen at all — a bulk bar while there is a selection, a save bar while there are unsaved changes. It enters from below, leaves the same way, and leaves the document once it has left the view. It is an input rather than a state model: the bar never asks to appear, so there is nothing to cancel |
|
|
52
|
-
| `onOverflowChange` | `(hidden: number) => void` | — | ActionBar | How many actions gave way, once per change. There is no controlled pair over the collapsed set: it is a measurement, and a consumer who owned it could assert that a bar fits when the layout says it does not |
|
|
53
|
-
| `priority` | `'pinned' \| 'high' \| 'low' \| 'hide' \| 'always'` | low with a counterpart, pinned without | ActionBarAction | Where the action stands in the order of giving way. pinned never goes; high goes after low and hide; low is the first into the surface; hide goes first and is not offered in the surface at all; always is never in the bar. A rank that needs a counterpart and has none behaves as pinned, so a consumer error leaves the control on the bar |
|
|
54
|
-
| `counterpart` | `ReactNode` | — | ActionBarAction | What the action becomes in the surface. An action that declares none is pinned — pinning is the absence of a counterpart rather than a second prop, so the two can never disagree. It is not called overflow, because that word names what a container does with more content than it has room for |
|
|
55
|
-
| `label` | `string \| ((hidden: number) => string)` | counted | ActionBarOverflow | The accessible name of the control that holds what did not fit. The default counts — "3 more actions" — because three dots say nothing about how much is behind them, in the language in force, with its plural |
|
|
56
|
-
| `align, side, size` | `MenuAlign \| MenuSide \| MenuSize` | from the Menu defaults | ActionBarOverflow | Where the surface sits against the trigger, and its own measure. Everything else about the layer an application sets once with MenuDefaultsProvider |
|
|
57
|
-
| `aria-label` | `string` | — | ActionBar | The name of the bar.
|
|
58
|
-
| `role` | `string` | group | ActionBar | group, because there is no roving focus to declare — ARIA makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management. A consumer with ten icon-only actions may write toolbar themselves and keeps it, but that consumer wants the Toolbar family |
|
|
59
|
-
| `render` | `(props) => ReactNode` | — | every part | Substitutes any of the six roots and hands it every attribute — the bar can be a footer, the status a p, and the overflow trigger the consumer’s own IconButton with the Menu wiring on it |
|
|
60
|
-
| `ActionBarDefaultsProvider` | `{ variant, size, align, sticky }` | — | a subtree | The four decisions an application takes once. A bar that states any of them itself still wins |
|
|
61
|
-
| `menuRef` | `Ref<MenuHandle>` | — | ActionBarOverflow | Reaches the surface’s imperative actions — open, close and focus — which belong to the Menu family rather than to this one |
|
|
62
|
-
| `useActionBarOverflow` | `() => { surface, counterpart }` | — | inside ActionBar | What the parts read: the actions the surface holds, in the order the bar holds them, and what each one becomes. A consumer’s own trigger reads the same value |
|
|
63
|
-
| `ref` | `Ref<HTMLDivElement>` | — | ActionBar and every part | Reaches the element itself. No imperative handle is invented: focus() on the action a page wants to start from is the platform’s own |
|
|
64
|
-
| `fieldset` | `the platform’s own element` | — | around an ActionBar | How a bar is taken out of action. A container cannot disable controls it does not own, and a bar that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent |
|
|
65
|
-
| `Page footer` | `the Page family’s own slot` | — | around an ActionBar | Where a page’s bar belongs. Page paints the ground, the rule and the sticky behavior;
|
|
59
|
+
| `variant` | `'plain' \| 'raised'` | plain | ActionBar, ActionBarDefaultsProvider | Whether the bar paints a ground and a rule of its own. plain is for a bar that already stands on one — a Page footer, a Card footer; raised is the bar with nothing under it. |
|
|
60
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | md | ActionBar, ActionBarDefaultsProvider | The bar’s own inset, gap, minimum height and rule, from the control scales. It also reaches the buttons inside through the Button family’s own defaults token, so a button that states its own size still wins. |
|
|
61
|
+
| `align` | `'end' \| 'start' \| 'center'` | end | ActionBar, ActionBarDefaultsProvider | Where the run sits in the room left after the status. end is the anchor that keeps the action that confirms still, and it is the default for that reason. |
|
|
62
|
+
| `sticky` | `boolean` | false | ActionBar, ActionBarDefaultsProvider | Whether the bar sticks to the end of the region that scrolls. Sticky and never fixed: it takes its own height in the flow, and its offset is whatever Page publishes as --slotted-page-sticky-bottom, so it stops above that page’s footer rather than covering it. |
|
|
63
|
+
| `present` | `boolean` | true | ActionBar | Whether the bar belongs on screen at all — a bulk bar while there is a selection, a save bar while there are unsaved changes. It enters from below, leaves the same way, and leaves the document once it has left the view. It is an input rather than a state model: the bar never asks to appear, so there is nothing to cancel. |
|
|
64
|
+
| `onOverflowChange` | `(hidden: number) => void` | — | ActionBar | How many actions gave way, once per change. There is no controlled pair over the collapsed set: it is a measurement, and a consumer who owned it could assert that a bar fits when the layout says it does not. |
|
|
65
|
+
| `priority` | `'pinned' \| 'high' \| 'low' \| 'hide' \| 'always'` | low with a counterpart, pinned without | ActionBarAction | Where the action stands in the order of giving way. pinned never goes; high goes after low and hide; low is the first into the surface; hide goes first and is not offered in the surface at all; always is never in the bar. A rank that needs a counterpart and has none behaves as pinned, so a consumer error leaves the control on the bar. |
|
|
66
|
+
| `counterpart` | `ReactNode` | — | ActionBarAction | What the action becomes in the surface. An action that declares none is pinned — pinning is the absence of a counterpart rather than a second prop, so the two can never disagree. It is not called overflow, because that word names what a container does with more content than it has room for. |
|
|
67
|
+
| `label` | `string \| ((hidden: number) => string)` | counted | ActionBarOverflow | The accessible name of the control that holds what did not fit. The default counts — "3 more actions" — because three dots say nothing about how much is behind them, in the language in force, with its plural. |
|
|
68
|
+
| `align, side, size` | `MenuAlign \| MenuSide \| MenuSize` | from the Menu defaults | ActionBarOverflow | Where the surface sits against the trigger, and its own measure. Everything else about the layer an application sets once with MenuDefaultsProvider. |
|
|
69
|
+
| `aria-label` | `string` | — | ActionBar | The name of the bar. Action Bar writes none: only the page knows which task the bar finishes. aria-labelledby works the same way. |
|
|
70
|
+
| `role` | `string` | group | ActionBar | group, because there is no roving focus to declare — ARIA makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management. A consumer with ten icon-only actions may write toolbar themselves and keeps it, but that consumer wants the Toolbar family. |
|
|
71
|
+
| `render` | `(props) => ReactNode` | — | every part | Substitutes any of the six roots and hands it every attribute — the bar can be a footer, the status a p, and the overflow trigger the consumer’s own IconButton with the Menu wiring on it. |
|
|
72
|
+
| `ActionBarDefaultsProvider` | `{ variant, size, align, sticky }` | — | a subtree | The four decisions an application takes once. A bar that states any of them itself still wins. |
|
|
73
|
+
| `menuRef` | `Ref<MenuHandle>` | — | ActionBarOverflow | Reaches the surface’s imperative actions — open, close and focus — which belong to the Menu family rather than to this one. |
|
|
74
|
+
| `useActionBarOverflow` | `() => { surface, counterpart }` | — | inside ActionBar | What the parts read: the actions the surface holds, in the order the bar holds them, and what each one becomes. A consumer’s own trigger reads the same value. |
|
|
75
|
+
| `ref` | `Ref<HTMLDivElement>` | — | ActionBar and every part | Reaches the element itself. No imperative handle is invented: focus() on the action a page wants to start from is the platform’s own. |
|
|
76
|
+
| `fieldset` | `the platform’s own element` | — | around an ActionBar | How a bar is taken out of action. A container cannot disable controls it does not own, and a bar that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent. |
|
|
77
|
+
| `Page footer` | `the Page family’s own slot` | — | around an ActionBar | Where a page’s bar belongs. Page paints the ground, the rule and the sticky behavior; Action Bar arranges what is on it, which is why variant="plain" paints nothing. |
|
|
66
78
|
|
|
67
79
|
## Axes and defaults
|
|
68
80
|
|
|
@@ -79,7 +91,7 @@ Excerpt — not a complete module
|
|
|
79
91
|
- The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role the consumer wrote on the element survives the family’s own.
|
|
80
92
|
- The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.
|
|
81
93
|
- The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural. The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.
|
|
82
|
-
- A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it.
|
|
94
|
+
- A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. Action Bar writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.
|
|
83
95
|
- A bar that is not present leaves the document once it has left the view, rather than staying mounted and hidden. Carbon’s batch bar writes aria-hidden on its root and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.
|
|
84
96
|
- Under forced colors the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast.
|
|
85
97
|
|
|
@@ -89,278 +101,4 @@ Excerpt — not a complete module
|
|
|
89
101
|
|
|
90
102
|
## Examples
|
|
91
103
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Narrow the stage and watch the order: “Preview” goes without a trace, “Duplicate” becomes a menu row, “Return” follows it, and “Approve” never moves. Position decides nothing here — the rank does.
|
|
95
|
-
|
|
96
|
-
Excerpt — not a complete module
|
|
97
|
-
|
|
98
|
-
```tsx
|
|
99
|
-
<ActionBarActions>
|
|
100
|
-
{/* Gives way before every other rank, and is not offered in the menu. */}
|
|
101
|
-
<ActionBarAction priority="hide">
|
|
102
|
-
<Button variant="ghost">Preview</Button>
|
|
103
|
-
</ActionBarAction>
|
|
104
|
-
{/* low is the default for an action that declares a counterpart. */}
|
|
105
|
-
<ActionBarAction counterpart={<MenuItem>Duplicar</MenuItem>}>
|
|
106
|
-
<Button variant="ghost">Duplicar</Button>
|
|
107
|
-
</ActionBarAction>
|
|
108
|
-
<ActionBarAction priority="high" counterpart={<MenuItem>Devolver</MenuItem>}>
|
|
109
|
-
<Button variant="outline">Devolver</Button>
|
|
110
|
-
</ActionBarAction>
|
|
111
|
-
{/* No counterpart, so it is pinned: it has nowhere to go. */}
|
|
112
|
-
<ActionBarAction>
|
|
113
|
-
<Button>Aprovar</Button>
|
|
114
|
-
</ActionBarAction>
|
|
115
|
-
<ActionBarOverflow />
|
|
116
|
-
</ActionBarActions>;
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### What is left over, behind one control
|
|
120
|
-
|
|
121
|
-
The surface holds what gave way and what was never in the bar, in the bar’s own order, with a rule wherever one of the bar’s own rules divided two of them. The trigger’s name is the count, not three dots.
|
|
122
|
-
|
|
123
|
-
Excerpt — not a complete module
|
|
124
|
-
|
|
125
|
-
```tsx
|
|
126
|
-
<ActionBarActions>
|
|
127
|
-
<ActionBarAction priority="always" counterpart={<MenuItem>View history</MenuItem>}>
|
|
128
|
-
<Button variant="ghost">View history</Button>
|
|
129
|
-
</ActionBarAction>
|
|
130
|
-
<ActionBarAction>
|
|
131
|
-
<Button>Approve</Button>
|
|
132
|
-
</ActionBarAction>
|
|
133
|
-
<ActionBarOverflow label={(hidden) => `${hidden} more actions`} />
|
|
134
|
-
</ActionBarActions>;
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### The action that confirms does not move
|
|
138
|
-
|
|
139
|
-
Four bars on one stage: no message, a short one, one that fills the bar, and a secondary action removed by a permission filter. Read the right edge — “Aprovar” is on the same pixel in all four.
|
|
140
|
-
|
|
141
|
-
Excerpt — not a complete module
|
|
142
|
-
|
|
143
|
-
```tsx
|
|
144
|
-
// The run carries margin-inline-start: auto, so what grows or leaves
|
|
145
|
-
// moves what is *before* the last action and never the last action.
|
|
146
|
-
<ActionBar aria-label="Order actions">
|
|
147
|
-
{dirty ? <ActionBarStatus>{message}</ActionBarStatus> : null}
|
|
148
|
-
<ActionBarActions>
|
|
149
|
-
{canReturn ? (
|
|
150
|
-
<ActionBarAction>
|
|
151
|
-
<Button variant="ghost">Devolver</Button>
|
|
152
|
-
</ActionBarAction>
|
|
153
|
-
) : null}
|
|
154
|
-
<ActionBarAction>
|
|
155
|
-
<Button loading={saving}>Aprovar</Button>
|
|
156
|
-
</ActionBarAction>
|
|
157
|
-
</ActionBarActions>
|
|
158
|
-
</ActionBar>;
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### A destructive action, and the rule beside it
|
|
162
|
-
|
|
163
|
-
The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms *is* the destructive one, and the rule is what a hand about to press Keep reads.
|
|
164
|
-
|
|
165
|
-
Excerpt — not a complete module
|
|
166
|
-
|
|
167
|
-
```tsx
|
|
168
|
-
<ActionBarActions>
|
|
169
|
-
<ActionBarAction>
|
|
170
|
-
<Button variant="ghost" tone="danger">
|
|
171
|
-
Void invoice
|
|
172
|
-
</Button>
|
|
173
|
-
</ActionBarAction>
|
|
174
|
-
<ActionBarSeparator />
|
|
175
|
-
<ActionBarAction>
|
|
176
|
-
<Button variant="ghost" tone="secondary">
|
|
177
|
-
Cancelar
|
|
178
|
-
</Button>
|
|
179
|
-
</ActionBarAction>
|
|
180
|
-
<ActionBarAction>
|
|
181
|
-
<Button>Guardar</Button>
|
|
182
|
-
</ActionBarAction>
|
|
183
|
-
</ActionBarActions>;
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### The sentence at the start
|
|
187
|
-
|
|
188
|
-
Four things a product actually puts there — a timestamp, a dirty-state marker, an inline message and a validation count — and the same two actions under each. The slot takes what room is left and shortens itself rather than pushing.
|
|
189
|
-
|
|
190
|
-
Excerpt — not a complete module
|
|
191
|
-
|
|
192
|
-
```tsx
|
|
193
|
-
<ActionBarStatus>
|
|
194
|
-
<StatusIndicator status="warning">3 campos por preencher</StatusIndicator>
|
|
195
|
-
</ActionBarStatus>;
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### The bar a selection brings
|
|
199
|
-
|
|
200
|
-
Table owns the selection and its count; this family supplies the place, the ranks and the entry. Toggle the selection and watch the bar arrive from below rather than appear — and leave the document when it goes, rather than staying hidden and still reachable by Tab.
|
|
201
|
-
|
|
202
|
-
Excerpt — not a complete module
|
|
203
|
-
|
|
204
|
-
```tsx
|
|
205
|
-
<ActionBar aria-label="Selection actions" present={selected.length > 0} variant="raised">
|
|
206
|
-
<ActionBarStatus>
|
|
207
|
-
<strong>{selected.length} invoices selected</strong>
|
|
208
|
-
<Button size="sm" variant="ghost" tone="accent" onClick={selectAll}>
|
|
209
|
-
Select all {total} matching the filter
|
|
210
|
-
</Button>
|
|
211
|
-
</ActionBarStatus>
|
|
212
|
-
<ActionBarActions>
|
|
213
|
-
<ActionBarAction counterpart={<MenuItem>Exportar</MenuItem>}>
|
|
214
|
-
<Button variant="ghost">Exportar</Button>
|
|
215
|
-
</ActionBarAction>
|
|
216
|
-
<ActionBarSeparator />
|
|
217
|
-
<ActionBarAction>
|
|
218
|
-
<Button tone="danger">Anular</Button>
|
|
219
|
-
</ActionBarAction>
|
|
220
|
-
</ActionBarActions>
|
|
221
|
-
</ActionBar>;
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
### Stuck to the end of what scrolls
|
|
225
|
-
|
|
226
|
-
Scroll the panel: the bar stays at the bottom and the last line of content scrolls up to it rather than under it. Inside a Page it reads --slotted-page-sticky-bottom and stops above that page’s own footer instead of covering it.
|
|
227
|
-
|
|
228
|
-
Excerpt — not a complete module
|
|
229
|
-
|
|
230
|
-
```tsx
|
|
231
|
-
<ActionBar aria-label="Form actions" sticky variant="raised">
|
|
232
|
-
<ActionBarActions>
|
|
233
|
-
<ActionBarAction>
|
|
234
|
-
<Button>Guardar</Button>
|
|
235
|
-
</ActionBarAction>
|
|
236
|
-
</ActionBarActions>
|
|
237
|
-
</ActionBar>;
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
### Where the run sits
|
|
241
|
-
|
|
242
|
-
end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce centers a docked footer, Polaris ends it, Fluent starts it — so it is an axis.
|
|
243
|
-
|
|
244
|
-
Excerpt — not a complete module
|
|
245
|
-
|
|
246
|
-
```tsx
|
|
247
|
-
<ActionBar aria-label="Actions" align="center" variant="raised" />;
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
### The step the bar sits at
|
|
251
|
-
|
|
252
|
-
The size moves the bar’s own inset, gap, minimum height and rule — and it reaches the buttons through the Button family’s own defaults, so a bar does not make a consumer repeat size on every control. A button that states its own still wins.
|
|
253
|
-
|
|
254
|
-
Excerpt — not a complete module
|
|
255
|
-
|
|
256
|
-
```tsx
|
|
257
|
-
<ActionBar aria-label="Actions" size="sm" variant="raised">
|
|
258
|
-
<ActionBarActions>
|
|
259
|
-
{/* No size here: the bar hands its own down. */}
|
|
260
|
-
<ActionBarAction>
|
|
261
|
-
<Button variant="ghost">Cancelar</Button>
|
|
262
|
-
</ActionBarAction>
|
|
263
|
-
<ActionBarAction>
|
|
264
|
-
<Button size="lg">Guardar</Button>
|
|
265
|
-
</ActionBarAction>
|
|
266
|
-
</ActionBarActions>
|
|
267
|
-
</ActionBar>;
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
### Whether the bar paints a ground
|
|
271
|
-
|
|
272
|
-
plain is the default and paints nothing — a bar inside a Page footer is already standing on a ground that family painted. raised takes the surface and one hairline at the top, which is the bar with no page around it: a drawer, a dialog, a card.
|
|
273
|
-
|
|
274
|
-
Excerpt — not a complete module
|
|
275
|
-
|
|
276
|
-
```tsx
|
|
277
|
-
<ActionBar aria-label="Actions" variant="plain" />;
|
|
278
|
-
<ActionBar aria-label="Actions" variant="raised" />;
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
### The bar on a phone
|
|
282
|
-
|
|
283
|
-
Below 24rem of container a bar with no overflow control becomes a full-width column with the action that confirms on top, and the collapse stops running — a column has room for everything, so there is no menu. A bar with an overflow control keeps one row: the actions without a counterpart stay and the rest fold into the menu. The DOM order does not change, so Tab still reads the form’s order.
|
|
284
|
-
|
|
285
|
-
Excerpt — not a complete module
|
|
286
|
-
|
|
287
|
-
```tsx
|
|
288
|
-
// The breakpoint lives in the stylesheet's container query, and the
|
|
289
|
-
// binding reads back the property that query raises rather than holding
|
|
290
|
-
// a copy of the number.
|
|
291
|
-
<ActionBar aria-label="Order actions" variant="raised">
|
|
292
|
-
<ActionBarActions>
|
|
293
|
-
<ActionBarAction>
|
|
294
|
-
<Button variant="ghost">Discard changes</Button>
|
|
295
|
-
</ActionBarAction>
|
|
296
|
-
<ActionBarAction>
|
|
297
|
-
<Button>Save changes</Button>
|
|
298
|
-
</ActionBarAction>
|
|
299
|
-
</ActionBarActions>
|
|
300
|
-
</ActionBar>;
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
### Content the family did not choose
|
|
304
|
-
|
|
305
|
-
A German label twice the length of the Portuguese one, a reference number with no spaces in it, and an action mid-flight. The bar never truncates a label: it wraps, or the action goes to the menu where there is a whole row for it.
|
|
306
|
-
|
|
307
|
-
Excerpt — not a complete module
|
|
308
|
-
|
|
309
|
-
```tsx
|
|
310
|
-
<ActionBar aria-label="Bestellaktionen" variant="raised">
|
|
311
|
-
<ActionBarStatus>Entwurf um 14:07 gespeichert</ActionBarStatus>
|
|
312
|
-
<ActionBarActions>
|
|
313
|
-
<ActionBarAction>
|
|
314
|
-
<Button variant="ghost">Änderungen verwerfen</Button>
|
|
315
|
-
</ActionBarAction>
|
|
316
|
-
<ActionBarAction>
|
|
317
|
-
<Button loading>Zur Genehmigung einreichen</Button>
|
|
318
|
-
</ActionBarAction>
|
|
319
|
-
</ActionBarActions>
|
|
320
|
-
</ActionBar>;
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
### Setting it once, and standing beside other families
|
|
324
|
-
|
|
325
|
-
The provider carries the four decisions an application takes once. The bar is what goes inside a Page footer, inside a Drawer and under a Table — and every part can be rendered as the consumer’s own element.
|
|
326
|
-
|
|
327
|
-
Excerpt — not a complete module
|
|
328
|
-
|
|
329
|
-
```tsx
|
|
330
|
-
<ActionBarDefaultsProvider size="sm" variant="plain">
|
|
331
|
-
<Page
|
|
332
|
-
footer={
|
|
333
|
-
<ActionBar aria-label="Order actions" render={(props) => <div {...props} />}>
|
|
334
|
-
<ActionBarActions>
|
|
335
|
-
<ActionBarAction>
|
|
336
|
-
<Button>Submeter</Button>
|
|
337
|
-
</ActionBarAction>
|
|
338
|
-
</ActionBarActions>
|
|
339
|
-
</ActionBar>
|
|
340
|
-
}
|
|
341
|
-
>
|
|
342
|
-
<PageBody>…</PageBody>
|
|
343
|
-
</Page>
|
|
344
|
-
</ActionBarDefaultsProvider>;
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
### The keyboard, and what a reader hears
|
|
348
|
-
|
|
349
|
-
Tab reaches each action in the order the author wrote it. The bar is role="group" with the consumer’s own name; a fieldset around it is how it goes out of action, and the platform takes the controls out of the tab order with it.
|
|
350
|
-
|
|
351
|
-
Excerpt — not a complete module
|
|
352
|
-
|
|
353
|
-
```tsx
|
|
354
|
-
<fieldset disabled={submitting}>
|
|
355
|
-
<ActionBar aria-label="Order actions">
|
|
356
|
-
<ActionBarActions>
|
|
357
|
-
<ActionBarAction>
|
|
358
|
-
<Button variant="ghost">Cancelar</Button>
|
|
359
|
-
</ActionBarAction>
|
|
360
|
-
<ActionBarAction>
|
|
361
|
-
<Button>Guardar</Button>
|
|
362
|
-
</ActionBarAction>
|
|
363
|
-
</ActionBarActions>
|
|
364
|
-
</ActionBar>
|
|
365
|
-
</fieldset>;
|
|
366
|
-
```
|
|
104
|
+
See [action-bar.examples.md](./action-bar.examples.md).
|