@umituz/react-native-onboarding 3.3.8 → 3.3.10
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/domain/entities/OnboardingSlide.ts +5 -0
- package/src/presentation/components/BackgroundVideo.tsx +8 -17
- package/src/presentation/components/OnboardingFooter.tsx +69 -112
- package/src/presentation/components/OnboardingHeader.tsx +47 -72
- package/src/presentation/components/OnboardingResetSetting.tsx +17 -51
- package/src/presentation/components/OnboardingScreenContent.tsx +2 -2
- package/src/presentation/components/OnboardingSlide.tsx +81 -71
- package/src/presentation/components/QuestionRenderer.tsx +2 -2
- package/src/presentation/components/QuestionSlide.tsx +42 -46
- package/src/presentation/components/QuestionSlideHeader.tsx +52 -67
- package/src/presentation/components/questions/MultipleChoiceQuestion.tsx +26 -55
- package/src/presentation/components/questions/RatingQuestion.tsx +24 -45
- package/src/presentation/components/questions/SingleChoiceQuestion.tsx +23 -49
- package/src/presentation/components/questions/TextInputQuestion.tsx +15 -20
- package/src/presentation/providers/OnboardingThemeProvider.tsx +98 -0
- package/src/presentation/screens/OnboardingScreen.tsx +34 -31
- package/src/presentation/styles/OnboardingSlideStyles.ts +0 -139
- package/src/presentation/styles/QuestionSlideStyles.ts +0 -78
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
|
|
3
|
-
export const createQuestionStyles = (
|
|
4
|
-
tokens: any,
|
|
5
|
-
useGradient: boolean,
|
|
6
|
-
variant: "default" | "card" | "minimal" | "fullscreen" = "default"
|
|
7
|
-
) => {
|
|
8
|
-
// Base styles
|
|
9
|
-
const baseStyles = StyleSheet.create({
|
|
10
|
-
content: {
|
|
11
|
-
flexGrow: 1,
|
|
12
|
-
justifyContent: "center",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
paddingHorizontal: 24,
|
|
15
|
-
paddingVertical: 20,
|
|
16
|
-
},
|
|
17
|
-
questionContainer: {
|
|
18
|
-
width: "100%",
|
|
19
|
-
marginTop: 24,
|
|
20
|
-
},
|
|
21
|
-
requiredHint: {
|
|
22
|
-
fontSize: 13,
|
|
23
|
-
color: useGradient ? "rgba(255, 255, 255, 0.8)" : tokens.colors.textSecondary,
|
|
24
|
-
fontStyle: "italic",
|
|
25
|
-
marginTop: 16,
|
|
26
|
-
textAlign: "left",
|
|
27
|
-
alignSelf: "flex-start",
|
|
28
|
-
marginLeft: 4,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
if (variant === "card") {
|
|
33
|
-
return StyleSheet.create({
|
|
34
|
-
...baseStyles,
|
|
35
|
-
slideContainer: {
|
|
36
|
-
width: "100%",
|
|
37
|
-
maxWidth: 500,
|
|
38
|
-
backgroundColor: useGradient ? "transparent" : tokens.colors.surface,
|
|
39
|
-
borderRadius: 24,
|
|
40
|
-
padding: 32,
|
|
41
|
-
alignItems: "center",
|
|
42
|
-
...(!useGradient && {
|
|
43
|
-
shadowColor: tokens.colors.shadow,
|
|
44
|
-
shadowOffset: { width: 0, height: 4 },
|
|
45
|
-
shadowOpacity: 0.1,
|
|
46
|
-
shadowRadius: 12,
|
|
47
|
-
elevation: 5,
|
|
48
|
-
borderWidth: 1,
|
|
49
|
-
borderColor: tokens.colors.borderLight,
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (variant === "minimal") {
|
|
56
|
-
return StyleSheet.create({
|
|
57
|
-
...baseStyles,
|
|
58
|
-
slideContainer: {
|
|
59
|
-
width: "100%",
|
|
60
|
-
alignItems: "stretch",
|
|
61
|
-
padding: 0,
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Default
|
|
67
|
-
return StyleSheet.create({
|
|
68
|
-
...baseStyles,
|
|
69
|
-
slideContainer: {
|
|
70
|
-
width: "100%",
|
|
71
|
-
maxWidth: 500,
|
|
72
|
-
alignItems: "center",
|
|
73
|
-
padding: 16,
|
|
74
|
-
backgroundColor: useGradient ? "rgba(255, 255, 255, 0.1)" : tokens.colors.surfaceSecondary,
|
|
75
|
-
borderRadius: 16,
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
};
|