@hoddy-ui/next 2.0.23 → 2.0.25

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.mjs CHANGED
@@ -579,6 +579,7 @@ var LinkButton = ({
579
579
  text: {
580
580
  fontSize: moderateScale2(fontSize),
581
581
  fontWeight,
582
+ fontFamily: getConfig().DEFAULT_FONT_FAMILY || "System",
582
583
  color: disabled ? "#777" : colors2[color].main
583
584
  }
584
585
  });
@@ -685,7 +686,8 @@ var Button = forwardRef2(
685
686
  text: {
686
687
  color: disabled ? variant === "text" || variant === "outlined" ? colors2.black[1] : colors2[color].text : colors2[color][variant === "text" || variant === "outlined" ? "main" : "text"],
687
688
  fontWeight: variant === "outlined" ? "700" : "500",
688
- fontSize: size === "small" ? "12@ms" : "16@ms"
689
+ fontSize: size === "small" ? "12@ms" : "16@ms",
690
+ fontFamily: getConfig().DEFAULT_FONT_FAMILY || "System"
689
691
  }
690
692
  });
691
693
  return /* @__PURE__ */ React8.createElement(
@@ -1326,8 +1328,10 @@ var TextField = ({
1326
1328
  }) => {
1327
1329
  const colors2 = useColors();
1328
1330
  const [focused, setFocused] = useState7(false);
1329
- const labelAnim = useRef(new Animated.Value(0)).current;
1330
1331
  const height = moderateScale3(variant === "text" ? 50 : 45) * (size === "large" ? 1.2 : size === "small" ? 0.8 : 1);
1332
+ const labelAnim = useRef(
1333
+ new Animated.Value(height / moderateScale3(variant === "text" ? 2.5 : 3.2))
1334
+ ).current;
1331
1335
  React15.useEffect(() => {
1332
1336
  if (focused || value) {
1333
1337
  Animated.timing(labelAnim, {
@@ -1369,6 +1373,7 @@ var TextField = ({
1369
1373
  paddingLeft: variant === "text" ? 0 : moderateScale3(15),
1370
1374
  paddingRight: moderateScale3(10),
1371
1375
  paddingTop: "11@vs",
1376
+ fontFamily: getConfig().DEFAULT_FONT_FAMILY || "System",
1372
1377
  color: colors2.black[1],
1373
1378
  zIndex: 10
1374
1379
  // backgroundColor: "#284",
@@ -1380,6 +1385,7 @@ var TextField = ({
1380
1385
  paddingTop: "13@ms"
1381
1386
  },
1382
1387
  label: {
1388
+ fontFamily: getConfig().DEFAULT_FONT_FAMILY || "System",
1383
1389
  position: "absolute",
1384
1390
  left: variant === "text" ? 0 : moderateScale3(15),
1385
1391
  fontSize: focused || value ? "10@s" : "13@s",
@@ -1470,15 +1476,33 @@ var TextField = ({
1470
1476
  style: styles2.input
1471
1477
  }
1472
1478
  ),
1473
- end && /* @__PURE__ */ React15.createElement(View10, { style: { marginRight: 20 } }, end),
1474
- options && /* @__PURE__ */ React15.createElement(View10, { style: { marginRight: 20 } }, /* @__PURE__ */ React15.createElement(
1475
- Ionicons3,
1479
+ end && /* @__PURE__ */ React15.createElement(
1480
+ View10,
1476
1481
  {
1477
- name: "chevron-down",
1478
- color: colors2.textSecondary.main,
1479
- size: 24
1480
- }
1481
- ))
1482
+ style: {
1483
+ marginRight: 20,
1484
+ paddingTop: variant !== "outlined" ? ms(13) : 0
1485
+ }
1486
+ },
1487
+ end
1488
+ ),
1489
+ options && /* @__PURE__ */ React15.createElement(
1490
+ View10,
1491
+ {
1492
+ style: {
1493
+ marginRight: 20,
1494
+ paddingTop: variant !== "outlined" ? ms(13) : 0
1495
+ }
1496
+ },
1497
+ /* @__PURE__ */ React15.createElement(
1498
+ Ionicons3,
1499
+ {
1500
+ name: "chevron-down",
1501
+ color: colors2.textSecondary.main,
1502
+ size: 24
1503
+ }
1504
+ )
1505
+ )
1482
1506
  ), helperText && /* @__PURE__ */ React15.createElement(
1483
1507
  Typography_default,
1484
1508
  {