@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.
|
|
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
|
|
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
|
-
<
|
|
202
|
-
size="
|
|
202
|
+
<AtomicSpinner
|
|
203
|
+
size="sm"
|
|
203
204
|
color={iconColor as string}
|
|
204
205
|
style={styles.icon}
|
|
205
206
|
/>
|
package/src/atoms/EmptyState.tsx
CHANGED
|
@@ -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
|
-
<
|
|
87
|
-
size="
|
|
88
|
-
color=
|
|
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
|
|
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
|
-
<
|
|
130
|
-
size="
|
|
129
|
+
<AtomicSpinner
|
|
130
|
+
size="lg"
|
|
131
131
|
color={colors.text}
|
|
132
132
|
style={styles.loadingIndicator}
|
|
133
133
|
/>
|