aeon-ui-engine 1.5.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +140 -0
- package/package.json +6 -3
- package/packages/core/dist/index.d.ts +116 -1
- package/packages/core/dist/index.js +202 -1
- package/packages/core/src/anatomy.ts +13 -1
- package/packages/core/src/index.ts +2 -0
- package/packages/core/src/list-window.ts +149 -0
- package/packages/core/src/sound.ts +154 -0
- package/packages/panda/package.json +6 -3
- package/packages/panda/panda.config.ts +12 -0
- package/packages/panda/src/recipes/clipboard.ts +40 -0
- package/packages/panda/src/recipes/composer.ts +4 -3
- package/packages/panda/src/recipes/index.ts +4 -0
- package/packages/panda/src/recipes/prose.ts +110 -0
- package/packages/panda/src/recipes/segment-group.ts +50 -0
- package/packages/panda/src/recipes/textarea.ts +60 -0
- package/packages/panda/styled-system/css/conditions.d.ts +7 -0
- package/packages/panda/styled-system/css/conditions.js +32 -0
- package/packages/panda/styled-system/css/css.d.ts +6 -6
- package/packages/panda/styled-system/css/css.js +63 -0
- package/packages/panda/styled-system/css/cva.d.ts +2 -3
- package/packages/panda/styled-system/css/cva.js +51 -0
- package/packages/panda/styled-system/css/cx.d.ts +5 -4
- package/packages/panda/styled-system/css/{cx.mjs → cx.js} +5 -4
- package/packages/panda/styled-system/css/first-that-works.d.ts +22 -0
- package/packages/panda/styled-system/css/first-that-works.js +1 -0
- package/packages/panda/styled-system/css/index.d.ts +6 -3
- package/packages/panda/styled-system/css/index.js +8 -0
- package/packages/panda/styled-system/css/keyframes.d.ts +5 -0
- package/packages/panda/styled-system/css/keyframes.js +8 -0
- package/packages/panda/styled-system/css/position-try.d.ts +5 -0
- package/packages/panda/styled-system/css/position-try.js +11 -0
- package/packages/panda/styled-system/css/sva.d.ts +1 -2
- package/packages/panda/styled-system/css/sva.js +49 -0
- package/packages/panda/styled-system/css/view-transition.d.ts +7 -0
- package/packages/panda/styled-system/css/view-transition.js +18 -0
- package/packages/panda/styled-system/helpers.d.ts +67 -0
- package/packages/panda/styled-system/helpers.js +624 -0
- package/packages/panda/styled-system/jsx/aspect-ratio.d.ts +3 -6
- package/packages/panda/styled-system/jsx/aspect-ratio.js +11 -0
- package/packages/panda/styled-system/jsx/bleed.d.ts +4 -7
- package/packages/panda/styled-system/jsx/bleed.js +11 -0
- package/packages/panda/styled-system/jsx/box.d.ts +4 -7
- package/packages/panda/styled-system/jsx/box.js +11 -0
- package/packages/panda/styled-system/jsx/center.d.ts +4 -7
- package/packages/panda/styled-system/jsx/center.js +11 -0
- package/packages/panda/styled-system/jsx/circle.d.ts +4 -7
- package/packages/panda/styled-system/jsx/circle.js +11 -0
- package/packages/panda/styled-system/jsx/container.d.ts +4 -7
- package/packages/panda/styled-system/jsx/container.js +11 -0
- package/packages/panda/styled-system/jsx/cq.d.ts +4 -7
- package/packages/panda/styled-system/jsx/cq.js +11 -0
- package/packages/panda/styled-system/jsx/create-recipe-context.d.ts +31 -0
- package/packages/panda/styled-system/jsx/create-recipe-context.js +38 -0
- package/packages/panda/styled-system/jsx/create-slot-recipe-context.d.ts +49 -0
- package/packages/panda/styled-system/jsx/create-slot-recipe-context.js +124 -0
- package/packages/panda/styled-system/jsx/divider.d.ts +4 -7
- package/packages/panda/styled-system/jsx/divider.js +11 -0
- package/packages/panda/styled-system/jsx/factory.d.ts +2 -2
- package/packages/panda/styled-system/jsx/factory.js +91 -0
- package/packages/panda/styled-system/jsx/flex.d.ts +4 -7
- package/packages/panda/styled-system/jsx/flex.js +11 -0
- package/packages/panda/styled-system/jsx/float.d.ts +4 -7
- package/packages/panda/styled-system/jsx/float.js +11 -0
- package/packages/panda/styled-system/jsx/grid-item.d.ts +4 -7
- package/packages/panda/styled-system/jsx/grid-item.js +11 -0
- package/packages/panda/styled-system/jsx/grid.d.ts +4 -7
- package/packages/panda/styled-system/jsx/grid.js +11 -0
- package/packages/panda/styled-system/jsx/helper.d.ts +34 -0
- package/packages/panda/styled-system/jsx/helper.js +92 -0
- package/packages/panda/styled-system/jsx/hstack.d.ts +4 -7
- package/packages/panda/styled-system/jsx/hstack.js +11 -0
- package/packages/panda/styled-system/jsx/index.d.ts +17 -17
- package/packages/panda/styled-system/jsx/index.js +24 -0
- package/packages/panda/styled-system/jsx/is-valid-prop.d.ts +5 -10
- package/packages/panda/styled-system/jsx/is-valid-prop.js +12 -0
- package/packages/panda/styled-system/jsx/link-overlay.d.ts +4 -7
- package/packages/panda/styled-system/jsx/link-overlay.js +11 -0
- package/packages/panda/styled-system/jsx/spacer.d.ts +4 -7
- package/packages/panda/styled-system/jsx/spacer.js +11 -0
- package/packages/panda/styled-system/jsx/square.d.ts +4 -7
- package/packages/panda/styled-system/jsx/square.js +11 -0
- package/packages/panda/styled-system/jsx/stack.d.ts +4 -7
- package/packages/panda/styled-system/jsx/stack.js +11 -0
- package/packages/panda/styled-system/jsx/visually-hidden.d.ts +4 -7
- package/packages/panda/styled-system/jsx/visually-hidden.js +11 -0
- package/packages/panda/styled-system/jsx/vstack.d.ts +4 -7
- package/packages/panda/styled-system/jsx/vstack.js +11 -0
- package/packages/panda/styled-system/jsx/wrap.d.ts +4 -7
- package/packages/panda/styled-system/jsx/wrap.js +11 -0
- package/packages/panda/styled-system/patterns/aspect-ratio.d.ts +8 -9
- package/packages/panda/styled-system/patterns/aspect-ratio.js +37 -0
- package/packages/panda/styled-system/patterns/bleed.d.ts +9 -10
- package/packages/panda/styled-system/patterns/bleed.js +30 -0
- package/packages/panda/styled-system/patterns/box.d.ts +8 -11
- package/packages/panda/styled-system/patterns/box.js +16 -0
- package/packages/panda/styled-system/patterns/center.d.ts +8 -9
- package/packages/panda/styled-system/patterns/center.js +22 -0
- package/packages/panda/styled-system/patterns/circle.d.ts +8 -9
- package/packages/panda/styled-system/patterns/circle.js +26 -0
- package/packages/panda/styled-system/patterns/container.d.ts +8 -11
- package/packages/panda/styled-system/patterns/container.js +26 -0
- package/packages/panda/styled-system/patterns/cq.d.ts +10 -10
- package/packages/panda/styled-system/patterns/cq.js +24 -0
- package/packages/panda/styled-system/patterns/divider.d.ts +11 -11
- package/packages/panda/styled-system/patterns/divider.js +31 -0
- package/packages/panda/styled-system/patterns/flex.d.ts +14 -15
- package/packages/panda/styled-system/patterns/flex.js +27 -0
- package/packages/panda/styled-system/patterns/float.d.ts +12 -12
- package/packages/panda/styled-system/patterns/float.js +84 -0
- package/packages/panda/styled-system/patterns/grid-item.d.ts +13 -14
- package/packages/panda/styled-system/patterns/grid-item.js +26 -0
- package/packages/panda/styled-system/patterns/grid.d.ts +13 -13
- package/packages/panda/styled-system/patterns/grid.js +30 -0
- package/packages/panda/styled-system/patterns/hstack.d.ts +9 -10
- package/packages/panda/styled-system/patterns/hstack.js +27 -0
- package/packages/panda/styled-system/patterns/index.d.ts +14 -15
- package/packages/panda/styled-system/patterns/index.js +20 -0
- package/packages/panda/styled-system/patterns/link-overlay.d.ts +8 -11
- package/packages/panda/styled-system/patterns/link-overlay.js +25 -0
- package/packages/panda/styled-system/patterns/runtime.js +25 -0
- package/packages/panda/styled-system/patterns/spacer.d.ts +9 -9
- package/packages/panda/styled-system/patterns/spacer.js +26 -0
- package/packages/panda/styled-system/patterns/square.d.ts +8 -9
- package/packages/panda/styled-system/patterns/square.js +25 -0
- package/packages/panda/styled-system/patterns/stack.d.ts +11 -12
- package/packages/panda/styled-system/patterns/stack.js +30 -0
- package/packages/panda/styled-system/patterns/visually-hidden.d.ts +8 -11
- package/packages/panda/styled-system/patterns/visually-hidden.js +19 -0
- package/packages/panda/styled-system/patterns/vstack.d.ts +9 -10
- package/packages/panda/styled-system/patterns/vstack.js +27 -0
- package/packages/panda/styled-system/patterns/wrap.d.ts +12 -13
- package/packages/panda/styled-system/patterns/wrap.js +26 -0
- package/packages/panda/styled-system/recipes/aeon-accordion.d.ts +9 -26
- package/packages/panda/styled-system/recipes/aeon-accordion.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-app-shell.d.ts +10 -26
- package/packages/panda/styled-system/recipes/aeon-app-shell.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-async.d.ts +9 -26
- package/packages/panda/styled-system/recipes/aeon-async.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-avatar.d.ts +10 -28
- package/packages/panda/styled-system/recipes/aeon-avatar.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-badge.d.ts +8 -26
- package/packages/panda/styled-system/recipes/aeon-badge.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-bar.d.ts +13 -32
- package/packages/panda/styled-system/recipes/aeon-bar.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-button-group.d.ts +10 -33
- package/packages/panda/styled-system/recipes/aeon-button-group.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-button.d.ts +10 -33
- package/packages/panda/styled-system/recipes/aeon-button.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-checkbox.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-checkbox.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-clipboard.d.ts +16 -0
- package/packages/panda/styled-system/recipes/aeon-clipboard.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-combobox.d.ts +9 -26
- package/packages/panda/styled-system/recipes/aeon-combobox.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-composer.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-composer.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-content.d.ts +10 -26
- package/packages/panda/styled-system/recipes/aeon-content.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-conversation.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-conversation.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-dialog.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-dialog.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-entry.d.ts +11 -30
- package/packages/panda/styled-system/recipes/aeon-entry.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-field.d.ts +9 -26
- package/packages/panda/styled-system/recipes/aeon-field.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-file-upload.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-file-upload.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-identity.d.ts +10 -28
- package/packages/panda/styled-system/recipes/aeon-identity.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-list-row.d.ts +9 -26
- package/packages/panda/styled-system/recipes/aeon-list-row.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-menu.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-menu.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-metric-strip.d.ts +10 -28
- package/packages/panda/styled-system/recipes/aeon-metric-strip.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-nav.d.ts +11 -30
- package/packages/panda/styled-system/recipes/aeon-nav.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-panel.d.ts +10 -26
- package/packages/panda/styled-system/recipes/aeon-panel.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-pin-input.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-pin-input.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-popover.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-popover.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-profile-header.d.ts +10 -28
- package/packages/panda/styled-system/recipes/aeon-profile-header.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-progress.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-progress.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-prose.d.ts +16 -0
- package/packages/panda/styled-system/recipes/aeon-prose.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-radio-group.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-radio-group.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-range-slider.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-range-slider.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-scroll.d.ts +12 -36
- package/packages/panda/styled-system/recipes/aeon-scroll.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-segment-group.d.ts +18 -0
- package/packages/panda/styled-system/recipes/aeon-segment-group.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-select.d.ts +9 -26
- package/packages/panda/styled-system/recipes/aeon-select.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-separator.d.ts +10 -26
- package/packages/panda/styled-system/recipes/aeon-separator.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-slider.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-slider.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-switch.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-switch.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-tabs.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-tabs.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-textarea.d.ts +18 -0
- package/packages/panda/styled-system/recipes/aeon-textarea.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-theme-switcher.d.ts +10 -26
- package/packages/panda/styled-system/recipes/aeon-theme-switcher.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-thread.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-thread.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-toast.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-toast.js +5 -0
- package/packages/panda/styled-system/recipes/aeon-tooltip.d.ts +9 -24
- package/packages/panda/styled-system/recipes/aeon-tooltip.js +5 -0
- package/packages/panda/styled-system/recipes/index.d.ts +31 -28
- package/packages/panda/styled-system/recipes/index.js +43 -0
- package/packages/panda/styled-system/recipes/runtime.js +133 -0
- package/packages/panda/styled-system/styles.css +1899 -2110
- package/packages/panda/styled-system/tokens/index.d.ts +4 -5
- package/packages/panda/styled-system/tokens/index.js +18 -0
- package/packages/panda/styled-system/types/index.d.ts +3 -6
- package/packages/panda/styled-system/types/jsx.d.ts +36 -27
- package/packages/panda/styled-system/types/pattern.d.ts +18 -70
- package/packages/panda/styled-system/types/recipe.d.ts +50 -154
- package/packages/panda/styled-system/types/system.d.ts +1826 -0
- package/packages/panda/styled-system/types/tokens.d.ts +65 -0
- package/packages/panda/tsconfig.json +3 -1
- package/packages/primitives/dist/chunk-5BNAV4S2.js +258 -0
- package/packages/primitives/dist/chunk-HYHCIMHC.js +45 -0
- package/packages/primitives/dist/index.d.ts +2 -0
- package/packages/primitives/dist/index.js +30 -12
- package/packages/primitives/dist/machines/app-nav.d.ts +3 -3
- package/packages/primitives/dist/machines/cache.d.ts +223 -0
- package/packages/primitives/dist/machines/cache.js +14 -0
- package/packages/primitives/dist/machines/clipboard.d.ts +46 -0
- package/packages/primitives/dist/machines/clipboard.js +8 -0
- package/packages/primitives/dist/machines/tabs.d.ts +2 -2
- package/packages/primitives/src/index.ts +2 -0
- package/packages/primitives/src/machines/cache.ts +395 -0
- package/packages/primitives/src/machines/clipboard.ts +56 -0
- package/packages/react/dist/index.d.ts +134 -13
- package/packages/react/dist/index.js +1429 -1016
- package/packages/react/src/clipboard/index.tsx +117 -0
- package/packages/react/src/composer/index.tsx +14 -5
- package/packages/react/src/dialog/index.tsx +11 -3
- package/packages/react/src/floating/FloatingPositioner.tsx +11 -1
- package/packages/react/src/index.ts +4 -0
- package/packages/react/src/menu/index.tsx +8 -3
- package/packages/react/src/popover/index.tsx +25 -4
- package/packages/react/src/prose/index.tsx +11 -0
- package/packages/react/src/radio-group/index.tsx +2 -1
- package/packages/react/src/scroll/index.tsx +1 -0
- package/packages/react/src/scroll/use-windowed-range.ts +118 -0
- package/packages/react/src/segment-group/index.tsx +171 -0
- package/packages/react/src/select/index.tsx +11 -2
- package/packages/react/src/slider/index.tsx +13 -6
- package/packages/react/src/tabs/index.tsx +19 -7
- package/packages/react/src/textarea/index.tsx +75 -0
- package/packages/react/src/utils/assign-ref.ts +7 -0
- package/packages/schemas/dist/index.d.ts +8 -0
- package/packages/schemas/dist/index.js +62 -1
- package/packages/schemas/json/catalog.json +493 -0
- package/packages/schemas/json/clipboard.json +136 -0
- package/packages/schemas/json/prose.json +103 -0
- package/packages/schemas/json/segmentGroup.json +131 -0
- package/packages/schemas/json/textarea.json +119 -0
- package/packages/schemas/prompts/statecharts.md +1 -1
- package/packages/schemas/registry/catalog.json +34 -0
- package/packages/schemas/registry/components/clipboard.json +136 -0
- package/packages/schemas/registry/components/prose.json +103 -0
- package/packages/schemas/registry/components/segmentGroup.json +131 -0
- package/packages/schemas/registry/components/textarea.json +119 -0
- package/packages/schemas/registry/machines/clipboard.json +110 -0
- package/packages/schemas/registry/machines/slider.json +18 -1
- package/packages/schemas/scripts/emit.ts +2 -0
- package/packages/schemas/src/components.ts +63 -0
- package/packages/tree/README.md +29 -0
- package/packages/tree/dist/index.d.ts +97 -0
- package/packages/tree/dist/index.js +107 -0
- package/packages/tree/package.json +42 -0
- package/packages/tree/src/exclusive-action.ts +104 -0
- package/packages/tree/src/index.ts +7 -0
- package/packages/tree/src/interpret.tsx +45 -0
- package/packages/tree/src/totality.ts +20 -0
- package/packages/tree/src/widget.ts +31 -0
- package/packages/tree/tsconfig.json +8 -0
- package/packages/tree/vitest.config.ts +8 -0
- package/packages/ui/dist/index.d.ts +27 -3
- package/packages/ui/dist/index.js +232 -165
- package/packages/ui/src/clipboard.tsx +51 -0
- package/packages/ui/src/index.ts +4 -0
- package/packages/ui/src/prose.tsx +15 -0
- package/packages/ui/src/segment-group.tsx +28 -0
- package/packages/ui/src/textarea.tsx +17 -0
- package/scripts/vite-aliases.mjs +5 -2
- package/packages/cli/node_modules/.bin/esbuild +0 -21
- package/packages/cli/node_modules/.bin/jiti +0 -21
- package/packages/cli/node_modules/.bin/tsc +0 -21
- package/packages/cli/node_modules/.bin/tsserver +0 -21
- package/packages/cli/node_modules/.bin/tsup +0 -21
- package/packages/cli/node_modules/.bin/tsup-node +0 -21
- package/packages/cli/node_modules/.bin/tsx +0 -21
- package/packages/cli/node_modules/.bin/vite +0 -21
- package/packages/cli/node_modules/.bin/vitest +0 -21
- package/packages/core/node_modules/.bin/esbuild +0 -21
- package/packages/core/node_modules/.bin/jiti +0 -21
- package/packages/core/node_modules/.bin/tsc +0 -21
- package/packages/core/node_modules/.bin/tsserver +0 -21
- package/packages/core/node_modules/.bin/tsup +0 -21
- package/packages/core/node_modules/.bin/tsup-node +0 -21
- package/packages/core/node_modules/.bin/tsx +0 -21
- package/packages/core/node_modules/.bin/vite +0 -21
- package/packages/core/node_modules/.bin/vitest +0 -21
- package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/packages/core/src/identicon.test.ts +0 -39
- package/packages/core/src/machine.test.ts +0 -79
- package/packages/core/src/theme.test.ts +0 -14
- package/packages/geometry/node_modules/.bin/esbuild +0 -21
- package/packages/geometry/node_modules/.bin/jiti +0 -21
- package/packages/geometry/node_modules/.bin/tsc +0 -21
- package/packages/geometry/node_modules/.bin/tsserver +0 -21
- package/packages/geometry/node_modules/.bin/tsup +0 -21
- package/packages/geometry/node_modules/.bin/tsup-node +0 -21
- package/packages/geometry/node_modules/.bin/tsx +0 -21
- package/packages/panda/styled-system/css/conditions.mjs +0 -36
- package/packages/panda/styled-system/css/css.mjs +0 -45
- package/packages/panda/styled-system/css/cva.mjs +0 -87
- package/packages/panda/styled-system/css/index.mjs +0 -4
- package/packages/panda/styled-system/css/sva.mjs +0 -46
- package/packages/panda/styled-system/helpers.mjs +0 -328
- package/packages/panda/styled-system/jsx/aspect-ratio.mjs +0 -14
- package/packages/panda/styled-system/jsx/bleed.mjs +0 -14
- package/packages/panda/styled-system/jsx/box.mjs +0 -14
- package/packages/panda/styled-system/jsx/center.mjs +0 -14
- package/packages/panda/styled-system/jsx/circle.mjs +0 -14
- package/packages/panda/styled-system/jsx/container.mjs +0 -14
- package/packages/panda/styled-system/jsx/cq.mjs +0 -14
- package/packages/panda/styled-system/jsx/create-style-context.d.ts +0 -54
- package/packages/panda/styled-system/jsx/create-style-context.mjs +0 -121
- package/packages/panda/styled-system/jsx/divider.mjs +0 -14
- package/packages/panda/styled-system/jsx/factory-helper.mjs +0 -22
- package/packages/panda/styled-system/jsx/factory.mjs +0 -89
- package/packages/panda/styled-system/jsx/flex.mjs +0 -14
- package/packages/panda/styled-system/jsx/float.mjs +0 -14
- package/packages/panda/styled-system/jsx/grid-item.mjs +0 -14
- package/packages/panda/styled-system/jsx/grid.mjs +0 -14
- package/packages/panda/styled-system/jsx/hstack.mjs +0 -14
- package/packages/panda/styled-system/jsx/index.mjs +0 -23
- package/packages/panda/styled-system/jsx/is-valid-prop.mjs +0 -17
- package/packages/panda/styled-system/jsx/link-overlay.mjs +0 -14
- package/packages/panda/styled-system/jsx/spacer.mjs +0 -14
- package/packages/panda/styled-system/jsx/square.mjs +0 -14
- package/packages/panda/styled-system/jsx/stack.mjs +0 -14
- package/packages/panda/styled-system/jsx/visually-hidden.mjs +0 -14
- package/packages/panda/styled-system/jsx/vstack.mjs +0 -14
- package/packages/panda/styled-system/jsx/wrap.mjs +0 -14
- package/packages/panda/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/packages/panda/styled-system/patterns/bleed.mjs +0 -24
- package/packages/panda/styled-system/patterns/box.mjs +0 -15
- package/packages/panda/styled-system/patterns/center.mjs +0 -21
- package/packages/panda/styled-system/patterns/circle.mjs +0 -25
- package/packages/panda/styled-system/patterns/container.mjs +0 -21
- package/packages/panda/styled-system/patterns/cq.mjs +0 -21
- package/packages/panda/styled-system/patterns/divider.mjs +0 -25
- package/packages/panda/styled-system/patterns/flex.mjs +0 -26
- package/packages/panda/styled-system/patterns/float.mjs +0 -52
- package/packages/panda/styled-system/patterns/grid-item.mjs +0 -25
- package/packages/panda/styled-system/patterns/grid.mjs +0 -27
- package/packages/panda/styled-system/patterns/hstack.mjs +0 -24
- package/packages/panda/styled-system/patterns/index.mjs +0 -20
- package/packages/panda/styled-system/patterns/link-overlay.mjs +0 -24
- package/packages/panda/styled-system/patterns/spacer.mjs +0 -25
- package/packages/panda/styled-system/patterns/square.mjs +0 -24
- package/packages/panda/styled-system/patterns/stack.mjs +0 -24
- package/packages/panda/styled-system/patterns/visually-hidden.mjs +0 -18
- package/packages/panda/styled-system/patterns/vstack.mjs +0 -24
- package/packages/panda/styled-system/patterns/wrap.mjs +0 -25
- package/packages/panda/styled-system/recipes/aeon-accordion.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-app-shell.mjs +0 -70
- package/packages/panda/styled-system/recipes/aeon-async.mjs +0 -57
- package/packages/panda/styled-system/recipes/aeon-avatar.mjs +0 -57
- package/packages/panda/styled-system/recipes/aeon-badge.mjs +0 -32
- package/packages/panda/styled-system/recipes/aeon-bar.mjs +0 -77
- package/packages/panda/styled-system/recipes/aeon-button-group.mjs +0 -37
- package/packages/panda/styled-system/recipes/aeon-button.mjs +0 -39
- package/packages/panda/styled-system/recipes/aeon-checkbox.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-combobox.mjs +0 -53
- package/packages/panda/styled-system/recipes/aeon-composer.mjs +0 -57
- package/packages/panda/styled-system/recipes/aeon-content.mjs +0 -70
- package/packages/panda/styled-system/recipes/aeon-conversation.mjs +0 -61
- package/packages/panda/styled-system/recipes/aeon-dialog.mjs +0 -61
- package/packages/panda/styled-system/recipes/aeon-entry.mjs +0 -100
- package/packages/panda/styled-system/recipes/aeon-field.mjs +0 -53
- package/packages/panda/styled-system/recipes/aeon-file-upload.mjs +0 -61
- package/packages/panda/styled-system/recipes/aeon-identity.mjs +0 -63
- package/packages/panda/styled-system/recipes/aeon-list-row.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-menu.mjs +0 -53
- package/packages/panda/styled-system/recipes/aeon-metric-strip.mjs +0 -54
- package/packages/panda/styled-system/recipes/aeon-nav.mjs +0 -69
- package/packages/panda/styled-system/recipes/aeon-panel.mjs +0 -58
- package/packages/panda/styled-system/recipes/aeon-pin-input.mjs +0 -37
- package/packages/panda/styled-system/recipes/aeon-popover.mjs +0 -53
- package/packages/panda/styled-system/recipes/aeon-profile-header.mjs +0 -62
- package/packages/panda/styled-system/recipes/aeon-progress.mjs +0 -45
- package/packages/panda/styled-system/recipes/aeon-radio-group.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-range-slider.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-scroll.mjs +0 -64
- package/packages/panda/styled-system/recipes/aeon-select.mjs +0 -57
- package/packages/panda/styled-system/recipes/aeon-separator.mjs +0 -42
- package/packages/panda/styled-system/recipes/aeon-slider.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-switch.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-tabs.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-theme-switcher.mjs +0 -59
- package/packages/panda/styled-system/recipes/aeon-thread.mjs +0 -73
- package/packages/panda/styled-system/recipes/aeon-toast.mjs +0 -49
- package/packages/panda/styled-system/recipes/aeon-tooltip.mjs +0 -49
- package/packages/panda/styled-system/recipes/create-recipe.mjs +0 -82
- package/packages/panda/styled-system/recipes/index.mjs +0 -39
- package/packages/panda/styled-system/tokens/index.mjs +0 -2224
- package/packages/panda/styled-system/tokens/tokens.d.ts +0 -60
- package/packages/panda/styled-system/types/composition.d.ts +0 -227
- package/packages/panda/styled-system/types/conditions.d.ts +0 -346
- package/packages/panda/styled-system/types/csstype.d.ts +0 -22570
- package/packages/panda/styled-system/types/global.d.ts +0 -20
- package/packages/panda/styled-system/types/parts.d.ts +0 -8
- package/packages/panda/styled-system/types/prop-type.d.ts +0 -250
- package/packages/panda/styled-system/types/selectors.d.ts +0 -59
- package/packages/panda/styled-system/types/static-css.d.ts +0 -56
- package/packages/panda/styled-system/types/style-props.d.ts +0 -8089
- package/packages/panda/styled-system/types/system-types.d.ts +0 -151
- package/packages/primitives/node_modules/.bin/esbuild +0 -21
- package/packages/primitives/node_modules/.bin/jiti +0 -21
- package/packages/primitives/node_modules/.bin/tsc +0 -21
- package/packages/primitives/node_modules/.bin/tsserver +0 -21
- package/packages/primitives/node_modules/.bin/tsup +0 -21
- package/packages/primitives/node_modules/.bin/tsup-node +0 -21
- package/packages/primitives/node_modules/.bin/tsx +0 -21
- package/packages/primitives/node_modules/.bin/vite +0 -21
- package/packages/primitives/node_modules/.bin/vitest +0 -21
- package/packages/primitives/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/packages/primitives/src/__tests__/app-nav.test.ts +0 -30
- package/packages/primitives/src/__tests__/file-upload.test.ts +0 -25
- package/packages/primitives/src/__tests__/floating-surface.test.ts +0 -29
- package/packages/primitives/src/__tests__/range-slider.test.ts +0 -39
- package/packages/react/node_modules/.bin/esbuild +0 -21
- package/packages/react/node_modules/.bin/jiti +0 -21
- package/packages/react/node_modules/.bin/tsc +0 -21
- package/packages/react/node_modules/.bin/tsserver +0 -21
- package/packages/react/node_modules/.bin/tsup +0 -21
- package/packages/react/node_modules/.bin/tsup-node +0 -21
- package/packages/react/node_modules/.bin/tsx +0 -21
- package/packages/react/node_modules/.bin/vite +0 -21
- package/packages/react/node_modules/.bin/vitest +0 -21
- package/packages/react/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/packages/react/src/avatar/avatar.test.tsx +0 -27
- package/packages/react/src/dialog/dialog.test.tsx +0 -50
- package/packages/react/src/select/select.test.tsx +0 -81
- package/packages/react/src/toast/toast.test.tsx +0 -40
- package/packages/react/src/tooltip/tooltip.test.tsx +0 -122
- package/packages/react-scene/node_modules/.bin/jiti +0 -21
- package/packages/react-scene/node_modules/.bin/tsc +0 -21
- package/packages/react-scene/node_modules/.bin/tsserver +0 -21
- package/packages/react-scene/node_modules/.bin/tsup +0 -21
- package/packages/react-scene/node_modules/.bin/tsup-node +0 -21
- package/packages/react-scene/node_modules/.bin/tsx +0 -21
- package/packages/scene/node_modules/.bin/jiti +0 -21
- package/packages/scene/node_modules/.bin/tsc +0 -21
- package/packages/scene/node_modules/.bin/tsserver +0 -21
- package/packages/scene/node_modules/.bin/tsup +0 -21
- package/packages/scene/node_modules/.bin/tsup-node +0 -21
- package/packages/scene/node_modules/.bin/tsx +0 -21
- package/packages/schemas/node_modules/.bin/esbuild +0 -21
- package/packages/schemas/node_modules/.bin/jiti +0 -21
- package/packages/schemas/node_modules/.bin/tsc +0 -21
- package/packages/schemas/node_modules/.bin/tsserver +0 -21
- package/packages/schemas/node_modules/.bin/tsup +0 -21
- package/packages/schemas/node_modules/.bin/tsup-node +0 -21
- package/packages/schemas/node_modules/.bin/tsx +0 -21
- package/packages/schemas/node_modules/.bin/vite +0 -21
- package/packages/schemas/node_modules/.bin/vitest +0 -21
- package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/packages/schemas/src/aeon-to-schema.test.ts +0 -70
- package/packages/schemas/src/index.test.ts +0 -108
- package/packages/signal/node_modules/.bin/jiti +0 -21
- package/packages/signal/node_modules/.bin/tsc +0 -21
- package/packages/signal/node_modules/.bin/tsserver +0 -21
- package/packages/signal/node_modules/.bin/tsup +0 -21
- package/packages/signal/node_modules/.bin/tsup-node +0 -21
- package/packages/signal/node_modules/.bin/tsx +0 -21
- package/packages/site/node_modules/.bin/jiti +0 -21
- package/packages/site/node_modules/.bin/tsc +0 -21
- package/packages/site/node_modules/.bin/tsserver +0 -21
- package/packages/site/node_modules/.bin/tsup +0 -21
- package/packages/site/node_modules/.bin/tsup-node +0 -21
- package/packages/site/node_modules/.bin/tsx +0 -21
- package/packages/solid/node_modules/.bin/jiti +0 -21
- package/packages/solid/node_modules/.bin/tsc +0 -21
- package/packages/solid/node_modules/.bin/tsserver +0 -21
- package/packages/solid/node_modules/.bin/tsup +0 -21
- package/packages/solid/node_modules/.bin/tsup-node +0 -21
- package/packages/solid/node_modules/.bin/tsx +0 -21
- package/packages/surface/node_modules/.bin/jiti +0 -21
- package/packages/surface/node_modules/.bin/tsc +0 -21
- package/packages/surface/node_modules/.bin/tsserver +0 -21
- package/packages/surface/node_modules/.bin/tsup +0 -21
- package/packages/surface/node_modules/.bin/tsup-node +0 -21
- package/packages/surface/node_modules/.bin/tsx +0 -21
- package/packages/svelte/node_modules/.bin/acorn +0 -21
- package/packages/svelte/node_modules/.bin/esbuild +0 -21
- package/packages/svelte/node_modules/.bin/jiti +0 -21
- package/packages/svelte/node_modules/.bin/svelte-check +0 -21
- package/packages/svelte/node_modules/.bin/tsc +0 -21
- package/packages/svelte/node_modules/.bin/tsserver +0 -21
- package/packages/svelte/node_modules/.bin/tsup +0 -21
- package/packages/svelte/node_modules/.bin/tsup-node +0 -21
- package/packages/svelte/node_modules/.bin/tsx +0 -21
- package/packages/svelte/node_modules/.bin/vite +0 -21
- package/packages/ui/node_modules/.bin/jiti +0 -21
- package/packages/ui/node_modules/.bin/tsc +0 -21
- package/packages/ui/node_modules/.bin/tsserver +0 -21
- package/packages/ui/node_modules/.bin/tsup +0 -21
- package/packages/ui/node_modules/.bin/tsup-node +0 -21
- package/packages/ui/node_modules/.bin/tsx +0 -21
- package/packages/vue/node_modules/.bin/jiti +0 -21
- package/packages/vue/node_modules/.bin/tsc +0 -21
- package/packages/vue/node_modules/.bin/tsserver +0 -21
- package/packages/vue/node_modules/.bin/tsup +0 -21
- package/packages/vue/node_modules/.bin/tsup-node +0 -21
- package/packages/vue/node_modules/.bin/tsx +0 -21
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Token } from './tokens';
|
|
1
|
+
import type { Token, TokenPath } from '../types/tokens';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
(path:
|
|
3
|
+
interface TokenFn {
|
|
4
|
+
(path: TokenPath, fallback?: string): string
|
|
6
5
|
var: (path: Token, fallback?: string) => string
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
export
|
|
8
|
+
export declare const token: TokenFn;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { colorMix, toCssVar } from '../helpers';
|
|
2
|
+
|
|
3
|
+
const tokens = {"animations.bounce":"bounce 1s infinite","animations.ping":"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite","animations.pulse":"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite","animations.spin":"spin 1s linear infinite","aspectRatios.golden":"1.618 / 1","aspectRatios.landscape":"4 / 3","aspectRatios.portrait":"3 / 4","aspectRatios.square":"1 / 1","aspectRatios.ultrawide":"18 / 5","aspectRatios.video":"16 / 9","aspectRatios.wide":"16 / 9","blurs.2xl":"40px","blurs.3xl":"64px","blurs.lg":"16px","blurs.md":"12px","blurs.sm":"8px","blurs.xl":"24px","blurs.xs":"4px","borders.none":"none","breakpoints.2xl":"96rem","breakpoints.lg":"64rem","breakpoints.md":"48rem","breakpoints.sm":"40rem","breakpoints.xl":"80rem","colors.accent":"var(--colors-aeon-accent)","colors.accentDim":"var(--colors-aeon-accent-dim)","colors.amber.100":"oklch(96.2% 0.059 95.617)","colors.amber.200":"oklch(92.4% 0.12 95.746)","colors.amber.300":"oklch(87.9% 0.169 91.605)","colors.amber.400":"oklch(82.8% 0.189 84.429)","colors.amber.50":"oklch(98.7% 0.022 95.277)","colors.amber.500":"oklch(76.9% 0.188 70.08)","colors.amber.600":"oklch(66.6% 0.179 58.318)","colors.amber.700":"oklch(55.5% 0.163 48.998)","colors.amber.800":"oklch(47.3% 0.137 46.201)","colors.amber.900":"oklch(41.4% 0.112 45.904)","colors.amber.950":"oklch(27.9% 0.077 45.635)","colors.bg":"var(--colors-aeon-bg)","colors.black":"#000","colors.blue.100":"oklch(93.2% 0.032 255.585)","colors.blue.200":"oklch(88.2% 0.059 254.128)","colors.blue.300":"oklch(80.9% 0.105 251.813)","colors.blue.400":"oklch(70.7% 0.165 254.624)","colors.blue.50":"oklch(97% 0.014 254.604)","colors.blue.500":"oklch(62.3% 0.214 259.815)","colors.blue.600":"oklch(54.6% 0.245 262.881)","colors.blue.700":"oklch(48.8% 0.243 264.376)","colors.blue.800":"oklch(42.4% 0.199 265.638)","colors.blue.900":"oklch(37.9% 0.146 265.522)","colors.blue.950":"oklch(28.2% 0.091 267.935)","colors.border":"var(--colors-aeon-border)","colors.colorPalette":"","colors.colorPalette.100":"","colors.colorPalette.200":"","colors.colorPalette.300":"","colors.colorPalette.400":"","colors.colorPalette.50":"","colors.colorPalette.500":"","colors.colorPalette.600":"","colors.colorPalette.700":"","colors.colorPalette.800":"","colors.colorPalette.900":"","colors.colorPalette.950":"","colors.current":"currentcolor","colors.cyan.100":"oklch(95.6% 0.045 203.388)","colors.cyan.200":"oklch(91.7% 0.08 205.041)","colors.cyan.300":"oklch(86.5% 0.127 207.078)","colors.cyan.400":"oklch(78.9% 0.154 211.53)","colors.cyan.50":"oklch(98.4% 0.019 200.873)","colors.cyan.500":"oklch(71.5% 0.143 215.221)","colors.cyan.600":"oklch(60.9% 0.126 221.723)","colors.cyan.700":"oklch(52% 0.105 223.128)","colors.cyan.800":"oklch(45% 0.085 224.283)","colors.cyan.900":"oklch(39.8% 0.07 227.392)","colors.cyan.950":"oklch(30.2% 0.056 229.695)","colors.danger":"var(--colors-aeon-danger)","colors.dangerDim":"var(--colors-aeon-danger-dim)","colors.emerald.100":"oklch(95% 0.052 163.051)","colors.emerald.200":"oklch(90.5% 0.093 164.15)","colors.emerald.300":"oklch(84.5% 0.143 164.978)","colors.emerald.400":"oklch(76.5% 0.177 163.223)","colors.emerald.50":"oklch(97.9% 0.021 166.113)","colors.emerald.500":"oklch(69.6% 0.17 162.48)","colors.emerald.600":"oklch(59.6% 0.145 163.225)","colors.emerald.700":"oklch(50.8% 0.118 165.612)","colors.emerald.800":"oklch(43.2% 0.095 166.913)","colors.emerald.900":"oklch(37.8% 0.077 168.94)","colors.emerald.950":"oklch(26.2% 0.051 172.552)","colors.fg":"var(--colors-aeon-text)","colors.fuchsia.100":"oklch(95.2% 0.037 318.852)","colors.fuchsia.200":"oklch(90.3% 0.076 319.62)","colors.fuchsia.300":"oklch(83.3% 0.145 321.434)","colors.fuchsia.400":"oklch(74% 0.238 322.16)","colors.fuchsia.50":"oklch(97.7% 0.017 320.058)","colors.fuchsia.500":"oklch(66.7% 0.295 322.15)","colors.fuchsia.600":"oklch(59.1% 0.293 322.896)","colors.fuchsia.700":"oklch(51.8% 0.253 323.949)","colors.fuchsia.800":"oklch(45.2% 0.211 324.591)","colors.fuchsia.900":"oklch(40.1% 0.17 325.612)","colors.fuchsia.950":"oklch(29.3% 0.136 325.661)","colors.gray.100":"oklch(96.7% 0.003 264.542)","colors.gray.200":"oklch(92.8% 0.006 264.531)","colors.gray.300":"oklch(87.2% 0.01 258.338)","colors.gray.400":"oklch(70.7% 0.022 261.325)","colors.gray.50":"oklch(98.5% 0.002 247.839)","colors.gray.500":"oklch(55.1% 0.027 264.364)","colors.gray.600":"oklch(44.6% 0.03 256.802)","colors.gray.700":"oklch(37.3% 0.034 259.733)","colors.gray.800":"oklch(27.8% 0.033 256.848)","colors.gray.900":"oklch(21% 0.034 264.665)","colors.gray.950":"oklch(13% 0.028 261.692)","colors.green.100":"oklch(96.2% 0.044 156.743)","colors.green.200":"oklch(92.5% 0.084 155.995)","colors.green.300":"oklch(87.1% 0.15 154.449)","colors.green.400":"oklch(79.2% 0.209 151.711)","colors.green.50":"oklch(98.2% 0.018 155.826)","colors.green.500":"oklch(72.3% 0.219 149.579)","colors.green.600":"oklch(62.7% 0.194 149.214)","colors.green.700":"oklch(52.7% 0.154 150.069)","colors.green.800":"oklch(44.8% 0.119 151.328)","colors.green.900":"oklch(39.3% 0.095 152.535)","colors.green.950":"oklch(26.6% 0.065 152.934)","colors.indigo.100":"oklch(93% 0.034 272.788)","colors.indigo.200":"oklch(87% 0.065 274.039)","colors.indigo.300":"oklch(78.5% 0.115 274.713)","colors.indigo.400":"oklch(67.3% 0.182 276.935)","colors.indigo.50":"oklch(96.2% 0.018 272.314)","colors.indigo.500":"oklch(58.5% 0.233 277.117)","colors.indigo.600":"oklch(51.1% 0.262 276.966)","colors.indigo.700":"oklch(45.7% 0.24 277.023)","colors.indigo.800":"oklch(39.8% 0.195 277.366)","colors.indigo.900":"oklch(35.9% 0.144 278.697)","colors.indigo.950":"oklch(25.7% 0.09 281.288)","colors.lime.100":"oklch(96.7% 0.067 122.328)","colors.lime.200":"oklch(93.8% 0.127 124.321)","colors.lime.300":"oklch(89.7% 0.196 126.665)","colors.lime.400":"oklch(84.1% 0.238 128.85)","colors.lime.50":"oklch(98.6% 0.031 120.757)","colors.lime.500":"oklch(76.8% 0.233 130.85)","colors.lime.600":"oklch(64.8% 0.2 131.684)","colors.lime.700":"oklch(53.2% 0.157 131.589)","colors.lime.800":"oklch(45.3% 0.124 130.933)","colors.lime.900":"oklch(40.5% 0.101 131.063)","colors.lime.950":"oklch(27.4% 0.072 132.109)","colors.mauve.100":"oklch(96% 0.003 325.6)","colors.mauve.200":"oklch(92.2% 0.005 325.62)","colors.mauve.300":"oklch(86.5% 0.012 325.68)","colors.mauve.400":"oklch(71.1% 0.019 323.02)","colors.mauve.50":"oklch(98.5% 0 0)","colors.mauve.500":"oklch(54.2% 0.034 322.5)","colors.mauve.600":"oklch(43.5% 0.029 321.78)","colors.mauve.700":"oklch(36.4% 0.029 323.89)","colors.mauve.800":"oklch(26.3% 0.024 320.12)","colors.mauve.900":"oklch(21.2% 0.019 322.12)","colors.mauve.950":"oklch(14.5% 0.008 326)","colors.mist.100":"oklch(96.3% 0.002 197.1)","colors.mist.200":"oklch(92.5% 0.005 214.3)","colors.mist.300":"oklch(87.2% 0.007 219.6)","colors.mist.400":"oklch(72.3% 0.014 214.4)","colors.mist.50":"oklch(98.7% 0.002 197.1)","colors.mist.500":"oklch(56% 0.021 213.5)","colors.mist.600":"oklch(45% 0.017 213.2)","colors.mist.700":"oklch(37.8% 0.015 216)","colors.mist.800":"oklch(27.5% 0.011 216.9)","colors.mist.900":"oklch(21.8% 0.008 223.9)","colors.mist.950":"oklch(14.8% 0.004 228.8)","colors.muted":"var(--colors-aeon-muted)","colors.neutral.100":"oklch(97% 0 0)","colors.neutral.200":"oklch(92.2% 0 0)","colors.neutral.300":"oklch(87% 0 0)","colors.neutral.400":"oklch(70.8% 0 0)","colors.neutral.50":"oklch(98.5% 0 0)","colors.neutral.500":"oklch(55.6% 0 0)","colors.neutral.600":"oklch(43.9% 0 0)","colors.neutral.700":"oklch(37.1% 0 0)","colors.neutral.800":"oklch(26.9% 0 0)","colors.neutral.900":"oklch(20.5% 0 0)","colors.neutral.950":"oklch(14.5% 0 0)","colors.olive.100":"oklch(96.6% 0.005 106.5)","colors.olive.200":"oklch(93% 0.007 106.5)","colors.olive.300":"oklch(88% 0.011 106.6)","colors.olive.400":"oklch(73.7% 0.021 106.9)","colors.olive.50":"oklch(98.8% 0.003 106.5)","colors.olive.500":"oklch(58% 0.031 107.3)","colors.olive.600":"oklch(46.6% 0.025 107.3)","colors.olive.700":"oklch(39.4% 0.023 107.4)","colors.olive.800":"oklch(28.6% 0.016 107.4)","colors.olive.900":"oklch(22.8% 0.013 107.4)","colors.olive.950":"oklch(15.3% 0.006 107.1)","colors.orange.100":"oklch(95.4% 0.038 75.164)","colors.orange.200":"oklch(90.1% 0.076 70.697)","colors.orange.300":"oklch(83.7% 0.128 66.29)","colors.orange.400":"oklch(75% 0.183 55.934)","colors.orange.50":"oklch(98% 0.016 73.684)","colors.orange.500":"oklch(70.5% 0.213 47.604)","colors.orange.600":"oklch(64.6% 0.222 41.116)","colors.orange.700":"oklch(55.3% 0.195 38.402)","colors.orange.800":"oklch(47% 0.157 37.304)","colors.orange.900":"oklch(40.8% 0.123 38.172)","colors.orange.950":"oklch(26.6% 0.079 36.259)","colors.pink.100":"oklch(94.8% 0.028 342.258)","colors.pink.200":"oklch(89.9% 0.061 343.231)","colors.pink.300":"oklch(82.3% 0.12 346.018)","colors.pink.400":"oklch(71.8% 0.202 349.761)","colors.pink.50":"oklch(97.1% 0.014 343.198)","colors.pink.500":"oklch(65.6% 0.241 354.308)","colors.pink.600":"oklch(59.2% 0.249 0.584)","colors.pink.700":"oklch(52.5% 0.223 3.958)","colors.pink.800":"oklch(45.9% 0.187 3.815)","colors.pink.900":"oklch(40.8% 0.153 2.432)","colors.pink.950":"oklch(28.4% 0.109 3.907)","colors.purple.100":"oklch(94.6% 0.033 307.174)","colors.purple.200":"oklch(90.2% 0.063 306.703)","colors.purple.300":"oklch(82.7% 0.119 306.383)","colors.purple.400":"oklch(71.4% 0.203 305.504)","colors.purple.50":"oklch(97.7% 0.014 308.299)","colors.purple.500":"oklch(62.7% 0.265 303.9)","colors.purple.600":"oklch(55.8% 0.288 302.321)","colors.purple.700":"oklch(49.6% 0.265 301.924)","colors.purple.800":"oklch(43.8% 0.218 303.724)","colors.purple.900":"oklch(38.1% 0.176 304.987)","colors.purple.950":"oklch(29.1% 0.149 302.717)","colors.red.100":"oklch(93.6% 0.032 17.717)","colors.red.200":"oklch(88.5% 0.062 18.334)","colors.red.300":"oklch(80.8% 0.114 19.571)","colors.red.400":"oklch(70.4% 0.191 22.216)","colors.red.50":"oklch(97.1% 0.013 17.38)","colors.red.500":"oklch(63.7% 0.237 25.331)","colors.red.600":"oklch(57.7% 0.245 27.325)","colors.red.700":"oklch(50.5% 0.213 27.518)","colors.red.800":"oklch(44.4% 0.177 26.899)","colors.red.900":"oklch(39.6% 0.141 25.723)","colors.red.950":"oklch(25.8% 0.092 26.042)","colors.rose.100":"oklch(94.1% 0.03 12.58)","colors.rose.200":"oklch(89.2% 0.058 10.001)","colors.rose.300":"oklch(81% 0.117 11.638)","colors.rose.400":"oklch(71.2% 0.194 13.428)","colors.rose.50":"oklch(96.9% 0.015 12.422)","colors.rose.500":"oklch(64.5% 0.246 16.439)","colors.rose.600":"oklch(58.6% 0.253 17.585)","colors.rose.700":"oklch(51.4% 0.222 16.935)","colors.rose.800":"oklch(45.5% 0.188 13.697)","colors.rose.900":"oklch(41% 0.159 10.272)","colors.rose.950":"oklch(27.1% 0.105 12.094)","colors.sky.100":"oklch(95.1% 0.026 236.824)","colors.sky.200":"oklch(90.1% 0.058 230.902)","colors.sky.300":"oklch(82.8% 0.111 230.318)","colors.sky.400":"oklch(74.6% 0.16 232.661)","colors.sky.50":"oklch(97.7% 0.013 236.62)","colors.sky.500":"oklch(68.5% 0.169 237.323)","colors.sky.600":"oklch(58.8% 0.158 241.966)","colors.sky.700":"oklch(50% 0.134 242.749)","colors.sky.800":"oklch(44.3% 0.11 240.79)","colors.sky.900":"oklch(39.1% 0.09 240.876)","colors.sky.950":"oklch(29.3% 0.066 243.157)","colors.slate.100":"oklch(96.8% 0.007 247.896)","colors.slate.200":"oklch(92.9% 0.013 255.508)","colors.slate.300":"oklch(86.9% 0.022 252.894)","colors.slate.400":"oklch(70.4% 0.04 256.788)","colors.slate.50":"oklch(98.4% 0.003 247.858)","colors.slate.500":"oklch(55.4% 0.046 257.417)","colors.slate.600":"oklch(44.6% 0.043 257.281)","colors.slate.700":"oklch(37.2% 0.044 257.287)","colors.slate.800":"oklch(27.9% 0.041 260.031)","colors.slate.900":"oklch(20.8% 0.042 265.755)","colors.slate.950":"oklch(12.9% 0.042 264.695)","colors.stone.100":"oklch(97% 0.001 106.424)","colors.stone.200":"oklch(92.3% 0.003 48.717)","colors.stone.300":"oklch(86.9% 0.005 56.366)","colors.stone.400":"oklch(70.9% 0.01 56.259)","colors.stone.50":"oklch(98.5% 0.001 106.423)","colors.stone.500":"oklch(55.3% 0.013 58.071)","colors.stone.600":"oklch(44.4% 0.011 73.639)","colors.stone.700":"oklch(37.4% 0.01 67.558)","colors.stone.800":"oklch(26.8% 0.007 34.298)","colors.stone.900":"oklch(21.6% 0.006 56.043)","colors.stone.950":"oklch(14.7% 0.004 49.25)","colors.surface":"var(--colors-aeon-surface)","colors.surfaceRaised":"var(--colors-aeon-surface-raised)","colors.taupe.100":"oklch(96% 0.002 17.2)","colors.taupe.200":"oklch(92.2% 0.005 34.3)","colors.taupe.300":"oklch(86.8% 0.007 39.5)","colors.taupe.400":"oklch(71.4% 0.014 41.2)","colors.taupe.50":"oklch(98.6% 0.002 67.8)","colors.taupe.500":"oklch(54.7% 0.021 43.1)","colors.taupe.600":"oklch(43.8% 0.017 39.3)","colors.taupe.700":"oklch(36.7% 0.016 35.7)","colors.taupe.800":"oklch(26.8% 0.011 36.5)","colors.taupe.900":"oklch(21.4% 0.009 43.1)","colors.taupe.950":"oklch(14.7% 0.004 49.3)","colors.teal.100":"oklch(95.3% 0.051 180.801)","colors.teal.200":"oklch(91% 0.096 180.426)","colors.teal.300":"oklch(85.5% 0.138 181.071)","colors.teal.400":"oklch(77.7% 0.152 181.912)","colors.teal.50":"oklch(98.4% 0.014 180.72)","colors.teal.500":"oklch(70.4% 0.14 182.503)","colors.teal.600":"oklch(60% 0.118 184.704)","colors.teal.700":"oklch(51.1% 0.096 186.391)","colors.teal.800":"oklch(43.7% 0.078 188.216)","colors.teal.900":"oklch(38.6% 0.063 188.416)","colors.teal.950":"oklch(27.7% 0.046 192.524)","colors.transparent":"oklch(0 0 0 / 0)","colors.violet.100":"oklch(94.3% 0.029 294.588)","colors.violet.200":"oklch(89.4% 0.057 293.283)","colors.violet.300":"oklch(81.1% 0.111 293.571)","colors.violet.400":"oklch(70.2% 0.183 293.541)","colors.violet.50":"oklch(96.9% 0.016 293.756)","colors.violet.500":"oklch(60.6% 0.25 292.717)","colors.violet.600":"oklch(54.1% 0.281 293.009)","colors.violet.700":"oklch(49.1% 0.27 292.581)","colors.violet.800":"oklch(43.2% 0.232 292.759)","colors.violet.900":"oklch(38% 0.189 293.745)","colors.violet.950":"oklch(28.3% 0.141 291.089)","colors.white":"#fff","colors.yellow.100":"oklch(97.3% 0.071 103.193)","colors.yellow.200":"oklch(94.5% 0.129 101.54)","colors.yellow.300":"oklch(90.5% 0.182 98.111)","colors.yellow.400":"oklch(85.2% 0.199 91.936)","colors.yellow.50":"oklch(98.7% 0.026 102.212)","colors.yellow.500":"oklch(79.5% 0.184 86.047)","colors.yellow.600":"oklch(68.1% 0.162 75.834)","colors.yellow.700":"oklch(55.4% 0.135 66.442)","colors.yellow.800":"oklch(47.6% 0.114 61.907)","colors.yellow.900":"oklch(42.1% 0.095 57.708)","colors.yellow.950":"oklch(28.6% 0.066 53.813)","colors.zinc.100":"oklch(96.7% 0.001 286.375)","colors.zinc.200":"oklch(92% 0.004 286.32)","colors.zinc.300":"oklch(87.1% 0.006 286.286)","colors.zinc.400":"oklch(70.5% 0.015 286.067)","colors.zinc.50":"oklch(98.5% 0 0)","colors.zinc.500":"oklch(55.2% 0.016 285.938)","colors.zinc.600":"oklch(44.2% 0.017 285.786)","colors.zinc.700":"oklch(37% 0.013 285.805)","colors.zinc.800":"oklch(27.4% 0.006 286.033)","colors.zinc.900":"oklch(21% 0.006 285.885)","colors.zinc.950":"oklch(14.1% 0.005 285.823)","durations.fast":"150ms","durations.faster":"100ms","durations.fastest":"50ms","durations.normal":"200ms","durations.slow":"300ms","durations.slower":"400ms","durations.slowest":"500ms","easings.default":"cubic-bezier(0.4, 0, 0.2, 1)","easings.in":"cubic-bezier(0.4, 0, 1, 1)","easings.in-out":"cubic-bezier(0.4, 0, 0.2, 1)","easings.linear":"linear","easings.out":"cubic-bezier(0, 0, 0.2, 1)","fontSizes.2xl":"1.5rem","fontSizes.2xs":"0.5rem","fontSizes.3xl":"1.875rem","fontSizes.4xl":"2.25rem","fontSizes.5xl":"3rem","fontSizes.6xl":"3.75rem","fontSizes.7xl":"4.5rem","fontSizes.8xl":"6rem","fontSizes.9xl":"8rem","fontSizes.lg":"1.125rem","fontSizes.md":"1rem","fontSizes.sm":"0.875rem","fontSizes.xl":"1.25rem","fontSizes.xs":"0.75rem","fontWeights.black":"900","fontWeights.bold":"700","fontWeights.extrabold":"800","fontWeights.extralight":"200","fontWeights.light":"300","fontWeights.medium":"500","fontWeights.normal":"400","fontWeights.semibold":"600","fontWeights.thin":"100","fonts.body":"'Instrument Sans', system-ui, sans-serif","fonts.display":"'Syne', system-ui, sans-serif","fonts.mono":"'IBM Plex Mono', ui-monospace, monospace","fonts.sans":"ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"","fonts.serif":"ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif","fonts.ui":"'IBM Plex Sans', system-ui, sans-serif","letterSpacings.normal":"0em","letterSpacings.tight":"-0.025em","letterSpacings.tighter":"-0.05em","letterSpacings.wide":"0.025em","letterSpacings.wider":"0.05em","letterSpacings.widest":"0.1em","lineHeights.loose":"2","lineHeights.none":"1","lineHeights.normal":"1.5","lineHeights.relaxed":"1.625","lineHeights.snug":"1.375","lineHeights.tight":"1.25","radii.2xl":"1rem","radii.3xl":"1.5rem","radii.4xl":"2rem","radii.full":"9999px","radii.lg":"0.625rem","radii.md":"0.5rem","radii.siteLg":"10px","radii.sm":"0.375rem","radii.xl":"0.75rem","radii.xs":"0.125rem","shadows.2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)","shadows.2xs":"0 1px rgb(0 0 0 / 0.05)","shadows.focusRing":"0 0 0 2px #0c0e12, 0 0 0 4px #5eead4","shadows.inner":"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)","shadows.inset-2xs":"inset 0 1px rgb(0 0 0 / 0.05)","shadows.inset-sm":"inset 0 2px 4px rgb(0 0 0 / 0.05)","shadows.inset-xs":"inset 0 1px 1px rgb(0 0 0 / 0.05)","shadows.lg":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","shadows.md":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","shadows.panel":"0 8px 32px #00000066","shadows.sm":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","shadows.xl":"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","shadows.xs":"0 1px 2px 0 rgb(0 0 0 / 0.05)","sizes.0":"0rem","sizes.0.5":"0.125rem","sizes.1":"0.25rem","sizes.1.5":"0.375rem","sizes.10":"2.5rem","sizes.11":"2.75rem","sizes.12":"3rem","sizes.14":"3.5rem","sizes.16":"4rem","sizes.2":"0.5rem","sizes.2.5":"0.625rem","sizes.20":"5rem","sizes.24":"6rem","sizes.28":"7rem","sizes.2xl":"42rem","sizes.3":"0.75rem","sizes.3.5":"0.875rem","sizes.32":"8rem","sizes.36":"9rem","sizes.3xl":"48rem","sizes.4":"1rem","sizes.4.5":"1.125rem","sizes.40":"10rem","sizes.44":"11rem","sizes.48":"12rem","sizes.4xl":"56rem","sizes.5":"1.25rem","sizes.5.5":"1.375rem","sizes.52":"13rem","sizes.56":"14rem","sizes.5xl":"64rem","sizes.6":"1.5rem","sizes.60":"15rem","sizes.64":"16rem","sizes.6xl":"72rem","sizes.7":"1.75rem","sizes.72":"18rem","sizes.7xl":"80rem","sizes.8":"2rem","sizes.80":"20rem","sizes.8xl":"90rem","sizes.9":"2.25rem","sizes.96":"24rem","sizes.breakpoint-2xl":"96rem","sizes.breakpoint-lg":"64rem","sizes.breakpoint-md":"48rem","sizes.breakpoint-sm":"40rem","sizes.breakpoint-xl":"80rem","sizes.fit":"fit-content","sizes.full":"100%","sizes.lg":"32rem","sizes.max":"max-content","sizes.md":"28rem","sizes.min":"min-content","sizes.prose":"60ch","sizes.sm":"24rem","sizes.xl":"36rem","sizes.xs":"20rem","spacing.-0.5":"calc(var(--spacing-0\\.5) * -1)","spacing.-1":"calc(var(--spacing-1) * -1)","spacing.-1.5":"calc(var(--spacing-1\\.5) * -1)","spacing.-10":"calc(var(--spacing-10) * -1)","spacing.-11":"calc(var(--spacing-11) * -1)","spacing.-12":"calc(var(--spacing-12) * -1)","spacing.-14":"calc(var(--spacing-14) * -1)","spacing.-16":"calc(var(--spacing-16) * -1)","spacing.-2":"calc(var(--spacing-2) * -1)","spacing.-2.5":"calc(var(--spacing-2\\.5) * -1)","spacing.-20":"calc(var(--spacing-20) * -1)","spacing.-24":"calc(var(--spacing-24) * -1)","spacing.-28":"calc(var(--spacing-28) * -1)","spacing.-3":"calc(var(--spacing-3) * -1)","spacing.-3.5":"calc(var(--spacing-3\\.5) * -1)","spacing.-32":"calc(var(--spacing-32) * -1)","spacing.-36":"calc(var(--spacing-36) * -1)","spacing.-4":"calc(var(--spacing-4) * -1)","spacing.-4.5":"calc(var(--spacing-4\\.5) * -1)","spacing.-40":"calc(var(--spacing-40) * -1)","spacing.-44":"calc(var(--spacing-44) * -1)","spacing.-48":"calc(var(--spacing-48) * -1)","spacing.-5":"calc(var(--spacing-5) * -1)","spacing.-5.5":"calc(var(--spacing-5\\.5) * -1)","spacing.-52":"calc(var(--spacing-52) * -1)","spacing.-56":"calc(var(--spacing-56) * -1)","spacing.-6":"calc(var(--spacing-6) * -1)","spacing.-60":"calc(var(--spacing-60) * -1)","spacing.-64":"calc(var(--spacing-64) * -1)","spacing.-7":"calc(var(--spacing-7) * -1)","spacing.-72":"calc(var(--spacing-72) * -1)","spacing.-8":"calc(var(--spacing-8) * -1)","spacing.-80":"calc(var(--spacing-80) * -1)","spacing.-9":"calc(var(--spacing-9) * -1)","spacing.-96":"calc(var(--spacing-96) * -1)","spacing.-accordionContentB":"calc(var(--spacing-accordion-content-b) * -1)","spacing.-accordionContentY":"calc(var(--spacing-accordion-content-y) * -1)","spacing.-accordionGap":"calc(var(--spacing-accordion-gap) * -1)","spacing.-accordionInsetX":"calc(var(--spacing-accordion-inset-x) * -1)","spacing.-accordionTriggerMinH":"calc(var(--spacing-accordion-trigger-min-h) * -1)","spacing.-accordionTriggerY":"calc(var(--spacing-accordion-trigger-y) * -1)","spacing.-badgeX":"calc(var(--spacing-badge-x) * -1)","spacing.-badgeY":"calc(var(--spacing-badge-y) * -1)","spacing.-controlMinHLg":"calc(var(--spacing-control-min-h-lg) * -1)","spacing.-controlMinHMd":"calc(var(--spacing-control-min-h-md) * -1)","spacing.-controlMinHSm":"calc(var(--spacing-control-min-h-sm) * -1)","spacing.-controlMinHXs":"calc(var(--spacing-control-min-h-xs) * -1)","spacing.-controlX":"calc(var(--spacing-control-x) * -1)","spacing.-controlXSm":"calc(var(--spacing-control-x-sm) * -1)","spacing.-controlY":"calc(var(--spacing-control-y) * -1)","spacing.-controlYSm":"calc(var(--spacing-control-y-sm) * -1)","spacing.-gap":"calc(var(--spacing-gap) * -1)","spacing.-gapLg":"calc(var(--spacing-gap-lg) * -1)","spacing.-gapSm":"calc(var(--spacing-gap-sm) * -1)","spacing.-insetX":"calc(var(--spacing-inset-x) * -1)","spacing.-insetXLg":"calc(var(--spacing-inset-x-lg) * -1)","spacing.-insetXSm":"calc(var(--spacing-inset-x-sm) * -1)","spacing.-insetY":"calc(var(--spacing-inset-y) * -1)","spacing.-insetYLg":"calc(var(--spacing-inset-y-lg) * -1)","spacing.-insetYSm":"calc(var(--spacing-inset-y-sm) * -1)","spacing.-padLg":"calc(var(--spacing-pad-lg) * -1)","spacing.-padMd":"calc(var(--spacing-pad-md) * -1)","spacing.-padSm":"calc(var(--spacing-pad-sm) * -1)","spacing.-padXl":"calc(var(--spacing-pad-xl) * -1)","spacing.0":"0rem","spacing.0.5":"0.125rem","spacing.1":"0.25rem","spacing.1.5":"0.375rem","spacing.10":"2.5rem","spacing.11":"2.75rem","spacing.12":"3rem","spacing.14":"3.5rem","spacing.16":"4rem","spacing.2":"0.5rem","spacing.2.5":"0.625rem","spacing.20":"5rem","spacing.24":"6rem","spacing.28":"7rem","spacing.3":"0.75rem","spacing.3.5":"0.875rem","spacing.32":"8rem","spacing.36":"9rem","spacing.4":"1rem","spacing.4.5":"1.125rem","spacing.40":"10rem","spacing.44":"11rem","spacing.48":"12rem","spacing.5":"1.25rem","spacing.5.5":"1.375rem","spacing.52":"13rem","spacing.56":"14rem","spacing.6":"1.5rem","spacing.60":"15rem","spacing.64":"16rem","spacing.7":"1.75rem","spacing.72":"18rem","spacing.8":"2rem","spacing.80":"20rem","spacing.9":"2.25rem","spacing.96":"24rem","spacing.accordionContentB":"1rem","spacing.accordionContentY":"1rem","spacing.accordionGap":"0.75rem","spacing.accordionInsetX":"1.75rem","spacing.accordionTriggerMinH":"3.5rem","spacing.accordionTriggerY":"1.375rem","spacing.badgeX":"0.5rem","spacing.badgeY":"0.125rem","spacing.controlMinHLg":"2.5rem","spacing.controlMinHMd":"2.25rem","spacing.controlMinHSm":"2rem","spacing.controlMinHXs":"1.75rem","spacing.controlX":"0.75rem","spacing.controlXSm":"0.625rem","spacing.controlY":"0.375rem","spacing.controlYSm":"0.3125rem","spacing.gap":"1rem","spacing.gapLg":"1.25rem","spacing.gapSm":"0.75rem","spacing.insetX":"1.5rem","spacing.insetXLg":"1.75rem","spacing.insetXSm":"1.125rem","spacing.insetY":"0.875rem","spacing.insetYLg":"1.125rem","spacing.insetYSm":"0.75rem","spacing.padLg":"2rem","spacing.padMd":"1.625rem","spacing.padSm":"1.25rem","spacing.padXl":"2.5rem"}
|
|
4
|
+
|
|
5
|
+
const tokenVars = {"sizes.0.5":"var(--sizes-0\\.5)","sizes.1.5":"var(--sizes-1\\.5)","sizes.2.5":"var(--sizes-2\\.5)","sizes.3.5":"var(--sizes-3\\.5)","sizes.4.5":"var(--sizes-4\\.5)","sizes.5.5":"var(--sizes-5\\.5)","spacing.-0.5":"var(--spacing-0\\.5)","spacing.-1":"var(--spacing-1)","spacing.-1.5":"var(--spacing-1\\.5)","spacing.-10":"var(--spacing-10)","spacing.-11":"var(--spacing-11)","spacing.-12":"var(--spacing-12)","spacing.-14":"var(--spacing-14)","spacing.-16":"var(--spacing-16)","spacing.-2":"var(--spacing-2)","spacing.-2.5":"var(--spacing-2\\.5)","spacing.-20":"var(--spacing-20)","spacing.-24":"var(--spacing-24)","spacing.-28":"var(--spacing-28)","spacing.-3":"var(--spacing-3)","spacing.-3.5":"var(--spacing-3\\.5)","spacing.-32":"var(--spacing-32)","spacing.-36":"var(--spacing-36)","spacing.-4":"var(--spacing-4)","spacing.-4.5":"var(--spacing-4\\.5)","spacing.-40":"var(--spacing-40)","spacing.-44":"var(--spacing-44)","spacing.-48":"var(--spacing-48)","spacing.-5":"var(--spacing-5)","spacing.-5.5":"var(--spacing-5\\.5)","spacing.-52":"var(--spacing-52)","spacing.-56":"var(--spacing-56)","spacing.-6":"var(--spacing-6)","spacing.-60":"var(--spacing-60)","spacing.-64":"var(--spacing-64)","spacing.-7":"var(--spacing-7)","spacing.-72":"var(--spacing-72)","spacing.-8":"var(--spacing-8)","spacing.-80":"var(--spacing-80)","spacing.-9":"var(--spacing-9)","spacing.-96":"var(--spacing-96)","spacing.-accordionContentB":"var(--spacing-accordion-content-b)","spacing.-accordionContentY":"var(--spacing-accordion-content-y)","spacing.-accordionGap":"var(--spacing-accordion-gap)","spacing.-accordionInsetX":"var(--spacing-accordion-inset-x)","spacing.-accordionTriggerMinH":"var(--spacing-accordion-trigger-min-h)","spacing.-accordionTriggerY":"var(--spacing-accordion-trigger-y)","spacing.-badgeX":"var(--spacing-badge-x)","spacing.-badgeY":"var(--spacing-badge-y)","spacing.-controlMinHLg":"var(--spacing-control-min-h-lg)","spacing.-controlMinHMd":"var(--spacing-control-min-h-md)","spacing.-controlMinHSm":"var(--spacing-control-min-h-sm)","spacing.-controlMinHXs":"var(--spacing-control-min-h-xs)","spacing.-controlX":"var(--spacing-control-x)","spacing.-controlXSm":"var(--spacing-control-x-sm)","spacing.-controlY":"var(--spacing-control-y)","spacing.-controlYSm":"var(--spacing-control-y-sm)","spacing.-gap":"var(--spacing-gap)","spacing.-gapLg":"var(--spacing-gap-lg)","spacing.-gapSm":"var(--spacing-gap-sm)","spacing.-insetX":"var(--spacing-inset-x)","spacing.-insetXLg":"var(--spacing-inset-x-lg)","spacing.-insetXSm":"var(--spacing-inset-x-sm)","spacing.-insetY":"var(--spacing-inset-y)","spacing.-insetYLg":"var(--spacing-inset-y-lg)","spacing.-insetYSm":"var(--spacing-inset-y-sm)","spacing.-padLg":"var(--spacing-pad-lg)","spacing.-padMd":"var(--spacing-pad-md)","spacing.-padSm":"var(--spacing-pad-sm)","spacing.-padXl":"var(--spacing-pad-xl)","spacing.0.5":"var(--spacing-0\\.5)","spacing.1.5":"var(--spacing-1\\.5)","spacing.2.5":"var(--spacing-2\\.5)","spacing.3.5":"var(--spacing-3\\.5)","spacing.4.5":"var(--spacing-4\\.5)","spacing.5.5":"var(--spacing-5\\.5)"}
|
|
6
|
+
const resolveVar = (path) => tokenVars[path] || toCssVar(path)
|
|
7
|
+
|
|
8
|
+
export const token = /* @__PURE__ */ Object.assign(
|
|
9
|
+
function token(path, fallback) {
|
|
10
|
+
const value = tokens[path]
|
|
11
|
+
return value === undefined ? colorMix(tokens, path, resolveVar) || fallback : value || resolveVar(path)
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
var: function tokenVar(path, fallback) {
|
|
15
|
+
return tokens[path] === undefined ? fallback : resolveVar(path)
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
)
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from './conditions';
|
|
1
|
+
export * from './tokens';
|
|
2
|
+
export * from './system';
|
|
4
3
|
export * from './pattern';
|
|
5
4
|
export * from './recipe';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './jsx';
|
|
8
|
-
export * from './style-props';
|
|
5
|
+
export * from './jsx';
|
|
@@ -1,61 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ElementType, JSX, ComponentPropsWithRef, ComponentType, Component } from 'react'
|
|
1
|
+
import type { ElementType, JSX } from 'react';
|
|
3
2
|
import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe';
|
|
4
|
-
import type { Assign,
|
|
3
|
+
import type { Assign, JsxHTMLProps, JsxStyleProps } from './system';
|
|
5
4
|
|
|
6
|
-
interface
|
|
5
|
+
interface AnyProps {
|
|
7
6
|
[k: string]: unknown
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
export type DataAttrs = Record<`data-${string}`, unknown>
|
|
11
10
|
|
|
12
11
|
export interface UnstyledProps {
|
|
13
|
-
/**
|
|
14
|
-
* Whether to remove recipe styles
|
|
15
|
-
*/
|
|
16
12
|
unstyled?: boolean | undefined
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
export interface AsProps {
|
|
20
|
-
/**
|
|
21
|
-
* The element to render as
|
|
22
|
-
*/
|
|
23
16
|
as?: ElementType | undefined
|
|
24
17
|
}
|
|
25
18
|
|
|
26
|
-
export type ComponentProps<T extends ElementType> = T extends
|
|
27
|
-
? JSX.
|
|
28
|
-
:
|
|
19
|
+
export type ComponentProps<T extends ElementType> = T extends keyof JSX.IntrinsicElements
|
|
20
|
+
? JSX.IntrinsicElements[T]
|
|
21
|
+
: T extends { (props: infer Props): any }
|
|
22
|
+
? Props
|
|
23
|
+
: T extends abstract new (props: infer Props) => any
|
|
24
|
+
? Props
|
|
25
|
+
: {}
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
type BaseComponentProps<T extends ElementType> = ComponentProps<T> & UnstyledProps & AsProps
|
|
28
|
+
|
|
29
|
+
export type StyledComponentProps<T extends ElementType, P extends AnyProps = {}> = JsxHTMLProps<
|
|
30
|
+
BaseComponentProps<T>,
|
|
31
|
+
Assign<JsxStyleProps, P>
|
|
32
|
+
>
|
|
33
|
+
|
|
34
|
+
export interface StyledComponent<T extends ElementType, P extends AnyProps = {}> {
|
|
35
|
+
(props: StyledComponentProps<T, P>): JSX.Element
|
|
32
36
|
displayName?: string | undefined
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
interface
|
|
39
|
+
interface RuntimeRecipeFn {
|
|
36
40
|
__type: any
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
export interface JsxFactoryOptions<TProps extends
|
|
43
|
+
export interface JsxFactoryOptions<TProps extends AnyProps, F extends string = string> {
|
|
40
44
|
dataAttr?: boolean
|
|
41
45
|
defaultProps?: Partial<TProps> & DataAttrs
|
|
42
46
|
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
|
|
43
|
-
forwardProps?:
|
|
47
|
+
forwardProps?: readonly F[]
|
|
44
48
|
}
|
|
45
49
|
|
|
46
|
-
|
|
50
|
+
// Filters the few forwarded keys; a nested conditional here hits TS2590 on components with many props.
|
|
51
|
+
type ForwardedStyleKeys<T extends ElementType, F extends string> = Extract<Extract<F, keyof JsxStyleProps>, keyof ComponentProps<T>>
|
|
52
|
+
|
|
53
|
+
/** Props `S`, with each forwarded prop that shares a style prop's name typed from the component. */
|
|
54
|
+
export type WithForwardedProps<S, T extends ElementType, F extends string> = [ForwardedStyleKeys<T, F>] extends [never]
|
|
55
|
+
? S
|
|
56
|
+
: Assign<S, Pick<ComponentProps<T>, ForwardedStyleKeys<T, F>>>
|
|
57
|
+
|
|
58
|
+
export type JsxRecipeProps<T extends ElementType, P extends AnyProps> = JsxHTMLProps<BaseComponentProps<T>, Assign<JsxStyleProps, P>>
|
|
47
59
|
|
|
48
|
-
export type JsxElement<T extends ElementType, P extends
|
|
49
|
-
? StyledComponent<A,
|
|
60
|
+
export type JsxElement<T extends ElementType, P extends AnyProps> = T extends StyledComponent<infer A, infer B>
|
|
61
|
+
? StyledComponent<A, Assign<B, P>>
|
|
50
62
|
: StyledComponent<T, P>
|
|
51
63
|
|
|
52
64
|
export interface JsxFactory {
|
|
53
65
|
<T extends ElementType>(component: T): StyledComponent<T, {}>
|
|
54
|
-
<T extends ElementType, P extends RecipeVariantRecord>(component: T, recipe: RecipeDefinition<P>, options?: JsxFactoryOptions<JsxRecipeProps<T, RecipeSelection<P
|
|
55
|
-
|
|
56
|
-
RecipeSelection<P>
|
|
57
|
-
>
|
|
58
|
-
<T extends ElementType, P extends RecipeFn>(component: T, recipeFn: P, options?: JsxFactoryOptions<JsxRecipeProps<T, P['__type']>>): JsxElement<T, P['__type']>
|
|
66
|
+
<T extends ElementType, P extends RecipeVariantRecord = {}, F extends string = never>(component: T, recipe: RecipeDefinition<P>, options?: JsxFactoryOptions<JsxRecipeProps<T, RecipeSelection<P>>, F>): JsxElement<T, WithForwardedProps<RecipeSelection<P>, T, F>>
|
|
67
|
+
<T extends ElementType, P extends RuntimeRecipeFn, F extends string = never>(component: T, recipeFn: P, options?: JsxFactoryOptions<JsxRecipeProps<T, P["__type"]>, F>): JsxElement<T, WithForwardedProps<P["__type"], T, F>>
|
|
59
68
|
}
|
|
60
69
|
|
|
61
70
|
export type JsxElements = {
|
|
@@ -64,6 +73,6 @@ export type JsxElements = {
|
|
|
64
73
|
|
|
65
74
|
export type Styled = JsxFactory & JsxElements
|
|
66
75
|
|
|
67
|
-
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<
|
|
76
|
+
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<BaseComponentProps<T>, JsxStyleProps>
|
|
68
77
|
|
|
69
78
|
export type StyledVariantProps<T extends StyledComponent<any, any>> = T extends StyledComponent<any, infer Props> ? Props : never
|
|
@@ -1,78 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CssProperty, SystemStyleObject } from './system-types';
|
|
3
|
-
import type { TokenCategory } from '../tokens/index';
|
|
1
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from './system';
|
|
4
2
|
|
|
5
|
-
type
|
|
6
|
-
type LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)
|
|
3
|
+
export type PatternPrimitive = string | number | boolean
|
|
7
4
|
|
|
8
|
-
export type
|
|
9
|
-
| { type: 'property'; value: CssProperty; description?: string }
|
|
10
|
-
| { type: 'enum'; value: string[]; description?: string }
|
|
11
|
-
| { type: 'token'; value: TokenCategory; property?: CssProperty; description?: string }
|
|
12
|
-
| { type: 'string' | 'boolean' | 'number'; description?: string }
|
|
5
|
+
export type PatternPropertyValue<Property extends keyof SystemProperties> = SystemProperties[Property]
|
|
13
6
|
|
|
14
|
-
export
|
|
15
|
-
map: (value: any, fn: (value: string) => string | undefined) => any
|
|
16
|
-
isCssUnit: (value: any) => boolean
|
|
17
|
-
isCssVar: (value: any) => boolean
|
|
18
|
-
isCssFunction: (value: any) => boolean
|
|
19
|
-
}
|
|
7
|
+
export type PatternTokenValue<Value> = ConditionalValue<Value>
|
|
20
8
|
|
|
21
|
-
export interface
|
|
22
|
-
|
|
9
|
+
export interface PatternHelpers {
|
|
10
|
+
map(value: unknown, fn: (value: string) => string | undefined): unknown
|
|
11
|
+
isCssUnit(value: unknown): boolean
|
|
12
|
+
isCssVar(value: unknown): boolean
|
|
13
|
+
isCssFunction(value: unknown): boolean
|
|
23
14
|
}
|
|
24
15
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export type PatternDefaultValueFn<T> = (props: InferProps<T>) => PatternDefaultValue<T>
|
|
30
|
-
|
|
31
|
-
export interface PatternConfig<T extends PatternProperties = PatternProperties> {
|
|
32
|
-
/**
|
|
33
|
-
* The description of the pattern. This will be used in the JSDoc comment.
|
|
34
|
-
*/
|
|
35
|
-
description?: string
|
|
36
|
-
/**
|
|
37
|
-
* The JSX element rendered by the pattern
|
|
38
|
-
* @default 'div'
|
|
39
|
-
*/
|
|
40
|
-
jsxElement?: string
|
|
41
|
-
/**
|
|
42
|
-
* The properties of the pattern.
|
|
43
|
-
*/
|
|
44
|
-
properties?: T
|
|
45
|
-
/**
|
|
46
|
-
* The default values of the pattern.
|
|
47
|
-
*/
|
|
48
|
-
defaultValues?: PatternDefaultValue<T> | PatternDefaultValueFn<T>
|
|
49
|
-
/**
|
|
50
|
-
* The css object this pattern will generate.
|
|
51
|
-
*/
|
|
52
|
-
transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
|
|
53
|
-
/**
|
|
54
|
-
* Whether the pattern is deprecated.
|
|
55
|
-
*/
|
|
56
|
-
deprecated?: boolean | string
|
|
57
|
-
/**
|
|
58
|
-
* The jsx element name this pattern will generate.
|
|
59
|
-
*/
|
|
60
|
-
jsxName?: string
|
|
61
|
-
/**
|
|
62
|
-
* The jsx elements to track for this pattern. Can be string or Regexp.
|
|
63
|
-
*
|
|
64
|
-
* @default capitalize(pattern.name)
|
|
65
|
-
* @example ['Button', 'Link', /Button$/]
|
|
66
|
-
*/
|
|
67
|
-
jsx?: Array<string | RegExp>
|
|
68
|
-
/**
|
|
69
|
-
* Whether to only generate types for the specified properties.
|
|
70
|
-
* This will disallow css properties
|
|
71
|
-
*/
|
|
16
|
+
export interface PatternConfig<Props extends object = object> {
|
|
17
|
+
properties?: Props
|
|
18
|
+
defaultValues?: Partial<Props> | ((props: Props) => Partial<Props>)
|
|
19
|
+
transform?: (props: Props, helpers: PatternHelpers) => SystemStyleObject
|
|
72
20
|
strict?: boolean
|
|
73
|
-
|
|
74
|
-
* @experimental
|
|
75
|
-
* Disallow certain css properties for this pattern
|
|
76
|
-
*/
|
|
77
|
-
blocklist?: LiteralUnion<CssProperty>[]
|
|
21
|
+
blocklist?: Array<keyof SystemProperties>
|
|
78
22
|
}
|
|
23
|
+
|
|
24
|
+
export interface PatternRuntimeConfig<Props extends object = object> extends PatternConfig<Props> {
|
|
25
|
+
transform: (props: Props, helpers: PatternHelpers) => SystemStyleObject
|
|
26
|
+
}
|
|
@@ -1,181 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
import type { RecipeRule } from './static-css';
|
|
3
|
-
import type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types';
|
|
1
|
+
import type { SystemStyleObject } from './system';
|
|
4
2
|
|
|
5
|
-
type
|
|
3
|
+
export type RecipeVariantProps<T> = T extends (props?: infer Props) => unknown ? Props : never
|
|
6
4
|
|
|
7
|
-
export type
|
|
5
|
+
export type RecipeVariant<T> = Required<NonNullable<RecipeVariantProps<T>>>
|
|
8
6
|
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[K in keyof T]?: StringToBoolean<keyof T[K]> | undefined
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Extract the variant as optional props from a `cva` function.
|
|
19
|
-
* Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.
|
|
20
|
-
*/
|
|
21
|
-
export type RecipeVariantProps<
|
|
22
|
-
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
23
|
-
> = Pretty<Parameters<T>[0]>
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Extract the variants from a `cva` function.
|
|
27
|
-
*/
|
|
28
|
-
export type RecipeVariant<
|
|
29
|
-
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
30
|
-
> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>
|
|
7
|
+
export type RecipeVariantMap<Variant extends object> = {
|
|
8
|
+
[K in keyof Variant]-?: Array<Exclude<Variant[K], undefined>>
|
|
9
|
+
}
|
|
31
10
|
|
|
32
|
-
type
|
|
11
|
+
export type RecipeConfigVariantMap<T> = {
|
|
33
12
|
[K in keyof T]: Array<keyof T[K]>
|
|
34
13
|
}
|
|
35
14
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
config: RecipeConfig<T>
|
|
46
|
-
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
47
|
-
props: Props,
|
|
48
|
-
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
49
|
-
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
15
|
+
export interface RecipeRuntimeFn<Props extends object = object, Map extends object = object> {
|
|
16
|
+
(props?: Props): string
|
|
17
|
+
__type: Props
|
|
18
|
+
variantMap: Map
|
|
19
|
+
variantKeys: Array<keyof Props>
|
|
20
|
+
raw: (props?: Props) => SystemStyleObject
|
|
21
|
+
splitVariantProps<T extends Record<string, any>>(props: T): [Props, Omit<T, keyof Props>]
|
|
22
|
+
getVariantProps: (props?: Props) => Props
|
|
23
|
+
merge(recipe: RecipeRuntimeFn): RecipeRuntimeFn
|
|
50
24
|
}
|
|
51
25
|
|
|
52
|
-
type
|
|
53
|
-
|
|
54
|
-
export
|
|
55
|
-
|
|
26
|
+
export type SlotRecord<Slot extends string, Value> = Partial<Record<Slot, Value>>
|
|
27
|
+
|
|
28
|
+
export interface SlotRecipeRuntimeFn<Slot extends string, Props extends object = object, Map extends object = object> {
|
|
29
|
+
(props?: Props): Record<Slot, string>
|
|
30
|
+
__type: Props
|
|
31
|
+
__slot: Slot
|
|
32
|
+
variantMap: Map
|
|
33
|
+
variantKeys: Array<keyof Props>
|
|
34
|
+
raw: (props?: Props) => Record<Slot, SystemStyleObject>
|
|
35
|
+
splitVariantProps<T extends Record<string, any>>(props: T): [Props, Omit<T, keyof Props>]
|
|
36
|
+
getVariantProps: (props?: Props) => Props
|
|
56
37
|
}
|
|
57
38
|
|
|
58
|
-
export type
|
|
59
|
-
|
|
39
|
+
export type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
|
|
40
|
+
|
|
41
|
+
export type RecipeVariantRecord = Record<string, Record<string, SystemStyleObject>>
|
|
42
|
+
|
|
43
|
+
export type RecipeSelection<T extends RecipeVariantRecord> = string extends keyof T
|
|
44
|
+
? {}
|
|
45
|
+
: {
|
|
46
|
+
[K in keyof T]?: StringToBoolean<keyof T[K]> | undefined
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type RecipeCompoundSelection<T> = {
|
|
50
|
+
[K in keyof T]?: StringToBoolean<keyof T[K]> | Array<StringToBoolean<keyof T[K]>> | undefined
|
|
60
51
|
}
|
|
61
52
|
|
|
62
53
|
export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {
|
|
63
|
-
/**
|
|
64
|
-
* The base styles of the recipe.
|
|
65
|
-
*/
|
|
66
54
|
base?: SystemStyleObject
|
|
67
|
-
/**
|
|
68
|
-
* Whether the recipe is deprecated.
|
|
69
|
-
*/
|
|
70
|
-
deprecated?: boolean | string
|
|
71
|
-
/**
|
|
72
|
-
* The multi-variant styles of the recipe.
|
|
73
|
-
*/
|
|
74
55
|
variants?: T
|
|
75
|
-
/**
|
|
76
|
-
* The default variants of the recipe.
|
|
77
|
-
*/
|
|
78
56
|
defaultVariants?: RecipeSelection<T>
|
|
79
|
-
|
|
80
|
-
* The styles to apply when a combination of variants is selected.
|
|
81
|
-
*/
|
|
82
|
-
compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
|
|
57
|
+
compoundVariants?: Array<RecipeCompoundSelection<T> & { css: SystemStyleObject }>
|
|
83
58
|
}
|
|
84
59
|
|
|
85
|
-
export
|
|
86
|
-
|
|
87
|
-
interface RecipeConfigMeta {
|
|
88
|
-
/**
|
|
89
|
-
* The class name of the recipe.
|
|
90
|
-
*/
|
|
91
|
-
className: string
|
|
92
|
-
/**
|
|
93
|
-
* The description of the recipe. This will be used in the JSDoc comment.
|
|
94
|
-
*/
|
|
95
|
-
description?: string
|
|
96
|
-
/**
|
|
97
|
-
* The jsx elements to track for this recipe. Can be string or Regexp.
|
|
98
|
-
*
|
|
99
|
-
* @default capitalize(recipe.name)
|
|
100
|
-
* @example ['Button', 'Link', /Button$/]
|
|
101
|
-
*/
|
|
102
|
-
jsx?: Array<string | RegExp>
|
|
103
|
-
/**
|
|
104
|
-
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
105
|
-
*/
|
|
106
|
-
staticCss?: RecipeRule[]
|
|
60
|
+
export interface RecipeCreatorFn {
|
|
61
|
+
<T extends RecipeVariantRecord>(config: RecipeDefinition<T>): RecipeRuntimeFn<RecipeSelection<T>, RecipeConfigVariantMap<T>>
|
|
107
62
|
}
|
|
108
63
|
|
|
109
|
-
export
|
|
110
|
-
extends RecipeDefinition<T>,
|
|
111
|
-
RecipeConfigMeta {}
|
|
112
|
-
|
|
113
|
-
/* -----------------------------------------------------------------------------
|
|
114
|
-
* Recipe / Slot
|
|
115
|
-
* -----------------------------------------------------------------------------*/
|
|
116
|
-
|
|
117
|
-
type SlotRecord<S extends string, T> = Partial<Record<S, T>>
|
|
118
|
-
|
|
119
|
-
export type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>
|
|
64
|
+
export type SlotRecipeVariantRecord<Slot extends string> = Record<string, Record<string, SlotRecord<Slot, SystemStyleObject>>>
|
|
120
65
|
|
|
121
|
-
export
|
|
122
|
-
props?: RecipeSelection<T>,
|
|
123
|
-
) => SlotRecord<S, string>
|
|
124
|
-
|
|
125
|
-
export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>
|
|
126
|
-
extends SlotRecipeVariantFn<S, T> {
|
|
127
|
-
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
128
|
-
variantKeys: (keyof T)[]
|
|
129
|
-
variantMap: RecipeVariantMap<T>
|
|
130
|
-
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
131
|
-
props: Props,
|
|
132
|
-
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
133
|
-
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export type SlotRecipeCompoundVariant<S extends string, T> = T & {
|
|
137
|
-
css: SlotRecord<S, SystemStyleObject>
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface SlotRecipeDefinition<
|
|
141
|
-
S extends string = string,
|
|
142
|
-
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
143
|
-
> {
|
|
144
|
-
/**
|
|
145
|
-
* An optional class name that can be used to target slots in the DOM.
|
|
146
|
-
*/
|
|
66
|
+
export interface SlotRecipeDefinition<Slot extends string = string, T extends SlotRecipeVariantRecord<Slot> = SlotRecipeVariantRecord<Slot>> {
|
|
147
67
|
className?: string
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*/
|
|
151
|
-
deprecated?: boolean | string
|
|
152
|
-
/**
|
|
153
|
-
* The parts/slots of the recipe.
|
|
154
|
-
*/
|
|
155
|
-
slots: S[] | Readonly<S[]>
|
|
156
|
-
/**
|
|
157
|
-
* The base styles of the recipe.
|
|
158
|
-
*/
|
|
159
|
-
base?: SlotRecord<S, SystemStyleObject>
|
|
160
|
-
/**
|
|
161
|
-
* The multi-variant styles of the recipe.
|
|
162
|
-
*/
|
|
68
|
+
slots: readonly Slot[]
|
|
69
|
+
base?: SlotRecord<Slot, SystemStyleObject>
|
|
163
70
|
variants?: T
|
|
164
|
-
/**
|
|
165
|
-
* The default variants of the recipe.
|
|
166
|
-
*/
|
|
167
71
|
defaultVariants?: RecipeSelection<T>
|
|
168
|
-
|
|
169
|
-
* The styles to apply when a combination of variants is selected.
|
|
170
|
-
*/
|
|
171
|
-
compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
|
|
72
|
+
compoundVariants?: Array<RecipeCompoundSelection<T> & { css: SlotRecord<Slot, SystemStyleObject> }>
|
|
172
73
|
}
|
|
173
74
|
|
|
174
|
-
export
|
|
175
|
-
config: SlotRecipeDefinition<
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
export type SlotRecipeConfig<
|
|
179
|
-
S extends string = string,
|
|
180
|
-
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
181
|
-
> = SlotRecipeDefinition<S, T> & RecipeConfigMeta
|
|
75
|
+
export interface SlotRecipeCreatorFn {
|
|
76
|
+
<Slot extends string, T extends SlotRecipeVariantRecord<Slot>>(config: SlotRecipeDefinition<Slot, T>): SlotRecipeRuntimeFn<Slot, RecipeSelection<T>, RecipeConfigVariantMap<T>>
|
|
77
|
+
}
|