@coorpacademy/components 11.9.3-alpha.29 → 11.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1565) 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.js +2 -0
  80. package/es/atom/input-search/index.js.map +1 -1
  81. package/es/atom/input-switch/index.js +8 -0
  82. package/es/atom/input-switch/index.js.map +1 -1
  83. package/es/atom/input-text/index.js +3 -2
  84. package/es/atom/input-text/index.js.map +1 -1
  85. package/es/atom/input-text-with-title/index.js +3 -0
  86. package/es/atom/input-text-with-title/index.js.map +1 -1
  87. package/es/atom/input-textarea/index.js +3 -2
  88. package/es/atom/input-textarea/index.js.map +1 -1
  89. package/es/atom/label/index.js +2 -0
  90. package/es/atom/label/index.js.map +1 -1
  91. package/es/atom/life/index.js +7 -0
  92. package/es/atom/life/index.js.map +1 -1
  93. package/es/atom/link/index.js +24 -7
  94. package/es/atom/link/index.js.map +1 -1
  95. package/es/atom/loader/index.js +2 -0
  96. package/es/atom/loader/index.js.map +1 -1
  97. package/es/atom/loader/index.native.d.ts +1 -1
  98. package/es/atom/loader/index.native.d.ts.map +1 -1
  99. package/es/atom/loader/index.native.js +12 -2
  100. package/es/atom/loader/index.native.js.map +1 -1
  101. package/es/atom/lottie-wrapper/index.js +11 -3
  102. package/es/atom/lottie-wrapper/index.js.map +1 -1
  103. package/es/atom/lottie-wrapper/prop-types.d.ts +1 -1
  104. package/es/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
  105. package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
  106. package/es/atom/notification/index.js +2 -0
  107. package/es/atom/notification/index.js.map +1 -1
  108. package/es/atom/picture/index.js +8 -0
  109. package/es/atom/picture/index.js.map +1 -1
  110. package/es/atom/picture-background/index.js +2 -0
  111. package/es/atom/picture-background/index.js.map +1 -1
  112. package/es/atom/promo-code/index.js +2 -0
  113. package/es/atom/promo-code/index.js.map +1 -1
  114. package/es/atom/provider/index.js +19 -2
  115. package/es/atom/provider/index.js.map +1 -1
  116. package/es/atom/provider/web-context.d.ts +3 -3
  117. package/es/atom/provider/web-context.d.ts.map +1 -1
  118. package/es/atom/provider/web-context.js +12 -5
  119. package/es/atom/provider/web-context.js.map +1 -1
  120. package/es/atom/radio-group/index.js +8 -0
  121. package/es/atom/radio-group/index.js.map +1 -1
  122. package/es/atom/radio-group/item.js +7 -0
  123. package/es/atom/radio-group/item.js.map +1 -1
  124. package/es/atom/range/handle.js +17 -9
  125. package/es/atom/range/handle.js.map +1 -1
  126. package/es/atom/range/index.js +23 -0
  127. package/es/atom/range/index.js.map +1 -1
  128. package/es/atom/resource-miniature/index.js +6 -2
  129. package/es/atom/resource-miniature/index.js.map +1 -1
  130. package/es/atom/review-header-step-item/index.js +8 -0
  131. package/es/atom/review-header-step-item/index.js.map +1 -1
  132. package/es/atom/review-header-step-item/index.native.js +14 -0
  133. package/es/atom/review-header-step-item/index.native.js.map +1 -1
  134. package/es/atom/review-header-step-item/types.d.ts +2 -2
  135. package/es/atom/review-header-step-item/types.d.ts.map +1 -1
  136. package/es/atom/review-header-step-item/types.js.map +1 -1
  137. package/es/atom/review-presentation/index.js +8 -5
  138. package/es/atom/review-presentation/index.js.map +1 -1
  139. package/es/atom/review-presentation/index.native.js +10 -3
  140. package/es/atom/review-presentation/index.native.js.map +1 -1
  141. package/es/atom/review-presentation/prop-types.d.ts +2 -2
  142. package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
  143. package/es/atom/review-presentation/prop-types.js.map +1 -1
  144. package/es/atom/select/index.js +8 -2
  145. package/es/atom/select/index.js.map +1 -1
  146. package/es/atom/select-modal/index.native.d.ts +2 -2
  147. package/es/atom/select-modal/index.native.d.ts.map +1 -1
  148. package/es/atom/select-modal/index.native.js +11 -0
  149. package/es/atom/select-modal/index.native.js.map +1 -1
  150. package/es/atom/slide/index.js +3 -0
  151. package/es/atom/slide/index.js.map +1 -1
  152. package/es/atom/social-link/index.js +2 -0
  153. package/es/atom/social-link/index.js.map +1 -1
  154. package/es/atom/space/index.native.d.ts +1 -1
  155. package/es/atom/space/index.native.d.ts.map +1 -1
  156. package/es/atom/space/index.native.js +2 -0
  157. package/es/atom/space/index.native.js.map +1 -1
  158. package/es/atom/spinner/index.js +2 -0
  159. package/es/atom/spinner/index.js.map +1 -1
  160. package/es/atom/tab/index.js +2 -0
  161. package/es/atom/tab/index.js.map +1 -1
  162. package/es/atom/tab-content/index.js +2 -0
  163. package/es/atom/tab-content/index.js.map +1 -1
  164. package/es/atom/tag/index.js +2 -0
  165. package/es/atom/tag/index.js.map +1 -1
  166. package/es/atom/text/index.native.d.ts +1 -1
  167. package/es/atom/text/index.native.d.ts.map +1 -1
  168. package/es/atom/text/index.native.js +3 -0
  169. package/es/atom/text/index.native.js.map +1 -1
  170. package/es/atom/title/index.js +8 -0
  171. package/es/atom/title/index.js.map +1 -1
  172. package/es/atom/tooltip/index.js +5 -0
  173. package/es/atom/tooltip/index.js.map +1 -1
  174. package/es/atom/video-upload/index.js +3 -0
  175. package/es/atom/video-upload/index.js.map +1 -1
  176. package/es/atom/wizard-steps/index.js +2 -0
  177. package/es/atom/wizard-steps/index.js.map +1 -1
  178. package/es/hoc/animation/index.js +11 -0
  179. package/es/hoc/animation/index.js.map +1 -1
  180. package/es/hoc/animation-scheduler/index.js +18 -0
  181. package/es/hoc/animation-scheduler/index.js.map +1 -1
  182. package/es/hoc/modal/index.native.d.ts +1 -1
  183. package/es/hoc/modal/index.native.d.ts.map +1 -1
  184. package/es/hoc/modal/index.native.js +6 -0
  185. package/es/hoc/modal/index.native.js.map +1 -1
  186. package/es/hoc/modal/select/index.native.d.ts +2 -2
  187. package/es/hoc/modal/select/index.native.d.ts.map +1 -1
  188. package/es/hoc/modal/select/index.native.js +10 -0
  189. package/es/hoc/modal/select/index.native.js.map +1 -1
  190. package/es/hoc/modal/select-item/index.native.d.ts +1 -1
  191. package/es/hoc/modal/select-item/index.native.d.ts.map +1 -1
  192. package/es/hoc/modal/select-item/index.native.js +8 -0
  193. package/es/hoc/modal/select-item/index.native.js.map +1 -1
  194. package/es/hoc/swapper/index.js +14 -4
  195. package/es/hoc/swapper/index.js.map +1 -1
  196. package/es/hoc/touchable/index.native.d.ts +1 -1
  197. package/es/hoc/touchable/index.native.d.ts.map +1 -1
  198. package/es/hoc/touchable/index.native.js +6 -0
  199. package/es/hoc/touchable/index.native.js.map +1 -1
  200. package/es/hoc/transition/index.js +4 -0
  201. package/es/hoc/transition/index.js.map +1 -1
  202. package/es/index.js.map +1 -1
  203. package/es/molecule/add-to-my-list/index.js +7 -0
  204. package/es/molecule/add-to-my-list/index.js.map +1 -1
  205. package/es/molecule/answer/index.d.ts +0 -3
  206. package/es/molecule/answer/index.d.ts.map +1 -1
  207. package/es/molecule/answer/index.js +27 -14
  208. package/es/molecule/answer/index.js.map +1 -1
  209. package/es/molecule/answer/index.native.js +11 -0
  210. package/es/molecule/answer/index.native.js.map +1 -1
  211. package/es/molecule/answer/prop-types.d.ts +3 -3
  212. package/es/molecule/answer/prop-types.d.ts.map +1 -1
  213. package/es/molecule/answer/prop-types.js +3 -0
  214. package/es/molecule/answer/prop-types.js.map +1 -1
  215. package/es/molecule/answer/style.css +6 -5
  216. package/es/molecule/audio/index.js +12 -2
  217. package/es/molecule/audio/index.js.map +1 -1
  218. package/es/molecule/banner/index.js +2 -0
  219. package/es/molecule/banner/index.js.map +1 -1
  220. package/es/molecule/battle-request/index.js +6 -2
  221. package/es/molecule/battle-request/index.js.map +1 -1
  222. package/es/molecule/brand-card/description.js +2 -0
  223. package/es/molecule/brand-card/description.js.map +1 -1
  224. package/es/molecule/brand-card/index.js +2 -0
  225. package/es/molecule/brand-card/index.js.map +1 -1
  226. package/es/molecule/brand-card-create/index.js +2 -0
  227. package/es/molecule/brand-card-create/index.js.map +1 -1
  228. package/es/molecule/brand-create-form/index.js +2 -0
  229. package/es/molecule/brand-create-form/index.js.map +1 -1
  230. package/es/molecule/brand-download-box/index.js +4 -0
  231. package/es/molecule/brand-download-box/index.js.map +1 -1
  232. package/es/molecule/brand-form-group/index.js +29 -0
  233. package/es/molecule/brand-form-group/index.js.map +1 -1
  234. package/es/molecule/brand-logo/index.native.js +5 -0
  235. package/es/molecule/brand-logo/index.native.js.map +1 -1
  236. package/es/molecule/brand-tabs/index.js +4 -0
  237. package/es/molecule/brand-tabs/index.js.map +1 -1
  238. package/es/molecule/brand-upload-box/index.js +11 -0
  239. package/es/molecule/brand-upload-box/index.js.map +1 -1
  240. package/es/molecule/breadcrumbs/index.js +6 -0
  241. package/es/molecule/breadcrumbs/index.js.map +1 -1
  242. package/es/molecule/bullet-point-menu-button/index.js +2 -0
  243. package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
  244. package/es/molecule/card/customer.js +2 -0
  245. package/es/molecule/card/customer.js.map +1 -1
  246. package/es/molecule/card/favorite.js +9 -0
  247. package/es/molecule/card/favorite.js.map +1 -1
  248. package/es/molecule/card/index.js +21 -0
  249. package/es/molecule/card/index.js.map +1 -1
  250. package/es/molecule/card/notification.js +5 -0
  251. package/es/molecule/card/notification.js.map +1 -1
  252. package/es/molecule/card/selectable.js +2 -0
  253. package/es/molecule/card/selectable.js.map +1 -1
  254. package/es/molecule/card-congrats/index.native.js +7 -0
  255. package/es/molecule/card-congrats/index.native.js.map +1 -1
  256. package/es/molecule/card-congrats/types.d.ts +1 -1
  257. package/es/molecule/card-congrats/types.d.ts.map +1 -1
  258. package/es/molecule/card-content/index.js +13 -2
  259. package/es/molecule/card-content/index.js.map +1 -1
  260. package/es/molecule/card-with-button/index.js +6 -0
  261. package/es/molecule/card-with-button/index.js.map +1 -1
  262. package/es/molecule/cm-popin/index.js +10 -4
  263. package/es/molecule/cm-popin/index.js.map +1 -1
  264. package/es/molecule/cm-popin/index.native.js +6 -0
  265. package/es/molecule/cm-popin/index.native.js.map +1 -1
  266. package/es/molecule/cm-popin/types.d.ts +2 -2
  267. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  268. package/es/molecule/cm-popin/types.js.map +1 -1
  269. package/es/molecule/cookie-banner/index.js +4 -0
  270. package/es/molecule/cookie-banner/index.js.map +1 -1
  271. package/es/molecule/coorp-manager-roles/index.js +3 -0
  272. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  273. package/es/molecule/course-section/index.js +2 -0
  274. package/es/molecule/course-section/index.js.map +1 -1
  275. package/es/molecule/course-sections/index.js +6 -0
  276. package/es/molecule/course-sections/index.js.map +1 -1
  277. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  278. package/es/molecule/dashboard/cards-list/index.js +49 -2
  279. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  280. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  281. package/es/molecule/dashboard/review-banner/index.js +3 -0
  282. package/es/molecule/dashboard/review-banner/index.js.map +1 -1
  283. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  284. package/es/molecule/discipline-cta/index.js +4 -0
  285. package/es/molecule/discipline-cta/index.js.map +1 -1
  286. package/es/molecule/discipline-header/index.js +11 -4
  287. package/es/molecule/discipline-header/index.js.map +1 -1
  288. package/es/molecule/discipline-partners/index.js +11 -0
  289. package/es/molecule/discipline-partners/index.js.map +1 -1
  290. package/es/molecule/discipline-scope/index.js +2 -0
  291. package/es/molecule/discipline-scope/index.js.map +1 -1
  292. package/es/molecule/drag-and-drop/index.js +3 -0
  293. package/es/molecule/drag-and-drop/index.js.map +1 -1
  294. package/es/molecule/drag-and-drop/overlay.js.map +1 -1
  295. package/es/molecule/drag-and-drop/placeholder.js.map +1 -1
  296. package/es/molecule/drag-and-drop/upload-report.js +13 -0
  297. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  298. package/es/molecule/drag-and-drop-wrapper/index.js +4 -0
  299. package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  300. package/es/molecule/draggable/index.js +4 -0
  301. package/es/molecule/draggable/index.js.map +1 -1
  302. package/es/molecule/draggable-list/index.js +3 -0
  303. package/es/molecule/draggable-list/index.js.map +1 -1
  304. package/es/molecule/empty-state-dashboard/index.js +3 -0
  305. package/es/molecule/empty-state-dashboard/index.js.map +1 -1
  306. package/es/molecule/empty-state-dashboard/types.d.ts +1 -1
  307. package/es/molecule/empty-state-dashboard/types.d.ts.map +1 -1
  308. package/es/molecule/empty-state-dashboard/types.js.map +1 -1
  309. package/es/molecule/external-content-button/index.js +5 -0
  310. package/es/molecule/external-content-button/index.js.map +1 -1
  311. package/es/molecule/external-content-viewer/index.js +2 -0
  312. package/es/molecule/external-content-viewer/index.js.map +1 -1
  313. package/es/molecule/feedback/index.js +9 -6
  314. package/es/molecule/feedback/index.js.map +1 -1
  315. package/es/molecule/filters/filters-wrapper.js +13 -0
  316. package/es/molecule/filters/filters-wrapper.js.map +1 -1
  317. package/es/molecule/filters/index.js +11 -0
  318. package/es/molecule/filters/index.js.map +1 -1
  319. package/es/molecule/forum/forum-comment/index.js +5 -0
  320. package/es/molecule/forum/forum-comment/index.js.map +1 -1
  321. package/es/molecule/forum/forum-post/index.js +6 -0
  322. package/es/molecule/forum/forum-post/index.js.map +1 -1
  323. package/es/molecule/forum/forum-thread/index.js +4 -0
  324. package/es/molecule/forum/forum-thread/index.js.map +1 -1
  325. package/es/molecule/forum/post-conditions.js.map +1 -1
  326. package/es/molecule/go1-banner/index.js +4 -4
  327. package/es/molecule/go1-banner/index.js.map +1 -1
  328. package/es/molecule/hero/index.js +4 -0
  329. package/es/molecule/hero/index.js.map +1 -1
  330. package/es/molecule/input-text-with-titled-checkbox/index.js +2 -0
  331. package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
  332. package/es/molecule/list-badges/index.js +2 -0
  333. package/es/molecule/list-badges/index.js.map +1 -1
  334. package/es/molecule/login-alert/index.js +3 -2
  335. package/es/molecule/login-alert/index.js.map +1 -1
  336. package/es/molecule/menu-list/index.js +2 -0
  337. package/es/molecule/menu-list/index.js.map +1 -1
  338. package/es/molecule/message-popin/index.js +2 -0
  339. package/es/molecule/message-popin/index.js.map +1 -1
  340. package/es/molecule/modal/index.js +7 -6
  341. package/es/molecule/modal/index.js.map +1 -1
  342. package/es/molecule/module-bubble/index.js +6 -0
  343. package/es/molecule/module-bubble/index.js.map +1 -1
  344. package/es/molecule/module-card/index.js +7 -2
  345. package/es/molecule/module-card/index.js.map +1 -1
  346. package/es/molecule/news/index.js +3 -0
  347. package/es/molecule/news/index.js.map +1 -1
  348. package/es/molecule/notification-banner/index.js +7 -0
  349. package/es/molecule/notification-banner/index.js.map +1 -1
  350. package/es/molecule/pagination/index.js +2 -0
  351. package/es/molecule/pagination/index.js.map +1 -1
  352. package/es/molecule/payment-form/index.js +13 -0
  353. package/es/molecule/payment-form/index.js.map +1 -1
  354. package/es/molecule/pdf/index.js +6 -2
  355. package/es/molecule/pdf/index.js.map +1 -1
  356. package/es/molecule/popin/index.js +7 -2
  357. package/es/molecule/popin/index.js.map +1 -1
  358. package/es/molecule/product-card/index.js +4 -0
  359. package/es/molecule/product-card/index.js.map +1 -1
  360. package/es/molecule/progress-bar/index.js +6 -0
  361. package/es/molecule/progress-bar/index.js.map +1 -1
  362. package/es/molecule/questions/drop-down/index.js +4 -0
  363. package/es/molecule/questions/drop-down/index.js.map +1 -1
  364. package/es/molecule/questions/free-text/index.js +6 -0
  365. package/es/molecule/questions/free-text/index.js.map +1 -1
  366. package/es/molecule/questions/free-text/index.native.d.ts +1 -1
  367. package/es/molecule/questions/free-text/index.native.d.ts.map +1 -1
  368. package/es/molecule/questions/free-text/index.native.js +11 -12
  369. package/es/molecule/questions/free-text/index.native.js.map +1 -1
  370. package/es/molecule/questions/mobile/draggable/index.native.js +11 -0
  371. package/es/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  372. package/es/molecule/questions/mobile/slider/index.native.d.ts +2 -2
  373. package/es/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
  374. package/es/molecule/questions/mobile/slider/index.native.js +7 -0
  375. package/es/molecule/questions/mobile/slider/index.native.js.map +1 -1
  376. package/es/molecule/questions/mobile/switch/index.native.d.ts +1 -1
  377. package/es/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
  378. package/es/molecule/questions/mobile/switch/index.native.js +13 -0
  379. package/es/molecule/questions/mobile/switch/index.native.js.map +1 -1
  380. package/es/molecule/questions/mobile/template/index.native.d.ts +1 -1
  381. package/es/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
  382. package/es/molecule/questions/mobile/template/index.native.js +16 -0
  383. package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
  384. package/es/molecule/questions/qcm/index.js +7 -3
  385. package/es/molecule/questions/qcm/index.js.map +1 -1
  386. package/es/molecule/questions/qcm-drag/index.js +14 -4
  387. package/es/molecule/questions/qcm-drag/index.js.map +1 -1
  388. package/es/molecule/questions/qcm-graphic/index.js +7 -2
  389. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  390. package/es/molecule/questions/question-range/index.js +17 -12
  391. package/es/molecule/questions/question-range/index.js.map +1 -1
  392. package/es/molecule/questions/template/index.js +16 -5
  393. package/es/molecule/questions/template/index.js.map +1 -1
  394. package/es/molecule/questions/types.d.ts +37 -12
  395. package/es/molecule/questions/types.d.ts.map +1 -1
  396. package/es/molecule/questions/types.js.map +1 -1
  397. package/es/molecule/quick-access-card/index.js +18 -0
  398. package/es/molecule/quick-access-card/index.js.map +1 -1
  399. package/es/molecule/quick-access-cards-group/index.js +4 -0
  400. package/es/molecule/quick-access-cards-group/index.js.map +1 -1
  401. package/es/molecule/resource-player/index.js +25 -5
  402. package/es/molecule/resource-player/index.js.map +1 -1
  403. package/es/molecule/review-card-congrats/index.js +7 -2
  404. package/es/molecule/review-card-congrats/index.js.map +1 -1
  405. package/es/molecule/review-card-congrats/prop-types.d.ts +1 -1
  406. package/es/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
  407. package/es/molecule/review-card-congrats/prop-types.js.map +1 -1
  408. package/es/molecule/review-correction-popin/index.js +9 -4
  409. package/es/molecule/review-correction-popin/index.js.map +1 -1
  410. package/es/molecule/review-correction-popin/index.native.js +9 -0
  411. package/es/molecule/review-correction-popin/index.native.js.map +1 -1
  412. package/es/molecule/review-correction-popin/prop-types.d.ts +3 -3
  413. package/es/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
  414. package/es/molecule/review-correction-popin/prop-types.js.map +1 -1
  415. package/es/molecule/review-header-steps/index.js +3 -0
  416. package/es/molecule/review-header-steps/index.js.map +1 -1
  417. package/es/molecule/review-header-steps/prop-types.d.ts +1 -1
  418. package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  419. package/es/molecule/review-header-steps/prop-types.js.map +1 -1
  420. package/es/molecule/scope-content/index.js +21 -6
  421. package/es/molecule/scope-content/index.js.map +1 -1
  422. package/es/molecule/scope-tabs/index.js +6 -0
  423. package/es/molecule/scope-tabs/index.js.map +1 -1
  424. package/es/molecule/search-form/index.js +6 -0
  425. package/es/molecule/search-form/index.js.map +1 -1
  426. package/es/molecule/select-multiple/index.js +18 -2
  427. package/es/molecule/select-multiple/index.js.map +1 -1
  428. package/es/molecule/setup-cohort-item/index.js +10 -0
  429. package/es/molecule/setup-cohort-item/index.js.map +1 -1
  430. package/es/molecule/setup-section/index.js +10 -0
  431. package/es/molecule/setup-section/index.js.map +1 -1
  432. package/es/molecule/setup-sections/index.js +3 -0
  433. package/es/molecule/setup-sections/index.js.map +1 -1
  434. package/es/molecule/setup-slide/index.js +17 -0
  435. package/es/molecule/setup-slide/index.js.map +1 -1
  436. package/es/molecule/setup-slider/index.js +6 -0
  437. package/es/molecule/setup-slider/index.js.map +1 -1
  438. package/es/molecule/share/index.js +15 -6
  439. package/es/molecule/share/index.js.map +1 -1
  440. package/es/molecule/skill-card/index.js +3 -0
  441. package/es/molecule/skill-card/index.js.map +1 -1
  442. package/es/molecule/skill-card/index.native.js +6 -0
  443. package/es/molecule/skill-card/index.native.js.map +1 -1
  444. package/es/molecule/skill-card/prop-types.d.ts +1 -1
  445. package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
  446. package/es/molecule/skill-card/prop-types.js.map +1 -1
  447. package/es/molecule/ssmenu-list/index.js +2 -0
  448. package/es/molecule/ssmenu-list/index.js.map +1 -1
  449. package/es/molecule/subscription-freemium/index.js +2 -0
  450. package/es/molecule/subscription-freemium/index.js.map +1 -1
  451. package/es/molecule/subscription-premium/index.js +6 -0
  452. package/es/molecule/subscription-premium/index.js.map +1 -1
  453. package/es/molecule/table/index.js +18 -0
  454. package/es/molecule/table/index.js.map +1 -1
  455. package/es/molecule/teams-popin/index.js +2 -0
  456. package/es/molecule/teams-popin/index.js.map +1 -1
  457. package/es/molecule/theme-image/index.js +2 -0
  458. package/es/molecule/theme-image/index.js.map +1 -1
  459. package/es/molecule/title-and-checkbox-wrapper/index.js +3 -0
  460. package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  461. package/es/molecule/titled-checkbox/index.js +2 -0
  462. package/es/molecule/titled-checkbox/index.js.map +1 -1
  463. package/es/molecule/unsubscribe/index.js +2 -0
  464. package/es/molecule/unsubscribe/index.js.map +1 -1
  465. package/es/molecule/vertical-tabs/index.js +4 -0
  466. package/es/molecule/vertical-tabs/index.js.map +1 -1
  467. package/es/molecule/video-iframe/index.js +12 -0
  468. package/es/molecule/video-iframe/index.js.map +1 -1
  469. package/es/molecule/video-player/index.js +23 -6
  470. package/es/molecule/video-player/index.js.map +1 -1
  471. package/es/molecule/video-player/jwplayer-prop-types.js.map +1 -1
  472. package/es/molecule/video-player/jwplayer.js +29 -3
  473. package/es/molecule/video-player/jwplayer.js.map +1 -1
  474. package/es/molecule/video-player/prop-types.js.map +1 -1
  475. package/es/molecule/video-player/vimeo.js +42 -0
  476. package/es/molecule/video-player/vimeo.js.map +1 -1
  477. package/es/molecule/video-player-mobile/index.native.d.ts +8 -0
  478. package/es/molecule/video-player-mobile/index.native.d.ts.map +1 -0
  479. package/es/molecule/video-player-mobile/index.native.js +45 -0
  480. package/es/molecule/video-player-mobile/index.native.js.map +1 -0
  481. package/es/molecule/wizard-summary/index.js +18 -2
  482. package/es/molecule/wizard-summary/index.js.map +1 -1
  483. package/es/organism/accordion/container/index.js +9 -0
  484. package/es/organism/accordion/container/index.js.map +1 -1
  485. package/es/organism/accordion/coorp-manager/index.js +13 -0
  486. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  487. package/es/organism/accordion/coorp-manager/part/index.js +10 -0
  488. package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
  489. package/es/organism/accordion/part/index.js +5 -0
  490. package/es/organism/accordion/part/index.js.map +1 -1
  491. package/es/organism/accordion/toggler/index.js +11 -0
  492. package/es/organism/accordion/toggler/index.js.map +1 -1
  493. package/es/organism/brand-analytics/analytics-popin.js +6 -0
  494. package/es/organism/brand-analytics/analytics-popin.js.map +1 -1
  495. package/es/organism/brand-analytics/index.js +11 -0
  496. package/es/organism/brand-analytics/index.js.map +1 -1
  497. package/es/organism/brand-dashboard/index.js +3 -0
  498. package/es/organism/brand-dashboard/index.js.map +1 -1
  499. package/es/organism/brand-form/index.js +6 -0
  500. package/es/organism/brand-form/index.js.map +1 -1
  501. package/es/organism/brand-table/index.js +2 -0
  502. package/es/organism/brand-table/index.js.map +1 -1
  503. package/es/organism/brand-upload/index.js +4 -0
  504. package/es/organism/brand-upload/index.js.map +1 -1
  505. package/es/organism/cards-grid/index.js +4 -0
  506. package/es/organism/cards-grid/index.js.map +1 -1
  507. package/es/organism/cart/index.js +2 -0
  508. package/es/organism/cart/index.js.map +1 -1
  509. package/es/organism/content-translation/index.js +5 -0
  510. package/es/organism/content-translation/index.js.map +1 -1
  511. package/es/organism/course-selection/index.js +8 -0
  512. package/es/organism/course-selection/index.js.map +1 -1
  513. package/es/organism/discussion/index.js +4 -2
  514. package/es/organism/discussion/index.js.map +1 -1
  515. package/es/organism/get-the-app/index.js +16 -0
  516. package/es/organism/get-the-app/index.js.map +1 -1
  517. package/es/organism/grid-list/index.js +2 -0
  518. package/es/organism/grid-list/index.js.map +1 -1
  519. package/es/organism/header/index.js +2 -0
  520. package/es/organism/header/index.js.map +1 -1
  521. package/es/organism/header-v2/index.native.js +6 -3
  522. package/es/organism/header-v2/index.native.js.map +1 -1
  523. package/es/organism/hero/index.js +4 -0
  524. package/es/organism/hero/index.js.map +1 -1
  525. package/es/organism/list-item/index.js +4 -0
  526. package/es/organism/list-item/index.js.map +1 -1
  527. package/es/organism/list-items/index.js +3 -0
  528. package/es/organism/list-items/index.js.map +1 -1
  529. package/es/organism/mobile-navigation/index.native.d.ts +2 -2
  530. package/es/organism/mobile-navigation/index.native.d.ts.map +1 -1
  531. package/es/organism/mobile-navigation/index.native.js +7 -0
  532. package/es/organism/mobile-navigation/index.native.js.map +1 -1
  533. package/es/organism/mooc/image-slider/index.js +5 -0
  534. package/es/organism/mooc/image-slider/index.js.map +1 -1
  535. package/es/organism/mooc-footer/index.js +9 -10
  536. package/es/organism/mooc-footer/index.js.map +1 -1
  537. package/es/organism/mooc-header/index.js +47 -0
  538. package/es/organism/mooc-header/index.js.map +1 -1
  539. package/es/organism/podcast-popin-intro/index.native.d.ts +2 -2
  540. package/es/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
  541. package/es/organism/podcast-popin-intro/index.native.js +6 -0
  542. package/es/organism/podcast-popin-intro/index.native.js.map +1 -1
  543. package/es/organism/popin/index.js +5 -0
  544. package/es/organism/popin/index.js.map +1 -1
  545. package/es/organism/resource-browser/index.js +10 -0
  546. package/es/organism/resource-browser/index.js.map +1 -1
  547. package/es/organism/review-congrats/index.js +5 -1
  548. package/es/organism/review-congrats/index.js.map +1 -1
  549. package/es/organism/review-congrats/index.native.js +10 -2
  550. package/es/organism/review-congrats/index.native.js.map +1 -1
  551. package/es/organism/review-congrats/prop-types.d.ts +1 -1
  552. package/es/organism/review-congrats/prop-types.d.ts.map +1 -1
  553. package/es/organism/review-congrats/prop-types.js.map +1 -1
  554. package/es/organism/review-header/index.js +2 -0
  555. package/es/organism/review-header/index.js.map +1 -1
  556. package/es/organism/review-header/index.native.js +3 -0
  557. package/es/organism/review-header/index.native.js.map +1 -1
  558. package/es/organism/review-header/types.d.ts +1 -1
  559. package/es/organism/review-header/types.d.ts.map +1 -1
  560. package/es/organism/review-header/types.js.map +1 -1
  561. package/es/organism/review-no-skills/index.js +2 -0
  562. package/es/organism/review-no-skills/index.js.map +1 -1
  563. package/es/organism/review-no-skills/index.native.js +6 -0
  564. package/es/organism/review-no-skills/index.native.js.map +1 -1
  565. package/es/organism/review-no-skills/prop-types.d.ts +1 -1
  566. package/es/organism/review-no-skills/prop-types.d.ts.map +1 -1
  567. package/es/organism/review-no-skills/prop-types.js.map +1 -1
  568. package/es/organism/review-skills/index.js +2 -0
  569. package/es/organism/review-skills/index.js.map +1 -1
  570. package/es/organism/review-skills/index.native.js +3 -0
  571. package/es/organism/review-skills/index.native.js.map +1 -1
  572. package/es/organism/review-skills/prop-types.d.ts +1 -1
  573. package/es/organism/review-skills/prop-types.d.ts.map +1 -1
  574. package/es/organism/review-skills/prop-types.js.map +1 -1
  575. package/es/organism/review-slide/index.js +16 -8
  576. package/es/organism/review-slide/index.js.map +1 -1
  577. package/es/organism/review-slide/index.native.d.ts.map +1 -1
  578. package/es/organism/review-slide/index.native.js +58 -5
  579. package/es/organism/review-slide/index.native.js.map +1 -1
  580. package/es/organism/review-slide/prop-types.d.ts +5 -5
  581. package/es/organism/review-slide/prop-types.d.ts.map +1 -1
  582. package/es/organism/review-slide/prop-types.js +1 -1
  583. package/es/organism/review-slide/prop-types.js.map +1 -1
  584. package/es/organism/review-stacked-slides/index.js +9 -2
  585. package/es/organism/review-stacked-slides/index.js.map +1 -1
  586. package/es/organism/review-stacked-slides/index.native.js +10 -5
  587. package/es/organism/review-stacked-slides/index.native.js.map +1 -1
  588. package/es/organism/review-stacked-slides/prop-types.d.ts +1 -1
  589. package/es/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
  590. package/es/organism/review-stacked-slides/prop-types.js.map +1 -1
  591. package/es/organism/rewards-form/index.js +8 -3
  592. package/es/organism/rewards-form/index.js.map +1 -1
  593. package/es/organism/search-and-chips-results/index.js +6 -0
  594. package/es/organism/search-and-chips-results/index.js.map +1 -1
  595. package/es/organism/settings/index.js +12 -5
  596. package/es/organism/settings/index.js.map +1 -1
  597. package/es/organism/setup-header/index.js +5 -0
  598. package/es/organism/setup-header/index.js.map +1 -1
  599. package/es/organism/sidebar/index.js +26 -8
  600. package/es/organism/sidebar/index.js.map +1 -1
  601. package/es/organism/slider/index.js +18 -2
  602. package/es/organism/slider/index.js.map +1 -1
  603. package/es/organism/user-preferences/index.js +13 -5
  604. package/es/organism/user-preferences/index.js.map +1 -1
  605. package/es/organism/wizard-contents/index.js +13 -0
  606. package/es/organism/wizard-contents/index.js.map +1 -1
  607. package/es/template/activity/engine-stars.js +17 -5
  608. package/es/template/activity/engine-stars.js.map +1 -1
  609. package/es/template/activity/index.js +4 -2
  610. package/es/template/activity/index.js.map +1 -1
  611. package/es/template/activity/progression-item.js +7 -2
  612. package/es/template/activity/progression-item.js.map +1 -1
  613. package/es/template/activity/stars-summary.js +13 -0
  614. package/es/template/activity/stars-summary.js.map +1 -1
  615. package/es/template/app-player/loading/index.js +2 -0
  616. package/es/template/app-player/loading/index.js.map +1 -1
  617. package/es/template/app-player/player/index.js +3 -0
  618. package/es/template/app-player/player/index.js.map +1 -1
  619. package/es/template/app-player/player/slides/footer/index.js +16 -0
  620. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  621. package/es/template/app-player/player/slides/header/index.js +2 -0
  622. package/es/template/app-player/player/slides/header/index.js.map +1 -1
  623. package/es/template/app-player/player/slides/header/learner.js +14 -4
  624. package/es/template/app-player/player/slides/header/learner.js.map +1 -1
  625. package/es/template/app-player/player/slides/header/lives.js +3 -0
  626. package/es/template/app-player/player/slides/header/lives.js.map +1 -1
  627. package/es/template/app-player/player/slides/header/microlearning.js +5 -2
  628. package/es/template/app-player/player/slides/header/microlearning.js.map +1 -1
  629. package/es/template/app-player/player/slides/index.js +64 -21
  630. package/es/template/app-player/player/slides/index.js.map +1 -1
  631. package/es/template/app-player/popin-correction/index.js +34 -10
  632. package/es/template/app-player/popin-correction/index.js.map +1 -1
  633. package/es/template/app-player/popin-end/index.js +5 -0
  634. package/es/template/app-player/popin-end/index.js.map +1 -1
  635. package/es/template/app-player/popin-end/summary.js +54 -22
  636. package/es/template/app-player/popin-end/summary.js.map +1 -1
  637. package/es/template/app-player/popin-header/index.js +46 -12
  638. package/es/template/app-player/popin-header/index.js.map +1 -1
  639. package/es/template/app-player/popin-no-access/index.js +2 -0
  640. package/es/template/app-player/popin-no-access/index.js.map +1 -1
  641. package/es/template/app-review/demo-ts/index.js +2 -0
  642. package/es/template/app-review/demo-ts/index.js.map +1 -1
  643. package/es/template/app-review/demo-ts/index.native.js +2 -0
  644. package/es/template/app-review/demo-ts/index.native.js.map +1 -1
  645. package/es/template/app-review/demo-ts/typings.d.ts +1 -1
  646. package/es/template/app-review/demo-ts/typings.d.ts.map +1 -1
  647. package/es/template/app-review/demo-ts/typings.js.map +1 -1
  648. package/es/template/app-review/index.js +3 -0
  649. package/es/template/app-review/index.js.map +1 -1
  650. package/es/template/app-review/index.native.js +4 -2
  651. package/es/template/app-review/index.native.js.map +1 -1
  652. package/es/template/app-review/onboarding/index.js.map +1 -1
  653. package/es/template/app-review/onboarding/index.native.js.map +1 -1
  654. package/es/template/app-review/player/background-review.js +2 -0
  655. package/es/template/app-review/player/background-review.js.map +1 -1
  656. package/es/template/app-review/player/index.js +2 -0
  657. package/es/template/app-review/player/index.js.map +1 -1
  658. package/es/template/app-review/player/index.native.js +6 -0
  659. package/es/template/app-review/player/index.native.js.map +1 -1
  660. package/es/template/app-review/player/prop-types.d.ts +1 -1
  661. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  662. package/es/template/app-review/player/prop-types.js +1 -0
  663. package/es/template/app-review/player/prop-types.js.map +1 -1
  664. package/es/template/app-review/prop-types.d.ts +2 -2
  665. package/es/template/app-review/prop-types.d.ts.map +1 -1
  666. package/es/template/app-review/prop-types.js +1 -0
  667. package/es/template/app-review/prop-types.js.map +1 -1
  668. package/es/template/app-review/skills/index.js +2 -0
  669. package/es/template/app-review/skills/index.js.map +1 -1
  670. package/es/template/app-review/skills/index.native.js +6 -0
  671. package/es/template/app-review/skills/index.native.js.map +1 -1
  672. package/es/template/app-review/skills/prop-types.d.ts +1 -1
  673. package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
  674. package/es/template/app-review/skills/prop-types.js.map +1 -1
  675. package/es/template/app-review/template-context.d.ts +5 -5
  676. package/es/template/app-review/template-context.d.ts.map +1 -1
  677. package/es/template/app-review/template-context.js +5 -0
  678. package/es/template/app-review/template-context.js.map +1 -1
  679. package/es/template/back-office/brand-create/index.js.map +1 -1
  680. package/es/template/back-office/brand-list/index.js +14 -8
  681. package/es/template/back-office/brand-list/index.js.map +1 -1
  682. package/es/template/back-office/brand-update/index.js +25 -4
  683. package/es/template/back-office/brand-update/index.js.map +1 -1
  684. package/es/template/back-office/dashboard-preview/dashboard-popin.js +5 -0
  685. package/es/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
  686. package/es/template/back-office/dashboard-preview/index.js +14 -0
  687. package/es/template/back-office/dashboard-preview/index.js.map +1 -1
  688. package/es/template/back-office/layout/index.js +3 -0
  689. package/es/template/back-office/layout/index.js.map +1 -1
  690. package/es/template/battle-requests/index.js +3 -2
  691. package/es/template/battle-requests/index.js.map +1 -1
  692. package/es/template/cockpit/jw-uploader/index.js +3 -0
  693. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  694. package/es/template/common/authors/index.js +10 -2
  695. package/es/template/common/authors/index.js.map +1 -1
  696. package/es/template/common/coorp-header/content.js +4 -0
  697. package/es/template/common/coorp-header/content.js.map +1 -1
  698. package/es/template/common/coorp-header/index.js +2 -0
  699. package/es/template/common/coorp-header/index.js.map +1 -1
  700. package/es/template/common/dashboard/index.js +13 -0
  701. package/es/template/common/dashboard/index.js.map +1 -1
  702. package/es/template/common/discipline/index.js +2 -0
  703. package/es/template/common/discipline/index.js.map +1 -1
  704. package/es/template/common/search-page/index.js +6 -0
  705. package/es/template/common/search-page/index.js.map +1 -1
  706. package/es/template/external-course/index.js +10 -2
  707. package/es/template/external-course/index.js.map +1 -1
  708. package/es/template/review-dashboard-skills/index.js +2 -0
  709. package/es/template/review-dashboard-skills/index.js.map +1 -1
  710. package/es/template/teams-dashboard/index.js +4 -0
  711. package/es/template/teams-dashboard/index.js.map +1 -1
  712. package/es/util/bubbling.js +1 -0
  713. package/es/util/bubbling.js.map +1 -1
  714. package/es/util/build-query-string.d.ts +1 -1
  715. package/es/util/build-query-string.d.ts.map +1 -1
  716. package/es/util/build-query-string.js +2 -0
  717. package/es/util/build-query-string.js.map +1 -1
  718. package/es/util/button-icons.js.map +1 -1
  719. package/es/util/closest-step.js +6 -0
  720. package/es/util/closest-step.js.map +1 -1
  721. package/es/util/constants.js.map +1 -1
  722. package/es/util/external-content.js.map +1 -1
  723. package/es/util/get-class-state.js +2 -0
  724. package/es/util/get-class-state.js.map +1 -1
  725. package/es/util/get-clean-uri.js +1 -0
  726. package/es/util/get-clean-uri.js.map +1 -1
  727. package/es/util/get-resized-image.js +7 -0
  728. package/es/util/get-resized-image.js.map +1 -1
  729. package/es/util/get-shadow-box-color-from-primary.js +1 -2
  730. package/es/util/get-shadow-box-color-from-primary.js.map +1 -1
  731. package/es/util/image.js +4 -0
  732. package/es/util/image.js.map +1 -1
  733. package/es/util/navigation.js +9 -0
  734. package/es/util/navigation.js.map +1 -1
  735. package/es/util/parse-template-string.js +6 -0
  736. package/es/util/parse-template-string.js.map +1 -1
  737. package/es/util/proptypes.js.map +1 -1
  738. package/es/util/render-with-context.js +14 -8
  739. package/es/util/render-with-context.js.map +1 -1
  740. package/es/util/shallow-compare.js +2 -0
  741. package/es/util/shallow-compare.js.map +1 -1
  742. package/es/variables/analytics.d.ts +2 -2
  743. package/es/variables/analytics.d.ts.map +1 -1
  744. package/es/variables/analytics.js.map +1 -1
  745. package/es/variables/brand.native.d.ts +1 -1
  746. package/es/variables/brand.native.d.ts.map +1 -1
  747. package/es/variables/brand.native.js.map +1 -1
  748. package/es/variables/colors.d.ts +1 -1
  749. package/es/variables/colors.d.ts.map +1 -1
  750. package/es/variables/colors.js.map +1 -1
  751. package/es/variables/default-mobile-translations.d.ts +2 -2
  752. package/es/variables/default-mobile-translations.d.ts.map +1 -1
  753. package/es/variables/default-mobile-translations.js.map +1 -1
  754. package/es/variables/shadow.d.ts +1 -1
  755. package/es/variables/shadow.d.ts.map +1 -1
  756. package/es/variables/shadow.js +1 -0
  757. package/es/variables/shadow.js.map +1 -1
  758. package/es/variables/theme.native.d.ts +3 -3
  759. package/es/variables/theme.native.d.ts.map +1 -1
  760. package/es/variables/theme.native.js.map +1 -1
  761. package/es/variables/vibration.d.ts +2 -2
  762. package/es/variables/vibration.d.ts.map +1 -1
  763. package/es/variables/vibration.js.map +1 -1
  764. package/lib/atom/autocomplete/index.js +14 -0
  765. package/lib/atom/autocomplete/index.js.map +1 -1
  766. package/lib/atom/avatar/index.js +7 -0
  767. package/lib/atom/avatar/index.js.map +1 -1
  768. package/lib/atom/button/index.js +15 -0
  769. package/lib/atom/button/index.js.map +1 -1
  770. package/lib/atom/button/index.native.d.ts +1 -1
  771. package/lib/atom/button/index.native.d.ts.map +1 -1
  772. package/lib/atom/button/index.native.js +12 -0
  773. package/lib/atom/button/index.native.js.map +1 -1
  774. package/lib/atom/button-link/index.js +20 -0
  775. package/lib/atom/button-link/index.js.map +1 -1
  776. package/lib/atom/button-link-icon-only/index.js +22 -0
  777. package/lib/atom/button-link-icon-only/index.js.map +1 -1
  778. package/lib/atom/button-menu/index.js +13 -0
  779. package/lib/atom/button-menu/index.js.map +1 -1
  780. package/lib/atom/card-image-preview/index.js +9 -0
  781. package/lib/atom/card-image-preview/index.js.map +1 -1
  782. package/lib/atom/catalog-section/index.js +6 -0
  783. package/lib/atom/catalog-section/index.js.map +1 -1
  784. package/lib/atom/centered-text/index.js +6 -0
  785. package/lib/atom/centered-text/index.js.map +1 -1
  786. package/lib/atom/checkbox/index.js +17 -5
  787. package/lib/atom/checkbox/index.js.map +1 -1
  788. package/lib/atom/checkbox-with-title/index.js +11 -0
  789. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  790. package/lib/atom/chips/index.js +10 -0
  791. package/lib/atom/chips/index.js.map +1 -1
  792. package/lib/atom/choice/index.native.d.ts +1 -1
  793. package/lib/atom/choice/index.native.d.ts.map +1 -1
  794. package/lib/atom/choice/index.native.js +22 -2
  795. package/lib/atom/choice/index.native.js.map +1 -1
  796. package/lib/atom/clue/index.js +19 -0
  797. package/lib/atom/clue/index.js.map +1 -1
  798. package/lib/atom/content-badge/index.js +8 -0
  799. package/lib/atom/content-badge/index.js.map +1 -1
  800. package/lib/atom/cta/index.js +21 -0
  801. package/lib/atom/cta/index.js.map +1 -1
  802. package/lib/atom/difficulty-level/index.js +14 -0
  803. package/lib/atom/difficulty-level/index.js.map +1 -1
  804. package/lib/atom/drag-and-drop/index.js +25 -0
  805. package/lib/atom/drag-and-drop/index.js.map +1 -1
  806. package/lib/atom/empty-search-result/index.js +6 -0
  807. package/lib/atom/empty-search-result/index.js.map +1 -1
  808. package/lib/atom/gradient/index.native.d.ts +1 -1
  809. package/lib/atom/gradient/index.native.d.ts.map +1 -1
  810. package/lib/atom/gradient/index.native.js +11 -0
  811. package/lib/atom/gradient/index.native.js.map +1 -1
  812. package/lib/atom/header-back-button/index.native.d.ts +1 -1
  813. package/lib/atom/header-back-button/index.native.d.ts.map +1 -1
  814. package/lib/atom/header-back-button/index.native.js +16 -0
  815. package/lib/atom/header-back-button/index.native.js.map +1 -1
  816. package/lib/atom/header-back-icon/index.native.d.ts +1 -1
  817. package/lib/atom/header-back-icon/index.native.d.ts.map +1 -1
  818. package/lib/atom/header-back-icon/index.native.js +7 -0
  819. package/lib/atom/header-back-icon/index.native.js.map +1 -1
  820. package/lib/atom/html/index.native.d.ts +1 -1
  821. package/lib/atom/html/index.native.d.ts.map +1 -1
  822. package/lib/atom/html/index.native.js +21 -6
  823. package/lib/atom/html/index.native.js.map +1 -1
  824. package/lib/atom/image-background/index.native.d.ts +1 -1
  825. package/lib/atom/image-background/index.native.d.ts.map +1 -1
  826. package/lib/atom/image-background/index.native.js +33 -11
  827. package/lib/atom/image-background/index.native.js.map +1 -1
  828. package/lib/atom/image-upload/index.js +16 -0
  829. package/lib/atom/image-upload/index.js.map +1 -1
  830. package/lib/atom/input-checkbox/index.js +15 -0
  831. package/lib/atom/input-checkbox/index.js.map +1 -1
  832. package/lib/atom/input-color/index.js +10 -0
  833. package/lib/atom/input-color/index.js.map +1 -1
  834. package/lib/atom/input-doublestep/index.js +25 -0
  835. package/lib/atom/input-doublestep/index.js.map +1 -1
  836. package/lib/atom/input-html/index.js +16 -0
  837. package/lib/atom/input-html/index.js.map +1 -1
  838. package/lib/atom/input-html/input-preview.js +8 -2
  839. package/lib/atom/input-html/input-preview.js.map +1 -1
  840. package/lib/atom/input-readonly/index.js +6 -0
  841. package/lib/atom/input-readonly/index.js.map +1 -1
  842. package/lib/atom/input-search/index.js +13 -0
  843. package/lib/atom/input-search/index.js.map +1 -1
  844. package/lib/atom/input-switch/index.js +15 -0
  845. package/lib/atom/input-switch/index.js.map +1 -1
  846. package/lib/atom/input-text/index.js +17 -2
  847. package/lib/atom/input-text/index.js.map +1 -1
  848. package/lib/atom/input-text-with-title/index.js +8 -0
  849. package/lib/atom/input-text-with-title/index.js.map +1 -1
  850. package/lib/atom/input-textarea/index.js +16 -2
  851. package/lib/atom/input-textarea/index.js.map +1 -1
  852. package/lib/atom/label/index.js +7 -0
  853. package/lib/atom/label/index.js.map +1 -1
  854. package/lib/atom/life/index.js +15 -0
  855. package/lib/atom/life/index.js.map +1 -1
  856. package/lib/atom/link/index.js +32 -7
  857. package/lib/atom/link/index.js.map +1 -1
  858. package/lib/atom/loader/index.js +8 -0
  859. package/lib/atom/loader/index.js.map +1 -1
  860. package/lib/atom/loader/index.native.d.ts +1 -1
  861. package/lib/atom/loader/index.native.d.ts.map +1 -1
  862. package/lib/atom/loader/index.native.js +18 -2
  863. package/lib/atom/loader/index.native.js.map +1 -1
  864. package/lib/atom/lottie-wrapper/index.js +26 -3
  865. package/lib/atom/lottie-wrapper/index.js.map +1 -1
  866. package/lib/atom/lottie-wrapper/prop-types.d.ts +1 -1
  867. package/lib/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
  868. package/lib/atom/lottie-wrapper/prop-types.js +4 -0
  869. package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
  870. package/lib/atom/notification/index.js +8 -0
  871. package/lib/atom/notification/index.js.map +1 -1
  872. package/lib/atom/picture/index.js +21 -0
  873. package/lib/atom/picture/index.js.map +1 -1
  874. package/lib/atom/picture-background/index.js +10 -0
  875. package/lib/atom/picture-background/index.js.map +1 -1
  876. package/lib/atom/promo-code/index.js +7 -0
  877. package/lib/atom/promo-code/index.js.map +1 -1
  878. package/lib/atom/provider/index.js +28 -2
  879. package/lib/atom/provider/index.js.map +1 -1
  880. package/lib/atom/provider/web-context.d.ts +3 -3
  881. package/lib/atom/provider/web-context.d.ts.map +1 -1
  882. package/lib/atom/provider/web-context.js +18 -6
  883. package/lib/atom/provider/web-context.js.map +1 -1
  884. package/lib/atom/radio-group/index.js +13 -0
  885. package/lib/atom/radio-group/index.js.map +1 -1
  886. package/lib/atom/radio-group/item.js +14 -0
  887. package/lib/atom/radio-group/item.js.map +1 -1
  888. package/lib/atom/range/handle.js +25 -9
  889. package/lib/atom/range/handle.js.map +1 -1
  890. package/lib/atom/range/index.js +28 -0
  891. package/lib/atom/range/index.js.map +1 -1
  892. package/lib/atom/resource-miniature/index.js +13 -2
  893. package/lib/atom/resource-miniature/index.js.map +1 -1
  894. package/lib/atom/review-header-step-item/index.js +15 -0
  895. package/lib/atom/review-header-step-item/index.js.map +1 -1
  896. package/lib/atom/review-header-step-item/index.native.js +20 -0
  897. package/lib/atom/review-header-step-item/index.native.js.map +1 -1
  898. package/lib/atom/review-header-step-item/types.d.ts +2 -2
  899. package/lib/atom/review-header-step-item/types.d.ts.map +1 -1
  900. package/lib/atom/review-header-step-item/types.js +3 -0
  901. package/lib/atom/review-header-step-item/types.js.map +1 -1
  902. package/lib/atom/review-presentation/index.js +18 -5
  903. package/lib/atom/review-presentation/index.js.map +1 -1
  904. package/lib/atom/review-presentation/index.native.js +19 -3
  905. package/lib/atom/review-presentation/index.native.js.map +1 -1
  906. package/lib/atom/review-presentation/prop-types.d.ts +2 -2
  907. package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
  908. package/lib/atom/review-presentation/prop-types.js +4 -0
  909. package/lib/atom/review-presentation/prop-types.js.map +1 -1
  910. package/lib/atom/select/index.js +30 -2
  911. package/lib/atom/select/index.js.map +1 -1
  912. package/lib/atom/select-modal/index.native.d.ts +2 -2
  913. package/lib/atom/select-modal/index.native.d.ts.map +1 -1
  914. package/lib/atom/select-modal/index.native.js +25 -0
  915. package/lib/atom/select-modal/index.native.js.map +1 -1
  916. package/lib/atom/slide/index.js +8 -0
  917. package/lib/atom/slide/index.js.map +1 -1
  918. package/lib/atom/social-link/index.js +8 -0
  919. package/lib/atom/social-link/index.js.map +1 -1
  920. package/lib/atom/space/index.native.d.ts +1 -1
  921. package/lib/atom/space/index.native.d.ts.map +1 -1
  922. package/lib/atom/space/index.native.js +7 -0
  923. package/lib/atom/space/index.native.js.map +1 -1
  924. package/lib/atom/spinner/index.js +5 -0
  925. package/lib/atom/spinner/index.js.map +1 -1
  926. package/lib/atom/tab/index.js +9 -0
  927. package/lib/atom/tab/index.js.map +1 -1
  928. package/lib/atom/tab-content/index.js +7 -0
  929. package/lib/atom/tab-content/index.js.map +1 -1
  930. package/lib/atom/tag/index.js +8 -0
  931. package/lib/atom/tag/index.js.map +1 -1
  932. package/lib/atom/text/index.native.d.ts +1 -1
  933. package/lib/atom/text/index.native.d.ts.map +1 -1
  934. package/lib/atom/text/index.native.js +10 -0
  935. package/lib/atom/text/index.native.js.map +1 -1
  936. package/lib/atom/title/index.js +12 -0
  937. package/lib/atom/title/index.js.map +1 -1
  938. package/lib/atom/tooltip/index.js +16 -0
  939. package/lib/atom/tooltip/index.js.map +1 -1
  940. package/lib/atom/video-upload/index.js +8 -0
  941. package/lib/atom/video-upload/index.js.map +1 -1
  942. package/lib/atom/wizard-steps/index.js +7 -0
  943. package/lib/atom/wizard-steps/index.js.map +1 -1
  944. package/lib/hoc/animation/index.js +18 -0
  945. package/lib/hoc/animation/index.js.map +1 -1
  946. package/lib/hoc/animation-scheduler/index.js +39 -0
  947. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  948. package/lib/hoc/modal/index.native.d.ts +1 -1
  949. package/lib/hoc/modal/index.native.d.ts.map +1 -1
  950. package/lib/hoc/modal/index.native.js +14 -0
  951. package/lib/hoc/modal/index.native.js.map +1 -1
  952. package/lib/hoc/modal/select/index.native.d.ts +2 -2
  953. package/lib/hoc/modal/select/index.native.d.ts.map +1 -1
  954. package/lib/hoc/modal/select/index.native.js +19 -0
  955. package/lib/hoc/modal/select/index.native.js.map +1 -1
  956. package/lib/hoc/modal/select-item/index.native.d.ts +1 -1
  957. package/lib/hoc/modal/select-item/index.native.d.ts.map +1 -1
  958. package/lib/hoc/modal/select-item/index.native.js +16 -0
  959. package/lib/hoc/modal/select-item/index.native.js.map +1 -1
  960. package/lib/hoc/swapper/index.js +20 -4
  961. package/lib/hoc/swapper/index.js.map +1 -1
  962. package/lib/hoc/touchable/index.native.d.ts +1 -1
  963. package/lib/hoc/touchable/index.native.d.ts.map +1 -1
  964. package/lib/hoc/touchable/index.native.js +13 -0
  965. package/lib/hoc/touchable/index.native.js.map +1 -1
  966. package/lib/hoc/transition/index.js +11 -0
  967. package/lib/hoc/transition/index.js.map +1 -1
  968. package/lib/index.js +13 -0
  969. package/lib/index.js.map +1 -1
  970. package/lib/molecule/add-to-my-list/index.js +22 -0
  971. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  972. package/lib/molecule/answer/index.d.ts +0 -3
  973. package/lib/molecule/answer/index.d.ts.map +1 -1
  974. package/lib/molecule/answer/index.js +44 -14
  975. package/lib/molecule/answer/index.js.map +1 -1
  976. package/lib/molecule/answer/index.native.js +14 -0
  977. package/lib/molecule/answer/index.native.js.map +1 -1
  978. package/lib/molecule/answer/prop-types.d.ts +3 -3
  979. package/lib/molecule/answer/prop-types.d.ts.map +1 -1
  980. package/lib/molecule/answer/prop-types.js +13 -0
  981. package/lib/molecule/answer/prop-types.js.map +1 -1
  982. package/lib/molecule/answer/style.css +6 -5
  983. package/lib/molecule/audio/index.js +18 -2
  984. package/lib/molecule/audio/index.js.map +1 -1
  985. package/lib/molecule/banner/index.js +11 -0
  986. package/lib/molecule/banner/index.js.map +1 -1
  987. package/lib/molecule/battle-request/index.js +13 -2
  988. package/lib/molecule/battle-request/index.js.map +1 -1
  989. package/lib/molecule/brand-card/description.js +7 -0
  990. package/lib/molecule/brand-card/description.js.map +1 -1
  991. package/lib/molecule/brand-card/index.js +10 -0
  992. package/lib/molecule/brand-card/index.js.map +1 -1
  993. package/lib/molecule/brand-card-create/index.js +7 -0
  994. package/lib/molecule/brand-card-create/index.js.map +1 -1
  995. package/lib/molecule/brand-create-form/index.js +11 -0
  996. package/lib/molecule/brand-create-form/index.js.map +1 -1
  997. package/lib/molecule/brand-download-box/index.js +10 -0
  998. package/lib/molecule/brand-download-box/index.js.map +1 -1
  999. package/lib/molecule/brand-form-group/index.js +58 -0
  1000. package/lib/molecule/brand-form-group/index.js.map +1 -1
  1001. package/lib/molecule/brand-logo/index.native.js +11 -0
  1002. package/lib/molecule/brand-logo/index.native.js.map +1 -1
  1003. package/lib/molecule/brand-tabs/index.js +10 -0
  1004. package/lib/molecule/brand-tabs/index.js.map +1 -1
  1005. package/lib/molecule/brand-upload-box/index.js +17 -0
  1006. package/lib/molecule/brand-upload-box/index.js.map +1 -1
  1007. package/lib/molecule/breadcrumbs/index.js +13 -0
  1008. package/lib/molecule/breadcrumbs/index.js.map +1 -1
  1009. package/lib/molecule/bullet-point-menu-button/index.js +12 -0
  1010. package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
  1011. package/lib/molecule/card/customer.js +9 -0
  1012. package/lib/molecule/card/customer.js.map +1 -1
  1013. package/lib/molecule/card/favorite.js +15 -0
  1014. package/lib/molecule/card/favorite.js.map +1 -1
  1015. package/lib/molecule/card/index.js +34 -0
  1016. package/lib/molecule/card/index.js.map +1 -1
  1017. package/lib/molecule/card/notification.js +12 -0
  1018. package/lib/molecule/card/notification.js.map +1 -1
  1019. package/lib/molecule/card/selectable.js +9 -0
  1020. package/lib/molecule/card/selectable.js.map +1 -1
  1021. package/lib/molecule/card-congrats/index.native.js +15 -0
  1022. package/lib/molecule/card-congrats/index.native.js.map +1 -1
  1023. package/lib/molecule/card-congrats/types.d.ts +1 -1
  1024. package/lib/molecule/card-congrats/types.d.ts.map +1 -1
  1025. package/lib/molecule/card-content/index.js +26 -2
  1026. package/lib/molecule/card-content/index.js.map +1 -1
  1027. package/lib/molecule/card-with-button/index.js +12 -0
  1028. package/lib/molecule/card-with-button/index.js.map +1 -1
  1029. package/lib/molecule/cm-popin/index.js +19 -4
  1030. package/lib/molecule/cm-popin/index.js.map +1 -1
  1031. package/lib/molecule/cm-popin/index.native.js +15 -0
  1032. package/lib/molecule/cm-popin/index.native.js.map +1 -1
  1033. package/lib/molecule/cm-popin/types.d.ts +2 -2
  1034. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  1035. package/lib/molecule/cm-popin/types.js +5 -0
  1036. package/lib/molecule/cm-popin/types.js.map +1 -1
  1037. package/lib/molecule/cookie-banner/index.js +10 -0
  1038. package/lib/molecule/cookie-banner/index.js.map +1 -1
  1039. package/lib/molecule/coorp-manager-roles/index.js +8 -0
  1040. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  1041. package/lib/molecule/course-section/index.js +9 -0
  1042. package/lib/molecule/course-section/index.js.map +1 -1
  1043. package/lib/molecule/course-sections/index.js +16 -0
  1044. package/lib/molecule/course-sections/index.js.map +1 -1
  1045. package/lib/molecule/dashboard/battle-request-list/index.js +7 -0
  1046. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  1047. package/lib/molecule/dashboard/cards-list/index.js +59 -2
  1048. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  1049. package/lib/molecule/dashboard/news-list/index.js +10 -0
  1050. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  1051. package/lib/molecule/dashboard/review-banner/index.js +10 -0
  1052. package/lib/molecule/dashboard/review-banner/index.js.map +1 -1
  1053. package/lib/molecule/dashboard/start-battle/index.js +9 -0
  1054. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  1055. package/lib/molecule/discipline-cta/index.js +11 -0
  1056. package/lib/molecule/discipline-cta/index.js.map +1 -1
  1057. package/lib/molecule/discipline-header/index.js +20 -4
  1058. package/lib/molecule/discipline-header/index.js.map +1 -1
  1059. package/lib/molecule/discipline-partners/index.js +21 -0
  1060. package/lib/molecule/discipline-partners/index.js.map +1 -1
  1061. package/lib/molecule/discipline-scope/index.js +7 -0
  1062. package/lib/molecule/discipline-scope/index.js.map +1 -1
  1063. package/lib/molecule/drag-and-drop/index.js +20 -0
  1064. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  1065. package/lib/molecule/drag-and-drop/overlay.js +10 -0
  1066. package/lib/molecule/drag-and-drop/overlay.js.map +1 -1
  1067. package/lib/molecule/drag-and-drop/placeholder.js +7 -0
  1068. package/lib/molecule/drag-and-drop/placeholder.js.map +1 -1
  1069. package/lib/molecule/drag-and-drop/upload-report.js +30 -0
  1070. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  1071. package/lib/molecule/drag-and-drop-wrapper/index.js +8 -0
  1072. package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  1073. package/lib/molecule/draggable/index.js +11 -0
  1074. package/lib/molecule/draggable/index.js.map +1 -1
  1075. package/lib/molecule/draggable-list/index.js +12 -0
  1076. package/lib/molecule/draggable-list/index.js.map +1 -1
  1077. package/lib/molecule/empty-state-dashboard/index.js +8 -0
  1078. package/lib/molecule/empty-state-dashboard/index.js.map +1 -1
  1079. package/lib/molecule/empty-state-dashboard/types.d.ts +1 -1
  1080. package/lib/molecule/empty-state-dashboard/types.d.ts.map +1 -1
  1081. package/lib/molecule/empty-state-dashboard/types.js +4 -0
  1082. package/lib/molecule/empty-state-dashboard/types.js.map +1 -1
  1083. package/lib/molecule/external-content-button/index.js +11 -0
  1084. package/lib/molecule/external-content-button/index.js.map +1 -1
  1085. package/lib/molecule/external-content-viewer/index.js +9 -0
  1086. package/lib/molecule/external-content-viewer/index.js.map +1 -1
  1087. package/lib/molecule/feedback/index.js +19 -6
  1088. package/lib/molecule/feedback/index.js.map +1 -1
  1089. package/lib/molecule/filters/filters-wrapper.js +22 -0
  1090. package/lib/molecule/filters/filters-wrapper.js.map +1 -1
  1091. package/lib/molecule/filters/index.js +17 -0
  1092. package/lib/molecule/filters/index.js.map +1 -1
  1093. package/lib/molecule/forum/forum-comment/index.js +14 -0
  1094. package/lib/molecule/forum/forum-comment/index.js.map +1 -1
  1095. package/lib/molecule/forum/forum-post/index.js +15 -0
  1096. package/lib/molecule/forum/forum-post/index.js.map +1 -1
  1097. package/lib/molecule/forum/forum-thread/index.js +9 -0
  1098. package/lib/molecule/forum/forum-thread/index.js.map +1 -1
  1099. package/lib/molecule/forum/post-conditions.js +4 -0
  1100. package/lib/molecule/forum/post-conditions.js.map +1 -1
  1101. package/lib/molecule/go1-banner/index.js +9 -4
  1102. package/lib/molecule/go1-banner/index.js.map +1 -1
  1103. package/lib/molecule/hero/index.js +13 -0
  1104. package/lib/molecule/hero/index.js.map +1 -1
  1105. package/lib/molecule/input-text-with-titled-checkbox/index.js +8 -0
  1106. package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
  1107. package/lib/molecule/list-badges/index.js +8 -0
  1108. package/lib/molecule/list-badges/index.js.map +1 -1
  1109. package/lib/molecule/login-alert/index.js +8 -2
  1110. package/lib/molecule/login-alert/index.js.map +1 -1
  1111. package/lib/molecule/menu-list/index.js +10 -0
  1112. package/lib/molecule/menu-list/index.js.map +1 -1
  1113. package/lib/molecule/message-popin/index.js +6 -0
  1114. package/lib/molecule/message-popin/index.js.map +1 -1
  1115. package/lib/molecule/modal/index.js +13 -6
  1116. package/lib/molecule/modal/index.js.map +1 -1
  1117. package/lib/molecule/module-bubble/index.js +12 -0
  1118. package/lib/molecule/module-bubble/index.js.map +1 -1
  1119. package/lib/molecule/module-card/index.js +12 -2
  1120. package/lib/molecule/module-card/index.js.map +1 -1
  1121. package/lib/molecule/news/index.js +10 -0
  1122. package/lib/molecule/news/index.js.map +1 -1
  1123. package/lib/molecule/notification-banner/index.js +14 -0
  1124. package/lib/molecule/notification-banner/index.js.map +1 -1
  1125. package/lib/molecule/pagination/index.js +7 -0
  1126. package/lib/molecule/pagination/index.js.map +1 -1
  1127. package/lib/molecule/payment-form/index.js +18 -0
  1128. package/lib/molecule/payment-form/index.js.map +1 -1
  1129. package/lib/molecule/pdf/index.js +12 -2
  1130. package/lib/molecule/pdf/index.js.map +1 -1
  1131. package/lib/molecule/popin/index.js +14 -2
  1132. package/lib/molecule/popin/index.js.map +1 -1
  1133. package/lib/molecule/product-card/index.js +8 -0
  1134. package/lib/molecule/product-card/index.js.map +1 -1
  1135. package/lib/molecule/progress-bar/index.js +9 -0
  1136. package/lib/molecule/progress-bar/index.js.map +1 -1
  1137. package/lib/molecule/questions/drop-down/index.js +10 -0
  1138. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  1139. package/lib/molecule/questions/free-text/index.js +13 -0
  1140. package/lib/molecule/questions/free-text/index.js.map +1 -1
  1141. package/lib/molecule/questions/free-text/index.native.d.ts +1 -1
  1142. package/lib/molecule/questions/free-text/index.native.d.ts.map +1 -1
  1143. package/lib/molecule/questions/free-text/index.native.js +18 -12
  1144. package/lib/molecule/questions/free-text/index.native.js.map +1 -1
  1145. package/lib/molecule/questions/mobile/draggable/index.native.js +18 -0
  1146. package/lib/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  1147. package/lib/molecule/questions/mobile/slider/index.native.d.ts +2 -2
  1148. package/lib/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
  1149. package/lib/molecule/questions/mobile/slider/index.native.js +16 -0
  1150. package/lib/molecule/questions/mobile/slider/index.native.js.map +1 -1
  1151. package/lib/molecule/questions/mobile/switch/index.native.d.ts +1 -1
  1152. package/lib/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
  1153. package/lib/molecule/questions/mobile/switch/index.native.js +26 -0
  1154. package/lib/molecule/questions/mobile/switch/index.native.js.map +1 -1
  1155. package/lib/molecule/questions/mobile/template/index.native.d.ts +1 -1
  1156. package/lib/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
  1157. package/lib/molecule/questions/mobile/template/index.native.js +29 -0
  1158. package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
  1159. package/lib/molecule/questions/qcm/index.js +18 -3
  1160. package/lib/molecule/questions/qcm/index.js.map +1 -1
  1161. package/lib/molecule/questions/qcm-drag/index.js +25 -4
  1162. package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
  1163. package/lib/molecule/questions/qcm-graphic/index.js +14 -2
  1164. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  1165. package/lib/molecule/questions/question-range/index.js +25 -12
  1166. package/lib/molecule/questions/question-range/index.js.map +1 -1
  1167. package/lib/molecule/questions/template/index.js +24 -5
  1168. package/lib/molecule/questions/template/index.js.map +1 -1
  1169. package/lib/molecule/questions/types.d.ts +37 -12
  1170. package/lib/molecule/questions/types.d.ts.map +1 -1
  1171. package/lib/molecule/questions/types.js.map +1 -1
  1172. package/lib/molecule/quick-access-card/index.js +24 -0
  1173. package/lib/molecule/quick-access-card/index.js.map +1 -1
  1174. package/lib/molecule/quick-access-cards-group/index.js +10 -0
  1175. package/lib/molecule/quick-access-cards-group/index.js.map +1 -1
  1176. package/lib/molecule/resource-player/index.js +36 -5
  1177. package/lib/molecule/resource-player/index.js.map +1 -1
  1178. package/lib/molecule/review-card-congrats/index.js +23 -2
  1179. package/lib/molecule/review-card-congrats/index.js.map +1 -1
  1180. package/lib/molecule/review-card-congrats/prop-types.d.ts +1 -1
  1181. package/lib/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
  1182. package/lib/molecule/review-card-congrats/prop-types.js +4 -0
  1183. package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
  1184. package/lib/molecule/review-correction-popin/index.js +16 -4
  1185. package/lib/molecule/review-correction-popin/index.js.map +1 -1
  1186. package/lib/molecule/review-correction-popin/index.native.js +20 -0
  1187. package/lib/molecule/review-correction-popin/index.native.js.map +1 -1
  1188. package/lib/molecule/review-correction-popin/prop-types.d.ts +3 -3
  1189. package/lib/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
  1190. package/lib/molecule/review-correction-popin/prop-types.js +3 -0
  1191. package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
  1192. package/lib/molecule/review-header-steps/index.js +11 -0
  1193. package/lib/molecule/review-header-steps/index.js.map +1 -1
  1194. package/lib/molecule/review-header-steps/prop-types.d.ts +1 -1
  1195. package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  1196. package/lib/molecule/review-header-steps/prop-types.js +4 -0
  1197. package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
  1198. package/lib/molecule/scope-content/index.js +25 -6
  1199. package/lib/molecule/scope-content/index.js.map +1 -1
  1200. package/lib/molecule/scope-tabs/index.js +16 -0
  1201. package/lib/molecule/scope-tabs/index.js.map +1 -1
  1202. package/lib/molecule/search-form/index.js +12 -0
  1203. package/lib/molecule/search-form/index.js.map +1 -1
  1204. package/lib/molecule/select-multiple/index.js +35 -2
  1205. package/lib/molecule/select-multiple/index.js.map +1 -1
  1206. package/lib/molecule/setup-cohort-item/index.js +17 -0
  1207. package/lib/molecule/setup-cohort-item/index.js.map +1 -1
  1208. package/lib/molecule/setup-section/index.js +15 -0
  1209. package/lib/molecule/setup-section/index.js.map +1 -1
  1210. package/lib/molecule/setup-sections/index.js +10 -0
  1211. package/lib/molecule/setup-sections/index.js.map +1 -1
  1212. package/lib/molecule/setup-slide/index.js +30 -0
  1213. package/lib/molecule/setup-slide/index.js.map +1 -1
  1214. package/lib/molecule/setup-slider/index.js +11 -0
  1215. package/lib/molecule/setup-slider/index.js.map +1 -1
  1216. package/lib/molecule/share/index.js +29 -6
  1217. package/lib/molecule/share/index.js.map +1 -1
  1218. package/lib/molecule/skill-card/index.js +13 -0
  1219. package/lib/molecule/skill-card/index.js.map +1 -1
  1220. package/lib/molecule/skill-card/index.native.js +12 -0
  1221. package/lib/molecule/skill-card/index.native.js.map +1 -1
  1222. package/lib/molecule/skill-card/prop-types.d.ts +1 -1
  1223. package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
  1224. package/lib/molecule/skill-card/prop-types.js +3 -0
  1225. package/lib/molecule/skill-card/prop-types.js.map +1 -1
  1226. package/lib/molecule/ssmenu-list/index.js +6 -0
  1227. package/lib/molecule/ssmenu-list/index.js.map +1 -1
  1228. package/lib/molecule/subscription-freemium/index.js +7 -0
  1229. package/lib/molecule/subscription-freemium/index.js.map +1 -1
  1230. package/lib/molecule/subscription-premium/index.js +11 -0
  1231. package/lib/molecule/subscription-premium/index.js.map +1 -1
  1232. package/lib/molecule/table/index.js +28 -0
  1233. package/lib/molecule/table/index.js.map +1 -1
  1234. package/lib/molecule/teams-popin/index.js +10 -0
  1235. package/lib/molecule/teams-popin/index.js.map +1 -1
  1236. package/lib/molecule/theme-image/index.js +8 -0
  1237. package/lib/molecule/theme-image/index.js.map +1 -1
  1238. package/lib/molecule/title-and-checkbox-wrapper/index.js +12 -0
  1239. package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  1240. package/lib/molecule/titled-checkbox/index.js +11 -0
  1241. package/lib/molecule/titled-checkbox/index.js.map +1 -1
  1242. package/lib/molecule/unsubscribe/index.js +8 -0
  1243. package/lib/molecule/unsubscribe/index.js.map +1 -1
  1244. package/lib/molecule/vertical-tabs/index.js +14 -0
  1245. package/lib/molecule/vertical-tabs/index.js.map +1 -1
  1246. package/lib/molecule/video-iframe/index.js +19 -0
  1247. package/lib/molecule/video-iframe/index.js.map +1 -1
  1248. package/lib/molecule/video-player/index.js +31 -6
  1249. package/lib/molecule/video-player/index.js.map +1 -1
  1250. package/lib/molecule/video-player/jwplayer-prop-types.js +4 -0
  1251. package/lib/molecule/video-player/jwplayer-prop-types.js.map +1 -1
  1252. package/lib/molecule/video-player/jwplayer.js +36 -3
  1253. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  1254. package/lib/molecule/video-player/prop-types.js +4 -0
  1255. package/lib/molecule/video-player/prop-types.js.map +1 -1
  1256. package/lib/molecule/video-player/vimeo.js +46 -0
  1257. package/lib/molecule/video-player/vimeo.js.map +1 -1
  1258. package/lib/molecule/video-player-mobile/index.native.d.ts +8 -0
  1259. package/lib/molecule/video-player-mobile/index.native.d.ts.map +1 -0
  1260. package/lib/molecule/video-player-mobile/index.native.js +56 -0
  1261. package/lib/molecule/video-player-mobile/index.native.js.map +1 -0
  1262. package/lib/molecule/wizard-summary/index.js +28 -2
  1263. package/lib/molecule/wizard-summary/index.js.map +1 -1
  1264. package/lib/organism/accordion/container/index.js +18 -0
  1265. package/lib/organism/accordion/container/index.js.map +1 -1
  1266. package/lib/organism/accordion/coorp-manager/index.js +21 -0
  1267. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  1268. package/lib/organism/accordion/coorp-manager/part/index.js +19 -0
  1269. package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
  1270. package/lib/organism/accordion/part/index.js +12 -0
  1271. package/lib/organism/accordion/part/index.js.map +1 -1
  1272. package/lib/organism/accordion/toggler/index.js +20 -0
  1273. package/lib/organism/accordion/toggler/index.js.map +1 -1
  1274. package/lib/organism/brand-analytics/analytics-popin.js +14 -0
  1275. package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
  1276. package/lib/organism/brand-analytics/index.js +21 -0
  1277. package/lib/organism/brand-analytics/index.js.map +1 -1
  1278. package/lib/organism/brand-dashboard/index.js +10 -0
  1279. package/lib/organism/brand-dashboard/index.js.map +1 -1
  1280. package/lib/organism/brand-form/index.js +18 -0
  1281. package/lib/organism/brand-form/index.js.map +1 -1
  1282. package/lib/organism/brand-table/index.js +12 -0
  1283. package/lib/organism/brand-table/index.js.map +1 -1
  1284. package/lib/organism/brand-upload/index.js +13 -0
  1285. package/lib/organism/brand-upload/index.js.map +1 -1
  1286. package/lib/organism/cards-grid/index.js +9 -0
  1287. package/lib/organism/cards-grid/index.js.map +1 -1
  1288. package/lib/organism/cart/index.js +11 -0
  1289. package/lib/organism/cart/index.js.map +1 -1
  1290. package/lib/organism/content-translation/index.js +14 -0
  1291. package/lib/organism/content-translation/index.js.map +1 -1
  1292. package/lib/organism/course-selection/index.js +18 -0
  1293. package/lib/organism/course-selection/index.js.map +1 -1
  1294. package/lib/organism/discussion/index.js +14 -2
  1295. package/lib/organism/discussion/index.js.map +1 -1
  1296. package/lib/organism/get-the-app/index.js +21 -0
  1297. package/lib/organism/get-the-app/index.js.map +1 -1
  1298. package/lib/organism/grid-list/index.js +6 -0
  1299. package/lib/organism/grid-list/index.js.map +1 -1
  1300. package/lib/organism/header/index.js +9 -0
  1301. package/lib/organism/header/index.js.map +1 -1
  1302. package/lib/organism/header-v2/index.native.js +17 -3
  1303. package/lib/organism/header-v2/index.native.js.map +1 -1
  1304. package/lib/organism/hero/index.js +11 -0
  1305. package/lib/organism/hero/index.js.map +1 -1
  1306. package/lib/organism/list-item/index.js +12 -0
  1307. package/lib/organism/list-item/index.js.map +1 -1
  1308. package/lib/organism/list-items/index.js +10 -0
  1309. package/lib/organism/list-items/index.js.map +1 -1
  1310. package/lib/organism/mobile-navigation/index.native.d.ts +2 -2
  1311. package/lib/organism/mobile-navigation/index.native.d.ts.map +1 -1
  1312. package/lib/organism/mobile-navigation/index.native.js +16 -0
  1313. package/lib/organism/mobile-navigation/index.native.js.map +1 -1
  1314. package/lib/organism/mooc/image-slider/index.js +9 -0
  1315. package/lib/organism/mooc/image-slider/index.js.map +1 -1
  1316. package/lib/organism/mooc-footer/index.js +22 -10
  1317. package/lib/organism/mooc-footer/index.js.map +1 -1
  1318. package/lib/organism/mooc-header/index.js +55 -0
  1319. package/lib/organism/mooc-header/index.js.map +1 -1
  1320. package/lib/organism/podcast-popin-intro/index.native.d.ts +2 -2
  1321. package/lib/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
  1322. package/lib/organism/podcast-popin-intro/index.native.js +15 -0
  1323. package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
  1324. package/lib/organism/popin/index.js +12 -0
  1325. package/lib/organism/popin/index.js.map +1 -1
  1326. package/lib/organism/resource-browser/index.js +16 -0
  1327. package/lib/organism/resource-browser/index.js.map +1 -1
  1328. package/lib/organism/review-congrats/index.js +16 -1
  1329. package/lib/organism/review-congrats/index.js.map +1 -1
  1330. package/lib/organism/review-congrats/index.native.js +22 -2
  1331. package/lib/organism/review-congrats/index.native.js.map +1 -1
  1332. package/lib/organism/review-congrats/prop-types.d.ts +1 -1
  1333. package/lib/organism/review-congrats/prop-types.d.ts.map +1 -1
  1334. package/lib/organism/review-congrats/prop-types.js +5 -0
  1335. package/lib/organism/review-congrats/prop-types.js.map +1 -1
  1336. package/lib/organism/review-header/index.js +10 -0
  1337. package/lib/organism/review-header/index.js.map +1 -1
  1338. package/lib/organism/review-header/index.native.js +10 -0
  1339. package/lib/organism/review-header/index.native.js.map +1 -1
  1340. package/lib/organism/review-header/types.d.ts +1 -1
  1341. package/lib/organism/review-header/types.d.ts.map +1 -1
  1342. package/lib/organism/review-header/types.js +4 -0
  1343. package/lib/organism/review-header/types.js.map +1 -1
  1344. package/lib/organism/review-no-skills/index.js +7 -0
  1345. package/lib/organism/review-no-skills/index.js.map +1 -1
  1346. package/lib/organism/review-no-skills/index.native.js +12 -0
  1347. package/lib/organism/review-no-skills/index.native.js.map +1 -1
  1348. package/lib/organism/review-no-skills/prop-types.d.ts +1 -1
  1349. package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -1
  1350. package/lib/organism/review-no-skills/prop-types.js +3 -0
  1351. package/lib/organism/review-no-skills/prop-types.js.map +1 -1
  1352. package/lib/organism/review-skills/index.js +8 -0
  1353. package/lib/organism/review-skills/index.js.map +1 -1
  1354. package/lib/organism/review-skills/index.native.js +8 -0
  1355. package/lib/organism/review-skills/index.native.js.map +1 -1
  1356. package/lib/organism/review-skills/prop-types.d.ts +1 -1
  1357. package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
  1358. package/lib/organism/review-skills/prop-types.js +4 -0
  1359. package/lib/organism/review-skills/prop-types.js.map +1 -1
  1360. package/lib/organism/review-slide/index.js +31 -8
  1361. package/lib/organism/review-slide/index.js.map +1 -1
  1362. package/lib/organism/review-slide/index.native.d.ts.map +1 -1
  1363. package/lib/organism/review-slide/index.native.js +73 -4
  1364. package/lib/organism/review-slide/index.native.js.map +1 -1
  1365. package/lib/organism/review-slide/prop-types.d.ts +5 -5
  1366. package/lib/organism/review-slide/prop-types.d.ts.map +1 -1
  1367. package/lib/organism/review-slide/prop-types.js +7 -1
  1368. package/lib/organism/review-slide/prop-types.js.map +1 -1
  1369. package/lib/organism/review-stacked-slides/index.js +18 -2
  1370. package/lib/organism/review-stacked-slides/index.js.map +1 -1
  1371. package/lib/organism/review-stacked-slides/index.native.js +20 -5
  1372. package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
  1373. package/lib/organism/review-stacked-slides/prop-types.d.ts +1 -1
  1374. package/lib/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
  1375. package/lib/organism/review-stacked-slides/prop-types.js +6 -0
  1376. package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
  1377. package/lib/organism/rewards-form/index.js +14 -3
  1378. package/lib/organism/rewards-form/index.js.map +1 -1
  1379. package/lib/organism/search-and-chips-results/index.js +15 -0
  1380. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  1381. package/lib/organism/settings/index.js +25 -5
  1382. package/lib/organism/settings/index.js.map +1 -1
  1383. package/lib/organism/setup-header/index.js +15 -0
  1384. package/lib/organism/setup-header/index.js.map +1 -1
  1385. package/lib/organism/sidebar/index.js +58 -8
  1386. package/lib/organism/sidebar/index.js.map +1 -1
  1387. package/lib/organism/slider/index.js +24 -2
  1388. package/lib/organism/slider/index.js.map +1 -1
  1389. package/lib/organism/user-preferences/index.js +21 -5
  1390. package/lib/organism/user-preferences/index.js.map +1 -1
  1391. package/lib/organism/wizard-contents/index.js +28 -0
  1392. package/lib/organism/wizard-contents/index.js.map +1 -1
  1393. package/lib/template/activity/engine-stars.js +27 -5
  1394. package/lib/template/activity/engine-stars.js.map +1 -1
  1395. package/lib/template/activity/index.js +26 -2
  1396. package/lib/template/activity/index.js.map +1 -1
  1397. package/lib/template/activity/progression-item.js +17 -2
  1398. package/lib/template/activity/progression-item.js.map +1 -1
  1399. package/lib/template/activity/stars-summary.js +22 -0
  1400. package/lib/template/activity/stars-summary.js.map +1 -1
  1401. package/lib/template/app-player/loading/index.js +8 -0
  1402. package/lib/template/app-player/loading/index.js.map +1 -1
  1403. package/lib/template/app-player/player/index.js +9 -0
  1404. package/lib/template/app-player/player/index.js.map +1 -1
  1405. package/lib/template/app-player/player/slides/footer/index.js +20 -0
  1406. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  1407. package/lib/template/app-player/player/slides/header/index.js +11 -1
  1408. package/lib/template/app-player/player/slides/header/index.js.map +1 -1
  1409. package/lib/template/app-player/player/slides/header/learner.js +20 -4
  1410. package/lib/template/app-player/player/slides/header/learner.js.map +1 -1
  1411. package/lib/template/app-player/player/slides/header/lives.js +9 -0
  1412. package/lib/template/app-player/player/slides/header/lives.js.map +1 -1
  1413. package/lib/template/app-player/player/slides/header/microlearning.js +12 -2
  1414. package/lib/template/app-player/player/slides/header/microlearning.js.map +1 -1
  1415. package/lib/template/app-player/player/slides/index.js +89 -21
  1416. package/lib/template/app-player/player/slides/index.js.map +1 -1
  1417. package/lib/template/app-player/popin-correction/index.js +50 -10
  1418. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  1419. package/lib/template/app-player/popin-end/index.js +12 -0
  1420. package/lib/template/app-player/popin-end/index.js.map +1 -1
  1421. package/lib/template/app-player/popin-end/summary.js +69 -22
  1422. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  1423. package/lib/template/app-player/popin-header/index.js +67 -12
  1424. package/lib/template/app-player/popin-header/index.js.map +1 -1
  1425. package/lib/template/app-player/popin-no-access/index.js +6 -0
  1426. package/lib/template/app-player/popin-no-access/index.js.map +1 -1
  1427. package/lib/template/app-review/demo-ts/index.js +5 -0
  1428. package/lib/template/app-review/demo-ts/index.js.map +1 -1
  1429. package/lib/template/app-review/demo-ts/index.native.js +5 -0
  1430. package/lib/template/app-review/demo-ts/index.native.js.map +1 -1
  1431. package/lib/template/app-review/demo-ts/typings.d.ts +1 -1
  1432. package/lib/template/app-review/demo-ts/typings.d.ts.map +1 -1
  1433. package/lib/template/app-review/demo-ts/typings.js +3 -0
  1434. package/lib/template/app-review/demo-ts/typings.js.map +1 -1
  1435. package/lib/template/app-review/index.js +8 -0
  1436. package/lib/template/app-review/index.js.map +1 -1
  1437. package/lib/template/app-review/index.native.js +14 -2
  1438. package/lib/template/app-review/index.native.js.map +1 -1
  1439. package/lib/template/app-review/onboarding/index.js +3 -0
  1440. package/lib/template/app-review/onboarding/index.js.map +1 -1
  1441. package/lib/template/app-review/onboarding/index.native.js +3 -0
  1442. package/lib/template/app-review/onboarding/index.native.js.map +1 -1
  1443. package/lib/template/app-review/player/background-review.js +5 -0
  1444. package/lib/template/app-review/player/background-review.js.map +1 -1
  1445. package/lib/template/app-review/player/index.js +13 -0
  1446. package/lib/template/app-review/player/index.js.map +1 -1
  1447. package/lib/template/app-review/player/index.native.js +16 -0
  1448. package/lib/template/app-review/player/index.native.js.map +1 -1
  1449. package/lib/template/app-review/player/prop-types.d.ts +1 -1
  1450. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  1451. package/lib/template/app-review/player/prop-types.js +8 -0
  1452. package/lib/template/app-review/player/prop-types.js.map +1 -1
  1453. package/lib/template/app-review/prop-types.d.ts +2 -2
  1454. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  1455. package/lib/template/app-review/prop-types.js +5 -0
  1456. package/lib/template/app-review/prop-types.js.map +1 -1
  1457. package/lib/template/app-review/skills/index.js +10 -0
  1458. package/lib/template/app-review/skills/index.js.map +1 -1
  1459. package/lib/template/app-review/skills/index.native.js +16 -0
  1460. package/lib/template/app-review/skills/index.native.js.map +1 -1
  1461. package/lib/template/app-review/skills/prop-types.d.ts +1 -1
  1462. package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
  1463. package/lib/template/app-review/skills/prop-types.js +4 -0
  1464. package/lib/template/app-review/skills/prop-types.js.map +1 -1
  1465. package/lib/template/app-review/template-context.d.ts +5 -5
  1466. package/lib/template/app-review/template-context.d.ts.map +1 -1
  1467. package/lib/template/app-review/template-context.js +15 -0
  1468. package/lib/template/app-review/template-context.js.map +1 -1
  1469. package/lib/template/back-office/brand-create/index.js +8 -0
  1470. package/lib/template/back-office/brand-create/index.js.map +1 -1
  1471. package/lib/template/back-office/brand-list/index.js +26 -8
  1472. package/lib/template/back-office/brand-list/index.js.map +1 -1
  1473. package/lib/template/back-office/brand-update/index.js +51 -4
  1474. package/lib/template/back-office/brand-update/index.js.map +1 -1
  1475. package/lib/template/back-office/dashboard-preview/dashboard-popin.js +12 -0
  1476. package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
  1477. package/lib/template/back-office/dashboard-preview/index.js +30 -0
  1478. package/lib/template/back-office/dashboard-preview/index.js.map +1 -1
  1479. package/lib/template/back-office/layout/index.js +8 -0
  1480. package/lib/template/back-office/layout/index.js.map +1 -1
  1481. package/lib/template/battle-requests/index.js +12 -2
  1482. package/lib/template/battle-requests/index.js.map +1 -1
  1483. package/lib/template/cockpit/jw-uploader/index.js +11 -0
  1484. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  1485. package/lib/template/common/authors/index.js +18 -2
  1486. package/lib/template/common/authors/index.js.map +1 -1
  1487. package/lib/template/common/coorp-header/content.js +6 -0
  1488. package/lib/template/common/coorp-header/content.js.map +1 -1
  1489. package/lib/template/common/coorp-header/index.js +7 -0
  1490. package/lib/template/common/coorp-header/index.js.map +1 -1
  1491. package/lib/template/common/dashboard/index.js +27 -0
  1492. package/lib/template/common/dashboard/index.js.map +1 -1
  1493. package/lib/template/common/discipline/index.js +20 -0
  1494. package/lib/template/common/discipline/index.js.map +1 -1
  1495. package/lib/template/common/search-page/index.js +14 -0
  1496. package/lib/template/common/search-page/index.js.map +1 -1
  1497. package/lib/template/external-course/index.js +25 -2
  1498. package/lib/template/external-course/index.js.map +1 -1
  1499. package/lib/template/review-dashboard-skills/index.js +8 -0
  1500. package/lib/template/review-dashboard-skills/index.js.map +1 -1
  1501. package/lib/template/teams-dashboard/index.js +14 -0
  1502. package/lib/template/teams-dashboard/index.js.map +1 -1
  1503. package/lib/util/bubbling.js +2 -0
  1504. package/lib/util/bubbling.js.map +1 -1
  1505. package/lib/util/build-query-string.d.ts +1 -1
  1506. package/lib/util/build-query-string.d.ts.map +1 -1
  1507. package/lib/util/build-query-string.js +4 -0
  1508. package/lib/util/build-query-string.js.map +1 -1
  1509. package/lib/util/button-icons.js +2 -0
  1510. package/lib/util/button-icons.js.map +1 -1
  1511. package/lib/util/closest-step.js +7 -0
  1512. package/lib/util/closest-step.js.map +1 -1
  1513. package/lib/util/constants.js.map +1 -1
  1514. package/lib/util/external-content.js +5 -0
  1515. package/lib/util/external-content.js.map +1 -1
  1516. package/lib/util/get-class-state.js +3 -0
  1517. package/lib/util/get-class-state.js.map +1 -1
  1518. package/lib/util/get-clean-uri.js +2 -0
  1519. package/lib/util/get-clean-uri.js.map +1 -1
  1520. package/lib/util/get-resized-image.js +11 -0
  1521. package/lib/util/get-resized-image.js.map +1 -1
  1522. package/lib/util/get-shadow-box-color-from-primary.js +3 -0
  1523. package/lib/util/get-shadow-box-color-from-primary.js.map +1 -1
  1524. package/lib/util/image.js +5 -0
  1525. package/lib/util/image.js.map +1 -1
  1526. package/lib/util/navigation.js +13 -1
  1527. package/lib/util/navigation.js.map +1 -1
  1528. package/lib/util/parse-template-string.js +9 -0
  1529. package/lib/util/parse-template-string.js.map +1 -1
  1530. package/lib/util/proptypes.js +11 -0
  1531. package/lib/util/proptypes.js.map +1 -1
  1532. package/lib/util/render-with-context.js +22 -8
  1533. package/lib/util/render-with-context.js.map +1 -1
  1534. package/lib/util/shallow-compare.js +4 -0
  1535. package/lib/util/shallow-compare.js.map +1 -1
  1536. package/lib/variables/analytics.d.ts +2 -2
  1537. package/lib/variables/analytics.d.ts.map +1 -1
  1538. package/lib/variables/analytics.js.map +1 -1
  1539. package/lib/variables/brand.native.d.ts +1 -1
  1540. package/lib/variables/brand.native.d.ts.map +1 -1
  1541. package/lib/variables/brand.native.js.map +1 -1
  1542. package/lib/variables/colors.d.ts +1 -1
  1543. package/lib/variables/colors.d.ts.map +1 -1
  1544. package/lib/variables/colors.js.map +1 -1
  1545. package/lib/variables/default-mobile-translations.d.ts +2 -2
  1546. package/lib/variables/default-mobile-translations.d.ts.map +1 -1
  1547. package/lib/variables/default-mobile-translations.js.map +1 -1
  1548. package/lib/variables/shadow.d.ts +1 -1
  1549. package/lib/variables/shadow.d.ts.map +1 -1
  1550. package/lib/variables/shadow.js +1 -0
  1551. package/lib/variables/shadow.js.map +1 -1
  1552. package/lib/variables/theme.native.d.ts +3 -3
  1553. package/lib/variables/theme.native.d.ts.map +1 -1
  1554. package/lib/variables/theme.native.js +2 -0
  1555. package/lib/variables/theme.native.js.map +1 -1
  1556. package/lib/variables/vibration.d.ts +2 -2
  1557. package/lib/variables/vibration.d.ts.map +1 -1
  1558. package/lib/variables/vibration.js.map +1 -1
  1559. package/locales/.mtslconfig.json +1 -0
  1560. package/locales/fr/global.json +1 -1
  1561. package/locales/it/global.json +1 -1
  1562. package/locales/tr/global.json +1 -0
  1563. package/locales/uk/global.json +1 -0
  1564. package/locales/vi/global.json +1 -0
  1565. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["BulletPointMenuButton","props","disabled","buttonAriaLabel","menuAriaLabel","onClick","buttons","handleOnClick","useCallback","menuProps","menu","style","bulletPointMenu","bulletPointButtonProps","size","icon","bulletPointWrapper","propTypes","PropTypes","bool","string","ButtonMenu","func"],"sources":["../../../src/molecule/bullet-point-menu-button/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport ButtonMenu from '../../atom/button-menu';\nimport style from './style.css';\n\nconst BulletPointMenuButton = props => {\n const {disabled = false, buttonAriaLabel, menuAriaLabel, onClick, buttons} = props;\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const menuProps = {\n 'data-name': 'button-menu',\n buttons\n };\n\n const menu = (\n <div className={style.bulletPointMenu} data-name=\"menu-wrapper\" aria-label={menuAriaLabel}>\n <ButtonMenu {...menuProps} />\n </div>\n );\n const bulletPointButtonProps = {\n size: 'default',\n 'aria-label': buttonAriaLabel,\n 'data-name': 'bullet-point-button',\n icon: 'bullet-point',\n onClick: handleOnClick,\n disabled\n };\n\n return (\n <div className={style.bulletPointWrapper} data-name=\"bullet-point-wrapper\">\n <ButtonLinkIconOnly {...bulletPointButtonProps} />\n {menu}\n </div>\n );\n};\n\nBulletPointMenuButton.propTypes = {\n disabled: PropTypes.bool,\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: ButtonMenu.propTypes.buttons,\n onClick: PropTypes.func\n};\n\nexport default BulletPointMenuButton;\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AAAgC;AAAA;AAAA;AAEhC,MAAMA,qBAAqB,GAAGC,KAAK,IAAI;EACrC,MAAM;IAACC,QAAQ,GAAG,KAAK;IAAEC,eAAe;IAAEC,aAAa;IAAEC,OAAO;IAAEC;EAAO,CAAC,GAAGL,KAAK;EAClF,MAAMM,aAAa,GAAG,IAAAC,kBAAW,EAAC,MAAMH,OAAO,EAAE,EAAE,CAACA,OAAO,CAAC,CAAC;EAE7D,MAAMI,SAAS,GAAG;IAChB,WAAW,EAAE,aAAa;IAC1BH;EACF,CAAC;EAED,MAAMI,IAAI,gBACR;IAAK,SAAS,EAAEC,cAAK,CAACC,eAAgB;IAAC,aAAU,cAAc;IAAC,cAAYR;EAAc,gBACxF,6BAAC,mBAAU,EAAKK,SAAS,CAAI,CAEhC;EACD,MAAMI,sBAAsB,GAAG;IAC7BC,IAAI,EAAE,SAAS;IACf,YAAY,EAAEX,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClCY,IAAI,EAAE,cAAc;IACpBV,OAAO,EAAEE,aAAa;IACtBL;EACF,CAAC;EAED,oBACE;IAAK,SAAS,EAAES,cAAK,CAACK,kBAAmB;IAAC,aAAU;EAAsB,gBACxE,6BAAC,2BAAkB,EAAKH,sBAAsB,CAAI,EACjDH,IAAI,CACD;AAEV,CAAC;AAEDV,qBAAqB,CAACiB,SAAS,2CAAG;EAChCf,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,eAAe,EAAEe,kBAAS,CAACE,MAAM;EACjChB,aAAa,EAAEc,kBAAS,CAACE,MAAM;EAC/Bd,OAAO,EAAEe,mBAAU,CAACJ,SAAS,CAACX,OAAO;EACrCD,OAAO,EAAEa,kBAAS,CAACI;AACrB,CAAC;AAAC,eAEatB,qBAAqB;AAAA"}
1
+ {"version":3,"file":"index.js","names":["BulletPointMenuButton","props","disabled","buttonAriaLabel","menuAriaLabel","onClick","buttons","handleOnClick","useCallback","menuProps","menu","style","bulletPointMenu","bulletPointButtonProps","size","icon","bulletPointWrapper","propTypes","PropTypes","bool","string","ButtonMenu","func"],"sources":["../../../src/molecule/bullet-point-menu-button/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport ButtonMenu from '../../atom/button-menu';\nimport style from './style.css';\n\nconst BulletPointMenuButton = props => {\n const {disabled = false, buttonAriaLabel, menuAriaLabel, onClick, buttons} = props;\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const menuProps = {\n 'data-name': 'button-menu',\n buttons\n };\n\n const menu = (\n <div className={style.bulletPointMenu} data-name=\"menu-wrapper\" aria-label={menuAriaLabel}>\n <ButtonMenu {...menuProps} />\n </div>\n );\n const bulletPointButtonProps = {\n size: 'default',\n 'aria-label': buttonAriaLabel,\n 'data-name': 'bullet-point-button',\n icon: 'bullet-point',\n onClick: handleOnClick,\n disabled\n };\n\n return (\n <div className={style.bulletPointWrapper} data-name=\"bullet-point-wrapper\">\n <ButtonLinkIconOnly {...bulletPointButtonProps} />\n {menu}\n </div>\n );\n};\n\nBulletPointMenuButton.propTypes = {\n disabled: PropTypes.bool,\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: ButtonMenu.propTypes.buttons,\n onClick: PropTypes.func\n};\n\nexport default BulletPointMenuButton;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,qBAAqB,GAAGC,KAAK,IAAI;EACrC,MAAM;IAACC,QAAQ,GAAG,KAAZ;IAAmBC,eAAnB;IAAoCC,aAApC;IAAmDC,OAAnD;IAA4DC;EAA5D,IAAuEL,KAA7E;EACA,MAAMM,aAAa,GAAG,IAAAC,kBAAA,EAAY,MAAMH,OAAO,EAAzB,EAA6B,CAACA,OAAD,CAA7B,CAAtB;EAEA,MAAMI,SAAS,GAAG;IAChB,aAAa,aADG;IAEhBH;EAFgB,CAAlB;;EAKA,MAAMI,IAAI,gBACR;IAAK,SAAS,EAAEC,cAAA,CAAMC,eAAtB;IAAuC,aAAU,cAAjD;IAAgE,cAAYR;EAA5E,gBACE,6BAAC,mBAAD,EAAgBK,SAAhB,CADF,CADF;;EAKA,MAAMI,sBAAsB,GAAG;IAC7BC,IAAI,EAAE,SADuB;IAE7B,cAAcX,eAFe;IAG7B,aAAa,qBAHgB;IAI7BY,IAAI,EAAE,cAJuB;IAK7BV,OAAO,EAAEE,aALoB;IAM7BL;EAN6B,CAA/B;EASA,oBACE;IAAK,SAAS,EAAES,cAAA,CAAMK,kBAAtB;IAA0C,aAAU;EAApD,gBACE,6BAAC,2BAAD,EAAwBH,sBAAxB,CADF,EAEGH,IAFH,CADF;AAMD,CA7BD;;AA+BAV,qBAAqB,CAACiB,SAAtB,2CAAkC;EAChCf,QAAQ,EAAEgB,kBAAA,CAAUC,IADY;EAEhChB,eAAe,EAAEe,kBAAA,CAAUE,MAFK;EAGhChB,aAAa,EAAEc,kBAAA,CAAUE,MAHO;EAIhCd,OAAO,EAAEe,mBAAA,CAAWJ,SAAX,CAAqBX,OAJE;EAKhCD,OAAO,EAAEa,kBAAA,CAAUI;AALa,CAAlC;eAQetB,qB"}
@@ -2,17 +2,25 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = exports.THEMES = void 0;
5
+
5
6
  var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
+
6
8
  var _react = _interopRequireDefault(require("react"));
9
+
7
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
8
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
+
9
14
  var _customer = _interopRequireDefault(require("./customer.css"));
15
+
10
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
11
18
  const THEMES = {
12
19
  default: null,
13
20
  coorpmanager: _customer.default.coorpmanager
14
21
  };
15
22
  exports.THEMES = THEMES;
23
+
16
24
  const Customer = props => {
17
25
  const {
18
26
  name,
@@ -35,6 +43,7 @@ const Customer = props => {
35
43
  className: _customer.default.original
36
44
  }, "Original ") : null, !coorpOriginal && name));
37
45
  };
46
+
38
47
  Customer.propTypes = process.env.NODE_ENV !== "production" ? {
39
48
  theme: _propTypes.default.oneOf((0, _keys2.default)(THEMES)),
40
49
  type: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"customer.js","names":["THEMES","default","coorpmanager","style","Customer","props","name","type","coorpOriginal","theme","disabled","ariaLabel","className","classnames","customer","chapterCustomer","content","coorp","original","propTypes","PropTypes","oneOf","string","bool","isRequired"],"sources":["../../../src/molecule/card/customer.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {keys} from 'lodash/fp';\nimport style from './customer.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst Customer = props => {\n const {name, type, coorpOriginal, theme, disabled = false, 'aria-label': ariaLabel} = props;\n const className = classnames(\n THEMES[theme],\n style.customer,\n type === 'chapter' ? style.chapterCustomer : null\n );\n\n return (\n <div className={className} disabled={disabled} aria-label={ariaLabel}>\n <div className={style.content}>\n {coorpOriginal ? <span className={style.coorp}>Coorp </span> : null}\n {coorpOriginal ? <span className={style.original}>Original </span> : null}\n {!coorpOriginal && name}\n </div>\n </div>\n );\n};\n\nCustomer.propTypes = {\n theme: PropTypes.oneOf(keys(THEMES)),\n type: PropTypes.string,\n name: PropTypes.string,\n coorpOriginal: PropTypes.bool.isRequired,\n disabled: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nexport default Customer;\n"],"mappings":";;;;;AAAA;AACA;AACA;AAEA;AAAmC;AAE5B,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IAAI;EACbC,YAAY,EAAEC,iBAAK,CAACD;AACtB,CAAC;AAAC;AAEF,MAAME,QAAQ,GAAGC,KAAK,IAAI;EACxB,MAAM;IAACC,IAAI;IAAEC,IAAI;IAAEC,aAAa;IAAEC,KAAK;IAAEC,QAAQ,GAAG,KAAK;IAAE,YAAY,EAAEC;EAAS,CAAC,GAAGN,KAAK;EAC3F,MAAMO,SAAS,GAAG,IAAAC,mBAAU,EAC1Bb,MAAM,CAACS,KAAK,CAAC,EACbN,iBAAK,CAACW,QAAQ,EACdP,IAAI,KAAK,SAAS,GAAGJ,iBAAK,CAACY,eAAe,GAAG,IAAI,CAClD;EAED,oBACE;IAAK,SAAS,EAAEH,SAAU;IAAC,QAAQ,EAAEF,QAAS;IAAC,cAAYC;EAAU,gBACnE;IAAK,SAAS,EAAER,iBAAK,CAACa;EAAQ,GAC3BR,aAAa,gBAAG;IAAM,SAAS,EAAEL,iBAAK,CAACc;EAAM,GAAC,QAAM,CAAO,GAAG,IAAI,EAClET,aAAa,gBAAG;IAAM,SAAS,EAAEL,iBAAK,CAACe;EAAS,GAAC,WAAS,CAAO,GAAG,IAAI,EACxE,CAACV,aAAa,IAAIF,IAAI,CACnB,CACF;AAEV,CAAC;AAEDF,QAAQ,CAACe,SAAS,2CAAG;EACnBV,KAAK,EAAEW,kBAAS,CAACC,KAAK,CAAC,oBAAKrB,MAAM,CAAC,CAAC;EACpCO,IAAI,EAAEa,kBAAS,CAACE,MAAM;EACtBhB,IAAI,EAAEc,kBAAS,CAACE,MAAM;EACtBd,aAAa,EAAEY,kBAAS,CAACG,IAAI,CAACC,UAAU;EACxCd,QAAQ,EAAEU,kBAAS,CAACG,IAAI;EACxB,YAAY,EAAEH,kBAAS,CAACE;AAC1B,CAAC;AAAC,eAEalB,QAAQ;AAAA"}
1
+ {"version":3,"file":"customer.js","names":["THEMES","default","coorpmanager","style","Customer","props","name","type","coorpOriginal","theme","disabled","ariaLabel","className","classnames","customer","chapterCustomer","content","coorp","original","propTypes","PropTypes","oneOf","string","bool","isRequired"],"sources":["../../../src/molecule/card/customer.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {keys} from 'lodash/fp';\nimport style from './customer.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst Customer = props => {\n const {name, type, coorpOriginal, theme, disabled = false, 'aria-label': ariaLabel} = props;\n const className = classnames(\n THEMES[theme],\n style.customer,\n type === 'chapter' ? style.chapterCustomer : null\n );\n\n return (\n <div className={className} disabled={disabled} aria-label={ariaLabel}>\n <div className={style.content}>\n {coorpOriginal ? <span className={style.coorp}>Coorp </span> : null}\n {coorpOriginal ? <span className={style.original}>Original </span> : null}\n {!coorpOriginal && name}\n </div>\n </div>\n );\n};\n\nCustomer.propTypes = {\n theme: PropTypes.oneOf(keys(THEMES)),\n type: PropTypes.string,\n name: PropTypes.string,\n coorpOriginal: PropTypes.bool.isRequired,\n disabled: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nexport default Customer;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;AAEO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,iBAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,QAAQ,GAAGC,KAAK,IAAI;EACxB,MAAM;IAACC,IAAD;IAAOC,IAAP;IAAaC,aAAb;IAA4BC,KAA5B;IAAmCC,QAAQ,GAAG,KAA9C;IAAqD,cAAcC;EAAnE,IAAgFN,KAAtF;EACA,MAAMO,SAAS,GAAG,IAAAC,mBAAA,EAChBb,MAAM,CAACS,KAAD,CADU,EAEhBN,iBAAA,CAAMW,QAFU,EAGhBP,IAAI,KAAK,SAAT,GAAqBJ,iBAAA,CAAMY,eAA3B,GAA6C,IAH7B,CAAlB;EAMA,oBACE;IAAK,SAAS,EAAEH,SAAhB;IAA2B,QAAQ,EAAEF,QAArC;IAA+C,cAAYC;EAA3D,gBACE;IAAK,SAAS,EAAER,iBAAA,CAAMa;EAAtB,GACGR,aAAa,gBAAG;IAAM,SAAS,EAAEL,iBAAA,CAAMc;EAAvB,YAAH,GAAiD,IADjE,EAEGT,aAAa,gBAAG;IAAM,SAAS,EAAEL,iBAAA,CAAMe;EAAvB,eAAH,GAAuD,IAFvE,EAGG,CAACV,aAAD,IAAkBF,IAHrB,CADF,CADF;AASD,CAjBD;;AAmBAF,QAAQ,CAACe,SAAT,2CAAqB;EACnBV,KAAK,EAAEW,kBAAA,CAAUC,KAAV,CAAgB,oBAAKrB,MAAL,CAAhB,CADY;EAEnBO,IAAI,EAAEa,kBAAA,CAAUE,MAFG;EAGnBhB,IAAI,EAAEc,kBAAA,CAAUE,MAHG;EAInBd,aAAa,EAAEY,kBAAA,CAAUG,IAAV,CAAeC,UAJX;EAKnBd,QAAQ,EAAEU,kBAAA,CAAUG,IALD;EAMnB,cAAcH,kBAAA,CAAUE;AANL,CAArB;eASelB,Q"}
@@ -2,21 +2,33 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
+
5
6
  var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
7
+
6
8
  var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
9
+
7
10
  var _get2 = _interopRequireDefault(require("lodash/fp/get"));
11
+
8
12
  var _react = _interopRequireDefault(require("react"));
13
+
9
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
10
16
  var _classnames = _interopRequireDefault(require("classnames"));
17
+
11
18
  var _novaIcons = require("@coorpacademy/nova-icons");
19
+
12
20
  var _provider = _interopRequireDefault(require("../../atom/provider"));
21
+
13
22
  var _favorite = _interopRequireDefault(require("./favorite.css"));
23
+
14
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
15
26
  class Favorite extends _react.default.Component {
16
27
  constructor(props, context) {
17
28
  super(props, context);
18
29
  this.handleFavoviteClick = this.handleFavoviteClick.bind(this);
19
30
  }
31
+
20
32
  handleFavoviteClick(e) {
21
33
  const {
22
34
  disabled,
@@ -26,6 +38,7 @@ class Favorite extends _react.default.Component {
26
38
  e.preventDefault();
27
39
  if (!disabled) onFavoriteClick(e);
28
40
  }
41
+
29
42
  render() {
30
43
  const {
31
44
  skin
@@ -67,7 +80,9 @@ class Favorite extends _react.default.Component {
67
80
  "aria-label": ariaLabel.addToFavorite
68
81
  })));
69
82
  }
83
+
70
84
  }
85
+
71
86
  Favorite.contextTypes = {
72
87
  skin: _provider.default.childContextTypes.skin
73
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"favorite.js","names":["Favorite","React","Component","constructor","props","context","handleFavoviteClick","bind","e","disabled","onFavoriteClick","stopPropagation","preventDefault","render","skin","favorite","addFavoriteToolTip","removeFavoriteToolTip","className","ariaLabel","primaryColor","darkColor","brandColor","toolTipView","style","showToolTip","blocFavorite","classnames","selected","color","checkIcon","removeFromFavorite","moreIcon","addToFavorite","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","func","shape"],"sources":["../../../src/molecule/card/favorite.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport style from './favorite.css';\n\nclass Favorite extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n favorite: PropTypes.bool,\n disabled: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onFavoriteClick: PropTypes.func,\n 'aria-label': PropTypes.shape({\n favorite: PropTypes.string,\n addToFavorite: PropTypes.string,\n removeFromFavorite: PropTypes.string\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleFavoviteClick = this.handleFavoviteClick.bind(this);\n }\n\n handleFavoviteClick(e) {\n const {disabled, onFavoriteClick = noop} = this.props;\n e.stopPropagation();\n e.preventDefault();\n if (!disabled) onFavoriteClick(e);\n }\n\n render() {\n const {skin} = this.context;\n const {\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n className,\n 'aria-label': ariaLabel = {}\n } = this.props;\n\n const primaryColor = get('common.primary', skin);\n const darkColor = get('common.dark', skin);\n const brandColor = get('common.brand', skin);\n const toolTipView =\n !isEmpty(removeFavoriteToolTip) && !isEmpty(addFavoriteToolTip) ? (\n <div className={style.showToolTip}>\n <span>{favorite ? removeFavoriteToolTip : addFavoriteToolTip}</span>\n </div>\n ) : null;\n\n return (\n <div className={style.blocFavorite}>\n {toolTipView}\n <div\n data-name=\"favorite\"\n aria-label={ariaLabel.favorite}\n className={classnames(style.favorite, className, favorite && style.selected)}\n onClick={this.handleFavoviteClick}\n style={{\n color: primaryColor\n }}\n >\n {favorite ? (\n <CheckIcon\n className={style.checkIcon}\n color={brandColor}\n width={13}\n height={13}\n aria-label={ariaLabel.removeFromFavorite}\n />\n ) : (\n <MoreIcon\n className={style.moreIcon}\n color={darkColor}\n width={13}\n height={13}\n aria-label={ariaLabel.addToFavorite}\n />\n )}\n </div>\n </div>\n );\n }\n}\n\nexport default Favorite;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AAIA;AACA;AAAmC;AAEnC,MAAMA,QAAQ,SAASC,cAAK,CAACC,SAAS,CAAC;EAmBrCC,WAAW,CAACC,KAAK,EAAEC,OAAO,EAAE;IAC1B,KAAK,CAACD,KAAK,EAAEC,OAAO,CAAC;IACrB,IAAI,CAACC,mBAAmB,GAAG,IAAI,CAACA,mBAAmB,CAACC,IAAI,CAAC,IAAI,CAAC;EAChE;EAEAD,mBAAmB,CAACE,CAAC,EAAE;IACrB,MAAM;MAACC,QAAQ;MAAEC,eAAe;IAAO,CAAC,GAAG,IAAI,CAACN,KAAK;IACrDI,CAAC,CAACG,eAAe,EAAE;IACnBH,CAAC,CAACI,cAAc,EAAE;IAClB,IAAI,CAACH,QAAQ,EAAEC,eAAe,CAACF,CAAC,CAAC;EACnC;EAEAK,MAAM,GAAG;IACP,MAAM;MAACC;IAAI,CAAC,GAAG,IAAI,CAACT,OAAO;IAC3B,MAAM;MACJU,QAAQ;MACRC,kBAAkB;MAClBC,qBAAqB;MACrBC,SAAS;MACT,YAAY,EAAEC,SAAS,GAAG,CAAC;IAC7B,CAAC,GAAG,IAAI,CAACf,KAAK;IAEd,MAAMgB,YAAY,GAAG,mBAA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AS,CAACC,MAAM;EAC3BxB,QAAQ,EAAEuB,kBAAS,CAACE,IAAI;EACxB/B,QAAQ,EAAE6B,kBAAS,CAACE,IAAI;EACxBxB,kBAAkB,EAAEsB,kBAAS,CAACC,MAAM;EACpCtB,qBAAqB,EAAEqB,kBAAS,CAACC,MAAM;EACvC7B,eAAe,EAAE4B,kBAAS,CAACG,IAAI;EAC/B,YAAY,EAAEH,kBAAS,CAACI,KAAK,CAAC;IAC5B3B,QAAQ,EAAEuB,kBAAS,CAACC,MAAM;IAC1BN,aAAa,EAAEK,kBAAS,CAACC,MAAM;IAC/BR,kBAAkB,EAAEO,kBAAS,CAACC;EAChC,CAAC;AACH,CAAC;AAAA,eAyEYvC,QAAQ;AAAA"}
1
+ {"version":3,"file":"favorite.js","names":["Favorite","React","Component","constructor","props","context","handleFavoviteClick","bind","e","disabled","onFavoriteClick","stopPropagation","preventDefault","render","skin","favorite","addFavoriteToolTip","removeFavoriteToolTip","className","ariaLabel","primaryColor","darkColor","brandColor","toolTipView","style","showToolTip","blocFavorite","classnames","selected","color","checkIcon","removeFromFavorite","moreIcon","addToFavorite","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","func","shape"],"sources":["../../../src/molecule/card/favorite.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport style from './favorite.css';\n\nclass Favorite extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n favorite: PropTypes.bool,\n disabled: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onFavoriteClick: PropTypes.func,\n 'aria-label': PropTypes.shape({\n favorite: PropTypes.string,\n addToFavorite: PropTypes.string,\n removeFromFavorite: PropTypes.string\n })\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props, context) {\n super(props, context);\n this.handleFavoviteClick = this.handleFavoviteClick.bind(this);\n }\n\n handleFavoviteClick(e) {\n const {disabled, onFavoriteClick = noop} = this.props;\n e.stopPropagation();\n e.preventDefault();\n if (!disabled) onFavoriteClick(e);\n }\n\n render() {\n const {skin} = this.context;\n const {\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n className,\n 'aria-label': ariaLabel = {}\n } = this.props;\n\n const primaryColor = get('common.primary', skin);\n const darkColor = get('common.dark', skin);\n const brandColor = get('common.brand', skin);\n const toolTipView =\n !isEmpty(removeFavoriteToolTip) && !isEmpty(addFavoriteToolTip) ? (\n <div className={style.showToolTip}>\n <span>{favorite ? removeFavoriteToolTip : addFavoriteToolTip}</span>\n </div>\n ) : null;\n\n return (\n <div className={style.blocFavorite}>\n {toolTipView}\n <div\n data-name=\"favorite\"\n aria-label={ariaLabel.favorite}\n className={classnames(style.favorite, className, favorite && style.selected)}\n onClick={this.handleFavoviteClick}\n style={{\n color: primaryColor\n }}\n >\n {favorite ? (\n <CheckIcon\n className={style.checkIcon}\n color={brandColor}\n width={13}\n height={13}\n aria-label={ariaLabel.removeFromFavorite}\n />\n ) : (\n <MoreIcon\n className={style.moreIcon}\n color={darkColor}\n width={13}\n height={13}\n aria-label={ariaLabel.addToFavorite}\n />\n )}\n </div>\n </div>\n );\n }\n}\n\nexport default Favorite;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;;;AAEA,MAAMA,QAAN,SAAuBC,cAAA,CAAMC,SAA7B,CAAuC;EAmBrCC,WAAW,CAACC,KAAD,EAAQC,OAAR,EAAiB;IAC1B,MAAMD,KAAN,EAAaC,OAAb;IACA,KAAKC,mBAAL,GAA2B,KAAKA,mBAAL,CAAyBC,IAAzB,CAA8B,IAA9B,CAA3B;EACD;;EAEDD,mBAAmB,CAACE,CAAD,EAAI;IACrB,MAAM;MAACC,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ADO,gBASP,6BAAC,wCAAD;MACE,SAAS,EAAEP,iBAAA,CAAMQ,QADnB;MAEE,KAAK,EAAEX,SAFT;MAGE,KAAK,EAAE,EAHT;MAIE,MAAM,EAAE,EAJV;MAKE,cAAYF,SAAS,CAACc;IALxB,EAlBJ,CAFF,CADF;EAgCD;;AAnFoC;;AAAjCjC,Q,CAeGkC,Y,GAAe;EACpBpB,IAAI,EAAEqB,iBAAA,CAASC,iBAAT,CAA2BtB;AADb,C;AAflBd,Q,CACGqC,S,2CAAY;EACjBnB,SAAS,EAAEoB,kBAAA,CAAUC,MADJ;EAEjBxB,QAAQ,EAAEuB,kBAAA,CAAUE,IAFH;EAGjB/B,QAAQ,EAAE6B,kBAAA,CAAUE,IAHH;EAIjBxB,kBAAkB,EAAEsB,kBAAA,CAAUC,MAJb;EAKjBtB,qBAAqB,EAAEqB,kBAAA,CAAUC,MALhB;EAMjB7B,eAAe,EAAE4B,kBAAA,CAAUG,IANV;EAOjB,cAAcH,kBAAA,CAAUI,KAAV,CAAgB;IAC5B3B,QAAQ,EAAEuB,kBAAA,CAAUC,MADQ;IAE5BN,aAAa,EAAEK,kBAAA,CAAUC,MAFG;IAG5BR,kBAAkB,EAAEO,kBAAA,CAAUC;EAHF,CAAhB;AAPG,C;eAqFNvC,Q"}
@@ -2,32 +2,55 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = exports.THEMES = void 0;
5
+
5
6
  var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
+
6
8
  var _pick2 = _interopRequireDefault(require("lodash/fp/pick"));
9
+
7
10
  var _isUndefined2 = _interopRequireDefault(require("lodash/fp/isUndefined"));
11
+
8
12
  var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
13
+
9
14
  var _get2 = _interopRequireDefault(require("lodash/fp/get"));
15
+
10
16
  var _react = _interopRequireWildcard(require("react"));
17
+
11
18
  var _propTypes = _interopRequireDefault(require("prop-types"));
19
+
12
20
  var _classnames = _interopRequireDefault(require("classnames"));
21
+
13
22
  var _novaIcons = require("@coorpacademy/nova-icons");
23
+
14
24
  var _externalContent = require("../../util/external-content");
25
+
15
26
  var _provider = _interopRequireDefault(require("../../atom/provider"));
27
+
16
28
  var _cardContent = _interopRequireWildcard(require("../card-content"));
29
+
17
30
  var _customer = _interopRequireDefault(require("./customer"));
31
+
18
32
  var _favorite = _interopRequireDefault(require("./favorite"));
33
+
19
34
  var _selectable = _interopRequireDefault(require("./selectable"));
35
+
20
36
  var _notification = _interopRequireDefault(require("./notification"));
37
+
21
38
  var _style = _interopRequireDefault(require("./style.css"));
39
+
22
40
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
+
23
42
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
43
+
24
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45
+
25
46
  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); }
47
+
26
48
  const THEMES = {
27
49
  default: null,
28
50
  coorpmanager: _style.default.coorpmanager
29
51
  };
30
52
  exports.THEMES = THEMES;
53
+
31
54
  const CardBackground = ({
32
55
  type,
33
56
  image,
@@ -39,14 +62,17 @@ const CardBackground = ({
39
62
  const externalContent = (0, _externalContent.isExternalContent)(type);
40
63
  const primaryColor = (0, _get2.default)('common.primary', skin);
41
64
  const whiteColor = (0, _get2.default)('common.white', skin);
65
+
42
66
  if (externalContent && _externalContent.EXTERNAL_CONTENT_ICONS[type]) {
43
67
  const IconType = _externalContent.EXTERNAL_CONTENT_ICONS[type].icon;
44
68
  const iconColor = _externalContent.EXTERNAL_CONTENT_ICONS[type].color;
69
+
45
70
  const backgroundIcon = /*#__PURE__*/_react.default.createElement("div", {
46
71
  className: _style.default.externalIconCircleWrapper
47
72
  }, /*#__PURE__*/_react.default.createElement(IconType, {
48
73
  className: _style.default.externalIcon
49
74
  }));
75
+
50
76
  if (image) {
51
77
  const _backgroundIcon = /*#__PURE__*/_react.default.createElement("div", {
52
78
  className: (0, _classnames.default)(_style.default.externalIconCircleWrapper, _style.default.externalIconCircleWithImageWrapper),
@@ -56,6 +82,7 @@ const CardBackground = ({
56
82
  }, /*#__PURE__*/_react.default.createElement(IconType, {
57
83
  className: _style.default.externalIconWithImage
58
84
  }));
85
+
59
86
  return /*#__PURE__*/_react.default.createElement("div", {
60
87
  className: _style.default.imageWrapper
61
88
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -68,6 +95,7 @@ const CardBackground = ({
68
95
  className: (0, _classnames.default)(_style.default.externalContentHeader, _style.default.externalBackground)
69
96
  }, _backgroundIcon));
70
97
  }
98
+
71
99
  return /*#__PURE__*/_react.default.createElement("div", {
72
100
  className: _style.default.imageWrapper
73
101
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -79,6 +107,7 @@ const CardBackground = ({
79
107
  className: _style.default.externalContentHeader
80
108
  }, backgroundIcon));
81
109
  }
110
+
82
111
  const emptyIcon = empty ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyPictures, {
83
112
  className: _style.default.emptyIcon,
84
113
  color: whiteColor
@@ -95,6 +124,7 @@ const CardBackground = ({
95
124
  }
96
125
  }, emptyIcon));
97
126
  };
127
+
98
128
  CardBackground.contextTypes = {
99
129
  skin: _provider.default.childContextTypes.skin
100
130
  };
@@ -152,16 +182,20 @@ const Card = /*#__PURE__*/(0, _react.memo)(function Card(props, context) {
152
182
  const inlineBadgeStyle = {
153
183
  color: primaryColor
154
184
  };
185
+
155
186
  const getType = contentType => {
156
187
  switch (contentType) {
157
188
  case 'chapter':
158
189
  return 'microlearning';
190
+
159
191
  case 'course':
160
192
  return 'learner';
193
+
161
194
  default:
162
195
  return contentType;
163
196
  }
164
197
  };
198
+
165
199
  return /*#__PURE__*/_react.default.createElement("div", {
166
200
  className: cardStyle,
167
201
  "data-name": "card",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","ariaLabel","skin","externalContent","isExternalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","classnames","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","memo","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","useMemo","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf","Favorite","Selectable"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AAEA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgC;AAAA;AAAA;AAAA;AAEzB,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IAAI;EACbC,YAAY,EAAEC,cAAK,CAACD;AACtB,CAAC;AAAC;AAEF,MAAME,cAAc,GAAG,CAAC;EAACC,IAAI;EAAEC,KAAK;EAAEC,KAAK;EAAE,YAAY,EAAEC;AAAS,CAAC,EAAE;EAACC;AAAI,CAAC,KAAK;EAChF,MAAMC,eAAe,GAAG,IAAAC,kCAAiB,EAACN,IAAI,CAAC;EAC/C,MAAMO,YAAY,GAAG,mBAAI,gBAAgB,EAAEH,IAAI,CAAC;EAChD,MAAMI,UAAU,GAAG,mBAAI,cAAc,EAAEJ,IAAI,CAAC;EAE5C,IAAIC,eAAe,IAAII,uCAAsB,CAACT,IAAI,CAAC,EAAE;IACnD,MAAMU,QAAQ,GAAGD,uCAAsB,CAACT,IAAI,CAAC,CAACW,IAAI;IAClD,MAAMC,SAAS,GAAGH,uCAAsB,CAACT,IAAI,CAAC,CAACa,KAAK;IACpD,MAAMC,cAAc,gBAClB;MAAK,SAAS,EAAEhB,cAAK,CAACiB;IAA0B,gBAC9C,6BAAC,QAAQ;MAAC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AE+B,oBAAe,CAACxD,SAAS,CAACyB,UAAU;EAChDC,KAAK,EAAEzB,kBAAS,CAACwD,KAAK,CAAC,oBAAK7F,MAAM,CAAC,CAAC;EACpC,YAAY,EAAEqC,kBAAS,CAACC,MAAM;EAC9B,uBAAuB,EAAED,kBAAS,CAACC,MAAM;EACzC,qBAAqB,EAAEwD,iBAAQ,CAAC1D,SAAS,CAAC,YAAY,CAAC;EACvD,uBAAuB,EAAE2D,mBAAU,CAAC3D,SAAS,CAAC,YAAY,CAAC;EAC3D,qBAAqB,EAAEoD,iBAAQ,CAACpD,SAAS,CAAC,YAAY,CAAC;EACvD,kBAAkB,EAAEC,kBAAS,CAACC,MAAM;EACpC,qBAAqB,EAAED,kBAAS,CAACC,MAAM;EACvC,yBAAyB,EAAEsD,oBAAe,CAACxD,SAAS,CAAC,YAAY;AACnE,CAAC;AAAC,eACaI,IAAI;AAAA"}
1
+ {"version":3,"file":"index.js","names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","ariaLabel","skin","externalContent","isExternalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","classnames","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","memo","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","useMemo","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf","Favorite","Selectable"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,cAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,KAAd;EAAqB,cAAcC;AAAnC,CAAD,EAAgD;EAACC;AAAD,CAAhD,KAA2D;EAChF,MAAMC,eAAe,GAAG,IAAAC,kCAAA,EAAkBN,IAAlB,CAAxB;EACA,MAAMO,YAAY,GAAG,mBAAI,gBAAJ,EAAsBH,IAAtB,CAArB;EACA,MAAMI,UAAU,GAAG,mBAAI,cAAJ,EAAoBJ,IAApB,CAAnB;;EAEA,IAAIC,eAAe,IAAII,uCAAA,CAAuBT,IAAvB,CAAvB,EAAqD;IACnD,MAAMU,QAAQ,GAAGD,uCAAA,CAAuBT,IAAvB,EAA6BW,IAA9C;IACA,MAAMC,SAAS,GAAGH,uCAAA,CAAuBT,IAAvB,EAA6Ba,KAA/C;;IACA,MAAMC,cAAc,gBAClB;MAAK,SAAS,EAAEhB,cAAA,CAAMiB;IAAtB,gBACE,6BA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B,CAjBC;EAkBfwB,aAAa,EAAEgC,oBAAA,CAAgBxD,SAAhB,CAA0BwB,aAlB1B;EAmBfC,UAAU,EAAE+B,oBAAA,CAAgBxD,SAAhB,CAA0ByB,UAnBvB;EAoBfC,KAAK,EAAEzB,kBAAA,CAAUwD,KAAV,CAAgB,oBAAK7F,MAAL,CAAhB,CApBQ;EAqBf,cAAcqC,kBAAA,CAAUC,MArBT;EAsBf,yBAAyBD,kBAAA,CAAUC,MAtBpB;EAuBf,uBAAuBwD,iBAAA,CAAS1D,SAAT,CAAmB,YAAnB,CAvBR;EAwBf,yBAAyB2D,mBAAA,CAAW3D,SAAX,CAAqB,YAArB,CAxBV;EAyBf,uBAAuBoD,iBAAA,CAASpD,SAAT,CAAmB,YAAnB,CAzBR;EA0Bf,oBAAoBC,kBAAA,CAAUC,MA1Bf;EA2Bf,uBAAuBD,kBAAA,CAAUC,MA3BlB;EA4Bf,2BAA2BsD,oBAAA,CAAgBxD,SAAhB,CAA0B,YAA1B;AA5BZ,CAAjB;eA8BeI,I"}
@@ -2,25 +2,36 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
+
5
6
  var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
+
6
8
  var _get2 = _interopRequireDefault(require("lodash/fp/get"));
9
+
7
10
  var _react = _interopRequireDefault(require("react"));
11
+
8
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
9
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
+
10
16
  var _novaIcons = require("@coorpacademy/nova-icons");
17
+
11
18
  var _notification = _interopRequireDefault(require("./notification.css"));
19
+
12
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
13
22
  const NOTIFICATION_ICON = {
14
23
  addFavorite: _novaIcons.NovaCompositionCoorpacademyCheck,
15
24
  removeFavorite: _novaIcons.NovaCompositionNavigationMore,
16
25
  lock: _novaIcons.NovaSolidLoginLocked,
17
26
  unlock: _novaIcons.NovaSolidLocksLockUnlock1
18
27
  };
28
+
19
29
  const handleOverlayClick = e => {
20
30
  e.stopPropagation();
21
31
  e.preventDefault();
22
32
  return false;
23
33
  };
34
+
24
35
  const Notification = props => {
25
36
  const {
26
37
  message,
@@ -44,6 +55,7 @@ const Notification = props => {
44
55
  role: "status"
45
56
  }, message))));
46
57
  };
58
+
47
59
  Notification.propTypes = process.env.NODE_ENV !== "production" ? {
48
60
  message: _propTypes.default.string.isRequired,
49
61
  icon: _propTypes.default.oneOf((0, _keys2.default)(NOTIFICATION_ICON)).isRequired
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","names":["NOTIFICATION_ICON","addFavorite","CheckIcon","removeFavorite","MoreIcon","lock","LockIcon","unlock","UnlockIcon","handleOverlayClick","e","stopPropagation","preventDefault","Notification","props","message","icon","IconType","classnames","style","showOverlay","notificationWrapper","notification","propTypes","PropTypes","string","isRequired","oneOf"],"sources":["../../../src/molecule/card/notification.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaSolidLoginLocked as LockIcon,\n NovaSolidLocksLockUnlock1 as UnlockIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport style from './notification.css';\n\nconst NOTIFICATION_ICON = {\n addFavorite: CheckIcon,\n removeFavorite: MoreIcon,\n lock: LockIcon,\n unlock: UnlockIcon\n};\n\nconst handleOverlayClick = e => {\n e.stopPropagation();\n e.preventDefault();\n return false;\n};\n\nconst Notification = props => {\n const {message, icon} = props;\n\n const IconType = get(icon, NOTIFICATION_ICON);\n return (\n <div\n data-name=\"notification\"\n data-type={icon}\n onClick={handleOverlayClick}\n className={classnames(style.showOverlay, style.notificationWrapper)}\n >\n <div className={style.notification}>\n <IconType className={style.icon} color={null} stroke={null} />\n <div className={style.message}>\n <span role=\"status\">{message}</span>\n </div>\n </div>\n </div>\n );\n};\nNotification.propTypes = {\n message: PropTypes.string.isRequired,\n icon: PropTypes.oneOf(keys(NOTIFICATION_ICON)).isRequired\n};\n\nexport default Notification;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAEA;AAMA;AAAuC;AAEvC,MAAMA,iBAAiB,GAAG;EACxBC,WAAW,EAAEC,2CAAS;EACtBC,cAAc,EAAEC,wCAAQ;EACxBC,IAAI,EAAEC,+BAAQ;EACdC,MAAM,EAAEC;AACV,CAAC;AAED,MAAMC,kBAAkB,GAAGC,CAAC,IAAI;EAC9BA,CAAC,CAACC,eAAe,EAAE;EACnBD,CAAC,CAACE,cAAc,EAAE;EAClB,OAAO,KAAK;AACd,CAAC;AAED,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IAACC,OAAO;IAAEC;EAAI,CAAC,GAAGF,KAAK;EAE7B,MAAMG,QAAQ,GAAG,mBAAID,IAAI,EAAEhB,iBAAiB,CAAC;EAC7C,oBACE;IACE,aAAU,cAAc;IACxB,aAAWgB,IAAK;IAChB,OAAO,EAAEP,kBAAmB;IAC5B,SAAS,EAAE,IAAAS,mBAAU,EAACC,qBAAK,CAACC,WAAW,EAAED,qBAAK,CAACE,mBAAmB;EAAE,gBAEpE;IAAK,SAAS,EAAEF,qBAAK,CAACG;EAAa,gBACjC,6BAAC,QAAQ;IAAC,SAAS,EAAEH,qBAAK,CAACH,IAAK;IAAC,KAAK,EAAE,IAAK;IAAC,MAAM,EAAE;EAAK,EAAG,eAC9D;IAAK,SAAS,EAAEG,qBAAK,CAACJ;EAAQ,gBAC5B;IAAM,IAAI,EAAC;EAAQ,GAAEA,OAAO,CAAQ,CAChC,CACF,CACF;AAEV,CAAC;AACDF,YAAY,CAACU,SAAS,2CAAG;EACvBR,OAAO,EAAES,kBAAS,CAACC,MAAM,CAACC,UAAU;EACpCV,IAAI,EAAEQ,kBAAS,CAACG,KAAK,CAAC,oBAAK3B,iBAAiB,CAAC,CAAC,CAAC0B;AACjD,CAAC;AAAC,eAEab,YAAY;AAAA"}
1
+ {"version":3,"file":"notification.js","names":["NOTIFICATION_ICON","addFavorite","CheckIcon","removeFavorite","MoreIcon","lock","LockIcon","unlock","UnlockIcon","handleOverlayClick","e","stopPropagation","preventDefault","Notification","props","message","icon","IconType","classnames","style","showOverlay","notificationWrapper","notification","propTypes","PropTypes","string","isRequired","oneOf"],"sources":["../../../src/molecule/card/notification.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaSolidLoginLocked as LockIcon,\n NovaSolidLocksLockUnlock1 as UnlockIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport style from './notification.css';\n\nconst NOTIFICATION_ICON = {\n addFavorite: CheckIcon,\n removeFavorite: MoreIcon,\n lock: LockIcon,\n unlock: UnlockIcon\n};\n\nconst handleOverlayClick = e => {\n e.stopPropagation();\n e.preventDefault();\n return false;\n};\n\nconst Notification = props => {\n const {message, icon} = props;\n\n const IconType = get(icon, NOTIFICATION_ICON);\n return (\n <div\n data-name=\"notification\"\n data-type={icon}\n onClick={handleOverlayClick}\n className={classnames(style.showOverlay, style.notificationWrapper)}\n >\n <div className={style.notification}>\n <IconType className={style.icon} color={null} stroke={null} />\n <div className={style.message}>\n <span role=\"status\">{message}</span>\n </div>\n </div>\n </div>\n );\n};\nNotification.propTypes = {\n message: PropTypes.string.isRequired,\n icon: PropTypes.oneOf(keys(NOTIFICATION_ICON)).isRequired\n};\n\nexport default Notification;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAMA;;;;AAEA,MAAMA,iBAAiB,GAAG;EACxBC,WAAW,EAAEC,2CADW;EAExBC,cAAc,EAAEC,wCAFQ;EAGxBC,IAAI,EAAEC,+BAHkB;EAIxBC,MAAM,EAAEC;AAJgB,CAA1B;;AAOA,MAAMC,kBAAkB,GAAGC,CAAC,IAAI;EAC9BA,CAAC,CAACC,eAAF;EACAD,CAAC,CAACE,cAAF;EACA,OAAO,KAAP;AACD,CAJD;;AAMA,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IAACC,OAAD;IAAUC;EAAV,IAAkBF,KAAxB;EAEA,MAAMG,QAAQ,GAAG,mBAAID,IAAJ,EAAUhB,iBAAV,CAAjB;EACA,oBACE;IACE,aAAU,cADZ;IAEE,aAAWgB,IAFb;IAGE,OAAO,EAAEP,kBAHX;IAIE,SAAS,EAAE,IAAAS,mBAAA,EAAWC,qBAAA,CAAMC,WAAjB,EAA8BD,qBAAA,CAAME,mBAApC;EAJb,gBAME;IAAK,SAAS,EAAEF,qBAAA,CAAMG;EAAtB,gBACE,6BAAC,QAAD;IAAU,SAAS,EAAEH,qBAAA,CAAMH,IAA3B;IAAiC,KAAK,EAAE,IAAxC;IAA8C,MAAM,EAAE;EAAtD,EADF,eAEE;IAAK,SAAS,EAAEG,qBAAA,CAAMJ;EAAtB,gBACE;IAAM,IAAI,EAAC;EAAX,GAAqBA,OAArB,CADF,CAFF,CANF,CADF;AAeD,CAnBD;;AAoBAF,YAAY,CAACU,SAAb,2CAAyB;EACvBR,OAAO,EAAES,kBAAA,CAAUC,MAAV,CAAiBC,UADH;EAEvBV,IAAI,EAAEQ,kBAAA,CAAUG,KAAV,CAAgB,oBAAK3B,iBAAL,CAAhB,EAAyC0B;AAFxB,CAAzB;eAKeb,Y"}
@@ -2,13 +2,21 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
+
5
6
  var _isUndefined2 = _interopRequireDefault(require("lodash/fp/isUndefined"));
7
+
6
8
  var _react = _interopRequireDefault(require("react"));
9
+
7
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
8
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
+
9
14
  var _novaIcons = require("@coorpacademy/nova-icons");
15
+
10
16
  var _selectable = _interopRequireDefault(require("./selectable.css"));
17
+
11
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
12
20
  const Selectable = props => {
13
21
  const {
14
22
  isSelected,
@@ -36,6 +44,7 @@ const Selectable = props => {
36
44
  "aria-label": ariaLabel.show
37
45
  })));
38
46
  };
47
+
39
48
  Selectable.propTypes = process.env.NODE_ENV !== "production" ? {
40
49
  isSelected: _propTypes.default.bool,
41
50
  hidden: _propTypes.default.bool,
@@ -1 +1 @@
1
- {"version":3,"file":"selectable.js","names":["Selectable","props","isSelected","hidden","ariaLabel","classnames","style","selectable","selected","circle","iconWrapper","addIcon","select","checkIcon","unSelect","hideIcon","hide","showIcon","show","propTypes","PropTypes","bool","shape","string"],"sources":["../../../src/molecule/card/selectable.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isUndefined} from 'lodash/fp';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaLineContentEditionHide as HideIcon,\n NovaCompositionCoorpacademyEye as ShowIcon\n} from '@coorpacademy/nova-icons';\nimport style from './selectable.css';\n\nconst Selectable = props => {\n const {isSelected, hidden = false, 'aria-label': ariaLabel = {}} = props;\n\n if (isUndefined(isSelected)) return null;\n\n return (\n <div\n className={classnames(style.selectable, isSelected && style.selected, hidden && style.hidden)}\n >\n <div className={style.circle} />\n <div className={style.iconWrapper}>\n <AddIcon className={style.addIcon} aria-label={ariaLabel.select} />\n <CheckIcon className={style.checkIcon} aria-label={ariaLabel.unSelect} />\n <HideIcon className={style.hideIcon} aria-label={ariaLabel.hide} />\n <ShowIcon className={style.showIcon} aria-label={ariaLabel.show} />\n </div>\n </div>\n );\n};\n\nSelectable.propTypes = {\n isSelected: PropTypes.bool,\n hidden: PropTypes.bool,\n 'aria-label': PropTypes.shape({\n select: PropTypes.string,\n unSelect: PropTypes.string\n })\n};\n\nexport default Selectable;\n"],"mappings":";;;;;AAAA;AAC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","ariaLabel","classnames","style","selectable","selected","circle","iconWrapper","addIcon","select","checkIcon","unSelect","hideIcon","hide","showIcon","show","propTypes","PropTypes","bool","shape","string"],"sources":["../../../src/molecule/card/selectable.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isUndefined} from 'lodash/fp';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaLineContentEditionHide as HideIcon,\n NovaCompositionCoorpacademyEye as ShowIcon\n} from '@coorpacademy/nova-icons';\nimport style from './selectable.css';\n\nconst Selectable = props => {\n const {isSelected, hidden = false, 'aria-label': ariaLabel = {}} = props;\n\n if (isUndefined(isSelected)) return null;\n\n return (\n <div\n className={classnames(style.selectable, isSelected && style.selected, hidden && style.hidden)}\n >\n <div className={style.circle} />\n <div className={style.iconWrapper}>\n <AddIcon className={style.addIcon} aria-label={ariaLabel.select} />\n <CheckIcon className={style.checkIcon} aria-label={ariaLabel.unSelect} />\n <HideIcon className={style.hideIcon} aria-label={ariaLabel.hide} />\n <ShowIcon className={style.showIcon} aria-label={ariaLabel.show} />\n </div>\n </div>\n );\n};\n\nSelectable.propTypes = {\n isSelected: PropTypes.bool,\n hidden: PropTypes.bool,\n 'aria-label': PropTypes.shape({\n select: PropTypes.string,\n unSelect: PropTypes.string\n })\n};\n\nexport default Selectable;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAMA;;;;AAEA,MAAMA,UAAU,GAAGC,KAAK,IAAI;EAC1B,MAAM;IAACC,UAAD;IAAaC,MAAM,GAAG,KAAtB;IAA6B,cAAcC,SAAS,GAAG;EAAvD,IAA6DH,KAAnE;EAEA,IAAI,2BAAYC,UAAZ,CAAJ,EAA6B,OAAO,IAAP;EAE7B,oBACE;IACE,SAAS,EAAE,IAAAG,mBAAA,EAAWC,mBAAA,CAAMC,UAAjB,EAA6BL,UAAU,IAAII,mBAAA,CAAME,QAAjD,EAA2DL,MAAM,IAAIG,mBAAA,CAAMH,MAA3E;EADb,gBAGE;IAAK,SAAS,EAAEG,mBAAA,CAAMG;EAAtB,EAHF,eAIE;IAAK,SAAS,EAAEH,mBAAA,CAAMI;EAAtB,gBACE,6BAAC,uCAAD;IAAS,SAAS,EAAEJ,mBAAA,CAAMK,OAA1B;IAAmC,cAAYP,SAAS,CAACQ;EAAzD,EADF,eAEE,6BAAC,sCAAD;IAAW,SAAS,EAAEN,mBAAA,CAAMO,SAA5B;IAAuC,cAAYT,SAAS,CAACU;EAA7D,EAFF,eAGE,6BAAC,qCAAD;IAAU,SAAS,EAAER,mBAAA,CAAMS,QAA3B;IAAqC,cAAYX,SAAS,CAACY;EAA3D,EAHF,eAIE,6BAAC,yCAAD;IAAU,SAAS,EAAEV,mBAAA,CAAMW,QAA3B;IAAqC,cAAYb,SAAS,CAACc;EAA3D,EAJF,CAJF,CADF;AAaD,CAlBD;;AAoBAlB,UAAU,CAACmB,SAAX,2CAAuB;EACrBjB,UAAU,EAAEkB,kBAAA,CAAUC,IADD;EAErBlB,MAAM,EAAEiB,kBAAA,CAAUC,IAFG;EAGrB,cAAcD,kBAAA,CAAUE,KAAV,CAAgB;IAC5BV,MAAM,EAAEQ,kBAAA,CAAUG,MADU;IAE5BT,QAAQ,EAAEM,kBAAA,CAAUG;EAFQ,CAAhB;AAHO,CAAvB;eASevB,U"}
@@ -2,15 +2,25 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
+
5
6
  var _react = _interopRequireWildcard(require("react"));
7
+
6
8
  var _reactNative = require("react-native");
9
+
7
10
  var _lottieReactNative = _interopRequireDefault(require("lottie-react-native"));
11
+
8
12
  var _templateContext = require("../../template/app-review/template-context");
13
+
9
14
  var _shadow = require("../../variables/shadow");
15
+
10
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
11
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
12
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
13
22
  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); }
23
+
14
24
  const createStyleSheet = theme => _reactNative.StyleSheet.create({
15
25
  animation: {
16
26
  marginBottom: 12,
@@ -53,6 +63,7 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
53
63
  height: 53
54
64
  }
55
65
  });
66
+
56
67
  const CardCongrats = ({
57
68
  animationUri,
58
69
  Icon,
@@ -68,11 +79,14 @@ const CardCongrats = ({
68
79
  const [styleSheet, setStylesheet] = (0, _react.useState)(null);
69
80
  (0, _react.useEffect)(() => {
70
81
  const _stylesheet = createStyleSheet(theme);
82
+
71
83
  setStylesheet(_stylesheet);
72
84
  }, [theme]);
85
+
73
86
  if (!styleSheet) {
74
87
  return null;
75
88
  }
89
+
76
90
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
77
91
  style: styleSheet.card
78
92
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
@@ -98,6 +112,7 @@ const CardCongrats = ({
98
112
  color: iconColor
99
113
  })));
100
114
  };
115
+
101
116
  var _default = CardCongrats;
102
117
  exports.default = _default;
103
118
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","animation","marginBottom","width","height","card","alignItems","paddingTop","paddingBottom","borderRadius","margin","BOX_STYLE","backgroundColor","colors","white","cardTitle","fontWeight","fontSize","lineHeight","color","text","primary","reward","rewardText","marginHorizontal","iconBig","iconSmall","CardCongrats","animationUri","Icon","value","iconColor","textColor","direction","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","uri","flexDirection"],"sources":["../../../src/molecule/card-congrats/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LottieView from 'lottie-react-native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\nimport {BOX_STYLE} from '../../variables/shadow';\nimport {CardCongratsProps} from './types';\n\ntype StyleSheetType = {\n animation: ViewStyle;\n card: ViewStyle;\n cardTitle: TextStyle;\n iconBig: ViewStyle;\n iconSmall: ViewStyle;\n reward: ViewStyle;\n rewardText: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n animation: {\n marginBottom: 12,\n width: 132,\n height: 132\n },\n // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread\n card: {\n alignItems: 'center',\n paddingTop: 32,\n paddingBottom: 24,\n borderRadius: 24,\n margin: 10,\n width: 280,\n height: 317,\n ...BOX_STYLE,\n backgroundColor: theme.colors.white\n },\n cardTitle: {\n fontWeight: '400',\n fontSize: 32,\n lineHeight: 40,\n color: theme.colors.text.primary\n },\n reward: {\n alignItems: 'center'\n },\n rewardText: {\n fontWeight: '700',\n fontSize: 64,\n lineHeight: 77,\n marginHorizontal: 10\n },\n iconBig: {\n width: 70,\n height: 70\n },\n iconSmall: {\n width: 53,\n height: 53\n }\n });\n\nconst CardCongrats = ({\n animationUri,\n Icon,\n value,\n text,\n iconColor,\n textColor,\n direction\n}: CardCongratsProps) => {\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.card}>\n <View style={styleSheet.animation}>\n {animationUri ? <LottieView source={{uri: animationUri}} autoPlay loop={false} /> : null}\n </View>\n <Text style={styleSheet.cardTitle}>{text}</Text>\n <View style={[styleSheet.reward, {flexDirection: direction}]}>\n <Text style={[styleSheet.rewardText, {color: textColor}]}>{value}</Text>\n <Icon style={styleSheet.iconSmall} color={iconColor} />\n </View>\n </View>\n );\n};\n\nexport default CardCongrats;\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AAEA;AAAiD;AAAA;AAAA;AAAA;AAajD,MAAMA,gBAAgB,GAAIC,KAAY,IACpCC,uBAAU,CAACC,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,YAAY,EAAE,EAAE;IAChBC,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EACV,CAAC;EACD;EACAC,IAAI;IACFC,UAAU,EAAE,QAAQ;IACpBC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,EAAE;IACjBC,YAAY,EAAE,EAAE;IAChBC,MAAM,EAAE,EAAE;IACVP,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EAAG,GACRO,iBAAS;IACZC,eAAe,EAAEd,KAAK,CAACe,MAAM,CAACC;EAAK,EACpC;EACDC,SAAS,EAAE;IACTC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,KAAK,EAAErB,KAAK,CAACe,MAAM,CAACO,IAAI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EAAE,CAACe,UAAU,CAACb,MAAM,EAAE;MAACmB,aAAa,EAAER;IAAS,CAAC;EAAE,gBAC3D,6BAAC,iBAAI;IAAC,KAAK,EAAE,CAACE,UAAU,CAACZ,UAAU,EAAE;MAACJ,KAAK,EAAEa;IAAS,CAAC;EAAE,GAAEF,KAAK,CAAQ,eACxE,6BAAC,IAAI;IAAC,KAAK,EAAEK,UAAU,CAACT,SAAU;IAAC,KAAK,EAAEK;EAAU,EAAG,CAClD,CACF;AAEX,CAAC;AAAC,eAEaJ,YAAY;AAAA"}
1
+ {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","animation","marginBottom","width","height","card","alignItems","paddingTop","paddingBottom","borderRadius","margin","BOX_STYLE","backgroundColor","colors","white","cardTitle","fontWeight","fontSize","lineHeight","color","text","primary","reward","rewardText","marginHorizontal","iconBig","iconSmall","CardCongrats","animationUri","Icon","value","iconColor","textColor","direction","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","uri","flexDirection"],"sources":["../../../src/molecule/card-congrats/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';\nimport LottieView from 'lottie-react-native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\nimport {BOX_STYLE} from '../../variables/shadow';\nimport {CardCongratsProps} from './types';\n\ntype StyleSheetType = {\n animation: ViewStyle;\n card: ViewStyle;\n cardTitle: TextStyle;\n iconBig: ViewStyle;\n iconSmall: ViewStyle;\n reward: ViewStyle;\n rewardText: TextStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n animation: {\n marginBottom: 12,\n width: 132,\n height: 132\n },\n // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread\n card: {\n alignItems: 'center',\n paddingTop: 32,\n paddingBottom: 24,\n borderRadius: 24,\n margin: 10,\n width: 280,\n height: 317,\n ...BOX_STYLE,\n backgroundColor: theme.colors.white\n },\n cardTitle: {\n fontWeight: '400',\n fontSize: 32,\n lineHeight: 40,\n color: theme.colors.text.primary\n },\n reward: {\n alignItems: 'center'\n },\n rewardText: {\n fontWeight: '700',\n fontSize: 64,\n lineHeight: 77,\n marginHorizontal: 10\n },\n iconBig: {\n width: 70,\n height: 70\n },\n iconSmall: {\n width: 53,\n height: 53\n }\n });\n\nconst CardCongrats = ({\n animationUri,\n Icon,\n value,\n text,\n iconColor,\n textColor,\n direction\n}: CardCongratsProps) => {\n const {theme} = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={styleSheet.card}>\n <View style={styleSheet.animation}>\n {animationUri ? <LottieView source={{uri: animationUri}} autoPlay loop={false} /> : null}\n </View>\n <Text style={styleSheet.cardTitle}>{text}</Text>\n <View style={[styleSheet.reward, {flexDirection: direction}]}>\n <Text style={[styleSheet.rewardText, {color: textColor}]}>{value}</Text>\n <Icon style={styleSheet.iconSmall} color={iconColor} />\n </View>\n </View>\n );\n};\n\nexport default CardCongrats;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;;;AAaA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,YAAY,EAAE,EADL;IAETC,KAAK,EAAE,GAFE;IAGTC,MAAM,EAAE;EAHC,CADK;EAMhB;EACAC,IAAI;IACFC,UAAU,EAAE,QADV;IAEFC,UAAU,EAAE,EAFV;IAGFC,aAAa,EAAE,EAHb;IAIFC,YAAY,EAAE,EAJZ;IAKFC,MAAM,EAAE,EALN;IAMFP,KAAK,EAAE,GANL;IAOFC,MAAM,EAAE;EAPN,GAQCO,iBARD;IASFC,eAAe,EAAEd,KAAK,C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AAG,EAAEZ;IAAN,CAApB;IAAyC,QAAQ,MAAjD;IAAkD,IAAI,EAAE;EAAxD,EAAH,GAAuE,IADtF,CADF,eAIE,6BAAC,iBAAD;IAAM,KAAK,EAAEO,UAAU,CAACpB;EAAxB,GAAoCK,IAApC,CAJF,eAKE,6BAAC,iBAAD;IAAM,KAAK,EAAE,CAACe,UAAU,CAACb,MAAZ,EAAoB;MAACmB,aAAa,EAAER;IAAhB,CAApB;EAAb,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAE,CAACE,UAAU,CAACZ,UAAZ,EAAwB;MAACJ,KAAK,EAAEa;IAAR,CAAxB;EAAb,GAA2DF,KAA3D,CADF,eAEE,6BAAC,IAAD;IAAM,KAAK,EAAEK,UAAU,CAACT,SAAxB;IAAmC,KAAK,EAAEK;EAA1C,EAFF,CALF,CADF;AAYD,CAjCD;;eAmCeJ,Y"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ColorValue, ViewStyle } from 'react-native';
3
- export type CardCongratsProps = {
3
+ export declare type CardCongratsProps = {
4
4
  animationUri: string | null;
5
5
  Icon: React.FC<{
6
6
  style: ViewStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/card-congrats/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QAAC,KAAK,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,UAAU,CAAA;KAAC,CAAC,CAAC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/card-congrats/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAC;AAEnD,oBAAY,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QAAC,KAAK,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,UAAU,CAAA;KAAC,CAAC,CAAC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CACvC,CAAC"}