@slotted/react 0.1.0-beta.42 → 0.1.0-beta.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-sheet-q1UXXruJ.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-D54YkU7E.js → app-shell-BBPY0_KK.js} +217 -195
- package/dist/app-shell.js +1 -1
- package/dist/attachment-DJDXJrCx.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/{button-BMRInd-t.js → button-DS_HpPy0.js} +1 -1
- package/dist/button.js +2 -2
- package/dist/{calendar-YQ784o4d.js → calendar-BO5teotM.js} +1 -1
- 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-fq8fNWSr.js → cascader-BbhADVGt.js} +134 -131
- package/dist/cascader.js +1 -1
- package/dist/{chart-vedR0BDN.js → chart-C4uPgUW8.js} +2 -2
- package/dist/chart.js +1 -1
- package/dist/{checkbox-DsJhlB5c.js → checkbox-D8HZG0be.js} +3 -3
- package/dist/{checkbox-group-pvX9R_yS.js → checkbox-group-5zuE2Kd1.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{clock-DzkQa57Q.js → clock-DeJgwYbZ.js} +1 -1
- package/dist/clock.js +1 -1
- package/dist/{code-block-Cy548yk7.js → code-block-H0lmVVnY.js} +1 -1
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-i-MJ5VVs.js → color-picker-fiLSUBjj.js} +23 -18
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-D028QbfO.js → column-manager-Cc72e1j-.js} +143 -143
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-599heRN_.js → combobox-DMtXrMYE.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-C90CzfQi.js → command-palette-DwjkexvN.js} +174 -162
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-WM_tT9hz.js → context-menu-CRRp-PhP.js} +12 -6
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-rS36pjCO.js → currency-field-Cxr8MT75.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-Dh2Q3IQv.js → dashboard-grid-_3H4G0dP.js} +339 -333
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-D106baPp.js → data-grid-BlElqHOU.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-BA0xrySM.js → data-list-5zvM-DUz.js} +19 -18
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BZ5JcvXJ.js → date-field-CjlOWVRA.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-BvEbsbJC.js → date-picker-BoIHK8_U.js} +4 -4
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-uIr-yReE.js → date-range-picker-DzuuvudX.js} +5 -5
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-DDs3mV9Z.js → datetime-field-PSEOgzfN.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-DDYXqrjm.js → datetime-picker-BUhSr8yp.js} +7 -7
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-CFTHW771.js → datetime-range-picker-DXllehEN.js} +7 -7
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{description-list-D8iTzgC0.js → description-list-1USVlDj3.js} +5 -1
- package/dist/description-list.js +1 -1
- package/dist/detail-panel-Czs05E_D.js +344 -0
- package/dist/detail-panel.js +2 -2
- 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 +1 -1
- package/dist/docs/action-sheet.json +3 -3
- package/dist/docs/action-sheet.md +2 -2
- package/dist/docs/app-shell.examples.md +1273 -64
- package/dist/docs/app-shell.json +93 -60
- package/dist/docs/app-shell.md +98 -58
- 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.examples.md +790 -0
- package/dist/docs/avatar-group.json +111 -23
- package/dist/docs/avatar-group.md +46 -86
- package/dist/docs/avatar.json +6 -6
- package/dist/docs/avatar.md +43 -10
- package/dist/docs/badge.json +1 -1
- package/dist/docs/badge.md +15 -3
- package/dist/docs/button-group.json +98 -2
- package/dist/docs/button-group.md +411 -8
- package/dist/docs/button.json +2 -0
- package/dist/docs/button.md +1 -1
- package/dist/docs/calendar.examples.md +512 -0
- package/dist/docs/calendar.json +72 -25
- package/dist/docs/calendar.md +19 -148
- package/dist/docs/carousel.examples.md +868 -0
- package/dist/docs/carousel.json +60 -50
- package/dist/docs/carousel.md +67 -301
- 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 +75 -19
- package/dist/docs/clock.md +328 -23
- package/dist/docs/code-block.json +79 -55
- package/dist/docs/code-block.md +417 -74
- package/dist/docs/collapsible.json +10 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/color-picker.json +74 -13
- package/dist/docs/color-picker.md +247 -23
- 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/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 +56 -25
- package/dist/docs/description-list.md +34 -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/drawer.examples.md +1 -1
- package/dist/docs/drawer.json +4 -4
- package/dist/docs/entity-picker.examples.md +1160 -0
- package/dist/docs/entity-picker.json +66 -18
- package/dist/docs/entity-picker.md +72 -247
- package/dist/docs/event-calendar.examples.md +749 -49
- package/dist/docs/event-calendar.json +53 -22
- package/dist/docs/event-calendar.md +82 -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/filter-bar.examples.md +772 -0
- package/dist/docs/filter-bar.json +42 -25
- package/dist/docs/filter-bar.md +43 -247
- package/dist/docs/floating-panel.json +7 -3
- package/dist/docs/floating-panel.md +23 -5
- 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 +8 -1
- package/dist/docs/hover-card.md +5 -1
- 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 +69 -39
- package/dist/docs/import-export-center.md +123 -229
- package/dist/docs/inline-message.json +8 -8
- package/dist/docs/inline-message.md +37 -31
- package/dist/docs/inline.json +1 -1
- package/dist/docs/inline.md +4 -1
- package/dist/docs/list-item.examples.md +769 -0
- package/dist/docs/list-item.json +113 -38
- package/dist/docs/list-item.md +85 -202
- 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/markdown.json +79 -55
- package/dist/docs/markdown.md +585 -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.examples.md +14 -2
- package/dist/docs/menu.json +1 -1
- package/dist/docs/message-scroller.examples.md +1359 -0
- package/dist/docs/message-scroller.json +41 -17
- package/dist/docs/message-scroller.md +93 -134
- package/dist/docs/message.examples.md +954 -0
- package/dist/docs/message.json +68 -18
- package/dist/docs/message.md +39 -327
- package/dist/docs/meter.json +58 -26
- package/dist/docs/meter.md +312 -32
- package/dist/docs/navigation-menu.examples.md +1116 -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 +1062 -0
- package/dist/docs/page-header.json +83 -43
- package/dist/docs/page-header.md +80 -292
- package/dist/docs/page.examples.md +651 -0
- package/dist/docs/page.json +48 -16
- package/dist/docs/page.md +62 -129
- package/dist/docs/popover.json +17 -2
- package/dist/docs/popover.md +2 -0
- package/dist/docs/progress-indicator.json +10 -1
- package/dist/docs/progress-indicator.md +2 -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 +1097 -0
- package/dist/docs/saved-views.json +53 -21
- package/dist/docs/saved-views.md +85 -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 +679 -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 +78 -28
- package/dist/docs/segmented-control.md +21 -192
- package/dist/docs/side-navigation.examples.md +1473 -0
- package/dist/docs/side-navigation.json +53 -53
- package/dist/docs/side-navigation.md +79 -354
- package/dist/docs/skeleton.json +2 -2
- package/dist/docs/skeleton.md +2 -2
- 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 -33
- package/dist/docs/status-indicator.md +410 -66
- package/dist/docs/stepper.json +53 -21
- package/dist/docs/stepper.md +363 -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/table.json +2 -1
- package/dist/docs/table.md +2 -2
- package/dist/docs/tabs.examples.md +6 -4
- package/dist/docs/tabs.json +7 -5
- package/dist/docs/tabs.md +2 -2
- 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 +622 -0
- package/dist/docs/timeline.json +44 -28
- package/dist/docs/timeline.md +34 -208
- package/dist/docs/toggle-group.json +2 -0
- package/dist/docs/toggle-group.md +1 -1
- package/dist/docs/toggle.json +2 -0
- package/dist/docs/toggle.md +1 -1
- package/dist/docs/tokens.md +8 -0
- package/dist/docs/toolbar.examples.md +529 -0
- package/dist/docs/toolbar.json +58 -18
- package/dist/docs/toolbar.md +36 -171
- package/dist/docs/tooltip.examples.md +46 -0
- package/dist/docs/tooltip.json +23 -0
- package/dist/docs/tooltip.md +2 -0
- package/dist/docs/top-navigation.examples.md +1308 -140
- package/dist/docs/top-navigation.json +49 -33
- package/dist/docs/top-navigation.md +92 -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/tree.examples.md +5 -2
- package/dist/docs/tree.json +2 -2
- package/dist/docs/typography.json +96 -0
- package/dist/docs/typography.md +365 -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/visually-hidden.json +3 -3
- package/dist/docs/visually-hidden.md +68 -41
- package/dist/docs/wizard.examples.md +1389 -0
- package/dist/docs/wizard.json +90 -49
- package/dist/docs/wizard.md +123 -264
- package/dist/drawer-JP3p-QZB.js +879 -0
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-CC4VoC3p.js → entity-picker-BWpuo-mp.js} +341 -334
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CjmF_e0H.js → event-calendar-Bxx8eoGK.js} +10 -6
- package/dist/event-calendar.js +1 -1
- package/dist/{field-C-HRhke0.js → field-N0TiMbaI.js} +2 -2
- package/dist/{field-group-CU0PasvW.js → field-group-BrnE6FvP.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-B3QJD7SZ.js → filter-bar-nQH58RVl.js} +361 -347
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CTItbEfH.js → hover-card-D9-rb9ts.js} +67 -63
- package/dist/hover-card.js +1 -1
- package/dist/{icon-button-N8Madx6i.js → icon-button-DzPkQamc.js} +0 -1
- package/dist/import-export-center-BpGga5jr.js +869 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +105 -105
- package/dist/{listbox-ZqiJ2yer.js → listbox-3XVusnCr.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-BxIktMtQ.js → loading-overlay-BzycGqQA.js} +1 -1
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-BdskE4-L.js → markdown-BMda5ino.js} +15 -15
- 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/message-P91bEGyV.js +455 -0
- package/dist/message.js +2 -2
- package/dist/{multi-select-Dc2d6dDB.js → multi-select-IpsZvoQ2.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-menu-parts-CRLmigjy.js → navigation-menu-parts-D-vsDdEF.js} +5 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/{notification-center-BngAw_kt.js → notification-center-CTSfrh9K.js} +3 -3
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BQ54hXmk.js → number-field-Cp33JMGB.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-DRooqa3f.js → otp-input-CEP60HOi.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-header-DmwBGwlm.js → page-header-DK896DGD.js} +105 -110
- package/dist/page-header.js +1 -1
- package/dist/{picker-frame-B6sPCP5Y.js → picker-frame-C3Fhjfaj.js} +1 -1
- package/dist/popover-DED1MTi-.js +615 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-indicator-DRr0Gj6w.js → progress-indicator-Co8e7M5K.js} +6 -3
- package/dist/progress-indicator.js +1 -1
- package/dist/{prompt-composer-tYIs39rn.js → prompt-composer-CwjvdgBR.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-AW3xcYYh.js → radio-group-D6bOV_ea.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-h3qdHLNi.js → rating-D8BvDdjM.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-nqn0SDXn.js → saved-views-D-CP7JIE.js} +8 -5
- package/dist/saved-views.js +1 -1
- package/dist/section-CVTQdWBl.js +216 -0
- package/dist/section.js +2 -2
- package/dist/{segmented-control-CbK7SurB.js → segmented-control-BLcGhQ4J.js} +3 -3
- package/dist/segmented-control.js +1 -1
- package/dist/{select-d448Wkzb.js → select-Dbc3ng0M.js} +2 -2
- package/dist/{select-tags-3792weoq.js → select-tags-D0SMDPBX.js} +25 -24
- package/dist/select.js +1 -1
- package/dist/{side-navigation-CKRETc8E.js → side-navigation-Dw3-P12f.js} +181 -181
- package/dist/side-navigation.js +1 -1
- package/dist/{skeleton-DeEOmm1y.js → skeleton-DTqt2GEv.js} +27 -20
- package/dist/skeleton.js +1 -1
- package/dist/{slider-DQ2CnxTO.js → slider-COLWTaxi.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-D4MPKSB2.js → split-button-Czr2D3HP.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-CL3Xe6pV.js → stat-card-D6NMjkZM.js} +13 -15
- 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/accordion.css +1 -1
- package/dist/styles/action-bar.css +2 -2
- package/dist/styles/action-sheet.css +5 -3
- package/dist/styles/app-shell.css +3 -3
- package/dist/styles/attachment.css +3 -3
- package/dist/styles/avatar-group.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/breadcrumb.css +1 -1
- package/dist/styles/button.css +2 -2
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/cascader.css +7 -7
- package/dist/styles/chart.css +6 -4
- package/dist/styles/checkbox-group.css +6 -2
- package/dist/styles/checkbox.css +7 -3
- package/dist/styles/clock.css +1 -1
- package/dist/styles/code-block.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/color-picker.css +9 -5
- package/dist/styles/column-manager.css +9 -9
- package/dist/styles/combobox.css +7 -3
- package/dist/styles/command-palette.css +5 -5
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +7 -3
- package/dist/styles/dashboard-grid.css +6 -6
- package/dist/styles/data-grid.css +19 -19
- package/dist/styles/data-list.css +9 -9
- package/dist/styles/date-field.css +7 -3
- package/dist/styles/date-picker.css +8 -4
- package/dist/styles/date-range-picker.css +8 -4
- package/dist/styles/datetime-field.css +7 -3
- package/dist/styles/datetime-picker.css +10 -6
- package/dist/styles/datetime-range-picker.css +9 -5
- package/dist/styles/description-list.css +1 -1
- package/dist/styles/detail-panel.css +7 -7
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +5 -1
- package/dist/styles/entity-picker.css +10 -8
- package/dist/styles/event-calendar.css +12 -8
- package/dist/styles/field-group.css +6 -2
- package/dist/styles/field.css +6 -2
- package/dist/styles/filter-bar.css +20 -20
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/hover-card.css +5 -1
- package/dist/styles/import-export-center.css +24 -24
- package/dist/styles/index.css +87 -85
- package/dist/styles/inline.css +1 -1
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/list-item.css +1 -1
- package/dist/styles/listbox.css +7 -3
- package/dist/styles/loading-overlay.css +3 -3
- package/dist/styles/markdown.css +8 -8
- package/dist/styles/media-viewer.css +2 -2
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +2 -2
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +9 -7
- package/dist/styles/navigation-menu.css +1 -1
- package/dist/styles/notification-center.css +5 -5
- package/dist/styles/number-field.css +7 -3
- package/dist/styles/otp-input.css +7 -3
- package/dist/styles/page-header.css +4 -4
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/popover.css +5 -1
- package/dist/styles/progress-indicator.css +2 -2
- package/dist/styles/prompt-composer.css +6 -4
- package/dist/styles/radio-group.css +7 -3
- package/dist/styles/rating.css +7 -3
- package/dist/styles/saved-views.css +8 -6
- package/dist/styles/section.css +1 -1
- package/dist/styles/segmented-control.css +7 -3
- package/dist/styles/select.css +8 -4
- package/dist/styles/side-navigation.css +4 -4
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/slider.css +6 -2
- package/dist/styles/split-button.css +3 -3
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/status-indicator.css +1 -1
- package/dist/styles/stepper.css +1 -1
- package/dist/styles/switch.css +6 -6
- package/dist/styles/table-of-contents.css +1 -1
- package/dist/styles/table.css +18 -18
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/tag.css +1 -1
- package/dist/styles/tags-input.css +8 -4
- package/dist/styles/text-field.css +7 -3
- package/dist/styles/textarea.css +7 -3
- package/dist/styles/time-field.css +7 -3
- package/dist/styles/time-picker.css +8 -4
- package/dist/styles/time-range-picker.css +8 -4
- package/dist/styles/timeline.css +2 -2
- package/dist/styles/toast.css +3 -3
- package/dist/styles/toggle-group.css +7 -3
- package/dist/styles/toggle.css +1 -1
- package/dist/styles/toolbar.css +2 -2
- package/dist/styles/top-navigation.css +5 -5
- package/dist/styles/tour.css +3 -3
- package/dist/styles/transfer.css +9 -9
- package/dist/styles/tree.css +1 -1
- package/dist/styles/upload.css +10 -6
- package/dist/styles/wizard.css +8 -8
- package/dist/styles.css +1 -1
- package/dist/{switch-DxMukg7F.js → switch-CEbZkLlX.js} +2 -2
- package/dist/switch.js +1 -1
- package/dist/{table-BecApjeD.js → table-BU7XsbQX.js} +169 -162
- package/dist/{table-of-contents-kFr_3Dzs.js → table-of-contents-C410GoEC.js} +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/{tags-input-CqCeLtk-.js → tags-input-BdjkB19P.js} +260 -257
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-CMOkJ9Z6.js → text-field-QJnu-rln.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DfqPfXTr.js → textarea-DsrXI3xB.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-GyLQsxcc.js → time-field-DlZdMsNw.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-CGHPnust.js → time-picker-WmeCIySv.js} +5 -5
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-BMRtAqPy.js → time-range-picker-CwSbsJPt.js} +6 -6
- 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/{toast-aM_ga1mc.js → toast-C3xLEFDE.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-DZEWkVRo.js → toggle-group-SP_W-yeh.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toolbar-BniP4i1C.js +249 -0
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-UPICnTij.js +418 -0
- package/dist/tooltip.js +1 -1
- package/dist/top-navigation--OcOpGCy.js +744 -0
- package/dist/top-navigation.js +2 -2
- package/dist/{tour-ALH5CYMY.js → tour-7-TXdrMv.js} +2 -2
- package/dist/tour.js +1 -1
- package/dist/{transfer-sKUvmEKe.js → transfer-DX6umI2M.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.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/carousel/carousel-parts.d.ts +2 -2
- package/dist/types/cascader/cascader-surface.d.ts +6 -1
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/clock/clock.types.d.ts +5 -2
- package/dist/types/clock/clock.types.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/context-menu/context-menu.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +2 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/description-list/description-list-parts.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/drawer/drawer-parts.d.ts +8 -3
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +2 -1
- package/dist/types/drawer/drawer.types.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
- package/dist/types/hover-card/hover-card.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/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/navigation-menu/navigation-menu-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/popover/index.d.ts +1 -1
- package/dist/types/popover/index.d.ts.map +1 -1
- package/dist/types/popover/popover-defaults.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts +2 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/popover/popover.d.ts +1 -1
- package/dist/types/popover/popover.d.ts.map +1 -1
- package/dist/types/popover/popover.types.d.ts +20 -0
- package/dist/types/popover/popover.types.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-bar.d.ts.map +1 -1
- package/dist/types/saved-views/saved-views.d.ts +1 -0
- package/dist/types/saved-views/saved-views.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/select-tags.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region-context.d.ts +2 -0
- package/dist/types/skeleton/skeleton-region-context.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton.d.ts.map +1 -1
- package/dist/types/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/table/table-parts.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-defaults.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip.d.ts +1 -1
- package/dist/types/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip.types.d.ts +17 -0
- package/dist/types/tooltip/tooltip.types.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
- package/dist/types/tour/tour.d.ts.map +1 -1
- package/dist/{upload-CuMOaPK3.js → upload-BtD1nLHa.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{use-date-picker-DdSX3RE4.js → use-date-picker-CwH791Jm.js} +2 -2
- package/dist/{use-picker-draft-I_pxqYsc.js → use-picker-draft-BnLS4lDY.js} +1 -1
- package/dist/wizard-6PTtBoi4.js +838 -0
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/action-sheet-BouG2qh_.js +0 -360
- package/dist/attachment-MqczA38F.js +0 -292
- package/dist/detail-panel-EImAtksY.js +0 -327
- package/dist/drawer-CQagePr_.js +0 -830
- package/dist/import-export-center-CW8YVZev.js +0 -867
- package/dist/message-D1Dd6Y2k.js +0 -452
- package/dist/popover-1DlOu95x.js +0 -576
- package/dist/section-D_qOfdxR.js +0 -213
- package/dist/toolbar-BP7ka6lN.js +0 -243
- package/dist/tooltip-DrFiRlH8.js +0 -411
- package/dist/top-navigation-D8IHPOmm.js +0 -744
- package/dist/wizard-4c0X7Bx_.js +0 -838
package/dist/docs/carousel.json
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"part": "autoplay",
|
|
126
126
|
"element": "button (CarouselAutoplay)",
|
|
127
127
|
"required": false,
|
|
128
|
-
"purpose": "The rotation control, named by the action it performs — Stop rotation, Resume rotation — with no pressed state.
|
|
128
|
+
"purpose": "The rotation control, named by the action it performs — Stop rotation, Resume rotation — with no pressed state. Hidden in a carousel that does not rotate. Written first, so it is first in the tab sequence."
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"part": "indicators",
|
|
@@ -152,126 +152,126 @@
|
|
|
152
152
|
"type": "number",
|
|
153
153
|
"defaultValue": "—",
|
|
154
154
|
"appliesTo": "Carousel",
|
|
155
|
-
"description": "Present means the consumer owns the page, counted from 0. defaultPage is the uncontrolled half"
|
|
155
|
+
"description": "Present means the consumer owns the page, counted from 0. defaultPage is the uncontrolled half."
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"name": "defaultPage",
|
|
159
159
|
"type": "number",
|
|
160
160
|
"defaultValue": "0",
|
|
161
161
|
"appliesTo": "Carousel",
|
|
162
|
-
"description": "The page an uncontrolled carousel starts on"
|
|
162
|
+
"description": "The page an uncontrolled carousel starts on."
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"name": "autoplay",
|
|
166
166
|
"type": "boolean | number",
|
|
167
167
|
"defaultValue": "false",
|
|
168
168
|
"appliesTo": "Carousel",
|
|
169
|
-
"description": "Turns the rotation on: true waits autoplayDelay, a number waits that many milliseconds"
|
|
169
|
+
"description": "Turns the rotation on: true waits autoplayDelay, a number waits that many milliseconds."
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"name": "autoplayDelay",
|
|
173
173
|
"type": "number",
|
|
174
174
|
"defaultValue": "5000",
|
|
175
175
|
"appliesTo": "CarouselDefaultsProvider",
|
|
176
|
-
"description": "The wait on a page when autoplay is true; written as --slotted-carousel-autoplay-delay"
|
|
176
|
+
"description": "The wait on a page when autoplay is true; written as --slotted-carousel-autoplay-delay."
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
"name": "playing",
|
|
180
180
|
"type": "boolean",
|
|
181
181
|
"defaultValue": "—",
|
|
182
182
|
"appliesTo": "Carousel",
|
|
183
|
-
"description": "Present means the consumer owns whether the rotation runs. defaultPlaying is the uncontrolled half"
|
|
183
|
+
"description": "Present means the consumer owns whether the rotation runs. defaultPlaying is the uncontrolled half."
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"name": "defaultPlaying",
|
|
187
187
|
"type": "boolean",
|
|
188
188
|
"defaultValue": "true with autoplay, false under reduced motion",
|
|
189
189
|
"appliesTo": "Carousel",
|
|
190
|
-
"description": "Whether an uncontrolled rotation starts running"
|
|
190
|
+
"description": "Whether an uncontrolled rotation starts running."
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"name": "loop",
|
|
194
194
|
"type": "boolean",
|
|
195
195
|
"defaultValue": "false",
|
|
196
196
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
197
|
-
"description": "Next on the last page goes to the first; without it the rotation stops there"
|
|
197
|
+
"description": "Next on the last page goes to the first; without it the rotation stops there."
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"name": "orientation",
|
|
201
201
|
"type": "'horizontal' | 'vertical'",
|
|
202
202
|
"defaultValue": "horizontal",
|
|
203
203
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
204
|
-
"description": "The axis of the track, the arrows and the keys"
|
|
204
|
+
"description": "The axis of the track, the arrows and the keys."
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"name": "transition",
|
|
208
208
|
"type": "'slide' | 'fade'",
|
|
209
209
|
"defaultValue": "slide",
|
|
210
210
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
211
|
-
"description": "A scroll with snap, or slides stacked and crossfaded"
|
|
211
|
+
"description": "A scroll with snap, or slides stacked and crossfaded."
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"name": "align",
|
|
215
215
|
"type": "'start' | 'center'",
|
|
216
216
|
"defaultValue": "start",
|
|
217
217
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
218
|
-
"description": "Where a page snaps; center makes every slide a page"
|
|
218
|
+
"description": "Where a page snaps; center makes every slide a page."
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
"name": "arrows",
|
|
222
222
|
"type": "'inset' | 'outside'",
|
|
223
223
|
"defaultValue": "inset",
|
|
224
224
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
225
|
-
"description": "Where previous and next stand when they are children of the root"
|
|
225
|
+
"description": "Where previous and next stand when they are children of the root."
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"name": "size",
|
|
229
229
|
"type": "'sm' | 'md' | 'lg'",
|
|
230
230
|
"defaultValue": "md",
|
|
231
231
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
232
|
-
"description": "The step of the control scale the round controls take"
|
|
232
|
+
"description": "The step of the control scale the round controls take."
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
"name": "slidesPerView",
|
|
236
236
|
"type": "number",
|
|
237
237
|
"defaultValue": "1",
|
|
238
238
|
"appliesTo": "Carousel",
|
|
239
|
-
"description": "Written as --slotted-carousel-slides-per-view; unset, a container query of the consumer’s may write it"
|
|
239
|
+
"description": "Written as --slotted-carousel-slides-per-view; unset, a container query of the consumer’s may write it."
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"name": "slidesPerMove",
|
|
243
243
|
"type": "number | 'page'",
|
|
244
244
|
"defaultValue": "page",
|
|
245
245
|
"appliesTo": "Carousel",
|
|
246
|
-
"description": "How many slides a page moves; page is the slides wholly in view"
|
|
246
|
+
"description": "How many slides a page moves; page is the slides wholly in view."
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"name": "draggable",
|
|
250
250
|
"type": "boolean",
|
|
251
251
|
"defaultValue": "true",
|
|
252
252
|
"appliesTo": "Carousel, CarouselDefaultsProvider",
|
|
253
|
-
"description": "Whether a mouse drags the row; a finger and a trackpad always scroll it"
|
|
253
|
+
"description": "Whether a mouse drags the row; a finger and a trackpad always scroll it."
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
"name": "messages",
|
|
257
257
|
"type": "PartialMessages<CarouselMessages>",
|
|
258
258
|
"defaultValue": "—",
|
|
259
259
|
"appliesTo": "Carousel",
|
|
260
|
-
"description": "Words laid over the language in force, key by key: roleDescription, slide, indicators, indicator, previous, next, stop, start, viewport, announce — with {index}, {page} and {count}"
|
|
260
|
+
"description": "Words laid over the language in force, key by key: roleDescription, slide, indicators, indicator, previous, next, stop, start, viewport, announce — with {index}, {page} and {count}."
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"name": "children",
|
|
264
264
|
"type": "ReactNode",
|
|
265
265
|
"defaultValue": "the chevron, play or pause glyph",
|
|
266
266
|
"appliesTo": "CarouselPrevious, CarouselNext, CarouselAutoplay",
|
|
267
|
-
"description": "Replaces the glyph; the accessible name stays the message unless aria-label is given"
|
|
267
|
+
"description": "Replaces the glyph; the accessible name stays the message unless aria-label is given."
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"name": "CarouselDefaultsProvider",
|
|
271
271
|
"type": "{ orientation, transition, align, arrows, size, loop, draggable, autoplayDelay }",
|
|
272
272
|
"defaultValue": "—",
|
|
273
273
|
"appliesTo": "a subtree",
|
|
274
|
-
"description": "The decisions an application takes once"
|
|
274
|
+
"description": "The decisions an application takes once."
|
|
275
275
|
}
|
|
276
276
|
],
|
|
277
277
|
"composition": [],
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
{
|
|
290
290
|
"name": "onClick, onKeyDown, onFocus, onPointerEnter, onPointerLeave",
|
|
291
291
|
"payload": "the elements’ own events",
|
|
292
|
-
"when": "Whenever the elements fire them. The consumer’s handler runs first; preventing the default of a click or a key stops
|
|
292
|
+
"when": "Whenever the elements fire them. The consumer’s handler runs first; preventing the default of a click or a key stops Carousel from acting."
|
|
293
293
|
}
|
|
294
294
|
],
|
|
295
295
|
"accessibility": [
|
|
@@ -336,8 +336,10 @@
|
|
|
336
336
|
"--slotted-duration-long",
|
|
337
337
|
"--slotted-duration-loop-slow",
|
|
338
338
|
"--slotted-duration-medium",
|
|
339
|
+
"--slotted-duration-spring",
|
|
339
340
|
"--slotted-easing-enter",
|
|
340
341
|
"--slotted-easing-exit",
|
|
342
|
+
"--slotted-easing-spring",
|
|
341
343
|
"--slotted-easing-standard",
|
|
342
344
|
"--slotted-focus-ring-color",
|
|
343
345
|
"--slotted-focus-ring-offset",
|
|
@@ -376,33 +378,33 @@
|
|
|
376
378
|
{
|
|
377
379
|
"id": "orientation",
|
|
378
380
|
"title": "A column of slides",
|
|
379
|
-
"note": "orientation=\"vertical\" turns the scroller and both arrows a quarter; the
|
|
381
|
+
"note": "orientation=\"vertical\" turns the scroller and both arrows a quarter; the keys that page it are now ArrowUp and ArrowDown, and ArrowLeft and ArrowRight are left to the page. The column needs a height, which --slotted-carousel-viewport-size gives it.",
|
|
380
382
|
"language": "tsx",
|
|
381
|
-
"source": "<Carousel aria-label=\"
|
|
382
|
-
"verdict": "
|
|
383
|
+
"source": "import {\n Carousel,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst NOTICES = [\n {\n title: 'Carrier cutoff moved',\n body: 'The Antwerp pickup now leaves at 16:30 instead of 18:00.',\n },\n { title: 'Cycle count, aisle 14', body: 'Counts start Monday at 06:00 and close by noon.' },\n { title: 'Dock 3 maintenance', body: 'The dock leveler is out of service until Thursday.' },\n {\n title: 'Peak season hires',\n body: 'Twelve temporary pickers join the night shift on 3 November.',\n },\n];\n\nexport default function CarouselOrientationExample() {\n return (\n <Carousel aria-label=\"Operations notices\" orientation=\"vertical\" slidesPerView={2}>\n <CarouselViewport>\n {NOTICES.map((notice) => (\n <CarouselSlide key={notice.title}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {notice.title}\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n {notice.body}\n </Text>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n </Carousel>\n );\n}\n",
|
|
384
|
+
"verdict": "example"
|
|
383
385
|
},
|
|
384
386
|
{
|
|
385
387
|
"id": "transition",
|
|
386
388
|
"title": "Slide or fade",
|
|
387
389
|
"note": "slide moves the track on a spring timed by the theme’s long duration, which keeps the speed of a hand that lets go or of a movement it interrupts; fade stacks the slides and crossfades them — the arriving one on the enter curve, the leaving one faster on the exit curve. Under reduced motion both change at once.",
|
|
388
390
|
"language": "tsx",
|
|
389
|
-
"source": "<Carousel aria-label=\"
|
|
390
|
-
"verdict": "
|
|
391
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst NOTICES = [\n {\n title: 'Carrier cutoff moved',\n body: 'The Antwerp pickup now leaves at 16:30 instead of 18:00.',\n },\n { title: 'Cycle count, aisle 14', body: 'Counts start Monday at 06:00 and close by noon.' },\n { title: 'Dock 3 maintenance', body: 'The dock leveler is out of service until Thursday.' },\n {\n title: 'Peak season hires',\n body: 'Twelve temporary pickers join the night shift on 3 November.',\n },\n];\n\nexport default function CarouselTransitionExample() {\n return (\n <Stack gap={6}>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n transition=\"slide\"\n </Text>\n <Carousel aria-label=\"Notices that slide\" loop transition=\"slide\">\n <CarouselViewport>\n {NOTICES.map((notice) => (\n <CarouselSlide key={notice.title}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {notice.title}\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n {notice.body}\n </Text>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselControls>\n <CarouselPrevious />\n <CarouselIndicators />\n <CarouselNext />\n </CarouselControls>\n </Carousel>\n </Stack>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n transition=\"fade\"\n </Text>\n <Carousel aria-label=\"Notices that fade\" loop transition=\"fade\">\n <CarouselViewport>\n {NOTICES.map((notice) => (\n <CarouselSlide key={notice.title}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {notice.title}\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n {notice.body}\n </Text>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselControls>\n <CarouselPrevious />\n <CarouselIndicators />\n <CarouselNext />\n </CarouselControls>\n </Carousel>\n </Stack>\n </Stack>\n );\n}\n",
|
|
392
|
+
"verdict": "example"
|
|
391
393
|
},
|
|
392
394
|
{
|
|
393
395
|
"id": "align",
|
|
394
|
-
"title": "
|
|
396
|
+
"title": "Centered, with the neighbors showing",
|
|
395
397
|
"note": "align=\"center\" makes every slide a page and centers it; --slotted-carousel-peek pads the viewport so the slides either side show at its edges. Press a slide that peeks and it comes to the center.",
|
|
396
398
|
"language": "tsx",
|
|
397
|
-
"source": "
|
|
398
|
-
"verdict": "
|
|
399
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Badge } from '@slotted/react/badge';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst DOCKS = [\n { name: 'Dock 1', status: 'Loading', tone: 'info' },\n { name: 'Dock 2', status: 'Free', tone: 'success' },\n { name: 'Dock 3', status: 'Maintenance', tone: 'warning' },\n { name: 'Dock 4', status: 'Blocked', tone: 'danger' },\n { name: 'Dock 5', status: 'Free', tone: 'success' },\n { name: 'Dock 6', status: 'Unloading', tone: 'info' },\n] as const;\n\nconst ALIGNMENTS = ['start', 'center'] as const;\n\nexport default function CarouselAlignExample() {\n return (\n <Stack gap={6}>\n {ALIGNMENTS.map((align) => (\n <Stack key={align} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n align=\"{align}\"\n </Text>\n <Carousel align={align} aria-label={`Docks, aligned to the ${align}`} slidesPerView={3}>\n <CarouselViewport>\n {DOCKS.map((dock) => (\n <CarouselSlide key={dock.name}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {dock.name}\n </Heading>\n <Badge tone={dock.tone}>{dock.status}</Badge>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n <CarouselControls>\n <CarouselIndicators />\n </CarouselControls>\n </Carousel>\n </Stack>\n ))}\n </Stack>\n );\n}\n",
|
|
400
|
+
"verdict": "example"
|
|
399
401
|
},
|
|
400
402
|
{
|
|
401
403
|
"id": "arrows",
|
|
402
404
|
"title": "Over the picture, or beside the row",
|
|
403
405
|
"note": "arrows=\"inset\" stands previous and next over the ends of the viewport, for a slideshow; \"outside\" gives them columns of their own, so a row of cards keeps its whole width and no arrow covers the first card.",
|
|
404
406
|
"language": "tsx",
|
|
405
|
-
"source": "<Carousel aria-label=\"
|
|
407
|
+
"source": "<Carousel aria-label=\"Best sellers\" arrows=\"outside\" slidesPerView={3}>\n <CarouselViewport>{cards}</CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>;\n",
|
|
406
408
|
"verdict": "excerpt"
|
|
407
409
|
},
|
|
408
410
|
{
|
|
@@ -410,40 +412,40 @@
|
|
|
410
412
|
"title": "Three control sizes",
|
|
411
413
|
"note": "size steps the round controls along the control scale — 30, 34 and 38 pixels at comfortable — and the density shrinks them with every other control. The dots keep the 24-pixel target in every size.",
|
|
412
414
|
"language": "tsx",
|
|
413
|
-
"source": "
|
|
414
|
-
"verdict": "
|
|
415
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst NOTICES = [\n {\n title: 'Carrier cutoff moved',\n body: 'The Antwerp pickup now leaves at 16:30 instead of 18:00.',\n },\n { title: 'Cycle count, aisle 14', body: 'Counts start Monday at 06:00 and close by noon.' },\n { title: 'Dock 3 maintenance', body: 'The dock leveler is out of service until Thursday.' },\n {\n title: 'Peak season hires',\n body: 'Twelve temporary pickers join the night shift on 3 November.',\n },\n];\n\nconst SIZES = ['sm', 'md', 'lg'] as const;\n\nexport default function CarouselSizesExample() {\n return (\n <Stack gap={6}>\n {SIZES.map((size) => (\n <Stack key={size} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n size=\"{size}\"\n </Text>\n <Carousel aria-label={`Notices, size ${size}`} size={size}>\n <CarouselViewport>\n {NOTICES.slice(0, 3).map((notice) => (\n <CarouselSlide key={notice.title}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {notice.title}\n </Heading>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselControls>\n <CarouselPrevious />\n <CarouselIndicators />\n <CarouselNext />\n </CarouselControls>\n </Carousel>\n </Stack>\n ))}\n </Stack>\n );\n}\n",
|
|
416
|
+
"verdict": "example"
|
|
415
417
|
},
|
|
416
418
|
{
|
|
417
419
|
"id": "indicators",
|
|
418
420
|
"title": "Dots, a line, and many pages",
|
|
419
421
|
"note": "dots draw the current page as a bar three dots long; line shares the width between segments; past eight pages the dots window themselves, the ones two steps away shrink and the rest fold away while staying in the arrow ring.",
|
|
420
422
|
"language": "tsx",
|
|
421
|
-
"source": "
|
|
422
|
-
"verdict": "
|
|
423
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselCounter,\n CarouselIndicators,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst ZONES = [\n 'Ambient',\n 'Chilled',\n 'Frozen',\n 'Bulk',\n 'Pick face',\n 'Returns',\n 'Hazmat',\n 'Quarantine',\n 'Overflow',\n 'Mezzanine',\n];\n\nconst ROWS = [\n { label: 'variant=\"dots\"', name: 'Zones, dots', variant: 'dots', zones: ZONES.slice(0, 5) },\n { label: 'variant=\"line\"', name: 'Zones, line', variant: 'line', zones: ZONES.slice(0, 5) },\n { label: 'variant=\"dots\", ten pages', name: 'All zones, dots', variant: 'dots', zones: ZONES },\n] as const;\n\nexport default function CarouselIndicatorsExample() {\n return (\n <Stack gap={6}>\n {ROWS.map((row) => (\n <Stack key={row.name} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n {row.label}\n </Text>\n <Carousel aria-label={row.name}>\n <CarouselViewport>\n {row.zones.map((zone) => (\n <CarouselSlide key={zone}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {zone}\n </Heading>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselControls>\n <CarouselIndicators variant={row.variant} />\n <CarouselCounter />\n </CarouselControls>\n </Carousel>\n </Stack>\n ))}\n </Stack>\n );\n}\n",
|
|
424
|
+
"verdict": "example"
|
|
423
425
|
},
|
|
424
426
|
{
|
|
425
427
|
"id": "thumbnails",
|
|
426
428
|
"title": "A product gallery",
|
|
427
429
|
"note": "variant=\"thumbnails\" with a function child draws each indicator from the consumer’s picture. The strip scrolls on its own when it holds more than it shows, and keeps the current picture in view — one carousel, nothing to synchronize.",
|
|
428
430
|
"language": "tsx",
|
|
429
|
-
"source": "<CarouselIndicators aria-label=\"
|
|
430
|
-
"verdict": "
|
|
431
|
+
"source": "import {\n Carousel,\n CarouselIndicator,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Image } from '@slotted/react/image';\n\nconst SITES = [\n { name: 'Rotterdam dock', src: picture('Rotterdam dock', '#1e3a5f') },\n { name: 'Cold storage', src: picture('Cold storage', '#0f766e') },\n { name: 'Cross-dock', src: picture('Cross-dock', '#7c2d12') },\n { name: 'Returns hall', src: picture('Returns hall', '#4c1d95') },\n { name: 'Outbound lanes', src: picture('Outbound lanes', '#374151') },\n];\n\nexport default function CarouselThumbnailsExample() {\n return (\n <Carousel aria-label=\"Northwind site photos\">\n <CarouselViewport>\n {SITES.map((site) => (\n <CarouselSlide key={site.name}>\n <Image alt={site.name} ratio=\"landscape\" src={site.src} />\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n <CarouselIndicators aria-label=\"Site photos\" variant=\"thumbnails\">\n {(page) => (\n <CarouselIndicator key={page} page={page}>\n <img alt={SITES[page]?.name ?? ''} src={SITES[page]?.src ?? ''} />\n </CarouselIndicator>\n )}\n </CarouselIndicators>\n </Carousel>\n );\n}\n\nfunction picture(name: string, color: string) {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 800 500\"><rect width=\"800\" height=\"500\" fill=\"${color}\"/><text x=\"400\" y=\"270\" fill=\"#ffffff\" font-family=\"sans-serif\" font-size=\"56\" text-anchor=\"middle\">${name}</text></svg>`;\n\n return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n",
|
|
432
|
+
"verdict": "example"
|
|
431
433
|
},
|
|
432
434
|
{
|
|
433
435
|
"id": "autoplay",
|
|
434
436
|
"title": "A rotation the reader controls",
|
|
435
437
|
"note": "autoplay turns it on; the current dot fills over the delay. Hovering holds it with the time that was left, a hidden browser tab holds it, and the first keyboard focus inside stops it until the rotation control starts it again.",
|
|
436
438
|
"language": "tsx",
|
|
437
|
-
"source": "<Carousel aria-label=\"
|
|
438
|
-
"verdict": "
|
|
439
|
+
"source": "import {\n Carousel,\n CarouselAutoplay,\n CarouselControls,\n CarouselIndicators,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Image } from '@slotted/react/image';\n\nconst SITES = [\n { name: 'Rotterdam dock', src: picture('Rotterdam dock', '#1e3a5f') },\n { name: 'Cold storage', src: picture('Cold storage', '#0f766e') },\n { name: 'Cross-dock', src: picture('Cross-dock', '#7c2d12') },\n { name: 'Returns hall', src: picture('Returns hall', '#4c1d95') },\n { name: 'Outbound lanes', src: picture('Outbound lanes', '#374151') },\n];\n\nexport default function CarouselAutoplayExample() {\n return (\n <Carousel aria-label=\"Northwind site highlights\" autoplay={6000} loop>\n <CarouselViewport>\n {SITES.map((site) => (\n <CarouselSlide key={site.name}>\n <Image alt={site.name} ratio=\"landscape\" src={site.src} />\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselControls placement=\"overlay\">\n <CarouselAutoplay />\n <CarouselIndicators />\n </CarouselControls>\n </Carousel>\n );\n}\n\nfunction picture(name: string, color: string) {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 800 500\"><rect width=\"800\" height=\"500\" fill=\"${color}\"/><text x=\"400\" y=\"270\" fill=\"#ffffff\" font-family=\"sans-serif\" font-size=\"56\" text-anchor=\"middle\">${name}</text></svg>`;\n\n return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n",
|
|
440
|
+
"verdict": "example"
|
|
439
441
|
},
|
|
440
442
|
{
|
|
441
443
|
"id": "multiple",
|
|
442
444
|
"title": "A row of cards that pages by what it shows",
|
|
443
445
|
"note": "slidesPerView={3} sizes the cards; the pages are read from the layout, so the row pages by three and its last page ends flush. --slotted-carousel-slide-min-size keeps a card readable when the container narrows: at 240 pixels the same carousel shows one card and the edge of the next.",
|
|
444
446
|
"language": "tsx",
|
|
445
|
-
"source": "<Carousel aria-label=\"
|
|
446
|
-
"verdict": "
|
|
447
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Badge } from '@slotted/react/badge';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst PRODUCTS = [\n { name: 'Pallet wrap', price: '€14.50', stock: 'In stock', tone: 'success' },\n { name: 'Thermal labels', price: '€32.00', stock: 'Low stock', tone: 'warning' },\n { name: 'Cold-chain crate', price: '€96.00', stock: 'Out of stock', tone: 'danger' },\n { name: 'Handheld scanner', price: '€389.00', stock: 'In stock', tone: 'success' },\n { name: 'Safety vest', price: '€9.90', stock: 'Backorder', tone: 'info' },\n { name: 'Pallet jack', price: '€420.00', stock: 'In stock', tone: 'success' },\n] as const;\n\nexport default function CarouselMultipleExample() {\n return (\n <Carousel aria-label=\"Warehouse supplies\" arrows=\"outside\" slidesPerView={3}>\n <CarouselViewport>\n {PRODUCTS.map((product) => (\n <CarouselSlide key={product.name}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {product.name}\n </Heading>\n <Text numeric=\"tabular\" size=\"sm\">\n {product.price}\n </Text>\n <Badge tone={product.tone}>{product.stock}</Badge>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n <CarouselControls>\n <CarouselIndicators variant=\"line\" />\n </CarouselControls>\n </Carousel>\n );\n}\n",
|
|
448
|
+
"verdict": "example"
|
|
447
449
|
},
|
|
448
450
|
{
|
|
449
451
|
"id": "loop",
|
|
@@ -458,40 +460,40 @@
|
|
|
458
460
|
"title": "A page the application owns",
|
|
459
461
|
"note": "page and onPageChange make the page the application’s; the request carries the reason — pointer, keyboard, scroll, timeout, resize, programmatic. The buttons outside the carousel move it through the same state, and the log shows each request.",
|
|
460
462
|
"language": "tsx",
|
|
461
|
-
"source": "const [page, setPage] = useState(0);\n
|
|
462
|
-
"verdict": "
|
|
463
|
+
"source": "import { useState } from 'react';\nimport {\n Carousel,\n CarouselAutoplay,\n CarouselControls,\n CarouselIndicators,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport type { CarouselPageRequest, CarouselPlayingRequest } from '@slotted/react/carousel';\nimport { Button } from '@slotted/react/button';\nimport { Card, CardBody } from '@slotted/react/card';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst NOTICES = [\n {\n title: 'Carrier cutoff moved',\n body: 'The Antwerp pickup now leaves at 16:30 instead of 18:00.',\n },\n { title: 'Cycle count, aisle 14', body: 'Counts start Monday at 06:00 and close by noon.' },\n { title: 'Dock 3 maintenance', body: 'The dock leveler is out of service until Thursday.' },\n {\n title: 'Peak season hires',\n body: 'Twelve temporary pickers join the night shift on 3 November.',\n },\n];\n\nexport default function CarouselControlledExample() {\n const [page, setPage] = useState(0);\n const [playing, setPlaying] = useState(false);\n const [lastRequest, setLastRequest] = useState('No request yet.');\n\n function handlePageChange(next: number, request: CarouselPageRequest) {\n setPage(next);\n setLastRequest(`Page ${next + 1} requested by ${request.reason}.`);\n }\n\n function handlePlayingChange(next: boolean, request: CarouselPlayingRequest) {\n setPlaying(next);\n setLastRequest(`Rotation ${next ? 'started' : 'stopped'} by ${request.reason}.`);\n }\n\n function handlePrevious() {\n setPage((page + NOTICES.length - 1) % NOTICES.length);\n }\n\n function handleNext() {\n setPage((page + 1) % NOTICES.length);\n }\n\n return (\n <Stack gap={4}>\n <Carousel\n aria-label=\"Operations notices\"\n autoplay={4000}\n loop\n onPageChange={handlePageChange}\n onPlayingChange={handlePlayingChange}\n page={page}\n playing={playing}\n >\n <CarouselViewport>\n {NOTICES.map((notice) => (\n <CarouselSlide key={notice.title}>\n <Card>\n <CardBody>\n <Heading level={2} size=\"sm\">\n {notice.title}\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n {notice.body}\n </Text>\n </CardBody>\n </Card>\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselControls>\n <CarouselAutoplay />\n <CarouselIndicators />\n </CarouselControls>\n </Carousel>\n <Inline gap={2}>\n <Button onClick={handlePrevious} variant=\"outline\">\n Previous notice\n </Button>\n <Button onClick={handleNext} variant=\"outline\">\n Next notice\n </Button>\n </Inline>\n <Text size=\"sm\" tone=\"muted\">\n {lastRequest}\n </Text>\n </Stack>\n );\n}\n",
|
|
464
|
+
"verdict": "example"
|
|
463
465
|
},
|
|
464
466
|
{
|
|
465
467
|
"id": "states",
|
|
466
468
|
"title": "Every control in every state",
|
|
467
|
-
"note": "Hover lifts a round control onto the neutral hover ground, a press shrinks it to 94
|
|
469
|
+
"note": "Hover lifts a round control onto the neutral hover ground, a press shrinks it to 94 percent, focus draws the ring two pixels out; at an end it keeps its place in the disabled ink. Use Tab to see the rings.",
|
|
468
470
|
"language": "tsx",
|
|
469
471
|
"source": "<CarouselControls>\n <CarouselPrevious />\n <CarouselIndicators />\n <CarouselNext />\n</CarouselControls>;\n",
|
|
470
472
|
"verdict": "excerpt"
|
|
471
473
|
},
|
|
472
474
|
{
|
|
473
475
|
"id": "content",
|
|
474
|
-
"title": "Content
|
|
475
|
-
"note": "Cards of different heights stand at the height of the tallest; a long
|
|
476
|
+
"title": "Content Carousel does not choose",
|
|
477
|
+
"note": "Cards of different heights stand at the height of the tallest; a long name wraps inside its card; a right-to-left page mirrors the track, the arrows and the dots, and the counter still reads first to last.",
|
|
476
478
|
"language": "tsx",
|
|
477
|
-
"source": "<div dir=\"rtl\">\n <Carousel aria-label=\"
|
|
479
|
+
"source": "<div dir=\"rtl\">\n <Carousel aria-label=\"Gallery\" slidesPerView={2}>\n …\n </Carousel>\n</div>;\n",
|
|
478
480
|
"verdict": "excerpt"
|
|
479
481
|
},
|
|
480
482
|
{
|
|
481
483
|
"id": "empty",
|
|
482
484
|
"title": "Nothing yet, and loading",
|
|
483
|
-
"note": "With no slide the
|
|
485
|
+
"note": "With no slide the indicators draw nothing and the counter reads 0 / 0; the empty state is a ResultState the consumer puts in the viewport. While the pieces load, skeleton slides with the same anatomy hold the height.",
|
|
484
486
|
"language": "tsx",
|
|
485
|
-
"source": "
|
|
486
|
-
"verdict": "
|
|
487
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselCounter,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport {\n ResultState,\n ResultStateContent,\n ResultStateDescription,\n ResultStateTitle,\n} from '@slotted/react/result-state';\n\nexport default function CarouselEmptyExample() {\n return (\n <Carousel aria-label=\"Pending shipments\">\n <CarouselViewport>\n <ResultState>\n <ResultStateContent>\n <ResultStateTitle>No shipments waiting</ResultStateTitle>\n <ResultStateDescription>\n Shipments appear here once a carrier books a pickup.\n </ResultStateDescription>\n </ResultStateContent>\n </ResultState>\n </CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n <CarouselControls>\n <CarouselIndicators />\n <CarouselCounter />\n </CarouselControls>\n </Carousel>\n );\n}\n",
|
|
488
|
+
"verdict": "example"
|
|
487
489
|
},
|
|
488
490
|
{
|
|
489
491
|
"id": "composition",
|
|
490
492
|
"title": "Inside a product page",
|
|
491
493
|
"note": "The gallery beside the buy box, as a product page lays them out: the picture and its thumbnails on the start, the name, the price and the action on the end. handleRef.scrollToSlide takes the gallery to the picture of the color chosen.",
|
|
492
494
|
"language": "tsx",
|
|
493
|
-
"source": "const gallery = useRef<CarouselHandle>(null);\n\n
|
|
494
|
-
"verdict": "
|
|
495
|
+
"source": "import { useRef, useState } from 'react';\nimport {\n Carousel,\n CarouselIndicator,\n CarouselIndicators,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport type { CarouselHandle } from '@slotted/react/carousel';\nimport { Button } from '@slotted/react/button';\nimport { Image } from '@slotted/react/image';\nimport { Segment, SegmentedControl } from '@slotted/react/segmented-control';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst FINISHES = [\n { label: 'Graphite', value: 'graphite', src: picture('Graphite', '#374151') },\n { label: 'Cobalt', value: 'cobalt', src: picture('Cobalt', '#1e3a8a') },\n { label: 'Sand', value: 'sand', src: picture('Sand', '#a16207') },\n];\n\nexport default function CarouselCompositionExample() {\n const gallery = useRef<CarouselHandle>(null);\n const [page, setPage] = useState(0);\n\n const finish = FINISHES[page]?.value;\n\n function handleFinishChange(value: string) {\n gallery.current?.scrollToSlide(FINISHES.findIndex((item) => item.value === value));\n }\n\n return (\n <Stack gap={4}>\n <Carousel\n aria-label=\"Label printer photos\"\n handleRef={gallery}\n onPageChange={(next) => {\n setPage(next);\n }}\n >\n <CarouselViewport>\n {FINISHES.map((item) => (\n <CarouselSlide key={item.value}>\n <Image alt={`Label printer, ${item.label}`} ratio=\"landscape\" src={item.src} />\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselIndicators aria-label=\"Photos\" variant=\"thumbnails\">\n {(index) => (\n <CarouselIndicator key={index} page={index}>\n <img alt={FINISHES[index]?.label ?? ''} src={FINISHES[index]?.src ?? ''} />\n </CarouselIndicator>\n )}\n </CarouselIndicators>\n </Carousel>\n <Stack gap={1}>\n <Heading level={2} size=\"md\">\n Thermal label printer\n </Heading>\n <Text numeric=\"tabular\">€249.00</Text>\n </Stack>\n <SegmentedControl aria-label=\"Finish\" onValueChange={handleFinishChange} value={finish}>\n {FINISHES.map((item) => (\n <Segment key={item.value} value={item.value}>\n {item.label}\n </Segment>\n ))}\n </SegmentedControl>\n <Button>Add to order</Button>\n </Stack>\n );\n}\n\nfunction picture(name: string, color: string) {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 800 500\"><rect width=\"800\" height=\"500\" fill=\"${color}\"/><text x=\"400\" y=\"270\" fill=\"#ffffff\" font-family=\"sans-serif\" font-size=\"56\" text-anchor=\"middle\">${name}</text></svg>`;\n\n return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n",
|
|
496
|
+
"verdict": "example"
|
|
495
497
|
},
|
|
496
498
|
{
|
|
497
499
|
"id": "keyboard",
|
|
@@ -500,6 +502,14 @@
|
|
|
500
502
|
"language": "tsx",
|
|
501
503
|
"source": "<Carousel aria-label=\"Collection\">\n <CarouselViewport>{slides}</CarouselViewport>\n <CarouselControls>\n <CarouselIndicators />\n </CarouselControls>\n</Carousel>;\n",
|
|
502
504
|
"verdict": "excerpt"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"id": "basic",
|
|
508
|
+
"title": "basic.tsx",
|
|
509
|
+
"note": null,
|
|
510
|
+
"language": "tsx",
|
|
511
|
+
"source": "import {\n Carousel,\n CarouselControls,\n CarouselCounter,\n CarouselIndicators,\n CarouselNext,\n CarouselPrevious,\n CarouselSlide,\n CarouselViewport,\n} from '@slotted/react/carousel';\nimport { Image } from '@slotted/react/image';\n\nconst SITES = [\n { name: 'Rotterdam dock', src: picture('Rotterdam dock', '#1e3a5f') },\n { name: 'Cold storage', src: picture('Cold storage', '#0f766e') },\n { name: 'Cross-dock', src: picture('Cross-dock', '#7c2d12') },\n { name: 'Returns hall', src: picture('Returns hall', '#4c1d95') },\n { name: 'Outbound lanes', src: picture('Outbound lanes', '#374151') },\n];\n\nexport default function CarouselBasicExample() {\n return (\n <Carousel aria-label=\"Northwind sites\">\n <CarouselViewport>\n {SITES.map((site) => (\n <CarouselSlide key={site.name}>\n <Image alt={site.name} ratio=\"landscape\" src={site.src} />\n </CarouselSlide>\n ))}\n </CarouselViewport>\n <CarouselPrevious />\n <CarouselNext />\n <CarouselControls>\n <CarouselIndicators />\n <CarouselCounter />\n </CarouselControls>\n </Carousel>\n );\n}\n\nfunction picture(name: string, color: string) {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 800 500\"><rect width=\"800\" height=\"500\" fill=\"${color}\"/><text x=\"400\" y=\"270\" fill=\"#ffffff\" font-family=\"sans-serif\" font-size=\"56\" text-anchor=\"middle\">${name}</text></svg>`;\n\n return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n",
|
|
512
|
+
"verdict": "example"
|
|
503
513
|
}
|
|
504
514
|
]
|
|
505
515
|
}
|