@chotot/clad-ui 3.0.0-next.1 → 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 (79) hide show
  1. package/README.md +43 -1
  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 +1110 -1098
  59. package/dist/components/Chip/Chip.d.ts +1 -1
  60. package/dist/components/Chip/Chip.d.ts.map +1 -1
  61. package/dist/components/Chip/Chip.styles.d.ts.map +1 -1
  62. package/dist/components/Input/Input.styles.d.ts.map +1 -1
  63. package/dist/components/RowItem/RowItem.styles.d.ts.map +1 -1
  64. package/dist/components/Snack/Snack.d.ts +9 -0
  65. package/dist/components/Snack/Snack.d.ts.map +1 -1
  66. package/dist/components/Snack/Snack.styles.d.ts +7 -1
  67. package/dist/components/Snack/Snack.styles.d.ts.map +1 -1
  68. package/dist/components/TextArea/TextArea.styles.d.ts.map +1 -1
  69. package/dist/patterns/Drawer/Drawer.d.ts +19 -10
  70. package/dist/patterns/Drawer/Drawer.d.ts.map +1 -1
  71. package/dist/patterns/Drawer/Drawer.styles.d.ts +1 -1
  72. package/dist/patterns/Drawer/Drawer.styles.d.ts.map +1 -1
  73. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +1 -1
  74. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +1 -1
  75. package/dist/theme-chotot.css +1 -1
  76. package/dist/theme-job.css +1 -1
  77. package/dist/theme-pty.css +1 -1
  78. package/dist/theme-veh.css +1 -1
  79. package/package.json +8 -2
@@ -0,0 +1,285 @@
1
+ {
2
+ "metadata": {
3
+ "id": "components-textarea",
4
+ "name": "TextArea",
5
+ "category": "components",
6
+ "status": "stable",
7
+ "description": "TextArea name",
8
+ "hasStories": true,
9
+ "version": "2.0.0",
10
+ "filePath": "packages/clad-ui/components/TextArea/TextArea.tsx",
11
+ "storyPath": "packages/clad-ui/components/TextArea/TextArea.stories.tsx",
12
+ "stability": "stable"
13
+ },
14
+ "usage": {
15
+ "importPath": "import { TextArea } from 'clad-ui';",
16
+ "basicExample": "<TextArea>Content</TextArea>",
17
+ "commonPatterns": []
18
+ },
19
+ "props": [
20
+ {
21
+ "name": "name",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": ""
25
+ },
26
+ {
27
+ "name": "label",
28
+ "type": "string",
29
+ "required": false,
30
+ "description": ""
31
+ },
32
+ {
33
+ "name": "inputRef",
34
+ "type": "object | object",
35
+ "required": false,
36
+ "description": "",
37
+ "options": []
38
+ },
39
+ {
40
+ "name": "value",
41
+ "type": "string",
42
+ "required": false,
43
+ "description": ""
44
+ },
45
+ {
46
+ "name": "onChange",
47
+ "type": "object",
48
+ "required": false,
49
+ "description": ""
50
+ },
51
+ {
52
+ "name": "onBlur",
53
+ "type": "object",
54
+ "required": false,
55
+ "description": ""
56
+ },
57
+ {
58
+ "name": "onFocus",
59
+ "type": "object",
60
+ "required": false,
61
+ "description": ""
62
+ },
63
+ {
64
+ "name": "disabled",
65
+ "type": "boolean",
66
+ "required": false,
67
+ "description": ""
68
+ },
69
+ {
70
+ "name": "required",
71
+ "type": "boolean",
72
+ "required": false,
73
+ "description": ""
74
+ },
75
+ {
76
+ "name": "id",
77
+ "type": "string",
78
+ "required": false,
79
+ "description": ""
80
+ },
81
+ {
82
+ "name": "status",
83
+ "type": "\"default\" | \"error\"",
84
+ "required": false,
85
+ "description": "",
86
+ "options": [
87
+ "default",
88
+ "error"
89
+ ]
90
+ },
91
+ {
92
+ "name": "helptext",
93
+ "type": "string",
94
+ "required": false,
95
+ "description": ""
96
+ },
97
+ {
98
+ "name": "helptextClassName",
99
+ "type": "string",
100
+ "required": false,
101
+ "description": ""
102
+ },
103
+ {
104
+ "name": "resize",
105
+ "type": "\"both\" | \"horizontal\" | \"none\" | \"vertical\"",
106
+ "required": false,
107
+ "description": "",
108
+ "options": [
109
+ "both",
110
+ "horizontal",
111
+ "none",
112
+ "vertical"
113
+ ]
114
+ },
115
+ {
116
+ "name": "autoSize",
117
+ "type": "boolean",
118
+ "required": false,
119
+ "description": ""
120
+ },
121
+ {
122
+ "name": "lines",
123
+ "type": "number",
124
+ "required": false,
125
+ "description": ""
126
+ },
127
+ {
128
+ "name": "placeholder",
129
+ "type": "string",
130
+ "required": false,
131
+ "description": ""
132
+ },
133
+ {
134
+ "name": "inputMode",
135
+ "type": "\"decimal\" | \"email\" | \"none\" | \"numeric\" | \"search\" | \"tel\" | \"text\" | \"url\"",
136
+ "required": false,
137
+ "description": "",
138
+ "options": [
139
+ "decimal",
140
+ "email",
141
+ "none",
142
+ "numeric",
143
+ "search",
144
+ "tel",
145
+ "text",
146
+ "url"
147
+ ]
148
+ },
149
+ {
150
+ "name": "width",
151
+ "type": "Sizes",
152
+ "required": false,
153
+ "description": ""
154
+ },
155
+ {
156
+ "name": "characterLimit",
157
+ "type": "number",
158
+ "required": false,
159
+ "description": ""
160
+ },
161
+ {
162
+ "name": "isResizeableOnFocus",
163
+ "type": "boolean",
164
+ "required": false,
165
+ "description": ""
166
+ },
167
+ {
168
+ "name": "allowClear",
169
+ "type": "boolean",
170
+ "required": false,
171
+ "description": ""
172
+ }
173
+ ],
174
+ "variants": [
175
+ {
176
+ "name": "ValueBinding",
177
+ "description": "Currently, TextArea only support controlled HTML &lt;textarea /&gt;",
178
+ "props": {},
179
+ "example": "<TextArea>Content</TextArea>"
180
+ },
181
+ {
182
+ "name": "ValueBinding",
183
+ "description": "Currently, TextArea only support controlled HTML &lt;textarea /&gt;",
184
+ "props": {},
185
+ "example": "<TextArea>Content</TextArea>"
186
+ },
187
+ {
188
+ "name": "WithLines",
189
+ "description": "Set TextArea number of lines (before being resized).",
190
+ "props": {},
191
+ "example": "<TextArea>Content</TextArea>"
192
+ },
193
+ {
194
+ "name": "WithLines",
195
+ "description": "Set TextArea number of lines (before being resized).",
196
+ "props": {},
197
+ "example": "<TextArea>Content</TextArea>"
198
+ },
199
+ {
200
+ "name": "WithResize",
201
+ "description": "Allow user to resize TextArea vertically or horizontally or both.",
202
+ "props": {},
203
+ "example": "<TextArea>Content</TextArea>"
204
+ },
205
+ {
206
+ "name": "WithResize",
207
+ "description": "Allow user to resize TextArea vertically or horizontally or both.",
208
+ "props": {},
209
+ "example": "<TextArea>Content</TextArea>"
210
+ },
211
+ {
212
+ "name": "Required",
213
+ "description": "Enable `required` will let TextArea display a red * on the label but validation is not forced for now",
214
+ "props": {},
215
+ "example": "<TextArea>Content</TextArea>"
216
+ },
217
+ {
218
+ "name": "Required",
219
+ "description": "Enable `required` will let TextArea display a red * on the label but validation is not forced for now",
220
+ "props": {},
221
+ "example": "<TextArea>Content</TextArea>"
222
+ },
223
+ {
224
+ "name": "WithPlaceholder",
225
+ "description": "Set TextArea placeholder (use `\\n` to add line break).",
226
+ "props": {},
227
+ "example": "<TextArea>Content</TextArea>"
228
+ },
229
+ {
230
+ "name": "WithPlaceholder",
231
+ "description": "Set TextArea placeholder (use `\\n` to add line break).",
232
+ "props": {},
233
+ "example": "<TextArea>Content</TextArea>"
234
+ },
235
+ {
236
+ "name": "WithHelptext",
237
+ "description": "Help text is the small caption below the input box",
238
+ "props": {},
239
+ "example": "<TextArea>Content</TextArea>"
240
+ },
241
+ {
242
+ "name": "WithHelptext",
243
+ "description": "Help text is the small caption below the input box",
244
+ "props": {},
245
+ "example": "<TextArea>Content</TextArea>"
246
+ },
247
+ {
248
+ "name": "ErrorStatus",
249
+ "description": "Set `status=\"error\"` will let TextArea has red borders and helptext, indicate error status.",
250
+ "props": {},
251
+ "example": "<TextArea>Content</TextArea>"
252
+ },
253
+ {
254
+ "name": "ErrorStatus",
255
+ "description": "Set `status=\"error\"` will let TextArea has red borders and helptext, indicate error status.",
256
+ "props": {},
257
+ "example": "<TextArea>Content</TextArea>"
258
+ },
259
+ {
260
+ "name": "AllowClear",
261
+ "description": "`allowClear` enable a clear icon when input has value",
262
+ "props": {},
263
+ "example": "<TextArea>Content</TextArea>"
264
+ },
265
+ {
266
+ "name": "AllowClear",
267
+ "description": "`allowClear` enable a clear icon when input has value",
268
+ "props": {},
269
+ "example": "<TextArea>Content</TextArea>"
270
+ }
271
+ ],
272
+ "accessibility": {
273
+ "ariaLabels": [],
274
+ "keyboardNavigation": [],
275
+ "screenReaderSupport": ""
276
+ },
277
+ "relatedComponents": [],
278
+ "designTokens": {
279
+ "colors": [
280
+ "iconTertiary"
281
+ ],
282
+ "spacing": [],
283
+ "typography": []
284
+ }
285
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "metadata": {
3
+ "id": "components-textlabel",
4
+ "name": "TextLabel",
5
+ "category": "components",
6
+ "status": "stable",
7
+ "description": "Size of Text Label",
8
+ "hasStories": true,
9
+ "version": "2.0.0",
10
+ "filePath": "packages/clad-ui/components/TextLabel/TextLabel.tsx",
11
+ "storyPath": "packages/clad-ui/components/TextLabel/TextLabel.stories.tsx",
12
+ "stability": "stable"
13
+ },
14
+ "usage": {
15
+ "importPath": "import { TextLabel } from 'clad-ui';",
16
+ "basicExample": "<TextLabel>Content</TextLabel>",
17
+ "commonPatterns": []
18
+ },
19
+ "props": [
20
+ {
21
+ "name": "size",
22
+ "type": "\"md\" | \"sm\"",
23
+ "required": false,
24
+ "description": "",
25
+ "options": [
26
+ "md",
27
+ "sm"
28
+ ]
29
+ },
30
+ {
31
+ "name": "label",
32
+ "type": "string",
33
+ "required": false,
34
+ "description": ""
35
+ },
36
+ {
37
+ "name": "color",
38
+ "type": "\"info\" | \"success\" | \"error\" | \"warning\" | \"neutral\"",
39
+ "required": false,
40
+ "description": "",
41
+ "options": [
42
+ "info",
43
+ "success",
44
+ "error",
45
+ "warning",
46
+ "neutral"
47
+ ]
48
+ },
49
+ {
50
+ "name": "type",
51
+ "type": "\"text\" | \"status\"",
52
+ "required": false,
53
+ "description": "",
54
+ "options": [
55
+ "text",
56
+ "status"
57
+ ]
58
+ },
59
+ {
60
+ "name": "className",
61
+ "type": "string",
62
+ "required": false,
63
+ "description": ""
64
+ },
65
+ {
66
+ "name": "icon",
67
+ "type": "object",
68
+ "required": false,
69
+ "description": ""
70
+ }
71
+ ],
72
+ "variants": [
73
+ {
74
+ "name": "TypesAndColors",
75
+ "description": "Illustrate the type and color props",
76
+ "props": {},
77
+ "example": "<TextLabel>Content</TextLabel>"
78
+ },
79
+ {
80
+ "name": "TypesAndColors",
81
+ "description": "Illustrate the type and color props",
82
+ "props": {},
83
+ "example": "<TextLabel>Content</TextLabel>"
84
+ },
85
+ {
86
+ "name": "Sizes",
87
+ "description": "Illustrate the size prop",
88
+ "props": {},
89
+ "example": "<TextLabel>Content</TextLabel>"
90
+ },
91
+ {
92
+ "name": "Sizes",
93
+ "description": "Illustrate the size prop",
94
+ "props": {},
95
+ "example": "<TextLabel>Content</TextLabel>"
96
+ }
97
+ ],
98
+ "accessibility": {
99
+ "ariaLabels": [],
100
+ "keyboardNavigation": [],
101
+ "screenReaderSupport": ""
102
+ },
103
+ "relatedComponents": [],
104
+ "designTokens": {
105
+ "colors": [
106
+ "iconInfo",
107
+ "textInfo",
108
+ "backgroundInfoLight",
109
+ "iconTertiary",
110
+ "textTertiary",
111
+ "backgroundSecondary",
112
+ "iconSuccess",
113
+ "textSuccess",
114
+ "backgroundSuccessLight",
115
+ "iconError",
116
+ "textError",
117
+ "backgroundErrorLight",
118
+ "iconWarning",
119
+ "textWarning",
120
+ "backgroundWarningLight",
121
+ "textPrimary"
122
+ ],
123
+ "spacing": [],
124
+ "typography": [
125
+ "xs",
126
+ "xxs"
127
+ ]
128
+ }
129
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "metadata": {
3
+ "id": "components-toggleswitch",
4
+ "name": "ToggleSwitch",
5
+ "category": "components",
6
+ "status": "stable",
7
+ "description": "Checkbox id",
8
+ "hasStories": true,
9
+ "version": "2.0.0",
10
+ "filePath": "packages/clad-ui/components/ToggleSwitch/ToggleSwitch.tsx",
11
+ "storyPath": "packages/clad-ui/components/ToggleSwitch/ToggleSwitch.stories.tsx",
12
+ "stability": "stable"
13
+ },
14
+ "usage": {
15
+ "importPath": "import { ToggleSwitch } from 'clad-ui';",
16
+ "basicExample": "<ToggleSwitch>Content</ToggleSwitch>",
17
+ "commonPatterns": []
18
+ },
19
+ "props": [
20
+ {
21
+ "name": "id",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": ""
25
+ },
26
+ {
27
+ "name": "name",
28
+ "type": "string",
29
+ "required": false,
30
+ "description": ""
31
+ },
32
+ {
33
+ "name": "value",
34
+ "type": "string",
35
+ "required": false,
36
+ "description": ""
37
+ },
38
+ {
39
+ "name": "checked",
40
+ "type": "boolean",
41
+ "required": false,
42
+ "description": ""
43
+ },
44
+ {
45
+ "name": "color",
46
+ "type": "\"accent\" | \"caution\" | \"critical\" | \"info\" | \"neutral\" | \"positive\" | \"primary\" | \"secondary\"",
47
+ "required": false,
48
+ "description": "",
49
+ "options": [
50
+ "accent",
51
+ "caution",
52
+ "critical",
53
+ "info",
54
+ "neutral",
55
+ "positive",
56
+ "primary",
57
+ "secondary"
58
+ ]
59
+ },
60
+ {
61
+ "name": "size",
62
+ "type": "\"md\" | \"sm\"",
63
+ "required": false,
64
+ "description": "",
65
+ "options": [
66
+ "md",
67
+ "sm"
68
+ ]
69
+ },
70
+ {
71
+ "name": "disabled",
72
+ "type": "boolean",
73
+ "required": false,
74
+ "description": ""
75
+ },
76
+ {
77
+ "name": "onChange",
78
+ "type": "any",
79
+ "required": false,
80
+ "description": ""
81
+ }
82
+ ],
83
+ "variants": [
84
+ {
85
+ "name": "DisabledToggle",
86
+ "description": "Show how Toggle look when disabled",
87
+ "props": {},
88
+ "example": "<ToggleSwitch>Content</ToggleSwitch>"
89
+ },
90
+ {
91
+ "name": "DisabledToggle",
92
+ "description": "Show how Toggle look when disabled",
93
+ "props": {},
94
+ "example": "<ToggleSwitch>Content</ToggleSwitch>"
95
+ },
96
+ {
97
+ "name": "GetAndSetCheckedToggle",
98
+ "description": "Show how to use get and set checked status in Toggle Switch, check below code",
99
+ "props": {},
100
+ "example": "<ToggleSwitch>Content</ToggleSwitch>"
101
+ },
102
+ {
103
+ "name": "GetAndSetCheckedToggle",
104
+ "description": "Show how to use get and set checked status in Toggle Switch, check below code",
105
+ "props": {},
106
+ "example": "<ToggleSwitch>Content</ToggleSwitch>"
107
+ },
108
+ {
109
+ "name": "Colors",
110
+ "description": "Colors variant",
111
+ "props": {},
112
+ "example": "<ToggleSwitch>Content</ToggleSwitch>"
113
+ },
114
+ {
115
+ "name": "Colors",
116
+ "description": "Colors variant",
117
+ "props": {},
118
+ "example": "<ToggleSwitch>Content</ToggleSwitch>"
119
+ }
120
+ ],
121
+ "accessibility": {
122
+ "ariaLabels": [],
123
+ "keyboardNavigation": [],
124
+ "screenReaderSupport": ""
125
+ },
126
+ "relatedComponents": [],
127
+ "designTokens": {
128
+ "colors": [],
129
+ "spacing": [
130
+ "md"
131
+ ],
132
+ "typography": []
133
+ }
134
+ }