@hoddy-ui/next 2.0.19 → 2.0.21
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 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -207,6 +207,8 @@ var Typography = forwardRef(
|
|
|
207
207
|
numberOfLines,
|
|
208
208
|
adjustsFontSizeToFit,
|
|
209
209
|
fontWeight = 400,
|
|
210
|
+
fontFamily,
|
|
211
|
+
// NEW PROP ADDED
|
|
210
212
|
...props
|
|
211
213
|
}, ref) => {
|
|
212
214
|
const colors2 = useColors();
|
|
@@ -229,7 +231,9 @@ var Typography = forwardRef(
|
|
|
229
231
|
textTransform: textCase,
|
|
230
232
|
alignItems: "center",
|
|
231
233
|
textAlign: align,
|
|
232
|
-
fontWeight: fontWeight.toString()
|
|
234
|
+
fontWeight: fontWeight.toString(),
|
|
235
|
+
fontFamily: fontFamily || "System"
|
|
236
|
+
// Use custom font if provided, else default
|
|
233
237
|
}
|
|
234
238
|
});
|
|
235
239
|
return /* @__PURE__ */ React2.createElement(
|
|
@@ -238,7 +242,7 @@ var Typography = forwardRef(
|
|
|
238
242
|
ref,
|
|
239
243
|
numberOfLines,
|
|
240
244
|
adjustsFontSizeToFit,
|
|
241
|
-
style:
|
|
245
|
+
style: [styles2.text, style],
|
|
242
246
|
...props
|
|
243
247
|
},
|
|
244
248
|
children
|
|
@@ -877,10 +881,14 @@ var Popup = ({
|
|
|
877
881
|
}
|
|
878
882
|
});
|
|
879
883
|
React11.useEffect(() => {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
+
if (open) {
|
|
885
|
+
setShow(open);
|
|
886
|
+
setTimeout(() => {
|
|
887
|
+
setShowSecondary(open);
|
|
888
|
+
}, 500);
|
|
889
|
+
} else {
|
|
890
|
+
closeAction();
|
|
891
|
+
}
|
|
884
892
|
}, [open]);
|
|
885
893
|
const closeAction = () => {
|
|
886
894
|
setShowSecondary(false);
|