themelia-react-ui 1.0.2 → 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 +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- 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-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.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-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- 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 +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- 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 +81 -76
- 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 +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- 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 +148 -138
- 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 +4 -4
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +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 +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- 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 +2246 -1693
- 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 +82 -91
- 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-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- 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-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +27 -5
- 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/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +6 -6
- 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/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-sizing.d.ts +43 -8
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- 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/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- 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 +30 -4
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +10 -5
- 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/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +4 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- 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/inventory-section/types.d.ts +4 -1
- 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/loyalty-points/types.d.ts +1 -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-status/types.d.ts +4 -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 +14 -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/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- 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/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -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/global-search-idle-state.d.ts +1 -1
- 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/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- 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/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +11 -3
- 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/partials/cell-renderers.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 +51 -4
- 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/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- 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/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.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-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- 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 +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- 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 +914 -824
- 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 +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- 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 +193 -189
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- 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-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- 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-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.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-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.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-DEmDiTlD.js +265 -0
- 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 +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- 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 +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- 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/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- 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-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.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-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- 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-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- 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-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.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-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- 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-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- 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-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- 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/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- 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 +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- 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-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- 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-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- 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 +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.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/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.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-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -0,0 +1,947 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { m as e, s as t } from "./ui-provider-1D_NSYzO.js";
|
|
3
|
+
import { useStrings as n } from "./lib/strings.js";
|
|
4
|
+
import { t as r } from "./utils-l5LpDw2z.js";
|
|
5
|
+
import { t as i } from "./buttons-SbIcm1HJ.js";
|
|
6
|
+
import { s as a } from "./typography-DTRkE9zL.js";
|
|
7
|
+
import { a as o } from "./text.styles-g4He6UIW.js";
|
|
8
|
+
import { t as s } from "./focus-recipes-B653VaLq.js";
|
|
9
|
+
import { t as c } from "./structure-DC2dygdA.js";
|
|
10
|
+
import { t as l } from "./track-recipes-CDcKmndW.js";
|
|
11
|
+
import { n as u, t as d } from "./popover.recipes-Bdyhj2db.js";
|
|
12
|
+
import { n as f } from "./collection-content-uK16Grv0.js";
|
|
13
|
+
import { t as p } from "./badge-MrKVNzW9.js";
|
|
14
|
+
import { t as ee } from "./field-state-recipes-BVA2CWHo.js";
|
|
15
|
+
import { n as m, r as h, t as te } from "./field-affordance-recipes-qQeIf4lG.js";
|
|
16
|
+
import { t as ne } from "./editable-text-recipe-Bkm6wKHp.js";
|
|
17
|
+
import { _ as re, a as g, c as _, f as v, u as ie } from "./form-sizing-By94KzXE.js";
|
|
18
|
+
import { t as y } from "./input-DWhBBBww.js";
|
|
19
|
+
import { t as b } from "./date-picker-CF-DtUpF.js";
|
|
20
|
+
import { o as x, t as ae } from "./popover-Di55PyAI.js";
|
|
21
|
+
import { _ as S, d as oe, f as se, g as ce, p as C, v as w } from "./choice-inputs-t6w3ATNz.js";
|
|
22
|
+
import * as T from "react";
|
|
23
|
+
import { forwardRef as E, memo as D, useCallback as O, useId as le, useMemo as k, useRef as A, useState as j } from "react";
|
|
24
|
+
import { jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
25
|
+
import { Check as ue } from "lucide-react";
|
|
26
|
+
import { Slider as P } from "@base-ui/react/slider";
|
|
27
|
+
//#region src/components/base/value-inputs/tags-input.tsx
|
|
28
|
+
var F = {
|
|
29
|
+
placeholder: "Add a tag…",
|
|
30
|
+
emptyRecommendations: "No recommendations found.",
|
|
31
|
+
clearAll: "Clear all",
|
|
32
|
+
summary: (e, t) => `${e} / ${t} tags`,
|
|
33
|
+
removeTag: (e) => `Remove ${e}`,
|
|
34
|
+
notAdded: (e) => `Not added: ${e}.`,
|
|
35
|
+
recommendationsLabel: "Suggested tags"
|
|
36
|
+
};
|
|
37
|
+
function de(e) {
|
|
38
|
+
return e === !0 || e === "true";
|
|
39
|
+
}
|
|
40
|
+
function fe({ id: l, "aria-label": ee, "aria-labelledby": h, "aria-describedby": v, "aria-invalid": ie, "aria-required": y, value: b, defaultValue: S, onValueChange: oe, name: se, placeholder: ce, recommendations: C, maxTags: w, showMaxTags: E = !1, allowDuplicates: D = !1, validate: le, disabled: P = !1, showClearAll: fe = !1, renderTag: pe, delimiter: I = /[\n,]/, addOnBlur: me = !0, minLength: he = 1, maxLength: ge, sortTags: _e = !1, caseSensitive: ve = !1, field: L, invalid: ye, className: R, strings: z }) {
|
|
41
|
+
let { defaultTextSize: B } = e(), { defaultScale: be } = t(), V = re(void 0, be), xe = n(F, ce === void 0 ? void 0 : { placeholder: ce }), H = n(xe, z), Se = b !== void 0, [Ce, we] = j(() => S ?? []), U = b ?? Ce, [W, Te] = j(""), [Ee, De] = j(null), [Oe, ke] = j(""), [Ae, G] = j(!1), [je, K] = j(-1), [Me, Ne] = j(null), Pe = A(null), Fe = A(null), Ie = T.useId(), Le = T.useId(), Re = w !== void 0 && U.length >= w, ze = !!C?.length, q = O((e) => {
|
|
42
|
+
if (typeof e == "string") return e;
|
|
43
|
+
if (L && typeof e == "object" && e) {
|
|
44
|
+
let t = e[L];
|
|
45
|
+
return typeof t == "string" ? t : t == null ? "" : String(t);
|
|
46
|
+
}
|
|
47
|
+
return String(e);
|
|
48
|
+
}, [L]), Be = O((e) => L ? { [L]: e } : e, [L]), J = O((e) => ve ? e : e.toLowerCase(), [ve]), Ve = O((e, t) => {
|
|
49
|
+
let n = J(e);
|
|
50
|
+
return t.some((e) => J(q(e)) === n);
|
|
51
|
+
}, [J, q]), He = k(() => C ? C.map((e, t) => {
|
|
52
|
+
if (e && typeof e == "object" && "value" in e && "label" in e) {
|
|
53
|
+
let n = e;
|
|
54
|
+
return {
|
|
55
|
+
key: `${t}:${n.label}`,
|
|
56
|
+
value: n.value,
|
|
57
|
+
label: n.label
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
let n = q(e);
|
|
61
|
+
return {
|
|
62
|
+
key: `${t}:${n}`,
|
|
63
|
+
value: e,
|
|
64
|
+
label: n
|
|
65
|
+
};
|
|
66
|
+
}) : [], [C, q]), Y = k(() => {
|
|
67
|
+
if (!He.length) return He;
|
|
68
|
+
let e = J(W.trim()), t = new Set(U.map((e) => J(q(e))));
|
|
69
|
+
return He.filter((n) => {
|
|
70
|
+
let r = J(q(n.value));
|
|
71
|
+
return !D && t.has(r) ? !1 : !e || J(n.label).includes(e) || r.includes(e);
|
|
72
|
+
});
|
|
73
|
+
}, [
|
|
74
|
+
He,
|
|
75
|
+
W,
|
|
76
|
+
U,
|
|
77
|
+
D,
|
|
78
|
+
J,
|
|
79
|
+
q
|
|
80
|
+
]), X = Ae && !P && ze && !Re, Z = X && je >= 0 && je < Y.length ? je : -1, Ue = O((e) => [...e].sort((e, t) => q(e).localeCompare(q(t))), [q]), We = O((e) => {
|
|
81
|
+
Se || we(e), oe?.(e);
|
|
82
|
+
}, [Se, oe]), Ge = O((e) => {
|
|
83
|
+
let t = [...U], n = [];
|
|
84
|
+
for (let r of e) {
|
|
85
|
+
let e = typeof r == "string", i = (e ? r : q(r)).trim();
|
|
86
|
+
if (!i) continue;
|
|
87
|
+
let a = e ? Be(i) : r;
|
|
88
|
+
if (i.length < he || ge !== void 0 && i.length > ge || w !== void 0 && t.length >= w || !D && Ve(i, t) || le && !le(a)) {
|
|
89
|
+
n.push(i);
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
t.push(a);
|
|
93
|
+
}
|
|
94
|
+
return t.length !== U.length && (_e && (t = Ue(t)), We(t)), n;
|
|
95
|
+
}, [
|
|
96
|
+
U,
|
|
97
|
+
q,
|
|
98
|
+
Be,
|
|
99
|
+
he,
|
|
100
|
+
ge,
|
|
101
|
+
w,
|
|
102
|
+
D,
|
|
103
|
+
Ve,
|
|
104
|
+
le,
|
|
105
|
+
_e,
|
|
106
|
+
Ue,
|
|
107
|
+
We
|
|
108
|
+
]), Q = O((e) => {
|
|
109
|
+
let t = Ge(e), n = t.join(typeof I == "string" ? I : ", ");
|
|
110
|
+
Te(n), De(n || null), ke(t.length ? (H.notAdded ?? F.notAdded)(t.join(", ")) : ""), G(!1), K(-1);
|
|
111
|
+
}, [
|
|
112
|
+
Ge,
|
|
113
|
+
I,
|
|
114
|
+
H
|
|
115
|
+
]), Ke = k(() => {
|
|
116
|
+
let e = /* @__PURE__ */ new Map();
|
|
117
|
+
return U.map((t, n) => {
|
|
118
|
+
let r = q(t), i = e.get(r) ?? 0;
|
|
119
|
+
return e.set(r, i + 1), {
|
|
120
|
+
tag: t,
|
|
121
|
+
index: n,
|
|
122
|
+
display: r,
|
|
123
|
+
key: `${r}::${i}`
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
}, [U, q]), $ = k(() => _e ? [...Ke].sort((e, t) => e.display.localeCompare(t.display)) : Ke, [Ke, _e]), qe = O((e) => {
|
|
127
|
+
We(U.filter((t, n) => n !== e));
|
|
128
|
+
}, [U, We]), Je = O((e) => {
|
|
129
|
+
Ne(Math.max(0, $.findIndex((t) => t.index === e))), qe(e);
|
|
130
|
+
}, [$, qe]);
|
|
131
|
+
T.useLayoutEffect(() => {
|
|
132
|
+
if (Me === null) return;
|
|
133
|
+
Ne(null);
|
|
134
|
+
let e = Fe.current?.querySelectorAll("[data-tag-remove]:not(:disabled)");
|
|
135
|
+
((e && e.length > 0 ? e[Math.min(Me, e.length - 1)] : void 0) ?? Pe.current)?.focus();
|
|
136
|
+
}, [Me]);
|
|
137
|
+
let Ye = O((e) => {
|
|
138
|
+
let t = e.target.value;
|
|
139
|
+
if (t.split(I).length > 1) {
|
|
140
|
+
Q(t.split(I));
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
Te(t), De(null), K(-1), ze && G(!0);
|
|
144
|
+
}, [
|
|
145
|
+
I,
|
|
146
|
+
Q,
|
|
147
|
+
ze
|
|
148
|
+
]), Xe = O((e) => {
|
|
149
|
+
P || e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), Z >= 0 ? Q([Y[Z].value]) : W.trim() && Q(W.split(I))) : e.key === "ArrowDown" ? X ? (e.preventDefault(), K((e) => e < Y.length - 1 ? e + 1 : e)) : ze && !Re && Y.length > 0 && G(!0) : e.key === "ArrowUp" ? X && (e.preventDefault(), K((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (G(!1), K(-1)) : e.key === "Backspace" && W === "" && $.length > 0 && (e.preventDefault(), qe($[$.length - 1].index)));
|
|
150
|
+
}, [
|
|
151
|
+
P,
|
|
152
|
+
Z,
|
|
153
|
+
Y,
|
|
154
|
+
Q,
|
|
155
|
+
W,
|
|
156
|
+
I,
|
|
157
|
+
X,
|
|
158
|
+
ze,
|
|
159
|
+
Re,
|
|
160
|
+
$,
|
|
161
|
+
qe
|
|
162
|
+
]), Ze = O((e) => {
|
|
163
|
+
if (P) return;
|
|
164
|
+
let t = e.clipboardData.getData("text");
|
|
165
|
+
if (!t) return;
|
|
166
|
+
let n = e.currentTarget.selectionStart ?? W.length, r = e.currentTarget.selectionEnd ?? n, i = `${W.slice(0, n)}${t}${W.slice(r)}`.split(I);
|
|
167
|
+
i.length <= 1 || (e.preventDefault(), Q(i));
|
|
168
|
+
}, [
|
|
169
|
+
P,
|
|
170
|
+
W,
|
|
171
|
+
I,
|
|
172
|
+
Q
|
|
173
|
+
]), Qe = O(() => {
|
|
174
|
+
G(!1), K(-1), me && !P && W.trim() && W !== Ee && Q(W.split(I));
|
|
175
|
+
}, [
|
|
176
|
+
me,
|
|
177
|
+
P,
|
|
178
|
+
W,
|
|
179
|
+
Ee,
|
|
180
|
+
I,
|
|
181
|
+
Q
|
|
182
|
+
]), $e = O(() => {
|
|
183
|
+
We([]), Te(""), De(null), ke(""), Pe.current?.focus();
|
|
184
|
+
}, [We]), et = H.removeTag ?? F.removeTag, tt = V === "sm" ? "sm" : "md", nt = (e, t, n) => {
|
|
185
|
+
let i = q(e);
|
|
186
|
+
return /* @__PURE__ */ N(p, {
|
|
187
|
+
tone: "secondary",
|
|
188
|
+
size: tt,
|
|
189
|
+
className: r("tags-input--component tags-input--tag", "max-w-full gap-space-xs pe-space-xs"),
|
|
190
|
+
children: [/* @__PURE__ */ M(a, {
|
|
191
|
+
tag: "span",
|
|
192
|
+
size: "inherit",
|
|
193
|
+
weight: "normal",
|
|
194
|
+
lineHeight: "none",
|
|
195
|
+
className: "min-w-0 truncate text-inherit",
|
|
196
|
+
children: i
|
|
197
|
+
}), /* @__PURE__ */ M("button", {
|
|
198
|
+
type: "button",
|
|
199
|
+
"data-tag-remove": "",
|
|
200
|
+
"aria-label": et(i),
|
|
201
|
+
className: r("tags-input--tag-remove relative after:absolute after:-inset-space-xs", m.inline, s.edge, m.clear, "disabled:pointer-events-none disabled:cursor-not-allowed"),
|
|
202
|
+
onClick: () => n(t),
|
|
203
|
+
disabled: P,
|
|
204
|
+
children: /* @__PURE__ */ M(te, {
|
|
205
|
+
className: m.icon,
|
|
206
|
+
"aria-hidden": "true"
|
|
207
|
+
})
|
|
208
|
+
})]
|
|
209
|
+
});
|
|
210
|
+
}, rt = !!ye || de(ie) || Ee !== null, it = w !== void 0 && U.length > w, at = E ? w : void 0, ot = at !== void 0, st = fe && U.length > 0, ct = [v, ot ? Le : void 0].filter(Boolean).join(" ") || void 0;
|
|
211
|
+
return /* @__PURE__ */ N(c, {
|
|
212
|
+
gap: "xs",
|
|
213
|
+
className: r("tags-input--root w-full relative", R),
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ M("span", {
|
|
216
|
+
role: "status",
|
|
217
|
+
"aria-live": "polite",
|
|
218
|
+
"aria-atomic": "true",
|
|
219
|
+
className: "tags-input--status sr-only",
|
|
220
|
+
children: Oe
|
|
221
|
+
}),
|
|
222
|
+
!!se && Ke.map((e) => /* @__PURE__ */ M("input", {
|
|
223
|
+
type: "hidden",
|
|
224
|
+
name: `${se}[]`,
|
|
225
|
+
value: e.display,
|
|
226
|
+
disabled: P
|
|
227
|
+
}, e.key)),
|
|
228
|
+
/* @__PURE__ */ N(x, {
|
|
229
|
+
open: X,
|
|
230
|
+
onOpenChange: (e, t) => {
|
|
231
|
+
!e && t.reason === "outside-press" && t.event.target instanceof Node && Fe.current?.contains(t.event.target) || (G(e), e || K(-1));
|
|
232
|
+
},
|
|
233
|
+
children: [/* @__PURE__ */ N("div", {
|
|
234
|
+
ref: Fe,
|
|
235
|
+
"data-slot": "tags-input-field",
|
|
236
|
+
"data-disabled": P || void 0,
|
|
237
|
+
"aria-invalid": rt || void 0,
|
|
238
|
+
onClick: (e) => {
|
|
239
|
+
e.target instanceof Element && e.target.closest("button, a, input") || Pe.current?.focus();
|
|
240
|
+
},
|
|
241
|
+
className: r("tags-input--field", "box-border flex w-full min-w-0 cursor-text flex-wrap items-center rounded-inner border border-input bg-transparent font-sans text-foreground shadow-none outline-none transition-[color,box-shadow]", _[V], g[V], V === "lg" ? "gap-space-sm" : "gap-space-xs", "py-[calc(0.25rem*var(--density-scale))]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", "aria-invalid:border-destructive aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:cursor-not-allowed data-disabled:opacity-50"),
|
|
242
|
+
children: [$.map((e) => /* @__PURE__ */ M(T.Fragment, { children: pe ? pe(e.tag, e.index, Je) : nt(e.tag, e.index, Je) }, e.key)), /* @__PURE__ */ M("input", {
|
|
243
|
+
ref: Pe,
|
|
244
|
+
id: l,
|
|
245
|
+
type: "text",
|
|
246
|
+
"data-slot": "tags-input-control",
|
|
247
|
+
"aria-label": ee,
|
|
248
|
+
"aria-labelledby": h,
|
|
249
|
+
"aria-describedby": ct,
|
|
250
|
+
"aria-invalid": rt || void 0,
|
|
251
|
+
"aria-required": y,
|
|
252
|
+
role: C ? "combobox" : void 0,
|
|
253
|
+
"aria-autocomplete": C ? "list" : void 0,
|
|
254
|
+
"aria-expanded": C ? X : void 0,
|
|
255
|
+
"aria-controls": X ? Ie : void 0,
|
|
256
|
+
"aria-activedescendant": Z >= 0 ? `${Ie}-${Z}` : void 0,
|
|
257
|
+
placeholder: U.length === 0 ? H.placeholder : void 0,
|
|
258
|
+
value: W,
|
|
259
|
+
onChange: Ye,
|
|
260
|
+
onKeyDown: Xe,
|
|
261
|
+
onPaste: Ze,
|
|
262
|
+
onBlur: Qe,
|
|
263
|
+
onFocus: () => {
|
|
264
|
+
ze && !Re && Y.length > 0 && G(!0);
|
|
265
|
+
},
|
|
266
|
+
disabled: P,
|
|
267
|
+
autoComplete: "off",
|
|
268
|
+
className: r("tags-input--input", "box-border min-w-20 flex-1 border-0 bg-transparent p-0 font-sans text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed", ne[V])
|
|
269
|
+
})]
|
|
270
|
+
}), !!C && /* @__PURE__ */ M(ae, {
|
|
271
|
+
anchor: Fe,
|
|
272
|
+
align: "start",
|
|
273
|
+
type: "menu",
|
|
274
|
+
initialFocus: !1,
|
|
275
|
+
finalFocus: !1,
|
|
276
|
+
role: "listbox",
|
|
277
|
+
id: Ie,
|
|
278
|
+
"aria-label": H.recommendationsLabel ?? F.recommendationsLabel,
|
|
279
|
+
className: "tags-input--recommendations w-(--anchor-width) max-h-[200px]",
|
|
280
|
+
children: /* @__PURE__ */ M("div", { children: Y.length > 0 ? Y.map((e, t) => {
|
|
281
|
+
let n = U.some((t) => q(t) === q(e.value));
|
|
282
|
+
return /* @__PURE__ */ N("button", {
|
|
283
|
+
id: `${Ie}-${t}`,
|
|
284
|
+
role: "option",
|
|
285
|
+
"aria-selected": Z === t,
|
|
286
|
+
tabIndex: -1,
|
|
287
|
+
type: "button",
|
|
288
|
+
onPointerDown: (e) => e.preventDefault(),
|
|
289
|
+
onClick: () => {
|
|
290
|
+
Q([e.value]), Pe.current?.focus();
|
|
291
|
+
},
|
|
292
|
+
onMouseEnter: () => K(t),
|
|
293
|
+
className: r(d.interactive, u(), o[B ?? "sm"], "box-border w-full cursor-pointer justify-between border-0 bg-transparent font-sans text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", Z === t && "bg-accent text-accent-foreground"),
|
|
294
|
+
children: [/* @__PURE__ */ M(f, { children: e.label }), /* @__PURE__ */ M(ue, { className: r("ml-auto size-icon-sm", n ? "opacity-100" : "opacity-0") })]
|
|
295
|
+
}, e.key);
|
|
296
|
+
}) : /* @__PURE__ */ M(a, {
|
|
297
|
+
tag: "div",
|
|
298
|
+
size: "xs",
|
|
299
|
+
type: "secondary",
|
|
300
|
+
className: "px-row-x py-row-y",
|
|
301
|
+
children: H.emptyRecommendations
|
|
302
|
+
}) })
|
|
303
|
+
})]
|
|
304
|
+
}),
|
|
305
|
+
(ot || st) && /* @__PURE__ */ N("div", {
|
|
306
|
+
className: "tags-input--footer flex items-center justify-between gap-space-sm",
|
|
307
|
+
children: [at !== void 0 && /* @__PURE__ */ M(a, {
|
|
308
|
+
id: Le,
|
|
309
|
+
tag: "span",
|
|
310
|
+
size: "xs",
|
|
311
|
+
type: it ? "error" : "secondary",
|
|
312
|
+
className: "tags-input--count tabular-nums",
|
|
313
|
+
children: H.summary(U.length, at)
|
|
314
|
+
}), !!st && /* @__PURE__ */ M(i, {
|
|
315
|
+
type: "button",
|
|
316
|
+
size: "sm",
|
|
317
|
+
onClick: $e,
|
|
318
|
+
disabled: P,
|
|
319
|
+
className: "tags-input--clear ms-auto",
|
|
320
|
+
children: H.clearAll
|
|
321
|
+
})]
|
|
322
|
+
})
|
|
323
|
+
]
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
fe.displayName = "TagsInput";
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region src/components/base/value-inputs/phone-input.tsx
|
|
329
|
+
var pe = {
|
|
330
|
+
prefixPlaceholder: "Prefix",
|
|
331
|
+
prefixAriaLabel: "Country prefix"
|
|
332
|
+
}, I = {
|
|
333
|
+
US: {
|
|
334
|
+
value: "+1",
|
|
335
|
+
label: "United States",
|
|
336
|
+
iso: "US"
|
|
337
|
+
},
|
|
338
|
+
CA: {
|
|
339
|
+
value: "+1",
|
|
340
|
+
label: "Canada",
|
|
341
|
+
iso: "CA"
|
|
342
|
+
},
|
|
343
|
+
AU: {
|
|
344
|
+
value: "+61",
|
|
345
|
+
label: "Australia",
|
|
346
|
+
iso: "AU"
|
|
347
|
+
},
|
|
348
|
+
BG: {
|
|
349
|
+
value: "+359",
|
|
350
|
+
label: "Bulgaria",
|
|
351
|
+
iso: "BG"
|
|
352
|
+
},
|
|
353
|
+
GR: {
|
|
354
|
+
value: "+30",
|
|
355
|
+
label: "Greece",
|
|
356
|
+
iso: "GR"
|
|
357
|
+
},
|
|
358
|
+
GB: {
|
|
359
|
+
value: "+44",
|
|
360
|
+
label: "United Kingdom",
|
|
361
|
+
iso: "GB"
|
|
362
|
+
},
|
|
363
|
+
DE: {
|
|
364
|
+
value: "+49",
|
|
365
|
+
label: "Germany",
|
|
366
|
+
iso: "DE"
|
|
367
|
+
},
|
|
368
|
+
FR: {
|
|
369
|
+
value: "+33",
|
|
370
|
+
label: "France",
|
|
371
|
+
iso: "FR"
|
|
372
|
+
},
|
|
373
|
+
IT: {
|
|
374
|
+
value: "+39",
|
|
375
|
+
label: "Italy",
|
|
376
|
+
iso: "IT"
|
|
377
|
+
},
|
|
378
|
+
ES: {
|
|
379
|
+
value: "+34",
|
|
380
|
+
label: "Spain",
|
|
381
|
+
iso: "ES"
|
|
382
|
+
},
|
|
383
|
+
NL: {
|
|
384
|
+
value: "+31",
|
|
385
|
+
label: "Netherlands",
|
|
386
|
+
iso: "NL"
|
|
387
|
+
},
|
|
388
|
+
BE: {
|
|
389
|
+
value: "+32",
|
|
390
|
+
label: "Belgium",
|
|
391
|
+
iso: "BE"
|
|
392
|
+
},
|
|
393
|
+
AT: {
|
|
394
|
+
value: "+43",
|
|
395
|
+
label: "Austria",
|
|
396
|
+
iso: "AT"
|
|
397
|
+
},
|
|
398
|
+
CH: {
|
|
399
|
+
value: "+41",
|
|
400
|
+
label: "Switzerland",
|
|
401
|
+
iso: "CH"
|
|
402
|
+
},
|
|
403
|
+
PL: {
|
|
404
|
+
value: "+48",
|
|
405
|
+
label: "Poland",
|
|
406
|
+
iso: "PL"
|
|
407
|
+
},
|
|
408
|
+
RO: {
|
|
409
|
+
value: "+40",
|
|
410
|
+
label: "Romania",
|
|
411
|
+
iso: "RO"
|
|
412
|
+
},
|
|
413
|
+
RS: {
|
|
414
|
+
value: "+381",
|
|
415
|
+
label: "Serbia",
|
|
416
|
+
iso: "RS"
|
|
417
|
+
},
|
|
418
|
+
HR: {
|
|
419
|
+
value: "+385",
|
|
420
|
+
label: "Croatia",
|
|
421
|
+
iso: "HR"
|
|
422
|
+
},
|
|
423
|
+
SI: {
|
|
424
|
+
value: "+386",
|
|
425
|
+
label: "Slovenia",
|
|
426
|
+
iso: "SI"
|
|
427
|
+
},
|
|
428
|
+
MK: {
|
|
429
|
+
value: "+389",
|
|
430
|
+
label: "North Macedonia",
|
|
431
|
+
iso: "MK"
|
|
432
|
+
},
|
|
433
|
+
TR: {
|
|
434
|
+
value: "+90",
|
|
435
|
+
label: "Turkey",
|
|
436
|
+
iso: "TR"
|
|
437
|
+
},
|
|
438
|
+
RU: {
|
|
439
|
+
value: "+7",
|
|
440
|
+
label: "Russia",
|
|
441
|
+
iso: "RU"
|
|
442
|
+
},
|
|
443
|
+
UA: {
|
|
444
|
+
value: "+380",
|
|
445
|
+
label: "Ukraine",
|
|
446
|
+
iso: "UA"
|
|
447
|
+
},
|
|
448
|
+
SK: {
|
|
449
|
+
value: "+421",
|
|
450
|
+
label: "Slovakia",
|
|
451
|
+
iso: "SK"
|
|
452
|
+
},
|
|
453
|
+
CZ: {
|
|
454
|
+
value: "+420",
|
|
455
|
+
label: "Czech Republic",
|
|
456
|
+
iso: "CZ"
|
|
457
|
+
},
|
|
458
|
+
HU: {
|
|
459
|
+
value: "+36",
|
|
460
|
+
label: "Hungary",
|
|
461
|
+
iso: "HU"
|
|
462
|
+
},
|
|
463
|
+
PT: {
|
|
464
|
+
value: "+351",
|
|
465
|
+
label: "Portugal",
|
|
466
|
+
iso: "PT"
|
|
467
|
+
},
|
|
468
|
+
IE: {
|
|
469
|
+
value: "+353",
|
|
470
|
+
label: "Ireland",
|
|
471
|
+
iso: "IE"
|
|
472
|
+
},
|
|
473
|
+
SE: {
|
|
474
|
+
value: "+46",
|
|
475
|
+
label: "Sweden",
|
|
476
|
+
iso: "SE"
|
|
477
|
+
},
|
|
478
|
+
NO: {
|
|
479
|
+
value: "+47",
|
|
480
|
+
label: "Norway",
|
|
481
|
+
iso: "NO"
|
|
482
|
+
},
|
|
483
|
+
DK: {
|
|
484
|
+
value: "+45",
|
|
485
|
+
label: "Denmark",
|
|
486
|
+
iso: "DK"
|
|
487
|
+
},
|
|
488
|
+
FI: {
|
|
489
|
+
value: "+358",
|
|
490
|
+
label: "Finland",
|
|
491
|
+
iso: "FI"
|
|
492
|
+
},
|
|
493
|
+
CY: {
|
|
494
|
+
value: "+357",
|
|
495
|
+
label: "Cyprus",
|
|
496
|
+
iso: "CY"
|
|
497
|
+
},
|
|
498
|
+
AL: {
|
|
499
|
+
value: "+355",
|
|
500
|
+
label: "Albania",
|
|
501
|
+
iso: "AL"
|
|
502
|
+
},
|
|
503
|
+
ME: {
|
|
504
|
+
value: "+382",
|
|
505
|
+
label: "Montenegro",
|
|
506
|
+
iso: "ME"
|
|
507
|
+
},
|
|
508
|
+
BA: {
|
|
509
|
+
value: "+387",
|
|
510
|
+
label: "Bosnia and Herzegovina",
|
|
511
|
+
iso: "BA"
|
|
512
|
+
},
|
|
513
|
+
XK: {
|
|
514
|
+
value: "+383",
|
|
515
|
+
label: "Kosovo",
|
|
516
|
+
iso: "XK"
|
|
517
|
+
},
|
|
518
|
+
MD: {
|
|
519
|
+
value: "+373",
|
|
520
|
+
label: "Moldova",
|
|
521
|
+
iso: "MD"
|
|
522
|
+
},
|
|
523
|
+
BY: {
|
|
524
|
+
value: "+375",
|
|
525
|
+
label: "Belarus",
|
|
526
|
+
iso: "BY"
|
|
527
|
+
},
|
|
528
|
+
LT: {
|
|
529
|
+
value: "+370",
|
|
530
|
+
label: "Lithuania",
|
|
531
|
+
iso: "LT"
|
|
532
|
+
},
|
|
533
|
+
LV: {
|
|
534
|
+
value: "+371",
|
|
535
|
+
label: "Latvia",
|
|
536
|
+
iso: "LV"
|
|
537
|
+
},
|
|
538
|
+
EE: {
|
|
539
|
+
value: "+372",
|
|
540
|
+
label: "Estonia",
|
|
541
|
+
iso: "EE"
|
|
542
|
+
}
|
|
543
|
+
}, me = [
|
|
544
|
+
"US",
|
|
545
|
+
"CA",
|
|
546
|
+
"GB",
|
|
547
|
+
"DE",
|
|
548
|
+
"FR",
|
|
549
|
+
"IT",
|
|
550
|
+
"ES",
|
|
551
|
+
"AU"
|
|
552
|
+
], he = (e) => typeof e == "string" ? I[e.toUpperCase()] ?? null : e, ge = (e) => e.map(he).filter((e) => e !== null), _e = (e, t) => {
|
|
553
|
+
let n = e.trim().replace(/\s+/g, " ").replace(/[^\d ()+-]/g, "");
|
|
554
|
+
return t && n.startsWith(t) && (n = n.slice(t.length).replace(/^[\s-]+/, "")), t && n.startsWith("0") && (n = n.slice(1)), n;
|
|
555
|
+
}, ve = (e, t) => e ? e.startsWith("+") ? e : I[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
|
|
556
|
+
function L({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, defaultPrefix: c, prefixes: l = me, onPrefixChange: u, disablePrefixSelector: d = !1, prefixPlaceholder: f, prefixWidth: p = "w-30", showCountryName: m = !0, showPrefixInDropdown: te = !0, invalid: _, disabled: b, className: x, size: ae, strings: T, ...E }, D) {
|
|
557
|
+
let { defaultScale: le } = t(), A = re(ae, le), ue = n(pe, T), P = k(() => ge(l), [l]), F = k(() => ve(c, P), [c, P]), [de, fe] = j(F), [he, L] = j(() => {
|
|
558
|
+
let e = s ?? c;
|
|
559
|
+
return e && !e.startsWith("+") ? e.toUpperCase() : P.find((e) => e.value === F)?.iso;
|
|
560
|
+
}), ye = s !== void 0, R = ye ? ve(s, P) : de, z = k(() => {
|
|
561
|
+
if (!R || P.some((e) => e.value === R)) return P;
|
|
562
|
+
let e = Object.values(I).find((e) => e.value === R);
|
|
563
|
+
return e ? [e, ...P] : P;
|
|
564
|
+
}, [P, R]), B = k(() => z.find((e) => e.iso === (s && !s.startsWith("+") ? s.toUpperCase() : he) && e.value === R) ?? z.find((e) => e.value === R), [
|
|
565
|
+
z,
|
|
566
|
+
R,
|
|
567
|
+
he,
|
|
568
|
+
s
|
|
569
|
+
]), be = O((e) => {
|
|
570
|
+
if (e === null) return;
|
|
571
|
+
let t = z.find((t) => t.iso === e);
|
|
572
|
+
t && (L(t.iso), ye || fe(t.value), u?.(t.value));
|
|
573
|
+
}, [
|
|
574
|
+
ye,
|
|
575
|
+
u,
|
|
576
|
+
z
|
|
577
|
+
]), V = O((e) => {
|
|
578
|
+
if (!o) return;
|
|
579
|
+
let t = e.target.value;
|
|
580
|
+
if (R && t.startsWith(R)) {
|
|
581
|
+
let n = t.slice(R.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
|
|
582
|
+
if (r !== t) {
|
|
583
|
+
o({
|
|
584
|
+
...e,
|
|
585
|
+
target: {
|
|
586
|
+
...e.target,
|
|
587
|
+
value: r
|
|
588
|
+
},
|
|
589
|
+
currentTarget: {
|
|
590
|
+
...e.currentTarget,
|
|
591
|
+
value: r
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
o(e);
|
|
598
|
+
}, [o, R]), xe = O((t) => {
|
|
599
|
+
if (e && typeof o == "function") {
|
|
600
|
+
let e = _e(t.target.value, R);
|
|
601
|
+
e !== t.target.value && o({
|
|
602
|
+
...t,
|
|
603
|
+
target: {
|
|
604
|
+
...t.target,
|
|
605
|
+
value: e
|
|
606
|
+
},
|
|
607
|
+
currentTarget: {
|
|
608
|
+
...t.currentTarget,
|
|
609
|
+
value: e
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
i?.(t);
|
|
614
|
+
}, [
|
|
615
|
+
e,
|
|
616
|
+
o,
|
|
617
|
+
i,
|
|
618
|
+
R
|
|
619
|
+
]);
|
|
620
|
+
if (z.length === 0 || d) {
|
|
621
|
+
let e = R || c;
|
|
622
|
+
return e ? /* @__PURE__ */ N("div", {
|
|
623
|
+
className: "flex items-start gap-space-md",
|
|
624
|
+
children: [/* @__PURE__ */ M("div", {
|
|
625
|
+
"aria-invalid": _ || void 0,
|
|
626
|
+
className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted", ie[A], ne[A], g[A], b && "opacity-50", ee.invalid),
|
|
627
|
+
children: /* @__PURE__ */ M(a, {
|
|
628
|
+
tag: "span",
|
|
629
|
+
size: "inherit",
|
|
630
|
+
type: "secondary",
|
|
631
|
+
lineHeight: "tight",
|
|
632
|
+
children: e
|
|
633
|
+
})
|
|
634
|
+
}), /* @__PURE__ */ M("div", {
|
|
635
|
+
className: "flex-1",
|
|
636
|
+
children: /* @__PURE__ */ M(y, {
|
|
637
|
+
ref: D,
|
|
638
|
+
size: A,
|
|
639
|
+
type: "tel",
|
|
640
|
+
autoComplete: "tel",
|
|
641
|
+
inputMode: "tel",
|
|
642
|
+
onChange: V,
|
|
643
|
+
onBlur: xe,
|
|
644
|
+
invalid: _,
|
|
645
|
+
disabled: b,
|
|
646
|
+
className: x,
|
|
647
|
+
...E
|
|
648
|
+
})
|
|
649
|
+
})]
|
|
650
|
+
}) : /* @__PURE__ */ M(y, {
|
|
651
|
+
ref: D,
|
|
652
|
+
size: A,
|
|
653
|
+
type: "tel",
|
|
654
|
+
autoComplete: "tel",
|
|
655
|
+
inputMode: "tel",
|
|
656
|
+
onChange: V,
|
|
657
|
+
onBlur: xe,
|
|
658
|
+
invalid: _,
|
|
659
|
+
disabled: b,
|
|
660
|
+
className: r("phone-input--component", x),
|
|
661
|
+
...E
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
return /* @__PURE__ */ N("div", {
|
|
665
|
+
className: "flex items-start gap-space-md",
|
|
666
|
+
children: [/* @__PURE__ */ N(ce, {
|
|
667
|
+
value: B?.iso ?? null,
|
|
668
|
+
onValueChange: (e) => be(e),
|
|
669
|
+
disabled: b,
|
|
670
|
+
children: [/* @__PURE__ */ M(S, {
|
|
671
|
+
"aria-label": ue.prefixAriaLabel,
|
|
672
|
+
"aria-invalid": _ || void 0,
|
|
673
|
+
iconClassName: h.icon[A],
|
|
674
|
+
className: r("phone-input--prefix-trigger", v(A), "shrink-0", p),
|
|
675
|
+
children: /* @__PURE__ */ M(w, {
|
|
676
|
+
placeholder: /* @__PURE__ */ M(a, {
|
|
677
|
+
tag: "span",
|
|
678
|
+
size: "inherit",
|
|
679
|
+
type: "secondary",
|
|
680
|
+
lineHeight: "tight",
|
|
681
|
+
className: "text-inherit",
|
|
682
|
+
children: f ?? ue.prefixPlaceholder
|
|
683
|
+
}),
|
|
684
|
+
children: !!B && /* @__PURE__ */ M(a, {
|
|
685
|
+
tag: "span",
|
|
686
|
+
size: "inherit",
|
|
687
|
+
lineHeight: "tight",
|
|
688
|
+
className: "text-inherit",
|
|
689
|
+
children: B.value
|
|
690
|
+
})
|
|
691
|
+
})
|
|
692
|
+
}), /* @__PURE__ */ M(oe, { children: /* @__PURE__ */ M(se, { children: z.map((e) => /* @__PURE__ */ M(C, {
|
|
693
|
+
value: e.iso,
|
|
694
|
+
size: A,
|
|
695
|
+
children: /* @__PURE__ */ N("div", {
|
|
696
|
+
className: "flex items-center gap-space-md",
|
|
697
|
+
children: [!!te && /* @__PURE__ */ M(a, {
|
|
698
|
+
tag: "span",
|
|
699
|
+
size: "inherit",
|
|
700
|
+
weight: "medium",
|
|
701
|
+
lineHeight: "tight",
|
|
702
|
+
className: "min-w-13 tabular-nums text-inherit",
|
|
703
|
+
children: e.value
|
|
704
|
+
}), !!m && /* @__PURE__ */ M(a, {
|
|
705
|
+
tag: "span",
|
|
706
|
+
size: "inherit",
|
|
707
|
+
lineHeight: "tight",
|
|
708
|
+
className: "text-inherit",
|
|
709
|
+
children: e.label
|
|
710
|
+
})]
|
|
711
|
+
})
|
|
712
|
+
}, e.iso)) }) })]
|
|
713
|
+
}), /* @__PURE__ */ M("div", {
|
|
714
|
+
className: "flex-1",
|
|
715
|
+
children: /* @__PURE__ */ M(y, {
|
|
716
|
+
ref: D,
|
|
717
|
+
size: A,
|
|
718
|
+
type: "tel",
|
|
719
|
+
autoComplete: "tel",
|
|
720
|
+
inputMode: "tel",
|
|
721
|
+
onChange: V,
|
|
722
|
+
onBlur: xe,
|
|
723
|
+
invalid: _,
|
|
724
|
+
disabled: b,
|
|
725
|
+
className: x,
|
|
726
|
+
...E
|
|
727
|
+
})
|
|
728
|
+
})]
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
var ye = D(T.forwardRef(L));
|
|
732
|
+
ye.displayName = "PhoneInput";
|
|
733
|
+
//#endregion
|
|
734
|
+
//#region src/components/base/value-inputs/color-input.tsx
|
|
735
|
+
var R = { chooseColor: "Choose color" }, z = {
|
|
736
|
+
sm: "size-control-sm",
|
|
737
|
+
md: "size-control",
|
|
738
|
+
lg: "size-control-lg"
|
|
739
|
+
};
|
|
740
|
+
function B(e) {
|
|
741
|
+
let t = e.trim().toLowerCase();
|
|
742
|
+
return /^#[0-9a-f]{6}$/.test(t) ? t : /^#[0-9a-f]{3}$/.test(t) ? `#${t.slice(1).split("").map((e) => `${e}${e}`).join("")}` : null;
|
|
743
|
+
}
|
|
744
|
+
function be(e, t) {
|
|
745
|
+
let n = Number(e.toFixed(t));
|
|
746
|
+
return Object.is(n, -0) ? 0 : n;
|
|
747
|
+
}
|
|
748
|
+
function V(e) {
|
|
749
|
+
let t = B(e);
|
|
750
|
+
if (!t) return e;
|
|
751
|
+
let [n, r, i] = [
|
|
752
|
+
1,
|
|
753
|
+
3,
|
|
754
|
+
5
|
|
755
|
+
].map((e) => Number.parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), a = Math.cbrt(.4122214708 * n + .5363325363 * r + .0514459929 * i), o = Math.cbrt(.2119034982 * n + .6806995451 * r + .1073969566 * i), s = Math.cbrt(.0883024619 * n + .2817188376 * r + .6299787005 * i), c = .2104542553 * a + .793617785 * o - .0040720468 * s, l = 1.9779984951 * a - 2.428592205 * o + .4505937099 * s, u = .0259040371 * a + .7827717662 * o - .808675766 * s, d = Math.hypot(l, u), f = d < 5e-5 ? 0 : Math.atan2(u, l) * 180 / Math.PI + (u < 0 ? 360 : 0);
|
|
756
|
+
return `oklch(${be(c, 4)} ${be(d, 4)} ${be(f, 2)})`;
|
|
757
|
+
}
|
|
758
|
+
function xe(e, t) {
|
|
759
|
+
let n = window.getComputedStyle(e).backgroundColor, r = B(n);
|
|
760
|
+
if (r) return r;
|
|
761
|
+
if (typeof CanvasRenderingContext2D > "u") return t;
|
|
762
|
+
try {
|
|
763
|
+
let e = document.createElement("canvas");
|
|
764
|
+
e.width = 1, e.height = 1;
|
|
765
|
+
let r = e.getContext("2d", { willReadFrequently: !0 });
|
|
766
|
+
if (!r) return t;
|
|
767
|
+
r.clearRect(0, 0, 1, 1), r.fillStyle = n, r.fillRect(0, 0, 1, 1);
|
|
768
|
+
let [i, a, o, s] = r.getImageData(0, 0, 1, 1).data;
|
|
769
|
+
return s === 0 ? t : `#${[
|
|
770
|
+
i,
|
|
771
|
+
a,
|
|
772
|
+
o
|
|
773
|
+
].map((e) => e.toString(16).padStart(2, "0")).join("")}`;
|
|
774
|
+
} catch {
|
|
775
|
+
return t;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
var H = T.forwardRef(function({ className: e, value: i, defaultValue: a, onChange: o, onValueChange: s, previewValue: l, pickerAriaLabel: u, size: d, disabled: f, readOnly: p, invalid: m, strings: h, inputStrings: te, ...ne }, g) {
|
|
779
|
+
let _ = n(R, h), { defaultScale: v } = t(), ie = re(d, v), [b, x] = T.useState(a ?? ""), ae = i ?? b, S = l ?? ae, oe = B(ae) ?? "#000000", [se, ce] = T.useState(oe), C = T.useRef(null);
|
|
780
|
+
T.useLayoutEffect(() => {
|
|
781
|
+
let e = B(S);
|
|
782
|
+
if (e) {
|
|
783
|
+
ce(e);
|
|
784
|
+
return;
|
|
785
|
+
}
|
|
786
|
+
C.current && typeof window < "u" && ce((e) => xe(C.current, e));
|
|
787
|
+
}, [S]);
|
|
788
|
+
let w = (e) => {
|
|
789
|
+
i === void 0 && x(e.target.value), o?.(e), s?.(e.target.value);
|
|
790
|
+
};
|
|
791
|
+
return /* @__PURE__ */ N(c, {
|
|
792
|
+
direction: "horizontal",
|
|
793
|
+
gap: "sm",
|
|
794
|
+
align: "center",
|
|
795
|
+
wrap: !1,
|
|
796
|
+
className: r("color-input--component min-w-0 [&>.input--component]:min-w-0 [&>.input--component]:flex-1", e),
|
|
797
|
+
children: [/* @__PURE__ */ N("label", {
|
|
798
|
+
"aria-invalid": m || void 0,
|
|
799
|
+
className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-3 has-[input:focus-visible]:ring-ring/50", ee.invalid, "aria-invalid:has-[input:focus-visible]:border-destructive aria-invalid:has-[input:focus-visible]:ring-destructive/30 dark:aria-invalid:has-[input:focus-visible]:ring-destructive/50", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", z[ie]),
|
|
800
|
+
"data-disabled": f || p || void 0,
|
|
801
|
+
children: [/* @__PURE__ */ M("span", {
|
|
802
|
+
ref: C,
|
|
803
|
+
"aria-hidden": "true",
|
|
804
|
+
"data-user-color": !0,
|
|
805
|
+
className: "color-input--swatch absolute inset-1 rounded-radius-xs",
|
|
806
|
+
style: { background: S || "transparent" }
|
|
807
|
+
}), /* @__PURE__ */ M("input", {
|
|
808
|
+
type: "color",
|
|
809
|
+
value: se,
|
|
810
|
+
disabled: f || p,
|
|
811
|
+
"aria-label": u ?? _.chooseColor,
|
|
812
|
+
onInput: (e) => {
|
|
813
|
+
let t = V(e.currentTarget.value);
|
|
814
|
+
i === void 0 && x(t), o && o({
|
|
815
|
+
...e,
|
|
816
|
+
target: {
|
|
817
|
+
...e.currentTarget,
|
|
818
|
+
value: t
|
|
819
|
+
},
|
|
820
|
+
currentTarget: {
|
|
821
|
+
...e.currentTarget,
|
|
822
|
+
value: t
|
|
823
|
+
}
|
|
824
|
+
}), s?.(t);
|
|
825
|
+
},
|
|
826
|
+
className: "color-input--native absolute inset-0 size-full cursor-pointer opacity-0"
|
|
827
|
+
})]
|
|
828
|
+
}), /* @__PURE__ */ M(y, {
|
|
829
|
+
...ne,
|
|
830
|
+
ref: g,
|
|
831
|
+
size: ie,
|
|
832
|
+
value: ae,
|
|
833
|
+
disabled: f,
|
|
834
|
+
readOnly: p,
|
|
835
|
+
invalid: m,
|
|
836
|
+
onChange: w,
|
|
837
|
+
strings: te,
|
|
838
|
+
className: "min-w-0 flex-1 font-mono"
|
|
839
|
+
})]
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
H.displayName = "ColorInput";
|
|
843
|
+
//#endregion
|
|
844
|
+
//#region src/components/base/value-inputs/slider.tsx
|
|
845
|
+
var Se = { ariaLabel: "Value" };
|
|
846
|
+
function Ce({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: c, value: u, defaultValue: d, min: f = 0, max: p = 100, step: ee = 1, disabled: m = !1, invalid: h = !1, onChange: te, onValueChange: ne, onValueCommitted: re, showValue: g = !1, formatValue: _, unit: v, className: ie, orientation: y = "horizontal" }, b) {
|
|
847
|
+
let x = le(), ae = n(Se, c), S = t ?? `slider-${x}`, oe = e ?? S, se = i ?? ae.ariaLabel, ce = O((e) => {
|
|
848
|
+
let t = Array.isArray(e) ? e[0] : e;
|
|
849
|
+
ne?.(t), te?.({ target: {
|
|
850
|
+
name: oe,
|
|
851
|
+
value: t
|
|
852
|
+
} });
|
|
853
|
+
}, [
|
|
854
|
+
oe,
|
|
855
|
+
te,
|
|
856
|
+
ne
|
|
857
|
+
]), C = O((e) => {
|
|
858
|
+
let t = Array.isArray(e) ? e[0] : e;
|
|
859
|
+
re?.(t);
|
|
860
|
+
}, [re]), w = k(() => {
|
|
861
|
+
if (!g) return null;
|
|
862
|
+
let e = u ?? d ?? f;
|
|
863
|
+
return _ ? _(e) : v ? `${e}${v}` : String(e);
|
|
864
|
+
}, [
|
|
865
|
+
g,
|
|
866
|
+
u,
|
|
867
|
+
d,
|
|
868
|
+
f,
|
|
869
|
+
_,
|
|
870
|
+
v
|
|
871
|
+
]), T = u === void 0 ? void 0 : [u], E = d === void 0 ? [f] : [d];
|
|
872
|
+
return /* @__PURE__ */ N("div", {
|
|
873
|
+
className: r("slider--component", "flex items-center gap-space-lg", ie),
|
|
874
|
+
children: [/* @__PURE__ */ M(P.Root, {
|
|
875
|
+
ref: b,
|
|
876
|
+
"data-slot": "slider",
|
|
877
|
+
id: S,
|
|
878
|
+
"aria-label": se,
|
|
879
|
+
"aria-labelledby": o,
|
|
880
|
+
"aria-describedby": s,
|
|
881
|
+
value: T,
|
|
882
|
+
defaultValue: E,
|
|
883
|
+
min: f,
|
|
884
|
+
max: p,
|
|
885
|
+
step: ee,
|
|
886
|
+
disabled: m,
|
|
887
|
+
orientation: y,
|
|
888
|
+
onValueChange: ce,
|
|
889
|
+
onValueCommitted: C,
|
|
890
|
+
"aria-invalid": h || void 0,
|
|
891
|
+
className: r("box-border data-[orientation=horizontal]:w-full data-[orientation=horizontal]:px-[calc(var(--icon)/2)] data-[orientation=vertical]:h-full", "min-w-0 flex-1", h && "[&_[data-slot=slider-range]]:bg-destructive"),
|
|
892
|
+
children: /* @__PURE__ */ N(P.Control, {
|
|
893
|
+
className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=horizontal]:min-h-control data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
894
|
+
children: [/* @__PURE__ */ M(P.Track, {
|
|
895
|
+
"data-slot": "slider-track",
|
|
896
|
+
className: r("relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", l),
|
|
897
|
+
children: /* @__PURE__ */ M(P.Indicator, {
|
|
898
|
+
"data-slot": "slider-range",
|
|
899
|
+
className: "absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
900
|
+
})
|
|
901
|
+
}), /* @__PURE__ */ M(P.Thumb, {
|
|
902
|
+
index: 0,
|
|
903
|
+
"data-slot": "slider-thumb",
|
|
904
|
+
getAriaLabel: () => se,
|
|
905
|
+
className: r("block size-icon shrink-0 rounded-full border border-primary bg-background shadow-sm transition-[color,box-shadow] select-none", "has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-3 has-[:focus-visible]:ring-ring/50 data-disabled:pointer-events-none", h && "border-destructive has-[:focus-visible]:ring-destructive/30 dark:has-[:focus-visible]:ring-destructive/50")
|
|
906
|
+
})]
|
|
907
|
+
})
|
|
908
|
+
}), !!g && w !== null && /* @__PURE__ */ M(a, {
|
|
909
|
+
tag: "span",
|
|
910
|
+
type: h ? "error" : "secondary",
|
|
911
|
+
className: "min-w-8 shrink-0 text-right tabular-nums",
|
|
912
|
+
children: w
|
|
913
|
+
})]
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
var we = T.forwardRef(Ce);
|
|
917
|
+
we.displayName = "SliderField";
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region src/components/base/value-inputs/date-time-input.tsx
|
|
920
|
+
var U = E(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) {
|
|
921
|
+
let u = e ? new Date(e) : void 0, d = O((e) => {
|
|
922
|
+
t?.(e.date ? e.date.toISOString() : void 0);
|
|
923
|
+
}, [t]);
|
|
924
|
+
return /* @__PURE__ */ M(b, {
|
|
925
|
+
ref: l,
|
|
926
|
+
className: "date-time-input--component",
|
|
927
|
+
id: c,
|
|
928
|
+
mode: "single",
|
|
929
|
+
disabled: s,
|
|
930
|
+
invalid: o,
|
|
931
|
+
placeholder: n,
|
|
932
|
+
value: u,
|
|
933
|
+
onValueChange: d,
|
|
934
|
+
readableFormat: r,
|
|
935
|
+
withTime: {
|
|
936
|
+
enabled: !0,
|
|
937
|
+
format: "24",
|
|
938
|
+
step: i * 60
|
|
939
|
+
},
|
|
940
|
+
modal: a
|
|
941
|
+
});
|
|
942
|
+
});
|
|
943
|
+
U.displayName = "DateTimeInput";
|
|
944
|
+
//#endregion
|
|
945
|
+
export { R as a, ye as c, F as d, H as i, pe as l, we as n, I as o, Se as r, me as s, U as t, fe as u };
|
|
946
|
+
|
|
947
|
+
//# sourceMappingURL=value-inputs-TAYMX111.js.map
|