@coorpacademy/components 11.9.3-alpha.29 → 11.9.3-alpha.30

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 (1613) hide show
  1. package/es/atom/autocomplete/index.js +3 -0
  2. package/es/atom/autocomplete/index.js.map +1 -1
  3. package/es/atom/avatar/index.js +2 -0
  4. package/es/atom/avatar/index.js.map +1 -1
  5. package/es/atom/button/index.js +8 -0
  6. package/es/atom/button/index.js.map +1 -1
  7. package/es/atom/button/index.native.d.ts +1 -1
  8. package/es/atom/button/index.native.d.ts.map +1 -1
  9. package/es/atom/button/index.native.js +4 -0
  10. package/es/atom/button/index.native.js.map +1 -1
  11. package/es/atom/button-link/index.js +10 -0
  12. package/es/atom/button-link/index.js.map +1 -1
  13. package/es/atom/button-link-icon-only/index.js +12 -0
  14. package/es/atom/button-link-icon-only/index.js.map +1 -1
  15. package/es/atom/button-menu/index.js +5 -0
  16. package/es/atom/button-menu/index.js.map +1 -1
  17. package/es/atom/card-image-preview/index.js +3 -0
  18. package/es/atom/card-image-preview/index.js.map +1 -1
  19. package/es/atom/catalog-section/index.js +2 -0
  20. package/es/atom/catalog-section/index.js.map +1 -1
  21. package/es/atom/centered-text/index.js +2 -0
  22. package/es/atom/centered-text/index.js.map +1 -1
  23. package/es/atom/checkbox/index.js +11 -5
  24. package/es/atom/checkbox/index.js.map +1 -1
  25. package/es/atom/checkbox-with-title/index.js +4 -0
  26. package/es/atom/checkbox-with-title/index.js.map +1 -1
  27. package/es/atom/chips/index.js +2 -0
  28. package/es/atom/chips/index.js.map +1 -1
  29. package/es/atom/choice/index.native.d.ts +1 -1
  30. package/es/atom/choice/index.native.d.ts.map +1 -1
  31. package/es/atom/choice/index.native.js +12 -2
  32. package/es/atom/choice/index.native.js.map +1 -1
  33. package/es/atom/clue/index.js +14 -0
  34. package/es/atom/clue/index.js.map +1 -1
  35. package/es/atom/content-badge/index.js +2 -0
  36. package/es/atom/content-badge/index.js.map +1 -1
  37. package/es/atom/cta/index.js +13 -0
  38. package/es/atom/cta/index.js.map +1 -1
  39. package/es/atom/difficulty-level/index.js +7 -0
  40. package/es/atom/difficulty-level/index.js.map +1 -1
  41. package/es/atom/drag-and-drop/index.js +15 -0
  42. package/es/atom/drag-and-drop/index.js.map +1 -1
  43. package/es/atom/empty-search-result/index.js +2 -0
  44. package/es/atom/empty-search-result/index.js.map +1 -1
  45. package/es/atom/gradient/index.native.d.ts +1 -1
  46. package/es/atom/gradient/index.native.d.ts.map +1 -1
  47. package/es/atom/gradient/index.native.js +7 -0
  48. package/es/atom/gradient/index.native.js.map +1 -1
  49. package/es/atom/header-back-button/index.native.d.ts +1 -1
  50. package/es/atom/header-back-button/index.native.d.ts.map +1 -1
  51. package/es/atom/header-back-button/index.native.js +6 -0
  52. package/es/atom/header-back-button/index.native.js.map +1 -1
  53. package/es/atom/header-back-icon/index.native.d.ts +1 -1
  54. package/es/atom/header-back-icon/index.native.d.ts.map +1 -1
  55. package/es/atom/header-back-icon/index.native.js +2 -0
  56. package/es/atom/header-back-icon/index.native.js.map +1 -1
  57. package/es/atom/html/index.native.d.ts +1 -1
  58. package/es/atom/html/index.native.d.ts.map +1 -1
  59. package/es/atom/html/index.native.js +12 -6
  60. package/es/atom/html/index.native.js.map +1 -1
  61. package/es/atom/image-background/index.native.d.ts +1 -1
  62. package/es/atom/image-background/index.native.d.ts.map +1 -1
  63. package/es/atom/image-background/index.native.js +24 -11
  64. package/es/atom/image-background/index.native.js.map +1 -1
  65. package/es/atom/image-upload/index.js +6 -0
  66. package/es/atom/image-upload/index.js.map +1 -1
  67. package/es/atom/input-checkbox/index.js +4 -0
  68. package/es/atom/input-checkbox/index.js.map +1 -1
  69. package/es/atom/input-color/index.js +2 -0
  70. package/es/atom/input-color/index.js.map +1 -1
  71. package/es/atom/input-doublestep/index.js +14 -0
  72. package/es/atom/input-doublestep/index.js.map +1 -1
  73. package/es/atom/input-html/index.js +9 -0
  74. package/es/atom/input-html/index.js.map +1 -1
  75. package/es/atom/input-html/input-preview.js +3 -2
  76. package/es/atom/input-html/input-preview.js.map +1 -1
  77. package/es/atom/input-readonly/index.js +2 -0
  78. package/es/atom/input-readonly/index.js.map +1 -1
  79. package/es/atom/input-search/index.d.ts.map +1 -1
  80. package/es/atom/input-search/index.js +3 -0
  81. package/es/atom/input-search/index.js.map +1 -1
  82. package/es/atom/input-switch/index.d.ts +2 -0
  83. package/es/atom/input-switch/index.d.ts.map +1 -1
  84. package/es/atom/input-switch/index.js +33 -11
  85. package/es/atom/input-switch/index.js.map +1 -1
  86. package/es/atom/input-text/index.js +3 -2
  87. package/es/atom/input-text/index.js.map +1 -1
  88. package/es/atom/input-text-with-title/index.js +3 -0
  89. package/es/atom/input-text-with-title/index.js.map +1 -1
  90. package/es/atom/input-textarea/index.js +3 -2
  91. package/es/atom/input-textarea/index.js.map +1 -1
  92. package/es/atom/label/index.js +2 -0
  93. package/es/atom/label/index.js.map +1 -1
  94. package/es/atom/life/index.js +7 -0
  95. package/es/atom/life/index.js.map +1 -1
  96. package/es/atom/link/index.js +24 -7
  97. package/es/atom/link/index.js.map +1 -1
  98. package/es/atom/loader/index.js +2 -0
  99. package/es/atom/loader/index.js.map +1 -1
  100. package/es/atom/loader/index.native.d.ts +1 -1
  101. package/es/atom/loader/index.native.d.ts.map +1 -1
  102. package/es/atom/loader/index.native.js +12 -2
  103. package/es/atom/loader/index.native.js.map +1 -1
  104. package/es/atom/lottie-wrapper/index.js +11 -3
  105. package/es/atom/lottie-wrapper/index.js.map +1 -1
  106. package/es/atom/lottie-wrapper/prop-types.d.ts +1 -1
  107. package/es/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
  108. package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
  109. package/es/atom/notification/index.js +2 -0
  110. package/es/atom/notification/index.js.map +1 -1
  111. package/es/atom/picture/index.js +8 -0
  112. package/es/atom/picture/index.js.map +1 -1
  113. package/es/atom/picture-background/index.js +2 -0
  114. package/es/atom/picture-background/index.js.map +1 -1
  115. package/es/atom/promo-code/index.js +2 -0
  116. package/es/atom/promo-code/index.js.map +1 -1
  117. package/es/atom/provider/index.js +19 -2
  118. package/es/atom/provider/index.js.map +1 -1
  119. package/es/atom/provider/web-context.d.ts +3 -3
  120. package/es/atom/provider/web-context.d.ts.map +1 -1
  121. package/es/atom/provider/web-context.js +12 -5
  122. package/es/atom/provider/web-context.js.map +1 -1
  123. package/es/atom/radio-group/index.js +8 -0
  124. package/es/atom/radio-group/index.js.map +1 -1
  125. package/es/atom/radio-group/item.js +7 -0
  126. package/es/atom/radio-group/item.js.map +1 -1
  127. package/es/atom/range/handle.js +17 -9
  128. package/es/atom/range/handle.js.map +1 -1
  129. package/es/atom/range/index.js +23 -0
  130. package/es/atom/range/index.js.map +1 -1
  131. package/es/atom/resource-miniature/index.js +6 -2
  132. package/es/atom/resource-miniature/index.js.map +1 -1
  133. package/es/atom/review-header-step-item/index.js +8 -0
  134. package/es/atom/review-header-step-item/index.js.map +1 -1
  135. package/es/atom/review-header-step-item/index.native.js +14 -0
  136. package/es/atom/review-header-step-item/index.native.js.map +1 -1
  137. package/es/atom/review-header-step-item/types.d.ts +2 -2
  138. package/es/atom/review-header-step-item/types.d.ts.map +1 -1
  139. package/es/atom/review-header-step-item/types.js.map +1 -1
  140. package/es/atom/review-presentation/index.js +8 -5
  141. package/es/atom/review-presentation/index.js.map +1 -1
  142. package/es/atom/review-presentation/index.native.js +10 -3
  143. package/es/atom/review-presentation/index.native.js.map +1 -1
  144. package/es/atom/review-presentation/prop-types.d.ts +2 -2
  145. package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
  146. package/es/atom/review-presentation/prop-types.js.map +1 -1
  147. package/es/atom/select/index.d.ts +1 -0
  148. package/es/atom/select/index.d.ts.map +1 -1
  149. package/es/atom/select/index.js +21 -10
  150. package/es/atom/select/index.js.map +1 -1
  151. package/es/atom/select-modal/index.native.d.ts +2 -2
  152. package/es/atom/select-modal/index.native.d.ts.map +1 -1
  153. package/es/atom/select-modal/index.native.js +11 -0
  154. package/es/atom/select-modal/index.native.js.map +1 -1
  155. package/es/atom/slide/index.js +3 -0
  156. package/es/atom/slide/index.js.map +1 -1
  157. package/es/atom/social-link/index.js +2 -0
  158. package/es/atom/social-link/index.js.map +1 -1
  159. package/es/atom/space/index.native.d.ts +1 -1
  160. package/es/atom/space/index.native.d.ts.map +1 -1
  161. package/es/atom/space/index.native.js +2 -0
  162. package/es/atom/space/index.native.js.map +1 -1
  163. package/es/atom/spinner/index.js +2 -0
  164. package/es/atom/spinner/index.js.map +1 -1
  165. package/es/atom/tab/index.js +2 -0
  166. package/es/atom/tab/index.js.map +1 -1
  167. package/es/atom/tab-content/index.js +2 -0
  168. package/es/atom/tab-content/index.js.map +1 -1
  169. package/es/atom/tag/index.js +2 -0
  170. package/es/atom/tag/index.js.map +1 -1
  171. package/es/atom/text/index.native.d.ts +1 -1
  172. package/es/atom/text/index.native.d.ts.map +1 -1
  173. package/es/atom/text/index.native.js +3 -0
  174. package/es/atom/text/index.native.js.map +1 -1
  175. package/es/atom/title/index.js +8 -0
  176. package/es/atom/title/index.js.map +1 -1
  177. package/es/atom/tooltip/index.js +5 -0
  178. package/es/atom/tooltip/index.js.map +1 -1
  179. package/es/atom/video-upload/index.js +3 -0
  180. package/es/atom/video-upload/index.js.map +1 -1
  181. package/es/atom/wizard-steps/index.js +2 -0
  182. package/es/atom/wizard-steps/index.js.map +1 -1
  183. package/es/hoc/animation/index.js +11 -0
  184. package/es/hoc/animation/index.js.map +1 -1
  185. package/es/hoc/animation-scheduler/index.js +18 -0
  186. package/es/hoc/animation-scheduler/index.js.map +1 -1
  187. package/es/hoc/modal/index.native.d.ts +1 -1
  188. package/es/hoc/modal/index.native.d.ts.map +1 -1
  189. package/es/hoc/modal/index.native.js +6 -0
  190. package/es/hoc/modal/index.native.js.map +1 -1
  191. package/es/hoc/modal/select/index.native.d.ts +2 -2
  192. package/es/hoc/modal/select/index.native.d.ts.map +1 -1
  193. package/es/hoc/modal/select/index.native.js +10 -0
  194. package/es/hoc/modal/select/index.native.js.map +1 -1
  195. package/es/hoc/modal/select-item/index.native.d.ts +1 -1
  196. package/es/hoc/modal/select-item/index.native.d.ts.map +1 -1
  197. package/es/hoc/modal/select-item/index.native.js +8 -0
  198. package/es/hoc/modal/select-item/index.native.js.map +1 -1
  199. package/es/hoc/swapper/index.js +14 -4
  200. package/es/hoc/swapper/index.js.map +1 -1
  201. package/es/hoc/touchable/index.native.d.ts +1 -1
  202. package/es/hoc/touchable/index.native.d.ts.map +1 -1
  203. package/es/hoc/touchable/index.native.js +6 -0
  204. package/es/hoc/touchable/index.native.js.map +1 -1
  205. package/es/hoc/transition/index.js +4 -0
  206. package/es/hoc/transition/index.js.map +1 -1
  207. package/es/index.js.map +1 -1
  208. package/es/molecule/add-to-my-list/index.js +7 -0
  209. package/es/molecule/add-to-my-list/index.js.map +1 -1
  210. package/es/molecule/answer/index.d.ts +0 -3
  211. package/es/molecule/answer/index.d.ts.map +1 -1
  212. package/es/molecule/answer/index.js +27 -14
  213. package/es/molecule/answer/index.js.map +1 -1
  214. package/es/molecule/answer/index.native.js +11 -0
  215. package/es/molecule/answer/index.native.js.map +1 -1
  216. package/es/molecule/answer/prop-types.d.ts +3 -3
  217. package/es/molecule/answer/prop-types.d.ts.map +1 -1
  218. package/es/molecule/answer/prop-types.js +3 -0
  219. package/es/molecule/answer/prop-types.js.map +1 -1
  220. package/es/molecule/audio/index.js +12 -2
  221. package/es/molecule/audio/index.js.map +1 -1
  222. package/es/molecule/banner/index.js +2 -0
  223. package/es/molecule/banner/index.js.map +1 -1
  224. package/es/molecule/battle-request/index.js +6 -2
  225. package/es/molecule/battle-request/index.js.map +1 -1
  226. package/es/molecule/brand-card/description.js +2 -0
  227. package/es/molecule/brand-card/description.js.map +1 -1
  228. package/es/molecule/brand-card/index.js +2 -0
  229. package/es/molecule/brand-card/index.js.map +1 -1
  230. package/es/molecule/brand-card-create/index.js +2 -0
  231. package/es/molecule/brand-card-create/index.js.map +1 -1
  232. package/es/molecule/brand-create-form/index.js +2 -0
  233. package/es/molecule/brand-create-form/index.js.map +1 -1
  234. package/es/molecule/brand-download-box/index.js +4 -0
  235. package/es/molecule/brand-download-box/index.js.map +1 -1
  236. package/es/molecule/brand-form-group/index.d.ts +8 -0
  237. package/es/molecule/brand-form-group/index.js +29 -0
  238. package/es/molecule/brand-form-group/index.js.map +1 -1
  239. package/es/molecule/brand-logo/index.native.js +5 -0
  240. package/es/molecule/brand-logo/index.native.js.map +1 -1
  241. package/es/molecule/brand-tabs/index.js +4 -0
  242. package/es/molecule/brand-tabs/index.js.map +1 -1
  243. package/es/molecule/brand-upload-box/index.js +11 -0
  244. package/es/molecule/brand-upload-box/index.js.map +1 -1
  245. package/es/molecule/breadcrumbs/index.js +6 -0
  246. package/es/molecule/breadcrumbs/index.js.map +1 -1
  247. package/es/molecule/bullet-point-menu-button/index.js +2 -0
  248. package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
  249. package/es/molecule/card/customer.js +2 -0
  250. package/es/molecule/card/customer.js.map +1 -1
  251. package/es/molecule/card/favorite.js +9 -0
  252. package/es/molecule/card/favorite.js.map +1 -1
  253. package/es/molecule/card/index.js +21 -0
  254. package/es/molecule/card/index.js.map +1 -1
  255. package/es/molecule/card/notification.js +5 -0
  256. package/es/molecule/card/notification.js.map +1 -1
  257. package/es/molecule/card/selectable.js +2 -0
  258. package/es/molecule/card/selectable.js.map +1 -1
  259. package/es/molecule/card-congrats/index.native.js +7 -0
  260. package/es/molecule/card-congrats/index.native.js.map +1 -1
  261. package/es/molecule/card-congrats/types.d.ts +1 -1
  262. package/es/molecule/card-congrats/types.d.ts.map +1 -1
  263. package/es/molecule/card-content/index.js +13 -2
  264. package/es/molecule/card-content/index.js.map +1 -1
  265. package/es/molecule/card-with-button/index.js +6 -0
  266. package/es/molecule/card-with-button/index.js.map +1 -1
  267. package/es/molecule/cm-popin/index.js +10 -4
  268. package/es/molecule/cm-popin/index.js.map +1 -1
  269. package/es/molecule/cm-popin/index.native.js +6 -0
  270. package/es/molecule/cm-popin/index.native.js.map +1 -1
  271. package/es/molecule/cm-popin/types.d.ts +4 -2
  272. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  273. package/es/molecule/cm-popin/types.js.map +1 -1
  274. package/es/molecule/cookie-banner/index.js +4 -0
  275. package/es/molecule/cookie-banner/index.js.map +1 -1
  276. package/es/molecule/coorp-manager-roles/index.js +3 -0
  277. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  278. package/es/molecule/course-section/index.js +2 -0
  279. package/es/molecule/course-section/index.js.map +1 -1
  280. package/es/molecule/course-sections/index.js +6 -0
  281. package/es/molecule/course-sections/index.js.map +1 -1
  282. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  283. package/es/molecule/dashboard/cards-list/index.js +49 -2
  284. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  285. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  286. package/es/molecule/dashboard/review-banner/index.js +3 -0
  287. package/es/molecule/dashboard/review-banner/index.js.map +1 -1
  288. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  289. package/es/molecule/discipline-cta/index.js +4 -0
  290. package/es/molecule/discipline-cta/index.js.map +1 -1
  291. package/es/molecule/discipline-header/index.js +11 -4
  292. package/es/molecule/discipline-header/index.js.map +1 -1
  293. package/es/molecule/discipline-partners/index.js +11 -0
  294. package/es/molecule/discipline-partners/index.js.map +1 -1
  295. package/es/molecule/discipline-scope/index.js +2 -0
  296. package/es/molecule/discipline-scope/index.js.map +1 -1
  297. package/es/molecule/drag-and-drop/index.js +3 -0
  298. package/es/molecule/drag-and-drop/index.js.map +1 -1
  299. package/es/molecule/drag-and-drop/overlay.js.map +1 -1
  300. package/es/molecule/drag-and-drop/placeholder.js.map +1 -1
  301. package/es/molecule/drag-and-drop/upload-report.js +13 -0
  302. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  303. package/es/molecule/drag-and-drop-wrapper/index.js +4 -0
  304. package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  305. package/es/molecule/draggable/index.js +4 -0
  306. package/es/molecule/draggable/index.js.map +1 -1
  307. package/es/molecule/draggable-list/index.d.ts +2 -0
  308. package/es/molecule/draggable-list/index.js +3 -0
  309. package/es/molecule/draggable-list/index.js.map +1 -1
  310. package/es/molecule/empty-state-dashboard/index.js +3 -0
  311. package/es/molecule/empty-state-dashboard/index.js.map +1 -1
  312. package/es/molecule/empty-state-dashboard/types.d.ts +1 -1
  313. package/es/molecule/empty-state-dashboard/types.d.ts.map +1 -1
  314. package/es/molecule/empty-state-dashboard/types.js.map +1 -1
  315. package/es/molecule/external-content-button/index.js +5 -0
  316. package/es/molecule/external-content-button/index.js.map +1 -1
  317. package/es/molecule/external-content-viewer/index.js +2 -0
  318. package/es/molecule/external-content-viewer/index.js.map +1 -1
  319. package/es/molecule/feedback/index.js +9 -6
  320. package/es/molecule/feedback/index.js.map +1 -1
  321. package/es/molecule/filters/filters-wrapper.d.ts.map +1 -1
  322. package/es/molecule/filters/filters-wrapper.js +17 -1
  323. package/es/molecule/filters/filters-wrapper.js.map +1 -1
  324. package/es/molecule/filters/index.d.ts +2 -0
  325. package/es/molecule/filters/index.d.ts.map +1 -1
  326. package/es/molecule/filters/index.js +21 -3
  327. package/es/molecule/filters/index.js.map +1 -1
  328. package/es/molecule/forum/forum-comment/index.js +5 -0
  329. package/es/molecule/forum/forum-comment/index.js.map +1 -1
  330. package/es/molecule/forum/forum-post/index.js +6 -0
  331. package/es/molecule/forum/forum-post/index.js.map +1 -1
  332. package/es/molecule/forum/forum-thread/index.js +4 -0
  333. package/es/molecule/forum/forum-thread/index.js.map +1 -1
  334. package/es/molecule/forum/post-conditions.js.map +1 -1
  335. package/es/molecule/go1-banner/index.js +4 -4
  336. package/es/molecule/go1-banner/index.js.map +1 -1
  337. package/es/molecule/hero/index.js +4 -0
  338. package/es/molecule/hero/index.js.map +1 -1
  339. package/es/molecule/input-text-with-titled-checkbox/index.js +2 -0
  340. package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
  341. package/es/molecule/list-badges/index.js +2 -0
  342. package/es/molecule/list-badges/index.js.map +1 -1
  343. package/es/molecule/login-alert/index.js +3 -2
  344. package/es/molecule/login-alert/index.js.map +1 -1
  345. package/es/molecule/menu-list/index.js +2 -0
  346. package/es/molecule/menu-list/index.js.map +1 -1
  347. package/es/molecule/message-popin/index.js +2 -0
  348. package/es/molecule/message-popin/index.js.map +1 -1
  349. package/es/molecule/modal/index.js +7 -6
  350. package/es/molecule/modal/index.js.map +1 -1
  351. package/es/molecule/module-bubble/index.js +6 -0
  352. package/es/molecule/module-bubble/index.js.map +1 -1
  353. package/es/molecule/module-card/index.js +7 -2
  354. package/es/molecule/module-card/index.js.map +1 -1
  355. package/es/molecule/news/index.js +3 -0
  356. package/es/molecule/news/index.js.map +1 -1
  357. package/es/molecule/notification-banner/index.js +7 -0
  358. package/es/molecule/notification-banner/index.js.map +1 -1
  359. package/es/molecule/pagination/index.js +2 -0
  360. package/es/molecule/pagination/index.js.map +1 -1
  361. package/es/molecule/payment-form/index.js +13 -0
  362. package/es/molecule/payment-form/index.js.map +1 -1
  363. package/es/molecule/pdf/index.js +6 -2
  364. package/es/molecule/pdf/index.js.map +1 -1
  365. package/es/molecule/popin/index.js +7 -2
  366. package/es/molecule/popin/index.js.map +1 -1
  367. package/es/molecule/product-card/index.js +4 -0
  368. package/es/molecule/product-card/index.js.map +1 -1
  369. package/es/molecule/progress-bar/index.js +6 -0
  370. package/es/molecule/progress-bar/index.js.map +1 -1
  371. package/es/molecule/questions/drop-down/index.js +4 -0
  372. package/es/molecule/questions/drop-down/index.js.map +1 -1
  373. package/es/molecule/questions/free-text/index.js +6 -0
  374. package/es/molecule/questions/free-text/index.js.map +1 -1
  375. package/es/molecule/questions/free-text/index.native.d.ts +1 -1
  376. package/es/molecule/questions/free-text/index.native.d.ts.map +1 -1
  377. package/es/molecule/questions/free-text/index.native.js +11 -12
  378. package/es/molecule/questions/free-text/index.native.js.map +1 -1
  379. package/es/molecule/questions/mobile/draggable/index.native.js +11 -0
  380. package/es/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  381. package/es/molecule/questions/mobile/slider/index.native.d.ts +2 -2
  382. package/es/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
  383. package/es/molecule/questions/mobile/slider/index.native.js +7 -0
  384. package/es/molecule/questions/mobile/slider/index.native.js.map +1 -1
  385. package/es/molecule/questions/mobile/switch/index.native.d.ts +1 -1
  386. package/es/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
  387. package/es/molecule/questions/mobile/switch/index.native.js +13 -0
  388. package/es/molecule/questions/mobile/switch/index.native.js.map +1 -1
  389. package/es/molecule/questions/mobile/template/index.native.d.ts +1 -1
  390. package/es/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
  391. package/es/molecule/questions/mobile/template/index.native.js +16 -0
  392. package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
  393. package/es/molecule/questions/qcm/index.js +7 -3
  394. package/es/molecule/questions/qcm/index.js.map +1 -1
  395. package/es/molecule/questions/qcm-drag/index.js +14 -4
  396. package/es/molecule/questions/qcm-drag/index.js.map +1 -1
  397. package/es/molecule/questions/qcm-graphic/index.js +7 -2
  398. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  399. package/es/molecule/questions/question-range/index.js +17 -12
  400. package/es/molecule/questions/question-range/index.js.map +1 -1
  401. package/es/molecule/questions/template/index.js +16 -5
  402. package/es/molecule/questions/template/index.js.map +1 -1
  403. package/es/molecule/questions/types.d.ts +12 -12
  404. package/es/molecule/questions/types.d.ts.map +1 -1
  405. package/es/molecule/quick-access-card/index.js +18 -0
  406. package/es/molecule/quick-access-card/index.js.map +1 -1
  407. package/es/molecule/quick-access-cards-group/index.js +4 -0
  408. package/es/molecule/quick-access-cards-group/index.js.map +1 -1
  409. package/es/molecule/resource-player/index.js +25 -5
  410. package/es/molecule/resource-player/index.js.map +1 -1
  411. package/es/molecule/review-card-congrats/index.js +7 -2
  412. package/es/molecule/review-card-congrats/index.js.map +1 -1
  413. package/es/molecule/review-card-congrats/prop-types.d.ts +1 -1
  414. package/es/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
  415. package/es/molecule/review-card-congrats/prop-types.js.map +1 -1
  416. package/es/molecule/review-correction-popin/index.js +9 -4
  417. package/es/molecule/review-correction-popin/index.js.map +1 -1
  418. package/es/molecule/review-correction-popin/index.native.js +9 -0
  419. package/es/molecule/review-correction-popin/index.native.js.map +1 -1
  420. package/es/molecule/review-correction-popin/prop-types.d.ts +3 -3
  421. package/es/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
  422. package/es/molecule/review-correction-popin/prop-types.js.map +1 -1
  423. package/es/molecule/review-header-steps/index.js +3 -0
  424. package/es/molecule/review-header-steps/index.js.map +1 -1
  425. package/es/molecule/review-header-steps/prop-types.d.ts +1 -1
  426. package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  427. package/es/molecule/review-header-steps/prop-types.js.map +1 -1
  428. package/es/molecule/scope-content/index.js +21 -6
  429. package/es/molecule/scope-content/index.js.map +1 -1
  430. package/es/molecule/scope-tabs/index.js +6 -0
  431. package/es/molecule/scope-tabs/index.js.map +1 -1
  432. package/es/molecule/search-form/index.js +6 -0
  433. package/es/molecule/search-form/index.js.map +1 -1
  434. package/es/molecule/select-multiple/index.js +18 -2
  435. package/es/molecule/select-multiple/index.js.map +1 -1
  436. package/es/molecule/setup-cohort-item/index.js +10 -0
  437. package/es/molecule/setup-cohort-item/index.js.map +1 -1
  438. package/es/molecule/setup-section/index.d.ts +2 -0
  439. package/es/molecule/setup-section/index.d.ts.map +1 -1
  440. package/es/molecule/setup-section/index.js +10 -0
  441. package/es/molecule/setup-section/index.js.map +1 -1
  442. package/es/molecule/setup-sections/index.d.ts +2 -0
  443. package/es/molecule/setup-sections/index.js +3 -0
  444. package/es/molecule/setup-sections/index.js.map +1 -1
  445. package/es/molecule/setup-slide/index.d.ts +3 -0
  446. package/es/molecule/setup-slide/index.js +17 -0
  447. package/es/molecule/setup-slide/index.js.map +1 -1
  448. package/es/molecule/setup-slider/index.d.ts +3 -0
  449. package/es/molecule/setup-slider/index.js +6 -0
  450. package/es/molecule/setup-slider/index.js.map +1 -1
  451. package/es/molecule/share/index.js +15 -6
  452. package/es/molecule/share/index.js.map +1 -1
  453. package/es/molecule/skill-card/index.js +3 -0
  454. package/es/molecule/skill-card/index.js.map +1 -1
  455. package/es/molecule/skill-card/index.native.js +6 -0
  456. package/es/molecule/skill-card/index.native.js.map +1 -1
  457. package/es/molecule/skill-card/prop-types.d.ts +1 -1
  458. package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
  459. package/es/molecule/skill-card/prop-types.js.map +1 -1
  460. package/es/molecule/ssmenu-list/index.js +2 -0
  461. package/es/molecule/ssmenu-list/index.js.map +1 -1
  462. package/es/molecule/subscription-freemium/index.js +2 -0
  463. package/es/molecule/subscription-freemium/index.js.map +1 -1
  464. package/es/molecule/subscription-premium/index.js +6 -0
  465. package/es/molecule/subscription-premium/index.js.map +1 -1
  466. package/es/molecule/table/index.js +18 -0
  467. package/es/molecule/table/index.js.map +1 -1
  468. package/es/molecule/teams-popin/index.js +2 -0
  469. package/es/molecule/teams-popin/index.js.map +1 -1
  470. package/es/molecule/theme-image/index.js +2 -0
  471. package/es/molecule/theme-image/index.js.map +1 -1
  472. package/es/molecule/title-and-checkbox-wrapper/index.js +3 -0
  473. package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  474. package/es/molecule/titled-checkbox/index.js +2 -0
  475. package/es/molecule/titled-checkbox/index.js.map +1 -1
  476. package/es/molecule/unsubscribe/index.js +2 -0
  477. package/es/molecule/unsubscribe/index.js.map +1 -1
  478. package/es/molecule/vertical-tabs/index.js +4 -0
  479. package/es/molecule/vertical-tabs/index.js.map +1 -1
  480. package/es/molecule/video-iframe/index.js +12 -0
  481. package/es/molecule/video-iframe/index.js.map +1 -1
  482. package/es/molecule/video-player/index.js +23 -6
  483. package/es/molecule/video-player/index.js.map +1 -1
  484. package/es/molecule/video-player/jwplayer-prop-types.js.map +1 -1
  485. package/es/molecule/video-player/jwplayer.js +29 -3
  486. package/es/molecule/video-player/jwplayer.js.map +1 -1
  487. package/es/molecule/video-player/prop-types.js.map +1 -1
  488. package/es/molecule/video-player/vimeo.js +42 -0
  489. package/es/molecule/video-player/vimeo.js.map +1 -1
  490. package/es/molecule/wizard-summary/index.js +18 -2
  491. package/es/molecule/wizard-summary/index.js.map +1 -1
  492. package/es/organism/accordion/container/index.js +9 -0
  493. package/es/organism/accordion/container/index.js.map +1 -1
  494. package/es/organism/accordion/coorp-manager/index.js +13 -0
  495. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  496. package/es/organism/accordion/coorp-manager/part/index.js +10 -0
  497. package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
  498. package/es/organism/accordion/part/index.js +5 -0
  499. package/es/organism/accordion/part/index.js.map +1 -1
  500. package/es/organism/accordion/toggler/index.js +11 -0
  501. package/es/organism/accordion/toggler/index.js.map +1 -1
  502. package/es/organism/brand-analytics/analytics-popin.js +6 -0
  503. package/es/organism/brand-analytics/analytics-popin.js.map +1 -1
  504. package/es/organism/brand-analytics/index.js +11 -0
  505. package/es/organism/brand-analytics/index.js.map +1 -1
  506. package/es/organism/brand-dashboard/index.js +3 -0
  507. package/es/organism/brand-dashboard/index.js.map +1 -1
  508. package/es/organism/brand-form/index.d.ts +8 -0
  509. package/es/organism/brand-form/index.js +6 -0
  510. package/es/organism/brand-form/index.js.map +1 -1
  511. package/es/organism/brand-table/index.js +2 -0
  512. package/es/organism/brand-table/index.js.map +1 -1
  513. package/es/organism/brand-upload/index.js +4 -0
  514. package/es/organism/brand-upload/index.js.map +1 -1
  515. package/es/organism/cards-grid/index.js +4 -0
  516. package/es/organism/cards-grid/index.js.map +1 -1
  517. package/es/organism/cart/index.js +2 -0
  518. package/es/organism/cart/index.js.map +1 -1
  519. package/es/organism/content-translation/index.js +5 -0
  520. package/es/organism/content-translation/index.js.map +1 -1
  521. package/es/organism/course-selection/index.js +8 -0
  522. package/es/organism/course-selection/index.js.map +1 -1
  523. package/es/organism/discussion/index.js +4 -2
  524. package/es/organism/discussion/index.js.map +1 -1
  525. package/es/organism/get-the-app/index.js +16 -0
  526. package/es/organism/get-the-app/index.js.map +1 -1
  527. package/es/organism/grid-list/index.js +2 -0
  528. package/es/organism/grid-list/index.js.map +1 -1
  529. package/es/organism/header/index.js +2 -0
  530. package/es/organism/header/index.js.map +1 -1
  531. package/es/organism/header-v2/index.native.js +6 -3
  532. package/es/organism/header-v2/index.native.js.map +1 -1
  533. package/es/organism/hero/index.js +4 -0
  534. package/es/organism/hero/index.js.map +1 -1
  535. package/es/organism/list-item/index.js +4 -0
  536. package/es/organism/list-item/index.js.map +1 -1
  537. package/es/organism/list-items/index.js +3 -0
  538. package/es/organism/list-items/index.js.map +1 -1
  539. package/es/organism/mobile-navigation/index.native.d.ts +2 -2
  540. package/es/organism/mobile-navigation/index.native.d.ts.map +1 -1
  541. package/es/organism/mobile-navigation/index.native.js +7 -0
  542. package/es/organism/mobile-navigation/index.native.js.map +1 -1
  543. package/es/organism/mooc/image-slider/index.js +5 -0
  544. package/es/organism/mooc/image-slider/index.js.map +1 -1
  545. package/es/organism/mooc-footer/index.js +9 -10
  546. package/es/organism/mooc-footer/index.js.map +1 -1
  547. package/es/organism/mooc-header/index.d.ts.map +1 -1
  548. package/es/organism/mooc-header/index.js +51 -1
  549. package/es/organism/mooc-header/index.js.map +1 -1
  550. package/es/organism/podcast-popin-intro/index.native.d.ts +2 -2
  551. package/es/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
  552. package/es/organism/podcast-popin-intro/index.native.js +6 -0
  553. package/es/organism/podcast-popin-intro/index.native.js.map +1 -1
  554. package/es/organism/popin/index.js +5 -0
  555. package/es/organism/popin/index.js.map +1 -1
  556. package/es/organism/resource-browser/index.js +10 -0
  557. package/es/organism/resource-browser/index.js.map +1 -1
  558. package/es/organism/review-congrats/index.js +5 -1
  559. package/es/organism/review-congrats/index.js.map +1 -1
  560. package/es/organism/review-congrats/index.native.js +10 -2
  561. package/es/organism/review-congrats/index.native.js.map +1 -1
  562. package/es/organism/review-congrats/prop-types.d.ts +1 -1
  563. package/es/organism/review-congrats/prop-types.d.ts.map +1 -1
  564. package/es/organism/review-congrats/prop-types.js.map +1 -1
  565. package/es/organism/review-header/index.js +2 -0
  566. package/es/organism/review-header/index.js.map +1 -1
  567. package/es/organism/review-header/index.native.js +3 -0
  568. package/es/organism/review-header/index.native.js.map +1 -1
  569. package/es/organism/review-header/types.d.ts +1 -1
  570. package/es/organism/review-header/types.d.ts.map +1 -1
  571. package/es/organism/review-header/types.js.map +1 -1
  572. package/es/organism/review-no-skills/index.js +2 -0
  573. package/es/organism/review-no-skills/index.js.map +1 -1
  574. package/es/organism/review-no-skills/index.native.js +6 -0
  575. package/es/organism/review-no-skills/index.native.js.map +1 -1
  576. package/es/organism/review-no-skills/prop-types.d.ts +1 -1
  577. package/es/organism/review-no-skills/prop-types.d.ts.map +1 -1
  578. package/es/organism/review-no-skills/prop-types.js.map +1 -1
  579. package/es/organism/review-skills/index.js +2 -0
  580. package/es/organism/review-skills/index.js.map +1 -1
  581. package/es/organism/review-skills/index.native.js +3 -0
  582. package/es/organism/review-skills/index.native.js.map +1 -1
  583. package/es/organism/review-skills/prop-types.d.ts +1 -1
  584. package/es/organism/review-skills/prop-types.d.ts.map +1 -1
  585. package/es/organism/review-skills/prop-types.js.map +1 -1
  586. package/es/organism/review-slide/index.js +16 -8
  587. package/es/organism/review-slide/index.js.map +1 -1
  588. package/es/organism/review-slide/index.native.js +10 -3
  589. package/es/organism/review-slide/index.native.js.map +1 -1
  590. package/es/organism/review-slide/prop-types.d.ts +5 -5
  591. package/es/organism/review-slide/prop-types.d.ts.map +1 -1
  592. package/es/organism/review-slide/prop-types.js +1 -1
  593. package/es/organism/review-slide/prop-types.js.map +1 -1
  594. package/es/organism/review-stacked-slides/index.js +9 -2
  595. package/es/organism/review-stacked-slides/index.js.map +1 -1
  596. package/es/organism/review-stacked-slides/index.native.js +10 -5
  597. package/es/organism/review-stacked-slides/index.native.js.map +1 -1
  598. package/es/organism/review-stacked-slides/prop-types.d.ts +1 -1
  599. package/es/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
  600. package/es/organism/review-stacked-slides/prop-types.js.map +1 -1
  601. package/es/organism/rewards-form/index.js +8 -3
  602. package/es/organism/rewards-form/index.js.map +1 -1
  603. package/es/organism/search-and-chips-results/index.js +6 -0
  604. package/es/organism/search-and-chips-results/index.js.map +1 -1
  605. package/es/organism/settings/index.js +12 -5
  606. package/es/organism/settings/index.js.map +1 -1
  607. package/es/organism/setup-header/index.js +5 -0
  608. package/es/organism/setup-header/index.js.map +1 -1
  609. package/es/organism/sidebar/index.js +26 -8
  610. package/es/organism/sidebar/index.js.map +1 -1
  611. package/es/organism/slider/index.js +18 -2
  612. package/es/organism/slider/index.js.map +1 -1
  613. package/es/organism/user-preferences/index.d.ts +2 -0
  614. package/es/organism/user-preferences/index.js +13 -5
  615. package/es/organism/user-preferences/index.js.map +1 -1
  616. package/es/organism/wizard-contents/index.d.ts +8 -0
  617. package/es/organism/wizard-contents/index.js +13 -0
  618. package/es/organism/wizard-contents/index.js.map +1 -1
  619. package/es/template/activity/engine-stars.js +17 -5
  620. package/es/template/activity/engine-stars.js.map +1 -1
  621. package/es/template/activity/index.d.ts +12 -11
  622. package/es/template/activity/index.d.ts.map +1 -1
  623. package/es/template/activity/index.js +10 -5
  624. package/es/template/activity/index.js.map +1 -1
  625. package/es/template/activity/progression-item.js +7 -2
  626. package/es/template/activity/progression-item.js.map +1 -1
  627. package/es/template/activity/stars-summary.js +13 -0
  628. package/es/template/activity/stars-summary.js.map +1 -1
  629. package/es/template/app-player/loading/index.d.ts +2 -0
  630. package/es/template/app-player/loading/index.js +2 -0
  631. package/es/template/app-player/loading/index.js.map +1 -1
  632. package/es/template/app-player/player/index.d.ts +4 -0
  633. package/es/template/app-player/player/index.js +3 -0
  634. package/es/template/app-player/player/index.js.map +1 -1
  635. package/es/template/app-player/player/slides/footer/index.js +16 -0
  636. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  637. package/es/template/app-player/player/slides/header/index.js +2 -0
  638. package/es/template/app-player/player/slides/header/index.js.map +1 -1
  639. package/es/template/app-player/player/slides/header/learner.js +14 -4
  640. package/es/template/app-player/player/slides/header/learner.js.map +1 -1
  641. package/es/template/app-player/player/slides/header/lives.js +3 -0
  642. package/es/template/app-player/player/slides/header/lives.js.map +1 -1
  643. package/es/template/app-player/player/slides/header/microlearning.js +5 -2
  644. package/es/template/app-player/player/slides/header/microlearning.js.map +1 -1
  645. package/es/template/app-player/player/slides/index.d.ts +2 -0
  646. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  647. package/es/template/app-player/player/slides/index.js +64 -21
  648. package/es/template/app-player/player/slides/index.js.map +1 -1
  649. package/es/template/app-player/popin-correction/index.d.ts +2 -0
  650. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  651. package/es/template/app-player/popin-correction/index.js +34 -10
  652. package/es/template/app-player/popin-correction/index.js.map +1 -1
  653. package/es/template/app-player/popin-end/index.d.ts +2 -0
  654. package/es/template/app-player/popin-end/index.js +5 -0
  655. package/es/template/app-player/popin-end/index.js.map +1 -1
  656. package/es/template/app-player/popin-end/summary.js +54 -22
  657. package/es/template/app-player/popin-end/summary.js.map +1 -1
  658. package/es/template/app-player/popin-header/index.js +46 -12
  659. package/es/template/app-player/popin-header/index.js.map +1 -1
  660. package/es/template/app-player/popin-no-access/index.js +2 -0
  661. package/es/template/app-player/popin-no-access/index.js.map +1 -1
  662. package/es/template/app-review/demo-ts/index.js +2 -0
  663. package/es/template/app-review/demo-ts/index.js.map +1 -1
  664. package/es/template/app-review/demo-ts/index.native.js +2 -0
  665. package/es/template/app-review/demo-ts/index.native.js.map +1 -1
  666. package/es/template/app-review/demo-ts/typings.d.ts +1 -1
  667. package/es/template/app-review/demo-ts/typings.d.ts.map +1 -1
  668. package/es/template/app-review/demo-ts/typings.js.map +1 -1
  669. package/es/template/app-review/index.d.ts +2 -0
  670. package/es/template/app-review/index.d.ts.map +1 -1
  671. package/es/template/app-review/index.js +3 -0
  672. package/es/template/app-review/index.js.map +1 -1
  673. package/es/template/app-review/index.native.js +4 -2
  674. package/es/template/app-review/index.native.js.map +1 -1
  675. package/es/template/app-review/onboarding/index.js.map +1 -1
  676. package/es/template/app-review/onboarding/index.native.js.map +1 -1
  677. package/es/template/app-review/player/background-review.js +2 -0
  678. package/es/template/app-review/player/background-review.js.map +1 -1
  679. package/es/template/app-review/player/index.js +2 -0
  680. package/es/template/app-review/player/index.js.map +1 -1
  681. package/es/template/app-review/player/index.native.js +6 -0
  682. package/es/template/app-review/player/index.native.js.map +1 -1
  683. package/es/template/app-review/player/prop-types.d.ts +3 -1
  684. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  685. package/es/template/app-review/player/prop-types.js +1 -0
  686. package/es/template/app-review/player/prop-types.js.map +1 -1
  687. package/es/template/app-review/prop-types.d.ts +4 -2
  688. package/es/template/app-review/prop-types.d.ts.map +1 -1
  689. package/es/template/app-review/prop-types.js +1 -0
  690. package/es/template/app-review/prop-types.js.map +1 -1
  691. package/es/template/app-review/skills/index.js +2 -0
  692. package/es/template/app-review/skills/index.js.map +1 -1
  693. package/es/template/app-review/skills/index.native.js +6 -0
  694. package/es/template/app-review/skills/index.native.js.map +1 -1
  695. package/es/template/app-review/skills/prop-types.d.ts +1 -1
  696. package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
  697. package/es/template/app-review/skills/prop-types.js.map +1 -1
  698. package/es/template/app-review/template-context.d.ts +5 -5
  699. package/es/template/app-review/template-context.d.ts.map +1 -1
  700. package/es/template/app-review/template-context.js +5 -0
  701. package/es/template/app-review/template-context.js.map +1 -1
  702. package/es/template/back-office/brand-create/index.js.map +1 -1
  703. package/es/template/back-office/brand-list/index.js +14 -8
  704. package/es/template/back-office/brand-list/index.js.map +1 -1
  705. package/es/template/back-office/brand-update/index.d.ts +18 -0
  706. package/es/template/back-office/brand-update/index.js +25 -4
  707. package/es/template/back-office/brand-update/index.js.map +1 -1
  708. package/es/template/back-office/dashboard-preview/dashboard-popin.js +5 -0
  709. package/es/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
  710. package/es/template/back-office/dashboard-preview/index.js +14 -0
  711. package/es/template/back-office/dashboard-preview/index.js.map +1 -1
  712. package/es/template/back-office/layout/index.js +3 -0
  713. package/es/template/back-office/layout/index.js.map +1 -1
  714. package/es/template/battle-requests/index.js +3 -2
  715. package/es/template/battle-requests/index.js.map +1 -1
  716. package/es/template/cockpit/jw-uploader/index.js +3 -0
  717. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  718. package/es/template/common/authors/index.js +10 -2
  719. package/es/template/common/authors/index.js.map +1 -1
  720. package/es/template/common/coorp-header/content.js +4 -0
  721. package/es/template/common/coorp-header/content.js.map +1 -1
  722. package/es/template/common/coorp-header/index.js +2 -0
  723. package/es/template/common/coorp-header/index.js.map +1 -1
  724. package/es/template/common/dashboard/index.d.ts +2 -0
  725. package/es/template/common/dashboard/index.js +13 -0
  726. package/es/template/common/dashboard/index.js.map +1 -1
  727. package/es/template/common/discipline/index.js +2 -0
  728. package/es/template/common/discipline/index.js.map +1 -1
  729. package/es/template/common/search-page/index.d.ts +3 -0
  730. package/es/template/common/search-page/index.d.ts.map +1 -1
  731. package/es/template/common/search-page/index.js +12 -3
  732. package/es/template/common/search-page/index.js.map +1 -1
  733. package/es/template/external-course/index.js +10 -2
  734. package/es/template/external-course/index.js.map +1 -1
  735. package/es/template/review-dashboard-skills/index.js +2 -0
  736. package/es/template/review-dashboard-skills/index.js.map +1 -1
  737. package/es/template/teams-dashboard/index.js +4 -0
  738. package/es/template/teams-dashboard/index.js.map +1 -1
  739. package/es/util/bubbling.js +1 -0
  740. package/es/util/bubbling.js.map +1 -1
  741. package/es/util/build-query-string.d.ts +1 -1
  742. package/es/util/build-query-string.d.ts.map +1 -1
  743. package/es/util/build-query-string.js +2 -0
  744. package/es/util/build-query-string.js.map +1 -1
  745. package/es/util/button-icons.js.map +1 -1
  746. package/es/util/closest-step.js +6 -0
  747. package/es/util/closest-step.js.map +1 -1
  748. package/es/util/constants.js.map +1 -1
  749. package/es/util/external-content.js.map +1 -1
  750. package/es/util/get-class-state.js +2 -0
  751. package/es/util/get-class-state.js.map +1 -1
  752. package/es/util/get-clean-uri.js +1 -0
  753. package/es/util/get-clean-uri.js.map +1 -1
  754. package/es/util/get-resized-image.js +7 -0
  755. package/es/util/get-resized-image.js.map +1 -1
  756. package/es/util/get-shadow-box-color-from-primary.js +1 -2
  757. package/es/util/get-shadow-box-color-from-primary.js.map +1 -1
  758. package/es/util/image.js +4 -0
  759. package/es/util/image.js.map +1 -1
  760. package/es/util/navigation.js +9 -0
  761. package/es/util/navigation.js.map +1 -1
  762. package/es/util/parse-template-string.js +6 -0
  763. package/es/util/parse-template-string.js.map +1 -1
  764. package/es/util/proptypes.js.map +1 -1
  765. package/es/util/render-with-context.js +14 -8
  766. package/es/util/render-with-context.js.map +1 -1
  767. package/es/util/shallow-compare.js +2 -0
  768. package/es/util/shallow-compare.js.map +1 -1
  769. package/es/variables/analytics.d.ts +2 -2
  770. package/es/variables/analytics.d.ts.map +1 -1
  771. package/es/variables/analytics.js.map +1 -1
  772. package/es/variables/brand.native.d.ts +1 -1
  773. package/es/variables/brand.native.d.ts.map +1 -1
  774. package/es/variables/brand.native.js.map +1 -1
  775. package/es/variables/colors.d.ts +1 -1
  776. package/es/variables/colors.d.ts.map +1 -1
  777. package/es/variables/colors.js.map +1 -1
  778. package/es/variables/default-mobile-translations.d.ts +2 -2
  779. package/es/variables/default-mobile-translations.d.ts.map +1 -1
  780. package/es/variables/default-mobile-translations.js.map +1 -1
  781. package/es/variables/shadow.d.ts +1 -1
  782. package/es/variables/shadow.d.ts.map +1 -1
  783. package/es/variables/shadow.js +1 -0
  784. package/es/variables/shadow.js.map +1 -1
  785. package/es/variables/theme.native.d.ts +3 -3
  786. package/es/variables/theme.native.d.ts.map +1 -1
  787. package/es/variables/theme.native.js.map +1 -1
  788. package/es/variables/vibration.d.ts +2 -2
  789. package/es/variables/vibration.d.ts.map +1 -1
  790. package/es/variables/vibration.js.map +1 -1
  791. package/lib/atom/autocomplete/index.js +14 -0
  792. package/lib/atom/autocomplete/index.js.map +1 -1
  793. package/lib/atom/avatar/index.js +7 -0
  794. package/lib/atom/avatar/index.js.map +1 -1
  795. package/lib/atom/button/index.js +15 -0
  796. package/lib/atom/button/index.js.map +1 -1
  797. package/lib/atom/button/index.native.d.ts +1 -1
  798. package/lib/atom/button/index.native.d.ts.map +1 -1
  799. package/lib/atom/button/index.native.js +12 -0
  800. package/lib/atom/button/index.native.js.map +1 -1
  801. package/lib/atom/button-link/index.js +20 -0
  802. package/lib/atom/button-link/index.js.map +1 -1
  803. package/lib/atom/button-link-icon-only/index.js +22 -0
  804. package/lib/atom/button-link-icon-only/index.js.map +1 -1
  805. package/lib/atom/button-menu/index.js +13 -0
  806. package/lib/atom/button-menu/index.js.map +1 -1
  807. package/lib/atom/card-image-preview/index.js +9 -0
  808. package/lib/atom/card-image-preview/index.js.map +1 -1
  809. package/lib/atom/catalog-section/index.js +6 -0
  810. package/lib/atom/catalog-section/index.js.map +1 -1
  811. package/lib/atom/centered-text/index.js +6 -0
  812. package/lib/atom/centered-text/index.js.map +1 -1
  813. package/lib/atom/checkbox/index.js +17 -5
  814. package/lib/atom/checkbox/index.js.map +1 -1
  815. package/lib/atom/checkbox-with-title/index.js +11 -0
  816. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  817. package/lib/atom/chips/index.js +10 -0
  818. package/lib/atom/chips/index.js.map +1 -1
  819. package/lib/atom/choice/index.native.d.ts +1 -1
  820. package/lib/atom/choice/index.native.d.ts.map +1 -1
  821. package/lib/atom/choice/index.native.js +22 -2
  822. package/lib/atom/choice/index.native.js.map +1 -1
  823. package/lib/atom/clue/index.js +19 -0
  824. package/lib/atom/clue/index.js.map +1 -1
  825. package/lib/atom/content-badge/index.js +8 -0
  826. package/lib/atom/content-badge/index.js.map +1 -1
  827. package/lib/atom/cta/index.js +21 -0
  828. package/lib/atom/cta/index.js.map +1 -1
  829. package/lib/atom/difficulty-level/index.js +14 -0
  830. package/lib/atom/difficulty-level/index.js.map +1 -1
  831. package/lib/atom/drag-and-drop/index.js +25 -0
  832. package/lib/atom/drag-and-drop/index.js.map +1 -1
  833. package/lib/atom/empty-search-result/index.js +6 -0
  834. package/lib/atom/empty-search-result/index.js.map +1 -1
  835. package/lib/atom/gradient/index.native.d.ts +1 -1
  836. package/lib/atom/gradient/index.native.d.ts.map +1 -1
  837. package/lib/atom/gradient/index.native.js +11 -0
  838. package/lib/atom/gradient/index.native.js.map +1 -1
  839. package/lib/atom/header-back-button/index.native.d.ts +1 -1
  840. package/lib/atom/header-back-button/index.native.d.ts.map +1 -1
  841. package/lib/atom/header-back-button/index.native.js +16 -0
  842. package/lib/atom/header-back-button/index.native.js.map +1 -1
  843. package/lib/atom/header-back-icon/index.native.d.ts +1 -1
  844. package/lib/atom/header-back-icon/index.native.d.ts.map +1 -1
  845. package/lib/atom/header-back-icon/index.native.js +7 -0
  846. package/lib/atom/header-back-icon/index.native.js.map +1 -1
  847. package/lib/atom/html/index.native.d.ts +1 -1
  848. package/lib/atom/html/index.native.d.ts.map +1 -1
  849. package/lib/atom/html/index.native.js +21 -6
  850. package/lib/atom/html/index.native.js.map +1 -1
  851. package/lib/atom/image-background/index.native.d.ts +1 -1
  852. package/lib/atom/image-background/index.native.d.ts.map +1 -1
  853. package/lib/atom/image-background/index.native.js +33 -11
  854. package/lib/atom/image-background/index.native.js.map +1 -1
  855. package/lib/atom/image-upload/index.js +16 -0
  856. package/lib/atom/image-upload/index.js.map +1 -1
  857. package/lib/atom/input-checkbox/index.js +15 -0
  858. package/lib/atom/input-checkbox/index.js.map +1 -1
  859. package/lib/atom/input-color/index.js +10 -0
  860. package/lib/atom/input-color/index.js.map +1 -1
  861. package/lib/atom/input-doublestep/index.js +25 -0
  862. package/lib/atom/input-doublestep/index.js.map +1 -1
  863. package/lib/atom/input-html/index.js +16 -0
  864. package/lib/atom/input-html/index.js.map +1 -1
  865. package/lib/atom/input-html/input-preview.js +8 -2
  866. package/lib/atom/input-html/input-preview.js.map +1 -1
  867. package/lib/atom/input-readonly/index.js +6 -0
  868. package/lib/atom/input-readonly/index.js.map +1 -1
  869. package/lib/atom/input-search/index.d.ts.map +1 -1
  870. package/lib/atom/input-search/index.js +14 -0
  871. package/lib/atom/input-search/index.js.map +1 -1
  872. package/lib/atom/input-switch/index.d.ts +2 -0
  873. package/lib/atom/input-switch/index.d.ts.map +1 -1
  874. package/lib/atom/input-switch/index.js +39 -11
  875. package/lib/atom/input-switch/index.js.map +1 -1
  876. package/lib/atom/input-text/index.js +17 -2
  877. package/lib/atom/input-text/index.js.map +1 -1
  878. package/lib/atom/input-text-with-title/index.js +8 -0
  879. package/lib/atom/input-text-with-title/index.js.map +1 -1
  880. package/lib/atom/input-textarea/index.js +16 -2
  881. package/lib/atom/input-textarea/index.js.map +1 -1
  882. package/lib/atom/label/index.js +7 -0
  883. package/lib/atom/label/index.js.map +1 -1
  884. package/lib/atom/life/index.js +15 -0
  885. package/lib/atom/life/index.js.map +1 -1
  886. package/lib/atom/link/index.js +32 -7
  887. package/lib/atom/link/index.js.map +1 -1
  888. package/lib/atom/loader/index.js +8 -0
  889. package/lib/atom/loader/index.js.map +1 -1
  890. package/lib/atom/loader/index.native.d.ts +1 -1
  891. package/lib/atom/loader/index.native.d.ts.map +1 -1
  892. package/lib/atom/loader/index.native.js +18 -2
  893. package/lib/atom/loader/index.native.js.map +1 -1
  894. package/lib/atom/lottie-wrapper/index.js +26 -3
  895. package/lib/atom/lottie-wrapper/index.js.map +1 -1
  896. package/lib/atom/lottie-wrapper/prop-types.d.ts +1 -1
  897. package/lib/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
  898. package/lib/atom/lottie-wrapper/prop-types.js +4 -0
  899. package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
  900. package/lib/atom/notification/index.js +8 -0
  901. package/lib/atom/notification/index.js.map +1 -1
  902. package/lib/atom/picture/index.js +21 -0
  903. package/lib/atom/picture/index.js.map +1 -1
  904. package/lib/atom/picture-background/index.js +10 -0
  905. package/lib/atom/picture-background/index.js.map +1 -1
  906. package/lib/atom/promo-code/index.js +7 -0
  907. package/lib/atom/promo-code/index.js.map +1 -1
  908. package/lib/atom/provider/index.js +28 -2
  909. package/lib/atom/provider/index.js.map +1 -1
  910. package/lib/atom/provider/web-context.d.ts +3 -3
  911. package/lib/atom/provider/web-context.d.ts.map +1 -1
  912. package/lib/atom/provider/web-context.js +18 -6
  913. package/lib/atom/provider/web-context.js.map +1 -1
  914. package/lib/atom/radio-group/index.js +13 -0
  915. package/lib/atom/radio-group/index.js.map +1 -1
  916. package/lib/atom/radio-group/item.js +14 -0
  917. package/lib/atom/radio-group/item.js.map +1 -1
  918. package/lib/atom/range/handle.js +25 -9
  919. package/lib/atom/range/handle.js.map +1 -1
  920. package/lib/atom/range/index.js +28 -0
  921. package/lib/atom/range/index.js.map +1 -1
  922. package/lib/atom/resource-miniature/index.js +13 -2
  923. package/lib/atom/resource-miniature/index.js.map +1 -1
  924. package/lib/atom/review-header-step-item/index.js +15 -0
  925. package/lib/atom/review-header-step-item/index.js.map +1 -1
  926. package/lib/atom/review-header-step-item/index.native.js +20 -0
  927. package/lib/atom/review-header-step-item/index.native.js.map +1 -1
  928. package/lib/atom/review-header-step-item/types.d.ts +2 -2
  929. package/lib/atom/review-header-step-item/types.d.ts.map +1 -1
  930. package/lib/atom/review-header-step-item/types.js +3 -0
  931. package/lib/atom/review-header-step-item/types.js.map +1 -1
  932. package/lib/atom/review-presentation/index.js +18 -5
  933. package/lib/atom/review-presentation/index.js.map +1 -1
  934. package/lib/atom/review-presentation/index.native.js +19 -3
  935. package/lib/atom/review-presentation/index.native.js.map +1 -1
  936. package/lib/atom/review-presentation/prop-types.d.ts +2 -2
  937. package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
  938. package/lib/atom/review-presentation/prop-types.js +4 -0
  939. package/lib/atom/review-presentation/prop-types.js.map +1 -1
  940. package/lib/atom/select/index.d.ts +1 -0
  941. package/lib/atom/select/index.d.ts.map +1 -1
  942. package/lib/atom/select/index.js +43 -10
  943. package/lib/atom/select/index.js.map +1 -1
  944. package/lib/atom/select-modal/index.native.d.ts +2 -2
  945. package/lib/atom/select-modal/index.native.d.ts.map +1 -1
  946. package/lib/atom/select-modal/index.native.js +25 -0
  947. package/lib/atom/select-modal/index.native.js.map +1 -1
  948. package/lib/atom/slide/index.js +8 -0
  949. package/lib/atom/slide/index.js.map +1 -1
  950. package/lib/atom/social-link/index.js +8 -0
  951. package/lib/atom/social-link/index.js.map +1 -1
  952. package/lib/atom/space/index.native.d.ts +1 -1
  953. package/lib/atom/space/index.native.d.ts.map +1 -1
  954. package/lib/atom/space/index.native.js +7 -0
  955. package/lib/atom/space/index.native.js.map +1 -1
  956. package/lib/atom/spinner/index.js +5 -0
  957. package/lib/atom/spinner/index.js.map +1 -1
  958. package/lib/atom/tab/index.js +9 -0
  959. package/lib/atom/tab/index.js.map +1 -1
  960. package/lib/atom/tab-content/index.js +7 -0
  961. package/lib/atom/tab-content/index.js.map +1 -1
  962. package/lib/atom/tag/index.js +8 -0
  963. package/lib/atom/tag/index.js.map +1 -1
  964. package/lib/atom/text/index.native.d.ts +1 -1
  965. package/lib/atom/text/index.native.d.ts.map +1 -1
  966. package/lib/atom/text/index.native.js +10 -0
  967. package/lib/atom/text/index.native.js.map +1 -1
  968. package/lib/atom/title/index.js +12 -0
  969. package/lib/atom/title/index.js.map +1 -1
  970. package/lib/atom/tooltip/index.js +16 -0
  971. package/lib/atom/tooltip/index.js.map +1 -1
  972. package/lib/atom/video-upload/index.js +8 -0
  973. package/lib/atom/video-upload/index.js.map +1 -1
  974. package/lib/atom/wizard-steps/index.js +7 -0
  975. package/lib/atom/wizard-steps/index.js.map +1 -1
  976. package/lib/hoc/animation/index.js +18 -0
  977. package/lib/hoc/animation/index.js.map +1 -1
  978. package/lib/hoc/animation-scheduler/index.js +39 -0
  979. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  980. package/lib/hoc/modal/index.native.d.ts +1 -1
  981. package/lib/hoc/modal/index.native.d.ts.map +1 -1
  982. package/lib/hoc/modal/index.native.js +14 -0
  983. package/lib/hoc/modal/index.native.js.map +1 -1
  984. package/lib/hoc/modal/select/index.native.d.ts +2 -2
  985. package/lib/hoc/modal/select/index.native.d.ts.map +1 -1
  986. package/lib/hoc/modal/select/index.native.js +19 -0
  987. package/lib/hoc/modal/select/index.native.js.map +1 -1
  988. package/lib/hoc/modal/select-item/index.native.d.ts +1 -1
  989. package/lib/hoc/modal/select-item/index.native.d.ts.map +1 -1
  990. package/lib/hoc/modal/select-item/index.native.js +16 -0
  991. package/lib/hoc/modal/select-item/index.native.js.map +1 -1
  992. package/lib/hoc/swapper/index.js +20 -4
  993. package/lib/hoc/swapper/index.js.map +1 -1
  994. package/lib/hoc/touchable/index.native.d.ts +1 -1
  995. package/lib/hoc/touchable/index.native.d.ts.map +1 -1
  996. package/lib/hoc/touchable/index.native.js +13 -0
  997. package/lib/hoc/touchable/index.native.js.map +1 -1
  998. package/lib/hoc/transition/index.js +11 -0
  999. package/lib/hoc/transition/index.js.map +1 -1
  1000. package/lib/index.js +13 -0
  1001. package/lib/index.js.map +1 -1
  1002. package/lib/molecule/add-to-my-list/index.js +22 -0
  1003. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  1004. package/lib/molecule/answer/index.d.ts +0 -3
  1005. package/lib/molecule/answer/index.d.ts.map +1 -1
  1006. package/lib/molecule/answer/index.js +44 -14
  1007. package/lib/molecule/answer/index.js.map +1 -1
  1008. package/lib/molecule/answer/index.native.js +14 -0
  1009. package/lib/molecule/answer/index.native.js.map +1 -1
  1010. package/lib/molecule/answer/prop-types.d.ts +3 -3
  1011. package/lib/molecule/answer/prop-types.d.ts.map +1 -1
  1012. package/lib/molecule/answer/prop-types.js +13 -0
  1013. package/lib/molecule/answer/prop-types.js.map +1 -1
  1014. package/lib/molecule/audio/index.js +18 -2
  1015. package/lib/molecule/audio/index.js.map +1 -1
  1016. package/lib/molecule/banner/index.js +11 -0
  1017. package/lib/molecule/banner/index.js.map +1 -1
  1018. package/lib/molecule/battle-request/index.js +13 -2
  1019. package/lib/molecule/battle-request/index.js.map +1 -1
  1020. package/lib/molecule/brand-card/description.js +7 -0
  1021. package/lib/molecule/brand-card/description.js.map +1 -1
  1022. package/lib/molecule/brand-card/index.js +10 -0
  1023. package/lib/molecule/brand-card/index.js.map +1 -1
  1024. package/lib/molecule/brand-card-create/index.js +7 -0
  1025. package/lib/molecule/brand-card-create/index.js.map +1 -1
  1026. package/lib/molecule/brand-create-form/index.js +11 -0
  1027. package/lib/molecule/brand-create-form/index.js.map +1 -1
  1028. package/lib/molecule/brand-download-box/index.js +10 -0
  1029. package/lib/molecule/brand-download-box/index.js.map +1 -1
  1030. package/lib/molecule/brand-form-group/index.d.ts +8 -0
  1031. package/lib/molecule/brand-form-group/index.js +58 -0
  1032. package/lib/molecule/brand-form-group/index.js.map +1 -1
  1033. package/lib/molecule/brand-logo/index.native.js +11 -0
  1034. package/lib/molecule/brand-logo/index.native.js.map +1 -1
  1035. package/lib/molecule/brand-tabs/index.js +10 -0
  1036. package/lib/molecule/brand-tabs/index.js.map +1 -1
  1037. package/lib/molecule/brand-upload-box/index.js +17 -0
  1038. package/lib/molecule/brand-upload-box/index.js.map +1 -1
  1039. package/lib/molecule/breadcrumbs/index.js +13 -0
  1040. package/lib/molecule/breadcrumbs/index.js.map +1 -1
  1041. package/lib/molecule/bullet-point-menu-button/index.js +12 -0
  1042. package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
  1043. package/lib/molecule/card/customer.js +9 -0
  1044. package/lib/molecule/card/customer.js.map +1 -1
  1045. package/lib/molecule/card/favorite.js +15 -0
  1046. package/lib/molecule/card/favorite.js.map +1 -1
  1047. package/lib/molecule/card/index.js +34 -0
  1048. package/lib/molecule/card/index.js.map +1 -1
  1049. package/lib/molecule/card/notification.js +12 -0
  1050. package/lib/molecule/card/notification.js.map +1 -1
  1051. package/lib/molecule/card/selectable.js +9 -0
  1052. package/lib/molecule/card/selectable.js.map +1 -1
  1053. package/lib/molecule/card-congrats/index.native.js +15 -0
  1054. package/lib/molecule/card-congrats/index.native.js.map +1 -1
  1055. package/lib/molecule/card-congrats/types.d.ts +1 -1
  1056. package/lib/molecule/card-congrats/types.d.ts.map +1 -1
  1057. package/lib/molecule/card-content/index.js +26 -2
  1058. package/lib/molecule/card-content/index.js.map +1 -1
  1059. package/lib/molecule/card-with-button/index.js +12 -0
  1060. package/lib/molecule/card-with-button/index.js.map +1 -1
  1061. package/lib/molecule/cm-popin/index.js +19 -4
  1062. package/lib/molecule/cm-popin/index.js.map +1 -1
  1063. package/lib/molecule/cm-popin/index.native.js +15 -0
  1064. package/lib/molecule/cm-popin/index.native.js.map +1 -1
  1065. package/lib/molecule/cm-popin/types.d.ts +4 -2
  1066. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  1067. package/lib/molecule/cm-popin/types.js +5 -0
  1068. package/lib/molecule/cm-popin/types.js.map +1 -1
  1069. package/lib/molecule/cookie-banner/index.js +10 -0
  1070. package/lib/molecule/cookie-banner/index.js.map +1 -1
  1071. package/lib/molecule/coorp-manager-roles/index.js +8 -0
  1072. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  1073. package/lib/molecule/course-section/index.js +9 -0
  1074. package/lib/molecule/course-section/index.js.map +1 -1
  1075. package/lib/molecule/course-sections/index.js +16 -0
  1076. package/lib/molecule/course-sections/index.js.map +1 -1
  1077. package/lib/molecule/dashboard/battle-request-list/index.js +7 -0
  1078. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  1079. package/lib/molecule/dashboard/cards-list/index.js +59 -2
  1080. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  1081. package/lib/molecule/dashboard/news-list/index.js +10 -0
  1082. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  1083. package/lib/molecule/dashboard/review-banner/index.js +10 -0
  1084. package/lib/molecule/dashboard/review-banner/index.js.map +1 -1
  1085. package/lib/molecule/dashboard/start-battle/index.js +9 -0
  1086. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  1087. package/lib/molecule/discipline-cta/index.js +11 -0
  1088. package/lib/molecule/discipline-cta/index.js.map +1 -1
  1089. package/lib/molecule/discipline-header/index.js +20 -4
  1090. package/lib/molecule/discipline-header/index.js.map +1 -1
  1091. package/lib/molecule/discipline-partners/index.js +21 -0
  1092. package/lib/molecule/discipline-partners/index.js.map +1 -1
  1093. package/lib/molecule/discipline-scope/index.js +7 -0
  1094. package/lib/molecule/discipline-scope/index.js.map +1 -1
  1095. package/lib/molecule/drag-and-drop/index.js +20 -0
  1096. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  1097. package/lib/molecule/drag-and-drop/overlay.js +10 -0
  1098. package/lib/molecule/drag-and-drop/overlay.js.map +1 -1
  1099. package/lib/molecule/drag-and-drop/placeholder.js +7 -0
  1100. package/lib/molecule/drag-and-drop/placeholder.js.map +1 -1
  1101. package/lib/molecule/drag-and-drop/upload-report.js +30 -0
  1102. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  1103. package/lib/molecule/drag-and-drop-wrapper/index.js +8 -0
  1104. package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  1105. package/lib/molecule/draggable/index.js +11 -0
  1106. package/lib/molecule/draggable/index.js.map +1 -1
  1107. package/lib/molecule/draggable-list/index.d.ts +2 -0
  1108. package/lib/molecule/draggable-list/index.js +12 -0
  1109. package/lib/molecule/draggable-list/index.js.map +1 -1
  1110. package/lib/molecule/empty-state-dashboard/index.js +8 -0
  1111. package/lib/molecule/empty-state-dashboard/index.js.map +1 -1
  1112. package/lib/molecule/empty-state-dashboard/types.d.ts +1 -1
  1113. package/lib/molecule/empty-state-dashboard/types.d.ts.map +1 -1
  1114. package/lib/molecule/empty-state-dashboard/types.js +4 -0
  1115. package/lib/molecule/empty-state-dashboard/types.js.map +1 -1
  1116. package/lib/molecule/external-content-button/index.js +11 -0
  1117. package/lib/molecule/external-content-button/index.js.map +1 -1
  1118. package/lib/molecule/external-content-viewer/index.js +9 -0
  1119. package/lib/molecule/external-content-viewer/index.js.map +1 -1
  1120. package/lib/molecule/feedback/index.js +19 -6
  1121. package/lib/molecule/feedback/index.js.map +1 -1
  1122. package/lib/molecule/filters/filters-wrapper.d.ts.map +1 -1
  1123. package/lib/molecule/filters/filters-wrapper.js +26 -1
  1124. package/lib/molecule/filters/filters-wrapper.js.map +1 -1
  1125. package/lib/molecule/filters/index.d.ts +2 -0
  1126. package/lib/molecule/filters/index.d.ts.map +1 -1
  1127. package/lib/molecule/filters/index.js +26 -3
  1128. package/lib/molecule/filters/index.js.map +1 -1
  1129. package/lib/molecule/forum/forum-comment/index.js +14 -0
  1130. package/lib/molecule/forum/forum-comment/index.js.map +1 -1
  1131. package/lib/molecule/forum/forum-post/index.js +15 -0
  1132. package/lib/molecule/forum/forum-post/index.js.map +1 -1
  1133. package/lib/molecule/forum/forum-thread/index.js +9 -0
  1134. package/lib/molecule/forum/forum-thread/index.js.map +1 -1
  1135. package/lib/molecule/forum/post-conditions.js +4 -0
  1136. package/lib/molecule/forum/post-conditions.js.map +1 -1
  1137. package/lib/molecule/go1-banner/index.js +9 -4
  1138. package/lib/molecule/go1-banner/index.js.map +1 -1
  1139. package/lib/molecule/hero/index.js +13 -0
  1140. package/lib/molecule/hero/index.js.map +1 -1
  1141. package/lib/molecule/input-text-with-titled-checkbox/index.js +8 -0
  1142. package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
  1143. package/lib/molecule/list-badges/index.js +8 -0
  1144. package/lib/molecule/list-badges/index.js.map +1 -1
  1145. package/lib/molecule/login-alert/index.js +8 -2
  1146. package/lib/molecule/login-alert/index.js.map +1 -1
  1147. package/lib/molecule/menu-list/index.js +10 -0
  1148. package/lib/molecule/menu-list/index.js.map +1 -1
  1149. package/lib/molecule/message-popin/index.js +6 -0
  1150. package/lib/molecule/message-popin/index.js.map +1 -1
  1151. package/lib/molecule/modal/index.js +13 -6
  1152. package/lib/molecule/modal/index.js.map +1 -1
  1153. package/lib/molecule/module-bubble/index.js +12 -0
  1154. package/lib/molecule/module-bubble/index.js.map +1 -1
  1155. package/lib/molecule/module-card/index.js +12 -2
  1156. package/lib/molecule/module-card/index.js.map +1 -1
  1157. package/lib/molecule/news/index.js +10 -0
  1158. package/lib/molecule/news/index.js.map +1 -1
  1159. package/lib/molecule/notification-banner/index.js +14 -0
  1160. package/lib/molecule/notification-banner/index.js.map +1 -1
  1161. package/lib/molecule/pagination/index.js +7 -0
  1162. package/lib/molecule/pagination/index.js.map +1 -1
  1163. package/lib/molecule/payment-form/index.js +18 -0
  1164. package/lib/molecule/payment-form/index.js.map +1 -1
  1165. package/lib/molecule/pdf/index.js +12 -2
  1166. package/lib/molecule/pdf/index.js.map +1 -1
  1167. package/lib/molecule/popin/index.js +14 -2
  1168. package/lib/molecule/popin/index.js.map +1 -1
  1169. package/lib/molecule/product-card/index.js +8 -0
  1170. package/lib/molecule/product-card/index.js.map +1 -1
  1171. package/lib/molecule/progress-bar/index.js +9 -0
  1172. package/lib/molecule/progress-bar/index.js.map +1 -1
  1173. package/lib/molecule/questions/drop-down/index.js +10 -0
  1174. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  1175. package/lib/molecule/questions/free-text/index.js +13 -0
  1176. package/lib/molecule/questions/free-text/index.js.map +1 -1
  1177. package/lib/molecule/questions/free-text/index.native.d.ts +1 -1
  1178. package/lib/molecule/questions/free-text/index.native.d.ts.map +1 -1
  1179. package/lib/molecule/questions/free-text/index.native.js +18 -12
  1180. package/lib/molecule/questions/free-text/index.native.js.map +1 -1
  1181. package/lib/molecule/questions/mobile/draggable/index.native.js +18 -0
  1182. package/lib/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  1183. package/lib/molecule/questions/mobile/slider/index.native.d.ts +2 -2
  1184. package/lib/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
  1185. package/lib/molecule/questions/mobile/slider/index.native.js +16 -0
  1186. package/lib/molecule/questions/mobile/slider/index.native.js.map +1 -1
  1187. package/lib/molecule/questions/mobile/switch/index.native.d.ts +1 -1
  1188. package/lib/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
  1189. package/lib/molecule/questions/mobile/switch/index.native.js +26 -0
  1190. package/lib/molecule/questions/mobile/switch/index.native.js.map +1 -1
  1191. package/lib/molecule/questions/mobile/template/index.native.d.ts +1 -1
  1192. package/lib/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
  1193. package/lib/molecule/questions/mobile/template/index.native.js +29 -0
  1194. package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
  1195. package/lib/molecule/questions/qcm/index.js +18 -3
  1196. package/lib/molecule/questions/qcm/index.js.map +1 -1
  1197. package/lib/molecule/questions/qcm-drag/index.js +25 -4
  1198. package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
  1199. package/lib/molecule/questions/qcm-graphic/index.js +14 -2
  1200. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  1201. package/lib/molecule/questions/question-range/index.js +25 -12
  1202. package/lib/molecule/questions/question-range/index.js.map +1 -1
  1203. package/lib/molecule/questions/template/index.js +24 -5
  1204. package/lib/molecule/questions/template/index.js.map +1 -1
  1205. package/lib/molecule/questions/types.d.ts +12 -12
  1206. package/lib/molecule/questions/types.d.ts.map +1 -1
  1207. package/lib/molecule/quick-access-card/index.js +24 -0
  1208. package/lib/molecule/quick-access-card/index.js.map +1 -1
  1209. package/lib/molecule/quick-access-cards-group/index.js +10 -0
  1210. package/lib/molecule/quick-access-cards-group/index.js.map +1 -1
  1211. package/lib/molecule/resource-player/index.js +36 -5
  1212. package/lib/molecule/resource-player/index.js.map +1 -1
  1213. package/lib/molecule/review-card-congrats/index.js +23 -2
  1214. package/lib/molecule/review-card-congrats/index.js.map +1 -1
  1215. package/lib/molecule/review-card-congrats/prop-types.d.ts +1 -1
  1216. package/lib/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
  1217. package/lib/molecule/review-card-congrats/prop-types.js +4 -0
  1218. package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
  1219. package/lib/molecule/review-correction-popin/index.js +16 -4
  1220. package/lib/molecule/review-correction-popin/index.js.map +1 -1
  1221. package/lib/molecule/review-correction-popin/index.native.js +20 -0
  1222. package/lib/molecule/review-correction-popin/index.native.js.map +1 -1
  1223. package/lib/molecule/review-correction-popin/prop-types.d.ts +3 -3
  1224. package/lib/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
  1225. package/lib/molecule/review-correction-popin/prop-types.js +3 -0
  1226. package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
  1227. package/lib/molecule/review-header-steps/index.js +11 -0
  1228. package/lib/molecule/review-header-steps/index.js.map +1 -1
  1229. package/lib/molecule/review-header-steps/prop-types.d.ts +1 -1
  1230. package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  1231. package/lib/molecule/review-header-steps/prop-types.js +4 -0
  1232. package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
  1233. package/lib/molecule/scope-content/index.js +25 -6
  1234. package/lib/molecule/scope-content/index.js.map +1 -1
  1235. package/lib/molecule/scope-tabs/index.js +16 -0
  1236. package/lib/molecule/scope-tabs/index.js.map +1 -1
  1237. package/lib/molecule/search-form/index.js +12 -0
  1238. package/lib/molecule/search-form/index.js.map +1 -1
  1239. package/lib/molecule/select-multiple/index.js +35 -2
  1240. package/lib/molecule/select-multiple/index.js.map +1 -1
  1241. package/lib/molecule/setup-cohort-item/index.js +17 -0
  1242. package/lib/molecule/setup-cohort-item/index.js.map +1 -1
  1243. package/lib/molecule/setup-section/index.d.ts +2 -0
  1244. package/lib/molecule/setup-section/index.d.ts.map +1 -1
  1245. package/lib/molecule/setup-section/index.js +15 -0
  1246. package/lib/molecule/setup-section/index.js.map +1 -1
  1247. package/lib/molecule/setup-sections/index.d.ts +2 -0
  1248. package/lib/molecule/setup-sections/index.js +10 -0
  1249. package/lib/molecule/setup-sections/index.js.map +1 -1
  1250. package/lib/molecule/setup-slide/index.d.ts +3 -0
  1251. package/lib/molecule/setup-slide/index.js +30 -0
  1252. package/lib/molecule/setup-slide/index.js.map +1 -1
  1253. package/lib/molecule/setup-slider/index.d.ts +3 -0
  1254. package/lib/molecule/setup-slider/index.js +11 -0
  1255. package/lib/molecule/setup-slider/index.js.map +1 -1
  1256. package/lib/molecule/share/index.js +29 -6
  1257. package/lib/molecule/share/index.js.map +1 -1
  1258. package/lib/molecule/skill-card/index.js +13 -0
  1259. package/lib/molecule/skill-card/index.js.map +1 -1
  1260. package/lib/molecule/skill-card/index.native.js +12 -0
  1261. package/lib/molecule/skill-card/index.native.js.map +1 -1
  1262. package/lib/molecule/skill-card/prop-types.d.ts +1 -1
  1263. package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
  1264. package/lib/molecule/skill-card/prop-types.js +3 -0
  1265. package/lib/molecule/skill-card/prop-types.js.map +1 -1
  1266. package/lib/molecule/ssmenu-list/index.js +6 -0
  1267. package/lib/molecule/ssmenu-list/index.js.map +1 -1
  1268. package/lib/molecule/subscription-freemium/index.js +7 -0
  1269. package/lib/molecule/subscription-freemium/index.js.map +1 -1
  1270. package/lib/molecule/subscription-premium/index.js +11 -0
  1271. package/lib/molecule/subscription-premium/index.js.map +1 -1
  1272. package/lib/molecule/table/index.js +28 -0
  1273. package/lib/molecule/table/index.js.map +1 -1
  1274. package/lib/molecule/teams-popin/index.js +10 -0
  1275. package/lib/molecule/teams-popin/index.js.map +1 -1
  1276. package/lib/molecule/theme-image/index.js +8 -0
  1277. package/lib/molecule/theme-image/index.js.map +1 -1
  1278. package/lib/molecule/title-and-checkbox-wrapper/index.js +12 -0
  1279. package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  1280. package/lib/molecule/titled-checkbox/index.js +11 -0
  1281. package/lib/molecule/titled-checkbox/index.js.map +1 -1
  1282. package/lib/molecule/unsubscribe/index.js +8 -0
  1283. package/lib/molecule/unsubscribe/index.js.map +1 -1
  1284. package/lib/molecule/vertical-tabs/index.js +14 -0
  1285. package/lib/molecule/vertical-tabs/index.js.map +1 -1
  1286. package/lib/molecule/video-iframe/index.js +19 -0
  1287. package/lib/molecule/video-iframe/index.js.map +1 -1
  1288. package/lib/molecule/video-player/index.js +31 -6
  1289. package/lib/molecule/video-player/index.js.map +1 -1
  1290. package/lib/molecule/video-player/jwplayer-prop-types.js +4 -0
  1291. package/lib/molecule/video-player/jwplayer-prop-types.js.map +1 -1
  1292. package/lib/molecule/video-player/jwplayer.js +36 -3
  1293. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  1294. package/lib/molecule/video-player/prop-types.js +4 -0
  1295. package/lib/molecule/video-player/prop-types.js.map +1 -1
  1296. package/lib/molecule/video-player/vimeo.js +46 -0
  1297. package/lib/molecule/video-player/vimeo.js.map +1 -1
  1298. package/lib/molecule/wizard-summary/index.js +28 -2
  1299. package/lib/molecule/wizard-summary/index.js.map +1 -1
  1300. package/lib/organism/accordion/container/index.js +18 -0
  1301. package/lib/organism/accordion/container/index.js.map +1 -1
  1302. package/lib/organism/accordion/coorp-manager/index.js +21 -0
  1303. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  1304. package/lib/organism/accordion/coorp-manager/part/index.js +19 -0
  1305. package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
  1306. package/lib/organism/accordion/part/index.js +12 -0
  1307. package/lib/organism/accordion/part/index.js.map +1 -1
  1308. package/lib/organism/accordion/toggler/index.js +20 -0
  1309. package/lib/organism/accordion/toggler/index.js.map +1 -1
  1310. package/lib/organism/brand-analytics/analytics-popin.js +14 -0
  1311. package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
  1312. package/lib/organism/brand-analytics/index.js +21 -0
  1313. package/lib/organism/brand-analytics/index.js.map +1 -1
  1314. package/lib/organism/brand-dashboard/index.js +10 -0
  1315. package/lib/organism/brand-dashboard/index.js.map +1 -1
  1316. package/lib/organism/brand-form/index.d.ts +8 -0
  1317. package/lib/organism/brand-form/index.js +18 -0
  1318. package/lib/organism/brand-form/index.js.map +1 -1
  1319. package/lib/organism/brand-table/index.js +12 -0
  1320. package/lib/organism/brand-table/index.js.map +1 -1
  1321. package/lib/organism/brand-upload/index.js +13 -0
  1322. package/lib/organism/brand-upload/index.js.map +1 -1
  1323. package/lib/organism/cards-grid/index.js +9 -0
  1324. package/lib/organism/cards-grid/index.js.map +1 -1
  1325. package/lib/organism/cart/index.js +11 -0
  1326. package/lib/organism/cart/index.js.map +1 -1
  1327. package/lib/organism/content-translation/index.js +14 -0
  1328. package/lib/organism/content-translation/index.js.map +1 -1
  1329. package/lib/organism/course-selection/index.js +18 -0
  1330. package/lib/organism/course-selection/index.js.map +1 -1
  1331. package/lib/organism/discussion/index.js +14 -2
  1332. package/lib/organism/discussion/index.js.map +1 -1
  1333. package/lib/organism/get-the-app/index.js +21 -0
  1334. package/lib/organism/get-the-app/index.js.map +1 -1
  1335. package/lib/organism/grid-list/index.js +6 -0
  1336. package/lib/organism/grid-list/index.js.map +1 -1
  1337. package/lib/organism/header/index.js +9 -0
  1338. package/lib/organism/header/index.js.map +1 -1
  1339. package/lib/organism/header-v2/index.native.js +17 -3
  1340. package/lib/organism/header-v2/index.native.js.map +1 -1
  1341. package/lib/organism/hero/index.js +11 -0
  1342. package/lib/organism/hero/index.js.map +1 -1
  1343. package/lib/organism/list-item/index.js +12 -0
  1344. package/lib/organism/list-item/index.js.map +1 -1
  1345. package/lib/organism/list-items/index.js +10 -0
  1346. package/lib/organism/list-items/index.js.map +1 -1
  1347. package/lib/organism/mobile-navigation/index.native.d.ts +2 -2
  1348. package/lib/organism/mobile-navigation/index.native.d.ts.map +1 -1
  1349. package/lib/organism/mobile-navigation/index.native.js +16 -0
  1350. package/lib/organism/mobile-navigation/index.native.js.map +1 -1
  1351. package/lib/organism/mooc/image-slider/index.js +9 -0
  1352. package/lib/organism/mooc/image-slider/index.js.map +1 -1
  1353. package/lib/organism/mooc-footer/index.js +22 -10
  1354. package/lib/organism/mooc-footer/index.js.map +1 -1
  1355. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  1356. package/lib/organism/mooc-header/index.js +59 -1
  1357. package/lib/organism/mooc-header/index.js.map +1 -1
  1358. package/lib/organism/podcast-popin-intro/index.native.d.ts +2 -2
  1359. package/lib/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
  1360. package/lib/organism/podcast-popin-intro/index.native.js +15 -0
  1361. package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
  1362. package/lib/organism/popin/index.js +12 -0
  1363. package/lib/organism/popin/index.js.map +1 -1
  1364. package/lib/organism/resource-browser/index.js +16 -0
  1365. package/lib/organism/resource-browser/index.js.map +1 -1
  1366. package/lib/organism/review-congrats/index.js +16 -1
  1367. package/lib/organism/review-congrats/index.js.map +1 -1
  1368. package/lib/organism/review-congrats/index.native.js +22 -2
  1369. package/lib/organism/review-congrats/index.native.js.map +1 -1
  1370. package/lib/organism/review-congrats/prop-types.d.ts +1 -1
  1371. package/lib/organism/review-congrats/prop-types.d.ts.map +1 -1
  1372. package/lib/organism/review-congrats/prop-types.js +5 -0
  1373. package/lib/organism/review-congrats/prop-types.js.map +1 -1
  1374. package/lib/organism/review-header/index.js +10 -0
  1375. package/lib/organism/review-header/index.js.map +1 -1
  1376. package/lib/organism/review-header/index.native.js +10 -0
  1377. package/lib/organism/review-header/index.native.js.map +1 -1
  1378. package/lib/organism/review-header/types.d.ts +1 -1
  1379. package/lib/organism/review-header/types.d.ts.map +1 -1
  1380. package/lib/organism/review-header/types.js +4 -0
  1381. package/lib/organism/review-header/types.js.map +1 -1
  1382. package/lib/organism/review-no-skills/index.js +7 -0
  1383. package/lib/organism/review-no-skills/index.js.map +1 -1
  1384. package/lib/organism/review-no-skills/index.native.js +12 -0
  1385. package/lib/organism/review-no-skills/index.native.js.map +1 -1
  1386. package/lib/organism/review-no-skills/prop-types.d.ts +1 -1
  1387. package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -1
  1388. package/lib/organism/review-no-skills/prop-types.js +3 -0
  1389. package/lib/organism/review-no-skills/prop-types.js.map +1 -1
  1390. package/lib/organism/review-skills/index.js +8 -0
  1391. package/lib/organism/review-skills/index.js.map +1 -1
  1392. package/lib/organism/review-skills/index.native.js +8 -0
  1393. package/lib/organism/review-skills/index.native.js.map +1 -1
  1394. package/lib/organism/review-skills/prop-types.d.ts +1 -1
  1395. package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
  1396. package/lib/organism/review-skills/prop-types.js +4 -0
  1397. package/lib/organism/review-skills/prop-types.js.map +1 -1
  1398. package/lib/organism/review-slide/index.js +31 -8
  1399. package/lib/organism/review-slide/index.js.map +1 -1
  1400. package/lib/organism/review-slide/index.native.js +24 -3
  1401. package/lib/organism/review-slide/index.native.js.map +1 -1
  1402. package/lib/organism/review-slide/prop-types.d.ts +5 -5
  1403. package/lib/organism/review-slide/prop-types.d.ts.map +1 -1
  1404. package/lib/organism/review-slide/prop-types.js +7 -1
  1405. package/lib/organism/review-slide/prop-types.js.map +1 -1
  1406. package/lib/organism/review-stacked-slides/index.js +18 -2
  1407. package/lib/organism/review-stacked-slides/index.js.map +1 -1
  1408. package/lib/organism/review-stacked-slides/index.native.js +20 -5
  1409. package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
  1410. package/lib/organism/review-stacked-slides/prop-types.d.ts +1 -1
  1411. package/lib/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
  1412. package/lib/organism/review-stacked-slides/prop-types.js +6 -0
  1413. package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
  1414. package/lib/organism/rewards-form/index.js +14 -3
  1415. package/lib/organism/rewards-form/index.js.map +1 -1
  1416. package/lib/organism/search-and-chips-results/index.js +15 -0
  1417. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  1418. package/lib/organism/settings/index.js +25 -5
  1419. package/lib/organism/settings/index.js.map +1 -1
  1420. package/lib/organism/setup-header/index.js +15 -0
  1421. package/lib/organism/setup-header/index.js.map +1 -1
  1422. package/lib/organism/sidebar/index.js +58 -8
  1423. package/lib/organism/sidebar/index.js.map +1 -1
  1424. package/lib/organism/slider/index.js +24 -2
  1425. package/lib/organism/slider/index.js.map +1 -1
  1426. package/lib/organism/user-preferences/index.d.ts +2 -0
  1427. package/lib/organism/user-preferences/index.js +21 -5
  1428. package/lib/organism/user-preferences/index.js.map +1 -1
  1429. package/lib/organism/wizard-contents/index.d.ts +8 -0
  1430. package/lib/organism/wizard-contents/index.js +28 -0
  1431. package/lib/organism/wizard-contents/index.js.map +1 -1
  1432. package/lib/template/activity/engine-stars.js +27 -5
  1433. package/lib/template/activity/engine-stars.js.map +1 -1
  1434. package/lib/template/activity/index.d.ts +12 -11
  1435. package/lib/template/activity/index.d.ts.map +1 -1
  1436. package/lib/template/activity/index.js +32 -5
  1437. package/lib/template/activity/index.js.map +1 -1
  1438. package/lib/template/activity/progression-item.js +17 -2
  1439. package/lib/template/activity/progression-item.js.map +1 -1
  1440. package/lib/template/activity/stars-summary.js +22 -0
  1441. package/lib/template/activity/stars-summary.js.map +1 -1
  1442. package/lib/template/app-player/loading/index.d.ts +2 -0
  1443. package/lib/template/app-player/loading/index.js +8 -0
  1444. package/lib/template/app-player/loading/index.js.map +1 -1
  1445. package/lib/template/app-player/player/index.d.ts +4 -0
  1446. package/lib/template/app-player/player/index.js +9 -0
  1447. package/lib/template/app-player/player/index.js.map +1 -1
  1448. package/lib/template/app-player/player/slides/footer/index.js +20 -0
  1449. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  1450. package/lib/template/app-player/player/slides/header/index.js +11 -1
  1451. package/lib/template/app-player/player/slides/header/index.js.map +1 -1
  1452. package/lib/template/app-player/player/slides/header/learner.js +20 -4
  1453. package/lib/template/app-player/player/slides/header/learner.js.map +1 -1
  1454. package/lib/template/app-player/player/slides/header/lives.js +9 -0
  1455. package/lib/template/app-player/player/slides/header/lives.js.map +1 -1
  1456. package/lib/template/app-player/player/slides/header/microlearning.js +12 -2
  1457. package/lib/template/app-player/player/slides/header/microlearning.js.map +1 -1
  1458. package/lib/template/app-player/player/slides/index.d.ts +2 -0
  1459. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  1460. package/lib/template/app-player/player/slides/index.js +89 -21
  1461. package/lib/template/app-player/player/slides/index.js.map +1 -1
  1462. package/lib/template/app-player/popin-correction/index.d.ts +2 -0
  1463. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  1464. package/lib/template/app-player/popin-correction/index.js +50 -10
  1465. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  1466. package/lib/template/app-player/popin-end/index.d.ts +2 -0
  1467. package/lib/template/app-player/popin-end/index.js +12 -0
  1468. package/lib/template/app-player/popin-end/index.js.map +1 -1
  1469. package/lib/template/app-player/popin-end/summary.js +69 -22
  1470. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  1471. package/lib/template/app-player/popin-header/index.js +67 -12
  1472. package/lib/template/app-player/popin-header/index.js.map +1 -1
  1473. package/lib/template/app-player/popin-no-access/index.js +6 -0
  1474. package/lib/template/app-player/popin-no-access/index.js.map +1 -1
  1475. package/lib/template/app-review/demo-ts/index.js +5 -0
  1476. package/lib/template/app-review/demo-ts/index.js.map +1 -1
  1477. package/lib/template/app-review/demo-ts/index.native.js +5 -0
  1478. package/lib/template/app-review/demo-ts/index.native.js.map +1 -1
  1479. package/lib/template/app-review/demo-ts/typings.d.ts +1 -1
  1480. package/lib/template/app-review/demo-ts/typings.d.ts.map +1 -1
  1481. package/lib/template/app-review/demo-ts/typings.js +3 -0
  1482. package/lib/template/app-review/demo-ts/typings.js.map +1 -1
  1483. package/lib/template/app-review/index.d.ts +2 -0
  1484. package/lib/template/app-review/index.d.ts.map +1 -1
  1485. package/lib/template/app-review/index.js +8 -0
  1486. package/lib/template/app-review/index.js.map +1 -1
  1487. package/lib/template/app-review/index.native.js +14 -2
  1488. package/lib/template/app-review/index.native.js.map +1 -1
  1489. package/lib/template/app-review/onboarding/index.js +3 -0
  1490. package/lib/template/app-review/onboarding/index.js.map +1 -1
  1491. package/lib/template/app-review/onboarding/index.native.js +3 -0
  1492. package/lib/template/app-review/onboarding/index.native.js.map +1 -1
  1493. package/lib/template/app-review/player/background-review.js +5 -0
  1494. package/lib/template/app-review/player/background-review.js.map +1 -1
  1495. package/lib/template/app-review/player/index.js +13 -0
  1496. package/lib/template/app-review/player/index.js.map +1 -1
  1497. package/lib/template/app-review/player/index.native.js +16 -0
  1498. package/lib/template/app-review/player/index.native.js.map +1 -1
  1499. package/lib/template/app-review/player/prop-types.d.ts +3 -1
  1500. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  1501. package/lib/template/app-review/player/prop-types.js +8 -0
  1502. package/lib/template/app-review/player/prop-types.js.map +1 -1
  1503. package/lib/template/app-review/prop-types.d.ts +4 -2
  1504. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  1505. package/lib/template/app-review/prop-types.js +5 -0
  1506. package/lib/template/app-review/prop-types.js.map +1 -1
  1507. package/lib/template/app-review/skills/index.js +10 -0
  1508. package/lib/template/app-review/skills/index.js.map +1 -1
  1509. package/lib/template/app-review/skills/index.native.js +16 -0
  1510. package/lib/template/app-review/skills/index.native.js.map +1 -1
  1511. package/lib/template/app-review/skills/prop-types.d.ts +1 -1
  1512. package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
  1513. package/lib/template/app-review/skills/prop-types.js +4 -0
  1514. package/lib/template/app-review/skills/prop-types.js.map +1 -1
  1515. package/lib/template/app-review/template-context.d.ts +5 -5
  1516. package/lib/template/app-review/template-context.d.ts.map +1 -1
  1517. package/lib/template/app-review/template-context.js +15 -0
  1518. package/lib/template/app-review/template-context.js.map +1 -1
  1519. package/lib/template/back-office/brand-create/index.js +8 -0
  1520. package/lib/template/back-office/brand-create/index.js.map +1 -1
  1521. package/lib/template/back-office/brand-list/index.js +26 -8
  1522. package/lib/template/back-office/brand-list/index.js.map +1 -1
  1523. package/lib/template/back-office/brand-update/index.d.ts +18 -0
  1524. package/lib/template/back-office/brand-update/index.js +51 -4
  1525. package/lib/template/back-office/brand-update/index.js.map +1 -1
  1526. package/lib/template/back-office/dashboard-preview/dashboard-popin.js +12 -0
  1527. package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
  1528. package/lib/template/back-office/dashboard-preview/index.js +30 -0
  1529. package/lib/template/back-office/dashboard-preview/index.js.map +1 -1
  1530. package/lib/template/back-office/layout/index.js +8 -0
  1531. package/lib/template/back-office/layout/index.js.map +1 -1
  1532. package/lib/template/battle-requests/index.js +12 -2
  1533. package/lib/template/battle-requests/index.js.map +1 -1
  1534. package/lib/template/cockpit/jw-uploader/index.js +11 -0
  1535. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  1536. package/lib/template/common/authors/index.js +18 -2
  1537. package/lib/template/common/authors/index.js.map +1 -1
  1538. package/lib/template/common/coorp-header/content.js +6 -0
  1539. package/lib/template/common/coorp-header/content.js.map +1 -1
  1540. package/lib/template/common/coorp-header/index.js +7 -0
  1541. package/lib/template/common/coorp-header/index.js.map +1 -1
  1542. package/lib/template/common/dashboard/index.d.ts +2 -0
  1543. package/lib/template/common/dashboard/index.js +27 -0
  1544. package/lib/template/common/dashboard/index.js.map +1 -1
  1545. package/lib/template/common/discipline/index.js +20 -0
  1546. package/lib/template/common/discipline/index.js.map +1 -1
  1547. package/lib/template/common/search-page/index.d.ts +3 -0
  1548. package/lib/template/common/search-page/index.d.ts.map +1 -1
  1549. package/lib/template/common/search-page/index.js +20 -3
  1550. package/lib/template/common/search-page/index.js.map +1 -1
  1551. package/lib/template/external-course/index.js +25 -2
  1552. package/lib/template/external-course/index.js.map +1 -1
  1553. package/lib/template/review-dashboard-skills/index.js +8 -0
  1554. package/lib/template/review-dashboard-skills/index.js.map +1 -1
  1555. package/lib/template/teams-dashboard/index.js +14 -0
  1556. package/lib/template/teams-dashboard/index.js.map +1 -1
  1557. package/lib/util/bubbling.js +2 -0
  1558. package/lib/util/bubbling.js.map +1 -1
  1559. package/lib/util/build-query-string.d.ts +1 -1
  1560. package/lib/util/build-query-string.d.ts.map +1 -1
  1561. package/lib/util/build-query-string.js +4 -0
  1562. package/lib/util/build-query-string.js.map +1 -1
  1563. package/lib/util/button-icons.js +2 -0
  1564. package/lib/util/button-icons.js.map +1 -1
  1565. package/lib/util/closest-step.js +7 -0
  1566. package/lib/util/closest-step.js.map +1 -1
  1567. package/lib/util/constants.js.map +1 -1
  1568. package/lib/util/external-content.js +5 -0
  1569. package/lib/util/external-content.js.map +1 -1
  1570. package/lib/util/get-class-state.js +3 -0
  1571. package/lib/util/get-class-state.js.map +1 -1
  1572. package/lib/util/get-clean-uri.js +2 -0
  1573. package/lib/util/get-clean-uri.js.map +1 -1
  1574. package/lib/util/get-resized-image.js +11 -0
  1575. package/lib/util/get-resized-image.js.map +1 -1
  1576. package/lib/util/get-shadow-box-color-from-primary.js +3 -0
  1577. package/lib/util/get-shadow-box-color-from-primary.js.map +1 -1
  1578. package/lib/util/image.js +5 -0
  1579. package/lib/util/image.js.map +1 -1
  1580. package/lib/util/navigation.js +13 -1
  1581. package/lib/util/navigation.js.map +1 -1
  1582. package/lib/util/parse-template-string.js +9 -0
  1583. package/lib/util/parse-template-string.js.map +1 -1
  1584. package/lib/util/proptypes.js +11 -0
  1585. package/lib/util/proptypes.js.map +1 -1
  1586. package/lib/util/render-with-context.js +22 -8
  1587. package/lib/util/render-with-context.js.map +1 -1
  1588. package/lib/util/shallow-compare.js +4 -0
  1589. package/lib/util/shallow-compare.js.map +1 -1
  1590. package/lib/variables/analytics.d.ts +2 -2
  1591. package/lib/variables/analytics.d.ts.map +1 -1
  1592. package/lib/variables/analytics.js.map +1 -1
  1593. package/lib/variables/brand.native.d.ts +1 -1
  1594. package/lib/variables/brand.native.d.ts.map +1 -1
  1595. package/lib/variables/brand.native.js.map +1 -1
  1596. package/lib/variables/colors.d.ts +1 -1
  1597. package/lib/variables/colors.d.ts.map +1 -1
  1598. package/lib/variables/colors.js.map +1 -1
  1599. package/lib/variables/default-mobile-translations.d.ts +2 -2
  1600. package/lib/variables/default-mobile-translations.d.ts.map +1 -1
  1601. package/lib/variables/default-mobile-translations.js.map +1 -1
  1602. package/lib/variables/shadow.d.ts +1 -1
  1603. package/lib/variables/shadow.d.ts.map +1 -1
  1604. package/lib/variables/shadow.js +1 -0
  1605. package/lib/variables/shadow.js.map +1 -1
  1606. package/lib/variables/theme.native.d.ts +3 -3
  1607. package/lib/variables/theme.native.d.ts.map +1 -1
  1608. package/lib/variables/theme.native.js +2 -0
  1609. package/lib/variables/theme.native.js.map +1 -1
  1610. package/lib/variables/vibration.d.ts +2 -2
  1611. package/lib/variables/vibration.d.ts.map +1 -1
  1612. package/lib/variables/vibration.js.map +1 -1
  1613. package/package.json +2 -2
@@ -1,11 +1,14 @@
1
1
  import _clamp from "lodash/fp/clamp";
2
2
  import _set from "lodash/fp/set";
3
3
  import _noop from "lodash/fp/noop";
4
+
4
5
  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); }
6
+
5
7
  import React from 'react';
6
8
  import PropTypes from 'prop-types';
7
9
  import Handle from './handle';
8
10
  import style from './style.css';
11
+
9
12
  const valueOnTrack = (track, x) => {
10
13
  const {
11
14
  left,
@@ -13,6 +16,7 @@ const valueOnTrack = (track, x) => {
13
16
  } = track.getBoundingClientRect();
14
17
  return _clamp(0, 1, (x - left) / (right - left));
15
18
  };
19
+
16
20
  const extractStateFromProps = props => {
17
21
  const {
18
22
  multi = false,
@@ -23,6 +27,7 @@ const extractStateFromProps = props => {
23
27
  value: multi ? value : [0, value]
24
28
  };
25
29
  };
30
+
26
31
  const RenderHandles = props => {
27
32
  const {
28
33
  left,
@@ -54,6 +59,7 @@ const RenderHandles = props => {
54
59
  onPanEnd: onHandleMaxChangeEnd
55
60
  })));
56
61
  };
62
+
57
63
  RenderHandles.propTypes = process.env.NODE_ENV !== "production" ? {
58
64
  left: PropTypes.number,
59
65
  right: PropTypes.number,
@@ -64,6 +70,7 @@ RenderHandles.propTypes = process.env.NODE_ENV !== "production" ? {
64
70
  onHandleMaxChange: PropTypes.func,
65
71
  onHandleMaxChangeEnd: PropTypes.func
66
72
  } : {};
73
+
67
74
  class Range extends React.Component {
68
75
  static getDerivedStateFromProps(props, state) {
69
76
  const {
@@ -72,6 +79,7 @@ class Range extends React.Component {
72
79
  if (pending) return null;
73
80
  return extractStateFromProps(props);
74
81
  }
82
+
75
83
  constructor(props, context) {
76
84
  super(props, context);
77
85
  this.state = _extends({}, extractStateFromProps(props), {
@@ -84,38 +92,46 @@ class Range extends React.Component {
84
92
  this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);
85
93
  this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);
86
94
  }
95
+
87
96
  setRefTrack(track) {
88
97
  this.track = track;
89
98
  }
99
+
90
100
  handleMinChange(e) {
91
101
  e.srcEvent.stopPropagation();
92
102
  e.srcEvent.preventDefault();
93
103
  const newValue = valueOnTrack(this.track, e.center.x);
94
104
  return this.handleChange(newValue, 0, true);
95
105
  }
106
+
96
107
  handleMaxChange(e) {
97
108
  e.srcEvent.stopPropagation();
98
109
  e.srcEvent.preventDefault();
99
110
  const newValue = valueOnTrack(this.track, e.center.x);
100
111
  return this.handleChange(newValue, 1, true);
101
112
  }
113
+
102
114
  handleMinChangeEnd(e) {
103
115
  e.srcEvent.stopPropagation();
104
116
  e.srcEvent.preventDefault();
105
117
  const newValue = valueOnTrack(this.track, e.center.x);
106
118
  return this.handleChange(newValue, 0, false);
107
119
  }
120
+
108
121
  handleMaxChangeEnd(e) {
109
122
  e.srcEvent.stopPropagation();
110
123
  e.srcEvent.preventDefault();
111
124
  const newValue = valueOnTrack(this.track, e.center.x);
112
125
  return this.handleChange(newValue, 1, false);
113
126
  }
127
+
114
128
  handleChange(value, valueIndex, pending) {
115
129
  const {
116
130
  value: prevValue
117
131
  } = this.state;
132
+
118
133
  const newValue = _set(valueIndex, value, prevValue);
134
+
119
135
  const [minValue, maxValue] = newValue;
120
136
  const nextValue = minValue > maxValue ? prevValue : newValue;
121
137
  this.triggerChange(nextValue, pending);
@@ -124,6 +140,7 @@ class Range extends React.Component {
124
140
  value: pending ? nextValue : extractStateFromProps(this.props).value
125
141
  });
126
142
  }
143
+
127
144
  triggerChange(newValues, pending) {
128
145
  const {
129
146
  onChange = _noop,
@@ -133,6 +150,7 @@ class Range extends React.Component {
133
150
  const handle = pending ? onChange : onChangeEnd;
134
151
  return handle(multi ? newValues : newValues[1]);
135
152
  }
153
+
136
154
  handleClick(e) {
137
155
  e.stopPropagation();
138
156
  e.preventDefault();
@@ -143,13 +161,16 @@ class Range extends React.Component {
143
161
  const x = e.clientX;
144
162
  const newValue = valueOnTrack(this.track, x);
145
163
  if (!multi) return this.handleChange(newValue, 1, false);
164
+
146
165
  if (left === right) {
147
166
  const isClickToTheLeft = left - newValue > 0;
148
167
  return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);
149
168
  }
169
+
150
170
  const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;
151
171
  return this.handleChange(newValue, closestHandle, false);
152
172
  }
173
+
153
174
  render() {
154
175
  const {
155
176
  multi = false,
@@ -186,7 +207,9 @@ class Range extends React.Component {
186
207
  onHandleMaxChangeEnd: this.handleMaxChangeEnd
187
208
  })));
188
209
  }
210
+
189
211
  }
212
+
190
213
  Range.propTypes = process.env.NODE_ENV !== "production" ? {
191
214
  onChange: PropTypes.func,
192
215
  onChangeEnd: PropTypes.func,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Handle","style","valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","RenderHandles","pending","onHandleMinChange","onHandleMinChangeEnd","onHandleMaxChange","onHandleMaxChangeEnd","handle","animatedHandle","propTypes","number","bool","func","Range","Component","getDerivedStateFromProps","state","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","clientX","isClickToTheLeft","closestHandle","Math","abs","render","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","oneOfType","arrayOf"],"sources":["../../../src/atom/range/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, set, clamp} from 'lodash/fp';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nconst RenderHandles = props => {\n const {\n left,\n right,\n multi = false,\n pending,\n onHandleMinChange,\n onHandleMinChangeEnd,\n onHandleMaxChange,\n onHandleMaxChangeEnd\n } = props;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={onHandleMinChange} onPanEnd={onHandleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={onHandleMaxChange} onPanEnd={onHandleMaxChangeEnd} />\n </span>\n </div>\n );\n};\n\nRenderHandles.propTypes = {\n left: PropTypes.number,\n right: PropTypes.number,\n multi: PropTypes.bool,\n pending: PropTypes.bool,\n onHandleMinChange: PropTypes.func,\n onHandleMinChangeEnd: PropTypes.func,\n onHandleMaxChange: PropTypes.func,\n onHandleMaxChangeEnd: PropTypes.func\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n render() {\n const {\n multi = false,\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: '#9999A8',\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n <RenderHandles\n left={left}\n right={right}\n pending={pending}\n multi={multi}\n onHandleMinChange={this.handleMinChange}\n onHandleMinChangeEnd={this.handleMinChangeEnd}\n onHandleMaxChange={this.handleMaxChange}\n onHandleMaxChangeEnd={this.handleMaxChangeEnd}\n />\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAG,CAACC,KAAK,EAAEC,CAAC,KAAK;EACjC,MAAM;IAACC,IAAI;IAAEC;EAAK,CAAC,GAA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K,CAACE,KAAM;MAAC,aAAU,aAAa;MAAC,GAAG,EAAE,IAAI,CAAC6B;IAAY,EAAG,eAC9E;MAAK,SAAS,EAAEnB,OAAO,GAAGZ,KAAK,CAACkE,IAAI,GAAGlE,KAAK,CAACmE,YAAa;MAAC,KAAK,EAAEN;IAAU,EAAG,eAC/E,oBAAC,aAAa;MACZ,IAAI,EAAEzD,IAAK;MACX,KAAK,EAAEC,KAAM;MACb,OAAO,EAAEO,OAAQ;MACjB,KAAK,EAAEH,KAAM;MACb,iBAAiB,EAAE,IAAI,CAACuB,eAAgB;MACxC,oBAAoB,EAAE,IAAI,CAACE,kBAAmB;MAC9C,iBAAiB,EAAE,IAAI,CAACD,eAAgB;MACxC,oBAAoB,EAAE,IAAI,CAACE;IAAmB,EAC9C,CACE,CACF;EAEV;AACF;AA/IMZ,KAAK,CACFJ,SAAS,2CAAG;EACjBgC,QAAQ,EAAErD,SAAS,CAACwB,IAAI;EACxB8B,WAAW,EAAEtD,SAAS,CAACwB,IAAI;EAC3Bb,KAAK,EAAEX,SAAS,CAACuB,IAAI;EACrB;EACAX,KAAK,EAAEZ,SAAS,CAACsE,SAAS,CAAC,CAACtE,SAAS,CAACsB,MAAM,EAAEtB,SAAS,CAACuE,OAAO,CAACvE,SAAS,CAACsB,MAAM,CAAC,CAAC;AACpF,CAAC;AA0IH,eAAeG,KAAK"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Handle","style","valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","RenderHandles","pending","onHandleMinChange","onHandleMinChangeEnd","onHandleMaxChange","onHandleMaxChangeEnd","handle","animatedHandle","propTypes","number","bool","func","Range","Component","getDerivedStateFromProps","state","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","clientX","isClickToTheLeft","closestHandle","Math","abs","render","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","oneOfType","arrayOf"],"sources":["../../../src/atom/range/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, set, clamp} from 'lodash/fp';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nconst RenderHandles = props => {\n const {\n left,\n right,\n multi = false,\n pending,\n onHandleMinChange,\n onHandleMinChangeEnd,\n onHandleMaxChange,\n onHandleMaxChangeEnd\n } = props;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={onHandleMinChange} onPanEnd={onHandleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={onHandleMaxChange} onPanEnd={onHandleMaxChangeEnd} />\n </span>\n </div>\n );\n};\n\nRenderHandles.propTypes = {\n left: PropTypes.number,\n right: PropTypes.number,\n multi: PropTypes.bool,\n pending: PropTypes.bool,\n onHandleMinChange: PropTypes.func,\n onHandleMinChangeEnd: PropTypes.func,\n onHandleMaxChange: PropTypes.func,\n onHandleMaxChangeEnd: PropTypes.func\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n render() {\n const {\n multi = false,\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: '#9999A8',\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n <RenderHandles\n left={left}\n right={right}\n pending={pending}\n multi={multi}\n onHandleMinChange={this.handleMinChange}\n onHandleMinChangeEnd={this.handleMinChangeEnd}\n onHandleMaxChange={this.handleMaxChange}\n onHandleMaxChangeEnd={this.handleMaxChangeEnd}\n />\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAG,CAACC,KAAD,EAAQC,CAAR,KAAc;EACjC,MAAM;IAACC,IAAD;IAAOC;EAAP,IAAgBH,KAAK,CAACI,qBAAN,EAAtB;EACA,OAAO,OAAM,CAAN,EAAS,CAAT,EAAY,CAACH,CAAC,GAAGC,IAAL,KAAcC,KAAK,GAAGD,IAAtB,CAAZ,CAAP;AACD,CAHD;;AAKA,MAAMG,qBAAqB,GAAGC,KAAK,IAAI;EACrC,MAAM;IAACC,KAAK,GAAG,KAAT;IAAgBC,KAAK,GAAGD,KAAK,GAAG,CAAC,CAAD,EAAI,CAAJ,CAAH,GAAY;EAAzC,IAA8CD,KAApD;E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iC;;AAA9BZ,K,CACGJ,S,2CAAY;EACjBgC,QAAQ,EAAErD,SAAS,CAACwB,IADH;EAEjB8B,WAAW,EAAEtD,SAAS,CAACwB,IAFN;EAGjBb,KAAK,EAAEX,SAAS,CAACuB,IAHA;EAIjB;EACAX,KAAK,EAAEZ,SAAS,CAACsE,SAAV,CAAoB,CAACtE,SAAS,CAACsB,MAAX,EAAmBtB,SAAS,CAACuE,OAAV,CAAkBvE,SAAS,CAACsB,MAA5B,CAAnB,CAApB;AALU,C;AAgJrB,eAAeG,KAAf"}
@@ -20,6 +20,7 @@ const TYPES = {
20
20
  icon: PlayIcon
21
21
  }
22
22
  };
23
+
23
24
  const ResourceMiniature = (props, context) => {
24
25
  const {
25
26
  skin
@@ -32,8 +33,11 @@ const ResourceMiniature = (props, context) => {
32
33
  selected = false
33
34
  } = props;
34
35
  const descriptionClassName = selected ? style.selectedDescription : style.description;
36
+
35
37
  const white = _get('common.white', skin);
38
+
36
39
  const primary = _get('common.primary', skin);
40
+
37
41
  const posterOutlineColor = selected ? primary : white;
38
42
  const Icon = TYPES[type].icon;
39
43
  return /*#__PURE__*/React.createElement("div", {
@@ -54,14 +58,14 @@ const ResourceMiniature = (props, context) => {
54
58
  color: white,
55
59
  className: style.icon
56
60
  }) : null), /*#__PURE__*/React.createElement("div", {
57
- className: classnames(descriptionClassName, style.innerHTML)
58
- // eslint-disable-next-line react/no-danger
61
+ className: classnames(descriptionClassName, style.innerHTML) // eslint-disable-next-line react/no-danger
59
62
  ,
60
63
  dangerouslySetInnerHTML: {
61
64
  __html: description
62
65
  }
63
66
  }));
64
67
  };
68
+
65
69
  ResourceMiniature.propTypes = process.env.NODE_ENV !== "production" ? {
66
70
  type: PropTypes.oneOf(_keys(TYPES)),
67
71
  selected: PropTypes.bool,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","NovaSolidAudioAudioControlPlay","PlayIcon","NovaLineFilesOfficeFileOfficePdf","PDFIcon","NovaCompositionCoorpacademyMicrophone","PodcastIcon","classnames","Provider","style","TYPES","pdf","icon","audio","video","ResourceMiniature","props","context","skin","type","description","poster","onClick","handleOnClick","selected","descriptionClassName","selectedDescription","white","primary","posterOutlineColor","Icon","posterWrapper","borderColor","backgroundImage","innerHTML","__html","propTypes","oneOf","bool","string","func","contextTypes","childContextTypes"],"sources":["../../../src/atom/resource-miniature/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaSolidAudioAudioControlPlay as PlayIcon,\n NovaLineFilesOfficeFileOfficePdf as PDFIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst TYPES = {\n pdf: {style: style.pdf, icon: PDFIcon},\n audio: {style: style.audio, icon: PodcastIcon},\n video: {style: style.video, icon: PlayIcon}\n};\n\nconst ResourceMiniature = (props, context) => {\n const {skin} = context;\n const {type, description, poster, onClick: handleOnClick, selected = false} = props;\n const descriptionClassName = selected ? style.selectedDescription : style.description;\n const white = get('common.white', skin);\n const primary = get('common.primary', skin);\n const posterOutlineColor = selected ? primary : white;\n const Icon = TYPES[type].icon;\n return (\n <div className={TYPES[type].style} onClick={handleOnClick} data-type={type}>\n <div className={style.posterWrapper} style={{borderColor: posterOutlineColor}}>\n <div className={style.poster} style={{backgroundImage: `url(${poster})`}} />\n {!selected ? <Icon color={white} className={style.icon} /> : null}\n </div>\n <div\n className={classnames(descriptionClassName, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: description}}\n />\n </div>\n );\n};\n\nResourceMiniature.propTypes = {\n type: PropTypes.oneOf(keys(TYPES)),\n selected: PropTypes.bool,\n description: PropTypes.string,\n poster: PropTypes.string,\n onClick: PropTypes.func\n};\n\nResourceMiniature.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default ResourceMiniature;\n"],"mappings":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AAWJ;EAAK,gBACzE;IAAK,SAAS,EAAEV,KAAK,CAACsB,aAAc;IAAC,KAAK,EAAE;MAACC,WAAW,EAAEH;IAAkB;EAAE,gBAC5E;IAAK,SAAS,EAAEpB,KAAK,CAACY,MAAO;IAAC,KAAK,EAAE;MAACY,eAAe,EAAG,OAAMZ,MAAO;IAAE;EAAE,EAAG,EAC3E,CAACG,QAAQ,gBAAG,oBAAC,IAAI;IAAC,KAAK,EAAEG,KAAM;IAAC,SAAS,EAAElB,KAAK,CAACG;EAAK,EAAG,GAAG,IAAI,CAC7D,eACN;IACE,SAAS,EAAEL,UAAU,CAACkB,oBAAoB,EAAEhB,KAAK,CAACyB,SAAS;IAC3D;IAAA;IACA,uBAAuB,EAAE;MAACC,MAAM,EAAEf;IAAW;EAAE,EAC/C,CACE;AAEV,CAAC;AAEDL,iBAAiB,CAACqB,SAAS,2CAAG;EAC5BjB,IAAI,EAAEnB,SAAS,CAACqC,KAAK,CAAC,MAAK3B,KAAK,CAAC,CAAC;EAClCc,QAAQ,EAAExB,SAAS,CAACsC,IAAI;EACxBlB,WAAW,EAAEpB,SAAS,CAACuC,MAAM;EAC7BlB,MAAM,EAAErB,SAAS,CAACuC,MAAM;EACxBjB,OAAO,EAAEtB,SAAS,CAACwC;AACrB,CAAC;AAEDzB,iBAAiB,CAAC0B,YAAY,GAAG;EAC/BvB,IAAI,EAAEV,QAAQ,CAACkC,iBAAiB,CAACxB;AACnC,CAAC;AAED,eAAeH,iBAAiB"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","NovaSolidAudioAudioControlPlay","PlayIcon","NovaLineFilesOfficeFileOfficePdf","PDFIcon","NovaCompositionCoorpacademyMicrophone","PodcastIcon","classnames","Provider","style","TYPES","pdf","icon","audio","video","ResourceMiniature","props","context","skin","type","description","poster","onClick","handleOnClick","selected","descriptionClassName","selectedDescription","white","primary","posterOutlineColor","Icon","posterWrapper","borderColor","backgroundImage","innerHTML","__html","propTypes","oneOf","bool","string","func","contextTypes","childContextTypes"],"sources":["../../../src/atom/resource-miniature/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaSolidAudioAudioControlPlay as PlayIcon,\n NovaLineFilesOfficeFileOfficePdf as PDFIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst TYPES = {\n pdf: {style: style.pdf, icon: PDFIcon},\n audio: {style: style.audio, icon: PodcastIcon},\n video: {style: style.video, icon: PlayIcon}\n};\n\nconst ResourceMiniature = (props, context) => {\n const {skin} = context;\n const {type, description, poster, onClick: handleOnClick, selected = false} = props;\n const descriptionClassName = selected ? style.selectedDescription : style.description;\n const white = get('common.white', skin);\n const primary = get('common.primary', skin);\n const posterOutlineColor = selected ? primary : white;\n const Icon = TYPES[type].icon;\n return (\n <div className={TYPES[type].style} onClick={handleOnClick} data-type={type}>\n <div className={style.posterWrapper} style={{borderColor: posterOutlineColor}}>\n <div className={style.poster} style={{backgroundImage: `url(${poster})`}} />\n {!selected ? <Icon color={white} className={style.icon} /> : null}\n </div>\n <div\n className={classnames(descriptionClassName, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: description}}\n />\n </div>\n );\n};\n\nResourceMiniature.propTypes = {\n type: PropTypes.oneOf(keys(TYPES)),\n selected: PropTypes.bool,\n description: PropTypes.string,\n poster: PropTypes.string,\n onClick: PropTypes.func\n};\n\nResourceMiniature.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default ResourceMiniature;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,8BAA8B,IAAIC,QADpC,EAEEC,gCAAgC,IAAIC,OAFtC,EAGEC,qCAAqC,IAAIC,WAH3C,QAIO,0BAJP;AAKA,OAAOC,UAAP,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eAAe,EAAG,OAAMZ,MAAO;IAAhC;EAArC,EADF,EAEG,CAACG,QAAD,gBAAY,oBAAC,IAAD;IAAM,KAAK,EAAEG,KAAb;IAAoB,SAAS,EAAElB,KAAK,CAACG;EAArC,EAAZ,GAA4D,IAF/D,CADF,eAKE;IACE,SAAS,EAAEL,UAAU,CAACkB,oBAAD,EAAuBhB,KAAK,CAACyB,SAA7B,CADvB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACC,MAAM,EAAEf;IAAT;EAH3B,EALF,CADF;AAaD,CArBD;;AAuBAL,iBAAiB,CAACqB,SAAlB,2CAA8B;EAC5BjB,IAAI,EAAEnB,SAAS,CAACqC,KAAV,CAAgB,MAAK3B,KAAL,CAAhB,CADsB;EAE5Bc,QAAQ,EAAExB,SAAS,CAACsC,IAFQ;EAG5BlB,WAAW,EAAEpB,SAAS,CAACuC,MAHK;EAI5BlB,MAAM,EAAErB,SAAS,CAACuC,MAJU;EAK5BjB,OAAO,EAAEtB,SAAS,CAACwC;AALS,CAA9B;AAQAzB,iBAAiB,CAAC0B,YAAlB,GAAiC;EAC/BvB,IAAI,EAAEV,QAAQ,CAACkC,iBAAT,CAA2BxB;AADF,CAAjC;AAIA,eAAeH,iBAAf"}
@@ -4,6 +4,7 @@ import { NovaCompositionCoorpacademyCheck as RightIcon, NovaSolidStatusClose as
4
4
  import { GetTranslateFromContext } from '../provider';
5
5
  import style from './style.css';
6
6
  import propTypes from './types';
7
+
7
8
  const Content = props => {
8
9
  const {
9
10
  icon,
@@ -13,6 +14,7 @@ const Content = props => {
13
14
  const translate = GetTranslateFromContext();
14
15
  let child;
15
16
  let ariaDescription;
17
+
16
18
  switch (icon) {
17
19
  case 'no-answer':
18
20
  child = value;
@@ -22,6 +24,7 @@ const Content = props => {
22
24
  headerStepValue: value
23
25
  });
24
26
  break;
27
+
25
28
  case 'right':
26
29
  child = /*#__PURE__*/React.createElement(RightIcon, {
27
30
  className: classnames(style.rightIcon, current && style.currentRightIcon)
@@ -30,6 +33,7 @@ const Content = props => {
30
33
  headerStepValue: value
31
34
  });
32
35
  break;
36
+
33
37
  case 'wrong':
34
38
  child = /*#__PURE__*/React.createElement(WrongIcon, {
35
39
  className: classnames(style.wrongIcon, current && style.currentWrongIcon)
@@ -38,9 +42,11 @@ const Content = props => {
38
42
  headerStepValue: value
39
43
  });
40
44
  break;
45
+
41
46
  default:
42
47
  return null;
43
48
  }
49
+
44
50
  return /*#__PURE__*/React.createElement("span", {
45
51
  className: style.value,
46
52
  "aria-label": translate('review_header_step_item.aria_label', {
@@ -49,6 +55,7 @@ const Content = props => {
49
55
  "aria-describedby": ariaDescription
50
56
  }, child);
51
57
  };
58
+
52
59
  const ReviewHeaderStepItem = props => {
53
60
  const {
54
61
  icon,
@@ -59,6 +66,7 @@ const ReviewHeaderStepItem = props => {
59
66
  "data-name": "header-step-item"
60
67
  }, /*#__PURE__*/React.createElement(Content, props));
61
68
  };
69
+
62
70
  ReviewHeaderStepItem.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
63
71
  export default ReviewHeaderStepItem;
64
72
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","classnames","NovaCompositionCoorpacademyCheck","RightIcon","NovaSolidStatusClose","WrongIcon","GetTranslateFromContext","style","propTypes","Content","props","icon","current","value","translate","child","ariaDescription","headerStepValue","rightIcon","currentRightIcon","wrongIcon","currentWrongIcon","ReviewHeaderStepItem","default","right","wrong"],"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 {GetTranslateFromContext} from '../provider';\nimport style from './style.css';\nimport propTypes, {HeaderStepItemProps} from './types';\n\nconst Content = (props: HeaderStepItemProps) => {\n const {icon, current, value} = props;\n const translate = GetTranslateFromContext();\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\nReviewHeaderStepItem.propTypes = propTypes;\n\nexport default ReviewHeaderStepItem;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AACnC,SACEC,gCAAgC,IAAIC,SAAS,EAC7CC,oBAAoB,IAAIC,SAAS,QAC5B,0BAA0B;AACjC,SAAQC,uBAAuB,QAAO,aAAa;AACnD,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,SAAS,MAA6B,SAAS;AAEtD,MAAMC,OAAO,GAAIC,KAA0B,IAAK;EAC9C,MAAM;IAACC,IAAI;IAAEC,OAAO;IAAEC;EAAK,CAAC,GAAGH,KAAK;EACpC,MAAMI,SAAS,GAAGR,uBAAuB,EAAE;EAC3C,IAAIS,KAAK;EACT,IAAIC,eAAe;EACnB,QAAQL,IAAI;IACV,KAAK,WAAW;MACdI,KAAK,GAAGF,KAAK;MACbG,eA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,CAAI,CAClB;AAEV,CAAC;AAEDY,oBAAoB,CAACd,SAAS,2CAAGA,SAAS;AAE1C,eAAec,oBAAoB"}
1
+ {"version":3,"file":"index.js","names":["React","classnames","NovaCompositionCoorpacademyCheck","RightIcon","NovaSolidStatusClose","WrongIcon","GetTranslateFromContext","style","propTypes","Content","props","icon","current","value","translate","child","ariaDescription","headerStepValue","rightIcon","currentRightIcon","wrongIcon","currentWrongIcon","ReviewHeaderStepItem","default","right","wrong"],"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 {GetTranslateFromContext} from '../provider';\nimport style from './style.css';\nimport propTypes, {HeaderStepItemProps} from './types';\n\nconst Content = (props: HeaderStepItemProps) => {\n const {icon, current, value} = props;\n const translate = GetTranslateFromContext();\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\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,SAAQC,uBAAR,QAAsC,aAAtC;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAA6C,SAA7C;;AAEA,MAAMC,OAAO,GAAIC,KAAD,IAAgC;EAC9C,MAAM;IAACC,IAAD;IAAOC,OAAP;IAAgBC;EAAhB,IAAyBH,KAA/B;EACA,MAAMI,SAAS,GAAGR,uBAAuB,EAAzC;EACA,IAAIS,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,EAAEd,UAAU,CAACM,KAAK,CAACW,SAAP,EAAkBN,OAAO,IAAIL,KAAK,CAACY,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,EAAEd,UAAU,CAACM,KAAK,CAACa,SAAP,EAAkBR,OAAO,IAAIL,KAAK,CAACc,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,EAAEN,KAAK,CAACM,KADnB;IAEE,cAAYC,SAAS,CAAC,oCAAD,EAAuC;MAC1DG,eAAe,EAAEJ;IADyC,CAAvC,CAFvB;IAKE,oBAAkBG;EALpB,GAOGD,KAPH,CADF;AAWD,CAlDD;;AAoDA,MAAMO,oBAAoB,GAAIZ,KAAD,IAAgC;EAC3D,MAAM;IAACC,IAAD;IAAOC;EAAP,IAAkBF,KAAxB;EACA,oBACE;IACE,SAAS,EAAET,UAAU,CACnBM,KAAK,CAACgB,OADa,EAEnBZ,IAAI,KAAK,OAAT,IAAoBJ,KAAK,CAACiB,KAFP,EAGnBb,IAAI,KAAK,OAAT,IAAoBJ,KAAK,CAACkB,KAHP,EAInBb,OAAO,IAAIL,KAAK,CAACK,OAJE,CADvB;IAOE,aAAU;EAPZ,gBASE,oBAAC,OAAD,EAAaF,KAAb,CATF,CADF;AAaD,CAfD;;AAiBAY,oBAAoB,CAACd,SAArB,2CAAiCA,SAAjC;AAEA,eAAec,oBAAf"}
@@ -2,19 +2,24 @@ import React, { useEffect, useState } from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
3
  import { NovaCompositionCoorpacademyCheck as RightIcon, NovaSolidStatusClose as WrongIcon } from '@coorpacademy/nova-icons';
4
4
  import { COLORS } from '../../variables/colors';
5
+
5
6
  const createStyle = (current, icon) => {
6
7
  let backgroundColor;
8
+
7
9
  switch (icon) {
8
10
  case 'right':
9
11
  backgroundColor = COLORS.positive;
10
12
  break;
13
+
11
14
  case 'wrong':
12
15
  backgroundColor = COLORS.negative;
13
16
  break;
17
+
14
18
  case 'no-answer':
15
19
  default:
16
20
  backgroundColor = COLORS.gray;
17
21
  }
22
+
18
23
  return StyleSheet.create({
19
24
  step: {
20
25
  width: current ? 40 : 32,
@@ -36,6 +41,7 @@ const createStyle = (current, icon) => {
36
41
  }
37
42
  });
38
43
  };
44
+
39
45
  const Step = ({
40
46
  value,
41
47
  icon,
@@ -44,12 +50,16 @@ const Step = ({
44
50
  const [style, setStyle] = useState(null);
45
51
  useEffect(() => {
46
52
  const _style = createStyle(current, icon);
53
+
47
54
  setStyle(_style);
48
55
  }, [current, icon]);
56
+
49
57
  if (!style) {
50
58
  return null;
51
59
  }
60
+
52
61
  let child;
62
+
53
63
  switch (icon) {
54
64
  case 'right':
55
65
  child = /*#__PURE__*/React.createElement(RightIcon, {
@@ -57,21 +67,25 @@ const Step = ({
57
67
  color: "#fff"
58
68
  });
59
69
  break;
70
+
60
71
  case 'wrong':
61
72
  child = /*#__PURE__*/React.createElement(WrongIcon, {
62
73
  style: style.icon,
63
74
  color: "#fff"
64
75
  });
65
76
  break;
77
+
66
78
  case 'no-answer':
67
79
  default:
68
80
  child = /*#__PURE__*/React.createElement(Text, {
69
81
  style: style.stepText
70
82
  }, value);
71
83
  }
84
+
72
85
  return /*#__PURE__*/React.createElement(View, {
73
86
  style: style.step
74
87
  }, child);
75
88
  };
89
+
76
90
  export default Step;
77
91
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
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,KAAK,IAAGC,SAAS,EAAEC,QAAQ,QAAO,OAAO;AAChD,SAAQC,UAAU,EAAEC,IAAI,EAAaC,IAAI,QAAkB,cAAc;AACzE,SACEC,gCAAgC,IAAIC,SAAS,EAC7CC,oBAAoB,IAAIC,SAAS,QAC5B,0BAA0B;AACjC,SAAQC,MAAM,QAAO,wBAAwB;AAS7C,MAAMC,WAAW,GAAG,CAACC,OAAgB,EAAEC,IAAiC,KAAqB;EAC3F,IAAIC,eAAe;EAEnB,QAAQD,IAAI;IACV,KAAK,OAAO;MACVC,eAAe,GAAGJ,MAAM,CAACK,Q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K,CAACnB,IAAK;QAAC,KAAK,EAAC;MAAM,EAAG;MACrD;IACF,KAAK,OAAO;MACVsB,KAAK,gBAAG,oBAAC,SAAS;QAAC,KAAK,EAAEH,KAAK,CAACnB,IAAK;QAAC,KAAK,EAAC;MAAM,EAAG;MACrD;IACF,KAAK,WAAW;IAChB;MACEsB,KAAK,gBAAG,oBAAC,IAAI;QAAC,KAAK,EAAEH,KAAK,CAACL;MAAS,GAAEI,KAAK,CAAQ;EAAC;EAGxD,oBAAO,oBAAC,IAAI;IAAC,KAAK,EAAEC,KAAK,CAACb;EAAK,GAAEgB,KAAK,CAAQ;AAChD,CAAC;AAED,eAAeL,IAAI"}
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,EAAE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J;;EAYA,oBAAO,oBAAC,IAAD;IAAM,KAAK,EAAEC,KAAK,CAACb;EAAnB,GAA0BgB,KAA1B,CAAP;AACD,CA3BD;;AA6BA,eAAeL,IAAf"}
@@ -5,12 +5,12 @@ declare const propTypes: {
5
5
  value: PropTypes.Requireable<string>;
6
6
  };
7
7
  export default propTypes;
8
- export type HeaderStepItemProps = {
8
+ export declare type HeaderStepItemProps = {
9
9
  current: boolean;
10
10
  icon: 'no-answer' | 'right' | 'wrong';
11
11
  value: string;
12
12
  };
13
- export type Fixture = {
13
+ export declare type Fixture = {
14
14
  props: HeaderStepItemProps;
15
15
  };
16
16
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
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,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC"}
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 +1 @@
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,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAEF,SAAS,CAACG,IAAI;EACvBC,IAAI,EAAEJ,SAAS,CAACK,KAAK,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;EACtDC,KAAK,EAAEN,SAAS,CAACO;AACnB,CAAC;AAED,eAAeN,SAAS"}
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"}
@@ -12,21 +12,24 @@ const ICONS = {
12
12
  lifes: HeartIcon,
13
13
  allright: CheckIcon
14
14
  };
15
+
15
16
  const ReviewIcon = ({
16
17
  icon
17
18
  }) => {
18
19
  const Icon = getOr(null, icon, ICONS);
19
-
20
20
  /* istanbul ignore next */
21
+
21
22
  if (!Icon) {
22
23
  return /*#__PURE__*/React.createElement("div", {
23
24
  className: style.labelIcon
24
25
  });
25
26
  }
27
+
26
28
  return /*#__PURE__*/React.createElement(Icon, {
27
29
  className: style.labelIcon
28
30
  });
29
31
  };
32
+
30
33
  const ReviewListItemWrapper = ({
31
34
  iconKey,
32
35
  label
@@ -47,6 +50,7 @@ const ReviewListItemWrapper = ({
47
50
  "aria-label": label.moreDetailsAriaLabel
48
51
  }));
49
52
  };
53
+
50
54
  const ReviewPresentation = props => {
51
55
  const {
52
56
  'aria-label': ariaLabel,
@@ -58,15 +62,13 @@ const ReviewPresentation = props => {
58
62
  className: style.reviewWrapper,
59
63
  "aria-label": ariaLabel
60
64
  }, /*#__PURE__*/React.createElement("div", {
61
- className: style.reviewTitle
62
- // eslint-disable-next-line react/no-danger
65
+ className: style.reviewTitle // eslint-disable-next-line react/no-danger
63
66
  ,
64
67
  dangerouslySetInnerHTML: {
65
68
  __html: reviewTitle
66
69
  }
67
70
  }), /*#__PURE__*/React.createElement("div", {
68
- className: style.reviewText
69
- // eslint-disable-next-line react/no-danger
71
+ className: style.reviewText // eslint-disable-next-line react/no-danger
70
72
  ,
71
73
  dangerouslySetInnerHTML: {
72
74
  __html: reviewText
@@ -87,6 +89,7 @@ const ReviewPresentation = props => {
87
89
  }));
88
90
  }, labelsList)));
89
91
  };
92
+
90
93
  ReviewIcon.propTypes = process.env.NODE_ENV !== "production" ? {
91
94
  icon: PropTypes.string
92
95
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","getOr","map","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidVoteRewardsVoteHeart","HeartIcon","NovaSolidInterfaceFeedbackInterfaceQuestionMark","QuestionIcon","NovaLineSelectionCursorsCursorArrowTarget","TargetIcon","ToolTip","style","propTypes","ICONS","skills","questions","lifes","allright","ReviewIcon","icon","Icon","labelIcon","ReviewListItemWrapper","iconKey","label","reviewListItemWrapper","reviewListText","text","tooltipText","closeToolTipInformationTextAriaLabel","moreDetailsAriaLabel","ReviewPresentation","props","ariaLabel","reviewTitle","reviewText","labelsList","reviewWrapper","__html","reviewListWrapper","convert","cap","key","reviewList","string","shape"],"sources":["../../../src/atom/review-presentation/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport map from 'lodash/fp/map';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon,\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon\n} from '@coorpacademy/nova-icons';\nimport ToolTip from '../tooltip';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ICONS = {\n skills: TargetIcon,\n questions: QuestionIcon,\n lifes: HeartIcon,\n allright: CheckIcon\n};\n\nconst ReviewIcon = ({icon}) => {\n const Icon = getOr(null, icon, ICONS);\n\n /* istanbul ignore next */\n if (!Icon) {\n return <div className={style.labelIcon} />;\n }\n return <Icon className={style.labelIcon} />;\n};\n\nconst ReviewListItemWrapper = ({iconKey, label}) => {\n return (\n <div className={style.reviewListItemWrapper} data-tip data-for=\"reviewListItem\" tabIndex={0}>\n <div className={style.reviewListText}>\n <ReviewIcon icon={iconKey} /> {label.text}\n </div>\n <ToolTip\n TooltipContent={label.tooltipText}\n closeToolTipInformationTextAriaLabel={label.closeToolTipInformationTextAriaLabel}\n data-testid={`review-list-item-tooltip-button-${iconKey}`}\n aria-label={label.moreDetailsAriaLabel}\n />\n </div>\n );\n};\n\nconst ReviewPresentation = props => {\n const {'aria-label': ariaLabel, reviewTitle, reviewText, labelsList} = props;\n\n return (\n <div className={style.reviewWrapper} aria-label={ariaLabel}>\n <div\n className={style.reviewTitle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewTitle}}\n />\n <div\n className={style.reviewText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewText}}\n />\n <ul className={style.reviewListWrapper}>\n {map.convert({cap: false})((label, key) => {\n return (\n <li key={`step-${key}`} className={style.reviewList}>\n <ReviewListItemWrapper\n iconKey={key}\n label={label}\n tooltipText={label.tooltipText}\n aria-label={label.moreDetailsAriaLabel}\n />\n </li>\n );\n }, labelsList)}\n </ul>\n </div>\n );\n};\n\nReviewIcon.propTypes = {\n icon: PropTypes.string\n};\n\nReviewListItemWrapper.propTypes = {\n iconKey: PropTypes.string,\n label: PropTypes.shape({\n tooltipText: ToolTip.propTypes.tooltipText,\n moreDetailsAriaLabel: ToolTip.propTypes['aria-label'],\n closeToolTipInformationTextAriaLabel: ToolTip.propTypes.closeToolTipInformationTextAriaLabel,\n text: PropTypes.string\n })\n};\n\nReviewPresentation.propTypes = propTypes;\n\nexport default ReviewPresentation;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,iBAAiB;AACnC,OAAOC,GAAG,MAAM,eAAe;AAC/B,SACEC,2BAA2B,IAAIC,SAAS,EACxCC,6BAA6B,IAAIC,SAAS,EAC1CC,+CAA+C,IAAIC,YAAY,EAC/DC,yCAAyC,IAAIC,UAAU,QAClD,0BAA0B;AACjC,OAAOC,OAAO,MAAM,YAAY;AAChC,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,SAAS,MAAM,cAAc;AAEpC,MAAMC,KAAK,GAAG;EACZC,MAAM,EAAEL,UAAU;EAClBM,SAAS,EAAER,YAAY;EACvBS,KAAK,EAAEX,SAAS;EAChBY,QAAQ,EAAEd;AACZ,CAAC;AAED,MA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,EAC9C,eACF;IAAI,SAAS,EAAExB,KAAK,CAAC4B;EAAkB,GACpCtC,GAAG,CAACuC,OAAO,CAAC;IAACC,GAAG,EAAE;EAAK,CAAC,CAAC,CAAC,CAACjB,KAAK,EAAEkB,GAAG,KAAK;IACzC,oBACE;MAAI,GAAG,EAAG,QAAOA,GAAI,EAAE;MAAC,SAAS,EAAE/B,KAAK,CAACgC;IAAW,gBAClD,oBAAC,qBAAqB;MACpB,OAAO,EAAED,GAAI;MACb,KAAK,EAAElB,KAAM;MACb,WAAW,EAAEA,KAAK,CAACI,WAAY;MAC/B,cAAYJ,KAAK,CAACM;IAAqB,EACvC,CACC;EAET,CAAC,EAAEM,UAAU,CAAC,CACX,CACD;AAEV,CAAC;AAEDlB,UAAU,CAACN,SAAS,2CAAG;EACrBO,IAAI,EAAEpB,SAAS,CAAC6C;AAClB,CAAC;AAEDtB,qBAAqB,CAACV,SAAS,2CAAG;EAChCW,OAAO,EAAExB,SAAS,CAAC6C,MAAM;EACzBpB,KAAK,EAAEzB,SAAS,CAAC8C,KAAK,CAAC;IACrBjB,WAAW,EAAElB,OAAO,CAACE,SAAS,CAACgB,WAAW;IAC1CE,oBAAoB,EAAEpB,OAAO,CAACE,SAAS,CAAC,YAAY,CAAC;IACrDiB,oCAAoC,EAAEnB,OAAO,CAACE,SAAS,CAACiB,oCAAoC;IAC5FF,IAAI,EAAE5B,SAAS,CAAC6C;EAClB,CAAC;AACH,CAAC;AAEDb,kBAAkB,CAACnB,SAAS,2CAAGA,SAAS;AAExC,eAAemB,kBAAkB"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","getOr","map","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidVoteRewardsVoteHeart","HeartIcon","NovaSolidInterfaceFeedbackInterfaceQuestionMark","QuestionIcon","NovaLineSelectionCursorsCursorArrowTarget","TargetIcon","ToolTip","style","propTypes","ICONS","skills","questions","lifes","allright","ReviewIcon","icon","Icon","labelIcon","ReviewListItemWrapper","iconKey","label","reviewListItemWrapper","reviewListText","text","tooltipText","closeToolTipInformationTextAriaLabel","moreDetailsAriaLabel","ReviewPresentation","props","ariaLabel","reviewTitle","reviewText","labelsList","reviewWrapper","__html","reviewListWrapper","convert","cap","key","reviewList","string","shape"],"sources":["../../../src/atom/review-presentation/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport map from 'lodash/fp/map';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon,\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon\n} from '@coorpacademy/nova-icons';\nimport ToolTip from '../tooltip';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ICONS = {\n skills: TargetIcon,\n questions: QuestionIcon,\n lifes: HeartIcon,\n allright: CheckIcon\n};\n\nconst ReviewIcon = ({icon}) => {\n const Icon = getOr(null, icon, ICONS);\n\n /* istanbul ignore next */\n if (!Icon) {\n return <div className={style.labelIcon} />;\n }\n return <Icon className={style.labelIcon} />;\n};\n\nconst ReviewListItemWrapper = ({iconKey, label}) => {\n return (\n <div className={style.reviewListItemWrapper} data-tip data-for=\"reviewListItem\" tabIndex={0}>\n <div className={style.reviewListText}>\n <ReviewIcon icon={iconKey} /> {label.text}\n </div>\n <ToolTip\n TooltipContent={label.tooltipText}\n closeToolTipInformationTextAriaLabel={label.closeToolTipInformationTextAriaLabel}\n data-testid={`review-list-item-tooltip-button-${iconKey}`}\n aria-label={label.moreDetailsAriaLabel}\n />\n </div>\n );\n};\n\nconst ReviewPresentation = props => {\n const {'aria-label': ariaLabel, reviewTitle, reviewText, labelsList} = props;\n\n return (\n <div className={style.reviewWrapper} aria-label={ariaLabel}>\n <div\n className={style.reviewTitle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewTitle}}\n />\n <div\n className={style.reviewText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewText}}\n />\n <ul className={style.reviewListWrapper}>\n {map.convert({cap: false})((label, key) => {\n return (\n <li key={`step-${key}`} className={style.reviewList}>\n <ReviewListItemWrapper\n iconKey={key}\n label={label}\n tooltipText={label.tooltipText}\n aria-label={label.moreDetailsAriaLabel}\n />\n </li>\n );\n }, labelsList)}\n </ul>\n </div>\n );\n};\n\nReviewIcon.propTypes = {\n icon: PropTypes.string\n};\n\nReviewListItemWrapper.propTypes = {\n iconKey: PropTypes.string,\n label: PropTypes.shape({\n tooltipText: ToolTip.propTypes.tooltipText,\n moreDetailsAriaLabel: ToolTip.propTypes['aria-label'],\n closeToolTipInformationTextAriaLabel: ToolTip.propTypes.closeToolTipInformationTextAriaLabel,\n text: PropTypes.string\n })\n};\n\nReviewPresentation.propTypes = propTypes;\n\nexport default ReviewPresentation;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,SACEC,2BAA2B,IAAIC,SADjC,EAEEC,6BAA6B,IAAIC,SAFnC,EAGEC,+CAA+C,IAAIC,YAHrD,EAIEC,yCAAyC,IAAIC,UAJ/C,QAKO,0BALP;AAMA,OAAOC,OAAP,MAAoB,YAApB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AAEA,MAAMC,KAAK,GAAG;EACZC,MAAM,EAAEL,UADI;EAEZM,SAAS,EAAER,YAFC;EAGZS,KAAK,EAAEX,SAHK;EAIZY,QAAQ,EAAEd;AAJE,CAAd;;AAOA,MAAMe,UAAU,GAAG,CAAC;EAACC;AAAD,CAAD,KAAY;EAC7B,MAAMC,IAAI,GAAGpB,KAAK,CAAC,IAAD,EAAOmB,IAAP,EAAaN,KAAb,CAAlB;EAEA;;EACA,IAAI,CAACO,IAAL,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