@umituz/react-native-design-system 2.0.14 → 2.0.15
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -106,4 +106,4 @@
|
|
|
106
106
|
"README.md",
|
|
107
107
|
"LICENSE"
|
|
108
108
|
]
|
|
109
|
-
}
|
|
109
|
+
}
|
|
@@ -28,6 +28,7 @@ export type DesignTokens = {
|
|
|
28
28
|
iconSizes: typeof BASE_TOKENS.iconSizes;
|
|
29
29
|
opacity: typeof BASE_TOKENS.opacity;
|
|
30
30
|
avatarSizes: typeof BASE_TOKENS.avatarSizes;
|
|
31
|
+
borderRadius: typeof BASE_TOKENS.borders.radius;
|
|
31
32
|
borders: typeof BASE_TOKENS.borders & {
|
|
32
33
|
card: typeof BASE_TOKENS.borders.card & { borderColor: string };
|
|
33
34
|
input: typeof BASE_TOKENS.borders.input & { borderColor: string };
|
|
@@ -78,6 +79,7 @@ export const createDesignTokens = (
|
|
|
78
79
|
iconSizes: BASE_TOKENS.iconSizes,
|
|
79
80
|
opacity: BASE_TOKENS.opacity,
|
|
80
81
|
avatarSizes: BASE_TOKENS.avatarSizes,
|
|
82
|
+
borderRadius: BASE_TOKENS.borders.radius,
|
|
81
83
|
|
|
82
84
|
// ✅ BORDERS: Static + injected border colors from theme
|
|
83
85
|
borders: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Border Radius Tokens
|
|
3
|
+
* Single Responsibility: Define border radius scale
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const borderRadius = {
|
|
7
|
+
none: 0,
|
|
8
|
+
sm: 4,
|
|
9
|
+
md: 8,
|
|
10
|
+
lg: 12,
|
|
11
|
+
xl: 20,
|
|
12
|
+
xxl: 24,
|
|
13
|
+
full: 9999,
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
export type BorderRadius = typeof borderRadius;
|