@okshaun/components 1.0.1 → 2.0.0

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