@coorpacademy/components 11.14.3 → 11.14.5
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/es/molecule/discipline-header/style.css +5 -5
- package/es/template/mobile-login/welcome/index.native.d.ts.map +1 -1
- package/es/template/mobile-login/welcome/index.native.js +109 -20
- package/es/template/mobile-login/welcome/index.native.js.map +1 -1
- package/lib/molecule/discipline-header/style.css +5 -5
- package/lib/template/mobile-login/welcome/index.native.d.ts.map +1 -1
- package/lib/template/mobile-login/welcome/index.native.js +110 -18
- package/lib/template/mobile-login/welcome/index.native.js.map +1 -1
- package/locales/.mtslconfig.json +1 -0
- package/package.json +3 -3
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.courseWrapper {
|
|
34
|
-
display:
|
|
34
|
+
display: flex;
|
|
35
35
|
vertical-align: top;
|
|
36
|
+
flex-direction: column;
|
|
36
37
|
padding-left: 30px;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -69,13 +70,12 @@
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.lastUpdatedWrapperShort {
|
|
72
|
-
|
|
73
|
-
align-items: flex-end;
|
|
73
|
+
margin-top: auto;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.lastUpdatedWrapper {
|
|
77
77
|
display: flex;
|
|
78
|
-
|
|
78
|
+
padding-top: 6px;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.lastUpdatedText {
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
font-size: 14px;
|
|
101
101
|
transition: all time ease-in-out;
|
|
102
102
|
cursor: pointer;
|
|
103
|
-
order: 1;
|
|
104
103
|
font-family: Gilroy;
|
|
105
104
|
font-weight: bold;
|
|
106
105
|
text-align: left;
|
|
107
106
|
color: brand;
|
|
107
|
+
padding-top: 2px;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.showMore:hover {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";AA0KA,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,KAAK,uBAqI5B,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { StyleSheet, Text, View } from 'react-native';
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { Animated, StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import LinearGradient from 'react-native-linear-gradient';
|
|
4
4
|
import { NovaCompositionCoorpacademyLogoCoorp as LogoCoorp, NovaCompositionCoorpacademyQrCode as QrCodeIcon, NovaCompositionCoorpacademyEmail as MailIcon } from '@coorpacademy/nova-icons';
|
|
5
|
+
import { useAnimateProp, useTranslateY } from '@coorpacademy/react-native-animation';
|
|
5
6
|
import Touchable from '../../../hoc/touchable/index.native';
|
|
6
7
|
import { useTemplateContext } from '../../app-review/template-context';
|
|
7
8
|
|
|
@@ -20,12 +21,20 @@ const createStyleSheet = theme => StyleSheet.create({
|
|
|
20
21
|
width: '100%',
|
|
21
22
|
alignItems: 'flex-start'
|
|
22
23
|
},
|
|
24
|
+
gradients: {
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
top: 400,
|
|
27
|
+
bottom: 400,
|
|
28
|
+
left: 0,
|
|
29
|
+
right: 0,
|
|
30
|
+
flex: 1
|
|
31
|
+
},
|
|
23
32
|
gradient: {
|
|
24
33
|
position: 'absolute',
|
|
25
|
-
top: -
|
|
34
|
+
top: -730,
|
|
26
35
|
bottom: 0,
|
|
27
|
-
left: -
|
|
28
|
-
right:
|
|
36
|
+
left: -380,
|
|
37
|
+
right: -380,
|
|
29
38
|
opacity: 1,
|
|
30
39
|
transform: [{
|
|
31
40
|
rotate: '35deg'
|
|
@@ -33,18 +42,32 @@ const createStyleSheet = theme => StyleSheet.create({
|
|
|
33
42
|
},
|
|
34
43
|
gradient2: {
|
|
35
44
|
position: 'absolute',
|
|
36
|
-
top: -
|
|
37
|
-
bottom:
|
|
38
|
-
left:
|
|
39
|
-
right: -
|
|
40
|
-
opacity: 0.
|
|
45
|
+
top: -630,
|
|
46
|
+
bottom: -200,
|
|
47
|
+
left: -300,
|
|
48
|
+
right: -400,
|
|
49
|
+
opacity: 0.6,
|
|
41
50
|
transform: [{
|
|
42
51
|
rotate: '-35deg'
|
|
43
52
|
}]
|
|
44
53
|
},
|
|
54
|
+
animatedLogoWrapper: {
|
|
55
|
+
alignItems: 'center'
|
|
56
|
+
},
|
|
57
|
+
animatedLogo: {
|
|
58
|
+
position: 'absolute',
|
|
59
|
+
width: 77,
|
|
60
|
+
height: 100
|
|
61
|
+
},
|
|
45
62
|
logo: {
|
|
46
63
|
padding: 100
|
|
47
64
|
},
|
|
65
|
+
logoBG: {
|
|
66
|
+
backgroundColor: '#fff',
|
|
67
|
+
top: 20,
|
|
68
|
+
width: 60,
|
|
69
|
+
height: 60
|
|
70
|
+
},
|
|
48
71
|
title: {
|
|
49
72
|
fontWeight: '600',
|
|
50
73
|
fontSize: 28,
|
|
@@ -129,36 +152,102 @@ const Welcome = props => {
|
|
|
129
152
|
theme
|
|
130
153
|
} = useTemplateContext();
|
|
131
154
|
const [styleSheet, setStylesheet] = useState(null);
|
|
155
|
+
const translateGradients = useTranslateY({
|
|
156
|
+
fromValue: 0,
|
|
157
|
+
toValue: -200,
|
|
158
|
+
duration: 300,
|
|
159
|
+
delay: 750
|
|
160
|
+
});
|
|
161
|
+
const translateContent = useTranslateY({
|
|
162
|
+
fromValue: 170,
|
|
163
|
+
toValue: 0,
|
|
164
|
+
duration: 450,
|
|
165
|
+
delay: 750
|
|
166
|
+
});
|
|
167
|
+
const fadeInContent = useAnimateProp({
|
|
168
|
+
property: 'opacity',
|
|
169
|
+
fromValue: 0,
|
|
170
|
+
toValue: 1,
|
|
171
|
+
duration: 650,
|
|
172
|
+
delay: 750
|
|
173
|
+
});
|
|
174
|
+
const fadeOutStartLogo = useAnimateProp({
|
|
175
|
+
property: 'opacity',
|
|
176
|
+
fromValue: 1,
|
|
177
|
+
toValue: 0,
|
|
178
|
+
duration: 450,
|
|
179
|
+
delay: 1000
|
|
180
|
+
});
|
|
181
|
+
const fadeInFinalLogo = useAnimateProp({
|
|
182
|
+
property: 'opacity',
|
|
183
|
+
fromValue: 0,
|
|
184
|
+
toValue: 1,
|
|
185
|
+
duration: 250,
|
|
186
|
+
delay: 900
|
|
187
|
+
});
|
|
188
|
+
const scaleAnim = useRef(new Animated.Value(0)).current;
|
|
189
|
+
const interpolateScale = scaleAnim.interpolate({
|
|
190
|
+
inputRange: [0, 0.4, 0.5, 0.6, 1],
|
|
191
|
+
outputRange: [1, 1.7, 1.7, 1.7, 1]
|
|
192
|
+
});
|
|
132
193
|
useEffect(() => {
|
|
133
194
|
const _stylesheet = createStyleSheet(theme);
|
|
134
195
|
|
|
135
196
|
setStylesheet(_stylesheet);
|
|
136
197
|
}, [theme]);
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
fadeInContent.start();
|
|
200
|
+
fadeInFinalLogo.start();
|
|
201
|
+
fadeOutStartLogo.start();
|
|
202
|
+
translateContent.start();
|
|
203
|
+
translateGradients.start();
|
|
204
|
+
const animatedScale = Animated.timing(scaleAnim, {
|
|
205
|
+
toValue: 1,
|
|
206
|
+
duration: 1000,
|
|
207
|
+
useNativeDriver: true
|
|
208
|
+
});
|
|
209
|
+
animatedScale.start(); // on mount only
|
|
210
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
211
|
+
}, []);
|
|
137
212
|
|
|
138
213
|
if (!styleSheet) {
|
|
139
214
|
return null;
|
|
140
215
|
}
|
|
141
216
|
|
|
142
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
143
|
-
style: styleSheet.wrapper,
|
|
217
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
218
|
+
style: [styleSheet.wrapper, translateContent.animatedStyle],
|
|
144
219
|
testID: "welcome"
|
|
220
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
221
|
+
style: [styleSheet.gradients, translateGradients.animatedStyle]
|
|
145
222
|
}, /*#__PURE__*/React.createElement(LinearGradient, {
|
|
146
223
|
colors: ['#0061FF', '#fff'],
|
|
147
|
-
locations: [0, 0.
|
|
224
|
+
locations: [0, 0.95],
|
|
148
225
|
style: styleSheet.gradient
|
|
149
226
|
}), /*#__PURE__*/React.createElement(LinearGradient, {
|
|
150
227
|
colors: ['#2199AB', '#fff'],
|
|
151
|
-
locations: [0, 0.
|
|
228
|
+
locations: [0, 0.95],
|
|
152
229
|
style: styleSheet.gradient2
|
|
153
|
-
}), /*#__PURE__*/React.createElement(Touchable, {
|
|
230
|
+
})), /*#__PURE__*/React.createElement(Touchable, {
|
|
154
231
|
onLongPress: onDemoPress,
|
|
155
232
|
style: styleSheet.logo
|
|
233
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
234
|
+
style: [styleSheet.animatedLogoWrapper, {
|
|
235
|
+
transform: [{
|
|
236
|
+
scale: interpolateScale
|
|
237
|
+
}]
|
|
238
|
+
}]
|
|
239
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
240
|
+
style: [styleSheet.logoBG, fadeInFinalLogo.animatedStyle]
|
|
241
|
+
}), /*#__PURE__*/React.createElement(Animated.View, {
|
|
242
|
+
style: [styleSheet.animatedLogo, fadeInFinalLogo.animatedStyle]
|
|
156
243
|
}, /*#__PURE__*/React.createElement(LogoCoorp, {
|
|
157
|
-
fill:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
244
|
+
fill: "#0061FF"
|
|
245
|
+
})), /*#__PURE__*/React.createElement(Animated.View, {
|
|
246
|
+
style: [styleSheet.animatedLogo, fadeOutStartLogo.animatedStyle]
|
|
247
|
+
}, /*#__PURE__*/React.createElement(LogoCoorp, {
|
|
248
|
+
fill: "#fff"
|
|
249
|
+
})))), /*#__PURE__*/React.createElement(Animated.View, {
|
|
250
|
+
style: [styleSheet.content, fadeInContent.animatedStyle]
|
|
162
251
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
163
252
|
style: styleSheet.title
|
|
164
253
|
}, locales.title), /*#__PURE__*/React.createElement(Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useEffect","useState","StyleSheet","Text","View","LinearGradient","NovaCompositionCoorpacademyLogoCoorp","LogoCoorp","NovaCompositionCoorpacademyQrCode","QrCodeIcon","NovaCompositionCoorpacademyEmail","MailIcon","Touchable","useTemplateContext","createStyleSheet","theme","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradient","position","opacity","transform","rotate","gradient2","logo","padding","title","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQRCode","backgroundColor","colors","cta","ctaQRCodeText","marginLeft","color","qrCodeIcon","fill","height","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onDesktopButtonPress","onHelpPress","onMobileButtonPress","styleSheet","setStylesheet","_stylesheet"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n logo: ViewStyle;\n content: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQRCode: ViewStyle;\n ctaQRCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradient: {\n position: 'absolute',\n top: -100,\n bottom: 0,\n left: -180,\n right: 0,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -80,\n bottom: 0,\n left: 0,\n right: -200,\n opacity: 0.5,\n transform: [{rotate: '-35deg'}]\n },\n logo: {\n padding: 100\n },\n title: {\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n fontSize: 18,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQRCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQRCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onDesktopButtonPress: () => void;\n onHelpPress: () => void;\n onMobileButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQRCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onDesktopButtonPress, onHelpPress, onMobileButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.wrapper} testID=\"welcome\">\n <LinearGradient\n colors={['#0061FF', '#fff']}\n locations={[0, 0.3]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.3]}\n style={styleSheet.gradient2}\n />\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <LogoCoorp fill={theme.colors.cta} width={77} height={75} />\n </Touchable>\n <View style={styleSheet.content}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQRCode]}\n onPress={onDesktopButtonPress}\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQRCodeText}>{locales.ctaQRCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onMobileButtonPress}\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Touchable>\n </View>\n </View>\n </View>\n );\n};\n\nexport default Welcome;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,QAA1B,QAAyC,OAAzC;AACA,SAAQC,UAAR,EAAoBC,IAApB,EAAqCC,IAArC,QAA2D,cAA3D;AACA,OAAOC,cAAP,MAA2B,8BAA3B;AACA,SACEC,oCAAoC,IAAIC,SAD1C,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,gCAAgC,IAAIC,QAHtC,QAIO,0BAJP;AAKA,OAAOC,SAAP,MAAsB,qCAAtB;AACA,SAAQC,kBAAR,QAAiC,mCAAjC;;AAyBA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBb,UAAU,CAACc,MAAX,CAAkB;EAChBC,OAAO,EAAE;IACPC,GAAG,EAAE,CADE;IAEPC,MAAM,EAAE,CAFD;IAGPC,IAAI,EAAE,CAHC;IAI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AAC,IAAD;IAAM,KAAK,EAAE+B,UAAU,CAAC9B;EAAxB,gBACE,oBAAC,SAAD;IACE,KAAK,EAAE,CAAC8B,UAAU,CAAC7B,MAAZ,EAAoB6B,UAAU,CAACxB,SAA/B,CADT;IAEE,OAAO,EAAEqB;EAFX,gBAIE,oBAAC,UAAD;IAAY,KAAK,EAAEG,UAAU,CAACjB;EAA9B,EAJF,eAKE,oBAAC,IAAD;IAAM,KAAK,EAAEiB,UAAU,CAACpB;EAAxB,GAAwCe,OAAO,CAACnB,SAAhD,CALF,CADF,eAQE,oBAAC,SAAD;IACE,KAAK,EAAE,CAACwB,UAAU,CAAC7B,MAAZ,EAAoB6B,UAAU,CAACd,cAA/B,CADT;IAEE,OAAO,EAAEa;EAFX,gBAIE,oBAAC,QAAD;IAAU,KAAK,EAAEC,UAAU,CAACZ;EAA5B,EAJF,eAKE,oBAAC,IAAD;IAAM,KAAK,EAAEY,UAAU,CAACb;EAAxB,GAA6CQ,OAAO,CAACT,cAArD,CALF,CARF,CADF,eAiBE,oBAAC,SAAD;IAAW,OAAO,EAAEY,WAApB;IAAiC,KAAK,EAAEE,UAAU,CAACX;EAAnD,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAEW,UAAU,CAACV;EAAxB,GAAoCK,OAAO,CAACL,SAA5C,CADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEU,UAAU,CAACT;EAAxB,GAAkCI,OAAO,CAACJ,OAA1C,CAFF,CAjBF,CAJF,CAdF,CADF;AA4CD,CA1DD;;AA4DA,eAAeE,OAAf"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useEffect","useRef","useState","Animated","StyleSheet","Text","View","LinearGradient","NovaCompositionCoorpacademyLogoCoorp","LogoCoorp","NovaCompositionCoorpacademyQrCode","QrCodeIcon","NovaCompositionCoorpacademyEmail","MailIcon","useAnimateProp","useTranslateY","Touchable","useTemplateContext","createStyleSheet","theme","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradients","position","gradient","opacity","transform","rotate","gradient2","animatedLogoWrapper","animatedLogo","height","logo","padding","logoBG","backgroundColor","title","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQRCode","colors","cta","ctaQRCodeText","marginLeft","color","qrCodeIcon","fill","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onDesktopButtonPress","onHelpPress","onMobileButtonPress","styleSheet","setStylesheet","translateGradients","fromValue","toValue","duration","delay","translateContent","fadeInContent","property","fadeOutStartLogo","fadeInFinalLogo","scaleAnim","Value","current","interpolateScale","interpolate","inputRange","outputRange","_stylesheet","start","animatedScale","timing","useNativeDriver","animatedStyle","scale"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useRef, useState} from 'react';\nimport {Animated, StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport {useAnimateProp, useTranslateY} from '@coorpacademy/react-native-animation';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n animatedLogoWrapper: ViewStyle;\n animatedLogo: ViewStyle;\n logo: ViewStyle;\n logoBG: ViewStyle;\n content: ViewStyle;\n gradients: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQRCode: ViewStyle;\n ctaQRCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradients: {\n position: 'absolute',\n top: 400,\n bottom: 400,\n left: 0,\n right: 0,\n flex: 1\n },\n gradient: {\n position: 'absolute',\n top: -730,\n bottom: 0,\n left: -380,\n right: -380,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -630,\n bottom: -200,\n left: -300,\n right: -400,\n opacity: 0.6,\n transform: [{rotate: '-35deg'}]\n },\n animatedLogoWrapper: {\n alignItems: 'center'\n },\n animatedLogo: {\n position: 'absolute',\n width: 77,\n height: 100\n },\n logo: {\n padding: 100\n },\n logoBG: {\n backgroundColor: '#fff',\n top: 20,\n width: 60,\n height: 60\n },\n title: {\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n fontSize: 18,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQRCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQRCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onDesktopButtonPress: () => void;\n onHelpPress: () => void;\n onMobileButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQRCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onDesktopButtonPress, onHelpPress, onMobileButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n const translateGradients = useTranslateY({\n fromValue: 0,\n toValue: -200,\n duration: 300,\n delay: 750\n });\n\n const translateContent = useTranslateY({\n fromValue: 170,\n toValue: 0,\n duration: 450,\n delay: 750\n });\n\n const fadeInContent = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 650,\n delay: 750\n });\n\n const fadeOutStartLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 1,\n toValue: 0,\n duration: 450,\n delay: 1000\n });\n\n const fadeInFinalLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 250,\n delay: 900\n });\n\n const scaleAnim = useRef<Animated.Value>(new Animated.Value(0)).current;\n const interpolateScale = scaleAnim.interpolate({\n inputRange: [0, 0.4, 0.5, 0.6, 1],\n outputRange: [1, 1.7, 1.7, 1.7, 1]\n });\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n useEffect(() => {\n fadeInContent.start();\n fadeInFinalLogo.start();\n fadeOutStartLogo.start();\n translateContent.start();\n translateGradients.start();\n\n const animatedScale = Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 1000,\n useNativeDriver: true\n });\n\n animatedScale.start();\n\n // on mount only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!styleSheet) {\n return null;\n }\n return (\n <Animated.View style={[styleSheet.wrapper, translateContent.animatedStyle]} testID=\"welcome\">\n <Animated.View style={[styleSheet.gradients, translateGradients.animatedStyle]}>\n <LinearGradient\n colors={['#0061FF', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient2}\n />\n </Animated.View>\n\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <Animated.View\n style={[styleSheet.animatedLogoWrapper, {transform: [{scale: interpolateScale}]}]}\n >\n <Animated.View style={[styleSheet.logoBG, fadeInFinalLogo.animatedStyle]} />\n <Animated.View style={[styleSheet.animatedLogo, fadeInFinalLogo.animatedStyle]}>\n <LogoCoorp fill=\"#0061FF\" />\n </Animated.View>\n <Animated.View style={[styleSheet.animatedLogo, fadeOutStartLogo.animatedStyle]}>\n <LogoCoorp fill=\"#fff\" />\n </Animated.View>\n </Animated.View>\n </Touchable>\n <Animated.View style={[styleSheet.content, fadeInContent.animatedStyle]}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQRCode]}\n onPress={onDesktopButtonPress}\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQRCodeText}>{locales.ctaQRCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onMobileButtonPress}\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Touchable>\n </View>\n </Animated.View>\n </Animated.View>\n );\n};\n\nexport default Welcome;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,MAA1B,EAAkCC,QAAlC,QAAiD,OAAjD;AACA,SAAQC,QAAR,EAAkBC,UAAlB,EAA8BC,IAA9B,EAA+CC,IAA/C,QAAqE,cAArE;AACA,OAAOC,cAAP,MAA2B,8BAA3B;AACA,SACEC,oCAAoC,IAAIC,SAD1C,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,gCAAgC,IAAIC,QAHtC,QAIO,0BAJP;AAKA,SAAQC,cAAR,EAAwBC,aAAxB,QAA4C,sCAA5C;AACA,OAAOC,SAAP,MAAsB,qCAAtB;AACA,SAAQC,kBAAR,QAAiC,mCAAjC;;AA6BA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBf,UAAU,CAACgB,MAAX,CAAkB;EAChBC,OAAO,EAAE;IACPC,GAAG,EAAE,CADE;IAEPC,MAAM,EAAE,CAFD;IAGPC,IAAI,EAAE,CAHC;IAIPC,KAAK,EAAE,CAJA;IAKPC,IAAI,EAAE,CALC;IAMPC,cAAc,EAAE,cANT;IAOPC,UAAU,EAAE,QAPL;IAQPC,iBAAiB,EAAE;EARZ,CADO;EAWhBC,OAAO,EAAE;IACPC,KAAK,EAAE,MADA;IAEPH,UAAU,EAAE;EAFL,CAXO;EAehBI,SAAS,EAAE;IACTC,QAAQ,EAAE,UADD;IAETX,GAAG,EAAE,GAFI;IAGTC,MAAM,EAAE,GAHC;IAITC,IAAI,EAAE,CAJG;IAKTC,KAAK,EAAE,CALE;IAMTC,IAAI,EAAE;EANG,CAfK;EAuBhBQ,QAAQ,EAAE;IACRD,QAAQ,EAAE,UADF;IAERX,GAAG,EAAE,CAAC,GAFE;IAGRC,MAAM,EAAE,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AAC5B;EAAxB,gBACE,oBAAC,SAAD;IACE,KAAK,EAAE,CAAC4B,UAAU,CAAC3B,MAAZ,EAAoB2B,UAAU,CAACtB,SAA/B,CADT;IAEE,OAAO,EAAEmB;EAFX,gBAIE,oBAAC,UAAD;IAAY,KAAK,EAAEG,UAAU,CAAChB;EAA9B,EAJF,eAKE,oBAAC,IAAD;IAAM,KAAK,EAAEgB,UAAU,CAACnB;EAAxB,GAAwCc,OAAO,CAACjB,SAAhD,CALF,CADF,eAQE,oBAAC,SAAD;IACE,KAAK,EAAE,CAACsB,UAAU,CAAC3B,MAAZ,EAAoB2B,UAAU,CAACd,cAA/B,CADT;IAEE,OAAO,EAAEa;EAFX,gBAIE,oBAAC,QAAD;IAAU,KAAK,EAAEC,UAAU,CAACZ;EAA5B,EAJF,eAKE,oBAAC,IAAD;IAAM,KAAK,EAAEY,UAAU,CAACb;EAAxB,GAA6CQ,OAAO,CAACT,cAArD,CALF,CARF,CADF,eAiBE,oBAAC,SAAD;IAAW,OAAO,EAAEY,WAApB;IAAiC,KAAK,EAAEE,UAAU,CAACX;EAAnD,gBACE,oBAAC,IAAD;IAAM,KAAK,EAAEW,UAAU,CAACV;EAAxB,GAAoCK,OAAO,CAACL,SAA5C,CADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEU,UAAU,CAACT;EAAxB,GAAkCI,OAAO,CAACJ,OAA1C,CAFF,CAjBF,CAJF,CA3BF,CADF;AAyDD,CArID;;AAuIA,eAAeE,OAAf"}
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.courseWrapper {
|
|
34
|
-
display:
|
|
34
|
+
display: flex;
|
|
35
35
|
vertical-align: top;
|
|
36
|
+
flex-direction: column;
|
|
36
37
|
padding-left: 30px;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -69,13 +70,12 @@
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.lastUpdatedWrapperShort {
|
|
72
|
-
|
|
73
|
-
align-items: flex-end;
|
|
73
|
+
margin-top: auto;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.lastUpdatedWrapper {
|
|
77
77
|
display: flex;
|
|
78
|
-
|
|
78
|
+
padding-top: 6px;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.lastUpdatedText {
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
font-size: 14px;
|
|
101
101
|
transition: all time ease-in-out;
|
|
102
102
|
cursor: pointer;
|
|
103
|
-
order: 1;
|
|
104
103
|
font-family: Gilroy;
|
|
105
104
|
font-weight: bold;
|
|
106
105
|
text-align: left;
|
|
107
106
|
color: brand;
|
|
107
|
+
padding-top: 2px;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.showMore:hover {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"names":[],"mappings":";AA0KA,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,KAAK,uBAqI5B,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -11,6 +11,8 @@ var _reactNativeLinearGradient = _interopRequireDefault(require("react-native-li
|
|
|
11
11
|
|
|
12
12
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
13
13
|
|
|
14
|
+
var _reactNativeAnimation = require("@coorpacademy/react-native-animation");
|
|
15
|
+
|
|
14
16
|
var _index = _interopRequireDefault(require("../../../hoc/touchable/index.native"));
|
|
15
17
|
|
|
16
18
|
var _templateContext = require("../../app-review/template-context");
|
|
@@ -36,12 +38,20 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
|
36
38
|
width: '100%',
|
|
37
39
|
alignItems: 'flex-start'
|
|
38
40
|
},
|
|
41
|
+
gradients: {
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
top: 400,
|
|
44
|
+
bottom: 400,
|
|
45
|
+
left: 0,
|
|
46
|
+
right: 0,
|
|
47
|
+
flex: 1
|
|
48
|
+
},
|
|
39
49
|
gradient: {
|
|
40
50
|
position: 'absolute',
|
|
41
|
-
top: -
|
|
51
|
+
top: -730,
|
|
42
52
|
bottom: 0,
|
|
43
|
-
left: -
|
|
44
|
-
right:
|
|
53
|
+
left: -380,
|
|
54
|
+
right: -380,
|
|
45
55
|
opacity: 1,
|
|
46
56
|
transform: [{
|
|
47
57
|
rotate: '35deg'
|
|
@@ -49,18 +59,32 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
|
49
59
|
},
|
|
50
60
|
gradient2: {
|
|
51
61
|
position: 'absolute',
|
|
52
|
-
top: -
|
|
53
|
-
bottom:
|
|
54
|
-
left:
|
|
55
|
-
right: -
|
|
56
|
-
opacity: 0.
|
|
62
|
+
top: -630,
|
|
63
|
+
bottom: -200,
|
|
64
|
+
left: -300,
|
|
65
|
+
right: -400,
|
|
66
|
+
opacity: 0.6,
|
|
57
67
|
transform: [{
|
|
58
68
|
rotate: '-35deg'
|
|
59
69
|
}]
|
|
60
70
|
},
|
|
71
|
+
animatedLogoWrapper: {
|
|
72
|
+
alignItems: 'center'
|
|
73
|
+
},
|
|
74
|
+
animatedLogo: {
|
|
75
|
+
position: 'absolute',
|
|
76
|
+
width: 77,
|
|
77
|
+
height: 100
|
|
78
|
+
},
|
|
61
79
|
logo: {
|
|
62
80
|
padding: 100
|
|
63
81
|
},
|
|
82
|
+
logoBG: {
|
|
83
|
+
backgroundColor: '#fff',
|
|
84
|
+
top: 20,
|
|
85
|
+
width: 60,
|
|
86
|
+
height: 60
|
|
87
|
+
},
|
|
64
88
|
title: {
|
|
65
89
|
fontWeight: '600',
|
|
66
90
|
fontSize: 28,
|
|
@@ -145,36 +169,104 @@ const Welcome = props => {
|
|
|
145
169
|
theme
|
|
146
170
|
} = (0, _templateContext.useTemplateContext)();
|
|
147
171
|
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
172
|
+
const translateGradients = (0, _reactNativeAnimation.useTranslateY)({
|
|
173
|
+
fromValue: 0,
|
|
174
|
+
toValue: -200,
|
|
175
|
+
duration: 300,
|
|
176
|
+
delay: 750
|
|
177
|
+
});
|
|
178
|
+
const translateContent = (0, _reactNativeAnimation.useTranslateY)({
|
|
179
|
+
fromValue: 170,
|
|
180
|
+
toValue: 0,
|
|
181
|
+
duration: 450,
|
|
182
|
+
delay: 750
|
|
183
|
+
});
|
|
184
|
+
const fadeInContent = (0, _reactNativeAnimation.useAnimateProp)({
|
|
185
|
+
property: 'opacity',
|
|
186
|
+
fromValue: 0,
|
|
187
|
+
toValue: 1,
|
|
188
|
+
duration: 650,
|
|
189
|
+
delay: 750
|
|
190
|
+
});
|
|
191
|
+
const fadeOutStartLogo = (0, _reactNativeAnimation.useAnimateProp)({
|
|
192
|
+
property: 'opacity',
|
|
193
|
+
fromValue: 1,
|
|
194
|
+
toValue: 0,
|
|
195
|
+
duration: 450,
|
|
196
|
+
delay: 1000
|
|
197
|
+
});
|
|
198
|
+
const fadeInFinalLogo = (0, _reactNativeAnimation.useAnimateProp)({
|
|
199
|
+
property: 'opacity',
|
|
200
|
+
fromValue: 0,
|
|
201
|
+
toValue: 1,
|
|
202
|
+
duration: 250,
|
|
203
|
+
delay: 900
|
|
204
|
+
});
|
|
205
|
+
const scaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
206
|
+
const interpolateScale = scaleAnim.interpolate({
|
|
207
|
+
inputRange: [0, 0.4, 0.5, 0.6, 1],
|
|
208
|
+
outputRange: [1, 1.7, 1.7, 1.7, 1]
|
|
209
|
+
});
|
|
148
210
|
(0, _react.useEffect)(() => {
|
|
149
211
|
const _stylesheet = createStyleSheet(theme);
|
|
150
212
|
|
|
151
213
|
setStylesheet(_stylesheet);
|
|
152
214
|
}, [theme]);
|
|
215
|
+
(0, _react.useEffect)(() => {
|
|
216
|
+
fadeInContent.start();
|
|
217
|
+
fadeInFinalLogo.start();
|
|
218
|
+
fadeOutStartLogo.start();
|
|
219
|
+
translateContent.start();
|
|
220
|
+
translateGradients.start();
|
|
221
|
+
|
|
222
|
+
const animatedScale = _reactNative.Animated.timing(scaleAnim, {
|
|
223
|
+
toValue: 1,
|
|
224
|
+
duration: 1000,
|
|
225
|
+
useNativeDriver: true
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
animatedScale.start(); // on mount only
|
|
229
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
230
|
+
}, []);
|
|
153
231
|
|
|
154
232
|
if (!styleSheet) {
|
|
155
233
|
return null;
|
|
156
234
|
}
|
|
157
235
|
|
|
158
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
159
|
-
style: styleSheet.wrapper,
|
|
236
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
237
|
+
style: [styleSheet.wrapper, translateContent.animatedStyle],
|
|
160
238
|
testID: "welcome"
|
|
239
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
240
|
+
style: [styleSheet.gradients, translateGradients.animatedStyle]
|
|
161
241
|
}, /*#__PURE__*/_react.default.createElement(_reactNativeLinearGradient.default, {
|
|
162
242
|
colors: ['#0061FF', '#fff'],
|
|
163
|
-
locations: [0, 0.
|
|
243
|
+
locations: [0, 0.95],
|
|
164
244
|
style: styleSheet.gradient
|
|
165
245
|
}), /*#__PURE__*/_react.default.createElement(_reactNativeLinearGradient.default, {
|
|
166
246
|
colors: ['#2199AB', '#fff'],
|
|
167
|
-
locations: [0, 0.
|
|
247
|
+
locations: [0, 0.95],
|
|
168
248
|
style: styleSheet.gradient2
|
|
169
|
-
}), /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
249
|
+
})), /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
170
250
|
onLongPress: onDemoPress,
|
|
171
251
|
style: styleSheet.logo
|
|
252
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
253
|
+
style: [styleSheet.animatedLogoWrapper, {
|
|
254
|
+
transform: [{
|
|
255
|
+
scale: interpolateScale
|
|
256
|
+
}]
|
|
257
|
+
}]
|
|
258
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
259
|
+
style: [styleSheet.logoBG, fadeInFinalLogo.animatedStyle]
|
|
260
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
261
|
+
style: [styleSheet.animatedLogo, fadeInFinalLogo.animatedStyle]
|
|
172
262
|
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyLogoCoorp, {
|
|
173
|
-
fill:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
263
|
+
fill: "#0061FF"
|
|
264
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
265
|
+
style: [styleSheet.animatedLogo, fadeOutStartLogo.animatedStyle]
|
|
266
|
+
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyLogoCoorp, {
|
|
267
|
+
fill: "#fff"
|
|
268
|
+
})))), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
|
|
269
|
+
style: [styleSheet.content, fadeInContent.animatedStyle]
|
|
178
270
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
179
271
|
style: styleSheet.title
|
|
180
272
|
}, locales.title), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradient","position","opacity","transform","rotate","gradient2","logo","padding","title","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQRCode","backgroundColor","colors","cta","ctaQRCodeText","marginLeft","color","qrCodeIcon","fill","height","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onDesktopButtonPress","onHelpPress","onMobileButtonPress","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n logo: ViewStyle;\n content: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQRCode: ViewStyle;\n ctaQRCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradient: {\n position: 'absolute',\n top: -100,\n bottom: 0,\n left: -180,\n right: 0,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -80,\n bottom: 0,\n left: 0,\n right: -200,\n opacity: 0.5,\n transform: [{rotate: '-35deg'}]\n },\n logo: {\n padding: 100\n },\n title: {\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n fontSize: 18,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQRCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQRCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onDesktopButtonPress: () => void;\n onHelpPress: () => void;\n onMobileButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQRCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onDesktopButtonPress, onHelpPress, onMobileButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.wrapper} testID=\"welcome\">\n <LinearGradient\n colors={['#0061FF', '#fff']}\n locations={[0, 0.3]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.3]}\n style={styleSheet.gradient2}\n />\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <LogoCoorp fill={theme.colors.cta} width={77} height={75} />\n </Touchable>\n <View style={styleSheet.content}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQRCode]}\n onPress={onDesktopButtonPress}\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQRCodeText}>{locales.ctaQRCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onMobileButtonPress}\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Tou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D;;eA4DeE,O"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","wrapper","top","bottom","left","right","flex","justifyContent","alignItems","paddingHorizontal","content","width","gradients","position","gradient","opacity","transform","rotate","gradient2","animatedLogoWrapper","animatedLogo","height","logo","padding","logoBG","backgroundColor","title","fontWeight","fontSize","lineHeight","paddingVertical","description","actions","buttons","button","marginVertical","flexDirection","borderRadius","overflow","ctaQRCode","colors","cta","ctaQRCodeText","marginLeft","color","qrCodeIcon","fill","ctaReceiveMail","ctaReceiveMailText","mailIcon","help","titleHelp","ctaHelp","textDecorationLine","Welcome","props","locales","onDemoPress","onDesktopButtonPress","onHelpPress","onMobileButtonPress","useTemplateContext","styleSheet","setStylesheet","useState","translateGradients","useTranslateY","fromValue","toValue","duration","delay","translateContent","fadeInContent","useAnimateProp","property","fadeOutStartLogo","fadeInFinalLogo","scaleAnim","useRef","Animated","Value","current","interpolateScale","interpolate","inputRange","outputRange","useEffect","_stylesheet","start","animatedScale","timing","useNativeDriver","animatedStyle","scale"],"sources":["../../../../src/template/mobile-login/welcome/index.native.tsx"],"sourcesContent":["import React, {useEffect, useRef, useState} from 'react';\nimport {Animated, StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LinearGradient from 'react-native-linear-gradient';\nimport {\n NovaCompositionCoorpacademyLogoCoorp as LogoCoorp,\n NovaCompositionCoorpacademyQrCode as QrCodeIcon,\n NovaCompositionCoorpacademyEmail as MailIcon\n} from '@coorpacademy/nova-icons';\nimport {useAnimateProp, useTranslateY} from '@coorpacademy/react-native-animation';\nimport Touchable from '../../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\n\ntype StyleSheetType = {\n wrapper: ViewStyle;\n animatedLogoWrapper: ViewStyle;\n animatedLogo: ViewStyle;\n logo: ViewStyle;\n logoBG: ViewStyle;\n content: ViewStyle;\n gradients: ViewStyle;\n gradient: ViewStyle;\n gradient2: ViewStyle;\n title: TextStyle;\n description: TextStyle;\n actions: ViewStyle;\n buttons: ViewStyle;\n button: ViewStyle;\n qrCodeIcon: ViewStyle;\n mailIcon: ViewStyle;\n ctaQRCode: ViewStyle;\n ctaQRCodeText: TextStyle;\n ctaReceiveMail: ViewStyle;\n ctaReceiveMailText: TextStyle;\n help: ViewStyle;\n titleHelp: TextStyle;\n ctaHelp: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n wrapper: {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n flex: 1,\n justifyContent: 'space-around',\n alignItems: 'center',\n paddingHorizontal: 24\n },\n content: {\n width: '100%',\n alignItems: 'flex-start'\n },\n gradients: {\n position: 'absolute',\n top: 400,\n bottom: 400,\n left: 0,\n right: 0,\n flex: 1\n },\n gradient: {\n position: 'absolute',\n top: -730,\n bottom: 0,\n left: -380,\n right: -380,\n opacity: 1,\n transform: [{rotate: '35deg'}]\n },\n gradient2: {\n position: 'absolute',\n top: -630,\n bottom: -200,\n left: -300,\n right: -400,\n opacity: 0.6,\n transform: [{rotate: '-35deg'}]\n },\n animatedLogoWrapper: {\n alignItems: 'center'\n },\n animatedLogo: {\n position: 'absolute',\n width: 77,\n height: 100\n },\n logo: {\n padding: 100\n },\n logoBG: {\n backgroundColor: '#fff',\n top: 20,\n width: 60,\n height: 60\n },\n title: {\n fontWeight: '600',\n fontSize: 28,\n lineHeight: 36,\n paddingVertical: 8\n },\n description: {\n fontSize: 18,\n lineHeight: 24,\n paddingVertical: 8\n },\n actions: {\n width: '100%'\n },\n buttons: {\n paddingVertical: 20,\n alignItems: 'center'\n },\n button: {\n paddingVertical: 12,\n marginVertical: 4,\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'center',\n borderRadius: 12,\n alignItems: 'center',\n overflow: 'hidden'\n },\n ctaQRCode: {\n backgroundColor: theme.colors.cta\n },\n ctaQRCodeText: {\n marginLeft: 8,\n color: '#fff',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n qrCodeIcon: {\n fill: '#fff',\n height: 14,\n width: 14\n },\n ctaReceiveMail: {\n backgroundColor: '#eaeaeb'\n },\n ctaReceiveMailText: {\n marginLeft: 8,\n color: '#1D1D2B',\n fontWeight: '700',\n fontSize: 14,\n lineHeight: 24\n },\n mailIcon: {\n fill: '#1D1D2B',\n height: 12,\n width: 16\n },\n help: {\n flexDirection: 'row',\n justifyContent: 'center'\n },\n titleHelp: {\n color: '#9999A8'\n },\n ctaHelp: {\n marginLeft: 5,\n textDecorationLine: 'underline',\n color: '#9999A8'\n }\n });\n\nexport type Props = {\n onDemoPress: () => void;\n onDesktopButtonPress: () => void;\n onHelpPress: () => void;\n onMobileButtonPress: () => void;\n locales: {\n title: string;\n description: string;\n ctaQRCode: string;\n ctaReceiveMail: string;\n titleHelp: string;\n ctaHelp: string;\n };\n};\n\nconst Welcome = (props: Props) => {\n const {locales, onDemoPress, onDesktopButtonPress, onHelpPress, onMobileButtonPress} = props;\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n const translateGradients = useTranslateY({\n fromValue: 0,\n toValue: -200,\n duration: 300,\n delay: 750\n });\n\n const translateContent = useTranslateY({\n fromValue: 170,\n toValue: 0,\n duration: 450,\n delay: 750\n });\n\n const fadeInContent = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 650,\n delay: 750\n });\n\n const fadeOutStartLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 1,\n toValue: 0,\n duration: 450,\n delay: 1000\n });\n\n const fadeInFinalLogo = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 250,\n delay: 900\n });\n\n const scaleAnim = useRef<Animated.Value>(new Animated.Value(0)).current;\n const interpolateScale = scaleAnim.interpolate({\n inputRange: [0, 0.4, 0.5, 0.6, 1],\n outputRange: [1, 1.7, 1.7, 1.7, 1]\n });\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n useEffect(() => {\n fadeInContent.start();\n fadeInFinalLogo.start();\n fadeOutStartLogo.start();\n translateContent.start();\n translateGradients.start();\n\n const animatedScale = Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 1000,\n useNativeDriver: true\n });\n\n animatedScale.start();\n\n // on mount only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!styleSheet) {\n return null;\n }\n return (\n <Animated.View style={[styleSheet.wrapper, translateContent.animatedStyle]} testID=\"welcome\">\n <Animated.View style={[styleSheet.gradients, translateGradients.animatedStyle]}>\n <LinearGradient\n colors={['#0061FF', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient}\n />\n <LinearGradient\n colors={['#2199AB', '#fff']}\n locations={[0, 0.95]}\n style={styleSheet.gradient2}\n />\n </Animated.View>\n\n <Touchable onLongPress={onDemoPress} style={styleSheet.logo}>\n <Animated.View\n style={[styleSheet.animatedLogoWrapper, {transform: [{scale: interpolateScale}]}]}\n >\n <Animated.View style={[styleSheet.logoBG, fadeInFinalLogo.animatedStyle]} />\n <Animated.View style={[styleSheet.animatedLogo, fadeInFinalLogo.animatedStyle]}>\n <LogoCoorp fill=\"#0061FF\" />\n </Animated.View>\n <Animated.View style={[styleSheet.animatedLogo, fadeOutStartLogo.animatedStyle]}>\n <LogoCoorp fill=\"#fff\" />\n </Animated.View>\n </Animated.View>\n </Touchable>\n <Animated.View style={[styleSheet.content, fadeInContent.animatedStyle]}>\n <Text style={styleSheet.title}>{locales.title}</Text>\n <Text style={styleSheet.description}>{locales.description}</Text>\n\n <View style={styleSheet.actions}>\n <View style={styleSheet.buttons}>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaQRCode]}\n onPress={onDesktopButtonPress}\n >\n <QrCodeIcon style={styleSheet.qrCodeIcon} />\n <Text style={styleSheet.ctaQRCodeText}>{locales.ctaQRCode}</Text>\n </Touchable>\n <Touchable\n style={[styleSheet.button, styleSheet.ctaReceiveMail]}\n onPress={onMobileButtonPress}\n >\n <MailIcon style={styleSheet.mailIcon} />\n <Text style={styleSheet.ctaReceiveMailText}>{locales.ctaReceiveMail}</Text>\n </Touchable>\n </View>\n <Touchable onPress={onHelpPress} style={styleSheet.help}>\n <Text style={styleSheet.titleHelp}>{locales.titleHelp}</Text>\n <Text style={styleSheet.ctaHelp}>{locales.ctaHelp}</Text>\n </Touchable>\n </View>\n </Animated.View>\n </Animated.View>\n );\n};\n\nexport default Welcome;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAKA;;AACA;;AACA;;;;;;;;AA6BA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,OAAO,EAAE;IACPC,GAAG,EAAE,CADE;IAEPC,MAAM,EAAE,CAFD;IAGPC,IAAI,EAAE,CAHC;IAIPC,KAAK,EAAE,CAJA;IAKPC,IAAI,EAAE,CALC;IAMPC,cAAc,EAAE,cANT;IAOPC,UAAU,EAAE,QAPL;IAQPC,iBAAiB,EAAE;EARZ,CADO;EAWhBC,OAAO,EAAE;IACPC,KAAK,EAAE,MADA;IAEPH,UAAU,EAAE;EAFL,CAXO;EAehBI,SAAS,EAAE;IACTC,QAAQ,EAAE,UADD;IAETX,GAAG,EAAE,GAFI;IAGTC,MAAM,EAAE,GAHC;IAITC,IAAI,EAAE,CAJG;IAKTC,KAAK,EAAE,CALE;IAMTC,IAAI,EAAE;EANG,CAfK;EAuBhBQ,QAAQ,EAAE;IACRD,QAAQ,EAAE,UADF;IAERX,GAAG,EAAE,CAAC,GAFE;IAGRC,MAAM,EAAE,CAHA;IAIRC,IAAI,EAAE,CAAC,GAJC;IAKRC,KAAK,EAAE,CAAC,GALA;IAMRU,OAAO,EAAE,CAND;IAORC,SAAS,EAAE,CAAC;MAACC,MAAM,EAAE;IAAT,CAAD;EAPH,CAvBM;EAgChBC,SAAS,EAAE;IACTL,QAAQ,EAAE,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B;EAFX,gBAIE,6BAAC,4CAAD;IAAY,KAAK,EAAEI,UAAU,CAACjB;EAA9B,EAJF,eAKE,6BAAC,iBAAD;IAAM,KAAK,EAAEiB,UAAU,CAACpB;EAAxB,GAAwCc,OAAO,CAACjB,SAAhD,CALF,CADF,eAQE,6BAAC,cAAD;IACE,KAAK,EAAE,CAACuB,UAAU,CAAC5B,MAAZ,EAAoB4B,UAAU,CAACf,cAA/B,CADT;IAEE,OAAO,EAAEa;EAFX,gBAIE,6BAAC,2CAAD;IAAU,KAAK,EAAEE,UAAU,CAACb;EAA5B,EAJF,eAKE,6BAAC,iBAAD;IAAM,KAAK,EAAEa,UAAU,CAACd;EAAxB,GAA6CQ,OAAO,CAACT,cAArD,CALF,CARF,CADF,eAiBE,6BAAC,cAAD;IAAW,OAAO,EAAEY,WAApB;IAAiC,KAAK,EAAEG,UAAU,CAACZ;EAAnD,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEY,UAAU,CAACX;EAAxB,GAAoCK,OAAO,CAACL,SAA5C,CADF,eAEE,6BAAC,iBAAD;IAAM,KAAK,EAAEW,UAAU,CAACV;EAAxB,GAAkCI,OAAO,CAACJ,OAA1C,CAFF,CAjBF,CAJF,CA3BF,CADF;AAyDD,CArID;;eAuIeE,O"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ignore_dirs":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.14.
|
|
3
|
+
"version": "11.14.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"Soualmi Djamel <djamel.soualmi@coorpacademy.com>"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@coorpacademy/nova-icons": "4.2.
|
|
59
|
+
"@coorpacademy/nova-icons": "4.2.2",
|
|
60
60
|
"@coorpacademy/react-native-animation": "1.0.3",
|
|
61
61
|
"@jwplayer/jwplayer-react": "^1.1.0",
|
|
62
62
|
"@types/react": "^17.0.50",
|
|
@@ -166,5 +166,5 @@
|
|
|
166
166
|
"last 2 versions",
|
|
167
167
|
"IE 11"
|
|
168
168
|
],
|
|
169
|
-
"gitHead": "
|
|
169
|
+
"gitHead": "93e43b87969bd5ccb28ab75f4014e439dcbadc11"
|
|
170
170
|
}
|