@rehagro/ui 1.0.29 → 1.0.30
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/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +6 -2
- package/dist/native.d.ts +6 -2
- package/dist/native.js +10 -4
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +10 -4
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -39,6 +39,10 @@ var TOKEN_MAP = {
|
|
|
39
39
|
inputPxSm: { var: "--rh-input-px-sm", isColor: false },
|
|
40
40
|
inputPxMd: { var: "--rh-input-px-md", isColor: false },
|
|
41
41
|
inputPxLg: { var: "--rh-input-px-lg", isColor: false },
|
|
42
|
+
buttonHeightSm: { var: "--rh-button-height-sm", isColor: false },
|
|
43
|
+
buttonHeightMd: { var: "--rh-button-height-md", isColor: false },
|
|
44
|
+
buttonHeightLg: { var: "--rh-button-height-lg", isColor: false },
|
|
45
|
+
buttonHeightXl: { var: "--rh-button-height-xl", isColor: false },
|
|
42
46
|
fontFamilyBody: { var: "--rh-font-family", isColor: false },
|
|
43
47
|
fontFamilyDisplay: { var: "--rh-font-family-display", isColor: false }
|
|
44
48
|
};
|
|
@@ -685,7 +689,6 @@ function toRgbTriplet(value) {
|
|
|
685
689
|
}
|
|
686
690
|
function RehagroProvider({ theme, toastPosition, children }) {
|
|
687
691
|
const style = useMemo(() => {
|
|
688
|
-
if (!theme) return void 0;
|
|
689
692
|
const vars = {};
|
|
690
693
|
for (const [key, config] of Object.entries(TOKEN_MAP)) {
|
|
691
694
|
const value = theme[key];
|
|
@@ -762,9 +765,10 @@ function getArbitraryColorStyle(variant, color) {
|
|
|
762
765
|
return { color, borderColor: "transparent" };
|
|
763
766
|
}
|
|
764
767
|
var sizeClasses = {
|
|
765
|
-
sm: "rh-text-sm rh-px-3 rh-
|
|
766
|
-
md: "rh-text-sm rh-px-4 rh-
|
|
767
|
-
lg: "rh-text-base rh-px-5 rh-
|
|
768
|
+
sm: "rh-text-sm rh-px-3 rh-h-button-sm",
|
|
769
|
+
md: "rh-text-sm rh-px-4 rh-h-button-md",
|
|
770
|
+
lg: "rh-text-base rh-px-5 rh-h-button-lg",
|
|
771
|
+
xl: "rh-text-lg rh-px-6 rh-h-button-xl"
|
|
768
772
|
};
|
|
769
773
|
var radiusClasses = {
|
|
770
774
|
none: "rh-rounded-none",
|