rocksolidjs 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/style.js +1 -1
- 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 +5 -3
- 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/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 +5 -3
- 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/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 +178 -58
- 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 +11 -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", {
|
|
@@ -418,7 +445,7 @@ declare const ComponentsTV: {
|
|
|
418
445
|
cardTitle: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
419
446
|
cardDescription: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
420
447
|
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
|
|
448
|
+
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
449
|
checkbox: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
423
450
|
checked: {
|
|
424
451
|
true: {};
|
|
@@ -494,9 +521,7 @@ declare const ComponentsTV: {
|
|
|
494
521
|
};
|
|
495
522
|
};
|
|
496
523
|
clickable: {
|
|
497
|
-
true: {
|
|
498
|
-
base: string[];
|
|
499
|
-
};
|
|
524
|
+
true: {};
|
|
500
525
|
false: {};
|
|
501
526
|
};
|
|
502
527
|
hasDeleteIcon: {
|
|
@@ -543,9 +568,7 @@ declare const ComponentsTV: {
|
|
|
543
568
|
};
|
|
544
569
|
};
|
|
545
570
|
clickable: {
|
|
546
|
-
true: {
|
|
547
|
-
base: string[];
|
|
548
|
-
};
|
|
571
|
+
true: {};
|
|
549
572
|
false: {};
|
|
550
573
|
};
|
|
551
574
|
hasDeleteIcon: {
|
|
@@ -592,9 +615,7 @@ declare const ComponentsTV: {
|
|
|
592
615
|
};
|
|
593
616
|
};
|
|
594
617
|
clickable: {
|
|
595
|
-
true: {
|
|
596
|
-
base: string[];
|
|
597
|
-
};
|
|
618
|
+
true: {};
|
|
598
619
|
false: {};
|
|
599
620
|
};
|
|
600
621
|
hasDeleteIcon: {
|
|
@@ -630,21 +651,81 @@ declare const ComponentsTV: {
|
|
|
630
651
|
dialogActions: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
631
652
|
dialogTitle: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
632
653
|
divider: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
654
|
+
align: {
|
|
655
|
+
start: {};
|
|
656
|
+
center: {};
|
|
657
|
+
end: {};
|
|
658
|
+
};
|
|
659
|
+
hasChildren: {
|
|
660
|
+
true: {};
|
|
661
|
+
false: {};
|
|
662
|
+
};
|
|
633
663
|
orientation: {
|
|
634
|
-
horizontal:
|
|
635
|
-
|
|
664
|
+
horizontal: {
|
|
665
|
+
base: string;
|
|
666
|
+
divider: string;
|
|
667
|
+
};
|
|
668
|
+
vertical: {
|
|
669
|
+
base: string;
|
|
670
|
+
divider: string;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
}, {
|
|
674
|
+
base: string[];
|
|
675
|
+
divider: string[];
|
|
676
|
+
beforeDivider: string;
|
|
677
|
+
afterDivider: string;
|
|
678
|
+
}, undefined, {
|
|
679
|
+
align: {
|
|
680
|
+
start: {};
|
|
681
|
+
center: {};
|
|
682
|
+
end: {};
|
|
683
|
+
};
|
|
684
|
+
hasChildren: {
|
|
685
|
+
true: {};
|
|
686
|
+
false: {};
|
|
636
687
|
};
|
|
637
|
-
}, undefined, string[], {
|
|
638
688
|
orientation: {
|
|
639
|
-
horizontal:
|
|
640
|
-
|
|
689
|
+
horizontal: {
|
|
690
|
+
base: string;
|
|
691
|
+
divider: string;
|
|
692
|
+
};
|
|
693
|
+
vertical: {
|
|
694
|
+
base: string;
|
|
695
|
+
divider: string;
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
}, {
|
|
699
|
+
base: string[];
|
|
700
|
+
divider: string[];
|
|
701
|
+
beforeDivider: string;
|
|
702
|
+
afterDivider: string;
|
|
703
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
704
|
+
align: {
|
|
705
|
+
start: {};
|
|
706
|
+
center: {};
|
|
707
|
+
end: {};
|
|
708
|
+
};
|
|
709
|
+
hasChildren: {
|
|
710
|
+
true: {};
|
|
711
|
+
false: {};
|
|
641
712
|
};
|
|
642
|
-
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
643
713
|
orientation: {
|
|
644
|
-
horizontal:
|
|
645
|
-
|
|
714
|
+
horizontal: {
|
|
715
|
+
base: string;
|
|
716
|
+
divider: string;
|
|
717
|
+
};
|
|
718
|
+
vertical: {
|
|
719
|
+
base: string;
|
|
720
|
+
divider: string;
|
|
721
|
+
};
|
|
646
722
|
};
|
|
647
|
-
},
|
|
723
|
+
}, {
|
|
724
|
+
base: string[];
|
|
725
|
+
divider: string[];
|
|
726
|
+
beforeDivider: string;
|
|
727
|
+
afterDivider: string;
|
|
728
|
+
}>>;
|
|
648
729
|
iconButton: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
649
730
|
size: {
|
|
650
731
|
small: "size-6 text-lg";
|
|
@@ -839,19 +920,19 @@ declare const ComponentsTV: {
|
|
|
839
920
|
}, undefined>>;
|
|
840
921
|
link: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
841
922
|
underline: {
|
|
842
|
-
none: "";
|
|
923
|
+
none: "no-underline";
|
|
843
924
|
hover: "hover:underline";
|
|
844
925
|
always: "underline";
|
|
845
926
|
};
|
|
846
927
|
}, undefined, string[], {
|
|
847
928
|
underline: {
|
|
848
|
-
none: "";
|
|
929
|
+
none: "no-underline";
|
|
849
930
|
hover: "hover:underline";
|
|
850
931
|
always: "underline";
|
|
851
932
|
};
|
|
852
933
|
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
853
934
|
underline: {
|
|
854
|
-
none: "";
|
|
935
|
+
none: "no-underline";
|
|
855
936
|
hover: "hover:underline";
|
|
856
937
|
always: "underline";
|
|
857
938
|
};
|
|
@@ -949,66 +1030,105 @@ declare const ComponentsTV: {
|
|
|
949
1030
|
input: string;
|
|
950
1031
|
}>>;
|
|
951
1032
|
select: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
952
|
-
color: Record<"default" | "success" | "warning" | "info" | "error",
|
|
1033
|
+
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
953
1034
|
disabled: {
|
|
954
|
-
true:
|
|
955
|
-
false:
|
|
1035
|
+
true: {};
|
|
1036
|
+
false: {};
|
|
956
1037
|
};
|
|
957
1038
|
variant: {
|
|
958
|
-
filled:
|
|
959
|
-
ghost:
|
|
960
|
-
outlined:
|
|
1039
|
+
filled: {};
|
|
1040
|
+
ghost: {};
|
|
1041
|
+
outlined: {
|
|
1042
|
+
base: string;
|
|
1043
|
+
};
|
|
961
1044
|
};
|
|
962
1045
|
size: {
|
|
963
|
-
small:
|
|
964
|
-
|
|
965
|
-
|
|
1046
|
+
small: {
|
|
1047
|
+
base: string;
|
|
1048
|
+
};
|
|
1049
|
+
medium: {
|
|
1050
|
+
base: string;
|
|
1051
|
+
};
|
|
1052
|
+
large: {
|
|
1053
|
+
base: string;
|
|
1054
|
+
};
|
|
966
1055
|
};
|
|
967
1056
|
fullWidth: {
|
|
968
|
-
true:
|
|
969
|
-
|
|
1057
|
+
true: {
|
|
1058
|
+
base: string;
|
|
1059
|
+
};
|
|
1060
|
+
false: {};
|
|
970
1061
|
};
|
|
971
|
-
},
|
|
972
|
-
|
|
1062
|
+
}, {
|
|
1063
|
+
base: string[];
|
|
1064
|
+
option: string[];
|
|
1065
|
+
}, undefined, {
|
|
1066
|
+
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
973
1067
|
disabled: {
|
|
974
|
-
true:
|
|
975
|
-
false:
|
|
1068
|
+
true: {};
|
|
1069
|
+
false: {};
|
|
976
1070
|
};
|
|
977
1071
|
variant: {
|
|
978
|
-
filled:
|
|
979
|
-
ghost:
|
|
980
|
-
outlined:
|
|
1072
|
+
filled: {};
|
|
1073
|
+
ghost: {};
|
|
1074
|
+
outlined: {
|
|
1075
|
+
base: string;
|
|
1076
|
+
};
|
|
981
1077
|
};
|
|
982
1078
|
size: {
|
|
983
|
-
small:
|
|
984
|
-
|
|
985
|
-
|
|
1079
|
+
small: {
|
|
1080
|
+
base: string;
|
|
1081
|
+
};
|
|
1082
|
+
medium: {
|
|
1083
|
+
base: string;
|
|
1084
|
+
};
|
|
1085
|
+
large: {
|
|
1086
|
+
base: string;
|
|
1087
|
+
};
|
|
986
1088
|
};
|
|
987
1089
|
fullWidth: {
|
|
988
|
-
true:
|
|
989
|
-
|
|
1090
|
+
true: {
|
|
1091
|
+
base: string;
|
|
1092
|
+
};
|
|
1093
|
+
false: {};
|
|
990
1094
|
};
|
|
991
|
-
},
|
|
992
|
-
|
|
1095
|
+
}, {
|
|
1096
|
+
base: string[];
|
|
1097
|
+
option: string[];
|
|
1098
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
1099
|
+
color: Record<"default" | "success" | "warning" | "info" | "error", {}>;
|
|
993
1100
|
disabled: {
|
|
994
|
-
true:
|
|
995
|
-
false:
|
|
1101
|
+
true: {};
|
|
1102
|
+
false: {};
|
|
996
1103
|
};
|
|
997
1104
|
variant: {
|
|
998
|
-
filled:
|
|
999
|
-
ghost:
|
|
1000
|
-
outlined:
|
|
1105
|
+
filled: {};
|
|
1106
|
+
ghost: {};
|
|
1107
|
+
outlined: {
|
|
1108
|
+
base: string;
|
|
1109
|
+
};
|
|
1001
1110
|
};
|
|
1002
1111
|
size: {
|
|
1003
|
-
small:
|
|
1004
|
-
|
|
1005
|
-
|
|
1112
|
+
small: {
|
|
1113
|
+
base: string;
|
|
1114
|
+
};
|
|
1115
|
+
medium: {
|
|
1116
|
+
base: string;
|
|
1117
|
+
};
|
|
1118
|
+
large: {
|
|
1119
|
+
base: string;
|
|
1120
|
+
};
|
|
1006
1121
|
};
|
|
1007
1122
|
fullWidth: {
|
|
1008
|
-
true:
|
|
1009
|
-
|
|
1123
|
+
true: {
|
|
1124
|
+
base: string;
|
|
1125
|
+
};
|
|
1126
|
+
false: {};
|
|
1010
1127
|
};
|
|
1011
|
-
},
|
|
1128
|
+
}, {
|
|
1129
|
+
base: string[];
|
|
1130
|
+
option: string[];
|
|
1131
|
+
}>>;
|
|
1012
1132
|
skeleton: (theme?: import('..').Theme) => import('tailwind-variants').TVReturnType<{
|
|
1013
1133
|
variant: {
|
|
1014
1134
|
circle: string[];
|
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 from"./Button/Button.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"./Card/Card.js";import f from"./CardContent/CardContent.js";import p from"./CardDescription/CardDescription.js";import m from"./CardFooter/CardFooter.js";import h from"./CardHeader/CardHeader.js";import g from"./CardTitle/CardTitle.js";import _ from"./Checkbox/Checkbox.js";import v from"./Chip/Chip.js";import y from"./Dialog/Dialog.js";import b from"./DialogActions/DialogActions.js";import x from"./DialogContent/DialogContent.js";import S from"./DialogTitle/DialogTitle.js";import C from"./Divider/Divider.js";import w from"./Input/Input.js";import T from"./Label/Label.js";import E from"./Link/Link.js";import D from"./Progress/Progress.js";import O from"./Radio/Radio.js";import k from"./RadioGroup/RadioGroup.js";import A from"./Select/Select.js";import j from"./Skeleton/Skeleton.js";import{Spinner as M}from"./Spinner/Spinner.js";import N from"./Switch/Switch.js";import P from"./Tab/Tab.js";import F from"./Table/Table.js";import I from"./TableBody/TableBody.js";import L from"./TableCell/TableCell.js";import R from"./TableFooter/TableFooter.js";import z from"./TableHead/TableHead.js";import B from"./TableRow/TableRow.js";import V from"./TabPanel/TabPanel.js";import H from"./Tabs/Tabs.js";import U from"./TabsContext/TabsContext.js";import W from"./Textarea/Textarea.js";import
|
|
1
|
+
import e from"./ThemeProvider/ThemeProvider.js";import t from"./Accordion/Accordion.js";import n from"./AccordionDetails/AccordionDetails.js";import r from"./Button/Button.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"./Card/Card.js";import f from"./CardContent/CardContent.js";import p from"./CardDescription/CardDescription.js";import m from"./CardFooter/CardFooter.js";import h from"./CardHeader/CardHeader.js";import g from"./CardTitle/CardTitle.js";import _ from"./Checkbox/Checkbox.js";import v from"./Chip/Chip.js";import y from"./Dialog/Dialog.js";import b from"./DialogActions/DialogActions.js";import x from"./DialogContent/DialogContent.js";import S from"./DialogTitle/DialogTitle.js";import C from"./Divider/Divider.js";import w from"./Input/Input.js";import T from"./Label/Label.js";import E from"./Link/Link.js";import D from"./Progress/Progress.js";import O from"./Radio/Radio.js";import k from"./RadioGroup/RadioGroup.js";import A from"./Select/Select.js";import j from"./Skeleton/Skeleton.js";import{Spinner as M}from"./Spinner/Spinner.js";import N from"./Switch/Switch.js";import P from"./Tab/Tab.js";import F from"./Table/Table.js";import I from"./TableBody/TableBody.js";import L from"./TableCell/TableCell.js";import R from"./TableFooter/TableFooter.js";import z from"./TableHead/TableHead.js";import B from"./TableRow/TableRow.js";import V from"./TabPanel/TabPanel.js";import H from"./Tabs/Tabs.js";import U from"./TabsContext/TabsContext.js";import W from"./Textarea/Textarea.js";import G from"./styles/createTheme.js";import K 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 Card,f as CardContent,p as CardDescription,m as CardFooter,h as CardHeader,g as CardTitle,_ as Checkbox,v as Chip,y as Dialog,b as DialogActions,x as DialogContent,S as DialogTitle,C as Divider,o as IconButton,w as Input,T as Label,E as Link,D as Progress,O as Radio,k as RadioGroup,A as Select,j as Skeleton,M as Spinner,N as Switch,P as Tab,V as TabPanel,F as Table,I as TableBody,L as TableCell,R as TableFooter,z as TableHead,B as TableRow,H as Tabs,U as TabsContext,W as Textarea,e as ThemeProvider,a as Typography,G as createTheme,K 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.3",
|
|
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",
|
|
@@ -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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../styles/theme/index.js";var t={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function n(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:t}function r(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function i(e,t,n,i,a){let o=a&&`input`in a?a.input:n.value,s=a?.expected??e.expects??null,c=a?.received??r(o),l={kind:e.kind,type:e.type,input:o,expected:s,received:c,message:`Invalid ${t}: ${s?`Expected ${s} but r`:`R`}eceived ${c}`,requirement:e.requirement,path:a?.path,issues:a?.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},u=e.kind===`schema`,d=a?.message??e.message??(e.reference,l.lang,void 0)??(u?(l.lang,void 0):null)??i.message??(l.lang,void 0);d!==void 0&&(l.message=typeof d==`function`?d(l):d),u&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}var a=new WeakMap;function o(e){let t=a.get(e);return t||(t={version:1,vendor:`valibot`,validate(t){return e[`~run`]({value:t},n())}},a.set(e,t)),t}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function c(e){return{kind:`validation`,type:`raw_check`,reference:c,async:!1,expects:null,"~run"(t,n){return e({dataset:t,config:n,addIssue:e=>i(this,e?.label??`input`,t,n,e)}),t}}}function l(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function u(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function d(e,t){return{kind:`schema`,type:`object`,reference:d,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return o(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let a=this.entries[r];if(r in n||(a.type===`exact_optional`||a.type===`optional`||a.type===`nullish`)&&a.default!==void 0){let i=r in n?n[r]:u(a),o=a[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(a.fallback!==void 0)e.value[r]=l(a);else if(a.type!==`exact_optional`&&a.type!==`optional`&&a.type!==`nullish`&&(i(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else i(this,`type`,e,t);return e}}}function f(e,t){return{kind:`schema`,type:`optional`,reference:f,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return o(this)},"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=u(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function p(e,t,n){return{kind:`schema`,type:`record`,reference:p,expects:`Object`,async:!1,key:e,value:t,message:n,get"~standard"(){return o(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in n)if(s(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}(!a.typed||!o.typed)&&(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else i(this,`type`,e,t);return e}}}function m(e){return{kind:`schema`,type:`string`,reference:m,expects:`string`,async:!1,message:e,get"~standard"(){return o(this)},"~run"(e,t){return typeof e.value==`string`?e.typed=!0:i(this,`type`,e,t),e}}}function h(){return{kind:`schema`,type:`unknown`,reference:h,expects:`unknown`,async:!1,get"~standard"(){return o(this)},"~run"(e){return e.typed=!0,e}}}function g(e,t){let n={};for(let r in e.entries)n[r]=!t||t.includes(r)?f(e.entries[r]):e.entries[r];return{...e,entries:n,get"~standard"(){return o(this)}}}function _(...e){return{...e[0],pipe:e,get"~standard"(){return o(this)},"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r[`~run`](t,n))}return t}}}function v(e,t,r){let i=e[`~run`]({value:t},n(r));return{typed:i.typed,success:!i.issues,output:i.value,issues:i.issues}}var y=(e=!1)=>{let t=d({background:m(),text:m(),border:m(),hover:m(),active:m()});return e?g(t):t},b=(e=!1)=>{let t=d({solid:y(e),filled:y(e),outlined:y(e),ghost:y(e)});return e?g(t):t},x=new Set(Object.keys(e.colors)),S=g(d({colors:_(p(m(),h()),c(({dataset:e,addIssue:t})=>{let n=e.value;for(let[e,r]of Object.entries(n)){let i=v(x.has(e)?b(!0):b(),r);if(!i.success)for(let a of i.issues)t({...a,path:[{type:`object`,origin:`value`,input:n,key:e,value:r},...a.path??[]]})}})),disabled:p(m(),m()),rounded:p(m(),m()),shadow:p(m(),m()),typography:g(d({colors:p(m(),m()),variants:p(m(),m())})),divider:m(),focus:m(),focusWithin:m()}));export{v as n,S as t};
|