@umituz/react-native-design-system 2.6.48 → 2.6.49

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 (45) hide show
  1. package/package.json +1 -1
  2. package/src/atoms/skeleton/AtomicSkeleton.tsx +16 -62
  3. package/src/index.ts +0 -32
  4. package/src/molecules/index.ts +0 -6
  5. package/src/molecules/animation/core/AnimationCore.ts +0 -29
  6. package/src/molecules/animation/domain/entities/Animation.ts +0 -81
  7. package/src/molecules/animation/domain/entities/Fireworks.ts +0 -44
  8. package/src/molecules/animation/domain/entities/Theme.ts +0 -76
  9. package/src/molecules/animation/index.ts +0 -146
  10. package/src/molecules/animation/infrastructure/services/AnimationConfigService.ts +0 -35
  11. package/src/molecules/animation/infrastructure/services/SpringAnimationConfigService.ts +0 -67
  12. package/src/molecules/animation/infrastructure/services/TimingAnimationConfigService.ts +0 -57
  13. package/src/molecules/animation/infrastructure/services/__tests__/SpringAnimationConfigService.test.ts +0 -114
  14. package/src/molecules/animation/infrastructure/services/__tests__/TimingAnimationConfigService.test.ts +0 -105
  15. package/src/molecules/animation/presentation/components/Fireworks.tsx +0 -127
  16. package/src/molecules/animation/presentation/components/__tests__/Fireworks.test.tsx +0 -185
  17. package/src/molecules/animation/presentation/hooks/__tests__/useAnimation.integration.test.ts +0 -210
  18. package/src/molecules/animation/presentation/hooks/__tests__/useFireworks.test.ts +0 -242
  19. package/src/molecules/animation/presentation/hooks/__tests__/useGesture.test.ts +0 -108
  20. package/src/molecules/animation/presentation/hooks/__tests__/useSpringAnimation.test.ts +0 -127
  21. package/src/molecules/animation/presentation/hooks/__tests__/useTimingAnimation.test.ts +0 -172
  22. package/src/molecules/animation/presentation/hooks/__tests__/useTransformAnimation.test.ts +0 -133
  23. package/src/molecules/animation/presentation/hooks/useAnimation.ts +0 -77
  24. package/src/molecules/animation/presentation/hooks/useFireworks.ts +0 -144
  25. package/src/molecules/animation/presentation/hooks/useGesture.ts +0 -57
  26. package/src/molecules/animation/presentation/hooks/useGestureCreators.ts +0 -163
  27. package/src/molecules/animation/presentation/hooks/useGestureState.ts +0 -53
  28. package/src/molecules/animation/presentation/hooks/useIconAnimations.ts +0 -120
  29. package/src/molecules/animation/presentation/hooks/useModalAnimations.ts +0 -124
  30. package/src/molecules/animation/presentation/hooks/useReanimatedReady.ts +0 -60
  31. package/src/molecules/animation/presentation/hooks/useSpringAnimation.ts +0 -69
  32. package/src/molecules/animation/presentation/hooks/useTimingAnimation.ts +0 -111
  33. package/src/molecules/animation/presentation/hooks/useTransformAnimation.ts +0 -57
  34. package/src/molecules/animation/presentation/providers/AnimationThemeProvider.tsx +0 -60
  35. package/src/molecules/animation/presentation/providers/__tests__/AnimationThemeProvider.test.tsx +0 -165
  36. package/src/molecules/celebration/domain/entities/CelebrationConfig.ts +0 -17
  37. package/src/molecules/celebration/domain/entities/FireworksConfig.ts +0 -32
  38. package/src/molecules/celebration/index.ts +0 -93
  39. package/src/molecules/celebration/infrastructure/services/FireworksConfigService.ts +0 -49
  40. package/src/molecules/celebration/presentation/components/CelebrationFireworksOverlay.tsx +0 -33
  41. package/src/molecules/celebration/presentation/components/CelebrationModal.tsx +0 -81
  42. package/src/molecules/celebration/presentation/components/CelebrationModalContent.tsx +0 -88
  43. package/src/molecules/celebration/presentation/hooks/useCelebrationModalAnimation.ts +0 -49
  44. package/src/molecules/celebration/presentation/hooks/useCelebrationState.ts +0 -45
  45. package/src/molecules/celebration/presentation/styles/CelebrationModalStyles.ts +0 -65
@@ -1,49 +0,0 @@
1
- /**
2
- * useCelebrationModalAnimation Hook
3
- * Single Responsibility: Compose all celebration modal animations
4
- * Uses ../../../animation directly
5
- */
6
-
7
- import {
8
- useModalAnimations,
9
- useIconAnimations,
10
- type ModalAnimationConfig,
11
- type IconAnimationConfig,
12
- } from "../../../animation";
13
-
14
- export interface UseCelebrationModalAnimationReturn {
15
- isReady: boolean;
16
- overlayStyle: ReturnType<typeof useModalAnimations>["overlayStyle"];
17
- modalStyle: ReturnType<typeof useModalAnimations>["modalStyle"];
18
- iconStyle: ReturnType<typeof useIconAnimations>["iconStyle"];
19
- }
20
-
21
- /**
22
- * Hook for managing all celebration modal animations
23
- */
24
- export function useCelebrationModalAnimation(
25
- visible: boolean,
26
- animationConfig?: {
27
- modal?: ModalAnimationConfig;
28
- icon?: IconAnimationConfig;
29
- },
30
- ): UseCelebrationModalAnimationReturn {
31
- const { isReady, overlayStyle, modalStyle } = useModalAnimations(
32
- visible,
33
- animationConfig?.modal,
34
- );
35
-
36
- const { iconStyle } = useIconAnimations(
37
- visible,
38
- isReady,
39
- animationConfig?.icon,
40
- );
41
-
42
- return {
43
- isReady,
44
- overlayStyle,
45
- modalStyle,
46
- iconStyle,
47
- };
48
- }
49
-
@@ -1,45 +0,0 @@
1
- /**
2
- * useCelebrationState Hook
3
- * Single Responsibility: Manage celebration modal state
4
- */
5
-
6
- import { useState, useCallback } from "react";
7
- import type { CelebrationConfig } from "../../domain/entities/CelebrationConfig";
8
-
9
- export interface UseCelebrationStateReturn {
10
- visible: boolean;
11
- config: CelebrationConfig | null;
12
- show: (config: CelebrationConfig) => void;
13
- hide: () => void;
14
- }
15
-
16
- const ANIMATION_CLEANUP_DELAY = 300;
17
-
18
- /**
19
- * Hook for managing celebration modal state
20
- */
21
- export function useCelebrationState(): UseCelebrationStateReturn {
22
- const [visible, setVisible] = useState(false);
23
- const [config, setConfig] = useState<CelebrationConfig | null>(null);
24
-
25
- const show = useCallback((celebrationConfig: CelebrationConfig) => {
26
- setConfig(celebrationConfig);
27
- setVisible(true);
28
- }, []);
29
-
30
- const hide = useCallback(() => {
31
- setVisible(false);
32
- // Clear config after animation completes
33
- setTimeout(() => {
34
- setConfig(null);
35
- }, ANIMATION_CLEANUP_DELAY);
36
- }, []);
37
-
38
- return {
39
- visible,
40
- config: config || null,
41
- show,
42
- hide,
43
- };
44
- }
45
-
@@ -1,65 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { useAppDesignTokens } from "../../../../theme";
3
-
4
- export const createCelebrationModalStyles = () => {
5
- const tokens = useAppDesignTokens();
6
-
7
- return StyleSheet.create({
8
- overlay: {
9
- flex: 1,
10
- justifyContent: "center",
11
- alignItems: "center",
12
- padding: tokens.spacing.lg || 20,
13
- },
14
- modal: {
15
- width: "100%",
16
- maxWidth: 400,
17
- borderRadius: tokens.borders.radius.xl || 20,
18
- padding: tokens.spacing.xl || 28,
19
- borderWidth: 1,
20
- alignItems: "center",
21
- },
22
- iconContainer: {
23
- marginBottom: tokens.spacing.xl || 24,
24
- },
25
- iconCircle: {
26
- width: 80,
27
- height: 80,
28
- borderRadius: 40,
29
- alignItems: "center",
30
- justifyContent: "center",
31
- },
32
- iconText: {
33
- fontSize: 40,
34
- color: "#FFFFFF",
35
- fontWeight: "bold",
36
- },
37
- title: {
38
- fontSize: (tokens.typography.headlineSmall as any).fontSize || 22,
39
- fontWeight: "700",
40
- marginBottom: tokens.spacing.xs || 8,
41
- textAlign: "center",
42
- },
43
- message: {
44
- fontSize: (tokens.typography.bodyLarge as any).fontSize || 15,
45
- marginBottom: tokens.spacing.xl || 24,
46
- textAlign: "center",
47
- lineHeight: 22,
48
- },
49
- actions: {
50
- width: "100%",
51
- gap: tokens.spacing.md || 12,
52
- },
53
- button: {
54
- width: "100%",
55
- paddingVertical: 14,
56
- paddingHorizontal: 24,
57
- borderRadius: tokens.borders.radius.lg || 12,
58
- alignItems: "center",
59
- },
60
- buttonText: {
61
- fontSize: 16,
62
- fontWeight: "600",
63
- },
64
- });
65
- };