@coorpacademy/components 10.3.25 → 10.3.27-alpha.26

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 (1127) hide show
  1. package/es/atom/autocomplete/test/fixtures/error.js +1 -1
  2. package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
  3. package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
  4. package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  5. package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
  6. package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  7. package/es/atom/clue/index.js.map +1 -1
  8. package/es/atom/clue/test/see-clue.js +33 -0
  9. package/es/atom/clue/test/see-clue.js.map +1 -1
  10. package/es/atom/content-badge/test/fixtures.js +2 -0
  11. package/es/atom/content-badge/test/fixtures.js.map +1 -1
  12. package/es/atom/cta/test/fixtures/certification.js +1 -1
  13. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  14. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  15. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  16. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  17. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  18. package/es/atom/cta/test/fixtures/light.js +1 -1
  19. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  20. package/es/atom/cta/test/fixtures/logout.js +1 -1
  21. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  22. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  23. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  24. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  25. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  26. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  27. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  28. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  29. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  30. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  31. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  32. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  33. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  34. package/es/atom/drag-and-drop/index.js +1 -1
  35. package/es/atom/drag-and-drop/index.js.map +1 -1
  36. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  37. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  38. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  39. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  40. package/es/atom/image-upload/index.js +1 -1
  41. package/es/atom/image-upload/index.js.map +1 -1
  42. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  43. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  44. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  45. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  47. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  49. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  50. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  51. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  52. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  53. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  54. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  55. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  56. package/es/atom/input-html/index.js.map +1 -1
  57. package/es/atom/input-switch/index.js +13 -6
  58. package/es/atom/input-switch/index.js.map +1 -1
  59. package/es/atom/input-switch/style.css +47 -0
  60. package/es/atom/input-switch/test/fixtures/cm-left.js +11 -0
  61. package/es/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
  62. package/es/atom/input-switch/test/fixtures/cm-right-checked.js +11 -0
  63. package/es/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
  64. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js +11 -0
  65. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
  66. package/es/atom/input-switch/test/fixtures/cm-right-modified.js +12 -0
  67. package/es/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
  68. package/es/atom/input-switch/test/fixtures/cm-right.js +11 -0
  69. package/es/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
  70. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  71. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  72. package/es/atom/input-switch/test/fixtures.js +10 -0
  73. package/es/atom/input-switch/test/fixtures.js.map +1 -1
  74. package/es/atom/link/index.js +3 -2
  75. package/es/atom/link/index.js.map +1 -1
  76. package/es/atom/promo-code/index.js.map +1 -1
  77. package/es/atom/provider/index.js +1 -1
  78. package/es/atom/provider/index.js.map +1 -1
  79. package/es/atom/provider/test/index.js +1 -1
  80. package/es/atom/provider/test/index.js.map +1 -1
  81. package/es/atom/range/index.js +1 -1
  82. package/es/atom/range/index.js.map +1 -1
  83. package/es/atom/range/test/fixtures/multi.js +1 -1
  84. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  85. package/es/atom/range/test/index.js +9 -9
  86. package/es/atom/range/test/index.js.map +1 -1
  87. package/es/atom/video-upload/index.js +1 -1
  88. package/es/atom/video-upload/index.js.map +1 -1
  89. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  90. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  91. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  92. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  93. package/es/hoc/animation-scheduler/index.js +3 -3
  94. package/es/hoc/animation-scheduler/index.js.map +1 -1
  95. package/es/hoc/swapper/index.js +4 -2
  96. package/es/hoc/swapper/index.js.map +1 -1
  97. package/es/hoc/transition/index.js +1 -1
  98. package/es/hoc/transition/index.js.map +1 -1
  99. package/es/molecule/add-to-my-list/index.js +1 -1
  100. package/es/molecule/add-to-my-list/index.js.map +1 -1
  101. package/es/molecule/answer/index.js +3 -2
  102. package/es/molecule/answer/index.js.map +1 -1
  103. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  104. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  105. package/es/molecule/answer/test/fixtures/default.js +1 -1
  106. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  107. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  108. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  109. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  110. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  111. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  112. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  113. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  114. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  115. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  116. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  117. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  118. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  119. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  120. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  121. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  122. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  123. package/es/molecule/answer/test/fixtures/range.js +1 -1
  124. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  125. package/es/molecule/answer/test/fixtures/template.js +1 -1
  126. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  127. package/es/molecule/banner/style.css +1 -0
  128. package/es/molecule/banner/test/fixtures/default.js +1 -1
  129. package/es/molecule/banner/test/fixtures/default.js.map +1 -1
  130. package/es/molecule/banner/test/fixtures.js +8 -0
  131. package/es/molecule/banner/test/fixtures.js.map +1 -1
  132. package/es/molecule/brand-form-group/index.js +18 -18
  133. package/es/molecule/brand-form-group/index.js.map +1 -1
  134. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  135. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  136. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  137. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  138. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  139. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  140. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  141. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  142. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  143. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  144. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  145. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  146. package/es/molecule/card/customer.css +61 -3
  147. package/es/molecule/card/customer.js +17 -5
  148. package/es/molecule/card/customer.js.map +1 -1
  149. package/es/molecule/card/index.js +16 -6
  150. package/es/molecule/card/index.js.map +1 -1
  151. package/es/molecule/card/style.css +86 -24
  152. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  153. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  154. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  155. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  156. package/es/molecule/card/test/fixtures/coorpmanager.js +18 -0
  157. package/es/molecule/card/test/fixtures/coorpmanager.js.map +1 -0
  158. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  159. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  160. package/es/molecule/card-content/index.js +11 -5
  161. package/es/molecule/card-content/index.js.map +1 -1
  162. package/es/molecule/card-content/style.css +52 -0
  163. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  164. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  165. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  166. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  167. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  168. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  169. package/es/molecule/card-with-button/index.js.map +1 -1
  170. package/es/molecule/cm-popin/style.css +1 -0
  171. package/es/molecule/coorp-manager-roles/index.js +1 -1
  172. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  173. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  174. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  175. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  176. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  177. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  178. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  179. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  180. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  181. package/es/molecule/dashboard/news-list/index.js +1 -1
  182. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  183. package/es/molecule/dashboard/start-battle/index.js +1 -1
  184. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  185. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  186. package/es/molecule/drag-and-drop/index.js +1 -1
  187. package/es/molecule/drag-and-drop/index.js.map +1 -1
  188. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  189. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  190. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  191. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  192. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  193. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  194. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  195. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  196. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  197. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  198. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  199. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  200. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  201. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  202. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  203. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  204. package/es/molecule/feedback/index.js +1 -1
  205. package/es/molecule/feedback/index.js.map +1 -1
  206. package/es/molecule/filters/test/fixtures/default.js +4 -4
  207. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  208. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  209. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  210. package/es/molecule/filters/test/fixtures/one.js +2 -2
  211. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  212. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  213. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  214. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  215. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  216. package/es/molecule/filters/test/fixtures/three.js +3 -3
  217. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  218. package/es/molecule/filters/test/fixtures/two.js +3 -3
  219. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  220. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  221. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  222. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  223. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  224. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  225. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  226. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  227. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  228. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  229. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  230. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  231. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  232. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  233. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  234. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  235. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  236. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  237. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  238. package/es/molecule/popin/index.js +1 -1
  239. package/es/molecule/popin/index.js.map +1 -1
  240. package/es/molecule/progress-bar/index.js +1 -1
  241. package/es/molecule/progress-bar/index.js.map +1 -1
  242. package/es/molecule/questions/drop-down/index.js +1 -1
  243. package/es/molecule/questions/drop-down/index.js.map +1 -1
  244. package/es/molecule/questions/question-range/index.js +3 -2
  245. package/es/molecule/questions/question-range/index.js.map +1 -1
  246. package/es/molecule/questions/template/index.js +2 -2
  247. package/es/molecule/questions/template/index.js.map +1 -1
  248. package/es/molecule/questions/template/test/index.js +1 -1
  249. package/es/molecule/questions/template/test/index.js.map +1 -1
  250. package/es/molecule/quick-access-card/index.js.map +1 -1
  251. package/es/molecule/resource-player/index.js +2 -1
  252. package/es/molecule/resource-player/index.js.map +1 -1
  253. package/es/molecule/select-multiple/index.js +3 -3
  254. package/es/molecule/select-multiple/index.js.map +1 -1
  255. package/es/molecule/select-multiple/style.css +2 -1
  256. package/es/molecule/select-multiple/test/fixtures.js +8 -0
  257. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  258. package/es/molecule/select-multiple/test/index.js +2 -2
  259. package/es/molecule/select-multiple/test/index.js.map +1 -1
  260. package/es/molecule/setup-section/index.js +1 -1
  261. package/es/molecule/setup-section/index.js.map +1 -1
  262. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  263. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  264. package/es/molecule/setup-slide/index.js +8 -8
  265. package/es/molecule/setup-slide/index.js.map +1 -1
  266. package/es/molecule/share/index.js +1 -1
  267. package/es/molecule/share/index.js.map +1 -1
  268. package/es/molecule/video-iframe/index.js +1 -1
  269. package/es/molecule/video-iframe/index.js.map +1 -1
  270. package/es/molecule/video-player/index.js +3 -1
  271. package/es/molecule/video-player/index.js.map +1 -1
  272. package/es/molecule/video-player/jwplayer.js +2 -2
  273. package/es/molecule/video-player/jwplayer.js.map +1 -1
  274. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  275. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  276. package/es/molecule/video-player/vimeo.js +1 -1
  277. package/es/molecule/video-player/vimeo.js.map +1 -1
  278. package/es/molecule/wizard-summary/index.js +30 -3
  279. package/es/molecule/wizard-summary/index.js.map +1 -1
  280. package/es/organism/accordion/coorp-manager/index.js +1 -1
  281. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  282. package/es/organism/accordion/toggler/index.js +1 -1
  283. package/es/organism/accordion/toggler/index.js.map +1 -1
  284. package/es/organism/accordion/toggler/test/render.js +2 -2
  285. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  286. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  287. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  288. package/es/organism/content-translation/index.js +2 -2
  289. package/es/organism/content-translation/index.js.map +1 -1
  290. package/es/organism/content-translation/style.css +1 -0
  291. package/es/organism/content-translation/test/fixtures/default.js +2 -2
  292. package/es/organism/content-translation/test/fixtures/default.js.map +1 -1
  293. package/es/organism/content-translation/test/fixtures.js +15 -0
  294. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  295. package/es/organism/course-selection/index.js +26 -9
  296. package/es/organism/course-selection/index.js.map +1 -1
  297. package/es/organism/course-selection/style.css +11 -3
  298. package/es/organism/course-selection/test/fixtures/default.js +44 -13
  299. package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
  300. package/es/organism/course-selection/test/fixtures/empty.js +9 -0
  301. package/es/organism/course-selection/test/fixtures/empty.js.map +1 -1
  302. package/es/organism/course-selection/test/fixtures/filtered.js +11 -3
  303. package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  304. package/es/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
  305. package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  306. package/es/organism/course-selection/test/fixtures/switch-activated.js +23 -0
  307. package/es/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
  308. package/es/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
  309. package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  310. package/es/organism/course-selection/test/fixtures.js +2 -0
  311. package/es/organism/course-selection/test/fixtures.js.map +1 -1
  312. package/es/organism/discussion/test/fixtures/default.js +1 -1
  313. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  314. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  315. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  316. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  317. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  318. package/es/organism/get-the-app/index.js +2 -2
  319. package/es/organism/get-the-app/index.js.map +1 -1
  320. package/es/organism/list-item/test/fixtures.js +19 -0
  321. package/es/organism/list-item/test/fixtures.js.map +1 -0
  322. package/es/organism/list-items/test/fixtures/archived.js +1 -1
  323. package/es/organism/list-items/test/fixtures/archived.js.map +1 -1
  324. package/es/organism/list-items/test/fixtures/draft.js +1 -1
  325. package/es/organism/list-items/test/fixtures/draft.js.map +1 -1
  326. package/es/organism/list-items/test/fixtures/published.js +2 -2
  327. package/es/organism/list-items/test/fixtures/published.js.map +1 -1
  328. package/es/organism/list-items/test/fixtures.js +17 -0
  329. package/es/organism/list-items/test/fixtures.js.map +1 -0
  330. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  331. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  332. package/es/organism/mooc-footer/style.css +1 -0
  333. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  334. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  335. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  336. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  337. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  338. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  339. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  340. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  341. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  342. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  343. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  344. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  345. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  346. package/es/organism/search-and-chips-results/index.js +11 -4
  347. package/es/organism/search-and-chips-results/index.js.map +1 -1
  348. package/es/organism/search-and-chips-results/style.css +7 -1
  349. package/es/organism/search-and-chips-results/test/fixtures/default.js +1 -0
  350. package/es/organism/search-and-chips-results/test/fixtures/default.js.map +1 -1
  351. package/es/organism/settings/index.js +3 -2
  352. package/es/organism/settings/index.js.map +1 -1
  353. package/es/organism/sidebar/index.js +11 -10
  354. package/es/organism/sidebar/index.js.map +1 -1
  355. package/es/organism/user-preferences/index.js +3 -2
  356. package/es/organism/user-preferences/index.js.map +1 -1
  357. package/es/organism/wizard-contents/index.js +8 -9
  358. package/es/organism/wizard-contents/index.js.map +1 -1
  359. package/es/organism/wizard-contents/style.css +11 -13
  360. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
  361. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  362. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
  363. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  364. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
  365. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  366. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
  367. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  368. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
  369. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  370. package/es/organism/wizard-contents/test/fixtures.js +21 -0
  371. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  372. package/es/template/activity/index.js +1 -1
  373. package/es/template/activity/index.js.map +1 -1
  374. package/es/template/activity/test/progression-item-test.js +1 -1
  375. package/es/template/activity/test/progression-item-test.js.map +1 -1
  376. package/es/template/app-player/player/slides/footer/index.js +1 -1
  377. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  378. package/es/template/app-player/player/slides/index.js +14 -11
  379. package/es/template/app-player/player/slides/index.js.map +1 -1
  380. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  381. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  382. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  383. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  384. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  385. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  386. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  387. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  388. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  389. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  390. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  391. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  392. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  393. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  394. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  395. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  396. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  397. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  398. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  399. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  400. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  401. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  402. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  403. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  404. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  405. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  406. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  407. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  408. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  409. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  410. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  411. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  412. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  413. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  414. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  415. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  416. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  417. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  418. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  419. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  420. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  421. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  422. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  423. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  424. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  425. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  426. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  427. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  428. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  429. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  430. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  431. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  432. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  433. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  434. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  435. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  436. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  437. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  438. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  439. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  440. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  441. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  442. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  443. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  444. package/es/template/app-player/popin-correction/index.js +3 -2
  445. package/es/template/app-player/popin-correction/index.js.map +1 -1
  446. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  447. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  448. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  449. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  450. package/es/template/app-player/popin-end/summary.js +11 -7
  451. package/es/template/app-player/popin-end/summary.js.map +1 -1
  452. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  453. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  454. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  455. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  456. package/es/template/app-player/popin-header/index.js +4 -3
  457. package/es/template/app-player/popin-header/index.js.map +1 -1
  458. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  459. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  460. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  461. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  462. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  463. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  464. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  465. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  466. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  467. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  468. package/es/template/back-office/brand-update/index.js +13 -11
  469. package/es/template/back-office/brand-update/index.js.map +1 -1
  470. package/es/template/back-office/brand-update/style.css +4 -0
  471. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  472. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  473. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  474. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  475. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  476. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  477. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  478. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  479. package/es/template/back-office/brand-update/test/fixtures/loader.js +6 -2
  480. package/es/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
  481. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
  482. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  483. package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js +1 -1
  484. package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
  485. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  486. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  487. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  488. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  489. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  490. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  491. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +2 -2
  492. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  493. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
  494. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  495. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +50 -1
  496. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  497. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
  498. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  499. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
  500. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  501. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
  502. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  503. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
  504. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  505. package/es/template/back-office/brand-update/test/fixtures.js +20 -2
  506. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  507. package/es/template/cockpit/jw-uploader/index.js +1 -1
  508. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  509. package/es/template/common/dashboard/index.js +1 -1
  510. package/es/template/common/dashboard/index.js.map +1 -1
  511. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  512. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  513. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  514. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  515. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  516. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  517. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  518. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  519. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  520. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  521. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  522. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  523. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  524. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  525. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  526. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  527. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  528. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  529. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  530. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  531. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  532. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  533. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  534. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  535. package/es/util/shallow-compare.js.map +1 -1
  536. package/es/util/test/navigation.js +4 -3
  537. package/es/util/test/navigation.js.map +1 -1
  538. package/lib/atom/autocomplete/index.js +2 -2
  539. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  540. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  541. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  542. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  543. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  544. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  545. package/lib/atom/button-link/index.js +2 -2
  546. package/lib/atom/button-link-icon-only/index.js +2 -2
  547. package/lib/atom/button-menu/index.js +2 -2
  548. package/lib/atom/button-menu/test/fixtures/default.js +1 -1
  549. package/lib/atom/button-menu/test/fixtures/multiple-buttons.js +1 -1
  550. package/lib/atom/chips/index.js +2 -2
  551. package/lib/atom/clue/index.js.map +1 -1
  552. package/lib/atom/clue/test/see-clue.js +34 -0
  553. package/lib/atom/clue/test/see-clue.js.map +1 -1
  554. package/lib/atom/content-badge/test/fixtures.js +3 -0
  555. package/lib/atom/content-badge/test/fixtures.js.map +1 -1
  556. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  557. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  558. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  559. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  560. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  561. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  562. package/lib/atom/cta/test/fixtures/light.js +1 -1
  563. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  564. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  565. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  566. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  567. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  568. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  569. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  570. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  571. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  572. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  573. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  574. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  575. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  576. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  577. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  578. package/lib/atom/drag-and-drop/index.js +1 -1
  579. package/lib/atom/drag-and-drop/index.js.map +1 -1
  580. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  581. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  582. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  583. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  584. package/lib/atom/image-upload/index.js +3 -3
  585. package/lib/atom/image-upload/index.js.map +1 -1
  586. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  587. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  588. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  589. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  590. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  591. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  592. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  593. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  594. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  595. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  596. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  597. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  598. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  599. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  600. package/lib/atom/input-checkbox/index.js +2 -2
  601. package/lib/atom/input-color/index.js +2 -2
  602. package/lib/atom/input-doublestep/index.js +2 -2
  603. package/lib/atom/input-html/index.js.map +1 -1
  604. package/lib/atom/input-search/index.js +2 -2
  605. package/lib/atom/input-switch/index.js +15 -8
  606. package/lib/atom/input-switch/index.js.map +1 -1
  607. package/lib/atom/input-switch/style.css +47 -0
  608. package/lib/atom/input-switch/test/fixtures/cm-left.js +16 -0
  609. package/lib/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
  610. package/lib/atom/input-switch/test/fixtures/cm-right-checked.js +16 -0
  611. package/lib/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
  612. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js +20 -0
  613. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
  614. package/lib/atom/input-switch/test/fixtures/cm-right-modified.js +17 -0
  615. package/lib/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
  616. package/lib/atom/input-switch/test/fixtures/cm-right.js +16 -0
  617. package/lib/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
  618. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  619. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  620. package/lib/atom/input-switch/test/fixtures.js +15 -0
  621. package/lib/atom/input-switch/test/fixtures.js.map +1 -1
  622. package/lib/atom/input-text/index.js +2 -2
  623. package/lib/atom/input-textarea/index.js +2 -2
  624. package/lib/atom/link/index.js +4 -2
  625. package/lib/atom/link/index.js.map +1 -1
  626. package/lib/atom/promo-code/index.js.map +1 -1
  627. package/lib/atom/provider/index.js +1 -1
  628. package/lib/atom/provider/index.js.map +1 -1
  629. package/lib/atom/provider/test/index.js +1 -1
  630. package/lib/atom/provider/test/index.js.map +1 -1
  631. package/lib/atom/range/index.js +1 -1
  632. package/lib/atom/range/index.js.map +1 -1
  633. package/lib/atom/range/test/fixtures/multi.js +1 -1
  634. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  635. package/lib/atom/range/test/index.js +9 -9
  636. package/lib/atom/range/test/index.js.map +1 -1
  637. package/lib/atom/select/index.js +2 -2
  638. package/lib/atom/tab/index.js +2 -2
  639. package/lib/atom/video-upload/index.js +1 -1
  640. package/lib/atom/video-upload/index.js.map +1 -1
  641. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  642. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  643. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  644. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  645. package/lib/hoc/animation/index.js +1 -1
  646. package/lib/hoc/animation/test/on-mount.js +2 -2
  647. package/lib/hoc/animation-scheduler/index.js +4 -4
  648. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  649. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
  650. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  651. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  652. package/lib/hoc/swapper/index.js +5 -3
  653. package/lib/hoc/swapper/index.js.map +1 -1
  654. package/lib/hoc/swapper/test/on-mount.js +2 -2
  655. package/lib/hoc/transition/index.js +3 -3
  656. package/lib/hoc/transition/index.js.map +1 -1
  657. package/lib/molecule/add-to-my-list/index.js +4 -4
  658. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  659. package/lib/molecule/answer/index.js +5 -3
  660. package/lib/molecule/answer/index.js.map +1 -1
  661. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  662. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  663. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  664. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  665. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  666. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  667. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  668. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  669. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  670. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  671. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  672. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  673. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  674. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  675. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  676. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  677. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  678. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  679. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  680. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  681. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  682. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  683. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  684. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  685. package/lib/molecule/banner/style.css +1 -0
  686. package/lib/molecule/banner/test/fixtures/default.js +1 -1
  687. package/lib/molecule/banner/test/fixtures/default.js.map +1 -1
  688. package/lib/molecule/banner/test/fixtures.js +12 -0
  689. package/lib/molecule/banner/test/fixtures.js.map +1 -1
  690. package/lib/molecule/brand-create-form/index.js +2 -2
  691. package/lib/molecule/brand-form-group/index.js +18 -18
  692. package/lib/molecule/brand-form-group/index.js.map +1 -1
  693. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  694. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  695. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  696. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  697. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  698. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  699. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  700. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  701. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  702. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  703. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  704. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  705. package/lib/molecule/bullet-point-menu-button/index.js +2 -2
  706. package/lib/molecule/card/customer.css +61 -3
  707. package/lib/molecule/card/customer.js +22 -6
  708. package/lib/molecule/card/customer.js.map +1 -1
  709. package/lib/molecule/card/index.js +22 -9
  710. package/lib/molecule/card/index.js.map +1 -1
  711. package/lib/molecule/card/style.css +86 -24
  712. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  713. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  714. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  715. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  716. package/lib/molecule/card/test/fixtures/coorpmanager.js +28 -0
  717. package/lib/molecule/card/test/fixtures/coorpmanager.js.map +1 -0
  718. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  719. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  720. package/lib/molecule/card-content/index.js +14 -6
  721. package/lib/molecule/card-content/index.js.map +1 -1
  722. package/lib/molecule/card-content/style.css +52 -0
  723. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  724. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  725. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  726. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  727. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  728. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  729. package/lib/molecule/card-with-button/index.js.map +1 -1
  730. package/lib/molecule/cm-popin/style.css +1 -0
  731. package/lib/molecule/coorp-manager-roles/index.js +1 -1
  732. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  733. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  734. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  735. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  736. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  737. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  738. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  739. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  740. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  741. package/lib/molecule/dashboard/news-list/index.js +1 -1
  742. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  743. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  744. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  745. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  746. package/lib/molecule/drag-and-drop/index.js +3 -3
  747. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  748. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  749. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  750. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  751. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  752. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  753. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  754. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  755. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  756. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  757. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  758. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  759. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  760. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  761. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  762. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  763. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  764. package/lib/molecule/feedback/index.js +3 -3
  765. package/lib/molecule/feedback/index.js.map +1 -1
  766. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  767. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  768. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  769. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  770. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  771. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  772. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  773. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  774. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  775. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  776. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  777. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  778. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  779. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  780. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  781. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  782. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  783. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  784. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  785. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  786. package/lib/molecule/hero/index.js +2 -2
  787. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  788. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  789. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  790. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  791. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  792. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  793. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  794. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  795. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  796. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  797. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  798. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  799. package/lib/molecule/popin/index.js +3 -3
  800. package/lib/molecule/popin/index.js.map +1 -1
  801. package/lib/molecule/progress-bar/index.js +1 -1
  802. package/lib/molecule/progress-bar/index.js.map +1 -1
  803. package/lib/molecule/questions/drop-down/index.js +3 -3
  804. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  805. package/lib/molecule/questions/free-text/index.js +2 -2
  806. package/lib/molecule/questions/question-range/index.js +4 -2
  807. package/lib/molecule/questions/question-range/index.js.map +1 -1
  808. package/lib/molecule/questions/template/index.js +2 -2
  809. package/lib/molecule/questions/template/index.js.map +1 -1
  810. package/lib/molecule/questions/template/test/index.js +1 -1
  811. package/lib/molecule/questions/template/test/index.js.map +1 -1
  812. package/lib/molecule/quick-access-card/index.js.map +1 -1
  813. package/lib/molecule/resource-player/index.js +4 -2
  814. package/lib/molecule/resource-player/index.js.map +1 -1
  815. package/lib/molecule/scope-tabs/index.js +2 -2
  816. package/lib/molecule/search-form/index.js +2 -2
  817. package/lib/molecule/select-multiple/index.js +6 -6
  818. package/lib/molecule/select-multiple/index.js.map +1 -1
  819. package/lib/molecule/select-multiple/style.css +2 -1
  820. package/lib/molecule/select-multiple/test/fixtures.js +12 -0
  821. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  822. package/lib/molecule/select-multiple/test/index.js +4 -4
  823. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  824. package/lib/molecule/setup-section/index.js +1 -1
  825. package/lib/molecule/setup-section/index.js.map +1 -1
  826. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  827. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  828. package/lib/molecule/setup-sections/index.js +2 -2
  829. package/lib/molecule/setup-slide/index.js +8 -8
  830. package/lib/molecule/setup-slide/index.js.map +1 -1
  831. package/lib/molecule/share/index.js +4 -4
  832. package/lib/molecule/share/index.js.map +1 -1
  833. package/lib/molecule/titled-checkbox/index.js +2 -2
  834. package/lib/molecule/vertical-tabs/test/fixtures/default.js +1 -1
  835. package/lib/molecule/video-iframe/index.js +1 -1
  836. package/lib/molecule/video-iframe/index.js.map +1 -1
  837. package/lib/molecule/video-player/index.js +3 -1
  838. package/lib/molecule/video-player/index.js.map +1 -1
  839. package/lib/molecule/video-player/jwplayer.js +2 -2
  840. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  841. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  842. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  843. package/lib/molecule/video-player/vimeo.js +1 -1
  844. package/lib/molecule/video-player/vimeo.js.map +1 -1
  845. package/lib/molecule/wizard-summary/index.js +31 -4
  846. package/lib/molecule/wizard-summary/index.js.map +1 -1
  847. package/lib/organism/accordion/container/index.js +2 -2
  848. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  849. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  850. package/lib/organism/accordion/toggler/index.js +1 -1
  851. package/lib/organism/accordion/toggler/index.js.map +1 -1
  852. package/lib/organism/accordion/toggler/test/render.js +2 -2
  853. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  854. package/lib/organism/brand-form/index.js +2 -2
  855. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  856. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  857. package/lib/organism/content-translation/index.js +2 -2
  858. package/lib/organism/content-translation/index.js.map +1 -1
  859. package/lib/organism/content-translation/style.css +1 -0
  860. package/lib/organism/content-translation/test/fixtures/default.js +2 -2
  861. package/lib/organism/content-translation/test/fixtures/default.js.map +1 -1
  862. package/lib/organism/content-translation/test/fixtures.js +25 -0
  863. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  864. package/lib/organism/course-selection/index.js +28 -9
  865. package/lib/organism/course-selection/index.js.map +1 -1
  866. package/lib/organism/course-selection/style.css +11 -3
  867. package/lib/organism/course-selection/test/fixtures/default.js +45 -13
  868. package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
  869. package/lib/organism/course-selection/test/fixtures/empty.js +9 -0
  870. package/lib/organism/course-selection/test/fixtures/empty.js.map +1 -1
  871. package/lib/organism/course-selection/test/fixtures/filtered.js +11 -3
  872. package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  873. package/lib/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
  874. package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  875. package/lib/organism/course-selection/test/fixtures/switch-activated.js +32 -0
  876. package/lib/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
  877. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
  878. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  879. package/lib/organism/course-selection/test/fixtures.js +3 -0
  880. package/lib/organism/course-selection/test/fixtures.js.map +1 -1
  881. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  882. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  883. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  884. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  885. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  886. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  887. package/lib/organism/get-the-app/index.js +2 -2
  888. package/lib/organism/get-the-app/index.js.map +1 -1
  889. package/lib/organism/list-item/test/fixtures.js +31 -0
  890. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  891. package/lib/organism/list-items/test/fixtures/archived.js +1 -1
  892. package/lib/organism/list-items/test/fixtures/archived.js.map +1 -1
  893. package/lib/organism/list-items/test/fixtures/draft.js +1 -1
  894. package/lib/organism/list-items/test/fixtures/draft.js.map +1 -1
  895. package/lib/organism/list-items/test/fixtures/published.js +2 -2
  896. package/lib/organism/list-items/test/fixtures/published.js.map +1 -1
  897. package/lib/organism/list-items/test/fixtures.js +28 -0
  898. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  899. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  900. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  901. package/lib/organism/mooc-footer/style.css +1 -0
  902. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  903. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  904. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  905. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  906. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  907. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  908. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  909. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  910. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  911. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  912. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  913. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  914. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  915. package/lib/organism/search-and-chips-results/index.js +12 -4
  916. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  917. package/lib/organism/search-and-chips-results/style.css +7 -1
  918. package/lib/organism/search-and-chips-results/test/fixtures/default.js +1 -0
  919. package/lib/organism/search-and-chips-results/test/fixtures/default.js.map +1 -1
  920. package/lib/organism/settings/index.js +4 -2
  921. package/lib/organism/settings/index.js.map +1 -1
  922. package/lib/organism/sidebar/index.js +15 -13
  923. package/lib/organism/sidebar/index.js.map +1 -1
  924. package/lib/organism/user-preferences/index.js +4 -2
  925. package/lib/organism/user-preferences/index.js.map +1 -1
  926. package/lib/organism/wizard-contents/index.js +8 -10
  927. package/lib/organism/wizard-contents/index.js.map +1 -1
  928. package/lib/organism/wizard-contents/style.css +11 -13
  929. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
  930. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  931. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
  932. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  933. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
  934. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  935. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
  936. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  937. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
  938. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  939. package/lib/organism/wizard-contents/test/fixtures.js +34 -0
  940. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  941. package/lib/template/activity/index.js +1 -1
  942. package/lib/template/activity/index.js.map +1 -1
  943. package/lib/template/activity/progression-item.js +2 -2
  944. package/lib/template/activity/test/progression-item-test.js +1 -1
  945. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  946. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  947. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  948. package/lib/template/app-player/player/slides/index.js +15 -11
  949. package/lib/template/app-player/player/slides/index.js.map +1 -1
  950. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  951. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  952. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  953. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  954. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  955. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  956. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  957. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  958. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  959. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  960. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  961. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  962. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  963. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  964. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  965. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  966. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  967. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  968. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  969. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  970. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  971. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  972. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  973. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  974. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  975. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  976. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  977. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  978. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  979. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  980. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  981. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  982. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  983. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  984. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  985. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  986. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  987. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  988. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  989. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  990. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  991. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  992. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  993. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  994. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  995. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  996. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  997. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  998. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  999. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  1000. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  1001. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  1002. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  1003. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  1004. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  1005. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  1006. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  1007. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  1008. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  1009. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  1010. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  1011. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  1012. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  1013. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  1014. package/lib/template/app-player/popin-correction/index.js +6 -4
  1015. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  1016. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  1017. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  1018. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  1019. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  1020. package/lib/template/app-player/popin-end/summary.js +12 -7
  1021. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  1022. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  1023. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  1024. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  1025. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  1026. package/lib/template/app-player/popin-header/index.js +7 -5
  1027. package/lib/template/app-player/popin-header/index.js.map +1 -1
  1028. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  1029. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  1030. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  1031. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  1032. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  1033. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  1034. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  1035. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  1036. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  1037. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  1038. package/lib/template/back-office/brand-update/index.js +13 -11
  1039. package/lib/template/back-office/brand-update/index.js.map +1 -1
  1040. package/lib/template/back-office/brand-update/style.css +4 -0
  1041. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  1042. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  1043. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  1044. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  1045. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  1046. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  1047. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  1048. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  1049. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  1050. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  1051. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  1052. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  1053. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  1054. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  1055. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  1056. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  1057. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  1058. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  1059. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  1060. package/lib/template/back-office/brand-update/test/fixtures/loader.js +7 -3
  1061. package/lib/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
  1062. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  1063. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
  1064. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  1065. package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js +2 -2
  1066. package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
  1067. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  1068. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  1069. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  1070. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  1071. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  1072. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  1073. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  1074. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +3 -3
  1075. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  1076. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
  1077. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  1078. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +50 -1
  1079. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  1080. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
  1081. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  1082. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
  1083. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  1084. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
  1085. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  1086. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
  1087. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  1088. package/lib/template/back-office/brand-update/test/fixtures.js +30 -3
  1089. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  1090. package/lib/template/cockpit/jw-uploader/index.js +1 -1
  1091. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  1092. package/lib/template/common/dashboard/index.js +1 -1
  1093. package/lib/template/common/dashboard/index.js.map +1 -1
  1094. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  1095. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  1096. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  1097. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  1098. package/lib/template/common/discipline/index.js +2 -2
  1099. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  1100. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  1101. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  1102. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  1103. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  1104. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  1105. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  1106. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  1107. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  1108. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  1109. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  1110. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  1111. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  1112. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  1113. package/lib/template/teams-dashboard/index.js +2 -2
  1114. package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
  1115. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  1116. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  1117. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  1118. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  1119. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  1120. package/lib/test/helpers/render-component.js +1 -1
  1121. package/lib/util/external-content.js +1 -1
  1122. package/lib/util/proptypes.js +1 -1
  1123. package/lib/util/shallow-compare.js.map +1 -1
  1124. package/lib/util/test/navigation.js +5 -3
  1125. package/lib/util/test/navigation.js.map +1 -1
  1126. package/locales/hy/global.json +80 -0
  1127. package/package.json +2 -2
@@ -15,9 +15,9 @@ var _getClassState = _interopRequireDefault(require("../../util/get-class-state"
15
15
 
16
16
  var _style = _interopRequireDefault(require("./style.css"));
17
17
 
18
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
 
20
- 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; }
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
@@ -30,7 +30,9 @@ const InputSwitch = props => {
30
30
  disabled,
31
31
  onChange = _noop2.default,
32
32
  description,
33
- modified = false
33
+ modified = false,
34
+ theme = 'default',
35
+ titlePosition = 'left'
34
36
  } = props;
35
37
  const idSwitch = id || (0, _uniqueId2.default)('input-switch-');
36
38
  const isDisabled = disabled ? 'disabled' : '';
@@ -41,10 +43,13 @@ const InputSwitch = props => {
41
43
  const descriptionView = description ? /*#__PURE__*/_react.default.createElement("div", {
42
44
  className: _style.default.description
43
45
  }, description) : null;
44
- const className = (0, _getClassState.default)(_style.default.default, _style.default.modified, null, modified);
46
+ const defaultClass = theme === 'coorpmanager' ? _style.default.coorpmanager : _style.default.default;
47
+ const modifiedClass = theme === 'coorpmanager' ? _style.default.coorpmanagerModified : _style.default.modified;
48
+ const className = (0, _getClassState.default)(defaultClass, modifiedClass, null, modified);
45
49
  return /*#__PURE__*/_react.default.createElement("div", {
46
- className: className
47
- }, titleView, /*#__PURE__*/_react.default.createElement("input", {
50
+ className: className,
51
+ "data-name": `switch-input-${theme}`
52
+ }, titlePosition === 'left' ? titleView : null, /*#__PURE__*/_react.default.createElement("input", {
48
53
  type: "checkbox",
49
54
  id: idSwitch,
50
55
  name: name,
@@ -54,7 +59,7 @@ const InputSwitch = props => {
54
59
  className: _style.default.checkbox
55
60
  }), /*#__PURE__*/_react.default.createElement("label", {
56
61
  htmlFor: idSwitch
57
- }), descriptionView);
62
+ }), titlePosition === 'right' ? titleView : null, descriptionView);
58
63
  };
59
64
 
60
65
  InputSwitch.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -65,7 +70,9 @@ InputSwitch.propTypes = process.env.NODE_ENV !== "production" ? {
65
70
  disabled: _propTypes.default.bool,
66
71
  onChange: _propTypes.default.func,
67
72
  description: _propTypes.default.string,
68
- modified: _propTypes.default.bool
73
+ modified: _propTypes.default.bool,
74
+ titlePosition: _propTypes.default.oneOf(['right', 'left']),
75
+ theme: _propTypes.default.oneOf(['default', 'coorpmanager'])
69
76
  } : {};
70
77
  var _default = InputSwitch;
71
78
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/input-switch/index.js"],"names":["InputSwitch","props","title","name","id","value","disabled","onChange","description","modified","idSwitch","isDisabled","handleChange","e","target","checked","titleView","style","descriptionView","className","default","checkbox","propTypes","PropTypes","string","bool","func"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;AAC3B,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,IAAR;AAAcC,IAAAA,EAAd;AAAkBC,IAAAA,KAAlB;AAAyBC,IAAAA,QA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E,EAAEmB,mBAAUC,MAHQ;AAItBnB,EAAAA,KAAK,EAAEkB,mBAAUE,IAJK;AAKtBnB,EAAAA,QAAQ,EAAEiB,mBAAUE,IALE;AAMtBlB,EAAAA,QAAQ,EAAEgB,mBAAUG,IANE;AAOtBlB,EAAAA,WAAW,EAAEe,mBAAUC,MAPD;AAQtBf,EAAAA,QAAQ,EAAEc,mBAAUE;AARE,CAAxB;eAUezB,W","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {title, name, id, value, disabled, onChange = noop, description, modified = false} = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const titleView = title ? <span className={style.title}>{`${title} `}</span> : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n const className = getClassState(style.default, style.modified, null, modified);\n\n return (\n <div className={className}>\n {titleView}\n <input\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n />\n <label htmlFor={idSwitch} />\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool\n};\nexport default InputSwitch;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/input-switch/index.js"],"names":["InputSwitch","props","title","name","id","value","disabled","onChange","description","modified","theme","titlePosition","idSwitch","isDisabled","handleChange","e","target","checked","titleView","style","descriptionView","defaultClass","coorpmanager","default","modifiedClass","coorpmanagerModified","className","checkbox","propTypes","PropTypes","string","bool","func","oneOf"],"mappings":";;;;;;;;;AAAA;;A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A3B,GAAuC,IAD1C,eAEE;AACE,IAAA,IAAI,EAAC,UADP;AAEE,IAAA,EAAE,EAAEN,QAFN;AAGE,IAAA,IAAI,EAAET,IAHR;AAIE,IAAA,QAAQ,EAAEW,YAJZ;AAKE,IAAA,OAAO,EAAET,KALX;AAME,IAAA,QAAQ,EAAEQ,UANZ;AAOE,IAAA,SAAS,EAAEM,eAAMQ;AAPnB,IAFF,eAWE;AAAO,IAAA,OAAO,EAAEf;AAAhB,IAXF,EAYGD,aAAa,KAAK,OAAlB,GAA4BO,SAA5B,GAAwC,IAZ3C,EAaGE,eAbH,CADF;AAiBD,CA7CD;;AA+CApB,WAAW,CAAC4B,SAAZ,2CAAwB;AACtB1B,EAAAA,KAAK,EAAE2B,mBAAUC,MADK;AAEtB3B,EAAAA,IAAI,EAAE0B,mBAAUC,MAFM;AAGtB1B,EAAAA,EAAE,EAAEyB,mBAAUC,MAHQ;AAItBzB,EAAAA,KAAK,EAAEwB,mBAAUE,IAJK;AAKtBzB,EAAAA,QAAQ,EAAEuB,mBAAUE,IALE;AAMtBxB,EAAAA,QAAQ,EAAEsB,mBAAUG,IANE;AAOtBxB,EAAAA,WAAW,EAAEqB,mBAAUC,MAPD;AAQtBrB,EAAAA,QAAQ,EAAEoB,mBAAUE,IARE;AAStBpB,EAAAA,aAAa,EAAEkB,mBAAUI,KAAV,CAAgB,CAAC,OAAD,EAAU,MAAV,CAAhB,CATO;AAUtBvB,EAAAA,KAAK,EAAEmB,mBAAUI,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,CAAhB;AAVe,CAAxB;eAYejC,W","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {\n title,\n name,\n id,\n value,\n disabled,\n onChange = noop,\n description,\n modified = false,\n theme = 'default',\n titlePosition = 'left'\n } = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const titleView = title ? <span className={style.title}>{`${title} `}</span> : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const defaultClass = theme === 'coorpmanager' ? style.coorpmanager : style.default;\n const modifiedClass = theme === 'coorpmanager' ? style.coorpmanagerModified : style.modified;\n const className = getClassState(defaultClass, modifiedClass, null, modified);\n\n return (\n <div className={className} data-name={`switch-input-${theme}`}>\n {titlePosition === 'left' ? titleView : null}\n <input\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n />\n <label htmlFor={idSwitch} />\n {titlePosition === 'right' ? titleView : null}\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool,\n titlePosition: PropTypes.oneOf(['right', 'left']),\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\nexport default InputSwitch;\n"],"file":"index.js"}
@@ -5,6 +5,9 @@
5
5
  @value positive from colors;
6
6
  @value light from colors;
7
7
  @value dark from colors;
8
+ @value cm_grey_200 from colors;
9
+ @value black from colors;
10
+ @value cm_primary_blue from colors;
8
11
 
9
12
  .default {
10
13
  display: flex;
@@ -16,6 +19,14 @@
16
19
  composes: default;
17
20
  }
18
21
 
22
+ .coorpmanager {
23
+ composes: default;
24
+ }
25
+
26
+ .coorpmanagerModified {
27
+ composes: modified;
28
+ }
29
+
19
30
  .default label {
20
31
  height: 30px;
21
32
  position: relative;
@@ -102,3 +113,39 @@
102
113
  font-style: italic;
103
114
  margin-left: 20px;
104
115
  }
116
+
117
+ .coorpmanager label, .coorpmanagerModified label {
118
+ width: 48px;
119
+ height: 24px;
120
+ border: solid 2px cm_grey_200;
121
+ margin-right: 8px;
122
+ background: cm_grey_200;
123
+ }
124
+
125
+ .coorpmanager label::after, .coorpmanagerModified label::after {
126
+ width: 22px;
127
+ height: 22px;
128
+ }
129
+
130
+ .coorpmanager span, .coorpmanagerModified span {
131
+ font-family: Gilroy;
132
+ font-weight: bold;
133
+ color: black;
134
+ min-width: 190px;
135
+ }
136
+
137
+ .coorpmanager .checkbox:checked ~ label {
138
+ background: cm_primary_blue;
139
+ border-color: cm_primary_blue;
140
+ }
141
+
142
+ .coorpmanager .checkbox:disabled ~ label {
143
+ border-color: cm_primary_blue;
144
+ pointer-events: none;
145
+ background: cm_primary_blue;
146
+ opacity: 0.4;
147
+ }
148
+
149
+ .coorpmanager .checkbox:disabled ~ label::after {
150
+ background: white;
151
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'switch',
8
+ title: 'Name',
9
+ value: false,
10
+ onChange: value => console.log(value),
11
+ titlePosition: 'left',
12
+ theme: 'coorpmanager'
13
+ }
14
+ };
15
+ exports.default = _default;
16
+ //# sourceMappingURL=cm-left.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-left.js"],"names":["props","type","title","value","onChange","console","log","titlePosition","theme"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,QADD;AAELC,IAAAA,KAAK,EAAE,MAFF;AAGLC,IAAAA,KAAK,EAAE,KAHF;AAILC,IAAAA,QAAQ,EAAED,KAAK,IAAIE,OAAO,CAACC,GAAR,CAAYH,KAAZ,CAJd;AAKLI,IAAAA,aAAa,EAAE,MALV;AAMLC,IAAAA,KAAK,EAAE;AANF;AADM,C","sourcesContent":["export default {\n props: {\n type: 'switch',\n title: 'Name',\n value: false,\n onChange: value => console.log(value),\n titlePosition: 'left',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-left.js"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'switch',
8
+ title: 'Name',
9
+ value: true,
10
+ onChange: value => console.log(value),
11
+ titlePosition: 'right',
12
+ theme: 'coorpmanager'
13
+ }
14
+ };
15
+ exports.default = _default;
16
+ //# sourceMappingURL=cm-right-checked.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-right-checked.js"],"names":["props","type","title","value","onChange","console","log","titlePosition","theme"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,QADD;AAELC,IAAAA,KAAK,EAAE,MAFF;AAGLC,IAAAA,KAAK,EAAE,IAHF;AAILC,IAAAA,QAAQ,EAAED,KAAK,IAAIE,OAAO,CAACC,GAAR,CAAYH,KAAZ,CAJd;AAKLI,IAAAA,aAAa,EAAE,OALV;AAMLC,IAAAA,KAAK,EAAE;AANF;AADM,C","sourcesContent":["export default {\n props: {\n type: 'switch',\n title: 'Name',\n value: true,\n onChange: value => console.log(value),\n titlePosition: 'right',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-right-checked.js"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _checked = _interopRequireDefault(require("./checked"));
7
+
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+
10
+ 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); }
11
+
12
+ var _default = {
13
+ props: _extends({}, _checked.default.props, {
14
+ disabled: true,
15
+ titlePosition: 'right',
16
+ theme: 'coorpmanager'
17
+ })
18
+ };
19
+ exports.default = _default;
20
+ //# sourceMappingURL=cm-right-disabled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-right-disabled.js"],"names":["props","checked","disabled","titlePosition","theme"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,iBAAQD,KADR;AAEHE,IAAAA,QAAQ,EAAE,IAFP;AAGHC,IAAAA,aAAa,EAAE,OAHZ;AAIHC,IAAAA,KAAK,EAAE;AAJJ;AADQ,C","sourcesContent":["import checked from './checked';\n\nexport default {\n props: {\n ...checked.props,\n disabled: true,\n titlePosition: 'right',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-right-disabled.js"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'switch',
8
+ title: 'Name',
9
+ value: false,
10
+ modified: true,
11
+ onChange: value => console.log(value),
12
+ titlePosition: 'right',
13
+ theme: 'coorpmanager'
14
+ }
15
+ };
16
+ exports.default = _default;
17
+ //# sourceMappingURL=cm-right-modified.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-right-modified.js"],"names":["props","type","title","value","modified","onChange","console","log","titlePosition","theme"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,QADD;AAELC,IAAAA,KAAK,EAAE,MAFF;AAGLC,IAAAA,KAAK,EAAE,KAHF;AAILC,IAAAA,QAAQ,EAAE,IAJL;AAKLC,IAAAA,QAAQ,EAAEF,KAAK,IAAIG,OAAO,CAACC,GAAR,CAAYJ,KAAZ,CALd;AAMLK,IAAAA,aAAa,EAAE,OANV;AAOLC,IAAAA,KAAK,EAAE;AAPF;AADM,C","sourcesContent":["export default {\n props: {\n type: 'switch',\n title: 'Name',\n value: false,\n modified: true,\n onChange: value => console.log(value),\n titlePosition: 'right',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-right-modified.js"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'switch',
8
+ title: 'Name',
9
+ value: false,
10
+ onChange: value => console.log(value),
11
+ titlePosition: 'right',
12
+ theme: 'coorpmanager'
13
+ }
14
+ };
15
+ exports.default = _default;
16
+ //# sourceMappingURL=cm-right.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-right.js"],"names":["props","type","title","value","onChange","console","log","titlePosition","theme"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,QADD;AAELC,IAAAA,KAAK,EAAE,MAFF;AAGLC,IAAAA,KAAK,EAAE,KAHF;AAILC,IAAAA,QAAQ,EAAED,KAAK,IAAIE,OAAO,CAACC,GAAR,CAAYH,KAAZ,CAJd;AAKLI,IAAAA,aAAa,EAAE,OALV;AAMLC,IAAAA,KAAK,EAAE;AANF;AADM,C","sourcesContent":["export default {\n props: {\n type: 'switch',\n title: 'Name',\n value: false,\n onChange: value => console.log(value),\n titlePosition: 'right',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-right.js"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  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); }
11
11
 
12
12
  var _default = {
13
- props: _extends(_extends({}, _checked.default.props), {}, {
13
+ props: _extends({}, _checked.default.props, {
14
14
  disabled: true
15
15
  })
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/disabled.js"],"names":["props","checked","disabled"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,iBAAQD,KADR;AAEHE,IAAAA,QAAQ,EAAE;AAFP;AADQ,C","sourcesContent":["import checked from './checked';\n\nexport default {\n props: {\n ...checked.props,\n disabled: true\n }\n};\n"],"file":"disabled.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/disabled.js"],"names":["props","checked","disabled"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,eACAC,iBAAQD,KADR;AAEHE,IAAAA,QAAQ,EAAE;AAFP;AADQ,C","sourcesContent":["import checked from './checked';\n\nexport default {\n props: {\n ...checked.props,\n disabled: true\n }\n};\n"],"file":"disabled.js"}
@@ -10,6 +10,16 @@ var _ = _interopRequireDefault(require(".."));
10
10
 
11
11
  var _checked = _interopRequireDefault(require("./fixtures/checked"));
12
12
 
13
+ var _cmLeft = _interopRequireDefault(require("./fixtures/cm-left"));
14
+
15
+ var _cmRightChecked = _interopRequireDefault(require("./fixtures/cm-right-checked"));
16
+
17
+ var _cmRightDisabled = _interopRequireDefault(require("./fixtures/cm-right-disabled"));
18
+
19
+ var _cmRightModified = _interopRequireDefault(require("./fixtures/cm-right-modified"));
20
+
21
+ var _cmRight = _interopRequireDefault(require("./fixtures/cm-right"));
22
+
13
23
  var _disabled = _interopRequireDefault(require("./fixtures/disabled"));
14
24
 
15
25
  var _modified = _interopRequireDefault(require("./fixtures/modified"));
@@ -29,6 +39,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
29
39
  });
30
40
  });
31
41
  (0, _ava.default)('Atom › AtomInputSwitch › Checked › should be rendered', _renderComponent.default, _.default, _checked.default);
42
+ (0, _ava.default)('Atom › AtomInputSwitch › CmLeft › should be rendered', _renderComponent.default, _.default, _cmLeft.default);
43
+ (0, _ava.default)('Atom › AtomInputSwitch › CmRightChecked › should be rendered', _renderComponent.default, _.default, _cmRightChecked.default);
44
+ (0, _ava.default)('Atom › AtomInputSwitch › CmRightDisabled › should be rendered', _renderComponent.default, _.default, _cmRightDisabled.default);
45
+ (0, _ava.default)('Atom › AtomInputSwitch › CmRightModified › should be rendered', _renderComponent.default, _.default, _cmRightModified.default);
46
+ (0, _ava.default)('Atom › AtomInputSwitch › CmRight › should be rendered', _renderComponent.default, _.default, _cmRight.default);
32
47
  (0, _ava.default)('Atom › AtomInputSwitch › Disabled › should be rendered', _renderComponent.default, _.default, _disabled.default);
33
48
  (0, _ava.default)('Atom › AtomInputSwitch › Modified › should be rendered', _renderComponent.default, _.default, _modified.default);
34
49
  (0, _ava.default)('Atom › AtomInputSwitch › NoTitle › should be rendered', _renderComponent.default, _.default, _noTitle.default);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/input-switch/test/fixtures.js"],"names":["t","pass","AtomInputSwitch","propTypes","value","key","not","undefined","renderComponentMacro","fixtureChecked","fixtureDisabled","fixtureModified","fixtureNoTitle","fixtureSso","fixtureUnchecked"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,sDAAL,EAA6DA,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAgBC,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAqGO,gBAArG;AACA,kBAAK,wDAAL,EAA+DD,wBAA/D,EAAqFN,SAArF,EAAsGQ,iBAAtG;AACA,kBAAK,wDAAL,EAA+DF,wBAA/D,EAAqFN,SAArF,EAAsGS,iBAAtG;AACA,kBAAK,uDAAL,EAA8DH,wBAA9D,EAAoFN,SAApF,EAAqGU,gBAArG;AACA,kBAAK,mDAAL,EAA0DJ,wBAA1D,EAAgFN,SAAhF,EAAiGW,YAAjG;AACA,kBAAK,yDAAL,EAAgEL,wBAAhE,EAAsFN,SAAtF,EAAuGY,kBAAvG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputSwitch from '..';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureModified from './fixtures/modified';\nimport fixtureNoTitle from './fixtures/no-title';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUnchecked from './fixtures/unchecked';\n\ntest('Atom › AtomInputSwitch > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputSwitch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputSwitch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputSwitch › Checked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureChecked);\ntest('Atom › AtomInputSwitch › Disabled › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureDisabled);\ntest('Atom › AtomInputSwitch › Modified › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureModified);\ntest('Atom › AtomInputSwitch › NoTitle › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureNoTitle);\ntest('Atom › AtomInputSwitch › Sso › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureSso);\ntest('Atom › AtomInputSwitch › Unchecked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureUnchecked);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/input-switch/test/fixtures.js"],"names":["t","pass","AtomInputSwitch","propTypes","value","key","not","undefined","renderComponentMacro","fixtureChecked","fixtureCmLeft","fixtureCmRightChecked","fixtureCmRightDisabled","fixtureCmRightModified","fixtureCmRight","fixtureDisabled","fixtureModified","fixtureNoTitle","fixtureSso","fixtureUnchecked"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,sDAAL,EAA6DA,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAgBC,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAqGO,gBAArG;AACA,kBAAK,sDAAL,EAA6DD,wBAA7D,EAAmFN,SAAnF,EAAoGQ,eAApG;AACA,kBAAK,8DAAL,EAAqEF,wBAArE,EAA2FN,SAA3F,EAA4GS,uBAA5G;AACA,kBAAK,+DAAL,EAAsEH,wBAAtE,EAA4FN,SAA5F,EAA6GU,wBAA7G;AACA,kBAAK,+DAAL,EAAsEJ,wBAAtE,EAA4FN,SAA5F,EAA6GW,wBAA7G;AACA,kBAAK,uDAAL,EAA8DL,wBAA9D,EAAoFN,SAApF,EAAqGY,gBAArG;AACA,kBAAK,wDAAL,EAA+DN,wBAA/D,EAAqFN,SAArF,EAAsGa,iBAAtG;AACA,kBAAK,wDAAL,EAA+DP,wBAA/D,EAAqFN,SAArF,EAAsGc,iBAAtG;AACA,kBAAK,uDAAL,EAA8DR,wBAA9D,EAAoFN,SAApF,EAAqGe,gBAArG;AACA,kBAAK,mDAAL,EAA0DT,wBAA1D,EAAgFN,SAAhF,EAAiGgB,YAAjG;AACA,kBAAK,yDAAL,EAAgEV,wBAAhE,EAAsFN,SAAtF,EAAuGiB,kBAAvG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputSwitch from '..';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureCmLeft from './fixtures/cm-left';\nimport fixtureCmRightChecked from './fixtures/cm-right-checked';\nimport fixtureCmRightDisabled from './fixtures/cm-right-disabled';\nimport fixtureCmRightModified from './fixtures/cm-right-modified';\nimport fixtureCmRight from './fixtures/cm-right';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureModified from './fixtures/modified';\nimport fixtureNoTitle from './fixtures/no-title';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUnchecked from './fixtures/unchecked';\n\ntest('Atom › AtomInputSwitch > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputSwitch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputSwitch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputSwitch › Checked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureChecked);\ntest('Atom › AtomInputSwitch › CmLeft › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureCmLeft);\ntest('Atom › AtomInputSwitch › CmRightChecked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureCmRightChecked);\ntest('Atom › AtomInputSwitch › CmRightDisabled › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureCmRightDisabled);\ntest('Atom › AtomInputSwitch › CmRightModified › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureCmRightModified);\ntest('Atom › AtomInputSwitch › CmRight › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureCmRight);\ntest('Atom › AtomInputSwitch › Disabled › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureDisabled);\ntest('Atom › AtomInputSwitch › Modified › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureModified);\ntest('Atom › AtomInputSwitch › NoTitle › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureNoTitle);\ntest('Atom › AtomInputSwitch › Sso › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureSso);\ntest('Atom › AtomInputSwitch › Unchecked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureUnchecked);\n"],"file":"fixtures.js"}
@@ -23,9 +23,9 @@ var _getClassState = _interopRequireDefault(require("../../util/get-class-state"
23
23
 
24
24
  var _style = _interopRequireDefault(require("./style.css"));
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
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
31
 
@@ -21,9 +21,9 @@ var _getClassState = _interopRequireDefault(require("../../util/get-class-state"
21
21
 
22
22
  var _style = _interopRequireDefault(require("./style.css"));
23
23
 
24
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
24
+ 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); }
25
25
 
26
- 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; }
26
+ 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; }
27
27
 
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
29
 
@@ -17,6 +17,8 @@ var _provider = _interopRequireDefault(require("../provider"));
17
17
 
18
18
  var _navigation = _interopRequireDefault(require("../../util/navigation"));
19
19
 
20
+ const _excluded = ["skinHover", "hoverColor", "data-name", "aria-label"];
21
+
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
23
 
22
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); }
@@ -82,7 +84,7 @@ class Link extends _react.default.Component {
82
84
  'data-name': dataName = 'link',
83
85
  'aria-label': ariaLabel
84
86
  } = _this$props,
85
- aProps = _objectWithoutPropertiesLoose(_this$props, ["skinHover", "hoverColor", "data-name", "aria-label"]);
87
+ aProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
86
88
 
87
89
  const {
88
90
  href,
@@ -111,7 +113,7 @@ class Link extends _react.default.Component {
111
113
  onMouseEnter: this.handleMouseEnter,
112
114
  onMouseLeave: this.handleMouseLeave,
113
115
  className: className,
114
- style: _extends(_extends(_extends({}, propsStyle), _style), _hoverStyle)
116
+ style: _extends({}, propsStyle, _style, _hoverStyle)
115
117
  }), children);
116
118
  }
117
119
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/link/index.js"],"names":["Link","React","Component","constructor","props","onMouseEnter","setState","hovered","onMouseLeave","e","onClick","download","navigate","context","state","render","skin","history","createHref","skinHover","hoverColor","dataName","ariaLabel","aProps","href","className","style","propsStyle","children","_style","pointerEvents","_hoverStyle","color","undefined","handleOnClick","handleMouseEnter","handleMouseLeave","Provider","childContextTypes","propTypes","PropTypes","node","string","target","oneOf","bool","func","shape"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;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,MAA/B,CAAhB,CANS;AAOjBzB,EAAAA,SAAS,EAAEqB,mBAAUK,IAPJ;AAQjBzB,EAAAA,UAAU,EAAEoB,mBAAUE,MARL;AASjB/B,EAAAA,QAAQ,EAAE6B,mBAAUK,IATH;AAUjBnC,EAAAA,OAAO,EAAE8B,mBAAUM,IAVF;AAWjBzC,EAAAA,YAAY,EAAEmC,mBAAUM,IAXP;AAYjBtC,EAAAA,YAAY,EAAEgC,mBAAUM,IAZP;AAajBpB,EAAAA,KAAK,EAAEc,mBAAUO,KAAV,CAAgB,EAAhB;AAbU,C;eAyGN/C,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nclass Link extends React.Component {\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n skinHover: PropTypes.bool,\n hoverColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n style: PropTypes.shape({})\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter = noop} = this.props;\n\n this.setState({\n hovered: true\n });\n\n onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave = noop} = this.props;\n\n this.setState({\n hovered: false\n });\n\n onMouseLeave();\n };\n\n handleOnClick = e => {\n const {onClick = noop, download} = this.props;\n\n onClick(e);\n\n if (!download) {\n const navigate = pushToHistory(this.context)(this.props);\n navigate(e);\n }\n };\n\n render() {\n const {skin, history: {createHref = identity} = {}} = this.context;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n 'aria-label': ariaLabel,\n ...aProps\n } = this.props;\n const {href, onClick, className, style: propsStyle, children} = this.props;\n const {hovered} = this.state;\n const _style =\n href || onClick\n ? null\n : {\n pointerEvents: 'none'\n };\n const _hoverStyle =\n skinHover && hovered\n ? {\n color: hoverColor\n }\n : null;\n\n return (\n <a\n {...aProps}\n data-name={dataName}\n aria-label={ariaLabel}\n href={href ? createHref(href) : undefined}\n onClick={this.handleOnClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n className={className}\n style={{\n ...propsStyle,\n ..._style,\n ..._hoverStyle\n }}\n >\n {children}\n </a>\n );\n }\n}\n\nexport default Link;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/link/index.js"],"names":["Link","React","Component","constructor","props","onMouseEnter","setState","hovered","onMouseLeave","e","onClick","download","navigate","context","state","render","skin","history","createHref","skinHover","hoverColor","dataName","ariaLabel","aProps","href","className","style","propsStyle","children","_style","pointerEvents","_hoverStyle","color","undefined","handleOnClick","handleMouseEnter","handleMouseLeave","Provider","childContextTypes","propTypes","PropTypes","node","string","target","oneOf","bool","func","shape"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;;AAEA,MAAMA,IAAN,SAAmBC,eAAMC,SAAzB,CAAmC;AAsBjCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;;AADiB,8CAOA,MAAM;AACvB,YAAM;AAACC,QAAAA,YAAY;AAAb,UAAwB,KAAKD,KAAnC;AAEA,WAAKE,QAAL,CAAc;AACZC,QAAAA,OAAO,EAAE;AADG,OAAd;AAIAF,MAAAA,YAAY;AACb,KAfkB;;AAAA,8CAiBA,MAAM;AACvB,YAAM;AAACG,QAAAA,YAAY;AAAb,UAAwB,KAAKJ,KAAnC;AAEA,WAAKE,QAAL,CAAc;AACZC,QAAAA,OAAO,EAAE;AADG,OAAd;AAIAC,MAAAA,YAA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AHd;AAIE,MAAA,IAAI,EAAEE,IAAI,GAAGN,UAAU,CAACM,IAAD,CAAb,GAAsBS,SAJlC;AAKE,MAAA,OAAO,EAAE,KAAKC,aALhB;AAME,MAAA,YAAY,EAAE,KAAKC,gBANrB;AAOE,MAAA,YAAY,EAAE,KAAKC,gBAPrB;AAQE,MAAA,SAAS,EAAEX,SARb;AASE,MAAA,KAAK,eACAE,UADA,EAEAE,MAFA,EAGAE,WAHA;AATP,QAeGH,QAfH,CADF;AAmBD;;AAvGgC;;gBAA7B5B,I,kBAiBkB;AACpBgB,EAAAA,IAAI,EAAEqB,kBAASC,iBAAT,CAA2BtB,IADb;AAEpBC,EAAAA,OAAO,EAAEoB,kBAASC,iBAAT,CAA2BrB;AAFhB,C;;AAjBlBjB,I,CACGuC,S,2CAAY;AACjBX,EAAAA,QAAQ,EAAEY,mBAAUC,IADH;AAEjBhB,EAAAA,SAAS,EAAEe,mBAAUE,MAFJ;AAGjBlB,EAAAA,IAAI,EAAEgB,mBAAUE,MAHC;AAIjB,eAAaF,mBAAUE,MAJN;AAKjB,gBAAcF,mBAAUE,MALP;AAMjBC,EAAAA,MAAM,EAAEH,mBAAUI,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB,CANS;AAOjBzB,EAAAA,SAAS,EAAEqB,mBAAUK,IAPJ;AAQjBzB,EAAAA,UAAU,EAAEoB,mBAAUE,MARL;AASjB/B,EAAAA,QAAQ,EAAE6B,mBAAUK,IATH;AAUjBnC,EAAAA,OAAO,EAAE8B,mBAAUM,IAVF;AAWjBzC,EAAAA,YAAY,EAAEmC,mBAAUM,IAXP;AAYjBtC,EAAAA,YAAY,EAAEgC,mBAAUM,IAZP;AAajBpB,EAAAA,KAAK,EAAEc,mBAAUO,KAAV,CAAgB,EAAhB;AAbU,C;eAyGN/C,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nclass Link extends React.Component {\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n skinHover: PropTypes.bool,\n hoverColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n style: PropTypes.shape({})\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter = noop} = this.props;\n\n this.setState({\n hovered: true\n });\n\n onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave = noop} = this.props;\n\n this.setState({\n hovered: false\n });\n\n onMouseLeave();\n };\n\n handleOnClick = e => {\n const {onClick = noop, download} = this.props;\n\n onClick(e);\n\n if (!download) {\n const navigate = pushToHistory(this.context)(this.props);\n navigate(e);\n }\n };\n\n render() {\n const {skin, history: {createHref = identity} = {}} = this.context;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n 'aria-label': ariaLabel,\n ...aProps\n } = this.props;\n const {href, onClick, className, style: propsStyle, children} = this.props;\n const {hovered} = this.state;\n const _style =\n href || onClick\n ? null\n : {\n pointerEvents: 'none'\n };\n const _hoverStyle =\n skinHover && hovered\n ? {\n color: hoverColor\n }\n : null;\n\n return (\n <a\n {...aProps}\n data-name={dataName}\n aria-label={ariaLabel}\n href={href ? createHref(href) : undefined}\n onClick={this.handleOnClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n className={className}\n style={{\n ...propsStyle,\n ..._style,\n ..._hoverStyle\n }}\n >\n {children}\n </a>\n );\n }\n}\n\nexport default Link;\n"],"file":"index.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/promo-code/index.js"],"names":["PromoCode","props","context","promoCodeDescription","promoCodeError","onValidate","handlePromoCodeChange","translate","style","promoCode","promoCodeInputAndButton","promoCodeInput","promoCodeButtonOnError","promoCodeButtonOnSuccess","promoCodeButton","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","func","isRequired"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACpC,QAAM;AAACC,IAAAA,oBAAD;AAAuBC,IAAAA,cAAvB;AAAuCC,IAAAA,UAAvC;AAAmDC,IAAAA;AAAnD,MAA4EL,KAAlF;AAEA,QAAM;AAACM,IAAAA;AAAD,MAAcL,OAApB;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEM,eAAMC;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAED,eAAME;AAAtB,kBACE;AACE,IAAA,IAAI,EAAC,MADP;AAEE,IAAA,WAAW,EAAEH,SAAS,CAAC,qBAAD,CAFxB;AAGE,IAAA,SAAS,EAAG;cACRC,eAAMG,cAAe;cACrBP,cAAc,IAAII,eAAMI,sBAAuB;cAC/CT,oBAAoB,IAAIK,eAAMK,wBAAyB;WAN7D;AAQE,IAAA,QAAQ,EAAEP;AARZ,IADF,eAWE;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,OAAO,EAAED,UAA/B;AAA2C,IAAA,SAAS,EAAEG,eAAMM;AAA5D,KACGP,SAAS,CAAC,4BAAD,CADZ,CAXF,CADF,EAgBGJ,oBAAoB,gBACnB;AAAK,IAAA,SAAS,EAAEK,eAAML;AAAtB,UAA8CA,oBAA9C,CADmB,GAEjB,IAlBN,EAmBGC,cAAc,gBAAG;AAAK,IAAA,SAAS,EAAEI,eAAMJ;AAAtB,UAAwCA,cAAxC,CAAH,GAAmE,IAnBpF,CADF;AAuBD,CA5BD;;AA8BAJ,SAAS,CAACe,YAAV,GAAyB;AACvBR,EAAAA,SAAS,EAAES,kBAASC,iBAAT,CAA2BV;AADf,CAAzB;AAIAP,SAAS,CAACkB,SAAV,2CAAsB;AACpBf,EAAAA,oBAAoB,EAAEgB,mBAAUC,MADZ;AAEpBhB,EAAAA,cAAc,EAAEe,mBAAUC,MAFN;AAGpBf,EAAAA,UAAU,EAAEc,mBAAUE,IAAV,CAAeC,UAHP;AAIpBhB,EAAAA,qBAAqB,EAAEa,mBAAUE,IAAV,CAAeC;AAJlB,CAAtB;eAOetB,S","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst PromoCode = (props, context) => {\n const {promoCodeDescription, promoCodeError, onValidate, handlePromoCodeChange} = props;\n\n const {translate} = context;\n\n return (\n <div className={style.promoCode}>\n <div className={style.promoCodeInputAndButton}>\n <input\n type=\"text\"\n placeholder={translate('zuora_discount_code')}\n className={`\n ${style.promoCodeInput}\n ${promoCodeError && style.promoCodeButtonOnError}\n ${promoCodeDescription && style.promoCodeButtonOnSuccess}\n `}\n onChange={handlePromoCodeChange}\n />\n <button type=\"submit\" onClick={onValidate} className={style.promoCodeButton}>\n {translate('zuora_discount_code_submit')}\n </button>\n </div>\n {promoCodeDescription ? (\n <div className={style.promoCodeDescription}>-{promoCodeDescription}</div>\n ) : null}\n {promoCodeError ? <div className={style.promoCodeError}>-{promoCodeError}</div> : null}\n </div>\n );\n};\n\nPromoCode.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nPromoCode.propTypes = {\n promoCodeDescription: PropTypes.string,\n promoCodeError: PropTypes.string,\n onValidate: PropTypes.func.isRequired,\n handlePromoCodeChange: PropTypes.func.isRequired\n};\n\nexport default PromoCode;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/promo-code/index.js"],"names":["PromoCode","props","context","promoCodeDescription","promoCodeError","onValidate","handlePromoCodeChange","translate","style","promoCode","promoCodeInputAndButton","promoCodeInput","promoCodeButtonOnError","promoCodeButtonOnSuccess","promoCodeButton","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","func","isRequired"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACpC,QAAM;AAACC,IAAAA,oBAAD;AAAuBC,IAAAA,cAAvB;AAAuCC,IAAAA,UAAvC;AAAmDC,IAAAA;AAAnD,MAA4EL,KAAlF;AAEA,QAAM;AAACM,IAAAA;AAAD,MAAcL,OAApB;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEM,eAAMC;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAED,eAAME;AAAtB,kBACE;AACE,IAAA,IAAI,EAAC,MADP;AAEE,IAAA,WAAW,EAAEH,SAAS,CAAC,qBAAD,CAFxB;AAGE,IAAA,SAAS,EAAG;AACtB,cAAcC,eAAMG,cAAe;AACnC,cAAcP,cAAc,IAAII,eAAMI,sBAAuB;AAC7D,cAAcT,oBAAoB,IAAIK,eAAMK,wBAAyB;AACrE,WAPQ;AAQE,IAAA,QAAQ,EAAEP;AARZ,IADF,eAWE;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,OAAO,EAAED,UAA/B;AAA2C,IAAA,SAAS,EAAEG,eAAMM;AAA5D,KACGP,SAAS,CAAC,4BAAD,CADZ,CAXF,CADF,EAgBGJ,oBAAoB,gBACnB;AAAK,IAAA,SAAS,EAAEK,eAAML;AAAtB,UAA8CA,oBAA9C,CADmB,GAEjB,IAlBN,EAmBGC,cAAc,gBAAG;AAAK,IAAA,SAAS,EAAEI,eAAMJ;AAAtB,UAAwCA,cAAxC,CAAH,GAAmE,IAnBpF,CADF;AAuBD,CA5BD;;AA8BAJ,SAAS,CAACe,YAAV,GAAyB;AACvBR,EAAAA,SAAS,EAAES,kBAASC,iBAAT,CAA2BV;AADf,CAAzB;AAIAP,SAAS,CAACkB,SAAV,2CAAsB;AACpBf,EAAAA,oBAAoB,EAAEgB,mBAAUC,MADZ;AAEpBhB,EAAAA,cAAc,EAAEe,mBAAUC,MAFN;AAGpBf,EAAAA,UAAU,EAAEc,mBAAUE,IAAV,CAAeC,UAHP;AAIpBhB,EAAAA,qBAAqB,EAAEa,mBAAUE,IAAV,CAAeC;AAJlB,CAAtB;eAOetB,S","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst PromoCode = (props, context) => {\n const {promoCodeDescription, promoCodeError, onValidate, handlePromoCodeChange} = props;\n\n const {translate} = context;\n\n return (\n <div className={style.promoCode}>\n <div className={style.promoCodeInputAndButton}>\n <input\n type=\"text\"\n placeholder={translate('zuora_discount_code')}\n className={`\n ${style.promoCodeInput}\n ${promoCodeError && style.promoCodeButtonOnError}\n ${promoCodeDescription && style.promoCodeButtonOnSuccess}\n `}\n onChange={handlePromoCodeChange}\n />\n <button type=\"submit\" onClick={onValidate} className={style.promoCodeButton}>\n {translate('zuora_discount_code_submit')}\n </button>\n </div>\n {promoCodeDescription ? (\n <div className={style.promoCodeDescription}>-{promoCodeDescription}</div>\n ) : null}\n {promoCodeError ? <div className={style.promoCodeError}>-{promoCodeError}</div> : null}\n </div>\n );\n};\n\nPromoCode.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nPromoCode.propTypes = {\n promoCodeDescription: PropTypes.string,\n promoCodeError: PropTypes.string,\n onValidate: PropTypes.func.isRequired,\n handlePromoCodeChange: PropTypes.func.isRequired\n};\n\nexport default PromoCode;\n"],"file":"index.js"}
@@ -42,7 +42,7 @@ const DEFAULT_SKIN = {
42
42
  }
43
43
  };
44
44
 
45
- const mergeSkin = (skin = {}) => (0, _defaultsDeep2.default)(skin, DEFAULT_SKIN);
45
+ const mergeSkin = (skin = {}) => (0, _defaultsDeep2.default)(DEFAULT_SKIN, skin);
46
46
 
47
47
  const historyShape = _propTypes.default.shape({
48
48
  createHref: _propTypes.default.func,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/provider/index.js"],"names":["DEFAULT_SKIN","common","good","bad","primary","life","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","isRequired","object","propTypes","node"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAEA,MAAMA,YAAY,GAAG;AACnBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,IAAI,EAAE,SADA;AAENC,IAAAA,GAAG,EAAE,SAFC;AAGNC,IAAAA,OAAO,EAAE,SAHH;AAINC,IAAAA,IAAI,EAAE,SAJA;AAKNC,IAAAA,KAAK,EAAE,SALD;AAMNC,IAAAA,WAAW,EAAE,SANP;AAONC,IAAAA,WAAW,EAAE,SAPP;AAQNC,IAAAA,WAAW,EAAE,SARP;AASNC,IAAAA,WAAW,EAAE,SATP;AAUNC,IAAAA,aAAa,EAAE,SAVT;AAWNC,IAAAA,KAAK,EAAE,SAXD;AAYNC,IAAAA,MAAM,EAAE,SAZF;AAaNC,IAAAA,IAAI,EAAE,SAbA;AAcNC,IAAAA,IAAI,EAAE,SAdA;AAeNC,IAAAA,SAAS,EAAE,SAfL;AAgBNC,IAAAA,MAAM,EAAE,SAhBF;AAiBNC,IAAAA,QAAQ,EAAE,SAjBJ;AAkBNC,IAAAA,UAAU,EAAE,SAlBN;AAmBNC,IAAAA,QAAQ,EAAE,SAnBJ;AAoBNC,IAAAA,MAAM,EAAE,SApBF;AAqBNC,IAAAA,KAAK,EAAE,SArBD;AAsBNC,IAAAA,KAAK,EAAE;AAtBD;AADW,CAArB;;AA2BA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,E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AACH,MAAAA,OAAD;AAAU1B,MAAAA,IAAV;AAAgB2B,MAAAA,SAAhB;AAA2BG,MAAAA;AAA3B,QAAoCL,KAA1C,CAF0B,CAG1B;;AACA,SAAKM,KAAL,GAAa;AAACL,MAAAA,OAAD;AAAU1B,MAAAA,IAAI,EAAED,SAAS,CAACC,IAAD,CAAzB;AAAiC2B,MAAAA,SAAjC;AAA4CG,MAAAA;AAA5C,KAAb;AACD;;AAEDE,EAAAA,eAAe,GAAG;AAChB,WAAO,KAAKD,KAAZ;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAACC,MAAAA;AAAD,QAAa,KAAKT,KAAxB;AACA,WAAOH,eAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;AACD;;AA1CoC;;gBAAjCb,Q,uBAWuB;AACzBK,EAAAA,OAAO,EAAEzB,YADgB;AAEzBD,EAAAA,IAAI,EAAEO,SAFmB;AAGzBoB,EAAAA,SAAS,EAAEP,cAAc,CAACiB,UAHD;AAIzBP,EAAAA,KAAK,EAAE5B,mBAAUoC;AAJQ,C;;AAXvBjB,Q,CACGkB,S,2CAAY;AACjBb,EAAAA,OAAO,EAAEzB,YADQ;AAEjBD,EAAAA,IAAI,EAAEO,SAFW;AAGjBoB,EAAAA,SAAS,EAAEP,cAHM;AAIjBc,EAAAA,QAAQ,EAAEhC,mBAAUsC,IAAV,CAAeH,UAJR;AAKjBP,EAAAA,KAAK,EAAE5B,mBAAUC,KAAV,CAAgB;AACrB3B,IAAAA,MAAM,EAAE0B,mBAAUG;AADG,GAAhB;AALU,C;eA4CNgB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\n\nconst DEFAULT_SKIN = {\n common: {\n good: '#24b694',\n bad: '#ed1c24',\n primary: '#00B0FF',\n life: '#ed1c24',\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(skin, DEFAULT_SKIN);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape.isRequired,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nexport default Provider;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/provider/index.js"],"names":["DEFAULT_SKIN","common","good","bad","primary","life","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","isRequired","object","propTypes","node"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAEA,MAAMA,YAAY,GAAG;AACnBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,IAAI,EAAE,SADA;AAENC,IAAAA,GAAG,EAAE,SAFC;AAGNC,IAAAA,OAAO,EAAE,SAHH;AAINC,IAAAA,IAAI,EAAE,SAJA;AAKNC,IAAAA,KAAK,EAAE,SALD;AAMNC,IAAAA,WAAW,EAAE,SANP;AAONC,IAAAA,WAAW,EAAE,SAPP;AAQNC,IAAAA,WAAW,EAAE,SARP;AASNC,IAAAA,WAAW,EAAE,SATP;AAUNC,IAAAA,aAAa,EAAE,SAVT;AAWNC,IAAAA,KAAK,EAAE,SAXD;AAYNC,IAAAA,MAAM,EAAE,SAZF;AAaNC,IAAAA,IAAI,EAAE,SAbA;AAcNC,IAAAA,IAAI,EAAE,SAdA;AAeNC,IAAAA,SAAS,EAAE,SAfL;AAgBNC,IAAAA,MAAM,EAAE,SAhBF;AAiBNC,IAAAA,QAAQ,EAAE,SAjBJ;AAkBNC,IAAAA,UAAU,EAAE,SAlBN;AAmBNC,IAAAA,QAAQ,EAAE,SAnBJ;AAoBNC,IAAAA,MAAM,EAAE,SApBF;AAqBNC,IAAAA,KAAK,EAAE,SArBD;AAsBNC,IAAAA,KAAK,EAAE;AAtBD;AADW,CAArB;;AA2BA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAazB,YAAb,EAA2ByB,IAA3B,CAAjC;;AAEA,MAAM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AA2BG,MAAAA;AAA3B,QAAoCL,KAA1C,CAF0B,CAG1B;;AACA,SAAKM,KAAL,GAAa;AAACL,MAAAA,OAAD;AAAU1B,MAAAA,IAAI,EAAED,SAAS,CAACC,IAAD,CAAzB;AAAiC2B,MAAAA,SAAjC;AAA4CG,MAAAA;AAA5C,KAAb;AACD;;AAEDE,EAAAA,eAAe,GAAG;AAChB,WAAO,KAAKD,KAAZ;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAACC,MAAAA;AAAD,QAAa,KAAKT,KAAxB;AACA,WAAOH,eAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;AACD;;AA1CoC;;gBAAjCb,Q,uBAWuB;AACzBK,EAAAA,OAAO,EAAEzB,YADgB;AAEzBD,EAAAA,IAAI,EAAEO,SAFmB;AAGzBoB,EAAAA,SAAS,EAAEP,cAAc,CAACiB,UAHD;AAIzBP,EAAAA,KAAK,EAAE5B,mBAAUoC;AAJQ,C;;AAXvBjB,Q,CACGkB,S,2CAAY;AACjBb,EAAAA,OAAO,EAAEzB,YADQ;AAEjBD,EAAAA,IAAI,EAAEO,SAFW;AAGjBoB,EAAAA,SAAS,EAAEP,cAHM;AAIjBc,EAAAA,QAAQ,EAAEhC,mBAAUsC,IAAV,CAAeH,UAJR;AAKjBP,EAAAA,KAAK,EAAE5B,mBAAUC,KAAV,CAAgB;AACrB3B,IAAAA,MAAM,EAAE0B,mBAAUG;AADG,GAAhB;AALU,C;eA4CNgB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\n\nconst DEFAULT_SKIN = {\n common: {\n good: '#24b694',\n bad: '#ed1c24',\n primary: '#00B0FF',\n life: '#ed1c24',\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(DEFAULT_SKIN, skin);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape.isRequired,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nexport default Provider;\n"],"file":"index.js"}
@@ -31,7 +31,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
31
31
  };
32
32
  const wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react.default.createElement(_.default, _default.default.props, /*#__PURE__*/_react.default.createElement("span", null, "Foo")));
33
33
  t.is(wrapper.state.history, undefined);
34
- wrapper.setProps(_extends(_extends({}, _default.default.props), {}, {
34
+ wrapper.setProps(_extends({}, _default.default.props, {
35
35
  history
36
36
  }));
37
37
  t.is(wrapper.state().history, history);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/provider/test/index.js"],"names":["adapter","Adapter","t","history","createHref","push","wrapper","defaultFixture","props","is","state","undefined","setProps"],"mappings":";;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA;AACA,uBAAU;AAACA,EAAAA,OAAO,EAAE,IAAIC,2BAAJ;AAAV,CAAV;AAEA,kBAAK,8CAAL,EAAqDC,CAAC,IAAI;AACxD,QAAMC,OAAO,GAAG;AACdC,IAAAA,UAAU,gBADI;AAEdC,IAAAA,IAAI;AAFU,GAAhB;AAIA,QAAMC,OAAO,GAAG,mCACd,6BAAC,SAAD,EAAcC,iBAAeC,KAA7B,eACE,iDADF,CADc,CAAhB;AAMAN,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,CAAcP,OAAnB,EAA4BQ,SAA5B;AACAL,EAAAA,OAAO,CAACM,QAAR,uBAAqBL,iBAAeC,KAApC;AAA2CL,IAAAA;AAA3C;AACAD,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,GAAgBP,OAArB,EAA8BA,OAA9B;AACD,CAdD","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {shallow, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {noop} from 'lodash/fp';\nimport Provider from '..';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should re-render element when updating props', t => {\n const history = {\n createHref: noop,\n push: noop\n };\n const wrapper = shallow(\n <Provider {...defaultFixture.props}>\n <span>Foo</span>\n </Provider>\n );\n\n t.is(wrapper.state.history, undefined);\n wrapper.setProps({...defaultFixture.props, history});\n t.is(wrapper.state().history, history);\n});\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/atom/provider/test/index.js"],"names":["adapter","Adapter","t","history","createHref","push","wrapper","defaultFixture","props","is","state","undefined","setProps"],"mappings":";;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA;AACA,uBAAU;AAACA,EAAAA,OAAO,EAAE,IAAIC,2BAAJ;AAAV,CAAV;AAEA,kBAAK,8CAAL,EAAqDC,CAAC,IAAI;AACxD,QAAMC,OAAO,GAAG;AACdC,IAAAA,UAAU,gBADI;AAEdC,IAAAA,IAAI;AAFU,GAAhB;AAIA,QAAMC,OAAO,GAAG,mCACd,6BAAC,SAAD,EAAcC,iBAAeC,KAA7B,eACE,iDADF,CADc,CAAhB;AAMAN,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,CAAcP,OAAnB,EAA4BQ,SAA5B;AACAL,EAAAA,OAAO,CAACM,QAAR,cAAqBL,iBAAeC,KAApC;AAA2CL,IAAAA;AAA3C;AACAD,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,GAAgBP,OAArB,EAA8BA,OAA9B;AACD,CAdD","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {shallow, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {noop} from 'lodash/fp';\nimport Provider from '..';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should re-render element when updating props', t => {\n const history = {\n createHref: noop,\n push: noop\n };\n const wrapper = shallow(\n <Provider {...defaultFixture.props}>\n <span>Foo</span>\n </Provider>\n );\n\n t.is(wrapper.state.history, undefined);\n wrapper.setProps({...defaultFixture.props, history});\n t.is(wrapper.state().history, history);\n});\n"],"file":"index.js"}
@@ -57,7 +57,7 @@ class Range extends _react.default.Component {
57
57
 
58
58
  constructor(props, context) {
59
59
  super(props, context);
60
- this.state = _extends(_extends({}, extractStateFromProps(props)), {}, {
60
+ this.state = _extends({}, extractStateFromProps(props), {
61
61
  pending: false
62
62
  });
63
63
  this.handleClick = this.handleClick.bind(this);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/range/index.js"],"names":["valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","Range","React","Component","getDerivedStateFromProps","state","pending","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","handle","clientX","isClickToTheLeft","closestHandle","Math","abs","renderHandles","style","animatedHandle","render","skin","defaultColor","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","Provider","childContextTypes","propTypes","PropTypes","func","bool","oneOfType","number","arrayOf"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,YAAY,GAAG,CAACC,KAAD,EAAQC,CAAR,KAAc;AACjC,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA;AAAP,MAAgBH,KAAK,CAACI,qBAAN,EAAtB;AACA,SAAO,qBAAM,CAAN,EAAS,CAAT,EAAY,CAACH,CAAC,GAAGC,IAAL,KAAcC,KAAK,GAAGD,IAAtB,CAAZ,CAAP;AACD,CAHD;;AAKA,MAAMG,qBAAqB,GAAGC,KAAK,IAAI;AACrC,QAAM;AAACC,IAAAA,KAAK,GAAG,KAAT;AAAgBC,IAAAA,KAAK,GAAGD,KAAK,GAAG,CAAC,CAAD,EAAI,CAAJ,CAAH,GAAY;AAAzC,MAA8CD,KAApD;AACA,SAAO;AACLC,IAAAA,KADK;AAELC,IAAAA,KAAK,EAAED,KAAK,GAAGC,KAAH,GAAW,CAAC,CAAD,EA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UG,SAAV,CAAoB,CAACH,mBAAUI,MAAX,EAAmBJ,mBAAUK,OAAV,CAAkBL,mBAAUI,MAA5B,CAAnB,CAApB;AALU,C;eAwKN5D,K","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, set, clamp} from 'lodash/fp';\nimport Provider from '../provider';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n renderHandles() {\n const {\n value: [left, right],\n multi,\n pending\n } = this.state;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMinChange} onPanEnd={this.handleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMaxChange} onPanEnd={this.handleMaxChangeEnd} />\n </span>\n </div>\n );\n }\n\n render() {\n const {skin} = this.context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: defaultColor,\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n {this.renderHandles()}\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/range/index.js"],"names":["valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","Range","React","Component","getDerivedStateFromProps","state","pending","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","handle","clientX","isClickToTheLeft","closestHandle","Math","abs","renderHandles","style","animatedHandle","render","skin","defaultColor","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","Provider","childContextTypes","propTypes","PropTypes","func","bool","oneOfType","number","arrayOf"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,YAAY,GAAG,CAACC,KAAD,EAAQC,CAAR,KAAc;AACjC,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA;AAAP,MAAgBH,KAAK,CAACI,qBAAN,EAAtB;AACA,SAAO,qBAAM,CAAN,EAAS,CAAT,EAAY,CAACH,CAAC,GAAGC,IAAL,KAAcC,KAAK,GAAGD,IAAtB,CAAZ,CAAP;AACD,CAHD;;AAKA,MAAMG,qBAAqB,GAAGC,KAAK,IAAI;AACrC,QAAM;AAACC,IAAAA,KAAK,GAAG,KAAT;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D,S,2CAAY;AACjBzB,EAAAA,QAAQ,EAAE0B,mBAAUC,IADH;AAEjB1B,EAAAA,WAAW,EAAEyB,mBAAUC,IAFN;AAGjB3D,EAAAA,KAAK,EAAE0D,mBAAUE,IAHA;AAIjB;AACA3D,EAAAA,KAAK,EAAEyD,mBAAUG,SAAV,CAAoB,CAACH,mBAAUI,MAAX,EAAmBJ,mBAAUK,OAAV,CAAkBL,mBAAUI,MAA5B,CAAnB,CAApB;AALU,C;eAwKN5D,K","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, set, clamp} from 'lodash/fp';\nimport Provider from '../provider';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n renderHandles() {\n const {\n value: [left, right],\n multi,\n pending\n } = this.state;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMinChange} onPanEnd={this.handleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMaxChange} onPanEnd={this.handleMaxChangeEnd} />\n </span>\n </div>\n );\n }\n\n render() {\n const {skin} = this.context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: defaultColor,\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n {this.renderHandles()}\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"file":"index.js"}
@@ -13,7 +13,7 @@ const {
13
13
  props
14
14
  } = _default2.default;
15
15
  var _default = {
16
- props: _extends(_extends({}, props), {}, {
16
+ props: _extends({}, props, {
17
17
  multi: true,
18
18
  value: [0.2, 0.7]
19
19
  })