@umituz/react-native-design-system 4.25.72 → 4.25.74
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 +1 -1
- package/src/atoms/icon/AtomicIcon.tsx +11 -4
- package/src/atoms/icon/components/iconRenderer.tsx +9 -3
- package/src/atoms/icon/iconStore.ts +1 -0
- package/src/filesystem/infrastructure/services/directory.service.ts +1 -1
- package/src/filesystem/infrastructure/services/download.service.ts +1 -1
- package/src/filesystem/infrastructure/services/file-info.service.ts +1 -1
- package/src/filesystem/infrastructure/services/file-manager.service.ts +1 -1
- package/src/filesystem/infrastructure/services/file-reader.service.ts +1 -1
- package/src/filesystem/infrastructure/services/file-writer.service.ts +1 -1
- package/src/filesystem/infrastructure/utils/blob.utils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.74",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -63,6 +63,8 @@ export interface AtomicIconProps {
|
|
|
63
63
|
backgroundColor?: string;
|
|
64
64
|
/** Accessibility label */
|
|
65
65
|
accessibilityLabel?: string;
|
|
66
|
+
/** Accessibility role */
|
|
67
|
+
accessibilityRole?: import('react-native').AccessibilityRole;
|
|
66
68
|
/** Test ID */
|
|
67
69
|
testID?: string;
|
|
68
70
|
/** Additional styles */
|
|
@@ -84,6 +86,7 @@ export const AtomicIcon: React.FC<AtomicIconProps> = React.memo(
|
|
|
84
86
|
svgPath,
|
|
85
87
|
svgViewBox = '0 0 24 24',
|
|
86
88
|
accessibilityLabel,
|
|
89
|
+
accessibilityRole,
|
|
87
90
|
testID,
|
|
88
91
|
style,
|
|
89
92
|
}) => {
|
|
@@ -102,7 +105,8 @@ export const AtomicIcon: React.FC<AtomicIconProps> = React.memo(
|
|
|
102
105
|
sizeInPixels,
|
|
103
106
|
iconColor,
|
|
104
107
|
testID,
|
|
105
|
-
accessibilityLabel
|
|
108
|
+
accessibilityLabel,
|
|
109
|
+
accessibilityRole
|
|
106
110
|
);
|
|
107
111
|
|
|
108
112
|
if (withBackground) {
|
|
@@ -112,7 +116,8 @@ export const AtomicIcon: React.FC<AtomicIconProps> = React.memo(
|
|
|
112
116
|
backgroundColor || tokens.colors.surfaceVariant,
|
|
113
117
|
style,
|
|
114
118
|
testID,
|
|
115
|
-
accessibilityLabel
|
|
119
|
+
accessibilityLabel,
|
|
120
|
+
accessibilityRole
|
|
116
121
|
);
|
|
117
122
|
}
|
|
118
123
|
|
|
@@ -142,7 +147,8 @@ export const AtomicIcon: React.FC<AtomicIconProps> = React.memo(
|
|
|
142
147
|
iconColor,
|
|
143
148
|
style,
|
|
144
149
|
testID,
|
|
145
|
-
accessibilityLabel
|
|
150
|
+
accessibilityLabel,
|
|
151
|
+
accessibilityRole
|
|
146
152
|
);
|
|
147
153
|
|
|
148
154
|
const iconElement = iconRenderer(renderProps);
|
|
@@ -154,7 +160,8 @@ export const AtomicIcon: React.FC<AtomicIconProps> = React.memo(
|
|
|
154
160
|
backgroundColor || tokens.colors.surfaceVariant,
|
|
155
161
|
style,
|
|
156
162
|
testID,
|
|
157
|
-
accessibilityLabel
|
|
163
|
+
accessibilityLabel,
|
|
164
|
+
accessibilityRole
|
|
158
165
|
);
|
|
159
166
|
}
|
|
160
167
|
|
|
@@ -25,7 +25,8 @@ export function renderSvgIcon(
|
|
|
25
25
|
size: number,
|
|
26
26
|
color: string,
|
|
27
27
|
testID?: string,
|
|
28
|
-
accessibilityLabel?: string
|
|
28
|
+
accessibilityLabel?: string,
|
|
29
|
+
accessibilityRole?: import('react-native').AccessibilityRole
|
|
29
30
|
): React.ReactElement {
|
|
30
31
|
return (
|
|
31
32
|
<Svg
|
|
@@ -34,6 +35,7 @@ export function renderSvgIcon(
|
|
|
34
35
|
height={size}
|
|
35
36
|
testID={testID}
|
|
36
37
|
accessibilityLabel={accessibilityLabel}
|
|
38
|
+
accessibilityRole={accessibilityRole}
|
|
37
39
|
>
|
|
38
40
|
<Path d={svgPath} fill={color} />
|
|
39
41
|
</Svg>
|
|
@@ -57,7 +59,8 @@ export function renderWithBackground(
|
|
|
57
59
|
backgroundColor: string,
|
|
58
60
|
style?: StyleProp<ViewStyle>,
|
|
59
61
|
testID?: string,
|
|
60
|
-
accessibilityLabel?: string
|
|
62
|
+
accessibilityLabel?: string,
|
|
63
|
+
accessibilityRole?: import('react-native').AccessibilityRole
|
|
61
64
|
): React.ReactElement {
|
|
62
65
|
const containerSize = size + 16;
|
|
63
66
|
|
|
@@ -75,6 +78,7 @@ export function renderWithBackground(
|
|
|
75
78
|
]}
|
|
76
79
|
testID={testID}
|
|
77
80
|
accessibilityLabel={accessibilityLabel}
|
|
81
|
+
accessibilityRole={accessibilityRole}
|
|
78
82
|
>
|
|
79
83
|
{iconElement}
|
|
80
84
|
</View>
|
|
@@ -98,7 +102,8 @@ export function buildIconRenderProps(
|
|
|
98
102
|
color: string,
|
|
99
103
|
style?: StyleProp<ViewStyle>,
|
|
100
104
|
testID?: string,
|
|
101
|
-
accessibilityLabel?: string
|
|
105
|
+
accessibilityLabel?: string,
|
|
106
|
+
accessibilityRole?: import('react-native').AccessibilityRole
|
|
102
107
|
): IconRenderProps {
|
|
103
108
|
return {
|
|
104
109
|
name,
|
|
@@ -107,6 +112,7 @@ export function buildIconRenderProps(
|
|
|
107
112
|
style: style as StyleProp<ViewStyle>,
|
|
108
113
|
testID,
|
|
109
114
|
accessibilityLabel,
|
|
115
|
+
accessibilityRole,
|
|
110
116
|
};
|
|
111
117
|
}
|
|
112
118
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Single Responsibility: Manage directory operations
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Directory, Paths } from "expo-file-system
|
|
6
|
+
import { Directory, Paths } from "expo-file-system";
|
|
7
7
|
import type { DirectoryType } from "../../domain/entities/File";
|
|
8
8
|
import { ErrorHandler, ErrorCodes } from "../../../utils/errors";
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Download Service
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { File, Paths, Directory } from "expo-file-system
|
|
5
|
+
import { File, Paths, Directory } from "expo-file-system";
|
|
6
6
|
import type { FileOperationResult } from "../../domain/entities/File";
|
|
7
7
|
import { FileUtils } from "../../domain/entities/File";
|
|
8
8
|
import { SUPPORTED_DOWNLOAD_EXTENSIONS, DEFAULT_DOWNLOAD_EXTENSION } from "./download.constants";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Single Responsibility: Manage file operations (delete, copy, move)
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { File, Directory } from "expo-file-system
|
|
6
|
+
import { File, Directory } from "expo-file-system";
|
|
7
7
|
import type { FileOperationResult } from "../../domain/entities/File";
|
|
8
8
|
import { ErrorHandler, ErrorCodes } from "../../../utils/errors";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Single Responsibility: Write files to device storage
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { File } from "expo-file-system
|
|
6
|
+
import { File } from "expo-file-system";
|
|
7
7
|
import type { FileEncoding, FileOperationResult } from "../../domain/entities/File";
|
|
8
8
|
import { getEncodingType, type ExpoEncodingType } from "./encoding.service";
|
|
9
9
|
import { ErrorHandler } from "../../../utils/errors";
|