@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,291 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"id": "components-tooltip",
|
|
4
|
+
"name": "Tooltip",
|
|
5
|
+
"category": "components",
|
|
6
|
+
"status": "stable",
|
|
7
|
+
"description": "String or element that the Tooltip wraps",
|
|
8
|
+
"hasStories": true,
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"filePath": "packages/clad-ui/components/Tooltip/Tooltip.tsx",
|
|
11
|
+
"storyPath": "packages/clad-ui/components/Tooltip/Tooltip.stories.tsx",
|
|
12
|
+
"stability": "stable"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"importPath": "import { Tooltip } from 'clad-ui';",
|
|
16
|
+
"basicExample": "<Tooltip>Content</Tooltip>",
|
|
17
|
+
"commonPatterns": []
|
|
18
|
+
},
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"name": "children",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "dangerousHtml",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "text",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "variant",
|
|
40
|
+
"type": "TooltipVariant",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "placement",
|
|
46
|
+
"type": "TooltipPlacement",
|
|
47
|
+
"required": false,
|
|
48
|
+
"description": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "manual",
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"required": false,
|
|
54
|
+
"description": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "delayEnter",
|
|
58
|
+
"type": "Durations",
|
|
59
|
+
"required": false,
|
|
60
|
+
"description": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "delayLeave",
|
|
64
|
+
"type": "Durations",
|
|
65
|
+
"required": false,
|
|
66
|
+
"description": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "arrowOffset",
|
|
70
|
+
"type": "Space",
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "triggerOffset",
|
|
76
|
+
"type": "Space",
|
|
77
|
+
"required": false,
|
|
78
|
+
"description": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "hoverable",
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"required": false,
|
|
84
|
+
"description": ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "zIndex",
|
|
88
|
+
"type": "number",
|
|
89
|
+
"required": false,
|
|
90
|
+
"description": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "fadeDuration",
|
|
94
|
+
"type": "Durations",
|
|
95
|
+
"required": false,
|
|
96
|
+
"description": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "title",
|
|
100
|
+
"type": "string",
|
|
101
|
+
"required": false,
|
|
102
|
+
"description": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "thumbnail",
|
|
106
|
+
"type": "string",
|
|
107
|
+
"required": false,
|
|
108
|
+
"description": ""
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "haveClose",
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"required": false,
|
|
114
|
+
"description": ""
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "maxWidth",
|
|
118
|
+
"type": "string",
|
|
119
|
+
"required": false,
|
|
120
|
+
"description": ""
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "action",
|
|
124
|
+
"type": "object",
|
|
125
|
+
"required": false,
|
|
126
|
+
"description": ""
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "onClose",
|
|
130
|
+
"type": "any",
|
|
131
|
+
"required": false,
|
|
132
|
+
"description": ""
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"variants": [
|
|
136
|
+
{
|
|
137
|
+
"name": "Highlight",
|
|
138
|
+
"description": "Highlight variant",
|
|
139
|
+
"props": {},
|
|
140
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "WithVariant",
|
|
144
|
+
"description": "Change Tooltip's theme with `variant`. `variant` accepts 2 themes: dark and light.",
|
|
145
|
+
"props": {},
|
|
146
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "WithVariant",
|
|
150
|
+
"description": "Change Tooltip's theme with `variant`. `variant` accepts 2 themes: dark and light.",
|
|
151
|
+
"props": {},
|
|
152
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "WithPlacement",
|
|
156
|
+
"description": "Use Tooltip `placement` to set its preferred position.",
|
|
157
|
+
"props": {},
|
|
158
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "WithPlacement",
|
|
162
|
+
"description": "Use Tooltip `placement` to set its preferred position.",
|
|
163
|
+
"props": {},
|
|
164
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "WithManual",
|
|
168
|
+
"description": "`manual` prop turns off Tooltip's ability to switch automatically to a placement that is more visible on the screen. By default `manual` is set to **false**.",
|
|
169
|
+
"props": {},
|
|
170
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "WithManual",
|
|
174
|
+
"description": "`manual` prop turns off Tooltip's ability to switch automatically to a placement that is more visible on the screen. By default `manual` is set to **false**.",
|
|
175
|
+
"props": {},
|
|
176
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "WithDelay",
|
|
180
|
+
"description": "Set `delayEnter` for delay time before Tooltip appears and `delayLeave` for delay time before disappear.",
|
|
181
|
+
"props": {},
|
|
182
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "WithDelay",
|
|
186
|
+
"description": "Set `delayEnter` for delay time before Tooltip appears and `delayLeave` for delay time before disappear.",
|
|
187
|
+
"props": {},
|
|
188
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "WithOffset",
|
|
192
|
+
"description": "Set `arrowOffset` for the minimal distance in pixels between arrow and Tooltip edges and `triggerOffset` for distance in pixels between Tooltip and trigger.",
|
|
193
|
+
"props": {},
|
|
194
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "WithOffset",
|
|
198
|
+
"description": "Set `arrowOffset` for the minimal distance in pixels between arrow and Tooltip edges and `triggerOffset` for distance in pixels between Tooltip and trigger.",
|
|
199
|
+
"props": {},
|
|
200
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "Triggers",
|
|
204
|
+
"description": "<complex-value>",
|
|
205
|
+
"props": {},
|
|
206
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "Triggers",
|
|
210
|
+
"description": "<complex-value>",
|
|
211
|
+
"props": {},
|
|
212
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "HtmlExample",
|
|
216
|
+
"description": "Tooltip component has a special `dangerousHtml` prop which accepts HTML string which will be lightly sanitized (so it's still dangerous), automatically wrapped in `{__html}` and passed to `dangerouslySetInnerHTML` of the rendered styled Tooltip. Avoid passing user's input directly to this prop and the HTML string should be properly sanitized at server side.",
|
|
217
|
+
"props": {},
|
|
218
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "HtmlExample",
|
|
222
|
+
"description": "Tooltip component has a special `dangerousHtml` prop which accepts HTML string which will be lightly sanitized (so it's still dangerous), automatically wrapped in `{__html}` and passed to `dangerouslySetInnerHTML` of the rendered styled Tooltip. Avoid passing user's input directly to this prop and the HTML string should be properly sanitized at server side.",
|
|
223
|
+
"props": {},
|
|
224
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "WithTitle",
|
|
228
|
+
"description": "Use `title` property to add title",
|
|
229
|
+
"props": {},
|
|
230
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "WithTitle",
|
|
234
|
+
"description": "Use `title` property to add title",
|
|
235
|
+
"props": {},
|
|
236
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "WithThumbnail",
|
|
240
|
+
"description": "Use `thumbnail` property to add thumbnail",
|
|
241
|
+
"props": {},
|
|
242
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "WithThumbnail",
|
|
246
|
+
"description": "Use `thumbnail` property to add thumbnail",
|
|
247
|
+
"props": {},
|
|
248
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "WithCloseButton",
|
|
252
|
+
"description": "Click close button to stop tooptip immediately. Use `haveClose` property to add it. ",
|
|
253
|
+
"props": {},
|
|
254
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "WithCloseButton",
|
|
258
|
+
"description": "Click close button to stop tooptip immediately. Use `haveClose` property to add it. ",
|
|
259
|
+
"props": {},
|
|
260
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "Action",
|
|
264
|
+
"description": "Use `action` property to add interactive elements at the bottom of the Tooltip",
|
|
265
|
+
"props": {},
|
|
266
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "Action",
|
|
270
|
+
"description": "Use `action` property to add interactive elements at the bottom of the Tooltip",
|
|
271
|
+
"props": {},
|
|
272
|
+
"example": "<Tooltip>Content</Tooltip>"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"accessibility": {
|
|
276
|
+
"ariaLabels": [],
|
|
277
|
+
"keyboardNavigation": [],
|
|
278
|
+
"screenReaderSupport": ""
|
|
279
|
+
},
|
|
280
|
+
"relatedComponents": [],
|
|
281
|
+
"designTokens": {
|
|
282
|
+
"colors": [
|
|
283
|
+
"backgroundInverted",
|
|
284
|
+
"backgroundPrimary",
|
|
285
|
+
"borderBlack",
|
|
286
|
+
"borderThin"
|
|
287
|
+
],
|
|
288
|
+
"spacing": [],
|
|
289
|
+
"typography": []
|
|
290
|
+
}
|
|
291
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"id": "patterns-drawer",
|
|
4
|
+
"name": "Drawer",
|
|
5
|
+
"category": "patterns",
|
|
6
|
+
"status": "stable",
|
|
7
|
+
"description": "className (can be used to add more styles to mainIcon by targeting `main-icon` class in case of using a custom string)",
|
|
8
|
+
"hasStories": true,
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"filePath": "packages/clad-ui/patterns/Drawer/Drawer.tsx",
|
|
11
|
+
"storyPath": "packages/clad-ui/patterns/Drawer/Drawer.stories.tsx",
|
|
12
|
+
"stability": "stable"
|
|
13
|
+
},
|
|
14
|
+
"usage": {
|
|
15
|
+
"importPath": "import { Drawer } from 'clad-ui/patterns';",
|
|
16
|
+
"basicExample": "<Drawer>Content</Drawer>",
|
|
17
|
+
"commonPatterns": []
|
|
18
|
+
},
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"name": "className",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "title",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false,
|
|
30
|
+
"description": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "children",
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": true,
|
|
36
|
+
"description": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "primaryBtnLabel",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "secondaryBtnLabel",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"required": false,
|
|
48
|
+
"description": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "optionalBtnLabel",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"required": false,
|
|
54
|
+
"description": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "btnRowPosition",
|
|
58
|
+
"type": "\"justify\" | \"left\" | \"right\"",
|
|
59
|
+
"required": false,
|
|
60
|
+
"description": "",
|
|
61
|
+
"options": [
|
|
62
|
+
"justify",
|
|
63
|
+
"left",
|
|
64
|
+
"right"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "img",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"required": false,
|
|
71
|
+
"description": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "open",
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"required": false,
|
|
77
|
+
"description": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "onClose",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": false,
|
|
83
|
+
"description": ""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "onPrimaryButtonClick",
|
|
87
|
+
"type": "object",
|
|
88
|
+
"required": false,
|
|
89
|
+
"description": ""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "onSecondaryButtonClick",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "onOptionalBtnClick",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"required": false,
|
|
101
|
+
"description": ""
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "primaryColor",
|
|
105
|
+
"type": "ButtonColor",
|
|
106
|
+
"required": false,
|
|
107
|
+
"description": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "childrenOverflowVisible",
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"required": false,
|
|
113
|
+
"description": ""
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "isEmptyDrawer",
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"required": false,
|
|
119
|
+
"description": ""
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "closeIcon",
|
|
123
|
+
"type": "object",
|
|
124
|
+
"required": false,
|
|
125
|
+
"description": ""
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "haveClose",
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"required": false,
|
|
131
|
+
"description": ""
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "contentClassName",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"required": false,
|
|
137
|
+
"description": ""
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "needBypassScrollLock",
|
|
141
|
+
"type": "boolean",
|
|
142
|
+
"required": false,
|
|
143
|
+
"description": ""
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "actions",
|
|
147
|
+
"type": "object",
|
|
148
|
+
"required": false,
|
|
149
|
+
"description": ""
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "hideScrollbar",
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"required": false,
|
|
155
|
+
"description": ""
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"variants": [
|
|
159
|
+
{
|
|
160
|
+
"name": "DrawerStories",
|
|
161
|
+
"description": "DrawerStories variant",
|
|
162
|
+
"props": {
|
|
163
|
+
"title": "Drawer title",
|
|
164
|
+
"primaryBtnLabel": "Primary Button",
|
|
165
|
+
"secondaryBtnLabel": "Secondary Button",
|
|
166
|
+
"children": "Multiline user message. Use \\n to add line break.\nDrawer content accepts both string and React components.",
|
|
167
|
+
"onSecondaryButtonClick": "<complex-value>",
|
|
168
|
+
"img": "https://cdn.chotot.com/admincentre/960_579.jpg"
|
|
169
|
+
},
|
|
170
|
+
"example": "<Drawer title=\"Drawer title\" primaryBtnLabel=\"Primary Button\" secondaryBtnLabel=\"Secondary Button\" children=\"Multiline user message. Use \\n to add line break.\nDrawer content accepts both string and React components.\" onSecondaryButtonClick=\"<complex-value>\" img=\"https://cdn.chotot.com/admincentre/960_579.jpg\">Content</Drawer>"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "ChildrenLimitHeigthWrapper",
|
|
174
|
+
"description": "ChildrenLimitHeigthWrapper variant",
|
|
175
|
+
"props": {},
|
|
176
|
+
"example": "<Drawer>Content</Drawer>"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "ChildrenWrapper",
|
|
180
|
+
"description": "ChildrenWrapper variant",
|
|
181
|
+
"props": {},
|
|
182
|
+
"example": "<Drawer>Content</Drawer>"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "ChildrenTextWrapper",
|
|
186
|
+
"description": "ChildrenTextWrapper variant",
|
|
187
|
+
"props": {},
|
|
188
|
+
"example": "<Drawer>Content</Drawer>"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "Placeholder",
|
|
192
|
+
"description": "Placeholder variant",
|
|
193
|
+
"props": {},
|
|
194
|
+
"example": "<Drawer>Content</Drawer>"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "WithChildren",
|
|
198
|
+
"description": "Dialog's children accepts both string and React components.",
|
|
199
|
+
"props": {},
|
|
200
|
+
"example": "<Drawer>Content</Drawer>"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "WithChildren",
|
|
204
|
+
"description": "Dialog's children accepts both string and React components.",
|
|
205
|
+
"props": {},
|
|
206
|
+
"example": "<Drawer>Content</Drawer>"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "CustomizeWithImage",
|
|
210
|
+
"description": "Customize banner images",
|
|
211
|
+
"props": {},
|
|
212
|
+
"example": "<Drawer>Content</Drawer>"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "CustomizeWithImage",
|
|
216
|
+
"description": "Customize banner images",
|
|
217
|
+
"props": {},
|
|
218
|
+
"example": "<Drawer>Content</Drawer>"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "CustomizeHeader",
|
|
222
|
+
"description": "Customize with Optional Button",
|
|
223
|
+
"props": {},
|
|
224
|
+
"example": "<Drawer>Content</Drawer>"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "CustomizeHeader",
|
|
228
|
+
"description": "Customize with Optional Button",
|
|
229
|
+
"props": {},
|
|
230
|
+
"example": "<Drawer>Content</Drawer>"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "ButtonsPosition",
|
|
234
|
+
"description": "Button Group Position Example",
|
|
235
|
+
"props": {},
|
|
236
|
+
"example": "<Drawer>Content</Drawer>"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "ButtonsPosition",
|
|
240
|
+
"description": "Button Group Position Example",
|
|
241
|
+
"props": {},
|
|
242
|
+
"example": "<Drawer>Content</Drawer>"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "EmptyDrawer",
|
|
246
|
+
"description": "EmptyDrawer for special use case",
|
|
247
|
+
"props": {},
|
|
248
|
+
"example": "<Drawer>Content</Drawer>"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "EmptyDrawer",
|
|
252
|
+
"description": "EmptyDrawer for special use case",
|
|
253
|
+
"props": {},
|
|
254
|
+
"example": "<Drawer>Content</Drawer>"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "ContentClassName",
|
|
258
|
+
"description": "Use contentClassName prop to customize Drawer content",
|
|
259
|
+
"props": {},
|
|
260
|
+
"example": "<Drawer>Content</Drawer>"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "ContentClassName",
|
|
264
|
+
"description": "Use contentClassName prop to customize Drawer content",
|
|
265
|
+
"props": {},
|
|
266
|
+
"example": "<Drawer>Content</Drawer>"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "CustomActions",
|
|
270
|
+
"description": "Use the `actions` prop to pass custom button components for full control over the action area. You can control layout (horizontal/vertical), alignment, and styling directly in your custom components. The legacy button props (primaryBtnLabel, secondaryBtnLabel) are still supported for backward compatibility.",
|
|
271
|
+
"props": {},
|
|
272
|
+
"example": "<Drawer>Content</Drawer>"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "CustomActions",
|
|
276
|
+
"description": "Use the `actions` prop to pass custom button components for full control over the action area. You can control layout (horizontal/vertical), alignment, and styling directly in your custom components. The legacy button props (primaryBtnLabel, secondaryBtnLabel) are still supported for backward compatibility.",
|
|
277
|
+
"props": {},
|
|
278
|
+
"example": "<Drawer>Content</Drawer>"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "ScrollableBox",
|
|
282
|
+
"description": "ScrollableBox variant",
|
|
283
|
+
"props": {},
|
|
284
|
+
"example": "<Drawer>Content</Drawer>"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "NestedScroll",
|
|
288
|
+
"description": "Testing two independent scroll areas with the `hideScrollbar` prop. When hideScrollbar=true, the drawer's main scrollbar is hidden (useful for Safari), but only nested scrollable elements show scrollbars. The drawer content remains scrollable.",
|
|
289
|
+
"props": {},
|
|
290
|
+
"example": "<Drawer>Content</Drawer>"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "NestedScroll",
|
|
294
|
+
"description": "Testing two independent scroll areas with the `hideScrollbar` prop. When hideScrollbar=true, the drawer's main scrollbar is hidden (useful for Safari), but only nested scrollable elements show scrollbars. The drawer content remains scrollable.",
|
|
295
|
+
"props": {},
|
|
296
|
+
"example": "<Drawer>Content</Drawer>"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"accessibility": {
|
|
300
|
+
"ariaLabels": [],
|
|
301
|
+
"keyboardNavigation": [],
|
|
302
|
+
"screenReaderSupport": ""
|
|
303
|
+
},
|
|
304
|
+
"relatedComponents": [],
|
|
305
|
+
"designTokens": {
|
|
306
|
+
"colors": [],
|
|
307
|
+
"spacing": [],
|
|
308
|
+
"typography": []
|
|
309
|
+
}
|
|
310
|
+
}
|