@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { b as r } from "./field-
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-DjqSEQ-o.js";
|
|
3
|
+
import { b as r } from "./field-tnEZiRLg.js";
|
|
4
4
|
import { t as i } from "./visually-hidden-BUSrFZ1_.js";
|
|
5
5
|
import { keyedProps as ee } from "@slotted/core/selector-key";
|
|
6
6
|
import { createControllable as te } from "@slotted/core/state";
|
|
@@ -33,7 +33,7 @@ function v(e) {
|
|
|
33
33
|
return e.detail > 0 ? "pointer" : e.isTrusted ? "keyboard" : "programmatic";
|
|
34
34
|
}
|
|
35
35
|
function y({ "aria-describedby": a, "aria-invalid": o, "aria-readonly": h, "aria-required": _, checked: y, children: b, className: re, defaultChecked: x = !1, description: S, disabled: C, id: w, indicator: T, invalid: E, labelPlacement: D, loading: O = !1, messages: ie, onChange: ae, onCheckedChange: oe, onClick: se, readOnly: ce, ref: k, render: A, size: j, style: M, ...N }) {
|
|
36
|
-
let P = r(), F = g(), I =
|
|
36
|
+
let P = r(), F = g(), I = e(p, ie), L = c(null), R = ne(), z = `${R}-pending`, B = `${R}-description`, V = w ?? P?.ids.control ?? `slotted-switch-${R}`, [H, U] = l(x), [W, G] = l(!1), K = y ?? H, q = c(K);
|
|
37
37
|
q.current = K;
|
|
38
38
|
let le = j ?? P?.size ?? F.size, J = T ?? F.indicator, ue = D ?? F.labelPlacement, Y = C ?? P?.disabled, X = ce ?? P?.readOnly, Z = E ?? P?.invalid, Q = P?.registerControl;
|
|
39
39
|
s(() => Q?.(), [Q]), s(() => {
|
|
@@ -103,7 +103,7 @@ function y({ "aria-describedby": a, "aria-invalid": o, "aria-readonly": h, "aria
|
|
|
103
103
|
children: /* @__PURE__ */ d("span", {
|
|
104
104
|
"data-part": "thumb",
|
|
105
105
|
"data-part-thumb": "",
|
|
106
|
-
children: J === "mark" ? /* @__PURE__ */ d(
|
|
106
|
+
children: J === "mark" ? /* @__PURE__ */ d(n, { children: /* @__PURE__ */ d(t, { name: "check" }) }) : null
|
|
107
107
|
})
|
|
108
108
|
}),
|
|
109
109
|
b === void 0 ? null : /* @__PURE__ */ d("label", {
|
package/dist/switch.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./switch-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./switch-BHyKHqeI.js";
|
|
2
2
|
export { t as SWITCH_LOADING_ANNOUNCE_DELAY, r as Switch, n as SwitchDefaultsProvider, e as useSwitchDefaults };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as r } from "./icon-button-
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-DjqSEQ-o.js";
|
|
3
|
+
import { n as r } from "./icon-button-DbSZKGT4.js";
|
|
4
4
|
import { a as i, i as a, n as o, r as s } from "./tooltip-DrFiRlH8.js";
|
|
5
|
-
import { t as c } from "./checkbox-
|
|
6
|
-
import { i as l } from "./skeleton-
|
|
7
|
-
import { t as u } from "./text-field-
|
|
8
|
-
import { a as d, d as f, f as p, l as m } from "./popover-
|
|
5
|
+
import { t as c } from "./checkbox-C_8GVtjD.js";
|
|
6
|
+
import { i as l } from "./skeleton-DeEOmm1y.js";
|
|
7
|
+
import { t as u } from "./text-field-Cguj75tn.js";
|
|
8
|
+
import { a as d, d as f, f as p, l as m } from "./popover-C7NpEzq6.js";
|
|
9
9
|
import { t as h } from "./visually-hidden-BUSrFZ1_.js";
|
|
10
|
-
import { t as g } from "./date-picker-
|
|
11
|
-
import { t as _ } from "./date-range-picker-
|
|
12
|
-
import { t as ee } from "./datetime-picker-
|
|
13
|
-
import { t as te } from "./datetime-range-picker-
|
|
14
|
-
import { t as ne } from "./number-field-
|
|
15
|
-
import { c as re, i as ie, n as ae, o as oe, s as se } from "./select-
|
|
16
|
-
import { t as v } from "./time-picker-
|
|
17
|
-
import { t as y } from "./time-range-picker-
|
|
18
|
-
import { n as ce, t as b } from "./radio-group-
|
|
19
|
-
import { t as x } from "./tags-input-
|
|
10
|
+
import { t as g } from "./date-picker-DpTRb-Y1.js";
|
|
11
|
+
import { t as _ } from "./date-range-picker-CBUPJep5.js";
|
|
12
|
+
import { t as ee } from "./datetime-picker-BK_bV3Yr.js";
|
|
13
|
+
import { t as te } from "./datetime-range-picker-ChdbRgzQ.js";
|
|
14
|
+
import { t as ne } from "./number-field-D1MqT8_A.js";
|
|
15
|
+
import { c as re, i as ie, n as ae, o as oe, s as se } from "./select-C0JYHwBy.js";
|
|
16
|
+
import { t as v } from "./time-picker-CNfafRDF.js";
|
|
17
|
+
import { t as y } from "./time-range-picker-D7gM_Wno.js";
|
|
18
|
+
import { n as ce, t as b } from "./radio-group-BHlDgCLk.js";
|
|
19
|
+
import { t as x } from "./tags-input-ClYSd-No.js";
|
|
20
20
|
import { keyedProps as S, withSelectorKey as C } from "@slotted/core/selector-key";
|
|
21
21
|
import { createFocusOrigin as w } from "@slotted/core/focus";
|
|
22
22
|
import { createControllable as le } from "@slotted/core/state";
|
|
23
23
|
import { createContext as T, useCallback as E, useContext as D, useEffect as O, useId as ue, useImperativeHandle as de, useMemo as k, useRef as fe, useState as A } from "react";
|
|
24
24
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
25
25
|
import { createScrollAffordance as pe } from "@slotted/core/overflow";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
26
|
+
import { tableMessages as me } from "@slotted/core/i18n";
|
|
27
|
+
import { isRowAction as P } from "@slotted/core/pointer-intent";
|
|
28
28
|
import { getLiveAnnouncer as he } from "@slotted/core/live-announcer";
|
|
29
29
|
import { isPlainDate as ge, isPlainDateTime as F, isPlainTime as I, parseISODate as L, parseISODateTime as _e, parseISOTime as R, toISODate as ve, toISOTime as ye } from "@slotted/core/date";
|
|
30
30
|
import { createFilter as z, nextSelection as B } from "@slotted/core/collection";
|
|
@@ -63,8 +63,8 @@ function K() {
|
|
|
63
63
|
function je() {
|
|
64
64
|
return D(G);
|
|
65
65
|
}
|
|
66
|
-
function Me({ children:
|
|
67
|
-
let v = W(), y =
|
|
66
|
+
function Me({ children: t, columns: n, defaultExpanded: r, defaultSort: i, defaultValue: a, edges: o, expanded: s, layout: c, loading: l, messages: u, onExpandedChange: d, onSortChange: f, onValueChange: p, ref: m, render: h, selectionMode: g, sort: _, cellAlign: ee, stickyFooter: te, stickyHeader: ne, stickyTo: re, striped: ie, value: ae, variant: oe, ...se }) {
|
|
67
|
+
let v = W(), y = e(me, u), ce = ue(), [b, x] = A(i ?? null), [C, w] = A(a ?? []), [T, D] = A(r ?? []), O = fe(null), de = fe(void 0), k = _ === void 0 ? b : _, j = ae ?? C, N = s ?? T, pe = n ?? v.columns ?? 1, P = o ?? v.edges ?? "inset", ge = c ?? v.layout ?? "auto", F = g ?? v.selectionMode ?? "none", I = (ne ?? v.stickyHeader ?? !1) === !0, L = (te ?? v.stickyFooter ?? !1) === !0, _e = ee ?? v.cellAlign ?? "center", R = re ?? v.stickyTo ?? "scroll", ve = (ie ?? v.striped ?? !1) === !0, ye = oe ?? v.variant ?? "ruled", z = E((e) => {
|
|
68
68
|
O.current = e, typeof m == "function" ? m(e) : m != null && (m.current = e);
|
|
69
69
|
}, [m]), be = E(() => [...O.current?.querySelectorAll("[data-part=\"body\"] > [data-part=\"row\"][data-value]") ?? []].filter((e) => !e.hasAttribute("data-disabled")).map((e) => e.getAttribute("data-value") ?? ""), []);
|
|
70
70
|
function xe(e, t, n) {
|
|
@@ -135,9 +135,9 @@ function Me({ children: e, columns: t, defaultExpanded: r, defaultSort: i, defau
|
|
|
135
135
|
value: j
|
|
136
136
|
}, V = S({
|
|
137
137
|
...se,
|
|
138
|
-
children:
|
|
138
|
+
children: t,
|
|
139
139
|
"data-cell-align": _e,
|
|
140
|
-
"data-edges":
|
|
140
|
+
"data-edges": P,
|
|
141
141
|
"data-layout": ge,
|
|
142
142
|
...l === !0 ? { "data-loading": "" } : {},
|
|
143
143
|
"data-part": "root",
|
|
@@ -250,7 +250,7 @@ function Ve({ ref: e, ...t }) {
|
|
|
250
250
|
}
|
|
251
251
|
function He({ children: e, current: t, disabled: n, interactive: r, onAction: i, onClick: a, ref: o, render: s, rowIndex: c, value: l, ...u }) {
|
|
252
252
|
let d = K(), f = l !== void 0 && d.isSelected(l), p = l !== void 0 && d.isExpanded(l), m = r ?? i !== void 0, h = i === void 0 ? a : (e) => {
|
|
253
|
-
a?.(e), !(e.defaultPrevented || n === !0) &&
|
|
253
|
+
a?.(e), !(e.defaultPrevented || n === !0) && P(e.currentTarget, e.target) && i(e);
|
|
254
254
|
}, g = S({
|
|
255
255
|
...u,
|
|
256
256
|
children: e,
|
|
@@ -355,14 +355,14 @@ function qe({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffs
|
|
|
355
355
|
ref: r
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function Je({ children:
|
|
358
|
+
function Je({ children: e, column: r, onClick: i, ref: a, render: o, ...s }) {
|
|
359
359
|
let c = K(), l = D(Fe), u = r ?? l;
|
|
360
360
|
function d(e) {
|
|
361
361
|
i?.(e), !(e.defaultPrevented || u === void 0) && c.requestSort(u, e);
|
|
362
362
|
}
|
|
363
363
|
let f = S({
|
|
364
364
|
...s,
|
|
365
|
-
children: /* @__PURE__ */ N(j, { children: [
|
|
365
|
+
children: /* @__PURE__ */ N(j, { children: [e, /* @__PURE__ */ M(n, { children: /* @__PURE__ */ M(t, { name: "chevron-down" }) })] }),
|
|
366
366
|
"data-part": "sort",
|
|
367
367
|
onClick: d,
|
|
368
368
|
type: "button"
|
|
@@ -432,17 +432,17 @@ function Ze({ align: e, blockAlign: t, numeric: n, ref: r, sticky: i, stickyOffs
|
|
|
432
432
|
})
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
function Qe({ onClick:
|
|
435
|
+
function Qe({ onClick: e, ref: r, value: i, ...a }) {
|
|
436
436
|
let o = K(), s = q(), c = i ?? s.value, l = c !== void 0 && o.isExpanded(c);
|
|
437
|
-
function u(
|
|
438
|
-
|
|
437
|
+
function u(t) {
|
|
438
|
+
e?.(t), !(t.defaultPrevented || c === void 0) && o.toggleExpanded(c, t);
|
|
439
439
|
}
|
|
440
440
|
return /* @__PURE__ */ M("button", {
|
|
441
441
|
...a,
|
|
442
442
|
"aria-controls": l ? s.detailId : void 0,
|
|
443
443
|
"aria-expanded": l,
|
|
444
444
|
"aria-label": a["aria-label"] ?? (l ? o.t("collapse") : o.t("expand")),
|
|
445
|
-
children: a.children ?? /* @__PURE__ */ M(
|
|
445
|
+
children: a.children ?? /* @__PURE__ */ M(n, { children: /* @__PURE__ */ M(t, { name: "chevron-right" }) }),
|
|
446
446
|
"data-part": "expander",
|
|
447
447
|
"data-part-expander": "",
|
|
448
448
|
onClick: u,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as r } from "./skeleton-
|
|
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 "./skeleton-DeEOmm1y.js";
|
|
4
4
|
import { definedProps as i, keyedProps as a } from "@slotted/core/selector-key";
|
|
5
5
|
import { createControllable as o } from "@slotted/core/state";
|
|
6
6
|
import { createContext as s, useCallback as c, useContext as l, useEffect as u, useId as d, useImperativeHandle as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
7
7
|
import { Fragment as ee, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { tableOfContentsMessages as te } from "@slotted/core/i18n";
|
|
9
|
+
import { createDismissableLayer as ne } from "@slotted/core/dismissable-layer";
|
|
10
10
|
import { DEFAULT_LEVELS as re, collectOutline as ie } from "@slotted/core/outline";
|
|
11
11
|
import { createScrollSpy as ae, focusTarget as oe, landOn as se, prefersReducedMotion as ce, readStickyTop as le, resolveScroller as ue } from "@slotted/core/scroll-spy";
|
|
12
12
|
//#region src/table-of-contents/table-of-contents-context.ts
|
|
@@ -153,7 +153,7 @@ function ye(e) {
|
|
|
153
153
|
}));
|
|
154
154
|
}
|
|
155
155
|
function be({ children: i, className: s, defaultOpen: l, defaultValue: re, exclude: y, history: b, items: x, label: S, landmark: C, layout: w, levels: fe, loading: E = !1, messages: pe, numbered: D, offset: me, onKeyDown: he, onOpenChange: be, onValueChange: xe, open: O, ref: Se, render: Ce, scroller: we, size: Te, source: Ee, sticky: De, style: Oe, value: k, ...ke }) {
|
|
156
|
-
let A = T(), j = b ?? A.history, Ae = C ?? A.landmark, M = w ?? A.layout, je = fe ?? A.levels, N = D ?? A.numbered, P = me ?? A.offset, F = Te ?? A.size, Me = De ?? A.sticky, Ne =
|
|
156
|
+
let A = T(), j = b ?? A.history, Ae = C ?? A.landmark, M = w ?? A.layout, je = fe ?? A.levels, N = D ?? A.numbered, P = me ?? A.offset, F = Te ?? A.size, Me = De ?? A.sticky, Ne = e(te, pe), [Pe, Fe] = g(re ?? null), [Ie, Le] = g(l ?? !1), I = k === void 0 ? Pe : k, L = O === void 0 ? Ie : O, R = M === "collapsed", z = !R || L, Re = d(), ze = `${Re}-panel`, B = `${Re}-label`, [V, Be] = g(null), [H, Ve] = g(null), He = h(null), U = h(null), [Ue, We] = g([]), [W, Ge] = g(0), Ke = h(!1), G = h(/* @__PURE__ */ new Map()), qe = c((e, t) => (G.current.set(e, t), Ge((e) => e + 1), () => {
|
|
157
157
|
G.current.delete(e), Ge((e) => e + 1);
|
|
158
158
|
}), []), K = h({
|
|
159
159
|
currentOpen: L,
|
|
@@ -328,7 +328,7 @@ function be({ children: i, className: s, defaultOpen: l, defaultValue: re, exclu
|
|
|
328
328
|
M
|
|
329
329
|
]), u(() => {
|
|
330
330
|
if (!R || !L || H === null) return;
|
|
331
|
-
let e = U.current, t =
|
|
331
|
+
let e = U.current, t = ne(H, {
|
|
332
332
|
branches: e === null ? [] : [e],
|
|
333
333
|
onDismiss: (t) => {
|
|
334
334
|
(t.reason === "escape" || t.reason === "outsidePress") && (J(!1, t.reason, t.source), t.reason === "escape" && e?.focus());
|
|
@@ -426,7 +426,7 @@ function be({ children: i, className: s, defaultOpen: l, defaultValue: re, exclu
|
|
|
426
426
|
"aria-hidden": "true",
|
|
427
427
|
"data-part": "indicator",
|
|
428
428
|
"data-part-indicator": "",
|
|
429
|
-
children: /* @__PURE__ */ _(
|
|
429
|
+
children: /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: "chevron-down" }) })
|
|
430
430
|
})
|
|
431
431
|
]
|
|
432
432
|
}) : rt ? /* @__PURE__ */ _("div", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./table-of-contents-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./table-of-contents-BAIuPCdy.js";
|
|
2
2
|
export { l as TABLE_OF_CONTENTS_BOUNDS, o as TABLE_OF_CONTENTS_FALLBACK, a as TableOfContents, c as TableOfContentsDefaultsProvider, s as TableOfContentsGroup, r as TableOfContentsItem, e as TableOfContentsLink, i as platformClick, u as useTableOfContents, t as useTableOfContentsDefaults, n as useTableOfContentsItem };
|
package/dist/table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./table-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./table-C8zOHDcY.js";
|
|
2
2
|
export { b as TABLE_ROW_SELECTOR, e as Table, p as TableBody, O as TableBooleanFilter, x as TableCaption, k as TableCell, m as TableColumnActions, h as TableColumnHeader, o as TableContent, C as TableDateFilter, E as TableDateTimeFilter, a as TableDefaultsProvider, T as TableDetail, S as TableEmpty, _ as TableExpander, g as TableFooter, u as TableGroupRow, A as TableHead, N as TableLoader, v as TableNumberFilter, f as TableRow, M as TableRowHeader, c as TableSelect, t as TableSelectAll, d as TableSetFilter, j as TableSort, l as TableSummary, w as TableTextFilter, D as TableTimeFilter, y as useOptionalTable, i as useTable, r as useTableColumn, s as useTableDefaults, n as useTableRow };
|
|
@@ -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 { definedProps as r, keyedProps as i, selectorKeyProps as a } from "@slotted/core/selector-key";
|
|
5
5
|
import { createRemovalFocus as o, createRovingTabindex as s } from "@slotted/core/focus";
|
|
@@ -77,14 +77,14 @@ function k(e, t) {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function A(
|
|
81
|
-
let
|
|
80
|
+
function A(t) {
|
|
81
|
+
let n = e(y, t.messages), r = t.disabled === !0 || t.removeDisabled === !0;
|
|
82
82
|
return {
|
|
83
|
-
removable:
|
|
83
|
+
removable: t.onRemove !== void 0,
|
|
84
84
|
removeDisabled: r,
|
|
85
|
-
removeLabel:
|
|
86
|
-
request(
|
|
87
|
-
r ||
|
|
85
|
+
removeLabel: n("remove"),
|
|
86
|
+
request(e, n) {
|
|
87
|
+
r || t.onRemove?.(k(e, n));
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
}
|
|
@@ -114,9 +114,9 @@ function M({ children: e, end: t, indicator: n, labelId: r, start: i }) {
|
|
|
114
114
|
})
|
|
115
115
|
] });
|
|
116
116
|
}
|
|
117
|
-
function N({ labelId:
|
|
117
|
+
function N({ labelId: e, removal: r, wordId: i }) {
|
|
118
118
|
return /* @__PURE__ */ v("button", {
|
|
119
|
-
"aria-labelledby": `${i} ${
|
|
119
|
+
"aria-labelledby": `${i} ${e}`,
|
|
120
120
|
"data-part": "remove",
|
|
121
121
|
"data-part-remove": "",
|
|
122
122
|
disabled: r.removeDisabled,
|
|
@@ -124,7 +124,7 @@ function N({ labelId: n, removal: r, wordId: i }) {
|
|
|
124
124
|
e.stopPropagation(), r.request("remove", e);
|
|
125
125
|
},
|
|
126
126
|
type: "button",
|
|
127
|
-
children: [/* @__PURE__ */ _(
|
|
127
|
+
children: [/* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: "x" }) }), /* @__PURE__ */ _("span", {
|
|
128
128
|
hidden: !0,
|
|
129
129
|
id: i,
|
|
130
130
|
children: r.removeLabel
|
|
@@ -318,7 +318,7 @@ function R({ children: e, disabled: t = !1, end: n, href: a, onAuxClickCapture:
|
|
|
318
318
|
function z(e) {
|
|
319
319
|
return e.detail === 0 ? "keyboard" : "pointer";
|
|
320
320
|
}
|
|
321
|
-
function B({ children:
|
|
321
|
+
function B({ children: e, defaultSelected: r, disabled: a = !1, end: o, onClick: s, onRemove: l, onSelectedChange: u, removeDisabled: d = !1, messages: f, render: m, rootProps: g, selected: y, shape: b, size: x, start: S, tone: C, type: w = "button", variant: T, ...E }) {
|
|
322
322
|
let O = D({
|
|
323
323
|
shape: b,
|
|
324
324
|
size: x,
|
|
@@ -342,11 +342,11 @@ function B({ children: n, defaultSelected: r, disabled: a = !1, end: o, onClick:
|
|
|
342
342
|
"aria-hidden": "true",
|
|
343
343
|
"data-part": "indicator",
|
|
344
344
|
"data-part-indicator": "",
|
|
345
|
-
children: /* @__PURE__ */ _(
|
|
345
|
+
children: /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: "check" }) })
|
|
346
346
|
}),
|
|
347
347
|
labelId: L,
|
|
348
348
|
start: S,
|
|
349
|
-
children:
|
|
349
|
+
children: e
|
|
350
350
|
}),
|
|
351
351
|
"data-part": "body",
|
|
352
352
|
disabled: a,
|
package/dist/tag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./tag-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./tag-XYGEPUHR.js";
|
|
2
2
|
export { e as Tag, t as TagButton, r as TagDefaultsProvider, i as TagGroup, n as TagLink, o as TagToggle, a as useTagDefaults };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "./
|
|
2
|
-
import { n, r } from "./
|
|
3
|
-
import { b as i } from "./field-
|
|
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 { b as i } from "./field-tnEZiRLg.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { selectorKeyProps as a } from "@slotted/core/selector-key";
|
|
6
6
|
import { createArrowNavigation as o, createRemovalFocus as s } from "@slotted/core/focus";
|
|
@@ -8,8 +8,8 @@ import { createControllable as c } from "@slotted/core/state";
|
|
|
8
8
|
import { createContext as l, createElement as u, useCallback as d, useContext as f, useEffect as p, useId as ee, useImperativeHandle as te, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
|
|
9
9
|
import { Fragment as ne, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
10
|
import { createCollapse as re } from "@slotted/core/overflow";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { tagsInputMessages as ie } from "@slotted/core/i18n";
|
|
12
|
+
import { createPositioner as ae } from "@slotted/core/positioner";
|
|
13
13
|
import { createWidthGate as oe } from "@slotted/core/measure";
|
|
14
14
|
import { getLiveAnnouncer as se } from "@slotted/core/live-announcer";
|
|
15
15
|
import { createFilter as ce, revealWithin as le } from "@slotted/core/collection";
|
|
@@ -17,60 +17,60 @@ import { writeToClipboard as ue } from "@slotted/core/clipboard";
|
|
|
17
17
|
import { admitValues as de, joinValues as fe, judgeValue as pe, splitValues as me } from "@slotted/core/tags";
|
|
18
18
|
//#region src/tags-input/tags-input-chips.tsx
|
|
19
19
|
var b = "[data-part='chips'] > [role='gridcell']:not([data-part='field'])";
|
|
20
|
-
function he({ context:
|
|
21
|
-
let [a, o] = _(null), s = g(null), c = g(!1), l = ee(), u =
|
|
20
|
+
function he({ context: e, index: t, value: i }) {
|
|
21
|
+
let [a, o] = _(null), s = g(null), c = g(!1), l = ee(), u = e.labelFor(i), d = e.lockedValues.includes(i), f = e.disabled || e.readOnly || d, te = e.verdicts[t] ?? { valid: !0 }, m = te.valid ? null : te.message || e.t("invalid"), h = e.value.length;
|
|
22
22
|
p(() => {
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
let ne = (
|
|
23
|
+
e.duplicate === i && s.current?.focus({ preventScroll: !0 });
|
|
24
|
+
}, [e.duplicate, i]);
|
|
25
|
+
let ne = (n, r) => {
|
|
26
26
|
if (c.current) {
|
|
27
27
|
c.current = !1;
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
o(null), s.current?.focus({ preventScroll: !0 }),
|
|
31
|
-
}, re = (
|
|
32
|
-
if (
|
|
33
|
-
let
|
|
34
|
-
if (
|
|
35
|
-
|
|
30
|
+
o(null), s.current?.focus({ preventScroll: !0 }), n.trim() !== "" && n !== i && e.replace(t, n, r);
|
|
31
|
+
}, re = (n) => {
|
|
32
|
+
if (n.defaultPrevented) return;
|
|
33
|
+
let r = n.ctrlKey || n.metaKey;
|
|
34
|
+
if (r && (n.key === "c" || n.key === "C")) {
|
|
35
|
+
n.preventDefault(), e.copy(i);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
if (
|
|
38
|
+
if (r && (n.key === "x" || n.key === "X")) {
|
|
39
39
|
if (f) return;
|
|
40
|
-
|
|
40
|
+
n.preventDefault(), e.copy(i), e.remove(t, n.nativeEvent);
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
switch (
|
|
43
|
+
switch (n.key) {
|
|
44
44
|
case "Delete":
|
|
45
45
|
case "Backspace":
|
|
46
46
|
if (f) return;
|
|
47
|
-
|
|
47
|
+
n.preventDefault(), e.remove(t, n.nativeEvent);
|
|
48
48
|
return;
|
|
49
49
|
case "Enter":
|
|
50
|
-
if (f || !
|
|
51
|
-
|
|
50
|
+
if (f || !e.editable) return;
|
|
51
|
+
n.preventDefault(), c.current = !1, o(i);
|
|
52
52
|
return;
|
|
53
53
|
case "Escape":
|
|
54
|
-
|
|
54
|
+
n.preventDefault(), e.inputNode?.focus({ preventScroll: !0 });
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
if (
|
|
58
|
-
let
|
|
57
|
+
if (e.reorderable && n.altKey && !f) {
|
|
58
|
+
let r = s.current?.ownerDocument.defaultView?.getComputedStyle(s.current).direction === "rtl", i = r ? "ArrowLeft" : "ArrowRight", a = r ? "ArrowRight" : "ArrowLeft", o = n.key === i ? t + 1 : n.key === a ? t - 1 : n.key === "Home" ? 0 : n.key === "End" ? h - 1 : null;
|
|
59
59
|
if (o !== null) {
|
|
60
|
-
|
|
60
|
+
n.preventDefault(), e.move(t, o, n.nativeEvent);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
}, ie = (
|
|
66
|
-
|
|
64
|
+
n.key.length === 1 && !r && !n.altKey && e.inputNode?.focus({ preventScroll: !0 });
|
|
65
|
+
}, ie = (n) => {
|
|
66
|
+
n.stopPropagation(), e.remove(t, n.nativeEvent);
|
|
67
67
|
};
|
|
68
68
|
return a === null ? /* @__PURE__ */ y("span", {
|
|
69
69
|
"aria-describedby": m === null ? void 0 : l,
|
|
70
70
|
"aria-invalid": m !== null || void 0,
|
|
71
|
-
"aria-label":
|
|
71
|
+
"aria-label": e.reorderable ? e.t("reorder", {
|
|
72
72
|
label: u,
|
|
73
|
-
position:
|
|
73
|
+
position: t + 1,
|
|
74
74
|
count: h
|
|
75
75
|
}) : void 0,
|
|
76
76
|
"data-part": "root",
|
|
@@ -81,7 +81,7 @@ function he({ context: n, index: r, value: i }) {
|
|
|
81
81
|
"data-value": i,
|
|
82
82
|
"data-variant": "soft",
|
|
83
83
|
onDoubleClick: () => {
|
|
84
|
-
!f &&
|
|
84
|
+
!f && e.editable && (c.current = !1, o(i));
|
|
85
85
|
},
|
|
86
86
|
onKeyDown: re,
|
|
87
87
|
ref: s,
|
|
@@ -92,8 +92,8 @@ function he({ context: n, index: r, value: i }) {
|
|
|
92
92
|
"data-invalid": "",
|
|
93
93
|
"data-tone": "danger"
|
|
94
94
|
},
|
|
95
|
-
...
|
|
96
|
-
...d ||
|
|
95
|
+
...e.duplicate === i ? { "data-current": "" } : {},
|
|
96
|
+
...d || e.disabled ? { "data-disabled": "" } : {},
|
|
97
97
|
children: [
|
|
98
98
|
/* @__PURE__ */ y("span", {
|
|
99
99
|
"data-part": "body",
|
|
@@ -101,7 +101,7 @@ function he({ context: n, index: r, value: i }) {
|
|
|
101
101
|
children: [m === null ? null : /* @__PURE__ */ v("span", {
|
|
102
102
|
"data-part": "start",
|
|
103
103
|
"data-part-start": "",
|
|
104
|
-
children: /* @__PURE__ */ v(
|
|
104
|
+
children: /* @__PURE__ */ v(r, { children: /* @__PURE__ */ v(n, { name: "circle-alert" }) })
|
|
105
105
|
}), /* @__PURE__ */ v("span", {
|
|
106
106
|
"data-part": "label",
|
|
107
107
|
"data-part-label": "",
|
|
@@ -115,13 +115,13 @@ function he({ context: n, index: r, value: i }) {
|
|
|
115
115
|
children: m
|
|
116
116
|
}),
|
|
117
117
|
f ? null : /* @__PURE__ */ v("button", {
|
|
118
|
-
"aria-label":
|
|
118
|
+
"aria-label": e.t("remove", { label: u }),
|
|
119
119
|
"data-part": "remove",
|
|
120
120
|
"data-part-remove": "",
|
|
121
121
|
onClick: ie,
|
|
122
122
|
tabIndex: -1,
|
|
123
123
|
type: "button",
|
|
124
|
-
children: /* @__PURE__ */ v(
|
|
124
|
+
children: /* @__PURE__ */ v(r, { children: /* @__PURE__ */ v(n, { name: "x" }) })
|
|
125
125
|
})
|
|
126
126
|
]
|
|
127
127
|
}) : /* @__PURE__ */ v("span", {
|
|
@@ -297,7 +297,7 @@ function Ce(e) {
|
|
|
297
297
|
return Number.isFinite(n) ? t.endsWith("ms") ? n : n * 1e3 : 320;
|
|
298
298
|
}
|
|
299
299
|
function we({ className: o, defaultInputValue: s = "", defaultValue: l = [], formatLabel: f, handleRef: re, inputValue: b, locale: he, lockedValues: x = [], messages: S, normalize: _e, onValueCopy: ye, onInputValueChange: we, onValueChange: Te, onValueRefuse: Ee, ref: De, render: Oe, split: w, style: ke, suggestions: T, type: Ae = "text", validate: je, value: Me, ...Ne }) {
|
|
300
|
-
let E = ve(), D = i(), O =
|
|
300
|
+
let E = ve(), D = i(), O = t(ie, S), Pe = e(), Fe = he ?? Pe, k = {}, Ie = {};
|
|
301
301
|
for (let [e, t] of Object.entries(Ne)) be.includes(e) ? k[e] = t : Ie[e] = t;
|
|
302
302
|
let A = Ie, Le = ee(), Re = `${Le}input`, ze = `${Le}hint`, Be = `${Le}suggestions`, [Ve, He] = _(l), [Ue, We] = _(s), [j, Ge] = _(null), [Ke, qe] = _(!1), [Je, Ye] = _(!1), [M, Xe] = _(null), [Ze, N] = _(!1), [Qe, P] = _(-1), [F, $e] = _(null), I = g(null), L = { ...E };
|
|
303
303
|
for (let e of be) {
|
|
@@ -317,7 +317,7 @@ function we({ className: o, defaultInputValue: s = "", defaultValue: l = [], for
|
|
|
317
317
|
]), U = T !== void 0 && Ze && !B && H.length > 0, W = U && Qe < H.length ? Qe : -1, nt = (e) => `${Be}-${e}`;
|
|
318
318
|
m(() => {
|
|
319
319
|
if (!U || F === null || I.current === null) return;
|
|
320
|
-
let e =
|
|
320
|
+
let e = ae(I.current, F, {
|
|
321
321
|
side: "bottom",
|
|
322
322
|
align: "start",
|
|
323
323
|
sideOffset: 4,
|
|
@@ -682,7 +682,7 @@ function we({ className: o, defaultInputValue: s = "", defaultValue: l = [], for
|
|
|
682
682
|
"data-part-clear": "",
|
|
683
683
|
onClick: yt,
|
|
684
684
|
type: "button",
|
|
685
|
-
children: /* @__PURE__ */ v(
|
|
685
|
+
children: /* @__PURE__ */ v(r, { children: /* @__PURE__ */ v(n, { name: "x" }) })
|
|
686
686
|
}) : null,
|
|
687
687
|
/* @__PURE__ */ v("span", {
|
|
688
688
|
"data-part": "hint",
|
package/dist/tags-input.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./tags-input-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./tags-input-ClYSd-No.js";
|
|
2
2
|
export { t as TAGS_INPUT_FALLBACK, r as TagsInput, n as TagsInputDefaultsProvider, e as useTagsInputDefaults };
|