themelia-react-ui 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/LICENSE +21 -0
- package/README.md +249 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/accordion-BRWh3BM1.js +205 -0
- package/dist/accordion-BRWh3BM1.js.map +1 -0
- package/dist/action-menu-Cx3SdfbN.js +265 -0
- package/dist/action-menu-Cx3SdfbN.js.map +1 -0
- package/dist/action-presentation.js +11 -0
- package/dist/action-presentation.js.map +1 -0
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js +23 -0
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +1 -0
- package/dist/ai-artifact-DkOArd3-.js +1121 -0
- package/dist/ai-artifact-DkOArd3-.js.map +1 -0
- package/dist/anchored-positioning-DPnKTvNs.js +6 -0
- package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
- package/dist/app-shell-BH_bGcE2.js +235 -0
- package/dist/app-shell-BH_bGcE2.js.map +1 -0
- package/dist/attachment-DsLgNHXt.js +244 -0
- package/dist/attachment-DsLgNHXt.js.map +1 -0
- package/dist/auth-BDB1V_2q.js +704 -0
- package/dist/auth-BDB1V_2q.js.map +1 -0
- package/dist/avatar-CsnWaYmt.js +173 -0
- package/dist/avatar-CsnWaYmt.js.map +1 -0
- package/dist/badge-BZXZT9wd.js +92 -0
- package/dist/badge-BZXZT9wd.js.map +1 -0
- package/dist/base/accordion.js +3 -0
- package/dist/base/action-menu.js +3 -0
- package/dist/base/attachment.js +3 -0
- package/dist/base/avatar.js +3 -0
- package/dist/base/badge.js +3 -0
- package/dist/base/buttons.js +3 -0
- package/dist/base/cards.js +4 -0
- package/dist/base/carousel.js +251 -0
- package/dist/base/carousel.js.map +1 -0
- package/dist/base/cascader.js +361 -0
- package/dist/base/cascader.js.map +1 -0
- package/dist/base/chart.js +3 -0
- package/dist/base/choice-inputs.js +3 -0
- package/dist/base/code-block.js +3 -0
- package/dist/base/combobox.js +3 -0
- package/dist/base/command.js +3 -0
- package/dist/base/copyable.js +3 -0
- package/dist/base/date-pickers.js +4 -0
- package/dist/base/display.js +8 -0
- package/dist/base/feedback.js +4 -0
- package/dist/base/forms-numeric.js +3 -0
- package/dist/base/forms.js +4 -0
- package/dist/base/item.js +3 -0
- package/dist/base/media-gallery.js +3 -0
- package/dist/base/navigation.js +8 -0
- package/dist/base/popover-menu.js +3 -0
- package/dist/base/popover.js +3 -0
- package/dist/base/qr-code.js +63 -0
- package/dist/base/qr-code.js.map +1 -0
- package/dist/base/repeaters.js +620 -0
- package/dist/base/repeaters.js.map +1 -0
- package/dist/base/sheet.js +3 -0
- package/dist/base/sidebar.js +3 -0
- package/dist/base/signature-pad.js +364 -0
- package/dist/base/signature-pad.js.map +1 -0
- package/dist/base/skeleton.js +3 -0
- package/dist/base/spinner.js +3 -0
- package/dist/base/structure.js +3 -0
- package/dist/base/table.js +3 -0
- package/dist/base/text-inputs.js +4 -0
- package/dist/base/toaster.js +102 -0
- package/dist/base/toaster.js.map +1 -0
- package/dist/base/tree.js +3 -0
- package/dist/base/upload-queue.js +3 -0
- package/dist/base/upload.js +5 -0
- package/dist/base/value-inputs.js +3 -0
- package/dist/blocks/admin.js +478 -0
- package/dist/blocks/admin.js.map +1 -0
- package/dist/blocks/ai.js +1021 -0
- package/dist/blocks/ai.js.map +1 -0
- package/dist/blocks/analytics.js +1499 -0
- package/dist/blocks/analytics.js.map +1 -0
- package/dist/blocks/collaboration.js +3 -0
- package/dist/blocks/commerce/receipt.js +3 -0
- package/dist/blocks/commerce.js +3393 -0
- package/dist/blocks/commerce.js.map +1 -0
- package/dist/blocks/data-display.js +3 -0
- package/dist/blocks/onboarding.js +128 -0
- package/dist/blocks/onboarding.js.map +1 -0
- package/dist/blocks/timelines.js +3 -0
- package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
- package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
- package/dist/button-BS6l5JUw.js +47 -0
- package/dist/button-BS6l5JUw.js.map +1 -0
- package/dist/buttons-Co6GavvM.js +674 -0
- package/dist/buttons-Co6GavvM.js.map +1 -0
- package/dist/cards-BMB0laLG.js +66 -0
- package/dist/cards-BMB0laLG.js.map +1 -0
- package/dist/chart-DVfcwQu6.js +149 -0
- package/dist/chart-DVfcwQu6.js.map +1 -0
- package/dist/choice-inputs-CavA-SGV.js +644 -0
- package/dist/choice-inputs-CavA-SGV.js.map +1 -0
- package/dist/code-block-DIlqzoiD.js +183 -0
- package/dist/code-block-DIlqzoiD.js.map +1 -0
- package/dist/collapsible-DsnktFNv.js +81 -0
- package/dist/collapsible-DsnktFNv.js.map +1 -0
- package/dist/collection-content-C4fthJV_.js +53 -0
- package/dist/collection-content-C4fthJV_.js.map +1 -0
- package/dist/combobox-CHD750do.js +850 -0
- package/dist/combobox-CHD750do.js.map +1 -0
- package/dist/combobox-HDftpzxt.js +273 -0
- package/dist/combobox-HDftpzxt.js.map +1 -0
- package/dist/command-D0kWBZfd.js +421 -0
- package/dist/command-D0kWBZfd.js.map +1 -0
- package/dist/comments-CvYeglMS.js +1132 -0
- package/dist/comments-CvYeglMS.js.map +1 -0
- package/dist/component-vocabulary.js +26 -0
- package/dist/component-vocabulary.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
- package/dist/components/base/accordion/accordion.d.ts +20 -0
- package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
- package/dist/components/base/accordion/accordion.types.d.ts +74 -0
- package/dist/components/base/accordion/index.d.ts +4 -0
- package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
- package/dist/components/base/action-menu/action-menu.d.ts +147 -0
- package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
- package/dist/components/base/action-menu/index.d.ts +11 -0
- package/dist/components/base/attachment/attachment.d.ts +17 -0
- package/dist/components/base/attachment/attachment.types.d.ts +49 -0
- package/dist/components/base/attachment/index.d.ts +2 -0
- package/dist/components/base/avatar/avatar.d.ts +24 -0
- package/dist/components/base/avatar/index.d.ts +14 -0
- package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
- package/dist/components/base/badge/badge.d.ts +22 -0
- package/dist/components/base/badge/badge.recipes.d.ts +20 -0
- package/dist/components/base/badge/index.d.ts +2 -0
- package/dist/components/base/buttons/base-button.d.ts +24 -0
- package/dist/components/base/buttons/button-group.d.ts +28 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
- package/dist/components/base/buttons/button.d.ts +47 -0
- package/dist/components/base/buttons/button.recipes.d.ts +23 -0
- package/dist/components/base/buttons/button.variants.d.ts +8 -0
- package/dist/components/base/buttons/index.d.ts +7 -0
- package/dist/components/base/buttons/loader-button.d.ts +40 -0
- package/dist/components/base/buttons/text-button.d.ts +19 -0
- package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
- package/dist/components/base/cards/card-actions.d.ts +41 -0
- package/dist/components/base/cards/card.recipes.d.ts +28 -0
- package/dist/components/base/cards/index.d.ts +5 -0
- package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
- package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
- package/dist/components/base/cards/smart-card.d.ts +9 -0
- package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
- package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
- package/dist/components/base/cards/smart-card.types.d.ts +144 -0
- package/dist/components/base/carousel/carousel.d.ts +105 -0
- package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
- package/dist/components/base/carousel/index.d.ts +2 -0
- package/dist/components/base/cascader/cascader.d.ts +2 -0
- package/dist/components/base/cascader/cascader.types.d.ts +57 -0
- package/dist/components/base/cascader/index.d.ts +2 -0
- package/dist/components/base/chart/chart.d.ts +99 -0
- package/dist/components/base/chart/index.d.ts +9 -0
- package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
- package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
- package/dist/components/base/choice-inputs/index.d.ts +28 -0
- package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
- package/dist/components/base/choice-inputs/select.d.ts +94 -0
- package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
- package/dist/components/base/choice-inputs/switch.d.ts +38 -0
- package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
- package/dist/components/base/code-block/code-block.d.ts +3 -0
- package/dist/components/base/code-block/code-block.types.d.ts +46 -0
- package/dist/components/base/code-block/index.d.ts +2 -0
- package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
- package/dist/components/base/combobox/index.d.ts +27 -0
- package/dist/components/base/command/command.d.ts +73 -0
- package/dist/components/base/command/index.d.ts +1 -0
- package/dist/components/base/copyable/copyable.d.ts +36 -0
- package/dist/components/base/copyable/index.d.ts +1 -0
- package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
- package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
- package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
- package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
- package/dist/components/base/date-pickers/index.d.ts +7 -0
- package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
- package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
- package/dist/components/base/display/alert-dialog.d.ts +25 -0
- package/dist/components/base/display/boolean-indicator.d.ts +25 -0
- package/dist/components/base/display/collapsible.d.ts +21 -0
- package/dist/components/base/display/content-block.d.ts +73 -0
- package/dist/components/base/display/content-block.strings.d.ts +5 -0
- package/dist/components/base/display/date-block.d.ts +70 -0
- package/dist/components/base/display/dialog.d.ts +35 -0
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
- package/dist/components/base/display/icon-badge/index.d.ts +1 -0
- package/dist/components/base/display/icon-size.d.ts +5 -0
- package/dist/components/base/display/index.d.ts +31 -0
- package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
- package/dist/components/base/display/scroll-area.d.ts +12 -0
- package/dist/components/base/display/separator.d.ts +10 -0
- package/dist/components/base/display/surface-title.d.ts +10 -0
- package/dist/components/base/display/tooltip.d.ts +28 -0
- package/dist/components/base/display/visually-hidden.d.ts +14 -0
- package/dist/components/base/feedback/alert.d.ts +49 -0
- package/dist/components/base/feedback/empty.d.ts +48 -0
- package/dist/components/base/feedback/index.d.ts +27 -0
- package/dist/components/base/feedback/progress.d.ts +81 -0
- package/dist/components/base/feedback/progress.strings.d.ts +5 -0
- package/dist/components/base/feedback/state-display.d.ts +39 -0
- package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
- package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
- package/dist/components/base/forms/form-field.d.ts +38 -0
- package/dist/components/base/forms/form-sizing.d.ts +86 -0
- package/dist/components/base/forms/index.d.ts +4 -0
- package/dist/components/base/forms/operation-password-form.d.ts +16 -0
- package/dist/components/base/forms/workflow.d.ts +68 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
- package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
- package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
- package/dist/components/base/forms-numeric/index.d.ts +21 -0
- package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
- package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
- package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
- package/dist/components/base/item/index.d.ts +2 -0
- package/dist/components/base/item/item.d.ts +12 -0
- package/dist/components/base/item/item.types.d.ts +100 -0
- package/dist/components/base/media-gallery/index.d.ts +2 -0
- package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
- package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
- package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
- package/dist/components/base/navigation/index.d.ts +21 -0
- package/dist/components/base/navigation/language-switcher.d.ts +12 -0
- package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
- package/dist/components/base/navigation/pagination.d.ts +61 -0
- package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
- package/dist/components/base/navigation/tabs.d.ts +23 -0
- package/dist/components/base/popover/collection-content.d.ts +22 -0
- package/dist/components/base/popover/index.d.ts +1 -0
- package/dist/components/base/popover/popover.d.ts +54 -0
- package/dist/components/base/popover/popover.recipes.d.ts +29 -0
- package/dist/components/base/popover-menu/index.d.ts +3 -0
- package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
- package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
- package/dist/components/base/qr-code/index.d.ts +8 -0
- package/dist/components/base/qr-code/qr-code.d.ts +13 -0
- package/dist/components/base/repeaters/index.d.ts +21 -0
- package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
- package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
- package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
- package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
- package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
- package/dist/components/base/repeaters/repeater.d.ts +87 -0
- package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
- package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
- package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +1 -0
- package/dist/components/base/sheet/sheet.d.ts +35 -0
- package/dist/components/base/sidebar/index.d.ts +6 -0
- package/dist/components/base/sidebar/sidebar.d.ts +135 -0
- package/dist/components/base/signature-pad/index.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
- package/dist/components/base/skeleton/index.d.ts +14 -0
- package/dist/components/base/skeleton/skeleton.d.ts +54 -0
- package/dist/components/base/spinner/index.d.ts +1 -0
- package/dist/components/base/spinner/spinner.d.ts +32 -0
- package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
- package/dist/components/base/structure/grid-cell.d.ts +3 -0
- package/dist/components/base/structure/grid.d.ts +3 -0
- package/dist/components/base/structure/index.d.ts +5 -0
- package/dist/components/base/structure/stack.d.ts +3 -0
- package/dist/components/base/structure/structure.context.d.ts +6 -0
- package/dist/components/base/structure/structure.recipes.d.ts +27 -0
- package/dist/components/base/structure/structure.responsive.d.ts +5 -0
- package/dist/components/base/structure/structure.types.d.ts +51 -0
- package/dist/components/base/table/index.d.ts +18 -0
- package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
- package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
- package/dist/components/base/text-inputs/index.d.ts +21 -0
- package/dist/components/base/text-inputs/input-group.d.ts +46 -0
- package/dist/components/base/text-inputs/input.d.ts +45 -0
- package/dist/components/base/text-inputs/password-input.d.ts +28 -0
- package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
- package/dist/components/base/text-inputs/textarea.d.ts +37 -0
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/toaster/toaster.d.ts +6 -0
- package/dist/components/base/tree/hierarchy.d.ts +11 -0
- package/dist/components/base/tree/index.d.ts +2 -0
- package/dist/components/base/tree/tree.d.ts +3 -0
- package/dist/components/base/tree/tree.types.d.ts +47 -0
- package/dist/components/base/upload/avatar-upload.d.ts +39 -0
- package/dist/components/base/upload/dropzone.d.ts +40 -0
- package/dist/components/base/upload/file-picker-input.d.ts +15 -0
- package/dist/components/base/upload/file-upload.d.ts +9 -0
- package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
- package/dist/components/base/upload/file-upload.types.d.ts +68 -0
- package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
- package/dist/components/base/upload/image-upload.d.ts +57 -0
- package/dist/components/base/upload/index.d.ts +26 -0
- package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
- package/dist/components/base/upload-queue/index.d.ts +3 -0
- package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
- package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
- package/dist/components/base/value-inputs/color-input.d.ts +26 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
- package/dist/components/base/value-inputs/index.d.ts +25 -0
- package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
- package/dist/components/base/value-inputs/slider.d.ts +59 -0
- package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
- package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
- package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
- package/dist/components/blocks/admin/index.d.ts +4 -0
- package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
- package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
- package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
- package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
- package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
- package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
- package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
- package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
- package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
- package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
- package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
- package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
- package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
- package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
- package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
- package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
- package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
- package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
- package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
- package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
- package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
- package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
- package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
- package/dist/components/blocks/ai/index.d.ts +24 -0
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
- package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
- package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
- package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
- package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
- package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
- package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
- package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
- package/dist/components/blocks/analytics/index.d.ts +34 -0
- package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
- package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
- package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
- package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
- package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
- package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
- package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
- package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
- package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
- package/dist/components/blocks/analytics/types.d.ts +83 -0
- package/dist/components/blocks/collaboration/index.d.ts +1 -0
- package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
- package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
- package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
- package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
- package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
- package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
- package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
- package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
- package/dist/components/blocks/commerce/index.d.ts +34 -0
- package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
- package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
- package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
- package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
- package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
- package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
- package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
- package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
- package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
- package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
- package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
- package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
- package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
- package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
- package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
- package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
- package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
- package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
- package/dist/components/blocks/data-display/index.d.ts +6 -0
- package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
- package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
- package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
- package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
- package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
- package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
- package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
- package/dist/components/blocks/onboarding/index.d.ts +7 -0
- package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
- package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
- package/dist/components/blocks/timelines/index.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
- package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
- package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
- package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
- package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
- package/dist/components/features/activities/activities-feed.d.ts +5 -0
- package/dist/components/features/activities/activities.config.d.ts +6 -0
- package/dist/components/features/activities/activities.strings.d.ts +38 -0
- package/dist/components/features/activities/activities.types.d.ts +431 -0
- package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
- package/dist/components/features/activities/activity-log.d.ts +6 -0
- package/dist/components/features/activities/hooks/index.d.ts +2 -0
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
- package/dist/components/features/activities/index.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
- package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
- package/dist/components/features/activities/partials/index.d.ts +8 -0
- package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
- package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
- package/dist/components/features/ai-chat/index.d.ts +5 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
- package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
- package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
- package/dist/components/features/async-preview/async-preview.d.ts +84 -0
- package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
- package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
- package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
- package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
- package/dist/components/features/async-preview/index.d.ts +6 -0
- package/dist/components/features/async-preview/partials/index.d.ts +1 -0
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
- package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
- package/dist/components/features/combobox/combobox.d.ts +20 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
- package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
- package/dist/components/features/combobox/components/error-message.d.ts +15 -0
- package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
- package/dist/components/features/combobox/components/index.d.ts +13 -0
- package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
- package/dist/components/features/combobox/components/status-content.d.ts +21 -0
- package/dist/components/features/combobox/constants.d.ts +19 -0
- package/dist/components/features/combobox/hooks/index.d.ts +2 -0
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
- package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
- package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
- package/dist/components/features/combobox/index.d.ts +13 -0
- package/dist/components/features/combobox/types.d.ts +184 -0
- package/dist/components/features/comments/comments-provider.d.ts +15 -0
- package/dist/components/features/comments/comments.d.ts +2 -0
- package/dist/components/features/comments/comments.strings.d.ts +91 -0
- package/dist/components/features/comments/comments.types.d.ts +369 -0
- package/dist/components/features/comments/hooks/index.d.ts +4 -0
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
- package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
- package/dist/components/features/comments/index.d.ts +8 -0
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
- package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
- package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
- package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
- package/dist/components/features/comments/partials/index.d.ts +9 -0
- package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
- package/dist/components/features/data-view/data-view.d.ts +7 -0
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
- package/dist/components/features/data-view/data-view.types.d.ts +191 -0
- package/dist/components/features/data-view/hooks/index.d.ts +1 -0
- package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
- package/dist/components/features/data-view/index.d.ts +4 -0
- package/dist/components/features/email-composer/document.d.ts +8 -0
- package/dist/components/features/email-composer/email-composer.d.ts +2 -0
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/engine.d.ts +18 -0
- package/dist/components/features/email-composer/http.d.ts +6 -0
- package/dist/components/features/email-composer/index.d.ts +6 -0
- package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
- package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
- package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
- package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
- package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
- package/dist/components/features/email-composer/strings.d.ts +79 -0
- package/dist/components/features/email-composer/types.d.ts +195 -0
- package/dist/components/features/email-composer/use-composer.d.ts +119 -0
- package/dist/components/features/event-calendar/colors.d.ts +29 -0
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
- package/dist/components/features/event-calendar/index.d.ts +11 -0
- package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
- package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
- package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
- package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
- package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
- package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
- package/dist/components/features/filters/filter-context.d.ts +61 -0
- package/dist/components/features/filters/filter-layout.d.ts +16 -0
- package/dist/components/features/filters/filter-query.d.ts +21 -0
- package/dist/components/features/filters/filters.strings.d.ts +103 -0
- package/dist/components/features/filters/filters.types.d.ts +222 -0
- package/dist/components/features/filters/hooks/index.d.ts +3 -0
- package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
- package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
- package/dist/components/features/filters/index.d.ts +42 -0
- package/dist/components/features/filters/operator-options.d.ts +9 -0
- package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
- package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
- package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
- package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
- package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
- package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
- package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
- package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
- package/dist/components/features/filters/partials/index.d.ts +14 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
- package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
- package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
- package/dist/components/features/filters/validators.d.ts +63 -0
- package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
- package/dist/components/features/global-search/global-search.d.ts +52 -0
- package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
- package/dist/components/features/global-search/global-search.types.d.ts +105 -0
- package/dist/components/features/global-search/hooks/index.d.ts +2 -0
- package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
- package/dist/components/features/global-search/index.d.ts +9 -0
- package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
- package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
- package/dist/components/features/global-search/partials/index.d.ts +12 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
- package/dist/components/features/kanban/hooks/index.d.ts +1 -0
- package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
- package/dist/components/features/kanban/index.d.ts +5 -0
- package/dist/components/features/kanban/kanban-context.d.ts +25 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
- package/dist/components/features/kanban/kanban.d.ts +38 -0
- package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
- package/dist/components/features/kanban/kanban.types.d.ts +168 -0
- package/dist/components/features/map/index.d.ts +13 -0
- package/dist/components/features/map/map.d.ts +166 -0
- package/dist/components/features/map/place-autocomplete.d.ts +97 -0
- package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
- package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
- package/dist/components/features/media-library/hooks/index.d.ts +1 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
- package/dist/components/features/media-library/index.d.ts +6 -0
- package/dist/components/features/media-library/media-library.d.ts +3 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
- package/dist/components/features/media-library/media-library.types.d.ts +568 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
- package/dist/components/features/media-library/partials/index.d.ts +1 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
- package/dist/components/features/mentions/hooks/index.d.ts +2 -0
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
- package/dist/components/features/mentions/index.d.ts +5 -0
- package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
- package/dist/components/features/mentions/mentions.types.d.ts +100 -0
- package/dist/components/features/mentions/partials/index.d.ts +4 -0
- package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
- package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
- package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
- package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
- package/dist/components/features/mentions/utils/index.d.ts +3 -0
- package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
- package/dist/components/features/overlays/dialog.d.ts +4 -0
- package/dist/components/features/overlays/drawer.d.ts +4 -0
- package/dist/components/features/overlays/hooks/index.d.ts +2 -0
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
- package/dist/components/features/overlays/index.d.ts +6 -0
- package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
- package/dist/components/features/overlays/overlays.types.d.ts +169 -0
- package/dist/components/features/products/components/index.d.ts +17 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-matrix.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
- package/dist/components/features/products/index.d.ts +3 -0
- package/dist/components/features/products/partials/index.d.ts +7 -0
- package/dist/components/features/products/partials/product-actions.d.ts +10 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
- package/dist/components/features/products/partials/product-rows.d.ts +35 -0
- package/dist/components/features/products/partials/product-tone.d.ts +8 -0
- package/dist/components/features/products/partials/product-values.d.ts +1 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
- package/dist/components/features/products/products.strings.d.ts +308 -0
- package/dist/components/features/products/products.types.d.ts +906 -0
- package/dist/components/features/questionnaire/index.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
- package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
- package/dist/components/features/resource/index.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +8 -0
- package/dist/components/features/resource/resource.strings.d.ts +12 -0
- package/dist/components/features/resource/resource.types.d.ts +161 -0
- package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
- package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
- package/dist/components/features/resource-assignment/index.d.ts +6 -0
- package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
- package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
- package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
- package/dist/components/features/rich-text-editor/index.d.ts +5 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
- package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
- package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
- package/dist/components/features/schema-form/index.d.ts +5 -0
- package/dist/components/features/schema-form/partials/index.d.ts +3 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
- package/dist/components/features/schema-form/schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
- package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
- package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
- package/dist/components/features/suggestions/index.d.ts +4 -0
- package/dist/components/features/suggestions/suggestions.d.ts +5 -0
- package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
- package/dist/components/features/sync/index.d.ts +3 -0
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
- package/dist/components/features/sync/sync.strings.d.ts +18 -0
- package/dist/components/features/sync/sync.types.d.ts +44 -0
- package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
- package/dist/components/features/table/data-table.d.ts +6 -0
- package/dist/components/features/table/filter-bar.d.ts +5 -0
- package/dist/components/features/table/hooks.d.ts +47 -0
- package/dist/components/features/table/index.d.ts +16 -0
- package/dist/components/features/table/pagination.d.ts +5 -0
- package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
- package/dist/components/features/table/partials/cell-value.d.ts +121 -0
- package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
- package/dist/components/features/table/partials/table-link.d.ts +3 -0
- package/dist/components/features/table/table-actions.d.ts +5 -0
- package/dist/components/features/table/table-body.d.ts +5 -0
- package/dist/components/features/table/table-header.d.ts +6 -0
- package/dist/components/features/table/table-helpers.d.ts +39 -0
- package/dist/components/features/table/table-toolbar.d.ts +5 -0
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +489 -0
- package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
- package/dist/components/features/theme-tweaker/index.d.ts +10 -0
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
- package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
- package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
- package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
- package/dist/components/layout/app-shell/index.d.ts +6 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
- package/dist/components/layout/auth/auth-card.d.ts +2 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
- package/dist/components/layout/auth/auth-form.d.ts +11 -0
- package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
- package/dist/components/layout/auth/auth-shell.d.ts +2 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
- package/dist/components/layout/auth/auth.strings.d.ts +21 -0
- package/dist/components/layout/auth/auth.types.d.ts +282 -0
- package/dist/components/layout/auth/index.d.ts +10 -0
- package/dist/components/layout/containers/container.recipes.d.ts +5 -0
- package/dist/components/layout/containers/containers.types.d.ts +17 -0
- package/dist/components/layout/containers/content-container.d.ts +3 -0
- package/dist/components/layout/containers/index.d.ts +5 -0
- package/dist/components/layout/containers/page-viewport.d.ts +3 -0
- package/dist/components/layout/containers/section.d.ts +3 -0
- package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
- package/dist/components/layout/header/header.d.ts +2 -0
- package/dist/components/layout/header/header.types.d.ts +198 -0
- package/dist/components/layout/header/index.d.ts +9 -0
- package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
- package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
- package/dist/components/layout/header/partials/header-search.d.ts +2 -0
- package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
- package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
- package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
- package/dist/components/layout/hooks/index.d.ts +3 -0
- package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
- package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
- package/dist/components/layout/index.d.ts +24 -0
- package/dist/components/layout/layout.types.d.ts +91 -0
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
- package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
- package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
- package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
- package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
- package/dist/components/layout/navigation/index.d.ts +17 -0
- package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
- package/dist/components/layout/navigation/side-nav.d.ts +58 -0
- package/dist/components/layout/page/index.d.ts +4 -0
- package/dist/components/layout/page/page.d.ts +3 -0
- package/dist/components/layout/page/page.types.d.ts +138 -0
- package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
- package/dist/components/layout/page/partials/page-header.d.ts +2 -0
- package/dist/components/layout/settings/index.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +65 -0
- package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
- package/dist/components/layout/sidebar/index.d.ts +11 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
- package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
- package/dist/components/layout/workspace/index.d.ts +3 -0
- package/dist/components/layout/workspace/workspace.d.ts +6 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
- package/dist/components/primitives/date.d.ts +63 -0
- package/dist/components/primitives/dimensions.d.ts +30 -0
- package/dist/components/primitives/duration.d.ts +23 -0
- package/dist/components/primitives/file-size.d.ts +23 -0
- package/dist/components/primitives/index.d.ts +11 -0
- package/dist/components/primitives/initials-format.d.ts +21 -0
- package/dist/components/primitives/initials.d.ts +16 -0
- package/dist/components/primitives/link.d.ts +28 -0
- package/dist/components/primitives/money.d.ts +79 -0
- package/dist/components/primitives/name.d.ts +16 -0
- package/dist/components/primitives/number.d.ts +23 -0
- package/dist/components/primitives/value.d.ts +23 -0
- package/dist/components/typography/content-typography.d.ts +4 -0
- package/dist/components/typography/display-label.d.ts +5 -0
- package/dist/components/typography/heading.d.ts +16 -0
- package/dist/components/typography/index.d.ts +10 -0
- package/dist/components/typography/label.d.ts +8 -0
- package/dist/components/typography/rich-text/index.d.ts +2 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
- package/dist/components/typography/text-link.d.ts +7 -0
- package/dist/components/typography/text.d.ts +17 -0
- package/dist/components/typography/text.styles.d.ts +50 -0
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +5 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts +9 -0
- package/dist/components/ui/combobox.d.ts +40 -0
- package/dist/components/ui/command.d.ts +50 -0
- package/dist/components/ui/dialog.d.ts +26 -0
- package/dist/components/ui/disclosure-panel.d.ts +14 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/input-group.d.ts +18 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +22 -0
- package/dist/components/ui/overlay.recipes.d.ts +2 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/popover.d.ts +22 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slot.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/tabs.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts +13 -0
- package/dist/containers-CPNyNo1_.js +124 -0
- package/dist/containers-CPNyNo1_.js.map +1 -0
- package/dist/content-typography-CnwgMJ37.js +6 -0
- package/dist/content-typography-CnwgMJ37.js.map +1 -0
- package/dist/copyable-B7SBXJMr.js +65 -0
- package/dist/copyable-B7SBXJMr.js.map +1 -0
- package/dist/data-display-b3d1TfL4.js +1129 -0
- package/dist/data-display-b3d1TfL4.js.map +1 -0
- package/dist/date-BFNMnrS5.js +140 -0
- package/dist/date-BFNMnrS5.js.map +1 -0
- package/dist/date-picker-DI6kPNof.js +1521 -0
- package/dist/date-picker-DI6kPNof.js.map +1 -0
- package/dist/date-pickers-ByP6Cv2z.js +224 -0
- package/dist/date-pickers-ByP6Cv2z.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
- package/dist/display-ByI5tkqy.js +343 -0
- package/dist/display-ByI5tkqy.js.map +1 -0
- package/dist/dropdown-menu-BlnyHr-9.js +186 -0
- package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/features/activities.js +1360 -0
- package/dist/features/activities.js.map +1 -0
- package/dist/features/ai-chat.js +567 -0
- package/dist/features/ai-chat.js.map +1 -0
- package/dist/features/async-preview.js +478 -0
- package/dist/features/async-preview.js.map +1 -0
- package/dist/features/combobox.js +3 -0
- package/dist/features/comments.js +3 -0
- package/dist/features/data-view.js +519 -0
- package/dist/features/data-view.js.map +1 -0
- package/dist/features/email-composer/engine.js +2 -0
- package/dist/features/email-composer.js +1099 -0
- package/dist/features/email-composer.js.map +1 -0
- package/dist/features/event-calendar.js +711 -0
- package/dist/features/event-calendar.js.map +1 -0
- package/dist/features/filters.js +3 -0
- package/dist/features/global-search.js +593 -0
- package/dist/features/global-search.js.map +1 -0
- package/dist/features/kanban.js +425 -0
- package/dist/features/kanban.js.map +1 -0
- package/dist/features/map/images/layers-2x.png +0 -0
- package/dist/features/map/images/layers.png +0 -0
- package/dist/features/map/images/marker-icon-2x.png +0 -0
- package/dist/features/map/images/marker-icon.png +0 -0
- package/dist/features/map/images/marker-shadow.png +0 -0
- package/dist/features/map/images/spritesheet-2x.png +0 -0
- package/dist/features/map/images/spritesheet.png +0 -0
- package/dist/features/map/images/spritesheet.svg +156 -0
- package/dist/features/map/style.css +809 -0
- package/dist/features/map.js +1052 -0
- package/dist/features/map.js.map +1 -0
- package/dist/features/media-library.js +2007 -0
- package/dist/features/media-library.js.map +1 -0
- package/dist/features/mentions.js +3 -0
- package/dist/features/overlays.js +3 -0
- package/dist/features/products.js +3076 -0
- package/dist/features/products.js.map +1 -0
- package/dist/features/questionnaire.js +365 -0
- package/dist/features/questionnaire.js.map +1 -0
- package/dist/features/resource-assignment.js +317 -0
- package/dist/features/resource-assignment.js.map +1 -0
- package/dist/features/resource.js +254 -0
- package/dist/features/resource.js.map +1 -0
- package/dist/features/rich-text-editor.js +23 -0
- package/dist/features/rich-text-editor.js.map +1 -0
- package/dist/features/schema-form.js +744 -0
- package/dist/features/schema-form.js.map +1 -0
- package/dist/features/suggestions.js +149 -0
- package/dist/features/suggestions.js.map +1 -0
- package/dist/features/sync.js +136 -0
- package/dist/features/sync.js.map +1 -0
- package/dist/features/table.js +3 -0
- package/dist/features/theme-tweaker.js +2083 -0
- package/dist/features/theme-tweaker.js.map +1 -0
- package/dist/feedback-a9j9J-9A.js +391 -0
- package/dist/feedback-a9j9J-9A.js.map +1 -0
- package/dist/field-affordance-recipes-CHdUtn2Z.js +17 -0
- package/dist/field-affordance-recipes-CHdUtn2Z.js.map +1 -0
- package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
- package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
- package/dist/filters-qtrcv1hf.js +2203 -0
- package/dist/filters-qtrcv1hf.js.map +1 -0
- package/dist/form-field-C6W-y2hR.js +48 -0
- package/dist/form-field-C6W-y2hR.js.map +1 -0
- package/dist/form-sizing-39NohSqn.js +99 -0
- package/dist/form-sizing-39NohSqn.js.map +1 -0
- package/dist/format-iamDSqs2.js +110 -0
- package/dist/format-iamDSqs2.js.map +1 -0
- package/dist/forms-BF-HSbff.js +194 -0
- package/dist/forms-BF-HSbff.js.map +1 -0
- package/dist/forms-numeric-Y15Bg5Nr.js +867 -0
- package/dist/forms-numeric-Y15Bg5Nr.js.map +1 -0
- package/dist/header-B8ex54cY.js +452 -0
- package/dist/header-B8ex54cY.js.map +1 -0
- package/dist/hooks/use-debounce.d.ts +1 -0
- package/dist/hooks/use-debounced-callback.d.ts +40 -0
- package/dist/hooks/use-files.d.ts +48 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/useFormErrors.d.ts +7 -0
- package/dist/hooks-D6UBVzf2.js +88 -0
- package/dist/hooks-D6UBVzf2.js.map +1 -0
- package/dist/http-CLTVJc5I.js +331 -0
- package/dist/http-CLTVJc5I.js.map +1 -0
- package/dist/icon-badge-Dv0RYQwj.js +53 -0
- package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
- package/dist/icon-size-B6PVwjbC.js +18 -0
- package/dist/icon-size-B6PVwjbC.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -0
- package/dist/initials-format-CDoQEOd_.js +35 -0
- package/dist/initials-format-CDoQEOd_.js.map +1 -0
- package/dist/input-DMorJiTI.js +202 -0
- package/dist/input-DMorJiTI.js.map +1 -0
- package/dist/input-ci9fIgFH.js +20 -0
- package/dist/input-ci9fIgFH.js.map +1 -0
- package/dist/item-pJ0GsOiJ.js +257 -0
- package/dist/item-pJ0GsOiJ.js.map +1 -0
- package/dist/layout/app-shell.js +3 -0
- package/dist/layout/auth.js +3 -0
- package/dist/layout/containers.js +3 -0
- package/dist/layout/header.js +3 -0
- package/dist/layout/hooks.js +3 -0
- package/dist/layout/navigation.js +3 -0
- package/dist/layout/page.js +3 -0
- package/dist/layout/settings.js +3 -0
- package/dist/layout/sidebar.js +4 -0
- package/dist/layout/workspace.js +3 -0
- package/dist/layout.js +13 -0
- package/dist/layout.types-Cn7aUzJp.js +20 -0
- package/dist/layout.types-Cn7aUzJp.js.map +1 -0
- package/dist/lib/action-presentation.d.ts +15 -0
- package/dist/lib/affordance-geometry.generated.d.ts +18 -0
- package/dist/lib/anchored-positioning.d.ts +5 -0
- package/dist/lib/command-filter.d.ts +1 -0
- package/dist/lib/component-vocabulary.d.ts +12 -0
- package/dist/lib/editable-text-recipe.d.ts +6 -0
- package/dist/lib/email-composer.d.ts +6 -0
- package/dist/lib/field-affordance-recipes.d.ts +20 -0
- package/dist/lib/field-state-recipes.d.ts +10 -0
- package/dist/lib/format.d.ts +53 -0
- package/dist/lib/motion-recipes.d.ts +8 -0
- package/dist/lib/navigation-row-recipes.d.ts +26 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
- package/dist/lib/row-recipes.d.ts +3 -0
- package/dist/lib/sanitize-html.d.ts +8 -0
- package/dist/lib/strings.d.ts +16 -0
- package/dist/lib/strings.js +32 -0
- package/dist/lib/strings.js.map +1 -0
- package/dist/lib/surface-recipes.d.ts +27 -0
- package/dist/lib/theme-scope.d.ts +31 -0
- package/dist/lib/token-merge.generated.d.ts +2 -0
- package/dist/lib/track-recipes.d.ts +4 -0
- package/dist/lib/ui-provider/defaults.d.ts +12 -0
- package/dist/lib/ui-provider/hooks.d.ts +13 -0
- package/dist/lib/ui-provider/index.d.ts +28 -0
- package/dist/lib/ui-provider/provider.d.ts +15 -0
- package/dist/lib/ui-provider/scale.d.ts +5 -0
- package/dist/lib/ui-provider/store.d.ts +11 -0
- package/dist/lib/ui-provider/types.d.ts +157 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +2 -0
- package/dist/map-demo-tile.svg +1 -0
- package/dist/media-gallery-Ca4YmvBi.js +200 -0
- package/dist/media-gallery-Ca4YmvBi.js.map +1 -0
- package/dist/mentions-CRio8mTm.js +563 -0
- package/dist/mentions-CRio8mTm.js.map +1 -0
- package/dist/message-B5-6LeYl.js +108 -0
- package/dist/message-B5-6LeYl.js.map +1 -0
- package/dist/motion-recipes-B6jKXEcN.js +27 -0
- package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
- package/dist/navigation-BTrEb5u4.js +267 -0
- package/dist/navigation-BTrEb5u4.js.map +1 -0
- package/dist/navigation-DqEITuD2.js +265 -0
- package/dist/navigation-DqEITuD2.js.map +1 -0
- package/dist/navigation-row-recipes-BFpvGPGE.js +29 -0
- package/dist/navigation-row-recipes-BFpvGPGE.js.map +1 -0
- package/dist/number-BNT_BIzJ.js +269 -0
- package/dist/number-BNT_BIzJ.js.map +1 -0
- package/dist/overlay.recipes-BxW5FIfK.js +6 -0
- package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
- package/dist/overlays-DBqV0J_V.js +982 -0
- package/dist/overlays-DBqV0J_V.js.map +1 -0
- package/dist/page-BMBGjJY8.js +202 -0
- package/dist/page-BMBGjJY8.js.map +1 -0
- package/dist/page-header-BH41wCyY.js +112 -0
- package/dist/page-header-BH41wCyY.js.map +1 -0
- package/dist/pagination-C29vvt3I.js +149 -0
- package/dist/pagination-C29vvt3I.js.map +1 -0
- package/dist/popover-TInGXsjg.js +194 -0
- package/dist/popover-TInGXsjg.js.map +1 -0
- package/dist/popover-menu-BzqXqE72.js +99 -0
- package/dist/popover-menu-BzqXqE72.js.map +1 -0
- package/dist/popover.recipes-zgBhMlUu.js +34 -0
- package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
- package/dist/primitives-DKPOGVpj.js +330 -0
- package/dist/primitives-DKPOGVpj.js.map +1 -0
- package/dist/primitives.js +7 -0
- package/dist/receipt-DYWTQGEc.js +113 -0
- package/dist/receipt-DYWTQGEc.js.map +1 -0
- package/dist/rich-text-B7sBAdDG.js +32 -0
- package/dist/rich-text-B7sBAdDG.js.map +1 -0
- package/dist/rich-text-editor-BZSJchAF.js +575 -0
- package/dist/rich-text-editor-BZSJchAF.js.map +1 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
- package/dist/row-recipes-DL8n7t_b.js +10 -0
- package/dist/row-recipes-DL8n7t_b.js.map +1 -0
- package/dist/sanitize-html-BG9FGe-j.js +64 -0
- package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
- package/dist/scroll-area-BheMQ270.js +47 -0
- package/dist/scroll-area-BheMQ270.js.map +1 -0
- package/dist/select-B2mb-qN2.js +108 -0
- package/dist/select-B2mb-qN2.js.map +1 -0
- package/dist/separator-DO0EbCEm.js +17 -0
- package/dist/separator-DO0EbCEm.js.map +1 -0
- package/dist/separator-Gk_WXH-l.js +21 -0
- package/dist/separator-Gk_WXH-l.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +77 -0
- package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
- package/dist/services/actions/action-provider.d.ts +7 -0
- package/dist/services/actions/action-scope.d.ts +3 -0
- package/dist/services/actions/action-store.d.ts +55 -0
- package/dist/services/actions/actions.strings.d.ts +2 -0
- package/dist/services/actions/actions.types.d.ts +322 -0
- package/dist/services/actions/hooks.d.ts +8 -0
- package/dist/services/actions/index.d.ts +8 -0
- package/dist/services/actions.js +811 -0
- package/dist/services/actions.js.map +1 -0
- package/dist/settings-D9f_wdIC.js +160 -0
- package/dist/settings-D9f_wdIC.js.map +1 -0
- package/dist/sheet-vOUloJ4O.js +205 -0
- package/dist/sheet-vOUloJ4O.js.map +1 -0
- package/dist/sidebar-C3UKkbC5.js +501 -0
- package/dist/sidebar-C3UKkbC5.js.map +1 -0
- package/dist/sidebar-CNBKFDRW.js +598 -0
- package/dist/sidebar-CNBKFDRW.js.map +1 -0
- package/dist/skeleton-BvRhK8y-.js +264 -0
- package/dist/skeleton-BvRhK8y-.js.map +1 -0
- package/dist/slot-CLF9kLrS.js +16 -0
- package/dist/slot-CLF9kLrS.js.map +1 -0
- package/dist/smart-card-B5FcKODh.js +577 -0
- package/dist/smart-card-B5FcKODh.js.map +1 -0
- package/dist/spinner-JtlFJ7Nc.js +78 -0
- package/dist/spinner-JtlFJ7Nc.js.map +1 -0
- package/dist/structure-BvW4vG4H.js +95 -0
- package/dist/structure-BvW4vG4H.js.map +1 -0
- package/dist/structure.recipes-DjqnBpwz.js +548 -0
- package/dist/structure.recipes-DjqnBpwz.js.map +1 -0
- package/dist/style.css +3 -0
- package/dist/surface-recipes-CQfRr-VL.js +27 -0
- package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
- package/dist/table-DnlAJ-xR.js +146 -0
- package/dist/table-DnlAJ-xR.js.map +1 -0
- package/dist/table-ghtAQ-JJ.js +1424 -0
- package/dist/table-ghtAQ-JJ.js.map +1 -0
- package/dist/tabs-DY09eoZg.js +187 -0
- package/dist/tabs-DY09eoZg.js.map +1 -0
- package/dist/text-inputs-BhOcedTo.js +331 -0
- package/dist/text-inputs-BhOcedTo.js.map +1 -0
- package/dist/text.styles-BwB7vAF2.js +64 -0
- package/dist/text.styles-BwB7vAF2.js.map +1 -0
- package/dist/theme-scope-kStaAer0.js +39 -0
- package/dist/theme-scope-kStaAer0.js.map +1 -0
- package/dist/theme.css +872 -0
- package/dist/timelines-CnZ2S_Gr.js +446 -0
- package/dist/timelines-CnZ2S_Gr.js.map +1 -0
- package/dist/track-recipes-LLPNVwFg.js +10 -0
- package/dist/track-recipes-LLPNVwFg.js.map +1 -0
- package/dist/tree-COD9BGdU.js +185 -0
- package/dist/tree-COD9BGdU.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/locale.types.d.ts +7 -0
- package/dist/types/pagination.types.d.ts +24 -0
- package/dist/typography/rich-text.js +3 -0
- package/dist/typography-Cv8MT-82.js +96 -0
- package/dist/typography-Cv8MT-82.js.map +1 -0
- package/dist/typography.js +3 -0
- package/dist/ui-provider-CftIB6TY.js +128 -0
- package/dist/ui-provider-CftIB6TY.js.map +1 -0
- package/dist/ui-provider.js +4 -0
- package/dist/upload-DIzw1dx1.js +849 -0
- package/dist/upload-DIzw1dx1.js.map +1 -0
- package/dist/upload-queue-xRJ3qDmd.js +410 -0
- package/dist/upload-queue-xRJ3qDmd.js.map +1 -0
- package/dist/use-debounce-DZ_1ZBPa.js +18 -0
- package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
- package/dist/use-mobile-vaLKwgyf.js +15 -0
- package/dist/use-mobile-vaLKwgyf.js.map +1 -0
- package/dist/utils-C2EKeIw3.js +72 -0
- package/dist/utils-C2EKeIw3.js.map +1 -0
- package/dist/value-inputs-Co1fu-xv.js +824 -0
- package/dist/value-inputs-Co1fu-xv.js.map +1 -0
- package/dist/workspace-Cbqz4FzN.js +402 -0
- package/dist/workspace-Cbqz4FzN.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +32 -0
- package/docs/consumer-skill/examples/app-layout.tsx +31 -0
- package/docs/consumer-skill/examples/composition.tsx +37 -0
- package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
- package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
- package/docs/consumer-skill/examples/detail.tsx +28 -0
- package/docs/consumer-skill/examples/edit.tsx +61 -0
- package/docs/consumer-skill/examples/email-composer.tsx +25 -0
- package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
- package/docs/consumer-skill/examples/index-table.tsx +36 -0
- package/docs/consumer-skill/examples/manifest.json +94 -0
- package/docs/consumer-skill/examples/receipt.tsx +19 -0
- package/docs/consumer-skill/references/composition.md +170 -0
- package/docs/consumer-skill/references/design-contract.md +145 -0
- package/docs/consumer-skill/references/discovery.md +33 -0
- package/docs/consumer-skill/references/installation.md +66 -0
- package/docs/consumer-skill/references/integration.md +57 -0
- package/docs/consumer-skill/references/public-api.json +17527 -0
- package/docs/consumer-skill/references/theming.md +56 -0
- package/docs/consumer-skill/references/tokens.json +422 -0
- package/docs/consumer-skill/references/workflows.md +39 -0
- package/docs/consumer-skill/scripts/discovery.mjs +79 -0
- package/docs/consumer-skill/scripts/find-components.mjs +11 -0
- package/package.json +621 -4
|
@@ -0,0 +1,2083 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { h as e, m as t } from "../ui-provider-CftIB6TY.js";
|
|
3
|
+
import { COMPONENT_SCALES as n, SEMANTIC_TONES as r } from "../component-vocabulary.js";
|
|
4
|
+
import { t as i } from "../theme-scope-kStaAer0.js";
|
|
5
|
+
import { interpolateString as a, useStrings as o } from "../lib/strings.js";
|
|
6
|
+
import { t as s } from "../utils-C2EKeIw3.js";
|
|
7
|
+
import { n as c } from "../buttons-Co6GavvM.js";
|
|
8
|
+
import { a as l, i as u } from "../typography-Cv8MT-82.js";
|
|
9
|
+
import { r as d, t as f } from "../structure-BvW4vG4H.js";
|
|
10
|
+
import { _ as p, f as m, g as h, h as g, m as ee, t as te } from "../smart-card-B5FcKODh.js";
|
|
11
|
+
import { i as ne, l as re, r as ie } from "../overlays-DBqV0J_V.js";
|
|
12
|
+
import { m as ae } from "../primitives-DKPOGVpj.js";
|
|
13
|
+
import { t as oe } from "../accordion-BRWh3BM1.js";
|
|
14
|
+
import { t as _ } from "../badge-BZXZT9wd.js";
|
|
15
|
+
import { t as v } from "../input-DMorJiTI.js";
|
|
16
|
+
import { d as se } from "../text-inputs-BhOcedTo.js";
|
|
17
|
+
import { t as y } from "../form-field-C6W-y2hR.js";
|
|
18
|
+
import { a as b, l as x } from "../choice-inputs-CavA-SGV.js";
|
|
19
|
+
import { i as ce, n as S } from "../value-inputs-Co1fu-xv.js";
|
|
20
|
+
import { d as le } from "../forms-numeric-Y15Bg5Nr.js";
|
|
21
|
+
import { t as ue } from "../item-pJ0GsOiJ.js";
|
|
22
|
+
import { i as de, r as fe, t as pe } from "../tabs-DY09eoZg.js";
|
|
23
|
+
import { forwardRef as C, useEffect as me, useId as he, useImperativeHandle as ge, useMemo as w, useRef as _e, useState as T } from "react";
|
|
24
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
25
|
+
import { CheckCircle2 as ve, Copy as O, Download as ye, Info as be, LayoutGrid as xe, Moon as Se, Palette as k, RotateCcw as Ce, Search as we, Settings2 as Te, Shapes as Ee, ShieldCheck as A, Sun as De, Type as Oe } from "lucide-react";
|
|
26
|
+
//#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
|
|
27
|
+
var ke = {
|
|
28
|
+
shared: ":root",
|
|
29
|
+
light: ":root,\n.light",
|
|
30
|
+
dark: ".dark"
|
|
31
|
+
}, j = /^--[a-z][a-z0-9-]*$/i, Ae = /[;{}]/, je = /[;{}]/;
|
|
32
|
+
function M(e = {}) {
|
|
33
|
+
return {
|
|
34
|
+
mode: e.mode ?? "light",
|
|
35
|
+
shared: { ...e.shared ?? {} },
|
|
36
|
+
light: { ...e.light ?? {} },
|
|
37
|
+
dark: { ...e.dark ?? {} }
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function N(e) {
|
|
41
|
+
return j.test(e);
|
|
42
|
+
}
|
|
43
|
+
function P(e, t = !0) {
|
|
44
|
+
return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
|
|
45
|
+
if (!N(e)) {
|
|
46
|
+
if (!t) return [];
|
|
47
|
+
throw TypeError(`Invalid CSS variable name: ${e}`);
|
|
48
|
+
}
|
|
49
|
+
let r = n.trim(), i = [...r].some((e) => {
|
|
50
|
+
let t = e.charCodeAt(0);
|
|
51
|
+
return t < 32 || t === 127;
|
|
52
|
+
});
|
|
53
|
+
if (Ae.test(r) || i) {
|
|
54
|
+
if (!t) return [];
|
|
55
|
+
throw TypeError(`Unsafe CSS value for ${e}.`);
|
|
56
|
+
}
|
|
57
|
+
return [[e, r]];
|
|
58
|
+
}).sort(([e], [t]) => e.localeCompare(t));
|
|
59
|
+
}
|
|
60
|
+
function F(e, t) {
|
|
61
|
+
let n = e.trim();
|
|
62
|
+
if (n.length === 0 || je.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
function I(e, t) {
|
|
66
|
+
let n = P(t);
|
|
67
|
+
return n.length === 0 ? null : [
|
|
68
|
+
`${e} {`,
|
|
69
|
+
...n.map(([e, t]) => `\t${e}: ${t};`),
|
|
70
|
+
"}"
|
|
71
|
+
].join("\n");
|
|
72
|
+
}
|
|
73
|
+
function L(e, t = {}) {
|
|
74
|
+
let n = t.selectors ?? ke, r = [
|
|
75
|
+
I(F(n.shared, "shared"), e.shared),
|
|
76
|
+
I(F(n.light, "light"), e.light),
|
|
77
|
+
I(F(n.dark, "dark"), e.dark)
|
|
78
|
+
].filter((e) => e !== null), i = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
|
|
79
|
+
return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
|
|
80
|
+
}
|
|
81
|
+
function R(t = {}) {
|
|
82
|
+
let n = e(t), { locale: r, formatRelativeTime: i, ...a } = n.dates;
|
|
83
|
+
return {
|
|
84
|
+
...n,
|
|
85
|
+
dates: a
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function z(e = {}) {
|
|
89
|
+
let t = R(e);
|
|
90
|
+
return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
|
|
91
|
+
}
|
|
92
|
+
function Me(e, t = e.mode) {
|
|
93
|
+
return {
|
|
94
|
+
...e.shared,
|
|
95
|
+
...e[t]
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function B(e, t = e.mode) {
|
|
99
|
+
return Object.fromEntries(P(Me(e, t), !1));
|
|
100
|
+
}
|
|
101
|
+
function Ne(e) {
|
|
102
|
+
return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
|
|
103
|
+
}
|
|
104
|
+
function Pe(e) {
|
|
105
|
+
let t = F(e, "shared");
|
|
106
|
+
return {
|
|
107
|
+
shared: t,
|
|
108
|
+
light: `${t},\n${t}.light,\n.light ${t}`,
|
|
109
|
+
dark: `${t}.dark,\n.dark ${t}`
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function Fe(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
113
|
+
let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
|
|
114
|
+
return {
|
|
115
|
+
fileName: t,
|
|
116
|
+
cssText: L(i, {
|
|
117
|
+
...n,
|
|
118
|
+
banner: n.banner ?? "themelia-react-ui complete theme"
|
|
119
|
+
}),
|
|
120
|
+
overrideCssText: L(e, n),
|
|
121
|
+
theme: M(e),
|
|
122
|
+
resolvedTheme: i,
|
|
123
|
+
overrideCount: Ne(e),
|
|
124
|
+
providerFileName: r.providerFileName ?? "admin-ui.config.ts",
|
|
125
|
+
providerConfig: a,
|
|
126
|
+
providerConfigText: z(a)
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function Ie(e) {
|
|
130
|
+
Le({
|
|
131
|
+
fileName: e.fileName,
|
|
132
|
+
text: e.cssText,
|
|
133
|
+
mimeType: "text/css;charset=utf-8"
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function Le({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
|
|
137
|
+
if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
|
|
138
|
+
let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
139
|
+
a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/features/theme-tweaker/theme-scope.tsx
|
|
143
|
+
var V = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
|
|
144
|
+
return /* @__PURE__ */ E(i, {
|
|
145
|
+
...o,
|
|
146
|
+
ref: c,
|
|
147
|
+
"data-theme-mode": t,
|
|
148
|
+
className: s("theme-scope--component", t, n),
|
|
149
|
+
style: {
|
|
150
|
+
...B(e, t),
|
|
151
|
+
...r
|
|
152
|
+
},
|
|
153
|
+
children: a
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
V.displayName = "ThemeScope";
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/features/theme-tweaker/use-applied-theme.ts
|
|
159
|
+
function Re(e, t) {
|
|
160
|
+
return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
|
|
161
|
+
}
|
|
162
|
+
function ze({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
163
|
+
me(() => {
|
|
164
|
+
if (!e || r === "self") return;
|
|
165
|
+
let a = Re(r, n);
|
|
166
|
+
if (!a) return;
|
|
167
|
+
let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
168
|
+
for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
|
|
169
|
+
value: a.style.getPropertyValue(e),
|
|
170
|
+
priority: a.style.getPropertyPriority(e)
|
|
171
|
+
}), a.style.setProperty(e, t), c.set(e, t));
|
|
172
|
+
let l = a.classList.contains("light"), u = a.classList.contains("dark");
|
|
173
|
+
return t && (a.classList.toggle("light", i.mode === "light"), a.classList.toggle("dark", i.mode === "dark")), () => {
|
|
174
|
+
for (let [e, t] of c) {
|
|
175
|
+
if (a.style.getPropertyValue(e) !== t) continue;
|
|
176
|
+
let n = s.get(e);
|
|
177
|
+
n?.value ? a.style.setProperty(e, n.value, n.priority) : a.style.removeProperty(e);
|
|
178
|
+
}
|
|
179
|
+
t && (a.classList.toggle("light", l), a.classList.toggle("dark", u));
|
|
180
|
+
};
|
|
181
|
+
}, [
|
|
182
|
+
e,
|
|
183
|
+
t,
|
|
184
|
+
n,
|
|
185
|
+
r,
|
|
186
|
+
i
|
|
187
|
+
]);
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
|
|
191
|
+
var Be = C(function({ config: n, theme: r, mode: i = r.mode, target: a = "document", manageModeClass: o = !0, className: c, children: l, ...u }, d) {
|
|
192
|
+
let f = _e(null);
|
|
193
|
+
ge(d, () => f.current);
|
|
194
|
+
let p = w(() => M({
|
|
195
|
+
...r,
|
|
196
|
+
mode: i
|
|
197
|
+
}), [i, r]), m = w(() => e(n), [n]);
|
|
198
|
+
return ze({
|
|
199
|
+
apply: a === "document",
|
|
200
|
+
manageModeClass: o,
|
|
201
|
+
selfRef: f,
|
|
202
|
+
target: a,
|
|
203
|
+
theme: p
|
|
204
|
+
}), /* @__PURE__ */ E(t, {
|
|
205
|
+
config: m,
|
|
206
|
+
children: /* @__PURE__ */ E(V, {
|
|
207
|
+
...u,
|
|
208
|
+
ref: f,
|
|
209
|
+
theme: p,
|
|
210
|
+
mode: i,
|
|
211
|
+
className: s("admin-ui-theme-provider--component bg-background text-foreground", c),
|
|
212
|
+
children: l
|
|
213
|
+
})
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
Be.displayName = "AdminUIThemeProvider";
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
|
|
219
|
+
var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), Ve = [
|
|
220
|
+
"--success",
|
|
221
|
+
"--success-foreground",
|
|
222
|
+
"--info",
|
|
223
|
+
"--info-foreground",
|
|
224
|
+
"--warning",
|
|
225
|
+
"--warning-foreground",
|
|
226
|
+
"--warning-accent",
|
|
227
|
+
"--link-color",
|
|
228
|
+
"--primary-accent",
|
|
229
|
+
"--inverse-background",
|
|
230
|
+
"--inverse-foreground",
|
|
231
|
+
"--inverse-muted",
|
|
232
|
+
"--inverse-subtle",
|
|
233
|
+
"--inverse-disabled",
|
|
234
|
+
"--inverse-surface",
|
|
235
|
+
"--inverse-surface-strong",
|
|
236
|
+
"--inverse-border",
|
|
237
|
+
"--inverse-decoration"
|
|
238
|
+
], He = ["--overlay-backdrop"], Ue = [
|
|
239
|
+
"--font-heading",
|
|
240
|
+
"--font-sans",
|
|
241
|
+
"--font-serif",
|
|
242
|
+
"--font-mono"
|
|
243
|
+
], U = [
|
|
244
|
+
"xxs",
|
|
245
|
+
"xs",
|
|
246
|
+
"pxs",
|
|
247
|
+
"sm",
|
|
248
|
+
"base",
|
|
249
|
+
"lg",
|
|
250
|
+
"xl",
|
|
251
|
+
"2xl",
|
|
252
|
+
"3xl",
|
|
253
|
+
"4xl",
|
|
254
|
+
"5xl",
|
|
255
|
+
"6xl",
|
|
256
|
+
"7xl",
|
|
257
|
+
"8xl",
|
|
258
|
+
"9xl"
|
|
259
|
+
].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), We = [
|
|
260
|
+
"--shadow-2xs",
|
|
261
|
+
"--shadow-xs",
|
|
262
|
+
"--shadow-sm",
|
|
263
|
+
"--shadow",
|
|
264
|
+
"--shadow-md",
|
|
265
|
+
"--shadow-lg",
|
|
266
|
+
"--shadow-xl",
|
|
267
|
+
"--shadow-2xl"
|
|
268
|
+
], W = [
|
|
269
|
+
"--space-scale",
|
|
270
|
+
"--density-scale",
|
|
271
|
+
"--height-action",
|
|
272
|
+
"--height-control",
|
|
273
|
+
"--control-x",
|
|
274
|
+
"--row-x",
|
|
275
|
+
"--row-y",
|
|
276
|
+
"--surface-x",
|
|
277
|
+
"--surface-y",
|
|
278
|
+
"--icon",
|
|
279
|
+
"--avatar",
|
|
280
|
+
"--shell-header-height",
|
|
281
|
+
"--shell-sidebar-width"
|
|
282
|
+
], Ge = [
|
|
283
|
+
"--content-width-sm",
|
|
284
|
+
"--content-width-md",
|
|
285
|
+
"--content-width-lg",
|
|
286
|
+
"--content-width-xl",
|
|
287
|
+
"--content-width-2xl",
|
|
288
|
+
"--adaptive-grid-min-sm",
|
|
289
|
+
"--adaptive-grid-min-md",
|
|
290
|
+
"--adaptive-grid-min-lg"
|
|
291
|
+
], G = {
|
|
292
|
+
"--background": "Application canvas and default page background.",
|
|
293
|
+
"--foreground": "Primary text and icon color on the application canvas.",
|
|
294
|
+
"--primary": "Brand and primary-action color.",
|
|
295
|
+
"--primary-foreground": "Text and icons on solid primary fills.",
|
|
296
|
+
"--muted": "Subdued backgrounds for passive regions and skeletons.",
|
|
297
|
+
"--muted-foreground": "Secondary text, metadata, and passive icons.",
|
|
298
|
+
"--border": "Default divider, outline, and surface-border color.",
|
|
299
|
+
"--ring": "Focus-visible ring and outline color.",
|
|
300
|
+
"--link-color": "Inline link and copyable-value accent color.",
|
|
301
|
+
"--overlay-backdrop": "Scrim painted behind dialog, alert dialog, sheet, and drawer surfaces.",
|
|
302
|
+
"--primary-accent": "Brand color used as foreground for icons, spinners, and active marks.",
|
|
303
|
+
"--warning-accent": "Warning color used as foreground for icons and marks on tinted warning surfaces.",
|
|
304
|
+
"--radius": "Base shadcn corner radius from which package radii derive.",
|
|
305
|
+
"--space-scale": "Multiplies structural gaps and padding without changing control heights.",
|
|
306
|
+
"--density-scale": "Multiplies actions, controls, rows, and density-sensitive geometry.",
|
|
307
|
+
"--height-action": "Base height for buttons and clickable action triggers.",
|
|
308
|
+
"--height-control": "Base height for inputs, selects, and editable controls.",
|
|
309
|
+
"--control-x": "Default inline inset for actions and form controls.",
|
|
310
|
+
"--row-x": "Shared inline inset for collection, menu, command, and table rows.",
|
|
311
|
+
"--row-y": "Shared vertical inset for collection, menu, command, and table rows.",
|
|
312
|
+
"--surface-x": "Default inline inset for cards, dialogs, panels, and content surfaces.",
|
|
313
|
+
"--gap-normal": "Title/description gap for normal surfaces; multiplied once by spacing scale.",
|
|
314
|
+
"--gap-dense": "Title/supporting-copy gap for dense rows and menus; multiplied once by spacing scale.",
|
|
315
|
+
"--surface-y": "Default vertical inset for cards, dialogs, panels, and content surfaces.",
|
|
316
|
+
"--icon": "Default interface icon size.",
|
|
317
|
+
"--avatar": "Default avatar size used by ordinary rows and cards.",
|
|
318
|
+
"--shell-header-height": "Minimum application-header shell height.",
|
|
319
|
+
"--shell-sidebar-width": "Expanded application-sidebar width.",
|
|
320
|
+
"--content-width-sm": "Compact centered content measure used by Container.",
|
|
321
|
+
"--content-width-md": "Medium centered content measure used by Container.",
|
|
322
|
+
"--content-width-lg": "Default readable page measure used by Container.",
|
|
323
|
+
"--content-width-xl": "Wide application content measure used by Container.",
|
|
324
|
+
"--content-width-2xl": "Maximum standard application measure used by Container.",
|
|
325
|
+
"--adaptive-grid-min-sm": "Compact minimum peer width used by AdaptiveGrid.",
|
|
326
|
+
"--adaptive-grid-min-md": "Default minimum peer width used by AdaptiveGrid.",
|
|
327
|
+
"--adaptive-grid-min-lg": "Spacious minimum peer width used by AdaptiveGrid."
|
|
328
|
+
}, K = {
|
|
329
|
+
"--space-scale": "Spacing scale",
|
|
330
|
+
"--density-scale": "Density scale",
|
|
331
|
+
"--height-action": "Action height",
|
|
332
|
+
"--height-control": "Control height",
|
|
333
|
+
"--control-x": "Control horizontal padding",
|
|
334
|
+
"--row-x": "Row horizontal padding",
|
|
335
|
+
"--row-y": "Row vertical padding",
|
|
336
|
+
"--surface-x": "Surface horizontal padding",
|
|
337
|
+
"--surface-y": "Surface vertical padding",
|
|
338
|
+
"--gap-normal": "Normal copy gap",
|
|
339
|
+
"--gap-dense": "Dense copy gap",
|
|
340
|
+
"--icon": "Interface icon size",
|
|
341
|
+
"--avatar": "Default avatar size",
|
|
342
|
+
"--shell-header-height": "Header height",
|
|
343
|
+
"--shell-sidebar-width": "Sidebar width",
|
|
344
|
+
"--content-width-sm": "Small content width",
|
|
345
|
+
"--content-width-md": "Medium content width",
|
|
346
|
+
"--content-width-lg": "Large content width",
|
|
347
|
+
"--content-width-xl": "Extra-large content width",
|
|
348
|
+
"--content-width-2xl": "Maximum content width",
|
|
349
|
+
"--adaptive-grid-min-sm": "Compact adaptive column",
|
|
350
|
+
"--adaptive-grid-min-md": "Default adaptive column",
|
|
351
|
+
"--adaptive-grid-min-lg": "Spacious adaptive column"
|
|
352
|
+
}, Ke = {
|
|
353
|
+
"--radius": {
|
|
354
|
+
type: "range",
|
|
355
|
+
min: 0,
|
|
356
|
+
max: 1.5,
|
|
357
|
+
step: .0625,
|
|
358
|
+
unit: "rem",
|
|
359
|
+
decimalPlaces: 4
|
|
360
|
+
},
|
|
361
|
+
"--space-scale": {
|
|
362
|
+
type: "range",
|
|
363
|
+
min: .75,
|
|
364
|
+
max: 1.35,
|
|
365
|
+
step: .025,
|
|
366
|
+
decimalPlaces: 3
|
|
367
|
+
},
|
|
368
|
+
"--density-scale": {
|
|
369
|
+
type: "range",
|
|
370
|
+
min: .75,
|
|
371
|
+
max: 1.35,
|
|
372
|
+
step: .025,
|
|
373
|
+
decimalPlaces: 3
|
|
374
|
+
},
|
|
375
|
+
"--height-action": {
|
|
376
|
+
type: "range",
|
|
377
|
+
min: 1.5,
|
|
378
|
+
max: 3.5,
|
|
379
|
+
step: .0625,
|
|
380
|
+
unit: "rem",
|
|
381
|
+
decimalPlaces: 4
|
|
382
|
+
},
|
|
383
|
+
"--height-control": {
|
|
384
|
+
type: "range",
|
|
385
|
+
min: 1.5,
|
|
386
|
+
max: 3.5,
|
|
387
|
+
step: .0625,
|
|
388
|
+
unit: "rem",
|
|
389
|
+
decimalPlaces: 4
|
|
390
|
+
},
|
|
391
|
+
"--control-x": {
|
|
392
|
+
type: "range",
|
|
393
|
+
min: .25,
|
|
394
|
+
max: 1.5,
|
|
395
|
+
step: .0625,
|
|
396
|
+
unit: "rem",
|
|
397
|
+
decimalPlaces: 4
|
|
398
|
+
},
|
|
399
|
+
"--row-x": {
|
|
400
|
+
type: "range",
|
|
401
|
+
min: .25,
|
|
402
|
+
max: 1.5,
|
|
403
|
+
step: .0625,
|
|
404
|
+
unit: "rem",
|
|
405
|
+
decimalPlaces: 4
|
|
406
|
+
},
|
|
407
|
+
"--row-y": {
|
|
408
|
+
type: "range",
|
|
409
|
+
min: .25,
|
|
410
|
+
max: 1.25,
|
|
411
|
+
step: .0625,
|
|
412
|
+
unit: "rem",
|
|
413
|
+
decimalPlaces: 4
|
|
414
|
+
},
|
|
415
|
+
"--surface-x": {
|
|
416
|
+
type: "range",
|
|
417
|
+
min: .5,
|
|
418
|
+
max: 2.5,
|
|
419
|
+
step: .0625,
|
|
420
|
+
unit: "rem",
|
|
421
|
+
decimalPlaces: 4
|
|
422
|
+
},
|
|
423
|
+
"--gap-normal": {
|
|
424
|
+
type: "range",
|
|
425
|
+
min: 0,
|
|
426
|
+
max: 1.5,
|
|
427
|
+
step: .0625,
|
|
428
|
+
unit: "rem",
|
|
429
|
+
decimalPlaces: 4
|
|
430
|
+
},
|
|
431
|
+
"--gap-dense": {
|
|
432
|
+
type: "range",
|
|
433
|
+
min: 0,
|
|
434
|
+
max: 1.5,
|
|
435
|
+
step: .0625,
|
|
436
|
+
unit: "rem",
|
|
437
|
+
decimalPlaces: 4
|
|
438
|
+
},
|
|
439
|
+
"--surface-y": {
|
|
440
|
+
type: "range",
|
|
441
|
+
min: .5,
|
|
442
|
+
max: 2.5,
|
|
443
|
+
step: .0625,
|
|
444
|
+
unit: "rem",
|
|
445
|
+
decimalPlaces: 4
|
|
446
|
+
},
|
|
447
|
+
"--icon": {
|
|
448
|
+
type: "range",
|
|
449
|
+
min: .75,
|
|
450
|
+
max: 2,
|
|
451
|
+
step: .0625,
|
|
452
|
+
unit: "rem",
|
|
453
|
+
decimalPlaces: 4
|
|
454
|
+
},
|
|
455
|
+
"--avatar": {
|
|
456
|
+
type: "range",
|
|
457
|
+
min: 1.5,
|
|
458
|
+
max: 4,
|
|
459
|
+
step: .125,
|
|
460
|
+
unit: "rem",
|
|
461
|
+
decimalPlaces: 3
|
|
462
|
+
},
|
|
463
|
+
"--shell-header-height": {
|
|
464
|
+
type: "range",
|
|
465
|
+
min: 3,
|
|
466
|
+
max: 7,
|
|
467
|
+
step: .125,
|
|
468
|
+
unit: "rem",
|
|
469
|
+
decimalPlaces: 3
|
|
470
|
+
},
|
|
471
|
+
"--shell-sidebar-width": {
|
|
472
|
+
type: "range",
|
|
473
|
+
min: 12,
|
|
474
|
+
max: 24,
|
|
475
|
+
step: .25,
|
|
476
|
+
unit: "rem",
|
|
477
|
+
decimalPlaces: 2
|
|
478
|
+
},
|
|
479
|
+
"--content-width-sm": {
|
|
480
|
+
type: "range",
|
|
481
|
+
min: 20,
|
|
482
|
+
max: 72,
|
|
483
|
+
step: 1,
|
|
484
|
+
unit: "rem",
|
|
485
|
+
decimalPlaces: 0
|
|
486
|
+
},
|
|
487
|
+
"--content-width-md": {
|
|
488
|
+
type: "range",
|
|
489
|
+
min: 24,
|
|
490
|
+
max: 80,
|
|
491
|
+
step: 1,
|
|
492
|
+
unit: "rem",
|
|
493
|
+
decimalPlaces: 0
|
|
494
|
+
},
|
|
495
|
+
"--content-width-lg": {
|
|
496
|
+
type: "range",
|
|
497
|
+
min: 32,
|
|
498
|
+
max: 96,
|
|
499
|
+
step: 1,
|
|
500
|
+
unit: "rem",
|
|
501
|
+
decimalPlaces: 0
|
|
502
|
+
},
|
|
503
|
+
"--content-width-xl": {
|
|
504
|
+
type: "range",
|
|
505
|
+
min: 40,
|
|
506
|
+
max: 108,
|
|
507
|
+
step: 1,
|
|
508
|
+
unit: "rem",
|
|
509
|
+
decimalPlaces: 0
|
|
510
|
+
},
|
|
511
|
+
"--content-width-2xl": {
|
|
512
|
+
type: "range",
|
|
513
|
+
min: 48,
|
|
514
|
+
max: 120,
|
|
515
|
+
step: 1,
|
|
516
|
+
unit: "rem",
|
|
517
|
+
decimalPlaces: 0
|
|
518
|
+
},
|
|
519
|
+
"--adaptive-grid-min-sm": {
|
|
520
|
+
type: "range",
|
|
521
|
+
min: 8,
|
|
522
|
+
max: 24,
|
|
523
|
+
step: .5,
|
|
524
|
+
unit: "rem",
|
|
525
|
+
decimalPlaces: 1
|
|
526
|
+
},
|
|
527
|
+
"--adaptive-grid-min-md": {
|
|
528
|
+
type: "range",
|
|
529
|
+
min: 8,
|
|
530
|
+
max: 32,
|
|
531
|
+
step: .5,
|
|
532
|
+
unit: "rem",
|
|
533
|
+
decimalPlaces: 1
|
|
534
|
+
},
|
|
535
|
+
"--adaptive-grid-min-lg": {
|
|
536
|
+
type: "range",
|
|
537
|
+
min: 12,
|
|
538
|
+
max: 40,
|
|
539
|
+
step: .5,
|
|
540
|
+
unit: "rem",
|
|
541
|
+
decimalPlaces: 1
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
function qe(e) {
|
|
545
|
+
return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
|
|
546
|
+
}
|
|
547
|
+
function Je(e, t) {
|
|
548
|
+
return e.startsWith("--chart-") ? "Categorical chart-series color; keep status meaning separate." : e.startsWith("--sidebar-") ? "Sidebar-specific theme color." : e.startsWith("--inverse-") ? "Explicitly inverse surface and content color." : e.endsWith("-foreground") ? "Foreground color paired with the matching solid or surface token." : e.endsWith("--line-height") ? "Line height paired with the matching typography step." : e.startsWith("--text-") ? "Font size for the matching typography step." : e.startsWith("--font-") ? "Font family stack for the matching content role." : e.startsWith("--shadow") ? "Elevation shadow used by package surfaces and overlays." : t === "states" ? "Semantic state color shared by package status surfaces." : "Public theme variable used across package components.";
|
|
549
|
+
}
|
|
550
|
+
function q(e, t, n, r, i) {
|
|
551
|
+
return e.map((e) => ({
|
|
552
|
+
name: e,
|
|
553
|
+
label: K[e] ?? qe(e),
|
|
554
|
+
description: G[e] ?? Je(e, t),
|
|
555
|
+
group: t,
|
|
556
|
+
section: n,
|
|
557
|
+
scope: r,
|
|
558
|
+
kind: i,
|
|
559
|
+
control: Ke[e]
|
|
560
|
+
}));
|
|
561
|
+
}
|
|
562
|
+
var Ye = [
|
|
563
|
+
...q(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
|
|
564
|
+
...q(He, "colors", "surfaces-content", "shared", "color"),
|
|
565
|
+
...q(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
|
|
566
|
+
...q(H.slice(19, 24), "colors", "charts", "mode", "color"),
|
|
567
|
+
...q(H.slice(24), "colors", "sidebar", "mode", "color"),
|
|
568
|
+
...q(Ve.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
|
|
569
|
+
...q(Ve.slice(7), "states", "inverse-surfaces", "mode", "color"),
|
|
570
|
+
...q(Ue, "typography", "font-families", "shared", "font"),
|
|
571
|
+
...q(U, "typography", "type-scale", "shared", "length"),
|
|
572
|
+
...q(["--radius"], "shape", "radius", "shared", "length"),
|
|
573
|
+
...q(We, "shape", "elevation", "mode", "shadow"),
|
|
574
|
+
...q(W.slice(0, 2), "structure", "global-scales", "shared", "length"),
|
|
575
|
+
...q(W.slice(2, 5), "structure", "actions-controls", "shared", "length"),
|
|
576
|
+
...q(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
|
|
577
|
+
...q(W.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
|
|
578
|
+
...q(W.slice(9, 11), "structure", "media", "shared", "length"),
|
|
579
|
+
...q(W.slice(11), "structure", "application-shell", "shared", "length"),
|
|
580
|
+
...q(Ge.slice(0, 5), "structure", "content-widths", "shared", "length"),
|
|
581
|
+
...q(Ge.slice(5), "structure", "adaptive-layout", "shared", "length")
|
|
582
|
+
].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
|
|
583
|
+
...e,
|
|
584
|
+
kind: "number"
|
|
585
|
+
} : e), J = {
|
|
586
|
+
title: "Application defaults",
|
|
587
|
+
description: "Configure the stable display behavior that accompanies the exported CSS theme.",
|
|
588
|
+
boundaryTitle: "Root provider recipe",
|
|
589
|
+
boundaryDescription: "These defaults take effect when UIProvider mounts. CSS variables continue to preview live; accept provider changes by remounting the application root.",
|
|
590
|
+
summary: {
|
|
591
|
+
locale: "Locale",
|
|
592
|
+
currency: "Currency",
|
|
593
|
+
controls: "Controls",
|
|
594
|
+
cards: "Cards"
|
|
595
|
+
},
|
|
596
|
+
sections: {
|
|
597
|
+
regional: {
|
|
598
|
+
title: "Regional formatting",
|
|
599
|
+
description: "Locale, currency, money, and date conventions."
|
|
600
|
+
},
|
|
601
|
+
content: {
|
|
602
|
+
title: "Content behavior",
|
|
603
|
+
description: "Typography, comments, and dual-pricing presentation."
|
|
604
|
+
},
|
|
605
|
+
components: {
|
|
606
|
+
title: "Component defaults",
|
|
607
|
+
description: "Sizes, variants, surfaces, and action treatment."
|
|
608
|
+
},
|
|
609
|
+
toasts: {
|
|
610
|
+
title: "Toast defaults",
|
|
611
|
+
description: "Placement, duration, appearance, and capacity."
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
labels: {
|
|
615
|
+
locale: "Locale",
|
|
616
|
+
defaultCurrency: "Default currency",
|
|
617
|
+
displayCurrency: "Display currency",
|
|
618
|
+
moneyFormat: "Money format",
|
|
619
|
+
firstDay: "First day of week",
|
|
620
|
+
dateFormat: "Date format",
|
|
621
|
+
textSize: "Default text size",
|
|
622
|
+
commentComposer: "Comment composer",
|
|
623
|
+
dualPricing: "Dual pricing",
|
|
624
|
+
dualPricingMode: "Dual-pricing mode",
|
|
625
|
+
dualPricingLayout: "Dual-pricing layout",
|
|
626
|
+
componentScale: "Component scale",
|
|
627
|
+
itemVariant: "Item variant",
|
|
628
|
+
buttonTone: "Button tone",
|
|
629
|
+
buttonStyle: "Button style",
|
|
630
|
+
badgeTone: "Badge tone",
|
|
631
|
+
cardSurface: "Card surface",
|
|
632
|
+
spinner: "Spinner",
|
|
633
|
+
cardDivider: "Card header divider",
|
|
634
|
+
toastPosition: "Position",
|
|
635
|
+
toastTheme: "Theme",
|
|
636
|
+
toastDuration: "Duration (ms)",
|
|
637
|
+
visibleToasts: "Visible toasts",
|
|
638
|
+
closeButton: "Close button",
|
|
639
|
+
richColors: "Rich semantic colors"
|
|
640
|
+
},
|
|
641
|
+
dualPricingDescription: "Show an optional display currency.",
|
|
642
|
+
displayCurrencyPlaceholder: "Optional",
|
|
643
|
+
options: {
|
|
644
|
+
default: "Default",
|
|
645
|
+
decimal: "Decimal",
|
|
646
|
+
with_code: "With code",
|
|
647
|
+
with_symbol: "With symbol",
|
|
648
|
+
locale_aware: "Locale aware",
|
|
649
|
+
sunday: "Sunday",
|
|
650
|
+
monday: "Monday",
|
|
651
|
+
tuesday: "Tuesday",
|
|
652
|
+
wednesday: "Wednesday",
|
|
653
|
+
thursday: "Thursday",
|
|
654
|
+
friday: "Friday",
|
|
655
|
+
saturday: "Saturday",
|
|
656
|
+
top: "Top",
|
|
657
|
+
bottom: "Bottom",
|
|
658
|
+
default_only: "Default only",
|
|
659
|
+
dual: "Dual",
|
|
660
|
+
dynamic: "Dynamic",
|
|
661
|
+
inline: "Inline",
|
|
662
|
+
lines: "Lines",
|
|
663
|
+
outline: "Outline",
|
|
664
|
+
muted: "Muted",
|
|
665
|
+
primary: "Primary",
|
|
666
|
+
secondary: "Secondary",
|
|
667
|
+
dark: "Dark",
|
|
668
|
+
warning: "Warning",
|
|
669
|
+
success: "Success",
|
|
670
|
+
light: "Light",
|
|
671
|
+
solid: "Solid",
|
|
672
|
+
ghost: "Ghost",
|
|
673
|
+
info: "Info",
|
|
674
|
+
destructive: "Destructive",
|
|
675
|
+
xs: "XS",
|
|
676
|
+
sm: "SM",
|
|
677
|
+
md: "MD",
|
|
678
|
+
card: "Card",
|
|
679
|
+
flat: "Flat",
|
|
680
|
+
framed: "Framed",
|
|
681
|
+
shimmer: "Shimmer",
|
|
682
|
+
progress: "Progress",
|
|
683
|
+
system: "System",
|
|
684
|
+
"top-right": "Top right",
|
|
685
|
+
"top-left": "Top left",
|
|
686
|
+
"top-center": "Top center",
|
|
687
|
+
"bottom-right": "Bottom right",
|
|
688
|
+
"bottom-left": "Bottom left",
|
|
689
|
+
"bottom-center": "Bottom center",
|
|
690
|
+
xxs: "XXS",
|
|
691
|
+
pxs: "PXS",
|
|
692
|
+
base: "Base",
|
|
693
|
+
lg: "LG",
|
|
694
|
+
xl: "XL"
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
function Y(e, t) {
|
|
698
|
+
return e.map((e) => ({
|
|
699
|
+
value: e,
|
|
700
|
+
label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
|
|
701
|
+
}));
|
|
702
|
+
}
|
|
703
|
+
function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
704
|
+
let a = R(e), o = Y(n, i), s = [
|
|
705
|
+
"sunday",
|
|
706
|
+
"monday",
|
|
707
|
+
"tuesday",
|
|
708
|
+
"wednesday",
|
|
709
|
+
"thursday",
|
|
710
|
+
"friday",
|
|
711
|
+
"saturday"
|
|
712
|
+
].map((e, t) => ({
|
|
713
|
+
value: String(t),
|
|
714
|
+
label: i.options[e]
|
|
715
|
+
})), c = (e, n, r) => {
|
|
716
|
+
t({
|
|
717
|
+
...a,
|
|
718
|
+
[e]: {
|
|
719
|
+
...a[e],
|
|
720
|
+
[n]: r
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
};
|
|
724
|
+
return /* @__PURE__ */ D(f, {
|
|
725
|
+
gap: "lg",
|
|
726
|
+
className: "theme-tweaker--provider-settings",
|
|
727
|
+
children: [
|
|
728
|
+
/* @__PURE__ */ D(f, {
|
|
729
|
+
gap: "normal",
|
|
730
|
+
children: [/* @__PURE__ */ E(l, {
|
|
731
|
+
weight: "semibold",
|
|
732
|
+
children: i.title
|
|
733
|
+
}), /* @__PURE__ */ E(l, {
|
|
734
|
+
size: "xs",
|
|
735
|
+
type: "secondary",
|
|
736
|
+
children: i.description
|
|
737
|
+
})]
|
|
738
|
+
}),
|
|
739
|
+
/* @__PURE__ */ D(m, {
|
|
740
|
+
tone: "info",
|
|
741
|
+
role: "note",
|
|
742
|
+
className: "theme-tweaker--provider-boundary",
|
|
743
|
+
children: [
|
|
744
|
+
/* @__PURE__ */ E(be, { "aria-hidden": "true" }),
|
|
745
|
+
/* @__PURE__ */ E(p, { children: i.boundaryTitle }),
|
|
746
|
+
/* @__PURE__ */ E(ee, { children: i.boundaryDescription }),
|
|
747
|
+
/* @__PURE__ */ D(g, { children: [
|
|
748
|
+
/* @__PURE__ */ E(h, {
|
|
749
|
+
label: i.summary.locale,
|
|
750
|
+
value: a.formatting?.locale ?? i.options.default
|
|
751
|
+
}),
|
|
752
|
+
/* @__PURE__ */ E(h, {
|
|
753
|
+
label: i.summary.currency,
|
|
754
|
+
value: a.money?.defaultCurrency ?? i.options.default
|
|
755
|
+
}),
|
|
756
|
+
/* @__PURE__ */ E(h, {
|
|
757
|
+
label: i.summary.controls,
|
|
758
|
+
value: i.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? i.options.md
|
|
759
|
+
}),
|
|
760
|
+
/* @__PURE__ */ E(h, {
|
|
761
|
+
label: i.summary.cards,
|
|
762
|
+
value: i.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? i.options.default
|
|
763
|
+
})
|
|
764
|
+
] })
|
|
765
|
+
]
|
|
766
|
+
}),
|
|
767
|
+
/* @__PURE__ */ E(oe, {
|
|
768
|
+
multiple: !0,
|
|
769
|
+
defaultValue: ["regional"],
|
|
770
|
+
variant: "bordered",
|
|
771
|
+
iconStyle: "none",
|
|
772
|
+
contentClassName: "pb-surface",
|
|
773
|
+
items: [
|
|
774
|
+
{
|
|
775
|
+
value: "regional",
|
|
776
|
+
title: i.sections.regional.title,
|
|
777
|
+
description: i.sections.regional.description,
|
|
778
|
+
content: /* @__PURE__ */ D("div", {
|
|
779
|
+
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
780
|
+
children: [
|
|
781
|
+
/* @__PURE__ */ E(y, {
|
|
782
|
+
label: i.labels.locale,
|
|
783
|
+
children: /* @__PURE__ */ E(v, {
|
|
784
|
+
value: a.formatting?.locale ?? "",
|
|
785
|
+
onChange: (e) => c("formatting", "locale", e.target.value)
|
|
786
|
+
})
|
|
787
|
+
}),
|
|
788
|
+
/* @__PURE__ */ E(y, {
|
|
789
|
+
label: i.labels.defaultCurrency,
|
|
790
|
+
children: /* @__PURE__ */ E(v, {
|
|
791
|
+
value: a.money?.defaultCurrency ?? "",
|
|
792
|
+
onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
793
|
+
})
|
|
794
|
+
}),
|
|
795
|
+
/* @__PURE__ */ E(y, {
|
|
796
|
+
label: i.labels.displayCurrency,
|
|
797
|
+
children: /* @__PURE__ */ E(v, {
|
|
798
|
+
value: a.money?.displayCurrency ?? "",
|
|
799
|
+
placeholder: i.displayCurrencyPlaceholder,
|
|
800
|
+
onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
801
|
+
})
|
|
802
|
+
}),
|
|
803
|
+
/* @__PURE__ */ E(y, {
|
|
804
|
+
label: i.labels.moneyFormat,
|
|
805
|
+
children: /* @__PURE__ */ E(x, {
|
|
806
|
+
value: a.money?.formatMode,
|
|
807
|
+
options: Y([
|
|
808
|
+
"decimal",
|
|
809
|
+
"with_code",
|
|
810
|
+
"with_symbol",
|
|
811
|
+
"locale_aware"
|
|
812
|
+
], i),
|
|
813
|
+
onValueChange: (e) => c("money", "formatMode", e)
|
|
814
|
+
})
|
|
815
|
+
}),
|
|
816
|
+
/* @__PURE__ */ E(y, {
|
|
817
|
+
label: i.labels.firstDay,
|
|
818
|
+
children: /* @__PURE__ */ E(x, {
|
|
819
|
+
value: String(a.dates?.weekStartsOn ?? 1),
|
|
820
|
+
options: s,
|
|
821
|
+
onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
|
|
822
|
+
})
|
|
823
|
+
}),
|
|
824
|
+
/* @__PURE__ */ E(y, {
|
|
825
|
+
label: i.labels.dateFormat,
|
|
826
|
+
children: /* @__PURE__ */ E(v, {
|
|
827
|
+
value: a.dates?.format ?? "",
|
|
828
|
+
onChange: (e) => c("dates", "format", e.target.value)
|
|
829
|
+
})
|
|
830
|
+
})
|
|
831
|
+
]
|
|
832
|
+
})
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
value: "content",
|
|
836
|
+
title: i.sections.content.title,
|
|
837
|
+
description: i.sections.content.description,
|
|
838
|
+
content: /* @__PURE__ */ D("div", {
|
|
839
|
+
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
840
|
+
children: [
|
|
841
|
+
/* @__PURE__ */ E(y, {
|
|
842
|
+
label: i.labels.textSize,
|
|
843
|
+
children: /* @__PURE__ */ E(x, {
|
|
844
|
+
value: a.typography?.defaultTextSize,
|
|
845
|
+
options: Y([
|
|
846
|
+
"xxs",
|
|
847
|
+
"xs",
|
|
848
|
+
"pxs",
|
|
849
|
+
"sm",
|
|
850
|
+
"base",
|
|
851
|
+
"lg",
|
|
852
|
+
"xl"
|
|
853
|
+
], i),
|
|
854
|
+
onValueChange: (e) => c("typography", "defaultTextSize", e)
|
|
855
|
+
})
|
|
856
|
+
}),
|
|
857
|
+
/* @__PURE__ */ E(y, {
|
|
858
|
+
label: i.labels.commentComposer,
|
|
859
|
+
children: /* @__PURE__ */ E(x, {
|
|
860
|
+
value: a.comments?.composerPosition,
|
|
861
|
+
options: Y(["top", "bottom"], i),
|
|
862
|
+
onValueChange: (e) => c("comments", "composerPosition", e)
|
|
863
|
+
})
|
|
864
|
+
}),
|
|
865
|
+
/* @__PURE__ */ E(b, {
|
|
866
|
+
label: i.labels.dualPricing,
|
|
867
|
+
description: i.dualPricingDescription,
|
|
868
|
+
value: a.money?.dualPricingEnabled ?? !1,
|
|
869
|
+
onValueChange: (e) => c("money", "dualPricingEnabled", e)
|
|
870
|
+
}),
|
|
871
|
+
/* @__PURE__ */ E(y, {
|
|
872
|
+
label: i.labels.dualPricingMode,
|
|
873
|
+
children: /* @__PURE__ */ E(x, {
|
|
874
|
+
value: a.money?.displayMode,
|
|
875
|
+
options: Y([
|
|
876
|
+
"default_only",
|
|
877
|
+
"dual",
|
|
878
|
+
"dynamic"
|
|
879
|
+
], i),
|
|
880
|
+
onValueChange: (e) => c("money", "displayMode", e)
|
|
881
|
+
})
|
|
882
|
+
}),
|
|
883
|
+
/* @__PURE__ */ E(y, {
|
|
884
|
+
label: i.labels.dualPricingLayout,
|
|
885
|
+
children: /* @__PURE__ */ E(x, {
|
|
886
|
+
value: a.money?.dualPricingDisplay,
|
|
887
|
+
options: Y(["inline", "lines"], i),
|
|
888
|
+
onValueChange: (e) => c("money", "dualPricingDisplay", e)
|
|
889
|
+
})
|
|
890
|
+
})
|
|
891
|
+
]
|
|
892
|
+
})
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
value: "components",
|
|
896
|
+
title: i.sections.components.title,
|
|
897
|
+
description: i.sections.components.description,
|
|
898
|
+
content: /* @__PURE__ */ D("div", {
|
|
899
|
+
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
900
|
+
children: [
|
|
901
|
+
/* @__PURE__ */ E(y, {
|
|
902
|
+
label: i.labels.componentScale,
|
|
903
|
+
children: /* @__PURE__ */ E(x, {
|
|
904
|
+
value: a.density?.defaultScale,
|
|
905
|
+
options: o,
|
|
906
|
+
onValueChange: (e) => c("density", "defaultScale", e)
|
|
907
|
+
})
|
|
908
|
+
}),
|
|
909
|
+
/* @__PURE__ */ E(y, {
|
|
910
|
+
label: i.labels.itemVariant,
|
|
911
|
+
children: /* @__PURE__ */ E(x, {
|
|
912
|
+
value: a.item?.defaultVariant,
|
|
913
|
+
options: Y([
|
|
914
|
+
"default",
|
|
915
|
+
"outline",
|
|
916
|
+
"muted"
|
|
917
|
+
], i),
|
|
918
|
+
onValueChange: (e) => c("item", "defaultVariant", e)
|
|
919
|
+
})
|
|
920
|
+
}),
|
|
921
|
+
/* @__PURE__ */ E(y, {
|
|
922
|
+
label: i.labels.buttonTone,
|
|
923
|
+
children: /* @__PURE__ */ E(x, {
|
|
924
|
+
value: a.button?.defaultTone,
|
|
925
|
+
options: Y(r, i),
|
|
926
|
+
onValueChange: (e) => c("button", "defaultTone", e)
|
|
927
|
+
})
|
|
928
|
+
}),
|
|
929
|
+
/* @__PURE__ */ E(y, {
|
|
930
|
+
label: i.labels.buttonStyle,
|
|
931
|
+
children: /* @__PURE__ */ E(x, {
|
|
932
|
+
value: a.button?.defaultButtonStyle,
|
|
933
|
+
options: Y([
|
|
934
|
+
"solid",
|
|
935
|
+
"outline",
|
|
936
|
+
"ghost"
|
|
937
|
+
], i),
|
|
938
|
+
onValueChange: (e) => c("button", "defaultButtonStyle", e)
|
|
939
|
+
})
|
|
940
|
+
}),
|
|
941
|
+
/* @__PURE__ */ E(y, {
|
|
942
|
+
label: i.labels.badgeTone,
|
|
943
|
+
children: /* @__PURE__ */ E(x, {
|
|
944
|
+
value: a.badge?.defaultTone,
|
|
945
|
+
options: Y(r, i),
|
|
946
|
+
onValueChange: (e) => c("badge", "defaultTone", e)
|
|
947
|
+
})
|
|
948
|
+
}),
|
|
949
|
+
/* @__PURE__ */ E(y, {
|
|
950
|
+
label: i.labels.cardSurface,
|
|
951
|
+
children: /* @__PURE__ */ E(x, {
|
|
952
|
+
value: a.card?.defaultSurface,
|
|
953
|
+
options: Y([
|
|
954
|
+
"card",
|
|
955
|
+
"flat",
|
|
956
|
+
"framed"
|
|
957
|
+
], i),
|
|
958
|
+
onValueChange: (e) => c("card", "defaultSurface", e)
|
|
959
|
+
})
|
|
960
|
+
}),
|
|
961
|
+
/* @__PURE__ */ E(y, {
|
|
962
|
+
label: i.labels.spinner,
|
|
963
|
+
children: /* @__PURE__ */ E(x, {
|
|
964
|
+
value: a.spinner?.defaultVariant,
|
|
965
|
+
options: Y([
|
|
966
|
+
"default",
|
|
967
|
+
"shimmer",
|
|
968
|
+
"progress"
|
|
969
|
+
], i),
|
|
970
|
+
onValueChange: (e) => c("spinner", "defaultVariant", e)
|
|
971
|
+
})
|
|
972
|
+
}),
|
|
973
|
+
/* @__PURE__ */ E(b, {
|
|
974
|
+
label: i.labels.cardDivider,
|
|
975
|
+
value: a.card?.defaultHeaderDivider ?? !1,
|
|
976
|
+
onValueChange: (e) => c("card", "defaultHeaderDivider", e)
|
|
977
|
+
})
|
|
978
|
+
]
|
|
979
|
+
})
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
value: "toasts",
|
|
983
|
+
title: i.sections.toasts.title,
|
|
984
|
+
description: i.sections.toasts.description,
|
|
985
|
+
content: /* @__PURE__ */ D("div", {
|
|
986
|
+
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
987
|
+
children: [
|
|
988
|
+
/* @__PURE__ */ E(y, {
|
|
989
|
+
label: i.labels.toastPosition,
|
|
990
|
+
children: /* @__PURE__ */ E(x, {
|
|
991
|
+
value: a.toast?.position,
|
|
992
|
+
options: Y([
|
|
993
|
+
"top-right",
|
|
994
|
+
"top-left",
|
|
995
|
+
"top-center",
|
|
996
|
+
"bottom-right",
|
|
997
|
+
"bottom-left",
|
|
998
|
+
"bottom-center"
|
|
999
|
+
], i),
|
|
1000
|
+
onValueChange: (e) => c("toast", "position", e)
|
|
1001
|
+
})
|
|
1002
|
+
}),
|
|
1003
|
+
/* @__PURE__ */ E(y, {
|
|
1004
|
+
label: i.labels.toastTheme,
|
|
1005
|
+
children: /* @__PURE__ */ E(x, {
|
|
1006
|
+
value: a.toast?.theme,
|
|
1007
|
+
options: Y([
|
|
1008
|
+
"light",
|
|
1009
|
+
"dark",
|
|
1010
|
+
"system"
|
|
1011
|
+
], i),
|
|
1012
|
+
onValueChange: (e) => c("toast", "theme", e)
|
|
1013
|
+
})
|
|
1014
|
+
}),
|
|
1015
|
+
/* @__PURE__ */ E(y, {
|
|
1016
|
+
label: i.labels.toastDuration,
|
|
1017
|
+
children: /* @__PURE__ */ E(v, {
|
|
1018
|
+
type: "number",
|
|
1019
|
+
min: 1e3,
|
|
1020
|
+
step: 500,
|
|
1021
|
+
value: String(a.toast?.duration ?? 5e3),
|
|
1022
|
+
onChange: (e) => c("toast", "duration", Number(e.target.value))
|
|
1023
|
+
})
|
|
1024
|
+
}),
|
|
1025
|
+
/* @__PURE__ */ E(y, {
|
|
1026
|
+
label: i.labels.visibleToasts,
|
|
1027
|
+
children: /* @__PURE__ */ E(v, {
|
|
1028
|
+
type: "number",
|
|
1029
|
+
min: 1,
|
|
1030
|
+
max: 10,
|
|
1031
|
+
value: String(a.toast?.visibleToasts ?? 4),
|
|
1032
|
+
onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
|
|
1033
|
+
})
|
|
1034
|
+
}),
|
|
1035
|
+
/* @__PURE__ */ E(b, {
|
|
1036
|
+
label: i.labels.closeButton,
|
|
1037
|
+
value: a.toast?.closeButton ?? !0,
|
|
1038
|
+
onValueChange: (e) => c("toast", "closeButton", e)
|
|
1039
|
+
}),
|
|
1040
|
+
/* @__PURE__ */ E(b, {
|
|
1041
|
+
label: i.labels.richColors,
|
|
1042
|
+
value: a.toast?.richColors ?? !1,
|
|
1043
|
+
onValueChange: (e) => c("toast", "richColors", e)
|
|
1044
|
+
})
|
|
1045
|
+
]
|
|
1046
|
+
})
|
|
1047
|
+
}
|
|
1048
|
+
]
|
|
1049
|
+
})
|
|
1050
|
+
]
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
//#endregion
|
|
1054
|
+
//#region src/components/features/theme-tweaker/theme-tweaker.strings.ts
|
|
1055
|
+
var Ze = {
|
|
1056
|
+
title: "Theme tweaker",
|
|
1057
|
+
description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus root display defaults.",
|
|
1058
|
+
searchLabel: "Search variables",
|
|
1059
|
+
searchPlaceholder: "Search by token, label, or purpose…",
|
|
1060
|
+
searchHint: "Search spans every public theme group.",
|
|
1061
|
+
searchResults: "Results: {{count}}",
|
|
1062
|
+
allGroups: "All groups",
|
|
1063
|
+
groupNavigationLabel: "Theme categories",
|
|
1064
|
+
previousGroup: "Previous categories",
|
|
1065
|
+
nextGroup: "Next categories",
|
|
1066
|
+
groupNavigationTitle: "Theme controls",
|
|
1067
|
+
groupNavigationDescription: "Choose one contract area to edit.",
|
|
1068
|
+
sharedScope: "Shared",
|
|
1069
|
+
mixedScope: "Mixed scope",
|
|
1070
|
+
variableCount: "Variables: {{count}}",
|
|
1071
|
+
groupSectionLabel: "{{group}} · {{section}}",
|
|
1072
|
+
lightMode: "Light",
|
|
1073
|
+
darkMode: "Dark",
|
|
1074
|
+
reset: "Reset overrides",
|
|
1075
|
+
copy: "Copy CSS",
|
|
1076
|
+
copyProvider: "Copy provider config",
|
|
1077
|
+
copyOverrides: "Copy override-only CSS",
|
|
1078
|
+
exportProvider: "Export provider config",
|
|
1079
|
+
exportOptions: "More export options",
|
|
1080
|
+
export: "Export",
|
|
1081
|
+
exportPending: "Downloading…",
|
|
1082
|
+
exportDialogTitle: "Export theme",
|
|
1083
|
+
exportDialogDescription: "Review, copy, or download the complete CSS theme and its matching UIProvider configuration.",
|
|
1084
|
+
downloadCss: "Download CSS",
|
|
1085
|
+
downloadProvider: "Download provider config",
|
|
1086
|
+
close: "Close",
|
|
1087
|
+
copiedStatus: "Copied to the clipboard.",
|
|
1088
|
+
exportedStatus: "File downloaded.",
|
|
1089
|
+
invalidTheme: "Fix the invalid CSS override before copying or exporting.",
|
|
1090
|
+
emptySearch: "No public theme variables match this search.",
|
|
1091
|
+
inheritValue: "Inherit package value",
|
|
1092
|
+
resetVariable: "Reset variable",
|
|
1093
|
+
chooseColor: "Choose {{label}}",
|
|
1094
|
+
adjustVariable: "Adjust {{label}}",
|
|
1095
|
+
changedCount: "Overrides: {{count}}",
|
|
1096
|
+
cssOutputLabel: "Complete theme CSS",
|
|
1097
|
+
cssOutputDescription: "A standalone light, dark, typography, shape, and structure contract for every public variable.",
|
|
1098
|
+
overrideOutputLabel: "Override-only CSS",
|
|
1099
|
+
overrideOutputDescription: "The compact alternative containing only values changed in this session.",
|
|
1100
|
+
providerOutputLabel: "UIProvider config",
|
|
1101
|
+
providerOutputDescription: "Mount-once display defaults for the application root.",
|
|
1102
|
+
autoPalette: "Derive supporting colors",
|
|
1103
|
+
autoPaletteDescription: "Keep status pairs, muted surfaces, accents, borders, charts, links, and sidebar actions coherent with the primary color.",
|
|
1104
|
+
typeRecipeTitle: "Calculated type scale",
|
|
1105
|
+
typeRecipeDescription: "Generate every public font step and line height from one body anchor and modular ratio.",
|
|
1106
|
+
baseTypeSize: "Base size",
|
|
1107
|
+
typeRatio: "Heading ratio",
|
|
1108
|
+
elevationRecipeTitle: "Calculated elevation",
|
|
1109
|
+
elevationRecipeDescription: "Generate the complete shadow ladder from one restrained intensity.",
|
|
1110
|
+
elevationIntensity: "Shadow intensity",
|
|
1111
|
+
previewTitle: "Semantic preview",
|
|
1112
|
+
previewDescription: "The same variables drive surfaces, typography, controls, rows, and states.",
|
|
1113
|
+
previewItemTitle: "Customer workspace",
|
|
1114
|
+
previewItemDescription: "Long descriptions and actions keep the package rhythm.",
|
|
1115
|
+
previewFieldLabel: "Workspace name",
|
|
1116
|
+
previewFieldPlaceholder: "Acme operations",
|
|
1117
|
+
previewAction: "Save changes",
|
|
1118
|
+
previewSuccess: "Healthy",
|
|
1119
|
+
previewWarning: "Review",
|
|
1120
|
+
previewContract: "CSS variables",
|
|
1121
|
+
providerSettings: J,
|
|
1122
|
+
groups: {
|
|
1123
|
+
colors: "Colors",
|
|
1124
|
+
states: "States",
|
|
1125
|
+
typography: "Typography",
|
|
1126
|
+
shape: "Shape & elevation",
|
|
1127
|
+
structure: "Structure",
|
|
1128
|
+
defaults: "Provider"
|
|
1129
|
+
},
|
|
1130
|
+
groupDescriptions: {
|
|
1131
|
+
colors: "Application surfaces, brand actions, charts, and sidebar colors.",
|
|
1132
|
+
states: "Semantic feedback and inverse-surface color pairs.",
|
|
1133
|
+
typography: "Font families and the calculated public type scale.",
|
|
1134
|
+
shape: "Corner radius and the complete elevation ladder.",
|
|
1135
|
+
structure: "Density, spacing, controls, rows, media, and shell geometry.",
|
|
1136
|
+
defaults: "Mount-once UIProvider formatting and component defaults."
|
|
1137
|
+
},
|
|
1138
|
+
sections: {
|
|
1139
|
+
"surfaces-content": "Surfaces & content",
|
|
1140
|
+
"brand-actions": "Brand & actions",
|
|
1141
|
+
charts: "Charts",
|
|
1142
|
+
sidebar: "Sidebar",
|
|
1143
|
+
"semantic-feedback": "Semantic feedback",
|
|
1144
|
+
"inverse-surfaces": "Inverse surfaces",
|
|
1145
|
+
"font-families": "Font families",
|
|
1146
|
+
"type-scale": "Type scale",
|
|
1147
|
+
radius: "Radius",
|
|
1148
|
+
elevation: "Elevation",
|
|
1149
|
+
"global-scales": "Global scales",
|
|
1150
|
+
"actions-controls": "Actions & controls",
|
|
1151
|
+
"rows-surfaces": "Rows & surfaces",
|
|
1152
|
+
media: "Media",
|
|
1153
|
+
"application-shell": "Application shell",
|
|
1154
|
+
"content-widths": "Content widths",
|
|
1155
|
+
"adaptive-layout": "Adaptive layout"
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
//#endregion
|
|
1159
|
+
//#region src/components/features/theme-tweaker/theme-tweaker.recipes.ts
|
|
1160
|
+
function X(e, t, n) {
|
|
1161
|
+
return Math.min(n, Math.max(t, e));
|
|
1162
|
+
}
|
|
1163
|
+
function Z(e, t) {
|
|
1164
|
+
let n = e.trim().match(/^#([\da-f]{3}|[\da-f]{6})$/i)?.[1], r = n?.length === 3 ? [...n].map((e) => e + e).join("") : n;
|
|
1165
|
+
if (r) return [
|
|
1166
|
+
0,
|
|
1167
|
+
2,
|
|
1168
|
+
4
|
|
1169
|
+
].map((e) => Number.parseInt(r.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4).reduce((e, t, n) => e + t * [
|
|
1170
|
+
.2126,
|
|
1171
|
+
.7152,
|
|
1172
|
+
.0722
|
|
1173
|
+
][n], 0) > .28 ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)";
|
|
1174
|
+
let i = e.match(/oklch\(\s*([\d.]+)(%)?/i), a = Number.parseFloat(i?.[1] ?? "NaN") / (i?.[2] ? 100 : 1);
|
|
1175
|
+
return Number.isFinite(a) ? a > .67 ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)" : t === "dark" ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)";
|
|
1176
|
+
}
|
|
1177
|
+
function Qe({ primary: e, mode: t = "light" }) {
|
|
1178
|
+
let n = t === "dark", r = (e, t) => `color-mix(in oklab, ${n ? t : e} 94%, var(--primary))`;
|
|
1179
|
+
return {
|
|
1180
|
+
"--primary": e,
|
|
1181
|
+
"--primary-accent": n ? "oklch(from var(--primary) clamp(0.7, l, 0.85) min(c, 0.16) h)" : "oklch(from var(--primary) clamp(0.35, l, 0.55) min(c, 0.16) h)",
|
|
1182
|
+
"--success": r("oklch(0.48 0.11 155)", "oklch(0.74 0.12 155)"),
|
|
1183
|
+
"--success-foreground": n ? "oklch(0.23 0.025 155)" : "oklch(0.985 0 0)",
|
|
1184
|
+
"--info": r("oklch(0.52 0.12 250)", "oklch(0.75 0.1 250)"),
|
|
1185
|
+
"--info-foreground": n ? "oklch(0.23 0.025 250)" : "oklch(0.985 0 0)",
|
|
1186
|
+
"--warning": r("oklch(0.78 0.13 75)", "oklch(0.81 0.12 75)"),
|
|
1187
|
+
"--warning-foreground": "oklch(0.28 0.035 60)",
|
|
1188
|
+
"--warning-accent": r("oklch(0.54 0.11 65)", "oklch(0.81 0.12 75)"),
|
|
1189
|
+
"--destructive": r("oklch(0.55 0.17 25)", "oklch(0.74 0.14 25)"),
|
|
1190
|
+
"--destructive-foreground": n ? "oklch(0.23 0.035 25)" : "oklch(0.985 0 0)",
|
|
1191
|
+
"--primary-foreground": Z(e, t),
|
|
1192
|
+
"--secondary": "color-mix(in oklab, var(--primary) 10%, var(--background))",
|
|
1193
|
+
"--secondary-foreground": "var(--foreground)",
|
|
1194
|
+
"--muted": "color-mix(in oklab, var(--primary) 7%, var(--background))",
|
|
1195
|
+
"--muted-foreground": "color-mix(in oklab, var(--foreground) 62%, var(--background))",
|
|
1196
|
+
"--accent": "color-mix(in oklab, var(--primary) 14%, var(--background))",
|
|
1197
|
+
"--accent-foreground": "var(--foreground)",
|
|
1198
|
+
"--border": "color-mix(in oklab, var(--primary) 14%, var(--background))",
|
|
1199
|
+
"--input": "color-mix(in oklab, var(--primary) 18%, var(--background))",
|
|
1200
|
+
"--ring": "var(--primary)",
|
|
1201
|
+
"--link-color": "var(--primary-accent)",
|
|
1202
|
+
"--chart-1": "var(--primary)",
|
|
1203
|
+
"--chart-2": r("oklch(0.56 0.11 230)", "oklch(0.76 0.11 230)"),
|
|
1204
|
+
"--chart-3": r("oklch(0.56 0.15 285)", "oklch(0.76 0.15 285)"),
|
|
1205
|
+
"--chart-4": r("oklch(0.58 0.14 330)", "oklch(0.76 0.14 330)"),
|
|
1206
|
+
"--chart-5": r("oklch(0.6 0.12 60)", "oklch(0.76 0.12 60)"),
|
|
1207
|
+
"--sidebar-primary": "var(--primary)",
|
|
1208
|
+
"--sidebar-primary-foreground": "var(--primary-foreground)",
|
|
1209
|
+
"--sidebar-accent": "var(--accent)",
|
|
1210
|
+
"--sidebar-accent-foreground": "var(--accent-foreground)",
|
|
1211
|
+
"--sidebar-border": "var(--border)",
|
|
1212
|
+
"--sidebar-ring": "var(--ring)"
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
var $e = {
|
|
1216
|
+
xxs: .75,
|
|
1217
|
+
xs: .75,
|
|
1218
|
+
pxs: .8125,
|
|
1219
|
+
sm: .875,
|
|
1220
|
+
base: 1
|
|
1221
|
+
}, Q = [
|
|
1222
|
+
"lg",
|
|
1223
|
+
"xl",
|
|
1224
|
+
"2xl",
|
|
1225
|
+
"3xl",
|
|
1226
|
+
"4xl",
|
|
1227
|
+
"5xl",
|
|
1228
|
+
"6xl",
|
|
1229
|
+
"7xl",
|
|
1230
|
+
"8xl",
|
|
1231
|
+
"9xl"
|
|
1232
|
+
];
|
|
1233
|
+
function et({ baseSize: e, ratio: t = 1.2 }) {
|
|
1234
|
+
let n = X(e, 14, 20), r = X(t, 1.125, 1.333), i = {};
|
|
1235
|
+
for (let [e, t] of Object.entries($e)) {
|
|
1236
|
+
let r = Math.max(12, n * t);
|
|
1237
|
+
i[`--text-${e}`] = `${Number((r / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number((Math.max(r + 6, r * 1.45) / r).toFixed(4))}`;
|
|
1238
|
+
}
|
|
1239
|
+
return Q.forEach((e, t) => {
|
|
1240
|
+
let a = n * r ** (t + 1);
|
|
1241
|
+
i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(X(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
|
|
1242
|
+
}), i;
|
|
1243
|
+
}
|
|
1244
|
+
function tt({ intensity: e }) {
|
|
1245
|
+
let t = X(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
|
|
1246
|
+
return {
|
|
1247
|
+
"--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
|
|
1248
|
+
"--shadow-xs": `0 1px 3px 0 oklch(0 0 0 / ${n(.07)})`,
|
|
1249
|
+
"--shadow-sm": `0 1px 2px 0 oklch(0 0 0 / ${n(.1)}), 0 3px 8px -3px oklch(0 0 0 / ${n(.13)})`,
|
|
1250
|
+
"--shadow": `0 1px 3px 0 oklch(0 0 0 / ${n(.13)}), 0 4px 10px -3px oklch(0 0 0 / ${n(.13)})`,
|
|
1251
|
+
"--shadow-md": `0 2px 4px -2px oklch(0 0 0 / ${n(.13)}), 0 6px 16px -4px oklch(0 0 0 / ${n(.17)})`,
|
|
1252
|
+
"--shadow-lg": `0 2px 6px -2px oklch(0 0 0 / ${n(.13)}), 0 10px 24px -6px oklch(0 0 0 / ${n(.2)})`,
|
|
1253
|
+
"--shadow-xl": `0 14px 28px -8px oklch(0 0 0 / ${n(.22)}), 0 6px 12px -6px oklch(0 0 0 / ${n(.12)})`,
|
|
1254
|
+
"--shadow-2xl": `0 24px 48px -14px oklch(0 0 0 / ${n(.28)})`
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
//#endregion
|
|
1258
|
+
//#region src/components/features/theme-tweaker/theme-tweaker.tsx
|
|
1259
|
+
var nt = [
|
|
1260
|
+
"colors",
|
|
1261
|
+
"states",
|
|
1262
|
+
"typography",
|
|
1263
|
+
"shape",
|
|
1264
|
+
"structure",
|
|
1265
|
+
"defaults"
|
|
1266
|
+
], rt = {
|
|
1267
|
+
colors: k,
|
|
1268
|
+
states: A,
|
|
1269
|
+
typography: Oe,
|
|
1270
|
+
shape: Ee,
|
|
1271
|
+
structure: xe,
|
|
1272
|
+
defaults: Te
|
|
1273
|
+
};
|
|
1274
|
+
function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
|
|
1275
|
+
let d = he();
|
|
1276
|
+
return /* @__PURE__ */ D(f, {
|
|
1277
|
+
render: /* @__PURE__ */ E("section", { "aria-labelledby": d }),
|
|
1278
|
+
gap: "md",
|
|
1279
|
+
className: "theme-tweaker--export-artifact min-w-0",
|
|
1280
|
+
children: [/* @__PURE__ */ D(f, {
|
|
1281
|
+
direction: {
|
|
1282
|
+
base: "vertical",
|
|
1283
|
+
sm: "horizontal"
|
|
1284
|
+
},
|
|
1285
|
+
align: {
|
|
1286
|
+
base: "stretch",
|
|
1287
|
+
sm: "start"
|
|
1288
|
+
},
|
|
1289
|
+
justify: { sm: "between" },
|
|
1290
|
+
gap: "md",
|
|
1291
|
+
className: "theme-tweaker--export-artifact-header",
|
|
1292
|
+
children: [/* @__PURE__ */ D(f, {
|
|
1293
|
+
gap: "dense",
|
|
1294
|
+
className: "min-w-0",
|
|
1295
|
+
children: [/* @__PURE__ */ E(u, {
|
|
1296
|
+
id: d,
|
|
1297
|
+
tag: "h3",
|
|
1298
|
+
children: e
|
|
1299
|
+
}), /* @__PURE__ */ E(l, {
|
|
1300
|
+
size: "xs",
|
|
1301
|
+
type: "secondary",
|
|
1302
|
+
children: t
|
|
1303
|
+
})]
|
|
1304
|
+
}), /* @__PURE__ */ D(f, {
|
|
1305
|
+
direction: "horizontal",
|
|
1306
|
+
gap: "xs",
|
|
1307
|
+
align: "center",
|
|
1308
|
+
wrap: !0,
|
|
1309
|
+
className: "theme-tweaker--export-artifact-actions sm:shrink-0",
|
|
1310
|
+
children: [/* @__PURE__ */ E(c, {
|
|
1311
|
+
type: "button",
|
|
1312
|
+
size: "sm",
|
|
1313
|
+
tone: "secondary",
|
|
1314
|
+
buttonStyle: "outline",
|
|
1315
|
+
icon: O,
|
|
1316
|
+
onClick: a,
|
|
1317
|
+
children: r
|
|
1318
|
+
}), /* @__PURE__ */ E(c, {
|
|
1319
|
+
type: "button",
|
|
1320
|
+
size: "sm",
|
|
1321
|
+
icon: ye,
|
|
1322
|
+
loading: s,
|
|
1323
|
+
onClick: o,
|
|
1324
|
+
children: i
|
|
1325
|
+
})]
|
|
1326
|
+
})]
|
|
1327
|
+
}), /* @__PURE__ */ E("pre", {
|
|
1328
|
+
tabIndex: 0,
|
|
1329
|
+
"aria-label": e,
|
|
1330
|
+
className: "theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 sm:max-h-72",
|
|
1331
|
+
children: /* @__PURE__ */ E("code", { children: n })
|
|
1332
|
+
})]
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
function $(e, t) {
|
|
1336
|
+
let n = Number.parseFloat(e);
|
|
1337
|
+
return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
|
|
1338
|
+
}
|
|
1339
|
+
function at(e, t) {
|
|
1340
|
+
let n = t.decimalPlaces ?? 3;
|
|
1341
|
+
return `${Number(e.toFixed(n))}${t.unit ?? ""}`;
|
|
1342
|
+
}
|
|
1343
|
+
function ot(e, t) {
|
|
1344
|
+
return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
|
|
1345
|
+
}
|
|
1346
|
+
function st(e, t) {
|
|
1347
|
+
if (typeof document > "u" || typeof window > "u") return M(e);
|
|
1348
|
+
let n = document.documentElement, r = [...new Set(t.map((e) => e.name))], i = n.classList.contains("light"), a = n.classList.contains("dark"), o = new Map(r.map((e) => [e, {
|
|
1349
|
+
value: n.style.getPropertyValue(e),
|
|
1350
|
+
priority: n.style.getPropertyPriority(e)
|
|
1351
|
+
}])), s = (t) => {
|
|
1352
|
+
for (let e of r) n.style.removeProperty(e);
|
|
1353
|
+
n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
|
|
1354
|
+
for (let [r, i] of Object.entries(B(e, t))) typeof i == "string" && n.style.setProperty(r, i);
|
|
1355
|
+
let i = window.getComputedStyle(n);
|
|
1356
|
+
return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter((e) => e[1].length > 0));
|
|
1357
|
+
};
|
|
1358
|
+
try {
|
|
1359
|
+
let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
|
|
1360
|
+
return M({
|
|
1361
|
+
mode: e.mode,
|
|
1362
|
+
shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
|
|
1363
|
+
light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
|
|
1364
|
+
dark: Object.fromEntries(Object.entries(r).filter(([e]) => !i.has(e)))
|
|
1365
|
+
});
|
|
1366
|
+
} finally {
|
|
1367
|
+
for (let e of r) {
|
|
1368
|
+
let t = o.get(e);
|
|
1369
|
+
t?.value ? n.style.setProperty(e, t.value, t.priority) : n.style.removeProperty(e);
|
|
1370
|
+
}
|
|
1371
|
+
n.classList.toggle("light", i), n.classList.toggle("dark", a);
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
|
|
1375
|
+
let s = `theme-variable-${he().replace(/:/g, "")}`, u = /* @__PURE__ */ E(c, {
|
|
1376
|
+
type: "button",
|
|
1377
|
+
iconOnly: !0,
|
|
1378
|
+
tone: "secondary",
|
|
1379
|
+
buttonStyle: "ghost",
|
|
1380
|
+
icon: Ce,
|
|
1381
|
+
withTooltip: o.resetVariable,
|
|
1382
|
+
"aria-label": `${o.resetVariable}: ${e.label}`,
|
|
1383
|
+
disabled: !t,
|
|
1384
|
+
onClick: i,
|
|
1385
|
+
children: /* @__PURE__ */ E(l, {
|
|
1386
|
+
tag: "span",
|
|
1387
|
+
size: "inherit",
|
|
1388
|
+
className: "sr-only",
|
|
1389
|
+
children: o.resetVariable
|
|
1390
|
+
})
|
|
1391
|
+
}), d = e.placeholder ?? n ?? o.inheritValue, p;
|
|
1392
|
+
if (e.kind === "color") p = /* @__PURE__ */ D(f, {
|
|
1393
|
+
direction: "horizontal",
|
|
1394
|
+
gap: "xs",
|
|
1395
|
+
align: "center",
|
|
1396
|
+
wrap: !1,
|
|
1397
|
+
children: [/* @__PURE__ */ E(ce, {
|
|
1398
|
+
id: s,
|
|
1399
|
+
"aria-label": e.label,
|
|
1400
|
+
"aria-description": e.description,
|
|
1401
|
+
value: t,
|
|
1402
|
+
previewValue: t || n || `var(${e.name})`,
|
|
1403
|
+
pickerAriaLabel: a(o.chooseColor, { label: e.label }),
|
|
1404
|
+
onValueChange: r,
|
|
1405
|
+
placeholder: d,
|
|
1406
|
+
className: "min-w-0 flex-1"
|
|
1407
|
+
}), u]
|
|
1408
|
+
});
|
|
1409
|
+
else if (e.control?.type === "range") {
|
|
1410
|
+
let i = $(t || n, e.control);
|
|
1411
|
+
p = /* @__PURE__ */ D(f, {
|
|
1412
|
+
gap: "sm",
|
|
1413
|
+
children: [/* @__PURE__ */ E(S, {
|
|
1414
|
+
id: `${s}-slider`,
|
|
1415
|
+
"aria-label": a(o.adjustVariable, { label: e.label }),
|
|
1416
|
+
value: i,
|
|
1417
|
+
min: e.control.min,
|
|
1418
|
+
max: e.control.max,
|
|
1419
|
+
step: e.control.step,
|
|
1420
|
+
onValueChange: (t) => r(at(t, e.control))
|
|
1421
|
+
}), /* @__PURE__ */ D(f, {
|
|
1422
|
+
direction: "horizontal",
|
|
1423
|
+
gap: "xs",
|
|
1424
|
+
align: "center",
|
|
1425
|
+
wrap: !1,
|
|
1426
|
+
children: [/* @__PURE__ */ E(f, {
|
|
1427
|
+
gap: "none",
|
|
1428
|
+
className: "w-28 max-w-full shrink-0",
|
|
1429
|
+
children: /* @__PURE__ */ E(le, {
|
|
1430
|
+
id: s,
|
|
1431
|
+
"aria-label": e.label,
|
|
1432
|
+
"aria-description": e.description,
|
|
1433
|
+
value: String(i),
|
|
1434
|
+
decimalPlaces: e.control.decimalPlaces ?? 3,
|
|
1435
|
+
min: e.control.min,
|
|
1436
|
+
max: e.control.max,
|
|
1437
|
+
allowEmpty: !0,
|
|
1438
|
+
normalizeOnBlur: !1,
|
|
1439
|
+
endAddon: e.control.unit,
|
|
1440
|
+
onChange: (t) => {
|
|
1441
|
+
let n = t.target.value.trim();
|
|
1442
|
+
r(n ? `${n}${e.control?.unit ?? ""}` : "");
|
|
1443
|
+
},
|
|
1444
|
+
className: "font-mono tabular-nums"
|
|
1445
|
+
})
|
|
1446
|
+
}), u]
|
|
1447
|
+
})]
|
|
1448
|
+
});
|
|
1449
|
+
} else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(f, {
|
|
1450
|
+
direction: "horizontal",
|
|
1451
|
+
gap: "xs",
|
|
1452
|
+
align: "start",
|
|
1453
|
+
wrap: !1,
|
|
1454
|
+
children: [/* @__PURE__ */ E(f, {
|
|
1455
|
+
className: "min-w-0 flex-1",
|
|
1456
|
+
children: /* @__PURE__ */ E(se, {
|
|
1457
|
+
id: s,
|
|
1458
|
+
"aria-label": e.label,
|
|
1459
|
+
"aria-description": e.description,
|
|
1460
|
+
value: t,
|
|
1461
|
+
onChange: (e) => r(e.target.value),
|
|
1462
|
+
placeholder: d,
|
|
1463
|
+
minRows: 2,
|
|
1464
|
+
autoResize: !0,
|
|
1465
|
+
className: "font-mono"
|
|
1466
|
+
})
|
|
1467
|
+
}), u]
|
|
1468
|
+
}) : /* @__PURE__ */ D(f, {
|
|
1469
|
+
direction: "horizontal",
|
|
1470
|
+
gap: "xs",
|
|
1471
|
+
align: "center",
|
|
1472
|
+
wrap: !1,
|
|
1473
|
+
children: [/* @__PURE__ */ E(v, {
|
|
1474
|
+
id: s,
|
|
1475
|
+
"aria-label": e.label,
|
|
1476
|
+
"aria-description": e.description,
|
|
1477
|
+
value: t,
|
|
1478
|
+
onChange: (e) => r(e.target.value),
|
|
1479
|
+
placeholder: d,
|
|
1480
|
+
className: "min-w-0 flex-1 font-mono"
|
|
1481
|
+
}), u]
|
|
1482
|
+
});
|
|
1483
|
+
return /* @__PURE__ */ E(y, {
|
|
1484
|
+
label: /* @__PURE__ */ D(f, {
|
|
1485
|
+
render: /* @__PURE__ */ E("span", {}),
|
|
1486
|
+
direction: "horizontal",
|
|
1487
|
+
gap: "sm",
|
|
1488
|
+
align: "baseline",
|
|
1489
|
+
justify: "between",
|
|
1490
|
+
wrap: !0,
|
|
1491
|
+
className: "min-w-0 flex-1",
|
|
1492
|
+
children: [/* @__PURE__ */ E(l, {
|
|
1493
|
+
tag: "span",
|
|
1494
|
+
size: "inherit",
|
|
1495
|
+
weight: "medium",
|
|
1496
|
+
className: "min-w-0",
|
|
1497
|
+
children: e.label
|
|
1498
|
+
}), /* @__PURE__ */ E(ae, {
|
|
1499
|
+
size: "xs",
|
|
1500
|
+
type: "secondary",
|
|
1501
|
+
weight: "regular",
|
|
1502
|
+
className: "max-w-full break-all",
|
|
1503
|
+
children: e.name
|
|
1504
|
+
})]
|
|
1505
|
+
}),
|
|
1506
|
+
htmlFor: s,
|
|
1507
|
+
className: "theme-tweaker--field min-w-0 border-t border-border/60 py-row-y first:border-t-0",
|
|
1508
|
+
children: p
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
function lt({ strings: e }) {
|
|
1512
|
+
return /* @__PURE__ */ E(te, {
|
|
1513
|
+
title: e.previewTitle,
|
|
1514
|
+
description: e.previewDescription,
|
|
1515
|
+
icon: /* @__PURE__ */ E(k, {}),
|
|
1516
|
+
headerDivider: !0,
|
|
1517
|
+
className: "theme-tweaker--preview-card",
|
|
1518
|
+
children: /* @__PURE__ */ D(f, {
|
|
1519
|
+
gap: "lg",
|
|
1520
|
+
children: [
|
|
1521
|
+
/* @__PURE__ */ D(f, {
|
|
1522
|
+
direction: "horizontal",
|
|
1523
|
+
gap: "sm",
|
|
1524
|
+
wrap: !0,
|
|
1525
|
+
children: [
|
|
1526
|
+
/* @__PURE__ */ E(_, {
|
|
1527
|
+
tone: "success",
|
|
1528
|
+
children: e.previewSuccess
|
|
1529
|
+
}),
|
|
1530
|
+
/* @__PURE__ */ E(_, {
|
|
1531
|
+
tone: "warning",
|
|
1532
|
+
children: e.previewWarning
|
|
1533
|
+
}),
|
|
1534
|
+
/* @__PURE__ */ E(_, {
|
|
1535
|
+
tone: "secondary",
|
|
1536
|
+
children: e.previewContract
|
|
1537
|
+
})
|
|
1538
|
+
]
|
|
1539
|
+
}),
|
|
1540
|
+
/* @__PURE__ */ E(ue, {
|
|
1541
|
+
variant: "muted",
|
|
1542
|
+
padding: "default",
|
|
1543
|
+
media: /* @__PURE__ */ E(k, {}),
|
|
1544
|
+
mediaVariant: "icon",
|
|
1545
|
+
title: e.previewItemTitle,
|
|
1546
|
+
description: e.previewItemDescription,
|
|
1547
|
+
trailing: /* @__PURE__ */ E(ve, { className: "size-icon text-success" })
|
|
1548
|
+
}),
|
|
1549
|
+
/* @__PURE__ */ E(y, {
|
|
1550
|
+
label: e.previewFieldLabel,
|
|
1551
|
+
children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
|
|
1552
|
+
}),
|
|
1553
|
+
/* @__PURE__ */ E(c, {
|
|
1554
|
+
type: "button",
|
|
1555
|
+
children: e.previewAction
|
|
1556
|
+
})
|
|
1557
|
+
]
|
|
1558
|
+
})
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
function ut(e, t, n) {
|
|
1562
|
+
let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
|
|
1563
|
+
return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
|
|
1564
|
+
...e,
|
|
1565
|
+
[r]: i
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: p = "self", apply: m = !0, manageModeClass: h = !0, preview: g, fileName: ee = "admin-ui-theme.css", config: ae, defaultConfig: se, onConfigChange: x, providerFileName: ce = "admin-ui.config.ts", showIntro: le = !0, selectors: ue, onExport: C, onCopy: he, onReset: ve, onError: O, actionsSlot: be, strings: xe, className: k, ...Te }, Ee) {
|
|
1569
|
+
let A = o(Ze, xe), [Oe, ke] = T(() => M(t)), j = w(() => e ? M(e) : Oe, [Oe, e]), [Ae, je] = T(() => R(se)), N = w(() => R(ae ?? Ae), [ae, Ae]), [P, F] = T("colors"), [I, L] = T(""), [z, Me] = T(!0), [Pe, Re] = T(16), [Be, H] = T(1.2), [Ve, He] = T(.8), [Ue, U] = T("idle"), We = ne(), [W, Ge] = T(!1), G = _e(null);
|
|
1570
|
+
ge(Ee, () => G.current), ze({
|
|
1571
|
+
apply: m,
|
|
1572
|
+
manageModeClass: h,
|
|
1573
|
+
selfRef: G,
|
|
1574
|
+
target: p,
|
|
1575
|
+
theme: j
|
|
1576
|
+
});
|
|
1577
|
+
let [K, Ke] = T(() => M(j)), [qe, Je] = T({});
|
|
1578
|
+
me(() => {
|
|
1579
|
+
if (typeof window > "u") return;
|
|
1580
|
+
let e = window.setTimeout(() => {
|
|
1581
|
+
let e = ot(p, G.current);
|
|
1582
|
+
if (!e) return;
|
|
1583
|
+
let t = window.getComputedStyle(e);
|
|
1584
|
+
Je(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ke(st(j, i));
|
|
1585
|
+
}, 0);
|
|
1586
|
+
return () => window.clearTimeout(e);
|
|
1587
|
+
}, [
|
|
1588
|
+
m,
|
|
1589
|
+
i,
|
|
1590
|
+
p,
|
|
1591
|
+
j
|
|
1592
|
+
]);
|
|
1593
|
+
let { artifact: q, error: J } = w(() => {
|
|
1594
|
+
try {
|
|
1595
|
+
let e = M({
|
|
1596
|
+
mode: j.mode,
|
|
1597
|
+
shared: {
|
|
1598
|
+
...K.shared,
|
|
1599
|
+
...j.shared
|
|
1600
|
+
},
|
|
1601
|
+
light: {
|
|
1602
|
+
...K.light,
|
|
1603
|
+
...j.light
|
|
1604
|
+
},
|
|
1605
|
+
dark: {
|
|
1606
|
+
...K.dark,
|
|
1607
|
+
...j.dark
|
|
1608
|
+
}
|
|
1609
|
+
});
|
|
1610
|
+
return {
|
|
1611
|
+
artifact: Fe(j, ee, { selectors: ue }, {
|
|
1612
|
+
resolvedTheme: e,
|
|
1613
|
+
providerConfig: N,
|
|
1614
|
+
providerFileName: ce
|
|
1615
|
+
}),
|
|
1616
|
+
error: null
|
|
1617
|
+
};
|
|
1618
|
+
} catch (e) {
|
|
1619
|
+
return {
|
|
1620
|
+
artifact: null,
|
|
1621
|
+
error: e
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
}, [
|
|
1625
|
+
ee,
|
|
1626
|
+
N,
|
|
1627
|
+
ce,
|
|
1628
|
+
K,
|
|
1629
|
+
ue,
|
|
1630
|
+
j
|
|
1631
|
+
]), Y = q?.cssText ?? `/* ${A.invalidTheme} */\n`, X = w(() => Ne(j), [j]), Z = I.trim().toLowerCase(), $e = w(() => i.filter((e) => !Z && e.group !== P ? !1 : !Z || [
|
|
1632
|
+
e.name,
|
|
1633
|
+
e.label,
|
|
1634
|
+
e.description
|
|
1635
|
+
].filter(Boolean).some((e) => e?.toLowerCase().includes(Z))), [
|
|
1636
|
+
i,
|
|
1637
|
+
P,
|
|
1638
|
+
Z
|
|
1639
|
+
]), Q = w(() => {
|
|
1640
|
+
let e = /* @__PURE__ */ new Map();
|
|
1641
|
+
for (let t of $e) {
|
|
1642
|
+
let n = `${t.group}:${t.section}`, r = e.get(n);
|
|
1643
|
+
r ? r.fields.push(t) : e.set(n, {
|
|
1644
|
+
group: t.group,
|
|
1645
|
+
section: t.section,
|
|
1646
|
+
fields: [t]
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
|
|
1650
|
+
}, [$e]), $ = (t) => {
|
|
1651
|
+
e === void 0 && ke(t), n?.(t), U("idle");
|
|
1652
|
+
}, at = (e) => {
|
|
1653
|
+
ae === void 0 && je(e), x?.(e), U("idle");
|
|
1654
|
+
}, dt = (e) => {
|
|
1655
|
+
$({
|
|
1656
|
+
...j,
|
|
1657
|
+
[j.mode]: {
|
|
1658
|
+
...j[j.mode],
|
|
1659
|
+
...e
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
}, ft = (e) => {
|
|
1663
|
+
$({
|
|
1664
|
+
...j,
|
|
1665
|
+
shared: {
|
|
1666
|
+
...j.shared,
|
|
1667
|
+
...e
|
|
1668
|
+
}
|
|
1669
|
+
});
|
|
1670
|
+
}, pt = (e) => {
|
|
1671
|
+
e !== j.mode && ($({
|
|
1672
|
+
...j,
|
|
1673
|
+
mode: e
|
|
1674
|
+
}), r?.(e));
|
|
1675
|
+
}, mt = async () => {
|
|
1676
|
+
try {
|
|
1677
|
+
if (J) throw J;
|
|
1678
|
+
if (Ge(!0), !q) throw Error(A.invalidTheme);
|
|
1679
|
+
C ? await C(q) : Ie(q), U("exported");
|
|
1680
|
+
} catch (e) {
|
|
1681
|
+
O?.(e);
|
|
1682
|
+
} finally {
|
|
1683
|
+
Ge(!1);
|
|
1684
|
+
}
|
|
1685
|
+
}, ht = async (e) => {
|
|
1686
|
+
try {
|
|
1687
|
+
if (he) await he(e);
|
|
1688
|
+
else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
|
|
1689
|
+
else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
|
|
1690
|
+
U("copied");
|
|
1691
|
+
} catch (e) {
|
|
1692
|
+
O?.(e);
|
|
1693
|
+
}
|
|
1694
|
+
}, gt = () => {
|
|
1695
|
+
try {
|
|
1696
|
+
if (!q) throw J ?? Error(A.invalidTheme);
|
|
1697
|
+
Le({
|
|
1698
|
+
fileName: q.providerFileName,
|
|
1699
|
+
text: q.providerConfigText,
|
|
1700
|
+
mimeType: "text/typescript;charset=utf-8"
|
|
1701
|
+
}), U("exported");
|
|
1702
|
+
} catch (e) {
|
|
1703
|
+
O?.(e);
|
|
1704
|
+
}
|
|
1705
|
+
}, _t = () => {
|
|
1706
|
+
let e = j, t = M({ mode: j.mode });
|
|
1707
|
+
$(t), ve?.(e), U("idle");
|
|
1708
|
+
}, vt = J ? A.invalidTheme : Ue === "copied" ? A.copiedStatus : Ue === "exported" ? A.exportedStatus : null, yt = P === "colors" ? /* @__PURE__ */ E(b, {
|
|
1709
|
+
className: "theme-tweaker--recipe",
|
|
1710
|
+
label: A.autoPalette,
|
|
1711
|
+
description: A.autoPaletteDescription,
|
|
1712
|
+
value: z,
|
|
1713
|
+
onValueChange: Me
|
|
1714
|
+
}) : P === "typography" ? /* @__PURE__ */ E(te, {
|
|
1715
|
+
title: A.typeRecipeTitle,
|
|
1716
|
+
description: A.typeRecipeDescription,
|
|
1717
|
+
surface: "flat",
|
|
1718
|
+
padding: "none",
|
|
1719
|
+
className: "theme-tweaker--recipe",
|
|
1720
|
+
children: /* @__PURE__ */ D(d, {
|
|
1721
|
+
columns: 1,
|
|
1722
|
+
gap: "md",
|
|
1723
|
+
className: "@2xl/theme-tweaker-controls:grid-cols-2",
|
|
1724
|
+
children: [/* @__PURE__ */ E(y, {
|
|
1725
|
+
label: A.baseTypeSize,
|
|
1726
|
+
children: /* @__PURE__ */ E(S, {
|
|
1727
|
+
"aria-label": A.baseTypeSize,
|
|
1728
|
+
value: Pe,
|
|
1729
|
+
min: 14,
|
|
1730
|
+
max: 20,
|
|
1731
|
+
step: 1,
|
|
1732
|
+
onValueChange: (e) => {
|
|
1733
|
+
Re(e), ft(et({
|
|
1734
|
+
baseSize: e,
|
|
1735
|
+
ratio: Be
|
|
1736
|
+
}));
|
|
1737
|
+
}
|
|
1738
|
+
})
|
|
1739
|
+
}), /* @__PURE__ */ E(y, {
|
|
1740
|
+
label: A.typeRatio,
|
|
1741
|
+
children: /* @__PURE__ */ E(S, {
|
|
1742
|
+
"aria-label": A.typeRatio,
|
|
1743
|
+
value: Be,
|
|
1744
|
+
min: 1.125,
|
|
1745
|
+
max: 1.333,
|
|
1746
|
+
step: .01,
|
|
1747
|
+
onValueChange: (e) => {
|
|
1748
|
+
H(e), ft(et({
|
|
1749
|
+
baseSize: Pe,
|
|
1750
|
+
ratio: e
|
|
1751
|
+
}));
|
|
1752
|
+
}
|
|
1753
|
+
})
|
|
1754
|
+
})]
|
|
1755
|
+
})
|
|
1756
|
+
}) : P === "shape" ? /* @__PURE__ */ E(te, {
|
|
1757
|
+
title: A.elevationRecipeTitle,
|
|
1758
|
+
description: A.elevationRecipeDescription,
|
|
1759
|
+
surface: "flat",
|
|
1760
|
+
padding: "none",
|
|
1761
|
+
className: "theme-tweaker--recipe",
|
|
1762
|
+
children: /* @__PURE__ */ E(y, {
|
|
1763
|
+
label: A.elevationIntensity,
|
|
1764
|
+
children: /* @__PURE__ */ E(S, {
|
|
1765
|
+
"aria-label": A.elevationIntensity,
|
|
1766
|
+
value: Ve,
|
|
1767
|
+
min: 0,
|
|
1768
|
+
max: 1,
|
|
1769
|
+
step: .05,
|
|
1770
|
+
onValueChange: (e) => {
|
|
1771
|
+
He(e), dt(tt({ intensity: e }));
|
|
1772
|
+
}
|
|
1773
|
+
})
|
|
1774
|
+
})
|
|
1775
|
+
}) : null, bt = /* @__PURE__ */ D("div", {
|
|
1776
|
+
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", g !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
|
|
1777
|
+
children: [
|
|
1778
|
+
/* @__PURE__ */ D(f, {
|
|
1779
|
+
gap: "lg",
|
|
1780
|
+
className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
|
|
1781
|
+
children: [/* @__PURE__ */ D(f, {
|
|
1782
|
+
gap: "lg",
|
|
1783
|
+
className: "theme-tweaker--header shrink-0",
|
|
1784
|
+
children: [
|
|
1785
|
+
le ? /* @__PURE__ */ D(f, {
|
|
1786
|
+
gap: "normal",
|
|
1787
|
+
className: "theme-tweaker--intro",
|
|
1788
|
+
children: [/* @__PURE__ */ D(f, {
|
|
1789
|
+
direction: "horizontal",
|
|
1790
|
+
gap: "sm",
|
|
1791
|
+
align: "center",
|
|
1792
|
+
wrap: !0,
|
|
1793
|
+
children: [/* @__PURE__ */ E(u, {
|
|
1794
|
+
tag: "h2",
|
|
1795
|
+
className: "theme-tweaker--title",
|
|
1796
|
+
children: A.title
|
|
1797
|
+
}), /* @__PURE__ */ E(_, {
|
|
1798
|
+
tone: "secondary",
|
|
1799
|
+
children: a(A.changedCount, { count: X })
|
|
1800
|
+
})]
|
|
1801
|
+
}), /* @__PURE__ */ E(l, {
|
|
1802
|
+
type: "secondary",
|
|
1803
|
+
className: "theme-tweaker--description",
|
|
1804
|
+
children: A.description
|
|
1805
|
+
})]
|
|
1806
|
+
}) : null,
|
|
1807
|
+
/* @__PURE__ */ D(f, {
|
|
1808
|
+
direction: "horizontal",
|
|
1809
|
+
justify: "between",
|
|
1810
|
+
align: "center",
|
|
1811
|
+
wrap: !0,
|
|
1812
|
+
gap: "sm",
|
|
1813
|
+
className: "theme-tweaker--toolbar",
|
|
1814
|
+
children: [/* @__PURE__ */ E(f, {
|
|
1815
|
+
direction: "horizontal",
|
|
1816
|
+
gap: "sm",
|
|
1817
|
+
align: "center",
|
|
1818
|
+
wrap: !0,
|
|
1819
|
+
children: /* @__PURE__ */ E(pe, {
|
|
1820
|
+
value: j.mode,
|
|
1821
|
+
onValueChange: (e) => pt(e),
|
|
1822
|
+
children: /* @__PURE__ */ D(fe, { children: [/* @__PURE__ */ D(de, {
|
|
1823
|
+
value: "light",
|
|
1824
|
+
children: [/* @__PURE__ */ E(De, { className: "size-icon-sm" }), A.lightMode]
|
|
1825
|
+
}), /* @__PURE__ */ D(de, {
|
|
1826
|
+
value: "dark",
|
|
1827
|
+
children: [/* @__PURE__ */ E(Se, { className: "size-icon-sm" }), A.darkMode]
|
|
1828
|
+
})] })
|
|
1829
|
+
})
|
|
1830
|
+
}), /* @__PURE__ */ D(f, {
|
|
1831
|
+
direction: "horizontal",
|
|
1832
|
+
gap: "xs",
|
|
1833
|
+
align: "center",
|
|
1834
|
+
justify: "end",
|
|
1835
|
+
wrap: !1,
|
|
1836
|
+
className: "theme-tweaker--actions",
|
|
1837
|
+
children: [/* @__PURE__ */ E(c, {
|
|
1838
|
+
type: "button",
|
|
1839
|
+
icon: ye,
|
|
1840
|
+
disabled: !!J,
|
|
1841
|
+
onClick: () => {
|
|
1842
|
+
U("idle"), We.show();
|
|
1843
|
+
},
|
|
1844
|
+
children: A.export
|
|
1845
|
+
}), be]
|
|
1846
|
+
})]
|
|
1847
|
+
}),
|
|
1848
|
+
/* @__PURE__ */ E(y, {
|
|
1849
|
+
label: /* @__PURE__ */ E(l, {
|
|
1850
|
+
tag: "span",
|
|
1851
|
+
size: "inherit",
|
|
1852
|
+
className: "sr-only",
|
|
1853
|
+
children: A.searchLabel
|
|
1854
|
+
}),
|
|
1855
|
+
className: "theme-tweaker--search",
|
|
1856
|
+
children: /* @__PURE__ */ E(v, {
|
|
1857
|
+
value: I,
|
|
1858
|
+
onChange: (e) => L(e.target.value),
|
|
1859
|
+
placeholder: A.searchPlaceholder,
|
|
1860
|
+
startIcon: we,
|
|
1861
|
+
clearable: !0,
|
|
1862
|
+
onClear: () => L(""),
|
|
1863
|
+
"aria-description": A.searchHint
|
|
1864
|
+
})
|
|
1865
|
+
})
|
|
1866
|
+
]
|
|
1867
|
+
}), /* @__PURE__ */ D(f, {
|
|
1868
|
+
gap: "lg",
|
|
1869
|
+
className: "theme-tweaker--workspace min-h-0",
|
|
1870
|
+
children: [/* @__PURE__ */ E("nav", {
|
|
1871
|
+
"aria-label": A.groupNavigationLabel,
|
|
1872
|
+
className: "theme-tweaker--navigation min-w-0",
|
|
1873
|
+
children: /* @__PURE__ */ E(pe, {
|
|
1874
|
+
value: P,
|
|
1875
|
+
onValueChange: (e) => {
|
|
1876
|
+
L(""), F(e);
|
|
1877
|
+
},
|
|
1878
|
+
className: "w-full",
|
|
1879
|
+
children: /* @__PURE__ */ E(fe, {
|
|
1880
|
+
scrollable: !0,
|
|
1881
|
+
scrollStrings: {
|
|
1882
|
+
previous: A.previousGroup,
|
|
1883
|
+
next: A.nextGroup
|
|
1884
|
+
},
|
|
1885
|
+
className: "theme-tweaker--group-list",
|
|
1886
|
+
children: nt.map((e) => {
|
|
1887
|
+
let t = rt[e];
|
|
1888
|
+
return /* @__PURE__ */ D(de, {
|
|
1889
|
+
value: e,
|
|
1890
|
+
onClick: () => L(""),
|
|
1891
|
+
className: "theme-tweaker--group-trigger",
|
|
1892
|
+
children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(l, {
|
|
1893
|
+
tag: "span",
|
|
1894
|
+
size: "inherit",
|
|
1895
|
+
weight: "medium",
|
|
1896
|
+
className: "min-w-0 flex-1 truncate text-left",
|
|
1897
|
+
children: A.groups[e]
|
|
1898
|
+
})]
|
|
1899
|
+
}, e);
|
|
1900
|
+
})
|
|
1901
|
+
})
|
|
1902
|
+
})
|
|
1903
|
+
}), /* @__PURE__ */ D(f, {
|
|
1904
|
+
gap: "lg",
|
|
1905
|
+
className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
|
|
1906
|
+
children: [
|
|
1907
|
+
/* @__PURE__ */ D(f, {
|
|
1908
|
+
gap: "normal",
|
|
1909
|
+
className: "theme-tweaker--editor-heading",
|
|
1910
|
+
children: [/* @__PURE__ */ D(f, {
|
|
1911
|
+
direction: "horizontal",
|
|
1912
|
+
gap: "sm",
|
|
1913
|
+
align: "center",
|
|
1914
|
+
wrap: !0,
|
|
1915
|
+
children: [
|
|
1916
|
+
/* @__PURE__ */ E(u, {
|
|
1917
|
+
tag: "h3",
|
|
1918
|
+
children: Z ? A.allGroups : A.groups[P]
|
|
1919
|
+
}),
|
|
1920
|
+
le ? null : /* @__PURE__ */ E(_, {
|
|
1921
|
+
tone: "secondary",
|
|
1922
|
+
children: a(A.changedCount, { count: X })
|
|
1923
|
+
}),
|
|
1924
|
+
Z ? /* @__PURE__ */ E(_, {
|
|
1925
|
+
tone: "secondary",
|
|
1926
|
+
role: "status",
|
|
1927
|
+
"aria-live": "polite",
|
|
1928
|
+
children: a(A.searchResults, { count: $e.length })
|
|
1929
|
+
}) : null
|
|
1930
|
+
]
|
|
1931
|
+
}), /* @__PURE__ */ E(l, {
|
|
1932
|
+
size: "xs",
|
|
1933
|
+
type: "secondary",
|
|
1934
|
+
children: Z ? A.searchHint : A.groupDescriptions[P]
|
|
1935
|
+
})]
|
|
1936
|
+
}),
|
|
1937
|
+
Z ? null : yt,
|
|
1938
|
+
P === "defaults" && !Z ? /* @__PURE__ */ E(Xe, {
|
|
1939
|
+
config: N,
|
|
1940
|
+
onChange: at,
|
|
1941
|
+
strings: A.providerSettings
|
|
1942
|
+
}) : Q.length > 0 ? /* @__PURE__ */ E(oe, {
|
|
1943
|
+
multiple: !0,
|
|
1944
|
+
defaultValue: [`${Q[0].group}:${Q[0].section}`],
|
|
1945
|
+
variant: "bordered",
|
|
1946
|
+
iconStyle: "none",
|
|
1947
|
+
className: "theme-tweaker--sections shrink-0",
|
|
1948
|
+
itemClassName: "theme-tweaker--section",
|
|
1949
|
+
items: Q.map((e) => {
|
|
1950
|
+
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? A.mixedScope : t.has("shared") ? A.sharedScope : j.mode === "light" ? A.lightMode : A.darkMode, r = Z ? a(A.groupSectionLabel, {
|
|
1951
|
+
group: A.groups[e.group],
|
|
1952
|
+
section: A.sections[e.section]
|
|
1953
|
+
}) : A.sections[e.section];
|
|
1954
|
+
return {
|
|
1955
|
+
value: `${e.group}:${e.section}`,
|
|
1956
|
+
title: r,
|
|
1957
|
+
description: a(A.variableCount, { count: e.fields.length }),
|
|
1958
|
+
badge: /* @__PURE__ */ E(_, {
|
|
1959
|
+
tone: "secondary",
|
|
1960
|
+
children: n
|
|
1961
|
+
}),
|
|
1962
|
+
content: /* @__PURE__ */ E(f, {
|
|
1963
|
+
gap: "none",
|
|
1964
|
+
className: "theme-tweaker--fields",
|
|
1965
|
+
children: e.fields.map((e) => {
|
|
1966
|
+
let t = e.scope === "shared" ? "shared" : j.mode, n = j[t][e.name] ?? "";
|
|
1967
|
+
return /* @__PURE__ */ E(ct, {
|
|
1968
|
+
field: e,
|
|
1969
|
+
value: n,
|
|
1970
|
+
effectiveValue: qe[e.name] ?? "",
|
|
1971
|
+
strings: A,
|
|
1972
|
+
onChange: (t) => {
|
|
1973
|
+
if (e.name === "--primary" && z && t.trim()) {
|
|
1974
|
+
dt(Qe({
|
|
1975
|
+
primary: t,
|
|
1976
|
+
mode: j.mode
|
|
1977
|
+
}));
|
|
1978
|
+
return;
|
|
1979
|
+
}
|
|
1980
|
+
$(ut(j, e, t));
|
|
1981
|
+
},
|
|
1982
|
+
onReset: () => $(ut(j, e, ""))
|
|
1983
|
+
}, e.name);
|
|
1984
|
+
})
|
|
1985
|
+
})
|
|
1986
|
+
};
|
|
1987
|
+
})
|
|
1988
|
+
}, `${P}:${Z}`) : /* @__PURE__ */ E(l, {
|
|
1989
|
+
type: "secondary",
|
|
1990
|
+
className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
|
|
1991
|
+
children: A.emptySearch
|
|
1992
|
+
})
|
|
1993
|
+
]
|
|
1994
|
+
})]
|
|
1995
|
+
})]
|
|
1996
|
+
}),
|
|
1997
|
+
g === !1 ? null : /* @__PURE__ */ E(f, {
|
|
1998
|
+
className: "theme-tweaker--preview min-w-0 self-start",
|
|
1999
|
+
children: g ?? /* @__PURE__ */ E(lt, { strings: A })
|
|
2000
|
+
}),
|
|
2001
|
+
/* @__PURE__ */ E(ie, {
|
|
2002
|
+
...We.overlayProps,
|
|
2003
|
+
title: A.exportDialogTitle,
|
|
2004
|
+
description: A.exportDialogDescription,
|
|
2005
|
+
showCloseButton: !1,
|
|
2006
|
+
showCancel: !1,
|
|
2007
|
+
showConfirm: !1,
|
|
2008
|
+
surfaceStyle: B(j),
|
|
2009
|
+
className: s("theme-tweaker--export-dialog sm:max-w-4xl", j.mode),
|
|
2010
|
+
footer: /* @__PURE__ */ D(f, {
|
|
2011
|
+
direction: "horizontal",
|
|
2012
|
+
align: "center",
|
|
2013
|
+
justify: "between",
|
|
2014
|
+
className: "theme-tweaker--export-footer w-full",
|
|
2015
|
+
children: [/* @__PURE__ */ E(c, {
|
|
2016
|
+
type: "button",
|
|
2017
|
+
tone: "secondary",
|
|
2018
|
+
buttonStyle: "ghost",
|
|
2019
|
+
icon: Ce,
|
|
2020
|
+
disabled: X === 0,
|
|
2021
|
+
onClick: _t,
|
|
2022
|
+
children: A.reset
|
|
2023
|
+
}), /* @__PURE__ */ E(re, { render: /* @__PURE__ */ E(c, {
|
|
2024
|
+
tone: "secondary",
|
|
2025
|
+
buttonStyle: "outline",
|
|
2026
|
+
children: A.close
|
|
2027
|
+
}) })]
|
|
2028
|
+
}),
|
|
2029
|
+
children: /* @__PURE__ */ D(f, {
|
|
2030
|
+
gap: "xl",
|
|
2031
|
+
className: "theme-tweaker--export-body",
|
|
2032
|
+
children: [
|
|
2033
|
+
/* @__PURE__ */ E(it, {
|
|
2034
|
+
title: A.cssOutputLabel,
|
|
2035
|
+
description: A.cssOutputDescription,
|
|
2036
|
+
code: Y,
|
|
2037
|
+
copyLabel: A.copy,
|
|
2038
|
+
downloadLabel: W ? A.exportPending : A.downloadCss,
|
|
2039
|
+
downloading: W,
|
|
2040
|
+
onCopy: () => void ht(Y),
|
|
2041
|
+
onDownload: () => void mt()
|
|
2042
|
+
}),
|
|
2043
|
+
/* @__PURE__ */ E(it, {
|
|
2044
|
+
title: A.providerOutputLabel,
|
|
2045
|
+
description: A.providerOutputDescription,
|
|
2046
|
+
code: q?.providerConfigText ?? "",
|
|
2047
|
+
copyLabel: A.copyProvider,
|
|
2048
|
+
downloadLabel: A.downloadProvider,
|
|
2049
|
+
onCopy: () => void ht(q?.providerConfigText ?? ""),
|
|
2050
|
+
onDownload: gt
|
|
2051
|
+
}),
|
|
2052
|
+
vt ? /* @__PURE__ */ E(l, {
|
|
2053
|
+
tag: "div",
|
|
2054
|
+
size: "xs",
|
|
2055
|
+
type: J ? "error" : "secondary",
|
|
2056
|
+
role: "status",
|
|
2057
|
+
"aria-live": "polite",
|
|
2058
|
+
className: "theme-tweaker--status",
|
|
2059
|
+
children: vt
|
|
2060
|
+
}) : null
|
|
2061
|
+
]
|
|
2062
|
+
})
|
|
2063
|
+
})
|
|
2064
|
+
]
|
|
2065
|
+
});
|
|
2066
|
+
return p === "self" ? /* @__PURE__ */ E(V, {
|
|
2067
|
+
...Te,
|
|
2068
|
+
ref: G,
|
|
2069
|
+
theme: m ? j : M({ mode: j.mode }),
|
|
2070
|
+
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", k),
|
|
2071
|
+
children: bt
|
|
2072
|
+
}) : /* @__PURE__ */ E("div", {
|
|
2073
|
+
...Te,
|
|
2074
|
+
ref: G,
|
|
2075
|
+
className: s("theme-tweaker--component @container/theme-tweaker", k),
|
|
2076
|
+
children: bt
|
|
2077
|
+
});
|
|
2078
|
+
});
|
|
2079
|
+
dt.displayName = "ThemeTweaker";
|
|
2080
|
+
//#endregion
|
|
2081
|
+
export { Be as AdminUIThemeProvider, V as ThemeScope, dt as ThemeTweaker, B as adminUIThemeToStyle, Ne as countAdminUIThemeOverrides, M as createAdminUITheme, Pe as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Fe as createThemeTweakerExportArtifact, ke as defaultAdminUIThemeSelectors, J as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, et as deriveAdminUITypeScale, Ie as downloadAdminUITheme, Me as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, z as serializeUIProviderConfig };
|
|
2082
|
+
|
|
2083
|
+
//# sourceMappingURL=theme-tweaker.js.map
|