@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,432 @@
1
+ {
2
+ "metadata": {
3
+ "id": "components-input",
4
+ "name": "Input",
5
+ "category": "components",
6
+ "status": "stable",
7
+ "description": "Input name",
8
+ "hasStories": true,
9
+ "version": "2.0.0",
10
+ "filePath": "packages/clad-ui/components/Input/Input.tsx",
11
+ "storyPath": "packages/clad-ui/components/Input/Input.stories.tsx",
12
+ "stability": "stable"
13
+ },
14
+ "usage": {
15
+ "importPath": "import { Input } from 'clad-ui';",
16
+ "basicExample": "<Input>Content</Input>",
17
+ "commonPatterns": []
18
+ },
19
+ "props": [
20
+ {
21
+ "name": "name",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": ""
25
+ },
26
+ {
27
+ "name": "type",
28
+ "type": "\"email\" | \"number\" | \"password\" | \"tel\" | \"text\"",
29
+ "required": false,
30
+ "description": "",
31
+ "options": [
32
+ "email",
33
+ "number",
34
+ "password",
35
+ "tel",
36
+ "text"
37
+ ]
38
+ },
39
+ {
40
+ "name": "label",
41
+ "type": "string",
42
+ "required": false,
43
+ "description": ""
44
+ },
45
+ {
46
+ "name": "inputRef",
47
+ "type": "object | object",
48
+ "required": false,
49
+ "description": "",
50
+ "options": []
51
+ },
52
+ {
53
+ "name": "value",
54
+ "type": "number | string",
55
+ "required": false,
56
+ "description": "",
57
+ "options": []
58
+ },
59
+ {
60
+ "name": "onChange",
61
+ "type": "object",
62
+ "required": false,
63
+ "description": ""
64
+ },
65
+ {
66
+ "name": "onBlur",
67
+ "type": "object",
68
+ "required": false,
69
+ "description": ""
70
+ },
71
+ {
72
+ "name": "onKeyDown",
73
+ "type": "object",
74
+ "required": false,
75
+ "description": ""
76
+ },
77
+ {
78
+ "name": "onKeyUp",
79
+ "type": "object",
80
+ "required": false,
81
+ "description": ""
82
+ },
83
+ {
84
+ "name": "onFocus",
85
+ "type": "object",
86
+ "required": false,
87
+ "description": ""
88
+ },
89
+ {
90
+ "name": "onClear",
91
+ "type": "object",
92
+ "required": false,
93
+ "description": ""
94
+ },
95
+ {
96
+ "name": "disabled",
97
+ "type": "boolean",
98
+ "required": false,
99
+ "description": ""
100
+ },
101
+ {
102
+ "name": "required",
103
+ "type": "boolean",
104
+ "required": false,
105
+ "description": ""
106
+ },
107
+ {
108
+ "name": "id",
109
+ "type": "string",
110
+ "required": false,
111
+ "description": ""
112
+ },
113
+ {
114
+ "name": "allowClear",
115
+ "type": "boolean",
116
+ "required": false,
117
+ "description": ""
118
+ },
119
+ {
120
+ "name": "status",
121
+ "type": "\"default\" | \"error\" | \"success\"",
122
+ "required": false,
123
+ "description": "",
124
+ "options": [
125
+ "default",
126
+ "error",
127
+ "success"
128
+ ]
129
+ },
130
+ {
131
+ "name": "helptext",
132
+ "type": "string",
133
+ "required": false,
134
+ "description": ""
135
+ },
136
+ {
137
+ "name": "helptextClassName",
138
+ "type": "string",
139
+ "required": false,
140
+ "description": ""
141
+ },
142
+ {
143
+ "name": "showPassword",
144
+ "type": "boolean",
145
+ "required": false,
146
+ "description": ""
147
+ },
148
+ {
149
+ "name": "tooltip",
150
+ "type": "string",
151
+ "required": false,
152
+ "description": ""
153
+ },
154
+ {
155
+ "name": "inputMode",
156
+ "type": "\"decimal\" | \"email\" | \"none\" | \"numeric\" | \"search\" | \"tel\" | \"text\" | \"url\"",
157
+ "required": false,
158
+ "description": "",
159
+ "options": [
160
+ "decimal",
161
+ "email",
162
+ "none",
163
+ "numeric",
164
+ "search",
165
+ "tel",
166
+ "text",
167
+ "url"
168
+ ]
169
+ },
170
+ {
171
+ "name": "width",
172
+ "type": "Sizes",
173
+ "required": false,
174
+ "description": ""
175
+ },
176
+ {
177
+ "name": "characterLimit",
178
+ "type": "number",
179
+ "required": false,
180
+ "description": ""
181
+ },
182
+ {
183
+ "name": "showValidationIcon",
184
+ "type": "boolean",
185
+ "required": false,
186
+ "description": ""
187
+ },
188
+ {
189
+ "name": "icon",
190
+ "type": "object",
191
+ "required": false,
192
+ "description": ""
193
+ },
194
+ {
195
+ "name": "placeholder",
196
+ "type": "string",
197
+ "required": false,
198
+ "description": ""
199
+ }
200
+ ],
201
+ "variants": [
202
+ {
203
+ "name": "ValueBinding",
204
+ "description": "Currently, Input only support controlled HTML &lt;input /&gt;",
205
+ "props": {},
206
+ "example": "<Input>Content</Input>"
207
+ },
208
+ {
209
+ "name": "ValueBinding",
210
+ "description": "Currently, Input only support controlled HTML &lt;input /&gt;",
211
+ "props": {},
212
+ "example": "<Input>Content</Input>"
213
+ },
214
+ {
215
+ "name": "WithHelptext",
216
+ "description": "Help text is the small caption below the input box",
217
+ "props": {},
218
+ "example": "<Input>Content</Input>"
219
+ },
220
+ {
221
+ "name": "WithHelptext",
222
+ "description": "Help text is the small caption below the input box",
223
+ "props": {},
224
+ "example": "<Input>Content</Input>"
225
+ },
226
+ {
227
+ "name": "WithIcon",
228
+ "description": "Setting `icon` will let Input display an icon on the left",
229
+ "props": {},
230
+ "example": "<Input>Content</Input>"
231
+ },
232
+ {
233
+ "name": "WithIcon",
234
+ "description": "Setting `icon` will let Input display an icon on the left",
235
+ "props": {},
236
+ "example": "<Input>Content</Input>"
237
+ },
238
+ {
239
+ "name": "NoLabel",
240
+ "description": "Input without label",
241
+ "props": {},
242
+ "example": "<Input>Content</Input>"
243
+ },
244
+ {
245
+ "name": "NoLabel",
246
+ "description": "Input without label",
247
+ "props": {},
248
+ "example": "<Input>Content</Input>"
249
+ },
250
+ {
251
+ "name": "KeyboardEvent",
252
+ "description": "Keyboard event",
253
+ "props": {},
254
+ "example": "<Input>Content</Input>"
255
+ },
256
+ {
257
+ "name": "KeyboardEvent",
258
+ "description": "Keyboard event",
259
+ "props": {},
260
+ "example": "<Input>Content</Input>"
261
+ },
262
+ {
263
+ "name": "AllowClear",
264
+ "description": "`allowClear` enable a clear icon when input has value",
265
+ "props": {},
266
+ "example": "<Input>Content</Input>"
267
+ },
268
+ {
269
+ "name": "AllowClear",
270
+ "description": "`allowClear` enable a clear icon when input has value",
271
+ "props": {},
272
+ "example": "<Input>Content</Input>"
273
+ },
274
+ {
275
+ "name": "WithTooltip",
276
+ "description": "Setting `tooltip` will let Input display an (i) icon with the tooltip texts appear when hover (desktop) or tap (touch device)",
277
+ "props": {},
278
+ "example": "<Input>Content</Input>"
279
+ },
280
+ {
281
+ "name": "WithTooltip",
282
+ "description": "Setting `tooltip` will let Input display an (i) icon with the tooltip texts appear when hover (desktop) or tap (touch device)",
283
+ "props": {},
284
+ "example": "<Input>Content</Input>"
285
+ },
286
+ {
287
+ "name": "ClearAndTooltip",
288
+ "description": "ClearAndTooltip variant",
289
+ "props": {},
290
+ "example": "<Input>Content</Input>"
291
+ },
292
+ {
293
+ "name": "ClearAndTooltip",
294
+ "description": "ClearAndTooltip variant",
295
+ "props": {},
296
+ "example": "<Input>Content</Input>"
297
+ },
298
+ {
299
+ "name": "ShowPassword",
300
+ "description": "Enable `showPassword` will let Input display a Hide/Show toggle button for type=password input",
301
+ "props": {},
302
+ "example": "<Input>Content</Input>"
303
+ },
304
+ {
305
+ "name": "ShowPassword",
306
+ "description": "Enable `showPassword` will let Input display a Hide/Show toggle button for type=password input",
307
+ "props": {},
308
+ "example": "<Input>Content</Input>"
309
+ },
310
+ {
311
+ "name": "Required",
312
+ "description": "Enable `required` will let Input display a red * on the label but validation is not forced for now",
313
+ "props": {},
314
+ "example": "<Input>Content</Input>"
315
+ },
316
+ {
317
+ "name": "Required",
318
+ "description": "Enable `required` will let Input display a red * on the label but validation is not forced for now",
319
+ "props": {},
320
+ "example": "<Input>Content</Input>"
321
+ },
322
+ {
323
+ "name": "ErrorStatus",
324
+ "description": "Set `status=\"error\"` will let Input has red borders and helpText, indicate error status.",
325
+ "props": {},
326
+ "example": "<Input>Content</Input>"
327
+ },
328
+ {
329
+ "name": "ErrorStatus",
330
+ "description": "Set `status=\"error\"` will let Input has red borders and helpText, indicate error status.",
331
+ "props": {},
332
+ "example": "<Input>Content</Input>"
333
+ },
334
+ {
335
+ "name": "SuccessStatus",
336
+ "description": "Set `status=\"success\"` will let Input has success icon",
337
+ "props": {},
338
+ "example": "<Input>Content</Input>"
339
+ },
340
+ {
341
+ "name": "SuccessStatus",
342
+ "description": "Set `status=\"success\"` will let Input has success icon",
343
+ "props": {},
344
+ "example": "<Input>Content</Input>"
345
+ },
346
+ {
347
+ "name": "Disabled",
348
+ "description": "Enable `disabled` will set attribute `disabled` to the HTML input. Effectively, Input is read-only.",
349
+ "props": {},
350
+ "example": "<Input>Content</Input>"
351
+ },
352
+ {
353
+ "name": "Disabled",
354
+ "description": "Enable `disabled` will set attribute `disabled` to the HTML input. Effectively, Input is read-only.",
355
+ "props": {},
356
+ "example": "<Input>Content</Input>"
357
+ },
358
+ {
359
+ "name": "WithCharacterLimit",
360
+ "description": "Use `characterLimit` to limit number of character of Input",
361
+ "props": {},
362
+ "example": "<Input>Content</Input>"
363
+ },
364
+ {
365
+ "name": "WithCharacterLimit",
366
+ "description": "Use `characterLimit` to limit number of character of Input",
367
+ "props": {},
368
+ "example": "<Input>Content</Input>"
369
+ },
370
+ {
371
+ "name": "MultipleInputs",
372
+ "description": "MultipleInputs variant",
373
+ "props": {},
374
+ "example": "<Input>Content</Input>"
375
+ },
376
+ {
377
+ "name": "MultipleInputs",
378
+ "description": "MultipleInputs variant",
379
+ "props": {},
380
+ "example": "<Input>Content</Input>"
381
+ },
382
+ {
383
+ "name": "DebounceExample",
384
+ "description": "DebounceExample variant",
385
+ "props": {},
386
+ "example": "<Input>Content</Input>"
387
+ },
388
+ {
389
+ "name": "DebounceExample",
390
+ "description": "DebounceExample variant",
391
+ "props": {},
392
+ "example": "<Input>Content</Input>"
393
+ },
394
+ {
395
+ "name": "WithPlaceholder",
396
+ "description": "Set Input placeholder.",
397
+ "props": {},
398
+ "example": "<Input>Content</Input>"
399
+ },
400
+ {
401
+ "name": "WithPlaceholder",
402
+ "description": "Set Input placeholder.",
403
+ "props": {},
404
+ "example": "<Input>Content</Input>"
405
+ },
406
+ {
407
+ "name": "CallbackRef",
408
+ "description": "Demonstrates using a callback ref to expose the internal input element for programmatic focus and other imperative actions.",
409
+ "props": {},
410
+ "example": "<Input>Content</Input>"
411
+ },
412
+ {
413
+ "name": "CallbackRef",
414
+ "description": "Demonstrates using a callback ref to expose the internal input element for programmatic focus and other imperative actions.",
415
+ "props": {},
416
+ "example": "<Input>Content</Input>"
417
+ }
418
+ ],
419
+ "accessibility": {
420
+ "ariaLabels": [],
421
+ "keyboardNavigation": [],
422
+ "screenReaderSupport": ""
423
+ },
424
+ "relatedComponents": [],
425
+ "designTokens": {
426
+ "colors": [
427
+ "iconTertiary"
428
+ ],
429
+ "spacing": [],
430
+ "typography": []
431
+ }
432
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "metadata": {
3
+ "id": "components-pagination",
4
+ "name": "Pagination",
5
+ "category": "components",
6
+ "status": "stable",
7
+ "description": "Page number",
8
+ "hasStories": true,
9
+ "version": "2.0.0",
10
+ "filePath": "packages/clad-ui/components/Pagination/PageItem.tsx",
11
+ "storyPath": "packages/clad-ui/components/Pagination/Pagination.stories.tsx",
12
+ "stability": "stable"
13
+ },
14
+ "usage": {
15
+ "importPath": "import { Pagination } from 'clad-ui';",
16
+ "basicExample": "<Pagination>Content</Pagination>",
17
+ "commonPatterns": []
18
+ },
19
+ "props": [],
20
+ "variants": [
21
+ {
22
+ "name": "Default",
23
+ "description": "Default variant",
24
+ "props": {},
25
+ "example": "<Pagination>Content</Pagination>"
26
+ },
27
+ {
28
+ "name": "Default",
29
+ "description": "Default variant",
30
+ "props": {},
31
+ "example": "<Pagination>Content</Pagination>"
32
+ },
33
+ {
34
+ "name": "RenderPageItemWithNextLink",
35
+ "description": "RenderPageItemWithNextLink variant",
36
+ "props": {},
37
+ "example": "<Pagination>Content</Pagination>"
38
+ },
39
+ {
40
+ "name": "RenderPageItemWithNextLink",
41
+ "description": "RenderPageItemWithNextLink variant",
42
+ "props": {},
43
+ "example": "<Pagination>Content</Pagination>"
44
+ },
45
+ {
46
+ "name": "NextLink",
47
+ "description": "NextLink variant",
48
+ "props": {},
49
+ "example": "<Pagination>Content</Pagination>"
50
+ },
51
+ {
52
+ "name": "ManyPages",
53
+ "description": "ManyPages variant",
54
+ "props": {},
55
+ "example": "<Pagination>Content</Pagination>"
56
+ },
57
+ {
58
+ "name": "ManyPages",
59
+ "description": "ManyPages variant",
60
+ "props": {},
61
+ "example": "<Pagination>Content</Pagination>"
62
+ },
63
+ {
64
+ "name": "FewPages",
65
+ "description": "FewPages variant",
66
+ "props": {},
67
+ "example": "<Pagination>Content</Pagination>"
68
+ },
69
+ {
70
+ "name": "FewPages",
71
+ "description": "FewPages variant",
72
+ "props": {},
73
+ "example": "<Pagination>Content</Pagination>"
74
+ },
75
+ {
76
+ "name": "HideActionButtons",
77
+ "description": "HideActionButtons variant",
78
+ "props": {},
79
+ "example": "<Pagination>Content</Pagination>"
80
+ },
81
+ {
82
+ "name": "HideActionButtons",
83
+ "description": "HideActionButtons variant",
84
+ "props": {},
85
+ "example": "<Pagination>Content</Pagination>"
86
+ },
87
+ {
88
+ "name": "CustomSiblingCount",
89
+ "description": "CustomSiblingCount variant",
90
+ "props": {},
91
+ "example": "<Pagination>Content</Pagination>"
92
+ },
93
+ {
94
+ "name": "CustomSiblingCount",
95
+ "description": "CustomSiblingCount variant",
96
+ "props": {},
97
+ "example": "<Pagination>Content</Pagination>"
98
+ }
99
+ ],
100
+ "accessibility": {
101
+ "ariaLabels": [],
102
+ "keyboardNavigation": [],
103
+ "screenReaderSupport": ""
104
+ },
105
+ "relatedComponents": [],
106
+ "designTokens": {
107
+ "colors": [],
108
+ "spacing": [],
109
+ "typography": []
110
+ }
111
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "metadata": {
3
+ "id": "components-popover",
4
+ "name": "Popover",
5
+ "category": "components",
6
+ "status": "stable",
7
+ "description": " component",
8
+ "hasStories": true,
9
+ "version": "2.0.0",
10
+ "filePath": "packages/clad-ui/components/Popover/Popover.styles.tsx",
11
+ "storyPath": "packages/clad-ui/components/Popover/Popover.stories.tsx",
12
+ "stability": "stable"
13
+ },
14
+ "usage": {
15
+ "importPath": "import { Popover } from 'clad-ui';",
16
+ "basicExample": "<Popover>Content</Popover>",
17
+ "commonPatterns": []
18
+ },
19
+ "props": [],
20
+ "variants": [
21
+ {
22
+ "name": "Menu",
23
+ "description": "Menu variant",
24
+ "props": {},
25
+ "example": "<Popover>Content</Popover>"
26
+ },
27
+ {
28
+ "name": "ShowOnClick",
29
+ "description": "ShowOnClick variant",
30
+ "props": {},
31
+ "example": "<Popover>Content</Popover>"
32
+ },
33
+ {
34
+ "name": "ShowOnClick",
35
+ "description": "ShowOnClick variant",
36
+ "props": {},
37
+ "example": "<Popover>Content</Popover>"
38
+ },
39
+ {
40
+ "name": "ShowOnHover",
41
+ "description": "ShowOnHover variant",
42
+ "props": {},
43
+ "example": "<Popover>Content</Popover>"
44
+ },
45
+ {
46
+ "name": "ShowOnHover",
47
+ "description": "ShowOnHover variant",
48
+ "props": {},
49
+ "example": "<Popover>Content</Popover>"
50
+ }
51
+ ],
52
+ "accessibility": {
53
+ "ariaLabels": [],
54
+ "keyboardNavigation": [],
55
+ "screenReaderSupport": ""
56
+ },
57
+ "relatedComponents": [],
58
+ "designTokens": {
59
+ "colors": [],
60
+ "spacing": [],
61
+ "typography": []
62
+ }
63
+ }