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
package/dist/base/repeaters.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { s as e } from "../ui-provider-
|
|
2
|
+
import { s as e } from "../ui-provider-1D_NSYzO.js";
|
|
3
3
|
import { useStrings as t } from "../lib/strings.js";
|
|
4
|
-
import { t as n } from "../utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as o } from "../structure-
|
|
8
|
-
import { t as s } from "../
|
|
9
|
-
import {
|
|
10
|
-
import { t as l } from "../form-field-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
4
|
+
import { t as n } from "../utils-l5LpDw2z.js";
|
|
5
|
+
import { n as r } from "../buttons-SbIcm1HJ.js";
|
|
6
|
+
import { i, s as a } from "../typography-DTRkE9zL.js";
|
|
7
|
+
import { t as o } from "../structure-DC2dygdA.js";
|
|
8
|
+
import { t as s } from "../interaction-recipes-CHr0dJUs.js";
|
|
9
|
+
import { t as c } from "../input-DWhBBBww.js";
|
|
10
|
+
import { t as l } from "../form-field-DUt4UxSV.js";
|
|
11
|
+
import { d as u } from "../text-inputs-aaK9wcDT.js";
|
|
12
|
+
import { forwardRef as d, memo as f, useCallback as p, useId as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
|
|
13
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
14
|
+
import { GripVertical as x, Plus as S, Trash2 as C, X as w } from "lucide-react";
|
|
15
|
+
import { useController as T, useFieldArray as E, useFormContext as D } from "react-hook-form";
|
|
16
|
+
import { DndContext as O, KeyboardSensor as k, PointerSensor as A, closestCenter as ee, useSensor as j, useSensors as M } from "@dnd-kit/core";
|
|
17
|
+
import { SortableContext as N, sortableKeyboardCoordinates as P, useSortable as F, verticalListSortingStrategy as te } from "@dnd-kit/sortable";
|
|
17
18
|
import { CSS as I } from "@dnd-kit/utilities";
|
|
18
19
|
//#region src/components/base/repeaters/repeaters.strings.ts
|
|
19
20
|
var L = {
|
|
@@ -26,144 +27,144 @@ var L = {
|
|
|
26
27
|
removeAriaLabel: L.removeAriaLabel,
|
|
27
28
|
dragHandleAriaLabel: "Drag to reorder"
|
|
28
29
|
};
|
|
29
|
-
function
|
|
30
|
-
let
|
|
30
|
+
function ne({ item: e, index: t, sortable: i, rowVariant: a, removeVariant: o, hideRemove: c, disabled: l, strings: u, actionSize: d, onRemove: f, renderRow: p }) {
|
|
31
|
+
let m = F({
|
|
31
32
|
id: e.id,
|
|
32
|
-
disabled:
|
|
33
|
-
}),
|
|
34
|
-
transform: I.Transform.toString(
|
|
35
|
-
transition:
|
|
36
|
-
opacity:
|
|
37
|
-
} : void 0,
|
|
33
|
+
disabled: l || !i
|
|
34
|
+
}), h = i ? m.isDragging : !1, g = i ? {
|
|
35
|
+
transform: I.Transform.toString(m.transform),
|
|
36
|
+
transition: m.transition,
|
|
37
|
+
opacity: h ? .6 : 1
|
|
38
|
+
} : void 0, _ = i ? m.setNodeRef : void 0, v = i ? m.attributes : {}, S = i ? m.listeners : void 0, T = i ? /* @__PURE__ */ y(r, {
|
|
38
39
|
type: "button",
|
|
39
40
|
tone: "secondary",
|
|
40
41
|
buttonStyle: "ghost",
|
|
41
|
-
size:
|
|
42
|
+
size: d,
|
|
42
43
|
iconOnly: !0,
|
|
43
|
-
"aria-label":
|
|
44
|
-
disabled:
|
|
45
|
-
className: n("repeater--drag-handle", "shrink-0",
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
-
children: /* @__PURE__ */
|
|
44
|
+
"aria-label": u.dragHandleAriaLabel,
|
|
45
|
+
disabled: l,
|
|
46
|
+
className: n("repeater--drag-handle", "shrink-0", `text-muted-foreground ${s.rowHover}`, "cursor-grab active:cursor-grabbing"),
|
|
47
|
+
...v,
|
|
48
|
+
...S,
|
|
49
|
+
children: /* @__PURE__ */ y(x, {
|
|
49
50
|
className: "size-icon",
|
|
50
51
|
"aria-hidden": "true"
|
|
51
52
|
})
|
|
52
|
-
}) : null,
|
|
53
|
+
}) : null, E = c ? null : o === "icon-button" ? /* @__PURE__ */ y(r, {
|
|
53
54
|
type: "button",
|
|
54
55
|
tone: "secondary",
|
|
55
56
|
buttonStyle: "outline",
|
|
56
|
-
size:
|
|
57
|
+
size: d,
|
|
57
58
|
iconOnly: !0,
|
|
58
|
-
"aria-label":
|
|
59
|
-
disabled:
|
|
60
|
-
onClick: () =>
|
|
59
|
+
"aria-label": u.removeAriaLabel,
|
|
60
|
+
disabled: l,
|
|
61
|
+
onClick: () => f(t),
|
|
61
62
|
className: "repeater--remove shrink-0",
|
|
62
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ y(C, {
|
|
63
64
|
className: "size-icon",
|
|
64
65
|
"aria-hidden": "true"
|
|
65
66
|
})
|
|
66
|
-
}) : /* @__PURE__ */
|
|
67
|
+
}) : /* @__PURE__ */ y(r, {
|
|
67
68
|
type: "button",
|
|
68
69
|
tone: "secondary",
|
|
69
70
|
buttonStyle: "ghost",
|
|
70
|
-
size:
|
|
71
|
+
size: d,
|
|
71
72
|
iconOnly: !0,
|
|
72
|
-
"aria-label":
|
|
73
|
-
disabled:
|
|
74
|
-
onClick: () =>
|
|
75
|
-
className: n("repeater--remove", "shrink-0", "text-muted-foreground hover:
|
|
76
|
-
children: /* @__PURE__ */
|
|
73
|
+
"aria-label": u.removeAriaLabel,
|
|
74
|
+
disabled: l,
|
|
75
|
+
onClick: () => f(t),
|
|
76
|
+
className: n("repeater--remove", "shrink-0", "text-muted-foreground hover:text-destructive"),
|
|
77
|
+
children: /* @__PURE__ */ y(w, {
|
|
77
78
|
className: "size-icon",
|
|
78
79
|
"aria-hidden": "true"
|
|
79
80
|
})
|
|
80
81
|
});
|
|
81
|
-
return
|
|
82
|
-
ref:
|
|
83
|
-
style:
|
|
82
|
+
return a === "card" ? /* @__PURE__ */ y("div", {
|
|
83
|
+
ref: _,
|
|
84
|
+
style: g,
|
|
84
85
|
"data-repeater-item-id": e.id,
|
|
85
86
|
className: n("repeater--item", "relative rounded-radius border border-border bg-card text-card-foreground p-surface"),
|
|
86
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ b("div", {
|
|
87
88
|
className: "flex items-start gap-space-md",
|
|
88
89
|
children: [
|
|
89
|
-
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
T,
|
|
91
|
+
/* @__PURE__ */ y("div", {
|
|
91
92
|
className: "min-w-0 flex-1",
|
|
92
|
-
children:
|
|
93
|
+
children: p(e, {
|
|
93
94
|
index: t,
|
|
94
|
-
isDragging:
|
|
95
|
+
isDragging: h
|
|
95
96
|
})
|
|
96
97
|
}),
|
|
97
|
-
|
|
98
|
+
E
|
|
98
99
|
]
|
|
99
100
|
})
|
|
100
|
-
}) : /* @__PURE__ */
|
|
101
|
-
ref:
|
|
102
|
-
style:
|
|
101
|
+
}) : /* @__PURE__ */ b("div", {
|
|
102
|
+
ref: _,
|
|
103
|
+
style: g,
|
|
103
104
|
"data-repeater-item-id": e.id,
|
|
104
105
|
className: "repeater--item flex items-start gap-space-md",
|
|
105
106
|
children: [
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
T,
|
|
108
|
+
/* @__PURE__ */ y("div", {
|
|
108
109
|
className: "min-w-0 flex-1",
|
|
109
|
-
children:
|
|
110
|
+
children: p(e, {
|
|
110
111
|
index: t,
|
|
111
|
-
isDragging:
|
|
112
|
+
isDragging: h
|
|
112
113
|
})
|
|
113
114
|
}),
|
|
114
|
-
|
|
115
|
+
E
|
|
115
116
|
]
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
function z({ items: i, renderRow: s, onAdd: c, onRemove: l, onMove: u, sortable: d = !1, rowVariant:
|
|
119
|
-
let w = t(R,
|
|
119
|
+
function z({ items: i, renderRow: s, onAdd: c, onRemove: l, onMove: u, sortable: d = !1, rowVariant: f = "inline", removeVariant: m = "ghost", hideRemove: g = !1, hideAdd: _ = !1, disabled: v = !1, strings: x, className: C }) {
|
|
120
|
+
let w = t(R, x), { defaultScale: T } = e(), E = T ?? "md", D = M(j(A, { activationConstraint: { distance: 4 } }), j(k, { coordinateGetter: P })), F = p((e) => {
|
|
120
121
|
let { active: t, over: n } = e;
|
|
121
122
|
if (!n || t.id === n.id) return;
|
|
122
123
|
let r = i.findIndex((e) => e.id === t.id), a = i.findIndex((e) => e.id === n.id);
|
|
123
124
|
r < 0 || a < 0 || u?.(r, a);
|
|
124
|
-
}, [i, u]),
|
|
125
|
+
}, [i, u]), I = h(() => i.map((e) => e.id), [i]), L = /* @__PURE__ */ y(o, {
|
|
125
126
|
gap: "md",
|
|
126
127
|
className: "repeater--list",
|
|
127
|
-
children: i.map((e, t) => /* @__PURE__ */
|
|
128
|
+
children: i.map((e, t) => /* @__PURE__ */ y(ne, {
|
|
128
129
|
item: e,
|
|
129
130
|
index: t,
|
|
130
131
|
sortable: d,
|
|
131
|
-
rowVariant:
|
|
132
|
-
removeVariant:
|
|
132
|
+
rowVariant: f,
|
|
133
|
+
removeVariant: m,
|
|
133
134
|
hideRemove: g,
|
|
134
|
-
disabled:
|
|
135
|
+
disabled: v,
|
|
135
136
|
strings: w,
|
|
136
137
|
actionSize: E,
|
|
137
138
|
onRemove: l,
|
|
138
139
|
renderRow: s
|
|
139
140
|
}, e.id))
|
|
140
141
|
});
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ b(o, {
|
|
142
143
|
gap: "lg",
|
|
143
144
|
className: n("repeater--component", C),
|
|
144
|
-
children: [i.length === 0 ? /* @__PURE__ */
|
|
145
|
-
className: "repeater--empty rounded-radius border border-dashed border-
|
|
146
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: [i.length === 0 ? /* @__PURE__ */ y("div", {
|
|
146
|
+
className: "repeater--empty rounded-radius border border-dashed border-border p-surface",
|
|
147
|
+
children: /* @__PURE__ */ y(a, {
|
|
147
148
|
type: "secondary",
|
|
148
149
|
children: w.emptyState
|
|
149
150
|
})
|
|
150
|
-
}) : d ? /* @__PURE__ */
|
|
151
|
-
sensors:
|
|
152
|
-
collisionDetection:
|
|
153
|
-
onDragEnd:
|
|
154
|
-
children: /* @__PURE__ */
|
|
155
|
-
items:
|
|
156
|
-
strategy:
|
|
157
|
-
children:
|
|
151
|
+
}) : d ? /* @__PURE__ */ y(O, {
|
|
152
|
+
sensors: D,
|
|
153
|
+
collisionDetection: ee,
|
|
154
|
+
onDragEnd: F,
|
|
155
|
+
children: /* @__PURE__ */ y(N, {
|
|
156
|
+
items: I,
|
|
157
|
+
strategy: te,
|
|
158
|
+
children: L
|
|
158
159
|
})
|
|
159
|
-
}) :
|
|
160
|
+
}) : L, !_ && /* @__PURE__ */ b(r, {
|
|
160
161
|
type: "button",
|
|
161
162
|
tone: "secondary",
|
|
162
163
|
buttonStyle: "outline",
|
|
163
|
-
disabled:
|
|
164
|
+
disabled: v,
|
|
164
165
|
onClick: c,
|
|
165
166
|
className: "repeater--add self-start",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ y(S, { className: "size-icon" }), w.addButton]
|
|
167
168
|
})]
|
|
168
169
|
});
|
|
169
170
|
}
|
|
@@ -179,7 +180,7 @@ function B(e, t, n) {
|
|
|
179
180
|
function V(e, t) {
|
|
180
181
|
return e.length === t.length && e.every((e, n) => e === t[n]);
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
+
function re(e, t, n, r, i) {
|
|
183
184
|
let a = /* @__PURE__ */ new Map(), o = i;
|
|
184
185
|
return e.forEach((e, n) => {
|
|
185
186
|
let r = a.get(e) ?? [], i = t[n];
|
|
@@ -215,7 +216,7 @@ function U(e, t) {
|
|
|
215
216
|
lastExternalValues: [...t.values],
|
|
216
217
|
pendingInternalValues: null
|
|
217
218
|
};
|
|
218
|
-
let n =
|
|
219
|
+
let n = re(e.values, e.ids, t.values, e.prefix, e.nextId);
|
|
219
220
|
return {
|
|
220
221
|
...e,
|
|
221
222
|
values: [...t.values],
|
|
@@ -225,8 +226,8 @@ function U(e, t) {
|
|
|
225
226
|
pendingInternalValues: null
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
let [r, i] =
|
|
229
|
+
function ie(e, t, n) {
|
|
230
|
+
let [r, i] = g(U, void 0, () => H(e, t, n)), a = r.name !== e || !V(t, r.lastExternalValues), o = {
|
|
230
231
|
type: "sync",
|
|
231
232
|
name: e,
|
|
232
233
|
values: t
|
|
@@ -242,11 +243,11 @@ var W = {
|
|
|
242
243
|
dragHandleAriaLabel: "Drag to reorder",
|
|
243
244
|
...L
|
|
244
245
|
};
|
|
245
|
-
function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderField: o, strings:
|
|
246
|
-
let u = t(W,
|
|
246
|
+
function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderField: o, strings: s, className: l }) {
|
|
247
|
+
let u = t(W, s), { control: d } = D(), { field: f, fieldState: p } = T({
|
|
247
248
|
control: d,
|
|
248
249
|
name: e
|
|
249
|
-
}), h = Array.isArray(f.value) ? f.value : [], g = !!(r ||
|
|
250
|
+
}), h = Array.isArray(f.value) ? f.value : [], g = !!(r || p.invalid), _ = m().replace(/:/g, ""), { state: v, dispatch: b } = ie(e, h, _), x = (e, t, n) => {
|
|
250
251
|
b({
|
|
251
252
|
type: "commit",
|
|
252
253
|
values: e,
|
|
@@ -254,30 +255,30 @@ function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderFiel
|
|
|
254
255
|
nextId: n
|
|
255
256
|
}), f.onChange(e);
|
|
256
257
|
}, S = (e, t) => {
|
|
257
|
-
let n = [...
|
|
258
|
-
n[e] = t, x(n,
|
|
258
|
+
let n = [...v.values];
|
|
259
|
+
n[e] = t, x(n, v.ids);
|
|
259
260
|
}, C = () => {
|
|
260
|
-
let e = `${_}-row-${
|
|
261
|
-
x([...
|
|
262
|
-
},
|
|
263
|
-
x(
|
|
264
|
-
},
|
|
265
|
-
let n = B(
|
|
261
|
+
let e = `${_}-row-${v.nextId}`;
|
|
262
|
+
x([...v.values, ""], [...v.ids, e], v.nextId + 1);
|
|
263
|
+
}, w = (e) => {
|
|
264
|
+
x(v.values.filter((t, n) => n !== e), v.ids.filter((t, n) => n !== e));
|
|
265
|
+
}, E = (e, t) => {
|
|
266
|
+
let n = B(v.values, e, t), r = B(v.ids, e, t);
|
|
266
267
|
x(n, r);
|
|
267
|
-
}, O =
|
|
268
|
-
id:
|
|
268
|
+
}, O = v.values.map((e, t) => ({
|
|
269
|
+
id: v.ids[t],
|
|
269
270
|
value: e
|
|
270
271
|
}));
|
|
271
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ y(z, {
|
|
272
273
|
...a ? {
|
|
273
274
|
sortable: !0,
|
|
274
|
-
onMove:
|
|
275
|
+
onMove: E
|
|
275
276
|
} : { sortable: !1 },
|
|
276
277
|
className: n("string-repeater--component", l),
|
|
277
278
|
items: O,
|
|
278
279
|
disabled: i,
|
|
279
280
|
onAdd: C,
|
|
280
|
-
onRemove:
|
|
281
|
+
onRemove: w,
|
|
281
282
|
strings: {
|
|
282
283
|
emptyState: u.emptyState,
|
|
283
284
|
addButton: u.addButton,
|
|
@@ -296,7 +297,7 @@ function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderFiel
|
|
|
296
297
|
onBlur: f.onBlur,
|
|
297
298
|
ref: n === 0 ? f.ref : void 0
|
|
298
299
|
};
|
|
299
|
-
return o ? o(r) : /* @__PURE__ */
|
|
300
|
+
return o ? o(r) : /* @__PURE__ */ y(c, {
|
|
300
301
|
ref: r.ref,
|
|
301
302
|
name: r.name,
|
|
302
303
|
value: r.value,
|
|
@@ -317,18 +318,18 @@ var K = {
|
|
|
317
318
|
dragHandleAriaLabel: "Drag to reorder",
|
|
318
319
|
...L
|
|
319
320
|
};
|
|
320
|
-
function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable:
|
|
321
|
-
let h = t(K,
|
|
321
|
+
function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: s = !1, renderField: d, strings: f, className: m }) {
|
|
322
|
+
let h = t(K, f), { control: g, register: _ } = D(), { fields: v, append: b, remove: x, move: S } = E({
|
|
322
323
|
control: g,
|
|
323
324
|
name: e
|
|
324
|
-
}), C =
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
-
...
|
|
325
|
+
}), C = p(() => r.reduce((e, t) => (e[t.name] = "", e), {}), [r]);
|
|
326
|
+
return /* @__PURE__ */ y(z, {
|
|
327
|
+
...s ? {
|
|
327
328
|
sortable: !0,
|
|
328
329
|
onMove: (e, t) => S(e, t)
|
|
329
330
|
} : { sortable: !1 },
|
|
330
331
|
className: n("object-repeater--component", m),
|
|
331
|
-
items:
|
|
332
|
+
items: v,
|
|
332
333
|
rowVariant: "card",
|
|
333
334
|
removeVariant: "ghost",
|
|
334
335
|
disabled: a,
|
|
@@ -340,12 +341,12 @@ function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: u = !1,
|
|
|
340
341
|
removeAriaLabel: h.removeAriaLabel,
|
|
341
342
|
dragHandleAriaLabel: h.dragHandleAriaLabel
|
|
342
343
|
},
|
|
343
|
-
renderRow: (t, { index: n }) => /* @__PURE__ */
|
|
344
|
+
renderRow: (t, { index: n }) => /* @__PURE__ */ y(o, {
|
|
344
345
|
gap: "lg",
|
|
345
346
|
className: "object-repeater--fields",
|
|
346
347
|
children: r.map((t) => {
|
|
347
348
|
let r = `${e}.${n}.${t.name}`, o = _(r);
|
|
348
|
-
return d ? /* @__PURE__ */
|
|
349
|
+
return d ? /* @__PURE__ */ y("div", {
|
|
349
350
|
className: "object-repeater--field",
|
|
350
351
|
children: d(t, {
|
|
351
352
|
index: n,
|
|
@@ -354,19 +355,19 @@ function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: u = !1,
|
|
|
354
355
|
invalid: !!i,
|
|
355
356
|
disabled: a
|
|
356
357
|
})
|
|
357
|
-
}, t.name) : /* @__PURE__ */
|
|
358
|
+
}, t.name) : /* @__PURE__ */ y(l, {
|
|
358
359
|
label: t.label,
|
|
359
360
|
required: t.required,
|
|
360
361
|
hint: t.hint,
|
|
361
362
|
htmlFor: r,
|
|
362
|
-
children: t.type === "textarea" ? /* @__PURE__ */
|
|
363
|
+
children: t.type === "textarea" ? /* @__PURE__ */ y(u, {
|
|
363
364
|
...o,
|
|
364
365
|
id: r,
|
|
365
366
|
placeholder: t.placeholder,
|
|
366
367
|
minRows: 3,
|
|
367
368
|
invalid: i,
|
|
368
369
|
disabled: a
|
|
369
|
-
}) : /* @__PURE__ */
|
|
370
|
+
}) : /* @__PURE__ */ y(c, {
|
|
370
371
|
...o,
|
|
371
372
|
id: r,
|
|
372
373
|
type: t.type || "text",
|
|
@@ -382,7 +383,7 @@ function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: u = !1,
|
|
|
382
383
|
q.displayName = "ObjectRepeater";
|
|
383
384
|
//#endregion
|
|
384
385
|
//#region src/components/base/repeaters/key-value-editor.tsx
|
|
385
|
-
var
|
|
386
|
+
var ae = {
|
|
386
387
|
keyLabel: "Key",
|
|
387
388
|
valueLabel: "Value",
|
|
388
389
|
keyPlaceholder: "key",
|
|
@@ -390,42 +391,42 @@ var ie = {
|
|
|
390
391
|
addButton: "Add row",
|
|
391
392
|
removeRowAriaLabel: "Remove row",
|
|
392
393
|
emptyState: "No rows yet."
|
|
393
|
-
}, J = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 10),
|
|
394
|
+
}, J = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 10), oe = f(function({ row: e, keyPlaceholder: t, valuePlaceholder: r, keyLabel: a, valueLabel: o, invalid: s, onKeyChange: l, onValueChange: u }) {
|
|
394
395
|
let { id: d, key: f, value: p } = e;
|
|
395
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ b("div", {
|
|
396
397
|
className: n("key-value-editor--row", "grid grid-cols-1 @md/key-value-editor:grid-cols-2 gap-space-md"),
|
|
397
|
-
children: [/* @__PURE__ */
|
|
398
|
+
children: [/* @__PURE__ */ b("div", {
|
|
398
399
|
className: "grid min-w-0 gap-space-sm",
|
|
399
|
-
children: [!!a && /* @__PURE__ */
|
|
400
|
+
children: [!!a && /* @__PURE__ */ y(i, {
|
|
400
401
|
htmlFor: `${d}-key`,
|
|
401
402
|
className: "@md/key-value-editor:sr-only",
|
|
402
403
|
children: a
|
|
403
|
-
}), /* @__PURE__ */
|
|
404
|
+
}), /* @__PURE__ */ y(c, {
|
|
404
405
|
id: `${d}-key`,
|
|
405
406
|
"aria-label": a || t,
|
|
406
407
|
value: f ?? "",
|
|
407
408
|
placeholder: t,
|
|
408
409
|
onChange: (e) => l(d, e.target.value),
|
|
409
|
-
invalid:
|
|
410
|
+
invalid: s
|
|
410
411
|
})]
|
|
411
|
-
}), /* @__PURE__ */
|
|
412
|
+
}), /* @__PURE__ */ b("div", {
|
|
412
413
|
className: "grid min-w-0 gap-space-sm",
|
|
413
|
-
children: [!!o && /* @__PURE__ */
|
|
414
|
+
children: [!!o && /* @__PURE__ */ y(i, {
|
|
414
415
|
htmlFor: `${d}-value`,
|
|
415
416
|
className: "@md/key-value-editor:sr-only",
|
|
416
417
|
children: o
|
|
417
|
-
}), /* @__PURE__ */
|
|
418
|
+
}), /* @__PURE__ */ y(c, {
|
|
418
419
|
id: `${d}-value`,
|
|
419
420
|
"aria-label": o || r,
|
|
420
421
|
value: p ?? "",
|
|
421
422
|
placeholder: r,
|
|
422
423
|
onChange: (e) => u(d, e.target.value),
|
|
423
|
-
invalid:
|
|
424
|
+
invalid: s
|
|
424
425
|
})]
|
|
425
426
|
})]
|
|
426
427
|
});
|
|
427
|
-
}), Y =
|
|
428
|
-
let u = t(
|
|
428
|
+
}), Y = d(function({ value: r, onValueChange: a, invalid: o, sortable: s = !1, strings: c }, l) {
|
|
429
|
+
let u = t(ae, c), { defaultScale: d } = e(), f = _(!1), [m, h] = v(() => r && Object.keys(r).length > 0 ? Object.entries(r).map(([e, t]) => ({
|
|
429
430
|
id: J(),
|
|
430
431
|
key: e,
|
|
431
432
|
value: String(t ?? "")
|
|
@@ -433,79 +434,79 @@ var ie = {
|
|
|
433
434
|
id: J(),
|
|
434
435
|
key: "",
|
|
435
436
|
value: ""
|
|
436
|
-
}]),
|
|
437
|
+
}]), g = p((e) => {
|
|
437
438
|
let t = {};
|
|
438
439
|
e.forEach(({ key: e, value: n }) => {
|
|
439
440
|
e.trim() !== "" && (t[e] = n ?? "");
|
|
440
|
-
}),
|
|
441
|
-
|
|
441
|
+
}), f.current = !0, a?.(t), queueMicrotask(() => {
|
|
442
|
+
f.current = !1;
|
|
442
443
|
});
|
|
443
|
-
}, [a]), x =
|
|
444
|
+
}, [a]), x = p((e, t) => {
|
|
444
445
|
h((n) => {
|
|
445
446
|
let r = n.map((n) => n.id === e ? {
|
|
446
447
|
...n,
|
|
447
448
|
key: t
|
|
448
449
|
} : n);
|
|
449
|
-
return
|
|
450
|
+
return g(r), r;
|
|
450
451
|
});
|
|
451
|
-
}, [
|
|
452
|
+
}, [g]), S = p((e, t) => {
|
|
452
453
|
h((n) => {
|
|
453
454
|
let r = n.map((n) => n.id === e ? {
|
|
454
455
|
...n,
|
|
455
456
|
value: t
|
|
456
457
|
} : n);
|
|
457
|
-
return
|
|
458
|
+
return g(r), r;
|
|
458
459
|
});
|
|
459
|
-
}, [
|
|
460
|
+
}, [g]), C = p(() => {
|
|
460
461
|
h((e) => {
|
|
461
462
|
let t = [...e, {
|
|
462
463
|
id: J(),
|
|
463
464
|
key: "",
|
|
464
465
|
value: ""
|
|
465
466
|
}];
|
|
466
|
-
return
|
|
467
|
+
return g(t), t;
|
|
467
468
|
});
|
|
468
|
-
}, [
|
|
469
|
+
}, [g]), w = p((e) => {
|
|
469
470
|
h((t) => {
|
|
470
471
|
let n = t.filter((t, n) => n !== e), r = n.length ? n : [{
|
|
471
472
|
id: J(),
|
|
472
473
|
key: "",
|
|
473
474
|
value: ""
|
|
474
475
|
}];
|
|
475
|
-
return
|
|
476
|
+
return g(r), r;
|
|
476
477
|
});
|
|
477
|
-
}, [
|
|
478
|
+
}, [g]), T = p((e, t) => {
|
|
478
479
|
h((n) => {
|
|
479
480
|
let r = [...n], [i] = r.splice(e, 1);
|
|
480
|
-
return r.splice(t, 0, i),
|
|
481
|
+
return r.splice(t, 0, i), g(r), r;
|
|
481
482
|
});
|
|
482
|
-
}, [
|
|
483
|
-
left: "
|
|
484
|
-
right: "
|
|
483
|
+
}, [g]), E = !!u.keyLabel || !!u.valueLabel, D = d === "sm" ? {
|
|
484
|
+
left: "ps-[calc(var(--height-action)*8/9*var(--density-scale)+0.5rem*var(--space-scale))]",
|
|
485
|
+
right: "pe-[calc(var(--height-action)*8/9*var(--density-scale)+0.5rem*var(--space-scale))]"
|
|
485
486
|
} : d === "lg" ? {
|
|
486
|
-
left: "
|
|
487
|
-
right: "
|
|
487
|
+
left: "ps-[calc(var(--height-action)*10/9*var(--density-scale)+0.5rem*var(--space-scale))]",
|
|
488
|
+
right: "pe-[calc(var(--height-action)*10/9*var(--density-scale)+0.5rem*var(--space-scale))]"
|
|
488
489
|
} : {
|
|
489
|
-
left: "
|
|
490
|
-
right: "
|
|
490
|
+
left: "ps-[calc(var(--height-action)*var(--density-scale)+0.5rem*var(--space-scale))]",
|
|
491
|
+
right: "pe-[calc(var(--height-action)*var(--density-scale)+0.5rem*var(--space-scale))]"
|
|
491
492
|
}, O = s ? D.left : "", k = D.right, A = s ? {
|
|
492
493
|
sortable: !0,
|
|
493
494
|
onMove: T
|
|
494
495
|
} : { sortable: !1 };
|
|
495
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ b("div", {
|
|
496
497
|
ref: l,
|
|
497
498
|
className: "key-value-editor--component @container/key-value-editor space-y-space-sm",
|
|
498
|
-
children: [E && /* @__PURE__ */
|
|
499
|
+
children: [E && /* @__PURE__ */ b("div", {
|
|
499
500
|
"data-action-gutter": !0,
|
|
500
501
|
className: n("hidden @md/key-value-editor:grid grid-cols-2 gap-space-md", O, k),
|
|
501
|
-
children: [/* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ y("div", { children: !!u.keyLabel && /* @__PURE__ */ y(i, {
|
|
502
503
|
className: "flex items-center",
|
|
503
504
|
children: u.keyLabel
|
|
504
|
-
}) }), /* @__PURE__ */
|
|
505
|
+
}) }), /* @__PURE__ */ y("div", { children: !!u.valueLabel && /* @__PURE__ */ y(i, {
|
|
505
506
|
className: "flex items-center",
|
|
506
507
|
children: u.valueLabel
|
|
507
508
|
}) })]
|
|
508
|
-
}), /* @__PURE__ */
|
|
509
|
+
}), /* @__PURE__ */ y(z, {
|
|
509
510
|
...A,
|
|
510
511
|
items: m,
|
|
511
512
|
onAdd: C,
|
|
@@ -515,7 +516,7 @@ var ie = {
|
|
|
515
516
|
addButton: u.addButton,
|
|
516
517
|
removeAriaLabel: u.removeRowAriaLabel
|
|
517
518
|
},
|
|
518
|
-
renderRow: (e) => /* @__PURE__ */
|
|
519
|
+
renderRow: (e) => /* @__PURE__ */ y(oe, {
|
|
519
520
|
row: e,
|
|
520
521
|
keyPlaceholder: u.keyPlaceholder,
|
|
521
522
|
valuePlaceholder: u.valuePlaceholder,
|
|
@@ -531,50 +532,50 @@ var ie = {
|
|
|
531
532
|
Y.displayName = "KeyValueEditor";
|
|
532
533
|
//#endregion
|
|
533
534
|
//#region src/components/base/repeaters/localized-string-field.tsx
|
|
534
|
-
function X({ name: e, type: t = "text", placeholder: r, primaryLocale: i, secondaryLocale: a, activeLocale: o, invalid:
|
|
535
|
-
let { register: d } =
|
|
536
|
-
return t === "textarea" ? /* @__PURE__ */
|
|
535
|
+
function X({ name: e, type: t = "text", placeholder: r, primaryLocale: i, secondaryLocale: a, activeLocale: o, invalid: s, className: l }) {
|
|
536
|
+
let { register: d } = D(), f = `${e}.${o === "primary" ? i : a}`;
|
|
537
|
+
return t === "textarea" ? /* @__PURE__ */ y(u, {
|
|
537
538
|
...d(f),
|
|
538
539
|
placeholder: r,
|
|
539
540
|
minRows: 3,
|
|
540
|
-
invalid:
|
|
541
|
-
className: n("localized-string-field--component",
|
|
542
|
-
}, f) : /* @__PURE__ */
|
|
541
|
+
invalid: s,
|
|
542
|
+
className: n("localized-string-field--component", l)
|
|
543
|
+
}, f) : /* @__PURE__ */ y(c, {
|
|
543
544
|
...d(f),
|
|
544
545
|
type: t === "number" ? "number" : "text",
|
|
545
546
|
placeholder: r,
|
|
546
|
-
invalid:
|
|
547
|
-
className: n("localized-string-field--component",
|
|
547
|
+
invalid: s,
|
|
548
|
+
className: n("localized-string-field--component", l)
|
|
548
549
|
}, f);
|
|
549
550
|
}
|
|
550
551
|
X.displayName = "LocalizedStringField";
|
|
551
552
|
//#endregion
|
|
552
553
|
//#region src/components/base/repeaters/localized-object-field.tsx
|
|
553
|
-
function Z({ name: e, fields: t, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid:
|
|
554
|
-
let { register: f } =
|
|
555
|
-
return /* @__PURE__ */
|
|
554
|
+
function Z({ name: e, fields: t, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid: s, className: d }) {
|
|
555
|
+
let { register: f } = D(), p = a === "primary" ? r : i;
|
|
556
|
+
return /* @__PURE__ */ y("div", {
|
|
556
557
|
className: n("localized-object-field--component w-full rounded-radius border border-border p-surface", d),
|
|
557
|
-
children: /* @__PURE__ */
|
|
558
|
+
children: /* @__PURE__ */ y(o, {
|
|
558
559
|
gap: "lg",
|
|
559
560
|
children: t.map((t) => {
|
|
560
561
|
let n = `${e}.${p}.${t.name}`;
|
|
561
|
-
return /* @__PURE__ */
|
|
562
|
+
return /* @__PURE__ */ y(l, {
|
|
562
563
|
label: t.label,
|
|
563
564
|
htmlFor: n,
|
|
564
565
|
required: t.required,
|
|
565
566
|
className: "w-full",
|
|
566
|
-
children: t.type === "textarea" ? /* @__PURE__ */
|
|
567
|
+
children: t.type === "textarea" ? /* @__PURE__ */ y(u, {
|
|
567
568
|
...f(n),
|
|
568
569
|
id: n,
|
|
569
570
|
placeholder: t.placeholder,
|
|
570
571
|
minRows: 3,
|
|
571
|
-
invalid:
|
|
572
|
-
}) : /* @__PURE__ */
|
|
572
|
+
invalid: s
|
|
573
|
+
}) : /* @__PURE__ */ y(c, {
|
|
573
574
|
...f(n),
|
|
574
575
|
id: n,
|
|
575
576
|
type: t.type === "number" ? "number" : "text",
|
|
576
577
|
placeholder: t.placeholder,
|
|
577
|
-
invalid:
|
|
578
|
+
invalid: s
|
|
578
579
|
})
|
|
579
580
|
}, n);
|
|
580
581
|
})
|
|
@@ -591,16 +592,16 @@ var Q = {
|
|
|
591
592
|
removeAriaLabel: L.removeAriaLabel,
|
|
592
593
|
dragHandleAriaLabel: "Drag to reorder"
|
|
593
594
|
};
|
|
594
|
-
function $({ name: e, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid: o, disabled: s = !1, sortable:
|
|
595
|
-
let f = t(Q,
|
|
596
|
-
return /* @__PURE__ */
|
|
595
|
+
function $({ name: e, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid: o, disabled: s = !1, sortable: c = !1, strings: l, className: d }) {
|
|
596
|
+
let f = t(Q, l), p = `${e}.${a === "primary" ? r : i}`;
|
|
597
|
+
return /* @__PURE__ */ y(G, {
|
|
597
598
|
name: p,
|
|
598
|
-
sortable:
|
|
599
|
+
sortable: c,
|
|
599
600
|
invalid: o,
|
|
600
601
|
disabled: s,
|
|
601
602
|
className: n("localized-string-repeater--component", d),
|
|
602
603
|
strings: f,
|
|
603
|
-
renderField: (e) => /* @__PURE__ */
|
|
604
|
+
renderField: (e) => /* @__PURE__ */ y(u, {
|
|
604
605
|
ref: e.ref,
|
|
605
606
|
name: e.name,
|
|
606
607
|
value: e.value,
|