@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.
- package/README.md +2 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -2
- package/lib/index.js.map +1 -1
- package/lib/presentation/atoms/AtomicButton.d.ts +1 -0
- package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicButton.js +9 -6
- package/lib/presentation/atoms/AtomicButton.js.map +1 -1
- package/lib/presentation/atoms/AtomicDatePicker.js +1 -1
- package/lib/presentation/atoms/AtomicDatePicker.js.map +1 -1
- package/lib/presentation/atoms/AtomicFab.d.ts +1 -0
- package/lib/presentation/atoms/AtomicFab.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicFab.js +5 -4
- package/lib/presentation/atoms/AtomicFab.js.map +1 -1
- package/lib/presentation/atoms/AtomicPicker.js +1 -1
- package/lib/presentation/atoms/AtomicPicker.js.map +1 -1
- package/lib/presentation/atoms/AtomicProgress.d.ts +3 -0
- package/lib/presentation/atoms/AtomicProgress.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicProgress.js +2 -1
- package/lib/presentation/atoms/AtomicProgress.js.map +1 -1
- package/lib/presentation/atoms/AtomicSkeleton.d.ts +4 -4
- package/lib/presentation/atoms/AtomicSkeleton.js +4 -4
- package/lib/presentation/atoms/AtomicTouchable.d.ts +11 -1
- package/lib/presentation/atoms/AtomicTouchable.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicTouchable.js +19 -6
- package/lib/presentation/atoms/AtomicTouchable.js.map +1 -1
- package/lib/presentation/atoms/fab/types/index.d.ts +5 -0
- package/lib/presentation/atoms/fab/types/index.d.ts.map +1 -1
- package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts +5 -0
- package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts.map +1 -1
- package/lib/presentation/atoms/touchable/styles/touchableStyles.js +8 -0
- package/lib/presentation/atoms/touchable/styles/touchableStyles.js.map +1 -1
- package/lib/presentation/atoms/touchable/types/index.d.ts +7 -1
- package/lib/presentation/atoms/touchable/types/index.d.ts.map +1 -1
- package/lib/presentation/loading/presentation/components/LoadingState.d.ts +39 -0
- package/lib/presentation/loading/presentation/components/LoadingState.d.ts.map +1 -0
- package/lib/presentation/loading/presentation/components/LoadingState.js +123 -0
- package/lib/presentation/loading/presentation/components/LoadingState.js.map +1 -0
- package/lib/presentation/molecules/AtomicConfirmationModal.js +1 -1
- package/lib/presentation/organisms/ScreenLayout.d.ts +15 -0
- package/lib/presentation/organisms/ScreenLayout.d.ts.map +1 -1
- package/lib/presentation/organisms/ScreenLayout.js +10 -1
- package/lib/presentation/organisms/ScreenLayout.js.map +1 -1
- package/lib/presentation/tokens/AppDesignTokens.d.ts +1 -1
- package/lib/presentation/tokens/AppDesignTokens.d.ts.map +1 -1
- package/lib/presentation/tokens/AppDesignTokens.js +1 -1
- package/lib/presentation/tokens/AppDesignTokens.js.map +1 -1
- package/lib/presentation/tokens/commonStyles.d.ts +1 -1
- package/lib/presentation/tokens/commonStyles.js +1 -1
- package/lib/presentation/tokens/core/BaseTokens.d.ts +25 -0
- package/lib/presentation/tokens/core/BaseTokens.d.ts.map +1 -1
- package/lib/presentation/tokens/core/BaseTokens.js +18 -0
- package/lib/presentation/tokens/core/BaseTokens.js.map +1 -1
- package/lib/presentation/tokens/core/TokenFactory.d.ts +15 -2
- package/lib/presentation/tokens/core/TokenFactory.d.ts.map +1 -1
- package/lib/presentation/tokens/core/TokenFactory.js +2 -1
- package/lib/presentation/tokens/core/TokenFactory.js.map +1 -1
- package/package.json +3 -4
- package/src/index.ts +10 -1
- package/src/presentation/atoms/AtomicButton.tsx +16 -5
- package/src/presentation/atoms/AtomicDatePicker.tsx +1 -1
- package/src/presentation/atoms/AtomicFab.tsx +9 -3
- package/src/presentation/atoms/AtomicPicker.tsx +1 -1
- package/src/presentation/atoms/AtomicProgress.tsx +4 -0
- package/src/presentation/atoms/AtomicSkeleton.tsx +4 -4
- package/src/presentation/atoms/AtomicTouchable.tsx +27 -3
- package/src/presentation/atoms/fab/types/index.ts +6 -0
- package/src/presentation/atoms/touchable/styles/touchableStyles.ts +9 -0
- package/src/presentation/atoms/touchable/types/index.ts +8 -1
- package/src/presentation/loading/presentation/components/LoadingState.tsx +200 -0
- package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
- package/src/presentation/organisms/ScreenLayout.tsx +40 -0
- package/src/presentation/tokens/AppDesignTokens.ts +2 -0
- package/src/presentation/tokens/commonStyles.ts +1 -1
- package/src/presentation/tokens/core/BaseTokens.ts +22 -0
- package/src/presentation/tokens/core/TokenFactory.ts +4 -2
|
@@ -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;
|