aeon-ui-engine 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/README.md +23 -0
- package/.changeset/combobox-and-changesets.md +9 -0
- package/.changeset/config.json +30 -0
- package/.changeset/framework-adapters.md +12 -0
- package/.changeset/scene-3d.md +6 -0
- package/.changeset/scene-plane.md +8 -0
- package/.changeset/site-og.md +5 -0
- package/.cursor/rules/aeon-ui.mdc +22 -0
- package/ACCESSIBILITY.md +32 -0
- package/AGENTS.md +226 -0
- package/COMPONENTS.md +36 -0
- package/FRAMEWORKS.md +57 -0
- package/INTEGRATION.md +89 -0
- package/LICENSE +21 -0
- package/PHILOSOPHY.md +71 -0
- package/PUBLISHING.md +85 -0
- package/README.md +154 -0
- package/SCENE.md +113 -0
- package/STATES.md +243 -0
- package/apps/demo/index.html +31 -0
- package/apps/demo/og.config.mjs +15 -0
- package/apps/demo/package.json +41 -0
- package/apps/demo/public/favicon.svg +16 -0
- package/apps/demo/public/og.png +0 -0
- package/apps/demo/public/og.svg +35 -0
- package/apps/demo/scripts/generate-og-png.mjs +60 -0
- package/apps/demo/src/App.tsx +31 -0
- package/apps/demo/src/aeonDiagrams.ts +100 -0
- package/apps/demo/src/app.css +16 -0
- package/apps/demo/src/components/ActionCluster.tsx +20 -0
- package/apps/demo/src/components/AsyncMachineDemo.tsx +97 -0
- package/apps/demo/src/components/ButtonLifecycleDemo.tsx +63 -0
- package/apps/demo/src/components/CodeExample.tsx +7 -0
- package/apps/demo/src/components/ComboboxDemo.tsx +30 -0
- package/apps/demo/src/components/DiagramsSection.tsx +38 -0
- package/apps/demo/src/components/FieldStateDemo.tsx +51 -0
- package/apps/demo/src/components/GridMesh.tsx +8 -0
- package/apps/demo/src/components/HeroInstall.tsx +10 -0
- package/apps/demo/src/components/LandingFaq.tsx +29 -0
- package/apps/demo/src/components/LandingFooter.tsx +22 -0
- package/apps/demo/src/components/LandingHeader.tsx +60 -0
- package/apps/demo/src/components/LandingHero.tsx +55 -0
- package/apps/demo/src/components/LayersSection.tsx +51 -0
- package/apps/demo/src/components/MermaidDiagram.tsx +84 -0
- package/apps/demo/src/components/PhilosophySection.tsx +33 -0
- package/apps/demo/src/components/PlaygroundBlock.tsx +23 -0
- package/apps/demo/src/components/PlaygroundSection.tsx +204 -0
- package/apps/demo/src/components/SceneSection.tsx +157 -0
- package/apps/demo/src/components/ScrollRegionDemo.tsx +74 -0
- package/apps/demo/src/components/ThemeSwitcher.tsx +76 -0
- package/apps/demo/src/demo-layout.css +264 -0
- package/apps/demo/src/landing.css +1094 -0
- package/apps/demo/src/main.tsx +14 -0
- package/apps/demo/src/nav.ts +9 -0
- package/apps/demo/src/site.ts +347 -0
- package/apps/demo/tsconfig.json +17 -0
- package/apps/demo/vite-plugins/og-meta.ts +30 -0
- package/apps/demo/vite.config.ts +69 -0
- package/docs/API_PATTERNS.md +234 -0
- package/docs/ARCHITECTURE.md +125 -0
- package/docs/COMPONENT_CHECKLIST.md +103 -0
- package/docs/FILE_MAP.md +122 -0
- package/docs/GLOSSARY.md +125 -0
- package/docs/INDEX.md +53 -0
- package/docs/LAYOUT_COORDINATES.md +178 -0
- package/docs/MACHINES.md +166 -0
- package/docs/MIGRATION_FROM_ARK.md +295 -0
- package/docs/VITE_CONSUMER.md +114 -0
- package/package.json +25 -0
- package/packages/core/README.md +69 -0
- package/packages/core/package.json +37 -0
- package/packages/core/src/anatomy.ts +144 -0
- package/packages/core/src/attrs.ts +47 -0
- package/packages/core/src/index.ts +8 -0
- package/packages/core/src/layout.ts +176 -0
- package/packages/core/src/machine.test.ts +18 -0
- package/packages/core/src/machine.ts +15 -0
- package/packages/core/src/philosophy.ts +10 -0
- package/packages/core/src/scroll.ts +72 -0
- package/packages/core/src/theme.test.ts +14 -0
- package/packages/core/src/theme.ts +53 -0
- package/packages/core/src/types.ts +25 -0
- package/packages/core/theme-transition.css +58 -0
- package/packages/core/tsconfig.json +8 -0
- package/packages/core/vitest.config.ts +8 -0
- package/packages/geometry/README.md +7 -0
- package/packages/geometry/package.json +35 -0
- package/packages/geometry/src/index.ts +3 -0
- package/packages/geometry/src/patterns.ts +55 -0
- package/packages/geometry/src/scene-attrs.ts +11 -0
- package/packages/geometry/src/svg.ts +60 -0
- package/packages/geometry/tsconfig.json +8 -0
- package/packages/panda/README.md +66 -0
- package/packages/panda/package.json +40 -0
- package/packages/panda/panda.config.ts +229 -0
- package/packages/panda/scripts/emit-theme-runtime.ts +37 -0
- package/packages/panda/src/recipes/accordion.ts +95 -0
- package/packages/panda/src/recipes/async.ts +76 -0
- package/packages/panda/src/recipes/badge.ts +44 -0
- package/packages/panda/src/recipes/button-group.ts +33 -0
- package/packages/panda/src/recipes/button.ts +91 -0
- package/packages/panda/src/recipes/checkbox.ts +41 -0
- package/packages/panda/src/recipes/combobox.ts +121 -0
- package/packages/panda/src/recipes/dialog.ts +96 -0
- package/packages/panda/src/recipes/field-shared.ts +29 -0
- package/packages/panda/src/recipes/field.ts +72 -0
- package/packages/panda/src/recipes/floating.ts +170 -0
- package/packages/panda/src/recipes/index.ts +14 -0
- package/packages/panda/src/recipes/scroll-region.ts +55 -0
- package/packages/panda/src/recipes/select.ts +111 -0
- package/packages/panda/src/recipes/switch.ts +51 -0
- package/packages/panda/src/recipes/tabs.ts +50 -0
- package/packages/panda/src/theme/catalog-types.ts +24 -0
- package/packages/panda/src/theme/catalog.ts +73 -0
- package/packages/panda/src/theme/chrome.css +75 -0
- package/packages/panda/src/theme/global-theme-css.ts +42 -0
- package/packages/panda/src/theme/index.ts +5 -0
- package/packages/panda/src/theme/palette.ts +65 -0
- package/packages/panda/src/theme/scrollbars.css +96 -0
- package/packages/panda/src/theme/semantic-tokens.ts +17 -0
- package/packages/panda/src/theme/themes.config.ts +516 -0
- package/packages/panda/src/theme/tokens.ts +51 -0
- package/packages/panda/styled-system/css/conditions.mjs +36 -0
- package/packages/panda/styled-system/css/css.d.ts +22 -0
- package/packages/panda/styled-system/css/css.mjs +45 -0
- package/packages/panda/styled-system/css/cva.d.ts +6 -0
- package/packages/panda/styled-system/css/cva.mjs +87 -0
- package/packages/panda/styled-system/css/cx.d.ts +5 -0
- package/packages/panda/styled-system/css/cx.mjs +15 -0
- package/packages/panda/styled-system/css/index.d.ts +5 -0
- package/packages/panda/styled-system/css/index.mjs +4 -0
- package/packages/panda/styled-system/css/sva.d.ts +4 -0
- package/packages/panda/styled-system/css/sva.mjs +41 -0
- package/packages/panda/styled-system/helpers.mjs +339 -0
- package/packages/panda/styled-system/jsx/aspect-ratio.d.ts +10 -0
- package/packages/panda/styled-system/jsx/aspect-ratio.mjs +14 -0
- package/packages/panda/styled-system/jsx/bleed.d.ts +10 -0
- package/packages/panda/styled-system/jsx/bleed.mjs +14 -0
- package/packages/panda/styled-system/jsx/box.d.ts +10 -0
- package/packages/panda/styled-system/jsx/box.mjs +14 -0
- package/packages/panda/styled-system/jsx/center.d.ts +10 -0
- package/packages/panda/styled-system/jsx/center.mjs +14 -0
- package/packages/panda/styled-system/jsx/circle.d.ts +10 -0
- package/packages/panda/styled-system/jsx/circle.mjs +14 -0
- package/packages/panda/styled-system/jsx/container.d.ts +10 -0
- package/packages/panda/styled-system/jsx/container.mjs +14 -0
- package/packages/panda/styled-system/jsx/cq.d.ts +10 -0
- package/packages/panda/styled-system/jsx/cq.mjs +14 -0
- package/packages/panda/styled-system/jsx/divider.d.ts +10 -0
- package/packages/panda/styled-system/jsx/divider.mjs +14 -0
- package/packages/panda/styled-system/jsx/factory-helper.mjs +22 -0
- package/packages/panda/styled-system/jsx/factory.d.ts +3 -0
- package/packages/panda/styled-system/jsx/factory.mjs +80 -0
- package/packages/panda/styled-system/jsx/flex.d.ts +10 -0
- package/packages/panda/styled-system/jsx/flex.mjs +14 -0
- package/packages/panda/styled-system/jsx/float.d.ts +10 -0
- package/packages/panda/styled-system/jsx/float.mjs +14 -0
- package/packages/panda/styled-system/jsx/grid-item.d.ts +10 -0
- package/packages/panda/styled-system/jsx/grid-item.mjs +14 -0
- package/packages/panda/styled-system/jsx/grid.d.ts +10 -0
- package/packages/panda/styled-system/jsx/grid.mjs +14 -0
- package/packages/panda/styled-system/jsx/hstack.d.ts +10 -0
- package/packages/panda/styled-system/jsx/hstack.mjs +14 -0
- package/packages/panda/styled-system/jsx/index.d.ts +24 -0
- package/packages/panda/styled-system/jsx/index.mjs +22 -0
- package/packages/panda/styled-system/jsx/is-valid-prop.d.ts +11 -0
- package/packages/panda/styled-system/jsx/is-valid-prop.mjs +17 -0
- package/packages/panda/styled-system/jsx/link-overlay.d.ts +10 -0
- package/packages/panda/styled-system/jsx/link-overlay.mjs +14 -0
- package/packages/panda/styled-system/jsx/spacer.d.ts +10 -0
- package/packages/panda/styled-system/jsx/spacer.mjs +14 -0
- package/packages/panda/styled-system/jsx/square.d.ts +10 -0
- package/packages/panda/styled-system/jsx/square.mjs +14 -0
- package/packages/panda/styled-system/jsx/stack.d.ts +10 -0
- package/packages/panda/styled-system/jsx/stack.mjs +14 -0
- package/packages/panda/styled-system/jsx/visually-hidden.d.ts +10 -0
- package/packages/panda/styled-system/jsx/visually-hidden.mjs +14 -0
- package/packages/panda/styled-system/jsx/vstack.d.ts +10 -0
- package/packages/panda/styled-system/jsx/vstack.mjs +14 -0
- package/packages/panda/styled-system/jsx/wrap.d.ts +10 -0
- package/packages/panda/styled-system/jsx/wrap.mjs +14 -0
- package/packages/panda/styled-system/patterns/aspect-ratio.d.ts +21 -0
- package/packages/panda/styled-system/patterns/aspect-ratio.mjs +38 -0
- package/packages/panda/styled-system/patterns/bleed.d.ts +22 -0
- package/packages/panda/styled-system/patterns/bleed.mjs +24 -0
- package/packages/panda/styled-system/patterns/box.d.ts +21 -0
- package/packages/panda/styled-system/patterns/box.mjs +15 -0
- package/packages/panda/styled-system/patterns/center.d.ts +21 -0
- package/packages/panda/styled-system/patterns/center.mjs +21 -0
- package/packages/panda/styled-system/patterns/circle.d.ts +21 -0
- package/packages/panda/styled-system/patterns/circle.mjs +25 -0
- package/packages/panda/styled-system/patterns/container.d.ts +21 -0
- package/packages/panda/styled-system/patterns/container.mjs +21 -0
- package/packages/panda/styled-system/patterns/cq.d.ts +22 -0
- package/packages/panda/styled-system/patterns/cq.mjs +21 -0
- package/packages/panda/styled-system/patterns/divider.d.ts +23 -0
- package/packages/panda/styled-system/patterns/divider.mjs +25 -0
- package/packages/panda/styled-system/patterns/flex.d.ts +27 -0
- package/packages/panda/styled-system/patterns/flex.mjs +26 -0
- package/packages/panda/styled-system/patterns/float.d.ts +24 -0
- package/packages/panda/styled-system/patterns/float.mjs +52 -0
- package/packages/panda/styled-system/patterns/grid-item.d.ts +26 -0
- package/packages/panda/styled-system/patterns/grid-item.mjs +25 -0
- package/packages/panda/styled-system/patterns/grid.d.ts +25 -0
- package/packages/panda/styled-system/patterns/grid.mjs +27 -0
- package/packages/panda/styled-system/patterns/hstack.d.ts +22 -0
- package/packages/panda/styled-system/patterns/hstack.mjs +24 -0
- package/packages/panda/styled-system/patterns/index.d.ts +21 -0
- package/packages/panda/styled-system/patterns/index.mjs +20 -0
- package/packages/panda/styled-system/patterns/link-overlay.d.ts +21 -0
- package/packages/panda/styled-system/patterns/link-overlay.mjs +24 -0
- package/packages/panda/styled-system/patterns/spacer.d.ts +21 -0
- package/packages/panda/styled-system/patterns/spacer.mjs +21 -0
- package/packages/panda/styled-system/patterns/square.d.ts +21 -0
- package/packages/panda/styled-system/patterns/square.mjs +24 -0
- package/packages/panda/styled-system/patterns/stack.d.ts +24 -0
- package/packages/panda/styled-system/patterns/stack.mjs +24 -0
- package/packages/panda/styled-system/patterns/visually-hidden.d.ts +21 -0
- package/packages/panda/styled-system/patterns/visually-hidden.mjs +18 -0
- package/packages/panda/styled-system/patterns/vstack.d.ts +22 -0
- package/packages/panda/styled-system/patterns/vstack.mjs +24 -0
- package/packages/panda/styled-system/patterns/wrap.d.ts +25 -0
- package/packages/panda/styled-system/patterns/wrap.mjs +25 -0
- package/packages/panda/styled-system/recipes/aeon-accordion.d.ts +32 -0
- package/packages/panda/styled-system/recipes/aeon-accordion.mjs +48 -0
- package/packages/panda/styled-system/recipes/aeon-async.d.ts +32 -0
- package/packages/panda/styled-system/recipes/aeon-async.mjs +56 -0
- package/packages/panda/styled-system/recipes/aeon-badge.d.ts +31 -0
- package/packages/panda/styled-system/recipes/aeon-badge.mjs +32 -0
- package/packages/panda/styled-system/recipes/aeon-button-group.d.ts +39 -0
- package/packages/panda/styled-system/recipes/aeon-button-group.mjs +37 -0
- package/packages/panda/styled-system/recipes/aeon-button.d.ts +39 -0
- package/packages/panda/styled-system/recipes/aeon-button.mjs +39 -0
- package/packages/panda/styled-system/recipes/aeon-checkbox.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-checkbox.mjs +48 -0
- package/packages/panda/styled-system/recipes/aeon-combobox.d.ts +32 -0
- package/packages/panda/styled-system/recipes/aeon-combobox.mjs +52 -0
- package/packages/panda/styled-system/recipes/aeon-dialog.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-dialog.mjs +60 -0
- package/packages/panda/styled-system/recipes/aeon-field.d.ts +32 -0
- package/packages/panda/styled-system/recipes/aeon-field.mjs +52 -0
- package/packages/panda/styled-system/recipes/aeon-menu.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-menu.mjs +52 -0
- package/packages/panda/styled-system/recipes/aeon-popover.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-popover.mjs +52 -0
- package/packages/panda/styled-system/recipes/aeon-scroll.d.ts +43 -0
- package/packages/panda/styled-system/recipes/aeon-scroll.mjs +63 -0
- package/packages/panda/styled-system/recipes/aeon-select.d.ts +32 -0
- package/packages/panda/styled-system/recipes/aeon-select.mjs +56 -0
- package/packages/panda/styled-system/recipes/aeon-switch.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-switch.mjs +48 -0
- package/packages/panda/styled-system/recipes/aeon-tabs.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-tabs.mjs +48 -0
- package/packages/panda/styled-system/recipes/aeon-toast.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-toast.mjs +48 -0
- package/packages/panda/styled-system/recipes/aeon-tooltip.d.ts +28 -0
- package/packages/panda/styled-system/recipes/aeon-tooltip.mjs +48 -0
- package/packages/panda/styled-system/recipes/create-recipe.mjs +82 -0
- package/packages/panda/styled-system/recipes/index.d.ts +18 -0
- package/packages/panda/styled-system/recipes/index.mjs +17 -0
- package/packages/panda/styled-system/styles.css +2157 -0
- package/packages/panda/styled-system/tokens/index.d.ts +9 -0
- package/packages/panda/styled-system/tokens/index.mjs +2156 -0
- package/packages/panda/styled-system/tokens/tokens.d.ts +60 -0
- package/packages/panda/styled-system/types/composition.d.ts +164 -0
- package/packages/panda/styled-system/types/conditions.d.ts +322 -0
- package/packages/panda/styled-system/types/csstype.d.ts +21298 -0
- package/packages/panda/styled-system/types/global.d.ts +20 -0
- package/packages/panda/styled-system/types/index.d.ts +8 -0
- package/packages/panda/styled-system/types/jsx.d.ts +52 -0
- package/packages/panda/styled-system/types/parts.d.ts +8 -0
- package/packages/panda/styled-system/types/pattern.d.ts +78 -0
- package/packages/panda/styled-system/types/prop-type.d.ts +240 -0
- package/packages/panda/styled-system/types/recipe.d.ts +181 -0
- package/packages/panda/styled-system/types/selectors.d.ts +59 -0
- package/packages/panda/styled-system/types/static-css.d.ts +56 -0
- package/packages/panda/styled-system/types/style-props.d.ts +7491 -0
- package/packages/panda/styled-system/types/system-types.d.ts +193 -0
- package/packages/panda/theme-runtime.css +842 -0
- package/packages/panda/tsconfig.json +8 -0
- package/packages/primitives/README.md +54 -0
- package/packages/primitives/package.json +41 -0
- package/packages/primitives/src/__tests__/floating-surface.test.ts +29 -0
- package/packages/primitives/src/index.ts +9 -0
- package/packages/primitives/src/machines/accordion.ts +56 -0
- package/packages/primitives/src/machines/async.ts +108 -0
- package/packages/primitives/src/machines/button.ts +66 -0
- package/packages/primitives/src/machines/dialog.ts +61 -0
- package/packages/primitives/src/machines/field.ts +85 -0
- package/packages/primitives/src/machines/popover.ts +52 -0
- package/packages/primitives/src/machines/tabs.ts +46 -0
- package/packages/primitives/src/machines/toast.ts +48 -0
- package/packages/primitives/src/machines/toggle.ts +61 -0
- package/packages/primitives/tsconfig.json +8 -0
- package/packages/primitives/vitest.config.ts +8 -0
- package/packages/react/README.md +65 -0
- package/packages/react/package.json +52 -0
- package/packages/react/src/accordion/index.tsx +179 -0
- package/packages/react/src/async/actions.tsx +22 -0
- package/packages/react/src/async/context.tsx +54 -0
- package/packages/react/src/async/index.tsx +21 -0
- package/packages/react/src/async/legacy-region.tsx +38 -0
- package/packages/react/src/async/readout.tsx +34 -0
- package/packages/react/src/async/root.tsx +39 -0
- package/packages/react/src/async/track.tsx +59 -0
- package/packages/react/src/avatar/avatar.test.tsx +27 -0
- package/packages/react/src/avatar/index.tsx +122 -0
- package/packages/react/src/button/index.tsx +70 -0
- package/packages/react/src/checkbox/index.tsx +180 -0
- package/packages/react/src/combobox/index.tsx +430 -0
- package/packages/react/src/dialog/dialog.test.tsx +50 -0
- package/packages/react/src/dialog/index.tsx +275 -0
- package/packages/react/src/field/index.tsx +172 -0
- package/packages/react/src/hooks/use-aeon-machine.ts +10 -0
- package/packages/react/src/hooks/use-anchor-position.ts +33 -0
- package/packages/react/src/hooks/use-focus-trap.ts +51 -0
- package/packages/react/src/hooks/use-layout-mode.ts +22 -0
- package/packages/react/src/hooks/use-outside-click.ts +19 -0
- package/packages/react/src/hooks/use-portalled.ts +16 -0
- package/packages/react/src/hooks/use-scroll-lock.ts +13 -0
- package/packages/react/src/index.ts +18 -0
- package/packages/react/src/menu/index.tsx +195 -0
- package/packages/react/src/popover/index.tsx +191 -0
- package/packages/react/src/scroll/index.tsx +98 -0
- package/packages/react/src/scroll/use-scroll-state.ts +30 -0
- package/packages/react/src/select/index.tsx +372 -0
- package/packages/react/src/select/select.test.tsx +60 -0
- package/packages/react/src/switch/index.tsx +215 -0
- package/packages/react/src/tabs/index.tsx +140 -0
- package/packages/react/src/toast/context.tsx +28 -0
- package/packages/react/src/toast/index.tsx +20 -0
- package/packages/react/src/toast/primitives.tsx +129 -0
- package/packages/react/src/toast/provider.tsx +111 -0
- package/packages/react/src/toast/toast-item.tsx +32 -0
- package/packages/react/src/tooltip/index.tsx +191 -0
- package/packages/react/src/utils/merge-props.ts +24 -0
- package/packages/react/tsconfig.json +8 -0
- package/packages/react/vitest.config.ts +9 -0
- package/packages/react/vitest.setup.ts +5 -0
- package/packages/react-scene/README.md +11 -0
- package/packages/react-scene/package.json +47 -0
- package/packages/react-scene/scene-3d.css +37 -0
- package/packages/react-scene/scene-room.css +95 -0
- package/packages/react-scene/src/index.ts +20 -0
- package/packages/react-scene/src/procedural-grid.tsx +35 -0
- package/packages/react-scene/src/scene-layer.tsx +38 -0
- package/packages/react-scene/src/scene-plane.tsx +69 -0
- package/packages/react-scene/src/scene-room.tsx +81 -0
- package/packages/react-scene/src/scene-root.tsx +49 -0
- package/packages/react-scene/src/scene-slot.tsx +41 -0
- package/packages/react-scene/src/scene-stage.tsx +37 -0
- package/packages/react-scene/src/scene-surface.tsx +20 -0
- package/packages/react-scene/src/signal-bars.tsx +57 -0
- package/packages/react-scene/src/use-signal-visualizer.ts +103 -0
- package/packages/react-scene/tsconfig.json +8 -0
- package/packages/scene/README.md +5 -0
- package/packages/scene/package.json +32 -0
- package/packages/scene/src/index.ts +2 -0
- package/packages/scene/src/room.ts +40 -0
- package/packages/scene/src/transform.ts +60 -0
- package/packages/scene/tsconfig.json +8 -0
- package/packages/signal/README.md +9 -0
- package/packages/signal/package.json +32 -0
- package/packages/signal/src/analyser.ts +113 -0
- package/packages/signal/src/bands.ts +33 -0
- package/packages/signal/src/index.ts +3 -0
- package/packages/signal/src/motion.ts +80 -0
- package/packages/signal/tsconfig.json +8 -0
- package/packages/site/README.md +19 -0
- package/packages/site/package.json +32 -0
- package/packages/site/src/index.ts +8 -0
- package/packages/site/src/open-graph.ts +90 -0
- package/packages/site/tsconfig.json +8 -0
- package/packages/solid/README.md +30 -0
- package/packages/solid/package.json +42 -0
- package/packages/solid/src/hooks/use-aeon-machine.ts +10 -0
- package/packages/solid/src/index.ts +2 -0
- package/packages/solid/src/switch/index.tsx +191 -0
- package/packages/solid/src/utils/merge-props.ts +3 -0
- package/packages/solid/tsconfig.json +10 -0
- package/packages/surface/README.md +10 -0
- package/packages/surface/package.json +33 -0
- package/packages/surface/src/index.ts +1 -0
- package/packages/surface/src/materials.ts +14 -0
- package/packages/surface/surface.css +113 -0
- package/packages/surface/tsconfig.json +8 -0
- package/packages/svelte/README.md +45 -0
- package/packages/svelte/package.json +49 -0
- package/packages/svelte/src/Switch.svelte +86 -0
- package/packages/svelte/src/SwitchControl.svelte +45 -0
- package/packages/svelte/src/SwitchHiddenInput.svelte +12 -0
- package/packages/svelte/src/SwitchLabel.svelte +9 -0
- package/packages/svelte/src/SwitchThumb.svelte +16 -0
- package/packages/svelte/src/hooks/use-aeon-machine.ts +23 -0
- package/packages/svelte/src/index.ts +2 -0
- package/packages/svelte/src/switch-context.ts +13 -0
- package/packages/svelte/tsconfig.json +8 -0
- package/packages/ui/README.md +63 -0
- package/packages/ui/package.json +45 -0
- package/packages/ui/src/accordion.tsx +27 -0
- package/packages/ui/src/async.tsx +43 -0
- package/packages/ui/src/badge.tsx +18 -0
- package/packages/ui/src/button.tsx +38 -0
- package/packages/ui/src/checkbox.tsx +24 -0
- package/packages/ui/src/cn.ts +1 -0
- package/packages/ui/src/combobox.tsx +29 -0
- package/packages/ui/src/dialog.tsx +32 -0
- package/packages/ui/src/field.tsx +33 -0
- package/packages/ui/src/index.ts +17 -0
- package/packages/ui/src/menu.tsx +25 -0
- package/packages/ui/src/popover.tsx +22 -0
- package/packages/ui/src/scroll.tsx +51 -0
- package/packages/ui/src/select.tsx +33 -0
- package/packages/ui/src/styles.css +2 -0
- package/packages/ui/src/switch.tsx +22 -0
- package/packages/ui/src/tabs.tsx +22 -0
- package/packages/ui/src/toast.tsx +36 -0
- package/packages/ui/src/tooltip.tsx +19 -0
- package/packages/ui/tsconfig.json +12 -0
- package/packages/vue/README.md +40 -0
- package/packages/vue/package.json +42 -0
- package/packages/vue/src/hooks/use-aeon-machine.ts +10 -0
- package/packages/vue/src/index.ts +2 -0
- package/packages/vue/src/switch/index.ts +208 -0
- package/packages/vue/src/utils/part-props.ts +8 -0
- package/packages/vue/tsconfig.json +8 -0
- package/pnpm-workspace.yaml +3 -0
- package/scripts/ensure-headless-built.mjs +25 -0
- package/tsconfig.base.json +21 -0
- package/vercel.json +12 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { defineConfig } from '@pandacss/dev'
|
|
2
|
+
import {
|
|
3
|
+
accordionRecipe,
|
|
4
|
+
badgeRecipe,
|
|
5
|
+
buttonRecipe,
|
|
6
|
+
buttonGroupRecipe,
|
|
7
|
+
asyncRegionRecipe,
|
|
8
|
+
fieldRecipe,
|
|
9
|
+
scrollRegionRecipe,
|
|
10
|
+
selectRecipe,
|
|
11
|
+
comboboxRecipe,
|
|
12
|
+
checkboxRecipe,
|
|
13
|
+
dialogRecipe,
|
|
14
|
+
switchRecipe,
|
|
15
|
+
tabsRecipe,
|
|
16
|
+
menuRecipe,
|
|
17
|
+
popoverRecipe,
|
|
18
|
+
tooltipRecipe,
|
|
19
|
+
toastRecipe,
|
|
20
|
+
} from './src/recipes/index.js'
|
|
21
|
+
import { semanticTokens } from './src/theme/semantic-tokens.js'
|
|
22
|
+
import { tokens } from './src/theme/tokens.js'
|
|
23
|
+
|
|
24
|
+
export default defineConfig({
|
|
25
|
+
preflight: true,
|
|
26
|
+
include: [
|
|
27
|
+
'../ui/src/**/*.{ts,tsx}',
|
|
28
|
+
'../react/src/**/*.{ts,tsx}',
|
|
29
|
+
'../../apps/demo/src/**/*.{ts,tsx}',
|
|
30
|
+
],
|
|
31
|
+
exclude: [],
|
|
32
|
+
outdir: 'styled-system',
|
|
33
|
+
importMap: '@aeon-ui/panda/styled-system',
|
|
34
|
+
jsxFramework: 'react',
|
|
35
|
+
/* Emit every recipe variant — consumers pass size/variant at runtime (e.g. header xs). */
|
|
36
|
+
staticCss: {
|
|
37
|
+
recipes: {
|
|
38
|
+
aeonButton: [{ size: ['*'], variant: ['*'] }],
|
|
39
|
+
aeonBadge: [{ variant: ['*'] }],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
conditions: {
|
|
43
|
+
extend: {
|
|
44
|
+
aeonSelected: '&[data-aeon-state=selected]',
|
|
45
|
+
aeonChecked: '&[data-aeon-state*=checked]',
|
|
46
|
+
aeonOpen: '&[data-aeon-state=open]',
|
|
47
|
+
aeonClosed: '&[data-aeon-state=closed]',
|
|
48
|
+
aeonPending: '&[data-aeon-state=pending]',
|
|
49
|
+
aeonSuccess: '&[data-aeon-state=success]',
|
|
50
|
+
aeonFailure: '&[data-aeon-state=failure]',
|
|
51
|
+
aeonInvalid: '&[data-aeon-state*=invalid]',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
theme: {
|
|
55
|
+
extend: {
|
|
56
|
+
tokens,
|
|
57
|
+
semanticTokens,
|
|
58
|
+
recipes: {
|
|
59
|
+
aeonButton: buttonRecipe,
|
|
60
|
+
aeonButtonGroup: buttonGroupRecipe,
|
|
61
|
+
aeonBadge: badgeRecipe,
|
|
62
|
+
},
|
|
63
|
+
slotRecipes: {
|
|
64
|
+
aeonAccordion: accordionRecipe,
|
|
65
|
+
aeonDialog: dialogRecipe,
|
|
66
|
+
aeonTabs: tabsRecipe,
|
|
67
|
+
aeonSwitch: switchRecipe,
|
|
68
|
+
aeonCheckbox: checkboxRecipe,
|
|
69
|
+
aeonAsync: asyncRegionRecipe,
|
|
70
|
+
aeonField: fieldRecipe,
|
|
71
|
+
aeonScroll: scrollRegionRecipe,
|
|
72
|
+
aeonSelect: selectRecipe,
|
|
73
|
+
aeonCombobox: comboboxRecipe,
|
|
74
|
+
aeonMenu: menuRecipe,
|
|
75
|
+
aeonPopover: popoverRecipe,
|
|
76
|
+
aeonTooltip: tooltipRecipe,
|
|
77
|
+
aeonToast: toastRecipe,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
globalCss: {
|
|
82
|
+
/* Theme palettes: import theme-runtime.css after styles.css (unlayered; tokens must not set aeon colors). */
|
|
83
|
+
'html, body, #root': {
|
|
84
|
+
minHeight: '100%',
|
|
85
|
+
},
|
|
86
|
+
body: {
|
|
87
|
+
margin: '0',
|
|
88
|
+
bg: 'bg',
|
|
89
|
+
color: 'fg',
|
|
90
|
+
fontFamily: 'body',
|
|
91
|
+
WebkitFontSmoothing: 'antialiased',
|
|
92
|
+
},
|
|
93
|
+
':root': {
|
|
94
|
+
/* Legacy aliases for landing.css and external consumers */
|
|
95
|
+
'--aeon-font': "var(--fonts-ui)",
|
|
96
|
+
'--aeon-mono': "var(--fonts-mono)",
|
|
97
|
+
'--aeon-bg': "var(--colors-aeon-bg)",
|
|
98
|
+
'--aeon-surface': "var(--colors-aeon-surface)",
|
|
99
|
+
'--aeon-surface-raised': "var(--colors-aeon-surface-raised)",
|
|
100
|
+
'--aeon-border': "var(--colors-aeon-border)",
|
|
101
|
+
'--aeon-text': "var(--colors-aeon-text)",
|
|
102
|
+
'--aeon-muted': "var(--colors-aeon-muted)",
|
|
103
|
+
'--aeon-accent': "var(--colors-aeon-accent)",
|
|
104
|
+
'--aeon-accent-dim': "var(--colors-aeon-accent-dim)",
|
|
105
|
+
'--aeon-danger': "var(--colors-aeon-danger)",
|
|
106
|
+
'--aeon-radius': "var(--radii-md)",
|
|
107
|
+
'--aeon-radius-lg': "var(--radii-lg)",
|
|
108
|
+
'--aeon-shadow': "var(--shadows-panel)",
|
|
109
|
+
'--aeon-focus': "var(--shadows-focus-ring)",
|
|
110
|
+
'--aeon-inset-x-sm': "var(--spacing-inset-x-sm)",
|
|
111
|
+
'--aeon-inset-y-sm': "var(--spacing-inset-y-sm)",
|
|
112
|
+
'--aeon-inset-x': "var(--spacing-inset-x)",
|
|
113
|
+
'--aeon-inset-y': "var(--spacing-inset-y)",
|
|
114
|
+
'--aeon-inset-x-lg': "var(--spacing-inset-x-lg)",
|
|
115
|
+
'--aeon-inset-y-lg': "var(--spacing-inset-y-lg)",
|
|
116
|
+
'--aeon-pad-sm': "var(--spacing-pad-sm)",
|
|
117
|
+
'--aeon-pad-md': "var(--spacing-pad-md)",
|
|
118
|
+
'--aeon-pad-lg': "var(--spacing-pad-lg)",
|
|
119
|
+
'--aeon-pad-xl': "var(--spacing-pad-xl)",
|
|
120
|
+
'--aeon-gap-sm': "var(--spacing-gap-sm)",
|
|
121
|
+
'--aeon-gap': "var(--spacing-gap)",
|
|
122
|
+
'--aeon-gap-lg': "var(--spacing-gap-lg)",
|
|
123
|
+
'--aeon-accordion-gap': "var(--spacing-accordion-gap)",
|
|
124
|
+
'--aeon-accordion-inset-x': "var(--spacing-accordion-inset-x)",
|
|
125
|
+
'--aeon-accordion-trigger-y': "var(--spacing-accordion-trigger-y)",
|
|
126
|
+
'--aeon-accordion-trigger-min-h': "var(--spacing-accordion-trigger-min-h)",
|
|
127
|
+
'--aeon-accordion-content-y': "var(--spacing-accordion-content-y)",
|
|
128
|
+
'--aeon-accordion-content-b': "var(--spacing-accordion-content-b)",
|
|
129
|
+
'--font-display': "var(--fonts-display)",
|
|
130
|
+
'--font-body': "var(--fonts-body)",
|
|
131
|
+
},
|
|
132
|
+
'[data-aeon-scope]': {
|
|
133
|
+
fontFamily: 'ui',
|
|
134
|
+
lineHeight: '1.5',
|
|
135
|
+
},
|
|
136
|
+
/* Label-wrapped toggles — consistent flex row, no UA button bleed */
|
|
137
|
+
'[data-aeon-scope="switch"] [data-aeon-part="root"], [data-aeon-scope="checkbox"] [data-aeon-part="root"]':
|
|
138
|
+
{
|
|
139
|
+
display: 'inline-flex',
|
|
140
|
+
alignItems: 'center',
|
|
141
|
+
},
|
|
142
|
+
'[data-aeon-scope="switch"] [data-aeon-part="control"], [data-aeon-scope="checkbox"] [data-aeon-part="control"]':
|
|
143
|
+
{
|
|
144
|
+
margin: '0',
|
|
145
|
+
padding: '0',
|
|
146
|
+
},
|
|
147
|
+
/* Loose siblings (no Group wrapper) still get breathing room */
|
|
148
|
+
'[data-aeon-scope="button"][data-aeon-part="group"]': {
|
|
149
|
+
display: 'inline-flex',
|
|
150
|
+
alignItems: 'center',
|
|
151
|
+
flexWrap: 'wrap',
|
|
152
|
+
gap: '0.5rem',
|
|
153
|
+
},
|
|
154
|
+
'[data-aeon-scope="button"][data-aeon-part="group"] > [data-aeon-scope="button"][data-aeon-part="root"]': {
|
|
155
|
+
marginInlineStart: '0',
|
|
156
|
+
},
|
|
157
|
+
':not([data-aeon-part="group"]):not([data-aeon-part="actions"]) > [data-aeon-scope="button"][data-aeon-part="root"] + [data-aeon-scope="button"][data-aeon-part="root"]':
|
|
158
|
+
{
|
|
159
|
+
marginInlineStart: '0.5rem',
|
|
160
|
+
},
|
|
161
|
+
'[data-aeon-scope="button"][data-aeon-part="root"][data-aeon-state="pending"]': {
|
|
162
|
+
cursor: 'wait',
|
|
163
|
+
opacity: '0.85',
|
|
164
|
+
},
|
|
165
|
+
'[data-aeon-scope="button"][data-aeon-part="root"][data-aeon-state="success"]': {
|
|
166
|
+
borderColor: 'accent',
|
|
167
|
+
},
|
|
168
|
+
'[data-aeon-scope="button"][data-aeon-part="root"][data-aeon-state="failure"]': {
|
|
169
|
+
borderColor: 'danger',
|
|
170
|
+
color: 'danger',
|
|
171
|
+
},
|
|
172
|
+
'[data-aeon-part="readout"][data-aeon-state="loading"] [data-aeon-part="readoutRail"]': {
|
|
173
|
+
bg: 'accent',
|
|
174
|
+
opacity: '0.7',
|
|
175
|
+
},
|
|
176
|
+
'[data-aeon-part="readout"][data-aeon-state="success"] [data-aeon-part="readoutRail"], [data-aeon-part="readout"][data-aeon-state*="success"] [data-aeon-part="readoutRail"]':
|
|
177
|
+
{
|
|
178
|
+
bg: 'accent',
|
|
179
|
+
},
|
|
180
|
+
'[data-aeon-part="readout"][data-aeon-state="failure"] [data-aeon-part="readoutRail"]': {
|
|
181
|
+
bg: 'danger',
|
|
182
|
+
},
|
|
183
|
+
'[data-aeon-part="readout"][data-aeon-state="empty"] [data-aeon-part="readoutRail"]': {
|
|
184
|
+
bg: 'muted',
|
|
185
|
+
},
|
|
186
|
+
'[data-aeon-part="readout"]': {
|
|
187
|
+
display: 'flex',
|
|
188
|
+
alignItems: 'stretch',
|
|
189
|
+
width: '100%',
|
|
190
|
+
minHeight: '5.5rem',
|
|
191
|
+
borderWidth: '1px',
|
|
192
|
+
borderStyle: 'solid',
|
|
193
|
+
borderColor: 'border',
|
|
194
|
+
borderRadius: 'lg',
|
|
195
|
+
overflow: 'hidden',
|
|
196
|
+
bg: 'bg',
|
|
197
|
+
},
|
|
198
|
+
'[data-aeon-part="readoutRail"]': {
|
|
199
|
+
flex: '0 0 4px',
|
|
200
|
+
alignSelf: 'stretch',
|
|
201
|
+
bg: 'border',
|
|
202
|
+
},
|
|
203
|
+
'[data-aeon-part="readoutBody"]': {
|
|
204
|
+
flex: '1 1 auto',
|
|
205
|
+
minWidth: '0',
|
|
206
|
+
display: 'flex',
|
|
207
|
+
alignItems: 'center',
|
|
208
|
+
paddingInline: 'padMd',
|
|
209
|
+
paddingBlock: 'padMd',
|
|
210
|
+
},
|
|
211
|
+
'[data-aeon-part="readoutBody"] > *': {
|
|
212
|
+
margin: '0',
|
|
213
|
+
maxWidth: '100%',
|
|
214
|
+
lineHeight: '1.5',
|
|
215
|
+
},
|
|
216
|
+
'[data-aeon-part="track"] [data-aeon-part="segment"]': {
|
|
217
|
+
paddingBlock: '0.75rem',
|
|
218
|
+
paddingInline: '1.35rem',
|
|
219
|
+
minWidth: '4.75rem',
|
|
220
|
+
},
|
|
221
|
+
'[data-aeon-scope="field"] [data-aeon-part="control"][aria-invalid="true"]': {
|
|
222
|
+
borderColor: 'danger',
|
|
223
|
+
},
|
|
224
|
+
'[data-aeon-scope="field"][data-aeon-state*="submission:pending"] [data-aeon-part="control"]': {
|
|
225
|
+
opacity: '0.7',
|
|
226
|
+
pointerEvents: 'none',
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Panda emits theme rules in @layer base, but @layer tokens resets --colors-aeon-*.
|
|
3
|
+
* This file is unlayered and imported after styles.css so light/dark actually apply.
|
|
4
|
+
*/
|
|
5
|
+
import { writeFileSync } from 'node:fs'
|
|
6
|
+
import { dirname, join } from 'node:path'
|
|
7
|
+
import { fileURLToPath } from 'node:url'
|
|
8
|
+
import { buildThemeGlobalCss } from '../src/theme/global-theme-css.js'
|
|
9
|
+
|
|
10
|
+
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
11
|
+
const outPath = join(__dirname, '../theme-runtime.css')
|
|
12
|
+
|
|
13
|
+
function declToCss(prop: string, value: string): string {
|
|
14
|
+
if (prop === 'colorScheme') return ` color-scheme: ${value};`
|
|
15
|
+
return ` ${prop}: ${value};`
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function rulesToCss(rules: Record<string, Record<string, string | undefined>>): string {
|
|
19
|
+
const lines = [
|
|
20
|
+
'/* Generated by scripts/emit-theme-runtime.ts — do not edit */',
|
|
21
|
+
'/* Import after @aeon-ui/panda/styles.css */',
|
|
22
|
+
'',
|
|
23
|
+
]
|
|
24
|
+
for (const [selector, decls] of Object.entries(rules)) {
|
|
25
|
+
lines.push(`${selector} {`)
|
|
26
|
+
for (const [prop, value] of Object.entries(decls)) {
|
|
27
|
+
if (value !== undefined) lines.push(declToCss(prop, value))
|
|
28
|
+
}
|
|
29
|
+
lines.push('}', '')
|
|
30
|
+
}
|
|
31
|
+
return lines.join('\n')
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const rules = buildThemeGlobalCss()
|
|
35
|
+
|
|
36
|
+
writeFileSync(outPath, rulesToCss(rules), 'utf8')
|
|
37
|
+
console.log(`Wrote ${outPath}`)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const slots = ['root', 'item', 'itemTrigger', 'itemContent', 'itemIndicator'] as const
|
|
4
|
+
|
|
5
|
+
export const accordionRecipe = defineSlotRecipe({
|
|
6
|
+
className: 'aeonAccordion',
|
|
7
|
+
description: 'Aeon accordion — content stacks with gap (no stacked padding + margins)',
|
|
8
|
+
slots,
|
|
9
|
+
base: {
|
|
10
|
+
root: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDirection: 'column',
|
|
13
|
+
gap: 'accordionGap',
|
|
14
|
+
fontFamily: 'ui',
|
|
15
|
+
},
|
|
16
|
+
item: {
|
|
17
|
+
borderRadius: 'md',
|
|
18
|
+
borderWidth: '1px',
|
|
19
|
+
borderStyle: 'solid',
|
|
20
|
+
borderColor: 'border',
|
|
21
|
+
bg: 'surface',
|
|
22
|
+
/* No overflow:hidden — it washes out corners when inner separators exist */
|
|
23
|
+
},
|
|
24
|
+
itemTrigger: {
|
|
25
|
+
width: '100%',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'space-between',
|
|
29
|
+
gap: 'gapLg',
|
|
30
|
+
textAlign: 'left',
|
|
31
|
+
fontSize: 'md',
|
|
32
|
+
fontWeight: 'medium',
|
|
33
|
+
lineHeight: 'snug',
|
|
34
|
+
color: 'fg',
|
|
35
|
+
px: 'accordionInsetX',
|
|
36
|
+
py: 'accordionTriggerY',
|
|
37
|
+
minH: 'accordionTriggerMinH',
|
|
38
|
+
cursor: 'pointer',
|
|
39
|
+
appearance: 'none',
|
|
40
|
+
WebkitAppearance: 'none',
|
|
41
|
+
font: 'inherit',
|
|
42
|
+
bg: 'surface',
|
|
43
|
+
transitionProperty: 'background-color',
|
|
44
|
+
transitionDuration: 'normal',
|
|
45
|
+
outline: 'none',
|
|
46
|
+
borderTopLeftRadius: 'md',
|
|
47
|
+
borderTopRightRadius: 'md',
|
|
48
|
+
_aeonClosed: {
|
|
49
|
+
borderBottomLeftRadius: 'md',
|
|
50
|
+
borderBottomRightRadius: 'md',
|
|
51
|
+
},
|
|
52
|
+
_hover: { bg: 'surfaceRaised' },
|
|
53
|
+
_focusVisible: { boxShadow: 'focusRing' },
|
|
54
|
+
},
|
|
55
|
+
itemContent: {
|
|
56
|
+
position: 'relative',
|
|
57
|
+
display: 'flex',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
alignItems: 'stretch',
|
|
60
|
+
gap: 'gapSm',
|
|
61
|
+
fontSize: 'sm',
|
|
62
|
+
color: 'muted',
|
|
63
|
+
lineHeight: '1.55',
|
|
64
|
+
bg: 'surface',
|
|
65
|
+
px: 'accordionInsetX',
|
|
66
|
+
pt: 'padMd',
|
|
67
|
+
pb: 'padMd',
|
|
68
|
+
borderBottomLeftRadius: 'md',
|
|
69
|
+
borderBottomRightRadius: 'md',
|
|
70
|
+
/* Children supply their own margins in demos — gap is the only rhythm here */
|
|
71
|
+
'& > *': {
|
|
72
|
+
margin: '0',
|
|
73
|
+
},
|
|
74
|
+
'& .code-example': {
|
|
75
|
+
margin: '0',
|
|
76
|
+
},
|
|
77
|
+
_before: {
|
|
78
|
+
content: '""',
|
|
79
|
+
position: 'absolute',
|
|
80
|
+
top: '0',
|
|
81
|
+
left: 'accordionInsetX',
|
|
82
|
+
right: 'accordionInsetX',
|
|
83
|
+
height: '1px',
|
|
84
|
+
bg: 'border',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
itemIndicator: {
|
|
88
|
+
flexShrink: 0,
|
|
89
|
+
color: 'muted',
|
|
90
|
+
fontSize: 'sm',
|
|
91
|
+
lineHeight: '1',
|
|
92
|
+
px: '1',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
})
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const asyncRegionRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'aeonAsync',
|
|
5
|
+
description: 'Async data region — track, readout, and actions',
|
|
6
|
+
slots: ['root', 'track', 'segment', 'readout', 'readoutRail', 'readoutBody', 'actions'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
gap: 'gapLg',
|
|
12
|
+
},
|
|
13
|
+
track: {
|
|
14
|
+
'--aeon-state-track-count': '5',
|
|
15
|
+
containerType: 'inline-size',
|
|
16
|
+
display: 'grid',
|
|
17
|
+
gridTemplateColumns: 'repeat(var(--aeon-state-track-count), minmax(0, 1fr))',
|
|
18
|
+
alignItems: 'stretch',
|
|
19
|
+
width: '100%',
|
|
20
|
+
fontFamily: 'mono',
|
|
21
|
+
fontSize: 'clamp(0.5rem, 3cqi, 0.6875rem)',
|
|
22
|
+
fontWeight: 'semibold',
|
|
23
|
+
letterSpacing: 'clamp(0.02em, 0.12cqi, 0.06em)',
|
|
24
|
+
textTransform: 'uppercase',
|
|
25
|
+
lineHeight: '1.2',
|
|
26
|
+
},
|
|
27
|
+
segment: {
|
|
28
|
+
minW: '0',
|
|
29
|
+
display: 'flex',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
py: '2.5',
|
|
33
|
+
px: 'clamp(0.15rem, 2.5cqi, 0.85rem)',
|
|
34
|
+
color: 'muted',
|
|
35
|
+
bg: 'bg',
|
|
36
|
+
borderWidth: '1px',
|
|
37
|
+
borderStyle: 'solid',
|
|
38
|
+
borderColor: 'border',
|
|
39
|
+
whiteSpace: 'nowrap',
|
|
40
|
+
},
|
|
41
|
+
readout: {
|
|
42
|
+
display: 'flex',
|
|
43
|
+
alignItems: 'stretch',
|
|
44
|
+
width: '100%',
|
|
45
|
+
minH: '5.5rem',
|
|
46
|
+
borderWidth: '1px',
|
|
47
|
+
borderStyle: 'solid',
|
|
48
|
+
borderColor: 'border',
|
|
49
|
+
borderRadius: 'lg',
|
|
50
|
+
overflow: 'hidden',
|
|
51
|
+
bg: 'bg',
|
|
52
|
+
},
|
|
53
|
+
readoutRail: {
|
|
54
|
+
flex: '0 0 4px',
|
|
55
|
+
alignSelf: 'stretch',
|
|
56
|
+
bg: 'border',
|
|
57
|
+
transitionProperty: 'background',
|
|
58
|
+
transitionDuration: 'normal',
|
|
59
|
+
},
|
|
60
|
+
readoutBody: {
|
|
61
|
+
flex: '1 1 auto',
|
|
62
|
+
minW: '0',
|
|
63
|
+
display: 'flex',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
px: 'padMd',
|
|
66
|
+
py: 'padMd',
|
|
67
|
+
lineHeight: '1.5',
|
|
68
|
+
},
|
|
69
|
+
actions: {
|
|
70
|
+
display: 'inline-flex',
|
|
71
|
+
flexWrap: 'wrap',
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
gap: 'gapSm',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const badgeRecipe = defineRecipe({
|
|
4
|
+
className: 'aeonBadge',
|
|
5
|
+
base: {
|
|
6
|
+
display: 'inline-flex',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
alignSelf: 'flex-start',
|
|
9
|
+
fontSize: '0.6875rem',
|
|
10
|
+
fontWeight: 'semibold',
|
|
11
|
+
borderRadius: 'sm',
|
|
12
|
+
borderWidth: '1px',
|
|
13
|
+
borderStyle: 'solid',
|
|
14
|
+
fontFamily: 'ui',
|
|
15
|
+
lineHeight: '1.2',
|
|
16
|
+
letterSpacing: '0.06em',
|
|
17
|
+
textTransform: 'uppercase',
|
|
18
|
+
py: 'badgeY',
|
|
19
|
+
px: 'badgeX',
|
|
20
|
+
whiteSpace: 'nowrap',
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
default: {
|
|
25
|
+
bg: 'surfaceRaised',
|
|
26
|
+
color: 'muted',
|
|
27
|
+
borderColor: 'border',
|
|
28
|
+
},
|
|
29
|
+
accent: {
|
|
30
|
+
bg: 'accentDim',
|
|
31
|
+
color: 'accent',
|
|
32
|
+
borderColor: 'accent',
|
|
33
|
+
},
|
|
34
|
+
danger: {
|
|
35
|
+
bg: 'dangerDim',
|
|
36
|
+
color: 'danger',
|
|
37
|
+
borderColor: 'danger',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
variant: 'default',
|
|
43
|
+
},
|
|
44
|
+
})
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
/** Layout wrapper for multiple buttons — default gap between controls. */
|
|
4
|
+
export const buttonGroupRecipe = defineRecipe({
|
|
5
|
+
className: 'aeonButtonGroup',
|
|
6
|
+
description: 'Horizontal or vertical stack of buttons with consistent spacing',
|
|
7
|
+
base: {
|
|
8
|
+
display: 'inline-flex',
|
|
9
|
+
flexWrap: 'wrap',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
justifyContent: 'flex-start',
|
|
12
|
+
gap: '0.5rem',
|
|
13
|
+
verticalAlign: 'middle',
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: {},
|
|
18
|
+
vertical: {
|
|
19
|
+
flexDirection: 'column',
|
|
20
|
+
alignItems: 'flex-start',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
gap: {
|
|
24
|
+
sm: { gap: 'gapSm' },
|
|
25
|
+
md: { gap: 'gap' },
|
|
26
|
+
lg: { gap: 'gapLg' },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
orientation: 'horizontal',
|
|
31
|
+
gap: 'sm',
|
|
32
|
+
},
|
|
33
|
+
})
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const buttonRecipe = defineRecipe({
|
|
4
|
+
className: 'aeonButton',
|
|
5
|
+
description: 'Aeon button styles',
|
|
6
|
+
base: {
|
|
7
|
+
display: 'inline-flex',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignSelf: 'center',
|
|
11
|
+
gap: '2',
|
|
12
|
+
fontWeight: 'medium',
|
|
13
|
+
fontFamily: 'ui',
|
|
14
|
+
lineHeight: '1.25',
|
|
15
|
+
transitionProperty: 'color, background-color, border-color, box-shadow, transform',
|
|
16
|
+
transitionDuration: 'normal',
|
|
17
|
+
cursor: 'pointer',
|
|
18
|
+
outline: 'none',
|
|
19
|
+
whiteSpace: 'nowrap',
|
|
20
|
+
_focusVisible: {
|
|
21
|
+
boxShadow: 'focusRing',
|
|
22
|
+
},
|
|
23
|
+
_disabled: {
|
|
24
|
+
opacity: '0.4',
|
|
25
|
+
pointerEvents: 'none',
|
|
26
|
+
},
|
|
27
|
+
_active: {
|
|
28
|
+
transform: 'scale(0.98)',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
solid: {
|
|
34
|
+
bg: 'accent',
|
|
35
|
+
color: 'bg',
|
|
36
|
+
_hover: { filter: 'brightness(1.1)' },
|
|
37
|
+
},
|
|
38
|
+
outline: {
|
|
39
|
+
borderWidth: '1px',
|
|
40
|
+
borderStyle: 'solid',
|
|
41
|
+
borderColor: 'border',
|
|
42
|
+
bg: 'transparent',
|
|
43
|
+
color: 'fg',
|
|
44
|
+
_hover: { borderColor: 'accent' },
|
|
45
|
+
},
|
|
46
|
+
ghost: {
|
|
47
|
+
bg: 'transparent',
|
|
48
|
+
color: 'muted',
|
|
49
|
+
_hover: {
|
|
50
|
+
color: 'fg',
|
|
51
|
+
bg: 'surfaceRaised',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
size: {
|
|
56
|
+
xs: {
|
|
57
|
+
fontSize: '0.75rem',
|
|
58
|
+
fontWeight: 'semibold',
|
|
59
|
+
borderRadius: 'sm',
|
|
60
|
+
py: 'controlYSm',
|
|
61
|
+
px: 'controlXSm',
|
|
62
|
+
minH: '1.75rem',
|
|
63
|
+
},
|
|
64
|
+
sm: {
|
|
65
|
+
fontSize: '0.8125rem',
|
|
66
|
+
borderRadius: 'sm',
|
|
67
|
+
py: 'controlY',
|
|
68
|
+
px: 'controlX',
|
|
69
|
+
minH: '2rem',
|
|
70
|
+
},
|
|
71
|
+
md: {
|
|
72
|
+
fontSize: '0.875rem',
|
|
73
|
+
borderRadius: 'md',
|
|
74
|
+
py: '0.4375rem',
|
|
75
|
+
px: '0.875rem',
|
|
76
|
+
minH: '2.25rem',
|
|
77
|
+
},
|
|
78
|
+
lg: {
|
|
79
|
+
fontSize: '0.9375rem',
|
|
80
|
+
borderRadius: 'md',
|
|
81
|
+
py: 'insetYSm',
|
|
82
|
+
px: 'insetXSm',
|
|
83
|
+
minH: '2.5rem',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
variant: 'solid',
|
|
89
|
+
size: 'sm',
|
|
90
|
+
},
|
|
91
|
+
})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
import { fieldControlReset, fieldLabelBase, fieldRootBase } from './field-shared.js'
|
|
3
|
+
|
|
4
|
+
const slots = ['root', 'control', 'indicator', 'label', 'hiddenInput'] as const
|
|
5
|
+
|
|
6
|
+
export const checkboxRecipe = defineSlotRecipe({
|
|
7
|
+
className: 'aeonCheckbox',
|
|
8
|
+
slots,
|
|
9
|
+
base: {
|
|
10
|
+
root: fieldRootBase,
|
|
11
|
+
control: {
|
|
12
|
+
...fieldControlReset,
|
|
13
|
+
width: '1.5rem',
|
|
14
|
+
height: '1.5rem',
|
|
15
|
+
flexShrink: 0,
|
|
16
|
+
borderRadius: 'md',
|
|
17
|
+
borderWidth: '1px',
|
|
18
|
+
borderStyle: 'solid',
|
|
19
|
+
borderColor: 'border',
|
|
20
|
+
bg: 'surface',
|
|
21
|
+
display: 'inline-flex',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
justifyContent: 'center',
|
|
24
|
+
cursor: 'pointer',
|
|
25
|
+
transitionProperty: 'background-color, border-color',
|
|
26
|
+
transitionDuration: 'normal',
|
|
27
|
+
outline: 'none',
|
|
28
|
+
_focusVisible: { boxShadow: 'focusRing' },
|
|
29
|
+
_aeonChecked: {
|
|
30
|
+
bg: 'accent',
|
|
31
|
+
borderColor: 'accent',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
indicator: {
|
|
35
|
+
color: 'bg',
|
|
36
|
+
fontSize: 'xs',
|
|
37
|
+
fontWeight: 'bold',
|
|
38
|
+
},
|
|
39
|
+
label: fieldLabelBase,
|
|
40
|
+
},
|
|
41
|
+
})
|