@coorpacademy/components 11.11.5-alpha.0 → 11.11.6

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 (158) hide show
  1. package/es/atom/battle-opponent/index.d.ts +20 -0
  2. package/es/atom/battle-opponent/index.d.ts.map +1 -0
  3. package/es/atom/battle-opponent/index.js +104 -0
  4. package/es/atom/battle-opponent/index.js.map +1 -0
  5. package/es/atom/battle-opponent/prop-types.d.ts +21 -0
  6. package/es/atom/battle-opponent/prop-types.d.ts.map +1 -0
  7. package/es/atom/battle-opponent/prop-types.js +12 -0
  8. package/es/atom/battle-opponent/prop-types.js.map +1 -0
  9. package/es/atom/battle-opponent/style.css +133 -0
  10. package/es/atom/{review-header-step-item → status-item}/index.d.ts +4 -4
  11. package/es/atom/status-item/index.d.ts.map +1 -0
  12. package/es/atom/status-item/index.js +104 -0
  13. package/es/atom/status-item/index.js.map +1 -0
  14. package/es/atom/status-item/index.native.d.ts +5 -0
  15. package/es/atom/status-item/index.native.d.ts.map +1 -0
  16. package/es/atom/{review-header-step-item → status-item}/index.native.js +2 -2
  17. package/es/atom/status-item/index.native.js.map +1 -0
  18. package/es/atom/{review-header-step-item → status-item}/style.css +47 -0
  19. package/es/atom/{review-header-step-item → status-item}/types.d.ts +5 -5
  20. package/es/atom/status-item/types.d.ts.map +1 -0
  21. package/es/atom/{review-header-step-item → status-item}/types.js +1 -1
  22. package/es/atom/status-item/types.js.map +1 -0
  23. package/es/atom/tooltip/index.d.ts +3 -1
  24. package/es/atom/tooltip/index.d.ts.map +1 -1
  25. package/es/atom/tooltip/index.js +18 -7
  26. package/es/atom/tooltip/index.js.map +1 -1
  27. package/es/atom/tooltip/style.css +11 -2
  28. package/es/globals.d.js.map +1 -1
  29. package/es/molecule/battle-opponent-list/index.d.ts +18 -0
  30. package/es/molecule/battle-opponent-list/index.d.ts.map +1 -0
  31. package/es/molecule/battle-opponent-list/index.js +25 -0
  32. package/es/molecule/battle-opponent-list/index.js.map +1 -0
  33. package/es/molecule/battle-opponent-list/prop-types.d.ts +26 -0
  34. package/es/molecule/battle-opponent-list/prop-types.d.ts.map +1 -0
  35. package/es/molecule/battle-opponent-list/prop-types.js +14 -0
  36. package/es/molecule/battle-opponent-list/prop-types.js.map +1 -0
  37. package/es/molecule/battle-opponent-list/style.css +5 -0
  38. package/es/molecule/review-header-steps/index.js +2 -2
  39. package/es/molecule/review-header-steps/index.js.map +1 -1
  40. package/es/molecule/review-header-steps/prop-types.d.ts +2 -2
  41. package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  42. package/es/molecule/review-header-steps/prop-types.js +1 -1
  43. package/es/molecule/review-header-steps/prop-types.js.map +1 -1
  44. package/es/organism/mooc-footer/style.css +1 -0
  45. package/es/organism/mooc-header/index.d.ts +3 -0
  46. package/es/organism/mooc-header/index.d.ts.map +1 -1
  47. package/es/organism/mooc-header/index.js +39 -4
  48. package/es/organism/mooc-header/index.js.map +1 -1
  49. package/es/organism/mooc-header/style.css +17 -1
  50. package/es/organism/review-header/index.native.js +1 -1
  51. package/es/organism/review-header/index.native.js.map +1 -1
  52. package/es/organism/review-header/types.d.ts +2 -2
  53. package/es/organism/review-header/types.d.ts.map +1 -1
  54. package/es/organism/review-header/types.js.map +1 -1
  55. package/es/organism/user-preferences/index.d.ts.map +1 -1
  56. package/es/organism/user-preferences/index.js +6 -3
  57. package/es/organism/user-preferences/index.js.map +1 -1
  58. package/es/variables/colors.css +2 -0
  59. package/lib/atom/battle-opponent/index.d.ts +20 -0
  60. package/lib/atom/battle-opponent/index.d.ts.map +1 -0
  61. package/lib/atom/battle-opponent/index.js +124 -0
  62. package/lib/atom/battle-opponent/index.js.map +1 -0
  63. package/lib/atom/battle-opponent/prop-types.d.ts +21 -0
  64. package/lib/atom/battle-opponent/prop-types.d.ts.map +1 -0
  65. package/lib/atom/battle-opponent/prop-types.js +21 -0
  66. package/lib/atom/battle-opponent/prop-types.js.map +1 -0
  67. package/lib/atom/battle-opponent/style.css +133 -0
  68. package/lib/atom/{review-header-step-item → status-item}/index.d.ts +4 -4
  69. package/lib/atom/status-item/index.d.ts.map +1 -0
  70. package/lib/atom/{review-header-step-item → status-item}/index.js +50 -23
  71. package/lib/atom/status-item/index.js.map +1 -0
  72. package/lib/atom/status-item/index.native.d.ts +5 -0
  73. package/lib/atom/status-item/index.native.d.ts.map +1 -0
  74. package/lib/atom/{review-header-step-item → status-item}/index.native.js +2 -2
  75. package/lib/atom/status-item/index.native.js.map +1 -0
  76. package/lib/atom/{review-header-step-item → status-item}/style.css +47 -0
  77. package/lib/atom/{review-header-step-item → status-item}/types.d.ts +5 -5
  78. package/lib/atom/status-item/types.d.ts.map +1 -0
  79. package/lib/atom/{review-header-step-item → status-item}/types.js +1 -1
  80. package/lib/atom/status-item/types.js.map +1 -0
  81. package/lib/atom/tooltip/index.d.ts +3 -1
  82. package/lib/atom/tooltip/index.d.ts.map +1 -1
  83. package/lib/atom/tooltip/index.js +19 -7
  84. package/lib/atom/tooltip/index.js.map +1 -1
  85. package/lib/atom/tooltip/style.css +11 -2
  86. package/lib/globals.d.js.map +1 -1
  87. package/lib/molecule/battle-opponent-list/index.d.ts +18 -0
  88. package/lib/molecule/battle-opponent-list/index.d.ts.map +1 -0
  89. package/lib/molecule/battle-opponent-list/index.js +43 -0
  90. package/lib/molecule/battle-opponent-list/index.js.map +1 -0
  91. package/lib/molecule/battle-opponent-list/prop-types.d.ts +26 -0
  92. package/lib/molecule/battle-opponent-list/prop-types.d.ts.map +1 -0
  93. package/lib/molecule/battle-opponent-list/prop-types.js +23 -0
  94. package/lib/molecule/battle-opponent-list/prop-types.js.map +1 -0
  95. package/lib/molecule/battle-opponent-list/style.css +5 -0
  96. package/lib/molecule/review-header-steps/index.js +2 -2
  97. package/lib/molecule/review-header-steps/index.js.map +1 -1
  98. package/lib/molecule/review-header-steps/prop-types.d.ts +2 -2
  99. package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  100. package/lib/molecule/review-header-steps/prop-types.js +1 -1
  101. package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
  102. package/lib/organism/mooc-footer/style.css +1 -0
  103. package/lib/organism/mooc-header/index.d.ts +3 -0
  104. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  105. package/lib/organism/mooc-header/index.js +39 -4
  106. package/lib/organism/mooc-header/index.js.map +1 -1
  107. package/lib/organism/mooc-header/style.css +17 -1
  108. package/lib/organism/review-header/index.native.js +1 -1
  109. package/lib/organism/review-header/index.native.js.map +1 -1
  110. package/lib/organism/review-header/types.d.ts +2 -2
  111. package/lib/organism/review-header/types.d.ts.map +1 -1
  112. package/lib/organism/review-header/types.js.map +1 -1
  113. package/lib/organism/user-preferences/index.d.ts.map +1 -1
  114. package/lib/organism/user-preferences/index.js +10 -3
  115. package/lib/organism/user-preferences/index.js.map +1 -1
  116. package/lib/variables/colors.css +2 -0
  117. package/locales/bs/global.json +8 -5
  118. package/locales/cs/global.json +8 -5
  119. package/locales/de/global.json +8 -5
  120. package/locales/en/global.json +8 -5
  121. package/locales/es/global.json +8 -5
  122. package/locales/et/global.json +8 -5
  123. package/locales/fr/global.json +8 -5
  124. package/locales/hr/global.json +8 -5
  125. package/locales/hu/global.json +8 -5
  126. package/locales/hy/global.json +8 -5
  127. package/locales/it/global.json +8 -5
  128. package/locales/ja/global.json +8 -5
  129. package/locales/ko/global.json +8 -5
  130. package/locales/nl/global.json +8 -5
  131. package/locales/pl/global.json +8 -5
  132. package/locales/pt/global.json +8 -5
  133. package/locales/ro/global.json +8 -5
  134. package/locales/ru/global.json +8 -5
  135. package/locales/sk/global.json +8 -5
  136. package/locales/th/global.json +8 -5
  137. package/locales/tl/global.json +8 -5
  138. package/locales/tr/global.json +8 -5
  139. package/locales/uk/global.json +8 -5
  140. package/locales/vi/global.json +8 -5
  141. package/locales/zh/global.json +8 -5
  142. package/locales/zh_TW/global.json +8 -5
  143. package/package.json +3 -2
  144. package/es/atom/review-header-step-item/index.d.ts.map +0 -1
  145. package/es/atom/review-header-step-item/index.js +0 -77
  146. package/es/atom/review-header-step-item/index.js.map +0 -1
  147. package/es/atom/review-header-step-item/index.native.d.ts +0 -5
  148. package/es/atom/review-header-step-item/index.native.d.ts.map +0 -1
  149. package/es/atom/review-header-step-item/index.native.js.map +0 -1
  150. package/es/atom/review-header-step-item/types.d.ts.map +0 -1
  151. package/es/atom/review-header-step-item/types.js.map +0 -1
  152. package/lib/atom/review-header-step-item/index.d.ts.map +0 -1
  153. package/lib/atom/review-header-step-item/index.js.map +0 -1
  154. package/lib/atom/review-header-step-item/index.native.d.ts +0 -5
  155. package/lib/atom/review-header-step-item/index.native.d.ts.map +0 -1
  156. package/lib/atom/review-header-step-item/index.native.js.map +0 -1
  157. package/lib/atom/review-header-step-item/types.d.ts.map +0 -1
  158. package/lib/atom/review-header-step-item/types.js.map +0 -1
@@ -81,10 +81,13 @@
81
81
  "mandatory_fields": "*Mandatory fields",
82
82
  "something_went_wrong": "Oh Snap! Something went wrong.",
83
83
  "review_header_step_item": {
84
- "aria_label": "Питання {{headerStepValue}}",
85
- "current_question": "Питання {{headerStepValue}} є поточним питанням",
86
- "correct_question": "Питання {{headerStepValue}} правильне",
87
- "incorrect_question": "Питання {{headerStepValue}} некоректне",
88
- "not_answered_question": "На запитання {{headerStepValue}} ще немає відповіді"
84
+ "correct_question": "{{current}}питання {{headerStepValue}} є павильним",
85
+ "incorrect_question": "{{current}}питання {{headerStepValue}} є неправильним",
86
+ "not_answered_question": "На {{current}}питання {{headerStepValue}} ще немає відповіді"
87
+ },
88
+ "bulk_import": {
89
+ "errors_number": "кількість помилок масового імпорту: {{bulkImportErrorsNumber}}",
90
+ "valid_scorm": "SCORM-файл є дійсним",
91
+ "invalid_scorm": "SCORM-файл є недійсним"
89
92
  }
90
93
  }
@@ -81,10 +81,13 @@
81
81
  "mandatory_fields": "*Mandatory fields",
82
82
  "something_went_wrong": "Oh Snap! Something went wrong.",
83
83
  "review_header_step_item": {
84
- "aria_label": "Câu hỏi {{headerStepValue}}",
85
- "current_question": "Câu hỏi {{headerStepValue}} là câu hỏi hiện tại",
86
- "correct_question": "Câu {{headerStepValue}} đúng không",
87
- "incorrect_question": "Câu {{headerStepValue}} sai",
88
- "not_answered_question": "Câu hỏi {{headerStepValue}} chưa có câu trả lời"
84
+ "correct_question": "câu hỏi{{current}} {{headerStepValue}} là chính xác",
85
+ "incorrect_question": "câu hỏi{{current}} {{headerStepValue}} là sai",
86
+ "not_answered_question": "câu hỏi{{current}} {{headerStepValue}} chưa được trả lời"
87
+ },
88
+ "bulk_import": {
89
+ "errors_number": "số lỗi nhập hàng loạt là {{bulkImportErrorsNumber}}",
90
+ "valid_scorm": "tập tin scorm là hợp lệ",
91
+ "invalid_scorm": "tập tin scorm là không hợp lệ"
89
92
  }
90
93
  }
@@ -81,10 +81,13 @@
81
81
  "mandatory_fields": "*Mandatory fields",
82
82
  "something_went_wrong": "Oh Snap! Something went wrong.",
83
83
  "review_header_step_item": {
84
- "aria_label": "问题{{headerStepValue}}",
85
- "current_question": "问题 {{headerStepValue}} 是当前问题",
86
- "correct_question": "问题{{headerStepValue}}是正确的",
87
- "incorrect_question": "问题 {{headerStepValue}} 不正确",
88
- "not_answered_question": "问题 {{headerStepValue}} 尚未回答"
84
+ "correct_question": "{{current}}问题 {{headerStepValue}} 正确",
85
+ "incorrect_question": "{{current}}问题 {{headerStepValue}} 不正确",
86
+ "not_answered_question": "{{current}}问题 {{headerStepValue}} 尚未回答"
87
+ },
88
+ "bulk_import": {
89
+ "errors_number": "批量导入错误数是 {{bulkImportErrorsNumber}}",
90
+ "valid_scorm": "scorm 文件有效",
91
+ "invalid_scorm": "scorm 文件无效"
89
92
  }
90
93
  }
@@ -81,10 +81,13 @@
81
81
  "mandatory_fields": "*Mandatory fields",
82
82
  "something_went_wrong": "Oh Snap! Something went wrong.",
83
83
  "review_header_step_item": {
84
- "aria_label": "問題{{headerStepValue}}",
85
- "current_question": "問題 {{headerStepValue}} 是當前問題",
86
- "correct_question": "問題{{headerStepValue}}是正確的",
87
- "incorrect_question": "問題 {{headerStepValue}} 不正確",
88
- "not_answered_question": "問題 {{headerStepValue}} 尚未回答"
84
+ "correct_question": "{{current}}問題 {{headerStepValue}} 正確",
85
+ "incorrect_question": "{{current}}問題 {{headerStepValue}} 不正確",
86
+ "not_answered_question": "{{current}}問題 {{headerStepValue}} 尚未回答"
87
+ },
88
+ "bulk_import": {
89
+ "errors_number": "大量匯入錯誤編號為 {{bulkImportErrorsNumber}}",
90
+ "valid_scorm": "scorm 檔有效",
91
+ "invalid_scorm": "scorm 檔無效"
89
92
  }
90
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.11.5-alpha.0+83ae2a62b",
3
+ "version": "11.11.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -120,6 +120,7 @@
120
120
  "@testing-library/react": "12.1.5",
121
121
  "@testing-library/react-native": "^10.1.1",
122
122
  "@types/react-native": "~0.68.7",
123
+ "@types/uuid": "^9.0.0",
123
124
  "@typescript-eslint/eslint-plugin": "^5.39.0",
124
125
  "@typescript-eslint/parser": "^5.39.0",
125
126
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
@@ -164,5 +165,5 @@
164
165
  "last 2 versions",
165
166
  "IE 11"
166
167
  ],
167
- "gitHead": "83ae2a62b2bbd62a8dfaad7cf2fbef97d2d5d8cd"
168
+ "gitHead": "6d073e503df24ce357e91cb1a0adfa783590708d"
168
169
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/review-header-step-item/index.tsx"],"names":[],"mappings":";AASA,OAAkB,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAsDvD,QAAA,MAAM,oBAAoB;YAAW,mBAAmB;;;;;;CAevD,CAAC;AAWF,eAAe,oBAAoB,CAAC"}
@@ -1,77 +0,0 @@
1
- import React from 'react';
2
- import classnames from 'classnames';
3
- import { NovaCompositionCoorpacademyCheck as RightIcon, NovaSolidStatusClose as WrongIcon } from '@coorpacademy/nova-icons';
4
- import Provider, { GetTranslateFromContext } from '../provider';
5
- import style from './style.css';
6
- import propTypes from './types';
7
-
8
- const Content = (props, legacyContext) => {
9
- const {
10
- icon,
11
- current,
12
- value
13
- } = props;
14
- const translate = GetTranslateFromContext(legacyContext);
15
- let child;
16
- let ariaDescription;
17
-
18
- switch (icon) {
19
- case 'no-answer':
20
- child = value;
21
- ariaDescription = current ? translate('review_header_step_item.current_question', {
22
- headerStepValue: value
23
- }) : translate('review_header_step_item.not_answered_question', {
24
- headerStepValue: value
25
- });
26
- break;
27
-
28
- case 'right':
29
- child = /*#__PURE__*/React.createElement(RightIcon, {
30
- className: classnames(style.rightIcon, current && style.currentRightIcon)
31
- });
32
- ariaDescription = translate('review_header_step_item.correct_question', {
33
- headerStepValue: value
34
- });
35
- break;
36
-
37
- case 'wrong':
38
- child = /*#__PURE__*/React.createElement(WrongIcon, {
39
- className: classnames(style.wrongIcon, current && style.currentWrongIcon)
40
- });
41
- ariaDescription = translate('review_header_step_item.incorrect_question', {
42
- headerStepValue: value
43
- });
44
- break;
45
-
46
- default:
47
- return null;
48
- }
49
-
50
- return /*#__PURE__*/React.createElement("span", {
51
- className: style.value,
52
- "aria-label": translate('review_header_step_item.aria_label', {
53
- headerStepValue: value
54
- }),
55
- "aria-describedby": ariaDescription
56
- }, child);
57
- };
58
-
59
- const ReviewHeaderStepItem = props => {
60
- const {
61
- icon,
62
- current
63
- } = props;
64
- return /*#__PURE__*/React.createElement("div", {
65
- className: classnames(style.default, icon === 'right' && style.right, icon === 'wrong' && style.wrong, current && style.current),
66
- "data-name": "header-step-item"
67
- }, /*#__PURE__*/React.createElement(Content, props));
68
- };
69
-
70
- Content.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
71
- Content.contextTypes = {
72
- skin: Provider.childContextTypes.skin,
73
- translate: Provider.childContextTypes.translate
74
- };
75
- ReviewHeaderStepItem.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
76
- export default ReviewHeaderStepItem;
77
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["React","classnames","NovaCompositionCoorpacademyCheck","RightIcon","NovaSolidStatusClose","WrongIcon","Provider","GetTranslateFromContext","style","propTypes","Content","props","legacyContext","icon","current","value","translate","child","ariaDescription","headerStepValue","rightIcon","currentRightIcon","wrongIcon","currentWrongIcon","ReviewHeaderStepItem","default","right","wrong","contextTypes","skin","childContextTypes"],"sources":["../../../src/atom/review-header-step-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademyCheck as RightIcon,\n NovaSolidStatusClose as WrongIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetTranslateFromContext} from '../provider';\nimport {WebContextValues} from '../provider/web-context';\nimport style from './style.css';\nimport propTypes, {HeaderStepItemProps} from './types';\n\nconst Content = (props: HeaderStepItemProps, legacyContext: WebContextValues) => {\n const {icon, current, value} = props;\n const translate = GetTranslateFromContext(legacyContext);\n let child;\n let ariaDescription;\n switch (icon) {\n case 'no-answer':\n child = value;\n ariaDescription = current\n ? translate('review_header_step_item.current_question', {\n headerStepValue: value\n })\n : translate('review_header_step_item.not_answered_question', {\n headerStepValue: value\n });\n break;\n\n case 'right':\n child = (\n <RightIcon className={classnames(style.rightIcon, current && style.currentRightIcon)} />\n );\n ariaDescription = translate('review_header_step_item.correct_question', {\n headerStepValue: value\n });\n break;\n\n case 'wrong':\n child = (\n <WrongIcon className={classnames(style.wrongIcon, current && style.currentWrongIcon)} />\n );\n ariaDescription = translate('review_header_step_item.incorrect_question', {\n headerStepValue: value\n });\n break;\n\n default:\n return null;\n }\n\n return (\n <span\n className={style.value}\n aria-label={translate('review_header_step_item.aria_label', {\n headerStepValue: value\n })}\n aria-describedby={ariaDescription}\n >\n {child}\n </span>\n );\n};\n\nconst ReviewHeaderStepItem = (props: HeaderStepItemProps) => {\n const {icon, current} = props;\n return (\n <div\n className={classnames(\n style.default,\n icon === 'right' && style.right,\n icon === 'wrong' && style.wrong,\n current && style.current\n )}\n data-name=\"header-step-item\"\n >\n <Content {...props} />\n </div>\n );\n};\n\nContent.propTypes = propTypes;\n\nContent.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nReviewHeaderStepItem.propTypes = propTypes;\n\nexport default ReviewHeaderStepItem;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC,gCAAgC,IAAIC,SADtC,EAEEC,oBAAoB,IAAIC,SAF1B,QAGO,0BAHP;AAIA,OAAOC,QAAP,IAAkBC,uBAAlB,QAAgD,aAAhD;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAA6C,SAA7C;;AAEA,MAAMC,OAAO,GAAG,CAACC,KAAD,EAA6BC,aAA7B,KAAiE;EAC/E,MAAM;IAACC,IAAD;IAAOC,OAAP;IAAgBC;EAAhB,IAAyBJ,KAA/B;EACA,MAAMK,SAAS,GAAGT,uBAAuB,CAACK,aAAD,CAAzC;EACA,IAAIK,KAAJ;EACA,IAAIC,eAAJ;;EACA,QAAQL,IAAR;IACE,KAAK,WAAL;MACEI,KAAK,GAAGF,KAAR;MACAG,eAAe,GAAGJ,OAAO,GACrBE,SAAS,CAAC,0CAAD,EAA6C;QACpDG,eAAe,EAAEJ;MADmC,CAA7C,CADY,GAIrBC,SAAS,CAAC,+CAAD,EAAkD;QACzDG,eAAe,EAAEJ;MADwC,CAAlD,CAJb;MAOA;;IAEF,KAAK,OAAL;MACEE,KAAK,gBACH,oBAAC,SAAD;QAAW,SAAS,EAAEhB,UAAU,CAACO,KAAK,CAACY,SAAP,EAAkBN,OAAO,IAAIN,KAAK,CAACa,gBAAnC;MAAhC,EADF;MAGAH,eAAe,GAAGF,SAAS,CAAC,0CAAD,EAA6C;QACtEG,eAAe,EAAEJ;MADqD,CAA7C,CAA3B;MAGA;;IAEF,KAAK,OAAL;MACEE,KAAK,gBACH,oBAAC,SAAD;QAAW,SAAS,EAAEhB,UAAU,CAACO,KAAK,CAACc,SAAP,EAAkBR,OAAO,IAAIN,KAAK,CAACe,gBAAnC;MAAhC,EADF;MAGAL,eAAe,GAAGF,SAAS,CAAC,4CAAD,EAA+C;QACxEG,eAAe,EAAEJ;MADuD,CAA/C,CAA3B;MAGA;;IAEF;MACE,OAAO,IAAP;EA/BJ;;EAkCA,oBACE;IACE,SAAS,EAAEP,KAAK,CAACO,KADnB;IAEE,cAAYC,SAAS,CAAC,oCAAD,EAAuC;MAC1DG,eAAe,EAAEJ;IADyC,CAAvC,CAFvB;IAKE,oBAAkBG;EALpB,GAOGD,KAPH,CADF;AAWD,CAlDD;;AAoDA,MAAMO,oBAAoB,GAAIb,KAAD,IAAgC;EAC3D,MAAM;IAACE,IAAD;IAAOC;EAAP,IAAkBH,KAAxB;EACA,oBACE;IACE,SAAS,EAAEV,UAAU,CACnBO,KAAK,CAACiB,OADa,EAEnBZ,IAAI,KAAK,OAAT,IAAoBL,KAAK,CAACkB,KAFP,EAGnBb,IAAI,KAAK,OAAT,IAAoBL,KAAK,CAACmB,KAHP,EAInBb,OAAO,IAAIN,KAAK,CAACM,OAJE,CADvB;IAOE,aAAU;EAPZ,gBASE,oBAAC,OAAD,EAAaH,KAAb,CATF,CADF;AAaD,CAfD;;AAiBAD,OAAO,CAACD,SAAR,2CAAoBA,SAApB;AAEAC,OAAO,CAACkB,YAAR,GAAuB;EACrBC,IAAI,EAAEvB,QAAQ,CAACwB,iBAAT,CAA2BD,IADZ;EAErBb,SAAS,EAAEV,QAAQ,CAACwB,iBAAT,CAA2Bd;AAFjB,CAAvB;AAKAQ,oBAAoB,CAACf,SAArB,2CAAiCA,SAAjC;AAEA,eAAee,oBAAf"}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { HeaderStepItemProps } from './types';
3
- declare const Step: ({ value, icon, current }: HeaderStepItemProps) => JSX.Element | null;
4
- export default Step;
5
- //# sourceMappingURL=index.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-header-step-item/index.native.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC;AA6C5C,QAAA,MAAM,IAAI,6BAA4B,mBAAmB,uBA2BxD,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.js","names":["React","useEffect","useState","StyleSheet","Text","View","NovaCompositionCoorpacademyCheck","RightIcon","NovaSolidStatusClose","WrongIcon","COLORS","createStyle","current","icon","backgroundColor","positive","negative","gray","create","step","width","height","opacity","marginHorizontal","alignItems","justifyContent","borderRadius","stepText","fontWeight","fontSize","Step","value","style","setStyle","_style","child"],"sources":["../../../src/atom/review-header-step-item/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport {\n NovaCompositionCoorpacademyCheck as RightIcon,\n NovaSolidStatusClose as WrongIcon\n} from '@coorpacademy/nova-icons';\nimport {COLORS} from '../../variables/colors';\nimport {HeaderStepItemProps} from './types';\n\ntype StyleSheetType = {\n step: ViewStyle;\n stepText: TextStyle;\n icon: ViewStyle;\n};\n\nconst createStyle = (current: boolean, icon: HeaderStepItemProps['icon']): StyleSheetType => {\n let backgroundColor;\n\n switch (icon) {\n case 'right':\n backgroundColor = COLORS.positive;\n break;\n case 'wrong':\n backgroundColor = COLORS.negative;\n break;\n case 'no-answer':\n default:\n backgroundColor = COLORS.gray;\n }\n\n return StyleSheet.create({\n step: {\n width: current ? 40 : 32,\n height: current ? 40 : 32,\n opacity: current ? 1 : 0.5,\n marginHorizontal: 8,\n backgroundColor,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: 50\n },\n stepText: {\n fontWeight: '600',\n fontSize: current ? 16 : 12\n },\n icon: {\n width: current ? 14 : 12,\n height: current ? 14 : 12\n }\n });\n};\n\nconst Step = ({value, icon, current}: HeaderStepItemProps) => {\n const [style, setStyle] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _style = createStyle(current, icon);\n setStyle(_style);\n }, [current, icon]);\n\n if (!style) {\n return null;\n }\n\n let child;\n\n switch (icon) {\n case 'right':\n child = <RightIcon style={style.icon} color=\"#fff\" />;\n break;\n case 'wrong':\n child = <WrongIcon style={style.icon} color=\"#fff\" />;\n break;\n case 'no-answer':\n default:\n child = <Text style={style.stepText}>{value}</Text>;\n }\n\n return <View style={style.step}>{child}</View>;\n};\n\nexport default Step;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,QAA1B,QAAyC,OAAzC;AACA,SAAQC,UAAR,EAAoBC,IAApB,EAAqCC,IAArC,QAA2D,cAA3D;AACA,SACEC,gCAAgC,IAAIC,SADtC,EAEEC,oBAAoB,IAAIC,SAF1B,QAGO,0BAHP;AAIA,SAAQC,MAAR,QAAqB,wBAArB;;AASA,MAAMC,WAAW,GAAG,CAACC,OAAD,EAAmBC,IAAnB,KAAyE;EAC3F,IAAIC,eAAJ;;EAEA,QAAQD,IAAR;IACE,KAAK,OAAL;MACEC,eAAe,GAAGJ,MAAM,CAACK,QAAzB;MACA;;IACF,KAAK,OAAL;MACED,eAAe,GAAGJ,MAAM,CAACM,QAAzB;MACA;;IACF,KAAK,WAAL;IACA;MACEF,eAAe,GAAGJ,MAAM,CAACO,IAAzB;EATJ;;EAYA,OAAOd,UAAU,CAACe,MAAX,CAAkB;IACvBC,IAAI,EAAE;MACJC,KAAK,EAAER,OAAO,GAAG,EAAH,GAAQ,EADlB;MAEJS,MAAM,EAAET,OAAO,GAAG,EAAH,GAAQ,EAFnB;MAGJU,OAAO,EAAEV,OAAO,GAAG,CAAH,GAAO,GAHnB;MAIJW,gBAAgB,EAAE,CAJd;MAKJT,eALI;MAMJU,UAAU,EAAE,QANR;MAOJC,cAAc,EAAE,QAPZ;MAQJC,YAAY,EAAE;IARV,CADiB;IAWvBC,QAAQ,EAAE;MACRC,UAAU,EAAE,KADJ;MAERC,QAAQ,EAAEjB,OAAO,GAAG,EAAH,GAAQ;IAFjB,CAXa;IAevBC,IAAI,EAAE;MACJO,KAAK,EAAER,OAAO,GAAG,EAAH,GAAQ,EADlB;MAEJS,MAAM,EAAET,OAAO,GAAG,EAAH,GAAQ;IAFnB;EAfiB,CAAlB,CAAP;AAoBD,CAnCD;;AAqCA,MAAMkB,IAAI,GAAG,CAAC;EAACC,KAAD;EAAQlB,IAAR;EAAcD;AAAd,CAAD,KAAiD;EAC5D,MAAM,CAACoB,KAAD,EAAQC,QAAR,IAAoB/B,QAAQ,CAAwB,IAAxB,CAAlC;EAEAD,SAAS,CAAC,MAAM;IACd,MAAMiC,MAAM,GAAGvB,WAAW,CAACC,OAAD,EAAUC,IAAV,CAA1B;;IACAoB,QAAQ,CAACC,MAAD,CAAR;EACD,CAHQ,EAGN,CAACtB,OAAD,EAAUC,IAAV,CAHM,CAAT;;EAKA,IAAI,CAACmB,KAAL,EAAY;IACV,OAAO,IAAP;EACD;;EAED,IAAIG,KAAJ;;EAEA,QAAQtB,IAAR;IACE,KAAK,OAAL;MACEsB,KAAK,gBAAG,oBAAC,SAAD;QAAW,KAAK,EAAEH,KAAK,CAACnB,IAAxB;QAA8B,KAAK,EAAC;MAApC,EAAR;MACA;;IACF,KAAK,OAAL;MACEsB,KAAK,gBAAG,oBAAC,SAAD;QAAW,KAAK,EAAEH,KAAK,CAACnB,IAAxB;QAA8B,KAAK,EAAC;MAApC,EAAR;MACA;;IACF,KAAK,WAAL;IACA;MACEsB,KAAK,gBAAG,oBAAC,IAAD;QAAM,KAAK,EAAEH,KAAK,CAACL;MAAnB,GAA8BI,KAA9B,CAAR;EATJ;;EAYA,oBAAO,oBAAC,IAAD;IAAM,KAAK,EAAEC,KAAK,CAACb;EAAnB,GAA0BgB,KAA1B,CAAP;AACD,CA3BD;;AA6BA,eAAeL,IAAf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/review-header-step-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;CAId,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","propTypes","current","bool","icon","oneOf","value","string"],"sources":["../../../src/atom/review-header-step-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n current: PropTypes.bool,\n icon: PropTypes.oneOf(['no-answer', 'right', 'wrong']),\n value: PropTypes.string\n};\n\nexport default propTypes;\n\nexport type HeaderStepItemProps = {\n current: boolean;\n icon: 'no-answer' | 'right' | 'wrong';\n value: string;\n};\n\nexport type Fixture = {\n props: HeaderStepItemProps;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAEF,SAAS,CAACG,IADH;EAEhBC,IAAI,EAAEJ,SAAS,CAACK,KAAV,CAAgB,CAAC,WAAD,EAAc,OAAd,EAAuB,OAAvB,CAAhB,CAFU;EAGhBC,KAAK,EAAEN,SAAS,CAACO;AAHD,CAAlB;AAMA,eAAeN,SAAf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/review-header-step-item/index.tsx"],"names":[],"mappings":";AASA,OAAkB,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAsDvD,QAAA,MAAM,oBAAoB;YAAW,mBAAmB;;;;;;CAevD,CAAC;AAWF,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Content","props","legacyContext","icon","current","value","translate","GetTranslateFromContext","child","ariaDescription","headerStepValue","classnames","style","rightIcon","currentRightIcon","wrongIcon","currentWrongIcon","ReviewHeaderStepItem","default","right","wrong","propTypes","contextTypes","skin","Provider","childContextTypes"],"sources":["../../../src/atom/review-header-step-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademyCheck as RightIcon,\n NovaSolidStatusClose as WrongIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetTranslateFromContext} from '../provider';\nimport {WebContextValues} from '../provider/web-context';\nimport style from './style.css';\nimport propTypes, {HeaderStepItemProps} from './types';\n\nconst Content = (props: HeaderStepItemProps, legacyContext: WebContextValues) => {\n const {icon, current, value} = props;\n const translate = GetTranslateFromContext(legacyContext);\n let child;\n let ariaDescription;\n switch (icon) {\n case 'no-answer':\n child = value;\n ariaDescription = current\n ? translate('review_header_step_item.current_question', {\n headerStepValue: value\n })\n : translate('review_header_step_item.not_answered_question', {\n headerStepValue: value\n });\n break;\n\n case 'right':\n child = (\n <RightIcon className={classnames(style.rightIcon, current && style.currentRightIcon)} />\n );\n ariaDescription = translate('review_header_step_item.correct_question', {\n headerStepValue: value\n });\n break;\n\n case 'wrong':\n child = (\n <WrongIcon className={classnames(style.wrongIcon, current && style.currentWrongIcon)} />\n );\n ariaDescription = translate('review_header_step_item.incorrect_question', {\n headerStepValue: value\n });\n break;\n\n default:\n return null;\n }\n\n return (\n <span\n className={style.value}\n aria-label={translate('review_header_step_item.aria_label', {\n headerStepValue: value\n })}\n aria-describedby={ariaDescription}\n >\n {child}\n </span>\n );\n};\n\nconst ReviewHeaderStepItem = (props: HeaderStepItemProps) => {\n const {icon, current} = props;\n return (\n <div\n className={classnames(\n style.default,\n icon === 'right' && style.right,\n icon === 'wrong' && style.wrong,\n current && style.current\n )}\n data-name=\"header-step-item\"\n >\n <Content {...props} />\n </div>\n );\n};\n\nContent.propTypes = propTypes;\n\nContent.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nReviewHeaderStepItem.propTypes = propTypes;\n\nexport default ReviewHeaderStepItem;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAIA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,OAAO,GAAG,CAACC,KAAD,EAA6BC,aAA7B,KAAiE;EAC/E,MAAM;IAACC,IAAD;IAAOC,OAAP;IAAgBC;EAAhB,IAAyBJ,KAA/B;EACA,MAAMK,SAAS,GAAG,IAAAC,iCAAA,EAAwBL,aAAxB,CAAlB;EACA,IAAIM,KAAJ;EACA,IAAIC,eAAJ;;EACA,QAAQN,IAAR;IACE,KAAK,WAAL;MACEK,KAAK,GAAGH,KAAR;MACAI,eAAe,GAAGL,OAAO,GACrBE,SAAS,CAAC,0CAAD,EAA6C;QACpDI,eAAe,EAAEL;MADmC,CAA7C,CADY,GAIrBC,SAAS,CAAC,+CAAD,EAAkD;QACzDI,eAAe,EAAEL;MADwC,CAAlD,CAJb;MAOA;;IAEF,KAAK,OAAL;MACEG,KAAK,gBACH,6BAAC,2CAAD;QAAW,SAAS,EAAE,IAAAG,mBAAA,EAAWC,cAAA,CAAMC,SAAjB,EAA4BT,OAAO,IAAIQ,cAAA,CAAME,gBAA7C;MAAtB,EADF;MAGAL,eAAe,GAAGH,SAAS,CAAC,0CAAD,EAA6C;QACtEI,eAAe,EAAEL;MADqD,CAA7C,CAA3B;MAGA;;IAEF,KAAK,OAAL;MACEG,KAAK,gBACH,6BAAC,+BAAD;QAAW,SAAS,EAAE,IAAAG,mBAAA,EAAWC,cAAA,CAAMG,SAAjB,EAA4BX,OAAO,IAAIQ,cAAA,CAAMI,gBAA7C;MAAtB,EADF;MAGAP,eAAe,GAAGH,SAAS,CAAC,4CAAD,EAA+C;QACxEI,eAAe,EAAEL;MADuD,CAA/C,CAA3B;MAGA;;IAEF;MACE,OAAO,IAAP;EA/BJ;;EAkCA,oBACE;IACE,SAAS,EAAEO,cAAA,CAAMP,KADnB;IAEE,cAAYC,SAAS,CAAC,oCAAD,EAAuC;MAC1DI,eAAe,EAAEL;IADyC,CAAvC,CAFvB;IAKE,oBAAkBI;EALpB,GAOGD,KAPH,CADF;AAWD,CAlDD;;AAoDA,MAAMS,oBAAoB,GAAIhB,KAAD,IAAgC;EAC3D,MAAM;IAACE,IAAD;IAAOC;EAAP,IAAkBH,KAAxB;EACA,oBACE;IACE,SAAS,EAAE,IAAAU,mBAAA,EACTC,cAAA,CAAMM,OADG,EAETf,IAAI,KAAK,OAAT,IAAoBS,cAAA,CAAMO,KAFjB,EAGThB,IAAI,KAAK,OAAT,IAAoBS,cAAA,CAAMQ,KAHjB,EAIThB,OAAO,IAAIQ,cAAA,CAAMR,OAJR,CADb;IAOE,aAAU;EAPZ,gBASE,6BAAC,OAAD,EAAaH,KAAb,CATF,CADF;AAaD,CAfD;;AAiBAD,OAAO,CAACqB,SAAR,2CAAoBA,cAApB;AAEArB,OAAO,CAACsB,YAAR,GAAuB;EACrBC,IAAI,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF,IADZ;EAErBjB,SAAS,EAAEkB,iBAAA,CAASC,iBAAT,CAA2BnB;AAFjB,CAAvB;AAKAW,oBAAoB,CAACI,SAArB,2CAAiCA,cAAjC;eAEeJ,oB"}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { HeaderStepItemProps } from './types';
3
- declare const Step: ({ value, icon, current }: HeaderStepItemProps) => JSX.Element | null;
4
- export default Step;
5
- //# sourceMappingURL=index.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/review-header-step-item/index.native.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC;AA6C5C,QAAA,MAAM,IAAI,6BAA4B,mBAAmB,uBA2BxD,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.js","names":["createStyle","current","icon","backgroundColor","COLORS","positive","negative","gray","StyleSheet","create","step","width","height","opacity","marginHorizontal","alignItems","justifyContent","borderRadius","stepText","fontWeight","fontSize","Step","value","style","setStyle","useState","useEffect","_style","child"],"sources":["../../../src/atom/review-header-step-item/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport {\n NovaCompositionCoorpacademyCheck as RightIcon,\n NovaSolidStatusClose as WrongIcon\n} from '@coorpacademy/nova-icons';\nimport {COLORS} from '../../variables/colors';\nimport {HeaderStepItemProps} from './types';\n\ntype StyleSheetType = {\n step: ViewStyle;\n stepText: TextStyle;\n icon: ViewStyle;\n};\n\nconst createStyle = (current: boolean, icon: HeaderStepItemProps['icon']): StyleSheetType => {\n let backgroundColor;\n\n switch (icon) {\n case 'right':\n backgroundColor = COLORS.positive;\n break;\n case 'wrong':\n backgroundColor = COLORS.negative;\n break;\n case 'no-answer':\n default:\n backgroundColor = COLORS.gray;\n }\n\n return StyleSheet.create({\n step: {\n width: current ? 40 : 32,\n height: current ? 40 : 32,\n opacity: current ? 1 : 0.5,\n marginHorizontal: 8,\n backgroundColor,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: 50\n },\n stepText: {\n fontWeight: '600',\n fontSize: current ? 16 : 12\n },\n icon: {\n width: current ? 14 : 12,\n height: current ? 14 : 12\n }\n });\n};\n\nconst Step = ({value, icon, current}: HeaderStepItemProps) => {\n const [style, setStyle] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _style = createStyle(current, icon);\n setStyle(_style);\n }, [current, icon]);\n\n if (!style) {\n return null;\n }\n\n let child;\n\n switch (icon) {\n case 'right':\n child = <RightIcon style={style.icon} color=\"#fff\" />;\n break;\n case 'wrong':\n child = <WrongIcon style={style.icon} color=\"#fff\" />;\n break;\n case 'no-answer':\n default:\n child = <Text style={style.stepText}>{value}</Text>;\n }\n\n return <View style={style.step}>{child}</View>;\n};\n\nexport default Step;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAIA;;;;;;AASA,MAAMA,WAAW,GAAG,CAACC,OAAD,EAAmBC,IAAnB,KAAyE;EAC3F,IAAIC,eAAJ;;EAEA,QAAQD,IAAR;IACE,KAAK,OAAL;MACEC,eAAe,GAAGC,cAAA,CAAOC,QAAzB;MACA;;IACF,KAAK,OAAL;MACEF,eAAe,GAAGC,cAAA,CAAOE,QAAzB;MACA;;IACF,KAAK,WAAL;IACA;MACEH,eAAe,GAAGC,cAAA,CAAOG,IAAzB;EATJ;;EAYA,OAAOC,uBAAA,CAAWC,MAAX,CAAkB;IACvBC,IAAI,EAAE;MACJC,KAAK,EAAEV,OAAO,GAAG,EAAH,GAAQ,EADlB;MAEJW,MAAM,EAAEX,OAAO,GAAG,EAAH,GAAQ,EAFnB;MAGJY,OAAO,EAAEZ,OAAO,GAAG,CAAH,GAAO,GAHnB;MAIJa,gBAAgB,EAAE,CAJd;MAKJX,eALI;MAMJY,UAAU,EAAE,QANR;MAOJC,cAAc,EAAE,QAPZ;MAQJC,YAAY,EAAE;IARV,CADiB;IAWvBC,QAAQ,EAAE;MACRC,UAAU,EAAE,KADJ;MAERC,QAAQ,EAAEnB,OAAO,GAAG,EAAH,GAAQ;IAFjB,CAXa;IAevBC,IAAI,EAAE;MACJS,KAAK,EAAEV,OAAO,GAAG,EAAH,GAAQ,EADlB;MAEJW,MAAM,EAAEX,OAAO,GAAG,EAAH,GAAQ;IAFnB;EAfiB,CAAlB,CAAP;AAoBD,CAnCD;;AAqCA,MAAMoB,IAAI,GAAG,CAAC;EAACC,KAAD;EAAQpB,IAAR;EAAcD;AAAd,CAAD,KAAiD;EAC5D,MAAM,CAACsB,KAAD,EAAQC,QAAR,IAAoB,IAAAC,eAAA,EAAgC,IAAhC,CAA1B;EAEA,IAAAC,gBAAA,EAAU,MAAM;IACd,MAAMC,MAAM,GAAG3B,WAAW,CAACC,OAAD,EAAUC,IAAV,CAA1B;;IACAsB,QAAQ,CAACG,MAAD,CAAR;EACD,CAHD,EAGG,CAAC1B,OAAD,EAAUC,IAAV,CAHH;;EAKA,IAAI,CAACqB,KAAL,EAAY;IACV,OAAO,IAAP;EACD;;EAED,IAAIK,KAAJ;;EAEA,QAAQ1B,IAAR;IACE,KAAK,OAAL;MACE0B,KAAK,gBAAG,6BAAC,2CAAD;QAAW,KAAK,EAAEL,KAAK,CAACrB,IAAxB;QAA8B,KAAK,EAAC;MAApC,EAAR;MACA;;IACF,KAAK,OAAL;MACE0B,KAAK,gBAAG,6BAAC,+BAAD;QAAW,KAAK,EAAEL,KAAK,CAACrB,IAAxB;QAA8B,KAAK,EAAC;MAApC,EAAR;MACA;;IACF,KAAK,WAAL;IACA;MACE0B,KAAK,gBAAG,6BAAC,iBAAD;QAAM,KAAK,EAAEL,KAAK,CAACL;MAAnB,GAA8BI,KAA9B,CAAR;EATJ;;EAYA,oBAAO,6BAAC,iBAAD;IAAM,KAAK,EAAEC,KAAK,CAACb;EAAnB,GAA0BkB,KAA1B,CAAP;AACD,CA3BD;;eA6BeP,I"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/review-header-step-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;CAId,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":["propTypes","current","PropTypes","bool","icon","oneOf","value","string"],"sources":["../../../src/atom/review-header-step-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n current: PropTypes.bool,\n icon: PropTypes.oneOf(['no-answer', 'right', 'wrong']),\n value: PropTypes.string\n};\n\nexport default propTypes;\n\nexport type HeaderStepItemProps = {\n current: boolean;\n icon: 'no-answer' | 'right' | 'wrong';\n value: string;\n};\n\nexport type Fixture = {\n props: HeaderStepItemProps;\n};\n"],"mappings":";;;;;AAAA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,IADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,WAAD,EAAc,OAAd,EAAuB,OAAvB,CAAhB,CAFU;EAGhBC,KAAK,EAAEJ,kBAAA,CAAUK;AAHD,CAAlB;eAMeP,S"}