themelia-react-ui 1.0.2 → 2.0.1
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 +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +81 -76
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +148 -138
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +4 -4
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +2246 -1693
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +82 -91
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +27 -5
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +6 -6
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-sizing.d.ts +43 -8
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +30 -4
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +10 -5
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +4 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +14 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- 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-summary.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 +23 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +11 -3
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +51 -4
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/date-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +914 -824
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +193 -189
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/item-DEmDiTlD.js +265 -0
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/value-typography-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { g as e, h as t } from "../ui-provider-1D_NSYzO.js";
|
|
3
3
|
import { COMPONENT_SCALES as n, SEMANTIC_TONES as r } from "../component-vocabulary.js";
|
|
4
4
|
import { t as i } from "../theme-scope-kStaAer0.js";
|
|
5
5
|
import { interpolateString as a, useStrings as o } from "../lib/strings.js";
|
|
6
|
-
import { t as s } from "../utils-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
6
|
+
import { t as s } from "../utils-l5LpDw2z.js";
|
|
7
|
+
import { n as c } from "../buttons-SbIcm1HJ.js";
|
|
8
|
+
import { o as l, s as u } from "../typography-DTRkE9zL.js";
|
|
9
|
+
import { t as d } from "../focus-recipes-B653VaLq.js";
|
|
10
|
+
import { r as f, t as p } from "../structure-DC2dygdA.js";
|
|
11
|
+
import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-lFKxn5Hu.js";
|
|
12
|
+
import { i as re, r as ie } from "../overlays-I0axtYA6.js";
|
|
13
|
+
import { m as ae } from "../primitives-B-CkiEMU.js";
|
|
14
|
+
import { t as oe } from "../accordion-B6a3vVgA.js";
|
|
15
|
+
import { t as _ } from "../badge-MrKVNzW9.js";
|
|
16
|
+
import { t as v } from "../input-DWhBBBww.js";
|
|
17
|
+
import { t as y } from "../form-field-DUt4UxSV.js";
|
|
18
|
+
import { d as se } from "../text-inputs-aaK9wcDT.js";
|
|
19
|
+
import { a as b, l as x } from "../choice-inputs-t6w3ATNz.js";
|
|
20
|
+
import { i as ce, n as S } from "../value-inputs-TAYMX111.js";
|
|
21
|
+
import { d as le } from "../forms-numeric-C0bvjRPZ.js";
|
|
22
|
+
import { t as ue } from "../item-DEmDiTlD.js";
|
|
23
|
+
import { i as de, r as fe, t as pe } from "../tabs-DwBJfjxX.js";
|
|
24
|
+
import { forwardRef as C, useEffect as me, useId as he, useImperativeHandle as ge, useMemo as w, useRef as _e, useState as T } from "react";
|
|
25
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
26
|
+
import { CheckCircle2 as ve, Copy as ye, Download as be, Info as xe, LayoutGrid as Se, Moon as Ce, Palette as we, RotateCcw as Te, Search as Ee, Settings2 as O, Shapes as De, ShieldCheck as Oe, Sun as ke, Type as k } from "lucide-react";
|
|
26
27
|
//#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
|
|
27
|
-
var
|
|
28
|
+
var Ae = {
|
|
28
29
|
shared: ":root",
|
|
29
30
|
light: ":root,\n.light",
|
|
30
31
|
dark: ".dark"
|
|
31
|
-
},
|
|
32
|
-
function
|
|
32
|
+
}, je = /^--[a-z][a-z0-9-]*$/i, Me = /[;{}]/, A = /[;{}]/;
|
|
33
|
+
function j(e = {}) {
|
|
33
34
|
return {
|
|
34
35
|
mode: e.mode ?? "light",
|
|
35
36
|
shared: { ...e.shared },
|
|
@@ -37,12 +38,12 @@ function A(e = {}) {
|
|
|
37
38
|
dark: { ...e.dark }
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
41
|
+
function Ne(e) {
|
|
42
|
+
return je.test(e);
|
|
42
43
|
}
|
|
43
44
|
function M(e, t = !0) {
|
|
44
45
|
return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
|
|
45
|
-
if (!
|
|
46
|
+
if (!Ne(e)) {
|
|
46
47
|
if (!t) return [];
|
|
47
48
|
throw TypeError(`Invalid CSS variable name: ${e}`);
|
|
48
49
|
}
|
|
@@ -59,7 +60,7 @@ function M(e, t = !0) {
|
|
|
59
60
|
}
|
|
60
61
|
function N(e, t) {
|
|
61
62
|
let n = e.trim();
|
|
62
|
-
if (n.length === 0 ||
|
|
63
|
+
if (n.length === 0 || A.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
|
|
63
64
|
return n;
|
|
64
65
|
}
|
|
65
66
|
function P(e, t) {
|
|
@@ -71,7 +72,7 @@ function P(e, t) {
|
|
|
71
72
|
].join("\n");
|
|
72
73
|
}
|
|
73
74
|
function F(e, t = {}) {
|
|
74
|
-
let n = t.selectors ??
|
|
75
|
+
let n = t.selectors ?? Ae, r = [
|
|
75
76
|
P(N(n.shared, "shared"), e.shared),
|
|
76
77
|
P(N(n.light, "light"), e.light),
|
|
77
78
|
P(N(n.dark, "dark"), e.dark)
|
|
@@ -110,7 +111,7 @@ function Ie(e) {
|
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
113
|
function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
113
|
-
let i =
|
|
114
|
+
let i = j(r.resolvedTheme ?? e), a = I(r.providerConfig);
|
|
114
115
|
return {
|
|
115
116
|
fileName: t,
|
|
116
117
|
cssText: F(i, {
|
|
@@ -118,7 +119,7 @@ function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
|
|
|
118
119
|
banner: n.banner ?? "themelia-react-ui complete theme"
|
|
119
120
|
}),
|
|
120
121
|
overrideCssText: F(e, n),
|
|
121
|
-
theme:
|
|
122
|
+
theme: j(e),
|
|
122
123
|
resolvedTheme: i,
|
|
123
124
|
overrideCount: Fe(e),
|
|
124
125
|
providerFileName: r.providerFileName ?? "admin-ui.config.ts",
|
|
@@ -140,8 +141,8 @@ function ze({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" })
|
|
|
140
141
|
}
|
|
141
142
|
//#endregion
|
|
142
143
|
//#region src/components/features/theme-tweaker/theme-scope.tsx
|
|
143
|
-
var z =
|
|
144
|
-
return /* @__PURE__ */
|
|
144
|
+
var z = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
|
|
145
|
+
return /* @__PURE__ */ E(i, {
|
|
145
146
|
...o,
|
|
146
147
|
ref: c,
|
|
147
148
|
"data-theme-mode": t,
|
|
@@ -160,7 +161,7 @@ function Be(e, t) {
|
|
|
160
161
|
return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
|
|
161
162
|
}
|
|
162
163
|
function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
163
|
-
|
|
164
|
+
me(() => {
|
|
164
165
|
if (!e || r === "self") return;
|
|
165
166
|
let a = Be(r, n);
|
|
166
167
|
if (!a) return;
|
|
@@ -188,35 +189,35 @@ function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
|
|
|
188
189
|
}
|
|
189
190
|
//#endregion
|
|
190
191
|
//#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
|
|
191
|
-
var
|
|
192
|
-
let
|
|
193
|
-
|
|
194
|
-
let
|
|
195
|
-
...
|
|
196
|
-
mode:
|
|
197
|
-
}), [
|
|
192
|
+
var He = C(function({ config: e, theme: n, mode: r = n.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
|
|
193
|
+
let d = _e(null);
|
|
194
|
+
ge(u, () => d.current);
|
|
195
|
+
let f = w(() => j({
|
|
196
|
+
...n,
|
|
197
|
+
mode: r
|
|
198
|
+
}), [r, n]);
|
|
198
199
|
return Ve({
|
|
199
|
-
apply:
|
|
200
|
-
manageModeClass:
|
|
201
|
-
selfRef:
|
|
202
|
-
target:
|
|
203
|
-
theme:
|
|
204
|
-
}), /* @__PURE__ */
|
|
205
|
-
config:
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
...
|
|
208
|
-
ref:
|
|
209
|
-
theme:
|
|
210
|
-
mode:
|
|
211
|
-
className: s("admin-ui-theme-provider--component bg-background text-foreground",
|
|
212
|
-
children:
|
|
200
|
+
apply: i === "document",
|
|
201
|
+
manageModeClass: a,
|
|
202
|
+
selfRef: d,
|
|
203
|
+
target: i,
|
|
204
|
+
theme: f
|
|
205
|
+
}), /* @__PURE__ */ E(t, {
|
|
206
|
+
config: e,
|
|
207
|
+
children: /* @__PURE__ */ E(z, {
|
|
208
|
+
...l,
|
|
209
|
+
ref: d,
|
|
210
|
+
theme: f,
|
|
211
|
+
mode: r,
|
|
212
|
+
className: s("admin-ui-theme-provider--component bg-background text-foreground", o),
|
|
213
|
+
children: c
|
|
213
214
|
})
|
|
214
215
|
});
|
|
215
216
|
});
|
|
216
|
-
|
|
217
|
+
He.displayName = "AdminUIThemeProvider";
|
|
217
218
|
//#endregion
|
|
218
219
|
//#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
|
|
219
|
-
var
|
|
220
|
+
var B = /* @__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("."), V = [
|
|
220
221
|
"--success",
|
|
221
222
|
"--success-foreground",
|
|
222
223
|
"--info",
|
|
@@ -235,12 +236,12 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
235
236
|
"--inverse-surface-strong",
|
|
236
237
|
"--inverse-border",
|
|
237
238
|
"--inverse-decoration"
|
|
238
|
-
],
|
|
239
|
+
], H = ["--overlay-backdrop"], U = [
|
|
239
240
|
"--font-heading",
|
|
240
241
|
"--font-sans",
|
|
241
242
|
"--font-serif",
|
|
242
243
|
"--font-mono"
|
|
243
|
-
],
|
|
244
|
+
], Ue = [
|
|
244
245
|
"xxs",
|
|
245
246
|
"xs",
|
|
246
247
|
"pxs",
|
|
@@ -256,7 +257,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
256
257
|
"7xl",
|
|
257
258
|
"8xl",
|
|
258
259
|
"9xl"
|
|
259
|
-
].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]),
|
|
260
|
+
].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), We = [
|
|
260
261
|
"--shadow-2xs",
|
|
261
262
|
"--shadow-xs",
|
|
262
263
|
"--shadow-sm",
|
|
@@ -265,7 +266,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
265
266
|
"--shadow-lg",
|
|
266
267
|
"--shadow-xl",
|
|
267
268
|
"--shadow-2xl"
|
|
268
|
-
],
|
|
269
|
+
], W = [
|
|
269
270
|
"--space-scale",
|
|
270
271
|
"--density-scale",
|
|
271
272
|
"--height-action",
|
|
@@ -279,7 +280,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
279
280
|
"--avatar",
|
|
280
281
|
"--shell-header-height",
|
|
281
282
|
"--shell-sidebar-width"
|
|
282
|
-
],
|
|
283
|
+
], G = [
|
|
283
284
|
"--content-width-sm",
|
|
284
285
|
"--content-width-md",
|
|
285
286
|
"--content-width-lg",
|
|
@@ -288,7 +289,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
288
289
|
"--adaptive-grid-min-sm",
|
|
289
290
|
"--adaptive-grid-min-md",
|
|
290
291
|
"--adaptive-grid-min-lg"
|
|
291
|
-
],
|
|
292
|
+
], Ge = {
|
|
292
293
|
"--background": "Application canvas and default page background.",
|
|
293
294
|
"--foreground": "Primary text and icon color on the application canvas.",
|
|
294
295
|
"--primary": "Brand and primary-action color.",
|
|
@@ -325,7 +326,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
325
326
|
"--adaptive-grid-min-sm": "Compact minimum peer width used by AdaptiveGrid.",
|
|
326
327
|
"--adaptive-grid-min-md": "Default minimum peer width used by AdaptiveGrid.",
|
|
327
328
|
"--adaptive-grid-min-lg": "Spacious minimum peer width used by AdaptiveGrid."
|
|
328
|
-
},
|
|
329
|
+
}, Ke = {
|
|
329
330
|
"--space-scale": "Spacing scale",
|
|
330
331
|
"--density-scale": "Density scale",
|
|
331
332
|
"--height-action": "Action height",
|
|
@@ -349,7 +350,7 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
349
350
|
"--adaptive-grid-min-sm": "Compact adaptive column",
|
|
350
351
|
"--adaptive-grid-min-md": "Default adaptive column",
|
|
351
352
|
"--adaptive-grid-min-lg": "Spacious adaptive column"
|
|
352
|
-
},
|
|
353
|
+
}, qe = {
|
|
353
354
|
"--radius": {
|
|
354
355
|
type: "range",
|
|
355
356
|
min: 0,
|
|
@@ -541,48 +542,48 @@ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
|
|
|
541
542
|
decimalPlaces: 1
|
|
542
543
|
}
|
|
543
544
|
};
|
|
544
|
-
function
|
|
545
|
+
function K(e) {
|
|
545
546
|
return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
|
|
546
547
|
}
|
|
547
|
-
function
|
|
548
|
+
function q(e, t) {
|
|
548
549
|
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
|
}
|
|
550
|
-
function
|
|
551
|
+
function J(e, t, n, r, i) {
|
|
551
552
|
return e.map((e) => ({
|
|
552
553
|
name: e,
|
|
553
|
-
label:
|
|
554
|
-
description:
|
|
554
|
+
label: Ke[e] ?? K(e),
|
|
555
|
+
description: Ge[e] ?? q(e, t),
|
|
555
556
|
group: t,
|
|
556
557
|
section: n,
|
|
557
558
|
scope: r,
|
|
558
559
|
kind: i,
|
|
559
|
-
control:
|
|
560
|
+
control: qe[e]
|
|
560
561
|
}));
|
|
561
562
|
}
|
|
562
|
-
var
|
|
563
|
-
...
|
|
564
|
-
...
|
|
565
|
-
...
|
|
566
|
-
...
|
|
567
|
-
...
|
|
568
|
-
...
|
|
569
|
-
...
|
|
570
|
-
...
|
|
571
|
-
...
|
|
572
|
-
...
|
|
573
|
-
...
|
|
574
|
-
...
|
|
575
|
-
...
|
|
576
|
-
...
|
|
577
|
-
...
|
|
578
|
-
...
|
|
579
|
-
...
|
|
580
|
-
...
|
|
581
|
-
...
|
|
563
|
+
var Je = [
|
|
564
|
+
...J(B.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
|
|
565
|
+
...J(H, "colors", "surfaces-content", "shared", "color"),
|
|
566
|
+
...J(B.slice(6, 19), "colors", "brand-actions", "mode", "color"),
|
|
567
|
+
...J(B.slice(19, 24), "colors", "charts", "mode", "color"),
|
|
568
|
+
...J(B.slice(24), "colors", "sidebar", "mode", "color"),
|
|
569
|
+
...J(V.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
|
|
570
|
+
...J(V.slice(7), "states", "inverse-surfaces", "mode", "color"),
|
|
571
|
+
...J(U, "typography", "font-families", "shared", "font"),
|
|
572
|
+
...J(Ue, "typography", "type-scale", "shared", "length"),
|
|
573
|
+
...J(["--radius"], "shape", "radius", "shared", "length"),
|
|
574
|
+
...J(We, "shape", "elevation", "mode", "shadow"),
|
|
575
|
+
...J(W.slice(0, 2), "structure", "global-scales", "shared", "length"),
|
|
576
|
+
...J(W.slice(2, 5), "structure", "actions-controls", "shared", "length"),
|
|
577
|
+
...J(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
|
|
578
|
+
...J(W.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
|
|
579
|
+
...J(W.slice(9, 11), "structure", "media", "shared", "length"),
|
|
580
|
+
...J(W.slice(11), "structure", "application-shell", "shared", "length"),
|
|
581
|
+
...J(G.slice(0, 5), "structure", "content-widths", "shared", "length"),
|
|
582
|
+
...J(G.slice(5), "structure", "adaptive-layout", "shared", "length")
|
|
582
583
|
].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
|
|
583
584
|
...e,
|
|
584
585
|
kind: "number"
|
|
585
|
-
} : e),
|
|
586
|
+
} : e), Y = {
|
|
586
587
|
title: "Application defaults",
|
|
587
588
|
description: "Configure the stable display behavior that accompanies the exported CSS theme.",
|
|
588
589
|
boundaryTitle: "Root provider recipe",
|
|
@@ -695,14 +696,14 @@ var Ye = [
|
|
|
695
696
|
xl: "XL"
|
|
696
697
|
}
|
|
697
698
|
};
|
|
698
|
-
function
|
|
699
|
+
function X(e, t) {
|
|
699
700
|
return e.map((e) => ({
|
|
700
701
|
value: e,
|
|
701
702
|
label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
|
|
702
703
|
}));
|
|
703
704
|
}
|
|
704
|
-
function
|
|
705
|
-
let a = I(e), o =
|
|
705
|
+
function Ye({ config: e, onChange: t, strings: i = Y }) {
|
|
706
|
+
let a = I(e), o = X(n, i), s = [
|
|
706
707
|
"sunday",
|
|
707
708
|
"monday",
|
|
708
709
|
"tuesday",
|
|
@@ -713,7 +714,7 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
713
714
|
].map((e, t) => ({
|
|
714
715
|
value: String(t),
|
|
715
716
|
label: i.options[e]
|
|
716
|
-
})),
|
|
717
|
+
})), c = (e, n, r) => {
|
|
717
718
|
t({
|
|
718
719
|
...a,
|
|
719
720
|
[e]: {
|
|
@@ -722,50 +723,50 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
722
723
|
}
|
|
723
724
|
});
|
|
724
725
|
};
|
|
725
|
-
return /* @__PURE__ */
|
|
726
|
+
return /* @__PURE__ */ D(p, {
|
|
726
727
|
gap: "lg",
|
|
727
728
|
className: "theme-tweaker--provider-settings",
|
|
728
729
|
children: [
|
|
729
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ D(p, {
|
|
730
731
|
gap: "normal",
|
|
731
|
-
children: [/* @__PURE__ */
|
|
732
|
+
children: [/* @__PURE__ */ E(u, {
|
|
732
733
|
weight: "semibold",
|
|
733
734
|
children: i.title
|
|
734
|
-
}), /* @__PURE__ */
|
|
735
|
+
}), /* @__PURE__ */ E(u, {
|
|
735
736
|
size: "xs",
|
|
736
737
|
type: "secondary",
|
|
737
738
|
children: i.description
|
|
738
739
|
})]
|
|
739
740
|
}),
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ D(te, {
|
|
741
742
|
tone: "info",
|
|
742
743
|
role: "note",
|
|
743
744
|
className: "theme-tweaker--provider-boundary",
|
|
744
745
|
children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ E(xe, { "aria-hidden": "true" }),
|
|
747
|
+
/* @__PURE__ */ E(g, { children: i.boundaryTitle }),
|
|
748
|
+
/* @__PURE__ */ E(h, { children: i.boundaryDescription }),
|
|
749
|
+
/* @__PURE__ */ D(ee, { children: [
|
|
750
|
+
/* @__PURE__ */ E(m, {
|
|
750
751
|
label: i.summary.locale,
|
|
751
752
|
value: a.formatting?.locale ?? i.options.default
|
|
752
753
|
}),
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ E(m, {
|
|
754
755
|
label: i.summary.currency,
|
|
755
756
|
value: a.money?.defaultCurrency ?? i.options.default
|
|
756
757
|
}),
|
|
757
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ E(m, {
|
|
758
759
|
label: i.summary.controls,
|
|
759
760
|
value: i.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? i.options.md
|
|
760
761
|
}),
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ E(m, {
|
|
762
763
|
label: i.summary.cards,
|
|
763
764
|
value: i.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? i.options.default
|
|
764
765
|
})
|
|
765
766
|
] })
|
|
766
767
|
]
|
|
767
768
|
}),
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ E(oe, {
|
|
769
770
|
multiple: !0,
|
|
770
771
|
defaultValue: ["regional"],
|
|
771
772
|
variant: "bordered",
|
|
@@ -776,57 +777,57 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
776
777
|
value: "regional",
|
|
777
778
|
title: i.sections.regional.title,
|
|
778
779
|
description: i.sections.regional.description,
|
|
779
|
-
content: /* @__PURE__ */
|
|
780
|
+
content: /* @__PURE__ */ D("div", {
|
|
780
781
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
781
782
|
children: [
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ E(y, {
|
|
783
784
|
label: i.labels.locale,
|
|
784
|
-
children: /* @__PURE__ */
|
|
785
|
+
children: /* @__PURE__ */ E(v, {
|
|
785
786
|
value: a.formatting?.locale ?? "",
|
|
786
|
-
onChange: (e) =>
|
|
787
|
+
onChange: (e) => c("formatting", "locale", e.target.value)
|
|
787
788
|
})
|
|
788
789
|
}),
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ E(y, {
|
|
790
791
|
label: i.labels.defaultCurrency,
|
|
791
|
-
children: /* @__PURE__ */
|
|
792
|
+
children: /* @__PURE__ */ E(v, {
|
|
792
793
|
value: a.money?.defaultCurrency ?? "",
|
|
793
|
-
onChange: (e) =>
|
|
794
|
+
onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
|
|
794
795
|
})
|
|
795
796
|
}),
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ E(y, {
|
|
797
798
|
label: i.labels.displayCurrency,
|
|
798
|
-
children: /* @__PURE__ */
|
|
799
|
+
children: /* @__PURE__ */ E(v, {
|
|
799
800
|
value: a.money?.displayCurrency ?? "",
|
|
800
801
|
placeholder: i.displayCurrencyPlaceholder,
|
|
801
|
-
onChange: (e) =>
|
|
802
|
+
onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
|
|
802
803
|
})
|
|
803
804
|
}),
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
+
/* @__PURE__ */ E(y, {
|
|
805
806
|
label: i.labels.moneyFormat,
|
|
806
|
-
children: /* @__PURE__ */
|
|
807
|
+
children: /* @__PURE__ */ E(x, {
|
|
807
808
|
value: a.money?.formatMode,
|
|
808
|
-
options:
|
|
809
|
+
options: X([
|
|
809
810
|
"decimal",
|
|
810
811
|
"with_code",
|
|
811
812
|
"with_symbol",
|
|
812
813
|
"locale_aware"
|
|
813
814
|
], i),
|
|
814
|
-
onValueChange: (e) =>
|
|
815
|
+
onValueChange: (e) => c("money", "formatMode", e)
|
|
815
816
|
})
|
|
816
817
|
}),
|
|
817
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ E(y, {
|
|
818
819
|
label: i.labels.firstDay,
|
|
819
|
-
children: /* @__PURE__ */
|
|
820
|
+
children: /* @__PURE__ */ E(x, {
|
|
820
821
|
value: String(a.dates?.weekStartsOn ?? 1),
|
|
821
822
|
options: s,
|
|
822
|
-
onValueChange: (e) =>
|
|
823
|
+
onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
|
|
823
824
|
})
|
|
824
825
|
}),
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ E(y, {
|
|
826
827
|
label: i.labels.dateFormat,
|
|
827
|
-
children: /* @__PURE__ */
|
|
828
|
+
children: /* @__PURE__ */ E(v, {
|
|
828
829
|
value: a.dates?.format ?? "",
|
|
829
|
-
onChange: (e) =>
|
|
830
|
+
onChange: (e) => c("dates", "format", e.target.value)
|
|
830
831
|
})
|
|
831
832
|
})
|
|
832
833
|
]
|
|
@@ -836,14 +837,14 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
836
837
|
value: "content",
|
|
837
838
|
title: i.sections.content.title,
|
|
838
839
|
description: i.sections.content.description,
|
|
839
|
-
content: /* @__PURE__ */
|
|
840
|
+
content: /* @__PURE__ */ D("div", {
|
|
840
841
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
841
842
|
children: [
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ E(y, {
|
|
843
844
|
label: i.labels.textSize,
|
|
844
|
-
children: /* @__PURE__ */
|
|
845
|
+
children: /* @__PURE__ */ E(x, {
|
|
845
846
|
value: a.typography?.defaultTextSize,
|
|
846
|
-
options:
|
|
847
|
+
options: X([
|
|
847
848
|
"xxs",
|
|
848
849
|
"xs",
|
|
849
850
|
"pxs",
|
|
@@ -852,41 +853,41 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
852
853
|
"lg",
|
|
853
854
|
"xl"
|
|
854
855
|
], i),
|
|
855
|
-
onValueChange: (e) =>
|
|
856
|
+
onValueChange: (e) => c("typography", "defaultTextSize", e)
|
|
856
857
|
})
|
|
857
858
|
}),
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
+
/* @__PURE__ */ E(y, {
|
|
859
860
|
label: i.labels.commentComposer,
|
|
860
|
-
children: /* @__PURE__ */
|
|
861
|
+
children: /* @__PURE__ */ E(x, {
|
|
861
862
|
value: a.comments?.composerPosition,
|
|
862
|
-
options:
|
|
863
|
-
onValueChange: (e) =>
|
|
863
|
+
options: X(["top", "bottom"], i),
|
|
864
|
+
onValueChange: (e) => c("comments", "composerPosition", e)
|
|
864
865
|
})
|
|
865
866
|
}),
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ E(b, {
|
|
867
868
|
label: i.labels.dualPricing,
|
|
868
869
|
description: i.dualPricingDescription,
|
|
869
870
|
value: a.money?.dualPricingEnabled ?? !1,
|
|
870
|
-
onValueChange: (e) =>
|
|
871
|
+
onValueChange: (e) => c("money", "dualPricingEnabled", e)
|
|
871
872
|
}),
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ E(y, {
|
|
873
874
|
label: i.labels.dualPricingMode,
|
|
874
|
-
children: /* @__PURE__ */
|
|
875
|
+
children: /* @__PURE__ */ E(x, {
|
|
875
876
|
value: a.money?.displayMode,
|
|
876
|
-
options:
|
|
877
|
+
options: X([
|
|
877
878
|
"default_only",
|
|
878
879
|
"dual",
|
|
879
880
|
"dynamic"
|
|
880
881
|
], i),
|
|
881
|
-
onValueChange: (e) =>
|
|
882
|
+
onValueChange: (e) => c("money", "displayMode", e)
|
|
882
883
|
})
|
|
883
884
|
}),
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
+
/* @__PURE__ */ E(y, {
|
|
885
886
|
label: i.labels.dualPricingLayout,
|
|
886
|
-
children: /* @__PURE__ */
|
|
887
|
+
children: /* @__PURE__ */ E(x, {
|
|
887
888
|
value: a.money?.dualPricingDisplay,
|
|
888
|
-
options:
|
|
889
|
-
onValueChange: (e) =>
|
|
889
|
+
options: X(["inline", "lines"], i),
|
|
890
|
+
onValueChange: (e) => c("money", "dualPricingDisplay", e)
|
|
890
891
|
})
|
|
891
892
|
})
|
|
892
893
|
]
|
|
@@ -896,90 +897,90 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
896
897
|
value: "components",
|
|
897
898
|
title: i.sections.components.title,
|
|
898
899
|
description: i.sections.components.description,
|
|
899
|
-
content: /* @__PURE__ */
|
|
900
|
+
content: /* @__PURE__ */ D("div", {
|
|
900
901
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
901
902
|
children: [
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ E(y, {
|
|
903
904
|
label: i.labels.componentScale,
|
|
904
|
-
children: /* @__PURE__ */
|
|
905
|
+
children: /* @__PURE__ */ E(x, {
|
|
905
906
|
value: a.density?.defaultScale,
|
|
906
907
|
options: o,
|
|
907
|
-
onValueChange: (e) =>
|
|
908
|
+
onValueChange: (e) => c("density", "defaultScale", e)
|
|
908
909
|
})
|
|
909
910
|
}),
|
|
910
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ E(y, {
|
|
911
912
|
label: i.labels.itemVariant,
|
|
912
|
-
children: /* @__PURE__ */
|
|
913
|
+
children: /* @__PURE__ */ E(x, {
|
|
913
914
|
value: a.item?.defaultVariant,
|
|
914
|
-
options:
|
|
915
|
+
options: X([
|
|
915
916
|
"default",
|
|
916
917
|
"outline",
|
|
917
918
|
"muted"
|
|
918
919
|
], i),
|
|
919
|
-
onValueChange: (e) =>
|
|
920
|
+
onValueChange: (e) => c("item", "defaultVariant", e)
|
|
920
921
|
})
|
|
921
922
|
}),
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ E(y, {
|
|
923
924
|
label: i.labels.buttonTone,
|
|
924
|
-
children: /* @__PURE__ */
|
|
925
|
+
children: /* @__PURE__ */ E(x, {
|
|
925
926
|
value: a.button?.defaultTone,
|
|
926
|
-
options:
|
|
927
|
-
onValueChange: (e) =>
|
|
927
|
+
options: X(r, i),
|
|
928
|
+
onValueChange: (e) => c("button", "defaultTone", e)
|
|
928
929
|
})
|
|
929
930
|
}),
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ E(y, {
|
|
931
932
|
label: i.labels.buttonStyle,
|
|
932
|
-
children: /* @__PURE__ */
|
|
933
|
+
children: /* @__PURE__ */ E(x, {
|
|
933
934
|
value: a.button?.defaultButtonStyle,
|
|
934
|
-
options:
|
|
935
|
+
options: X([
|
|
935
936
|
"solid",
|
|
936
937
|
"outline",
|
|
937
938
|
"ghost"
|
|
938
939
|
], i),
|
|
939
|
-
onValueChange: (e) =>
|
|
940
|
+
onValueChange: (e) => c("button", "defaultButtonStyle", e)
|
|
940
941
|
})
|
|
941
942
|
}),
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
+
/* @__PURE__ */ E(y, {
|
|
943
944
|
label: i.labels.badgeTone,
|
|
944
|
-
children: /* @__PURE__ */
|
|
945
|
+
children: /* @__PURE__ */ E(x, {
|
|
945
946
|
value: a.badge?.defaultTone,
|
|
946
|
-
options:
|
|
947
|
-
onValueChange: (e) =>
|
|
947
|
+
options: X(r, i),
|
|
948
|
+
onValueChange: (e) => c("badge", "defaultTone", e)
|
|
948
949
|
})
|
|
949
950
|
}),
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ E(y, {
|
|
951
952
|
label: i.labels.cardSurface,
|
|
952
|
-
children: /* @__PURE__ */
|
|
953
|
+
children: /* @__PURE__ */ E(x, {
|
|
953
954
|
value: a.card?.defaultSurface,
|
|
954
|
-
options:
|
|
955
|
+
options: X([
|
|
955
956
|
"card",
|
|
956
957
|
"flat",
|
|
957
958
|
"framed"
|
|
958
959
|
], i),
|
|
959
|
-
onValueChange: (e) =>
|
|
960
|
+
onValueChange: (e) => c("card", "defaultSurface", e)
|
|
960
961
|
})
|
|
961
962
|
}),
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
+
/* @__PURE__ */ E(y, {
|
|
963
964
|
label: i.labels.spinner,
|
|
964
|
-
children: /* @__PURE__ */
|
|
965
|
+
children: /* @__PURE__ */ E(x, {
|
|
965
966
|
value: a.spinner?.defaultVariant,
|
|
966
|
-
options:
|
|
967
|
+
options: X([
|
|
967
968
|
"default",
|
|
968
969
|
"shimmer",
|
|
969
970
|
"progress"
|
|
970
971
|
], i),
|
|
971
|
-
onValueChange: (e) =>
|
|
972
|
+
onValueChange: (e) => c("spinner", "defaultVariant", e)
|
|
972
973
|
})
|
|
973
974
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ E(b, {
|
|
975
976
|
label: i.labels.cardDivider,
|
|
976
977
|
value: a.card?.defaultHeaderDivider ?? !1,
|
|
977
|
-
onValueChange: (e) =>
|
|
978
|
+
onValueChange: (e) => c("card", "defaultHeaderDivider", e)
|
|
978
979
|
}),
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
label: i.labels.cardFooterDivider ??
|
|
980
|
+
/* @__PURE__ */ E(b, {
|
|
981
|
+
label: i.labels.cardFooterDivider ?? Y.labels.cardFooterDivider,
|
|
981
982
|
value: a.card?.defaultFooterDivider ?? !1,
|
|
982
|
-
onValueChange: (e) =>
|
|
983
|
+
onValueChange: (e) => c("card", "defaultFooterDivider", e)
|
|
983
984
|
})
|
|
984
985
|
]
|
|
985
986
|
})
|
|
@@ -988,14 +989,14 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
988
989
|
value: "toasts",
|
|
989
990
|
title: i.sections.toasts.title,
|
|
990
991
|
description: i.sections.toasts.description,
|
|
991
|
-
content: /* @__PURE__ */
|
|
992
|
+
content: /* @__PURE__ */ D("div", {
|
|
992
993
|
className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
|
|
993
994
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ E(y, {
|
|
995
996
|
label: i.labels.toastPosition,
|
|
996
|
-
children: /* @__PURE__ */
|
|
997
|
+
children: /* @__PURE__ */ E(x, {
|
|
997
998
|
value: a.toast?.position,
|
|
998
|
-
options:
|
|
999
|
+
options: X([
|
|
999
1000
|
"top-right",
|
|
1000
1001
|
"top-left",
|
|
1001
1002
|
"top-center",
|
|
@@ -1003,50 +1004,50 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
1003
1004
|
"bottom-left",
|
|
1004
1005
|
"bottom-center"
|
|
1005
1006
|
], i),
|
|
1006
|
-
onValueChange: (e) =>
|
|
1007
|
+
onValueChange: (e) => c("toast", "position", e)
|
|
1007
1008
|
})
|
|
1008
1009
|
}),
|
|
1009
|
-
/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ E(y, {
|
|
1010
1011
|
label: i.labels.toastTheme,
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1012
|
+
children: /* @__PURE__ */ E(x, {
|
|
1012
1013
|
value: a.toast?.theme,
|
|
1013
|
-
options:
|
|
1014
|
+
options: X([
|
|
1014
1015
|
"light",
|
|
1015
1016
|
"dark",
|
|
1016
1017
|
"system"
|
|
1017
1018
|
], i),
|
|
1018
|
-
onValueChange: (e) =>
|
|
1019
|
+
onValueChange: (e) => c("toast", "theme", e)
|
|
1019
1020
|
})
|
|
1020
1021
|
}),
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ E(y, {
|
|
1022
1023
|
label: i.labels.toastDuration,
|
|
1023
|
-
children: /* @__PURE__ */
|
|
1024
|
+
children: /* @__PURE__ */ E(v, {
|
|
1024
1025
|
type: "number",
|
|
1025
1026
|
min: 1e3,
|
|
1026
1027
|
step: 500,
|
|
1027
1028
|
value: String(a.toast?.duration ?? 5e3),
|
|
1028
|
-
onChange: (e) =>
|
|
1029
|
+
onChange: (e) => c("toast", "duration", Number(e.target.value))
|
|
1029
1030
|
})
|
|
1030
1031
|
}),
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ E(y, {
|
|
1032
1033
|
label: i.labels.visibleToasts,
|
|
1033
|
-
children: /* @__PURE__ */
|
|
1034
|
+
children: /* @__PURE__ */ E(v, {
|
|
1034
1035
|
type: "number",
|
|
1035
1036
|
min: 1,
|
|
1036
1037
|
max: 10,
|
|
1037
1038
|
value: String(a.toast?.visibleToasts ?? 4),
|
|
1038
|
-
onChange: (e) =>
|
|
1039
|
+
onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
|
|
1039
1040
|
})
|
|
1040
1041
|
}),
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ E(b, {
|
|
1042
1043
|
label: i.labels.closeButton,
|
|
1043
1044
|
value: a.toast?.closeButton ?? !0,
|
|
1044
|
-
onValueChange: (e) =>
|
|
1045
|
+
onValueChange: (e) => c("toast", "closeButton", e)
|
|
1045
1046
|
}),
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ E(b, {
|
|
1047
1048
|
label: i.labels.richColors,
|
|
1048
1049
|
value: a.toast?.richColors ?? !1,
|
|
1049
|
-
onValueChange: (e) =>
|
|
1050
|
+
onValueChange: (e) => c("toast", "richColors", e)
|
|
1050
1051
|
})
|
|
1051
1052
|
]
|
|
1052
1053
|
})
|
|
@@ -1058,7 +1059,7 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
|
|
|
1058
1059
|
}
|
|
1059
1060
|
//#endregion
|
|
1060
1061
|
//#region src/components/features/theme-tweaker/theme-tweaker.strings.ts
|
|
1061
|
-
var
|
|
1062
|
+
var Xe = {
|
|
1062
1063
|
title: "Theme tweaker",
|
|
1063
1064
|
description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus root display defaults.",
|
|
1064
1065
|
searchLabel: "Search variables",
|
|
@@ -1124,7 +1125,7 @@ var Ze = {
|
|
|
1124
1125
|
previewSuccess: "Healthy",
|
|
1125
1126
|
previewWarning: "Review",
|
|
1126
1127
|
previewContract: "CSS variables",
|
|
1127
|
-
providerSettings:
|
|
1128
|
+
providerSettings: Y,
|
|
1128
1129
|
groups: {
|
|
1129
1130
|
colors: "Colors",
|
|
1130
1131
|
states: "States",
|
|
@@ -1163,10 +1164,10 @@ var Ze = {
|
|
|
1163
1164
|
};
|
|
1164
1165
|
//#endregion
|
|
1165
1166
|
//#region src/components/features/theme-tweaker/theme-tweaker.recipes.ts
|
|
1166
|
-
function
|
|
1167
|
+
function Z(e, t, n) {
|
|
1167
1168
|
return Math.min(n, Math.max(t, e));
|
|
1168
1169
|
}
|
|
1169
|
-
function
|
|
1170
|
+
function Q(e, t) {
|
|
1170
1171
|
let n = e.trim().match(/^#([\da-f]{3}|[\da-f]{6})$/i)?.[1], r = n?.length === 3 ? [...n].map((e) => e + e).join("") : n;
|
|
1171
1172
|
if (r) return [
|
|
1172
1173
|
0,
|
|
@@ -1180,7 +1181,7 @@ function Z(e, t) {
|
|
|
1180
1181
|
let i = e.match(/oklch\(\s*([\d.]+)(%)?/i), a = Number.parseFloat(i?.[1] ?? "NaN") / (i?.[2] ? 100 : 1);
|
|
1181
1182
|
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)";
|
|
1182
1183
|
}
|
|
1183
|
-
function
|
|
1184
|
+
function Ze({ primary: e, mode: t = "light" }) {
|
|
1184
1185
|
let n = t === "dark", r = (e, t) => `color-mix(in oklab, ${n ? t : e} 94%, var(--primary))`;
|
|
1185
1186
|
return {
|
|
1186
1187
|
"--primary": e,
|
|
@@ -1194,7 +1195,7 @@ function Qe({ primary: e, mode: t = "light" }) {
|
|
|
1194
1195
|
"--warning-accent": r("oklch(0.54 0.11 65)", "oklch(0.81 0.12 75)"),
|
|
1195
1196
|
"--destructive": r("oklch(0.55 0.17 25)", "oklch(0.74 0.14 25)"),
|
|
1196
1197
|
"--destructive-foreground": n ? "oklch(0.23 0.035 25)" : "oklch(0.985 0 0)",
|
|
1197
|
-
"--primary-foreground":
|
|
1198
|
+
"--primary-foreground": Q(e, t),
|
|
1198
1199
|
"--secondary": "color-mix(in oklab, var(--primary) 10%, var(--background))",
|
|
1199
1200
|
"--secondary-foreground": "var(--foreground)",
|
|
1200
1201
|
"--muted": "color-mix(in oklab, var(--primary) 7%, var(--background))",
|
|
@@ -1218,13 +1219,13 @@ function Qe({ primary: e, mode: t = "light" }) {
|
|
|
1218
1219
|
"--sidebar-ring": "var(--ring)"
|
|
1219
1220
|
};
|
|
1220
1221
|
}
|
|
1221
|
-
var $
|
|
1222
|
+
var $ = {
|
|
1222
1223
|
xxs: .75,
|
|
1223
1224
|
xs: .75,
|
|
1224
1225
|
pxs: .8125,
|
|
1225
1226
|
sm: .875,
|
|
1226
1227
|
base: 1
|
|
1227
|
-
},
|
|
1228
|
+
}, Qe = [
|
|
1228
1229
|
"lg",
|
|
1229
1230
|
"xl",
|
|
1230
1231
|
"2xl",
|
|
@@ -1236,19 +1237,19 @@ var $e = {
|
|
|
1236
1237
|
"8xl",
|
|
1237
1238
|
"9xl"
|
|
1238
1239
|
];
|
|
1239
|
-
function
|
|
1240
|
-
let n =
|
|
1241
|
-
for (let [e, t] of Object.entries($
|
|
1240
|
+
function $e({ baseSize: e, ratio: t = 1.2 }) {
|
|
1241
|
+
let n = Z(e, 14, 20), r = Z(t, 1.125, 1.333), i = {};
|
|
1242
|
+
for (let [e, t] of Object.entries($)) {
|
|
1242
1243
|
let r = Math.max(12, n * t);
|
|
1243
1244
|
i[`--text-${e}`] = `${Number((r / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number((Math.max(r + 6, r * 1.45) / r).toFixed(4))}`;
|
|
1244
1245
|
}
|
|
1245
|
-
return
|
|
1246
|
+
return Qe.forEach((e, t) => {
|
|
1246
1247
|
let a = n * r ** (t + 1);
|
|
1247
|
-
i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(
|
|
1248
|
+
i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(Z(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
|
|
1248
1249
|
}), i;
|
|
1249
1250
|
}
|
|
1250
|
-
function
|
|
1251
|
-
let t =
|
|
1251
|
+
function et({ intensity: e }) {
|
|
1252
|
+
let t = Z(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
|
|
1252
1253
|
return {
|
|
1253
1254
|
"--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
|
|
1254
1255
|
"--shadow-xs": `0 1px 3px 0 oklch(0 0 0 / ${n(.07)})`,
|
|
@@ -1262,28 +1263,28 @@ function tt({ intensity: e }) {
|
|
|
1262
1263
|
}
|
|
1263
1264
|
//#endregion
|
|
1264
1265
|
//#region src/components/features/theme-tweaker/theme-tweaker.tsx
|
|
1265
|
-
var
|
|
1266
|
+
var tt = [
|
|
1266
1267
|
"colors",
|
|
1267
1268
|
"states",
|
|
1268
1269
|
"typography",
|
|
1269
1270
|
"shape",
|
|
1270
1271
|
"structure",
|
|
1271
1272
|
"defaults"
|
|
1272
|
-
],
|
|
1273
|
-
colors:
|
|
1274
|
-
states:
|
|
1275
|
-
typography:
|
|
1276
|
-
shape:
|
|
1277
|
-
structure:
|
|
1278
|
-
defaults:
|
|
1273
|
+
], nt = {
|
|
1274
|
+
colors: we,
|
|
1275
|
+
states: Oe,
|
|
1276
|
+
typography: k,
|
|
1277
|
+
shape: De,
|
|
1278
|
+
structure: Se,
|
|
1279
|
+
defaults: O
|
|
1279
1280
|
};
|
|
1280
|
-
function
|
|
1281
|
-
let
|
|
1282
|
-
return /* @__PURE__ */
|
|
1283
|
-
render: /* @__PURE__ */
|
|
1281
|
+
function rt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
|
|
1282
|
+
let f = he();
|
|
1283
|
+
return /* @__PURE__ */ D(p, {
|
|
1284
|
+
render: /* @__PURE__ */ E("section", { "aria-labelledby": f }),
|
|
1284
1285
|
gap: "md",
|
|
1285
1286
|
className: "theme-tweaker--export-artifact min-w-0",
|
|
1286
|
-
children: [/* @__PURE__ */
|
|
1287
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1287
1288
|
direction: {
|
|
1288
1289
|
base: "vertical",
|
|
1289
1290
|
sm: "horizontal"
|
|
@@ -1295,50 +1296,51 @@ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
|
|
|
1295
1296
|
justify: { sm: "between" },
|
|
1296
1297
|
gap: "md",
|
|
1297
1298
|
className: "theme-tweaker--export-artifact-header",
|
|
1298
|
-
children: [/* @__PURE__ */
|
|
1299
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1299
1300
|
gap: "dense",
|
|
1300
1301
|
className: "min-w-0",
|
|
1301
|
-
children: [/* @__PURE__ */
|
|
1302
|
-
id:
|
|
1302
|
+
children: [/* @__PURE__ */ E(l, {
|
|
1303
|
+
id: f,
|
|
1303
1304
|
tag: "h3",
|
|
1304
1305
|
children: e
|
|
1305
|
-
}), /* @__PURE__ */
|
|
1306
|
+
}), /* @__PURE__ */ E(u, {
|
|
1306
1307
|
size: "xs",
|
|
1307
1308
|
type: "secondary",
|
|
1308
1309
|
children: t
|
|
1309
1310
|
})]
|
|
1310
|
-
}), /* @__PURE__ */
|
|
1311
|
+
}), /* @__PURE__ */ D(p, {
|
|
1311
1312
|
direction: "horizontal",
|
|
1312
1313
|
gap: "xs",
|
|
1313
1314
|
align: "center",
|
|
1314
1315
|
wrap: !0,
|
|
1315
1316
|
className: "theme-tweaker--export-artifact-actions sm:shrink-0",
|
|
1316
|
-
children: [/* @__PURE__ */
|
|
1317
|
+
children: [/* @__PURE__ */ E(c, {
|
|
1317
1318
|
type: "button",
|
|
1318
1319
|
size: "sm",
|
|
1319
1320
|
tone: "secondary",
|
|
1320
1321
|
buttonStyle: "outline",
|
|
1321
|
-
icon:
|
|
1322
|
+
icon: ye,
|
|
1322
1323
|
onClick: a,
|
|
1323
1324
|
children: r
|
|
1324
|
-
}), /* @__PURE__ */
|
|
1325
|
+
}), /* @__PURE__ */ E(c, {
|
|
1326
|
+
tone: "primary",
|
|
1325
1327
|
type: "button",
|
|
1326
1328
|
size: "sm",
|
|
1327
|
-
icon:
|
|
1329
|
+
icon: be,
|
|
1328
1330
|
loading: s,
|
|
1329
1331
|
onClick: o,
|
|
1330
1332
|
children: i
|
|
1331
1333
|
})]
|
|
1332
1334
|
})]
|
|
1333
|
-
}), /* @__PURE__ */
|
|
1335
|
+
}), /* @__PURE__ */ E("pre", {
|
|
1334
1336
|
tabIndex: 0,
|
|
1335
1337
|
"aria-label": e,
|
|
1336
|
-
className:
|
|
1337
|
-
children: /* @__PURE__ */
|
|
1338
|
+
className: `theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground outline-none ${d.frame} sm:max-h-72`,
|
|
1339
|
+
children: /* @__PURE__ */ E("code", { children: n })
|
|
1338
1340
|
})]
|
|
1339
1341
|
});
|
|
1340
1342
|
}
|
|
1341
|
-
function
|
|
1343
|
+
function it(e, t) {
|
|
1342
1344
|
let n = Number.parseFloat(e);
|
|
1343
1345
|
return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
|
|
1344
1346
|
}
|
|
@@ -1350,7 +1352,7 @@ function ot(e, t) {
|
|
|
1350
1352
|
return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
|
|
1351
1353
|
}
|
|
1352
1354
|
function st(e, t) {
|
|
1353
|
-
if (typeof document > "u" || typeof window > "u") return
|
|
1355
|
+
if (typeof document > "u" || typeof window > "u") return j(e);
|
|
1354
1356
|
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, {
|
|
1355
1357
|
value: n.style.getPropertyValue(e),
|
|
1356
1358
|
priority: n.style.getPropertyPriority(e)
|
|
@@ -1363,7 +1365,7 @@ function st(e, t) {
|
|
|
1363
1365
|
};
|
|
1364
1366
|
try {
|
|
1365
1367
|
let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
|
|
1366
|
-
return
|
|
1368
|
+
return j({
|
|
1367
1369
|
mode: e.mode,
|
|
1368
1370
|
shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
|
|
1369
1371
|
light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
|
|
@@ -1378,7 +1380,7 @@ function st(e, t) {
|
|
|
1378
1380
|
}
|
|
1379
1381
|
}
|
|
1380
1382
|
function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
|
|
1381
|
-
let s = `theme-variable-${
|
|
1383
|
+
let s = `theme-variable-${he().replace(/:/g, "")}`, l = /* @__PURE__ */ E(c, {
|
|
1382
1384
|
type: "button",
|
|
1383
1385
|
iconOnly: !0,
|
|
1384
1386
|
tone: "secondary",
|
|
@@ -1388,19 +1390,19 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1388
1390
|
"aria-label": `${o.resetVariable}: ${e.label}`,
|
|
1389
1391
|
disabled: !t,
|
|
1390
1392
|
onClick: i,
|
|
1391
|
-
children: /* @__PURE__ */
|
|
1393
|
+
children: /* @__PURE__ */ E(u, {
|
|
1392
1394
|
tag: "span",
|
|
1393
1395
|
size: "inherit",
|
|
1394
1396
|
className: "sr-only",
|
|
1395
1397
|
children: o.resetVariable
|
|
1396
1398
|
})
|
|
1397
|
-
}), d = e.placeholder ?? n ?? o.inheritValue,
|
|
1398
|
-
if (e.kind === "color")
|
|
1399
|
+
}), d = e.placeholder ?? n ?? o.inheritValue, f;
|
|
1400
|
+
if (e.kind === "color") f = /* @__PURE__ */ D(p, {
|
|
1399
1401
|
direction: "horizontal",
|
|
1400
1402
|
gap: "xs",
|
|
1401
1403
|
align: "center",
|
|
1402
1404
|
wrap: !1,
|
|
1403
|
-
children: [/* @__PURE__ */
|
|
1405
|
+
children: [/* @__PURE__ */ E(ce, {
|
|
1404
1406
|
id: s,
|
|
1405
1407
|
"aria-label": e.label,
|
|
1406
1408
|
"aria-description": e.description,
|
|
@@ -1413,10 +1415,10 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1413
1415
|
}), l]
|
|
1414
1416
|
});
|
|
1415
1417
|
else if (e.control?.type === "range") {
|
|
1416
|
-
let i =
|
|
1417
|
-
|
|
1418
|
+
let i = it(t || n, e.control);
|
|
1419
|
+
f = /* @__PURE__ */ D(p, {
|
|
1418
1420
|
gap: "sm",
|
|
1419
|
-
children: [/* @__PURE__ */
|
|
1421
|
+
children: [/* @__PURE__ */ E(S, {
|
|
1420
1422
|
id: `${s}-slider`,
|
|
1421
1423
|
"aria-label": a(o.adjustVariable, { label: e.label }),
|
|
1422
1424
|
value: i,
|
|
@@ -1424,15 +1426,15 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1424
1426
|
max: e.control.max,
|
|
1425
1427
|
step: e.control.step,
|
|
1426
1428
|
onValueChange: (t) => r(at(t, e.control))
|
|
1427
|
-
}), /* @__PURE__ */
|
|
1429
|
+
}), /* @__PURE__ */ D(p, {
|
|
1428
1430
|
direction: "horizontal",
|
|
1429
1431
|
gap: "xs",
|
|
1430
1432
|
align: "center",
|
|
1431
1433
|
wrap: !1,
|
|
1432
|
-
children: [/* @__PURE__ */
|
|
1434
|
+
children: [/* @__PURE__ */ E(p, {
|
|
1433
1435
|
gap: "none",
|
|
1434
1436
|
className: "w-28 max-w-full shrink-0",
|
|
1435
|
-
children: /* @__PURE__ */
|
|
1437
|
+
children: /* @__PURE__ */ E(le, {
|
|
1436
1438
|
id: s,
|
|
1437
1439
|
"aria-label": e.label,
|
|
1438
1440
|
"aria-description": e.description,
|
|
@@ -1452,14 +1454,14 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1452
1454
|
}), l]
|
|
1453
1455
|
})]
|
|
1454
1456
|
});
|
|
1455
|
-
} else
|
|
1457
|
+
} else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(p, {
|
|
1456
1458
|
direction: "horizontal",
|
|
1457
1459
|
gap: "xs",
|
|
1458
1460
|
align: "start",
|
|
1459
1461
|
wrap: !1,
|
|
1460
|
-
children: [/* @__PURE__ */
|
|
1462
|
+
children: [/* @__PURE__ */ E(p, {
|
|
1461
1463
|
className: "min-w-0 flex-1",
|
|
1462
|
-
children: /* @__PURE__ */
|
|
1464
|
+
children: /* @__PURE__ */ E(se, {
|
|
1463
1465
|
id: s,
|
|
1464
1466
|
"aria-label": e.label,
|
|
1465
1467
|
"aria-description": e.description,
|
|
@@ -1471,12 +1473,12 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1471
1473
|
className: "font-mono"
|
|
1472
1474
|
})
|
|
1473
1475
|
}), l]
|
|
1474
|
-
}) : /* @__PURE__ */
|
|
1476
|
+
}) : /* @__PURE__ */ D(p, {
|
|
1475
1477
|
direction: "horizontal",
|
|
1476
1478
|
gap: "xs",
|
|
1477
1479
|
align: "center",
|
|
1478
1480
|
wrap: !1,
|
|
1479
|
-
children: [/* @__PURE__ */
|
|
1481
|
+
children: [/* @__PURE__ */ E(v, {
|
|
1480
1482
|
id: s,
|
|
1481
1483
|
"aria-label": e.label,
|
|
1482
1484
|
"aria-description": e.description,
|
|
@@ -1486,22 +1488,22 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1486
1488
|
className: "min-w-0 flex-1 font-mono"
|
|
1487
1489
|
}), l]
|
|
1488
1490
|
});
|
|
1489
|
-
return /* @__PURE__ */
|
|
1490
|
-
label: /* @__PURE__ */
|
|
1491
|
-
render: /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ E(y, {
|
|
1492
|
+
label: /* @__PURE__ */ D(p, {
|
|
1493
|
+
render: /* @__PURE__ */ E("span", {}),
|
|
1492
1494
|
direction: "horizontal",
|
|
1493
1495
|
gap: "sm",
|
|
1494
1496
|
align: "baseline",
|
|
1495
1497
|
justify: "between",
|
|
1496
1498
|
wrap: !0,
|
|
1497
1499
|
className: "min-w-0 flex-1",
|
|
1498
|
-
children: [/* @__PURE__ */
|
|
1500
|
+
children: [/* @__PURE__ */ E(u, {
|
|
1499
1501
|
tag: "span",
|
|
1500
1502
|
size: "inherit",
|
|
1501
1503
|
weight: "medium",
|
|
1502
1504
|
className: "min-w-0",
|
|
1503
1505
|
children: e.label
|
|
1504
|
-
}), /* @__PURE__ */
|
|
1506
|
+
}), /* @__PURE__ */ E(ae, {
|
|
1505
1507
|
size: "xs",
|
|
1506
1508
|
type: "secondary",
|
|
1507
1509
|
weight: "regular",
|
|
@@ -1511,52 +1513,51 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
|
|
|
1511
1513
|
}),
|
|
1512
1514
|
htmlFor: s,
|
|
1513
1515
|
className: "theme-tweaker--field min-w-0 border-t border-border/60 py-row-y first:border-t-0",
|
|
1514
|
-
children:
|
|
1516
|
+
children: f
|
|
1515
1517
|
});
|
|
1516
1518
|
}
|
|
1517
1519
|
function lt({ strings: e }) {
|
|
1518
|
-
return /* @__PURE__ */
|
|
1520
|
+
return /* @__PURE__ */ E(ne, {
|
|
1519
1521
|
title: e.previewTitle,
|
|
1520
1522
|
description: e.previewDescription,
|
|
1521
|
-
icon: /* @__PURE__ */ w(D, {}),
|
|
1522
|
-
headerDivider: !0,
|
|
1523
1523
|
className: "theme-tweaker--preview-card",
|
|
1524
|
-
children: /* @__PURE__ */
|
|
1524
|
+
children: /* @__PURE__ */ D(p, {
|
|
1525
1525
|
gap: "lg",
|
|
1526
1526
|
children: [
|
|
1527
|
-
/* @__PURE__ */
|
|
1527
|
+
/* @__PURE__ */ D(p, {
|
|
1528
1528
|
direction: "horizontal",
|
|
1529
1529
|
gap: "sm",
|
|
1530
1530
|
wrap: !0,
|
|
1531
1531
|
children: [
|
|
1532
|
-
/* @__PURE__ */
|
|
1532
|
+
/* @__PURE__ */ E(_, {
|
|
1533
1533
|
tone: "success",
|
|
1534
1534
|
children: e.previewSuccess
|
|
1535
1535
|
}),
|
|
1536
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ E(_, {
|
|
1537
1537
|
tone: "warning",
|
|
1538
1538
|
children: e.previewWarning
|
|
1539
1539
|
}),
|
|
1540
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ E(_, {
|
|
1541
1541
|
tone: "secondary",
|
|
1542
1542
|
children: e.previewContract
|
|
1543
1543
|
})
|
|
1544
1544
|
]
|
|
1545
1545
|
}),
|
|
1546
|
-
/* @__PURE__ */
|
|
1546
|
+
/* @__PURE__ */ E(ue, {
|
|
1547
1547
|
variant: "muted",
|
|
1548
1548
|
padding: "default",
|
|
1549
|
-
media: /* @__PURE__ */
|
|
1549
|
+
media: /* @__PURE__ */ E(we, {}),
|
|
1550
1550
|
mediaVariant: "icon",
|
|
1551
1551
|
title: e.previewItemTitle,
|
|
1552
1552
|
description: e.previewItemDescription,
|
|
1553
|
-
trailing: /* @__PURE__ */
|
|
1553
|
+
trailing: /* @__PURE__ */ E(ve, { className: "size-icon text-success" })
|
|
1554
1554
|
}),
|
|
1555
|
-
/* @__PURE__ */
|
|
1555
|
+
/* @__PURE__ */ E(y, {
|
|
1556
1556
|
label: e.previewFieldLabel,
|
|
1557
|
-
children: /* @__PURE__ */
|
|
1557
|
+
children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
|
|
1558
1558
|
}),
|
|
1559
|
-
/* @__PURE__ */
|
|
1559
|
+
/* @__PURE__ */ E(c, {
|
|
1560
|
+
tone: "primary",
|
|
1560
1561
|
type: "button",
|
|
1561
1562
|
children: e.previewAction
|
|
1562
1563
|
})
|
|
@@ -1571,53 +1572,53 @@ function ut(e, t, n) {
|
|
|
1571
1572
|
[r]: i
|
|
1572
1573
|
};
|
|
1573
1574
|
}
|
|
1574
|
-
var dt =
|
|
1575
|
-
let O = o(
|
|
1576
|
-
|
|
1575
|
+
var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Je, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: ae, onConfigChange: se, providerFileName: x = "admin-ui.config.ts", showIntro: ce = !0, selectors: le, onExport: ue, onCopy: C, onReset: he, onError: ve, actionsSlot: ye, strings: be, className: xe, ...Se }, we) {
|
|
1576
|
+
let O = o(Xe, be), [De, Oe] = T(() => j(t)), k = w(() => e ? j(e) : De, [De, e]), [Ae, je] = T(() => I(ae)), Me = w(() => I(g ?? Ae), [g, Ae]), [A, Ne] = T("colors"), [M, N] = T(""), [P, F] = T(!0), [L, Pe] = T(16), [Ie, Be] = T(1.2), [He, B] = T(.8), [V, H] = T("idle"), U = re(), [Ue, We] = T(!1), W = _e(null);
|
|
1577
|
+
ge(we, () => W.current), Ve({
|
|
1577
1578
|
apply: m,
|
|
1578
1579
|
manageModeClass: ee,
|
|
1579
|
-
selfRef:
|
|
1580
|
-
target:
|
|
1580
|
+
selfRef: W,
|
|
1581
|
+
target: d,
|
|
1581
1582
|
theme: k
|
|
1582
1583
|
});
|
|
1583
|
-
let [
|
|
1584
|
-
|
|
1584
|
+
let [G, Ge] = T(() => j(k)), [Ke, qe] = T({});
|
|
1585
|
+
me(() => {
|
|
1585
1586
|
if (typeof window > "u") return;
|
|
1586
1587
|
let e = window.setTimeout(() => {
|
|
1587
|
-
let e = ot(
|
|
1588
|
+
let e = ot(d, W.current);
|
|
1588
1589
|
if (!e) return;
|
|
1589
1590
|
let t = window.getComputedStyle(e);
|
|
1590
|
-
|
|
1591
|
+
qe(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ge(st(k, i));
|
|
1591
1592
|
}, 0);
|
|
1592
1593
|
return () => window.clearTimeout(e);
|
|
1593
1594
|
}, [
|
|
1594
1595
|
m,
|
|
1595
1596
|
i,
|
|
1596
|
-
|
|
1597
|
+
d,
|
|
1597
1598
|
k
|
|
1598
1599
|
]);
|
|
1599
|
-
let { artifact:
|
|
1600
|
+
let { artifact: K, error: q } = w(() => {
|
|
1600
1601
|
try {
|
|
1601
|
-
let e =
|
|
1602
|
+
let e = j({
|
|
1602
1603
|
mode: k.mode,
|
|
1603
1604
|
shared: {
|
|
1604
|
-
...
|
|
1605
|
+
...G.shared,
|
|
1605
1606
|
...k.shared
|
|
1606
1607
|
},
|
|
1607
1608
|
light: {
|
|
1608
|
-
...
|
|
1609
|
+
...G.light,
|
|
1609
1610
|
...k.light
|
|
1610
1611
|
},
|
|
1611
1612
|
dark: {
|
|
1612
|
-
...
|
|
1613
|
+
...G.dark,
|
|
1613
1614
|
...k.dark
|
|
1614
1615
|
}
|
|
1615
1616
|
});
|
|
1616
1617
|
return {
|
|
1617
|
-
artifact: Le(k,
|
|
1618
|
+
artifact: Le(k, te, { selectors: le }, {
|
|
1618
1619
|
resolvedTheme: e,
|
|
1619
|
-
providerConfig:
|
|
1620
|
-
providerFileName:
|
|
1620
|
+
providerConfig: Me,
|
|
1621
|
+
providerFileName: x
|
|
1621
1622
|
}),
|
|
1622
1623
|
error: null
|
|
1623
1624
|
};
|
|
@@ -1628,23 +1629,23 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1628
1629
|
};
|
|
1629
1630
|
}
|
|
1630
1631
|
}, [
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1632
|
+
te,
|
|
1633
|
+
Me,
|
|
1634
|
+
x,
|
|
1635
|
+
G,
|
|
1636
|
+
le,
|
|
1636
1637
|
k
|
|
1637
|
-
]),
|
|
1638
|
+
]), J = K?.cssText ?? `/* ${O.invalidTheme} */\n`, Y = w(() => Fe(k), [k]), X = M.trim().toLowerCase(), Z = w(() => i.filter((e) => !X && e.group !== A ? !1 : !X || [
|
|
1638
1639
|
e.name,
|
|
1639
1640
|
e.label,
|
|
1640
1641
|
e.description
|
|
1641
|
-
].filter(Boolean).some((e) => e?.toLowerCase().includes(
|
|
1642
|
+
].filter(Boolean).some((e) => e?.toLowerCase().includes(X))), [
|
|
1642
1643
|
i,
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
]), Q =
|
|
1644
|
+
A,
|
|
1645
|
+
X
|
|
1646
|
+
]), Q = w(() => {
|
|
1646
1647
|
let e = /* @__PURE__ */ new Map();
|
|
1647
|
-
for (let t of
|
|
1648
|
+
for (let t of Z) {
|
|
1648
1649
|
let n = `${t.group}:${t.section}`, r = e.get(n);
|
|
1649
1650
|
r ? r.fields.push(t) : e.set(n, {
|
|
1650
1651
|
group: t.group,
|
|
@@ -1653,11 +1654,11 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1653
1654
|
});
|
|
1654
1655
|
}
|
|
1655
1656
|
return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
|
|
1656
|
-
}, [
|
|
1657
|
-
e === void 0 &&
|
|
1658
|
-
},
|
|
1659
|
-
|
|
1660
|
-
},
|
|
1657
|
+
}, [Z]), $ = (t) => {
|
|
1658
|
+
e === void 0 && Oe(t), n?.(t), H("idle");
|
|
1659
|
+
}, Qe = (e) => {
|
|
1660
|
+
g === void 0 && je(e), se?.(e), H("idle");
|
|
1661
|
+
}, it = (e) => {
|
|
1661
1662
|
$({
|
|
1662
1663
|
...k,
|
|
1663
1664
|
[k.mode]: {
|
|
@@ -1665,7 +1666,7 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1665
1666
|
...e
|
|
1666
1667
|
}
|
|
1667
1668
|
});
|
|
1668
|
-
},
|
|
1669
|
+
}, at = (e) => {
|
|
1669
1670
|
$({
|
|
1670
1671
|
...k,
|
|
1671
1672
|
shared: {
|
|
@@ -1673,229 +1674,229 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1673
1674
|
...e
|
|
1674
1675
|
}
|
|
1675
1676
|
});
|
|
1676
|
-
},
|
|
1677
|
+
}, dt = (e) => {
|
|
1677
1678
|
e !== k.mode && ($({
|
|
1678
1679
|
...k,
|
|
1679
1680
|
mode: e
|
|
1680
1681
|
}), r?.(e));
|
|
1681
|
-
},
|
|
1682
|
+
}, ft = async () => {
|
|
1682
1683
|
try {
|
|
1683
|
-
if (
|
|
1684
|
-
if (
|
|
1685
|
-
|
|
1684
|
+
if (q) throw q;
|
|
1685
|
+
if (We(!0), !K) throw Error(O.invalidTheme);
|
|
1686
|
+
ue ? await ue(K) : Re(K), H("exported");
|
|
1686
1687
|
} catch (e) {
|
|
1687
|
-
|
|
1688
|
+
ve?.(e);
|
|
1688
1689
|
} finally {
|
|
1689
|
-
|
|
1690
|
+
We(!1);
|
|
1690
1691
|
}
|
|
1691
|
-
},
|
|
1692
|
+
}, pt = async (e) => {
|
|
1692
1693
|
try {
|
|
1693
|
-
if (
|
|
1694
|
+
if (C) await C(e);
|
|
1694
1695
|
else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
|
|
1695
1696
|
else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
|
|
1696
1697
|
H("copied");
|
|
1697
1698
|
} catch (e) {
|
|
1698
|
-
|
|
1699
|
+
ve?.(e);
|
|
1699
1700
|
}
|
|
1700
|
-
},
|
|
1701
|
+
}, mt = () => {
|
|
1701
1702
|
try {
|
|
1702
|
-
if (!
|
|
1703
|
+
if (!K) throw q ?? Error(O.invalidTheme);
|
|
1703
1704
|
ze({
|
|
1704
|
-
fileName:
|
|
1705
|
-
text:
|
|
1705
|
+
fileName: K.providerFileName,
|
|
1706
|
+
text: K.providerConfigText,
|
|
1706
1707
|
mimeType: "text/typescript;charset=utf-8"
|
|
1707
1708
|
}), H("exported");
|
|
1708
1709
|
} catch (e) {
|
|
1709
|
-
|
|
1710
|
+
ve?.(e);
|
|
1710
1711
|
}
|
|
1711
|
-
},
|
|
1712
|
-
let e = k, t =
|
|
1713
|
-
$(t),
|
|
1714
|
-
},
|
|
1712
|
+
}, ht = () => {
|
|
1713
|
+
let e = k, t = j({ mode: k.mode });
|
|
1714
|
+
$(t), he?.(e), H("idle");
|
|
1715
|
+
}, gt = q ? O.invalidTheme : V === "copied" ? O.copiedStatus : V === "exported" ? O.exportedStatus : null, _t = A === "colors" ? /* @__PURE__ */ E(b, {
|
|
1715
1716
|
className: "theme-tweaker--recipe",
|
|
1716
1717
|
label: O.autoPalette,
|
|
1717
1718
|
description: O.autoPaletteDescription,
|
|
1718
|
-
value:
|
|
1719
|
-
onValueChange:
|
|
1720
|
-
}) :
|
|
1719
|
+
value: P,
|
|
1720
|
+
onValueChange: F
|
|
1721
|
+
}) : A === "typography" ? /* @__PURE__ */ E(ne, {
|
|
1721
1722
|
title: O.typeRecipeTitle,
|
|
1722
1723
|
description: O.typeRecipeDescription,
|
|
1723
1724
|
surface: "flat",
|
|
1724
1725
|
padding: "none",
|
|
1725
1726
|
className: "theme-tweaker--recipe",
|
|
1726
|
-
children: /* @__PURE__ */
|
|
1727
|
+
children: /* @__PURE__ */ D(f, {
|
|
1727
1728
|
columns: 1,
|
|
1728
1729
|
gap: "md",
|
|
1729
1730
|
className: "@2xl/theme-tweaker-controls:grid-cols-2",
|
|
1730
|
-
children: [/* @__PURE__ */
|
|
1731
|
+
children: [/* @__PURE__ */ E(y, {
|
|
1731
1732
|
label: O.baseTypeSize,
|
|
1732
|
-
children: /* @__PURE__ */
|
|
1733
|
+
children: /* @__PURE__ */ E(S, {
|
|
1733
1734
|
"aria-label": O.baseTypeSize,
|
|
1734
|
-
value:
|
|
1735
|
+
value: L,
|
|
1735
1736
|
min: 14,
|
|
1736
1737
|
max: 20,
|
|
1737
1738
|
step: 1,
|
|
1738
1739
|
onValueChange: (e) => {
|
|
1739
|
-
|
|
1740
|
+
Pe(e), at($e({
|
|
1740
1741
|
baseSize: e,
|
|
1741
|
-
ratio:
|
|
1742
|
+
ratio: Ie
|
|
1742
1743
|
}));
|
|
1743
1744
|
}
|
|
1744
1745
|
})
|
|
1745
|
-
}), /* @__PURE__ */
|
|
1746
|
+
}), /* @__PURE__ */ E(y, {
|
|
1746
1747
|
label: O.typeRatio,
|
|
1747
|
-
children: /* @__PURE__ */
|
|
1748
|
+
children: /* @__PURE__ */ E(S, {
|
|
1748
1749
|
"aria-label": O.typeRatio,
|
|
1749
|
-
value:
|
|
1750
|
+
value: Ie,
|
|
1750
1751
|
min: 1.125,
|
|
1751
1752
|
max: 1.333,
|
|
1752
1753
|
step: .01,
|
|
1753
1754
|
onValueChange: (e) => {
|
|
1754
|
-
|
|
1755
|
-
baseSize:
|
|
1755
|
+
Be(e), at($e({
|
|
1756
|
+
baseSize: L,
|
|
1756
1757
|
ratio: e
|
|
1757
1758
|
}));
|
|
1758
1759
|
}
|
|
1759
1760
|
})
|
|
1760
1761
|
})]
|
|
1761
1762
|
})
|
|
1762
|
-
}) :
|
|
1763
|
+
}) : A === "shape" ? /* @__PURE__ */ E(ne, {
|
|
1763
1764
|
title: O.elevationRecipeTitle,
|
|
1764
1765
|
description: O.elevationRecipeDescription,
|
|
1765
1766
|
surface: "flat",
|
|
1766
1767
|
padding: "none",
|
|
1767
1768
|
className: "theme-tweaker--recipe",
|
|
1768
|
-
children: /* @__PURE__ */
|
|
1769
|
+
children: /* @__PURE__ */ E(y, {
|
|
1769
1770
|
label: O.elevationIntensity,
|
|
1770
|
-
children: /* @__PURE__ */
|
|
1771
|
+
children: /* @__PURE__ */ E(S, {
|
|
1771
1772
|
"aria-label": O.elevationIntensity,
|
|
1772
1773
|
value: He,
|
|
1773
1774
|
min: 0,
|
|
1774
1775
|
max: 1,
|
|
1775
1776
|
step: .05,
|
|
1776
1777
|
onValueChange: (e) => {
|
|
1777
|
-
|
|
1778
|
+
B(e), it(et({ intensity: e }));
|
|
1778
1779
|
}
|
|
1779
1780
|
})
|
|
1780
1781
|
})
|
|
1781
|
-
}) : null,
|
|
1782
|
-
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout",
|
|
1782
|
+
}) : null, vt = /* @__PURE__ */ D("div", {
|
|
1783
|
+
className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", h !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
|
|
1783
1784
|
children: [
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
+
/* @__PURE__ */ D(p, {
|
|
1785
1786
|
gap: "lg",
|
|
1786
1787
|
className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
|
|
1787
|
-
children: [/* @__PURE__ */
|
|
1788
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1788
1789
|
gap: "lg",
|
|
1789
1790
|
className: "theme-tweaker--header shrink-0",
|
|
1790
1791
|
children: [
|
|
1791
|
-
|
|
1792
|
+
ce ? /* @__PURE__ */ D(p, {
|
|
1792
1793
|
gap: "normal",
|
|
1793
1794
|
className: "theme-tweaker--intro",
|
|
1794
|
-
children: [/* @__PURE__ */
|
|
1795
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1795
1796
|
direction: "horizontal",
|
|
1796
1797
|
gap: "sm",
|
|
1797
1798
|
align: "center",
|
|
1798
1799
|
wrap: !0,
|
|
1799
|
-
children: [/* @__PURE__ */
|
|
1800
|
+
children: [/* @__PURE__ */ E(l, {
|
|
1800
1801
|
tag: "h2",
|
|
1801
1802
|
className: "theme-tweaker--title",
|
|
1802
1803
|
children: O.title
|
|
1803
|
-
}), /* @__PURE__ */
|
|
1804
|
+
}), /* @__PURE__ */ E(_, {
|
|
1804
1805
|
tone: "secondary",
|
|
1805
|
-
children: a(O.changedCount, { count:
|
|
1806
|
+
children: a(O.changedCount, { count: Y })
|
|
1806
1807
|
})]
|
|
1807
|
-
}), /* @__PURE__ */
|
|
1808
|
+
}), /* @__PURE__ */ E(u, {
|
|
1808
1809
|
type: "secondary",
|
|
1809
1810
|
className: "theme-tweaker--description",
|
|
1810
1811
|
children: O.description
|
|
1811
1812
|
})]
|
|
1812
1813
|
}) : null,
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ D(p, {
|
|
1814
1815
|
direction: "horizontal",
|
|
1815
1816
|
justify: "between",
|
|
1816
1817
|
align: "center",
|
|
1817
1818
|
wrap: !0,
|
|
1818
1819
|
gap: "sm",
|
|
1819
1820
|
className: "theme-tweaker--toolbar",
|
|
1820
|
-
children: [/* @__PURE__ */
|
|
1821
|
+
children: [/* @__PURE__ */ E(p, {
|
|
1821
1822
|
direction: "horizontal",
|
|
1822
1823
|
gap: "sm",
|
|
1823
1824
|
align: "center",
|
|
1824
1825
|
wrap: !0,
|
|
1825
|
-
children: /* @__PURE__ */
|
|
1826
|
+
children: /* @__PURE__ */ E(pe, {
|
|
1826
1827
|
value: k.mode,
|
|
1827
|
-
onValueChange: (e) =>
|
|
1828
|
-
children: /* @__PURE__ */
|
|
1828
|
+
onValueChange: (e) => dt(e),
|
|
1829
|
+
children: /* @__PURE__ */ D(fe, { children: [/* @__PURE__ */ D(de, {
|
|
1829
1830
|
value: "light",
|
|
1830
|
-
children: [/* @__PURE__ */
|
|
1831
|
-
}), /* @__PURE__ */
|
|
1831
|
+
children: [/* @__PURE__ */ E(ke, { className: "size-icon-sm" }), O.lightMode]
|
|
1832
|
+
}), /* @__PURE__ */ D(de, {
|
|
1832
1833
|
value: "dark",
|
|
1833
|
-
children: [/* @__PURE__ */
|
|
1834
|
+
children: [/* @__PURE__ */ E(Ce, { className: "size-icon-sm" }), O.darkMode]
|
|
1834
1835
|
})] })
|
|
1835
1836
|
})
|
|
1836
|
-
}), /* @__PURE__ */
|
|
1837
|
+
}), /* @__PURE__ */ D(p, {
|
|
1837
1838
|
direction: "horizontal",
|
|
1838
1839
|
gap: "xs",
|
|
1839
1840
|
align: "center",
|
|
1840
1841
|
justify: "end",
|
|
1841
1842
|
wrap: !1,
|
|
1842
1843
|
className: "theme-tweaker--actions",
|
|
1843
|
-
children: [/* @__PURE__ */
|
|
1844
|
+
children: [/* @__PURE__ */ E(c, {
|
|
1845
|
+
tone: "primary",
|
|
1844
1846
|
type: "button",
|
|
1845
|
-
|
|
1846
|
-
disabled: !!J,
|
|
1847
|
+
disabled: !!q,
|
|
1847
1848
|
onClick: () => {
|
|
1848
|
-
H("idle"),
|
|
1849
|
+
H("idle"), U.show();
|
|
1849
1850
|
},
|
|
1850
1851
|
children: O.export
|
|
1851
|
-
}),
|
|
1852
|
+
}), ye]
|
|
1852
1853
|
})]
|
|
1853
1854
|
}),
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
label: /* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ E(y, {
|
|
1856
|
+
label: /* @__PURE__ */ E(u, {
|
|
1856
1857
|
tag: "span",
|
|
1857
1858
|
size: "inherit",
|
|
1858
1859
|
className: "sr-only",
|
|
1859
1860
|
children: O.searchLabel
|
|
1860
1861
|
}),
|
|
1861
1862
|
className: "theme-tweaker--search",
|
|
1862
|
-
children: /* @__PURE__ */
|
|
1863
|
-
value:
|
|
1864
|
-
onChange: (e) =>
|
|
1863
|
+
children: /* @__PURE__ */ E(v, {
|
|
1864
|
+
value: M,
|
|
1865
|
+
onChange: (e) => N(e.target.value),
|
|
1865
1866
|
placeholder: O.searchPlaceholder,
|
|
1866
1867
|
startIcon: Ee,
|
|
1867
1868
|
clearable: !0,
|
|
1868
|
-
onClear: () =>
|
|
1869
|
+
onClear: () => N(""),
|
|
1869
1870
|
"aria-description": O.searchHint
|
|
1870
1871
|
})
|
|
1871
1872
|
})
|
|
1872
1873
|
]
|
|
1873
|
-
}), /* @__PURE__ */
|
|
1874
|
+
}), /* @__PURE__ */ D(p, {
|
|
1874
1875
|
gap: "lg",
|
|
1875
1876
|
className: "theme-tweaker--workspace min-h-0",
|
|
1876
|
-
children: [/* @__PURE__ */
|
|
1877
|
+
children: [/* @__PURE__ */ E("nav", {
|
|
1877
1878
|
"aria-label": O.groupNavigationLabel,
|
|
1878
1879
|
className: "theme-tweaker--navigation min-w-0",
|
|
1879
|
-
children: /* @__PURE__ */
|
|
1880
|
-
value:
|
|
1880
|
+
children: /* @__PURE__ */ E(pe, {
|
|
1881
|
+
value: A,
|
|
1881
1882
|
onValueChange: (e) => {
|
|
1882
|
-
|
|
1883
|
+
N(""), Ne(e);
|
|
1883
1884
|
},
|
|
1884
1885
|
className: "w-full",
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1886
|
+
children: /* @__PURE__ */ E(fe, {
|
|
1886
1887
|
scrollable: !0,
|
|
1887
1888
|
scrollStrings: {
|
|
1888
1889
|
previous: O.previousGroup,
|
|
1889
1890
|
next: O.nextGroup
|
|
1890
1891
|
},
|
|
1891
1892
|
className: "theme-tweaker--group-list",
|
|
1892
|
-
children:
|
|
1893
|
-
let t =
|
|
1894
|
-
return /* @__PURE__ */
|
|
1893
|
+
children: tt.map((e) => {
|
|
1894
|
+
let t = nt[e];
|
|
1895
|
+
return /* @__PURE__ */ D(de, {
|
|
1895
1896
|
value: e,
|
|
1896
|
-
onClick: () =>
|
|
1897
|
+
onClick: () => N(""),
|
|
1897
1898
|
className: "theme-tweaker--group-trigger",
|
|
1898
|
-
children: [/* @__PURE__ */
|
|
1899
|
+
children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(u, {
|
|
1899
1900
|
tag: "span",
|
|
1900
1901
|
size: "inherit",
|
|
1901
1902
|
weight: "medium",
|
|
@@ -1906,46 +1907,46 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1906
1907
|
})
|
|
1907
1908
|
})
|
|
1908
1909
|
})
|
|
1909
|
-
}), /* @__PURE__ */
|
|
1910
|
+
}), /* @__PURE__ */ D(p, {
|
|
1910
1911
|
gap: "lg",
|
|
1911
1912
|
className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
|
|
1912
1913
|
children: [
|
|
1913
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ D(p, {
|
|
1914
1915
|
gap: "normal",
|
|
1915
1916
|
className: "theme-tweaker--editor-heading",
|
|
1916
|
-
children: [/* @__PURE__ */
|
|
1917
|
+
children: [/* @__PURE__ */ D(p, {
|
|
1917
1918
|
direction: "horizontal",
|
|
1918
1919
|
gap: "sm",
|
|
1919
1920
|
align: "center",
|
|
1920
1921
|
wrap: !0,
|
|
1921
1922
|
children: [
|
|
1922
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ E(l, {
|
|
1923
1924
|
tag: "h3",
|
|
1924
|
-
children:
|
|
1925
|
+
children: X ? O.allGroups : O.groups[A]
|
|
1925
1926
|
}),
|
|
1926
|
-
|
|
1927
|
+
ce ? null : /* @__PURE__ */ E(_, {
|
|
1927
1928
|
tone: "secondary",
|
|
1928
|
-
children: a(O.changedCount, { count:
|
|
1929
|
+
children: a(O.changedCount, { count: Y })
|
|
1929
1930
|
}),
|
|
1930
|
-
|
|
1931
|
+
X ? /* @__PURE__ */ E(_, {
|
|
1931
1932
|
tone: "secondary",
|
|
1932
1933
|
role: "status",
|
|
1933
1934
|
"aria-live": "polite",
|
|
1934
|
-
children: a(O.searchResults, { count:
|
|
1935
|
+
children: a(O.searchResults, { count: Z.length })
|
|
1935
1936
|
}) : null
|
|
1936
1937
|
]
|
|
1937
|
-
}), /* @__PURE__ */
|
|
1938
|
+
}), /* @__PURE__ */ E(u, {
|
|
1938
1939
|
size: "xs",
|
|
1939
1940
|
type: "secondary",
|
|
1940
|
-
children:
|
|
1941
|
+
children: X ? O.searchHint : O.groupDescriptions[A]
|
|
1941
1942
|
})]
|
|
1942
1943
|
}),
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
config:
|
|
1946
|
-
onChange:
|
|
1944
|
+
X ? null : _t,
|
|
1945
|
+
A === "defaults" && !X ? /* @__PURE__ */ E(Ye, {
|
|
1946
|
+
config: Me,
|
|
1947
|
+
onChange: Qe,
|
|
1947
1948
|
strings: O.providerSettings
|
|
1948
|
-
}) : Q.length > 0 ? /* @__PURE__ */
|
|
1949
|
+
}) : Q.length > 0 ? /* @__PURE__ */ E(oe, {
|
|
1949
1950
|
multiple: !0,
|
|
1950
1951
|
defaultValue: [`${Q[0].group}:${Q[0].section}`],
|
|
1951
1952
|
variant: "bordered",
|
|
@@ -1953,7 +1954,7 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1953
1954
|
className: "theme-tweaker--sections shrink-0",
|
|
1954
1955
|
itemClassName: "theme-tweaker--section",
|
|
1955
1956
|
items: Q.map((e) => {
|
|
1956
|
-
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? O.mixedScope : t.has("shared") ? O.sharedScope : k.mode === "light" ? O.lightMode : O.darkMode, r =
|
|
1957
|
+
let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? O.mixedScope : t.has("shared") ? O.sharedScope : k.mode === "light" ? O.lightMode : O.darkMode, r = X ? a(O.groupSectionLabel, {
|
|
1957
1958
|
group: O.groups[e.group],
|
|
1958
1959
|
section: O.sections[e.section]
|
|
1959
1960
|
}) : O.sections[e.section];
|
|
@@ -1961,23 +1962,23 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1961
1962
|
value: `${e.group}:${e.section}`,
|
|
1962
1963
|
title: r,
|
|
1963
1964
|
description: a(O.variableCount, { count: e.fields.length }),
|
|
1964
|
-
badge: /* @__PURE__ */
|
|
1965
|
+
badge: /* @__PURE__ */ E(_, {
|
|
1965
1966
|
tone: "secondary",
|
|
1966
1967
|
children: n
|
|
1967
1968
|
}),
|
|
1968
|
-
content: /* @__PURE__ */
|
|
1969
|
+
content: /* @__PURE__ */ E(p, {
|
|
1969
1970
|
gap: "none",
|
|
1970
1971
|
className: "theme-tweaker--fields",
|
|
1971
1972
|
children: e.fields.map((e) => {
|
|
1972
1973
|
let t = e.scope === "shared" ? "shared" : k.mode, n = k[t][e.name] ?? "";
|
|
1973
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ E(ct, {
|
|
1974
1975
|
field: e,
|
|
1975
1976
|
value: n,
|
|
1976
|
-
effectiveValue:
|
|
1977
|
+
effectiveValue: Ke[e.name] ?? "",
|
|
1977
1978
|
strings: O,
|
|
1978
1979
|
onChange: (t) => {
|
|
1979
|
-
if (e.name === "--primary" &&
|
|
1980
|
-
|
|
1980
|
+
if (e.name === "--primary" && P && t.trim()) {
|
|
1981
|
+
it(Ze({
|
|
1981
1982
|
primary: t,
|
|
1982
1983
|
mode: k.mode
|
|
1983
1984
|
}));
|
|
@@ -1991,7 +1992,7 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
1991
1992
|
})
|
|
1992
1993
|
};
|
|
1993
1994
|
})
|
|
1994
|
-
}, `${
|
|
1995
|
+
}, `${A}:${X}`) : /* @__PURE__ */ E(u, {
|
|
1995
1996
|
type: "secondary",
|
|
1996
1997
|
className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
|
|
1997
1998
|
children: O.emptySearch
|
|
@@ -2000,12 +2001,12 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
2000
2001
|
})]
|
|
2001
2002
|
})]
|
|
2002
2003
|
}),
|
|
2003
|
-
|
|
2004
|
+
h === !1 ? null : /* @__PURE__ */ E(p, {
|
|
2004
2005
|
className: "theme-tweaker--preview min-w-0 self-start",
|
|
2005
|
-
children:
|
|
2006
|
+
children: h ?? /* @__PURE__ */ E(lt, { strings: O })
|
|
2006
2007
|
}),
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
...
|
|
2008
|
+
/* @__PURE__ */ E(ie, {
|
|
2009
|
+
...U.overlayProps,
|
|
2009
2010
|
title: O.exportDialogTitle,
|
|
2010
2011
|
description: O.exportDialogDescription,
|
|
2011
2012
|
showCloseButton: !1,
|
|
@@ -2013,77 +2014,76 @@ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
|
|
|
2013
2014
|
showConfirm: !1,
|
|
2014
2015
|
surfaceStyle: R(k),
|
|
2015
2016
|
className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
|
|
2016
|
-
footer: /* @__PURE__ */
|
|
2017
|
+
footer: /* @__PURE__ */ D(p, {
|
|
2017
2018
|
direction: "horizontal",
|
|
2018
2019
|
align: "center",
|
|
2019
2020
|
justify: "between",
|
|
2020
2021
|
className: "theme-tweaker--export-footer w-full",
|
|
2021
|
-
children: [/* @__PURE__ */
|
|
2022
|
+
children: [/* @__PURE__ */ E(c, {
|
|
2022
2023
|
type: "button",
|
|
2023
2024
|
tone: "secondary",
|
|
2024
2025
|
buttonStyle: "ghost",
|
|
2025
2026
|
icon: Te,
|
|
2026
|
-
disabled:
|
|
2027
|
-
onClick:
|
|
2027
|
+
disabled: Y === 0,
|
|
2028
|
+
onClick: ht,
|
|
2028
2029
|
children: O.reset
|
|
2029
|
-
}), /* @__PURE__ */
|
|
2030
|
-
|
|
2031
|
-
buttonStyle: "outline",
|
|
2030
|
+
}), /* @__PURE__ */ E(c, {
|
|
2031
|
+
onClick: U.hide,
|
|
2032
2032
|
children: O.close
|
|
2033
|
-
})
|
|
2033
|
+
})]
|
|
2034
2034
|
}),
|
|
2035
|
-
children: /* @__PURE__ */
|
|
2035
|
+
children: /* @__PURE__ */ D(p, {
|
|
2036
2036
|
gap: "xl",
|
|
2037
2037
|
className: "theme-tweaker--export-body",
|
|
2038
2038
|
children: [
|
|
2039
|
-
/* @__PURE__ */
|
|
2039
|
+
/* @__PURE__ */ E(rt, {
|
|
2040
2040
|
title: O.cssOutputLabel,
|
|
2041
2041
|
description: O.cssOutputDescription,
|
|
2042
|
-
code:
|
|
2042
|
+
code: J,
|
|
2043
2043
|
copyLabel: O.copy,
|
|
2044
|
-
downloadLabel:
|
|
2045
|
-
downloading:
|
|
2046
|
-
onCopy: () => void
|
|
2047
|
-
onDownload: () => void
|
|
2044
|
+
downloadLabel: Ue ? O.exportPending : O.downloadCss,
|
|
2045
|
+
downloading: Ue,
|
|
2046
|
+
onCopy: () => void pt(J),
|
|
2047
|
+
onDownload: () => void ft()
|
|
2048
2048
|
}),
|
|
2049
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ E(rt, {
|
|
2050
2050
|
title: O.providerOutputLabel,
|
|
2051
2051
|
description: O.providerOutputDescription,
|
|
2052
|
-
code:
|
|
2052
|
+
code: K?.providerConfigText ?? "",
|
|
2053
2053
|
copyLabel: O.copyProvider,
|
|
2054
2054
|
downloadLabel: O.downloadProvider,
|
|
2055
|
-
onCopy: () => void
|
|
2056
|
-
onDownload:
|
|
2055
|
+
onCopy: () => void pt(K?.providerConfigText ?? ""),
|
|
2056
|
+
onDownload: mt
|
|
2057
2057
|
}),
|
|
2058
|
-
|
|
2058
|
+
gt ? /* @__PURE__ */ E(u, {
|
|
2059
2059
|
tag: "div",
|
|
2060
2060
|
size: "xs",
|
|
2061
|
-
type:
|
|
2061
|
+
type: q ? "error" : "secondary",
|
|
2062
2062
|
role: "status",
|
|
2063
2063
|
"aria-live": "polite",
|
|
2064
2064
|
className: "theme-tweaker--status",
|
|
2065
|
-
children:
|
|
2065
|
+
children: gt
|
|
2066
2066
|
}) : null
|
|
2067
2067
|
]
|
|
2068
2068
|
})
|
|
2069
2069
|
})
|
|
2070
2070
|
]
|
|
2071
2071
|
});
|
|
2072
|
-
return
|
|
2073
|
-
...
|
|
2074
|
-
ref:
|
|
2075
|
-
theme: m ? k :
|
|
2076
|
-
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground",
|
|
2077
|
-
children:
|
|
2078
|
-
}) : /* @__PURE__ */
|
|
2079
|
-
...
|
|
2080
|
-
ref:
|
|
2081
|
-
className: s("theme-tweaker--component @container/theme-tweaker",
|
|
2082
|
-
children:
|
|
2072
|
+
return d === "self" ? /* @__PURE__ */ E(z, {
|
|
2073
|
+
...Se,
|
|
2074
|
+
ref: W,
|
|
2075
|
+
theme: m ? k : j({ mode: k.mode }),
|
|
2076
|
+
className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", xe),
|
|
2077
|
+
children: vt
|
|
2078
|
+
}) : /* @__PURE__ */ E("div", {
|
|
2079
|
+
...Se,
|
|
2080
|
+
ref: W,
|
|
2081
|
+
className: s("theme-tweaker--component @container/theme-tweaker", xe),
|
|
2082
|
+
children: vt
|
|
2083
2083
|
});
|
|
2084
2084
|
});
|
|
2085
2085
|
dt.displayName = "ThemeTweaker";
|
|
2086
2086
|
//#endregion
|
|
2087
|
-
export {
|
|
2087
|
+
export { He as AdminUIThemeProvider, z as ThemeScope, dt as ThemeTweaker, R as adminUIThemeToStyle, Fe as countAdminUIThemeOverrides, j as createAdminUITheme, Ie as createScopedAdminUIThemeSelectors, I as createSerializableUIConfig, Le as createThemeTweakerExportArtifact, Ae as defaultAdminUIThemeSelectors, Y as defaultThemeProviderSettingsStrings, Je as defaultThemeTweakerFields, Xe as defaultThemeTweakerStrings, et as deriveAdminUIElevation, Ze as deriveAdminUIPalette, $e as deriveAdminUITypeScale, Re as downloadAdminUITheme, Pe as getActiveAdminUIThemeOverrides, Ne as isAdminUIThemeVariableName, F as serializeAdminUITheme, L as serializeUIProviderConfig };
|
|
2088
2088
|
|
|
2089
2089
|
//# sourceMappingURL=theme-tweaker.js.map
|