@particle-network/ui-native 0.1.3-beta.3 → 0.1.3-beta.4
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.
|
@@ -10,6 +10,7 @@ const useStyles = (props)=>{
|
|
|
10
10
|
const { getSpacing } = useSpacing();
|
|
11
11
|
const { ms } = useMs();
|
|
12
12
|
const sizeMap = useMemo(()=>({
|
|
13
|
+
xs: ms(buttonConfig.size.xs),
|
|
13
14
|
sm: ms(buttonConfig.size.sm),
|
|
14
15
|
md: ms(buttonConfig.size.md),
|
|
15
16
|
lg: ms(buttonConfig.size.lg),
|
|
@@ -19,6 +20,7 @@ const useStyles = (props)=>{
|
|
|
19
20
|
ms
|
|
20
21
|
]);
|
|
21
22
|
const fontSizeMap = useMemo(()=>({
|
|
23
|
+
xs: ms(buttonConfig.fontSize.xs),
|
|
22
24
|
sm: ms(buttonConfig.fontSize.sm),
|
|
23
25
|
md: ms(buttonConfig.fontSize.md),
|
|
24
26
|
lg: ms(buttonConfig.fontSize.lg),
|
|
@@ -28,12 +30,14 @@ const useStyles = (props)=>{
|
|
|
28
30
|
buttonConfig.fontSize
|
|
29
31
|
]);
|
|
30
32
|
const radiusMap = {
|
|
33
|
+
xs: 'xs',
|
|
31
34
|
sm: 'sm',
|
|
32
35
|
md: 'sm',
|
|
33
36
|
lg: 'md',
|
|
34
37
|
auto: 'sm'
|
|
35
38
|
};
|
|
36
39
|
const paddingMap = useMemo(()=>({
|
|
40
|
+
xs: ms(4),
|
|
37
41
|
sm: ms(6),
|
|
38
42
|
md: ms(10),
|
|
39
43
|
lg: ms(14)
|
|
@@ -10,6 +10,7 @@ export interface UXButtonProps extends Omit<UXPressableProps, 'style' | 'disable
|
|
|
10
10
|
* @default 'md'
|
|
11
11
|
* | size | ux-pro | ux |
|
|
12
12
|
* | :----- | :----- | :----- |
|
|
13
|
+
* | xs | 20 | 36 |
|
|
13
14
|
* | sm | 24 | 40 |
|
|
14
15
|
* | md | 30 | 44 |
|
|
15
16
|
* | lg | 44 | 48 |
|
|
@@ -17,11 +18,12 @@ export interface UXButtonProps extends Omit<UXPressableProps, 'style' | 'disable
|
|
|
17
18
|
* fontSize
|
|
18
19
|
* | size | ux-pro | ux |
|
|
19
20
|
* | :----- | :----- | :----- |
|
|
21
|
+
* | xs | 11 | 12 |
|
|
20
22
|
* | sm | 10 | 14 |
|
|
21
23
|
* | md | 12 | 16 |
|
|
22
24
|
* | lg | 16 | 18 |
|
|
23
25
|
*/
|
|
24
|
-
size?: 'sm' | 'md' | 'lg' | 'auto';
|
|
26
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'auto';
|
|
25
27
|
variant?: 'solid' | 'bordered' | 'flat' | 'text' | 'light';
|
|
26
28
|
radius?: UXRadius;
|
|
27
29
|
isDisabled?: boolean;
|
package/dist/config/config.ux.js
CHANGED
package/dist/types/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-native",
|
|
3
|
-
"version": "0.1.3-beta.
|
|
4
|
-
"license": "MIT",
|
|
3
|
+
"version": "0.1.3-beta.4",
|
|
5
4
|
"main": "./entry.js",
|
|
6
5
|
"react-native": "./dist/index.js",
|
|
7
6
|
"module": "./dist/index.js",
|
|
@@ -18,8 +17,7 @@
|
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
20
19
|
"dist",
|
|
21
|
-
"README.md"
|
|
22
|
-
"LICENSE"
|
|
20
|
+
"README.md"
|
|
23
21
|
],
|
|
24
22
|
"publishConfig": {
|
|
25
23
|
"access": "public",
|
|
@@ -48,7 +46,7 @@
|
|
|
48
46
|
"react-native-paper": "^5.14.5",
|
|
49
47
|
"react-native-size-matters": "^0.4.2",
|
|
50
48
|
"react-native-toast-message": "^2.3.3",
|
|
51
|
-
"@particle-network/ui-shared": "0.1.0"
|
|
49
|
+
"@particle-network/ui-shared": "0.1.1-beta.0"
|
|
52
50
|
},
|
|
53
51
|
"devDependencies": {
|
|
54
52
|
"@babel/core": "^7.24.0",
|
|
@@ -90,9 +88,9 @@
|
|
|
90
88
|
"unfetch": "^4.2.0",
|
|
91
89
|
"vite": "^6.3.5",
|
|
92
90
|
"zustand": "^5.0.8",
|
|
93
|
-
"@particle-network/
|
|
94
|
-
"@particle-network/
|
|
95
|
-
"@particle-network/
|
|
91
|
+
"@particle-network/eslint-config": "0.2.0",
|
|
92
|
+
"@particle-network/icons": "0.1.2-beta.6",
|
|
93
|
+
"@particle-network/lintstaged-config": "0.0.0"
|
|
96
94
|
},
|
|
97
95
|
"overrides": {
|
|
98
96
|
"react-docgen-typescript": "2.2.2",
|