@coorpacademy/components 10.28.1 → 10.28.3-alpha.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.
Files changed (141) hide show
  1. package/es/molecule/review-correction-popin/index.d.ts.map +1 -1
  2. package/es/molecule/review-correction-popin/index.js +13 -5
  3. package/es/molecule/review-correction-popin/index.js.map +1 -1
  4. package/es/molecule/skill-card/index.native.d.ts +5 -0
  5. package/es/molecule/skill-card/index.native.d.ts.map +1 -0
  6. package/es/molecule/skill-card/index.native.js +82 -0
  7. package/es/molecule/skill-card/index.native.js.map +1 -0
  8. package/es/molecule/skill-card/prop-types.d.ts +14 -3
  9. package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
  10. package/es/molecule/skill-card/prop-types.js +2 -1
  11. package/es/molecule/skill-card/prop-types.js.map +1 -1
  12. package/es/organism/review-no-skills/index.d.ts +11 -0
  13. package/es/organism/review-no-skills/index.d.ts.map +1 -0
  14. package/es/organism/review-no-skills/index.js +25 -0
  15. package/es/organism/review-no-skills/index.js.map +1 -0
  16. package/es/organism/review-no-skills/index.native.d.ts +5 -0
  17. package/es/organism/review-no-skills/index.native.d.ts.map +1 -0
  18. package/es/organism/review-no-skills/index.native.js +59 -0
  19. package/es/organism/review-no-skills/index.native.js.map +1 -0
  20. package/es/organism/review-no-skills/prop-types.d.ts +13 -0
  21. package/es/organism/review-no-skills/prop-types.d.ts.map +1 -0
  22. package/es/organism/review-no-skills/prop-types.js +8 -0
  23. package/es/organism/review-no-skills/prop-types.js.map +1 -0
  24. package/es/organism/review-no-skills/style.css +73 -0
  25. package/es/organism/review-skills/index.d.ts +5 -3
  26. package/es/organism/review-skills/index.d.ts.map +1 -1
  27. package/es/organism/review-skills/index.js +3 -60
  28. package/es/organism/review-skills/index.js.map +1 -1
  29. package/es/organism/review-skills/index.native.d.ts +5 -0
  30. package/es/organism/review-skills/index.native.d.ts.map +1 -0
  31. package/es/organism/review-skills/index.native.js +46 -0
  32. package/es/organism/review-skills/index.native.js.map +1 -0
  33. package/es/organism/review-skills/prop-types.d.ts +7 -28
  34. package/es/organism/review-skills/prop-types.d.ts.map +1 -1
  35. package/es/organism/review-skills/prop-types.js +4 -16
  36. package/es/organism/review-skills/prop-types.js.map +1 -1
  37. package/es/organism/review-skills/style.css +3 -106
  38. package/es/organism/review-stacked-slides/index.d.ts.map +1 -1
  39. package/es/organism/review-stacked-slides/index.js +10 -3
  40. package/es/organism/review-stacked-slides/index.js.map +1 -1
  41. package/es/organism/review-stacked-slides/style.css +117 -6
  42. package/es/template/app-review/index.d.ts +7 -7
  43. package/es/template/app-review/index.js +1 -5
  44. package/es/template/app-review/index.js.map +1 -1
  45. package/es/template/app-review/index.native.d.ts.map +1 -1
  46. package/es/template/app-review/index.native.js +3 -1
  47. package/es/template/app-review/index.native.js.map +1 -1
  48. package/es/template/app-review/prop-types.d.ts +9 -9
  49. package/es/template/app-review/prop-types.d.ts.map +1 -1
  50. package/es/template/app-review/prop-types.js.map +1 -1
  51. package/es/template/app-review/skills/index.d.ts +6 -2
  52. package/es/template/app-review/skills/index.d.ts.map +1 -1
  53. package/es/template/app-review/skills/index.js +46 -2
  54. package/es/template/app-review/skills/index.js.map +1 -1
  55. package/es/template/app-review/skills/index.native.d.ts +3 -3
  56. package/es/template/app-review/skills/index.native.d.ts.map +1 -1
  57. package/es/template/app-review/skills/index.native.js +26 -176
  58. package/es/template/app-review/skills/index.native.js.map +1 -1
  59. package/es/template/app-review/skills/prop-types.d.ts +14 -38
  60. package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
  61. package/es/template/app-review/skills/prop-types.js +10 -13
  62. package/es/template/app-review/skills/prop-types.js.map +1 -1
  63. package/es/template/app-review/skills/style.css +49 -0
  64. package/es/template/review-dashboard-skills/index.d.ts +7 -7
  65. package/es/template/review-dashboard-skills/index.js +1 -1
  66. package/es/template/review-dashboard-skills/index.js.map +1 -1
  67. package/lib/molecule/review-correction-popin/index.d.ts.map +1 -1
  68. package/lib/molecule/review-correction-popin/index.js +13 -5
  69. package/lib/molecule/review-correction-popin/index.js.map +1 -1
  70. package/lib/molecule/skill-card/index.native.d.ts +5 -0
  71. package/lib/molecule/skill-card/index.native.d.ts.map +1 -0
  72. package/lib/molecule/skill-card/index.native.js +95 -0
  73. package/lib/molecule/skill-card/index.native.js.map +1 -0
  74. package/lib/molecule/skill-card/prop-types.d.ts +14 -3
  75. package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
  76. package/lib/molecule/skill-card/prop-types.js +2 -1
  77. package/lib/molecule/skill-card/prop-types.js.map +1 -1
  78. package/lib/organism/review-no-skills/index.d.ts +11 -0
  79. package/lib/organism/review-no-skills/index.d.ts.map +1 -0
  80. package/lib/organism/review-no-skills/index.js +36 -0
  81. package/lib/organism/review-no-skills/index.js.map +1 -0
  82. package/lib/organism/review-no-skills/index.native.d.ts +5 -0
  83. package/lib/organism/review-no-skills/index.native.d.ts.map +1 -0
  84. package/lib/organism/review-no-skills/index.native.js +72 -0
  85. package/lib/organism/review-no-skills/index.native.js.map +1 -0
  86. package/lib/organism/review-no-skills/prop-types.d.ts +13 -0
  87. package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -0
  88. package/lib/organism/review-no-skills/prop-types.js +17 -0
  89. package/lib/organism/review-no-skills/prop-types.js.map +1 -0
  90. package/lib/organism/review-no-skills/style.css +73 -0
  91. package/lib/organism/review-skills/index.d.ts +5 -3
  92. package/lib/organism/review-skills/index.d.ts.map +1 -1
  93. package/lib/organism/review-skills/index.js +3 -67
  94. package/lib/organism/review-skills/index.js.map +1 -1
  95. package/lib/organism/review-skills/index.native.d.ts +5 -0
  96. package/lib/organism/review-skills/index.native.d.ts.map +1 -0
  97. package/lib/organism/review-skills/index.native.js +57 -0
  98. package/lib/organism/review-skills/index.native.js.map +1 -0
  99. package/lib/organism/review-skills/prop-types.d.ts +7 -28
  100. package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
  101. package/lib/organism/review-skills/prop-types.js +3 -19
  102. package/lib/organism/review-skills/prop-types.js.map +1 -1
  103. package/lib/organism/review-skills/style.css +3 -106
  104. package/lib/organism/review-stacked-slides/index.d.ts.map +1 -1
  105. package/lib/organism/review-stacked-slides/index.js +10 -3
  106. package/lib/organism/review-stacked-slides/index.js.map +1 -1
  107. package/lib/organism/review-stacked-slides/style.css +117 -6
  108. package/lib/template/app-review/index.d.ts +7 -7
  109. package/lib/template/app-review/index.js +1 -5
  110. package/lib/template/app-review/index.js.map +1 -1
  111. package/lib/template/app-review/index.native.d.ts.map +1 -1
  112. package/lib/template/app-review/index.native.js +4 -1
  113. package/lib/template/app-review/index.native.js.map +1 -1
  114. package/lib/template/app-review/prop-types.d.ts +9 -9
  115. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  116. package/lib/template/app-review/prop-types.js.map +1 -1
  117. package/lib/template/app-review/skills/index.d.ts +6 -2
  118. package/lib/template/app-review/skills/index.d.ts.map +1 -1
  119. package/lib/template/app-review/skills/index.js +51 -1
  120. package/lib/template/app-review/skills/index.js.map +1 -1
  121. package/lib/template/app-review/skills/index.native.d.ts +3 -3
  122. package/lib/template/app-review/skills/index.native.d.ts.map +1 -1
  123. package/lib/template/app-review/skills/index.native.js +28 -175
  124. package/lib/template/app-review/skills/index.native.js.map +1 -1
  125. package/lib/template/app-review/skills/prop-types.d.ts +14 -38
  126. package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
  127. package/lib/template/app-review/skills/prop-types.js +12 -17
  128. package/lib/template/app-review/skills/prop-types.js.map +1 -1
  129. package/lib/template/app-review/skills/style.css +49 -0
  130. package/lib/template/review-dashboard-skills/index.d.ts +7 -7
  131. package/lib/template/review-dashboard-skills/index.js +3 -3
  132. package/lib/template/review-dashboard-skills/index.js.map +1 -1
  133. package/package.json +2 -2
  134. package/es/template/app-review/skills/stories.d.ts +0 -1
  135. package/es/template/app-review/skills/stories.d.ts.map +0 -1
  136. package/es/template/app-review/skills/stories.js +0 -15
  137. package/es/template/app-review/skills/stories.js.map +0 -1
  138. package/lib/template/app-review/skills/stories.d.ts +0 -1
  139. package/lib/template/app-review/skills/stories.d.ts.map +0 -1
  140. package/lib/template/app-review/skills/stories.js +0 -16
  141. package/lib/template/app-review/skills/stories.js.map +0 -1
@@ -1,3 +1,7 @@
1
- export default Skills;
2
- import Skills from "../../../organism/review-skills";
1
+ export default ReviewSkills;
2
+ declare function ReviewSkills(props: any): JSX.Element;
3
+ declare namespace ReviewSkills {
4
+ export { propTypes };
5
+ }
6
+ import propTypes from "./prop-types";
3
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.js"],"names":[],"mappings":";AASA,uDAqCC"}
@@ -1,3 +1,47 @@
1
- import Skills from '../../../organism/review-skills';
2
- export default Skills;
1
+ import React from 'react';
2
+ import isEmpty from 'lodash/fp/isEmpty';
3
+ import { NovaCompositionCoorpacademyInformationIcon as InformationIcon } from '@coorpacademy/nova-icons';
4
+ import Loader from '../../../atom/loader';
5
+ import ReviewListSkills from '../../../organism/review-skills';
6
+ import ReviewNoSkills from '../../../organism/review-no-skills';
7
+ import style from './style.css';
8
+ import propTypes from './prop-types';
9
+
10
+ const ReviewSkills = props => {
11
+ const {
12
+ 'aria-label': ariaLabel,
13
+ title,
14
+ listSkills,
15
+ titleNoSkills,
16
+ textNoSkills,
17
+ iconSkillAriaLabel,
18
+ isLoading = false,
19
+ isLoadingAriaLabel
20
+ } = props;
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ className: style.containerReviewSkill,
23
+ "aria-label": ariaLabel
24
+ }, /*#__PURE__*/React.createElement("div", {
25
+ className: style.title
26
+ }, title, /*#__PURE__*/React.createElement(InformationIcon, {
27
+ className: style.informationIcon,
28
+ width: 12,
29
+ height: 12
30
+ })), isLoading ? /*#__PURE__*/React.createElement("div", {
31
+ className: style.loaderContainer
32
+ }, /*#__PURE__*/React.createElement(Loader, {
33
+ className: style.loader,
34
+ theme: "default",
35
+ "aria-label": isLoadingAriaLabel
36
+ })) : /*#__PURE__*/React.createElement("div", null, !isEmpty(listSkills) ? /*#__PURE__*/React.createElement(ReviewListSkills, {
37
+ listSkills: listSkills
38
+ }) : /*#__PURE__*/React.createElement(ReviewNoSkills, {
39
+ titleNoSkills: titleNoSkills,
40
+ textNoSkills: textNoSkills,
41
+ iconSkillAriaLabel: iconSkillAriaLabel
42
+ })));
43
+ };
44
+
45
+ ReviewSkills.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
46
+ export default ReviewSkills;
3
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Skills"],"sources":["../../../../src/template/app-review/skills/index.js"],"sourcesContent":["import Skills from '../../../organism/review-skills';\n\nexport default Skills;\n"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,iCAAnB;AAEA,eAAeA,MAAf"}
1
+ {"version":3,"file":"index.js","names":["React","isEmpty","NovaCompositionCoorpacademyInformationIcon","InformationIcon","Loader","ReviewListSkills","ReviewNoSkills","style","propTypes","ReviewSkills","props","ariaLabel","title","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","isLoading","isLoadingAriaLabel","containerReviewSkill","informationIcon","loaderContainer","loader"],"sources":["../../../../src/template/app-review/skills/index.js"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport {NovaCompositionCoorpacademyInformationIcon as InformationIcon} from '@coorpacademy/nova-icons';\nimport Loader from '../../../atom/loader';\nimport ReviewListSkills from '../../../organism/review-skills';\nimport ReviewNoSkills from '../../../organism/review-no-skills';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ReviewSkills = props => {\n const {\n 'aria-label': ariaLabel,\n title,\n listSkills,\n titleNoSkills,\n textNoSkills,\n iconSkillAriaLabel,\n isLoading = false,\n isLoadingAriaLabel\n } = props;\n\n return (\n <div className={style.containerReviewSkill} aria-label={ariaLabel}>\n <div className={style.title}>\n {title}\n <InformationIcon className={style.informationIcon} width={12} height={12} />\n </div>\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"default\" aria-label={isLoadingAriaLabel} />\n </div>\n ) : (\n <div>\n {!isEmpty(listSkills) ? (\n <ReviewListSkills listSkills={listSkills} />\n ) : (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n )}\n </div>\n )}\n </div>\n );\n};\n\nReviewSkills.propTypes = propTypes;\n\nexport default ReviewSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,SAAQC,0CAA0C,IAAIC,eAAtD,QAA4E,0BAA5E;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,gBAAP,MAA6B,iCAA7B;AACA,OAAOC,cAAP,MAA2B,oCAA3B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAAsB,cAAtB;;AAEA,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJ,cAAcC,SADV;IAEJC,KAFI;IAGJC,UAHI;IAIJC,aAJI;IAKJC,YALI;IAMJC,kBANI;IAOJC,SAAS,GAAG,KAPR;IAQJC;EARI,IASFR,KATJ;EAWA,oBACE;IAAK,SAAS,EAAEH,KAAK,CAACY,oBAAtB;IAA4C,cAAYR;EAAxD,gBACE;IAAK,SAAS,EAAEJ,KAAK,CAACK;EAAtB,GACGA,KADH,eAEE,oBAAC,eAAD;IAAiB,SAAS,EAAEL,KAAK,CAACa,eAAlC;IAAmD,KAAK,EAAE,EAA1D;IAA8D,MAAM,EAAE;EAAtE,EAFF,CADF,EAKGH,SAAS,gBACR;IAAK,SAAS,EAAEV,KAAK,CAACc;EAAtB,gBACE,oBAAC,MAAD;IAAQ,SAAS,EAAEd,KAAK,CAACe,MAAzB;IAAiC,KAAK,EAAC,SAAvC;IAAiD,cAAYJ;EAA7D,EADF,CADQ,gBAKR,iCACG,CAACjB,OAAO,CAACY,UAAD,CAAR,gBACC,oBAAC,gBAAD;IAAkB,UAAU,EAAEA;EAA9B,EADD,gBAGC,oBAAC,cAAD;IACE,aAAa,EAAEC,aADjB;IAEE,YAAY,EAAEC,YAFhB;IAGE,kBAAkB,EAAEC;EAHtB,EAJJ,CAVJ,CADF;AAyBD,CArCD;;AAuCAP,YAAY,CAACD,SAAb,2CAAyBA,SAAzB;AAEA,eAAeC,YAAf"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkillsProps } from './prop-types';
3
- declare const Skills: (props: SkillsProps) => JSX.Element | null;
4
- export default Skills;
2
+ import { ReviewSkillsProps } from './prop-types';
3
+ declare const ReviewSkills: (props: ReviewSkillsProps) => JSX.Element | null;
4
+ export default ReviewSkills;
5
5
  //# sourceMappingURL=index.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAyC,WAAW,EAAC,MAAM,cAAc,CAAC;AAqLjF,QAAA,MAAM,MAAM,UAAW,WAAW,uBAuBjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
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;AAyB/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBA4C7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import { View, FlatList, Pressable, StyleSheet, Text } from 'react-native';
3
- import { NovaCompositionNavigationArrowRight as ArrowRight, NovaCompositionCoorpacademyEmptyStateHomeRevision as EmptyStateHomeRevision } from '@coorpacademy/nova-icons';
4
- import { useTemplateContext } from '../template-context';
2
+ import { Text, View, StyleSheet } from 'react-native';
5
3
  import { HEADER_HEIGHT } from '../../../organism/header-v2/index.native';
4
+ import ReviewNoSkills from '../../../organism/review-no-skills/index.native';
5
+ import ReviewListSkills from '../../../organism/review-skills/index.native';
6
+ import { useTemplateContext } from '../template-context';
6
7
 
7
8
  const createStyleSheet = theme => StyleSheet.create({
8
9
  container: {
@@ -18,176 +19,19 @@ const createStyleSheet = theme => StyleSheet.create({
18
19
  color: theme.colors.text.primary,
19
20
  marginBottom: theme.spacing.base,
20
21
  marginTop: theme.spacing.small
21
- },
22
- subtitle: {
23
- fontSize: theme.fontSize.xlarge,
24
- color: theme.colors.text.primary,
25
- marginBottom: theme.spacing.tiny
26
- },
27
- text: {
28
- fontSize: 16,
29
- lineHeight: 22,
30
- color: theme.colors.text.primary,
31
- opacity: 0.7,
32
- marginBottom: theme.spacing.base
33
- },
34
- noSkillsImage: {
35
- flex: 1,
36
- alignSelf: 'center',
37
- width: 320,
38
- height: 300
39
- },
40
- skills: {
41
- paddingBottom: 100
42
- },
43
- skill: {
44
- display: 'flex',
45
- flexDirection: 'row',
46
- overflow: 'hidden',
47
- alignItems: 'center',
48
- height: 118,
49
- borderRadius: 8,
50
- backgroundColor: theme.colors.gray.lighter,
51
- marginTop: theme.spacing.micro,
52
- marginBottom: theme.spacing.micro,
53
- padding: theme.spacing.base
54
- },
55
- skillTexts: {
56
- flex: 1,
57
- flexDirection: 'column'
58
- },
59
- skillTitle: {
60
- fontSize: 18,
61
- fontWeight: '600',
62
- lineHeight: 22,
63
- color: theme.colors.text.primary,
64
- marginBottom: theme.spacing.tiny
65
- },
66
- skillInfo: {
67
- fontSize: 12,
68
- lineHeight: 16,
69
- color: theme.colors.gray.medium
70
- }
71
- }); // -----------------------------------------------------------------------------
72
-
73
-
74
- const onSelectSkill = title => () => {
75
- // eslint-disable-next-line no-console
76
- console.log('pressed on', {
77
- title
78
- });
79
- };
80
-
81
- const Skill = ({
82
- title,
83
- info
84
- }) => {
85
- const templateContext = useTemplateContext();
86
- const [styleSheet, setStylesheet] = useState(null);
87
- const {
88
- theme
89
- } = templateContext;
90
- useEffect(() => {
91
- const _stylesheet = createStyleSheet(theme);
92
-
93
- setStylesheet(_stylesheet);
94
- }, [theme]);
95
-
96
- if (!styleSheet) {
97
- return null;
98
- }
99
-
100
- return /*#__PURE__*/React.createElement(Pressable, {
101
- style: styleSheet.skill,
102
- onPress: onSelectSkill(title)
103
- }, /*#__PURE__*/React.createElement(View, {
104
- style: styleSheet.skillTexts
105
- }, /*#__PURE__*/React.createElement(Text, {
106
- style: styleSheet.skillTitle
107
- }, title), /*#__PURE__*/React.createElement(Text, {
108
- style: styleSheet.skillInfo
109
- }, info)), /*#__PURE__*/React.createElement(ArrowRight, {
110
- color: "#ededed",
111
- height: 20,
112
- width: 20
113
- }));
114
- }; // -----------------------------------------------------------------------------
115
-
116
-
117
- const Item = ({
118
- item: {
119
- title,
120
- info
121
22
  }
122
- }) => /*#__PURE__*/React.createElement(Skill, {
123
- title: title,
124
- info: info
125
23
  });
126
24
 
127
- const List = props => {
128
- const templateContext = useTemplateContext();
129
- const [styleSheet, setStylesheet] = useState(null);
130
- const {
131
- theme
132
- } = templateContext;
133
- const {
134
- skills
135
- } = props;
136
- useEffect(() => {
137
- const _stylesheet = createStyleSheet(theme);
138
-
139
- setStylesheet(_stylesheet);
140
- }, [theme]);
141
-
142
- if (!styleSheet) {
143
- return null;
144
- }
145
-
146
- const formattedDataList = [];
147
- skills.map(skill => formattedDataList.push({
148
- title: skill.skillTitle,
149
- info: skill.skillAriaLabel
150
- }));
151
- return /*#__PURE__*/React.createElement(FlatList, {
152
- contentContainerStyle: styleSheet.skills,
153
- data: formattedDataList,
154
- renderItem: Item
155
- });
156
- }; // -----------------------------------------------------------------------------
157
-
158
-
159
- const NoSkills = () => {
160
- const templateContext = useTemplateContext();
161
- const [styleSheet, setStylesheet] = useState(null);
162
- const {
163
- theme,
164
- translations
165
- } = templateContext;
166
- useEffect(() => {
167
- const _stylesheet = createStyleSheet(theme);
168
-
169
- setStylesheet(_stylesheet);
170
- }, [theme]);
171
-
172
- if (!styleSheet) {
173
- return null;
174
- }
175
-
176
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
177
- style: styleSheet.subtitle
178
- }, translations.appReview?.noSkills?.title), /*#__PURE__*/React.createElement(Text, {
179
- style: styleSheet.text
180
- }, translations.appReview?.noSkills?.text), /*#__PURE__*/React.createElement(EmptyStateHomeRevision, {
181
- style: styleSheet.noSkillsImage
182
- }));
183
- }; // -----------------------------------------------------------------------------
184
- // title --> translations.revision.home.title
185
-
186
-
187
- const Skills = props => {
25
+ const ReviewSkills = props => {
188
26
  const {
27
+ 'aria-label': ariaLabel,
189
28
  title,
190
- listSkills
29
+ isLoading,
30
+ isLoadingAriaLabel,
31
+ listSkills,
32
+ titleNoSkills,
33
+ textNoSkills,
34
+ iconSkillAriaLabel
191
35
  } = props;
192
36
  const templateContext = useTemplateContext();
193
37
  const [styleSheet, setStylesheet] = useState(null);
@@ -198,21 +42,27 @@ const Skills = props => {
198
42
  const _stylesheet = createStyleSheet(theme);
199
43
 
200
44
  setStylesheet(_stylesheet);
201
- }, [theme]); // ------------------------------------
45
+ }, [theme]);
202
46
 
203
47
  if (!styleSheet) {
204
48
  return null;
205
49
  }
206
50
 
207
51
  return /*#__PURE__*/React.createElement(View, {
208
- style: styleSheet.container
52
+ style: styleSheet.container,
53
+ accessibilityLabel: ariaLabel
209
54
  }, /*#__PURE__*/React.createElement(Text, {
210
55
  style: styleSheet.title
211
- }, title), !listSkills || listSkills.length === 0 ? /*#__PURE__*/React.createElement(NoSkills, null) : /*#__PURE__*/React.createElement(List, {
212
- skills: listSkills
213
- }));
214
- }; // -----------------------------------------------------------------------------
215
-
56
+ }, title), isLoading ? /*#__PURE__*/React.createElement(Text, {
57
+ accessibilityLabel: isLoadingAriaLabel
58
+ }, "Loading") : /*#__PURE__*/React.createElement(View, null, !listSkills || listSkills.length === 0 ? /*#__PURE__*/React.createElement(ReviewNoSkills, {
59
+ titleNoSkills: titleNoSkills,
60
+ textNoSkills: textNoSkills,
61
+ iconSkillAriaLabel: iconSkillAriaLabel
62
+ }) : /*#__PURE__*/React.createElement(ReviewListSkills, {
63
+ listSkills: listSkills
64
+ })));
65
+ };
216
66
 
217
- export default Skills;
67
+ export default ReviewSkills;
218
68
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["React","useState","useEffect","View","FlatList","Pressable","StyleSheet","Text","NovaCompositionNavigationArrowRight","ArrowRight","NovaCompositionCoorpacademyEmptyStateHomeRevision","EmptyStateHomeRevision","useTemplateContext","HEADER_HEIGHT","createStyleSheet","theme","create","container","flex","padding","paddingTop","backgroundColor","colors","white","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","subtitle","tiny","opacity","noSkillsImage","alignSelf","width","height","skills","paddingBottom","skill","display","flexDirection","overflow","alignItems","borderRadius","gray","lighter","micro","skillTexts","skillTitle","skillInfo","medium","onSelectSkill","console","log","Skill","info","templateContext","styleSheet","setStylesheet","_stylesheet","Item","item","List","props","formattedDataList","map","push","skillAriaLabel","NoSkills","translations","appReview","noSkills","Skills","listSkills","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {View, FlatList, Pressable, StyleSheet, Text, ViewStyle, TextStyle} from 'react-native';\nimport {\n NovaCompositionNavigationArrowRight as ArrowRight,\n NovaCompositionCoorpacademyEmptyStateHomeRevision as EmptyStateHomeRevision\n} from '@coorpacademy/nova-icons';\nimport {useTemplateContext} from '../template-context';\nimport {Theme} from '../../../variables/theme.native';\n\nimport {HEADER_HEIGHT} from '../../../organism/header-v2/index.native';\nimport {ItemProps, ListSkillsProps, SkillProps, SkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n subtitle: TextStyle;\n text: TextStyle;\n noSkillsImage: ViewStyle;\n skills: ViewStyle;\n skill: ViewStyle;\n skillTexts: TextStyle;\n skillTitle: TextStyle;\n skillInfo: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\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 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 skills: {paddingBottom: 100},\n skill: {\n display: 'flex',\n flexDirection: 'row',\n overflow: 'hidden',\n alignItems: 'center',\n height: 118,\n borderRadius: 8,\n backgroundColor: theme.colors.gray.lighter,\n marginTop: theme.spacing.micro,\n marginBottom: theme.spacing.micro,\n padding: theme.spacing.base\n },\n skillTexts: {\n flex: 1,\n flexDirection: 'column'\n },\n skillTitle: {\n fontSize: 18,\n fontWeight: '600',\n lineHeight: 22,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.tiny\n },\n skillInfo: {\n fontSize: 12,\n lineHeight: 16,\n color: theme.colors.gray.medium\n }\n });\n\n// -----------------------------------------------------------------------------\n\nconst onSelectSkill = (title: string) => () => {\n // eslint-disable-next-line no-console\n console.log('pressed on', {title});\n};\n\nconst Skill = ({title, info}: SkillProps) => {\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 <Pressable style={styleSheet.skill} onPress={onSelectSkill(title)}>\n <View style={styleSheet.skillTexts}>\n <Text style={styleSheet.skillTitle}>{title}</Text>\n <Text style={styleSheet.skillInfo}>{info}</Text>\n </View>\n <ArrowRight color=\"#ededed\" height={20} width={20} />\n </Pressable>\n );\n};\n\n// -----------------------------------------------------------------------------\n\nconst Item = ({item: {title, info}}: ItemProps) => <Skill title={title} info={info} />;\n\ntype ItemDataType = {\n title: string;\n info: string;\n};\n\nconst List = (props: {skills: Array<ListSkillsProps>}) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n const {skills} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const formattedDataList: Array<ItemDataType> = [];\n skills.map(skill =>\n formattedDataList.push({\n title: skill.skillTitle,\n info: skill.skillAriaLabel\n })\n );\n\n return (\n <FlatList\n contentContainerStyle={styleSheet.skills}\n data={formattedDataList}\n renderItem={Item}\n />\n );\n};\n\n// -----------------------------------------------------------------------------\n\nconst NoSkills = () => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme, translations} = 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 <>\n <Text style={styleSheet.subtitle}>{translations.appReview?.noSkills?.title}</Text>\n <Text style={styleSheet.text}>{translations.appReview?.noSkills?.text}</Text>\n <EmptyStateHomeRevision style={styleSheet.noSkillsImage} />\n </>\n );\n};\n\n// -----------------------------------------------------------------------------\n\n// title --> translations.revision.home.title\nconst Skills = (props: SkillsProps) => {\n const {title, listSkills} = 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 // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.container}>\n <Text style={styleSheet.title}>{title}</Text>\n {!listSkills || listSkills.length === 0 ? <NoSkills /> : <List skills={listSkills} />}\n </View>\n );\n};\n\n// -----------------------------------------------------------------------------\n\nexport default Skills;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,SAAzB,QAAyC,OAAzC;AACA,SAAQC,IAAR,EAAcC,QAAd,EAAwBC,SAAxB,EAAmCC,UAAnC,EAA+CC,IAA/C,QAAgF,cAAhF;AACA,SACEC,mCAAmC,IAAIC,UADzC,EAEEC,iDAAiD,IAAIC,sBAFvD,QAGO,0BAHP;AAIA,SAAQC,kBAAR,QAAiC,qBAAjC;AAGA,SAAQC,aAAR,QAA4B,0CAA5B;;AAgBA,MAAMC,gBAAgB,GAAIC,KAAD,IACvBT,UAAU,CAACU,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,OAAO,EAAE,EAFA;IAGTC,UAAU,EAAEP,aAAa,GAAG,EAHnB;IAITQ,eAAe,EAAEN,KAAK,CAACO,MAAN,CAAaC;EAJrB,CADK;EAOhBC,KAAK,EAAE;IACLC,QAAQ,EAAEV,KAAK,CAACU,QAAN,CAAeC,MADpB;IAELC,UAAU,EAAEZ,KAAK,CAACY,UAAN,CAAiBC,IAFxB;IAGLC,UAAU,EAAE,EAHP;IAILC,KAAK,EAAEf,KAAK,CAACO,MAAN,CAAaS,IAAb,CAAkBC,OAJpB;IAKLC,YAAY,EAAElB,KAAK,CAACmB,OAAN,CAAcC,IALvB;IAMLC,SAAS,EAAErB,KAAK,CAACmB,OAAN,CAAcG;EANpB,CAP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AEG,CAAC0D,UAAD,IAAeA,UAAU,CAACC,MAAX,KAAsB,CAArC,gBAAyC,oBAAC,QAAD,OAAzC,gBAAwD,oBAAC,IAAD;IAAM,MAAM,EAAED;EAAd,EAF3D,CADF;AAMD,CAvBD,C,CAyBA;;;AAEA,eAAeD,MAAf"}
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","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 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,KAAD,IACvBN,UAAU,CAACO,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,OAAO,EAAE,EAFA;IAGTC,UAAU,EAAEV,aAAa,GAAG,EAHnB;IAITW,eAAe,EAAEN,KAAK,CAACO,MAAN,CAAaC;EAJrB,CADK;EAOhBC,KAAK,EAAE;IACLC,QAAQ,EAAEV,KAAK,CAACU,QAAN,CAAeC,MADpB;IAELC,UAAU,EAAEZ,KAAK,CAACY,UAAN,CAAiBC,IAFxB;IAGLC,UAAU,EAAE,EAHP;IAILC,KAAK,EAAEf,KAAK,CAACO,M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f"}
@@ -1,17 +1,12 @@
1
1
  import PropTypes from 'prop-types';
2
- export declare const SkillPropsTypes: {
2
+ import { NoSkillsProps } from '../../../organism/review-no-skills/prop-types';
3
+ import { ReviewSkills } from '../../../organism/review-skills/prop-types';
4
+ declare const propTypes: {
5
+ 'aria-label': PropTypes.Requireable<string>;
3
6
  title: PropTypes.Requireable<string>;
4
- info: PropTypes.Requireable<string>;
5
- };
6
- export declare const ItemPropsTypes: {
7
- item: PropTypes.Requireable<PropTypes.InferProps<{
8
- title: PropTypes.Requireable<string>;
9
- info: PropTypes.Requireable<string>;
10
- isExtraSpace: PropTypes.Requireable<boolean>;
11
- }>>;
12
- };
13
- export declare const ListPropTypes: {
14
- skills: PropTypes.Requireable<(PropTypes.InferProps<{
7
+ isLoading: PropTypes.Requireable<boolean>;
8
+ isLoadingAriaLabel: PropTypes.Requireable<string>;
9
+ listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
15
10
  'aria-label': PropTypes.Requireable<string>;
16
11
  skillTitle: PropTypes.Requireable<string>;
17
12
  skillAriaLabel: PropTypes.Requireable<string>;
@@ -22,34 +17,15 @@ export declare const ListPropTypes: {
22
17
  isCustom: PropTypes.Requireable<boolean>;
23
18
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
24
19
  }> | null | undefined)[]>;
20
+ titleNoSkills: PropTypes.Requireable<string>;
21
+ textNoSkills: PropTypes.Requireable<string>;
22
+ iconSkillAriaLabel: PropTypes.Requireable<string>;
25
23
  };
26
- export declare type SkillProps = {
27
- title: string;
28
- info: string;
29
- };
30
- export declare type ItemProps = {
31
- item: {
32
- title: string;
33
- info: string;
34
- };
35
- };
36
- export declare type NoSkillsProps = {
37
- titleNoSkills: string;
38
- textNoSkills: string;
39
- };
40
- export declare type ListSkillsProps = {
41
- skillTitle: string;
42
- isCustom: boolean;
24
+ export default propTypes;
25
+ export declare type ReviewSkillsProps = NoSkillsProps & ReviewSkills & {
43
26
  'aria-label': string;
44
- skillAriaLabel: string;
45
- buttonLabel: string;
46
- buttonAriaLabel: string;
47
- reviseLabel: string;
48
- reviseAriaLabel: string;
49
- onClick: () => void;
50
- };
51
- export declare type SkillsProps = {
52
27
  title: string;
53
- listSkills: Array<ListSkillsProps>;
28
+ isLoading: boolean;
29
+ isLoadingAriaLabel: string;
54
30
  };
55
31
  //# sourceMappingURL=prop-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;CAEzB,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAC;CACrC,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACpC,CAAC"}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,aAAa,EAAC,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AAExE,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CASd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,iBAAiB,GAAG,aAAa,GAC3C,YAAY,GAAG;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1,17 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
- import { ListSkillsPropTypes } from '../../../organism/review-skills/prop-types';
3
- export const SkillPropsTypes = {
2
+ import SkillCardPropsType from '../../../molecule/skill-card/prop-types';
3
+ const propTypes = {
4
+ 'aria-label': PropTypes.string,
4
5
  title: PropTypes.string,
5
- info: PropTypes.string
6
- };
7
- export const ItemPropsTypes = {
8
- item: PropTypes.shape({
9
- title: PropTypes.string,
10
- info: PropTypes.string,
11
- isExtraSpace: PropTypes.bool
12
- })
13
- };
14
- export const ListPropTypes = {
15
- skills: ListSkillsPropTypes.listSkills
6
+ isLoading: PropTypes.bool,
7
+ isLoadingAriaLabel: PropTypes.string,
8
+ listSkills: PropTypes.arrayOf(PropTypes.shape(SkillCardPropsType)),
9
+ titleNoSkills: PropTypes.string,
10
+ textNoSkills: PropTypes.string,
11
+ iconSkillAriaLabel: PropTypes.string
16
12
  };
13
+ export default propTypes;
17
14
  //# sourceMappingURL=prop-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["PropTypes","ListSkillsPropTypes","SkillPropsTypes","title","string","info","ItemPropsTypes","item","shape","isExtraSpace","bool","ListPropTypes","skills","listSkills"],"sources":["../../../../src/template/app-review/skills/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ListSkillsPropTypes} from '../../../organism/review-skills/prop-types';\n\nexport const SkillPropsTypes = {\n title: PropTypes.string,\n info: PropTypes.string\n};\n\nexport const ItemPropsTypes = {\n item: PropTypes.shape({\n title: PropTypes.string,\n info: PropTypes.string,\n isExtraSpace: PropTypes.bool\n })\n};\n\nexport const ListPropTypes = {\n skills: ListSkillsPropTypes.listSkills\n};\n\nexport type SkillProps = {\n title: string;\n info: string;\n};\n\nexport type ItemProps = {\n item: {title: string; info: string};\n};\n\nexport type NoSkillsProps = {\n titleNoSkills: string;\n textNoSkills: string;\n};\n\nexport type ListSkillsProps = {\n skillTitle: string;\n isCustom: boolean;\n 'aria-label': string;\n skillAriaLabel: string;\n buttonLabel: string;\n buttonAriaLabel: string;\n reviseLabel: string;\n reviseAriaLabel: string;\n onClick: () => void;\n};\n\nexport type SkillsProps = {\n title: string;\n listSkills: Array<ListSkillsProps>;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAAQC,mBAAR,QAAkC,4CAAlC;AAEA,OAAO,MAAMC,eAAe,GAAG;EAC7BC,KAAK,EAAEH,SAAS,CAACI,MADY;EAE7BC,IAAI,EAAEL,SAAS,CAACI;AAFa,CAAxB;AAKP,OAAO,MAAME,cAAc,GAAG;EAC5BC,IAAI,EAAEP,SAAS,CAACQ,KAAV,CAAgB;IACpBL,KAAK,EAAEH,SAAS,CAACI,MADG;IAEpBC,IAAI,EAAEL,SAAS,CAACI,MAFI;IAGpBK,YAAY,EAAET,SAAS,CAACU;EAHJ,CAAhB;AADsB,CAAvB;AAQP,OAAO,MAAMC,aAAa,GAAG;EAC3BC,MAAM,EAAEX,mBAAmB,CAACY;AADD,CAAtB"}
1
+ {"version":3,"file":"prop-types.js","names":["PropTypes","SkillCardPropsType","propTypes","string","title","isLoading","bool","isLoadingAriaLabel","listSkills","arrayOf","shape","titleNoSkills","textNoSkills","iconSkillAriaLabel"],"sources":["../../../../src/template/app-review/skills/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport SkillCardPropsType from '../../../molecule/skill-card/prop-types';\nimport {NoSkillsProps} from '../../../organism/review-no-skills/prop-types';\nimport {ReviewSkills} from '../../../organism/review-skills/prop-types';\n\nconst propTypes = {\n 'aria-label': PropTypes.string,\n title: PropTypes.string,\n isLoading: PropTypes.bool,\n isLoadingAriaLabel: PropTypes.string,\n listSkills: PropTypes.arrayOf(PropTypes.shape(SkillCardPropsType)),\n titleNoSkills: PropTypes.string,\n textNoSkills: PropTypes.string,\n iconSkillAriaLabel: PropTypes.string\n};\n\nexport default propTypes;\n\nexport type ReviewSkillsProps = NoSkillsProps &\n ReviewSkills & {\n 'aria-label': string;\n title: string;\n isLoading: boolean;\n isLoadingAriaLabel: string;\n };\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,yCAA/B;AAIA,MAAMC,SAAS,GAAG;EAChB,cAAcF,SAAS,CAACG,MADR;EAEhBC,KAAK,EAAEJ,SAAS,CAACG,MAFD;EAGhBE,SAAS,EAAEL,SAAS,CAACM,IAHL;EAIhBC,kBAAkB,EAAEP,SAAS,CAACG,MAJd;EAKhBK,UAAU,EAAER,SAAS,CAACS,OAAV,CAAkBT,SAAS,CAACU,KAAV,CAAgBT,kBAAhB,CAAlB,CALI;EAMhBU,aAAa,EAAEX,SAAS,CAACG,MANT;EAOhBS,YAAY,EAAEZ,SAAS,CAACG,MAPR;EAQhBU,kBAAkB,EAAEb,SAAS,CAACG;AARd,CAAlB;AAWA,eAAeD,SAAf"}
@@ -0,0 +1,49 @@
1
+ @value breakpoints: "../../../variables/breakpoints.css";
2
+ @value mobile from breakpoints;
3
+ @value colors: "../../../variables/colors.css";
4
+ @value cm_blue_900 from colors;
5
+ @value cm_grey_500 from colors;
6
+
7
+ .textBase {
8
+ color: cm_blue_900;
9
+ font-family: "Gilroy";
10
+ font-style: normal;
11
+ user-select: none;
12
+ }
13
+
14
+ .containerReviewSkill {
15
+ width: 100%;
16
+ position: relative;
17
+ }
18
+
19
+ .title {
20
+ composes: textBase;
21
+ font-size: 20px;
22
+ font-weight: 600;
23
+ line-height: 28px;
24
+ margin-left: 40px;
25
+ }
26
+
27
+ .informationIcon {
28
+ color: cm_grey_500;
29
+ padding-left: 8px;
30
+ }
31
+
32
+ .loaderContainer {
33
+ width: 100%;
34
+ height: 50vh;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ }
39
+
40
+ .loader {
41
+ height: 60px;
42
+ width: 60px;
43
+ }
44
+
45
+ @media mobile {
46
+ .title {
47
+ margin-left: 0;
48
+ }
49
+ }
@@ -27,9 +27,10 @@ declare namespace ReviewDashboardSkills {
27
27
  }>>;
28
28
  }>>;
29
29
  reviewSkills: PropTypes.Requireable<PropTypes.InferProps<{
30
- titleNoSkills: PropTypes.Requireable<string>;
31
- textNoSkills: PropTypes.Requireable<string>;
32
- iconSkillAriaLabel: PropTypes.Requireable<string>;
30
+ 'aria-label': PropTypes.Requireable<string>;
31
+ title: PropTypes.Requireable<string>;
32
+ isLoading: PropTypes.Requireable<boolean>;
33
+ isLoadingAriaLabel: PropTypes.Requireable<string>;
33
34
  listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
34
35
  'aria-label': PropTypes.Requireable<string>;
35
36
  skillTitle: PropTypes.Requireable<string>;
@@ -41,10 +42,9 @@ declare namespace ReviewDashboardSkills {
41
42
  isCustom: PropTypes.Requireable<boolean>;
42
43
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
43
44
  }> | null | undefined)[]>;
44
- 'aria-label': PropTypes.Requireable<string>;
45
- title: PropTypes.Validator<string>;
46
- isLoading: PropTypes.Requireable<boolean>;
47
- isLoadingAriaLabel: PropTypes.Requireable<string>;
45
+ titleNoSkills: PropTypes.Requireable<string>;
46
+ textNoSkills: PropTypes.Requireable<string>;
47
+ iconSkillAriaLabel: PropTypes.Requireable<string>;
48
48
  }>>;
49
49
  };
50
50
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import ReviewPresentation from '../../atom/review-presentation';
4
- import ReviewSkills from '../../organism/review-skills';
4
+ import ReviewSkills from '../app-review/skills';
5
5
  import style from './style.css';
6
6
 
7
7
  const ReviewDashboardSkills = props => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","ReviewPresentation","ReviewSkills","style","ReviewDashboardSkills","props","ariaLabel","reviewPresentation","reviewSkills","reviewDashboardContainer","reviewPresentationContainer","reviewSkillsContainer","propTypes","string","shape"],"sources":["../../../src/template/review-dashboard-skills/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ReviewPresentation from '../../atom/review-presentation';\nimport ReviewSkills from '../../organism/review-skills';\nimport style from './style.css';\n\nconst ReviewDashboardSkills = props => {\n const {'aria-label': ariaLabel, reviewPresentation, reviewSkills} = props;\n\n return (\n <div className={style.reviewDashboardContainer} aria-label={ariaLabel}>\n <div className={style.reviewPresentationContainer}>\n <ReviewPresentation {...reviewPresentation} />\n </div>\n <div className={style.reviewSkillsContainer}>\n <ReviewSkills {...reviewSkills} />\n </div>\n </div>\n );\n};\n\nReviewDashboardSkills.propTypes = {\n 'aria-label': PropTypes.string,\n reviewPresentation: PropTypes.shape(ReviewPresentation.propTypes),\n reviewSkills: PropTypes.shape(ReviewSkills.propTypes)\n};\nexport default ReviewDashboardSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,gCAA/B;AACA,OAAOC,YAAP,MAAyB,8BAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,qBAAqB,GAAGC,KAAK,IAAI;EACrC,MAAM;IAAC,cAAcC,SAAf;IAA0BC,kBAA1B;IAA8CC;EAA9C,IAA8DH,KAApE;EAEA,oBACE;IAAK,SAAS,EAAEF,KAAK,CAACM,wBAAtB;IAAgD,cAAYH;EAA5D,gBACE;IAAK,SAAS,EAAEH,KAAK,CAACO;EAAtB,gBACE,oBAAC,kBAAD,EAAwBH,kBAAxB,CADF,CADF,eAIE;IAAK,SAAS,EAAEJ,KAAK,CAACQ;EAAtB,gBACE,oBAAC,YAAD,EAAkBH,YAAlB,CADF,CAJF,CADF;AAUD,CAbD;;AAeAJ,qBAAqB,CAACQ,SAAtB,2CAAkC;EAChC,cAAcZ,SAAS,CAACa,MADQ;EAEhCN,kBAAkB,EAAEP,SAAS,CAACc,KAAV,CAAgBb,kBAAkB,CAACW,SAAnC,CAFY;EAGhCJ,YAAY,EAAER,SAAS,CAACc,KAAV,CAAgBZ,YAAY,CAACU,SAA7B;AAHkB,CAAlC;AAKA,eAAeR,qBAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","ReviewPresentation","ReviewSkills","style","ReviewDashboardSkills","props","ariaLabel","reviewPresentation","reviewSkills","reviewDashboardContainer","reviewPresentationContainer","reviewSkillsContainer","propTypes","string","shape"],"sources":["../../../src/template/review-dashboard-skills/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ReviewPresentation from '../../atom/review-presentation';\nimport ReviewSkills from '../app-review/skills';\nimport style from './style.css';\n\nconst ReviewDashboardSkills = props => {\n const {'aria-label': ariaLabel, reviewPresentation, reviewSkills} = props;\n\n return (\n <div className={style.reviewDashboardContainer} aria-label={ariaLabel}>\n <div className={style.reviewPresentationContainer}>\n <ReviewPresentation {...reviewPresentation} />\n </div>\n <div className={style.reviewSkillsContainer}>\n <ReviewSkills {...reviewSkills} />\n </div>\n </div>\n );\n};\n\nReviewDashboardSkills.propTypes = {\n 'aria-label': PropTypes.string,\n reviewPresentation: PropTypes.shape(ReviewPresentation.propTypes),\n reviewSkills: PropTypes.shape(ReviewSkills.propTypes)\n};\nexport default ReviewDashboardSkills;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,gCAA/B;AACA,OAAOC,YAAP,MAAyB,sBAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,qBAAqB,GAAGC,KAAK,IAAI;EACrC,MAAM;IAAC,cAAcC,SAAf;IAA0BC,kBAA1B;IAA8CC;EAA9C,IAA8DH,KAApE;EAEA,oBACE;IAAK,SAAS,EAAEF,KAAK,CAACM,wBAAtB;IAAgD,cAAYH;EAA5D,gBACE;IAAK,SAAS,EAAEH,KAAK,CAACO;EAAtB,gBACE,oBAAC,kBAAD,EAAwBH,kBAAxB,CADF,CADF,eAIE;IAAK,SAAS,EAAEJ,KAAK,CAACQ;EAAtB,gBACE,oBAAC,YAAD,EAAkBH,YAAlB,CADF,CAJF,CADF;AAUD,CAbD;;AAeAJ,qBAAqB,CAACQ,SAAtB,2CAAkC;EAChC,cAAcZ,SAAS,CAACa,MADQ;EAEhCN,kBAAkB,EAAEP,SAAS,CAACc,KAAV,CAAgBb,kBAAkB,CAACW,SAAnC,CAFY;EAGhCJ,YAAY,EAAER,SAAS,CAACc,KAAV,CAAgBZ,YAAY,CAACU,SAA7B;AAHkB,CAAlC;AAKA,eAAeR,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/review-correction-popin/index.js"],"names":[],"mappings":";AAgCA,gEAgDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/review-correction-popin/index.js"],"names":[],"mappings":";AAoCA,gEAmDC"}
@@ -36,9 +36,13 @@ const buildKlfButton = klf => {
36
36
  className: _style.default.klfButton
37
37
  }))), /*#__PURE__*/_react.default.createElement("div", {
38
38
  className: _style.default.toolTip
39
- }, /*#__PURE__*/_react.default.createElement("div", {
40
- className: _style.default.tooltipText
41
- }, klf.tooltip)));
39
+ }, /*#__PURE__*/_react.default.createElement("span", {
40
+ className: _style.default.tooltipText // eslint-disable-next-line react/no-danger
41
+ ,
42
+ dangerouslySetInnerHTML: {
43
+ __html: klf.tooltip
44
+ }
45
+ })));
42
46
  };
43
47
 
44
48
  const ReviewCorrectionPopin = props => {
@@ -87,8 +91,12 @@ const ReviewCorrectionPopin = props => {
87
91
  "aria-label": information.label
88
92
  }, information.label)), /*#__PURE__*/_react.default.createElement("span", {
89
93
  className: _style.default.message,
90
- "aria-label": information.message
91
- }, information.message))), /*#__PURE__*/_react.default.createElement("div", {
94
+ "aria-label": information.message // eslint-disable-next-line react/no-danger
95
+ ,
96
+ dangerouslySetInnerHTML: {
97
+ __html: information.message
98
+ }
99
+ }))), /*#__PURE__*/_react.default.createElement("div", {
92
100
  className: type === 'right' ? _style.default.actions : _style.default.actionsWrong
93
101
  }, cta, /*#__PURE__*/_react.default.createElement("div", {
94
102
  className: _style.default.nextQuestionContainer