@rehagro/ui 1.0.11 → 1.0.12
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +7 -1
- package/dist/native.d.ts +7 -1
- package/dist/native.js +9 -3
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +9 -3
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -116,6 +116,9 @@ type RehagroTheme = {
|
|
|
116
116
|
inputPxSm?: string;
|
|
117
117
|
inputPxMd?: string;
|
|
118
118
|
inputPxLg?: string;
|
|
119
|
+
/** Typography — Inter for body/labels, Sora for headings/display */
|
|
120
|
+
fontFamilyBody?: string;
|
|
121
|
+
fontFamilyDisplay?: string;
|
|
119
122
|
};
|
|
120
123
|
type RehagroProviderProps = {
|
|
121
124
|
/** Theme overrides — any token not provided keeps the default value */
|
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,9 @@ type RehagroTheme = {
|
|
|
116
116
|
inputPxSm?: string;
|
|
117
117
|
inputPxMd?: string;
|
|
118
118
|
inputPxLg?: string;
|
|
119
|
+
/** Typography — Inter for body/labels, Sora for headings/display */
|
|
120
|
+
fontFamilyBody?: string;
|
|
121
|
+
fontFamilyDisplay?: string;
|
|
119
122
|
};
|
|
120
123
|
type RehagroProviderProps = {
|
|
121
124
|
/** Theme overrides — any token not provided keeps the default value */
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,9 @@ var TOKEN_MAP = {
|
|
|
44
44
|
inputHeightLg: { var: "--rh-input-height-lg", isColor: false },
|
|
45
45
|
inputPxSm: { var: "--rh-input-px-sm", isColor: false },
|
|
46
46
|
inputPxMd: { var: "--rh-input-px-md", isColor: false },
|
|
47
|
-
inputPxLg: { var: "--rh-input-px-lg", isColor: false }
|
|
47
|
+
inputPxLg: { var: "--rh-input-px-lg", isColor: false },
|
|
48
|
+
fontFamilyBody: { var: "--rh-font-family", isColor: false },
|
|
49
|
+
fontFamilyDisplay: { var: "--rh-font-family-display", isColor: false }
|
|
48
50
|
};
|
|
49
51
|
var DeleteIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
50
52
|
"svg",
|
|
@@ -735,7 +737,7 @@ var Button = React8.forwardRef(function Button2({
|
|
|
735
737
|
style: computedStyle,
|
|
736
738
|
className: [
|
|
737
739
|
"rh-inline-flex rh-items-center rh-justify-center rh-gap-2",
|
|
738
|
-
"rh-border rh-font-
|
|
740
|
+
"rh-border rh-font-display rh-font-medium",
|
|
739
741
|
"rh-transition-colors rh-duration-150",
|
|
740
742
|
"focus-visible:rh-outline-none focus-visible:rh-ring-2 focus-visible:rh-ring-ring focus-visible:rh-ring-offset-2",
|
|
741
743
|
preset && !hasCustomHover ? variantColorClasses[variant][color] : "",
|
|
@@ -868,7 +870,7 @@ var IconButton = React8.forwardRef(function IconButton2({
|
|
|
868
870
|
style: computedStyle,
|
|
869
871
|
className: [
|
|
870
872
|
"rh-inline-flex rh-items-center rh-justify-center",
|
|
871
|
-
"rh-border rh-font-
|
|
873
|
+
"rh-border rh-font-display",
|
|
872
874
|
"rh-transition-colors rh-duration-150",
|
|
873
875
|
"focus-visible:rh-outline-none focus-visible:rh-ring-2 focus-visible:rh-ring-ring focus-visible:rh-ring-offset-2",
|
|
874
876
|
preset ? variantColorClasses2[variant][color] : "hover:rh-brightness-90",
|
|
@@ -1115,7 +1117,7 @@ var Checkbox = React8.forwardRef(function Checkbox2({
|
|
|
1115
1117
|
{
|
|
1116
1118
|
htmlFor: inputId,
|
|
1117
1119
|
className: [
|
|
1118
|
-
"rh-inline-flex rh-items-center rh-gap-2 rh-font-
|
|
1120
|
+
"rh-inline-flex rh-items-center rh-gap-2 rh-font-display rh-select-none",
|
|
1119
1121
|
disabled ? "rh-cursor-not-allowed rh-opacity-50" : "rh-cursor-pointer",
|
|
1120
1122
|
className
|
|
1121
1123
|
].filter(Boolean).join(" "),
|
|
@@ -1823,7 +1825,7 @@ var Avatar = React8.forwardRef(function Avatar2({ src, alt = "", initials, size
|
|
|
1823
1825
|
className: [
|
|
1824
1826
|
"rh-inline-flex rh-items-center rh-justify-center rh-shrink-0 rh-overflow-hidden",
|
|
1825
1827
|
avatarColors ? "" : "rh-bg-primary rh-text-surface",
|
|
1826
|
-
"rh-font-
|
|
1828
|
+
"rh-font-display rh-font-medium rh-select-none",
|
|
1827
1829
|
sizeClasses7[size],
|
|
1828
1830
|
variantClasses2[variant],
|
|
1829
1831
|
className
|
|
@@ -1928,7 +1930,7 @@ var Tag = React8.forwardRef(function Tag2({
|
|
|
1928
1930
|
"aria-pressed": clickable ? active : void 0,
|
|
1929
1931
|
"aria-disabled": disabled || void 0,
|
|
1930
1932
|
className: [
|
|
1931
|
-
"rh-inline-flex rh-items-center rh-font-
|
|
1933
|
+
"rh-inline-flex rh-items-center rh-font-display rh-font-medium rh-rounded-full",
|
|
1932
1934
|
"rh-border rh-whitespace-nowrap rh-select-none",
|
|
1933
1935
|
"rh-transition-colors rh-duration-150",
|
|
1934
1936
|
"rh-cursor-pointer",
|
|
@@ -2409,7 +2411,7 @@ function ToggleGroupInner({
|
|
|
2409
2411
|
onClick: () => !isDisabled && onChange(option.value),
|
|
2410
2412
|
className: [
|
|
2411
2413
|
"rh-flex rh-items-center rh-justify-center rh-h-full",
|
|
2412
|
-
"rh-border-0 rh-font-
|
|
2414
|
+
"rh-border-0 rh-font-display rh-font-medium",
|
|
2413
2415
|
"rh-transition-all rh-duration-150",
|
|
2414
2416
|
"focus-visible:rh-outline-none focus-visible:rh-ring-2 focus-visible:rh-ring-ring",
|
|
2415
2417
|
radiusClasses6[radius],
|