@umituz/react-native-design-system 2.6.48 → 2.6.50
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/skeleton/AtomicSkeleton.tsx +16 -62
- package/src/index.ts +0 -32
- package/src/molecules/bottom-sheet/components/BottomSheetModal.tsx +1 -12
- package/src/molecules/index.ts +0 -6
- package/src/molecules/animation/core/AnimationCore.ts +0 -29
- package/src/molecules/animation/domain/entities/Animation.ts +0 -81
- package/src/molecules/animation/domain/entities/Fireworks.ts +0 -44
- package/src/molecules/animation/domain/entities/Theme.ts +0 -76
- package/src/molecules/animation/index.ts +0 -146
- package/src/molecules/animation/infrastructure/services/AnimationConfigService.ts +0 -35
- package/src/molecules/animation/infrastructure/services/SpringAnimationConfigService.ts +0 -67
- package/src/molecules/animation/infrastructure/services/TimingAnimationConfigService.ts +0 -57
- package/src/molecules/animation/infrastructure/services/__tests__/SpringAnimationConfigService.test.ts +0 -114
- package/src/molecules/animation/infrastructure/services/__tests__/TimingAnimationConfigService.test.ts +0 -105
- package/src/molecules/animation/presentation/components/Fireworks.tsx +0 -127
- package/src/molecules/animation/presentation/components/__tests__/Fireworks.test.tsx +0 -185
- package/src/molecules/animation/presentation/hooks/__tests__/useAnimation.integration.test.ts +0 -210
- package/src/molecules/animation/presentation/hooks/__tests__/useFireworks.test.ts +0 -242
- package/src/molecules/animation/presentation/hooks/__tests__/useGesture.test.ts +0 -108
- package/src/molecules/animation/presentation/hooks/__tests__/useSpringAnimation.test.ts +0 -127
- package/src/molecules/animation/presentation/hooks/__tests__/useTimingAnimation.test.ts +0 -172
- package/src/molecules/animation/presentation/hooks/__tests__/useTransformAnimation.test.ts +0 -133
- package/src/molecules/animation/presentation/hooks/useAnimation.ts +0 -77
- package/src/molecules/animation/presentation/hooks/useFireworks.ts +0 -144
- package/src/molecules/animation/presentation/hooks/useGesture.ts +0 -57
- package/src/molecules/animation/presentation/hooks/useGestureCreators.ts +0 -163
- package/src/molecules/animation/presentation/hooks/useGestureState.ts +0 -53
- package/src/molecules/animation/presentation/hooks/useIconAnimations.ts +0 -120
- package/src/molecules/animation/presentation/hooks/useModalAnimations.ts +0 -124
- package/src/molecules/animation/presentation/hooks/useReanimatedReady.ts +0 -60
- package/src/molecules/animation/presentation/hooks/useSpringAnimation.ts +0 -69
- package/src/molecules/animation/presentation/hooks/useTimingAnimation.ts +0 -111
- package/src/molecules/animation/presentation/hooks/useTransformAnimation.ts +0 -57
- package/src/molecules/animation/presentation/providers/AnimationThemeProvider.tsx +0 -60
- package/src/molecules/animation/presentation/providers/__tests__/AnimationThemeProvider.test.tsx +0 -165
- package/src/molecules/celebration/domain/entities/CelebrationConfig.ts +0 -17
- package/src/molecules/celebration/domain/entities/FireworksConfig.ts +0 -32
- package/src/molecules/celebration/index.ts +0 -93
- package/src/molecules/celebration/infrastructure/services/FireworksConfigService.ts +0 -49
- package/src/molecules/celebration/presentation/components/CelebrationFireworksOverlay.tsx +0 -33
- package/src/molecules/celebration/presentation/components/CelebrationModal.tsx +0 -81
- package/src/molecules/celebration/presentation/components/CelebrationModalContent.tsx +0 -88
- package/src/molecules/celebration/presentation/hooks/useCelebrationModalAnimation.ts +0 -49
- package/src/molecules/celebration/presentation/hooks/useCelebrationState.ts +0 -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
|
-
};
|