themelia-react-ui 2.0.4 → 2.0.6
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 +211 -0
- package/MIGRATION.md +119 -0
- package/README.md +122 -20
- package/dist/{accordion-96o0pN62.js → accordion-0tQUZ20r.js} +13 -13
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-CHgs8vmj.js → action-menu-C0gjzLyE.js} +48 -45
- package/dist/action-menu-C0gjzLyE.js.map +1 -0
- package/dist/{affordance-geometry.generated-B8yGOr8-.js → affordance-geometry.generated-P-aVJisu.js} +36 -36
- package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
- package/dist/{ai-artifact-BZUGwBq6.js → ai-artifact-CGGpQryR.js} +281 -230
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/app-shell-EHuuRDGy.js +321 -0
- package/dist/app-shell-EHuuRDGy.js.map +1 -0
- package/dist/{attachment-DkoqHPPl.js → attachment-BCpA4e7i.js} +10 -10
- package/dist/{attachment-DkoqHPPl.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-D2FVZ1MH.js → auth-B0girIk_.js} +49 -52
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-DWO_HHhB.js → avatar-B9Jnp-T-.js} +8 -8
- package/dist/avatar-B9Jnp-T-.js.map +1 -0
- package/dist/{badge-DErMA7ul.js → badge-wWauMgAt.js} +5 -5
- package/dist/{badge-DErMA7ul.js.map → badge-wWauMgAt.js.map} +1 -1
- 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 +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +2 -372
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- 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 +6 -6
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +10 -10
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- 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 +200 -193
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +8 -8
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +6 -6
- package/dist/base/spinner.js.map +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 +36 -36
- 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 +1 -1
- package/dist/{batch-action-bar-CdfIkCsV.js → batch-action-bar-BoqWIIpV.js} +7 -7
- package/dist/batch-action-bar-BoqWIIpV.js.map +1 -0
- package/dist/blocks/admin.js +21 -21
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +267 -247
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +537 -543
- 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 +1330 -1250
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-B-WFKecD.js → breadcrumbs-Bp9Ke7kd.js} +7 -7
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-DkmK-z8E.js → button-ChBovTx0.js} +3 -3
- package/dist/button-ChBovTx0.js.map +1 -0
- package/dist/{buttons-BbfzgczK.js → buttons-DeW0bQeK.js} +16 -16
- package/dist/buttons-DeW0bQeK.js.map +1 -0
- package/dist/cards-CNXnmvV5.js +69 -0
- package/dist/cards-CNXnmvV5.js.map +1 -0
- package/dist/cascader-CrAl9zD5.js +439 -0
- package/dist/cascader-CrAl9zD5.js.map +1 -0
- package/dist/chart-I7ROnsl8.js +162 -0
- package/dist/chart-I7ROnsl8.js.map +1 -0
- package/dist/{checkbox-CzYUTPeJ.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/choice-inputs-DHGtx0QV.js +789 -0
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-CGNaUtAE.js → code-block-BSJyq9e-.js} +9 -9
- package/dist/code-block-BSJyq9e-.js.map +1 -0
- package/dist/{collapsible-Do4G0zcC.js → collapsible-BzJ91LUG.js} +5 -5
- package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-C0e8SsTm.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-C0e8SsTm.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/combobox-Bcvu5J8O.js +363 -0
- package/dist/combobox-Bcvu5J8O.js.map +1 -0
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-D8NrBj-b.js → command-9e52NPgK.js} +11 -11
- package/dist/command-9e52NPgK.js.map +1 -0
- package/dist/{comments-Di4w0H_S.js → comments-BsgErEqd.js} +44 -39
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +7 -1
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/cards/card.recipes.d.ts +6 -4
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
- package/dist/components/base/cards/smart-card.types.d.ts +3 -4
- package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
- package/dist/components/base/chart/chart.d.ts +6 -1
- package/dist/components/base/choice-inputs/choice-types.d.ts +5 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms/form-sizing.d.ts +7 -7
- package/dist/components/base/forms/workflow.d.ts +7 -1
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +8 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/metadata-list/metadata-list.d.ts +1 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
- package/dist/components/base/navigation/page-header/page-header.d.ts +10 -3
- package/dist/components/base/popover/popover.d.ts +3 -3
- package/dist/components/base/popover/popover.recipes.d.ts +10 -6
- package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
- package/dist/components/base/sheet/sheet.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +29 -5
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +5 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
- package/dist/components/blocks/commerce/index.d.ts +7 -6
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +26 -13
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- package/dist/components/features/event-calendar/colors.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
- package/dist/components/features/filters/filters.strings.d.ts +4 -0
- package/dist/components/features/filters/filters.types.d.ts +6 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +5 -3
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +25 -3
- package/dist/components/features/global-search/global-search.types.d.ts +2 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
- package/dist/components/features/media-library/hooks/use-media-library.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 +8 -0
- package/dist/components/features/media-library/media-library.types.d.ts +50 -12
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +4 -4
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/products.strings.d.ts +9 -1
- package/dist/components/features/products/products.types.d.ts +45 -8
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +6 -2
- package/dist/components/features/resource/resource.types.d.ts +14 -1
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +18 -2
- package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
- package/dist/components/layout/app-shell/index.d.ts +1 -1
- package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
- package/dist/components/layout/header/header.recipes.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +9 -8
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +2 -1
- package/dist/components/layout/page/page.d.ts +1 -0
- package/dist/components/layout/page/page.strings.d.ts +11 -0
- package/dist/components/layout/page/page.types.d.ts +69 -17
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +10 -3
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +2 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +38 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +6 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +50 -10
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
- package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
- package/dist/components/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/overlay-layer.d.ts +18 -0
- package/dist/components/ui/sheet.d.ts +5 -1
- package/dist/components/ui/sidebar-state.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts +5 -17
- package/dist/{containers-CRmHf7GP.js → containers-CSdc32h9.js} +26 -18
- package/dist/containers-CSdc32h9.js.map +1 -0
- package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
- package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
- package/dist/{copyable-CnGCZdX4.js → copyable-3fdHfMR3.js} +7 -7
- package/dist/{copyable-CnGCZdX4.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-D4oujtx0.js → data-display-Cmj-xZYl.js} +271 -279
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Q7jnXxpk.js → date-Br0FicVv.js} +5 -5
- package/dist/{date-Q7jnXxpk.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-BB4BL_-K.js → display-CT_N2a3w.js} +9 -9
- package/dist/{display-BB4BL_-K.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/dropdown-menu-C08iIugv.js +194 -0
- package/dist/dropdown-menu-C08iIugv.js.map +1 -0
- package/dist/features/activities.js +388 -326
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +46 -32
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +130 -130
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +11 -10
- 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 +13 -13
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +243 -239
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +197 -199
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +168 -143
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +19 -30
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +369 -343
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1202 -975
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1270 -1183
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +160 -153
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +119 -113
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +470 -470
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-D6H7tVJi.js} +5 -5
- package/dist/field-affordance-recipes-D6H7tVJi.js.map +1 -0
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/filters-Dl80yYtN.js +2415 -0
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-NXgjkmBG.js → form-sizing-CgcrUbLU.js} +5 -5
- package/dist/form-sizing-CgcrUbLU.js.map +1 -0
- package/dist/{forms-BV5m5aQF.js → forms-B3W8CH7-.js} +17 -13
- package/dist/forms-B3W8CH7-.js.map +1 -0
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-BA697l4a.js → header-ZIIsRKxP.js} +145 -141
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-BQ-L7Uu2.js → hooks-BitHSh-Y.js} +27 -15
- package/dist/hooks-BitHSh-Y.js.map +1 -0
- package/dist/{icon-badge-COWbCCWu.js → icon-badge-npxF1SLX.js} +4 -4
- package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/{input-Cdw4k0fb.js → input-7KAc7XQL.js} +9 -9
- package/dist/{input-Cdw4k0fb.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/input-DIREVYHs.js +21 -0
- package/dist/input-DIREVYHs.js.map +1 -0
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/item-FfWnaYST.js +278 -0
- package/dist/item-FfWnaYST.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 +2 -2
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +12 -12
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/affordance-geometry.generated.d.ts +35 -35
- package/dist/lib/control-group-recipes.d.ts +5 -5
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/motion-recipes.d.ts +3 -0
- package/dist/lib/navigation-row-recipes.d.ts +7 -7
- package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
- package/dist/lib/portal-recipes.d.ts +3 -0
- package/dist/lib/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +18 -15
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-RKOQaaIB.js → mentions-qOnedSt4.js} +237 -168
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-qVV7AVxa.js → metadata-list-XkqZ_UXH.js} +64 -64
- package/dist/metadata-list-XkqZ_UXH.js.map +1 -0
- package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
- package/dist/motion-recipes-DitYv6P2.js.map +1 -0
- package/dist/navigation-BgtPJAhi.js +288 -0
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/navigation-Bt-v7rWP.js +261 -0
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/{navigation-row-recipes-WZEs-hYo.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
- package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-E_OiIfJz.js → number-CYqBcrSj.js} +79 -87
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/overflow-tab-bar-BQCA2Zn2.js +172 -0
- package/dist/overflow-tab-bar-BQCA2Zn2.js.map +1 -0
- package/dist/overlays-CC8zI3Du.js +1017 -0
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/page-BoQ1VaFJ.js +331 -0
- package/dist/page-BoQ1VaFJ.js.map +1 -0
- package/dist/page-header-commands-DIKspJfx.js +193 -0
- package/dist/page-header-commands-DIKspJfx.js.map +1 -0
- package/dist/{pagination-Ch8X_47u.js → pagination-Br8TdV9A.js} +7 -7
- package/dist/{pagination-Ch8X_47u.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/popover-k8TdUcAt.js +201 -0
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-BYaCdFhf.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DJ0AkUan.js} +19 -12
- package/dist/popover.recipes-DJ0AkUan.js.map +1 -0
- package/dist/portal-recipes-DyUXqUtD.js +9 -0
- package/dist/portal-recipes-DyUXqUtD.js.map +1 -0
- package/dist/{primitives-Du64iDbb.js → primitives-BkkQjYl7.js} +23 -18
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BvF2oCdV.js → progress-DZFXXzPs.js} +9 -9
- package/dist/{progress-BvF2oCdV.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-D789Jwyy.js → receipt-C7LhOg7Q.js} +7 -7
- package/dist/receipt-C7LhOg7Q.js.map +1 -0
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-CAurDwT5.js} +501 -424
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js +99 -0
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-La5RXsEk.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-DAEV0w65.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-DAEV0w65.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-GNfPG-90.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-GNfPG-90.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/sheet-C4DHsgLk.js +250 -0
- package/dist/sheet-C4DHsgLk.js.map +1 -0
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/sidebar-CmD6a-HK.js +1004 -0
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/skeleton-DDgdhmu9.js +265 -0
- package/dist/skeleton-DDgdhmu9.js.map +1 -0
- package/dist/smart-card-B6vLxqa_.js +617 -0
- package/dist/smart-card-B6vLxqa_.js.map +1 -0
- package/dist/{structure-C0V0_Fyf.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-C0V0_Fyf.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-DH7rozUv.js → table-CBonSdTp.js} +573 -519
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-CpvnzJn9.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/tabs-C4Kr_hCr.js +192 -0
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-DXItiR0O.js → text-inputs-jdkS3ReG.js} +18 -18
- package/dist/text-inputs-jdkS3ReG.js.map +1 -0
- package/dist/theme.css +40 -37
- package/dist/{timelines-DmtztAY_.js → timelines-CoPwdJP0.js} +13 -12
- package/dist/timelines-CoPwdJP0.js.map +1 -0
- package/dist/tooltip-31NwIpTo.js +113 -0
- package/dist/tooltip-31NwIpTo.js.map +1 -0
- package/dist/{tree-CV11PURP.js → tree-CeYVzdFE.js} +9 -9
- package/dist/{tree-CV11PURP.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-CSyJrh28.js → typography-C7-YMW1S.js} +12 -12
- package/dist/{typography-CSyJrh28.js.map → typography-C7-YMW1S.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/ui-provider-C-74NVLc.js +178 -0
- package/dist/ui-provider-C-74NVLc.js.map +1 -0
- package/dist/ui-provider.js +2 -3
- package/dist/{upload-C9SA0X-8.js → upload-Hdm5gObf.js} +309 -296
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-DhQJiSRc.js → upload-queue-D0sYPuqo.js} +16 -14
- package/dist/upload-queue-D0sYPuqo.js.map +1 -0
- package/dist/{usage-card-DVTRDmGz.js → usage-card-9s8hLDfn.js} +24 -17
- package/dist/usage-card-9s8hLDfn.js.map +1 -0
- package/dist/{utils-CF3c95Io.js → utils-DhuoqFy4.js} +255 -165
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/value-inputs-D3aPgq9H.js +980 -0
- package/dist/value-inputs-D3aPgq9H.js.map +1 -0
- package/dist/{value-typography-ClupF0Gz.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-9EFVXUyk.js → workspace-CC8Vchiu.js} +51 -50
- package/dist/workspace-CC8Vchiu.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +4 -3
- package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
- package/docs/consumer-skill/examples/app-layout.tsx +52 -1
- package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
- package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
- package/docs/consumer-skill/examples/detail.tsx +5 -4
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
- package/docs/consumer-skill/examples/index-table.tsx +4 -4
- package/docs/consumer-skill/examples/manifest.json +38 -1
- package/docs/consumer-skill/examples/product-media.tsx +41 -0
- package/docs/consumer-skill/examples/product-parts.tsx +81 -0
- package/docs/consumer-skill/examples/rhf-edit-page.tsx +1 -1
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +24 -11
- package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
- package/docs/consumer-skill/references/agents-md.md +21 -19
- package/docs/consumer-skill/references/analytics.md +33 -1
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +21249 -14205
- package/docs/consumer-skill/references/composition-mapping.md +17 -3
- package/docs/consumer-skill/references/composition.md +177 -32
- package/docs/consumer-skill/references/critique-rubric.md +98 -0
- package/docs/consumer-skill/references/custom-composition.md +261 -0
- package/docs/consumer-skill/references/data-reading.md +79 -0
- package/docs/consumer-skill/references/design-contract.md +12 -9
- package/docs/consumer-skill/references/discovery.md +27 -3
- package/docs/consumer-skill/references/domain-structures.md +124 -0
- package/docs/consumer-skill/references/installation.md +62 -8
- package/docs/consumer-skill/references/integration.md +59 -1
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +3044 -445
- package/docs/consumer-skill/references/review.md +87 -10
- package/docs/consumer-skill/references/rhf-workflows.md +79 -0
- package/docs/consumer-skill/references/screen-archetypes.md +19 -7
- package/docs/consumer-skill/references/screen-decisions.md +126 -0
- package/docs/consumer-skill/references/theming.md +24 -20
- package/docs/consumer-skill/references/tokens.json +9 -9
- package/docs/consumer-skill/references/view-craft.md +153 -0
- package/docs/consumer-skill/references/view-spec.md +73 -0
- package/docs/consumer-skill/references/workflows.md +7 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +176 -26
- package/docs/consumer-skill/scripts/composition-schema.mjs +1 -1
- package/docs/consumer-skill/scripts/composition.mjs +61 -5
- package/docs/consumer-skill/scripts/discovery.mjs +54 -0
- package/docs/consumer-skill/scripts/inspect-component.mjs +1 -1
- package/docs/consumer-skill/scripts/inspection.mjs +73 -18
- package/docs/consumer-skill/scripts/setup-skills.mjs +79 -7
- package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
- package/docs/consumer-skills/themelia-components/SKILL.md +14 -13
- package/docs/consumer-skills/themelia-composition/SKILL.md +16 -17
- package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +2 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +24 -17
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-96o0pN62.js.map +0 -1
- package/dist/action-menu-CHgs8vmj.js.map +0 -1
- package/dist/affordance-geometry.generated-B8yGOr8-.js.map +0 -1
- package/dist/ai-artifact-BZUGwBq6.js.map +0 -1
- package/dist/app-shell-D63ATkIK.js +0 -237
- package/dist/app-shell-D63ATkIK.js.map +0 -1
- package/dist/auth-D2FVZ1MH.js.map +0 -1
- package/dist/avatar-DWO_HHhB.js.map +0 -1
- package/dist/base/cascader.js.map +0 -1
- package/dist/batch-action-bar-CdfIkCsV.js.map +0 -1
- package/dist/breadcrumbs-B-WFKecD.js.map +0 -1
- package/dist/button-DkmK-z8E.js.map +0 -1
- package/dist/buttons-BbfzgczK.js.map +0 -1
- package/dist/cards-4JTWqvVe.js +0 -68
- package/dist/cards-4JTWqvVe.js.map +0 -1
- package/dist/chart-C19flDQb.js +0 -155
- package/dist/chart-C19flDQb.js.map +0 -1
- package/dist/choice-inputs-JLtij2y4.js +0 -776
- package/dist/choice-inputs-JLtij2y4.js.map +0 -1
- package/dist/code-block-CGNaUtAE.js.map +0 -1
- package/dist/combobox-CBJDs6w_.js +0 -877
- package/dist/combobox-CBJDs6w_.js.map +0 -1
- package/dist/combobox-hbhSS18O.js +0 -355
- package/dist/combobox-hbhSS18O.js.map +0 -1
- package/dist/command-D8NrBj-b.js.map +0 -1
- package/dist/comments-Di4w0H_S.js.map +0 -1
- package/dist/containers-CRmHf7GP.js.map +0 -1
- package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
- package/dist/data-display-D4oujtx0.js.map +0 -1
- package/dist/date-picker-zOt1oNss.js +0 -1542
- package/dist/date-picker-zOt1oNss.js.map +0 -1
- package/dist/date-pickers-cj8IXbDC.js +0 -179
- package/dist/date-pickers-cj8IXbDC.js.map +0 -1
- package/dist/dropdown-menu-CjY8Vt7W.js +0 -193
- package/dist/dropdown-menu-CjY8Vt7W.js.map +0 -1
- package/dist/feedback-DZNL5Lg1.js +0 -239
- package/dist/feedback-DZNL5Lg1.js.map +0 -1
- package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
- package/dist/filters-BcT-uoFy.js +0 -2209
- package/dist/filters-BcT-uoFy.js.map +0 -1
- package/dist/form-field-CsgRmdit.js +0 -63
- package/dist/form-field-CsgRmdit.js.map +0 -1
- package/dist/form-sizing-NXgjkmBG.js.map +0 -1
- package/dist/forms-BV5m5aQF.js.map +0 -1
- package/dist/forms-numeric-Cd33AKbD.js +0 -906
- package/dist/forms-numeric-Cd33AKbD.js.map +0 -1
- package/dist/header-BA697l4a.js.map +0 -1
- package/dist/hooks-BQ-L7Uu2.js.map +0 -1
- package/dist/input-DOPL5_QE.js +0 -21
- package/dist/input-DOPL5_QE.js.map +0 -1
- package/dist/item-BvZ2DR_x.js +0 -277
- package/dist/item-BvZ2DR_x.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-RKOQaaIB.js.map +0 -1
- package/dist/message-INU2xsxu.js +0 -128
- package/dist/message-INU2xsxu.js.map +0 -1
- package/dist/metadata-list-qVV7AVxa.js.map +0 -1
- package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
- package/dist/navigation-BQNcg1jT.js +0 -269
- package/dist/navigation-BQNcg1jT.js.map +0 -1
- package/dist/navigation-DLF3E1IC.js +0 -145
- package/dist/navigation-DLF3E1IC.js.map +0 -1
- package/dist/navigation-row-recipes-WZEs-hYo.js.map +0 -1
- package/dist/number-E_OiIfJz.js.map +0 -1
- package/dist/overflow-tab-bar-CrbqMteP.js +0 -284
- package/dist/overflow-tab-bar-CrbqMteP.js.map +0 -1
- package/dist/overlays-BlKynmde.js +0 -1004
- package/dist/overlays-BlKynmde.js.map +0 -1
- package/dist/page-CIwNUtGr.js +0 -227
- package/dist/page-CIwNUtGr.js.map +0 -1
- package/dist/page-header-commands-DFMlNYzN.js +0 -128
- package/dist/page-header-commands-DFMlNYzN.js.map +0 -1
- package/dist/popover-uwzX2vo7.js +0 -198
- package/dist/popover-uwzX2vo7.js.map +0 -1
- package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
- package/dist/primitives-Du64iDbb.js.map +0 -1
- package/dist/receipt-D789Jwyy.js.map +0 -1
- package/dist/rich-text-CLJEf76s.js +0 -78
- package/dist/rich-text-CLJEf76s.js.map +0 -1
- package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
- package/dist/rich-text-editor-toolbar-L__e4x47.js +0 -94
- package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-BA2iboic.js +0 -174
- package/dist/settings-BA2iboic.js.map +0 -1
- package/dist/sheet-DoAxTb2J.js +0 -213
- package/dist/sheet-DoAxTb2J.js.map +0 -1
- package/dist/sidebar-ByqKR_W5.js +0 -512
- package/dist/sidebar-ByqKR_W5.js.map +0 -1
- package/dist/sidebar-D2iSnGJ7.js +0 -619
- package/dist/sidebar-D2iSnGJ7.js.map +0 -1
- package/dist/skeleton-CUj8O5Bd.js +0 -264
- package/dist/skeleton-CUj8O5Bd.js.map +0 -1
- package/dist/smart-card-CqkzQsK-.js +0 -614
- package/dist/smart-card-CqkzQsK-.js.map +0 -1
- package/dist/table-CpvnzJn9.js.map +0 -1
- package/dist/table-DH7rozUv.js.map +0 -1
- package/dist/tabs-eqVsJZWO.js +0 -191
- package/dist/tabs-eqVsJZWO.js.map +0 -1
- package/dist/text-inputs-DXItiR0O.js.map +0 -1
- package/dist/theme-scope-BJ6eE2xt.js +0 -50
- package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
- package/dist/timelines-DmtztAY_.js.map +0 -1
- package/dist/tooltip-B4hjKtoV.js +0 -111
- package/dist/tooltip-B4hjKtoV.js.map +0 -1
- package/dist/ui-provider-CQCuCBcy.js +0 -136
- package/dist/ui-provider-CQCuCBcy.js.map +0 -1
- package/dist/upload-C9SA0X-8.js.map +0 -1
- package/dist/upload-queue-DhQJiSRc.js.map +0 -1
- package/dist/usage-card-DVTRDmGz.js.map +0 -1
- package/dist/use-mobile-vaLKwgyf.js +0 -15
- package/dist/use-mobile-vaLKwgyf.js.map +0 -1
- package/dist/utils-CF3c95Io.js.map +0 -1
- package/dist/value-inputs-C0o70p-U.js +0 -980
- package/dist/value-inputs-C0o70p-U.js.map +0 -1
- package/dist/value-typography-ClupF0Gz.js.map +0 -1
- package/dist/workspace-9EFVXUyk.js.map +0 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { COMPONENT_SCALES as
|
|
4
|
-
import { t as i } from "../theme-scope-BJ6eE2xt.js";
|
|
2
|
+
import { b as e, n as t, y as n } from "../ui-provider-C-74NVLc.js";
|
|
3
|
+
import { COMPONENT_SCALES as r, SEMANTIC_TONES as i } from "../component-vocabulary.js";
|
|
5
4
|
import { interpolateString as a, useStrings as o } from "../lib/strings.js";
|
|
6
|
-
import { t as s } from "../utils-
|
|
7
|
-
import { n as c } from "../buttons-
|
|
8
|
-
import { c as l, s as u } from "../typography-
|
|
5
|
+
import { t as s } from "../utils-DhuoqFy4.js";
|
|
6
|
+
import { n as c } from "../buttons-DeW0bQeK.js";
|
|
7
|
+
import { c as l, s as u } from "../typography-C7-YMW1S.js";
|
|
9
8
|
import { t as d } from "../focus-recipes-B653VaLq.js";
|
|
10
|
-
import { r as f, t as p } from "../structure-
|
|
11
|
-
import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
9
|
+
import { r as f, t as p } from "../structure-DZJ2wbAU.js";
|
|
10
|
+
import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-B6vLxqa_.js";
|
|
11
|
+
import { n as re } from "../composition.recipes-COdiFhxB.js";
|
|
12
|
+
import { i as ie, r as ae } from "../overlays-CC8zI3Du.js";
|
|
13
|
+
import { m as oe } from "../primitives-BkkQjYl7.js";
|
|
14
|
+
import { t as se } from "../accordion-0tQUZ20r.js";
|
|
15
|
+
import { t as _ } from "../badge-wWauMgAt.js";
|
|
16
|
+
import { t as ce } from "../theme-mode-css-BB-_RYab.js";
|
|
17
|
+
import { t as v } from "../input-7KAc7XQL.js";
|
|
18
|
+
import { t as y } from "../form-field-CAPdwdnZ.js";
|
|
19
|
+
import { d as le } from "../text-inputs-jdkS3ReG.js";
|
|
20
|
+
import { a as b, l as x } from "../choice-inputs-DHGtx0QV.js";
|
|
21
|
+
import { i as ue, n as de } from "../value-inputs-D3aPgq9H.js";
|
|
22
|
+
import { d as fe } from "../forms-numeric-CwjQJe-O.js";
|
|
23
|
+
import { t as pe } from "../item-FfWnaYST.js";
|
|
24
|
+
import { i as me, r as he, t as ge } from "../tabs-C4Kr_hCr.js";
|
|
25
|
+
import { forwardRef as S, useEffect as _e, useId as C, useImperativeHandle as ve, useMemo as w, useRef as ye, useState as T } from "react";
|
|
26
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
27
|
+
import { CheckCircle2 as be, Copy as xe, Download as Se, Info as Ce, LayoutGrid as we, Moon as Te, Palette as O, RotateCcw as Ee, Search as De, Settings2 as Oe, Shapes as ke, ShieldCheck as k, Sun as Ae, Type as je } from "lucide-react";
|
|
28
28
|
//#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
|
|
29
|
-
var
|
|
29
|
+
var Me = {
|
|
30
30
|
shared: ":root",
|
|
31
31
|
light: ":root,\n.light",
|
|
32
32
|
dark: ".dark"
|
|
33
|
-
},
|
|
33
|
+
}, A = /^--[a-z][a-z0-9-]*$/i, j = /[;{}]/, Ne = /[;{}]/;
|
|
34
34
|
function M(e = {}) {
|
|
35
35
|
return {
|
|
36
36
|
mode: e.mode ?? "light",
|
|
@@ -40,7 +40,7 @@ function M(e = {}) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
function N(e) {
|
|
43
|
-
return
|
|
43
|
+
return A.test(e);
|
|
44
44
|
}
|
|
45
45
|
function P(e, t = !0) {
|
|
46
46
|
return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
|
|
@@ -61,7 +61,7 @@ function P(e, t = !0) {
|
|
|
61
61
|
}
|
|
62
62
|
function F(e, t) {
|
|
63
63
|
let n = e.trim();
|
|
64
|
-
if (n.length === 0 ||
|
|
64
|
+
if (n.length === 0 || Ne.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
|
|
65
65
|
return n;
|
|
66
66
|
}
|
|
67
67
|
function I(e, t) {
|
|
@@ -73,7 +73,7 @@ function I(e, t) {
|
|
|
73
73
|
].join("\n");
|
|
74
74
|
}
|
|
75
75
|
function L(e, t = {}) {
|
|
76
|
-
let n = t.selectors ??
|
|
76
|
+
let n = t.selectors ?? Me, r = F(n.shared, "shared"), i = F(n.light, "light"), a = F(n.dark, "dark"), o = n.modeScope === void 0 ? void 0 : F(n.modeScope, "modeScope"), s = [I(r, e.shared), ...o === void 0 ? [I(i, e.light), I(a, e.dark)] : [ce(o, {
|
|
77
77
|
light: P(e.light).map(([e, t]) => `${e}: ${t};`),
|
|
78
78
|
dark: P(e.dark).map(([e, t]) => `${e}: ${t};`)
|
|
79
79
|
})]].filter((e) => e !== null && e.length > 0), c = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
|
|
@@ -86,7 +86,7 @@ function R(t = {}) {
|
|
|
86
86
|
dates: a
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Pe(e = {}) {
|
|
90
90
|
let t = R(e);
|
|
91
91
|
return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
|
|
92
92
|
}
|
|
@@ -99,10 +99,10 @@ function z(e, t = e.mode) {
|
|
|
99
99
|
function B(e, t = e.mode) {
|
|
100
100
|
return Object.fromEntries(P(z(e, t), !1));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Fe(e) {
|
|
103
103
|
return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ie(e) {
|
|
106
106
|
let t = F(e, "shared");
|
|
107
107
|
return {
|
|
108
108
|
shared: t,
|
|
@@ -111,7 +111,7 @@ function Fe(e) {
|
|
|
111
111
|
modeScope: t
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
115
115
|
let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
|
|
116
116
|
return {
|
|
117
117
|
fileName: t,
|
|
@@ -122,35 +122,35 @@ function Ie(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
|
122
122
|
overrideCssText: L(e, n),
|
|
123
123
|
theme: M(e),
|
|
124
124
|
resolvedTheme: i,
|
|
125
|
-
overrideCount:
|
|
125
|
+
overrideCount: Fe(e),
|
|
126
126
|
providerFileName: r.providerFileName ?? "admin-ui.config.ts",
|
|
127
127
|
providerConfig: a,
|
|
128
|
-
providerConfigText:
|
|
128
|
+
providerConfigText: Pe(a)
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function Re(e) {
|
|
132
|
+
ze({
|
|
133
133
|
fileName: e.fileName,
|
|
134
134
|
text: e.cssText,
|
|
135
135
|
mimeType: "text/css;charset=utf-8"
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ze({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
|
|
139
139
|
if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
|
|
140
140
|
let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
141
141
|
a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/components/features/theme-tweaker/theme-scope.tsx
|
|
145
|
-
var V =
|
|
146
|
-
return /* @__PURE__ */
|
|
145
|
+
var V = S(function({ theme: e, mode: n = e.mode, className: r, style: i, children: a, ...o }, c) {
|
|
146
|
+
return /* @__PURE__ */ E(t, {
|
|
147
147
|
...o,
|
|
148
148
|
ref: c,
|
|
149
|
-
"data-theme-mode":
|
|
150
|
-
className: s("theme-scope--component",
|
|
149
|
+
"data-theme-mode": n,
|
|
150
|
+
className: s("theme-scope--component", n, r),
|
|
151
151
|
style: {
|
|
152
|
-
...B(e,
|
|
153
|
-
...
|
|
152
|
+
...B(e, n),
|
|
153
|
+
...i
|
|
154
154
|
},
|
|
155
155
|
children: a
|
|
156
156
|
});
|
|
@@ -158,13 +158,13 @@ var V = C(function({ theme: e, mode: t = e.mode, className: n, style: r, childre
|
|
|
158
158
|
V.displayName = "ThemeScope";
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/components/features/theme-tweaker/use-applied-theme.ts
|
|
161
|
-
function
|
|
161
|
+
function Be(e, t) {
|
|
162
162
|
return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
165
|
+
_e(() => {
|
|
166
166
|
if (!e || r === "self") return;
|
|
167
|
-
let a =
|
|
167
|
+
let a = Be(r, n);
|
|
168
168
|
if (!a) return;
|
|
169
169
|
let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
170
170
|
for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
|
|
@@ -190,22 +190,22 @@ function Be({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
|
|
193
|
-
var
|
|
194
|
-
let d =
|
|
195
|
-
|
|
196
|
-
let f =
|
|
197
|
-
...
|
|
193
|
+
var He = S(function({ config: e, theme: t, mode: r = t.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
|
|
194
|
+
let d = ye(null);
|
|
195
|
+
ve(u, () => d.current);
|
|
196
|
+
let f = w(() => M({
|
|
197
|
+
...t,
|
|
198
198
|
mode: r
|
|
199
|
-
}), [r,
|
|
200
|
-
return
|
|
199
|
+
}), [r, t]);
|
|
200
|
+
return Ve({
|
|
201
201
|
apply: i === "document",
|
|
202
202
|
manageModeClass: a,
|
|
203
203
|
selfRef: d,
|
|
204
204
|
target: i,
|
|
205
205
|
theme: f
|
|
206
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ E(n, {
|
|
207
207
|
config: e,
|
|
208
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ E(V, {
|
|
209
209
|
...l,
|
|
210
210
|
ref: d,
|
|
211
211
|
theme: f,
|
|
@@ -215,7 +215,7 @@ var Ve = C(function({ config: e, theme: n, mode: r = n.mode, target: i = "docume
|
|
|
215
215
|
})
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
|
-
|
|
218
|
+
He.displayName = "AdminUIThemeProvider";
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
|
|
221
221
|
var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), U = [
|
|
@@ -237,12 +237,12 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
237
237
|
"--inverse-surface-strong",
|
|
238
238
|
"--inverse-border",
|
|
239
239
|
"--inverse-decoration"
|
|
240
|
-
], W = ["--overlay-backdrop"],
|
|
240
|
+
], W = ["--overlay-backdrop"], Ue = [
|
|
241
241
|
"--font-heading",
|
|
242
242
|
"--font-sans",
|
|
243
243
|
"--font-serif",
|
|
244
244
|
"--font-mono"
|
|
245
|
-
],
|
|
245
|
+
], We = [
|
|
246
246
|
"xxs",
|
|
247
247
|
"xs",
|
|
248
248
|
"pxs",
|
|
@@ -281,7 +281,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
281
281
|
"--avatar",
|
|
282
282
|
"--shell-header-height",
|
|
283
283
|
"--shell-sidebar-width"
|
|
284
|
-
],
|
|
284
|
+
], Ge = [
|
|
285
285
|
"--content-width-sm",
|
|
286
286
|
"--content-width-md",
|
|
287
287
|
"--content-width-lg",
|
|
@@ -290,12 +290,12 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
290
290
|
"--adaptive-grid-min-sm",
|
|
291
291
|
"--adaptive-grid-min-md",
|
|
292
292
|
"--adaptive-grid-min-lg"
|
|
293
|
-
],
|
|
293
|
+
], Ke = {
|
|
294
294
|
"--background": "Application canvas and default page background.",
|
|
295
295
|
"--foreground": "Primary text and icon color on the application canvas.",
|
|
296
296
|
"--primary": "Brand and primary-action color.",
|
|
297
297
|
"--primary-foreground": "Text and icons on solid primary fills.",
|
|
298
|
-
"--muted": "Subdued backgrounds for passive regions and
|
|
298
|
+
"--muted": "Subdued backgrounds for passive regions and tracks.",
|
|
299
299
|
"--muted-foreground": "Secondary text, metadata, and passive icons.",
|
|
300
300
|
"--border": "Default divider, outline, and surface-border color.",
|
|
301
301
|
"--ring": "Focus-visible ring and outline color.",
|
|
@@ -327,7 +327,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
327
327
|
"--adaptive-grid-min-sm": "Compact minimum peer width used by AdaptiveGrid.",
|
|
328
328
|
"--adaptive-grid-min-md": "Default minimum peer width used by AdaptiveGrid.",
|
|
329
329
|
"--adaptive-grid-min-lg": "Spacious minimum peer width used by AdaptiveGrid."
|
|
330
|
-
},
|
|
330
|
+
}, qe = {
|
|
331
331
|
"--space-scale": "Spacing scale",
|
|
332
332
|
"--density-scale": "Density scale",
|
|
333
333
|
"--height-action": "Action height",
|
|
@@ -546,14 +546,14 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
546
546
|
function J(e) {
|
|
547
547
|
return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Je(e, t) {
|
|
550
550
|
return e.startsWith("--chart-") ? "Categorical chart-series color; keep status meaning separate." : e.startsWith("--sidebar-") ? "Sidebar-specific theme color." : e.startsWith("--inverse-") ? "Explicitly inverse surface and content color." : e.endsWith("-foreground") ? "Foreground color paired with the matching solid or surface token." : e.endsWith("--line-height") ? "Line height paired with the matching typography step." : e.startsWith("--text-") ? "Font size for the matching typography step." : e.startsWith("--font-") ? "Font family stack for the matching content role." : e.startsWith("--shadow") ? "Elevation shadow used by package surfaces and overlays." : t === "states" ? "Semantic state color shared by package status surfaces." : "Public theme variable used across package components.";
|
|
551
551
|
}
|
|
552
552
|
function Y(e, t, n, r, i) {
|
|
553
553
|
return e.map((e) => ({
|
|
554
554
|
name: e,
|
|
555
|
-
label:
|
|
556
|
-
description:
|
|
555
|
+
label: qe[e] ?? J(e),
|
|
556
|
+
description: Ke[e] ?? Je(e, t),
|
|
557
557
|
group: t,
|
|
558
558
|
section: n,
|
|
559
559
|
scope: r,
|
|
@@ -561,7 +561,7 @@ function Y(e, t, n, r, i) {
|
|
|
561
561
|
control: q[e]
|
|
562
562
|
}));
|
|
563
563
|
}
|
|
564
|
-
var
|
|
564
|
+
var Ye = [
|
|
565
565
|
...Y(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
|
|
566
566
|
...Y(W, "colors", "surfaces-content", "shared", "color"),
|
|
567
567
|
...Y(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
|
|
@@ -569,8 +569,8 @@ var Je = [
|
|
|
569
569
|
...Y(H.slice(24), "colors", "sidebar", "mode", "color"),
|
|
570
570
|
...Y(U.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
|
|
571
571
|
...Y(U.slice(7), "states", "inverse-surfaces", "mode", "color"),
|
|
572
|
-
...Y(
|
|
573
|
-
...Y(
|
|
572
|
+
...Y(Ue, "typography", "font-families", "shared", "font"),
|
|
573
|
+
...Y(We, "typography", "type-scale", "shared", "length"),
|
|
574
574
|
...Y(["--radius"], "shape", "radius", "shared", "length"),
|
|
575
575
|
...Y(G, "shape", "elevation", "mode", "shadow"),
|
|
576
576
|
...Y(K.slice(0, 2), "structure", "global-scales", "shared", "length"),
|
|
@@ -579,8 +579,8 @@ var Je = [
|
|
|
579
579
|
...Y(K.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
|
|
580
580
|
...Y(K.slice(9, 11), "structure", "media", "shared", "length"),
|
|
581
581
|
...Y(K.slice(11), "structure", "application-shell", "shared", "length"),
|
|
582
|
-
...Y(
|
|
583
|
-
...Y(
|
|
582
|
+
...Y(Ge.slice(0, 5), "structure", "content-widths", "shared", "length"),
|
|
583
|
+
...Y(Ge.slice(5), "structure", "adaptive-layout", "shared", "length")
|
|
584
584
|
].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
|
|
585
585
|
...e,
|
|
586
586
|
kind: "number"
|
|
@@ -703,8 +703,8 @@ function Z(e, t) {
|
|
|
703
703
|
label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
|
|
704
704
|
}));
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
let a = R(e), o = Z(
|
|
706
|
+
function Xe({ config: e, onChange: t, strings: n = X }) {
|
|
707
|
+
let a = R(e), o = Z(r, n), s = [
|
|
708
708
|
"sunday",
|
|
709
709
|
"monday",
|
|
710
710
|
"tuesday",
|
|
@@ -714,7 +714,7 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
714
714
|
"saturday"
|
|
715
715
|
].map((e, t) => ({
|
|
716
716
|
value: String(t),
|
|
717
|
-
label:
|
|
717
|
+
label: n.options[e]
|
|
718
718
|
})), c = (e, n, r) => {
|
|
719
719
|
t({
|
|
720
720
|
...a,
|
|
@@ -724,51 +724,51 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
724
724
|
}
|
|
725
725
|
});
|
|
726
726
|
};
|
|
727
|
-
return /* @__PURE__ */
|
|
727
|
+
return /* @__PURE__ */ D(p, {
|
|
728
728
|
gap: "lg",
|
|
729
729
|
className: "theme-tweaker--provider-settings",
|
|
730
730
|
children: [
|
|
731
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ D(p, {
|
|
732
732
|
gap: "normal",
|
|
733
|
-
children: [/* @__PURE__ */
|
|
733
|
+
children: [/* @__PURE__ */ E(l, {
|
|
734
734
|
type: "inherit",
|
|
735
735
|
weight: "semibold",
|
|
736
|
-
children:
|
|
737
|
-
}), /* @__PURE__ */
|
|
736
|
+
children: n.title
|
|
737
|
+
}), /* @__PURE__ */ E(l, {
|
|
738
738
|
size: "xs",
|
|
739
739
|
type: "secondary",
|
|
740
|
-
children:
|
|
740
|
+
children: n.description
|
|
741
741
|
})]
|
|
742
742
|
}),
|
|
743
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ D(te, {
|
|
744
744
|
tone: "info",
|
|
745
745
|
role: "note",
|
|
746
746
|
className: "theme-tweaker--provider-boundary",
|
|
747
747
|
children: [
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
label:
|
|
754
|
-
value: a.formatting?.locale ??
|
|
748
|
+
/* @__PURE__ */ E(Ce, { "aria-hidden": "true" }),
|
|
749
|
+
/* @__PURE__ */ E(g, { children: n.boundaryTitle }),
|
|
750
|
+
/* @__PURE__ */ E(h, { children: n.boundaryDescription }),
|
|
751
|
+
/* @__PURE__ */ D(ee, { children: [
|
|
752
|
+
/* @__PURE__ */ E(m, {
|
|
753
|
+
label: n.summary.locale,
|
|
754
|
+
value: a.formatting?.locale ?? n.options.default
|
|
755
755
|
}),
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
-
label:
|
|
758
|
-
value: a.money?.defaultCurrency ??
|
|
756
|
+
/* @__PURE__ */ E(m, {
|
|
757
|
+
label: n.summary.currency,
|
|
758
|
+
value: a.money?.defaultCurrency ?? n.options.default
|
|
759
759
|
}),
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
label:
|
|
762
|
-
value:
|
|
760
|
+
/* @__PURE__ */ E(m, {
|
|
761
|
+
label: n.summary.controls,
|
|
762
|
+
value: n.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? n.options.md
|
|
763
763
|
}),
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
label:
|
|
766
|
-
value:
|
|
764
|
+
/* @__PURE__ */ E(m, {
|
|
765
|
+
label: n.summary.cards,
|
|
766
|
+
value: n.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? n.options.default
|
|
767
767
|
})
|
|
768
768
|
] })
|
|
769
769
|
]
|
|
770
770
|
}),
|
|
771
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ E(se, {
|
|
772
772
|
multiple: !0,
|
|
773
773
|
defaultValue: ["regional"],
|
|
774
774
|
variant: "bordered",
|
|
@@ -777,57 +777,57 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
777
777
|
items: [
|
|
778
778
|
{
|
|
779
779
|
value: "regional",
|
|
780
|
-
title:
|
|
781
|
-
description:
|
|
782
|
-
content: /* @__PURE__ */
|
|
780
|
+
title: n.sections.regional.title,
|
|
781
|
+
description: n.sections.regional.description,
|
|
782
|
+
content: /* @__PURE__ */ D("div", {
|
|
783
783
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
784
784
|
children: [
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
label:
|
|
787
|
-
children: /* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ E(y, {
|
|
786
|
+
label: n.labels.locale,
|
|
787
|
+
children: /* @__PURE__ */ E(v, {
|
|
788
788
|
value: a.formatting?.locale ?? "",
|
|
789
789
|
onChange: (e) => c("formatting", "locale", e.target.value)
|
|
790
790
|
})
|
|
791
791
|
}),
|
|
792
|
-
/* @__PURE__ */
|
|
793
|
-
label:
|
|
794
|
-
children: /* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ E(y, {
|
|
793
|
+
label: n.labels.defaultCurrency,
|
|
794
|
+
children: /* @__PURE__ */ E(v, {
|
|
795
795
|
value: a.money?.defaultCurrency ?? "",
|
|
796
796
|
onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
797
797
|
})
|
|
798
798
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
-
label:
|
|
801
|
-
children: /* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ E(y, {
|
|
800
|
+
label: n.labels.displayCurrency,
|
|
801
|
+
children: /* @__PURE__ */ E(v, {
|
|
802
802
|
value: a.money?.displayCurrency ?? "",
|
|
803
|
-
placeholder:
|
|
803
|
+
placeholder: n.displayCurrencyPlaceholder,
|
|
804
804
|
onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
805
805
|
})
|
|
806
806
|
}),
|
|
807
|
-
/* @__PURE__ */
|
|
808
|
-
label:
|
|
809
|
-
children: /* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ E(y, {
|
|
808
|
+
label: n.labels.moneyFormat,
|
|
809
|
+
children: /* @__PURE__ */ E(x, {
|
|
810
810
|
value: a.money?.formatMode,
|
|
811
811
|
options: Z([
|
|
812
812
|
"decimal",
|
|
813
813
|
"with_code",
|
|
814
814
|
"with_symbol",
|
|
815
815
|
"locale_aware"
|
|
816
|
-
],
|
|
816
|
+
], n),
|
|
817
817
|
onValueChange: (e) => c("money", "formatMode", e)
|
|
818
818
|
})
|
|
819
819
|
}),
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
label:
|
|
822
|
-
children: /* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ E(y, {
|
|
821
|
+
label: n.labels.firstDay,
|
|
822
|
+
children: /* @__PURE__ */ E(x, {
|
|
823
823
|
value: String(a.dates?.weekStartsOn ?? 1),
|
|
824
824
|
options: s,
|
|
825
825
|
onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
|
|
826
826
|
})
|
|
827
827
|
}),
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
label:
|
|
830
|
-
children: /* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ E(y, {
|
|
829
|
+
label: n.labels.dateFormat,
|
|
830
|
+
children: /* @__PURE__ */ E(v, {
|
|
831
831
|
value: a.dates?.format ?? "",
|
|
832
832
|
onChange: (e) => c("dates", "format", e.target.value)
|
|
833
833
|
})
|
|
@@ -837,14 +837,14 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
837
837
|
},
|
|
838
838
|
{
|
|
839
839
|
value: "content",
|
|
840
|
-
title:
|
|
841
|
-
description:
|
|
842
|
-
content: /* @__PURE__ */
|
|
840
|
+
title: n.sections.content.title,
|
|
841
|
+
description: n.sections.content.description,
|
|
842
|
+
content: /* @__PURE__ */ D("div", {
|
|
843
843
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
844
844
|
children: [
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
label:
|
|
847
|
-
children: /* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ E(y, {
|
|
846
|
+
label: n.labels.textSize,
|
|
847
|
+
children: /* @__PURE__ */ E(x, {
|
|
848
848
|
value: a.typography?.defaultTextSize,
|
|
849
849
|
options: Z([
|
|
850
850
|
"xxs",
|
|
@@ -854,41 +854,41 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
854
854
|
"base",
|
|
855
855
|
"lg",
|
|
856
856
|
"xl"
|
|
857
|
-
],
|
|
857
|
+
], n),
|
|
858
858
|
onValueChange: (e) => c("typography", "defaultTextSize", e)
|
|
859
859
|
})
|
|
860
860
|
}),
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
label:
|
|
863
|
-
children: /* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ E(y, {
|
|
862
|
+
label: n.labels.commentComposer,
|
|
863
|
+
children: /* @__PURE__ */ E(x, {
|
|
864
864
|
value: a.comments?.composerPosition,
|
|
865
|
-
options: Z(["top", "bottom"],
|
|
865
|
+
options: Z(["top", "bottom"], n),
|
|
866
866
|
onValueChange: (e) => c("comments", "composerPosition", e)
|
|
867
867
|
})
|
|
868
868
|
}),
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
label:
|
|
871
|
-
description:
|
|
869
|
+
/* @__PURE__ */ E(b, {
|
|
870
|
+
label: n.labels.dualPricing,
|
|
871
|
+
description: n.dualPricingDescription,
|
|
872
872
|
value: a.money?.dualPricingEnabled ?? !1,
|
|
873
873
|
onValueChange: (e) => c("money", "dualPricingEnabled", e)
|
|
874
874
|
}),
|
|
875
|
-
/* @__PURE__ */
|
|
876
|
-
label:
|
|
877
|
-
children: /* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ E(y, {
|
|
876
|
+
label: n.labels.dualPricingMode,
|
|
877
|
+
children: /* @__PURE__ */ E(x, {
|
|
878
878
|
value: a.money?.displayMode,
|
|
879
879
|
options: Z([
|
|
880
880
|
"default_only",
|
|
881
881
|
"dual",
|
|
882
882
|
"dynamic"
|
|
883
|
-
],
|
|
883
|
+
], n),
|
|
884
884
|
onValueChange: (e) => c("money", "displayMode", e)
|
|
885
885
|
})
|
|
886
886
|
}),
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
label:
|
|
889
|
-
children: /* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ E(y, {
|
|
888
|
+
label: n.labels.dualPricingLayout,
|
|
889
|
+
children: /* @__PURE__ */ E(x, {
|
|
890
890
|
value: a.money?.dualPricingDisplay,
|
|
891
|
-
options: Z(["inline", "lines"],
|
|
891
|
+
options: Z(["inline", "lines"], n),
|
|
892
892
|
onValueChange: (e) => c("money", "dualPricingDisplay", e)
|
|
893
893
|
})
|
|
894
894
|
})
|
|
@@ -897,90 +897,90 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
897
897
|
},
|
|
898
898
|
{
|
|
899
899
|
value: "components",
|
|
900
|
-
title:
|
|
901
|
-
description:
|
|
902
|
-
content: /* @__PURE__ */
|
|
900
|
+
title: n.sections.components.title,
|
|
901
|
+
description: n.sections.components.description,
|
|
902
|
+
content: /* @__PURE__ */ D("div", {
|
|
903
903
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
904
904
|
children: [
|
|
905
|
-
/* @__PURE__ */
|
|
906
|
-
label:
|
|
907
|
-
children: /* @__PURE__ */
|
|
905
|
+
/* @__PURE__ */ E(y, {
|
|
906
|
+
label: n.labels.componentScale,
|
|
907
|
+
children: /* @__PURE__ */ E(x, {
|
|
908
908
|
value: a.density?.defaultScale,
|
|
909
909
|
options: o,
|
|
910
910
|
onValueChange: (e) => c("density", "defaultScale", e)
|
|
911
911
|
})
|
|
912
912
|
}),
|
|
913
|
-
/* @__PURE__ */
|
|
914
|
-
label:
|
|
915
|
-
children: /* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ E(y, {
|
|
914
|
+
label: n.labels.itemVariant,
|
|
915
|
+
children: /* @__PURE__ */ E(x, {
|
|
916
916
|
value: a.item?.defaultVariant,
|
|
917
917
|
options: Z([
|
|
918
918
|
"default",
|
|
919
919
|
"outline",
|
|
920
920
|
"muted"
|
|
921
|
-
],
|
|
921
|
+
], n),
|
|
922
922
|
onValueChange: (e) => c("item", "defaultVariant", e)
|
|
923
923
|
})
|
|
924
924
|
}),
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
-
label:
|
|
927
|
-
children: /* @__PURE__ */
|
|
925
|
+
/* @__PURE__ */ E(y, {
|
|
926
|
+
label: n.labels.buttonTone,
|
|
927
|
+
children: /* @__PURE__ */ E(x, {
|
|
928
928
|
value: a.button?.defaultTone,
|
|
929
|
-
options: Z(
|
|
929
|
+
options: Z(i, n),
|
|
930
930
|
onValueChange: (e) => c("button", "defaultTone", e)
|
|
931
931
|
})
|
|
932
932
|
}),
|
|
933
|
-
/* @__PURE__ */
|
|
934
|
-
label:
|
|
935
|
-
children: /* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ E(y, {
|
|
934
|
+
label: n.labels.buttonStyle,
|
|
935
|
+
children: /* @__PURE__ */ E(x, {
|
|
936
936
|
value: a.button?.defaultButtonStyle,
|
|
937
937
|
options: Z([
|
|
938
938
|
"solid",
|
|
939
939
|
"outline",
|
|
940
940
|
"ghost"
|
|
941
|
-
],
|
|
941
|
+
], n),
|
|
942
942
|
onValueChange: (e) => c("button", "defaultButtonStyle", e)
|
|
943
943
|
})
|
|
944
944
|
}),
|
|
945
|
-
/* @__PURE__ */
|
|
946
|
-
label:
|
|
947
|
-
children: /* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ E(y, {
|
|
946
|
+
label: n.labels.badgeTone,
|
|
947
|
+
children: /* @__PURE__ */ E(x, {
|
|
948
948
|
value: a.badge?.defaultTone,
|
|
949
|
-
options: Z(
|
|
949
|
+
options: Z(i, n),
|
|
950
950
|
onValueChange: (e) => c("badge", "defaultTone", e)
|
|
951
951
|
})
|
|
952
952
|
}),
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
label:
|
|
955
|
-
children: /* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ E(y, {
|
|
954
|
+
label: n.labels.cardSurface,
|
|
955
|
+
children: /* @__PURE__ */ E(x, {
|
|
956
956
|
value: a.card?.defaultSurface,
|
|
957
957
|
options: Z([
|
|
958
958
|
"card",
|
|
959
959
|
"flat",
|
|
960
960
|
"framed"
|
|
961
|
-
],
|
|
961
|
+
], n),
|
|
962
962
|
onValueChange: (e) => c("card", "defaultSurface", e)
|
|
963
963
|
})
|
|
964
964
|
}),
|
|
965
|
-
/* @__PURE__ */
|
|
966
|
-
label:
|
|
967
|
-
children: /* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ E(y, {
|
|
966
|
+
label: n.labels.spinner,
|
|
967
|
+
children: /* @__PURE__ */ E(x, {
|
|
968
968
|
value: a.spinner?.defaultVariant,
|
|
969
969
|
options: Z([
|
|
970
970
|
"default",
|
|
971
971
|
"shimmer",
|
|
972
972
|
"progress"
|
|
973
|
-
],
|
|
973
|
+
], n),
|
|
974
974
|
onValueChange: (e) => c("spinner", "defaultVariant", e)
|
|
975
975
|
})
|
|
976
976
|
}),
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
label:
|
|
977
|
+
/* @__PURE__ */ E(b, {
|
|
978
|
+
label: n.labels.cardDivider,
|
|
979
979
|
value: a.card?.defaultHeaderDivider ?? !1,
|
|
980
980
|
onValueChange: (e) => c("card", "defaultHeaderDivider", e)
|
|
981
981
|
}),
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
label:
|
|
982
|
+
/* @__PURE__ */ E(b, {
|
|
983
|
+
label: n.labels.cardFooterDivider ?? X.labels.cardFooterDivider,
|
|
984
984
|
value: a.card?.defaultFooterDivider ?? !0,
|
|
985
985
|
onValueChange: (e) => c("card", "defaultFooterDivider", e)
|
|
986
986
|
})
|
|
@@ -989,14 +989,14 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
991
|
value: "toasts",
|
|
992
|
-
title:
|
|
993
|
-
description:
|
|
994
|
-
content: /* @__PURE__ */
|
|
992
|
+
title: n.sections.toasts.title,
|
|
993
|
+
description: n.sections.toasts.description,
|
|
994
|
+
content: /* @__PURE__ */ D("div", {
|
|
995
995
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
996
996
|
children: [
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
-
label:
|
|
999
|
-
children: /* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ E(y, {
|
|
998
|
+
label: n.labels.toastPosition,
|
|
999
|
+
children: /* @__PURE__ */ E(x, {
|
|
1000
1000
|
value: a.toast?.position,
|
|
1001
1001
|
options: Z([
|
|
1002
1002
|
"top-right",
|
|
@@ -1005,25 +1005,25 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
1005
1005
|
"bottom-right",
|
|
1006
1006
|
"bottom-left",
|
|
1007
1007
|
"bottom-center"
|
|
1008
|
-
],
|
|
1008
|
+
], n),
|
|
1009
1009
|
onValueChange: (e) => c("toast", "position", e)
|
|
1010
1010
|
})
|
|
1011
1011
|
}),
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
label:
|
|
1014
|
-
children: /* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ E(y, {
|
|
1013
|
+
label: n.labels.toastTheme,
|
|
1014
|
+
children: /* @__PURE__ */ E(x, {
|
|
1015
1015
|
value: a.toast?.theme,
|
|
1016
1016
|
options: Z([
|
|
1017
1017
|
"light",
|
|
1018
1018
|
"dark",
|
|
1019
1019
|
"system"
|
|
1020
|
-
],
|
|
1020
|
+
], n),
|
|
1021
1021
|
onValueChange: (e) => c("toast", "theme", e)
|
|
1022
1022
|
})
|
|
1023
1023
|
}),
|
|
1024
|
-
/* @__PURE__ */
|
|
1025
|
-
label:
|
|
1026
|
-
children: /* @__PURE__ */
|
|
1024
|
+
/* @__PURE__ */ E(y, {
|
|
1025
|
+
label: n.labels.toastDuration,
|
|
1026
|
+
children: /* @__PURE__ */ E(v, {
|
|
1027
1027
|
type: "number",
|
|
1028
1028
|
min: 1e3,
|
|
1029
1029
|
step: 500,
|
|
@@ -1031,9 +1031,9 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
1031
1031
|
onChange: (e) => c("toast", "duration", Number(e.target.value))
|
|
1032
1032
|
})
|
|
1033
1033
|
}),
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
-
label:
|
|
1036
|
-
children: /* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ E(y, {
|
|
1035
|
+
label: n.labels.visibleToasts,
|
|
1036
|
+
children: /* @__PURE__ */ E(v, {
|
|
1037
1037
|
type: "number",
|
|
1038
1038
|
min: 1,
|
|
1039
1039
|
max: 10,
|
|
@@ -1041,13 +1041,13 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
1041
1041
|
onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
|
|
1042
1042
|
})
|
|
1043
1043
|
}),
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
label:
|
|
1044
|
+
/* @__PURE__ */ E(b, {
|
|
1045
|
+
label: n.labels.closeButton,
|
|
1046
1046
|
value: a.toast?.closeButton ?? !0,
|
|
1047
1047
|
onValueChange: (e) => c("toast", "closeButton", e)
|
|
1048
1048
|
}),
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
label:
|
|
1049
|
+
/* @__PURE__ */ E(b, {
|
|
1050
|
+
label: n.labels.richColors,
|
|
1051
1051
|
value: a.toast?.richColors ?? !1,
|
|
1052
1052
|
onValueChange: (e) => c("toast", "richColors", e)
|
|
1053
1053
|
})
|
|
@@ -1061,7 +1061,7 @@ function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
//#endregion
|
|
1063
1063
|
//#region src/components/features/theme-tweaker/theme-tweaker.strings.ts
|
|
1064
|
-
var
|
|
1064
|
+
var Ze = {
|
|
1065
1065
|
title: "Theme tweaker",
|
|
1066
1066
|
description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus root display defaults.",
|
|
1067
1067
|
searchLabel: "Search variables",
|
|
@@ -1183,7 +1183,7 @@ function $(e, t) {
|
|
|
1183
1183
|
let i = e.match(/oklch\(\s*([\d.]+)(%)?/i), a = Number.parseFloat(i?.[1] ?? "NaN") / (i?.[2] ? 100 : 1);
|
|
1184
1184
|
return Number.isFinite(a) ? a > .67 ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)" : t === "dark" ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)";
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Qe({ primary: e, mode: t = "light" }) {
|
|
1187
1187
|
let n = t === "dark", r = (e, t) => `color-mix(in oklab, ${n ? t : e} 94%, var(--primary))`;
|
|
1188
1188
|
return {
|
|
1189
1189
|
"--primary": e,
|
|
@@ -1219,13 +1219,13 @@ function Ze({ primary: e, mode: t = "light" }) {
|
|
|
1219
1219
|
"--sidebar-ring": "var(--ring)"
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1222
|
+
var $e = {
|
|
1223
1223
|
xxs: .75,
|
|
1224
1224
|
xs: .75,
|
|
1225
1225
|
pxs: .8125,
|
|
1226
1226
|
sm: .875,
|
|
1227
1227
|
base: 1
|
|
1228
|
-
},
|
|
1228
|
+
}, et = [
|
|
1229
1229
|
"lg",
|
|
1230
1230
|
"xl",
|
|
1231
1231
|
"2xl",
|
|
@@ -1237,18 +1237,18 @@ var Qe = {
|
|
|
1237
1237
|
"8xl",
|
|
1238
1238
|
"9xl"
|
|
1239
1239
|
];
|
|
1240
|
-
function
|
|
1240
|
+
function tt({ baseSize: e, ratio: t = 1.2 }) {
|
|
1241
1241
|
let n = Q(e, 14, 20), r = Q(t, 1.125, 1.333), i = {};
|
|
1242
|
-
for (let [e, t] of Object.entries(
|
|
1242
|
+
for (let [e, t] of Object.entries($e)) {
|
|
1243
1243
|
let r = Math.max(12, n * t);
|
|
1244
1244
|
i[`--text-${e}`] = `${Number((r / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number((Math.max(r + 6, r * 1.45) / r).toFixed(4))}`;
|
|
1245
1245
|
}
|
|
1246
|
-
return
|
|
1246
|
+
return et.forEach((e, t) => {
|
|
1247
1247
|
let a = n * r ** (t + 1);
|
|
1248
1248
|
i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(Q(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
|
|
1249
1249
|
}), i;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function nt({ intensity: e }) {
|
|
1252
1252
|
let t = Q(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
|
|
1253
1253
|
return {
|
|
1254
1254
|
"--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
|
|
@@ -1263,28 +1263,28 @@ function tt({ intensity: e }) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
//#endregion
|
|
1265
1265
|
//#region src/components/features/theme-tweaker/theme-tweaker.tsx
|
|
1266
|
-
var
|
|
1266
|
+
var rt = [
|
|
1267
1267
|
"colors",
|
|
1268
1268
|
"states",
|
|
1269
1269
|
"typography",
|
|
1270
1270
|
"shape",
|
|
1271
1271
|
"structure",
|
|
1272
1272
|
"defaults"
|
|
1273
|
-
],
|
|
1274
|
-
colors:
|
|
1275
|
-
states:
|
|
1276
|
-
typography:
|
|
1277
|
-
shape:
|
|
1278
|
-
structure:
|
|
1279
|
-
defaults:
|
|
1273
|
+
], it = {
|
|
1274
|
+
colors: O,
|
|
1275
|
+
states: k,
|
|
1276
|
+
typography: je,
|
|
1277
|
+
shape: ke,
|
|
1278
|
+
structure: we,
|
|
1279
|
+
defaults: Oe
|
|
1280
1280
|
};
|
|
1281
|
-
function
|
|
1282
|
-
let f =
|
|
1283
|
-
return /* @__PURE__ */
|
|
1284
|
-
render: /* @__PURE__ */
|
|
1281
|
+
function at({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
|
|
1282
|
+
let f = C();
|
|
1283
|
+
return /* @__PURE__ */ D(p, {
|
|
1284
|
+
render: /* @__PURE__ */ E("section", { "aria-labelledby": f }),
|
|
1285
1285
|
gap: "md",
|
|
1286
1286
|
className: "theme-tweaker--export-artifact min-w-0",
|
|
1287
|
-
children: [/* @__PURE__ */
|
|
1287
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1288
1288
|
direction: {
|
|
1289
1289
|
base: "vertical",
|
|
1290
1290
|
sm: "horizontal"
|
|
@@ -1296,63 +1296,63 @@ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
|
|
|
1296
1296
|
justify: { sm: "between" },
|
|
1297
1297
|
gap: "md",
|
|
1298
1298
|
className: "theme-tweaker--export-artifact-header",
|
|
1299
|
-
children: [/* @__PURE__ */
|
|
1299
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1300
1300
|
gap: "dense",
|
|
1301
1301
|
className: "min-w-0",
|
|
1302
|
-
children: [/* @__PURE__ */
|
|
1302
|
+
children: [/* @__PURE__ */ E(u, {
|
|
1303
1303
|
className: "text-inherit",
|
|
1304
1304
|
id: f,
|
|
1305
1305
|
tag: "h3",
|
|
1306
1306
|
children: e
|
|
1307
|
-
}), /* @__PURE__ */
|
|
1307
|
+
}), /* @__PURE__ */ E(l, {
|
|
1308
1308
|
size: "xs",
|
|
1309
1309
|
type: "secondary",
|
|
1310
1310
|
children: t
|
|
1311
1311
|
})]
|
|
1312
|
-
}), /* @__PURE__ */
|
|
1312
|
+
}), /* @__PURE__ */ D(p, {
|
|
1313
1313
|
direction: "horizontal",
|
|
1314
1314
|
gap: "xs",
|
|
1315
1315
|
align: "center",
|
|
1316
1316
|
wrap: !0,
|
|
1317
1317
|
className: "theme-tweaker--export-artifact-actions sm:shrink-0",
|
|
1318
|
-
children: [/* @__PURE__ */
|
|
1318
|
+
children: [/* @__PURE__ */ E(c, {
|
|
1319
1319
|
type: "button",
|
|
1320
1320
|
size: "sm",
|
|
1321
1321
|
tone: "secondary",
|
|
1322
1322
|
buttonStyle: "outline",
|
|
1323
|
-
icon:
|
|
1323
|
+
icon: xe,
|
|
1324
1324
|
onClick: a,
|
|
1325
1325
|
children: r
|
|
1326
|
-
}), /* @__PURE__ */
|
|
1326
|
+
}), /* @__PURE__ */ E(c, {
|
|
1327
1327
|
tone: "primary",
|
|
1328
1328
|
type: "button",
|
|
1329
1329
|
size: "sm",
|
|
1330
|
-
icon:
|
|
1330
|
+
icon: Se,
|
|
1331
1331
|
loading: s,
|
|
1332
1332
|
onClick: o,
|
|
1333
1333
|
children: i
|
|
1334
1334
|
})]
|
|
1335
1335
|
})]
|
|
1336
|
-
}), /* @__PURE__ */
|
|
1336
|
+
}), /* @__PURE__ */ E("pre", {
|
|
1337
1337
|
tabIndex: 0,
|
|
1338
1338
|
"aria-label": e,
|
|
1339
1339
|
className: `theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground outline-none ${d.frame} sm:max-h-72`,
|
|
1340
|
-
children: /* @__PURE__ */
|
|
1340
|
+
children: /* @__PURE__ */ E("code", { children: n })
|
|
1341
1341
|
})]
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function ot(e, t) {
|
|
1345
1345
|
let n = Number.parseFloat(e);
|
|
1346
1346
|
return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function st(e, t) {
|
|
1349
1349
|
let n = t.decimalPlaces ?? 3;
|
|
1350
1350
|
return `${Number(e.toFixed(n))}${t.unit ?? ""}`;
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function ct(e, t) {
|
|
1353
1353
|
return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function lt(e, t) {
|
|
1356
1356
|
if (typeof document > "u" || typeof window > "u") return M(e);
|
|
1357
1357
|
let n = document.documentElement, r = [...new Set(t.map((e) => e.name))], i = n.classList.contains("light"), a = n.classList.contains("dark"), o = new Map(r.map((e) => [e, {
|
|
1358
1358
|
value: n.style.getPropertyValue(e),
|
|
@@ -1380,30 +1380,30 @@ function ct(e, t) {
|
|
|
1380
1380
|
n.classList.toggle("light", i), n.classList.toggle("dark", a);
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
let s = `theme-variable-${
|
|
1383
|
+
function ut({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
|
|
1384
|
+
let s = `theme-variable-${C().replace(/:/g, "")}`, u = /* @__PURE__ */ E(c, {
|
|
1385
1385
|
type: "button",
|
|
1386
1386
|
iconOnly: !0,
|
|
1387
1387
|
tone: "secondary",
|
|
1388
1388
|
buttonStyle: "ghost",
|
|
1389
|
-
icon:
|
|
1389
|
+
icon: Ee,
|
|
1390
1390
|
withTooltip: o.resetVariable,
|
|
1391
1391
|
"aria-label": `${o.resetVariable}: ${e.label}`,
|
|
1392
1392
|
disabled: !t,
|
|
1393
1393
|
onClick: i,
|
|
1394
|
-
children: /* @__PURE__ */
|
|
1394
|
+
children: /* @__PURE__ */ E(l, {
|
|
1395
1395
|
tag: "span",
|
|
1396
1396
|
size: "inherit",
|
|
1397
1397
|
className: "sr-only",
|
|
1398
1398
|
children: o.resetVariable
|
|
1399
1399
|
})
|
|
1400
1400
|
}), d = e.placeholder ?? n ?? o.inheritValue, f;
|
|
1401
|
-
if (e.kind === "color") f = /* @__PURE__ */
|
|
1401
|
+
if (e.kind === "color") f = /* @__PURE__ */ D(p, {
|
|
1402
1402
|
direction: "horizontal",
|
|
1403
1403
|
gap: "xs",
|
|
1404
1404
|
align: "center",
|
|
1405
1405
|
wrap: !1,
|
|
1406
|
-
children: [/* @__PURE__ */
|
|
1406
|
+
children: [/* @__PURE__ */ E(ue, {
|
|
1407
1407
|
id: s,
|
|
1408
1408
|
"aria-label": e.label,
|
|
1409
1409
|
"aria-description": e.description,
|
|
@@ -1416,26 +1416,26 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1416
1416
|
}), u]
|
|
1417
1417
|
});
|
|
1418
1418
|
else if (e.control?.type === "range") {
|
|
1419
|
-
let i =
|
|
1420
|
-
f = /* @__PURE__ */
|
|
1419
|
+
let i = ot(t || n, e.control);
|
|
1420
|
+
f = /* @__PURE__ */ D(p, {
|
|
1421
1421
|
gap: "sm",
|
|
1422
|
-
children: [/* @__PURE__ */
|
|
1422
|
+
children: [/* @__PURE__ */ E(de, {
|
|
1423
1423
|
id: `${s}-slider`,
|
|
1424
1424
|
"aria-label": a(o.adjustVariable, { label: e.label }),
|
|
1425
1425
|
value: i,
|
|
1426
1426
|
min: e.control.min,
|
|
1427
1427
|
max: e.control.max,
|
|
1428
1428
|
step: e.control.step,
|
|
1429
|
-
onValueChange: (t) => r(
|
|
1430
|
-
}), /* @__PURE__ */
|
|
1429
|
+
onValueChange: (t) => r(st(t, e.control))
|
|
1430
|
+
}), /* @__PURE__ */ D(p, {
|
|
1431
1431
|
direction: "horizontal",
|
|
1432
1432
|
gap: "xs",
|
|
1433
1433
|
align: "center",
|
|
1434
1434
|
wrap: !1,
|
|
1435
|
-
children: [/* @__PURE__ */
|
|
1435
|
+
children: [/* @__PURE__ */ E(p, {
|
|
1436
1436
|
gap: "none",
|
|
1437
1437
|
className: "w-28 max-w-full shrink-0",
|
|
1438
|
-
children: /* @__PURE__ */
|
|
1438
|
+
children: /* @__PURE__ */ E(fe, {
|
|
1439
1439
|
id: s,
|
|
1440
1440
|
"aria-label": e.label,
|
|
1441
1441
|
"aria-description": e.description,
|
|
@@ -1455,14 +1455,14 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1455
1455
|
}), u]
|
|
1456
1456
|
})]
|
|
1457
1457
|
});
|
|
1458
|
-
} else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */
|
|
1458
|
+
} else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(p, {
|
|
1459
1459
|
direction: "horizontal",
|
|
1460
1460
|
gap: "xs",
|
|
1461
1461
|
align: "start",
|
|
1462
1462
|
wrap: !1,
|
|
1463
|
-
children: [/* @__PURE__ */
|
|
1463
|
+
children: [/* @__PURE__ */ E(p, {
|
|
1464
1464
|
className: "min-w-0 flex-1",
|
|
1465
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ E(le, {
|
|
1466
1466
|
id: s,
|
|
1467
1467
|
"aria-label": e.label,
|
|
1468
1468
|
"aria-description": e.description,
|
|
@@ -1474,12 +1474,12 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1474
1474
|
className: "font-mono"
|
|
1475
1475
|
})
|
|
1476
1476
|
}), u]
|
|
1477
|
-
}) : /* @__PURE__ */
|
|
1477
|
+
}) : /* @__PURE__ */ D(p, {
|
|
1478
1478
|
direction: "horizontal",
|
|
1479
1479
|
gap: "xs",
|
|
1480
1480
|
align: "center",
|
|
1481
1481
|
wrap: !1,
|
|
1482
|
-
children: [/* @__PURE__ */
|
|
1482
|
+
children: [/* @__PURE__ */ E(v, {
|
|
1483
1483
|
id: s,
|
|
1484
1484
|
"aria-label": e.label,
|
|
1485
1485
|
"aria-description": e.description,
|
|
@@ -1489,23 +1489,23 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1489
1489
|
className: "min-w-0 flex-1 font-mono"
|
|
1490
1490
|
}), u]
|
|
1491
1491
|
});
|
|
1492
|
-
return /* @__PURE__ */
|
|
1493
|
-
label: /* @__PURE__ */
|
|
1494
|
-
render: /* @__PURE__ */
|
|
1492
|
+
return /* @__PURE__ */ E(y, {
|
|
1493
|
+
label: /* @__PURE__ */ D(p, {
|
|
1494
|
+
render: /* @__PURE__ */ E("span", {}),
|
|
1495
1495
|
direction: "horizontal",
|
|
1496
1496
|
gap: "sm",
|
|
1497
1497
|
align: "baseline",
|
|
1498
1498
|
justify: "between",
|
|
1499
1499
|
wrap: !0,
|
|
1500
1500
|
className: "min-w-0 flex-1",
|
|
1501
|
-
children: [/* @__PURE__ */
|
|
1501
|
+
children: [/* @__PURE__ */ E(l, {
|
|
1502
1502
|
type: "inherit",
|
|
1503
1503
|
tag: "span",
|
|
1504
1504
|
size: "inherit",
|
|
1505
1505
|
weight: "medium",
|
|
1506
1506
|
className: "min-w-0",
|
|
1507
1507
|
children: e.label
|
|
1508
|
-
}), /* @__PURE__ */
|
|
1508
|
+
}), /* @__PURE__ */ E(oe, {
|
|
1509
1509
|
size: "xs",
|
|
1510
1510
|
type: "secondary",
|
|
1511
1511
|
weight: "regular",
|
|
@@ -1518,47 +1518,47 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1518
1518
|
children: f
|
|
1519
1519
|
});
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return /* @__PURE__ */
|
|
1521
|
+
function dt({ strings: e }) {
|
|
1522
|
+
return /* @__PURE__ */ E(ne, {
|
|
1523
1523
|
title: e.previewTitle,
|
|
1524
1524
|
description: e.previewDescription,
|
|
1525
1525
|
className: "theme-tweaker--preview-card",
|
|
1526
|
-
children: /* @__PURE__ */
|
|
1526
|
+
children: /* @__PURE__ */ D(p, {
|
|
1527
1527
|
gap: "lg",
|
|
1528
1528
|
children: [
|
|
1529
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ D(p, {
|
|
1530
1530
|
direction: "horizontal",
|
|
1531
1531
|
gap: "sm",
|
|
1532
1532
|
wrap: !0,
|
|
1533
1533
|
children: [
|
|
1534
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ E(_, {
|
|
1535
1535
|
tone: "success",
|
|
1536
1536
|
children: e.previewSuccess
|
|
1537
1537
|
}),
|
|
1538
|
-
/* @__PURE__ */
|
|
1538
|
+
/* @__PURE__ */ E(_, {
|
|
1539
1539
|
tone: "warning",
|
|
1540
1540
|
children: e.previewWarning
|
|
1541
1541
|
}),
|
|
1542
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ E(_, {
|
|
1543
1543
|
tone: "secondary",
|
|
1544
1544
|
children: e.previewContract
|
|
1545
1545
|
})
|
|
1546
1546
|
]
|
|
1547
1547
|
}),
|
|
1548
|
-
/* @__PURE__ */
|
|
1548
|
+
/* @__PURE__ */ E(pe, {
|
|
1549
1549
|
variant: "muted",
|
|
1550
1550
|
padding: "default",
|
|
1551
|
-
media: /* @__PURE__ */
|
|
1551
|
+
media: /* @__PURE__ */ E(O, {}),
|
|
1552
1552
|
mediaVariant: "icon",
|
|
1553
1553
|
title: e.previewItemTitle,
|
|
1554
1554
|
description: e.previewItemDescription,
|
|
1555
|
-
trailing: /* @__PURE__ */
|
|
1555
|
+
trailing: /* @__PURE__ */ E(be, { className: "size-icon text-success" })
|
|
1556
1556
|
}),
|
|
1557
|
-
/* @__PURE__ */
|
|
1557
|
+
/* @__PURE__ */ E(y, {
|
|
1558
1558
|
label: e.previewFieldLabel,
|
|
1559
|
-
children: /* @__PURE__ */
|
|
1559
|
+
children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
|
|
1560
1560
|
}),
|
|
1561
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ E(c, {
|
|
1562
1562
|
tone: "primary",
|
|
1563
1563
|
type: "button",
|
|
1564
1564
|
children: e.previewAction
|
|
@@ -1567,60 +1567,60 @@ function ut({ strings: e }) {
|
|
|
1567
1567
|
})
|
|
1568
1568
|
});
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function ft(e, t, n) {
|
|
1571
1571
|
let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
|
|
1572
1572
|
return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
|
|
1573
1573
|
...e,
|
|
1574
1574
|
[r]: i
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
var
|
|
1578
|
-
let
|
|
1579
|
-
|
|
1577
|
+
var pt = S(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: oe, onConfigChange: ce, providerFileName: le = "admin-ui.config.ts", showIntro: x = !0, selectors: ue, onExport: fe, onCopy: pe, onReset: S, onError: C, actionsSlot: be, strings: xe, className: Se, ...Ce }, we) {
|
|
1578
|
+
let O = o(Ze, xe), [Oe, ke] = T(() => M(t)), k = w(() => e ? M(e) : Oe, [Oe, e]), [je, Me] = T(() => R(oe)), A = w(() => R(g ?? je), [g, je]), [j, Ne] = T("colors"), [N, P] = T(""), [F, I] = T(!0), [L, Pe] = T(16), [z, Ie] = T(1.2), [Be, He] = T(.8), [H, U] = T("idle"), W = ie(), [Ue, We] = T(!1), G = ye(null);
|
|
1579
|
+
ve(we, () => G.current), Ve({
|
|
1580
1580
|
apply: m,
|
|
1581
1581
|
manageModeClass: ee,
|
|
1582
1582
|
selfRef: G,
|
|
1583
1583
|
target: d,
|
|
1584
|
-
theme:
|
|
1584
|
+
theme: k
|
|
1585
1585
|
});
|
|
1586
|
-
let [K,
|
|
1587
|
-
|
|
1586
|
+
let [K, Ge] = T(() => M(k)), [Ke, qe] = T({});
|
|
1587
|
+
_e(() => {
|
|
1588
1588
|
if (typeof window > "u") return;
|
|
1589
1589
|
let e = window.setTimeout(() => {
|
|
1590
|
-
let e =
|
|
1590
|
+
let e = ct(d, G.current);
|
|
1591
1591
|
if (!e) return;
|
|
1592
1592
|
let t = window.getComputedStyle(e);
|
|
1593
|
-
|
|
1593
|
+
qe(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ge(lt(k, i));
|
|
1594
1594
|
}, 0);
|
|
1595
1595
|
return () => window.clearTimeout(e);
|
|
1596
1596
|
}, [
|
|
1597
1597
|
m,
|
|
1598
1598
|
i,
|
|
1599
1599
|
d,
|
|
1600
|
-
|
|
1600
|
+
k
|
|
1601
1601
|
]);
|
|
1602
|
-
let { artifact: q, error: J } =
|
|
1602
|
+
let { artifact: q, error: J } = w(() => {
|
|
1603
1603
|
try {
|
|
1604
1604
|
let e = M({
|
|
1605
|
-
mode:
|
|
1605
|
+
mode: k.mode,
|
|
1606
1606
|
shared: {
|
|
1607
1607
|
...K.shared,
|
|
1608
|
-
...
|
|
1608
|
+
...k.shared
|
|
1609
1609
|
},
|
|
1610
1610
|
light: {
|
|
1611
1611
|
...K.light,
|
|
1612
|
-
...
|
|
1612
|
+
...k.light
|
|
1613
1613
|
},
|
|
1614
1614
|
dark: {
|
|
1615
1615
|
...K.dark,
|
|
1616
|
-
...
|
|
1616
|
+
...k.dark
|
|
1617
1617
|
}
|
|
1618
1618
|
});
|
|
1619
1619
|
return {
|
|
1620
|
-
artifact:
|
|
1620
|
+
artifact: Le(k, te, { selectors: ue }, {
|
|
1621
1621
|
resolvedTheme: e,
|
|
1622
|
-
providerConfig:
|
|
1623
|
-
providerFileName:
|
|
1622
|
+
providerConfig: A,
|
|
1623
|
+
providerFileName: le
|
|
1624
1624
|
}),
|
|
1625
1625
|
error: null
|
|
1626
1626
|
};
|
|
@@ -1632,12 +1632,12 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}, [
|
|
1634
1634
|
te,
|
|
1635
|
-
|
|
1636
|
-
ce,
|
|
1637
|
-
K,
|
|
1635
|
+
A,
|
|
1638
1636
|
le,
|
|
1639
|
-
|
|
1640
|
-
|
|
1637
|
+
K,
|
|
1638
|
+
ue,
|
|
1639
|
+
k
|
|
1640
|
+
]), Je = q?.cssText ?? `/* ${O.invalidTheme} */\n`, Y = w(() => Fe(k), [k]), X = N.trim().toLowerCase(), Z = w(() => i.filter((e) => !X && e.group !== j ? !1 : !X || [
|
|
1641
1641
|
e.name,
|
|
1642
1642
|
e.label,
|
|
1643
1643
|
e.description
|
|
@@ -1645,7 +1645,7 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1645
1645
|
i,
|
|
1646
1646
|
j,
|
|
1647
1647
|
X
|
|
1648
|
-
]), Q =
|
|
1648
|
+
]), Q = w(() => {
|
|
1649
1649
|
let e = /* @__PURE__ */ new Map();
|
|
1650
1650
|
for (let t of Z) {
|
|
1651
1651
|
let n = `${t.group}:${t.section}`, r = e.get(n);
|
|
@@ -1657,104 +1657,104 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1657
1657
|
}
|
|
1658
1658
|
return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
|
|
1659
1659
|
}, [Z]), $ = (t) => {
|
|
1660
|
-
e === void 0 &&
|
|
1661
|
-
}, Qe = (e) => {
|
|
1662
|
-
g === void 0 && Ae(e), se?.(e), U("idle");
|
|
1660
|
+
e === void 0 && ke(t), n?.(t), U("idle");
|
|
1663
1661
|
}, $e = (e) => {
|
|
1662
|
+
g === void 0 && Me(e), ce?.(e), U("idle");
|
|
1663
|
+
}, et = (e) => {
|
|
1664
1664
|
$({
|
|
1665
|
-
...
|
|
1666
|
-
[
|
|
1667
|
-
...
|
|
1665
|
+
...k,
|
|
1666
|
+
[k.mode]: {
|
|
1667
|
+
...k[k.mode],
|
|
1668
1668
|
...e
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
|
-
},
|
|
1671
|
+
}, ot = (e) => {
|
|
1672
1672
|
$({
|
|
1673
|
-
...
|
|
1673
|
+
...k,
|
|
1674
1674
|
shared: {
|
|
1675
|
-
...
|
|
1675
|
+
...k.shared,
|
|
1676
1676
|
...e
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
|
-
},
|
|
1680
|
-
e !==
|
|
1681
|
-
...
|
|
1679
|
+
}, st = (e) => {
|
|
1680
|
+
e !== k.mode && ($({
|
|
1681
|
+
...k,
|
|
1682
1682
|
mode: e
|
|
1683
1683
|
}), r?.(e));
|
|
1684
|
-
},
|
|
1684
|
+
}, pt = async () => {
|
|
1685
1685
|
try {
|
|
1686
1686
|
if (J) throw J;
|
|
1687
|
-
if (
|
|
1688
|
-
|
|
1687
|
+
if (We(!0), !q) throw Error(O.invalidTheme);
|
|
1688
|
+
fe ? await fe(q) : Re(q), U("exported");
|
|
1689
1689
|
} catch (e) {
|
|
1690
|
-
|
|
1690
|
+
C?.(e);
|
|
1691
1691
|
} finally {
|
|
1692
|
-
|
|
1692
|
+
We(!1);
|
|
1693
1693
|
}
|
|
1694
|
-
},
|
|
1694
|
+
}, mt = async (e) => {
|
|
1695
1695
|
try {
|
|
1696
|
-
if (
|
|
1696
|
+
if (pe) await pe(e);
|
|
1697
1697
|
else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
|
|
1698
1698
|
else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
|
|
1699
1699
|
U("copied");
|
|
1700
1700
|
} catch (e) {
|
|
1701
|
-
|
|
1701
|
+
C?.(e);
|
|
1702
1702
|
}
|
|
1703
|
-
},
|
|
1703
|
+
}, ht = () => {
|
|
1704
1704
|
try {
|
|
1705
|
-
if (!q) throw J ?? Error(
|
|
1706
|
-
|
|
1705
|
+
if (!q) throw J ?? Error(O.invalidTheme);
|
|
1706
|
+
ze({
|
|
1707
1707
|
fileName: q.providerFileName,
|
|
1708
1708
|
text: q.providerConfigText,
|
|
1709
1709
|
mimeType: "text/typescript;charset=utf-8"
|
|
1710
1710
|
}), U("exported");
|
|
1711
1711
|
} catch (e) {
|
|
1712
|
-
|
|
1712
|
+
C?.(e);
|
|
1713
1713
|
}
|
|
1714
|
-
},
|
|
1715
|
-
let e =
|
|
1716
|
-
$(t),
|
|
1717
|
-
},
|
|
1714
|
+
}, gt = () => {
|
|
1715
|
+
let e = k, t = M({ mode: k.mode });
|
|
1716
|
+
$(t), S?.(e), U("idle");
|
|
1717
|
+
}, _t = J ? O.invalidTheme : H === "copied" ? O.copiedStatus : H === "exported" ? O.exportedStatus : null, vt = j === "colors" ? /* @__PURE__ */ E(b, {
|
|
1718
1718
|
className: "theme-tweaker--recipe",
|
|
1719
|
-
label:
|
|
1720
|
-
description:
|
|
1719
|
+
label: O.autoPalette,
|
|
1720
|
+
description: O.autoPaletteDescription,
|
|
1721
1721
|
value: F,
|
|
1722
1722
|
onValueChange: I
|
|
1723
|
-
}) : j === "typography" ? /* @__PURE__ */
|
|
1724
|
-
title:
|
|
1725
|
-
description:
|
|
1723
|
+
}) : j === "typography" ? /* @__PURE__ */ E(ne, {
|
|
1724
|
+
title: O.typeRecipeTitle,
|
|
1725
|
+
description: O.typeRecipeDescription,
|
|
1726
1726
|
surface: "flat",
|
|
1727
1727
|
padding: "none",
|
|
1728
1728
|
className: "theme-tweaker--recipe",
|
|
1729
|
-
children: /* @__PURE__ */
|
|
1729
|
+
children: /* @__PURE__ */ D(f, {
|
|
1730
1730
|
columns: 1,
|
|
1731
|
-
gap:
|
|
1731
|
+
gap: re.related,
|
|
1732
1732
|
className: "@2xl/theme-tweaker-controls:grid-cols-2",
|
|
1733
|
-
children: [/* @__PURE__ */
|
|
1734
|
-
label:
|
|
1735
|
-
children: /* @__PURE__ */
|
|
1736
|
-
"aria-label":
|
|
1733
|
+
children: [/* @__PURE__ */ E(y, {
|
|
1734
|
+
label: O.baseTypeSize,
|
|
1735
|
+
children: /* @__PURE__ */ E(de, {
|
|
1736
|
+
"aria-label": O.baseTypeSize,
|
|
1737
1737
|
value: L,
|
|
1738
1738
|
min: 14,
|
|
1739
1739
|
max: 20,
|
|
1740
1740
|
step: 1,
|
|
1741
1741
|
onValueChange: (e) => {
|
|
1742
|
-
|
|
1742
|
+
Pe(e), ot(tt({
|
|
1743
1743
|
baseSize: e,
|
|
1744
1744
|
ratio: z
|
|
1745
1745
|
}));
|
|
1746
1746
|
}
|
|
1747
1747
|
})
|
|
1748
|
-
}), /* @__PURE__ */
|
|
1749
|
-
label:
|
|
1750
|
-
children: /* @__PURE__ */
|
|
1751
|
-
"aria-label":
|
|
1748
|
+
}), /* @__PURE__ */ E(y, {
|
|
1749
|
+
label: O.typeRatio,
|
|
1750
|
+
children: /* @__PURE__ */ E(de, {
|
|
1751
|
+
"aria-label": O.typeRatio,
|
|
1752
1752
|
value: z,
|
|
1753
1753
|
min: 1.125,
|
|
1754
1754
|
max: 1.333,
|
|
1755
1755
|
step: .01,
|
|
1756
1756
|
onValueChange: (e) => {
|
|
1757
|
-
|
|
1757
|
+
Ie(e), ot(tt({
|
|
1758
1758
|
baseSize: L,
|
|
1759
1759
|
ratio: e
|
|
1760
1760
|
}));
|
|
@@ -1762,195 +1762,195 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1762
1762
|
})
|
|
1763
1763
|
})]
|
|
1764
1764
|
})
|
|
1765
|
-
}) : j === "shape" ? /* @__PURE__ */
|
|
1766
|
-
title:
|
|
1767
|
-
description:
|
|
1765
|
+
}) : j === "shape" ? /* @__PURE__ */ E(ne, {
|
|
1766
|
+
title: O.elevationRecipeTitle,
|
|
1767
|
+
description: O.elevationRecipeDescription,
|
|
1768
1768
|
surface: "flat",
|
|
1769
1769
|
padding: "none",
|
|
1770
1770
|
className: "theme-tweaker--recipe",
|
|
1771
|
-
children: /* @__PURE__ */
|
|
1772
|
-
label:
|
|
1773
|
-
children: /* @__PURE__ */
|
|
1774
|
-
"aria-label":
|
|
1775
|
-
value:
|
|
1771
|
+
children: /* @__PURE__ */ E(y, {
|
|
1772
|
+
label: O.elevationIntensity,
|
|
1773
|
+
children: /* @__PURE__ */ E(de, {
|
|
1774
|
+
"aria-label": O.elevationIntensity,
|
|
1775
|
+
value: Be,
|
|
1776
1776
|
min: 0,
|
|
1777
1777
|
max: 1,
|
|
1778
1778
|
step: .05,
|
|
1779
1779
|
onValueChange: (e) => {
|
|
1780
|
-
|
|
1780
|
+
He(e), et(nt({ intensity: e }));
|
|
1781
1781
|
}
|
|
1782
1782
|
})
|
|
1783
1783
|
})
|
|
1784
|
-
}) : null,
|
|
1784
|
+
}) : null, yt = /* @__PURE__ */ D("div", {
|
|
1785
1785
|
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", h !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
|
|
1786
1786
|
children: [
|
|
1787
|
-
/* @__PURE__ */
|
|
1787
|
+
/* @__PURE__ */ D(p, {
|
|
1788
1788
|
gap: "lg",
|
|
1789
1789
|
className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
|
|
1790
|
-
children: [/* @__PURE__ */
|
|
1790
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1791
1791
|
gap: "lg",
|
|
1792
1792
|
className: "theme-tweaker--header shrink-0",
|
|
1793
1793
|
children: [
|
|
1794
|
-
x ? /* @__PURE__ */
|
|
1794
|
+
x ? /* @__PURE__ */ D(p, {
|
|
1795
1795
|
gap: "normal",
|
|
1796
1796
|
className: "theme-tweaker--intro",
|
|
1797
|
-
children: [/* @__PURE__ */
|
|
1797
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1798
1798
|
direction: "horizontal",
|
|
1799
1799
|
gap: "sm",
|
|
1800
1800
|
align: "center",
|
|
1801
1801
|
wrap: !0,
|
|
1802
|
-
children: [/* @__PURE__ */
|
|
1802
|
+
children: [/* @__PURE__ */ E(u, {
|
|
1803
1803
|
tag: "h2",
|
|
1804
1804
|
className: "theme-tweaker--title text-inherit",
|
|
1805
|
-
children:
|
|
1806
|
-
}), /* @__PURE__ */
|
|
1805
|
+
children: O.title
|
|
1806
|
+
}), /* @__PURE__ */ E(_, {
|
|
1807
1807
|
tone: "secondary",
|
|
1808
|
-
children: a(
|
|
1808
|
+
children: a(O.changedCount, { count: Y })
|
|
1809
1809
|
})]
|
|
1810
|
-
}), /* @__PURE__ */
|
|
1810
|
+
}), /* @__PURE__ */ E(l, {
|
|
1811
1811
|
type: "secondary",
|
|
1812
1812
|
className: "theme-tweaker--description",
|
|
1813
|
-
children:
|
|
1813
|
+
children: O.description
|
|
1814
1814
|
})]
|
|
1815
1815
|
}) : null,
|
|
1816
|
-
/* @__PURE__ */
|
|
1816
|
+
/* @__PURE__ */ D(p, {
|
|
1817
1817
|
direction: "horizontal",
|
|
1818
1818
|
justify: "between",
|
|
1819
1819
|
align: "center",
|
|
1820
1820
|
wrap: !0,
|
|
1821
1821
|
gap: "sm",
|
|
1822
1822
|
className: "theme-tweaker--toolbar",
|
|
1823
|
-
children: [/* @__PURE__ */
|
|
1823
|
+
children: [/* @__PURE__ */ E(p, {
|
|
1824
1824
|
direction: "horizontal",
|
|
1825
1825
|
gap: "sm",
|
|
1826
1826
|
align: "center",
|
|
1827
1827
|
wrap: !0,
|
|
1828
|
-
children: /* @__PURE__ */
|
|
1829
|
-
value:
|
|
1830
|
-
onValueChange: (e) =>
|
|
1831
|
-
children: /* @__PURE__ */
|
|
1828
|
+
children: /* @__PURE__ */ E(ge, {
|
|
1829
|
+
value: k.mode,
|
|
1830
|
+
onValueChange: (e) => st(e),
|
|
1831
|
+
children: /* @__PURE__ */ D(he, { children: [/* @__PURE__ */ D(me, {
|
|
1832
1832
|
value: "light",
|
|
1833
|
-
children: [/* @__PURE__ */
|
|
1834
|
-
}), /* @__PURE__ */
|
|
1833
|
+
children: [/* @__PURE__ */ E(Ae, { className: "size-icon-sm" }), O.lightMode]
|
|
1834
|
+
}), /* @__PURE__ */ D(me, {
|
|
1835
1835
|
value: "dark",
|
|
1836
|
-
children: [/* @__PURE__ */
|
|
1836
|
+
children: [/* @__PURE__ */ E(Te, { className: "size-icon-sm" }), O.darkMode]
|
|
1837
1837
|
})] })
|
|
1838
1838
|
})
|
|
1839
|
-
}), /* @__PURE__ */
|
|
1839
|
+
}), /* @__PURE__ */ D(p, {
|
|
1840
1840
|
direction: "horizontal",
|
|
1841
1841
|
gap: "xs",
|
|
1842
1842
|
align: "center",
|
|
1843
1843
|
justify: "end",
|
|
1844
1844
|
wrap: !1,
|
|
1845
1845
|
className: "theme-tweaker--actions",
|
|
1846
|
-
children: [/* @__PURE__ */
|
|
1846
|
+
children: [/* @__PURE__ */ E(c, {
|
|
1847
1847
|
tone: "primary",
|
|
1848
1848
|
type: "button",
|
|
1849
1849
|
disabled: !!J,
|
|
1850
1850
|
onClick: () => {
|
|
1851
1851
|
U("idle"), W.show();
|
|
1852
1852
|
},
|
|
1853
|
-
children:
|
|
1854
|
-
}),
|
|
1853
|
+
children: O.export
|
|
1854
|
+
}), be]
|
|
1855
1855
|
})]
|
|
1856
1856
|
}),
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
label: /* @__PURE__ */
|
|
1857
|
+
/* @__PURE__ */ E(y, {
|
|
1858
|
+
label: /* @__PURE__ */ E(l, {
|
|
1859
1859
|
tag: "span",
|
|
1860
1860
|
size: "inherit",
|
|
1861
1861
|
className: "sr-only",
|
|
1862
|
-
children:
|
|
1862
|
+
children: O.searchLabel
|
|
1863
1863
|
}),
|
|
1864
1864
|
className: "theme-tweaker--search",
|
|
1865
|
-
children: /* @__PURE__ */
|
|
1865
|
+
children: /* @__PURE__ */ E(v, {
|
|
1866
1866
|
value: N,
|
|
1867
1867
|
onChange: (e) => P(e.target.value),
|
|
1868
|
-
placeholder:
|
|
1869
|
-
startIcon:
|
|
1868
|
+
placeholder: O.searchPlaceholder,
|
|
1869
|
+
startIcon: De,
|
|
1870
1870
|
clearable: !0,
|
|
1871
1871
|
onClear: () => P(""),
|
|
1872
|
-
"aria-description":
|
|
1872
|
+
"aria-description": O.searchHint
|
|
1873
1873
|
})
|
|
1874
1874
|
})
|
|
1875
1875
|
]
|
|
1876
|
-
}), /* @__PURE__ */
|
|
1876
|
+
}), /* @__PURE__ */ D(p, {
|
|
1877
1877
|
gap: "lg",
|
|
1878
1878
|
className: "theme-tweaker--workspace min-h-0",
|
|
1879
|
-
children: [/* @__PURE__ */
|
|
1880
|
-
"aria-label":
|
|
1879
|
+
children: [/* @__PURE__ */ E("nav", {
|
|
1880
|
+
"aria-label": O.groupNavigationLabel,
|
|
1881
1881
|
className: "theme-tweaker--navigation min-w-0",
|
|
1882
|
-
children: /* @__PURE__ */
|
|
1882
|
+
children: /* @__PURE__ */ E(ge, {
|
|
1883
1883
|
value: j,
|
|
1884
1884
|
onValueChange: (e) => {
|
|
1885
|
-
P(""),
|
|
1885
|
+
P(""), Ne(e);
|
|
1886
1886
|
},
|
|
1887
1887
|
className: "w-full",
|
|
1888
|
-
children: /* @__PURE__ */
|
|
1888
|
+
children: /* @__PURE__ */ E(he, {
|
|
1889
1889
|
scrollable: !0,
|
|
1890
1890
|
scrollStrings: {
|
|
1891
|
-
previous:
|
|
1892
|
-
next:
|
|
1891
|
+
previous: O.previousGroup,
|
|
1892
|
+
next: O.nextGroup
|
|
1893
1893
|
},
|
|
1894
1894
|
className: "theme-tweaker--group-list",
|
|
1895
|
-
children:
|
|
1896
|
-
let t =
|
|
1897
|
-
return /* @__PURE__ */
|
|
1895
|
+
children: rt.map((e) => {
|
|
1896
|
+
let t = it[e];
|
|
1897
|
+
return /* @__PURE__ */ D(me, {
|
|
1898
1898
|
value: e,
|
|
1899
1899
|
onClick: () => P(""),
|
|
1900
1900
|
className: "theme-tweaker--group-trigger",
|
|
1901
|
-
children: [/* @__PURE__ */
|
|
1901
|
+
children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(l, {
|
|
1902
1902
|
type: "inherit",
|
|
1903
1903
|
tag: "span",
|
|
1904
1904
|
size: "inherit",
|
|
1905
1905
|
weight: "medium",
|
|
1906
1906
|
className: "min-w-0 flex-1 truncate text-left",
|
|
1907
|
-
children:
|
|
1907
|
+
children: O.groups[e]
|
|
1908
1908
|
})]
|
|
1909
1909
|
}, e);
|
|
1910
1910
|
})
|
|
1911
1911
|
})
|
|
1912
1912
|
})
|
|
1913
|
-
}), /* @__PURE__ */
|
|
1913
|
+
}), /* @__PURE__ */ D(p, {
|
|
1914
1914
|
gap: "lg",
|
|
1915
1915
|
className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
|
|
1916
1916
|
children: [
|
|
1917
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ D(p, {
|
|
1918
1918
|
gap: "normal",
|
|
1919
1919
|
className: "theme-tweaker--editor-heading",
|
|
1920
|
-
children: [/* @__PURE__ */
|
|
1920
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1921
1921
|
direction: "horizontal",
|
|
1922
1922
|
gap: "sm",
|
|
1923
1923
|
align: "center",
|
|
1924
1924
|
wrap: !0,
|
|
1925
1925
|
children: [
|
|
1926
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ E(u, {
|
|
1927
1927
|
className: "text-inherit",
|
|
1928
1928
|
tag: "h3",
|
|
1929
|
-
children: X ?
|
|
1929
|
+
children: X ? O.allGroups : O.groups[j]
|
|
1930
1930
|
}),
|
|
1931
|
-
x ? null : /* @__PURE__ */
|
|
1931
|
+
x ? null : /* @__PURE__ */ E(_, {
|
|
1932
1932
|
tone: "secondary",
|
|
1933
|
-
children: a(
|
|
1933
|
+
children: a(O.changedCount, { count: Y })
|
|
1934
1934
|
}),
|
|
1935
|
-
X ? /* @__PURE__ */
|
|
1935
|
+
X ? /* @__PURE__ */ E(_, {
|
|
1936
1936
|
tone: "secondary",
|
|
1937
1937
|
role: "status",
|
|
1938
1938
|
"aria-live": "polite",
|
|
1939
|
-
children: a(
|
|
1939
|
+
children: a(O.searchResults, { count: Z.length })
|
|
1940
1940
|
}) : null
|
|
1941
1941
|
]
|
|
1942
|
-
}), /* @__PURE__ */
|
|
1942
|
+
}), /* @__PURE__ */ E(l, {
|
|
1943
1943
|
size: "xs",
|
|
1944
1944
|
type: "secondary",
|
|
1945
|
-
children: X ?
|
|
1945
|
+
children: X ? O.searchHint : O.groupDescriptions[j]
|
|
1946
1946
|
})]
|
|
1947
1947
|
}),
|
|
1948
|
-
X ? null :
|
|
1949
|
-
j === "defaults" && !X ? /* @__PURE__ */
|
|
1950
|
-
config:
|
|
1951
|
-
onChange:
|
|
1952
|
-
strings:
|
|
1953
|
-
}) : Q.length > 0 ? /* @__PURE__ */
|
|
1948
|
+
X ? null : vt,
|
|
1949
|
+
j === "defaults" && !X ? /* @__PURE__ */ E(Xe, {
|
|
1950
|
+
config: A,
|
|
1951
|
+
onChange: $e,
|
|
1952
|
+
strings: O.providerSettings
|
|
1953
|
+
}) : Q.length > 0 ? /* @__PURE__ */ E(se, {
|
|
1954
1954
|
multiple: !0,
|
|
1955
1955
|
defaultValue: [`${Q[0].group}:${Q[0].section}`],
|
|
1956
1956
|
variant: "bordered",
|
|
@@ -1958,136 +1958,136 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1958
1958
|
className: "theme-tweaker--sections shrink-0",
|
|
1959
1959
|
itemClassName: "theme-tweaker--section",
|
|
1960
1960
|
items: Q.map((e) => {
|
|
1961
|
-
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ?
|
|
1962
|
-
group:
|
|
1963
|
-
section:
|
|
1964
|
-
}) :
|
|
1961
|
+
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? O.mixedScope : t.has("shared") ? O.sharedScope : k.mode === "light" ? O.lightMode : O.darkMode, r = X ? a(O.groupSectionLabel, {
|
|
1962
|
+
group: O.groups[e.group],
|
|
1963
|
+
section: O.sections[e.section]
|
|
1964
|
+
}) : O.sections[e.section];
|
|
1965
1965
|
return {
|
|
1966
1966
|
value: `${e.group}:${e.section}`,
|
|
1967
1967
|
title: r,
|
|
1968
|
-
description: a(
|
|
1969
|
-
badge: /* @__PURE__ */
|
|
1968
|
+
description: a(O.variableCount, { count: e.fields.length }),
|
|
1969
|
+
badge: /* @__PURE__ */ E(_, {
|
|
1970
1970
|
tone: "secondary",
|
|
1971
1971
|
children: n
|
|
1972
1972
|
}),
|
|
1973
|
-
content: /* @__PURE__ */
|
|
1973
|
+
content: /* @__PURE__ */ E(p, {
|
|
1974
1974
|
gap: "none",
|
|
1975
1975
|
className: "theme-tweaker--fields",
|
|
1976
1976
|
children: e.fields.map((e) => {
|
|
1977
|
-
let t = e.scope === "shared" ? "shared" :
|
|
1978
|
-
return /* @__PURE__ */
|
|
1977
|
+
let t = e.scope === "shared" ? "shared" : k.mode, n = k[t][e.name] ?? "";
|
|
1978
|
+
return /* @__PURE__ */ E(ut, {
|
|
1979
1979
|
field: e,
|
|
1980
1980
|
value: n,
|
|
1981
|
-
effectiveValue:
|
|
1982
|
-
strings:
|
|
1981
|
+
effectiveValue: Ke[e.name] ?? "",
|
|
1982
|
+
strings: O,
|
|
1983
1983
|
onChange: (t) => {
|
|
1984
1984
|
if (e.name === "--primary" && F && t.trim()) {
|
|
1985
|
-
|
|
1985
|
+
et(Qe({
|
|
1986
1986
|
primary: t,
|
|
1987
|
-
mode:
|
|
1987
|
+
mode: k.mode
|
|
1988
1988
|
}));
|
|
1989
1989
|
return;
|
|
1990
1990
|
}
|
|
1991
|
-
$(
|
|
1991
|
+
$(ft(k, e, t));
|
|
1992
1992
|
},
|
|
1993
|
-
onReset: () => $(
|
|
1993
|
+
onReset: () => $(ft(k, e, ""))
|
|
1994
1994
|
}, e.name);
|
|
1995
1995
|
})
|
|
1996
1996
|
})
|
|
1997
1997
|
};
|
|
1998
1998
|
})
|
|
1999
|
-
}, `${j}:${X}`) : /* @__PURE__ */
|
|
1999
|
+
}, `${j}:${X}`) : /* @__PURE__ */ E(l, {
|
|
2000
2000
|
type: "secondary",
|
|
2001
2001
|
className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
|
|
2002
|
-
children:
|
|
2002
|
+
children: O.emptySearch
|
|
2003
2003
|
})
|
|
2004
2004
|
]
|
|
2005
2005
|
})]
|
|
2006
2006
|
})]
|
|
2007
2007
|
}),
|
|
2008
|
-
h === !1 ? null : /* @__PURE__ */
|
|
2008
|
+
h === !1 ? null : /* @__PURE__ */ E(p, {
|
|
2009
2009
|
className: "theme-tweaker--preview min-w-0 self-start",
|
|
2010
|
-
children: h ?? /* @__PURE__ */
|
|
2010
|
+
children: h ?? /* @__PURE__ */ E(dt, { strings: O })
|
|
2011
2011
|
}),
|
|
2012
|
-
/* @__PURE__ */
|
|
2012
|
+
/* @__PURE__ */ E(ae, {
|
|
2013
2013
|
...W.overlayProps,
|
|
2014
|
-
title:
|
|
2015
|
-
description:
|
|
2014
|
+
title: O.exportDialogTitle,
|
|
2015
|
+
description: O.exportDialogDescription,
|
|
2016
2016
|
showCloseButton: !1,
|
|
2017
2017
|
showCancel: !1,
|
|
2018
2018
|
showConfirm: !1,
|
|
2019
|
-
surfaceStyle: B(
|
|
2020
|
-
className: s("theme-tweaker--export-dialog sm:max-w-4xl",
|
|
2021
|
-
footer: /* @__PURE__ */
|
|
2019
|
+
surfaceStyle: B(k),
|
|
2020
|
+
className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
|
|
2021
|
+
footer: /* @__PURE__ */ D(p, {
|
|
2022
2022
|
direction: "horizontal",
|
|
2023
2023
|
align: "center",
|
|
2024
2024
|
justify: "between",
|
|
2025
2025
|
className: "theme-tweaker--export-footer w-full",
|
|
2026
|
-
children: [/* @__PURE__ */
|
|
2026
|
+
children: [/* @__PURE__ */ E(c, {
|
|
2027
2027
|
type: "button",
|
|
2028
2028
|
tone: "secondary",
|
|
2029
2029
|
buttonStyle: "ghost",
|
|
2030
|
-
icon:
|
|
2030
|
+
icon: Ee,
|
|
2031
2031
|
disabled: Y === 0,
|
|
2032
|
-
onClick:
|
|
2033
|
-
children:
|
|
2034
|
-
}), /* @__PURE__ */
|
|
2032
|
+
onClick: gt,
|
|
2033
|
+
children: O.reset
|
|
2034
|
+
}), /* @__PURE__ */ E(c, {
|
|
2035
2035
|
onClick: W.hide,
|
|
2036
|
-
children:
|
|
2036
|
+
children: O.close
|
|
2037
2037
|
})]
|
|
2038
2038
|
}),
|
|
2039
|
-
children: /* @__PURE__ */
|
|
2039
|
+
children: /* @__PURE__ */ D(p, {
|
|
2040
2040
|
gap: "xl",
|
|
2041
2041
|
className: "theme-tweaker--export-body",
|
|
2042
2042
|
children: [
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
title:
|
|
2045
|
-
description:
|
|
2046
|
-
code:
|
|
2047
|
-
copyLabel:
|
|
2048
|
-
downloadLabel:
|
|
2049
|
-
downloading:
|
|
2050
|
-
onCopy: () => void
|
|
2051
|
-
onDownload: () => void
|
|
2043
|
+
/* @__PURE__ */ E(at, {
|
|
2044
|
+
title: O.cssOutputLabel,
|
|
2045
|
+
description: O.cssOutputDescription,
|
|
2046
|
+
code: Je,
|
|
2047
|
+
copyLabel: O.copy,
|
|
2048
|
+
downloadLabel: Ue ? O.exportPending : O.downloadCss,
|
|
2049
|
+
downloading: Ue,
|
|
2050
|
+
onCopy: () => void mt(Je),
|
|
2051
|
+
onDownload: () => void pt()
|
|
2052
2052
|
}),
|
|
2053
|
-
/* @__PURE__ */
|
|
2054
|
-
title:
|
|
2055
|
-
description:
|
|
2053
|
+
/* @__PURE__ */ E(at, {
|
|
2054
|
+
title: O.providerOutputLabel,
|
|
2055
|
+
description: O.providerOutputDescription,
|
|
2056
2056
|
code: q?.providerConfigText ?? "",
|
|
2057
|
-
copyLabel:
|
|
2058
|
-
downloadLabel:
|
|
2059
|
-
onCopy: () => void
|
|
2060
|
-
onDownload:
|
|
2057
|
+
copyLabel: O.copyProvider,
|
|
2058
|
+
downloadLabel: O.downloadProvider,
|
|
2059
|
+
onCopy: () => void mt(q?.providerConfigText ?? ""),
|
|
2060
|
+
onDownload: ht
|
|
2061
2061
|
}),
|
|
2062
|
-
|
|
2062
|
+
_t ? /* @__PURE__ */ E(l, {
|
|
2063
2063
|
tag: "div",
|
|
2064
2064
|
size: "xs",
|
|
2065
2065
|
type: J ? "error" : "secondary",
|
|
2066
2066
|
role: "status",
|
|
2067
2067
|
"aria-live": "polite",
|
|
2068
2068
|
className: "theme-tweaker--status",
|
|
2069
|
-
children:
|
|
2069
|
+
children: _t
|
|
2070
2070
|
}) : null
|
|
2071
2071
|
]
|
|
2072
2072
|
})
|
|
2073
2073
|
})
|
|
2074
2074
|
]
|
|
2075
2075
|
});
|
|
2076
|
-
return d === "self" ? /* @__PURE__ */
|
|
2077
|
-
...
|
|
2076
|
+
return d === "self" ? /* @__PURE__ */ E(V, {
|
|
2077
|
+
...Ce,
|
|
2078
2078
|
ref: G,
|
|
2079
|
-
theme: m ?
|
|
2080
|
-
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground",
|
|
2081
|
-
children:
|
|
2082
|
-
}) : /* @__PURE__ */
|
|
2083
|
-
...
|
|
2079
|
+
theme: m ? k : M({ mode: k.mode }),
|
|
2080
|
+
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", Se),
|
|
2081
|
+
children: yt
|
|
2082
|
+
}) : /* @__PURE__ */ E("div", {
|
|
2083
|
+
...Ce,
|
|
2084
2084
|
ref: G,
|
|
2085
|
-
className: s("theme-tweaker--component @container/theme-tweaker",
|
|
2086
|
-
children:
|
|
2085
|
+
className: s("theme-tweaker--component @container/theme-tweaker", Se),
|
|
2086
|
+
children: yt
|
|
2087
2087
|
});
|
|
2088
2088
|
});
|
|
2089
|
-
|
|
2089
|
+
pt.displayName = "ThemeTweaker";
|
|
2090
2090
|
//#endregion
|
|
2091
|
-
export {
|
|
2091
|
+
export { He as AdminUIThemeProvider, V as ThemeScope, pt as ThemeTweaker, B as adminUIThemeToStyle, Fe as countAdminUIThemeOverrides, M as createAdminUITheme, Ie as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Le as createThemeTweakerExportArtifact, Me as defaultAdminUIThemeSelectors, X as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, nt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, tt as deriveAdminUITypeScale, Re as downloadAdminUITheme, z as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, Pe as serializeUIProviderConfig };
|
|
2092
2092
|
|
|
2093
2093
|
//# sourceMappingURL=theme-tweaker.js.map
|