themelia-react-ui 2.0.0 → 2.0.2
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 +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.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 +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- 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 +2 -2
- 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 +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- 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 +46 -45
- 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-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- 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 +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- 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 +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.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 +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- 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/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -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 +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- 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 +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- 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 +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- 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 +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.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-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.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 +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.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-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.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-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
package/dist/base/repeaters.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { s as e } from "../ui-provider-
|
|
2
|
+
import { s as e } from "../ui-provider-C_U0Xma4.js";
|
|
3
3
|
import { useStrings as t } from "../lib/strings.js";
|
|
4
|
-
import { t as n } from "../utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as s } from "../
|
|
9
|
-
import { t as c } from "../
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
4
|
+
import { t as n } from "../utils-BRhFDwuU.js";
|
|
5
|
+
import { t as r } from "../affordance-geometry.generated-tF36bREk.js";
|
|
6
|
+
import { n as i } from "../buttons-DPZekJFu.js";
|
|
7
|
+
import { a, c as o } from "../typography-UTnveOEy.js";
|
|
8
|
+
import { t as s } from "../structure-BmisBK-3.js";
|
|
9
|
+
import { t as c } from "../interaction-recipes-XR9ZpVYL.js";
|
|
10
|
+
import { t as l } from "../input-DQdEd0YD.js";
|
|
11
|
+
import { t as u } from "../form-field-CwH9y77i.js";
|
|
12
|
+
import { d } from "../text-inputs-f9Ia-aCi.js";
|
|
13
|
+
import { forwardRef as f, memo as p, useCallback as m, useId as h, useMemo as g, useReducer as _, useRef as v, useState as y } from "react";
|
|
14
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
15
|
+
import { GripVertical as S, Plus as C, Trash2 as w, X as T } from "lucide-react";
|
|
16
|
+
import { useController as E, useFieldArray as D, useFormContext as O } from "react-hook-form";
|
|
17
|
+
import { DndContext as k, KeyboardSensor as A, PointerSensor as j, closestCenter as M, useSensor as N, useSensors as P } from "@dnd-kit/core";
|
|
18
|
+
import { SortableContext as ee, sortableKeyboardCoordinates as te, useSortable as F, verticalListSortingStrategy as ne } from "@dnd-kit/sortable";
|
|
17
19
|
import { CSS as I } from "@dnd-kit/utilities";
|
|
18
20
|
//#region src/components/base/repeaters/repeaters.strings.ts
|
|
19
21
|
var L = {
|
|
@@ -26,144 +28,144 @@ var L = {
|
|
|
26
28
|
removeAriaLabel: L.removeAriaLabel,
|
|
27
29
|
dragHandleAriaLabel: "Drag to reorder"
|
|
28
30
|
};
|
|
29
|
-
function
|
|
30
|
-
let
|
|
31
|
+
function re({ item: e, index: t, sortable: r, rowVariant: a, removeVariant: o, hideRemove: s, disabled: l, strings: u, actionSize: d, onRemove: f, renderRow: p }) {
|
|
32
|
+
let m = F({
|
|
31
33
|
id: e.id,
|
|
32
|
-
disabled:
|
|
33
|
-
}),
|
|
34
|
-
transform: I.Transform.toString(
|
|
35
|
-
transition:
|
|
36
|
-
opacity:
|
|
37
|
-
} : void 0,
|
|
34
|
+
disabled: l || !r
|
|
35
|
+
}), h = r ? m.isDragging : !1, g = r ? {
|
|
36
|
+
transform: I.Transform.toString(m.transform),
|
|
37
|
+
transition: m.transition,
|
|
38
|
+
opacity: h ? .6 : 1
|
|
39
|
+
} : void 0, _ = r ? m.setNodeRef : void 0, v = r ? m.attributes : {}, y = r ? m.listeners : void 0, C = r ? /* @__PURE__ */ b(i, {
|
|
38
40
|
type: "button",
|
|
39
41
|
tone: "secondary",
|
|
40
42
|
buttonStyle: "ghost",
|
|
41
|
-
size:
|
|
43
|
+
size: d,
|
|
42
44
|
iconOnly: !0,
|
|
43
|
-
"aria-label":
|
|
44
|
-
disabled:
|
|
45
|
-
className: n("repeater--drag-handle", "shrink-0",
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
-
children: /* @__PURE__ */
|
|
45
|
+
"aria-label": u.dragHandleAriaLabel,
|
|
46
|
+
disabled: l,
|
|
47
|
+
className: n("repeater--drag-handle", "shrink-0", `text-muted-foreground ${c.rowHover}`, "cursor-grab active:cursor-grabbing"),
|
|
48
|
+
...v,
|
|
49
|
+
...y,
|
|
50
|
+
children: /* @__PURE__ */ b(S, {
|
|
49
51
|
className: "size-icon",
|
|
50
52
|
"aria-hidden": "true"
|
|
51
53
|
})
|
|
52
|
-
}) : null,
|
|
54
|
+
}) : null, E = s ? null : o === "icon-button" ? /* @__PURE__ */ b(i, {
|
|
53
55
|
type: "button",
|
|
54
56
|
tone: "secondary",
|
|
55
57
|
buttonStyle: "outline",
|
|
56
|
-
size:
|
|
58
|
+
size: d,
|
|
57
59
|
iconOnly: !0,
|
|
58
|
-
"aria-label":
|
|
59
|
-
disabled:
|
|
60
|
-
onClick: () =>
|
|
60
|
+
"aria-label": u.removeAriaLabel,
|
|
61
|
+
disabled: l,
|
|
62
|
+
onClick: () => f(t),
|
|
61
63
|
className: "repeater--remove shrink-0",
|
|
62
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ b(w, {
|
|
63
65
|
className: "size-icon",
|
|
64
66
|
"aria-hidden": "true"
|
|
65
67
|
})
|
|
66
|
-
}) : /* @__PURE__ */
|
|
68
|
+
}) : /* @__PURE__ */ b(i, {
|
|
67
69
|
type: "button",
|
|
68
70
|
tone: "secondary",
|
|
69
71
|
buttonStyle: "ghost",
|
|
70
|
-
size:
|
|
72
|
+
size: d,
|
|
71
73
|
iconOnly: !0,
|
|
72
|
-
"aria-label":
|
|
73
|
-
disabled:
|
|
74
|
-
onClick: () =>
|
|
75
|
-
className: n("repeater--remove", "shrink-0", "text-muted-foreground hover:
|
|
76
|
-
children: /* @__PURE__ */
|
|
74
|
+
"aria-label": u.removeAriaLabel,
|
|
75
|
+
disabled: l,
|
|
76
|
+
onClick: () => f(t),
|
|
77
|
+
className: n("repeater--remove", "shrink-0", "text-muted-foreground hover:text-destructive"),
|
|
78
|
+
children: /* @__PURE__ */ b(T, {
|
|
77
79
|
className: "size-icon",
|
|
78
80
|
"aria-hidden": "true"
|
|
79
81
|
})
|
|
80
82
|
});
|
|
81
|
-
return
|
|
82
|
-
ref:
|
|
83
|
-
style:
|
|
83
|
+
return a === "card" ? /* @__PURE__ */ b("div", {
|
|
84
|
+
ref: _,
|
|
85
|
+
style: g,
|
|
84
86
|
"data-repeater-item-id": e.id,
|
|
85
87
|
className: n("repeater--item", "relative rounded-radius border border-border bg-card text-card-foreground p-surface"),
|
|
86
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ x("div", {
|
|
87
89
|
className: "flex items-start gap-space-md",
|
|
88
90
|
children: [
|
|
89
|
-
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
+
C,
|
|
92
|
+
/* @__PURE__ */ b("div", {
|
|
91
93
|
className: "min-w-0 flex-1",
|
|
92
|
-
children:
|
|
94
|
+
children: p(e, {
|
|
93
95
|
index: t,
|
|
94
|
-
isDragging:
|
|
96
|
+
isDragging: h
|
|
95
97
|
})
|
|
96
98
|
}),
|
|
97
|
-
|
|
99
|
+
E
|
|
98
100
|
]
|
|
99
101
|
})
|
|
100
|
-
}) : /* @__PURE__ */
|
|
101
|
-
ref:
|
|
102
|
-
style:
|
|
102
|
+
}) : /* @__PURE__ */ x("div", {
|
|
103
|
+
ref: _,
|
|
104
|
+
style: g,
|
|
103
105
|
"data-repeater-item-id": e.id,
|
|
104
106
|
className: "repeater--item flex items-start gap-space-md",
|
|
105
107
|
children: [
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
+
C,
|
|
109
|
+
/* @__PURE__ */ b("div", {
|
|
108
110
|
className: "min-w-0 flex-1",
|
|
109
|
-
children:
|
|
111
|
+
children: p(e, {
|
|
110
112
|
index: t,
|
|
111
|
-
isDragging:
|
|
113
|
+
isDragging: h
|
|
112
114
|
})
|
|
113
115
|
}),
|
|
114
|
-
|
|
116
|
+
E
|
|
115
117
|
]
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
|
-
function z({ items: r, renderRow:
|
|
119
|
-
let w = t(R,
|
|
120
|
+
function z({ items: r, renderRow: a, onAdd: c, onRemove: l, onMove: u, sortable: d = !1, rowVariant: f = "inline", removeVariant: p = "ghost", hideRemove: h = !1, hideAdd: _ = !1, disabled: v = !1, strings: y, className: S }) {
|
|
121
|
+
let w = t(R, y), { defaultScale: T } = e(), E = T ?? "md", D = P(N(j, { activationConstraint: { distance: 4 } }), N(A, { coordinateGetter: te })), O = m((e) => {
|
|
120
122
|
let { active: t, over: n } = e;
|
|
121
123
|
if (!n || t.id === n.id) return;
|
|
122
124
|
let i = r.findIndex((e) => e.id === t.id), a = r.findIndex((e) => e.id === n.id);
|
|
123
125
|
i < 0 || a < 0 || u?.(i, a);
|
|
124
|
-
}, [r, u]),
|
|
126
|
+
}, [r, u]), F = g(() => r.map((e) => e.id), [r]), I = /* @__PURE__ */ b(s, {
|
|
125
127
|
gap: "md",
|
|
126
128
|
className: "repeater--list",
|
|
127
|
-
children: r.map((e, t) => /* @__PURE__ */
|
|
129
|
+
children: r.map((e, t) => /* @__PURE__ */ b(re, {
|
|
128
130
|
item: e,
|
|
129
131
|
index: t,
|
|
130
132
|
sortable: d,
|
|
131
|
-
rowVariant:
|
|
132
|
-
removeVariant:
|
|
133
|
-
hideRemove:
|
|
134
|
-
disabled:
|
|
133
|
+
rowVariant: f,
|
|
134
|
+
removeVariant: p,
|
|
135
|
+
hideRemove: h,
|
|
136
|
+
disabled: v,
|
|
135
137
|
strings: w,
|
|
136
138
|
actionSize: E,
|
|
137
139
|
onRemove: l,
|
|
138
|
-
renderRow:
|
|
140
|
+
renderRow: a
|
|
139
141
|
}, e.id))
|
|
140
142
|
});
|
|
141
|
-
return /* @__PURE__ */
|
|
143
|
+
return /* @__PURE__ */ x(s, {
|
|
142
144
|
gap: "lg",
|
|
143
|
-
className: n("repeater--component",
|
|
144
|
-
children: [r.length === 0 ? /* @__PURE__ */
|
|
145
|
+
className: n("repeater--component", S),
|
|
146
|
+
children: [r.length === 0 ? /* @__PURE__ */ b("div", {
|
|
145
147
|
className: "repeater--empty rounded-radius border border-dashed border-border p-surface",
|
|
146
|
-
children: /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ b(o, {
|
|
147
149
|
type: "secondary",
|
|
148
150
|
children: w.emptyState
|
|
149
151
|
})
|
|
150
|
-
}) : d ? /* @__PURE__ */
|
|
151
|
-
sensors:
|
|
152
|
-
collisionDetection:
|
|
153
|
-
onDragEnd:
|
|
154
|
-
children: /* @__PURE__ */
|
|
155
|
-
items:
|
|
156
|
-
strategy:
|
|
157
|
-
children:
|
|
152
|
+
}) : d ? /* @__PURE__ */ b(k, {
|
|
153
|
+
sensors: D,
|
|
154
|
+
collisionDetection: M,
|
|
155
|
+
onDragEnd: O,
|
|
156
|
+
children: /* @__PURE__ */ b(ee, {
|
|
157
|
+
items: F,
|
|
158
|
+
strategy: ne,
|
|
159
|
+
children: I
|
|
158
160
|
})
|
|
159
|
-
}) :
|
|
161
|
+
}) : I, !_ && /* @__PURE__ */ x(i, {
|
|
160
162
|
type: "button",
|
|
161
163
|
tone: "secondary",
|
|
162
164
|
buttonStyle: "outline",
|
|
163
|
-
disabled:
|
|
165
|
+
disabled: v,
|
|
164
166
|
onClick: c,
|
|
165
167
|
className: "repeater--add self-start",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ b(C, { className: "size-icon" }), w.addButton]
|
|
167
169
|
})]
|
|
168
170
|
});
|
|
169
171
|
}
|
|
@@ -179,7 +181,7 @@ function B(e, t, n) {
|
|
|
179
181
|
function V(e, t) {
|
|
180
182
|
return e.length === t.length && e.every((e, n) => e === t[n]);
|
|
181
183
|
}
|
|
182
|
-
function
|
|
184
|
+
function ie(e, t, n, r, i) {
|
|
183
185
|
let a = /* @__PURE__ */ new Map(), o = i;
|
|
184
186
|
return e.forEach((e, n) => {
|
|
185
187
|
let r = a.get(e) ?? [], i = t[n];
|
|
@@ -215,7 +217,7 @@ function U(e, t) {
|
|
|
215
217
|
lastExternalValues: [...t.values],
|
|
216
218
|
pendingInternalValues: null
|
|
217
219
|
};
|
|
218
|
-
let n =
|
|
220
|
+
let n = ie(e.values, e.ids, t.values, e.prefix, e.nextId);
|
|
219
221
|
return {
|
|
220
222
|
...e,
|
|
221
223
|
values: [...t.values],
|
|
@@ -225,8 +227,8 @@ function U(e, t) {
|
|
|
225
227
|
pendingInternalValues: null
|
|
226
228
|
};
|
|
227
229
|
}
|
|
228
|
-
function
|
|
229
|
-
let [r, i] =
|
|
230
|
+
function ae(e, t, n) {
|
|
231
|
+
let [r, i] = _(U, void 0, () => H(e, t, n)), a = r.name !== e || !V(t, r.lastExternalValues), o = {
|
|
230
232
|
type: "sync",
|
|
231
233
|
name: e,
|
|
232
234
|
values: t
|
|
@@ -242,42 +244,42 @@ var W = {
|
|
|
242
244
|
dragHandleAriaLabel: "Drag to reorder",
|
|
243
245
|
...L
|
|
244
246
|
};
|
|
245
|
-
function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderField: o, strings:
|
|
246
|
-
let u = t(W,
|
|
247
|
+
function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderField: o, strings: s, className: c }) {
|
|
248
|
+
let u = t(W, s), { control: d } = O(), { field: f, fieldState: p } = E({
|
|
247
249
|
control: d,
|
|
248
250
|
name: e
|
|
249
|
-
}),
|
|
250
|
-
|
|
251
|
+
}), m = Array.isArray(f.value) ? f.value : [], g = !!(r || p.invalid), _ = h().replace(/:/g, ""), { state: v, dispatch: y } = ae(e, m, _), x = (e, t, n) => {
|
|
252
|
+
y({
|
|
251
253
|
type: "commit",
|
|
252
254
|
values: e,
|
|
253
255
|
ids: t,
|
|
254
256
|
nextId: n
|
|
255
257
|
}), f.onChange(e);
|
|
256
258
|
}, S = (e, t) => {
|
|
257
|
-
let n = [...
|
|
258
|
-
n[e] = t, x(n,
|
|
259
|
+
let n = [...v.values];
|
|
260
|
+
n[e] = t, x(n, v.ids);
|
|
259
261
|
}, C = () => {
|
|
260
|
-
let e = `${_}-row-${
|
|
261
|
-
x([...
|
|
262
|
-
},
|
|
263
|
-
x(
|
|
264
|
-
},
|
|
265
|
-
let n = B(
|
|
262
|
+
let e = `${_}-row-${v.nextId}`;
|
|
263
|
+
x([...v.values, ""], [...v.ids, e], v.nextId + 1);
|
|
264
|
+
}, w = (e) => {
|
|
265
|
+
x(v.values.filter((t, n) => n !== e), v.ids.filter((t, n) => n !== e));
|
|
266
|
+
}, T = (e, t) => {
|
|
267
|
+
let n = B(v.values, e, t), r = B(v.ids, e, t);
|
|
266
268
|
x(n, r);
|
|
267
|
-
},
|
|
268
|
-
id:
|
|
269
|
+
}, D = v.values.map((e, t) => ({
|
|
270
|
+
id: v.ids[t],
|
|
269
271
|
value: e
|
|
270
272
|
}));
|
|
271
|
-
return /* @__PURE__ */
|
|
273
|
+
return /* @__PURE__ */ b(z, {
|
|
272
274
|
...a ? {
|
|
273
275
|
sortable: !0,
|
|
274
|
-
onMove:
|
|
276
|
+
onMove: T
|
|
275
277
|
} : { sortable: !1 },
|
|
276
|
-
className: n("string-repeater--component",
|
|
277
|
-
items:
|
|
278
|
+
className: n("string-repeater--component", c),
|
|
279
|
+
items: D,
|
|
278
280
|
disabled: i,
|
|
279
281
|
onAdd: C,
|
|
280
|
-
onRemove:
|
|
282
|
+
onRemove: w,
|
|
281
283
|
strings: {
|
|
282
284
|
emptyState: u.emptyState,
|
|
283
285
|
addButton: u.addButton,
|
|
@@ -296,7 +298,7 @@ function G({ name: e, invalid: r, disabled: i = !1, sortable: a = !1, renderFiel
|
|
|
296
298
|
onBlur: f.onBlur,
|
|
297
299
|
ref: n === 0 ? f.ref : void 0
|
|
298
300
|
};
|
|
299
|
-
return o ? o(r) : /* @__PURE__ */
|
|
301
|
+
return o ? o(r) : /* @__PURE__ */ b(l, {
|
|
300
302
|
ref: r.ref,
|
|
301
303
|
name: r.name,
|
|
302
304
|
value: r.value,
|
|
@@ -317,22 +319,22 @@ var K = {
|
|
|
317
319
|
dragHandleAriaLabel: "Drag to reorder",
|
|
318
320
|
...L
|
|
319
321
|
};
|
|
320
|
-
function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable:
|
|
321
|
-
let h = t(K,
|
|
322
|
+
function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: o = !1, renderField: c, strings: f, className: p }) {
|
|
323
|
+
let h = t(K, f), { control: g, register: _ } = O(), { fields: v, append: y, remove: x, move: S } = D({
|
|
322
324
|
control: g,
|
|
323
325
|
name: e
|
|
324
|
-
}), C =
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
-
...
|
|
326
|
+
}), C = m(() => r.reduce((e, t) => (e[t.name] = "", e), {}), [r]);
|
|
327
|
+
return /* @__PURE__ */ b(z, {
|
|
328
|
+
...o ? {
|
|
327
329
|
sortable: !0,
|
|
328
330
|
onMove: (e, t) => S(e, t)
|
|
329
331
|
} : { sortable: !1 },
|
|
330
|
-
className: n("object-repeater--component",
|
|
331
|
-
items:
|
|
332
|
+
className: n("object-repeater--component", p),
|
|
333
|
+
items: v,
|
|
332
334
|
rowVariant: "card",
|
|
333
335
|
removeVariant: "ghost",
|
|
334
336
|
disabled: a,
|
|
335
|
-
onAdd: () =>
|
|
337
|
+
onAdd: () => y(C()),
|
|
336
338
|
onRemove: (e) => x(e),
|
|
337
339
|
strings: {
|
|
338
340
|
emptyState: h.emptyState,
|
|
@@ -340,33 +342,33 @@ function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: u = !1,
|
|
|
340
342
|
removeAriaLabel: h.removeAriaLabel,
|
|
341
343
|
dragHandleAriaLabel: h.dragHandleAriaLabel
|
|
342
344
|
},
|
|
343
|
-
renderRow: (t, { index: n }) => /* @__PURE__ */
|
|
345
|
+
renderRow: (t, { index: n }) => /* @__PURE__ */ b(s, {
|
|
344
346
|
gap: "lg",
|
|
345
347
|
className: "object-repeater--fields",
|
|
346
348
|
children: r.map((t) => {
|
|
347
349
|
let r = `${e}.${n}.${t.name}`, o = _(r);
|
|
348
|
-
return
|
|
350
|
+
return c ? /* @__PURE__ */ b("div", {
|
|
349
351
|
className: "object-repeater--field",
|
|
350
|
-
children:
|
|
352
|
+
children: c(t, {
|
|
351
353
|
index: n,
|
|
352
354
|
name: r,
|
|
353
355
|
inputProps: o,
|
|
354
356
|
invalid: !!i,
|
|
355
357
|
disabled: a
|
|
356
358
|
})
|
|
357
|
-
}, t.name) : /* @__PURE__ */
|
|
359
|
+
}, t.name) : /* @__PURE__ */ b(u, {
|
|
358
360
|
label: t.label,
|
|
359
361
|
required: t.required,
|
|
360
362
|
hint: t.hint,
|
|
361
363
|
htmlFor: r,
|
|
362
|
-
children: t.type === "textarea" ? /* @__PURE__ */
|
|
364
|
+
children: t.type === "textarea" ? /* @__PURE__ */ b(d, {
|
|
363
365
|
...o,
|
|
364
366
|
id: r,
|
|
365
367
|
placeholder: t.placeholder,
|
|
366
368
|
minRows: 3,
|
|
367
369
|
invalid: i,
|
|
368
370
|
disabled: a
|
|
369
|
-
}) : /* @__PURE__ */
|
|
371
|
+
}) : /* @__PURE__ */ b(l, {
|
|
370
372
|
...o,
|
|
371
373
|
id: r,
|
|
372
374
|
type: t.type || "text",
|
|
@@ -382,7 +384,7 @@ function q({ name: e, fields: r, invalid: i, disabled: a = !1, sortable: u = !1,
|
|
|
382
384
|
q.displayName = "ObjectRepeater";
|
|
383
385
|
//#endregion
|
|
384
386
|
//#region src/components/base/repeaters/key-value-editor.tsx
|
|
385
|
-
var
|
|
387
|
+
var oe = {
|
|
386
388
|
keyLabel: "Key",
|
|
387
389
|
valueLabel: "Value",
|
|
388
390
|
keyPlaceholder: "key",
|
|
@@ -390,42 +392,42 @@ var ie = {
|
|
|
390
392
|
addButton: "Add row",
|
|
391
393
|
removeRowAriaLabel: "Remove row",
|
|
392
394
|
emptyState: "No rows yet."
|
|
393
|
-
}, J = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 10),
|
|
395
|
+
}, J = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2, 10), se = p(function({ row: e, keyPlaceholder: t, valuePlaceholder: r, keyLabel: i, valueLabel: o, invalid: s, onKeyChange: c, onValueChange: u }) {
|
|
394
396
|
let { id: d, key: f, value: p } = e;
|
|
395
|
-
return /* @__PURE__ */
|
|
397
|
+
return /* @__PURE__ */ x("div", {
|
|
396
398
|
className: n("key-value-editor--row", "grid grid-cols-1 @md/key-value-editor:grid-cols-2 gap-space-md"),
|
|
397
|
-
children: [/* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ x("div", {
|
|
398
400
|
className: "grid min-w-0 gap-space-sm",
|
|
399
|
-
children: [!!
|
|
401
|
+
children: [!!i && /* @__PURE__ */ b(a, {
|
|
400
402
|
htmlFor: `${d}-key`,
|
|
401
|
-
className: "@md/key-value-editor:sr-only",
|
|
402
|
-
children:
|
|
403
|
-
}), /* @__PURE__ */
|
|
403
|
+
className: "text-inherit @md/key-value-editor:sr-only",
|
|
404
|
+
children: i
|
|
405
|
+
}), /* @__PURE__ */ b(l, {
|
|
404
406
|
id: `${d}-key`,
|
|
405
|
-
"aria-label":
|
|
407
|
+
"aria-label": i || t,
|
|
406
408
|
value: f ?? "",
|
|
407
409
|
placeholder: t,
|
|
408
|
-
onChange: (e) =>
|
|
409
|
-
invalid:
|
|
410
|
+
onChange: (e) => c(d, e.target.value),
|
|
411
|
+
invalid: s
|
|
410
412
|
})]
|
|
411
|
-
}), /* @__PURE__ */
|
|
413
|
+
}), /* @__PURE__ */ x("div", {
|
|
412
414
|
className: "grid min-w-0 gap-space-sm",
|
|
413
|
-
children: [!!o && /* @__PURE__ */
|
|
415
|
+
children: [!!o && /* @__PURE__ */ b(a, {
|
|
414
416
|
htmlFor: `${d}-value`,
|
|
415
|
-
className: "@md/key-value-editor:sr-only",
|
|
417
|
+
className: "text-inherit @md/key-value-editor:sr-only",
|
|
416
418
|
children: o
|
|
417
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ b(l, {
|
|
418
420
|
id: `${d}-value`,
|
|
419
|
-
"aria-label": o ||
|
|
421
|
+
"aria-label": o || r,
|
|
420
422
|
value: p ?? "",
|
|
421
|
-
placeholder:
|
|
423
|
+
placeholder: r,
|
|
422
424
|
onChange: (e) => u(d, e.target.value),
|
|
423
|
-
invalid:
|
|
425
|
+
invalid: s
|
|
424
426
|
})]
|
|
425
427
|
})]
|
|
426
428
|
});
|
|
427
|
-
}), Y =
|
|
428
|
-
let
|
|
429
|
+
}), Y = f(function({ value: i, onValueChange: o, invalid: s, sortable: c = !1, strings: l }, u) {
|
|
430
|
+
let d = t(oe, l), { defaultScale: f } = e(), p = v(!1), [h, g] = y(() => i && Object.keys(i).length > 0 ? Object.entries(i).map(([e, t]) => ({
|
|
429
431
|
id: J(),
|
|
430
432
|
key: e,
|
|
431
433
|
value: String(t ?? "")
|
|
@@ -433,97 +435,91 @@ var ie = {
|
|
|
433
435
|
id: J(),
|
|
434
436
|
key: "",
|
|
435
437
|
value: ""
|
|
436
|
-
}]),
|
|
438
|
+
}]), _ = m((e) => {
|
|
437
439
|
let t = {};
|
|
438
440
|
e.forEach(({ key: e, value: n }) => {
|
|
439
441
|
e.trim() !== "" && (t[e] = n ?? "");
|
|
440
|
-
}), p.current = !0,
|
|
442
|
+
}), p.current = !0, o?.(t), queueMicrotask(() => {
|
|
441
443
|
p.current = !1;
|
|
442
444
|
});
|
|
443
|
-
}, [
|
|
444
|
-
|
|
445
|
+
}, [o]), S = m((e, t) => {
|
|
446
|
+
g((n) => {
|
|
445
447
|
let r = n.map((n) => n.id === e ? {
|
|
446
448
|
...n,
|
|
447
449
|
key: t
|
|
448
450
|
} : n);
|
|
449
|
-
return
|
|
451
|
+
return _(r), r;
|
|
450
452
|
});
|
|
451
|
-
}, [
|
|
452
|
-
|
|
453
|
+
}, [_]), C = m((e, t) => {
|
|
454
|
+
g((n) => {
|
|
453
455
|
let r = n.map((n) => n.id === e ? {
|
|
454
456
|
...n,
|
|
455
457
|
value: t
|
|
456
458
|
} : n);
|
|
457
|
-
return
|
|
459
|
+
return _(r), r;
|
|
458
460
|
});
|
|
459
|
-
}, [
|
|
460
|
-
|
|
461
|
+
}, [_]), w = m(() => {
|
|
462
|
+
g((e) => {
|
|
461
463
|
let t = [...e, {
|
|
462
464
|
id: J(),
|
|
463
465
|
key: "",
|
|
464
466
|
value: ""
|
|
465
467
|
}];
|
|
466
|
-
return
|
|
468
|
+
return _(t), t;
|
|
467
469
|
});
|
|
468
|
-
}, [
|
|
469
|
-
|
|
470
|
+
}, [_]), T = m((e) => {
|
|
471
|
+
g((t) => {
|
|
470
472
|
let n = t.filter((t, n) => n !== e), r = n.length ? n : [{
|
|
471
473
|
id: J(),
|
|
472
474
|
key: "",
|
|
473
475
|
value: ""
|
|
474
476
|
}];
|
|
475
|
-
return
|
|
477
|
+
return _(r), r;
|
|
476
478
|
});
|
|
477
|
-
}, [
|
|
478
|
-
|
|
479
|
+
}, [_]), E = m((e, t) => {
|
|
480
|
+
g((n) => {
|
|
479
481
|
let r = [...n], [i] = r.splice(e, 1);
|
|
480
|
-
return r.splice(t, 0, i),
|
|
482
|
+
return r.splice(t, 0, i), _(r), r;
|
|
481
483
|
});
|
|
482
|
-
}, [
|
|
483
|
-
left:
|
|
484
|
-
right:
|
|
485
|
-
}
|
|
486
|
-
left: "ps-[calc(var(--height-action)*10/9*var(--density-scale)+0.5rem*var(--space-scale))]",
|
|
487
|
-
right: "pe-[calc(var(--height-action)*10/9*var(--density-scale)+0.5rem*var(--space-scale))]"
|
|
488
|
-
} : {
|
|
489
|
-
left: "ps-[calc(var(--height-action)*var(--density-scale)+0.5rem*var(--space-scale))]",
|
|
490
|
-
right: "pe-[calc(var(--height-action)*var(--density-scale)+0.5rem*var(--space-scale))]"
|
|
491
|
-
}, O = s ? D.left : "", k = D.right, A = s ? {
|
|
484
|
+
}, [_]), D = !!d.keyLabel || !!d.valueLabel, O = r.actionGutter[f === "sm" || f === "lg" ? f : "md"], k = {
|
|
485
|
+
left: O.start,
|
|
486
|
+
right: O.end
|
|
487
|
+
}, A = c ? k.left : "", j = k.right, M = c ? {
|
|
492
488
|
sortable: !0,
|
|
493
|
-
onMove:
|
|
489
|
+
onMove: E
|
|
494
490
|
} : { sortable: !1 };
|
|
495
|
-
return /* @__PURE__ */
|
|
496
|
-
ref:
|
|
491
|
+
return /* @__PURE__ */ x("div", {
|
|
492
|
+
ref: u,
|
|
497
493
|
className: "key-value-editor--component @container/key-value-editor space-y-space-sm",
|
|
498
|
-
children: [
|
|
494
|
+
children: [D && /* @__PURE__ */ x("div", {
|
|
499
495
|
"data-action-gutter": !0,
|
|
500
|
-
className: n("hidden @md/key-value-editor:grid grid-cols-2 gap-space-md",
|
|
501
|
-
children: [/* @__PURE__ */
|
|
502
|
-
className: "flex items-center",
|
|
503
|
-
children:
|
|
504
|
-
}) }), /* @__PURE__ */
|
|
505
|
-
className: "flex items-center",
|
|
506
|
-
children:
|
|
496
|
+
className: n("hidden @md/key-value-editor:grid grid-cols-2 gap-space-md", A, j),
|
|
497
|
+
children: [/* @__PURE__ */ b("div", { children: !!d.keyLabel && /* @__PURE__ */ b(a, {
|
|
498
|
+
className: "flex items-center text-inherit",
|
|
499
|
+
children: d.keyLabel
|
|
500
|
+
}) }), /* @__PURE__ */ b("div", { children: !!d.valueLabel && /* @__PURE__ */ b(a, {
|
|
501
|
+
className: "flex items-center text-inherit",
|
|
502
|
+
children: d.valueLabel
|
|
507
503
|
}) })]
|
|
508
|
-
}), /* @__PURE__ */
|
|
509
|
-
...
|
|
510
|
-
items:
|
|
511
|
-
onAdd:
|
|
512
|
-
onRemove:
|
|
504
|
+
}), /* @__PURE__ */ b(z, {
|
|
505
|
+
...M,
|
|
506
|
+
items: h,
|
|
507
|
+
onAdd: w,
|
|
508
|
+
onRemove: T,
|
|
513
509
|
strings: {
|
|
514
|
-
emptyState:
|
|
515
|
-
addButton:
|
|
516
|
-
removeAriaLabel:
|
|
510
|
+
emptyState: d.emptyState,
|
|
511
|
+
addButton: d.addButton,
|
|
512
|
+
removeAriaLabel: d.removeRowAriaLabel
|
|
517
513
|
},
|
|
518
|
-
renderRow: (e) => /* @__PURE__ */
|
|
514
|
+
renderRow: (e) => /* @__PURE__ */ b(se, {
|
|
519
515
|
row: e,
|
|
520
|
-
keyPlaceholder:
|
|
521
|
-
valuePlaceholder:
|
|
522
|
-
keyLabel:
|
|
523
|
-
valueLabel:
|
|
524
|
-
invalid:
|
|
525
|
-
onKeyChange:
|
|
526
|
-
onValueChange:
|
|
516
|
+
keyPlaceholder: d.keyPlaceholder,
|
|
517
|
+
valuePlaceholder: d.valuePlaceholder,
|
|
518
|
+
keyLabel: d.keyLabel,
|
|
519
|
+
valueLabel: d.valueLabel,
|
|
520
|
+
invalid: s,
|
|
521
|
+
onKeyChange: S,
|
|
522
|
+
onValueChange: C
|
|
527
523
|
})
|
|
528
524
|
})]
|
|
529
525
|
});
|
|
@@ -531,50 +527,50 @@ var ie = {
|
|
|
531
527
|
Y.displayName = "KeyValueEditor";
|
|
532
528
|
//#endregion
|
|
533
529
|
//#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:
|
|
536
|
-
return t === "textarea" ? /* @__PURE__ */
|
|
537
|
-
...
|
|
530
|
+
function X({ name: e, type: t = "text", placeholder: r, primaryLocale: i, secondaryLocale: a, activeLocale: o, invalid: s, className: c }) {
|
|
531
|
+
let { register: u } = O(), f = `${e}.${o === "primary" ? i : a}`;
|
|
532
|
+
return t === "textarea" ? /* @__PURE__ */ b(d, {
|
|
533
|
+
...u(f),
|
|
538
534
|
placeholder: r,
|
|
539
535
|
minRows: 3,
|
|
540
|
-
invalid:
|
|
541
|
-
className: n("localized-string-field--component",
|
|
542
|
-
}, f) : /* @__PURE__ */
|
|
543
|
-
...
|
|
536
|
+
invalid: s,
|
|
537
|
+
className: n("localized-string-field--component", c)
|
|
538
|
+
}, f) : /* @__PURE__ */ b(l, {
|
|
539
|
+
...u(f),
|
|
544
540
|
type: t === "number" ? "number" : "text",
|
|
545
541
|
placeholder: r,
|
|
546
|
-
invalid:
|
|
547
|
-
className: n("localized-string-field--component",
|
|
542
|
+
invalid: s,
|
|
543
|
+
className: n("localized-string-field--component", c)
|
|
548
544
|
}, f);
|
|
549
545
|
}
|
|
550
546
|
X.displayName = "LocalizedStringField";
|
|
551
547
|
//#endregion
|
|
552
548
|
//#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__ */
|
|
556
|
-
className: n("localized-object-field--component w-full rounded-radius border border-border p-surface",
|
|
557
|
-
children: /* @__PURE__ */
|
|
549
|
+
function Z({ name: e, fields: t, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid: o, className: c }) {
|
|
550
|
+
let { register: f } = O(), p = a === "primary" ? r : i;
|
|
551
|
+
return /* @__PURE__ */ b("div", {
|
|
552
|
+
className: n("localized-object-field--component w-full rounded-radius border border-border p-surface", c),
|
|
553
|
+
children: /* @__PURE__ */ b(s, {
|
|
558
554
|
gap: "lg",
|
|
559
555
|
children: t.map((t) => {
|
|
560
556
|
let n = `${e}.${p}.${t.name}`;
|
|
561
|
-
return /* @__PURE__ */
|
|
557
|
+
return /* @__PURE__ */ b(u, {
|
|
562
558
|
label: t.label,
|
|
563
559
|
htmlFor: n,
|
|
564
560
|
required: t.required,
|
|
565
561
|
className: "w-full",
|
|
566
|
-
children: t.type === "textarea" ? /* @__PURE__ */
|
|
562
|
+
children: t.type === "textarea" ? /* @__PURE__ */ b(d, {
|
|
567
563
|
...f(n),
|
|
568
564
|
id: n,
|
|
569
565
|
placeholder: t.placeholder,
|
|
570
566
|
minRows: 3,
|
|
571
|
-
invalid:
|
|
572
|
-
}) : /* @__PURE__ */
|
|
567
|
+
invalid: o
|
|
568
|
+
}) : /* @__PURE__ */ b(l, {
|
|
573
569
|
...f(n),
|
|
574
570
|
id: n,
|
|
575
571
|
type: t.type === "number" ? "number" : "text",
|
|
576
572
|
placeholder: t.placeholder,
|
|
577
|
-
invalid:
|
|
573
|
+
invalid: o
|
|
578
574
|
})
|
|
579
575
|
}, n);
|
|
580
576
|
})
|
|
@@ -591,16 +587,16 @@ var Q = {
|
|
|
591
587
|
removeAriaLabel: L.removeAriaLabel,
|
|
592
588
|
dragHandleAriaLabel: "Drag to reorder"
|
|
593
589
|
};
|
|
594
|
-
function $({ name: e, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid: o, disabled: s = !1, sortable: c = !1, strings:
|
|
595
|
-
let f = t(Q,
|
|
596
|
-
return /* @__PURE__ */
|
|
590
|
+
function $({ name: e, primaryLocale: r, secondaryLocale: i, activeLocale: a, invalid: o, disabled: s = !1, sortable: c = !1, strings: l, className: u }) {
|
|
591
|
+
let f = t(Q, l), p = `${e}.${a === "primary" ? r : i}`;
|
|
592
|
+
return /* @__PURE__ */ b(G, {
|
|
597
593
|
name: p,
|
|
598
594
|
sortable: c,
|
|
599
595
|
invalid: o,
|
|
600
596
|
disabled: s,
|
|
601
|
-
className: n("localized-string-repeater--component",
|
|
597
|
+
className: n("localized-string-repeater--component", u),
|
|
602
598
|
strings: f,
|
|
603
|
-
renderField: (e) => /* @__PURE__ */
|
|
599
|
+
renderField: (e) => /* @__PURE__ */ b(d, {
|
|
604
600
|
ref: e.ref,
|
|
605
601
|
name: e.name,
|
|
606
602
|
value: e.value,
|