themelia-ui 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/themelia-ui/SKILL.md +60 -33
- package/.agents/skills/themelia-ui/manifest.json +23 -0
- package/.agents/skills/themelia-ui/references/api-compatibility.md +5 -4
- package/.agents/skills/themelia-ui/references/blocks.md +123 -0
- package/.agents/skills/themelia-ui/references/composition-ladder.md +8 -8
- package/.agents/skills/themelia-ui/references/composition.md +100 -19
- package/.agents/skills/themelia-ui/references/forms.md +23 -3
- package/.agents/skills/themelia-ui/references/framework-wiring.md +41 -13
- package/.agents/skills/themelia-ui/references/i18n.md +4 -2
- package/.agents/skills/themelia-ui/references/imports.md +104 -104
- package/.agents/skills/themelia-ui/references/installation.md +60 -31
- package/.agents/skills/themelia-ui/references/migration.md +156 -5
- package/.agents/skills/themelia-ui/references/provider-and-scoping.md +37 -25
- package/.agents/skills/themelia-ui/references/reference-workflows.md +43 -0
- package/.agents/skills/themelia-ui/references/structure-and-spacing.md +147 -0
- package/.agents/skills/themelia-ui/references/theming.md +174 -131
- package/.agents/skills/themelia-ui/references/troubleshooting.md +88 -30
- package/.agents/skills/themelia-ui/references/verification.md +60 -5
- package/CHANGELOG.md +212 -0
- package/README.md +48 -60
- package/dist/accordion-CHuzMmWL.js +143 -0
- package/dist/{action-menu-BNLURfMK.js → action-menu-BwiL_F6I.js} +35 -33
- package/dist/{alert-dialog-BMVo6Z-8.js → alert-dialog-Cg2HhuBe.js} +1 -1
- package/dist/avatar-Dc_BNYfB.js +93 -0
- package/dist/badge-VlJVZjdm.js +45 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/alert-dialog.js +1 -1
- package/dist/base/aspect-ratio.js +3 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +2 -2
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +1 -1
- package/dist/base/carousel.js +6 -4
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/context-menu.js +22 -21
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +1 -1
- package/dist/base/dialog.js +1 -1
- package/dist/base/display.js +1 -1
- package/dist/base/dropdown-menu.js +1 -1
- package/dist/base/feedback.js +1 -1
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +1 -1
- package/dist/base/hover-card.js +26 -23
- package/dist/base/input-group.js +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/label.js +1 -1
- package/dist/base/menubar.js +20 -14
- package/dist/base/navigation-menu.js +47 -38
- package/dist/base/navigation.js +1 -1
- package/dist/base/otp-input.js +36 -30
- package/dist/base/overlay.js +1 -1
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +51 -47
- package/dist/base/repeaters.js +1 -1
- package/dist/base/resizable.js +2 -0
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +1 -1
- package/dist/base/timeline.js +1 -1
- package/dist/base/toaster.js +1 -1
- package/dist/base/toggle.js +21 -15
- package/dist/base/toolbar.js +1 -1
- package/dist/base/tooltip.js +1 -1
- package/dist/base/typography.js +2 -2
- package/dist/base/upload.js +1 -1
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BZYNKXdV.js → batch-action-bar-DZVMVW83.js} +11 -8
- package/dist/{admin/patterns → blocks/admin}/access.js +79 -76
- package/dist/blocks/admin/commerce.js +2493 -0
- package/dist/{patterns → blocks}/analytics.js +312 -303
- package/dist/{patterns → blocks}/onboarding.js +27 -23
- package/dist/{patterns → blocks}/timelines.js +1 -1
- package/dist/buttons-BX2JfL5X.js +173 -0
- package/dist/cards-Ddhz43Bz.js +279 -0
- package/dist/chart-BkK3Xm10.js +201 -0
- package/dist/choice-inputs-NwRxvmZN.js +694 -0
- package/dist/combobox-519ubijc.js +292 -0
- package/dist/command-JjApYFds.js +156 -0
- package/dist/comments-CCQ2QRaU.js +1443 -0
- package/dist/components/base/action-menu/action-menu.d.ts +1 -1
- package/dist/components/base/action-menu/action-menu.types.d.ts +2 -2
- package/dist/components/base/avatar/avatar.d.ts +5 -2
- package/dist/components/base/badge/badge.d.ts +10 -10
- package/dist/components/base/badge/badge.variants.d.ts +1 -2
- package/dist/components/base/badge/index.d.ts +1 -2
- package/dist/components/base/buttons/button.d.ts +9 -8
- package/dist/components/base/buttons/button.types.d.ts +2 -2
- package/dist/components/base/buttons/index.d.ts +1 -1
- package/dist/components/base/buttons/text-button.d.ts +1 -1
- package/dist/components/base/cards/card-actions.d.ts +1 -1
- package/dist/components/base/cards/card.d.ts +3 -1
- package/dist/components/base/cards/partials/card-header.d.ts +2 -1
- package/dist/components/base/choice-inputs/choice.types.d.ts +2 -2
- package/dist/components/base/choice-inputs/partials/choice-parts.d.ts +3 -3
- package/dist/components/base/command/command.d.ts +5 -2
- package/dist/components/base/display/icon-badge.d.ts +5 -3
- package/dist/components/base/display/index.d.ts +1 -1
- package/dist/components/base/display/metadata-list.d.ts +6 -6
- package/dist/components/base/display/metadata-value.d.ts +1 -1
- package/dist/components/base/display/separator.d.ts +2 -2
- package/dist/components/base/feedback/alert.d.ts +3 -2
- package/dist/components/base/feedback/empty.d.ts +5 -4
- package/dist/components/base/feedback/progress-circle.d.ts +2 -2
- package/dist/components/base/feedback/progress.d.ts +3 -1
- package/dist/components/base/forms/form-field.d.ts +2 -2
- package/dist/components/base/input-group/input-group.d.ts +8 -10
- package/dist/components/base/item/item.d.ts +2 -2
- package/dist/components/base/overlay/index.d.ts +1 -1
- package/dist/components/base/overlay/overlay.types.d.ts +7 -5
- package/dist/components/base/qr-code/qr-code.d.ts +4 -4
- package/dist/components/base/sheet/sheet.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +9 -13
- package/dist/components/base/spinner/spinner.d.ts +2 -2
- package/dist/components/base/structure/adaptive-grid.d.ts +3 -3
- package/dist/components/base/structure/bleed.d.ts +4 -2
- package/dist/components/base/structure/grid.d.ts +10 -4
- package/dist/components/base/structure/index.d.ts +1 -1
- package/dist/components/base/structure/split.d.ts +4 -3
- package/dist/components/base/structure/stack.d.ts +5 -5
- package/dist/components/base/structure/structure.maps.d.ts +2 -1
- package/dist/components/base/structure/structure.types.d.ts +10 -4
- package/dist/components/base/toggle/toggle.d.ts +2 -2
- package/dist/components/base/toolbar/toolbar.d.ts +3 -3
- package/dist/components/base/typography/index.d.ts +2 -0
- package/dist/components/base/typography/rich-text/rich-text.variants.d.ts +9 -0
- package/dist/components/base/typography/text/index.d.ts +1 -0
- package/dist/components/base/typography/text/text.d.ts +15 -8
- package/dist/components/base/typography/text/text.variants.d.ts +41 -0
- package/dist/components/base/value-inputs/color-input.d.ts +1 -7
- package/dist/components/base/value-inputs/slider.d.ts +2 -7
- package/dist/components/{admin/patterns → blocks/admin}/commerce/vendor-profile.d.ts +2 -1
- package/dist/components/{patterns → blocks}/analytics/analytics.strings.d.ts +2 -5
- package/dist/components/features/actions/action-adapters.d.ts +3 -3
- package/dist/components/features/actions/actions.types.d.ts +3 -5
- package/dist/components/features/actions/index.d.ts +1 -1
- package/dist/components/features/activities/activities-feed.d.ts +1 -1
- package/dist/components/features/activities/activities.types.d.ts +4 -4
- package/dist/components/features/activities/activity-parts.d.ts +3 -3
- package/dist/components/features/activities/activity-row.d.ts +4 -4
- package/dist/components/features/activities/index.d.ts +1 -1
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +10 -3
- package/dist/components/features/ai-chat/ai-message-surfaces.d.ts +1 -1
- package/dist/components/features/ai-chat/ai-work-surfaces.d.ts +1 -1
- package/dist/components/features/combobox/combobox.strings.d.ts +2 -2
- package/dist/components/features/combobox/fetching-combobox.d.ts +2 -1
- package/dist/components/features/combobox/resource-combobox.d.ts +3 -0
- package/dist/components/features/combobox/use-suggestions.d.ts +7 -0
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +3 -0
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library-parts.d.ts +4 -3
- package/dist/components/features/media-library/media-library-views.d.ts +4 -3
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +12 -13
- package/dist/components/features/media-library/media-library.types.d.ts +11 -9
- package/dist/components/features/media-library/media-resource-gallery.d.ts +1 -1
- package/dist/components/features/media-library/use-media-library.d.ts +1 -4
- package/dist/components/features/overlays/action-overlay-frame.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-parts.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +8 -7
- package/dist/components/features/rich-text-editor/index.d.ts +0 -1
- package/dist/components/features/table/data-table-body.d.ts +1 -1
- package/dist/components/features/table/data-table-expanded-row.d.ts +27 -0
- package/dist/components/features/table/data-table-header.d.ts +1 -1
- package/dist/components/features/table/data-table-size.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +9 -3
- package/dist/components/features/table/table.strings.d.ts +11 -0
- package/dist/components/features/table/table.types.d.ts +60 -2
- package/dist/components/features/theme-tweaker/index.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +6 -10
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +22 -6
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/auth/auth.d.ts +1 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -1
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/containers-B8d8U9GS.js +2 -0
- package/dist/{copyable-H1TUEY-H.js → copyable-D9Okb1w6.js} +12 -11
- package/dist/core.css +2 -2
- package/dist/css/access.css +2 -1
- package/dist/css/accordion.css +2 -1
- package/dist/css/action-menu.css +2 -1
- package/dist/css/activities.css +2 -1
- package/dist/css/ai-chat.css +2 -1
- package/dist/css/analytics.css +2 -1
- package/dist/css/app-shell.css +2 -1
- package/dist/css/aspect-ratio.css +2 -1
- package/dist/css/async-preview.css +2 -1
- package/dist/css/auth.css +2 -1
- package/dist/css/avatar.css +2 -1
- package/dist/css/badge.css +2 -1
- package/dist/css/batch-action-bar.css +2 -1
- package/dist/css/buttons.css +2 -1
- package/dist/css/cards.css +2 -1
- package/dist/css/carousel.css +2 -1
- package/dist/css/chart.css +2 -1
- package/dist/css/choice-inputs.css +2 -1
- package/dist/css/combobox.css +2 -1
- package/dist/css/combobox2.css +2 -1
- package/dist/css/command.css +2 -1
- package/dist/css/comments.css +2 -1
- package/dist/css/commerce.css +2 -1
- package/dist/css/containers.css +2 -1
- package/dist/css/copyable.css +2 -1
- package/dist/css/data-view.css +2 -1
- package/dist/css/date-pickers.css +2 -1
- package/dist/css/display.css +2 -1
- package/dist/css/dropdown-menu.css +2 -1
- package/dist/css/event-calendar.css +2 -1
- package/dist/css/feedback.css +2 -1
- package/dist/css/filters.css +2 -1
- package/dist/css/forms-numeric.css +2 -1
- package/dist/css/forms.css +2 -1
- package/dist/css/global-search.css +2 -1
- package/dist/css/header.css +2 -1
- package/dist/css/hover-card.css +2 -1
- package/dist/css/input-group.css +2 -1
- package/dist/css/item.css +2 -1
- package/dist/css/kanban.css +2 -1
- package/dist/css/label.css +2 -1
- package/dist/css/map.css +2 -1
- package/dist/css/media-library.css +2 -1
- package/dist/css/mentions.css +2 -1
- package/dist/css/menubar.css +2 -1
- package/dist/css/navigation-menu.css +2 -1
- package/dist/css/navigation.css +2 -1
- package/dist/css/navigation2.css +2 -1
- package/dist/css/onboarding.css +2 -1
- package/dist/css/otp-input.css +2 -1
- package/dist/css/overlay.css +2 -1
- package/dist/css/overlays.css +2 -1
- package/dist/css/page.css +2 -1
- package/dist/css/popover-menu.css +2 -1
- package/dist/css/popover.css +2 -1
- package/dist/css/primitives.css +2 -1
- package/dist/css/products.css +2 -1
- package/dist/css/qr-code.css +2 -1
- package/dist/css/repeaters.css +2 -1
- package/dist/css/resizable.css +2 -1
- package/dist/css/resource-assignment.css +2 -1
- package/dist/css/resource.css +2 -1
- package/dist/css/rich-text-editor.css +2 -1
- package/dist/css/schema-form.css +2 -1
- package/dist/css/sidebar.css +2 -1
- package/dist/css/sidebar2.css +2 -1
- package/dist/css/skeleton.css +2 -1
- package/dist/css/spinner.css +2 -1
- package/dist/css/structure.css +2 -1
- package/dist/css/sync.css +2 -1
- package/dist/css/table.css +2 -1
- package/dist/css/table2.css +2 -1
- package/dist/css/text-inputs.css +2 -1
- package/dist/css/theme-tweaker.css +2 -1
- package/dist/css/timeline.css +2 -1
- package/dist/css/timelines.css +2 -1
- package/dist/css/toaster.css +2 -1
- package/dist/css/toggle.css +2 -1
- package/dist/css/toolbar.css +2 -1
- package/dist/css/tooltip.css +2 -1
- package/dist/css/typography.css +2 -1
- package/dist/css/upload.css +2 -1
- package/dist/css/value-inputs.css +2 -1
- package/dist/css/workspace.css +2 -1
- package/dist/css-graph.json +1027 -0
- package/dist/date-pickers-BwCwKIVM.js +685 -0
- package/dist/{dialog-CtFCuTUF.js → dialog-CAnwRNrm.js} +1 -1
- package/dist/display-a7AoX_u7.js +664 -0
- package/dist/dropdown-menu-Br8kvjrF.js +235 -0
- package/dist/empty.js +0 -0
- package/dist/features/actions.js +6 -6
- package/dist/features/activities.js +219 -216
- package/dist/features/ai-chat.js +593 -565
- package/dist/features/async-preview.js +105 -286
- package/dist/features/combobox.js +328 -314
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +56 -55
- package/dist/features/event-calendar.js +189 -185
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +259 -260
- package/dist/features/kanban.js +39 -37
- package/dist/features/map.js +357 -354
- package/dist/features/media-library.js +931 -931
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +950 -942
- package/dist/features/resource-assignment.js +39 -37
- package/dist/features/resource.js +70 -71
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +342 -338
- package/dist/features/sync.js +14 -12
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +1002 -962
- package/dist/feedback-D4qVsKlD.js +430 -0
- package/dist/{filters-DOLKRSmb.js → filters-BhsTkWpZ.js} +386 -383
- package/dist/forms-C0WeNPFF.js +250 -0
- package/dist/forms-numeric-IwQ1ltNf.js +582 -0
- package/dist/hooks/use-native-dialog.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/input-group-HS_Z0Ei_.js +119 -0
- package/dist/item-M2pmpWXh.js +150 -0
- package/dist/{label-DumoMDm6.js → label-HOBXAscw.js} +7 -5
- package/dist/layout/app-shell.js +4 -2
- package/dist/layout/auth.js +102 -100
- package/dist/layout/header.js +190 -180
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +18 -16
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.js +50 -46
- package/dist/layout/workspace.js +71 -69
- package/dist/lib/action-presentation.d.ts +3 -3
- package/dist/lib/component-vocabulary.d.ts +2 -2
- package/dist/lib/css-length.d.ts +2 -0
- package/dist/lib/responsive.d.ts +1 -1
- package/dist/lib/theming/index.d.ts +1 -0
- package/dist/lib/theming/recipes.d.ts +2 -2
- package/dist/lib/theming/themes/dense.d.ts +3 -0
- package/dist/lib/theming/themes/editorial.d.ts +3 -0
- package/dist/lib/theming/themes/index.d.ts +8 -0
- package/dist/lib/theming/themes/pair.d.ts +7 -0
- package/dist/lib/theming/themes/sharp.d.ts +3 -0
- package/dist/lib/theming/themes/soft.d.ts +3 -0
- package/dist/lib/theming/themes/types.d.ts +12 -0
- package/dist/lib/ui-provider/index.d.ts +1 -1
- package/dist/lib/ui-provider/scope.d.ts +5 -8
- package/dist/lib/ui-provider/tokens.d.ts +11 -3
- package/dist/lib/ui-provider/tokens.generated.d.ts +6 -4
- package/dist/lib/ui-provider/types.d.ts +17 -19
- package/dist/lib/ui-provider/ui-scope.d.ts +1 -1
- package/dist/{mentions-BbsEHlcH.js → mentions-BOxbigwp.js} +113 -111
- package/dist/navigation-Bgu7Vc0M.js +622 -0
- package/dist/navigation-DiYACqpE.js +216 -0
- package/dist/overlay-BuQOl8aP.js +356 -0
- package/dist/{overlays-DvVoS3td.js → overlays-1sULyytH.js} +77 -75
- package/dist/popover-CA7SP_iz.js +127 -0
- package/dist/popover-menu-QXgQeWeG.js +192 -0
- package/dist/{primitives-D0bdDozz.js → primitives-BskKlf35.js} +181 -178
- package/dist/primitives.js +1 -1
- package/dist/profiles/admin.json +6 -36
- package/dist/profiles/general.json +6 -96
- package/dist/repeaters-CeH20dvr.js +445 -0
- package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
- package/dist/{sheet-CKcmRbJ9.js → sheet-CJ1-OAla.js} +3 -3
- package/dist/sidebar-D8uGqxio.js +421 -0
- package/dist/skeleton-BTKNKTdj.js +173 -0
- package/dist/spinner-Tc1QCnxM.js +30 -0
- package/dist/{structure-D0WGQAP3.js → structure-CynEZ-OY.js} +15 -23
- package/dist/style.css +1 -1
- package/dist/styles/TOKENS.md +116 -275
- package/dist/styles/animation.css +114 -0
- package/dist/styles/base.css +7 -6
- package/dist/styles/fields.css +45 -63
- package/dist/styles/focus.css +12 -0
- package/dist/styles/forced-colors.css +11 -10
- package/dist/styles/index.css +23 -30
- package/dist/styles/map.css +45 -34
- package/dist/styles/mentions.css +14 -52
- package/dist/styles/overlays.css +7 -7
- package/dist/styles/tailwind.css +76 -127
- package/dist/styles/targets.css +3 -3
- package/dist/styles/theme/colour.css +86 -0
- package/dist/styles/theme/density.css +31 -0
- package/dist/styles/theme/elevation.css +9 -0
- package/dist/styles/theme/layout.css +18 -0
- package/dist/styles/theme/motion.css +18 -0
- package/dist/styles/theme/shape.css +12 -0
- package/dist/styles/theme/size.css +10 -0
- package/dist/styles/theme/spacing.css +11 -0
- package/dist/styles/theme/typography.css +20 -0
- package/dist/styles/tone.css +61 -0
- package/dist/table-B7dtIFUx.js +1262 -0
- package/dist/table-Ds_eO9av.js +191 -0
- package/dist/tailwind.css +76 -127
- package/dist/text-inputs-BboE77nZ.js +395 -0
- package/dist/theming-C5ygF5uf.js +292 -0
- package/dist/theming.js +2 -2
- package/dist/{timeline-BdaGRyj-.js → timeline-BR_jNgvz.js} +57 -49
- package/dist/{timelines-BB7550mz.js → timelines-DXG1BfIN.js} +69 -67
- package/dist/{toaster-bBMgXm8z.js → toaster-CXL8L7Mm.js} +106 -99
- package/dist/tokens.json +1027 -636
- package/dist/toolbar-DBK-c4yy.js +74 -0
- package/dist/tooltip-BPYP-jUm.js +76 -0
- package/dist/{typography-BkxEiwQ1.js → typography-DmeR05Er.js} +87 -53
- package/dist/{ui-provider-Cmoq6i_D.js → ui-provider-DpzLUD12.js} +117 -69
- package/dist/ui-provider.js +1 -1
- package/dist/upload-CYuoJykZ.js +968 -0
- package/dist/use-async-preview-BFwf9ElY.js +188 -0
- package/dist/value-inputs-ng8aVJJZ.js +728 -0
- package/docs/README.md +13 -3
- package/docs/build/browser-composition-fixture.ts +28 -0
- package/docs/build/recipes.md +11484 -10723
- package/docs/generated/component-index.json +9809 -9169
- package/docs/generated/components/INDEX.md +5 -5
- package/docs/generated/components/base--accordion.md +51 -2
- package/docs/generated/components/base--action-menu.md +14 -15
- package/docs/generated/components/base--alert-dialog.md +3 -4
- package/docs/generated/components/base--aspect-ratio.md +3 -4
- package/docs/generated/components/base--avatar.md +7 -7
- package/docs/generated/components/base--badge.md +159 -27
- package/docs/generated/components/base--batch-action-bar.md +6 -7
- package/docs/generated/components/base--buttons.md +151 -47
- package/docs/generated/components/base--cards.md +107 -14
- package/docs/generated/components/base--carousel.md +1 -2
- package/docs/generated/components/base--chart.md +44 -8
- package/docs/generated/components/base--choice-inputs.md +10 -11
- package/docs/generated/components/base--combobox.md +3 -4
- package/docs/generated/components/base--command.md +6 -6
- package/docs/generated/components/base--context-menu.md +1 -2
- package/docs/generated/components/base--copyable.md +6 -7
- package/docs/generated/components/base--date-pickers.md +6 -7
- package/docs/generated/components/base--dialog.md +6 -7
- package/docs/generated/components/base--direction.md +1 -1
- package/docs/generated/components/base--display.md +234 -54
- package/docs/generated/components/base--dropdown-menu.md +6 -7
- package/docs/generated/components/base--feedback.md +71 -18
- package/docs/generated/components/base--forms-numeric.md +6 -7
- package/docs/generated/components/base--forms.md +84 -14
- package/docs/generated/components/base--hover-card.md +3 -4
- package/docs/generated/components/base--input-group.md +27 -30
- package/docs/generated/components/base--item.md +8 -9
- package/docs/generated/components/base--label.md +2 -3
- package/docs/generated/components/base--menubar.md +2 -4
- package/docs/generated/components/base--navigation-menu.md +2 -3
- package/docs/generated/components/base--navigation.md +2 -3
- package/docs/generated/components/base--otp-input.md +3 -4
- package/docs/generated/components/base--overlay.md +56 -47
- package/docs/generated/components/base--popover-menu.md +7 -8
- package/docs/generated/components/base--popover.md +9 -10
- package/docs/generated/components/base--qr-code.md +7 -8
- package/docs/generated/components/base--repeaters.md +6 -7
- package/docs/generated/components/base--resizable.md +2 -3
- package/docs/generated/components/base--sheet.md +12 -13
- package/docs/generated/components/base--sidebar.md +9 -11
- package/docs/generated/components/base--skeleton.md +6 -7
- package/docs/generated/components/base--slot.md +1 -1
- package/docs/generated/components/base--spinner.md +5 -7
- package/docs/generated/components/base--structure.md +320 -70
- package/docs/generated/components/base--table.md +61 -3
- package/docs/generated/components/base--text-inputs.md +17 -18
- package/docs/generated/components/base--timeline.md +45 -4
- package/docs/generated/components/base--toaster.md +43 -12
- package/docs/generated/components/base--toggle.md +11 -12
- package/docs/generated/components/base--toolbar.md +7 -8
- package/docs/generated/components/base--tooltip.md +5 -6
- package/docs/generated/components/base--typography.md +317 -32
- package/docs/generated/components/base--upload.md +8 -9
- package/docs/generated/components/base--value-inputs.md +9 -38
- package/docs/generated/components/{admin--patterns--access.md → blocks--admin--access.md} +15 -6
- package/docs/generated/components/{admin--patterns--commerce.md → blocks--admin--commerce.md} +40 -41
- package/docs/generated/components/{patterns--analytics.md → blocks--analytics.md} +57 -14
- package/docs/generated/components/{patterns--onboarding.md → blocks--onboarding.md} +6 -7
- package/docs/generated/components/{patterns--timelines.md → blocks--timelines.md} +6 -7
- package/docs/generated/components/features--actions.md +8 -18
- package/docs/generated/components/features--activities.md +31 -32
- package/docs/generated/components/features--ai-chat.md +15 -15
- package/docs/generated/components/features--async-preview.md +5 -6
- package/docs/generated/components/features--combobox.md +71 -5
- package/docs/generated/components/features--comments.md +0 -1
- package/docs/generated/components/features--data-view.md +63 -8
- package/docs/generated/components/features--event-calendar.md +1 -2
- package/docs/generated/components/features--filters.md +11 -2
- package/docs/generated/components/features--global-search.md +1 -2
- package/docs/generated/components/features--kanban.md +1 -2
- package/docs/generated/components/features--map.md +1 -2
- package/docs/generated/components/features--media-library.md +105 -38
- package/docs/generated/components/features--mentions.md +7 -7
- package/docs/generated/components/features--overlays.md +75 -22
- package/docs/generated/components/features--products.md +10 -11
- package/docs/generated/components/features--resource-assignment.md +2 -3
- package/docs/generated/components/features--resource.md +3 -4
- package/docs/generated/components/features--rich-text-editor.md +42 -13
- package/docs/generated/components/features--schema-form.md +1 -2
- package/docs/generated/components/features--sync.md +2 -3
- package/docs/generated/components/features--table.md +162 -12
- package/docs/generated/components/features--theme-tweaker.md +30 -15
- package/docs/generated/components/forms.md +2 -2
- package/docs/generated/components/layout--app-shell.md +41 -11
- package/docs/generated/components/layout--auth.md +8 -9
- package/docs/generated/components/layout--containers.md +40 -1
- package/docs/generated/components/layout--header.md +2 -3
- package/docs/generated/components/layout--navigation.md +0 -1
- package/docs/generated/components/layout--page.md +33 -5
- package/docs/generated/components/layout--settings.md +0 -1
- package/docs/generated/components/layout--sidebar.md +47 -7
- package/docs/generated/components/layout--workspace.md +3 -4
- package/docs/generated/components/primitives.md +128 -17
- package/docs/generated/components/theming.md +147 -4
- package/docs/generated/components/ui-provider.md +96 -78
- package/docs/generated/composition-ladder.md +8 -8
- package/docs/generated/consumer-contract.json +5736 -0
- package/docs/generated/imports.md +104 -104
- package/docs/generated/migration-broad-imports.json +267 -90
- package/docs/generated/migration-broad-imports.md +266 -101
- package/docs/generated/migration-codemod.json +365 -70
- package/docs/generated/migration.md +665 -95
- package/docs/generated/profiles.md +27 -27
- package/docs/generated/public-api.md +104 -102
- package/docs/generated/recipes.json +755 -810
- package/docs/generated/workflows/communications-overview/analytics/communications-reference.tsx +19 -0
- package/docs/generated/workflows/index.json +691 -0
- package/docs/generated/workflows/media-picking/media-library/media-picking-reference.tsx +63 -0
- package/docs/generated/workflows/media-picking/media-library/reference-data.ts +3 -0
- package/docs/generated/workflows/multi-section-form/form-workflow/multi-section-reference.tsx +46 -0
- package/docs/generated/workflows/nested-action-flow/action-overlays/nested-action-reference.tsx +39 -0
- package/docs/generated/workflows/record-detail/page-layout/record-detail-reference.tsx +24 -0
- package/docs/generated/workflows/resource-index/data-view/resource-index-reference.tsx +51 -0
- package/docs/generated/workflows/scoped-resource-selection/combobox/scoped-resource-reference.tsx +50 -0
- package/docs/generated/workflows/website-content-editor/media-library/reference-data.ts +3 -0
- package/docs/generated/workflows/website-content-editor/rich-text-editor/website-content-reference.tsx +33 -0
- package/docs/generated/workflows/workspace-navigation/app-shell/workspace-navigation-reference.tsx +26 -0
- package/docs/learn/api-compatibility.md +5 -4
- package/docs/learn/blocks.md +123 -0
- package/docs/learn/composition.md +100 -19
- package/docs/learn/forms.md +23 -3
- package/docs/learn/framework-wiring.md +41 -13
- package/docs/learn/i18n.md +4 -2
- package/docs/learn/installation.md +60 -31
- package/docs/learn/migration.md +156 -5
- package/docs/learn/provider-and-scoping.md +37 -25
- package/docs/learn/reference-workflows.md +43 -0
- package/docs/learn/structure-and-spacing.md +147 -0
- package/docs/learn/theming.md +174 -131
- package/docs/learn/troubleshooting.md +88 -30
- package/docs/learn/verification.md +60 -5
- package/package.json +42 -473
- package/scripts/consumer/codemod.mjs +50 -32
- package/scripts/consumer/contract-reader.mjs +42 -0
- package/scripts/consumer/css-scan.mjs +51 -0
- package/scripts/consumer/diagnose.mjs +136 -0
- package/scripts/consumer/find-component.mjs +30 -17
- package/scripts/consumer/install-skill.mjs +93 -11
- package/src/styles/TOKENS.md +116 -275
- package/dist/accordion-6YPJ9XRO.js +0 -135
- package/dist/admin/patterns/access.css +0 -15
- package/dist/admin/patterns/commerce.css +0 -29
- package/dist/admin/patterns/commerce.js +0 -2493
- package/dist/avatar-CS7zow2q.js +0 -85
- package/dist/badge-CxOuTfVr.js +0 -63
- package/dist/base/accordion.css +0 -3
- package/dist/base/action-menu.css +0 -6
- package/dist/base/alert-dialog.css +0 -4
- package/dist/base/aspect-ratio.css +0 -2
- package/dist/base/avatar.css +0 -4
- package/dist/base/badge.css +0 -2
- package/dist/base/batch-action-bar.css +0 -5
- package/dist/base/buttons.css +0 -4
- package/dist/base/cards.css +0 -13
- package/dist/base/carousel.css +0 -5
- package/dist/base/chart.css +0 -2
- package/dist/base/choice-inputs.css +0 -10
- package/dist/base/combobox.css +0 -3
- package/dist/base/command.css +0 -9
- package/dist/base/context-menu.css +0 -2
- package/dist/base/copyable.css +0 -6
- package/dist/base/date-pickers.css +0 -11
- package/dist/base/dialog.css +0 -4
- package/dist/base/display.css +0 -8
- package/dist/base/dropdown-menu.css +0 -2
- package/dist/base/feedback.css +0 -5
- package/dist/base/forms-numeric.css +0 -12
- package/dist/base/forms.css +0 -14
- package/dist/base/hover-card.css +0 -2
- package/dist/base/input-group.css +0 -6
- package/dist/base/item.css +0 -9
- package/dist/base/label.css +0 -3
- package/dist/base/menubar.css +0 -2
- package/dist/base/navigation-menu.css +0 -2
- package/dist/base/navigation.css +0 -12
- package/dist/base/otp-input.css +0 -9
- package/dist/base/overlay.css +0 -4
- package/dist/base/popover-menu.css +0 -11
- package/dist/base/popover.css +0 -3
- package/dist/base/qr-code.css +0 -2
- package/dist/base/repeaters.css +0 -18
- package/dist/base/resizable.css +0 -2
- package/dist/base/sheet.css +0 -4
- package/dist/base/sidebar.css +0 -12
- package/dist/base/skeleton.css +0 -9
- package/dist/base/spinner.css +0 -2
- package/dist/base/structure.css +0 -2
- package/dist/base/table.css +0 -3
- package/dist/base/text-inputs.css +0 -2
- package/dist/base/timeline.css +0 -9
- package/dist/base/toaster.css +0 -2
- package/dist/base/toggle.css +0 -2
- package/dist/base/toolbar.css +0 -5
- package/dist/base/tooltip.css +0 -2
- package/dist/base/typography.css +0 -2
- package/dist/base/upload.css +0 -10
- package/dist/base/value-inputs.css +0 -14
- package/dist/buttons-CqXKWty3.js +0 -179
- package/dist/cards-C6Ulbkw7.js +0 -271
- package/dist/chart-nomhJ87z.js +0 -193
- package/dist/choice-inputs-OUDn0kQw.js +0 -680
- package/dist/combobox-C8oP92bT.js +0 -266
- package/dist/command-Bp3B6pUu.js +0 -143
- package/dist/comments-CAnDlyXO.js +0 -1438
- package/dist/components/admin/patterns/index.d.ts +0 -2
- package/dist/components/features/rich-text-editor/exec-command-engine.d.ts +0 -2
- package/dist/components/patterns/index.d.ts +0 -3
- package/dist/css/styles.css +0 -1
- package/dist/date-pickers-DOwIT-Nk.js +0 -661
- package/dist/display-B3Q17h5z.js +0 -645
- package/dist/dropdown-menu-TyNLCLML.js +0 -223
- package/dist/features/actions.css +0 -11
- package/dist/features/activities.css +0 -25
- package/dist/features/ai-chat.css +0 -14
- package/dist/features/async-preview.css +0 -10
- package/dist/features/combobox.css +0 -12
- package/dist/features/comments.css +0 -24
- package/dist/features/data-view.css +0 -31
- package/dist/features/event-calendar.css +0 -17
- package/dist/features/filters.css +0 -24
- package/dist/features/global-search.css +0 -19
- package/dist/features/kanban.css +0 -7
- package/dist/features/map.css +0 -15
- package/dist/features/media-library.css +0 -27
- package/dist/features/mentions.css +0 -17
- package/dist/features/overlays.css +0 -11
- package/dist/features/products.css +0 -29
- package/dist/features/resource-assignment.css +0 -14
- package/dist/features/resource.css +0 -15
- package/dist/features/rich-text-editor.css +0 -8
- package/dist/features/schema-form.css +0 -22
- package/dist/features/sync.css +0 -11
- package/dist/features/table.css +0 -20
- package/dist/features/theme-tweaker.css +0 -27
- package/dist/feedback-DRerHGuV.js +0 -469
- package/dist/forms-CPrGGif_.js +0 -242
- package/dist/forms-numeric-CPVsL7Vf.js +0 -569
- package/dist/index.css +0 -3
- package/dist/input-group-BYe0rhoB.js +0 -126
- package/dist/item-B3yQ26as.js +0 -146
- package/dist/layout/app-shell.css +0 -13
- package/dist/layout/auth.css +0 -14
- package/dist/layout/containers.css +0 -2
- package/dist/layout/header.css +0 -20
- package/dist/layout/navigation.css +0 -11
- package/dist/layout/page.css +0 -15
- package/dist/layout/settings.css +0 -16
- package/dist/layout/sidebar.css +0 -16
- package/dist/layout/workspace.css +0 -15
- package/dist/navigation-CsqTA16F.js +0 -614
- package/dist/navigation-DzxzPuwg.js +0 -202
- package/dist/overlay-WQOsLd69.js +0 -345
- package/dist/patterns/analytics.css +0 -15
- package/dist/patterns/onboarding.css +0 -11
- package/dist/patterns/timelines.css +0 -11
- package/dist/popover-DriLnIFc.js +0 -123
- package/dist/popover-menu-C2UCMAe7.js +0 -189
- package/dist/primitives.css +0 -3
- package/dist/repeaters-DuP1N0nw.js +0 -438
- package/dist/rich-text-editor-BQXFe9oN.js +0 -595
- package/dist/sidebar-D0N6ckJL.js +0 -412
- package/dist/skeleton-DGR9df28.js +0 -172
- package/dist/spinner-CUAVFecI.js +0 -52
- package/dist/styles/FACTORS.md +0 -36
- package/dist/styles/SCOPES.md +0 -86
- package/dist/styles/themes/default.css +0 -164
- package/dist/styles/theming/animation.css +0 -143
- package/dist/styles/theming/colors.css +0 -97
- package/dist/styles/theming/feedback.css +0 -17
- package/dist/styles/theming/field.css +0 -21
- package/dist/styles/theming/focus.css +0 -88
- package/dist/styles/theming/layers.css +0 -13
- package/dist/styles/theming/layout.css +0 -21
- package/dist/styles/theming/motion.css +0 -42
- package/dist/styles/theming/overlay.css +0 -52
- package/dist/styles/theming/sizing.css +0 -118
- package/dist/styles/theming/text.css +0 -30
- package/dist/styles/theming/typography.css +0 -26
- package/dist/styles/tokens/components.css +0 -22
- package/dist/styles/tokens/foundation.css +0 -80
- package/dist/styles/tokens/layout.css +0 -19
- package/dist/styles/tokens/palette.css +0 -88
- package/dist/styles/tokens/primitives.css +0 -18
- package/dist/styles/tokens/states.css +0 -77
- package/dist/table-BC4qqsUb.js +0 -180
- package/dist/table-BHDpjajL.js +0 -982
- package/dist/text-inputs-DF_lD7pA.js +0 -385
- package/dist/theming-D6KRU7hO.js +0 -104
- package/dist/toolbar-DWRywF0R.js +0 -68
- package/dist/tooltip-t1VQQ2tZ.js +0 -73
- package/dist/upload-B38YZeFJ.js +0 -938
- package/dist/value-inputs-Q4ymjXlV.js +0 -716
- package/src/styles/FACTORS.md +0 -36
- package/src/styles/SCOPES.md +0 -86
- /package/dist/components/{admin/patterns → blocks/admin}/access/admin.strings.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/credential-list.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/index.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/role-permissions.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/sensitive-action.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/account.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/address-lines.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/booking.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/cart.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.strings.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.types.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/format-amount.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/index.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/inventory-section.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/invoice.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/loyalty.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-customer.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-detail.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-line-item.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-transactions.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-listing.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-score.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/summary-panel.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/activity-heatmap.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/analytics.types.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/chart-card.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/format-metric-value.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/index.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-bar.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-comparison.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-gradient.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-grid.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-micro-grid.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-skeleton.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-trend-chip.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/time-ruler.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/onboarding/checklist.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/onboarding/index.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/onboarding/onboarding.strings.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/changelog-timeline.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/index.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/milestones-timeline.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/steps.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/timelines.strings.d.ts +0 -0
- /package/dist/styles/{theming/breakpoints.css → breakpoints.css} +0 -0
|
@@ -1,44 +1,111 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { S as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { l as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as pe } from "../
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
2
|
+
import "#core.css";
|
|
3
|
+
import { c as e, o as t, s as n } from "../typography-DmeR05Er.js";
|
|
4
|
+
import { t as r } from "../cx--CBrhWH0.js";
|
|
5
|
+
import { S as i, x as a } from "../ui-provider-DpzLUD12.js";
|
|
6
|
+
import { t as o } from "../accordion-CHuzMmWL.js";
|
|
7
|
+
import { c as s } from "../buttons-BX2JfL5X.js";
|
|
8
|
+
import { n as c } from "../overlay-BuQOl8aP.js";
|
|
9
|
+
import { i as l, o as u } from "../structure-CynEZ-OY.js";
|
|
10
|
+
import { t as d } from "../strings-Co9_qArR.js";
|
|
11
|
+
import { B as ee } from "../primitives-BskKlf35.js";
|
|
12
|
+
import { t as f } from "../badge-VlJVZjdm.js";
|
|
13
|
+
import { _ as p, a as m, h, p as te, v as ne } from "../feedback-D4qVsKlD.js";
|
|
14
|
+
import { d as re, l as g } from "../display-a7AoX_u7.js";
|
|
15
|
+
import { n as ie, s as _ } from "../choice-inputs-NwRxvmZN.js";
|
|
16
|
+
import { l as v } from "../text-inputs-BboE77nZ.js";
|
|
17
|
+
import { u as y } from "../forms-C0WeNPFF.js";
|
|
18
|
+
import { u as ae } from "../forms-numeric-IwQ1ltNf.js";
|
|
19
|
+
import { c as b, i as oe, r as se, t as ce, u as le } from "../item-M2pmpWXh.js";
|
|
20
|
+
import { d as ue, f as de, p as fe, u as pe } from "../navigation-Bgu7Vc0M.js";
|
|
21
|
+
import { l as x, o as me } from "../value-inputs-ng8aVJJZ.js";
|
|
22
|
+
import { i as he, r as ge } from "../overlays-1sULyytH.js";
|
|
23
|
+
import { i as _e, n as ve, r as ye } from "../theming-C5ygF5uf.js";
|
|
24
|
+
import { CheckCircle2Icon as be, CopyIcon as xe, DownloadIcon as Se, InfoIcon as Ce, LayoutGridIcon as S, MoonIcon as we, PaletteIcon as C, RotateCcwIcon as Te, SearchIcon as Ee, Settings2Icon as De, ShapesIcon as Oe, ShieldCheckIcon as ke, SunIcon as Ae, TypeIcon as je } from "lucide-react";
|
|
25
|
+
import { forwardRef as w, useEffect as Me, useId as T, useImperativeHandle as Ne, useMemo as E, useRef as Pe, useState as D } from "react";
|
|
26
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
27
|
+
import "#css/theme-tweaker.css";
|
|
28
|
+
//#region src/lib/ui-provider/tokens.generated.ts
|
|
29
|
+
var Fe = {
|
|
30
|
+
"--accent": "light-dark(oklch(0.97 0 0), oklch(0.33 0 0))",
|
|
31
|
+
"--accent-foreground": "light-dark(oklch(0.205 0 0), oklch(0.985 0 0))",
|
|
32
|
+
"--background": "light-dark(oklch(1 0 0), oklch(0.205 0 0))",
|
|
33
|
+
"--border": "light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%))",
|
|
34
|
+
"--border-width": "1px",
|
|
35
|
+
"--card": "light-dark(oklch(1 0 0), oklch(0.25 0 0))",
|
|
36
|
+
"--card-foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
|
|
37
|
+
"--chart-1": "light-dark(oklch(0.56 0.11 167), oklch(0.74 0.13 167))",
|
|
38
|
+
"--chart-2": "light-dark(oklch(0.56 0.11 230), oklch(0.72 0.14 230))",
|
|
39
|
+
"--chart-3": "light-dark(oklch(0.56 0.17 285), oklch(0.72 0.15 285))",
|
|
40
|
+
"--chart-4": "light-dark(oklch(0.58 0.16 330), oklch(0.74 0.15 330))",
|
|
41
|
+
"--chart-5": "light-dark(oklch(0.6 0.14 60), oklch(0.78 0.14 60))",
|
|
42
|
+
"--content-width": "64rem",
|
|
43
|
+
"--control-height": "2.125rem",
|
|
44
|
+
"--control-height-sm": "1.875rem",
|
|
45
|
+
"--destructive": "light-dark(oklch(0.5 0.245 27.325), oklch(0.74 0.158 22.216))",
|
|
46
|
+
"--destructive-foreground": "light-dark(oklch(0.99 0 0), oklch(0.18 0.05 22))",
|
|
47
|
+
"--disabled-opacity": "0.5",
|
|
48
|
+
"--duration": "0ms",
|
|
49
|
+
"--duration-fast": "0ms",
|
|
50
|
+
"--ease": "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
51
|
+
"--font-heading": "initial",
|
|
52
|
+
"--font-mono": "'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
|
|
53
|
+
"--font-sans": "'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif",
|
|
54
|
+
"--foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
|
|
55
|
+
"--gap": "1rem",
|
|
56
|
+
"--gap-sm": "0.5rem",
|
|
57
|
+
"--header-height": "3.5rem",
|
|
58
|
+
"--icon-size": "1rem",
|
|
59
|
+
"--icon-size-sm": "0.75rem",
|
|
60
|
+
"--info": "light-dark(oklch(0.45 0.214 276.966), oklch(0.72 0.14 250))",
|
|
61
|
+
"--info-foreground": "light-dark(oklch(0.99 0 0), oklch(0.18 0.05 250))",
|
|
62
|
+
"--input": "light-dark(oklch(0.73 0 0), oklch(1 0 0 / 28%))",
|
|
63
|
+
"--link": "light-dark(oklch(0.462 0.1776 259.13), oklch(0.72 0.12 259.13))",
|
|
64
|
+
"--muted": "light-dark(oklch(0.97 0 0), oklch(0.23 0 0))",
|
|
65
|
+
"--muted-foreground": "light-dark(oklch(0.5 0 0), oklch(0.708 0 0))",
|
|
66
|
+
"--overlay-backdrop": "oklch(0 0 0 / 0.5)",
|
|
67
|
+
"--overlay-backdrop-filter": "none",
|
|
68
|
+
"--padding": "1rem",
|
|
69
|
+
"--padding-sm": "0.5rem",
|
|
70
|
+
"--popover": "light-dark(oklch(1 0 0), oklch(0.28 0 0))",
|
|
71
|
+
"--popover-foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
|
|
72
|
+
"--primary": "light-dark(oklch(0.45 0.124 167.35), oklch(0.7 0.13 167.35))",
|
|
73
|
+
"--primary-foreground": "light-dark(oklch(0.985 0 0), oklch(0.18 0.03 167.35))",
|
|
74
|
+
"--radius": "1rem",
|
|
75
|
+
"--radius-pill": "999px",
|
|
76
|
+
"--radius-sm": "0.5rem",
|
|
77
|
+
"--ring": "light-dark(oklch(0.58 0 0), oklch(0.62 0 0))",
|
|
78
|
+
"--secondary": "light-dark(oklch(0.97 0 0), oklch(0.25 0 0))",
|
|
79
|
+
"--secondary-foreground": "light-dark(oklch(0.205 0 0), oklch(0.985 0 0))",
|
|
80
|
+
"--shadow": "0 1px 2px 0 oklch(0 0 0 / 6%), 0 1px 1px -1px oklch(0 0 0 / 6%)",
|
|
81
|
+
"--shadow-lg": "0 4px 8px -2px oklch(0 0 0 / 10%), 0 12px 24px -12px oklch(0 0 0 / 18%)",
|
|
82
|
+
"--sidebar": "light-dark(oklch(0.96 0 0), oklch(0.16 0 0))",
|
|
83
|
+
"--sidebar-accent": "light-dark(oklch(0.98 0 0), oklch(0.28 0 0))",
|
|
84
|
+
"--sidebar-accent-foreground": "light-dark(oklch(0.205 0 0), oklch(0.985 0 0))",
|
|
85
|
+
"--sidebar-border": "light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%))",
|
|
86
|
+
"--sidebar-foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
|
|
87
|
+
"--sidebar-ring": "light-dark(oklch(0.58 0 0), oklch(0.62 0 0))",
|
|
88
|
+
"--sidebar-width": "16rem",
|
|
89
|
+
"--success": "light-dark(oklch(0.4 0.16 145), oklch(0.76 0.16 145))",
|
|
90
|
+
"--success-foreground": "light-dark(oklch(0.985 0 0), oklch(0.18 0.05 145))",
|
|
91
|
+
"--text-2xl": "1.5rem",
|
|
92
|
+
"--text-base": "1rem",
|
|
93
|
+
"--text-lg": "1.125rem",
|
|
94
|
+
"--text-pxs": "0.8125rem",
|
|
95
|
+
"--text-scale": "1",
|
|
96
|
+
"--text-sm": "0.875rem",
|
|
97
|
+
"--text-xl": "1.25rem",
|
|
98
|
+
"--text-xs": "0.75rem",
|
|
99
|
+
"--tint": "10%",
|
|
100
|
+
"--tint-strong": "30%",
|
|
101
|
+
"--warning": "light-dark(oklch(0.72 0.16 90), oklch(0.82 0.16 90))",
|
|
102
|
+
"--warning-foreground": "light-dark(oklch(0.2 0.05 80), oklch(0.18 0.05 80))",
|
|
103
|
+
"--z-docked": "20",
|
|
104
|
+
"--z-popover": "50",
|
|
105
|
+
"--z-sticky": "10",
|
|
106
|
+
"--z-toast": "100",
|
|
107
|
+
"--z-tooltip": "1000"
|
|
108
|
+
}, A = { shared: ":root" }, Ie = /^--[a-z][a-z0-9-]*$/i, Le = /[;{}]/;
|
|
42
109
|
function j(e = {}) {
|
|
43
110
|
return {
|
|
44
111
|
mode: e.mode ?? "light",
|
|
@@ -47,12 +114,23 @@ function j(e = {}) {
|
|
|
47
114
|
dark: { ...e.dark ?? {} }
|
|
48
115
|
};
|
|
49
116
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
117
|
+
function M(e, t = "light") {
|
|
118
|
+
let n = j({ mode: t });
|
|
119
|
+
e.radius && (n.shared["--radius"] = e.radius), e.radiusSm && (n.shared["--radius-sm"] = e.radiusSm);
|
|
120
|
+
for (let [t, r] of Object.entries(e.colors ?? {})) {
|
|
121
|
+
if (!r) continue;
|
|
122
|
+
let e = `--${t}`, [i, a] = I(r) ?? [r, r];
|
|
123
|
+
n.light[e] = i, n.dark[e] = a;
|
|
124
|
+
}
|
|
125
|
+
for (let [t, r] of Object.entries(e.vars ?? {})) n.shared[`--${t}`] = r;
|
|
126
|
+
return n;
|
|
127
|
+
}
|
|
128
|
+
function N(e) {
|
|
129
|
+
return Ie.test(e);
|
|
52
130
|
}
|
|
53
|
-
function
|
|
131
|
+
function P(e, t = !0) {
|
|
54
132
|
return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
|
|
55
|
-
if (!
|
|
133
|
+
if (!N(e)) {
|
|
56
134
|
if (!t) return [];
|
|
57
135
|
throw TypeError(`Invalid CSS variable name: ${e}`);
|
|
58
136
|
}
|
|
@@ -60,97 +138,106 @@ function M(e, t = !0) {
|
|
|
60
138
|
let t = e.charCodeAt(0);
|
|
61
139
|
return t < 32 || t === 127;
|
|
62
140
|
});
|
|
63
|
-
if (
|
|
141
|
+
if (Le.test(r) || i) {
|
|
64
142
|
if (!t) return [];
|
|
65
143
|
throw TypeError(`Unsafe CSS value for ${e}.`);
|
|
66
144
|
}
|
|
67
145
|
return [[e, r]];
|
|
68
146
|
}).sort(([e], [t]) => e.localeCompare(t));
|
|
69
147
|
}
|
|
70
|
-
function
|
|
148
|
+
function F(e, t) {
|
|
71
149
|
let n = e.trim();
|
|
72
|
-
if (n.length === 0 ||
|
|
150
|
+
if (n.length === 0 || Le.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
|
|
151
|
+
return n;
|
|
152
|
+
}
|
|
153
|
+
function I(e) {
|
|
154
|
+
let t = e.trim();
|
|
155
|
+
if (!t.startsWith("light-dark(") || !t.endsWith(")")) return null;
|
|
156
|
+
let n = t.slice(11, -1), r = 0;
|
|
157
|
+
for (let e = 0; e < n.length; e++) {
|
|
158
|
+
let t = n[e];
|
|
159
|
+
if (t === "(") r++;
|
|
160
|
+
else if (t === ")") r--;
|
|
161
|
+
else if (t === "," && r === 0) return [n.slice(0, e).trim(), n.slice(e + 1).trim()];
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
function L(e, t) {
|
|
166
|
+
let n = Fe[e], r = n ? I(n) : null;
|
|
167
|
+
return r ? r[t === "light" ? 0 : 1] : void 0;
|
|
168
|
+
}
|
|
169
|
+
function Re(e) {
|
|
170
|
+
let t = /* @__PURE__ */ new Set([...Object.keys(e.light), ...Object.keys(e.dark)]), n = {};
|
|
171
|
+
for (let r of t) {
|
|
172
|
+
let t = e.light[r]?.trim() || void 0, i = e.dark[r]?.trim() || void 0, a = t ?? L(r, "light") ?? i, o = i ?? L(r, "dark") ?? t;
|
|
173
|
+
!a || !o || (n[r] = a === o ? a : `light-dark(${a}, ${o})`);
|
|
174
|
+
}
|
|
73
175
|
return n;
|
|
74
176
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
177
|
+
function R(e) {
|
|
178
|
+
return {
|
|
179
|
+
...e.shared,
|
|
180
|
+
...Re(e)
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function z(e, t = {}) {
|
|
184
|
+
let n = F((t.selectors ?? A).shared, "shared"), r = P(R(e)), i = t.banner === !1 ? null : `/* ${t.banner ?? "Themelia UI theme overrides"} */`, a = r.length ? [
|
|
185
|
+
`${n} {`,
|
|
80
186
|
...r.map(([e, t]) => `\t${e}: ${t};`),
|
|
81
187
|
"}"
|
|
82
|
-
];
|
|
83
|
-
return
|
|
84
|
-
`@media ${n} {`,
|
|
85
|
-
...i.map((e) => `\t${e}`),
|
|
86
|
-
"}"
|
|
87
|
-
].join("\n") : i.join("\n");
|
|
88
|
-
}
|
|
89
|
-
function F(e, t = {}) {
|
|
90
|
-
let n = t.selectors ?? Ie, r = [
|
|
91
|
-
P(N(n.shared, "shared"), e.shared),
|
|
92
|
-
n.systemLight ? P(N(n.systemLight, "systemLight"), e.light, "(prefers-color-scheme: light)") : null,
|
|
93
|
-
n.systemDark ? P(N(n.systemDark, "systemDark"), e.dark, "(prefers-color-scheme: dark)") : null,
|
|
94
|
-
P(N(n.light, "light"), e.light),
|
|
95
|
-
P(N(n.dark, "dark"), e.dark)
|
|
96
|
-
].filter((e) => e !== null), i = t.banner === !1 ? null : `/* ${t.banner ?? "Themelia UI theme overrides"} */`;
|
|
97
|
-
return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
|
|
188
|
+
].join("\n") : "/* No explicit overrides. */";
|
|
189
|
+
return `${[...i ? [i] : [], a].join("\n\n")}\n`;
|
|
98
190
|
}
|
|
99
|
-
function
|
|
100
|
-
let t =
|
|
191
|
+
function B(e = {}) {
|
|
192
|
+
let t = a(i, e), { locale: n, formatRelativeTime: r, ...o } = t.dates;
|
|
101
193
|
return {
|
|
102
194
|
...t,
|
|
103
|
-
dates:
|
|
195
|
+
dates: o
|
|
104
196
|
};
|
|
105
197
|
}
|
|
106
|
-
function
|
|
107
|
-
let t =
|
|
198
|
+
function V(e = {}) {
|
|
199
|
+
let t = B(e);
|
|
108
200
|
return `import type { UIConfig } from "themelia-ui/ui-provider"\n\nexport const uiConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig\n`;
|
|
109
201
|
}
|
|
110
|
-
function
|
|
202
|
+
function ze(e, t = e.mode) {
|
|
111
203
|
return {
|
|
112
204
|
...e.shared,
|
|
113
205
|
...e[t]
|
|
114
206
|
};
|
|
115
207
|
}
|
|
116
|
-
function
|
|
117
|
-
return Object.fromEntries(
|
|
208
|
+
function H(e) {
|
|
209
|
+
return Object.fromEntries(P(R(e), !1));
|
|
118
210
|
}
|
|
119
|
-
function
|
|
120
|
-
return
|
|
211
|
+
function Be(e) {
|
|
212
|
+
return P(R(e), !1).length;
|
|
121
213
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
return {
|
|
125
|
-
shared: t,
|
|
126
|
-
light: `${t},\n${t}.light,\n.light ${t}`,
|
|
127
|
-
dark: `${t}.dark,\n.dark ${t}`
|
|
128
|
-
};
|
|
214
|
+
function Ve(e) {
|
|
215
|
+
return { shared: F(e, "shared") };
|
|
129
216
|
}
|
|
130
|
-
function
|
|
131
|
-
let i = j(r.resolvedTheme ?? e), a =
|
|
217
|
+
function He(e, t = "theme.css", n = {}, r = {}) {
|
|
218
|
+
let i = j(r.resolvedTheme ?? e), a = B(r.providerConfig);
|
|
132
219
|
return {
|
|
133
220
|
fileName: t,
|
|
134
|
-
cssText:
|
|
221
|
+
cssText: z(i, {
|
|
135
222
|
...n,
|
|
136
223
|
banner: n.banner ?? "Themelia UI complete theme"
|
|
137
224
|
}),
|
|
138
|
-
overrideCssText:
|
|
225
|
+
overrideCssText: z(e, n),
|
|
139
226
|
theme: j(e),
|
|
140
227
|
resolvedTheme: i,
|
|
141
|
-
overrideCount:
|
|
228
|
+
overrideCount: Be(e),
|
|
142
229
|
providerFileName: r.providerFileName ?? "ui.config.ts",
|
|
143
230
|
providerConfig: a,
|
|
144
|
-
providerConfigText:
|
|
231
|
+
providerConfigText: V(a)
|
|
145
232
|
};
|
|
146
233
|
}
|
|
147
|
-
function
|
|
234
|
+
function Ue({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
|
|
148
235
|
if (typeof document > "u" || typeof URL > "u") throw Error("Downloading needs a browser document. Pass onExport for other environments.");
|
|
149
236
|
let r = URL.createObjectURL(new Blob([t], { type: n })), i = document.createElement("a");
|
|
150
237
|
i.href = r, i.download = e, i.hidden = !0, document.body.append(i), i.click(), i.remove(), URL.revokeObjectURL(r);
|
|
151
238
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
239
|
+
function We(e) {
|
|
240
|
+
Ue({
|
|
154
241
|
fileName: e.fileName,
|
|
155
242
|
text: e.cssText,
|
|
156
243
|
mimeType: "text/css;charset=utf-8"
|
|
@@ -158,19 +245,19 @@ function He(e) {
|
|
|
158
245
|
}
|
|
159
246
|
//#endregion
|
|
160
247
|
//#region src/components/features/theme-tweaker/theme-scope.tsx
|
|
161
|
-
var
|
|
162
|
-
return /* @__PURE__ */
|
|
248
|
+
var Ge = w(function({ theme: e, mode: t = e.mode, className: n, style: i, children: a, ...o }, s) {
|
|
249
|
+
return /* @__PURE__ */ O("div", {
|
|
163
250
|
...o,
|
|
164
251
|
ref: s,
|
|
165
|
-
"data-theme":
|
|
166
|
-
className:
|
|
252
|
+
"data-theme": t,
|
|
253
|
+
className: r("theme-scope--component", t, n),
|
|
167
254
|
style: {
|
|
168
|
-
...
|
|
255
|
+
...H(e),
|
|
169
256
|
...i
|
|
170
257
|
},
|
|
171
258
|
children: a
|
|
172
259
|
});
|
|
173
|
-
}),
|
|
260
|
+
}), Ke = {
|
|
174
261
|
title: "Application defaults",
|
|
175
262
|
description: "The display behaviour that ships alongside the exported CSS.",
|
|
176
263
|
boundaryTitle: "Apply defaults through your provider",
|
|
@@ -251,7 +338,7 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
|
|
|
251
338
|
friday: "Friday",
|
|
252
339
|
saturday: "Saturday"
|
|
253
340
|
}
|
|
254
|
-
},
|
|
341
|
+
}, U = {
|
|
255
342
|
root: "theme-tweaker__root___A8noi",
|
|
256
343
|
rootScoped: "theme-tweaker__rootScoped___8ySpW",
|
|
257
344
|
layout: "theme-tweaker__layout___pgPlx",
|
|
@@ -265,9 +352,7 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
|
|
|
265
352
|
fieldLabel: "theme-tweaker__fieldLabel___hjd9f",
|
|
266
353
|
controlRow: "theme-tweaker__controlRow___9UrLA",
|
|
267
354
|
controlInput: "theme-tweaker__controlInput___TlI8N",
|
|
268
|
-
monoInput: "theme-tweaker__monoInput___VKG7r",
|
|
269
355
|
numberInput: "theme-tweaker__numberInput___MBHRd",
|
|
270
|
-
empty: "theme-tweaker__empty___qgrD1",
|
|
271
356
|
providerSettings: "theme-tweaker__providerSettings___4aCH6",
|
|
272
357
|
settingsGrid: "theme-tweaker__settingsGrid___h_Q0S",
|
|
273
358
|
exportFooter: "theme-tweaker__exportFooter___WpVsY",
|
|
@@ -275,7 +360,7 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
|
|
|
275
360
|
exportBlockHeader: "theme-tweaker__exportBlockHeader___Xpy0a",
|
|
276
361
|
exportCode: "theme-tweaker__exportCode___SXgrx",
|
|
277
362
|
previewCheck: "theme-tweaker__previewCheck___5vqEH"
|
|
278
|
-
},
|
|
363
|
+
}, qe = [
|
|
279
364
|
"sunday",
|
|
280
365
|
"monday",
|
|
281
366
|
"tuesday",
|
|
@@ -284,63 +369,62 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
|
|
|
284
369
|
"friday",
|
|
285
370
|
"saturday"
|
|
286
371
|
];
|
|
287
|
-
function
|
|
372
|
+
function W(e, t) {
|
|
288
373
|
return e.map((e) => ({
|
|
289
374
|
value: e,
|
|
290
375
|
label: t.options[e] ?? e.replaceAll("-", " ").replace(/\b\w/g, (e) => e.toUpperCase())
|
|
291
376
|
}));
|
|
292
377
|
}
|
|
293
|
-
function
|
|
294
|
-
let
|
|
378
|
+
function Je({ config: t, onChange: n, strings: i = Ke, className: a }) {
|
|
379
|
+
let s = B(t), c = (e, t, r) => {
|
|
295
380
|
n({
|
|
296
|
-
...
|
|
381
|
+
...s,
|
|
297
382
|
[e]: {
|
|
298
|
-
...
|
|
383
|
+
...s[e],
|
|
299
384
|
[t]: r
|
|
300
385
|
}
|
|
301
386
|
});
|
|
302
|
-
},
|
|
387
|
+
}, l = (e, t) => {
|
|
303
388
|
n({
|
|
304
|
-
...
|
|
389
|
+
...s,
|
|
305
390
|
[e]: t
|
|
306
391
|
});
|
|
307
392
|
};
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
|
|
310
|
-
className: e("ui-config-settings--component", V.providerSettings, c),
|
|
393
|
+
return /* @__PURE__ */ k(u, {
|
|
394
|
+
className: r("ui-config-settings--component", U.providerSettings, a),
|
|
311
395
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
title:
|
|
314
|
-
description:
|
|
396
|
+
/* @__PURE__ */ O(g, {
|
|
397
|
+
title: i.title,
|
|
398
|
+
description: i.description
|
|
315
399
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ k(h, {
|
|
317
401
|
tone: "info",
|
|
318
402
|
role: "note",
|
|
319
403
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ O(Ce, { "aria-hidden": !0 }),
|
|
405
|
+
/* @__PURE__ */ O(ne, { children: i.boundaryTitle }),
|
|
406
|
+
/* @__PURE__ */ O(p, { children: i.boundaryDescription }),
|
|
407
|
+
/* @__PURE__ */ O(m, { items: [
|
|
324
408
|
{
|
|
325
|
-
label:
|
|
326
|
-
value:
|
|
409
|
+
label: i.summary.locale,
|
|
410
|
+
value: s.formatting?.locale ?? i.options.default
|
|
327
411
|
},
|
|
328
412
|
{
|
|
329
|
-
label:
|
|
330
|
-
value:
|
|
413
|
+
label: i.summary.currency,
|
|
414
|
+
value: s.money?.defaultCurrency ?? i.options.default
|
|
331
415
|
},
|
|
332
416
|
{
|
|
333
|
-
label:
|
|
334
|
-
value:
|
|
417
|
+
label: i.summary.density,
|
|
418
|
+
value: i.options[s.density ?? "default"] ?? s.density
|
|
335
419
|
},
|
|
336
420
|
{
|
|
337
|
-
label:
|
|
338
|
-
value:
|
|
421
|
+
label: i.summary.textSize,
|
|
422
|
+
value: i.options[s.typography?.defaultTextSize ?? "sm"] ?? s.typography?.defaultTextSize
|
|
339
423
|
}
|
|
340
424
|
] })
|
|
341
425
|
]
|
|
342
426
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ O(o, {
|
|
344
428
|
multiple: !0,
|
|
345
429
|
defaultValue: ["regional"],
|
|
346
430
|
surface: "bordered",
|
|
@@ -348,35 +432,38 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
|
|
|
348
432
|
items: [
|
|
349
433
|
{
|
|
350
434
|
value: "regional",
|
|
351
|
-
title:
|
|
352
|
-
description:
|
|
353
|
-
content: /* @__PURE__ */
|
|
354
|
-
className:
|
|
435
|
+
title: i.sections.regional.title,
|
|
436
|
+
description: i.sections.regional.description,
|
|
437
|
+
content: /* @__PURE__ */ k("div", {
|
|
438
|
+
className: U.settingsGrid,
|
|
355
439
|
children: [
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
-
label:
|
|
358
|
-
children: /* @__PURE__ */
|
|
359
|
-
value:
|
|
360
|
-
onChange: (e) =>
|
|
440
|
+
/* @__PURE__ */ O(y, {
|
|
441
|
+
label: i.labels.locale,
|
|
442
|
+
children: /* @__PURE__ */ O(v, {
|
|
443
|
+
value: s.formatting?.locale ?? "",
|
|
444
|
+
onChange: (e) => c("formatting", "locale", e.target.value)
|
|
361
445
|
})
|
|
362
446
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
label:
|
|
365
|
-
children: /* @__PURE__ */
|
|
366
|
-
value: String(
|
|
367
|
-
options:
|
|
447
|
+
/* @__PURE__ */ O(y, {
|
|
448
|
+
label: i.labels.firstDay,
|
|
449
|
+
children: /* @__PURE__ */ O(_, {
|
|
450
|
+
value: String(s.dates?.weekStartsOn ?? 1),
|
|
451
|
+
options: qe.map((e, t) => ({
|
|
368
452
|
value: String(t),
|
|
369
|
-
label:
|
|
453
|
+
label: i.options[e] ?? e
|
|
370
454
|
})),
|
|
371
|
-
onValueChange: (e) => e !== void 0 &&
|
|
455
|
+
onValueChange: (e) => e !== void 0 && c("dates", "weekStartsOn", Number(e))
|
|
372
456
|
})
|
|
373
457
|
}),
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
label:
|
|
376
|
-
children: /* @__PURE__ */
|
|
377
|
-
value:
|
|
378
|
-
onChange: (e) =>
|
|
379
|
-
className:
|
|
458
|
+
/* @__PURE__ */ O(y, {
|
|
459
|
+
label: i.labels.dateFormat,
|
|
460
|
+
children: /* @__PURE__ */ O(v, {
|
|
461
|
+
value: s.dates?.format ?? "",
|
|
462
|
+
onChange: (e) => c("dates", "format", e.target.value),
|
|
463
|
+
className: e({
|
|
464
|
+
size: "inherit",
|
|
465
|
+
mono: !0
|
|
466
|
+
})
|
|
380
467
|
})
|
|
381
468
|
})
|
|
382
469
|
]
|
|
@@ -384,46 +471,46 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
|
|
|
384
471
|
},
|
|
385
472
|
{
|
|
386
473
|
value: "presentation",
|
|
387
|
-
title:
|
|
388
|
-
description:
|
|
389
|
-
content: /* @__PURE__ */
|
|
390
|
-
className:
|
|
474
|
+
title: i.sections.presentation.title,
|
|
475
|
+
description: i.sections.presentation.description,
|
|
476
|
+
content: /* @__PURE__ */ k("div", {
|
|
477
|
+
className: U.settingsGrid,
|
|
391
478
|
children: [
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
label:
|
|
394
|
-
children: /* @__PURE__ */
|
|
395
|
-
value:
|
|
396
|
-
options:
|
|
479
|
+
/* @__PURE__ */ O(y, {
|
|
480
|
+
label: i.labels.colorScheme,
|
|
481
|
+
children: /* @__PURE__ */ O(_, {
|
|
482
|
+
value: s.colorScheme,
|
|
483
|
+
options: W([
|
|
397
484
|
"light",
|
|
398
485
|
"dark",
|
|
399
486
|
"system"
|
|
400
|
-
],
|
|
401
|
-
onValueChange: (e) => e !== void 0 &&
|
|
487
|
+
], i),
|
|
488
|
+
onValueChange: (e) => e !== void 0 && l("colorScheme", e)
|
|
402
489
|
})
|
|
403
490
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
405
|
-
label:
|
|
406
|
-
description:
|
|
407
|
-
value:
|
|
408
|
-
onValueChange: (e) =>
|
|
491
|
+
/* @__PURE__ */ O(ie, {
|
|
492
|
+
label: i.labels.darkMenus,
|
|
493
|
+
description: i.darkMenusDescription,
|
|
494
|
+
value: s.overlay?.darkMenus ?? !0,
|
|
495
|
+
onValueChange: (e) => c("overlay", "darkMenus", e)
|
|
409
496
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
label:
|
|
412
|
-
children: /* @__PURE__ */
|
|
413
|
-
value:
|
|
414
|
-
options:
|
|
497
|
+
/* @__PURE__ */ O(y, {
|
|
498
|
+
label: i.labels.density,
|
|
499
|
+
children: /* @__PURE__ */ O(_, {
|
|
500
|
+
value: s.density,
|
|
501
|
+
options: W([
|
|
415
502
|
"compact",
|
|
416
503
|
"default",
|
|
417
504
|
"comfortable"
|
|
418
|
-
],
|
|
419
|
-
onValueChange: (e) => e !== void 0 &&
|
|
505
|
+
], i),
|
|
506
|
+
onValueChange: (e) => e !== void 0 && l("density", e)
|
|
420
507
|
})
|
|
421
508
|
}),
|
|
422
|
-
/* @__PURE__ */
|
|
423
|
-
label:
|
|
424
|
-
children: /* @__PURE__ */
|
|
425
|
-
value:
|
|
426
|
-
options:
|
|
509
|
+
/* @__PURE__ */ O(y, {
|
|
510
|
+
label: i.labels.textSize,
|
|
511
|
+
children: /* @__PURE__ */ O(_, {
|
|
512
|
+
value: s.typography?.defaultTextSize,
|
|
513
|
+
options: W([
|
|
427
514
|
"inherit",
|
|
428
515
|
"xs",
|
|
429
516
|
"pxs",
|
|
@@ -431,30 +518,30 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
|
|
|
431
518
|
"base",
|
|
432
519
|
"lg",
|
|
433
520
|
"xl"
|
|
434
|
-
],
|
|
435
|
-
onValueChange: (e) => e !== void 0 &&
|
|
521
|
+
], i),
|
|
522
|
+
onValueChange: (e) => e !== void 0 && c("typography", "defaultTextSize", e)
|
|
436
523
|
})
|
|
437
524
|
}),
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
label:
|
|
440
|
-
children: /* @__PURE__ */
|
|
441
|
-
"aria-label":
|
|
442
|
-
value:
|
|
525
|
+
/* @__PURE__ */ O(y, {
|
|
526
|
+
label: i.labels.scale,
|
|
527
|
+
children: /* @__PURE__ */ O(x, {
|
|
528
|
+
"aria-label": i.labels.scale,
|
|
529
|
+
value: s.scale ?? 1,
|
|
443
530
|
min: .75,
|
|
444
531
|
max: 1.35,
|
|
445
532
|
step: .025,
|
|
446
|
-
onValueChange: (e) =>
|
|
533
|
+
onValueChange: (e) => l("scale", e)
|
|
447
534
|
})
|
|
448
535
|
}),
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
label:
|
|
451
|
-
children: /* @__PURE__ */
|
|
452
|
-
"aria-label":
|
|
453
|
-
value:
|
|
536
|
+
/* @__PURE__ */ O(y, {
|
|
537
|
+
label: i.labels.typographyScale,
|
|
538
|
+
children: /* @__PURE__ */ O(x, {
|
|
539
|
+
"aria-label": i.labels.typographyScale,
|
|
540
|
+
value: s.typography?.scale ?? 1,
|
|
454
541
|
min: .85,
|
|
455
542
|
max: 1.25,
|
|
456
543
|
step: .025,
|
|
457
|
-
onValueChange: (e) =>
|
|
544
|
+
onValueChange: (e) => c("typography", "scale", e)
|
|
458
545
|
})
|
|
459
546
|
})
|
|
460
547
|
]
|
|
@@ -462,62 +549,62 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
|
|
|
462
549
|
},
|
|
463
550
|
{
|
|
464
551
|
value: "money",
|
|
465
|
-
title:
|
|
466
|
-
description:
|
|
467
|
-
content: /* @__PURE__ */
|
|
468
|
-
className:
|
|
552
|
+
title: i.sections.money.title,
|
|
553
|
+
description: i.sections.money.description,
|
|
554
|
+
content: /* @__PURE__ */ k("div", {
|
|
555
|
+
className: U.settingsGrid,
|
|
469
556
|
children: [
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
label:
|
|
472
|
-
children: /* @__PURE__ */
|
|
473
|
-
value:
|
|
474
|
-
onChange: (e) =>
|
|
557
|
+
/* @__PURE__ */ O(y, {
|
|
558
|
+
label: i.labels.defaultCurrency,
|
|
559
|
+
children: /* @__PURE__ */ O(v, {
|
|
560
|
+
value: s.money?.defaultCurrency ?? "",
|
|
561
|
+
onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
475
562
|
})
|
|
476
563
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
label:
|
|
479
|
-
children: /* @__PURE__ */
|
|
480
|
-
value:
|
|
481
|
-
placeholder:
|
|
482
|
-
onChange: (e) =>
|
|
564
|
+
/* @__PURE__ */ O(y, {
|
|
565
|
+
label: i.labels.displayCurrency,
|
|
566
|
+
children: /* @__PURE__ */ O(v, {
|
|
567
|
+
value: s.money?.displayCurrency ?? "",
|
|
568
|
+
placeholder: i.displayCurrencyPlaceholder,
|
|
569
|
+
onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
483
570
|
})
|
|
484
571
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
label:
|
|
487
|
-
children: /* @__PURE__ */
|
|
488
|
-
value:
|
|
489
|
-
options:
|
|
572
|
+
/* @__PURE__ */ O(y, {
|
|
573
|
+
label: i.labels.moneyFormat,
|
|
574
|
+
children: /* @__PURE__ */ O(_, {
|
|
575
|
+
value: s.money?.formatMode,
|
|
576
|
+
options: W([
|
|
490
577
|
"decimal",
|
|
491
578
|
"with-code",
|
|
492
579
|
"with-symbol"
|
|
493
|
-
],
|
|
494
|
-
onValueChange: (e) => e !== void 0 &&
|
|
580
|
+
], i),
|
|
581
|
+
onValueChange: (e) => e !== void 0 && c("money", "formatMode", e)
|
|
495
582
|
})
|
|
496
583
|
}),
|
|
497
|
-
/* @__PURE__ */
|
|
498
|
-
label:
|
|
499
|
-
description:
|
|
500
|
-
value:
|
|
501
|
-
onValueChange: (e) =>
|
|
584
|
+
/* @__PURE__ */ O(ie, {
|
|
585
|
+
label: i.labels.dualPricing,
|
|
586
|
+
description: i.dualPricingDescription,
|
|
587
|
+
value: s.money?.dualPricingEnabled ?? !1,
|
|
588
|
+
onValueChange: (e) => c("money", "dualPricingEnabled", e)
|
|
502
589
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
label:
|
|
505
|
-
children: /* @__PURE__ */
|
|
506
|
-
value:
|
|
507
|
-
options:
|
|
590
|
+
/* @__PURE__ */ O(y, {
|
|
591
|
+
label: i.labels.dualPricingMode,
|
|
592
|
+
children: /* @__PURE__ */ O(_, {
|
|
593
|
+
value: s.money?.displayMode,
|
|
594
|
+
options: W([
|
|
508
595
|
"primary-only",
|
|
509
596
|
"dual",
|
|
510
597
|
"dynamic"
|
|
511
|
-
],
|
|
512
|
-
onValueChange: (e) => e !== void 0 &&
|
|
598
|
+
], i),
|
|
599
|
+
onValueChange: (e) => e !== void 0 && c("money", "displayMode", e)
|
|
513
600
|
})
|
|
514
601
|
}),
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
label:
|
|
517
|
-
children: /* @__PURE__ */
|
|
518
|
-
value:
|
|
519
|
-
options:
|
|
520
|
-
onValueChange: (e) => e !== void 0 &&
|
|
602
|
+
/* @__PURE__ */ O(y, {
|
|
603
|
+
label: i.labels.dualPricingLayout,
|
|
604
|
+
children: /* @__PURE__ */ O(_, {
|
|
605
|
+
value: s.money?.layout,
|
|
606
|
+
options: W(["inline", "stacked"], i),
|
|
607
|
+
onValueChange: (e) => e !== void 0 && c("money", "layout", e)
|
|
521
608
|
})
|
|
522
609
|
})
|
|
523
610
|
]
|
|
@@ -530,114 +617,130 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
|
|
|
530
617
|
}
|
|
531
618
|
//#endregion
|
|
532
619
|
//#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
|
|
533
|
-
var
|
|
620
|
+
var Ye = [
|
|
621
|
+
"--background",
|
|
622
|
+
"--foreground",
|
|
623
|
+
"--card",
|
|
624
|
+
"--card-foreground",
|
|
625
|
+
"--popover",
|
|
626
|
+
"--popover-foreground",
|
|
627
|
+
"--muted",
|
|
628
|
+
"--muted-foreground",
|
|
629
|
+
"--accent",
|
|
630
|
+
"--accent-foreground",
|
|
631
|
+
"--border",
|
|
632
|
+
"--input",
|
|
633
|
+
"--ring"
|
|
634
|
+
], Xe = [
|
|
635
|
+
"--primary",
|
|
636
|
+
"--primary-foreground",
|
|
637
|
+
"--secondary",
|
|
638
|
+
"--secondary-foreground",
|
|
639
|
+
"--destructive",
|
|
640
|
+
"--destructive-foreground"
|
|
641
|
+
], Ze = [
|
|
642
|
+
"--chart-1",
|
|
643
|
+
"--chart-2",
|
|
644
|
+
"--chart-3",
|
|
645
|
+
"--chart-4",
|
|
646
|
+
"--chart-5"
|
|
647
|
+
], G = [
|
|
648
|
+
"--sidebar",
|
|
649
|
+
"--sidebar-foreground",
|
|
650
|
+
"--sidebar-accent",
|
|
651
|
+
"--sidebar-accent-foreground",
|
|
652
|
+
"--sidebar-border",
|
|
653
|
+
"--sidebar-ring"
|
|
654
|
+
], K = [
|
|
534
655
|
"--success",
|
|
535
656
|
"--success-foreground",
|
|
536
657
|
"--info",
|
|
537
658
|
"--info-foreground",
|
|
538
659
|
"--warning",
|
|
539
660
|
"--warning-foreground",
|
|
540
|
-
"--
|
|
541
|
-
|
|
542
|
-
"--primary-accent",
|
|
543
|
-
"--inverse-background",
|
|
544
|
-
"--inverse-foreground",
|
|
545
|
-
"--inverse-muted",
|
|
546
|
-
"--inverse-subtle",
|
|
547
|
-
"--inverse-disabled",
|
|
548
|
-
"--inverse-surface",
|
|
549
|
-
"--inverse-surface-strong",
|
|
550
|
-
"--inverse-border",
|
|
551
|
-
"--inverse-decoration"
|
|
552
|
-
], qe = ["--overlay-backdrop"], Je = [
|
|
553
|
-
"--font-heading",
|
|
661
|
+
"--link"
|
|
662
|
+
], Qe = ["--overlay-backdrop"], $e = ["--tint", "--tint-strong"], et = [
|
|
554
663
|
"--font-sans",
|
|
555
|
-
"--font-
|
|
664
|
+
"--font-heading",
|
|
556
665
|
"--font-mono"
|
|
557
|
-
],
|
|
558
|
-
"
|
|
559
|
-
"
|
|
560
|
-
"
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"
|
|
564
|
-
"
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
"--
|
|
568
|
-
"--
|
|
569
|
-
"--
|
|
570
|
-
"--
|
|
571
|
-
],
|
|
572
|
-
"--
|
|
573
|
-
"--
|
|
574
|
-
"--
|
|
575
|
-
"--
|
|
576
|
-
|
|
577
|
-
"--
|
|
578
|
-
"--
|
|
579
|
-
"--icon",
|
|
580
|
-
"--
|
|
581
|
-
|
|
582
|
-
"--
|
|
583
|
-
|
|
584
|
-
"--
|
|
585
|
-
"--
|
|
586
|
-
|
|
587
|
-
"--
|
|
588
|
-
"--
|
|
589
|
-
"--
|
|
590
|
-
|
|
591
|
-
"--adaptive-grid-min-lg"
|
|
592
|
-
], q = {
|
|
666
|
+
], q = [
|
|
667
|
+
"--text-scale",
|
|
668
|
+
"--text-xs",
|
|
669
|
+
"--text-pxs",
|
|
670
|
+
"--text-sm",
|
|
671
|
+
"--text-base",
|
|
672
|
+
"--text-lg",
|
|
673
|
+
"--text-xl",
|
|
674
|
+
"--text-2xl"
|
|
675
|
+
], J = [
|
|
676
|
+
"--radius",
|
|
677
|
+
"--radius-sm",
|
|
678
|
+
"--radius-pill",
|
|
679
|
+
"--border-width"
|
|
680
|
+
], tt = ["--shadow", "--shadow-lg"], nt = [
|
|
681
|
+
"--padding",
|
|
682
|
+
"--padding-sm",
|
|
683
|
+
"--gap",
|
|
684
|
+
"--gap-sm"
|
|
685
|
+
], Y = [
|
|
686
|
+
"--control-height",
|
|
687
|
+
"--control-height-sm",
|
|
688
|
+
"--icon-size",
|
|
689
|
+
"--icon-size-sm"
|
|
690
|
+
], X = [
|
|
691
|
+
"--duration-fast",
|
|
692
|
+
"--duration",
|
|
693
|
+
"--ease",
|
|
694
|
+
"--disabled-opacity"
|
|
695
|
+
], Z = [
|
|
696
|
+
"--sidebar-width",
|
|
697
|
+
"--header-height",
|
|
698
|
+
"--content-width"
|
|
699
|
+
], Q = {
|
|
593
700
|
"--background": "The page's canvas.",
|
|
594
701
|
"--foreground": "Text and icons on the canvas.",
|
|
702
|
+
"--card": "Framed regions: cards, table frames, panels.",
|
|
703
|
+
"--popover": "Anchored popups, menus, palettes and toasts.",
|
|
704
|
+
"--muted": "Wells and placeholders.",
|
|
705
|
+
"--muted-foreground": "Supporting text: descriptions, metadata, hints.",
|
|
706
|
+
"--accent": "The one hover and current-item fill.",
|
|
707
|
+
"--border": "Every divider and frame.",
|
|
708
|
+
"--input": "The frame of a control.",
|
|
709
|
+
"--ring": "The focus outline.",
|
|
595
710
|
"--primary": "Brand and primary-action colour.",
|
|
596
711
|
"--primary-foreground": "Text and icons on a solid primary fill.",
|
|
597
|
-
"--
|
|
598
|
-
"--
|
|
599
|
-
"--
|
|
600
|
-
"--
|
|
601
|
-
"--
|
|
602
|
-
"--
|
|
603
|
-
"--
|
|
604
|
-
"--
|
|
605
|
-
"--
|
|
606
|
-
"--
|
|
607
|
-
"--
|
|
608
|
-
"--
|
|
609
|
-
"--
|
|
610
|
-
"--
|
|
611
|
-
"--
|
|
612
|
-
"--
|
|
613
|
-
"--
|
|
614
|
-
"--
|
|
615
|
-
"--
|
|
616
|
-
"--
|
|
617
|
-
"--
|
|
618
|
-
"--
|
|
619
|
-
"--
|
|
620
|
-
|
|
621
|
-
"--
|
|
622
|
-
"--
|
|
623
|
-
"--
|
|
624
|
-
"--
|
|
625
|
-
"--
|
|
626
|
-
"--
|
|
627
|
-
"--
|
|
628
|
-
|
|
629
|
-
"--avatar": "Default avatar size",
|
|
630
|
-
"--shell-header-height": "Header height",
|
|
631
|
-
"--sidebar-width": "Sidebar width",
|
|
632
|
-
"--content-width-sm": "Small content width",
|
|
633
|
-
"--content-width-md": "Medium content width",
|
|
634
|
-
"--content-width-lg": "Large content width",
|
|
635
|
-
"--content-width-xl": "Extra-large content width",
|
|
636
|
-
"--content-width-2xl": "Maximum content width",
|
|
637
|
-
"--adaptive-grid-min-sm": "Compact adaptive column",
|
|
638
|
-
"--adaptive-grid-min-md": "Default adaptive column",
|
|
639
|
-
"--adaptive-grid-min-lg": "Spacious adaptive column"
|
|
640
|
-
}, Xe = {
|
|
712
|
+
"--secondary": "The quiet solid fill.",
|
|
713
|
+
"--destructive": "Destructive actions and errors.",
|
|
714
|
+
"--link": "Inline links.",
|
|
715
|
+
"--overlay-backdrop": "The scrim behind dialogs, sheets and drawers.",
|
|
716
|
+
"--tint": "The soft fill a tone paints: a selected row, a soft badge, an alert's wash.",
|
|
717
|
+
"--tint-strong": "The line a tone paints: a tinted edge or rule.",
|
|
718
|
+
"--font-sans": "The interface font.",
|
|
719
|
+
"--font-heading": "Headings; the interface font when unset.",
|
|
720
|
+
"--font-mono": "Codes, identifiers and keys.",
|
|
721
|
+
"--text-scale": "Multiplies every type size, control labels included; geometry stays put.",
|
|
722
|
+
"--radius": "The container corner: cards, dialogs, popovers, menus.",
|
|
723
|
+
"--radius-sm": "The item corner: controls, rows, chips, badges, tooltips.",
|
|
724
|
+
"--radius-pill": "The round end of pills, switches and tracks.",
|
|
725
|
+
"--border-width": "Every hairline; marks and focus draw at twice it.",
|
|
726
|
+
"--shadow": "Raised: a framed card, a raised chip, a thumb.",
|
|
727
|
+
"--shadow-lg": "Floating: popovers, menus, dialogs, toasts.",
|
|
728
|
+
"--padding": "Container insets: cards, dialogs, sheets, popovers.",
|
|
729
|
+
"--padding-sm": "Item insets: rows, cells, chips, fields.",
|
|
730
|
+
"--gap": "Between groups: fields, cards, sections.",
|
|
731
|
+
"--gap-sm": "Inside a group: icon and label, title and description.",
|
|
732
|
+
"--control-height": "Buttons, fields, selects and triggers.",
|
|
733
|
+
"--control-height-sm": "The smaller control.",
|
|
734
|
+
"--icon-size": "Icons beside text and inside controls.",
|
|
735
|
+
"--icon-size-sm": "Icons in dense rows and chips.",
|
|
736
|
+
"--duration-fast": "State changes: hover, press, colour.",
|
|
737
|
+
"--duration": "Entrances: popups, dialogs, panels.",
|
|
738
|
+
"--ease": "The easing every transition shares.",
|
|
739
|
+
"--disabled-opacity": "How far a disabled control fades.",
|
|
740
|
+
"--sidebar-width": "The expanded sidebar, for Sidebar and every shell.",
|
|
741
|
+
"--header-height": "Every shell's top bar.",
|
|
742
|
+
"--content-width": "The readable page measure Container uses."
|
|
743
|
+
}, rt = {
|
|
641
744
|
"--radius": {
|
|
642
745
|
type: "range",
|
|
643
746
|
min: 0,
|
|
@@ -654,85 +757,85 @@ var U = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
654
757
|
unit: "rem",
|
|
655
758
|
decimalPlaces: 4
|
|
656
759
|
},
|
|
657
|
-
"--
|
|
760
|
+
"--text-scale": {
|
|
658
761
|
type: "range",
|
|
659
|
-
min: .
|
|
660
|
-
max: 1.
|
|
762
|
+
min: .85,
|
|
763
|
+
max: 1.3,
|
|
661
764
|
step: .025,
|
|
662
765
|
decimalPlaces: 3,
|
|
663
766
|
fallback: 1
|
|
664
767
|
},
|
|
665
|
-
"--
|
|
768
|
+
"--padding": {
|
|
666
769
|
type: "range",
|
|
667
|
-
min:
|
|
668
|
-
max:
|
|
770
|
+
min: .5,
|
|
771
|
+
max: 2,
|
|
669
772
|
step: .0625,
|
|
670
773
|
unit: "rem",
|
|
671
774
|
decimalPlaces: 4
|
|
672
775
|
},
|
|
673
|
-
"--
|
|
776
|
+
"--padding-sm": {
|
|
674
777
|
type: "range",
|
|
675
778
|
min: .25,
|
|
676
|
-
max: 1
|
|
779
|
+
max: 1,
|
|
677
780
|
step: .0625,
|
|
678
781
|
unit: "rem",
|
|
679
782
|
decimalPlaces: 4
|
|
680
783
|
},
|
|
681
|
-
"--
|
|
784
|
+
"--gap": {
|
|
682
785
|
type: "range",
|
|
683
|
-
min: .
|
|
684
|
-
max:
|
|
786
|
+
min: .5,
|
|
787
|
+
max: 2,
|
|
685
788
|
step: .0625,
|
|
686
789
|
unit: "rem",
|
|
687
790
|
decimalPlaces: 4
|
|
688
791
|
},
|
|
689
|
-
"--
|
|
792
|
+
"--gap-sm": {
|
|
690
793
|
type: "range",
|
|
691
794
|
min: .25,
|
|
692
|
-
max: 1
|
|
795
|
+
max: 1,
|
|
693
796
|
step: .0625,
|
|
694
797
|
unit: "rem",
|
|
695
798
|
decimalPlaces: 4
|
|
696
799
|
},
|
|
697
|
-
"--
|
|
800
|
+
"--control-height": {
|
|
698
801
|
type: "range",
|
|
699
|
-
min: .
|
|
700
|
-
max:
|
|
802
|
+
min: 1.75,
|
|
803
|
+
max: 3,
|
|
701
804
|
step: .0625,
|
|
702
805
|
unit: "rem",
|
|
703
806
|
decimalPlaces: 4
|
|
704
807
|
},
|
|
705
|
-
"--
|
|
808
|
+
"--control-height-sm": {
|
|
706
809
|
type: "range",
|
|
707
|
-
min: .5,
|
|
810
|
+
min: 1.5,
|
|
708
811
|
max: 2.5,
|
|
709
812
|
step: .0625,
|
|
710
813
|
unit: "rem",
|
|
711
814
|
decimalPlaces: 4
|
|
712
815
|
},
|
|
713
|
-
"--icon": {
|
|
816
|
+
"--icon-size": {
|
|
714
817
|
type: "range",
|
|
715
818
|
min: .75,
|
|
716
|
-
max:
|
|
819
|
+
max: 1.5,
|
|
717
820
|
step: .0625,
|
|
718
821
|
unit: "rem",
|
|
719
822
|
decimalPlaces: 4
|
|
720
823
|
},
|
|
721
|
-
"--
|
|
824
|
+
"--icon-size-sm": {
|
|
722
825
|
type: "range",
|
|
723
|
-
min:
|
|
724
|
-
max:
|
|
725
|
-
step: .
|
|
826
|
+
min: .5,
|
|
827
|
+
max: 1,
|
|
828
|
+
step: .0625,
|
|
726
829
|
unit: "rem",
|
|
727
|
-
decimalPlaces:
|
|
830
|
+
decimalPlaces: 4
|
|
728
831
|
},
|
|
729
|
-
"--
|
|
832
|
+
"--disabled-opacity": {
|
|
730
833
|
type: "range",
|
|
731
|
-
min: 3,
|
|
732
|
-
max: 7,
|
|
733
|
-
step: .
|
|
734
|
-
|
|
735
|
-
|
|
834
|
+
min: .3,
|
|
835
|
+
max: .7,
|
|
836
|
+
step: .05,
|
|
837
|
+
decimalPlaces: 2,
|
|
838
|
+
fallback: .5
|
|
736
839
|
},
|
|
737
840
|
"--sidebar-width": {
|
|
738
841
|
type: "range",
|
|
@@ -742,109 +845,60 @@ var U = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
742
845
|
unit: "rem",
|
|
743
846
|
decimalPlaces: 2
|
|
744
847
|
},
|
|
745
|
-
"--
|
|
848
|
+
"--header-height": {
|
|
746
849
|
type: "range",
|
|
747
|
-
min:
|
|
748
|
-
max:
|
|
749
|
-
step:
|
|
750
|
-
unit: "rem",
|
|
751
|
-
decimalPlaces: 0
|
|
752
|
-
},
|
|
753
|
-
"--content-width-md": {
|
|
754
|
-
type: "range",
|
|
755
|
-
min: 24,
|
|
756
|
-
max: 80,
|
|
757
|
-
step: 1,
|
|
758
|
-
unit: "rem",
|
|
759
|
-
decimalPlaces: 0
|
|
760
|
-
},
|
|
761
|
-
"--content-width-lg": {
|
|
762
|
-
type: "range",
|
|
763
|
-
min: 32,
|
|
764
|
-
max: 96,
|
|
765
|
-
step: 1,
|
|
850
|
+
min: 3,
|
|
851
|
+
max: 5,
|
|
852
|
+
step: .125,
|
|
766
853
|
unit: "rem",
|
|
767
|
-
decimalPlaces:
|
|
854
|
+
decimalPlaces: 3
|
|
768
855
|
},
|
|
769
|
-
"--content-width
|
|
856
|
+
"--content-width": {
|
|
770
857
|
type: "range",
|
|
771
858
|
min: 40,
|
|
772
|
-
max:
|
|
773
|
-
step: 1,
|
|
774
|
-
unit: "rem",
|
|
775
|
-
decimalPlaces: 0
|
|
776
|
-
},
|
|
777
|
-
"--content-width-2xl": {
|
|
778
|
-
type: "range",
|
|
779
|
-
min: 48,
|
|
780
|
-
max: 120,
|
|
859
|
+
max: 96,
|
|
781
860
|
step: 1,
|
|
782
861
|
unit: "rem",
|
|
783
862
|
decimalPlaces: 0
|
|
784
|
-
},
|
|
785
|
-
"--adaptive-grid-min-sm": {
|
|
786
|
-
type: "range",
|
|
787
|
-
min: 8,
|
|
788
|
-
max: 24,
|
|
789
|
-
step: .5,
|
|
790
|
-
unit: "rem",
|
|
791
|
-
decimalPlaces: 1
|
|
792
|
-
},
|
|
793
|
-
"--adaptive-grid-min-md": {
|
|
794
|
-
type: "range",
|
|
795
|
-
min: 8,
|
|
796
|
-
max: 32,
|
|
797
|
-
step: .5,
|
|
798
|
-
unit: "rem",
|
|
799
|
-
decimalPlaces: 1
|
|
800
|
-
},
|
|
801
|
-
"--adaptive-grid-min-lg": {
|
|
802
|
-
type: "range",
|
|
803
|
-
min: 12,
|
|
804
|
-
max: 40,
|
|
805
|
-
step: .5,
|
|
806
|
-
unit: "rem",
|
|
807
|
-
decimalPlaces: 1
|
|
808
863
|
}
|
|
809
864
|
};
|
|
810
|
-
function
|
|
811
|
-
return e.replace(/^--/, "").
|
|
865
|
+
function it(e) {
|
|
866
|
+
return e.replace(/^--/, "").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0]?.toUpperCase()}${e.slice(1)}`).join(" ");
|
|
812
867
|
}
|
|
813
|
-
function
|
|
814
|
-
return e.startsWith("--chart-") ? "A categorical series colour. Keep status meaning out of it." : e.startsWith("--sidebar
|
|
868
|
+
function at(e) {
|
|
869
|
+
return e.startsWith("--chart-") ? "A categorical series colour. Keep status meaning out of it." : e.startsWith("--sidebar") ? "A sidebar colour." : e.endsWith("-foreground") ? "Text and icons on the matching fill." : e.startsWith("--text-") ? "Font size for the matching type step." : "A theme variable the kit reads.";
|
|
815
870
|
}
|
|
816
|
-
function
|
|
871
|
+
function $(e, t, n, r, i) {
|
|
817
872
|
return e.map((e) => ({
|
|
818
873
|
name: e,
|
|
819
|
-
label:
|
|
820
|
-
description:
|
|
874
|
+
label: it(e),
|
|
875
|
+
description: Q[e] ?? at(e),
|
|
821
876
|
group: t,
|
|
822
877
|
section: n,
|
|
823
878
|
scope: r,
|
|
824
879
|
kind: i,
|
|
825
|
-
control:
|
|
880
|
+
control: rt[e]
|
|
826
881
|
}));
|
|
827
882
|
}
|
|
828
|
-
var
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
], et = {
|
|
883
|
+
var ot = [
|
|
884
|
+
...$(Ye, "colors", "surfaces-content", "mode", "color"),
|
|
885
|
+
...$(Qe, "colors", "surfaces-content", "shared", "color"),
|
|
886
|
+
...$(Xe, "colors", "brand-actions", "mode", "color"),
|
|
887
|
+
...$(Ze, "colors", "charts", "mode", "color"),
|
|
888
|
+
...$(G, "colors", "sidebar", "mode", "color"),
|
|
889
|
+
...$(K, "states", "semantic-feedback", "mode", "color"),
|
|
890
|
+
...$($e, "states", "tints", "shared", "length"),
|
|
891
|
+
...$(et, "typography", "font-families", "shared", "font"),
|
|
892
|
+
...$(q.slice(0, 1), "typography", "type-scale", "shared", "number"),
|
|
893
|
+
...$(q.slice(1), "typography", "type-scale", "shared", "length"),
|
|
894
|
+
...$(J, "shape", "radius", "shared", "length"),
|
|
895
|
+
...$(tt, "shape", "elevation", "shared", "shadow"),
|
|
896
|
+
...$(nt, "structure", "spacing", "shared", "length"),
|
|
897
|
+
...$(Y, "structure", "controls", "shared", "length"),
|
|
898
|
+
...$(X.slice(0, 3), "structure", "motion", "shared", "length"),
|
|
899
|
+
...$(X.slice(3), "structure", "motion", "shared", "number"),
|
|
900
|
+
...$(Z, "structure", "application-shell", "shared", "length")
|
|
901
|
+
], st = {
|
|
848
902
|
title: "Theme tweaker",
|
|
849
903
|
description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus the display defaults that go with it.",
|
|
850
904
|
searchLabel: "Search variables",
|
|
@@ -883,13 +937,13 @@ var $e = [
|
|
|
883
937
|
providerOutputLabel: "UIProvider config",
|
|
884
938
|
providerOutputDescription: "Display defaults to pass to your application's provider.",
|
|
885
939
|
autoPalette: "Derive supporting colours",
|
|
886
|
-
autoPaletteDescription: "Keep muted, accent, borders, charts, links
|
|
940
|
+
autoPaletteDescription: "Keep muted, accent, borders, charts, links and the sidebar coherent with the primary colour.",
|
|
887
941
|
typeRecipeTitle: "Calculated type scale",
|
|
888
|
-
typeRecipeDescription: "
|
|
942
|
+
typeRecipeDescription: "Every font step from one body size and one heading ratio. Line heights follow each size.",
|
|
889
943
|
baseTypeSize: "Base size",
|
|
890
944
|
typeRatio: "Heading ratio",
|
|
891
945
|
elevationRecipeTitle: "Calculated elevation",
|
|
892
|
-
elevationRecipeDescription: "
|
|
946
|
+
elevationRecipeDescription: "Both shadows, raised and floating, from one intensity.",
|
|
893
947
|
elevationIntensity: "Shadow intensity",
|
|
894
948
|
previewTitle: "Semantic preview",
|
|
895
949
|
previewDescription: "The same variables drive surfaces, typography, controls, rows, and states.",
|
|
@@ -901,7 +955,7 @@ var $e = [
|
|
|
901
955
|
previewSuccess: "Healthy",
|
|
902
956
|
previewWarning: "Review",
|
|
903
957
|
previewContract: "CSS variables",
|
|
904
|
-
providerSettings:
|
|
958
|
+
providerSettings: Ke,
|
|
905
959
|
groups: {
|
|
906
960
|
colors: "Colours",
|
|
907
961
|
states: "States",
|
|
@@ -912,10 +966,10 @@ var $e = [
|
|
|
912
966
|
},
|
|
913
967
|
groupDescriptions: {
|
|
914
968
|
colors: "Application surfaces, brand actions, charts, and sidebar colours.",
|
|
915
|
-
states: "Semantic feedback and
|
|
969
|
+
states: "Semantic feedback colours and the two tint strengths.",
|
|
916
970
|
typography: "Font families and the calculated type scale.",
|
|
917
|
-
shape: "Corner radius and the
|
|
918
|
-
structure: "
|
|
971
|
+
shape: "Corner radius, the hairline and the two shadows.",
|
|
972
|
+
structure: "Spacing, control and icon sizes, motion, and the shell's measures.",
|
|
919
973
|
defaults: "Formatting and display defaults applied through UIProvider."
|
|
920
974
|
},
|
|
921
975
|
sections: {
|
|
@@ -924,31 +978,28 @@ var $e = [
|
|
|
924
978
|
charts: "Charts",
|
|
925
979
|
sidebar: "Sidebar",
|
|
926
980
|
"semantic-feedback": "Semantic feedback",
|
|
927
|
-
|
|
981
|
+
tints: "Tints",
|
|
928
982
|
"font-families": "Font families",
|
|
929
983
|
"type-scale": "Type scale",
|
|
930
|
-
radius: "Radius",
|
|
984
|
+
radius: "Radius & hairline",
|
|
931
985
|
elevation: "Elevation",
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
"application-shell": "Application shell",
|
|
937
|
-
"content-widths": "Content widths",
|
|
938
|
-
"adaptive-layout": "Adaptive layout"
|
|
986
|
+
spacing: "Spacing",
|
|
987
|
+
controls: "Controls & icons",
|
|
988
|
+
motion: "Motion",
|
|
989
|
+
"application-shell": "Application shell"
|
|
939
990
|
}
|
|
940
991
|
};
|
|
941
992
|
//#endregion
|
|
942
993
|
//#region src/components/features/theme-tweaker/use-applied-theme.ts
|
|
943
|
-
function
|
|
994
|
+
function ct(e, t) {
|
|
944
995
|
return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
|
|
945
996
|
}
|
|
946
|
-
function
|
|
947
|
-
|
|
997
|
+
function lt({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
998
|
+
Me(() => {
|
|
948
999
|
if (!e || r === "self") return;
|
|
949
|
-
let a =
|
|
1000
|
+
let a = ct(r, n);
|
|
950
1001
|
if (!a) return;
|
|
951
|
-
let o =
|
|
1002
|
+
let o = H(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
952
1003
|
for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
|
|
953
1004
|
value: a.style.getPropertyValue(e),
|
|
954
1005
|
priority: a.style.getPropertyPriority(e)
|
|
@@ -972,298 +1023,297 @@ function tt({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
|
972
1023
|
}
|
|
973
1024
|
//#endregion
|
|
974
1025
|
//#region src/components/features/theme-tweaker/theme-tweaker.tsx
|
|
975
|
-
var
|
|
1026
|
+
var ut = [
|
|
976
1027
|
"colors",
|
|
977
1028
|
"states",
|
|
978
1029
|
"typography",
|
|
979
1030
|
"shape",
|
|
980
1031
|
"structure",
|
|
981
1032
|
"defaults"
|
|
982
|
-
],
|
|
983
|
-
colors: /* @__PURE__ */
|
|
984
|
-
states: /* @__PURE__ */
|
|
985
|
-
typography: /* @__PURE__ */
|
|
986
|
-
shape: /* @__PURE__ */
|
|
987
|
-
structure: /* @__PURE__ */
|
|
988
|
-
defaults: /* @__PURE__ */
|
|
1033
|
+
], dt = {
|
|
1034
|
+
colors: /* @__PURE__ */ O(C, {}),
|
|
1035
|
+
states: /* @__PURE__ */ O(ke, {}),
|
|
1036
|
+
typography: /* @__PURE__ */ O(je, {}),
|
|
1037
|
+
shape: /* @__PURE__ */ O(Oe, {}),
|
|
1038
|
+
structure: /* @__PURE__ */ O(S, {}),
|
|
1039
|
+
defaults: /* @__PURE__ */ O(De, {})
|
|
989
1040
|
};
|
|
990
|
-
function
|
|
1041
|
+
function ft(e, t) {
|
|
991
1042
|
let n = Number.parseFloat(e);
|
|
992
1043
|
return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.fallback ?? t.min;
|
|
993
1044
|
}
|
|
994
|
-
function
|
|
1045
|
+
function pt(e, t) {
|
|
995
1046
|
return `${Number(e.toFixed(t.decimalPlaces ?? 3))}${t.unit ?? ""}`;
|
|
996
1047
|
}
|
|
997
|
-
function
|
|
1048
|
+
function mt(e, t) {
|
|
998
1049
|
return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
|
|
999
1050
|
}
|
|
1000
|
-
function
|
|
1001
|
-
if (
|
|
1002
|
-
let
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
let i = window.getComputedStyle(n);
|
|
1010
|
-
return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter(([, e]) => e.length > 0));
|
|
1011
|
-
};
|
|
1012
|
-
try {
|
|
1013
|
-
let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
|
|
1014
|
-
return j({
|
|
1015
|
-
mode: e.mode,
|
|
1016
|
-
shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
|
|
1017
|
-
light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
|
|
1018
|
-
dark: Object.fromEntries(Object.entries(r).filter(([e]) => !i.has(e)))
|
|
1019
|
-
});
|
|
1020
|
-
} finally {
|
|
1021
|
-
for (let e of r) {
|
|
1022
|
-
let t = o.get(e);
|
|
1023
|
-
t?.value ? n.style.setProperty(e, t.value, t.priority) : n.style.removeProperty(e);
|
|
1051
|
+
function ht(e, t, n) {
|
|
1052
|
+
if (!n || typeof window > "u") return j(e);
|
|
1053
|
+
let r = window.getComputedStyle(n), i = {}, a = {}, o = {};
|
|
1054
|
+
for (let e of t) {
|
|
1055
|
+
let t = r.getPropertyValue(e.name).trim();
|
|
1056
|
+
if (!t) continue;
|
|
1057
|
+
if (e.scope === "shared") {
|
|
1058
|
+
i[e.name] = t;
|
|
1059
|
+
continue;
|
|
1024
1060
|
}
|
|
1025
|
-
n
|
|
1061
|
+
let n = I(t);
|
|
1062
|
+
a[e.name] = n ? n[0] : t, o[e.name] = n ? n[1] : t;
|
|
1026
1063
|
}
|
|
1064
|
+
return j({
|
|
1065
|
+
mode: e.mode,
|
|
1066
|
+
shared: i,
|
|
1067
|
+
light: a,
|
|
1068
|
+
dark: o
|
|
1069
|
+
});
|
|
1027
1070
|
}
|
|
1028
|
-
function
|
|
1071
|
+
function gt(e, t, n) {
|
|
1029
1072
|
let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
|
|
1030
1073
|
return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
|
|
1031
1074
|
...e,
|
|
1032
1075
|
[r]: i
|
|
1033
1076
|
};
|
|
1034
1077
|
}
|
|
1035
|
-
function
|
|
1036
|
-
let
|
|
1037
|
-
return /* @__PURE__ */
|
|
1038
|
-
"aria-labelledby":
|
|
1039
|
-
className:
|
|
1040
|
-
children: [/* @__PURE__ */
|
|
1041
|
-
className:
|
|
1042
|
-
children: [/* @__PURE__ */
|
|
1043
|
-
gap: "
|
|
1044
|
-
className:
|
|
1045
|
-
children: [/* @__PURE__ */
|
|
1046
|
-
id:
|
|
1078
|
+
function _t({ title: i, description: a, code: o, copyLabel: c, downloadLabel: l, downloading: d = !1, onCopy: ee, onDownload: f }) {
|
|
1079
|
+
let p = T();
|
|
1080
|
+
return /* @__PURE__ */ k("section", {
|
|
1081
|
+
"aria-labelledby": p,
|
|
1082
|
+
className: U.exportBlock,
|
|
1083
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1084
|
+
className: U.exportBlockHeader,
|
|
1085
|
+
children: [/* @__PURE__ */ k(u, {
|
|
1086
|
+
gap: "sm",
|
|
1087
|
+
className: U.minWidth,
|
|
1088
|
+
children: [/* @__PURE__ */ O(t, {
|
|
1089
|
+
id: p,
|
|
1047
1090
|
level: 3,
|
|
1048
|
-
children:
|
|
1049
|
-
}), /* @__PURE__ */
|
|
1091
|
+
children: i
|
|
1092
|
+
}), /* @__PURE__ */ O(n, {
|
|
1050
1093
|
type: "secondary",
|
|
1051
|
-
children:
|
|
1094
|
+
children: a
|
|
1052
1095
|
})]
|
|
1053
|
-
}), /* @__PURE__ */
|
|
1096
|
+
}), /* @__PURE__ */ k(u, {
|
|
1054
1097
|
direction: "horizontal",
|
|
1055
|
-
gap: "
|
|
1098
|
+
gap: "sm",
|
|
1056
1099
|
align: "center",
|
|
1057
1100
|
wrap: !0,
|
|
1058
|
-
children: [/* @__PURE__ */
|
|
1101
|
+
children: [/* @__PURE__ */ k(s, {
|
|
1059
1102
|
type: "button",
|
|
1060
1103
|
tone: "neutral",
|
|
1061
|
-
|
|
1062
|
-
onClick:
|
|
1063
|
-
children: [/* @__PURE__ */
|
|
1064
|
-
}), /* @__PURE__ */
|
|
1104
|
+
appearance: "outline",
|
|
1105
|
+
onClick: ee,
|
|
1106
|
+
children: [/* @__PURE__ */ O(xe, {}), c]
|
|
1107
|
+
}), /* @__PURE__ */ k(s, {
|
|
1065
1108
|
type: "button",
|
|
1066
|
-
loading:
|
|
1067
|
-
onClick:
|
|
1068
|
-
children: [/* @__PURE__ */
|
|
1109
|
+
loading: d,
|
|
1110
|
+
onClick: f,
|
|
1111
|
+
children: [/* @__PURE__ */ O(Se, {}), l]
|
|
1069
1112
|
})]
|
|
1070
1113
|
})]
|
|
1071
|
-
}), /* @__PURE__ */
|
|
1114
|
+
}), /* @__PURE__ */ O("pre", {
|
|
1072
1115
|
tabIndex: 0,
|
|
1073
|
-
"aria-label":
|
|
1074
|
-
className:
|
|
1075
|
-
|
|
1116
|
+
"aria-label": i,
|
|
1117
|
+
className: r(U.exportCode, e({
|
|
1118
|
+
size: "xs",
|
|
1119
|
+
lineHeight: "relaxed",
|
|
1120
|
+
mono: !0
|
|
1121
|
+
})),
|
|
1122
|
+
children: /* @__PURE__ */ O("code", { children: o })
|
|
1076
1123
|
})]
|
|
1077
1124
|
});
|
|
1078
1125
|
}
|
|
1079
|
-
function
|
|
1080
|
-
let
|
|
1126
|
+
function vt({ field: t, value: i, effectiveValue: a, onChange: o, onReset: c, strings: l }) {
|
|
1127
|
+
let d = `theme-variable-${T().replace(/:/g, "")}`, f = /* @__PURE__ */ O(s, {
|
|
1081
1128
|
type: "button",
|
|
1082
1129
|
tone: "neutral",
|
|
1083
|
-
|
|
1130
|
+
appearance: "ghost",
|
|
1084
1131
|
iconOnly: !0,
|
|
1085
|
-
"aria-label": `${
|
|
1086
|
-
title:
|
|
1087
|
-
disabled: !
|
|
1088
|
-
onClick:
|
|
1089
|
-
children: /* @__PURE__ */
|
|
1090
|
-
}),
|
|
1091
|
-
if (t.kind === "color")
|
|
1092
|
-
className:
|
|
1093
|
-
children: [/* @__PURE__ */
|
|
1094
|
-
id:
|
|
1132
|
+
"aria-label": `${l.resetVariable}: ${t.label}`,
|
|
1133
|
+
title: l.resetVariable,
|
|
1134
|
+
disabled: !i,
|
|
1135
|
+
onClick: c,
|
|
1136
|
+
children: /* @__PURE__ */ O(Te, {})
|
|
1137
|
+
}), p = t.placeholder ?? a ?? l.inheritValue, m;
|
|
1138
|
+
if (t.kind === "color") m = /* @__PURE__ */ k("div", {
|
|
1139
|
+
className: U.controlRow,
|
|
1140
|
+
children: [/* @__PURE__ */ O(me, {
|
|
1141
|
+
id: d,
|
|
1095
1142
|
"aria-label": t.label,
|
|
1096
|
-
value:
|
|
1097
|
-
previewValue:
|
|
1098
|
-
strings: { picker:
|
|
1099
|
-
onValueChange:
|
|
1100
|
-
placeholder:
|
|
1101
|
-
className:
|
|
1102
|
-
}),
|
|
1143
|
+
value: i,
|
|
1144
|
+
previewValue: i || a || `var(${t.name})`,
|
|
1145
|
+
strings: { picker: l.chooseColor(t.label) },
|
|
1146
|
+
onValueChange: o,
|
|
1147
|
+
placeholder: p,
|
|
1148
|
+
className: U.controlInput
|
|
1149
|
+
}), f]
|
|
1103
1150
|
});
|
|
1104
1151
|
else if (t.control?.type === "range") {
|
|
1105
|
-
let
|
|
1106
|
-
|
|
1152
|
+
let n = t.control, s = ft(i || a, n);
|
|
1153
|
+
m = /* @__PURE__ */ k(u, {
|
|
1107
1154
|
gap: "sm",
|
|
1108
|
-
children: [/* @__PURE__ */
|
|
1109
|
-
id: `${
|
|
1110
|
-
"aria-label":
|
|
1111
|
-
value:
|
|
1112
|
-
min:
|
|
1113
|
-
max:
|
|
1114
|
-
step:
|
|
1115
|
-
onValueChange: (
|
|
1116
|
-
}), /* @__PURE__ */
|
|
1117
|
-
className:
|
|
1118
|
-
children: [/* @__PURE__ */
|
|
1119
|
-
id:
|
|
1155
|
+
children: [/* @__PURE__ */ O(x, {
|
|
1156
|
+
id: `${d}-slider`,
|
|
1157
|
+
"aria-label": l.adjustVariable(t.label),
|
|
1158
|
+
value: s,
|
|
1159
|
+
min: n.min,
|
|
1160
|
+
max: n.max,
|
|
1161
|
+
step: n.step,
|
|
1162
|
+
onValueChange: (e) => o(pt(e, n))
|
|
1163
|
+
}), /* @__PURE__ */ k("div", {
|
|
1164
|
+
className: U.controlRow,
|
|
1165
|
+
children: [/* @__PURE__ */ O(ae, {
|
|
1166
|
+
id: d,
|
|
1120
1167
|
"aria-label": t.label,
|
|
1121
|
-
value: String(
|
|
1122
|
-
decimalPlaces:
|
|
1123
|
-
min:
|
|
1124
|
-
max:
|
|
1168
|
+
value: String(s),
|
|
1169
|
+
decimalPlaces: n.decimalPlaces ?? 3,
|
|
1170
|
+
min: n.min,
|
|
1171
|
+
max: n.max,
|
|
1125
1172
|
allowEmpty: !0,
|
|
1126
1173
|
normalizeOnBlur: !1,
|
|
1127
|
-
endAdornment:
|
|
1128
|
-
onChange: (
|
|
1129
|
-
let
|
|
1130
|
-
|
|
1174
|
+
endAdornment: n.unit,
|
|
1175
|
+
onChange: (e) => {
|
|
1176
|
+
let t = e.target.value.trim();
|
|
1177
|
+
o(t ? `${t}${n.unit ?? ""}` : "");
|
|
1131
1178
|
},
|
|
1132
|
-
className:
|
|
1133
|
-
|
|
1179
|
+
className: r(U.numberInput, e({
|
|
1180
|
+
size: "inherit",
|
|
1181
|
+
mono: !0
|
|
1182
|
+
}))
|
|
1183
|
+
}), f]
|
|
1134
1184
|
})]
|
|
1135
1185
|
});
|
|
1136
|
-
} else
|
|
1137
|
-
className:
|
|
1138
|
-
children: [/* @__PURE__ */
|
|
1139
|
-
id:
|
|
1186
|
+
} else m = /* @__PURE__ */ k("div", {
|
|
1187
|
+
className: U.controlRow,
|
|
1188
|
+
children: [/* @__PURE__ */ O(v, {
|
|
1189
|
+
id: d,
|
|
1140
1190
|
"aria-label": t.label,
|
|
1141
|
-
value:
|
|
1142
|
-
onChange: (e) =>
|
|
1143
|
-
placeholder:
|
|
1144
|
-
className:
|
|
1145
|
-
|
|
1191
|
+
value: i,
|
|
1192
|
+
onChange: (e) => o(e.target.value),
|
|
1193
|
+
placeholder: p,
|
|
1194
|
+
className: r(U.controlInput, e({
|
|
1195
|
+
size: "inherit",
|
|
1196
|
+
mono: !0
|
|
1197
|
+
}))
|
|
1198
|
+
}), f]
|
|
1146
1199
|
});
|
|
1147
|
-
return /* @__PURE__ */
|
|
1148
|
-
label: /* @__PURE__ */
|
|
1149
|
-
className:
|
|
1150
|
-
children: [/* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ O(y, {
|
|
1201
|
+
label: /* @__PURE__ */ k("span", {
|
|
1202
|
+
className: U.fieldLabel,
|
|
1203
|
+
children: [/* @__PURE__ */ O(n, {
|
|
1151
1204
|
tag: "span",
|
|
1152
1205
|
size: "inherit",
|
|
1153
1206
|
weight: "medium",
|
|
1154
1207
|
truncate: !0,
|
|
1155
1208
|
children: t.label
|
|
1156
|
-
}), /* @__PURE__ */
|
|
1209
|
+
}), /* @__PURE__ */ O(ee, {
|
|
1157
1210
|
size: "xs",
|
|
1158
1211
|
type: "secondary",
|
|
1159
1212
|
children: t.name
|
|
1160
1213
|
})]
|
|
1161
1214
|
}),
|
|
1162
|
-
className:
|
|
1163
|
-
children:
|
|
1215
|
+
className: U.field,
|
|
1216
|
+
children: m
|
|
1164
1217
|
});
|
|
1165
1218
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return /* @__PURE__ */
|
|
1219
|
+
function yt({ strings: e }) {
|
|
1220
|
+
return /* @__PURE__ */ O(g, {
|
|
1168
1221
|
surface: "bordered",
|
|
1169
|
-
icon: /* @__PURE__ */
|
|
1222
|
+
icon: /* @__PURE__ */ O(C, {}),
|
|
1170
1223
|
title: e.previewTitle,
|
|
1171
1224
|
description: e.previewDescription,
|
|
1172
|
-
children: /* @__PURE__ */
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
/* @__PURE__ */
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
/* @__PURE__ */
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
})
|
|
1216
|
-
]
|
|
1217
|
-
})
|
|
1225
|
+
children: /* @__PURE__ */ k(u, { children: [
|
|
1226
|
+
/* @__PURE__ */ k(u, {
|
|
1227
|
+
direction: "horizontal",
|
|
1228
|
+
gap: "sm",
|
|
1229
|
+
wrap: !0,
|
|
1230
|
+
children: [
|
|
1231
|
+
/* @__PURE__ */ O(f, {
|
|
1232
|
+
tone: "success",
|
|
1233
|
+
children: e.previewSuccess
|
|
1234
|
+
}),
|
|
1235
|
+
/* @__PURE__ */ O(f, {
|
|
1236
|
+
tone: "warning",
|
|
1237
|
+
children: e.previewWarning
|
|
1238
|
+
}),
|
|
1239
|
+
/* @__PURE__ */ O(f, {
|
|
1240
|
+
tone: "neutral",
|
|
1241
|
+
children: e.previewContract
|
|
1242
|
+
})
|
|
1243
|
+
]
|
|
1244
|
+
}),
|
|
1245
|
+
/* @__PURE__ */ k(ce, {
|
|
1246
|
+
surface: "muted",
|
|
1247
|
+
children: [
|
|
1248
|
+
/* @__PURE__ */ O(b, {
|
|
1249
|
+
variant: "icon",
|
|
1250
|
+
children: /* @__PURE__ */ O(C, {})
|
|
1251
|
+
}),
|
|
1252
|
+
/* @__PURE__ */ k(se, { children: [/* @__PURE__ */ O(le, { children: e.previewItemTitle }), /* @__PURE__ */ O(oe, { children: e.previewItemDescription })] }),
|
|
1253
|
+
/* @__PURE__ */ O(be, {
|
|
1254
|
+
"aria-hidden": !0,
|
|
1255
|
+
className: U.previewCheck
|
|
1256
|
+
})
|
|
1257
|
+
]
|
|
1258
|
+
}),
|
|
1259
|
+
/* @__PURE__ */ O(y, {
|
|
1260
|
+
label: e.previewFieldLabel,
|
|
1261
|
+
children: /* @__PURE__ */ O(v, { placeholder: e.previewFieldPlaceholder })
|
|
1262
|
+
}),
|
|
1263
|
+
/* @__PURE__ */ O(s, {
|
|
1264
|
+
type: "button",
|
|
1265
|
+
children: e.previewAction
|
|
1266
|
+
})
|
|
1267
|
+
] })
|
|
1218
1268
|
});
|
|
1219
1269
|
}
|
|
1220
|
-
var
|
|
1221
|
-
let
|
|
1222
|
-
|
|
1223
|
-
apply:
|
|
1224
|
-
manageModeClass:
|
|
1225
|
-
selfRef:
|
|
1226
|
-
target:
|
|
1227
|
-
theme:
|
|
1270
|
+
var bt = w(function({ value: e, defaultValue: i, onValueChange: a, onModeChange: ee, fields: p = ot, target: m = "self", apply: h = !0, manageModeClass: ne = !0, preview: _, fileName: ae = "theme.css", config: b, defaultConfig: oe, onConfigChange: se, providerFileName: ce = "ui.config.ts", showIntro: le = !0, selectors: me, onExport: be, onCopy: xe, onReset: Ce, onError: S, actionsSlot: C, strings: De, className: Oe, ...ke }, je) {
|
|
1271
|
+
let w = d(st, De), [T, Fe] = D(() => j(i)), A = E(() => e ? j(e) : T, [T, e]), [Ie, Le] = D(() => B(oe)), M = E(() => B(b ?? Ie), [b, Ie]), [N, P] = D("colors"), [F, I] = D(""), [L, Re] = D(!0), [R, z] = D(16), [V, ze] = D(1.2), [Ve, Ke] = D(.8), [qe, W] = D("idle"), [Ye, Xe] = D(!1), Ze = he(), G = Pe(null);
|
|
1272
|
+
Ne(je, () => G.current), lt({
|
|
1273
|
+
apply: h,
|
|
1274
|
+
manageModeClass: ne,
|
|
1275
|
+
selfRef: G,
|
|
1276
|
+
target: m,
|
|
1277
|
+
theme: A
|
|
1228
1278
|
});
|
|
1229
|
-
let [
|
|
1230
|
-
|
|
1279
|
+
let [K, Qe] = D(() => j(A)), [$e, et] = D({});
|
|
1280
|
+
Me(() => {
|
|
1231
1281
|
if (typeof window > "u") return;
|
|
1232
1282
|
let e = window.setTimeout(() => {
|
|
1233
|
-
let e =
|
|
1283
|
+
let e = mt(m, G.current);
|
|
1234
1284
|
if (!e) return;
|
|
1235
|
-
let t =
|
|
1236
|
-
|
|
1285
|
+
let t = ht(A, p, e);
|
|
1286
|
+
et(Object.fromEntries(p.map((e) => [e.name, (e.scope === "shared" ? t.shared : t[A.mode])[e.name] ?? ""]))), Qe(t);
|
|
1237
1287
|
}, 0);
|
|
1238
1288
|
return () => window.clearTimeout(e);
|
|
1239
1289
|
}, [
|
|
1290
|
+
h,
|
|
1291
|
+
p,
|
|
1240
1292
|
m,
|
|
1241
|
-
|
|
1242
|
-
l,
|
|
1243
|
-
k
|
|
1293
|
+
A
|
|
1244
1294
|
]);
|
|
1245
|
-
let { artifact:
|
|
1295
|
+
let { artifact: q, error: J } = E(() => {
|
|
1246
1296
|
try {
|
|
1247
1297
|
let e = j({
|
|
1248
|
-
mode:
|
|
1298
|
+
mode: A.mode,
|
|
1249
1299
|
shared: {
|
|
1250
|
-
...
|
|
1251
|
-
...
|
|
1300
|
+
...K.shared,
|
|
1301
|
+
...A.shared
|
|
1252
1302
|
},
|
|
1253
1303
|
light: {
|
|
1254
|
-
...
|
|
1255
|
-
...
|
|
1304
|
+
...K.light,
|
|
1305
|
+
...A.light
|
|
1256
1306
|
},
|
|
1257
1307
|
dark: {
|
|
1258
|
-
...
|
|
1259
|
-
...
|
|
1308
|
+
...K.dark,
|
|
1309
|
+
...A.dark
|
|
1260
1310
|
}
|
|
1261
1311
|
});
|
|
1262
1312
|
return {
|
|
1263
|
-
artifact:
|
|
1313
|
+
artifact: He(A, ae, { selectors: me }, {
|
|
1264
1314
|
resolvedTheme: e,
|
|
1265
1315
|
providerConfig: M,
|
|
1266
|
-
providerFileName:
|
|
1316
|
+
providerFileName: ce
|
|
1267
1317
|
}),
|
|
1268
1318
|
error: null
|
|
1269
1319
|
};
|
|
@@ -1274,23 +1324,23 @@ var Z = Me(function({ value: r, defaultValue: i, onValueChange: a, onModeChange:
|
|
|
1274
1324
|
};
|
|
1275
1325
|
}
|
|
1276
1326
|
}, [
|
|
1277
|
-
|
|
1327
|
+
ae,
|
|
1278
1328
|
M,
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
]),
|
|
1329
|
+
ce,
|
|
1330
|
+
K,
|
|
1331
|
+
me,
|
|
1332
|
+
A
|
|
1333
|
+
]), tt = q?.cssText ?? `/* ${w.invalidTheme} */\n`, nt = E(() => Be(A), [A]), Y = F.trim().toLowerCase(), X = E(() => p.filter((e) => Y ? [
|
|
1284
1334
|
e.name,
|
|
1285
1335
|
e.label,
|
|
1286
1336
|
e.description
|
|
1287
|
-
].some((e) => e?.toLowerCase().includes(
|
|
1288
|
-
|
|
1337
|
+
].some((e) => e?.toLowerCase().includes(Y)) : e.group === N), [
|
|
1338
|
+
p,
|
|
1289
1339
|
N,
|
|
1290
|
-
|
|
1291
|
-
]),
|
|
1340
|
+
Y
|
|
1341
|
+
]), Z = E(() => {
|
|
1292
1342
|
let e = /* @__PURE__ */ new Map();
|
|
1293
|
-
for (let t of
|
|
1343
|
+
for (let t of X) {
|
|
1294
1344
|
let n = `${t.group}:${t.section}`, r = e.get(n);
|
|
1295
1345
|
r ? r.fields.push(t) : e.set(n, {
|
|
1296
1346
|
group: t.group,
|
|
@@ -1299,389 +1349,379 @@ var Z = Me(function({ value: r, defaultValue: i, onValueChange: a, onModeChange:
|
|
|
1299
1349
|
});
|
|
1300
1350
|
}
|
|
1301
1351
|
return [...e.values()];
|
|
1302
|
-
}, [
|
|
1303
|
-
|
|
1304
|
-
},
|
|
1305
|
-
|
|
1306
|
-
...
|
|
1307
|
-
[
|
|
1308
|
-
...
|
|
1352
|
+
}, [X]), Q = (t) => {
|
|
1353
|
+
e === void 0 && Fe(t), a?.(t), W("idle");
|
|
1354
|
+
}, rt = (e) => {
|
|
1355
|
+
Q({
|
|
1356
|
+
...A,
|
|
1357
|
+
[A.mode]: {
|
|
1358
|
+
...A[A.mode],
|
|
1309
1359
|
...e
|
|
1310
1360
|
}
|
|
1311
1361
|
});
|
|
1312
|
-
},
|
|
1313
|
-
|
|
1314
|
-
...
|
|
1362
|
+
}, it = (e) => {
|
|
1363
|
+
Q({
|
|
1364
|
+
...A,
|
|
1315
1365
|
shared: {
|
|
1316
|
-
...
|
|
1366
|
+
...A.shared,
|
|
1317
1367
|
...e
|
|
1318
1368
|
}
|
|
1319
1369
|
});
|
|
1320
|
-
},
|
|
1321
|
-
e !==
|
|
1322
|
-
...
|
|
1370
|
+
}, at = (e) => {
|
|
1371
|
+
e !== A.mode && (Q({
|
|
1372
|
+
...A,
|
|
1323
1373
|
mode: e
|
|
1324
|
-
}),
|
|
1325
|
-
},
|
|
1374
|
+
}), ee?.(e));
|
|
1375
|
+
}, $ = async (e) => {
|
|
1326
1376
|
try {
|
|
1327
|
-
if (
|
|
1377
|
+
if (xe) await xe(e);
|
|
1328
1378
|
else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
|
|
1329
1379
|
else throw Error("No clipboard here. Pass onCopy for this environment.");
|
|
1330
1380
|
W("copied");
|
|
1331
1381
|
} catch (e) {
|
|
1332
1382
|
S?.(e);
|
|
1333
1383
|
}
|
|
1334
|
-
},
|
|
1384
|
+
}, ct = async () => {
|
|
1335
1385
|
try {
|
|
1336
|
-
if (
|
|
1337
|
-
if (!
|
|
1338
|
-
|
|
1386
|
+
if (J) throw J;
|
|
1387
|
+
if (!q) throw Error(w.invalidTheme);
|
|
1388
|
+
Xe(!0), be ? await be(q) : We(q), W("exported");
|
|
1339
1389
|
} catch (e) {
|
|
1340
1390
|
S?.(e);
|
|
1341
1391
|
} finally {
|
|
1342
|
-
|
|
1392
|
+
Xe(!1);
|
|
1343
1393
|
}
|
|
1344
|
-
},
|
|
1394
|
+
}, ft = () => {
|
|
1345
1395
|
try {
|
|
1346
|
-
if (!
|
|
1347
|
-
|
|
1348
|
-
fileName:
|
|
1349
|
-
text:
|
|
1396
|
+
if (!q) throw J ?? Error(w.invalidTheme);
|
|
1397
|
+
Ue({
|
|
1398
|
+
fileName: q.providerFileName,
|
|
1399
|
+
text: q.providerConfigText,
|
|
1350
1400
|
mimeType: "text/typescript;charset=utf-8"
|
|
1351
1401
|
}), W("exported");
|
|
1352
1402
|
} catch (e) {
|
|
1353
1403
|
S?.(e);
|
|
1354
1404
|
}
|
|
1355
|
-
},
|
|
1356
|
-
let e =
|
|
1357
|
-
|
|
1358
|
-
}, bt =
|
|
1405
|
+
}, pt = () => {
|
|
1406
|
+
let e = A;
|
|
1407
|
+
Q(j({ mode: A.mode })), Ce?.(e);
|
|
1408
|
+
}, bt = J ? w.invalidTheme : qe === "copied" ? w.copiedStatus : qe === "exported" ? w.exportedStatus : null, xt = N === "colors" ? /* @__PURE__ */ O(g, {
|
|
1359
1409
|
surface: "bordered",
|
|
1360
|
-
children: /* @__PURE__ */
|
|
1361
|
-
label:
|
|
1362
|
-
description:
|
|
1363
|
-
value:
|
|
1364
|
-
onValueChange:
|
|
1410
|
+
children: /* @__PURE__ */ O(ie, {
|
|
1411
|
+
label: w.autoPalette,
|
|
1412
|
+
description: w.autoPaletteDescription,
|
|
1413
|
+
value: L,
|
|
1414
|
+
onValueChange: Re
|
|
1365
1415
|
})
|
|
1366
|
-
}) : N === "typography" ? /* @__PURE__ */
|
|
1416
|
+
}) : N === "typography" ? /* @__PURE__ */ O(g, {
|
|
1367
1417
|
surface: "bordered",
|
|
1368
|
-
title:
|
|
1369
|
-
description:
|
|
1370
|
-
children: /* @__PURE__ */
|
|
1418
|
+
title: w.typeRecipeTitle,
|
|
1419
|
+
description: w.typeRecipeDescription,
|
|
1420
|
+
children: /* @__PURE__ */ k(l, {
|
|
1371
1421
|
columns: {
|
|
1372
1422
|
base: 1,
|
|
1373
1423
|
sm: 2
|
|
1374
1424
|
},
|
|
1375
|
-
gap: "
|
|
1376
|
-
children: [/* @__PURE__ */
|
|
1377
|
-
label:
|
|
1378
|
-
children: /* @__PURE__ */
|
|
1379
|
-
"aria-label":
|
|
1380
|
-
value:
|
|
1425
|
+
gap: "sm",
|
|
1426
|
+
children: [/* @__PURE__ */ O(y, {
|
|
1427
|
+
label: w.baseTypeSize,
|
|
1428
|
+
children: /* @__PURE__ */ O(x, {
|
|
1429
|
+
"aria-label": w.baseTypeSize,
|
|
1430
|
+
value: R,
|
|
1381
1431
|
min: 14,
|
|
1382
1432
|
max: 20,
|
|
1383
1433
|
step: 1,
|
|
1384
1434
|
onValueChange: (e) => {
|
|
1385
|
-
|
|
1435
|
+
z(e), it(_e({
|
|
1386
1436
|
baseSize: e,
|
|
1387
|
-
ratio:
|
|
1437
|
+
ratio: V
|
|
1388
1438
|
}));
|
|
1389
1439
|
}
|
|
1390
1440
|
})
|
|
1391
|
-
}), /* @__PURE__ */
|
|
1392
|
-
label:
|
|
1393
|
-
children: /* @__PURE__ */
|
|
1394
|
-
"aria-label":
|
|
1395
|
-
value:
|
|
1441
|
+
}), /* @__PURE__ */ O(y, {
|
|
1442
|
+
label: w.typeRatio,
|
|
1443
|
+
children: /* @__PURE__ */ O(x, {
|
|
1444
|
+
"aria-label": w.typeRatio,
|
|
1445
|
+
value: V,
|
|
1396
1446
|
min: 1.125,
|
|
1397
1447
|
max: 1.333,
|
|
1398
1448
|
step: .01,
|
|
1399
1449
|
onValueChange: (e) => {
|
|
1400
|
-
|
|
1401
|
-
baseSize:
|
|
1450
|
+
ze(e), it(_e({
|
|
1451
|
+
baseSize: R,
|
|
1402
1452
|
ratio: e
|
|
1403
1453
|
}));
|
|
1404
1454
|
}
|
|
1405
1455
|
})
|
|
1406
1456
|
})]
|
|
1407
1457
|
})
|
|
1408
|
-
}) : N === "shape" ? /* @__PURE__ */
|
|
1458
|
+
}) : N === "shape" ? /* @__PURE__ */ O(g, {
|
|
1409
1459
|
surface: "bordered",
|
|
1410
|
-
title:
|
|
1411
|
-
description:
|
|
1412
|
-
children: /* @__PURE__ */
|
|
1413
|
-
label:
|
|
1414
|
-
children: /* @__PURE__ */
|
|
1415
|
-
"aria-label":
|
|
1416
|
-
value:
|
|
1460
|
+
title: w.elevationRecipeTitle,
|
|
1461
|
+
description: w.elevationRecipeDescription,
|
|
1462
|
+
children: /* @__PURE__ */ O(y, {
|
|
1463
|
+
label: w.elevationIntensity,
|
|
1464
|
+
children: /* @__PURE__ */ O(x, {
|
|
1465
|
+
"aria-label": w.elevationIntensity,
|
|
1466
|
+
value: Ve,
|
|
1417
1467
|
min: 0,
|
|
1418
1468
|
max: 1,
|
|
1419
1469
|
step: .05,
|
|
1420
1470
|
onValueChange: (e) => {
|
|
1421
|
-
|
|
1471
|
+
Ke(e), it(ve({ intensity: e }));
|
|
1422
1472
|
}
|
|
1423
1473
|
})
|
|
1424
1474
|
})
|
|
1425
|
-
}) : null, St = /* @__PURE__ */
|
|
1426
|
-
className:
|
|
1475
|
+
}) : null, St = /* @__PURE__ */ k("div", {
|
|
1476
|
+
className: r(U.layout, _ !== !1 && U.layoutWithPreview),
|
|
1427
1477
|
children: [
|
|
1428
|
-
/* @__PURE__ */
|
|
1429
|
-
className:
|
|
1430
|
-
children: [/* @__PURE__ */
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
children:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
tone: "neutral",
|
|
1445
|
-
children: C.changedCount(at)
|
|
1446
|
-
})]
|
|
1447
|
-
}), /* @__PURE__ */ E(n, {
|
|
1448
|
-
type: "secondary",
|
|
1449
|
-
children: C.description
|
|
1478
|
+
/* @__PURE__ */ k("div", {
|
|
1479
|
+
className: U.controls,
|
|
1480
|
+
children: [/* @__PURE__ */ k(u, { children: [
|
|
1481
|
+
le && /* @__PURE__ */ k(u, {
|
|
1482
|
+
gap: "sm",
|
|
1483
|
+
children: [/* @__PURE__ */ k(u, {
|
|
1484
|
+
direction: "horizontal",
|
|
1485
|
+
gap: "sm",
|
|
1486
|
+
align: "center",
|
|
1487
|
+
wrap: !0,
|
|
1488
|
+
children: [/* @__PURE__ */ O(t, {
|
|
1489
|
+
level: 2,
|
|
1490
|
+
children: w.title
|
|
1491
|
+
}), /* @__PURE__ */ O(f, {
|
|
1492
|
+
tone: "neutral",
|
|
1493
|
+
children: w.changedCount(nt)
|
|
1450
1494
|
})]
|
|
1451
|
-
}),
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
})]
|
|
1471
|
-
})
|
|
1495
|
+
}), /* @__PURE__ */ O(n, {
|
|
1496
|
+
type: "secondary",
|
|
1497
|
+
children: w.description
|
|
1498
|
+
})]
|
|
1499
|
+
}),
|
|
1500
|
+
/* @__PURE__ */ k("div", {
|
|
1501
|
+
className: U.toolbar,
|
|
1502
|
+
children: [/* @__PURE__ */ O(u, {
|
|
1503
|
+
direction: "horizontal",
|
|
1504
|
+
gap: "sm",
|
|
1505
|
+
align: "center",
|
|
1506
|
+
wrap: !0,
|
|
1507
|
+
children: /* @__PURE__ */ O(fe, {
|
|
1508
|
+
value: A.mode,
|
|
1509
|
+
onValueChange: (e) => at(e),
|
|
1510
|
+
children: /* @__PURE__ */ k(ue, {
|
|
1511
|
+
variant: "enclosed",
|
|
1512
|
+
children: [/* @__PURE__ */ k(pe, {
|
|
1513
|
+
value: "light",
|
|
1514
|
+
children: [/* @__PURE__ */ O(Ae, {}), w.lightMode]
|
|
1515
|
+
}), /* @__PURE__ */ k(pe, {
|
|
1516
|
+
value: "dark",
|
|
1517
|
+
children: [/* @__PURE__ */ O(we, {}), w.darkMode]
|
|
1518
|
+
})]
|
|
1472
1519
|
})
|
|
1473
|
-
}), /* @__PURE__ */ D(p, {
|
|
1474
|
-
direction: "horizontal",
|
|
1475
|
-
gap: "xs",
|
|
1476
|
-
align: "center",
|
|
1477
|
-
justify: "end",
|
|
1478
|
-
wrap: !1,
|
|
1479
|
-
children: [/* @__PURE__ */ D(u, {
|
|
1480
|
-
type: "button",
|
|
1481
|
-
tone: "neutral",
|
|
1482
|
-
buttonStyle: "outline",
|
|
1483
|
-
disabled: !!X,
|
|
1484
|
-
onClick: () => {
|
|
1485
|
-
W("idle"), K.show();
|
|
1486
|
-
},
|
|
1487
|
-
children: [/* @__PURE__ */ E(xe, {}), C.export]
|
|
1488
|
-
}), De]
|
|
1489
|
-
})]
|
|
1490
|
-
}),
|
|
1491
|
-
/* @__PURE__ */ E(v, {
|
|
1492
|
-
label: /* @__PURE__ */ E(d, { children: C.searchLabel }),
|
|
1493
|
-
children: /* @__PURE__ */ E(y, {
|
|
1494
|
-
value: F,
|
|
1495
|
-
onChange: (e) => L(e.target.value),
|
|
1496
|
-
placeholder: C.searchPlaceholder,
|
|
1497
|
-
startIcon: Ee,
|
|
1498
|
-
clearable: !0,
|
|
1499
|
-
onClear: () => L("")
|
|
1500
1520
|
})
|
|
1521
|
+
}), /* @__PURE__ */ k(u, {
|
|
1522
|
+
direction: "horizontal",
|
|
1523
|
+
gap: "sm",
|
|
1524
|
+
align: "center",
|
|
1525
|
+
justify: "end",
|
|
1526
|
+
wrap: !1,
|
|
1527
|
+
children: [/* @__PURE__ */ k(s, {
|
|
1528
|
+
type: "button",
|
|
1529
|
+
tone: "neutral",
|
|
1530
|
+
appearance: "outline",
|
|
1531
|
+
disabled: !!J,
|
|
1532
|
+
onClick: () => {
|
|
1533
|
+
W("idle"), Ze.show();
|
|
1534
|
+
},
|
|
1535
|
+
children: [/* @__PURE__ */ O(Se, {}), w.export]
|
|
1536
|
+
}), C]
|
|
1537
|
+
})]
|
|
1538
|
+
}),
|
|
1539
|
+
/* @__PURE__ */ O(y, {
|
|
1540
|
+
label: /* @__PURE__ */ O(re, { children: w.searchLabel }),
|
|
1541
|
+
children: /* @__PURE__ */ O(v, {
|
|
1542
|
+
value: F,
|
|
1543
|
+
onChange: (e) => I(e.target.value),
|
|
1544
|
+
placeholder: w.searchPlaceholder,
|
|
1545
|
+
startIcon: Ee,
|
|
1546
|
+
clearable: !0,
|
|
1547
|
+
onClear: () => I("")
|
|
1501
1548
|
})
|
|
1502
|
-
|
|
1503
|
-
}), /* @__PURE__ */
|
|
1549
|
+
})
|
|
1550
|
+
] }), /* @__PURE__ */ k(fe, {
|
|
1504
1551
|
value: N,
|
|
1505
1552
|
onValueChange: (e) => {
|
|
1506
|
-
|
|
1553
|
+
I(""), P(e);
|
|
1507
1554
|
},
|
|
1508
|
-
children: [/* @__PURE__ */
|
|
1555
|
+
children: [/* @__PURE__ */ O(ue, {
|
|
1509
1556
|
variant: "enclosed",
|
|
1510
1557
|
edgeFade: !0,
|
|
1511
|
-
label:
|
|
1512
|
-
children:
|
|
1558
|
+
label: w.groupNavigationLabel,
|
|
1559
|
+
children: ut.map((e) => /* @__PURE__ */ k(pe, {
|
|
1513
1560
|
value: e,
|
|
1514
|
-
children: [
|
|
1561
|
+
children: [dt[e], /* @__PURE__ */ O(n, {
|
|
1515
1562
|
tag: "span",
|
|
1516
1563
|
size: "inherit",
|
|
1517
1564
|
weight: "medium",
|
|
1518
|
-
children:
|
|
1565
|
+
children: w.groups[e]
|
|
1519
1566
|
})]
|
|
1520
1567
|
}, e))
|
|
1521
|
-
}), /* @__PURE__ */
|
|
1568
|
+
}), /* @__PURE__ */ O(de, {
|
|
1522
1569
|
value: N,
|
|
1523
|
-
children: /* @__PURE__ */
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
/* @__PURE__ */
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
"aria-live": "polite",
|
|
1541
|
-
children: C.searchResults(ft.length)
|
|
1542
|
-
})]
|
|
1543
|
-
}), /* @__PURE__ */ E(n, {
|
|
1544
|
-
type: "secondary",
|
|
1545
|
-
children: Z ? C.searchHint : C.groupDescriptions[N]
|
|
1570
|
+
children: /* @__PURE__ */ k(u, { children: [
|
|
1571
|
+
/* @__PURE__ */ k(u, {
|
|
1572
|
+
gap: "sm",
|
|
1573
|
+
children: [/* @__PURE__ */ k(u, {
|
|
1574
|
+
direction: "horizontal",
|
|
1575
|
+
gap: "sm",
|
|
1576
|
+
align: "center",
|
|
1577
|
+
wrap: !0,
|
|
1578
|
+
children: [/* @__PURE__ */ O(t, {
|
|
1579
|
+
level: 3,
|
|
1580
|
+
size: "base",
|
|
1581
|
+
children: Y ? w.allGroups : w.groups[N]
|
|
1582
|
+
}), !!Y && /* @__PURE__ */ O(f, {
|
|
1583
|
+
tone: "neutral",
|
|
1584
|
+
role: "status",
|
|
1585
|
+
"aria-live": "polite",
|
|
1586
|
+
children: w.searchResults(X.length)
|
|
1546
1587
|
})]
|
|
1547
|
-
}),
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1588
|
+
}), /* @__PURE__ */ O(n, {
|
|
1589
|
+
type: "secondary",
|
|
1590
|
+
children: Y ? w.searchHint : w.groupDescriptions[N]
|
|
1591
|
+
})]
|
|
1592
|
+
}),
|
|
1593
|
+
!Y && xt,
|
|
1594
|
+
N === "defaults" && !Y ? /* @__PURE__ */ O(Je, {
|
|
1595
|
+
config: M,
|
|
1596
|
+
onChange: (e) => {
|
|
1597
|
+
b === void 0 && Le(e), se?.(e), W("idle");
|
|
1598
|
+
},
|
|
1599
|
+
strings: w.providerSettings
|
|
1600
|
+
}) : Z.length > 0 ? /* @__PURE__ */ O(o, {
|
|
1601
|
+
multiple: !0,
|
|
1602
|
+
defaultValue: [`${Z[0].group}:${Z[0].section}`],
|
|
1603
|
+
surface: "bordered",
|
|
1604
|
+
media: "none",
|
|
1605
|
+
items: Z.map((e) => {
|
|
1606
|
+
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? w.mixedScope : t.has("shared") ? w.sharedScope : A.mode === "light" ? w.lightMode : w.darkMode;
|
|
1607
|
+
return {
|
|
1608
|
+
value: `${e.group}:${e.section}`,
|
|
1609
|
+
title: Y ? w.groupSectionLabel(w.groups[e.group], w.sections[e.section]) : w.sections[e.section],
|
|
1610
|
+
description: w.variableCount(e.fields.length),
|
|
1611
|
+
badge: /* @__PURE__ */ O(f, {
|
|
1612
|
+
tone: "neutral",
|
|
1613
|
+
children: n
|
|
1614
|
+
}),
|
|
1615
|
+
content: /* @__PURE__ */ O("div", {
|
|
1616
|
+
className: U.fields,
|
|
1617
|
+
children: e.fields.map((e) => {
|
|
1618
|
+
let t = e.scope === "shared" ? "shared" : A.mode;
|
|
1619
|
+
return /* @__PURE__ */ O(vt, {
|
|
1620
|
+
field: e,
|
|
1621
|
+
value: A[t][e.name] ?? "",
|
|
1622
|
+
effectiveValue: $e[e.name] ?? "",
|
|
1623
|
+
strings: w,
|
|
1624
|
+
onChange: (t) => {
|
|
1625
|
+
if (e.name === "--primary" && L && t.trim()) {
|
|
1626
|
+
rt(ye({
|
|
1627
|
+
primary: t,
|
|
1628
|
+
mode: A.mode
|
|
1629
|
+
}));
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
Q(gt(A, e, t));
|
|
1633
|
+
},
|
|
1634
|
+
onReset: () => Q(gt(A, e, ""))
|
|
1635
|
+
}, e.name);
|
|
1592
1636
|
})
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
}, `${N}:${Z}`) : /* @__PURE__ */ E(o, {
|
|
1596
|
-
padding: "sm",
|
|
1597
|
-
title: C.emptySearch,
|
|
1598
|
-
description: !1,
|
|
1599
|
-
className: V.empty
|
|
1637
|
+
})
|
|
1638
|
+
};
|
|
1600
1639
|
})
|
|
1601
|
-
|
|
1602
|
-
|
|
1640
|
+
}, `${N}:${Y}`) : /* @__PURE__ */ O(te, {
|
|
1641
|
+
border: !0,
|
|
1642
|
+
title: w.emptySearch,
|
|
1643
|
+
description: !1
|
|
1644
|
+
})
|
|
1645
|
+
] })
|
|
1603
1646
|
})]
|
|
1604
1647
|
})]
|
|
1605
1648
|
}),
|
|
1606
|
-
|
|
1607
|
-
className:
|
|
1608
|
-
children:
|
|
1649
|
+
_ !== !1 && /* @__PURE__ */ O("div", {
|
|
1650
|
+
className: U.preview,
|
|
1651
|
+
children: _ ?? /* @__PURE__ */ O(yt, { strings: w })
|
|
1609
1652
|
}),
|
|
1610
|
-
/* @__PURE__ */
|
|
1611
|
-
...
|
|
1612
|
-
title:
|
|
1613
|
-
description:
|
|
1653
|
+
/* @__PURE__ */ O(ge, {
|
|
1654
|
+
...Ze.overlayProps,
|
|
1655
|
+
title: w.exportDialogTitle,
|
|
1656
|
+
description: w.exportDialogDescription,
|
|
1614
1657
|
showCloseButton: !1,
|
|
1615
1658
|
showCancel: !1,
|
|
1616
1659
|
showConfirm: !1,
|
|
1617
1660
|
width: "xl",
|
|
1618
|
-
surfaceStyle:
|
|
1619
|
-
className:
|
|
1620
|
-
footer: /* @__PURE__ */
|
|
1621
|
-
className:
|
|
1622
|
-
children: [/* @__PURE__ */
|
|
1661
|
+
surfaceStyle: H(A),
|
|
1662
|
+
className: A.mode,
|
|
1663
|
+
footer: /* @__PURE__ */ k("div", {
|
|
1664
|
+
className: U.exportFooter,
|
|
1665
|
+
children: [/* @__PURE__ */ k(s, {
|
|
1623
1666
|
type: "button",
|
|
1624
1667
|
tone: "neutral",
|
|
1625
|
-
|
|
1626
|
-
disabled:
|
|
1627
|
-
onClick:
|
|
1628
|
-
children: [/* @__PURE__ */
|
|
1629
|
-
}), /* @__PURE__ */
|
|
1630
|
-
render: /* @__PURE__ */
|
|
1668
|
+
appearance: "ghost",
|
|
1669
|
+
disabled: nt === 0,
|
|
1670
|
+
onClick: pt,
|
|
1671
|
+
children: [/* @__PURE__ */ O(Te, {}), w.reset]
|
|
1672
|
+
}), /* @__PURE__ */ O(c, {
|
|
1673
|
+
render: /* @__PURE__ */ O(s, {
|
|
1631
1674
|
type: "button",
|
|
1632
1675
|
tone: "neutral",
|
|
1633
|
-
|
|
1676
|
+
appearance: "outline"
|
|
1634
1677
|
}),
|
|
1635
|
-
children:
|
|
1678
|
+
children: w.close
|
|
1636
1679
|
})]
|
|
1637
1680
|
}),
|
|
1638
|
-
children: /* @__PURE__ */
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
})
|
|
1668
|
-
]
|
|
1669
|
-
})
|
|
1681
|
+
children: /* @__PURE__ */ k(u, { children: [
|
|
1682
|
+
/* @__PURE__ */ O(_t, {
|
|
1683
|
+
title: w.cssOutputLabel,
|
|
1684
|
+
description: w.cssOutputDescription,
|
|
1685
|
+
code: tt,
|
|
1686
|
+
copyLabel: w.copy,
|
|
1687
|
+
downloadLabel: Ye ? w.exportPending : w.downloadCss,
|
|
1688
|
+
downloading: Ye,
|
|
1689
|
+
onCopy: () => void $(tt),
|
|
1690
|
+
onDownload: () => void ct()
|
|
1691
|
+
}),
|
|
1692
|
+
/* @__PURE__ */ O(_t, {
|
|
1693
|
+
title: w.providerOutputLabel,
|
|
1694
|
+
description: w.providerOutputDescription,
|
|
1695
|
+
code: q?.providerConfigText ?? "",
|
|
1696
|
+
copyLabel: w.copyProvider,
|
|
1697
|
+
downloadLabel: w.downloadProvider,
|
|
1698
|
+
onCopy: () => void $(q?.providerConfigText ?? ""),
|
|
1699
|
+
onDownload: ft
|
|
1700
|
+
}),
|
|
1701
|
+
!!bt && /* @__PURE__ */ O(n, {
|
|
1702
|
+
tag: "div",
|
|
1703
|
+
size: "xs",
|
|
1704
|
+
type: J ? "error" : "secondary",
|
|
1705
|
+
role: "status",
|
|
1706
|
+
"aria-live": "polite",
|
|
1707
|
+
children: bt
|
|
1708
|
+
})
|
|
1709
|
+
] })
|
|
1670
1710
|
})
|
|
1671
1711
|
]
|
|
1672
1712
|
});
|
|
1673
|
-
return
|
|
1674
|
-
...
|
|
1675
|
-
ref:
|
|
1676
|
-
theme:
|
|
1677
|
-
className:
|
|
1713
|
+
return m === "self" ? /* @__PURE__ */ O(Ge, {
|
|
1714
|
+
...ke,
|
|
1715
|
+
ref: G,
|
|
1716
|
+
theme: h ? A : j({ mode: A.mode }),
|
|
1717
|
+
className: r("theme-tweaker--component", U.root, U.rootScoped, Oe),
|
|
1678
1718
|
children: St
|
|
1679
|
-
}) : /* @__PURE__ */
|
|
1680
|
-
...
|
|
1681
|
-
ref:
|
|
1682
|
-
className:
|
|
1719
|
+
}) : /* @__PURE__ */ O("div", {
|
|
1720
|
+
...ke,
|
|
1721
|
+
ref: G,
|
|
1722
|
+
className: r("theme-tweaker--component", U.root, Oe),
|
|
1683
1723
|
children: St
|
|
1684
1724
|
});
|
|
1685
1725
|
});
|
|
1686
1726
|
//#endregion
|
|
1687
|
-
export {
|
|
1727
|
+
export { Ge as ThemeScope, bt as ThemeTweaker, Je as UIConfigSettings, Be as countThemeOverrides, Ve as createScopedThemeSelectors, B as createSerializableUIConfig, j as createTheme, He as createThemeExportArtifact, A as defaultThemeSelectors, ot as defaultThemeTweakerFields, st as defaultThemeTweakerStrings, Ke as defaultUIConfigSettingsStrings, ve as deriveThemeElevation, ye as deriveThemePalette, _e as deriveThemeTypeScale, Ue as downloadTextFile, We as downloadTheme, ze as getActiveThemeOverrides, N as isThemeVariableName, z as serializeTheme, V as serializeUIConfig, M as themeFromConfig, H as themeToStyle, lt as useAppliedTheme };
|