@particle-network/ui-native 0.3.2-beta.3 → 0.4.0-beta.10
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.
|
@@ -35,8 +35,21 @@ const ProgressWrapper = ({ style, svgStyle, value = 0, width, height, radius = '
|
|
|
35
35
|
const rectXY = strokeWidth / 2 + padding / 2;
|
|
36
36
|
const perimeter = 2 * (rectWidth + rectHeight);
|
|
37
37
|
const strokeDashoffset = perimeter * (1 - clampedProgress / 100);
|
|
38
|
-
const colorValue =
|
|
39
|
-
|
|
38
|
+
const colorValue = useMemo(()=>{
|
|
39
|
+
if ('transparent' === color) return 'transparent';
|
|
40
|
+
if (color.startsWith('#')) return color;
|
|
41
|
+
return getColor(color);
|
|
42
|
+
}, [
|
|
43
|
+
color,
|
|
44
|
+
getColor
|
|
45
|
+
]);
|
|
46
|
+
const trackColor = useMemo(()=>{
|
|
47
|
+
if ('transparent' === color) return 'transparent';
|
|
48
|
+
return `${colorValue}40`;
|
|
49
|
+
}, [
|
|
50
|
+
color,
|
|
51
|
+
colorValue
|
|
52
|
+
]);
|
|
40
53
|
const radiusValue = getRadius(radius);
|
|
41
54
|
const createPathData = (x, y, w, h, r)=>{
|
|
42
55
|
if (0 === r) return `
|
|
@@ -132,7 +132,8 @@ const UXInput = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
132
132
|
allowFontScaling: false,
|
|
133
133
|
editable: !isDisabled && !isReadOnly,
|
|
134
134
|
placeholderTextColor: getColor('tertiary'),
|
|
135
|
-
|
|
135
|
+
cursorColor: styles.container.borderColor,
|
|
136
|
+
selectionColor: `${styles.container.borderColor}90`,
|
|
136
137
|
style: [
|
|
137
138
|
styles.input,
|
|
138
139
|
inputStyle
|
|
@@ -230,7 +230,8 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
230
230
|
editable: !isDisabled && !isReadOnly,
|
|
231
231
|
keyboardType: keyboardType,
|
|
232
232
|
placeholderTextColor: getColor('tertiary'),
|
|
233
|
-
|
|
233
|
+
cursorColor: styles.container.borderColor,
|
|
234
|
+
selectionColor: `${styles.container.borderColor}90`,
|
|
234
235
|
style: [
|
|
235
236
|
styles.input,
|
|
236
237
|
inputStyle
|
|
@@ -57,11 +57,7 @@ const useStyles = (props)=>{
|
|
|
57
57
|
isInvalid,
|
|
58
58
|
getColor
|
|
59
59
|
]);
|
|
60
|
-
const backgroundColor = useMemo(()=>
|
|
61
|
-
if (isInvalid) return `${getColor('danger')}50`;
|
|
62
|
-
return getColor('bg-200');
|
|
63
|
-
}, [
|
|
64
|
-
isInvalid,
|
|
60
|
+
const backgroundColor = useMemo(()=>getColor('bg-200'), [
|
|
65
61
|
getColor
|
|
66
62
|
]);
|
|
67
63
|
const containerPadding = useMemo(()=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-beta.10",
|
|
4
4
|
"main": "./entry.js",
|
|
5
5
|
"react-native": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"react-native-paper": "^5.14.5",
|
|
45
45
|
"react-native-size-matters": "^0.4.2",
|
|
46
46
|
"react-native-toast-message": "^2.3.3",
|
|
47
|
-
"@particle-network/icons": "0.4.0-beta.
|
|
48
|
-
"@particle-network/ui-shared": "0.3.0-beta.
|
|
47
|
+
"@particle-network/icons": "0.4.0-beta.8",
|
|
48
|
+
"@particle-network/ui-shared": "0.3.0-beta.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/core": "^7.24.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"vite": "^6.3.5",
|
|
91
91
|
"zustand": "^5.0.8",
|
|
92
92
|
"@particle-network/eslint-config": "0.3.0",
|
|
93
|
-
"@particle-network/icons": "0.4.0-beta.
|
|
93
|
+
"@particle-network/icons": "0.4.0-beta.8",
|
|
94
94
|
"@particle-network/lintstaged-config": "0.1.0"
|
|
95
95
|
},
|
|
96
96
|
"overrides": {
|