@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.
Files changed (170) hide show
  1. package/es/atom/provider/index.d.ts.map +1 -1
  2. package/es/atom/provider/index.js +0 -5
  3. package/es/atom/provider/index.js.map +1 -1
  4. package/es/atom/review-presentation/style.css +2 -3
  5. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  6. package/es/molecule/cm-popin/index.js +1 -1
  7. package/es/molecule/cm-popin/index.js.map +1 -1
  8. package/es/molecule/cm-popin/style.css +9 -1
  9. package/es/molecule/review-correction-popin/index.d.ts.map +1 -1
  10. package/es/molecule/review-correction-popin/index.js +13 -5
  11. package/es/molecule/review-correction-popin/index.js.map +1 -1
  12. package/es/molecule/review-correction-popin/style.css +2 -2
  13. package/es/molecule/skill-card/index.native.d.ts +5 -0
  14. package/es/molecule/skill-card/index.native.d.ts.map +1 -0
  15. package/es/molecule/skill-card/index.native.js +82 -0
  16. package/es/molecule/skill-card/index.native.js.map +1 -0
  17. package/es/molecule/skill-card/prop-types.d.ts +14 -3
  18. package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
  19. package/es/molecule/skill-card/prop-types.js +2 -1
  20. package/es/molecule/skill-card/prop-types.js.map +1 -1
  21. package/es/organism/podcast-popin-intro/index.native.js +3 -3
  22. package/es/organism/podcast-popin-intro/index.native.js.map +1 -1
  23. package/es/organism/review-no-skills/index.d.ts +11 -0
  24. package/es/organism/review-no-skills/index.d.ts.map +1 -0
  25. package/es/organism/review-no-skills/index.js +25 -0
  26. package/es/organism/review-no-skills/index.js.map +1 -0
  27. package/es/organism/review-no-skills/index.native.d.ts +5 -0
  28. package/es/organism/review-no-skills/index.native.d.ts.map +1 -0
  29. package/es/organism/review-no-skills/index.native.js +59 -0
  30. package/es/organism/review-no-skills/index.native.js.map +1 -0
  31. package/es/organism/review-no-skills/prop-types.d.ts +13 -0
  32. package/es/organism/review-no-skills/prop-types.d.ts.map +1 -0
  33. package/es/organism/review-no-skills/prop-types.js +8 -0
  34. package/es/organism/review-no-skills/prop-types.js.map +1 -0
  35. package/es/organism/review-no-skills/style.css +73 -0
  36. package/es/organism/review-skills/index.d.ts +5 -3
  37. package/es/organism/review-skills/index.d.ts.map +1 -1
  38. package/es/organism/review-skills/index.js +3 -60
  39. package/es/organism/review-skills/index.js.map +1 -1
  40. package/es/organism/review-skills/index.native.d.ts +5 -0
  41. package/es/organism/review-skills/index.native.d.ts.map +1 -0
  42. package/es/organism/review-skills/index.native.js +46 -0
  43. package/es/organism/review-skills/index.native.js.map +1 -0
  44. package/es/organism/review-skills/prop-types.d.ts +7 -28
  45. package/es/organism/review-skills/prop-types.d.ts.map +1 -1
  46. package/es/organism/review-skills/prop-types.js +4 -16
  47. package/es/organism/review-skills/prop-types.js.map +1 -1
  48. package/es/organism/review-skills/style.css +3 -106
  49. package/es/organism/review-slide/style.css +1 -0
  50. package/es/organism/review-stacked-slides/index.d.ts.map +1 -1
  51. package/es/organism/review-stacked-slides/index.js +10 -3
  52. package/es/organism/review-stacked-slides/index.js.map +1 -1
  53. package/es/organism/review-stacked-slides/style.css +120 -8
  54. package/es/template/app-review/index.d.ts +7 -7
  55. package/es/template/app-review/index.js +1 -5
  56. package/es/template/app-review/index.js.map +1 -1
  57. package/es/template/app-review/index.native.d.ts.map +1 -1
  58. package/es/template/app-review/index.native.js +3 -1
  59. package/es/template/app-review/index.native.js.map +1 -1
  60. package/es/template/app-review/player/style.css +2 -2
  61. package/es/template/app-review/prop-types.d.ts +9 -9
  62. package/es/template/app-review/prop-types.d.ts.map +1 -1
  63. package/es/template/app-review/prop-types.js.map +1 -1
  64. package/es/template/app-review/skills/index.d.ts +6 -2
  65. package/es/template/app-review/skills/index.d.ts.map +1 -1
  66. package/es/template/app-review/skills/index.js +46 -2
  67. package/es/template/app-review/skills/index.js.map +1 -1
  68. package/es/template/app-review/skills/index.native.d.ts +3 -3
  69. package/es/template/app-review/skills/index.native.d.ts.map +1 -1
  70. package/es/template/app-review/skills/index.native.js +26 -176
  71. package/es/template/app-review/skills/index.native.js.map +1 -1
  72. package/es/template/app-review/skills/prop-types.d.ts +14 -38
  73. package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
  74. package/es/template/app-review/skills/prop-types.js +10 -13
  75. package/es/template/app-review/skills/prop-types.js.map +1 -1
  76. package/es/template/app-review/skills/style.css +49 -0
  77. package/es/template/review-dashboard-skills/index.d.ts +7 -7
  78. package/es/template/review-dashboard-skills/index.js +1 -1
  79. package/es/template/review-dashboard-skills/index.js.map +1 -1
  80. package/es/template/review-dashboard-skills/style.css +1 -2
  81. package/lib/atom/provider/index.d.ts.map +1 -1
  82. package/lib/atom/provider/index.js +0 -4
  83. package/lib/atom/provider/index.js.map +1 -1
  84. package/lib/atom/review-presentation/style.css +2 -3
  85. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  86. package/lib/molecule/cm-popin/index.js +1 -1
  87. package/lib/molecule/cm-popin/index.js.map +1 -1
  88. package/lib/molecule/cm-popin/style.css +9 -1
  89. package/lib/molecule/review-correction-popin/index.d.ts.map +1 -1
  90. package/lib/molecule/review-correction-popin/index.js +13 -5
  91. package/lib/molecule/review-correction-popin/index.js.map +1 -1
  92. package/lib/molecule/review-correction-popin/style.css +2 -2
  93. package/lib/molecule/skill-card/index.native.d.ts +5 -0
  94. package/lib/molecule/skill-card/index.native.d.ts.map +1 -0
  95. package/lib/molecule/skill-card/index.native.js +95 -0
  96. package/lib/molecule/skill-card/index.native.js.map +1 -0
  97. package/lib/molecule/skill-card/prop-types.d.ts +14 -3
  98. package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
  99. package/lib/molecule/skill-card/prop-types.js +2 -1
  100. package/lib/molecule/skill-card/prop-types.js.map +1 -1
  101. package/lib/organism/podcast-popin-intro/index.native.js +3 -3
  102. package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
  103. package/lib/organism/review-no-skills/index.d.ts +11 -0
  104. package/lib/organism/review-no-skills/index.d.ts.map +1 -0
  105. package/lib/organism/review-no-skills/index.js +36 -0
  106. package/lib/organism/review-no-skills/index.js.map +1 -0
  107. package/lib/organism/review-no-skills/index.native.d.ts +5 -0
  108. package/lib/organism/review-no-skills/index.native.d.ts.map +1 -0
  109. package/lib/organism/review-no-skills/index.native.js +72 -0
  110. package/lib/organism/review-no-skills/index.native.js.map +1 -0
  111. package/lib/organism/review-no-skills/prop-types.d.ts +13 -0
  112. package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -0
  113. package/lib/organism/review-no-skills/prop-types.js +17 -0
  114. package/lib/organism/review-no-skills/prop-types.js.map +1 -0
  115. package/lib/organism/review-no-skills/style.css +73 -0
  116. package/lib/organism/review-skills/index.d.ts +5 -3
  117. package/lib/organism/review-skills/index.d.ts.map +1 -1
  118. package/lib/organism/review-skills/index.js +3 -67
  119. package/lib/organism/review-skills/index.js.map +1 -1
  120. package/lib/organism/review-skills/index.native.d.ts +5 -0
  121. package/lib/organism/review-skills/index.native.d.ts.map +1 -0
  122. package/lib/organism/review-skills/index.native.js +57 -0
  123. package/lib/organism/review-skills/index.native.js.map +1 -0
  124. package/lib/organism/review-skills/prop-types.d.ts +7 -28
  125. package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
  126. package/lib/organism/review-skills/prop-types.js +3 -19
  127. package/lib/organism/review-skills/prop-types.js.map +1 -1
  128. package/lib/organism/review-skills/style.css +3 -106
  129. package/lib/organism/review-slide/style.css +1 -0
  130. package/lib/organism/review-stacked-slides/index.d.ts.map +1 -1
  131. package/lib/organism/review-stacked-slides/index.js +10 -3
  132. package/lib/organism/review-stacked-slides/index.js.map +1 -1
  133. package/lib/organism/review-stacked-slides/style.css +120 -8
  134. package/lib/template/app-review/index.d.ts +7 -7
  135. package/lib/template/app-review/index.js +1 -5
  136. package/lib/template/app-review/index.js.map +1 -1
  137. package/lib/template/app-review/index.native.d.ts.map +1 -1
  138. package/lib/template/app-review/index.native.js +4 -1
  139. package/lib/template/app-review/index.native.js.map +1 -1
  140. package/lib/template/app-review/player/style.css +2 -2
  141. package/lib/template/app-review/prop-types.d.ts +9 -9
  142. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  143. package/lib/template/app-review/prop-types.js.map +1 -1
  144. package/lib/template/app-review/skills/index.d.ts +6 -2
  145. package/lib/template/app-review/skills/index.d.ts.map +1 -1
  146. package/lib/template/app-review/skills/index.js +51 -1
  147. package/lib/template/app-review/skills/index.js.map +1 -1
  148. package/lib/template/app-review/skills/index.native.d.ts +3 -3
  149. package/lib/template/app-review/skills/index.native.d.ts.map +1 -1
  150. package/lib/template/app-review/skills/index.native.js +28 -175
  151. package/lib/template/app-review/skills/index.native.js.map +1 -1
  152. package/lib/template/app-review/skills/prop-types.d.ts +14 -38
  153. package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
  154. package/lib/template/app-review/skills/prop-types.js +12 -17
  155. package/lib/template/app-review/skills/prop-types.js.map +1 -1
  156. package/lib/template/app-review/skills/style.css +49 -0
  157. package/lib/template/review-dashboard-skills/index.d.ts +7 -7
  158. package/lib/template/review-dashboard-skills/index.js +3 -3
  159. package/lib/template/review-dashboard-skills/index.js.map +1 -1
  160. package/lib/template/review-dashboard-skills/style.css +1 -2
  161. package/locales/.mtslconfig.json +1 -0
  162. package/package.json +4 -4
  163. package/es/template/app-review/skills/stories.d.ts +0 -1
  164. package/es/template/app-review/skills/stories.d.ts.map +0 -1
  165. package/es/template/app-review/skills/stories.js +0 -15
  166. package/es/template/app-review/skills/stories.js.map +0 -1
  167. package/lib/template/app-review/skills/stories.d.ts +0 -1
  168. package/lib/template/app-review/skills/stories.d.ts.map +0 -1
  169. package/lib/template/app-review/skills/stories.js +0 -16
  170. package/lib/template/app-review/skills/stories.js.map +0 -1
@@ -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,C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A,KAAhC,CADF,EAEG,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,EAAE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8CA,eAAeL,YAAf"}
@@ -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"}
@@ -7,7 +7,6 @@
7
7
  margin: 48px 24px 48px 64px;
8
8
  position: relative;
9
9
  box-sizing: border-box;
10
- overflow: auto;
11
10
  height: 100%;
12
11
  }
13
12
 
@@ -17,7 +16,7 @@
17
16
  max-width: 348px;
18
17
  min-width: 348px;
19
18
  position: sticky;
20
- top: 0;
19
+ top: 80px;
21
20
  }
22
21
 
23
22
  .reviewSkillsContainer {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/provider/index.js"],"names":[],"mappings":";;;AAqGA,4DAOC;AApDD;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKE;IAEF;;;;MAQC;IAED,sCAKC;IADC;;;;;MAA+D;IAGjE;;;;;MAEC;CAMF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/provider/index.js"],"names":[],"mappings":";;;AAqGA,4DAMC;AAnDD;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKE;IAEF;;;;MAQC;IAED,sCAKC;IADC;;;;;MAA+D;IAGjE;;;;;MAEC;CAMF"}
@@ -139,10 +139,6 @@ Provider.propTypes = process.env.NODE_ENV !== "production" ? {
139
139
  const GetSkinFromContext = legacyContext => {
140
140
  const context = (0, _webContext.useWebContext)();
141
141
  const legacySkin = (0, _get2.default)('skin', legacyContext);
142
- console.log('GetSkinFromContext', {
143
- context,
144
- skin: (0, _get2.default)('skin', context)
145
- });
146
142
  const skin = (0, _getOr2.default)(legacySkin, 'skin', context);
147
143
  return skin;
148
144
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["DEFAULT_SKIN","common","good","bad","primary","life","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","childContextTypes","isRequired","object","propTypes","node","GetSkinFromContext","legacyContext","useWebContext","legacySkin","console","log"],"sources":["../../../src/atom/provider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep, get, getOr} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\nimport WebContext, {useWebContext} from './web-context';\n\nconst DEFAULT_SKIN = {\n common: {\n good: '#24b694',\n bad: '#ed1c24',\n primary: '#00B0FF',\n life: '#ed1c24',\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(DEFAULT_SKIN, skin);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape.isRequired,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nconst GetSkinFromContext = legacyContext => {\n const context = useWebContext();\n const legacySkin = get('skin', legacyContext);\n console.log('GetSkinFromContext', {context, skin: get('skin', context)});\n const skin = getOr(legacySkin, 'skin', context);\n\n return skin;\n};\n\nexport {WebContext, useWebContext, GetSkinFromContext};\nexport default Provider;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;AAEA,MAAMA,YAAY,GAAG;EACnBC,MAAM,EAAE;IACNC,IAAI,EAAE,SADA;IAENC,GAAG,EAAE,SAFC;IAGNC,OAAO,EAAE,SAHH;IAINC,IAAI,EAAE,SAJA;IAKNC,KAAK,EAAE,SALD;IAMNC,WAAW,EAAE,SANP;IAONC,WAAW,EAAE,SAPP;IAQNC,WAAW,EAAE,SARP;IASNC,WAAW,EAAE,SATP;IAUNC,aAAa,EAAE,SAVT;IAWNC,KAAK,EAAE,SAXD;IAYNC,MAAM,EAAE,SAZF;IAaNC,IAAI,EAAE,SAbA;IAcNC,IAAI,EAAE,SAdA;IAeNC,SAAS,EAAE,SAfL;IAgBNC,MAAM,EAAE,SAhBF;IAiBNC,QAAQ,EAAE,SAjBJ;IAkBNC,UAAU,EAAE,SAlBN;IAmBNC,QAAQ,EAAE,SAnBJ;IAoBNC,MAAM,EAAE,SApBF;IAqBNC,KAAK,EAAE,SArBD;IAsBNC,KAAK,EAAE;EAtBD;AADW,CAArB;;AA2BA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAazB,YAAb,EAA2ByB,IAA3B,CAAjC;;AAEA,MAAMC,YAAY,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EACnCC,UAAU,EAAEF,kBAAA,CAAUG,IADa;EAEnCC,IAAI,EAAEJ,kBAAA,CAAUG;AAFmB,CAAhB,CAArB;;AAKA,MAAME,SAAS,GAAGL,kBAAA,CAAUC,KAAV,CA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,IAAa,KAAKT,KAAxB;IACA,OAAOH,cAAA,CAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;EACD;;AA1CoC;;AAAjCb,Q,CAWGgB,iB,GAAoB;EACzBX,OAAO,EAAEzB,YADgB;EAEzBD,IAAI,EAAEO,SAFmB;EAGzBoB,SAAS,EAAEP,cAAc,CAACkB,UAHD;EAIzBR,KAAK,EAAE5B,kBAAA,CAAUqC;AAJQ,C;AAXvBlB,Q,CACGmB,S,2CAAY;EACjBd,OAAO,EAAEzB,YADQ;EAEjBD,IAAI,EAAEO,SAFW;EAGjBoB,SAAS,EAAEP,cAHM;EAIjBc,QAAQ,EAAEhC,kBAAA,CAAUuC,IAAV,CAAeH,UAJR;EAKjBR,KAAK,EAAE5B,kBAAA,CAAUC,KAAV,CAAgB;IACrB3B,MAAM,EAAE0B,kBAAA,CAAUG;EADG,CAAhB;AALU,C;;AA4CrB,MAAMqC,kBAAkB,GAAGC,aAAa,IAAI;EAC1C,MAAMd,OAAO,GAAG,IAAAe,yBAAA,GAAhB;EACA,MAAMC,UAAU,GAAG,mBAAI,MAAJ,EAAYF,aAAZ,CAAnB;EACAG,OAAO,CAACC,GAAR,CAAY,oBAAZ,EAAkC;IAAClB,OAAD;IAAU7B,IAAI,EAAE,mBAAI,MAAJ,EAAY6B,OAAZ;EAAhB,CAAlC;EACA,MAAM7B,IAAI,GAAG,qBAAM6C,UAAN,EAAkB,MAAlB,EAA0BhB,OAA1B,CAAb;EAEA,OAAO7B,IAAP;AACD,CAPD;;;eAUeqB,Q"}
1
+ {"version":3,"file":"index.js","names":["DEFAULT_SKIN","common","good","bad","primary","life","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","childContextTypes","isRequired","object","propTypes","node","GetSkinFromContext","legacyContext","useWebContext","legacySkin"],"sources":["../../../src/atom/provider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep, get, getOr} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\nimport WebContext, {useWebContext} from './web-context';\n\nconst DEFAULT_SKIN = {\n common: {\n good: '#24b694',\n bad: '#ed1c24',\n primary: '#00B0FF',\n life: '#ed1c24',\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(DEFAULT_SKIN, skin);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape.isRequired,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nconst GetSkinFromContext = legacyContext => {\n const context = useWebContext();\n const legacySkin = get('skin', legacyContext);\n const skin = getOr(legacySkin, 'skin', context);\n\n return skin;\n};\n\nexport {WebContext, useWebContext, GetSkinFromContext};\nexport default Provider;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;AAEA,MAAMA,YAAY,GAAG;EACnBC,MAAM,EAAE;IACNC,IAAI,EAAE,SADA;IAENC,GAAG,EAAE,SAFC;IAGNC,OAAO,EAAE,SAHH;IAINC,IAAI,EAAE,SAJA;IAKNC,KAAK,EAAE,SALD;IAMNC,WAAW,EAAE,SANP;IAONC,WAAW,EAAE,SAPP;IAQNC,WAAW,EAAE,SARP;IASNC,WAAW,EAAE,SATP;IAUNC,aAAa,EAAE,SAVT;IAWNC,KAAK,EAAE,SAXD;IAYNC,MAAM,EAAE,SAZF;IAaNC,IAAI,EAAE,SAbA;IAcNC,IAAI,EAAE,SAdA;IAeNC,SAAS,EAAE,SAfL;IAgBNC,MAAM,EAAE,SAhBF;IAiBNC,QAAQ,EAAE,SAjBJ;IAkBNC,UAAU,EAAE,SAlBN;IAmBNC,QAAQ,EAAE,SAnBJ;IAoBNC,MAAM,EAAE,SApBF;IAqBNC,KAAK,EAAE,SArBD;IAsBNC,KAAK,EAAE;EAtBD;AADW,CAArB;;AA2BA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAazB,YAAb,EAA2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;;IACA,KAAKM,KAAL,GAAa;MAACL,OAAD;MAAU1B,IAAI,EAAED,SAAS,CAACC,IAAD,CAAzB;MAAiC2B,SAAjC;MAA4CG;IAA5C,CAAb;EACD;;EAEDE,eAAe,GAAG;IAChB,OAAO,KAAKD,KAAZ;EACD;;EAEDE,MAAM,GAAG;IACP,MAAM;MAACC;IAAD,IAAa,KAAKT,KAAxB;IACA,OAAOH,cAAA,CAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;EACD;;AA1CoC;;AAAjCb,Q,CAWGgB,iB,GAAoB;EACzBX,OAAO,EAAEzB,YADgB;EAEzBD,IAAI,EAAEO,SAFmB;EAGzBoB,SAAS,EAAEP,cAAc,CAACkB,UAHD;EAIzBR,KAAK,EAAE5B,kBAAA,CAAUqC;AAJQ,C;AAXvBlB,Q,CACGmB,S,2CAAY;EACjBd,OAAO,EAAEzB,YADQ;EAEjBD,IAAI,EAAEO,SAFW;EAGjBoB,SAAS,EAAEP,cAHM;EAIjBc,QAAQ,EAAEhC,kBAAA,CAAUuC,IAAV,CAAeH,UAJR;EAKjBR,KAAK,EAAE5B,kBAAA,CAAUC,KAAV,CAAgB;IACrB3B,MAAM,EAAE0B,kBAAA,CAAUG;EADG,CAAhB;AALU,C;;AA4CrB,MAAMqC,kBAAkB,GAAGC,aAAa,IAAI;EAC1C,MAAMd,OAAO,GAAG,IAAAe,yBAAA,GAAhB;EACA,MAAMC,UAAU,GAAG,mBAAI,MAAJ,EAAYF,aAAZ,CAAnB;EACA,MAAM3C,IAAI,GAAG,qBAAM6C,UAAN,EAAkB,MAAlB,EAA0BhB,OAA1B,CAAb;EAEA,OAAO7B,IAAP;AACD,CAND;;;eASeqB,Q"}
@@ -86,11 +86,11 @@
86
86
  opacity: 0;
87
87
  transition: opacity 0.8s;
88
88
  position: absolute;
89
- width: 103px;
90
89
  height: auto;
90
+ width: 200px;
91
91
  border-radius: 7px;
92
92
  background-color: cm_grey_700;
93
- right: -42px;
93
+ right: -81px;
94
94
  bottom: 32px;
95
95
  }
96
96
 
@@ -113,7 +113,6 @@
113
113
  composes: textBase;
114
114
  font-weight: 500;
115
115
  font-size: 14px;
116
- line-height: 20px;
117
116
  display: inline-block;
118
117
  border-radius: 3px;
119
118
  word-wrap: break-word;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAcA,kDA0KC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/index.js"],"names":[],"mappings":";AAcA,kDAgLC"}
@@ -129,7 +129,7 @@ const CMPopin = props => {
129
129
  size: "small",
130
130
  icon: "close"
131
131
  }) : null), /*#__PURE__*/_react.default.createElement("div", {
132
- className: _style.default.titleContainer
132
+ className: mode === 'cookie' || mode === 'information' ? _style.default.cookieTitleContainer : _style.default.titleContainer
133
133
  }, /*#__PURE__*/_react.default.createElement("div", {
134
134
  className: _style.default.contentSection
135
135
  }, LogoComponent ? /*#__PURE__*/_react.default.createElement(LogoComponent, {