themelia-react-ui 2.0.0 → 2.0.1
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 +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.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 +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- 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 +7 -7
- 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 +17 -17
- 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 +3 -0
- package/dist/base/navigation.js +7 -7
- 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 -170
- 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 +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- 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 +1945 -1266
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +15 -12
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +918 -825
- 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 +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +9 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/page-B5dTH9gE.js +224 -0
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { s as e, v as t } from "./ui-provider-1D_NSYzO.js";
|
|
3
3
|
import { useStrings as n } from "./lib/strings.js";
|
|
4
|
-
import { t as r } from "./utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as s } from "./structure-
|
|
8
|
-
import { t as c } from "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as k } from "./
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
4
|
+
import { t as r } from "./utils-l5LpDw2z.js";
|
|
5
|
+
import { n as i } from "./buttons-SbIcm1HJ.js";
|
|
6
|
+
import { a, s as o } from "./typography-DTRkE9zL.js";
|
|
7
|
+
import { t as s } from "./structure-DC2dygdA.js";
|
|
8
|
+
import { t as c } from "./tone-recipes-CPoExcTE.js";
|
|
9
|
+
import { t as l } from "./feedback-qNuMBtRH.js";
|
|
10
|
+
import { t as u } from "./layer-recipes-CCpklYME.js";
|
|
11
|
+
import { n as d, r as f } from "./field-affordance-recipes-qQeIf4lG.js";
|
|
12
|
+
import { S as p, b as m, d as h, g, h as _, l as v, m as y, n as b, o as x, p as S, r as C, u as w, x as T, y as E } from "./combobox-2Ic8N9bL.js";
|
|
13
|
+
import { c as D, l as O } from "./form-sizing-By94KzXE.js";
|
|
14
|
+
import { t as k } from "./input-DWhBBBww.js";
|
|
15
|
+
import { t as A } from "./scroll-area-Bt_vXY2b.js";
|
|
16
|
+
import { t as j } from "./use-debounced-callback-Cx1h-hdv.js";
|
|
17
|
+
import * as M from "react";
|
|
18
|
+
import { useCallback as N, useEffect as P, useMemo as F, useRef as I, useState as L } from "react";
|
|
19
|
+
import { Fragment as ee, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
20
|
+
import { ChevronDownIcon as te, Loader2 as B, PlusIcon as ne, XIcon as V } from "lucide-react";
|
|
19
21
|
import { Combobox as H } from "@base-ui/react/combobox";
|
|
20
22
|
//#region src/components/features/combobox/combobox.strings.ts
|
|
21
23
|
var U = {
|
|
@@ -38,13 +40,13 @@ function K(e) {
|
|
|
38
40
|
if (!G(e)) throw Error("Item is not a create option");
|
|
39
41
|
return e[W];
|
|
40
42
|
}
|
|
41
|
-
function
|
|
43
|
+
function q(e) {
|
|
42
44
|
return { [W]: e };
|
|
43
45
|
}
|
|
44
46
|
//#endregion
|
|
45
47
|
//#region src/components/features/combobox/components/loading-more.tsx
|
|
46
|
-
function
|
|
47
|
-
return e ? /* @__PURE__ */
|
|
48
|
+
function re({ loading: e, text: t, className: n }) {
|
|
49
|
+
return e ? /* @__PURE__ */ z(s, {
|
|
48
50
|
direction: "horizontal",
|
|
49
51
|
gap: "sm",
|
|
50
52
|
justify: "center",
|
|
@@ -52,10 +54,10 @@ function q({ loading: e, text: t, className: n }) {
|
|
|
52
54
|
className: r("loading-more--component", "px-control py-space-xs text-xs text-muted-foreground", n),
|
|
53
55
|
role: "status",
|
|
54
56
|
"aria-live": "polite",
|
|
55
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ R(B, {
|
|
56
58
|
className: "size-icon-sm animate-spin",
|
|
57
59
|
"aria-hidden": "true"
|
|
58
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ R(o, {
|
|
59
61
|
tag: "span",
|
|
60
62
|
size: "xs",
|
|
61
63
|
type: "secondary",
|
|
@@ -64,11 +66,11 @@ function q({ loading: e, text: t, className: n }) {
|
|
|
64
66
|
})]
|
|
65
67
|
}) : null;
|
|
66
68
|
}
|
|
67
|
-
|
|
69
|
+
re.displayName = "LoadingMore";
|
|
68
70
|
//#endregion
|
|
69
71
|
//#region src/components/features/combobox/components/status-content.tsx
|
|
70
72
|
function J({ children: e }) {
|
|
71
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ R(o, {
|
|
72
74
|
tag: "span",
|
|
73
75
|
size: "inherit",
|
|
74
76
|
type: "secondary",
|
|
@@ -78,49 +80,49 @@ function J({ children: e }) {
|
|
|
78
80
|
}
|
|
79
81
|
function Y({ loading: e, searchValue: t, minSearchLength: n, itemCount: r, strings: i }) {
|
|
80
82
|
let a = t.trim();
|
|
81
|
-
if (e) return /* @__PURE__ */
|
|
82
|
-
if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */
|
|
83
|
+
if (e) return /* @__PURE__ */ z(ee, { children: [/* @__PURE__ */ R(B, { className: "size-icon-sm animate-spin" }), /* @__PURE__ */ R(J, { children: i.searching })] });
|
|
84
|
+
if (a === "") return i.typeToSearch.includes("{min}") ? /* @__PURE__ */ R(J, { children: i.typeToSearch.replace("{min}", String(n)) }) : /* @__PURE__ */ R(J, { children: i.typeToSearch });
|
|
83
85
|
if (a.length < n) {
|
|
84
86
|
let e = n - a.length;
|
|
85
|
-
return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */
|
|
87
|
+
return i.typeMore.includes("{remaining}") || i.typeMore.includes("{s}") ? /* @__PURE__ */ R(J, { children: i.typeMore.replace("{remaining}", String(e)).replace("{s}", e === 1 ? "" : "s") }) : /* @__PURE__ */ R(J, { children: i.typeMore });
|
|
86
88
|
}
|
|
87
89
|
return null;
|
|
88
90
|
}
|
|
89
91
|
Y.displayName = "StatusContent";
|
|
90
92
|
//#endregion
|
|
91
93
|
//#region src/components/features/combobox/components/combobox-dropdown.tsx
|
|
92
|
-
var
|
|
94
|
+
var ie = {
|
|
93
95
|
sm: "sm",
|
|
94
96
|
md: "md",
|
|
95
97
|
lg: "lg"
|
|
96
|
-
},
|
|
98
|
+
}, ae = {
|
|
97
99
|
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",
|
|
98
100
|
md: "flex min-h-control items-center justify-center px-row-x py-row-y text-center text-sm leading-tight text-muted-foreground",
|
|
99
101
|
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"
|
|
100
102
|
};
|
|
101
|
-
function
|
|
102
|
-
let
|
|
103
|
-
if (!(t || n ||
|
|
104
|
-
let
|
|
105
|
-
anchor:
|
|
106
|
-
className:
|
|
107
|
-
children: /* @__PURE__ */
|
|
103
|
+
function oe({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearchLength: l, items: d, groupedItems: f, createOptionItem: h, renderItemContent: v, getItemReactKey: x, getItemDisabled: w, renderGroupLabel: D, loadingMore: O, strings: k, size: j = "md", portalContainer: M, listRef: N, anchor: P, applyFooter: F }) {
|
|
104
|
+
let I = M == null ? void 0 : u.nestedOverlay, L = ie[j];
|
|
105
|
+
if (!(t || n || d.length > 0 || O || F)) return null;
|
|
106
|
+
let te = /* @__PURE__ */ R(T, {
|
|
107
|
+
anchor: P,
|
|
108
|
+
className: I,
|
|
109
|
+
children: /* @__PURE__ */ z(C, {
|
|
108
110
|
"aria-busy": e || void 0,
|
|
109
111
|
className: r("combobox-dropdown--popup"),
|
|
110
112
|
children: [
|
|
111
|
-
!!t && /* @__PURE__ */
|
|
113
|
+
!!t && /* @__PURE__ */ R(p, {
|
|
112
114
|
className: "gap-space-sm px-control py-space-xs text-xs text-muted-foreground",
|
|
113
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ R(Y, {
|
|
114
116
|
loading: e,
|
|
115
117
|
searchValue: c,
|
|
116
118
|
minSearchLength: l,
|
|
117
|
-
itemCount:
|
|
119
|
+
itemCount: d.length,
|
|
118
120
|
strings: k
|
|
119
121
|
})
|
|
120
122
|
}),
|
|
121
|
-
!!n && /* @__PURE__ */
|
|
122
|
-
className:
|
|
123
|
-
children: /* @__PURE__ */
|
|
123
|
+
!!n && /* @__PURE__ */ R(y, {
|
|
124
|
+
className: ae[j],
|
|
125
|
+
children: /* @__PURE__ */ R(o, {
|
|
124
126
|
tag: "span",
|
|
125
127
|
size: "inherit",
|
|
126
128
|
type: "secondary",
|
|
@@ -128,75 +130,75 @@ function ne({ loading: e, showStatus: t, showEmpty: n, searchValue: c, minSearch
|
|
|
128
130
|
children: k.noResults
|
|
129
131
|
})
|
|
130
132
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
viewportRef:
|
|
133
|
+
/* @__PURE__ */ R(A, {
|
|
134
|
+
viewportRef: N,
|
|
133
135
|
className: "max-h-[min(20rem,var(--available-height))]",
|
|
134
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ R(E, {
|
|
135
137
|
className: "combobox-dropdown--list max-h-none overflow-visible",
|
|
136
|
-
children:
|
|
137
|
-
let n = typeof
|
|
138
|
-
return /* @__PURE__ */
|
|
138
|
+
children: f ? /* @__PURE__ */ z(ee, { children: [Array.from(f.entries()).map(([e, t]) => {
|
|
139
|
+
let n = typeof D == "function" ? D(e) : e;
|
|
140
|
+
return /* @__PURE__ */ z(_, {
|
|
139
141
|
className: "combobox-dropdown--group p-0",
|
|
140
142
|
items: t,
|
|
141
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ R(g, { children: typeof n == "string" || typeof n == "number" || typeof n == "bigint" ? /* @__PURE__ */ R(a, { children: n }) : n }), /* @__PURE__ */ R(S, { children: (e) => /* @__PURE__ */ R(b, {
|
|
142
144
|
value: e,
|
|
143
|
-
size:
|
|
144
|
-
disabled:
|
|
145
|
-
children:
|
|
146
|
-
},
|
|
145
|
+
size: L,
|
|
146
|
+
disabled: w?.(e),
|
|
147
|
+
children: v(e)
|
|
148
|
+
}, x(e)) })]
|
|
147
149
|
}, e);
|
|
148
|
-
}),
|
|
149
|
-
value:
|
|
150
|
-
size:
|
|
151
|
-
children:
|
|
152
|
-
},
|
|
150
|
+
}), h != null && /* @__PURE__ */ R(b, {
|
|
151
|
+
value: h,
|
|
152
|
+
size: L,
|
|
153
|
+
children: v(h)
|
|
154
|
+
}, x(h))] }) : /* @__PURE__ */ R(S, { children: (e) => /* @__PURE__ */ R(b, {
|
|
153
155
|
value: e,
|
|
154
|
-
size:
|
|
155
|
-
disabled:
|
|
156
|
-
children:
|
|
157
|
-
},
|
|
156
|
+
size: L,
|
|
157
|
+
disabled: w?.(e),
|
|
158
|
+
children: v(e)
|
|
159
|
+
}, x(e)) })
|
|
158
160
|
})
|
|
159
161
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
loading: !!
|
|
162
|
+
/* @__PURE__ */ R(re, {
|
|
163
|
+
loading: !!O,
|
|
162
164
|
text: k.loadingMore
|
|
163
165
|
}),
|
|
164
|
-
!!
|
|
166
|
+
!!F && /* @__PURE__ */ z(s, {
|
|
165
167
|
direction: "horizontal",
|
|
166
168
|
gap: "md",
|
|
167
169
|
justify: "end",
|
|
168
170
|
wrap: !1,
|
|
169
171
|
className: "border-t border-border/60 px-control py-space-xs",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ R(i, {
|
|
171
173
|
type: "button",
|
|
172
174
|
tone: "secondary",
|
|
173
175
|
buttonStyle: "ghost",
|
|
174
176
|
onClick: (e) => {
|
|
175
|
-
e.preventDefault(), e.stopPropagation(),
|
|
177
|
+
e.preventDefault(), e.stopPropagation(), F.onCancel();
|
|
176
178
|
},
|
|
177
|
-
children:
|
|
178
|
-
}), /* @__PURE__ */
|
|
179
|
+
children: F.cancelLabel
|
|
180
|
+
}), /* @__PURE__ */ R(i, {
|
|
179
181
|
type: "button",
|
|
180
182
|
tone: "primary",
|
|
181
183
|
onClick: (e) => {
|
|
182
|
-
e.preventDefault(), e.stopPropagation(),
|
|
184
|
+
e.preventDefault(), e.stopPropagation(), F.onApply();
|
|
183
185
|
},
|
|
184
|
-
children:
|
|
186
|
+
children: F.applyLabel
|
|
185
187
|
})]
|
|
186
188
|
})
|
|
187
189
|
]
|
|
188
190
|
})
|
|
189
191
|
});
|
|
190
|
-
return
|
|
191
|
-
container:
|
|
192
|
-
children:
|
|
193
|
-
}) : /* @__PURE__ */
|
|
192
|
+
return M ? /* @__PURE__ */ R(m, {
|
|
193
|
+
container: M,
|
|
194
|
+
children: te
|
|
195
|
+
}) : /* @__PURE__ */ R(m, { children: te });
|
|
194
196
|
}
|
|
195
|
-
|
|
197
|
+
oe.displayName = "ComboboxDropdown";
|
|
196
198
|
//#endregion
|
|
197
199
|
//#region src/components/features/combobox/components/error-message.tsx
|
|
198
|
-
function
|
|
199
|
-
return e ? /* @__PURE__ */
|
|
200
|
+
function se({ error: e, size: t, className: n }) {
|
|
201
|
+
return e ? /* @__PURE__ */ R(o, {
|
|
200
202
|
tag: "p",
|
|
201
203
|
size: "xs",
|
|
202
204
|
type: "error",
|
|
@@ -206,43 +208,43 @@ function re({ error: e, size: t, className: n }) {
|
|
|
206
208
|
children: e
|
|
207
209
|
}) : null;
|
|
208
210
|
}
|
|
209
|
-
|
|
211
|
+
se.displayName = "ErrorMessage";
|
|
210
212
|
//#endregion
|
|
211
213
|
//#region src/components/features/combobox/components/highlighted-text.tsx
|
|
212
|
-
function
|
|
214
|
+
function ce(e) {
|
|
213
215
|
return e.replace(/[$()*+.?[\\\]^{|}]/g, "\\$&");
|
|
214
216
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!t.trim()) return /* @__PURE__ */
|
|
217
|
+
function X({ text: e, highlight: t, highlightClassName: n = c.match }) {
|
|
218
|
+
if (!t.trim()) return /* @__PURE__ */ R(o, {
|
|
217
219
|
tag: "span",
|
|
218
220
|
size: "inherit",
|
|
219
221
|
lineHeight: "tight",
|
|
220
222
|
className: "text-inherit",
|
|
221
223
|
children: e
|
|
222
224
|
});
|
|
223
|
-
let r = RegExp(`(${
|
|
224
|
-
return /* @__PURE__ */
|
|
225
|
+
let r = RegExp(`(${ce(t)})`, "gi"), i = e.split(r), a = 0;
|
|
226
|
+
return /* @__PURE__ */ R(o, {
|
|
225
227
|
tag: "span",
|
|
226
228
|
size: "inherit",
|
|
227
229
|
lineHeight: "tight",
|
|
228
230
|
className: "text-inherit",
|
|
229
231
|
children: i.map((e, t) => {
|
|
230
|
-
let r = t % 2 == 1, i = String(
|
|
231
|
-
return
|
|
232
|
+
let r = t % 2 == 1, i = String(a);
|
|
233
|
+
return a += e.length, r ? /* @__PURE__ */ R("mark", {
|
|
232
234
|
className: n,
|
|
233
235
|
children: e
|
|
234
|
-
}, i) : /* @__PURE__ */
|
|
236
|
+
}, i) : /* @__PURE__ */ R(M.Fragment, { children: e }, i);
|
|
235
237
|
})
|
|
236
238
|
});
|
|
237
239
|
}
|
|
238
|
-
|
|
240
|
+
X.displayName = "HighlightedText";
|
|
239
241
|
//#endregion
|
|
240
242
|
//#region src/components/features/combobox/hooks/use-debounced-search.ts
|
|
241
|
-
function
|
|
242
|
-
let i =
|
|
243
|
+
function le({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength: r = 3 }) {
|
|
244
|
+
let i = j((e) => {
|
|
243
245
|
t?.(e);
|
|
244
246
|
}, n);
|
|
245
|
-
|
|
247
|
+
P(() => {
|
|
246
248
|
let t = e.trim();
|
|
247
249
|
if (!(t.length < r)) return i(t), i.cancel;
|
|
248
250
|
}, [
|
|
@@ -253,8 +255,8 @@ function oe({ searchValue: e, onSearch: t, debounceMs: n = 300, minSearchLength:
|
|
|
253
255
|
}
|
|
254
256
|
//#endregion
|
|
255
257
|
//#region src/components/features/combobox/hooks/use-grouped-items.ts
|
|
256
|
-
function
|
|
257
|
-
return
|
|
258
|
+
function ue({ items: e, getItemGroup: t }) {
|
|
259
|
+
return F(() => {
|
|
258
260
|
if (!t) return null;
|
|
259
261
|
let n = /* @__PURE__ */ new Map();
|
|
260
262
|
for (let r of e) {
|
|
@@ -266,15 +268,15 @@ function se({ items: e, getItemGroup: t }) {
|
|
|
266
268
|
}
|
|
267
269
|
//#endregion
|
|
268
270
|
//#region src/components/features/combobox/hooks/use-load-more.ts
|
|
269
|
-
function
|
|
270
|
-
let r =
|
|
271
|
+
function de({ hasMore: e, onLoadMore: t, loadingMore: n }) {
|
|
272
|
+
let r = I(!1), i = I(null), a = j(() => {
|
|
271
273
|
r.current = !0, t?.(), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
272
274
|
r.current = !1, i.current = null;
|
|
273
275
|
}, 500);
|
|
274
276
|
}, 100);
|
|
275
|
-
return
|
|
277
|
+
return P(() => () => {
|
|
276
278
|
i.current && clearTimeout(i.current);
|
|
277
|
-
}, []), { handleScroll:
|
|
279
|
+
}, []), { handleScroll: N((i) => {
|
|
278
280
|
if (!e || !t || n || r.current) return;
|
|
279
281
|
let { scrollHeight: o, scrollTop: s, clientHeight: c } = i.target;
|
|
280
282
|
(s + c) / o >= .8 && a();
|
|
@@ -287,27 +289,27 @@ function ce({ hasMore: e, onLoadMore: t, loadingMore: n }) {
|
|
|
287
289
|
}
|
|
288
290
|
//#endregion
|
|
289
291
|
//#region src/components/features/combobox/hooks/use-combobox-core.tsx
|
|
290
|
-
function
|
|
292
|
+
function fe(e) {
|
|
291
293
|
return n(U, e);
|
|
292
294
|
}
|
|
293
|
-
function
|
|
295
|
+
function pe(e, t, n) {
|
|
294
296
|
let r = t.toLowerCase();
|
|
295
297
|
return e.some((e) => n(e).toLowerCase() === r);
|
|
296
298
|
}
|
|
297
|
-
function
|
|
298
|
-
let x =
|
|
299
|
-
|
|
299
|
+
function me({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading: a = !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 = [] }) {
|
|
300
|
+
let x = fe(l), S = i ?? n, C = I(null), w = t.trim(), T = s && (a || w.length < c);
|
|
301
|
+
le({
|
|
300
302
|
searchValue: t,
|
|
301
303
|
onSearch: d,
|
|
302
304
|
debounceMs: f,
|
|
303
305
|
minSearchLength: c
|
|
304
306
|
});
|
|
305
|
-
let { handleScroll: E } =
|
|
307
|
+
let { handleScroll: E } = de({
|
|
306
308
|
hasMore: s && !T ? g : !1,
|
|
307
309
|
onLoadMore: _,
|
|
308
310
|
loadingMore: v
|
|
309
311
|
});
|
|
310
|
-
|
|
312
|
+
P(() => {
|
|
311
313
|
let e = C.current;
|
|
312
314
|
if (s && !T && e && g && _) return e.addEventListener("scroll", E), () => e.removeEventListener("scroll", E);
|
|
313
315
|
}, [
|
|
@@ -317,7 +319,7 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
317
319
|
s,
|
|
318
320
|
T
|
|
319
321
|
]);
|
|
320
|
-
let D =
|
|
322
|
+
let D = F(() => {
|
|
321
323
|
if (!s || T) return [];
|
|
322
324
|
if (b.length === 0) return e;
|
|
323
325
|
let t = [...b];
|
|
@@ -331,10 +333,10 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
331
333
|
S,
|
|
332
334
|
s,
|
|
333
335
|
T
|
|
334
|
-
]), O =
|
|
336
|
+
]), O = ue({
|
|
335
337
|
items: D,
|
|
336
338
|
getItemGroup: h
|
|
337
|
-
}), k =
|
|
339
|
+
}), k = F(() => !s || T || !p || !m || w.length < c ? !1 : !pe(D, w, n), [
|
|
338
340
|
p,
|
|
339
341
|
m,
|
|
340
342
|
w,
|
|
@@ -343,41 +345,41 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
343
345
|
n,
|
|
344
346
|
s,
|
|
345
347
|
T
|
|
346
|
-
]), A =
|
|
348
|
+
]), A = F(() => k ? q(w) : null, [k, w]);
|
|
347
349
|
return {
|
|
348
350
|
strings: x,
|
|
349
351
|
getKey: S,
|
|
350
352
|
trimmedSearch: w,
|
|
351
353
|
listRef: C,
|
|
352
354
|
baseItems: D,
|
|
353
|
-
allItems:
|
|
355
|
+
allItems: F(() => A ? [...D, A] : D, [D, A]),
|
|
354
356
|
groupedItems: O,
|
|
355
357
|
createOptionItem: A,
|
|
356
358
|
showStatus: T,
|
|
357
|
-
showEmpty: s && !
|
|
359
|
+
showEmpty: s && !a && w.length >= c && e.length === 0 && !k,
|
|
358
360
|
showCreateOption: k,
|
|
359
|
-
renderItemContent:
|
|
361
|
+
renderItemContent: N((e) => {
|
|
360
362
|
if (G(e)) {
|
|
361
363
|
let t = K(e);
|
|
362
|
-
return /* @__PURE__ */
|
|
364
|
+
return /* @__PURE__ */ z("span", {
|
|
363
365
|
className: r("combobox-core--component", "flex items-center gap-space-sm"),
|
|
364
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ R(ne, { className: "size-icon-sm" }), x.createNew.includes("{value}") ? /* @__PURE__ */ R(o, {
|
|
365
367
|
tag: "span",
|
|
366
368
|
size: "inherit",
|
|
367
369
|
weight: "medium",
|
|
368
370
|
lineHeight: "tight",
|
|
369
371
|
className: "text-inherit",
|
|
370
372
|
children: x.createNew.replace("{value}", t)
|
|
371
|
-
}) : /* @__PURE__ */
|
|
373
|
+
}) : /* @__PURE__ */ z("span", {
|
|
372
374
|
className: "inline-flex items-center gap-space-sm",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
375
|
+
children: [/* @__PURE__ */ R(o, {
|
|
374
376
|
tag: "span",
|
|
375
377
|
size: "inherit",
|
|
376
378
|
weight: "medium",
|
|
377
379
|
lineHeight: "tight",
|
|
378
380
|
className: "text-inherit",
|
|
379
381
|
children: x.createNew
|
|
380
|
-
}), /* @__PURE__ */
|
|
382
|
+
}), /* @__PURE__ */ R(o, {
|
|
381
383
|
tag: "span",
|
|
382
384
|
size: "inherit",
|
|
383
385
|
weight: "medium",
|
|
@@ -390,10 +392,10 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
390
392
|
}
|
|
391
393
|
if (u) return u(e);
|
|
392
394
|
let t = n(e);
|
|
393
|
-
return y && w ? /* @__PURE__ */
|
|
395
|
+
return y && w ? /* @__PURE__ */ R(X, {
|
|
394
396
|
text: t,
|
|
395
397
|
highlight: w
|
|
396
|
-
}) : /* @__PURE__ */
|
|
398
|
+
}) : /* @__PURE__ */ R(o, {
|
|
397
399
|
tag: "span",
|
|
398
400
|
size: "inherit",
|
|
399
401
|
weight: "medium",
|
|
@@ -408,71 +410,71 @@ function de({ items: e, searchValue: t, getItemLabel: n, getItemKey: i, loading:
|
|
|
408
410
|
y,
|
|
409
411
|
w
|
|
410
412
|
]),
|
|
411
|
-
itemToStringLabel:
|
|
412
|
-
getItemReactKey:
|
|
413
|
+
itemToStringLabel: N((e) => G(e) ? K(e) : n(e), [n]),
|
|
414
|
+
getItemReactKey: N((e) => G(e) ? `__create__:${K(e)}` : String(S(e)), [S]),
|
|
413
415
|
handleScroll: E
|
|
414
416
|
};
|
|
415
417
|
}
|
|
416
418
|
//#endregion
|
|
417
419
|
//#region src/components/features/combobox/combobox.tsx
|
|
418
|
-
function
|
|
419
|
-
return e
|
|
420
|
+
function he(e, n) {
|
|
421
|
+
return t(e, n, "md");
|
|
420
422
|
}
|
|
421
|
-
var
|
|
423
|
+
var ge = {
|
|
422
424
|
sm: "sm",
|
|
423
425
|
md: "md",
|
|
424
426
|
lg: "lg"
|
|
425
427
|
};
|
|
426
|
-
function
|
|
428
|
+
function _e(e) {
|
|
427
429
|
return e;
|
|
428
430
|
}
|
|
429
|
-
function
|
|
430
|
-
return /* @__PURE__ */
|
|
431
|
+
function ve({ placeholder: e, clearLabel: t, toggleLabel: n, size: a, error: o, required: s, disabled: c, clearable: l = !0, className: u, onBlur: p }) {
|
|
432
|
+
return /* @__PURE__ */ z("div", {
|
|
431
433
|
className: "relative",
|
|
432
|
-
children: [/* @__PURE__ */
|
|
433
|
-
render: /* @__PURE__ */
|
|
434
|
-
size:
|
|
435
|
-
invalid:
|
|
436
|
-
className: r(
|
|
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)
|
|
437
439
|
}),
|
|
438
440
|
placeholder: e,
|
|
439
|
-
"aria-invalid":
|
|
441
|
+
"aria-invalid": o || void 0,
|
|
440
442
|
"aria-required": s,
|
|
441
443
|
disabled: c,
|
|
442
444
|
onBlur: p
|
|
443
|
-
}), /* @__PURE__ */
|
|
444
|
-
className: r("absolute inset-y-0 flex items-center gap-space-xs text-muted-foreground",
|
|
445
|
-
children: [
|
|
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, {
|
|
446
448
|
type: "button",
|
|
447
449
|
tone: "secondary",
|
|
448
450
|
buttonStyle: "ghost",
|
|
449
451
|
size: "sm",
|
|
450
452
|
iconOnly: !0,
|
|
451
|
-
className: r(
|
|
453
|
+
className: r(d.target, d.focus, d.clear),
|
|
452
454
|
"aria-label": t,
|
|
453
|
-
children: /* @__PURE__ */
|
|
454
|
-
className:
|
|
455
|
+
children: /* @__PURE__ */ R(V, {
|
|
456
|
+
className: d.icon,
|
|
455
457
|
"aria-hidden": "true"
|
|
456
458
|
})
|
|
457
|
-
}) }) : null, /* @__PURE__ */
|
|
459
|
+
}) }) : null, /* @__PURE__ */ R(H.Trigger, { render: /* @__PURE__ */ R(i, {
|
|
458
460
|
type: "button",
|
|
459
461
|
tone: "secondary",
|
|
460
462
|
buttonStyle: "ghost",
|
|
461
463
|
size: "sm",
|
|
462
464
|
iconOnly: !0,
|
|
463
|
-
className: r(
|
|
465
|
+
className: r(d.target, d.focus, d.toggle),
|
|
464
466
|
"aria-label": n,
|
|
465
|
-
children: /* @__PURE__ */
|
|
466
|
-
className: r("shrink-0",
|
|
467
|
+
children: /* @__PURE__ */ R(te, {
|
|
468
|
+
className: r("shrink-0", f.icon[a]),
|
|
467
469
|
"aria-hidden": "true"
|
|
468
470
|
})
|
|
469
471
|
}) })]
|
|
470
472
|
})]
|
|
471
473
|
});
|
|
472
474
|
}
|
|
473
|
-
function
|
|
474
|
-
let { defaultScale:
|
|
475
|
-
items:
|
|
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({
|
|
477
|
+
items: t,
|
|
476
478
|
searchValue: a,
|
|
477
479
|
onSearchValueChange: o,
|
|
478
480
|
getItemLabel: c,
|
|
@@ -487,19 +489,19 @@ function ge({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchO
|
|
|
487
489
|
creatable: D,
|
|
488
490
|
onCreate: O,
|
|
489
491
|
getItemGroup: k,
|
|
490
|
-
hasMore:
|
|
491
|
-
onLoadMore:
|
|
492
|
+
hasMore: j,
|
|
493
|
+
onLoadMore: M,
|
|
492
494
|
loadingMore: P,
|
|
493
|
-
highlightMatch:
|
|
494
|
-
size:
|
|
495
|
+
highlightMatch: I,
|
|
496
|
+
size: V,
|
|
495
497
|
ensuredItems: n ? [n] : []
|
|
496
|
-
}), [
|
|
497
|
-
|
|
498
|
+
}), [q, re] = L(!1), J = N((e) => {
|
|
499
|
+
re(e), !e && i && o(""), B?.(e);
|
|
498
500
|
}, [
|
|
499
501
|
i,
|
|
500
|
-
|
|
502
|
+
B,
|
|
501
503
|
o
|
|
502
|
-
]),
|
|
504
|
+
]), Y = q ? a : n ? W.itemToStringLabel(n) : "", ie = N((e) => {
|
|
503
505
|
if (e && G(e)) {
|
|
504
506
|
let t = K(e);
|
|
505
507
|
O?.(t);
|
|
@@ -507,11 +509,11 @@ function ge({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchO
|
|
|
507
509
|
}
|
|
508
510
|
r(e);
|
|
509
511
|
}, [r, O]);
|
|
510
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ z(s, {
|
|
511
513
|
gap: "dense",
|
|
512
514
|
className: "combobox--component",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
514
|
-
items:
|
|
515
|
+
children: [/* @__PURE__ */ z(x, {
|
|
516
|
+
items: W.allItems,
|
|
515
517
|
value: n,
|
|
516
518
|
onValueChange: (e, t) => {
|
|
517
519
|
if (t.reason === "escape-key") {
|
|
@@ -520,7 +522,7 @@ function ge({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchO
|
|
|
520
522
|
}
|
|
521
523
|
ie(e);
|
|
522
524
|
},
|
|
523
|
-
inputValue:
|
|
525
|
+
inputValue: Y,
|
|
524
526
|
onInputValueChange: (e, t) => {
|
|
525
527
|
let { reason: n } = t;
|
|
526
528
|
if (n === "escape-key") {
|
|
@@ -533,110 +535,110 @@ function ge({ items: e, selectedValue: n, onSelectedValueChange: r, clearSearchO
|
|
|
533
535
|
}
|
|
534
536
|
o(e);
|
|
535
537
|
},
|
|
536
|
-
itemToStringLabel:
|
|
538
|
+
itemToStringLabel: W.itemToStringLabel,
|
|
537
539
|
disabled: m,
|
|
538
540
|
filter: null,
|
|
539
|
-
name:
|
|
541
|
+
name: y,
|
|
540
542
|
required: C,
|
|
541
|
-
open:
|
|
542
|
-
onOpenChange:
|
|
543
|
-
children: [/* @__PURE__ */
|
|
544
|
-
placeholder:
|
|
545
|
-
clearLabel:
|
|
546
|
-
toggleLabel:
|
|
543
|
+
open: te,
|
|
544
|
+
onOpenChange: J,
|
|
545
|
+
children: [/* @__PURE__ */ R(ve, {
|
|
546
|
+
placeholder: W.strings.placeholder,
|
|
547
|
+
clearLabel: W.strings.clear,
|
|
548
|
+
toggleLabel: W.strings.toggle,
|
|
547
549
|
className: h,
|
|
548
|
-
size:
|
|
549
|
-
error:
|
|
550
|
+
size: H,
|
|
551
|
+
error: U,
|
|
550
552
|
required: C,
|
|
551
553
|
disabled: m,
|
|
552
554
|
clearable: g,
|
|
553
555
|
onBlur: w
|
|
554
|
-
}), /* @__PURE__ */
|
|
556
|
+
}), /* @__PURE__ */ R(oe, {
|
|
555
557
|
loading: u,
|
|
556
|
-
showStatus:
|
|
557
|
-
showEmpty:
|
|
558
|
+
showStatus: W.showStatus,
|
|
559
|
+
showEmpty: W.showEmpty,
|
|
558
560
|
searchValue: a,
|
|
559
561
|
minSearchLength: f,
|
|
560
|
-
items:
|
|
561
|
-
groupedItems:
|
|
562
|
-
createOptionItem:
|
|
563
|
-
renderItemContent:
|
|
564
|
-
getItemReactKey:
|
|
565
|
-
getItemDisabled:
|
|
562
|
+
items: W.allItems,
|
|
563
|
+
groupedItems: W.groupedItems,
|
|
564
|
+
createOptionItem: W.createOptionItem,
|
|
565
|
+
renderItemContent: W.renderItemContent,
|
|
566
|
+
getItemReactKey: W.getItemReactKey,
|
|
567
|
+
getItemDisabled: F,
|
|
566
568
|
renderGroupLabel: A,
|
|
567
|
-
loadingMore: d && !
|
|
568
|
-
strings:
|
|
569
|
-
size:
|
|
569
|
+
loadingMore: d && !W.showStatus ? P : !1,
|
|
570
|
+
strings: W.strings,
|
|
571
|
+
size: V,
|
|
570
572
|
portalContainer: v,
|
|
571
|
-
listRef:
|
|
573
|
+
listRef: W.listRef
|
|
572
574
|
})]
|
|
573
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ R(se, {
|
|
574
576
|
error: S,
|
|
575
|
-
size:
|
|
577
|
+
size: V
|
|
576
578
|
})]
|
|
577
579
|
});
|
|
578
580
|
}
|
|
579
|
-
function
|
|
580
|
-
let { defaultScale:
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}, [
|
|
584
|
-
let Q =
|
|
585
|
-
xe || be(e),
|
|
586
|
-
}, [xe,
|
|
587
|
-
items:
|
|
588
|
-
searchValue:
|
|
581
|
+
function ye({ items: t, selectedValues: n, onSelectedValuesChange: i, searchValue: a, onSearchValueChange: c, getItemLabel: l, getItemKey: u, loading: d = !1, showListContent: f = !0, minSearchLength: p = 3, strings: m, disabled: g = !1, className: _, renderItem: y, portalContainer: b, name: S, invalid: C, error: T, required: E, onBlur: k, onSearch: A, debounceMs: j, creatable: M, onCreate: F, getItemGroup: ee, renderGroupLabel: te, hasMore: B, onLoadMore: ne, loadingMore: V, getItemDisabled: H, highlightMatch: U, size: W, open: q, onOpenChange: re, closeOnSelect: J = !1, applyButton: Y = !1, onApply: ie, onCancel: ae }) {
|
|
582
|
+
let { defaultScale: ce } = e(), X = he(W, ce), le = _e(X), ue = ge[X], de = C || !!T, fe = I(null), pe = u ?? l, [ve, Z] = L(n), [ye, be] = L(!1), xe = q !== void 0, Se = xe ? q : ye;
|
|
583
|
+
P(() => {
|
|
584
|
+
Y && Z(n);
|
|
585
|
+
}, [Y, n]);
|
|
586
|
+
let Q = N((e) => {
|
|
587
|
+
xe || be(e), re?.(e);
|
|
588
|
+
}, [xe, re]), $ = me({
|
|
589
|
+
items: t,
|
|
590
|
+
searchValue: a,
|
|
589
591
|
onSearchValueChange: c,
|
|
590
592
|
getItemLabel: l,
|
|
591
593
|
getItemKey: u,
|
|
592
594
|
loading: d,
|
|
593
595
|
showListContent: f,
|
|
594
|
-
minSearchLength:
|
|
595
|
-
strings:
|
|
596
|
-
renderItem:
|
|
596
|
+
minSearchLength: p,
|
|
597
|
+
strings: m,
|
|
598
|
+
renderItem: y,
|
|
597
599
|
onSearch: A,
|
|
598
|
-
debounceMs:
|
|
599
|
-
creatable:
|
|
600
|
-
onCreate:
|
|
601
|
-
getItemGroup:
|
|
602
|
-
hasMore:
|
|
603
|
-
onLoadMore:
|
|
604
|
-
loadingMore:
|
|
605
|
-
highlightMatch:
|
|
606
|
-
size:
|
|
600
|
+
debounceMs: j,
|
|
601
|
+
creatable: M,
|
|
602
|
+
onCreate: F,
|
|
603
|
+
getItemGroup: ee,
|
|
604
|
+
hasMore: B,
|
|
605
|
+
onLoadMore: ne,
|
|
606
|
+
loadingMore: V,
|
|
607
|
+
highlightMatch: U,
|
|
608
|
+
size: X,
|
|
607
609
|
ensuredItems: n
|
|
608
|
-
}), Ce =
|
|
610
|
+
}), Ce = N((e) => {
|
|
609
611
|
let t = [], n = null;
|
|
610
612
|
for (let r of e) G(r) ? n = K(r) : t.push(r);
|
|
611
|
-
n &&
|
|
613
|
+
n && F?.(n);
|
|
612
614
|
let r = t.length !== e.length || !n ? t : null;
|
|
613
|
-
r && (
|
|
615
|
+
r && (Y ? Z(r) : i(r)), J && Q(!1);
|
|
614
616
|
}, [
|
|
615
617
|
i,
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
618
|
+
F,
|
|
619
|
+
Y,
|
|
620
|
+
J,
|
|
619
621
|
Q
|
|
620
|
-
]), we =
|
|
621
|
-
|
|
622
|
+
]), we = N(() => {
|
|
623
|
+
Y && i(ve), ie?.(), Q(!1);
|
|
622
624
|
}, [
|
|
623
|
-
|
|
624
|
-
|
|
625
|
+
Y,
|
|
626
|
+
ve,
|
|
625
627
|
ie,
|
|
626
628
|
i,
|
|
627
629
|
Q
|
|
628
|
-
]), Te =
|
|
629
|
-
|
|
630
|
+
]), Te = N(() => {
|
|
631
|
+
Y && Z(n), ae?.(), Q(!1);
|
|
630
632
|
}, [
|
|
631
|
-
|
|
633
|
+
Y,
|
|
632
634
|
n,
|
|
633
635
|
ae,
|
|
634
636
|
Q
|
|
635
|
-
]), Ee =
|
|
636
|
-
return /* @__PURE__ */
|
|
637
|
+
]), Ee = Y ? ve : n, De = Ee.length > 0 ? void 0 : $.strings.placeholder;
|
|
638
|
+
return /* @__PURE__ */ z(s, {
|
|
637
639
|
gap: "dense",
|
|
638
640
|
className: "combobox--component",
|
|
639
|
-
children: [/* @__PURE__ */
|
|
641
|
+
children: [/* @__PURE__ */ z(x, {
|
|
640
642
|
items: $.allItems,
|
|
641
643
|
multiple: !0,
|
|
642
644
|
value: Ee,
|
|
@@ -647,7 +649,7 @@ function _e({ items: e, selectedValues: n, onSelectedValuesChange: i, searchValu
|
|
|
647
649
|
}
|
|
648
650
|
Ce(e);
|
|
649
651
|
},
|
|
650
|
-
inputValue:
|
|
652
|
+
inputValue: a,
|
|
651
653
|
onInputValueChange: (e, t) => {
|
|
652
654
|
let { reason: n } = t;
|
|
653
655
|
if (n === "escape-key") {
|
|
@@ -661,144 +663,144 @@ function _e({ items: e, selectedValues: n, onSelectedValuesChange: i, searchValu
|
|
|
661
663
|
c(e);
|
|
662
664
|
},
|
|
663
665
|
itemToStringLabel: $.itemToStringLabel,
|
|
664
|
-
disabled:
|
|
666
|
+
disabled: g,
|
|
665
667
|
filter: null,
|
|
666
|
-
name:
|
|
667
|
-
required:
|
|
668
|
+
name: S,
|
|
669
|
+
required: E,
|
|
668
670
|
open: Se,
|
|
669
671
|
onOpenChange: (e) => {
|
|
670
|
-
!e &&
|
|
672
|
+
!e && Y && Z(n), Q(e);
|
|
671
673
|
},
|
|
672
|
-
children: [/* @__PURE__ */
|
|
673
|
-
ref:
|
|
674
|
-
className: r(
|
|
675
|
-
size:
|
|
676
|
-
error:
|
|
677
|
-
children: [Ee.map((e) => /* @__PURE__ */
|
|
674
|
+
children: [/* @__PURE__ */ z(w, {
|
|
675
|
+
ref: fe,
|
|
676
|
+
className: r(D[le], O[le], le === "sm" ? "text-pxs" : "text-sm", "bg-transparent !shadow-none", _),
|
|
677
|
+
size: ue,
|
|
678
|
+
error: de,
|
|
679
|
+
children: [Ee.map((e) => /* @__PURE__ */ R(v, { children: /* @__PURE__ */ R(o, {
|
|
678
680
|
tag: "span",
|
|
679
681
|
size: "inherit",
|
|
680
682
|
weight: "medium",
|
|
681
683
|
lineHeight: "tight",
|
|
682
684
|
className: "combobox--chip-label text-inherit",
|
|
683
685
|
children: l(e)
|
|
684
|
-
}) },
|
|
686
|
+
}) }, pe(e))), /* @__PURE__ */ R(h, {
|
|
685
687
|
placeholder: De,
|
|
686
|
-
"aria-invalid":
|
|
687
|
-
"aria-required":
|
|
688
|
+
"aria-invalid": de || void 0,
|
|
689
|
+
"aria-required": E,
|
|
688
690
|
onBlur: k
|
|
689
691
|
})]
|
|
690
|
-
}), /* @__PURE__ */
|
|
692
|
+
}), /* @__PURE__ */ R(oe, {
|
|
691
693
|
loading: d,
|
|
692
694
|
showStatus: $.showStatus,
|
|
693
695
|
showEmpty: $.showEmpty,
|
|
694
|
-
searchValue:
|
|
695
|
-
minSearchLength:
|
|
696
|
+
searchValue: a,
|
|
697
|
+
minSearchLength: p,
|
|
696
698
|
items: $.allItems,
|
|
697
699
|
groupedItems: $.groupedItems,
|
|
698
700
|
createOptionItem: $.createOptionItem,
|
|
699
701
|
renderItemContent: $.renderItemContent,
|
|
700
702
|
getItemReactKey: $.getItemReactKey,
|
|
701
|
-
getItemDisabled:
|
|
702
|
-
renderGroupLabel:
|
|
703
|
-
loadingMore: f && !$.showStatus ?
|
|
703
|
+
getItemDisabled: H,
|
|
704
|
+
renderGroupLabel: te,
|
|
705
|
+
loadingMore: f && !$.showStatus ? V : !1,
|
|
704
706
|
strings: $.strings,
|
|
705
|
-
size:
|
|
706
|
-
portalContainer:
|
|
707
|
+
size: X,
|
|
708
|
+
portalContainer: b,
|
|
707
709
|
listRef: $.listRef,
|
|
708
|
-
anchor:
|
|
709
|
-
applyFooter: f &&
|
|
710
|
+
anchor: fe,
|
|
711
|
+
applyFooter: f && Y ? {
|
|
710
712
|
applyLabel: $.strings.apply,
|
|
711
713
|
cancelLabel: $.strings.cancel,
|
|
712
714
|
onApply: we,
|
|
713
715
|
onCancel: Te
|
|
714
716
|
} : void 0
|
|
715
717
|
})]
|
|
716
|
-
}), /* @__PURE__ */
|
|
717
|
-
error:
|
|
718
|
-
size:
|
|
718
|
+
}), /* @__PURE__ */ R(se, {
|
|
719
|
+
error: T,
|
|
720
|
+
size: X
|
|
719
721
|
})]
|
|
720
722
|
});
|
|
721
723
|
}
|
|
722
|
-
|
|
724
|
+
Z.displayName = "Combobox", ye.displayName = "MultiCombobox";
|
|
723
725
|
//#endregion
|
|
724
726
|
//#region src/components/features/combobox/async-resource-combobox.tsx
|
|
725
|
-
var
|
|
727
|
+
var be = {
|
|
726
728
|
...U,
|
|
727
729
|
error: "Unable to load options.",
|
|
728
730
|
retry: "Retry"
|
|
729
731
|
};
|
|
730
|
-
function
|
|
732
|
+
function xe(e) {
|
|
731
733
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
732
734
|
}
|
|
733
|
-
function
|
|
734
|
-
let E = n(
|
|
735
|
-
D ||
|
|
736
|
-
}, [D,
|
|
737
|
-
|
|
738
|
-
n.signal?.aborted ||
|
|
735
|
+
function Se({ fetcher: e, value: t, defaultValue: i = null, onValueChange: a, 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 }) {
|
|
736
|
+
let E = n(be, S), D = t !== void 0, [O, k] = L(i), A = D ? t : O, [M, ee] = L(""), [te, B] = L([]), [ne, V] = L(!1), [H, U] = L(null), [W, G] = L(0), K = I(0), q = M.trim(), re = N((e) => {
|
|
737
|
+
D || k(e), a?.(e);
|
|
738
|
+
}, [D, a]), J = j((t, n) => {
|
|
739
|
+
V(!0), U(null), e(n).then((e) => {
|
|
740
|
+
n.signal?.aborted || K.current !== t || (B(e), c?.(e, n));
|
|
739
741
|
}).catch((e) => {
|
|
740
|
-
n.signal?.aborted ||
|
|
742
|
+
n.signal?.aborted || K.current !== t || (B([]), U({
|
|
741
743
|
error: e,
|
|
742
744
|
query: n.query
|
|
743
745
|
}), u?.(e, n));
|
|
744
746
|
}).finally(() => {
|
|
745
|
-
!n.signal?.aborted &&
|
|
747
|
+
!n.signal?.aborted && K.current === t && V(!1);
|
|
746
748
|
});
|
|
747
749
|
}, _);
|
|
748
|
-
|
|
750
|
+
P(() => {
|
|
749
751
|
if (C) return;
|
|
750
|
-
if (!(
|
|
751
|
-
|
|
752
|
+
if (!(q.length > 0 ? q.length >= y : v)) {
|
|
753
|
+
B([]), V(!1), U(null);
|
|
752
754
|
return;
|
|
753
755
|
}
|
|
754
|
-
let e =
|
|
755
|
-
|
|
756
|
+
let e = K.current + 1;
|
|
757
|
+
K.current = e;
|
|
756
758
|
let t = new AbortController();
|
|
757
|
-
return
|
|
758
|
-
query:
|
|
759
|
+
return J(e, {
|
|
760
|
+
query: q,
|
|
759
761
|
limit: g,
|
|
760
762
|
signal: t.signal
|
|
761
763
|
}), () => {
|
|
762
|
-
|
|
764
|
+
J.cancel(), t.abort();
|
|
763
765
|
};
|
|
764
766
|
}, [
|
|
765
767
|
C,
|
|
766
768
|
g,
|
|
767
769
|
y,
|
|
768
770
|
v,
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
771
|
+
W,
|
|
772
|
+
J,
|
|
773
|
+
q
|
|
772
774
|
]);
|
|
773
|
-
let
|
|
774
|
-
|
|
775
|
-
}, [
|
|
775
|
+
let Y = N(() => {
|
|
776
|
+
H && (ee(H.query), G((e) => e + 1));
|
|
777
|
+
}, [H]), ie = N((e) => {
|
|
776
778
|
if (h) return h(e, {
|
|
777
|
-
query:
|
|
778
|
-
isSelected:
|
|
779
|
+
query: q,
|
|
780
|
+
isSelected: A ? d(A) === d(e) : !1
|
|
779
781
|
});
|
|
780
782
|
let t = p?.(e), n = m?.(e);
|
|
781
|
-
return /* @__PURE__ */
|
|
782
|
-
render: /* @__PURE__ */
|
|
783
|
+
return /* @__PURE__ */ z(s, {
|
|
784
|
+
render: /* @__PURE__ */ R("span", {}),
|
|
783
785
|
direction: "horizontal",
|
|
784
786
|
gap: "md",
|
|
785
787
|
wrap: !1,
|
|
786
788
|
className: "async-resource-combobox--option leading-tight",
|
|
787
|
-
children: [/* @__PURE__ */
|
|
789
|
+
children: [/* @__PURE__ */ R(o, {
|
|
788
790
|
tag: "span",
|
|
789
791
|
size: w === "sm" ? "pxs" : void 0,
|
|
790
792
|
weight: "medium",
|
|
791
793
|
className: "min-w-0 shrink truncate",
|
|
792
794
|
children: f(e)
|
|
793
|
-
}), (!!t || !!n) && /* @__PURE__ */
|
|
795
|
+
}), (!!t || !!n) && /* @__PURE__ */ z("span", {
|
|
794
796
|
className: "inline-flex min-w-0 flex-1 items-center gap-space-sm overflow-hidden text-muted-foreground",
|
|
795
|
-
children: [!!t && (
|
|
797
|
+
children: [!!t && (xe(t) ? /* @__PURE__ */ R(o, {
|
|
796
798
|
tag: "span",
|
|
797
799
|
size: "xs",
|
|
798
800
|
type: "secondary",
|
|
799
801
|
className: "min-w-0 truncate",
|
|
800
802
|
children: t
|
|
801
|
-
}) : t), !!n && (
|
|
803
|
+
}) : t), !!n && (xe(n) ? /* @__PURE__ */ R(o, {
|
|
802
804
|
tag: "span",
|
|
803
805
|
size: "xs",
|
|
804
806
|
type: "secondary",
|
|
@@ -813,53 +815,53 @@ function be({ fetcher: e, value: t, defaultValue: i = null, onValueChange: o, on
|
|
|
813
815
|
f,
|
|
814
816
|
m,
|
|
815
817
|
h,
|
|
816
|
-
|
|
818
|
+
A,
|
|
817
819
|
w,
|
|
818
|
-
|
|
819
|
-
]),
|
|
820
|
-
if (
|
|
820
|
+
q
|
|
821
|
+
]), ae = F(() => {
|
|
822
|
+
if (H) return b ?? E.error;
|
|
821
823
|
}, [
|
|
822
824
|
b,
|
|
823
|
-
|
|
825
|
+
H,
|
|
824
826
|
E.error
|
|
825
|
-
]),
|
|
826
|
-
error:
|
|
827
|
-
query:
|
|
828
|
-
retry:
|
|
829
|
-
}) ?? /* @__PURE__ */
|
|
827
|
+
]), oe = H !== null, se = H ? x?.({
|
|
828
|
+
error: H.error,
|
|
829
|
+
query: H.query,
|
|
830
|
+
retry: Y
|
|
831
|
+
}) ?? /* @__PURE__ */ R(l, {
|
|
830
832
|
variant: "inline",
|
|
831
|
-
title:
|
|
832
|
-
onRetry:
|
|
833
|
+
title: ae,
|
|
834
|
+
onRetry: Y,
|
|
833
835
|
retryLabel: E.retry,
|
|
834
836
|
className: "async-resource-combobox--error mt-space-sm"
|
|
835
837
|
}) : null;
|
|
836
|
-
return /* @__PURE__ */
|
|
838
|
+
return /* @__PURE__ */ z("div", {
|
|
837
839
|
"data-component": "async-resource-combobox",
|
|
838
840
|
"data-slot": "async-resource-combobox",
|
|
839
841
|
className: r("async-resource-combobox--component", T.className),
|
|
840
|
-
children: [/* @__PURE__ */
|
|
842
|
+
children: [/* @__PURE__ */ R(Z, {
|
|
841
843
|
...T,
|
|
842
844
|
className: void 0,
|
|
843
845
|
disabled: C,
|
|
844
846
|
size: w,
|
|
845
|
-
items:
|
|
846
|
-
selectedValue:
|
|
847
|
-
onSelectedValueChange:
|
|
847
|
+
items: te,
|
|
848
|
+
selectedValue: A ?? null,
|
|
849
|
+
onSelectedValueChange: re,
|
|
848
850
|
clearSearchOnClose: !1,
|
|
849
|
-
searchValue:
|
|
850
|
-
onSearchValueChange:
|
|
851
|
+
searchValue: M,
|
|
852
|
+
onSearchValueChange: ee,
|
|
851
853
|
getItemLabel: f,
|
|
852
854
|
getItemKey: d,
|
|
853
|
-
loading: !
|
|
854
|
-
showListContent: !
|
|
855
|
+
loading: !oe && ne,
|
|
856
|
+
showListContent: !oe,
|
|
855
857
|
minSearchLength: y,
|
|
856
858
|
strings: E,
|
|
857
|
-
renderItem:
|
|
858
|
-
}),
|
|
859
|
+
renderItem: ie
|
|
860
|
+
}), se]
|
|
859
861
|
});
|
|
860
862
|
}
|
|
861
|
-
|
|
863
|
+
Se.displayName = "AsyncResourceCombobox";
|
|
862
864
|
//#endregion
|
|
863
|
-
export {
|
|
865
|
+
export { me as a, ye as i, be as n, U as o, Z as r, Se as t };
|
|
864
866
|
|
|
865
|
-
//# sourceMappingURL=combobox-
|
|
867
|
+
//# sourceMappingURL=combobox-DLl0bfiq.js.map
|