aeon-ui-engine 1.0.3 → 1.1.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 +15 -0
- package/CONSUMER.md +39 -42
- package/README.md +47 -16
- package/package.json +9 -2
- package/packages/cli/README.md +17 -0
- package/packages/cli/dist/bin.d.ts +1 -0
- package/packages/cli/dist/bin.js +35 -0
- package/packages/cli/dist/chunk-IW5NT2Z2.js +103 -0
- package/packages/cli/dist/index.d.ts +10 -0
- package/packages/cli/dist/index.js +6 -0
- package/packages/cli/node_modules/.bin/esbuild +21 -0
- package/packages/cli/node_modules/.bin/jiti +21 -0
- package/packages/cli/node_modules/.bin/tsc +21 -0
- package/packages/cli/node_modules/.bin/tsserver +21 -0
- package/packages/cli/node_modules/.bin/tsup +21 -0
- package/packages/cli/node_modules/.bin/tsup-node +21 -0
- package/packages/cli/node_modules/.bin/tsx +21 -0
- package/packages/cli/node_modules/.bin/vite +21 -0
- package/packages/cli/node_modules/.bin/vitest +21 -0
- package/packages/cli/package.json +50 -0
- package/packages/cli/src/bin.ts +34 -0
- package/packages/cli/src/index.ts +1 -0
- package/packages/cli/src/init.ts +107 -0
- package/packages/cli/tsconfig.json +10 -0
- package/packages/core/README.md +7 -1
- package/packages/core/dist/index.d.ts +174 -6
- package/packages/core/dist/index.js +259 -2
- package/packages/core/node_modules/.bin/esbuild +4 -4
- package/packages/core/node_modules/.bin/vite +4 -4
- package/packages/core/node_modules/.bin/vitest +2 -2
- package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/core/package.json +17 -5
- package/packages/core/src/anatomy.ts +196 -5
- package/packages/core/src/machine.test.ts +62 -1
- package/packages/core/src/machine.ts +93 -0
- package/packages/core/src/theme.ts +105 -0
- package/packages/panda/aeon.css +7 -0
- package/packages/panda/package.json +1 -1
- package/packages/panda/panda.config.ts +58 -1
- package/packages/panda/src/recipes/app-shell.ts +137 -0
- package/packages/panda/src/recipes/avatar.ts +131 -0
- package/packages/panda/src/recipes/bar.ts +206 -0
- package/packages/panda/src/recipes/button-group.ts +12 -4
- package/packages/panda/src/recipes/button.ts +1 -0
- package/packages/panda/src/recipes/combobox.ts +2 -1
- package/packages/panda/src/recipes/composer.ts +81 -0
- package/packages/panda/src/recipes/content.ts +104 -0
- package/packages/panda/src/recipes/conversation.ts +106 -0
- package/packages/panda/src/recipes/entry.ts +217 -0
- package/packages/panda/src/recipes/field.ts +12 -2
- package/packages/panda/src/recipes/floating.ts +26 -13
- package/packages/panda/src/recipes/identity.ts +73 -0
- package/packages/panda/src/recipes/index.ts +15 -0
- package/packages/panda/src/recipes/list-row.ts +109 -0
- package/packages/panda/src/recipes/metric-strip.ts +80 -0
- package/packages/panda/src/recipes/nav.ts +155 -0
- package/packages/panda/src/recipes/panel.ts +156 -0
- package/packages/panda/src/recipes/pin-input.ts +3 -2
- package/packages/panda/src/recipes/profile-header.ts +120 -0
- package/packages/panda/src/recipes/select.ts +2 -1
- package/packages/panda/src/recipes/slider.ts +6 -4
- package/packages/panda/src/recipes/theme-switcher.ts +110 -0
- package/packages/panda/src/recipes/thread.ts +88 -0
- package/packages/panda/src/theme/catalog-types.ts +2 -0
- package/packages/panda/src/theme/catalog.ts +23 -0
- package/packages/panda/src/theme/chrome.css +2 -1
- package/packages/panda/src/theme/global-theme-css.ts +9 -0
- package/packages/panda/src/theme/omarchy.themes.ts +607 -0
- package/packages/panda/src/theme/palette.ts +3 -0
- package/packages/panda/src/theme/scrollbars.css +58 -21
- package/packages/panda/src/theme/themes.config.ts +39 -1
- package/packages/panda/styled-system/css/conditions.mjs +1 -1
- package/packages/panda/styled-system/css/css.mjs +1 -1
- package/packages/panda/styled-system/css/sva.mjs +9 -4
- package/packages/panda/styled-system/helpers.mjs +11 -22
- package/packages/panda/styled-system/jsx/create-style-context.d.ts +54 -0
- package/packages/panda/styled-system/jsx/create-style-context.mjs +121 -0
- package/packages/panda/styled-system/jsx/factory.mjs +14 -5
- package/packages/panda/styled-system/jsx/index.d.ts +1 -0
- package/packages/panda/styled-system/jsx/index.mjs +1 -0
- package/packages/panda/styled-system/jsx/is-valid-prop.mjs +2 -2
- package/packages/panda/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/packages/panda/styled-system/patterns/bleed.d.ts +0 -1
- package/packages/panda/styled-system/patterns/box.d.ts +0 -1
- package/packages/panda/styled-system/patterns/center.d.ts +0 -1
- package/packages/panda/styled-system/patterns/circle.d.ts +0 -1
- package/packages/panda/styled-system/patterns/container.d.ts +0 -1
- package/packages/panda/styled-system/patterns/cq.d.ts +0 -1
- package/packages/panda/styled-system/patterns/divider.d.ts +0 -1
- package/packages/panda/styled-system/patterns/flex.d.ts +0 -1
- package/packages/panda/styled-system/patterns/float.d.ts +0 -1
- package/packages/panda/styled-system/patterns/grid-item.d.ts +0 -1
- package/packages/panda/styled-system/patterns/grid.d.ts +0 -1
- package/packages/panda/styled-system/patterns/grid.mjs +1 -1
- package/packages/panda/styled-system/patterns/hstack.d.ts +0 -1
- package/packages/panda/styled-system/patterns/hstack.mjs +1 -1
- package/packages/panda/styled-system/patterns/link-overlay.d.ts +0 -1
- package/packages/panda/styled-system/patterns/spacer.d.ts +0 -1
- package/packages/panda/styled-system/patterns/spacer.mjs +6 -2
- package/packages/panda/styled-system/patterns/square.d.ts +0 -1
- package/packages/panda/styled-system/patterns/stack.d.ts +0 -1
- package/packages/panda/styled-system/patterns/stack.mjs +1 -1
- package/packages/panda/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/packages/panda/styled-system/patterns/vstack.d.ts +0 -1
- package/packages/panda/styled-system/patterns/vstack.mjs +1 -1
- package/packages/panda/styled-system/patterns/wrap.d.ts +0 -1
- package/packages/panda/styled-system/patterns/wrap.mjs +1 -1
- package/packages/panda/styled-system/recipes/aeon-accordion.d.ts +4 -3
- package/packages/panda/styled-system/recipes/aeon-accordion.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-app-shell.d.ts +34 -0
- package/packages/panda/styled-system/recipes/aeon-app-shell.mjs +70 -0
- package/packages/panda/styled-system/recipes/aeon-async.d.ts +4 -3
- package/packages/panda/styled-system/recipes/aeon-async.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-avatar.d.ts +36 -0
- package/packages/panda/styled-system/recipes/aeon-avatar.mjs +57 -0
- package/packages/panda/styled-system/recipes/aeon-badge.d.ts +3 -0
- package/packages/panda/styled-system/recipes/aeon-bar.d.ts +40 -0
- package/packages/panda/styled-system/recipes/aeon-bar.mjs +77 -0
- package/packages/panda/styled-system/recipes/aeon-button-group.d.ts +3 -2
- package/packages/panda/styled-system/recipes/aeon-button.d.ts +3 -2
- package/packages/panda/styled-system/recipes/aeon-checkbox.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-checkbox.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-combobox.d.ts +4 -3
- package/packages/panda/styled-system/recipes/aeon-combobox.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-composer.d.ts +31 -0
- package/packages/panda/styled-system/recipes/aeon-composer.mjs +45 -0
- package/packages/panda/styled-system/recipes/aeon-content.d.ts +34 -0
- package/packages/panda/styled-system/recipes/aeon-content.mjs +70 -0
- package/packages/panda/styled-system/recipes/aeon-conversation.d.ts +31 -0
- package/packages/panda/styled-system/recipes/aeon-conversation.mjs +61 -0
- package/packages/panda/styled-system/recipes/aeon-dialog.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-dialog.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-entry.d.ts +38 -0
- package/packages/panda/styled-system/recipes/aeon-entry.mjs +100 -0
- package/packages/panda/styled-system/recipes/aeon-field.d.ts +4 -3
- package/packages/panda/styled-system/recipes/aeon-field.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-identity.d.ts +36 -0
- package/packages/panda/styled-system/recipes/aeon-identity.mjs +63 -0
- package/packages/panda/styled-system/recipes/aeon-list-row.d.ts +33 -0
- package/packages/panda/styled-system/recipes/aeon-list-row.mjs +49 -0
- package/packages/panda/styled-system/recipes/aeon-menu.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-menu.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-metric-strip.d.ts +36 -0
- package/packages/panda/styled-system/recipes/aeon-metric-strip.mjs +54 -0
- package/packages/panda/styled-system/recipes/aeon-nav.d.ts +38 -0
- package/packages/panda/styled-system/recipes/aeon-nav.mjs +69 -0
- package/packages/panda/styled-system/recipes/aeon-panel.d.ts +34 -0
- package/packages/panda/styled-system/recipes/aeon-panel.mjs +58 -0
- package/packages/panda/styled-system/recipes/aeon-pin-input.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-pin-input.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-popover.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-popover.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-profile-header.d.ts +36 -0
- package/packages/panda/styled-system/recipes/aeon-profile-header.mjs +62 -0
- package/packages/panda/styled-system/recipes/aeon-progress.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-progress.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-radio-group.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-radio-group.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-scroll.d.ts +4 -3
- package/packages/panda/styled-system/recipes/aeon-scroll.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-select.d.ts +4 -3
- package/packages/panda/styled-system/recipes/aeon-select.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-separator.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-separator.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-slider.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-slider.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-switch.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-switch.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-tabs.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-tabs.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-theme-switcher.d.ts +34 -0
- package/packages/panda/styled-system/recipes/aeon-theme-switcher.mjs +59 -0
- package/packages/panda/styled-system/recipes/aeon-thread.d.ts +31 -0
- package/packages/panda/styled-system/recipes/aeon-thread.mjs +53 -0
- package/packages/panda/styled-system/recipes/aeon-toast.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-toast.mjs +1 -0
- package/packages/panda/styled-system/recipes/aeon-tooltip.d.ts +4 -1
- package/packages/panda/styled-system/recipes/aeon-tooltip.mjs +1 -0
- package/packages/panda/styled-system/recipes/index.d.ts +16 -1
- package/packages/panda/styled-system/recipes/index.mjs +16 -1
- package/packages/panda/styled-system/styles.css +2317 -450
- package/packages/panda/styled-system/tokens/index.mjs +43 -7
- package/packages/panda/styled-system/tokens/tokens.d.ts +5 -5
- package/packages/panda/styled-system/types/composition.d.ts +86 -23
- package/packages/panda/styled-system/types/conditions.d.ts +34 -10
- package/packages/panda/styled-system/types/csstype.d.ts +6405 -5133
- package/packages/panda/styled-system/types/jsx.d.ts +27 -10
- package/packages/panda/styled-system/types/pattern.d.ts +4 -4
- package/packages/panda/styled-system/types/prop-type.d.ts +11 -1
- package/packages/panda/styled-system/types/style-props.d.ts +2763 -2165
- package/packages/panda/styled-system/types/system-types.d.ts +38 -80
- package/packages/panda/theme-runtime.css +945 -0
- package/packages/primitives/dist/chunk-R25CUHNF.js +46 -0
- package/packages/primitives/dist/chunk-RO2DMFN5.js +89 -0
- package/packages/primitives/dist/chunk-V5D7LS4J.js +61 -0
- package/packages/primitives/dist/chunk-YBPNI2LI.js +70 -0
- package/packages/primitives/dist/index.d.ts +4 -0
- package/packages/primitives/dist/index.js +30 -8
- package/packages/primitives/dist/machines/app-shell.d.ts +57 -0
- package/packages/primitives/dist/machines/app-shell.js +8 -0
- package/packages/primitives/dist/machines/async.d.ts +4 -4
- package/packages/primitives/dist/machines/content-region.d.ts +72 -0
- package/packages/primitives/dist/machines/content-region.js +8 -0
- package/packages/primitives/dist/machines/panel.d.ts +50 -0
- package/packages/primitives/dist/machines/panel.js +6 -0
- package/packages/primitives/dist/machines/sticky-bar.d.ts +62 -0
- package/packages/primitives/dist/machines/sticky-bar.js +8 -0
- package/packages/primitives/node_modules/.bin/esbuild +21 -0
- package/packages/primitives/node_modules/.bin/vite +21 -0
- package/packages/primitives/node_modules/.bin/vitest +2 -2
- package/packages/primitives/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/primitives/package.json +15 -5
- package/packages/primitives/scripts/xstate-introspect.mjs +35 -0
- package/packages/primitives/src/index.ts +4 -0
- package/packages/primitives/src/machines/app-shell.ts +63 -0
- package/packages/primitives/src/machines/content-region.ts +107 -0
- package/packages/primitives/src/machines/panel.ts +71 -0
- package/packages/primitives/src/machines/sticky-bar.ts +89 -0
- package/packages/react/dist/index.d.ts +403 -16
- package/packages/react/dist/index.js +1505 -227
- package/packages/react/node_modules/.bin/esbuild +21 -0
- package/packages/react/node_modules/.bin/vite +21 -0
- package/packages/react/node_modules/.bin/vitest +2 -2
- package/packages/react/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/react/package.json +18 -7
- package/packages/react/src/app-shell/index.tsx +154 -0
- package/packages/react/src/async/index.tsx +6 -1
- package/packages/react/src/async/map-content-state.ts +18 -0
- package/packages/react/src/avatar/index.tsx +19 -0
- package/packages/react/src/bar/index.tsx +101 -0
- package/packages/react/src/button/index.tsx +4 -2
- package/packages/react/src/composer/index.tsx +75 -0
- package/packages/react/src/content/index.tsx +149 -0
- package/packages/react/src/conversation/index.tsx +78 -0
- package/packages/react/src/entry/index.tsx +85 -0
- package/packages/react/src/field/index.tsx +31 -18
- package/packages/react/src/identity/index.tsx +110 -0
- package/packages/react/src/index.ts +15 -0
- package/packages/react/src/list-row/index.tsx +80 -0
- package/packages/react/src/metric-strip/index.tsx +88 -0
- package/packages/react/src/nav/index.tsx +155 -0
- package/packages/react/src/panel/index.tsx +267 -0
- package/packages/react/src/profile-header/index.tsx +91 -0
- package/packages/react/src/radio-group/index.tsx +19 -7
- package/packages/react/src/slider/index.tsx +3 -1
- package/packages/react/src/sticky-bar/index.tsx +135 -0
- package/packages/react/src/switch/index.tsx +7 -1
- package/packages/react/src/theme-switcher/index.tsx +227 -0
- package/packages/react/src/thread/index.tsx +95 -0
- package/packages/react/src/toast/primitives.tsx +2 -2
- package/packages/react/src/tooltip/tooltip.test.tsx +9 -1
- package/packages/react/tsconfig.json +2 -1
- package/packages/schemas/README.md +52 -0
- package/packages/schemas/dist/index.d.ts +287 -0
- package/packages/schemas/dist/index.js +701 -0
- package/packages/schemas/json/accordion.json +132 -0
- package/packages/schemas/json/async.json +161 -0
- package/packages/schemas/json/button.json +170 -0
- package/packages/schemas/json/catalog.json +2299 -0
- package/packages/schemas/json/checkbox.json +136 -0
- package/packages/schemas/json/combobox.json +130 -0
- package/packages/schemas/json/dialog.json +154 -0
- package/packages/schemas/json/field.json +171 -0
- package/packages/schemas/json/menu.json +138 -0
- package/packages/schemas/json/popover.json +133 -0
- package/packages/schemas/json/progress.json +137 -0
- package/packages/schemas/json/scroll.json +129 -0
- package/packages/schemas/json/select.json +140 -0
- package/packages/schemas/json/switch.json +136 -0
- package/packages/schemas/json/tabs.json +135 -0
- package/packages/schemas/json/toast.json +141 -0
- package/packages/schemas/json/tooltip.json +123 -0
- package/packages/schemas/node_modules/.bin/esbuild +21 -0
- package/packages/schemas/node_modules/.bin/jiti +21 -0
- package/packages/schemas/node_modules/.bin/tsc +21 -0
- package/packages/schemas/node_modules/.bin/tsserver +21 -0
- package/packages/schemas/node_modules/.bin/tsup +21 -0
- package/packages/schemas/node_modules/.bin/tsup-node +21 -0
- package/packages/schemas/node_modules/.bin/tsx +21 -0
- package/packages/schemas/node_modules/.bin/vite +21 -0
- package/packages/schemas/node_modules/.bin/vitest +21 -0
- package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/packages/schemas/package.json +56 -0
- package/packages/schemas/prompts/cursorrules.md +64 -0
- package/packages/schemas/prompts/statecharts.md +31 -0
- package/packages/schemas/prompts/system.md +30 -0
- package/packages/schemas/registry/catalog.json +54 -0
- package/packages/schemas/registry/components/accordion.json +132 -0
- package/packages/schemas/registry/components/async.json +161 -0
- package/packages/schemas/registry/components/button.json +170 -0
- package/packages/schemas/registry/components/checkbox.json +136 -0
- package/packages/schemas/registry/components/combobox.json +130 -0
- package/packages/schemas/registry/components/dialog.json +154 -0
- package/packages/schemas/registry/components/field.json +171 -0
- package/packages/schemas/registry/components/menu.json +138 -0
- package/packages/schemas/registry/components/popover.json +133 -0
- package/packages/schemas/registry/components/progress.json +137 -0
- package/packages/schemas/registry/components/scroll.json +129 -0
- package/packages/schemas/registry/components/select.json +140 -0
- package/packages/schemas/registry/components/switch.json +136 -0
- package/packages/schemas/registry/components/tabs.json +135 -0
- package/packages/schemas/registry/components/toast.json +141 -0
- package/packages/schemas/registry/components/tooltip.json +123 -0
- package/packages/schemas/registry/machines/async.json +219 -0
- package/packages/schemas/registry/machines/buttonLifecycle.json +224 -0
- package/packages/schemas/registry/machines/dialog.json +143 -0
- package/packages/schemas/registry/machines/field.json +275 -0
- package/packages/schemas/scripts/emit.ts +61 -0
- package/packages/schemas/src/aeon-to-schema.test.ts +70 -0
- package/packages/schemas/src/aeon-to-schema.ts +206 -0
- package/packages/schemas/src/agent-bridge.ts +82 -0
- package/packages/schemas/src/components.ts +307 -0
- package/packages/schemas/src/index.test.ts +25 -0
- package/packages/schemas/src/index.ts +25 -0
- package/packages/schemas/src/prompts.ts +121 -0
- package/packages/schemas/src/registry.ts +73 -0
- package/packages/schemas/src/schema-builder.ts +87 -0
- package/packages/schemas/tsconfig.json +9 -0
- package/packages/solid/package.json +2 -2
- package/packages/svelte/node_modules/.bin/esbuild +21 -0
- package/packages/svelte/node_modules/.bin/vite +4 -4
- package/packages/svelte/package.json +15 -5
- package/packages/ui/README.md +19 -6
- package/packages/ui/dist/index.d.ts +254 -9
- package/packages/ui/dist/index.js +690 -139
- package/packages/ui/src/app-shell.tsx +44 -0
- package/packages/ui/src/async.tsx +2 -1
- package/packages/ui/src/avatar.tsx +35 -0
- package/packages/ui/src/bar.tsx +34 -0
- package/packages/ui/src/composer.tsx +27 -0
- package/packages/ui/src/content.tsx +43 -0
- package/packages/ui/src/conversation.tsx +43 -0
- package/packages/ui/src/entry.tsx +76 -0
- package/packages/ui/src/field.tsx +5 -0
- package/packages/ui/src/identity.tsx +35 -0
- package/packages/ui/src/index.ts +16 -0
- package/packages/ui/src/list-row.tsx +30 -0
- package/packages/ui/src/metric-strip.tsx +29 -0
- package/packages/ui/src/nav.tsx +46 -0
- package/packages/ui/src/panel.tsx +39 -0
- package/packages/ui/src/profile-header.tsx +35 -0
- package/packages/ui/src/sticky-bar.tsx +42 -0
- package/packages/ui/src/switch.tsx +17 -4
- package/packages/ui/src/theme-switcher.tsx +41 -0
- package/packages/ui/src/thread.tsx +35 -0
- package/packages/vue/package.json +3 -3
- package/scripts/vite-aliases.mjs +57 -3
- package/scripts/xstate-introspect.mjs +68 -0
- package/packages/react/src/async/legacy-region.tsx +0 -38
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
/** Nav — top links, bottom tabs, side rail. */
|
|
4
|
+
const slots = ['root', 'item', 'indicator', 'label', 'icon', 'badge'] as const
|
|
5
|
+
|
|
6
|
+
export const navRecipe = defineSlotRecipe({
|
|
7
|
+
className: 'aeonNav',
|
|
8
|
+
slots,
|
|
9
|
+
base: {
|
|
10
|
+
root: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
gap: '0.25rem',
|
|
14
|
+
minW: 0,
|
|
15
|
+
width: '100%',
|
|
16
|
+
color: 'fg',
|
|
17
|
+
'&[data-aeon-orientation=vertical]': {
|
|
18
|
+
flexDir: 'column',
|
|
19
|
+
alignItems: 'stretch',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
item: {
|
|
23
|
+
display: 'inline-flex',
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
gap: '0.375rem',
|
|
27
|
+
position: 'relative',
|
|
28
|
+
px: '0.75rem',
|
|
29
|
+
py: '0.5rem',
|
|
30
|
+
borderRadius: 'xl',
|
|
31
|
+
cursor: 'pointer',
|
|
32
|
+
bg: 'transparent',
|
|
33
|
+
color: 'muted',
|
|
34
|
+
border: 'none',
|
|
35
|
+
font: 'inherit',
|
|
36
|
+
transitionProperty: 'color, background, opacity, transform',
|
|
37
|
+
transitionDuration: '0.15s',
|
|
38
|
+
_hover: {
|
|
39
|
+
color: 'fg',
|
|
40
|
+
bg: 'surfaceRaised',
|
|
41
|
+
},
|
|
42
|
+
'&[data-aeon-state=active]': {
|
|
43
|
+
color: 'accent',
|
|
44
|
+
bg: 'accentDim',
|
|
45
|
+
fontWeight: 'medium',
|
|
46
|
+
},
|
|
47
|
+
'&[data-aeon-state=inactive]': {
|
|
48
|
+
color: 'muted',
|
|
49
|
+
},
|
|
50
|
+
'&[data-aeon-state=disabled], &:disabled': {
|
|
51
|
+
opacity: 0.45,
|
|
52
|
+
cursor: 'not-allowed',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
indicator: {
|
|
56
|
+
position: 'absolute',
|
|
57
|
+
bottom: 0,
|
|
58
|
+
left: '0.75rem',
|
|
59
|
+
right: '0.75rem',
|
|
60
|
+
height: '2px',
|
|
61
|
+
borderRadius: 'full',
|
|
62
|
+
bg: 'accent',
|
|
63
|
+
opacity: 0,
|
|
64
|
+
transitionProperty: 'opacity',
|
|
65
|
+
transitionDuration: '0.15s',
|
|
66
|
+
'[data-aeon-state=active] > &': { opacity: 1 },
|
|
67
|
+
},
|
|
68
|
+
label: {
|
|
69
|
+
fontSize: 'xs',
|
|
70
|
+
fontWeight: 'medium',
|
|
71
|
+
letterSpacing: '-0.01em',
|
|
72
|
+
lineHeight: '1',
|
|
73
|
+
color: 'currentColor',
|
|
74
|
+
},
|
|
75
|
+
icon: {
|
|
76
|
+
display: 'inline-flex',
|
|
77
|
+
w: '1.35rem',
|
|
78
|
+
h: '1.35rem',
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
justifyContent: 'center',
|
|
81
|
+
flexShrink: 0,
|
|
82
|
+
color: 'currentColor',
|
|
83
|
+
'& svg': { width: '100%', height: '100%' },
|
|
84
|
+
},
|
|
85
|
+
badge: {
|
|
86
|
+
fontSize: 'xs',
|
|
87
|
+
px: '0.35rem',
|
|
88
|
+
borderRadius: 'full',
|
|
89
|
+
bg: 'accent',
|
|
90
|
+
color: 'bg',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
variants: {
|
|
94
|
+
size: {
|
|
95
|
+
sm: {
|
|
96
|
+
item: { px: '0.5rem', py: '0.375rem' },
|
|
97
|
+
label: { fontSize: 'xs' },
|
|
98
|
+
icon: { w: '1.2rem', h: '1.2rem' },
|
|
99
|
+
},
|
|
100
|
+
md: {},
|
|
101
|
+
lg: {
|
|
102
|
+
item: { px: '1rem', py: '0.625rem' },
|
|
103
|
+
label: { fontSize: 'md' },
|
|
104
|
+
icon: { w: '1.5rem', h: '1.5rem' },
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* layout — structural contract for how items fill space.
|
|
109
|
+
* - inline: compact row (top links)
|
|
110
|
+
* - dock: equal-width bottom tabs — icon above label (styles cascade from root)
|
|
111
|
+
*/
|
|
112
|
+
layout: {
|
|
113
|
+
inline: {},
|
|
114
|
+
dock: {
|
|
115
|
+
root: {
|
|
116
|
+
display: 'flex',
|
|
117
|
+
alignItems: 'stretch',
|
|
118
|
+
justifyContent: 'space-between',
|
|
119
|
+
gap: '0.1rem',
|
|
120
|
+
width: '100%',
|
|
121
|
+
minH: '2.75rem',
|
|
122
|
+
'& [data-aeon-part=item]': {
|
|
123
|
+
flex: '1 1 0%',
|
|
124
|
+
flexDirection: 'column',
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
gap: '0.12rem',
|
|
128
|
+
minW: 0,
|
|
129
|
+
px: '0.12rem',
|
|
130
|
+
py: '0.22rem',
|
|
131
|
+
borderRadius: 'md',
|
|
132
|
+
},
|
|
133
|
+
'& [data-aeon-part=indicator]': {
|
|
134
|
+
display: 'none',
|
|
135
|
+
},
|
|
136
|
+
'& [data-aeon-part=label]': {
|
|
137
|
+
fontSize: '0.62rem',
|
|
138
|
+
maxW: '100%',
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
textOverflow: 'ellipsis',
|
|
141
|
+
whiteSpace: 'nowrap',
|
|
142
|
+
},
|
|
143
|
+
'& [data-aeon-part=icon]': {
|
|
144
|
+
w: '1.25rem',
|
|
145
|
+
h: '1.25rem',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
defaultVariants: {
|
|
152
|
+
size: 'md',
|
|
153
|
+
layout: 'inline',
|
|
154
|
+
},
|
|
155
|
+
})
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Panel — collapsible split-view region.
|
|
5
|
+
* Expanded: content visible, label + trigger in a header row.
|
|
6
|
+
* Collapsed: content hidden; label becomes a vertical upright rail (C\nO\nM…).
|
|
7
|
+
*/
|
|
8
|
+
const slots = ['group', 'root', 'trigger', 'label', 'content'] as const
|
|
9
|
+
|
|
10
|
+
export const panelRecipe = defineSlotRecipe({
|
|
11
|
+
className: 'aeonPanel',
|
|
12
|
+
slots,
|
|
13
|
+
base: {
|
|
14
|
+
group: {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
alignItems: 'stretch',
|
|
17
|
+
gap: '0.85rem',
|
|
18
|
+
minWidth: 0,
|
|
19
|
+
minHeight: 0,
|
|
20
|
+
width: '100%',
|
|
21
|
+
'&[data-aeon-orientation=horizontal]': {
|
|
22
|
+
flexDirection: 'row',
|
|
23
|
+
},
|
|
24
|
+
'&[data-aeon-orientation=vertical]': {
|
|
25
|
+
flexDirection: 'column',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
root: {
|
|
29
|
+
display: 'grid',
|
|
30
|
+
gridTemplateColumns: 'minmax(0, 1fr) auto',
|
|
31
|
+
gridTemplateRows: 'auto minmax(0, 1fr)',
|
|
32
|
+
minWidth: 0,
|
|
33
|
+
minHeight: 0,
|
|
34
|
+
overflow: 'hidden',
|
|
35
|
+
borderWidth: '1px',
|
|
36
|
+
borderStyle: 'solid',
|
|
37
|
+
borderColor: 'var(--border)',
|
|
38
|
+
borderRadius: '8px',
|
|
39
|
+
background: 'color-mix(in srgb, var(--aeon-bg) 60%, transparent)',
|
|
40
|
+
transition: 'flex-basis 0.2s ease, width 0.2s ease, min-width 0.2s ease',
|
|
41
|
+
'&[data-aeon-state=expanded]': {
|
|
42
|
+
flex: '1 1 0%',
|
|
43
|
+
},
|
|
44
|
+
'&[data-aeon-state=collapsed]': {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
flex: '0 0 2.75rem',
|
|
48
|
+
width: '2.75rem',
|
|
49
|
+
minWidth: '2.75rem',
|
|
50
|
+
maxWidth: '2.75rem',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
paddingBlock: '0.65rem',
|
|
53
|
+
paddingInline: '0.2rem',
|
|
54
|
+
cursor: 'pointer',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
trigger: {
|
|
58
|
+
appearance: 'none',
|
|
59
|
+
border: 'none',
|
|
60
|
+
background: 'transparent',
|
|
61
|
+
color: 'var(--text-muted)',
|
|
62
|
+
fontSize: '0.7rem',
|
|
63
|
+
fontWeight: '700',
|
|
64
|
+
letterSpacing: '0.04em',
|
|
65
|
+
cursor: 'pointer',
|
|
66
|
+
padding: '0.85rem 0.65rem 0.35rem 0.25rem',
|
|
67
|
+
borderRadius: '4px',
|
|
68
|
+
alignSelf: 'start',
|
|
69
|
+
lineHeight: 1,
|
|
70
|
+
'&:hover': {
|
|
71
|
+
color: 'var(--aeon-accent)',
|
|
72
|
+
},
|
|
73
|
+
'&:disabled': {
|
|
74
|
+
opacity: 0.4,
|
|
75
|
+
cursor: 'default',
|
|
76
|
+
},
|
|
77
|
+
'&[data-aeon-state=collapsed]': {
|
|
78
|
+
display: 'none',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
label: {
|
|
82
|
+
display: 'inline-flex',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
gap: '0.05rem',
|
|
85
|
+
fontSize: '0.65rem',
|
|
86
|
+
fontWeight: '700',
|
|
87
|
+
letterSpacing: '0.12em',
|
|
88
|
+
textTransform: 'uppercase',
|
|
89
|
+
color: 'var(--text-muted)',
|
|
90
|
+
userSelect: 'none',
|
|
91
|
+
minWidth: 0,
|
|
92
|
+
'&[data-aeon-state=expanded]': {
|
|
93
|
+
padding: '0.85rem 0.25rem 0.5rem 0.95rem',
|
|
94
|
+
borderBottomWidth: '1px',
|
|
95
|
+
borderBottomStyle: 'solid',
|
|
96
|
+
borderBottomColor: 'var(--border)',
|
|
97
|
+
overflow: 'hidden',
|
|
98
|
+
textOverflow: 'ellipsis',
|
|
99
|
+
whiteSpace: 'nowrap',
|
|
100
|
+
},
|
|
101
|
+
'&[data-aeon-state=collapsed]': {
|
|
102
|
+
flexDirection: 'column',
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
justifyContent: 'flex-start',
|
|
105
|
+
gap: '0.08rem',
|
|
106
|
+
flex: '1 1 auto',
|
|
107
|
+
height: '100%',
|
|
108
|
+
writingMode: 'horizontal-tb',
|
|
109
|
+
cursor: 'pointer',
|
|
110
|
+
color: 'var(--aeon-accent)',
|
|
111
|
+
padding: 0,
|
|
112
|
+
borderBottom: 'none',
|
|
113
|
+
'& [data-aeon-part=label-char]': {
|
|
114
|
+
display: 'block',
|
|
115
|
+
lineHeight: 1.15,
|
|
116
|
+
fontSize: '0.72rem',
|
|
117
|
+
},
|
|
118
|
+
'& [data-aeon-part=label-gap]': {
|
|
119
|
+
display: 'block',
|
|
120
|
+
height: '0.55rem',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
content: {
|
|
125
|
+
gridColumn: '1 / -1',
|
|
126
|
+
display: 'flex',
|
|
127
|
+
flexDirection: 'column',
|
|
128
|
+
flex: '1 1 auto',
|
|
129
|
+
minHeight: 0,
|
|
130
|
+
minWidth: 0,
|
|
131
|
+
overflow: 'auto',
|
|
132
|
+
padding: '0.75rem 0.95rem 1rem',
|
|
133
|
+
'&[hidden]': {
|
|
134
|
+
display: 'none',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
variants: {
|
|
139
|
+
size: {
|
|
140
|
+
md: {},
|
|
141
|
+
lg: {
|
|
142
|
+
root: {
|
|
143
|
+
'&[data-aeon-state=collapsed]': {
|
|
144
|
+
flexBasis: '3rem',
|
|
145
|
+
width: '3rem',
|
|
146
|
+
minWidth: '3rem',
|
|
147
|
+
maxWidth: '3rem',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
defaultVariants: {
|
|
154
|
+
size: 'md',
|
|
155
|
+
},
|
|
156
|
+
})
|
|
@@ -6,7 +6,7 @@ export const pinInputRecipe = defineSlotRecipe({
|
|
|
6
6
|
base: {
|
|
7
7
|
root: {
|
|
8
8
|
display: 'inline-flex',
|
|
9
|
-
gap: '
|
|
9
|
+
gap: 'gapLg',
|
|
10
10
|
},
|
|
11
11
|
input: {
|
|
12
12
|
width: '2.5rem',
|
|
@@ -22,7 +22,8 @@ export const pinInputRecipe = defineSlotRecipe({
|
|
|
22
22
|
bg: 'surface',
|
|
23
23
|
color: 'fg',
|
|
24
24
|
outline: 'none',
|
|
25
|
-
|
|
25
|
+
boxSizing: 'border-box',
|
|
26
|
+
_focusVisible: { borderColor: 'accent', boxShadow: 'none' },
|
|
26
27
|
'&[data-aeon-state=filled]': { borderColor: 'accent' },
|
|
27
28
|
},
|
|
28
29
|
},
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const slots = ['root', 'media', 'identity', 'metrics', 'actions', 'body'] as const
|
|
4
|
+
|
|
5
|
+
export const profileHeaderRecipe = defineSlotRecipe({
|
|
6
|
+
className: 'aeonProfileHeader',
|
|
7
|
+
description: 'Dense profile / account header — maximize horizontal real estate',
|
|
8
|
+
slots,
|
|
9
|
+
base: {
|
|
10
|
+
root: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDir: 'column',
|
|
13
|
+
gap: '0.65rem',
|
|
14
|
+
width: '100%',
|
|
15
|
+
minW: 0,
|
|
16
|
+
p: '0.75rem 0.85rem',
|
|
17
|
+
borderRadius: 'xl',
|
|
18
|
+
borderWidth: '1px',
|
|
19
|
+
borderColor: 'border',
|
|
20
|
+
bg: 'surface',
|
|
21
|
+
},
|
|
22
|
+
media: {
|
|
23
|
+
display: 'none',
|
|
24
|
+
width: '100%',
|
|
25
|
+
aspectRatio: '3 / 1',
|
|
26
|
+
borderRadius: 'lg',
|
|
27
|
+
overflow: 'hidden',
|
|
28
|
+
bg: 'surfaceRaised',
|
|
29
|
+
'&:not(:empty)': { display: 'grid', placeItems: 'center' },
|
|
30
|
+
},
|
|
31
|
+
identity: {
|
|
32
|
+
display: 'flex',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
gap: '0.75rem',
|
|
35
|
+
minW: 0,
|
|
36
|
+
width: '100%',
|
|
37
|
+
},
|
|
38
|
+
metrics: {
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
minW: 0,
|
|
42
|
+
width: '100%',
|
|
43
|
+
'&:empty': { display: 'none' },
|
|
44
|
+
},
|
|
45
|
+
actions: {
|
|
46
|
+
display: 'flex',
|
|
47
|
+
flexWrap: 'wrap',
|
|
48
|
+
alignItems: 'stretch',
|
|
49
|
+
justifyContent: 'flex-start',
|
|
50
|
+
gap: '0.5rem',
|
|
51
|
+
width: '100%',
|
|
52
|
+
minW: 0,
|
|
53
|
+
'&:empty': { display: 'none' },
|
|
54
|
+
'& > *': { flexShrink: 1, minW: 0, maxW: '100%' },
|
|
55
|
+
'& > [data-aeon-scope=button]': {
|
|
56
|
+
flex: '1 1 5.5rem',
|
|
57
|
+
},
|
|
58
|
+
'& > [data-aeon-part=group]': {
|
|
59
|
+
width: '100%',
|
|
60
|
+
display: 'flex',
|
|
61
|
+
flexWrap: 'wrap',
|
|
62
|
+
gap: '0.5rem',
|
|
63
|
+
minW: 0,
|
|
64
|
+
'& > *': { flexShrink: 1, minW: 0 },
|
|
65
|
+
'& > [data-aeon-scope=button]': {
|
|
66
|
+
flex: '1 1 5.5rem',
|
|
67
|
+
minW: 0,
|
|
68
|
+
maxW: '100%',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
body: {
|
|
73
|
+
display: 'flex',
|
|
74
|
+
flexDir: 'column',
|
|
75
|
+
gap: '0.45rem',
|
|
76
|
+
minW: 0,
|
|
77
|
+
fontSize: 'sm',
|
|
78
|
+
color: 'muted',
|
|
79
|
+
lineHeight: '1.45',
|
|
80
|
+
'&:empty': { display: 'none' },
|
|
81
|
+
'& > p': {
|
|
82
|
+
margin: 0,
|
|
83
|
+
color: 'muted',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
variants: {
|
|
88
|
+
align: {
|
|
89
|
+
start: {},
|
|
90
|
+
center: {
|
|
91
|
+
root: {
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
textAlign: 'center',
|
|
94
|
+
'& [data-aeon-part=media]': {
|
|
95
|
+
aspectRatio: '1',
|
|
96
|
+
maxW: '7.5rem',
|
|
97
|
+
borderRadius: 'full',
|
|
98
|
+
},
|
|
99
|
+
'& [data-aeon-part=identity]': {
|
|
100
|
+
flexDirection: 'column',
|
|
101
|
+
justifyContent: 'center',
|
|
102
|
+
},
|
|
103
|
+
'& [data-aeon-part=metrics]': {
|
|
104
|
+
justifyContent: 'center',
|
|
105
|
+
},
|
|
106
|
+
'& [data-aeon-part=actions]': {
|
|
107
|
+
justifyContent: 'center',
|
|
108
|
+
},
|
|
109
|
+
'& [data-aeon-part=body]': {
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
textAlign: 'center',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
defaultVariants: {
|
|
118
|
+
align: 'start',
|
|
119
|
+
},
|
|
120
|
+
})
|
|
@@ -8,13 +8,14 @@ export const sliderRecipe = defineSlotRecipe({
|
|
|
8
8
|
position: 'relative',
|
|
9
9
|
display: 'flex',
|
|
10
10
|
flexDirection: 'column',
|
|
11
|
-
gap: '
|
|
11
|
+
gap: 'gapXs',
|
|
12
12
|
width: '100%',
|
|
13
13
|
minW: '8rem',
|
|
14
14
|
},
|
|
15
15
|
track: {
|
|
16
16
|
position: 'relative',
|
|
17
|
-
|
|
17
|
+
width: '100%',
|
|
18
|
+
height: '0.5rem',
|
|
18
19
|
borderRadius: 'full',
|
|
19
20
|
bg: 'surface',
|
|
20
21
|
borderWidth: '1px',
|
|
@@ -35,8 +36,8 @@ export const sliderRecipe = defineSlotRecipe({
|
|
|
35
36
|
thumb: {
|
|
36
37
|
position: 'absolute',
|
|
37
38
|
top: '50%',
|
|
38
|
-
width: '
|
|
39
|
-
height: '
|
|
39
|
+
width: '1.125rem',
|
|
40
|
+
height: '1.125rem',
|
|
40
41
|
borderRadius: 'full',
|
|
41
42
|
bg: 'accent',
|
|
42
43
|
borderWidth: '2px',
|
|
@@ -52,6 +53,7 @@ export const sliderRecipe = defineSlotRecipe({
|
|
|
52
53
|
fontSize: 'xs',
|
|
53
54
|
fontFamily: 'ui',
|
|
54
55
|
color: 'muted',
|
|
56
|
+
textAlign: 'center',
|
|
55
57
|
},
|
|
56
58
|
},
|
|
57
59
|
})
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ThemeSwitcher — mode toggle + theme preset selector.
|
|
5
|
+
*
|
|
6
|
+
* Layout is a single-row flex container that never wraps or overflows.
|
|
7
|
+
* The modes group and theme select sit side-by-side with consistent sizing.
|
|
8
|
+
*/
|
|
9
|
+
const slots = ['root', 'modes', 'modeBtn', 'themeSelect', 'themeTrigger'] as const
|
|
10
|
+
|
|
11
|
+
export const themeSwitcherRecipe = defineSlotRecipe({
|
|
12
|
+
className: 'aeonThemeSwitcher',
|
|
13
|
+
slots,
|
|
14
|
+
base: {
|
|
15
|
+
root: {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexWrap: 'nowrap',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
gap: '0.375rem',
|
|
20
|
+
minWidth: 0,
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
},
|
|
23
|
+
modes: {
|
|
24
|
+
display: 'inline-flex',
|
|
25
|
+
alignItems: 'stretch',
|
|
26
|
+
gap: '0.125rem',
|
|
27
|
+
flexShrink: 0,
|
|
28
|
+
padding: '2px',
|
|
29
|
+
border: '1px solid {colors.border}',
|
|
30
|
+
borderRadius: '{radii.md}',
|
|
31
|
+
background: 'color-mix(in srgb, {colors.surface} 92%, {colors.bg})',
|
|
32
|
+
},
|
|
33
|
+
modeBtn: {
|
|
34
|
+
display: 'inline-flex',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
minWidth: '2.25rem',
|
|
38
|
+
height: 'auto',
|
|
39
|
+
paddingInline: '0.4rem',
|
|
40
|
+
border: 'none',
|
|
41
|
+
borderRadius: '{radii.sm}',
|
|
42
|
+
background: 'transparent',
|
|
43
|
+
cursor: 'pointer',
|
|
44
|
+
fontFamily: '{fonts.ui}',
|
|
45
|
+
fontSize: '{fontSizes.xs}',
|
|
46
|
+
fontWeight: '{fontWeights.medium}',
|
|
47
|
+
color: 'muted',
|
|
48
|
+
transition: 'background 0.15s, color 0.15s, box-shadow 0.15s',
|
|
49
|
+
_hover: {
|
|
50
|
+
color: 'text',
|
|
51
|
+
background: 'surfaceRaised',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
themeSelect: {
|
|
55
|
+
flex: '0 1 auto',
|
|
56
|
+
minWidth: 0,
|
|
57
|
+
maxWidth: '6rem',
|
|
58
|
+
overflow: 'hidden',
|
|
59
|
+
},
|
|
60
|
+
themeTrigger: {
|
|
61
|
+
display: 'inline-flex',
|
|
62
|
+
alignItems: 'center',
|
|
63
|
+
gap: '0.25rem',
|
|
64
|
+
width: '100%',
|
|
65
|
+
maxWidth: '100%',
|
|
66
|
+
minWidth: 0,
|
|
67
|
+
paddingInline: '0.4rem 1.25rem',
|
|
68
|
+
border: '1px solid {colors.border}',
|
|
69
|
+
borderRadius: '{radii.md}',
|
|
70
|
+
background: 'color-mix(in srgb, {colors.surface} 92%, {colors.bg})',
|
|
71
|
+
cursor: 'pointer',
|
|
72
|
+
fontFamily: '{fonts.ui}',
|
|
73
|
+
fontSize: '{fontSizes.xs}',
|
|
74
|
+
fontWeight: '{fontWeights.medium}',
|
|
75
|
+
color: 'text',
|
|
76
|
+
overflow: 'hidden',
|
|
77
|
+
textOverflow: 'ellipsis',
|
|
78
|
+
whiteSpace: 'nowrap',
|
|
79
|
+
transition: 'background 0.15s',
|
|
80
|
+
_hover: {
|
|
81
|
+
background: 'surfaceRaised',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
variants: {
|
|
86
|
+
size: {
|
|
87
|
+
xs: {
|
|
88
|
+
root: { gap: '0.25rem' },
|
|
89
|
+
modeBtn: { minWidth: '2rem', minH: '2rem', fontSize: '{fontSizes.xs}', paddingInline: '0.3rem' },
|
|
90
|
+
themeTrigger: { fontSize: '{fontSizes.xs}', paddingInline: '0.3rem 1rem', minH: '2rem' },
|
|
91
|
+
themeSelect: { maxWidth: '4.5rem' },
|
|
92
|
+
},
|
|
93
|
+
sm: {
|
|
94
|
+
root: { gap: '0.375rem' },
|
|
95
|
+
modeBtn: { minWidth: '2.25rem', fontSize: '{fontSizes.xs}', paddingInline: '0.4rem' },
|
|
96
|
+
themeTrigger: { fontSize: '{fontSizes.xs}', paddingInline: '0.4rem 1.25rem' },
|
|
97
|
+
themeSelect: { maxWidth: '6rem' },
|
|
98
|
+
},
|
|
99
|
+
md: {
|
|
100
|
+
root: { gap: '0.5rem' },
|
|
101
|
+
modeBtn: { minWidth: '2.75rem', fontSize: '{fontSizes.sm}', paddingInline: '0.5rem' },
|
|
102
|
+
themeTrigger: { fontSize: '{fontSizes.sm}', paddingInline: '0.5rem 1.5rem' },
|
|
103
|
+
themeSelect: { maxWidth: '7.5rem' },
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
defaultVariants: {
|
|
108
|
+
size: 'sm',
|
|
109
|
+
},
|
|
110
|
+
})
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const slots = ['root', 'list', 'item', 'bubble', 'meta', 'day'] as const
|
|
4
|
+
|
|
5
|
+
/** Thread — message stream. Item state: mine | theirs | pending | failed. */
|
|
6
|
+
export const threadRecipe = defineSlotRecipe({
|
|
7
|
+
className: 'aeonThread',
|
|
8
|
+
slots,
|
|
9
|
+
base: {
|
|
10
|
+
root: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDir: 'column',
|
|
13
|
+
flex: '1 1 auto',
|
|
14
|
+
minH: 0,
|
|
15
|
+
minW: 0,
|
|
16
|
+
width: '100%',
|
|
17
|
+
},
|
|
18
|
+
list: {
|
|
19
|
+
display: 'flex',
|
|
20
|
+
flexDir: 'column',
|
|
21
|
+
gap: '0.55rem',
|
|
22
|
+
flex: '1 1 auto',
|
|
23
|
+
minH: 0,
|
|
24
|
+
overflow: 'auto',
|
|
25
|
+
px: '0.15rem',
|
|
26
|
+
py: '0.35rem',
|
|
27
|
+
},
|
|
28
|
+
item: {
|
|
29
|
+
display: 'flex',
|
|
30
|
+
flexDir: 'column',
|
|
31
|
+
gap: '0.2rem',
|
|
32
|
+
maxW: '85%',
|
|
33
|
+
'&[data-aeon-state=mine], &[data-aeon-state~=mine]': {
|
|
34
|
+
alignSelf: 'flex-end',
|
|
35
|
+
alignItems: 'flex-end',
|
|
36
|
+
},
|
|
37
|
+
'&[data-aeon-state=theirs], &[data-aeon-state~=theirs]': {
|
|
38
|
+
alignSelf: 'flex-start',
|
|
39
|
+
alignItems: 'flex-start',
|
|
40
|
+
},
|
|
41
|
+
'&[data-aeon-state~=pending]': {
|
|
42
|
+
opacity: 0.7,
|
|
43
|
+
},
|
|
44
|
+
'&[data-aeon-state~=failed]': {
|
|
45
|
+
opacity: 0.9,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
bubble: {
|
|
49
|
+
px: '0.85rem',
|
|
50
|
+
py: '0.55rem',
|
|
51
|
+
borderRadius: 'xl',
|
|
52
|
+
fontSize: 'sm',
|
|
53
|
+
lineHeight: '1.45',
|
|
54
|
+
color: 'fg',
|
|
55
|
+
bg: 'surfaceRaised',
|
|
56
|
+
maxW: '100%',
|
|
57
|
+
wordBreak: 'break-word',
|
|
58
|
+
'[data-aeon-state=mine] > &, [data-aeon-state~=mine] > &': {
|
|
59
|
+
bg: 'accentDim',
|
|
60
|
+
color: 'fg',
|
|
61
|
+
borderBottomRightRadius: 'sm',
|
|
62
|
+
},
|
|
63
|
+
'[data-aeon-state=theirs] > &, [data-aeon-state~=theirs] > &': {
|
|
64
|
+
bg: 'surface',
|
|
65
|
+
borderWidth: '1px',
|
|
66
|
+
borderColor: 'border',
|
|
67
|
+
borderBottomLeftRadius: 'sm',
|
|
68
|
+
},
|
|
69
|
+
'[data-aeon-state~=failed] > &': {
|
|
70
|
+
borderWidth: '1px',
|
|
71
|
+
borderColor: 'danger',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
meta: {
|
|
75
|
+
fontSize: '0.65rem',
|
|
76
|
+
color: 'muted',
|
|
77
|
+
px: '0.2rem',
|
|
78
|
+
},
|
|
79
|
+
day: {
|
|
80
|
+
alignSelf: 'center',
|
|
81
|
+
fontSize: '0.65rem',
|
|
82
|
+
letterSpacing: '0.06em',
|
|
83
|
+
textTransform: 'uppercase',
|
|
84
|
+
color: 'muted',
|
|
85
|
+
py: '0.5rem',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
})
|