@slotted/react 0.1.0-beta.43 → 0.1.0-beta.45
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-DsWhsSMU.js → app-shell-BBPY0_KK.js} +215 -194
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-TZykYNu5.js → attachment-DJDXJrCx.js} +1 -1
- package/dist/attachment.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/{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-Bgf5tfCI.js → command-palette-DwjkexvN.js} +15 -7
- 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-DUft3rJb.js → data-grid-BlElqHOU.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-Dv3orBtf.js → data-list-5zvM-DUz.js} +4 -3
- 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-Cke3ZFU3.js → detail-panel-Czs05E_D.js} +52 -50
- package/dist/detail-panel.js +1 -1
- 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 +353 -301
- package/dist/docs/app-shell.json +14 -13
- package/dist/docs/app-shell.md +13 -8
- package/dist/docs/avatar-group.examples.md +790 -0
- package/dist/docs/avatar-group.json +9 -9
- package/dist/docs/avatar-group.md +17 -516
- 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.json +2 -0
- package/dist/docs/button.md +1 -1
- package/dist/docs/calendar.json +0 -1
- package/dist/docs/calendar.md +1 -1
- package/dist/docs/carousel.json +2 -0
- package/dist/docs/carousel.md +1 -1
- package/dist/docs/clock.json +4 -4
- package/dist/docs/clock.md +2 -2
- package/dist/docs/collapsible.json +10 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/color-picker.json +14 -1
- package/dist/docs/color-picker.md +2 -1
- package/dist/docs/description-list.json +7 -0
- package/dist/docs/description-list.md +1 -0
- package/dist/docs/drawer.examples.md +1 -1
- package/dist/docs/drawer.json +4 -4
- package/dist/docs/entity-picker.examples.md +123 -0
- package/dist/docs/entity-picker.json +9 -9
- package/dist/docs/entity-picker.md +15 -0
- package/dist/docs/event-calendar.json +7 -0
- package/dist/docs/event-calendar.md +1 -0
- package/dist/docs/filter-bar.json +1 -0
- package/dist/docs/filter-bar.md +1 -1
- package/dist/docs/floating-panel.json +7 -3
- package/dist/docs/floating-panel.md +23 -5
- package/dist/docs/hover-card.json +8 -1
- package/dist/docs/hover-card.md +5 -1
- package/dist/docs/import-export-center.examples.md +1 -1
- package/dist/docs/import-export-center.json +3 -13
- package/dist/docs/import-export-center.md +2 -3
- 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.json +3 -0
- package/dist/docs/list-item.md +1 -1
- package/dist/docs/markdown.json +1 -1
- package/dist/docs/markdown.md +5 -1
- package/dist/docs/media-viewer.examples.md +1 -1
- package/dist/docs/media-viewer.json +1 -1
- package/dist/docs/menu.examples.md +14 -2
- package/dist/docs/menu.json +1 -1
- package/dist/docs/message-scroller.examples.md +230 -64
- package/dist/docs/message-scroller.json +11 -11
- package/dist/docs/message-scroller.md +18 -5
- package/dist/docs/message.examples.md +14 -4
- package/dist/docs/message.json +7 -5
- package/dist/docs/message.md +6 -2
- package/dist/docs/navigation-menu.examples.md +16 -7
- package/dist/docs/navigation-menu.json +6 -6
- package/dist/docs/navigation-menu.md +1 -1
- package/dist/docs/page-header.examples.md +79 -58
- package/dist/docs/page-header.json +10 -2
- package/dist/docs/page-header.md +1 -1
- package/dist/docs/page.examples.md +31 -13
- package/dist/docs/page.json +1 -1
- 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/saved-views.examples.md +2 -13
- package/dist/docs/saved-views.json +8 -8
- package/dist/docs/saved-views.md +0 -1
- package/dist/docs/section.examples.md +25 -22
- package/dist/docs/section.json +1 -1
- package/dist/docs/segmented-control.json +2 -0
- package/dist/docs/segmented-control.md +1 -1
- package/dist/docs/side-navigation.examples.md +6 -1
- package/dist/docs/side-navigation.json +1 -1
- package/dist/docs/skeleton.json +2 -2
- package/dist/docs/skeleton.md +2 -2
- package/dist/docs/stat-card.examples.md +4 -4
- package/dist/docs/stat-card.json +4 -4
- package/dist/docs/status-indicator.json +0 -1
- package/dist/docs/status-indicator.md +1 -1
- package/dist/docs/stepper.json +1 -1
- package/dist/docs/stepper.md +2 -8
- 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/timeline.examples.md +6 -1
- package/dist/docs/timeline.json +1 -1
- 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 +14 -14
- package/dist/docs/toolbar.md +29 -458
- 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 +200 -98
- package/dist/docs/top-navigation.json +12 -12
- package/dist/docs/top-navigation.md +6 -1
- package/dist/docs/tree.examples.md +5 -2
- package/dist/docs/tree.json +2 -2
- package/dist/docs/typography.json +1 -1
- package/dist/docs/typography.md +33 -20
- package/dist/docs/visually-hidden.json +3 -3
- package/dist/docs/visually-hidden.md +68 -41
- package/dist/docs/wizard.json +1 -0
- package/dist/docs/wizard.md +1 -1
- package/dist/drawer-JP3p-QZB.js +879 -0
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-C78f3Z0o.js → entity-picker-BWpuo-mp.js} +334 -330
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-DJPoCi-O.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-D61wiQFP.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 +88 -88
- 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-8CtV4k44.js → markdown-BMda5ino.js} +13 -13
- package/dist/markdown.js +1 -1
- 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-jeAIQSZM.js → page-header-DK896DGD.js} +2 -2
- 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/{segmented-control-BSMVjukr.js → segmented-control-BLcGhQ4J.js} +2 -2
- 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-BQzBxz2B.js → side-navigation-Dw3-P12f.js} +3 -3
- 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-BpGZiFbG.js → stat-card-D6NMjkZM.js} +1 -1
- package/dist/stat-card.js +1 -1
- 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 +7 -7
- 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 +89 -87
- 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 +2 -2
- 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/{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-YSEQzBhD.js → top-navigation--OcOpGCy.js} +3 -3
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-ALH5CYMY.js → tour-7-TXdrMv.js} +2 -2
- package/dist/tour.js +1 -1
- package/dist/{transfer-Cv5yQuTN.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/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.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/navigation-menu/navigation-menu-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/select/select-tags.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/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/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/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/drawer-CQagePr_.js +0 -830
- package/dist/import-export-center-mqvmlzwB.js +0 -875
- package/dist/popover-1DlOu95x.js +0 -576
- package/dist/toolbar-BP7ka6lN.js +0 -243
- package/dist/tooltip-DrFiRlH8.js +0 -411
- package/dist/wizard-Dfryz1id.js +0 -838
package/dist/docs/list-item.md
CHANGED
|
@@ -138,7 +138,7 @@ export default function ListItemBasicExample() {
|
|
|
138
138
|
|
|
139
139
|
## Tokens
|
|
140
140
|
|
|
141
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-list-fill-inset`, `--slotted-list-item-background`, `--slotted-list-item-background-active`, `--slotted-list-item-background-current`, `--slotted-list-item-background-hover`, `--slotted-list-item-background-selected`, `--slotted-list-item-body-gap`, `--slotted-list-item-body-min-inline-size`, `--slotted-list-item-border-color`, `--slotted-list-item-border-width`, `--slotted-list-item-color`, `--slotted-list-item-color-disabled`, `--slotted-list-item-color-muted`, `--slotted-list-item-control-size`, `--slotted-list-item-control-size-lg`, `--slotted-list-item-control-size-sm`, `--slotted-list-item-description-font-size`, `--slotted-list-item-font-size`, `--slotted-list-item-font-size-lg`, `--slotted-list-item-font-size-sm`, `--slotted-list-item-font-weight`, `--slotted-list-item-font-weight-current`, `--slotted-list-item-font-weight-selected`, `--slotted-list-item-gap`, `--slotted-list-item-gap-lg`, `--slotted-list-item-gap-sm`, `--slotted-list-item-icon-size`, `--slotted-list-item-icon-size-lg`, `--slotted-list-item-icon-size-sm`, `--slotted-list-item-min-block-size`, `--slotted-list-item-min-block-size-lg`, `--slotted-list-item-min-block-size-sm`, `--slotted-list-item-padding-block`, `--slotted-list-item-padding-block-lg`, `--slotted-list-item-padding-block-sm`, `--slotted-list-item-padding-inline`, `--slotted-list-item-padding-inline-lg`, `--slotted-list-item-padding-inline-sm`, `--slotted-list-item-radius`, `--slotted-radius-md`, `--slotted-selection-size-lg`, `--slotted-selection-size-md`, `--slotted-selection-size-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
141
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-fine-height-lg`, `--slotted-control-fine-height-md`, `--slotted-control-fine-height-sm`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-list-fill-inset`, `--slotted-list-item-background`, `--slotted-list-item-background-active`, `--slotted-list-item-background-current`, `--slotted-list-item-background-hover`, `--slotted-list-item-background-selected`, `--slotted-list-item-body-gap`, `--slotted-list-item-body-min-inline-size`, `--slotted-list-item-border-color`, `--slotted-list-item-border-width`, `--slotted-list-item-color`, `--slotted-list-item-color-disabled`, `--slotted-list-item-color-muted`, `--slotted-list-item-control-size`, `--slotted-list-item-control-size-lg`, `--slotted-list-item-control-size-sm`, `--slotted-list-item-description-font-size`, `--slotted-list-item-font-size`, `--slotted-list-item-font-size-lg`, `--slotted-list-item-font-size-sm`, `--slotted-list-item-font-weight`, `--slotted-list-item-font-weight-current`, `--slotted-list-item-font-weight-selected`, `--slotted-list-item-gap`, `--slotted-list-item-gap-lg`, `--slotted-list-item-gap-sm`, `--slotted-list-item-icon-size`, `--slotted-list-item-icon-size-lg`, `--slotted-list-item-icon-size-sm`, `--slotted-list-item-min-block-size`, `--slotted-list-item-min-block-size-lg`, `--slotted-list-item-min-block-size-sm`, `--slotted-list-item-padding-block`, `--slotted-list-item-padding-block-lg`, `--slotted-list-item-padding-block-sm`, `--slotted-list-item-padding-inline`, `--slotted-list-item-padding-inline-lg`, `--slotted-list-item-padding-inline-sm`, `--slotted-list-item-radius`, `--slotted-radius-md`, `--slotted-selection-size-lg`, `--slotted-selection-size-md`, `--slotted-selection-size-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-success-border`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
142
142
|
|
|
143
143
|
## Examples
|
|
144
144
|
|
package/dist/docs/markdown.json
CHANGED
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
"title": "Renderers and extensions",
|
|
428
428
|
"note": "renderers replaces the element of a known type — here the link becomes the application’s router link. extensions draws a type Markdown does not know: an @name mention that a pass over the tree created. A type without a renderer does not appear.",
|
|
429
429
|
"language": "tsx",
|
|
430
|
-
"source": "import { useState } from 'react';\nimport type { MouseEvent } from 'react';\n\nimport type { MarkdownNode } from '@slotted/core/markdown';\nimport { Link } from '@slotted/react/link';\nimport { Markdown } from '@slotted/react/markdown';\nimport type { MarkdownExtensions, MarkdownRenderers } from '@slotted/react/markdown';\nimport { Stack } from '@slotted/react/stack';\nimport { Tag } from '@slotted/react/tag';\nimport { Text } from '@slotted/react/typography';\n\nconst TREE: MarkdownNode = {\n type: 'root',\n children: [\n {\n type: 'paragraph',\n children: [\n { type: 'mention', value: 'dana.ortiz' },\n { type: 'text', value: ' approved the carrier change and ' },\n { type: 'mention', value: 'luis.mendes' },\n { type: 'text', value: ' confirms the pickup. The details are in the ' },\n { type: 'link', url: '/orders/48213', children: [{ type: 'text', value: 'order record' }] },\n { type: 'text', value: '.' },\n ],\n },\n ],\n};\n\nconst EXTENSIONS: MarkdownExtensions = {\n mention: ({ element }) => <Tag size=\"sm\"
|
|
430
|
+
"source": "import { useState } from 'react';\nimport type { MouseEvent } from 'react';\n\nimport type { MarkdownNode } from '@slotted/core/markdown';\nimport { Link } from '@slotted/react/link';\nimport { Markdown } from '@slotted/react/markdown';\nimport type { MarkdownExtensions, MarkdownRenderers } from '@slotted/react/markdown';\nimport { Stack } from '@slotted/react/stack';\nimport { Tag } from '@slotted/react/tag';\nimport { Text } from '@slotted/react/typography';\n\nconst TREE: MarkdownNode = {\n type: 'root',\n children: [\n {\n type: 'paragraph',\n children: [\n { type: 'mention', value: 'dana.ortiz' },\n { type: 'text', value: ' approved the carrier change and ' },\n { type: 'mention', value: 'luis.mendes' },\n { type: 'text', value: ' confirms the pickup. The details are in the ' },\n { type: 'link', url: '/orders/48213', children: [{ type: 'text', value: 'order record' }] },\n { type: 'text', value: '.' },\n ],\n },\n ],\n};\n\nconst EXTENSIONS: MarkdownExtensions = {\n mention: ({ element }) => (\n <Tag inline size=\"sm\">\n @{String(element.node.value)}\n </Tag>\n ),\n};\n\nexport default function MarkdownRenderersExample() {\n const [route, setRoute] = useState('/');\n\n const renderers: MarkdownRenderers = {\n link: ({ element, children }) => (\n <Link href={element.href} onClick={(event) => handleNavigate(event, element.href)}>\n {children}\n </Link>\n ),\n };\n\n function handleNavigate(event: MouseEvent<HTMLAnchorElement>, href: string) {\n event.preventDefault();\n setRoute(href);\n }\n\n return (\n <Stack gap={4}>\n <Markdown extensions={EXTENSIONS} renderers={renderers} size=\"md\" tree={TREE} />\n <Text size=\"sm\" tone=\"muted\">\n Current route: {route}\n </Text>\n </Stack>\n );\n}\n",
|
|
431
431
|
"verdict": "example"
|
|
432
432
|
},
|
|
433
433
|
{
|
package/dist/docs/markdown.md
CHANGED
|
@@ -505,7 +505,11 @@ const TREE: MarkdownNode = {
|
|
|
505
505
|
};
|
|
506
506
|
|
|
507
507
|
const EXTENSIONS: MarkdownExtensions = {
|
|
508
|
-
mention: ({ element }) =>
|
|
508
|
+
mention: ({ element }) => (
|
|
509
|
+
<Tag inline size="sm">
|
|
510
|
+
@{String(element.node.value)}
|
|
511
|
+
</Tag>
|
|
512
|
+
),
|
|
509
513
|
};
|
|
510
514
|
|
|
511
515
|
export default function MarkdownRenderersExample() {
|
|
@@ -632,7 +632,7 @@ export default function MediaViewerActionsExample() {
|
|
|
632
632
|
<MediaViewerBar>
|
|
633
633
|
<MediaViewerHeading />
|
|
634
634
|
<MediaViewerActions>
|
|
635
|
-
<Button onClick={handleFlag}
|
|
635
|
+
<Button onClick={handleFlag} tone="neutral" variant="ghost">
|
|
636
636
|
Flag for claim
|
|
637
637
|
</Button>
|
|
638
638
|
<MediaViewerDownload />
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
"title": "actions.tsx",
|
|
584
584
|
"note": null,
|
|
585
585
|
"language": "tsx",
|
|
586
|
-
"source": "import { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport {\n MediaViewer,\n MediaViewerActions,\n MediaViewerBar,\n MediaViewerClose,\n MediaViewerDownload,\n MediaViewerHeading,\n MediaViewerNext,\n MediaViewerPrevious,\n MediaViewerStage,\n MediaViewerZoom,\n type MediaViewerItem,\n} from '@slotted/react/media-viewer';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\nimport { useState } from 'react';\n\nconst photo = (width: number, height: number, sky: string, crate: string) =>\n 'data:image/svg+xml,' +\n encodeURIComponent(\n `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${String(width)}\" height=\"${String(height)}\">` +\n `<rect width=\"100%\" height=\"100%\" fill=\"${sky}\"/>` +\n `<rect y=\"${String(height * 0.7)}\" width=\"100%\" height=\"${String(height * 0.3)}\" fill=\"#4b5563\"/>` +\n `<rect x=\"${String(width * 0.3)}\" y=\"${String(height * 0.4)}\" width=\"${String(width * 0.4)}\" height=\"${String(height * 0.3)}\" fill=\"${crate}\"/>` +\n '</svg>',\n );\n\nconst FRONT: MediaViewerItem = {\n id: 'front',\n name: 'pallet-front.jpg',\n type: 'image/jpeg',\n src: photo(2400, 1600, '#bfdbfe', '#c2410c'),\n caption: 'Front face of pallet 7: two crushed corners.',\n downloadHref: '#pallet-front.jpg',\n};\n\nconst REAR: MediaViewerItem = {\n id: 'rear',\n name: 'pallet-rear.jpg',\n type: 'image/jpeg',\n src: photo(1200, 1600, '#e0e7ff', '#9a3412'),\n caption: 'Rear face, taken on the dock.',\n downloadHref: '#pallet-rear.jpg',\n};\n\nconst LABEL: MediaViewerItem = {\n id: 'label',\n name: 'carrier-label.jpg',\n type: 'image/jpeg',\n src: photo(320, 200, '#fde68a', '#78350f'),\n downloadHref: '#carrier-label.jpg',\n};\n\nconst PHOTOS = [FRONT, REAR, LABEL];\n\nexport default function MediaViewerActionsExample() {\n const [open, setOpen] = useState(false);\n const [value, setValue] = useState('front');\n const [flagged, setFlagged] = useState('No photograph flagged for the claim.');\n\n function handleFlag() {\n const file = PHOTOS.find((photo) => photo.id === value);\n setFlagged(`${file?.name ?? value} flagged for the claim.`);\n }\n\n return (\n <Stack gap={2}>\n <Inline gap={2}>\n <Button onClick={() => setOpen(true)} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Review damage photographs\n </Button>\n </Inline>\n <Text size=\"sm\" tone=\"muted\">\n {flagged}\n </Text>\n <MediaViewer\n items={PHOTOS}\n open={open}\n onOpenChange={setOpen}\n value={value}\n onValueChange={setValue}\n >\n <MediaViewerBar>\n <MediaViewerHeading />\n <MediaViewerActions>\n <Button onClick={handleFlag}
|
|
586
|
+
"source": "import { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport {\n MediaViewer,\n MediaViewerActions,\n MediaViewerBar,\n MediaViewerClose,\n MediaViewerDownload,\n MediaViewerHeading,\n MediaViewerNext,\n MediaViewerPrevious,\n MediaViewerStage,\n MediaViewerZoom,\n type MediaViewerItem,\n} from '@slotted/react/media-viewer';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\nimport { useState } from 'react';\n\nconst photo = (width: number, height: number, sky: string, crate: string) =>\n 'data:image/svg+xml,' +\n encodeURIComponent(\n `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${String(width)}\" height=\"${String(height)}\">` +\n `<rect width=\"100%\" height=\"100%\" fill=\"${sky}\"/>` +\n `<rect y=\"${String(height * 0.7)}\" width=\"100%\" height=\"${String(height * 0.3)}\" fill=\"#4b5563\"/>` +\n `<rect x=\"${String(width * 0.3)}\" y=\"${String(height * 0.4)}\" width=\"${String(width * 0.4)}\" height=\"${String(height * 0.3)}\" fill=\"${crate}\"/>` +\n '</svg>',\n );\n\nconst FRONT: MediaViewerItem = {\n id: 'front',\n name: 'pallet-front.jpg',\n type: 'image/jpeg',\n src: photo(2400, 1600, '#bfdbfe', '#c2410c'),\n caption: 'Front face of pallet 7: two crushed corners.',\n downloadHref: '#pallet-front.jpg',\n};\n\nconst REAR: MediaViewerItem = {\n id: 'rear',\n name: 'pallet-rear.jpg',\n type: 'image/jpeg',\n src: photo(1200, 1600, '#e0e7ff', '#9a3412'),\n caption: 'Rear face, taken on the dock.',\n downloadHref: '#pallet-rear.jpg',\n};\n\nconst LABEL: MediaViewerItem = {\n id: 'label',\n name: 'carrier-label.jpg',\n type: 'image/jpeg',\n src: photo(320, 200, '#fde68a', '#78350f'),\n downloadHref: '#carrier-label.jpg',\n};\n\nconst PHOTOS = [FRONT, REAR, LABEL];\n\nexport default function MediaViewerActionsExample() {\n const [open, setOpen] = useState(false);\n const [value, setValue] = useState('front');\n const [flagged, setFlagged] = useState('No photograph flagged for the claim.');\n\n function handleFlag() {\n const file = PHOTOS.find((photo) => photo.id === value);\n setFlagged(`${file?.name ?? value} flagged for the claim.`);\n }\n\n return (\n <Stack gap={2}>\n <Inline gap={2}>\n <Button onClick={() => setOpen(true)} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Review damage photographs\n </Button>\n </Inline>\n <Text size=\"sm\" tone=\"muted\">\n {flagged}\n </Text>\n <MediaViewer\n items={PHOTOS}\n open={open}\n onOpenChange={setOpen}\n value={value}\n onValueChange={setValue}\n >\n <MediaViewerBar>\n <MediaViewerHeading />\n <MediaViewerActions>\n <Button onClick={handleFlag} tone=\"neutral\" variant=\"ghost\">\n Flag for claim\n </Button>\n <MediaViewerDownload />\n </MediaViewerActions>\n <MediaViewerClose />\n </MediaViewerBar>\n <MediaViewerStage />\n <MediaViewerPrevious />\n <MediaViewerNext />\n <MediaViewerZoom />\n </MediaViewer>\n </Stack>\n );\n}\n",
|
|
587
587
|
"verdict": "example"
|
|
588
588
|
},
|
|
589
589
|
{
|
|
@@ -555,7 +555,14 @@ export default function MenuAccountMenu() {
|
|
|
555
555
|
render={(props) => (
|
|
556
556
|
<Button
|
|
557
557
|
{...props}
|
|
558
|
-
start={
|
|
558
|
+
start={
|
|
559
|
+
<Avatar
|
|
560
|
+
decorative
|
|
561
|
+
name="Maria Chen"
|
|
562
|
+
src="https://api.dicebear.com/11.x/lorelei/svg?seed=Maria%20Chen&backgroundColor=b6e3f4,c0aede,d1d4f9,ffd5dc,ffdfbf"
|
|
563
|
+
size="sm"
|
|
564
|
+
/>
|
|
565
|
+
}
|
|
559
566
|
variant="ghost"
|
|
560
567
|
>
|
|
561
568
|
Maria Chen
|
|
@@ -564,7 +571,12 @@ export default function MenuAccountMenu() {
|
|
|
564
571
|
/>
|
|
565
572
|
<MenuContent>
|
|
566
573
|
<MenuHeader>
|
|
567
|
-
<Avatar
|
|
574
|
+
<Avatar
|
|
575
|
+
decorative
|
|
576
|
+
name="Maria Chen"
|
|
577
|
+
src="https://api.dicebear.com/11.x/lorelei/svg?seed=Maria%20Chen&backgroundColor=b6e3f4,c0aede,d1d4f9,ffd5dc,ffdfbf"
|
|
578
|
+
size="md"
|
|
579
|
+
/>
|
|
568
580
|
<MenuItemLabel>Maria Chen</MenuItemLabel>
|
|
569
581
|
<MenuItemDescription>maria.chen@northwind.example</MenuItemDescription>
|
|
570
582
|
</MenuHeader>
|
package/dist/docs/menu.json
CHANGED
|
@@ -931,7 +931,7 @@
|
|
|
931
931
|
"title": "account-menu.tsx",
|
|
932
932
|
"note": null,
|
|
933
933
|
"language": "tsx",
|
|
934
|
-
"source": "import { useState } from 'react';\nimport { Avatar } from '@slotted/react/avatar';\nimport { Button } from '@slotted/react/button';\nimport { Glyph, type GlyphName, Icon } from '@slotted/react/icon';\nimport {\n Menu,\n MenuContent,\n MenuHeader,\n MenuItem,\n MenuItemDescription,\n MenuItemLabel,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuTrigger,\n} from '@slotted/react/menu';\n\nconst WORKSPACES = ['Northwind Operations', 'Northwind Europe', 'Northwind Wholesale'];\n\nconst mark = (name: GlyphName) => (\n <Icon>\n <Glyph name={name} />\n </Icon>\n);\n\nexport default function MenuAccountMenu() {\n const [workspace, setWorkspace] = useState('Northwind Operations');\n\n return (\n <Menu align=\"end\">\n <MenuTrigger\n render={(props) => (\n <Button\n {...props}\n start={<Avatar
|
|
934
|
+
"source": "import { useState } from 'react';\nimport { Avatar } from '@slotted/react/avatar';\nimport { Button } from '@slotted/react/button';\nimport { Glyph, type GlyphName, Icon } from '@slotted/react/icon';\nimport {\n Menu,\n MenuContent,\n MenuHeader,\n MenuItem,\n MenuItemDescription,\n MenuItemLabel,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuTrigger,\n} from '@slotted/react/menu';\n\nconst WORKSPACES = ['Northwind Operations', 'Northwind Europe', 'Northwind Wholesale'];\n\nconst mark = (name: GlyphName) => (\n <Icon>\n <Glyph name={name} />\n </Icon>\n);\n\nexport default function MenuAccountMenu() {\n const [workspace, setWorkspace] = useState('Northwind Operations');\n\n return (\n <Menu align=\"end\">\n <MenuTrigger\n render={(props) => (\n <Button\n {...props}\n start={\n <Avatar\n decorative\n name=\"Maria Chen\"\n src=\"https://api.dicebear.com/11.x/lorelei/svg?seed=Maria%20Chen&backgroundColor=b6e3f4,c0aede,d1d4f9,ffd5dc,ffdfbf\"\n size=\"sm\"\n />\n }\n variant=\"ghost\"\n >\n Maria Chen\n </Button>\n )}\n />\n <MenuContent>\n <MenuHeader>\n <Avatar\n decorative\n name=\"Maria Chen\"\n src=\"https://api.dicebear.com/11.x/lorelei/svg?seed=Maria%20Chen&backgroundColor=b6e3f4,c0aede,d1d4f9,ffd5dc,ffdfbf\"\n size=\"md\"\n />\n <MenuItemLabel>Maria Chen</MenuItemLabel>\n <MenuItemDescription>maria.chen@northwind.example</MenuItemDescription>\n </MenuHeader>\n <MenuSeparator />\n <MenuItem icon={mark('person')}>Profile</MenuItem>\n <MenuItem icon={mark('bell')}>Notifications</MenuItem>\n <Menu>\n <MenuTrigger meta={workspace.replace('Northwind ', '')}>Workspace</MenuTrigger>\n <MenuContent>\n <MenuRadioGroup onValueChange={setWorkspace} value={workspace}>\n {WORKSPACES.map((name) => (\n <MenuRadioItem key={name} value={name}>\n {name}\n </MenuRadioItem>\n ))}\n </MenuRadioGroup>\n </MenuContent>\n </Menu>\n <MenuSeparator />\n <MenuItem icon={mark('arrow-left')} tone=\"danger\">\n Sign out\n </MenuItem>\n </MenuContent>\n </Menu>\n );\n}\n",
|
|
935
935
|
"verdict": "example"
|
|
936
936
|
},
|
|
937
937
|
{
|
|
@@ -47,6 +47,16 @@ import { useEffect, useState } from 'react';
|
|
|
47
47
|
|
|
48
48
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
49
49
|
import { Button } from '@slotted/react/button';
|
|
50
|
+
import {
|
|
51
|
+
Bubble,
|
|
52
|
+
BubbleCaret,
|
|
53
|
+
BubbleContent,
|
|
54
|
+
BubbleStream,
|
|
55
|
+
Message,
|
|
56
|
+
MessageAuthor,
|
|
57
|
+
MessageBody,
|
|
58
|
+
MessageHeader,
|
|
59
|
+
} from '@slotted/react/message';
|
|
50
60
|
import {
|
|
51
61
|
MessageScroller,
|
|
52
62
|
MessageScrollerContent,
|
|
@@ -55,7 +65,6 @@ import {
|
|
|
55
65
|
MessageScrollerViewport,
|
|
56
66
|
} from '@slotted/react/message-scroller';
|
|
57
67
|
import { Stack } from '@slotted/react/stack';
|
|
58
|
-
import { Text } from '@slotted/react/typography';
|
|
59
68
|
|
|
60
69
|
const REPLY =
|
|
61
70
|
'Pallet P-7731 reached the Rotterdam hub at 19:48. The temperature log stayed between -19 and -18 degrees C for the whole trip, so no quality hold is needed. The receiving team can release the pallet to the cold room.';
|
|
@@ -132,18 +141,33 @@ export default function MessageScrollerFollowExample() {
|
|
|
132
141
|
<MessageScrollerContent>
|
|
133
142
|
{ROWS.map((row) => (
|
|
134
143
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
145
|
+
<MessageBody>
|
|
146
|
+
<MessageHeader>
|
|
147
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
148
|
+
</MessageHeader>
|
|
149
|
+
<Bubble>
|
|
150
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
151
|
+
</Bubble>
|
|
152
|
+
</MessageBody>
|
|
153
|
+
</Message>
|
|
139
154
|
</MessageScrollerItem>
|
|
140
155
|
))}
|
|
141
156
|
{length === null ? null : (
|
|
142
157
|
<MessageScrollerItem messageId="live">
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
158
|
+
<Message status={streaming ? 'streaming' : undefined}>
|
|
159
|
+
<MessageBody>
|
|
160
|
+
<MessageHeader>
|
|
161
|
+
<MessageAuthor>Dispatch assistant</MessageAuthor>
|
|
162
|
+
</MessageHeader>
|
|
163
|
+
<Bubble>
|
|
164
|
+
<BubbleContent>
|
|
165
|
+
<BubbleStream text={REPLY.slice(0, length)} />
|
|
166
|
+
{streaming ? <BubbleCaret /> : null}
|
|
167
|
+
</BubbleContent>
|
|
168
|
+
</Bubble>
|
|
169
|
+
</MessageBody>
|
|
170
|
+
</Message>
|
|
147
171
|
</MessageScrollerItem>
|
|
148
172
|
)}
|
|
149
173
|
</MessageScrollerContent>
|
|
@@ -167,6 +191,14 @@ import { useState } from 'react';
|
|
|
167
191
|
|
|
168
192
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
169
193
|
import { Button } from '@slotted/react/button';
|
|
194
|
+
import {
|
|
195
|
+
Bubble,
|
|
196
|
+
BubbleContent,
|
|
197
|
+
Message,
|
|
198
|
+
MessageAuthor,
|
|
199
|
+
MessageBody,
|
|
200
|
+
MessageHeader,
|
|
201
|
+
} from '@slotted/react/message';
|
|
170
202
|
import {
|
|
171
203
|
MessageScroller,
|
|
172
204
|
MessageScrollerContent,
|
|
@@ -175,7 +207,6 @@ import {
|
|
|
175
207
|
MessageScrollerViewport,
|
|
176
208
|
} from '@slotted/react/message-scroller';
|
|
177
209
|
import { Stack } from '@slotted/react/stack';
|
|
178
|
-
import { Text } from '@slotted/react/typography';
|
|
179
210
|
|
|
180
211
|
const FOLLOW_UPS = [
|
|
181
212
|
{
|
|
@@ -270,10 +301,16 @@ export default function MessageScrollerAnchorExample() {
|
|
|
270
301
|
<MessageScrollerContent>
|
|
271
302
|
{rows.map((row) => (
|
|
272
303
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
273
|
-
<
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
304
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
305
|
+
<MessageBody>
|
|
306
|
+
<MessageHeader>
|
|
307
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
308
|
+
</MessageHeader>
|
|
309
|
+
<Bubble>
|
|
310
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
311
|
+
</Bubble>
|
|
312
|
+
</MessageBody>
|
|
313
|
+
</Message>
|
|
277
314
|
</MessageScrollerItem>
|
|
278
315
|
))}
|
|
279
316
|
</MessageScrollerContent>
|
|
@@ -296,6 +333,14 @@ Example
|
|
|
296
333
|
import { useEffect, useState } from 'react';
|
|
297
334
|
|
|
298
335
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
336
|
+
import {
|
|
337
|
+
Bubble,
|
|
338
|
+
BubbleContent,
|
|
339
|
+
Message,
|
|
340
|
+
MessageAuthor,
|
|
341
|
+
MessageBody,
|
|
342
|
+
MessageHeader,
|
|
343
|
+
} from '@slotted/react/message';
|
|
299
344
|
import {
|
|
300
345
|
MessageScroller,
|
|
301
346
|
MessageScrollerContent,
|
|
@@ -415,10 +460,16 @@ export default function MessageScrollerHistoryExample() {
|
|
|
415
460
|
{loading ? <MessageScrollerLoader /> : null}
|
|
416
461
|
{rows.map((row) => (
|
|
417
462
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
418
|
-
<
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
463
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
464
|
+
<MessageBody>
|
|
465
|
+
<MessageHeader>
|
|
466
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
467
|
+
</MessageHeader>
|
|
468
|
+
<Bubble>
|
|
469
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
470
|
+
</Bubble>
|
|
471
|
+
</MessageBody>
|
|
472
|
+
</Message>
|
|
422
473
|
</MessageScrollerItem>
|
|
423
474
|
))}
|
|
424
475
|
</MessageScrollerContent>
|
|
@@ -442,6 +493,14 @@ import { useState } from 'react';
|
|
|
442
493
|
|
|
443
494
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
444
495
|
import { Button } from '@slotted/react/button';
|
|
496
|
+
import {
|
|
497
|
+
Bubble,
|
|
498
|
+
BubbleContent,
|
|
499
|
+
Message,
|
|
500
|
+
MessageAuthor,
|
|
501
|
+
MessageBody,
|
|
502
|
+
MessageHeader,
|
|
503
|
+
} from '@slotted/react/message';
|
|
445
504
|
import {
|
|
446
505
|
MessageScroller,
|
|
447
506
|
MessageScrollerContent,
|
|
@@ -450,7 +509,6 @@ import {
|
|
|
450
509
|
MessageScrollerViewport,
|
|
451
510
|
} from '@slotted/react/message-scroller';
|
|
452
511
|
import { Stack } from '@slotted/react/stack';
|
|
453
|
-
import { Text } from '@slotted/react/typography';
|
|
454
512
|
|
|
455
513
|
const INCOMING = [
|
|
456
514
|
{
|
|
@@ -539,10 +597,16 @@ export default function MessageScrollerJumpExample() {
|
|
|
539
597
|
<MessageScrollerContent>
|
|
540
598
|
{rows.map((row) => (
|
|
541
599
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
542
|
-
<
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
600
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
601
|
+
<MessageBody>
|
|
602
|
+
<MessageHeader>
|
|
603
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
604
|
+
</MessageHeader>
|
|
605
|
+
<Bubble>
|
|
606
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
607
|
+
</Bubble>
|
|
608
|
+
</MessageBody>
|
|
609
|
+
</Message>
|
|
546
610
|
</MessageScrollerItem>
|
|
547
611
|
))}
|
|
548
612
|
</MessageScrollerContent>
|
|
@@ -568,6 +632,14 @@ import { useRef, useState } from 'react';
|
|
|
568
632
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
569
633
|
import { Button } from '@slotted/react/button';
|
|
570
634
|
import { Inline } from '@slotted/react/inline';
|
|
635
|
+
import {
|
|
636
|
+
Bubble,
|
|
637
|
+
BubbleContent,
|
|
638
|
+
Message,
|
|
639
|
+
MessageAuthor,
|
|
640
|
+
MessageBody,
|
|
641
|
+
MessageHeader,
|
|
642
|
+
} from '@slotted/react/message';
|
|
571
643
|
import {
|
|
572
644
|
MessageScroller,
|
|
573
645
|
MessageScrollerContent,
|
|
@@ -577,7 +649,6 @@ import {
|
|
|
577
649
|
} from '@slotted/react/message-scroller';
|
|
578
650
|
import type { MessageScrollerHandle } from '@slotted/react/message-scroller';
|
|
579
651
|
import { Stack } from '@slotted/react/stack';
|
|
580
|
-
import { Text } from '@slotted/react/typography';
|
|
581
652
|
|
|
582
653
|
const TURNS = [
|
|
583
654
|
{ id: 'q1', label: 'Pickup' },
|
|
@@ -665,10 +736,16 @@ export default function MessageScrollerNavigatorExample() {
|
|
|
665
736
|
<MessageScrollerContent>
|
|
666
737
|
{ROWS.map((row) => (
|
|
667
738
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
668
|
-
<
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
739
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
740
|
+
<MessageBody>
|
|
741
|
+
<MessageHeader>
|
|
742
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
743
|
+
</MessageHeader>
|
|
744
|
+
<Bubble>
|
|
745
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
746
|
+
</Bubble>
|
|
747
|
+
</MessageBody>
|
|
748
|
+
</Message>
|
|
672
749
|
</MessageScrollerItem>
|
|
673
750
|
))}
|
|
674
751
|
</MessageScrollerContent>
|
|
@@ -689,6 +766,14 @@ Example
|
|
|
689
766
|
|
|
690
767
|
```tsx
|
|
691
768
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
769
|
+
import {
|
|
770
|
+
Bubble,
|
|
771
|
+
BubbleContent,
|
|
772
|
+
Message,
|
|
773
|
+
MessageAuthor,
|
|
774
|
+
MessageBody,
|
|
775
|
+
MessageHeader,
|
|
776
|
+
} from '@slotted/react/message';
|
|
692
777
|
import {
|
|
693
778
|
MessageScroller,
|
|
694
779
|
MessageScrollerContent,
|
|
@@ -697,7 +782,6 @@ import {
|
|
|
697
782
|
MessageScrollerSeparator,
|
|
698
783
|
MessageScrollerViewport,
|
|
699
784
|
} from '@slotted/react/message-scroller';
|
|
700
|
-
import { Text } from '@slotted/react/typography';
|
|
701
785
|
|
|
702
786
|
const ITEMS = [
|
|
703
787
|
{ id: 's1', kind: 'day', text: 'Yesterday' },
|
|
@@ -759,10 +843,16 @@ export default function MessageScrollerSeparatorsExample() {
|
|
|
759
843
|
<MessageScrollerItem key={item.id}>
|
|
760
844
|
{item.kind === 'message' ? (
|
|
761
845
|
<>
|
|
762
|
-
<
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
846
|
+
<Message>
|
|
847
|
+
<MessageBody>
|
|
848
|
+
<MessageHeader>
|
|
849
|
+
<MessageAuthor>{item.author}</MessageAuthor>
|
|
850
|
+
</MessageHeader>
|
|
851
|
+
<Bubble>
|
|
852
|
+
<BubbleContent>{item.text}</BubbleContent>
|
|
853
|
+
</Bubble>
|
|
854
|
+
</MessageBody>
|
|
855
|
+
</Message>
|
|
766
856
|
</>
|
|
767
857
|
) : (
|
|
768
858
|
<MessageScrollerSeparator sticky={item.kind === 'day'}>
|
|
@@ -788,6 +878,14 @@ Example
|
|
|
788
878
|
|
|
789
879
|
```tsx
|
|
790
880
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
881
|
+
import {
|
|
882
|
+
Bubble,
|
|
883
|
+
BubbleContent,
|
|
884
|
+
Message,
|
|
885
|
+
MessageAuthor,
|
|
886
|
+
MessageBody,
|
|
887
|
+
MessageHeader,
|
|
888
|
+
} from '@slotted/react/message';
|
|
791
889
|
import {
|
|
792
890
|
MessageScroller,
|
|
793
891
|
MessageScrollerContent,
|
|
@@ -796,7 +894,6 @@ import {
|
|
|
796
894
|
MessageScrollerUnread,
|
|
797
895
|
MessageScrollerViewport,
|
|
798
896
|
} from '@slotted/react/message-scroller';
|
|
799
|
-
import { Text } from '@slotted/react/typography';
|
|
800
897
|
|
|
801
898
|
const READ = [
|
|
802
899
|
{ id: 'r1', author: 'Dana Reyes', text: 'Is the Antwerp transfer on track?' },
|
|
@@ -817,10 +914,16 @@ export default function MessageScrollerUnreadExample() {
|
|
|
817
914
|
<MessageScrollerContent>
|
|
818
915
|
{READ.map((row) => (
|
|
819
916
|
<MessageScrollerItem key={row.id} messageId={row.id}>
|
|
820
|
-
<
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
917
|
+
<Message>
|
|
918
|
+
<MessageBody>
|
|
919
|
+
<MessageHeader>
|
|
920
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
921
|
+
</MessageHeader>
|
|
922
|
+
<Bubble>
|
|
923
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
924
|
+
</Bubble>
|
|
925
|
+
</MessageBody>
|
|
926
|
+
</Message>
|
|
824
927
|
</MessageScrollerItem>
|
|
825
928
|
))}
|
|
826
929
|
|
|
@@ -830,10 +933,16 @@ export default function MessageScrollerUnreadExample() {
|
|
|
830
933
|
|
|
831
934
|
{UNREAD.map((row) => (
|
|
832
935
|
<MessageScrollerItem key={row.id} messageId={row.id}>
|
|
833
|
-
<
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
936
|
+
<Message>
|
|
937
|
+
<MessageBody>
|
|
938
|
+
<MessageHeader>
|
|
939
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
940
|
+
</MessageHeader>
|
|
941
|
+
<Bubble>
|
|
942
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
943
|
+
</Bubble>
|
|
944
|
+
</MessageBody>
|
|
945
|
+
</Message>
|
|
837
946
|
</MessageScrollerItem>
|
|
838
947
|
))}
|
|
839
948
|
</MessageScrollerContent>
|
|
@@ -856,6 +965,16 @@ import { useEffect, useState } from 'react';
|
|
|
856
965
|
|
|
857
966
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
858
967
|
import { Button } from '@slotted/react/button';
|
|
968
|
+
import {
|
|
969
|
+
Bubble,
|
|
970
|
+
BubbleCaret,
|
|
971
|
+
BubbleContent,
|
|
972
|
+
BubbleStream,
|
|
973
|
+
Message,
|
|
974
|
+
MessageAuthor,
|
|
975
|
+
MessageBody,
|
|
976
|
+
MessageHeader,
|
|
977
|
+
} from '@slotted/react/message';
|
|
859
978
|
import {
|
|
860
979
|
MessageScroller,
|
|
861
980
|
MessageScrollerContent,
|
|
@@ -954,18 +1073,33 @@ export default function MessageScrollerBusyExample() {
|
|
|
954
1073
|
<MessageScrollerContent>
|
|
955
1074
|
{ROWS.map((row) => (
|
|
956
1075
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
957
|
-
<
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
1076
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
1077
|
+
<MessageBody>
|
|
1078
|
+
<MessageHeader>
|
|
1079
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
1080
|
+
</MessageHeader>
|
|
1081
|
+
<Bubble>
|
|
1082
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
1083
|
+
</Bubble>
|
|
1084
|
+
</MessageBody>
|
|
1085
|
+
</Message>
|
|
961
1086
|
</MessageScrollerItem>
|
|
962
1087
|
))}
|
|
963
1088
|
{length === null ? null : (
|
|
964
1089
|
<MessageScrollerItem messageId="live">
|
|
965
|
-
<
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1090
|
+
<Message status={streaming ? 'streaming' : undefined}>
|
|
1091
|
+
<MessageBody>
|
|
1092
|
+
<MessageHeader>
|
|
1093
|
+
<MessageAuthor>Dispatch assistant</MessageAuthor>
|
|
1094
|
+
</MessageHeader>
|
|
1095
|
+
<Bubble>
|
|
1096
|
+
<BubbleContent>
|
|
1097
|
+
<BubbleStream text={REPLY.slice(0, length)} />
|
|
1098
|
+
{streaming ? <BubbleCaret /> : null}
|
|
1099
|
+
</BubbleContent>
|
|
1100
|
+
</Bubble>
|
|
1101
|
+
</MessageBody>
|
|
1102
|
+
</Message>
|
|
969
1103
|
</MessageScrollerItem>
|
|
970
1104
|
)}
|
|
971
1105
|
</MessageScrollerContent>
|
|
@@ -984,6 +1118,14 @@ Example
|
|
|
984
1118
|
|
|
985
1119
|
```tsx
|
|
986
1120
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
1121
|
+
import {
|
|
1122
|
+
Bubble,
|
|
1123
|
+
BubbleContent,
|
|
1124
|
+
Message,
|
|
1125
|
+
MessageAuthor,
|
|
1126
|
+
MessageBody,
|
|
1127
|
+
MessageHeader,
|
|
1128
|
+
} from '@slotted/react/message';
|
|
987
1129
|
import {
|
|
988
1130
|
MessageScroller,
|
|
989
1131
|
MessageScrollerContent,
|
|
@@ -992,7 +1134,6 @@ import {
|
|
|
992
1134
|
MessageScrollerViewport,
|
|
993
1135
|
} from '@slotted/react/message-scroller';
|
|
994
1136
|
import { Stack } from '@slotted/react/stack';
|
|
995
|
-
import { Text } from '@slotted/react/typography';
|
|
996
1137
|
|
|
997
1138
|
const ROWS = [
|
|
998
1139
|
{
|
|
@@ -1050,10 +1191,16 @@ export default function MessageScrollerDefaultsExample() {
|
|
|
1050
1191
|
<MessageScrollerContent>
|
|
1051
1192
|
{ROWS.map((row) => (
|
|
1052
1193
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
1053
|
-
<
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1194
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
1195
|
+
<MessageBody>
|
|
1196
|
+
<MessageHeader>
|
|
1197
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
1198
|
+
</MessageHeader>
|
|
1199
|
+
<Bubble>
|
|
1200
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
1201
|
+
</Bubble>
|
|
1202
|
+
</MessageBody>
|
|
1203
|
+
</Message>
|
|
1057
1204
|
</MessageScrollerItem>
|
|
1058
1205
|
))}
|
|
1059
1206
|
</MessageScrollerContent>
|
|
@@ -1067,10 +1214,16 @@ export default function MessageScrollerDefaultsExample() {
|
|
|
1067
1214
|
<MessageScrollerContent>
|
|
1068
1215
|
{ROWS.map((row) => (
|
|
1069
1216
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
1070
|
-
<
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1217
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
1218
|
+
<MessageBody>
|
|
1219
|
+
<MessageHeader>
|
|
1220
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
1221
|
+
</MessageHeader>
|
|
1222
|
+
<Bubble>
|
|
1223
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
1224
|
+
</Bubble>
|
|
1225
|
+
</MessageBody>
|
|
1226
|
+
</Message>
|
|
1074
1227
|
</MessageScrollerItem>
|
|
1075
1228
|
))}
|
|
1076
1229
|
</MessageScrollerContent>
|
|
@@ -1093,6 +1246,14 @@ import { useState } from 'react';
|
|
|
1093
1246
|
import { AspectRatio } from '@slotted/react/aspect-ratio';
|
|
1094
1247
|
import { Button } from '@slotted/react/button';
|
|
1095
1248
|
import { Inline } from '@slotted/react/inline';
|
|
1249
|
+
import {
|
|
1250
|
+
Bubble,
|
|
1251
|
+
BubbleContent,
|
|
1252
|
+
Message,
|
|
1253
|
+
MessageAuthor,
|
|
1254
|
+
MessageBody,
|
|
1255
|
+
MessageHeader,
|
|
1256
|
+
} from '@slotted/react/message';
|
|
1096
1257
|
import {
|
|
1097
1258
|
MessageScroller,
|
|
1098
1259
|
MessageScrollerContent,
|
|
@@ -1102,7 +1263,6 @@ import {
|
|
|
1102
1263
|
} from '@slotted/react/message-scroller';
|
|
1103
1264
|
import type { MessageScrollerPosition } from '@slotted/react/message-scroller';
|
|
1104
1265
|
import { Stack } from '@slotted/react/stack';
|
|
1105
|
-
import { Text } from '@slotted/react/typography';
|
|
1106
1266
|
|
|
1107
1267
|
const POSITIONS: MessageScrollerPosition[] = ['start', 'end', 'last-anchor'];
|
|
1108
1268
|
|
|
@@ -1176,10 +1336,16 @@ export default function MessageScrollerPositionExample() {
|
|
|
1176
1336
|
<MessageScrollerContent>
|
|
1177
1337
|
{ROWS.map((row) => (
|
|
1178
1338
|
<MessageScrollerItem key={row.id} messageId={row.id} anchor={row.own}>
|
|
1179
|
-
<
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1339
|
+
<Message align={row.own ? 'end' : 'start'}>
|
|
1340
|
+
<MessageBody>
|
|
1341
|
+
<MessageHeader>
|
|
1342
|
+
<MessageAuthor>{row.author}</MessageAuthor>
|
|
1343
|
+
</MessageHeader>
|
|
1344
|
+
<Bubble>
|
|
1345
|
+
<BubbleContent>{row.text}</BubbleContent>
|
|
1346
|
+
</Bubble>
|
|
1347
|
+
</MessageBody>
|
|
1348
|
+
</Message>
|
|
1183
1349
|
</MessageScrollerItem>
|
|
1184
1350
|
))}
|
|
1185
1351
|
</MessageScrollerContent>
|