@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/components/AdaptiveStatusBarNext.tsx +1 -5
- package/next/dist/index.d.mts +9 -2
- package/next/dist/index.d.ts +9 -2
- package/next/dist/index.js +328 -432
- package/next/dist/index.js.map +1 -1
- package/next/dist/index.mjs +328 -433
- package/next/dist/index.mjs.map +1 -1
- package/next/package.json +3 -3
- package/package.json +1 -1
- package/src/Components/StarRating.tsx +4 -1
- package/src/Components/TextField.tsx +408 -485
- package/src/theme/colors.ts +24 -0
- package/src/theme/index.tsx +3 -3
- package/src/types.ts +40 -45
package/next/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoddy-ui/next",
|
|
3
|
-
"version": "2.5.
|
|
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
|
-
"
|
|
18
|
-
"
|
|
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
|
@@ -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={
|
|
164
|
+
color={
|
|
165
|
+
colors[inactiveColor as keyof typeof colors]?.main || inactiveColor
|
|
166
|
+
}
|
|
164
167
|
/>
|
|
165
168
|
))}
|
|
166
169
|
</View>
|