@slotted/react 0.1.0-beta.10 → 0.1.0-beta.11
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-bar-z2DPc1Wy.js +285 -0
- package/dist/action-bar.js +1 -1
- package/dist/action-sheet-BnedGewu.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/{alert-BTcqbG8w.js → alert-BTAXJ69M.js} +5 -5
- package/dist/alert.js +1 -1
- package/dist/{app-shell-BlkqQrOx.js → app-shell-Cb_kDBeV.js} +232 -173
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-zlOPJvIm.js → attachment-D1O4qS8H.js} +28 -28
- package/dist/attachment.js +1 -1
- package/dist/{breadcrumb-DCGynpkb.js → breadcrumb-CnFjxxI2.js} +10 -10
- package/dist/breadcrumb.js +1 -1
- package/dist/{button-BCVjdzkn.js → button-D31perSu.js} +2 -2
- package/dist/button.js +2 -2
- package/dist/{calendar-qGUJ-kAy.js → calendar-DZyC1gAT.js} +8 -8
- package/dist/calendar.js +1 -1
- package/dist/{carousel-CjRTu8m7.js → carousel-Dso3gcYd.js} +14 -14
- package/dist/carousel.js +1 -1
- package/dist/cascader-BbajBwsX.js +1157 -0
- package/dist/cascader.js +1 -1
- package/dist/{chart-CPFq3jIE.js → chart-Bb6ctahn.js} +9 -9
- package/dist/chart.js +1 -1
- package/dist/{checkbox-CMY2KIih.js → checkbox-C_8GVtjD.js} +3 -3
- package/dist/{checkbox-group-DzMtLF7f.js → checkbox-group-DXCcusol.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{code-block-Bh_2Eg3M.js → code-block-C4mtsROE.js} +8 -8
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-DlepH5co.js → color-picker-JZPnPb7s.js} +49 -49
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CV9tCnKa.js → column-manager-BDUj-WIs.js} +31 -31
- package/dist/column-manager.js +1 -1
- package/dist/combobox-Dn69QwGX.js +904 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-Dh1HKz_F.js +744 -0
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-Dbc0KkFp.js → context-menu-uJjEmAN3.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field--wIfgVAx.js → currency-field-lHcrNJ7X.js} +13 -13
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-D_LbWfdZ.js → dashboard-grid-z-SOm9H0.js} +65 -65
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-XH5fGoGj.js → data-grid-DQCvXMJA.js} +1330 -1278
- package/dist/data-grid.js +1 -1
- package/dist/data-list-BgdkA3bD.js +587 -0
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BrNyJBiJ.js → date-field-B2lQzE3p.js} +5 -5
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-Nl55so0C.js → date-picker-DpTRb-Y1.js} +16 -16
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-DLkvfUJD.js → date-range-picker-CBUPJep5.js} +17 -17
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-CZRhRDPb.js → datetime-field-BZ44uJ_B.js} +7 -7
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-_GHra2WL.js → datetime-picker-BK_bV3Yr.js} +21 -21
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-Dy1A0Wqy.js → datetime-range-picker-ChdbRgzQ.js} +21 -21
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{description-list-Cc4JYZ-3.js → description-list-CYlfHDwx.js} +11 -11
- package/dist/description-list.js +1 -1
- package/dist/{detail-panel-BI_wHSoz.js → detail-panel-DimjnPI8.js} +91 -91
- package/dist/detail-panel.js +1 -1
- package/dist/{dialog-B6MP7GYI.js → dialog-BB5MdJex.js} +108 -108
- package/dist/dialog.js +1 -1
- package/dist/docs/action-bar.json +4 -4
- package/dist/docs/action-bar.md +3 -3
- package/dist/docs/calendar.md +2 -2
- package/dist/docs/command-palette.json +1 -0
- package/dist/docs/command-palette.md +1 -1
- package/dist/docs/data-grid.examples.md +8 -2
- package/dist/docs/data-grid.json +25 -3
- package/dist/docs/data-grid.md +4 -1
- package/dist/docs/data-grid.props.md +2 -1
- package/dist/docs/detail-panel.json +4 -2
- package/dist/docs/detail-panel.md +15 -5
- package/dist/docs/dialog.json +1 -0
- package/dist/docs/dialog.md +1 -1
- package/dist/docs/drawer.json +6 -4
- package/dist/docs/drawer.md +3 -3
- package/dist/docs/event-calendar.md +2 -2
- package/dist/docs/guidelines/index.md +4 -3
- package/dist/docs/guidelines/layout-alignment.md +17 -7
- package/dist/docs/guidelines/list-pages.md +3 -3
- package/dist/docs/page-header.json +18 -2
- package/dist/docs/page-header.md +5 -3
- package/dist/docs/page.json +1 -0
- package/dist/docs/page.md +1 -1
- package/dist/docs/rating.md +1 -1
- package/dist/docs/section.json +1 -1
- package/dist/docs/section.md +1 -1
- package/dist/docs/skills/compose-screen/SKILL.md +12 -4
- package/dist/docs/skills/review-screen/SKILL.md +20 -18
- package/dist/docs/skills/theme-app/SKILL.md +12 -1
- package/dist/docs/toast.json +1 -0
- package/dist/docs/toast.md +1 -1
- package/dist/docs/tokens.md +1 -1
- package/dist/docs/toolbar.json +1 -1
- package/dist/docs/toolbar.md +1 -1
- package/dist/docs/typography.md +1 -1
- package/dist/{drawer-CkpFlKYa.js → drawer-fyPyxnYQ.js} +216 -206
- package/dist/drawer.js +1 -1
- package/dist/entity-picker-ClyhBTyK.js +1283 -0
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-BDjI5T44.js → event-calendar-COgC24UG.js} +23 -23
- package/dist/event-calendar.js +1 -1
- package/dist/{field-group-CCM2vPKL.js → field-group-Bj-EbPIU.js} +2 -2
- package/dist/field-group.js +1 -1
- package/dist/{field-CzSGs7wo.js → field-tnEZiRLg.js} +19 -19
- package/dist/field.js +1 -1
- package/dist/filter-bar-BRuCz79-.js +1342 -0
- package/dist/filter-bar.js +1 -1
- package/dist/{form-CDq04WDY.js → form-DEcJ7tHf.js} +1 -1
- package/dist/form.js +1 -1
- package/dist/{fullscreen-6GW4naDP.js → fullscreen-BwweNj3-.js} +13 -13
- package/dist/fullscreen.js +1 -1
- package/dist/{hover-card-aadyPXzF.js → hover-card-BWcU37Yp.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
- package/dist/i18n.js +1 -1
- package/dist/{icon-button-CRB218_z.js → icon-button-DbSZKGT4.js} +73 -71
- package/dist/{import-export-center-DUrNwRKP.js → import-export-center-CYf0Qxl_.js} +291 -289
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +100 -100
- package/dist/{kbd-Z4YmSPRy.js → kbd-dNz8QHfL.js} +1 -1
- package/dist/kbd.js +1 -1
- package/dist/{link-BsSlZ1ts.js → link-DLPyg54C.js} +5 -5
- package/dist/link.js +1 -1
- package/dist/{listbox-VFcfZT70.js → listbox-BSqx_ARf.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-BZPBDK4w.js → loading-overlay-BLIrcaoj.js} +9 -9
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-BmCU_sOv.js → markdown-DccRb1xf.js} +17 -17
- package/dist/markdown.js +1 -1
- package/dist/{menu-parts-DS9JEUCt.js → menu-parts-CNNHRduK.js} +42 -42
- package/dist/menu.js +1 -1
- package/dist/{menubar-BV43BKep.js → menubar-Bdr6zigi.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/message-BkTiWsUp.js +436 -0
- package/dist/message-scroller-akQEtQLn.js +218 -0
- package/dist/message-scroller.js +1 -1
- package/dist/message.js +1 -1
- package/dist/{multi-select-YaxhhH9y.js → multi-select-BvlJIEtz.js} +445 -443
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-menu-parts-B64gKl8B.js → navigation-menu-parts-CEW4fgCo.js} +12 -12
- package/dist/navigation-menu.js +1 -1
- package/dist/{notification-center-Ci-OLWTO.js → notification-center-BQO0Ey3h.js} +40 -40
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BYQmPyM-.js → number-field-D1MqT8_A.js} +13 -13
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-BKO0WPZc.js → otp-input-Cub9H9Di.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-CfjGviUA.js → page-CwYmBoZQ.js} +1 -1
- package/dist/{page-header-w_PFLnLG.js → page-header-CMxCQqu_.js} +117 -114
- package/dist/page-header.js +1 -1
- package/dist/page.js +1 -1
- package/dist/{pagination-Cm9665gb.js → pagination-IEuos7H1.js} +12 -12
- package/dist/pagination.js +1 -1
- package/dist/{popover-D1krYeP-.js → popover-C7NpEzq6.js} +22 -22
- package/dist/popover.js +1 -1
- package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
- package/dist/prompt-composer.js +1 -1
- package/dist/{prose-Bl5OjXTb.js → prose-CQN4Bqqh.js} +1 -1
- package/dist/prose.js +1 -1
- package/dist/{radio-group-D9VTBLUB.js → radio-group-BHlDgCLk.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-BRqsV5OF.js → rating-Cr0lXaAV.js} +15 -15
- package/dist/rating.js +1 -1
- package/dist/{saved-views-C_76obIv.js → saved-views-CyLSn8a2.js} +151 -151
- package/dist/saved-views.js +1 -1
- package/dist/{scroll-area-vrm2bbtZ.js → scroll-area-Fr0PmnRS.js} +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/{segmented-control-5DTOKO3g.js → segmented-control-uPnQYklX.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/select-C0JYHwBy.js +1020 -0
- package/dist/select.js +1 -1
- package/dist/{side-navigation-MNMSkj9b.js → side-navigation-D8lRpHwj.js} +64 -64
- package/dist/side-navigation.js +1 -1
- package/dist/{skeleton-DyOwgYmF.js → skeleton-DeEOmm1y.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/{slider-OMe1DAC-.js → slider-BSI1xvjw.js} +2 -2
- package/dist/slider.js +1 -1
- package/dist/{sparkline-ChkaLVdY.js → sparkline-CYU4_lCD.js} +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/spinner-ring-DyfaYloA.js +19 -0
- package/dist/{split-button-DbmRwfMC.js → split-button-CkbylOMN.js} +2 -2
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-BSnsTmsq.js → stat-card-CAh4SdeY.js} +16 -16
- package/dist/stat-card.js +1 -1
- package/dist/{status-indicator-CyKhBdvN.js → status-indicator-BVMnpcm8.js} +4 -4
- package/dist/status-indicator.js +1 -1
- package/dist/{stepper-Cw1Auv3n.js → stepper-BLfvMz04.js} +16 -16
- package/dist/stepper.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/action-sheet.css +2 -2
- package/dist/styles/button.css +2 -2
- package/dist/styles/cascader.css +2 -2
- package/dist/styles/chart.css +1 -1
- package/dist/styles/column-manager.css +3 -3
- package/dist/styles/command-palette.css +3 -3
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +3 -3
- package/dist/styles/data-list.css +2 -2
- package/dist/styles/detail-panel.css +4 -4
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/entity-picker.css +1 -1
- package/dist/styles/event-calendar.css +1 -1
- package/dist/styles/filter-bar.css +3 -3
- package/dist/styles/import-export-center.css +4 -4
- package/dist/styles/index.css +12 -12
- package/dist/styles/markdown.css +2 -2
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/notification-center.css +3 -3
- package/dist/styles/page-header.css +2 -2
- package/dist/styles/page.css +1 -1
- package/dist/styles/prompt-composer.css +1 -1
- package/dist/styles/saved-views.css +2 -2
- package/dist/styles/split-button.css +2 -2
- package/dist/styles/table.css +2 -2
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/timeline.css +1 -1
- package/dist/styles/toast.css +1 -1
- package/dist/styles/tour.css +2 -2
- package/dist/styles/transfer.css +2 -2
- package/dist/styles/upload.css +1 -1
- package/dist/styles/wizard.css +2 -2
- package/dist/styles.css +1 -1
- package/dist/{switch-CQ1rpuKa.js → switch-BHyKHqeI.js} +5 -5
- package/dist/switch.js +1 -1
- package/dist/{table-DpGTPtnb.js → table-C8zOHDcY.js} +30 -30
- package/dist/{table-of-contents-BFVERMZy.js → table-of-contents-BAIuPCdy.js} +8 -8
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/{tag-aX7uyAN0.js → tag-XYGEPUHR.js} +14 -14
- package/dist/tag.js +1 -1
- package/dist/{tags-input-BgpS22sf.js → tags-input-ClYSd-No.js} +40 -40
- package/dist/tags-input.js +1 -1
- package/dist/text-field-Cguj75tn.js +205 -0
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DNCjsQYd.js → textarea-BKsh_jAo.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-Cm6iBjwH.js → time-field-BIE4WMpS.js} +7 -7
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Ce18FSO2.js → time-picker-CNfafRDF.js} +18 -18
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-kDnw4PQ3.js → time-range-picker-D7gM_Wno.js} +20 -20
- package/dist/time-range-picker.js +1 -1
- package/dist/timeline-BLadNUkS.js +449 -0
- package/dist/timeline.js +1 -1
- package/dist/{toast-58ex8PDK.js → toast-CjbiXiza.js} +16 -16
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-YxVJlCnI.js → toggle-group-BZmghKac.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toolbar-BI4ZepBs.js +243 -0
- package/dist/toolbar.js +1 -1
- package/dist/{top-navigation-DorkYBnR.js → top-navigation-BTZpx5VA.js} +13 -13
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-CwK_m_Jp.js → tour-_CQ1kYov.js} +23 -23
- package/dist/tour.js +1 -1
- package/dist/{transfer-DxGDWIEt.js → transfer-BVhBdIGp.js} +59 -59
- package/dist/transfer.js +1 -1
- package/dist/tree-DfI9UWLA.js +794 -0
- package/dist/tree.js +1 -1
- package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
- package/dist/types/action-bar/action-bar.types.d.ts +2 -2
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.types.d.ts +21 -14
- package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
- package/dist/types/app-shell/index.d.ts +1 -1
- package/dist/types/app-shell/index.d.ts.map +1 -1
- package/dist/types/button/button-indicator.d.ts.map +1 -1
- package/dist/types/button/spinner-ring.d.ts +8 -0
- package/dist/types/button/spinner-ring.d.ts.map +1 -0
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-body.d.ts +7 -2
- package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-context.d.ts +2 -1
- package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.d.ts +1 -1
- package/dist/types/data-grid/data-grid.d.ts.map +1 -1
- package/dist/types/data-grid/data-grid.types.d.ts +12 -0
- package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
- package/dist/types/data-grid/index.d.ts +1 -1
- package/dist/types/data-grid/index.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/i18n/slotted-provider.d.ts +6 -0
- package/dist/types/i18n/slotted-provider.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts +1 -1
- package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
- package/dist/types/page-header/page-header.d.ts +1 -1
- package/dist/types/page-header/page-header.d.ts.map +1 -1
- package/dist/types/page-header/page-header.types.d.ts +9 -0
- package/dist/types/page-header/page-header.types.d.ts.map +1 -1
- package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/text-field/text-field.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/timeline/timeline.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts +2 -2
- package/dist/types/tree/tree-parts.d.ts.map +1 -1
- package/dist/{upload-CEDsfMWz.js → upload-N2-nyO8x.js} +65 -65
- package/dist/upload.js +1 -1
- package/dist/{wizard-B3p7zCSj.js → wizard-CK1x2fs3.js} +16 -16
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/action-bar-CJgBierN.js +0 -283
- package/dist/action-sheet-tRrjm7WQ.js +0 -358
- package/dist/cascader-DqlC1z5b.js +0 -1154
- package/dist/combobox-YWFkxaQ3.js +0 -902
- package/dist/command-palette-DXNq-zKN.js +0 -741
- package/dist/data-list-DZCN_uW1.js +0 -587
- package/dist/entity-picker-CFwLGQeU.js +0 -1281
- package/dist/filter-bar-G50WdRac.js +0 -1340
- package/dist/message-Dtck9RJy.js +0 -434
- package/dist/message-scroller-niUJ8RoL.js +0 -216
- package/dist/prompt-composer-sh_TXKYZ.js +0 -273
- package/dist/select-BFx5EgAa.js +0 -1018
- package/dist/text-field-DL_uhNXV.js +0 -203
- package/dist/timeline-pEL30Jp8.js +0 -446
- package/dist/toolbar-BtIyVbs4.js +0 -241
- package/dist/tree-DbLRyItM.js +0 -792
package/dist/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./select-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./select-C0JYHwBy.js";
|
|
2
2
|
export { d as SELECT_FALLBACK, t as Select, i as SelectContent, n as SelectDefaultsProvider, u as SelectGroup, o as SelectItem, e as SelectSearch, c as SelectSeparator, s as SelectTrigger, l as SelectValue, a as useSelect, r as useSelectDefaults };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as r } from "./app-shell-
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-DjqSEQ-o.js";
|
|
3
|
+
import { i as r } from "./app-shell-Cb_kDBeV.js";
|
|
4
4
|
import { a as i, i as a, n as o, r as s } from "./tooltip-DrFiRlH8.js";
|
|
5
|
-
import { i as c } from "./skeleton-
|
|
5
|
+
import { i as c } from "./skeleton-DeEOmm1y.js";
|
|
6
6
|
import { definedProps as l, keyedProps as u, withSelectorKey as d } from "@slotted/core/selector-key";
|
|
7
7
|
import { nextOpenValues as f, sameOpenValues as p } from "@slotted/core/disclosure";
|
|
8
8
|
import { createControllable as m } from "@slotted/core/state";
|
|
9
9
|
import { createContext as h, useCallback as g, useContext as _, useEffect as v, useId as y, useImperativeHandle as ee, useLayoutEffect as b, useMemo as te, useRef as x, useState as S } from "react";
|
|
10
10
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
11
|
import { createPresence as E } from "@slotted/core/presence";
|
|
12
|
-
import {
|
|
12
|
+
import { sideNavigationMessages as ne } from "@slotted/core/i18n";
|
|
13
|
+
import { createPortalRoot as re } from "@slotted/core/portal";
|
|
13
14
|
import { createDismissableLayer as D } from "@slotted/core/dismissable-layer";
|
|
14
|
-
import { createPositioner as
|
|
15
|
-
import { createPortal as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { truncateMiddle as A } from "@slotted/core/text";
|
|
15
|
+
import { createPositioner as O } from "@slotted/core/positioner";
|
|
16
|
+
import { createPortal as k } from "react-dom";
|
|
17
|
+
import { createWidthGate as A } from "@slotted/core/measure";
|
|
18
|
+
import { truncateMiddle as j } from "@slotted/core/text";
|
|
19
19
|
//#region src/side-navigation/side-navigation-defaults.tsx
|
|
20
|
-
var
|
|
20
|
+
var M = {
|
|
21
21
|
autoExpand: !0,
|
|
22
22
|
compactAt: 96,
|
|
23
23
|
guides: !0,
|
|
@@ -26,12 +26,12 @@ var j = {
|
|
|
26
26
|
multiple: !0,
|
|
27
27
|
size: "md",
|
|
28
28
|
truncate: "end"
|
|
29
|
-
},
|
|
30
|
-
function
|
|
31
|
-
return _(
|
|
29
|
+
}, N = h(M);
|
|
30
|
+
function P() {
|
|
31
|
+
return _(N);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let n =
|
|
33
|
+
function F({ children: e, ...t }) {
|
|
34
|
+
let n = P(), r = te(() => ({
|
|
35
35
|
autoExpand: t.autoExpand ?? n.autoExpand,
|
|
36
36
|
compactAt: t.compactAt ?? n.compactAt,
|
|
37
37
|
guides: t.guides ?? n.guides,
|
|
@@ -51,14 +51,14 @@ function P({ children: e, ...t }) {
|
|
|
51
51
|
t.truncate,
|
|
52
52
|
n
|
|
53
53
|
]);
|
|
54
|
-
return /* @__PURE__ */ w(
|
|
54
|
+
return /* @__PURE__ */ w(N.Provider, {
|
|
55
55
|
value: r,
|
|
56
56
|
children: e
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/side-navigation/side-navigation.tsx
|
|
61
|
-
var
|
|
61
|
+
var ie = "[data-part=\"link\"], [data-part=\"trigger\"]", ae = h(void 0);
|
|
62
62
|
function I() {
|
|
63
63
|
let e = _(ae);
|
|
64
64
|
if (e === void 0) throw Error("Every side-navigation part must be rendered inside SideNavigation.");
|
|
@@ -68,8 +68,8 @@ function oe(e, t) {
|
|
|
68
68
|
for (let n = e.closest("[data-part=\"group\"]"); n !== null && t.contains(n); n = n.parentElement?.closest("[data-part=\"group\"]") ?? null) if (!n.parentElement?.hasAttribute("data-expanded")) return !1;
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
|
-
function L({ autoExpand:
|
|
72
|
-
let L =
|
|
71
|
+
function L({ autoExpand: t, children: n, className: i, compactAt: a, defaultExpanded: o, defaultFlyout: s, defaultValue: c, expanded: l, flyout: d, guides: h, landmark: _, messages: y, mode: b, multiple: C, onExpandedChange: T, onFlyoutChange: E, onKeyDown: re, onValueChange: D, ref: O, render: k, size: j, style: M, truncate: N, value: F, ...I }) {
|
|
72
|
+
let L = P(), R = r(), z = t ?? L.autoExpand, B = a ?? L.compactAt, V = h ?? L.guides, se = _ ?? (R === void 0 && L.landmark), ce = e(ne, y), H = b ?? L.mode, U = C ?? L.multiple, W = j ?? L.size, G = N ?? L.truncate, [le, ue] = S(c ?? null), [de, fe] = S(o ?? []), [pe, me] = S(s ?? null), K = F === void 0 ? le : F, q = l === void 0 ? de : l, J = d === void 0 ? pe : d, [Y, he] = S(null), [ge, _e] = S(!1), [ve, ye] = S(0), [X, be] = S(null), Z = H === "compact" || H === "auto" && ge, xe = x(/* @__PURE__ */ new Map()), Se = g((e, t) => (xe.current.set(e, t), () => {
|
|
73
73
|
xe.current.delete(e);
|
|
74
74
|
}), []), Q = x({
|
|
75
75
|
currentExpanded: q,
|
|
@@ -77,7 +77,7 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
77
77
|
currentValue: K,
|
|
78
78
|
expanded: l,
|
|
79
79
|
flyout: d,
|
|
80
|
-
value:
|
|
80
|
+
value: F
|
|
81
81
|
});
|
|
82
82
|
Q.current = {
|
|
83
83
|
currentExpanded: q,
|
|
@@ -85,7 +85,7 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
85
85
|
currentValue: K,
|
|
86
86
|
expanded: l,
|
|
87
87
|
flyout: d,
|
|
88
|
-
value:
|
|
88
|
+
value: F
|
|
89
89
|
};
|
|
90
90
|
let Ce = g((e, t, n) => {
|
|
91
91
|
m({
|
|
@@ -112,7 +112,7 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
112
112
|
}, [D]);
|
|
113
113
|
v(() => {
|
|
114
114
|
if (Y === null || H !== "auto") return;
|
|
115
|
-
let e =
|
|
115
|
+
let e = A(Y, {
|
|
116
116
|
at: B,
|
|
117
117
|
onChange: _e
|
|
118
118
|
});
|
|
@@ -148,9 +148,9 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
148
148
|
]);
|
|
149
149
|
let Ee = g(() => {
|
|
150
150
|
if (Y === null) return [];
|
|
151
|
-
let e = [...Y.querySelectorAll(
|
|
151
|
+
let e = [...Y.querySelectorAll(ie)].filter((e) => oe(e, Y));
|
|
152
152
|
if (X === null || J === null) return e;
|
|
153
|
-
let t = [...X.querySelectorAll(
|
|
153
|
+
let t = [...X.querySelectorAll(ie)], n = e.findIndex((e) => e.closest("[data-part=\"item\"]")?.getAttribute("data-value") === J);
|
|
154
154
|
return n === -1 ? [...e, ...t] : [
|
|
155
155
|
...e.slice(0, n + 1),
|
|
156
156
|
...t,
|
|
@@ -161,7 +161,7 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
161
161
|
X,
|
|
162
162
|
Y
|
|
163
163
|
]), De = (e) => {
|
|
164
|
-
if (
|
|
164
|
+
if (re?.(e), e.defaultPrevented) return;
|
|
165
165
|
let t = e.target;
|
|
166
166
|
if (!t.matches("[data-part=\"link\"], [data-part=\"trigger\"]")) return;
|
|
167
167
|
if (e.key === "Escape") {
|
|
@@ -179,7 +179,7 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
179
179
|
let i = r.indexOf(t);
|
|
180
180
|
r[e.key === "Home" ? 0 : e.key === "End" ? r.length - 1 : Math.min(r.length - 1, Math.max(0, i + n))]?.focus();
|
|
181
181
|
};
|
|
182
|
-
ee(
|
|
182
|
+
ee(O, () => ({
|
|
183
183
|
focus: () => Ee()[0]?.focus(),
|
|
184
184
|
expand: (e) => $(e, !0, "programmatic"),
|
|
185
185
|
collapse: (e) => $(e, !1, "programmatic"),
|
|
@@ -228,7 +228,7 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
228
228
|
]), { "aria-label": ke, ...Ae } = I, je = u({
|
|
229
229
|
...Ae,
|
|
230
230
|
...se ? { "aria-label": ke ?? ce("navigation") } : {},
|
|
231
|
-
children:
|
|
231
|
+
children: n,
|
|
232
232
|
className: i,
|
|
233
233
|
...Z ? { "data-compact": "" } : {},
|
|
234
234
|
...V ? { "data-guides": "" } : {},
|
|
@@ -238,14 +238,14 @@ function L({ autoExpand: e, children: t, className: i, compactAt: a, defaultExpa
|
|
|
238
238
|
"data-truncate": G,
|
|
239
239
|
"data-ui": "side-navigation",
|
|
240
240
|
onKeyDown: De,
|
|
241
|
-
style:
|
|
241
|
+
style: M
|
|
242
242
|
}), Me = se ? "nav" : "div";
|
|
243
243
|
return /* @__PURE__ */ w(ae.Provider, {
|
|
244
244
|
value: Oe,
|
|
245
|
-
children:
|
|
245
|
+
children: k === void 0 ? /* @__PURE__ */ w(Me, {
|
|
246
246
|
...je,
|
|
247
247
|
ref: he
|
|
248
|
-
}) :
|
|
248
|
+
}) : k(je)
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
//#endregion
|
|
@@ -299,40 +299,40 @@ function U({ children: e, ref: t, render: n, ...r }) {
|
|
|
299
299
|
}) : n(i);
|
|
300
300
|
}
|
|
301
301
|
function W({ children: e, className: t, disabled: n, ref: r, render: i, style: a, value: o, ...s }) {
|
|
302
|
-
let c = I(), l = se(), d = y(), [f, p] = S(!1), [m, h] = S(!1), [_, ee] = S(!1), [b, x] = S(""), [C, T] = S(""), [E, ne] = S(null), [
|
|
303
|
-
v(() =>
|
|
302
|
+
let c = I(), l = se(), d = y(), [f, p] = S(!1), [m, h] = S(!1), [_, ee] = S(!1), [b, x] = S(""), [C, T] = S(""), [E, ne] = S(null), [re, D] = S([]), O = c.isExpanded(o), k = c.compact && c.flyout === o, A = f && c.value === o, j = re.length > 0, M = n === !0 || l?.disabled === !0, { registerItem: N } = c;
|
|
303
|
+
v(() => N(o, l?.value ?? null), [
|
|
304
304
|
l?.value,
|
|
305
|
-
|
|
305
|
+
N,
|
|
306
306
|
o
|
|
307
307
|
]);
|
|
308
|
-
let
|
|
309
|
-
|
|
310
|
-
}, []),
|
|
308
|
+
let P = g((e, t) => {
|
|
309
|
+
D((n) => t === n.includes(e) ? n : t ? [...n, e] : n.filter((t) => t !== e));
|
|
310
|
+
}, []), F = l?.reportCurrent;
|
|
311
311
|
v(() => {
|
|
312
|
-
if (
|
|
312
|
+
if (F !== void 0) return F(o, A || j), () => F(o, !1);
|
|
313
313
|
}, [
|
|
314
|
-
k,
|
|
315
314
|
A,
|
|
316
|
-
|
|
315
|
+
j,
|
|
316
|
+
F,
|
|
317
317
|
o
|
|
318
318
|
]);
|
|
319
|
-
let
|
|
319
|
+
let ie = te(() => ({
|
|
320
320
|
clipped: _,
|
|
321
|
-
current:
|
|
321
|
+
current: A,
|
|
322
322
|
descriptionText: C,
|
|
323
|
-
disabled:
|
|
323
|
+
disabled: M,
|
|
324
324
|
expanded: O,
|
|
325
|
-
flyoutOpen:
|
|
325
|
+
flyoutOpen: k,
|
|
326
326
|
hasGroup: m,
|
|
327
327
|
hasLink: f,
|
|
328
|
-
holdsCurrent:
|
|
328
|
+
holdsCurrent: j,
|
|
329
329
|
ids: {
|
|
330
330
|
groupId: `${d}group`,
|
|
331
331
|
labelId: `${d}label`,
|
|
332
332
|
triggerId: `${d}trigger`
|
|
333
333
|
},
|
|
334
334
|
labelText: b,
|
|
335
|
-
reportCurrent:
|
|
335
|
+
reportCurrent: P,
|
|
336
336
|
setClipped: ee,
|
|
337
337
|
setDescriptionText: T,
|
|
338
338
|
setHasGroup: h,
|
|
@@ -344,32 +344,32 @@ function W({ children: e, className: t, disabled: n, ref: r, render: i, style: a
|
|
|
344
344
|
}), [
|
|
345
345
|
d,
|
|
346
346
|
_,
|
|
347
|
-
|
|
347
|
+
A,
|
|
348
348
|
C,
|
|
349
349
|
O,
|
|
350
|
-
|
|
350
|
+
k,
|
|
351
351
|
m,
|
|
352
352
|
f,
|
|
353
|
-
A,
|
|
354
|
-
b,
|
|
355
|
-
N,
|
|
356
353
|
j,
|
|
354
|
+
b,
|
|
355
|
+
P,
|
|
356
|
+
M,
|
|
357
357
|
E,
|
|
358
358
|
o
|
|
359
|
-
]), ae =
|
|
359
|
+
]), ae = A || j && (!O || c.compact), oe = u({
|
|
360
360
|
...s,
|
|
361
361
|
children: e,
|
|
362
362
|
className: t,
|
|
363
363
|
...ae ? { "data-current": "" } : {},
|
|
364
|
-
...
|
|
364
|
+
...M ? { "data-disabled": "" } : {},
|
|
365
365
|
...O ? { "data-expanded": "" } : {},
|
|
366
|
-
...
|
|
366
|
+
...k ? { "data-open": "" } : {},
|
|
367
367
|
"data-part": "item",
|
|
368
368
|
"data-value": o,
|
|
369
369
|
style: a
|
|
370
370
|
});
|
|
371
371
|
return /* @__PURE__ */ w(B.Provider, {
|
|
372
|
-
value:
|
|
372
|
+
value: ie,
|
|
373
373
|
children: i === void 0 ? /* @__PURE__ */ w("li", {
|
|
374
374
|
...oe,
|
|
375
375
|
ref: r
|
|
@@ -429,7 +429,7 @@ function le({ children: e, className: t, current: n, href: r, onClick: i, ref: o
|
|
|
429
429
|
})
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
-
function ue({ children:
|
|
432
|
+
function ue({ children: e, className: r, onClick: i, ref: o, render: s, style: c, ...l }) {
|
|
433
433
|
let d = I(), f = V(), p = f.hasLink, m = (e) => {
|
|
434
434
|
if (i?.(e), e.defaultPrevented) return;
|
|
435
435
|
let t = z(e);
|
|
@@ -443,13 +443,13 @@ function ue({ children: n, className: r, onClick: i, ref: o, render: s, style: c
|
|
|
443
443
|
"aria-controls": f.ids.groupId,
|
|
444
444
|
"aria-expanded": f.flyoutOpen || f.expanded,
|
|
445
445
|
...p ? { "aria-labelledby": f.ids.labelId } : {},
|
|
446
|
-
children: /* @__PURE__ */ T(C, { children: [
|
|
446
|
+
children: /* @__PURE__ */ T(C, { children: [e, /* @__PURE__ */ w("span", {
|
|
447
447
|
"aria-hidden": "true",
|
|
448
448
|
"data-part": "indicator",
|
|
449
449
|
"data-part-indicator": "",
|
|
450
|
-
children: /* @__PURE__ */ w(
|
|
450
|
+
children: /* @__PURE__ */ w(n, {
|
|
451
451
|
directional: !0,
|
|
452
|
-
children: /* @__PURE__ */ w(
|
|
452
|
+
children: /* @__PURE__ */ w(t, { name: "chevron-right" })
|
|
453
453
|
})
|
|
454
454
|
})] }),
|
|
455
455
|
className: r,
|
|
@@ -510,7 +510,7 @@ function fe({ children: e, ref: t, render: n, ...r }) {
|
|
|
510
510
|
let e = getComputedStyle(o), t = o.ownerDocument.createElement("canvas").getContext("2d"), n = o.clientWidth;
|
|
511
511
|
if (t === null || n === 0) return;
|
|
512
512
|
t.font = `${e.fontStyle} ${e.fontWeight} ${e.fontSize} ${e.fontFamily}`;
|
|
513
|
-
let r =
|
|
513
|
+
let r = j(d, (e) => t.measureText(e).width <= n);
|
|
514
514
|
l(r === d ? null : r), a.setClipped(r !== d);
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
@@ -653,7 +653,7 @@ function he({ children: e, onExited: t, open: n }) {
|
|
|
653
653
|
}, [l]);
|
|
654
654
|
let h = i.triggerNode;
|
|
655
655
|
b(() => {
|
|
656
|
-
let e =
|
|
656
|
+
let e = re({ origin: h });
|
|
657
657
|
return c(e.container), () => e.release();
|
|
658
658
|
}, [h]);
|
|
659
659
|
let _ = x(null), y = g((e, t) => {
|
|
@@ -663,7 +663,7 @@ function he({ children: e, onExited: t, open: n }) {
|
|
|
663
663
|
}, []);
|
|
664
664
|
b(() => {
|
|
665
665
|
if (a === null || h === null) return;
|
|
666
|
-
let e =
|
|
666
|
+
let e = O(h, a, {
|
|
667
667
|
align: "start",
|
|
668
668
|
flip: !0,
|
|
669
669
|
shift: !0,
|
|
@@ -709,7 +709,7 @@ function he({ children: e, onExited: t, open: n }) {
|
|
|
709
709
|
let t = e.relatedTarget;
|
|
710
710
|
t !== null && a !== null && (a.contains(t) || h?.contains(t) || r.setFlyout(null, "blur", e.nativeEvent));
|
|
711
711
|
};
|
|
712
|
-
return s === null ? null :
|
|
712
|
+
return s === null ? null : k(/* @__PURE__ */ w("div", {
|
|
713
713
|
...d(r.guides ? { "data-guides": "" } : {}, "part", "flyout"),
|
|
714
714
|
"data-size": r.size,
|
|
715
715
|
"data-truncate": r.truncate,
|
|
@@ -744,4 +744,4 @@ function ge({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
|
|
|
744
744
|
}) : d;
|
|
745
745
|
}
|
|
746
746
|
//#endregion
|
|
747
|
-
export {
|
|
747
|
+
export { P as S, ie as _, K as a, M as b, W as c, U as d, ce as f, V as g, ue as h, J as i, fe as l, Y as m, me as n, ge as o, H as p, pe as r, de as s, q as t, le as u, L as v, F as x, I as y };
|
package/dist/side-navigation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./side-navigation-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./side-navigation-D8lRpHwj.js";
|
|
2
2
|
export { r as SIDE_NAVIGATION_FALLBACK, t as SIDE_NAVIGATION_ROW_SELECTOR, y as SideNavigation, _ as SideNavigationActions, f as SideNavigationCount, b as SideNavigationDefaultsProvider, h as SideNavigationDescription, l as SideNavigationDivider, n as SideNavigationEnd, p as SideNavigationGroup, g as SideNavigationIcon, i as SideNavigationItem, u as SideNavigationLabel, v as SideNavigationLink, a as SideNavigationList, o as SideNavigationSection, m as SideNavigationSectionLabel, d as SideNavigationSkeleton, c as SideNavigationTrigger, x as useSideNavigation, e as useSideNavigationDefaults, s as useSideNavigationItem };
|
package/dist/skeleton.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, t as i } from "./skeleton-
|
|
1
|
+
import { a as e, i as t, n, o as r, t as i } from "./skeleton-DeEOmm1y.js";
|
|
2
2
|
export { t as Skeleton, e as SkeletonDefaultsProvider, n as SkeletonRegion, i as SkeletonText, r as useSkeletonDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
2
|
-
import { b as t } from "./field-
|
|
1
|
+
import { n as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { b as t } from "./field-tnEZiRLg.js";
|
|
3
3
|
import { keyedProps as n, withSelectorKey as r } from "@slotted/core/selector-key";
|
|
4
4
|
import { createControllable as i } from "@slotted/core/state";
|
|
5
5
|
import { createContext as a, useCallback as o, useContext as s, useEffect as ee, useId as te, useImperativeHandle as ne, useMemo as c, useRef as l, useState as u } from "react";
|
package/dist/slider.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./slider-
|
|
1
|
+
import { n as e, r as t, t as n } from "./slider-BSI1xvjw.js";
|
|
2
2
|
export { n as Slider, e as SliderDefaultsProvider, t as useSliderDefaults };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n-
|
|
1
|
+
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { keyedProps as n } from "@slotted/core/selector-key";
|
|
3
3
|
import { createContext as r, useContext as i, useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
4
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
package/dist/sparkline.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./sparkline-
|
|
1
|
+
import { n as e, r as t, t as n } from "./sparkline-CYU4_lCD.js";
|
|
2
2
|
export { n as Sparkline, e as SparklineDefaultsProvider, t as useSparklineDefaults };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region src/button/spinner-ring.tsx
|
|
3
|
+
var n = /* @__PURE__ */ t("svg", {
|
|
4
|
+
"aria-hidden": "true",
|
|
5
|
+
focusable: "false",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
children: [/* @__PURE__ */ e("circle", {
|
|
8
|
+
cx: "12",
|
|
9
|
+
cy: "12",
|
|
10
|
+
r: "8.875"
|
|
11
|
+
}), /* @__PURE__ */ e("circle", {
|
|
12
|
+
cx: "12",
|
|
13
|
+
cy: "12",
|
|
14
|
+
pathLength: 100,
|
|
15
|
+
r: "8.875"
|
|
16
|
+
})]
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, t } from "./button-defaults-DNq_DDJh.js";
|
|
2
2
|
import { n, t as r } from "./icon-DjqSEQ-o.js";
|
|
3
|
-
import { _ as i, m as a, n as o } from "./menu-parts-
|
|
4
|
-
import { n as s, t as c } from "./icon-button-
|
|
3
|
+
import { _ as i, m as a, n as o } from "./menu-parts-CNNHRduK.js";
|
|
4
|
+
import { n as s, t as c } from "./icon-button-DbSZKGT4.js";
|
|
5
5
|
import { keyedProps as l } from "@slotted/core/selector-key";
|
|
6
6
|
import { createControllable as u } from "@slotted/core/state";
|
|
7
7
|
import { createContext as d, useCallback as f, useContext as p, useRef as m, useState as h } from "react";
|
package/dist/split-button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./split-button-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./split-button-CkbylOMN.js";
|
|
2
2
|
export { e as SplitButton, s as SplitButtonChoices, o as SplitButtonDefaultsProvider, r as SplitButtonMenu, a as SplitButtonMenuTrigger, n as SplitButtonPrimary, i as useSplitButton, t as useSplitButtonDefaults };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "./
|
|
2
|
-
import { n, r } from "./
|
|
3
|
-
import { i } from "./skeleton-
|
|
1
|
+
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n, t as r } from "./icon-DjqSEQ-o.js";
|
|
3
|
+
import { i } from "./skeleton-DeEOmm1y.js";
|
|
4
4
|
import { t as a } from "./visually-hidden-BUSrFZ1_.js";
|
|
5
5
|
import { keyedProps as o } from "@slotted/core/selector-key";
|
|
6
6
|
import { createContext as s, useContext as c, useId as l, useMemo as u } from "react";
|
|
@@ -40,16 +40,16 @@ function S({ children: e, ...t }) {
|
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/stat-card/stat-card.tsx
|
|
43
|
-
function C({ children:
|
|
44
|
-
let T = x(), E =
|
|
43
|
+
function C({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: s, layout: c, loading: d = !1, locale: p, messages: h, render: _, size: b, status: S = "ready", tone: C, ...w }) {
|
|
44
|
+
let T = x(), E = e(), D = t(m, h), O = l(), k = {
|
|
45
45
|
fill: i ?? T.fill ?? "outline",
|
|
46
46
|
goodWhen: s ?? T.goodWhen ?? "up",
|
|
47
47
|
layout: c ?? T.layout ?? "inline",
|
|
48
48
|
size: b ?? T.size ?? "md",
|
|
49
49
|
locale: p ?? E,
|
|
50
50
|
formatOptions: a ?? T.formatOptions
|
|
51
|
-
}, A = C ?? (
|
|
52
|
-
delta:
|
|
51
|
+
}, A = C ?? (r === void 0 ? void 0 : y(v(r), k.goodWhen)), j = u(() => ({
|
|
52
|
+
delta: r,
|
|
53
53
|
formatOptions: k.formatOptions,
|
|
54
54
|
goodWhen: k.goodWhen,
|
|
55
55
|
labelId: O,
|
|
@@ -60,7 +60,7 @@ function C({ children: e, delta: t, fill: i, formatOptions: a, goodWhen: s, layo
|
|
|
60
60
|
status: S,
|
|
61
61
|
tone: A
|
|
62
62
|
}), [
|
|
63
|
-
|
|
63
|
+
r,
|
|
64
64
|
k.formatOptions,
|
|
65
65
|
k.goodWhen,
|
|
66
66
|
O,
|
|
@@ -79,7 +79,7 @@ function C({ children: e, delta: t, fill: i, formatOptions: a, goodWhen: s, layo
|
|
|
79
79
|
children: /* @__PURE__ */ f("div", {
|
|
80
80
|
"data-part": "body",
|
|
81
81
|
"data-part-body": "",
|
|
82
|
-
children:
|
|
82
|
+
children: n
|
|
83
83
|
})
|
|
84
84
|
}),
|
|
85
85
|
"data-fill": k.fill,
|
|
@@ -97,11 +97,11 @@ function C({ children: e, delta: t, fill: i, formatOptions: a, goodWhen: s, layo
|
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region src/stat-card/stat-card-delta.tsx
|
|
100
|
-
function w({ children:
|
|
100
|
+
function w({ children: e, format: t = "percent", formatOptions: s, goodWhen: c, render: l, tone: m, value: h, ...g }) {
|
|
101
101
|
let b = _(), x = h ?? b.delta, S = v(x), C = m ?? y(S, c ?? b.goodWhen), w = u(() => {
|
|
102
102
|
if (typeof x == "number") return new Intl.NumberFormat(b.locale, {
|
|
103
103
|
signDisplay: "exceptZero",
|
|
104
|
-
...
|
|
104
|
+
...t === "percent" ? {
|
|
105
105
|
style: "percent",
|
|
106
106
|
maximumFractionDigits: 1
|
|
107
107
|
} : {},
|
|
@@ -112,7 +112,7 @@ function w({ children: n, format: r = "percent", formatOptions: s, goodWhen: c,
|
|
|
112
112
|
x,
|
|
113
113
|
b.locale,
|
|
114
114
|
b.formatOptions,
|
|
115
|
-
|
|
115
|
+
t,
|
|
116
116
|
s
|
|
117
117
|
]);
|
|
118
118
|
if (b.loading) {
|
|
@@ -125,7 +125,7 @@ function w({ children: n, format: r = "percent", formatOptions: s, goodWhen: c,
|
|
|
125
125
|
});
|
|
126
126
|
return l === void 0 ? /* @__PURE__ */ f("span", { ...e }) : l(e);
|
|
127
127
|
}
|
|
128
|
-
if (b.status !== "ready" ||
|
|
128
|
+
if (b.status !== "ready" || e === void 0 && w === void 0) return null;
|
|
129
129
|
let T = o({
|
|
130
130
|
...g,
|
|
131
131
|
children: /* @__PURE__ */ p(d, { children: [
|
|
@@ -133,13 +133,13 @@ function w({ children: n, format: r = "percent", formatOptions: s, goodWhen: c,
|
|
|
133
133
|
"aria-hidden": "true",
|
|
134
134
|
"data-part": "indicator",
|
|
135
135
|
"data-part-indicator": "",
|
|
136
|
-
children: /* @__PURE__ */ f(
|
|
136
|
+
children: /* @__PURE__ */ f(r, {
|
|
137
137
|
directional: S !== "flat",
|
|
138
|
-
children: /* @__PURE__ */ f(
|
|
138
|
+
children: /* @__PURE__ */ f(n, { name: S === "flat" ? "minus" : "trending-up" })
|
|
139
139
|
})
|
|
140
140
|
}),
|
|
141
141
|
/* @__PURE__ */ p(a, { children: [b.t(S), " "] }),
|
|
142
|
-
|
|
142
|
+
e ?? w
|
|
143
143
|
] }),
|
|
144
144
|
"data-part": "delta",
|
|
145
145
|
"data-tone": C,
|
package/dist/stat-card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./stat-card-
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./stat-card-CAh4SdeY.js";
|
|
2
2
|
export { f as StatCard, u as StatCardAction, p as StatCardComparison, l as StatCardDefaultsProvider, i as StatCardDelta, s as StatCardFigure, t as StatCardHeader, d as StatCardLabel, m as StatCardMessage, n as StatCardPeriod, c as StatCardStatus, g as StatCardTrend, r as StatCardUnit, h as StatCardValue, a as toneOf, e as trendOf, _ as useStatCard, o as useStatCardDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-DjqSEQ-o.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { keyedProps as r } from "@slotted/core/selector-key";
|
|
5
5
|
import { createContext as i, useContext as a, useMemo as o } from "react";
|
|
@@ -41,7 +41,7 @@ var m = "neutral", h = {
|
|
|
41
41
|
assertive: "alert"
|
|
42
42
|
};
|
|
43
43
|
function _({ children: i, label: a, live: o, mark: d, messages: p, pulse: _ = !1, render: v, role: y, size: b, status: x = m, ...S }) {
|
|
44
|
-
let C = f(), w =
|
|
44
|
+
let C = f(), w = e(u, p), T = {
|
|
45
45
|
live: o ?? C.live ?? "off",
|
|
46
46
|
mark: d ?? C.mark ?? "dot",
|
|
47
47
|
size: b ?? C.size ?? "md"
|
|
@@ -51,7 +51,7 @@ function _({ children: i, label: a, live: o, mark: d, messages: p, pulse: _ = !1
|
|
|
51
51
|
"aria-hidden": "true",
|
|
52
52
|
"data-part": "mark",
|
|
53
53
|
"data-part-mark": "",
|
|
54
|
-
children: T.mark === "icon" ? /* @__PURE__ */ c(
|
|
54
|
+
children: T.mark === "icon" ? /* @__PURE__ */ c(n, { children: /* @__PURE__ */ c(t, { name: h[x] }) }) : null
|
|
55
55
|
}), /* @__PURE__ */ c("span", {
|
|
56
56
|
"data-part": "label",
|
|
57
57
|
"data-part-label": "",
|
package/dist/status-indicator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./status-indicator-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./status-indicator-BVMnpcm8.js";
|
|
2
2
|
export { t as STATUS_INDICATOR_DEFAULT_STATUS, r as StatusIndicator, n as StatusIndicatorDefaultsProvider, e as useStatusIndicatorDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, t } from "./
|
|
2
|
-
import { n, r } from "./
|
|
1
|
+
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n, t as r } from "./icon-DjqSEQ-o.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { keyedProps as i, selectorKeyProps as a } from "@slotted/core/selector-key";
|
|
5
5
|
import { createControllable as o } from "@slotted/core/state";
|
|
@@ -36,18 +36,18 @@ function k() {
|
|
|
36
36
|
return u(D);
|
|
37
37
|
}
|
|
38
38
|
var A = D.Provider;
|
|
39
|
-
function j({ autoComplete:
|
|
40
|
-
let C = w(), T =
|
|
41
|
-
autoComplete:
|
|
42
|
-
complete: j[
|
|
43
|
-
index:
|
|
39
|
+
function j({ autoComplete: n, children: r, defaultStep: a, labelPlacement: s, linear: c, messages: l, navigation: u, onStepChange: d, orientation: p, render: h, step: _, ...y }) {
|
|
40
|
+
let C = w(), T = t(v, l), D = e(), O = f(), [k, A] = m(a ?? 0), [j, N] = m([]), P = _ ?? k, F = j.length, I = c ?? C.linear ?? !1, L = (e) => S({
|
|
41
|
+
autoComplete: n ?? !1,
|
|
42
|
+
complete: j[e]?.complete,
|
|
43
|
+
index: e,
|
|
44
44
|
step: P
|
|
45
|
-
}), R = (
|
|
46
|
-
autoComplete:
|
|
47
|
-
complete: j[
|
|
45
|
+
}), R = (e) => x({
|
|
46
|
+
autoComplete: n ?? !1,
|
|
47
|
+
complete: j[e]?.complete,
|
|
48
48
|
count: F,
|
|
49
|
-
disabled: j[
|
|
50
|
-
index:
|
|
49
|
+
disabled: j[e]?.disabled,
|
|
50
|
+
index: e,
|
|
51
51
|
isComplete: (e) => L(e) === "complete",
|
|
52
52
|
linear: I,
|
|
53
53
|
step: P
|
|
@@ -86,7 +86,7 @@ function j({ autoComplete: e, children: t, defaultStep: a, labelPlacement: s, li
|
|
|
86
86
|
...y,
|
|
87
87
|
children: /* @__PURE__ */ g(M.Provider, {
|
|
88
88
|
value: N,
|
|
89
|
-
children:
|
|
89
|
+
children: r
|
|
90
90
|
}),
|
|
91
91
|
"data-label-placement": B.labelPlacement,
|
|
92
92
|
"data-navigation": B.navigation,
|
|
@@ -145,7 +145,7 @@ function P({ children: e, ref: t, render: n, onKeyDown: r, ...a }) {
|
|
|
145
145
|
ref: t
|
|
146
146
|
}) : n(v);
|
|
147
147
|
}
|
|
148
|
-
function F({ children:
|
|
148
|
+
function F({ children: e, complete: t, description: o, disabled: s, href: c, invalid: l, label: u, loading: d, marker: f, ref: p, render: m, ...v }) {
|
|
149
149
|
let y = O(), b = k(), x = b?.index ?? 0, S = y.statusOf(x), C = x === y.step, w = s === !0 || !y.reachable(x), T = l === !0 ? "x" : S === "complete" && !C ? "check" : void 0, E = new Intl.ListFormat(y.locale, { type: "unit" }).format([
|
|
150
150
|
y.t("position", {
|
|
151
151
|
index: x + 1,
|
|
@@ -166,7 +166,7 @@ function F({ children: n, complete: r, description: o, disabled: s, href: c, inv
|
|
|
166
166
|
"aria-hidden": "true",
|
|
167
167
|
"data-part": "marker",
|
|
168
168
|
"data-part-marker": "",
|
|
169
|
-
children: [f ?? x + 1, T === void 0 ? null : /* @__PURE__ */ g(
|
|
169
|
+
children: [f ?? x + 1, T === void 0 ? null : /* @__PURE__ */ g(r, { children: /* @__PURE__ */ g(n, { name: T }) })]
|
|
170
170
|
}),
|
|
171
171
|
/* @__PURE__ */ _("span", {
|
|
172
172
|
"data-part": "label",
|
|
@@ -201,7 +201,7 @@ function F({ children: n, complete: r, description: o, disabled: s, href: c, inv
|
|
|
201
201
|
...v,
|
|
202
202
|
children: /* @__PURE__ */ _(h, { children: [
|
|
203
203
|
j,
|
|
204
|
-
|
|
204
|
+
e,
|
|
205
205
|
b?.last === !0 ? null : /* @__PURE__ */ g("span", {
|
|
206
206
|
"aria-hidden": "true",
|
|
207
207
|
"data-complete": b?.travelled === !0 ? "" : void 0,
|
package/dist/stepper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./stepper-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./stepper-BLfvMz04.js";
|
|
2
2
|
export { a as Stepper, t as StepperDefaultsProvider, c as StepperList, i as StepperNext, o as StepperPanel, n as StepperPrevious, e as StepperStep, s as useStepper, r as useStepperDefaults };
|