@okshaun/components 1.0.2 → 2.0.1
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/dist/.mcp.json +2 -5
- package/dist/icon-metadata.json +5173 -0
- package/dist/index.js +17118 -9339
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +696 -0
- package/dist/playroom-static.css +187432 -0
- package/dist/{preset-DCCViEDs.js → preset-Df8i1OIQ.js} +3651 -2776
- package/dist/preset-Df8i1OIQ.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/color-palette.json +22 -1
- package/dist/specs/patterns.json +0 -16
- package/dist/specs/recipes.json +411 -239
- package/dist/specs/semantic-tokens.json +347 -146
- package/dist/specs/text-styles.json +72 -0
- package/dist/specs/tokens.json +267 -67
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +6662 -320
- package/dist/styles.css +36925 -5
- package/dist/svgs/calendar-lock.svg +1 -0
- package/dist/svgs/computer.svg +1 -0
- package/dist/svgs/cookie.svg +1 -0
- package/dist/svgs/folder-check.svg +1 -0
- package/dist/svgs/folder-copy.svg +1 -0
- package/dist/svgs/folder-dashed.svg +1 -0
- package/dist/svgs/folder-open.svg +1 -0
- package/dist/svgs/folder-topic.svg +1 -0
- package/dist/svgs/folder.svg +1 -0
- package/dist/svgs/mobile.svg +1 -0
- package/dist/svgs/numpad.svg +1 -0
- package/dist/svgs/phone.svg +1 -0
- package/dist/svgs/qr-code.svg +1 -0
- package/dist/svgs/sparkle.svg +1 -0
- package/dist/svgs/trolley.svg +1 -0
- package/dist/types/index.d.ts +837 -337
- package/package.json +49 -24
- package/src/recipes/avatar.ts +98 -98
- package/src/recipes/badge.ts +22 -39
- package/src/recipes/box.ts +1 -7
- package/src/recipes/breadcrumbs.ts +42 -25
- package/src/recipes/button.ts +201 -105
- package/src/recipes/card.ts +5 -1
- package/src/recipes/checkbox.ts +23 -24
- package/src/recipes/checkboxInput.ts +25 -0
- package/src/recipes/chip.ts +35 -37
- package/src/recipes/code.ts +4 -4
- package/src/recipes/datePicker.ts +212 -0
- package/src/recipes/divider.ts +38 -32
- package/src/recipes/formField.ts +41 -23
- package/src/recipes/highlightText.ts +14 -0
- package/src/recipes/icon.ts +13 -0
- package/src/recipes/list.ts +14 -0
- package/src/recipes/listItem.ts +310 -0
- package/src/recipes/listItemGroup.ts +62 -0
- package/src/recipes/menu.ts +90 -163
- package/src/recipes/modal.ts +55 -25
- package/src/recipes/radio.ts +29 -20
- package/src/recipes/radioInput.ts +25 -0
- package/src/recipes/recipes-regular.ts +14 -0
- package/src/recipes/recipes-slot.ts +19 -0
- package/src/recipes/select.ts +1 -1
- package/src/recipes/spinner.ts +49 -23
- package/src/recipes/tag.ts +80 -84
- package/src/recipes/text.ts +18 -10
- package/src/recipes/textInput.ts +205 -0
- package/src/recipes/textarea.ts +65 -138
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timePicker.ts +199 -0
- package/src/recipes/toggle.ts +72 -99
- package/src/recipes/toggleInput.ts +26 -0
- package/src/recipes/tooltip.ts +52 -343
- package/src/styles/index.css +1 -1
- package/src/styles/primitives/borders.ts +7 -1
- package/src/styles/primitives/colors.ts +51 -0
- package/src/styles/primitives/fontSizes.ts +1 -0
- package/src/styles/primitives/index.ts +2 -1
- package/src/styles/primitives/shadows.ts +28 -37
- package/src/styles/primitives/sizes.ts +1 -0
- package/src/styles/primitives/zIndex.ts +17 -0
- package/src/styles/semantics/colors.ts +137 -82
- package/src/styles/semantics/index.ts +1 -0
- package/src/styles/semantics/shadows.ts +27 -16
- package/src/styles/semantics/zIndex.ts +18 -0
- package/src/styles/utilities/breakpoints.ts +6 -6
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/textStyles.ts +70 -0
- package/src/utils/splitProps.ts +3 -3
- package/dist/preset-DCCViEDs.js.map +0 -1
- package/dist/styles/global.css +0 -148
- package/dist/styles/recipes/avatar.css +0 -185
- package/dist/styles/recipes/badge.css +0 -85
- package/dist/styles/recipes/breadcrumbs.css +0 -38
- package/dist/styles/recipes/button.css +0 -195
- package/dist/styles/recipes/card.css +0 -57
- package/dist/styles/recipes/checkbox-input.css +0 -12
- package/dist/styles/recipes/checkbox.css +0 -90
- package/dist/styles/recipes/chip.css +0 -137
- package/dist/styles/recipes/code.css +0 -12
- package/dist/styles/recipes/divider.css +0 -40
- package/dist/styles/recipes/form-field.css +0 -39
- package/dist/styles/recipes/heading.css +0 -40
- package/dist/styles/recipes/icon-button.css +0 -181
- package/dist/styles/recipes/label.css +0 -14
- package/dist/styles/recipes/link.css +0 -49
- package/dist/styles/recipes/menu.css +0 -141
- package/dist/styles/recipes/modal.css +0 -99
- package/dist/styles/recipes/pre.css +0 -16
- package/dist/styles/recipes/radio-input.css +0 -7
- package/dist/styles/recipes/radio.css +0 -82
- package/dist/styles/recipes/select.css +0 -103
- package/dist/styles/recipes/spinner.css +0 -36
- package/dist/styles/recipes/tag.css +0 -27
- package/dist/styles/recipes/text.css +0 -46
- package/dist/styles/recipes/textarea.css +0 -91
- package/dist/styles/recipes/textinput.css +0 -87
- package/dist/styles/recipes/theme-switcher.css +0 -53
- package/dist/styles/recipes/toggle-input.css +0 -12
- package/dist/styles/recipes/toggle.css +0 -125
- package/dist/styles/recipes/tooltip.css +0 -133
- package/dist/styles/recipes.css +0 -30
- package/dist/styles/reset.css +0 -1
- package/dist/styles/tokens.css +0 -1016
- package/dist/styles/utilities.css +0 -1694
- package/src/recipes/checkboxinput.ts +0 -15
- package/src/recipes/index.ts +0 -28
- package/src/recipes/radioinput.ts +0 -12
- package/src/recipes/textinput.ts +0 -100
- package/src/recipes/toggleinput.ts +0 -16
- package/src/utils/injectSprite.ts +0 -36
- package/src/utils/spriteContent.ts +0 -4
package/dist/specs/recipes.json
CHANGED
|
@@ -13,18 +13,6 @@
|
|
|
13
13
|
"<Box />"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
"name": "breadcrumbs",
|
|
18
|
-
"description": "",
|
|
19
|
-
"variants": {},
|
|
20
|
-
"defaultVariants": {},
|
|
21
|
-
"functionExamples": [
|
|
22
|
-
"breadcrumbs()"
|
|
23
|
-
],
|
|
24
|
-
"jsxExamples": [
|
|
25
|
-
"<Breadcrumbs />"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
16
|
{
|
|
29
17
|
"name": "card",
|
|
30
18
|
"description": "",
|
|
@@ -42,8 +30,7 @@
|
|
|
42
30
|
]
|
|
43
31
|
},
|
|
44
32
|
"defaultVariants": {
|
|
45
|
-
"variant": "default"
|
|
46
|
-
"interactive": false
|
|
33
|
+
"variant": "default"
|
|
47
34
|
},
|
|
48
35
|
"functionExamples": [
|
|
49
36
|
"card({ variant: 'default' })",
|
|
@@ -120,7 +107,7 @@
|
|
|
120
107
|
"h3",
|
|
121
108
|
"h4"
|
|
122
109
|
],
|
|
123
|
-
"
|
|
110
|
+
"allCaps": [
|
|
124
111
|
"true"
|
|
125
112
|
]
|
|
126
113
|
},
|
|
@@ -129,13 +116,37 @@
|
|
|
129
116
|
},
|
|
130
117
|
"functionExamples": [
|
|
131
118
|
"heading({ level: 'h1' })",
|
|
132
|
-
"heading({
|
|
133
|
-
"heading({ level: 'h1',
|
|
119
|
+
"heading({ allCaps: true })",
|
|
120
|
+
"heading({ level: 'h1', allCaps: true })"
|
|
134
121
|
],
|
|
135
122
|
"jsxExamples": [
|
|
136
123
|
"<Heading level=\"h1\" />",
|
|
137
|
-
"<Heading
|
|
138
|
-
"<Heading level=\"h1\"
|
|
124
|
+
"<Heading allCaps={true} />",
|
|
125
|
+
"<Heading level=\"h1\" allCaps={true} />"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "highlightText",
|
|
130
|
+
"description": "",
|
|
131
|
+
"variants": {},
|
|
132
|
+
"defaultVariants": {},
|
|
133
|
+
"functionExamples": [
|
|
134
|
+
"highlightText()"
|
|
135
|
+
],
|
|
136
|
+
"jsxExamples": [
|
|
137
|
+
"<HighlightText />"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "icon",
|
|
142
|
+
"description": "",
|
|
143
|
+
"variants": {},
|
|
144
|
+
"defaultVariants": {},
|
|
145
|
+
"functionExamples": [
|
|
146
|
+
"icon()"
|
|
147
|
+
],
|
|
148
|
+
"jsxExamples": [
|
|
149
|
+
"<Icon />"
|
|
139
150
|
]
|
|
140
151
|
},
|
|
141
152
|
{
|
|
@@ -162,10 +173,11 @@
|
|
|
162
173
|
"truncate": [
|
|
163
174
|
"true"
|
|
164
175
|
],
|
|
165
|
-
"
|
|
176
|
+
"allCaps": [
|
|
166
177
|
"true"
|
|
167
178
|
],
|
|
168
179
|
"size": [
|
|
180
|
+
"10",
|
|
169
181
|
"12",
|
|
170
182
|
"14",
|
|
171
183
|
"16",
|
|
@@ -199,11 +211,11 @@
|
|
|
199
211
|
"label({ italic: true })",
|
|
200
212
|
"label({ underline: true })",
|
|
201
213
|
"label({ truncate: true })",
|
|
202
|
-
"label({
|
|
203
|
-
"label({ size: '
|
|
214
|
+
"label({ allCaps: true })",
|
|
215
|
+
"label({ size: '10' })",
|
|
204
216
|
"label({ weight: 'light' })",
|
|
205
217
|
"label({ _disabled: true })",
|
|
206
|
-
"label({ family: 'heading', bold: true, italic: true, underline: true, truncate: true,
|
|
218
|
+
"label({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allCaps: true, size: '10', weight: 'light', _disabled: true })"
|
|
207
219
|
],
|
|
208
220
|
"jsxExamples": [
|
|
209
221
|
"<Label family=\"heading\" />",
|
|
@@ -211,11 +223,11 @@
|
|
|
211
223
|
"<Label italic={true} />",
|
|
212
224
|
"<Label underline={true} />",
|
|
213
225
|
"<Label truncate={true} />",
|
|
214
|
-
"<Label
|
|
215
|
-
"<Label size=\"
|
|
226
|
+
"<Label allCaps={true} />",
|
|
227
|
+
"<Label size=\"10\" />",
|
|
216
228
|
"<Label weight=\"light\" />",
|
|
217
229
|
"<Label _disabled={true} />",
|
|
218
|
-
"<Label family=\"heading\" bold={true} italic={true} underline={true} truncate={true}
|
|
230
|
+
"<Label family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" _disabled={true} />"
|
|
219
231
|
]
|
|
220
232
|
},
|
|
221
233
|
{
|
|
@@ -242,10 +254,11 @@
|
|
|
242
254
|
"truncate": [
|
|
243
255
|
"true"
|
|
244
256
|
],
|
|
245
|
-
"
|
|
257
|
+
"allCaps": [
|
|
246
258
|
"true"
|
|
247
259
|
],
|
|
248
260
|
"size": [
|
|
261
|
+
"10",
|
|
249
262
|
"12",
|
|
250
263
|
"14",
|
|
251
264
|
"16",
|
|
@@ -279,11 +292,11 @@
|
|
|
279
292
|
"link({ italic: true })",
|
|
280
293
|
"link({ underline: true })",
|
|
281
294
|
"link({ truncate: true })",
|
|
282
|
-
"link({
|
|
283
|
-
"link({ size: '
|
|
295
|
+
"link({ allCaps: true })",
|
|
296
|
+
"link({ size: '10' })",
|
|
284
297
|
"link({ weight: 'light' })",
|
|
285
298
|
"link({ _disabled: true })",
|
|
286
|
-
"link({ family: 'heading', bold: true, italic: true, underline: true, truncate: true,
|
|
299
|
+
"link({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allCaps: true, size: '10', weight: 'light', _disabled: true })"
|
|
287
300
|
],
|
|
288
301
|
"jsxExamples": [
|
|
289
302
|
"<Link family=\"heading\" />",
|
|
@@ -291,70 +304,54 @@
|
|
|
291
304
|
"<Link italic={true} />",
|
|
292
305
|
"<Link underline={true} />",
|
|
293
306
|
"<Link truncate={true} />",
|
|
294
|
-
"<Link
|
|
295
|
-
"<Link size=\"
|
|
307
|
+
"<Link allCaps={true} />",
|
|
308
|
+
"<Link size=\"10\" />",
|
|
296
309
|
"<Link weight=\"light\" />",
|
|
297
310
|
"<Link _disabled={true} />",
|
|
298
|
-
"<Link family=\"heading\" bold={true} italic={true} underline={true} truncate={true}
|
|
311
|
+
"<Link family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" _disabled={true} />"
|
|
299
312
|
]
|
|
300
313
|
},
|
|
301
314
|
{
|
|
302
|
-
"name": "
|
|
315
|
+
"name": "list",
|
|
303
316
|
"description": "",
|
|
304
317
|
"variants": {},
|
|
305
318
|
"defaultVariants": {},
|
|
306
319
|
"functionExamples": [
|
|
307
|
-
"
|
|
320
|
+
"list()"
|
|
308
321
|
],
|
|
309
322
|
"jsxExamples": [
|
|
310
|
-
"<
|
|
323
|
+
"<List />"
|
|
311
324
|
]
|
|
312
325
|
},
|
|
313
326
|
{
|
|
314
|
-
"name": "
|
|
327
|
+
"name": "pre",
|
|
315
328
|
"description": "",
|
|
316
329
|
"variants": {},
|
|
317
330
|
"defaultVariants": {},
|
|
318
331
|
"functionExamples": [
|
|
319
|
-
"
|
|
332
|
+
"pre()"
|
|
320
333
|
],
|
|
321
334
|
"jsxExamples": [
|
|
322
|
-
"<
|
|
335
|
+
"<Pre />"
|
|
323
336
|
]
|
|
324
337
|
},
|
|
325
338
|
{
|
|
326
|
-
"name": "
|
|
339
|
+
"name": "radioInput",
|
|
327
340
|
"description": "",
|
|
328
|
-
"variants": {
|
|
329
|
-
|
|
330
|
-
"xs",
|
|
331
|
-
"sm",
|
|
332
|
-
"md",
|
|
333
|
-
"lg"
|
|
334
|
-
],
|
|
335
|
-
"inverse": [
|
|
336
|
-
"true"
|
|
337
|
-
]
|
|
338
|
-
},
|
|
339
|
-
"defaultVariants": {
|
|
340
|
-
"size": "md"
|
|
341
|
-
},
|
|
341
|
+
"variants": {},
|
|
342
|
+
"defaultVariants": {},
|
|
342
343
|
"functionExamples": [
|
|
343
|
-
"
|
|
344
|
-
"spinner({ inverse: true })",
|
|
345
|
-
"spinner({ size: 'xs', inverse: true })"
|
|
344
|
+
"radioInput()"
|
|
346
345
|
],
|
|
347
346
|
"jsxExamples": [
|
|
348
|
-
"<
|
|
349
|
-
"<Spinner inverse={true} />",
|
|
350
|
-
"<Spinner size=\"xs\" inverse={true} />"
|
|
347
|
+
"<RadioInput />"
|
|
351
348
|
]
|
|
352
349
|
},
|
|
353
350
|
{
|
|
354
351
|
"name": "tag",
|
|
355
352
|
"description": "",
|
|
356
353
|
"variants": {
|
|
357
|
-
"
|
|
354
|
+
"variant": [
|
|
358
355
|
"default",
|
|
359
356
|
"bold"
|
|
360
357
|
],
|
|
@@ -372,9 +369,13 @@
|
|
|
372
369
|
"magenta",
|
|
373
370
|
"tan"
|
|
374
371
|
],
|
|
375
|
-
"
|
|
376
|
-
"
|
|
377
|
-
"
|
|
372
|
+
"iconBefore": [
|
|
373
|
+
"true",
|
|
374
|
+
"false"
|
|
375
|
+
],
|
|
376
|
+
"iconAfter": [
|
|
377
|
+
"true",
|
|
378
|
+
"false"
|
|
378
379
|
],
|
|
379
380
|
"hasIcon": [
|
|
380
381
|
"true",
|
|
@@ -382,24 +383,24 @@
|
|
|
382
383
|
]
|
|
383
384
|
},
|
|
384
385
|
"defaultVariants": {
|
|
385
|
-
"
|
|
386
|
-
"hue": "gray"
|
|
387
|
-
"iconPosition": "left",
|
|
388
|
-
"hasIcon": false
|
|
386
|
+
"variant": "default",
|
|
387
|
+
"hue": "gray"
|
|
389
388
|
},
|
|
390
389
|
"functionExamples": [
|
|
391
|
-
"tag({
|
|
390
|
+
"tag({ variant: 'default' })",
|
|
392
391
|
"tag({ hue: 'gray' })",
|
|
393
|
-
"tag({
|
|
392
|
+
"tag({ iconBefore: true })",
|
|
393
|
+
"tag({ iconAfter: true })",
|
|
394
394
|
"tag({ hasIcon: true })",
|
|
395
|
-
"tag({
|
|
395
|
+
"tag({ variant: 'default', hue: 'gray', iconBefore: true, iconAfter: true, hasIcon: true })"
|
|
396
396
|
],
|
|
397
397
|
"jsxExamples": [
|
|
398
|
-
"<Tag
|
|
398
|
+
"<Tag variant=\"default\" />",
|
|
399
399
|
"<Tag hue=\"gray\" />",
|
|
400
|
-
"<Tag
|
|
400
|
+
"<Tag iconBefore={true} />",
|
|
401
|
+
"<Tag iconAfter={true} />",
|
|
401
402
|
"<Tag hasIcon={true} />",
|
|
402
|
-
"<Tag
|
|
403
|
+
"<Tag variant=\"default\" hue=\"gray\" iconBefore={true} iconAfter={true} hasIcon={true} />"
|
|
403
404
|
]
|
|
404
405
|
},
|
|
405
406
|
{
|
|
@@ -426,10 +427,11 @@
|
|
|
426
427
|
"truncate": [
|
|
427
428
|
"true"
|
|
428
429
|
],
|
|
429
|
-
"
|
|
430
|
+
"allCaps": [
|
|
430
431
|
"true"
|
|
431
432
|
],
|
|
432
433
|
"size": [
|
|
434
|
+
"10",
|
|
433
435
|
"12",
|
|
434
436
|
"14",
|
|
435
437
|
"16",
|
|
@@ -460,10 +462,10 @@
|
|
|
460
462
|
"text({ italic: true })",
|
|
461
463
|
"text({ underline: true })",
|
|
462
464
|
"text({ truncate: true })",
|
|
463
|
-
"text({
|
|
464
|
-
"text({ size: '
|
|
465
|
+
"text({ allCaps: true })",
|
|
466
|
+
"text({ size: '10' })",
|
|
465
467
|
"text({ weight: 'light' })",
|
|
466
|
-
"text({ family: 'heading', bold: true, italic: true, underline: true, truncate: true,
|
|
468
|
+
"text({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allCaps: true, size: '10', weight: 'light' })"
|
|
467
469
|
],
|
|
468
470
|
"jsxExamples": [
|
|
469
471
|
"<Text family=\"heading\" />",
|
|
@@ -471,10 +473,10 @@
|
|
|
471
473
|
"<Text italic={true} />",
|
|
472
474
|
"<Text underline={true} />",
|
|
473
475
|
"<Text truncate={true} />",
|
|
474
|
-
"<Text
|
|
475
|
-
"<Text size=\"
|
|
476
|
+
"<Text allCaps={true} />",
|
|
477
|
+
"<Text size=\"10\" />",
|
|
476
478
|
"<Text weight=\"light\" />",
|
|
477
|
-
"<Text family=\"heading\" bold={true} italic={true} underline={true} truncate={true}
|
|
479
|
+
"<Text family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" />"
|
|
478
480
|
]
|
|
479
481
|
},
|
|
480
482
|
{
|
|
@@ -482,42 +484,12 @@
|
|
|
482
484
|
"description": "",
|
|
483
485
|
"variants": {
|
|
484
486
|
"size": [
|
|
485
|
-
"md",
|
|
486
487
|
"sm",
|
|
487
|
-
"lg",
|
|
488
|
-
"xl"
|
|
489
|
-
],
|
|
490
|
-
"autoSize": [
|
|
491
|
-
"false",
|
|
492
|
-
"true"
|
|
493
|
-
]
|
|
494
|
-
},
|
|
495
|
-
"defaultVariants": {
|
|
496
|
-
"size": "md"
|
|
497
|
-
},
|
|
498
|
-
"functionExamples": [
|
|
499
|
-
"textarea({ size: 'md' })",
|
|
500
|
-
"textarea({ autoSize: false })",
|
|
501
|
-
"textarea({ size: 'md', autoSize: false })"
|
|
502
|
-
],
|
|
503
|
-
"jsxExamples": [
|
|
504
|
-
"<Textarea size=\"md\" />",
|
|
505
|
-
"<Textarea autoSize={false} />",
|
|
506
|
-
"<Textarea size=\"md\" autoSize={false} />"
|
|
507
|
-
]
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"name": "textinput",
|
|
511
|
-
"description": "",
|
|
512
|
-
"variants": {
|
|
513
|
-
"size": [
|
|
514
488
|
"md",
|
|
515
|
-
"sm",
|
|
516
489
|
"lg",
|
|
517
490
|
"xl"
|
|
518
491
|
],
|
|
519
492
|
"autoSize": [
|
|
520
|
-
"false",
|
|
521
493
|
"true"
|
|
522
494
|
]
|
|
523
495
|
},
|
|
@@ -525,14 +497,14 @@
|
|
|
525
497
|
"size": "md"
|
|
526
498
|
},
|
|
527
499
|
"functionExamples": [
|
|
528
|
-
"
|
|
529
|
-
"
|
|
530
|
-
"
|
|
500
|
+
"textarea({ size: 'sm' })",
|
|
501
|
+
"textarea({ autoSize: true })",
|
|
502
|
+
"textarea({ size: 'sm', autoSize: true })"
|
|
531
503
|
],
|
|
532
504
|
"jsxExamples": [
|
|
533
|
-
"<
|
|
534
|
-
"<
|
|
535
|
-
"<
|
|
505
|
+
"<Textarea size=\"sm\" />",
|
|
506
|
+
"<Textarea autoSize={true} />",
|
|
507
|
+
"<Textarea size=\"sm\" autoSize={true} />"
|
|
536
508
|
]
|
|
537
509
|
},
|
|
538
510
|
{
|
|
@@ -559,6 +531,38 @@
|
|
|
559
531
|
"<ToggleInput />"
|
|
560
532
|
]
|
|
561
533
|
},
|
|
534
|
+
{
|
|
535
|
+
"name": "avatar",
|
|
536
|
+
"variants": {
|
|
537
|
+
"size": [
|
|
538
|
+
"xs",
|
|
539
|
+
"sm",
|
|
540
|
+
"md",
|
|
541
|
+
"lg",
|
|
542
|
+
"xl",
|
|
543
|
+
"2xl"
|
|
544
|
+
],
|
|
545
|
+
"shape": [
|
|
546
|
+
"circle",
|
|
547
|
+
"square",
|
|
548
|
+
"hexagon"
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
"defaultVariants": {
|
|
552
|
+
"size": "md",
|
|
553
|
+
"shape": "circle"
|
|
554
|
+
},
|
|
555
|
+
"functionExamples": [
|
|
556
|
+
"avatar({ size: 'xs' })",
|
|
557
|
+
"avatar({ shape: 'circle' })",
|
|
558
|
+
"avatar({ size: 'xs', shape: 'circle' })"
|
|
559
|
+
],
|
|
560
|
+
"jsxExamples": [
|
|
561
|
+
"<Avatar size=\"xs\" />",
|
|
562
|
+
"<Avatar shape=\"circle\" />",
|
|
563
|
+
"<Avatar size=\"xs\" shape=\"circle\" />"
|
|
564
|
+
]
|
|
565
|
+
},
|
|
562
566
|
{
|
|
563
567
|
"name": "badge",
|
|
564
568
|
"variants": {
|
|
@@ -578,11 +582,11 @@
|
|
|
578
582
|
"variant": [
|
|
579
583
|
"neutral",
|
|
580
584
|
"subtle",
|
|
581
|
-
"
|
|
582
|
-
"
|
|
585
|
+
"bold",
|
|
586
|
+
"inverse",
|
|
583
587
|
"success",
|
|
584
|
-
"danger",
|
|
585
588
|
"warning",
|
|
589
|
+
"danger",
|
|
586
590
|
"info"
|
|
587
591
|
]
|
|
588
592
|
},
|
|
@@ -605,20 +609,36 @@
|
|
|
605
609
|
"<Badge size=\"sm\" standalone={true} dot={true} variant=\"neutral\" />"
|
|
606
610
|
]
|
|
607
611
|
},
|
|
612
|
+
{
|
|
613
|
+
"name": "breadcrumbs",
|
|
614
|
+
"variants": {},
|
|
615
|
+
"defaultVariants": {},
|
|
616
|
+
"functionExamples": [
|
|
617
|
+
"breadcrumbs()"
|
|
618
|
+
],
|
|
619
|
+
"jsxExamples": [
|
|
620
|
+
"<Breadcrumbs />"
|
|
621
|
+
]
|
|
622
|
+
},
|
|
608
623
|
{
|
|
609
624
|
"name": "button",
|
|
610
625
|
"variants": {
|
|
611
626
|
"variant": [
|
|
612
627
|
"default",
|
|
613
628
|
"primary",
|
|
629
|
+
"ghost",
|
|
614
630
|
"subtle",
|
|
615
|
-
"hollow"
|
|
631
|
+
"hollow",
|
|
632
|
+
"danger",
|
|
633
|
+
"selected",
|
|
634
|
+
"selectedBold",
|
|
635
|
+
"selectedSubtle"
|
|
616
636
|
],
|
|
617
637
|
"size": [
|
|
638
|
+
"sm",
|
|
618
639
|
"md",
|
|
619
|
-
"xl",
|
|
620
640
|
"lg",
|
|
621
|
-
"
|
|
641
|
+
"xl"
|
|
622
642
|
],
|
|
623
643
|
"iconBefore": [
|
|
624
644
|
"true"
|
|
@@ -633,17 +653,107 @@
|
|
|
633
653
|
},
|
|
634
654
|
"functionExamples": [
|
|
635
655
|
"button({ variant: 'default' })",
|
|
636
|
-
"button({ size: '
|
|
656
|
+
"button({ size: 'sm' })",
|
|
637
657
|
"button({ iconBefore: true })",
|
|
638
658
|
"button({ iconAfter: true })",
|
|
639
|
-
"button({ variant: 'default', size: '
|
|
659
|
+
"button({ variant: 'default', size: 'sm', iconBefore: true, iconAfter: true })"
|
|
640
660
|
],
|
|
641
661
|
"jsxExamples": [
|
|
642
662
|
"<Button variant=\"default\" />",
|
|
643
|
-
"<Button size=\"
|
|
663
|
+
"<Button size=\"sm\" />",
|
|
644
664
|
"<Button iconBefore={true} />",
|
|
645
665
|
"<Button iconAfter={true} />",
|
|
646
|
-
"<Button variant=\"default\" size=\"
|
|
666
|
+
"<Button variant=\"default\" size=\"sm\" iconBefore={true} iconAfter={true} />"
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "checkbox",
|
|
671
|
+
"variants": {},
|
|
672
|
+
"defaultVariants": {},
|
|
673
|
+
"functionExamples": [
|
|
674
|
+
"checkbox()"
|
|
675
|
+
],
|
|
676
|
+
"jsxExamples": [
|
|
677
|
+
"<Checkbox />"
|
|
678
|
+
]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "chip",
|
|
682
|
+
"variants": {
|
|
683
|
+
"size": [
|
|
684
|
+
"sm",
|
|
685
|
+
"md",
|
|
686
|
+
"lg"
|
|
687
|
+
],
|
|
688
|
+
"before": [
|
|
689
|
+
"true"
|
|
690
|
+
],
|
|
691
|
+
"after": [
|
|
692
|
+
"true"
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
"defaultVariants": {
|
|
696
|
+
"size": "md"
|
|
697
|
+
},
|
|
698
|
+
"functionExamples": [
|
|
699
|
+
"chip({ size: 'sm' })",
|
|
700
|
+
"chip({ before: true })",
|
|
701
|
+
"chip({ after: true })",
|
|
702
|
+
"chip({ size: 'sm', before: true, after: true })"
|
|
703
|
+
],
|
|
704
|
+
"jsxExamples": [
|
|
705
|
+
"<Chip size=\"sm\" />",
|
|
706
|
+
"<Chip before={true} />",
|
|
707
|
+
"<Chip after={true} />",
|
|
708
|
+
"<Chip size=\"sm\" before={true} after={true} />"
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "datePicker",
|
|
713
|
+
"variants": {
|
|
714
|
+
"size": [
|
|
715
|
+
"sm",
|
|
716
|
+
"md",
|
|
717
|
+
"lg"
|
|
718
|
+
]
|
|
719
|
+
},
|
|
720
|
+
"defaultVariants": {
|
|
721
|
+
"size": "md"
|
|
722
|
+
},
|
|
723
|
+
"functionExamples": [
|
|
724
|
+
"datePicker({ size: 'sm' })"
|
|
725
|
+
],
|
|
726
|
+
"jsxExamples": [
|
|
727
|
+
"<DatePicker size=\"sm\" />"
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "formField",
|
|
732
|
+
"variants": {
|
|
733
|
+
"layout": [
|
|
734
|
+
"default",
|
|
735
|
+
"inline"
|
|
736
|
+
],
|
|
737
|
+
"size": [
|
|
738
|
+
"sm",
|
|
739
|
+
"md",
|
|
740
|
+
"lg",
|
|
741
|
+
"xl"
|
|
742
|
+
]
|
|
743
|
+
},
|
|
744
|
+
"defaultVariants": {
|
|
745
|
+
"layout": "default",
|
|
746
|
+
"size": "md"
|
|
747
|
+
},
|
|
748
|
+
"functionExamples": [
|
|
749
|
+
"formField({ layout: 'default' })",
|
|
750
|
+
"formField({ size: 'sm' })",
|
|
751
|
+
"formField({ layout: 'default', size: 'sm' })"
|
|
752
|
+
],
|
|
753
|
+
"jsxExamples": [
|
|
754
|
+
"<FormField layout=\"default\" />",
|
|
755
|
+
"<FormField size=\"sm\" />",
|
|
756
|
+
"<FormField layout=\"default\" size=\"sm\" />"
|
|
647
757
|
]
|
|
648
758
|
},
|
|
649
759
|
{
|
|
@@ -652,12 +762,17 @@
|
|
|
652
762
|
"variant": [
|
|
653
763
|
"default",
|
|
654
764
|
"primary",
|
|
765
|
+
"ghost",
|
|
655
766
|
"subtle",
|
|
656
|
-
"hollow"
|
|
767
|
+
"hollow",
|
|
768
|
+
"danger",
|
|
769
|
+
"selected",
|
|
770
|
+
"selectedBold",
|
|
771
|
+
"selectedSubtle"
|
|
657
772
|
],
|
|
658
773
|
"size": [
|
|
659
|
-
"md",
|
|
660
774
|
"sm",
|
|
775
|
+
"md",
|
|
661
776
|
"lg",
|
|
662
777
|
"xl"
|
|
663
778
|
]
|
|
@@ -668,153 +783,184 @@
|
|
|
668
783
|
},
|
|
669
784
|
"functionExamples": [
|
|
670
785
|
"iconButton({ variant: 'default' })",
|
|
671
|
-
"iconButton({ size: '
|
|
672
|
-
"iconButton({ variant: 'default', size: '
|
|
786
|
+
"iconButton({ size: 'sm' })",
|
|
787
|
+
"iconButton({ variant: 'default', size: 'sm' })"
|
|
673
788
|
],
|
|
674
789
|
"jsxExamples": [
|
|
675
790
|
"<IconButton variant=\"default\" />",
|
|
676
|
-
"<IconButton size=\"
|
|
677
|
-
"<IconButton variant=\"default\" size=\"
|
|
678
|
-
]
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"name": "checkbox",
|
|
682
|
-
"variants": {},
|
|
683
|
-
"defaultVariants": {},
|
|
684
|
-
"functionExamples": [
|
|
685
|
-
"checkbox()"
|
|
686
|
-
],
|
|
687
|
-
"jsxExamples": [
|
|
688
|
-
"<Checkbox />"
|
|
791
|
+
"<IconButton size=\"sm\" />",
|
|
792
|
+
"<IconButton variant=\"default\" size=\"sm\" />"
|
|
689
793
|
]
|
|
690
794
|
},
|
|
691
795
|
{
|
|
692
|
-
"name": "
|
|
693
|
-
"variants": {
|
|
694
|
-
|
|
796
|
+
"name": "listItemGroup",
|
|
797
|
+
"variants": {
|
|
798
|
+
"density": [
|
|
799
|
+
"compact",
|
|
800
|
+
"comfortable",
|
|
801
|
+
"spacious"
|
|
802
|
+
]
|
|
803
|
+
},
|
|
804
|
+
"defaultVariants": {
|
|
805
|
+
"density": "compact"
|
|
806
|
+
},
|
|
695
807
|
"functionExamples": [
|
|
696
|
-
"
|
|
808
|
+
"listItemGroup({ density: 'compact' })"
|
|
697
809
|
],
|
|
698
810
|
"jsxExamples": [
|
|
699
|
-
"<
|
|
811
|
+
"<ListItemGroup density=\"compact\" />"
|
|
700
812
|
]
|
|
701
813
|
},
|
|
702
814
|
{
|
|
703
|
-
"name": "
|
|
815
|
+
"name": "listItem",
|
|
704
816
|
"variants": {
|
|
705
|
-
"
|
|
706
|
-
"
|
|
707
|
-
"
|
|
708
|
-
"
|
|
709
|
-
"
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
"
|
|
713
|
-
"
|
|
714
|
-
"
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
"right-end"
|
|
718
|
-
],
|
|
719
|
-
"caret": [
|
|
817
|
+
"variant": [
|
|
818
|
+
"default",
|
|
819
|
+
"checkbox",
|
|
820
|
+
"toggle",
|
|
821
|
+
"divider"
|
|
822
|
+
],
|
|
823
|
+
"density": [
|
|
824
|
+
"compact",
|
|
825
|
+
"comfortable",
|
|
826
|
+
"spacious"
|
|
827
|
+
],
|
|
828
|
+
"selected": [
|
|
720
829
|
"true",
|
|
721
830
|
"false"
|
|
722
831
|
],
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
"
|
|
726
|
-
|
|
832
|
+
"iconBefore": [
|
|
833
|
+
"true",
|
|
834
|
+
"false"
|
|
835
|
+
],
|
|
836
|
+
"iconAfter": [
|
|
837
|
+
"true",
|
|
838
|
+
"false"
|
|
727
839
|
]
|
|
728
840
|
},
|
|
729
841
|
"defaultVariants": {
|
|
730
|
-
"
|
|
731
|
-
"
|
|
732
|
-
"
|
|
842
|
+
"variant": "default",
|
|
843
|
+
"density": "compact",
|
|
844
|
+
"selected": false
|
|
733
845
|
},
|
|
734
846
|
"functionExamples": [
|
|
735
|
-
"
|
|
736
|
-
"
|
|
737
|
-
"
|
|
738
|
-
"
|
|
847
|
+
"listItem({ variant: 'default' })",
|
|
848
|
+
"listItem({ density: 'compact' })",
|
|
849
|
+
"listItem({ selected: true })",
|
|
850
|
+
"listItem({ iconBefore: true })",
|
|
851
|
+
"listItem({ iconAfter: true })",
|
|
852
|
+
"listItem({ variant: 'default', density: 'compact', selected: true, iconBefore: true, iconAfter: true })"
|
|
739
853
|
],
|
|
740
854
|
"jsxExamples": [
|
|
741
|
-
"<
|
|
742
|
-
"<
|
|
743
|
-
"<
|
|
744
|
-
"<
|
|
855
|
+
"<ListItem variant=\"default\" />",
|
|
856
|
+
"<ListItem density=\"compact\" />",
|
|
857
|
+
"<ListItem selected={true} />",
|
|
858
|
+
"<ListItem iconBefore={true} />",
|
|
859
|
+
"<ListItem iconAfter={true} />",
|
|
860
|
+
"<ListItem variant=\"default\" density=\"compact\" selected={true} iconBefore={true} iconAfter={true} />"
|
|
745
861
|
]
|
|
746
862
|
},
|
|
747
863
|
{
|
|
748
864
|
"name": "menu",
|
|
749
865
|
"variants": {
|
|
750
|
-
"
|
|
751
|
-
"default",
|
|
866
|
+
"density": [
|
|
752
867
|
"compact",
|
|
753
|
-
"comfortable"
|
|
868
|
+
"comfortable",
|
|
869
|
+
"spacious"
|
|
754
870
|
],
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
"right"
|
|
871
|
+
"panel": [
|
|
872
|
+
"true"
|
|
758
873
|
]
|
|
759
874
|
},
|
|
760
875
|
"defaultVariants": {
|
|
761
|
-
"
|
|
762
|
-
"indicatorPosition": "left"
|
|
876
|
+
"density": "compact"
|
|
763
877
|
},
|
|
764
878
|
"functionExamples": [
|
|
765
|
-
"menu({
|
|
766
|
-
"menu({
|
|
767
|
-
"menu({
|
|
879
|
+
"menu({ density: 'compact' })",
|
|
880
|
+
"menu({ panel: true })",
|
|
881
|
+
"menu({ density: 'compact', panel: true })"
|
|
768
882
|
],
|
|
769
883
|
"jsxExamples": [
|
|
770
|
-
"<Menu
|
|
771
|
-
"<Menu
|
|
772
|
-
"<Menu
|
|
884
|
+
"<Menu density=\"compact\" />",
|
|
885
|
+
"<Menu panel={true} />",
|
|
886
|
+
"<Menu density=\"compact\" panel={true} />"
|
|
773
887
|
]
|
|
774
888
|
},
|
|
775
889
|
{
|
|
776
|
-
"name": "
|
|
890
|
+
"name": "modal",
|
|
777
891
|
"variants": {
|
|
778
892
|
"size": [
|
|
893
|
+
"sm",
|
|
779
894
|
"md",
|
|
780
|
-
"xl",
|
|
781
895
|
"lg",
|
|
782
|
-
"
|
|
896
|
+
"xl",
|
|
897
|
+
"full",
|
|
898
|
+
"mobile"
|
|
899
|
+
],
|
|
900
|
+
"variant": [
|
|
901
|
+
"default",
|
|
902
|
+
"confirmation"
|
|
783
903
|
]
|
|
784
904
|
},
|
|
785
905
|
"defaultVariants": {
|
|
906
|
+
"variant": "default",
|
|
786
907
|
"size": "md"
|
|
787
908
|
},
|
|
788
909
|
"functionExamples": [
|
|
789
|
-
"
|
|
910
|
+
"modal({ size: 'sm' })",
|
|
911
|
+
"modal({ variant: 'default' })",
|
|
912
|
+
"modal({ size: 'sm', variant: 'default' })"
|
|
790
913
|
],
|
|
791
914
|
"jsxExamples": [
|
|
792
|
-
"<
|
|
915
|
+
"<Modal size=\"sm\" />",
|
|
916
|
+
"<Modal variant=\"default\" />",
|
|
917
|
+
"<Modal size=\"sm\" variant=\"default\" />"
|
|
793
918
|
]
|
|
794
919
|
},
|
|
795
920
|
{
|
|
796
|
-
"name": "
|
|
921
|
+
"name": "radio",
|
|
797
922
|
"variants": {},
|
|
798
923
|
"defaultVariants": {},
|
|
799
924
|
"functionExamples": [
|
|
800
|
-
"
|
|
925
|
+
"radio()"
|
|
801
926
|
],
|
|
802
927
|
"jsxExamples": [
|
|
803
|
-
"<
|
|
928
|
+
"<Radio />"
|
|
804
929
|
]
|
|
805
930
|
},
|
|
806
931
|
{
|
|
807
|
-
"name": "
|
|
932
|
+
"name": "select",
|
|
808
933
|
"variants": {
|
|
809
934
|
"size": [
|
|
810
935
|
"md",
|
|
936
|
+
"xl",
|
|
937
|
+
"lg",
|
|
938
|
+
"sm"
|
|
939
|
+
]
|
|
940
|
+
},
|
|
941
|
+
"defaultVariants": {
|
|
942
|
+
"size": "md"
|
|
943
|
+
},
|
|
944
|
+
"functionExamples": [
|
|
945
|
+
"select({ size: 'md' })"
|
|
946
|
+
],
|
|
947
|
+
"jsxExamples": [
|
|
948
|
+
"<Select size=\"md\" />"
|
|
949
|
+
]
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "spinner",
|
|
953
|
+
"variants": {
|
|
954
|
+
"size": [
|
|
955
|
+
"xs",
|
|
811
956
|
"sm",
|
|
957
|
+
"md",
|
|
812
958
|
"lg"
|
|
813
959
|
],
|
|
814
|
-
"
|
|
960
|
+
"inverse": [
|
|
815
961
|
"true"
|
|
816
962
|
],
|
|
817
|
-
"
|
|
963
|
+
"centered": [
|
|
818
964
|
"true"
|
|
819
965
|
]
|
|
820
966
|
},
|
|
@@ -822,52 +968,57 @@
|
|
|
822
968
|
"size": "md"
|
|
823
969
|
},
|
|
824
970
|
"functionExamples": [
|
|
825
|
-
"
|
|
826
|
-
"
|
|
827
|
-
"
|
|
828
|
-
"
|
|
971
|
+
"spinner({ size: 'xs' })",
|
|
972
|
+
"spinner({ inverse: true })",
|
|
973
|
+
"spinner({ centered: true })",
|
|
974
|
+
"spinner({ size: 'xs', inverse: true, centered: true })"
|
|
829
975
|
],
|
|
830
976
|
"jsxExamples": [
|
|
831
|
-
"<
|
|
832
|
-
"<
|
|
833
|
-
"<
|
|
834
|
-
"<
|
|
977
|
+
"<Spinner size=\"xs\" />",
|
|
978
|
+
"<Spinner inverse={true} />",
|
|
979
|
+
"<Spinner centered={true} />",
|
|
980
|
+
"<Spinner size=\"xs\" inverse={true} centered={true} />"
|
|
835
981
|
]
|
|
836
982
|
},
|
|
837
983
|
{
|
|
838
|
-
"name": "
|
|
984
|
+
"name": "textInput",
|
|
839
985
|
"variants": {
|
|
840
986
|
"size": [
|
|
841
|
-
"xs",
|
|
842
987
|
"sm",
|
|
843
988
|
"md",
|
|
844
989
|
"lg",
|
|
845
|
-
"xl"
|
|
846
|
-
"2xl"
|
|
990
|
+
"xl"
|
|
847
991
|
],
|
|
848
|
-
"
|
|
849
|
-
"
|
|
850
|
-
|
|
851
|
-
|
|
992
|
+
"iconBefore": [
|
|
993
|
+
"true"
|
|
994
|
+
],
|
|
995
|
+
"iconAfter": [
|
|
996
|
+
"true"
|
|
997
|
+
],
|
|
998
|
+
"autoSize": [
|
|
999
|
+
"true"
|
|
852
1000
|
]
|
|
853
1001
|
},
|
|
854
1002
|
"defaultVariants": {
|
|
855
|
-
"size": "md"
|
|
856
|
-
"shape": "circle"
|
|
1003
|
+
"size": "md"
|
|
857
1004
|
},
|
|
858
1005
|
"functionExamples": [
|
|
859
|
-
"
|
|
860
|
-
"
|
|
861
|
-
"
|
|
1006
|
+
"textInput({ size: 'sm' })",
|
|
1007
|
+
"textInput({ iconBefore: true })",
|
|
1008
|
+
"textInput({ iconAfter: true })",
|
|
1009
|
+
"textInput({ autoSize: true })",
|
|
1010
|
+
"textInput({ size: 'sm', iconBefore: true, iconAfter: true, autoSize: true })"
|
|
862
1011
|
],
|
|
863
1012
|
"jsxExamples": [
|
|
864
|
-
"<
|
|
865
|
-
"<
|
|
866
|
-
"<
|
|
1013
|
+
"<TextInput size=\"sm\" />",
|
|
1014
|
+
"<TextInput iconBefore={true} />",
|
|
1015
|
+
"<TextInput iconAfter={true} />",
|
|
1016
|
+
"<TextInput autoSize={true} />",
|
|
1017
|
+
"<TextInput size=\"sm\" iconBefore={true} iconAfter={true} autoSize={true} />"
|
|
867
1018
|
]
|
|
868
1019
|
},
|
|
869
1020
|
{
|
|
870
|
-
"name": "
|
|
1021
|
+
"name": "timePicker",
|
|
871
1022
|
"variants": {
|
|
872
1023
|
"size": [
|
|
873
1024
|
"sm",
|
|
@@ -879,28 +1030,49 @@
|
|
|
879
1030
|
"size": "md"
|
|
880
1031
|
},
|
|
881
1032
|
"functionExamples": [
|
|
882
|
-
"
|
|
1033
|
+
"timePicker({ size: 'sm' })"
|
|
883
1034
|
],
|
|
884
1035
|
"jsxExamples": [
|
|
885
|
-
"<
|
|
1036
|
+
"<TimePicker size=\"sm\" />"
|
|
886
1037
|
]
|
|
887
1038
|
},
|
|
888
1039
|
{
|
|
889
|
-
"name": "
|
|
1040
|
+
"name": "toggle",
|
|
1041
|
+
"variants": {},
|
|
1042
|
+
"defaultVariants": {},
|
|
1043
|
+
"functionExamples": [
|
|
1044
|
+
"toggle()"
|
|
1045
|
+
],
|
|
1046
|
+
"jsxExamples": [
|
|
1047
|
+
"<Toggle />"
|
|
1048
|
+
]
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "tooltip",
|
|
890
1052
|
"variants": {
|
|
891
|
-
"
|
|
892
|
-
"
|
|
893
|
-
"
|
|
1053
|
+
"size": [
|
|
1054
|
+
"sm",
|
|
1055
|
+
"md",
|
|
1056
|
+
"lg"
|
|
1057
|
+
],
|
|
1058
|
+
"hasTitle": [
|
|
1059
|
+
"true",
|
|
1060
|
+
"false"
|
|
894
1061
|
]
|
|
895
1062
|
},
|
|
896
1063
|
"defaultVariants": {
|
|
897
|
-
"
|
|
1064
|
+
"size": "md",
|
|
1065
|
+
"hasTitle": false
|
|
898
1066
|
},
|
|
899
1067
|
"functionExamples": [
|
|
900
|
-
"
|
|
1068
|
+
"tooltip({ size: 'sm' })",
|
|
1069
|
+
"tooltip({ hasTitle: true })",
|
|
1070
|
+
"tooltip({ size: 'sm', hasTitle: true })"
|
|
901
1071
|
],
|
|
902
1072
|
"jsxExamples": [
|
|
903
|
-
"<
|
|
1073
|
+
"<Tooltip size=\"sm\" />",
|
|
1074
|
+
"<Tooltip hasTitle={true} />",
|
|
1075
|
+
"<Tooltip size=\"sm\" hasTitle={true} />"
|
|
904
1076
|
]
|
|
905
1077
|
}
|
|
906
1078
|
]
|