themelia-react-ui 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { g as e, h as t } from "../ui-provider-C_U0Xma4.js";
|
|
3
3
|
import { COMPONENT_SCALES as n, SEMANTIC_TONES as r } from "../component-vocabulary.js";
|
|
4
|
-
import { t as i } from "../theme-scope-
|
|
4
|
+
import { t as i } from "../theme-scope-BJ6eE2xt.js";
|
|
5
5
|
import { interpolateString as a, useStrings as o } from "../lib/strings.js";
|
|
6
|
-
import { t as s } from "../utils-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as _ } from "../
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
6
|
+
import { t as s } from "../utils-BRhFDwuU.js";
|
|
7
|
+
import { n as c } from "../buttons-DPZekJFu.js";
|
|
8
|
+
import { c as l, s as u } from "../typography-UTnveOEy.js";
|
|
9
|
+
import { t as d } from "../focus-recipes-B653VaLq.js";
|
|
10
|
+
import { r as f, t as p } from "../structure-BmisBK-3.js";
|
|
11
|
+
import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-DiC5aac3.js";
|
|
12
|
+
import { i as re, r as ie } from "../overlays-DNWmZrJ4.js";
|
|
13
|
+
import { m as ae } from "../primitives-BFK08r9M.js";
|
|
14
|
+
import { t as oe } from "../accordion-Cjb6sx0G.js";
|
|
15
|
+
import { t as _ } from "../badge-HpFqoqSY.js";
|
|
16
|
+
import { t as se } from "../theme-mode-css-BB-_RYab.js";
|
|
17
|
+
import { t as v } from "../input-DQdEd0YD.js";
|
|
18
|
+
import { t as y } from "../form-field-CwH9y77i.js";
|
|
19
|
+
import { d as ce } from "../text-inputs-f9Ia-aCi.js";
|
|
20
|
+
import { a as b, l as x } from "../choice-inputs-CNHvARCJ.js";
|
|
21
|
+
import { i as le, n as S } from "../value-inputs-DXPDjvBU.js";
|
|
22
|
+
import { d as ue } from "../forms-numeric-B_jraJaQ.js";
|
|
23
|
+
import { t as de } from "../item-K5_ghvze.js";
|
|
24
|
+
import { i as fe, r as pe, t as me } from "../tabs-CDocW5D1.js";
|
|
25
|
+
import { forwardRef as C, useEffect as he, useId as w, useImperativeHandle as ge, useMemo as T, useRef as _e, useState as E } from "react";
|
|
26
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
27
|
+
import { CheckCircle2 as ve, Copy as ye, Download as be, Info as xe, LayoutGrid as Se, Moon as Ce, Palette as k, RotateCcw as we, Search as Te, Settings2 as Ee, Shapes as De, ShieldCheck as A, Sun as Oe, Type as ke } from "lucide-react";
|
|
26
28
|
//#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
|
|
27
|
-
var
|
|
29
|
+
var Ae = {
|
|
28
30
|
shared: ":root",
|
|
29
31
|
light: ":root,\n.light",
|
|
30
32
|
dark: ".dark"
|
|
31
|
-
},
|
|
32
|
-
function
|
|
33
|
+
}, je = /^--[a-z][a-z0-9-]*$/i, j = /[;{}]/, Me = /[;{}]/;
|
|
34
|
+
function M(e = {}) {
|
|
33
35
|
return {
|
|
34
36
|
mode: e.mode ?? "light",
|
|
35
37
|
shared: { ...e.shared },
|
|
@@ -37,12 +39,12 @@ function j(e = {}) {
|
|
|
37
39
|
dark: { ...e.dark }
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
42
|
+
function N(e) {
|
|
43
|
+
return je.test(e);
|
|
42
44
|
}
|
|
43
|
-
function
|
|
45
|
+
function P(e, t = !0) {
|
|
44
46
|
return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
|
|
45
|
-
if (!
|
|
47
|
+
if (!N(e)) {
|
|
46
48
|
if (!t) return [];
|
|
47
49
|
throw TypeError(`Invalid CSS variable name: ${e}`);
|
|
48
50
|
}
|
|
@@ -50,121 +52,121 @@ function N(e, t = !0) {
|
|
|
50
52
|
let t = e.charCodeAt(0);
|
|
51
53
|
return t < 32 || t === 127;
|
|
52
54
|
});
|
|
53
|
-
if (
|
|
55
|
+
if (j.test(r) || i) {
|
|
54
56
|
if (!t) return [];
|
|
55
57
|
throw TypeError(`Unsafe CSS value for ${e}.`);
|
|
56
58
|
}
|
|
57
59
|
return [[e, r]];
|
|
58
60
|
}).sort(([e], [t]) => e.localeCompare(t));
|
|
59
61
|
}
|
|
60
|
-
function
|
|
62
|
+
function F(e, t) {
|
|
61
63
|
let n = e.trim();
|
|
62
|
-
if (n.length === 0 ||
|
|
64
|
+
if (n.length === 0 || Me.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
|
|
63
65
|
return n;
|
|
64
66
|
}
|
|
65
|
-
function
|
|
66
|
-
let n =
|
|
67
|
+
function I(e, t) {
|
|
68
|
+
let n = P(t);
|
|
67
69
|
return n.length === 0 ? null : [
|
|
68
70
|
`${e} {`,
|
|
69
71
|
...n.map(([e, t]) => `\t${e}: ${t};`),
|
|
70
72
|
"}"
|
|
71
73
|
].join("\n");
|
|
72
74
|
}
|
|
73
|
-
function
|
|
74
|
-
let n = t.selectors ??
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
|
|
75
|
+
function L(e, t = {}) {
|
|
76
|
+
let n = t.selectors ?? Ae, 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)] : [se(o, {
|
|
77
|
+
light: P(e.light).map(([e, t]) => `${e}: ${t};`),
|
|
78
|
+
dark: P(e.dark).map(([e, t]) => `${e}: ${t};`)
|
|
79
|
+
})]].filter((e) => e !== null && e.length > 0), c = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
|
|
80
|
+
return `${[...c ? [c] : [], ...s.length > 0 ? s : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function R(t = {}) {
|
|
82
83
|
let n = e(t), { locale: r, formatRelativeTime: i, ...a } = n.dates;
|
|
83
84
|
return {
|
|
84
85
|
...n,
|
|
85
86
|
dates: a
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
let t =
|
|
89
|
+
function Ne(e = {}) {
|
|
90
|
+
let t = R(e);
|
|
90
91
|
return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function z(e, t = e.mode) {
|
|
93
94
|
return {
|
|
94
95
|
...e.shared,
|
|
95
96
|
...e[t]
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
-
return Object.fromEntries(
|
|
100
|
-
}
|
|
101
|
-
function Ne(e) {
|
|
102
|
-
return N(e.shared, !1).length + N(e.light, !1).length + N(e.dark, !1).length;
|
|
99
|
+
function B(e, t = e.mode) {
|
|
100
|
+
return Object.fromEntries(P(z(e, t), !1));
|
|
103
101
|
}
|
|
104
102
|
function Pe(e) {
|
|
105
|
-
|
|
103
|
+
return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
|
|
104
|
+
}
|
|
105
|
+
function Fe(e) {
|
|
106
|
+
let t = F(e, "shared");
|
|
106
107
|
return {
|
|
107
108
|
shared: t,
|
|
108
109
|
light: `${t},\n${t}.light,\n.light ${t}`,
|
|
109
|
-
dark: `${t}.dark,\n.dark ${t}
|
|
110
|
+
dark: `${t}.dark,\n.dark ${t}`,
|
|
111
|
+
modeScope: t
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
|
-
function
|
|
113
|
-
let i =
|
|
114
|
+
function Ie(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
115
|
+
let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
|
|
114
116
|
return {
|
|
115
117
|
fileName: t,
|
|
116
|
-
cssText:
|
|
118
|
+
cssText: L(i, {
|
|
117
119
|
...n,
|
|
118
120
|
banner: n.banner ?? "themelia-react-ui complete theme"
|
|
119
121
|
}),
|
|
120
|
-
overrideCssText:
|
|
121
|
-
theme:
|
|
122
|
+
overrideCssText: L(e, n),
|
|
123
|
+
theme: M(e),
|
|
122
124
|
resolvedTheme: i,
|
|
123
|
-
overrideCount:
|
|
125
|
+
overrideCount: Pe(e),
|
|
124
126
|
providerFileName: r.providerFileName ?? "admin-ui.config.ts",
|
|
125
127
|
providerConfig: a,
|
|
126
|
-
providerConfigText:
|
|
128
|
+
providerConfigText: Ne(a)
|
|
127
129
|
};
|
|
128
130
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
+
function Le(e) {
|
|
132
|
+
Re({
|
|
131
133
|
fileName: e.fileName,
|
|
132
134
|
text: e.cssText,
|
|
133
135
|
mimeType: "text/css;charset=utf-8"
|
|
134
136
|
});
|
|
135
137
|
}
|
|
136
|
-
function
|
|
138
|
+
function Re({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
|
|
137
139
|
if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
|
|
138
140
|
let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
139
141
|
a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
|
|
140
142
|
}
|
|
141
143
|
//#endregion
|
|
142
144
|
//#region src/components/features/theme-tweaker/theme-scope.tsx
|
|
143
|
-
var
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
+
var V = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
|
|
146
|
+
return /* @__PURE__ */ D(i, {
|
|
145
147
|
...o,
|
|
146
148
|
ref: c,
|
|
147
149
|
"data-theme-mode": t,
|
|
148
150
|
className: s("theme-scope--component", t, n),
|
|
149
151
|
style: {
|
|
150
|
-
...
|
|
152
|
+
...B(e, t),
|
|
151
153
|
...r
|
|
152
154
|
},
|
|
153
155
|
children: a
|
|
154
156
|
});
|
|
155
157
|
});
|
|
156
|
-
|
|
158
|
+
V.displayName = "ThemeScope";
|
|
157
159
|
//#endregion
|
|
158
160
|
//#region src/components/features/theme-tweaker/use-applied-theme.ts
|
|
159
|
-
function
|
|
161
|
+
function ze(e, t) {
|
|
160
162
|
return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
|
|
161
163
|
}
|
|
162
|
-
function
|
|
164
|
+
function Be({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
163
165
|
he(() => {
|
|
164
166
|
if (!e || r === "self") return;
|
|
165
|
-
let a =
|
|
167
|
+
let a = ze(r, n);
|
|
166
168
|
if (!a) return;
|
|
167
|
-
let o =
|
|
169
|
+
let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
168
170
|
for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
|
|
169
171
|
value: a.style.getPropertyValue(e),
|
|
170
172
|
priority: a.style.getPropertyPriority(e)
|
|
@@ -188,22 +190,22 @@ function ze({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
|
188
190
|
}
|
|
189
191
|
//#endregion
|
|
190
192
|
//#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
|
|
191
|
-
var
|
|
193
|
+
var Ve = C(function({ config: e, theme: n, mode: r = n.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
|
|
192
194
|
let d = _e(null);
|
|
193
195
|
ge(u, () => d.current);
|
|
194
|
-
let f =
|
|
196
|
+
let f = T(() => M({
|
|
195
197
|
...n,
|
|
196
198
|
mode: r
|
|
197
199
|
}), [r, n]);
|
|
198
|
-
return
|
|
200
|
+
return Be({
|
|
199
201
|
apply: i === "document",
|
|
200
202
|
manageModeClass: a,
|
|
201
203
|
selfRef: d,
|
|
202
204
|
target: i,
|
|
203
205
|
theme: f
|
|
204
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ D(t, {
|
|
205
207
|
config: e,
|
|
206
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ D(V, {
|
|
207
209
|
...l,
|
|
208
210
|
ref: d,
|
|
209
211
|
theme: f,
|
|
@@ -213,10 +215,10 @@ var Be = x(function({ config: e, theme: n, mode: r = n.mode, target: i = "docume
|
|
|
213
215
|
})
|
|
214
216
|
});
|
|
215
217
|
});
|
|
216
|
-
|
|
218
|
+
Ve.displayName = "AdminUIThemeProvider";
|
|
217
219
|
//#endregion
|
|
218
220
|
//#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
|
|
219
|
-
var
|
|
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 = [
|
|
220
222
|
"--success",
|
|
221
223
|
"--success-foreground",
|
|
222
224
|
"--info",
|
|
@@ -235,12 +237,12 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
235
237
|
"--inverse-surface-strong",
|
|
236
238
|
"--inverse-border",
|
|
237
239
|
"--inverse-decoration"
|
|
238
|
-
],
|
|
240
|
+
], W = ["--overlay-backdrop"], He = [
|
|
239
241
|
"--font-heading",
|
|
240
242
|
"--font-sans",
|
|
241
243
|
"--font-serif",
|
|
242
244
|
"--font-mono"
|
|
243
|
-
],
|
|
245
|
+
], Ue = [
|
|
244
246
|
"xxs",
|
|
245
247
|
"xs",
|
|
246
248
|
"pxs",
|
|
@@ -256,7 +258,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
256
258
|
"7xl",
|
|
257
259
|
"8xl",
|
|
258
260
|
"9xl"
|
|
259
|
-
].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]),
|
|
261
|
+
].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), G = [
|
|
260
262
|
"--shadow-2xs",
|
|
261
263
|
"--shadow-xs",
|
|
262
264
|
"--shadow-sm",
|
|
@@ -265,7 +267,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
265
267
|
"--shadow-lg",
|
|
266
268
|
"--shadow-xl",
|
|
267
269
|
"--shadow-2xl"
|
|
268
|
-
],
|
|
270
|
+
], K = [
|
|
269
271
|
"--space-scale",
|
|
270
272
|
"--density-scale",
|
|
271
273
|
"--height-action",
|
|
@@ -279,7 +281,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
279
281
|
"--avatar",
|
|
280
282
|
"--shell-header-height",
|
|
281
283
|
"--shell-sidebar-width"
|
|
282
|
-
],
|
|
284
|
+
], We = [
|
|
283
285
|
"--content-width-sm",
|
|
284
286
|
"--content-width-md",
|
|
285
287
|
"--content-width-lg",
|
|
@@ -288,7 +290,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
288
290
|
"--adaptive-grid-min-sm",
|
|
289
291
|
"--adaptive-grid-min-md",
|
|
290
292
|
"--adaptive-grid-min-lg"
|
|
291
|
-
],
|
|
293
|
+
], Ge = {
|
|
292
294
|
"--background": "Application canvas and default page background.",
|
|
293
295
|
"--foreground": "Primary text and icon color on the application canvas.",
|
|
294
296
|
"--primary": "Brand and primary-action color.",
|
|
@@ -325,7 +327,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
325
327
|
"--adaptive-grid-min-sm": "Compact minimum peer width used by AdaptiveGrid.",
|
|
326
328
|
"--adaptive-grid-min-md": "Default minimum peer width used by AdaptiveGrid.",
|
|
327
329
|
"--adaptive-grid-min-lg": "Spacious minimum peer width used by AdaptiveGrid."
|
|
328
|
-
},
|
|
330
|
+
}, Ke = {
|
|
329
331
|
"--space-scale": "Spacing scale",
|
|
330
332
|
"--density-scale": "Density scale",
|
|
331
333
|
"--height-action": "Action height",
|
|
@@ -349,7 +351,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
349
351
|
"--adaptive-grid-min-sm": "Compact adaptive column",
|
|
350
352
|
"--adaptive-grid-min-md": "Default adaptive column",
|
|
351
353
|
"--adaptive-grid-min-lg": "Spacious adaptive column"
|
|
352
|
-
},
|
|
354
|
+
}, q = {
|
|
353
355
|
"--radius": {
|
|
354
356
|
type: "range",
|
|
355
357
|
min: 0,
|
|
@@ -541,48 +543,48 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
541
543
|
decimalPlaces: 1
|
|
542
544
|
}
|
|
543
545
|
};
|
|
544
|
-
function
|
|
546
|
+
function J(e) {
|
|
545
547
|
return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
|
|
546
548
|
}
|
|
547
|
-
function
|
|
549
|
+
function qe(e, t) {
|
|
548
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.";
|
|
549
551
|
}
|
|
550
|
-
function
|
|
552
|
+
function Y(e, t, n, r, i) {
|
|
551
553
|
return e.map((e) => ({
|
|
552
554
|
name: e,
|
|
553
|
-
label:
|
|
554
|
-
description:
|
|
555
|
+
label: Ke[e] ?? J(e),
|
|
556
|
+
description: Ge[e] ?? qe(e, t),
|
|
555
557
|
group: t,
|
|
556
558
|
section: n,
|
|
557
559
|
scope: r,
|
|
558
560
|
kind: i,
|
|
559
|
-
control:
|
|
561
|
+
control: q[e]
|
|
560
562
|
}));
|
|
561
563
|
}
|
|
562
|
-
var
|
|
563
|
-
...
|
|
564
|
-
...
|
|
565
|
-
...
|
|
566
|
-
...
|
|
567
|
-
...
|
|
568
|
-
...
|
|
569
|
-
...
|
|
570
|
-
...
|
|
571
|
-
...
|
|
572
|
-
...
|
|
573
|
-
...
|
|
574
|
-
...
|
|
575
|
-
...
|
|
576
|
-
...
|
|
577
|
-
...
|
|
578
|
-
...
|
|
579
|
-
...
|
|
580
|
-
...
|
|
581
|
-
...
|
|
564
|
+
var Je = [
|
|
565
|
+
...Y(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
|
|
566
|
+
...Y(W, "colors", "surfaces-content", "shared", "color"),
|
|
567
|
+
...Y(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
|
|
568
|
+
...Y(H.slice(19, 24), "colors", "charts", "mode", "color"),
|
|
569
|
+
...Y(H.slice(24), "colors", "sidebar", "mode", "color"),
|
|
570
|
+
...Y(U.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
|
|
571
|
+
...Y(U.slice(7), "states", "inverse-surfaces", "mode", "color"),
|
|
572
|
+
...Y(He, "typography", "font-families", "shared", "font"),
|
|
573
|
+
...Y(Ue, "typography", "type-scale", "shared", "length"),
|
|
574
|
+
...Y(["--radius"], "shape", "radius", "shared", "length"),
|
|
575
|
+
...Y(G, "shape", "elevation", "mode", "shadow"),
|
|
576
|
+
...Y(K.slice(0, 2), "structure", "global-scales", "shared", "length"),
|
|
577
|
+
...Y(K.slice(2, 5), "structure", "actions-controls", "shared", "length"),
|
|
578
|
+
...Y(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
|
|
579
|
+
...Y(K.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
|
|
580
|
+
...Y(K.slice(9, 11), "structure", "media", "shared", "length"),
|
|
581
|
+
...Y(K.slice(11), "structure", "application-shell", "shared", "length"),
|
|
582
|
+
...Y(We.slice(0, 5), "structure", "content-widths", "shared", "length"),
|
|
583
|
+
...Y(We.slice(5), "structure", "adaptive-layout", "shared", "length")
|
|
582
584
|
].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
|
|
583
585
|
...e,
|
|
584
586
|
kind: "number"
|
|
585
|
-
} : e),
|
|
587
|
+
} : e), X = {
|
|
586
588
|
title: "Application defaults",
|
|
587
589
|
description: "Configure the stable display behavior that accompanies the exported CSS theme.",
|
|
588
590
|
boundaryTitle: "Root provider recipe",
|
|
@@ -695,14 +697,14 @@ var qe = [
|
|
|
695
697
|
xl: "XL"
|
|
696
698
|
}
|
|
697
699
|
};
|
|
698
|
-
function
|
|
700
|
+
function Z(e, t) {
|
|
699
701
|
return e.map((e) => ({
|
|
700
702
|
value: e,
|
|
701
703
|
label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
|
|
702
704
|
}));
|
|
703
705
|
}
|
|
704
|
-
function
|
|
705
|
-
let a =
|
|
706
|
+
function Ye({ config: e, onChange: t, strings: i = X }) {
|
|
707
|
+
let a = R(e), o = Z(n, i), s = [
|
|
706
708
|
"sunday",
|
|
707
709
|
"monday",
|
|
708
710
|
"tuesday",
|
|
@@ -722,50 +724,51 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
722
724
|
}
|
|
723
725
|
});
|
|
724
726
|
};
|
|
725
|
-
return /* @__PURE__ */
|
|
727
|
+
return /* @__PURE__ */ O(p, {
|
|
726
728
|
gap: "lg",
|
|
727
729
|
className: "theme-tweaker--provider-settings",
|
|
728
730
|
children: [
|
|
729
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ O(p, {
|
|
730
732
|
gap: "normal",
|
|
731
|
-
children: [/* @__PURE__ */
|
|
733
|
+
children: [/* @__PURE__ */ D(l, {
|
|
734
|
+
type: "inherit",
|
|
732
735
|
weight: "semibold",
|
|
733
736
|
children: i.title
|
|
734
|
-
}), /* @__PURE__ */
|
|
737
|
+
}), /* @__PURE__ */ D(l, {
|
|
735
738
|
size: "xs",
|
|
736
739
|
type: "secondary",
|
|
737
740
|
children: i.description
|
|
738
741
|
})]
|
|
739
742
|
}),
|
|
740
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ O(te, {
|
|
741
744
|
tone: "info",
|
|
742
745
|
role: "note",
|
|
743
746
|
className: "theme-tweaker--provider-boundary",
|
|
744
747
|
children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
748
|
+
/* @__PURE__ */ D(xe, { "aria-hidden": "true" }),
|
|
749
|
+
/* @__PURE__ */ D(g, { children: i.boundaryTitle }),
|
|
750
|
+
/* @__PURE__ */ D(h, { children: i.boundaryDescription }),
|
|
751
|
+
/* @__PURE__ */ O(ee, { children: [
|
|
752
|
+
/* @__PURE__ */ D(m, {
|
|
750
753
|
label: i.summary.locale,
|
|
751
754
|
value: a.formatting?.locale ?? i.options.default
|
|
752
755
|
}),
|
|
753
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ D(m, {
|
|
754
757
|
label: i.summary.currency,
|
|
755
758
|
value: a.money?.defaultCurrency ?? i.options.default
|
|
756
759
|
}),
|
|
757
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ D(m, {
|
|
758
761
|
label: i.summary.controls,
|
|
759
762
|
value: i.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? i.options.md
|
|
760
763
|
}),
|
|
761
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ D(m, {
|
|
762
765
|
label: i.summary.cards,
|
|
763
766
|
value: i.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? i.options.default
|
|
764
767
|
})
|
|
765
768
|
] })
|
|
766
769
|
]
|
|
767
770
|
}),
|
|
768
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ D(oe, {
|
|
769
772
|
multiple: !0,
|
|
770
773
|
defaultValue: ["regional"],
|
|
771
774
|
variant: "bordered",
|
|
@@ -776,36 +779,36 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
776
779
|
value: "regional",
|
|
777
780
|
title: i.sections.regional.title,
|
|
778
781
|
description: i.sections.regional.description,
|
|
779
|
-
content: /* @__PURE__ */
|
|
782
|
+
content: /* @__PURE__ */ O("div", {
|
|
780
783
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
781
784
|
children: [
|
|
782
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ D(y, {
|
|
783
786
|
label: i.labels.locale,
|
|
784
|
-
children: /* @__PURE__ */
|
|
787
|
+
children: /* @__PURE__ */ D(v, {
|
|
785
788
|
value: a.formatting?.locale ?? "",
|
|
786
789
|
onChange: (e) => c("formatting", "locale", e.target.value)
|
|
787
790
|
})
|
|
788
791
|
}),
|
|
789
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ D(y, {
|
|
790
793
|
label: i.labels.defaultCurrency,
|
|
791
|
-
children: /* @__PURE__ */
|
|
794
|
+
children: /* @__PURE__ */ D(v, {
|
|
792
795
|
value: a.money?.defaultCurrency ?? "",
|
|
793
796
|
onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
794
797
|
})
|
|
795
798
|
}),
|
|
796
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ D(y, {
|
|
797
800
|
label: i.labels.displayCurrency,
|
|
798
|
-
children: /* @__PURE__ */
|
|
801
|
+
children: /* @__PURE__ */ D(v, {
|
|
799
802
|
value: a.money?.displayCurrency ?? "",
|
|
800
803
|
placeholder: i.displayCurrencyPlaceholder,
|
|
801
804
|
onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
802
805
|
})
|
|
803
806
|
}),
|
|
804
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ D(y, {
|
|
805
808
|
label: i.labels.moneyFormat,
|
|
806
|
-
children: /* @__PURE__ */
|
|
809
|
+
children: /* @__PURE__ */ D(x, {
|
|
807
810
|
value: a.money?.formatMode,
|
|
808
|
-
options:
|
|
811
|
+
options: Z([
|
|
809
812
|
"decimal",
|
|
810
813
|
"with_code",
|
|
811
814
|
"with_symbol",
|
|
@@ -814,17 +817,17 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
814
817
|
onValueChange: (e) => c("money", "formatMode", e)
|
|
815
818
|
})
|
|
816
819
|
}),
|
|
817
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ D(y, {
|
|
818
821
|
label: i.labels.firstDay,
|
|
819
|
-
children: /* @__PURE__ */
|
|
822
|
+
children: /* @__PURE__ */ D(x, {
|
|
820
823
|
value: String(a.dates?.weekStartsOn ?? 1),
|
|
821
824
|
options: s,
|
|
822
825
|
onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
|
|
823
826
|
})
|
|
824
827
|
}),
|
|
825
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ D(y, {
|
|
826
829
|
label: i.labels.dateFormat,
|
|
827
|
-
children: /* @__PURE__ */
|
|
830
|
+
children: /* @__PURE__ */ D(v, {
|
|
828
831
|
value: a.dates?.format ?? "",
|
|
829
832
|
onChange: (e) => c("dates", "format", e.target.value)
|
|
830
833
|
})
|
|
@@ -836,14 +839,14 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
836
839
|
value: "content",
|
|
837
840
|
title: i.sections.content.title,
|
|
838
841
|
description: i.sections.content.description,
|
|
839
|
-
content: /* @__PURE__ */
|
|
842
|
+
content: /* @__PURE__ */ O("div", {
|
|
840
843
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
841
844
|
children: [
|
|
842
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ D(y, {
|
|
843
846
|
label: i.labels.textSize,
|
|
844
|
-
children: /* @__PURE__ */
|
|
847
|
+
children: /* @__PURE__ */ D(x, {
|
|
845
848
|
value: a.typography?.defaultTextSize,
|
|
846
|
-
options:
|
|
849
|
+
options: Z([
|
|
847
850
|
"xxs",
|
|
848
851
|
"xs",
|
|
849
852
|
"pxs",
|
|
@@ -855,25 +858,25 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
855
858
|
onValueChange: (e) => c("typography", "defaultTextSize", e)
|
|
856
859
|
})
|
|
857
860
|
}),
|
|
858
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ D(y, {
|
|
859
862
|
label: i.labels.commentComposer,
|
|
860
|
-
children: /* @__PURE__ */
|
|
863
|
+
children: /* @__PURE__ */ D(x, {
|
|
861
864
|
value: a.comments?.composerPosition,
|
|
862
|
-
options:
|
|
865
|
+
options: Z(["top", "bottom"], i),
|
|
863
866
|
onValueChange: (e) => c("comments", "composerPosition", e)
|
|
864
867
|
})
|
|
865
868
|
}),
|
|
866
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ D(b, {
|
|
867
870
|
label: i.labels.dualPricing,
|
|
868
871
|
description: i.dualPricingDescription,
|
|
869
872
|
value: a.money?.dualPricingEnabled ?? !1,
|
|
870
873
|
onValueChange: (e) => c("money", "dualPricingEnabled", e)
|
|
871
874
|
}),
|
|
872
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ D(y, {
|
|
873
876
|
label: i.labels.dualPricingMode,
|
|
874
|
-
children: /* @__PURE__ */
|
|
877
|
+
children: /* @__PURE__ */ D(x, {
|
|
875
878
|
value: a.money?.displayMode,
|
|
876
|
-
options:
|
|
879
|
+
options: Z([
|
|
877
880
|
"default_only",
|
|
878
881
|
"dual",
|
|
879
882
|
"dynamic"
|
|
@@ -881,11 +884,11 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
881
884
|
onValueChange: (e) => c("money", "displayMode", e)
|
|
882
885
|
})
|
|
883
886
|
}),
|
|
884
|
-
/* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ D(y, {
|
|
885
888
|
label: i.labels.dualPricingLayout,
|
|
886
|
-
children: /* @__PURE__ */
|
|
889
|
+
children: /* @__PURE__ */ D(x, {
|
|
887
890
|
value: a.money?.dualPricingDisplay,
|
|
888
|
-
options:
|
|
891
|
+
options: Z(["inline", "lines"], i),
|
|
889
892
|
onValueChange: (e) => c("money", "dualPricingDisplay", e)
|
|
890
893
|
})
|
|
891
894
|
})
|
|
@@ -896,22 +899,22 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
896
899
|
value: "components",
|
|
897
900
|
title: i.sections.components.title,
|
|
898
901
|
description: i.sections.components.description,
|
|
899
|
-
content: /* @__PURE__ */
|
|
902
|
+
content: /* @__PURE__ */ O("div", {
|
|
900
903
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
901
904
|
children: [
|
|
902
|
-
/* @__PURE__ */
|
|
905
|
+
/* @__PURE__ */ D(y, {
|
|
903
906
|
label: i.labels.componentScale,
|
|
904
|
-
children: /* @__PURE__ */
|
|
907
|
+
children: /* @__PURE__ */ D(x, {
|
|
905
908
|
value: a.density?.defaultScale,
|
|
906
909
|
options: o,
|
|
907
910
|
onValueChange: (e) => c("density", "defaultScale", e)
|
|
908
911
|
})
|
|
909
912
|
}),
|
|
910
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ D(y, {
|
|
911
914
|
label: i.labels.itemVariant,
|
|
912
|
-
children: /* @__PURE__ */
|
|
915
|
+
children: /* @__PURE__ */ D(x, {
|
|
913
916
|
value: a.item?.defaultVariant,
|
|
914
|
-
options:
|
|
917
|
+
options: Z([
|
|
915
918
|
"default",
|
|
916
919
|
"outline",
|
|
917
920
|
"muted"
|
|
@@ -919,19 +922,19 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
919
922
|
onValueChange: (e) => c("item", "defaultVariant", e)
|
|
920
923
|
})
|
|
921
924
|
}),
|
|
922
|
-
/* @__PURE__ */
|
|
925
|
+
/* @__PURE__ */ D(y, {
|
|
923
926
|
label: i.labels.buttonTone,
|
|
924
|
-
children: /* @__PURE__ */
|
|
927
|
+
children: /* @__PURE__ */ D(x, {
|
|
925
928
|
value: a.button?.defaultTone,
|
|
926
|
-
options:
|
|
929
|
+
options: Z(r, i),
|
|
927
930
|
onValueChange: (e) => c("button", "defaultTone", e)
|
|
928
931
|
})
|
|
929
932
|
}),
|
|
930
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ D(y, {
|
|
931
934
|
label: i.labels.buttonStyle,
|
|
932
|
-
children: /* @__PURE__ */
|
|
935
|
+
children: /* @__PURE__ */ D(x, {
|
|
933
936
|
value: a.button?.defaultButtonStyle,
|
|
934
|
-
options:
|
|
937
|
+
options: Z([
|
|
935
938
|
"solid",
|
|
936
939
|
"outline",
|
|
937
940
|
"ghost"
|
|
@@ -939,19 +942,19 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
939
942
|
onValueChange: (e) => c("button", "defaultButtonStyle", e)
|
|
940
943
|
})
|
|
941
944
|
}),
|
|
942
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ D(y, {
|
|
943
946
|
label: i.labels.badgeTone,
|
|
944
|
-
children: /* @__PURE__ */
|
|
947
|
+
children: /* @__PURE__ */ D(x, {
|
|
945
948
|
value: a.badge?.defaultTone,
|
|
946
|
-
options:
|
|
949
|
+
options: Z(r, i),
|
|
947
950
|
onValueChange: (e) => c("badge", "defaultTone", e)
|
|
948
951
|
})
|
|
949
952
|
}),
|
|
950
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ D(y, {
|
|
951
954
|
label: i.labels.cardSurface,
|
|
952
|
-
children: /* @__PURE__ */
|
|
955
|
+
children: /* @__PURE__ */ D(x, {
|
|
953
956
|
value: a.card?.defaultSurface,
|
|
954
|
-
options:
|
|
957
|
+
options: Z([
|
|
955
958
|
"card",
|
|
956
959
|
"flat",
|
|
957
960
|
"framed"
|
|
@@ -959,11 +962,11 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
959
962
|
onValueChange: (e) => c("card", "defaultSurface", e)
|
|
960
963
|
})
|
|
961
964
|
}),
|
|
962
|
-
/* @__PURE__ */
|
|
965
|
+
/* @__PURE__ */ D(y, {
|
|
963
966
|
label: i.labels.spinner,
|
|
964
|
-
children: /* @__PURE__ */
|
|
967
|
+
children: /* @__PURE__ */ D(x, {
|
|
965
968
|
value: a.spinner?.defaultVariant,
|
|
966
|
-
options:
|
|
969
|
+
options: Z([
|
|
967
970
|
"default",
|
|
968
971
|
"shimmer",
|
|
969
972
|
"progress"
|
|
@@ -971,14 +974,14 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
971
974
|
onValueChange: (e) => c("spinner", "defaultVariant", e)
|
|
972
975
|
})
|
|
973
976
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
977
|
+
/* @__PURE__ */ D(b, {
|
|
975
978
|
label: i.labels.cardDivider,
|
|
976
|
-
value: a.card?.defaultHeaderDivider ?? !
|
|
979
|
+
value: a.card?.defaultHeaderDivider ?? !0,
|
|
977
980
|
onValueChange: (e) => c("card", "defaultHeaderDivider", e)
|
|
978
981
|
}),
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
label: i.labels.cardFooterDivider ??
|
|
981
|
-
value: a.card?.defaultFooterDivider ?? !
|
|
982
|
+
/* @__PURE__ */ D(b, {
|
|
983
|
+
label: i.labels.cardFooterDivider ?? X.labels.cardFooterDivider,
|
|
984
|
+
value: a.card?.defaultFooterDivider ?? !0,
|
|
982
985
|
onValueChange: (e) => c("card", "defaultFooterDivider", e)
|
|
983
986
|
})
|
|
984
987
|
]
|
|
@@ -988,14 +991,14 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
988
991
|
value: "toasts",
|
|
989
992
|
title: i.sections.toasts.title,
|
|
990
993
|
description: i.sections.toasts.description,
|
|
991
|
-
content: /* @__PURE__ */
|
|
994
|
+
content: /* @__PURE__ */ O("div", {
|
|
992
995
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
993
996
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ D(y, {
|
|
995
998
|
label: i.labels.toastPosition,
|
|
996
|
-
children: /* @__PURE__ */
|
|
999
|
+
children: /* @__PURE__ */ D(x, {
|
|
997
1000
|
value: a.toast?.position,
|
|
998
|
-
options:
|
|
1001
|
+
options: Z([
|
|
999
1002
|
"top-right",
|
|
1000
1003
|
"top-left",
|
|
1001
1004
|
"top-center",
|
|
@@ -1006,11 +1009,11 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
1006
1009
|
onValueChange: (e) => c("toast", "position", e)
|
|
1007
1010
|
})
|
|
1008
1011
|
}),
|
|
1009
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ D(y, {
|
|
1010
1013
|
label: i.labels.toastTheme,
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1014
|
+
children: /* @__PURE__ */ D(x, {
|
|
1012
1015
|
value: a.toast?.theme,
|
|
1013
|
-
options:
|
|
1016
|
+
options: Z([
|
|
1014
1017
|
"light",
|
|
1015
1018
|
"dark",
|
|
1016
1019
|
"system"
|
|
@@ -1018,9 +1021,9 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
1018
1021
|
onValueChange: (e) => c("toast", "theme", e)
|
|
1019
1022
|
})
|
|
1020
1023
|
}),
|
|
1021
|
-
/* @__PURE__ */
|
|
1024
|
+
/* @__PURE__ */ D(y, {
|
|
1022
1025
|
label: i.labels.toastDuration,
|
|
1023
|
-
children: /* @__PURE__ */
|
|
1026
|
+
children: /* @__PURE__ */ D(v, {
|
|
1024
1027
|
type: "number",
|
|
1025
1028
|
min: 1e3,
|
|
1026
1029
|
step: 500,
|
|
@@ -1028,9 +1031,9 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
1028
1031
|
onChange: (e) => c("toast", "duration", Number(e.target.value))
|
|
1029
1032
|
})
|
|
1030
1033
|
}),
|
|
1031
|
-
/* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ D(y, {
|
|
1032
1035
|
label: i.labels.visibleToasts,
|
|
1033
|
-
children: /* @__PURE__ */
|
|
1036
|
+
children: /* @__PURE__ */ D(v, {
|
|
1034
1037
|
type: "number",
|
|
1035
1038
|
min: 1,
|
|
1036
1039
|
max: 10,
|
|
@@ -1038,12 +1041,12 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
1038
1041
|
onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
|
|
1039
1042
|
})
|
|
1040
1043
|
}),
|
|
1041
|
-
/* @__PURE__ */
|
|
1044
|
+
/* @__PURE__ */ D(b, {
|
|
1042
1045
|
label: i.labels.closeButton,
|
|
1043
1046
|
value: a.toast?.closeButton ?? !0,
|
|
1044
1047
|
onValueChange: (e) => c("toast", "closeButton", e)
|
|
1045
1048
|
}),
|
|
1046
|
-
/* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ D(b, {
|
|
1047
1050
|
label: i.labels.richColors,
|
|
1048
1051
|
value: a.toast?.richColors ?? !1,
|
|
1049
1052
|
onValueChange: (e) => c("toast", "richColors", e)
|
|
@@ -1058,7 +1061,7 @@ function Je({ config: e, onChange: t, strings: i = Y }) {
|
|
|
1058
1061
|
}
|
|
1059
1062
|
//#endregion
|
|
1060
1063
|
//#region src/components/features/theme-tweaker/theme-tweaker.strings.ts
|
|
1061
|
-
var
|
|
1064
|
+
var Xe = {
|
|
1062
1065
|
title: "Theme tweaker",
|
|
1063
1066
|
description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus root display defaults.",
|
|
1064
1067
|
searchLabel: "Search variables",
|
|
@@ -1124,7 +1127,7 @@ var Ye = {
|
|
|
1124
1127
|
previewSuccess: "Healthy",
|
|
1125
1128
|
previewWarning: "Review",
|
|
1126
1129
|
previewContract: "CSS variables",
|
|
1127
|
-
providerSettings:
|
|
1130
|
+
providerSettings: X,
|
|
1128
1131
|
groups: {
|
|
1129
1132
|
colors: "Colors",
|
|
1130
1133
|
states: "States",
|
|
@@ -1163,10 +1166,10 @@ var Ye = {
|
|
|
1163
1166
|
};
|
|
1164
1167
|
//#endregion
|
|
1165
1168
|
//#region src/components/features/theme-tweaker/theme-tweaker.recipes.ts
|
|
1166
|
-
function
|
|
1169
|
+
function Q(e, t, n) {
|
|
1167
1170
|
return Math.min(n, Math.max(t, e));
|
|
1168
1171
|
}
|
|
1169
|
-
function
|
|
1172
|
+
function $(e, t) {
|
|
1170
1173
|
let n = e.trim().match(/^#([\da-f]{3}|[\da-f]{6})$/i)?.[1], r = n?.length === 3 ? [...n].map((e) => e + e).join("") : n;
|
|
1171
1174
|
if (r) return [
|
|
1172
1175
|
0,
|
|
@@ -1191,10 +1194,10 @@ function Ze({ primary: e, mode: t = "light" }) {
|
|
|
1191
1194
|
"--info-foreground": n ? "oklch(0.23 0.025 250)" : "oklch(0.985 0 0)",
|
|
1192
1195
|
"--warning": r("oklch(0.78 0.13 75)", "oklch(0.81 0.12 75)"),
|
|
1193
1196
|
"--warning-foreground": "oklch(0.28 0.035 60)",
|
|
1194
|
-
"--warning-accent": r("oklch(0.
|
|
1197
|
+
"--warning-accent": r("oklch(0.53 0.11 65)", "oklch(0.81 0.12 75)"),
|
|
1195
1198
|
"--destructive": r("oklch(0.55 0.17 25)", "oklch(0.74 0.14 25)"),
|
|
1196
1199
|
"--destructive-foreground": n ? "oklch(0.23 0.035 25)" : "oklch(0.985 0 0)",
|
|
1197
|
-
"--primary-foreground":
|
|
1200
|
+
"--primary-foreground": $(e, t),
|
|
1198
1201
|
"--secondary": "color-mix(in oklab, var(--primary) 10%, var(--background))",
|
|
1199
1202
|
"--secondary-foreground": "var(--foreground)",
|
|
1200
1203
|
"--muted": "color-mix(in oklab, var(--primary) 7%, var(--background))",
|
|
@@ -1202,8 +1205,6 @@ function Ze({ primary: e, mode: t = "light" }) {
|
|
|
1202
1205
|
"--accent": "color-mix(in oklab, var(--primary) 14%, var(--background))",
|
|
1203
1206
|
"--accent-foreground": "var(--foreground)",
|
|
1204
1207
|
"--border": "color-mix(in oklab, var(--primary) 14%, var(--background))",
|
|
1205
|
-
"--input": "color-mix(in oklab, var(--primary) 18%, var(--background))",
|
|
1206
|
-
"--ring": "var(--primary)",
|
|
1207
1208
|
"--link-color": "var(--primary-accent)",
|
|
1208
1209
|
"--chart-1": "var(--primary)",
|
|
1209
1210
|
"--chart-2": r("oklch(0.56 0.11 230)", "oklch(0.76 0.11 230)"),
|
|
@@ -1218,13 +1219,13 @@ function Ze({ primary: e, mode: t = "light" }) {
|
|
|
1218
1219
|
"--sidebar-ring": "var(--ring)"
|
|
1219
1220
|
};
|
|
1220
1221
|
}
|
|
1221
|
-
var
|
|
1222
|
+
var Qe = {
|
|
1222
1223
|
xxs: .75,
|
|
1223
1224
|
xs: .75,
|
|
1224
1225
|
pxs: .8125,
|
|
1225
1226
|
sm: .875,
|
|
1226
1227
|
base: 1
|
|
1227
|
-
}, $ = [
|
|
1228
|
+
}, $e = [
|
|
1228
1229
|
"lg",
|
|
1229
1230
|
"xl",
|
|
1230
1231
|
"2xl",
|
|
@@ -1236,19 +1237,19 @@ var Q = {
|
|
|
1236
1237
|
"8xl",
|
|
1237
1238
|
"9xl"
|
|
1238
1239
|
];
|
|
1239
|
-
function
|
|
1240
|
-
let n =
|
|
1241
|
-
for (let [e, t] of Object.entries(
|
|
1240
|
+
function et({ baseSize: e, ratio: t = 1.2 }) {
|
|
1241
|
+
let n = Q(e, 14, 20), r = Q(t, 1.125, 1.333), i = {};
|
|
1242
|
+
for (let [e, t] of Object.entries(Qe)) {
|
|
1242
1243
|
let r = Math.max(12, n * t);
|
|
1243
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))}`;
|
|
1244
1245
|
}
|
|
1245
|
-
return
|
|
1246
|
+
return $e.forEach((e, t) => {
|
|
1246
1247
|
let a = n * r ** (t + 1);
|
|
1247
|
-
i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(
|
|
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))}`;
|
|
1248
1249
|
}), i;
|
|
1249
1250
|
}
|
|
1250
|
-
function
|
|
1251
|
-
let t =
|
|
1251
|
+
function tt({ intensity: e }) {
|
|
1252
|
+
let t = Q(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
|
|
1252
1253
|
return {
|
|
1253
1254
|
"--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
|
|
1254
1255
|
"--shadow-xs": `0 1px 3px 0 oklch(0 0 0 / ${n(.07)})`,
|
|
@@ -1262,28 +1263,28 @@ function $e({ intensity: e }) {
|
|
|
1262
1263
|
}
|
|
1263
1264
|
//#endregion
|
|
1264
1265
|
//#region src/components/features/theme-tweaker/theme-tweaker.tsx
|
|
1265
|
-
var
|
|
1266
|
+
var nt = [
|
|
1266
1267
|
"colors",
|
|
1267
1268
|
"states",
|
|
1268
1269
|
"typography",
|
|
1269
1270
|
"shape",
|
|
1270
1271
|
"structure",
|
|
1271
1272
|
"defaults"
|
|
1272
|
-
],
|
|
1273
|
-
colors:
|
|
1274
|
-
states:
|
|
1273
|
+
], rt = {
|
|
1274
|
+
colors: k,
|
|
1275
|
+
states: A,
|
|
1275
1276
|
typography: ke,
|
|
1276
|
-
shape:
|
|
1277
|
-
structure:
|
|
1277
|
+
shape: De,
|
|
1278
|
+
structure: Se,
|
|
1278
1279
|
defaults: Ee
|
|
1279
1280
|
};
|
|
1280
|
-
function
|
|
1281
|
-
let
|
|
1282
|
-
return /* @__PURE__ */
|
|
1283
|
-
render: /* @__PURE__ */
|
|
1281
|
+
function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
|
|
1282
|
+
let f = w();
|
|
1283
|
+
return /* @__PURE__ */ O(p, {
|
|
1284
|
+
render: /* @__PURE__ */ D("section", { "aria-labelledby": f }),
|
|
1284
1285
|
gap: "md",
|
|
1285
1286
|
className: "theme-tweaker--export-artifact min-w-0",
|
|
1286
|
-
children: [/* @__PURE__ */
|
|
1287
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1287
1288
|
direction: {
|
|
1288
1289
|
base: "vertical",
|
|
1289
1290
|
sm: "horizontal"
|
|
@@ -1295,76 +1296,77 @@ function nt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
|
|
|
1295
1296
|
justify: { sm: "between" },
|
|
1296
1297
|
gap: "md",
|
|
1297
1298
|
className: "theme-tweaker--export-artifact-header",
|
|
1298
|
-
children: [/* @__PURE__ */
|
|
1299
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1299
1300
|
gap: "dense",
|
|
1300
1301
|
className: "min-w-0",
|
|
1301
|
-
children: [/* @__PURE__ */
|
|
1302
|
-
|
|
1302
|
+
children: [/* @__PURE__ */ D(u, {
|
|
1303
|
+
className: "text-inherit",
|
|
1304
|
+
id: f,
|
|
1303
1305
|
tag: "h3",
|
|
1304
1306
|
children: e
|
|
1305
|
-
}), /* @__PURE__ */
|
|
1307
|
+
}), /* @__PURE__ */ D(l, {
|
|
1306
1308
|
size: "xs",
|
|
1307
1309
|
type: "secondary",
|
|
1308
1310
|
children: t
|
|
1309
1311
|
})]
|
|
1310
|
-
}), /* @__PURE__ */
|
|
1312
|
+
}), /* @__PURE__ */ O(p, {
|
|
1311
1313
|
direction: "horizontal",
|
|
1312
1314
|
gap: "xs",
|
|
1313
1315
|
align: "center",
|
|
1314
1316
|
wrap: !0,
|
|
1315
1317
|
className: "theme-tweaker--export-artifact-actions sm:shrink-0",
|
|
1316
|
-
children: [/* @__PURE__ */
|
|
1318
|
+
children: [/* @__PURE__ */ D(c, {
|
|
1317
1319
|
type: "button",
|
|
1318
1320
|
size: "sm",
|
|
1319
1321
|
tone: "secondary",
|
|
1320
1322
|
buttonStyle: "outline",
|
|
1321
|
-
icon:
|
|
1323
|
+
icon: ye,
|
|
1322
1324
|
onClick: a,
|
|
1323
1325
|
children: r
|
|
1324
|
-
}), /* @__PURE__ */
|
|
1326
|
+
}), /* @__PURE__ */ D(c, {
|
|
1325
1327
|
tone: "primary",
|
|
1326
1328
|
type: "button",
|
|
1327
1329
|
size: "sm",
|
|
1328
|
-
icon:
|
|
1330
|
+
icon: be,
|
|
1329
1331
|
loading: s,
|
|
1330
1332
|
onClick: o,
|
|
1331
1333
|
children: i
|
|
1332
1334
|
})]
|
|
1333
1335
|
})]
|
|
1334
|
-
}), /* @__PURE__ */
|
|
1336
|
+
}), /* @__PURE__ */ D("pre", {
|
|
1335
1337
|
tabIndex: 0,
|
|
1336
1338
|
"aria-label": e,
|
|
1337
|
-
className:
|
|
1338
|
-
children: /* @__PURE__ */
|
|
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__ */ D("code", { children: n })
|
|
1339
1341
|
})]
|
|
1340
1342
|
});
|
|
1341
1343
|
}
|
|
1342
|
-
function
|
|
1344
|
+
function at(e, t) {
|
|
1343
1345
|
let n = Number.parseFloat(e);
|
|
1344
1346
|
return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
|
|
1345
1347
|
}
|
|
1346
|
-
function
|
|
1348
|
+
function ot(e, t) {
|
|
1347
1349
|
let n = t.decimalPlaces ?? 3;
|
|
1348
1350
|
return `${Number(e.toFixed(n))}${t.unit ?? ""}`;
|
|
1349
1351
|
}
|
|
1350
|
-
function
|
|
1352
|
+
function st(e, t) {
|
|
1351
1353
|
return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
|
|
1352
1354
|
}
|
|
1353
|
-
function
|
|
1354
|
-
if (typeof document > "u" || typeof window > "u") return
|
|
1355
|
+
function ct(e, t) {
|
|
1356
|
+
if (typeof document > "u" || typeof window > "u") return M(e);
|
|
1355
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, {
|
|
1356
1358
|
value: n.style.getPropertyValue(e),
|
|
1357
1359
|
priority: n.style.getPropertyPriority(e)
|
|
1358
1360
|
}])), s = (t) => {
|
|
1359
1361
|
for (let e of r) n.style.removeProperty(e);
|
|
1360
1362
|
n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
|
|
1361
|
-
for (let [r, i] of Object.entries(
|
|
1363
|
+
for (let [r, i] of Object.entries(B(e, t))) typeof i == "string" && n.style.setProperty(r, i);
|
|
1362
1364
|
let i = window.getComputedStyle(n);
|
|
1363
1365
|
return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter((e) => e[1].length > 0));
|
|
1364
1366
|
};
|
|
1365
1367
|
try {
|
|
1366
1368
|
let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
|
|
1367
|
-
return
|
|
1369
|
+
return M({
|
|
1368
1370
|
mode: e.mode,
|
|
1369
1371
|
shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
|
|
1370
1372
|
light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
|
|
@@ -1378,8 +1380,8 @@ function ot(e, t) {
|
|
|
1378
1380
|
n.classList.toggle("light", i), n.classList.toggle("dark", a);
|
|
1379
1381
|
}
|
|
1380
1382
|
}
|
|
1381
|
-
function
|
|
1382
|
-
let s = `theme-variable-${
|
|
1383
|
+
function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
|
|
1384
|
+
let s = `theme-variable-${w().replace(/:/g, "")}`, u = /* @__PURE__ */ D(c, {
|
|
1383
1385
|
type: "button",
|
|
1384
1386
|
iconOnly: !0,
|
|
1385
1387
|
tone: "secondary",
|
|
@@ -1389,19 +1391,19 @@ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1389
1391
|
"aria-label": `${o.resetVariable}: ${e.label}`,
|
|
1390
1392
|
disabled: !t,
|
|
1391
1393
|
onClick: i,
|
|
1392
|
-
children: /* @__PURE__ */
|
|
1394
|
+
children: /* @__PURE__ */ D(l, {
|
|
1393
1395
|
tag: "span",
|
|
1394
1396
|
size: "inherit",
|
|
1395
1397
|
className: "sr-only",
|
|
1396
1398
|
children: o.resetVariable
|
|
1397
1399
|
})
|
|
1398
|
-
}), d = e.placeholder ?? n ?? o.inheritValue,
|
|
1399
|
-
if (e.kind === "color")
|
|
1400
|
+
}), d = e.placeholder ?? n ?? o.inheritValue, f;
|
|
1401
|
+
if (e.kind === "color") f = /* @__PURE__ */ O(p, {
|
|
1400
1402
|
direction: "horizontal",
|
|
1401
1403
|
gap: "xs",
|
|
1402
1404
|
align: "center",
|
|
1403
1405
|
wrap: !1,
|
|
1404
|
-
children: [/* @__PURE__ */
|
|
1406
|
+
children: [/* @__PURE__ */ D(le, {
|
|
1405
1407
|
id: s,
|
|
1406
1408
|
"aria-label": e.label,
|
|
1407
1409
|
"aria-description": e.description,
|
|
@@ -1411,29 +1413,29 @@ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1411
1413
|
onValueChange: r,
|
|
1412
1414
|
placeholder: d,
|
|
1413
1415
|
className: "min-w-0 flex-1"
|
|
1414
|
-
}),
|
|
1416
|
+
}), u]
|
|
1415
1417
|
});
|
|
1416
1418
|
else if (e.control?.type === "range") {
|
|
1417
|
-
let i =
|
|
1418
|
-
|
|
1419
|
+
let i = at(t || n, e.control);
|
|
1420
|
+
f = /* @__PURE__ */ O(p, {
|
|
1419
1421
|
gap: "sm",
|
|
1420
|
-
children: [/* @__PURE__ */
|
|
1422
|
+
children: [/* @__PURE__ */ D(S, {
|
|
1421
1423
|
id: `${s}-slider`,
|
|
1422
1424
|
"aria-label": a(o.adjustVariable, { label: e.label }),
|
|
1423
1425
|
value: i,
|
|
1424
1426
|
min: e.control.min,
|
|
1425
1427
|
max: e.control.max,
|
|
1426
1428
|
step: e.control.step,
|
|
1427
|
-
onValueChange: (t) => r(
|
|
1428
|
-
}), /* @__PURE__ */
|
|
1429
|
+
onValueChange: (t) => r(ot(t, e.control))
|
|
1430
|
+
}), /* @__PURE__ */ O(p, {
|
|
1429
1431
|
direction: "horizontal",
|
|
1430
1432
|
gap: "xs",
|
|
1431
1433
|
align: "center",
|
|
1432
1434
|
wrap: !1,
|
|
1433
|
-
children: [/* @__PURE__ */
|
|
1435
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1434
1436
|
gap: "none",
|
|
1435
1437
|
className: "w-28 max-w-full shrink-0",
|
|
1436
|
-
children: /* @__PURE__ */
|
|
1438
|
+
children: /* @__PURE__ */ D(ue, {
|
|
1437
1439
|
id: s,
|
|
1438
1440
|
"aria-label": e.label,
|
|
1439
1441
|
"aria-description": e.description,
|
|
@@ -1450,17 +1452,17 @@ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1450
1452
|
},
|
|
1451
1453
|
className: "font-mono tabular-nums"
|
|
1452
1454
|
})
|
|
1453
|
-
}),
|
|
1455
|
+
}), u]
|
|
1454
1456
|
})]
|
|
1455
1457
|
});
|
|
1456
|
-
} else
|
|
1458
|
+
} else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ O(p, {
|
|
1457
1459
|
direction: "horizontal",
|
|
1458
1460
|
gap: "xs",
|
|
1459
1461
|
align: "start",
|
|
1460
1462
|
wrap: !1,
|
|
1461
|
-
children: [/* @__PURE__ */
|
|
1463
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1462
1464
|
className: "min-w-0 flex-1",
|
|
1463
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ D(ce, {
|
|
1464
1466
|
id: s,
|
|
1465
1467
|
"aria-label": e.label,
|
|
1466
1468
|
"aria-description": e.description,
|
|
@@ -1471,13 +1473,13 @@ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1471
1473
|
autoResize: !0,
|
|
1472
1474
|
className: "font-mono"
|
|
1473
1475
|
})
|
|
1474
|
-
}),
|
|
1475
|
-
}) : /* @__PURE__ */
|
|
1476
|
+
}), u]
|
|
1477
|
+
}) : /* @__PURE__ */ O(p, {
|
|
1476
1478
|
direction: "horizontal",
|
|
1477
1479
|
gap: "xs",
|
|
1478
1480
|
align: "center",
|
|
1479
1481
|
wrap: !1,
|
|
1480
|
-
children: [/* @__PURE__ */
|
|
1482
|
+
children: [/* @__PURE__ */ D(v, {
|
|
1481
1483
|
id: s,
|
|
1482
1484
|
"aria-label": e.label,
|
|
1483
1485
|
"aria-description": e.description,
|
|
@@ -1485,24 +1487,25 @@ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1485
1487
|
onChange: (e) => r(e.target.value),
|
|
1486
1488
|
placeholder: d,
|
|
1487
1489
|
className: "min-w-0 flex-1 font-mono"
|
|
1488
|
-
}),
|
|
1490
|
+
}), u]
|
|
1489
1491
|
});
|
|
1490
|
-
return /* @__PURE__ */
|
|
1491
|
-
label: /* @__PURE__ */
|
|
1492
|
-
render: /* @__PURE__ */
|
|
1492
|
+
return /* @__PURE__ */ D(y, {
|
|
1493
|
+
label: /* @__PURE__ */ O(p, {
|
|
1494
|
+
render: /* @__PURE__ */ D("span", {}),
|
|
1493
1495
|
direction: "horizontal",
|
|
1494
1496
|
gap: "sm",
|
|
1495
1497
|
align: "baseline",
|
|
1496
1498
|
justify: "between",
|
|
1497
1499
|
wrap: !0,
|
|
1498
1500
|
className: "min-w-0 flex-1",
|
|
1499
|
-
children: [/* @__PURE__ */
|
|
1501
|
+
children: [/* @__PURE__ */ D(l, {
|
|
1502
|
+
type: "inherit",
|
|
1500
1503
|
tag: "span",
|
|
1501
1504
|
size: "inherit",
|
|
1502
1505
|
weight: "medium",
|
|
1503
1506
|
className: "min-w-0",
|
|
1504
1507
|
children: e.label
|
|
1505
|
-
}), /* @__PURE__ */
|
|
1508
|
+
}), /* @__PURE__ */ D(ae, {
|
|
1506
1509
|
size: "xs",
|
|
1507
1510
|
type: "secondary",
|
|
1508
1511
|
weight: "regular",
|
|
@@ -1512,50 +1515,50 @@ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1512
1515
|
}),
|
|
1513
1516
|
htmlFor: s,
|
|
1514
1517
|
className: "theme-tweaker--field min-w-0 border-t border-border/60 py-row-y first:border-t-0",
|
|
1515
|
-
children:
|
|
1518
|
+
children: f
|
|
1516
1519
|
});
|
|
1517
1520
|
}
|
|
1518
|
-
function
|
|
1519
|
-
return /* @__PURE__ */
|
|
1521
|
+
function ut({ strings: e }) {
|
|
1522
|
+
return /* @__PURE__ */ D(ne, {
|
|
1520
1523
|
title: e.previewTitle,
|
|
1521
1524
|
description: e.previewDescription,
|
|
1522
1525
|
className: "theme-tweaker--preview-card",
|
|
1523
|
-
children: /* @__PURE__ */
|
|
1526
|
+
children: /* @__PURE__ */ O(p, {
|
|
1524
1527
|
gap: "lg",
|
|
1525
1528
|
children: [
|
|
1526
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ O(p, {
|
|
1527
1530
|
direction: "horizontal",
|
|
1528
1531
|
gap: "sm",
|
|
1529
1532
|
wrap: !0,
|
|
1530
1533
|
children: [
|
|
1531
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ D(_, {
|
|
1532
1535
|
tone: "success",
|
|
1533
1536
|
children: e.previewSuccess
|
|
1534
1537
|
}),
|
|
1535
|
-
/* @__PURE__ */
|
|
1538
|
+
/* @__PURE__ */ D(_, {
|
|
1536
1539
|
tone: "warning",
|
|
1537
1540
|
children: e.previewWarning
|
|
1538
1541
|
}),
|
|
1539
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ D(_, {
|
|
1540
1543
|
tone: "secondary",
|
|
1541
1544
|
children: e.previewContract
|
|
1542
1545
|
})
|
|
1543
1546
|
]
|
|
1544
1547
|
}),
|
|
1545
|
-
/* @__PURE__ */
|
|
1548
|
+
/* @__PURE__ */ D(de, {
|
|
1546
1549
|
variant: "muted",
|
|
1547
1550
|
padding: "default",
|
|
1548
|
-
media: /* @__PURE__ */
|
|
1551
|
+
media: /* @__PURE__ */ D(k, {}),
|
|
1549
1552
|
mediaVariant: "icon",
|
|
1550
1553
|
title: e.previewItemTitle,
|
|
1551
1554
|
description: e.previewItemDescription,
|
|
1552
|
-
trailing: /* @__PURE__ */
|
|
1555
|
+
trailing: /* @__PURE__ */ D(ve, { className: "size-icon text-success" })
|
|
1553
1556
|
}),
|
|
1554
|
-
/* @__PURE__ */
|
|
1557
|
+
/* @__PURE__ */ D(y, {
|
|
1555
1558
|
label: e.previewFieldLabel,
|
|
1556
|
-
children: /* @__PURE__ */
|
|
1559
|
+
children: /* @__PURE__ */ D(v, { placeholder: e.previewFieldPlaceholder })
|
|
1557
1560
|
}),
|
|
1558
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ D(c, {
|
|
1559
1562
|
tone: "primary",
|
|
1560
1563
|
type: "button",
|
|
1561
1564
|
children: e.previewAction
|
|
@@ -1564,59 +1567,59 @@ function ct({ strings: e }) {
|
|
|
1564
1567
|
})
|
|
1565
1568
|
});
|
|
1566
1569
|
}
|
|
1567
|
-
function
|
|
1570
|
+
function dt(e, t, n) {
|
|
1568
1571
|
let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
|
|
1569
1572
|
return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
|
|
1570
1573
|
...e,
|
|
1571
1574
|
[r]: i
|
|
1572
1575
|
};
|
|
1573
1576
|
}
|
|
1574
|
-
var
|
|
1575
|
-
let
|
|
1576
|
-
ge(
|
|
1577
|
+
var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Je, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: ae, onConfigChange: se, providerFileName: ce = "admin-ui.config.ts", showIntro: x = !0, selectors: le, onExport: ue, onCopy: de, onReset: C, onError: w, actionsSlot: ve, strings: ye, className: be, ...xe }, Se) {
|
|
1578
|
+
let k = o(Xe, ye), [Ee, De] = E(() => M(t)), A = T(() => e ? M(e) : Ee, [Ee, e]), [ke, Ae] = E(() => R(ae)), je = T(() => R(g ?? ke), [g, ke]), [j, Me] = E("colors"), [N, P] = E(""), [F, I] = E(!0), [L, Ne] = E(16), [z, Fe] = E(1.2), [ze, Ve] = E(.8), [H, U] = E("idle"), W = re(), [He, Ue] = E(!1), G = _e(null);
|
|
1579
|
+
ge(Se, () => G.current), Be({
|
|
1577
1580
|
apply: m,
|
|
1578
1581
|
manageModeClass: ee,
|
|
1579
1582
|
selfRef: G,
|
|
1580
|
-
target:
|
|
1581
|
-
theme:
|
|
1583
|
+
target: d,
|
|
1584
|
+
theme: A
|
|
1582
1585
|
});
|
|
1583
|
-
let [K, We] =
|
|
1586
|
+
let [K, We] = E(() => M(A)), [Ge, Ke] = E({});
|
|
1584
1587
|
he(() => {
|
|
1585
1588
|
if (typeof window > "u") return;
|
|
1586
1589
|
let e = window.setTimeout(() => {
|
|
1587
|
-
let e =
|
|
1590
|
+
let e = st(d, G.current);
|
|
1588
1591
|
if (!e) return;
|
|
1589
1592
|
let t = window.getComputedStyle(e);
|
|
1590
|
-
Ke(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), We(
|
|
1593
|
+
Ke(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), We(ct(A, i));
|
|
1591
1594
|
}, 0);
|
|
1592
1595
|
return () => window.clearTimeout(e);
|
|
1593
1596
|
}, [
|
|
1594
1597
|
m,
|
|
1595
1598
|
i,
|
|
1596
|
-
|
|
1597
|
-
|
|
1599
|
+
d,
|
|
1600
|
+
A
|
|
1598
1601
|
]);
|
|
1599
|
-
let { artifact: q, error: J } =
|
|
1602
|
+
let { artifact: q, error: J } = T(() => {
|
|
1600
1603
|
try {
|
|
1601
|
-
let e =
|
|
1602
|
-
mode:
|
|
1604
|
+
let e = M({
|
|
1605
|
+
mode: A.mode,
|
|
1603
1606
|
shared: {
|
|
1604
1607
|
...K.shared,
|
|
1605
|
-
...
|
|
1608
|
+
...A.shared
|
|
1606
1609
|
},
|
|
1607
1610
|
light: {
|
|
1608
1611
|
...K.light,
|
|
1609
|
-
...
|
|
1612
|
+
...A.light
|
|
1610
1613
|
},
|
|
1611
1614
|
dark: {
|
|
1612
1615
|
...K.dark,
|
|
1613
|
-
...
|
|
1616
|
+
...A.dark
|
|
1614
1617
|
}
|
|
1615
1618
|
});
|
|
1616
1619
|
return {
|
|
1617
|
-
artifact:
|
|
1620
|
+
artifact: Ie(A, te, { selectors: le }, {
|
|
1618
1621
|
resolvedTheme: e,
|
|
1619
|
-
providerConfig:
|
|
1622
|
+
providerConfig: je,
|
|
1620
1623
|
providerFileName: ce
|
|
1621
1624
|
}),
|
|
1622
1625
|
error: null
|
|
@@ -1628,23 +1631,23 @@ var ut = x(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1628
1631
|
};
|
|
1629
1632
|
}
|
|
1630
1633
|
}, [
|
|
1631
|
-
|
|
1632
|
-
|
|
1634
|
+
te,
|
|
1635
|
+
je,
|
|
1633
1636
|
ce,
|
|
1634
1637
|
K,
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
]),
|
|
1638
|
+
le,
|
|
1639
|
+
A
|
|
1640
|
+
]), qe = q?.cssText ?? `/* ${k.invalidTheme} */\n`, Y = T(() => Pe(A), [A]), X = N.trim().toLowerCase(), Z = T(() => i.filter((e) => !X && e.group !== j ? !1 : !X || [
|
|
1638
1641
|
e.name,
|
|
1639
1642
|
e.label,
|
|
1640
1643
|
e.description
|
|
1641
|
-
].filter(Boolean).some((e) => e?.toLowerCase().includes(
|
|
1644
|
+
].filter(Boolean).some((e) => e?.toLowerCase().includes(X))), [
|
|
1642
1645
|
i,
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
]), Q =
|
|
1646
|
+
j,
|
|
1647
|
+
X
|
|
1648
|
+
]), Q = T(() => {
|
|
1646
1649
|
let e = /* @__PURE__ */ new Map();
|
|
1647
|
-
for (let t of
|
|
1650
|
+
for (let t of Z) {
|
|
1648
1651
|
let n = `${t.group}:${t.section}`, r = e.get(n);
|
|
1649
1652
|
r ? r.fields.push(t) : e.set(n, {
|
|
1650
1653
|
group: t.group,
|
|
@@ -1653,299 +1656,301 @@ var ut = x(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1653
1656
|
});
|
|
1654
1657
|
}
|
|
1655
1658
|
return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
|
|
1656
|
-
}, [
|
|
1657
|
-
e === void 0 &&
|
|
1658
|
-
},
|
|
1659
|
-
|
|
1660
|
-
},
|
|
1659
|
+
}, [Z]), $ = (t) => {
|
|
1660
|
+
e === void 0 && De(t), n?.(t), U("idle");
|
|
1661
|
+
}, Qe = (e) => {
|
|
1662
|
+
g === void 0 && Ae(e), se?.(e), U("idle");
|
|
1663
|
+
}, $e = (e) => {
|
|
1661
1664
|
$({
|
|
1662
|
-
...
|
|
1663
|
-
[
|
|
1664
|
-
...
|
|
1665
|
+
...A,
|
|
1666
|
+
[A.mode]: {
|
|
1667
|
+
...A[A.mode],
|
|
1665
1668
|
...e
|
|
1666
1669
|
}
|
|
1667
1670
|
});
|
|
1668
|
-
},
|
|
1671
|
+
}, at = (e) => {
|
|
1669
1672
|
$({
|
|
1670
|
-
...
|
|
1673
|
+
...A,
|
|
1671
1674
|
shared: {
|
|
1672
|
-
...
|
|
1675
|
+
...A.shared,
|
|
1673
1676
|
...e
|
|
1674
1677
|
}
|
|
1675
1678
|
});
|
|
1676
|
-
},
|
|
1677
|
-
e !==
|
|
1678
|
-
...
|
|
1679
|
+
}, ot = (e) => {
|
|
1680
|
+
e !== A.mode && ($({
|
|
1681
|
+
...A,
|
|
1679
1682
|
mode: e
|
|
1680
1683
|
}), r?.(e));
|
|
1681
1684
|
}, ft = async () => {
|
|
1682
1685
|
try {
|
|
1683
1686
|
if (J) throw J;
|
|
1684
|
-
if (
|
|
1685
|
-
|
|
1687
|
+
if (Ue(!0), !q) throw Error(k.invalidTheme);
|
|
1688
|
+
ue ? await ue(q) : Le(q), U("exported");
|
|
1686
1689
|
} catch (e) {
|
|
1687
|
-
|
|
1690
|
+
w?.(e);
|
|
1688
1691
|
} finally {
|
|
1689
|
-
|
|
1692
|
+
Ue(!1);
|
|
1690
1693
|
}
|
|
1691
1694
|
}, pt = async (e) => {
|
|
1692
1695
|
try {
|
|
1693
|
-
if (
|
|
1696
|
+
if (de) await de(e);
|
|
1694
1697
|
else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
|
|
1695
1698
|
else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
|
|
1696
|
-
|
|
1699
|
+
U("copied");
|
|
1697
1700
|
} catch (e) {
|
|
1698
|
-
|
|
1701
|
+
w?.(e);
|
|
1699
1702
|
}
|
|
1700
1703
|
}, mt = () => {
|
|
1701
1704
|
try {
|
|
1702
|
-
if (!q) throw J ?? Error(
|
|
1703
|
-
|
|
1705
|
+
if (!q) throw J ?? Error(k.invalidTheme);
|
|
1706
|
+
Re({
|
|
1704
1707
|
fileName: q.providerFileName,
|
|
1705
1708
|
text: q.providerConfigText,
|
|
1706
1709
|
mimeType: "text/typescript;charset=utf-8"
|
|
1707
|
-
}),
|
|
1710
|
+
}), U("exported");
|
|
1708
1711
|
} catch (e) {
|
|
1709
|
-
|
|
1712
|
+
w?.(e);
|
|
1710
1713
|
}
|
|
1711
1714
|
}, ht = () => {
|
|
1712
|
-
let e =
|
|
1713
|
-
$(t),
|
|
1714
|
-
}, gt = J ?
|
|
1715
|
+
let e = A, t = M({ mode: A.mode });
|
|
1716
|
+
$(t), C?.(e), U("idle");
|
|
1717
|
+
}, gt = J ? k.invalidTheme : H === "copied" ? k.copiedStatus : H === "exported" ? k.exportedStatus : null, _t = j === "colors" ? /* @__PURE__ */ D(b, {
|
|
1715
1718
|
className: "theme-tweaker--recipe",
|
|
1716
|
-
label:
|
|
1717
|
-
description:
|
|
1718
|
-
value:
|
|
1719
|
-
onValueChange:
|
|
1720
|
-
}) :
|
|
1721
|
-
title:
|
|
1722
|
-
description:
|
|
1719
|
+
label: k.autoPalette,
|
|
1720
|
+
description: k.autoPaletteDescription,
|
|
1721
|
+
value: F,
|
|
1722
|
+
onValueChange: I
|
|
1723
|
+
}) : j === "typography" ? /* @__PURE__ */ D(ne, {
|
|
1724
|
+
title: k.typeRecipeTitle,
|
|
1725
|
+
description: k.typeRecipeDescription,
|
|
1723
1726
|
surface: "flat",
|
|
1724
1727
|
padding: "none",
|
|
1725
1728
|
className: "theme-tweaker--recipe",
|
|
1726
|
-
children: /* @__PURE__ */
|
|
1729
|
+
children: /* @__PURE__ */ O(f, {
|
|
1727
1730
|
columns: 1,
|
|
1728
1731
|
gap: "md",
|
|
1729
1732
|
className: "@2xl/theme-tweaker-controls:grid-cols-2",
|
|
1730
|
-
children: [/* @__PURE__ */
|
|
1731
|
-
label:
|
|
1732
|
-
children: /* @__PURE__ */
|
|
1733
|
-
"aria-label":
|
|
1734
|
-
value:
|
|
1733
|
+
children: [/* @__PURE__ */ D(y, {
|
|
1734
|
+
label: k.baseTypeSize,
|
|
1735
|
+
children: /* @__PURE__ */ D(S, {
|
|
1736
|
+
"aria-label": k.baseTypeSize,
|
|
1737
|
+
value: L,
|
|
1735
1738
|
min: 14,
|
|
1736
1739
|
max: 20,
|
|
1737
1740
|
step: 1,
|
|
1738
1741
|
onValueChange: (e) => {
|
|
1739
|
-
|
|
1742
|
+
Ne(e), at(et({
|
|
1740
1743
|
baseSize: e,
|
|
1741
|
-
ratio:
|
|
1744
|
+
ratio: z
|
|
1742
1745
|
}));
|
|
1743
1746
|
}
|
|
1744
1747
|
})
|
|
1745
|
-
}), /* @__PURE__ */
|
|
1746
|
-
label:
|
|
1747
|
-
children: /* @__PURE__ */
|
|
1748
|
-
"aria-label":
|
|
1749
|
-
value:
|
|
1748
|
+
}), /* @__PURE__ */ D(y, {
|
|
1749
|
+
label: k.typeRatio,
|
|
1750
|
+
children: /* @__PURE__ */ D(S, {
|
|
1751
|
+
"aria-label": k.typeRatio,
|
|
1752
|
+
value: z,
|
|
1750
1753
|
min: 1.125,
|
|
1751
1754
|
max: 1.333,
|
|
1752
1755
|
step: .01,
|
|
1753
1756
|
onValueChange: (e) => {
|
|
1754
|
-
|
|
1755
|
-
baseSize:
|
|
1757
|
+
Fe(e), at(et({
|
|
1758
|
+
baseSize: L,
|
|
1756
1759
|
ratio: e
|
|
1757
1760
|
}));
|
|
1758
1761
|
}
|
|
1759
1762
|
})
|
|
1760
1763
|
})]
|
|
1761
1764
|
})
|
|
1762
|
-
}) :
|
|
1763
|
-
title:
|
|
1764
|
-
description:
|
|
1765
|
+
}) : j === "shape" ? /* @__PURE__ */ D(ne, {
|
|
1766
|
+
title: k.elevationRecipeTitle,
|
|
1767
|
+
description: k.elevationRecipeDescription,
|
|
1765
1768
|
surface: "flat",
|
|
1766
1769
|
padding: "none",
|
|
1767
1770
|
className: "theme-tweaker--recipe",
|
|
1768
|
-
children: /* @__PURE__ */
|
|
1769
|
-
label:
|
|
1770
|
-
children: /* @__PURE__ */
|
|
1771
|
-
"aria-label":
|
|
1772
|
-
value:
|
|
1771
|
+
children: /* @__PURE__ */ D(y, {
|
|
1772
|
+
label: k.elevationIntensity,
|
|
1773
|
+
children: /* @__PURE__ */ D(S, {
|
|
1774
|
+
"aria-label": k.elevationIntensity,
|
|
1775
|
+
value: ze,
|
|
1773
1776
|
min: 0,
|
|
1774
1777
|
max: 1,
|
|
1775
1778
|
step: .05,
|
|
1776
1779
|
onValueChange: (e) => {
|
|
1777
|
-
Ve(e),
|
|
1780
|
+
Ve(e), $e(tt({ intensity: e }));
|
|
1778
1781
|
}
|
|
1779
1782
|
})
|
|
1780
1783
|
})
|
|
1781
|
-
}) : null, vt = /* @__PURE__ */
|
|
1782
|
-
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout",
|
|
1784
|
+
}) : null, vt = /* @__PURE__ */ O("div", {
|
|
1785
|
+
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", h !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
|
|
1783
1786
|
children: [
|
|
1784
|
-
/* @__PURE__ */
|
|
1787
|
+
/* @__PURE__ */ O(p, {
|
|
1785
1788
|
gap: "lg",
|
|
1786
1789
|
className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
|
|
1787
|
-
children: [/* @__PURE__ */
|
|
1790
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1788
1791
|
gap: "lg",
|
|
1789
1792
|
className: "theme-tweaker--header shrink-0",
|
|
1790
1793
|
children: [
|
|
1791
|
-
|
|
1794
|
+
x ? /* @__PURE__ */ O(p, {
|
|
1792
1795
|
gap: "normal",
|
|
1793
1796
|
className: "theme-tweaker--intro",
|
|
1794
|
-
children: [/* @__PURE__ */
|
|
1797
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1795
1798
|
direction: "horizontal",
|
|
1796
1799
|
gap: "sm",
|
|
1797
1800
|
align: "center",
|
|
1798
1801
|
wrap: !0,
|
|
1799
|
-
children: [/* @__PURE__ */
|
|
1802
|
+
children: [/* @__PURE__ */ D(u, {
|
|
1800
1803
|
tag: "h2",
|
|
1801
|
-
className: "theme-tweaker--title",
|
|
1802
|
-
children:
|
|
1803
|
-
}), /* @__PURE__ */
|
|
1804
|
+
className: "theme-tweaker--title text-inherit",
|
|
1805
|
+
children: k.title
|
|
1806
|
+
}), /* @__PURE__ */ D(_, {
|
|
1804
1807
|
tone: "secondary",
|
|
1805
|
-
children: a(
|
|
1808
|
+
children: a(k.changedCount, { count: Y })
|
|
1806
1809
|
})]
|
|
1807
|
-
}), /* @__PURE__ */
|
|
1810
|
+
}), /* @__PURE__ */ D(l, {
|
|
1808
1811
|
type: "secondary",
|
|
1809
1812
|
className: "theme-tweaker--description",
|
|
1810
|
-
children:
|
|
1813
|
+
children: k.description
|
|
1811
1814
|
})]
|
|
1812
1815
|
}) : null,
|
|
1813
|
-
/* @__PURE__ */
|
|
1816
|
+
/* @__PURE__ */ O(p, {
|
|
1814
1817
|
direction: "horizontal",
|
|
1815
1818
|
justify: "between",
|
|
1816
1819
|
align: "center",
|
|
1817
1820
|
wrap: !0,
|
|
1818
1821
|
gap: "sm",
|
|
1819
1822
|
className: "theme-tweaker--toolbar",
|
|
1820
|
-
children: [/* @__PURE__ */
|
|
1823
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1821
1824
|
direction: "horizontal",
|
|
1822
1825
|
gap: "sm",
|
|
1823
1826
|
align: "center",
|
|
1824
1827
|
wrap: !0,
|
|
1825
|
-
children: /* @__PURE__ */
|
|
1826
|
-
value:
|
|
1827
|
-
onValueChange: (e) =>
|
|
1828
|
-
children: /* @__PURE__ */
|
|
1828
|
+
children: /* @__PURE__ */ D(me, {
|
|
1829
|
+
value: A.mode,
|
|
1830
|
+
onValueChange: (e) => ot(e),
|
|
1831
|
+
children: /* @__PURE__ */ O(pe, { children: [/* @__PURE__ */ O(fe, {
|
|
1829
1832
|
value: "light",
|
|
1830
|
-
children: [/* @__PURE__ */
|
|
1831
|
-
}), /* @__PURE__ */
|
|
1833
|
+
children: [/* @__PURE__ */ D(Oe, { className: "size-icon-sm" }), k.lightMode]
|
|
1834
|
+
}), /* @__PURE__ */ O(fe, {
|
|
1832
1835
|
value: "dark",
|
|
1833
|
-
children: [/* @__PURE__ */
|
|
1836
|
+
children: [/* @__PURE__ */ D(Ce, { className: "size-icon-sm" }), k.darkMode]
|
|
1834
1837
|
})] })
|
|
1835
1838
|
})
|
|
1836
|
-
}), /* @__PURE__ */
|
|
1839
|
+
}), /* @__PURE__ */ O(p, {
|
|
1837
1840
|
direction: "horizontal",
|
|
1838
1841
|
gap: "xs",
|
|
1839
1842
|
align: "center",
|
|
1840
1843
|
justify: "end",
|
|
1841
1844
|
wrap: !1,
|
|
1842
1845
|
className: "theme-tweaker--actions",
|
|
1843
|
-
children: [/* @__PURE__ */
|
|
1846
|
+
children: [/* @__PURE__ */ D(c, {
|
|
1844
1847
|
tone: "primary",
|
|
1845
1848
|
type: "button",
|
|
1846
1849
|
disabled: !!J,
|
|
1847
1850
|
onClick: () => {
|
|
1848
|
-
|
|
1851
|
+
U("idle"), W.show();
|
|
1849
1852
|
},
|
|
1850
|
-
children:
|
|
1851
|
-
}),
|
|
1853
|
+
children: k.export
|
|
1854
|
+
}), ve]
|
|
1852
1855
|
})]
|
|
1853
1856
|
}),
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
label: /* @__PURE__ */
|
|
1857
|
+
/* @__PURE__ */ D(y, {
|
|
1858
|
+
label: /* @__PURE__ */ D(l, {
|
|
1856
1859
|
tag: "span",
|
|
1857
1860
|
size: "inherit",
|
|
1858
1861
|
className: "sr-only",
|
|
1859
|
-
children:
|
|
1862
|
+
children: k.searchLabel
|
|
1860
1863
|
}),
|
|
1861
1864
|
className: "theme-tweaker--search",
|
|
1862
|
-
children: /* @__PURE__ */
|
|
1863
|
-
value:
|
|
1864
|
-
onChange: (e) =>
|
|
1865
|
-
placeholder:
|
|
1865
|
+
children: /* @__PURE__ */ D(v, {
|
|
1866
|
+
value: N,
|
|
1867
|
+
onChange: (e) => P(e.target.value),
|
|
1868
|
+
placeholder: k.searchPlaceholder,
|
|
1866
1869
|
startIcon: Te,
|
|
1867
1870
|
clearable: !0,
|
|
1868
|
-
onClear: () =>
|
|
1869
|
-
"aria-description":
|
|
1871
|
+
onClear: () => P(""),
|
|
1872
|
+
"aria-description": k.searchHint
|
|
1870
1873
|
})
|
|
1871
1874
|
})
|
|
1872
1875
|
]
|
|
1873
|
-
}), /* @__PURE__ */
|
|
1876
|
+
}), /* @__PURE__ */ O(p, {
|
|
1874
1877
|
gap: "lg",
|
|
1875
1878
|
className: "theme-tweaker--workspace min-h-0",
|
|
1876
|
-
children: [/* @__PURE__ */
|
|
1877
|
-
"aria-label":
|
|
1879
|
+
children: [/* @__PURE__ */ D("nav", {
|
|
1880
|
+
"aria-label": k.groupNavigationLabel,
|
|
1878
1881
|
className: "theme-tweaker--navigation min-w-0",
|
|
1879
|
-
children: /* @__PURE__ */
|
|
1880
|
-
value:
|
|
1882
|
+
children: /* @__PURE__ */ D(me, {
|
|
1883
|
+
value: j,
|
|
1881
1884
|
onValueChange: (e) => {
|
|
1882
|
-
|
|
1885
|
+
P(""), Me(e);
|
|
1883
1886
|
},
|
|
1884
1887
|
className: "w-full",
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1888
|
+
children: /* @__PURE__ */ D(pe, {
|
|
1886
1889
|
scrollable: !0,
|
|
1887
1890
|
scrollStrings: {
|
|
1888
|
-
previous:
|
|
1889
|
-
next:
|
|
1891
|
+
previous: k.previousGroup,
|
|
1892
|
+
next: k.nextGroup
|
|
1890
1893
|
},
|
|
1891
1894
|
className: "theme-tweaker--group-list",
|
|
1892
|
-
children:
|
|
1893
|
-
let t =
|
|
1894
|
-
return /* @__PURE__ */
|
|
1895
|
+
children: nt.map((e) => {
|
|
1896
|
+
let t = rt[e];
|
|
1897
|
+
return /* @__PURE__ */ O(fe, {
|
|
1895
1898
|
value: e,
|
|
1896
|
-
onClick: () =>
|
|
1899
|
+
onClick: () => P(""),
|
|
1897
1900
|
className: "theme-tweaker--group-trigger",
|
|
1898
|
-
children: [/* @__PURE__ */
|
|
1901
|
+
children: [/* @__PURE__ */ D(t, { "aria-hidden": "true" }), /* @__PURE__ */ D(l, {
|
|
1902
|
+
type: "inherit",
|
|
1899
1903
|
tag: "span",
|
|
1900
1904
|
size: "inherit",
|
|
1901
1905
|
weight: "medium",
|
|
1902
1906
|
className: "min-w-0 flex-1 truncate text-left",
|
|
1903
|
-
children:
|
|
1907
|
+
children: k.groups[e]
|
|
1904
1908
|
})]
|
|
1905
1909
|
}, e);
|
|
1906
1910
|
})
|
|
1907
1911
|
})
|
|
1908
1912
|
})
|
|
1909
|
-
}), /* @__PURE__ */
|
|
1913
|
+
}), /* @__PURE__ */ O(p, {
|
|
1910
1914
|
gap: "lg",
|
|
1911
1915
|
className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
|
|
1912
1916
|
children: [
|
|
1913
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ O(p, {
|
|
1914
1918
|
gap: "normal",
|
|
1915
1919
|
className: "theme-tweaker--editor-heading",
|
|
1916
|
-
children: [/* @__PURE__ */
|
|
1920
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1917
1921
|
direction: "horizontal",
|
|
1918
1922
|
gap: "sm",
|
|
1919
1923
|
align: "center",
|
|
1920
1924
|
wrap: !0,
|
|
1921
1925
|
children: [
|
|
1922
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ D(u, {
|
|
1927
|
+
className: "text-inherit",
|
|
1923
1928
|
tag: "h3",
|
|
1924
|
-
children:
|
|
1929
|
+
children: X ? k.allGroups : k.groups[j]
|
|
1925
1930
|
}),
|
|
1926
|
-
|
|
1931
|
+
x ? null : /* @__PURE__ */ D(_, {
|
|
1927
1932
|
tone: "secondary",
|
|
1928
|
-
children: a(
|
|
1933
|
+
children: a(k.changedCount, { count: Y })
|
|
1929
1934
|
}),
|
|
1930
|
-
|
|
1935
|
+
X ? /* @__PURE__ */ D(_, {
|
|
1931
1936
|
tone: "secondary",
|
|
1932
1937
|
role: "status",
|
|
1933
1938
|
"aria-live": "polite",
|
|
1934
|
-
children: a(
|
|
1939
|
+
children: a(k.searchResults, { count: Z.length })
|
|
1935
1940
|
}) : null
|
|
1936
1941
|
]
|
|
1937
|
-
}), /* @__PURE__ */
|
|
1942
|
+
}), /* @__PURE__ */ D(l, {
|
|
1938
1943
|
size: "xs",
|
|
1939
1944
|
type: "secondary",
|
|
1940
|
-
children:
|
|
1945
|
+
children: X ? k.searchHint : k.groupDescriptions[j]
|
|
1941
1946
|
})]
|
|
1942
1947
|
}),
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
config:
|
|
1946
|
-
onChange:
|
|
1947
|
-
strings:
|
|
1948
|
-
}) : Q.length > 0 ? /* @__PURE__ */
|
|
1948
|
+
X ? null : _t,
|
|
1949
|
+
j === "defaults" && !X ? /* @__PURE__ */ D(Ye, {
|
|
1950
|
+
config: je,
|
|
1951
|
+
onChange: Qe,
|
|
1952
|
+
strings: k.providerSettings
|
|
1953
|
+
}) : Q.length > 0 ? /* @__PURE__ */ D(oe, {
|
|
1949
1954
|
multiple: !0,
|
|
1950
1955
|
defaultValue: [`${Q[0].group}:${Q[0].section}`],
|
|
1951
1956
|
variant: "bordered",
|
|
@@ -1953,108 +1958,108 @@ var ut = x(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1953
1958
|
className: "theme-tweaker--sections shrink-0",
|
|
1954
1959
|
itemClassName: "theme-tweaker--section",
|
|
1955
1960
|
items: Q.map((e) => {
|
|
1956
|
-
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ?
|
|
1957
|
-
group:
|
|
1958
|
-
section:
|
|
1959
|
-
}) :
|
|
1961
|
+
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? k.mixedScope : t.has("shared") ? k.sharedScope : A.mode === "light" ? k.lightMode : k.darkMode, r = X ? a(k.groupSectionLabel, {
|
|
1962
|
+
group: k.groups[e.group],
|
|
1963
|
+
section: k.sections[e.section]
|
|
1964
|
+
}) : k.sections[e.section];
|
|
1960
1965
|
return {
|
|
1961
1966
|
value: `${e.group}:${e.section}`,
|
|
1962
1967
|
title: r,
|
|
1963
|
-
description: a(
|
|
1964
|
-
badge: /* @__PURE__ */
|
|
1968
|
+
description: a(k.variableCount, { count: e.fields.length }),
|
|
1969
|
+
badge: /* @__PURE__ */ D(_, {
|
|
1965
1970
|
tone: "secondary",
|
|
1966
1971
|
children: n
|
|
1967
1972
|
}),
|
|
1968
|
-
content: /* @__PURE__ */
|
|
1973
|
+
content: /* @__PURE__ */ D(p, {
|
|
1969
1974
|
gap: "none",
|
|
1970
1975
|
className: "theme-tweaker--fields",
|
|
1971
1976
|
children: e.fields.map((e) => {
|
|
1972
|
-
let t = e.scope === "shared" ? "shared" :
|
|
1973
|
-
return /* @__PURE__ */
|
|
1977
|
+
let t = e.scope === "shared" ? "shared" : A.mode, n = A[t][e.name] ?? "";
|
|
1978
|
+
return /* @__PURE__ */ D(lt, {
|
|
1974
1979
|
field: e,
|
|
1975
1980
|
value: n,
|
|
1976
1981
|
effectiveValue: Ge[e.name] ?? "",
|
|
1977
|
-
strings:
|
|
1982
|
+
strings: k,
|
|
1978
1983
|
onChange: (t) => {
|
|
1979
|
-
if (e.name === "--primary" &&
|
|
1980
|
-
|
|
1984
|
+
if (e.name === "--primary" && F && t.trim()) {
|
|
1985
|
+
$e(Ze({
|
|
1981
1986
|
primary: t,
|
|
1982
|
-
mode:
|
|
1987
|
+
mode: A.mode
|
|
1983
1988
|
}));
|
|
1984
1989
|
return;
|
|
1985
1990
|
}
|
|
1986
|
-
$(
|
|
1991
|
+
$(dt(A, e, t));
|
|
1987
1992
|
},
|
|
1988
|
-
onReset: () => $(
|
|
1993
|
+
onReset: () => $(dt(A, e, ""))
|
|
1989
1994
|
}, e.name);
|
|
1990
1995
|
})
|
|
1991
1996
|
})
|
|
1992
1997
|
};
|
|
1993
1998
|
})
|
|
1994
|
-
}, `${
|
|
1999
|
+
}, `${j}:${X}`) : /* @__PURE__ */ D(l, {
|
|
1995
2000
|
type: "secondary",
|
|
1996
2001
|
className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
|
|
1997
|
-
children:
|
|
2002
|
+
children: k.emptySearch
|
|
1998
2003
|
})
|
|
1999
2004
|
]
|
|
2000
2005
|
})]
|
|
2001
2006
|
})]
|
|
2002
2007
|
}),
|
|
2003
|
-
|
|
2008
|
+
h === !1 ? null : /* @__PURE__ */ D(p, {
|
|
2004
2009
|
className: "theme-tweaker--preview min-w-0 self-start",
|
|
2005
|
-
children:
|
|
2010
|
+
children: h ?? /* @__PURE__ */ D(ut, { strings: k })
|
|
2006
2011
|
}),
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
...
|
|
2009
|
-
title:
|
|
2010
|
-
description:
|
|
2012
|
+
/* @__PURE__ */ D(ie, {
|
|
2013
|
+
...W.overlayProps,
|
|
2014
|
+
title: k.exportDialogTitle,
|
|
2015
|
+
description: k.exportDialogDescription,
|
|
2011
2016
|
showCloseButton: !1,
|
|
2012
2017
|
showCancel: !1,
|
|
2013
2018
|
showConfirm: !1,
|
|
2014
|
-
surfaceStyle:
|
|
2015
|
-
className: s("theme-tweaker--export-dialog sm:max-w-4xl",
|
|
2016
|
-
footer: /* @__PURE__ */
|
|
2019
|
+
surfaceStyle: B(A),
|
|
2020
|
+
className: s("theme-tweaker--export-dialog sm:max-w-4xl", A.mode),
|
|
2021
|
+
footer: /* @__PURE__ */ O(p, {
|
|
2017
2022
|
direction: "horizontal",
|
|
2018
2023
|
align: "center",
|
|
2019
2024
|
justify: "between",
|
|
2020
2025
|
className: "theme-tweaker--export-footer w-full",
|
|
2021
|
-
children: [/* @__PURE__ */
|
|
2026
|
+
children: [/* @__PURE__ */ D(c, {
|
|
2022
2027
|
type: "button",
|
|
2023
2028
|
tone: "secondary",
|
|
2024
2029
|
buttonStyle: "ghost",
|
|
2025
2030
|
icon: we,
|
|
2026
|
-
disabled:
|
|
2031
|
+
disabled: Y === 0,
|
|
2027
2032
|
onClick: ht,
|
|
2028
|
-
children:
|
|
2029
|
-
}), /* @__PURE__ */
|
|
2030
|
-
onClick:
|
|
2031
|
-
children:
|
|
2033
|
+
children: k.reset
|
|
2034
|
+
}), /* @__PURE__ */ D(c, {
|
|
2035
|
+
onClick: W.hide,
|
|
2036
|
+
children: k.close
|
|
2032
2037
|
})]
|
|
2033
2038
|
}),
|
|
2034
|
-
children: /* @__PURE__ */
|
|
2039
|
+
children: /* @__PURE__ */ O(p, {
|
|
2035
2040
|
gap: "xl",
|
|
2036
2041
|
className: "theme-tweaker--export-body",
|
|
2037
2042
|
children: [
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
title:
|
|
2040
|
-
description:
|
|
2041
|
-
code:
|
|
2042
|
-
copyLabel:
|
|
2043
|
-
downloadLabel:
|
|
2044
|
-
downloading:
|
|
2045
|
-
onCopy: () => void pt(
|
|
2043
|
+
/* @__PURE__ */ D(it, {
|
|
2044
|
+
title: k.cssOutputLabel,
|
|
2045
|
+
description: k.cssOutputDescription,
|
|
2046
|
+
code: qe,
|
|
2047
|
+
copyLabel: k.copy,
|
|
2048
|
+
downloadLabel: He ? k.exportPending : k.downloadCss,
|
|
2049
|
+
downloading: He,
|
|
2050
|
+
onCopy: () => void pt(qe),
|
|
2046
2051
|
onDownload: () => void ft()
|
|
2047
2052
|
}),
|
|
2048
|
-
/* @__PURE__ */
|
|
2049
|
-
title:
|
|
2050
|
-
description:
|
|
2053
|
+
/* @__PURE__ */ D(it, {
|
|
2054
|
+
title: k.providerOutputLabel,
|
|
2055
|
+
description: k.providerOutputDescription,
|
|
2051
2056
|
code: q?.providerConfigText ?? "",
|
|
2052
|
-
copyLabel:
|
|
2053
|
-
downloadLabel:
|
|
2057
|
+
copyLabel: k.copyProvider,
|
|
2058
|
+
downloadLabel: k.downloadProvider,
|
|
2054
2059
|
onCopy: () => void pt(q?.providerConfigText ?? ""),
|
|
2055
2060
|
onDownload: mt
|
|
2056
2061
|
}),
|
|
2057
|
-
gt ? /* @__PURE__ */
|
|
2062
|
+
gt ? /* @__PURE__ */ D(l, {
|
|
2058
2063
|
tag: "div",
|
|
2059
2064
|
size: "xs",
|
|
2060
2065
|
type: J ? "error" : "secondary",
|
|
@@ -2068,21 +2073,21 @@ var ut = x(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
2068
2073
|
})
|
|
2069
2074
|
]
|
|
2070
2075
|
});
|
|
2071
|
-
return
|
|
2072
|
-
...
|
|
2076
|
+
return d === "self" ? /* @__PURE__ */ D(V, {
|
|
2077
|
+
...xe,
|
|
2073
2078
|
ref: G,
|
|
2074
|
-
theme: m ?
|
|
2075
|
-
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground",
|
|
2079
|
+
theme: m ? A : M({ mode: A.mode }),
|
|
2080
|
+
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", be),
|
|
2076
2081
|
children: vt
|
|
2077
|
-
}) : /* @__PURE__ */
|
|
2078
|
-
...
|
|
2082
|
+
}) : /* @__PURE__ */ D("div", {
|
|
2083
|
+
...xe,
|
|
2079
2084
|
ref: G,
|
|
2080
|
-
className: s("theme-tweaker--component @container/theme-tweaker",
|
|
2085
|
+
className: s("theme-tweaker--component @container/theme-tweaker", be),
|
|
2081
2086
|
children: vt
|
|
2082
2087
|
});
|
|
2083
2088
|
});
|
|
2084
|
-
|
|
2089
|
+
ft.displayName = "ThemeTweaker";
|
|
2085
2090
|
//#endregion
|
|
2086
|
-
export {
|
|
2091
|
+
export { Ve as AdminUIThemeProvider, V as ThemeScope, ft as ThemeTweaker, B as adminUIThemeToStyle, Pe as countAdminUIThemeOverrides, M as createAdminUITheme, Fe as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Ie as createThemeTweakerExportArtifact, Ae as defaultAdminUIThemeSelectors, X as defaultThemeProviderSettingsStrings, Je as defaultThemeTweakerFields, Xe as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Ze as deriveAdminUIPalette, et as deriveAdminUITypeScale, Le as downloadAdminUITheme, z as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, Ne as serializeUIProviderConfig };
|
|
2087
2092
|
|
|
2088
2093
|
//# sourceMappingURL=theme-tweaker.js.map
|