@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.
- package/README.md +42 -0
- package/ai/clad-ui-helper.js +267 -0
- package/ai/knowledge-base/README.md +154 -0
- package/ai/knowledge-base/clad-ui-database.json +9378 -0
- package/ai/knowledge-base/component-categories.json +616 -0
- package/ai/knowledge-base/components/metadata/charts-axis.json +31 -0
- package/ai/knowledge-base/components/metadata/charts-barchart.json +57 -0
- package/ai/knowledge-base/components/metadata/charts-basechart.tsx.json +31 -0
- package/ai/knowledge-base/components/metadata/charts-chartshared.json +31 -0
- package/ai/knowledge-base/components/metadata/charts-linechart.json +189 -0
- package/ai/knowledge-base/components/metadata/charts-piechart.json +57 -0
- package/ai/knowledge-base/components/metadata/components-announcer.json +215 -0
- package/ai/knowledge-base/components/metadata/components-badge.json +168 -0
- package/ai/knowledge-base/components/metadata/components-box.json +348 -0
- package/ai/knowledge-base/components/metadata/components-breadcrumbs.json +75 -0
- package/ai/knowledge-base/components/metadata/components-button.json +187 -0
- package/ai/knowledge-base/components/metadata/components-checkbox.json +161 -0
- package/ai/knowledge-base/components/metadata/components-chip.json +266 -0
- package/ai/knowledge-base/components/metadata/components-currencyinput.json +136 -0
- package/ai/knowledge-base/components/metadata/components-datepicker.json +87 -0
- package/ai/knowledge-base/components/metadata/components-dropdown.json +282 -0
- package/ai/knowledge-base/components/metadata/components-grid.json +92 -0
- package/ai/knowledge-base/components/metadata/components-input.json +432 -0
- package/ai/knowledge-base/components/metadata/components-pagination.json +111 -0
- package/ai/knowledge-base/components/metadata/components-popover.json +63 -0
- package/ai/knowledge-base/components/metadata/components-radiobutton.json +170 -0
- package/ai/knowledge-base/components/metadata/components-rowitem.json +281 -0
- package/ai/knowledge-base/components/metadata/components-shapeicon.json +139 -0
- package/ai/knowledge-base/components/metadata/components-slider.json +177 -0
- package/ai/knowledge-base/components/metadata/components-snack.json +181 -0
- package/ai/knowledge-base/components/metadata/components-tabs.json +169 -0
- package/ai/knowledge-base/components/metadata/components-textarea.json +285 -0
- package/ai/knowledge-base/components/metadata/components-textlabel.json +129 -0
- package/ai/knowledge-base/components/metadata/components-toggleswitch.json +134 -0
- package/ai/knowledge-base/components/metadata/components-tooltip.json +291 -0
- package/ai/knowledge-base/components/metadata/patterns-drawer.json +310 -0
- package/ai/knowledge-base/components/metadata/patterns-emptystate.json +106 -0
- package/ai/knowledge-base/components/metadata/patterns-inputgroup.json +105 -0
- package/ai/knowledge-base/components/metadata/patterns-legacydialog.json +177 -0
- package/ai/knowledge-base/components/metadata/patterns-legacypopup.json +236 -0
- package/ai/knowledge-base/components/metadata/patterns-multisearchdropdown.json +249 -0
- package/ai/knowledge-base/components/metadata/patterns-popup.json +268 -0
- package/ai/knowledge-base/components/metadata/patterns-rangeinput.json +105 -0
- package/ai/knowledge-base/components/metadata/patterns-searchbar.json +150 -0
- package/ai/knowledge-base/components/metadata/patterns-searchinput.json +312 -0
- package/ai/knowledge-base/components/metadata/patterns-tagcloud.json +244 -0
- package/ai/knowledge-base/components/metadata/summaries.json +610 -0
- package/ai/knowledge-base/design-tokens/tokens.json +483 -0
- package/ai/knowledge-base/patterns/documentation.json +131 -0
- package/ai/knowledge-base/prompts/common-system-prompt.md +592 -0
- package/ai/knowledge-base/prompts/figma-system-prompt.md +396 -0
- package/ai/knowledge-base/search-index/icons/asset-icons.json +1 -0
- package/ai/knowledge-base/search-index/icons/collection.json +5 -0
- package/ai/knowledge-base/search-index/icons/system-icons.json +1 -0
- package/ai/knowledge-base/search-index/search-index.json +899 -0
- package/ai/knowledge-base/validation-rules/component-rules.json +658 -0
- package/ai/skill/SKILL.md +103 -0
- package/dist/clad-ui.es.js +25 -25
- package/package.json +8 -2
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"id": "patterns-tagcloud",
|
|
4
|
+
"name": "TagCloud",
|
|
5
|
+
"category": "patterns",
|
|
6
|
+
"status": "stable",
|
|
7
|
+
"description": "Tag Cloud change event, value is stored in target.value",
|
|
8
|
+
"hasStories": true,
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"filePath": "packages/clad-ui/patterns/TagCloud/TagCloud.tsx",
|
|
11
|
+
"storyPath": "packages/clad-ui/patterns/TagCloud/TagCloud.stories.tsx",
|
|
12
|
+
"stability": "stable"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"importPath": "import { TagCloud } from 'clad-ui/patterns';",
|
|
16
|
+
"basicExample": "<TagCloud>Content</TagCloud>",
|
|
17
|
+
"commonPatterns": []
|
|
18
|
+
},
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"name": "className",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "options",
|
|
28
|
+
"type": "any",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "label",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "value",
|
|
40
|
+
"type": "TagCloudValue",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "onChange",
|
|
46
|
+
"type": "any",
|
|
47
|
+
"required": false,
|
|
48
|
+
"description": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "required",
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"required": false,
|
|
54
|
+
"description": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "multiple",
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"required": false,
|
|
60
|
+
"description": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "maxSelection",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"required": false,
|
|
66
|
+
"description": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "tagCloudRef",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "status",
|
|
76
|
+
"type": "\"default\" | \"error\"",
|
|
77
|
+
"required": false,
|
|
78
|
+
"description": "",
|
|
79
|
+
"options": [
|
|
80
|
+
"default",
|
|
81
|
+
"error"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "helptext",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"required": false,
|
|
88
|
+
"description": ""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "variant",
|
|
92
|
+
"type": "\"normal\" | \"outline\"",
|
|
93
|
+
"required": false,
|
|
94
|
+
"description": "",
|
|
95
|
+
"options": [
|
|
96
|
+
"normal",
|
|
97
|
+
"outline"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "selectedTextStyle",
|
|
102
|
+
"type": "\"bold\" | \"normal\"",
|
|
103
|
+
"required": false,
|
|
104
|
+
"description": "",
|
|
105
|
+
"options": [
|
|
106
|
+
"bold",
|
|
107
|
+
"normal"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"variants": [
|
|
112
|
+
{
|
|
113
|
+
"name": "BoldAndNormalSelected",
|
|
114
|
+
"description": "Bold and normal selected text style.",
|
|
115
|
+
"props": {},
|
|
116
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "BoldAndNormalSelected",
|
|
120
|
+
"description": "Bold and normal selected text style.",
|
|
121
|
+
"props": {},
|
|
122
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "OutlineVariant",
|
|
126
|
+
"description": "Pass prop variant=\"outline\" to select outline variant.",
|
|
127
|
+
"props": {},
|
|
128
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "OutlineVariant",
|
|
132
|
+
"description": "Pass prop variant=\"outline\" to select outline variant.",
|
|
133
|
+
"props": {},
|
|
134
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "WithHelptext",
|
|
138
|
+
"description": "Help text is the small caption below the Tag cloud box.",
|
|
139
|
+
"props": {},
|
|
140
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "WithHelptext",
|
|
144
|
+
"description": "Help text is the small caption below the Tag cloud box.",
|
|
145
|
+
"props": {},
|
|
146
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "SingleActive",
|
|
150
|
+
"description": "Only one chip is active at a time.",
|
|
151
|
+
"props": {},
|
|
152
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "SingleActive",
|
|
156
|
+
"description": "Only one chip is active at a time.",
|
|
157
|
+
"props": {},
|
|
158
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "MultiActive",
|
|
162
|
+
"description": "Number of active chip is not limited (tap again to deactive).",
|
|
163
|
+
"props": {},
|
|
164
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "MultiActive",
|
|
168
|
+
"description": "Number of active chip is not limited (tap again to deactive).",
|
|
169
|
+
"props": {},
|
|
170
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "WithMaxSelection",
|
|
174
|
+
"description": "Set the `maxSelection` to set limit to number of active chip in case of multiple active.",
|
|
175
|
+
"props": {},
|
|
176
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "WithMaxSelection",
|
|
180
|
+
"description": "Set the `maxSelection` to set limit to number of active chip in case of multiple active.",
|
|
181
|
+
"props": {},
|
|
182
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "IsRequired",
|
|
186
|
+
"description": "Enable `required` will let Tag cloud display a red * on the label but validation is not forced for now.",
|
|
187
|
+
"props": {},
|
|
188
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "IsRequired",
|
|
192
|
+
"description": "Enable `required` will let Tag cloud display a red * on the label but validation is not forced for now.",
|
|
193
|
+
"props": {},
|
|
194
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "ErrorStatus",
|
|
198
|
+
"description": "Set `status=\"error\"` will let Tag cloud has red helptext.",
|
|
199
|
+
"props": {},
|
|
200
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "ErrorStatus",
|
|
204
|
+
"description": "Set `status=\"error\"` will let Tag cloud has red helptext.",
|
|
205
|
+
"props": {},
|
|
206
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "WithoutLabel",
|
|
210
|
+
"description": "Tag cloud without label.",
|
|
211
|
+
"props": {},
|
|
212
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "WithoutLabel",
|
|
216
|
+
"description": "Tag cloud without label.",
|
|
217
|
+
"props": {},
|
|
218
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "WithClassName",
|
|
222
|
+
"description": "Pass className to add more styles to tag cloud.",
|
|
223
|
+
"props": {},
|
|
224
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "WithClassName",
|
|
228
|
+
"description": "Pass className to add more styles to tag cloud.",
|
|
229
|
+
"props": {},
|
|
230
|
+
"example": "<TagCloud>Content</TagCloud>"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"accessibility": {
|
|
234
|
+
"ariaLabels": [],
|
|
235
|
+
"keyboardNavigation": [],
|
|
236
|
+
"screenReaderSupport": ""
|
|
237
|
+
},
|
|
238
|
+
"relatedComponents": [],
|
|
239
|
+
"designTokens": {
|
|
240
|
+
"colors": [],
|
|
241
|
+
"spacing": [],
|
|
242
|
+
"typography": []
|
|
243
|
+
}
|
|
244
|
+
}
|