@hoddy-ui/next 2.5.84 → 2.5.86

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 CHANGED
@@ -274,6 +274,7 @@ interface RatingStarsProps {
274
274
  rating: number;
275
275
  size: number;
276
276
  color?: colorTypes | (string & {});
277
+ inactiveColor?: colorTypes | (string & {});
277
278
  }
278
279
  interface RatingInputProps {
279
280
  rating?: number;
package/dist/index.d.ts CHANGED
@@ -274,6 +274,7 @@ interface RatingStarsProps {
274
274
  rating: number;
275
275
  size: number;
276
276
  color?: colorTypes | (string & {});
277
+ inactiveColor?: colorTypes | (string & {});
277
278
  }
278
279
  interface RatingInputProps {
279
280
  rating?: number;
package/dist/index.js CHANGED
@@ -1291,7 +1291,8 @@ var RatingInput = ({
1291
1291
  var RatingStars = ({
1292
1292
  rating = 0,
1293
1293
  size = 16,
1294
- color = "#FFD700"
1294
+ color = "#FFD700",
1295
+ inactiveColor = "textSecondary"
1295
1296
  }) => {
1296
1297
  const colors2 = useColors();
1297
1298
  const styles = import_react_native_size_matters9.ScaledSheet.create({
@@ -1314,7 +1315,7 @@ var RatingStars = ({
1314
1315
  key: index,
1315
1316
  name: "star",
1316
1317
  size,
1317
- color: colors2.textSecondary.light
1318
+ color: colors2[inactiveColor]?.main || inactiveColor
1318
1319
  }
1319
1320
  )));
1320
1321
  };
@@ -1610,7 +1611,7 @@ var TextField = ({
1610
1611
  paddingRight: (0, import_react_native_size_matters13.moderateScale)(10),
1611
1612
  paddingTop: "11@vs",
1612
1613
  fontFamily: getFontFamily(400),
1613
- color: colors2.black[1],
1614
+ color: disabled ? colors2.textSecondary.main : colors2.dark.main,
1614
1615
  zIndex: 10
1615
1616
  // backgroundColor: "#284",
1616
1617
  },
@@ -1912,7 +1913,7 @@ var TextField2 = import_react16.default.forwardRef(
1912
1913
  alignSelf: "stretch",
1913
1914
  paddingLeft: (0, import_react_native_size_matters13.moderateScale)(10),
1914
1915
  paddingRight: (0, import_react_native_size_matters13.moderateScale)(10),
1915
- color: colors2.dark.main,
1916
+ color: disabled ? colors2.textSecondary.main : colors2.dark.main,
1916
1917
  zIndex: 10
1917
1918
  // backgroundColor: "#284",
1918
1919
  },