@okshaun/components 2.0.2 → 4.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 (78) hide show
  1. package/dist/icon-metadata.json +385 -41
  2. package/dist/index.js +13414 -5259
  3. package/dist/index.js.map +1 -1
  4. package/dist/panda.buildinfo.json +1245 -263
  5. package/dist/{preset-DAmO4B54.js → preset-BOFHjPdQ.js} +2265 -1727
  6. package/dist/preset-BOFHjPdQ.js.map +1 -0
  7. package/dist/preset.js +1 -1
  8. package/dist/specs/conditions.json +75 -51
  9. package/dist/specs/keyframes.json +33 -0
  10. package/dist/specs/recipes.json +359 -103
  11. package/dist/specs/semantic-tokens.json +152 -44
  12. package/dist/specs/tokens.json +21 -36
  13. package/dist/sprite.svg +1 -1
  14. package/dist/sprite.symbol.html +499 -43
  15. package/dist/styles.css +18229 -7568
  16. package/dist/svgs/barcode-off.svg +1 -0
  17. package/dist/svgs/cheese.svg +1 -0
  18. package/dist/svgs/collapse-vertical.svg +1 -0
  19. package/dist/svgs/expand-vertical.svg +1 -0
  20. package/dist/svgs/magnet.svg +1 -0
  21. package/dist/svgs/spinner.svg +1 -0
  22. package/dist/svgs/to-date-backward.svg +1 -0
  23. package/dist/svgs/to-date-forward.svg +1 -0
  24. package/dist/types/index.d.ts +2804 -296
  25. package/package.json +4 -2
  26. package/src/recipes/autocomplete.ts +266 -0
  27. package/src/recipes/avatar.ts +1 -1
  28. package/src/recipes/badge.ts +31 -43
  29. package/src/recipes/breakpointIndicator.ts +11 -0
  30. package/src/recipes/button.ts +172 -223
  31. package/src/recipes/calendar.ts +91 -0
  32. package/src/recipes/card.ts +4 -70
  33. package/src/recipes/chip.ts +213 -142
  34. package/src/recipes/dateMenus.ts +40 -0
  35. package/src/recipes/dateTimeMenus.ts +43 -0
  36. package/src/recipes/icon.ts +25 -6
  37. package/src/recipes/kbd.ts +56 -0
  38. package/src/recipes/list.ts +17 -1
  39. package/src/recipes/listDensity.ts +66 -0
  40. package/src/recipes/listItem.ts +29 -161
  41. package/src/recipes/listItemGroup.ts +17 -39
  42. package/src/recipes/menu.ts +17 -3
  43. package/src/recipes/modal.ts +70 -39
  44. package/src/recipes/radio.ts +6 -6
  45. package/src/recipes/recipes-regular.ts +2 -0
  46. package/src/recipes/recipes-slot.ts +8 -2
  47. package/src/recipes/segmentedFields.ts +192 -0
  48. package/src/recipes/segmentedInputs.ts +109 -0
  49. package/src/recipes/select.ts +8 -1
  50. package/src/recipes/skeleton.ts +72 -0
  51. package/src/recipes/spinner.ts +27 -24
  52. package/src/recipes/tag.ts +218 -210
  53. package/src/recipes/text.ts +37 -19
  54. package/src/recipes/textInput.ts +106 -117
  55. package/src/recipes/themeSwitcher.ts +3 -3
  56. package/src/recipes/timeMenus.ts +110 -0
  57. package/src/recipes/toggle.ts +3 -1
  58. package/src/styles/primitives/animations.ts +3 -0
  59. package/src/styles/primitives/shadows.ts +26 -60
  60. package/src/styles/primitives/zIndex.ts +1 -0
  61. package/src/styles/semantics/colors.ts +43 -0
  62. package/src/styles/semantics/shadows.ts +4 -30
  63. package/src/styles/semantics/zIndex.ts +2 -0
  64. package/src/styles/utilities/conditions.ts +61 -51
  65. package/src/styles/utilities/dropShadows.ts +51 -0
  66. package/src/styles/utilities/filters.ts +22 -7
  67. package/src/styles/utilities/globalStyle.ts +5 -2
  68. package/src/styles/utilities/index.ts +3 -0
  69. package/src/styles/utilities/keyframes.ts +31 -4
  70. package/src/styles/utilities/recipeGlobalStyles.ts +22 -0
  71. package/src/styles/utilities/shadowDefinitions.ts +112 -0
  72. package/src/utils/dsChain.ts +113 -0
  73. package/src/utils/dsComponent.ts +44 -0
  74. package/src/utils/dsPart.ts +41 -0
  75. package/src/utils/mergeAriaDescribedBy.ts +7 -0
  76. package/dist/preset-DAmO4B54.js.map +0 -1
  77. package/src/recipes/datePicker.ts +0 -212
  78. package/src/recipes/timePicker.ts +0 -199
@@ -13,6 +13,18 @@
13
13
  "<Box />"
14
14
  ]
15
15
  },
16
+ {
17
+ "name": "breakpointIndicator",
18
+ "description": "",
19
+ "variants": {},
20
+ "defaultVariants": {},
21
+ "functionExamples": [
22
+ "breakpointIndicator()"
23
+ ],
24
+ "jsxExamples": [
25
+ "<BreakpointIndicator />"
26
+ ]
27
+ },
16
28
  {
17
29
  "name": "card",
18
30
  "description": "",
@@ -25,8 +37,7 @@
25
37
  "overlay"
26
38
  ],
27
39
  "interactive": [
28
- "true",
29
- "false"
40
+ "true"
30
41
  ]
31
42
  },
32
43
  "defaultVariants": {
@@ -140,13 +151,70 @@
140
151
  {
141
152
  "name": "icon",
142
153
  "description": "",
143
- "variants": {},
154
+ "variants": {
155
+ "size": [
156
+ "0",
157
+ "1",
158
+ "2",
159
+ "3",
160
+ "4",
161
+ "5",
162
+ "6",
163
+ "7",
164
+ "8",
165
+ "9",
166
+ "10",
167
+ "12",
168
+ "14",
169
+ "16",
170
+ "20",
171
+ "22",
172
+ "24",
173
+ "28",
174
+ "32",
175
+ "40",
176
+ "48",
177
+ "56",
178
+ "64",
179
+ "72",
180
+ "80",
181
+ "88",
182
+ "96",
183
+ "104",
184
+ "112",
185
+ "120",
186
+ "128",
187
+ "136",
188
+ "144",
189
+ "152",
190
+ "160",
191
+ "168",
192
+ "176",
193
+ "184",
194
+ "192",
195
+ "200",
196
+ "208",
197
+ "216",
198
+ "224",
199
+ "232",
200
+ "240",
201
+ "248",
202
+ "256",
203
+ "264",
204
+ "272",
205
+ "280",
206
+ "sm",
207
+ "md",
208
+ "lg",
209
+ "xl"
210
+ ]
211
+ },
144
212
  "defaultVariants": {},
145
213
  "functionExamples": [
146
- "icon()"
214
+ "icon({ size: '0' })"
147
215
  ],
148
216
  "jsxExamples": [
149
- "<Icon />"
217
+ "<Icon size=\"0\" />"
150
218
  ]
151
219
  },
152
220
  {
@@ -170,6 +238,9 @@
170
238
  "underline": [
171
239
  "true"
172
240
  ],
241
+ "dashedUnderline": [
242
+ "true"
243
+ ],
173
244
  "truncate": [
174
245
  "true"
175
246
  ],
@@ -210,24 +281,26 @@
210
281
  "label({ bold: true })",
211
282
  "label({ italic: true })",
212
283
  "label({ underline: true })",
284
+ "label({ dashedUnderline: true })",
213
285
  "label({ truncate: true })",
214
286
  "label({ allCaps: true })",
215
287
  "label({ size: '10' })",
216
288
  "label({ weight: 'light' })",
217
289
  "label({ _disabled: true })",
218
- "label({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allCaps: true, size: '10', weight: 'light', _disabled: true })"
290
+ "label({ family: 'heading', bold: true, italic: true, underline: true, dashedUnderline: true, truncate: true, allCaps: true, size: '10', weight: 'light', _disabled: true })"
219
291
  ],
220
292
  "jsxExamples": [
221
293
  "<Label family=\"heading\" />",
222
294
  "<Label bold={true} />",
223
295
  "<Label italic={true} />",
224
296
  "<Label underline={true} />",
297
+ "<Label dashedUnderline={true} />",
225
298
  "<Label truncate={true} />",
226
299
  "<Label allCaps={true} />",
227
300
  "<Label size=\"10\" />",
228
301
  "<Label weight=\"light\" />",
229
302
  "<Label _disabled={true} />",
230
- "<Label family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" _disabled={true} />"
303
+ "<Label family=\"heading\" bold={true} italic={true} underline={true} dashedUnderline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" _disabled={true} />"
231
304
  ]
232
305
  },
233
306
  {
@@ -251,6 +324,9 @@
251
324
  "underline": [
252
325
  "true"
253
326
  ],
327
+ "dashedUnderline": [
328
+ "true"
329
+ ],
254
330
  "truncate": [
255
331
  "true"
256
332
  ],
@@ -278,9 +354,6 @@
278
354
  "medium",
279
355
  "bold",
280
356
  "black"
281
- ],
282
- "_disabled": [
283
- "true"
284
357
  ]
285
358
  },
286
359
  "defaultVariants": {
@@ -291,36 +364,44 @@
291
364
  "link({ bold: true })",
292
365
  "link({ italic: true })",
293
366
  "link({ underline: true })",
367
+ "link({ dashedUnderline: true })",
294
368
  "link({ truncate: true })",
295
369
  "link({ allCaps: true })",
296
370
  "link({ size: '10' })",
297
371
  "link({ weight: 'light' })",
298
- "link({ _disabled: true })",
299
- "link({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allCaps: true, size: '10', weight: 'light', _disabled: true })"
372
+ "link({ family: 'heading', bold: true, italic: true, underline: true, dashedUnderline: true, truncate: true, allCaps: true, size: '10', weight: 'light' })"
300
373
  ],
301
374
  "jsxExamples": [
302
375
  "<Link family=\"heading\" />",
303
376
  "<Link bold={true} />",
304
377
  "<Link italic={true} />",
305
378
  "<Link underline={true} />",
379
+ "<Link dashedUnderline={true} />",
306
380
  "<Link truncate={true} />",
307
381
  "<Link allCaps={true} />",
308
382
  "<Link size=\"10\" />",
309
383
  "<Link weight=\"light\" />",
310
- "<Link _disabled={true} />",
311
- "<Link family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" _disabled={true} />"
384
+ "<Link family=\"heading\" bold={true} italic={true} underline={true} dashedUnderline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" />"
312
385
  ]
313
386
  },
314
387
  {
315
388
  "name": "list",
316
389
  "description": "",
317
- "variants": {},
318
- "defaultVariants": {},
390
+ "variants": {
391
+ "density": [
392
+ "compact",
393
+ "comfortable",
394
+ "spacious"
395
+ ]
396
+ },
397
+ "defaultVariants": {
398
+ "density": "compact"
399
+ },
319
400
  "functionExamples": [
320
- "list()"
401
+ "list({ density: 'compact' })"
321
402
  ],
322
403
  "jsxExamples": [
323
- "<List />"
404
+ "<List density=\"compact\" />"
324
405
  ]
325
406
  },
326
407
  {
@@ -348,13 +429,40 @@
348
429
  ]
349
430
  },
350
431
  {
351
- "name": "tag",
432
+ "name": "skeleton",
352
433
  "description": "",
353
434
  "variants": {
354
435
  "variant": [
355
- "default",
356
- "bold"
436
+ "text",
437
+ "circular",
438
+ "rounded",
439
+ "rectangular"
357
440
  ],
441
+ "animation": [
442
+ "pulse",
443
+ "wave",
444
+ "false"
445
+ ]
446
+ },
447
+ "defaultVariants": {
448
+ "variant": "text",
449
+ "animation": "pulse"
450
+ },
451
+ "functionExamples": [
452
+ "skeleton({ variant: 'text' })",
453
+ "skeleton({ animation: 'pulse' })",
454
+ "skeleton({ variant: 'text', animation: 'pulse' })"
455
+ ],
456
+ "jsxExamples": [
457
+ "<Skeleton variant=\"text\" />",
458
+ "<Skeleton animation=\"pulse\" />",
459
+ "<Skeleton variant=\"text\" animation=\"pulse\" />"
460
+ ]
461
+ },
462
+ {
463
+ "name": "tag",
464
+ "description": "",
465
+ "variants": {
358
466
  "hue": [
359
467
  "gray",
360
468
  "red",
@@ -369,6 +477,10 @@
369
477
  "magenta",
370
478
  "tan"
371
479
  ],
480
+ "variant": [
481
+ "default",
482
+ "bold"
483
+ ],
372
484
  "iconBefore": [
373
485
  "true",
374
486
  "false"
@@ -387,20 +499,20 @@
387
499
  "hue": "gray"
388
500
  },
389
501
  "functionExamples": [
390
- "tag({ variant: 'default' })",
391
502
  "tag({ hue: 'gray' })",
503
+ "tag({ variant: 'default' })",
392
504
  "tag({ iconBefore: true })",
393
505
  "tag({ iconAfter: true })",
394
506
  "tag({ hasIcon: true })",
395
- "tag({ variant: 'default', hue: 'gray', iconBefore: true, iconAfter: true, hasIcon: true })"
507
+ "tag({ hue: 'gray', variant: 'default', iconBefore: true, iconAfter: true, hasIcon: true })"
396
508
  ],
397
509
  "jsxExamples": [
398
- "<Tag variant=\"default\" />",
399
510
  "<Tag hue=\"gray\" />",
511
+ "<Tag variant=\"default\" />",
400
512
  "<Tag iconBefore={true} />",
401
513
  "<Tag iconAfter={true} />",
402
514
  "<Tag hasIcon={true} />",
403
- "<Tag variant=\"default\" hue=\"gray\" iconBefore={true} iconAfter={true} hasIcon={true} />"
515
+ "<Tag hue=\"gray\" variant=\"default\" iconBefore={true} iconAfter={true} hasIcon={true} />"
404
516
  ]
405
517
  },
406
518
  {
@@ -424,6 +536,9 @@
424
536
  "underline": [
425
537
  "true"
426
538
  ],
539
+ "dashedUnderline": [
540
+ "true"
541
+ ],
427
542
  "truncate": [
428
543
  "true"
429
544
  ],
@@ -461,22 +576,24 @@
461
576
  "text({ bold: true })",
462
577
  "text({ italic: true })",
463
578
  "text({ underline: true })",
579
+ "text({ dashedUnderline: true })",
464
580
  "text({ truncate: true })",
465
581
  "text({ allCaps: true })",
466
582
  "text({ size: '10' })",
467
583
  "text({ weight: 'light' })",
468
- "text({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allCaps: true, size: '10', weight: 'light' })"
584
+ "text({ family: 'heading', bold: true, italic: true, underline: true, dashedUnderline: true, truncate: true, allCaps: true, size: '10', weight: 'light' })"
469
585
  ],
470
586
  "jsxExamples": [
471
587
  "<Text family=\"heading\" />",
472
588
  "<Text bold={true} />",
473
589
  "<Text italic={true} />",
474
590
  "<Text underline={true} />",
591
+ "<Text dashedUnderline={true} />",
475
592
  "<Text truncate={true} />",
476
593
  "<Text allCaps={true} />",
477
594
  "<Text size=\"10\" />",
478
595
  "<Text weight=\"light\" />",
479
- "<Text family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" />"
596
+ "<Text family=\"heading\" bold={true} italic={true} underline={true} dashedUnderline={true} truncate={true} allCaps={true} size=\"10\" weight=\"light\" />"
480
597
  ]
481
598
  },
482
599
  {
@@ -531,6 +648,35 @@
531
648
  "<ToggleInput />"
532
649
  ]
533
650
  },
651
+ {
652
+ "name": "autocomplete",
653
+ "variants": {
654
+ "layer": [
655
+ "elevated",
656
+ "modalFloating"
657
+ ],
658
+ "size": [
659
+ "sm",
660
+ "md",
661
+ "lg",
662
+ "xl"
663
+ ]
664
+ },
665
+ "defaultVariants": {
666
+ "size": "md",
667
+ "layer": "elevated"
668
+ },
669
+ "functionExamples": [
670
+ "autocomplete({ layer: 'elevated' })",
671
+ "autocomplete({ size: 'sm' })",
672
+ "autocomplete({ layer: 'elevated', size: 'sm' })"
673
+ ],
674
+ "jsxExamples": [
675
+ "<Autocomplete layer=\"elevated\" />",
676
+ "<Autocomplete size=\"sm\" />",
677
+ "<Autocomplete layer=\"elevated\" size=\"sm\" />"
678
+ ]
679
+ },
534
680
  {
535
681
  "name": "avatar",
536
682
  "variants": {
@@ -569,7 +715,8 @@
569
715
  "size": [
570
716
  "sm",
571
717
  "md",
572
- "lg"
718
+ "lg",
719
+ "xl"
573
720
  ],
574
721
  "standalone": [
575
722
  "true",
@@ -624,15 +771,13 @@
624
771
  "name": "button",
625
772
  "variants": {
626
773
  "variant": [
627
- "default",
774
+ "standard",
628
775
  "primary",
629
- "ghost",
630
- "subtle",
631
776
  "hollow",
777
+ "ghost",
632
778
  "danger",
633
779
  "selected",
634
- "selectedBold",
635
- "selectedSubtle"
780
+ "selectedBold"
636
781
  ],
637
782
  "size": [
638
783
  "sm",
@@ -640,30 +785,49 @@
640
785
  "lg",
641
786
  "xl"
642
787
  ],
643
- "iconBefore": [
788
+ "before": [
644
789
  "true"
645
790
  ],
646
- "iconAfter": [
791
+ "after": [
647
792
  "true"
648
793
  ]
649
794
  },
650
795
  "defaultVariants": {
651
- "variant": "default",
796
+ "variant": "standard",
652
797
  "size": "md"
653
798
  },
654
799
  "functionExamples": [
655
- "button({ variant: 'default' })",
800
+ "button({ variant: 'standard' })",
656
801
  "button({ size: 'sm' })",
657
- "button({ iconBefore: true })",
658
- "button({ iconAfter: true })",
659
- "button({ variant: 'default', size: 'sm', iconBefore: true, iconAfter: true })"
802
+ "button({ before: true })",
803
+ "button({ after: true })",
804
+ "button({ variant: 'standard', size: 'sm', before: true, after: true })"
660
805
  ],
661
806
  "jsxExamples": [
662
- "<Button variant=\"default\" />",
807
+ "<Button variant=\"standard\" />",
663
808
  "<Button size=\"sm\" />",
664
- "<Button iconBefore={true} />",
665
- "<Button iconAfter={true} />",
666
- "<Button variant=\"default\" size=\"sm\" iconBefore={true} iconAfter={true} />"
809
+ "<Button before={true} />",
810
+ "<Button after={true} />",
811
+ "<Button variant=\"standard\" size=\"sm\" before={true} after={true} />"
812
+ ]
813
+ },
814
+ {
815
+ "name": "calendar",
816
+ "variants": {
817
+ "type": [
818
+ "days",
819
+ "months",
820
+ "years"
821
+ ]
822
+ },
823
+ "defaultVariants": {
824
+ "type": "days"
825
+ },
826
+ "functionExamples": [
827
+ "calendar({ type: 'days' })"
828
+ ],
829
+ "jsxExamples": [
830
+ "<Calendar type=\"days\" />"
667
831
  ]
668
832
  },
669
833
  {
@@ -683,13 +847,17 @@
683
847
  "size": [
684
848
  "sm",
685
849
  "md",
686
- "lg"
850
+ "lg",
851
+ "xl"
687
852
  ],
688
853
  "before": [
689
854
  "true"
690
855
  ],
691
856
  "after": [
692
857
  "true"
858
+ ],
859
+ "dismissable": [
860
+ "true"
693
861
  ]
694
862
  },
695
863
  "defaultVariants": {
@@ -699,32 +867,37 @@
699
867
  "chip({ size: 'sm' })",
700
868
  "chip({ before: true })",
701
869
  "chip({ after: true })",
702
- "chip({ size: 'sm', before: true, after: true })"
870
+ "chip({ dismissable: true })",
871
+ "chip({ size: 'sm', before: true, after: true, dismissable: true })"
703
872
  ],
704
873
  "jsxExamples": [
705
874
  "<Chip size=\"sm\" />",
706
875
  "<Chip before={true} />",
707
876
  "<Chip after={true} />",
708
- "<Chip size=\"sm\" before={true} after={true} />"
877
+ "<Chip dismissable={true} />",
878
+ "<Chip size=\"sm\" before={true} after={true} dismissable={true} />"
709
879
  ]
710
880
  },
711
881
  {
712
- "name": "datePicker",
713
- "variants": {
714
- "size": [
715
- "sm",
716
- "md",
717
- "lg"
718
- ]
719
- },
720
- "defaultVariants": {
721
- "size": "md"
722
- },
882
+ "name": "dateMenus",
883
+ "variants": {},
884
+ "defaultVariants": {},
723
885
  "functionExamples": [
724
- "datePicker({ size: 'sm' })"
886
+ "dateMenus()"
725
887
  ],
726
888
  "jsxExamples": [
727
- "<DatePicker size=\"sm\" />"
889
+ "<DateMenus />"
890
+ ]
891
+ },
892
+ {
893
+ "name": "dateTimeMenus",
894
+ "variants": {},
895
+ "defaultVariants": {},
896
+ "functionExamples": [
897
+ "dateTimeMenus()"
898
+ ],
899
+ "jsxExamples": [
900
+ "<DateTimeMenus />"
728
901
  ]
729
902
  },
730
903
  {
@@ -760,15 +933,13 @@
760
933
  "name": "iconButton",
761
934
  "variants": {
762
935
  "variant": [
763
- "default",
936
+ "standard",
764
937
  "primary",
765
- "ghost",
766
- "subtle",
767
938
  "hollow",
939
+ "ghost",
768
940
  "danger",
769
941
  "selected",
770
- "selectedBold",
771
- "selectedSubtle"
942
+ "selectedBold"
772
943
  ],
773
944
  "size": [
774
945
  "sm",
@@ -778,18 +949,36 @@
778
949
  ]
779
950
  },
780
951
  "defaultVariants": {
781
- "variant": "default",
952
+ "variant": "standard",
782
953
  "size": "md"
783
954
  },
784
955
  "functionExamples": [
785
- "iconButton({ variant: 'default' })",
956
+ "iconButton({ variant: 'standard' })",
786
957
  "iconButton({ size: 'sm' })",
787
- "iconButton({ variant: 'default', size: 'sm' })"
958
+ "iconButton({ variant: 'standard', size: 'sm' })"
788
959
  ],
789
960
  "jsxExamples": [
790
- "<IconButton variant=\"default\" />",
961
+ "<IconButton variant=\"standard\" />",
791
962
  "<IconButton size=\"sm\" />",
792
- "<IconButton variant=\"default\" size=\"sm\" />"
963
+ "<IconButton variant=\"standard\" size=\"sm\" />"
964
+ ]
965
+ },
966
+ {
967
+ "name": "kbd",
968
+ "variants": {
969
+ "variant": [
970
+ "default",
971
+ "symbol"
972
+ ]
973
+ },
974
+ "defaultVariants": {
975
+ "variant": "default"
976
+ },
977
+ "functionExamples": [
978
+ "kbd({ variant: 'default' })"
979
+ ],
980
+ "jsxExamples": [
981
+ "<Kbd variant=\"default\" />"
793
982
  ]
794
983
  },
795
984
  {
@@ -840,8 +1029,7 @@
840
1029
  },
841
1030
  "defaultVariants": {
842
1031
  "variant": "default",
843
- "density": "compact",
844
- "selected": false
1032
+ "density": "compact"
845
1033
  },
846
1034
  "functionExamples": [
847
1035
  "listItem({ variant: 'default' })",
@@ -863,6 +1051,10 @@
863
1051
  {
864
1052
  "name": "menu",
865
1053
  "variants": {
1054
+ "layer": [
1055
+ "elevated",
1056
+ "modalFloating"
1057
+ ],
866
1058
  "density": [
867
1059
  "compact",
868
1060
  "comfortable",
@@ -873,17 +1065,20 @@
873
1065
  ]
874
1066
  },
875
1067
  "defaultVariants": {
876
- "density": "compact"
1068
+ "density": "compact",
1069
+ "layer": "elevated"
877
1070
  },
878
1071
  "functionExamples": [
1072
+ "menu({ layer: 'elevated' })",
879
1073
  "menu({ density: 'compact' })",
880
1074
  "menu({ panel: true })",
881
- "menu({ density: 'compact', panel: true })"
1075
+ "menu({ layer: 'elevated', density: 'compact', panel: true })"
882
1076
  ],
883
1077
  "jsxExamples": [
1078
+ "<Menu layer=\"elevated\" />",
884
1079
  "<Menu density=\"compact\" />",
885
1080
  "<Menu panel={true} />",
886
- "<Menu density=\"compact\" panel={true} />"
1081
+ "<Menu layer=\"elevated\" density=\"compact\" panel={true} />"
887
1082
  ]
888
1083
  },
889
1084
  {
@@ -895,26 +1090,26 @@
895
1090
  "lg",
896
1091
  "xl",
897
1092
  "full",
898
- "mobile"
1093
+ "fullPage"
899
1094
  ],
900
- "variant": [
901
- "default",
902
- "confirmation"
1095
+ "position": [
1096
+ "centered",
1097
+ "top"
903
1098
  ]
904
1099
  },
905
1100
  "defaultVariants": {
906
- "variant": "default",
907
- "size": "md"
1101
+ "size": "md",
1102
+ "position": "centered"
908
1103
  },
909
1104
  "functionExamples": [
910
1105
  "modal({ size: 'sm' })",
911
- "modal({ variant: 'default' })",
912
- "modal({ size: 'sm', variant: 'default' })"
1106
+ "modal({ position: 'centered' })",
1107
+ "modal({ size: 'sm', position: 'centered' })"
913
1108
  ],
914
1109
  "jsxExamples": [
915
1110
  "<Modal size=\"sm\" />",
916
- "<Modal variant=\"default\" />",
917
- "<Modal size=\"sm\" variant=\"default\" />"
1111
+ "<Modal position=\"centered\" />",
1112
+ "<Modal size=\"sm\" position=\"centered\" />"
918
1113
  ]
919
1114
  },
920
1115
  {
@@ -928,6 +1123,71 @@
928
1123
  "<Radio />"
929
1124
  ]
930
1125
  },
1126
+ {
1127
+ "name": "segmentedFields",
1128
+ "variants": {
1129
+ "size": [
1130
+ "sm",
1131
+ "md",
1132
+ "lg",
1133
+ "xl"
1134
+ ],
1135
+ "field": [
1136
+ "date",
1137
+ "time",
1138
+ "dateTime"
1139
+ ],
1140
+ "range": [
1141
+ "date",
1142
+ "time"
1143
+ ],
1144
+ "before": [
1145
+ "true"
1146
+ ],
1147
+ "after": [
1148
+ "true"
1149
+ ]
1150
+ },
1151
+ "defaultVariants": {
1152
+ "size": "md"
1153
+ },
1154
+ "functionExamples": [
1155
+ "segmentedFields({ size: 'sm' })",
1156
+ "segmentedFields({ field: 'date' })",
1157
+ "segmentedFields({ range: 'date' })",
1158
+ "segmentedFields({ before: true })",
1159
+ "segmentedFields({ after: true })",
1160
+ "segmentedFields({ size: 'sm', field: 'date', range: 'date', before: true, after: true })"
1161
+ ],
1162
+ "jsxExamples": [
1163
+ "<SegmentedFields size=\"sm\" />",
1164
+ "<SegmentedFields field=\"date\" />",
1165
+ "<SegmentedFields range=\"date\" />",
1166
+ "<SegmentedFields before={true} />",
1167
+ "<SegmentedFields after={true} />",
1168
+ "<SegmentedFields size=\"sm\" field=\"date\" range=\"date\" before={true} after={true} />"
1169
+ ]
1170
+ },
1171
+ {
1172
+ "name": "segmentedInputs",
1173
+ "variants": {
1174
+ "size": [
1175
+ "sm",
1176
+ "md",
1177
+ "lg",
1178
+ "xl"
1179
+ ]
1180
+ },
1181
+ "defaultVariants": {
1182
+ "size": "md"
1183
+ },
1184
+ "functionExamples": [
1185
+ "segmentedInputs({ size: 'sm' })"
1186
+ ],
1187
+ "jsxExamples": [
1188
+ "<SegmentedInputs size=\"sm\" />"
1189
+ ]
1190
+ },
931
1191
  {
932
1192
  "name": "select",
933
1193
  "variants": {
@@ -989,10 +1249,10 @@
989
1249
  "lg",
990
1250
  "xl"
991
1251
  ],
992
- "iconBefore": [
1252
+ "before": [
993
1253
  "true"
994
1254
  ],
995
- "iconAfter": [
1255
+ "after": [
996
1256
  "true"
997
1257
  ],
998
1258
  "autoSize": [
@@ -1004,36 +1264,32 @@
1004
1264
  },
1005
1265
  "functionExamples": [
1006
1266
  "textInput({ size: 'sm' })",
1007
- "textInput({ iconBefore: true })",
1008
- "textInput({ iconAfter: true })",
1267
+ "textInput({ before: true })",
1268
+ "textInput({ after: true })",
1009
1269
  "textInput({ autoSize: true })",
1010
- "textInput({ size: 'sm', iconBefore: true, iconAfter: true, autoSize: true })"
1270
+ "textInput({ size: 'sm', before: true, after: true, autoSize: true })"
1011
1271
  ],
1012
1272
  "jsxExamples": [
1013
1273
  "<TextInput size=\"sm\" />",
1014
- "<TextInput iconBefore={true} />",
1015
- "<TextInput iconAfter={true} />",
1274
+ "<TextInput before={true} />",
1275
+ "<TextInput after={true} />",
1016
1276
  "<TextInput autoSize={true} />",
1017
- "<TextInput size=\"sm\" iconBefore={true} iconAfter={true} autoSize={true} />"
1277
+ "<TextInput size=\"sm\" before={true} after={true} autoSize={true} />"
1018
1278
  ]
1019
1279
  },
1020
1280
  {
1021
- "name": "timePicker",
1281
+ "name": "timeMenus",
1022
1282
  "variants": {
1023
- "size": [
1024
- "sm",
1025
- "md",
1026
- "lg"
1283
+ "stretch": [
1284
+ "true"
1027
1285
  ]
1028
1286
  },
1029
- "defaultVariants": {
1030
- "size": "md"
1031
- },
1287
+ "defaultVariants": {},
1032
1288
  "functionExamples": [
1033
- "timePicker({ size: 'sm' })"
1289
+ "timeMenus({ stretch: true })"
1034
1290
  ],
1035
1291
  "jsxExamples": [
1036
- "<TimePicker size=\"sm\" />"
1292
+ "<TimeMenus stretch={true} />"
1037
1293
  ]
1038
1294
  },
1039
1295
  {