@rehagro/ui 1.0.36 → 1.0.38
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/{colors.types-7nLOoy6r.d.mts → colors.types-Dd3I7svd.d.mts} +1 -1
- package/dist/{colors.types-7nLOoy6r.d.ts → colors.types-Dd3I7svd.d.ts} +1 -1
- package/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +43 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -17
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +5 -3
- package/dist/native.d.ts +5 -3
- package/dist/native.js +16 -4
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +16 -4
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -18,12 +18,15 @@ var TOKEN_MAP = {
|
|
|
18
18
|
successHover: { var: "--rh-success-hover", isColor: true },
|
|
19
19
|
info: { var: "--rh-info", isColor: true },
|
|
20
20
|
infoHover: { var: "--rh-info-hover", isColor: true },
|
|
21
|
+
neutral: { var: "--rh-neutral", isColor: true },
|
|
22
|
+
neutralHover: { var: "--rh-neutral-hover", isColor: true },
|
|
21
23
|
primarySubtle: { var: "--rh-primary-subtle", isColor: true, raw: true },
|
|
22
24
|
secondarySubtle: { var: "--rh-secondary-subtle", isColor: true, raw: true },
|
|
23
25
|
dangerSubtle: { var: "--rh-danger-subtle", isColor: true, raw: true },
|
|
24
26
|
warningSubtle: { var: "--rh-warning-subtle", isColor: true, raw: true },
|
|
25
27
|
successSubtle: { var: "--rh-success-subtle", isColor: true, raw: true },
|
|
26
28
|
infoSubtle: { var: "--rh-info-subtle", isColor: true, raw: true },
|
|
29
|
+
neutralSubtle: { var: "--rh-neutral-subtle", isColor: true, raw: true },
|
|
27
30
|
text: { var: "--rh-text", isColor: true },
|
|
28
31
|
textMuted: { var: "--rh-text-muted", isColor: true },
|
|
29
32
|
surface: { var: "--rh-surface", isColor: true },
|
|
@@ -45,6 +48,8 @@ var TOKEN_MAP = {
|
|
|
45
48
|
inputPxSm: { var: "--rh-input-px-sm", isColor: false },
|
|
46
49
|
inputPxMd: { var: "--rh-input-px-md", isColor: false },
|
|
47
50
|
inputPxLg: { var: "--rh-input-px-lg", isColor: false },
|
|
51
|
+
buttonHeightXxs: { var: "--rh-button-height-xxs", isColor: false },
|
|
52
|
+
buttonHeightXs: { var: "--rh-button-height-xs", isColor: false },
|
|
48
53
|
buttonHeightSm: { var: "--rh-button-height-sm", isColor: false },
|
|
49
54
|
buttonHeightMd: { var: "--rh-button-height-md", isColor: false },
|
|
50
55
|
buttonHeightLg: { var: "--rh-button-height-lg", isColor: false },
|
|
@@ -738,7 +743,8 @@ var PRESET_COLORS = /* @__PURE__ */ new Set([
|
|
|
738
743
|
"danger",
|
|
739
744
|
"warning",
|
|
740
745
|
"success",
|
|
741
|
-
"info"
|
|
746
|
+
"info",
|
|
747
|
+
"neutral"
|
|
742
748
|
]);
|
|
743
749
|
var isPresetColor = (c) => PRESET_COLORS.has(c);
|
|
744
750
|
var variantBaseClasses = {
|
|
@@ -748,7 +754,8 @@ var variantBaseClasses = {
|
|
|
748
754
|
danger: "rh-bg-danger rh-text-surface rh-border-danger",
|
|
749
755
|
warning: "rh-bg-warning rh-text-surface rh-border-warning",
|
|
750
756
|
success: "rh-bg-success rh-text-surface rh-border-success",
|
|
751
|
-
info: "rh-bg-info rh-text-surface rh-border-info"
|
|
757
|
+
info: "rh-bg-info rh-text-surface rh-border-info",
|
|
758
|
+
neutral: "rh-bg-neutral rh-text-surface rh-border-neutral"
|
|
752
759
|
},
|
|
753
760
|
outline: {
|
|
754
761
|
primary: "rh-bg-transparent rh-text-primary rh-border-primary",
|
|
@@ -756,7 +763,8 @@ var variantBaseClasses = {
|
|
|
756
763
|
danger: "rh-bg-transparent rh-text-danger rh-border-danger",
|
|
757
764
|
warning: "rh-bg-transparent rh-text-warning rh-border-warning",
|
|
758
765
|
success: "rh-bg-transparent rh-text-success rh-border-success",
|
|
759
|
-
info: "rh-bg-transparent rh-text-info rh-border-info"
|
|
766
|
+
info: "rh-bg-transparent rh-text-info rh-border-info",
|
|
767
|
+
neutral: "rh-bg-transparent rh-text-neutral rh-border-neutral"
|
|
760
768
|
},
|
|
761
769
|
ghost: {
|
|
762
770
|
primary: "rh-bg-transparent rh-text-primary rh-border-transparent",
|
|
@@ -764,7 +772,8 @@ var variantBaseClasses = {
|
|
|
764
772
|
danger: "rh-bg-transparent rh-text-danger rh-border-transparent",
|
|
765
773
|
warning: "rh-bg-transparent rh-text-warning rh-border-transparent",
|
|
766
774
|
success: "rh-bg-transparent rh-text-success rh-border-transparent",
|
|
767
|
-
info: "rh-bg-transparent rh-text-info rh-border-transparent"
|
|
775
|
+
info: "rh-bg-transparent rh-text-info rh-border-transparent",
|
|
776
|
+
neutral: "rh-bg-transparent rh-text-neutral rh-border-transparent"
|
|
768
777
|
}
|
|
769
778
|
};
|
|
770
779
|
var variantHoverClasses = {
|
|
@@ -774,7 +783,8 @@ var variantHoverClasses = {
|
|
|
774
783
|
danger: "hover:rh-bg-danger-hover hover:rh-border-danger-hover",
|
|
775
784
|
warning: "hover:rh-bg-warning-hover hover:rh-border-warning-hover",
|
|
776
785
|
success: "hover:rh-bg-success-hover hover:rh-border-success-hover",
|
|
777
|
-
info: "hover:rh-bg-info-hover hover:rh-border-info-hover"
|
|
786
|
+
info: "hover:rh-bg-info-hover hover:rh-border-info-hover",
|
|
787
|
+
neutral: "hover:rh-bg-neutral-hover hover:rh-border-neutral-hover"
|
|
778
788
|
},
|
|
779
789
|
outline: {
|
|
780
790
|
primary: "hover:rh-bg-primary-subtle",
|
|
@@ -782,7 +792,8 @@ var variantHoverClasses = {
|
|
|
782
792
|
danger: "hover:rh-bg-danger-subtle",
|
|
783
793
|
warning: "hover:rh-bg-warning-subtle",
|
|
784
794
|
success: "hover:rh-bg-success-subtle",
|
|
785
|
-
info: "hover:rh-bg-info-subtle"
|
|
795
|
+
info: "hover:rh-bg-info-subtle",
|
|
796
|
+
neutral: "hover:rh-bg-neutral-subtle"
|
|
786
797
|
},
|
|
787
798
|
ghost: {
|
|
788
799
|
primary: "hover:rh-bg-primary-subtle",
|
|
@@ -790,7 +801,8 @@ var variantHoverClasses = {
|
|
|
790
801
|
danger: "hover:rh-bg-danger-subtle",
|
|
791
802
|
warning: "hover:rh-bg-warning-subtle",
|
|
792
803
|
success: "hover:rh-bg-success-subtle",
|
|
793
|
-
info: "hover:rh-bg-info-subtle"
|
|
804
|
+
info: "hover:rh-bg-info-subtle",
|
|
805
|
+
neutral: "hover:rh-bg-neutral-subtle"
|
|
794
806
|
}
|
|
795
807
|
};
|
|
796
808
|
function getArbitraryColorStyle(variant, color) {
|
|
@@ -799,6 +811,8 @@ function getArbitraryColorStyle(variant, color) {
|
|
|
799
811
|
return { color, borderColor: "transparent" };
|
|
800
812
|
}
|
|
801
813
|
var sizeClasses = {
|
|
814
|
+
xxs: "rh-text-2xs rh-leading-none rh-px-1.5 rh-h-button-xxs rh-gap-1",
|
|
815
|
+
xs: "rh-text-xs rh-leading-none rh-px-2 rh-h-button-xs rh-gap-1",
|
|
802
816
|
sm: "rh-text-sm rh-px-3 rh-h-button-sm",
|
|
803
817
|
md: "rh-text-sm rh-px-4 rh-h-button-md",
|
|
804
818
|
lg: "rh-text-base rh-px-5 rh-h-button-lg",
|
|
@@ -909,7 +923,8 @@ var PRESET_COLORS2 = /* @__PURE__ */ new Set([
|
|
|
909
923
|
"danger",
|
|
910
924
|
"warning",
|
|
911
925
|
"success",
|
|
912
|
-
"info"
|
|
926
|
+
"info",
|
|
927
|
+
"neutral"
|
|
913
928
|
]);
|
|
914
929
|
var isPresetColor2 = (c) => PRESET_COLORS2.has(c);
|
|
915
930
|
var variantColorClasses = {
|
|
@@ -919,7 +934,8 @@ var variantColorClasses = {
|
|
|
919
934
|
danger: "rh-bg-danger rh-text-surface rh-border-danger hover:rh-bg-danger-hover hover:rh-border-danger-hover",
|
|
920
935
|
warning: "rh-bg-warning rh-text-surface rh-border-warning hover:rh-bg-warning-hover hover:rh-border-warning-hover",
|
|
921
936
|
success: "rh-bg-success rh-text-surface rh-border-success hover:rh-bg-success-hover hover:rh-border-success-hover",
|
|
922
|
-
info: "rh-bg-info rh-text-surface rh-border-info hover:rh-bg-info-hover hover:rh-border-info-hover"
|
|
937
|
+
info: "rh-bg-info rh-text-surface rh-border-info hover:rh-bg-info-hover hover:rh-border-info-hover",
|
|
938
|
+
neutral: "rh-bg-neutral rh-text-surface rh-border-neutral hover:rh-bg-neutral-hover hover:rh-border-neutral-hover"
|
|
923
939
|
},
|
|
924
940
|
outline: {
|
|
925
941
|
primary: "rh-bg-transparent rh-text-primary rh-border-primary hover:rh-bg-primary hover:rh-text-surface",
|
|
@@ -927,7 +943,8 @@ var variantColorClasses = {
|
|
|
927
943
|
danger: "rh-bg-transparent rh-text-danger rh-border-danger hover:rh-bg-danger hover:rh-text-surface",
|
|
928
944
|
warning: "rh-bg-transparent rh-text-warning rh-border-warning hover:rh-bg-warning hover:rh-text-surface",
|
|
929
945
|
success: "rh-bg-transparent rh-text-success rh-border-success hover:rh-bg-success hover:rh-text-surface",
|
|
930
|
-
info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info hover:rh-text-surface"
|
|
946
|
+
info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info hover:rh-text-surface",
|
|
947
|
+
neutral: "rh-bg-transparent rh-text-neutral rh-border-neutral hover:rh-bg-neutral-subtle"
|
|
931
948
|
},
|
|
932
949
|
ghost: {
|
|
933
950
|
primary: "rh-bg-transparent rh-text-primary rh-border-transparent hover:rh-bg-primary-subtle",
|
|
@@ -935,7 +952,8 @@ var variantColorClasses = {
|
|
|
935
952
|
danger: "rh-bg-transparent rh-text-danger rh-border-transparent hover:rh-bg-danger-subtle",
|
|
936
953
|
warning: "rh-bg-transparent rh-text-warning rh-border-transparent hover:rh-bg-warning-subtle",
|
|
937
954
|
success: "rh-bg-transparent rh-text-success rh-border-transparent hover:rh-bg-success-subtle",
|
|
938
|
-
info: "rh-bg-transparent rh-text-info rh-border-transparent hover:rh-bg-info-subtle"
|
|
955
|
+
info: "rh-bg-transparent rh-text-info rh-border-transparent hover:rh-bg-info-subtle",
|
|
956
|
+
neutral: "rh-bg-transparent rh-text-neutral rh-border-transparent hover:rh-bg-neutral-subtle"
|
|
939
957
|
}
|
|
940
958
|
};
|
|
941
959
|
function getArbitraryColorStyle2(variant, color) {
|
|
@@ -944,6 +962,8 @@ function getArbitraryColorStyle2(variant, color) {
|
|
|
944
962
|
return { color, borderColor: "transparent" };
|
|
945
963
|
}
|
|
946
964
|
var sizeClasses2 = {
|
|
965
|
+
xxs: "rh-h-4 rh-w-4 rh-text-2xs",
|
|
966
|
+
xs: "rh-h-6 rh-w-6 rh-text-xs",
|
|
947
967
|
sm: "rh-h-8 rh-w-8 rh-text-sm",
|
|
948
968
|
md: "rh-h-10 rh-w-10 rh-text-base",
|
|
949
969
|
lg: "rh-h-12 rh-w-12 rh-text-lg"
|
|
@@ -2127,7 +2147,8 @@ var PRESET_COLORS4 = /* @__PURE__ */ new Set([
|
|
|
2127
2147
|
"danger",
|
|
2128
2148
|
"warning",
|
|
2129
2149
|
"success",
|
|
2130
|
-
"info"
|
|
2150
|
+
"info",
|
|
2151
|
+
"neutral"
|
|
2131
2152
|
]);
|
|
2132
2153
|
var isPresetColor4 = (color) => PRESET_COLORS4.has(color);
|
|
2133
2154
|
var activePresetClasses = {
|
|
@@ -2136,7 +2157,8 @@ var activePresetClasses = {
|
|
|
2136
2157
|
danger: "rh-bg-danger rh-text-surface rh-border-danger",
|
|
2137
2158
|
warning: "rh-bg-warning rh-text-surface rh-border-warning",
|
|
2138
2159
|
success: "rh-bg-success rh-text-surface rh-border-success",
|
|
2139
|
-
info: "rh-bg-info rh-text-surface rh-border-info"
|
|
2160
|
+
info: "rh-bg-info rh-text-surface rh-border-info",
|
|
2161
|
+
neutral: "rh-bg-neutral rh-text-surface rh-border-neutral"
|
|
2140
2162
|
};
|
|
2141
2163
|
var inactivePresetClasses = {
|
|
2142
2164
|
primary: "rh-bg-primary/10 rh-text-primary rh-border-primary/30",
|
|
@@ -2144,7 +2166,8 @@ var inactivePresetClasses = {
|
|
|
2144
2166
|
danger: "rh-bg-danger/10 rh-text-danger rh-border-danger/30",
|
|
2145
2167
|
warning: "rh-bg-warning/10 rh-text-warning rh-border-warning/30",
|
|
2146
2168
|
success: "rh-bg-success/10 rh-text-success rh-border-success/30",
|
|
2147
|
-
info: "rh-bg-info/10 rh-text-info rh-border-info/30"
|
|
2169
|
+
info: "rh-bg-info/10 rh-text-info rh-border-info/30",
|
|
2170
|
+
neutral: "rh-bg-neutral/10 rh-text-neutral rh-border-neutral/30"
|
|
2148
2171
|
};
|
|
2149
2172
|
var hoverActivePresetClasses = {
|
|
2150
2173
|
primary: "hover:rh-bg-primary-hover hover:rh-border-primary-hover",
|
|
@@ -2152,7 +2175,8 @@ var hoverActivePresetClasses = {
|
|
|
2152
2175
|
danger: "hover:rh-bg-danger-hover hover:rh-border-danger-hover",
|
|
2153
2176
|
warning: "hover:rh-bg-warning-hover hover:rh-border-warning-hover",
|
|
2154
2177
|
success: "hover:rh-bg-success-hover hover:rh-border-success-hover",
|
|
2155
|
-
info: "hover:rh-bg-info-hover hover:rh-border-info-hover"
|
|
2178
|
+
info: "hover:rh-bg-info-hover hover:rh-border-info-hover",
|
|
2179
|
+
neutral: "hover:rh-bg-neutral-hover hover:rh-border-neutral-hover"
|
|
2156
2180
|
};
|
|
2157
2181
|
var hoverInactivePresetClasses = {
|
|
2158
2182
|
primary: "hover:rh-bg-primary/20 hover:rh-border-primary/50",
|
|
@@ -2160,7 +2184,8 @@ var hoverInactivePresetClasses = {
|
|
|
2160
2184
|
danger: "hover:rh-bg-danger/20 hover:rh-border-danger/50",
|
|
2161
2185
|
warning: "hover:rh-bg-warning/20 hover:rh-border-warning/50",
|
|
2162
2186
|
success: "hover:rh-bg-success/20 hover:rh-border-success/50",
|
|
2163
|
-
info: "hover:rh-bg-info/20 hover:rh-border-info/50"
|
|
2187
|
+
info: "hover:rh-bg-info/20 hover:rh-border-info/50",
|
|
2188
|
+
neutral: "hover:rh-bg-neutral/20 hover:rh-border-neutral/50"
|
|
2164
2189
|
};
|
|
2165
2190
|
var sizeClasses8 = {
|
|
2166
2191
|
sm: "rh-text-xs rh-px-2 rh-py-0.5 rh-gap-1",
|
|
@@ -2767,7 +2792,8 @@ var colorClasses = {
|
|
|
2767
2792
|
danger: "rh-text-danger",
|
|
2768
2793
|
warning: "rh-text-warning",
|
|
2769
2794
|
success: "rh-text-success",
|
|
2770
|
-
info: "rh-text-info"
|
|
2795
|
+
info: "rh-text-info",
|
|
2796
|
+
neutral: "rh-text-neutral"
|
|
2771
2797
|
};
|
|
2772
2798
|
var Spinner = forwardRef(function Spinner2({ size = "md", color = "primary", label = "Carregando...", className = "", style, ...rest }, ref) {
|
|
2773
2799
|
const preset = isPresetColor6(color);
|