@hoddy-ui/core 2.5.48 → 2.5.52

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/next/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/next",
3
- "version": "2.5.81",
3
+ "version": "2.5.99",
4
4
  "description": "Core rich react native components written in typescript, with support for expo-router",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -14,8 +14,8 @@
14
14
  "license": "MIT",
15
15
  "private": false,
16
16
  "scripts": {
17
- "build": "tsup",
18
- "deploy": "yarn build && yarn publish"
17
+ "deploy": "yarn build && yarn publish",
18
+ "build": "tsup"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@expo/vector-icons": ">=13.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "2.5.48",
3
+ "version": "2.5.52",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -137,6 +137,7 @@ export const RatingStars: FC<RatingStarsProps> = ({
137
137
  rating = 0,
138
138
  size = 16,
139
139
  color = "#FFD700",
140
+ inactiveColor = "textSecondary",
140
141
  }) => {
141
142
  const colors = useColors();
142
143
  const styles = ScaledSheet.create({
@@ -160,7 +161,9 @@ export const RatingStars: FC<RatingStarsProps> = ({
160
161
  key={index}
161
162
  name="star"
162
163
  size={size}
163
- color={colors.textSecondary.light}
164
+ color={
165
+ colors[inactiveColor as keyof typeof colors]?.main || inactiveColor
166
+ }
164
167
  />
165
168
  ))}
166
169
  </View>