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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aeon-ui.com/schemas/segmentGroup.json",
|
|
4
|
+
"title": "SegmentGroup",
|
|
5
|
+
"description": "Compact single choice as adjacent buttons via tabsMachine (same chart family as Tabs / RadioGroup).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"component",
|
|
10
|
+
"scope"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"component": {
|
|
14
|
+
"const": "SegmentGroup"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"const": "segmentGroup"
|
|
18
|
+
},
|
|
19
|
+
"parts": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "Anatomy part keys — map to data-aeon-part",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"root",
|
|
26
|
+
"item"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"uniqueItems": true
|
|
30
|
+
},
|
|
31
|
+
"states": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"description": "Allowed data-aeon-state values (stable states only)",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"selected",
|
|
38
|
+
"unselected"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"uniqueItems": true
|
|
42
|
+
},
|
|
43
|
+
"props": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"properties": {
|
|
47
|
+
"size": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"sm",
|
|
51
|
+
"md"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"orientation": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"horizontal",
|
|
58
|
+
"vertical"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"slots": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "Named composition slots / compound parts",
|
|
66
|
+
"additionalProperties": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"properties": {
|
|
70
|
+
"Root": {
|
|
71
|
+
"const": "segmentGroup.root",
|
|
72
|
+
"description": "segmentGroup.root"
|
|
73
|
+
},
|
|
74
|
+
"Item": {
|
|
75
|
+
"const": "segmentGroup.item",
|
|
76
|
+
"description": "segmentGroup.item"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"machine": {
|
|
81
|
+
"type": [
|
|
82
|
+
"string",
|
|
83
|
+
"null"
|
|
84
|
+
],
|
|
85
|
+
"description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
|
|
86
|
+
"const": "tabsMachine"
|
|
87
|
+
},
|
|
88
|
+
"runtime": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "How headless state is driven at runtime",
|
|
91
|
+
"const": "useAeonMachine"
|
|
92
|
+
},
|
|
93
|
+
"events": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"items": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"enum": [
|
|
98
|
+
"SELECT"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"examples": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"default": []
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"x-aeon": {
|
|
111
|
+
"scope": "segmentGroup",
|
|
112
|
+
"parts": [
|
|
113
|
+
"root",
|
|
114
|
+
"item"
|
|
115
|
+
],
|
|
116
|
+
"states": [
|
|
117
|
+
"selected",
|
|
118
|
+
"unselected"
|
|
119
|
+
],
|
|
120
|
+
"machine": "tabsMachine",
|
|
121
|
+
"runtime": "useAeonMachine",
|
|
122
|
+
"events": [
|
|
123
|
+
"SELECT"
|
|
124
|
+
],
|
|
125
|
+
"slots": {
|
|
126
|
+
"Root": "segmentGroup.root",
|
|
127
|
+
"Item": "segmentGroup.item"
|
|
128
|
+
},
|
|
129
|
+
"examples": []
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aeon-ui.com/schemas/textarea.json",
|
|
4
|
+
"title": "Textarea",
|
|
5
|
+
"description": "Multi-line input that grows with content between minRows and maxRows (CSS field-sizing).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"component",
|
|
10
|
+
"scope"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"component": {
|
|
14
|
+
"const": "Textarea"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"const": "textarea"
|
|
18
|
+
},
|
|
19
|
+
"parts": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "Anatomy part keys — map to data-aeon-part",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"root"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"uniqueItems": true
|
|
29
|
+
},
|
|
30
|
+
"states": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"description": "Allowed data-aeon-state values (stable states only)",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"idle",
|
|
37
|
+
"disabled"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"uniqueItems": true
|
|
41
|
+
},
|
|
42
|
+
"props": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"minRows": {
|
|
47
|
+
"type": "number"
|
|
48
|
+
},
|
|
49
|
+
"maxRows": {
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
"variant": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": [
|
|
55
|
+
"outline",
|
|
56
|
+
"ghost"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"slots": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "Named composition slots / compound parts",
|
|
64
|
+
"additionalProperties": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"properties": {
|
|
68
|
+
"Root": {
|
|
69
|
+
"const": "textarea.root",
|
|
70
|
+
"description": "textarea.root"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"machine": {
|
|
75
|
+
"type": [
|
|
76
|
+
"string",
|
|
77
|
+
"null"
|
|
78
|
+
],
|
|
79
|
+
"description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
|
|
80
|
+
"const": null
|
|
81
|
+
},
|
|
82
|
+
"runtime": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "How headless state is driven at runtime",
|
|
85
|
+
"const": "props"
|
|
86
|
+
},
|
|
87
|
+
"events": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": []
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"examples": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"default": []
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"x-aeon": {
|
|
103
|
+
"scope": "textarea",
|
|
104
|
+
"parts": [
|
|
105
|
+
"root"
|
|
106
|
+
],
|
|
107
|
+
"states": [
|
|
108
|
+
"idle",
|
|
109
|
+
"disabled"
|
|
110
|
+
],
|
|
111
|
+
"machine": null,
|
|
112
|
+
"runtime": "props",
|
|
113
|
+
"events": [],
|
|
114
|
+
"slots": {
|
|
115
|
+
"Root": "textarea.root"
|
|
116
|
+
},
|
|
117
|
+
"examples": []
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "clipboard",
|
|
3
|
+
"initial": "idle",
|
|
4
|
+
"events": [
|
|
5
|
+
"COPY"
|
|
6
|
+
],
|
|
7
|
+
"tree": {
|
|
8
|
+
"key": "clipboard",
|
|
9
|
+
"id": "clipboard",
|
|
10
|
+
"type": "compound",
|
|
11
|
+
"events": [
|
|
12
|
+
"COPY"
|
|
13
|
+
],
|
|
14
|
+
"transitions": [],
|
|
15
|
+
"children": [
|
|
16
|
+
{
|
|
17
|
+
"key": "idle",
|
|
18
|
+
"id": "clipboard.idle",
|
|
19
|
+
"type": "atomic",
|
|
20
|
+
"events": [
|
|
21
|
+
"COPY"
|
|
22
|
+
],
|
|
23
|
+
"transitions": [
|
|
24
|
+
{
|
|
25
|
+
"event": "COPY",
|
|
26
|
+
"target": [
|
|
27
|
+
"copying"
|
|
28
|
+
],
|
|
29
|
+
"guarded": false
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"children": []
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"key": "copying",
|
|
36
|
+
"id": "clipboard.copying",
|
|
37
|
+
"type": "atomic",
|
|
38
|
+
"events": [],
|
|
39
|
+
"transitions": [],
|
|
40
|
+
"children": []
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "copied",
|
|
44
|
+
"id": "clipboard.copied",
|
|
45
|
+
"type": "atomic",
|
|
46
|
+
"events": [
|
|
47
|
+
"COPY"
|
|
48
|
+
],
|
|
49
|
+
"transitions": [
|
|
50
|
+
{
|
|
51
|
+
"event": "COPY",
|
|
52
|
+
"target": [
|
|
53
|
+
"copying"
|
|
54
|
+
],
|
|
55
|
+
"guarded": false
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"children": []
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"key": "failed",
|
|
62
|
+
"id": "clipboard.failed",
|
|
63
|
+
"type": "atomic",
|
|
64
|
+
"events": [
|
|
65
|
+
"COPY"
|
|
66
|
+
],
|
|
67
|
+
"transitions": [
|
|
68
|
+
{
|
|
69
|
+
"event": "COPY",
|
|
70
|
+
"target": [
|
|
71
|
+
"copying"
|
|
72
|
+
],
|
|
73
|
+
"guarded": false
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"children": []
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"states": {
|
|
81
|
+
"clipboard": {
|
|
82
|
+
"events": [
|
|
83
|
+
"COPY"
|
|
84
|
+
],
|
|
85
|
+
"type": "compound"
|
|
86
|
+
},
|
|
87
|
+
"clipboard.idle": {
|
|
88
|
+
"events": [
|
|
89
|
+
"COPY"
|
|
90
|
+
],
|
|
91
|
+
"type": "atomic"
|
|
92
|
+
},
|
|
93
|
+
"clipboard.copying": {
|
|
94
|
+
"events": [],
|
|
95
|
+
"type": "atomic"
|
|
96
|
+
},
|
|
97
|
+
"clipboard.copied": {
|
|
98
|
+
"events": [
|
|
99
|
+
"COPY"
|
|
100
|
+
],
|
|
101
|
+
"type": "atomic"
|
|
102
|
+
},
|
|
103
|
+
"clipboard.failed": {
|
|
104
|
+
"events": [
|
|
105
|
+
"COPY"
|
|
106
|
+
],
|
|
107
|
+
"type": "atomic"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"id": "slider",
|
|
3
3
|
"initial": "interaction",
|
|
4
4
|
"events": [
|
|
5
|
+
"SET_BOUNDS",
|
|
6
|
+
"SET_DISABLED",
|
|
5
7
|
"SET_VALUE",
|
|
6
8
|
"STEP",
|
|
7
9
|
"HOME",
|
|
@@ -14,6 +16,8 @@
|
|
|
14
16
|
"id": "slider",
|
|
15
17
|
"type": "compound",
|
|
16
18
|
"events": [
|
|
19
|
+
"SET_BOUNDS",
|
|
20
|
+
"SET_DISABLED",
|
|
17
21
|
"SET_VALUE",
|
|
18
22
|
"STEP",
|
|
19
23
|
"HOME",
|
|
@@ -21,7 +25,18 @@
|
|
|
21
25
|
"POINTER_DOWN",
|
|
22
26
|
"POINTER_UP"
|
|
23
27
|
],
|
|
24
|
-
"transitions": [
|
|
28
|
+
"transitions": [
|
|
29
|
+
{
|
|
30
|
+
"event": "SET_BOUNDS",
|
|
31
|
+
"target": [],
|
|
32
|
+
"guarded": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"event": "SET_DISABLED",
|
|
36
|
+
"target": [],
|
|
37
|
+
"guarded": false
|
|
38
|
+
}
|
|
39
|
+
],
|
|
25
40
|
"children": [
|
|
26
41
|
{
|
|
27
42
|
"key": "interaction",
|
|
@@ -110,6 +125,8 @@
|
|
|
110
125
|
"states": {
|
|
111
126
|
"slider": {
|
|
112
127
|
"events": [
|
|
128
|
+
"SET_BOUNDS",
|
|
129
|
+
"SET_DISABLED",
|
|
113
130
|
"SET_VALUE",
|
|
114
131
|
"STEP",
|
|
115
132
|
"HOME",
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
appShellMachine,
|
|
8
8
|
asyncMachine,
|
|
9
9
|
buttonLifecycleMachine,
|
|
10
|
+
clipboardMachine,
|
|
10
11
|
contentRegionMachine,
|
|
11
12
|
dialogMachine,
|
|
12
13
|
fieldMachine,
|
|
@@ -47,6 +48,7 @@ for (const [id, schema] of Object.entries(componentSchemas)) {
|
|
|
47
48
|
const machines = {
|
|
48
49
|
async: asyncMachine,
|
|
49
50
|
buttonLifecycle: buttonLifecycleMachine,
|
|
51
|
+
clipboard: clipboardMachine,
|
|
50
52
|
dialog: dialogMachine,
|
|
51
53
|
field: fieldMachine,
|
|
52
54
|
popover: popoverMachine,
|
|
@@ -615,6 +615,69 @@ export const componentSchemas = {
|
|
|
615
615
|
slots: { Root: 'separator.root' },
|
|
616
616
|
}),
|
|
617
617
|
|
|
618
|
+
prose: componentSchema({
|
|
619
|
+
id: 'https://aeon-ui.com/schemas/prose.json',
|
|
620
|
+
title: 'Prose',
|
|
621
|
+
description: 'Long-form rich text (rendered markdown); styles descendants in em, draws list markers.',
|
|
622
|
+
scope: 'prose',
|
|
623
|
+
parts: ['root'],
|
|
624
|
+
states: ['idle'],
|
|
625
|
+
machine: null,
|
|
626
|
+
runtime: 'layout',
|
|
627
|
+
slots: { Root: 'prose.root' },
|
|
628
|
+
}),
|
|
629
|
+
|
|
630
|
+
textarea: componentSchema({
|
|
631
|
+
id: 'https://aeon-ui.com/schemas/textarea.json',
|
|
632
|
+
title: 'Textarea',
|
|
633
|
+
description: 'Multi-line input that grows with content between minRows and maxRows (CSS field-sizing).',
|
|
634
|
+
scope: 'textarea',
|
|
635
|
+
parts: ['root'],
|
|
636
|
+
states: ['idle', 'disabled'],
|
|
637
|
+
machine: null,
|
|
638
|
+
runtime: 'props',
|
|
639
|
+
props: {
|
|
640
|
+
minRows: { type: 'number' },
|
|
641
|
+
maxRows: { type: 'number' },
|
|
642
|
+
variant: { type: 'string', enum: ['outline', 'ghost'] },
|
|
643
|
+
},
|
|
644
|
+
slots: { Root: 'textarea.root' },
|
|
645
|
+
}),
|
|
646
|
+
|
|
647
|
+
clipboard: componentSchema({
|
|
648
|
+
id: 'https://aeon-ui.com/schemas/clipboard.json',
|
|
649
|
+
title: 'Clipboard',
|
|
650
|
+
description: 'One-click copy of a value; trigger and root carry idle | copying | copied | failed.',
|
|
651
|
+
scope: 'clipboard',
|
|
652
|
+
parts: ['root', 'trigger', 'indicator', 'status'],
|
|
653
|
+
states: ['idle', 'copying', 'copied', 'failed'],
|
|
654
|
+
machine: 'clipboardMachine',
|
|
655
|
+
runtime: 'useAeonMachine',
|
|
656
|
+
events: ['COPY'],
|
|
657
|
+
props: {
|
|
658
|
+
value: { type: 'string' },
|
|
659
|
+
timeout: { type: 'number' },
|
|
660
|
+
},
|
|
661
|
+
slots: { Root: 'clipboard.root', Trigger: 'clipboard.trigger', Indicator: 'clipboard.indicator' },
|
|
662
|
+
}),
|
|
663
|
+
|
|
664
|
+
segmentGroup: componentSchema({
|
|
665
|
+
id: 'https://aeon-ui.com/schemas/segmentGroup.json',
|
|
666
|
+
title: 'SegmentGroup',
|
|
667
|
+
description: 'Compact single choice as adjacent buttons via tabsMachine (same chart family as Tabs / RadioGroup).',
|
|
668
|
+
scope: 'segmentGroup',
|
|
669
|
+
parts: ['root', 'item'],
|
|
670
|
+
states: ['selected', 'unselected'],
|
|
671
|
+
machine: 'tabsMachine',
|
|
672
|
+
runtime: 'useAeonMachine',
|
|
673
|
+
events: ['SELECT'],
|
|
674
|
+
props: {
|
|
675
|
+
size: { type: 'string', enum: ['sm', 'md'] },
|
|
676
|
+
orientation: { type: 'string', enum: ['horizontal', 'vertical'] },
|
|
677
|
+
},
|
|
678
|
+
slots: { Root: 'segmentGroup.root', Item: 'segmentGroup.item' },
|
|
679
|
+
}),
|
|
680
|
+
|
|
618
681
|
composer: componentSchema({
|
|
619
682
|
id: 'https://aeon-ui.com/schemas/composer.json',
|
|
620
683
|
title: 'Composer',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @aeon-ui/tree
|
|
2
|
+
|
|
3
|
+
Widget trees for Aeon. A widget is configuration — immutable data describing one face of a chart — interpreted into DOM that carries `data-aeon-scope`, `data-aeon-part`, and `data-aeon-state`.
|
|
4
|
+
|
|
5
|
+
This is Flutter's Widget and Element layers only. There is no RenderObject (layout stays CSS) and no `StatefulWidget` (the chart is the only state). A tree that stored `busy` itself would be the boolean twin the philosophy rules out.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { exclusiveActionWidget, interpret, uncoveredStates, EXCLUSIVE_ACTION_STATES } from '@aeon-ui/tree'
|
|
9
|
+
|
|
10
|
+
const tree = exclusiveActionWidget({
|
|
11
|
+
scope: 'settings-change-password',
|
|
12
|
+
part: 'change-password-form',
|
|
13
|
+
state, // snapshot token
|
|
14
|
+
busy,
|
|
15
|
+
error,
|
|
16
|
+
body: { type: 'host', id: 'body' },
|
|
17
|
+
idleLabel: 'Update password',
|
|
18
|
+
pendingLabel: 'Updating…',
|
|
19
|
+
onSubmit,
|
|
20
|
+
confirm: confirm !== null,
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
uncoveredStates(EXCLUSIVE_ACTION_STATES, (s) => exclusiveActionWidget({ ...args, state: s }))
|
|
24
|
+
// [] — every state of the chart has a face
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`interpret(tree, hosts)` is the element layer. Hosts are where an existing compound (a field, a `Prompt`) fills a slot the tree names. Product CSS restyles the anatomy attributes; class names are passed in by the app, not invented here.
|
|
28
|
+
|
|
29
|
+
`exclusiveActionWidget` is the one face shared by every "confirm, then await" region: `idle → confirming → busy → idle | failure`.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A widget is configuration, the way a Flutter `Widget` is: immutable data
|
|
5
|
+
* describing one face of a chart. It holds no lifecycle. The only state it
|
|
6
|
+
* may name is a snapshot already produced by a machine (`data-aeon-state`).
|
|
7
|
+
*
|
|
8
|
+
* Callbacks are event bindings (what to send), not state. There is no
|
|
9
|
+
* equivalent of `StatefulWidget` or `setState` — a second copy of the chart
|
|
10
|
+
* living in the tree would be the boolean twin this layer exists to remove.
|
|
11
|
+
*/
|
|
12
|
+
type Widget = {
|
|
13
|
+
type: 'text';
|
|
14
|
+
text: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: 'host';
|
|
17
|
+
id: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'el';
|
|
20
|
+
tag: 'div' | 'form' | 'button' | 'p' | 'span';
|
|
21
|
+
scope?: string;
|
|
22
|
+
part?: string;
|
|
23
|
+
/** Chart snapshot token. Projected onto `data-aeon-state`. */
|
|
24
|
+
state?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
buttonType?: 'button' | 'submit';
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
role?: string;
|
|
29
|
+
onSubmit?: (event: {
|
|
30
|
+
preventDefault(): void;
|
|
31
|
+
}) => void;
|
|
32
|
+
onClick?: () => void;
|
|
33
|
+
children: Widget[];
|
|
34
|
+
};
|
|
35
|
+
declare const text: (value: string) => Widget;
|
|
36
|
+
declare const host: (id: string) => Widget;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The chart every "click, maybe confirm, await, succeed or fail" region
|
|
40
|
+
* shares. One region, four faces — not a `busy` boolean beside the markup.
|
|
41
|
+
*/
|
|
42
|
+
declare const EXCLUSIVE_ACTION_STATES: readonly ["idle", "confirming", "busy", "failure"];
|
|
43
|
+
type ExclusiveActionState = (typeof EXCLUSIVE_ACTION_STATES)[number];
|
|
44
|
+
type ExclusiveActionInput = {
|
|
45
|
+
scope: string;
|
|
46
|
+
part: string;
|
|
47
|
+
/** Active snapshot token, usually `stateToAttr(snapshot.value)`. */
|
|
48
|
+
state: string;
|
|
49
|
+
busy: boolean;
|
|
50
|
+
error: string | null;
|
|
51
|
+
className?: string;
|
|
52
|
+
tag?: 'form' | 'div';
|
|
53
|
+
/** Panel-specific fields. A host, so the tree stays generic. */
|
|
54
|
+
body: Widget;
|
|
55
|
+
idleLabel: string;
|
|
56
|
+
pendingLabel: string;
|
|
57
|
+
primaryClassName?: string;
|
|
58
|
+
primaryDisabled?: boolean;
|
|
59
|
+
onSubmit?: (event: {
|
|
60
|
+
preventDefault(): void;
|
|
61
|
+
}) => void;
|
|
62
|
+
secondary?: {
|
|
63
|
+
label: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
onClick: () => void;
|
|
67
|
+
};
|
|
68
|
+
actionsClassName?: string;
|
|
69
|
+
/** When set, the `confirm` host is mounted. The app renders its Prompt there. */
|
|
70
|
+
confirm?: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* One widget for an exclusive mutation. The root carries the chart state;
|
|
74
|
+
* the primary label and the disabled set are functions of `busy`, and the
|
|
75
|
+
* failure copy is a child that exists only when `error` is set.
|
|
76
|
+
*/
|
|
77
|
+
declare function exclusiveActionWidget(input: ExclusiveActionInput): Widget;
|
|
78
|
+
|
|
79
|
+
type WidgetHosts = Record<string, () => ReactNode>;
|
|
80
|
+
/**
|
|
81
|
+
* Element layer: turn a widget tree into DOM. Anatomy comes from
|
|
82
|
+
* `@aeon-ui/core`, so product CSS restyles `data-aeon-*` and nothing else
|
|
83
|
+
* is introduced. Hosts are the escape for existing compounds (Prompt, a
|
|
84
|
+
* password field) — the tree names the slot, the app supplies the compound.
|
|
85
|
+
*/
|
|
86
|
+
declare function interpret(widget: Widget, hosts: WidgetHosts): ReactNode;
|
|
87
|
+
|
|
88
|
+
/** Every `data-aeon-state` token a tree would project. */
|
|
89
|
+
declare function widgetStates(widget: Widget): string[];
|
|
90
|
+
/**
|
|
91
|
+
* States the chart names that the projection never puts on the tree.
|
|
92
|
+
* Totality (PHILOSOPHY.md §2): if the machine has the state, the face for
|
|
93
|
+
* that state must carry it. A missing name is a face the UI forgot.
|
|
94
|
+
*/
|
|
95
|
+
declare function uncoveredStates(states: readonly string[], project: (state: string) => Widget): string[];
|
|
96
|
+
|
|
97
|
+
export { EXCLUSIVE_ACTION_STATES, type ExclusiveActionInput, type ExclusiveActionState, type Widget, type WidgetHosts, exclusiveActionWidget, host, interpret, text, uncoveredStates, widgetStates };
|