@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.d.mts
CHANGED
|
@@ -116,13 +116,18 @@ type RehagroTheme = {
|
|
|
116
116
|
inputPxSm?: string;
|
|
117
117
|
inputPxMd?: string;
|
|
118
118
|
inputPxLg?: string;
|
|
119
|
+
/** Button heights */
|
|
120
|
+
buttonHeightSm?: string;
|
|
121
|
+
buttonHeightMd?: string;
|
|
122
|
+
buttonHeightLg?: string;
|
|
123
|
+
buttonHeightXl?: string;
|
|
119
124
|
/** Typography — Inter for body/labels, Sora for headings/display */
|
|
120
125
|
fontFamilyBody?: string;
|
|
121
126
|
fontFamilyDisplay?: string;
|
|
122
127
|
};
|
|
123
128
|
type RehagroProviderProps = {
|
|
124
129
|
/** Theme overrides — any token not provided keeps the default value */
|
|
125
|
-
theme
|
|
130
|
+
theme: RehagroTheme;
|
|
126
131
|
/** Toast container position. Default: "top-right" */
|
|
127
132
|
toastPosition?: ToastPosition;
|
|
128
133
|
children: React.ReactNode;
|
|
@@ -131,7 +136,7 @@ type RehagroProviderProps = {
|
|
|
131
136
|
declare function RehagroProvider({ theme, toastPosition, children }: RehagroProviderProps): react_jsx_runtime.JSX.Element;
|
|
132
137
|
|
|
133
138
|
type ButtonVariant = "solid" | "outline" | "ghost";
|
|
134
|
-
type ButtonSize = "sm" | "md" | "lg";
|
|
139
|
+
type ButtonSize = "sm" | "md" | "lg" | "xl";
|
|
135
140
|
type ButtonRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
136
141
|
type ButtonHoverStyle = {
|
|
137
142
|
/** Background on hover */
|
package/dist/index.d.ts
CHANGED
|
@@ -116,13 +116,18 @@ type RehagroTheme = {
|
|
|
116
116
|
inputPxSm?: string;
|
|
117
117
|
inputPxMd?: string;
|
|
118
118
|
inputPxLg?: string;
|
|
119
|
+
/** Button heights */
|
|
120
|
+
buttonHeightSm?: string;
|
|
121
|
+
buttonHeightMd?: string;
|
|
122
|
+
buttonHeightLg?: string;
|
|
123
|
+
buttonHeightXl?: string;
|
|
119
124
|
/** Typography — Inter for body/labels, Sora for headings/display */
|
|
120
125
|
fontFamilyBody?: string;
|
|
121
126
|
fontFamilyDisplay?: string;
|
|
122
127
|
};
|
|
123
128
|
type RehagroProviderProps = {
|
|
124
129
|
/** Theme overrides — any token not provided keeps the default value */
|
|
125
|
-
theme
|
|
130
|
+
theme: RehagroTheme;
|
|
126
131
|
/** Toast container position. Default: "top-right" */
|
|
127
132
|
toastPosition?: ToastPosition;
|
|
128
133
|
children: React.ReactNode;
|
|
@@ -131,7 +136,7 @@ type RehagroProviderProps = {
|
|
|
131
136
|
declare function RehagroProvider({ theme, toastPosition, children }: RehagroProviderProps): react_jsx_runtime.JSX.Element;
|
|
132
137
|
|
|
133
138
|
type ButtonVariant = "solid" | "outline" | "ghost";
|
|
134
|
-
type ButtonSize = "sm" | "md" | "lg";
|
|
139
|
+
type ButtonSize = "sm" | "md" | "lg" | "xl";
|
|
135
140
|
type ButtonRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
136
141
|
type ButtonHoverStyle = {
|
|
137
142
|
/** Background on hover */
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,10 @@ var TOKEN_MAP = {
|
|
|
45
45
|
inputPxSm: { var: "--rh-input-px-sm", isColor: false },
|
|
46
46
|
inputPxMd: { var: "--rh-input-px-md", isColor: false },
|
|
47
47
|
inputPxLg: { var: "--rh-input-px-lg", isColor: false },
|
|
48
|
+
buttonHeightSm: { var: "--rh-button-height-sm", isColor: false },
|
|
49
|
+
buttonHeightMd: { var: "--rh-button-height-md", isColor: false },
|
|
50
|
+
buttonHeightLg: { var: "--rh-button-height-lg", isColor: false },
|
|
51
|
+
buttonHeightXl: { var: "--rh-button-height-xl", isColor: false },
|
|
48
52
|
fontFamilyBody: { var: "--rh-font-family", isColor: false },
|
|
49
53
|
fontFamilyDisplay: { var: "--rh-font-family-display", isColor: false }
|
|
50
54
|
};
|
|
@@ -691,7 +695,6 @@ function toRgbTriplet(value) {
|
|
|
691
695
|
}
|
|
692
696
|
function RehagroProvider({ theme, toastPosition, children }) {
|
|
693
697
|
const style = React9.useMemo(() => {
|
|
694
|
-
if (!theme) return void 0;
|
|
695
698
|
const vars = {};
|
|
696
699
|
for (const [key, config] of Object.entries(TOKEN_MAP)) {
|
|
697
700
|
const value = theme[key];
|
|
@@ -768,9 +771,10 @@ function getArbitraryColorStyle(variant, color) {
|
|
|
768
771
|
return { color, borderColor: "transparent" };
|
|
769
772
|
}
|
|
770
773
|
var sizeClasses = {
|
|
771
|
-
sm: "rh-text-sm rh-px-3 rh-
|
|
772
|
-
md: "rh-text-sm rh-px-4 rh-
|
|
773
|
-
lg: "rh-text-base rh-px-5 rh-
|
|
774
|
+
sm: "rh-text-sm rh-px-3 rh-h-button-sm",
|
|
775
|
+
md: "rh-text-sm rh-px-4 rh-h-button-md",
|
|
776
|
+
lg: "rh-text-base rh-px-5 rh-h-button-lg",
|
|
777
|
+
xl: "rh-text-lg rh-px-6 rh-h-button-xl"
|
|
774
778
|
};
|
|
775
779
|
var radiusClasses = {
|
|
776
780
|
none: "rh-rounded-none",
|