@chotot/clad-ui 3.0.0-next.2 → 3.0.0-next.3

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 (59) hide show
  1. package/README.md +42 -0
  2. package/ai/clad-ui-helper.js +267 -0
  3. package/ai/knowledge-base/README.md +154 -0
  4. package/ai/knowledge-base/clad-ui-database.json +9378 -0
  5. package/ai/knowledge-base/component-categories.json +616 -0
  6. package/ai/knowledge-base/components/metadata/charts-axis.json +31 -0
  7. package/ai/knowledge-base/components/metadata/charts-barchart.json +57 -0
  8. package/ai/knowledge-base/components/metadata/charts-basechart.tsx.json +31 -0
  9. package/ai/knowledge-base/components/metadata/charts-chartshared.json +31 -0
  10. package/ai/knowledge-base/components/metadata/charts-linechart.json +189 -0
  11. package/ai/knowledge-base/components/metadata/charts-piechart.json +57 -0
  12. package/ai/knowledge-base/components/metadata/components-announcer.json +215 -0
  13. package/ai/knowledge-base/components/metadata/components-badge.json +168 -0
  14. package/ai/knowledge-base/components/metadata/components-box.json +348 -0
  15. package/ai/knowledge-base/components/metadata/components-breadcrumbs.json +75 -0
  16. package/ai/knowledge-base/components/metadata/components-button.json +187 -0
  17. package/ai/knowledge-base/components/metadata/components-checkbox.json +161 -0
  18. package/ai/knowledge-base/components/metadata/components-chip.json +266 -0
  19. package/ai/knowledge-base/components/metadata/components-currencyinput.json +136 -0
  20. package/ai/knowledge-base/components/metadata/components-datepicker.json +87 -0
  21. package/ai/knowledge-base/components/metadata/components-dropdown.json +282 -0
  22. package/ai/knowledge-base/components/metadata/components-grid.json +92 -0
  23. package/ai/knowledge-base/components/metadata/components-input.json +432 -0
  24. package/ai/knowledge-base/components/metadata/components-pagination.json +111 -0
  25. package/ai/knowledge-base/components/metadata/components-popover.json +63 -0
  26. package/ai/knowledge-base/components/metadata/components-radiobutton.json +170 -0
  27. package/ai/knowledge-base/components/metadata/components-rowitem.json +281 -0
  28. package/ai/knowledge-base/components/metadata/components-shapeicon.json +139 -0
  29. package/ai/knowledge-base/components/metadata/components-slider.json +177 -0
  30. package/ai/knowledge-base/components/metadata/components-snack.json +181 -0
  31. package/ai/knowledge-base/components/metadata/components-tabs.json +169 -0
  32. package/ai/knowledge-base/components/metadata/components-textarea.json +285 -0
  33. package/ai/knowledge-base/components/metadata/components-textlabel.json +129 -0
  34. package/ai/knowledge-base/components/metadata/components-toggleswitch.json +134 -0
  35. package/ai/knowledge-base/components/metadata/components-tooltip.json +291 -0
  36. package/ai/knowledge-base/components/metadata/patterns-drawer.json +310 -0
  37. package/ai/knowledge-base/components/metadata/patterns-emptystate.json +106 -0
  38. package/ai/knowledge-base/components/metadata/patterns-inputgroup.json +105 -0
  39. package/ai/knowledge-base/components/metadata/patterns-legacydialog.json +177 -0
  40. package/ai/knowledge-base/components/metadata/patterns-legacypopup.json +236 -0
  41. package/ai/knowledge-base/components/metadata/patterns-multisearchdropdown.json +249 -0
  42. package/ai/knowledge-base/components/metadata/patterns-popup.json +268 -0
  43. package/ai/knowledge-base/components/metadata/patterns-rangeinput.json +105 -0
  44. package/ai/knowledge-base/components/metadata/patterns-searchbar.json +150 -0
  45. package/ai/knowledge-base/components/metadata/patterns-searchinput.json +312 -0
  46. package/ai/knowledge-base/components/metadata/patterns-tagcloud.json +244 -0
  47. package/ai/knowledge-base/components/metadata/summaries.json +610 -0
  48. package/ai/knowledge-base/design-tokens/tokens.json +483 -0
  49. package/ai/knowledge-base/patterns/documentation.json +131 -0
  50. package/ai/knowledge-base/prompts/common-system-prompt.md +592 -0
  51. package/ai/knowledge-base/prompts/figma-system-prompt.md +396 -0
  52. package/ai/knowledge-base/search-index/icons/asset-icons.json +1 -0
  53. package/ai/knowledge-base/search-index/icons/collection.json +5 -0
  54. package/ai/knowledge-base/search-index/icons/system-icons.json +1 -0
  55. package/ai/knowledge-base/search-index/search-index.json +899 -0
  56. package/ai/knowledge-base/validation-rules/component-rules.json +658 -0
  57. package/ai/skill/SKILL.md +103 -0
  58. package/dist/clad-ui.es.js +25 -25
  59. package/package.json +8 -2
@@ -0,0 +1,658 @@
1
+ {
2
+ "Axis": {
3
+ "component": "Axis",
4
+ "category": "charts",
5
+ "status": "stable",
6
+ "rules": {
7
+ "required": [
8
+ "children"
9
+ ],
10
+ "accessibility": [],
11
+ "bestPractices": [
12
+ "Follow the design system spacing guidelines",
13
+ "Use semantic design tokens instead of hardcoded values"
14
+ ]
15
+ }
16
+ },
17
+ "BarChart": {
18
+ "component": "BarChart",
19
+ "category": "charts",
20
+ "status": "stable",
21
+ "rules": {
22
+ "required": [
23
+ "children"
24
+ ],
25
+ "accessibility": [],
26
+ "bestPractices": [
27
+ "Follow the design system spacing guidelines",
28
+ "Use semantic design tokens instead of hardcoded values"
29
+ ]
30
+ }
31
+ },
32
+ "BaseChart.tsx": {
33
+ "component": "BaseChart.tsx",
34
+ "category": "charts",
35
+ "status": "stable",
36
+ "rules": {
37
+ "required": [
38
+ "children"
39
+ ],
40
+ "accessibility": [],
41
+ "bestPractices": [
42
+ "Follow the design system spacing guidelines",
43
+ "Use semantic design tokens instead of hardcoded values"
44
+ ]
45
+ }
46
+ },
47
+ "ChartShared": {
48
+ "component": "ChartShared",
49
+ "category": "charts",
50
+ "status": "stable",
51
+ "rules": {
52
+ "required": [
53
+ "children"
54
+ ],
55
+ "accessibility": [],
56
+ "bestPractices": [
57
+ "Follow the design system spacing guidelines",
58
+ "Use semantic design tokens instead of hardcoded values"
59
+ ]
60
+ }
61
+ },
62
+ "LineChart": {
63
+ "component": "LineChart",
64
+ "category": "charts",
65
+ "status": "stable",
66
+ "rules": {
67
+ "required": [
68
+ "children"
69
+ ],
70
+ "accessibility": [],
71
+ "bestPractices": [
72
+ "Follow the design system spacing guidelines",
73
+ "Use semantic design tokens instead of hardcoded values"
74
+ ]
75
+ }
76
+ },
77
+ "PieChart": {
78
+ "component": "PieChart",
79
+ "category": "charts",
80
+ "status": "stable",
81
+ "rules": {
82
+ "required": [
83
+ "children"
84
+ ],
85
+ "accessibility": [],
86
+ "bestPractices": [
87
+ "Follow the design system spacing guidelines",
88
+ "Use semantic design tokens instead of hardcoded values"
89
+ ]
90
+ }
91
+ },
92
+ "Announcer": {
93
+ "component": "Announcer",
94
+ "category": "components",
95
+ "status": "stable",
96
+ "rules": {
97
+ "required": [
98
+ "children"
99
+ ],
100
+ "accessibility": [],
101
+ "bestPractices": [
102
+ "Follow the design system spacing guidelines",
103
+ "Use semantic design tokens instead of hardcoded values"
104
+ ]
105
+ }
106
+ },
107
+ "Badge": {
108
+ "component": "Badge",
109
+ "category": "components",
110
+ "status": "stable",
111
+ "rules": {
112
+ "required": [
113
+ "children"
114
+ ],
115
+ "accessibility": [],
116
+ "bestPractices": [
117
+ "Follow the design system spacing guidelines",
118
+ "Use semantic design tokens instead of hardcoded values"
119
+ ]
120
+ }
121
+ },
122
+ "Box": {
123
+ "component": "Box",
124
+ "category": "components",
125
+ "status": "stable",
126
+ "rules": {
127
+ "required": [
128
+ "children"
129
+ ],
130
+ "accessibility": [],
131
+ "bestPractices": [
132
+ "Follow the design system spacing guidelines",
133
+ "Use semantic design tokens instead of hardcoded values"
134
+ ]
135
+ }
136
+ },
137
+ "Breadcrumbs": {
138
+ "component": "Breadcrumbs",
139
+ "category": "components",
140
+ "status": "stable",
141
+ "rules": {
142
+ "required": [
143
+ "children"
144
+ ],
145
+ "accessibility": [],
146
+ "bestPractices": [
147
+ "Follow the design system spacing guidelines",
148
+ "Use semantic design tokens instead of hardcoded values"
149
+ ]
150
+ }
151
+ },
152
+ "Button": {
153
+ "component": "Button",
154
+ "category": "components",
155
+ "status": "stable",
156
+ "rules": {
157
+ "required": [
158
+ "children"
159
+ ],
160
+ "accessibility": [
161
+ "Provide accessible label for icon-only buttons",
162
+ "Use semantic button element or proper ARIA role"
163
+ ],
164
+ "bestPractices": [
165
+ "Use appropriate variant for the action importance",
166
+ "Consider loading state for async actions",
167
+ "Follow the design system spacing guidelines",
168
+ "Use semantic design tokens instead of hardcoded values"
169
+ ]
170
+ }
171
+ },
172
+ "Checkbox": {
173
+ "component": "Checkbox",
174
+ "category": "components",
175
+ "status": "stable",
176
+ "rules": {
177
+ "required": [
178
+ "children"
179
+ ],
180
+ "accessibility": [],
181
+ "bestPractices": [
182
+ "Follow the design system spacing guidelines",
183
+ "Use semantic design tokens instead of hardcoded values"
184
+ ]
185
+ }
186
+ },
187
+ "Chip": {
188
+ "component": "Chip",
189
+ "category": "components",
190
+ "status": "stable",
191
+ "rules": {
192
+ "required": [
193
+ "children"
194
+ ],
195
+ "accessibility": [],
196
+ "bestPractices": [
197
+ "Follow the design system spacing guidelines",
198
+ "Use semantic design tokens instead of hardcoded values"
199
+ ]
200
+ }
201
+ },
202
+ "CurrencyInput": {
203
+ "component": "CurrencyInput",
204
+ "category": "components",
205
+ "status": "stable",
206
+ "rules": {
207
+ "required": [
208
+ "children"
209
+ ],
210
+ "accessibility": [
211
+ "Associate label with input field",
212
+ "Provide error messages when validation fails"
213
+ ],
214
+ "bestPractices": [
215
+ "Provide clear placeholder text",
216
+ "Use appropriate input type",
217
+ "Follow the design system spacing guidelines",
218
+ "Use semantic design tokens instead of hardcoded values"
219
+ ]
220
+ }
221
+ },
222
+ "DatePicker": {
223
+ "component": "DatePicker",
224
+ "category": "components",
225
+ "status": "stable",
226
+ "rules": {
227
+ "required": [
228
+ "children"
229
+ ],
230
+ "accessibility": [],
231
+ "bestPractices": [
232
+ "Follow the design system spacing guidelines",
233
+ "Use semantic design tokens instead of hardcoded values"
234
+ ]
235
+ }
236
+ },
237
+ "Dropdown": {
238
+ "component": "Dropdown",
239
+ "category": "components",
240
+ "status": "stable",
241
+ "rules": {
242
+ "required": [
243
+ "children"
244
+ ],
245
+ "accessibility": [],
246
+ "bestPractices": [
247
+ "Follow the design system spacing guidelines",
248
+ "Use semantic design tokens instead of hardcoded values"
249
+ ]
250
+ }
251
+ },
252
+ "Grid": {
253
+ "component": "Grid",
254
+ "category": "components",
255
+ "status": "stable",
256
+ "rules": {
257
+ "required": [
258
+ "children"
259
+ ],
260
+ "accessibility": [],
261
+ "bestPractices": [
262
+ "Follow the design system spacing guidelines",
263
+ "Use semantic design tokens instead of hardcoded values"
264
+ ]
265
+ }
266
+ },
267
+ "Input": {
268
+ "component": "Input",
269
+ "category": "components",
270
+ "status": "stable",
271
+ "rules": {
272
+ "required": [
273
+ "children"
274
+ ],
275
+ "accessibility": [
276
+ "Associate label with input field",
277
+ "Provide error messages when validation fails"
278
+ ],
279
+ "bestPractices": [
280
+ "Provide clear placeholder text",
281
+ "Use appropriate input type",
282
+ "Follow the design system spacing guidelines",
283
+ "Use semantic design tokens instead of hardcoded values"
284
+ ]
285
+ }
286
+ },
287
+ "Pagination": {
288
+ "component": "Pagination",
289
+ "category": "components",
290
+ "status": "stable",
291
+ "rules": {
292
+ "required": [
293
+ "children"
294
+ ],
295
+ "accessibility": [],
296
+ "bestPractices": [
297
+ "Follow the design system spacing guidelines",
298
+ "Use semantic design tokens instead of hardcoded values"
299
+ ]
300
+ }
301
+ },
302
+ "Popover": {
303
+ "component": "Popover",
304
+ "category": "components",
305
+ "status": "stable",
306
+ "rules": {
307
+ "required": [
308
+ "children"
309
+ ],
310
+ "accessibility": [],
311
+ "bestPractices": [
312
+ "Follow the design system spacing guidelines",
313
+ "Use semantic design tokens instead of hardcoded values"
314
+ ]
315
+ }
316
+ },
317
+ "RadioButton": {
318
+ "component": "RadioButton",
319
+ "category": "components",
320
+ "status": "stable",
321
+ "rules": {
322
+ "required": [
323
+ "children"
324
+ ],
325
+ "accessibility": [
326
+ "Provide accessible label for icon-only buttons",
327
+ "Use semantic button element or proper ARIA role"
328
+ ],
329
+ "bestPractices": [
330
+ "Use appropriate variant for the action importance",
331
+ "Consider loading state for async actions",
332
+ "Follow the design system spacing guidelines",
333
+ "Use semantic design tokens instead of hardcoded values"
334
+ ]
335
+ }
336
+ },
337
+ "RowItem": {
338
+ "component": "RowItem",
339
+ "category": "components",
340
+ "status": "stable",
341
+ "rules": {
342
+ "required": [
343
+ "children"
344
+ ],
345
+ "accessibility": [],
346
+ "bestPractices": [
347
+ "Follow the design system spacing guidelines",
348
+ "Use semantic design tokens instead of hardcoded values"
349
+ ]
350
+ }
351
+ },
352
+ "ShapeIcon": {
353
+ "component": "ShapeIcon",
354
+ "category": "components",
355
+ "status": "stable",
356
+ "rules": {
357
+ "required": [
358
+ "children"
359
+ ],
360
+ "accessibility": [],
361
+ "bestPractices": [
362
+ "Follow the design system spacing guidelines",
363
+ "Use semantic design tokens instead of hardcoded values"
364
+ ]
365
+ }
366
+ },
367
+ "Slider": {
368
+ "component": "Slider",
369
+ "category": "components",
370
+ "status": "stable",
371
+ "rules": {
372
+ "required": [
373
+ "children"
374
+ ],
375
+ "accessibility": [],
376
+ "bestPractices": [
377
+ "Follow the design system spacing guidelines",
378
+ "Use semantic design tokens instead of hardcoded values"
379
+ ]
380
+ }
381
+ },
382
+ "Snack": {
383
+ "component": "Snack",
384
+ "category": "components",
385
+ "status": "stable",
386
+ "rules": {
387
+ "required": [
388
+ "children"
389
+ ],
390
+ "accessibility": [],
391
+ "bestPractices": [
392
+ "Follow the design system spacing guidelines",
393
+ "Use semantic design tokens instead of hardcoded values"
394
+ ]
395
+ }
396
+ },
397
+ "Tabs": {
398
+ "component": "Tabs",
399
+ "category": "components",
400
+ "status": "stable",
401
+ "rules": {
402
+ "required": [
403
+ "children"
404
+ ],
405
+ "accessibility": [],
406
+ "bestPractices": [
407
+ "Follow the design system spacing guidelines",
408
+ "Use semantic design tokens instead of hardcoded values"
409
+ ]
410
+ }
411
+ },
412
+ "TextArea": {
413
+ "component": "TextArea",
414
+ "category": "components",
415
+ "status": "stable",
416
+ "rules": {
417
+ "required": [
418
+ "children"
419
+ ],
420
+ "accessibility": [],
421
+ "bestPractices": [
422
+ "Follow the design system spacing guidelines",
423
+ "Use semantic design tokens instead of hardcoded values"
424
+ ]
425
+ }
426
+ },
427
+ "TextLabel": {
428
+ "component": "TextLabel",
429
+ "category": "components",
430
+ "status": "stable",
431
+ "rules": {
432
+ "required": [
433
+ "children"
434
+ ],
435
+ "accessibility": [],
436
+ "bestPractices": [
437
+ "Follow the design system spacing guidelines",
438
+ "Use semantic design tokens instead of hardcoded values"
439
+ ]
440
+ }
441
+ },
442
+ "ToggleSwitch": {
443
+ "component": "ToggleSwitch",
444
+ "category": "components",
445
+ "status": "stable",
446
+ "rules": {
447
+ "required": [
448
+ "children"
449
+ ],
450
+ "accessibility": [],
451
+ "bestPractices": [
452
+ "Follow the design system spacing guidelines",
453
+ "Use semantic design tokens instead of hardcoded values"
454
+ ]
455
+ }
456
+ },
457
+ "Tooltip": {
458
+ "component": "Tooltip",
459
+ "category": "components",
460
+ "status": "stable",
461
+ "rules": {
462
+ "required": [
463
+ "children"
464
+ ],
465
+ "accessibility": [],
466
+ "bestPractices": [
467
+ "Follow the design system spacing guidelines",
468
+ "Use semantic design tokens instead of hardcoded values"
469
+ ]
470
+ }
471
+ },
472
+ "Drawer": {
473
+ "component": "Drawer",
474
+ "category": "patterns",
475
+ "status": "stable",
476
+ "rules": {
477
+ "required": [
478
+ "children"
479
+ ],
480
+ "accessibility": [],
481
+ "bestPractices": [
482
+ "Follow the design system spacing guidelines",
483
+ "Use semantic design tokens instead of hardcoded values"
484
+ ]
485
+ }
486
+ },
487
+ "EmptyState": {
488
+ "component": "EmptyState",
489
+ "category": "patterns",
490
+ "status": "stable",
491
+ "rules": {
492
+ "required": [
493
+ "children"
494
+ ],
495
+ "accessibility": [],
496
+ "bestPractices": [
497
+ "Follow the design system spacing guidelines",
498
+ "Use semantic design tokens instead of hardcoded values"
499
+ ]
500
+ }
501
+ },
502
+ "InputGroup": {
503
+ "component": "InputGroup",
504
+ "category": "patterns",
505
+ "status": "stable",
506
+ "rules": {
507
+ "required": [
508
+ "children"
509
+ ],
510
+ "accessibility": [
511
+ "Associate label with input field",
512
+ "Provide error messages when validation fails"
513
+ ],
514
+ "bestPractices": [
515
+ "Provide clear placeholder text",
516
+ "Use appropriate input type",
517
+ "Follow the design system spacing guidelines",
518
+ "Use semantic design tokens instead of hardcoded values"
519
+ ]
520
+ }
521
+ },
522
+ "LegacyDialog": {
523
+ "component": "LegacyDialog",
524
+ "category": "patterns",
525
+ "status": "stable",
526
+ "rules": {
527
+ "required": [
528
+ "children"
529
+ ],
530
+ "accessibility": [],
531
+ "bestPractices": [
532
+ "Follow the design system spacing guidelines",
533
+ "Use semantic design tokens instead of hardcoded values"
534
+ ]
535
+ }
536
+ },
537
+ "LegacyPopup": {
538
+ "component": "LegacyPopup",
539
+ "category": "patterns",
540
+ "status": "stable",
541
+ "rules": {
542
+ "required": [
543
+ "children"
544
+ ],
545
+ "accessibility": [
546
+ "Manage focus within modal",
547
+ "Provide escape key functionality"
548
+ ],
549
+ "bestPractices": [
550
+ "Follow the design system spacing guidelines",
551
+ "Use semantic design tokens instead of hardcoded values"
552
+ ]
553
+ }
554
+ },
555
+ "MultiSearchDropdown": {
556
+ "component": "MultiSearchDropdown",
557
+ "category": "patterns",
558
+ "status": "stable",
559
+ "rules": {
560
+ "required": [
561
+ "children"
562
+ ],
563
+ "accessibility": [],
564
+ "bestPractices": [
565
+ "Follow the design system spacing guidelines",
566
+ "Use semantic design tokens instead of hardcoded values"
567
+ ]
568
+ }
569
+ },
570
+ "Popup": {
571
+ "component": "Popup",
572
+ "category": "patterns",
573
+ "status": "stable",
574
+ "rules": {
575
+ "required": [
576
+ "children"
577
+ ],
578
+ "accessibility": [
579
+ "Manage focus within modal",
580
+ "Provide escape key functionality"
581
+ ],
582
+ "bestPractices": [
583
+ "Follow the design system spacing guidelines",
584
+ "Use semantic design tokens instead of hardcoded values"
585
+ ]
586
+ }
587
+ },
588
+ "RangeInput": {
589
+ "component": "RangeInput",
590
+ "category": "patterns",
591
+ "status": "stable",
592
+ "rules": {
593
+ "required": [
594
+ "children"
595
+ ],
596
+ "accessibility": [
597
+ "Associate label with input field",
598
+ "Provide error messages when validation fails"
599
+ ],
600
+ "bestPractices": [
601
+ "Provide clear placeholder text",
602
+ "Use appropriate input type",
603
+ "Follow the design system spacing guidelines",
604
+ "Use semantic design tokens instead of hardcoded values"
605
+ ]
606
+ }
607
+ },
608
+ "Searchbar": {
609
+ "component": "Searchbar",
610
+ "category": "patterns",
611
+ "status": "stable",
612
+ "rules": {
613
+ "required": [
614
+ "children"
615
+ ],
616
+ "accessibility": [],
617
+ "bestPractices": [
618
+ "Follow the design system spacing guidelines",
619
+ "Use semantic design tokens instead of hardcoded values"
620
+ ]
621
+ }
622
+ },
623
+ "SearchInput": {
624
+ "component": "SearchInput",
625
+ "category": "patterns",
626
+ "status": "stable",
627
+ "rules": {
628
+ "required": [
629
+ "children"
630
+ ],
631
+ "accessibility": [
632
+ "Associate label with input field",
633
+ "Provide error messages when validation fails"
634
+ ],
635
+ "bestPractices": [
636
+ "Provide clear placeholder text",
637
+ "Use appropriate input type",
638
+ "Follow the design system spacing guidelines",
639
+ "Use semantic design tokens instead of hardcoded values"
640
+ ]
641
+ }
642
+ },
643
+ "TagCloud": {
644
+ "component": "TagCloud",
645
+ "category": "patterns",
646
+ "status": "stable",
647
+ "rules": {
648
+ "required": [
649
+ "children"
650
+ ],
651
+ "accessibility": [],
652
+ "bestPractices": [
653
+ "Follow the design system spacing guidelines",
654
+ "Use semantic design tokens instead of hardcoded values"
655
+ ]
656
+ }
657
+ }
658
+ }