@coorpacademy/components 10.0.50 → 10.1.3

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 (1038) hide show
  1. package/es/atom/autocomplete/test/fixtures.js +19 -0
  2. package/es/atom/autocomplete/test/fixtures.js.map +1 -0
  3. package/es/atom/avatar/test/fixtures.js +13 -0
  4. package/es/atom/avatar/test/fixtures.js.map +1 -0
  5. package/es/atom/button/index.js +3 -1
  6. package/es/atom/button/index.js.map +1 -1
  7. package/es/atom/button/test/fixtures.js +27 -0
  8. package/es/atom/button/test/fixtures.js.map +1 -0
  9. package/es/atom/button-link/index.js +106 -0
  10. package/es/atom/button-link/index.js.map +1 -0
  11. package/es/atom/button-link/style.css +97 -0
  12. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js +10 -0
  13. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  14. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js +14 -0
  15. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  16. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js +10 -0
  17. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  18. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +11 -0
  19. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  20. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js +14 -0
  21. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  22. package/es/atom/button-link/test/fixtures/icon-button.js +13 -0
  23. package/es/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  24. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +17 -0
  25. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  26. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js +20 -0
  27. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  28. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js +16 -0
  29. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  30. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +17 -0
  31. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  32. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js +13 -0
  33. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  34. package/es/atom/catalog-section/test/fixtures.js +15 -0
  35. package/es/atom/catalog-section/test/fixtures.js.map +1 -0
  36. package/es/atom/centered-text/test/fixtures.js +13 -0
  37. package/es/atom/centered-text/test/fixtures.js.map +1 -0
  38. package/es/atom/checkbox/test/fixtures.js +19 -0
  39. package/es/atom/checkbox/test/fixtures.js.map +1 -0
  40. package/es/atom/chips/index.js +36 -0
  41. package/es/atom/chips/index.js.map +1 -0
  42. package/es/atom/chips/style.css +66 -0
  43. package/es/atom/chips/test/fixtures/default.js +9 -0
  44. package/es/atom/chips/test/fixtures/default.js.map +1 -0
  45. package/es/atom/chips/test/fixtures/non-selected.js +9 -0
  46. package/es/atom/chips/test/fixtures/non-selected.js.map +1 -0
  47. package/es/atom/clue/test/fixtures.js +17 -0
  48. package/es/atom/clue/test/fixtures.js.map +1 -0
  49. package/es/atom/content-badge/index.js +21 -0
  50. package/es/atom/content-badge/index.js.map +1 -0
  51. package/es/atom/content-badge/style.css +59 -0
  52. package/es/atom/content-badge/test/fixtures/advanced.js +7 -0
  53. package/es/atom/content-badge/test/fixtures/advanced.js.map +1 -0
  54. package/es/atom/content-badge/test/fixtures/article.js +7 -0
  55. package/es/atom/content-badge/test/fixtures/article.js.map +1 -0
  56. package/es/atom/content-badge/test/fixtures/chapter.js +7 -0
  57. package/es/atom/content-badge/test/fixtures/chapter.js.map +1 -0
  58. package/es/atom/content-badge/test/fixtures/coach.js +7 -0
  59. package/es/atom/content-badge/test/fixtures/coach.js.map +1 -0
  60. package/es/atom/content-badge/test/fixtures/default.js +7 -0
  61. package/es/atom/content-badge/test/fixtures/default.js.map +1 -0
  62. package/es/atom/content-badge/test/fixtures/podcast.js +7 -0
  63. package/es/atom/content-badge/test/fixtures/podcast.js.map +1 -0
  64. package/es/atom/content-badge/test/fixtures/scorm.js +7 -0
  65. package/es/atom/content-badge/test/fixtures/scorm.js.map +1 -0
  66. package/es/atom/content-badge/test/fixtures/video.js +7 -0
  67. package/es/atom/content-badge/test/fixtures/video.js.map +1 -0
  68. package/es/atom/cta/test/fixtures.js +37 -0
  69. package/es/atom/cta/test/fixtures.js.map +1 -0
  70. package/es/atom/difficulty-level/test/fixtures.js +19 -0
  71. package/es/atom/difficulty-level/test/fixtures.js.map +1 -0
  72. package/es/atom/drag-and-drop/test/fixtures.js +23 -0
  73. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -0
  74. package/es/atom/image-upload/test/fixtures.js +29 -0
  75. package/es/atom/image-upload/test/fixtures.js.map +1 -0
  76. package/es/atom/input-checkbox/test/fixtures.js +25 -0
  77. package/es/atom/input-checkbox/test/fixtures.js.map +1 -0
  78. package/es/atom/input-color/test/fixtures.js +19 -0
  79. package/es/atom/input-color/test/fixtures.js.map +1 -0
  80. package/es/atom/input-doublestep/test/fixtures.js +21 -0
  81. package/es/atom/input-doublestep/test/fixtures.js.map +1 -0
  82. package/es/atom/input-html/test/fixtures.js +17 -0
  83. package/es/atom/input-html/test/fixtures.js.map +1 -0
  84. package/es/atom/input-readonly/test/fixtures.js +13 -0
  85. package/es/atom/input-readonly/test/fixtures.js.map +1 -0
  86. package/es/atom/input-search/index.js +65 -0
  87. package/es/atom/input-search/index.js.map +1 -0
  88. package/es/atom/input-search/style.css +201 -0
  89. package/es/{molecule/search → atom/input-search}/test/change.js +0 -0
  90. package/es/atom/input-search/test/change.js.map +1 -0
  91. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js +14 -0
  92. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  93. package/es/atom/input-search/test/fixtures/coorpmanager.js +13 -0
  94. package/es/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  95. package/es/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  96. package/es/atom/input-search/test/fixtures/default.js.map +1 -0
  97. package/es/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  98. package/es/atom/input-search/test/fixtures/with-value.js.map +1 -0
  99. package/es/atom/input-switch/test/fixtures.js +23 -0
  100. package/es/atom/input-switch/test/fixtures.js.map +1 -0
  101. package/es/atom/input-text/index.js +34 -6
  102. package/es/atom/input-text/index.js.map +1 -1
  103. package/es/atom/input-text/style.css +229 -1
  104. package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
  105. package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  106. package/es/atom/input-text/test/fixtures.js +25 -0
  107. package/es/atom/input-text/test/fixtures.js.map +1 -0
  108. package/es/atom/input-textarea/index.js +36 -11
  109. package/es/atom/input-textarea/index.js.map +1 -1
  110. package/es/atom/input-textarea/style.css +265 -0
  111. package/es/atom/input-textarea/test/fixtures/cm-default.js +17 -0
  112. package/es/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  113. package/es/atom/input-textarea/test/fixtures/cm-empty.js +17 -0
  114. package/es/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  115. package/es/atom/input-textarea/test/fixtures.js +17 -0
  116. package/es/atom/input-textarea/test/fixtures.js.map +1 -0
  117. package/es/atom/label/test/fixtures.js +15 -0
  118. package/es/atom/label/test/fixtures.js.map +1 -0
  119. package/es/atom/life/test/fixtures.js +25 -0
  120. package/es/atom/life/test/fixtures.js.map +1 -0
  121. package/es/atom/link/test/fixtures.js +17 -0
  122. package/es/atom/link/test/fixtures.js.map +1 -0
  123. package/es/atom/loader/test/fixtures.js +13 -0
  124. package/es/atom/loader/test/fixtures.js.map +1 -0
  125. package/es/atom/notification/test/fixtures.js +17 -0
  126. package/es/atom/notification/test/fixtures.js.map +1 -0
  127. package/es/atom/picture/test/fixtures.js +19 -0
  128. package/es/atom/picture/test/fixtures.js.map +1 -0
  129. package/es/atom/picture-background/test/fixtures.js +19 -0
  130. package/es/atom/picture-background/test/fixtures.js.map +1 -0
  131. package/es/atom/promo-code/test/fixtures.js +17 -0
  132. package/es/atom/promo-code/test/fixtures.js.map +1 -0
  133. package/es/atom/provider/test/fixtures.js +13 -0
  134. package/es/atom/provider/test/fixtures.js.map +1 -0
  135. package/es/atom/radio-group/test/fixtures.js +17 -0
  136. package/es/atom/radio-group/test/fixtures.js.map +1 -0
  137. package/es/atom/range/test/fixtures.js +15 -0
  138. package/es/atom/range/test/fixtures.js.map +1 -0
  139. package/es/atom/resource-miniature/test/fixtures.js +21 -0
  140. package/es/atom/resource-miniature/test/fixtures.js.map +1 -0
  141. package/es/atom/select/test/fixtures.js +43 -0
  142. package/es/atom/select/test/fixtures.js.map +1 -0
  143. package/es/atom/slide/test/fixtures.js +21 -0
  144. package/es/atom/slide/test/fixtures.js.map +1 -0
  145. package/es/atom/social-link/test/fixtures.js +17 -0
  146. package/es/atom/social-link/test/fixtures.js.map +1 -0
  147. package/es/atom/spinner/test/fixtures.js +13 -0
  148. package/es/atom/spinner/test/fixtures.js.map +1 -0
  149. package/es/atom/tab/test/fixtures.js +13 -0
  150. package/es/atom/tab/test/fixtures.js.map +1 -0
  151. package/es/atom/tab-content/test/fixtures.js +15 -0
  152. package/es/atom/tab-content/test/fixtures.js.map +1 -0
  153. package/es/atom/tag/index.js +27 -0
  154. package/es/atom/tag/index.js.map +1 -0
  155. package/es/atom/tag/style.css +38 -0
  156. package/es/atom/tag/test/fixtures/archived.js +7 -0
  157. package/es/atom/tag/test/fixtures/archived.js.map +1 -0
  158. package/es/atom/tag/test/fixtures/default.js +7 -0
  159. package/es/atom/tag/test/fixtures/default.js.map +1 -0
  160. package/es/atom/tag/test/fixtures/published.js +7 -0
  161. package/es/atom/tag/test/fixtures/published.js.map +1 -0
  162. package/es/atom/tag/test/fixtures/revision.js +7 -0
  163. package/es/atom/tag/test/fixtures/revision.js.map +1 -0
  164. package/es/atom/title/test/fixtures.js +17 -0
  165. package/es/atom/title/test/fixtures.js.map +1 -0
  166. package/es/atom/video-upload/test/fixtures.js +21 -0
  167. package/es/atom/video-upload/test/fixtures.js.map +1 -0
  168. package/es/atom/wizard-steps/index.js +38 -0
  169. package/es/atom/wizard-steps/index.js.map +1 -0
  170. package/es/atom/wizard-steps/style.css +150 -0
  171. package/es/atom/wizard-steps/test/fixtures/default.js +28 -0
  172. package/es/atom/wizard-steps/test/fixtures/default.js.map +1 -0
  173. package/es/atom/wizard-steps/test/fixtures/first-step.js +28 -0
  174. package/es/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
  175. package/es/atom/wizard-steps/test/fixtures/last-step.js +28 -0
  176. package/es/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
  177. package/es/hoc/animation/test/fixtures.js +15 -0
  178. package/es/hoc/animation/test/fixtures.js.map +1 -0
  179. package/es/hoc/animation-scheduler/test/fixtures.js +15 -0
  180. package/es/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  181. package/es/hoc/swapper/test/fixtures.js +13 -0
  182. package/es/hoc/swapper/test/fixtures.js.map +1 -0
  183. package/es/hoc/transition/test/fixtures.js +13 -0
  184. package/es/hoc/transition/test/fixtures.js.map +1 -0
  185. package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
  186. package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  187. package/es/molecule/answer/test/fixtures.js +35 -0
  188. package/es/molecule/answer/test/fixtures.js.map +1 -0
  189. package/es/molecule/audio/test/fixtures.js +15 -0
  190. package/es/molecule/audio/test/fixtures.js.map +1 -0
  191. package/es/molecule/banner/index.js +46 -0
  192. package/es/molecule/banner/index.js.map +1 -0
  193. package/es/molecule/banner/style.css +63 -0
  194. package/es/molecule/banner/test/fixtures/default.js +11 -0
  195. package/es/molecule/banner/test/fixtures/default.js.map +1 -0
  196. package/es/molecule/banner/test/fixtures/error-banner.js +7 -0
  197. package/es/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  198. package/es/molecule/battle-request/test/fixtures.js +15 -0
  199. package/es/molecule/battle-request/test/fixtures.js.map +1 -0
  200. package/es/molecule/brand-card/test/fixtures.js +15 -0
  201. package/es/molecule/brand-card/test/fixtures.js.map +1 -0
  202. package/es/molecule/brand-card-create/test/fixtures.js +13 -0
  203. package/es/molecule/brand-card-create/test/fixtures.js.map +1 -0
  204. package/es/molecule/brand-create-form/test/fixtures.js +19 -0
  205. package/es/molecule/brand-create-form/test/fixtures.js.map +1 -0
  206. package/es/molecule/brand-download-box/test/fixtures.js +17 -0
  207. package/es/molecule/brand-download-box/test/fixtures.js.map +1 -0
  208. package/es/molecule/brand-form-group/test/fixtures/cm-default.js +51 -0
  209. package/es/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  210. package/es/molecule/brand-form-group/test/fixtures/default.js +12 -3
  211. package/es/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  212. package/es/molecule/brand-form-group/test/fixtures.js +33 -0
  213. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -0
  214. package/es/molecule/brand-tabs/test/fixtures.js +29 -0
  215. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -0
  216. package/es/molecule/brand-upload-box/test/fixtures.js +17 -0
  217. package/es/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  218. package/es/molecule/breadcrumbs/test/fixtures.js +13 -0
  219. package/es/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  220. package/es/molecule/card/index.js +16 -5
  221. package/es/molecule/card/index.js.map +1 -1
  222. package/es/molecule/card/selectable.css +71 -0
  223. package/es/molecule/card/selectable.js +32 -0
  224. package/es/molecule/card/selectable.js.map +1 -0
  225. package/es/molecule/card/test/fixtures/default.js +1 -0
  226. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  227. package/es/molecule/card/test/fixtures/selectable-false.js +16 -0
  228. package/es/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  229. package/es/molecule/card/test/fixtures/selectable-true.js +17 -0
  230. package/es/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  231. package/es/molecule/card/test/fixtures.js +39 -0
  232. package/es/molecule/card/test/fixtures.js.map +1 -0
  233. package/es/molecule/card-content/index.js +13 -3
  234. package/es/molecule/card-content/index.js.map +1 -1
  235. package/es/molecule/card-content/style.css +13 -3
  236. package/es/molecule/card-content/test/fixtures.js +27 -0
  237. package/es/molecule/card-content/test/fixtures.js.map +1 -0
  238. package/es/molecule/card-with-button/test/fixtures.js +17 -0
  239. package/es/molecule/card-with-button/test/fixtures.js.map +1 -0
  240. package/es/molecule/cm-popin/index.js +82 -0
  241. package/es/molecule/cm-popin/index.js.map +1 -0
  242. package/es/molecule/cm-popin/style.css +115 -0
  243. package/es/molecule/cm-popin/test/fixtures/dangerous.js +19 -0
  244. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  245. package/es/molecule/cm-popin/test/fixtures/default.js +19 -0
  246. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  247. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +20 -0
  248. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  249. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  250. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  251. package/es/molecule/cookie-banner/test/fixtures.js +13 -0
  252. package/es/molecule/cookie-banner/test/fixtures.js.map +1 -0
  253. package/es/molecule/coorp-manager-roles/test/fixtures.js +13 -0
  254. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  255. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +15 -0
  256. package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  257. package/es/molecule/dashboard/cards-list/test/fixtures.js +23 -0
  258. package/es/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  259. package/es/molecule/dashboard/news-list/test/fixtures.js +17 -0
  260. package/es/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  261. package/es/molecule/dashboard/start-battle/test/fixtures.js +15 -0
  262. package/es/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  263. package/es/molecule/discipline-cta/test/fixtures.js +15 -0
  264. package/es/molecule/discipline-cta/test/fixtures.js.map +1 -0
  265. package/es/molecule/discipline-header/test/fixtures.js +27 -0
  266. package/es/molecule/discipline-header/test/fixtures.js.map +1 -0
  267. package/es/molecule/discipline-partners/index.js +5 -2
  268. package/es/molecule/discipline-partners/index.js.map +1 -1
  269. package/es/molecule/discipline-partners/test/fixtures.js +21 -0
  270. package/es/molecule/discipline-partners/test/fixtures.js.map +1 -0
  271. package/es/molecule/discipline-scope/test/fixtures.js +27 -0
  272. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -0
  273. package/es/molecule/drag-and-drop/test/fixtures.js +25 -0
  274. package/es/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  275. package/es/molecule/external-content-button/test/fixtures.js +19 -0
  276. package/es/molecule/external-content-button/test/fixtures.js.map +1 -0
  277. package/es/molecule/external-content-viewer/test/fixtures.js +27 -0
  278. package/es/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  279. package/es/molecule/feedback/test/fixtures.js +29 -0
  280. package/es/molecule/feedback/test/fixtures.js.map +1 -0
  281. package/es/molecule/filters/test/fixtures.js +33 -0
  282. package/es/molecule/filters/test/fixtures.js.map +1 -0
  283. package/es/molecule/forum/forum-comment/test/fixtures.js +17 -0
  284. package/es/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  285. package/es/molecule/forum/forum-post/test/fixtures.js +31 -0
  286. package/es/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  287. package/es/molecule/forum/forum-thread/test/fixtures.js +17 -0
  288. package/es/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  289. package/es/molecule/hero/test/fixtures.js +15 -0
  290. package/es/molecule/hero/test/fixtures.js.map +1 -0
  291. package/es/molecule/login-alert/test/fixtures.js +13 -0
  292. package/es/molecule/login-alert/test/fixtures.js.map +1 -0
  293. package/es/molecule/menu-list/test/fixtures.js +13 -0
  294. package/es/molecule/menu-list/test/fixtures.js.map +1 -0
  295. package/es/molecule/message-popin/test/fixtures.js +13 -0
  296. package/es/molecule/message-popin/test/fixtures.js.map +1 -0
  297. package/es/molecule/modal/test/fixtures.js +13 -0
  298. package/es/molecule/modal/test/fixtures.js.map +1 -0
  299. package/es/molecule/module-bubble/test/fixtures.js +17 -0
  300. package/es/molecule/module-bubble/test/fixtures.js.map +1 -0
  301. package/es/molecule/module-card/test/fixtures.js +17 -0
  302. package/es/molecule/module-card/test/fixtures.js.map +1 -0
  303. package/es/molecule/news/test/fixtures.js +23 -0
  304. package/es/molecule/news/test/fixtures.js.map +1 -0
  305. package/es/molecule/notification-banner/test/fixtures.js +17 -0
  306. package/es/molecule/notification-banner/test/fixtures.js.map +1 -0
  307. package/es/molecule/pagination/test/fixtures.js +15 -0
  308. package/es/molecule/pagination/test/fixtures.js.map +1 -0
  309. package/es/molecule/payment-form/test/fixtures.js +17 -0
  310. package/es/molecule/payment-form/test/fixtures.js.map +1 -0
  311. package/es/molecule/pdf/test/fixtures.js +13 -0
  312. package/es/molecule/pdf/test/fixtures.js.map +1 -0
  313. package/es/molecule/popin/test/fixtures.js +21 -0
  314. package/es/molecule/popin/test/fixtures.js.map +1 -0
  315. package/es/molecule/product-card/test/fixtures.js +13 -0
  316. package/es/molecule/product-card/test/fixtures.js.map +1 -0
  317. package/es/molecule/progress-bar/test/fixtures.js +15 -0
  318. package/es/molecule/progress-bar/test/fixtures.js.map +1 -0
  319. package/es/molecule/questions/drop-down/test/fixtures.js +15 -0
  320. package/es/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  321. package/es/molecule/questions/free-text/test/fixtures.js +15 -0
  322. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -0
  323. package/es/molecule/questions/qcm/test/fixtures.js +19 -0
  324. package/es/molecule/questions/qcm/test/fixtures.js.map +1 -0
  325. package/es/molecule/questions/qcm-drag/test/fixtures.js +15 -0
  326. package/es/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  327. package/es/molecule/questions/qcm-graphic/test/fixtures.js +15 -0
  328. package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  329. package/es/molecule/questions/question-range/test/fixtures.js +13 -0
  330. package/es/molecule/questions/question-range/test/fixtures.js.map +1 -0
  331. package/es/molecule/questions/template/test/fixtures.js +15 -0
  332. package/es/molecule/questions/template/test/fixtures.js.map +1 -0
  333. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  334. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  335. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  336. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  337. package/es/molecule/resource-player/test/fixtures.js +25 -0
  338. package/es/molecule/resource-player/test/fixtures.js.map +1 -0
  339. package/es/molecule/scope-content/test/fixtures.js +27 -0
  340. package/es/molecule/scope-content/test/fixtures.js.map +1 -0
  341. package/es/molecule/scope-tabs/test/fixtures.js +17 -0
  342. package/es/molecule/scope-tabs/test/fixtures.js.map +1 -0
  343. package/es/molecule/search/test/fixtures.js +15 -0
  344. package/es/molecule/search/test/fixtures.js.map +1 -0
  345. package/es/molecule/search-form/index.js +1 -1
  346. package/es/molecule/search-form/index.js.map +1 -1
  347. package/es/molecule/search-form/test/fixtures.js +13 -0
  348. package/es/molecule/search-form/test/fixtures.js.map +1 -0
  349. package/es/molecule/select-multiple/test/fixtures.js +23 -0
  350. package/es/molecule/select-multiple/test/fixtures.js.map +1 -0
  351. package/es/molecule/setup-cohort-item/test/fixtures.js +19 -0
  352. package/es/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  353. package/es/molecule/setup-section/test/fixtures.js +25 -0
  354. package/es/molecule/setup-section/test/fixtures.js.map +1 -0
  355. package/es/molecule/setup-sections/test/fixtures.js +19 -0
  356. package/es/molecule/setup-sections/test/fixtures.js.map +1 -0
  357. package/es/molecule/setup-slide/test/fixtures.js +23 -0
  358. package/es/molecule/setup-slide/test/fixtures.js.map +1 -0
  359. package/es/molecule/setup-slider/test/fixtures.js +15 -0
  360. package/es/molecule/setup-slider/test/fixtures.js.map +1 -0
  361. package/es/molecule/share/test/fixtures.js +13 -0
  362. package/es/molecule/share/test/fixtures.js.map +1 -0
  363. package/es/molecule/ssmenu-list/test/fixtures.js +19 -0
  364. package/es/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  365. package/es/molecule/subscription-freemium/test/fixtures.js +13 -0
  366. package/es/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  367. package/es/molecule/subscription-premium/test/fixtures.js +15 -0
  368. package/es/molecule/subscription-premium/test/fixtures.js.map +1 -0
  369. package/es/molecule/table/test/fixtures.js +19 -0
  370. package/es/molecule/table/test/fixtures.js.map +1 -0
  371. package/es/molecule/teams-popin/test/fixtures.js +29 -0
  372. package/es/molecule/teams-popin/test/fixtures.js.map +1 -0
  373. package/es/molecule/theme-image/test/fixtures.js +13 -0
  374. package/es/molecule/theme-image/test/fixtures.js.map +1 -0
  375. package/es/molecule/titled-checkbox/test/fixtures.js +17 -0
  376. package/es/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  377. package/es/molecule/unsubscribe/test/fixtures.js +15 -0
  378. package/es/molecule/unsubscribe/test/fixtures.js.map +1 -0
  379. package/es/molecule/vertical-tabs/index.js +51 -0
  380. package/es/molecule/vertical-tabs/index.js.map +1 -0
  381. package/es/molecule/vertical-tabs/style.css +69 -0
  382. package/es/molecule/vertical-tabs/test/fixtures/default.js +41 -0
  383. package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
  384. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +81 -0
  385. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
  386. package/es/molecule/video-iframe/test/fixtures.js +25 -0
  387. package/es/molecule/video-iframe/test/fixtures.js.map +1 -0
  388. package/es/molecule/video-player/test/fixtures.js +29 -0
  389. package/es/molecule/video-player/test/fixtures.js.map +1 -0
  390. package/es/molecule/wizard-summary/index.js +195 -0
  391. package/es/molecule/wizard-summary/index.js.map +1 -0
  392. package/es/molecule/wizard-summary/style.css +230 -0
  393. package/es/molecule/wizard-summary/test/fixtures/default.js +124 -0
  394. package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  395. package/es/molecule/wizard-summary/test/fixtures/one-section.js +23 -0
  396. package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  397. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +118 -0
  398. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  399. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +42 -0
  400. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  401. package/es/molecule/wizard-summary/test/fixtures/two-sections.js +35 -0
  402. package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  403. package/es/organism/accordion/container/test/fixtures.js +17 -0
  404. package/es/organism/accordion/container/test/fixtures.js.map +1 -0
  405. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
  406. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  407. package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
  408. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  409. package/es/organism/accordion/part/test/fixtures.js +15 -0
  410. package/es/organism/accordion/part/test/fixtures.js.map +1 -0
  411. package/es/organism/accordion/toggler/test/fixtures.js +17 -0
  412. package/es/organism/accordion/toggler/test/fixtures.js.map +1 -0
  413. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  414. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  415. package/es/organism/brand-dashboard/test/fixtures.js +15 -0
  416. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
  417. package/es/organism/brand-form/test/fixtures.js +31 -0
  418. package/es/organism/brand-form/test/fixtures.js.map +1 -0
  419. package/es/organism/brand-table/index.js +1 -1
  420. package/es/organism/brand-table/index.js.map +1 -1
  421. package/es/organism/brand-table/test/fixtures.js +19 -0
  422. package/es/organism/brand-table/test/fixtures.js.map +1 -0
  423. package/es/organism/brand-upload/test/fixtures.js +15 -0
  424. package/es/organism/brand-upload/test/fixtures.js.map +1 -0
  425. package/es/organism/cards-grid/test/fixtures.js +19 -0
  426. package/es/organism/cards-grid/test/fixtures.js.map +1 -0
  427. package/es/organism/cart/test/fixtures.js +13 -0
  428. package/es/organism/cart/test/fixtures.js.map +1 -0
  429. package/es/organism/discussion/test/fixtures.js +19 -0
  430. package/es/organism/discussion/test/fixtures.js.map +1 -0
  431. package/es/organism/get-the-app/test/fixtures.js +13 -0
  432. package/es/organism/get-the-app/test/fixtures.js.map +1 -0
  433. package/es/organism/grid-list/test/fixtures.js +13 -0
  434. package/es/organism/grid-list/test/fixtures.js.map +1 -0
  435. package/es/organism/header/test/fixtures.js +13 -0
  436. package/es/organism/header/test/fixtures.js.map +1 -0
  437. package/es/organism/hero/test/fixtures.js +17 -0
  438. package/es/organism/hero/test/fixtures.js.map +1 -0
  439. package/es/organism/mooc/image-slider/test/fixtures.js +15 -0
  440. package/es/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  441. package/es/organism/mooc-footer/test/fixtures.js +23 -0
  442. package/es/organism/mooc-footer/test/fixtures.js.map +1 -0
  443. package/es/organism/mooc-header/index.js +1 -1
  444. package/es/organism/mooc-header/index.js.map +1 -1
  445. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  446. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  447. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  448. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  449. package/es/organism/mooc-header/test/fixtures.js +31 -0
  450. package/es/organism/mooc-header/test/fixtures.js.map +1 -0
  451. package/es/organism/popin/test/fixtures.js +13 -0
  452. package/es/organism/popin/test/fixtures.js.map +1 -0
  453. package/es/organism/resource-browser/test/fixtures.js +37 -0
  454. package/es/organism/resource-browser/test/fixtures.js.map +1 -0
  455. package/es/organism/settings/test/fixtures.js +19 -0
  456. package/es/organism/settings/test/fixtures.js.map +1 -0
  457. package/es/organism/setup-header/test/fixtures.js +15 -0
  458. package/es/organism/setup-header/test/fixtures.js.map +1 -0
  459. package/es/organism/sidebar/test/fixtures.js +23 -0
  460. package/es/organism/sidebar/test/fixtures.js.map +1 -0
  461. package/es/organism/slider/test/fixtures.js +15 -0
  462. package/es/organism/slider/test/fixtures.js.map +1 -0
  463. package/es/organism/user-preferences/style.css +1 -0
  464. package/es/organism/user-preferences/test/fixtures.js +13 -0
  465. package/es/organism/user-preferences/test/fixtures.js.map +1 -0
  466. package/es/template/activity/test/fixtures.js +21 -0
  467. package/es/template/activity/test/fixtures.js.map +1 -0
  468. package/es/template/app-player/loading/test/fixtures.js +13 -0
  469. package/es/template/app-player/loading/test/fixtures.js.map +1 -0
  470. package/es/template/app-player/player/slides/footer/test/fixtures.js +29 -0
  471. package/es/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  472. package/es/template/app-player/player/slides/header/test/fixtures.js +23 -0
  473. package/es/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  474. package/es/template/app-player/player/slides/test/fixtures.js +79 -0
  475. package/es/template/app-player/player/slides/test/fixtures.js.map +1 -0
  476. package/es/template/app-player/player/test/fixtures.js +55 -0
  477. package/es/template/app-player/player/test/fixtures.js.map +1 -0
  478. package/es/template/app-player/popin-correction/test/fixtures.js +47 -0
  479. package/es/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  480. package/es/template/app-player/popin-end/test/fixtures.js +51 -0
  481. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -0
  482. package/es/template/app-player/popin-header/test/fixtures.js +29 -0
  483. package/es/template/app-player/popin-header/test/fixtures.js.map +1 -0
  484. package/es/template/back-office/brand-create/test/fixtures.js +19 -0
  485. package/es/template/back-office/brand-create/test/fixtures.js.map +1 -0
  486. package/es/template/back-office/brand-list/index.js +6 -2
  487. package/es/template/back-office/brand-list/index.js.map +1 -1
  488. package/es/template/back-office/brand-list/style.css +1 -0
  489. package/es/template/back-office/brand-list/test/fixtures.js +17 -0
  490. package/es/template/back-office/brand-list/test/fixtures.js.map +1 -0
  491. package/es/template/back-office/brand-update/test/fixtures.js +67 -0
  492. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -0
  493. package/es/template/back-office/dashboard-preview/test/fixtures.js +23 -0
  494. package/es/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  495. package/es/template/battle-requests/test/fixtures.js +13 -0
  496. package/es/template/battle-requests/test/fixtures.js.map +1 -0
  497. package/es/template/cockpit/jw-uploader/test/fixtures.js +13 -0
  498. package/es/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  499. package/es/template/common/authors/test/fixtures.js +15 -0
  500. package/es/template/common/authors/test/fixtures.js.map +1 -0
  501. package/es/template/common/coorp-header/test/fixtures.js +15 -0
  502. package/es/template/common/coorp-header/test/fixtures.js.map +1 -0
  503. package/es/template/common/dashboard/test/fixtures.js +17 -0
  504. package/es/template/common/dashboard/test/fixtures.js.map +1 -0
  505. package/es/template/common/discipline/test/fixtures.js +47 -0
  506. package/es/template/common/discipline/test/fixtures.js.map +1 -0
  507. package/es/template/common/search-page/test/fixtures.js +17 -0
  508. package/es/template/common/search-page/test/fixtures.js.map +1 -0
  509. package/es/template/external-course/test/fixtures.js +31 -0
  510. package/es/template/external-course/test/fixtures.js.map +1 -0
  511. package/es/template/teams-dashboard/test/fixtures.js +17 -0
  512. package/es/template/teams-dashboard/test/fixtures.js.map +1 -0
  513. package/es/variables/colors.css +18 -2
  514. package/lib/atom/autocomplete/test/fixtures.js +31 -0
  515. package/lib/atom/autocomplete/test/fixtures.js.map +1 -0
  516. package/lib/atom/avatar/test/fixtures.js +22 -0
  517. package/lib/atom/avatar/test/fixtures.js.map +1 -0
  518. package/lib/atom/button/index.js +3 -1
  519. package/lib/atom/button/index.js.map +1 -1
  520. package/lib/atom/button/test/fixtures.js +43 -0
  521. package/lib/atom/button/test/fixtures.js.map +1 -0
  522. package/lib/atom/button-link/index.js +123 -0
  523. package/lib/atom/button-link/index.js.map +1 -0
  524. package/lib/atom/button-link/style.css +97 -0
  525. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js +15 -0
  526. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  527. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js +19 -0
  528. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  529. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js +15 -0
  530. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  531. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +16 -0
  532. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  533. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js +19 -0
  534. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  535. package/lib/atom/button-link/test/fixtures/icon-button.js +18 -0
  536. package/lib/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  537. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +22 -0
  538. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  539. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js +25 -0
  540. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  541. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js +21 -0
  542. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  543. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +22 -0
  544. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  545. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js +18 -0
  546. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  547. package/lib/atom/catalog-section/test/fixtures.js +25 -0
  548. package/lib/atom/catalog-section/test/fixtures.js.map +1 -0
  549. package/lib/atom/centered-text/test/fixtures.js +22 -0
  550. package/lib/atom/centered-text/test/fixtures.js.map +1 -0
  551. package/lib/atom/checkbox/test/fixtures.js +31 -0
  552. package/lib/atom/checkbox/test/fixtures.js.map +1 -0
  553. package/lib/atom/chips/index.js +52 -0
  554. package/lib/atom/chips/index.js.map +1 -0
  555. package/lib/atom/chips/style.css +66 -0
  556. package/lib/atom/chips/test/fixtures/default.js +14 -0
  557. package/lib/atom/chips/test/fixtures/default.js.map +1 -0
  558. package/lib/atom/chips/test/fixtures/non-selected.js +14 -0
  559. package/lib/atom/chips/test/fixtures/non-selected.js.map +1 -0
  560. package/lib/atom/clue/test/fixtures.js +28 -0
  561. package/lib/atom/clue/test/fixtures.js.map +1 -0
  562. package/lib/atom/content-badge/index.js +32 -0
  563. package/lib/atom/content-badge/index.js.map +1 -0
  564. package/lib/atom/content-badge/style.css +59 -0
  565. package/lib/atom/content-badge/test/fixtures/advanced.js +12 -0
  566. package/lib/atom/content-badge/test/fixtures/advanced.js.map +1 -0
  567. package/lib/atom/content-badge/test/fixtures/article.js +12 -0
  568. package/lib/atom/content-badge/test/fixtures/article.js.map +1 -0
  569. package/lib/atom/content-badge/test/fixtures/chapter.js +12 -0
  570. package/lib/atom/content-badge/test/fixtures/chapter.js.map +1 -0
  571. package/lib/atom/content-badge/test/fixtures/coach.js +12 -0
  572. package/lib/atom/content-badge/test/fixtures/coach.js.map +1 -0
  573. package/lib/atom/content-badge/test/fixtures/default.js +12 -0
  574. package/lib/atom/content-badge/test/fixtures/default.js.map +1 -0
  575. package/lib/atom/content-badge/test/fixtures/podcast.js +12 -0
  576. package/lib/atom/content-badge/test/fixtures/podcast.js.map +1 -0
  577. package/lib/atom/content-badge/test/fixtures/scorm.js +12 -0
  578. package/lib/atom/content-badge/test/fixtures/scorm.js.map +1 -0
  579. package/lib/atom/content-badge/test/fixtures/video.js +12 -0
  580. package/lib/atom/content-badge/test/fixtures/video.js.map +1 -0
  581. package/lib/atom/cta/test/fixtures.js +58 -0
  582. package/lib/atom/cta/test/fixtures.js.map +1 -0
  583. package/lib/atom/difficulty-level/test/fixtures.js +31 -0
  584. package/lib/atom/difficulty-level/test/fixtures.js.map +1 -0
  585. package/lib/atom/drag-and-drop/test/fixtures.js +37 -0
  586. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -0
  587. package/lib/atom/image-upload/test/fixtures.js +46 -0
  588. package/lib/atom/image-upload/test/fixtures.js.map +1 -0
  589. package/lib/atom/input-checkbox/test/fixtures.js +40 -0
  590. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -0
  591. package/lib/atom/input-color/test/fixtures.js +31 -0
  592. package/lib/atom/input-color/test/fixtures.js.map +1 -0
  593. package/lib/atom/input-doublestep/test/fixtures.js +34 -0
  594. package/lib/atom/input-doublestep/test/fixtures.js.map +1 -0
  595. package/lib/atom/input-html/test/fixtures.js +28 -0
  596. package/lib/atom/input-html/test/fixtures.js.map +1 -0
  597. package/lib/atom/input-readonly/test/fixtures.js +22 -0
  598. package/lib/atom/input-readonly/test/fixtures.js.map +1 -0
  599. package/lib/{molecule/search → atom/input-search}/index.js +29 -18
  600. package/lib/atom/input-search/index.js.map +1 -0
  601. package/lib/atom/input-search/style.css +201 -0
  602. package/lib/{molecule/search → atom/input-search}/test/change.js +0 -0
  603. package/lib/atom/input-search/test/change.js.map +1 -0
  604. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js +19 -0
  605. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  606. package/lib/atom/input-search/test/fixtures/coorpmanager.js +18 -0
  607. package/lib/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  608. package/lib/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  609. package/lib/atom/input-search/test/fixtures/default.js.map +1 -0
  610. package/lib/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  611. package/lib/atom/input-search/test/fixtures/with-value.js.map +1 -0
  612. package/lib/atom/input-switch/test/fixtures.js +37 -0
  613. package/lib/atom/input-switch/test/fixtures.js.map +1 -0
  614. package/lib/atom/input-text/index.js +36 -6
  615. package/lib/atom/input-text/index.js.map +1 -1
  616. package/lib/atom/input-text/style.css +229 -1
  617. package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
  618. package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  619. package/lib/atom/input-text/test/fixtures.js +40 -0
  620. package/lib/atom/input-text/test/fixtures.js.map +1 -0
  621. package/lib/atom/input-textarea/index.js +38 -11
  622. package/lib/atom/input-textarea/index.js.map +1 -1
  623. package/lib/atom/input-textarea/style.css +265 -0
  624. package/lib/atom/input-textarea/test/fixtures/cm-default.js +22 -0
  625. package/lib/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  626. package/lib/atom/input-textarea/test/fixtures/cm-empty.js +22 -0
  627. package/lib/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  628. package/lib/atom/input-textarea/test/fixtures.js +28 -0
  629. package/lib/atom/input-textarea/test/fixtures.js.map +1 -0
  630. package/lib/atom/label/test/fixtures.js +25 -0
  631. package/lib/atom/label/test/fixtures.js.map +1 -0
  632. package/lib/atom/life/test/fixtures.js +40 -0
  633. package/lib/atom/life/test/fixtures.js.map +1 -0
  634. package/lib/atom/link/test/fixtures.js +28 -0
  635. package/lib/atom/link/test/fixtures.js.map +1 -0
  636. package/lib/atom/loader/test/fixtures.js +22 -0
  637. package/lib/atom/loader/test/fixtures.js.map +1 -0
  638. package/lib/atom/notification/test/fixtures.js +28 -0
  639. package/lib/atom/notification/test/fixtures.js.map +1 -0
  640. package/lib/atom/picture/test/fixtures.js +31 -0
  641. package/lib/atom/picture/test/fixtures.js.map +1 -0
  642. package/lib/atom/picture-background/test/fixtures.js +31 -0
  643. package/lib/atom/picture-background/test/fixtures.js.map +1 -0
  644. package/lib/atom/promo-code/test/fixtures.js +28 -0
  645. package/lib/atom/promo-code/test/fixtures.js.map +1 -0
  646. package/lib/atom/provider/test/fixtures.js +22 -0
  647. package/lib/atom/provider/test/fixtures.js.map +1 -0
  648. package/lib/atom/radio-group/test/fixtures.js +28 -0
  649. package/lib/atom/radio-group/test/fixtures.js.map +1 -0
  650. package/lib/atom/range/test/fixtures.js +25 -0
  651. package/lib/atom/range/test/fixtures.js.map +1 -0
  652. package/lib/atom/resource-miniature/test/fixtures.js +34 -0
  653. package/lib/atom/resource-miniature/test/fixtures.js.map +1 -0
  654. package/lib/atom/select/test/fixtures.js +67 -0
  655. package/lib/atom/select/test/fixtures.js.map +1 -0
  656. package/lib/atom/slide/test/fixtures.js +34 -0
  657. package/lib/atom/slide/test/fixtures.js.map +1 -0
  658. package/lib/atom/social-link/test/fixtures.js +28 -0
  659. package/lib/atom/social-link/test/fixtures.js.map +1 -0
  660. package/lib/atom/spinner/test/fixtures.js +22 -0
  661. package/lib/atom/spinner/test/fixtures.js.map +1 -0
  662. package/lib/atom/tab/test/fixtures.js +22 -0
  663. package/lib/atom/tab/test/fixtures.js.map +1 -0
  664. package/lib/atom/tab-content/test/fixtures.js +25 -0
  665. package/lib/atom/tab-content/test/fixtures.js.map +1 -0
  666. package/lib/atom/tag/index.js +39 -0
  667. package/lib/atom/tag/index.js.map +1 -0
  668. package/lib/atom/tag/style.css +38 -0
  669. package/lib/atom/tag/test/fixtures/archived.js +12 -0
  670. package/lib/atom/tag/test/fixtures/archived.js.map +1 -0
  671. package/lib/atom/tag/test/fixtures/default.js +12 -0
  672. package/lib/atom/tag/test/fixtures/default.js.map +1 -0
  673. package/lib/atom/tag/test/fixtures/published.js +12 -0
  674. package/lib/atom/tag/test/fixtures/published.js.map +1 -0
  675. package/lib/atom/tag/test/fixtures/revision.js +12 -0
  676. package/lib/atom/tag/test/fixtures/revision.js.map +1 -0
  677. package/lib/atom/title/test/fixtures.js +28 -0
  678. package/lib/atom/title/test/fixtures.js.map +1 -0
  679. package/lib/atom/video-upload/test/fixtures.js +34 -0
  680. package/lib/atom/video-upload/test/fixtures.js.map +1 -0
  681. package/lib/atom/wizard-steps/index.js +49 -0
  682. package/lib/atom/wizard-steps/index.js.map +1 -0
  683. package/lib/atom/wizard-steps/style.css +150 -0
  684. package/lib/atom/wizard-steps/test/fixtures/default.js +33 -0
  685. package/lib/atom/wizard-steps/test/fixtures/default.js.map +1 -0
  686. package/lib/atom/wizard-steps/test/fixtures/first-step.js +33 -0
  687. package/lib/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
  688. package/lib/atom/wizard-steps/test/fixtures/last-step.js +33 -0
  689. package/lib/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
  690. package/lib/hoc/animation/test/fixtures.js +25 -0
  691. package/lib/hoc/animation/test/fixtures.js.map +1 -0
  692. package/lib/hoc/animation-scheduler/test/fixtures.js +25 -0
  693. package/lib/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  694. package/lib/hoc/swapper/test/fixtures.js +22 -0
  695. package/lib/hoc/swapper/test/fixtures.js.map +1 -0
  696. package/lib/hoc/transition/test/fixtures.js +22 -0
  697. package/lib/hoc/transition/test/fixtures.js.map +1 -0
  698. package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
  699. package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  700. package/lib/molecule/answer/test/fixtures.js +55 -0
  701. package/lib/molecule/answer/test/fixtures.js.map +1 -0
  702. package/lib/molecule/audio/test/fixtures.js +25 -0
  703. package/lib/molecule/audio/test/fixtures.js.map +1 -0
  704. package/lib/molecule/banner/index.js +59 -0
  705. package/lib/molecule/banner/index.js.map +1 -0
  706. package/lib/molecule/banner/style.css +63 -0
  707. package/lib/molecule/banner/test/fixtures/default.js +16 -0
  708. package/lib/molecule/banner/test/fixtures/default.js.map +1 -0
  709. package/lib/molecule/banner/test/fixtures/error-banner.js +12 -0
  710. package/lib/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  711. package/lib/molecule/battle-request/test/fixtures.js +25 -0
  712. package/lib/molecule/battle-request/test/fixtures.js.map +1 -0
  713. package/lib/molecule/brand-card/test/fixtures.js +25 -0
  714. package/lib/molecule/brand-card/test/fixtures.js.map +1 -0
  715. package/lib/molecule/brand-card-create/test/fixtures.js +22 -0
  716. package/lib/molecule/brand-card-create/test/fixtures.js.map +1 -0
  717. package/lib/molecule/brand-create-form/test/fixtures.js +31 -0
  718. package/lib/molecule/brand-create-form/test/fixtures.js.map +1 -0
  719. package/lib/molecule/brand-download-box/test/fixtures.js +28 -0
  720. package/lib/molecule/brand-download-box/test/fixtures.js.map +1 -0
  721. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js +56 -0
  722. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  723. package/lib/molecule/brand-form-group/test/fixtures/default.js +12 -3
  724. package/lib/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  725. package/lib/molecule/brand-form-group/test/fixtures.js +52 -0
  726. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -0
  727. package/lib/molecule/brand-tabs/test/fixtures.js +46 -0
  728. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -0
  729. package/lib/molecule/brand-upload-box/test/fixtures.js +28 -0
  730. package/lib/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  731. package/lib/molecule/breadcrumbs/test/fixtures.js +22 -0
  732. package/lib/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  733. package/lib/molecule/card/index.js +17 -5
  734. package/lib/molecule/card/index.js.map +1 -1
  735. package/lib/molecule/card/selectable.css +71 -0
  736. package/lib/molecule/card/selectable.js +45 -0
  737. package/lib/molecule/card/selectable.js.map +1 -0
  738. package/lib/molecule/card/test/fixtures/default.js +1 -0
  739. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  740. package/lib/molecule/card/test/fixtures/selectable-false.js +26 -0
  741. package/lib/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  742. package/lib/molecule/card/test/fixtures/selectable-true.js +27 -0
  743. package/lib/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  744. package/lib/molecule/card/test/fixtures.js +61 -0
  745. package/lib/molecule/card/test/fixtures.js.map +1 -0
  746. package/lib/molecule/card-content/index.js +14 -3
  747. package/lib/molecule/card-content/index.js.map +1 -1
  748. package/lib/molecule/card-content/style.css +13 -3
  749. package/lib/molecule/card-content/test/fixtures.js +43 -0
  750. package/lib/molecule/card-content/test/fixtures.js.map +1 -0
  751. package/lib/molecule/card-with-button/test/fixtures.js +28 -0
  752. package/lib/molecule/card-with-button/test/fixtures.js.map +1 -0
  753. package/lib/molecule/cm-popin/index.js +94 -0
  754. package/lib/molecule/cm-popin/index.js.map +1 -0
  755. package/lib/molecule/cm-popin/style.css +115 -0
  756. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +24 -0
  757. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  758. package/lib/molecule/cm-popin/test/fixtures/default.js +24 -0
  759. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  760. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +25 -0
  761. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  762. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  763. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  764. package/lib/molecule/cookie-banner/test/fixtures.js +22 -0
  765. package/lib/molecule/cookie-banner/test/fixtures.js.map +1 -0
  766. package/lib/molecule/coorp-manager-roles/test/fixtures.js +22 -0
  767. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  768. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +25 -0
  769. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  770. package/lib/molecule/dashboard/cards-list/test/fixtures.js +37 -0
  771. package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  772. package/lib/molecule/dashboard/news-list/test/fixtures.js +28 -0
  773. package/lib/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  774. package/lib/molecule/dashboard/start-battle/test/fixtures.js +25 -0
  775. package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  776. package/lib/molecule/discipline-cta/test/fixtures.js +25 -0
  777. package/lib/molecule/discipline-cta/test/fixtures.js.map +1 -0
  778. package/lib/molecule/discipline-header/test/fixtures.js +43 -0
  779. package/lib/molecule/discipline-header/test/fixtures.js.map +1 -0
  780. package/lib/molecule/discipline-partners/index.js +5 -2
  781. package/lib/molecule/discipline-partners/index.js.map +1 -1
  782. package/lib/molecule/discipline-partners/test/fixtures.js +34 -0
  783. package/lib/molecule/discipline-partners/test/fixtures.js.map +1 -0
  784. package/lib/molecule/discipline-scope/test/fixtures.js +43 -0
  785. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -0
  786. package/lib/molecule/drag-and-drop/test/fixtures.js +40 -0
  787. package/lib/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  788. package/lib/molecule/external-content-button/test/fixtures.js +31 -0
  789. package/lib/molecule/external-content-button/test/fixtures.js.map +1 -0
  790. package/lib/molecule/external-content-viewer/test/fixtures.js +43 -0
  791. package/lib/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  792. package/lib/molecule/feedback/test/fixtures.js +46 -0
  793. package/lib/molecule/feedback/test/fixtures.js.map +1 -0
  794. package/lib/molecule/filters/test/fixtures.js +52 -0
  795. package/lib/molecule/filters/test/fixtures.js.map +1 -0
  796. package/lib/molecule/forum/forum-comment/test/fixtures.js +28 -0
  797. package/lib/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  798. package/lib/molecule/forum/forum-post/test/fixtures.js +49 -0
  799. package/lib/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  800. package/lib/molecule/forum/forum-thread/test/fixtures.js +28 -0
  801. package/lib/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  802. package/lib/molecule/hero/test/fixtures.js +25 -0
  803. package/lib/molecule/hero/test/fixtures.js.map +1 -0
  804. package/lib/molecule/login-alert/test/fixtures.js +22 -0
  805. package/lib/molecule/login-alert/test/fixtures.js.map +1 -0
  806. package/lib/molecule/menu-list/test/fixtures.js +22 -0
  807. package/lib/molecule/menu-list/test/fixtures.js.map +1 -0
  808. package/lib/molecule/message-popin/test/fixtures.js +22 -0
  809. package/lib/molecule/message-popin/test/fixtures.js.map +1 -0
  810. package/lib/molecule/modal/test/fixtures.js +22 -0
  811. package/lib/molecule/modal/test/fixtures.js.map +1 -0
  812. package/lib/molecule/module-bubble/test/fixtures.js +28 -0
  813. package/lib/molecule/module-bubble/test/fixtures.js.map +1 -0
  814. package/lib/molecule/module-card/test/fixtures.js +28 -0
  815. package/lib/molecule/module-card/test/fixtures.js.map +1 -0
  816. package/lib/molecule/news/test/fixtures.js +37 -0
  817. package/lib/molecule/news/test/fixtures.js.map +1 -0
  818. package/lib/molecule/notification-banner/test/fixtures.js +28 -0
  819. package/lib/molecule/notification-banner/test/fixtures.js.map +1 -0
  820. package/lib/molecule/pagination/test/fixtures.js +25 -0
  821. package/lib/molecule/pagination/test/fixtures.js.map +1 -0
  822. package/lib/molecule/payment-form/test/fixtures.js +28 -0
  823. package/lib/molecule/payment-form/test/fixtures.js.map +1 -0
  824. package/lib/molecule/pdf/test/fixtures.js +22 -0
  825. package/lib/molecule/pdf/test/fixtures.js.map +1 -0
  826. package/lib/molecule/popin/test/fixtures.js +34 -0
  827. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  828. package/lib/molecule/product-card/test/fixtures.js +22 -0
  829. package/lib/molecule/product-card/test/fixtures.js.map +1 -0
  830. package/lib/molecule/progress-bar/test/fixtures.js +25 -0
  831. package/lib/molecule/progress-bar/test/fixtures.js.map +1 -0
  832. package/lib/molecule/questions/drop-down/test/fixtures.js +25 -0
  833. package/lib/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  834. package/lib/molecule/questions/free-text/test/fixtures.js +25 -0
  835. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -0
  836. package/lib/molecule/questions/qcm/test/fixtures.js +31 -0
  837. package/lib/molecule/questions/qcm/test/fixtures.js.map +1 -0
  838. package/lib/molecule/questions/qcm-drag/test/fixtures.js +25 -0
  839. package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  840. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +25 -0
  841. package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  842. package/lib/molecule/questions/question-range/test/fixtures.js +22 -0
  843. package/lib/molecule/questions/question-range/test/fixtures.js.map +1 -0
  844. package/lib/molecule/questions/template/test/fixtures.js +25 -0
  845. package/lib/molecule/questions/template/test/fixtures.js.map +1 -0
  846. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  847. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  848. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  849. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  850. package/lib/molecule/resource-player/test/fixtures.js +40 -0
  851. package/lib/molecule/resource-player/test/fixtures.js.map +1 -0
  852. package/lib/molecule/scope-content/test/fixtures.js +43 -0
  853. package/lib/molecule/scope-content/test/fixtures.js.map +1 -0
  854. package/lib/molecule/scope-tabs/test/fixtures.js +28 -0
  855. package/lib/molecule/scope-tabs/test/fixtures.js.map +1 -0
  856. package/lib/molecule/search/test/fixtures.js +25 -0
  857. package/lib/molecule/search/test/fixtures.js.map +1 -0
  858. package/lib/molecule/search-form/index.js +3 -3
  859. package/lib/molecule/search-form/index.js.map +1 -1
  860. package/lib/molecule/search-form/test/fixtures.js +22 -0
  861. package/lib/molecule/search-form/test/fixtures.js.map +1 -0
  862. package/lib/molecule/select-multiple/test/fixtures.js +37 -0
  863. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -0
  864. package/lib/molecule/setup-cohort-item/test/fixtures.js +31 -0
  865. package/lib/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  866. package/lib/molecule/setup-section/test/fixtures.js +40 -0
  867. package/lib/molecule/setup-section/test/fixtures.js.map +1 -0
  868. package/lib/molecule/setup-sections/test/fixtures.js +31 -0
  869. package/lib/molecule/setup-sections/test/fixtures.js.map +1 -0
  870. package/lib/molecule/setup-slide/test/fixtures.js +37 -0
  871. package/lib/molecule/setup-slide/test/fixtures.js.map +1 -0
  872. package/lib/molecule/setup-slider/test/fixtures.js +25 -0
  873. package/lib/molecule/setup-slider/test/fixtures.js.map +1 -0
  874. package/lib/molecule/share/test/fixtures.js +22 -0
  875. package/lib/molecule/share/test/fixtures.js.map +1 -0
  876. package/lib/molecule/ssmenu-list/test/fixtures.js +31 -0
  877. package/lib/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  878. package/lib/molecule/subscription-freemium/test/fixtures.js +22 -0
  879. package/lib/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  880. package/lib/molecule/subscription-premium/test/fixtures.js +25 -0
  881. package/lib/molecule/subscription-premium/test/fixtures.js.map +1 -0
  882. package/lib/molecule/table/test/fixtures.js +31 -0
  883. package/lib/molecule/table/test/fixtures.js.map +1 -0
  884. package/lib/molecule/teams-popin/test/fixtures.js +46 -0
  885. package/lib/molecule/teams-popin/test/fixtures.js.map +1 -0
  886. package/lib/molecule/theme-image/test/fixtures.js +22 -0
  887. package/lib/molecule/theme-image/test/fixtures.js.map +1 -0
  888. package/lib/molecule/titled-checkbox/test/fixtures.js +28 -0
  889. package/lib/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  890. package/lib/molecule/unsubscribe/test/fixtures.js +25 -0
  891. package/lib/molecule/unsubscribe/test/fixtures.js.map +1 -0
  892. package/lib/molecule/vertical-tabs/index.js +66 -0
  893. package/lib/molecule/vertical-tabs/index.js.map +1 -0
  894. package/lib/molecule/vertical-tabs/style.css +69 -0
  895. package/lib/molecule/vertical-tabs/test/fixtures/default.js +46 -0
  896. package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
  897. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +86 -0
  898. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
  899. package/lib/molecule/video-iframe/test/fixtures.js +40 -0
  900. package/lib/molecule/video-iframe/test/fixtures.js.map +1 -0
  901. package/lib/molecule/video-player/test/fixtures.js +46 -0
  902. package/lib/molecule/video-player/test/fixtures.js.map +1 -0
  903. package/lib/molecule/wizard-summary/index.js +213 -0
  904. package/lib/molecule/wizard-summary/index.js.map +1 -0
  905. package/lib/molecule/wizard-summary/style.css +230 -0
  906. package/lib/molecule/wizard-summary/test/fixtures/default.js +129 -0
  907. package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  908. package/lib/molecule/wizard-summary/test/fixtures/one-section.js +28 -0
  909. package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  910. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +123 -0
  911. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  912. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +47 -0
  913. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  914. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +40 -0
  915. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  916. package/lib/organism/accordion/container/test/fixtures.js +28 -0
  917. package/lib/organism/accordion/container/test/fixtures.js.map +1 -0
  918. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
  919. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  920. package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
  921. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  922. package/lib/organism/accordion/part/test/fixtures.js +25 -0
  923. package/lib/organism/accordion/part/test/fixtures.js.map +1 -0
  924. package/lib/organism/accordion/toggler/test/fixtures.js +28 -0
  925. package/lib/organism/accordion/toggler/test/fixtures.js.map +1 -0
  926. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  927. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  928. package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
  929. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
  930. package/lib/organism/brand-form/test/fixtures.js +49 -0
  931. package/lib/organism/brand-form/test/fixtures.js.map +1 -0
  932. package/lib/organism/brand-table/index.js +3 -3
  933. package/lib/organism/brand-table/index.js.map +1 -1
  934. package/lib/organism/brand-table/test/fixtures.js +31 -0
  935. package/lib/organism/brand-table/test/fixtures.js.map +1 -0
  936. package/lib/organism/brand-upload/test/fixtures.js +25 -0
  937. package/lib/organism/brand-upload/test/fixtures.js.map +1 -0
  938. package/lib/organism/cards-grid/test/fixtures.js +31 -0
  939. package/lib/organism/cards-grid/test/fixtures.js.map +1 -0
  940. package/lib/organism/cart/test/fixtures.js +22 -0
  941. package/lib/organism/cart/test/fixtures.js.map +1 -0
  942. package/lib/organism/discussion/test/fixtures.js +31 -0
  943. package/lib/organism/discussion/test/fixtures.js.map +1 -0
  944. package/lib/organism/get-the-app/test/fixtures.js +22 -0
  945. package/lib/organism/get-the-app/test/fixtures.js.map +1 -0
  946. package/lib/organism/grid-list/test/fixtures.js +22 -0
  947. package/lib/organism/grid-list/test/fixtures.js.map +1 -0
  948. package/lib/organism/header/test/fixtures.js +22 -0
  949. package/lib/organism/header/test/fixtures.js.map +1 -0
  950. package/lib/organism/hero/test/fixtures.js +28 -0
  951. package/lib/organism/hero/test/fixtures.js.map +1 -0
  952. package/lib/organism/mooc/image-slider/test/fixtures.js +25 -0
  953. package/lib/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  954. package/lib/organism/mooc-footer/test/fixtures.js +37 -0
  955. package/lib/organism/mooc-footer/test/fixtures.js.map +1 -0
  956. package/lib/organism/mooc-header/index.js +2 -2
  957. package/lib/organism/mooc-header/index.js.map +1 -1
  958. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  959. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  960. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  961. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  962. package/lib/organism/mooc-header/test/fixtures.js +49 -0
  963. package/lib/organism/mooc-header/test/fixtures.js.map +1 -0
  964. package/lib/organism/popin/test/fixtures.js +22 -0
  965. package/lib/organism/popin/test/fixtures.js.map +1 -0
  966. package/lib/organism/resource-browser/test/fixtures.js +58 -0
  967. package/lib/organism/resource-browser/test/fixtures.js.map +1 -0
  968. package/lib/organism/settings/test/fixtures.js +31 -0
  969. package/lib/organism/settings/test/fixtures.js.map +1 -0
  970. package/lib/organism/setup-header/test/fixtures.js +25 -0
  971. package/lib/organism/setup-header/test/fixtures.js.map +1 -0
  972. package/lib/organism/sidebar/test/fixtures.js +37 -0
  973. package/lib/organism/sidebar/test/fixtures.js.map +1 -0
  974. package/lib/organism/slider/test/fixtures.js +25 -0
  975. package/lib/organism/slider/test/fixtures.js.map +1 -0
  976. package/lib/organism/user-preferences/style.css +1 -0
  977. package/lib/organism/user-preferences/test/fixtures.js +22 -0
  978. package/lib/organism/user-preferences/test/fixtures.js.map +1 -0
  979. package/lib/template/activity/test/fixtures.js +34 -0
  980. package/lib/template/activity/test/fixtures.js.map +1 -0
  981. package/lib/template/app-player/loading/test/fixtures.js +22 -0
  982. package/lib/template/app-player/loading/test/fixtures.js.map +1 -0
  983. package/lib/template/app-player/player/slides/footer/test/fixtures.js +46 -0
  984. package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  985. package/lib/template/app-player/player/slides/header/test/fixtures.js +37 -0
  986. package/lib/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  987. package/lib/template/app-player/player/slides/test/fixtures.js +121 -0
  988. package/lib/template/app-player/player/slides/test/fixtures.js.map +1 -0
  989. package/lib/template/app-player/player/test/fixtures.js +85 -0
  990. package/lib/template/app-player/player/test/fixtures.js.map +1 -0
  991. package/lib/template/app-player/popin-correction/test/fixtures.js +73 -0
  992. package/lib/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  993. package/lib/template/app-player/popin-end/test/fixtures.js +79 -0
  994. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -0
  995. package/lib/template/app-player/popin-header/test/fixtures.js +46 -0
  996. package/lib/template/app-player/popin-header/test/fixtures.js.map +1 -0
  997. package/lib/template/back-office/brand-create/test/fixtures.js +31 -0
  998. package/lib/template/back-office/brand-create/test/fixtures.js.map +1 -0
  999. package/lib/template/back-office/brand-list/index.js +7 -3
  1000. package/lib/template/back-office/brand-list/index.js.map +1 -1
  1001. package/lib/template/back-office/brand-list/style.css +1 -0
  1002. package/lib/template/back-office/brand-list/test/fixtures.js +28 -0
  1003. package/lib/template/back-office/brand-list/test/fixtures.js.map +1 -0
  1004. package/lib/template/back-office/brand-update/test/fixtures.js +103 -0
  1005. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -0
  1006. package/lib/template/back-office/dashboard-preview/test/fixtures.js +37 -0
  1007. package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  1008. package/lib/template/battle-requests/test/fixtures.js +22 -0
  1009. package/lib/template/battle-requests/test/fixtures.js.map +1 -0
  1010. package/lib/template/cockpit/jw-uploader/test/fixtures.js +22 -0
  1011. package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  1012. package/lib/template/common/authors/test/fixtures.js +25 -0
  1013. package/lib/template/common/authors/test/fixtures.js.map +1 -0
  1014. package/lib/template/common/coorp-header/test/fixtures.js +25 -0
  1015. package/lib/template/common/coorp-header/test/fixtures.js.map +1 -0
  1016. package/lib/template/common/dashboard/test/fixtures.js +28 -0
  1017. package/lib/template/common/dashboard/test/fixtures.js.map +1 -0
  1018. package/lib/template/common/discipline/test/fixtures.js +73 -0
  1019. package/lib/template/common/discipline/test/fixtures.js.map +1 -0
  1020. package/lib/template/common/search-page/test/fixtures.js +28 -0
  1021. package/lib/template/common/search-page/test/fixtures.js.map +1 -0
  1022. package/lib/template/external-course/test/fixtures.js +49 -0
  1023. package/lib/template/external-course/test/fixtures.js.map +1 -0
  1024. package/lib/template/teams-dashboard/test/fixtures.js +28 -0
  1025. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -0
  1026. package/lib/variables/colors.css +18 -2
  1027. package/package.json +3 -3
  1028. package/es/molecule/search/index.js +0 -57
  1029. package/es/molecule/search/index.js.map +0 -1
  1030. package/es/molecule/search/style.css +0 -86
  1031. package/es/molecule/search/test/change.js.map +0 -1
  1032. package/es/molecule/search/test/fixtures/default.js.map +0 -1
  1033. package/es/molecule/search/test/fixtures/with-value.js.map +0 -1
  1034. package/lib/molecule/search/index.js.map +0 -1
  1035. package/lib/molecule/search/style.css +0 -86
  1036. package/lib/molecule/search/test/change.js.map +0 -1
  1037. package/lib/molecule/search/test/fixtures/default.js.map +0 -1
  1038. package/lib/molecule/search/test/fixtures/with-value.js.map +0 -1
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomInputColor from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureEmpty from './fixtures/empty';
7
+ import fixtureError from './fixtures/error';
8
+ import fixtureModified from './fixtures/modified';
9
+ test('Atom › AtomInputColor > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(AtomInputColor.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Atom.AtomInputColor.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Atom › AtomInputColor › Default › should be rendered', renderComponentMacro, AtomInputColor, fixtureDefault);
16
+ test('Atom › AtomInputColor › Empty › should be rendered', renderComponentMacro, AtomInputColor, fixtureEmpty);
17
+ test('Atom › AtomInputColor › Error › should be rendered', renderComponentMacro, AtomInputColor, fixtureError);
18
+ test('Atom › AtomInputColor › Modified › should be rendered', renderComponentMacro, AtomInputColor, fixtureModified);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-color/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputColor","fixtureDefault","fixtureEmpty","fixtureError","fixtureModified","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,cAAP,MAA2B,IAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAP,IAAI,CAAC,qDAAD,EAAwDQ,CAAC,IAAI;AAC/DA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,cAAc,CAACO,SAAhB,EAA2B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,+CAA8CF,GAAI,mEAA3E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,cAA/E,EAA+FC,cAA/F,CAAJ;AACAJ,IAAI,CAAC,oDAAD,EAAuDE,oBAAvD,EAA6EC,cAA7E,EAA6FE,YAA7F,CAAJ;AACAL,IAAI,CAAC,oDAAD,EAAuDE,oBAAvD,EAA6EC,cAA7E,EAA6FG,YAA7F,CAAJ;AACAN,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,cAAhF,EAAgGI,eAAhG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputColor from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\n\ntest('Atom › AtomInputColor > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputColor.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputColor.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputColor › Default › should be rendered', renderComponentMacro, AtomInputColor, fixtureDefault);\ntest('Atom › AtomInputColor › Empty › should be rendered', renderComponentMacro, AtomInputColor, fixtureEmpty);\ntest('Atom › AtomInputColor › Error › should be rendered', renderComponentMacro, AtomInputColor, fixtureError);\ntest('Atom › AtomInputColor › Modified › should be rendered', renderComponentMacro, AtomInputColor, fixtureModified);\n"],"file":"fixtures.js"}
@@ -0,0 +1,21 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomInputDoublestep from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureDisabled from './fixtures/disabled';
7
+ import fixtureInputConfirmDisabled from './fixtures/input-confirm-disabled';
8
+ import fixtureInputConfirmPending from './fixtures/input-confirm-pending';
9
+ import fixtureInputConfirm from './fixtures/input-confirm';
10
+ test('Atom › AtomInputDoublestep > should have valid propTypes', t => {
11
+ t.pass();
12
+ forEach(AtomInputDoublestep.propTypes, (value, key) => {
13
+ t.not(value, undefined, `PropType for "Atom.AtomInputDoublestep.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
+ });
15
+ });
16
+ test('Atom › AtomInputDoublestep › Default › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureDefault);
17
+ test('Atom › AtomInputDoublestep › Disabled › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureDisabled);
18
+ test('Atom › AtomInputDoublestep › InputConfirmDisabled › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureInputConfirmDisabled);
19
+ test('Atom › AtomInputDoublestep › InputConfirmPending › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureInputConfirmPending);
20
+ test('Atom › AtomInputDoublestep › InputConfirm › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureInputConfirm);
21
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-doublestep/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputDoublestep","fixtureDefault","fixtureDisabled","fixtureInputConfirmDisabled","fixtureInputConfirmPending","fixtureInputConfirm","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,mBAAP,MAAgC,IAAhC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,2BAAP,MAAwC,mCAAxC;AACA,OAAOC,0BAAP,MAAuC,kCAAvC;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AAEAR,IAAI,CAAC,0DAAD,EAA6DS,CAAC,IAAI;AACpEA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,mBAAmB,CAACQ,SAArB,EAAgC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACrDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,oDAAmDF,GAAI,mEAAhF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,mBAApF,EAAyGC,cAAzG,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,mBAArF,EAA0GE,eAA1G,CAAJ;AACAL,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,mBAAjG,EAAsHG,2BAAtH,CAAJ;AACAN,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,mBAAhG,EAAqHI,0BAArH,CAAJ;AACAP,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,mBAAzF,EAA8GK,mBAA9G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputDoublestep from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureInputConfirmDisabled from './fixtures/input-confirm-disabled';\nimport fixtureInputConfirmPending from './fixtures/input-confirm-pending';\nimport fixtureInputConfirm from './fixtures/input-confirm';\n\ntest('Atom › AtomInputDoublestep > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputDoublestep.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputDoublestep.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputDoublestep › Default › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureDefault);\ntest('Atom › AtomInputDoublestep › Disabled › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureDisabled);\ntest('Atom › AtomInputDoublestep › InputConfirmDisabled › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureInputConfirmDisabled);\ntest('Atom › AtomInputDoublestep › InputConfirmPending › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureInputConfirmPending);\ntest('Atom › AtomInputDoublestep › InputConfirm › should be rendered', renderComponentMacro, AtomInputDoublestep, fixtureInputConfirm);\n"],"file":"fixtures.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomInputHtml from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureEmpty from './fixtures/empty';
7
+ import fixtureError from './fixtures/error';
8
+ test('Atom › AtomInputHtml > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(AtomInputHtml.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Atom.AtomInputHtml.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Atom › AtomInputHtml › Default › should be rendered', renderComponentMacro, AtomInputHtml, fixtureDefault);
15
+ test('Atom › AtomInputHtml › Empty › should be rendered', renderComponentMacro, AtomInputHtml, fixtureEmpty);
16
+ test('Atom › AtomInputHtml › Error › should be rendered', renderComponentMacro, AtomInputHtml, fixtureError);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-html/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputHtml","fixtureDefault","fixtureEmpty","fixtureError","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,aAAP,MAA0B,IAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAN,IAAI,CAAC,oDAAD,EAAuDO,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,aAAa,CAACM,SAAf,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8CAA6CF,GAAI,mEAA1E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FC,cAA7F,CAAJ;AACAJ,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FE,YAA3F,CAAJ;AACAL,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FG,YAA3F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputHtml from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputHtml > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputHtml.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputHtml.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputHtml › Default › should be rendered', renderComponentMacro, AtomInputHtml, fixtureDefault);\ntest('Atom › AtomInputHtml › Empty › should be rendered', renderComponentMacro, AtomInputHtml, fixtureEmpty);\ntest('Atom › AtomInputHtml › Error › should be rendered', renderComponentMacro, AtomInputHtml, fixtureError);\n"],"file":"fixtures.js"}
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomInputReadonly from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Atom › AtomInputReadonly > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(AtomInputReadonly.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Atom.AtomInputReadonly.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Atom › AtomInputReadonly › Default › should be rendered', renderComponentMacro, AtomInputReadonly, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-readonly/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputReadonly","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,wDAAD,EAA2DK,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,iBAAiB,CAACI,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGC,cAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputReadonly from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Atom › AtomInputReadonly > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputReadonly.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputReadonly.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputReadonly › Default › should be rendered', renderComponentMacro, AtomInputReadonly, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -0,0 +1,65 @@
1
+ import _isEmpty from "lodash/fp/isEmpty";
2
+ import _noop from "lodash/fp/noop";
3
+ import React, { useMemo } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import classnames from 'classnames';
6
+ import { NovaCompositionCoorpacademySearch1 as CMSearchIcon, NovaCompositionCoorpacademySearch as SearchIcon, NovaSolidStatusClose as CloseIcon } from '@coorpacademy/nova-icons';
7
+ import Provider from '../provider';
8
+ import style from './style.css';
9
+
10
+ const Search = props => {
11
+ const {
12
+ value,
13
+ placeholder,
14
+ onChange = _noop,
15
+ onClear = _noop,
16
+ onFocus,
17
+ onBlur,
18
+ theme = 'default'
19
+ } = props;
20
+ const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
21
+ const cmStyle = classnames(style.coorpmanager);
22
+ const isDefaultTheme = theme === 'default';
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ className: isDefaultTheme ? style.wrapperSearch : cmStyle
25
+ }, /*#__PURE__*/React.createElement("label", {
26
+ htmlFor: "search",
27
+ title: placeholder
28
+ }, !isDefaultTheme ? /*#__PURE__*/React.createElement(CMSearchIcon, {
29
+ className: style.searchIcon
30
+ }) : /*#__PURE__*/React.createElement(SearchIcon, {
31
+ className: style.searchIcon
32
+ }), !isDefaultTheme ? /*#__PURE__*/React.createElement("span", {
33
+ className: classnames(style.title, _isEmpty(value) && style.noValue)
34
+ }, placeholder) : null), /*#__PURE__*/React.createElement("input", {
35
+ "data-name": "search-input",
36
+ className: style.search,
37
+ type: "text",
38
+ name: "search",
39
+ id: "search",
40
+ placeholder: placeholder,
41
+ value: value,
42
+ onInput: handleChange,
43
+ onFocus: onFocus,
44
+ onChange: _noop,
45
+ onBlur: onBlur
46
+ }), value && !isDefaultTheme ? /*#__PURE__*/React.createElement(CloseIcon, {
47
+ onClick: onClear,
48
+ className: style.clearIcon
49
+ }) : null);
50
+ };
51
+
52
+ Search.contextTypes = {
53
+ skin: Provider.childContextTypes.skin
54
+ };
55
+ Search.propTypes = process.env.NODE_ENV !== "production" ? {
56
+ value: PropTypes.string,
57
+ placeholder: PropTypes.string.isRequired,
58
+ onChange: PropTypes.func,
59
+ onClear: PropTypes.func,
60
+ onFocus: PropTypes.func,
61
+ onBlur: PropTypes.func,
62
+ theme: PropTypes.oneOf(['default', 'coorpmanager'])
63
+ } : {};
64
+ export default Search;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/input-search/index.js"],"names":["React","useMemo","PropTypes","classnames","NovaCompositionCoorpacademySearch1","CMSearchIcon","NovaCompositionCoorpacademySearch","SearchIcon","NovaSolidStatusClose","CloseIcon","Provider","style","Search","props","value","placeholder","onChange","onClear","onFocus","onBlur","theme","handleChange","e","target","cmStyle","coorpmanager","isDefaultTheme","wrapperSearch","searchIcon","title","noValue","search","clearIcon","contextTypes","skin","childContextTypes","propTypes","string","isRequired","func","oneOf"],"mappings":"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","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearch1 as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default'\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n className={style.search}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Search;\n"],"file":"index.js"}
@@ -0,0 +1,201 @@
1
+ @value breakpoints: "../../variables/breakpoints.css";
2
+ @value tablet from breakpoints;
3
+ @value mobile from breakpoints;
4
+ @value colors: "../../variables/colors.css";
5
+ @value medium from colors;
6
+ @value light from colors;
7
+ @value white from colors;
8
+ @value dark from colors;
9
+ @value black from colors;
10
+ @value cm_grey_100 from colors;
11
+ @value cm_grey_150 from colors;
12
+ @value cm_grey_400 from colors;
13
+ @value cm_grey_500 from colors;
14
+ @value cm_grey_700 from colors;
15
+
16
+ .wrapperSearch {
17
+ display: flex;
18
+ width: 100%;
19
+ flex-flow: nowrap;
20
+ flex-direction: row;
21
+ align-items: center;
22
+ overflow: hidden;
23
+ }
24
+
25
+ .searchIcon {
26
+ color: dark;
27
+ position: relative;
28
+ margin: 0 0 -3px -20px;
29
+ width: 19px;
30
+ height: 19px;
31
+ left: 35px;
32
+ }
33
+
34
+ .search {
35
+ font-family: "Open Sans";
36
+ text-transform: none;
37
+ margin: 0 3px;
38
+ padding: 0 15px 0 45px;
39
+ border: 0;
40
+ height: 50px;
41
+ border-radius: 0;
42
+ font-size: 14px;
43
+ color: dark;
44
+ width: 100%;
45
+ outline: none;
46
+ font-weight: bold;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ }
51
+
52
+ .search::placeholder {
53
+ color: medium;
54
+ font-size: 14px;
55
+ }
56
+
57
+ .search:focus {
58
+ outline: none;
59
+ }
60
+
61
+ .search:-webkit-autofill {
62
+ background-color: white;
63
+ background-image: none;
64
+ color: medium;
65
+ }
66
+
67
+ .search::placeholder {
68
+ color: medium;
69
+ font-size: 14px;
70
+ }
71
+
72
+ .coorpmanager {
73
+ position: relative;
74
+ }
75
+
76
+ .coorpmanager label {
77
+ display: flex;
78
+ flex-direction: column;
79
+ align-items: flex-start;
80
+ position: absolute;
81
+ height: 64px;
82
+ }
83
+
84
+ .coorpmanager .title {
85
+ flex-grow: 0;
86
+ font-family: Gilroy;
87
+ font-size: 10px;
88
+ font-weight: bold;
89
+ font-stretch: normal;
90
+ font-style: normal;
91
+ letter-spacing: normal;
92
+ text-align: left;
93
+ z-index: 1;
94
+ color: cm_grey_400;
95
+ width: max-content;
96
+ transition: all 0.25s ease;
97
+ pointer-events: none;
98
+ display: flex;
99
+ flex-direction: row;
100
+ flex-wrap: nowrap;
101
+ position: absolute;
102
+ top: 7px;
103
+ left: 30px;
104
+ }
105
+
106
+ .coorpmanager .search {
107
+ height: 44px;
108
+ margin: 0;
109
+ flex-grow: 0;
110
+ display: flex;
111
+ box-sizing: border-box;
112
+ flex-direction: column;
113
+ justify-content: center;
114
+ align-items: flex-start;
115
+ padding: 19px 30px 5px 30px;
116
+ border-radius: 7px;
117
+ background-color: cm_grey_100;
118
+ font-family: Gilroy;
119
+ font-size: 14px;
120
+ font-weight: 500;
121
+ font-stretch: normal;
122
+ font-style: normal;
123
+ line-height: 44px;
124
+ letter-spacing: normal;
125
+ text-align: left;
126
+ color: cm_grey_700;
127
+ border: none;
128
+ transition: all 0.25s ease;
129
+ outline: none;
130
+ }
131
+
132
+ .coorpmanager .title.noValue {
133
+ font-size: 14px;
134
+ font-weight: 500;
135
+ color: cm_grey_400;
136
+ top: 14px;
137
+ }
138
+
139
+ .coorpmanager:focus-within .title.noValue {
140
+ font-size: 10px;
141
+ font-weight: bold;
142
+ color: cm_grey_400;
143
+ top: 7px;
144
+ }
145
+
146
+ .coorpmanager:focus-within .title.noValue {
147
+ width: max-content;
148
+ height: 8px;
149
+ line-height: 12px;
150
+ color: cm_grey_400;
151
+ }
152
+
153
+ .coorpmanager .search:hover {
154
+ background-color: cm_grey_150;
155
+ }
156
+
157
+ .coorpmanager .search::placeholder {
158
+ color: transparent;
159
+ }
160
+
161
+ .coorpmanager .clearIcon {
162
+ color: cm_grey_400;
163
+ width: 14px;
164
+ height: 14px;
165
+ position: absolute;
166
+ right: 15px;
167
+ top: 16px;
168
+ line-height: 16px;
169
+ cursor: pointer;
170
+ }
171
+
172
+ .coorpmanager .searchIcon {
173
+ color: #000;
174
+ width: 14px;
175
+ height: 14px;
176
+ position: absolute;
177
+ left: 30px;
178
+ top: 16px;
179
+ line-height: 16px;
180
+ }
181
+
182
+ @media tablet {
183
+ .search,
184
+ input {
185
+ font-size: 12px;
186
+ }
187
+
188
+ .search::placeholder {
189
+ font-size: 12px;
190
+ }
191
+ }
192
+
193
+ @media mobile {
194
+ .search {
195
+ font-size: 12px;
196
+ }
197
+
198
+ .search::placeholder {
199
+ font-size: 12px;
200
+ }
201
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-search/test/change.js"],"names":["browserEnv","test","React","shallow","configure","Adapter","Search","adapter","t","plan","onChange","value","is","wrapper","find","simulate","target"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,OAAR,EAAiBC,SAAjB,QAAiC,QAAjC;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,MAAP,MAAmB,IAAnB;AAEAN,UAAU;AACVI,SAAS,CAAC;AAACG,EAAAA,OAAO,EAAE,IAAIF,OAAJ;AAAV,CAAD,CAAT;AAEAJ,IAAI,CAAC,6EAAD,EAAgFO,CAAC,IAAI;AACvFA,EAAAA,CAAC,CAACC,IAAF,CAAO,CAAP;;AAEA,QAAMC,QAAQ,GAAGC,KAAK,IAAI;AACxBH,IAAAA,CAAC,CAACI,EAAF,CAAKD,KAAL,EAAY,mBAAZ;AACD,GAFD;;AAIA,QAAME,OAAO,GAAGV,OAAO,eACrB,oBAAC,MAAD;AAAQ,IAAA,WAAW,EAAC,eAApB;AAAoC,IAAA,KAAK,EAAC,kBAA1C;AAA6D,IAAA,QAAQ,EAAEO;AAAvE,IADqB,CAAvB;AAIAG,EAAAA,OAAO,CAACC,IAAR,CAAa,OAAb,EAAsBC,QAAtB,CAA+B,OAA/B,EAAwC;AAACC,IAAAA,MAAM,EAAE;AAACL,MAAAA,KAAK,EAAE;AAAR;AAAT,GAAxC;AACD,CAZG,CAAJ","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 Search from '..';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should call onChange with new value when user try to change the input value', t => {\n t.plan(1);\n\n const onChange = value => {\n t.is(value, 'my name is murphy');\n };\n\n const wrapper = shallow(\n <Search placeholder=\"say your name\" value=\"my name is murph\" onChange={onChange} />\n );\n\n wrapper.find('input').simulate('input', {target: {value: 'my name is murphy'}});\n});\n"],"file":"change.js"}
@@ -0,0 +1,14 @@
1
+ export default {
2
+ props: {
3
+ value: 'big data - le retour',
4
+ placeholder: 'Search for a course',
5
+ onChange: value => {
6
+ console.log(value);
7
+ },
8
+ onEnter: () => console.log('pressed enter'),
9
+ onFocus: () => console.log('onFocus'),
10
+ onClear: () => console.log('clear pressed'),
11
+ theme: 'coorpmanager'
12
+ }
13
+ };
14
+ //# sourceMappingURL=coorpmanager-with-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/coorpmanager-with-value.js"],"names":["props","value","placeholder","onChange","console","log","onEnter","onFocus","onClear","theme"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,sBADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,eAAZ,CANV;AAOLE,IAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,SAAZ,CAPV;AAQLG,IAAAA,OAAO,EAAE,MAAMJ,OAAO,CAACC,GAAR,CAAY,eAAZ,CARV;AASLI,IAAAA,KAAK,EAAE;AATF;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: 'big data - le retour',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onEnter: () => console.log('pressed enter'),\n onFocus: () => console.log('onFocus'),\n onClear: () => console.log('clear pressed'),\n theme: 'coorpmanager'\n }\n};\n"],"file":"coorpmanager-with-value.js"}
@@ -0,0 +1,13 @@
1
+ export default {
2
+ props: {
3
+ value: '',
4
+ placeholder: 'Search for a course',
5
+ onChange: value => {
6
+ console.log(value);
7
+ },
8
+ onFocus: () => console.log('onFocus'),
9
+ onBlur: () => console.log('blur'),
10
+ theme: 'coorpmanager'
11
+ }
12
+ };
13
+ //# sourceMappingURL=coorpmanager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/coorpmanager.js"],"names":["props","value","placeholder","onChange","console","log","onFocus","onBlur","theme"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,EADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,SAAZ,CANV;AAOLE,IAAAA,MAAM,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,MAAZ,CAPT;AAQLG,IAAAA,KAAK,EAAE;AARF;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: '',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onFocus: () => console.log('onFocus'),\n onBlur: () => console.log('blur'),\n theme: 'coorpmanager'\n }\n};\n"],"file":"coorpmanager.js"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/default.js"],"names":["props","value","placeholder","onChange","console","log","onFocus","onBlur"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,EADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,SAAZ,CANV;AAOLE,IAAAA,MAAM,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,MAAZ;AAPT;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: '',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onFocus: () => console.log('onFocus'),\n onBlur: () => console.log('blur')\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/with-value.js"],"names":["props","value","placeholder","onChange","console","log","onEnter","onFocus"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,sBADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,eAAZ,CANV;AAOLE,IAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,SAAZ;AAPV;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: 'big data - le retour',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onEnter: () => console.log('pressed enter'),\n onFocus: () => console.log('onFocus')\n }\n};\n"],"file":"with-value.js"}
@@ -0,0 +1,23 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomInputSwitch from '..';
5
+ import fixtureChecked from './fixtures/checked';
6
+ import fixtureDisabled from './fixtures/disabled';
7
+ import fixtureModified from './fixtures/modified';
8
+ import fixtureNoTitle from './fixtures/no-title';
9
+ import fixtureSso from './fixtures/sso';
10
+ import fixtureUnchecked from './fixtures/unchecked';
11
+ test('Atom › AtomInputSwitch > should have valid propTypes', t => {
12
+ t.pass();
13
+ forEach(AtomInputSwitch.propTypes, (value, key) => {
14
+ t.not(value, undefined, `PropType for "Atom.AtomInputSwitch.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
15
+ });
16
+ });
17
+ test('Atom › AtomInputSwitch › Checked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureChecked);
18
+ test('Atom › AtomInputSwitch › Disabled › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureDisabled);
19
+ test('Atom › AtomInputSwitch › Modified › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureModified);
20
+ test('Atom › AtomInputSwitch › NoTitle › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureNoTitle);
21
+ test('Atom › AtomInputSwitch › Sso › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureSso);
22
+ test('Atom › AtomInputSwitch › Unchecked › should be rendered', renderComponentMacro, AtomInputSwitch, fixtureUnchecked);
23
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-switch/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputSwitch","fixtureChecked","fixtureDisabled","fixtureModified","fixtureNoTitle","fixtureSso","fixtureUnchecked","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AAEAT,IAAI,CAAC,sDAAD,EAAyDU,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,eAAe,CAACS,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGC,cAAjG,CAAJ;AACAJ,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGE,eAAlG,CAAJ;AACAL,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGG,eAAlG,CAAJ;AACAN,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGI,cAAjG,CAAJ;AACAP,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,eAA5E,EAA6FK,UAA7F,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGM,gBAAnG,CAAJ","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,13 +1,16 @@
1
+ import _isEmpty from "lodash/fp/isEmpty";
1
2
  import _keys from "lodash/fp/keys";
2
3
  import _isNil from "lodash/fp/isNil";
3
4
  import _noop from "lodash/fp/noop";
4
5
  import React, { useMemo } from 'react';
5
6
  import PropTypes from 'prop-types';
7
+ import { NovaSolidStatusCheckCircle2 as CheckIcon, NovaSolidStatusClose as ErrorIcon, NovaCompositionCoorpacademyInformationIcon as InfoIcon } from '@coorpacademy/nova-icons';
6
8
  import classnames from 'classnames';
7
9
  import getClassState from '../../util/get-class-state';
8
10
  import style from './style.css';
9
11
  const themeStyle = {
10
12
  setup: style.setup,
13
+ coorpmanager: style.coorpmanager,
11
14
  cockpit: style.cockpit,
12
15
  default: style.default
13
16
  };
@@ -17,9 +20,11 @@ const InputText = props => {
17
20
  autoFocus = false,
18
21
  placeholder = '',
19
22
  value,
23
+ hint,
20
24
  defaultValue,
21
25
  onChange = _noop,
22
26
  error,
27
+ valid,
23
28
  theme = 'default',
24
29
  description,
25
30
  disabled,
@@ -31,25 +36,46 @@ const InputText = props => {
31
36
  const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
32
37
  const mainClass = themeStyle[theme];
33
38
  const className = getClassState(style.default, style.modified, style.error, modified, error);
34
- const descriptionView = description ? /*#__PURE__*/React.createElement("div", {
39
+ const descriptionView = description && theme !== 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
35
40
  className: style.description
36
41
  }, description) : null;
42
+ const toolTipView = description && theme === 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
43
+ className: style.infoIconWrapper
44
+ }, /*#__PURE__*/React.createElement(InfoIcon, {
45
+ className: style.infoIcon
46
+ }), /*#__PURE__*/React.createElement("div", {
47
+ className: style.descriptionLabel
48
+ }, description)) : null;
49
+ const hintView = theme === 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
50
+ className: style.hint // eslint-disable-next-line react/no-danger
51
+ ,
52
+ dangerouslySetInnerHTML: {
53
+ __html: error || hint
54
+ }
55
+ }) : null;
56
+ const errorIconView = error ? /*#__PURE__*/React.createElement(ErrorIcon, {
57
+ className: style.leftIcon
58
+ }) : null;
59
+ const validIconView = valid ? /*#__PURE__*/React.createElement(CheckIcon, {
60
+ className: style.leftIcon
61
+ }) : null;
37
62
  return /*#__PURE__*/React.createElement("div", {
38
- className: classnames(mainClass, className, _isNil(propsTitle) && style.isNoTitle)
63
+ className: classnames(mainClass, className, disabled && style.disabled, _isNil(propsTitle) && style.isNoTitle)
39
64
  }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("span", {
40
- className: style.title
41
- }, title), /*#__PURE__*/React.createElement("input", {
65
+ className: classnames(style.title, _isEmpty(value) && style.noValue)
66
+ }, title, toolTipView), /*#__PURE__*/React.createElement("input", {
42
67
  autoFocus: autoFocus,
43
68
  type: "text",
44
69
  name: title,
45
70
  className: style.input,
46
71
  placeholder: placeholder,
47
72
  defaultValue: defaultValue,
73
+ autoComplete: 'off',
48
74
  value: value,
49
75
  onInput: handleChange,
50
76
  disabled: disabled,
51
77
  onChange: _noop
52
- })), descriptionView);
78
+ }), errorIconView, validIconView, hintView), descriptionView);
53
79
  };
54
80
 
55
81
  InputText.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -61,10 +87,12 @@ InputText.propTypes = process.env.NODE_ENV !== "production" ? {
61
87
  disabled: PropTypes.bool,
62
88
  required: PropTypes.bool,
63
89
  value: PropTypes.string,
90
+ hint: PropTypes.string,
64
91
  error: PropTypes.string,
65
92
  onChange: PropTypes.func,
66
93
  description: PropTypes.string,
67
- modified: PropTypes.bool
94
+ modified: PropTypes.bool,
95
+ valid: PropTypes.bool
68
96
  } : {};
69
97
  export default InputText;
70
98
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/input-text/index.js"],"names":["React","useMemo","PropTypes","classnames","getClassState","style","themeStyle","setup","cockpit","default","InputText","props","autoFocus","placeholder","value","defaultValue","onChange","error","theme","description","disabled","required","modified","title","propsTitle","handleChange","e","target","mainClass","className","descriptionView","isNoTitle","input","propTypes","bool","string","oneOf","func"],"mappings":"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","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, isNil, keys} from 'lodash/fp';\nimport classnames from 'classnames';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n cockpit: style.cockpit,\n default: style.default\n};\nconst InputText = props => {\n const {\n autoFocus = false,\n placeholder = '',\n value,\n defaultValue,\n onChange = noop,\n error,\n theme = 'default',\n description,\n disabled,\n required,\n modified = false,\n title: propsTitle\n } = props;\n\n const title = `${propsTitle}${required ? '*' : ''}`;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const mainClass = themeStyle[theme];\n const className = getClassState(style.default, style.modified, style.error, modified, error);\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n return (\n <div className={classnames(mainClass, className, isNil(propsTitle) && style.isNoTitle)}>\n <label>\n <span className={style.title}>{title}</span>\n <input\n autoFocus={autoFocus}\n type=\"text\"\n name={title}\n className={style.input}\n placeholder={placeholder}\n defaultValue={defaultValue}\n value={value}\n onInput={handleChange}\n disabled={disabled}\n onChange={noop}\n />\n </label>\n {descriptionView}\n </div>\n );\n};\n\nInputText.propTypes = {\n autoFocus: PropTypes.bool,\n title: PropTypes.string,\n placeholder: PropTypes.string,\n defaultValue: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle)),\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n value: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool\n};\nexport default InputText;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/input-text/index.js"],"names":["React","useMemo","PropTypes","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidStatusClose","ErrorIcon","NovaCompositionCoorpacademyInformationIcon","InfoIcon","classnames","getClassState","style","themeStyle","setup","coorpmanager","cockpit","default","InputText","props","autoFocus","placeholder","value","hint","defaultValue","onChange","error","valid","theme","description","disabled","required","modified","title","propsTitle","handleChange","e","target","mainClass","className","descriptionView","toolTipView","infoIconWrapper","infoIcon","descriptionLabel","hintView","__html","errorIconView","leftIcon","validIconView","isNoTitle","noValue","input","propTypes","bool","string","oneOf","func"],"mappings":"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","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, isNil, keys, isEmpty} from 'lodash/fp';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n coorpmanager: style.coorpmanager,\n cockpit: style.cockpit,\n default: style.default\n};\nconst InputText = props => {\n const {\n autoFocus = false,\n placeholder = '',\n value,\n hint,\n defaultValue,\n onChange = noop,\n error,\n valid,\n theme = 'default',\n description,\n disabled,\n required,\n modified = false,\n title: propsTitle\n } = props;\n\n const title = `${propsTitle}${required ? '*' : ''}`;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const mainClass = themeStyle[theme];\n const className = getClassState(style.default, style.modified, style.error, modified, error);\n const descriptionView =\n description && theme !== 'coorpmanager' ? (\n <div className={style.description}>{description}</div>\n ) : null;\n const toolTipView =\n description && theme === 'coorpmanager' ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null;\n const hintView =\n theme === 'coorpmanager' ? (\n <div\n className={style.hint}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: error || hint}}\n />\n ) : null;\n const errorIconView = error ? <ErrorIcon className={style.leftIcon} /> : null;\n const validIconView = valid ? <CheckIcon className={style.leftIcon} /> : null;\n return (\n <div\n className={classnames(\n mainClass,\n className,\n disabled && style.disabled,\n isNil(propsTitle) && style.isNoTitle\n )}\n >\n <label>\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {title}\n {toolTipView}\n </span>\n\n <input\n autoFocus={autoFocus}\n type=\"text\"\n name={title}\n className={style.input}\n placeholder={placeholder}\n defaultValue={defaultValue}\n autoComplete={'off'}\n value={value}\n onInput={handleChange}\n disabled={disabled}\n onChange={noop}\n />\n {errorIconView}\n {validIconView}\n {hintView}\n </label>\n {descriptionView}\n </div>\n );\n};\n\nInputText.propTypes = {\n autoFocus: PropTypes.bool,\n title: PropTypes.string,\n placeholder: PropTypes.string,\n defaultValue: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle)),\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n value: PropTypes.string,\n hint: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool,\n valid: PropTypes.bool\n};\nexport default InputText;\n"],"file":"index.js"}