@umituz/react-native-design-system 2.6.21 → 2.6.23

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.6.21",
3
+ "version": "2.6.23",
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",
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import { StyleSheet, StyleProp, ViewStyle, TextStyle, TouchableOpacity, View, ActivityIndicator } from 'react-native';
2
+ import { StyleSheet, StyleProp, ViewStyle, TextStyle, TouchableOpacity, View } from 'react-native';
3
3
  import { AtomicText } from './AtomicText';
4
4
  import { AtomicIcon } from './AtomicIcon';
5
+ import { AtomicSpinner } from './AtomicSpinner';
5
6
  import { useAppDesignTokens } from '../theme';
6
7
  import type { IconName } from './AtomicIcon';
7
8
 
@@ -198,8 +199,8 @@ export const AtomicButton: React.FC<AtomicButtonProps> = React.memo(({
198
199
  >
199
200
  <View style={styles.content}>
200
201
  {loading ? (
201
- <ActivityIndicator
202
- size="small"
202
+ <AtomicSpinner
203
+ size="sm"
203
204
  color={iconColor as string}
204
205
  style={styles.icon}
205
206
  />
@@ -26,7 +26,7 @@ export interface EmptyStateProps {
26
26
  }
27
27
 
28
28
  export const EmptyState: React.FC<EmptyStateProps> = ({
29
- icon = 'inbox',
29
+ icon = 'file-tray-outline',
30
30
  title,
31
31
  subtitle,
32
32
  description,
@@ -3,11 +3,11 @@ import {
3
3
  View,
4
4
  TextInput,
5
5
  TouchableOpacity,
6
- ActivityIndicator,
7
6
  StyleSheet,
8
7
  } from 'react-native';
9
8
  import { useAppDesignTokens } from '../../theme';
10
9
  import { AtomicIcon } from '../../atoms/AtomicIcon';
10
+ import { AtomicSpinner } from '../../atoms/AtomicSpinner';
11
11
  import type { SearchBarProps } from './types';
12
12
 
13
13
  export const SearchBar: React.FC<SearchBarProps> = ({
@@ -83,9 +83,9 @@ export const SearchBar: React.FC<SearchBarProps> = ({
83
83
  {(loading || showClear) && (
84
84
  <View style={styles.rightActions}>
85
85
  {loading && (
86
- <ActivityIndicator
87
- size="small"
88
- color={tokens.colors.primary}
86
+ <AtomicSpinner
87
+ size="sm"
88
+ color="primary"
89
89
  style={styles.loader}
90
90
  />
91
91
  )}
@@ -4,10 +4,10 @@
4
4
  */
5
5
 
6
6
  import React, { useEffect, useState, useCallback } from "react";
7
- import { View, Image, StyleSheet, ActivityIndicator } from "react-native";
7
+ import { View, Image, StyleSheet } from "react-native";
8
8
  import { LinearGradient } from "expo-linear-gradient";
9
9
  import { useSafeAreaInsets } from "../../../safe-area";
10
- import { AtomicText } from "../../../atoms";
10
+ import { AtomicText, AtomicSpinner } from "../../../atoms";
11
11
  import { useAppDesignTokens } from "../../../theme";
12
12
  import type { SplashScreenProps, SplashColors } from "../types";
13
13
  import { SPLASH_CONSTANTS } from "../constants";
@@ -126,8 +126,8 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
126
126
 
127
127
  {/* Always show loading indicator during initialization */}
128
128
  <View style={styles.loadingContainer}>
129
- <ActivityIndicator
130
- size="large"
129
+ <AtomicSpinner
130
+ size="lg"
131
131
  color={colors.text}
132
132
  style={styles.loadingIndicator}
133
133
  />