@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.
- package/README.md +43 -1
- 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 +1110 -1098
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.styles.d.ts.map +1 -1
- package/dist/components/Input/Input.styles.d.ts.map +1 -1
- package/dist/components/RowItem/RowItem.styles.d.ts.map +1 -1
- package/dist/components/Snack/Snack.d.ts +9 -0
- package/dist/components/Snack/Snack.d.ts.map +1 -1
- package/dist/components/Snack/Snack.styles.d.ts +7 -1
- package/dist/components/Snack/Snack.styles.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/dist/patterns/Drawer/Drawer.d.ts +19 -10
- package/dist/patterns/Drawer/Drawer.d.ts.map +1 -1
- package/dist/patterns/Drawer/Drawer.styles.d.ts +1 -1
- package/dist/patterns/Drawer/Drawer.styles.d.ts.map +1 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +1 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +1 -1
- package/dist/theme-chotot.css +1 -1
- package/dist/theme-job.css +1 -1
- package/dist/theme-pty.css +1 -1
- package/dist/theme-veh.css +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"id": "components-button",
|
|
4
|
+
"name": "Button",
|
|
5
|
+
"category": "components",
|
|
6
|
+
"status": "stable",
|
|
7
|
+
"description": "Color selection for button color prop",
|
|
8
|
+
"hasStories": true,
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"filePath": "packages/clad-ui/components/Button/Button.tsx",
|
|
11
|
+
"storyPath": "packages/clad-ui/components/Button/Button.stories.tsx",
|
|
12
|
+
"stability": "stable"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"importPath": "import { Button } from 'clad-ui';",
|
|
16
|
+
"basicExample": "<Button>Content</Button>",
|
|
17
|
+
"commonPatterns": []
|
|
18
|
+
},
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"name": "variant",
|
|
22
|
+
"type": "ButtonVariant",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "color",
|
|
28
|
+
"type": "ButtonColor",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "radius",
|
|
34
|
+
"type": "\"circle\" | \"normal\" | \"pill\"",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": "",
|
|
37
|
+
"options": [
|
|
38
|
+
"circle",
|
|
39
|
+
"normal",
|
|
40
|
+
"pill"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "weight",
|
|
45
|
+
"type": "\"bold\" | \"normal\"",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "",
|
|
48
|
+
"options": [
|
|
49
|
+
"bold",
|
|
50
|
+
"normal"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "size",
|
|
55
|
+
"type": "\"xlarge\" | \"large\" | \"medium\" | \"small\"",
|
|
56
|
+
"required": false,
|
|
57
|
+
"description": "",
|
|
58
|
+
"options": [
|
|
59
|
+
"xlarge",
|
|
60
|
+
"large",
|
|
61
|
+
"medium",
|
|
62
|
+
"small"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "width",
|
|
67
|
+
"type": "Sizes",
|
|
68
|
+
"required": false,
|
|
69
|
+
"description": ""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "disabled",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": ""
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "icon",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"required": false,
|
|
81
|
+
"description": ""
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "stretch",
|
|
85
|
+
"type": "boolean",
|
|
86
|
+
"required": false,
|
|
87
|
+
"description": ""
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "extraClasses",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"required": false,
|
|
93
|
+
"description": ""
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "isLoading",
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"required": false,
|
|
99
|
+
"description": ""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "ref",
|
|
103
|
+
"type": "ReactRef",
|
|
104
|
+
"required": false,
|
|
105
|
+
"description": ""
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"variants": [
|
|
109
|
+
{
|
|
110
|
+
"name": "THEME_SIZES",
|
|
111
|
+
"description": "THEME_SIZES variant",
|
|
112
|
+
"props": {},
|
|
113
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "WithoutLabel",
|
|
117
|
+
"description": "WithoutLabel variant",
|
|
118
|
+
"props": {},
|
|
119
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "WithoutLabel",
|
|
123
|
+
"description": "WithoutLabel variant",
|
|
124
|
+
"props": {},
|
|
125
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "WithLabel",
|
|
129
|
+
"description": "Setting the `label` of the radio buttons.",
|
|
130
|
+
"props": {},
|
|
131
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "WithLabel",
|
|
135
|
+
"description": "Setting the `label` of the radio buttons.",
|
|
136
|
+
"props": {},
|
|
137
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "DefaultChecked",
|
|
141
|
+
"description": "Setting the `checked` of the radio button.",
|
|
142
|
+
"props": {},
|
|
143
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "DefaultChecked",
|
|
147
|
+
"description": "Setting the `checked` of the radio button.",
|
|
148
|
+
"props": {},
|
|
149
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "Disabled",
|
|
153
|
+
"description": "Setting the `disabled` of the radio buttons.",
|
|
154
|
+
"props": {},
|
|
155
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "Disabled",
|
|
159
|
+
"description": "Setting the `disabled` of the radio buttons.",
|
|
160
|
+
"props": {},
|
|
161
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "Colors",
|
|
165
|
+
"description": "Setting the `color` of the radio buttons.",
|
|
166
|
+
"props": {},
|
|
167
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "Colors",
|
|
171
|
+
"description": "Setting the `color` of the radio buttons.",
|
|
172
|
+
"props": {},
|
|
173
|
+
"example": "<RadioButton>Content</RadioButton>"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"accessibility": {
|
|
177
|
+
"ariaLabels": [],
|
|
178
|
+
"keyboardNavigation": [],
|
|
179
|
+
"screenReaderSupport": ""
|
|
180
|
+
},
|
|
181
|
+
"relatedComponents": [],
|
|
182
|
+
"designTokens": {
|
|
183
|
+
"colors": [],
|
|
184
|
+
"spacing": [],
|
|
185
|
+
"typography": []
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"id": "components-checkbox",
|
|
4
|
+
"name": "Checkbox",
|
|
5
|
+
"category": "components",
|
|
6
|
+
"status": "stable",
|
|
7
|
+
"description": "Checkbox id",
|
|
8
|
+
"hasStories": true,
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"filePath": "packages/clad-ui/components/Checkbox/Checkbox.tsx",
|
|
11
|
+
"storyPath": "packages/clad-ui/components/Checkbox/Checkbox.stories.tsx",
|
|
12
|
+
"stability": "stable"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"importPath": "import { Checkbox } from 'clad-ui';",
|
|
16
|
+
"basicExample": "<Checkbox>Content</Checkbox>",
|
|
17
|
+
"commonPatterns": []
|
|
18
|
+
},
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"name": "id",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "className",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "name",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "value",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "checked",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"required": false,
|
|
48
|
+
"description": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "label",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"required": false,
|
|
54
|
+
"description": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "color",
|
|
58
|
+
"type": "\"accent\" | \"caution\" | \"chotot\" | \"critical\" | \"error\" | \"info\" | \"neutral\" | \"positive\" | \"primary\" | \"secondary\" | \"success\"",
|
|
59
|
+
"required": false,
|
|
60
|
+
"description": "",
|
|
61
|
+
"options": [
|
|
62
|
+
"accent",
|
|
63
|
+
"caution",
|
|
64
|
+
"chotot",
|
|
65
|
+
"critical",
|
|
66
|
+
"error",
|
|
67
|
+
"info",
|
|
68
|
+
"neutral",
|
|
69
|
+
"positive",
|
|
70
|
+
"primary",
|
|
71
|
+
"secondary",
|
|
72
|
+
"success"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "disabled",
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"required": false,
|
|
79
|
+
"description": ""
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "onChange",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"required": false,
|
|
85
|
+
"description": ""
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"variants": [
|
|
89
|
+
{
|
|
90
|
+
"name": "WithoutLabel",
|
|
91
|
+
"description": "WithoutLabel variant",
|
|
92
|
+
"props": {},
|
|
93
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "WithoutLabel",
|
|
97
|
+
"description": "WithoutLabel variant",
|
|
98
|
+
"props": {},
|
|
99
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "WithLabel",
|
|
103
|
+
"description": "Setting the `label` of the checkbox.",
|
|
104
|
+
"props": {},
|
|
105
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "WithLabel",
|
|
109
|
+
"description": "Setting the `label` of the checkbox.",
|
|
110
|
+
"props": {},
|
|
111
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "DefaultChecked",
|
|
115
|
+
"description": "Setting the `checked` of the checkbox.",
|
|
116
|
+
"props": {},
|
|
117
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "DefaultChecked",
|
|
121
|
+
"description": "Setting the `checked` of the checkbox.",
|
|
122
|
+
"props": {},
|
|
123
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "Disabled",
|
|
127
|
+
"description": "Setting the `disabled` of the checkbox.",
|
|
128
|
+
"props": {},
|
|
129
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "Disabled",
|
|
133
|
+
"description": "Setting the `disabled` of the checkbox.",
|
|
134
|
+
"props": {},
|
|
135
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "Colors",
|
|
139
|
+
"description": "Setting the `color` of the checkbox.",
|
|
140
|
+
"props": {},
|
|
141
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "Colors",
|
|
145
|
+
"description": "Setting the `color` of the checkbox.",
|
|
146
|
+
"props": {},
|
|
147
|
+
"example": "<Checkbox>Content</Checkbox>"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"accessibility": {
|
|
151
|
+
"ariaLabels": [],
|
|
152
|
+
"keyboardNavigation": [],
|
|
153
|
+
"screenReaderSupport": ""
|
|
154
|
+
},
|
|
155
|
+
"relatedComponents": [],
|
|
156
|
+
"designTokens": {
|
|
157
|
+
"colors": [],
|
|
158
|
+
"spacing": [],
|
|
159
|
+
"typography": []
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"id": "components-chip",
|
|
4
|
+
"name": "Chip",
|
|
5
|
+
"category": "components",
|
|
6
|
+
"status": "stable",
|
|
7
|
+
"description": "Whether this chip is active or not",
|
|
8
|
+
"hasStories": true,
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"filePath": "packages/clad-ui/components/Chip/Chip.tsx",
|
|
11
|
+
"storyPath": "packages/clad-ui/components/Chip/Chip.stories.tsx",
|
|
12
|
+
"stability": "stable"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"importPath": "import { Chip } from 'clad-ui';",
|
|
16
|
+
"basicExample": "<Chip>Content</Chip>",
|
|
17
|
+
"commonPatterns": []
|
|
18
|
+
},
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"name": "active",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "value",
|
|
28
|
+
"type": "any",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "className",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "size",
|
|
40
|
+
"type": "\"lg\" | \"sm\" | \"xl\"",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": "",
|
|
43
|
+
"options": [
|
|
44
|
+
"lg",
|
|
45
|
+
"sm",
|
|
46
|
+
"xl"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "href",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"required": false,
|
|
53
|
+
"description": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "children",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": true,
|
|
59
|
+
"description": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "as",
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "onClick",
|
|
69
|
+
"type": "object",
|
|
70
|
+
"required": false,
|
|
71
|
+
"description": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "minWidth",
|
|
75
|
+
"type": "Size",
|
|
76
|
+
"required": false,
|
|
77
|
+
"description": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "onClose",
|
|
81
|
+
"type": "any",
|
|
82
|
+
"required": false,
|
|
83
|
+
"description": ""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "disabled",
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"required": false,
|
|
89
|
+
"description": ""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "icon",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "variant",
|
|
99
|
+
"type": "\"normal\" | \"outline\" | \"ghost\"",
|
|
100
|
+
"required": false,
|
|
101
|
+
"description": "",
|
|
102
|
+
"options": [
|
|
103
|
+
"normal",
|
|
104
|
+
"outline",
|
|
105
|
+
"ghost"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "dropdownIcon",
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"required": false,
|
|
112
|
+
"description": ""
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"variants": [
|
|
116
|
+
{
|
|
117
|
+
"name": "Br",
|
|
118
|
+
"description": "Br variant",
|
|
119
|
+
"props": {},
|
|
120
|
+
"example": "<Chip>Content</Chip>"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "NormalVariant",
|
|
124
|
+
"description": "Normal is the default variant with filled background.",
|
|
125
|
+
"props": {},
|
|
126
|
+
"example": "<Chip>Content</Chip>"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "NormalVariant",
|
|
130
|
+
"description": "Normal is the default variant with filled background.",
|
|
131
|
+
"props": {},
|
|
132
|
+
"example": "<Chip>Content</Chip>"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "OutlineVariant",
|
|
136
|
+
"description": "Use prop variant=\"outline\" to select outline variant with border.",
|
|
137
|
+
"props": {},
|
|
138
|
+
"example": "<Chip>Content</Chip>"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "OutlineVariant",
|
|
142
|
+
"description": "Use prop variant=\"outline\" to select outline variant with border.",
|
|
143
|
+
"props": {},
|
|
144
|
+
"example": "<Chip>Content</Chip>"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "GhostVariant",
|
|
148
|
+
"description": "Use prop variant=\"ghost\" to select ghost variant. Ghost chips have white background by default, light background on hover, and gray background when active.",
|
|
149
|
+
"props": {},
|
|
150
|
+
"example": "<Chip>Content</Chip>"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "GhostVariant",
|
|
154
|
+
"description": "Use prop variant=\"ghost\" to select ghost variant. Ghost chips have white background by default, light background on hover, and gray background when active.",
|
|
155
|
+
"props": {},
|
|
156
|
+
"example": "<Chip>Content</Chip>"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "DisabledChip",
|
|
160
|
+
"description": "Show how chip disable look like and behave",
|
|
161
|
+
"props": {},
|
|
162
|
+
"example": "<Chip>Content</Chip>"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "DisabledChip",
|
|
166
|
+
"description": "Show how chip disable look like and behave",
|
|
167
|
+
"props": {},
|
|
168
|
+
"example": "<Chip>Content</Chip>"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "WithLeftIcon",
|
|
172
|
+
"description": "Chip with left icon.",
|
|
173
|
+
"props": {},
|
|
174
|
+
"example": "<Chip>Content</Chip>"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "WithLeftIcon",
|
|
178
|
+
"description": "Chip with left icon.",
|
|
179
|
+
"props": {},
|
|
180
|
+
"example": "<Chip>Content</Chip>"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "WithDropdownIcon",
|
|
184
|
+
"description": "Chip with dropdown icon.",
|
|
185
|
+
"props": {},
|
|
186
|
+
"example": "<Chip>Content</Chip>"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "WithDropdownIcon",
|
|
190
|
+
"description": "Chip with dropdown icon.",
|
|
191
|
+
"props": {},
|
|
192
|
+
"example": "<Chip>Content</Chip>"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "WithOnClose",
|
|
196
|
+
"description": "Pass onClose as a function to show close button with onClose callback",
|
|
197
|
+
"props": {},
|
|
198
|
+
"example": "<Chip>Content</Chip>"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "WithOnClose",
|
|
202
|
+
"description": "Pass onClose as a function to show close button with onClose callback",
|
|
203
|
+
"props": {},
|
|
204
|
+
"example": "<Chip>Content</Chip>"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "WithMinWidth",
|
|
208
|
+
"description": "Define minimum width for short texts.",
|
|
209
|
+
"props": {},
|
|
210
|
+
"example": "<Chip>Content</Chip>"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "WithMinWidth",
|
|
214
|
+
"description": "Define minimum width for short texts.",
|
|
215
|
+
"props": {},
|
|
216
|
+
"example": "<Chip>Content</Chip>"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "WithSize",
|
|
220
|
+
"description": "Chip with different sizes. Each size has different height, icon size, and gap between icon and text. Size sm: 16px icon with 2px gap. Size lg: 20px icon with 4px gap (default). Size xl: 24px icon with 4px gap.",
|
|
221
|
+
"props": {},
|
|
222
|
+
"example": "<Chip>Content</Chip>"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "WithSize",
|
|
226
|
+
"description": "Chip with different sizes. Each size has different height, icon size, and gap between icon and text. Size sm: 16px icon with 2px gap. Size lg: 20px icon with 4px gap (default). Size xl: 24px icon with 4px gap.",
|
|
227
|
+
"props": {},
|
|
228
|
+
"example": "<Chip>Content</Chip>"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "WithAs",
|
|
232
|
+
"description": "By default, this component is rendered as an `<a>` element. Passing a tag name (string) or any React Component to change the component to be rendered as.",
|
|
233
|
+
"props": {},
|
|
234
|
+
"example": "<Chip>Content</Chip>"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "WithAs",
|
|
238
|
+
"description": "By default, this component is rendered as an `<a>` element. Passing a tag name (string) or any React Component to change the component to be rendered as.",
|
|
239
|
+
"props": {},
|
|
240
|
+
"example": "<Chip>Content</Chip>"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "WithClassName",
|
|
244
|
+
"description": "Pass className to overwrite or add more styles to this component.`",
|
|
245
|
+
"props": {},
|
|
246
|
+
"example": "<Chip>Content</Chip>"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "WithClassName",
|
|
250
|
+
"description": "Pass className to overwrite or add more styles to this component.`",
|
|
251
|
+
"props": {},
|
|
252
|
+
"example": "<Chip>Content</Chip>"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"accessibility": {
|
|
256
|
+
"ariaLabels": [],
|
|
257
|
+
"keyboardNavigation": [],
|
|
258
|
+
"screenReaderSupport": ""
|
|
259
|
+
},
|
|
260
|
+
"relatedComponents": [],
|
|
261
|
+
"designTokens": {
|
|
262
|
+
"colors": [],
|
|
263
|
+
"spacing": [],
|
|
264
|
+
"typography": []
|
|
265
|
+
}
|
|
266
|
+
}
|