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,18 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { s as e, u as t } from "./ui-provider-
|
|
2
|
+
import { s as e, u 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 { i, s as a, t as o } from "./typography-
|
|
6
|
-
import { r as s, t as c } from "./structure-
|
|
7
|
-
import { h as l, p as u } from "./smart-card-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
4
|
+
import { t as r } from "./utils-l5LpDw2z.js";
|
|
5
|
+
import { i, s as a, t as o } from "./typography-DTRkE9zL.js";
|
|
6
|
+
import { r as s, t as c } from "./structure-DC2dygdA.js";
|
|
7
|
+
import { h as l, p as u } from "./smart-card-lFKxn5Hu.js";
|
|
8
|
+
import { t as d } from "./interaction-recipes-CHr0dJUs.js";
|
|
9
|
+
import { r as f } from "./field-affordance-recipes-qQeIf4lG.js";
|
|
10
|
+
import { _ as ee, f as p, o as m, u as h } from "./form-sizing-By94KzXE.js";
|
|
11
|
+
import { t as g } from "./input-DWhBBBww.js";
|
|
12
|
+
import { t as _ } from "./form-field-DUt4UxSV.js";
|
|
13
|
+
import { _ as v, d as y, f as b, g as x, l as S, p as te, v as C } from "./choice-inputs-t6w3ATNz.js";
|
|
14
|
+
import { t as w } from "./control-group-recipes-DBXmfh2E.js";
|
|
15
|
+
import * as T from "react";
|
|
16
|
+
import { forwardRef as E, memo as D, useCallback as O, useEffect as k, useId as ne, useMemo as A, useRef as j, useState as M } from "react";
|
|
16
17
|
import { jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
17
18
|
import { AlertTriangle as F, Minus as I, Plus as L } from "lucide-react";
|
|
18
19
|
//#region src/components/base/forms-numeric/decimal-input.tsx
|
|
@@ -53,20 +54,20 @@ function U(e, t, n, r, i = "round") {
|
|
|
53
54
|
let a = r ?? 0, o = (e - a) / n, s = a + ((i === "floor" ? Math.floor(o) : i === "ceil" ? Math.ceil(o) : Math.round(o)) + t) * n;
|
|
54
55
|
return Number(s.toFixed(12));
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function re(e, t) {
|
|
57
58
|
let n = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
|
|
58
59
|
n ? n.call(e, t) : e.value = t, e.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
59
60
|
}
|
|
60
|
-
var
|
|
61
|
+
var W = {
|
|
61
62
|
sm: "w-control-sm",
|
|
62
63
|
md: "w-control",
|
|
63
64
|
lg: "w-control-lg"
|
|
64
65
|
};
|
|
65
|
-
function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowEmpty: s = !0, step: c, roundingMode: l = "round", normalizeOnBlur: u = !0, onChange:
|
|
66
|
-
let { defaultScale:
|
|
66
|
+
function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowEmpty: s = !0, step: c, roundingMode: l = "round", normalizeOnBlur: u = !0, onChange: f, onBlur: p, onKeyDown: _, placeholder: v, className: y, value: b, defaultValue: x, disabled: S, size: te, strings: C, ...w }, E) {
|
|
67
|
+
let { defaultScale: D } = e(), k = ee(te, D), ne = n(R, C), A = Math.min(12, Math.max(0, t)), j = T.useRef(null), M = S || w.loading || w.readOnly, F = O((e) => {
|
|
67
68
|
let t = e.target.value;
|
|
68
69
|
if (!t && s) {
|
|
69
|
-
|
|
70
|
+
f?.(e);
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
73
|
let n = z(t, A, o);
|
|
@@ -83,39 +84,39 @@ function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowE
|
|
|
83
84
|
value: n
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
|
-
|
|
87
|
-
} else
|
|
87
|
+
f?.(t);
|
|
88
|
+
} else f?.(e);
|
|
88
89
|
}
|
|
89
90
|
}, [
|
|
90
|
-
|
|
91
|
+
f,
|
|
91
92
|
A,
|
|
92
93
|
o,
|
|
93
94
|
s,
|
|
94
95
|
i,
|
|
95
96
|
a
|
|
96
|
-
]), G =
|
|
97
|
-
if (
|
|
97
|
+
]), G = O((e) => {
|
|
98
|
+
if (p?.(e), !u) return;
|
|
98
99
|
let t = e.target.value;
|
|
99
100
|
if (!t && s) return;
|
|
100
101
|
let n = Number.parseFloat(t.replace(",", "."));
|
|
101
102
|
if (!Number.isFinite(n)) return;
|
|
102
103
|
let r = V(H(n, i, a), A, l).toFixed(A);
|
|
103
|
-
r !== t && j.current &&
|
|
104
|
+
r !== t && j.current && re(j.current, r);
|
|
104
105
|
}, [
|
|
106
|
+
p,
|
|
105
107
|
f,
|
|
106
|
-
d,
|
|
107
108
|
u,
|
|
108
109
|
s,
|
|
109
110
|
i,
|
|
110
111
|
a,
|
|
111
112
|
A,
|
|
112
113
|
l
|
|
113
|
-
]), K =
|
|
114
|
+
]), K = O((e) => {
|
|
114
115
|
if (M || c === void 0) return;
|
|
115
116
|
let t = j.current;
|
|
116
117
|
if (!t) return;
|
|
117
118
|
let n = t.value, r = Number.parseFloat(n.replace(",", "."));
|
|
118
|
-
|
|
119
|
+
re(t, V(H(U(Number.isFinite(r) ? r : i ?? 0, e, c, i, l), i, a), A, l).toFixed(A));
|
|
119
120
|
}, [
|
|
120
121
|
M,
|
|
121
122
|
c,
|
|
@@ -123,8 +124,8 @@ function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowE
|
|
|
123
124
|
a,
|
|
124
125
|
l,
|
|
125
126
|
A,
|
|
126
|
-
|
|
127
|
-
]), q = typeof c == "number" && c > 0, J =
|
|
127
|
+
f
|
|
128
|
+
]), q = typeof c == "number" && c > 0, J = O((e) => {
|
|
128
129
|
_?.(e), !e.defaultPrevented && q && (e.key === "ArrowUp" || e.key === "ArrowDown") && (e.preventDefault(), K(e.key === "ArrowUp" ? 1 : -1));
|
|
129
130
|
}, [
|
|
130
131
|
_,
|
|
@@ -132,24 +133,24 @@ function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowE
|
|
|
132
133
|
K
|
|
133
134
|
]), Y = v ?? (A > 0 ? `0.${"0".repeat(A)}` : "0");
|
|
134
135
|
return q ? /* @__PURE__ */ P("div", {
|
|
135
|
-
className: r("decimal-input--component", "flex items-stretch overflow-hidden rounded-inner border border-input bg-transparent [&>.input--component]:h-full", h[
|
|
136
|
+
className: r("decimal-input--component", "flex items-stretch overflow-hidden rounded-inner border border-input bg-transparent [&>.input--component]:h-full", h[k], "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", "has-[input[aria-invalid=true]]:border-destructive has-[input[aria-invalid=true]]:has-[input:focus-visible]:border-destructive has-[input[aria-invalid=true]]:has-[input:focus-visible]:ring-destructive/30 dark:has-[input[aria-invalid=true]]:has-[input:focus-visible]:ring-destructive/50", "has-[input:read-only:not(:disabled)]:bg-muted", S && "opacity-50 cursor-not-allowed"),
|
|
136
137
|
children: [
|
|
137
138
|
/* @__PURE__ */ N("button", {
|
|
138
139
|
type: "button",
|
|
139
140
|
tabIndex: -1,
|
|
140
|
-
"aria-label":
|
|
141
|
+
"aria-label": ne.decrement,
|
|
141
142
|
disabled: M,
|
|
142
143
|
onClick: () => K(-1),
|
|
143
|
-
className: r("box-border border-0 bg-transparent p-0 font-sans inline-flex shrink-0 items-center justify-center border-e border-input text-muted-foreground transition-colors",
|
|
144
|
+
className: r("box-border border-0 bg-transparent p-0 font-sans inline-flex shrink-0 items-center justify-center border-e border-input text-muted-foreground transition-colors", W[k], d.rowHover, "disabled:pointer-events-none disabled:cursor-not-allowed", !S && "disabled:opacity-50"),
|
|
144
145
|
children: /* @__PURE__ */ N(I, {
|
|
145
146
|
"aria-hidden": "true",
|
|
146
|
-
className: m[
|
|
147
|
+
className: m[k]
|
|
147
148
|
})
|
|
148
149
|
}),
|
|
149
150
|
/* @__PURE__ */ N(g, {
|
|
150
|
-
size:
|
|
151
|
+
size: k,
|
|
151
152
|
ref: (e) => {
|
|
152
|
-
j.current = e, typeof
|
|
153
|
+
j.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
|
|
153
154
|
},
|
|
154
155
|
type: "text",
|
|
155
156
|
inputMode: A > 0 ? "decimal" : "numeric",
|
|
@@ -158,28 +159,28 @@ function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowE
|
|
|
158
159
|
onBlur: G,
|
|
159
160
|
onKeyDown: J,
|
|
160
161
|
value: b,
|
|
161
|
-
defaultValue:
|
|
162
|
-
disabled:
|
|
162
|
+
defaultValue: x,
|
|
163
|
+
disabled: S,
|
|
163
164
|
className: r("!h-full min-h-0 flex-1 tabular-nums text-center border-0 shadow-none rounded-none bg-transparent read-only:bg-transparent focus-visible:ring-0 focus-visible:border-0 aria-invalid:ring-0 aria-invalid:focus-visible:ring-0 disabled:opacity-100", y),
|
|
164
|
-
...
|
|
165
|
+
...w
|
|
165
166
|
}),
|
|
166
167
|
/* @__PURE__ */ N("button", {
|
|
167
168
|
type: "button",
|
|
168
169
|
tabIndex: -1,
|
|
169
|
-
"aria-label":
|
|
170
|
+
"aria-label": ne.increment,
|
|
170
171
|
disabled: M,
|
|
171
172
|
onClick: () => K(1),
|
|
172
|
-
className: r("box-border border-0 bg-transparent p-0 font-sans inline-flex shrink-0 items-center justify-center border-s border-input text-muted-foreground transition-colors",
|
|
173
|
+
className: r("box-border border-0 bg-transparent p-0 font-sans inline-flex shrink-0 items-center justify-center border-s border-input text-muted-foreground transition-colors", W[k], d.rowHover, "disabled:pointer-events-none disabled:cursor-not-allowed", !S && "disabled:opacity-50"),
|
|
173
174
|
children: /* @__PURE__ */ N(L, {
|
|
174
175
|
"aria-hidden": "true",
|
|
175
|
-
className: m[
|
|
176
|
+
className: m[k]
|
|
176
177
|
})
|
|
177
178
|
})
|
|
178
179
|
]
|
|
179
180
|
}) : /* @__PURE__ */ N(g, {
|
|
180
|
-
size:
|
|
181
|
+
size: k,
|
|
181
182
|
ref: (e) => {
|
|
182
|
-
j.current = e, typeof
|
|
183
|
+
j.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
|
|
183
184
|
},
|
|
184
185
|
type: "text",
|
|
185
186
|
inputMode: A > 0 ? "decimal" : "numeric",
|
|
@@ -188,17 +189,17 @@ function G({ decimalPlaces: t = 2, min: i, max: a, allowNegative: o = !0, allowE
|
|
|
188
189
|
onBlur: G,
|
|
189
190
|
onKeyDown: _,
|
|
190
191
|
value: b,
|
|
191
|
-
defaultValue:
|
|
192
|
-
disabled:
|
|
192
|
+
defaultValue: x,
|
|
193
|
+
disabled: S,
|
|
193
194
|
className: r("tabular-nums text-end", y),
|
|
194
|
-
...
|
|
195
|
+
...w
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
|
-
var K =
|
|
198
|
+
var K = T.forwardRef(G);
|
|
198
199
|
K.displayName = "DecimalInput";
|
|
199
200
|
//#endregion
|
|
200
201
|
//#region src/components/base/forms-numeric/percentage-input.tsx
|
|
201
|
-
var q =
|
|
202
|
+
var q = E(function({ decimalPlaces: e = 2, min: t = 0, max: n = 100, step: r, ...i }, a) {
|
|
202
203
|
return /* @__PURE__ */ N(K, {
|
|
203
204
|
className: "percentage-input--component",
|
|
204
205
|
ref: a,
|
|
@@ -227,56 +228,56 @@ var J = {
|
|
|
227
228
|
CHF: "CHF",
|
|
228
229
|
CAD: "C$",
|
|
229
230
|
AUD: "A$"
|
|
230
|
-
},
|
|
231
|
+
}, ie = (e) => !e || e.length === 0 ? [] : e.map((e) => typeof e == "string" ? {
|
|
231
232
|
value: e,
|
|
232
233
|
label: `${Y[e] || e} ${e}`
|
|
233
234
|
} : e);
|
|
234
|
-
function
|
|
235
|
-
let { defaultScale:
|
|
236
|
-
|
|
235
|
+
function X({ currency: t, defaultCurrency: o, currencies: s, onCurrencyChange: l, currencyPosition: u = "start", disableCurrencySelector: d = !1, currencyPlaceholder: m, currencyWidth: h = "w-28", currencyLabel: g, strings: _, invalid: S, disabled: w, onConfigError: T, size: E, ...D }, j) {
|
|
236
|
+
let { defaultScale: F } = e(), I = ee(E, F), L = n(J, _), R = ne(), z = A(() => ie(s), [s]), [B, V] = M(o ?? z[0]?.value ?? ""), H = t !== void 0, U = H ? t : B;
|
|
237
|
+
k(() => {
|
|
237
238
|
let e = {
|
|
238
239
|
currency: t,
|
|
239
240
|
defaultCurrency: o,
|
|
240
|
-
disableCurrencySelector:
|
|
241
|
+
disableCurrencySelector: d
|
|
241
242
|
};
|
|
242
|
-
|
|
243
|
+
d && typeof t == "string" && typeof o == "string" && t.trim() !== "" && o.trim() !== "" && t !== o && T?.("[CurrencyInput] currency/defaultCurrency mismatch while selector is disabled.", e), d && (typeof U != "string" || U.trim().length === 0) && T?.("[CurrencyInput] disableCurrencySelector is enabled but no currency is provided.", e);
|
|
243
244
|
}, [
|
|
244
245
|
t,
|
|
245
246
|
o,
|
|
246
|
-
|
|
247
|
+
d,
|
|
247
248
|
T,
|
|
248
|
-
|
|
249
|
+
U
|
|
249
250
|
]);
|
|
250
|
-
let
|
|
251
|
-
e !== null && (
|
|
252
|
-
}, [
|
|
251
|
+
let re = O((e) => {
|
|
252
|
+
e !== null && (H || V(e), l?.(e));
|
|
253
|
+
}, [H, l]), W = A(() => r("currency-input--selector-trigger", p(I), h), [I, h]), G = /* @__PURE__ */ P(c, {
|
|
253
254
|
gap: "xs",
|
|
254
255
|
className: "currency-input--selector",
|
|
255
|
-
children: [!!
|
|
256
|
-
htmlFor:
|
|
256
|
+
children: [!!g && /* @__PURE__ */ N(i, {
|
|
257
|
+
htmlFor: R,
|
|
257
258
|
className: "currency-input--selector-label leading-6",
|
|
258
|
-
children:
|
|
259
|
-
}), /* @__PURE__ */ P(
|
|
260
|
-
value:
|
|
261
|
-
onValueChange: (e) =>
|
|
262
|
-
disabled: w ||
|
|
263
|
-
children: [/* @__PURE__ */ N(
|
|
264
|
-
id:
|
|
265
|
-
"aria-label":
|
|
266
|
-
"aria-invalid":
|
|
267
|
-
iconClassName:
|
|
268
|
-
className:
|
|
269
|
-
children: /* @__PURE__ */ N(
|
|
259
|
+
children: g
|
|
260
|
+
}), /* @__PURE__ */ P(x, {
|
|
261
|
+
value: U,
|
|
262
|
+
onValueChange: (e) => re(e),
|
|
263
|
+
disabled: w || d,
|
|
264
|
+
children: [/* @__PURE__ */ N(v, {
|
|
265
|
+
id: R,
|
|
266
|
+
"aria-label": g || L.currencyAriaLabel,
|
|
267
|
+
"aria-invalid": S || void 0,
|
|
268
|
+
iconClassName: f.icon[I],
|
|
269
|
+
className: W,
|
|
270
|
+
children: /* @__PURE__ */ N(C, { placeholder: m ? /* @__PURE__ */ N(a, {
|
|
270
271
|
tag: "span",
|
|
271
272
|
size: "inherit",
|
|
272
273
|
type: "secondary",
|
|
273
274
|
lineHeight: "tight",
|
|
274
275
|
className: "text-inherit",
|
|
275
|
-
children:
|
|
276
|
+
children: m
|
|
276
277
|
}) : void 0 })
|
|
277
|
-
}), /* @__PURE__ */ N(
|
|
278
|
+
}), /* @__PURE__ */ N(y, { children: /* @__PURE__ */ N(b, { children: z.map((e) => /* @__PURE__ */ N(te, {
|
|
278
279
|
value: e.value,
|
|
279
|
-
size:
|
|
280
|
+
size: I,
|
|
280
281
|
children: /* @__PURE__ */ N(a, {
|
|
281
282
|
tag: "span",
|
|
282
283
|
size: "inherit",
|
|
@@ -290,80 +291,80 @@ function ie({ currency: t, defaultCurrency: o, currencies: s, onCurrencyChange:
|
|
|
290
291
|
return /* @__PURE__ */ P("div", {
|
|
291
292
|
className: r("currency-input--component", "flex items-end gap-space-md"),
|
|
292
293
|
children: [
|
|
293
|
-
u === "start" &&
|
|
294
|
+
u === "start" && G,
|
|
294
295
|
/* @__PURE__ */ N("div", {
|
|
295
296
|
className: "currency-input--amount min-w-0 flex-1",
|
|
296
297
|
children: /* @__PURE__ */ N(K, {
|
|
297
|
-
ref:
|
|
298
|
-
size:
|
|
298
|
+
ref: j,
|
|
299
|
+
size: I,
|
|
299
300
|
decimalPlaces: 2,
|
|
300
301
|
allowNegative: !1,
|
|
301
302
|
disabled: w,
|
|
302
|
-
invalid:
|
|
303
|
+
invalid: S,
|
|
303
304
|
strings: {
|
|
304
|
-
decrement:
|
|
305
|
-
increment:
|
|
305
|
+
decrement: L.decrement,
|
|
306
|
+
increment: L.increment
|
|
306
307
|
},
|
|
307
|
-
...
|
|
308
|
+
...D
|
|
308
309
|
})
|
|
309
310
|
}),
|
|
310
|
-
u === "end" &&
|
|
311
|
+
u === "end" && G
|
|
311
312
|
]
|
|
312
313
|
});
|
|
313
314
|
}
|
|
314
|
-
var
|
|
315
|
-
|
|
315
|
+
var ae = D(E(X));
|
|
316
|
+
ae.displayName = "CurrencyInput";
|
|
316
317
|
//#endregion
|
|
317
318
|
//#region src/components/base/forms-numeric/money-input.strings.ts
|
|
318
|
-
var
|
|
319
|
+
var oe = {
|
|
319
320
|
originalValue: "Original value: {value}",
|
|
320
321
|
conversionWarning: "Currency will be converted from {from} to {to}."
|
|
321
322
|
};
|
|
322
|
-
function
|
|
323
|
+
function se(e, t) {
|
|
323
324
|
return Object.entries(t).reduce((e, [t, n]) => e.replaceAll(`{${t}}`, n), e);
|
|
324
325
|
}
|
|
325
326
|
//#endregion
|
|
326
327
|
//#region src/components/base/forms-numeric/money-input.tsx
|
|
327
|
-
var
|
|
328
|
-
function
|
|
328
|
+
var ce = ["USD", "EUR"];
|
|
329
|
+
function le(e) {
|
|
329
330
|
let t = String(e ?? "").trim();
|
|
330
331
|
if (!t) return null;
|
|
331
332
|
let n = Number.parseFloat(t.replace(",", "."));
|
|
332
333
|
return Number.isFinite(n) ? n : null;
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
+
function Z(e) {
|
|
335
336
|
return typeof e == "string" ? e.trim() : "";
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function ue(e) {
|
|
338
339
|
return typeof e == "string" ? e : e.value;
|
|
339
340
|
}
|
|
340
|
-
var
|
|
341
|
-
let
|
|
342
|
-
let e = o?.length ? o : [
|
|
341
|
+
var de = E(function({ currency: e, defaultCurrency: i, currencies: o, onCurrencyChange: s, onChangeData: d, money: f, label: ee, hint: p, helperText: m, error: h, required: g, invalid: v, recordCurrency: y, showMigrationWarning: b = !0, migrationWarningMessage: x, showOriginalHint: S = !0, controlStrings: te, controlClassName: C, strings: w, className: T, onChange: E, value: D, defaultValue: k, ...ne }, I) {
|
|
342
|
+
let L = t(), R = n(oe, w), z = i ?? L.defaultCurrency ?? "USD", [B, V] = M(z), H = e ?? B, U = j(null), re = A(() => {
|
|
343
|
+
let e = o?.length ? o : [z, ...ce], t = /* @__PURE__ */ new Map();
|
|
343
344
|
for (let n of e) {
|
|
344
|
-
let e =
|
|
345
|
+
let e = ue(n);
|
|
345
346
|
t.has(e) || t.set(e, n);
|
|
346
347
|
}
|
|
347
348
|
let n = Array.from(t.values());
|
|
348
|
-
return t.has(
|
|
349
|
+
return t.has(H) ? n : [H, ...n];
|
|
349
350
|
}, [
|
|
350
|
-
|
|
351
|
+
H,
|
|
351
352
|
o,
|
|
352
|
-
|
|
353
|
-
]),
|
|
354
|
-
|
|
355
|
-
}, [
|
|
353
|
+
z
|
|
354
|
+
]), W = y ?? f?.recordCurrency ?? void 0, G = S ? Z(f?.pair?.formatted) : "", K = !!(W && H && W !== H), q = v ?? !!h, J = O((e) => {
|
|
355
|
+
U.current = e, typeof I == "function" ? I(e) : I && (I.current = e);
|
|
356
|
+
}, [I]), Y = O((e) => {
|
|
356
357
|
E?.(e), d?.({
|
|
357
|
-
amount:
|
|
358
|
-
currency:
|
|
358
|
+
amount: le(e.target.value),
|
|
359
|
+
currency: H
|
|
359
360
|
});
|
|
360
361
|
}, [
|
|
361
|
-
|
|
362
|
+
H,
|
|
362
363
|
E,
|
|
363
364
|
d
|
|
364
|
-
]), ie =
|
|
365
|
-
e === void 0 &&
|
|
366
|
-
amount:
|
|
365
|
+
]), ie = O((t) => {
|
|
366
|
+
e === void 0 && V(t), s?.(t), d?.({
|
|
367
|
+
amount: le(U.current?.value ?? D ?? k),
|
|
367
368
|
currency: t
|
|
368
369
|
});
|
|
369
370
|
}, [
|
|
@@ -371,22 +372,22 @@ var ue = T(function({ currency: e, defaultCurrency: i, currencies: o, onCurrency
|
|
|
371
372
|
k,
|
|
372
373
|
d,
|
|
373
374
|
s,
|
|
374
|
-
|
|
375
|
-
]),
|
|
376
|
-
...
|
|
377
|
-
ref:
|
|
378
|
-
value:
|
|
375
|
+
D
|
|
376
|
+
]), X = /* @__PURE__ */ N(ae, {
|
|
377
|
+
...ne,
|
|
378
|
+
ref: J,
|
|
379
|
+
value: D,
|
|
379
380
|
defaultValue: k,
|
|
380
|
-
currency:
|
|
381
|
-
currencies:
|
|
382
|
-
onChange:
|
|
381
|
+
currency: H,
|
|
382
|
+
currencies: re,
|
|
383
|
+
onChange: Y,
|
|
383
384
|
onCurrencyChange: ie,
|
|
384
|
-
invalid:
|
|
385
|
-
required:
|
|
386
|
-
"aria-required":
|
|
387
|
-
strings:
|
|
385
|
+
invalid: q,
|
|
386
|
+
required: g,
|
|
387
|
+
"aria-required": g ? !0 : ne["aria-required"],
|
|
388
|
+
strings: te,
|
|
388
389
|
className: C
|
|
389
|
-
}), de = !!(p || m || h || g
|
|
390
|
+
}), de = !!(ee || p || m || h || g);
|
|
390
391
|
return /* @__PURE__ */ P(c, {
|
|
391
392
|
gap: "sm",
|
|
392
393
|
className: r("money-input--component", T),
|
|
@@ -394,48 +395,48 @@ var ue = T(function({ currency: e, defaultCurrency: i, currencies: o, onCurrency
|
|
|
394
395
|
gap: "xs",
|
|
395
396
|
className: "money-input--field",
|
|
396
397
|
children: [de ? /* @__PURE__ */ N(_, {
|
|
397
|
-
label:
|
|
398
|
-
hint:
|
|
399
|
-
helperText:
|
|
400
|
-
error:
|
|
401
|
-
required:
|
|
402
|
-
children:
|
|
403
|
-
}) :
|
|
398
|
+
label: ee,
|
|
399
|
+
hint: p,
|
|
400
|
+
helperText: m,
|
|
401
|
+
error: h,
|
|
402
|
+
required: g,
|
|
403
|
+
children: X
|
|
404
|
+
}) : X, !!G && !h && /* @__PURE__ */ N(a, {
|
|
404
405
|
tag: "p",
|
|
405
406
|
size: "xs",
|
|
406
407
|
type: "secondary",
|
|
407
408
|
className: "money-input--original",
|
|
408
|
-
children:
|
|
409
|
+
children: se(R.originalValue, { value: G })
|
|
409
410
|
})]
|
|
410
|
-
}), !!
|
|
411
|
+
}), !!K && b && /* @__PURE__ */ P(u, {
|
|
411
412
|
tone: "warning",
|
|
412
413
|
className: "money-input--warning",
|
|
413
|
-
children: [/* @__PURE__ */ N(F, { "aria-hidden": "true" }), /* @__PURE__ */ N(l, { children: x ??
|
|
414
|
-
from:
|
|
415
|
-
to:
|
|
414
|
+
children: [/* @__PURE__ */ N(F, { "aria-hidden": "true" }), /* @__PURE__ */ N(l, { children: x ?? se(R.conversionWarning, {
|
|
415
|
+
from: W ?? "",
|
|
416
|
+
to: H
|
|
416
417
|
}) })]
|
|
417
418
|
})]
|
|
418
419
|
});
|
|
419
420
|
});
|
|
420
|
-
|
|
421
|
+
de.displayName = "MoneyInput";
|
|
421
422
|
//#endregion
|
|
422
423
|
//#region src/components/base/forms-numeric/rounding-mode-select.tsx
|
|
423
|
-
var
|
|
424
|
+
var fe = [
|
|
424
425
|
"floor",
|
|
425
426
|
"half_up",
|
|
426
427
|
"ceil"
|
|
427
|
-
],
|
|
428
|
+
], pe = {
|
|
428
429
|
floor: "Round down",
|
|
429
430
|
half_up: "Round half up",
|
|
430
431
|
ceil: "Round up"
|
|
431
|
-
},
|
|
432
|
-
let n = Object.prototype.hasOwnProperty.call(e, "value"), { value: i, onValueChange: a, labels: o, placeholder: s, className: c, ...l } = e, u = A(() =>
|
|
432
|
+
}, me = E(function(e, t) {
|
|
433
|
+
let n = Object.prototype.hasOwnProperty.call(e, "value"), { value: i, onValueChange: a, labels: o, placeholder: s, className: c, ...l } = e, u = A(() => fe.map((e) => ({
|
|
433
434
|
value: e,
|
|
434
|
-
label: o?.[e] ??
|
|
435
|
-
})), [o]), d =
|
|
435
|
+
label: o?.[e] ?? pe[e] ?? e
|
|
436
|
+
})), [o]), d = O((e) => {
|
|
436
437
|
a?.(e);
|
|
437
438
|
}, [a]);
|
|
438
|
-
return /* @__PURE__ */ N(
|
|
439
|
+
return /* @__PURE__ */ N(S, {
|
|
439
440
|
ref: t,
|
|
440
441
|
className: r("rounding-mode-select--component", c),
|
|
441
442
|
options: u,
|
|
@@ -445,10 +446,10 @@ var de = [
|
|
|
445
446
|
...l
|
|
446
447
|
});
|
|
447
448
|
});
|
|
448
|
-
|
|
449
|
+
me.displayName = "RoundingModeSelect";
|
|
449
450
|
//#endregion
|
|
450
451
|
//#region src/components/base/forms-numeric/dimensions-input.tsx
|
|
451
|
-
var
|
|
452
|
+
var he = {
|
|
452
453
|
width: "Width",
|
|
453
454
|
height: "Height",
|
|
454
455
|
depth: "Depth",
|
|
@@ -456,7 +457,7 @@ var me = {
|
|
|
456
457
|
widthPlaceholder: "0.00",
|
|
457
458
|
heightPlaceholder: "0.00",
|
|
458
459
|
depthPlaceholder: "0.00"
|
|
459
|
-
},
|
|
460
|
+
}, ge = [
|
|
460
461
|
{
|
|
461
462
|
value: "mm",
|
|
462
463
|
label: "mm"
|
|
@@ -481,7 +482,7 @@ var me = {
|
|
|
481
482
|
value: "px",
|
|
482
483
|
label: "px"
|
|
483
484
|
}
|
|
484
|
-
],
|
|
485
|
+
], _e = (e, t) => {
|
|
485
486
|
if (!e) return {
|
|
486
487
|
width: "",
|
|
487
488
|
height: "",
|
|
@@ -504,20 +505,20 @@ var me = {
|
|
|
504
505
|
height: "",
|
|
505
506
|
depth: ""
|
|
506
507
|
};
|
|
507
|
-
},
|
|
508
|
+
}, ve = (e, t, n, r) => r === "string" ? `${e}x${t}x${n}` : {
|
|
508
509
|
width: e,
|
|
509
510
|
height: t,
|
|
510
511
|
depth: n
|
|
511
|
-
},
|
|
512
|
-
let { defaultScale:
|
|
512
|
+
}, ye = T.forwardRef(function({ value: t, defaultValue: o, format: s = "string", unit: l, defaultUnit: u = "cm", widthLabel: d, heightLabel: m, depthLabel: h, unitLabel: g, unitPlaceholder: _, widthPlaceholder: S, heightPlaceholder: T, depthPlaceholder: E, onChange: D, onUnitChange: A, decimalPlaces: j = 2, min: F = 0, max: I, showUnitSelector: L = !0, disableUnitSelector: R = !1, layout: z = "horizontal", invalid: B, disabled: V = !1, className: H, size: U, strings: re }, W) {
|
|
513
|
+
let { defaultScale: G } = e(), q = ee(U, G), J = n(he, re), Y = d ?? J.width, ie = m ?? J.height, X = h ?? J.depth, ae = _ ?? J.unit, oe = S ?? J.widthPlaceholder, se = T ?? J.heightPlaceholder, ce = E ?? J.depthPlaceholder, le = z === "horizontal", Z = z === "vertical", ue = L === !0, de = (g ?? "").length > 0, fe = Z ? Y : "", pe = Z ? ie : "", me = Z ? X : "", ye = ne(), Q = {
|
|
513
514
|
width: `${ye}-width`,
|
|
514
515
|
height: `${ye}-height`,
|
|
515
516
|
depth: `${ye}-depth`,
|
|
516
517
|
unit: `${ye}-unit`
|
|
517
|
-
}, be = "leading-6", $ = t !== void 0, xe = l !== void 0, Se =
|
|
518
|
-
|
|
518
|
+
}, be = "leading-6", $ = t !== void 0, xe = l !== void 0, Se = _e($ ? t : o, s), [Ce, we] = M(Se.width), [Te, Ee] = M(Se.height), [De, Oe] = M(Se.depth), [ke, Ae] = M(l || u), je = _e(t, s), Me = $ ? je.width : Ce, Ne = $ ? je.height : Te, Pe = $ ? je.depth : De, Fe = xe ? l : ke;
|
|
519
|
+
k(() => {
|
|
519
520
|
if ($) {
|
|
520
|
-
let e =
|
|
521
|
+
let e = _e(t, s);
|
|
521
522
|
we(e.width), Ee(e.height), Oe(e.depth);
|
|
522
523
|
}
|
|
523
524
|
}, [
|
|
@@ -525,39 +526,39 @@ var me = {
|
|
|
525
526
|
s,
|
|
526
527
|
$
|
|
527
528
|
]);
|
|
528
|
-
let Ie =
|
|
529
|
+
let Ie = O((e, t) => {
|
|
529
530
|
let n = Me, r = Ne, i = Pe;
|
|
530
531
|
e === "width" && (n = t), e === "height" && (r = t), e === "depth" && (i = t), $ || (we(n), Ee(r), Oe(i));
|
|
531
|
-
let a =
|
|
532
|
-
|
|
532
|
+
let a = ve(n, r, i, s);
|
|
533
|
+
D?.({ target: { value: a } });
|
|
533
534
|
}, [
|
|
534
535
|
Me,
|
|
535
536
|
Ne,
|
|
536
537
|
Pe,
|
|
537
538
|
$,
|
|
538
539
|
s,
|
|
539
|
-
|
|
540
|
-
]), Le =
|
|
540
|
+
D
|
|
541
|
+
]), Le = O((e) => {
|
|
541
542
|
if (e === null) return;
|
|
542
543
|
let t = e;
|
|
543
|
-
xe || Ae(t),
|
|
544
|
-
}, [xe,
|
|
544
|
+
xe || Ae(t), A?.(t);
|
|
545
|
+
}, [xe, A]), Re = /* @__PURE__ */ P(c, {
|
|
545
546
|
gap: "xs",
|
|
546
547
|
children: [!!de && Z && /* @__PURE__ */ N(i, {
|
|
547
548
|
htmlFor: Q.unit,
|
|
548
549
|
className: be,
|
|
549
|
-
children:
|
|
550
|
-
}), /* @__PURE__ */ P(
|
|
550
|
+
children: g
|
|
551
|
+
}), /* @__PURE__ */ P(x, {
|
|
551
552
|
value: Fe,
|
|
552
553
|
onValueChange: (e) => Le(e),
|
|
553
|
-
disabled:
|
|
554
|
-
children: [/* @__PURE__ */ N(
|
|
554
|
+
disabled: V || R,
|
|
555
|
+
children: [/* @__PURE__ */ N(v, {
|
|
555
556
|
id: Q.unit,
|
|
556
|
-
"aria-label":
|
|
557
|
-
"aria-invalid":
|
|
558
|
-
iconClassName:
|
|
559
|
-
className: r(
|
|
560
|
-
children: /* @__PURE__ */ N(
|
|
557
|
+
"aria-label": g ?? J.unit,
|
|
558
|
+
"aria-invalid": B || void 0,
|
|
559
|
+
iconClassName: f.icon[q],
|
|
560
|
+
className: r(p(q), z === "vertical" ? "w-full" : "w-full @md/dimensions-input:w-32"),
|
|
561
|
+
children: /* @__PURE__ */ N(C, { placeholder: /* @__PURE__ */ N(a, {
|
|
561
562
|
tag: "span",
|
|
562
563
|
size: "inherit",
|
|
563
564
|
type: "secondary",
|
|
@@ -565,9 +566,9 @@ var me = {
|
|
|
565
566
|
className: "text-inherit",
|
|
566
567
|
children: ae
|
|
567
568
|
}) })
|
|
568
|
-
}), /* @__PURE__ */ N(
|
|
569
|
+
}), /* @__PURE__ */ N(y, { children: /* @__PURE__ */ N(b, { children: ge.map((e) => /* @__PURE__ */ N(te, {
|
|
569
570
|
value: e.value,
|
|
570
|
-
size:
|
|
571
|
+
size: q,
|
|
571
572
|
children: /* @__PURE__ */ N(a, {
|
|
572
573
|
tag: "span",
|
|
573
574
|
size: "inherit",
|
|
@@ -579,13 +580,13 @@ var me = {
|
|
|
579
580
|
})]
|
|
580
581
|
});
|
|
581
582
|
return /* @__PURE__ */ N(c, {
|
|
582
|
-
ref:
|
|
583
|
+
ref: W,
|
|
583
584
|
gap: "md",
|
|
584
|
-
className: r("dimensions-input--component @container/dimensions-input",
|
|
585
|
+
className: r("dimensions-input--component @container/dimensions-input", H),
|
|
585
586
|
children: /* @__PURE__ */ P(c, {
|
|
586
|
-
direction:
|
|
587
|
+
direction: z === "vertical" ? "vertical" : "horizontal",
|
|
587
588
|
gap: "md",
|
|
588
|
-
align:
|
|
589
|
+
align: z === "vertical" ? "stretch" : "start",
|
|
589
590
|
className: "dimensions-input--fields",
|
|
590
591
|
children: [
|
|
591
592
|
/* @__PURE__ */ P(c, {
|
|
@@ -599,28 +600,28 @@ var me = {
|
|
|
599
600
|
}),
|
|
600
601
|
/* @__PURE__ */ N(K, {
|
|
601
602
|
id: Q.width,
|
|
602
|
-
size:
|
|
603
|
+
size: q,
|
|
603
604
|
value: Me,
|
|
604
605
|
onChange: (e) => Ie("width", e.target.value),
|
|
605
606
|
placeholder: oe,
|
|
606
|
-
decimalPlaces:
|
|
607
|
-
min:
|
|
608
|
-
max:
|
|
609
|
-
disabled:
|
|
610
|
-
invalid:
|
|
611
|
-
"aria-label":
|
|
607
|
+
decimalPlaces: j,
|
|
608
|
+
min: F,
|
|
609
|
+
max: I,
|
|
610
|
+
disabled: V,
|
|
611
|
+
invalid: B,
|
|
612
|
+
"aria-label": Y
|
|
612
613
|
}),
|
|
613
614
|
!!le && /* @__PURE__ */ N(a, {
|
|
614
615
|
size: "xs",
|
|
615
616
|
type: "secondary",
|
|
616
617
|
className: "text-center",
|
|
617
|
-
children:
|
|
618
|
+
children: Y
|
|
618
619
|
})
|
|
619
620
|
]
|
|
620
621
|
}),
|
|
621
|
-
|
|
622
|
+
z === "horizontal" && /* @__PURE__ */ N("div", {
|
|
622
623
|
"aria-hidden": "true",
|
|
623
|
-
className: r("dimensions-input--separator flex items-center",
|
|
624
|
+
className: r("dimensions-input--separator flex items-center", w[q]),
|
|
624
625
|
children: /* @__PURE__ */ N(a, {
|
|
625
626
|
tag: "span",
|
|
626
627
|
type: "secondary",
|
|
@@ -638,15 +639,15 @@ var me = {
|
|
|
638
639
|
}),
|
|
639
640
|
/* @__PURE__ */ N(K, {
|
|
640
641
|
id: Q.height,
|
|
641
|
-
size:
|
|
642
|
+
size: q,
|
|
642
643
|
value: Ne,
|
|
643
644
|
onChange: (e) => Ie("height", e.target.value),
|
|
644
645
|
placeholder: se,
|
|
645
|
-
decimalPlaces:
|
|
646
|
-
min:
|
|
647
|
-
max:
|
|
648
|
-
disabled:
|
|
649
|
-
invalid:
|
|
646
|
+
decimalPlaces: j,
|
|
647
|
+
min: F,
|
|
648
|
+
max: I,
|
|
649
|
+
disabled: V,
|
|
650
|
+
invalid: B,
|
|
650
651
|
"aria-label": ie
|
|
651
652
|
}),
|
|
652
653
|
!!le && /* @__PURE__ */ N(a, {
|
|
@@ -657,9 +658,9 @@ var me = {
|
|
|
657
658
|
})
|
|
658
659
|
]
|
|
659
660
|
}),
|
|
660
|
-
|
|
661
|
+
z === "horizontal" && /* @__PURE__ */ N("div", {
|
|
661
662
|
"aria-hidden": "true",
|
|
662
|
-
className: r("dimensions-input--separator flex items-center",
|
|
663
|
+
className: r("dimensions-input--separator flex items-center", w[q]),
|
|
663
664
|
children: /* @__PURE__ */ N(a, {
|
|
664
665
|
tag: "span",
|
|
665
666
|
type: "secondary",
|
|
@@ -670,22 +671,22 @@ var me = {
|
|
|
670
671
|
gap: "xs",
|
|
671
672
|
className: "min-w-0 flex-1",
|
|
672
673
|
children: [
|
|
673
|
-
!!Z && !!
|
|
674
|
+
!!Z && !!me && /* @__PURE__ */ N(i, {
|
|
674
675
|
htmlFor: Q.depth,
|
|
675
676
|
className: be,
|
|
676
|
-
children:
|
|
677
|
+
children: me
|
|
677
678
|
}),
|
|
678
679
|
/* @__PURE__ */ N(K, {
|
|
679
680
|
id: Q.depth,
|
|
680
|
-
size:
|
|
681
|
+
size: q,
|
|
681
682
|
value: Pe,
|
|
682
683
|
onChange: (e) => Ie("depth", e.target.value),
|
|
683
684
|
placeholder: ce,
|
|
684
|
-
decimalPlaces:
|
|
685
|
-
min:
|
|
686
|
-
max:
|
|
687
|
-
disabled:
|
|
688
|
-
invalid:
|
|
685
|
+
decimalPlaces: j,
|
|
686
|
+
min: F,
|
|
687
|
+
max: I,
|
|
688
|
+
disabled: V,
|
|
689
|
+
invalid: B,
|
|
689
690
|
"aria-label": X
|
|
690
691
|
}),
|
|
691
692
|
!!le && /* @__PURE__ */ N(a, {
|
|
@@ -698,26 +699,26 @@ var me = {
|
|
|
698
699
|
}),
|
|
699
700
|
!!ue && /* @__PURE__ */ P(c, {
|
|
700
701
|
gap: "xs",
|
|
701
|
-
className: r("dimensions-input--unit",
|
|
702
|
+
className: r("dimensions-input--unit", z === "vertical" ? "w-full" : "w-full basis-full pt-0 @md/dimensions-input:w-32 @md/dimensions-input:basis-32 @md/dimensions-input:shrink-0"),
|
|
702
703
|
children: [Re, !!le && /* @__PURE__ */ N(a, {
|
|
703
704
|
size: "xs",
|
|
704
705
|
type: "secondary",
|
|
705
706
|
className: "text-center",
|
|
706
|
-
children: de ?
|
|
707
|
+
children: de ? g : ae
|
|
707
708
|
})]
|
|
708
709
|
})
|
|
709
710
|
]
|
|
710
711
|
})
|
|
711
712
|
});
|
|
712
713
|
});
|
|
713
|
-
|
|
714
|
+
ye.displayName = "DimensionsInput";
|
|
714
715
|
//#endregion
|
|
715
716
|
//#region src/components/base/forms-numeric/weight-input.tsx
|
|
716
|
-
var
|
|
717
|
+
var Q = {
|
|
717
718
|
unitLabel: "",
|
|
718
719
|
unitAriaLabel: "Unit",
|
|
719
720
|
unitPlaceholder: ""
|
|
720
|
-
},
|
|
721
|
+
}, be = [
|
|
721
722
|
{
|
|
722
723
|
value: "g",
|
|
723
724
|
label: "g"
|
|
@@ -734,57 +735,57 @@ var ye = {
|
|
|
734
735
|
value: "oz",
|
|
735
736
|
label: "oz"
|
|
736
737
|
}
|
|
737
|
-
],
|
|
738
|
-
let { defaultScale:
|
|
739
|
-
|
|
740
|
-
}, [
|
|
738
|
+
], $ = T.forwardRef(function({ value: t, defaultValue: o, unit: s, defaultUnit: l = "g", onChange: u, onUnitChange: d, decimalPlaces: m = 2, min: h = 0, max: g, showUnitSelector: _ = !0, disableUnitSelector: S = !1, unitWidth: w = "w-24", strings: T, invalid: E, disabled: D = !1, size: k, className: j }, F) {
|
|
739
|
+
let { defaultScale: I } = e(), L = ee(k, I), R = n(Q, T), z = t !== void 0, B = s !== void 0, [V, H] = M(o ?? ""), [U, re] = M(s ?? l), W = z ? t ?? "" : V, G = B ? s ?? l : U, q = O((e) => {
|
|
740
|
+
z || H(e.target.value), u?.({ target: { value: e.target.value } });
|
|
741
|
+
}, [z, u]), J = O((e) => {
|
|
741
742
|
if (e === null) return;
|
|
742
743
|
let t = e;
|
|
743
|
-
|
|
744
|
-
}, [
|
|
744
|
+
B || re(t), d?.(t);
|
|
745
|
+
}, [B, d]), Y = A(() => be, []), ie = R.unitLabel !== "", X = ne();
|
|
745
746
|
return /* @__PURE__ */ P("div", {
|
|
746
|
-
ref:
|
|
747
|
-
className: r("weight-input--component", "flex items-end gap-space-md",
|
|
747
|
+
ref: F,
|
|
748
|
+
className: r("weight-input--component", "flex items-end gap-space-md", j),
|
|
748
749
|
children: [/* @__PURE__ */ N("div", {
|
|
749
750
|
className: "flex-1",
|
|
750
751
|
children: /* @__PURE__ */ N(K, {
|
|
751
|
-
size:
|
|
752
|
-
value:
|
|
753
|
-
onChange:
|
|
754
|
-
decimalPlaces:
|
|
752
|
+
size: L,
|
|
753
|
+
value: W,
|
|
754
|
+
onChange: q,
|
|
755
|
+
decimalPlaces: m,
|
|
755
756
|
allowNegative: !1,
|
|
756
|
-
min:
|
|
757
|
-
max:
|
|
758
|
-
disabled:
|
|
757
|
+
min: h,
|
|
758
|
+
max: g,
|
|
759
|
+
disabled: D,
|
|
759
760
|
invalid: E
|
|
760
761
|
})
|
|
761
|
-
}), !!
|
|
762
|
+
}), !!_ && /* @__PURE__ */ P(c, {
|
|
762
763
|
gap: "xs",
|
|
763
764
|
children: [!!ie && /* @__PURE__ */ N(i, {
|
|
764
765
|
htmlFor: X,
|
|
765
766
|
className: "leading-6",
|
|
766
|
-
children:
|
|
767
|
-
}), /* @__PURE__ */ P(
|
|
768
|
-
value:
|
|
769
|
-
onValueChange: (e) =>
|
|
770
|
-
disabled:
|
|
771
|
-
children: [/* @__PURE__ */ N(
|
|
767
|
+
children: R.unitLabel
|
|
768
|
+
}), /* @__PURE__ */ P(x, {
|
|
769
|
+
value: G,
|
|
770
|
+
onValueChange: (e) => J(e),
|
|
771
|
+
disabled: D || S,
|
|
772
|
+
children: [/* @__PURE__ */ N(v, {
|
|
772
773
|
id: X,
|
|
773
|
-
"aria-label":
|
|
774
|
+
"aria-label": R.unitLabel || R.unitAriaLabel,
|
|
774
775
|
"aria-invalid": E || void 0,
|
|
775
|
-
iconClassName:
|
|
776
|
-
className: r(
|
|
777
|
-
children: /* @__PURE__ */ N(
|
|
776
|
+
iconClassName: f.icon[L],
|
|
777
|
+
className: r(p(L), w),
|
|
778
|
+
children: /* @__PURE__ */ N(C, { placeholder: R.unitPlaceholder ? /* @__PURE__ */ N(a, {
|
|
778
779
|
tag: "span",
|
|
779
780
|
size: "inherit",
|
|
780
781
|
type: "secondary",
|
|
781
782
|
lineHeight: "tight",
|
|
782
783
|
className: "text-inherit",
|
|
783
|
-
children:
|
|
784
|
+
children: R.unitPlaceholder
|
|
784
785
|
}) : void 0 })
|
|
785
|
-
}), /* @__PURE__ */ N(
|
|
786
|
+
}), /* @__PURE__ */ N(y, { children: /* @__PURE__ */ N(b, { children: Y.map((e) => /* @__PURE__ */ N(te, {
|
|
786
787
|
value: e.value,
|
|
787
|
-
size:
|
|
788
|
+
size: L,
|
|
788
789
|
children: /* @__PURE__ */ N(a, {
|
|
789
790
|
tag: "span",
|
|
790
791
|
size: "inherit",
|
|
@@ -797,16 +798,16 @@ var ye = {
|
|
|
797
798
|
})]
|
|
798
799
|
});
|
|
799
800
|
});
|
|
800
|
-
|
|
801
|
+
$.displayName = "WeightInput";
|
|
801
802
|
//#endregion
|
|
802
803
|
//#region src/components/base/forms-numeric/coordinates-input.tsx
|
|
803
|
-
var
|
|
804
|
+
var xe = {
|
|
804
805
|
latLabel: "",
|
|
805
806
|
lngLabel: "",
|
|
806
807
|
latPlaceholder: "",
|
|
807
808
|
lngPlaceholder: "",
|
|
808
809
|
previewLinkLabel: ""
|
|
809
|
-
},
|
|
810
|
+
}, Se = (e, t) => {
|
|
810
811
|
if (!e) return {
|
|
811
812
|
lat: "",
|
|
812
813
|
lng: ""
|
|
@@ -825,36 +826,36 @@ var $ = {
|
|
|
825
826
|
lat: "",
|
|
826
827
|
lng: ""
|
|
827
828
|
};
|
|
828
|
-
},
|
|
829
|
+
}, Ce = (e, t, n) => n === "string" ? `${e},${t}` : {
|
|
829
830
|
lat: e,
|
|
830
831
|
lng: t
|
|
831
|
-
},
|
|
832
|
+
}, we = (e, t, n) => {
|
|
832
833
|
if (!e) return !1;
|
|
833
834
|
let r = Number(e);
|
|
834
835
|
return Number.isFinite(r) && r >= t && r <= n;
|
|
835
|
-
},
|
|
836
|
-
let
|
|
837
|
-
|
|
838
|
-
|
|
836
|
+
}, Te = T.forwardRef(function({ value: e, defaultValue: t, format: i = "object", onChange: a, decimalPlaces: l = 6, showPreviewLink: u = !0, strings: d, invalid: f, className: ee, disabled: p, size: m }, h) {
|
|
837
|
+
let g = n(xe, d), v = e !== void 0, y = Se(v ? e : t, i), [b, x] = M(y.lat), [S, te] = M(y.lng), C = Se(e, i), w = v ? C.lat : b, T = v ? C.lng : S;
|
|
838
|
+
k(() => {
|
|
839
|
+
v && (x(C.lat), te(C.lng));
|
|
839
840
|
}, [
|
|
840
|
-
|
|
841
|
+
v,
|
|
841
842
|
C.lat,
|
|
842
843
|
C.lng
|
|
843
844
|
]);
|
|
844
|
-
let E =
|
|
845
|
-
|
|
845
|
+
let E = O((e, t) => {
|
|
846
|
+
v || (x(e), te(t)), a?.({ target: { value: Ce(e, t, i) } });
|
|
846
847
|
}, [
|
|
847
|
-
|
|
848
|
+
v,
|
|
848
849
|
a,
|
|
849
850
|
i
|
|
850
|
-
]),
|
|
851
|
-
let e =
|
|
851
|
+
]), D = A(() => {
|
|
852
|
+
let e = we(w, -90, 90), t = we(T, -180, 180);
|
|
852
853
|
return !e || !t ? null : `https://www.google.com/maps?q=${encodeURIComponent(`${w},${T}`)}`;
|
|
853
854
|
}, [w, T]);
|
|
854
855
|
return /* @__PURE__ */ P(c, {
|
|
855
|
-
ref:
|
|
856
|
+
ref: h,
|
|
856
857
|
gap: "lg",
|
|
857
|
-
className: r("coordinates-input--component",
|
|
858
|
+
className: r("coordinates-input--component", ee),
|
|
858
859
|
children: [/* @__PURE__ */ P(s, {
|
|
859
860
|
columns: {
|
|
860
861
|
base: 1,
|
|
@@ -862,9 +863,9 @@ var $ = {
|
|
|
862
863
|
},
|
|
863
864
|
gap: "lg",
|
|
864
865
|
children: [/* @__PURE__ */ N(_, {
|
|
865
|
-
label:
|
|
866
|
+
label: g.latLabel || void 0,
|
|
866
867
|
children: /* @__PURE__ */ N(K, {
|
|
867
|
-
placeholder:
|
|
868
|
+
placeholder: g.latPlaceholder || void 0,
|
|
868
869
|
value: w,
|
|
869
870
|
onChange: (e) => E(e.target.value, T),
|
|
870
871
|
decimalPlaces: l,
|
|
@@ -872,13 +873,13 @@ var $ = {
|
|
|
872
873
|
min: -90,
|
|
873
874
|
max: 90,
|
|
874
875
|
invalid: f,
|
|
875
|
-
disabled:
|
|
876
|
-
size:
|
|
876
|
+
disabled: p,
|
|
877
|
+
size: m
|
|
877
878
|
})
|
|
878
879
|
}), /* @__PURE__ */ N(_, {
|
|
879
|
-
label:
|
|
880
|
+
label: g.lngLabel || void 0,
|
|
880
881
|
children: /* @__PURE__ */ N(K, {
|
|
881
|
-
placeholder:
|
|
882
|
+
placeholder: g.lngPlaceholder || void 0,
|
|
882
883
|
value: T,
|
|
883
884
|
onChange: (e) => E(w, e.target.value),
|
|
884
885
|
decimalPlaces: l,
|
|
@@ -886,20 +887,20 @@ var $ = {
|
|
|
886
887
|
min: -180,
|
|
887
888
|
max: 180,
|
|
888
889
|
invalid: f,
|
|
889
|
-
disabled:
|
|
890
|
-
size:
|
|
890
|
+
disabled: p,
|
|
891
|
+
size: m
|
|
891
892
|
})
|
|
892
893
|
})]
|
|
893
|
-
}), !!u && !!
|
|
894
|
-
href:
|
|
894
|
+
}), !!u && !!D && !!g.previewLinkLabel && /* @__PURE__ */ N(o, {
|
|
895
|
+
href: D,
|
|
895
896
|
type: "secondary",
|
|
896
897
|
underline: !1,
|
|
897
|
-
children:
|
|
898
|
+
children: g.previewLinkLabel
|
|
898
899
|
})]
|
|
899
900
|
});
|
|
900
901
|
});
|
|
901
|
-
|
|
902
|
+
Te.displayName = "CoordinatesInput";
|
|
902
903
|
//#endregion
|
|
903
|
-
export {
|
|
904
|
+
export { me as a, ae as c, K as d, ye as i, J as l, $ as n, de as o, Q as r, oe as s, Te as t, q as u };
|
|
904
905
|
|
|
905
|
-
//# sourceMappingURL=forms-numeric-
|
|
906
|
+
//# sourceMappingURL=forms-numeric-C0bvjRPZ.js.map
|