@umituz/react-native-design-system 2.0.13 → 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.13",
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
+ }
@@ -87,9 +87,9 @@ export const MODAL_CONFIG = {
87
87
  WIDTH_PERCENT_TABLET: 0.75, // 75% of screen width for tablets
88
88
 
89
89
  // Height percentages by device type
90
- HEIGHT_PERCENT_SMALL: 0.85, // 85% of screen height for small devices
91
- HEIGHT_PERCENT_STANDARD: 0.88, // 88% of screen height for standard devices
92
- HEIGHT_PERCENT_TABLET: 0.80, // 80% of screen height for tablets
90
+ HEIGHT_PERCENT_SMALL: 0.75, // 75% of screen height for small devices
91
+ HEIGHT_PERCENT_STANDARD: 0.78, // 78% of screen height for standard devices
92
+ HEIGHT_PERCENT_TABLET: 0.70, // 70% of screen height for tablets
93
93
 
94
94
  // Max width constraints
95
95
  MAX_WIDTH_PHONE: 480, // Maximum modal width for phones
@@ -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;