rocksolidjs 0.1.2 → 0.1.4
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/AccordionContext/AccordionContext.js +1 -1
- package/dist/AccordionDetails/AccordionDetails.d.ts +2 -1
- package/dist/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/AccordionDetails/style.d.ts +48 -0
- package/dist/AccordionDetails/style.js +1 -1
- package/dist/AccordionSummary/AccordionSummary.d.ts +6 -4
- package/dist/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/Alert/Alert.d.ts +8 -6
- package/dist/Alert/Alert.js +1 -1
- package/dist/Alert/style.d.ts +6 -0
- package/dist/Alert/style.js +1 -1
- package/dist/Avatar/Avatar.d.ts +5 -3
- package/dist/Avatar/Avatar.js +1 -1
- package/dist/Avatar/style.js +1 -1
- package/dist/Badge/Badge.d.ts +7 -5
- package/dist/Badge/Badge.js +1 -1
- package/dist/Badge/style.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +7 -5
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/Button/Button.d.ts +8 -6
- package/dist/Button/Button.js +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/style.d.ts +48 -0
- package/dist/Button/style.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +19 -0
- package/dist/ButtonGroup/ButtonGroup.js +1 -0
- package/dist/ButtonGroup/ButtonGroupContext.d.ts +12 -0
- package/dist/ButtonGroup/ButtonGroupContext.js +1 -0
- package/dist/ButtonGroup/index.d.ts +2 -0
- package/dist/ButtonGroup/index.js +1 -0
- package/dist/ButtonGroup/style.d.ts +88 -0
- package/dist/ButtonGroup/style.js +1 -0
- package/dist/CardFooter/style.d.ts +2 -2
- package/dist/CardFooter/style.js +1 -1
- package/dist/CardTitle/CardTitle.d.ts +4 -4
- package/dist/Checkbox/Checkbox.d.ts +8 -4
- package/dist/Checkbox/Checkbox.js +1 -1
- package/dist/Chip/Chip.d.ts +6 -4
- package/dist/Chip/Chip.js +1 -1
- package/dist/Chip/style.d.ts +6 -18
- package/dist/Chip/style.js +1 -1
- package/dist/Dialog/Dialog.d.ts +7 -4
- package/dist/Dialog/Dialog.js +1 -1
- package/dist/Dialog/style.js +1 -1
- package/dist/DialogTitle/DialogTitle.d.ts +4 -4
- package/dist/Divider/Divider.d.ts +7 -0
- package/dist/Divider/Divider.js +1 -1
- package/dist/Divider/style.d.ts +138 -18
- package/dist/Divider/style.js +1 -1
- package/dist/IconButton/IconButton.d.ts +4 -3
- package/dist/IconButton/IconButton.js +1 -1
- package/dist/IconButton/style.js +1 -1
- package/dist/Input/Input.d.ts +7 -5
- package/dist/Input/Input.js +1 -1
- package/dist/Input/style.js +1 -1
- package/dist/Link/style.d.ts +6 -6
- package/dist/Link/style.js +1 -1
- package/dist/Progress/Progress.d.ts +7 -5
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/style.js +1 -1
- package/dist/Radio/Radio.d.ts +8 -4
- package/dist/Radio/Radio.js +1 -1
- package/dist/Select/Select.d.ts +10 -2
- package/dist/Select/Select.js +1 -1
- package/dist/Select/style.d.ts +156 -78
- package/dist/Select/style.js +1 -1
- package/dist/Skeleton/Skeleton.d.ts +2 -2
- package/dist/Skeleton/Skeleton.js +1 -1
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/Spinner.js +1 -1
- package/dist/Switch/Switch.d.ts +6 -4
- package/dist/Switch/Switch.js +1 -1
- package/dist/Switch/style.js +1 -1
- package/dist/Tab/Tab.js +1 -1
- package/dist/Tab/style.js +1 -1
- package/dist/TableCell/TableCell.js +1 -1
- package/dist/TableContext/TableContext.d.ts +1 -1
- package/dist/TableContext/TableContext.js +1 -1
- package/dist/TabsContext/context.js +1 -1
- package/dist/ThemeProvider/componentsTV.d.ts +245 -58
- package/dist/ThemeProvider/componentsTV.js +1 -1
- package/dist/_chunks/Button-D7kRTDWq.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/styles/createTheme.js +2 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/theme/colors.js +1 -1
- package/dist/styles/theme/disabled.js +1 -1
- package/dist/styles/theme/themeSchema.js +1 -1
- package/dist/styles/theme/utilities.js +1 -1
- package/dist/styles/useTheme.js +1 -1
- package/dist/types/ExtendedComponentProps.d.ts +6 -0
- package/dist/types/ExtendedComponentProps.js +0 -0
- package/dist/types/Prettify.d.ts +3 -0
- package/dist/types/Prettify.js +0 -0
- package/package.json +15 -2
- package/dist/_chunks/createTheme-DT5vPeEE.js +0 -2
- package/dist/_chunks/themeSchema-BFl6XiaJ.js +0 -1
|
@@ -7,6 +7,14 @@ declare const ComponentsTV: {
|
|
|
7
7
|
base: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
expanded: {
|
|
11
|
+
true: {
|
|
12
|
+
base: string;
|
|
13
|
+
};
|
|
14
|
+
false: {
|
|
15
|
+
base: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
10
18
|
}, {
|
|
11
19
|
base: string[];
|
|
12
20
|
content: string[];
|
|
@@ -17,6 +25,14 @@ declare const ComponentsTV: {
|
|
|
17
25
|
base: string;
|
|
18
26
|
};
|
|
19
27
|
};
|
|
28
|
+
expanded: {
|
|
29
|
+
true: {
|
|
30
|
+
base: string;
|
|
31
|
+
};
|
|
32
|
+
false: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
20
36
|
}, {
|
|
21
37
|
base: string[];
|
|
22
38
|
content: string[];
|
|
@@ -27,6 +43,14 @@ declare const ComponentsTV: {
|
|
|
27
43
|
base: string;
|
|
28
44
|
};
|
|
29
45
|
};
|
|
46
|
+
expanded: {
|
|
47
|
+
true: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
false: {
|
|
51
|
+
base: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
30
54
|
}, {
|
|
31
55
|
base: string[];
|
|
32
56
|
content: string[];
|
|
@@ -45,6 +69,7 @@ declare const ComponentsTV: {
|
|
|
45
69
|
base: string[];
|
|
46
70
|
content: string;
|
|
47
71
|
icon: string;
|
|
72
|
+
closeButton: string[];
|
|
48
73
|
}, undefined, {
|
|
49
74
|
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
50
75
|
variant: {
|
|
@@ -58,6 +83,7 @@ declare const ComponentsTV: {
|
|
|
58
83
|
base: string[];
|
|
59
84
|
content: string;
|
|
60
85
|
icon: string;
|
|
86
|
+
closeButton: string[];
|
|
61
87
|
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
62
88
|
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
63
89
|
variant: {
|
|
@@ -71,6 +97,7 @@ declare const ComponentsTV: {
|
|
|
71
97
|
base: string[];
|
|
72
98
|
content: string;
|
|
73
99
|
icon: string;
|
|
100
|
+
closeButton: string[];
|
|
74
101
|
}>>;
|
|
75
102
|
avatar: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
76
103
|
color: Record<"default" | "success" | "warning" | "info" | "error", {
|
|
@@ -309,6 +336,14 @@ declare const ComponentsTV: {
|
|
|
309
336
|
};
|
|
310
337
|
false: "";
|
|
311
338
|
};
|
|
339
|
+
isChildOfButtonGroup: {
|
|
340
|
+
true: {
|
|
341
|
+
base: string[];
|
|
342
|
+
};
|
|
343
|
+
false: {
|
|
344
|
+
base: string[];
|
|
345
|
+
};
|
|
346
|
+
};
|
|
312
347
|
}, {
|
|
313
348
|
base: string[];
|
|
314
349
|
startIcon: string;
|
|
@@ -348,6 +383,14 @@ declare const ComponentsTV: {
|
|
|
348
383
|
};
|
|
349
384
|
false: "";
|
|
350
385
|
};
|
|
386
|
+
isChildOfButtonGroup: {
|
|
387
|
+
true: {
|
|
388
|
+
base: string[];
|
|
389
|
+
};
|
|
390
|
+
false: {
|
|
391
|
+
base: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
351
394
|
}, {
|
|
352
395
|
base: string[];
|
|
353
396
|
startIcon: string;
|
|
@@ -387,11 +430,62 @@ declare const ComponentsTV: {
|
|
|
387
430
|
};
|
|
388
431
|
false: "";
|
|
389
432
|
};
|
|
433
|
+
isChildOfButtonGroup: {
|
|
434
|
+
true: {
|
|
435
|
+
base: string[];
|
|
436
|
+
};
|
|
437
|
+
false: {
|
|
438
|
+
base: string[];
|
|
439
|
+
};
|
|
440
|
+
};
|
|
390
441
|
}, {
|
|
391
442
|
base: string[];
|
|
392
443
|
startIcon: string;
|
|
393
444
|
endIcon: string;
|
|
394
445
|
}>>;
|
|
446
|
+
buttonGroup: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
447
|
+
disabled: {
|
|
448
|
+
true: "";
|
|
449
|
+
false: "";
|
|
450
|
+
};
|
|
451
|
+
fullWidth: {
|
|
452
|
+
true: "w-full";
|
|
453
|
+
false: "";
|
|
454
|
+
};
|
|
455
|
+
orientation: {
|
|
456
|
+
horizontal: string[];
|
|
457
|
+
vertical: string[];
|
|
458
|
+
};
|
|
459
|
+
variant: Record<keyof import('..').ThemeColorVariants, string>;
|
|
460
|
+
}, undefined, string[], {
|
|
461
|
+
disabled: {
|
|
462
|
+
true: "";
|
|
463
|
+
false: "";
|
|
464
|
+
};
|
|
465
|
+
fullWidth: {
|
|
466
|
+
true: "w-full";
|
|
467
|
+
false: "";
|
|
468
|
+
};
|
|
469
|
+
orientation: {
|
|
470
|
+
horizontal: string[];
|
|
471
|
+
vertical: string[];
|
|
472
|
+
};
|
|
473
|
+
variant: Record<keyof import('..').ThemeColorVariants, string>;
|
|
474
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
475
|
+
disabled: {
|
|
476
|
+
true: "";
|
|
477
|
+
false: "";
|
|
478
|
+
};
|
|
479
|
+
fullWidth: {
|
|
480
|
+
true: "w-full";
|
|
481
|
+
false: "";
|
|
482
|
+
};
|
|
483
|
+
orientation: {
|
|
484
|
+
horizontal: string[];
|
|
485
|
+
vertical: string[];
|
|
486
|
+
};
|
|
487
|
+
variant: Record<keyof import('..').ThemeColorVariants, string>;
|
|
488
|
+
}, undefined>>;
|
|
395
489
|
card: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
396
490
|
variant: {
|
|
397
491
|
filled: string[];
|
|
@@ -418,7 +512,7 @@ declare const ComponentsTV: {
|
|
|
418
512
|
cardTitle: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
419
513
|
cardDescription: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
420
514
|
cardContent: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
421
|
-
cardFooter: (_theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "flex items-center gap-2 px-4
|
|
515
|
+
cardFooter: (_theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "flex items-center gap-2 px-4 pt-3 pb-4", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
422
516
|
checkbox: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
423
517
|
checked: {
|
|
424
518
|
true: {};
|
|
@@ -494,9 +588,7 @@ declare const ComponentsTV: {
|
|
|
494
588
|
};
|
|
495
589
|
};
|
|
496
590
|
clickable: {
|
|
497
|
-
true: {
|
|
498
|
-
base: string[];
|
|
499
|
-
};
|
|
591
|
+
true: {};
|
|
500
592
|
false: {};
|
|
501
593
|
};
|
|
502
594
|
hasDeleteIcon: {
|
|
@@ -543,9 +635,7 @@ declare const ComponentsTV: {
|
|
|
543
635
|
};
|
|
544
636
|
};
|
|
545
637
|
clickable: {
|
|
546
|
-
true: {
|
|
547
|
-
base: string[];
|
|
548
|
-
};
|
|
638
|
+
true: {};
|
|
549
639
|
false: {};
|
|
550
640
|
};
|
|
551
641
|
hasDeleteIcon: {
|
|
@@ -592,9 +682,7 @@ declare const ComponentsTV: {
|
|
|
592
682
|
};
|
|
593
683
|
};
|
|
594
684
|
clickable: {
|
|
595
|
-
true: {
|
|
596
|
-
base: string[];
|
|
597
|
-
};
|
|
685
|
+
true: {};
|
|
598
686
|
false: {};
|
|
599
687
|
};
|
|
600
688
|
hasDeleteIcon: {
|
|
@@ -630,21 +718,81 @@ declare const ComponentsTV: {
|
|
|
630
718
|
dialogActions: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
631
719
|
dialogTitle: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
632
720
|
divider: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
721
|
+
align: {
|
|
722
|
+
start: {};
|
|
723
|
+
center: {};
|
|
724
|
+
end: {};
|
|
725
|
+
};
|
|
726
|
+
hasChildren: {
|
|
727
|
+
true: {};
|
|
728
|
+
false: {};
|
|
729
|
+
};
|
|
633
730
|
orientation: {
|
|
634
|
-
horizontal:
|
|
635
|
-
|
|
731
|
+
horizontal: {
|
|
732
|
+
base: string;
|
|
733
|
+
divider: string;
|
|
734
|
+
};
|
|
735
|
+
vertical: {
|
|
736
|
+
base: string;
|
|
737
|
+
divider: string;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
}, {
|
|
741
|
+
base: string[];
|
|
742
|
+
divider: string[];
|
|
743
|
+
beforeDivider: string;
|
|
744
|
+
afterDivider: string;
|
|
745
|
+
}, undefined, {
|
|
746
|
+
align: {
|
|
747
|
+
start: {};
|
|
748
|
+
center: {};
|
|
749
|
+
end: {};
|
|
750
|
+
};
|
|
751
|
+
hasChildren: {
|
|
752
|
+
true: {};
|
|
753
|
+
false: {};
|
|
636
754
|
};
|
|
637
|
-
}, undefined, string[], {
|
|
638
755
|
orientation: {
|
|
639
|
-
horizontal:
|
|
640
|
-
|
|
756
|
+
horizontal: {
|
|
757
|
+
base: string;
|
|
758
|
+
divider: string;
|
|
759
|
+
};
|
|
760
|
+
vertical: {
|
|
761
|
+
base: string;
|
|
762
|
+
divider: string;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
}, {
|
|
766
|
+
base: string[];
|
|
767
|
+
divider: string[];
|
|
768
|
+
beforeDivider: string;
|
|
769
|
+
afterDivider: string;
|
|
770
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
771
|
+
align: {
|
|
772
|
+
start: {};
|
|
773
|
+
center: {};
|
|
774
|
+
end: {};
|
|
775
|
+
};
|
|
776
|
+
hasChildren: {
|
|
777
|
+
true: {};
|
|
778
|
+
false: {};
|
|
641
779
|
};
|
|
642
|
-
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
643
780
|
orientation: {
|
|
644
|
-
horizontal:
|
|
645
|
-
|
|
781
|
+
horizontal: {
|
|
782
|
+
base: string;
|
|
783
|
+
divider: string;
|
|
784
|
+
};
|
|
785
|
+
vertical: {
|
|
786
|
+
base: string;
|
|
787
|
+
divider: string;
|
|
788
|
+
};
|
|
646
789
|
};
|
|
647
|
-
},
|
|
790
|
+
}, {
|
|
791
|
+
base: string[];
|
|
792
|
+
divider: string[];
|
|
793
|
+
beforeDivider: string;
|
|
794
|
+
afterDivider: string;
|
|
795
|
+
}>>;
|
|
648
796
|
iconButton: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
649
797
|
size: {
|
|
650
798
|
small: "size-6 text-lg";
|
|
@@ -839,19 +987,19 @@ declare const ComponentsTV: {
|
|
|
839
987
|
}, undefined>>;
|
|
840
988
|
link: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
841
989
|
underline: {
|
|
842
|
-
none: "";
|
|
990
|
+
none: "no-underline";
|
|
843
991
|
hover: "hover:underline";
|
|
844
992
|
always: "underline";
|
|
845
993
|
};
|
|
846
994
|
}, undefined, string[], {
|
|
847
995
|
underline: {
|
|
848
|
-
none: "";
|
|
996
|
+
none: "no-underline";
|
|
849
997
|
hover: "hover:underline";
|
|
850
998
|
always: "underline";
|
|
851
999
|
};
|
|
852
1000
|
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
853
1001
|
underline: {
|
|
854
|
-
none: "";
|
|
1002
|
+
none: "no-underline";
|
|
855
1003
|
hover: "hover:underline";
|
|
856
1004
|
always: "underline";
|
|
857
1005
|
};
|
|
@@ -949,66 +1097,105 @@ declare const ComponentsTV: {
|
|
|
949
1097
|
input: string;
|
|
950
1098
|
}>>;
|
|
951
1099
|
select: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
952
|
-
color: Record<"default" | "success" | "warning" | "info" | "error",
|
|
1100
|
+
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
953
1101
|
disabled: {
|
|
954
|
-
true:
|
|
955
|
-
false:
|
|
1102
|
+
true: {};
|
|
1103
|
+
false: {};
|
|
956
1104
|
};
|
|
957
1105
|
variant: {
|
|
958
|
-
filled:
|
|
959
|
-
ghost:
|
|
960
|
-
outlined:
|
|
1106
|
+
filled: {};
|
|
1107
|
+
ghost: {};
|
|
1108
|
+
outlined: {
|
|
1109
|
+
base: string;
|
|
1110
|
+
};
|
|
961
1111
|
};
|
|
962
1112
|
size: {
|
|
963
|
-
small:
|
|
964
|
-
|
|
965
|
-
|
|
1113
|
+
small: {
|
|
1114
|
+
base: string;
|
|
1115
|
+
};
|
|
1116
|
+
medium: {
|
|
1117
|
+
base: string;
|
|
1118
|
+
};
|
|
1119
|
+
large: {
|
|
1120
|
+
base: string;
|
|
1121
|
+
};
|
|
966
1122
|
};
|
|
967
1123
|
fullWidth: {
|
|
968
|
-
true:
|
|
969
|
-
|
|
1124
|
+
true: {
|
|
1125
|
+
base: string;
|
|
1126
|
+
};
|
|
1127
|
+
false: {};
|
|
970
1128
|
};
|
|
971
|
-
},
|
|
972
|
-
|
|
1129
|
+
}, {
|
|
1130
|
+
base: string[];
|
|
1131
|
+
option: string[];
|
|
1132
|
+
}, undefined, {
|
|
1133
|
+
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
973
1134
|
disabled: {
|
|
974
|
-
true:
|
|
975
|
-
false:
|
|
1135
|
+
true: {};
|
|
1136
|
+
false: {};
|
|
976
1137
|
};
|
|
977
1138
|
variant: {
|
|
978
|
-
filled:
|
|
979
|
-
ghost:
|
|
980
|
-
outlined:
|
|
1139
|
+
filled: {};
|
|
1140
|
+
ghost: {};
|
|
1141
|
+
outlined: {
|
|
1142
|
+
base: string;
|
|
1143
|
+
};
|
|
981
1144
|
};
|
|
982
1145
|
size: {
|
|
983
|
-
small:
|
|
984
|
-
|
|
985
|
-
|
|
1146
|
+
small: {
|
|
1147
|
+
base: string;
|
|
1148
|
+
};
|
|
1149
|
+
medium: {
|
|
1150
|
+
base: string;
|
|
1151
|
+
};
|
|
1152
|
+
large: {
|
|
1153
|
+
base: string;
|
|
1154
|
+
};
|
|
986
1155
|
};
|
|
987
1156
|
fullWidth: {
|
|
988
|
-
true:
|
|
989
|
-
|
|
1157
|
+
true: {
|
|
1158
|
+
base: string;
|
|
1159
|
+
};
|
|
1160
|
+
false: {};
|
|
990
1161
|
};
|
|
991
|
-
},
|
|
992
|
-
|
|
1162
|
+
}, {
|
|
1163
|
+
base: string[];
|
|
1164
|
+
option: string[];
|
|
1165
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
1166
|
+
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
993
1167
|
disabled: {
|
|
994
|
-
true:
|
|
995
|
-
false:
|
|
1168
|
+
true: {};
|
|
1169
|
+
false: {};
|
|
996
1170
|
};
|
|
997
1171
|
variant: {
|
|
998
|
-
filled:
|
|
999
|
-
ghost:
|
|
1000
|
-
outlined:
|
|
1172
|
+
filled: {};
|
|
1173
|
+
ghost: {};
|
|
1174
|
+
outlined: {
|
|
1175
|
+
base: string;
|
|
1176
|
+
};
|
|
1001
1177
|
};
|
|
1002
1178
|
size: {
|
|
1003
|
-
small:
|
|
1004
|
-
|
|
1005
|
-
|
|
1179
|
+
small: {
|
|
1180
|
+
base: string;
|
|
1181
|
+
};
|
|
1182
|
+
medium: {
|
|
1183
|
+
base: string;
|
|
1184
|
+
};
|
|
1185
|
+
large: {
|
|
1186
|
+
base: string;
|
|
1187
|
+
};
|
|
1006
1188
|
};
|
|
1007
1189
|
fullWidth: {
|
|
1008
|
-
true:
|
|
1009
|
-
|
|
1190
|
+
true: {
|
|
1191
|
+
base: string;
|
|
1192
|
+
};
|
|
1193
|
+
false: {};
|
|
1010
1194
|
};
|
|
1011
|
-
},
|
|
1195
|
+
}, {
|
|
1196
|
+
base: string[];
|
|
1197
|
+
option: string[];
|
|
1198
|
+
}>>;
|
|
1012
1199
|
skeleton: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
1013
1200
|
variant: {
|
|
1014
1201
|
circle: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{accordion as e}from"../Accordion/style.js";import{accordionDetails as t}from"../AccordionDetails/style.js";import{accordionSummary as n}from"../AccordionSummary/style.js";import{alert as r}from"../Alert/style.js";import{avatar as i}from"../Avatar/style.js";import{backdrop as a}from"../Backdrop/style.js";import{badge as o}from"../Badge/style.js";import{breadcrumbs as s}from"../Breadcrumbs/style.js";import{button as c}from"../Button/style.js";import{
|
|
1
|
+
import{accordion as e}from"../Accordion/style.js";import{accordionDetails as t}from"../AccordionDetails/style.js";import{accordionSummary as n}from"../AccordionSummary/style.js";import{alert as r}from"../Alert/style.js";import{avatar as i}from"../Avatar/style.js";import{backdrop as a}from"../Backdrop/style.js";import{badge as o}from"../Badge/style.js";import{breadcrumbs as s}from"../Breadcrumbs/style.js";import{button as c}from"../Button/style.js";import{buttonGroup as l}from"../ButtonGroup/style.js";import{card as u}from"../Card/style.js";import{cardHeader as d}from"../CardHeader/style.js";import{cardTitle as f}from"../CardTitle/style.js";import{cardDescription as p}from"../CardDescription/style.js";import{cardFooter as m}from"../CardFooter/style.js";import{cardContent as h}from"../CardContent/style.js";import{checkbox as g}from"../Checkbox/style.js";import{chip as _}from"../Chip/style.js";import{dialog as v}from"../Dialog/style.js";import{dialogContent as y}from"../DialogContent/style.js";import{dialogActions as b}from"../DialogActions/style.js";import{dialogTitle as x}from"../DialogTitle/style.js";import{divider as S}from"../Divider/style.js";import{iconButton as C}from"../IconButton/style.js";import{input as w}from"../Input/style.js";import{label as T}from"../Label/style.js";import{link as E}from"../Link/style.js";import{progress as D}from"../Progress/style.js";import{radio as O}from"../Radio/style.js";import{select as k}from"../Select/style.js";import{skeleton as A}from"../Skeleton/style.js";import{spinner as j}from"../Spinner/style.js";import{switchTv as M}from"../Switch/style.js";import{table as N}from"../Table/style.js";import{tableCell as P}from"../TableCell/style.js";import{tableFooter as F}from"../TableFooter/style.js";import{tableRow as I}from"../TableRow/style.js";import{tab as L}from"../Tab/style.js";import{tabs as R}from"../Tabs/style.js";import{textarea as z}from"../Textarea/style.js";import{typography as B}from"../Typography/style.js";var V={accordion:e,accordionDetails:t,accordionSummary:n,alert:r,avatar:i,backdrop:a,badge:o,breadcrumbs:s,button:c,buttonGroup:l,card:u,cardHeader:d,cardTitle:f,cardDescription:p,cardContent:h,cardFooter:m,checkbox:g,chip:_,dialog:v,dialogContent:y,dialogActions:b,dialogTitle:x,divider:S,iconButton:C,input:w,label:T,link:E,progress:D,radio:O,select:k,skeleton:A,spinner:j,switch:M,table:N,tableCell:P,tableFooter:F,tableRow:I,tab:L,tabs:R,textarea:z,typography:B};export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../utils/cn.js";import t from"../Button/style.js";import{useThemeContext as n}from"../ThemeProvider/ThemeContext.js";import"../ThemeProvider/index.js";import"../types/Prettify.js";import"../types/ExtendedComponentProps.js";import{Dynamic as r,createComponent as i,insert as a,memo as o,mergeProps as s,spread as c,template as l}from"solid-js/web";import{Show as u,createContext as d,createMemo as f,mergeProps as p,splitProps as m,useContext as h}from"solid-js";import"tailwind-variants";var g=d(),_=()=>h(g),v=l(`<span>`),y=l=>{let d=p({as:`button`,color:`default`,variant:`solid`,size:`medium`},l),[h,g]=m(d,[`as`,`children`,`class`,`color`,`disabled`,`endIcon`,`fullWidth`,`size`,`startIcon`,`variant`,`slotProps`]),y=n(),b=_(),x=e=>{if(l[e]!==void 0)return l[e];if(b){let t=b[e]();if(t!==void 0)return t}return h[e]},S=f(()=>x(`disabled`)),C=f(()=>{let e={color:x(`color`),disabled:S(),fullWidth:x(`fullWidth`),size:x(`size`),variant:x(`variant`),isChildOfButtonGroup:!!b};return y?y.componentsTV.button(e):t(e)});return i(r,s({get component(){return h.as||`button`}},g,{get class(){return e(C().base(),h.class)},get disabled(){return S()},get children(){return[i(u,{get when(){return h.startIcon},get children(){var t=v();return c(t,s(()=>h.slotProps?.startIcon,{get class(){return e(C().startIcon(),h.slotProps?.startIcon?.class)}}),!1,!0),a(t,()=>h.startIcon),t}}),o(()=>h.children),i(u,{get when(){return h.endIcon},get children(){var t=v();return c(t,s(()=>h.slotProps?.endIcon,{get class(){return e(C().endIcon(),h.slotProps?.endIcon?.class)}}),!1,!0),a(t,()=>h.endIcon),t}})]}}))};export{g as n,_ as r,y as t};
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export * from './Breadcrumbs/Breadcrumbs';
|
|
|
22
22
|
/** Button */
|
|
23
23
|
export { default as Button } from './Button/Button';
|
|
24
24
|
export * from './Button/Button';
|
|
25
|
+
/** ButtonGroup */
|
|
26
|
+
export { default as ButtonGroup } from './ButtonGroup/ButtonGroup';
|
|
27
|
+
export * from './ButtonGroup/ButtonGroup';
|
|
25
28
|
/** Card */
|
|
26
29
|
export { default as Card } from './Card/Card';
|
|
27
30
|
export * from './Card/Card';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./ThemeProvider/ThemeProvider.js";import t from"./Accordion/Accordion.js";import n from"./AccordionDetails/AccordionDetails.js";import r
|
|
1
|
+
import e from"./ThemeProvider/ThemeProvider.js";import t from"./Accordion/Accordion.js";import n from"./AccordionDetails/AccordionDetails.js";import{t as r}from"./_chunks/Button-D7kRTDWq.js";import i from"./AccordionSummary/AccordionSummary.js";import a from"./Typography/Typography.js";import o from"./IconButton/IconButton.js";import s from"./Alert/Alert.js";import c from"./Avatar/Avatar.js";import l from"./Badge/Badge.js";import u from"./Breadcrumbs/Breadcrumbs.js";import d from"./ButtonGroup/ButtonGroup.js";import f from"./Card/Card.js";import p from"./CardContent/CardContent.js";import m from"./CardDescription/CardDescription.js";import h from"./CardFooter/CardFooter.js";import g from"./CardHeader/CardHeader.js";import _ from"./CardTitle/CardTitle.js";import v from"./Checkbox/Checkbox.js";import y from"./Chip/Chip.js";import b from"./Dialog/Dialog.js";import x from"./DialogActions/DialogActions.js";import S from"./DialogContent/DialogContent.js";import C from"./DialogTitle/DialogTitle.js";import w from"./Divider/Divider.js";import T from"./Input/Input.js";import E from"./Label/Label.js";import D from"./Link/Link.js";import O from"./Progress/Progress.js";import k from"./Radio/Radio.js";import A from"./RadioGroup/RadioGroup.js";import j from"./Select/Select.js";import M from"./Skeleton/Skeleton.js";import{Spinner as N}from"./Spinner/Spinner.js";import P from"./Switch/Switch.js";import F from"./Tab/Tab.js";import I from"./Table/Table.js";import L from"./TableBody/TableBody.js";import R from"./TableCell/TableCell.js";import z from"./TableFooter/TableFooter.js";import B from"./TableHead/TableHead.js";import V from"./TableRow/TableRow.js";import H from"./TabPanel/TabPanel.js";import U from"./Tabs/Tabs.js";import W from"./TabsContext/TabsContext.js";import G from"./Textarea/Textarea.js";import K from"./styles/createTheme.js";import q from"./styles/useTheme.js";import"./styles/index.js";export{t as Accordion,n as AccordionDetails,i as AccordionSummary,s as Alert,c as Avatar,l as Badge,u as Breadcrumbs,r as Button,d as ButtonGroup,f as Card,p as CardContent,m as CardDescription,h as CardFooter,g as CardHeader,_ as CardTitle,v as Checkbox,y as Chip,b as Dialog,x as DialogActions,S as DialogContent,C as DialogTitle,w as Divider,o as IconButton,T as Input,E as Label,D as Link,O as Progress,k as Radio,A as RadioGroup,j as Select,M as Skeleton,N as Spinner,P as Switch,F as Tab,H as TabPanel,I as Table,L as TableBody,R as TableCell,z as TableFooter,B as TableHead,V as TableRow,U as Tabs,W as TabsContext,G as Textarea,e as ThemeProvider,a as Typography,K as createTheme,q as useTheme};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./theme/index.js";import t from"./theme/themeSchema.js";import{merge as n}from"ts-deepmerge";import{safeParse as r}from"valibot";function i(e){return`${e.path?.map(e=>String(e.key)).join(`.`)||`theme`}: ${e.message}`}function a(a){let o=r(t,a);if(!o.success){let e=o.issues.map(i).map(e=>` - ${e}`).join(`
|
|
2
|
+
`);throw Error(`Invalid theme configuration.\n\n${e}`)}return n(e,a)}export{a as default};
|
package/dist/styles/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./createTheme.js";import t from"./useTheme.js";export{e as createTheme,t as useTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={default:{solid:{background:`bg-neutral-900 dark:bg-neutral-100`,text:`text-neutral-50 dark:text-neutral-950`,border:`border-transparent`,hover:`hover:bg-neutral-800 dark:hover:bg-neutral-200`,active:`active:bg-neutral-950 dark:active:bg-neutral-300`},filled:{background:`bg-neutral-200/70 dark:bg-neutral-800`,text:`text-neutral-900 dark:text-neutral-100`,border:`border-transparent`,hover:`hover:bg-neutral-200 dark:hover:bg-neutral-700`,active:`active:bg-neutral-300 dark:active:bg-neutral-600`},outlined:{background:`bg-transparent`,text:`text-neutral-800 dark:text-neutral-200`,border:`border-neutral-
|
|
1
|
+
var e={default:{solid:{background:`bg-neutral-900 dark:bg-neutral-100`,text:`text-neutral-50 dark:text-neutral-950`,border:`border-transparent`,hover:`hover:bg-neutral-800 dark:hover:bg-neutral-200`,active:`active:bg-neutral-950 dark:active:bg-neutral-300`},filled:{background:`bg-neutral-200/70 dark:bg-neutral-800`,text:`text-neutral-900 dark:text-neutral-100`,border:`border-transparent`,hover:`hover:bg-neutral-200 dark:hover:bg-neutral-700`,active:`active:bg-neutral-300 dark:active:bg-neutral-600`},outlined:{background:`bg-transparent`,text:`text-neutral-800 dark:text-neutral-200`,border:`border-neutral-400 dark:border-neutral-500`,hover:`hover:bg-neutral-100 dark:hover:bg-neutral-800/80`,active:`active:bg-neutral-200/80 dark:active:bg-neutral-700/80`},ghost:{background:`bg-transparent`,text:`text-neutral-800 dark:text-neutral-200`,border:`border-transparent`,hover:`hover:bg-neutral-100 dark:hover:bg-neutral-800/80`,active:`active:bg-neutral-200/80 dark:active:bg-neutral-700/80`}},success:{solid:{background:`bg-emerald-600 dark:bg-emerald-500`,text:`text-white dark:text-neutral-950`,border:`border-transparent`,hover:`hover:bg-emerald-700 dark:hover:bg-emerald-400`,active:`active:bg-emerald-800 dark:active:bg-emerald-300`},filled:{background:`bg-emerald-100 dark:bg-emerald-950/90`,text:`text-emerald-900 dark:text-emerald-200`,border:`border-transparent`,hover:`hover:bg-emerald-200/80 dark:hover:bg-emerald-900`,active:`active:bg-emerald-300/80 dark:active:bg-emerald-850`},outlined:{background:`bg-transparent`,text:`text-emerald-800 dark:text-emerald-300`,border:`border-emerald-800 dark:border-emerald-300`,hover:`hover:bg-emerald-50 dark:hover:bg-emerald-950/60`,active:`active:bg-emerald-100 dark:active:bg-emerald-900/80`},ghost:{background:`bg-transparent`,text:`text-emerald-800 dark:text-emerald-300`,border:`border-transparent`,hover:`hover:bg-emerald-50 dark:hover:bg-emerald-950/60`,active:`active:bg-emerald-100 dark:active:bg-emerald-900/80`}},warning:{solid:{background:`bg-amber-500 dark:bg-amber-400`,text:`text-amber-950 dark:text-amber-950`,border:`border-transparent`,hover:`hover:bg-amber-600 dark:hover:bg-amber-300`,active:`active:bg-amber-700 dark:active:bg-amber-200`},filled:{background:`bg-amber-100 dark:bg-amber-950/90`,text:`text-amber-950 dark:text-amber-200`,border:`border-transparent`,hover:`hover:bg-amber-200/80 dark:hover:bg-amber-900`,active:`active:bg-amber-300/80 dark:active:bg-amber-850`},outlined:{background:`bg-transparent`,text:`text-amber-900 dark:text-amber-300`,border:`border-amber-900 dark:border-amber-300`,hover:`hover:bg-amber-50 dark:hover:bg-amber-950/60`,active:`active:bg-amber-100 dark:active:bg-amber-900/80`},ghost:{background:`bg-transparent`,text:`text-amber-900 dark:text-amber-300`,border:`border-transparent`,hover:`hover:bg-amber-50 dark:hover:bg-amber-950/60`,active:`active:bg-amber-100 dark:active:bg-amber-900/80`}},info:{solid:{background:`bg-blue-600 dark:bg-blue-500`,text:`text-white dark:text-neutral-950`,border:`border-transparent`,hover:`hover:bg-blue-700 dark:hover:bg-blue-400`,active:`active:bg-blue-800 dark:active:bg-blue-300`},filled:{background:`bg-blue-100 dark:bg-blue-950/90`,text:`text-blue-950 dark:text-blue-200`,border:`border-transparent`,hover:`hover:bg-blue-200/80 dark:hover:bg-blue-900`,active:`active:bg-blue-300/80 dark:active:bg-blue-850`},outlined:{background:`bg-transparent`,text:`text-blue-800 dark:text-blue-300`,border:`border-blue-800 dark:border-blue-300`,hover:`hover:bg-blue-50 dark:hover:bg-blue-950/60`,active:`active:bg-blue-100 dark:active:bg-blue-900/80`},ghost:{background:`bg-transparent`,text:`text-blue-800 dark:text-blue-300`,border:`border-transparent`,hover:`hover:bg-blue-50 dark:hover:bg-blue-950/60`,active:`active:bg-blue-100 dark:active:bg-blue-900/80`}},error:{solid:{background:`bg-red-600 dark:bg-red-500`,text:`text-white dark:text-neutral-950`,border:`border-transparent`,hover:`hover:bg-red-700 dark:hover:bg-red-400`,active:`active:bg-red-800 dark:active:bg-red-300`},filled:{background:`bg-red-100 dark:bg-red-950/90`,text:`text-red-950 dark:text-red-200`,border:`border-transparent`,hover:`hover:bg-red-200/80 dark:hover:bg-red-900`,active:`active:bg-red-300/80 dark:active:bg-red-850`},outlined:{background:`bg-transparent`,text:`text-red-800 dark:text-red-300`,border:`border-red-800 dark:border-red-300`,hover:`hover:bg-red-50 dark:hover:bg-red-950/60`,active:`active:bg-red-100 dark:active:bg-red-900/80`},ghost:{background:`bg-transparent`,text:`text-red-800 dark:text-red-300`,border:`border-transparent`,hover:`hover:bg-red-50 dark:hover:bg-red-950/60`,active:`active:bg-red-100 dark:active:bg-red-900/80`}}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={text:`text-neutral-400 dark:text-neutral-600`,background:`bg-neutral-100 dark:bg-neutral-800`,border:`border-neutral-200 dark:border-neutral-800`,state:`
|
|
1
|
+
var e={text:`text-neutral-400 dark:text-neutral-600`,background:`bg-neutral-100 dark:bg-neutral-800`,border:`border-neutral-200 dark:border-neutral-800`,state:`cursor-not-allowed pointer-events-none`};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as
|
|
1
|
+
import e from"./index.js";import{object as t,partial as n,pipe as r,rawCheck as i,record as a,safeParse as o,string as s,unknown as c}from"valibot";var l=(e=!1)=>{let r=t({background:s(),text:s(),border:s(),hover:s(),active:s()});return e?n(r):r},u=(e=!1)=>{let r=t({solid:l(e),filled:l(e),outlined:l(e),ghost:l(e)});return e?n(r):r},d=new Set(Object.keys(e.colors)),f=r(a(s(),c()),i(({dataset:e,addIssue:t})=>{let n=e.value;for(let[e,r]of Object.entries(n)){let i=d.has(e)?u(!0):u(),a=o(i,r);if(!a.success)for(let i of a.issues)t({...i,path:[{type:`object`,origin:`value`,input:n,key:e,value:r},...i.path??[]]})}})),p=a(s(),s()),m=a(s(),s()),h=a(s(),s()),g=n(t({colors:a(s(),s()),variants:a(s(),s())})),_=n(t({colors:f,disabled:p,rounded:m,shadow:h,typography:g,divider:s(),focus:s(),focusWithin:s()}));export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={divider:`border-neutral-300 dark:border-neutral-700`,focus:`focus-visible:outline-none focus-visible:shadow-[0_0_0_1px_#2563eb,0_0_0_4px_rgba(37,99,235,0.
|
|
1
|
+
var e={divider:`border-neutral-300 dark:border-neutral-700`,focus:`focus-visible:outline-none focus-visible:shadow-[0_0_0_1px_#2563eb,0_0_0_4px_rgba(37,99,235,0.45)] dark:focus-visible:shadow-[0_0_0_1px_#60a5fa,0_0_0_4px_rgba(96,165,250,0.45)]`,focusWithin:`focus-within:shadow-[0_0_0_1px_#2563eb,0_0_0_4px_rgba(37,99,235,0.45)] dark:focus-within:shadow-[0_0_0_1px_#60a5fa,0_0_0_4px_rgba(96,165,250,0.45)]`};export{e as default};
|
package/dist/styles/useTheme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ThemeContext as e}from"../ThemeProvider/ThemeContext.js";import{useContext as t}from"solid-js";var n=()=>{let n=t(e);if(!n)throw Error(`useTheme must be used inside ThemeProvider
|
|
1
|
+
import{ThemeContext as e}from"../ThemeProvider/ThemeContext.js";import{useContext as t}from"solid-js";var n=()=>{let n=t(e);if(!n)throw Error(`useTheme must be used inside ThemeProvider component.`);return n.theme};export{n as default};
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rocksolidjs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"description": "A modern, accessible component library built with SolidJS and Tailwind CSS.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"solid",
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"test:dev": "vitest",
|
|
37
|
+
"test:coverage": "vitest run --coverage",
|
|
35
38
|
"build": "npm run typecheck && vite build",
|
|
36
39
|
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
37
40
|
"version": "changeset version && node scripts/sync-lock-version.js",
|
|
@@ -40,13 +43,19 @@
|
|
|
40
43
|
"devDependencies": {
|
|
41
44
|
"@changesets/changelog-github": "^1.0.1",
|
|
42
45
|
"@changesets/cli": "^3.0.2",
|
|
46
|
+
"@solidjs/testing-library": "^0.8.10",
|
|
43
47
|
"@tailwindcss/vite": "^4.3.3",
|
|
48
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
49
|
+
"@testing-library/user-event": "^14.6.7",
|
|
44
50
|
"@types/node": "^24.13.3",
|
|
51
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
45
52
|
"glob": "^13.0.6",
|
|
53
|
+
"jsdom": "^30.0.1",
|
|
46
54
|
"typescript": "~6.0.2",
|
|
47
55
|
"vite": "^8.2.0",
|
|
48
56
|
"vite-plugin-dts": "^5.0.3",
|
|
49
|
-
"vite-plugin-solid": "^2.11.13"
|
|
57
|
+
"vite-plugin-solid": "^2.11.13",
|
|
58
|
+
"vitest": "^5.0.0"
|
|
50
59
|
},
|
|
51
60
|
"dependencies": {
|
|
52
61
|
"tailwind-variants": "^3.1.0",
|
|
@@ -95,6 +104,10 @@
|
|
|
95
104
|
"import": "./dist/Button/Button.js",
|
|
96
105
|
"types": "./dist/Button/Button.d.ts"
|
|
97
106
|
},
|
|
107
|
+
"./ButtonGroup": {
|
|
108
|
+
"import": "./dist/ButtonGroup/ButtonGroup.js",
|
|
109
|
+
"types": "./dist/ButtonGroup/ButtonGroup.d.ts"
|
|
110
|
+
},
|
|
98
111
|
"./Card": {
|
|
99
112
|
"import": "./dist/Card/Card.js",
|
|
100
113
|
"types": "./dist/Card/Card.d.ts"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import e from"../styles/theme/index.js";import{n as t,t as n}from"./themeSchema-BFl6XiaJ.js";var r=e=>{if(typeof e==`object`&&e){if(typeof Object.getPrototypeOf==`function`){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)===`[object Object]`}return!1},i=new Set([`__proto__`,`constructor`,`prototype`,`toString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`]),a=(...e)=>e.reduce((e,t)=>{if(t===void 0)return e;if(Array.isArray(t))throw TypeError(`Arguments provided to ts-deepmerge must be objects, not arrays.`);return Object.keys(t).forEach(n=>{i.has(n)||(e[n]=Array.isArray(e[n])&&Array.isArray(t[n])?a.options.mergeArrays?a.options.uniqueArrayItems?Array.from(new Set(e[n].concat(t[n]))):[...e[n],...t[n]]:t[n]:r(e[n])&&r(t[n])?a(e[n],t[n]):!r(e[n])&&r(t[n])?a(t[n],void 0):t[n]===void 0?a.options.allowUndefinedOverrides?t[n]:e[n]:t[n])}),e},{}),o={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};a.options=o,a.withOptions=(e,...t)=>{a.options=Object.assign(Object.assign({},o),e);let n=a(...t);return a.options=o,n};function s(e){return`${e.path?.map(e=>String(e.key)).join(`.`)||`theme`}: ${e.message}`}function c(r){let i=t(n,r);if(!i.success){let e=i.issues.map(s).map(e=>` - ${e}`).join(`
|
|
2
|
-
`);throw Error(`Invalid theme configuration.\n\n${e}`)}return a(e,r)}export{c as t};
|