@coorpacademy/components 11.5.2 → 11.5.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.native.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAC,eAAe,EAAW,MAAM,cAAc,CAAC;AA8FvD,QAAA,MAAM,UAAU,UAAW,eAAe,uBA0CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.native.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAC,eAAe,EAAW,MAAM,cAAc,CAAC;AAoGvD,QAAA,MAAM,UAAU,UAAW,eAAe,uBA4CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
2
2
  import { View, StyleSheet, Text } from 'react-native';
3
3
  import { NovaLineSelectionCursorsCursorArrowTarget as TargetIcon, NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionMarkIcon, NovaSolidStatusCheckCircle2 as CheckCircle2Icon, NovaCompositionCoorpacademyVoteHeartOutline as HeartIcon } from '@coorpacademy/nova-icons';
4
4
  import { useTemplateContext } from '../../template/app-review/template-context';
5
- import { HEADER_HEIGHT } from '../../organism/header-v2/index.native';
6
5
  import Touchable from '../../hoc/touchable/index.native';
7
6
  import Html from '../html/index.native';
8
7
 
@@ -12,7 +11,8 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
12
11
  justifyContent: 'space-between',
13
12
  flex: 1,
14
13
  padding: 20,
15
- paddingTop: HEADER_HEIGHT + 20
14
+ paddingTop: 20,
15
+ paddingBottom: 100
16
16
  },
17
17
  title: {
18
18
  height: 72,
@@ -21,13 +21,17 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
21
21
  fontWeight: theme.fontWeight.bold,
22
22
  lineHeight: 36,
23
23
  color: theme.colors.text.primary,
24
- marginBottom: theme.spacing.small
24
+ marginBottom: 32
25
25
  },
26
26
  text: {
27
27
  fontSize: theme.fontSize.large,
28
28
  color: theme.colors.text.primary,
29
- opacity: 0.7,
30
- marginBottom: theme.spacing.small
29
+ opacity: 0.7
30
+ },
31
+ tips: {
32
+ marginTop: 32,
33
+ height: 300,
34
+ justifyContent: 'center'
31
35
  },
32
36
  tip: {
33
37
  flexDirection: 'row',
@@ -50,8 +54,8 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
50
54
  button: {
51
55
  height: 52,
52
56
  borderRadius: 7,
53
- marginBottom: theme.spacing.large,
54
- marginTop: theme.spacing.large,
57
+ marginBottom: 32,
58
+ marginTop: 16,
55
59
  backgroundColor: brandTheme?.colors?.primary || theme.colors.cta,
56
60
  justifyContent: 'center'
57
61
  },
@@ -123,7 +127,9 @@ const Onboarding = props => {
123
127
  style: styleSheet.title
124
128
  }, translations.appReview.presentation.title), /*#__PURE__*/React.createElement(Html, {
125
129
  style: styleSheet.text
126
- }, translations.appReview.presentation.text), /*#__PURE__*/React.createElement(Tip, {
130
+ }, translations.appReview.presentation.text), /*#__PURE__*/React.createElement(View, {
131
+ style: styleSheet.tips
132
+ }, /*#__PURE__*/React.createElement(Tip, {
127
133
  Icon: TargetIcon,
128
134
  text: translations.appReview.presentation.labelList.skills.text
129
135
  }), /*#__PURE__*/React.createElement(Tip, {
@@ -135,7 +141,7 @@ const Onboarding = props => {
135
141
  }), /*#__PURE__*/React.createElement(Tip, {
136
142
  Icon: CheckCircle2Icon,
137
143
  text: translations.appReview.presentation.labelList.allright.text
138
- }), /*#__PURE__*/React.createElement(Touchable, {
144
+ })), /*#__PURE__*/React.createElement(Touchable, {
139
145
  testID: "button-quit-revision-onboarding",
140
146
  onPress: onPress,
141
147
  analyticsID: "button-start",
@@ -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","HEADER_HEIGHT","Touchable","Html","createStyleSheet","brandTheme","theme","create","container","backgroundColor","colors","white","justifyContent","flex","padding","paddingTop","title","height","width","fontSize","xxlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","small","large","opacity","tip","flexDirection","overflow","alignItems","borderRadius","gray","extra","marginTop","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 {HEADER_HEIGHT} from '../../organism/header-v2/index.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 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: HEADER_HEIGHT + 20\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: theme.spacing.small\n },\n text: {\n fontSize: theme.fontSize.large,\n color: theme.colors.text.primary,\n opacity: 0.7,\n marginBottom: theme.spacing.small\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: theme.spacing.large,\n marginTop: theme.spacing.large,\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 <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 <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,SAAQC,aAAR,QAA4B,uCAA5B;AACA,OAAOC,SAAP,MAAsB,kCAAtB;AACA,OAAOC,IAAP,MAAiB,sBAAjB;;AAeA,MAAMC,gBAAgB,GAAG,CAACC,UAAD,EAAoBC,KAApB,KACvBhB,UAAU,CAACiB,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,EAAEd,aAAa,GAAG;EALnB,CADK;EAQhBe,KAAK,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,KAA9C,CAAoDtC;EAAhF,EATF,eAUE,oBAAC,GAAD;IACE,IAAI,EAAE5B,gBADR;IAEE,IAAI,EAAE2D,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCC,SAApC,CAA8CI,QAA9C,CAAuDvC;EAF/D,EAVF,eAcE,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,CAdF,CADF;AAyBD,CA1CD;;AA4CA,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: 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,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Ab,CAAuBC,YAAvB,CAAoClC,IAAnE,CAFF,eAIE,oBAAC,IAAD;IAAM,KAAK,EAAE0B,UAAU,CAACrB;EAAxB,gBACE,oBAAC,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"}
@@ -0,0 +1,45 @@
1
+ .container {
2
+ width: 300px;
3
+ height: 300px;
4
+ position: relative;
5
+ perspective: 800px;
6
+ }
7
+
8
+ .square {
9
+ position: absolute;
10
+ width: 100%;
11
+ height: 100%;
12
+ transform-style: preserve-3d;
13
+ transition: transform 1s;
14
+ border: 1px solid black;
15
+ top: 100px;
16
+ left: 100px;
17
+ }
18
+
19
+ .flipped > .square {
20
+ transform: rotateY(180deg);
21
+ }
22
+
23
+ .front,
24
+ .back {
25
+ margin: 0;
26
+ display: block;
27
+ position: absolute;
28
+ width: 100%;
29
+ height: 100%;
30
+ backface-visibility: hidden;
31
+ }
32
+
33
+ .front {
34
+ font-size: 20px;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ flex-flow: column;
39
+ }
40
+
41
+ .back {
42
+ background-image: url(http://img.voi.pmdstatic.net/fit/http.3A.2F.2Fprd2-bone-image.2Es3-website-eu-west-1.2Eamazonaws.2Ecom.2Fprismamedia_people.2F2017.2F06.2F30.2Fa9a1132c-920d-4d0d-af0c-7c686d72dfe5.2Ejpeg/380x285/quality/80/jacques-chirac.jpg);
43
+ background-size: cover;
44
+ transform: rotateY(180deg);
45
+ }
@@ -0,0 +1,211 @@
1
+ # Snapshot report for `src/molecule/select-multiple/test/index.js`
2
+
3
+ The actual snapshot is saved in `index.js.snap`.
4
+
5
+ Generated by [AVA](https://ava.li).
6
+
7
+ ## should shallow render when select is opened
8
+
9
+ > Snapshot 1
10
+
11
+ ShallowWrapper {
12
+ <div
13
+ className="select-multiple__default variables__defaultText"
14
+ >
15
+ <span
16
+ className="select-multiple__title"
17
+ >
18
+ Learning Path:
19
+ </span>
20
+ <div
21
+ className="select-multiple__select"
22
+ onClick={Function {}}
23
+ title="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut"
24
+ >
25
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
26
+ <SvgComponent⍟
27
+ className="select-multiple__arrow select-multiple__down"
28
+ color={undefined}
29
+ />
30
+ </div>
31
+ <div
32
+ className="select-multiple__activeChoices"
33
+ >
34
+ <ul
35
+ className="select-multiple__list"
36
+ >
37
+ <li
38
+ className="select-multiple__choice"
39
+ key="0"
40
+ >
41
+ <TitledCheckbox⍟
42
+ background={undefined}
43
+ choice={
44
+ {
45
+ i: 0,
46
+ name: 'Digital',
47
+ selected: false,
48
+ value: 'digital',
49
+ }
50
+ }
51
+ onToggle={Function {}}
52
+ />
53
+ </li>
54
+ <li
55
+ className="select-multiple__choice"
56
+ key="1"
57
+ >
58
+ <TitledCheckbox⍟
59
+ background={undefined}
60
+ choice={
61
+ {
62
+ i: 1,
63
+ name: 'Esprit du temps',
64
+ selected: false,
65
+ value: 'espritDuTemps',
66
+ }
67
+ }
68
+ onToggle={Function {}}
69
+ />
70
+ </li>
71
+ <li
72
+ className="select-multiple__choice"
73
+ key="2"
74
+ >
75
+ <TitledCheckbox⍟
76
+ background={undefined}
77
+ choice={
78
+ {
79
+ i: 2,
80
+ name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut',
81
+ selected: true,
82
+ value: 'loremIpsum',
83
+ }
84
+ }
85
+ onToggle={Function {}}
86
+ />
87
+ </li>
88
+ <li
89
+ className="select-multiple__choice"
90
+ key="3"
91
+ >
92
+ <TitledCheckbox⍟
93
+ background={undefined}
94
+ choice={
95
+ {
96
+ i: 3,
97
+ name: 'Le monde du projet',
98
+ selected: false,
99
+ value: 'project',
100
+ }
101
+ }
102
+ onToggle={Function {}}
103
+ />
104
+ </li>
105
+ </ul>
106
+ </div>
107
+ </div>,
108
+ }
109
+
110
+ ## should shallow render with default props
111
+
112
+ > Snapshot 1
113
+
114
+ ShallowWrapper {
115
+ <div
116
+ className="select-multiple__default variables__defaultText"
117
+ >
118
+ <span
119
+ className="select-multiple__title"
120
+ >
121
+ Learning Path:
122
+ </span>
123
+ <div
124
+ className="select-multiple__select"
125
+ onClick={Function {}}
126
+ title="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut"
127
+ >
128
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
129
+ <SvgComponent⍟
130
+ className="select-multiple__arrow"
131
+ color={undefined}
132
+ />
133
+ </div>
134
+ <div
135
+ className="select-multiple__choices"
136
+ >
137
+ <ul
138
+ className="select-multiple__list"
139
+ >
140
+ <li
141
+ className="select-multiple__choice"
142
+ key="0"
143
+ >
144
+ <TitledCheckbox⍟
145
+ background={undefined}
146
+ choice={
147
+ {
148
+ i: 0,
149
+ name: 'Digital',
150
+ selected: false,
151
+ value: 'digital',
152
+ }
153
+ }
154
+ onToggle={Function {}}
155
+ />
156
+ </li>
157
+ <li
158
+ className="select-multiple__choice"
159
+ key="1"
160
+ >
161
+ <TitledCheckbox⍟
162
+ background={undefined}
163
+ choice={
164
+ {
165
+ i: 1,
166
+ name: 'Esprit du temps',
167
+ selected: false,
168
+ value: 'espritDuTemps',
169
+ }
170
+ }
171
+ onToggle={Function {}}
172
+ />
173
+ </li>
174
+ <li
175
+ className="select-multiple__choice"
176
+ key="2"
177
+ >
178
+ <TitledCheckbox⍟
179
+ background={undefined}
180
+ choice={
181
+ {
182
+ i: 2,
183
+ name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut',
184
+ selected: true,
185
+ value: 'loremIpsum',
186
+ }
187
+ }
188
+ onToggle={Function {}}
189
+ />
190
+ </li>
191
+ <li
192
+ className="select-multiple__choice"
193
+ key="3"
194
+ >
195
+ <TitledCheckbox⍟
196
+ background={undefined}
197
+ choice={
198
+ {
199
+ i: 3,
200
+ name: 'Le monde du projet',
201
+ selected: false,
202
+ value: 'project',
203
+ }
204
+ }
205
+ onToggle={Function {}}
206
+ />
207
+ </li>
208
+ </ul>
209
+ </div>
210
+ </div>,
211
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AA0B/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBA4C7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAyB/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBA4C7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import { Text, View, StyleSheet } from 'react-native';
3
- import { HEADER_HEIGHT } from '../../../organism/header-v2/index.native';
4
3
  import ReviewNoSkills from '../../../organism/review-no-skills/index.native';
5
4
  import ReviewListSkills from '../../../organism/review-skills/index.native';
6
5
  import { useTemplateContext } from '../template-context';
@@ -10,7 +9,6 @@ const createStyleSheet = theme => StyleSheet.create({
10
9
  flex: 1,
11
10
  padding: 20,
12
11
  width: '100%',
13
- paddingTop: HEADER_HEIGHT + 20,
14
12
  backgroundColor: theme.colors.white
15
13
  },
16
14
  title: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["React","useState","useEffect","Text","View","StyleSheet","HEADER_HEIGHT","ReviewNoSkills","ReviewListSkills","useTemplateContext","createStyleSheet","theme","create","container","flex","padding","width","paddingTop","backgroundColor","colors","white","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","ReviewSkills","props","ariaLabel","isLoading","isLoadingAriaLabel","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","styleSheet","setStylesheet","_stylesheet","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {Text, View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport {HEADER_HEIGHT} from '../../../organism/header-v2/index.native';\nimport ReviewNoSkills from '../../../organism/review-no-skills/index.native';\nimport ReviewListSkills from '../../../organism/review-skills/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewSkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n width: '100%',\n paddingTop: HEADER_HEIGHT + 20,\n backgroundColor: theme.colors.white\n },\n title: {\n fontSize: theme.fontSize.xlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 28,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.base,\n marginTop: theme.spacing.small\n }\n });\n\nconst ReviewSkills = (props: ReviewSkillsProps) => {\n const {\n 'aria-label': ariaLabel,\n title,\n isLoading,\n isLoadingAriaLabel,\n listSkills,\n titleNoSkills,\n textNoSkills,\n iconSkillAriaLabel\n } = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\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} accessibilityLabel={ariaLabel}>\n <Text style={styleSheet.title}>{title}</Text>\n {isLoading ? (\n <Text accessibilityLabel={isLoadingAriaLabel}>Loading</Text>\n ) : (\n <View>\n {!listSkills || listSkills.length === 0 ? (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n ) : (\n <ReviewListSkills listSkills={listSkills} />\n )}\n </View>\n )}\n </View>\n );\n};\n\nexport default ReviewSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,SAAzB,QAAyC,OAAzC;AACA,SAAQC,IAAR,EAAcC,IAAd,EAAoBC,UAApB,QAA2D,cAA3D;AACA,SAAQC,aAAR,QAA4B,0CAA5B;AACA,OAAOC,cAAP,MAA2B,iDAA3B;AACA,OAAOC,gBAAP,MAA6B,8CAA7B;AAEA,SAAQC,kBAAR,QAAiC,qBAAjC;;AAQA,MAAMC,gBAAgB,GAAIC,KAA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AM,KAAK,EAAEQ,UAAU,CAACxB;EAAxB,GAAgCA,KAAhC,CADF,EAEGiB,SAAS,gBACR,oBAAC,IAAD;IAAM,kBAAkB,EAAEC;EAA1B,aADQ,gBAGR,oBAAC,IAAD,QACG,CAACC,UAAD,IAAeA,UAAU,CAACQ,MAAX,KAAsB,CAArC,gBACC,oBAAC,cAAD;IACE,aAAa,EAAEP,aADjB;IAEE,YAAY,EAAEC,YAFhB;IAGE,kBAAkB,EAAEC;EAHtB,EADD,gBAOC,oBAAC,gBAAD;IAAkB,UAAU,EAAEH;EAA9B,EARJ,CALJ,CADF;AAoBD,CA5CD;;AA8CA,eAAeL,YAAf"}
1
+ {"version":3,"file":"index.native.js","names":["React","useState","useEffect","Text","View","StyleSheet","ReviewNoSkills","ReviewListSkills","useTemplateContext","createStyleSheet","theme","create","container","flex","padding","width","backgroundColor","colors","white","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","ReviewSkills","props","ariaLabel","isLoading","isLoadingAriaLabel","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","styleSheet","setStylesheet","_stylesheet","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {Text, View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport ReviewNoSkills from '../../../organism/review-no-skills/index.native';\nimport ReviewListSkills from '../../../organism/review-skills/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewSkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n width: '100%',\n backgroundColor: theme.colors.white\n },\n title: {\n fontSize: theme.fontSize.xlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 28,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.base,\n marginTop: theme.spacing.small\n }\n });\n\nconst ReviewSkills = (props: ReviewSkillsProps) => {\n const {\n 'aria-label': ariaLabel,\n title,\n isLoading,\n isLoadingAriaLabel,\n listSkills,\n titleNoSkills,\n textNoSkills,\n iconSkillAriaLabel\n } = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\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} accessibilityLabel={ariaLabel}>\n <Text style={styleSheet.title}>{title}</Text>\n {isLoading ? (\n <Text accessibilityLabel={isLoadingAriaLabel}>Loading</Text>\n ) : (\n <View>\n {!listSkills || listSkills.length === 0 ? (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n ) : (\n <ReviewListSkills listSkills={listSkills} />\n )}\n </View>\n )}\n </View>\n );\n};\n\nexport default ReviewSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,SAAzB,QAAyC,OAAzC;AACA,SAAQC,IAAR,EAAcC,IAAd,EAAoBC,UAApB,QAA2D,cAA3D;AACA,OAAOC,cAAP,MAA2B,iDAA3B;AACA,OAAOC,gBAAP,MAA6B,8CAA7B;AAEA,SAAQC,kBAAR,QAAiC,qBAAjC;;AAQA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBL,UAAU,CAACM,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,OAAO,EAAE,EAFA;IAGTC,KAAK,EAAE,MAHE;IAITC,eAAe,EAAEN,KAAK,CAACO,MAAN,CAAaC;EAJrB,CADK;EAOhBC,KAAK,EAAE;IACLC,QAAQ,EAAEV,KAAK,CAACU,QAAN,CAAeC,MADpB;IAELC,UAAU,EAAE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C,oBAAC,gBAAD;IAAkB,UAAU,EAAEH;EAA9B,EARJ,CALJ,CADF;AAoBD,CA5CD;;AA8CA,eAAeL,YAAf"}
@@ -0,0 +1,34 @@
1
+ [{
2
+ "label": "1mn",
3
+ "value": 1
4
+ }, {
5
+ "label": "2mn",
6
+ "value": 2
7
+ }, {
8
+ "label": "3mn",
9
+ "value": 3
10
+ }, {
11
+ "label": "5mn",
12
+ "value": 5
13
+ }, {
14
+ "label": "10mn",
15
+ "value": 10
16
+ }, {
17
+ "label": "15mn",
18
+ "value": 15
19
+ }, {
20
+ "label": "30mn",
21
+ "value": 30
22
+ }, {
23
+ "label": "45mn",
24
+ "value": 45
25
+ }, {
26
+ "label": "1h",
27
+ "value": 60
28
+ }, {
29
+ "label": "2h",
30
+ "value": 120
31
+ }, {
32
+ "label": "2h+",
33
+ "value": 121
34
+ }]
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.native.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAC,eAAe,EAAW,MAAM,cAAc,CAAC;AA8FvD,QAAA,MAAM,UAAU,UAAW,eAAe,uBA0CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.native.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAC,eAAe,EAAW,MAAM,cAAc,CAAC;AAoGvD,QAAA,MAAM,UAAU,UAAW,eAAe,uBA4CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -11,11 +11,9 @@ var _novaIcons = require("@coorpacademy/nova-icons");
11
11
 
12
12
  var _templateContext = require("../../template/app-review/template-context");
13
13
 
14
- var _index = require("../../organism/header-v2/index.native");
14
+ var _index = _interopRequireDefault(require("../../hoc/touchable/index.native"));
15
15
 
16
- var _index2 = _interopRequireDefault(require("../../hoc/touchable/index.native"));
17
-
18
- var _index3 = _interopRequireDefault(require("../html/index.native"));
16
+ var _index2 = _interopRequireDefault(require("../html/index.native"));
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
19
 
@@ -29,7 +27,8 @@ const createStyleSheet = (brandTheme, theme) => _reactNative.StyleSheet.create({
29
27
  justifyContent: 'space-between',
30
28
  flex: 1,
31
29
  padding: 20,
32
- paddingTop: _index.HEADER_HEIGHT + 20
30
+ paddingTop: 20,
31
+ paddingBottom: 100
33
32
  },
34
33
  title: {
35
34
  height: 72,
@@ -38,13 +37,17 @@ const createStyleSheet = (brandTheme, theme) => _reactNative.StyleSheet.create({
38
37
  fontWeight: theme.fontWeight.bold,
39
38
  lineHeight: 36,
40
39
  color: theme.colors.text.primary,
41
- marginBottom: theme.spacing.small
40
+ marginBottom: 32
42
41
  },
43
42
  text: {
44
43
  fontSize: theme.fontSize.large,
45
44
  color: theme.colors.text.primary,
46
- opacity: 0.7,
47
- marginBottom: theme.spacing.small
45
+ opacity: 0.7
46
+ },
47
+ tips: {
48
+ marginTop: 32,
49
+ height: 300,
50
+ justifyContent: 'center'
48
51
  },
49
52
  tip: {
50
53
  flexDirection: 'row',
@@ -67,8 +70,8 @@ const createStyleSheet = (brandTheme, theme) => _reactNative.StyleSheet.create({
67
70
  button: {
68
71
  height: 52,
69
72
  borderRadius: 7,
70
- marginBottom: theme.spacing.large,
71
- marginTop: theme.spacing.large,
73
+ marginBottom: 32,
74
+ marginTop: 16,
72
75
  backgroundColor: brandTheme?.colors?.primary || theme.colors.cta,
73
76
  justifyContent: 'center'
74
77
  },
@@ -136,11 +139,13 @@ const Onboarding = props => {
136
139
 
137
140
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
138
141
  style: styleSheet.container
139
- }, /*#__PURE__*/_react.default.createElement(_index3.default, {
142
+ }, /*#__PURE__*/_react.default.createElement(_index2.default, {
140
143
  style: styleSheet.title
141
- }, translations.appReview.presentation.title), /*#__PURE__*/_react.default.createElement(_index3.default, {
144
+ }, translations.appReview.presentation.title), /*#__PURE__*/_react.default.createElement(_index2.default, {
142
145
  style: styleSheet.text
143
- }, translations.appReview.presentation.text), /*#__PURE__*/_react.default.createElement(Tip, {
146
+ }, translations.appReview.presentation.text), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
147
+ style: styleSheet.tips
148
+ }, /*#__PURE__*/_react.default.createElement(Tip, {
144
149
  Icon: _novaIcons.NovaLineSelectionCursorsCursorArrowTarget,
145
150
  text: translations.appReview.presentation.labelList.skills.text
146
151
  }), /*#__PURE__*/_react.default.createElement(Tip, {
@@ -152,7 +157,7 @@ const Onboarding = props => {
152
157
  }), /*#__PURE__*/_react.default.createElement(Tip, {
153
158
  Icon: _novaIcons.NovaSolidStatusCheckCircle2,
154
159
  text: translations.appReview.presentation.labelList.allright.text
155
- }), /*#__PURE__*/_react.default.createElement(_index2.default, {
160
+ })), /*#__PURE__*/_react.default.createElement(_index.default, {
156
161
  testID: "button-quit-revision-onboarding",
157
162
  onPress: onPress,
158
163
  analyticsID: "button-start",
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["createStyleSheet","brandTheme","theme","StyleSheet","create","container","backgroundColor","colors","white","justifyContent","flex","padding","paddingTop","HEADER_HEIGHT","title","height","width","fontSize","xxlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","small","large","opacity","tip","flexDirection","overflow","alignItems","borderRadius","gray","extra","marginTop","micro","tipText","icon","margin","button","cta","buttonText","alignSelf","Tip","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","Icon","useEffect","_stylesheet","Onboarding","translations","onPress","appReview","presentation","TargetIcon","labelList","skills","QuestionMarkIcon","questions","HeartIcon","lifes","CheckCircle2Icon","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 {HEADER_HEIGHT} from '../../organism/header-v2/index.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 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: HEADER_HEIGHT + 20\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: theme.spacing.small\n },\n text: {\n fontSize: theme.fontSize.large,\n color: theme.colors.text.primary,\n opacity: 0.7,\n marginBottom: theme.spacing.small\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: theme.spacing.large,\n marginTop: theme.spacing.large,\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 <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 <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;;AACA;;AACA;;AAOA;;AAEA;;AACA;;AACA;;;;;;;;AAeA,MAAMA,gBAAgB,GAAG,CAACC,UAAD,EAAoBC,KAApB,KACvBC,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,GAAD;IACE,IAAI,EAAEyC,0DADR;IAEE,IAAI,EAAEP,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CG,SAA9C,CAAwD1C;EAFhE,EALF,eASE,6BAAC,GAAD;IAAK,IAAI,EAAE2C,sDAAX;IAAsB,IAAI,EAAET,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CK,KAA9C,CAAoD5C;EAAhF,EATF,eAUE,6BAAC,GAAD;IACE,IAAI,EAAE6C,sCADR;IAEE,IAAI,EAAEX,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CO,QAA9C,CAAuD9C;EAF/D,EAVF,eAcE,6BAAC,eAAD;IACE,MAAM,EAAC,iCADT;IAEE,OAAO,EAAEmC,OAFX;IAGE,WAAW,EAAC,cAHd;IAIE,KAAK,EAAER,UAAU,CAACR;EAJpB,gBAME,6BAAC,iBAAD;IAAM,KAAK,EAAEQ,UAAU,CAACN;EAAxB,GAAqCa,YAAY,CAACa,EAAlD,CANF,CAdF,CADF;AAyBD,CA1CD;;eA4Ced,U"}
1
+ {"version":3,"file":"index.native.js","names":["createStyleSheet","brandTheme","theme","StyleSheet","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","useTemplateContext","styleSheet","setStylesheet","useState","Icon","useEffect","_stylesheet","Onboarding","translations","onPress","appReview","presentation","TargetIcon","labelList","skills","QuestionMarkIcon","questions","HeartIcon","lifes","CheckCircle2Icon","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;;AACA;;AACA;;AAOA;;AAEA;;AACA;;;;;;;;AAgBA,MA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b,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CC,MAA9C,CAAqDxC;EAAlF,EADF,eAEE,6BAAC,GAAD;IACE,IAAI,EAAEyC,0DADR;IAEE,IAAI,EAAEP,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CG,SAA9C,CAAwD1C;EAFhE,EAFF,eAME,6BAAC,GAAD;IAAK,IAAI,EAAE2C,sDAAX;IAAsB,IAAI,EAAET,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CK,KAA9C,CAAoD5C;EAAhF,EANF,eAOE,6BAAC,GAAD;IACE,IAAI,EAAE6C,sCADR;IAEE,IAAI,EAAEX,YAAY,CAACE,SAAb,CAAuBC,YAAvB,CAAoCE,SAApC,CAA8CO,QAA9C,CAAuD9C;EAF/D,EAPF,CAJF,eAgBE,6BAAC,cAAD;IACE,MAAM,EAAC,iCADT;IAEE,OAAO,EAAEmC,OAFX;IAGE,WAAW,EAAC,cAHd;IAIE,KAAK,EAAER,UAAU,CAACR;EAJpB,gBAME,6BAAC,iBAAD;IAAM,KAAK,EAAEQ,UAAU,CAACN;EAAxB,GAAqCa,YAAY,CAACa,EAAlD,CANF,CAhBF,CADF;AA2BD,CA5CD;;eA8Ced,U"}
@@ -0,0 +1,45 @@
1
+ .container {
2
+ width: 300px;
3
+ height: 300px;
4
+ position: relative;
5
+ perspective: 800px;
6
+ }
7
+
8
+ .square {
9
+ position: absolute;
10
+ width: 100%;
11
+ height: 100%;
12
+ transform-style: preserve-3d;
13
+ transition: transform 1s;
14
+ border: 1px solid black;
15
+ top: 100px;
16
+ left: 100px;
17
+ }
18
+
19
+ .flipped > .square {
20
+ transform: rotateY(180deg);
21
+ }
22
+
23
+ .front,
24
+ .back {
25
+ margin: 0;
26
+ display: block;
27
+ position: absolute;
28
+ width: 100%;
29
+ height: 100%;
30
+ backface-visibility: hidden;
31
+ }
32
+
33
+ .front {
34
+ font-size: 20px;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ flex-flow: column;
39
+ }
40
+
41
+ .back {
42
+ background-image: url(http://img.voi.pmdstatic.net/fit/http.3A.2F.2Fprd2-bone-image.2Es3-website-eu-west-1.2Eamazonaws.2Ecom.2Fprismamedia_people.2F2017.2F06.2F30.2Fa9a1132c-920d-4d0d-af0c-7c686d72dfe5.2Ejpeg/380x285/quality/80/jacques-chirac.jpg);
43
+ background-size: cover;
44
+ transform: rotateY(180deg);
45
+ }
@@ -0,0 +1,211 @@
1
+ # Snapshot report for `src/molecule/select-multiple/test/index.js`
2
+
3
+ The actual snapshot is saved in `index.js.snap`.
4
+
5
+ Generated by [AVA](https://ava.li).
6
+
7
+ ## should shallow render when select is opened
8
+
9
+ > Snapshot 1
10
+
11
+ ShallowWrapper {
12
+ <div
13
+ className="select-multiple__default variables__defaultText"
14
+ >
15
+ <span
16
+ className="select-multiple__title"
17
+ >
18
+ Learning Path:
19
+ </span>
20
+ <div
21
+ className="select-multiple__select"
22
+ onClick={Function {}}
23
+ title="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut"
24
+ >
25
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
26
+ <SvgComponent⍟
27
+ className="select-multiple__arrow select-multiple__down"
28
+ color={undefined}
29
+ />
30
+ </div>
31
+ <div
32
+ className="select-multiple__activeChoices"
33
+ >
34
+ <ul
35
+ className="select-multiple__list"
36
+ >
37
+ <li
38
+ className="select-multiple__choice"
39
+ key="0"
40
+ >
41
+ <TitledCheckbox⍟
42
+ background={undefined}
43
+ choice={
44
+ {
45
+ i: 0,
46
+ name: 'Digital',
47
+ selected: false,
48
+ value: 'digital',
49
+ }
50
+ }
51
+ onToggle={Function {}}
52
+ />
53
+ </li>
54
+ <li
55
+ className="select-multiple__choice"
56
+ key="1"
57
+ >
58
+ <TitledCheckbox⍟
59
+ background={undefined}
60
+ choice={
61
+ {
62
+ i: 1,
63
+ name: 'Esprit du temps',
64
+ selected: false,
65
+ value: 'espritDuTemps',
66
+ }
67
+ }
68
+ onToggle={Function {}}
69
+ />
70
+ </li>
71
+ <li
72
+ className="select-multiple__choice"
73
+ key="2"
74
+ >
75
+ <TitledCheckbox⍟
76
+ background={undefined}
77
+ choice={
78
+ {
79
+ i: 2,
80
+ name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut',
81
+ selected: true,
82
+ value: 'loremIpsum',
83
+ }
84
+ }
85
+ onToggle={Function {}}
86
+ />
87
+ </li>
88
+ <li
89
+ className="select-multiple__choice"
90
+ key="3"
91
+ >
92
+ <TitledCheckbox⍟
93
+ background={undefined}
94
+ choice={
95
+ {
96
+ i: 3,
97
+ name: 'Le monde du projet',
98
+ selected: false,
99
+ value: 'project',
100
+ }
101
+ }
102
+ onToggle={Function {}}
103
+ />
104
+ </li>
105
+ </ul>
106
+ </div>
107
+ </div>,
108
+ }
109
+
110
+ ## should shallow render with default props
111
+
112
+ > Snapshot 1
113
+
114
+ ShallowWrapper {
115
+ <div
116
+ className="select-multiple__default variables__defaultText"
117
+ >
118
+ <span
119
+ className="select-multiple__title"
120
+ >
121
+ Learning Path:
122
+ </span>
123
+ <div
124
+ className="select-multiple__select"
125
+ onClick={Function {}}
126
+ title="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut"
127
+ >
128
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
129
+ <SvgComponent⍟
130
+ className="select-multiple__arrow"
131
+ color={undefined}
132
+ />
133
+ </div>
134
+ <div
135
+ className="select-multiple__choices"
136
+ >
137
+ <ul
138
+ className="select-multiple__list"
139
+ >
140
+ <li
141
+ className="select-multiple__choice"
142
+ key="0"
143
+ >
144
+ <TitledCheckbox⍟
145
+ background={undefined}
146
+ choice={
147
+ {
148
+ i: 0,
149
+ name: 'Digital',
150
+ selected: false,
151
+ value: 'digital',
152
+ }
153
+ }
154
+ onToggle={Function {}}
155
+ />
156
+ </li>
157
+ <li
158
+ className="select-multiple__choice"
159
+ key="1"
160
+ >
161
+ <TitledCheckbox⍟
162
+ background={undefined}
163
+ choice={
164
+ {
165
+ i: 1,
166
+ name: 'Esprit du temps',
167
+ selected: false,
168
+ value: 'espritDuTemps',
169
+ }
170
+ }
171
+ onToggle={Function {}}
172
+ />
173
+ </li>
174
+ <li
175
+ className="select-multiple__choice"
176
+ key="2"
177
+ >
178
+ <TitledCheckbox⍟
179
+ background={undefined}
180
+ choice={
181
+ {
182
+ i: 2,
183
+ name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut',
184
+ selected: true,
185
+ value: 'loremIpsum',
186
+ }
187
+ }
188
+ onToggle={Function {}}
189
+ />
190
+ </li>
191
+ <li
192
+ className="select-multiple__choice"
193
+ key="3"
194
+ >
195
+ <TitledCheckbox⍟
196
+ background={undefined}
197
+ choice={
198
+ {
199
+ i: 3,
200
+ name: 'Le monde du projet',
201
+ selected: false,
202
+ value: 'project',
203
+ }
204
+ }
205
+ onToggle={Function {}}
206
+ />
207
+ </li>
208
+ </ul>
209
+ </div>
210
+ </div>,
211
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AA0B/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBA4C7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAyB/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBA4C7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -7,11 +7,9 @@ var _react = _interopRequireWildcard(require("react"));
7
7
 
8
8
  var _reactNative = require("react-native");
9
9
 
10
- var _index = require("../../../organism/header-v2/index.native");
10
+ var _index = _interopRequireDefault(require("../../../organism/review-no-skills/index.native"));
11
11
 
12
- var _index2 = _interopRequireDefault(require("../../../organism/review-no-skills/index.native"));
13
-
14
- var _index3 = _interopRequireDefault(require("../../../organism/review-skills/index.native"));
12
+ var _index2 = _interopRequireDefault(require("../../../organism/review-skills/index.native"));
15
13
 
16
14
  var _templateContext = require("../template-context");
17
15
 
@@ -26,7 +24,6 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
26
24
  flex: 1,
27
25
  padding: 20,
28
26
  width: '100%',
29
- paddingTop: _index.HEADER_HEIGHT + 20,
30
27
  backgroundColor: theme.colors.white
31
28
  },
32
29
  title: {
@@ -72,11 +69,11 @@ const ReviewSkills = props => {
72
69
  style: styleSheet.title
73
70
  }, title), isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
74
71
  accessibilityLabel: isLoadingAriaLabel
75
- }, "Loading") : /*#__PURE__*/_react.default.createElement(_reactNative.View, null, !listSkills || listSkills.length === 0 ? /*#__PURE__*/_react.default.createElement(_index2.default, {
72
+ }, "Loading") : /*#__PURE__*/_react.default.createElement(_reactNative.View, null, !listSkills || listSkills.length === 0 ? /*#__PURE__*/_react.default.createElement(_index.default, {
76
73
  titleNoSkills: titleNoSkills,
77
74
  textNoSkills: textNoSkills,
78
75
  iconSkillAriaLabel: iconSkillAriaLabel
79
- }) : /*#__PURE__*/_react.default.createElement(_index3.default, {
76
+ }) : /*#__PURE__*/_react.default.createElement(_index2.default, {
80
77
  listSkills: listSkills
81
78
  })));
82
79
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","flex","padding","width","paddingTop","HEADER_HEIGHT","backgroundColor","colors","white","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","ReviewSkills","props","ariaLabel","isLoading","isLoadingAriaLabel","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {Text, View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport {HEADER_HEIGHT} from '../../../organism/header-v2/index.native';\nimport ReviewNoSkills from '../../../organism/review-no-skills/index.native';\nimport ReviewListSkills from '../../../organism/review-skills/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewSkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n width: '100%',\n paddingTop: HEADER_HEIGHT + 20,\n backgroundColor: theme.colors.white\n },\n title: {\n fontSize: theme.fontSize.xlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 28,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.base,\n marginTop: theme.spacing.small\n }\n });\n\nconst ReviewSkills = (props: ReviewSkillsProps) => {\n const {\n 'aria-label': ariaLabel,\n title,\n isLoading,\n isLoadingAriaLabel,\n listSkills,\n titleNoSkills,\n textNoSkills,\n iconSkillAriaLabel\n } = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\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} accessibilityLabel={ariaLabel}>\n <Text style={styleSheet.title}>{title}</Text>\n {isLoading ? (\n <Text accessibilityLabel={isLoadingAriaLabel}>Loading</Text>\n ) : (\n <View>\n {!listSkills || listSkills.length === 0 ? (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n ) : (\n <ReviewListSkills listSkills={listSkills} />\n )}\n </View>\n )}\n </View>\n );\n};\n\nexport default ReviewSkills;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAQA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,OAAO,EAAE,EAFA;IAGTC,KAAK,EAAE,MAHE;IAITC,UAAU,EAAEC,oBAAA,GAAgB,EAJnB;IAKTC,eAAe,EAAET,KAAK,CAACU,MAAN,CAAaC;EALrB,CADK;EAQhBC,KAAK,EAAE;IACLC,QAAQ,EAAEb,KAAK,CAACa,QAAN,CAAeC,MADpB;IAELC,UAAU,EAAEf,KAAK,CAACe,UAAN,CAAiBC,IAFxB;IAGLC,UAAU,EAAE,EAHP;IAILC,KAAK,EAAElB,KAAK,CAACU,MAAN,CAAaS,IAAb,CAAkBC,OAJpB;IAKLC,YAAY,EAAErB,KAAK,CAACsB,OAAN,CAAcC,IALvB;IAMLC,SAAS,EAAExB,KAAK,CAACsB,OAAN,CAAcG;EANpB;AARS,CAAlB,CADF;;AAmBA,MAAMC,YAAY,GAAIC,KAAD,IAA8B;EACjD,MAAM;IACJ,cAAcC,SADV;IAEJhB,KAFI;IAGJiB,SAHI;IAIJC,kBAJI;IAKJC,UALI;IAMJC,aANI;IAOJC,YAPI;IAQJC;EARI,IASFP,KATJ;EAUA,MAAMQ,eAAe,GAAG,IAAAC,mCAAA,GAAxB;EACA,MAAM,CAACC,UAAD,EAAaC,aAAb,IAA8B,IAAAC,eAAA,EAAgC,IAAhC,CAApC;EACA,MAAM;IAACvC;EAAD,IAAUmC,eAAhB;EAEA,IAAAK,gBAAA,EAAU,MAAM;IACd,MAAMC,WAAW,GAAG1C,gBAAgB,CAACC,KAAD,CAApC;;IACAsC,aAAa,CAACG,WAAD,CAAb;EACD,CAHD,EAGG,CAACzC,KAAD,CAHH;;EAKA,IAAI,CAACqC,UAAL,EAAiB;IACf,OAAO,IAAP;EACD;;EAED,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEA,UAAU,CAAClC,SAAxB;IAAmC,kBAAkB,EAAEyB;EAAvD,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAES,UAAU,CAACzB;EAAxB,GAAgCA,KAAhC,CADF,EAEGiB,SAAS,gBACR,6BAAC,iBAAD;IAAM,kBAAkB,EAAEC;EAA1B,aADQ,gBAGR,6BAAC,iBAAD,QACG,CAACC,UAAD,IAAeA,UAAU,CAACW,MAAX,KAAsB,CAArC,gBACC,6BAAC,eAAD;IACE,aAAa,EAAEV,aADjB;IAEE,YAAY,EAAEC,YAFhB;IAGE,kBAAkB,EAAEC;EAHtB,EADD,gBAOC,6BAAC,eAAD;IAAkB,UAAU,EAAEH;EAA9B,EARJ,CALJ,CADF;AAoBD,CA5CD;;eA8CeL,Y"}
1
+ {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","flex","padding","width","backgroundColor","colors","white","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","ReviewSkills","props","ariaLabel","isLoading","isLoadingAriaLabel","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {Text, View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport ReviewNoSkills from '../../../organism/review-no-skills/index.native';\nimport ReviewListSkills from '../../../organism/review-skills/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewSkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n width: '100%',\n backgroundColor: theme.colors.white\n },\n title: {\n fontSize: theme.fontSize.xlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 28,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.base,\n marginTop: theme.spacing.small\n }\n });\n\nconst ReviewSkills = (props: ReviewSkillsProps) => {\n const {\n 'aria-label': ariaLabel,\n title,\n isLoading,\n isLoadingAriaLabel,\n listSkills,\n titleNoSkills,\n textNoSkills,\n iconSkillAriaLabel\n } = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\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} accessibilityLabel={ariaLabel}>\n <Text style={styleSheet.title}>{title}</Text>\n {isLoading ? (\n <Text accessibilityLabel={isLoadingAriaLabel}>Loading</Text>\n ) : (\n <View>\n {!listSkills || listSkills.length === 0 ? (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n ) : (\n <ReviewListSkills listSkills={listSkills} />\n )}\n </View>\n )}\n </View>\n );\n};\n\nexport default ReviewSkills;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAQA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,OAAO,EAAE,EAFA;IAGTC,KAAK,EAAE,MAHE;IAITC,eAAe,EAAEP,KAAK,CAACQ,MAAN,CAAaC;EAJrB,CADK;EAOhBC,KAAK,EAAE;IACLC,QAAQ,EAAEX,KAAK,CAACW,QAAN,CAAeC,MADp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B,EAAEC;EAHtB,EADD,gBAOC,6BAAC,eAAD;IAAkB,UAAU,EAAEH;EAA9B,EARJ,CALJ,CADF;AAoBD,CA5CD;;eA8CeL,Y"}
@@ -0,0 +1,34 @@
1
+ [{
2
+ "label": "1mn",
3
+ "value": 1
4
+ }, {
5
+ "label": "2mn",
6
+ "value": 2
7
+ }, {
8
+ "label": "3mn",
9
+ "value": 3
10
+ }, {
11
+ "label": "5mn",
12
+ "value": 5
13
+ }, {
14
+ "label": "10mn",
15
+ "value": 10
16
+ }, {
17
+ "label": "15mn",
18
+ "value": 15
19
+ }, {
20
+ "label": "30mn",
21
+ "value": 30
22
+ }, {
23
+ "label": "45mn",
24
+ "value": 45
25
+ }, {
26
+ "label": "1h",
27
+ "value": 60
28
+ }, {
29
+ "label": "2h",
30
+ "value": 120
31
+ }, {
32
+ "label": "2h+",
33
+ "value": 121
34
+ }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.5.2",
3
+ "version": "11.5.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -159,5 +159,6 @@
159
159
  "browserslist": [
160
160
  "last 2 versions",
161
161
  "IE 11"
162
- ]
162
+ ],
163
+ "gitHead": "478c010d5560460f45d060463c4525620e3a9cf1"
163
164
  }