@coorpacademy/components 11.5.3 → 11.6.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/es/atom/review-presentation/index.native.js +1 -1
- package/es/atom/review-presentation/index.native.js.map +1 -1
- package/es/organism/review-header/index.native.d.ts.map +1 -1
- package/es/organism/review-header/index.native.js +8 -7
- package/es/organism/review-header/index.native.js.map +1 -1
- package/es/template/app-review/index.d.ts +0 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/background-review.css +235 -0
- package/es/template/app-review/player/background-review.d.ts +3 -0
- package/es/template/app-review/player/background-review.d.ts.map +1 -0
- package/es/{atom/review-background/index.js → template/app-review/player/background-review.js} +3 -9
- package/es/template/app-review/player/background-review.js.map +1 -0
- package/es/template/app-review/player/index.d.ts +1 -2
- package/es/template/app-review/player/index.d.ts.map +1 -1
- package/es/template/app-review/player/index.js +2 -5
- package/es/template/app-review/player/index.js.map +1 -1
- package/es/template/app-review/player/index.native.d.ts.map +1 -1
- package/es/template/app-review/player/index.native.js +18 -3
- package/es/template/app-review/player/index.native.js.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.js +0 -2
- package/es/template/app-review/player/prop-types.js.map +1 -1
- package/es/template/app-review/prop-types.d.ts +0 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/atom/review-presentation/index.native.js +1 -1
- package/lib/atom/review-presentation/index.native.js.map +1 -1
- package/lib/organism/review-header/index.native.d.ts.map +1 -1
- package/lib/organism/review-header/index.native.js +8 -7
- package/lib/organism/review-header/index.native.js.map +1 -1
- package/lib/template/app-review/index.d.ts +0 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/background-review.css +235 -0
- package/lib/template/app-review/player/background-review.d.ts +3 -0
- package/lib/template/app-review/player/background-review.d.ts.map +1 -0
- package/lib/{atom/review-background/index.js → template/app-review/player/background-review.js} +12 -19
- package/lib/template/app-review/player/background-review.js.map +1 -0
- package/lib/template/app-review/player/index.d.ts +1 -2
- package/lib/template/app-review/player/index.d.ts.map +1 -1
- package/lib/template/app-review/player/index.js +3 -6
- package/lib/template/app-review/player/index.js.map +1 -1
- package/lib/template/app-review/player/index.native.d.ts.map +1 -1
- package/lib/template/app-review/player/index.native.js +17 -2
- package/lib/template/app-review/player/index.native.js.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.js +2 -5
- package/lib/template/app-review/player/prop-types.js.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +0 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/package.json +2 -2
- package/es/atom/review-background/index.d.ts +0 -7
- package/es/atom/review-background/index.d.ts.map +0 -1
- package/es/atom/review-background/index.js.map +0 -1
- package/es/atom/review-background/prop-types.d.ts +0 -6
- package/es/atom/review-background/prop-types.d.ts.map +0 -1
- package/es/atom/review-background/prop-types.js +0 -5
- package/es/atom/review-background/prop-types.js.map +0 -1
- package/es/atom/review-background/style.css +0 -234
- package/lib/atom/review-background/index.d.ts +0 -7
- package/lib/atom/review-background/index.d.ts.map +0 -1
- package/lib/atom/review-background/index.js.map +0 -1
- package/lib/atom/review-background/prop-types.d.ts +0 -6
- package/lib/atom/review-background/prop-types.d.ts.map +0 -1
- package/lib/atom/review-background/prop-types.js +0 -14
- package/lib/atom/review-background/prop-types.js.map +0 -1
- package/lib/atom/review-background/style.css +0 -234
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","View","StyleSheet","Text","NovaLineSelectionCursorsCursorArrowTarget","TargetIcon","NovaSolidInterfaceFeedbackInterfaceQuestionMark","QuestionMarkIcon","NovaSolidStatusCheckCircle2","CheckCircle2Icon","NovaCompositionCoorpacademyVoteHeartOutline","HeartIcon","useTemplateContext","Touchable","Html","createStyleSheet","brandTheme","theme","create","container","backgroundColor","colors","white","justifyContent","flex","padding","paddingTop","paddingBottom","title","height","width","fontSize","xxlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","large","opacity","tips","marginTop","tip","flexDirection","overflow","alignItems","borderRadius","gray","extra","spacing","micro","tipText","icon","margin","button","cta","buttonText","alignSelf","Tip","props","templateContext","styleSheet","setStylesheet","Icon","_stylesheet","Onboarding","translations","onPress","appReview","presentation","labelList","skills","questions","lifes","allright","ok"],"sources":["../../../src/atom/review-presentation/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {View, StyleSheet, Text, ViewStyle, TextStyle} from 'react-native';\nimport {\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionMarkIcon,\n NovaSolidStatusCheckCircle2 as CheckCircle2Icon,\n NovaCompositionCoorpacademyVoteHeartOutline as HeartIcon\n} from '@coorpacademy/nova-icons';\n\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\nimport Touchable from '../../hoc/touchable/index.native';\nimport Html from '../html/index.native';\nimport {Brand} from '../../variables/brand.native';\nimport {OnboardingProps, TipProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n text: TextStyle;\n tips: ViewStyle;\n tip: ViewStyle;\n tipText: TextStyle;\n icon: ViewStyle;\n button: ViewStyle;\n buttonText: TextStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n backgroundColor: theme.colors.white,\n justifyContent: 'space-between',\n flex: 1,\n padding: 20,\n paddingTop: 20,\n paddingBottom: 100\n },\n title: {\n height: 72,\n width: 268,\n fontSize: theme.fontSize.xxlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 36,\n color: theme.colors.text.primary,\n marginBottom: 32\n },\n text: {\n fontSize: theme.fontSize.large,\n color: theme.colors.text.primary,\n opacity: 0.7\n },\n tips: {\n marginTop: 32,\n height: 300,\n justifyContent: 'center'\n },\n tip: {\n flexDirection: 'row',\n overflow: 'hidden',\n alignItems: 'center',\n height: 54,\n borderRadius: 8,\n backgroundColor: theme.colors.gray.extra,\n marginTop: theme.spacing.micro,\n marginBottom: theme.spacing.micro\n },\n tipText: {\n fontSize: 16,\n lineHeight: 22,\n color: theme.colors.text.primary\n },\n icon: {\n margin: 10\n },\n button: {\n height: 52,\n borderRadius: 7,\n marginBottom: 32,\n marginTop: 16,\n backgroundColor: brandTheme?.colors?.primary || theme.colors.cta,\n justifyContent: 'center'\n },\n buttonText: {\n alignSelf: 'center',\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.large,\n color: '#fff'\n }\n });\n\nconst Tip = (props: TipProps) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme} = templateContext;\n const {Icon, text} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.tip}>\n <Icon height={16} width={16} style={styleSheet.icon} color={theme.colors.text.primary} />\n <Text style={styleSheet.tipText}>{text}</Text>\n </View>\n );\n};\n\nconst Onboarding = (props: OnboardingProps) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme, translations} = templateContext;\n const {onPress} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.container}>\n <Html style={styleSheet.title}>{translations.appReview.presentation.title}</Html>\n <Html style={styleSheet.text}>{translations.appReview.presentation.text}</Html>\n\n <View style={styleSheet.tips}>\n <Tip Icon={TargetIcon} text={translations.appReview.presentation.labelList.skills.text} />\n <Tip\n Icon={QuestionMarkIcon}\n text={translations.appReview.presentation.labelList.questions.text}\n />\n <Tip Icon={HeartIcon} text={translations.appReview.presentation.labelList.lifes.text} />\n <Tip\n Icon={CheckCircle2Icon}\n text={translations.appReview.presentation.labelList.allright.text}\n />\n </View>\n <Touchable\n testID=\"button-quit-revision-onboarding\"\n onPress={onPress}\n analyticsID=\"button-start\"\n style={styleSheet.button}\n >\n <Text style={styleSheet.buttonText}>{translations.ok}</Text>\n </Touchable>\n </View>\n );\n};\n\nexport default Onboarding;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,SAAzB,QAAyC,OAAzC;AACA,SAAQC,IAAR,EAAcC,UAAd,EAA0BC,IAA1B,QAA2D,cAA3D;AACA,SACEC,yCAAyC,IAAIC,UAD/C,EAEEC,+CAA+C,IAAIC,gBAFrD,EAGEC,2BAA2B,IAAIC,gBAHjC,EAIEC,2CAA2C,IAAIC,SAJjD,QAKO,0BALP;AAOA,SAAQC,kBAAR,QAAiC,4CAAjC;AAEA,OAAOC,SAAP,MAAsB,kCAAtB;AACA,OAAOC,IAAP,MAAiB,sBAAjB;;AAgBA,MAAMC,gBAAgB,GAAG,CAACC,UAAD,EAAoBC,KAApB,KACvBf,UAAU,CAACgB,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,eAAe,EAAEH,KAAK,CAACI,MAAN,CAAaC,KADrB;IAETC,cAAc,EAAE,eAFP;IAGTC,IAAI,EAAE,CAHG;IAITC,OAAO,EAAE,EAJA;IAKTC,UAAU,EAAE,EALH;IAMTC,aAAa,EAAE;EANN,CADK;EAShBC,KAAK,EAAE;IACLC,MAAM,EAAE,EADH;IAELC,KAAK,EAAE,GAFF;IAGLC,QAAQ,EAAEd,KAAK,CAACc,QAAN,CAAeC,OAHpB;IAILC,UAAU,EAAEhB,KAAK,CAACgB,UAAN,CAAiBC,IAJxB;IAKLC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CAAoCC,SAApC,CAA8CI,QAA9C,CAAuDvC;EAF/D,EAPF,CAJF,eAgBE,oBAAC,SAAD;IACE,MAAM,EAAC,iCADT;IAEE,OAAO,EAAEgC,OAFX;IAGE,WAAW,EAAC,cAHd;IAIE,KAAK,EAAEN,UAAU,CAACP;EAJpB,gBAME,oBAAC,IAAD;IAAM,KAAK,EAAEO,UAAU,CAACL;EAAxB,GAAqCU,YAAY,CAACS,EAAlD,CANF,CAhBF,CADF;AA2BD,CA5CD;;AA8CA,eAAeV,UAAf"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","View","StyleSheet","Text","NovaLineSelectionCursorsCursorArrowTarget","TargetIcon","NovaSolidInterfaceFeedbackInterfaceQuestionMark","QuestionMarkIcon","NovaSolidStatusCheckCircle2","CheckCircle2Icon","NovaCompositionCoorpacademyVoteHeartOutline","HeartIcon","useTemplateContext","Touchable","Html","createStyleSheet","brandTheme","theme","create","container","backgroundColor","colors","white","justifyContent","flex","padding","paddingTop","paddingBottom","title","height","width","fontSize","xxlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","large","opacity","tips","marginTop","tip","flexDirection","overflow","alignItems","borderRadius","gray","extra","spacing","micro","tipText","icon","margin","button","cta","buttonText","alignSelf","Tip","props","templateContext","styleSheet","setStylesheet","Icon","_stylesheet","Onboarding","translations","onPress","appReview","presentation","labelList","skills","questions","lifes","allright","ok"],"sources":["../../../src/atom/review-presentation/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {View, StyleSheet, Text, ViewStyle, TextStyle} from 'react-native';\nimport {\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionMarkIcon,\n NovaSolidStatusCheckCircle2 as CheckCircle2Icon,\n NovaCompositionCoorpacademyVoteHeartOutline as HeartIcon\n} from '@coorpacademy/nova-icons';\n\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\nimport Touchable from '../../hoc/touchable/index.native';\nimport Html from '../html/index.native';\nimport {Brand} from '../../variables/brand.native';\nimport {OnboardingProps, TipProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n text: TextStyle;\n tips: ViewStyle;\n tip: ViewStyle;\n tipText: TextStyle;\n icon: ViewStyle;\n button: ViewStyle;\n buttonText: TextStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n backgroundColor: theme.colors.white,\n justifyContent: 'space-between',\n flex: 1,\n padding: 20,\n paddingTop: 20,\n paddingBottom: 100\n },\n title: {\n height: 72,\n width: 268,\n fontSize: theme.fontSize.xxlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 36,\n color: theme.colors.text.primary,\n marginBottom: 32\n },\n text: {\n fontSize: theme.fontSize.large,\n color: theme.colors.text.primary,\n opacity: 0.7\n },\n tips: {\n marginTop: 32,\n height: 230,\n justifyContent: 'center'\n },\n tip: {\n flexDirection: 'row',\n overflow: 'hidden',\n alignItems: 'center',\n height: 54,\n borderRadius: 8,\n backgroundColor: theme.colors.gray.extra,\n marginTop: theme.spacing.micro,\n marginBottom: theme.spacing.micro\n },\n tipText: {\n fontSize: 16,\n lineHeight: 22,\n color: theme.colors.text.primary\n },\n icon: {\n margin: 10\n },\n button: {\n height: 52,\n borderRadius: 7,\n marginBottom: 32,\n marginTop: 16,\n backgroundColor: brandTheme?.colors?.primary || theme.colors.cta,\n justifyContent: 'center'\n },\n buttonText: {\n alignSelf: 'center',\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.large,\n color: '#fff'\n }\n });\n\nconst Tip = (props: TipProps) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme} = templateContext;\n const {Icon, text} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.tip}>\n <Icon height={16} width={16} style={styleSheet.icon} color={theme.colors.text.primary} />\n <Text style={styleSheet.tipText}>{text}</Text>\n </View>\n );\n};\n\nconst Onboarding = (props: OnboardingProps) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme, translations} = templateContext;\n const {onPress} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.container}>\n <Html style={styleSheet.title}>{translations.appReview.presentation.title}</Html>\n <Html style={styleSheet.text}>{translations.appReview.presentation.text}</Html>\n\n <View style={styleSheet.tips}>\n <Tip Icon={TargetIcon} text={translations.appReview.presentation.labelList.skills.text} />\n <Tip\n Icon={QuestionMarkIcon}\n text={translations.appReview.presentation.labelList.questions.text}\n />\n <Tip Icon={HeartIcon} text={translations.appReview.presentation.labelList.lifes.text} />\n <Tip\n Icon={CheckCircle2Icon}\n text={translations.appReview.presentation.labelList.allright.text}\n />\n </View>\n <Touchable\n testID=\"button-quit-revision-onboarding\"\n onPress={onPress}\n analyticsID=\"button-start\"\n style={styleSheet.button}\n >\n <Text style={styleSheet.buttonText}>{translations.ok}</Text>\n </Touchable>\n </View>\n );\n};\n\nexport default Onboarding;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,SAAzB,QAAyC,OAAzC;AACA,SAAQC,IAAR,EAAcC,UAAd,EAA0BC,IAA1B,QAA2D,cAA3D;AACA,SACEC,yCAAyC,IAAIC,UAD/C,EAEEC,+CAA+C,IAAIC,gBAFrD,EAGEC,2BAA2B,IAAIC,gBAHjC,EAIEC,2CAA2C,IAAIC,SAJjD,QAKO,0BALP;AAOA,SAAQC,kBAAR,QAAiC,4CA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,GAAD;IAAK,IAAI,EAAErC,UAAX;IAAuB,IAAI,EAAE+D,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCC,SAApC,CAA8CC,MAA9C,CAAqDpC;EAAlF,EADF,eAEE,oBAAC,GAAD;IACE,IAAI,EAAE9B,gBADR;IAEE,IAAI,EAAE6D,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCC,SAApC,CAA8CE,SAA9C,CAAwDrC;EAFhE,EAFF,eAME,oBAAC,GAAD;IAAK,IAAI,EAAE1B,SAAX;IAAsB,IAAI,EAAEyD,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCC,SAApC,CAA8CG,KAA9C,CAAoDtC;EAAhF,EANF,eAOE,oBAAC,GAAD;IACE,IAAI,EAAE5B,gBADR;IAEE,IAAI,EAAE2D,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCC,SAApC,CAA8CI,QAA9C,CAAuDvC;EAF/D,EAPF,CAJF,eAgBE,oBAAC,SAAD;IACE,MAAM,EAAC,iCADT;IAEE,OAAO,EAAEgC,OAFX;IAGE,WAAW,EAAC,cAHd;IAIE,KAAK,EAAEN,UAAU,CAACP;EAJpB,gBAME,oBAAC,IAAD;IAAM,KAAK,EAAEO,UAAU,CAACL;EAAxB,GAAqCU,YAAY,CAACS,EAAlD,CANF,CAhBF,CADF;AA2BD,CA5CD;;AA8CA,eAAeV,UAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/organism/review-header/index.native.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/organism/review-header/index.native.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAsCpC,QAAA,MAAM,YAAY,UAAW,WAAW,gBAqBvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -10,7 +10,8 @@ const style = StyleSheet.create({
|
|
|
10
10
|
flexDirection: 'row',
|
|
11
11
|
justifyContent: 'center',
|
|
12
12
|
alignItems: 'center',
|
|
13
|
-
alignContent: 'center'
|
|
13
|
+
alignContent: 'center',
|
|
14
|
+
width: '100%'
|
|
14
15
|
},
|
|
15
16
|
header: {
|
|
16
17
|
width: '80%',
|
|
@@ -18,14 +19,14 @@ const style = StyleSheet.create({
|
|
|
18
19
|
alignItems: 'center',
|
|
19
20
|
justifyContent: 'center',
|
|
20
21
|
height: 70,
|
|
21
|
-
paddingTop:
|
|
22
|
+
paddingTop: 8
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
+
touchArea: {
|
|
24
25
|
position: 'absolute',
|
|
25
|
-
right:
|
|
26
|
-
bottom: 10,
|
|
26
|
+
right: 24,
|
|
27
27
|
borderRadius: 12,
|
|
28
|
-
|
|
28
|
+
paddingTop: 16,
|
|
29
|
+
padding: 8
|
|
29
30
|
},
|
|
30
31
|
icon: {
|
|
31
32
|
width: 12,
|
|
@@ -45,7 +46,7 @@ const ReviewHeader = props => {
|
|
|
45
46
|
}, steps.map(step => /*#__PURE__*/React.createElement(Step, _extends({}, step, {
|
|
46
47
|
key: step.value
|
|
47
48
|
})))), /*#__PURE__*/React.createElement(Touchable, {
|
|
48
|
-
style: style.
|
|
49
|
+
style: style.touchArea,
|
|
49
50
|
isHighlight: true,
|
|
50
51
|
onPress: onQuitClick,
|
|
51
52
|
accessibilityLabel: "open-popin-button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","StyleSheet","View","NovaSolidStatusClose","CloseIcon","Step","Touchable","style","create","container","flexDirection","justifyContent","alignItems","alignContent","
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","StyleSheet","View","NovaSolidStatusClose","CloseIcon","Step","Touchable","style","create","container","flexDirection","justifyContent","alignItems","alignContent","width","header","height","paddingTop","touchArea","position","right","borderRadius","padding","icon","ReviewHeader","props","steps","onQuitClick","map","step","value"],"sources":["../../../src/organism/review-header/index.native.tsx"],"sourcesContent":["import React from 'react';\nimport {StyleSheet, View, ViewStyle} from 'react-native';\nimport {NovaSolidStatusClose as CloseIcon} from '@coorpacademy/nova-icons';\nimport Step from '../../atom/review-header-step-item/index.native';\nimport Touchable from '../../hoc/touchable/index.native';\nimport {HeaderProps} from './types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: ViewStyle;\n touchArea: ViewStyle;\n icon: ViewStyle;\n};\n\nconst style: StyleSheetType = StyleSheet.create({\n container: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n alignContent: 'center',\n width: '100%'\n },\n header: {\n width: '80%',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n height: 70,\n paddingTop: 8\n },\n touchArea: {\n position: 'absolute',\n right: 24,\n borderRadius: 12,\n paddingTop: 16,\n padding: 8\n },\n icon: {\n width: 12,\n height: 12\n }\n});\n\nconst ReviewHeader = (props: HeaderProps) => {\n const {steps, onQuitClick} = props;\n\n return (\n <View style={style.container}>\n <View style={style.header}>\n {steps.map(step => (\n <Step {...step} key={step.value} />\n ))}\n </View>\n <Touchable\n style={style.touchArea}\n isHighlight\n onPress={onQuitClick}\n accessibilityLabel=\"open-popin-button\"\n testID=\"open-popin-button\"\n >\n <CloseIcon style={style.icon} color=\"#06265B\" />\n </Touchable>\n </View>\n );\n};\n\nexport default ReviewHeader;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAQC,UAAR,EAAoBC,IAApB,QAA0C,cAA1C;AACA,SAAQC,oBAAoB,IAAIC,SAAhC,QAAgD,0BAAhD;AACA,OAAOC,IAAP,MAAiB,iDAAjB;AACA,OAAOC,SAAP,MAAsB,kCAAtB;AAUA,MAAMC,KAAqB,GAAGN,UAAU,CAACO,MAAX,CAAkB;EAC9CC,SAAS,EAAE;IACTC,aAAa,EAAE,KADN;IAETC,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requireable<boolean>;
|
|
426
426
|
}>>;
|
|
427
|
-
reviewBackgroundAriaLabel: import("prop-types").Requireable<string>;
|
|
428
427
|
congrats: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
429
428
|
'aria-label': import("prop-types").Requireable<string>;
|
|
430
429
|
'data-name': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
|
+
@value tablet from breakpoints;
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
|
|
5
|
+
.interrogationBase {
|
|
6
|
+
position: absolute;
|
|
7
|
+
font-family: "Gilroy";
|
|
8
|
+
font-size: 700px;
|
|
9
|
+
font-weight: 700;
|
|
10
|
+
text-align: center;
|
|
11
|
+
color: black;
|
|
12
|
+
opacity: 0.02;
|
|
13
|
+
user-select: none;
|
|
14
|
+
z-index: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mainContainer {
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100vw;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background: #ffffff;
|
|
22
|
+
padding: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.container {
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
left: 0px;
|
|
32
|
+
top: 0px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.interrogationLeft {
|
|
36
|
+
composes: interrogationBase;
|
|
37
|
+
left: -14%;
|
|
38
|
+
top: -15%;
|
|
39
|
+
transform: rotate(49.77deg);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.interrogationRight {
|
|
43
|
+
composes: interrogationBase;
|
|
44
|
+
left: 72%;
|
|
45
|
+
top: 12%;
|
|
46
|
+
transform: rotate(135deg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.recYellow {
|
|
50
|
+
position: absolute;
|
|
51
|
+
left: -40.79%;
|
|
52
|
+
right: 60.63%;
|
|
53
|
+
top: 0.34%;
|
|
54
|
+
bottom: 24.77%;
|
|
55
|
+
background: radial-gradient(
|
|
56
|
+
circle closest-side at 57.97% 41.54%,
|
|
57
|
+
#ffc043 0%,
|
|
58
|
+
rgba(255, 255, 255, 0) 100%
|
|
59
|
+
);
|
|
60
|
+
opacity: 0.4;
|
|
61
|
+
filter: blur(80px);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.recRed {
|
|
65
|
+
position: absolute;
|
|
66
|
+
left: 3.72%;
|
|
67
|
+
right: 42.62%;
|
|
68
|
+
top: 23.04%;
|
|
69
|
+
bottom: -9.22%;
|
|
70
|
+
background: radial-gradient(
|
|
71
|
+
circle closest-side at 57.97% 41.54%,
|
|
72
|
+
#ff7043 0%,
|
|
73
|
+
rgba(255, 255, 255, 0) 100%
|
|
74
|
+
);
|
|
75
|
+
opacity: 0.2;
|
|
76
|
+
filter: blur(80px);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.recBlue {
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 42.5%;
|
|
82
|
+
right: 0.35%;
|
|
83
|
+
top: 40.78%;
|
|
84
|
+
bottom: -67.67%;
|
|
85
|
+
background: radial-gradient(
|
|
86
|
+
circle closest-side at 39.9% 50%,
|
|
87
|
+
rgba(0, 97, 255, 0.55) 0%,
|
|
88
|
+
rgba(255, 255, 255, 0) 100%
|
|
89
|
+
);
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
filter: blur(80px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.recGreen {
|
|
95
|
+
position: absolute;
|
|
96
|
+
left: 64.14%;
|
|
97
|
+
right: -20.87%;
|
|
98
|
+
top: -27.96%;
|
|
99
|
+
bottom: 45.85%;
|
|
100
|
+
background: radial-gradient(
|
|
101
|
+
circle closest-side at 56.78% 61.36%,
|
|
102
|
+
#2199ab 0%,
|
|
103
|
+
rgba(255, 255, 255, 0) 100%
|
|
104
|
+
);
|
|
105
|
+
opacity: 0.5;
|
|
106
|
+
filter: blur(100px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.recGreenLight {
|
|
110
|
+
position: absolute;
|
|
111
|
+
left: 50.13%;
|
|
112
|
+
right: -18.51%;
|
|
113
|
+
top: 13.13%;
|
|
114
|
+
bottom: 6.78%;
|
|
115
|
+
background: radial-gradient(
|
|
116
|
+
circle closest-side at 54.18% 40.45%,
|
|
117
|
+
#18bb98 0%,
|
|
118
|
+
rgba(255, 255, 255, 0) 100%
|
|
119
|
+
);
|
|
120
|
+
opacity: 0.5;
|
|
121
|
+
filter: blur(100px);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media tablet {
|
|
125
|
+
.interrogationLeft {
|
|
126
|
+
left: -8%;
|
|
127
|
+
top: 6%;
|
|
128
|
+
font-size: 500px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.interrogationRight {
|
|
132
|
+
left: 70%;
|
|
133
|
+
top: 6%;
|
|
134
|
+
font-size: 500px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.recYellow {
|
|
138
|
+
left: -20.79%;
|
|
139
|
+
right: 55.63%;
|
|
140
|
+
top: 5.34%;
|
|
141
|
+
bottom: 34.77%;
|
|
142
|
+
background: radial-gradient(
|
|
143
|
+
circle closest-side at 57.97% 41.54%,
|
|
144
|
+
#ffc043 0%,
|
|
145
|
+
rgba(255, 255, 255, 0) 100%
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.recRed {
|
|
150
|
+
left: 10.72%;
|
|
151
|
+
right: 42.62%;
|
|
152
|
+
top: 33.04%;
|
|
153
|
+
bottom: -9.22%;
|
|
154
|
+
background: radial-gradient(
|
|
155
|
+
circle closest-side at 57.97% 41.54%,
|
|
156
|
+
#ff7043 0%,
|
|
157
|
+
rgba(255, 255, 255, 0) 100%
|
|
158
|
+
);
|
|
159
|
+
filter: blur(50px);
|
|
160
|
+
opacity: 0.2;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.recBlue {
|
|
164
|
+
bottom: -80.78%;
|
|
165
|
+
background: radial-gradient(
|
|
166
|
+
circle closest-side at 39.9% 50%,
|
|
167
|
+
rgba(0, 97, 255, 0.55) 0%,
|
|
168
|
+
rgba(255, 255, 255, 0) 100%
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.recGreen {
|
|
173
|
+
bottom: 43.13%;
|
|
174
|
+
background: radial-gradient(
|
|
175
|
+
circle closest-side at 56.78% 61.36%,
|
|
176
|
+
#2199ab 0%,
|
|
177
|
+
rgba(255, 255, 255, 0) 100%
|
|
178
|
+
);
|
|
179
|
+
opacity: 0.3;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.recGreenLight {
|
|
183
|
+
left: 40%;
|
|
184
|
+
top: 13.13%;
|
|
185
|
+
background: radial-gradient(
|
|
186
|
+
circle closest-side at 54.18% 40.45%,
|
|
187
|
+
#18bb98 0%,
|
|
188
|
+
rgba(255, 255, 255, 0) 100%
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media mobile {
|
|
194
|
+
.interrogationLeft {
|
|
195
|
+
left: -25%;
|
|
196
|
+
top: 3%;
|
|
197
|
+
font-size: 400px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.interrogationRight {
|
|
201
|
+
left: 55%;
|
|
202
|
+
top: 36%;
|
|
203
|
+
font-size: 400px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.recYellow {
|
|
207
|
+
right: 50%;
|
|
208
|
+
top: -5.34%;
|
|
209
|
+
opacity: 0.5;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.recRed {
|
|
213
|
+
opacity: 0.5;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.recBlue {
|
|
217
|
+
left: 48.5%;
|
|
218
|
+
right: -35%;
|
|
219
|
+
bottom: -50.78%;
|
|
220
|
+
opacity: 0.5;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.recGreen {
|
|
224
|
+
top: -23.13%;
|
|
225
|
+
left: 30%;
|
|
226
|
+
opacity: 0.5;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.recGreenLight {
|
|
230
|
+
top: -3.13%;
|
|
231
|
+
left: 30%;
|
|
232
|
+
opacity: 0.5;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-review.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/background-review.js"],"names":[],"mappings":";AAGA,iDAkBC"}
|
package/es/{atom/review-background/index.js → template/app-review/player/background-review.js}
RENAMED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import style from './
|
|
3
|
-
import propTypes from './prop-types';
|
|
2
|
+
import style from './background-review.css';
|
|
4
3
|
|
|
5
|
-
const ReviewBackground =
|
|
6
|
-
const {
|
|
7
|
-
'aria-label': ariaLabel
|
|
8
|
-
} = props;
|
|
4
|
+
const ReviewBackground = () => {
|
|
9
5
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
6
|
className: style.mainContainer,
|
|
11
|
-
"aria-label": ariaLabel,
|
|
12
7
|
tabIndex: -1
|
|
13
8
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14
9
|
className: style.container,
|
|
@@ -37,6 +32,5 @@ const ReviewBackground = props => {
|
|
|
37
32
|
})));
|
|
38
33
|
};
|
|
39
34
|
|
|
40
|
-
ReviewBackground.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
41
35
|
export default ReviewBackground;
|
|
42
|
-
//# sourceMappingURL=
|
|
36
|
+
//# sourceMappingURL=background-review.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-review.js","names":["React","style","ReviewBackground","mainContainer","container","interrogationLeft","interrogationRight","recYellow","recRed","recBlue","recGreen","recGreenLight"],"sources":["../../../../src/template/app-review/player/background-review.js"],"sourcesContent":["import React from 'react';\nimport style from './background-review.css';\n\nconst ReviewBackground = () => {\n return (\n <div className={style.mainContainer} tabIndex={-1}>\n <div className={style.container} tabIndex={-1}>\n <span className={style.interrogationLeft} tabIndex={-1}>\n ?\n </span>\n <span className={style.interrogationRight} tabIndex={-1}>\n ?\n </span>\n <div className={style.recYellow} tabIndex={-1} />\n <div className={style.recRed} tabIndex={-1} />\n <div className={style.recBlue} tabIndex={-1} />\n <div className={style.recGreen} tabIndex={-1} />\n <div className={style.recGreenLight} tabIndex={-1} />\n </div>\n </div>\n );\n};\n\nexport default ReviewBackground;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,yBAAlB;;AAEA,MAAMC,gBAAgB,GAAG,MAAM;EAC7B,oBACE;IAAK,SAAS,EAAED,KAAK,CAACE,aAAtB;IAAqC,QAAQ,EAAE,CAAC;EAAhD,gBACE;IAAK,SAAS,EAAEF,KAAK,CAACG,SAAtB;IAAiC,QAAQ,EAAE,CAAC;EAA5C,gBACE;IAAM,SAAS,EAAEH,KAAK,CAACI,iBAAvB;IAA0C,QAAQ,EAAE,CAAC;EAArD,OADF,eAIE;IAAM,SAAS,EAAEJ,KAAK,CAACK,kBAAvB;IAA2C,QAAQ,EAAE,CAAC;EAAtD,OAJF,eAOE;IAAK,SAAS,EAAEL,KAAK,CAACM,SAAtB;IAAiC,QAAQ,EAAE,CAAC;EAA5C,EAPF,eAQE;IAAK,SAAS,EAAEN,KAAK,CAACO,MAAtB;IAA8B,QAAQ,EAAE,CAAC;EAAzC,EARF,eASE;IAAK,SAAS,EAAEP,KAAK,CAACQ,OAAtB;IAA+B,QAAQ,EAAE,CAAC;EAA1C,EATF,eAUE;IAAK,SAAS,EAAER,KAAK,CAACS,QAAtB;IAAgC,QAAQ,EAAE,CAAC;EAA3C,EAVF,eAWE;IAAK,SAAS,EAAET,KAAK,CAACU,aAAtB;IAAqC,QAAQ,EAAE,CAAC;EAAhD,EAXF,CADF,CADF;AAiBD,CAlBD;;AAoBA,eAAeT,gBAAf"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export default PlayerReview;
|
|
2
|
-
declare function PlayerReview({ header, stack,
|
|
2
|
+
declare function PlayerReview({ header, stack, congrats, quitPopin }: {
|
|
3
3
|
header: any;
|
|
4
4
|
stack: any;
|
|
5
|
-
reviewBackgroundAriaLabel: any;
|
|
6
5
|
congrats: any;
|
|
7
6
|
quitPopin: any;
|
|
8
7
|
}): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/index.js"],"names":[],"mappings":";AAWA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/index.js"],"names":[],"mappings":";AAWA;;;;;gBAiCC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import isNil from 'lodash/fp/isNil';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import ReviewBackground from '../../../atom/review-background';
|
|
5
4
|
import ReviewCongrats from '../../../organism/review-congrats';
|
|
6
5
|
import ReviewHeader from '../../../organism/review-header';
|
|
7
6
|
import StackedSlides from '../../../organism/review-stacked-slides';
|
|
8
7
|
import CMPopin from '../../../molecule/cm-popin';
|
|
8
|
+
import ReviewBackground from './background-review';
|
|
9
9
|
import style from './style.css';
|
|
10
10
|
import propTypes from './prop-types';
|
|
11
11
|
|
|
12
12
|
const PlayerReview = ({
|
|
13
13
|
header,
|
|
14
14
|
stack,
|
|
15
|
-
reviewBackgroundAriaLabel,
|
|
16
15
|
congrats,
|
|
17
16
|
quitPopin
|
|
18
17
|
}) => {
|
|
@@ -23,9 +22,7 @@ const PlayerReview = ({
|
|
|
23
22
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24
23
|
key: "player-background-container",
|
|
25
24
|
className: style.playerBackground
|
|
26
|
-
}, /*#__PURE__*/React.createElement(ReviewBackground, {
|
|
27
|
-
"aria-label": reviewBackgroundAriaLabel
|
|
28
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
}, /*#__PURE__*/React.createElement(ReviewBackground, null)), /*#__PURE__*/React.createElement("div", {
|
|
29
26
|
key: "review-header-wrapper",
|
|
30
27
|
className: classnames(style.reviewHeaderContainer, congrats && style.reviewHeaderContainerCongrats)
|
|
31
28
|
}, /*#__PURE__*/React.createElement(ReviewHeader, header)), /*#__PURE__*/React.createElement(StackedSlides, stack), isNil(congrats) ? null : /*#__PURE__*/React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isNil","classnames","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isNil","classnames","ReviewCongrats","ReviewHeader","StackedSlides","CMPopin","ReviewBackground","style","propTypes","PlayerReview","header","stack","congrats","quitPopin","playerReviewContainer","playerBackground","reviewHeaderContainer","reviewHeaderContainerCongrats"],"sources":["../../../../src/template/app-review/player/index.js"],"sourcesContent":["import React from 'react';\nimport isNil from 'lodash/fp/isNil';\nimport classnames from 'classnames';\nimport ReviewCongrats from '../../../organism/review-congrats';\nimport ReviewHeader from '../../../organism/review-header';\nimport StackedSlides from '../../../organism/review-stacked-slides';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBackground from './background-review';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst PlayerReview = ({header, stack, congrats, quitPopin}) => {\n return (\n <div\n key=\"review-player-container\"\n data-name=\"review-player-container\"\n className={style.playerReviewContainer}\n >\n <div key=\"player-background-container\" className={style.playerBackground}>\n <ReviewBackground />\n </div>\n <div\n key=\"review-header-wrapper\"\n className={classnames(\n style.reviewHeaderContainer,\n congrats && style.reviewHeaderContainerCongrats\n )}\n >\n <ReviewHeader {...header} />\n </div>\n <StackedSlides {...stack} />\n {isNil(congrats) ? null : (\n <div className={style.congrats} data-testid=\"congrats-container\">\n <ReviewCongrats {...congrats} />\n </div>\n )}\n\n {isNil(quitPopin) ? null : (\n <div className={style.quitPopin} data-testid=\"quit-popin-container\">\n <CMPopin {...quitPopin} />\n </div>\n )}\n </div>\n );\n};\n\nPlayerReview.propTypes = propTypes;\n\nexport default PlayerReview;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,YAAP,MAAyB,iCAAzB;AACA,OAAOC,aAAP,MAA0B,yCAA1B;AACA,OAAOC,OAAP,MAAoB,4BAApB;AACA,OAAOC,gBAAP,MAA6B,qBAA7B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAAsB,cAAtB;;AAEA,MAAMC,YAAY,GAAG,CAAC;EAACC,MAAD;EAASC,KAAT;EAAgBC,QAAhB;EAA0BC;AAA1B,CAAD,KAA0C;EAC7D,oBACE;IACE,GAAG,EAAC,yBADN;IAEE,aAAU,yBAFZ;IAGE,SAAS,EAAEN,KAAK,CAACO;EAHnB,gBAKE;IAAK,GAAG,EAAC,6BAAT;IAAuC,SAAS,EAAEP,KAAK,CAACQ;EAAxD,gBACE,oBAAC,gBAAD,OADF,CALF,eAQE;IACE,GAAG,EAAC,uBADN;IAEE,SAAS,EAAEd,UAAU,CACnBM,KAAK,CAACS,qBADa,EAEnBJ,QAAQ,IAAIL,KAAK,CAACU,6BAFC;EAFvB,gBAOE,oBAAC,YAAD,EAAkBP,MAAlB,CAPF,CARF,eAiBE,oBAAC,aAAD,EAAmBC,KAAnB,CAjBF,EAkBGX,KAAK,CAACY,QAAD,CAAL,GAAkB,IAAlB,gBACC;IAAK,SAAS,EAAEL,KAAK,CAACK,QAAtB;IAAgC,eAAY;EAA5C,gBACE,oBAAC,cAAD,EAAoBA,QAApB,CADF,CAnBJ,EAwBGZ,KAAK,CAACa,SAAD,CAAL,GAAmB,IAAnB,gBACC;IAAK,SAAS,EAAEN,KAAK,CAACM,SAAtB;IAAiC,eAAY;EAA7C,gBACE,oBAAC,OAAD,EAAaA,SAAb,CADF,CAzBJ,CADF;AAgCD,CAjCD;;AAmCAJ,YAAY,CAACD,SAAb,2CAAyBA,SAAzB;AAEA,eAAeC,YAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/index.native.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/index.native.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AA6B/C,QAAA,MAAM,MAAM,UAAW,iBAAiB,uBA2BvC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, StyleSheet } from 'react-native';
|
|
2
|
+
import { ImageBackground, View, StyleSheet } from 'react-native';
|
|
3
3
|
import StackedSlides from '../../../organism/review-stacked-slides/index.native';
|
|
4
4
|
import ReviewCongrats from '../../../organism/review-congrats/index.native';
|
|
5
5
|
import ReviewHeader from '../../../organism/review-header/index.native';
|
|
@@ -15,6 +15,15 @@ const createStyleSheet = theme => StyleSheet.create({
|
|
|
15
15
|
flexDirection: 'column',
|
|
16
16
|
justifyContent: 'space-between',
|
|
17
17
|
alignItems: 'center'
|
|
18
|
+
},
|
|
19
|
+
backgroundImage: {
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
top: 0,
|
|
22
|
+
bottom: 0,
|
|
23
|
+
left: 0,
|
|
24
|
+
right: 0,
|
|
25
|
+
width: '100%',
|
|
26
|
+
height: '100%'
|
|
18
27
|
}
|
|
19
28
|
});
|
|
20
29
|
|
|
@@ -23,7 +32,8 @@ const Slides = props => {
|
|
|
23
32
|
congrats,
|
|
24
33
|
header,
|
|
25
34
|
stack,
|
|
26
|
-
quitPopin
|
|
35
|
+
quitPopin,
|
|
36
|
+
backgroundImage
|
|
27
37
|
} = props;
|
|
28
38
|
const {
|
|
29
39
|
theme
|
|
@@ -39,9 +49,14 @@ const Slides = props => {
|
|
|
39
49
|
return null;
|
|
40
50
|
}
|
|
41
51
|
|
|
52
|
+
const source = backgroundImage;
|
|
42
53
|
return /*#__PURE__*/React.createElement(View, {
|
|
43
54
|
style: styleSheet.container
|
|
44
|
-
}, /*#__PURE__*/React.createElement(
|
|
55
|
+
}, /*#__PURE__*/React.createElement(ImageBackground, {
|
|
56
|
+
style: styleSheet.backgroundImage,
|
|
57
|
+
source: source,
|
|
58
|
+
resizeMode: "cover"
|
|
59
|
+
}), /*#__PURE__*/React.createElement(ReviewHeader, header), stack ? /*#__PURE__*/React.createElement(StackedSlides, stack) : null, congrats ? /*#__PURE__*/React.createElement(ReviewCongrats, congrats) : null, quitPopin ? /*#__PURE__*/React.createElement(QuitPopinReview, quitPopin) : null);
|
|
45
60
|
};
|
|
46
61
|
|
|
47
62
|
export default Slides;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useEffect","useState","View","StyleSheet","StackedSlides","ReviewCongrats","ReviewHeader","QuitPopinReview","useTemplateContext","createStyleSheet","theme","create","container","flex","width","height","backgroundColor","colors","white","flexDirection","justifyContent","alignItems","Slides","props","congrats","header","stack","quitPopin","styleSheet","setStylesheet","_stylesheet"],"sources":["../../../../src/template/app-review/player/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {View, StyleSheet, ViewStyle} from 'react-native';\nimport StackedSlides from '../../../organism/review-stacked-slides/index.native';\nimport ReviewCongrats from '../../../organism/review-congrats/index.native';\nimport ReviewHeader from '../../../organism/review-header/index.native';\nimport QuitPopinReview from '../../../molecule/cm-popin/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewPlayerProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n width: '100%',\n height: '100%',\n backgroundColor: theme.colors.white,\n flexDirection: 'column',\n justifyContent: 'space-between',\n alignItems: 'center'\n }\n });\n\nconst Slides = (props: ReviewPlayerProps) => {\n const {congrats, header, stack, quitPopin} = props;\n\n const {theme} = useTemplateContext();\n\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.container}>\n <ReviewHeader {...header} />\n {stack ? <StackedSlides {...stack} /> : null}\n {congrats ? <ReviewCongrats {...congrats} /> : null}\n {quitPopin ? <QuitPopinReview {...quitPopin} /> : null}\n </View>\n );\n};\n\nexport default Slides;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,QAA1B,QAAyC,OAAzC;AACA,SAAQC,
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useEffect","useState","ImageBackground","View","StyleSheet","StackedSlides","ReviewCongrats","ReviewHeader","QuitPopinReview","useTemplateContext","createStyleSheet","theme","create","container","flex","width","height","backgroundColor","colors","white","flexDirection","justifyContent","alignItems","backgroundImage","position","top","bottom","left","right","Slides","props","congrats","header","stack","quitPopin","styleSheet","setStylesheet","_stylesheet","source"],"sources":["../../../../src/template/app-review/player/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {ImageBackground, ImageStyle, View, StyleSheet, ViewStyle} from 'react-native';\nimport type {ImageSourcePropType} from 'react-native';\nimport StackedSlides from '../../../organism/review-stacked-slides/index.native';\nimport ReviewCongrats from '../../../organism/review-congrats/index.native';\nimport ReviewHeader from '../../../organism/review-header/index.native';\nimport QuitPopinReview from '../../../molecule/cm-popin/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewPlayerProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n backgroundImage: ImageStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n width: '100%',\n height: '100%',\n backgroundColor: theme.colors.white,\n flexDirection: 'column',\n justifyContent: 'space-between',\n alignItems: 'center'\n },\n backgroundImage: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: '100%',\n height: '100%'\n }\n });\n\nconst Slides = (props: ReviewPlayerProps) => {\n const {congrats, header, stack, quitPopin, backgroundImage} = props;\n\n const {theme} = useTemplateContext();\n\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 const source = backgroundImage as ImageSourcePropType;\n\n return (\n <View style={styleSheet.container}>\n <ImageBackground style={styleSheet.backgroundImage} source={source} resizeMode=\"cover\" />\n <ReviewHeader {...header} />\n {stack ? <StackedSlides {...stack} /> : null}\n {congrats ? <ReviewCongrats {...congrats} /> : null}\n {quitPopin ? <QuitPopinReview {...quitPopin} /> : null}\n </View>\n );\n};\n\nexport default Slides;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,QAA1B,QAAyC,OAAzC;AACA,SAAQC,eAAR,EAAqCC,IAArC,EAA2CC,UAA3C,QAAuE,cAAvE;AAEA,OAAOC,aAAP,MAA0B,sDAA1B;AACA,OAAOC,cAAP,MAA2B,gDAA3B;AACA,OAAOC,YAAP,MAAyB,8CAAzB;AACA,OAAOC,eAAP,MAA4B,yCAA5B;AAEA,SAAQC,kBAAR,QAAiC,qBAAjC;;AAQA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBP,UAAU,CAACQ,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,KAAK,EAAE,MAFE;IAGTC,MA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AJjD,EAKGG,SAAS,gBAAG,oBAAC,eAAD,EAAqBA,SAArB,CAAH,GAAwC,IALpD,CADF;AASD,CA3BD;;AA6BA,eAAeL,MAAf"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import type { ImageSourcePropType } from 'react-native';
|
|
2
3
|
import { CMPopinProps } from '../../../molecule/cm-popin/types';
|
|
3
4
|
import { ReviewCongratsProps } from '../../../organism/review-congrats/prop-types';
|
|
4
5
|
import { HeaderProps } from '../../../organism/review-header/types';
|
|
@@ -423,7 +424,6 @@ declare const propTypes: {
|
|
|
423
424
|
}>>>;
|
|
424
425
|
endReview: PropTypes.Requireable<boolean>;
|
|
425
426
|
}>>;
|
|
426
|
-
reviewBackgroundAriaLabel: PropTypes.Requireable<string>;
|
|
427
427
|
congrats: PropTypes.Requireable<PropTypes.InferProps<{
|
|
428
428
|
'aria-label': PropTypes.Requireable<string>;
|
|
429
429
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -561,7 +561,7 @@ export default propTypes;
|
|
|
561
561
|
export declare type ReviewPlayerProps = {
|
|
562
562
|
header: HeaderProps;
|
|
563
563
|
stack: ReviewStackProps;
|
|
564
|
-
|
|
564
|
+
backgroundImage?: ImageSourcePropType;
|
|
565
565
|
congrats?: ReviewCongratsProps;
|
|
566
566
|
quitPopin?: CMPopinProps;
|
|
567
567
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY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ypes from 'prop-types';
|
|
4
4
|
import ReviewCongratsPropTypes from '../../../organism/review-congrats/prop-types';
|
|
5
|
-
import ReviewBackgroundPropTypes from '../../../atom/review-background/prop-types';
|
|
6
5
|
import ReviewHeaderPropTypes from '../../../organism/review-header/types';
|
|
7
6
|
import CmPopin from '../../../molecule/cm-popin';
|
|
8
7
|
import StackedSlidesPropTypes from '../../../organism/review-stacked-slides/prop-types';
|
|
9
8
|
const propTypes = {
|
|
10
9
|
header: PropTypes.shape(ReviewHeaderPropTypes),
|
|
11
10
|
stack: PropTypes.shape(StackedSlidesPropTypes),
|
|
12
|
-
reviewBackgroundAriaLabel: ReviewBackgroundPropTypes['aria-label'],
|
|
13
11
|
congrats: PropTypes.shape(ReviewCongratsPropTypes),
|
|
14
12
|
quitPopin: PropTypes.shape(_extends({}, CmPopin.propTypes))
|
|
15
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["PropTypes","ReviewCongratsPropTypes","
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["PropTypes","ReviewCongratsPropTypes","ReviewHeaderPropTypes","CmPopin","StackedSlidesPropTypes","propTypes","header","shape","stack","congrats","quitPopin"],"sources":["../../../../src/template/app-review/player/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport type {ImageSourcePropType} from 'react-native';\nimport {CMPopinProps} from '../../../molecule/cm-popin/types';\nimport ReviewCongratsPropTypes, {\n ReviewCongratsProps\n} from '../../../organism/review-congrats/prop-types';\n\nimport ReviewHeaderPropTypes, {HeaderProps} from '../../../organism/review-header/types';\nimport CmPopin from '../../../molecule/cm-popin';\nimport StackedSlidesPropTypes, {\n ReviewStackProps\n} from '../../../organism/review-stacked-slides/prop-types';\n\nconst propTypes = {\n header: PropTypes.shape(ReviewHeaderPropTypes),\n stack: PropTypes.shape(StackedSlidesPropTypes),\n congrats: PropTypes.shape(ReviewCongratsPropTypes),\n quitPopin: PropTypes.shape({...CmPopin.propTypes})\n};\n\nexport default propTypes;\n\nexport type ReviewPlayerProps = {\n header: HeaderProps;\n stack: ReviewStackProps;\n backgroundImage?: ImageSourcePropType;\n congrats?: ReviewCongratsProps;\n quitPopin?: CMPopinProps;\n};\n"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAGA,OAAOC,uBAAP,MAEO,8CAFP;AAIA,OAAOC,qBAAP,MAAiD,uCAAjD;AACA,OAAOC,OAAP,MAAoB,4BAApB;AACA,OAAOC,sBAAP,MAEO,oDAFP;AAIA,MAAMC,SAAS,GAAG;EAChBC,MAAM,EAAEN,SAAS,CAACO,KAAV,CAAgBL,qBAAhB,CADQ;EAEhBM,KAAK,EAAER,SAAS,CAACO,KAAV,CAAgBH,sBAAhB,CAFS;EAGhBK,QAAQ,EAAET,SAAS,CAACO,KAAV,CAAgBN,uBAAhB,CAHM;EAIhBS,SAAS,EAAEV,SAAS,CAACO,KAAV,cAAoBJ,OAAO,CAACE,SAA5B;AAJK,CAAlB;AAOA,eAAeA,SAAf"}
|
|
@@ -428,7 +428,6 @@ declare const propTypes: {
|
|
|
428
428
|
}>>>;
|
|
429
429
|
endReview: PropTypes.Requireable<boolean>;
|
|
430
430
|
}>>;
|
|
431
|
-
reviewBackgroundAriaLabel: PropTypes.Requireable<string>;
|
|
432
431
|
congrats: PropTypes.Requireable<PropTypes.InferProps<{
|
|
433
432
|
'aria-label': PropTypes.Requireable<string>;
|
|
434
433
|
'data-name': PropTypes.Requireable<string>;
|