aeon-ui-engine 1.3.5 → 1.5.1
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 +52 -0
- package/CONSUMER.md +67 -27
- package/INTEGRATION.md +1 -1
- package/README.md +17 -8
- package/package.json +4 -1
- package/packages/cli/README.md +13 -1
- package/packages/cli/dist/bin.js +50 -6
- package/packages/cli/dist/chunk-JMNRJCWF.js +301 -0
- package/packages/cli/dist/index.d.ts +31 -1
- package/packages/cli/dist/index.js +7 -3
- package/packages/cli/src/bin.ts +50 -4
- package/packages/cli/src/index.ts +2 -0
- package/packages/cli/src/init.ts +10 -4
- package/packages/cli/src/link.ts +61 -0
- package/packages/cli/src/migrate.ts +170 -0
- package/packages/core/dist/index.d.ts +35 -7
- package/packages/core/dist/index.js +102 -2
- package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/core/src/anatomy.ts +39 -3
- package/packages/core/src/identicon.test.ts +39 -0
- package/packages/core/src/identicon.ts +79 -0
- package/packages/core/src/index.ts +1 -0
- package/packages/panda/panda.config.ts +4 -0
- package/packages/panda/src/recipes/composer.ts +58 -4
- package/packages/panda/src/recipes/file-upload.ts +100 -0
- package/packages/panda/src/recipes/index.ts +2 -0
- package/packages/panda/src/recipes/range-slider.ts +59 -0
- package/packages/panda/src/recipes/thread.ts +77 -2
- package/packages/panda/styled-system/recipes/aeon-composer.d.ts +1 -1
- package/packages/panda/styled-system/recipes/aeon-composer.mjs +12 -0
- package/packages/panda/styled-system/recipes/aeon-file-upload.d.ts +31 -0
- package/packages/panda/styled-system/recipes/aeon-file-upload.mjs +61 -0
- package/packages/panda/styled-system/recipes/aeon-range-slider.d.ts +31 -0
- package/packages/panda/styled-system/recipes/aeon-range-slider.mjs +49 -0
- package/packages/panda/styled-system/recipes/aeon-thread.d.ts +1 -1
- package/packages/panda/styled-system/recipes/aeon-thread.mjs +20 -0
- package/packages/panda/styled-system/recipes/index.d.ts +2 -0
- package/packages/panda/styled-system/recipes/index.mjs +2 -0
- package/packages/panda/styled-system/styles.css +292 -0
- package/packages/primitives/dist/chunk-CV4UXXZF.js +44 -0
- package/packages/primitives/dist/chunk-IZKQSCYU.js +164 -0
- package/packages/primitives/dist/{chunk-PB3LFHXU.js → chunk-VUPWYBGU.js} +14 -0
- package/packages/primitives/dist/index.d.ts +2 -0
- package/packages/primitives/dist/index.js +23 -7
- package/packages/primitives/dist/machines/file-upload.d.ts +39 -0
- package/packages/primitives/dist/machines/file-upload.js +8 -0
- package/packages/primitives/dist/machines/range-slider.d.ts +129 -0
- package/packages/primitives/dist/machines/range-slider.js +12 -0
- package/packages/primitives/dist/machines/slider.d.ts +22 -0
- package/packages/primitives/dist/machines/slider.js +1 -1
- package/packages/primitives/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/primitives/src/__tests__/file-upload.test.ts +25 -0
- package/packages/primitives/src/__tests__/range-slider.test.ts +39 -0
- package/packages/primitives/src/index.ts +2 -0
- package/packages/primitives/src/machines/file-upload.ts +55 -0
- package/packages/primitives/src/machines/range-slider.ts +209 -0
- package/packages/primitives/src/machines/slider.ts +17 -0
- package/packages/react/dist/index.d.ts +132 -26
- package/packages/react/dist/index.js +1822 -1029
- package/packages/react/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/react/src/button/index.tsx +50 -15
- package/packages/react/src/composer/index.tsx +58 -3
- package/packages/react/src/file-upload/index.tsx +322 -0
- package/packages/react/src/floating/FloatingPositioner.tsx +8 -0
- package/packages/react/src/hooks/use-anchor-position.ts +88 -17
- package/packages/react/src/index.ts +3 -0
- package/packages/react/src/menu/index.tsx +37 -3
- package/packages/react/src/popover/index.tsx +7 -1
- package/packages/react/src/prompt/index.tsx +45 -0
- package/packages/react/src/range-slider/index.tsx +322 -0
- package/packages/react/src/slider/index.tsx +54 -14
- package/packages/react/src/thread/index.tsx +74 -3
- package/packages/react/src/tooltip/index.tsx +7 -1
- package/packages/react/src/utils/slot.tsx +47 -0
- package/packages/schemas/dist/index.d.ts +4 -0
- package/packages/schemas/dist/index.js +67 -1
- package/packages/schemas/json/button.json +6 -0
- package/packages/schemas/json/catalog.json +333 -0
- package/packages/schemas/json/fileUpload.json +168 -0
- package/packages/schemas/json/rangeSlider.json +157 -0
- package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/schemas/prompts/cursorrules.md +3 -1
- package/packages/schemas/prompts/statecharts.md +1 -1
- package/packages/schemas/registry/catalog.json +18 -0
- package/packages/schemas/registry/components/button.json +6 -0
- package/packages/schemas/registry/components/fileUpload.json +168 -0
- package/packages/schemas/registry/components/rangeSlider.json +157 -0
- package/packages/schemas/registry/machines/fileUpload.json +182 -0
- package/packages/schemas/registry/machines/rangeSlider.json +201 -0
- package/packages/schemas/scripts/emit.ts +4 -0
- package/packages/schemas/src/components.ts +70 -0
- package/packages/schemas/src/prompts.ts +3 -1
- package/packages/schemas/tsconfig.json +1 -1
- package/packages/ui/dist/index.d.ts +100 -46
- package/packages/ui/dist/index.js +463 -341
- package/packages/ui/src/composer.tsx +37 -11
- package/packages/ui/src/file-upload.tsx +36 -0
- package/packages/ui/src/index.ts +2 -0
- package/packages/ui/src/prompt.tsx +3 -0
- package/packages/ui/src/range-slider.tsx +24 -0
- package/packages/ui/src/thread.tsx +40 -0
- package/scripts/link-scoped-packages.mjs +206 -0
- package/scripts/vite-aliases.mjs +6 -8
- package/packages/cli/dist/chunk-IW5NT2Z2.js +0 -103
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
export const rangeSliderRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'aeonRangeSlider',
|
|
5
|
+
slots: ['root', 'track', 'range', 'thumb', 'valueText'],
|
|
6
|
+
base: {
|
|
7
|
+
root: {
|
|
8
|
+
position: 'relative',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
gap: 'gapXs',
|
|
12
|
+
width: '100%',
|
|
13
|
+
minW: '8rem',
|
|
14
|
+
},
|
|
15
|
+
track: {
|
|
16
|
+
position: 'relative',
|
|
17
|
+
width: '100%',
|
|
18
|
+
height: '0.5rem',
|
|
19
|
+
borderRadius: 'full',
|
|
20
|
+
bg: 'surface',
|
|
21
|
+
borderWidth: '1px',
|
|
22
|
+
borderStyle: 'solid',
|
|
23
|
+
borderColor: 'border',
|
|
24
|
+
cursor: 'pointer',
|
|
25
|
+
touchAction: 'none',
|
|
26
|
+
},
|
|
27
|
+
range: {
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
top: '0',
|
|
30
|
+
height: '100%',
|
|
31
|
+
borderRadius: 'full',
|
|
32
|
+
bg: 'accentDim',
|
|
33
|
+
pointerEvents: 'none',
|
|
34
|
+
},
|
|
35
|
+
thumb: {
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
top: '50%',
|
|
38
|
+
width: '1.125rem',
|
|
39
|
+
height: '1.125rem',
|
|
40
|
+
borderRadius: 'full',
|
|
41
|
+
bg: 'accent',
|
|
42
|
+
borderWidth: '2px',
|
|
43
|
+
borderStyle: 'solid',
|
|
44
|
+
borderColor: 'surfaceRaised',
|
|
45
|
+
transform: 'translate(-50%, -50%)',
|
|
46
|
+
cursor: 'grab',
|
|
47
|
+
boxShadow: 'panel',
|
|
48
|
+
zIndex: 1,
|
|
49
|
+
_focusVisible: { boxShadow: 'focusRing' },
|
|
50
|
+
'&[data-aeon-state=dragging]': { cursor: 'grabbing', zIndex: 2 },
|
|
51
|
+
},
|
|
52
|
+
valueText: {
|
|
53
|
+
fontSize: 'xs',
|
|
54
|
+
fontFamily: 'ui',
|
|
55
|
+
color: 'muted',
|
|
56
|
+
textAlign: 'center',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
})
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
2
|
|
|
3
|
-
const slots = [
|
|
3
|
+
const slots = [
|
|
4
|
+
'root',
|
|
5
|
+
'list',
|
|
6
|
+
'item',
|
|
7
|
+
'bubble',
|
|
8
|
+
'meta',
|
|
9
|
+
'day',
|
|
10
|
+
'bind',
|
|
11
|
+
'card',
|
|
12
|
+
'cardTitle',
|
|
13
|
+
'cardBody',
|
|
14
|
+
'cardActions',
|
|
15
|
+
] as const
|
|
4
16
|
|
|
5
|
-
/** Thread — message stream
|
|
17
|
+
/** Thread — message stream + command cards + bind control. */
|
|
6
18
|
export const threadRecipe = defineSlotRecipe({
|
|
7
19
|
className: 'aeonThread',
|
|
8
20
|
slots,
|
|
@@ -44,6 +56,11 @@ export const threadRecipe = defineSlotRecipe({
|
|
|
44
56
|
'&[data-aeon-state~=failed]': {
|
|
45
57
|
opacity: 0.9,
|
|
46
58
|
},
|
|
59
|
+
'&[data-aeon-state~=command-result]': {
|
|
60
|
+
maxW: '92%',
|
|
61
|
+
alignSelf: 'center',
|
|
62
|
+
alignItems: 'stretch',
|
|
63
|
+
},
|
|
47
64
|
},
|
|
48
65
|
bubble: {
|
|
49
66
|
px: '0.85rem',
|
|
@@ -84,5 +101,63 @@ export const threadRecipe = defineSlotRecipe({
|
|
|
84
101
|
color: 'muted',
|
|
85
102
|
py: '0.5rem',
|
|
86
103
|
},
|
|
104
|
+
bind: {
|
|
105
|
+
alignSelf: 'flex-start',
|
|
106
|
+
mt: '0.15rem',
|
|
107
|
+
px: '0.55rem',
|
|
108
|
+
py: '0.25rem',
|
|
109
|
+
minH: '2rem',
|
|
110
|
+
borderRadius: 'md',
|
|
111
|
+
borderWidth: '1px',
|
|
112
|
+
borderColor: 'border',
|
|
113
|
+
bg: 'transparent',
|
|
114
|
+
color: 'muted',
|
|
115
|
+
fontSize: '0.7rem',
|
|
116
|
+
cursor: 'pointer',
|
|
117
|
+
_hover: { color: 'fg', borderColor: 'accent' },
|
|
118
|
+
},
|
|
119
|
+
card: {
|
|
120
|
+
display: 'grid',
|
|
121
|
+
gap: '0.35rem',
|
|
122
|
+
width: '100%',
|
|
123
|
+
px: '0.85rem',
|
|
124
|
+
py: '0.7rem',
|
|
125
|
+
borderRadius: 'xl',
|
|
126
|
+
borderWidth: '1px',
|
|
127
|
+
borderColor: 'border',
|
|
128
|
+
bg: 'surface',
|
|
129
|
+
'[data-aeon-state~=payment-card] > &': {
|
|
130
|
+
borderColor: 'accent',
|
|
131
|
+
},
|
|
132
|
+
'[data-aeon-state~=request-card] > &': {
|
|
133
|
+
borderColor: 'border',
|
|
134
|
+
},
|
|
135
|
+
'[data-aeon-state~=command-result] > &': {
|
|
136
|
+
bg: 'surfaceRaised',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
cardTitle: {
|
|
140
|
+
display: 'flex',
|
|
141
|
+
alignItems: 'center',
|
|
142
|
+
justifyContent: 'space-between',
|
|
143
|
+
gap: '0.5rem',
|
|
144
|
+
fontSize: '0.72rem',
|
|
145
|
+
fontWeight: '600',
|
|
146
|
+
letterSpacing: '0.04em',
|
|
147
|
+
textTransform: 'uppercase',
|
|
148
|
+
color: 'muted',
|
|
149
|
+
},
|
|
150
|
+
cardBody: {
|
|
151
|
+
display: 'grid',
|
|
152
|
+
gap: '0.2rem',
|
|
153
|
+
fontSize: 'sm',
|
|
154
|
+
color: 'fg',
|
|
155
|
+
},
|
|
156
|
+
cardActions: {
|
|
157
|
+
display: 'flex',
|
|
158
|
+
flexWrap: 'wrap',
|
|
159
|
+
gap: '0.35rem',
|
|
160
|
+
mt: '0.25rem',
|
|
161
|
+
},
|
|
87
162
|
},
|
|
88
163
|
})
|
|
@@ -10,7 +10,7 @@ type AeonComposerVariantMap = {
|
|
|
10
10
|
[key in keyof AeonComposerVariant]: Array<AeonComposerVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
type AeonComposerSlot = "root" | "input" | "actions" | "send"
|
|
13
|
+
type AeonComposerSlot = "root" | "input" | "actions" | "send" | "suggestions" | "suggestion" | "toolbar"
|
|
14
14
|
|
|
15
15
|
export type AeonComposerVariantProps = {
|
|
16
16
|
[key in keyof AeonComposerVariant]?: ConditionalValue<AeonComposerVariant[key]> | undefined
|
|
@@ -20,6 +20,18 @@ const aeonComposerSlotNames = [
|
|
|
20
20
|
[
|
|
21
21
|
"send",
|
|
22
22
|
"aeonComposer__send"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"suggestions",
|
|
26
|
+
"aeonComposer__suggestions"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"suggestion",
|
|
30
|
+
"aeonComposer__suggestion"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"toolbar",
|
|
34
|
+
"aeonComposer__toolbar"
|
|
23
35
|
]
|
|
24
36
|
]
|
|
25
37
|
const aeonComposerSlotFns = /* @__PURE__ */ aeonComposerSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, aeonComposerDefaultVariants, getSlotCompoundVariant(aeonComposerCompoundVariants, slotName))])
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface AeonFileUploadVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AeonFileUploadVariantMap = {
|
|
10
|
+
[key in keyof AeonFileUploadVariant]: Array<AeonFileUploadVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type AeonFileUploadSlot = "root" | "dropzone" | "input" | "label" | "hint" | "preview" | "clearTrigger" | "rejectionMessage"
|
|
14
|
+
|
|
15
|
+
export type AeonFileUploadVariantProps = {
|
|
16
|
+
[key in keyof AeonFileUploadVariant]?: ConditionalValue<AeonFileUploadVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface AeonFileUploadRecipe {
|
|
20
|
+
__slot: AeonFileUploadSlot
|
|
21
|
+
__type: AeonFileUploadVariantProps
|
|
22
|
+
(props?: AeonFileUploadVariantProps): Pretty<Record<AeonFileUploadSlot, string>>
|
|
23
|
+
raw: (props?: AeonFileUploadVariantProps) => AeonFileUploadVariantProps
|
|
24
|
+
variantMap: AeonFileUploadVariantMap
|
|
25
|
+
variantKeys: Array<keyof AeonFileUploadVariant>
|
|
26
|
+
splitVariantProps<Props extends AeonFileUploadVariantProps>(props: Props): [AeonFileUploadVariantProps, Pretty<DistributiveOmit<Props, keyof AeonFileUploadVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: AeonFileUploadVariantProps) => AeonFileUploadVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const aeonFileUpload: AeonFileUploadRecipe
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const aeonFileUploadDefaultVariants = {}
|
|
5
|
+
const aeonFileUploadCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const aeonFileUploadSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"aeonFileUpload__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"dropzone",
|
|
14
|
+
"aeonFileUpload__dropzone"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"input",
|
|
18
|
+
"aeonFileUpload__input"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"label",
|
|
22
|
+
"aeonFileUpload__label"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"hint",
|
|
26
|
+
"aeonFileUpload__hint"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"preview",
|
|
30
|
+
"aeonFileUpload__preview"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"clearTrigger",
|
|
34
|
+
"aeonFileUpload__clearTrigger"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"rejectionMessage",
|
|
38
|
+
"aeonFileUpload__rejectionMessage"
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
const aeonFileUploadSlotFns = /* @__PURE__ */ aeonFileUploadSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, aeonFileUploadDefaultVariants, getSlotCompoundVariant(aeonFileUploadCompoundVariants, slotName))])
|
|
42
|
+
|
|
43
|
+
const aeonFileUploadFn = memo((props = {}) => {
|
|
44
|
+
return Object.fromEntries(aeonFileUploadSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
const aeonFileUploadVariantKeys = []
|
|
48
|
+
const getVariantProps = (variants) => ({ ...aeonFileUploadDefaultVariants, ...compact(variants) })
|
|
49
|
+
|
|
50
|
+
export const aeonFileUpload = /* @__PURE__ */ Object.assign(aeonFileUploadFn, {
|
|
51
|
+
__recipe__: false,
|
|
52
|
+
__name__: 'aeonFileUpload',
|
|
53
|
+
raw: (props) => props,
|
|
54
|
+
classNameMap: {},
|
|
55
|
+
variantKeys: aeonFileUploadVariantKeys,
|
|
56
|
+
variantMap: {},
|
|
57
|
+
splitVariantProps(props) {
|
|
58
|
+
return splitProps(props, aeonFileUploadVariantKeys)
|
|
59
|
+
},
|
|
60
|
+
getVariantProps
|
|
61
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface AeonRangeSliderVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AeonRangeSliderVariantMap = {
|
|
10
|
+
[key in keyof AeonRangeSliderVariant]: Array<AeonRangeSliderVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type AeonRangeSliderSlot = "root" | "track" | "range" | "thumb" | "valueText"
|
|
14
|
+
|
|
15
|
+
export type AeonRangeSliderVariantProps = {
|
|
16
|
+
[key in keyof AeonRangeSliderVariant]?: ConditionalValue<AeonRangeSliderVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface AeonRangeSliderRecipe {
|
|
20
|
+
__slot: AeonRangeSliderSlot
|
|
21
|
+
__type: AeonRangeSliderVariantProps
|
|
22
|
+
(props?: AeonRangeSliderVariantProps): Pretty<Record<AeonRangeSliderSlot, string>>
|
|
23
|
+
raw: (props?: AeonRangeSliderVariantProps) => AeonRangeSliderVariantProps
|
|
24
|
+
variantMap: AeonRangeSliderVariantMap
|
|
25
|
+
variantKeys: Array<keyof AeonRangeSliderVariant>
|
|
26
|
+
splitVariantProps<Props extends AeonRangeSliderVariantProps>(props: Props): [AeonRangeSliderVariantProps, Pretty<DistributiveOmit<Props, keyof AeonRangeSliderVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: AeonRangeSliderVariantProps) => AeonRangeSliderVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const aeonRangeSlider: AeonRangeSliderRecipe
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const aeonRangeSliderDefaultVariants = {}
|
|
5
|
+
const aeonRangeSliderCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const aeonRangeSliderSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"aeonRangeSlider__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"track",
|
|
14
|
+
"aeonRangeSlider__track"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"range",
|
|
18
|
+
"aeonRangeSlider__range"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"thumb",
|
|
22
|
+
"aeonRangeSlider__thumb"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"valueText",
|
|
26
|
+
"aeonRangeSlider__valueText"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const aeonRangeSliderSlotFns = /* @__PURE__ */ aeonRangeSliderSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, aeonRangeSliderDefaultVariants, getSlotCompoundVariant(aeonRangeSliderCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const aeonRangeSliderFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(aeonRangeSliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const aeonRangeSliderVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...aeonRangeSliderDefaultVariants, ...compact(variants) })
|
|
37
|
+
|
|
38
|
+
export const aeonRangeSlider = /* @__PURE__ */ Object.assign(aeonRangeSliderFn, {
|
|
39
|
+
__recipe__: false,
|
|
40
|
+
__name__: 'aeonRangeSlider',
|
|
41
|
+
raw: (props) => props,
|
|
42
|
+
classNameMap: {},
|
|
43
|
+
variantKeys: aeonRangeSliderVariantKeys,
|
|
44
|
+
variantMap: {},
|
|
45
|
+
splitVariantProps(props) {
|
|
46
|
+
return splitProps(props, aeonRangeSliderVariantKeys)
|
|
47
|
+
},
|
|
48
|
+
getVariantProps
|
|
49
|
+
})
|
|
@@ -10,7 +10,7 @@ type AeonThreadVariantMap = {
|
|
|
10
10
|
[key in keyof AeonThreadVariant]: Array<AeonThreadVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
type AeonThreadSlot = "root" | "list" | "item" | "bubble" | "meta" | "day"
|
|
13
|
+
type AeonThreadSlot = "root" | "list" | "item" | "bubble" | "meta" | "day" | "bind" | "card" | "cardTitle" | "cardBody" | "cardActions"
|
|
14
14
|
|
|
15
15
|
export type AeonThreadVariantProps = {
|
|
16
16
|
[key in keyof AeonThreadVariant]?: ConditionalValue<AeonThreadVariant[key]> | undefined
|
|
@@ -28,6 +28,26 @@ const aeonThreadSlotNames = [
|
|
|
28
28
|
[
|
|
29
29
|
"day",
|
|
30
30
|
"aeonThread__day"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"bind",
|
|
34
|
+
"aeonThread__bind"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"card",
|
|
38
|
+
"aeonThread__card"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"cardTitle",
|
|
42
|
+
"aeonThread__cardTitle"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"cardBody",
|
|
46
|
+
"aeonThread__cardBody"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"cardActions",
|
|
50
|
+
"aeonThread__cardActions"
|
|
31
51
|
]
|
|
32
52
|
]
|
|
33
53
|
const aeonThreadSlotFns = /* @__PURE__ */ aeonThreadSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, aeonThreadDefaultVariants, getSlotCompoundVariant(aeonThreadCompoundVariants, slotName))])
|
|
@@ -23,6 +23,8 @@ export * from './aeon-separator';
|
|
|
23
23
|
export * from './aeon-progress';
|
|
24
24
|
export * from './aeon-radio-group';
|
|
25
25
|
export * from './aeon-slider';
|
|
26
|
+
export * from './aeon-range-slider';
|
|
27
|
+
export * from './aeon-file-upload';
|
|
26
28
|
export * from './aeon-pin-input';
|
|
27
29
|
export * from './aeon-switch';
|
|
28
30
|
export * from './aeon-checkbox';
|
|
@@ -22,6 +22,8 @@ export * from './aeon-separator.mjs';
|
|
|
22
22
|
export * from './aeon-progress.mjs';
|
|
23
23
|
export * from './aeon-radio-group.mjs';
|
|
24
24
|
export * from './aeon-slider.mjs';
|
|
25
|
+
export * from './aeon-range-slider.mjs';
|
|
26
|
+
export * from './aeon-file-upload.mjs';
|
|
25
27
|
export * from './aeon-pin-input.mjs';
|
|
26
28
|
export * from './aeon-switch.mjs';
|
|
27
29
|
export * from './aeon-checkbox.mjs';
|