aeon-ui-engine 1.8.0 → 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 +28 -0
- package/package.json +5 -2
- 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 -2106
- 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 +106 -10
- package/packages/react/dist/index.js +1350 -994
- package/packages/react/src/clipboard/index.tsx +117 -0
- package/packages/react/src/composer/index.tsx +14 -5
- package/packages/react/src/index.ts +4 -0
- 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/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 +59 -0
- 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/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/scripts/emit.ts +2 -0
- package/packages/schemas/src/components.ts +63 -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 +2 -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 -77
- 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/tree/node_modules/.bin/esbuild +0 -21
- package/packages/tree/node_modules/.bin/jiti +0 -21
- package/packages/tree/node_modules/.bin/tsc +0 -21
- package/packages/tree/node_modules/.bin/tsserver +0 -21
- package/packages/tree/node_modules/.bin/tsup +0 -21
- package/packages/tree/node_modules/.bin/tsup-node +0 -21
- package/packages/tree/node_modules/.bin/tsx +0 -21
- package/packages/tree/node_modules/.bin/vite +0 -21
- package/packages/tree/node_modules/.bin/vitest +0 -21
- package/packages/tree/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/packages/tree/src/exclusive-action.test.ts +0 -54
- 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,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { SystemStyleObject } from '../types/system';
|
|
7
2
|
|
|
8
|
-
export interface BoxProperties {
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export interface BoxProperties {}
|
|
4
|
+
|
|
5
|
+
type BoxRestStyles = Omit<SystemStyleObject, keyof BoxProperties>
|
|
11
6
|
|
|
12
|
-
interface BoxStyles extends BoxProperties,
|
|
7
|
+
interface BoxStyles extends BoxProperties, BoxRestStyles {}
|
|
13
8
|
|
|
14
9
|
interface BoxPatternFn {
|
|
15
10
|
(styles?: BoxStyles): string
|
|
16
11
|
raw: (styles?: BoxStyles) => SystemStyleObject
|
|
12
|
+
propKeys: Array<keyof BoxProperties>
|
|
17
13
|
}
|
|
18
14
|
|
|
15
|
+
export declare function boxRaw(styles?: BoxStyles): SystemStyleObject;
|
|
19
16
|
|
|
20
|
-
export declare const box: BoxPatternFn;
|
|
17
|
+
export declare const box: BoxPatternFn;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const boxConfig = { transform(props) {
|
|
6
|
+
return props;
|
|
7
|
+
} }
|
|
8
|
+
|
|
9
|
+
export function boxRaw(styles) {
|
|
10
|
+
const s = getPatternStyles(boxConfig, styles || {})
|
|
11
|
+
return boxConfig.transform(s, patternFns)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const box = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function box(styles = {}) {
|
|
15
|
+
return css(boxRaw(styles))
|
|
16
|
+
}), { raw: boxRaw, propKeys: [] })
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system';
|
|
7
2
|
|
|
8
3
|
export interface CenterProperties {
|
|
9
|
-
|
|
4
|
+
inline?: ConditionalValue<boolean>
|
|
10
5
|
}
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
type CenterRestStyles = Omit<SystemStyleObject, keyof CenterProperties>
|
|
8
|
+
|
|
9
|
+
interface CenterStyles extends CenterProperties, CenterRestStyles {}
|
|
13
10
|
|
|
14
11
|
interface CenterPatternFn {
|
|
15
12
|
(styles?: CenterStyles): string
|
|
16
13
|
raw: (styles?: CenterStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof CenterProperties>
|
|
17
15
|
}
|
|
18
16
|
|
|
17
|
+
export declare function centerRaw(styles?: CenterStyles): SystemStyleObject;
|
|
19
18
|
|
|
20
|
-
export declare const center: CenterPatternFn;
|
|
19
|
+
export declare const center: CenterPatternFn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const centerConfig = { transform(props) {
|
|
6
|
+
const { inline, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: inline ? "inline-flex" : "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
...rest
|
|
12
|
+
};
|
|
13
|
+
} }
|
|
14
|
+
|
|
15
|
+
export function centerRaw(styles) {
|
|
16
|
+
const s = getPatternStyles(centerConfig, styles || {})
|
|
17
|
+
return centerConfig.transform(s, patternFns)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const center = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function center(styles = {}) {
|
|
21
|
+
return css(centerRaw(styles))
|
|
22
|
+
}), { raw: centerRaw, propKeys: ["inline"] })
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system';
|
|
7
2
|
|
|
8
3
|
export interface CircleProperties {
|
|
9
|
-
|
|
4
|
+
size?: SystemProperties["width"]
|
|
10
5
|
}
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
type CircleRestStyles = Omit<SystemStyleObject, keyof CircleProperties>
|
|
8
|
+
|
|
9
|
+
interface CircleStyles extends CircleProperties, CircleRestStyles {}
|
|
13
10
|
|
|
14
11
|
interface CirclePatternFn {
|
|
15
12
|
(styles?: CircleStyles): string
|
|
16
13
|
raw: (styles?: CircleStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof CircleProperties>
|
|
17
15
|
}
|
|
18
16
|
|
|
17
|
+
export declare function circleRaw(styles?: CircleStyles): SystemStyleObject;
|
|
19
18
|
|
|
20
|
-
export declare const circle: CirclePatternFn;
|
|
19
|
+
export declare const circle: CirclePatternFn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const circleConfig = { transform(props) {
|
|
6
|
+
const { size, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
flex: "0 0 auto",
|
|
12
|
+
width: size,
|
|
13
|
+
height: size,
|
|
14
|
+
borderRadius: "9999px",
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
} }
|
|
18
|
+
|
|
19
|
+
export function circleRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(circleConfig, styles || {})
|
|
21
|
+
return circleConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const circle = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function circle(styles = {}) {
|
|
25
|
+
return css(circleRaw(styles))
|
|
26
|
+
}), { raw: circleRaw, propKeys: ["size"] })
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { SystemStyleObject } from '../types/system';
|
|
7
2
|
|
|
8
|
-
export interface ContainerProperties {
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export interface ContainerProperties {}
|
|
4
|
+
|
|
5
|
+
type ContainerRestStyles = Omit<SystemStyleObject, keyof ContainerProperties>
|
|
11
6
|
|
|
12
|
-
interface ContainerStyles extends ContainerProperties,
|
|
7
|
+
interface ContainerStyles extends ContainerProperties, ContainerRestStyles {}
|
|
13
8
|
|
|
14
9
|
interface ContainerPatternFn {
|
|
15
10
|
(styles?: ContainerStyles): string
|
|
16
11
|
raw: (styles?: ContainerStyles) => SystemStyleObject
|
|
12
|
+
propKeys: Array<keyof ContainerProperties>
|
|
17
13
|
}
|
|
18
14
|
|
|
15
|
+
export declare function containerRaw(styles?: ContainerStyles): SystemStyleObject;
|
|
19
16
|
|
|
20
|
-
export declare const container: ContainerPatternFn;
|
|
17
|
+
export declare const container: ContainerPatternFn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const containerConfig = { transform(props) {
|
|
6
|
+
return {
|
|
7
|
+
position: "relative",
|
|
8
|
+
maxWidth: "8xl",
|
|
9
|
+
mx: "auto",
|
|
10
|
+
px: {
|
|
11
|
+
base: "4",
|
|
12
|
+
md: "6",
|
|
13
|
+
lg: "8"
|
|
14
|
+
},
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
} }
|
|
18
|
+
|
|
19
|
+
export function containerRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(containerConfig, styles || {})
|
|
21
|
+
return containerConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const container = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function container(styles = {}) {
|
|
25
|
+
return css(containerRaw(styles))
|
|
26
|
+
}), { raw: containerRaw, propKeys: [] })
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { TokenValue } from '../types/tokens';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system';
|
|
7
3
|
|
|
8
4
|
export interface CqProperties {
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
name?: ConditionalValue<TokenValue<"containerNames"> | SystemProperties["containerName"]>
|
|
6
|
+
type?: SystemProperties["containerType"]
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
type CqRestStyles = Omit<SystemStyleObject, keyof CqProperties>
|
|
10
|
+
|
|
11
|
+
interface CqStyles extends CqProperties, CqRestStyles {}
|
|
14
12
|
|
|
15
13
|
interface CqPatternFn {
|
|
16
14
|
(styles?: CqStyles): string
|
|
17
15
|
raw: (styles?: CqStyles) => SystemStyleObject
|
|
16
|
+
propKeys: Array<keyof CqProperties>
|
|
18
17
|
}
|
|
19
18
|
|
|
19
|
+
export declare function cqRaw(styles?: CqStyles): SystemStyleObject;
|
|
20
20
|
|
|
21
|
-
export declare const cq: CqPatternFn;
|
|
21
|
+
export declare const cq: CqPatternFn;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const cqConfig = {
|
|
6
|
+
transform(props) {
|
|
7
|
+
const { name, type, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
containerType: type,
|
|
10
|
+
containerName: name,
|
|
11
|
+
...rest
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
defaultValues: { type: "inline-size" }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function cqRaw(styles) {
|
|
18
|
+
const s = getPatternStyles(cqConfig, styles || {})
|
|
19
|
+
return cqConfig.transform(s, patternFns)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const cq = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function cq(styles = {}) {
|
|
23
|
+
return css(cqRaw(styles))
|
|
24
|
+
}), { raw: cqRaw, propKeys: ["name","type"] })
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { TokenValue } from '../types/tokens';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system';
|
|
7
3
|
|
|
8
4
|
export interface DividerProperties {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
color?: ConditionalValue<TokenValue<"colors"> | SystemProperties["borderColor"]>
|
|
6
|
+
orientation?: ConditionalValue<"horizontal" | "vertical">
|
|
7
|
+
thickness?: ConditionalValue<TokenValue<"sizes"> | SystemProperties["borderWidth"]>
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
|
|
10
|
+
type DividerRestStyles = Omit<SystemStyleObject, keyof DividerProperties>
|
|
11
|
+
|
|
12
|
+
interface DividerStyles extends DividerProperties, DividerRestStyles {}
|
|
15
13
|
|
|
16
14
|
interface DividerPatternFn {
|
|
17
15
|
(styles?: DividerStyles): string
|
|
18
16
|
raw: (styles?: DividerStyles) => SystemStyleObject
|
|
17
|
+
propKeys: Array<keyof DividerProperties>
|
|
19
18
|
}
|
|
20
19
|
|
|
20
|
+
export declare function dividerRaw(styles?: DividerStyles): SystemStyleObject;
|
|
21
21
|
|
|
22
|
-
export declare const divider: DividerPatternFn;
|
|
22
|
+
export declare const divider: DividerPatternFn;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const dividerConfig = {
|
|
6
|
+
transform(props, { map }) {
|
|
7
|
+
const { orientation, thickness, color: color2, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
"--thickness": thickness,
|
|
10
|
+
width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
|
|
11
|
+
height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
|
|
12
|
+
borderBlockEndWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
|
|
13
|
+
borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
|
|
14
|
+
borderColor: color2,
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
defaultValues: {
|
|
19
|
+
orientation: "horizontal",
|
|
20
|
+
thickness: "1px"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function dividerRaw(styles) {
|
|
25
|
+
const s = getPatternStyles(dividerConfig, styles || {})
|
|
26
|
+
return dividerConfig.transform(s, patternFns)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const divider = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function divider(styles = {}) {
|
|
30
|
+
return css(dividerRaw(styles))
|
|
31
|
+
}), { raw: dividerRaw, propKeys: ["color","orientation","thickness"] })
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { SystemProperties, SystemStyleObject } from '../types/system';
|
|
7
2
|
|
|
8
3
|
export interface FlexProperties {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
align?: SystemProperties["alignItems"]
|
|
5
|
+
basis?: SystemProperties["flexBasis"]
|
|
6
|
+
direction?: SystemProperties["flexDirection"]
|
|
7
|
+
grow?: SystemProperties["flexGrow"]
|
|
8
|
+
justify?: SystemProperties["justifyContent"]
|
|
9
|
+
shrink?: SystemProperties["flexShrink"]
|
|
10
|
+
wrap?: SystemProperties["flexWrap"]
|
|
16
11
|
}
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
type FlexRestStyles = Omit<SystemStyleObject, keyof FlexProperties>
|
|
14
|
+
|
|
15
|
+
interface FlexStyles extends FlexProperties, FlexRestStyles {}
|
|
19
16
|
|
|
20
17
|
interface FlexPatternFn {
|
|
21
18
|
(styles?: FlexStyles): string
|
|
22
19
|
raw: (styles?: FlexStyles) => SystemStyleObject
|
|
20
|
+
propKeys: Array<keyof FlexProperties>
|
|
23
21
|
}
|
|
24
22
|
|
|
23
|
+
export declare function flexRaw(styles?: FlexStyles): SystemStyleObject;
|
|
25
24
|
|
|
26
|
-
export declare const flex: FlexPatternFn;
|
|
25
|
+
export declare const flex: FlexPatternFn;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const flexConfig = { transform(props) {
|
|
6
|
+
const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: direction,
|
|
10
|
+
alignItems: align,
|
|
11
|
+
justifyContent: justify,
|
|
12
|
+
flexWrap: wrap2,
|
|
13
|
+
flexBasis: basis,
|
|
14
|
+
flexGrow: grow,
|
|
15
|
+
flexShrink: shrink,
|
|
16
|
+
...rest
|
|
17
|
+
};
|
|
18
|
+
} }
|
|
19
|
+
|
|
20
|
+
export function flexRaw(styles) {
|
|
21
|
+
const s = getPatternStyles(flexConfig, styles || {})
|
|
22
|
+
return flexConfig.transform(s, patternFns)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const flex = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function flex(styles = {}) {
|
|
26
|
+
return css(flexRaw(styles))
|
|
27
|
+
}), { raw: flexRaw, propKeys: ["align","basis","direction","grow","justify","shrink","wrap"] })
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { TokenValue } from '../types/tokens';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system';
|
|
7
3
|
|
|
8
4
|
export interface FloatProperties {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
offset?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["top"]>
|
|
6
|
+
offsetX?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["left"]>
|
|
7
|
+
offsetY?: ConditionalValue<TokenValue<"spacing"> | SystemProperties["top"]>
|
|
8
|
+
placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
|
|
13
9
|
}
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
type FloatRestStyles = Omit<SystemStyleObject, keyof FloatProperties>
|
|
12
|
+
|
|
13
|
+
interface FloatStyles extends FloatProperties, FloatRestStyles {}
|
|
16
14
|
|
|
17
15
|
interface FloatPatternFn {
|
|
18
16
|
(styles?: FloatStyles): string
|
|
19
17
|
raw: (styles?: FloatStyles) => SystemStyleObject
|
|
18
|
+
propKeys: Array<keyof FloatProperties>
|
|
20
19
|
}
|
|
21
20
|
|
|
21
|
+
export declare function floatRaw(styles?: FloatStyles): SystemStyleObject;
|
|
22
22
|
|
|
23
|
-
export declare const float: FloatPatternFn;
|
|
23
|
+
export declare const float: FloatPatternFn;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const floatConfig = {
|
|
6
|
+
transform(props, { map }) {
|
|
7
|
+
const { offset, offsetX, offsetY, placement, ...rest } = props;
|
|
8
|
+
return {
|
|
9
|
+
display: "inline-flex",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
position: "absolute",
|
|
13
|
+
insetBlockStart: map(placement, (v) => {
|
|
14
|
+
const [side] = v.split("-");
|
|
15
|
+
const map2 = {
|
|
16
|
+
top: offsetY,
|
|
17
|
+
middle: "50%",
|
|
18
|
+
bottom: "auto"
|
|
19
|
+
};
|
|
20
|
+
return map2[side];
|
|
21
|
+
}),
|
|
22
|
+
insetBlockEnd: map(placement, (v) => {
|
|
23
|
+
const [side] = v.split("-");
|
|
24
|
+
const map2 = {
|
|
25
|
+
top: "auto",
|
|
26
|
+
middle: "50%",
|
|
27
|
+
bottom: offsetY
|
|
28
|
+
};
|
|
29
|
+
return map2[side];
|
|
30
|
+
}),
|
|
31
|
+
insetInlineStart: map(placement, (v) => {
|
|
32
|
+
const [, align] = v.split("-");
|
|
33
|
+
const map2 = {
|
|
34
|
+
start: offsetX,
|
|
35
|
+
center: "50%",
|
|
36
|
+
end: "auto"
|
|
37
|
+
};
|
|
38
|
+
return map2[align];
|
|
39
|
+
}),
|
|
40
|
+
insetInlineEnd: map(placement, (v) => {
|
|
41
|
+
const [, align] = v.split("-");
|
|
42
|
+
const map2 = {
|
|
43
|
+
start: "auto",
|
|
44
|
+
center: "50%",
|
|
45
|
+
end: offsetX
|
|
46
|
+
};
|
|
47
|
+
return map2[align];
|
|
48
|
+
}),
|
|
49
|
+
translate: map(placement, (v) => {
|
|
50
|
+
const [side, align] = v.split("-");
|
|
51
|
+
const mapX = {
|
|
52
|
+
start: "-50%",
|
|
53
|
+
center: "-50%",
|
|
54
|
+
end: "50%"
|
|
55
|
+
};
|
|
56
|
+
const mapY = {
|
|
57
|
+
top: "-50%",
|
|
58
|
+
middle: "-50%",
|
|
59
|
+
bottom: "50%"
|
|
60
|
+
};
|
|
61
|
+
return `${mapX[align]} ${mapY[side]}`;
|
|
62
|
+
}),
|
|
63
|
+
...rest
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
defaultValues(props) {
|
|
67
|
+
const offset = props.offset || "0";
|
|
68
|
+
return {
|
|
69
|
+
offset,
|
|
70
|
+
offsetX: offset,
|
|
71
|
+
offsetY: offset,
|
|
72
|
+
placement: "top-end"
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function floatRaw(styles) {
|
|
78
|
+
const s = getPatternStyles(floatConfig, styles || {})
|
|
79
|
+
return floatConfig.transform(s, patternFns)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const float = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function float(styles = {}) {
|
|
83
|
+
return css(floatRaw(styles))
|
|
84
|
+
}), { raw: floatRaw, propKeys: ["offset","offsetX","offsetY","placement"] })
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system';
|
|
7
2
|
|
|
8
3
|
export interface GridItemProperties {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
colEnd?: ConditionalValue<number>
|
|
5
|
+
colSpan?: ConditionalValue<number>
|
|
6
|
+
colStart?: ConditionalValue<number>
|
|
7
|
+
rowEnd?: ConditionalValue<number>
|
|
8
|
+
rowSpan?: ConditionalValue<number>
|
|
9
|
+
rowStart?: ConditionalValue<number>
|
|
15
10
|
}
|
|
16
11
|
|
|
17
|
-
|
|
12
|
+
type GridItemRestStyles = Omit<SystemStyleObject, keyof GridItemProperties>
|
|
13
|
+
|
|
14
|
+
interface GridItemStyles extends GridItemProperties, GridItemRestStyles {}
|
|
18
15
|
|
|
19
16
|
interface GridItemPatternFn {
|
|
20
17
|
(styles?: GridItemStyles): string
|
|
21
18
|
raw: (styles?: GridItemStyles) => SystemStyleObject
|
|
19
|
+
propKeys: Array<keyof GridItemProperties>
|
|
22
20
|
}
|
|
23
21
|
|
|
22
|
+
export declare function gridItemRaw(styles?: GridItemStyles): SystemStyleObject;
|
|
24
23
|
|
|
25
|
-
export declare const gridItem: GridItemPatternFn;
|
|
24
|
+
export declare const gridItem: GridItemPatternFn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const gridItemConfig = { transform(props, { map }) {
|
|
6
|
+
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
|
|
7
|
+
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
|
+
return {
|
|
9
|
+
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
|
10
|
+
gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
|
|
11
|
+
gridColumnStart: colStart,
|
|
12
|
+
gridColumnEnd: colEnd,
|
|
13
|
+
gridRowStart: rowStart,
|
|
14
|
+
gridRowEnd: rowEnd,
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
} }
|
|
18
|
+
|
|
19
|
+
export function gridItemRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(gridItemConfig, styles || {})
|
|
21
|
+
return gridItemConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const gridItem = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function gridItem(styles = {}) {
|
|
25
|
+
return css(gridItemRaw(styles))
|
|
26
|
+
}), { raw: gridItemRaw, propKeys: ["colEnd","colSpan","colStart","rowEnd","rowSpan","rowStart"] })
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
1
|
+
import type { TokenValue } from '../types/tokens';
|
|
2
|
+
import type { ConditionalValue, SystemProperties, SystemStyleObject } from '../types/system';
|
|
7
3
|
|
|
8
4
|
export interface GridProperties {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
columnGap?: SystemProperties["gap"]
|
|
6
|
+
columns?: ConditionalValue<number>
|
|
7
|
+
gap?: SystemProperties["gap"]
|
|
8
|
+
minChildWidth?: ConditionalValue<TokenValue<"sizes"> | SystemProperties["width"]>
|
|
9
|
+
rowGap?: SystemProperties["gap"]
|
|
14
10
|
}
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+
type GridRestStyles = Omit<SystemStyleObject, keyof GridProperties>
|
|
13
|
+
|
|
14
|
+
interface GridStyles extends GridProperties, GridRestStyles {}
|
|
17
15
|
|
|
18
16
|
interface GridPatternFn {
|
|
19
17
|
(styles?: GridStyles): string
|
|
20
18
|
raw: (styles?: GridStyles) => SystemStyleObject
|
|
19
|
+
propKeys: Array<keyof GridProperties>
|
|
21
20
|
}
|
|
22
21
|
|
|
22
|
+
export declare function gridRaw(styles?: GridStyles): SystemStyleObject;
|
|
23
23
|
|
|
24
|
-
export declare const grid: GridPatternFn;
|
|
24
|
+
export declare const grid: GridPatternFn;
|