@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
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireDefault(require("react"));
7
+
8
+ var _reactNative = require("react-native");
9
+
10
+ var _index = _interopRequireDefault(require("../../molecule/skill-card/index.native"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ const style = _reactNative.StyleSheet.create({
15
+ skills: {
16
+ paddingBottom: 100
17
+ }
18
+ });
19
+
20
+ const Item = ({
21
+ item: {
22
+ 'aria-label': ariaLabel,
23
+ skillTitle,
24
+ skillAriaLabel,
25
+ reviseLabel,
26
+ reviseAriaLabel,
27
+ onClick,
28
+ buttonLabel,
29
+ buttonAriaLabel,
30
+ isCustom
31
+ }
32
+ }) => /*#__PURE__*/_react.default.createElement(_index.default, {
33
+ "aria-label": ariaLabel,
34
+ skillTitle: skillTitle,
35
+ skillAriaLabel: skillAriaLabel,
36
+ reviseLabel: reviseLabel,
37
+ reviseAriaLabel: reviseAriaLabel,
38
+ onClick: onClick,
39
+ buttonLabel: buttonLabel,
40
+ buttonAriaLabel: buttonAriaLabel,
41
+ isCustom: isCustom
42
+ });
43
+
44
+ const ReviewListSkills = props => {
45
+ const {
46
+ listSkills
47
+ } = props;
48
+ return /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
49
+ contentContainerStyle: style.skills,
50
+ data: listSkills,
51
+ renderItem: Item
52
+ });
53
+ };
54
+
55
+ var _default = ReviewListSkills;
56
+ exports.default = _default;
57
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","names":["style","StyleSheet","create","skills","paddingBottom","Item","item","ariaLabel","skillTitle","skillAriaLabel","reviseLabel","reviseAriaLabel","onClick","buttonLabel","buttonAriaLabel","isCustom","ReviewListSkills","props","listSkills"],"sources":["../../../src/organism/review-skills/index.native.tsx"],"sourcesContent":["import React from 'react';\nimport {FlatList, StyleSheet} from 'react-native';\nimport SkillCard from '../../molecule/skill-card/index.native';\nimport {SkillCardProps} from '../../molecule/skill-card/prop-types';\nimport {ReviewSkills} from './prop-types';\n\ntype ItemProps = {\n item: SkillCardProps;\n};\n\nconst style = StyleSheet.create({\n skills: {paddingBottom: 100}\n});\n\nconst Item = ({\n item: {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n reviseLabel,\n reviseAriaLabel,\n onClick,\n buttonLabel,\n buttonAriaLabel,\n isCustom\n }\n}: ItemProps) => (\n <SkillCard\n aria-label={ariaLabel}\n skillTitle={skillTitle}\n skillAriaLabel={skillAriaLabel}\n reviseLabel={reviseLabel}\n reviseAriaLabel={reviseAriaLabel}\n onClick={onClick}\n buttonLabel={buttonLabel}\n buttonAriaLabel={buttonAriaLabel}\n isCustom={isCustom}\n />\n);\n\nconst ReviewListSkills = (props: ReviewSkills) => {\n const {listSkills} = props;\n\n return <FlatList contentContainerStyle={style.skills} data={listSkills} renderItem={Item} />;\n};\n\nexport default ReviewListSkills;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;AAQA,MAAMA,KAAK,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC9BC,MAAM,EAAE;IAACC,aAAa,EAAE;EAAhB;AADsB,CAAlB,CAAd;;AAIA,MAAMC,IAAI,GAAG,CAAC;EACZC,IAAI,EAAE;IACJ,cAAcC,SADV;IAEJC,UAFI;IAGJC,cAHI;IAIJC,WAJI;IAKJC,eALI;IAMJC,OANI;IAOJC,WAPI;IAQJC,eARI;IASJC;EATI;AADM,CAAD,kBAaX,6BAAC,cAAD;EACE,cAAYR,SADd;EAEE,UAAU,EAAEC,UAFd;EAGE,cAAc,EAAEC,cAHlB;EAIE,WAAW,EAAEC,WAJf;EAKE,eAAe,EAAEC,eALnB;EAME,OAAO,EAAEC,OANX;EAOE,WAAW,EAAEC,WAPf;EAQE,eAAe,EAAEC,eARnB;EASE,QAAQ,EAAEC;AATZ,EAbF;;AA0BA,MAAMC,gBAAgB,GAAIC,KAAD,IAAyB;EAChD,MAAM;IAACC;EAAD,IAAeD,KAArB;EAEA,oBAAO,6BAAC,qBAAD;IAAU,qBAAqB,EAAEjB,KAAK,CAACG,MAAvC;IAA+C,IAAI,EAAEe,UAArD;IAAiE,UAAU,EAAEb;EAA7E,EAAP;AACD,CAJD;;eAMeW,gB"}
@@ -1,25 +1,6 @@
1
- export namespace ListSkillsPropTypes {
2
- const listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
3
- 'aria-label': PropTypes.Requireable<string>;
4
- skillTitle: PropTypes.Requireable<string>;
5
- skillAriaLabel: PropTypes.Requireable<string>;
6
- buttonLabel: PropTypes.Requireable<string>;
7
- buttonAriaLabel: PropTypes.Requireable<string>;
8
- reviseLabel: PropTypes.Requireable<string>;
9
- reviseAriaLabel: PropTypes.Requireable<string>;
10
- isCustom: PropTypes.Requireable<boolean>;
11
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
12
- }> | null | undefined)[]>;
13
- }
14
- export namespace NoSkillsPropTypes {
15
- const titleNoSkills: PropTypes.Requireable<string>;
16
- const textNoSkills: PropTypes.Requireable<string>;
17
- const iconSkillAriaLabel: PropTypes.Requireable<string>;
18
- }
19
- declare const _default: {
20
- titleNoSkills: PropTypes.Requireable<string>;
21
- textNoSkills: PropTypes.Requireable<string>;
22
- iconSkillAriaLabel: PropTypes.Requireable<string>;
1
+ import PropTypes from 'prop-types';
2
+ import { SkillCardProps } from '../../molecule/skill-card/prop-types';
3
+ declare const propTypes: {
23
4
  listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
24
5
  'aria-label': PropTypes.Requireable<string>;
25
6
  skillTitle: PropTypes.Requireable<string>;
@@ -31,11 +12,9 @@ declare const _default: {
31
12
  isCustom: PropTypes.Requireable<boolean>;
32
13
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
33
14
  }> | null | undefined)[]>;
34
- 'aria-label': PropTypes.Requireable<string>;
35
- title: PropTypes.Validator<string>;
36
- isLoading: PropTypes.Requireable<boolean>;
37
- isLoadingAriaLabel: PropTypes.Requireable<string>;
38
15
  };
39
- export default _default;
40
- import PropTypes from "prop-types";
16
+ export default propTypes;
17
+ export declare type ReviewSkills = {
18
+ listSkills: SkillCardProps[];
19
+ };
41
20
  //# sourceMappingURL=prop-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/prop-types.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/review-skills/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA2B,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAExF,QAAA,MAAM,SAAS;;;;;;;;;;;;CAEd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,YAAY,GAAG;IACzB,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.NoSkillsPropTypes = exports.ListSkillsPropTypes = void 0;
4
+ exports.default = void 0;
5
5
 
6
6
  var _propTypes = _interopRequireDefault(require("prop-types"));
7
7
 
@@ -9,25 +9,9 @@ var _propTypes2 = _interopRequireDefault(require("../../molecule/skill-card/prop
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
-
14
- const ListSkillsPropTypes = {
12
+ const propTypes = {
15
13
  listSkills: _propTypes.default.arrayOf(_propTypes.default.shape(_propTypes2.default))
16
14
  };
17
- exports.ListSkillsPropTypes = ListSkillsPropTypes;
18
- const NoSkillsPropTypes = {
19
- titleNoSkills: _propTypes.default.string,
20
- textNoSkills: _propTypes.default.string,
21
- iconSkillAriaLabel: _propTypes.default.string
22
- };
23
- exports.NoSkillsPropTypes = NoSkillsPropTypes;
24
-
25
- var _default = _extends({
26
- 'aria-label': _propTypes.default.string,
27
- title: _propTypes.default.string.isRequired,
28
- isLoading: _propTypes.default.bool,
29
- isLoadingAriaLabel: _propTypes.default.string
30
- }, ListSkillsPropTypes, NoSkillsPropTypes);
31
-
15
+ var _default = propTypes;
32
16
  exports.default = _default;
33
17
  //# sourceMappingURL=prop-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["ListSkillsPropTypes","listSkills","PropTypes","arrayOf","shape","SkillCardPropTypes","NoSkillsPropTypes","titleNoSkills","string","textNoSkills","iconSkillAriaLabel","title","isRequired","isLoading","bool","isLoadingAriaLabel"],"sources":["../../../src/organism/review-skills/prop-types.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport SkillCardPropTypes from '../../molecule/skill-card/prop-types';\n\nexport const ListSkillsPropTypes = {\n listSkills: PropTypes.arrayOf(PropTypes.shape(SkillCardPropTypes))\n};\n\nexport const NoSkillsPropTypes = {\n titleNoSkills: PropTypes.string,\n textNoSkills: PropTypes.string,\n iconSkillAriaLabel: PropTypes.string\n};\n\nexport default {\n 'aria-label': PropTypes.string,\n title: PropTypes.string.isRequired,\n isLoading: PropTypes.bool,\n isLoadingAriaLabel: PropTypes.string,\n ...ListSkillsPropTypes,\n ...NoSkillsPropTypes\n};\n"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEO,MAAMA,mBAAmB,GAAG;EACjCC,UAAU,EAAEC,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,mBAAhB,CAAlB;AADqB,CAA5B;;AAIA,MAAMC,iBAAiB,GAAG;EAC/BC,aAAa,EAAEL,kBAAA,CAAUM,MADM;EAE/BC,YAAY,EAAEP,kBAAA,CAAUM,MAFO;EAG/BE,kBAAkB,EAAER,kBAAA,CAAUM;AAHC,CAA1B;;;;EAOL,cAAcN,kBAAA,CAAUM,M;EACxBG,KAAK,EAAET,kBAAA,CAAUM,MAAV,CAAiBI,U;EACxBC,SAAS,EAAEX,kBAAA,CAAUY,I;EACrBC,kBAAkB,EAAEb,kBAAA,CAAUM;GAC3BR,mB,EACAM,iB"}
1
+ {"version":3,"file":"prop-types.js","names":["propTypes","listSkills","PropTypes","arrayOf","shape","SkillCardPropsType"],"sources":["../../../src/organism/review-skills/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport SkillCardPropsType, {SkillCardProps} from '../../molecule/skill-card/prop-types';\n\nconst propTypes = {\n listSkills: PropTypes.arrayOf(PropTypes.shape(SkillCardPropsType))\n};\n\nexport default propTypes;\n\nexport type ReviewSkills = {\n listSkills: SkillCardProps[];\n};\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,UAAU,EAAEC,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,mBAAhB,CAAlB;AADI,CAAlB;eAIeL,S"}
@@ -1,35 +1,5 @@
1
1
  @value breakpoints: "../../variables/breakpoints.css";
2
- @value tablet from breakpoints;
3
2
  @value mobile from breakpoints;
4
- @value colors: "../../variables/colors.css";
5
- @value cm_blue_900 from colors;
6
- @value cm_grey_400 from colors;
7
- @value cm_grey_500 from colors;
8
-
9
- .textBase {
10
- color: cm_blue_900;
11
- font-family: "Gilroy";
12
- font-style: normal;
13
- user-select: none;
14
- }
15
-
16
- .containerReviewSkill {
17
- width: 100%;
18
- position: relative;
19
- }
20
-
21
- .title {
22
- composes: textBase;
23
- font-size: 20px;
24
- font-weight: 600;
25
- line-height: 28px;
26
- margin-left: 40px;
27
- }
28
-
29
- .informationIcon {
30
- color: cm_grey_500;
31
- padding-left: 8px;
32
- }
33
3
 
34
4
  .listSkillsContainer {
35
5
  display: flex;
@@ -45,67 +15,12 @@
45
15
  flex: 1 0 33%;
46
16
  }
47
17
 
48
- .noSkillsContainer {
49
- margin-top: 56px;
50
- display: flex;
51
- flex-direction: column;
52
- align-items: center;
53
- justify-content: center;
54
- position: relative;
55
- }
56
-
57
- .titleNoSkills {
58
- composes: textBase;
59
- font-weight: 10;
60
- font-size: 28px;
61
- line-height: 36px;
62
- text-align: center;
63
- }
64
-
65
- .textNoSkills {
66
- color: cm_grey_400;
67
- font-family: "Gilroy";
68
- font-size: 20px;
69
- line-height: 28px;
70
- margin-top: 8px;
71
- text-align: center;
72
- user-select: none;
73
- width: 493px;
74
- }
75
-
76
- .imgNoSkills {
77
- height: 361px;
78
- margin-top: 48px;
79
- width: 361px;
80
- }
81
-
82
- .loaderContainer {
83
- width: 100%;
84
- height: 50vh;
85
- display: flex;
86
- align-items: center;
87
- justify-content: center;
88
- }
89
18
 
90
- .loader {
91
- height: 60px;
92
- width: 60px;
93
- }
94
-
95
- @media tablet {
96
- .titleNoSkills, .textNoSkills {
97
- width: 90%;
98
- }
99
-
100
- .imgNoSkills {
101
- max-width: 361px;
102
- max-height: 361px;
103
- width: 100%;
104
- height: 100%;
19
+ @media mobile {
20
+ .listSkillsContainer {
21
+ margin: 24px 20px;
105
22
  }
106
- }
107
23
 
108
- @media mobile {
109
24
  .skillCardContainer {
110
25
  display: flex;
111
26
  flex: 1 0 100%;
@@ -114,22 +29,4 @@
114
29
  max-width: 100%;
115
30
  }
116
31
 
117
- .listSkillsContainer {
118
- margin: 24px 20px;
119
- }
120
-
121
- .title {
122
- margin-left: 0;
123
- }
124
-
125
- .titleNoSkills,
126
- .textNoSkills {
127
- width: 85%;
128
- }
129
-
130
- .imgNoSkills {
131
- margin-top: 33px;
132
- width: 85%;
133
- height: auto;
134
- }
135
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/review-stacked-slides/index.js"],"names":[],"mappings":"AAOA,mCAAoC;;AAqBpC;;;;;gBA6CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/review-stacked-slides/index.js"],"names":[],"mappings":"AAOA,mCAAoC;;AA6BpC;;;;;gBA8CC"}
@@ -26,6 +26,13 @@ const stylesByPosition = {
26
26
  3: _style.default.position3,
27
27
  4: _style.default.position4
28
28
  };
29
+ const unstackByPosition = {
30
+ 0: _style.default.slideOutAndIn0,
31
+ 1: _style.default.slideOutAndIn1,
32
+ 2: _style.default.slideOutAndIn2,
33
+ 3: _style.default.slideOutAndIn3,
34
+ 4: _style.default.slideOutAndIn4
35
+ };
29
36
 
30
37
  const getSlideAnimation = (action, position) => {
31
38
  switch (action) {
@@ -33,10 +40,10 @@ const getSlideAnimation = (action, position) => {
33
40
  return _style.default.slideOutHideAndIn;
34
41
 
35
42
  case 'restack':
36
- return _style.default.slideOutAndIn;
43
+ return unstackByPosition[position];
37
44
 
38
45
  default:
39
- return position < 0 ? _style.default.hiddenSlide : stylesByPosition[position];
46
+ return null;
40
47
  }
41
48
  };
42
49
 
@@ -58,7 +65,7 @@ const StackedSlides = ({
58
65
  const slideView = /*#__PURE__*/_react.default.createElement("div", {
59
66
  key: `slide-${slideIndex}`,
60
67
  "data-name": `slide-${slideIndex}`,
61
- className: (0, _classnames.default)(_style.default.slideBase, getSlideAnimation(animationType, position), endReview ? _style.default.endReview : null)
68
+ className: (0, _classnames.default)(_style.default.slideBase, getSlideAnimation(animationType, position), position < 0 ? _style.default.hiddenSlide : stylesByPosition[position], endReview ? _style.default.endReview : null)
62
69
  }, /*#__PURE__*/_react.default.createElement(_reviewSlide.default, {
63
70
  slideIndex: (0, _toString2.default)(slideIndex),
64
71
  slide,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TOTAL_SLIDES_STACK","stylesByPosition","style","position0","position1","position2","position3","position4","getSlideAnimation","action","position","slideOutHideAndIn","slideOutAndIn","hiddenSlide","StackedSlides","slides","endReview","validateButton","correctionPopinProps","stackedSlides","slideIndex","slide","_toString","animationType","slideView","classnames","slideBase","push","stackedSlidesYAxisOverflowContainer","stackedSlidesContainer","propTypes"],"sources":["../../../src/organism/review-stacked-slides/index.js"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport _toString from 'lodash/fp/toString';\nimport ReviewSlide from '../review-slide';\nimport propTypes from './prop-types';\nimport style from './style.css';\n\nexport const TOTAL_SLIDES_STACK = 5;\n\nconst stylesByPosition = {\n 0: style.position0,\n 1: style.position1,\n 2: style.position2,\n 3: style.position3,\n 4: style.position4\n};\n\nconst getSlideAnimation = (action, position) => {\n switch (action) {\n case 'unstack':\n return style.slideOutHideAndIn;\n case 'restack':\n return style.slideOutAndIn;\n default:\n return position < 0 ? style.hiddenSlide : stylesByPosition[position];\n }\n};\n\nconst StackedSlides = ({slides, endReview, validateButton, correctionPopinProps}) => {\n const stackedSlides = [];\n // eslint-disable-next-line fp/no-loops\n for (let slideIndex = 0; slideIndex < TOTAL_SLIDES_STACK; slideIndex++) {\n const slide = slides[_toString(slideIndex)];\n const {animationType, position} = slide;\n\n const slideView = (\n <div\n key={`slide-${slideIndex}`}\n data-name={`slide-${slideIndex}`}\n className={classnames(\n style.slideBase,\n getSlideAnimation(animationType, position),\n endReview ? style.endReview : null\n )}\n >\n <ReviewSlide\n {...{\n slideIndex: _toString(slideIndex),\n slide,\n validateButton,\n correctionPopinProps\n }}\n key={slideIndex}\n />\n </div>\n );\n stackedSlides.push(slideView);\n }\n\n return (\n <div\n key=\"stacked-slides-container-y-overflow\"\n className={style.stackedSlidesYAxisOverflowContainer}\n >\n <div\n key=\"stacked-slides-container\"\n data-name=\"stacked-slides-container\"\n className={style.stackedSlidesContainer}\n >\n {stackedSlides}\n </div>\n </div>\n );\n};\n\nStackedSlides.propTypes = propTypes;\n\nexport default StackedSlides;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,kBAAkB,GAAG,CAA3B;;AAEP,MAAMC,gBAAgB,GAAG;EACvB,GAAGC,cAAA,CAAMC,SADc;EAEvB,GAAGD,cAAA,CAAME,SAFc;EAGvB,GAAGF,cAAA,CAAMG,SAHc;EAIvB,GAAGH,cAAA,CAAMI,SAJc;EAKvB,GAAGJ,cAAA,CAAMK;AALc,CAAzB;;AAQA,MAAMC,iBAAiB,GAAG,CAACC,MAAD,EAASC,QAAT,KAAsB;EAC9C,QAAQD,MAAR;IACE,KAAK,SAAL;MACE,OAAOP,cAAA,CAAMS,iBAAb;;IACF,KAAK,SAAL;MACE,OAAOT,cAAA,CAAMU,aAAb;;IACF;MACE,OAAOF,QAAQ,GAAG,CAAX,GAAeR,cAAA,CAAMW,WAArB,GAAmCZ,gBAAgB,CAACS,QAAD,CAA1D;EANJ;AAQD,CATD;;AAWA,MAAMI,aAAa,GAAG,CAAC;EAACC,MAAD;EAASC,SAAT;EAAoBC,cAApB;EAAoCC;AAApC,CAAD,KAA+D;EACnF,MAAMC,aAAa,GAAG,EAAtB,CADmF,CAEnF;;EACA,KAAK,IAAIC,UAAU,GAAG,CAAtB,EAAyBA,UAAU,GAAGpB,kBAAtC,EAA0DoB,UAAU,EAApE,EAAwE;IACtE,MAAMC,KAAK,GAAGN,MAAM,CAAC,IAAAO,kBAAA,EAAUF,UAAV,CAAD,CAApB;IACA,MAAM;MAACG,aAAD;MAAgBb;IAAhB,IAA4BW,KAAlC;;IAEA,MAAMG,SAAS,gBACb;MACE,GAAG,EAAG,SAAQJ,UAAW,EAD3B;MAEE,aAAY,SAAQA,UAAW,EAFjC;MAGE,SAAS,EAAE,IAAAK,mBAAA,EACTvB,cAAA,CAAMwB,SADG,EAETlB,iBAAiB,CAACe,aAAD,EAAgBb,QAAhB,CAFR,EAGTM,SAAS,GAAGd,cAAA,CAAMc,SAAT,GAAqB,IAHrB;IAHb,gBASE,6BAAC,oBAAD;MAEII,UAAU,EAAE,IAAAE,kBAAA,EAAUF,UAAV,CAFhB;MAGIC,KAHJ;MAIIJ,cAJJ;MAKIC,oBALJ;MAOE,GAAG,EAAEE;IAPP,EATF,CADF;;IAqBAD,aAAa,CAACQ,IAAd,CAAmBH,SAAnB;EACD;;EAED,oBACE;IACE,GAAG,EAAC,qCADN;IAEE,SAAS,EAAEtB,cAAA,CAAM0B;EAFnB,gBAIE;IACE,GAAG,EAAC,0BADN;IAEE,aAAU,0BAFZ;IAGE,SAAS,EAAE1B,cAAA,CAAM2B;EAHnB,GAKGV,aALH,CAJF,CADF;AAcD,CA7CD;;AA+CAL,aAAa,CAACgB,SAAd,2CAA0BA,kBAA1B;eAEehB,a"}
1
+ {"version":3,"file":"index.js","names":["TOTAL_SLIDES_STACK","stylesByPosition","style","position0","position1","position2","position3","position4","unstackByPosition","slideOutAndIn0","slideOutAndIn1","slideOutAndIn2","slideOutAndIn3","slideOutAndIn4","getSlideAnimation","action","position","slideOutHideAndIn","StackedSlides","slides","endReview","validateButton","correctionPopinProps","stackedSlides","slideIndex","slide","_toString","animationType","slideView","classnames","slideBase","hiddenSlide","push","stackedSlidesYAxisOverflowContainer","stackedSlidesContainer","propTypes"],"sources":["../../../src/organism/review-stacked-slides/index.js"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport _toString from 'lodash/fp/toString';\nimport ReviewSlide from '../review-slide';\nimport propTypes from './prop-types';\nimport style from './style.css';\n\nexport const TOTAL_SLIDES_STACK = 5;\n\nconst stylesByPosition = {\n 0: style.position0,\n 1: style.position1,\n 2: style.position2,\n 3: style.position3,\n 4: style.position4\n};\n\nconst unstackByPosition = {\n 0: style.slideOutAndIn0,\n 1: style.slideOutAndIn1,\n 2: style.slideOutAndIn2,\n 3: style.slideOutAndIn3,\n 4: style.slideOutAndIn4\n};\n\nconst getSlideAnimation = (action, position) => {\n switch (action) {\n case 'unstack':\n return style.slideOutHideAndIn;\n case 'restack':\n return unstackByPosition[position];\n default:\n return null;\n }\n};\n\nconst StackedSlides = ({slides, endReview, validateButton, correctionPopinProps}) => {\n const stackedSlides = [];\n // eslint-disable-next-line fp/no-loops\n for (let slideIndex = 0; slideIndex < TOTAL_SLIDES_STACK; slideIndex++) {\n const slide = slides[_toString(slideIndex)];\n const {animationType, position} = slide;\n\n const slideView = (\n <div\n key={`slide-${slideIndex}`}\n data-name={`slide-${slideIndex}`}\n className={classnames(\n style.slideBase,\n getSlideAnimation(animationType, position),\n position < 0 ? style.hiddenSlide : stylesByPosition[position],\n endReview ? style.endReview : null\n )}\n >\n <ReviewSlide\n {...{\n slideIndex: _toString(slideIndex),\n slide,\n validateButton,\n correctionPopinProps\n }}\n key={slideIndex}\n />\n </div>\n );\n stackedSlides.push(slideView);\n }\n\n return (\n <div\n key=\"stacked-slides-container-y-overflow\"\n className={style.stackedSlidesYAxisOverflowContainer}\n >\n <div\n key=\"stacked-slides-container\"\n data-name=\"stacked-slides-container\"\n className={style.stackedSlidesContainer}\n >\n {stackedSlides}\n </div>\n </div>\n );\n};\n\nStackedSlides.propTypes = propTypes;\n\nexport default StackedSlides;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,kBAAkB,GAAG,CAA3B;;AAEP,MAAMC,gBAAgB,GAAG;EACvB,GAAGC,cAAA,CAAMC,SADc;EAEvB,GAAGD,cAAA,CAAME,SAFc;EAGvB,GAAGF,cAAA,CAAMG,SAHc;EAIvB,GAAGH,cAAA,CAAMI,SAJc;EAKvB,GAAGJ,cAAA,CAAMK;AALc,CAAzB;AAQA,MAAMC,iBAAiB,GAAG;EACxB,GAAGN,cAAA,CAAMO,cADe;EAExB,GAAGP,cAAA,CAAMQ,cAFe;EAGxB,GAAGR,cAAA,CAAMS,cAHe;EAIxB,GAAGT,cAAA,CAAMU,cAJe;EAKxB,GAAGV,cAAA,CAAMW;AALe,CAA1B;;AAQA,MAAMC,iBAAiB,GAAG,CAACC,MAAD,EAASC,QAAT,KAAsB;EAC9C,QAAQD,MAAR;IACE,KAAK,SAAL;MACE,OAAOb,cAAA,CAAMe,iBAAb;;IACF,KAAK,SAAL;MACE,OAAOT,iBAAiB,CAACQ,QAAD,CAAxB;;IACF;MACE,OAAO,IAAP;EANJ;AAQD,CATD;;AAWA,MAAME,aAAa,GAAG,CAAC;EAACC,MAAD;EAASC,SAAT;EAAoBC,cAApB;EAAoCC;AAApC,CAAD,KAA+D;EACnF,MAAMC,aAAa,GAAG,EAAtB,CADmF,CAEnF;;EACA,KAAK,IAAIC,UAAU,GAAG,CAAtB,EAAyBA,UAAU,GAAGxB,kBAAtC,EAA0DwB,UAAU,EAApE,EAAwE;IACtE,MAAMC,KAAK,GAAGN,MAAM,CAAC,IAAAO,kBAAA,EAAUF,UAAV,CAAD,CAApB;IACA,MAAM;MAACG,aAAD;MAAgBX;IAAhB,IAA4BS,KAAlC;;IAEA,MAAMG,SAAS,gBACb;MACE,GAAG,EAAG,SAAQJ,UAAW,EAD3B;MAEE,aAAY,SAAQA,UAAW,EAFjC;MAGE,SAAS,EAAE,IAAAK,mBAAA,EACT3B,cAAA,CAAM4B,SADG,EAEThB,iBAAiB,CAACa,aAAD,EAAgBX,QAAhB,CAFR,EAGTA,QAAQ,GAAG,CAAX,GAAed,cAAA,CAAM6B,WAArB,GAAmC9B,gBAAgB,CAACe,QAAD,CAH1C,EAITI,SAAS,GAAGlB,cAAA,CAAMkB,SAAT,GAAqB,IAJrB;IAHb,gBAUE,6BAAC,oBAAD;MAEII,UAAU,EAAE,IAAAE,kBAAA,EAAUF,UAAV,CAFhB;MAGIC,KAHJ;MAIIJ,cAJJ;MAKIC,oBALJ;MAOE,GAAG,EAAEE;IAPP,EAVF,CADF;;IAsBAD,aAAa,CAACS,IAAd,CAAmBJ,SAAnB;EACD;;EAED,oBACE;IACE,GAAG,EAAC,qCADN;IAEE,SAAS,EAAE1B,cAAA,CAAM+B;EAFnB,gBAIE;IACE,GAAG,EAAC,0BADN;IAEE,aAAU,0BAFZ;IAGE,SAAS,EAAE/B,cAAA,CAAMgC;EAHnB,GAKGX,aALH,CAJF,CADF;AAcD,CA9CD;;AAgDAL,aAAa,CAACiB,SAAd,2CAA0BA,kBAA1B;eAEejB,a"}
@@ -43,7 +43,6 @@
43
43
  width: 100%;
44
44
  transform: translate(0, 0);
45
45
  transition: transform 0.5s ease-in;
46
-
47
46
  }
48
47
 
49
48
  .position1 {
@@ -97,7 +96,12 @@
97
96
  }
98
97
  }
99
98
 
100
- @keyframes slideOutAndIn {
99
+ .slideOutHideAndIn {
100
+ pointer-events: none;
101
+ animation: slideOutHideAndSlideIn 2s ease forwards;
102
+ }
103
+
104
+ @keyframes slideOutAndInPosition4 {
101
105
  0% {
102
106
  width: 100%;
103
107
  z-index: 55;
@@ -120,14 +124,121 @@
120
124
  }
121
125
  }
122
126
 
123
- .slideOutHideAndIn {
127
+ .slideOutAndIn4 {
124
128
  pointer-events: none;
125
- animation: slideOutHideAndSlideIn 2s ease forwards;
129
+ animation: slideOutAndInPosition4 2s ease forwards;
130
+ }
131
+
132
+ @keyframes slideOutAndInPosition3 {
133
+ 0% {
134
+ width: 100%;
135
+ z-index: 55;
136
+ transform: translate(0, 0);
137
+ }
138
+ 50% {
139
+ width: 97%;
140
+ z-index: 50;
141
+ transform: translate(0, 1000px);
142
+ }
143
+ 60% {
144
+ width: 95%;
145
+ z-index: 30;
146
+ transform: translate(3.2%, 900px);
147
+ }
148
+ 100% {
149
+ z-index: 35;
150
+ width: 94%;
151
+ transform: translate(2.4%, -24px);
152
+ }
153
+ }
154
+
155
+ .slideOutAndIn3 {
156
+ pointer-events: none;
157
+ animation: slideOutAndInPosition3 2s ease forwards;
158
+ }
159
+
160
+ @keyframes slideOutAndInPosition2 {
161
+ 0% {
162
+ width: 100%;
163
+ z-index: 55;
164
+ transform: translate(0, 0);
165
+ }
166
+ 50% {
167
+ width: 97%;
168
+ z-index: 50;
169
+ transform: translate(0, 1000px);
170
+ }
171
+ 60% {
172
+ width: 95%;
173
+ z-index: 30;
174
+ transform: translate(3.2%, 900px);
175
+ }
176
+ 100% {
177
+ z-index: 40;
178
+ width: 96%;
179
+ transform: translate(1.6%, -16px);
180
+ }
181
+ }
182
+
183
+ .slideOutAndIn2 {
184
+ pointer-events: none;
185
+ animation: slideOutAndInPosition2 2s ease forwards;
186
+ }
187
+
188
+ @keyframes slideOutAndInPosition1 {
189
+ 0% {
190
+ width: 100%;
191
+ z-index: 55;
192
+ transform: translate(0, 0);
193
+ }
194
+ 50% {
195
+ width: 97%;
196
+ z-index: 50;
197
+ transform: translate(0, 1000px);
198
+ }
199
+ 60% {
200
+ width: 95%;
201
+ z-index: 30;
202
+ transform: translate(3.2%, 900px);
203
+ }
204
+ 100% {
205
+ z-index: 45;
206
+ width: 98%;
207
+ transform: translate(0.8%, -8px);
208
+ }
209
+ }
210
+
211
+ .slideOutAndIn1 {
212
+ pointer-events: none;
213
+ animation: slideOutAndInPosition1 2s ease forwards;
214
+ }
215
+
216
+ @keyframes slideOutAndInPosition0 {
217
+ 0% {
218
+ width: 100%;
219
+ z-index: 55;
220
+ transform: translate(0, 0);
221
+ }
222
+ 50% {
223
+ width: 97%;
224
+ z-index: 50;
225
+ transform: translate(0, 1000px);
226
+ }
227
+ 60% {
228
+ width: 95%;
229
+ z-index: 30;
230
+ transform: translate(3.2%, 900px);
231
+ }
232
+ 100% {
233
+ z-index: 55;
234
+ width: 100%;
235
+ transform: translate(0, 0);
236
+ }
126
237
  }
127
238
 
128
- .slideOutAndIn {
239
+ .slideOutAndIn0 {
129
240
  pointer-events: none;
130
- animation: slideOutAndIn 2s ease forwards;
241
+ animation: slideOutAndInPosition0 2s ease forwards;
131
242
  }
132
243
 
133
244
  .hiddenSlide {
@@ -28,9 +28,10 @@ declare const AppReview: {
28
28
  }>>;
29
29
  }>>;
30
30
  skills: import("prop-types").Requireable<import("prop-types").InferProps<{
31
- titleNoSkills: import("prop-types").Requireable<string>;
32
- textNoSkills: import("prop-types").Requireable<string>;
33
- iconSkillAriaLabel: import("prop-types").Requireable<string>;
31
+ 'aria-label': import("prop-types").Requireable<string>;
32
+ title: import("prop-types").Requireable<string>;
33
+ isLoading: import("prop-types").Requireable<boolean>;
34
+ isLoadingAriaLabel: import("prop-types").Requireable<string>;
34
35
  listSkills: import("prop-types").Requireable<(import("prop-types").InferProps<{
35
36
  'aria-label': import("prop-types").Requireable<string>;
36
37
  skillTitle: import("prop-types").Requireable<string>;
@@ -42,10 +43,9 @@ declare const AppReview: {
42
43
  isCustom: import("prop-types").Requireable<boolean>;
43
44
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
44
45
  }> | null | undefined)[]>;
45
- 'aria-label': import("prop-types").Requireable<string>;
46
- title: import("prop-types").Validator<string>;
47
- isLoading: import("prop-types").Requireable<boolean>;
48
- isLoadingAriaLabel: import("prop-types").Requireable<string>;
46
+ titleNoSkills: import("prop-types").Requireable<string>;
47
+ textNoSkills: import("prop-types").Requireable<string>;
48
+ iconSkillAriaLabel: import("prop-types").Requireable<string>;
49
49
  }>>;
50
50
  slides: import("prop-types").Requireable<import("prop-types").InferProps<{
51
51
  header: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -17,8 +17,6 @@ var _propTypes = _interopRequireDefault(require("./prop-types"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
20
  const AppReview = ({
23
21
  viewName,
24
22
  onboarding,
@@ -27,9 +25,7 @@ const AppReview = ({
27
25
  }) => {
28
26
  switch (viewName) {
29
27
  case 'skills':
30
- return /*#__PURE__*/_react.default.createElement(_skills.default, _extends({}, skills, {
31
- title: "@todo plug web skills | title is required"
32
- }));
28
+ return /*#__PURE__*/_react.default.createElement(_skills.default, skills);
33
29
 
34
30
  case 'onboarding':
35
31
  return /*#__PURE__*/_react.default.createElement(_onboarding.default, onboarding);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AppReview","viewName","onboarding","skills","slides","propTypes"],"sources":["../../../src/template/app-review/index.tsx"],"sourcesContent":["import React from 'react';\nimport Loader from '../../atom/loader';\nimport Onboarding from './onboarding';\nimport Skills from './skills';\nimport Player from './player';\nimport propTypes, {AppReviewProps} from './prop-types';\n\nconst AppReview = ({viewName, onboarding, skills, slides}: AppReviewProps) => {\n switch (viewName) {\n case 'skills':\n return <Skills {...skills} title=\"@todo plug web skills | title is required\" />;\n case 'onboarding':\n return <Onboarding {...onboarding} />;\n case 'slides':\n return <Player {...slides} />;\n default:\n return <Loader />;\n }\n};\n\nAppReview.propTypes = propTypes;\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,QAAD;EAAWC,UAAX;EAAuBC,MAAvB;EAA+BC;AAA/B,CAAD,KAA4D;EAC5E,QAAQH,QAAR;IACE,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,eAAYE,MAAZ;QAAoB,KAAK,EAAC;MAA1B,GAAP;;IACF,KAAK,YAAL;MACE,oBAAO,6BAAC,mBAAD,EAAgBD,UAAhB,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYE,MAAZ,CAAP;;IACF;MACE,oBAAO,6BAAC,eAAD,OAAP;EARJ;AAUD,CAXD;;AAaAJ,SAAS,CAACK,SAAV,2CAAsBA,kBAAtB;eAEeL,S"}
1
+ {"version":3,"file":"index.js","names":["AppReview","viewName","onboarding","skills","slides","propTypes"],"sources":["../../../src/template/app-review/index.tsx"],"sourcesContent":["import React from 'react';\nimport Loader from '../../atom/loader';\nimport Onboarding from './onboarding';\nimport Skills from './skills';\nimport Player from './player';\nimport propTypes, {AppReviewProps} from './prop-types';\n\nconst AppReview = ({viewName, onboarding, skills, slides}: AppReviewProps) => {\n switch (viewName) {\n case 'skills':\n return <Skills {...skills} />;\n case 'onboarding':\n return <Onboarding {...onboarding} />;\n case 'slides':\n return <Player {...slides} />;\n default:\n return <Loader />;\n }\n};\n\nAppReview.propTypes = propTypes;\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,QAAD;EAAWC,UAAX;EAAuBC,MAAvB;EAA+BC;AAA/B,CAAD,KAA4D;EAC5E,QAAQH,QAAR;IACE,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYE,MAAZ,CAAP;;IACF,KAAK,YAAL;MACE,oBAAO,6BAAC,mBAAD,EAAgBD,UAAhB,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYE,MAAZ,CAAP;;IACF;MACE,oBAAO,6BAAC,eAAD,OAAP;EARJ;AAUD,CAXD;;AAaAJ,SAAS,CAACK,SAAV,2CAAsBA,kBAAtB;eAEeL,S"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AA0B5C,QAAA,MAAM,SAAS,UAAW,cAAc,gBAsBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AA2B5C,QAAA,MAAM,SAAS,UAAW,cAAc,gBAsBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -9,6 +9,8 @@ var _reactNative = require("react-native");
9
9
 
10
10
  var _player = _interopRequireDefault(require("./player"));
11
11
 
12
+ var _skills = _interopRequireDefault(require("./skills"));
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -25,6 +27,7 @@ const styles = _reactNative.StyleSheet.create({
25
27
 
26
28
  const Switch = ({
27
29
  viewName,
30
+ skills,
28
31
  slides
29
32
  }) => {
30
33
  switch (viewName) {
@@ -32,7 +35,7 @@ const Switch = ({
32
35
  return /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, "@todo view onboarding");
33
36
 
34
37
  case 'skills':
35
- return /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, "@todo view skills");
38
+ return /*#__PURE__*/_react.default.createElement(_skills.default, skills);
36
39
 
37
40
  case 'slides':
38
41
  return /*#__PURE__*/_react.default.createElement(_player.default, slides);
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["styles","StyleSheet","create","rootView","flex","alignItems","justifyContent","Switch","viewName","slides","AppReview","props","navigateBack","useEffect","backAction","backHandler","BackHandler","addEventListener","remove"],"sources":["../../../src/template/app-review/index.native.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport {Text, StyleSheet, View, BackHandler} from 'react-native';\nimport {AppReviewProps} from './prop-types';\nimport Player from './player';\n\nconst styles = StyleSheet.create({\n rootView: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center'\n }\n});\n\nconst Switch = ({viewName, slides}: AppReviewProps) => {\n switch (viewName) {\n case 'onboarding':\n return <Text>@todo view onboarding</Text>;\n case 'skills':\n return <Text>@todo view skills</Text>;\n case 'slides':\n return <Player {...slides} />;\n case 'loader':\n return <Text>@todo loader</Text>;\n default:\n return <Text>unknown viewname: {viewName}</Text>;\n }\n};\n\nconst AppReview = (props: AppReviewProps) => {\n const {navigateBack} = props;\n\n useEffect(() => {\n const backAction = () => {\n if (navigateBack) {\n navigateBack();\n return true;\n }\n };\n\n // https://reactnative.dev/docs/backhandler\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [navigateBack]);\n\n return (\n <View style={styles.rootView}>\n <Switch {...props} />\n </View>\n );\n};\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AAEA;;;;;;;;AAEA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/BC,QAAQ,EAAE;IACRC,IAAI,EAAE,CADE;IAERC,UAAU,EAAE,QAFJ;IAGRC,cAAc,EAAE;EAHR;AADqB,CAAlB,CAAf;;AAQA,MAAMC,MAAM,GAAG,CAAC;EAACC,QAAD;EAAWC;AAAX,CAAD,KAAwC;EACrD,QAAQD,QAAR;IACE,KAAK,YAAL;MACE,oBAAO,6BAAC,iBAAD,gCAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,iBAAD,4BAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYC,MAAZ,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,iBAAD,uBAAP;;IACF;MACE,oBAAO,6BAAC,iBAAD,8BAAyBD,QAAzB,CAAP;EAVJ;AAYD,CAbD;;AAeA,MAAME,SAAS,GAAIC,KAAD,IAA2B;EAC3C,MAAM;IAACC;EAAD,IAAiBD,KAAvB;EAEA,IAAAE,gBAAA,EAAU,MAAM;IACd,MAAMC,UAAU,GAAG,MAAM;MACvB,IAAIF,YAAJ,EAAkB;QAChBA,YAAY;QACZ,OAAO,IAAP;MACD;IACF,CALD,CADc,CAQd;;;IACA,MAAMG,WAAW,GAAGC,wBAAA,CAAYC,gBAAZ,CAA6B,mBAA7B,EAAkDH,UAAlD,CAApB;;IAEA,OAAO,MAAMC,WAAW,CAACG,MAAZ,EAAb;EACD,CAZD,EAYG,CAACN,YAAD,CAZH;EAcA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEZ,MAAM,CAACG;EAApB,gBACE,6BAAC,MAAD,EAAYQ,KAAZ,CADF,CADF;AAKD,CAtBD;;eAwBeD,S"}
1
+ {"version":3,"file":"index.native.js","names":["styles","StyleSheet","create","rootView","flex","alignItems","justifyContent","Switch","viewName","skills","slides","AppReview","props","navigateBack","useEffect","backAction","backHandler","BackHandler","addEventListener","remove"],"sources":["../../../src/template/app-review/index.native.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport {Text, StyleSheet, View, BackHandler} from 'react-native';\nimport {AppReviewProps} from './prop-types';\nimport Player from './player';\nimport Skills from './skills';\n\nconst styles = StyleSheet.create({\n rootView: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center'\n }\n});\n\nconst Switch = ({viewName, skills, slides}: AppReviewProps) => {\n switch (viewName) {\n case 'onboarding':\n return <Text>@todo view onboarding</Text>;\n case 'skills':\n return <Skills {...skills} />;\n case 'slides':\n return <Player {...slides} />;\n case 'loader':\n return <Text>@todo loader</Text>;\n default:\n return <Text>unknown viewname: {viewName}</Text>;\n }\n};\n\nconst AppReview = (props: AppReviewProps) => {\n const {navigateBack} = props;\n\n useEffect(() => {\n const backAction = () => {\n if (navigateBack) {\n navigateBack();\n return true;\n }\n };\n\n // https://reactnative.dev/docs/backhandler\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [navigateBack]);\n\n return (\n <View style={styles.rootView}>\n <Switch {...props} />\n </View>\n );\n};\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/BC,QAAQ,EAAE;IACRC,IAAI,EAAE,CADE;IAERC,UAAU,EAAE,QAFJ;IAGRC,cAAc,EAAE;EAHR;AADqB,CAAlB,CAAf;;AAQA,MAAMC,MAAM,GAAG,CAAC;EAACC,QAAD;EAAWC,MAAX;EAAmBC;AAAnB,CAAD,KAAgD;EAC7D,QAAQF,QAAR;IACE,KAAK,YAAL;MACE,oBAAO,6BAAC,iBAAD,gCAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYC,MAAZ,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYC,MAAZ,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,iBAAD,uBAAP;;IACF;MACE,oBAAO,6BAAC,iBAAD,8BAAyBF,QAAzB,CAAP;EAVJ;AAYD,CAbD;;AAeA,MAAMG,SAAS,GAAIC,KAAD,IAA2B;EAC3C,MAAM;IAACC;EAAD,IAAiBD,KAAvB;EAEA,IAAAE,gBAAA,EAAU,MAAM;IACd,MAAMC,UAAU,GAAG,MAAM;MACvB,IAAIF,YAAJ,EAAkB;QAChBA,YAAY;QACZ,OAAO,IAAP;MACD;IACF,CALD,CADc,CAQd;;;IACA,MAAMG,WAAW,GAAGC,wBAAA,CAAYC,gBAAZ,CAA6B,mBAA7B,EAAkDH,UAAlD,CAApB;;IAEA,OAAO,MAAMC,WAAW,CAACG,MAAZ,EAAb;EACD,CAZD,EAYG,CAACN,YAAD,CAZH;EAcA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEb,MAAM,CAACG;EAApB,gBACE,6BAAC,MAAD,EAAYS,KAAZ,CADF,CADF;AAKD,CAtBD;;eAwBeD,S"}
@@ -1,12 +1,12 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import Onboarding from './onboarding';
3
- import Skills from './skills';
3
+ import { ReviewSkillsProps } from './skills/prop-types';
4
4
  import { ReviewPlayerProps } from './player/prop-types';
5
5
  export declare type ViewName = 'skills' | 'onboarding' | 'slides' | 'loader';
6
6
  export declare type AppReviewProps = {
7
7
  viewName: ViewName;
8
8
  slides?: ReviewPlayerProps;
9
- skills?: PropTypes.InferProps<typeof Skills.propTypes>;
9
+ skills?: ReviewSkillsProps;
10
10
  onboarding?: PropTypes.InferProps<typeof Onboarding.propTypes>;
11
11
  navigateBack?: () => void;
12
12
  };
@@ -36,9 +36,10 @@ declare const propTypes: {
36
36
  }>>;
37
37
  }>>;
38
38
  skills: PropTypes.Requireable<PropTypes.InferProps<{
39
- titleNoSkills: PropTypes.Requireable<string>;
40
- textNoSkills: PropTypes.Requireable<string>;
41
- iconSkillAriaLabel: PropTypes.Requireable<string>;
39
+ 'aria-label': PropTypes.Requireable<string>;
40
+ title: PropTypes.Requireable<string>;
41
+ isLoading: PropTypes.Requireable<boolean>;
42
+ isLoadingAriaLabel: PropTypes.Requireable<string>;
42
43
  listSkills: PropTypes.Requireable<(PropTypes.InferProps<{
43
44
  'aria-label': PropTypes.Requireable<string>;
44
45
  skillTitle: PropTypes.Requireable<string>;
@@ -50,10 +51,9 @@ declare const propTypes: {
50
51
  isCustom: PropTypes.Requireable<boolean>;
51
52
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
52
53
  }> | null | undefined)[]>;
53
- 'aria-label': PropTypes.Requireable<string>;
54
- title: PropTypes.Validator<string>;
55
- isLoading: PropTypes.Requireable<boolean>;
56
- isLoadingAriaLabel: PropTypes.Requireable<string>;
54
+ titleNoSkills: PropTypes.Requireable<string>;
55
+ textNoSkills: PropTypes.Requireable<string>;
56
+ iconSkillAriaLabel: PropTypes.Requireable<string>;
57
57
  }>>;
58
58
  slides: PropTypes.Requireable<PropTypes.InferProps<{
59
59
  header: PropTypes.Requireable<PropTypes.InferProps<{