@umituz/react-native-design-system 1.4.0 → 1.4.1

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.
Files changed (77) hide show
  1. package/README.md +2 -1
  2. package/lib/index.d.ts +3 -2
  3. package/lib/index.d.ts.map +1 -1
  4. package/lib/index.js +8 -2
  5. package/lib/index.js.map +1 -1
  6. package/lib/presentation/atoms/AtomicButton.d.ts +1 -0
  7. package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -1
  8. package/lib/presentation/atoms/AtomicButton.js +9 -6
  9. package/lib/presentation/atoms/AtomicButton.js.map +1 -1
  10. package/lib/presentation/atoms/AtomicDatePicker.js +1 -1
  11. package/lib/presentation/atoms/AtomicDatePicker.js.map +1 -1
  12. package/lib/presentation/atoms/AtomicFab.d.ts +1 -0
  13. package/lib/presentation/atoms/AtomicFab.d.ts.map +1 -1
  14. package/lib/presentation/atoms/AtomicFab.js +5 -4
  15. package/lib/presentation/atoms/AtomicFab.js.map +1 -1
  16. package/lib/presentation/atoms/AtomicPicker.js +1 -1
  17. package/lib/presentation/atoms/AtomicPicker.js.map +1 -1
  18. package/lib/presentation/atoms/AtomicProgress.d.ts +3 -0
  19. package/lib/presentation/atoms/AtomicProgress.d.ts.map +1 -1
  20. package/lib/presentation/atoms/AtomicProgress.js +2 -1
  21. package/lib/presentation/atoms/AtomicProgress.js.map +1 -1
  22. package/lib/presentation/atoms/AtomicSkeleton.d.ts +4 -4
  23. package/lib/presentation/atoms/AtomicSkeleton.js +4 -4
  24. package/lib/presentation/atoms/AtomicTouchable.d.ts +11 -1
  25. package/lib/presentation/atoms/AtomicTouchable.d.ts.map +1 -1
  26. package/lib/presentation/atoms/AtomicTouchable.js +19 -6
  27. package/lib/presentation/atoms/AtomicTouchable.js.map +1 -1
  28. package/lib/presentation/atoms/fab/types/index.d.ts +5 -0
  29. package/lib/presentation/atoms/fab/types/index.d.ts.map +1 -1
  30. package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts +5 -0
  31. package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts.map +1 -1
  32. package/lib/presentation/atoms/touchable/styles/touchableStyles.js +8 -0
  33. package/lib/presentation/atoms/touchable/styles/touchableStyles.js.map +1 -1
  34. package/lib/presentation/atoms/touchable/types/index.d.ts +7 -1
  35. package/lib/presentation/atoms/touchable/types/index.d.ts.map +1 -1
  36. package/lib/presentation/loading/presentation/components/LoadingState.d.ts +39 -0
  37. package/lib/presentation/loading/presentation/components/LoadingState.d.ts.map +1 -0
  38. package/lib/presentation/loading/presentation/components/LoadingState.js +123 -0
  39. package/lib/presentation/loading/presentation/components/LoadingState.js.map +1 -0
  40. package/lib/presentation/molecules/AtomicConfirmationModal.js +1 -1
  41. package/lib/presentation/organisms/ScreenLayout.d.ts +15 -0
  42. package/lib/presentation/organisms/ScreenLayout.d.ts.map +1 -1
  43. package/lib/presentation/organisms/ScreenLayout.js +10 -1
  44. package/lib/presentation/organisms/ScreenLayout.js.map +1 -1
  45. package/lib/presentation/tokens/AppDesignTokens.d.ts +1 -1
  46. package/lib/presentation/tokens/AppDesignTokens.d.ts.map +1 -1
  47. package/lib/presentation/tokens/AppDesignTokens.js +1 -1
  48. package/lib/presentation/tokens/AppDesignTokens.js.map +1 -1
  49. package/lib/presentation/tokens/commonStyles.d.ts +1 -1
  50. package/lib/presentation/tokens/commonStyles.js +1 -1
  51. package/lib/presentation/tokens/core/BaseTokens.d.ts +25 -0
  52. package/lib/presentation/tokens/core/BaseTokens.d.ts.map +1 -1
  53. package/lib/presentation/tokens/core/BaseTokens.js +18 -0
  54. package/lib/presentation/tokens/core/BaseTokens.js.map +1 -1
  55. package/lib/presentation/tokens/core/TokenFactory.d.ts +15 -2
  56. package/lib/presentation/tokens/core/TokenFactory.d.ts.map +1 -1
  57. package/lib/presentation/tokens/core/TokenFactory.js +2 -1
  58. package/lib/presentation/tokens/core/TokenFactory.js.map +1 -1
  59. package/package.json +3 -4
  60. package/src/index.ts +10 -1
  61. package/src/presentation/atoms/AtomicButton.tsx +16 -5
  62. package/src/presentation/atoms/AtomicDatePicker.tsx +1 -1
  63. package/src/presentation/atoms/AtomicFab.tsx +9 -3
  64. package/src/presentation/atoms/AtomicPicker.tsx +1 -1
  65. package/src/presentation/atoms/AtomicProgress.tsx +4 -0
  66. package/src/presentation/atoms/AtomicSkeleton.tsx +4 -4
  67. package/src/presentation/atoms/AtomicTouchable.tsx +27 -3
  68. package/src/presentation/atoms/fab/types/index.ts +6 -0
  69. package/src/presentation/atoms/touchable/styles/touchableStyles.ts +9 -0
  70. package/src/presentation/atoms/touchable/types/index.ts +8 -1
  71. package/src/presentation/loading/presentation/components/LoadingState.tsx +200 -0
  72. package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
  73. package/src/presentation/organisms/ScreenLayout.tsx +40 -0
  74. package/src/presentation/tokens/AppDesignTokens.ts +2 -0
  75. package/src/presentation/tokens/commonStyles.ts +1 -1
  76. package/src/presentation/tokens/core/BaseTokens.ts +22 -0
  77. package/src/presentation/tokens/core/TokenFactory.ts +4 -2
@@ -31,12 +31,14 @@ export {
31
31
  BASE_TOKENS,
32
32
  spacing,
33
33
  typography,
34
+ animations,
34
35
  borders,
35
36
  iconSizes,
36
37
  opacity,
37
38
  avatarSizes,
38
39
  type Spacing,
39
40
  type Typography,
41
+ type Animations,
40
42
  type Borders,
41
43
  type IconSizes,
42
44
  type Opacity,
@@ -96,7 +96,7 @@ export const useCommonStyles = () => {
96
96
 
97
97
  /**
98
98
  * Centered container - both horizontal and vertical
99
- * Perfect for empty states, splash screens
99
+ * Perfect for empty states, loading screens, splash screens
100
100
  */
101
101
  centerContainer: {
102
102
  flex: 1,
@@ -219,6 +219,26 @@ export const typography = {
219
219
  } as TextStyle,
220
220
  } as const;
221
221
 
222
+ // =============================================================================
223
+ // ANIMATION TOKENS
224
+ // =============================================================================
225
+
226
+ export const animations = {
227
+ // Duration scale (milliseconds)
228
+ fastest: 150,
229
+ fast: 150,
230
+ normal: 300,
231
+ slow: 500,
232
+ slower: 750,
233
+ slowest: 1000,
234
+
235
+ // Easing functions
236
+ easeInOut: 'ease-in-out' as const,
237
+ easeIn: 'ease-in' as const,
238
+ easeOut: 'ease-out' as const,
239
+ linear: 'linear' as const,
240
+ } as const;
241
+
222
242
  // =============================================================================
223
243
  // OPACITY TOKENS
224
244
  // =============================================================================
@@ -351,6 +371,7 @@ export const avatarSizes = {
351
371
  export const BASE_TOKENS = {
352
372
  spacing,
353
373
  typography,
374
+ animations,
354
375
  opacity,
355
376
  borders,
356
377
  sizes,
@@ -364,6 +385,7 @@ export const BASE_TOKENS = {
364
385
 
365
386
  export type Spacing = typeof spacing;
366
387
  export type Typography = typeof typography;
388
+ export type Animations = typeof animations;
367
389
  export type Opacity = typeof opacity;
368
390
  export type Borders = typeof borders;
369
391
  export type Sizes = typeof sizes;
@@ -18,12 +18,13 @@ import { getColorPalette, withAlpha, type ThemeMode, type ColorPalette } from '.
18
18
 
19
19
  /**
20
20
  * Complete design tokens shape
21
- * Combines static tokens (spacing, typography, borders) + dynamic colors
21
+ * Combines static tokens (spacing, typography, animations, borders) + dynamic colors
22
22
  */
23
23
  export type DesignTokens = {
24
24
  colors: ColorPalette;
25
25
  spacing: typeof BASE_TOKENS.spacing;
26
26
  typography: typeof BASE_TOKENS.typography;
27
+ animations: typeof BASE_TOKENS.animations;
27
28
  iconSizes: typeof BASE_TOKENS.iconSizes;
28
29
  opacity: typeof BASE_TOKENS.opacity;
29
30
  avatarSizes: typeof BASE_TOKENS.avatarSizes;
@@ -66,6 +67,7 @@ export const createDesignTokens = (mode: ThemeMode): DesignTokens => {
66
67
  // ✅ STATIC: These don't change with theme
67
68
  spacing: BASE_TOKENS.spacing,
68
69
  typography: BASE_TOKENS.typography,
70
+ animations: BASE_TOKENS.animations,
69
71
  iconSizes: BASE_TOKENS.iconSizes,
70
72
  opacity: BASE_TOKENS.opacity,
71
73
  avatarSizes: BASE_TOKENS.avatarSizes,
@@ -105,7 +107,7 @@ export const createDesignTokens = (mode: ThemeMode): DesignTokens => {
105
107
  export const STATIC_DESIGN_TOKENS = createDesignTokens('light');
106
108
 
107
109
  /**
108
- * STATIC TOKENS (spacing, typography, borders)
110
+ * STATIC TOKENS (spacing, typography, animations, borders)
109
111
  * These DON'T change with theme - safe to use anywhere
110
112
  */
111
113
  export const STATIC_TOKENS = BASE_TOKENS;