@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,274 @@
1
+ import { z } from 'zod';
2
+ import { A2uiLitElement } from '@a2ui/web_core/v1_0';
3
+ import 'agnosticui-core/progress-ring';
4
+ export declare const AgProgressRingSchema: z.ZodObject<{
5
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
6
+ '@path': z.ZodOptional<z.ZodString>;
7
+ path: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ path?: string | undefined;
10
+ '@path'?: string | undefined;
11
+ }, {
12
+ path?: string | undefined;
13
+ '@path'?: string | undefined;
14
+ }>, {
15
+ path?: string | undefined;
16
+ '@path'?: string | undefined;
17
+ }, {
18
+ path?: string | undefined;
19
+ '@path'?: string | undefined;
20
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
21
+ '@call': z.ZodOptional<z.ZodString>;
22
+ call: z.ZodOptional<z.ZodString>;
23
+ catalogId: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ call?: string | undefined;
26
+ '@call'?: string | undefined;
27
+ catalogId?: string | undefined;
28
+ }, {
29
+ call?: string | undefined;
30
+ '@call'?: string | undefined;
31
+ catalogId?: string | undefined;
32
+ }>, {
33
+ call?: string | undefined;
34
+ '@call'?: string | undefined;
35
+ catalogId?: string | undefined;
36
+ }, {
37
+ call?: string | undefined;
38
+ '@call'?: string | undefined;
39
+ catalogId?: string | undefined;
40
+ }>, z.ZodAny>>]>>;
41
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
42
+ variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "danger", "primary"]>>;
43
+ label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
44
+ '@path': z.ZodOptional<z.ZodString>;
45
+ path: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ path?: string | undefined;
48
+ '@path'?: string | undefined;
49
+ }, {
50
+ path?: string | undefined;
51
+ '@path'?: string | undefined;
52
+ }>, {
53
+ path?: string | undefined;
54
+ '@path'?: string | undefined;
55
+ }, {
56
+ path?: string | undefined;
57
+ '@path'?: string | undefined;
58
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
59
+ '@call': z.ZodOptional<z.ZodString>;
60
+ call: z.ZodOptional<z.ZodString>;
61
+ catalogId: z.ZodOptional<z.ZodString>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ call?: string | undefined;
64
+ '@call'?: string | undefined;
65
+ catalogId?: string | undefined;
66
+ }, {
67
+ call?: string | undefined;
68
+ '@call'?: string | undefined;
69
+ catalogId?: string | undefined;
70
+ }>, {
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
+ }>, z.ZodAny>>]>>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ value?: any;
81
+ size?: "large" | "medium" | "small" | undefined;
82
+ variant?: "danger" | "info" | "primary" | "success" | "warning" | undefined;
83
+ label?: any;
84
+ }, {
85
+ value?: any;
86
+ size?: "large" | "medium" | "small" | undefined;
87
+ variant?: "danger" | "info" | "primary" | "success" | "warning" | undefined;
88
+ label?: any;
89
+ }>;
90
+ export declare const AgProgressRingApi: {
91
+ name: 'AgProgressRing';
92
+ schema: z.ZodObject<{
93
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
94
+ '@path': z.ZodOptional<z.ZodString>;
95
+ path: z.ZodOptional<z.ZodString>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ path?: string | undefined;
98
+ '@path'?: string | undefined;
99
+ }, {
100
+ path?: string | undefined;
101
+ '@path'?: string | undefined;
102
+ }>, {
103
+ path?: string | undefined;
104
+ '@path'?: string | undefined;
105
+ }, {
106
+ path?: string | undefined;
107
+ '@path'?: string | undefined;
108
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
109
+ '@call': z.ZodOptional<z.ZodString>;
110
+ call: z.ZodOptional<z.ZodString>;
111
+ catalogId: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ call?: string | undefined;
114
+ '@call'?: string | undefined;
115
+ catalogId?: string | undefined;
116
+ }, {
117
+ call?: string | undefined;
118
+ '@call'?: string | undefined;
119
+ catalogId?: string | undefined;
120
+ }>, {
121
+ call?: string | undefined;
122
+ '@call'?: string | undefined;
123
+ catalogId?: string | undefined;
124
+ }, {
125
+ call?: string | undefined;
126
+ '@call'?: string | undefined;
127
+ catalogId?: string | undefined;
128
+ }>, z.ZodAny>>]>>;
129
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
130
+ variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "danger", "primary"]>>;
131
+ label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
132
+ '@path': z.ZodOptional<z.ZodString>;
133
+ path: z.ZodOptional<z.ZodString>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ path?: string | undefined;
136
+ '@path'?: string | undefined;
137
+ }, {
138
+ path?: string | undefined;
139
+ '@path'?: string | undefined;
140
+ }>, {
141
+ path?: string | undefined;
142
+ '@path'?: string | undefined;
143
+ }, {
144
+ path?: string | undefined;
145
+ '@path'?: string | undefined;
146
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
147
+ '@call': z.ZodOptional<z.ZodString>;
148
+ call: z.ZodOptional<z.ZodString>;
149
+ catalogId: z.ZodOptional<z.ZodString>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ call?: string | undefined;
152
+ '@call'?: string | undefined;
153
+ catalogId?: string | undefined;
154
+ }, {
155
+ call?: string | undefined;
156
+ '@call'?: string | undefined;
157
+ catalogId?: string | undefined;
158
+ }>, {
159
+ call?: string | undefined;
160
+ '@call'?: string | undefined;
161
+ catalogId?: string | undefined;
162
+ }, {
163
+ call?: string | undefined;
164
+ '@call'?: string | undefined;
165
+ catalogId?: string | undefined;
166
+ }>, z.ZodAny>>]>>;
167
+ }, "strict", z.ZodTypeAny, {
168
+ value?: any;
169
+ size?: "large" | "medium" | "small" | undefined;
170
+ variant?: "danger" | "info" | "primary" | "success" | "warning" | undefined;
171
+ label?: any;
172
+ }, {
173
+ value?: any;
174
+ size?: "large" | "medium" | "small" | undefined;
175
+ variant?: "danger" | "info" | "primary" | "success" | "warning" | undefined;
176
+ label?: any;
177
+ }>;
178
+ };
179
+ export declare class AgA2uiProgressRingElement extends A2uiLitElement<typeof AgProgressRingApi> {
180
+ static readonly tagName = "ag-a2ui-progress-ring";
181
+ createRenderRoot(): this;
182
+ render(): import("lit-html").TemplateResult<1>;
183
+ }
184
+ export declare const AgProgressRing: {
185
+ name: 'AgProgressRing';
186
+ schema: z.ZodObject<{
187
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
188
+ '@path': z.ZodOptional<z.ZodString>;
189
+ path: z.ZodOptional<z.ZodString>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ path?: string | undefined;
192
+ '@path'?: string | undefined;
193
+ }, {
194
+ path?: string | undefined;
195
+ '@path'?: string | undefined;
196
+ }>, {
197
+ path?: string | undefined;
198
+ '@path'?: string | undefined;
199
+ }, {
200
+ path?: string | undefined;
201
+ '@path'?: string | undefined;
202
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
203
+ '@call': z.ZodOptional<z.ZodString>;
204
+ call: z.ZodOptional<z.ZodString>;
205
+ catalogId: z.ZodOptional<z.ZodString>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ call?: string | undefined;
208
+ '@call'?: string | undefined;
209
+ catalogId?: string | undefined;
210
+ }, {
211
+ call?: string | undefined;
212
+ '@call'?: string | undefined;
213
+ catalogId?: string | undefined;
214
+ }>, {
215
+ call?: string | undefined;
216
+ '@call'?: string | undefined;
217
+ catalogId?: string | undefined;
218
+ }, {
219
+ call?: string | undefined;
220
+ '@call'?: string | undefined;
221
+ catalogId?: string | undefined;
222
+ }>, z.ZodAny>>]>>;
223
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
224
+ variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "danger", "primary"]>>;
225
+ label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
226
+ '@path': z.ZodOptional<z.ZodString>;
227
+ path: z.ZodOptional<z.ZodString>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ path?: string | undefined;
230
+ '@path'?: string | undefined;
231
+ }, {
232
+ path?: string | undefined;
233
+ '@path'?: string | undefined;
234
+ }>, {
235
+ path?: string | undefined;
236
+ '@path'?: string | undefined;
237
+ }, {
238
+ path?: string | undefined;
239
+ '@path'?: string | undefined;
240
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
241
+ '@call': z.ZodOptional<z.ZodString>;
242
+ call: z.ZodOptional<z.ZodString>;
243
+ catalogId: z.ZodOptional<z.ZodString>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ call?: string | undefined;
246
+ '@call'?: string | undefined;
247
+ catalogId?: string | undefined;
248
+ }, {
249
+ call?: string | undefined;
250
+ '@call'?: string | undefined;
251
+ catalogId?: string | undefined;
252
+ }>, {
253
+ call?: string | undefined;
254
+ '@call'?: string | undefined;
255
+ catalogId?: string | undefined;
256
+ }, {
257
+ call?: string | undefined;
258
+ '@call'?: string | undefined;
259
+ catalogId?: string | undefined;
260
+ }>, z.ZodAny>>]>>;
261
+ }, "strict", z.ZodTypeAny, {
262
+ value?: any;
263
+ size?: "large" | "medium" | "small" | undefined;
264
+ variant?: "danger" | "info" | "primary" | "success" | "warning" | undefined;
265
+ label?: any;
266
+ }, {
267
+ value?: any;
268
+ size?: "large" | "medium" | "small" | undefined;
269
+ variant?: "danger" | "info" | "primary" | "success" | "warning" | undefined;
270
+ label?: any;
271
+ }>;
272
+ element: typeof AgA2uiProgressRingElement;
273
+ tagName: string;
274
+ };
@@ -0,0 +1,38 @@
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, DynamicNumberSchema, DynamicStringSchema } from '@a2ui/web_core/v1_0';
6
+ import 'agnosticui-core/progress-ring';
7
+ export const AgProgressRingSchema = z
8
+ .object({
9
+ value: DynamicNumberSchema.describe('REF:#/$defs/DynamicNumber|Numeric property value.').optional(),
10
+ size: z.enum(['small', 'medium', 'large']).optional(),
11
+ variant: z.enum(['warning', 'info', 'success', 'danger', 'primary']).optional(),
12
+ label: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property label.').optional(),
13
+ })
14
+ .strict();
15
+ export const AgProgressRingApi = {
16
+ name: 'AgProgressRing',
17
+ schema: AgProgressRingSchema,
18
+ };
19
+ export class AgA2uiProgressRingElement extends A2uiLitElement {
20
+ static { this.tagName = 'ag-a2ui-progress-ring'; }
21
+ createRenderRoot() {
22
+ return this;
23
+ }
24
+ render() {
25
+ const p = this.controller.props;
26
+ return html `<ag-progress-ring
27
+ .value=${ifDefined(p.value)}
28
+ .size=${ifDefined(p.size)}
29
+ .variant=${ifDefined(p.variant)}
30
+ .label=${ifDefined(p.label)}
31
+ ></ag-progress-ring>`;
32
+ }
33
+ }
34
+ export const AgProgressRing = {
35
+ ...AgProgressRingApi,
36
+ element: AgA2uiProgressRingElement,
37
+ tagName: AgA2uiProgressRingElement.tagName,
38
+ };