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