@coorpacademy/components 10.27.5-alpha.24 → 10.27.5-alpha.89
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/provider/index.d.ts.map +1 -1
- package/es/atom/provider/index.js +0 -5
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/review-presentation/style.css +2 -3
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +1 -1
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +9 -1
- package/es/molecule/review-correction-popin/index.d.ts.map +1 -1
- package/es/molecule/review-correction-popin/index.js +13 -5
- package/es/molecule/review-correction-popin/index.js.map +1 -1
- package/es/molecule/review-correction-popin/style.css +2 -2
- package/es/molecule/skill-card/index.native.d.ts +5 -0
- package/es/molecule/skill-card/index.native.d.ts.map +1 -0
- package/es/molecule/skill-card/index.native.js +82 -0
- package/es/molecule/skill-card/index.native.js.map +1 -0
- package/es/molecule/skill-card/prop-types.d.ts +14 -3
- package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
- package/es/molecule/skill-card/prop-types.js +2 -1
- package/es/molecule/skill-card/prop-types.js.map +1 -1
- package/es/organism/podcast-popin-intro/index.native.js +3 -3
- package/es/organism/podcast-popin-intro/index.native.js.map +1 -1
- package/es/organism/review-no-skills/index.d.ts +11 -0
- package/es/organism/review-no-skills/index.d.ts.map +1 -0
- package/es/organism/review-no-skills/index.js +25 -0
- package/es/organism/review-no-skills/index.js.map +1 -0
- package/es/organism/review-no-skills/index.native.d.ts +5 -0
- package/es/organism/review-no-skills/index.native.d.ts.map +1 -0
- package/es/organism/review-no-skills/index.native.js +59 -0
- package/es/organism/review-no-skills/index.native.js.map +1 -0
- package/es/organism/review-no-skills/prop-types.d.ts +13 -0
- package/es/organism/review-no-skills/prop-types.d.ts.map +1 -0
- package/es/organism/review-no-skills/prop-types.js +8 -0
- package/es/organism/review-no-skills/prop-types.js.map +1 -0
- package/es/organism/review-no-skills/style.css +73 -0
- package/es/organism/review-skills/index.d.ts +5 -3
- package/es/organism/review-skills/index.d.ts.map +1 -1
- package/es/organism/review-skills/index.js +3 -60
- package/es/organism/review-skills/index.js.map +1 -1
- package/es/organism/review-skills/index.native.d.ts +5 -0
- package/es/organism/review-skills/index.native.d.ts.map +1 -0
- package/es/organism/review-skills/index.native.js +46 -0
- package/es/organism/review-skills/index.native.js.map +1 -0
- package/es/organism/review-skills/prop-types.d.ts +7 -28
- package/es/organism/review-skills/prop-types.d.ts.map +1 -1
- package/es/organism/review-skills/prop-types.js +4 -16
- package/es/organism/review-skills/prop-types.js.map +1 -1
- package/es/organism/review-skills/style.css +3 -106
- package/es/organism/review-slide/style.css +1 -0
- package/es/organism/review-stacked-slides/index.d.ts.map +1 -1
- package/es/organism/review-stacked-slides/index.js +10 -3
- package/es/organism/review-stacked-slides/index.js.map +1 -1
- package/es/organism/review-stacked-slides/style.css +120 -8
- package/es/template/app-review/index.d.ts +7 -7
- package/es/template/app-review/index.js +1 -5
- package/es/template/app-review/index.js.map +1 -1
- package/es/template/app-review/index.native.d.ts.map +1 -1
- package/es/template/app-review/index.native.js +3 -1
- package/es/template/app-review/index.native.js.map +1 -1
- package/es/template/app-review/player/style.css +2 -2
- package/es/template/app-review/prop-types.d.ts +9 -9
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.js.map +1 -1
- package/es/template/app-review/skills/index.d.ts +6 -2
- package/es/template/app-review/skills/index.d.ts.map +1 -1
- package/es/template/app-review/skills/index.js +46 -2
- package/es/template/app-review/skills/index.js.map +1 -1
- package/es/template/app-review/skills/index.native.d.ts +3 -3
- package/es/template/app-review/skills/index.native.d.ts.map +1 -1
- package/es/template/app-review/skills/index.native.js +26 -176
- package/es/template/app-review/skills/index.native.js.map +1 -1
- package/es/template/app-review/skills/prop-types.d.ts +14 -38
- package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
- package/es/template/app-review/skills/prop-types.js +10 -13
- package/es/template/app-review/skills/prop-types.js.map +1 -1
- package/es/template/app-review/skills/style.css +49 -0
- package/es/template/review-dashboard-skills/index.d.ts +7 -7
- package/es/template/review-dashboard-skills/index.js +1 -1
- package/es/template/review-dashboard-skills/index.js.map +1 -1
- package/es/template/review-dashboard-skills/style.css +1 -2
- package/lib/atom/provider/index.d.ts.map +1 -1
- package/lib/atom/provider/index.js +0 -4
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/review-presentation/style.css +2 -3
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +1 -1
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +9 -1
- package/lib/molecule/review-correction-popin/index.d.ts.map +1 -1
- package/lib/molecule/review-correction-popin/index.js +13 -5
- package/lib/molecule/review-correction-popin/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/style.css +2 -2
- package/lib/molecule/skill-card/index.native.d.ts +5 -0
- package/lib/molecule/skill-card/index.native.d.ts.map +1 -0
- package/lib/molecule/skill-card/index.native.js +95 -0
- package/lib/molecule/skill-card/index.native.js.map +1 -0
- package/lib/molecule/skill-card/prop-types.d.ts +14 -3
- package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
- package/lib/molecule/skill-card/prop-types.js +2 -1
- package/lib/molecule/skill-card/prop-types.js.map +1 -1
- package/lib/organism/podcast-popin-intro/index.native.js +3 -3
- package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
- package/lib/organism/review-no-skills/index.d.ts +11 -0
- package/lib/organism/review-no-skills/index.d.ts.map +1 -0
- package/lib/organism/review-no-skills/index.js +36 -0
- package/lib/organism/review-no-skills/index.js.map +1 -0
- package/lib/organism/review-no-skills/index.native.d.ts +5 -0
- package/lib/organism/review-no-skills/index.native.d.ts.map +1 -0
- package/lib/organism/review-no-skills/index.native.js +72 -0
- package/lib/organism/review-no-skills/index.native.js.map +1 -0
- package/lib/organism/review-no-skills/prop-types.d.ts +13 -0
- package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -0
- package/lib/organism/review-no-skills/prop-types.js +17 -0
- package/lib/organism/review-no-skills/prop-types.js.map +1 -0
- package/lib/organism/review-no-skills/style.css +73 -0
- package/lib/organism/review-skills/index.d.ts +5 -3
- package/lib/organism/review-skills/index.d.ts.map +1 -1
- package/lib/organism/review-skills/index.js +3 -67
- package/lib/organism/review-skills/index.js.map +1 -1
- package/lib/organism/review-skills/index.native.d.ts +5 -0
- package/lib/organism/review-skills/index.native.d.ts.map +1 -0
- package/lib/organism/review-skills/index.native.js +57 -0
- package/lib/organism/review-skills/index.native.js.map +1 -0
- package/lib/organism/review-skills/prop-types.d.ts +7 -28
- package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
- package/lib/organism/review-skills/prop-types.js +3 -19
- package/lib/organism/review-skills/prop-types.js.map +1 -1
- package/lib/organism/review-skills/style.css +3 -106
- package/lib/organism/review-slide/style.css +1 -0
- package/lib/organism/review-stacked-slides/index.d.ts.map +1 -1
- package/lib/organism/review-stacked-slides/index.js +10 -3
- package/lib/organism/review-stacked-slides/index.js.map +1 -1
- package/lib/organism/review-stacked-slides/style.css +120 -8
- package/lib/template/app-review/index.d.ts +7 -7
- package/lib/template/app-review/index.js +1 -5
- package/lib/template/app-review/index.js.map +1 -1
- package/lib/template/app-review/index.native.d.ts.map +1 -1
- package/lib/template/app-review/index.native.js +4 -1
- package/lib/template/app-review/index.native.js.map +1 -1
- package/lib/template/app-review/player/style.css +2 -2
- package/lib/template/app-review/prop-types.d.ts +9 -9
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.js.map +1 -1
- package/lib/template/app-review/skills/index.d.ts +6 -2
- package/lib/template/app-review/skills/index.d.ts.map +1 -1
- package/lib/template/app-review/skills/index.js +51 -1
- package/lib/template/app-review/skills/index.js.map +1 -1
- package/lib/template/app-review/skills/index.native.d.ts +3 -3
- package/lib/template/app-review/skills/index.native.d.ts.map +1 -1
- package/lib/template/app-review/skills/index.native.js +28 -175
- package/lib/template/app-review/skills/index.native.js.map +1 -1
- package/lib/template/app-review/skills/prop-types.d.ts +14 -38
- package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/skills/prop-types.js +12 -17
- package/lib/template/app-review/skills/prop-types.js.map +1 -1
- package/lib/template/app-review/skills/style.css +49 -0
- package/lib/template/review-dashboard-skills/index.d.ts +7 -7
- package/lib/template/review-dashboard-skills/index.js +3 -3
- package/lib/template/review-dashboard-skills/index.js.map +1 -1
- package/lib/template/review-dashboard-skills/style.css +1 -2
- package/locales/.mtslconfig.json +1 -0
- package/package.json +4 -4
- package/es/template/app-review/skills/stories.d.ts +0 -1
- package/es/template/app-review/skills/stories.d.ts.map +0 -1
- package/es/template/app-review/skills/stories.js +0 -15
- package/es/template/app-review/skills/stories.js.map +0 -1
- package/lib/template/app-review/skills/stories.d.ts +0 -1
- package/lib/template/app-review/skills/stories.d.ts.map +0 -1
- package/lib/template/app-review/skills/stories.js +0 -16
- package/lib/template/app-review/skills/stories.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","StyleSheet","Text","View","NovaCompositionCoorpacademyEmptyStateHomeRevision","EmptyStateHomeRevision","useTemplateContext","createStyleSheet","theme","create","subtitle","fontSize","xlarge","color","colors","text","primary","marginBottom","spacing","tiny","lineHeight","opacity","base","noSkillsImage","flex","alignSelf","width","height","ReviewNoSkills","props","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","styleSheet","setStylesheet","_stylesheet"],"sources":["../../../src/organism/review-no-skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {StyleSheet, Text, View, ViewStyle, TextStyle} from 'react-native';\nimport {NovaCompositionCoorpacademyEmptyStateHomeRevision as EmptyStateHomeRevision} from '@coorpacademy/nova-icons';\nimport {Theme} from '../../variables/theme.native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {NoSkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n subtitle: TextStyle;\n text: TextStyle;\n noSkillsImage: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n subtitle: {\n fontSize: theme.fontSize.xlarge,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.tiny\n },\n text: {\n fontSize: 16,\n lineHeight: 22,\n color: theme.colors.text.primary,\n opacity: 0.7,\n marginBottom: theme.spacing.base\n },\n noSkillsImage: {\n flex: 1,\n alignSelf: 'center',\n width: 320,\n height: 300\n }\n });\n\nconst ReviewNoSkills = (props: NoSkillsProps) => {\n const {titleNoSkills, textNoSkills, iconSkillAriaLabel} = 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>\n <Text style={styleSheet.subtitle}>{titleNoSkills}</Text>\n <Text style={styleSheet.text}>{textNoSkills}</Text>\n <EmptyStateHomeRevision\n style={styleSheet.noSkillsImage}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n </View>\n );\n};\n\nexport default ReviewNoSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,SAAzB,QAAyC,OAAzC;AACA,SAAQC,UAAR,EAAoBC,IAApB,EAA0BC,IAA1B,QAA2D,cAA3D;AACA,SAAQC,iDAAiD,IAAIC,sBAA7D,QAA0F,0BAA1F;AAEA,SAAQC,kBAAR,QAAiC,4CAAjC;;AASA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBP,UAAU,CAACQ,MAAX,CAAkB;EAChBC,QAAQ,EAAE;IACRC,QAAQ,EAAEH,KAAK,CAACG,QAAN,CAAeC,MADjB;IAERC,KAAK,EAAEL,KAAK,CAACM,MAAN,CAAaC,IAAb,CAAkBC,OAFjB;IAGRC,YAAY,EAAET,KAAK,CAACU,OAAN,CAAcC;EAHpB,CADM;EAMhBJ,IAAI,EAAE;IACJJ,QAAQ,EAAE,EADN;IAEJS,UAAU,EAAE,EAFR;IAGJP,KAAK,EAAEL,KAAK,CAACM,MAAN,CAAaC,IAAb,CAAkBC,OAHrB;IAIJK,OAAO,EAAE,GAJL;IAKJJ,YAAY,EAAET,KAAK,CAACU,OAAN,CAAcI;EALxB,CANU;EAahBC,aAAa,EAAE;IACbC,IAAI,EAAE,CADO;IAEbC,SAAS,EAAE,QAFE;IAGbC,KAAK,EAAE,GAHM;IAIbC,MAAM,EAAE;EAJK;AAbC,CAAlB,CADF;;AAsBA,MAAMC,cAAc,GAAIC,KAAD,IAA0B;EAC/C,MAAM;IAACC,aAAD;IAAgBC,YAAhB;IAA8BC;EAA9B,IAAoDH,KAA1D;EACA,MAAMI,eAAe,GAAG3B,kBAAkB,EAA1C;EACA,MAAM,CAAC4B,UAAD,EAAaC,aAAb,IAA8BpC,QAAQ,CAAwB,IAAxB,CAA5C;EACA,MAAM;IAACS;EAAD,IAAUyB,eAAhB;EAEAjC,SAAS,CAAC,MAAM;IACd,MAAMoC,WAAW,GAAG7B,gBAAgB,CAACC,KAAD,CAApC;;IACA2B,aAAa,CAACC,WAAD,CAAb;EACD,CAHQ,EAGN,CAAC5B,KAAD,CAHM,CAAT;;EAKA,IAAI,CAAC0B,UAAL,EAAiB;IACf,OAAO,IAAP;EACD;;EAED,oBACE,oBAAC,IAAD,qBACE,oBAAC,IAAD;IAAM,KAAK,EAAEA,UAAU,CAACxB;EAAxB,GAAmCoB,aAAnC,CADF,eAEE,oBAAC,IAAD;IAAM,KAAK,EAAEI,UAAU,CAACnB;EAAxB,GAA+BgB,YAA/B,CAFF,eAGE,oBAAC,sBAAD;IACE,KAAK,EAAEG,UAAU,CAACX,aADpB;IAEE,kBAAkB,EAAES;EAFtB,EAHF,CADF;AAUD,CAzBD;;AA2BA,eAAeJ,cAAf"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
titleNoSkills: PropTypes.Validator<string>;
|
|
4
|
+
textNoSkills: PropTypes.Validator<string>;
|
|
5
|
+
iconSkillAriaLabel: PropTypes.Validator<string>;
|
|
6
|
+
};
|
|
7
|
+
export default propTypes;
|
|
8
|
+
export declare type NoSkillsProps = {
|
|
9
|
+
titleNoSkills: string;
|
|
10
|
+
textNoSkills: string;
|
|
11
|
+
iconSkillAriaLabel: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/review-no-skills/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;CAId,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,aAAa,GAAG;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
const propTypes = {
|
|
3
|
+
titleNoSkills: PropTypes.string.isRequired,
|
|
4
|
+
textNoSkills: PropTypes.string.isRequired,
|
|
5
|
+
iconSkillAriaLabel: PropTypes.string.isRequired
|
|
6
|
+
};
|
|
7
|
+
export default propTypes;
|
|
8
|
+
//# sourceMappingURL=prop-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","titleNoSkills","string","isRequired","textNoSkills","iconSkillAriaLabel"],"sources":["../../../src/organism/review-no-skills/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n titleNoSkills: PropTypes.string.isRequired,\n textNoSkills: PropTypes.string.isRequired,\n iconSkillAriaLabel: PropTypes.string.isRequired\n};\n\nexport default propTypes;\n\nexport type NoSkillsProps = {\n titleNoSkills: string;\n textNoSkills: string;\n iconSkillAriaLabel: string;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,MAAMC,SAAS,GAAG;EAChBC,aAAa,EAAEF,SAAS,CAACG,MAAV,CAAiBC,UADhB;EAEhBC,YAAY,EAAEL,SAAS,CAACG,MAAV,CAAiBC,UAFf;EAGhBE,kBAAkB,EAAEN,SAAS,CAACG,MAAV,CAAiBC;AAHrB,CAAlB;AAMA,eAAeH,SAAf"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
2
|
+
@value tablet from breakpoints;
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
@value colors: "../../variables/colors.css";
|
|
5
|
+
@value cm_blue_900 from colors;
|
|
6
|
+
@value cm_grey_400 from colors;
|
|
7
|
+
|
|
8
|
+
.textBase {
|
|
9
|
+
color: cm_blue_900;
|
|
10
|
+
font-family: "Gilroy";
|
|
11
|
+
font-style: normal;
|
|
12
|
+
user-select: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.noSkillsContainer {
|
|
16
|
+
margin-top: 56px;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titleNoSkills {
|
|
25
|
+
composes: textBase;
|
|
26
|
+
font-weight: 10;
|
|
27
|
+
font-size: 28px;
|
|
28
|
+
line-height: 36px;
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.textNoSkills {
|
|
33
|
+
color: cm_grey_400;
|
|
34
|
+
font-family: "Gilroy";
|
|
35
|
+
font-size: 20px;
|
|
36
|
+
line-height: 28px;
|
|
37
|
+
margin-top: 8px;
|
|
38
|
+
text-align: center;
|
|
39
|
+
user-select: none;
|
|
40
|
+
width: 493px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.imgNoSkills {
|
|
44
|
+
height: 361px;
|
|
45
|
+
margin-top: 48px;
|
|
46
|
+
width: 361px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media tablet {
|
|
50
|
+
.titleNoSkills, .textNoSkills {
|
|
51
|
+
width: 90%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.imgNoSkills {
|
|
55
|
+
max-width: 361px;
|
|
56
|
+
max-height: 361px;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media mobile {
|
|
63
|
+
.titleNoSkills,
|
|
64
|
+
.textNoSkills {
|
|
65
|
+
width: 85%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.imgNoSkills {
|
|
69
|
+
margin-top: 33px;
|
|
70
|
+
width: 85%;
|
|
71
|
+
height: auto;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare function
|
|
3
|
-
|
|
1
|
+
export default ReviewListSkills;
|
|
2
|
+
declare function ReviewListSkills({ listSkills }: {
|
|
3
|
+
listSkills: any;
|
|
4
|
+
}): JSX.Element;
|
|
5
|
+
declare namespace ReviewListSkills {
|
|
4
6
|
export { propTypes };
|
|
5
7
|
}
|
|
6
8
|
import propTypes from "./prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/index.js"],"names":[],"mappings":";AAMA;;gBAaC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import isEmpty from 'lodash/fp/isEmpty';
|
|
3
2
|
import map from 'lodash/fp/map';
|
|
4
|
-
import { NovaCompositionCoorpacademyEmptyStateHomeRevision as EmptyStateHomeRevision, NovaCompositionCoorpacademyInformationIcon as InformationIcon } from '@coorpacademy/nova-icons';
|
|
5
|
-
import Loader from '../../atom/loader';
|
|
6
3
|
import SkillCard from '../../molecule/skill-card';
|
|
7
4
|
import style from './style.css';
|
|
8
|
-
import propTypes
|
|
5
|
+
import propTypes from './prop-types';
|
|
9
6
|
|
|
10
7
|
const ReviewListSkills = ({
|
|
11
8
|
listSkills
|
|
@@ -22,60 +19,6 @@ const ReviewListSkills = ({
|
|
|
22
19
|
}, listSkills));
|
|
23
20
|
};
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
textNoSkills,
|
|
28
|
-
iconSkillAriaLabel
|
|
29
|
-
}) => {
|
|
30
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
-
className: style.noSkillsContainer
|
|
32
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33
|
-
className: style.titleNoSkills
|
|
34
|
-
}, titleNoSkills), /*#__PURE__*/React.createElement("div", {
|
|
35
|
-
className: style.textNoSkills
|
|
36
|
-
}, " ", textNoSkills), /*#__PURE__*/React.createElement(EmptyStateHomeRevision, {
|
|
37
|
-
className: style.imgNoSkills,
|
|
38
|
-
"aria-label": iconSkillAriaLabel
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const ReviewSkills = props => {
|
|
43
|
-
const {
|
|
44
|
-
'aria-label': ariaLabel,
|
|
45
|
-
title,
|
|
46
|
-
listSkills,
|
|
47
|
-
titleNoSkills,
|
|
48
|
-
textNoSkills,
|
|
49
|
-
iconSkillAriaLabel,
|
|
50
|
-
isLoading = false,
|
|
51
|
-
isLoadingAriaLabel
|
|
52
|
-
} = props;
|
|
53
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
className: style.containerReviewSkill,
|
|
55
|
-
"aria-label": ariaLabel
|
|
56
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: style.title
|
|
58
|
-
}, title, /*#__PURE__*/React.createElement(InformationIcon, {
|
|
59
|
-
className: style.informationIcon,
|
|
60
|
-
width: 12,
|
|
61
|
-
height: 12
|
|
62
|
-
})), isLoading ? /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: style.loaderContainer
|
|
64
|
-
}, /*#__PURE__*/React.createElement(Loader, {
|
|
65
|
-
className: style.loader,
|
|
66
|
-
theme: "default",
|
|
67
|
-
"aria-label": isLoadingAriaLabel
|
|
68
|
-
})) : /*#__PURE__*/React.createElement("div", null, !isEmpty(listSkills) ? /*#__PURE__*/React.createElement(ReviewListSkills, {
|
|
69
|
-
listSkills: listSkills
|
|
70
|
-
}) : /*#__PURE__*/React.createElement(ReviewNoSkills, {
|
|
71
|
-
titleNoSkills: titleNoSkills,
|
|
72
|
-
textNoSkills: textNoSkills,
|
|
73
|
-
iconSkillAriaLabel: iconSkillAriaLabel
|
|
74
|
-
})));
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
ReviewListSkills.propTypes = process.env.NODE_ENV !== "production" ? ListSkillsPropTypes : {};
|
|
78
|
-
ReviewNoSkills.propTypes = process.env.NODE_ENV !== "production" ? NoSkillsPropTypes : {};
|
|
79
|
-
ReviewSkills.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
80
|
-
export default ReviewSkills;
|
|
22
|
+
ReviewListSkills.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
23
|
+
export default ReviewListSkills;
|
|
81
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","map","SkillCard","style","propTypes","ReviewListSkills","listSkills","listSkillsContainer","convert","cap","skillCard","key","skillCardContainer"],"sources":["../../../src/organism/review-skills/index.js"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport SkillCard from '../../molecule/skill-card';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ReviewListSkills = ({listSkills}) => {\n return (\n <div className={style.listSkillsContainer}>\n {listSkills &&\n map.convert({cap: false})((skillCard, key) => {\n return (\n <div className={style.skillCardContainer} key={`step-${key}`}>\n <SkillCard {...skillCard} />\n </div>\n );\n }, listSkills)}\n </div>\n );\n};\n\nReviewListSkills.propTypes = propTypes;\n\nexport default ReviewListSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAAsB,cAAtB;;AAEA,MAAMC,gBAAgB,GAAG,CAAC;EAACC;AAAD,CAAD,KAAkB;EACzC,oBACE;IAAK,SAAS,EAAEH,KAAK,CAACI;EAAtB,GACGD,UAAU,IACTL,GAAG,CAACO,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,SAAD,EAAYC,GAAZ,KAAoB;IAC5C,oBACE;MAAK,SAAS,EAAER,KAAK,CAACS,kBAAtB;MAA0C,GAAG,EAAG,QAAOD,GAAI;IAA3D,gBACE,oBAAC,SAAD,EAAeD,SAAf,CADF,CADF;EAKD,CAND,EAMGJ,UANH,CAFJ,CADF;AAYD,CAbD;;AAeAD,gBAAgB,CAACD,SAAjB,2CAA6BA,SAA7B;AAEA,eAAeC,gBAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/index.native.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAoC1C,QAAA,MAAM,gBAAgB,UAAW,YAAY,gBAI5C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlatList, StyleSheet } from 'react-native';
|
|
3
|
+
import SkillCard from '../../molecule/skill-card/index.native';
|
|
4
|
+
const style = StyleSheet.create({
|
|
5
|
+
skills: {
|
|
6
|
+
paddingBottom: 100
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const Item = ({
|
|
11
|
+
item: {
|
|
12
|
+
'aria-label': ariaLabel,
|
|
13
|
+
skillTitle,
|
|
14
|
+
skillAriaLabel,
|
|
15
|
+
reviseLabel,
|
|
16
|
+
reviseAriaLabel,
|
|
17
|
+
onClick,
|
|
18
|
+
buttonLabel,
|
|
19
|
+
buttonAriaLabel,
|
|
20
|
+
isCustom
|
|
21
|
+
}
|
|
22
|
+
}) => /*#__PURE__*/React.createElement(SkillCard, {
|
|
23
|
+
"aria-label": ariaLabel,
|
|
24
|
+
skillTitle: skillTitle,
|
|
25
|
+
skillAriaLabel: skillAriaLabel,
|
|
26
|
+
reviseLabel: reviseLabel,
|
|
27
|
+
reviseAriaLabel: reviseAriaLabel,
|
|
28
|
+
onClick: onClick,
|
|
29
|
+
buttonLabel: buttonLabel,
|
|
30
|
+
buttonAriaLabel: buttonAriaLabel,
|
|
31
|
+
isCustom: isCustom
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const ReviewListSkills = props => {
|
|
35
|
+
const {
|
|
36
|
+
listSkills
|
|
37
|
+
} = props;
|
|
38
|
+
return /*#__PURE__*/React.createElement(FlatList, {
|
|
39
|
+
contentContainerStyle: style.skills,
|
|
40
|
+
data: listSkills,
|
|
41
|
+
renderItem: Item
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default ReviewListSkills;
|
|
46
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","FlatList","StyleSheet","SkillCard","style","create","skills","paddingBottom","Item","item","ariaLabel","skillTitle","skillAriaLabel","reviseLabel","reviseAriaLabel","onClick","buttonLabel","buttonAriaLabel","isCustom","ReviewListSkills","props","listSkills"],"sources":["../../../src/organism/review-skills/index.native.tsx"],"sourcesContent":["import React from 'react';\nimport {FlatList, StyleSheet} from 'react-native';\nimport SkillCard from '../../molecule/skill-card/index.native';\nimport {SkillCardProps} from '../../molecule/skill-card/prop-types';\nimport {ReviewSkills} from './prop-types';\n\ntype ItemProps = {\n item: SkillCardProps;\n};\n\nconst style = StyleSheet.create({\n skills: {paddingBottom: 100}\n});\n\nconst Item = ({\n item: {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n reviseLabel,\n reviseAriaLabel,\n onClick,\n buttonLabel,\n buttonAriaLabel,\n isCustom\n }\n}: ItemProps) => (\n <SkillCard\n aria-label={ariaLabel}\n skillTitle={skillTitle}\n skillAriaLabel={skillAriaLabel}\n reviseLabel={reviseLabel}\n reviseAriaLabel={reviseAriaLabel}\n onClick={onClick}\n buttonLabel={buttonLabel}\n buttonAriaLabel={buttonAriaLabel}\n isCustom={isCustom}\n />\n);\n\nconst ReviewListSkills = (props: ReviewSkills) => {\n const {listSkills} = props;\n\n return <FlatList contentContainerStyle={style.skills} data={listSkills} renderItem={Item} />;\n};\n\nexport default ReviewListSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAQC,QAAR,EAAkBC,UAAlB,QAAmC,cAAnC;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AAQA,MAAMC,KAAK,GAAGF,UAAU,CAACG,MAAX,CAAkB;EAC9BC,MAAM,EAAE;IAACC,aAAa,EAAE;EAAhB;AADsB,CAAlB,CAAd;;AAIA,MAAMC,IAAI,GAAG,CAAC;EACZC,IAAI,EAAE;IACJ,cAAcC,SADV;IAEJC,UAFI;IAGJC,cAHI;IAIJC,WAJI;IAKJC,eALI;IAMJC,OANI;IAOJC,WAPI;IAQJC,eARI;IASJC;EATI;AADM,CAAD,kBAaX,oBAAC,SAAD;EACE,cAAYR,SADd;EAEE,UAAU,EAAEC,UAFd;EAGE,cAAc,EAAEC,cAHlB;EAIE,WAAW,EAAEC,WAJf;EAKE,eAAe,EAAEC,eALnB;EAME,OAAO,EAAEC,OANX;EAOE,WAAW,EAAEC,WAPf;EAQE,eAAe,EAAEC,eARnB;EASE,QAAQ,EAAEC;AATZ,EAbF;;AA0BA,MAAMC,gBAAgB,GAAIC,KAAD,IAAyB;EAChD,MAAM;IAACC;EAAD,IAAeD,KAArB;EAEA,oBAAO,oBAAC,QAAD;IAAU,qBAAqB,EAAEhB,KAAK,CAACE,MAAvC;IAA+C,IAAI,EAAEe,UAArD;IAAiE,UAAU,EAAEb;EAA7E,EAAP;AACD,CAJD;;AAMA,eAAeW,gBAAf"}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
skillTitle: PropTypes.Requireable<string>;
|
|
5
|
-
skillAriaLabel: PropTypes.Requireable<string>;
|
|
6
|
-
buttonLabel: PropTypes.Requireable<string>;
|
|
7
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
8
|
-
reviseLabel: PropTypes.Requireable<string>;
|
|
9
|
-
reviseAriaLabel: PropTypes.Requireable<string>;
|
|
10
|
-
isCustom: PropTypes.Requireable<boolean>;
|
|
11
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
}> | null | undefined)[]>;
|
|
13
|
-
}
|
|
14
|
-
export namespace NoSkillsPropTypes {
|
|
15
|
-
const titleNoSkills: PropTypes.Requireable<string>;
|
|
16
|
-
const textNoSkills: PropTypes.Requireable<string>;
|
|
17
|
-
const iconSkillAriaLabel: PropTypes.Requireable<string>;
|
|
18
|
-
}
|
|
19
|
-
declare const _default: {
|
|
20
|
-
titleNoSkills: PropTypes.Requireable<string>;
|
|
21
|
-
textNoSkills: PropTypes.Requireable<string>;
|
|
22
|
-
iconSkillAriaLabel: PropTypes.Requireable<string>;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { SkillCardProps } from '../../molecule/skill-card/prop-types';
|
|
3
|
+
declare const propTypes: {
|
|
23
4
|
listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
24
5
|
'aria-label': PropTypes.Requireable<string>;
|
|
25
6
|
skillTitle: PropTypes.Requireable<string>;
|
|
@@ -31,11 +12,9 @@ declare const _default: {
|
|
|
31
12
|
isCustom: PropTypes.Requireable<boolean>;
|
|
32
13
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
14
|
}> | null | undefined)[]>;
|
|
34
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
35
|
-
title: PropTypes.Validator<string>;
|
|
36
|
-
isLoading: PropTypes.Requireable<boolean>;
|
|
37
|
-
isLoadingAriaLabel: PropTypes.Requireable<string>;
|
|
38
15
|
};
|
|
39
|
-
export default
|
|
40
|
-
|
|
16
|
+
export default propTypes;
|
|
17
|
+
export declare type ReviewSkills = {
|
|
18
|
+
listSkills: SkillCardProps[];
|
|
19
|
+
};
|
|
41
20
|
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/prop-types.
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA2B,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAExF,QAAA,MAAM,SAAS;;;;;;;;;;;;CAEd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,YAAY,GAAG;IACzB,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC"}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import PropTypes from 'prop-types';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
listSkills: PropTypes.arrayOf(PropTypes.shape(
|
|
2
|
+
import SkillCardPropsType from '../../molecule/skill-card/prop-types';
|
|
3
|
+
const propTypes = {
|
|
4
|
+
listSkills: PropTypes.arrayOf(PropTypes.shape(SkillCardPropsType))
|
|
7
5
|
};
|
|
8
|
-
export
|
|
9
|
-
titleNoSkills: PropTypes.string,
|
|
10
|
-
textNoSkills: PropTypes.string,
|
|
11
|
-
iconSkillAriaLabel: PropTypes.string
|
|
12
|
-
};
|
|
13
|
-
export default _extends({
|
|
14
|
-
'aria-label': PropTypes.string,
|
|
15
|
-
title: PropTypes.string.isRequired,
|
|
16
|
-
isLoading: PropTypes.bool,
|
|
17
|
-
isLoadingAriaLabel: PropTypes.string
|
|
18
|
-
}, ListSkillsPropTypes, NoSkillsPropTypes);
|
|
6
|
+
export default propTypes;
|
|
19
7
|
//# sourceMappingURL=prop-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["PropTypes","
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["PropTypes","SkillCardPropsType","propTypes","listSkills","arrayOf","shape"],"sources":["../../../src/organism/review-skills/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport SkillCardPropsType, {SkillCardProps} from '../../molecule/skill-card/prop-types';\n\nconst propTypes = {\n listSkills: PropTypes.arrayOf(PropTypes.shape(SkillCardPropsType))\n};\n\nexport default propTypes;\n\nexport type ReviewSkills = {\n listSkills: SkillCardProps[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAAiD,sCAAjD;AAEA,MAAMC,SAAS,GAAG;EAChBC,UAAU,EAAEH,SAAS,CAACI,OAAV,CAAkBJ,SAAS,CAACK,KAAV,CAAgBJ,kBAAhB,CAAlB;AADI,CAAlB;AAIA,eAAeC,SAAf"}
|
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
@value breakpoints: "../../variables/breakpoints.css";
|
|
2
|
-
@value tablet from breakpoints;
|
|
3
2
|
@value mobile from breakpoints;
|
|
4
|
-
@value colors: "../../variables/colors.css";
|
|
5
|
-
@value cm_blue_900 from colors;
|
|
6
|
-
@value cm_grey_400 from colors;
|
|
7
|
-
@value cm_grey_500 from colors;
|
|
8
|
-
|
|
9
|
-
.textBase {
|
|
10
|
-
color: cm_blue_900;
|
|
11
|
-
font-family: "Gilroy";
|
|
12
|
-
font-style: normal;
|
|
13
|
-
user-select: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.containerReviewSkill {
|
|
17
|
-
width: 100%;
|
|
18
|
-
position: relative;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.title {
|
|
22
|
-
composes: textBase;
|
|
23
|
-
font-size: 20px;
|
|
24
|
-
font-weight: 600;
|
|
25
|
-
line-height: 28px;
|
|
26
|
-
margin-left: 40px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.informationIcon {
|
|
30
|
-
color: cm_grey_500;
|
|
31
|
-
padding-left: 8px;
|
|
32
|
-
}
|
|
33
3
|
|
|
34
4
|
.listSkillsContainer {
|
|
35
5
|
display: flex;
|
|
@@ -45,67 +15,12 @@
|
|
|
45
15
|
flex: 1 0 33%;
|
|
46
16
|
}
|
|
47
17
|
|
|
48
|
-
.noSkillsContainer {
|
|
49
|
-
margin-top: 56px;
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: column;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
position: relative;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.titleNoSkills {
|
|
58
|
-
composes: textBase;
|
|
59
|
-
font-weight: 10;
|
|
60
|
-
font-size: 28px;
|
|
61
|
-
line-height: 36px;
|
|
62
|
-
text-align: center;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.textNoSkills {
|
|
66
|
-
color: cm_grey_400;
|
|
67
|
-
font-family: "Gilroy";
|
|
68
|
-
font-size: 20px;
|
|
69
|
-
line-height: 28px;
|
|
70
|
-
margin-top: 8px;
|
|
71
|
-
text-align: center;
|
|
72
|
-
user-select: none;
|
|
73
|
-
width: 493px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.imgNoSkills {
|
|
77
|
-
height: 361px;
|
|
78
|
-
margin-top: 48px;
|
|
79
|
-
width: 361px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.loaderContainer {
|
|
83
|
-
width: 100%;
|
|
84
|
-
height: 50vh;
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
}
|
|
89
18
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media tablet {
|
|
96
|
-
.titleNoSkills, .textNoSkills {
|
|
97
|
-
width: 90%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.imgNoSkills {
|
|
101
|
-
max-width: 361px;
|
|
102
|
-
max-height: 361px;
|
|
103
|
-
width: 100%;
|
|
104
|
-
height: 100%;
|
|
19
|
+
@media mobile {
|
|
20
|
+
.listSkillsContainer {
|
|
21
|
+
margin: 24px 20px;
|
|
105
22
|
}
|
|
106
|
-
}
|
|
107
23
|
|
|
108
|
-
@media mobile {
|
|
109
24
|
.skillCardContainer {
|
|
110
25
|
display: flex;
|
|
111
26
|
flex: 1 0 100%;
|
|
@@ -114,22 +29,4 @@
|
|
|
114
29
|
max-width: 100%;
|
|
115
30
|
}
|
|
116
31
|
|
|
117
|
-
.listSkillsContainer {
|
|
118
|
-
margin: 24px 20px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.title {
|
|
122
|
-
margin-left: 0;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.titleNoSkills,
|
|
126
|
-
.textNoSkills {
|
|
127
|
-
width: 85%;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.imgNoSkills {
|
|
131
|
-
margin-top: 33px;
|
|
132
|
-
width: 85%;
|
|
133
|
-
height: auto;
|
|
134
|
-
}
|
|
135
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/review-stacked-slides/index.js"],"names":[],"mappings":"AAOA,mCAAoC;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/review-stacked-slides/index.js"],"names":[],"mappings":"AAOA,mCAAoC;;AA6BpC;;;;;gBA8CC"}
|
|
@@ -12,6 +12,13 @@ const stylesByPosition = {
|
|
|
12
12
|
3: style.position3,
|
|
13
13
|
4: style.position4
|
|
14
14
|
};
|
|
15
|
+
const unstackByPosition = {
|
|
16
|
+
0: style.slideOutAndIn0,
|
|
17
|
+
1: style.slideOutAndIn1,
|
|
18
|
+
2: style.slideOutAndIn2,
|
|
19
|
+
3: style.slideOutAndIn3,
|
|
20
|
+
4: style.slideOutAndIn4
|
|
21
|
+
};
|
|
15
22
|
|
|
16
23
|
const getSlideAnimation = (action, position) => {
|
|
17
24
|
switch (action) {
|
|
@@ -19,10 +26,10 @@ const getSlideAnimation = (action, position) => {
|
|
|
19
26
|
return style.slideOutHideAndIn;
|
|
20
27
|
|
|
21
28
|
case 'restack':
|
|
22
|
-
return
|
|
29
|
+
return unstackByPosition[position];
|
|
23
30
|
|
|
24
31
|
default:
|
|
25
|
-
return
|
|
32
|
+
return null;
|
|
26
33
|
}
|
|
27
34
|
};
|
|
28
35
|
|
|
@@ -44,7 +51,7 @@ const StackedSlides = ({
|
|
|
44
51
|
const slideView = /*#__PURE__*/React.createElement("div", {
|
|
45
52
|
key: `slide-${slideIndex}`,
|
|
46
53
|
"data-name": `slide-${slideIndex}`,
|
|
47
|
-
className: classnames(style.slideBase, getSlideAnimation(animationType, position), endReview ? style.endReview : null)
|
|
54
|
+
className: classnames(style.slideBase, getSlideAnimation(animationType, position), position < 0 ? style.hiddenSlide : stylesByPosition[position], endReview ? style.endReview : null)
|
|
48
55
|
}, /*#__PURE__*/React.createElement(ReviewSlide, {
|
|
49
56
|
slideIndex: _toString(slideIndex),
|
|
50
57
|
slide,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","classnames","_toString","ReviewSlide","propTypes","style","TOTAL_SLIDES_STACK","stylesByPosition","position0","position1","position2","position3","position4","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","classnames","_toString","ReviewSlide","propTypes","style","TOTAL_SLIDES_STACK","stylesByPosition","position0","position1","position2","position3","position4","unstackByPosition","slideOutAndIn0","slideOutAndIn1","slideOutAndIn2","slideOutAndIn3","slideOutAndIn4","getSlideAnimation","action","position","slideOutHideAndIn","StackedSlides","slides","endReview","validateButton","correctionPopinProps","stackedSlides","slideIndex","slide","animationType","slideView","slideBase","hiddenSlide","push","stackedSlidesYAxisOverflowContainer","stackedSlidesContainer"],"sources":["../../../src/organism/review-stacked-slides/index.js"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport _toString from 'lodash/fp/toString';\nimport ReviewSlide from '../review-slide';\nimport propTypes from './prop-types';\nimport style from './style.css';\n\nexport const TOTAL_SLIDES_STACK = 5;\n\nconst stylesByPosition = {\n 0: style.position0,\n 1: style.position1,\n 2: style.position2,\n 3: style.position3,\n 4: style.position4\n};\n\nconst unstackByPosition = {\n 0: style.slideOutAndIn0,\n 1: style.slideOutAndIn1,\n 2: style.slideOutAndIn2,\n 3: style.slideOutAndIn3,\n 4: style.slideOutAndIn4\n};\n\nconst getSlideAnimation = (action, position) => {\n switch (action) {\n case 'unstack':\n return style.slideOutHideAndIn;\n case 'restack':\n return unstackByPosition[position];\n default:\n return null;\n }\n};\n\nconst StackedSlides = ({slides, endReview, validateButton, correctionPopinProps}) => {\n const stackedSlides = [];\n // eslint-disable-next-line fp/no-loops\n for (let slideIndex = 0; slideIndex < TOTAL_SLIDES_STACK; slideIndex++) {\n const slide = slides[_toString(slideIndex)];\n const {animationType, position} = slide;\n\n const slideView = (\n <div\n key={`slide-${slideIndex}`}\n data-name={`slide-${slideIndex}`}\n className={classnames(\n style.slideBase,\n getSlideAnimation(animationType, position),\n position < 0 ? style.hiddenSlide : stylesByPosition[position],\n endReview ? style.endReview : null\n )}\n >\n <ReviewSlide\n {...{\n slideIndex: _toString(slideIndex),\n slide,\n validateButton,\n correctionPopinProps\n }}\n key={slideIndex}\n />\n </div>\n );\n stackedSlides.push(slideView);\n }\n\n return (\n <div\n key=\"stacked-slides-container-y-overflow\"\n className={style.stackedSlidesYAxisOverflowContainer}\n >\n <div\n key=\"stacked-slides-container\"\n data-name=\"stacked-slides-container\"\n className={style.stackedSlidesContainer}\n >\n {stackedSlides}\n </div>\n </div>\n );\n};\n\nStackedSlides.propTypes = propTypes;\n\nexport default StackedSlides;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,oBAAtB;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,kBAAkB,GAAG,CAA3B;AAEP,MAAMC,gBAAgB,GAAG;EACvB,GAAGF,KAAK,CAACG,SADc;EAEvB,GAAGH,KAAK,CAACI,SAFc;EAGvB,GAAGJ,KAAK,CAACK,SAHc;EAIvB,GAAGL,KAAK,CAACM,SAJc;EAKvB,GAAGN,KAAK,CAACO;AALc,CAAzB;AAQA,MAAMC,iBAAiB,GAAG;EACxB,GAAGR,KAAK,CAACS,cADe;EAExB,GAAGT,KAAK,CAACU,cAFe;EAGxB,GAAGV,KAAK,CAACW,cAHe;EAIxB,GAAGX,KAAK,CAACY,cAJe;EAKxB,GAAGZ,KAAK,CAACa;AALe,CAA1B;;AAQA,MAAMC,iBAAiB,GAAG,CAACC,MAAD,EAASC,QAAT,KAAsB;EAC9C,QAAQD,MAAR;IACE,KAAK,SAAL;MACE,OAAOf,KAAK,CAACiB,iBAAb;;IACF,KAAK,SAAL;MACE,OAAOT,iBAAiB,CAACQ,QAAD,CAAxB;;IACF;MACE,OAAO,IAAP;EANJ;AAQD,CATD;;AAWA,MAAME,aAAa,GAAG,CAAC;EAACC,MAAD;EAASC,SAAT;EAAoBC,cAApB;EAAoCC;AAApC,CAAD,KAA+D;EACnF,MAAMC,aAAa,GAAG,EAAtB,CADmF,CAEnF;;EACA,KAAK,IAAIC,UAAU,GAAG,CAAtB,EAAyBA,UAAU,GAAGvB,kBAAtC,EAA0DuB,UAAU,EAApE,EAAwE;IACtE,MAAMC,KAAK,GAAGN,MAAM,CAACtB,SAAS,CAAC2B,UAAD,CAAV,CAApB;;IACA,MAAM;MAACE,aAAD;MAAgBV;IAAhB,IAA4BS,KAAlC;IAEA,MAAME,SAAS,gBACb;MACE,GAAG,EAAG,SAAQH,UAAW,EAD3B;MAEE,aAAY,SAAQA,UAAW,EAFjC;MAGE,SAAS,EAAE5B,UAAU,CACnBI,KAAK,CAAC4B,SADa,EAEnBd,iBAAiB,CAACY,aAAD,EAAgBV,QAAhB,CAFE,EAGnBA,QAAQ,GAAG,CAAX,GAAehB,KAAK,CAAC6B,WAArB,GAAmC3B,gBAAgB,CAACc,QAAD,CAHhC,EAInBI,SAAS,GAAGpB,KAAK,CAACoB,SAAT,GAAqB,IAJX;IAHvB,gBAUE,oBAAC,WAAD;MAEII,UAAU,EAAE3B,SAAS,CAAC2B,UAAD,CAFzB;MAGIC,KAHJ;MAIIJ,cAJJ;MAKIC,oBALJ;MAOE,GAAG,EAAEE;IAPP,EAVF,CADF;IAsBAD,aAAa,CAACO,IAAd,CAAmBH,SAAnB;EACD;;EAED,oBACE;IACE,GAAG,EAAC,qCADN;IAEE,SAAS,EAAE3B,KAAK,CAAC+B;EAFnB,gBAIE;IACE,GAAG,EAAC,0BADN;IAEE,aAAU,0BAFZ;IAGE,SAAS,EAAE/B,KAAK,CAACgC;EAHnB,GAKGT,aALH,CAJF,CADF;AAcD,CA9CD;;AAgDAL,aAAa,CAACnB,SAAd,2CAA0BA,SAA1B;AAEA,eAAemB,aAAf"}
|