themelia-react-ui 2.0.1 → 2.0.3
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/CHANGELOG.md +317 -131
- package/README.md +25 -9
- package/THIRD_PARTY_NOTICES.md +7 -0
- package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
- package/dist/auth-BGua8ouh.js.map +1 -0
- package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +40 -36
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +92 -92
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +14 -14
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -176
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +6 -6
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +42 -42
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +260 -240
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +620 -585
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1152 -1109
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +48 -39
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +13 -12
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
- package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
- package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
- package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
- package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
- package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-DaHESuiL.js +355 -0
- package/dist/combobox-DaHESuiL.js.map +1 -0
- package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
- package/dist/combobox-Dxo2fAYQ.js.map +1 -0
- package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
- package/dist/comments-DD0DUPwJ.js.map +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/combobox/combobox-field.d.ts +16 -0
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/forms/form-sizing.d.ts +11 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/rich-text-editor/index.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +17 -4
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/text-link.d.ts +4 -0
- package/dist/components/ui/combobox-dismiss.d.ts +16 -0
- package/dist/components/ui/combobox.d.ts +16 -7
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
- package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
- package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
- package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
- package/dist/date-picker-B2K3ucWn.js.map +1 -0
- package/dist/date-pickers-Ds8gLaoP.js +175 -0
- package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
- package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +398 -375
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +188 -179
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +137 -137
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +255 -255
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +254 -248
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +35 -32
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +118 -117
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +233 -231
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +789 -775
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +922 -902
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +28 -24
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +18 -15
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +12 -12
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +15 -13
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +493 -489
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
- package/dist/filters-DJVAveHA.js.map +1 -0
- package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
- package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
- package/dist/header-BSfIEWbI.js.map +1 -0
- package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
- package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
- package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
- package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +71 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/interaction-recipes.d.ts +5 -0
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/tone-recipes.d.ts +8 -0
- package/dist/lib/ui-provider/types.d.ts +2 -2
- package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
- package/dist/mentions-CGlEJ15c.js.map +1 -0
- package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
- package/dist/overlays-tMkF-VAN.js.map +1 -0
- package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
- package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
- package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
- package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
- package/dist/popover-gnTOhbFM.js.map +1 -0
- package/dist/popover-menu-Cn9rUkdc.js +100 -0
- package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
- package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
- package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
- package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
- package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
- package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
- package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
- package/dist/sheet-ijlsjq-n.js.map +1 -0
- package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
- package/dist/sidebar-Db6gkh3U.js.map +1 -0
- package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
- package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
- package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
- package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
- package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
- package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
- package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
- package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
- package/dist/value-inputs-TaX4OjNk.js.map +1 -0
- package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
- package/dist/workspace-B-OEm3Kf.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +3 -3
- package/docs/consumer-skill/references/agents-md.md +1 -1
- package/docs/consumer-skill/references/composition.md +8 -6
- package/docs/consumer-skill/references/installation.md +6 -0
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +105 -2
- package/docs/consumer-skill/references/review.md +7 -0
- package/docs/consumer-skill/references/theming.md +71 -6
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +26 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
- package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
- package/package.json +8 -4
- package/dist/accordion-B6a3vVgA.js.map +0 -1
- package/dist/action-menu-TzCoSlwL.js +0 -280
- package/dist/action-menu-TzCoSlwL.js.map +0 -1
- package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
- package/dist/ai-artifact-BMJdv-6q.js +0 -1115
- package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
- package/dist/attachment-BtfhGm8i.js +0 -245
- package/dist/attachment-BtfhGm8i.js.map +0 -1
- package/dist/auth-CYxKfo69.js.map +0 -1
- package/dist/avatar-BBnEJIx8.js.map +0 -1
- package/dist/badge-MrKVNzW9.js.map +0 -1
- package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
- package/dist/breadcrumbs-D5t7I023.js.map +0 -1
- package/dist/buttons-SbIcm1HJ.js.map +0 -1
- package/dist/cards-CiiHpKYd.js +0 -66
- package/dist/cards-CiiHpKYd.js.map +0 -1
- package/dist/chart-QfrARkXl.js.map +0 -1
- package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
- package/dist/code-block-Dgbu-CU3.js.map +0 -1
- package/dist/combobox-2Ic8N9bL.js +0 -278
- package/dist/combobox-2Ic8N9bL.js.map +0 -1
- package/dist/combobox-DLl0bfiq.js.map +0 -1
- package/dist/comments-BpDuCUUu.js.map +0 -1
- package/dist/data-display-DafIvCl5.js.map +0 -1
- package/dist/date-picker-CF-DtUpF.js.map +0 -1
- package/dist/date-pickers-BmzxJl5l.js +0 -174
- package/dist/date-pickers-BmzxJl5l.js.map +0 -1
- package/dist/display-DsQTVzMz.js.map +0 -1
- package/dist/dropdown-menu-E2qmdC7o.js +0 -193
- package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-qNuMBtRH.js +0 -233
- package/dist/feedback-qNuMBtRH.js.map +0 -1
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
- package/dist/filters-BkHH53uv.js.map +0 -1
- package/dist/form-field-DUt4UxSV.js.map +0 -1
- package/dist/form-sizing-By94KzXE.js.map +0 -1
- package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
- package/dist/header-BOefOKd1.js.map +0 -1
- package/dist/input-DWhBBBww.js +0 -262
- package/dist/input-DWhBBBww.js.map +0 -1
- package/dist/input-Ddi_LSYv.js +0 -20
- package/dist/input-Ddi_LSYv.js.map +0 -1
- package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
- package/dist/item-DEmDiTlD.js +0 -265
- package/dist/item-DEmDiTlD.js.map +0 -1
- package/dist/media-gallery-DcTtAaeC.js.map +0 -1
- package/dist/mentions-D-uyCh01.js.map +0 -1
- package/dist/message-CdHgIWKf.js.map +0 -1
- package/dist/metadata-list-X5rYAKSB.js.map +0 -1
- package/dist/navigation-D3KwXmaq.js.map +0 -1
- package/dist/navigation-HJf5zxlH.js.map +0 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
- package/dist/overlays-I0axtYA6.js.map +0 -1
- package/dist/pagination-3bPA_a6K.js +0 -149
- package/dist/pagination-3bPA_a6K.js.map +0 -1
- package/dist/popover-Di55PyAI.js.map +0 -1
- package/dist/popover-menu-B71Tn2Qz.js +0 -99
- package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
- package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
- package/dist/primitives-B-CkiEMU.js.map +0 -1
- package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
- package/dist/settings-CQW3b-Cu.js.map +0 -1
- package/dist/sheet-4SEvVYzA.js.map +0 -1
- package/dist/sidebar-C7WWR29L.js.map +0 -1
- package/dist/smart-card-lFKxn5Hu.js +0 -595
- package/dist/smart-card-lFKxn5Hu.js.map +0 -1
- package/dist/spinner-fa3h1Aif.js +0 -80
- package/dist/spinner-fa3h1Aif.js.map +0 -1
- package/dist/table-CIKyLUsy.js.map +0 -1
- package/dist/table-CrcLN9Io.js +0 -1458
- package/dist/table-CrcLN9Io.js.map +0 -1
- package/dist/tabs-DwBJfjxX.js.map +0 -1
- package/dist/text-inputs-aaK9wcDT.js +0 -326
- package/dist/text-inputs-aaK9wcDT.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-C_SBwHNP.js +0 -442
- package/dist/timelines-C_SBwHNP.js.map +0 -1
- package/dist/tone-recipes-CPoExcTE.js.map +0 -1
- package/dist/typography-DTRkE9zL.js.map +0 -1
- package/dist/ui-provider-1D_NSYzO.js.map +0 -1
- package/dist/upload-BO8-CLN6.js.map +0 -1
- package/dist/upload-queue-EOC8g1gf.js.map +0 -1
- package/dist/usage-card-obRaBskq.js.map +0 -1
- package/dist/utils-l5LpDw2z.js.map +0 -1
- package/dist/value-inputs-TAYMX111.js.map +0 -1
- package/dist/workspace-DH0v0KcB.js.map +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { m as e, s as t } from "./ui-provider-
|
|
2
|
+
import { m as e, s as t } from "./ui-provider-C_U0Xma4.js";
|
|
3
3
|
import { useStrings as n } from "./lib/strings.js";
|
|
4
|
-
import { t as r } from "./utils-
|
|
5
|
-
import { t as i } from "./buttons-
|
|
6
|
-
import {
|
|
4
|
+
import { t as r } from "./utils-BRhFDwuU.js";
|
|
5
|
+
import { t as i } from "./buttons-DPZekJFu.js";
|
|
6
|
+
import { c as a } from "./typography-UTnveOEy.js";
|
|
7
7
|
import { a as o } from "./text.styles-g4He6UIW.js";
|
|
8
8
|
import { t as s } from "./focus-recipes-B653VaLq.js";
|
|
9
|
-
import { t as c } from "./structure-
|
|
9
|
+
import { t as c } from "./structure-BmisBK-3.js";
|
|
10
10
|
import { t as l } from "./track-recipes-CDcKmndW.js";
|
|
11
|
-
import { n as u, t as d } from "./popover.recipes-
|
|
12
|
-
import { n as f } from "./collection-content-
|
|
13
|
-
import { t as p } from "./badge-
|
|
11
|
+
import { n as u, t as d } from "./popover.recipes-D3j8R8Yp.js";
|
|
12
|
+
import { n as f } from "./collection-content-By56pLog.js";
|
|
13
|
+
import { t as p } from "./badge-HpFqoqSY.js";
|
|
14
14
|
import { t as ee } from "./field-state-recipes-BVA2CWHo.js";
|
|
15
|
-
import { n as m, r as h, t as te } from "./field-affordance-recipes-
|
|
16
|
-
import { t as ne } from "./editable-text-recipe-
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { o as
|
|
21
|
-
import { _ as
|
|
22
|
-
import * as
|
|
23
|
-
import { forwardRef as
|
|
24
|
-
import { jsx as
|
|
25
|
-
import { Check as
|
|
26
|
-
import { Slider as
|
|
15
|
+
import { n as m, r as h, t as te } from "./field-affordance-recipes-DZhnIL_Y.js";
|
|
16
|
+
import { t as ne } from "./editable-text-recipe-Cn61kEcv.js";
|
|
17
|
+
import { d as re, l as g, o as ie, p as ae, y as oe } from "./form-sizing-BdP_Mf5p.js";
|
|
18
|
+
import { t as se } from "./input-DQdEd0YD.js";
|
|
19
|
+
import { t as _ } from "./date-picker-B2K3ucWn.js";
|
|
20
|
+
import { o as v, t as y } from "./popover-gnTOhbFM.js";
|
|
21
|
+
import { _ as ce, d as b, f as x, g as le, p as S, v as C } from "./choice-inputs-CNHvARCJ.js";
|
|
22
|
+
import * as w from "react";
|
|
23
|
+
import { forwardRef as T, memo as E, useCallback as D, useId as O, useMemo as k, useRef as ue, useState as A } from "react";
|
|
24
|
+
import { jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
25
|
+
import { Check as de } from "lucide-react";
|
|
26
|
+
import { Slider as N } from "@base-ui/react/slider";
|
|
27
27
|
//#region src/components/base/value-inputs/tags-input.tsx
|
|
28
|
-
var
|
|
28
|
+
var P = {
|
|
29
29
|
placeholder: "Add a tag…",
|
|
30
30
|
emptyRecommendations: "No recommendations found.",
|
|
31
31
|
clearAll: "Clear all",
|
|
@@ -34,21 +34,21 @@ var F = {
|
|
|
34
34
|
notAdded: (e) => `Not added: ${e}.`,
|
|
35
35
|
recommendationsLabel: "Suggested tags"
|
|
36
36
|
};
|
|
37
|
-
function
|
|
37
|
+
function F(e) {
|
|
38
38
|
return e === !0 || e === "true";
|
|
39
39
|
}
|
|
40
|
-
function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
41
|
-
let { defaultTextSize:
|
|
40
|
+
function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby": re, "aria-invalid": ae, "aria-required": se, value: _, defaultValue: ce, onValueChange: b, name: x, placeholder: le, recommendations: S, maxTags: C, showMaxTags: T = !1, allowDuplicates: E = !1, validate: O, disabled: N = !1, showClearAll: fe = !1, renderTag: pe, delimiter: I = /[\n,]/, addOnBlur: me = !0, minLength: L = 1, maxLength: he, sortTags: ge = !1, caseSensitive: _e = !1, field: R, invalid: ve, className: ye, strings: be }) {
|
|
41
|
+
let { defaultTextSize: xe } = e(), { defaultScale: z } = t(), B = oe(void 0, z), V = n(P, le === void 0 ? void 0 : { placeholder: le }), H = n(V, be), Se = _ !== void 0, [Ce, we] = A(() => ce ?? []), U = _ ?? Ce, [W, Te] = A(""), [Ee, De] = A(null), [Oe, ke] = A(""), [Ae, G] = A(!1), [je, K] = A(-1), [Me, Ne] = A(null), Pe = ue(null), Fe = ue(null), Ie = w.useId(), Le = w.useId(), Re = C !== void 0 && U.length >= C, ze = !!S?.length, q = D((e) => {
|
|
42
42
|
if (typeof e == "string") return e;
|
|
43
|
-
if (
|
|
44
|
-
let t = e[
|
|
43
|
+
if (R && typeof e == "object" && e) {
|
|
44
|
+
let t = e[R];
|
|
45
45
|
return typeof t == "string" ? t : t == null ? "" : String(t);
|
|
46
46
|
}
|
|
47
47
|
return String(e);
|
|
48
|
-
}, [
|
|
48
|
+
}, [R]), Be = D((e) => R ? { [R]: e } : e, [R]), J = D((e) => _e ? e : e.toLowerCase(), [_e]), Ve = D((e, t) => {
|
|
49
49
|
let n = J(e);
|
|
50
50
|
return t.some((e) => J(q(e)) === n);
|
|
51
|
-
}, [J, q]), He = k(() =>
|
|
51
|
+
}, [J, q]), He = k(() => S ? S.map((e, t) => {
|
|
52
52
|
if (e && typeof e == "object" && "value" in e && "label" in e) {
|
|
53
53
|
let n = e;
|
|
54
54
|
return {
|
|
@@ -63,51 +63,51 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
63
63
|
value: e,
|
|
64
64
|
label: n
|
|
65
65
|
};
|
|
66
|
-
}) : [], [
|
|
66
|
+
}) : [], [S, q]), Y = k(() => {
|
|
67
67
|
if (!He.length) return He;
|
|
68
68
|
let e = J(W.trim()), t = new Set(U.map((e) => J(q(e))));
|
|
69
69
|
return He.filter((n) => {
|
|
70
70
|
let r = J(q(n.value));
|
|
71
|
-
return !
|
|
71
|
+
return !E && t.has(r) ? !1 : !e || J(n.label).includes(e) || r.includes(e);
|
|
72
72
|
});
|
|
73
73
|
}, [
|
|
74
74
|
He,
|
|
75
75
|
W,
|
|
76
76
|
U,
|
|
77
|
-
|
|
77
|
+
E,
|
|
78
78
|
J,
|
|
79
79
|
q
|
|
80
|
-
]), X = Ae && !
|
|
81
|
-
Se || we(e),
|
|
82
|
-
}, [Se,
|
|
80
|
+
]), X = Ae && !N && ze && !Re, Z = X && je >= 0 && je < Y.length ? je : -1, Ue = D((e) => [...e].sort((e, t) => q(e).localeCompare(q(t))), [q]), We = D((e) => {
|
|
81
|
+
Se || we(e), b?.(e);
|
|
82
|
+
}, [Se, b]), Ge = D((e) => {
|
|
83
83
|
let t = [...U], n = [];
|
|
84
84
|
for (let r of e) {
|
|
85
85
|
let e = typeof r == "string", i = (e ? r : q(r)).trim();
|
|
86
86
|
if (!i) continue;
|
|
87
87
|
let a = e ? Be(i) : r;
|
|
88
|
-
if (i.length <
|
|
88
|
+
if (i.length < L || he !== void 0 && i.length > he || C !== void 0 && t.length >= C || !E && Ve(i, t) || O && !O(a)) {
|
|
89
89
|
n.push(i);
|
|
90
90
|
continue;
|
|
91
91
|
}
|
|
92
92
|
t.push(a);
|
|
93
93
|
}
|
|
94
|
-
return t.length !== U.length && (
|
|
94
|
+
return t.length !== U.length && (ge && (t = Ue(t)), We(t)), n;
|
|
95
95
|
}, [
|
|
96
96
|
U,
|
|
97
97
|
q,
|
|
98
98
|
Be,
|
|
99
|
+
L,
|
|
99
100
|
he,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
D,
|
|
101
|
+
C,
|
|
102
|
+
E,
|
|
103
103
|
Ve,
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
O,
|
|
105
|
+
ge,
|
|
106
106
|
Ue,
|
|
107
107
|
We
|
|
108
|
-
]), Q =
|
|
108
|
+
]), Q = D((e) => {
|
|
109
109
|
let t = Ge(e), n = t.join(typeof I == "string" ? I : ", ");
|
|
110
|
-
Te(n), De(n || null), ke(t.length ? (H.notAdded ??
|
|
110
|
+
Te(n), De(n || null), ke(t.length ? (H.notAdded ?? P.notAdded)(t.join(", ")) : ""), G(!1), K(-1);
|
|
111
111
|
}, [
|
|
112
112
|
Ge,
|
|
113
113
|
I,
|
|
@@ -123,18 +123,18 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
123
123
|
key: `${r}::${i}`
|
|
124
124
|
};
|
|
125
125
|
});
|
|
126
|
-
}, [U, q]), $ = k(() =>
|
|
126
|
+
}, [U, q]), $ = k(() => ge ? [...Ke].sort((e, t) => e.display.localeCompare(t.display)) : Ke, [Ke, ge]), qe = D((e) => {
|
|
127
127
|
We(U.filter((t, n) => n !== e));
|
|
128
|
-
}, [U, We]), Je =
|
|
128
|
+
}, [U, We]), Je = D((e) => {
|
|
129
129
|
Ne(Math.max(0, $.findIndex((t) => t.index === e))), qe(e);
|
|
130
130
|
}, [$, qe]);
|
|
131
|
-
|
|
131
|
+
w.useLayoutEffect(() => {
|
|
132
132
|
if (Me === null) return;
|
|
133
133
|
Ne(null);
|
|
134
134
|
let e = Fe.current?.querySelectorAll("[data-tag-remove]:not(:disabled)");
|
|
135
135
|
((e && e.length > 0 ? e[Math.min(Me, e.length - 1)] : void 0) ?? Pe.current)?.focus();
|
|
136
136
|
}, [Me]);
|
|
137
|
-
let Ye =
|
|
137
|
+
let Ye = D((e) => {
|
|
138
138
|
let t = e.target.value;
|
|
139
139
|
if (t.split(I).length > 1) {
|
|
140
140
|
Q(t.split(I));
|
|
@@ -145,10 +145,10 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
145
145
|
I,
|
|
146
146
|
Q,
|
|
147
147
|
ze
|
|
148
|
-
]), Xe =
|
|
149
|
-
|
|
148
|
+
]), Xe = D((e) => {
|
|
149
|
+
N || e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), Z >= 0 ? Q([Y[Z].value]) : W.trim() && Q(W.split(I))) : e.key === "ArrowDown" ? X ? (e.preventDefault(), K((e) => e < Y.length - 1 ? e + 1 : e)) : ze && !Re && Y.length > 0 && G(!0) : e.key === "ArrowUp" ? X && (e.preventDefault(), K((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (G(!1), K(-1)) : e.key === "Backspace" && W === "" && $.length > 0 && (e.preventDefault(), qe($[$.length - 1].index)));
|
|
150
150
|
}, [
|
|
151
|
-
|
|
151
|
+
N,
|
|
152
152
|
Z,
|
|
153
153
|
Y,
|
|
154
154
|
Q,
|
|
@@ -159,87 +159,87 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
159
159
|
Re,
|
|
160
160
|
$,
|
|
161
161
|
qe
|
|
162
|
-
]), Ze =
|
|
163
|
-
if (
|
|
162
|
+
]), Ze = D((e) => {
|
|
163
|
+
if (N) return;
|
|
164
164
|
let t = e.clipboardData.getData("text");
|
|
165
165
|
if (!t) return;
|
|
166
166
|
let n = e.currentTarget.selectionStart ?? W.length, r = e.currentTarget.selectionEnd ?? n, i = `${W.slice(0, n)}${t}${W.slice(r)}`.split(I);
|
|
167
167
|
i.length <= 1 || (e.preventDefault(), Q(i));
|
|
168
168
|
}, [
|
|
169
|
-
|
|
169
|
+
N,
|
|
170
170
|
W,
|
|
171
171
|
I,
|
|
172
172
|
Q
|
|
173
|
-
]), Qe =
|
|
174
|
-
G(!1), K(-1), me && !
|
|
173
|
+
]), Qe = D(() => {
|
|
174
|
+
G(!1), K(-1), me && !N && W.trim() && W !== Ee && Q(W.split(I));
|
|
175
175
|
}, [
|
|
176
176
|
me,
|
|
177
|
-
|
|
177
|
+
N,
|
|
178
178
|
W,
|
|
179
179
|
Ee,
|
|
180
180
|
I,
|
|
181
181
|
Q
|
|
182
|
-
]), $e =
|
|
182
|
+
]), $e = D(() => {
|
|
183
183
|
We([]), Te(""), De(null), ke(""), Pe.current?.focus();
|
|
184
|
-
}, [We]), et = H.removeTag ??
|
|
184
|
+
}, [We]), et = H.removeTag ?? P.removeTag, tt = B === "sm" ? "sm" : "md", nt = (e, t, n) => {
|
|
185
185
|
let i = q(e);
|
|
186
|
-
return /* @__PURE__ */
|
|
186
|
+
return /* @__PURE__ */ M(p, {
|
|
187
187
|
tone: "secondary",
|
|
188
188
|
size: tt,
|
|
189
189
|
className: r("tags-input--component tags-input--tag", "max-w-full gap-space-xs pe-space-xs"),
|
|
190
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ j(a, {
|
|
191
191
|
tag: "span",
|
|
192
192
|
size: "inherit",
|
|
193
193
|
weight: "normal",
|
|
194
194
|
lineHeight: "none",
|
|
195
195
|
className: "min-w-0 truncate text-inherit",
|
|
196
196
|
children: i
|
|
197
|
-
}), /* @__PURE__ */
|
|
197
|
+
}), /* @__PURE__ */ j("button", {
|
|
198
198
|
type: "button",
|
|
199
199
|
"data-tag-remove": "",
|
|
200
200
|
"aria-label": et(i),
|
|
201
201
|
className: r("tags-input--tag-remove relative after:absolute after:-inset-space-xs", m.inline, s.edge, m.clear, "disabled:pointer-events-none disabled:cursor-not-allowed"),
|
|
202
202
|
onClick: () => n(t),
|
|
203
|
-
disabled:
|
|
204
|
-
children: /* @__PURE__ */
|
|
203
|
+
disabled: N,
|
|
204
|
+
children: /* @__PURE__ */ j(te, {
|
|
205
205
|
className: m.icon,
|
|
206
206
|
"aria-hidden": "true"
|
|
207
207
|
})
|
|
208
208
|
})]
|
|
209
209
|
});
|
|
210
|
-
}, rt = !!
|
|
211
|
-
return /* @__PURE__ */
|
|
210
|
+
}, rt = !!ve || F(ae) || Ee !== null, it = C !== void 0 && U.length > C, at = T ? C : void 0, ot = at !== void 0, st = fe && U.length > 0, ct = [re, ot ? Le : void 0].filter(Boolean).join(" ") || void 0;
|
|
211
|
+
return /* @__PURE__ */ M(c, {
|
|
212
212
|
gap: "xs",
|
|
213
|
-
className: r("tags-input--root w-full relative",
|
|
213
|
+
className: r("tags-input--root w-full relative", ye),
|
|
214
214
|
children: [
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ j("span", {
|
|
216
216
|
role: "status",
|
|
217
217
|
"aria-live": "polite",
|
|
218
218
|
"aria-atomic": "true",
|
|
219
219
|
className: "tags-input--status sr-only",
|
|
220
220
|
children: Oe
|
|
221
221
|
}),
|
|
222
|
-
!!
|
|
222
|
+
!!x && Ke.map((e) => /* @__PURE__ */ j("input", {
|
|
223
223
|
type: "hidden",
|
|
224
|
-
name: `${
|
|
224
|
+
name: `${x}[]`,
|
|
225
225
|
value: e.display,
|
|
226
|
-
disabled:
|
|
226
|
+
disabled: N
|
|
227
227
|
}, e.key)),
|
|
228
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ M(v, {
|
|
229
229
|
open: X,
|
|
230
230
|
onOpenChange: (e, t) => {
|
|
231
231
|
!e && t.reason === "outside-press" && t.event.target instanceof Node && Fe.current?.contains(t.event.target) || (G(e), e || K(-1));
|
|
232
232
|
},
|
|
233
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ M("div", {
|
|
234
234
|
ref: Fe,
|
|
235
235
|
"data-slot": "tags-input-field",
|
|
236
|
-
"data-disabled":
|
|
236
|
+
"data-disabled": N || void 0,
|
|
237
237
|
"aria-invalid": rt || void 0,
|
|
238
238
|
onClick: (e) => {
|
|
239
239
|
e.target instanceof Element && e.target.closest("button, a, input") || Pe.current?.focus();
|
|
240
240
|
},
|
|
241
|
-
className: r("tags-input--field", "box-border flex w-full min-w-0 cursor-text flex-wrap items-center rounded-inner border border-input bg-transparent font-sans text-foreground shadow-none outline-none transition-[color,box-shadow]",
|
|
242
|
-
children: [$.map((e) => /* @__PURE__ */
|
|
241
|
+
className: r("tags-input--field", "box-border flex w-full min-w-0 cursor-text flex-wrap items-center rounded-inner border border-input bg-transparent font-sans text-foreground shadow-none outline-none transition-[color,box-shadow]", g[B], ie[B], B === "lg" ? "gap-space-sm" : "gap-space-xs", "py-[calc(0.25rem*var(--density-scale))]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", "aria-invalid:border-destructive aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:cursor-not-allowed data-disabled:opacity-50"),
|
|
242
|
+
children: [$.map((e) => /* @__PURE__ */ j(w.Fragment, { children: pe ? pe(e.tag, e.index, Je) : nt(e.tag, e.index, Je) }, e.key)), /* @__PURE__ */ j("input", {
|
|
243
243
|
ref: Pe,
|
|
244
244
|
id: l,
|
|
245
245
|
type: "text",
|
|
@@ -248,10 +248,10 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
248
248
|
"aria-labelledby": h,
|
|
249
249
|
"aria-describedby": ct,
|
|
250
250
|
"aria-invalid": rt || void 0,
|
|
251
|
-
"aria-required":
|
|
252
|
-
role:
|
|
253
|
-
"aria-autocomplete":
|
|
254
|
-
"aria-expanded":
|
|
251
|
+
"aria-required": se,
|
|
252
|
+
role: S ? "combobox" : void 0,
|
|
253
|
+
"aria-autocomplete": S ? "list" : void 0,
|
|
254
|
+
"aria-expanded": S ? X : void 0,
|
|
255
255
|
"aria-controls": X ? Ie : void 0,
|
|
256
256
|
"aria-activedescendant": Z >= 0 ? `${Ie}-${Z}` : void 0,
|
|
257
257
|
placeholder: U.length === 0 ? H.placeholder : void 0,
|
|
@@ -263,11 +263,11 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
263
263
|
onFocus: () => {
|
|
264
264
|
ze && !Re && Y.length > 0 && G(!0);
|
|
265
265
|
},
|
|
266
|
-
disabled:
|
|
266
|
+
disabled: N,
|
|
267
267
|
autoComplete: "off",
|
|
268
|
-
className: r("tags-input--input", "box-border min-w-20 flex-1 border-0 bg-transparent p-0 font-sans text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed", ne[
|
|
268
|
+
className: r("tags-input--input", "box-border min-w-20 flex-1 border-0 bg-transparent p-0 font-sans text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed", ne[B])
|
|
269
269
|
})]
|
|
270
|
-
}), !!
|
|
270
|
+
}), !!S && /* @__PURE__ */ j(y, {
|
|
271
271
|
anchor: Fe,
|
|
272
272
|
align: "start",
|
|
273
273
|
type: "menu",
|
|
@@ -275,11 +275,11 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
275
275
|
finalFocus: !1,
|
|
276
276
|
role: "listbox",
|
|
277
277
|
id: Ie,
|
|
278
|
-
"aria-label": H.recommendationsLabel ??
|
|
278
|
+
"aria-label": H.recommendationsLabel ?? P.recommendationsLabel,
|
|
279
279
|
className: "tags-input--recommendations w-(--anchor-width) max-h-[200px]",
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ j("div", { children: Y.length > 0 ? Y.map((e, t) => {
|
|
281
281
|
let n = U.some((t) => q(t) === q(e.value));
|
|
282
|
-
return /* @__PURE__ */
|
|
282
|
+
return /* @__PURE__ */ M("button", {
|
|
283
283
|
id: `${Ie}-${t}`,
|
|
284
284
|
role: "option",
|
|
285
285
|
"aria-selected": Z === t,
|
|
@@ -290,10 +290,10 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
290
290
|
Q([e.value]), Pe.current?.focus();
|
|
291
291
|
},
|
|
292
292
|
onMouseEnter: () => K(t),
|
|
293
|
-
className: r(d.interactive, u(), o[
|
|
294
|
-
children: [/* @__PURE__ */
|
|
293
|
+
className: r(d.interactive, u(), o[xe ?? "sm"], "box-border w-full cursor-pointer justify-between border-0 bg-transparent font-sans text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", Z === t && "bg-accent text-accent-foreground"),
|
|
294
|
+
children: [/* @__PURE__ */ j(f, { children: e.label }), /* @__PURE__ */ j(de, { className: r("ml-auto size-icon-sm", n ? "opacity-100" : "opacity-0") })]
|
|
295
295
|
}, e.key);
|
|
296
|
-
}) : /* @__PURE__ */
|
|
296
|
+
}) : /* @__PURE__ */ j(a, {
|
|
297
297
|
tag: "div",
|
|
298
298
|
size: "xs",
|
|
299
299
|
type: "secondary",
|
|
@@ -302,20 +302,20 @@ function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby":
|
|
|
302
302
|
}) })
|
|
303
303
|
})]
|
|
304
304
|
}),
|
|
305
|
-
(ot || st) && /* @__PURE__ */
|
|
305
|
+
(ot || st) && /* @__PURE__ */ M("div", {
|
|
306
306
|
className: "tags-input--footer flex items-center justify-between gap-space-sm",
|
|
307
|
-
children: [at !== void 0 && /* @__PURE__ */
|
|
307
|
+
children: [at !== void 0 && /* @__PURE__ */ j(a, {
|
|
308
308
|
id: Le,
|
|
309
309
|
tag: "span",
|
|
310
310
|
size: "xs",
|
|
311
311
|
type: it ? "error" : "secondary",
|
|
312
312
|
className: "tags-input--count tabular-nums",
|
|
313
313
|
children: H.summary(U.length, at)
|
|
314
|
-
}), !!st && /* @__PURE__ */
|
|
314
|
+
}), !!st && /* @__PURE__ */ j(i, {
|
|
315
315
|
type: "button",
|
|
316
316
|
size: "sm",
|
|
317
317
|
onClick: $e,
|
|
318
|
-
disabled:
|
|
318
|
+
disabled: N,
|
|
319
319
|
className: "tags-input--clear ms-auto",
|
|
320
320
|
children: H.clearAll
|
|
321
321
|
})]
|
|
@@ -549,36 +549,37 @@ var pe = {
|
|
|
549
549
|
"IT",
|
|
550
550
|
"ES",
|
|
551
551
|
"AU"
|
|
552
|
-
],
|
|
552
|
+
], L = (e) => typeof e == "string" ? I[e.toUpperCase()] ?? null : e, he = (e) => e.map(L).filter((e) => e !== null), ge = (e, t) => {
|
|
553
553
|
let n = e.trim().replace(/\s+/g, " ").replace(/[^\d ()+-]/g, "");
|
|
554
554
|
return t && n.startsWith(t) && (n = n.slice(t.length).replace(/^[\s-]+/, "")), t && n.startsWith("0") && (n = n.slice(1)), n;
|
|
555
|
-
},
|
|
556
|
-
function
|
|
557
|
-
let { defaultScale:
|
|
555
|
+
}, _e = (e, t) => e ? e.startsWith("+") ? e : I[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
|
|
556
|
+
function R({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, defaultPrefix: c, prefixes: l = me, onPrefixChange: u, disablePrefixSelector: d = !1, prefixPlaceholder: f, prefixWidth: p = "w-30", showCountryName: m = !0, showPrefixInDropdown: te = !0, invalid: g, disabled: _, readOnly: v, loading: y, className: w, size: T, strings: E, ...O }, ue) {
|
|
557
|
+
let { defaultScale: de } = t(), N = oe(T, de), P = _ || y, F = P || v, fe = n(pe, E), L = k(() => he(l), [l]), R = k(() => _e(c, L), [c, L]), [ve, ye] = A(R), [be, xe] = A(() => {
|
|
558
558
|
let e = s ?? c;
|
|
559
|
-
return e && !e.startsWith("+") ? e.toUpperCase() :
|
|
560
|
-
}),
|
|
561
|
-
if (!
|
|
562
|
-
let e = Object.values(I).find((e) => e.value ===
|
|
563
|
-
return e ? [e, ...
|
|
564
|
-
}, [
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
559
|
+
return e && !e.startsWith("+") ? e.toUpperCase() : L.find((e) => e.value === R)?.iso;
|
|
560
|
+
}), z = s !== void 0, B = z ? _e(s, L) : ve, V = k(() => {
|
|
561
|
+
if (!B || L.some((e) => e.value === B)) return L;
|
|
562
|
+
let e = Object.values(I).find((e) => e.value === B);
|
|
563
|
+
return e ? [e, ...L] : L;
|
|
564
|
+
}, [L, B]), H = k(() => V.find((e) => e.iso === (s && !s.startsWith("+") ? s.toUpperCase() : be) && e.value === B) ?? V.find((e) => e.value === B), [
|
|
565
|
+
V,
|
|
566
|
+
B,
|
|
567
|
+
be,
|
|
568
568
|
s
|
|
569
|
-
]),
|
|
570
|
-
if (e === null) return;
|
|
571
|
-
let t =
|
|
572
|
-
t && (
|
|
569
|
+
]), Se = D((e) => {
|
|
570
|
+
if (e === null || F) return;
|
|
571
|
+
let t = V.find((t) => t.iso === e);
|
|
572
|
+
t && (xe(t.iso), z || ye(t.value), u?.(t.value));
|
|
573
573
|
}, [
|
|
574
|
-
|
|
574
|
+
z,
|
|
575
575
|
u,
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
576
|
+
V,
|
|
577
|
+
F
|
|
578
|
+
]), Ce = D((e) => {
|
|
579
|
+
if (F || !o) return;
|
|
579
580
|
let t = e.target.value;
|
|
580
|
-
if (
|
|
581
|
-
let n = t.slice(
|
|
581
|
+
if (B && t.startsWith(B)) {
|
|
582
|
+
let n = t.slice(B.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
|
|
582
583
|
if (r !== t) {
|
|
583
584
|
o({
|
|
584
585
|
...e,
|
|
@@ -595,9 +596,13 @@ function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, default
|
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
598
|
o(e);
|
|
598
|
-
}, [
|
|
599
|
-
|
|
600
|
-
|
|
599
|
+
}, [
|
|
600
|
+
F,
|
|
601
|
+
o,
|
|
602
|
+
B
|
|
603
|
+
]), we = D((t) => {
|
|
604
|
+
if (!F && e && typeof o == "function") {
|
|
605
|
+
let e = ge(t.target.value, B);
|
|
601
606
|
e !== t.target.value && o({
|
|
602
607
|
...t,
|
|
603
608
|
target: {
|
|
@@ -612,96 +617,101 @@ function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, default
|
|
|
612
617
|
}
|
|
613
618
|
i?.(t);
|
|
614
619
|
}, [
|
|
620
|
+
F,
|
|
615
621
|
e,
|
|
616
622
|
o,
|
|
617
623
|
i,
|
|
618
|
-
|
|
624
|
+
B
|
|
619
625
|
]);
|
|
620
|
-
if (
|
|
621
|
-
let e =
|
|
622
|
-
return e ? /* @__PURE__ */
|
|
626
|
+
if (V.length === 0 || d) {
|
|
627
|
+
let e = B || c;
|
|
628
|
+
return e ? /* @__PURE__ */ M("div", {
|
|
623
629
|
className: "flex items-start gap-space-md",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
625
|
-
"aria-invalid":
|
|
626
|
-
className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted",
|
|
627
|
-
children: /* @__PURE__ */
|
|
630
|
+
children: [/* @__PURE__ */ j("div", {
|
|
631
|
+
"aria-invalid": g || void 0,
|
|
632
|
+
className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted", re[N], ne[N], ie[N], P && "opacity-50", ee.invalid),
|
|
633
|
+
children: /* @__PURE__ */ j(a, {
|
|
628
634
|
tag: "span",
|
|
629
635
|
size: "inherit",
|
|
630
636
|
type: "secondary",
|
|
631
637
|
lineHeight: "tight",
|
|
632
638
|
children: e
|
|
633
639
|
})
|
|
634
|
-
}), /* @__PURE__ */
|
|
640
|
+
}), /* @__PURE__ */ j("div", {
|
|
635
641
|
className: "flex-1",
|
|
636
|
-
children: /* @__PURE__ */
|
|
637
|
-
ref:
|
|
638
|
-
size:
|
|
642
|
+
children: /* @__PURE__ */ j(se, {
|
|
643
|
+
ref: ue,
|
|
644
|
+
size: N,
|
|
639
645
|
type: "tel",
|
|
640
646
|
autoComplete: "tel",
|
|
641
647
|
inputMode: "tel",
|
|
642
|
-
onChange:
|
|
643
|
-
onBlur:
|
|
644
|
-
invalid:
|
|
645
|
-
disabled:
|
|
646
|
-
|
|
647
|
-
|
|
648
|
+
onChange: Ce,
|
|
649
|
+
onBlur: we,
|
|
650
|
+
invalid: g,
|
|
651
|
+
disabled: P,
|
|
652
|
+
readOnly: v,
|
|
653
|
+
loading: y,
|
|
654
|
+
className: w,
|
|
655
|
+
...O
|
|
648
656
|
})
|
|
649
657
|
})]
|
|
650
|
-
}) : /* @__PURE__ */
|
|
651
|
-
ref:
|
|
652
|
-
size:
|
|
658
|
+
}) : /* @__PURE__ */ j(se, {
|
|
659
|
+
ref: ue,
|
|
660
|
+
size: N,
|
|
653
661
|
type: "tel",
|
|
654
662
|
autoComplete: "tel",
|
|
655
663
|
inputMode: "tel",
|
|
656
|
-
onChange:
|
|
657
|
-
onBlur:
|
|
658
|
-
invalid:
|
|
659
|
-
disabled:
|
|
660
|
-
|
|
661
|
-
|
|
664
|
+
onChange: Ce,
|
|
665
|
+
onBlur: we,
|
|
666
|
+
invalid: g,
|
|
667
|
+
disabled: P,
|
|
668
|
+
readOnly: v,
|
|
669
|
+
loading: y,
|
|
670
|
+
className: r("phone-input--component", w),
|
|
671
|
+
...O
|
|
662
672
|
});
|
|
663
673
|
}
|
|
664
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ M("div", {
|
|
665
675
|
className: "flex items-start gap-space-md",
|
|
666
|
-
children: [/* @__PURE__ */
|
|
667
|
-
value:
|
|
668
|
-
onValueChange: (e) =>
|
|
669
|
-
disabled:
|
|
670
|
-
children: [/* @__PURE__ */
|
|
671
|
-
"aria-label":
|
|
672
|
-
"aria-invalid":
|
|
673
|
-
iconClassName: h.icon[
|
|
674
|
-
className: r("phone-input--prefix-trigger",
|
|
675
|
-
children: /* @__PURE__ */
|
|
676
|
-
placeholder: /* @__PURE__ */
|
|
676
|
+
children: [/* @__PURE__ */ M(le, {
|
|
677
|
+
value: H?.iso ?? null,
|
|
678
|
+
onValueChange: (e) => Se(e),
|
|
679
|
+
disabled: F,
|
|
680
|
+
children: [/* @__PURE__ */ j(ce, {
|
|
681
|
+
"aria-label": fe.prefixAriaLabel,
|
|
682
|
+
"aria-invalid": g || void 0,
|
|
683
|
+
iconClassName: h.icon[N],
|
|
684
|
+
className: r("phone-input--prefix-trigger", ae(N), "shrink-0", p),
|
|
685
|
+
children: /* @__PURE__ */ j(C, {
|
|
686
|
+
placeholder: /* @__PURE__ */ j(a, {
|
|
677
687
|
tag: "span",
|
|
678
688
|
size: "inherit",
|
|
679
689
|
type: "secondary",
|
|
680
690
|
lineHeight: "tight",
|
|
681
691
|
className: "text-inherit",
|
|
682
|
-
children: f ??
|
|
692
|
+
children: f ?? fe.prefixPlaceholder
|
|
683
693
|
}),
|
|
684
|
-
children: !!
|
|
694
|
+
children: !!H && /* @__PURE__ */ j(a, {
|
|
685
695
|
tag: "span",
|
|
686
696
|
size: "inherit",
|
|
687
697
|
lineHeight: "tight",
|
|
688
698
|
className: "text-inherit",
|
|
689
|
-
children:
|
|
699
|
+
children: H.value
|
|
690
700
|
})
|
|
691
701
|
})
|
|
692
|
-
}), /* @__PURE__ */
|
|
702
|
+
}), /* @__PURE__ */ j(b, { children: /* @__PURE__ */ j(x, { children: V.map((e) => /* @__PURE__ */ j(S, {
|
|
693
703
|
value: e.iso,
|
|
694
|
-
size:
|
|
695
|
-
children: /* @__PURE__ */
|
|
704
|
+
size: N,
|
|
705
|
+
children: /* @__PURE__ */ M("div", {
|
|
696
706
|
className: "flex items-center gap-space-md",
|
|
697
|
-
children: [!!te && /* @__PURE__ */
|
|
707
|
+
children: [!!te && /* @__PURE__ */ j(a, {
|
|
698
708
|
tag: "span",
|
|
699
709
|
size: "inherit",
|
|
700
710
|
weight: "medium",
|
|
701
711
|
lineHeight: "tight",
|
|
702
712
|
className: "min-w-13 tabular-nums text-inherit",
|
|
703
713
|
children: e.value
|
|
704
|
-
}), !!m && /* @__PURE__ */
|
|
714
|
+
}), !!m && /* @__PURE__ */ j(a, {
|
|
705
715
|
tag: "span",
|
|
706
716
|
size: "inherit",
|
|
707
717
|
lineHeight: "tight",
|
|
@@ -710,53 +720,55 @@ function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, default
|
|
|
710
720
|
})]
|
|
711
721
|
})
|
|
712
722
|
}, e.iso)) }) })]
|
|
713
|
-
}), /* @__PURE__ */
|
|
723
|
+
}), /* @__PURE__ */ j("div", {
|
|
714
724
|
className: "flex-1",
|
|
715
|
-
children: /* @__PURE__ */
|
|
716
|
-
ref:
|
|
717
|
-
size:
|
|
725
|
+
children: /* @__PURE__ */ j(se, {
|
|
726
|
+
ref: ue,
|
|
727
|
+
size: N,
|
|
718
728
|
type: "tel",
|
|
719
729
|
autoComplete: "tel",
|
|
720
730
|
inputMode: "tel",
|
|
721
|
-
onChange:
|
|
722
|
-
onBlur:
|
|
723
|
-
invalid:
|
|
724
|
-
disabled:
|
|
725
|
-
|
|
726
|
-
|
|
731
|
+
onChange: Ce,
|
|
732
|
+
onBlur: we,
|
|
733
|
+
invalid: g,
|
|
734
|
+
disabled: P,
|
|
735
|
+
readOnly: v,
|
|
736
|
+
loading: y,
|
|
737
|
+
className: w,
|
|
738
|
+
...O
|
|
727
739
|
})
|
|
728
740
|
})]
|
|
729
741
|
});
|
|
730
742
|
}
|
|
731
|
-
var
|
|
732
|
-
|
|
743
|
+
var ve = E(w.forwardRef(R));
|
|
744
|
+
ve.displayName = "PhoneInput";
|
|
733
745
|
//#endregion
|
|
734
746
|
//#region src/components/base/value-inputs/color-input.tsx
|
|
735
|
-
var
|
|
747
|
+
var ye = { chooseColor: "Choose color" }, be = {
|
|
736
748
|
sm: "size-control-sm",
|
|
737
749
|
md: "size-control",
|
|
738
750
|
lg: "size-control-lg"
|
|
739
751
|
};
|
|
740
|
-
function
|
|
752
|
+
function xe(e) {
|
|
741
753
|
let t = e.trim().toLowerCase();
|
|
742
754
|
return /^#[0-9a-f]{6}$/.test(t) ? t : /^#[0-9a-f]{3}$/.test(t) ? `#${t.slice(1).split("").map((e) => `${e}${e}`).join("")}` : null;
|
|
743
755
|
}
|
|
744
|
-
function
|
|
756
|
+
function z(e, t) {
|
|
745
757
|
let n = Number(e.toFixed(t));
|
|
746
758
|
return Object.is(n, -0) ? 0 : n;
|
|
747
759
|
}
|
|
748
|
-
function
|
|
749
|
-
let t =
|
|
760
|
+
function B(e) {
|
|
761
|
+
let t = xe(e);
|
|
750
762
|
if (!t) return e;
|
|
751
763
|
let [n, r, i] = [
|
|
752
764
|
1,
|
|
753
765
|
3,
|
|
754
766
|
5
|
|
755
767
|
].map((e) => Number.parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), a = Math.cbrt(.4122214708 * n + .5363325363 * r + .0514459929 * i), o = Math.cbrt(.2119034982 * n + .6806995451 * r + .1073969566 * i), s = Math.cbrt(.0883024619 * n + .2817188376 * r + .6299787005 * i), c = .2104542553 * a + .793617785 * o - .0040720468 * s, l = 1.9779984951 * a - 2.428592205 * o + .4505937099 * s, u = .0259040371 * a + .7827717662 * o - .808675766 * s, d = Math.hypot(l, u), f = d < 5e-5 ? 0 : Math.atan2(u, l) * 180 / Math.PI + (u < 0 ? 360 : 0);
|
|
756
|
-
return `oklch(${
|
|
768
|
+
return `oklch(${z(c, 4)} ${z(d, 4)} ${z(f, 2)})`;
|
|
757
769
|
}
|
|
758
|
-
function
|
|
759
|
-
let n = window.getComputedStyle(e).backgroundColor, r =
|
|
770
|
+
function V(e, t) {
|
|
771
|
+
let n = window.getComputedStyle(e).backgroundColor, r = xe(n);
|
|
760
772
|
if (r) return r;
|
|
761
773
|
if (typeof CanvasRenderingContext2D > "u") return t;
|
|
762
774
|
try {
|
|
@@ -775,43 +787,44 @@ function xe(e, t) {
|
|
|
775
787
|
return t;
|
|
776
788
|
}
|
|
777
789
|
}
|
|
778
|
-
var H =
|
|
779
|
-
let
|
|
780
|
-
|
|
781
|
-
let e =
|
|
790
|
+
var H = w.forwardRef(function({ className: e, value: i, defaultValue: a, onChange: o, onValueChange: s, previewValue: l, pickerAriaLabel: u, size: d, disabled: f, readOnly: p, loading: m, invalid: h, strings: te, inputStrings: ne, ...re }, g) {
|
|
791
|
+
let ie = n(ye, te), { defaultScale: ae } = t(), _ = oe(d, ae), v = f || p || m, [y, ce] = w.useState(a ?? ""), b = i ?? y, x = l ?? b, le = xe(b) ?? "#000000", [S, C] = w.useState(le), T = w.useRef(null);
|
|
792
|
+
w.useLayoutEffect(() => {
|
|
793
|
+
let e = xe(x);
|
|
782
794
|
if (e) {
|
|
783
|
-
|
|
795
|
+
C(e);
|
|
784
796
|
return;
|
|
785
797
|
}
|
|
786
|
-
|
|
787
|
-
}, [
|
|
788
|
-
let
|
|
789
|
-
i === void 0 &&
|
|
798
|
+
T.current && typeof window < "u" && C((e) => V(T.current, e));
|
|
799
|
+
}, [x]);
|
|
800
|
+
let E = (e) => {
|
|
801
|
+
i === void 0 && ce(e.target.value), o?.(e), s?.(e.target.value);
|
|
790
802
|
};
|
|
791
|
-
return /* @__PURE__ */
|
|
803
|
+
return /* @__PURE__ */ M(c, {
|
|
792
804
|
direction: "horizontal",
|
|
793
805
|
gap: "sm",
|
|
794
806
|
align: "center",
|
|
795
807
|
wrap: !1,
|
|
796
808
|
className: r("color-input--component min-w-0 [&>.input--component]:min-w-0 [&>.input--component]:flex-1", e),
|
|
797
|
-
children: [/* @__PURE__ */
|
|
798
|
-
"aria-invalid":
|
|
799
|
-
className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", ee.invalid, "aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
800
|
-
"data-disabled":
|
|
801
|
-
children: [/* @__PURE__ */
|
|
802
|
-
ref:
|
|
809
|
+
children: [/* @__PURE__ */ M("label", {
|
|
810
|
+
"aria-invalid": h || void 0,
|
|
811
|
+
className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", ee.invalid, "aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", be[_]),
|
|
812
|
+
"data-disabled": v || void 0,
|
|
813
|
+
children: [/* @__PURE__ */ j("span", {
|
|
814
|
+
ref: T,
|
|
803
815
|
"aria-hidden": "true",
|
|
804
816
|
"data-user-color": !0,
|
|
805
817
|
className: "color-input--swatch absolute inset-1 rounded-radius-xs",
|
|
806
|
-
style: { background:
|
|
807
|
-
}), /* @__PURE__ */
|
|
818
|
+
style: { background: x || "transparent" }
|
|
819
|
+
}), /* @__PURE__ */ j("input", {
|
|
808
820
|
type: "color",
|
|
809
|
-
value:
|
|
810
|
-
disabled:
|
|
811
|
-
"aria-label": u ??
|
|
821
|
+
value: S,
|
|
822
|
+
disabled: v,
|
|
823
|
+
"aria-label": u ?? ie.chooseColor,
|
|
812
824
|
onInput: (e) => {
|
|
813
|
-
|
|
814
|
-
|
|
825
|
+
if (v) return;
|
|
826
|
+
let t = B(e.currentTarget.value);
|
|
827
|
+
i === void 0 && ce(t), o && o({
|
|
815
828
|
...e,
|
|
816
829
|
target: {
|
|
817
830
|
...e.currentTarget,
|
|
@@ -825,16 +838,17 @@ var H = T.forwardRef(function({ className: e, value: i, defaultValue: a, onChang
|
|
|
825
838
|
},
|
|
826
839
|
className: "color-input--native absolute inset-0 size-full cursor-pointer opacity-0"
|
|
827
840
|
})]
|
|
828
|
-
}), /* @__PURE__ */
|
|
829
|
-
...
|
|
841
|
+
}), /* @__PURE__ */ j(se, {
|
|
842
|
+
...re,
|
|
830
843
|
ref: g,
|
|
831
|
-
size:
|
|
832
|
-
value:
|
|
844
|
+
size: _,
|
|
845
|
+
value: b,
|
|
833
846
|
disabled: f,
|
|
834
847
|
readOnly: p,
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
848
|
+
loading: m,
|
|
849
|
+
invalid: h,
|
|
850
|
+
onChange: E,
|
|
851
|
+
strings: ne,
|
|
838
852
|
className: "min-w-0 flex-1 font-mono"
|
|
839
853
|
})]
|
|
840
854
|
});
|
|
@@ -843,85 +857,87 @@ H.displayName = "ColorInput";
|
|
|
843
857
|
//#endregion
|
|
844
858
|
//#region src/components/base/value-inputs/slider.tsx
|
|
845
859
|
var Se = { ariaLabel: "Value" };
|
|
846
|
-
function Ce({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: c, value: u, defaultValue: d, min: f = 0, max: p = 100, step: ee = 1, disabled: m = !1, invalid: h = !1, onChange: te, onValueChange: ne, onValueCommitted: re, showValue: g = !1, formatValue:
|
|
847
|
-
let
|
|
860
|
+
function Ce({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: c, value: u, defaultValue: d, min: f = 0, max: p = 100, step: ee = 1, disabled: m = !1, invalid: h = !1, onChange: te, onValueChange: ne, onValueCommitted: re, showValue: g = !1, formatValue: ie, unit: ae, className: oe, orientation: se = "horizontal" }, _) {
|
|
861
|
+
let v = O(), y = n(Se, c), ce = t ?? `slider-${v}`, b = e ?? ce, x = i ?? y.ariaLabel, le = u !== void 0, [S, C] = A(() => d ?? f), w = D((e) => {
|
|
848
862
|
let t = Array.isArray(e) ? e[0] : e;
|
|
849
|
-
ne?.(t), te?.({ target: {
|
|
850
|
-
name:
|
|
863
|
+
le || C(t), ne?.(t), te?.({ target: {
|
|
864
|
+
name: b,
|
|
851
865
|
value: t
|
|
852
866
|
} });
|
|
853
867
|
}, [
|
|
854
|
-
|
|
868
|
+
le,
|
|
869
|
+
b,
|
|
855
870
|
te,
|
|
856
871
|
ne
|
|
857
|
-
]),
|
|
872
|
+
]), T = D((e) => {
|
|
858
873
|
let t = Array.isArray(e) ? e[0] : e;
|
|
859
874
|
re?.(t);
|
|
860
|
-
}, [re]),
|
|
875
|
+
}, [re]), E = k(() => {
|
|
861
876
|
if (!g) return null;
|
|
862
|
-
let e =
|
|
863
|
-
return
|
|
877
|
+
let e = Math.min(p, Math.max(f, u ?? S));
|
|
878
|
+
return ie ? ie(e) : ae ? `${e}${ae}` : String(e);
|
|
864
879
|
}, [
|
|
865
880
|
g,
|
|
866
881
|
u,
|
|
867
|
-
|
|
882
|
+
S,
|
|
868
883
|
f,
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
884
|
+
p,
|
|
885
|
+
ie,
|
|
886
|
+
ae
|
|
887
|
+
]), ue = u === void 0 ? void 0 : [u], de = d === void 0 ? [f] : [d];
|
|
888
|
+
return /* @__PURE__ */ M("div", {
|
|
889
|
+
className: r("slider--component", "flex items-center gap-space-lg", oe),
|
|
890
|
+
children: [/* @__PURE__ */ j(N.Root, {
|
|
891
|
+
ref: _,
|
|
876
892
|
"data-slot": "slider",
|
|
877
|
-
id:
|
|
878
|
-
"aria-label":
|
|
893
|
+
id: ce,
|
|
894
|
+
"aria-label": x,
|
|
879
895
|
"aria-labelledby": o,
|
|
880
896
|
"aria-describedby": s,
|
|
881
|
-
value:
|
|
882
|
-
defaultValue:
|
|
897
|
+
value: ue,
|
|
898
|
+
defaultValue: de,
|
|
883
899
|
min: f,
|
|
884
900
|
max: p,
|
|
885
901
|
step: ee,
|
|
886
902
|
disabled: m,
|
|
887
|
-
orientation:
|
|
888
|
-
onValueChange:
|
|
889
|
-
onValueCommitted:
|
|
903
|
+
orientation: se,
|
|
904
|
+
onValueChange: w,
|
|
905
|
+
onValueCommitted: T,
|
|
890
906
|
"aria-invalid": h || void 0,
|
|
891
907
|
className: r("box-border data-[orientation=horizontal]:w-full data-[orientation=horizontal]:px-[calc(var(--icon)/2)] data-[orientation=vertical]:h-full", "min-w-0 flex-1", h && "[&_[data-slot=slider-range]]:bg-destructive"),
|
|
892
|
-
children: /* @__PURE__ */ N
|
|
908
|
+
children: /* @__PURE__ */ M(N.Control, {
|
|
893
909
|
className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=horizontal]:min-h-control data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
894
|
-
children: [/* @__PURE__ */
|
|
910
|
+
children: [/* @__PURE__ */ j(N.Track, {
|
|
895
911
|
"data-slot": "slider-track",
|
|
896
912
|
className: r("relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", l),
|
|
897
|
-
children: /* @__PURE__ */
|
|
913
|
+
children: /* @__PURE__ */ j(N.Indicator, {
|
|
898
914
|
"data-slot": "slider-range",
|
|
899
915
|
className: "absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
900
916
|
})
|
|
901
|
-
}), /* @__PURE__ */
|
|
917
|
+
}), /* @__PURE__ */ j(N.Thumb, {
|
|
902
918
|
index: 0,
|
|
903
919
|
"data-slot": "slider-thumb",
|
|
904
|
-
getAriaLabel: () =>
|
|
920
|
+
getAriaLabel: () => x,
|
|
905
921
|
className: r("block size-icon shrink-0 rounded-full border border-primary bg-background shadow-sm transition-[color,box-shadow] select-none", "has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-3 has-[:focus-visible]:ring-ring/50 data-disabled:pointer-events-none", h && "border-destructive has-[:focus-visible]:ring-destructive/30 dark:has-[:focus-visible]:ring-destructive/50")
|
|
906
922
|
})]
|
|
907
923
|
})
|
|
908
|
-
}), !!g &&
|
|
924
|
+
}), !!g && E !== null && /* @__PURE__ */ j(a, {
|
|
909
925
|
tag: "span",
|
|
910
926
|
type: h ? "error" : "secondary",
|
|
911
927
|
className: "min-w-8 shrink-0 text-right tabular-nums",
|
|
912
|
-
children:
|
|
928
|
+
children: E
|
|
913
929
|
})]
|
|
914
930
|
});
|
|
915
931
|
}
|
|
916
|
-
var we =
|
|
932
|
+
var we = w.forwardRef(Ce);
|
|
917
933
|
we.displayName = "SliderField";
|
|
918
934
|
//#endregion
|
|
919
935
|
//#region src/components/base/value-inputs/date-time-input.tsx
|
|
920
|
-
var U =
|
|
921
|
-
let u = e ? new Date(e) : void 0, d =
|
|
936
|
+
var U = T(function({ value: e, onValueChange: t, placeholder: n, readableFormat: r = "dd-MM-yyyy HH:mm", stepMinutes: i = 30, modal: a = !0, invalid: o, disabled: s, id: c }, l) {
|
|
937
|
+
let u = e ? new Date(e) : void 0, d = D((e) => {
|
|
922
938
|
t?.(e.date ? e.date.toISOString() : void 0);
|
|
923
939
|
}, [t]);
|
|
924
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ j(_, {
|
|
925
941
|
ref: l,
|
|
926
942
|
className: "date-time-input--component",
|
|
927
943
|
id: c,
|
|
@@ -942,6 +958,6 @@ var U = E(function({ value: e, onValueChange: t, placeholder: n, readableFormat:
|
|
|
942
958
|
});
|
|
943
959
|
U.displayName = "DateTimeInput";
|
|
944
960
|
//#endregion
|
|
945
|
-
export {
|
|
961
|
+
export { ye as a, ve as c, P as d, H as i, pe as l, we as n, I as o, Se as r, me as s, U as t, fe as u };
|
|
946
962
|
|
|
947
|
-
//# sourceMappingURL=value-inputs-
|
|
963
|
+
//# sourceMappingURL=value-inputs-TaX4OjNk.js.map
|