aeon-ui-engine 1.3.1 → 1.4.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 +61 -0
- package/package.json +1 -1
- package/packages/cli/README.md +13 -1
- package/packages/cli/dist/bin.js +23 -5
- package/packages/cli/dist/chunk-5L47SLNV.js +247 -0
- package/packages/cli/dist/index.d.ts +17 -1
- package/packages/cli/dist/index.js +5 -3
- package/packages/cli/src/bin.ts +21 -3
- package/packages/cli/src/index.ts +1 -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/index.d.ts +2 -0
- package/packages/primitives/dist/index.js +22 -6
- 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/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/react/dist/index.d.ts +117 -25
- package/packages/react/dist/index.js +1731 -1006
- 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/combobox/index.tsx +13 -8
- package/packages/react/src/composer/index.tsx +58 -3
- package/packages/react/src/file-upload/index.tsx +322 -0
- package/packages/react/src/index.ts +3 -0
- package/packages/react/src/prompt/index.tsx +45 -0
- package/packages/react/src/range-slider/index.tsx +322 -0
- package/packages/react/src/thread/index.tsx +74 -3
- package/packages/react/src/tooltip/index.tsx +48 -22
- package/packages/react/src/utils/slot.tsx +47 -0
- package/packages/schemas/dist/index.d.ts +73 -24
- package/packages/schemas/dist/index.js +514 -50
- package/packages/schemas/json/appNav.json +146 -0
- package/packages/schemas/json/appShell.json +151 -0
- package/packages/schemas/json/avatar.json +130 -0
- package/packages/schemas/json/bar.json +126 -0
- package/packages/schemas/json/button.json +6 -0
- package/packages/schemas/json/catalog.json +3496 -15
- package/packages/schemas/json/combobox.json +19 -7
- package/packages/schemas/json/composer.json +125 -0
- package/packages/schemas/json/content.json +167 -0
- package/packages/schemas/json/conversation.json +166 -0
- package/packages/schemas/json/entry.json +182 -0
- package/packages/schemas/json/fileUpload.json +168 -0
- package/packages/schemas/json/identity.json +147 -0
- package/packages/schemas/json/listRow.json +131 -0
- package/packages/schemas/json/metricStrip.json +132 -0
- package/packages/schemas/json/nav.json +136 -0
- package/packages/schemas/json/panel.json +143 -0
- package/packages/schemas/json/pinInput.json +112 -0
- package/packages/schemas/json/profileHeader.json +138 -0
- package/packages/schemas/json/prompt.json +155 -0
- package/packages/schemas/json/radioGroup.json +130 -0
- package/packages/schemas/json/rangeSlider.json +157 -0
- package/packages/schemas/json/separator.json +105 -0
- package/packages/schemas/json/slider.json +147 -0
- package/packages/schemas/json/statusBanner.json +149 -0
- package/packages/schemas/json/stickyBar.json +153 -0
- package/packages/schemas/json/thread.json +129 -0
- package/packages/schemas/json/tooltip.json +21 -7
- package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/schemas/prompts/cursorrules.md +6 -4
- package/packages/schemas/prompts/statecharts.md +23 -2
- package/packages/schemas/prompts/system.md +2 -2
- package/packages/schemas/registry/catalog.json +313 -4
- package/packages/schemas/registry/components/appNav.json +146 -0
- package/packages/schemas/registry/components/appShell.json +151 -0
- package/packages/schemas/registry/components/avatar.json +130 -0
- package/packages/schemas/registry/components/bar.json +126 -0
- package/packages/schemas/registry/components/button.json +6 -0
- package/packages/schemas/registry/components/combobox.json +19 -7
- package/packages/schemas/registry/components/composer.json +125 -0
- package/packages/schemas/registry/components/content.json +167 -0
- package/packages/schemas/registry/components/conversation.json +166 -0
- package/packages/schemas/registry/components/entry.json +182 -0
- package/packages/schemas/registry/components/fileUpload.json +168 -0
- package/packages/schemas/registry/components/identity.json +147 -0
- package/packages/schemas/registry/components/listRow.json +131 -0
- package/packages/schemas/registry/components/metricStrip.json +132 -0
- package/packages/schemas/registry/components/nav.json +136 -0
- package/packages/schemas/registry/components/panel.json +143 -0
- package/packages/schemas/registry/components/pinInput.json +112 -0
- package/packages/schemas/registry/components/profileHeader.json +138 -0
- package/packages/schemas/registry/components/prompt.json +155 -0
- package/packages/schemas/registry/components/radioGroup.json +130 -0
- package/packages/schemas/registry/components/rangeSlider.json +157 -0
- package/packages/schemas/registry/components/separator.json +105 -0
- package/packages/schemas/registry/components/slider.json +147 -0
- package/packages/schemas/registry/components/statusBanner.json +149 -0
- package/packages/schemas/registry/components/stickyBar.json +153 -0
- package/packages/schemas/registry/components/thread.json +129 -0
- package/packages/schemas/registry/components/tooltip.json +21 -7
- package/packages/schemas/registry/machines/accordion.json +58 -0
- package/packages/schemas/registry/machines/appNav.json +108 -0
- package/packages/schemas/registry/machines/appShell.json +128 -0
- package/packages/schemas/registry/machines/contentRegion.json +314 -0
- package/packages/schemas/registry/machines/fileUpload.json +182 -0
- package/packages/schemas/registry/machines/panel.json +131 -0
- package/packages/schemas/registry/machines/popover.json +143 -0
- package/packages/schemas/registry/machines/rangeSlider.json +201 -0
- package/packages/schemas/registry/machines/slider.json +151 -0
- package/packages/schemas/registry/machines/stickyBar.json +261 -0
- package/packages/schemas/registry/machines/tabs.json +58 -0
- package/packages/schemas/registry/machines/toast.json +89 -0
- package/packages/schemas/registry/machines/toggle.json +134 -0
- package/packages/schemas/scripts/emit.ts +27 -0
- package/packages/schemas/src/components.ts +499 -6
- package/packages/schemas/src/index.test.ts +83 -0
- package/packages/schemas/src/index.ts +1 -0
- package/packages/schemas/src/machine-id.ts +7 -0
- package/packages/schemas/src/prompts.ts +25 -4
- package/packages/schemas/src/registry.ts +28 -39
- 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/packages/cli/dist/chunk-IW5NT2Z2.js +0 -103
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aeon-ui.com/schemas/conversation.json",
|
|
4
|
+
"title": "Conversation",
|
|
5
|
+
"description": "Inbox / DM list — item state prop idle | unread | selected. Universal messaging chrome.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"component",
|
|
10
|
+
"scope"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"component": {
|
|
14
|
+
"const": "Conversation"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"const": "conversation"
|
|
18
|
+
},
|
|
19
|
+
"parts": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "Anatomy part keys — map to data-aeon-part",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"root",
|
|
26
|
+
"item",
|
|
27
|
+
"leading",
|
|
28
|
+
"body",
|
|
29
|
+
"title",
|
|
30
|
+
"preview",
|
|
31
|
+
"meta",
|
|
32
|
+
"badge"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"uniqueItems": true
|
|
36
|
+
},
|
|
37
|
+
"states": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"description": "Allowed data-aeon-state values (stable states only)",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"idle",
|
|
44
|
+
"unread",
|
|
45
|
+
"selected"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"uniqueItems": true
|
|
49
|
+
},
|
|
50
|
+
"props": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"properties": {
|
|
54
|
+
"state": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"idle",
|
|
58
|
+
"unread",
|
|
59
|
+
"selected"
|
|
60
|
+
],
|
|
61
|
+
"default": "idle"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"slots": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"description": "Named composition slots / compound parts",
|
|
68
|
+
"additionalProperties": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"properties": {
|
|
72
|
+
"Root": {
|
|
73
|
+
"const": "conversation.root",
|
|
74
|
+
"description": "conversation.root"
|
|
75
|
+
},
|
|
76
|
+
"Item": {
|
|
77
|
+
"const": "conversation.item",
|
|
78
|
+
"description": "conversation.item"
|
|
79
|
+
},
|
|
80
|
+
"Leading": {
|
|
81
|
+
"const": "conversation.leading",
|
|
82
|
+
"description": "conversation.leading"
|
|
83
|
+
},
|
|
84
|
+
"Body": {
|
|
85
|
+
"const": "conversation.body",
|
|
86
|
+
"description": "conversation.body"
|
|
87
|
+
},
|
|
88
|
+
"Title": {
|
|
89
|
+
"const": "conversation.title",
|
|
90
|
+
"description": "conversation.title"
|
|
91
|
+
},
|
|
92
|
+
"Preview": {
|
|
93
|
+
"const": "conversation.preview",
|
|
94
|
+
"description": "conversation.preview"
|
|
95
|
+
},
|
|
96
|
+
"Meta": {
|
|
97
|
+
"const": "conversation.meta",
|
|
98
|
+
"description": "conversation.meta"
|
|
99
|
+
},
|
|
100
|
+
"Badge": {
|
|
101
|
+
"const": "conversation.badge",
|
|
102
|
+
"description": "conversation.badge"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"machine": {
|
|
107
|
+
"type": [
|
|
108
|
+
"string",
|
|
109
|
+
"null"
|
|
110
|
+
],
|
|
111
|
+
"description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
|
|
112
|
+
"const": null
|
|
113
|
+
},
|
|
114
|
+
"runtime": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "How headless state is driven at runtime",
|
|
117
|
+
"const": "props"
|
|
118
|
+
},
|
|
119
|
+
"events": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"enum": []
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"examples": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"default": []
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"x-aeon": {
|
|
135
|
+
"scope": "conversation",
|
|
136
|
+
"parts": [
|
|
137
|
+
"root",
|
|
138
|
+
"item",
|
|
139
|
+
"leading",
|
|
140
|
+
"body",
|
|
141
|
+
"title",
|
|
142
|
+
"preview",
|
|
143
|
+
"meta",
|
|
144
|
+
"badge"
|
|
145
|
+
],
|
|
146
|
+
"states": [
|
|
147
|
+
"idle",
|
|
148
|
+
"unread",
|
|
149
|
+
"selected"
|
|
150
|
+
],
|
|
151
|
+
"machine": null,
|
|
152
|
+
"runtime": "props",
|
|
153
|
+
"events": [],
|
|
154
|
+
"slots": {
|
|
155
|
+
"Root": "conversation.root",
|
|
156
|
+
"Item": "conversation.item",
|
|
157
|
+
"Leading": "conversation.leading",
|
|
158
|
+
"Body": "conversation.body",
|
|
159
|
+
"Title": "conversation.title",
|
|
160
|
+
"Preview": "conversation.preview",
|
|
161
|
+
"Meta": "conversation.meta",
|
|
162
|
+
"Badge": "conversation.badge"
|
|
163
|
+
},
|
|
164
|
+
"examples": []
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aeon-ui.com/schemas/entry.json",
|
|
4
|
+
"title": "Entry",
|
|
5
|
+
"description": "Universal multi-value card (feed stack or listing split). Root state idle | selected | muted — never invent niche scopes.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"component",
|
|
10
|
+
"scope"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"component": {
|
|
14
|
+
"const": "Entry"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"const": "entry"
|
|
18
|
+
},
|
|
19
|
+
"parts": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "Anatomy part keys — map to data-aeon-part",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"list",
|
|
26
|
+
"root",
|
|
27
|
+
"header",
|
|
28
|
+
"leading",
|
|
29
|
+
"heading",
|
|
30
|
+
"title",
|
|
31
|
+
"subtitle",
|
|
32
|
+
"meta",
|
|
33
|
+
"media",
|
|
34
|
+
"body",
|
|
35
|
+
"values",
|
|
36
|
+
"value",
|
|
37
|
+
"actions",
|
|
38
|
+
"footer"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"uniqueItems": true
|
|
42
|
+
},
|
|
43
|
+
"states": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"description": "Allowed data-aeon-state values (stable states only)",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"idle",
|
|
50
|
+
"selected",
|
|
51
|
+
"muted"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"uniqueItems": true
|
|
55
|
+
},
|
|
56
|
+
"props": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"properties": {
|
|
60
|
+
"state": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": [
|
|
63
|
+
"idle",
|
|
64
|
+
"selected",
|
|
65
|
+
"muted"
|
|
66
|
+
],
|
|
67
|
+
"default": "idle"
|
|
68
|
+
},
|
|
69
|
+
"density": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"compact",
|
|
73
|
+
"cozy"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"layout": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"stack",
|
|
80
|
+
"split"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"slots": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"description": "Named composition slots / compound parts",
|
|
88
|
+
"additionalProperties": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"properties": {
|
|
92
|
+
"List": {
|
|
93
|
+
"const": "entry.list",
|
|
94
|
+
"description": "entry.list"
|
|
95
|
+
},
|
|
96
|
+
"Root": {
|
|
97
|
+
"const": "entry.root",
|
|
98
|
+
"description": "entry.root"
|
|
99
|
+
},
|
|
100
|
+
"Header": {
|
|
101
|
+
"const": "entry.header",
|
|
102
|
+
"description": "entry.header"
|
|
103
|
+
},
|
|
104
|
+
"Body": {
|
|
105
|
+
"const": "entry.body",
|
|
106
|
+
"description": "entry.body"
|
|
107
|
+
},
|
|
108
|
+
"Actions": {
|
|
109
|
+
"const": "entry.actions",
|
|
110
|
+
"description": "entry.actions"
|
|
111
|
+
},
|
|
112
|
+
"Footer": {
|
|
113
|
+
"const": "entry.footer",
|
|
114
|
+
"description": "entry.footer"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"machine": {
|
|
119
|
+
"type": [
|
|
120
|
+
"string",
|
|
121
|
+
"null"
|
|
122
|
+
],
|
|
123
|
+
"description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
|
|
124
|
+
"const": null
|
|
125
|
+
},
|
|
126
|
+
"runtime": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "How headless state is driven at runtime",
|
|
129
|
+
"const": "props"
|
|
130
|
+
},
|
|
131
|
+
"events": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": []
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"examples": {
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"default": []
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"x-aeon": {
|
|
147
|
+
"scope": "entry",
|
|
148
|
+
"parts": [
|
|
149
|
+
"list",
|
|
150
|
+
"root",
|
|
151
|
+
"header",
|
|
152
|
+
"leading",
|
|
153
|
+
"heading",
|
|
154
|
+
"title",
|
|
155
|
+
"subtitle",
|
|
156
|
+
"meta",
|
|
157
|
+
"media",
|
|
158
|
+
"body",
|
|
159
|
+
"values",
|
|
160
|
+
"value",
|
|
161
|
+
"actions",
|
|
162
|
+
"footer"
|
|
163
|
+
],
|
|
164
|
+
"states": [
|
|
165
|
+
"idle",
|
|
166
|
+
"selected",
|
|
167
|
+
"muted"
|
|
168
|
+
],
|
|
169
|
+
"machine": null,
|
|
170
|
+
"runtime": "props",
|
|
171
|
+
"events": [],
|
|
172
|
+
"slots": {
|
|
173
|
+
"List": "entry.list",
|
|
174
|
+
"Root": "entry.root",
|
|
175
|
+
"Header": "entry.header",
|
|
176
|
+
"Body": "entry.body",
|
|
177
|
+
"Actions": "entry.actions",
|
|
178
|
+
"Footer": "entry.footer"
|
|
179
|
+
},
|
|
180
|
+
"examples": []
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aeon-ui.com/schemas/fileUpload.json",
|
|
4
|
+
"title": "FileUpload",
|
|
5
|
+
"description": "Drag-drop surface via fileUploadMachine — idle | dragging | rejected. File bytes stay in React callbacks.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"component",
|
|
10
|
+
"scope"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"component": {
|
|
14
|
+
"const": "FileUpload"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"const": "fileUpload"
|
|
18
|
+
},
|
|
19
|
+
"parts": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "Anatomy part keys — map to data-aeon-part",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"root",
|
|
26
|
+
"dropzone",
|
|
27
|
+
"input",
|
|
28
|
+
"label",
|
|
29
|
+
"hint",
|
|
30
|
+
"preview",
|
|
31
|
+
"clearTrigger",
|
|
32
|
+
"rejectionMessage"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"uniqueItems": true
|
|
36
|
+
},
|
|
37
|
+
"states": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"description": "Allowed data-aeon-state values (stable states only)",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"idle",
|
|
44
|
+
"dragging",
|
|
45
|
+
"rejected"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"uniqueItems": true
|
|
49
|
+
},
|
|
50
|
+
"props": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"properties": {}
|
|
54
|
+
},
|
|
55
|
+
"slots": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Named composition slots / compound parts",
|
|
58
|
+
"additionalProperties": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"properties": {
|
|
62
|
+
"Root": {
|
|
63
|
+
"const": "fileUpload.root",
|
|
64
|
+
"description": "fileUpload.root"
|
|
65
|
+
},
|
|
66
|
+
"Dropzone": {
|
|
67
|
+
"const": "fileUpload.dropzone",
|
|
68
|
+
"description": "fileUpload.dropzone"
|
|
69
|
+
},
|
|
70
|
+
"Input": {
|
|
71
|
+
"const": "fileUpload.input",
|
|
72
|
+
"description": "fileUpload.input"
|
|
73
|
+
},
|
|
74
|
+
"Label": {
|
|
75
|
+
"const": "fileUpload.label",
|
|
76
|
+
"description": "fileUpload.label"
|
|
77
|
+
},
|
|
78
|
+
"Hint": {
|
|
79
|
+
"const": "fileUpload.hint",
|
|
80
|
+
"description": "fileUpload.hint"
|
|
81
|
+
},
|
|
82
|
+
"Preview": {
|
|
83
|
+
"const": "fileUpload.preview",
|
|
84
|
+
"description": "fileUpload.preview"
|
|
85
|
+
},
|
|
86
|
+
"ClearTrigger": {
|
|
87
|
+
"const": "fileUpload.clearTrigger",
|
|
88
|
+
"description": "fileUpload.clearTrigger"
|
|
89
|
+
},
|
|
90
|
+
"RejectionMessage": {
|
|
91
|
+
"const": "fileUpload.rejectionMessage",
|
|
92
|
+
"description": "fileUpload.rejectionMessage"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"machine": {
|
|
97
|
+
"type": [
|
|
98
|
+
"string",
|
|
99
|
+
"null"
|
|
100
|
+
],
|
|
101
|
+
"description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
|
|
102
|
+
"const": "fileUploadMachine"
|
|
103
|
+
},
|
|
104
|
+
"runtime": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "How headless state is driven at runtime",
|
|
107
|
+
"const": "useAeonMachine"
|
|
108
|
+
},
|
|
109
|
+
"events": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": [
|
|
114
|
+
"DRAG_OVER",
|
|
115
|
+
"DRAG_LEAVE",
|
|
116
|
+
"DROP_ACCEPT",
|
|
117
|
+
"DROP_REJECT",
|
|
118
|
+
"RESET"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"examples": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"default": []
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"x-aeon": {
|
|
131
|
+
"scope": "fileUpload",
|
|
132
|
+
"parts": [
|
|
133
|
+
"root",
|
|
134
|
+
"dropzone",
|
|
135
|
+
"input",
|
|
136
|
+
"label",
|
|
137
|
+
"hint",
|
|
138
|
+
"preview",
|
|
139
|
+
"clearTrigger",
|
|
140
|
+
"rejectionMessage"
|
|
141
|
+
],
|
|
142
|
+
"states": [
|
|
143
|
+
"idle",
|
|
144
|
+
"dragging",
|
|
145
|
+
"rejected"
|
|
146
|
+
],
|
|
147
|
+
"machine": "fileUploadMachine",
|
|
148
|
+
"runtime": "useAeonMachine",
|
|
149
|
+
"events": [
|
|
150
|
+
"DRAG_OVER",
|
|
151
|
+
"DRAG_LEAVE",
|
|
152
|
+
"DROP_ACCEPT",
|
|
153
|
+
"DROP_REJECT",
|
|
154
|
+
"RESET"
|
|
155
|
+
],
|
|
156
|
+
"slots": {
|
|
157
|
+
"Root": "fileUpload.root",
|
|
158
|
+
"Dropzone": "fileUpload.dropzone",
|
|
159
|
+
"Input": "fileUpload.input",
|
|
160
|
+
"Label": "fileUpload.label",
|
|
161
|
+
"Hint": "fileUpload.hint",
|
|
162
|
+
"Preview": "fileUpload.preview",
|
|
163
|
+
"ClearTrigger": "fileUpload.clearTrigger",
|
|
164
|
+
"RejectionMessage": "fileUpload.rejectionMessage"
|
|
165
|
+
},
|
|
166
|
+
"examples": []
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aeon-ui.com/schemas/identity.json",
|
|
4
|
+
"title": "Identity",
|
|
5
|
+
"description": "Avatar + title + subtitle strip — presentational layout, not a niche product scope.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"component",
|
|
10
|
+
"scope"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"component": {
|
|
14
|
+
"const": "Identity"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"const": "identity"
|
|
18
|
+
},
|
|
19
|
+
"parts": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "Anatomy part keys — map to data-aeon-part",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"root",
|
|
26
|
+
"avatar",
|
|
27
|
+
"title",
|
|
28
|
+
"subtitle",
|
|
29
|
+
"meta",
|
|
30
|
+
"trailing"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"uniqueItems": true
|
|
34
|
+
},
|
|
35
|
+
"states": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Allowed data-aeon-state values (stable states only)",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"idle"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"uniqueItems": true
|
|
45
|
+
},
|
|
46
|
+
"props": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"properties": {
|
|
50
|
+
"size": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": [
|
|
53
|
+
"sm",
|
|
54
|
+
"md",
|
|
55
|
+
"lg"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"slots": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"description": "Named composition slots / compound parts",
|
|
63
|
+
"additionalProperties": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"properties": {
|
|
67
|
+
"Root": {
|
|
68
|
+
"const": "identity.root",
|
|
69
|
+
"description": "identity.root"
|
|
70
|
+
},
|
|
71
|
+
"Avatar": {
|
|
72
|
+
"const": "identity.avatar",
|
|
73
|
+
"description": "identity.avatar"
|
|
74
|
+
},
|
|
75
|
+
"Title": {
|
|
76
|
+
"const": "identity.title",
|
|
77
|
+
"description": "identity.title"
|
|
78
|
+
},
|
|
79
|
+
"Subtitle": {
|
|
80
|
+
"const": "identity.subtitle",
|
|
81
|
+
"description": "identity.subtitle"
|
|
82
|
+
},
|
|
83
|
+
"Meta": {
|
|
84
|
+
"const": "identity.meta",
|
|
85
|
+
"description": "identity.meta"
|
|
86
|
+
},
|
|
87
|
+
"Trailing": {
|
|
88
|
+
"const": "identity.trailing",
|
|
89
|
+
"description": "identity.trailing"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"machine": {
|
|
94
|
+
"type": [
|
|
95
|
+
"string",
|
|
96
|
+
"null"
|
|
97
|
+
],
|
|
98
|
+
"description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
|
|
99
|
+
"const": null
|
|
100
|
+
},
|
|
101
|
+
"runtime": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "How headless state is driven at runtime",
|
|
104
|
+
"const": "layout"
|
|
105
|
+
},
|
|
106
|
+
"events": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": []
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"examples": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"default": []
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"x-aeon": {
|
|
122
|
+
"scope": "identity",
|
|
123
|
+
"parts": [
|
|
124
|
+
"root",
|
|
125
|
+
"avatar",
|
|
126
|
+
"title",
|
|
127
|
+
"subtitle",
|
|
128
|
+
"meta",
|
|
129
|
+
"trailing"
|
|
130
|
+
],
|
|
131
|
+
"states": [
|
|
132
|
+
"idle"
|
|
133
|
+
],
|
|
134
|
+
"machine": null,
|
|
135
|
+
"runtime": "layout",
|
|
136
|
+
"events": [],
|
|
137
|
+
"slots": {
|
|
138
|
+
"Root": "identity.root",
|
|
139
|
+
"Avatar": "identity.avatar",
|
|
140
|
+
"Title": "identity.title",
|
|
141
|
+
"Subtitle": "identity.subtitle",
|
|
142
|
+
"Meta": "identity.meta",
|
|
143
|
+
"Trailing": "identity.trailing"
|
|
144
|
+
},
|
|
145
|
+
"examples": []
|
|
146
|
+
}
|
|
147
|
+
}
|