@particle-network/ui-native 0.1.2 → 0.1.3-beta.3
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/components/UXTabs/styles.js +10 -2
- package/entry.js +5 -0
- package/package.json +28 -24
|
@@ -8,10 +8,18 @@ const useStyles = (props)=>{
|
|
|
8
8
|
const { getColor } = useColors();
|
|
9
9
|
const { getRadius } = useRadius();
|
|
10
10
|
const { ms } = useMs();
|
|
11
|
-
const fontSize = useMemo(()=>
|
|
11
|
+
const fontSize = useMemo(()=>{
|
|
12
|
+
if ('switch' === variant) {
|
|
13
|
+
if ('sm' === size) return ms(11);
|
|
14
|
+
if ('lg' === size) return ms(14);
|
|
15
|
+
return ms(12);
|
|
16
|
+
}
|
|
17
|
+
return ms(tabsConfig.fontSize[size]);
|
|
18
|
+
}, [
|
|
12
19
|
size,
|
|
13
20
|
ms,
|
|
14
|
-
tabsConfig.fontSize
|
|
21
|
+
tabsConfig.fontSize,
|
|
22
|
+
variant
|
|
15
23
|
]);
|
|
16
24
|
const height = useMemo(()=>{
|
|
17
25
|
if ('text' === variant) return fontSize + ms(4);
|
package/entry.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./entry.js",
|
|
6
6
|
"react-native": "./dist/index.js",
|
|
@@ -16,27 +16,15 @@
|
|
|
16
16
|
"default": "./dist/index.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"start": "expo start",
|
|
21
|
-
"android": "expo start --android",
|
|
22
|
-
"ios": "expo start --ios",
|
|
23
|
-
"web": "storybook dev -p 6006",
|
|
24
|
-
"storybook:build": "storybook build",
|
|
25
|
-
"storybook:preview": "serve storybook-static",
|
|
26
|
-
"storybook:generate": "sb-rn-get-stories",
|
|
27
|
-
"type-check": "npx tsc --noEmit -p ./tsconfig.json",
|
|
28
|
-
"dev": "rslib build --watch",
|
|
29
|
-
"build": "rslib build",
|
|
30
|
-
"lint": "eslint . --no-error-on-unmatched-pattern --quiet",
|
|
31
|
-
"lint:fix": "eslint . --fix --no-error-on-unmatched-pattern --quiet",
|
|
32
|
-
"clean": "rm -rf .turbo node_modules dist",
|
|
33
|
-
"deploy:dev": "sh ./scripts/deploy-dev.sh"
|
|
34
|
-
},
|
|
35
19
|
"files": [
|
|
36
20
|
"dist",
|
|
37
21
|
"README.md",
|
|
38
22
|
"LICENSE"
|
|
39
23
|
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"registry": "https://registry.npmjs.org/"
|
|
27
|
+
},
|
|
40
28
|
"repository": {
|
|
41
29
|
"type": "git",
|
|
42
30
|
"url": "https://gitlab.minijoy.work/frontend/ux-design",
|
|
@@ -52,7 +40,6 @@
|
|
|
52
40
|
"author": "UniversalX",
|
|
53
41
|
"dependencies": {
|
|
54
42
|
"@lottiefiles/dotlottie-react": "^0.16.2",
|
|
55
|
-
"@particle-network/ui-shared": "workspace:*",
|
|
56
43
|
"ahooks": "^3.9.4",
|
|
57
44
|
"deepmerge": "^4.3.1",
|
|
58
45
|
"expo-haptics": "^15.0.7",
|
|
@@ -60,7 +47,8 @@
|
|
|
60
47
|
"lottie-react-native": "^7.3.4",
|
|
61
48
|
"react-native-paper": "^5.14.5",
|
|
62
49
|
"react-native-size-matters": "^0.4.2",
|
|
63
|
-
"react-native-toast-message": "^2.3.3"
|
|
50
|
+
"react-native-toast-message": "^2.3.3",
|
|
51
|
+
"@particle-network/ui-shared": "0.1.0"
|
|
64
52
|
},
|
|
65
53
|
"devDependencies": {
|
|
66
54
|
"@babel/core": "^7.24.0",
|
|
@@ -68,9 +56,6 @@
|
|
|
68
56
|
"@chromatic-com/storybook": "^4.1.1",
|
|
69
57
|
"@expo/metro-runtime": "~6.1.2",
|
|
70
58
|
"@gorhom/bottom-sheet": "^5.1.2",
|
|
71
|
-
"@particle-network/eslint-config": "workspace:*",
|
|
72
|
-
"@particle-network/icons": "workspace:*",
|
|
73
|
-
"@particle-network/lintstaged-config": "workspace:*",
|
|
74
59
|
"@react-native-async-storage/async-storage": "2.2.0",
|
|
75
60
|
"@react-native-community/datetimepicker": "8.4.4",
|
|
76
61
|
"@react-native-community/slider": "5.0.1",
|
|
@@ -104,7 +89,10 @@
|
|
|
104
89
|
"typescript": "~5.9.2",
|
|
105
90
|
"unfetch": "^4.2.0",
|
|
106
91
|
"vite": "^6.3.5",
|
|
107
|
-
"zustand": "^5.0.8"
|
|
92
|
+
"zustand": "^5.0.8",
|
|
93
|
+
"@particle-network/icons": "0.1.2-beta.3",
|
|
94
|
+
"@particle-network/lintstaged-config": "0.0.0",
|
|
95
|
+
"@particle-network/eslint-config": "0.2.0"
|
|
108
96
|
},
|
|
109
97
|
"overrides": {
|
|
110
98
|
"react-docgen-typescript": "2.2.2",
|
|
@@ -116,5 +104,21 @@
|
|
|
116
104
|
"listUnknownPackages": false
|
|
117
105
|
}
|
|
118
106
|
}
|
|
107
|
+
},
|
|
108
|
+
"scripts": {
|
|
109
|
+
"start": "expo start",
|
|
110
|
+
"android": "expo start --android",
|
|
111
|
+
"ios": "expo start --ios",
|
|
112
|
+
"web": "storybook dev -p 6006",
|
|
113
|
+
"storybook:build": "storybook build",
|
|
114
|
+
"storybook:preview": "serve storybook-static",
|
|
115
|
+
"storybook:generate": "sb-rn-get-stories",
|
|
116
|
+
"type-check": "npx tsc --noEmit -p ./tsconfig.json",
|
|
117
|
+
"dev": "rslib build --watch",
|
|
118
|
+
"build": "rslib build",
|
|
119
|
+
"lint": "eslint . --no-error-on-unmatched-pattern --quiet",
|
|
120
|
+
"lint:fix": "eslint . --fix --no-error-on-unmatched-pattern --quiet",
|
|
121
|
+
"clean": "rm -rf .turbo node_modules dist",
|
|
122
|
+
"deploy:dev": "sh ./scripts/deploy-dev.sh"
|
|
119
123
|
}
|
|
120
|
-
}
|
|
124
|
+
}
|