@agnosticui/a2ui-lit 0.0.0-stage → 2.0.0-alpha.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.
Files changed (64) hide show
  1. package/README.md +34 -2
  2. package/SKILL.md +52 -0
  3. package/agnosticui-catalog.json +2184 -0
  4. package/dist/catalog.d.ts +5 -0
  5. package/dist/catalog.js +36 -0
  6. package/dist/components/AgAccordion.d.ts +82 -0
  7. package/dist/components/AgAccordion.js +29 -0
  8. package/dist/components/AgAlert.d.ts +971 -0
  9. package/dist/components/AgAlert.js +46 -0
  10. package/dist/components/AgAvatar.d.ts +511 -0
  11. package/dist/components/AgAvatar.js +44 -0
  12. package/dist/components/AgBadge.d.ts +793 -0
  13. package/dist/components/AgBadge.js +49 -0
  14. package/dist/components/AgButton.d.ts +1568 -0
  15. package/dist/components/AgButton.js +61 -0
  16. package/dist/components/AgCard.d.ts +565 -0
  17. package/dist/components/AgCard.js +45 -0
  18. package/dist/components/AgCheckbox.d.ts +1497 -0
  19. package/dist/components/AgCheckbox.js +63 -0
  20. package/dist/components/AgCombobox.d.ts +2733 -0
  21. package/dist/components/AgCombobox.js +91 -0
  22. package/dist/components/AgDivider.d.ts +169 -0
  23. package/dist/components/AgDivider.js +38 -0
  24. package/dist/components/AgEmptyState.d.ts +607 -0
  25. package/dist/components/AgEmptyState.js +42 -0
  26. package/dist/components/AgFieldset.d.ts +433 -0
  27. package/dist/components/AgFieldset.js +39 -0
  28. package/dist/components/AgHeader.d.ts +205 -0
  29. package/dist/components/AgHeader.js +35 -0
  30. package/dist/components/AgInput.d.ts +2988 -0
  31. package/dist/components/AgInput.js +91 -0
  32. package/dist/components/AgMessageBubble.d.ts +670 -0
  33. package/dist/components/AgMessageBubble.js +45 -0
  34. package/dist/components/AgProgress.d.ts +433 -0
  35. package/dist/components/AgProgress.js +39 -0
  36. package/dist/components/AgProgressRing.d.ts +274 -0
  37. package/dist/components/AgProgressRing.js +38 -0
  38. package/dist/components/AgRadio.d.ts +1848 -0
  39. package/dist/components/AgRadio.js +71 -0
  40. package/dist/components/AgRating.d.ts +1433 -0
  41. package/dist/components/AgRating.js +67 -0
  42. package/dist/components/AgSelect.d.ts +1839 -0
  43. package/dist/components/AgSelect.js +69 -0
  44. package/dist/components/AgSpinner.d.ts +151 -0
  45. package/dist/components/AgSpinner.js +34 -0
  46. package/dist/components/AgTabs.d.ts +328 -0
  47. package/dist/components/AgTabs.js +39 -0
  48. package/dist/components/AgTag.d.ts +752 -0
  49. package/dist/components/AgTag.js +44 -0
  50. package/dist/components/AgTimeline.d.ts +274 -0
  51. package/dist/components/AgTimeline.js +38 -0
  52. package/dist/components/AgToggle.d.ts +1848 -0
  53. package/dist/components/AgToggle.js +71 -0
  54. package/dist/functions/validate-surface.d.ts +27 -0
  55. package/dist/functions/validate-surface.js +56 -0
  56. package/dist/harness/mock-stream.d.ts +8 -0
  57. package/dist/harness/mock-stream.js +5 -0
  58. package/dist/index.d.ts +30 -0
  59. package/dist/index.js +31 -0
  60. package/dist/primitives/AgText.d.ts +150 -0
  61. package/dist/primitives/AgText.js +44 -0
  62. package/dist/test-setup.d.ts +1 -0
  63. package/dist/test-setup.js +83 -0
  64. package/package.json +59 -4
@@ -0,0 +1,61 @@
1
+ // AUTO-GENERATED by v2/a2ui/catalog/scripts/generate-catalog.ts — do not edit by hand
2
+ import { html } from 'lit';
3
+ import { ifDefined } from 'lit/directives/if-defined.js';
4
+ import { z } from 'zod';
5
+ import { A2uiLitElement, ActionSchema, ChildListSchema, DynamicBooleanSchema, DynamicStringSchema } from '@a2ui/web_core/v1_0';
6
+ import 'agnosticui-core/button';
7
+ export const AgButtonSchema = z
8
+ .object({
9
+ children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgButton.').optional(),
10
+ label: DynamicStringSchema.describe('REF:#/$defs/DynamicString|Text label displayed inside AgButton.').optional(),
11
+ variant: z.enum(['warning', 'success', 'danger', 'primary', 'monochrome', 'secondary']).optional(),
12
+ size: z.enum(['sm', 'md', 'lg', 'xl', 'x-sm']).optional(),
13
+ shape: z.enum(['circle', 'square', 'rounded', 'capsule', 'rounded-square']).optional(),
14
+ bordered: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property bordered.').optional(),
15
+ ghost: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property ghost.').optional(),
16
+ link: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property link.').optional(),
17
+ grouped: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property grouped.').optional(),
18
+ fullWidth: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property fullWidth.').optional(),
19
+ type: z.enum(['button', 'submit', 'reset']).optional(),
20
+ disabled: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property disabled.').optional(),
21
+ loading: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property loading.').optional(),
22
+ ariaLabel: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property ariaLabel.').optional(),
23
+ action: ActionSchema.describe('REF:#/$defs/Action|Action dispatched on user interaction.').optional(),
24
+ })
25
+ .strict();
26
+ export const AgButtonApi = {
27
+ name: 'AgButton',
28
+ schema: AgButtonSchema,
29
+ };
30
+ export class AgA2uiButtonElement extends A2uiLitElement {
31
+ static { this.tagName = 'ag-a2ui-button'; }
32
+ createRenderRoot() {
33
+ return this;
34
+ }
35
+ handleAction() {
36
+ void this.controller.props.action?.();
37
+ }
38
+ render() {
39
+ const p = this.controller.props;
40
+ return html `<ag-button
41
+ .variant=${ifDefined(p.variant)}
42
+ .size=${ifDefined(p.size)}
43
+ .shape=${ifDefined(p.shape)}
44
+ .bordered=${Boolean(p.bordered)}
45
+ .ghost=${Boolean(p.ghost)}
46
+ .link=${Boolean(p.link)}
47
+ .grouped=${Boolean(p.grouped)}
48
+ .fullWidth=${Boolean(p.fullWidth)}
49
+ .type=${ifDefined(p.type)}
50
+ .disabled=${Boolean(p.disabled)}
51
+ .loading=${Boolean(p.loading)}
52
+ .ariaLabel=${ifDefined(p.ariaLabel)}
53
+ @click=${this.handleAction}
54
+ >${p.children?.length ? p.children.map((c) => this.renderNode(c)) : (p.label ?? '')}</ag-button>`;
55
+ }
56
+ }
57
+ export const AgButton = {
58
+ ...AgButtonApi,
59
+ element: AgA2uiButtonElement,
60
+ tagName: AgA2uiButtonElement.tagName,
61
+ };
@@ -0,0 +1,565 @@
1
+ import { z } from 'zod';
2
+ import { A2uiLitElement } from '@a2ui/web_core/v1_0';
3
+ import 'agnosticui-core/card';
4
+ export declare const AgCardSchema: z.ZodObject<{
5
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
6
+ componentId: z.ZodString;
7
+ path: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ path: string;
10
+ componentId: string;
11
+ }, {
12
+ path: string;
13
+ componentId: string;
14
+ }>]>>;
15
+ stacked: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
16
+ '@path': z.ZodOptional<z.ZodString>;
17
+ path: z.ZodOptional<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ path?: string | undefined;
20
+ '@path'?: string | undefined;
21
+ }, {
22
+ path?: string | undefined;
23
+ '@path'?: string | undefined;
24
+ }>, {
25
+ path?: string | undefined;
26
+ '@path'?: string | undefined;
27
+ }, {
28
+ path?: string | undefined;
29
+ '@path'?: string | undefined;
30
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
31
+ '@call': z.ZodOptional<z.ZodString>;
32
+ call: z.ZodOptional<z.ZodString>;
33
+ catalogId: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ call?: string | undefined;
36
+ '@call'?: string | undefined;
37
+ catalogId?: string | undefined;
38
+ }, {
39
+ call?: string | undefined;
40
+ '@call'?: string | undefined;
41
+ catalogId?: string | undefined;
42
+ }>, {
43
+ call?: string | undefined;
44
+ '@call'?: string | undefined;
45
+ catalogId?: string | undefined;
46
+ }, {
47
+ call?: string | undefined;
48
+ '@call'?: string | undefined;
49
+ catalogId?: string | undefined;
50
+ }>, z.ZodAny>>]>>;
51
+ shadow: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
52
+ '@path': z.ZodOptional<z.ZodString>;
53
+ path: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ path?: string | undefined;
56
+ '@path'?: string | undefined;
57
+ }, {
58
+ path?: string | undefined;
59
+ '@path'?: string | undefined;
60
+ }>, {
61
+ path?: string | undefined;
62
+ '@path'?: string | undefined;
63
+ }, {
64
+ path?: string | undefined;
65
+ '@path'?: string | undefined;
66
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
67
+ '@call': z.ZodOptional<z.ZodString>;
68
+ call: z.ZodOptional<z.ZodString>;
69
+ catalogId: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ call?: string | undefined;
72
+ '@call'?: string | undefined;
73
+ catalogId?: string | undefined;
74
+ }, {
75
+ call?: string | undefined;
76
+ '@call'?: string | undefined;
77
+ catalogId?: string | undefined;
78
+ }>, {
79
+ call?: string | undefined;
80
+ '@call'?: string | undefined;
81
+ catalogId?: string | undefined;
82
+ }, {
83
+ call?: string | undefined;
84
+ '@call'?: string | undefined;
85
+ catalogId?: string | undefined;
86
+ }>, z.ZodAny>>]>>;
87
+ animated: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
88
+ '@path': z.ZodOptional<z.ZodString>;
89
+ path: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ path?: string | undefined;
92
+ '@path'?: string | undefined;
93
+ }, {
94
+ path?: string | undefined;
95
+ '@path'?: string | undefined;
96
+ }>, {
97
+ path?: string | undefined;
98
+ '@path'?: string | undefined;
99
+ }, {
100
+ path?: string | undefined;
101
+ '@path'?: string | undefined;
102
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
103
+ '@call': z.ZodOptional<z.ZodString>;
104
+ call: z.ZodOptional<z.ZodString>;
105
+ catalogId: z.ZodOptional<z.ZodString>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ call?: string | undefined;
108
+ '@call'?: string | undefined;
109
+ catalogId?: string | undefined;
110
+ }, {
111
+ call?: string | undefined;
112
+ '@call'?: string | undefined;
113
+ catalogId?: string | undefined;
114
+ }>, {
115
+ call?: string | undefined;
116
+ '@call'?: string | undefined;
117
+ catalogId?: string | undefined;
118
+ }, {
119
+ call?: string | undefined;
120
+ '@call'?: string | undefined;
121
+ catalogId?: string | undefined;
122
+ }>, z.ZodAny>>]>>;
123
+ rounded: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
124
+ variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "error", "monochrome"]>>;
125
+ hasMedia: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
126
+ '@path': z.ZodOptional<z.ZodString>;
127
+ path: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ path?: string | undefined;
130
+ '@path'?: string | undefined;
131
+ }, {
132
+ path?: string | undefined;
133
+ '@path'?: string | undefined;
134
+ }>, {
135
+ path?: string | undefined;
136
+ '@path'?: string | undefined;
137
+ }, {
138
+ path?: string | undefined;
139
+ '@path'?: string | undefined;
140
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
141
+ '@call': z.ZodOptional<z.ZodString>;
142
+ call: z.ZodOptional<z.ZodString>;
143
+ catalogId: z.ZodOptional<z.ZodString>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ call?: string | undefined;
146
+ '@call'?: string | undefined;
147
+ catalogId?: string | undefined;
148
+ }, {
149
+ call?: string | undefined;
150
+ '@call'?: string | undefined;
151
+ catalogId?: string | undefined;
152
+ }>, {
153
+ call?: string | undefined;
154
+ '@call'?: string | undefined;
155
+ catalogId?: string | undefined;
156
+ }, {
157
+ call?: string | undefined;
158
+ '@call'?: string | undefined;
159
+ catalogId?: string | undefined;
160
+ }>, z.ZodAny>>]>>;
161
+ mediaPosition: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
162
+ }, "strict", z.ZodTypeAny, {
163
+ children?: string[] | {
164
+ path: string;
165
+ componentId: string;
166
+ } | undefined;
167
+ stacked?: any;
168
+ shadow?: any;
169
+ animated?: any;
170
+ rounded?: "lg" | "md" | "sm" | undefined;
171
+ variant?: "error" | "info" | "monochrome" | "success" | "warning" | undefined;
172
+ hasMedia?: any;
173
+ mediaPosition?: "bottom" | "top" | undefined;
174
+ }, {
175
+ children?: string[] | {
176
+ path: string;
177
+ componentId: string;
178
+ } | undefined;
179
+ stacked?: any;
180
+ shadow?: any;
181
+ animated?: any;
182
+ rounded?: "lg" | "md" | "sm" | undefined;
183
+ variant?: "error" | "info" | "monochrome" | "success" | "warning" | undefined;
184
+ hasMedia?: any;
185
+ mediaPosition?: "bottom" | "top" | undefined;
186
+ }>;
187
+ export declare const AgCardApi: {
188
+ name: 'AgCard';
189
+ schema: z.ZodObject<{
190
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
191
+ componentId: z.ZodString;
192
+ path: z.ZodString;
193
+ }, "strict", z.ZodTypeAny, {
194
+ path: string;
195
+ componentId: string;
196
+ }, {
197
+ path: string;
198
+ componentId: string;
199
+ }>]>>;
200
+ stacked: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
201
+ '@path': z.ZodOptional<z.ZodString>;
202
+ path: z.ZodOptional<z.ZodString>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ path?: string | undefined;
205
+ '@path'?: string | undefined;
206
+ }, {
207
+ path?: string | undefined;
208
+ '@path'?: string | undefined;
209
+ }>, {
210
+ path?: string | undefined;
211
+ '@path'?: string | undefined;
212
+ }, {
213
+ path?: string | undefined;
214
+ '@path'?: string | undefined;
215
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
216
+ '@call': z.ZodOptional<z.ZodString>;
217
+ call: z.ZodOptional<z.ZodString>;
218
+ catalogId: z.ZodOptional<z.ZodString>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ call?: string | undefined;
221
+ '@call'?: string | undefined;
222
+ catalogId?: string | undefined;
223
+ }, {
224
+ call?: string | undefined;
225
+ '@call'?: string | undefined;
226
+ catalogId?: string | undefined;
227
+ }>, {
228
+ call?: string | undefined;
229
+ '@call'?: string | undefined;
230
+ catalogId?: string | undefined;
231
+ }, {
232
+ call?: string | undefined;
233
+ '@call'?: string | undefined;
234
+ catalogId?: string | undefined;
235
+ }>, z.ZodAny>>]>>;
236
+ shadow: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
237
+ '@path': z.ZodOptional<z.ZodString>;
238
+ path: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ path?: string | undefined;
241
+ '@path'?: string | undefined;
242
+ }, {
243
+ path?: string | undefined;
244
+ '@path'?: string | undefined;
245
+ }>, {
246
+ path?: string | undefined;
247
+ '@path'?: string | undefined;
248
+ }, {
249
+ path?: string | undefined;
250
+ '@path'?: string | undefined;
251
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
252
+ '@call': z.ZodOptional<z.ZodString>;
253
+ call: z.ZodOptional<z.ZodString>;
254
+ catalogId: z.ZodOptional<z.ZodString>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ call?: string | undefined;
257
+ '@call'?: string | undefined;
258
+ catalogId?: string | undefined;
259
+ }, {
260
+ call?: string | undefined;
261
+ '@call'?: string | undefined;
262
+ catalogId?: string | undefined;
263
+ }>, {
264
+ call?: string | undefined;
265
+ '@call'?: string | undefined;
266
+ catalogId?: string | undefined;
267
+ }, {
268
+ call?: string | undefined;
269
+ '@call'?: string | undefined;
270
+ catalogId?: string | undefined;
271
+ }>, z.ZodAny>>]>>;
272
+ animated: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
273
+ '@path': z.ZodOptional<z.ZodString>;
274
+ path: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ path?: string | undefined;
277
+ '@path'?: string | undefined;
278
+ }, {
279
+ path?: string | undefined;
280
+ '@path'?: string | undefined;
281
+ }>, {
282
+ path?: string | undefined;
283
+ '@path'?: string | undefined;
284
+ }, {
285
+ path?: string | undefined;
286
+ '@path'?: string | undefined;
287
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
288
+ '@call': z.ZodOptional<z.ZodString>;
289
+ call: z.ZodOptional<z.ZodString>;
290
+ catalogId: z.ZodOptional<z.ZodString>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ call?: string | undefined;
293
+ '@call'?: string | undefined;
294
+ catalogId?: string | undefined;
295
+ }, {
296
+ call?: string | undefined;
297
+ '@call'?: string | undefined;
298
+ catalogId?: string | undefined;
299
+ }>, {
300
+ call?: string | undefined;
301
+ '@call'?: string | undefined;
302
+ catalogId?: string | undefined;
303
+ }, {
304
+ call?: string | undefined;
305
+ '@call'?: string | undefined;
306
+ catalogId?: string | undefined;
307
+ }>, z.ZodAny>>]>>;
308
+ rounded: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
309
+ variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "error", "monochrome"]>>;
310
+ hasMedia: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
311
+ '@path': z.ZodOptional<z.ZodString>;
312
+ path: z.ZodOptional<z.ZodString>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ path?: string | undefined;
315
+ '@path'?: string | undefined;
316
+ }, {
317
+ path?: string | undefined;
318
+ '@path'?: string | undefined;
319
+ }>, {
320
+ path?: string | undefined;
321
+ '@path'?: string | undefined;
322
+ }, {
323
+ path?: string | undefined;
324
+ '@path'?: string | undefined;
325
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
326
+ '@call': z.ZodOptional<z.ZodString>;
327
+ call: z.ZodOptional<z.ZodString>;
328
+ catalogId: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ call?: string | undefined;
331
+ '@call'?: string | undefined;
332
+ catalogId?: string | undefined;
333
+ }, {
334
+ call?: string | undefined;
335
+ '@call'?: string | undefined;
336
+ catalogId?: string | undefined;
337
+ }>, {
338
+ call?: string | undefined;
339
+ '@call'?: string | undefined;
340
+ catalogId?: string | undefined;
341
+ }, {
342
+ call?: string | undefined;
343
+ '@call'?: string | undefined;
344
+ catalogId?: string | undefined;
345
+ }>, z.ZodAny>>]>>;
346
+ mediaPosition: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
347
+ }, "strict", z.ZodTypeAny, {
348
+ children?: string[] | {
349
+ path: string;
350
+ componentId: string;
351
+ } | undefined;
352
+ stacked?: any;
353
+ shadow?: any;
354
+ animated?: any;
355
+ rounded?: "lg" | "md" | "sm" | undefined;
356
+ variant?: "error" | "info" | "monochrome" | "success" | "warning" | undefined;
357
+ hasMedia?: any;
358
+ mediaPosition?: "bottom" | "top" | undefined;
359
+ }, {
360
+ children?: string[] | {
361
+ path: string;
362
+ componentId: string;
363
+ } | undefined;
364
+ stacked?: any;
365
+ shadow?: any;
366
+ animated?: any;
367
+ rounded?: "lg" | "md" | "sm" | undefined;
368
+ variant?: "error" | "info" | "monochrome" | "success" | "warning" | undefined;
369
+ hasMedia?: any;
370
+ mediaPosition?: "bottom" | "top" | undefined;
371
+ }>;
372
+ };
373
+ export declare class AgA2uiCardElement extends A2uiLitElement<typeof AgCardApi> {
374
+ static readonly tagName = "ag-a2ui-card";
375
+ createRenderRoot(): this;
376
+ render(): import("lit-html").TemplateResult<1>;
377
+ }
378
+ export declare const AgCard: {
379
+ name: 'AgCard';
380
+ schema: z.ZodObject<{
381
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
382
+ componentId: z.ZodString;
383
+ path: z.ZodString;
384
+ }, "strict", z.ZodTypeAny, {
385
+ path: string;
386
+ componentId: string;
387
+ }, {
388
+ path: string;
389
+ componentId: string;
390
+ }>]>>;
391
+ stacked: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
392
+ '@path': z.ZodOptional<z.ZodString>;
393
+ path: z.ZodOptional<z.ZodString>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ path?: string | undefined;
396
+ '@path'?: string | undefined;
397
+ }, {
398
+ path?: string | undefined;
399
+ '@path'?: string | undefined;
400
+ }>, {
401
+ path?: string | undefined;
402
+ '@path'?: string | undefined;
403
+ }, {
404
+ path?: string | undefined;
405
+ '@path'?: string | undefined;
406
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
407
+ '@call': z.ZodOptional<z.ZodString>;
408
+ call: z.ZodOptional<z.ZodString>;
409
+ catalogId: z.ZodOptional<z.ZodString>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ call?: string | undefined;
412
+ '@call'?: string | undefined;
413
+ catalogId?: string | undefined;
414
+ }, {
415
+ call?: string | undefined;
416
+ '@call'?: string | undefined;
417
+ catalogId?: string | undefined;
418
+ }>, {
419
+ call?: string | undefined;
420
+ '@call'?: string | undefined;
421
+ catalogId?: string | undefined;
422
+ }, {
423
+ call?: string | undefined;
424
+ '@call'?: string | undefined;
425
+ catalogId?: string | undefined;
426
+ }>, z.ZodAny>>]>>;
427
+ shadow: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
428
+ '@path': z.ZodOptional<z.ZodString>;
429
+ path: z.ZodOptional<z.ZodString>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ path?: string | undefined;
432
+ '@path'?: string | undefined;
433
+ }, {
434
+ path?: string | undefined;
435
+ '@path'?: string | undefined;
436
+ }>, {
437
+ path?: string | undefined;
438
+ '@path'?: string | undefined;
439
+ }, {
440
+ path?: string | undefined;
441
+ '@path'?: string | undefined;
442
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
443
+ '@call': z.ZodOptional<z.ZodString>;
444
+ call: z.ZodOptional<z.ZodString>;
445
+ catalogId: z.ZodOptional<z.ZodString>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ call?: string | undefined;
448
+ '@call'?: string | undefined;
449
+ catalogId?: string | undefined;
450
+ }, {
451
+ call?: string | undefined;
452
+ '@call'?: string | undefined;
453
+ catalogId?: string | undefined;
454
+ }>, {
455
+ call?: string | undefined;
456
+ '@call'?: string | undefined;
457
+ catalogId?: string | undefined;
458
+ }, {
459
+ call?: string | undefined;
460
+ '@call'?: string | undefined;
461
+ catalogId?: string | undefined;
462
+ }>, z.ZodAny>>]>>;
463
+ animated: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
464
+ '@path': z.ZodOptional<z.ZodString>;
465
+ path: z.ZodOptional<z.ZodString>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ path?: string | undefined;
468
+ '@path'?: string | undefined;
469
+ }, {
470
+ path?: string | undefined;
471
+ '@path'?: string | undefined;
472
+ }>, {
473
+ path?: string | undefined;
474
+ '@path'?: string | undefined;
475
+ }, {
476
+ path?: string | undefined;
477
+ '@path'?: string | undefined;
478
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
479
+ '@call': z.ZodOptional<z.ZodString>;
480
+ call: z.ZodOptional<z.ZodString>;
481
+ catalogId: z.ZodOptional<z.ZodString>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ call?: string | undefined;
484
+ '@call'?: string | undefined;
485
+ catalogId?: string | undefined;
486
+ }, {
487
+ call?: string | undefined;
488
+ '@call'?: string | undefined;
489
+ catalogId?: string | undefined;
490
+ }>, {
491
+ call?: string | undefined;
492
+ '@call'?: string | undefined;
493
+ catalogId?: string | undefined;
494
+ }, {
495
+ call?: string | undefined;
496
+ '@call'?: string | undefined;
497
+ catalogId?: string | undefined;
498
+ }>, z.ZodAny>>]>>;
499
+ rounded: z.ZodOptional<z.ZodEnum<["sm", "md", "lg"]>>;
500
+ variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "error", "monochrome"]>>;
501
+ hasMedia: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
502
+ '@path': z.ZodOptional<z.ZodString>;
503
+ path: z.ZodOptional<z.ZodString>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ path?: string | undefined;
506
+ '@path'?: string | undefined;
507
+ }, {
508
+ path?: string | undefined;
509
+ '@path'?: string | undefined;
510
+ }>, {
511
+ path?: string | undefined;
512
+ '@path'?: string | undefined;
513
+ }, {
514
+ path?: string | undefined;
515
+ '@path'?: string | undefined;
516
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
517
+ '@call': z.ZodOptional<z.ZodString>;
518
+ call: z.ZodOptional<z.ZodString>;
519
+ catalogId: z.ZodOptional<z.ZodString>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ call?: string | undefined;
522
+ '@call'?: string | undefined;
523
+ catalogId?: string | undefined;
524
+ }, {
525
+ call?: string | undefined;
526
+ '@call'?: string | undefined;
527
+ catalogId?: string | undefined;
528
+ }>, {
529
+ call?: string | undefined;
530
+ '@call'?: string | undefined;
531
+ catalogId?: string | undefined;
532
+ }, {
533
+ call?: string | undefined;
534
+ '@call'?: string | undefined;
535
+ catalogId?: string | undefined;
536
+ }>, z.ZodAny>>]>>;
537
+ mediaPosition: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
538
+ }, "strict", z.ZodTypeAny, {
539
+ children?: string[] | {
540
+ path: string;
541
+ componentId: string;
542
+ } | undefined;
543
+ stacked?: any;
544
+ shadow?: any;
545
+ animated?: any;
546
+ rounded?: "lg" | "md" | "sm" | undefined;
547
+ variant?: "error" | "info" | "monochrome" | "success" | "warning" | undefined;
548
+ hasMedia?: any;
549
+ mediaPosition?: "bottom" | "top" | undefined;
550
+ }, {
551
+ children?: string[] | {
552
+ path: string;
553
+ componentId: string;
554
+ } | undefined;
555
+ stacked?: any;
556
+ shadow?: any;
557
+ animated?: any;
558
+ rounded?: "lg" | "md" | "sm" | undefined;
559
+ variant?: "error" | "info" | "monochrome" | "success" | "warning" | undefined;
560
+ hasMedia?: any;
561
+ mediaPosition?: "bottom" | "top" | undefined;
562
+ }>;
563
+ element: typeof AgA2uiCardElement;
564
+ tagName: string;
565
+ };
@@ -0,0 +1,45 @@
1
+ // AUTO-GENERATED by v2/a2ui/catalog/scripts/generate-catalog.ts — do not edit by hand
2
+ import { html } from 'lit';
3
+ import { ifDefined } from 'lit/directives/if-defined.js';
4
+ import { z } from 'zod';
5
+ import { A2uiLitElement, ChildListSchema, DynamicBooleanSchema } from '@a2ui/web_core/v1_0';
6
+ import 'agnosticui-core/card';
7
+ export const AgCardSchema = z
8
+ .object({
9
+ children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgCard.').optional(),
10
+ stacked: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property stacked.').optional(),
11
+ shadow: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property shadow.').optional(),
12
+ animated: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property animated.').optional(),
13
+ rounded: z.enum(['sm', 'md', 'lg']).optional(),
14
+ variant: z.enum(['warning', 'info', 'success', 'error', 'monochrome']).optional(),
15
+ hasMedia: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property hasMedia.').optional(),
16
+ mediaPosition: z.enum(['top', 'bottom']).optional(),
17
+ })
18
+ .strict();
19
+ export const AgCardApi = {
20
+ name: 'AgCard',
21
+ schema: AgCardSchema,
22
+ };
23
+ export class AgA2uiCardElement extends A2uiLitElement {
24
+ static { this.tagName = 'ag-a2ui-card'; }
25
+ createRenderRoot() {
26
+ return this;
27
+ }
28
+ render() {
29
+ const p = this.controller.props;
30
+ return html `<ag-card
31
+ .stacked=${Boolean(p.stacked)}
32
+ .shadow=${Boolean(p.shadow)}
33
+ .animated=${Boolean(p.animated)}
34
+ .rounded=${ifDefined(p.rounded)}
35
+ .variant=${ifDefined(p.variant)}
36
+ .hasMedia=${Boolean(p.hasMedia)}
37
+ .mediaPosition=${ifDefined(p.mediaPosition)}
38
+ >${(p.children ?? []).map((c) => this.renderNode(c))}</ag-card>`;
39
+ }
40
+ }
41
+ export const AgCard = {
42
+ ...AgCardApi,
43
+ element: AgA2uiCardElement,
44
+ tagName: AgA2uiCardElement.tagName,
45
+ };