@umituz/react-native-design-system 4.25.1 → 4.25.3

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": "4.25.1",
3
+ "version": "4.25.3",
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",
@@ -6,7 +6,7 @@ import { CarouselDots } from "./CarouselDots";
6
6
  import { CarouselItem } from "./CarouselItem";
7
7
  import { useCarouselScroll } from "./useCarouselScroll";
8
8
  import { calculateItemWidth } from "./carouselCalculations";
9
- import type { CarouselProps, CarouselItem as CarouselItemType } from "./types";
9
+ import type { CarouselProps } from "./types";
10
10
 
11
11
  export const Carousel = <T,>({
12
12
  items,
@@ -4,10 +4,8 @@
4
4
  * React hook for device and application information.
5
5
  */
6
6
 
7
- import { useState, useEffect, useCallback, useRef } from 'react';
8
7
  import { DeviceService } from '../../infrastructure/services/DeviceService';
9
8
  import { PersistentDeviceIdService } from '../../infrastructure/services/PersistentDeviceIdService';
10
- import type { DeviceInfo, ApplicationInfo, SystemInfo } from '../../domain/entities/Device';
11
9
  import { useAsyncOperation } from '../../../utils/hooks';
12
10
 
13
11
  export const useDeviceInfo = () => {
@@ -19,7 +19,7 @@ export async function deleteFile(uri: string): Promise<boolean> {
19
19
  await file.delete();
20
20
  return true;
21
21
  }
22
- } catch (fileError) {
22
+ } catch (_fileError) {
23
23
  // Not a file, try as directory
24
24
  if (__DEV__) {
25
25
  console.log('[deleteFile] Not a file, trying as directory:', uri);
@@ -33,7 +33,7 @@ export async function deleteFile(uri: string): Promise<boolean> {
33
33
  await dir.delete();
34
34
  return true;
35
35
  }
36
- } catch (dirError) {
36
+ } catch (_dirError) {
37
37
  // Not a directory either
38
38
  if (__DEV__) {
39
39
  console.log('[deleteFile] Not a directory:', uri);
@@ -6,7 +6,7 @@
6
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
- import { ErrorHandler, ErrorCodes } from "../../../utils/errors";
9
+ import { ErrorHandler } from "../../../utils/errors";
10
10
 
11
11
  /**
12
12
  * Write string to file
@@ -22,7 +22,7 @@ import {
22
22
  } from "../utils/mediaPickerMappers";
23
23
  import { PermissionManager } from "../utils/PermissionManager";
24
24
  import { FileValidator } from "../../domain/utils/FileValidator";
25
- import { ErrorHandler, ErrorCodes } from "../../../utils/errors";
25
+ import { ErrorHandler } from "../../../utils/errors";
26
26
 
27
27
  /**
28
28
  * Media picker service for selecting images/videos
@@ -5,7 +5,7 @@
5
5
 
6
6
  import * as FileSystem from "expo-file-system";
7
7
  import { MediaLibraryPermission } from "../../domain/entities/Media";
8
- import { ErrorHandler, ErrorCodes } from "../../../utils/errors";
8
+ import { ErrorHandler } from "../../../utils/errors";
9
9
 
10
10
  export interface SaveResult {
11
11
  success: boolean;
@@ -4,7 +4,6 @@
4
4
  * Business date utilities for work days and month boundaries
5
5
  * Handles weekend detection and business day calculations
6
6
  */
7
- import { parseDate } from '../utils/TimezoneParsers';
8
7
 
9
8
  export class BusinessCalendarManager {
10
9
  /**
@@ -4,8 +4,6 @@
4
4
  * Precise date comparison utilities and relative time formatting
5
5
  * Handles hour/minute precision comparisons and "from now" formatting
6
6
  */
7
- import { parseDate } from '../utils/TimezoneParsers';
8
-
9
7
  export class DateComparisonUtils {
10
8
  /**
11
9
  * Check if two dates are same hour
@@ -4,8 +4,6 @@
4
4
  * Date range utilities for working with date intervals
5
5
  * Handles range generation, overlap detection, and clamping
6
6
  */
7
- import { parseDate } from '../utils/TimezoneParsers';
8
-
9
7
  export class DateRangeUtils {
10
8
  /**
11
9
  * Get array of dates in range (inclusive)
@@ -5,8 +5,6 @@
5
5
  * Useful for network requests, file operations, etc.
6
6
  */
7
7
 
8
- import { ErrorHandler } from '../errors/ErrorHandler';
9
-
10
8
  export interface RetryOptions {
11
9
  /**
12
10
  * Maximum number of retry attempts
@@ -182,7 +182,6 @@ export function useAsyncOperation<T, E = Error>(
182
182
  if (immediate && !skip) {
183
183
  execute();
184
184
  }
185
- // eslint-disable-next-line react-hooks/exhaustive-deps
186
185
  }, [immediate, skip]);
187
186
 
188
187
  // Derived state
@@ -4,10 +4,6 @@
4
4
  * Logs are suppressed in production builds to reduce bundle size and improve performance
5
5
  */
6
6
 
7
- /* eslint-disable no-console */
8
-
9
- type LogLevel = "debug" | "info" | "warn" | "error";
10
-
11
7
  interface LoggerConfig {
12
8
  enableInProduction?: boolean;
13
9
  errorTrackingService?: (error: unknown, context?: Record<string, unknown>) => void;