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