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,854 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { p as e, s as t } from "./ui-provider-D2_TeLqw.js";
|
|
3
|
-
import { useStrings as n } from "./lib/strings.js";
|
|
4
|
-
import { t as r } from "./utils-Cospvlj1.js";
|
|
5
|
-
import { t as i } from "./buttons-DS0ZIwJ_.js";
|
|
6
|
-
import { s as a } from "./typography-CAr3dQhX.js";
|
|
7
|
-
import { a as o } from "./text.styles-g4He6UIW.js";
|
|
8
|
-
import { t as s } from "./structure-hzCW-XsV.js";
|
|
9
|
-
import { t as c } from "./track-recipes-CDcKmndW.js";
|
|
10
|
-
import { n as l, t as u } from "./popover.recipes-wmbvL8Ah.js";
|
|
11
|
-
import { n as d } from "./collection-content-Ys-OZOkY.js";
|
|
12
|
-
import { t as f } from "./badge-0tATj-tW.js";
|
|
13
|
-
import { t as p } from "./field-state-recipes-C-MFBX_8.js";
|
|
14
|
-
import { n as m, t as h } from "./field-affordance-recipes-CkOCdE2y.js";
|
|
15
|
-
import { t as g } from "./editable-text-recipe-Bkm6wKHp.js";
|
|
16
|
-
import { a as _, d as v, g as ee, u as y } from "./form-sizing-uWP4lzVh.js";
|
|
17
|
-
import { t as b } from "./input-DhQdBnV3.js";
|
|
18
|
-
import { t as x } from "./date-picker-DrDFj8Lo.js";
|
|
19
|
-
import { o as te, t as S } from "./popover-Dcv_9jxr.js";
|
|
20
|
-
import { _ as C, d as ne, f as w, g as T, h as E, u as D } from "./choice-inputs-DrJ17tpL.js";
|
|
21
|
-
import * as O from "react";
|
|
22
|
-
import { forwardRef as k, memo as A, useCallback as j, useId as M, useMemo as N, useRef as re, useState as P } from "react";
|
|
23
|
-
import { jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
24
|
-
import { Check as ie, X as ae } from "lucide-react";
|
|
25
|
-
import { Slider as L } from "@base-ui/react/slider";
|
|
26
|
-
//#region src/components/base/value-inputs/tags-input.tsx
|
|
27
|
-
var oe = {
|
|
28
|
-
placeholder: "Add a tag…",
|
|
29
|
-
emptyRecommendations: "No recommendations found.",
|
|
30
|
-
clearAll: "Clear all",
|
|
31
|
-
summary: (e, t) => `${e} / ${t} tags`,
|
|
32
|
-
removeTag: (e) => `Remove ${e}`
|
|
33
|
-
};
|
|
34
|
-
function R({ id: t, "aria-describedby": c, value: p = [], onValueChange: m, placeholder: g, recommendations: _, maxTags: v, showMaxTags: ee = !1, allowDuplicates: y = !1, validate: x, disabled: C = !1, showClearAll: ne = !1, renderTag: w, delimiter: T = /[\n,]/, addOnBlur: E = !0, minLength: D = 1, maxLength: k, sortTags: A = !1, caseSensitive: M = !1, field: L, invalid: R, className: se, strings: z }) {
|
|
35
|
-
let { defaultTextSize: ce } = e(), le = n(oe, g === void 0 ? void 0 : { placeholder: g }), B = n(le, z), [V, H] = P(""), [U, W] = P(!1), [G, K] = P(-1), q = re(null), J = O.useId(), Y = U && !C && !!_?.length && !(v !== void 0 && p.length >= v), X = j((e) => {
|
|
36
|
-
if (typeof e == "string") return e;
|
|
37
|
-
if (L && typeof e == "object" && e) {
|
|
38
|
-
let t = e[L];
|
|
39
|
-
return typeof t == "string" ? t : t == null ? "" : String(t);
|
|
40
|
-
}
|
|
41
|
-
return String(e);
|
|
42
|
-
}, [L]), ue = j((e) => typeof p[0] == "string" || p.length === 0 ? e : L ? { [L]: e } : e, [L, p]), Z = N(() => _ ? _.map((e) => e && typeof e == "object" && "value" in e && "label" in e ? e : {
|
|
43
|
-
value: e,
|
|
44
|
-
label: X(e)
|
|
45
|
-
}) : [], [_, X]), Q = N(() => {
|
|
46
|
-
if (!Z.length || !V) return Z;
|
|
47
|
-
let e = M ? V : V.toLowerCase(), t = new Set(p.map((e) => {
|
|
48
|
-
let t = X(e);
|
|
49
|
-
return M ? t : t.toLowerCase();
|
|
50
|
-
}));
|
|
51
|
-
return Z.filter((n) => {
|
|
52
|
-
let r = M ? n.label : n.label.toLowerCase(), i = X(n.value), a = M ? i : i.toLowerCase();
|
|
53
|
-
return (r.includes(e) || a.includes(e)) && (y || !t.has(a));
|
|
54
|
-
});
|
|
55
|
-
}, [
|
|
56
|
-
Z,
|
|
57
|
-
V,
|
|
58
|
-
p,
|
|
59
|
-
y,
|
|
60
|
-
M,
|
|
61
|
-
X
|
|
62
|
-
]), de = N(() => A ? [...p].sort((e, t) => {
|
|
63
|
-
let n = X(e), r = X(t);
|
|
64
|
-
return n.localeCompare(r);
|
|
65
|
-
}) : p, [
|
|
66
|
-
p,
|
|
67
|
-
A,
|
|
68
|
-
X
|
|
69
|
-
]), $ = j((e) => {
|
|
70
|
-
let t = typeof e == "string" ? ue(e) : e, n = X(t).trim();
|
|
71
|
-
if (!n || n.length < D || k && n.length > k || v && p.length >= v || !y && p.some((e) => {
|
|
72
|
-
let t = X(e);
|
|
73
|
-
return M ? t === n : t.toLowerCase() === n.toLowerCase();
|
|
74
|
-
}) || x && !x(t)) return;
|
|
75
|
-
let r = [...p, t];
|
|
76
|
-
m?.(r), H(""), W(!1), K(-1);
|
|
77
|
-
}, [
|
|
78
|
-
p,
|
|
79
|
-
m,
|
|
80
|
-
v,
|
|
81
|
-
y,
|
|
82
|
-
x,
|
|
83
|
-
D,
|
|
84
|
-
k,
|
|
85
|
-
M,
|
|
86
|
-
X,
|
|
87
|
-
ue
|
|
88
|
-
]), fe = j((e) => {
|
|
89
|
-
let t = p.filter((t, n) => n !== e);
|
|
90
|
-
m?.(t);
|
|
91
|
-
}, [p, m]), pe = j((e) => {
|
|
92
|
-
let t = e.target.value;
|
|
93
|
-
H(t), K(-1), _ && _.length > 0 && W(!0);
|
|
94
|
-
}, [_]), me = j((e) => {
|
|
95
|
-
C || (e.key === "Enter" ? (e.preventDefault(), U && G >= 0 && G < Q.length ? ($(Q[G].value), K(-1)) : V.trim() && $(V)) : e.key === "Tab" ? V && (e.preventDefault(), $(V)) : e.key === "ArrowDown" ? (e.preventDefault(), U && K((e) => e < Q.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), U && K((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (W(!1), K(-1)) : e.key === "Backspace" && !V && p.length > 0 && fe(p.length - 1));
|
|
96
|
-
}, [
|
|
97
|
-
C,
|
|
98
|
-
U,
|
|
99
|
-
G,
|
|
100
|
-
Q,
|
|
101
|
-
V,
|
|
102
|
-
$,
|
|
103
|
-
fe,
|
|
104
|
-
p.length
|
|
105
|
-
]), he = j((e) => {
|
|
106
|
-
C || (e.preventDefault(), e.clipboardData.getData("text").split(T).map((e) => e.trim()).filter(Boolean).forEach((e) => $(e)));
|
|
107
|
-
}, [
|
|
108
|
-
C,
|
|
109
|
-
T,
|
|
110
|
-
$
|
|
111
|
-
]), ge = j(() => {
|
|
112
|
-
W(!1), E && V && $(V);
|
|
113
|
-
}, [
|
|
114
|
-
E,
|
|
115
|
-
V,
|
|
116
|
-
$
|
|
117
|
-
]), _e = j(() => {
|
|
118
|
-
m?.([]), H("");
|
|
119
|
-
}, [m]), ve = j((e, t, n) => {
|
|
120
|
-
let i = `${X(e)}-${t}`;
|
|
121
|
-
return /* @__PURE__ */ I(f, {
|
|
122
|
-
tone: "secondary",
|
|
123
|
-
className: r("tags-input--component", "gap-space-xs pe-space-xs"),
|
|
124
|
-
children: [/* @__PURE__ */ F(a, {
|
|
125
|
-
tag: "span",
|
|
126
|
-
size: "inherit",
|
|
127
|
-
weight: "normal",
|
|
128
|
-
lineHeight: "none",
|
|
129
|
-
className: "text-inherit",
|
|
130
|
-
children: X(e)
|
|
131
|
-
}), /* @__PURE__ */ F("button", {
|
|
132
|
-
type: "button",
|
|
133
|
-
"aria-label": (B.removeTag ?? oe.removeTag)(X(e)),
|
|
134
|
-
className: r(h.inline, h.focus, h.clear),
|
|
135
|
-
onClick: () => n(t),
|
|
136
|
-
disabled: C,
|
|
137
|
-
children: /* @__PURE__ */ F(ae, {
|
|
138
|
-
className: h.icon,
|
|
139
|
-
"aria-hidden": "true"
|
|
140
|
-
})
|
|
141
|
-
})]
|
|
142
|
-
}, i);
|
|
143
|
-
}, [
|
|
144
|
-
X,
|
|
145
|
-
C,
|
|
146
|
-
B
|
|
147
|
-
]), ye = !!R;
|
|
148
|
-
return /* @__PURE__ */ I(s, {
|
|
149
|
-
gap: "dense",
|
|
150
|
-
className: r("w-full relative", se),
|
|
151
|
-
children: [/* @__PURE__ */ I(s, {
|
|
152
|
-
gap: "md",
|
|
153
|
-
children: [/* @__PURE__ */ I(te, {
|
|
154
|
-
open: Y,
|
|
155
|
-
onOpenChange: (e, t) => {
|
|
156
|
-
(e || t.reason !== "outside-press" || t.event.target !== q.current) && (W(e), e || K(-1));
|
|
157
|
-
},
|
|
158
|
-
children: [/* @__PURE__ */ F(b, {
|
|
159
|
-
id: t,
|
|
160
|
-
"aria-describedby": c,
|
|
161
|
-
role: _ ? "combobox" : void 0,
|
|
162
|
-
"aria-autocomplete": _ ? "list" : void 0,
|
|
163
|
-
"aria-expanded": _ ? Y : void 0,
|
|
164
|
-
"aria-controls": Y ? J : void 0,
|
|
165
|
-
"aria-activedescendant": Y && G >= 0 && G < Q.length ? `${J}-${G}` : void 0,
|
|
166
|
-
ref: q,
|
|
167
|
-
type: "text",
|
|
168
|
-
placeholder: B.placeholder,
|
|
169
|
-
value: V,
|
|
170
|
-
onChange: pe,
|
|
171
|
-
onKeyDown: me,
|
|
172
|
-
onPaste: he,
|
|
173
|
-
onBlur: ge,
|
|
174
|
-
onFocus: () => {
|
|
175
|
-
_ && Q.length > 0 && W(!0);
|
|
176
|
-
},
|
|
177
|
-
disabled: C || v !== void 0 && p.length >= v,
|
|
178
|
-
invalid: ye,
|
|
179
|
-
maxLength: k,
|
|
180
|
-
className: "w-full"
|
|
181
|
-
}), !!_ && /* @__PURE__ */ F(S, {
|
|
182
|
-
anchor: q,
|
|
183
|
-
align: "start",
|
|
184
|
-
type: "menu",
|
|
185
|
-
initialFocus: !1,
|
|
186
|
-
finalFocus: !1,
|
|
187
|
-
role: "listbox",
|
|
188
|
-
id: J,
|
|
189
|
-
"aria-label": B.placeholder,
|
|
190
|
-
className: "tags-input--recommendations w-(--anchor-width) max-h-[200px]",
|
|
191
|
-
children: /* @__PURE__ */ F("div", { children: Q.length > 0 ? Q.map((e, t) => {
|
|
192
|
-
let n = X(e.value), i = p.some((t) => X(t) === X(e.value));
|
|
193
|
-
return /* @__PURE__ */ I("button", {
|
|
194
|
-
id: `${J}-${t}`,
|
|
195
|
-
role: "option",
|
|
196
|
-
"aria-selected": G === t,
|
|
197
|
-
tabIndex: -1,
|
|
198
|
-
type: "button",
|
|
199
|
-
onPointerDown: (e) => e.preventDefault(),
|
|
200
|
-
onClick: () => {
|
|
201
|
-
$(e.value), K(-1), q.current?.focus();
|
|
202
|
-
},
|
|
203
|
-
onMouseEnter: () => K(t),
|
|
204
|
-
className: r(u.interactive, l(), o[ce ?? "sm"], "box-border w-full cursor-pointer justify-between border-0 bg-transparent font-sans text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", G === t && "bg-accent text-accent-foreground"),
|
|
205
|
-
children: [/* @__PURE__ */ F(d, { children: e.label }), /* @__PURE__ */ F(ie, { className: r("ml-auto size-icon-sm", i ? "opacity-100" : "opacity-0") })]
|
|
206
|
-
}, n);
|
|
207
|
-
}) : /* @__PURE__ */ F(a, {
|
|
208
|
-
tag: "div",
|
|
209
|
-
size: "xs",
|
|
210
|
-
type: "secondary",
|
|
211
|
-
className: "px-row-x py-row-y",
|
|
212
|
-
children: B.emptyRecommendations
|
|
213
|
-
}) })
|
|
214
|
-
})]
|
|
215
|
-
}), de.length > 0 && /* @__PURE__ */ I(s, {
|
|
216
|
-
direction: "horizontal",
|
|
217
|
-
gap: "sm",
|
|
218
|
-
children: [de.map((e, t) => w ? w(e, t, fe) : ve(e, t, fe)), !!ne && p.length > 0 && !C && /* @__PURE__ */ F(i, {
|
|
219
|
-
type: "button",
|
|
220
|
-
size: "sm",
|
|
221
|
-
onClick: _e,
|
|
222
|
-
className: "ms-auto",
|
|
223
|
-
children: B.clearAll
|
|
224
|
-
})]
|
|
225
|
-
})]
|
|
226
|
-
}), !!v && !!ee && /* @__PURE__ */ F(a, {
|
|
227
|
-
size: "xs",
|
|
228
|
-
type: "secondary",
|
|
229
|
-
children: B.summary(p.length, v)
|
|
230
|
-
})]
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
R.displayName = "TagsInput";
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region src/components/base/value-inputs/phone-input.tsx
|
|
236
|
-
var se = {
|
|
237
|
-
prefixPlaceholder: "Prefix",
|
|
238
|
-
prefixAriaLabel: "Country prefix"
|
|
239
|
-
}, z = {
|
|
240
|
-
US: {
|
|
241
|
-
value: "+1",
|
|
242
|
-
label: "United States",
|
|
243
|
-
iso: "US"
|
|
244
|
-
},
|
|
245
|
-
CA: {
|
|
246
|
-
value: "+1",
|
|
247
|
-
label: "Canada",
|
|
248
|
-
iso: "CA"
|
|
249
|
-
},
|
|
250
|
-
AU: {
|
|
251
|
-
value: "+61",
|
|
252
|
-
label: "Australia",
|
|
253
|
-
iso: "AU"
|
|
254
|
-
},
|
|
255
|
-
BG: {
|
|
256
|
-
value: "+359",
|
|
257
|
-
label: "Bulgaria",
|
|
258
|
-
iso: "BG"
|
|
259
|
-
},
|
|
260
|
-
GR: {
|
|
261
|
-
value: "+30",
|
|
262
|
-
label: "Greece",
|
|
263
|
-
iso: "GR"
|
|
264
|
-
},
|
|
265
|
-
GB: {
|
|
266
|
-
value: "+44",
|
|
267
|
-
label: "United Kingdom",
|
|
268
|
-
iso: "GB"
|
|
269
|
-
},
|
|
270
|
-
DE: {
|
|
271
|
-
value: "+49",
|
|
272
|
-
label: "Germany",
|
|
273
|
-
iso: "DE"
|
|
274
|
-
},
|
|
275
|
-
FR: {
|
|
276
|
-
value: "+33",
|
|
277
|
-
label: "France",
|
|
278
|
-
iso: "FR"
|
|
279
|
-
},
|
|
280
|
-
IT: {
|
|
281
|
-
value: "+39",
|
|
282
|
-
label: "Italy",
|
|
283
|
-
iso: "IT"
|
|
284
|
-
},
|
|
285
|
-
ES: {
|
|
286
|
-
value: "+34",
|
|
287
|
-
label: "Spain",
|
|
288
|
-
iso: "ES"
|
|
289
|
-
},
|
|
290
|
-
NL: {
|
|
291
|
-
value: "+31",
|
|
292
|
-
label: "Netherlands",
|
|
293
|
-
iso: "NL"
|
|
294
|
-
},
|
|
295
|
-
BE: {
|
|
296
|
-
value: "+32",
|
|
297
|
-
label: "Belgium",
|
|
298
|
-
iso: "BE"
|
|
299
|
-
},
|
|
300
|
-
AT: {
|
|
301
|
-
value: "+43",
|
|
302
|
-
label: "Austria",
|
|
303
|
-
iso: "AT"
|
|
304
|
-
},
|
|
305
|
-
CH: {
|
|
306
|
-
value: "+41",
|
|
307
|
-
label: "Switzerland",
|
|
308
|
-
iso: "CH"
|
|
309
|
-
},
|
|
310
|
-
PL: {
|
|
311
|
-
value: "+48",
|
|
312
|
-
label: "Poland",
|
|
313
|
-
iso: "PL"
|
|
314
|
-
},
|
|
315
|
-
RO: {
|
|
316
|
-
value: "+40",
|
|
317
|
-
label: "Romania",
|
|
318
|
-
iso: "RO"
|
|
319
|
-
},
|
|
320
|
-
RS: {
|
|
321
|
-
value: "+381",
|
|
322
|
-
label: "Serbia",
|
|
323
|
-
iso: "RS"
|
|
324
|
-
},
|
|
325
|
-
HR: {
|
|
326
|
-
value: "+385",
|
|
327
|
-
label: "Croatia",
|
|
328
|
-
iso: "HR"
|
|
329
|
-
},
|
|
330
|
-
SI: {
|
|
331
|
-
value: "+386",
|
|
332
|
-
label: "Slovenia",
|
|
333
|
-
iso: "SI"
|
|
334
|
-
},
|
|
335
|
-
MK: {
|
|
336
|
-
value: "+389",
|
|
337
|
-
label: "North Macedonia",
|
|
338
|
-
iso: "MK"
|
|
339
|
-
},
|
|
340
|
-
TR: {
|
|
341
|
-
value: "+90",
|
|
342
|
-
label: "Turkey",
|
|
343
|
-
iso: "TR"
|
|
344
|
-
},
|
|
345
|
-
RU: {
|
|
346
|
-
value: "+7",
|
|
347
|
-
label: "Russia",
|
|
348
|
-
iso: "RU"
|
|
349
|
-
},
|
|
350
|
-
UA: {
|
|
351
|
-
value: "+380",
|
|
352
|
-
label: "Ukraine",
|
|
353
|
-
iso: "UA"
|
|
354
|
-
},
|
|
355
|
-
SK: {
|
|
356
|
-
value: "+421",
|
|
357
|
-
label: "Slovakia",
|
|
358
|
-
iso: "SK"
|
|
359
|
-
},
|
|
360
|
-
CZ: {
|
|
361
|
-
value: "+420",
|
|
362
|
-
label: "Czech Republic",
|
|
363
|
-
iso: "CZ"
|
|
364
|
-
},
|
|
365
|
-
HU: {
|
|
366
|
-
value: "+36",
|
|
367
|
-
label: "Hungary",
|
|
368
|
-
iso: "HU"
|
|
369
|
-
},
|
|
370
|
-
PT: {
|
|
371
|
-
value: "+351",
|
|
372
|
-
label: "Portugal",
|
|
373
|
-
iso: "PT"
|
|
374
|
-
},
|
|
375
|
-
IE: {
|
|
376
|
-
value: "+353",
|
|
377
|
-
label: "Ireland",
|
|
378
|
-
iso: "IE"
|
|
379
|
-
},
|
|
380
|
-
SE: {
|
|
381
|
-
value: "+46",
|
|
382
|
-
label: "Sweden",
|
|
383
|
-
iso: "SE"
|
|
384
|
-
},
|
|
385
|
-
NO: {
|
|
386
|
-
value: "+47",
|
|
387
|
-
label: "Norway",
|
|
388
|
-
iso: "NO"
|
|
389
|
-
},
|
|
390
|
-
DK: {
|
|
391
|
-
value: "+45",
|
|
392
|
-
label: "Denmark",
|
|
393
|
-
iso: "DK"
|
|
394
|
-
},
|
|
395
|
-
FI: {
|
|
396
|
-
value: "+358",
|
|
397
|
-
label: "Finland",
|
|
398
|
-
iso: "FI"
|
|
399
|
-
},
|
|
400
|
-
CY: {
|
|
401
|
-
value: "+357",
|
|
402
|
-
label: "Cyprus",
|
|
403
|
-
iso: "CY"
|
|
404
|
-
},
|
|
405
|
-
AL: {
|
|
406
|
-
value: "+355",
|
|
407
|
-
label: "Albania",
|
|
408
|
-
iso: "AL"
|
|
409
|
-
},
|
|
410
|
-
ME: {
|
|
411
|
-
value: "+382",
|
|
412
|
-
label: "Montenegro",
|
|
413
|
-
iso: "ME"
|
|
414
|
-
},
|
|
415
|
-
BA: {
|
|
416
|
-
value: "+387",
|
|
417
|
-
label: "Bosnia and Herzegovina",
|
|
418
|
-
iso: "BA"
|
|
419
|
-
},
|
|
420
|
-
XK: {
|
|
421
|
-
value: "+383",
|
|
422
|
-
label: "Kosovo",
|
|
423
|
-
iso: "XK"
|
|
424
|
-
},
|
|
425
|
-
MD: {
|
|
426
|
-
value: "+373",
|
|
427
|
-
label: "Moldova",
|
|
428
|
-
iso: "MD"
|
|
429
|
-
},
|
|
430
|
-
BY: {
|
|
431
|
-
value: "+375",
|
|
432
|
-
label: "Belarus",
|
|
433
|
-
iso: "BY"
|
|
434
|
-
},
|
|
435
|
-
LT: {
|
|
436
|
-
value: "+370",
|
|
437
|
-
label: "Lithuania",
|
|
438
|
-
iso: "LT"
|
|
439
|
-
},
|
|
440
|
-
LV: {
|
|
441
|
-
value: "+371",
|
|
442
|
-
label: "Latvia",
|
|
443
|
-
iso: "LV"
|
|
444
|
-
},
|
|
445
|
-
EE: {
|
|
446
|
-
value: "+372",
|
|
447
|
-
label: "Estonia",
|
|
448
|
-
iso: "EE"
|
|
449
|
-
}
|
|
450
|
-
}, ce = [
|
|
451
|
-
"US",
|
|
452
|
-
"CA",
|
|
453
|
-
"GB",
|
|
454
|
-
"DE",
|
|
455
|
-
"FR",
|
|
456
|
-
"IT",
|
|
457
|
-
"ES",
|
|
458
|
-
"AU"
|
|
459
|
-
], le = (e) => typeof e == "string" ? z[e.toUpperCase()] ?? null : e, B = (e) => e.map(le).filter((e) => e !== null), V = (e, t) => {
|
|
460
|
-
let n = e.trim().replace(/\s+/g, " ").replace(/[^\d ()+-]/g, "");
|
|
461
|
-
return t && n.startsWith(t) && (n = n.slice(t.length).replace(/^[\s-]+/, "")), t && n.startsWith("0") && (n = n.slice(1)), n;
|
|
462
|
-
}, H = (e, t) => e ? e.startsWith("+") ? e : z[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
|
|
463
|
-
function U({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, defaultPrefix: c, prefixes: l = ce, onPrefixChange: u, disablePrefixSelector: d = !1, prefixPlaceholder: f, prefixWidth: h = "w-30", showCountryName: x = !0, showPrefixInDropdown: te = !0, invalid: S, disabled: O, className: k, size: A, strings: M, ...re }, ie) {
|
|
464
|
-
let { defaultScale: ae } = t(), L = ee(A, ae), oe = n(se, M), R = N(() => B(l), [l]), le = N(() => H(c, R), [c, R]), [U, W] = P(le), [G, K] = P(() => {
|
|
465
|
-
let e = s ?? c;
|
|
466
|
-
return e && !e.startsWith("+") ? e.toUpperCase() : R.find((e) => e.value === le)?.iso;
|
|
467
|
-
}), q = s !== void 0, J = q ? H(s, R) : U, Y = N(() => {
|
|
468
|
-
if (!J || R.some((e) => e.value === J)) return R;
|
|
469
|
-
let e = Object.values(z).find((e) => e.value === J);
|
|
470
|
-
return e ? [e, ...R] : R;
|
|
471
|
-
}, [R, J]), X = N(() => Y.find((e) => e.iso === (s && !s.startsWith("+") ? s.toUpperCase() : G) && e.value === J) ?? Y.find((e) => e.value === J), [
|
|
472
|
-
Y,
|
|
473
|
-
J,
|
|
474
|
-
G,
|
|
475
|
-
s
|
|
476
|
-
]), ue = j((e) => {
|
|
477
|
-
if (e === null) return;
|
|
478
|
-
let t = Y.find((t) => t.iso === e);
|
|
479
|
-
t && (K(t.iso), q || W(t.value), u?.(t.value));
|
|
480
|
-
}, [
|
|
481
|
-
q,
|
|
482
|
-
u,
|
|
483
|
-
Y
|
|
484
|
-
]), Z = j((e) => {
|
|
485
|
-
if (!o) return;
|
|
486
|
-
let t = e.target.value;
|
|
487
|
-
if (J && t.startsWith(J)) {
|
|
488
|
-
let n = t.slice(J.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
|
|
489
|
-
if (r !== t) {
|
|
490
|
-
o({
|
|
491
|
-
...e,
|
|
492
|
-
target: {
|
|
493
|
-
...e.target,
|
|
494
|
-
value: r
|
|
495
|
-
},
|
|
496
|
-
currentTarget: {
|
|
497
|
-
...e.currentTarget,
|
|
498
|
-
value: r
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
o(e);
|
|
505
|
-
}, [o, J]), Q = j((t) => {
|
|
506
|
-
if (e && typeof o == "function") {
|
|
507
|
-
let e = V(t.target.value, J);
|
|
508
|
-
e !== t.target.value && o({
|
|
509
|
-
...t,
|
|
510
|
-
target: {
|
|
511
|
-
...t.target,
|
|
512
|
-
value: e
|
|
513
|
-
},
|
|
514
|
-
currentTarget: {
|
|
515
|
-
...t.currentTarget,
|
|
516
|
-
value: e
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
i?.(t);
|
|
521
|
-
}, [
|
|
522
|
-
e,
|
|
523
|
-
o,
|
|
524
|
-
i,
|
|
525
|
-
J
|
|
526
|
-
]);
|
|
527
|
-
if (Y.length === 0 || d) {
|
|
528
|
-
let e = J || c;
|
|
529
|
-
return e ? /* @__PURE__ */ I("div", {
|
|
530
|
-
className: "flex items-start gap-space-md",
|
|
531
|
-
children: [/* @__PURE__ */ F("div", {
|
|
532
|
-
"aria-invalid": S || void 0,
|
|
533
|
-
className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted", y[L], g[L], _[L], O && "opacity-50", p.invalid),
|
|
534
|
-
children: /* @__PURE__ */ F(a, {
|
|
535
|
-
tag: "span",
|
|
536
|
-
size: "inherit",
|
|
537
|
-
type: "secondary",
|
|
538
|
-
lineHeight: "tight",
|
|
539
|
-
children: e
|
|
540
|
-
})
|
|
541
|
-
}), /* @__PURE__ */ F("div", {
|
|
542
|
-
className: "flex-1",
|
|
543
|
-
children: /* @__PURE__ */ F(b, {
|
|
544
|
-
ref: ie,
|
|
545
|
-
size: L,
|
|
546
|
-
type: "tel",
|
|
547
|
-
autoComplete: "tel",
|
|
548
|
-
inputMode: "tel",
|
|
549
|
-
onChange: Z,
|
|
550
|
-
onBlur: Q,
|
|
551
|
-
invalid: S,
|
|
552
|
-
disabled: O,
|
|
553
|
-
className: k,
|
|
554
|
-
...re
|
|
555
|
-
})
|
|
556
|
-
})]
|
|
557
|
-
}) : /* @__PURE__ */ F(b, {
|
|
558
|
-
ref: ie,
|
|
559
|
-
size: L,
|
|
560
|
-
type: "tel",
|
|
561
|
-
autoComplete: "tel",
|
|
562
|
-
inputMode: "tel",
|
|
563
|
-
onChange: Z,
|
|
564
|
-
onBlur: Q,
|
|
565
|
-
invalid: S,
|
|
566
|
-
disabled: O,
|
|
567
|
-
className: r("phone-input--component", k),
|
|
568
|
-
...re
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
return /* @__PURE__ */ I("div", {
|
|
572
|
-
className: "flex items-start gap-space-md",
|
|
573
|
-
children: [/* @__PURE__ */ I(E, {
|
|
574
|
-
value: X?.iso ?? null,
|
|
575
|
-
onValueChange: (e) => ue(e),
|
|
576
|
-
disabled: O,
|
|
577
|
-
children: [/* @__PURE__ */ F(T, {
|
|
578
|
-
"aria-label": oe.prefixAriaLabel,
|
|
579
|
-
"aria-invalid": S || void 0,
|
|
580
|
-
iconClassName: m.icon[L],
|
|
581
|
-
className: r("phone-input--prefix-trigger", v(L), "shrink-0", h),
|
|
582
|
-
children: /* @__PURE__ */ F(C, {
|
|
583
|
-
placeholder: /* @__PURE__ */ F(a, {
|
|
584
|
-
tag: "span",
|
|
585
|
-
size: "inherit",
|
|
586
|
-
type: "secondary",
|
|
587
|
-
lineHeight: "tight",
|
|
588
|
-
className: "text-inherit",
|
|
589
|
-
children: f ?? oe.prefixPlaceholder
|
|
590
|
-
}),
|
|
591
|
-
children: !!X && /* @__PURE__ */ F(a, {
|
|
592
|
-
tag: "span",
|
|
593
|
-
size: "inherit",
|
|
594
|
-
lineHeight: "tight",
|
|
595
|
-
className: "text-inherit",
|
|
596
|
-
children: X.value
|
|
597
|
-
})
|
|
598
|
-
})
|
|
599
|
-
}), /* @__PURE__ */ F(D, { children: /* @__PURE__ */ F(ne, { children: Y.map((e) => /* @__PURE__ */ F(w, {
|
|
600
|
-
value: e.iso,
|
|
601
|
-
size: L,
|
|
602
|
-
children: /* @__PURE__ */ I("div", {
|
|
603
|
-
className: "flex items-center gap-space-md",
|
|
604
|
-
children: [!!te && /* @__PURE__ */ F(a, {
|
|
605
|
-
tag: "span",
|
|
606
|
-
size: "inherit",
|
|
607
|
-
weight: "medium",
|
|
608
|
-
lineHeight: "tight",
|
|
609
|
-
className: "min-w-13 tabular-nums text-inherit",
|
|
610
|
-
children: e.value
|
|
611
|
-
}), !!x && /* @__PURE__ */ F(a, {
|
|
612
|
-
tag: "span",
|
|
613
|
-
size: "inherit",
|
|
614
|
-
lineHeight: "tight",
|
|
615
|
-
className: "text-inherit",
|
|
616
|
-
children: e.label
|
|
617
|
-
})]
|
|
618
|
-
})
|
|
619
|
-
}, e.iso)) }) })]
|
|
620
|
-
}), /* @__PURE__ */ F("div", {
|
|
621
|
-
className: "flex-1",
|
|
622
|
-
children: /* @__PURE__ */ F(b, {
|
|
623
|
-
ref: ie,
|
|
624
|
-
size: L,
|
|
625
|
-
type: "tel",
|
|
626
|
-
autoComplete: "tel",
|
|
627
|
-
inputMode: "tel",
|
|
628
|
-
onChange: Z,
|
|
629
|
-
onBlur: Q,
|
|
630
|
-
invalid: S,
|
|
631
|
-
disabled: O,
|
|
632
|
-
className: k,
|
|
633
|
-
...re
|
|
634
|
-
})
|
|
635
|
-
})]
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
var W = A(O.forwardRef(U));
|
|
639
|
-
W.displayName = "PhoneInput";
|
|
640
|
-
//#endregion
|
|
641
|
-
//#region src/components/base/value-inputs/color-input.tsx
|
|
642
|
-
var G = { chooseColor: "Choose color" }, K = {
|
|
643
|
-
sm: "size-control-sm",
|
|
644
|
-
md: "size-control",
|
|
645
|
-
lg: "size-control-lg"
|
|
646
|
-
};
|
|
647
|
-
function q(e) {
|
|
648
|
-
let t = e.trim().toLowerCase();
|
|
649
|
-
return /^#[0-9a-f]{6}$/.test(t) ? t : /^#[0-9a-f]{3}$/.test(t) ? `#${t.slice(1).split("").map((e) => `${e}${e}`).join("")}` : null;
|
|
650
|
-
}
|
|
651
|
-
function J(e, t) {
|
|
652
|
-
let n = Number(e.toFixed(t));
|
|
653
|
-
return Object.is(n, -0) ? 0 : n;
|
|
654
|
-
}
|
|
655
|
-
function Y(e) {
|
|
656
|
-
let t = q(e);
|
|
657
|
-
if (!t) return e;
|
|
658
|
-
let [n, r, i] = [
|
|
659
|
-
1,
|
|
660
|
-
3,
|
|
661
|
-
5
|
|
662
|
-
].map((e) => Number.parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), a = Math.cbrt(.4122214708 * n + .5363325363 * r + .0514459929 * i), o = Math.cbrt(.2119034982 * n + .6806995451 * r + .1073969566 * i), s = Math.cbrt(.0883024619 * n + .2817188376 * r + .6299787005 * i), c = .2104542553 * a + .793617785 * o - .0040720468 * s, l = 1.9779984951 * a - 2.428592205 * o + .4505937099 * s, u = .0259040371 * a + .7827717662 * o - .808675766 * s, d = Math.hypot(l, u), f = d < 5e-5 ? 0 : Math.atan2(u, l) * 180 / Math.PI + (u < 0 ? 360 : 0);
|
|
663
|
-
return `oklch(${J(c, 4)} ${J(d, 4)} ${J(f, 2)})`;
|
|
664
|
-
}
|
|
665
|
-
function X(e, t) {
|
|
666
|
-
let n = window.getComputedStyle(e).backgroundColor, r = q(n);
|
|
667
|
-
if (r) return r;
|
|
668
|
-
if (typeof CanvasRenderingContext2D > "u") return t;
|
|
669
|
-
try {
|
|
670
|
-
let e = document.createElement("canvas");
|
|
671
|
-
e.width = 1, e.height = 1;
|
|
672
|
-
let r = e.getContext("2d", { willReadFrequently: !0 });
|
|
673
|
-
if (!r) return t;
|
|
674
|
-
r.clearRect(0, 0, 1, 1), r.fillStyle = n, r.fillRect(0, 0, 1, 1);
|
|
675
|
-
let [i, a, o, s] = r.getImageData(0, 0, 1, 1).data;
|
|
676
|
-
return s === 0 ? t : `#${[
|
|
677
|
-
i,
|
|
678
|
-
a,
|
|
679
|
-
o
|
|
680
|
-
].map((e) => e.toString(16).padStart(2, "0")).join("")}`;
|
|
681
|
-
} catch {
|
|
682
|
-
return t;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
var ue = O.forwardRef(function({ className: e, value: i, defaultValue: a, onChange: o, onValueChange: c, previewValue: l, pickerAriaLabel: u, size: d, disabled: f, readOnly: m, invalid: h, strings: g, inputStrings: _, ...v }, y) {
|
|
686
|
-
let x = n(G, g), { defaultScale: te } = t(), S = ee(d, te), [C, ne] = O.useState(a ?? ""), w = i ?? C, T = l ?? w, E = q(w) ?? "#000000", [D, k] = O.useState(E), A = O.useRef(null);
|
|
687
|
-
O.useLayoutEffect(() => {
|
|
688
|
-
let e = q(T);
|
|
689
|
-
if (e) {
|
|
690
|
-
k(e);
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
A.current && typeof window < "u" && k((e) => X(A.current, e));
|
|
694
|
-
}, [T]);
|
|
695
|
-
let j = (e) => {
|
|
696
|
-
i === void 0 && ne(e.target.value), o?.(e), c?.(e.target.value);
|
|
697
|
-
};
|
|
698
|
-
return /* @__PURE__ */ I(s, {
|
|
699
|
-
direction: "horizontal",
|
|
700
|
-
gap: "sm",
|
|
701
|
-
align: "center",
|
|
702
|
-
wrap: !1,
|
|
703
|
-
className: r("color-input--component min-w-0 [&>.input--component]:min-w-0 [&>.input--component]:flex-1", e),
|
|
704
|
-
children: [/* @__PURE__ */ I("label", {
|
|
705
|
-
"aria-invalid": h || void 0,
|
|
706
|
-
className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-input has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-ring", p.invalid, "aria-invalid:has-[input:focus-visible]:ring-destructive", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", K[S]),
|
|
707
|
-
"data-disabled": f || m || void 0,
|
|
708
|
-
children: [/* @__PURE__ */ F("span", {
|
|
709
|
-
ref: A,
|
|
710
|
-
"aria-hidden": "true",
|
|
711
|
-
"data-user-color": !0,
|
|
712
|
-
className: "color-input--swatch absolute inset-1 rounded-radius-xs",
|
|
713
|
-
style: { background: T || "transparent" }
|
|
714
|
-
}), /* @__PURE__ */ F("input", {
|
|
715
|
-
type: "color",
|
|
716
|
-
value: D,
|
|
717
|
-
disabled: f || m,
|
|
718
|
-
"aria-label": u ?? x.chooseColor,
|
|
719
|
-
onInput: (e) => {
|
|
720
|
-
let t = Y(e.currentTarget.value);
|
|
721
|
-
i === void 0 && ne(t), o && o({
|
|
722
|
-
...e,
|
|
723
|
-
target: {
|
|
724
|
-
...e.currentTarget,
|
|
725
|
-
value: t
|
|
726
|
-
},
|
|
727
|
-
currentTarget: {
|
|
728
|
-
...e.currentTarget,
|
|
729
|
-
value: t
|
|
730
|
-
}
|
|
731
|
-
}), c?.(t);
|
|
732
|
-
},
|
|
733
|
-
className: "color-input--native absolute inset-0 size-full cursor-pointer opacity-0"
|
|
734
|
-
})]
|
|
735
|
-
}), /* @__PURE__ */ F(b, {
|
|
736
|
-
...v,
|
|
737
|
-
ref: y,
|
|
738
|
-
size: S,
|
|
739
|
-
value: w,
|
|
740
|
-
disabled: f,
|
|
741
|
-
readOnly: m,
|
|
742
|
-
invalid: h,
|
|
743
|
-
onChange: j,
|
|
744
|
-
strings: _,
|
|
745
|
-
className: "min-w-0 flex-1 font-mono"
|
|
746
|
-
})]
|
|
747
|
-
});
|
|
748
|
-
});
|
|
749
|
-
ue.displayName = "ColorInput";
|
|
750
|
-
//#endregion
|
|
751
|
-
//#region src/components/base/value-inputs/slider.tsx
|
|
752
|
-
var Z = { ariaLabel: "Value" };
|
|
753
|
-
function Q({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: l, value: u, defaultValue: d, min: f = 0, max: p = 100, step: m = 1, disabled: h = !1, invalid: g = !1, onChange: _, onValueChange: v, onValueCommitted: ee, showValue: y = !1, formatValue: b, unit: x, className: te, orientation: S = "horizontal" }, C) {
|
|
754
|
-
let ne = M(), w = n(Z, l), T = t ?? `slider-${ne}`, E = e ?? T, D = i ?? w.ariaLabel, O = j((e) => {
|
|
755
|
-
let t = Array.isArray(e) ? e[0] : e;
|
|
756
|
-
v?.(t), _?.({ target: {
|
|
757
|
-
name: E,
|
|
758
|
-
value: t
|
|
759
|
-
} });
|
|
760
|
-
}, [
|
|
761
|
-
E,
|
|
762
|
-
_,
|
|
763
|
-
v
|
|
764
|
-
]), k = j((e) => {
|
|
765
|
-
let t = Array.isArray(e) ? e[0] : e;
|
|
766
|
-
ee?.(t);
|
|
767
|
-
}, [ee]), A = N(() => {
|
|
768
|
-
if (!y) return null;
|
|
769
|
-
let e = u ?? d ?? f;
|
|
770
|
-
return b ? b(e) : x ? `${e}${x}` : String(e);
|
|
771
|
-
}, [
|
|
772
|
-
y,
|
|
773
|
-
u,
|
|
774
|
-
d,
|
|
775
|
-
f,
|
|
776
|
-
b,
|
|
777
|
-
x
|
|
778
|
-
]), re = u === void 0 ? void 0 : [u], P = d === void 0 ? [f] : [d];
|
|
779
|
-
return /* @__PURE__ */ I("div", {
|
|
780
|
-
className: r("slider--component", "flex items-center gap-space-lg", te),
|
|
781
|
-
children: [/* @__PURE__ */ F(L.Root, {
|
|
782
|
-
ref: C,
|
|
783
|
-
"data-slot": "slider",
|
|
784
|
-
id: T,
|
|
785
|
-
"aria-label": D,
|
|
786
|
-
"aria-labelledby": o,
|
|
787
|
-
"aria-describedby": s,
|
|
788
|
-
value: re,
|
|
789
|
-
defaultValue: P,
|
|
790
|
-
min: f,
|
|
791
|
-
max: p,
|
|
792
|
-
step: m,
|
|
793
|
-
disabled: h,
|
|
794
|
-
orientation: S,
|
|
795
|
-
onValueChange: O,
|
|
796
|
-
onValueCommitted: k,
|
|
797
|
-
"aria-invalid": g || void 0,
|
|
798
|
-
className: r("box-border data-[orientation=horizontal]:w-full data-[orientation=horizontal]:px-[calc(var(--icon)/2)] data-[orientation=vertical]:h-full", "min-w-0 flex-1", g && "[&_[data-slot=slider-range]]:bg-destructive"),
|
|
799
|
-
children: /* @__PURE__ */ I(L.Control, {
|
|
800
|
-
className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=horizontal]:min-h-control data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
801
|
-
children: [/* @__PURE__ */ F(L.Track, {
|
|
802
|
-
"data-slot": "slider-track",
|
|
803
|
-
className: r("relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", c),
|
|
804
|
-
children: /* @__PURE__ */ F(L.Indicator, {
|
|
805
|
-
"data-slot": "slider-range",
|
|
806
|
-
className: "absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
807
|
-
})
|
|
808
|
-
}), /* @__PURE__ */ F(L.Thumb, {
|
|
809
|
-
index: 0,
|
|
810
|
-
"data-slot": "slider-thumb",
|
|
811
|
-
getAriaLabel: () => D,
|
|
812
|
-
className: r("block size-icon shrink-0 rounded-full border border-primary bg-background shadow-sm transition-[color,box-shadow] select-none", "has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring data-disabled:pointer-events-none", g && "border-destructive has-[:focus-visible]:ring-destructive")
|
|
813
|
-
})]
|
|
814
|
-
})
|
|
815
|
-
}), !!y && A !== null && /* @__PURE__ */ F(a, {
|
|
816
|
-
tag: "span",
|
|
817
|
-
type: g ? "error" : "secondary",
|
|
818
|
-
className: "min-w-8 shrink-0 text-right tabular-nums",
|
|
819
|
-
children: A
|
|
820
|
-
})]
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
var de = O.forwardRef(Q);
|
|
824
|
-
de.displayName = "SliderField";
|
|
825
|
-
//#endregion
|
|
826
|
-
//#region src/components/base/value-inputs/date-time-input.tsx
|
|
827
|
-
var $ = k(function({ value: e, onValueChange: t, placeholder: n, readableFormat: r = "dd-MM-yyyy HH:mm", stepMinutes: i = 30, modal: a = !0, invalid: o, disabled: s, id: c }, l) {
|
|
828
|
-
let u = e ? new Date(e) : void 0, d = j((e) => {
|
|
829
|
-
t?.(e.date ? e.date.toISOString() : void 0);
|
|
830
|
-
}, [t]);
|
|
831
|
-
return /* @__PURE__ */ F(x, {
|
|
832
|
-
ref: l,
|
|
833
|
-
className: "date-time-input--component",
|
|
834
|
-
id: c,
|
|
835
|
-
mode: "single",
|
|
836
|
-
disabled: s,
|
|
837
|
-
invalid: o,
|
|
838
|
-
placeholder: n,
|
|
839
|
-
value: u,
|
|
840
|
-
onValueChange: d,
|
|
841
|
-
readableFormat: r,
|
|
842
|
-
withTime: {
|
|
843
|
-
enabled: !0,
|
|
844
|
-
format: "24",
|
|
845
|
-
step: i * 60
|
|
846
|
-
},
|
|
847
|
-
modal: a
|
|
848
|
-
});
|
|
849
|
-
});
|
|
850
|
-
$.displayName = "DateTimeInput";
|
|
851
|
-
//#endregion
|
|
852
|
-
export { G as a, W as c, ue as i, se as l, de as n, z as o, Z as r, ce as s, $ as t, R as u };
|
|
853
|
-
|
|
854
|
-
//# sourceMappingURL=value-inputs-CjfzGMsN.js.map
|