@coorpacademy/components 10.27.5-alpha.31 → 10.27.5-alpha.89

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 (1275) hide show
  1. package/es/atom/autocomplete/index.d.ts +1 -1
  2. package/es/atom/autocomplete/index.js.map +1 -1
  3. package/es/atom/avatar/index.js.map +1 -1
  4. package/es/atom/button/index.js +1 -1
  5. package/es/atom/button/index.js.map +1 -1
  6. package/es/atom/button-link/index.js +1 -1
  7. package/es/atom/button-link/index.js.map +1 -1
  8. package/es/atom/button-link-icon-only/index.js +1 -1
  9. package/es/atom/button-link-icon-only/index.js.map +1 -1
  10. package/es/atom/button-menu/index.js +1 -1
  11. package/es/atom/button-menu/index.js.map +1 -1
  12. package/es/atom/card-image-preview/index.js.map +1 -1
  13. package/es/atom/catalog-section/index.js.map +1 -1
  14. package/es/atom/centered-text/index.js.map +1 -1
  15. package/es/atom/checkbox/index.js +3 -2
  16. package/es/atom/checkbox/index.js.map +1 -1
  17. package/es/atom/checkbox-with-title/index.js.map +1 -1
  18. package/es/atom/chips/index.js.map +1 -1
  19. package/es/atom/choice/index.native.d.ts +1 -0
  20. package/es/atom/choice/index.native.d.ts.map +1 -1
  21. package/es/atom/choice/index.native.js +1 -1
  22. package/es/atom/choice/index.native.js.map +1 -1
  23. package/es/atom/clue/index.js.map +1 -1
  24. package/es/atom/content-badge/index.js.map +1 -1
  25. package/es/atom/cta/index.js.map +1 -1
  26. package/es/atom/difficulty-level/index.js.map +1 -1
  27. package/es/atom/drag-and-drop/index.js +1 -1
  28. package/es/atom/drag-and-drop/index.js.map +1 -1
  29. package/es/atom/empty-search-result/index.js.map +1 -1
  30. package/es/atom/gradient/index.native.js.map +1 -1
  31. package/es/atom/header-back-button/index.native.d.ts +1 -0
  32. package/es/atom/header-back-button/index.native.d.ts.map +1 -1
  33. package/es/atom/header-back-button/index.native.js.map +1 -1
  34. package/es/atom/header-back-icon/index.native.d.ts +1 -0
  35. package/es/atom/header-back-icon/index.native.d.ts.map +1 -1
  36. package/es/atom/header-back-icon/index.native.js.map +1 -1
  37. package/es/atom/html/index.native.d.ts +1 -0
  38. package/es/atom/html/index.native.d.ts.map +1 -1
  39. package/es/atom/html/index.native.js +6 -6
  40. package/es/atom/html/index.native.js.map +1 -1
  41. package/es/atom/image-background/index.native.js +7 -4
  42. package/es/atom/image-background/index.native.js.map +1 -1
  43. package/es/atom/image-upload/index.js +2 -2
  44. package/es/atom/image-upload/index.js.map +1 -1
  45. package/es/atom/input-checkbox/index.js.map +1 -1
  46. package/es/atom/input-color/index.js.map +1 -1
  47. package/es/atom/input-doublestep/index.js +1 -1
  48. package/es/atom/input-doublestep/index.js.map +1 -1
  49. package/es/atom/input-html/index.js.map +1 -1
  50. package/es/atom/input-html/input-preview.js.map +1 -1
  51. package/es/atom/input-readonly/index.js.map +1 -1
  52. package/es/atom/input-search/index.js.map +1 -1
  53. package/es/atom/input-switch/index.js.map +1 -1
  54. package/es/atom/input-text/index.js.map +1 -1
  55. package/es/atom/input-text-with-title/index.js +2 -2
  56. package/es/atom/input-text-with-title/index.js.map +1 -1
  57. package/es/atom/input-textarea/index.js.map +1 -1
  58. package/es/atom/label/index.js.map +1 -1
  59. package/es/atom/life/index.js.map +1 -1
  60. package/es/atom/link/index.js +4 -3
  61. package/es/atom/link/index.js.map +1 -1
  62. package/es/atom/loader/index.js.map +1 -1
  63. package/es/atom/lottie-wrapper/index.js +4 -4
  64. package/es/atom/lottie-wrapper/index.js.map +1 -1
  65. package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
  66. package/es/atom/notification/index.js.map +1 -1
  67. package/es/atom/picture/index.js +1 -1
  68. package/es/atom/picture/index.js.map +1 -1
  69. package/es/atom/picture-background/index.d.ts +3 -3
  70. package/es/atom/picture-background/index.js.map +1 -1
  71. package/es/atom/promo-code/index.js.map +1 -1
  72. package/es/atom/provider/index.d.ts +1 -1
  73. package/es/atom/provider/index.js.map +1 -1
  74. package/es/atom/provider/web-context.js +5 -3
  75. package/es/atom/provider/web-context.js.map +1 -1
  76. package/es/atom/radio-group/index.js +1 -1
  77. package/es/atom/radio-group/index.js.map +1 -1
  78. package/es/atom/radio-group/item.js.map +1 -1
  79. package/es/atom/range/handle.js.map +1 -1
  80. package/es/atom/range/index.d.ts +1 -1
  81. package/es/atom/range/index.js +2 -2
  82. package/es/atom/range/index.js.map +1 -1
  83. package/es/atom/resource-miniature/index.js.map +1 -1
  84. package/es/atom/review-background/index.js.map +1 -1
  85. package/es/atom/review-background/prop-types.js.map +1 -1
  86. package/es/atom/review-header-step-item/index.d.ts +1 -0
  87. package/es/atom/review-header-step-item/index.d.ts.map +1 -1
  88. package/es/atom/review-header-step-item/index.js.map +1 -1
  89. package/es/atom/review-header-step-item/index.native.d.ts +1 -0
  90. package/es/atom/review-header-step-item/index.native.d.ts.map +1 -1
  91. package/es/atom/review-header-step-item/index.native.js.map +1 -1
  92. package/es/atom/review-header-step-item/types.js.map +1 -1
  93. package/es/atom/review-presentation/index.js.map +1 -1
  94. package/es/atom/review-presentation/index.native.d.ts +1 -0
  95. package/es/atom/review-presentation/index.native.d.ts.map +1 -1
  96. package/es/atom/review-presentation/index.native.js.map +1 -1
  97. package/es/atom/review-presentation/prop-types.js.map +1 -1
  98. package/es/atom/review-presentation/style.css +2 -3
  99. package/es/atom/select/index.d.ts +2 -2
  100. package/es/atom/select/index.js +1 -1
  101. package/es/atom/select/index.js.map +1 -1
  102. package/es/atom/select-modal/index.native.d.ts +1 -0
  103. package/es/atom/select-modal/index.native.d.ts.map +1 -1
  104. package/es/atom/select-modal/index.native.js.map +1 -1
  105. package/es/atom/slide/index.js +1 -1
  106. package/es/atom/slide/index.js.map +1 -1
  107. package/es/atom/social-link/index.js.map +1 -1
  108. package/es/atom/space/index.native.d.ts +1 -0
  109. package/es/atom/space/index.native.d.ts.map +1 -1
  110. package/es/atom/space/index.native.js.map +1 -1
  111. package/es/atom/spinner/index.js.map +1 -1
  112. package/es/atom/tab/index.js.map +1 -1
  113. package/es/atom/tab-content/index.js.map +1 -1
  114. package/es/atom/tag/index.js.map +1 -1
  115. package/es/atom/text/index.native.js +1 -1
  116. package/es/atom/text/index.native.js.map +1 -1
  117. package/es/atom/title/index.js.map +1 -1
  118. package/es/atom/video-upload/index.js +2 -2
  119. package/es/atom/video-upload/index.js.map +1 -1
  120. package/es/atom/wizard-steps/index.js.map +1 -1
  121. package/es/globals.d.js.map +1 -1
  122. package/es/hoc/animation/index.js.map +1 -1
  123. package/es/hoc/animation-scheduler/index.js +3 -3
  124. package/es/hoc/animation-scheduler/index.js.map +1 -1
  125. package/es/hoc/modal/index.native.js.map +1 -1
  126. package/es/hoc/modal/select/index.native.d.ts +1 -0
  127. package/es/hoc/modal/select/index.native.d.ts.map +1 -1
  128. package/es/hoc/modal/select/index.native.js.map +1 -1
  129. package/es/hoc/modal/select-item/index.native.d.ts +1 -0
  130. package/es/hoc/modal/select-item/index.native.d.ts.map +1 -1
  131. package/es/hoc/modal/select-item/index.native.js.map +1 -1
  132. package/es/hoc/swapper/index.js +4 -2
  133. package/es/hoc/swapper/index.js.map +1 -1
  134. package/es/hoc/touchable/index.native.js +2 -2
  135. package/es/hoc/touchable/index.native.js.map +1 -1
  136. package/es/hoc/transition/index.js +1 -1
  137. package/es/hoc/transition/index.js.map +1 -1
  138. package/es/index.js.map +1 -1
  139. package/es/molecule/add-to-my-list/index.js +1 -1
  140. package/es/molecule/add-to-my-list/index.js.map +1 -1
  141. package/es/molecule/answer/index.js +3 -2
  142. package/es/molecule/answer/index.js.map +1 -1
  143. package/es/molecule/answer/index.native.d.ts +1 -0
  144. package/es/molecule/answer/index.native.d.ts.map +1 -1
  145. package/es/molecule/answer/index.native.js.map +1 -1
  146. package/es/molecule/answer/prop-types.d.ts +6 -6
  147. package/es/molecule/answer/prop-types.js +2 -2
  148. package/es/molecule/answer/prop-types.js.map +1 -1
  149. package/es/molecule/audio/index.js.map +1 -1
  150. package/es/molecule/banner/index.js.map +1 -1
  151. package/es/molecule/battle-request/index.js.map +1 -1
  152. package/es/molecule/brand-card/description.js.map +1 -1
  153. package/es/molecule/brand-card/index.js.map +1 -1
  154. package/es/molecule/brand-card-create/index.js.map +1 -1
  155. package/es/molecule/brand-create-form/index.d.ts +2 -2
  156. package/es/molecule/brand-create-form/index.js.map +1 -1
  157. package/es/molecule/brand-download-box/index.js.map +1 -1
  158. package/es/molecule/brand-form-group/index.d.ts +9 -9
  159. package/es/molecule/brand-form-group/index.js +20 -20
  160. package/es/molecule/brand-form-group/index.js.map +1 -1
  161. package/es/molecule/brand-logo/index.native.d.ts +1 -0
  162. package/es/molecule/brand-logo/index.native.d.ts.map +1 -1
  163. package/es/molecule/brand-logo/index.native.js +2 -2
  164. package/es/molecule/brand-logo/index.native.js.map +1 -1
  165. package/es/molecule/brand-tabs/index.js.map +1 -1
  166. package/es/molecule/brand-upload-box/index.js.map +1 -1
  167. package/es/molecule/breadcrumbs/index.js.map +1 -1
  168. package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
  169. package/es/molecule/card/customer.js.map +1 -1
  170. package/es/molecule/card/favorite.js.map +1 -1
  171. package/es/molecule/card/index.js +2 -2
  172. package/es/molecule/card/index.js.map +1 -1
  173. package/es/molecule/card/notification.js.map +1 -1
  174. package/es/molecule/card/selectable.js.map +1 -1
  175. package/es/molecule/card-content/index.js.map +1 -1
  176. package/es/molecule/card-with-button/index.d.ts +1 -1
  177. package/es/molecule/card-with-button/index.js.map +1 -1
  178. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  179. package/es/molecule/cm-popin/index.js +1 -1
  180. package/es/molecule/cm-popin/index.js.map +1 -1
  181. package/es/molecule/cm-popin/style.css +9 -1
  182. package/es/molecule/cm-popin/types.js.map +1 -1
  183. package/es/molecule/cookie-banner/index.js.map +1 -1
  184. package/es/molecule/coorp-manager-roles/index.js +2 -2
  185. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  186. package/es/molecule/course-section/index.js.map +1 -1
  187. package/es/molecule/course-sections/index.js +2 -2
  188. package/es/molecule/course-sections/index.js.map +1 -1
  189. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  190. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  191. package/es/molecule/dashboard/cards-list/index.js +1 -1
  192. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  193. package/es/molecule/dashboard/news-list/index.js +1 -1
  194. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  195. package/es/molecule/dashboard/review-banner/index.js +3 -3
  196. package/es/molecule/dashboard/review-banner/index.js.map +1 -1
  197. package/es/molecule/dashboard/start-battle/index.js +1 -1
  198. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  199. package/es/molecule/discipline-cta/index.js.map +1 -1
  200. package/es/molecule/discipline-header/index.js.map +1 -1
  201. package/es/molecule/discipline-partners/index.js.map +1 -1
  202. package/es/molecule/discipline-scope/index.js.map +1 -1
  203. package/es/molecule/drag-and-drop/index.js +2 -2
  204. package/es/molecule/drag-and-drop/index.js.map +1 -1
  205. package/es/molecule/drag-and-drop/overlay.js.map +1 -1
  206. package/es/molecule/drag-and-drop/placeholder.js.map +1 -1
  207. package/es/molecule/drag-and-drop/upload-report.js +2 -2
  208. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  209. package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  210. package/es/molecule/draggable/index.js.map +1 -1
  211. package/es/molecule/draggable-list/index.js +1 -1
  212. package/es/molecule/draggable-list/index.js.map +1 -1
  213. package/es/molecule/external-content-button/index.js.map +1 -1
  214. package/es/molecule/external-content-viewer/index.js.map +1 -1
  215. package/es/molecule/feedback/index.js +2 -2
  216. package/es/molecule/feedback/index.js.map +1 -1
  217. package/es/molecule/filters/filters-wrapper.js +1 -1
  218. package/es/molecule/filters/filters-wrapper.js.map +1 -1
  219. package/es/molecule/filters/index.d.ts +1 -1
  220. package/es/molecule/filters/index.js.map +1 -1
  221. package/es/molecule/forum/forum-comment/index.js.map +1 -1
  222. package/es/molecule/forum/forum-post/index.js.map +1 -1
  223. package/es/molecule/forum/forum-thread/index.js +1 -1
  224. package/es/molecule/forum/forum-thread/index.js.map +1 -1
  225. package/es/molecule/forum/post-conditions.js.map +1 -1
  226. package/es/molecule/go1-banner/index.js.map +1 -1
  227. package/es/molecule/hero/index.js.map +1 -1
  228. package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
  229. package/es/molecule/list-badges/index.js.map +1 -1
  230. package/es/molecule/login-alert/index.js.map +1 -1
  231. package/es/molecule/menu-list/index.js.map +1 -1
  232. package/es/molecule/message-popin/index.js.map +1 -1
  233. package/es/molecule/modal/index.js.map +1 -1
  234. package/es/molecule/module-bubble/index.js.map +1 -1
  235. package/es/molecule/module-card/index.js +1 -1
  236. package/es/molecule/module-card/index.js.map +1 -1
  237. package/es/molecule/news/index.js +1 -1
  238. package/es/molecule/news/index.js.map +1 -1
  239. package/es/molecule/notification-banner/index.js.map +1 -1
  240. package/es/molecule/pagination/index.js.map +1 -1
  241. package/es/molecule/payment-form/index.js.map +1 -1
  242. package/es/molecule/pdf/index.js.map +1 -1
  243. package/es/molecule/popin/index.js +2 -2
  244. package/es/molecule/popin/index.js.map +1 -1
  245. package/es/molecule/product-card/index.js.map +1 -1
  246. package/es/molecule/progress-bar/index.d.ts +1 -1
  247. package/es/molecule/progress-bar/index.js +2 -2
  248. package/es/molecule/progress-bar/index.js.map +1 -1
  249. package/es/molecule/questions/drop-down/index.d.ts +1 -1
  250. package/es/molecule/questions/drop-down/index.js.map +1 -1
  251. package/es/molecule/questions/free-text/index.js +3 -3
  252. package/es/molecule/questions/free-text/index.js.map +1 -1
  253. package/es/molecule/questions/free-text/index.native.d.ts +1 -0
  254. package/es/molecule/questions/free-text/index.native.d.ts.map +1 -1
  255. package/es/molecule/questions/free-text/index.native.js +3 -3
  256. package/es/molecule/questions/free-text/index.native.js.map +1 -1
  257. package/es/molecule/questions/mobile/draggable/index.native.d.ts +1 -0
  258. package/es/molecule/questions/mobile/draggable/index.native.d.ts.map +1 -1
  259. package/es/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  260. package/es/molecule/questions/mobile/slider/index.native.d.ts +1 -0
  261. package/es/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
  262. package/es/molecule/questions/mobile/slider/index.native.js +2 -2
  263. package/es/molecule/questions/mobile/slider/index.native.js.map +1 -1
  264. package/es/molecule/questions/mobile/switch/index.native.d.ts +1 -0
  265. package/es/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
  266. package/es/molecule/questions/mobile/switch/index.native.js.map +1 -1
  267. package/es/molecule/questions/mobile/template/index.native.d.ts +1 -0
  268. package/es/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
  269. package/es/molecule/questions/mobile/template/index.native.js +3 -3
  270. package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
  271. package/es/molecule/questions/qcm/index.js +1 -1
  272. package/es/molecule/questions/qcm/index.js.map +1 -1
  273. package/es/molecule/questions/qcm-drag/index.js.map +1 -1
  274. package/es/molecule/questions/qcm-graphic/index.js +1 -1
  275. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  276. package/es/molecule/questions/question-range/index.d.ts +1 -1
  277. package/es/molecule/questions/question-range/index.js +4 -3
  278. package/es/molecule/questions/question-range/index.js.map +1 -1
  279. package/es/molecule/questions/template/index.d.ts +12 -3
  280. package/es/molecule/questions/template/index.js +4 -3
  281. package/es/molecule/questions/template/index.js.map +1 -1
  282. package/es/molecule/questions/types.js.map +1 -1
  283. package/es/molecule/quick-access-card/index.js.map +1 -1
  284. package/es/molecule/quick-access-cards-group/index.js.map +1 -1
  285. package/es/molecule/resource-player/index.d.ts +2 -2
  286. package/es/molecule/resource-player/index.js +3 -2
  287. package/es/molecule/resource-player/index.js.map +1 -1
  288. package/es/molecule/review-card-congrats/index.js +1 -1
  289. package/es/molecule/review-card-congrats/index.js.map +1 -1
  290. package/es/molecule/review-card-congrats/prop-types.js.map +1 -1
  291. package/es/molecule/review-correction-popin/index.d.ts.map +1 -1
  292. package/es/molecule/review-correction-popin/index.js +16 -8
  293. package/es/molecule/review-correction-popin/index.js.map +1 -1
  294. package/es/molecule/review-correction-popin/prop-types.js.map +1 -1
  295. package/es/molecule/review-correction-popin/style.css +2 -2
  296. package/es/molecule/review-header-steps/index.js +1 -1
  297. package/es/molecule/review-header-steps/index.js.map +1 -1
  298. package/es/molecule/review-header-steps/prop-types.js.map +1 -1
  299. package/es/molecule/scope-content/index.js +1 -1
  300. package/es/molecule/scope-content/index.js.map +1 -1
  301. package/es/molecule/scope-tabs/index.js +1 -1
  302. package/es/molecule/scope-tabs/index.js.map +1 -1
  303. package/es/molecule/search-form/index.js +1 -1
  304. package/es/molecule/search-form/index.js.map +1 -1
  305. package/es/molecule/select-multiple/index.d.ts +2 -2
  306. package/es/molecule/select-multiple/index.js +4 -4
  307. package/es/molecule/select-multiple/index.js.map +1 -1
  308. package/es/molecule/setup-cohort-item/index.js +1 -1
  309. package/es/molecule/setup-cohort-item/index.js.map +1 -1
  310. package/es/molecule/setup-section/index.js +2 -2
  311. package/es/molecule/setup-section/index.js.map +1 -1
  312. package/es/molecule/setup-sections/index.js.map +1 -1
  313. package/es/molecule/setup-slide/index.d.ts +3 -3
  314. package/es/molecule/setup-slide/index.js +9 -9
  315. package/es/molecule/setup-slide/index.js.map +1 -1
  316. package/es/molecule/setup-slider/index.d.ts +3 -3
  317. package/es/molecule/setup-slider/index.js +1 -1
  318. package/es/molecule/setup-slider/index.js.map +1 -1
  319. package/es/molecule/share/index.js +1 -1
  320. package/es/molecule/share/index.js.map +1 -1
  321. package/es/molecule/skill-card/index.js.map +1 -1
  322. package/es/molecule/skill-card/index.native.d.ts +5 -0
  323. package/es/molecule/skill-card/index.native.d.ts.map +1 -0
  324. package/es/molecule/skill-card/index.native.js +82 -0
  325. package/es/molecule/skill-card/index.native.js.map +1 -0
  326. package/es/molecule/skill-card/prop-types.d.ts +14 -3
  327. package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
  328. package/es/molecule/skill-card/prop-types.js +2 -1
  329. package/es/molecule/skill-card/prop-types.js.map +1 -1
  330. package/es/molecule/ssmenu-list/index.js.map +1 -1
  331. package/es/molecule/subscription-freemium/index.js.map +1 -1
  332. package/es/molecule/subscription-premium/index.js.map +1 -1
  333. package/es/molecule/table/index.d.ts +2 -2
  334. package/es/molecule/table/index.js.map +1 -1
  335. package/es/molecule/teams-popin/index.js.map +1 -1
  336. package/es/molecule/theme-image/index.js.map +1 -1
  337. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -2
  338. package/es/molecule/title-and-checkbox-wrapper/index.js +3 -3
  339. package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  340. package/es/molecule/titled-checkbox/index.d.ts +2 -2
  341. package/es/molecule/titled-checkbox/index.js.map +1 -1
  342. package/es/molecule/unsubscribe/index.js.map +1 -1
  343. package/es/molecule/vertical-tabs/index.js.map +1 -1
  344. package/es/molecule/video-iframe/index.d.ts.map +1 -1
  345. package/es/molecule/video-iframe/index.js +2 -2
  346. package/es/molecule/video-iframe/index.js.map +1 -1
  347. package/es/molecule/video-player/index.js +4 -2
  348. package/es/molecule/video-player/index.js.map +1 -1
  349. package/es/molecule/video-player/jwplayer-prop-types.js.map +1 -1
  350. package/es/molecule/video-player/jwplayer.js +3 -3
  351. package/es/molecule/video-player/jwplayer.js.map +1 -1
  352. package/es/molecule/video-player/prop-types.js.map +1 -1
  353. package/es/molecule/video-player/vimeo.d.ts +3 -3
  354. package/es/molecule/video-player/vimeo.js +2 -2
  355. package/es/molecule/video-player/vimeo.js.map +1 -1
  356. package/es/molecule/wizard-summary/index.d.ts +2 -2
  357. package/es/molecule/wizard-summary/index.js.map +1 -1
  358. package/es/organism/accordion/container/index.js +1 -1
  359. package/es/organism/accordion/container/index.js.map +1 -1
  360. package/es/organism/accordion/coorp-manager/index.js +2 -2
  361. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  362. package/es/organism/accordion/coorp-manager/part/index.js +1 -1
  363. package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
  364. package/es/organism/accordion/part/index.js.map +1 -1
  365. package/es/organism/accordion/toggler/index.js +2 -2
  366. package/es/organism/accordion/toggler/index.js.map +1 -1
  367. package/es/organism/brand-analytics/analytics-popin.js.map +1 -1
  368. package/es/organism/brand-analytics/index.d.ts +3 -3
  369. package/es/organism/brand-analytics/index.js.map +1 -1
  370. package/es/organism/brand-dashboard/index.js +1 -1
  371. package/es/organism/brand-dashboard/index.js.map +1 -1
  372. package/es/organism/brand-form/index.d.ts +9 -9
  373. package/es/organism/brand-form/index.js.map +1 -1
  374. package/es/organism/brand-table/index.d.ts +2 -2
  375. package/es/organism/brand-table/index.js.map +1 -1
  376. package/es/organism/brand-upload/index.d.ts +2 -2
  377. package/es/organism/brand-upload/index.js +1 -1
  378. package/es/organism/brand-upload/index.js.map +1 -1
  379. package/es/organism/cards-grid/index.js.map +1 -1
  380. package/es/organism/cart/index.js.map +1 -1
  381. package/es/organism/content-translation/index.js +3 -3
  382. package/es/organism/content-translation/index.js.map +1 -1
  383. package/es/organism/course-selection/index.js +1 -1
  384. package/es/organism/course-selection/index.js.map +1 -1
  385. package/es/organism/discussion/index.js +1 -1
  386. package/es/organism/discussion/index.js.map +1 -1
  387. package/es/organism/get-the-app/index.js +3 -3
  388. package/es/organism/get-the-app/index.js.map +1 -1
  389. package/es/organism/grid-list/index.js.map +1 -1
  390. package/es/organism/header/index.d.ts +2 -2
  391. package/es/organism/header/index.js.map +1 -1
  392. package/es/organism/header-v2/index.native.d.ts +1 -0
  393. package/es/organism/header-v2/index.native.d.ts.map +1 -1
  394. package/es/organism/header-v2/index.native.js.map +1 -1
  395. package/es/organism/hero/index.js.map +1 -1
  396. package/es/organism/list-item/index.js.map +1 -1
  397. package/es/organism/list-items/index.js.map +1 -1
  398. package/es/organism/mobile-navigation/index.native.js.map +1 -1
  399. package/es/organism/mooc/image-slider/index.js +1 -1
  400. package/es/organism/mooc/image-slider/index.js.map +1 -1
  401. package/es/organism/mooc-footer/index.js.map +1 -1
  402. package/es/organism/mooc-header/index.js +1 -1
  403. package/es/organism/mooc-header/index.js.map +1 -1
  404. package/es/organism/podcast-popin-intro/index.native.d.ts +1 -0
  405. package/es/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
  406. package/es/organism/podcast-popin-intro/index.native.js +3 -3
  407. package/es/organism/podcast-popin-intro/index.native.js.map +1 -1
  408. package/es/organism/popin/index.js.map +1 -1
  409. package/es/organism/resource-browser/index.js +1 -1
  410. package/es/organism/resource-browser/index.js.map +1 -1
  411. package/es/organism/review-congrats/index.js +1 -1
  412. package/es/organism/review-congrats/index.js.map +1 -1
  413. package/es/organism/review-congrats/prop-types.js.map +1 -1
  414. package/es/organism/review-header/index.js.map +1 -1
  415. package/es/organism/review-header/index.native.d.ts +1 -0
  416. package/es/organism/review-header/index.native.d.ts.map +1 -1
  417. package/es/organism/review-header/index.native.js +1 -1
  418. package/es/organism/review-header/index.native.js.map +1 -1
  419. package/es/organism/review-header/types.js.map +1 -1
  420. package/es/organism/review-no-skills/index.d.ts +11 -0
  421. package/es/organism/review-no-skills/index.d.ts.map +1 -0
  422. package/es/organism/review-no-skills/index.js +25 -0
  423. package/es/organism/review-no-skills/index.js.map +1 -0
  424. package/es/organism/review-no-skills/index.native.d.ts +5 -0
  425. package/es/organism/review-no-skills/index.native.d.ts.map +1 -0
  426. package/es/organism/review-no-skills/index.native.js +59 -0
  427. package/es/organism/review-no-skills/index.native.js.map +1 -0
  428. package/es/organism/review-no-skills/prop-types.d.ts +13 -0
  429. package/es/organism/review-no-skills/prop-types.d.ts.map +1 -0
  430. package/es/organism/review-no-skills/prop-types.js +8 -0
  431. package/es/organism/review-no-skills/prop-types.js.map +1 -0
  432. package/es/organism/review-no-skills/style.css +73 -0
  433. package/es/organism/review-skills/index.d.ts +5 -3
  434. package/es/organism/review-skills/index.d.ts.map +1 -1
  435. package/es/organism/review-skills/index.js +3 -60
  436. package/es/organism/review-skills/index.js.map +1 -1
  437. package/es/organism/review-skills/index.native.d.ts +5 -0
  438. package/es/organism/review-skills/index.native.d.ts.map +1 -0
  439. package/es/organism/review-skills/index.native.js +46 -0
  440. package/es/organism/review-skills/index.native.js.map +1 -0
  441. package/es/organism/review-skills/prop-types.d.ts +7 -28
  442. package/es/organism/review-skills/prop-types.d.ts.map +1 -1
  443. package/es/organism/review-skills/prop-types.js +4 -16
  444. package/es/organism/review-skills/prop-types.js.map +1 -1
  445. package/es/organism/review-skills/style.css +3 -106
  446. package/es/organism/review-slide/index.js +1 -1
  447. package/es/organism/review-slide/index.js.map +1 -1
  448. package/es/organism/review-slide/index.native.d.ts +1 -0
  449. package/es/organism/review-slide/index.native.d.ts.map +1 -1
  450. package/es/organism/review-slide/index.native.js.map +1 -1
  451. package/es/organism/review-slide/prop-types.d.ts +8 -8
  452. package/es/organism/review-slide/prop-types.js.map +1 -1
  453. package/es/organism/review-slide/style.css +1 -0
  454. package/es/organism/review-stacked-slides/index.d.ts.map +1 -1
  455. package/es/organism/review-stacked-slides/index.js +13 -9
  456. package/es/organism/review-stacked-slides/index.js.map +1 -1
  457. package/es/organism/review-stacked-slides/index.native.d.ts +1 -0
  458. package/es/organism/review-stacked-slides/index.native.d.ts.map +1 -1
  459. package/es/organism/review-stacked-slides/index.native.js +3 -6
  460. package/es/organism/review-stacked-slides/index.native.js.map +1 -1
  461. package/es/organism/review-stacked-slides/prop-types.d.ts +22 -22
  462. package/es/organism/review-stacked-slides/prop-types.js.map +1 -1
  463. package/es/organism/review-stacked-slides/style.css +120 -8
  464. package/es/organism/rewards-form/index.d.ts +2 -2
  465. package/es/organism/rewards-form/index.js +3 -1
  466. package/es/organism/rewards-form/index.js.map +1 -1
  467. package/es/organism/search-and-chips-results/index.js +1 -1
  468. package/es/organism/search-and-chips-results/index.js.map +1 -1
  469. package/es/organism/settings/index.js +4 -3
  470. package/es/organism/settings/index.js.map +1 -1
  471. package/es/organism/setup-header/index.js.map +1 -1
  472. package/es/organism/sidebar/index.d.ts +29 -5
  473. package/es/organism/sidebar/index.js +12 -11
  474. package/es/organism/sidebar/index.js.map +1 -1
  475. package/es/organism/slider/index.d.ts +1 -1
  476. package/es/organism/slider/index.d.ts.map +1 -1
  477. package/es/organism/slider/index.js.map +1 -1
  478. package/es/organism/user-preferences/index.js +4 -3
  479. package/es/organism/user-preferences/index.js.map +1 -1
  480. package/es/organism/wizard-contents/index.d.ts +19 -19
  481. package/es/organism/wizard-contents/index.js +8 -8
  482. package/es/organism/wizard-contents/index.js.map +1 -1
  483. package/es/template/activity/engine-stars.js.map +1 -1
  484. package/es/template/activity/index.d.ts +3 -3
  485. package/es/template/activity/index.js +2 -2
  486. package/es/template/activity/index.js.map +1 -1
  487. package/es/template/activity/progression-item.js.map +1 -1
  488. package/es/template/activity/stars-summary.d.ts +2 -2
  489. package/es/template/activity/stars-summary.js +1 -1
  490. package/es/template/activity/stars-summary.js.map +1 -1
  491. package/es/template/app-player/loading/index.js.map +1 -1
  492. package/es/template/app-player/player/index.js +1 -1
  493. package/es/template/app-player/player/index.js.map +1 -1
  494. package/es/template/app-player/player/slides/footer/index.js +2 -2
  495. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  496. package/es/template/app-player/player/slides/header/index.js.map +1 -1
  497. package/es/template/app-player/player/slides/header/learner.d.ts +4 -4
  498. package/es/template/app-player/player/slides/header/learner.js +1 -1
  499. package/es/template/app-player/player/slides/header/learner.js.map +1 -1
  500. package/es/template/app-player/player/slides/header/lives.js.map +1 -1
  501. package/es/template/app-player/player/slides/header/microlearning.js.map +1 -1
  502. package/es/template/app-player/player/slides/index.d.ts +6 -6
  503. package/es/template/app-player/player/slides/index.js +15 -12
  504. package/es/template/app-player/player/slides/index.js.map +1 -1
  505. package/es/template/app-player/popin-correction/index.js +4 -3
  506. package/es/template/app-player/popin-correction/index.js.map +1 -1
  507. package/es/template/app-player/popin-end/index.js +1 -1
  508. package/es/template/app-player/popin-end/index.js.map +1 -1
  509. package/es/template/app-player/popin-end/summary.js +15 -12
  510. package/es/template/app-player/popin-end/summary.js.map +1 -1
  511. package/es/template/app-player/popin-header/index.js +5 -4
  512. package/es/template/app-player/popin-header/index.js.map +1 -1
  513. package/es/template/app-player/popin-no-access/index.js.map +1 -1
  514. package/es/template/app-review/demo-ts/index.js.map +1 -1
  515. package/es/template/app-review/demo-ts/index.native.d.ts +1 -0
  516. package/es/template/app-review/demo-ts/index.native.d.ts.map +1 -1
  517. package/es/template/app-review/demo-ts/index.native.js.map +1 -1
  518. package/es/template/app-review/demo-ts/typings.js.map +1 -1
  519. package/es/template/app-review/index.d.ts +30 -29
  520. package/es/template/app-review/index.d.ts.map +1 -1
  521. package/es/template/app-review/index.js +1 -5
  522. package/es/template/app-review/index.js.map +1 -1
  523. package/es/template/app-review/index.native.d.ts +1 -0
  524. package/es/template/app-review/index.native.d.ts.map +1 -1
  525. package/es/template/app-review/index.native.js +3 -1
  526. package/es/template/app-review/index.native.js.map +1 -1
  527. package/es/template/app-review/onboarding/index.js.map +1 -1
  528. package/es/template/app-review/onboarding/index.native.js.map +1 -1
  529. package/es/template/app-review/player/index.js.map +1 -1
  530. package/es/template/app-review/player/index.native.d.ts +1 -0
  531. package/es/template/app-review/player/index.native.d.ts.map +1 -1
  532. package/es/template/app-review/player/index.native.js.map +1 -1
  533. package/es/template/app-review/player/prop-types.d.ts +22 -22
  534. package/es/template/app-review/player/prop-types.js +1 -1
  535. package/es/template/app-review/player/prop-types.js.map +1 -1
  536. package/es/template/app-review/player/style.css +2 -2
  537. package/es/template/app-review/prop-types.d.ts +31 -31
  538. package/es/template/app-review/prop-types.d.ts.map +1 -1
  539. package/es/template/app-review/prop-types.js +1 -1
  540. package/es/template/app-review/prop-types.js.map +1 -1
  541. package/es/template/app-review/skills/index.d.ts +6 -2
  542. package/es/template/app-review/skills/index.d.ts.map +1 -1
  543. package/es/template/app-review/skills/index.js +46 -2
  544. package/es/template/app-review/skills/index.js.map +1 -1
  545. package/es/template/app-review/skills/index.native.d.ts +4 -3
  546. package/es/template/app-review/skills/index.native.d.ts.map +1 -1
  547. package/es/template/app-review/skills/index.native.js +26 -176
  548. package/es/template/app-review/skills/index.native.js.map +1 -1
  549. package/es/template/app-review/skills/prop-types.d.ts +14 -38
  550. package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
  551. package/es/template/app-review/skills/prop-types.js +10 -13
  552. package/es/template/app-review/skills/prop-types.js.map +1 -1
  553. package/es/template/app-review/skills/style.css +49 -0
  554. package/es/template/app-review/template-context.js +1 -1
  555. package/es/template/app-review/template-context.js.map +1 -1
  556. package/es/template/back-office/brand-create/index.js.map +1 -1
  557. package/es/template/back-office/brand-list/index.js +4 -2
  558. package/es/template/back-office/brand-list/index.js.map +1 -1
  559. package/es/template/back-office/brand-update/index.d.ts +39 -39
  560. package/es/template/back-office/brand-update/index.js +9 -9
  561. package/es/template/back-office/brand-update/index.js.map +1 -1
  562. package/es/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
  563. package/es/template/back-office/dashboard-preview/index.js.map +1 -1
  564. package/es/template/back-office/layout/index.js.map +1 -1
  565. package/es/template/battle-requests/index.d.ts +2 -2
  566. package/es/template/battle-requests/index.js.map +1 -1
  567. package/es/template/cockpit/jw-uploader/index.js +2 -2
  568. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  569. package/es/template/common/authors/index.js.map +1 -1
  570. package/es/template/common/coorp-header/content.js.map +1 -1
  571. package/es/template/common/coorp-header/index.js.map +1 -1
  572. package/es/template/common/dashboard/index.d.ts +1 -1
  573. package/es/template/common/dashboard/index.js +1 -1
  574. package/es/template/common/dashboard/index.js.map +1 -1
  575. package/es/template/common/discipline/index.js.map +1 -1
  576. package/es/template/common/search-page/index.d.ts +1 -1
  577. package/es/template/common/search-page/index.js +1 -1
  578. package/es/template/common/search-page/index.js.map +1 -1
  579. package/es/template/external-course/index.d.ts.map +1 -1
  580. package/es/template/external-course/index.js.map +1 -1
  581. package/es/template/review-dashboard-skills/index.d.ts +7 -7
  582. package/es/template/review-dashboard-skills/index.js +1 -1
  583. package/es/template/review-dashboard-skills/index.js.map +1 -1
  584. package/es/template/review-dashboard-skills/style.css +1 -2
  585. package/es/template/teams-dashboard/index.js +1 -1
  586. package/es/template/teams-dashboard/index.js.map +1 -1
  587. package/es/util/bubbling.js.map +1 -1
  588. package/es/util/build-query-string.js.map +1 -1
  589. package/es/util/button-icons.js.map +1 -1
  590. package/es/util/closest-step.js.map +1 -1
  591. package/es/util/constants.js.map +1 -1
  592. package/es/util/external-content.js.map +1 -1
  593. package/es/util/get-class-state.js.map +1 -1
  594. package/es/util/get-clean-uri.js.map +1 -1
  595. package/es/util/get-resized-image.js +3 -3
  596. package/es/util/get-resized-image.js.map +1 -1
  597. package/es/util/get-shadow-box-color-from-primary.js.map +1 -1
  598. package/es/util/image.js.map +1 -1
  599. package/es/util/navigation.js.map +1 -1
  600. package/es/util/parse-template-string.js.map +1 -1
  601. package/es/util/proptypes.js.map +1 -1
  602. package/es/util/render-with-context.js +7 -4
  603. package/es/util/render-with-context.js.map +1 -1
  604. package/es/util/shallow-compare.js.map +1 -1
  605. package/es/variables/analytics.js.map +1 -1
  606. package/es/variables/brand.native.js.map +1 -1
  607. package/es/variables/colors.js.map +1 -1
  608. package/es/variables/default-mobile-translations.js.map +1 -1
  609. package/es/variables/shadow.js.map +1 -1
  610. package/es/variables/theme.native.js.map +1 -1
  611. package/es/variables/vibration.js.map +1 -1
  612. package/lib/atom/autocomplete/index.d.ts +1 -1
  613. package/lib/atom/autocomplete/index.js +2 -2
  614. package/lib/atom/autocomplete/index.js.map +1 -1
  615. package/lib/atom/avatar/index.js.map +1 -1
  616. package/lib/atom/button/index.js +1 -1
  617. package/lib/atom/button/index.js.map +1 -1
  618. package/lib/atom/button-link/index.js +3 -3
  619. package/lib/atom/button-link/index.js.map +1 -1
  620. package/lib/atom/button-link-icon-only/index.js +3 -3
  621. package/lib/atom/button-link-icon-only/index.js.map +1 -1
  622. package/lib/atom/button-menu/index.js +3 -3
  623. package/lib/atom/button-menu/index.js.map +1 -1
  624. package/lib/atom/card-image-preview/index.js.map +1 -1
  625. package/lib/atom/catalog-section/index.js.map +1 -1
  626. package/lib/atom/centered-text/index.js.map +1 -1
  627. package/lib/atom/checkbox/index.js +6 -4
  628. package/lib/atom/checkbox/index.js.map +1 -1
  629. package/lib/atom/checkbox-with-title/index.js +2 -2
  630. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  631. package/lib/atom/chips/index.js +2 -2
  632. package/lib/atom/chips/index.js.map +1 -1
  633. package/lib/atom/choice/index.native.d.ts +1 -0
  634. package/lib/atom/choice/index.native.d.ts.map +1 -1
  635. package/lib/atom/choice/index.native.js +3 -3
  636. package/lib/atom/choice/index.native.js.map +1 -1
  637. package/lib/atom/clue/index.js.map +1 -1
  638. package/lib/atom/content-badge/index.js.map +1 -1
  639. package/lib/atom/cta/index.js.map +1 -1
  640. package/lib/atom/difficulty-level/index.js.map +1 -1
  641. package/lib/atom/drag-and-drop/index.js +1 -1
  642. package/lib/atom/drag-and-drop/index.js.map +1 -1
  643. package/lib/atom/empty-search-result/index.js.map +1 -1
  644. package/lib/atom/gradient/index.native.js.map +1 -1
  645. package/lib/atom/header-back-button/index.native.d.ts +1 -0
  646. package/lib/atom/header-back-button/index.native.d.ts.map +1 -1
  647. package/lib/atom/header-back-button/index.native.js +3 -3
  648. package/lib/atom/header-back-button/index.native.js.map +1 -1
  649. package/lib/atom/header-back-icon/index.native.d.ts +1 -0
  650. package/lib/atom/header-back-icon/index.native.d.ts.map +1 -1
  651. package/lib/atom/header-back-icon/index.native.js.map +1 -1
  652. package/lib/atom/html/index.native.d.ts +1 -0
  653. package/lib/atom/html/index.native.d.ts.map +1 -1
  654. package/lib/atom/html/index.native.js +8 -8
  655. package/lib/atom/html/index.native.js.map +1 -1
  656. package/lib/atom/image-background/index.native.js +7 -4
  657. package/lib/atom/image-background/index.native.js.map +1 -1
  658. package/lib/atom/image-upload/index.js +4 -4
  659. package/lib/atom/image-upload/index.js.map +1 -1
  660. package/lib/atom/input-checkbox/index.js +2 -2
  661. package/lib/atom/input-checkbox/index.js.map +1 -1
  662. package/lib/atom/input-color/index.js +2 -2
  663. package/lib/atom/input-color/index.js.map +1 -1
  664. package/lib/atom/input-doublestep/index.js +3 -3
  665. package/lib/atom/input-doublestep/index.js.map +1 -1
  666. package/lib/atom/input-html/index.js.map +1 -1
  667. package/lib/atom/input-html/input-preview.js.map +1 -1
  668. package/lib/atom/input-readonly/index.js.map +1 -1
  669. package/lib/atom/input-search/index.js +2 -2
  670. package/lib/atom/input-search/index.js.map +1 -1
  671. package/lib/atom/input-switch/index.js +2 -2
  672. package/lib/atom/input-switch/index.js.map +1 -1
  673. package/lib/atom/input-text/index.js +2 -2
  674. package/lib/atom/input-text/index.js.map +1 -1
  675. package/lib/atom/input-text-with-title/index.js +2 -2
  676. package/lib/atom/input-text-with-title/index.js.map +1 -1
  677. package/lib/atom/input-textarea/index.js +2 -2
  678. package/lib/atom/input-textarea/index.js.map +1 -1
  679. package/lib/atom/label/index.js.map +1 -1
  680. package/lib/atom/life/index.js.map +1 -1
  681. package/lib/atom/link/index.js +5 -3
  682. package/lib/atom/link/index.js.map +1 -1
  683. package/lib/atom/loader/index.js.map +1 -1
  684. package/lib/atom/lottie-wrapper/index.js +7 -7
  685. package/lib/atom/lottie-wrapper/index.js.map +1 -1
  686. package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
  687. package/lib/atom/notification/index.js.map +1 -1
  688. package/lib/atom/picture/index.js +1 -1
  689. package/lib/atom/picture/index.js.map +1 -1
  690. package/lib/atom/picture-background/index.d.ts +3 -3
  691. package/lib/atom/picture-background/index.js.map +1 -1
  692. package/lib/atom/promo-code/index.js.map +1 -1
  693. package/lib/atom/provider/index.d.ts +1 -1
  694. package/lib/atom/provider/index.js +2 -2
  695. package/lib/atom/provider/index.js.map +1 -1
  696. package/lib/atom/provider/web-context.js +8 -6
  697. package/lib/atom/provider/web-context.js.map +1 -1
  698. package/lib/atom/radio-group/index.js +1 -1
  699. package/lib/atom/radio-group/index.js.map +1 -1
  700. package/lib/atom/radio-group/item.js.map +1 -1
  701. package/lib/atom/range/handle.js +2 -2
  702. package/lib/atom/range/handle.js.map +1 -1
  703. package/lib/atom/range/index.d.ts +1 -1
  704. package/lib/atom/range/index.js +2 -2
  705. package/lib/atom/range/index.js.map +1 -1
  706. package/lib/atom/resource-miniature/index.js.map +1 -1
  707. package/lib/atom/review-background/index.js.map +1 -1
  708. package/lib/atom/review-background/prop-types.js.map +1 -1
  709. package/lib/atom/review-header-step-item/index.d.ts +1 -0
  710. package/lib/atom/review-header-step-item/index.d.ts.map +1 -1
  711. package/lib/atom/review-header-step-item/index.js.map +1 -1
  712. package/lib/atom/review-header-step-item/index.native.d.ts +1 -0
  713. package/lib/atom/review-header-step-item/index.native.d.ts.map +1 -1
  714. package/lib/atom/review-header-step-item/index.native.js +2 -2
  715. package/lib/atom/review-header-step-item/index.native.js.map +1 -1
  716. package/lib/atom/review-header-step-item/types.js.map +1 -1
  717. package/lib/atom/review-presentation/index.js.map +1 -1
  718. package/lib/atom/review-presentation/index.native.d.ts +1 -0
  719. package/lib/atom/review-presentation/index.native.d.ts.map +1 -1
  720. package/lib/atom/review-presentation/index.native.js +2 -2
  721. package/lib/atom/review-presentation/index.native.js.map +1 -1
  722. package/lib/atom/review-presentation/prop-types.js +1 -1
  723. package/lib/atom/review-presentation/prop-types.js.map +1 -1
  724. package/lib/atom/review-presentation/style.css +2 -3
  725. package/lib/atom/select/index.d.ts +2 -2
  726. package/lib/atom/select/index.js +3 -3
  727. package/lib/atom/select/index.js.map +1 -1
  728. package/lib/atom/select-modal/index.native.d.ts +1 -0
  729. package/lib/atom/select-modal/index.native.d.ts.map +1 -1
  730. package/lib/atom/select-modal/index.native.js +2 -2
  731. package/lib/atom/select-modal/index.native.js.map +1 -1
  732. package/lib/atom/slide/index.js +1 -1
  733. package/lib/atom/slide/index.js.map +1 -1
  734. package/lib/atom/social-link/index.js.map +1 -1
  735. package/lib/atom/space/index.native.d.ts +1 -0
  736. package/lib/atom/space/index.native.d.ts.map +1 -1
  737. package/lib/atom/space/index.native.js +2 -2
  738. package/lib/atom/space/index.native.js.map +1 -1
  739. package/lib/atom/spinner/index.js.map +1 -1
  740. package/lib/atom/tab/index.js +2 -2
  741. package/lib/atom/tab/index.js.map +1 -1
  742. package/lib/atom/tab-content/index.js.map +1 -1
  743. package/lib/atom/tag/index.js.map +1 -1
  744. package/lib/atom/text/index.native.js +3 -3
  745. package/lib/atom/text/index.native.js.map +1 -1
  746. package/lib/atom/title/index.js.map +1 -1
  747. package/lib/atom/video-upload/index.js +2 -2
  748. package/lib/atom/video-upload/index.js.map +1 -1
  749. package/lib/atom/wizard-steps/index.js.map +1 -1
  750. package/lib/globals.d.js.map +1 -1
  751. package/lib/hoc/animation/index.js +1 -1
  752. package/lib/hoc/animation/index.js.map +1 -1
  753. package/lib/hoc/animation-scheduler/index.js +4 -4
  754. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  755. package/lib/hoc/modal/index.native.js +2 -2
  756. package/lib/hoc/modal/index.native.js.map +1 -1
  757. package/lib/hoc/modal/select/index.native.d.ts +1 -0
  758. package/lib/hoc/modal/select/index.native.d.ts.map +1 -1
  759. package/lib/hoc/modal/select/index.native.js +2 -2
  760. package/lib/hoc/modal/select/index.native.js.map +1 -1
  761. package/lib/hoc/modal/select-item/index.native.d.ts +1 -0
  762. package/lib/hoc/modal/select-item/index.native.d.ts.map +1 -1
  763. package/lib/hoc/modal/select-item/index.native.js +2 -2
  764. package/lib/hoc/modal/select-item/index.native.js.map +1 -1
  765. package/lib/hoc/swapper/index.js +5 -3
  766. package/lib/hoc/swapper/index.js.map +1 -1
  767. package/lib/hoc/touchable/index.native.js +4 -4
  768. package/lib/hoc/touchable/index.native.js.map +1 -1
  769. package/lib/hoc/transition/index.js +3 -3
  770. package/lib/hoc/transition/index.js.map +1 -1
  771. package/lib/index.js.map +1 -1
  772. package/lib/molecule/add-to-my-list/index.js +4 -4
  773. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  774. package/lib/molecule/answer/index.js +6 -4
  775. package/lib/molecule/answer/index.js.map +1 -1
  776. package/lib/molecule/answer/index.native.d.ts +1 -0
  777. package/lib/molecule/answer/index.native.d.ts.map +1 -1
  778. package/lib/molecule/answer/index.native.js.map +1 -1
  779. package/lib/molecule/answer/prop-types.d.ts +6 -6
  780. package/lib/molecule/answer/prop-types.js +3 -3
  781. package/lib/molecule/answer/prop-types.js.map +1 -1
  782. package/lib/molecule/audio/index.js.map +1 -1
  783. package/lib/molecule/banner/index.js.map +1 -1
  784. package/lib/molecule/battle-request/index.js.map +1 -1
  785. package/lib/molecule/brand-card/description.js.map +1 -1
  786. package/lib/molecule/brand-card/index.js.map +1 -1
  787. package/lib/molecule/brand-card-create/index.js.map +1 -1
  788. package/lib/molecule/brand-create-form/index.d.ts +2 -2
  789. package/lib/molecule/brand-create-form/index.js +2 -2
  790. package/lib/molecule/brand-create-form/index.js.map +1 -1
  791. package/lib/molecule/brand-download-box/index.js.map +1 -1
  792. package/lib/molecule/brand-form-group/index.d.ts +9 -9
  793. package/lib/molecule/brand-form-group/index.js +20 -20
  794. package/lib/molecule/brand-form-group/index.js.map +1 -1
  795. package/lib/molecule/brand-logo/index.native.d.ts +1 -0
  796. package/lib/molecule/brand-logo/index.native.d.ts.map +1 -1
  797. package/lib/molecule/brand-logo/index.native.js +2 -2
  798. package/lib/molecule/brand-logo/index.native.js.map +1 -1
  799. package/lib/molecule/brand-tabs/index.js.map +1 -1
  800. package/lib/molecule/brand-upload-box/index.js.map +1 -1
  801. package/lib/molecule/breadcrumbs/index.js.map +1 -1
  802. package/lib/molecule/bullet-point-menu-button/index.js +2 -2
  803. package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
  804. package/lib/molecule/card/customer.js.map +1 -1
  805. package/lib/molecule/card/favorite.js.map +1 -1
  806. package/lib/molecule/card/index.js +4 -4
  807. package/lib/molecule/card/index.js.map +1 -1
  808. package/lib/molecule/card/notification.js.map +1 -1
  809. package/lib/molecule/card/selectable.js.map +1 -1
  810. package/lib/molecule/card-content/index.js.map +1 -1
  811. package/lib/molecule/card-with-button/index.d.ts +1 -1
  812. package/lib/molecule/card-with-button/index.js.map +1 -1
  813. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  814. package/lib/molecule/cm-popin/index.js +1 -1
  815. package/lib/molecule/cm-popin/index.js.map +1 -1
  816. package/lib/molecule/cm-popin/style.css +9 -1
  817. package/lib/molecule/cm-popin/types.js.map +1 -1
  818. package/lib/molecule/cookie-banner/index.js.map +1 -1
  819. package/lib/molecule/coorp-manager-roles/index.js +2 -2
  820. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  821. package/lib/molecule/course-section/index.js.map +1 -1
  822. package/lib/molecule/course-sections/index.js +2 -2
  823. package/lib/molecule/course-sections/index.js.map +1 -1
  824. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  825. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  826. package/lib/molecule/dashboard/cards-list/index.js +1 -1
  827. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  828. package/lib/molecule/dashboard/news-list/index.js +1 -1
  829. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  830. package/lib/molecule/dashboard/review-banner/index.js +3 -3
  831. package/lib/molecule/dashboard/review-banner/index.js.map +1 -1
  832. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  833. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  834. package/lib/molecule/discipline-cta/index.js.map +1 -1
  835. package/lib/molecule/discipline-header/index.js.map +1 -1
  836. package/lib/molecule/discipline-partners/index.js.map +1 -1
  837. package/lib/molecule/discipline-scope/index.js.map +1 -1
  838. package/lib/molecule/drag-and-drop/index.js +4 -4
  839. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  840. package/lib/molecule/drag-and-drop/overlay.js.map +1 -1
  841. package/lib/molecule/drag-and-drop/placeholder.js.map +1 -1
  842. package/lib/molecule/drag-and-drop/upload-report.js +4 -4
  843. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  844. package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  845. package/lib/molecule/draggable/index.js +2 -2
  846. package/lib/molecule/draggable/index.js.map +1 -1
  847. package/lib/molecule/draggable-list/index.js +3 -3
  848. package/lib/molecule/draggable-list/index.js.map +1 -1
  849. package/lib/molecule/external-content-button/index.js.map +1 -1
  850. package/lib/molecule/external-content-viewer/index.js.map +1 -1
  851. package/lib/molecule/feedback/index.js +4 -4
  852. package/lib/molecule/feedback/index.js.map +1 -1
  853. package/lib/molecule/filters/filters-wrapper.js +1 -1
  854. package/lib/molecule/filters/filters-wrapper.js.map +1 -1
  855. package/lib/molecule/filters/index.d.ts +1 -1
  856. package/lib/molecule/filters/index.js.map +1 -1
  857. package/lib/molecule/forum/forum-comment/index.js.map +1 -1
  858. package/lib/molecule/forum/forum-post/index.js.map +1 -1
  859. package/lib/molecule/forum/forum-thread/index.js +1 -1
  860. package/lib/molecule/forum/forum-thread/index.js.map +1 -1
  861. package/lib/molecule/forum/post-conditions.js.map +1 -1
  862. package/lib/molecule/go1-banner/index.js.map +1 -1
  863. package/lib/molecule/hero/index.js +2 -2
  864. package/lib/molecule/hero/index.js.map +1 -1
  865. package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
  866. package/lib/molecule/list-badges/index.js.map +1 -1
  867. package/lib/molecule/login-alert/index.js.map +1 -1
  868. package/lib/molecule/menu-list/index.js.map +1 -1
  869. package/lib/molecule/message-popin/index.js.map +1 -1
  870. package/lib/molecule/modal/index.js.map +1 -1
  871. package/lib/molecule/module-bubble/index.js.map +1 -1
  872. package/lib/molecule/module-card/index.js +1 -1
  873. package/lib/molecule/module-card/index.js.map +1 -1
  874. package/lib/molecule/news/index.js +1 -1
  875. package/lib/molecule/news/index.js.map +1 -1
  876. package/lib/molecule/notification-banner/index.js.map +1 -1
  877. package/lib/molecule/pagination/index.js.map +1 -1
  878. package/lib/molecule/payment-form/index.js.map +1 -1
  879. package/lib/molecule/pdf/index.js.map +1 -1
  880. package/lib/molecule/popin/index.js +4 -4
  881. package/lib/molecule/popin/index.js.map +1 -1
  882. package/lib/molecule/product-card/index.js.map +1 -1
  883. package/lib/molecule/progress-bar/index.d.ts +1 -1
  884. package/lib/molecule/progress-bar/index.js +2 -2
  885. package/lib/molecule/progress-bar/index.js.map +1 -1
  886. package/lib/molecule/questions/drop-down/index.d.ts +1 -1
  887. package/lib/molecule/questions/drop-down/index.js +2 -2
  888. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  889. package/lib/molecule/questions/free-text/index.js +5 -5
  890. package/lib/molecule/questions/free-text/index.js.map +1 -1
  891. package/lib/molecule/questions/free-text/index.native.d.ts +1 -0
  892. package/lib/molecule/questions/free-text/index.native.d.ts.map +1 -1
  893. package/lib/molecule/questions/free-text/index.native.js +5 -5
  894. package/lib/molecule/questions/free-text/index.native.js.map +1 -1
  895. package/lib/molecule/questions/mobile/draggable/index.native.d.ts +1 -0
  896. package/lib/molecule/questions/mobile/draggable/index.native.d.ts.map +1 -1
  897. package/lib/molecule/questions/mobile/draggable/index.native.js +2 -2
  898. package/lib/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  899. package/lib/molecule/questions/mobile/slider/index.native.d.ts +1 -0
  900. package/lib/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
  901. package/lib/molecule/questions/mobile/slider/index.native.js +4 -4
  902. package/lib/molecule/questions/mobile/slider/index.native.js.map +1 -1
  903. package/lib/molecule/questions/mobile/switch/index.native.d.ts +1 -0
  904. package/lib/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
  905. package/lib/molecule/questions/mobile/switch/index.native.js +2 -2
  906. package/lib/molecule/questions/mobile/switch/index.native.js.map +1 -1
  907. package/lib/molecule/questions/mobile/template/index.native.d.ts +1 -0
  908. package/lib/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
  909. package/lib/molecule/questions/mobile/template/index.native.js +5 -5
  910. package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
  911. package/lib/molecule/questions/qcm/index.js +3 -3
  912. package/lib/molecule/questions/qcm/index.js.map +1 -1
  913. package/lib/molecule/questions/qcm-drag/index.js +2 -2
  914. package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
  915. package/lib/molecule/questions/qcm-graphic/index.js +3 -3
  916. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  917. package/lib/molecule/questions/question-range/index.d.ts +1 -1
  918. package/lib/molecule/questions/question-range/index.js +7 -5
  919. package/lib/molecule/questions/question-range/index.js.map +1 -1
  920. package/lib/molecule/questions/template/index.d.ts +12 -3
  921. package/lib/molecule/questions/template/index.js +5 -3
  922. package/lib/molecule/questions/template/index.js.map +1 -1
  923. package/lib/molecule/questions/types.js.map +1 -1
  924. package/lib/molecule/quick-access-card/index.js.map +1 -1
  925. package/lib/molecule/quick-access-cards-group/index.js.map +1 -1
  926. package/lib/molecule/resource-player/index.d.ts +2 -2
  927. package/lib/molecule/resource-player/index.js +5 -3
  928. package/lib/molecule/resource-player/index.js.map +1 -1
  929. package/lib/molecule/review-card-congrats/index.js +4 -4
  930. package/lib/molecule/review-card-congrats/index.js.map +1 -1
  931. package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
  932. package/lib/molecule/review-correction-popin/index.d.ts.map +1 -1
  933. package/lib/molecule/review-correction-popin/index.js +16 -8
  934. package/lib/molecule/review-correction-popin/index.js.map +1 -1
  935. package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
  936. package/lib/molecule/review-correction-popin/style.css +2 -2
  937. package/lib/molecule/review-header-steps/index.js +1 -1
  938. package/lib/molecule/review-header-steps/index.js.map +1 -1
  939. package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
  940. package/lib/molecule/scope-content/index.js +1 -1
  941. package/lib/molecule/scope-content/index.js.map +1 -1
  942. package/lib/molecule/scope-tabs/index.js +3 -3
  943. package/lib/molecule/scope-tabs/index.js.map +1 -1
  944. package/lib/molecule/search-form/index.js +3 -3
  945. package/lib/molecule/search-form/index.js.map +1 -1
  946. package/lib/molecule/select-multiple/index.d.ts +2 -2
  947. package/lib/molecule/select-multiple/index.js +7 -7
  948. package/lib/molecule/select-multiple/index.js.map +1 -1
  949. package/lib/molecule/setup-cohort-item/index.js +1 -1
  950. package/lib/molecule/setup-cohort-item/index.js.map +1 -1
  951. package/lib/molecule/setup-section/index.js +2 -2
  952. package/lib/molecule/setup-section/index.js.map +1 -1
  953. package/lib/molecule/setup-sections/index.js.map +1 -1
  954. package/lib/molecule/setup-slide/index.d.ts +3 -3
  955. package/lib/molecule/setup-slide/index.js +9 -9
  956. package/lib/molecule/setup-slide/index.js.map +1 -1
  957. package/lib/molecule/setup-slider/index.d.ts +3 -3
  958. package/lib/molecule/setup-slider/index.js +1 -1
  959. package/lib/molecule/setup-slider/index.js.map +1 -1
  960. package/lib/molecule/share/index.js +4 -4
  961. package/lib/molecule/share/index.js.map +1 -1
  962. package/lib/molecule/skill-card/index.js +2 -2
  963. package/lib/molecule/skill-card/index.js.map +1 -1
  964. package/lib/molecule/skill-card/index.native.d.ts +5 -0
  965. package/lib/molecule/skill-card/index.native.d.ts.map +1 -0
  966. package/lib/molecule/skill-card/index.native.js +95 -0
  967. package/lib/molecule/skill-card/index.native.js.map +1 -0
  968. package/lib/molecule/skill-card/prop-types.d.ts +14 -3
  969. package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
  970. package/lib/molecule/skill-card/prop-types.js +2 -1
  971. package/lib/molecule/skill-card/prop-types.js.map +1 -1
  972. package/lib/molecule/ssmenu-list/index.js.map +1 -1
  973. package/lib/molecule/subscription-freemium/index.js.map +1 -1
  974. package/lib/molecule/subscription-premium/index.js.map +1 -1
  975. package/lib/molecule/table/index.d.ts +2 -2
  976. package/lib/molecule/table/index.js.map +1 -1
  977. package/lib/molecule/teams-popin/index.js.map +1 -1
  978. package/lib/molecule/theme-image/index.js.map +1 -1
  979. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -2
  980. package/lib/molecule/title-and-checkbox-wrapper/index.js +3 -3
  981. package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  982. package/lib/molecule/titled-checkbox/index.d.ts +2 -2
  983. package/lib/molecule/titled-checkbox/index.js +2 -2
  984. package/lib/molecule/titled-checkbox/index.js.map +1 -1
  985. package/lib/molecule/unsubscribe/index.js.map +1 -1
  986. package/lib/molecule/vertical-tabs/index.js.map +1 -1
  987. package/lib/molecule/video-iframe/index.d.ts.map +1 -1
  988. package/lib/molecule/video-iframe/index.js +2 -2
  989. package/lib/molecule/video-iframe/index.js.map +1 -1
  990. package/lib/molecule/video-player/index.js +4 -2
  991. package/lib/molecule/video-player/index.js.map +1 -1
  992. package/lib/molecule/video-player/jwplayer-prop-types.js.map +1 -1
  993. package/lib/molecule/video-player/jwplayer.js +3 -3
  994. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  995. package/lib/molecule/video-player/prop-types.js.map +1 -1
  996. package/lib/molecule/video-player/vimeo.d.ts +3 -3
  997. package/lib/molecule/video-player/vimeo.js +2 -2
  998. package/lib/molecule/video-player/vimeo.js.map +1 -1
  999. package/lib/molecule/wizard-summary/index.d.ts +2 -2
  1000. package/lib/molecule/wizard-summary/index.js +2 -2
  1001. package/lib/molecule/wizard-summary/index.js.map +1 -1
  1002. package/lib/organism/accordion/container/index.js +3 -3
  1003. package/lib/organism/accordion/container/index.js.map +1 -1
  1004. package/lib/organism/accordion/coorp-manager/index.js +4 -4
  1005. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  1006. package/lib/organism/accordion/coorp-manager/part/index.js +1 -1
  1007. package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
  1008. package/lib/organism/accordion/part/index.js.map +1 -1
  1009. package/lib/organism/accordion/toggler/index.js +2 -2
  1010. package/lib/organism/accordion/toggler/index.js.map +1 -1
  1011. package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
  1012. package/lib/organism/brand-analytics/index.d.ts +3 -3
  1013. package/lib/organism/brand-analytics/index.js.map +1 -1
  1014. package/lib/organism/brand-dashboard/index.js +1 -1
  1015. package/lib/organism/brand-dashboard/index.js.map +1 -1
  1016. package/lib/organism/brand-form/index.d.ts +9 -9
  1017. package/lib/organism/brand-form/index.js +2 -2
  1018. package/lib/organism/brand-form/index.js.map +1 -1
  1019. package/lib/organism/brand-table/index.d.ts +2 -2
  1020. package/lib/organism/brand-table/index.js.map +1 -1
  1021. package/lib/organism/brand-upload/index.d.ts +2 -2
  1022. package/lib/organism/brand-upload/index.js +1 -1
  1023. package/lib/organism/brand-upload/index.js.map +1 -1
  1024. package/lib/organism/cards-grid/index.js.map +1 -1
  1025. package/lib/organism/cart/index.js.map +1 -1
  1026. package/lib/organism/content-translation/index.js +3 -3
  1027. package/lib/organism/content-translation/index.js.map +1 -1
  1028. package/lib/organism/course-selection/index.js +1 -1
  1029. package/lib/organism/course-selection/index.js.map +1 -1
  1030. package/lib/organism/discussion/index.js +1 -1
  1031. package/lib/organism/discussion/index.js.map +1 -1
  1032. package/lib/organism/get-the-app/index.js +3 -3
  1033. package/lib/organism/get-the-app/index.js.map +1 -1
  1034. package/lib/organism/grid-list/index.js.map +1 -1
  1035. package/lib/organism/header/index.d.ts +2 -2
  1036. package/lib/organism/header/index.js.map +1 -1
  1037. package/lib/organism/header-v2/index.native.d.ts +1 -0
  1038. package/lib/organism/header-v2/index.native.d.ts.map +1 -1
  1039. package/lib/organism/header-v2/index.native.js +2 -2
  1040. package/lib/organism/header-v2/index.native.js.map +1 -1
  1041. package/lib/organism/hero/index.js.map +1 -1
  1042. package/lib/organism/list-item/index.js.map +1 -1
  1043. package/lib/organism/list-items/index.js.map +1 -1
  1044. package/lib/organism/mobile-navigation/index.native.js +2 -2
  1045. package/lib/organism/mobile-navigation/index.native.js.map +1 -1
  1046. package/lib/organism/mooc/image-slider/index.js +1 -1
  1047. package/lib/organism/mooc/image-slider/index.js.map +1 -1
  1048. package/lib/organism/mooc-footer/index.js.map +1 -1
  1049. package/lib/organism/mooc-header/index.js +1 -1
  1050. package/lib/organism/mooc-header/index.js.map +1 -1
  1051. package/lib/organism/podcast-popin-intro/index.native.d.ts +1 -0
  1052. package/lib/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
  1053. package/lib/organism/podcast-popin-intro/index.native.js +5 -5
  1054. package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
  1055. package/lib/organism/popin/index.js.map +1 -1
  1056. package/lib/organism/resource-browser/index.js +1 -1
  1057. package/lib/organism/resource-browser/index.js.map +1 -1
  1058. package/lib/organism/review-congrats/index.js +4 -4
  1059. package/lib/organism/review-congrats/index.js.map +1 -1
  1060. package/lib/organism/review-congrats/prop-types.js.map +1 -1
  1061. package/lib/organism/review-header/index.js.map +1 -1
  1062. package/lib/organism/review-header/index.native.d.ts +1 -0
  1063. package/lib/organism/review-header/index.native.d.ts.map +1 -1
  1064. package/lib/organism/review-header/index.native.js +1 -1
  1065. package/lib/organism/review-header/index.native.js.map +1 -1
  1066. package/lib/organism/review-header/types.js.map +1 -1
  1067. package/lib/organism/review-no-skills/index.d.ts +11 -0
  1068. package/lib/organism/review-no-skills/index.d.ts.map +1 -0
  1069. package/lib/organism/review-no-skills/index.js +36 -0
  1070. package/lib/organism/review-no-skills/index.js.map +1 -0
  1071. package/lib/organism/review-no-skills/index.native.d.ts +5 -0
  1072. package/lib/organism/review-no-skills/index.native.d.ts.map +1 -0
  1073. package/lib/organism/review-no-skills/index.native.js +72 -0
  1074. package/lib/organism/review-no-skills/index.native.js.map +1 -0
  1075. package/lib/organism/review-no-skills/prop-types.d.ts +13 -0
  1076. package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -0
  1077. package/lib/organism/review-no-skills/prop-types.js +17 -0
  1078. package/lib/organism/review-no-skills/prop-types.js.map +1 -0
  1079. package/lib/organism/review-no-skills/style.css +73 -0
  1080. package/lib/organism/review-skills/index.d.ts +5 -3
  1081. package/lib/organism/review-skills/index.d.ts.map +1 -1
  1082. package/lib/organism/review-skills/index.js +3 -67
  1083. package/lib/organism/review-skills/index.js.map +1 -1
  1084. package/lib/organism/review-skills/index.native.d.ts +5 -0
  1085. package/lib/organism/review-skills/index.native.d.ts.map +1 -0
  1086. package/lib/organism/review-skills/index.native.js +57 -0
  1087. package/lib/organism/review-skills/index.native.js.map +1 -0
  1088. package/lib/organism/review-skills/prop-types.d.ts +7 -28
  1089. package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
  1090. package/lib/organism/review-skills/prop-types.js +3 -19
  1091. package/lib/organism/review-skills/prop-types.js.map +1 -1
  1092. package/lib/organism/review-skills/style.css +3 -106
  1093. package/lib/organism/review-slide/index.js +3 -3
  1094. package/lib/organism/review-slide/index.js.map +1 -1
  1095. package/lib/organism/review-slide/index.native.d.ts +1 -0
  1096. package/lib/organism/review-slide/index.native.d.ts.map +1 -1
  1097. package/lib/organism/review-slide/index.native.js +2 -2
  1098. package/lib/organism/review-slide/index.native.js.map +1 -1
  1099. package/lib/organism/review-slide/prop-types.d.ts +8 -8
  1100. package/lib/organism/review-slide/prop-types.js.map +1 -1
  1101. package/lib/organism/review-slide/style.css +1 -0
  1102. package/lib/organism/review-stacked-slides/index.d.ts.map +1 -1
  1103. package/lib/organism/review-stacked-slides/index.js +13 -9
  1104. package/lib/organism/review-stacked-slides/index.js.map +1 -1
  1105. package/lib/organism/review-stacked-slides/index.native.d.ts +1 -0
  1106. package/lib/organism/review-stacked-slides/index.native.d.ts.map +1 -1
  1107. package/lib/organism/review-stacked-slides/index.native.js +3 -6
  1108. package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
  1109. package/lib/organism/review-stacked-slides/prop-types.d.ts +22 -22
  1110. package/lib/organism/review-stacked-slides/prop-types.js +2 -2
  1111. package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
  1112. package/lib/organism/review-stacked-slides/style.css +120 -8
  1113. package/lib/organism/rewards-form/index.d.ts +2 -2
  1114. package/lib/organism/rewards-form/index.js +3 -1
  1115. package/lib/organism/rewards-form/index.js.map +1 -1
  1116. package/lib/organism/search-and-chips-results/index.js +1 -1
  1117. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  1118. package/lib/organism/settings/index.js +5 -3
  1119. package/lib/organism/settings/index.js.map +1 -1
  1120. package/lib/organism/setup-header/index.js.map +1 -1
  1121. package/lib/organism/sidebar/index.d.ts +29 -5
  1122. package/lib/organism/sidebar/index.js +16 -14
  1123. package/lib/organism/sidebar/index.js.map +1 -1
  1124. package/lib/organism/slider/index.d.ts +1 -1
  1125. package/lib/organism/slider/index.d.ts.map +1 -1
  1126. package/lib/organism/slider/index.js.map +1 -1
  1127. package/lib/organism/user-preferences/index.js +5 -3
  1128. package/lib/organism/user-preferences/index.js.map +1 -1
  1129. package/lib/organism/wizard-contents/index.d.ts +19 -19
  1130. package/lib/organism/wizard-contents/index.js +8 -8
  1131. package/lib/organism/wizard-contents/index.js.map +1 -1
  1132. package/lib/template/activity/engine-stars.js.map +1 -1
  1133. package/lib/template/activity/index.d.ts +3 -3
  1134. package/lib/template/activity/index.js +2 -2
  1135. package/lib/template/activity/index.js.map +1 -1
  1136. package/lib/template/activity/progression-item.js +2 -2
  1137. package/lib/template/activity/progression-item.js.map +1 -1
  1138. package/lib/template/activity/stars-summary.d.ts +2 -2
  1139. package/lib/template/activity/stars-summary.js +1 -1
  1140. package/lib/template/activity/stars-summary.js.map +1 -1
  1141. package/lib/template/app-player/loading/index.js.map +1 -1
  1142. package/lib/template/app-player/player/index.js +1 -1
  1143. package/lib/template/app-player/player/index.js.map +1 -1
  1144. package/lib/template/app-player/player/slides/footer/index.js +2 -2
  1145. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  1146. package/lib/template/app-player/player/slides/header/index.js.map +1 -1
  1147. package/lib/template/app-player/player/slides/header/learner.d.ts +4 -4
  1148. package/lib/template/app-player/player/slides/header/learner.js +1 -1
  1149. package/lib/template/app-player/player/slides/header/learner.js.map +1 -1
  1150. package/lib/template/app-player/player/slides/header/lives.js.map +1 -1
  1151. package/lib/template/app-player/player/slides/header/microlearning.js.map +1 -1
  1152. package/lib/template/app-player/player/slides/index.d.ts +6 -6
  1153. package/lib/template/app-player/player/slides/index.js +16 -12
  1154. package/lib/template/app-player/player/slides/index.js.map +1 -1
  1155. package/lib/template/app-player/popin-correction/index.js +7 -5
  1156. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  1157. package/lib/template/app-player/popin-end/index.js +1 -1
  1158. package/lib/template/app-player/popin-end/index.js.map +1 -1
  1159. package/lib/template/app-player/popin-end/summary.js +16 -12
  1160. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  1161. package/lib/template/app-player/popin-header/index.js +8 -6
  1162. package/lib/template/app-player/popin-header/index.js.map +1 -1
  1163. package/lib/template/app-player/popin-no-access/index.js.map +1 -1
  1164. package/lib/template/app-review/demo-ts/index.js.map +1 -1
  1165. package/lib/template/app-review/demo-ts/index.native.d.ts +1 -0
  1166. package/lib/template/app-review/demo-ts/index.native.d.ts.map +1 -1
  1167. package/lib/template/app-review/demo-ts/index.native.js.map +1 -1
  1168. package/lib/template/app-review/demo-ts/typings.js.map +1 -1
  1169. package/lib/template/app-review/index.d.ts +30 -29
  1170. package/lib/template/app-review/index.d.ts.map +1 -1
  1171. package/lib/template/app-review/index.js +1 -5
  1172. package/lib/template/app-review/index.js.map +1 -1
  1173. package/lib/template/app-review/index.native.d.ts +1 -0
  1174. package/lib/template/app-review/index.native.d.ts.map +1 -1
  1175. package/lib/template/app-review/index.native.js +6 -3
  1176. package/lib/template/app-review/index.native.js.map +1 -1
  1177. package/lib/template/app-review/onboarding/index.js.map +1 -1
  1178. package/lib/template/app-review/onboarding/index.native.js.map +1 -1
  1179. package/lib/template/app-review/player/index.js.map +1 -1
  1180. package/lib/template/app-review/player/index.native.d.ts +1 -0
  1181. package/lib/template/app-review/player/index.native.d.ts.map +1 -1
  1182. package/lib/template/app-review/player/index.native.js +2 -2
  1183. package/lib/template/app-review/player/index.native.js.map +1 -1
  1184. package/lib/template/app-review/player/prop-types.d.ts +22 -22
  1185. package/lib/template/app-review/player/prop-types.js +1 -1
  1186. package/lib/template/app-review/player/prop-types.js.map +1 -1
  1187. package/lib/template/app-review/player/style.css +2 -2
  1188. package/lib/template/app-review/prop-types.d.ts +31 -31
  1189. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  1190. package/lib/template/app-review/prop-types.js +1 -1
  1191. package/lib/template/app-review/prop-types.js.map +1 -1
  1192. package/lib/template/app-review/skills/index.d.ts +6 -2
  1193. package/lib/template/app-review/skills/index.d.ts.map +1 -1
  1194. package/lib/template/app-review/skills/index.js +51 -1
  1195. package/lib/template/app-review/skills/index.js.map +1 -1
  1196. package/lib/template/app-review/skills/index.native.d.ts +4 -3
  1197. package/lib/template/app-review/skills/index.native.d.ts.map +1 -1
  1198. package/lib/template/app-review/skills/index.native.js +30 -177
  1199. package/lib/template/app-review/skills/index.native.js.map +1 -1
  1200. package/lib/template/app-review/skills/prop-types.d.ts +14 -38
  1201. package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
  1202. package/lib/template/app-review/skills/prop-types.js +12 -17
  1203. package/lib/template/app-review/skills/prop-types.js.map +1 -1
  1204. package/lib/template/app-review/skills/style.css +49 -0
  1205. package/lib/template/app-review/template-context.js +3 -3
  1206. package/lib/template/app-review/template-context.js.map +1 -1
  1207. package/lib/template/back-office/brand-create/index.js.map +1 -1
  1208. package/lib/template/back-office/brand-list/index.js +4 -2
  1209. package/lib/template/back-office/brand-list/index.js.map +1 -1
  1210. package/lib/template/back-office/brand-update/index.d.ts +39 -39
  1211. package/lib/template/back-office/brand-update/index.js +9 -9
  1212. package/lib/template/back-office/brand-update/index.js.map +1 -1
  1213. package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
  1214. package/lib/template/back-office/dashboard-preview/index.js.map +1 -1
  1215. package/lib/template/back-office/layout/index.js.map +1 -1
  1216. package/lib/template/battle-requests/index.d.ts +2 -2
  1217. package/lib/template/battle-requests/index.js.map +1 -1
  1218. package/lib/template/cockpit/jw-uploader/index.js +2 -2
  1219. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  1220. package/lib/template/common/authors/index.js.map +1 -1
  1221. package/lib/template/common/coorp-header/content.js.map +1 -1
  1222. package/lib/template/common/coorp-header/index.js.map +1 -1
  1223. package/lib/template/common/dashboard/index.d.ts +1 -1
  1224. package/lib/template/common/dashboard/index.js +1 -1
  1225. package/lib/template/common/dashboard/index.js.map +1 -1
  1226. package/lib/template/common/discipline/index.js +2 -2
  1227. package/lib/template/common/discipline/index.js.map +1 -1
  1228. package/lib/template/common/search-page/index.d.ts +1 -1
  1229. package/lib/template/common/search-page/index.js +1 -1
  1230. package/lib/template/common/search-page/index.js.map +1 -1
  1231. package/lib/template/external-course/index.d.ts.map +1 -1
  1232. package/lib/template/external-course/index.js.map +1 -1
  1233. package/lib/template/review-dashboard-skills/index.d.ts +7 -7
  1234. package/lib/template/review-dashboard-skills/index.js +3 -3
  1235. package/lib/template/review-dashboard-skills/index.js.map +1 -1
  1236. package/lib/template/review-dashboard-skills/style.css +1 -2
  1237. package/lib/template/teams-dashboard/index.js +3 -3
  1238. package/lib/template/teams-dashboard/index.js.map +1 -1
  1239. package/lib/util/bubbling.js.map +1 -1
  1240. package/lib/util/build-query-string.js.map +1 -1
  1241. package/lib/util/button-icons.js.map +1 -1
  1242. package/lib/util/closest-step.js.map +1 -1
  1243. package/lib/util/constants.js.map +1 -1
  1244. package/lib/util/external-content.js +1 -1
  1245. package/lib/util/external-content.js.map +1 -1
  1246. package/lib/util/get-class-state.js.map +1 -1
  1247. package/lib/util/get-clean-uri.js.map +1 -1
  1248. package/lib/util/get-resized-image.js +3 -3
  1249. package/lib/util/get-resized-image.js.map +1 -1
  1250. package/lib/util/get-shadow-box-color-from-primary.js.map +1 -1
  1251. package/lib/util/image.js.map +1 -1
  1252. package/lib/util/navigation.js.map +1 -1
  1253. package/lib/util/parse-template-string.js.map +1 -1
  1254. package/lib/util/proptypes.js +1 -1
  1255. package/lib/util/proptypes.js.map +1 -1
  1256. package/lib/util/render-with-context.js +7 -4
  1257. package/lib/util/render-with-context.js.map +1 -1
  1258. package/lib/util/shallow-compare.js.map +1 -1
  1259. package/lib/variables/analytics.js.map +1 -1
  1260. package/lib/variables/brand.native.js.map +1 -1
  1261. package/lib/variables/colors.js.map +1 -1
  1262. package/lib/variables/default-mobile-translations.js.map +1 -1
  1263. package/lib/variables/shadow.js.map +1 -1
  1264. package/lib/variables/theme.native.js.map +1 -1
  1265. package/lib/variables/vibration.js.map +1 -1
  1266. package/locales/.mtslconfig.json +1 -0
  1267. package/package.json +4 -4
  1268. package/es/template/app-review/skills/stories.d.ts +0 -1
  1269. package/es/template/app-review/skills/stories.d.ts.map +0 -1
  1270. package/es/template/app-review/skills/stories.js +0 -15
  1271. package/es/template/app-review/skills/stories.js.map +0 -1
  1272. package/lib/template/app-review/skills/stories.d.ts +0 -1
  1273. package/lib/template/app-review/skills/stories.d.ts.map +0 -1
  1274. package/lib/template/app-review/skills/stories.js +0 -16
  1275. package/lib/template/app-review/skills/stories.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/popin/index.js"],"names":["Popin","props","context","skin","primaryColor","header","content","firstButtonLabel","onFirstButtonClick","secondeButtonLabel","onSecondeButtonClick","onClose","type","isLoading","backgroundImageUrl","logo","hiddenStateManagment","Hide","deleteContent","Bin","videoTranslate","LocalesIcon","LogoComponent","backgroundImageStyle","backgroundImage","value","setValue","object","message","email","handleChange","event","target","name","isAssistancePopin","handleClickOnSecondButton","style","background","loader","popin","popinHeader","headerCloseIcon","icon","color","__html","width","inputText","inputTextArea","lastInputText","buttonContainer","button","backgroundColor","propTypes","PropTypes","string","func","oneOf","bool"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;;AAMA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAChC,QAAM;AAACC,IAAAA;AAA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AM,EAAEgD,mBAAUC,MADF;AAEhBhD,EAAAA,OAAO,EAAE+C,mBAAUC,MAFH;AAGhB/C,EAAAA,gBAAgB,EAAE8C,mBAAUC,MAHZ;AAIhB9C,EAAAA,kBAAkB,EAAE6C,mBAAUE,IAJd;AAKhB9C,EAAAA,kBAAkB,EAAE4C,mBAAUC,MALd;AAMhB5C,EAAAA,oBAAoB,EAAE2C,mBAAUE,IANhB;AAOhB5C,EAAAA,OAAO,EAAE0C,mBAAUE,IAPH;AAQhB3C,EAAAA,IAAI,EAAEyC,mBAAUG,KAAV,CAAgB,CAAC,gBAAD,EAAmB,sBAAnB,EAA2C,eAA3C,EAA4D,YAA5D,CAAhB,CARU;AAShB3C,EAAAA,SAAS,EAAEwC,mBAAUI,IATL;AAUhB3C,EAAAA,kBAAkB,EAAEuC,mBAAUC;AAVd,CAAlB;eAaetD,K","sourcesContent":["import React, {useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr} from 'lodash/fp';\n\nimport {\n NovaCompositionCoorpacademyLocales as LocalesIcon,\n NovaSolidStatusClose as Close,\n NovaLineContentEditionBin as Bin,\n NovaLineContentEditionHide as Hide\n} from '@coorpacademy/nova-icons';\nimport Cta from '../../atom/button';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst Popin = (props, context) => {\n const {skin} = context;\n const primaryColor = getOr('#00B0FF', 'common.primary', skin);\n const {\n header,\n content,\n firstButtonLabel,\n onFirstButtonClick,\n secondeButtonLabel,\n onSecondeButtonClick,\n onClose,\n type,\n isLoading = false,\n backgroundImageUrl\n } = props;\n\n const logo = {\n hiddenStateManagment: Hide,\n deleteContent: Bin,\n videoTranslate: LocalesIcon\n };\n\n const LogoComponent = logo[type];\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`\n }\n : {};\n\n const [value, setValue] = useState({object: '', message: '', email: ''});\n\n const handleChange = useMemo(\n () => event => {\n setValue({...value, [event.target.name]: event.target.value});\n },\n [value]\n );\n\n const isAssistancePopin = type === 'assistance';\n\n const handleClickOnSecondButton = useMemo(() => {\n return type === 'assistance' ? onSecondeButtonClick(value) : onSecondeButtonClick;\n }, [value, type, onSecondeButtonClick]);\n\n return (\n <div className={style.background} style={backgroundImageStyle}>\n {isLoading ? (\n <div className={style.loader}>\n <Loader data-name=\"cockpit-popin-loader\" />\n </div>\n ) : (\n <div className={style.popin}>\n <header className={style.popinHeader}>\n <Close onClick={onClose} className={style.headerCloseIcon} />\n </header>\n {LogoComponent ? (\n <LogoComponent className={style.icon} style={{color: primaryColor}} />\n ) : null}\n <div className={style.header} data-name={`cockpit-popin-header-${type}`}>\n {header}\n </div>\n <p\n className={style.content}\n data-name={`cockpit-popin-content-${type}`}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n\n {isAssistancePopin ? (\n <div style={{width: '70%'}}>\n <input\n data-name=\"contact-object\"\n className={style.inputText}\n name=\"object\"\n type=\"text\"\n placeholder=\"Object\"\n value={value.object}\n onChange={handleChange}\n />\n <textarea\n className={(style.inputText, style.inputTextArea)}\n data-name=\"contact-message\"\n name=\"message\"\n type=\"text\"\n placeholder=\"Message\"\n value={value.message}\n onChange={handleChange}\n />\n <input\n className={style.lastInputText}\n data-name=\"contact-email\"\n name=\"email\"\n type=\"text\"\n placeholder=\"Email\"\n value={value.email}\n onChange={handleChange}\n />\n </div>\n ) : null}\n\n <div className={style.buttonContainer}>\n {firstButtonLabel ? (\n <Cta\n submitValue={firstButtonLabel}\n onClick={onFirstButtonClick}\n name={`cockpit-popin-cta-${type}`}\n className={style.button}\n style={{\n backgroundColor: 'white',\n color: 'gray'\n }}\n />\n ) : null}\n {secondeButtonLabel ? (\n <Cta\n submitValue={secondeButtonLabel}\n onClick={handleClickOnSecondButton}\n name={`cockpit-popin-cta-${type}`}\n className={style.button}\n style={{backgroundColor: primaryColor}}\n disabled={isAssistancePopin && !value.message}\n />\n ) : null}\n </div>\n </div>\n )}\n </div>\n );\n};\n\nPopin.propTypes = {\n header: PropTypes.string,\n content: PropTypes.string,\n firstButtonLabel: PropTypes.string,\n onFirstButtonClick: PropTypes.func,\n secondeButtonLabel: PropTypes.string,\n onSecondeButtonClick: PropTypes.func,\n onClose: PropTypes.func,\n type: PropTypes.oneOf(['videoTranslate', 'hiddenStateManagment', 'deleteContent', 'assistance']),\n isLoading: PropTypes.bool,\n backgroundImageUrl: PropTypes.string\n};\n\nexport default Popin;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["Popin","props","context","skin","primaryColor","header","content","firstButtonLabel","onFirstButtonClick","secondeButtonLabel","onSecondeButtonClick","onClose","type","isLoading","backgroundImageUrl","logo","hiddenStateManagment","Hide","deleteContent","Bin","videoTranslate","LocalesIcon","LogoComponent","backgroundImageStyle","backgroundImage","value","setValue","useState","object","message","email","handleChange","useMemo","event","target","name","isAssistancePopin","handleClickOnSecondButton","style","background","loader","popin","popinHeader","headerCloseIcon","icon","color","__html","width","inputText","inputTextArea","lastInputText","buttonContainer","button","backgroundColor","propTypes","PropTypes","string","func","oneOf","bool"],"sources":["../../../src/molecule/popin/index.js"],"sourcesContent":["import React, {useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr} from 'lodash/fp';\n\nimport {\n NovaCompositionCoorpacademyLocales as LocalesIcon,\n NovaSolidStatusClose as Close,\n NovaLineContentEditionBin as Bin,\n NovaLineContentEditionHide as Hide\n} from '@coorpacademy/nova-icons';\nimport Cta from '../../atom/button';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst Popin = (props, context) => {\n const {skin} = context;\n const primaryColor = getOr('#00B0FF', 'common.primary', skin);\n const {\n header,\n content,\n firstButtonLabel,\n onFirstButtonClick,\n secondeButtonLabel,\n onSecondeButtonClick,\n onClose,\n type,\n isLoading = false,\n backgroundImageUrl\n } = props;\n\n const logo = {\n hiddenStateManagment: Hide,\n deleteContent: Bin,\n videoTranslate: LocalesIcon\n };\n\n const LogoComponent = logo[type];\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`\n }\n : {};\n\n const [value, setValue] = useState({object: '', message: '', email: ''});\n\n const handleChange = useMemo(\n () => event => {\n setValue({...value, [event.target.name]: event.target.value});\n },\n [value]\n );\n\n const isAssistancePopin = type === 'assistance';\n\n const handleClickOnSecondButton = useMemo(() => {\n return type === 'assistance' ? onSecondeButtonClick(value) : onSecondeButtonClick;\n }, [value, type, onSecondeButtonClick]);\n\n return (\n <div className={style.background} style={backgroundImageStyle}>\n {isLoading ? (\n <div className={style.loader}>\n <Loader data-name=\"cockpit-popin-loader\" />\n </div>\n ) : (\n <div className={style.popin}>\n <header className={style.popinHeader}>\n <Close onClick={onClose} className={style.headerCloseIcon} />\n </header>\n {LogoComponent ? (\n <LogoComponent className={style.icon} style={{color: primaryColor}} />\n ) : null}\n <div className={style.header} data-name={`cockpit-popin-header-${type}`}>\n {header}\n </div>\n <p\n className={style.content}\n data-name={`cockpit-popin-content-${type}`}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n\n {isAssistancePopin ? (\n <div style={{width: '70%'}}>\n <input\n data-name=\"contact-object\"\n className={style.inputText}\n name=\"object\"\n type=\"text\"\n placeholder=\"Object\"\n value={value.object}\n onChange={handleChange}\n />\n <textarea\n className={(style.inputText, style.inputTextArea)}\n data-name=\"contact-message\"\n name=\"message\"\n type=\"text\"\n placeholder=\"Message\"\n value={value.message}\n onChange={handleChange}\n />\n <input\n className={style.lastInputText}\n data-name=\"contact-email\"\n name=\"email\"\n type=\"text\"\n placeholder=\"Email\"\n value={value.email}\n onChange={handleChange}\n />\n </div>\n ) : null}\n\n <div className={style.buttonContainer}>\n {firstButtonLabel ? (\n <Cta\n submitValue={firstButtonLabel}\n onClick={onFirstButtonClick}\n name={`cockpit-popin-cta-${type}`}\n className={style.button}\n style={{\n backgroundColor: 'white',\n color: 'gray'\n }}\n />\n ) : null}\n {secondeButtonLabel ? (\n <Cta\n submitValue={secondeButtonLabel}\n onClick={handleClickOnSecondButton}\n name={`cockpit-popin-cta-${type}`}\n className={style.button}\n style={{backgroundColor: primaryColor}}\n disabled={isAssistancePopin && !value.message}\n />\n ) : null}\n </div>\n </div>\n )}\n </div>\n );\n};\n\nPopin.propTypes = {\n header: PropTypes.string,\n content: PropTypes.string,\n firstButtonLabel: PropTypes.string,\n onFirstButtonClick: PropTypes.func,\n secondeButtonLabel: PropTypes.string,\n onSecondeButtonClick: PropTypes.func,\n onClose: PropTypes.func,\n type: PropTypes.oneOf(['videoTranslate', 'hiddenStateManagment', 'deleteContent', 'assistance']),\n isLoading: PropTypes.bool,\n backgroundImageUrl: PropTypes.string\n};\n\nexport default Popin;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;;AAMA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAChC,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAME,YAAY,GAAG,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;EACA,MAAM;IACJE,MADI;IAEJC,OAFI;IAGJC,gBAHI;IAIJC,kBAJI;IAKJC,kBALI;IAMJC,oBANI;IAOJC,OAPI;IAQJC,IARI;IASJC,SAAS,GAAG,KATR;IAUJC;EAVI,IAWFb,KAXJ;EAaA,MAAMc,IAAI,GAAG;IACXC,oBAAoB,EAAEC,qCADX;IAEXC,aAAa,EAAEC,oCAFJ;IAGXC,cAAc,EAAEC;EAHL,CAAb;EAMA,MAAMC,aAAa,GAAGP,IAAI,CAACH,IAAD,CAA1B;EACA,MAAMW,oBAAoB,GAAGT,kBAAkB,GAC3C;IACEU,eAAe,EAAG,OAAMV,kBAAmB;EAD7C,CAD2C,GAI3C,EAJJ;EAMA,MAAM,CAACW,KAAD,EAAQC,QAAR,IAAoB,IAAAC,eAAA,EAAS;IAACC,MAAM,EAAE,EAAT;IAAaC,OAAO,EAAE,EA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AAG,qBAAoBzB,IAAK,EAHlC;IAIE,SAAS,EAAE0B,cAAA,CAAMc,MAJnB;IAKE,KAAK,EAAE;MAACC,eAAe,EAAEjD;IAAlB,CALT;IAME,QAAQ,EAAEgC,iBAAiB,IAAI,CAACX,KAAK,CAACI;EANxC,EADiB,GASf,IAtBN,CAjDF,CANJ,CADF;AAoFD,CAhID;;AAkIA7B,KAAK,CAACsD,SAAN,2CAAkB;EAChBjD,MAAM,EAAEkD,kBAAA,CAAUC,MADF;EAEhBlD,OAAO,EAAEiD,kBAAA,CAAUC,MAFH;EAGhBjD,gBAAgB,EAAEgD,kBAAA,CAAUC,MAHZ;EAIhBhD,kBAAkB,EAAE+C,kBAAA,CAAUE,IAJd;EAKhBhD,kBAAkB,EAAE8C,kBAAA,CAAUC,MALd;EAMhB9C,oBAAoB,EAAE6C,kBAAA,CAAUE,IANhB;EAOhB9C,OAAO,EAAE4C,kBAAA,CAAUE,IAPH;EAQhB7C,IAAI,EAAE2C,kBAAA,CAAUG,KAAV,CAAgB,CAAC,gBAAD,EAAmB,sBAAnB,EAA2C,eAA3C,EAA4D,YAA5D,CAAhB,CARU;EAShB7C,SAAS,EAAE0C,kBAAA,CAAUI,IATL;EAUhB7C,kBAAkB,EAAEyC,kBAAA,CAAUC;AAVd,CAAlB;eAaexD,K"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/product-card/index.js"],"names":["ProductCard","props","context","title","subtitle","price","currency","checkImage","translate","descriptionItemTranslationKeys","priceTemplate","priceValue","items","map","itemDescription","index","style","productDescriptionItem","productCheckbox","productDescriptionText","product","productHeader","productHeaderTitle","productHeaderSubtitle","productBody","productSeparation","productPrice","cancelText","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","isRequired"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACtC,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA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,IAAA,SAAS,EAAEI,eAAMS;AAArB,IAFF,eAGE;AAAK,IAAA,SAAS,EAAET,eAAMU;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEV,eAAML;AAAtB,KAAmCA,UAAnC,CADF,eAEE;AAAK,IAAA,SAAS,EAAEK,eAAMW;AAAtB,KAAmCnB,SAAS,CAAC,gBAAD,CAA5C,CAFF,CAHF,CALF,CADF;AAgBD,CA1CD;;AA4CAR,WAAW,CAAC4B,YAAZ,GAA2B;AACzBpB,EAAAA,SAAS,EAAEqB,kBAASC,iBAAT,CAA2BtB;AADb,CAA3B;AAIAR,WAAW,CAAC+B,SAAZ,2CAAwB;AACtB5B,EAAAA,KAAK,EAAE6B,mBAAUC,MAAV,CAAiBC,UADF;AAEtB9B,EAAAA,QAAQ,EAAE4B,mBAAUC,MAAV,CAAiBC,UAFL;AAGtB5B,EAAAA,QAAQ,EAAE0B,mBAAUC,MAAV,CAAiBC,UAHL;AAItB7B,EAAAA,KAAK,EAAE2B,mBAAUC,MAAV,CAAiBC,UAJF;AAKtB3B,EAAAA,UAAU,EAAEyB,mBAAUC,MAAV,CAAiBC;AALP,CAAxB;eAQelC,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {template} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst ProductCard = (props, context) => {\n const {title, subtitle, price, currency, checkImage} = props;\n\n const {translate} = context;\n\n const descriptionItemTranslationKeys = [\n translate('product_desc_culture'),\n translate('product_desc_partnership'),\n translate('product_desc_battle'),\n translate('product_desc_coach'),\n translate('product_desc_forum'),\n translate('product_desc_certificates')\n ];\n\n const priceTemplate = translate('subscription_price');\n const priceValue = template(priceTemplate)({price, currency});\n\n const items = descriptionItemTranslationKeys.map((itemDescription, index) => {\n return (\n <div className={style.productDescriptionItem} key={index}>\n <img className={style.productCheckbox} src={checkImage} />\n <div className={style.productDescriptionText}>{itemDescription}</div>\n </div>\n );\n });\n\n return (\n <div className={style.product}>\n <div className={style.productHeader}>\n <div className={style.productHeaderTitle}>{title}</div>\n <div className={style.productHeaderSubtitle}>{subtitle}</div>\n </div>\n <div className={style.productBody}>\n <div className=\"product__description\">{items}</div>\n <hr className={style.productSeparation} />\n <div className={style.productPrice}>\n <div className={style.priceValue}>{priceValue}</div>\n <div className={style.cancelText}>{translate('product_cancel')}</div>\n </div>\n </div>\n </div>\n );\n};\n\nProductCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProductCard.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n currency: PropTypes.string.isRequired,\n price: PropTypes.string.isRequired,\n checkImage: PropTypes.string.isRequired\n};\n\nexport default ProductCard;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["ProductCard","props","context","title","subtitle","price","currency","checkImage","translate","descriptionItemTranslationKeys","priceTemplate","priceValue","items","map","itemDescription","index","style","productDescriptionItem","productCheckbox","productDescriptionText","product","productHeader","productHeaderTitle","productHeaderSubtitle","productBody","productSeparation","productPrice","cancelText","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","isRequired"],"sources":["../../../src/molecule/product-card/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {template} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst ProductCard = (props, context) => {\n const {title, subtitle, price, currency, checkImage} = props;\n\n const {translate} = context;\n\n const descriptionItemTranslationKeys = [\n translate('product_desc_culture'),\n translate('product_desc_partnership'),\n translate('product_desc_battle'),\n translate('product_desc_coach'),\n translate('product_desc_forum'),\n translate('product_desc_certificates')\n ];\n\n const priceTemplate = translate('subscription_price');\n const priceValue = template(priceTemplate)({price, currency});\n\n const items = descriptionItemTranslationKeys.map((itemDescription, index) => {\n return (\n <div className={style.productDescriptionItem} key={index}>\n <img className={style.productCheckbox} src={checkImage} />\n <div className={style.productDescriptionText}>{itemDescription}</div>\n </div>\n );\n });\n\n return (\n <div className={style.product}>\n <div className={style.productHeader}>\n <div className={style.productHeaderTitle}>{title}</div>\n <div className={style.productHeaderSubtitle}>{subtitle}</div>\n </div>\n <div className={style.productBody}>\n <div className=\"product__description\">{items}</div>\n <hr className={style.productSeparation} />\n <div className={style.productPrice}>\n <div className={style.priceValue}>{priceValue}</div>\n <div className={style.cancelText}>{translate('product_cancel')}</div>\n </div>\n </div>\n </div>\n );\n};\n\nProductCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProductCard.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n currency: PropTypes.string.isRequired,\n price: PropTypes.string.isRequired,\n checkImage: PropTypes.string.isRequired\n};\n\nexport default ProductCard;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACtC,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,KAAlB;IAAyBC,QAAzB;IAAmCC;EAAnC,IAAiDN,KAAvD;EAEA,MAAM;IAACO;EAAD,IAAcN,OAApB;EAEA,MAAMO,8BAA8B,GAAG,CACrCD,SAAS,CAAC,sBAAD,CAD4B,EAErCA,SAAS,CAAC,0BAAD,CAF4B,EAGrCA,SAAS,CAAC,qBAAD,CAH4B,EAIrCA,SAAS,CAAC,oBAAD,CAJ4B,EAKrCA,SAAS,CAAC,oBAAD,CAL4B,EAMrCA,SAAS,CAAC,2BAAD,CAN4B,CAAvC;EASA,MAAME,aAAa,GAAGF,SAAS,CAAC,oBAAD,CAA/B;EACA,MAAMG,UAAU,GAAG,wBAASD,aAAT,EAAwB;IAACL,KAAD;IAAQC;EAAR,CAAxB,CAAnB;EAEA,MAAMM,KAAK,GAAGH,8BAA8B,CAACI,GAA/B,CAAmC,CAACC,eAAD,EAAkBC,KAAlB,KAA4B;IAC3E,oBACE;MAAK,SAAS,EAAEC,cAAA,CAAMC,sBAAtB;MAA8C,GAAG,EAAEF;IAAnD,g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@@ -8,7 +8,7 @@ declare namespace ProgressBar {
8
8
  const desc: PropTypes.Requireable<string>;
9
9
  const steps: PropTypes.Requireable<number>;
10
10
  const style: PropTypes.Requireable<{
11
- [x: string]: string | number | null | undefined;
11
+ [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
12
12
  }>;
13
13
  }
14
14
  }
@@ -15,7 +15,7 @@ var _style = _interopRequireDefault(require("./style.css"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- function _extends() { _extends = Object.assign || 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); }
18
+ 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); }
19
19
 
20
20
  const ProgressBar = props => {
21
21
  const {
@@ -37,7 +37,7 @@ const ProgressBar = props => {
37
37
  className: (0, _classnames.default)(_style.default.background, className)
38
38
  }, /*#__PURE__*/_react.default.createElement("div", {
39
39
  className: _style.default.progress,
40
- style: _extends(_extends({}, propsStyle), {}, {
40
+ style: _extends({}, propsStyle, {
41
41
  width: `${ratio * 100}%`
42
42
  })
43
43
  }), /*#__PURE__*/_react.default.createElement("p", {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/progress-bar/index.js"],"names":["ProgressBar","props","className","value","max","desc","steps","style","propsStyle","ratio","percentage","Math","floor","text","stepList","index","step","background","progress","width","texts","description","propTypes","PropTypes","string","number","isRequired","objectOf","oneOfType"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;AAC3B,QAAM;AAACC,IAAAA,SAAD;AAAYC,IAAAA,KAAZ;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,MAJM;AAKtBlB,EAAAA,KAAK,EAAEiB,mBAAUE,MALK;AAMtBlB,EAAAA,KAAK,EAAEgB,mBAAUI,QAAV,CAAmBJ,mBAAUK,SAAV,CAAoB,CAACL,mBAAUC,MAAX,EAAmBD,mBAAUE,MAA7B,CAApB,CAAnB;AANe,CAAxB;eASezB,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {times} from 'lodash/fp';\nimport style from './style.css';\n\nconst ProgressBar = props => {\n const {className, value, max, desc = '', steps = 0, style: propsStyle} = props;\n\n const ratio = value / max;\n const percentage = Math.floor(ratio * 100);\n const text = `${percentage}%`;\n const stepList = times(index => <div className={style.step} key={index} />, steps);\n return (\n <div className={classnames(style.background, className)}>\n <div\n className={style.progress}\n style={{\n ...propsStyle,\n width: `${ratio * 100}%`\n }}\n />\n <p className={style.texts}>\n <span className={style.description}>{`${value}/${max} ${desc}`}</span>\n <span className={style.percentage}>{text}</span>\n </p>\n <div className={style.steps}>{stepList}</div>\n </div>\n );\n};\n\nProgressBar.propTypes = {\n className: PropTypes.string,\n value: PropTypes.number.isRequired,\n max: PropTypes.number.isRequired,\n desc: PropTypes.string,\n steps: PropTypes.number,\n style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\n\nexport default ProgressBar;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["ProgressBar","props","className","value","max","desc","steps","style","propsStyle","ratio","percentage","Math","floor","text","stepList","index","step","classnames","background","progress","width","texts","description","propTypes","PropTypes","string","number","isRequired","objectOf","oneOfType"],"sources":["../../../src/molecule/progress-bar/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {times} from 'lodash/fp';\nimport style from './style.css';\n\nconst ProgressBar = props => {\n const {className, value, max, desc = '', steps = 0, style: propsStyle} = props;\n\n const ratio = value / max;\n const percentage = Math.floor(ratio * 100);\n const text = `${percentage}%`;\n const stepList = times(index => <div className={style.step} key={index} />, steps);\n return (\n <div className={classnames(style.background, className)}>\n <div\n className={style.progress}\n style={{\n ...propsStyle,\n width: `${ratio * 100}%`\n }}\n />\n <p className={style.texts}>\n <span className={style.description}>{`${value}/${max} ${desc}`}</span>\n <span className={style.percentage}>{text}</span>\n </p>\n <div className={style.steps}>{stepList}</div>\n </div>\n );\n};\n\nProgressBar.propTypes = {\n className: PropTypes.string,\n value: PropTypes.number.isRequired,\n max: PropTypes.number.isRequired,\n desc: PropTypes.string,\n steps: PropTypes.number,\n style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\n\nexport default ProgressBar;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IAACC,SAAD;IAAYC,KAAZ;IAAmBC,GAAnB;IAAwBC,IAAI,GAAG,EAA/B;IAAmCC,KAAK,GAAG,CAA3C;IAA8CC,KAAK,EAAEC;EAArD,IAAmEP,KAAzE;EAEA,MAAMQ,KAAK,GAAGN,KAAK,GAAGC,GAAtB;EACA,MAAMM,UAAU,GAAGC,IAAI,CAACC,KAAL,CAAWH,KAAK,GAAG,GAAnB,CAAnB;EACA,MAAMI,IAAI,GAAI,GAAEH,UAAW,GAA3B;EACA,MAAMI,QAAQ,GAAG,qBAAMC,KAAK,iBAAI;IAAK,SAAS,EAAER,cAAA,CAAMS,IAAtB;IAA4B,GAAG,EAAED;EAAjC,EAAf,EAA2DT,KAA3D,CAAjB;EACA,oBACE;IAAK,SAAS,EAAE,IAAAW,mBAAA,EAAWV,cAAA,CAAMW,UAAjB,EAA6BhB,SAA7B;EAAhB,gBACE;IACE,SAAS,EAAEK,cAAA,CAAMY,QADnB;IAEE,KAAK,eACAX,UADA;MAEHY,KAAK,EAAG,GAAEX,KAAK,GAAG,GAAI;IAFnB;EAFP,EADF,eAQE;IAAG,SAAS,EAAEF,cAAA,CAAMc;EAApB,gBACE;IAAM,SAAS,EAAEd,cAAA,CAAMe;EAAvB,GAAsC,GAAEnB,KAAM,IAAGC,GAAI,IAAGC,IAAK,EAA7D,CADF,eAEE;IAAM,SAAS,EAAEE,cAAA,CAAMG;EAAvB,GAAoCG,IAApC,CAFF,CARF,eAYE;IAAK,SAAS,EAAEN,cAAA,CAAMD;EAAtB,GAA8BQ,QAA9B,CAZF,CADF;AAgBD,CAvBD;;AAyBAd,WAAW,CAACuB,SAAZ,2CAAwB;EACtBrB,SAAS,EAAEsB,kBAAA,CAAUC,MADC;EAEtBtB,KAAK,EAAEqB,kBAAA,CAAUE,MAAV,CAAiBC,UAFF;EAGtBvB,GAAG,EAAEoB,kBAAA,CAAUE,MAAV,CAAiBC,UAHA;EAItBtB,IAAI,EAAEmB,kBAAA,CAAUC,MAJM;EAKtBnB,KAAK,EAAEkB,kBAAA,CAAUE,MALK;EAMtBnB,KAAK,EAAEiB,kBAAA,CAAUI,QAAV,CAAmBJ,kBAAA,CAAUK,SAAV,CAAoB,CAACL,kBAAA,CAAUC,MAAX,EAAmBD,kBAAA,CAAUE,MAA7B,CAApB,CAAnB;AANe,CAAxB;eASe1B,W"}
@@ -5,7 +5,7 @@ declare namespace DropDown {
5
5
  const onChange: PropTypes.Requireable<(...args: any[]) => any>;
6
6
  const options: PropTypes.Requireable<(PropTypes.InferProps<{
7
7
  name: PropTypes.Validator<string>;
8
- value: PropTypes.Requireable<string | number>;
8
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
9
9
  selected: PropTypes.Requireable<boolean>;
10
10
  validOption: PropTypes.Requireable<boolean>;
11
11
  }> | null | undefined)[]>;
@@ -13,9 +13,9 @@ var _select = _interopRequireWildcard(require("../../../atom/select"));
13
13
 
14
14
  var _style = _interopRequireDefault(require("./style.css"));
15
15
 
16
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
17
 
18
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
18
+ 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; }
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/questions/drop-down/index.js"],"names":["DropDown","props","options","onChange","theme","propsTheme","currentSelection","defaultTheme","validOption","style","wrapper","propTypes","Select","PropTypes","arrayOf","shape","SelectOptionPropTypes"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAGC,KAAK,IAAI;AACxB,QAAM;AAACC,IAAAA,OAAD;AAAUC,IAAAA,QAAV;AAAoBC,IAAAA,KAAK,EAAEC;AAA3B,MAAyCJ,KAA/C;AAEA,QAAMK,gBAAgB,GAAG,oBAAK,UAAL,EAAiBJ,OAAjB,CAAzB;AACA,QAAMK,YAAY,GAChB,CAACD,gBAAD,IAAqBA,gBAAgB,CAACE,WAAjB,KAAiC,KAAtD,GAA8D,SAA9D,GAA0E,UAD5E;AAGA,QAAMJ,KAAK,GAAGC,UAAU,IAAIE,YAA5B;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEE,eAAMC;AAAtB,kBACE,6BAAC,eAAD;AAAQ,IAAA,KAAK,EAAEN,KAAf;AAAsB,IAAA,OAAO,EAAEF,OAA/B;AAAwC,IAAA,QAAQ,EAAEC;AAAlD,IADF,CADF;AAKD,CAdD;;AAgBAH,QAAQ,CAACW,SAAT,2CAAqB;AACnBR,EAAAA,QAAQ,EAAES,gBAAOD,SAAP,CAAiBR,QADR;AAEnBD,EAAAA,OAAO,EAAEW,mBAAUC,OAAV,CAAkBD,mBAAUE,KAAV,CAAgBC,6BAAhB,CAAlB,CAFU;AAGnBZ,EAAAA,KAAK,EAAEQ,gBAAOD,SAAP,CAAiBP;AAHL,CAArB;eAMeJ,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {find} from 'lodash/fp';\nimport Select, {SelectOptionPropTypes} from '../../../atom/select';\nimport style from './style.css';\n\nconst DropDown = props => {\n const {options, onChange, theme: propsTheme} = props;\n\n const currentSelection = find('selected', options);\n const defaultTheme =\n !currentSelection || currentSelection.validOption === false ? 'invalid' : 'question';\n\n const theme = propsTheme || defaultTheme;\n\n return (\n <div className={style.wrapper}>\n <Select theme={theme} options={options} onChange={onChange} />\n </div>\n );\n};\n\nDropDown.propTypes = {\n onChange: Select.propTypes.onChange,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n theme: Select.propTypes.theme\n};\n\nexport default DropDown;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["DropDown","props","options","onChange","theme","propsTheme","currentSelection","defaultTheme","validOption","style","wrapper","propTypes","Select","PropTypes","arrayOf","shape","SelectOptionPropTypes"],"sources":["../../../../src/molecule/questions/drop-down/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {find} from 'lodash/fp';\nimport Select, {SelectOptionPropTypes} from '../../../atom/select';\nimport style from './style.css';\n\nconst DropDown = props => {\n const {options, onChange, theme: propsTheme} = props;\n\n const currentSelection = find('selected', options);\n const defaultTheme =\n !currentSelection || currentSelection.validOption === false ? 'invalid' : 'question';\n\n const theme = propsTheme || defaultTheme;\n\n return (\n <div className={style.wrapper}>\n <Select theme={theme} options={options} onChange={onChange} />\n </div>\n );\n};\n\nDropDown.propTypes = {\n onChange: Select.propTypes.onChange,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n theme: Select.propTypes.theme\n};\n\nexport default DropDown;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAGC,KAAK,IAAI;EACxB,MAAM;IAACC,OAAD;IAAUC,QAAV;IAAoBC,KAAK,EAAEC;EAA3B,IAAyCJ,KAA/C;EAEA,MAAMK,gBAAgB,GAAG,oBAAK,UAAL,EAAiBJ,OAAjB,CAAzB;EACA,MAAMK,YAAY,GAChB,CAACD,gBAAD,IAAqBA,gBAAgB,CAACE,WAAjB,KAAiC,KAAtD,GAA8D,SAA9D,GAA0E,UAD5E;EAGA,MAAMJ,KAAK,GAAGC,UAAU,IAAIE,YAA5B;EAEA,oBACE;IAAK,SAAS,EAAEE,cAAA,CAAMC;EAAtB,gBACE,6BAAC,eAAD;IAAQ,KAAK,EAAEN,KAAf;IAAsB,OAAO,EAAEF,OAA/B;IAAwC,QAAQ,EAAEC;EAAlD,EADF,CADF;AAKD,CAdD;;AAgBAH,QAAQ,CAACW,SAAT,2CAAqB;EACnBR,QAAQ,EAAES,eAAA,CAAOD,SAAP,CAAiBR,QADR;EAEnBD,OAAO,EAAEW,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,6BAAhB,CAAlB,CAFU;EAGnBZ,KAAK,EAAEQ,eAAA,CAAOD,SAAP,CAAiBP;AAHL,CAArB;eAMeJ,Q"}
@@ -17,13 +17,13 @@ var _provider = _interopRequireWildcard(require("../../../atom/provider"));
17
17
 
18
18
  var _style = _interopRequireDefault(require("./style.css"));
19
19
 
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
20
+ 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); }
21
21
 
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
22
+ 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; }
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- function _extends() { _extends = Object.assign || 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); }
26
+ 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); }
27
27
 
28
28
  const FreeText = (props, legacyContext) => {
29
29
  const skin = (0, _provider.GetSkinFromContext)(legacyContext);
@@ -56,11 +56,11 @@ const FreeText = (props, legacyContext) => {
56
56
  value: value,
57
57
  onInput: handleChange,
58
58
  onChange: _noop2.default,
59
- style: _extends(_extends({
59
+ style: _extends({
60
60
  boxShadow: `0 4px 16px ${shadowBoxPrimaryColor}`
61
61
  }, value && {
62
62
  boxShadow: `0 4px 16px ${hovered ? (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(20%))`) : shadowBoxPrimaryColor}`
63
- }), {}, {
63
+ }, {
64
64
  color: primarySkinColor
65
65
  })
66
66
  }));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/questions/free-text/index.js"],"names":["FreeText","props","legacyContext","skin","placeholder","value","onChange","ariaLabel","hovered","setHovered","handleChange","e","target","primarySkinColor","handleMouseOver","handleMouseLeave","shadowBoxPrimaryColor","style","wrapper","boxShadow","freeText","color","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","func"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;AACzC,QAAMC,IAAI,GAAG,kCAAmBD,aAAnB,CAAb;AACA,QAAM;AAACE,IAAAA,WAAW,GAAG,EAAf;AAAmBC,IAAAA,KAAK,GAAG,EAA3B;AAA+BC,IAAAA,QAAQ,iBAAvC;AAAgD,kBAAcC;AAA9D,MAA2EN,KAAjF;AACA,QAAM,CAACO,OAAD,EAAUC,UAAV,IAAwB,qBAAS,KAAT,CAA9B;AAEA,QAAMC,YAAY,GAAG,wBAAYC,CAAC,IAAIL,QAAQ,CAACK,CAAC,CAACC,MAAF,CAASP,KAAV,CAAzB,EAA2C,CAACC,QAAD,CAA3C,CAArB;AACA,QAAMO,gBAAgB,GAAG,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCV,IAAnC,CAAzB;AAEA,QAAMW,eAAe,GAAG,wBAAY,MAAML,UAAU,CAAC,IAAD,CAA5B,EAAoC,CAACA,UAAD,CAApC,CAAxB;AAEA,QAAMM,gBAAgB,GAAG,wBAAY,MAAMN,UAAU,CAAC,KAAD,CAA5B,EAAqC,CAACA,UAAD,CAArC,CAAzB;AAEA,QAAMO,qBAAqB,GAAG,oBAC5B,MAAM,+BAAS,SAAQH,gBAAiB,UAAlC,CADsB,EAE5B,CAACA,gBAAD,CAF4B,CAA9B;AAKA,sBACE;AACE,iBAAU,UADZ;AAEE,IAAA,SAAS,EAAEI,eAAMC,OAFnB;AAGE,IAAA,WAAW,EAAEJ,eAHf;AAIE,IAAA,YAAY,EAAEC,gBAJhB;AAKE,IAAA,KAAK,eACCV,KAAK,IAAI;AACXc,MAAAA,SAAS,EAAEX,OAAO,GAAG,MAAH,GAAa,cAAaQ,qBAAsB;AADvD,KADV;AALP,kBAWE;AACE,iBAAU,iBADZ;AAEE,IAAA,IAAI,EAAC,MAFP;AAGE,kBAAYT,SAAS,IAAIF,KAAb,IAAsBD,WAHpC;AAIE,IAAA,SAAS,EAAEa,eAAMG,QAJnB;AAKE,IAAA,WAAW,EAAEhB,WALf;AAME,IAAA,KAAK,EAAEC,KANT;AAOE,IAAA,OAAO,EAAEK,YAPX;AAQE,IAAA,QAAQ,gBARV;AASE,IAAA,KAAK;AACHS,MAAAA,SAAS,EAAG,cAAaH,qBAAsB;AAD5C,OAECX,KAAK,IAAI;AACXc,MAAAA,SAAS,EAAG,cACVX,OAAO,GAAG,+BAAS,SAAQK,gBAAiB,UAAlC,CAAH,GAAkDG,qBAC1D;AAHU,KAFV;AAOHK,MAAAA,KAAK,EAAER;AAPJ;AATP,IAXF,CADF;AAiCD,CAlDD;;AAoDAb,QAAQ,CAACsB,YAAT,GAAwB;AACtBnB,EAAAA,IAAI,EAAEoB,kBAASC,iBAAT,CAA2BrB;AADX,CAAxB;AAIAH,QAAQ,CAACyB,SAAT,2CAAqB;AACnBrB,EAAAA,WAAW,EAAEsB,mBAAUC,MADJ;AAEnBtB,EAAAA,KAAK,EAAEqB,mBAAUC,MAFE;AAGnBrB,EAAAA,QAAQ,EAAEoB,mBAAUE,IAHD;AAInB,gBAAcF,mBAAUC;AAJL,CAArB;eAOe3B,Q","sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, getOr} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider, {GetSkinFromContext} from '../../../atom/provider';\nimport style from './style.css';\n\nconst FreeText = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const {placeholder = '', value = '', onChange = noop, 'aria-label': ariaLabel} = props;\n const [hovered, setHovered] = useState(false);\n\n const handleChange = useCallback(e => onChange(e.target.value), [onChange]);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const shadowBoxPrimaryColor = useMemo(\n () => convert(`color(${primarySkinColor} a(12%))`),\n [primarySkinColor]\n );\n\n return (\n <div\n data-name=\"freeText\"\n className={style.wrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n style={{\n ...(value && {\n boxShadow: hovered ? 'none' : `0 4px 16px ${shadowBoxPrimaryColor}`\n })\n }}\n >\n <input\n data-name=\"free-text-input\"\n type=\"text\"\n aria-label={ariaLabel || value || placeholder}\n className={style.freeText}\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onChange={noop}\n style={{\n boxShadow: `0 4px 16px ${shadowBoxPrimaryColor}`,\n ...(value && {\n boxShadow: `0 4px 16px ${\n hovered ? convert(`color(${primarySkinColor} a(20%))`) : shadowBoxPrimaryColor\n }`\n }),\n color: primarySkinColor\n }}\n />\n </div>\n );\n};\n\nFreeText.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nFreeText.propTypes = {\n placeholder: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string\n};\n\nexport default FreeText;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["FreeText","props","legacyContext","skin","GetSkinFromContext","placeholder","value","onChange","ariaLabel","hovered","setHovered","useState","handleChange","useCallback","e","target","primarySkinColor","handleMouseOver","handleMouseLeave","shadowBoxPrimaryColor","useMemo","convert","style","wrapper","boxShadow","freeText","color","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","func"],"sources":["../../../../src/molecule/questions/free-text/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, getOr} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider, {GetSkinFromContext} from '../../../atom/provider';\nimport style from './style.css';\n\nconst FreeText = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const {placeholder = '', value = '', onChange = noop, 'aria-label': ariaLabel} = props;\n const [hovered, setHovered] = useState(false);\n\n const handleChange = useCallback(e => onChange(e.target.value), [onChange]);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const shadowBoxPrimaryColor = useMemo(\n () => convert(`color(${primarySkinColor} a(12%))`),\n [primarySkinColor]\n );\n\n return (\n <div\n data-name=\"freeText\"\n className={style.wrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n style={{\n ...(value && {\n boxShadow: hovered ? 'none' : `0 4px 16px ${shadowBoxPrimaryColor}`\n })\n }}\n >\n <input\n data-name=\"free-text-input\"\n type=\"text\"\n aria-label={ariaLabel || value || placeholder}\n className={style.freeText}\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onChange={noop}\n style={{\n boxShadow: `0 4px 16px ${shadowBoxPrimaryColor}`,\n ...(value && {\n boxShadow: `0 4px 16px ${\n hovered ? convert(`color(${primarySkinColor} a(20%))`) : shadowBoxPrimaryColor\n }`\n }),\n color: primarySkinColor\n }}\n />\n </div>\n );\n};\n\nFreeText.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nFreeText.propTypes = {\n placeholder: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string\n};\n\nexport default FreeText;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EACzC,MAAMC,IAAI,GAAG,IAAAC,4BAAA,EAAmBF,aAAnB,CAAb;EACA,MAAM;IAACG,WAAW,GAAG,EAAf;IAAmBC,KAAK,GAAG,EAA3B;IAA+BC,QAAQ,iBAAvC;IAAgD,cAAcC;EAA9D,IAA2EP,KAAjF;EACA,MAAM,CAACQ,OAAD,EAAUC,UAAV,IAAwB,IAAAC,e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G,qBAC1D;IAHU,CAFV;MAOHO,KAAK,EAAEV;IAPJ;EATP,EAXF,CADF;AAiCD,CAlDD;;AAoDAhB,QAAQ,CAAC2B,YAAT,GAAwB;EACtBxB,IAAI,EAAEyB,iBAAA,CAASC,iBAAT,CAA2B1B;AADX,CAAxB;AAIAH,QAAQ,CAAC8B,SAAT,2CAAqB;EACnBzB,WAAW,EAAE0B,kBAAA,CAAUC,MADJ;EAEnB1B,KAAK,EAAEyB,kBAAA,CAAUC,MAFE;EAGnBzB,QAAQ,EAAEwB,kBAAA,CAAUE,IAHD;EAInB,cAAcF,kBAAA,CAAUC;AAJL,CAArB;eAOehC,Q"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Analytics } from '../../../variables/analytics';
2
3
  declare type QuestionType = 'basic' | 'template';
3
4
  interface Props {
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/free-text/index.native.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAK7E,aAAK,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAEzC,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA6CD,QAAA,MAAM,QAAQ,UAAW,KAAK,uBA2D7B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/free-text/index.native.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAuB,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAK7E,aAAK,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAEzC,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA6CD,QAAA,MAAM,QAAQ,UAAW,KAAK,uBA2D7B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -13,22 +13,22 @@ var _analytics = require("../../../variables/analytics");
13
13
 
14
14
  var _shadow = require("../../../variables/shadow");
15
15
 
16
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
17
 
18
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
18
+ 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; }
19
19
 
20
- function _extends() { _extends = Object.assign || 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); }
20
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
22
  const createStyleSheet = (brandTheme, theme) => _reactNative.StyleSheet.create({
23
23
  // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread
24
- input: _extends(_extends({
24
+ input: _extends({
25
25
  padding: theme.spacing.tiny,
26
26
  borderColor: theme.colors.gray.lightMedium,
27
27
  borderRadius: theme.radius.regular,
28
28
  minWidth: 175,
29
29
  marginHorizontal: 12,
30
30
  paddingVertical: 16
31
- }, _shadow.BOX_STYLE), {}, {
31
+ }, _shadow.BOX_STYLE, {
32
32
  backgroundColor: theme.colors.white
33
33
  }),
34
34
  text: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/questions/free-text/index.native.tsx"],"names":["createStyleSheet","brandTheme","theme","StyleSheet","create","input","padding","spacing","tiny","borderColor","colors","gray","lightMedium","borderRadius","radius","regular","minWidth","marginHorizontal","paddingVertical","BOX_STYLE","backgroundColor","white","text","primary","color","medium","fontWeight","bold","fontSize","textAlign","spaced","fullWitdh","width","logEvent","eventName","analytics","questionType","id","FreeText","props","templateContext","styleSheet","setStylesheet","translations","PLACEHOLDER_COLOR","fullWidth","testID","onChange","isDisabled","value","handleFocus","ANALYTICS_EVENT_TYPE","INPUT_FOCUS","handleBlur","INPUT_BLUR","_stylesheet","typeHere"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAsBA,MAAMA,gBAAgB,GAAG,CAACC,UAAD,EAAoBC,KAApB,KACvBC,wBAAWC,MAAX,CAAkB;AAChB;AACAC,EAAAA,KAAK;AACHC,IAAAA,OAAO,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IADpB;AAEHC,IAAAA,WAAW,EAAEP,KAAK,CAACQ,MAAN,CAAaC,IAAb,CAAkBC,WAF5B;AAGHC,IAAAA,YAAY,EAAEX,KAAK,CAACY,MAAN,CAAaC,OAHxB;AAIHC,IAAAA,QAAQ,EAAE,GAJP;AAKHC,IAAAA,gBAAgB,EAAE,EALf;AAMHC,IAAAA,eAAe,EAAE;AANd,KAOAC,iBAPA;AAQHC,IAAAA,eAAe,EAAElB,KAAK,CAACQ,MAAN,CAAaW;AAR3B,IAFW;AAYhBC,EAAAA,IAAI,EAAE;AACJb,IAAAA,WAAW,EAAER,UAAU,EAAES,MAAZ,EAAoBa,OAD7B;AAEJC,IAAAA,KAAK,EAAEvB,UAAU,EAAES,MAAZ,EAAoBa,OAApB,IAA+BrB,KAAK,CAACQ,MAAN,CAAaC,IAAb,CAAkBc,MAFpD;AAGJC,IAAAA,UAAU,EAAExB,KAAK,CAACwB,UAAN,CAAiBC,IAHzB;AAIJC,IAAAA,QAAQ,EAAE1B,KAAK,CAAC0B,QAAN,CAAeb,OAJrB;AAKJc,IAAAA,SAAS,EAAE;AALP,GAZU;AAmBhBC,EAAAA,MAAM,EAAE;AACNZ,IAAAA,eAAe,EAAEhB,KAAK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AU,MAAM;AACd,UAAMmB,WAAW,GAAGvD,gBAAgB,CAACC,UAAD,EAAaC,KAAb,CAApC;;AACAwC,IAAAA,aAAa,CAACa,WAAD,CAAb;AACD,GAHD,EAGG,CAACtD,UAAD,EAAaC,KAAb,CAHH,EAhCiC,CAqCjC;;AAEA,MAAI,CAACuC,UAAL,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,sBACE,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAE,CAACA,UAAU,CAACX,MAAZ,EAAoBe,SAAS,IAAIJ,UAAU,CAACV,SAA5C;AAAb,kBACE,6BAAC,sBAAD;AACE,IAAA,KAAK,EAAE,CAACU,UAAU,CAACpC,KAAZ,EAAmBoC,UAAU,CAACnB,IAA9B,CADT;AAEE,IAAA,OAAO,EAAE4B,WAFX;AAGE,IAAA,MAAM,EAAEG,UAHV;AAIE,IAAA,YAAY,EAAEN,QAJhB;AAKE,IAAA,WAAW,EAAEJ,YAAY,CAACa,QAL5B;AAME,IAAA,oBAAoB,EAAEZ,iBANxB;AAOE,IAAA,KAAK,EAAEK,KAPT;AAQE,IAAA,MAAM,EAAEH,MARV;AASE,IAAA,QAAQ,EAAE,CAACE,UATb;AAUE,IAAA,iBAAiB,EAAE,CAACA;AAVtB,IADF,CADF;AAgBD,CA3DD;;eA6DeV,Q","sourcesContent":["import {View, StyleSheet, TextInput, ViewStyle} from 'react-native';\nimport React, {useState, useEffect, useCallback} from 'react';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE, Analytics} from '../../../variables/analytics';\nimport {Theme} from '../../../variables/theme.native';\nimport {BOX_STYLE} from '../../../variables/shadow';\nimport {Brand} from '../../../variables/brand.native';\n\ntype QuestionType = 'basic' | 'template';\n\ninterface Props {\n fullWidth?: boolean;\n testID: string;\n questionType: QuestionType;\n analytics?: Analytics;\n onChange: (text: string) => void;\n isDisabled?: boolean;\n value?: string; // when value is undefined, TextInput acts as not controlled\n}\n\ntype StyleSheetType = {\n input: ViewStyle;\n text: ViewStyle;\n spaced: ViewStyle;\n fullWitdh: ViewStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread\n input: {\n padding: theme.spacing.tiny,\n borderColor: theme.colors.gray.lightMedium,\n borderRadius: theme.radius.regular,\n minWidth: 175,\n marginHorizontal: 12,\n paddingVertical: 16,\n ...BOX_STYLE,\n backgroundColor: theme.colors.white\n },\n text: {\n borderColor: brandTheme?.colors?.primary,\n color: brandTheme?.colors?.primary || theme.colors.gray.medium,\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.regular,\n textAlign: 'center'\n },\n spaced: {\n paddingVertical: theme.spacing.tiny\n },\n fullWitdh: {\n width: '100%'\n }\n });\n\nconst logEvent = (eventName: string, analytics: Analytics, questionType: QuestionType) => {\n analytics &&\n analytics.logEvent(eventName, {\n id: `question-input-text`,\n questionType\n });\n};\n\nconst FreeText = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme, translations} = templateContext;\n const PLACEHOLDER_COLOR = theme.colors.gray.medium;\n\n // ------------------------------------\n\n const {\n analytics,\n questionType,\n fullWidth = false,\n testID,\n onChange,\n isDisabled = false,\n value\n } = props;\n\n // ------------------------------------\n\n const handleFocus = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_FOCUS, analytics, questionType),\n [analytics, questionType]\n );\n\n const handleBlur = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_BLUR, analytics, questionType),\n [analytics, questionType]\n );\n\n // ------------------------------------\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={[styleSheet.spaced, fullWidth && styleSheet.fullWitdh]}>\n <TextInput\n style={[styleSheet.input, styleSheet.text]}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChangeText={onChange}\n placeholder={translations.typeHere}\n placeholderTextColor={PLACEHOLDER_COLOR}\n value={value}\n testID={testID}\n editable={!isDisabled}\n selectTextOnFocus={!isDisabled}\n />\n </View>\n );\n};\n\nexport default FreeText;\n"],"file":"index.native.js"}
1
+ {"version":3,"file":"index.native.js","names":["createStyleSheet","brandTheme","theme","StyleSheet","create","input","padding","spacing","tiny","borderColor","colors","gray","lightMedium","borderRadius","radius","regular","minWidth","marginHorizontal","paddingVertical","BOX_STYLE","backgroundColor","white","text","primary","color","medium","fontWeight","bold","fontSize","textAlign","spaced","fullWitdh","width","logEvent","eventName","analytics","questionType","id","FreeText","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","translations","PLACEHOLDER_COLOR","fullWidth","testID","onChange","isDisabled","value","handleFocus","useCallback","ANALYTICS_EVENT_TYPE","INPUT_FOCUS","handleBlur","INPUT_BLUR","useEffect","_stylesheet","typeHere"],"sources":["../../../../src/molecule/questions/free-text/index.native.tsx"],"sourcesContent":["import {View, StyleSheet, TextInput, ViewStyle} from 'react-native';\nimport React, {useState, useEffect, useCallback} from 'react';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE, Analytics} from '../../../variables/analytics';\nimport {Theme} from '../../../variables/theme.native';\nimport {BOX_STYLE} from '../../../variables/shadow';\nimport {Brand} from '../../../variables/brand.native';\n\ntype QuestionType = 'basic' | 'template';\n\ninterface Props {\n fullWidth?: boolean;\n testID: string;\n questionType: QuestionType;\n analytics?: Analytics;\n onChange: (text: string) => void;\n isDisabled?: boolean;\n value?: string; // when value is undefined, TextInput acts as not controlled\n}\n\ntype StyleSheetType = {\n input: ViewStyle;\n text: ViewStyle;\n spaced: ViewStyle;\n fullWitdh: ViewStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread\n input: {\n padding: theme.spacing.tiny,\n borderColor: theme.colors.gray.lightMedium,\n borderRadius: theme.radius.regular,\n minWidth: 175,\n marginHorizontal: 12,\n paddingVertical: 16,\n ...BOX_STYLE,\n backgroundColor: theme.colors.white\n },\n text: {\n borderColor: brandTheme?.colors?.primary,\n color: brandTheme?.colors?.primary || theme.colors.gray.medium,\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.regular,\n textAlign: 'center'\n },\n spaced: {\n paddingVertical: theme.spacing.tiny\n },\n fullWitdh: {\n width: '100%'\n }\n });\n\nconst logEvent = (eventName: string, analytics: Analytics, questionType: QuestionType) => {\n analytics &&\n analytics.logEvent(eventName, {\n id: `question-input-text`,\n questionType\n });\n};\n\nconst FreeText = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme, translations} = templateContext;\n const PLACEHOLDER_COLOR = theme.colors.gray.medium;\n\n // ------------------------------------\n\n const {\n analytics,\n questionType,\n fullWidth = false,\n testID,\n onChange,\n isDisabled = false,\n value\n } = props;\n\n // ------------------------------------\n\n const handleFocus = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_FOCUS, analytics, questionType),\n [analytics, questionType]\n );\n\n const handleBlur = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_BLUR, analytics, questionType),\n [analytics, questionType]\n );\n\n // ------------------------------------\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={[styleSheet.spaced, fullWidth && styleSheet.fullWitdh]}>\n <TextInput\n style={[styleSheet.input, styleSheet.text]}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChangeText={onChange}\n placeholder={translations.typeHere}\n placeholderTextColor={PLACEHOLDER_COLOR}\n value={value}\n testID={testID}\n editable={!isDisabled}\n selectTextOnFocus={!isDisabled}\n />\n </View>\n );\n};\n\nexport default FreeText;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAsBA,MAAMA,gBAAgB,GAAG,CAACC,UAAD,EAAoBC,KAApB,KACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChB;EACAC,KAAK;IACHC,OAAO,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IADpB;IAEHC,WAAW,EAAEP,KAAK,CAACQ,MAAN,CAAaC,IAAb,CAAkBC,WAF5B;IAGHC,YAAY,EAAEX,KAAK,CAACY,MAAN,CAAaC,OAHxB;IAIHC,QAAQ,EAAE,GAJP;IAKHC,gBAAgB,EAAE,EALf;IAMHC,eAAe,EAAE;EANd,GAOAC,iBAPA;IAQHC,eAAe,EAAElB,KAAK,CAACQ,MAAN,CAAaW;EAR3B,EAFW;EAYhBC,IAAI,EAAE;IACJb,WAAW,EAAER,UAAU,EAAES,MAAZ,EAAoBa,OAD7B;IAEJC,KAAK,EAAEvB,UAAU,EAAES,MAAZ,EAAoBa,OAApB,IAA+BrB,KAAK,CAACQ,MAAN,CAAaC,IAAb,CAAkBc,MAFpD;IAGJC,UAAU,EAAExB,KAAK,CAACwB,UAAN,CAAiBC,IAHzB;IAIJC,QAAQ,EAAE1B,KAAK,CAAC0B,QAAN,CAAeb,OAJrB;IAKJc,SAAS,EAAE;EALP,CAZU;EAmBhBC,MAAM,EAAE;IACNZ,eAAe,EAAEhB,KAAK,CAACK,OAAN,CAAcC;EADzB,CAnBQ;EAsBhBuB,SAAS,EAAE;IACTC,KAAK,EAAE;EADE;AAtBK,CAAlB,CADF;;AA4BA,MAAMC,QAAQ,GAAG,CAACC,SAAD,EAAoBC,SAApB,EAA0CC,YAA1C,KAAyE;EACxFD,SAAS,IACPA,SAAS,CAACF,QAAV,CAAmBC,SAAnB,EAA8B;IAC5B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,EAAE,CAACA,UAAU,CAACZ,MAAZ,EAAoBiB,SAAS,IAAIL,UAAU,CAACX,SAA5C;EAAb,gBACE,6BAAC,sBAAD;IACE,KAAK,EAAE,CAACW,UAAU,CAACrC,KAAZ,EAAmBqC,UAAU,CAACpB,IAA9B,CADT;IAEE,OAAO,EAAE8B,WAFX;IAGE,MAAM,EAAEI,UAHV;IAIE,YAAY,EAAEP,QAJhB;IAKE,WAAW,EAAEJ,YAAY,CAACe,QAL5B;IAME,oBAAoB,EAAEd,iBANxB;IAOE,KAAK,EAAEK,KAPT;IAQE,MAAM,EAAEH,MARV;IASE,QAAQ,EAAE,CAACE,UATb;IAUE,iBAAiB,EAAE,CAACA;EAVtB,EADF,CADF;AAgBD,CA3DD;;eA6DeZ,Q"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { SelectableChoice } from '../../types';
2
3
  export interface DropZoneProps {
3
4
  choices: Array<SelectableChoice>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/mobile/draggable/index.native.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,MAAM,IAAI,CAAC;CACjD;AAgFD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,MAAM,IAAI,CAAC;CACjD;AAkBD,QAAA,MAAM,iBAAiB,UAAW,KAAK,uBAuCtC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/mobile/draggable/index.native.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,MAAM,IAAI,CAAC;CACjD;AAgFD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,MAAM,IAAI,CAAC;CACjD;AAkBD,QAAA,MAAM,iBAAiB,UAAW,KAAK,uBAuCtC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -13,9 +13,9 @@ var _templateContext = require("../../../../template/app-review/template-context
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
17
 
18
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
18
+ 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; }
19
19
 
20
20
  const createDropZoneStyle = theme => _reactNative.StyleSheet.create({
21
21
  choice: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/questions/mobile/draggable/index.native.tsx"],"names":["createDropZoneStyle","theme","StyleSheet","create","choice","margin","spacing","micro","dropZone","flexWrap","flexDirection","borderStyle","borderWidth","padding","borderColor","colors","gray","light","backgroundColor","extra","borderRadius","radius","common","marginBottom","tiny","emptyContent","justifyContent","alignContent","alignItems","height","text","color","medium","DropZone","props","templateContext","translations","onPress","styleSheet","setStylesheet","_stylesheet","choices","mappedSortedChoices","map","item","_id","label","hasNoSelectedChoices","length","selectSomethingBelow","createStyleSheet","pickableChoices","QuestionDraggable","testID","selectedChoices","filter","selected"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;AAiBA,MAAMA,mBAAmB,GAAIC,KAAD,IAC1BC,wBAAWC,MAAX,CAAkB;AAChBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,MAAM,EAAEJ,KAAK,CAACK,OAAN,CAAcC;AADhB,GADQ;AAIhBC,EAAAA,QAAQ,EAAE;AACRC,IAAAA,QAAQ,EAAE,MADF;AAERC,IA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AAMC,WAAW,GAAGU,gBAAgB,CAACjD,KAAD,CAApC;;AACAsC,IAAAA,aAAa,CAACC,WAAD,CAAb;AACD,GAHD,EAGG,CAACvC,KAAD,CAHH;;AAKA,MAAI,CAACqC,UAAL,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,QAAM;AAACG,IAAAA,OAAD;AAAUJ,IAAAA,OAAV;AAAmBgB,IAAAA;AAAnB,MAA6BnB,KAAnC;AACA,QAAMoB,eAAe,GAAGb,OAAO,CAACc,MAAR,CAAeX,IAAI,IAAIA,IAAI,CAACY,QAA5B,CAAxB;AAEA,QAAML,eAAe,GAAGV,OAAO,CAC5Bc,MADqB,CACdX,IAAI,IAAI,CAACA,IAAI,CAACY,QADA,EAErBb,GAFqB,CAEhBC,IAAD,iBACH,6BAAC,cAAD;AACE,IAAA,KAAK,EAAEN,UAAU,CAAClC,MADpB;AAEE,IAAA,GAAG,EAAEwC,IAAI,CAACC,GAFZ;AAGE,IAAA,QAAQ,MAHV;AAIE,IAAA,MAAM,EAAG,UAASD,IAAI,CAACC,GAAI,aAJ7B;AAKE,IAAA,OAAO,EAAER,OAAO,CAACO,IAAD,CALlB;AAME,IAAA,YAAY,EAAC;AANf,KAQGA,IAAI,CAACE,KARR,CAHoB,CAAxB;AAeA,sBACE,6BAAC,iBAAD;AAAM,IAAA,MAAM,EAAEO;AAAd,kBACE,6BAAC,QAAD;AAAU,IAAA,OAAO,EAAEC,eAAnB;AAAoC,IAAA,OAAO,EAAEjB;AAA7C,IADF,eAEE,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAEC,UAAU,CAACa;AAAxB,KAA0CA,eAA1C,CAFF,CADF;AAMD,CAvCD;;eAyCeC,iB","sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {View, StyleSheet, Text, ViewStyle, TextStyle} from 'react-native';\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {Theme} from '../../../../variables/theme.native';\n\nimport type {SelectableChoice} from '../../types';\n\nexport interface DropZoneProps {\n choices: Array<SelectableChoice>;\n onPress: (item: SelectableChoice) => () => void;\n}\n\ntype DropZoneStyleSheet = {\n choice: ViewStyle;\n dropZone: ViewStyle;\n emptyContent: ViewStyle;\n text: TextStyle;\n};\n\nconst createDropZoneStyle = (theme: Theme): DropZoneStyleSheet =>\n StyleSheet.create({\n choice: {\n margin: theme.spacing.micro\n },\n dropZone: {\n flexWrap: 'wrap',\n flexDirection: 'row',\n borderStyle: 'dashed',\n borderWidth: 2,\n padding: theme.spacing.micro,\n borderColor: theme.colors.gray.light,\n backgroundColor: theme.colors.gray.extra,\n borderRadius: theme.radius.common,\n marginBottom: theme.spacing.tiny\n },\n emptyContent: {\n justifyContent: 'center',\n alignContent: 'center',\n alignItems: 'center',\n height: 60\n },\n text: {\n color: theme.colors.gray.medium\n }\n });\n\nconst DropZone = (props: DropZoneProps) => {\n const templateContext = useTemplateContext();\n const {theme, translations} = templateContext;\n const {onPress} = props;\n\n const [styleSheet, setStylesheet] = useState<DropZoneStyleSheet | null>(null);\n\n useEffect(() => {\n const _stylesheet = createDropZoneStyle(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {choices} = props;\n const mappedSortedChoices = choices.map(item => (\n <QuestionChoice\n style={styleSheet.choice}\n key={item._id}\n squeezed\n isSelected\n testID={`choice-${item._id}`}\n onPress={onPress(item)}\n questionType=\"qcmDrag\"\n >\n {item.label}\n </QuestionChoice>\n ));\n\n const hasNoSelectedChoices = mappedSortedChoices.length === 0;\n\n return (\n <View style={[styleSheet.dropZone, hasNoSelectedChoices && styleSheet.emptyContent]}>\n {hasNoSelectedChoices ? (\n <Text style={styleSheet.text}>{translations.selectSomethingBelow}</Text>\n ) : null}\n\n {!hasNoSelectedChoices && mappedSortedChoices}\n </View>\n );\n};\n\nexport interface Props {\n choices: Array<SelectableChoice>;\n testID?: string;\n onPress: (item: SelectableChoice) => () => void;\n}\n\ntype QuestionDraggableStyleSheet = {\n pickableChoices: ViewStyle;\n choice: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): QuestionDraggableStyleSheet =>\n StyleSheet.create({\n pickableChoices: {\n flexDirection: 'row',\n flexWrap: 'wrap'\n },\n choice: {\n margin: theme.spacing.micro\n }\n });\n\nconst QuestionDraggable = (props: Props) => {\n const templateContext = useTemplateContext();\n const {theme} = templateContext;\n\n const [styleSheet, setStylesheet] = useState<QuestionDraggableStyleSheet | 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 const {choices, onPress, testID} = props;\n const selectedChoices = choices.filter(item => item.selected);\n\n const pickableChoices = choices\n .filter(item => !item.selected)\n .map((item: SelectableChoice) => (\n <QuestionChoice\n style={styleSheet.choice}\n key={item._id}\n squeezed\n testID={`choice-${item._id}-unselected`}\n onPress={onPress(item)}\n questionType=\"qcmDrag\"\n >\n {item.label}\n </QuestionChoice>\n ));\n\n return (\n <View testID={testID}>\n <DropZone choices={selectedChoices} onPress={onPress} />\n <View style={styleSheet.pickableChoices}>{pickableChoices}</View>\n </View>\n );\n};\n\nexport default QuestionDraggable;\n"],"file":"index.native.js"}
1
+ {"version":3,"file":"index.native.js","names":["createDropZoneStyle","theme","StyleSheet","create","choice","margin","spacing","micro","dropZone","flexWrap","flexDirection","borderStyle","borderWidth","padding","borderColor","colors","gray","light","backgroundColor","extra","borderRadius","radius","common","marginBottom","tiny","emptyContent","justifyContent","alignContent","alignItems","height","text","color","medium","DropZone","props","templateContext","useTemplateContext","translations","onPress","styleSheet","setStylesheet","useState","useEffect","_stylesheet","choices","mappedSortedChoices","map","item","_id","label","hasNoSelectedChoices","length","selectSomethingBelow","createStyleSheet","pickableChoices","QuestionDraggable","testID","selectedChoices","filter","selected"],"sources":["../../../../../src/molecule/questions/mobile/draggable/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {View, StyleSheet, Text, ViewStyle, TextStyle} from 'react-native';\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {Theme} from '../../../../variables/theme.native';\n\nimport type {SelectableChoice} from '../../types';\n\nexport interface DropZoneProps {\n choices: Array<SelectableChoice>;\n onPress: (item: SelectableChoice) => () => void;\n}\n\ntype DropZoneStyleSheet = {\n choice: ViewStyle;\n dropZone: ViewStyle;\n emptyContent: ViewStyle;\n text: TextStyle;\n};\n\nconst createDropZoneStyle = (theme: Theme): DropZoneStyleSheet =>\n StyleSheet.create({\n choice: {\n margin: theme.spacing.micro\n },\n dropZone: {\n flexWrap: 'wrap',\n flexDirection: 'row',\n borderStyle: 'dashed',\n borderWidth: 2,\n padding: theme.spacing.micro,\n borderColor: theme.colors.gray.light,\n backgroundColor: theme.colors.gray.extra,\n borderRadius: theme.radius.common,\n marginBottom: theme.spacing.tiny\n },\n emptyContent: {\n justifyContent: 'center',\n alignContent: 'center',\n alignItems: 'center',\n height: 60\n },\n text: {\n color: theme.colors.gray.medium\n }\n });\n\nconst DropZone = (props: DropZoneProps) => {\n const templateContext = useTemplateContext();\n const {theme, translations} = templateContext;\n const {onPress} = props;\n\n const [styleSheet, setStylesheet] = useState<DropZoneStyleSheet | null>(null);\n\n useEffect(() => {\n const _stylesheet = createDropZoneStyle(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {choices} = props;\n const mappedSortedChoices = choices.map(item => (\n <QuestionChoice\n style={styleSheet.choice}\n key={item._id}\n squeezed\n isSelected\n testID={`choice-${item._id}`}\n onPress={onPress(item)}\n questionType=\"qcmDrag\"\n >\n {item.label}\n </QuestionChoice>\n ));\n\n const hasNoSelectedChoices = mappedSortedChoices.length === 0;\n\n return (\n <View style={[styleSheet.dropZone, hasNoSelectedChoices && styleSheet.emptyContent]}>\n {hasNoSelectedChoices ? (\n <Text style={styleSheet.text}>{translations.selectSomethingBelow}</Text>\n ) : null}\n\n {!hasNoSelectedChoices && mappedSortedChoices}\n </View>\n );\n};\n\nexport interface Props {\n choices: Array<SelectableChoice>;\n testID?: string;\n onPress: (item: SelectableChoice) => () => void;\n}\n\ntype QuestionDraggableStyleSheet = {\n pickableChoices: ViewStyle;\n choice: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): QuestionDraggableStyleSheet =>\n StyleSheet.create({\n pickableChoices: {\n flexDirection: 'row',\n flexWrap: 'wrap'\n },\n choice: {\n margin: theme.spacing.micro\n }\n });\n\nconst QuestionDraggable = (props: Props) => {\n const templateContext = useTemplateContext();\n const {theme} = templateContext;\n\n const [styleSheet, setStylesheet] = useState<QuestionDraggableStyleSheet | 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 const {choices, onPress, testID} = props;\n const selectedChoices = choices.filter(item => item.selected);\n\n const pickableChoices = choices\n .filter(item => !item.selected)\n .map((item: SelectableChoice) => (\n <QuestionChoice\n style={styleSheet.choice}\n key={item._id}\n squeezed\n testID={`choice-${item._id}-unselected`}\n onPress={onPress(item)}\n questionType=\"qcmDrag\"\n >\n {item.label}\n </QuestionChoice>\n ));\n\n return (\n <View testID={testID}>\n <DropZone choices={selectedChoices} onPress={onPress} />\n <View style={styleSheet.pickableChoices}>{pickableChoices}</View>\n </View>\n );\n};\n\nexport default QuestionDraggable;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;AAiBA,MAAMA,mBAAmB,GAAIC,KAAD,IAC1BC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,MAAM,EAAE;IACNC,MAAM,EAAEJ,KAAK,CAACK,OAAN,CAAcC;EADhB,CADQ;EAIhBC,QAAQ,EAAE;IACRC,QAAQ,EAAE,MADF;IAERC,aAAa,EAAE,KAFP;IAGRC,WAAW,EAAE,QAHL;IAIRC,WAAW,EAAE,CAJL;IAK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,IAA6BtB,KAAnC;EACA,MAAMuB,eAAe,GAAGb,OAAO,CAACc,MAAR,CAAeX,IAAI,IAAIA,IAAI,CAACY,QAA5B,CAAxB;EAEA,MAAML,eAAe,GAAGV,OAAO,CAC5Bc,MADqB,CACdX,IAAI,IAAI,CAACA,IAAI,CAACY,QADA,EAErBb,GAFqB,CAEhBC,IAAD,iBACH,6BAAC,cAAD;IACE,KAAK,EAAER,UAAU,CAACnC,MADpB;IAEE,GAAG,EAAE2C,IAAI,CAACC,GAFZ;IAGE,QAAQ,MAHV;IAIE,MAAM,EAAG,UAASD,IAAI,CAACC,GAAI,aAJ7B;IAKE,OAAO,EAAEV,OAAO,CAACS,IAAD,CALlB;IAME,YAAY,EAAC;EANf,GAQGA,IAAI,CAACE,KARR,CAHoB,CAAxB;EAeA,oBACE,6BAAC,iBAAD;IAAM,MAAM,EAAEO;EAAd,gBACE,6BAAC,QAAD;IAAU,OAAO,EAAEC,eAAnB;IAAoC,OAAO,EAAEnB;EAA7C,EADF,eAEE,6BAAC,iBAAD;IAAM,KAAK,EAAEC,UAAU,CAACe;EAAxB,GAA0CA,eAA1C,CAFF,CADF;AAMD,CAvCD;;eAyCeC,iB"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ViewStyle } from 'react-native';
2
3
  export declare type OnSlidingCompleteFunction = (value: number) => void;
3
4
  export declare type Props = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/mobile/slider/index.native.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,SAAS,EAAY,MAAM,cAAc,CAAC;AAQpE,oBAAY,yBAAyB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAEhE,oBAAY,KAAK,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,yBAAyB,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA0DF,QAAA,MAAM,cAAc,UAAW,KAAK,uBA4DnC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/mobile/slider/index.native.tsx"],"names":[],"mappings":";AACA,OAAO,EAAmB,SAAS,EAAY,MAAM,cAAc,CAAC;AAQpE,oBAAY,yBAAyB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAEhE,oBAAY,KAAK,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,yBAAyB,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA0DF,QAAA,MAAM,cAAc,UAAW,KAAK,uBA4DnC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -17,11 +17,11 @@ var _shadow = require("../../../../variables/shadow");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
20
+ 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); }
21
21
 
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
22
+ 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; }
23
23
 
24
- function _extends() { _extends = Object.assign || 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); }
24
+ 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); }
25
25
 
26
26
  const createStyleSheet = theme => _reactNative.StyleSheet.create({
27
27
  container: {
@@ -57,7 +57,7 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
57
57
  height: 10,
58
58
  borderRadius: theme.radius.button
59
59
  },
60
- thumb: _extends(_extends({}, _shadow.BOX_STYLE), {}, {
60
+ thumb: _extends({}, _shadow.BOX_STYLE, {
61
61
  width: 30,
62
62
  height: 30,
63
63
  borderRadius: 30 / 2,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/questions/mobile/slider/index.native.tsx"],"names":["createStyleSheet","theme","StyleSheet","create","container","flex","paddingHorizontal","flexDirection","justifyContent","header","fontSize","fontWeight","bold","textAlign","textValue","color","colors","black","valuesContainer","leftValue","alignItems","rightValue","track","height","borderRadius","radius","button","thumb","BOX_STYLE","width","backgroundColor","borderWidth","QuestionSlider","props","step","style","min","max","unit","value","storeValue","onSlidingComplete","testID","templateContext","brandTheme","styleSheet","setStylesheet","setValue","handleSlidingComplete","_stylesheet","primary","borderColor"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAGA;;AACA;;AACA;;;;;;;;;;AA0BA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,wBAAWC,MAAX,CAAkB;AAChBC,EAAAA,SAAS,EAAE;AACTC,IAAAA,IAAI,EAAE,CADG;AAETC,IAAAA,iBAAiB,EAAE,EAFV;AAGTC,IAAAA,aAAa,EAAE,QAHN;AAITC,IAAAA,cAAc,EAAE;AAJP,GADK;AAOhBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,QAAQ,EAAE,EADJ;AAENC,IAAAA,UAAU,EAAEV,KAAK,CAACU,UAAN,CAAiBC,IAFvB;AAGNC,IAAAA,SAAS,EAAE;AAHL,GAPQ;AAYhBC,EAAAA,SAAS,EAAE;AACTJ,IAAAA,QAAQ,EAAE,EADD;AAETK,IAAAA,KAAK,EAAEd,KAAK,CAACe,MAAN,CAAaC,KAFX;AAGTN,IAAAA,UAAU,EAAEV,KAAK,CAACU,UAAN,CAAiBC,IAHpB;AAITC,IAAAA,SAAS,EAAE;AAJF,GAZK;AAkBhBK,EAAA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,EAAE2B,UAAU,CAAC1B;AAAxB,kBACE,6BAAC,cAAD;AAAM,IAAA,KAAK,EAAE0B,UAAU,CAAC/B,SAAxB;AAAmC,IAAA,MAAM,EAAC;AAA1C,KACI,GAAEsB,GAAI,IAAGE,IAAK,EADlB,CADF,CADF,eAME,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAEO,UAAU,CAACxB;AAAxB,kBACE,6BAAC,cAAD;AAAM,IAAA,KAAK,EAAEwB,UAAU,CAAC/B,SAAxB;AAAmC,IAAA,MAAM,EAAC;AAA1C,KACI,GAAEuB,GAAI,IAAGC,IAAK,EADlB,CADF,CANF,CAhBF,CADF;AA+BD,CA5DD;;eA8DeN,c","sourcesContent":["import React, {useState, useEffect, useCallback} from 'react';\nimport {View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport Slider from '@coorpacademy/react-native-slider';\n\nimport {Theme} from '../../../../variables/theme.native';\nimport Text from '../../../../atom/text/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {BOX_STYLE} from '../../../../variables/shadow';\n\nexport type OnSlidingCompleteFunction = (value: number) => void;\n\nexport type Props = {\n min: number;\n max: number;\n value?: number;\n unit?: string;\n onSlidingComplete: OnSlidingCompleteFunction;\n style?: ViewStyle;\n step?: number;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: TextStyle;\n textValue: TextStyle;\n valuesContainer: ViewStyle;\n leftValue: ViewStyle;\n rightValue: ViewStyle;\n track: ViewStyle;\n thumb: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n paddingHorizontal: 20,\n flexDirection: 'column',\n justifyContent: 'center'\n },\n header: {\n fontSize: 25,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n textValue: {\n fontSize: 15,\n color: theme.colors.black,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n valuesContainer: {\n flexDirection: 'row',\n justifyContent: 'space-around'\n },\n leftValue: {\n flex: 1,\n alignItems: 'flex-start'\n },\n rightValue: {\n flex: 1,\n alignItems: 'flex-end'\n },\n track: {\n height: 10,\n borderRadius: theme.radius.button\n },\n thumb: {\n ...BOX_STYLE,\n width: 30,\n height: 30,\n borderRadius: 30 / 2,\n backgroundColor: 'white',\n borderWidth: 1\n }\n });\n\nconst QuestionSlider = (props: Props) => {\n const {\n step,\n style,\n min,\n max,\n unit = '',\n value: storeValue = 0,\n onSlidingComplete,\n testID\n } = props;\n const templateContext = useTemplateContext();\n const {brandTheme, theme} = templateContext;\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const [value, setValue] = useState<number>(storeValue);\n\n const handleSlidingComplete = useCallback(() => {\n onSlidingComplete(value);\n }, [onSlidingComplete, value]);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={[styleSheet.container, style]} testID={testID}>\n <Text style={[styleSheet.header, {color: brandTheme?.colors?.primary}]} testID=\"slider-value\">\n {value}\n </Text>\n <Slider\n step={step || 1}\n value={value}\n onValueChange={setValue}\n maximumValue={max}\n minimumValue={min}\n onSlidingComplete={handleSlidingComplete}\n minimumTrackTintColor={brandTheme?.colors?.primary}\n trackStyle={styleSheet.track}\n thumbStyle={[styleSheet.thumb, {borderColor: brandTheme?.colors?.primary}]}\n testID=\"slider\"\n />\n <View style={styleSheet.valuesContainer} testID=\"slider-values-container\">\n <View style={styleSheet.leftValue}>\n <Text style={styleSheet.textValue} testID=\"slider-min-value\">\n {`${min} ${unit}`}\n </Text>\n </View>\n <View style={styleSheet.rightValue}>\n <Text style={styleSheet.textValue} testID=\"slider-max-value\">\n {`${max} ${unit}`}\n </Text>\n </View>\n </View>\n </View>\n );\n};\n\nexport default QuestionSlider;\n"],"file":"index.native.js"}
1
+ {"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","flex","paddingHorizontal","flexDirection","justifyContent","header","fontSize","fontWeight","bold","textAlign","textValue","color","colors","black","valuesContainer","leftValue","alignItems","rightValue","track","height","borderRadius","radius","button","thumb","BOX_STYLE","width","backgroundColor","borderWidth","QuestionSlider","props","step","style","min","max","unit","value","storeValue","onSlidingComplete","testID","templateContext","useTemplateContext","brandTheme","styleSheet","setStylesheet","useState","setValue","handleSlidingComplete","useCallback","useEffect","_stylesheet","primary","borderColor"],"sources":["../../../../../src/molecule/questions/mobile/slider/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useCallback} from 'react';\nimport {View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport Slider from '@coorpacademy/react-native-slider';\n\nimport {Theme} from '../../../../variables/theme.native';\nimport Text from '../../../../atom/text/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {BOX_STYLE} from '../../../../variables/shadow';\n\nexport type OnSlidingCompleteFunction = (value: number) => void;\n\nexport type Props = {\n min: number;\n max: number;\n value?: number;\n unit?: string;\n onSlidingComplete: OnSlidingCompleteFunction;\n style?: ViewStyle;\n step?: number;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: TextStyle;\n textValue: TextStyle;\n valuesContainer: ViewStyle;\n leftValue: ViewStyle;\n rightValue: ViewStyle;\n track: ViewStyle;\n thumb: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n paddingHorizontal: 20,\n flexDirection: 'column',\n justifyContent: 'center'\n },\n header: {\n fontSize: 25,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n textValue: {\n fontSize: 15,\n color: theme.colors.black,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n valuesContainer: {\n flexDirection: 'row',\n justifyContent: 'space-around'\n },\n leftValue: {\n flex: 1,\n alignItems: 'flex-start'\n },\n rightValue: {\n flex: 1,\n alignItems: 'flex-end'\n },\n track: {\n height: 10,\n borderRadius: theme.radius.button\n },\n thumb: {\n ...BOX_STYLE,\n width: 30,\n height: 30,\n borderRadius: 30 / 2,\n backgroundColor: 'white',\n borderWidth: 1\n }\n });\n\nconst QuestionSlider = (props: Props) => {\n const {\n step,\n style,\n min,\n max,\n unit = '',\n value: storeValue = 0,\n onSlidingComplete,\n testID\n } = props;\n const templateContext = useTemplateContext();\n const {brandTheme, theme} = templateContext;\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const [value, setValue] = useState<number>(storeValue);\n\n const handleSlidingComplete = useCallback(() => {\n onSlidingComplete(value);\n }, [onSlidingComplete, value]);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={[styleSheet.container, style]} testID={testID}>\n <Text style={[styleSheet.header, {color: brandTheme?.colors?.primary}]} testID=\"slider-value\">\n {value}\n </Text>\n <Slider\n step={step || 1}\n value={value}\n onValueChange={setValue}\n maximumValue={max}\n minimumValue={min}\n onSlidingComplete={handleSlidingComplete}\n minimumTrackTintColor={brandTheme?.colors?.primary}\n trackStyle={styleSheet.track}\n thumbStyle={[styleSheet.thumb, {borderColor: brandTheme?.colors?.primary}]}\n testID=\"slider\"\n />\n <View style={styleSheet.valuesContainer} testID=\"slider-values-container\">\n <View style={styleSheet.leftValue}>\n <Text style={styleSheet.textValue} testID=\"slider-min-value\">\n {`${min} ${unit}`}\n </Text>\n </View>\n <View style={styleSheet.rightValue}>\n <Text style={styleSheet.textValue} testID=\"slider-max-value\">\n {`${max} ${unit}`}\n </Text>\n </View>\n </View>\n </View>\n );\n};\n\nexport default QuestionSlider;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAGA;;AACA;;AACA;;;;;;;;;;AA0BA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,IAAI,EAAE,CADG;I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EAVT,EAJF,eAgBE,6BAAC,iBAAD;IAAM,KAAK,EAAER,UAAU,CAAC5B,eAAxB;IAAyC,MAAM,EAAC;EAAhD,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAE4B,UAAU,CAAC3B;EAAxB,gBACE,6BAAC,cAAD;IAAM,KAAK,EAAE2B,UAAU,CAAChC,SAAxB;IAAmC,MAAM,EAAC;EAA1C,GACI,GAAEsB,GAAI,IAAGE,IAAK,EADlB,CADF,CADF,eAME,6BAAC,iBAAD;IAAM,KAAK,EAAEQ,UAAU,CAACzB;EAAxB,gBACE,6BAAC,cAAD;IAAM,KAAK,EAAEyB,UAAU,CAAChC,SAAxB;IAAmC,MAAM,EAAC;EAA1C,GACI,GAAEuB,GAAI,IAAGC,IAAK,EADlB,CADF,CANF,CAhBF,CADF;AA+BD,CA5DD;;eA8DeN,c"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { QuestionType, Choice } from '../../types';
2
3
  export declare type Props = {
3
4
  type: QuestionType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/mobile/switch/index.native.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EAIP,MAAM,aAAa,CAAC;AAErB,oBAAY,KAAK,GAAG;IAClB,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAqBF,QAAA,MAAM,MAAM,UAAW,KAAK,gBAoK3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/mobile/switch/index.native.tsx"],"names":[],"mappings":";AAYA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EAIP,MAAM,aAAa,CAAC;AAErB,oBAAY,KAAK,GAAG;IAClB,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAqBF,QAAA,MAAM,MAAM,UAAW,KAAK,gBAoK3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -23,9 +23,9 @@ var _analytics = require("../../../../variables/analytics");
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
26
+ 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); }
27
27
 
28
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
28
+ 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; }
29
29
 
30
30
  const styleSheet = _reactNative.StyleSheet.create({
31
31
  cards: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/questions/mobile/switch/index.native.tsx"],"names":["styleSheet","StyleSheet","create","cards","flexDirection","alignItems","card","flex","choice","paddingVertical","Switch","props","templateContext","analytics","store","focusedSelectId","handleBlur","handleFocus","type","template","isDisabled","choices","min","max","unit","value","step","onSliderChange","onItemPress","onItemInputChange","onInputValueChange","handleChoicePress","onPress","handleItemInputChange","_value","handleSlidingComplete","logEvent","ANALYTICS_EVENT_TYPE","SLIDE","id","questionType","map","_id","selected","label","media","undefined","console","warn"],"mappings":";;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;AAiCA,MAAMA,UAA0B,GAAGC,wBAAWC,MAAX,CAAkB;AACnDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,aAAa,EAAE,KADV;AAELC,IAAAA,UAAU,EAAE;AAFP,GAD4C;AAKnDC,EAAAA,IAAI,EAAE;AACJC,IAAAA,IAAI,EAAE;AADF,GAL6C;AAQnDC,EAAAA,MAAM,EAAE;AACNC,IAAAA,eAAe,EAAE;AADX;AAR2C,CAAlB,CAAnC;;AAaA,MAAMC,MAAM,GAAIC,KAAD,IAAkB;AAC/B,QAAMC,eAAe,GAAG,0CAAxB;AACA,QAAM;AAACC,IAAAA,SAAD;AAAYC,IAAAA;AAAZ,MAAqBF,eAA3B;AACA,QAAM;AAACG,IAAAA,eAAD;AAAkBC,IAAAA,UAAlB;AAA8BC,IAAAA;AAA9B,MAA6CH,KAAnD;AAEA,QAAM;AACJI,IAAAA,IADI;AAEJC,IAAAA,QAFI;AAGJC,IAAAA,UAHI;AAIJC,IAAAA,OAAO,GAAG,EAJN;AAKJC,IAAAA,GALI;AAMJC,IAAAA,GANI;AAOJC,IAAAA,IAPI;AAQJC,IAAAA,KARI;AASJC,IAAAA,IATI;AAUJC,IAAAA,cAVI;AAWJC,IAAAA,WAXI;AAYJC,IAAAA,iB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AACD,SAAK,UAAL;AACE,UAAInB,UAAU,KAAK8B,SAAf,IAA4B7B,WAAW,KAAK6B,SAA5C,IAAyD/B,eAAe,KAAK+B,SAAjF,EAA4F;AAC1F;AACAC,QAAAA,OAAO,CAACC,IAAR,CAAa,mEAAb;AACA,4BAAO,6BAAC,iBAAD,OAAP;AACD;;AAED,0BACE,6BAAC,iBAAD;AAAM,QAAA,MAAM,EAAC;AAAb,sBACE,6BAAC,eAAD;AACE,QAAA,UAAU,EAAE5B,UADd;AAEE,QAAA,QAAQ,EAAED,QAAQ,IAAI,EAFxB;AAGE,QAAA,OAAO,EAAEE,OAHX;AAIE,QAAA,aAAa,EAAEY,qBAJjB;AAKE,QAAA,UAAU,EAAEjB,UALd;AAME,QAAA,WAAW,EAAEC,WANf;AAOE,QAAA,eAAe,EAAEF;AAPnB,QADF,CADF;;AAaF,SAAK,SAAL;AACE,0BACE,6BAAC,iBAAD;AAAM,QAAA,MAAM,EAAC;AAAb,sBACE,6BAAC,eAAD;AAAmB,QAAA,OAAO,EAAEM,OAA5B;AAA2D,QAAA,OAAO,EAAEU;AAApE,QADF,CADF;;AAKF,SAAK,OAAL;AACE,UAAI,CAACD,kBAAL,EAAyB;AACvB,4BAAO,6BAAC,iBAAD,OAAP;AACD;;AAED,0BACE,6BAAC,eAAD;AACE,QAAA,SAAS,MADX;AAEE,QAAA,QAAQ,EAAEA,kBAFZ;AAGE,QAAA,MAAM,EAAC,qBAHT;AAIE,QAAA,YAAY,EAAC,OAJf;AAKE,QAAA,UAAU,EAAEV;AALd,QADF;;AASF;AACE,0BACE,6BAAC,iBAAD,qBACE,6BAAC,iBAAD,4BAAuBF,IAAvB,CADF,CADF;AAhGJ;AAsGD,CApKD;;eAsKeR,M","sourcesContent":["import React, {useCallback} from 'react';\nimport {View, StyleSheet, Text, ViewStyle} from 'react-native';\n\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport QuestionDraggable from '../draggable/index.native';\nimport QuestionTemplate from '../template/index.native';\nimport QuestionSlider from '../slider/index.native';\nimport FreeText from '../../free-text/index.native';\n\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE} from '../../../../variables/analytics';\n\nimport type {\n QuestionType,\n Choice,\n TemplateListOfChoices,\n TemplateTextChoice,\n SelectableChoice\n} from '../../types';\n\nexport type Props = {\n type: QuestionType;\n isDisabled?: boolean;\n template?: string;\n choices?: Array<Choice>;\n min?: number;\n max?: number;\n unit?: string;\n step?: number;\n value?: number;\n onInputValueChange?: (value: string) => void;\n onSliderChange?: (value: number) => void;\n // --- mobile learner only\n onItemInputChange?: (item: Choice, value: string) => void;\n onItemPress?: (item: Choice) => void;\n};\n\ntype StyleSheetType = {\n cards: ViewStyle;\n card: ViewStyle;\n choice: ViewStyle;\n};\n\nconst styleSheet: StyleSheetType = StyleSheet.create({\n cards: {\n flexDirection: 'row',\n alignItems: 'stretch'\n },\n card: {\n flex: 1\n },\n choice: {\n paddingVertical: 5\n }\n});\n\nconst Switch = (props: Props) => {\n const templateContext = useTemplateContext();\n const {analytics, store} = templateContext;\n const {focusedSelectId, handleBlur, handleFocus} = store;\n\n const {\n type,\n template,\n isDisabled,\n choices = [],\n min,\n max,\n unit,\n value,\n step,\n onSliderChange,\n onItemPress,\n onItemInputChange,\n onInputValueChange\n } = props;\n\n const handleChoicePress = useCallback(\n (choice: Choice) => () => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress();\n } else if (onItemPress) {\n // e.g. learner\n onItemPress(choice);\n }\n },\n [onItemPress]\n );\n\n const handleItemInputChange = useCallback(\n (choice: Choice, _value: string) => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress(_value);\n } else if (onItemInputChange) {\n // e.g. learner\n onItemInputChange(choice, _value);\n }\n },\n [onItemInputChange]\n );\n\n const handleSlidingComplete = useCallback(\n _value => {\n analytics &&\n analytics.logEvent(ANALYTICS_EVENT_TYPE.SLIDE, {\n id: 'slider',\n questionType: 'slider'\n });\n\n if (onSliderChange) {\n onSliderChange(_value);\n }\n },\n [analytics, onSliderChange]\n );\n\n switch (type) {\n case 'qcm':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'qcmGraphic':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n media={choice.media}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'slider': {\n if (min === undefined || max === undefined) {\n return <View />;\n }\n\n return (\n <QuestionSlider\n min={min}\n max={max}\n unit={unit}\n value={value}\n step={step}\n onSlidingComplete={handleSlidingComplete}\n testID=\"question-slider\"\n />\n );\n }\n case 'template':\n if (handleBlur === undefined || handleFocus === undefined || focusedSelectId === undefined) {\n // eslint-disable-next-line no-console\n console.warn('type template must implement handleFocus etc within Context.store');\n return <View />;\n }\n\n return (\n <View testID=\"question-choices\">\n <QuestionTemplate\n isDisabled={isDisabled}\n template={template || ''}\n choices={choices as (TemplateListOfChoices | TemplateTextChoice)[]}\n onInputChange={handleItemInputChange}\n handleBlur={handleBlur}\n handleFocus={handleFocus}\n focusedSelectId={focusedSelectId}\n />\n </View>\n );\n case 'qcmDrag':\n return (\n <View testID=\"question-draggable\">\n <QuestionDraggable choices={choices as SelectableChoice[]} onPress={handleChoicePress} />\n </View>\n );\n case 'basic':\n if (!onInputValueChange) {\n return <View />;\n }\n\n return (\n <FreeText\n fullWidth\n onChange={onInputValueChange}\n testID=\"question-input-text\"\n questionType=\"basic\"\n isDisabled={isDisabled}\n />\n );\n default:\n return (\n <View>\n <Text>Unhandled type: {type}</Text>\n </View>\n );\n }\n};\n\nexport default Switch;\n"],"file":"index.native.js"}
1
+ {"version":3,"file":"index.native.js","names":["styleSheet","StyleSheet","create","cards","flexDirection","alignItems","card","flex","choice","paddingVertical","Switch","props","templateContext","useTemplateContext","analytics","store","focusedSelectId","handleBlur","handleFocus","type","template","isDisabled","choices","min","max","unit","value","step","onSliderChange","onItemPress","onItemInputChange","onInputValueChange","handleChoicePress","useCallback","onPress","handleItemInputChange","_value","handleSlidingComplete","logEvent","ANALYTICS_EVENT_TYPE","SLIDE","id","questionType","map","_id","selected","label","media","undefined","console","warn"],"sources":["../../../../../src/molecule/questions/mobile/switch/index.native.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {View, StyleSheet, Text, ViewStyle} from 'react-native';\n\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport QuestionDraggable from '../draggable/index.native';\nimport QuestionTemplate from '../template/index.native';\nimport QuestionSlider from '../slider/index.native';\nimport FreeText from '../../free-text/index.native';\n\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE} from '../../../../variables/analytics';\n\nimport type {\n QuestionType,\n Choice,\n TemplateListOfChoices,\n TemplateTextChoice,\n SelectableChoice\n} from '../../types';\n\nexport type Props = {\n type: QuestionType;\n isDisabled?: boolean;\n template?: string;\n choices?: Array<Choice>;\n min?: number;\n max?: number;\n unit?: string;\n step?: number;\n value?: number;\n onInputValueChange?: (value: string) => void;\n onSliderChange?: (value: number) => void;\n // --- mobile learner only\n onItemInputChange?: (item: Choice, value: string) => void;\n onItemPress?: (item: Choice) => void;\n};\n\ntype StyleSheetType = {\n cards: ViewStyle;\n card: ViewStyle;\n choice: ViewStyle;\n};\n\nconst styleSheet: StyleSheetType = StyleSheet.create({\n cards: {\n flexDirection: 'row',\n alignItems: 'stretch'\n },\n card: {\n flex: 1\n },\n choice: {\n paddingVertical: 5\n }\n});\n\nconst Switch = (props: Props) => {\n const templateContext = useTemplateContext();\n const {analytics, store} = templateContext;\n const {focusedSelectId, handleBlur, handleFocus} = store;\n\n const {\n type,\n template,\n isDisabled,\n choices = [],\n min,\n max,\n unit,\n value,\n step,\n onSliderChange,\n onItemPress,\n onItemInputChange,\n onInputValueChange\n } = props;\n\n const handleChoicePress = useCallback(\n (choice: Choice) => () => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress();\n } else if (onItemPress) {\n // e.g. learner\n onItemPress(choice);\n }\n },\n [onItemPress]\n );\n\n const handleItemInputChange = useCallback(\n (choice: Choice, _value: string) => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress(_value);\n } else if (onItemInputChange) {\n // e.g. learner\n onItemInputChange(choice, _value);\n }\n },\n [onItemInputChange]\n );\n\n const handleSlidingComplete = useCallback(\n _value => {\n analytics &&\n analytics.logEvent(ANALYTICS_EVENT_TYPE.SLIDE, {\n id: 'slider',\n questionType: 'slider'\n });\n\n if (onSliderChange) {\n onSliderChange(_value);\n }\n },\n [analytics, onSliderChange]\n );\n\n switch (type) {\n case 'qcm':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'qcmGraphic':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n media={choice.media}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'slider': {\n if (min === undefined || max === undefined) {\n return <View />;\n }\n\n return (\n <QuestionSlider\n min={min}\n max={max}\n unit={unit}\n value={value}\n step={step}\n onSlidingComplete={handleSlidingComplete}\n testID=\"question-slider\"\n />\n );\n }\n case 'template':\n if (handleBlur === undefined || handleFocus === undefined || focusedSelectId === undefined) {\n // eslint-disable-next-line no-console\n console.warn('type template must implement handleFocus etc within Context.store');\n return <View />;\n }\n\n return (\n <View testID=\"question-choices\">\n <QuestionTemplate\n isDisabled={isDisabled}\n template={template || ''}\n choices={choices as (TemplateListOfChoices | TemplateTextChoice)[]}\n onInputChange={handleItemInputChange}\n handleBlur={handleBlur}\n handleFocus={handleFocus}\n focusedSelectId={focusedSelectId}\n />\n </View>\n );\n case 'qcmDrag':\n return (\n <View testID=\"question-draggable\">\n <QuestionDraggable choices={choices as SelectableChoice[]} onPress={handleChoicePress} />\n </View>\n );\n case 'basic':\n if (!onInputValueChange) {\n return <View />;\n }\n\n return (\n <FreeText\n fullWidth\n onChange={onInputValueChange}\n testID=\"question-input-text\"\n questionType=\"basic\"\n isDisabled={isDisabled}\n />\n );\n default:\n return (\n <View>\n <Text>Unhandled type: {type}</Text>\n </View>\n );\n }\n};\n\nexport default Switch;\n"],"mappings":";;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;AAiCA,MAAMA,UAA0B,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EACnDC,KAAK,EAAE;IACLC,aAAa,EAAE,KADV;IAELC,UAAU,EAAE;EAFP,CAD4C;EAKnDC,IAAI,EAAE;IACJC,IAAI,EAAE;EADF,CAL6C;EAQnDC,MAAM,EAAE;IACNC,eAAe,EAAE;EADX;AAR2C,CAAlB,CAAnC;;AAaA,MAAMC,MAAM,GAAIC,KAAD,IAAkB;EAC/B,MAAMC,eAAe,GAAG,IAAAC,mCAAA,GAAxB;EACA,MAAM;IAACC,SAAD;IAAY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AAK,EAAEC,KAJT;UAKE,IAAI,EAAEC,IALR;UAME,iBAAiB,EAAEU,qBANrB;UAOE,MAAM,EAAC;QAPT,EADF;MAWD;;IACD,KAAK,UAAL;MACE,IAAIpB,UAAU,KAAK+B,SAAf,IAA4B9B,WAAW,KAAK8B,SAA5C,IAAyDhC,eAAe,KAAKgC,SAAjF,EAA4F;QAC1F;QACAC,OAAO,CAACC,IAAR,CAAa,mEAAb;QACA,oBAAO,6BAAC,iBAAD,OAAP;MACD;;MAED,oBACE,6BAAC,iBAAD;QAAM,MAAM,EAAC;MAAb,gBACE,6BAAC,eAAD;QACE,UAAU,EAAE7B,UADd;QAEE,QAAQ,EAAED,QAAQ,IAAI,EAFxB;QAGE,OAAO,EAAEE,OAHX;QAIE,aAAa,EAAEa,qBAJjB;QAKE,UAAU,EAAElB,UALd;QAME,WAAW,EAAEC,WANf;QAOE,eAAe,EAAEF;MAPnB,EADF,CADF;;IAaF,KAAK,SAAL;MACE,oBACE,6BAAC,iBAAD;QAAM,MAAM,EAAC;MAAb,gBACE,6BAAC,eAAD;QAAmB,OAAO,EAAEM,OAA5B;QAA2D,OAAO,EAAEU;MAApE,EADF,CADF;;IAKF,KAAK,OAAL;MACE,IAAI,CAACD,kBAAL,EAAyB;QACvB,oBAAO,6BAAC,iBAAD,OAAP;MACD;;MAED,oBACE,6BAAC,eAAD;QACE,SAAS,MADX;QAEE,QAAQ,EAAEA,kBAFZ;QAGE,MAAM,EAAC,qBAHT;QAIE,YAAY,EAAC,OAJf;QAKE,UAAU,EAAEV;MALd,EADF;;IASF;MACE,oBACE,6BAAC,iBAAD,qBACE,6BAAC,iBAAD,4BAAuBF,IAAvB,CADF,CADF;EAhGJ;AAsGD,CApKD;;eAsKeT,M"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { TemplateListOfChoices, TemplateTextChoice } from '../../types';
2
3
  import { FocusedSelectId, HandleBlur, HandleFocus } from '../../../../template/app-review/template-context';
3
4
  export declare type Props = {