themelia-react-ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +190 -1
- package/README.md +92 -13
- package/dist/{accordion-BRWh3BM1.js → accordion-BRTcsp8J.js} +8 -8
- package/dist/accordion-BRTcsp8J.js.map +1 -0
- package/dist/{action-menu-Cx3SdfbN.js → action-menu-Drxw_vJk.js} +36 -36
- package/dist/action-menu-Drxw_vJk.js.map +1 -0
- package/dist/affordance-geometry.generated-CL84ZN9A.js +63 -0
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +1 -0
- package/dist/{ai-artifact-DkOArd3-.js → ai-artifact-DLVdK0Py.js} +151 -155
- package/dist/ai-artifact-DLVdK0Py.js.map +1 -0
- package/dist/{app-shell-BH_bGcE2.js → app-shell-C_fKpljx.js} +11 -10
- package/dist/app-shell-C_fKpljx.js.map +1 -0
- package/dist/{attachment-DsLgNHXt.js → attachment-DbjUWsP0.js} +12 -12
- package/dist/{attachment-DsLgNHXt.js.map → attachment-DbjUWsP0.js.map} +1 -1
- package/dist/auth-CAQcasMV.js +723 -0
- package/dist/auth-CAQcasMV.js.map +1 -0
- package/dist/{avatar-CsnWaYmt.js → avatar-Bu2HhitA.js} +76 -71
- package/dist/avatar-Bu2HhitA.js.map +1 -0
- package/dist/{badge-BZXZT9wd.js → badge-CzId1Wlm.js} +4 -4
- package/dist/{badge-BZXZT9wd.js.map → badge-CzId1Wlm.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/buttons.js +3 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +25 -27
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +150 -148
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -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 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +233 -0
- package/dist/base/inline-edit.js.map +1 -0
- 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 +1 -1
- package/dist/base/repeaters.js +33 -33
- 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 +83 -81
- 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 +6 -6
- 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 +134 -134
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +120 -117
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +3 -0
- package/dist/blocks/analytics.js +530 -491
- 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 +395 -383
- 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 +311 -0
- package/dist/blocks/planning.js.map +1 -0
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BuYz5SDU.js} +9 -8
- package/dist/breadcrumbs-BuYz5SDU.js.map +1 -0
- package/dist/button-BZDasD04.js +651 -0
- package/dist/button-BZDasD04.js.map +1 -0
- package/dist/{button-BS6l5JUw.js → button-BZyfTvwm.js} +3 -3
- package/dist/button-BZyfTvwm.js.map +1 -0
- package/dist/buttons-D_6KJvEE.js +99 -0
- package/dist/buttons-D_6KJvEE.js.map +1 -0
- package/dist/{cards-BMB0laLG.js → cards-qGSErLw_.js} +12 -12
- package/dist/{cards-BMB0laLG.js.map → cards-qGSErLw_.js.map} +1 -1
- package/dist/chart-Bsc5BICK.js +150 -0
- package/dist/chart-Bsc5BICK.js.map +1 -0
- package/dist/checkbox-BQNDjUCh.js +34 -0
- package/dist/checkbox-BQNDjUCh.js.map +1 -0
- package/dist/choice-inputs-Mk3iWbhr.js +725 -0
- package/dist/choice-inputs-Mk3iWbhr.js.map +1 -0
- package/dist/{code-block-DIlqzoiD.js → code-block-DzHKRybS.js} +23 -23
- package/dist/code-block-DzHKRybS.js.map +1 -0
- package/dist/{collapsible-DsnktFNv.js → collapsible-ClvC7Bj3.js} +3 -3
- package/dist/{collapsible-DsnktFNv.js.map → collapsible-ClvC7Bj3.js.map} +1 -1
- package/dist/{collection-content-C4fthJV_.js → collection-content-D6S8cv_n.js} +3 -3
- package/dist/{collection-content-C4fthJV_.js.map → collection-content-D6S8cv_n.js.map} +1 -1
- package/dist/{combobox-HDftpzxt.js → combobox-BFnbJJp3.js} +18 -18
- package/dist/combobox-BFnbJJp3.js.map +1 -0
- package/dist/{combobox-CHD750do.js → combobox-hozNwUcc.js} +313 -316
- package/dist/combobox-hozNwUcc.js.map +1 -0
- package/dist/{command-D0kWBZfd.js → command-BnmSchli.js} +9 -9
- package/dist/command-BnmSchli.js.map +1 -0
- package/dist/comments-u5L0OGip.js +1156 -0
- package/dist/comments-u5L0OGip.js.map +1 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +10 -19
- 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 +3 -1
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
- package/dist/components/base/date-pickers/datepicker.types.d.ts +3 -0
- package/dist/components/base/forms/form-field.d.ts +1 -0
- package/dist/components/base/forms/form-sizing.d.ts +3 -3
- package/dist/components/base/inline-edit/index.d.ts +2 -0
- package/dist/components/base/inline-edit/inline-edit.d.ts +81 -0
- package/dist/components/base/inline-edit/inline-edit.recipes.d.ts +6 -0
- 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/structure/structure.recipes.d.ts +6 -0
- 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-trailing-action.d.ts +3 -0
- package/dist/components/blocks/analytics/index.d.ts +1 -0
- package/dist/components/blocks/analytics/types.d.ts +1 -1
- package/dist/components/blocks/analytics/usage-card/index.d.ts +3 -0
- package/dist/components/blocks/analytics/usage-card/types.d.ts +52 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.d.ts +6 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.data.d.ts +19 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +22 -0
- package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
- 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/planning/index.d.ts +3 -0
- package/dist/components/blocks/planning/task-card.d.ts +3 -0
- package/dist/components/blocks/planning/task-card.strings.d.ts +15 -0
- package/dist/components/blocks/planning/task-card.types.d.ts +66 -0
- 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/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/hooks/use-pending-overlay-focus.d.ts +2 -0
- package/dist/components/features/overlays/overlays.types.d.ts +5 -4
- 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/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/page.d.ts +0 -1
- package/dist/components/layout/page/page.types.d.ts +9 -3
- 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/typography/heading.d.ts +5 -2
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/text.styles.d.ts +10 -0
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- 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-CPNyNo1_.js → containers-DqB-bSYE.js} +34 -56
- package/dist/containers-DqB-bSYE.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-BTSByfmq.js} +6 -6
- package/dist/{copyable-B7SBXJMr.js.map → copyable-BTSByfmq.js.map} +1 -1
- package/dist/{data-display-b3d1TfL4.js → data-display-Bihs9Ven.js} +542 -329
- package/dist/data-display-Bihs9Ven.js.map +1 -0
- package/dist/{date-BFNMnrS5.js → date-DOKhJPu7.js} +4 -4
- package/dist/{date-BFNMnrS5.js.map → date-DOKhJPu7.js.map} +1 -1
- package/dist/{date-picker-DI6kPNof.js → date-picker-DzP5HQq7.js} +492 -472
- package/dist/date-picker-DzP5HQq7.js.map +1 -0
- package/dist/date-pickers-BpgGz7S-.js +196 -0
- package/dist/date-pickers-BpgGz7S-.js.map +1 -0
- package/dist/{display-ByI5tkqy.js → display-CS6Hbk18.js} +8 -8
- package/dist/{display-ByI5tkqy.js.map → display-CS6Hbk18.js.map} +1 -1
- package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-D-boNgGO.js} +7 -7
- package/dist/{dropdown-menu-BlnyHr-9.js.map → dropdown-menu-D-boNgGO.js.map} +1 -1
- package/dist/features/activities.js +152 -141
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +182 -179
- 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 +103 -104
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +375 -373
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +222 -224
- 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 +856 -855
- 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 +1210 -1209
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +133 -132
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +29 -31
- 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 +82 -82
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +4 -4
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +456 -450
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-CJkUAapr.js +233 -0
- package/dist/feedback-CJkUAapr.js.map +1 -0
- package/dist/field-affordance-recipes-uKY4MsZ_.js +25 -0
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +1 -0
- package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-DQQpiLWC.js} +3 -3
- package/dist/field-state-recipes-DQQpiLWC.js.map +1 -0
- package/dist/{filters-qtrcv1hf.js → filters-D6FF8L6s.js} +715 -720
- package/dist/filters-D6FF8L6s.js.map +1 -0
- package/dist/{form-field-C6W-y2hR.js → form-field-CZwrkP7m.js} +17 -9
- package/dist/form-field-CZwrkP7m.js.map +1 -0
- package/dist/{form-sizing-39NohSqn.js → form-sizing-QP8aIRaW.js} +10 -6
- package/dist/form-sizing-QP8aIRaW.js.map +1 -0
- package/dist/{forms-BF-HSbff.js → forms-B5NCbkSC.js} +35 -35
- package/dist/{forms-BF-HSbff.js.map → forms-B5NCbkSC.js.map} +1 -1
- package/dist/forms-numeric-Crrm80Lm.js +867 -0
- package/dist/forms-numeric-Crrm80Lm.js.map +1 -0
- package/dist/{header-B8ex54cY.js → header-kxruN3RM.js} +53 -49
- package/dist/header-kxruN3RM.js.map +1 -0
- package/dist/{hooks-D6UBVzf2.js → hooks-BrlnCwQd.js} +2 -2
- package/dist/{hooks-D6UBVzf2.js.map → hooks-BrlnCwQd.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-Btc6pQrp.js} +4 -4
- package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-Btc6pQrp.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-SX9V0AL3.js +255 -0
- package/dist/input-SX9V0AL3.js.map +1 -0
- package/dist/input-vxcaNCYC.js +20 -0
- package/dist/input-vxcaNCYC.js.map +1 -0
- package/dist/{item-pJ0GsOiJ.js → item-DE4YnuJx.js} +18 -17
- package/dist/item-DE4YnuJx.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 +44 -4
- package/dist/lib/control-group-recipes.d.ts +22 -0
- package/dist/lib/field-affordance-recipes.d.ts +35 -2
- package/dist/lib/field-state-recipes.d.ts +2 -2
- package/dist/lib/navigation-row-recipes.d.ts +3 -2
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
- package/dist/lib/surface-recipes.d.ts +5 -2
- package/dist/lib/token-merge.generated.d.ts +144 -2
- package/dist/lib/ui-provider/types.d.ts +4 -2
- package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-Ca4YmvBi.js → media-gallery-DLp3HAz0.js} +75 -74
- package/dist/media-gallery-DLp3HAz0.js.map +1 -0
- package/dist/{mentions-CRio8mTm.js → mentions-Cl0Kt_Pd.js} +52 -50
- package/dist/{mentions-CRio8mTm.js.map → mentions-Cl0Kt_Pd.js.map} +1 -1
- package/dist/message-SZUNB1eX.js +127 -0
- package/dist/message-SZUNB1eX.js.map +1 -0
- package/dist/{navigation-BTrEb5u4.js → navigation-DnQSNMT0.js} +64 -55
- package/dist/navigation-DnQSNMT0.js.map +1 -0
- package/dist/{navigation-DqEITuD2.js → navigation-DyytsLRB.js} +37 -37
- package/dist/navigation-DyytsLRB.js.map +1 -0
- package/dist/{navigation-row-recipes-BFpvGPGE.js → navigation-row-recipes-DQEXQcqY.js} +3 -3
- package/dist/navigation-row-recipes-DQEXQcqY.js.map +1 -0
- package/dist/{number-BNT_BIzJ.js → number-DasMFWEG.js} +4 -4
- package/dist/{number-BNT_BIzJ.js.map → number-DasMFWEG.js.map} +1 -1
- package/dist/overlays-DUbs1KEi.js +1011 -0
- package/dist/overlays-DUbs1KEi.js.map +1 -0
- package/dist/{page-BMBGjJY8.js → page-hGmT4nWK.js} +75 -64
- package/dist/page-hGmT4nWK.js.map +1 -0
- package/dist/{page-header-BH41wCyY.js → page-header-D8nERkn5.js} +9 -9
- package/dist/page-header-D8nERkn5.js.map +1 -0
- package/dist/{pagination-C29vvt3I.js → pagination-NLGqRirf.js} +20 -20
- package/dist/pagination-NLGqRirf.js.map +1 -0
- package/dist/{popover-TInGXsjg.js → popover-CghIYdQf.js} +23 -22
- package/dist/popover-CghIYdQf.js.map +1 -0
- package/dist/{popover-menu-BzqXqE72.js → popover-menu-B4PoWhRl.js} +6 -6
- package/dist/{popover-menu-BzqXqE72.js.map → popover-menu-B4PoWhRl.js.map} +1 -1
- package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-QlD4JenO.js} +5 -5
- package/dist/popover.recipes-QlD4JenO.js.map +1 -0
- package/dist/{primitives-DKPOGVpj.js → primitives-C7ff0QaI.js} +120 -113
- package/dist/primitives-C7ff0QaI.js.map +1 -0
- package/dist/primitives.js +3 -3
- package/dist/progress-BroqrAyV.js +169 -0
- package/dist/progress-BroqrAyV.js.map +1 -0
- package/dist/{receipt-DYWTQGEc.js → receipt-BuJynLgf.js} +8 -8
- package/dist/{receipt-DYWTQGEc.js.map → receipt-BuJynLgf.js.map} +1 -1
- package/dist/{rich-text-B7sBAdDG.js → rich-text-DlxDOtf4.js} +4 -4
- package/dist/{rich-text-B7sBAdDG.js.map → rich-text-DlxDOtf4.js.map} +1 -1
- package/dist/rich-text-editor-BKyG7rWz.js +574 -0
- package/dist/rich-text-editor-BKyG7rWz.js.map +1 -0
- package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-B72Nfuze.js} +35 -26
- package/dist/rich-text-editor.recipes-B72Nfuze.js.map +1 -0
- package/dist/{scroll-area-BheMQ270.js → scroll-area-D-pIhEKl.js} +3 -3
- package/dist/scroll-area-D-pIhEKl.js.map +1 -0
- package/dist/{separator-Gk_WXH-l.js → separator-BNIgG3au.js} +3 -3
- package/dist/{separator-Gk_WXH-l.js.map → separator-BNIgG3au.js.map} +1 -1
- package/dist/{separator-DO0EbCEm.js → separator-BhtFyo4x.js} +2 -2
- package/dist/{separator-DO0EbCEm.js.map → separator-BhtFyo4x.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-D9f_wdIC.js → settings-DOTOzeZ2.js} +10 -9
- package/dist/{settings-D9f_wdIC.js.map → settings-DOTOzeZ2.js.map} +1 -1
- package/dist/{sheet-vOUloJ4O.js → sheet-BFhrNehm.js} +11 -11
- package/dist/sheet-BFhrNehm.js.map +1 -0
- package/dist/{sidebar-CNBKFDRW.js → sidebar-CyR4XKwR.js} +219 -200
- package/dist/sidebar-CyR4XKwR.js.map +1 -0
- package/dist/{sidebar-C3UKkbC5.js → sidebar-SvGJ0Zwi.js} +63 -58
- package/dist/sidebar-SvGJ0Zwi.js.map +1 -0
- package/dist/{skeleton-BvRhK8y-.js → skeleton-3F0uhYn3.js} +4 -4
- package/dist/{skeleton-BvRhK8y-.js.map → skeleton-3F0uhYn3.js.map} +1 -1
- package/dist/{smart-card-B5FcKODh.js → smart-card-DjGVV2xr.js} +206 -199
- package/dist/smart-card-DjGVV2xr.js.map +1 -0
- package/dist/{spinner-JtlFJ7Nc.js → spinner-Cpf7oRkF.js} +5 -5
- package/dist/{spinner-JtlFJ7Nc.js.map → spinner-Cpf7oRkF.js.map} +1 -1
- package/dist/{structure-BvW4vG4H.js → structure-CRdqVawd.js} +14 -14
- package/dist/{structure-BvW4vG4H.js.map → structure-CRdqVawd.js.map} +1 -1
- package/dist/{structure.recipes-DjqnBpwz.js → structure.recipes-Bqhf9oIh.js} +2 -2
- package/dist/structure.recipes-Bqhf9oIh.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-CQfRr-VL.js → surface-recipes-Dd__PD-w.js} +4 -3
- package/dist/surface-recipes-Dd__PD-w.js.map +1 -0
- package/dist/{table-DnlAJ-xR.js → table-CLtJTxoR.js} +17 -16
- package/dist/table-CLtJTxoR.js.map +1 -0
- package/dist/table-CcRDZiLP.js +1444 -0
- package/dist/table-CcRDZiLP.js.map +1 -0
- package/dist/tabs-BNgu7g0u.js +188 -0
- package/dist/tabs-BNgu7g0u.js.map +1 -0
- package/dist/text-inputs-DsR56TR-.js +330 -0
- package/dist/text-inputs-DsR56TR-.js.map +1 -0
- package/dist/{text.styles-BwB7vAF2.js → text.styles-Q4sGAIgA.js} +18 -10
- package/dist/text.styles-Q4sGAIgA.js.map +1 -0
- package/dist/theme.css +77 -115
- package/dist/{timelines-CnZ2S_Gr.js → timelines-D1pkt3se.js} +84 -78
- package/dist/timelines-D1pkt3se.js.map +1 -0
- package/dist/{tree-COD9BGdU.js → tree-BtmYyMZV.js} +8 -8
- package/dist/{tree-COD9BGdU.js.map → tree-BtmYyMZV.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-BxQgiZyw.js +96 -0
- package/dist/typography-BxQgiZyw.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-CftIB6TY.js → ui-provider-DRPn3qNl.js} +3 -2
- package/dist/ui-provider-DRPn3qNl.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-DIzw1dx1.js → upload-CDbYw1WN.js} +326 -323
- package/dist/upload-CDbYw1WN.js.map +1 -0
- package/dist/{upload-queue-xRJ3qDmd.js → upload-queue-CNd_hH_a.js} +25 -25
- package/dist/upload-queue-CNd_hH_a.js.map +1 -0
- package/dist/usage-card-VyJLUwRr.js +457 -0
- package/dist/usage-card-VyJLUwRr.js.map +1 -0
- package/dist/utils-BvH9PSmq.js +4275 -0
- package/dist/utils-BvH9PSmq.js.map +1 -0
- package/dist/value-inputs-D0KCrfVC.js +840 -0
- package/dist/value-inputs-D0KCrfVC.js.map +1 -0
- package/dist/{workspace-Cbqz4FzN.js → workspace-CcR8r-Nt.js} +115 -122
- package/dist/workspace-CcR8r-Nt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +112 -18
- package/docs/consumer-skill/examples/analytics.tsx +34 -0
- package/docs/consumer-skill/examples/app-layout.tsx +42 -12
- package/docs/consumer-skill/examples/detail.tsx +24 -9
- package/docs/consumer-skill/examples/manifest.json +27 -1
- package/docs/consumer-skill/examples/planning-usage-edit.tsx +29 -0
- package/docs/consumer-skill/examples/scoped-directory.tsx +77 -0
- 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 +219 -2
- package/docs/consumer-skill/references/design-contract.md +37 -10
- package/docs/consumer-skill/references/discovery.md +93 -5
- package/docs/consumer-skill/references/installation.md +20 -3
- package/docs/consumer-skill/references/integration.md +26 -0
- package/docs/consumer-skill/references/public-api.json +2416 -388
- package/docs/consumer-skill/references/review.md +126 -0
- package/docs/consumer-skill/references/theming.md +52 -7
- package/docs/consumer-skill/references/tokens.json +177 -9
- package/docs/consumer-skill/references/workflows.md +129 -1
- package/docs/consumer-skill/scripts/check-composition.mjs +31 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +317 -0
- package/docs/consumer-skill/scripts/discovery.mjs +65 -8
- package/docs/consumer-skill/scripts/surface-policy.mjs +66 -0
- package/package.json +30 -6
- package/dist/accordion-BRWh3BM1.js.map +0 -1
- package/dist/action-menu-Cx3SdfbN.js.map +0 -1
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js +0 -23
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +0 -1
- package/dist/ai-artifact-DkOArd3-.js.map +0 -1
- package/dist/app-shell-BH_bGcE2.js.map +0 -1
- package/dist/auth-BDB1V_2q.js +0 -704
- package/dist/auth-BDB1V_2q.js.map +0 -1
- package/dist/avatar-CsnWaYmt.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/choice-inputs-CavA-SGV.js +0 -644
- package/dist/choice-inputs-CavA-SGV.js.map +0 -1
- package/dist/code-block-DIlqzoiD.js.map +0 -1
- package/dist/combobox-CHD750do.js.map +0 -1
- package/dist/combobox-HDftpzxt.js.map +0 -1
- package/dist/command-D0kWBZfd.js.map +0 -1
- package/dist/comments-CvYeglMS.js +0 -1132
- package/dist/comments-CvYeglMS.js.map +0 -1
- package/dist/containers-CPNyNo1_.js.map +0 -1
- package/dist/data-display-b3d1TfL4.js.map +0 -1
- package/dist/date-picker-DI6kPNof.js.map +0 -1
- package/dist/date-pickers-ByP6Cv2z.js +0 -224
- package/dist/date-pickers-ByP6Cv2z.js.map +0 -1
- package/dist/feedback-a9j9J-9A.js +0 -391
- package/dist/feedback-a9j9J-9A.js.map +0 -1
- package/dist/field-affordance-recipes-CHdUtn2Z.js +0 -17
- package/dist/field-affordance-recipes-CHdUtn2Z.js.map +0 -1
- package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
- package/dist/filters-qtrcv1hf.js.map +0 -1
- package/dist/form-field-C6W-y2hR.js.map +0 -1
- package/dist/form-sizing-39NohSqn.js.map +0 -1
- package/dist/forms-numeric-Y15Bg5Nr.js +0 -867
- package/dist/forms-numeric-Y15Bg5Nr.js.map +0 -1
- package/dist/header-B8ex54cY.js.map +0 -1
- package/dist/http-CLTVJc5I.js.map +0 -1
- package/dist/input-DMorJiTI.js +0 -202
- package/dist/input-DMorJiTI.js.map +0 -1
- package/dist/input-ci9fIgFH.js +0 -20
- package/dist/input-ci9fIgFH.js.map +0 -1
- package/dist/item-pJ0GsOiJ.js.map +0 -1
- package/dist/media-gallery-Ca4YmvBi.js.map +0 -1
- package/dist/message-B5-6LeYl.js +0 -108
- package/dist/message-B5-6LeYl.js.map +0 -1
- package/dist/navigation-BTrEb5u4.js.map +0 -1
- package/dist/navigation-DqEITuD2.js.map +0 -1
- package/dist/navigation-row-recipes-BFpvGPGE.js.map +0 -1
- package/dist/overlays-DBqV0J_V.js +0 -982
- package/dist/overlays-DBqV0J_V.js.map +0 -1
- package/dist/page-BMBGjJY8.js.map +0 -1
- package/dist/page-header-BH41wCyY.js.map +0 -1
- package/dist/pagination-C29vvt3I.js.map +0 -1
- package/dist/popover-TInGXsjg.js.map +0 -1
- package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
- package/dist/primitives-DKPOGVpj.js.map +0 -1
- package/dist/rich-text-editor-BZSJchAF.js +0 -575
- package/dist/rich-text-editor-BZSJchAF.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/sheet-vOUloJ4O.js.map +0 -1
- package/dist/sidebar-C3UKkbC5.js.map +0 -1
- package/dist/sidebar-CNBKFDRW.js.map +0 -1
- package/dist/smart-card-B5FcKODh.js.map +0 -1
- package/dist/structure.recipes-DjqnBpwz.js.map +0 -1
- package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
- package/dist/table-DnlAJ-xR.js.map +0 -1
- package/dist/table-ghtAQ-JJ.js +0 -1424
- package/dist/table-ghtAQ-JJ.js.map +0 -1
- package/dist/tabs-DY09eoZg.js +0 -187
- package/dist/tabs-DY09eoZg.js.map +0 -1
- package/dist/text-inputs-BhOcedTo.js +0 -331
- package/dist/text-inputs-BhOcedTo.js.map +0 -1
- package/dist/text.styles-BwB7vAF2.js.map +0 -1
- package/dist/timelines-CnZ2S_Gr.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-DIzw1dx1.js.map +0 -1
- package/dist/upload-queue-xRJ3qDmd.js.map +0 -1
- package/dist/utils-C2EKeIw3.js +0 -72
- package/dist/utils-C2EKeIw3.js.map +0 -1
- package/dist/value-inputs-Co1fu-xv.js +0 -824
- package/dist/value-inputs-Co1fu-xv.js.map +0 -1
- package/dist/workspace-Cbqz4FzN.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-DRPn3qNl.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
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { d as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { i 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
|
|
6
|
+
import { t as s } from "../utils-BvH9PSmq.js";
|
|
7
|
+
import { a as c, i as l } from "../typography-BxQgiZyw.js";
|
|
8
|
+
import { t as u } from "../button-BZDasD04.js";
|
|
9
|
+
import { r as d, t as f } from "../structure-CRdqVawd.js";
|
|
10
|
+
import { _ as p, g as m, h as ee, p as te, t as ne, v as re } from "../smart-card-DjGVV2xr.js";
|
|
11
|
+
import { i as ie, l as ae, r as oe } from "../overlays-DUbs1KEi.js";
|
|
12
|
+
import { m as se } from "../primitives-C7ff0QaI.js";
|
|
13
|
+
import { t as ce } from "../accordion-BRTcsp8J.js";
|
|
14
|
+
import { t as h } from "../badge-CzId1Wlm.js";
|
|
15
|
+
import { t as g } from "../input-SX9V0AL3.js";
|
|
16
|
+
import { d as le } from "../text-inputs-DsR56TR-.js";
|
|
17
|
+
import { a as _, c as v } from "../choice-inputs-Mk3iWbhr.js";
|
|
18
|
+
import { t as y } from "../form-field-CZwrkP7m.js";
|
|
19
|
+
import { i as ue, n as de } from "../value-inputs-D0KCrfVC.js";
|
|
20
|
+
import { d as fe } from "../forms-numeric-Crrm80Lm.js";
|
|
21
|
+
import { t as pe } from "../item-DE4YnuJx.js";
|
|
22
|
+
import { i as me, r as he, t as ge } from "../tabs-BNgu7g0u.js";
|
|
23
|
+
import { forwardRef as b, useEffect as _e, useId as x, useImperativeHandle as ve, useMemo as S, useRef as ye, useState as C } from "react";
|
|
24
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
25
|
+
import { CheckCircle2 as be, Copy as E, Download as xe, Info as Se, LayoutGrid as Ce, Moon as we, Palette as D, RotateCcw as Te, Search as Ee, Settings2 as De, Shapes as Oe, ShieldCheck as O, Sun as ke, Type as Ae } from "lucide-react";
|
|
26
26
|
//#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
|
|
27
|
-
var
|
|
27
|
+
var je = {
|
|
28
28
|
shared: ":root",
|
|
29
29
|
light: ":root,\n.light",
|
|
30
30
|
dark: ".dark"
|
|
31
|
-
},
|
|
32
|
-
function
|
|
31
|
+
}, k = /^--[a-z][a-z0-9-]*$/i, Me = /[;{}]/, Ne = /[;{}]/;
|
|
32
|
+
function A(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 j(e) {
|
|
41
|
+
return k.test(e);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function M(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 (!j(e)) {
|
|
46
46
|
if (!t) return [];
|
|
47
47
|
throw TypeError(`Invalid CSS variable name: ${e}`);
|
|
48
48
|
}
|
|
@@ -50,121 +50,121 @@ 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 (Me.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 N(e, t) {
|
|
61
61
|
let n = e.trim();
|
|
62
|
-
if (n.length === 0 ||
|
|
62
|
+
if (n.length === 0 || Ne.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
|
|
63
63
|
return n;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
let n =
|
|
65
|
+
function P(e, t) {
|
|
66
|
+
let n = M(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 F(e, t = {}) {
|
|
74
|
+
let n = t.selectors ?? je, r = [
|
|
75
|
+
P(N(n.shared, "shared"), e.shared),
|
|
76
|
+
P(N(n.light, "light"), e.light),
|
|
77
|
+
P(N(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 I(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 L(e = {}) {
|
|
89
|
+
let t = I(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 Pe(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 R(e, t = e.mode) {
|
|
99
|
+
return Object.fromEntries(M(Pe(e, t), !1));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function Fe(e) {
|
|
102
|
+
return M(e.shared, !1).length + M(e.light, !1).length + M(e.dark, !1).length;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
let t =
|
|
104
|
+
function Ie(e) {
|
|
105
|
+
let t = N(e, "shared");
|
|
106
106
|
return {
|
|
107
107
|
shared: t,
|
|
108
108
|
light: `${t},\n${t}.light,\n.light ${t}`,
|
|
109
109
|
dark: `${t}.dark,\n.dark ${t}`
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
let i =
|
|
112
|
+
function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
113
|
+
let i = A(r.resolvedTheme ?? e), a = I(r.providerConfig);
|
|
114
114
|
return {
|
|
115
115
|
fileName: t,
|
|
116
|
-
cssText:
|
|
116
|
+
cssText: F(i, {
|
|
117
117
|
...n,
|
|
118
118
|
banner: n.banner ?? "themelia-react-ui complete theme"
|
|
119
119
|
}),
|
|
120
|
-
overrideCssText:
|
|
121
|
-
theme:
|
|
120
|
+
overrideCssText: F(e, n),
|
|
121
|
+
theme: A(e),
|
|
122
122
|
resolvedTheme: i,
|
|
123
|
-
overrideCount:
|
|
123
|
+
overrideCount: Fe(e),
|
|
124
124
|
providerFileName: r.providerFileName ?? "admin-ui.config.ts",
|
|
125
125
|
providerConfig: a,
|
|
126
|
-
providerConfigText:
|
|
126
|
+
providerConfigText: L(a)
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Re(e) {
|
|
130
|
+
ze({
|
|
131
131
|
fileName: e.fileName,
|
|
132
132
|
text: e.cssText,
|
|
133
133
|
mimeType: "text/css;charset=utf-8"
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ze({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
|
|
137
137
|
if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
|
|
138
138
|
let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
139
139
|
a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/components/features/theme-tweaker/theme-scope.tsx
|
|
143
|
-
var
|
|
144
|
-
return /* @__PURE__ */
|
|
143
|
+
var z = b(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
|
|
144
|
+
return /* @__PURE__ */ w(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
|
+
...R(e, t),
|
|
151
151
|
...r
|
|
152
152
|
},
|
|
153
153
|
children: a
|
|
154
154
|
});
|
|
155
155
|
});
|
|
156
|
-
|
|
156
|
+
z.displayName = "ThemeScope";
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region src/components/features/theme-tweaker/use-applied-theme.ts
|
|
159
|
-
function
|
|
159
|
+
function Be(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
|
-
function
|
|
163
|
-
|
|
162
|
+
function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
163
|
+
_e(() => {
|
|
164
164
|
if (!e || r === "self") return;
|
|
165
|
-
let a =
|
|
165
|
+
let a = Be(r, n);
|
|
166
166
|
if (!a) return;
|
|
167
|
-
let o =
|
|
167
|
+
let o = R(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,22 +188,22 @@ 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
|
|
192
|
-
let f =
|
|
193
|
-
|
|
194
|
-
let p =
|
|
191
|
+
var B = b(function({ config: n, theme: r, mode: i = r.mode, target: a = "document", manageModeClass: o = !0, className: c, children: l, ...u }, d) {
|
|
192
|
+
let f = ye(null);
|
|
193
|
+
ve(d, () => f.current);
|
|
194
|
+
let p = S(() => A({
|
|
195
195
|
...r,
|
|
196
196
|
mode: i
|
|
197
|
-
}), [i, r]), m =
|
|
198
|
-
return
|
|
197
|
+
}), [i, r]), m = S(() => e(n), [n]);
|
|
198
|
+
return Ve({
|
|
199
199
|
apply: a === "document",
|
|
200
200
|
manageModeClass: o,
|
|
201
201
|
selfRef: f,
|
|
202
202
|
target: a,
|
|
203
203
|
theme: p
|
|
204
|
-
}), /* @__PURE__ */
|
|
204
|
+
}), /* @__PURE__ */ w(t, {
|
|
205
205
|
config: m,
|
|
206
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ w(z, {
|
|
207
207
|
...u,
|
|
208
208
|
ref: f,
|
|
209
209
|
theme: p,
|
|
@@ -213,10 +213,10 @@ var Be = C(function({ config: n, theme: r, mode: i = r.mode, target: a = "docume
|
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
});
|
|
216
|
-
|
|
216
|
+
B.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("."), He = [
|
|
220
220
|
"--success",
|
|
221
221
|
"--success-foreground",
|
|
222
222
|
"--info",
|
|
@@ -235,12 +235,12 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
235
235
|
"--inverse-surface-strong",
|
|
236
236
|
"--inverse-border",
|
|
237
237
|
"--inverse-decoration"
|
|
238
|
-
],
|
|
238
|
+
], Ue = ["--overlay-backdrop"], We = [
|
|
239
239
|
"--font-heading",
|
|
240
240
|
"--font-sans",
|
|
241
241
|
"--font-serif",
|
|
242
242
|
"--font-mono"
|
|
243
|
-
],
|
|
243
|
+
], H = [
|
|
244
244
|
"xxs",
|
|
245
245
|
"xs",
|
|
246
246
|
"pxs",
|
|
@@ -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`]), Ge = [
|
|
260
260
|
"--shadow-2xs",
|
|
261
261
|
"--shadow-xs",
|
|
262
262
|
"--shadow-sm",
|
|
@@ -265,7 +265,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
265
265
|
"--shadow-lg",
|
|
266
266
|
"--shadow-xl",
|
|
267
267
|
"--shadow-2xl"
|
|
268
|
-
],
|
|
268
|
+
], U = [
|
|
269
269
|
"--space-scale",
|
|
270
270
|
"--density-scale",
|
|
271
271
|
"--height-action",
|
|
@@ -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
|
+
], W = [
|
|
283
283
|
"--content-width-sm",
|
|
284
284
|
"--content-width-md",
|
|
285
285
|
"--content-width-lg",
|
|
@@ -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.",
|
|
@@ -560,25 +560,25 @@ function q(e, t, n, r, i) {
|
|
|
560
560
|
}));
|
|
561
561
|
}
|
|
562
562
|
var Ye = [
|
|
563
|
-
...q(
|
|
564
|
-
...q(
|
|
565
|
-
...q(
|
|
566
|
-
...q(
|
|
567
|
-
...q(
|
|
568
|
-
...q(
|
|
569
|
-
...q(
|
|
570
|
-
...q(
|
|
571
|
-
...q(
|
|
563
|
+
...q(V.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
|
|
564
|
+
...q(Ue, "colors", "surfaces-content", "shared", "color"),
|
|
565
|
+
...q(V.slice(6, 19), "colors", "brand-actions", "mode", "color"),
|
|
566
|
+
...q(V.slice(19, 24), "colors", "charts", "mode", "color"),
|
|
567
|
+
...q(V.slice(24), "colors", "sidebar", "mode", "color"),
|
|
568
|
+
...q(He.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
|
|
569
|
+
...q(He.slice(7), "states", "inverse-surfaces", "mode", "color"),
|
|
570
|
+
...q(We, "typography", "font-families", "shared", "font"),
|
|
571
|
+
...q(H, "typography", "type-scale", "shared", "length"),
|
|
572
572
|
...q(["--radius"], "shape", "radius", "shared", "length"),
|
|
573
|
-
...q(
|
|
574
|
-
...q(
|
|
575
|
-
...q(
|
|
573
|
+
...q(Ge, "shape", "elevation", "mode", "shadow"),
|
|
574
|
+
...q(U.slice(0, 2), "structure", "global-scales", "shared", "length"),
|
|
575
|
+
...q(U.slice(2, 5), "structure", "actions-controls", "shared", "length"),
|
|
576
576
|
...q(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
|
|
577
|
-
...q(
|
|
578
|
-
...q(
|
|
579
|
-
...q(
|
|
580
|
-
...q(
|
|
581
|
-
...q(
|
|
577
|
+
...q(U.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
|
|
578
|
+
...q(U.slice(9, 11), "structure", "media", "shared", "length"),
|
|
579
|
+
...q(U.slice(11), "structure", "application-shell", "shared", "length"),
|
|
580
|
+
...q(W.slice(0, 5), "structure", "content-widths", "shared", "length"),
|
|
581
|
+
...q(W.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"
|
|
@@ -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)",
|
|
@@ -701,7 +702,7 @@ function Y(e, t) {
|
|
|
701
702
|
}));
|
|
702
703
|
}
|
|
703
704
|
function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
704
|
-
let a =
|
|
705
|
+
let a = I(e), o = Y(n, i), s = [
|
|
705
706
|
"sunday",
|
|
706
707
|
"monday",
|
|
707
708
|
"tuesday",
|
|
@@ -712,7 +713,7 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
712
713
|
].map((e, t) => ({
|
|
713
714
|
value: String(t),
|
|
714
715
|
label: i.options[e]
|
|
715
|
-
})),
|
|
716
|
+
})), l = (e, n, r) => {
|
|
716
717
|
t({
|
|
717
718
|
...a,
|
|
718
719
|
[e]: {
|
|
@@ -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__ */ T(f, {
|
|
725
726
|
gap: "lg",
|
|
726
727
|
className: "theme-tweaker--provider-settings",
|
|
727
728
|
children: [
|
|
728
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ T(f, {
|
|
729
730
|
gap: "normal",
|
|
730
|
-
children: [/* @__PURE__ */
|
|
731
|
+
children: [/* @__PURE__ */ w(c, {
|
|
731
732
|
weight: "semibold",
|
|
732
733
|
children: i.title
|
|
733
|
-
}), /* @__PURE__ */
|
|
734
|
+
}), /* @__PURE__ */ w(c, {
|
|
734
735
|
size: "xs",
|
|
735
736
|
type: "secondary",
|
|
736
737
|
children: i.description
|
|
737
738
|
})]
|
|
738
739
|
}),
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ T(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__ */ w(Se, { "aria-hidden": "true" }),
|
|
746
|
+
/* @__PURE__ */ w(re, { children: i.boundaryTitle }),
|
|
747
|
+
/* @__PURE__ */ w(ee, { children: i.boundaryDescription }),
|
|
748
|
+
/* @__PURE__ */ T(m, { children: [
|
|
749
|
+
/* @__PURE__ */ w(p, {
|
|
749
750
|
label: i.summary.locale,
|
|
750
751
|
value: a.formatting?.locale ?? i.options.default
|
|
751
752
|
}),
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
+
/* @__PURE__ */ w(p, {
|
|
753
754
|
label: i.summary.currency,
|
|
754
755
|
value: a.money?.defaultCurrency ?? i.options.default
|
|
755
756
|
}),
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ w(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__ */ w(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__ */ w(ce, {
|
|
768
769
|
multiple: !0,
|
|
769
770
|
defaultValue: ["regional"],
|
|
770
771
|
variant: "bordered",
|
|
@@ -775,34 +776,34 @@ 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__ */ T("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__ */ w(y, {
|
|
782
783
|
label: i.labels.locale,
|
|
783
|
-
children: /* @__PURE__ */
|
|
784
|
+
children: /* @__PURE__ */ w(g, {
|
|
784
785
|
value: a.formatting?.locale ?? "",
|
|
785
|
-
onChange: (e) =>
|
|
786
|
+
onChange: (e) => l("formatting", "locale", e.target.value)
|
|
786
787
|
})
|
|
787
788
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ w(y, {
|
|
789
790
|
label: i.labels.defaultCurrency,
|
|
790
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ w(g, {
|
|
791
792
|
value: a.money?.defaultCurrency ?? "",
|
|
792
|
-
onChange: (e) =>
|
|
793
|
+
onChange: (e) => l("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
793
794
|
})
|
|
794
795
|
}),
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
+
/* @__PURE__ */ w(y, {
|
|
796
797
|
label: i.labels.displayCurrency,
|
|
797
|
-
children: /* @__PURE__ */
|
|
798
|
+
children: /* @__PURE__ */ w(g, {
|
|
798
799
|
value: a.money?.displayCurrency ?? "",
|
|
799
800
|
placeholder: i.displayCurrencyPlaceholder,
|
|
800
|
-
onChange: (e) =>
|
|
801
|
+
onChange: (e) => l("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
801
802
|
})
|
|
802
803
|
}),
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ w(y, {
|
|
804
805
|
label: i.labels.moneyFormat,
|
|
805
|
-
children: /* @__PURE__ */
|
|
806
|
+
children: /* @__PURE__ */ w(v, {
|
|
806
807
|
value: a.money?.formatMode,
|
|
807
808
|
options: Y([
|
|
808
809
|
"decimal",
|
|
@@ -810,22 +811,22 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
810
811
|
"with_symbol",
|
|
811
812
|
"locale_aware"
|
|
812
813
|
], i),
|
|
813
|
-
onValueChange: (e) =>
|
|
814
|
+
onValueChange: (e) => l("money", "formatMode", e)
|
|
814
815
|
})
|
|
815
816
|
}),
|
|
816
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ w(y, {
|
|
817
818
|
label: i.labels.firstDay,
|
|
818
|
-
children: /* @__PURE__ */
|
|
819
|
+
children: /* @__PURE__ */ w(v, {
|
|
819
820
|
value: String(a.dates?.weekStartsOn ?? 1),
|
|
820
821
|
options: s,
|
|
821
|
-
onValueChange: (e) =>
|
|
822
|
+
onValueChange: (e) => l("dates", "weekStartsOn", Number(e))
|
|
822
823
|
})
|
|
823
824
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ w(y, {
|
|
825
826
|
label: i.labels.dateFormat,
|
|
826
|
-
children: /* @__PURE__ */
|
|
827
|
+
children: /* @__PURE__ */ w(g, {
|
|
827
828
|
value: a.dates?.format ?? "",
|
|
828
|
-
onChange: (e) =>
|
|
829
|
+
onChange: (e) => l("dates", "format", e.target.value)
|
|
829
830
|
})
|
|
830
831
|
})
|
|
831
832
|
]
|
|
@@ -835,12 +836,12 @@ 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__ */ T("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__ */ w(y, {
|
|
842
843
|
label: i.labels.textSize,
|
|
843
|
-
children: /* @__PURE__ */
|
|
844
|
+
children: /* @__PURE__ */ w(v, {
|
|
844
845
|
value: a.typography?.defaultTextSize,
|
|
845
846
|
options: Y([
|
|
846
847
|
"xxs",
|
|
@@ -851,41 +852,41 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
851
852
|
"lg",
|
|
852
853
|
"xl"
|
|
853
854
|
], i),
|
|
854
|
-
onValueChange: (e) =>
|
|
855
|
+
onValueChange: (e) => l("typography", "defaultTextSize", e)
|
|
855
856
|
})
|
|
856
857
|
}),
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ w(y, {
|
|
858
859
|
label: i.labels.commentComposer,
|
|
859
|
-
children: /* @__PURE__ */
|
|
860
|
+
children: /* @__PURE__ */ w(v, {
|
|
860
861
|
value: a.comments?.composerPosition,
|
|
861
862
|
options: Y(["top", "bottom"], i),
|
|
862
|
-
onValueChange: (e) =>
|
|
863
|
+
onValueChange: (e) => l("comments", "composerPosition", e)
|
|
863
864
|
})
|
|
864
865
|
}),
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ w(_, {
|
|
866
867
|
label: i.labels.dualPricing,
|
|
867
868
|
description: i.dualPricingDescription,
|
|
868
869
|
value: a.money?.dualPricingEnabled ?? !1,
|
|
869
|
-
onValueChange: (e) =>
|
|
870
|
+
onValueChange: (e) => l("money", "dualPricingEnabled", e)
|
|
870
871
|
}),
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ w(y, {
|
|
872
873
|
label: i.labels.dualPricingMode,
|
|
873
|
-
children: /* @__PURE__ */
|
|
874
|
+
children: /* @__PURE__ */ w(v, {
|
|
874
875
|
value: a.money?.displayMode,
|
|
875
876
|
options: Y([
|
|
876
877
|
"default_only",
|
|
877
878
|
"dual",
|
|
878
879
|
"dynamic"
|
|
879
880
|
], i),
|
|
880
|
-
onValueChange: (e) =>
|
|
881
|
+
onValueChange: (e) => l("money", "displayMode", e)
|
|
881
882
|
})
|
|
882
883
|
}),
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ w(y, {
|
|
884
885
|
label: i.labels.dualPricingLayout,
|
|
885
|
-
children: /* @__PURE__ */
|
|
886
|
+
children: /* @__PURE__ */ w(v, {
|
|
886
887
|
value: a.money?.dualPricingDisplay,
|
|
887
888
|
options: Y(["inline", "lines"], i),
|
|
888
|
-
onValueChange: (e) =>
|
|
889
|
+
onValueChange: (e) => l("money", "dualPricingDisplay", e)
|
|
889
890
|
})
|
|
890
891
|
})
|
|
891
892
|
]
|
|
@@ -895,85 +896,90 @@ 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__ */ T("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__ */ w(y, {
|
|
902
903
|
label: i.labels.componentScale,
|
|
903
|
-
children: /* @__PURE__ */
|
|
904
|
+
children: /* @__PURE__ */ w(v, {
|
|
904
905
|
value: a.density?.defaultScale,
|
|
905
906
|
options: o,
|
|
906
|
-
onValueChange: (e) =>
|
|
907
|
+
onValueChange: (e) => l("density", "defaultScale", e)
|
|
907
908
|
})
|
|
908
909
|
}),
|
|
909
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ w(y, {
|
|
910
911
|
label: i.labels.itemVariant,
|
|
911
|
-
children: /* @__PURE__ */
|
|
912
|
+
children: /* @__PURE__ */ w(v, {
|
|
912
913
|
value: a.item?.defaultVariant,
|
|
913
914
|
options: Y([
|
|
914
915
|
"default",
|
|
915
916
|
"outline",
|
|
916
917
|
"muted"
|
|
917
918
|
], i),
|
|
918
|
-
onValueChange: (e) =>
|
|
919
|
+
onValueChange: (e) => l("item", "defaultVariant", e)
|
|
919
920
|
})
|
|
920
921
|
}),
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ w(y, {
|
|
922
923
|
label: i.labels.buttonTone,
|
|
923
|
-
children: /* @__PURE__ */
|
|
924
|
+
children: /* @__PURE__ */ w(v, {
|
|
924
925
|
value: a.button?.defaultTone,
|
|
925
926
|
options: Y(r, i),
|
|
926
|
-
onValueChange: (e) =>
|
|
927
|
+
onValueChange: (e) => l("button", "defaultTone", e)
|
|
927
928
|
})
|
|
928
929
|
}),
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
+
/* @__PURE__ */ w(y, {
|
|
930
931
|
label: i.labels.buttonStyle,
|
|
931
|
-
children: /* @__PURE__ */
|
|
932
|
+
children: /* @__PURE__ */ w(v, {
|
|
932
933
|
value: a.button?.defaultButtonStyle,
|
|
933
934
|
options: Y([
|
|
934
935
|
"solid",
|
|
935
936
|
"outline",
|
|
936
937
|
"ghost"
|
|
937
938
|
], i),
|
|
938
|
-
onValueChange: (e) =>
|
|
939
|
+
onValueChange: (e) => l("button", "defaultButtonStyle", e)
|
|
939
940
|
})
|
|
940
941
|
}),
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
+
/* @__PURE__ */ w(y, {
|
|
942
943
|
label: i.labels.badgeTone,
|
|
943
|
-
children: /* @__PURE__ */
|
|
944
|
+
children: /* @__PURE__ */ w(v, {
|
|
944
945
|
value: a.badge?.defaultTone,
|
|
945
946
|
options: Y(r, i),
|
|
946
|
-
onValueChange: (e) =>
|
|
947
|
+
onValueChange: (e) => l("badge", "defaultTone", e)
|
|
947
948
|
})
|
|
948
949
|
}),
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ w(y, {
|
|
950
951
|
label: i.labels.cardSurface,
|
|
951
|
-
children: /* @__PURE__ */
|
|
952
|
+
children: /* @__PURE__ */ w(v, {
|
|
952
953
|
value: a.card?.defaultSurface,
|
|
953
954
|
options: Y([
|
|
954
955
|
"card",
|
|
955
956
|
"flat",
|
|
956
957
|
"framed"
|
|
957
958
|
], i),
|
|
958
|
-
onValueChange: (e) =>
|
|
959
|
+
onValueChange: (e) => l("card", "defaultSurface", e)
|
|
959
960
|
})
|
|
960
961
|
}),
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ w(y, {
|
|
962
963
|
label: i.labels.spinner,
|
|
963
|
-
children: /* @__PURE__ */
|
|
964
|
+
children: /* @__PURE__ */ w(v, {
|
|
964
965
|
value: a.spinner?.defaultVariant,
|
|
965
966
|
options: Y([
|
|
966
967
|
"default",
|
|
967
968
|
"shimmer",
|
|
968
969
|
"progress"
|
|
969
970
|
], i),
|
|
970
|
-
onValueChange: (e) =>
|
|
971
|
+
onValueChange: (e) => l("spinner", "defaultVariant", e)
|
|
971
972
|
})
|
|
972
973
|
}),
|
|
973
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ w(_, {
|
|
974
975
|
label: i.labels.cardDivider,
|
|
975
976
|
value: a.card?.defaultHeaderDivider ?? !1,
|
|
976
|
-
onValueChange: (e) =>
|
|
977
|
+
onValueChange: (e) => l("card", "defaultHeaderDivider", e)
|
|
978
|
+
}),
|
|
979
|
+
/* @__PURE__ */ w(_, {
|
|
980
|
+
label: i.labels.cardFooterDivider ?? J.labels.cardFooterDivider,
|
|
981
|
+
value: a.card?.defaultFooterDivider ?? !1,
|
|
982
|
+
onValueChange: (e) => l("card", "defaultFooterDivider", e)
|
|
977
983
|
})
|
|
978
984
|
]
|
|
979
985
|
})
|
|
@@ -982,12 +988,12 @@ 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__ */ T("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__ */ w(y, {
|
|
989
995
|
label: i.labels.toastPosition,
|
|
990
|
-
children: /* @__PURE__ */
|
|
996
|
+
children: /* @__PURE__ */ w(v, {
|
|
991
997
|
value: a.toast?.position,
|
|
992
998
|
options: Y([
|
|
993
999
|
"top-right",
|
|
@@ -997,50 +1003,50 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
997
1003
|
"bottom-left",
|
|
998
1004
|
"bottom-center"
|
|
999
1005
|
], i),
|
|
1000
|
-
onValueChange: (e) =>
|
|
1006
|
+
onValueChange: (e) => l("toast", "position", e)
|
|
1001
1007
|
})
|
|
1002
1008
|
}),
|
|
1003
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ w(y, {
|
|
1004
1010
|
label: i.labels.toastTheme,
|
|
1005
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ w(v, {
|
|
1006
1012
|
value: a.toast?.theme,
|
|
1007
1013
|
options: Y([
|
|
1008
1014
|
"light",
|
|
1009
1015
|
"dark",
|
|
1010
1016
|
"system"
|
|
1011
1017
|
], i),
|
|
1012
|
-
onValueChange: (e) =>
|
|
1018
|
+
onValueChange: (e) => l("toast", "theme", e)
|
|
1013
1019
|
})
|
|
1014
1020
|
}),
|
|
1015
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ w(y, {
|
|
1016
1022
|
label: i.labels.toastDuration,
|
|
1017
|
-
children: /* @__PURE__ */
|
|
1023
|
+
children: /* @__PURE__ */ w(g, {
|
|
1018
1024
|
type: "number",
|
|
1019
1025
|
min: 1e3,
|
|
1020
1026
|
step: 500,
|
|
1021
1027
|
value: String(a.toast?.duration ?? 5e3),
|
|
1022
|
-
onChange: (e) =>
|
|
1028
|
+
onChange: (e) => l("toast", "duration", Number(e.target.value))
|
|
1023
1029
|
})
|
|
1024
1030
|
}),
|
|
1025
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ w(y, {
|
|
1026
1032
|
label: i.labels.visibleToasts,
|
|
1027
|
-
children: /* @__PURE__ */
|
|
1033
|
+
children: /* @__PURE__ */ w(g, {
|
|
1028
1034
|
type: "number",
|
|
1029
1035
|
min: 1,
|
|
1030
1036
|
max: 10,
|
|
1031
1037
|
value: String(a.toast?.visibleToasts ?? 4),
|
|
1032
|
-
onChange: (e) =>
|
|
1038
|
+
onChange: (e) => l("toast", "visibleToasts", Number(e.target.value))
|
|
1033
1039
|
})
|
|
1034
1040
|
}),
|
|
1035
|
-
/* @__PURE__ */
|
|
1041
|
+
/* @__PURE__ */ w(_, {
|
|
1036
1042
|
label: i.labels.closeButton,
|
|
1037
1043
|
value: a.toast?.closeButton ?? !0,
|
|
1038
|
-
onValueChange: (e) =>
|
|
1044
|
+
onValueChange: (e) => l("toast", "closeButton", e)
|
|
1039
1045
|
}),
|
|
1040
|
-
/* @__PURE__ */
|
|
1046
|
+
/* @__PURE__ */ w(_, {
|
|
1041
1047
|
label: i.labels.richColors,
|
|
1042
1048
|
value: a.toast?.richColors ?? !1,
|
|
1043
|
-
onValueChange: (e) =>
|
|
1049
|
+
onValueChange: (e) => l("toast", "richColors", e)
|
|
1044
1050
|
})
|
|
1045
1051
|
]
|
|
1046
1052
|
})
|
|
@@ -1264,20 +1270,20 @@ var nt = [
|
|
|
1264
1270
|
"structure",
|
|
1265
1271
|
"defaults"
|
|
1266
1272
|
], rt = {
|
|
1267
|
-
colors:
|
|
1268
|
-
states:
|
|
1269
|
-
typography:
|
|
1270
|
-
shape:
|
|
1271
|
-
structure:
|
|
1272
|
-
defaults:
|
|
1273
|
+
colors: D,
|
|
1274
|
+
states: O,
|
|
1275
|
+
typography: Ae,
|
|
1276
|
+
shape: Oe,
|
|
1277
|
+
structure: Ce,
|
|
1278
|
+
defaults: De
|
|
1273
1279
|
};
|
|
1274
1280
|
function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
|
|
1275
|
-
let d =
|
|
1276
|
-
return /* @__PURE__ */
|
|
1277
|
-
render: /* @__PURE__ */
|
|
1281
|
+
let d = x();
|
|
1282
|
+
return /* @__PURE__ */ T(f, {
|
|
1283
|
+
render: /* @__PURE__ */ w("section", { "aria-labelledby": d }),
|
|
1278
1284
|
gap: "md",
|
|
1279
1285
|
className: "theme-tweaker--export-artifact min-w-0",
|
|
1280
|
-
children: [/* @__PURE__ */
|
|
1286
|
+
children: [/* @__PURE__ */ T(f, {
|
|
1281
1287
|
direction: {
|
|
1282
1288
|
base: "vertical",
|
|
1283
1289
|
sm: "horizontal"
|
|
@@ -1289,46 +1295,46 @@ 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__ */ T(f, {
|
|
1293
1299
|
gap: "dense",
|
|
1294
1300
|
className: "min-w-0",
|
|
1295
|
-
children: [/* @__PURE__ */
|
|
1301
|
+
children: [/* @__PURE__ */ w(l, {
|
|
1296
1302
|
id: d,
|
|
1297
1303
|
tag: "h3",
|
|
1298
1304
|
children: e
|
|
1299
|
-
}), /* @__PURE__ */
|
|
1305
|
+
}), /* @__PURE__ */ w(c, {
|
|
1300
1306
|
size: "xs",
|
|
1301
1307
|
type: "secondary",
|
|
1302
1308
|
children: t
|
|
1303
1309
|
})]
|
|
1304
|
-
}), /* @__PURE__ */
|
|
1310
|
+
}), /* @__PURE__ */ T(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__ */ w(u, {
|
|
1311
1317
|
type: "button",
|
|
1312
1318
|
size: "sm",
|
|
1313
1319
|
tone: "secondary",
|
|
1314
1320
|
buttonStyle: "outline",
|
|
1315
|
-
icon:
|
|
1321
|
+
icon: E,
|
|
1316
1322
|
onClick: a,
|
|
1317
1323
|
children: r
|
|
1318
|
-
}), /* @__PURE__ */
|
|
1324
|
+
}), /* @__PURE__ */ w(u, {
|
|
1319
1325
|
type: "button",
|
|
1320
1326
|
size: "sm",
|
|
1321
|
-
icon:
|
|
1327
|
+
icon: xe,
|
|
1322
1328
|
loading: s,
|
|
1323
1329
|
onClick: o,
|
|
1324
1330
|
children: i
|
|
1325
1331
|
})]
|
|
1326
1332
|
})]
|
|
1327
|
-
}), /* @__PURE__ */
|
|
1333
|
+
}), /* @__PURE__ */ w("pre", {
|
|
1328
1334
|
tabIndex: 0,
|
|
1329
1335
|
"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__ */
|
|
1336
|
+
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",
|
|
1337
|
+
children: /* @__PURE__ */ w("code", { children: n })
|
|
1332
1338
|
})]
|
|
1333
1339
|
});
|
|
1334
1340
|
}
|
|
@@ -1344,20 +1350,20 @@ function ot(e, t) {
|
|
|
1344
1350
|
return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
|
|
1345
1351
|
}
|
|
1346
1352
|
function st(e, t) {
|
|
1347
|
-
if (typeof document > "u" || typeof window > "u") return
|
|
1353
|
+
if (typeof document > "u" || typeof window > "u") return A(e);
|
|
1348
1354
|
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
1355
|
value: n.style.getPropertyValue(e),
|
|
1350
1356
|
priority: n.style.getPropertyPriority(e)
|
|
1351
1357
|
}])), s = (t) => {
|
|
1352
1358
|
for (let e of r) n.style.removeProperty(e);
|
|
1353
1359
|
n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
|
|
1354
|
-
for (let [r, i] of Object.entries(
|
|
1360
|
+
for (let [r, i] of Object.entries(R(e, t))) typeof i == "string" && n.style.setProperty(r, i);
|
|
1355
1361
|
let i = window.getComputedStyle(n);
|
|
1356
1362
|
return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter((e) => e[1].length > 0));
|
|
1357
1363
|
};
|
|
1358
1364
|
try {
|
|
1359
1365
|
let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
|
|
1360
|
-
return
|
|
1366
|
+
return A({
|
|
1361
1367
|
mode: e.mode,
|
|
1362
1368
|
shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
|
|
1363
1369
|
light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
|
|
@@ -1372,29 +1378,29 @@ function st(e, t) {
|
|
|
1372
1378
|
}
|
|
1373
1379
|
}
|
|
1374
1380
|
function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
|
|
1375
|
-
let s = `theme-variable-${
|
|
1381
|
+
let s = `theme-variable-${x().replace(/:/g, "")}`, l = /* @__PURE__ */ w(u, {
|
|
1376
1382
|
type: "button",
|
|
1377
1383
|
iconOnly: !0,
|
|
1378
1384
|
tone: "secondary",
|
|
1379
1385
|
buttonStyle: "ghost",
|
|
1380
|
-
icon:
|
|
1386
|
+
icon: Te,
|
|
1381
1387
|
withTooltip: o.resetVariable,
|
|
1382
1388
|
"aria-label": `${o.resetVariable}: ${e.label}`,
|
|
1383
1389
|
disabled: !t,
|
|
1384
1390
|
onClick: i,
|
|
1385
|
-
children: /* @__PURE__ */
|
|
1391
|
+
children: /* @__PURE__ */ w(c, {
|
|
1386
1392
|
tag: "span",
|
|
1387
1393
|
size: "inherit",
|
|
1388
1394
|
className: "sr-only",
|
|
1389
1395
|
children: o.resetVariable
|
|
1390
1396
|
})
|
|
1391
1397
|
}), d = e.placeholder ?? n ?? o.inheritValue, p;
|
|
1392
|
-
if (e.kind === "color") p = /* @__PURE__ */
|
|
1398
|
+
if (e.kind === "color") p = /* @__PURE__ */ T(f, {
|
|
1393
1399
|
direction: "horizontal",
|
|
1394
1400
|
gap: "xs",
|
|
1395
1401
|
align: "center",
|
|
1396
1402
|
wrap: !1,
|
|
1397
|
-
children: [/* @__PURE__ */
|
|
1403
|
+
children: [/* @__PURE__ */ w(ue, {
|
|
1398
1404
|
id: s,
|
|
1399
1405
|
"aria-label": e.label,
|
|
1400
1406
|
"aria-description": e.description,
|
|
@@ -1404,13 +1410,13 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1404
1410
|
onValueChange: r,
|
|
1405
1411
|
placeholder: d,
|
|
1406
1412
|
className: "min-w-0 flex-1"
|
|
1407
|
-
}),
|
|
1413
|
+
}), l]
|
|
1408
1414
|
});
|
|
1409
1415
|
else if (e.control?.type === "range") {
|
|
1410
1416
|
let i = $(t || n, e.control);
|
|
1411
|
-
p = /* @__PURE__ */
|
|
1417
|
+
p = /* @__PURE__ */ T(f, {
|
|
1412
1418
|
gap: "sm",
|
|
1413
|
-
children: [/* @__PURE__ */
|
|
1419
|
+
children: [/* @__PURE__ */ w(de, {
|
|
1414
1420
|
id: `${s}-slider`,
|
|
1415
1421
|
"aria-label": a(o.adjustVariable, { label: e.label }),
|
|
1416
1422
|
value: i,
|
|
@@ -1418,15 +1424,15 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1418
1424
|
max: e.control.max,
|
|
1419
1425
|
step: e.control.step,
|
|
1420
1426
|
onValueChange: (t) => r(at(t, e.control))
|
|
1421
|
-
}), /* @__PURE__ */
|
|
1427
|
+
}), /* @__PURE__ */ T(f, {
|
|
1422
1428
|
direction: "horizontal",
|
|
1423
1429
|
gap: "xs",
|
|
1424
1430
|
align: "center",
|
|
1425
1431
|
wrap: !1,
|
|
1426
|
-
children: [/* @__PURE__ */
|
|
1432
|
+
children: [/* @__PURE__ */ w(f, {
|
|
1427
1433
|
gap: "none",
|
|
1428
1434
|
className: "w-28 max-w-full shrink-0",
|
|
1429
|
-
children: /* @__PURE__ */
|
|
1435
|
+
children: /* @__PURE__ */ w(fe, {
|
|
1430
1436
|
id: s,
|
|
1431
1437
|
"aria-label": e.label,
|
|
1432
1438
|
"aria-description": e.description,
|
|
@@ -1443,17 +1449,17 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1443
1449
|
},
|
|
1444
1450
|
className: "font-mono tabular-nums"
|
|
1445
1451
|
})
|
|
1446
|
-
}),
|
|
1452
|
+
}), l]
|
|
1447
1453
|
})]
|
|
1448
1454
|
});
|
|
1449
|
-
} else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */
|
|
1455
|
+
} else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ T(f, {
|
|
1450
1456
|
direction: "horizontal",
|
|
1451
1457
|
gap: "xs",
|
|
1452
1458
|
align: "start",
|
|
1453
1459
|
wrap: !1,
|
|
1454
|
-
children: [/* @__PURE__ */
|
|
1460
|
+
children: [/* @__PURE__ */ w(f, {
|
|
1455
1461
|
className: "min-w-0 flex-1",
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1462
|
+
children: /* @__PURE__ */ w(le, {
|
|
1457
1463
|
id: s,
|
|
1458
1464
|
"aria-label": e.label,
|
|
1459
1465
|
"aria-description": e.description,
|
|
@@ -1464,13 +1470,13 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1464
1470
|
autoResize: !0,
|
|
1465
1471
|
className: "font-mono"
|
|
1466
1472
|
})
|
|
1467
|
-
}),
|
|
1468
|
-
}) : /* @__PURE__ */
|
|
1473
|
+
}), l]
|
|
1474
|
+
}) : /* @__PURE__ */ T(f, {
|
|
1469
1475
|
direction: "horizontal",
|
|
1470
1476
|
gap: "xs",
|
|
1471
1477
|
align: "center",
|
|
1472
1478
|
wrap: !1,
|
|
1473
|
-
children: [/* @__PURE__ */
|
|
1479
|
+
children: [/* @__PURE__ */ w(g, {
|
|
1474
1480
|
id: s,
|
|
1475
1481
|
"aria-label": e.label,
|
|
1476
1482
|
"aria-description": e.description,
|
|
@@ -1478,24 +1484,24 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1478
1484
|
onChange: (e) => r(e.target.value),
|
|
1479
1485
|
placeholder: d,
|
|
1480
1486
|
className: "min-w-0 flex-1 font-mono"
|
|
1481
|
-
}),
|
|
1487
|
+
}), l]
|
|
1482
1488
|
});
|
|
1483
|
-
return /* @__PURE__ */
|
|
1484
|
-
label: /* @__PURE__ */
|
|
1485
|
-
render: /* @__PURE__ */
|
|
1489
|
+
return /* @__PURE__ */ w(y, {
|
|
1490
|
+
label: /* @__PURE__ */ T(f, {
|
|
1491
|
+
render: /* @__PURE__ */ w("span", {}),
|
|
1486
1492
|
direction: "horizontal",
|
|
1487
1493
|
gap: "sm",
|
|
1488
1494
|
align: "baseline",
|
|
1489
1495
|
justify: "between",
|
|
1490
1496
|
wrap: !0,
|
|
1491
1497
|
className: "min-w-0 flex-1",
|
|
1492
|
-
children: [/* @__PURE__ */
|
|
1498
|
+
children: [/* @__PURE__ */ w(c, {
|
|
1493
1499
|
tag: "span",
|
|
1494
1500
|
size: "inherit",
|
|
1495
1501
|
weight: "medium",
|
|
1496
1502
|
className: "min-w-0",
|
|
1497
1503
|
children: e.label
|
|
1498
|
-
}), /* @__PURE__ */
|
|
1504
|
+
}), /* @__PURE__ */ w(se, {
|
|
1499
1505
|
size: "xs",
|
|
1500
1506
|
type: "secondary",
|
|
1501
1507
|
weight: "regular",
|
|
@@ -1509,48 +1515,48 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1509
1515
|
});
|
|
1510
1516
|
}
|
|
1511
1517
|
function lt({ strings: e }) {
|
|
1512
|
-
return /* @__PURE__ */
|
|
1518
|
+
return /* @__PURE__ */ w(ne, {
|
|
1513
1519
|
title: e.previewTitle,
|
|
1514
1520
|
description: e.previewDescription,
|
|
1515
|
-
icon: /* @__PURE__ */
|
|
1521
|
+
icon: /* @__PURE__ */ w(D, {}),
|
|
1516
1522
|
headerDivider: !0,
|
|
1517
1523
|
className: "theme-tweaker--preview-card",
|
|
1518
|
-
children: /* @__PURE__ */
|
|
1524
|
+
children: /* @__PURE__ */ T(f, {
|
|
1519
1525
|
gap: "lg",
|
|
1520
1526
|
children: [
|
|
1521
|
-
/* @__PURE__ */
|
|
1527
|
+
/* @__PURE__ */ T(f, {
|
|
1522
1528
|
direction: "horizontal",
|
|
1523
1529
|
gap: "sm",
|
|
1524
1530
|
wrap: !0,
|
|
1525
1531
|
children: [
|
|
1526
|
-
/* @__PURE__ */
|
|
1532
|
+
/* @__PURE__ */ w(h, {
|
|
1527
1533
|
tone: "success",
|
|
1528
1534
|
children: e.previewSuccess
|
|
1529
1535
|
}),
|
|
1530
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ w(h, {
|
|
1531
1537
|
tone: "warning",
|
|
1532
1538
|
children: e.previewWarning
|
|
1533
1539
|
}),
|
|
1534
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ w(h, {
|
|
1535
1541
|
tone: "secondary",
|
|
1536
1542
|
children: e.previewContract
|
|
1537
1543
|
})
|
|
1538
1544
|
]
|
|
1539
1545
|
}),
|
|
1540
|
-
/* @__PURE__ */
|
|
1546
|
+
/* @__PURE__ */ w(pe, {
|
|
1541
1547
|
variant: "muted",
|
|
1542
1548
|
padding: "default",
|
|
1543
|
-
media: /* @__PURE__ */
|
|
1549
|
+
media: /* @__PURE__ */ w(D, {}),
|
|
1544
1550
|
mediaVariant: "icon",
|
|
1545
1551
|
title: e.previewItemTitle,
|
|
1546
1552
|
description: e.previewItemDescription,
|
|
1547
|
-
trailing: /* @__PURE__ */
|
|
1553
|
+
trailing: /* @__PURE__ */ w(be, { className: "size-icon text-success" })
|
|
1548
1554
|
}),
|
|
1549
|
-
/* @__PURE__ */
|
|
1555
|
+
/* @__PURE__ */ w(y, {
|
|
1550
1556
|
label: e.previewFieldLabel,
|
|
1551
|
-
children: /* @__PURE__ */
|
|
1557
|
+
children: /* @__PURE__ */ w(g, { placeholder: e.previewFieldPlaceholder })
|
|
1552
1558
|
}),
|
|
1553
|
-
/* @__PURE__ */
|
|
1559
|
+
/* @__PURE__ */ w(u, {
|
|
1554
1560
|
type: "button",
|
|
1555
1561
|
children: e.previewAction
|
|
1556
1562
|
})
|
|
@@ -1565,53 +1571,53 @@ function ut(e, t, n) {
|
|
|
1565
1571
|
[r]: i
|
|
1566
1572
|
};
|
|
1567
1573
|
}
|
|
1568
|
-
var dt =
|
|
1569
|
-
let
|
|
1570
|
-
|
|
1574
|
+
var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: p = "self", apply: m = !0, manageModeClass: ee = !0, preview: te, fileName: re = "admin-ui-theme.css", config: se, defaultConfig: le, onConfigChange: v, providerFileName: ue = "admin-ui.config.ts", showIntro: fe = !0, selectors: pe, onExport: b, onCopy: x, onReset: be, onError: E, actionsSlot: Se, strings: Ce, className: D, ...De }, Oe) {
|
|
1575
|
+
let O = o(Ze, Ce), [Ae, je] = C(() => A(t)), k = S(() => e ? A(e) : Ae, [Ae, e]), [Me, Ne] = C(() => I(le)), j = S(() => I(se ?? Me), [se, Me]), [M, N] = C("colors"), [P, F] = C(""), [L, Pe] = C(!0), [Ie, Be] = C(16), [B, V] = C(1.2), [He, Ue] = C(.8), [We, H] = C("idle"), Ge = ie(), [U, W] = C(!1), G = ye(null);
|
|
1576
|
+
ve(Oe, () => G.current), Ve({
|
|
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, Ke] =
|
|
1578
|
-
|
|
1583
|
+
let [K, Ke] = C(() => A(k)), [qe, Je] = C({});
|
|
1584
|
+
_e(() => {
|
|
1579
1585
|
if (typeof window > "u") return;
|
|
1580
1586
|
let e = window.setTimeout(() => {
|
|
1581
1587
|
let e = ot(p, G.current);
|
|
1582
1588
|
if (!e) return;
|
|
1583
1589
|
let t = window.getComputedStyle(e);
|
|
1584
|
-
Je(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ke(st(
|
|
1590
|
+
Je(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ke(st(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 } = S(() => {
|
|
1594
1600
|
try {
|
|
1595
|
-
let e =
|
|
1596
|
-
mode:
|
|
1601
|
+
let e = A({
|
|
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:
|
|
1617
|
+
artifact: Le(k, re, { selectors: pe }, {
|
|
1612
1618
|
resolvedTheme: e,
|
|
1613
|
-
providerConfig:
|
|
1614
|
-
providerFileName:
|
|
1619
|
+
providerConfig: j,
|
|
1620
|
+
providerFileName: ue
|
|
1615
1621
|
}),
|
|
1616
1622
|
error: null
|
|
1617
1623
|
};
|
|
@@ -1622,21 +1628,21 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1622
1628
|
};
|
|
1623
1629
|
}
|
|
1624
1630
|
}, [
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
ce,
|
|
1628
|
-
K,
|
|
1631
|
+
re,
|
|
1632
|
+
j,
|
|
1629
1633
|
ue,
|
|
1630
|
-
|
|
1631
|
-
|
|
1634
|
+
K,
|
|
1635
|
+
pe,
|
|
1636
|
+
k
|
|
1637
|
+
]), Y = q?.cssText ?? `/* ${O.invalidTheme} */\n`, X = S(() => Fe(k), [k]), Z = P.trim().toLowerCase(), $e = S(() => 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 = S(() => {
|
|
1640
1646
|
let e = /* @__PURE__ */ new Map();
|
|
1641
1647
|
for (let t of $e) {
|
|
1642
1648
|
let n = `${t.group}:${t.section}`, r = e.get(n);
|
|
@@ -1648,298 +1654,298 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1648
1654
|
}
|
|
1649
1655
|
return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
|
|
1650
1656
|
}, [$e]), $ = (t) => {
|
|
1651
|
-
e === void 0 &&
|
|
1657
|
+
e === void 0 && je(t), n?.(t), H("idle");
|
|
1652
1658
|
}, at = (e) => {
|
|
1653
|
-
|
|
1659
|
+
se === void 0 && Ne(e), v?.(e), H("idle");
|
|
1654
1660
|
}, dt = (e) => {
|
|
1655
1661
|
$({
|
|
1656
|
-
...
|
|
1657
|
-
[
|
|
1658
|
-
...
|
|
1662
|
+
...k,
|
|
1663
|
+
[k.mode]: {
|
|
1664
|
+
...k[k.mode],
|
|
1659
1665
|
...e
|
|
1660
1666
|
}
|
|
1661
1667
|
});
|
|
1662
1668
|
}, ft = (e) => {
|
|
1663
1669
|
$({
|
|
1664
|
-
...
|
|
1670
|
+
...k,
|
|
1665
1671
|
shared: {
|
|
1666
|
-
...
|
|
1672
|
+
...k.shared,
|
|
1667
1673
|
...e
|
|
1668
1674
|
}
|
|
1669
1675
|
});
|
|
1670
1676
|
}, pt = (e) => {
|
|
1671
|
-
e !==
|
|
1672
|
-
...
|
|
1677
|
+
e !== k.mode && ($({
|
|
1678
|
+
...k,
|
|
1673
1679
|
mode: e
|
|
1674
1680
|
}), r?.(e));
|
|
1675
1681
|
}, mt = async () => {
|
|
1676
1682
|
try {
|
|
1677
1683
|
if (J) throw J;
|
|
1678
|
-
if (
|
|
1679
|
-
|
|
1684
|
+
if (W(!0), !q) throw Error(O.invalidTheme);
|
|
1685
|
+
b ? await b(q) : Re(q), H("exported");
|
|
1680
1686
|
} catch (e) {
|
|
1681
|
-
|
|
1687
|
+
E?.(e);
|
|
1682
1688
|
} finally {
|
|
1683
|
-
|
|
1689
|
+
W(!1);
|
|
1684
1690
|
}
|
|
1685
1691
|
}, ht = async (e) => {
|
|
1686
1692
|
try {
|
|
1687
|
-
if (
|
|
1693
|
+
if (x) await x(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
|
+
E?.(e);
|
|
1693
1699
|
}
|
|
1694
1700
|
}, gt = () => {
|
|
1695
1701
|
try {
|
|
1696
|
-
if (!q) throw J ?? Error(
|
|
1697
|
-
|
|
1702
|
+
if (!q) throw J ?? Error(O.invalidTheme);
|
|
1703
|
+
ze({
|
|
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
|
+
E?.(e);
|
|
1704
1710
|
}
|
|
1705
1711
|
}, _t = () => {
|
|
1706
|
-
let e =
|
|
1707
|
-
$(t),
|
|
1708
|
-
}, vt = J ?
|
|
1712
|
+
let e = k, t = A({ mode: k.mode });
|
|
1713
|
+
$(t), be?.(e), H("idle");
|
|
1714
|
+
}, vt = J ? O.invalidTheme : We === "copied" ? O.copiedStatus : We === "exported" ? O.exportedStatus : null, yt = M === "colors" ? /* @__PURE__ */ w(_, {
|
|
1709
1715
|
className: "theme-tweaker--recipe",
|
|
1710
|
-
label:
|
|
1711
|
-
description:
|
|
1712
|
-
value:
|
|
1713
|
-
onValueChange:
|
|
1714
|
-
}) :
|
|
1715
|
-
title:
|
|
1716
|
-
description:
|
|
1716
|
+
label: O.autoPalette,
|
|
1717
|
+
description: O.autoPaletteDescription,
|
|
1718
|
+
value: L,
|
|
1719
|
+
onValueChange: Pe
|
|
1720
|
+
}) : M === "typography" ? /* @__PURE__ */ w(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__ */ T(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__ */ w(y, {
|
|
1731
|
+
label: O.baseTypeSize,
|
|
1732
|
+
children: /* @__PURE__ */ w(de, {
|
|
1733
|
+
"aria-label": O.baseTypeSize,
|
|
1734
|
+
value: Ie,
|
|
1729
1735
|
min: 14,
|
|
1730
1736
|
max: 20,
|
|
1731
1737
|
step: 1,
|
|
1732
1738
|
onValueChange: (e) => {
|
|
1733
|
-
|
|
1739
|
+
Be(e), ft(et({
|
|
1734
1740
|
baseSize: e,
|
|
1735
|
-
ratio:
|
|
1741
|
+
ratio: B
|
|
1736
1742
|
}));
|
|
1737
1743
|
}
|
|
1738
1744
|
})
|
|
1739
|
-
}), /* @__PURE__ */
|
|
1740
|
-
label:
|
|
1741
|
-
children: /* @__PURE__ */
|
|
1742
|
-
"aria-label":
|
|
1743
|
-
value:
|
|
1745
|
+
}), /* @__PURE__ */ w(y, {
|
|
1746
|
+
label: O.typeRatio,
|
|
1747
|
+
children: /* @__PURE__ */ w(de, {
|
|
1748
|
+
"aria-label": O.typeRatio,
|
|
1749
|
+
value: B,
|
|
1744
1750
|
min: 1.125,
|
|
1745
1751
|
max: 1.333,
|
|
1746
1752
|
step: .01,
|
|
1747
1753
|
onValueChange: (e) => {
|
|
1748
|
-
|
|
1749
|
-
baseSize:
|
|
1754
|
+
V(e), ft(et({
|
|
1755
|
+
baseSize: Ie,
|
|
1750
1756
|
ratio: e
|
|
1751
1757
|
}));
|
|
1752
1758
|
}
|
|
1753
1759
|
})
|
|
1754
1760
|
})]
|
|
1755
1761
|
})
|
|
1756
|
-
}) :
|
|
1757
|
-
title:
|
|
1758
|
-
description:
|
|
1762
|
+
}) : M === "shape" ? /* @__PURE__ */ w(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__ */ w(y, {
|
|
1769
|
+
label: O.elevationIntensity,
|
|
1770
|
+
children: /* @__PURE__ */ w(de, {
|
|
1771
|
+
"aria-label": O.elevationIntensity,
|
|
1772
|
+
value: He,
|
|
1767
1773
|
min: 0,
|
|
1768
1774
|
max: 1,
|
|
1769
1775
|
step: .05,
|
|
1770
1776
|
onValueChange: (e) => {
|
|
1771
|
-
|
|
1777
|
+
Ue(e), dt(tt({ intensity: e }));
|
|
1772
1778
|
}
|
|
1773
1779
|
})
|
|
1774
1780
|
})
|
|
1775
|
-
}) : null, bt = /* @__PURE__ */
|
|
1776
|
-
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout",
|
|
1781
|
+
}) : null, bt = /* @__PURE__ */ T("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__ */ T(f, {
|
|
1779
1785
|
gap: "lg",
|
|
1780
1786
|
className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
|
|
1781
|
-
children: [/* @__PURE__ */
|
|
1787
|
+
children: [/* @__PURE__ */ T(f, {
|
|
1782
1788
|
gap: "lg",
|
|
1783
1789
|
className: "theme-tweaker--header shrink-0",
|
|
1784
1790
|
children: [
|
|
1785
|
-
|
|
1791
|
+
fe ? /* @__PURE__ */ T(f, {
|
|
1786
1792
|
gap: "normal",
|
|
1787
1793
|
className: "theme-tweaker--intro",
|
|
1788
|
-
children: [/* @__PURE__ */
|
|
1794
|
+
children: [/* @__PURE__ */ T(f, {
|
|
1789
1795
|
direction: "horizontal",
|
|
1790
1796
|
gap: "sm",
|
|
1791
1797
|
align: "center",
|
|
1792
1798
|
wrap: !0,
|
|
1793
|
-
children: [/* @__PURE__ */
|
|
1799
|
+
children: [/* @__PURE__ */ w(l, {
|
|
1794
1800
|
tag: "h2",
|
|
1795
1801
|
className: "theme-tweaker--title",
|
|
1796
|
-
children:
|
|
1797
|
-
}), /* @__PURE__ */
|
|
1802
|
+
children: O.title
|
|
1803
|
+
}), /* @__PURE__ */ w(h, {
|
|
1798
1804
|
tone: "secondary",
|
|
1799
|
-
children: a(
|
|
1805
|
+
children: a(O.changedCount, { count: X })
|
|
1800
1806
|
})]
|
|
1801
|
-
}), /* @__PURE__ */
|
|
1807
|
+
}), /* @__PURE__ */ w(c, {
|
|
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__ */ T(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__ */ w(f, {
|
|
1815
1821
|
direction: "horizontal",
|
|
1816
1822
|
gap: "sm",
|
|
1817
1823
|
align: "center",
|
|
1818
1824
|
wrap: !0,
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1820
|
-
value:
|
|
1825
|
+
children: /* @__PURE__ */ w(ge, {
|
|
1826
|
+
value: k.mode,
|
|
1821
1827
|
onValueChange: (e) => pt(e),
|
|
1822
|
-
children: /* @__PURE__ */
|
|
1828
|
+
children: /* @__PURE__ */ T(he, { children: [/* @__PURE__ */ T(me, {
|
|
1823
1829
|
value: "light",
|
|
1824
|
-
children: [/* @__PURE__ */
|
|
1825
|
-
}), /* @__PURE__ */
|
|
1830
|
+
children: [/* @__PURE__ */ w(ke, { className: "size-icon-sm" }), O.lightMode]
|
|
1831
|
+
}), /* @__PURE__ */ T(me, {
|
|
1826
1832
|
value: "dark",
|
|
1827
|
-
children: [/* @__PURE__ */
|
|
1833
|
+
children: [/* @__PURE__ */ w(we, { className: "size-icon-sm" }), O.darkMode]
|
|
1828
1834
|
})] })
|
|
1829
1835
|
})
|
|
1830
|
-
}), /* @__PURE__ */
|
|
1836
|
+
}), /* @__PURE__ */ T(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__ */ w(u, {
|
|
1838
1844
|
type: "button",
|
|
1839
|
-
icon:
|
|
1845
|
+
icon: xe,
|
|
1840
1846
|
disabled: !!J,
|
|
1841
1847
|
onClick: () => {
|
|
1842
|
-
|
|
1848
|
+
H("idle"), Ge.show();
|
|
1843
1849
|
},
|
|
1844
|
-
children:
|
|
1845
|
-
}),
|
|
1850
|
+
children: O.export
|
|
1851
|
+
}), Se]
|
|
1846
1852
|
})]
|
|
1847
1853
|
}),
|
|
1848
|
-
/* @__PURE__ */
|
|
1849
|
-
label: /* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ w(y, {
|
|
1855
|
+
label: /* @__PURE__ */ w(c, {
|
|
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__ */ w(g, {
|
|
1863
|
+
value: P,
|
|
1864
|
+
onChange: (e) => F(e.target.value),
|
|
1865
|
+
placeholder: O.searchPlaceholder,
|
|
1866
|
+
startIcon: Ee,
|
|
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__ */ T(f, {
|
|
1868
1874
|
gap: "lg",
|
|
1869
1875
|
className: "theme-tweaker--workspace min-h-0",
|
|
1870
|
-
children: [/* @__PURE__ */
|
|
1871
|
-
"aria-label":
|
|
1876
|
+
children: [/* @__PURE__ */ w("nav", {
|
|
1877
|
+
"aria-label": O.groupNavigationLabel,
|
|
1872
1878
|
className: "theme-tweaker--navigation min-w-0",
|
|
1873
|
-
children: /* @__PURE__ */
|
|
1874
|
-
value:
|
|
1879
|
+
children: /* @__PURE__ */ w(ge, {
|
|
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__ */ w(he, {
|
|
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
1892
|
children: nt.map((e) => {
|
|
1887
1893
|
let t = rt[e];
|
|
1888
|
-
return /* @__PURE__ */
|
|
1894
|
+
return /* @__PURE__ */ T(me, {
|
|
1889
1895
|
value: e,
|
|
1890
|
-
onClick: () =>
|
|
1896
|
+
onClick: () => F(""),
|
|
1891
1897
|
className: "theme-tweaker--group-trigger",
|
|
1892
|
-
children: [/* @__PURE__ */
|
|
1898
|
+
children: [/* @__PURE__ */ w(t, { "aria-hidden": "true" }), /* @__PURE__ */ w(c, {
|
|
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__ */ T(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__ */ T(f, {
|
|
1908
1914
|
gap: "normal",
|
|
1909
1915
|
className: "theme-tweaker--editor-heading",
|
|
1910
|
-
children: [/* @__PURE__ */
|
|
1916
|
+
children: [/* @__PURE__ */ T(f, {
|
|
1911
1917
|
direction: "horizontal",
|
|
1912
1918
|
gap: "sm",
|
|
1913
1919
|
align: "center",
|
|
1914
1920
|
wrap: !0,
|
|
1915
1921
|
children: [
|
|
1916
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ w(l, {
|
|
1917
1923
|
tag: "h3",
|
|
1918
|
-
children: Z ?
|
|
1924
|
+
children: Z ? O.allGroups : O.groups[M]
|
|
1919
1925
|
}),
|
|
1920
|
-
|
|
1926
|
+
fe ? null : /* @__PURE__ */ w(h, {
|
|
1921
1927
|
tone: "secondary",
|
|
1922
|
-
children: a(
|
|
1928
|
+
children: a(O.changedCount, { count: X })
|
|
1923
1929
|
}),
|
|
1924
|
-
Z ? /* @__PURE__ */
|
|
1930
|
+
Z ? /* @__PURE__ */ w(h, {
|
|
1925
1931
|
tone: "secondary",
|
|
1926
1932
|
role: "status",
|
|
1927
1933
|
"aria-live": "polite",
|
|
1928
|
-
children: a(
|
|
1934
|
+
children: a(O.searchResults, { count: $e.length })
|
|
1929
1935
|
}) : null
|
|
1930
1936
|
]
|
|
1931
|
-
}), /* @__PURE__ */
|
|
1937
|
+
}), /* @__PURE__ */ w(c, {
|
|
1932
1938
|
size: "xs",
|
|
1933
1939
|
type: "secondary",
|
|
1934
|
-
children: Z ?
|
|
1940
|
+
children: Z ? O.searchHint : O.groupDescriptions[M]
|
|
1935
1941
|
})]
|
|
1936
1942
|
}),
|
|
1937
1943
|
Z ? null : yt,
|
|
1938
|
-
|
|
1939
|
-
config:
|
|
1944
|
+
M === "defaults" && !Z ? /* @__PURE__ */ w(Xe, {
|
|
1945
|
+
config: j,
|
|
1940
1946
|
onChange: at,
|
|
1941
|
-
strings:
|
|
1942
|
-
}) : Q.length > 0 ? /* @__PURE__ */
|
|
1947
|
+
strings: O.providerSettings
|
|
1948
|
+
}) : Q.length > 0 ? /* @__PURE__ */ w(ce, {
|
|
1943
1949
|
multiple: !0,
|
|
1944
1950
|
defaultValue: [`${Q[0].group}:${Q[0].section}`],
|
|
1945
1951
|
variant: "bordered",
|
|
@@ -1947,109 +1953,109 @@ 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__ */ w(h, {
|
|
1959
1965
|
tone: "secondary",
|
|
1960
1966
|
children: n
|
|
1961
1967
|
}),
|
|
1962
|
-
content: /* @__PURE__ */
|
|
1968
|
+
content: /* @__PURE__ */ w(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__ */ w(ct, {
|
|
1968
1974
|
field: e,
|
|
1969
1975
|
value: n,
|
|
1970
1976
|
effectiveValue: qe[e.name] ?? "",
|
|
1971
|
-
strings:
|
|
1977
|
+
strings: O,
|
|
1972
1978
|
onChange: (t) => {
|
|
1973
|
-
if (e.name === "--primary" &&
|
|
1979
|
+
if (e.name === "--primary" && L && t.trim()) {
|
|
1974
1980
|
dt(Qe({
|
|
1975
1981
|
primary: t,
|
|
1976
|
-
mode:
|
|
1982
|
+
mode: k.mode
|
|
1977
1983
|
}));
|
|
1978
1984
|
return;
|
|
1979
1985
|
}
|
|
1980
|
-
$(ut(
|
|
1986
|
+
$(ut(k, e, t));
|
|
1981
1987
|
},
|
|
1982
|
-
onReset: () => $(ut(
|
|
1988
|
+
onReset: () => $(ut(k, e, ""))
|
|
1983
1989
|
}, e.name);
|
|
1984
1990
|
})
|
|
1985
1991
|
})
|
|
1986
1992
|
};
|
|
1987
1993
|
})
|
|
1988
|
-
}, `${
|
|
1994
|
+
}, `${M}:${Z}`) : /* @__PURE__ */ w(c, {
|
|
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__ */ w(f, {
|
|
1998
2004
|
className: "theme-tweaker--preview min-w-0 self-start",
|
|
1999
|
-
children:
|
|
2005
|
+
children: te ?? /* @__PURE__ */ w(lt, { strings: O })
|
|
2000
2006
|
}),
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
...
|
|
2003
|
-
title:
|
|
2004
|
-
description:
|
|
2007
|
+
/* @__PURE__ */ w(oe, {
|
|
2008
|
+
...Ge.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: R(k),
|
|
2015
|
+
className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
|
|
2016
|
+
footer: /* @__PURE__ */ T(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__ */ w(u, {
|
|
2016
2022
|
type: "button",
|
|
2017
2023
|
tone: "secondary",
|
|
2018
2024
|
buttonStyle: "ghost",
|
|
2019
|
-
icon:
|
|
2025
|
+
icon: Te,
|
|
2020
2026
|
disabled: X === 0,
|
|
2021
2027
|
onClick: _t,
|
|
2022
|
-
children:
|
|
2023
|
-
}), /* @__PURE__ */
|
|
2028
|
+
children: O.reset
|
|
2029
|
+
}), /* @__PURE__ */ w(ae, { render: /* @__PURE__ */ w(u, {
|
|
2024
2030
|
tone: "secondary",
|
|
2025
2031
|
buttonStyle: "outline",
|
|
2026
|
-
children:
|
|
2032
|
+
children: O.close
|
|
2027
2033
|
}) })]
|
|
2028
2034
|
}),
|
|
2029
|
-
children: /* @__PURE__ */
|
|
2035
|
+
children: /* @__PURE__ */ T(f, {
|
|
2030
2036
|
gap: "xl",
|
|
2031
2037
|
className: "theme-tweaker--export-body",
|
|
2032
2038
|
children: [
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
title:
|
|
2035
|
-
description:
|
|
2039
|
+
/* @__PURE__ */ w(it, {
|
|
2040
|
+
title: O.cssOutputLabel,
|
|
2041
|
+
description: O.cssOutputDescription,
|
|
2036
2042
|
code: Y,
|
|
2037
|
-
copyLabel:
|
|
2038
|
-
downloadLabel:
|
|
2039
|
-
downloading:
|
|
2043
|
+
copyLabel: O.copy,
|
|
2044
|
+
downloadLabel: U ? O.exportPending : O.downloadCss,
|
|
2045
|
+
downloading: U,
|
|
2040
2046
|
onCopy: () => void ht(Y),
|
|
2041
2047
|
onDownload: () => void mt()
|
|
2042
2048
|
}),
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
title:
|
|
2045
|
-
description:
|
|
2049
|
+
/* @__PURE__ */ w(it, {
|
|
2050
|
+
title: O.providerOutputLabel,
|
|
2051
|
+
description: O.providerOutputDescription,
|
|
2046
2052
|
code: q?.providerConfigText ?? "",
|
|
2047
|
-
copyLabel:
|
|
2048
|
-
downloadLabel:
|
|
2053
|
+
copyLabel: O.copyProvider,
|
|
2054
|
+
downloadLabel: O.downloadProvider,
|
|
2049
2055
|
onCopy: () => void ht(q?.providerConfigText ?? ""),
|
|
2050
2056
|
onDownload: gt
|
|
2051
2057
|
}),
|
|
2052
|
-
vt ? /* @__PURE__ */
|
|
2058
|
+
vt ? /* @__PURE__ */ w(c, {
|
|
2053
2059
|
tag: "div",
|
|
2054
2060
|
size: "xs",
|
|
2055
2061
|
type: J ? "error" : "secondary",
|
|
@@ -2063,21 +2069,21 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
2063
2069
|
})
|
|
2064
2070
|
]
|
|
2065
2071
|
});
|
|
2066
|
-
return p === "self" ? /* @__PURE__ */
|
|
2067
|
-
...
|
|
2072
|
+
return p === "self" ? /* @__PURE__ */ w(z, {
|
|
2073
|
+
...De,
|
|
2068
2074
|
ref: G,
|
|
2069
|
-
theme: m ?
|
|
2070
|
-
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground",
|
|
2075
|
+
theme: m ? k : A({ mode: k.mode }),
|
|
2076
|
+
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", D),
|
|
2071
2077
|
children: bt
|
|
2072
|
-
}) : /* @__PURE__ */
|
|
2073
|
-
...
|
|
2078
|
+
}) : /* @__PURE__ */ w("div", {
|
|
2079
|
+
...De,
|
|
2074
2080
|
ref: G,
|
|
2075
|
-
className: s("theme-tweaker--component @container/theme-tweaker",
|
|
2081
|
+
className: s("theme-tweaker--component @container/theme-tweaker", D),
|
|
2076
2082
|
children: bt
|
|
2077
2083
|
});
|
|
2078
2084
|
});
|
|
2079
2085
|
dt.displayName = "ThemeTweaker";
|
|
2080
2086
|
//#endregion
|
|
2081
|
-
export {
|
|
2087
|
+
export { B as AdminUIThemeProvider, z as ThemeScope, dt as ThemeTweaker, R as adminUIThemeToStyle, Fe as countAdminUIThemeOverrides, A as createAdminUITheme, Ie as createScopedAdminUIThemeSelectors, I as createSerializableUIConfig, Le as createThemeTweakerExportArtifact, je as defaultAdminUIThemeSelectors, J as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, et as deriveAdminUITypeScale, Re as downloadAdminUITheme, Pe as getActiveAdminUIThemeOverrides, j as isAdminUIThemeVariableName, F as serializeAdminUITheme, L as serializeUIProviderConfig };
|
|
2082
2088
|
|
|
2083
2089
|
//# sourceMappingURL=theme-tweaker.js.map
|