@umituz/react-native-design-system 2.0.14 → 2.0.16

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.14",
3
+ "version": "2.0.16",
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",
@@ -21,8 +21,8 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "scripts": {
24
- "typecheck": "echo 'TypeScript validation passed'",
25
- "lint": "echo 'Lint passed'",
24
+ "typecheck": "tsc --noEmit",
25
+ "lint": "eslint . --ext .ts,.tsx",
26
26
  "version:patch": "npm version patch -m 'chore: release v%s'",
27
27
  "version:minor": "npm version minor -m 'chore: release v%s'",
28
28
  "version:major": "npm version major -m 'chore: release v%s'"
@@ -83,12 +83,13 @@
83
83
  "@react-navigation/native": "^6.0.0",
84
84
  "@types/jest": "^30.0.0",
85
85
  "@types/react": "~19.1.10",
86
- "@typescript-eslint/eslint-plugin": "^8.50.0",
87
- "@typescript-eslint/parser": "^8.50.0",
86
+ "@typescript-eslint/eslint-plugin": "^8.50.1",
87
+ "@typescript-eslint/parser": "^8.50.1",
88
88
  "@umituz/react-native-icons": "latest",
89
89
  "eslint": "^9.39.2",
90
90
  "eslint-plugin-react": "^7.37.5",
91
91
  "eslint-plugin-react-hooks": "^7.0.1",
92
+ "eslint-plugin-react-native": "^5.0.0",
92
93
  "react": "19.1.0",
93
94
  "react-native": "0.81.5",
94
95
  "react-native-gesture-handler": "^2.20.0",
@@ -106,4 +107,4 @@
106
107
  "README.md",
107
108
  "LICENSE"
108
109
  ]
109
- }
110
+ }
@@ -40,11 +40,8 @@ export const AtomicCard: React.FC<AtomicCardProps> = ({
40
40
  case 'elevated':
41
41
  return {
42
42
  backgroundColor: tokens.colors.surface,
43
- shadowColor: '#000',
44
- shadowOffset: { width: 0, height: 2 },
45
- shadowOpacity: 0.1,
46
- shadowRadius: 4,
47
- elevation: 2,
43
+ borderWidth: 1,
44
+ borderColor: tokens.colors.outlineVariant || tokens.colors.outline,
48
45
  };
49
46
  case 'outlined':
50
47
  return {
@@ -29,7 +29,7 @@ const useConfirmButtonStyle = (
29
29
  ) => {
30
30
  return React.useCallback(() => {
31
31
  const baseStyle = getButtonStyle();
32
- const variantStyles = [];
32
+ const variantStyles: ViewStyle[] = [];
33
33
 
34
34
  if (variant === 'destructive') variantStyles.push({ backgroundColor: tokens.colors.error });
35
35
  if (variant === 'warning') variantStyles.push({ backgroundColor: tokens.colors.warning });
@@ -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;