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,29 +1,77 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { s as e, v as t } from "./ui-provider-
|
|
2
|
+
import { s as e, v 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 { n as i } from "./buttons-
|
|
6
|
-
import { a,
|
|
7
|
-
import { t as s } from "./structure-
|
|
8
|
-
import {
|
|
9
|
-
import { t as l } from "./feedback-
|
|
4
|
+
import { t as r } from "./utils-BRhFDwuU.js";
|
|
5
|
+
import { n as i } from "./buttons-DPZekJFu.js";
|
|
6
|
+
import { c as a, o } from "./typography-UTnveOEy.js";
|
|
7
|
+
import { t as s } from "./structure-BmisBK-3.js";
|
|
8
|
+
import { n as c } from "./tone-recipes-BPsRAvhu.js";
|
|
9
|
+
import { t as l } from "./feedback-BYIhtitP.js";
|
|
10
10
|
import { t as u } from "./layer-recipes-CCpklYME.js";
|
|
11
|
-
import { n as d, r as f } from "./field-affordance-recipes-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
11
|
+
import { n as d, r as f } from "./field-affordance-recipes-DZhnIL_Y.js";
|
|
12
|
+
import { C as p, S as m, _ as h, a as g, b as _, g as v, h as y, m as b, o as x, p as S, t as C, u as w, v as T, w as E, x as D } from "./combobox-DaHESuiL.js";
|
|
13
|
+
import { l as O, u as k } from "./form-sizing-BdP_Mf5p.js";
|
|
14
|
+
import { t as A } from "./input-DQdEd0YD.js";
|
|
15
|
+
import { t as ee } from "./scroll-area-DcI-M1UT.js";
|
|
16
16
|
import { t as j } from "./use-debounced-callback-Cx1h-hdv.js";
|
|
17
17
|
import * as M from "react";
|
|
18
18
|
import { useCallback as N, useEffect as P, useMemo as F, useRef as I, useState as L } from "react";
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { ChevronDownIcon as
|
|
21
|
-
import { Combobox as
|
|
19
|
+
import { Fragment as te, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
20
|
+
import { ChevronDownIcon as B, Loader2 as ne, PlusIcon as V, XIcon as H } from "lucide-react";
|
|
21
|
+
import { Combobox as U } from "@base-ui/react/combobox";
|
|
22
|
+
//#region src/components/base/combobox/combobox-field.tsx
|
|
23
|
+
function re({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o, required: s, disabled: c, clearable: l = !0, className: u, onBlur: p }) {
|
|
24
|
+
return /* @__PURE__ */ z("div", {
|
|
25
|
+
className: "relative",
|
|
26
|
+
children: [/* @__PURE__ */ R(D, {
|
|
27
|
+
render: /* @__PURE__ */ R(A, {
|
|
28
|
+
size: a,
|
|
29
|
+
invalid: o,
|
|
30
|
+
className: r(l ? f.clearPadding[a] : f.padding[a], u)
|
|
31
|
+
}),
|
|
32
|
+
placeholder: e,
|
|
33
|
+
"aria-invalid": o || void 0,
|
|
34
|
+
"aria-required": s,
|
|
35
|
+
disabled: c,
|
|
36
|
+
onBlur: p
|
|
37
|
+
}), /* @__PURE__ */ z("div", {
|
|
38
|
+
className: r("absolute inset-y-0 flex items-center gap-space-xs text-muted-foreground", f.track[a]),
|
|
39
|
+
children: [l ? /* @__PURE__ */ R(U.Clear, { render: /* @__PURE__ */ R(i, {
|
|
40
|
+
type: "button",
|
|
41
|
+
tone: "secondary",
|
|
42
|
+
buttonStyle: "ghost",
|
|
43
|
+
size: "sm",
|
|
44
|
+
iconOnly: !0,
|
|
45
|
+
className: r(d.target, d.focus, d.clear),
|
|
46
|
+
"aria-label": t,
|
|
47
|
+
children: /* @__PURE__ */ R(H, {
|
|
48
|
+
className: d.icon,
|
|
49
|
+
"aria-hidden": "true"
|
|
50
|
+
})
|
|
51
|
+
}) }) : null, /* @__PURE__ */ R(U.Trigger, { render: /* @__PURE__ */ R(i, {
|
|
52
|
+
type: "button",
|
|
53
|
+
tone: "secondary",
|
|
54
|
+
buttonStyle: "ghost",
|
|
55
|
+
size: "sm",
|
|
56
|
+
iconOnly: !0,
|
|
57
|
+
className: r(d.target, d.focus, d.toggle),
|
|
58
|
+
"aria-label": n,
|
|
59
|
+
children: /* @__PURE__ */ R(B, {
|
|
60
|
+
className: r("shrink-0", f.icon[a]),
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
})
|
|
63
|
+
}) })]
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
22
68
|
//#region src/components/features/combobox/combobox.strings.ts
|
|
23
|
-
var
|
|
69
|
+
var W = {
|
|
24
70
|
placeholder: "Search...",
|
|
25
71
|
clear: "Clear selection",
|
|
26
72
|
toggle: "Open options",
|
|
73
|
+
dismiss: "Dismiss",
|
|
74
|
+
removeSelection: (e) => `Remove ${e}`,
|
|
27
75
|
searching: "Loading...",
|
|
28
76
|
noResults: "No results found.",
|
|
29
77
|
typeToSearch: "Type at least {min} characters to search...",
|
|
@@ -32,20 +80,20 @@ var U = {
|
|
|
32
80
|
loadingMore: "Loading...",
|
|
33
81
|
apply: "Apply",
|
|
34
82
|
cancel: "Cancel"
|
|
35
|
-
},
|
|
36
|
-
function G(e) {
|
|
37
|
-
return typeof e == "object" && !!e && W in e;
|
|
38
|
-
}
|
|
83
|
+
}, G = Symbol("combobox-create-option");
|
|
39
84
|
function K(e) {
|
|
40
|
-
|
|
41
|
-
return e[W];
|
|
85
|
+
return typeof e == "object" && !!e && G in e;
|
|
42
86
|
}
|
|
43
87
|
function q(e) {
|
|
44
|
-
|
|
88
|
+
if (!K(e)) throw Error("Item is not a create option");
|
|
89
|
+
return e[G];
|
|
90
|
+
}
|
|
91
|
+
function J(e) {
|
|
92
|
+
return { [G]: e };
|
|
45
93
|
}
|
|
46
94
|
//#endregion
|
|
47
95
|
//#region src/components/features/combobox/components/loading-more.tsx
|
|
48
|
-
function
|
|
96
|
+
function Y({ loading: e, text: t, className: n }) {
|
|
49
97
|
return e ? /* @__PURE__ */ z(s, {
|
|
50
98
|
direction: "horizontal",
|
|
51
99
|
gap: "sm",
|
|
@@ -54,10 +102,10 @@ function re({ loading: e, text: t, className: n }) {
|
|
|
54
102
|
className: r("loading-more--component", "px-control py-space-xs text-xs text-muted-foreground", n),
|
|
55
103
|
role: "status",
|
|
56
104
|
"aria-live": "polite",
|
|
57
|
-
children: [/* @__PURE__ */ R(
|
|
105
|
+
children: [/* @__PURE__ */ R(ne, {
|
|
58
106
|
className: "size-icon-sm animate-spin",
|
|
59
107
|
"aria-hidden": "true"
|
|
60
|
-
}), /* @__PURE__ */ R(
|
|
108
|
+
}), /* @__PURE__ */ R(a, {
|
|
61
109
|
tag: "span",
|
|
62
110
|
size: "xs",
|
|
63
111
|
type: "secondary",
|
|
@@ -66,11 +114,11 @@ function re({ loading: e, text: t, className: n }) {
|
|
|
66
114
|
})]
|
|
67
115
|
}) : null;
|
|
68
116
|
}
|
|
69
|
-
|
|
117
|
+
Y.displayName = "LoadingMore";
|
|
70
118
|
//#endregion
|
|
71
119
|
//#region src/components/features/combobox/components/status-content.tsx
|
|
72
|
-
function
|
|
73
|
-
return /* @__PURE__ */ R(
|
|
120
|
+
function X({ children: e }) {
|
|
121
|
+
return /* @__PURE__ */ R(a, {
|
|
74
122
|
tag: "span",
|
|
75
123
|
size: "inherit",
|
|
76
124
|
type: "secondary",
|
|
@@ -78,41 +126,41 @@ function J({ children: e }) {
|
|
|
78
126
|
children: e
|
|
79
127
|
});
|
|
80
128
|
}
|
|
81
|
-
function
|
|
129
|
+
function ie({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
|
|
82
130
|
let a = t.trim();
|
|
83
|
-
if (e) return /* @__PURE__ */ z(
|
|
84
|
-
if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ R(
|
|
131
|
+
if (e) return /* @__PURE__ */ z(te, { children: [/* @__PURE__ */ R(ne, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ R(X, { children: i.searching })] });
|
|
132
|
+
if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ R(X, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ R(X, { children: i.typeToSearch });
|
|
85
133
|
if (a.length < n) {
|
|
86
134
|
let e = n - a.length;
|
|
87
|
-
return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ R(
|
|
135
|
+
return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ R(X, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ R(X, { children: i.typeMore });
|
|
88
136
|
}
|
|
89
137
|
return null;
|
|
90
138
|
}
|
|
91
|
-
|
|
139
|
+
ie.displayName = "StatusContent";
|
|
92
140
|
//#endregion
|
|
93
141
|
//#region src/components/features/combobox/components/combobox-dropdown.tsx
|
|
94
|
-
var
|
|
142
|
+
var ae = {
|
|
95
143
|
sm: "sm",
|
|
96
144
|
md: "md",
|
|
97
145
|
lg: "lg"
|
|
98
|
-
},
|
|
146
|
+
}, oe = {
|
|
99
147
|
sm: "flex min-h-control-sm items-center justify-center px-row-x py-row-y text-center text-pxs leading-tight text-muted-foreground",
|
|
100
148
|
md: "flex min-h-control items-center justify-center px-row-x py-row-y text-center text-sm leading-tight text-muted-foreground",
|
|
101
149
|
lg: "flex min-h-control-lg items-center justify-center px-row-x py-row-y-lg text-center text-sm leading-tight text-muted-foreground"
|
|
102
150
|
};
|
|
103
|
-
function
|
|
104
|
-
let
|
|
105
|
-
if (!(t || n || d.length > 0 || O ||
|
|
106
|
-
let
|
|
107
|
-
anchor:
|
|
108
|
-
className:
|
|
109
|
-
children: /* @__PURE__ */ z(
|
|
151
|
+
function se({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearchLength: l, items: d, groupedItems: f, createOptionItem: b, renderItemContent: S, getItemReactKey: C, getItemDisabled: w, renderGroupLabel: D, loadingMore: O, strings: k, size: A = "md", portalContainer: j, listRef: M, anchor: N, applyFooter: P }) {
|
|
152
|
+
let F = j == null ? void 0 : u.nestedOverlay, I = ae[A];
|
|
153
|
+
if (!(t || n || d.length > 0 || O || P)) return null;
|
|
154
|
+
let L = /* @__PURE__ */ R(p, {
|
|
155
|
+
anchor: N,
|
|
156
|
+
className: F,
|
|
157
|
+
children: /* @__PURE__ */ z(x, {
|
|
110
158
|
"aria-busy": e || void 0,
|
|
111
159
|
className: r("combobox-dropdown--popup"),
|
|
112
160
|
children: [
|
|
113
|
-
!!t && /* @__PURE__ */ R(
|
|
161
|
+
!!t && /* @__PURE__ */ R(E, {
|
|
114
162
|
className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
|
|
115
|
-
children: /* @__PURE__ */ R(
|
|
163
|
+
children: /* @__PURE__ */ R(ie, {
|
|
116
164
|
loading: e,
|
|
117
165
|
searchValue: c,
|
|
118
166
|
minSearchLength: l,
|
|
@@ -120,9 +168,9 @@ function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
|
|
|
120
168
|
strings: k
|
|
121
169
|
})
|
|
122
170
|
}),
|
|
123
|
-
!!n && /* @__PURE__ */ R(
|
|
124
|
-
className:
|
|
125
|
-
children: /* @__PURE__ */ R(
|
|
171
|
+
!!n && /* @__PURE__ */ R(v, {
|
|
172
|
+
className: oe[A],
|
|
173
|
+
children: /* @__PURE__ */ R(a, {
|
|
126
174
|
tag: "span",
|
|
127
175
|
size: "inherit",
|
|
128
176
|
type: "secondary",
|
|
@@ -130,40 +178,40 @@ function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
|
|
|
130
178
|
children: k.noResults
|
|
131
179
|
})
|
|
132
180
|
}),
|
|
133
|
-
/* @__PURE__ */ R(
|
|
134
|
-
viewportRef:
|
|
181
|
+
/* @__PURE__ */ R(ee, {
|
|
182
|
+
viewportRef: M,
|
|
135
183
|
className: "max-h-[min(20rem,var(--available-height))]",
|
|
136
|
-
children: /* @__PURE__ */ R(
|
|
184
|
+
children: /* @__PURE__ */ R(_, {
|
|
137
185
|
className: "combobox-dropdown--list max-h-none overflow-visible",
|
|
138
|
-
children: f ? /* @__PURE__ */ z(
|
|
186
|
+
children: f ? /* @__PURE__ */ z(te, { children: [Array.from(f.entries()).map(([e, t]) => {
|
|
139
187
|
let n = typeof D == "function" ? D(e) : e;
|
|
140
|
-
return /* @__PURE__ */ z(
|
|
188
|
+
return /* @__PURE__ */ z(h, {
|
|
141
189
|
className: "combobox-dropdown--group p-0",
|
|
142
190
|
items: t,
|
|
143
|
-
children: [/* @__PURE__ */ R(
|
|
191
|
+
children: [/* @__PURE__ */ R(T, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ R(o, { children: n }) : n }), /* @__PURE__ */ R(y, { children: (e) => /* @__PURE__ */ R(g, {
|
|
144
192
|
value: e,
|
|
145
|
-
size:
|
|
193
|
+
size: I,
|
|
146
194
|
disabled: w?.(e),
|
|
147
|
-
children:
|
|
148
|
-
},
|
|
195
|
+
children: S(e)
|
|
196
|
+
}, C(e)) })]
|
|
149
197
|
}, e);
|
|
150
|
-
}),
|
|
151
|
-
value:
|
|
152
|
-
size:
|
|
153
|
-
children:
|
|
154
|
-
},
|
|
198
|
+
}), b != null && /* @__PURE__ */ R(g, {
|
|
199
|
+
value: b,
|
|
200
|
+
size: I,
|
|
201
|
+
children: S(b)
|
|
202
|
+
}, C(b))] }) : /* @__PURE__ */ R(y, { children: (e) => /* @__PURE__ */ R(g, {
|
|
155
203
|
value: e,
|
|
156
|
-
size:
|
|
204
|
+
size: I,
|
|
157
205
|
disabled: w?.(e),
|
|
158
|
-
children:
|
|
159
|
-
},
|
|
206
|
+
children: S(e)
|
|
207
|
+
}, C(e)) })
|
|
160
208
|
})
|
|
161
209
|
}),
|
|
162
|
-
/* @__PURE__ */ R(
|
|
210
|
+
/* @__PURE__ */ R(Y, {
|
|
163
211
|
loading: !!O,
|
|
164
212
|
text: k.loadingMore
|
|
165
213
|
}),
|
|
166
|
-
!!
|
|
214
|
+
!!P && /* @__PURE__ */ z(s, {
|
|
167
215
|
direction: "horizontal",
|
|
168
216
|
gap: "md",
|
|
169
217
|
justify: "end",
|
|
@@ -174,31 +222,31 @@ function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
|
|
|
174
222
|
tone: "secondary",
|
|
175
223
|
buttonStyle: "ghost",
|
|
176
224
|
onClick: (e) => {
|
|
177
|
-
e.preventDefault(), e.stopPropagation(),
|
|
225
|
+
e.preventDefault(), e.stopPropagation(), P.onCancel();
|
|
178
226
|
},
|
|
179
|
-
children:
|
|
227
|
+
children: P.cancelLabel
|
|
180
228
|
}), /* @__PURE__ */ R(i, {
|
|
181
229
|
type: "button",
|
|
182
230
|
tone: "primary",
|
|
183
231
|
onClick: (e) => {
|
|
184
|
-
e.preventDefault(), e.stopPropagation(),
|
|
232
|
+
e.preventDefault(), e.stopPropagation(), P.onApply();
|
|
185
233
|
},
|
|
186
|
-
children:
|
|
234
|
+
children: P.applyLabel
|
|
187
235
|
})]
|
|
188
236
|
})
|
|
189
237
|
]
|
|
190
238
|
})
|
|
191
239
|
});
|
|
192
|
-
return
|
|
193
|
-
container:
|
|
194
|
-
children:
|
|
195
|
-
}) : /* @__PURE__ */ R(m, { children:
|
|
240
|
+
return j ? /* @__PURE__ */ R(m, {
|
|
241
|
+
container: j,
|
|
242
|
+
children: L
|
|
243
|
+
}) : /* @__PURE__ */ R(m, { children: L });
|
|
196
244
|
}
|
|
197
|
-
|
|
245
|
+
se.displayName = "ComboboxDropdown";
|
|
198
246
|
//#endregion
|
|
199
247
|
//#region src/components/features/combobox/components/error-message.tsx
|
|
200
|
-
function
|
|
201
|
-
return e ? /* @__PURE__ */ R(
|
|
248
|
+
function ce({ error: e, size: t, className: n }) {
|
|
249
|
+
return e ? /* @__PURE__ */ R(a, {
|
|
202
250
|
tag: "p",
|
|
203
251
|
size: "xs",
|
|
204
252
|
type: "error",
|
|
@@ -208,39 +256,39 @@ function se({ error: e, size: t, className: n }) {
|
|
|
208
256
|
children: e
|
|
209
257
|
}) : null;
|
|
210
258
|
}
|
|
211
|
-
|
|
259
|
+
ce.displayName = "ErrorMessage";
|
|
212
260
|
//#endregion
|
|
213
261
|
//#region src/components/features/combobox/components/highlighted-text.tsx
|
|
214
|
-
function
|
|
262
|
+
function le(e) {
|
|
215
263
|
return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
|
|
216
264
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!t.trim()) return /* @__PURE__ */ R(
|
|
265
|
+
function ue({ text: e, highlight: t, highlightClassName: n = c.match }) {
|
|
266
|
+
if (!t.trim()) return /* @__PURE__ */ R(a, {
|
|
219
267
|
tag: "span",
|
|
220
268
|
size: "inherit",
|
|
221
269
|
lineHeight: "tight",
|
|
222
270
|
className: "text-inherit",
|
|
223
271
|
children: e
|
|
224
272
|
});
|
|
225
|
-
let r = RegExp(`(${
|
|
226
|
-
return /* @__PURE__ */ R(
|
|
273
|
+
let r = RegExp(`(${le(t)})`, "gi"), i = e.split(r), o = 0;
|
|
274
|
+
return /* @__PURE__ */ R(a, {
|
|
227
275
|
tag: "span",
|
|
228
276
|
size: "inherit",
|
|
229
277
|
lineHeight: "tight",
|
|
230
278
|
className: "text-inherit",
|
|
231
279
|
children: i.map((e, t) => {
|
|
232
|
-
let r = t % 2 == 1, i = String(
|
|
233
|
-
return
|
|
280
|
+
let r = t % 2 == 1, i = String(o);
|
|
281
|
+
return o += e.length, r ? /* @__PURE__ */ R("mark", {
|
|
234
282
|
className: n,
|
|
235
283
|
children: e
|
|
236
284
|
}, i) : /* @__PURE__ */ R(M.Fragment, { children: e }, i);
|
|
237
285
|
})
|
|
238
286
|
});
|
|
239
287
|
}
|
|
240
|
-
|
|
288
|
+
ue.displayName = "HighlightedText";
|
|
241
289
|
//#endregion
|
|
242
290
|
//#region src/components/features/combobox/hooks/use-debounced-search.ts
|
|
243
|
-
function
|
|
291
|
+
function de({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
|
|
244
292
|
let i = j((e) => {
|
|
245
293
|
t?.(e);
|
|
246
294
|
}, n);
|
|
@@ -255,7 +303,7 @@ function le({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength:
|
|
|
255
303
|
}
|
|
256
304
|
//#endregion
|
|
257
305
|
//#region src/components/features/combobox/hooks/use-grouped-items.ts
|
|
258
|
-
function
|
|
306
|
+
function fe({ items: e, getItemGroup: t }) {
|
|
259
307
|
return F(() => {
|
|
260
308
|
if (!t) return null;
|
|
261
309
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -268,7 +316,7 @@ function ue({ items: e, getItemGroup: t }) {
|
|
|
268
316
|
}
|
|
269
317
|
//#endregion
|
|
270
318
|
//#region src/components/features/combobox/hooks/use-load-more.ts
|
|
271
|
-
function
|
|
319
|
+
function pe({ hasMore: e, onLoadMore: t, loadingMore: n }) {
|
|
272
320
|
let r = I(!1), i = I(null), a = j(() => {
|
|
273
321
|
r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
274
322
|
r.current = !1, i.current = null;
|
|
@@ -289,22 +337,22 @@ function de({ hasMore: e, onLoadMore: t, loadingMore: n }) {
|
|
|
289
337
|
}
|
|
290
338
|
//#endregion
|
|
291
339
|
//#region src/components/features/combobox/hooks/use-combobox-core.tsx
|
|
292
|
-
function
|
|
293
|
-
return n(
|
|
340
|
+
function me(e) {
|
|
341
|
+
return n(W, e);
|
|
294
342
|
}
|
|
295
|
-
function
|
|
343
|
+
function he(e, t, n) {
|
|
296
344
|
let r = t.toLowerCase();
|
|
297
345
|
return e.some((e) => n(e).toLowerCase() === r);
|
|
298
346
|
}
|
|
299
|
-
function
|
|
300
|
-
let x =
|
|
301
|
-
|
|
347
|
+
function ge({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading: o = !1, showListContent: s = !0, minSearchLength: c = 3, strings: l, renderItem: u, onSearch: d, debounceMs: f = 300, creatable: p, onCreate: m, getItemGroup: h, hasMore: g, onLoadMore: _, loadingMore: v, highlightMatch: y, ensuredItems: b = [] }) {
|
|
348
|
+
let x = me(l), S = i ?? n, C = I(null), w = t.trim(), T = s && (o || w.length < c);
|
|
349
|
+
de({
|
|
302
350
|
searchValue: t,
|
|
303
351
|
onSearch: d,
|
|
304
352
|
debounceMs: f,
|
|
305
353
|
minSearchLength: c
|
|
306
354
|
});
|
|
307
|
-
let { handleScroll: E } =
|
|
355
|
+
let { handleScroll: E } = pe({
|
|
308
356
|
hasMore: s && !T ? g : !1,
|
|
309
357
|
onLoadMore: _,
|
|
310
358
|
loadingMore: v
|
|
@@ -333,10 +381,10 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
333
381
|
S,
|
|
334
382
|
s,
|
|
335
383
|
T
|
|
336
|
-
]), O =
|
|
384
|
+
]), O = fe({
|
|
337
385
|
items: D,
|
|
338
386
|
getItemGroup: h
|
|
339
|
-
}), k = F(() => !s || T || !p || !m || w.length < c ? !1 : !
|
|
387
|
+
}), k = F(() => !s || T || !p || !m || w.length < c ? !1 : !he(D, w, n), [
|
|
340
388
|
p,
|
|
341
389
|
m,
|
|
342
390
|
w,
|
|
@@ -345,7 +393,7 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
345
393
|
n,
|
|
346
394
|
s,
|
|
347
395
|
T
|
|
348
|
-
]), A = F(() => k ?
|
|
396
|
+
]), A = F(() => k ? J(w) : null, [k, w]);
|
|
349
397
|
return {
|
|
350
398
|
strings: x,
|
|
351
399
|
getKey: S,
|
|
@@ -356,14 +404,14 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
356
404
|
groupedItems: O,
|
|
357
405
|
createOptionItem: A,
|
|
358
406
|
showStatus: T,
|
|
359
|
-
showEmpty: s && !
|
|
407
|
+
showEmpty: s && !o && w.length >= c && e.length === 0 && !k,
|
|
360
408
|
showCreateOption: k,
|
|
361
409
|
renderItemContent: N((e) => {
|
|
362
|
-
if (
|
|
363
|
-
let t =
|
|
410
|
+
if (K(e)) {
|
|
411
|
+
let t = q(e);
|
|
364
412
|
return /* @__PURE__ */ z("span", {
|
|
365
413
|
className: r("combobox-core--component", "flex items-center gap-space-sm"),
|
|
366
|
-
children: [/* @__PURE__ */ R(
|
|
414
|
+
children: [/* @__PURE__ */ R(V, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ R(a, {
|
|
367
415
|
tag: "span",
|
|
368
416
|
size: "inherit",
|
|
369
417
|
weight: "medium",
|
|
@@ -372,14 +420,14 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
372
420
|
children: x.createNew.replace("{value}", t)
|
|
373
421
|
}) : /* @__PURE__ */ z("span", {
|
|
374
422
|
className: "inline-flex items-center gap-space-sm",
|
|
375
|
-
children: [/* @__PURE__ */ R(
|
|
423
|
+
children: [/* @__PURE__ */ R(a, {
|
|
376
424
|
tag: "span",
|
|
377
425
|
size: "inherit",
|
|
378
426
|
weight: "medium",
|
|
379
427
|
lineHeight: "tight",
|
|
380
428
|
className: "text-inherit",
|
|
381
429
|
children: x.createNew
|
|
382
|
-
}), /* @__PURE__ */ R(
|
|
430
|
+
}), /* @__PURE__ */ R(a, {
|
|
383
431
|
tag: "span",
|
|
384
432
|
size: "inherit",
|
|
385
433
|
weight: "medium",
|
|
@@ -392,10 +440,10 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
392
440
|
}
|
|
393
441
|
if (u) return u(e);
|
|
394
442
|
let t = n(e);
|
|
395
|
-
return y && w ? /* @__PURE__ */ R(
|
|
443
|
+
return y && w ? /* @__PURE__ */ R(ue, {
|
|
396
444
|
text: t,
|
|
397
445
|
highlight: w
|
|
398
|
-
}) : /* @__PURE__ */ R(
|
|
446
|
+
}) : /* @__PURE__ */ R(a, {
|
|
399
447
|
tag: "span",
|
|
400
448
|
size: "inherit",
|
|
401
449
|
weight: "medium",
|
|
@@ -410,70 +458,26 @@ function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
410
458
|
y,
|
|
411
459
|
w
|
|
412
460
|
]),
|
|
413
|
-
itemToStringLabel: N((e) =>
|
|
414
|
-
getItemReactKey: N((e) =>
|
|
461
|
+
itemToStringLabel: N((e) => K(e) ? q(e) : n(e), [n]),
|
|
462
|
+
getItemReactKey: N((e) => K(e) ? `__create__:${q(e)}` : String(S(e)), [S]),
|
|
415
463
|
handleScroll: E
|
|
416
464
|
};
|
|
417
465
|
}
|
|
418
466
|
//#endregion
|
|
419
467
|
//#region src/components/features/combobox/combobox.tsx
|
|
420
|
-
function
|
|
468
|
+
function _e(e, n) {
|
|
421
469
|
return t(e, n, "md");
|
|
422
470
|
}
|
|
423
|
-
var
|
|
471
|
+
var ve = {
|
|
424
472
|
sm: "sm",
|
|
425
473
|
md: "md",
|
|
426
474
|
lg: "lg"
|
|
427
475
|
};
|
|
428
|
-
function
|
|
476
|
+
function ye(e) {
|
|
429
477
|
return e;
|
|
430
478
|
}
|
|
431
|
-
function
|
|
432
|
-
|
|
433
|
-
className: "relative",
|
|
434
|
-
children: [/* @__PURE__ */ R(H.Input, {
|
|
435
|
-
render: /* @__PURE__ */ R(k, {
|
|
436
|
-
size: a,
|
|
437
|
-
invalid: o,
|
|
438
|
-
className: r(l ? f.clearPadding[a] : f.padding[a], u)
|
|
439
|
-
}),
|
|
440
|
-
placeholder: e,
|
|
441
|
-
"aria-invalid": o || void 0,
|
|
442
|
-
"aria-required": s,
|
|
443
|
-
disabled: c,
|
|
444
|
-
onBlur: p
|
|
445
|
-
}), /* @__PURE__ */ z("div", {
|
|
446
|
-
className: r("absolute inset-y-0 flex items-center gap-space-xs text-muted-foreground", f.track[a]),
|
|
447
|
-
children: [l ? /* @__PURE__ */ R(H.Clear, { render: /* @__PURE__ */ R(i, {
|
|
448
|
-
type: "button",
|
|
449
|
-
tone: "secondary",
|
|
450
|
-
buttonStyle: "ghost",
|
|
451
|
-
size: "sm",
|
|
452
|
-
iconOnly: !0,
|
|
453
|
-
className: r(d.target, d.focus, d.clear),
|
|
454
|
-
"aria-label": t,
|
|
455
|
-
children: /* @__PURE__ */ R(V, {
|
|
456
|
-
className: d.icon,
|
|
457
|
-
"aria-hidden": "true"
|
|
458
|
-
})
|
|
459
|
-
}) }) : null, /* @__PURE__ */ R(H.Trigger, { render: /* @__PURE__ */ R(i, {
|
|
460
|
-
type: "button",
|
|
461
|
-
tone: "secondary",
|
|
462
|
-
buttonStyle: "ghost",
|
|
463
|
-
size: "sm",
|
|
464
|
-
iconOnly: !0,
|
|
465
|
-
className: r(d.target, d.focus, d.toggle),
|
|
466
|
-
"aria-label": n,
|
|
467
|
-
children: /* @__PURE__ */ R(te, {
|
|
468
|
-
className: r("shrink-0", f.icon[a]),
|
|
469
|
-
"aria-hidden": "true"
|
|
470
|
-
})
|
|
471
|
-
}) })]
|
|
472
|
-
})]
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOnClose: i = !0, searchValue: a, onSearchValueChange: o, getItemLabel: c, getItemKey: l, loading: u = !1, showListContent: d = !0, minSearchLength: f = 3, strings: p, disabled: m = !1, className: h, clearable: g = !0, renderItem: _, portalContainer: v, name: y, invalid: b, error: S, required: C, onBlur: w, onSearch: T, debounceMs: E, creatable: D, onCreate: O, getItemGroup: k, renderGroupLabel: A, hasMore: j, onLoadMore: M, loadingMore: P, getItemDisabled: F, highlightMatch: I, size: ee, open: te, onOpenChange: B }) {
|
|
476
|
-
let { defaultScale: ne } = e(), V = he(ee, ne), H = _e(V), U = b || !!S, W = me({
|
|
479
|
+
function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOnClose: i = !0, searchValue: a, onSearchValueChange: o, getItemLabel: c, getItemKey: l, loading: u = !1, showListContent: d = !0, minSearchLength: f = 3, strings: p, disabled: m = !1, className: h, clearable: g = !0, renderItem: _, portalContainer: v, name: y, invalid: b, error: x, required: S, onBlur: C, onSearch: T, debounceMs: E, creatable: D, onCreate: O, getItemGroup: k, renderGroupLabel: A, hasMore: ee, onLoadMore: j, loadingMore: M, getItemDisabled: P, highlightMatch: F, size: I, open: te, onOpenChange: B }) {
|
|
480
|
+
let { defaultScale: ne } = e(), V = _e(I, ne), H = ye(V), U = b || !!x, W = ge({
|
|
477
481
|
items: t,
|
|
478
482
|
searchValue: a,
|
|
479
483
|
onSearchValueChange: o,
|
|
@@ -489,21 +493,21 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
|
|
|
489
493
|
creatable: D,
|
|
490
494
|
onCreate: O,
|
|
491
495
|
getItemGroup: k,
|
|
492
|
-
hasMore:
|
|
493
|
-
onLoadMore:
|
|
494
|
-
loadingMore:
|
|
495
|
-
highlightMatch:
|
|
496
|
+
hasMore: ee,
|
|
497
|
+
onLoadMore: j,
|
|
498
|
+
loadingMore: M,
|
|
499
|
+
highlightMatch: F,
|
|
496
500
|
size: V,
|
|
497
501
|
ensuredItems: n ? [n] : []
|
|
498
|
-
}), [
|
|
499
|
-
|
|
502
|
+
}), [G, J] = L(!1), Y = N((e) => {
|
|
503
|
+
J(e), !e && i && o(""), B?.(e);
|
|
500
504
|
}, [
|
|
501
505
|
i,
|
|
502
506
|
B,
|
|
503
507
|
o
|
|
504
|
-
]),
|
|
505
|
-
if (e &&
|
|
506
|
-
let t =
|
|
508
|
+
]), X = G ? a : n ? W.itemToStringLabel(n) : "", ie = N((e) => {
|
|
509
|
+
if (e && K(e)) {
|
|
510
|
+
let t = q(e);
|
|
507
511
|
O?.(t);
|
|
508
512
|
return;
|
|
509
513
|
}
|
|
@@ -512,7 +516,8 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
|
|
|
512
516
|
return /* @__PURE__ */ z(s, {
|
|
513
517
|
gap: "dense",
|
|
514
518
|
className: "combobox--component",
|
|
515
|
-
children: [/* @__PURE__ */ z(
|
|
519
|
+
children: [/* @__PURE__ */ z(w, {
|
|
520
|
+
dismissLabel: W.strings.dismiss,
|
|
516
521
|
items: W.allItems,
|
|
517
522
|
value: n,
|
|
518
523
|
onValueChange: (e, t) => {
|
|
@@ -522,7 +527,7 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
|
|
|
522
527
|
}
|
|
523
528
|
ie(e);
|
|
524
529
|
},
|
|
525
|
-
inputValue:
|
|
530
|
+
inputValue: X,
|
|
526
531
|
onInputValueChange: (e, t) => {
|
|
527
532
|
let { reason: n } = t;
|
|
528
533
|
if (n === "escape-key") {
|
|
@@ -539,21 +544,21 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
|
|
|
539
544
|
disabled: m,
|
|
540
545
|
filter: null,
|
|
541
546
|
name: y,
|
|
542
|
-
required:
|
|
547
|
+
required: S,
|
|
543
548
|
open: te,
|
|
544
|
-
onOpenChange:
|
|
545
|
-
children: [/* @__PURE__ */ R(
|
|
549
|
+
onOpenChange: Y,
|
|
550
|
+
children: [/* @__PURE__ */ R(re, {
|
|
546
551
|
placeholder: W.strings.placeholder,
|
|
547
552
|
clearLabel: W.strings.clear,
|
|
548
553
|
toggleLabel: W.strings.toggle,
|
|
549
554
|
className: h,
|
|
550
555
|
size: H,
|
|
551
556
|
error: U,
|
|
552
|
-
required:
|
|
557
|
+
required: S,
|
|
553
558
|
disabled: m,
|
|
554
559
|
clearable: g,
|
|
555
|
-
onBlur:
|
|
556
|
-
}), /* @__PURE__ */ R(
|
|
560
|
+
onBlur: C
|
|
561
|
+
}), /* @__PURE__ */ R(se, {
|
|
557
562
|
loading: u,
|
|
558
563
|
showStatus: W.showStatus,
|
|
559
564
|
showEmpty: W.showEmpty,
|
|
@@ -564,30 +569,30 @@ function Z({ items: t, selectedValue: n, onSelectedValueChange: r, clearSearchOn
|
|
|
564
569
|
createOptionItem: W.createOptionItem,
|
|
565
570
|
renderItemContent: W.renderItemContent,
|
|
566
571
|
getItemReactKey: W.getItemReactKey,
|
|
567
|
-
getItemDisabled:
|
|
572
|
+
getItemDisabled: P,
|
|
568
573
|
renderGroupLabel: A,
|
|
569
|
-
loadingMore: d && !W.showStatus ?
|
|
574
|
+
loadingMore: d && !W.showStatus ? M : !1,
|
|
570
575
|
strings: W.strings,
|
|
571
576
|
size: V,
|
|
572
577
|
portalContainer: v,
|
|
573
578
|
listRef: W.listRef
|
|
574
579
|
})]
|
|
575
|
-
}), /* @__PURE__ */ R(
|
|
576
|
-
error:
|
|
580
|
+
}), /* @__PURE__ */ R(ce, {
|
|
581
|
+
error: x,
|
|
577
582
|
size: V
|
|
578
583
|
})]
|
|
579
584
|
});
|
|
580
585
|
}
|
|
581
|
-
function
|
|
582
|
-
let { defaultScale:
|
|
586
|
+
function be({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValue: o, onSearchValueChange: c, getItemLabel: l, getItemKey: u, loading: d = !1, showListContent: f = !0, minSearchLength: p = 3, strings: m, disabled: h = !1, className: g, renderItem: _, portalContainer: v, name: y, invalid: x, error: T, required: E, onBlur: D, onSearch: A, debounceMs: ee, creatable: j, onCreate: M, getItemGroup: F, renderGroupLabel: te, hasMore: B, onLoadMore: ne, loadingMore: V, getItemDisabled: H, highlightMatch: U, size: re, open: G, onOpenChange: J, closeOnSelect: Y = !1, applyButton: X = !1, onApply: ie, onCancel: ae }) {
|
|
587
|
+
let { defaultScale: oe } = e(), le = _e(re, oe), ue = ye(le), de = ve[le], fe = x || !!T, pe = I(null), me = u ?? l, [he, Z] = L(n), [be, xe] = L(!1), Se = G !== void 0, Ce = Se ? G : be;
|
|
583
588
|
P(() => {
|
|
584
|
-
|
|
585
|
-
}, [
|
|
589
|
+
X && Z(n);
|
|
590
|
+
}, [X, n]);
|
|
586
591
|
let Q = N((e) => {
|
|
587
|
-
|
|
588
|
-
}, [
|
|
592
|
+
Se || xe(e), J?.(e);
|
|
593
|
+
}, [Se, J]), $ = ge({
|
|
589
594
|
items: t,
|
|
590
|
-
searchValue:
|
|
595
|
+
searchValue: o,
|
|
591
596
|
onSearchValueChange: c,
|
|
592
597
|
getItemLabel: l,
|
|
593
598
|
getItemKey: u,
|
|
@@ -595,61 +600,62 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
|
|
|
595
600
|
showListContent: f,
|
|
596
601
|
minSearchLength: p,
|
|
597
602
|
strings: m,
|
|
598
|
-
renderItem:
|
|
603
|
+
renderItem: _,
|
|
599
604
|
onSearch: A,
|
|
600
|
-
debounceMs:
|
|
601
|
-
creatable:
|
|
602
|
-
onCreate:
|
|
603
|
-
getItemGroup:
|
|
605
|
+
debounceMs: ee,
|
|
606
|
+
creatable: j,
|
|
607
|
+
onCreate: M,
|
|
608
|
+
getItemGroup: F,
|
|
604
609
|
hasMore: B,
|
|
605
610
|
onLoadMore: ne,
|
|
606
611
|
loadingMore: V,
|
|
607
612
|
highlightMatch: U,
|
|
608
|
-
size:
|
|
613
|
+
size: le,
|
|
609
614
|
ensuredItems: n
|
|
610
|
-
}),
|
|
615
|
+
}), we = N((e) => {
|
|
611
616
|
let t = [], n = null;
|
|
612
|
-
for (let r of e)
|
|
613
|
-
n &&
|
|
617
|
+
for (let r of e) K(r) ? n = q(r) : t.push(r);
|
|
618
|
+
n && M?.(n);
|
|
614
619
|
let r = t.length !== e.length || !n ? t : null;
|
|
615
|
-
r && (
|
|
620
|
+
r && (X ? Z(r) : i(r)), Y && Q(!1);
|
|
616
621
|
}, [
|
|
617
622
|
i,
|
|
618
|
-
|
|
623
|
+
M,
|
|
624
|
+
X,
|
|
619
625
|
Y,
|
|
620
|
-
J,
|
|
621
626
|
Q
|
|
622
|
-
]),
|
|
623
|
-
|
|
627
|
+
]), Te = N(() => {
|
|
628
|
+
X && i(he), ie?.(), Q(!1);
|
|
624
629
|
}, [
|
|
625
|
-
|
|
626
|
-
|
|
630
|
+
X,
|
|
631
|
+
he,
|
|
627
632
|
ie,
|
|
628
633
|
i,
|
|
629
634
|
Q
|
|
630
|
-
]),
|
|
631
|
-
|
|
635
|
+
]), Ee = N(() => {
|
|
636
|
+
X && Z(n), ae?.(), Q(!1);
|
|
632
637
|
}, [
|
|
633
|
-
|
|
638
|
+
X,
|
|
634
639
|
n,
|
|
635
640
|
ae,
|
|
636
641
|
Q
|
|
637
|
-
]),
|
|
642
|
+
]), De = X ? he : n, Oe = De.length > 0 ? void 0 : $.strings.placeholder;
|
|
638
643
|
return /* @__PURE__ */ z(s, {
|
|
639
644
|
gap: "dense",
|
|
640
645
|
className: "combobox--component",
|
|
641
|
-
children: [/* @__PURE__ */ z(
|
|
646
|
+
children: [/* @__PURE__ */ z(w, {
|
|
647
|
+
dismissLabel: $.strings.dismiss,
|
|
642
648
|
items: $.allItems,
|
|
643
649
|
multiple: !0,
|
|
644
|
-
value:
|
|
650
|
+
value: De,
|
|
645
651
|
onValueChange: (e, t) => {
|
|
646
652
|
if (t.reason === "escape-key") {
|
|
647
653
|
t.allowPropagation();
|
|
648
654
|
return;
|
|
649
655
|
}
|
|
650
|
-
|
|
656
|
+
we(e);
|
|
651
657
|
},
|
|
652
|
-
inputValue:
|
|
658
|
+
inputValue: o,
|
|
653
659
|
onInputValueChange: (e, t) => {
|
|
654
660
|
let { reason: n } = t;
|
|
655
661
|
if (n === "escape-key") {
|
|
@@ -663,37 +669,40 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
|
|
|
663
669
|
c(e);
|
|
664
670
|
},
|
|
665
671
|
itemToStringLabel: $.itemToStringLabel,
|
|
666
|
-
disabled:
|
|
672
|
+
disabled: h,
|
|
667
673
|
filter: null,
|
|
668
|
-
name:
|
|
674
|
+
name: y,
|
|
669
675
|
required: E,
|
|
670
|
-
open:
|
|
676
|
+
open: Ce,
|
|
671
677
|
onOpenChange: (e) => {
|
|
672
|
-
!e &&
|
|
678
|
+
!e && X && Z(n), Q(e);
|
|
673
679
|
},
|
|
674
|
-
children: [/* @__PURE__ */ z(
|
|
675
|
-
ref:
|
|
676
|
-
className: r(
|
|
677
|
-
size:
|
|
678
|
-
error:
|
|
679
|
-
children: [
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
680
|
+
children: [/* @__PURE__ */ z(S, {
|
|
681
|
+
ref: pe,
|
|
682
|
+
className: r(O[ue], k[ue], ue === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", g),
|
|
683
|
+
size: de,
|
|
684
|
+
error: fe,
|
|
685
|
+
children: [De.map((e) => /* @__PURE__ */ R(C, {
|
|
686
|
+
strings: { remove: ($.strings.removeSelection ?? W.removeSelection)(l(e)) },
|
|
687
|
+
children: /* @__PURE__ */ R(a, {
|
|
688
|
+
tag: "span",
|
|
689
|
+
size: "inherit",
|
|
690
|
+
weight: "medium",
|
|
691
|
+
lineHeight: "tight",
|
|
692
|
+
className: "combobox--chip-label text-inherit",
|
|
693
|
+
children: l(e)
|
|
694
|
+
})
|
|
695
|
+
}, me(e))), /* @__PURE__ */ R(b, {
|
|
696
|
+
placeholder: Oe,
|
|
697
|
+
"aria-invalid": fe || void 0,
|
|
689
698
|
"aria-required": E,
|
|
690
|
-
onBlur:
|
|
699
|
+
onBlur: D
|
|
691
700
|
})]
|
|
692
|
-
}), /* @__PURE__ */ R(
|
|
701
|
+
}), /* @__PURE__ */ R(se, {
|
|
693
702
|
loading: d,
|
|
694
703
|
showStatus: $.showStatus,
|
|
695
704
|
showEmpty: $.showEmpty,
|
|
696
|
-
searchValue:
|
|
705
|
+
searchValue: o,
|
|
697
706
|
minSearchLength: p,
|
|
698
707
|
items: $.allItems,
|
|
699
708
|
groupedItems: $.groupedItems,
|
|
@@ -704,60 +713,60 @@ function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValu
|
|
|
704
713
|
renderGroupLabel: te,
|
|
705
714
|
loadingMore: f && !$.showStatus ? V : !1,
|
|
706
715
|
strings: $.strings,
|
|
707
|
-
size:
|
|
708
|
-
portalContainer:
|
|
716
|
+
size: le,
|
|
717
|
+
portalContainer: v,
|
|
709
718
|
listRef: $.listRef,
|
|
710
|
-
anchor:
|
|
711
|
-
applyFooter: f &&
|
|
719
|
+
anchor: pe,
|
|
720
|
+
applyFooter: f && X ? {
|
|
712
721
|
applyLabel: $.strings.apply,
|
|
713
722
|
cancelLabel: $.strings.cancel,
|
|
714
|
-
onApply:
|
|
715
|
-
onCancel:
|
|
723
|
+
onApply: Te,
|
|
724
|
+
onCancel: Ee
|
|
716
725
|
} : void 0
|
|
717
726
|
})]
|
|
718
|
-
}), /* @__PURE__ */ R(
|
|
727
|
+
}), /* @__PURE__ */ R(ce, {
|
|
719
728
|
error: T,
|
|
720
|
-
size:
|
|
729
|
+
size: le
|
|
721
730
|
})]
|
|
722
731
|
});
|
|
723
732
|
}
|
|
724
|
-
Z.displayName = "Combobox",
|
|
733
|
+
Z.displayName = "Combobox", be.displayName = "MultiCombobox";
|
|
725
734
|
//#endregion
|
|
726
735
|
//#region src/components/features/combobox/async-resource-combobox.tsx
|
|
727
|
-
var
|
|
728
|
-
...
|
|
736
|
+
var xe = {
|
|
737
|
+
...W,
|
|
729
738
|
error: "Unable to load options.",
|
|
730
739
|
retry: "Retry"
|
|
731
740
|
};
|
|
732
|
-
function
|
|
741
|
+
function Se(e) {
|
|
733
742
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
734
743
|
}
|
|
735
|
-
function
|
|
736
|
-
let E = n(
|
|
737
|
-
D || k(e),
|
|
738
|
-
}, [D,
|
|
744
|
+
function Ce({ fetcher: e, value: t, defaultValue: i = null, onValueChange: o, onAfterFetch: c, onError: u, getKey: d, getLabel: f, getDescription: p, getMeta: m, renderOption: h, limit: g = 10, debounceMs: _ = 300, preload: v = !0, minSearchLength: y = 0, errorMessage: b, renderError: x, strings: S, disabled: C, size: w, ...T }) {
|
|
745
|
+
let E = n(xe, S), D = t !== void 0, [O, k] = L(i), A = D ? t : O, [ee, M] = L(""), [te, B] = L([]), [ne, V] = L(!1), [H, U] = L(null), [re, W] = L(0), G = I(0), K = ee.trim(), q = N((e) => {
|
|
746
|
+
D || k(e), o?.(e);
|
|
747
|
+
}, [D, o]), J = j((t, n) => {
|
|
739
748
|
V(!0), U(null), e(n).then((e) => {
|
|
740
|
-
n.signal?.aborted ||
|
|
749
|
+
n.signal?.aborted || G.current !== t || (B(e), c?.(e, n));
|
|
741
750
|
}).catch((e) => {
|
|
742
|
-
n.signal?.aborted ||
|
|
751
|
+
n.signal?.aborted || G.current !== t || (B([]), U({
|
|
743
752
|
error: e,
|
|
744
753
|
query: n.query
|
|
745
754
|
}), u?.(e, n));
|
|
746
755
|
}).finally(() => {
|
|
747
|
-
!n.signal?.aborted &&
|
|
756
|
+
!n.signal?.aborted && G.current === t && V(!1);
|
|
748
757
|
});
|
|
749
758
|
}, _);
|
|
750
759
|
P(() => {
|
|
751
760
|
if (C) return;
|
|
752
|
-
if (!(
|
|
761
|
+
if (!(K.length > 0 ? K.length >= y : v)) {
|
|
753
762
|
B([]), V(!1), U(null);
|
|
754
763
|
return;
|
|
755
764
|
}
|
|
756
|
-
let e =
|
|
757
|
-
|
|
765
|
+
let e = G.current + 1;
|
|
766
|
+
G.current = e;
|
|
758
767
|
let t = new AbortController();
|
|
759
768
|
return J(e, {
|
|
760
|
-
query:
|
|
769
|
+
query: K,
|
|
761
770
|
limit: g,
|
|
762
771
|
signal: t.signal
|
|
763
772
|
}), () => {
|
|
@@ -768,15 +777,15 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
|
|
|
768
777
|
g,
|
|
769
778
|
y,
|
|
770
779
|
v,
|
|
771
|
-
|
|
780
|
+
re,
|
|
772
781
|
J,
|
|
773
|
-
|
|
782
|
+
K
|
|
774
783
|
]);
|
|
775
784
|
let Y = N(() => {
|
|
776
|
-
H && (
|
|
777
|
-
}, [H]),
|
|
785
|
+
H && (M(H.query), W((e) => e + 1));
|
|
786
|
+
}, [H]), X = N((e) => {
|
|
778
787
|
if (h) return h(e, {
|
|
779
|
-
query:
|
|
788
|
+
query: K,
|
|
780
789
|
isSelected: A ? d(A) === d(e) : !1
|
|
781
790
|
});
|
|
782
791
|
let t = p?.(e), n = m?.(e);
|
|
@@ -786,7 +795,8 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
|
|
|
786
795
|
gap: "md",
|
|
787
796
|
wrap: !1,
|
|
788
797
|
className: "async-resource-combobox--option leading-tight",
|
|
789
|
-
children: [/* @__PURE__ */ R(
|
|
798
|
+
children: [/* @__PURE__ */ R(a, {
|
|
799
|
+
type: "inherit",
|
|
790
800
|
tag: "span",
|
|
791
801
|
size: w === "sm" ? "pxs" : void 0,
|
|
792
802
|
weight: "medium",
|
|
@@ -794,17 +804,17 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
|
|
|
794
804
|
children: f(e)
|
|
795
805
|
}), (!!t || !!n) && /* @__PURE__ */ z("span", {
|
|
796
806
|
className: "inline-flex min-w-0 flex-1 items-center gap-space-sm overflow-hidden text-muted-foreground",
|
|
797
|
-
children: [!!t && (
|
|
807
|
+
children: [!!t && (Se(t) ? /* @__PURE__ */ R(a, {
|
|
798
808
|
tag: "span",
|
|
799
809
|
size: "xs",
|
|
800
810
|
type: "secondary",
|
|
801
811
|
className: "min-w-0 truncate",
|
|
802
812
|
children: t
|
|
803
|
-
}) : t), !!n && (
|
|
813
|
+
}) : t), !!n && (Se(n) ? /* @__PURE__ */ R(a, {
|
|
804
814
|
tag: "span",
|
|
805
815
|
size: "xs",
|
|
806
816
|
type: "secondary",
|
|
807
|
-
className: "min-w-0 truncate
|
|
817
|
+
className: "min-w-0 truncate",
|
|
808
818
|
children: n
|
|
809
819
|
}) : n)]
|
|
810
820
|
})]
|
|
@@ -817,20 +827,20 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
|
|
|
817
827
|
h,
|
|
818
828
|
A,
|
|
819
829
|
w,
|
|
820
|
-
|
|
821
|
-
]),
|
|
830
|
+
K
|
|
831
|
+
]), ie = F(() => {
|
|
822
832
|
if (H) return b ?? E.error;
|
|
823
833
|
}, [
|
|
824
834
|
b,
|
|
825
835
|
H,
|
|
826
836
|
E.error
|
|
827
|
-
]),
|
|
837
|
+
]), ae = H !== null, oe = H ? x?.({
|
|
828
838
|
error: H.error,
|
|
829
839
|
query: H.query,
|
|
830
840
|
retry: Y
|
|
831
841
|
}) ?? /* @__PURE__ */ R(l, {
|
|
832
842
|
variant: "inline",
|
|
833
|
-
title:
|
|
843
|
+
title: ie,
|
|
834
844
|
onRetry: Y,
|
|
835
845
|
retryLabel: E.retry,
|
|
836
846
|
className: "async-resource-combobox--error mt-space-sm"
|
|
@@ -846,22 +856,22 @@ function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, on
|
|
|
846
856
|
size: w,
|
|
847
857
|
items: te,
|
|
848
858
|
selectedValue: A ?? null,
|
|
849
|
-
onSelectedValueChange:
|
|
859
|
+
onSelectedValueChange: q,
|
|
850
860
|
clearSearchOnClose: !1,
|
|
851
|
-
searchValue:
|
|
852
|
-
onSearchValueChange:
|
|
861
|
+
searchValue: ee,
|
|
862
|
+
onSearchValueChange: M,
|
|
853
863
|
getItemLabel: f,
|
|
854
864
|
getItemKey: d,
|
|
855
|
-
loading: !
|
|
856
|
-
showListContent: !
|
|
865
|
+
loading: !ae && ne,
|
|
866
|
+
showListContent: !ae,
|
|
857
867
|
minSearchLength: y,
|
|
858
868
|
strings: E,
|
|
859
|
-
renderItem:
|
|
860
|
-
}),
|
|
869
|
+
renderItem: X
|
|
870
|
+
}), oe]
|
|
861
871
|
});
|
|
862
872
|
}
|
|
863
|
-
|
|
873
|
+
Ce.displayName = "AsyncResourceCombobox";
|
|
864
874
|
//#endregion
|
|
865
|
-
export {
|
|
875
|
+
export { ge as a, be as i, xe as n, W as o, Z as r, Ce as t };
|
|
866
876
|
|
|
867
|
-
//# sourceMappingURL=combobox-
|
|
877
|
+
//# sourceMappingURL=combobox-Dxo2fAYQ.js.map
|