@coorpacademy/components 11.8.1-alpha.27 → 11.9.1

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 (84) hide show
  1. package/es/atom/loader/index.native.d.ts.map +1 -1
  2. package/es/atom/loader/index.native.js +11 -9
  3. package/es/atom/loader/index.native.js.map +1 -1
  4. package/es/atom/review-presentation/index.native.d.ts.map +1 -1
  5. package/es/atom/review-presentation/index.native.js +7 -2
  6. package/es/atom/review-presentation/index.native.js.map +1 -1
  7. package/es/atom/select/index.js +1 -1
  8. package/es/atom/select/index.js.map +1 -1
  9. package/es/molecule/answer/index.d.ts.map +1 -1
  10. package/es/molecule/answer/index.js +2 -2
  11. package/es/molecule/answer/index.js.map +1 -1
  12. package/es/molecule/questions/drop-down/index.d.ts.map +1 -1
  13. package/es/molecule/questions/drop-down/index.js +2 -2
  14. package/es/molecule/questions/drop-down/index.js.map +1 -1
  15. package/es/molecule/questions/qcm/index.d.ts.map +1 -1
  16. package/es/molecule/questions/qcm/index.js +2 -2
  17. package/es/molecule/questions/qcm/index.js.map +1 -1
  18. package/es/molecule/questions/qcm-drag/index.d.ts.map +1 -1
  19. package/es/molecule/questions/qcm-drag/index.js +2 -2
  20. package/es/molecule/questions/qcm-drag/index.js.map +1 -1
  21. package/es/molecule/questions/qcm-graphic/index.d.ts.map +1 -1
  22. package/es/molecule/questions/qcm-graphic/index.js +2 -2
  23. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  24. package/es/molecule/questions/question-range/index.d.ts.map +1 -1
  25. package/es/molecule/questions/question-range/index.js +2 -2
  26. package/es/molecule/questions/question-range/index.js.map +1 -1
  27. package/es/molecule/questions/template/index.d.ts.map +1 -1
  28. package/es/molecule/questions/template/index.js +2 -2
  29. package/es/molecule/questions/template/index.js.map +1 -1
  30. package/es/organism/mooc-header/index.d.ts +0 -6
  31. package/es/organism/mooc-header/index.d.ts.map +1 -1
  32. package/es/organism/mooc-header/index.js +8 -68
  33. package/es/organism/mooc-header/index.js.map +1 -1
  34. package/es/organism/mooc-header/style.css +0 -46
  35. package/es/template/app-review/index.native.d.ts.map +1 -1
  36. package/es/template/app-review/index.native.js +48 -20
  37. package/es/template/app-review/index.native.js.map +1 -1
  38. package/es/template/app-review/skills/index.native.d.ts.map +1 -1
  39. package/es/template/app-review/skills/index.native.js +26 -5
  40. package/es/template/app-review/skills/index.native.js.map +1 -1
  41. package/es/template/teams-dashboard/index.d.ts +0 -2
  42. package/lib/atom/loader/index.native.d.ts.map +1 -1
  43. package/lib/atom/loader/index.native.js +11 -9
  44. package/lib/atom/loader/index.native.js.map +1 -1
  45. package/lib/atom/review-presentation/index.native.d.ts.map +1 -1
  46. package/lib/atom/review-presentation/index.native.js +7 -2
  47. package/lib/atom/review-presentation/index.native.js.map +1 -1
  48. package/lib/atom/select/index.js +1 -1
  49. package/lib/atom/select/index.js.map +1 -1
  50. package/lib/molecule/answer/index.d.ts.map +1 -1
  51. package/lib/molecule/answer/index.js +2 -2
  52. package/lib/molecule/answer/index.js.map +1 -1
  53. package/lib/molecule/questions/drop-down/index.d.ts.map +1 -1
  54. package/lib/molecule/questions/drop-down/index.js +2 -2
  55. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  56. package/lib/molecule/questions/qcm/index.d.ts.map +1 -1
  57. package/lib/molecule/questions/qcm/index.js +2 -2
  58. package/lib/molecule/questions/qcm/index.js.map +1 -1
  59. package/lib/molecule/questions/qcm-drag/index.d.ts.map +1 -1
  60. package/lib/molecule/questions/qcm-drag/index.js +2 -2
  61. package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
  62. package/lib/molecule/questions/qcm-graphic/index.d.ts.map +1 -1
  63. package/lib/molecule/questions/qcm-graphic/index.js +2 -2
  64. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  65. package/lib/molecule/questions/question-range/index.d.ts.map +1 -1
  66. package/lib/molecule/questions/question-range/index.js +2 -2
  67. package/lib/molecule/questions/question-range/index.js.map +1 -1
  68. package/lib/molecule/questions/template/index.d.ts.map +1 -1
  69. package/lib/molecule/questions/template/index.js +2 -2
  70. package/lib/molecule/questions/template/index.js.map +1 -1
  71. package/lib/organism/mooc-header/index.d.ts +0 -6
  72. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  73. package/lib/organism/mooc-header/index.js +7 -67
  74. package/lib/organism/mooc-header/index.js.map +1 -1
  75. package/lib/organism/mooc-header/style.css +0 -46
  76. package/lib/template/app-review/index.native.d.ts.map +1 -1
  77. package/lib/template/app-review/index.native.js +49 -19
  78. package/lib/template/app-review/index.native.js.map +1 -1
  79. package/lib/template/app-review/skills/index.native.d.ts.map +1 -1
  80. package/lib/template/app-review/skills/index.native.js +30 -7
  81. package/lib/template/app-review/skills/index.native.js.map +1 -1
  82. package/lib/template/teams-dashboard/index.d.ts +0 -2
  83. package/locales/.mtslconfig.json +1 -0
  84. package/package.json +3 -3
@@ -501,52 +501,6 @@
501
501
  color: dark;
502
502
  }
503
503
 
504
- .homeIcon {
505
- width: 16px;
506
- height: 14px;
507
- margin-left: 16px;
508
- }
509
-
510
- .toolTipText {
511
- font-family: 'Gilroy';
512
- font-size: 14px;
513
- width: 121px;
514
- height: 24px;
515
- line-height: 27px;
516
- order: 0;
517
- }
518
-
519
- [role="tooltip"],
520
- .tooltipIconContainer + [role="tooltip"] {
521
- border: none;
522
- border-radius: 8px;
523
- display: flex;
524
- flex-direction: row;
525
- align-items: center;
526
- gap: 8px;
527
- position: absolute;
528
- background-color: white;
529
- bottom: -2.5em;
530
- height: 32px;
531
- width: 160px;
532
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
533
- }
534
-
535
- .tooltipIconContainer::after {
536
- content: ' ';
537
- display: inline-block;
538
- visibility: inherit;
539
- opacity: inherit;
540
- width: 15px;
541
- height: 15px;
542
- transform: rotate(-45deg);
543
- background-color: white;
544
- position: inherit;
545
- top: -6px;
546
- right: 40%;
547
- border-radius: 2px;
548
- }
549
-
550
504
  @media desktop {
551
505
  .item {
552
506
  padding: 0 11px;
@@ -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;AAsB5C,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":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AA8B5C,QAAA,MAAM,SAAS,UAAW,cAAc,gBA8CvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -7,7 +7,11 @@ var _react = _interopRequireWildcard(require("react"));
7
7
 
8
8
  var _reactNative = require("react-native");
9
9
 
10
- var _player = _interopRequireDefault(require("./player"));
10
+ var _reactNativeAnimation = require("@coorpacademy/react-native-animation");
11
+
12
+ var _index = _interopRequireDefault(require("../../atom/loader/index.native"));
13
+
14
+ var _index2 = _interopRequireDefault(require("./player/index.native"));
11
15
 
12
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
17
 
@@ -20,28 +24,33 @@ const styles = _reactNative.StyleSheet.create({
20
24
  flex: 1,
21
25
  alignItems: 'center',
22
26
  justifyContent: 'center'
27
+ },
28
+ player: {
29
+ position: 'absolute',
30
+ top: 0,
31
+ left: 0,
32
+ right: 0,
33
+ bottom: 0,
34
+ justifyContent: 'center',
35
+ alignItems: 'center',
36
+ flex: 1
37
+ },
38
+ loaderContainer: {
39
+ position: 'absolute',
40
+ top: 0,
41
+ left: 0,
42
+ right: 0,
43
+ bottom: 0,
44
+ justifyContent: 'center',
45
+ alignItems: 'center'
23
46
  }
24
47
  });
25
48
 
26
- const Switch = ({
27
- viewName,
28
- slides
29
- }) => {
30
- switch (viewName) {
31
- case 'slides':
32
- return /*#__PURE__*/_react.default.createElement(_player.default, slides);
33
-
34
- case 'loader':
35
- return /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, "@todo loader");
36
-
37
- default:
38
- return /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, `unknown viewName: "${viewName}"`);
39
- }
40
- };
41
-
42
49
  const AppReview = props => {
43
50
  const {
44
- navigateBack
51
+ navigateBack,
52
+ viewName,
53
+ slides
45
54
  } = props;
46
55
  (0, _react.useEffect)(() => {
47
56
  const backAction = () => {
@@ -56,9 +65,30 @@ const AppReview = props => {
56
65
 
57
66
  return () => backHandler.remove();
58
67
  }, [navigateBack]);
68
+ const fadePlayerIn = (0, _reactNativeAnimation.useAnimateProp)({
69
+ property: 'opacity',
70
+ fromValue: 0,
71
+ toValue: 1,
72
+ duration: 1300
73
+ });
74
+ const isLoading = viewName === 'loader';
75
+ (0, _reactNativeAnimation.useAnimationWaiter)(isLoading, fadePlayerIn);
59
76
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
60
77
  style: styles.rootView
61
- }, /*#__PURE__*/_react.default.createElement(Switch, props));
78
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
79
+ style: [styles.player, fadePlayerIn.animatedStyle]
80
+ }, slides ? /*#__PURE__*/_react.default.createElement(_index2.default, {
81
+ congrats: slides.congrats,
82
+ header: slides.header,
83
+ stack: slides.stack,
84
+ quitPopin: slides.quitPopin,
85
+ backgroundImage: slides.backgroundImage
86
+ }) : null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
87
+ style: styles.loaderContainer,
88
+ pointerEvents: "none"
89
+ }, /*#__PURE__*/_react.default.createElement(_index.default, {
90
+ readyToHide: !isLoading
91
+ })));
62
92
  };
63
93
 
64
94
  var _default = AppReview;
@@ -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 '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,QAAL;MACE,oBAAO,6BAAC,eAAD,EAAYC,MAAZ,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,iBAAD,uBAAP;;IACF;MACE,oBAAO,6BAAC,iBAAD,QAAQ,sBAAqBD,QAAS,GAAtC,CAAP;EANJ;AAQD,CATD;;AAWA,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","player","position","top","left","right","bottom","loaderContainer","AppReview","props","navigateBack","viewName","slides","useEffect","backAction","backHandler","BackHandler","addEventListener","remove","fadePlayerIn","useAnimateProp","property","fromValue","toValue","duration","isLoading","useAnimationWaiter","animatedStyle","congrats","header","stack","quitPopin","backgroundImage"],"sources":["../../../src/template/app-review/index.native.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport {StyleSheet, View, BackHandler, Animated} from 'react-native';\nimport {useAnimateProp, useAnimationWaiter} from '@coorpacademy/react-native-animation';\nimport Loader from '../../atom/loader/index.native';\nimport {AppReviewProps} from './prop-types';\nimport Player from './player/index.native';\n\nconst styles = StyleSheet.create({\n rootView: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center'\n },\n player: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center',\n flex: 1\n },\n loaderContainer: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center'\n }\n});\n\nconst AppReview = (props: AppReviewProps) => {\n const {navigateBack, viewName, slides} = 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 const fadePlayerIn = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 1300\n });\n\n const isLoading = viewName === 'loader';\n useAnimationWaiter(isLoading, fadePlayerIn);\n\n return (\n <View style={styles.rootView}>\n <Animated.View style={[styles.player, fadePlayerIn.animatedStyle]}>\n {slides ? (\n <Player\n congrats={slides.congrats}\n header={slides.header}\n stack={slides.stack}\n quitPopin={slides.quitPopin}\n backgroundImage={slides.backgroundImage}\n />\n ) : null}\n </Animated.View>\n\n <View style={styles.loaderContainer} pointerEvents=\"none\">\n <Loader readyToHide={!isLoading} />\n </View>\n </View>\n );\n};\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;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,CADqB;EAM/BC,MAAM,EAAE;IACNC,QAAQ,EAAE,UADJ;IAENC,GAAG,EAAE,CAFC;IAGNC,IAAI,EAAE,CAHA;IAINC,KAAK,EAAE,CAJD;IAKNC,MAAM,EAAE,CALF;IAMNN,cAAc,EAAE,QANV;IAOND,UAAU,EAAE,QAPN;IAQND,IAAI,EAAE;EARA,CANuB;EAgB/BS,eAAe,EAAE;IACfL,QAAQ,EAAE,UADK;IAEfC,GAAG,EAAE,CAFU;IAGfC,IAAI,EAAE,CAHS;IAIfC,KAAK,EAAE,CAJQ;IAKfC,MAAM,EAAE,CALO;IAMfN,cAAc,EAAE,QAND;IAOfD,UAAU,EAAE;EAPG;AAhBc,CAAlB,CAAf;;AA2BA,MAAMS,SAAS,GAAIC,KAAD,IAA2B;EAC3C,MAAM;IAACC,YAAD;IAAe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
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAyB/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBA4C7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/skills/index.native.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAmC/C,QAAA,MAAM,YAAY,UAAW,iBAAiB,uBAmD7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -3,13 +3,17 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
+ var _reactNativeAnimation = require("@coorpacademy/react-native-animation");
7
+
6
8
  var _react = _interopRequireWildcard(require("react"));
7
9
 
8
10
  var _reactNative = require("react-native");
9
11
 
10
- var _index = _interopRequireDefault(require("../../../organism/review-no-skills/index.native"));
12
+ var _index = _interopRequireDefault(require("../../../atom/loader/index.native"));
13
+
14
+ var _index2 = _interopRequireDefault(require("../../../organism/review-no-skills/index.native"));
11
15
 
12
- var _index2 = _interopRequireDefault(require("../../../organism/review-skills/index.native"));
16
+ var _index3 = _interopRequireDefault(require("../../../organism/review-skills/index.native"));
13
17
 
14
18
  var _templateContext = require("../template-context");
15
19
 
@@ -26,6 +30,15 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
26
30
  width: '100%',
27
31
  backgroundColor: theme.colors.white
28
32
  },
33
+ loaderContainer: {
34
+ position: 'absolute',
35
+ top: 0,
36
+ left: 0,
37
+ right: 0,
38
+ bottom: 0,
39
+ justifyContent: 'center',
40
+ alignItems: 'center'
41
+ },
29
42
  title: {
30
43
  fontSize: theme.fontSize.xlarge,
31
44
  fontWeight: theme.fontWeight.bold,
@@ -41,7 +54,6 @@ const ReviewSkills = props => {
41
54
  'aria-label': ariaLabel,
42
55
  title,
43
56
  isLoading,
44
- isLoadingAriaLabel,
45
57
  listSkills,
46
58
  titleNoSkills,
47
59
  textNoSkills,
@@ -57,6 +69,12 @@ const ReviewSkills = props => {
57
69
 
58
70
  setStylesheet(_stylesheet);
59
71
  }, [theme]);
72
+ const fadeResultsIn = (0, _reactNativeAnimation.useAnimateProp)({
73
+ property: 'opacity',
74
+ fromValue: 0,
75
+ toValue: 1
76
+ });
77
+ (0, _reactNativeAnimation.useAnimationWaiter)(isLoading, fadeResultsIn);
60
78
 
61
79
  if (!styleSheet) {
62
80
  return null;
@@ -67,14 +85,19 @@ const ReviewSkills = props => {
67
85
  accessibilityLabel: ariaLabel
68
86
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
69
87
  style: styleSheet.title
70
- }, title), isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
71
- accessibilityLabel: isLoadingAriaLabel
72
- }, "Loading") : /*#__PURE__*/_react.default.createElement(_reactNative.View, null, !listSkills || listSkills.length === 0 ? /*#__PURE__*/_react.default.createElement(_index.default, {
88
+ }, title), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
89
+ style: fadeResultsIn.animatedStyle
90
+ }, !listSkills || listSkills.length === 0 ? /*#__PURE__*/_react.default.createElement(_index2.default, {
73
91
  titleNoSkills: titleNoSkills,
74
92
  textNoSkills: textNoSkills,
75
93
  iconSkillAriaLabel: iconSkillAriaLabel
76
- }) : /*#__PURE__*/_react.default.createElement(_index2.default, {
94
+ }) : /*#__PURE__*/_react.default.createElement(_index3.default, {
77
95
  listSkills: listSkills
96
+ })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
97
+ style: styleSheet.loaderContainer,
98
+ pointerEvents: "none"
99
+ }, /*#__PURE__*/_react.default.createElement(_index.default, {
100
+ readyToHide: !isLoading
78
101
  })));
79
102
  };
80
103
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","flex","padding","width","backgroundColor","colors","white","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","ReviewSkills","props","ariaLabel","isLoading","isLoadingAriaLabel","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {Text, View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport ReviewNoSkills from '../../../organism/review-no-skills/index.native';\nimport ReviewListSkills from '../../../organism/review-skills/index.native';\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../template-context';\nimport {ReviewSkillsProps} from './prop-types';\n\ntype StyleSheetType = {\n container: ViewStyle;\n title: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n width: '100%',\n backgroundColor: theme.colors.white\n },\n title: {\n fontSize: theme.fontSize.xlarge,\n fontWeight: theme.fontWeight.bold,\n lineHeight: 28,\n color: theme.colors.text.primary,\n marginBottom: theme.spacing.base,\n marginTop: theme.spacing.small\n }\n });\n\nconst ReviewSkills = (props: ReviewSkillsProps) => {\n const {\n 'aria-label': ariaLabel,\n title,\n isLoading,\n isLoadingAriaLabel,\n listSkills,\n titleNoSkills,\n textNoSkills,\n iconSkillAriaLabel\n } = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.container} accessibilityLabel={ariaLabel}>\n <Text style={styleSheet.title}>{title}</Text>\n {isLoading ? (\n <Text accessibilityLabel={isLoadingAriaLabel}>Loading</Text>\n ) : (\n <View>\n {!listSkills || listSkills.length === 0 ? (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n ) : (\n <ReviewListSkills listSkills={listSkills} />\n )}\n </View>\n )}\n </View>\n );\n};\n\nexport default ReviewSkills;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAQA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;IAETC,OAAO,EAAE,EAFA;IAGTC,KAAK,EAAE,MAHE;IAITC,eAAe,EAAEP,KAAK,CAACQ,MAAN,CAAaC;EAJrB,CADK;EAOhBC,KAAK,EAAE;IACLC,QAAQ,EAAEX,KAAK,CAACW,QAAN,CAAeC,MADpB;IAELC,UAAU,EAAEb,KAAK,CAACa,UAAN,CAAiBC,IAFxB;IAGLC,UAAU,EAAE,EAHP;IAILC,KAAK,EAAEhB,KAAK,CAACQ,MAAN,CAAaS,IAAb,CAAkBC,OAJpB;IAKLC,YAAY,EAAEnB,KAAK,CAACoB,OAAN,CAAcC,IALvB;IAMLC,SAAS,EAAEtB,KAAK,CAACoB,OAAN,CAAcG;EANpB;AAPS,CAAlB,CADF;;AAkBA,MAAMC,YAAY,GAAIC,KAAD,IAA8B;EACjD,MAAM;IACJ,cAAcC,SADV;IAEJhB,KAFI;IAGJiB,SAHI;IAIJC,kBAJI;IAKJC,UALI;IAMJC,aANI;IAOJC,YAPI;IAQJC;EARI,IASFP,KATJ;EAUA,MAAMQ,eAAe,GAAG,IAAAC,mCAAA,GAAxB;EACA,MAAM,CAACC,UAAD,EAAaC,aAAb,IAA8B,IAAAC,eAAA,EAAgC,IAAhC,CAApC;EACA,MAAM;IAACrC;EAAD,IAAUiC,eAAhB;EAEA,IAAAK,gBAAA,EAAU,MAAM;IACd,MAAMC,WAAW,GAAGxC,gBAAgB,CAACC,KAAD,CAApC;;IACAoC,aAAa,CAACG,WAAD,CAAb;EACD,CAHD,EAGG,CAACvC,KAAD,CAHH;;EAKA,IAAI,CAACmC,UAAL,EAAiB;IACf,OAAO,IAAP;EACD;;EAED,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEA,UAAU,CAAChC,SAAxB;IAAmC,kBAAkB,EAAEuB;EAAvD,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAES,UAAU,CAACzB;EAAxB,GAAgCA,KAAhC,CADF,EAEGiB,SAAS,gBACR,6BAAC,iBAAD;IAAM,kBAAkB,EAAEC;EAA1B,aADQ,gBAGR,6BAAC,iBAAD,QACG,CAACC,UAAD,IAAeA,UAAU,CAACW,MAAX,KAAsB,CAArC,gBACC,6BAAC,cAAD;IACE,aAAa,EAAEV,aADjB;IAEE,YAAY,EAAEC,YAFhB;IAGE,kBAAkB,EAAEC;EAHtB,EADD,gBAOC,6BAAC,eAAD;IAAkB,UAAU,EAAEH;EAA9B,EARJ,CALJ,CADF;AAoBD,CA5CD;;eA8CeL,Y"}
1
+ {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","flex","padding","width","backgroundColor","colors","white","loaderContainer","position","top","left","right","bottom","justifyContent","alignItems","title","fontSize","xlarge","fontWeight","bold","lineHeight","color","text","primary","marginBottom","spacing","base","marginTop","small","ReviewSkills","props","ariaLabel","isLoading","listSkills","titleNoSkills","textNoSkills","iconSkillAriaLabel","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","fadeResultsIn","useAnimateProp","property","fromValue","toValue","useAnimationWaiter","animatedStyle","length"],"sources":["../../../../src/template/app-review/skills/index.native.tsx"],"sourcesContent":["import {useAnimateProp, useAnimationWaiter} from '@coorpacademy/react-native-animation';\nimport React, {useState, useEffect} from 'react';\nimport {Text, View, StyleSheet, ViewStyle, TextStyle, Animated} from 'react-native';\nimport Loader from '../../../atom/loader/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 loaderContainer: ViewStyle;\n title: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n width: '100%',\n backgroundColor: theme.colors.white\n },\n loaderContainer: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center'\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 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 const fadeResultsIn = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1\n });\n\n useAnimationWaiter(isLoading, fadeResultsIn);\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\n <Animated.View style={fadeResultsIn.animatedStyle}>\n {!listSkills || listSkills.length === 0 ? (\n <ReviewNoSkills\n titleNoSkills={titleNoSkills}\n textNoSkills={textNoSkills}\n iconSkillAriaLabel={iconSkillAriaLabel}\n />\n ) : (\n <ReviewListSkills listSkills={listSkills} />\n )}\n </Animated.View>\n <View style={styleSheet.loaderContainer} pointerEvents=\"none\">\n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,IAAAK,gBAAA,EAAU,MAAM;IACd,MAAMC,WAAW,GAAG/C,gBAAgB,CAACC,KAAD,CAApC;;IACA2C,aAAa,CAACG,WAAD,CAAb;EACD,CAHD,EAGG,CAAC9C,KAAD,CAHH;EAKA,MAAM+C,aAAa,GAAG,IAAAC,oCAAA,EAAe;IACnCC,QAAQ,EAAE,SADyB;IAEnCC,SAAS,EAAE,CAFwB;IAGnCC,OAAO,EAAE;EAH0B,CAAf,CAAtB;EAMA,IAAAC,wCAAA,EAAmBjB,SAAnB,EAA8BY,aAA9B;;EAEA,IAAI,CAACL,UAAL,EAAiB;IACf,OAAO,IAAP;EACD;;EAED,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEA,UAAU,CAACvC,SAAxB;IAAmC,kBAAkB,EAAE+B;EAAvD,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEQ,UAAU,CAACxB;EAAxB,GAAgCA,KAAhC,CADF,eAGE,6BAAC,qBAAD,CAAU,IAAV;IAAe,KAAK,EAAE6B,aAAa,CAACM;EAApC,GACG,CAACjB,UAAD,IAAeA,UAAU,CAACkB,MAAX,KAAsB,CAArC,gBACC,6BAAC,eAAD;IACE,aAAa,EAAEjB,aADjB;IAEE,YAAY,EAAEC,YAFhB;IAGE,kBAAkB,EAAEC;EAHtB,EADD,gBAOC,6BAAC,eAAD;IAAkB,UAAU,EAAEH;EAA9B,EARJ,CAHF,eAcE,6BAAC,iBAAD;IAAM,KAAK,EAAEM,UAAU,CAAChC,eAAxB;IAAyC,aAAa,EAAC;EAAvD,gBACE,6BAAC,cAAD;IAAQ,WAAW,EAAE,CAACyB;EAAtB,EADF,CAdF,CADF;AAoBD,CAnDD;;eAqDeH,Y"}
@@ -13,8 +13,6 @@ declare namespace TeamsDashboard {
13
13
  href: PropTypes.Requireable<string>;
14
14
  'aria-label': PropTypes.Requireable<string>;
15
15
  'button-aria-label': PropTypes.Requireable<string>;
16
- toolTipText: PropTypes.Requireable<string>;
17
- closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
18
16
  }>>;
19
17
  const platformLinks: PropTypes.Requireable<(PropTypes.InferProps<{
20
18
  submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -0,0 +1 @@
1
+ {"ignore_dirs":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.8.1-alpha.27+f810d6555",
3
+ "version": "11.9.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -57,7 +57,7 @@
57
57
  ],
58
58
  "dependencies": {
59
59
  "@coorpacademy/nova-icons": "4.1.2",
60
- "@coorpacademy/react-native-animation": "1.0.2",
60
+ "@coorpacademy/react-native-animation": "1.0.3",
61
61
  "@jwplayer/jwplayer-react": "^1.1.0",
62
62
  "@types/react": "^17.0.50",
63
63
  "@types/react-dom": "^17.0.17",
@@ -160,5 +160,5 @@
160
160
  "last 2 versions",
161
161
  "IE 11"
162
162
  ],
163
- "gitHead": "f810d655513c990bb2d432f2adcd29e8d9414044"
163
+ "gitHead": "c5c10199e07c0b1b3819b5e7cea9378c0fa9919d"
164
164
  }