@coorpacademy/components 10.1.0 → 10.1.4

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 (330) hide show
  1. package/es/atom/button/index.js +3 -1
  2. package/es/atom/button/index.js.map +1 -1
  3. package/es/atom/button-link/index.js +107 -0
  4. package/es/atom/button-link/index.js.map +1 -0
  5. package/es/atom/button-link/style.css +97 -0
  6. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js +10 -0
  7. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  8. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js +14 -0
  9. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  10. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js +10 -0
  11. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  12. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +11 -0
  13. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  14. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js +14 -0
  15. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  16. package/es/atom/button-link/test/fixtures/icon-button.js +13 -0
  17. package/es/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  18. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +17 -0
  19. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  20. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js +20 -0
  21. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  22. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js +16 -0
  23. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  24. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +17 -0
  25. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  26. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js +13 -0
  27. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  28. package/es/atom/content-badge/index.js +4 -4
  29. package/es/atom/content-badge/index.js.map +1 -1
  30. package/es/atom/input-checkbox/test/fixtures.js +0 -2
  31. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  32. package/es/atom/input-search/index.js +65 -0
  33. package/es/atom/input-search/index.js.map +1 -0
  34. package/es/atom/input-search/style.css +201 -0
  35. package/es/{molecule/search → atom/input-search}/test/change.js +0 -0
  36. package/es/atom/input-search/test/change.js.map +1 -0
  37. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js +14 -0
  38. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  39. package/es/atom/input-search/test/fixtures/coorpmanager.js +13 -0
  40. package/es/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  41. package/es/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  42. package/es/atom/input-search/test/fixtures/default.js.map +1 -0
  43. package/es/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  44. package/es/atom/input-search/test/fixtures/with-value.js.map +1 -0
  45. package/es/atom/input-text/index.js +34 -6
  46. package/es/atom/input-text/index.js.map +1 -1
  47. package/es/atom/input-text/style.css +229 -1
  48. package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
  49. package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  50. package/es/atom/input-textarea/index.js +36 -11
  51. package/es/atom/input-textarea/index.js.map +1 -1
  52. package/es/atom/input-textarea/style.css +265 -0
  53. package/es/atom/input-textarea/test/fixtures/cm-default.js +17 -0
  54. package/es/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  55. package/es/atom/input-textarea/test/fixtures/cm-empty.js +17 -0
  56. package/es/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  57. package/es/atom/tag/index.js +27 -0
  58. package/es/atom/tag/index.js.map +1 -0
  59. package/es/atom/tag/style.css +38 -0
  60. package/es/atom/tag/test/fixtures/archived.js +7 -0
  61. package/es/atom/tag/test/fixtures/archived.js.map +1 -0
  62. package/es/atom/tag/test/fixtures/default.js +7 -0
  63. package/es/atom/tag/test/fixtures/default.js.map +1 -0
  64. package/es/atom/tag/test/fixtures/published.js +7 -0
  65. package/es/atom/tag/test/fixtures/published.js.map +1 -0
  66. package/es/atom/tag/test/fixtures/revision.js +7 -0
  67. package/es/atom/tag/test/fixtures/revision.js.map +1 -0
  68. package/es/atom/title/test/fixtures.js +2 -6
  69. package/es/atom/title/test/fixtures.js.map +1 -1
  70. package/es/molecule/banner/index.js +46 -0
  71. package/es/molecule/banner/index.js.map +1 -0
  72. package/es/molecule/banner/style.css +63 -0
  73. package/es/molecule/banner/test/fixtures/default.js +11 -0
  74. package/es/molecule/banner/test/fixtures/default.js.map +1 -0
  75. package/es/molecule/banner/test/fixtures/error-banner.js +7 -0
  76. package/es/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  77. package/es/molecule/brand-form-group/test/fixtures/cm-default.js +51 -0
  78. package/es/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  79. package/es/molecule/brand-form-group/test/fixtures/default.js +12 -3
  80. package/es/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  81. package/es/molecule/card/index.js +16 -5
  82. package/es/molecule/card/index.js.map +1 -1
  83. package/es/molecule/card/selectable.css +71 -0
  84. package/es/molecule/card/selectable.js +32 -0
  85. package/es/molecule/card/selectable.js.map +1 -0
  86. package/es/molecule/card/test/fixtures/default.js +1 -0
  87. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  88. package/es/molecule/card/test/fixtures/selectable-false.js +16 -0
  89. package/es/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  90. package/es/molecule/card/test/fixtures/selectable-true.js +17 -0
  91. package/es/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  92. package/es/molecule/card-content/index.js +13 -3
  93. package/es/molecule/card-content/index.js.map +1 -1
  94. package/es/molecule/card-content/style.css +13 -3
  95. package/es/molecule/cm-popin/index.js +82 -0
  96. package/es/molecule/cm-popin/index.js.map +1 -0
  97. package/es/molecule/cm-popin/style.css +115 -0
  98. package/es/molecule/cm-popin/test/fixtures/dangerous.js +19 -0
  99. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  100. package/es/molecule/cm-popin/test/fixtures/default.js +19 -0
  101. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  102. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +20 -0
  103. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  104. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  105. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  106. package/es/molecule/search-form/index.js +1 -1
  107. package/es/molecule/search-form/index.js.map +1 -1
  108. package/es/molecule/wizard-summary/index.js +195 -0
  109. package/es/molecule/wizard-summary/index.js.map +1 -0
  110. package/es/molecule/wizard-summary/style.css +230 -0
  111. package/es/molecule/wizard-summary/test/fixtures/default.js +124 -0
  112. package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  113. package/es/molecule/wizard-summary/test/fixtures/one-section.js +23 -0
  114. package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  115. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +118 -0
  116. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  117. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +42 -0
  118. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  119. package/es/molecule/wizard-summary/test/fixtures/two-sections.js +35 -0
  120. package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  121. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -4
  122. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  123. package/es/organism/brand-dashboard/test/fixtures.js +10 -2
  124. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
  125. package/es/organism/brand-table/index.js +1 -1
  126. package/es/organism/brand-table/index.js.map +1 -1
  127. package/es/organism/mooc-header/index.js +1 -1
  128. package/es/organism/mooc-header/index.js.map +1 -1
  129. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  130. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  131. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  132. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  133. package/es/organism/user-preferences/style.css +1 -0
  134. package/es/template/back-office/brand-list/index.js +6 -2
  135. package/es/template/back-office/brand-list/index.js.map +1 -1
  136. package/es/template/back-office/brand-list/style.css +1 -0
  137. package/es/template/back-office/brand-update/test/fixtures.js +0 -2
  138. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  139. package/es/variables/colors.css +11 -3
  140. package/lib/atom/button/index.js +3 -1
  141. package/lib/atom/button/index.js.map +1 -1
  142. package/lib/atom/button-link/index.js +124 -0
  143. package/lib/atom/button-link/index.js.map +1 -0
  144. package/lib/atom/button-link/style.css +97 -0
  145. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js +15 -0
  146. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  147. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js +19 -0
  148. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  149. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js +15 -0
  150. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  151. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +16 -0
  152. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  153. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js +19 -0
  154. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  155. package/lib/atom/button-link/test/fixtures/icon-button.js +18 -0
  156. package/lib/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  157. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +22 -0
  158. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  159. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js +25 -0
  160. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  161. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js +21 -0
  162. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  163. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +22 -0
  164. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  165. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js +18 -0
  166. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  167. package/lib/atom/content-badge/index.js +4 -4
  168. package/lib/atom/content-badge/index.js.map +1 -1
  169. package/lib/atom/input-checkbox/test/fixtures.js +0 -3
  170. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  171. package/lib/{molecule/search → atom/input-search}/index.js +29 -18
  172. package/lib/atom/input-search/index.js.map +1 -0
  173. package/lib/atom/input-search/style.css +201 -0
  174. package/lib/{molecule/search → atom/input-search}/test/change.js +0 -0
  175. package/lib/atom/input-search/test/change.js.map +1 -0
  176. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js +19 -0
  177. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  178. package/lib/atom/input-search/test/fixtures/coorpmanager.js +18 -0
  179. package/lib/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  180. package/lib/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  181. package/lib/atom/input-search/test/fixtures/default.js.map +1 -0
  182. package/lib/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  183. package/lib/atom/input-search/test/fixtures/with-value.js.map +1 -0
  184. package/lib/atom/input-text/index.js +36 -6
  185. package/lib/atom/input-text/index.js.map +1 -1
  186. package/lib/atom/input-text/style.css +229 -1
  187. package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
  188. package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  189. package/lib/atom/input-textarea/index.js +38 -11
  190. package/lib/atom/input-textarea/index.js.map +1 -1
  191. package/lib/atom/input-textarea/style.css +265 -0
  192. package/lib/atom/input-textarea/test/fixtures/cm-default.js +22 -0
  193. package/lib/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  194. package/lib/atom/input-textarea/test/fixtures/cm-empty.js +22 -0
  195. package/lib/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  196. package/lib/atom/tag/index.js +39 -0
  197. package/lib/atom/tag/index.js.map +1 -0
  198. package/lib/atom/tag/style.css +38 -0
  199. package/lib/atom/tag/test/fixtures/archived.js +12 -0
  200. package/lib/atom/tag/test/fixtures/archived.js.map +1 -0
  201. package/lib/atom/tag/test/fixtures/default.js +12 -0
  202. package/lib/atom/tag/test/fixtures/default.js.map +1 -0
  203. package/lib/atom/tag/test/fixtures/published.js +12 -0
  204. package/lib/atom/tag/test/fixtures/published.js.map +1 -0
  205. package/lib/atom/tag/test/fixtures/revision.js +12 -0
  206. package/lib/atom/tag/test/fixtures/revision.js.map +1 -0
  207. package/lib/atom/title/test/fixtures.js +2 -8
  208. package/lib/atom/title/test/fixtures.js.map +1 -1
  209. package/lib/molecule/banner/index.js +59 -0
  210. package/lib/molecule/banner/index.js.map +1 -0
  211. package/lib/molecule/banner/style.css +63 -0
  212. package/lib/molecule/banner/test/fixtures/default.js +16 -0
  213. package/lib/molecule/banner/test/fixtures/default.js.map +1 -0
  214. package/lib/molecule/banner/test/fixtures/error-banner.js +12 -0
  215. package/lib/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  216. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js +56 -0
  217. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  218. package/lib/molecule/brand-form-group/test/fixtures/default.js +12 -3
  219. package/lib/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  220. package/lib/molecule/card/index.js +17 -5
  221. package/lib/molecule/card/index.js.map +1 -1
  222. package/lib/molecule/card/selectable.css +71 -0
  223. package/lib/molecule/card/selectable.js +45 -0
  224. package/lib/molecule/card/selectable.js.map +1 -0
  225. package/lib/molecule/card/test/fixtures/default.js +1 -0
  226. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  227. package/lib/molecule/card/test/fixtures/selectable-false.js +26 -0
  228. package/lib/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  229. package/lib/molecule/card/test/fixtures/selectable-true.js +27 -0
  230. package/lib/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  231. package/lib/molecule/card-content/index.js +14 -3
  232. package/lib/molecule/card-content/index.js.map +1 -1
  233. package/lib/molecule/card-content/style.css +13 -3
  234. package/lib/molecule/cm-popin/index.js +94 -0
  235. package/lib/molecule/cm-popin/index.js.map +1 -0
  236. package/lib/molecule/cm-popin/style.css +115 -0
  237. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +24 -0
  238. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  239. package/lib/molecule/cm-popin/test/fixtures/default.js +24 -0
  240. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  241. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +25 -0
  242. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  243. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  244. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  245. package/lib/molecule/search-form/index.js +3 -3
  246. package/lib/molecule/search-form/index.js.map +1 -1
  247. package/lib/molecule/wizard-summary/index.js +213 -0
  248. package/lib/molecule/wizard-summary/index.js.map +1 -0
  249. package/lib/molecule/wizard-summary/style.css +230 -0
  250. package/lib/molecule/wizard-summary/test/fixtures/default.js +129 -0
  251. package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  252. package/lib/molecule/wizard-summary/test/fixtures/one-section.js +28 -0
  253. package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  254. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +123 -0
  255. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  256. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +47 -0
  257. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  258. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +40 -0
  259. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  260. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -6
  261. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  262. package/lib/organism/brand-dashboard/test/fixtures.js +14 -2
  263. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
  264. package/lib/organism/brand-table/index.js +3 -3
  265. package/lib/organism/brand-table/index.js.map +1 -1
  266. package/lib/organism/mooc-header/index.js +2 -2
  267. package/lib/organism/mooc-header/index.js.map +1 -1
  268. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  269. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  270. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  271. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  272. package/lib/organism/user-preferences/style.css +1 -0
  273. package/lib/template/back-office/brand-list/index.js +7 -3
  274. package/lib/template/back-office/brand-list/index.js.map +1 -1
  275. package/lib/template/back-office/brand-list/style.css +1 -0
  276. package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
  277. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  278. package/lib/variables/colors.css +11 -3
  279. package/package.json +3 -3
  280. package/es/atom/chips/test/fixtures.js +0 -15
  281. package/es/atom/chips/test/fixtures.js.map +0 -1
  282. package/es/atom/content-badge/test/fixtures.js +0 -27
  283. package/es/atom/content-badge/test/fixtures.js.map +0 -1
  284. package/es/atom/wizard-steps/test/fixtures.js +0 -17
  285. package/es/atom/wizard-steps/test/fixtures.js.map +0 -1
  286. package/es/molecule/coorp-manager-roles/test/fixtures.js +0 -13
  287. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
  288. package/es/molecule/popin/test/fixtures.js +0 -21
  289. package/es/molecule/popin/test/fixtures.js.map +0 -1
  290. package/es/molecule/quick-access-card/test/fixtures.js +0 -21
  291. package/es/molecule/quick-access-card/test/fixtures.js.map +0 -1
  292. package/es/molecule/quick-access-cards-group/test/fixtures.js +0 -21
  293. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
  294. package/es/molecule/search/index.js +0 -57
  295. package/es/molecule/search/index.js.map +0 -1
  296. package/es/molecule/search/style.css +0 -86
  297. package/es/molecule/search/test/change.js.map +0 -1
  298. package/es/molecule/search/test/fixtures/default.js.map +0 -1
  299. package/es/molecule/search/test/fixtures/with-value.js.map +0 -1
  300. package/es/molecule/vertical-tabs/test/fixtures.js +0 -15
  301. package/es/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  302. package/es/molecule/wizard-summary/test/fixtures.js +0 -19
  303. package/es/molecule/wizard-summary/test/fixtures.js.map +0 -1
  304. package/es/organism/brand-analytics/test/fixtures.js +0 -23
  305. package/es/organism/brand-analytics/test/fixtures.js.map +0 -1
  306. package/lib/atom/chips/test/fixtures.js +0 -25
  307. package/lib/atom/chips/test/fixtures.js.map +0 -1
  308. package/lib/atom/content-badge/test/fixtures.js +0 -43
  309. package/lib/atom/content-badge/test/fixtures.js.map +0 -1
  310. package/lib/atom/wizard-steps/test/fixtures.js +0 -28
  311. package/lib/atom/wizard-steps/test/fixtures.js.map +0 -1
  312. package/lib/molecule/coorp-manager-roles/test/fixtures.js +0 -22
  313. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
  314. package/lib/molecule/popin/test/fixtures.js +0 -34
  315. package/lib/molecule/popin/test/fixtures.js.map +0 -1
  316. package/lib/molecule/quick-access-card/test/fixtures.js +0 -34
  317. package/lib/molecule/quick-access-card/test/fixtures.js.map +0 -1
  318. package/lib/molecule/quick-access-cards-group/test/fixtures.js +0 -34
  319. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
  320. package/lib/molecule/search/index.js.map +0 -1
  321. package/lib/molecule/search/style.css +0 -86
  322. package/lib/molecule/search/test/change.js.map +0 -1
  323. package/lib/molecule/search/test/fixtures/default.js.map +0 -1
  324. package/lib/molecule/search/test/fixtures/with-value.js.map +0 -1
  325. package/lib/molecule/vertical-tabs/test/fixtures.js +0 -25
  326. package/lib/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  327. package/lib/molecule/wizard-summary/test/fixtures.js +0 -31
  328. package/lib/molecule/wizard-summary/test/fixtures.js.map +0 -1
  329. package/lib/organism/brand-analytics/test/fixtures.js +0 -37
  330. package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
@@ -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 MoleculeCockpitPopin from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureLoading from './fixtures/loading';
7
+ import fixtureVideoTranslate from './fixtures/video-translate';
8
+ test('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(MoleculeCockpitPopin.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);
15
+ test('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);
16
+ test('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCockpitPopin","fixtureDefault","fixtureLoading","fixtureVideoTranslate","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,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AAEAN,IAAI,CAAC,+DAAD,EAAkEO,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,oBAAoB,CAACM,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GC,cAA/G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,oBAAhG,EAAsHG,qBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
5
5
  import React, { useMemo } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { NovaCompositionNavigationMore as ClearIcon } from '@coorpacademy/nova-icons';
8
- import Search from '../search';
8
+ import Search from '../../atom/input-search';
9
9
  import style from './style.css';
10
10
 
11
11
  const SearchForm = (props, context) => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/search-form/index.js"],"names":["React","useMemo","PropTypes","NovaCompositionNavigationMore","ClearIcon","Search","style","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","handleSubmit","evt","preventDefault","skin","dark","form","value","wrapperClear","wrapperNoClear","clear","propTypes","string","func","shape"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,6BAA6B,IAAIC,SAAzC,QAAyD,0BAAzD;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACrC,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AAA,OAAO,EAAEX,SAAS,CAAC2B,IAJE;AAKrBd,EAAAA,aAAa,EAAEb,SAAS,CAAC2B,IALJ;AAMrBb,EAAAA,YAAY,EAAEd,SAAS,CAAC2B,IANH;AAOrBf,EAAAA,MAAM,EAAEZ,SAAS,CAAC4B,KAAV,CAAgBzB,MAAM,CAACsB,SAAvB;AAPa,CAAvB;AAUA,eAAepB,UAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationMore as ClearIcon} from '@coorpacademy/nova-icons';\nimport Search from '../search';\nimport style from './style.css';\n\nconst SearchForm = (props, context) => {\n const {action, method, onSubmit, onReset, search, onSearchFocus, onSearchBlur} = props;\n const handleSubmit = useMemo(\n () => evt => {\n evt.preventDefault();\n return onSubmit && onSubmit(evt);\n },\n [onSubmit]\n );\n const {skin} = context;\n const dark = get('common.dark', skin);\n\n return (\n <form\n className={style.form}\n action={action}\n method={method}\n onSubmit={handleSubmit}\n data-name=\"searchForm\"\n >\n <Search {...search} onFocus={onSearchFocus} onBlur={onSearchBlur} />\n <div\n data-name=\"search-form-reset\"\n onClick={onReset}\n className={search.value ? style.wrapperClear : style.wrapperNoClear}\n >\n <ClearIcon color={dark} className={style.clear} />\n </div>\n </form>\n );\n};\n\nSearchForm.propTypes = {\n action: PropTypes.string,\n method: PropTypes.string,\n onSubmit: PropTypes.func,\n onReset: PropTypes.func,\n onSearchFocus: PropTypes.func,\n onSearchBlur: PropTypes.func,\n search: PropTypes.shape(Search.propTypes)\n};\n\nexport default SearchForm;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/search-form/index.js"],"names":["React","useMemo","PropTypes","NovaCompositionNavigationMore","ClearIcon","Search","style","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","handleSubmit","evt","preventDefault","skin","dark","form","value","wrapperClear","wrapperNoClear","clear","propTypes","string","func","shape"],"mappings":";;;;AAAA,O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,EAAEf,KAAK,CAACoB;AAAzC,IALF,CARF,CADF;AAkBD,CA9BD;;AAgCAnB,UAAU,CAACoB,SAAX,2CAAuB;AACrBjB,EAAAA,MAAM,EAAER,SAAS,CAAC0B,MADG;AAErBjB,EAAAA,MAAM,EAAET,SAAS,CAAC0B,MAFG;AAGrBhB,EAAAA,QAAQ,EAAEV,SAAS,CAAC2B,IAHC;AAIrBhB,EAAAA,OAAO,EAAEX,SAAS,CAAC2B,IAJE;AAKrBd,EAAAA,aAAa,EAAEb,SAAS,CAAC2B,IALJ;AAMrBb,EAAAA,YAAY,EAAEd,SAAS,CAAC2B,IANH;AAOrBf,EAAAA,MAAM,EAAEZ,SAAS,CAAC4B,KAAV,CAAgBzB,MAAM,CAACsB,SAAvB;AAPa,CAAvB;AAUA,eAAepB,UAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationMore as ClearIcon} from '@coorpacademy/nova-icons';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\n\nconst SearchForm = (props, context) => {\n const {action, method, onSubmit, onReset, search, onSearchFocus, onSearchBlur} = props;\n const handleSubmit = useMemo(\n () => evt => {\n evt.preventDefault();\n return onSubmit && onSubmit(evt);\n },\n [onSubmit]\n );\n const {skin} = context;\n const dark = get('common.dark', skin);\n\n return (\n <form\n className={style.form}\n action={action}\n method={method}\n onSubmit={handleSubmit}\n data-name=\"searchForm\"\n >\n <Search {...search} onFocus={onSearchFocus} onBlur={onSearchBlur} />\n <div\n data-name=\"search-form-reset\"\n onClick={onReset}\n className={search.value ? style.wrapperClear : style.wrapperNoClear}\n >\n <ClearIcon color={dark} className={style.clear} />\n </div>\n </form>\n );\n};\n\nSearchForm.propTypes = {\n action: PropTypes.string,\n method: PropTypes.string,\n onSubmit: PropTypes.func,\n onReset: PropTypes.func,\n onSearchFocus: PropTypes.func,\n onSearchBlur: PropTypes.func,\n search: PropTypes.shape(Search.propTypes)\n};\n\nexport default SearchForm;\n"],"file":"index.js"}
@@ -0,0 +1,195 @@
1
+ import React, { useMemo } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import classnames from 'classnames';
4
+ import { NovaCompositionNavigationArrowDown as ArrowDownIcon } from '@coorpacademy/nova-icons';
5
+ import ContentBadge from '../../atom/content-badge';
6
+ import ButtonLink from '../../atom/button-link';
7
+ import style from './style.css';
8
+
9
+ const buildItemsOfSection = items => {
10
+ return items.map((item, index) => {
11
+ const {
12
+ type
13
+ } = item;
14
+
15
+ switch (type) {
16
+ case 'mainElement':
17
+ return /*#__PURE__*/React.createElement("li", {
18
+ key: `${item.title}-${index}`
19
+ }, /*#__PURE__*/React.createElement("span", {
20
+ className: style.title
21
+ }, item.title), /*#__PURE__*/React.createElement("span", {
22
+ className: style.value
23
+ }, item.value));
24
+
25
+ case 'content':
26
+ {
27
+ const {
28
+ category,
29
+ label,
30
+ title,
31
+ author,
32
+ unsaved = false
33
+ } = item;
34
+ return /*#__PURE__*/React.createElement("li", {
35
+ className: style.contentWrapper,
36
+ key: `${title}-${index}`
37
+ }, /*#__PURE__*/React.createElement("span", {
38
+ className: style.contentCounter
39
+ }, index + 1), /*#__PURE__*/React.createElement("div", {
40
+ className: style.contentItem
41
+ }, /*#__PURE__*/React.createElement("div", {
42
+ className: style.content
43
+ }, /*#__PURE__*/React.createElement(ContentBadge, {
44
+ category: category,
45
+ label: label
46
+ }), /*#__PURE__*/React.createElement("span", {
47
+ className: classnames(style.contentTitle, unsaved && style.unsaved),
48
+ title: title // eslint-disable-next-line react/no-danger
49
+ ,
50
+ dangerouslySetInnerHTML: {
51
+ __html: title
52
+ }
53
+ })), author ? /*#__PURE__*/React.createElement("span", {
54
+ className: style.author
55
+ }, author) : null));
56
+ }
57
+
58
+ case 'text':
59
+ default:
60
+ {
61
+ const {
62
+ text,
63
+ unsaved = false
64
+ } = item;
65
+ return /*#__PURE__*/React.createElement("li", {
66
+ key: `${item.text}-${index}`
67
+ }, /*#__PURE__*/React.createElement("span", {
68
+ className: classnames(style.valueSimpleText, unsaved && style.unsaved)
69
+ }, text));
70
+ }
71
+ }
72
+ });
73
+ };
74
+
75
+ const buildSectionHeader = section => {
76
+ const {
77
+ title,
78
+ counterText
79
+ } = section;
80
+
81
+ if (!title) {
82
+ return null;
83
+ }
84
+
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: style.sectionHeader
87
+ }, /*#__PURE__*/React.createElement("span", {
88
+ className: style.title
89
+ }, title), counterText ? /*#__PURE__*/React.createElement("span", {
90
+ className: style.counterText
91
+ }, counterText) : null);
92
+ };
93
+
94
+ const buildSections = sections => {
95
+ return sections.map((section, index) => {
96
+ const sectionHeader = buildSectionHeader(section);
97
+ const itemsView = buildItemsOfSection(section.items);
98
+ return /*#__PURE__*/React.createElement("div", {
99
+ key: `summary-section-${index}`,
100
+ "data-step": index,
101
+ className: style.sectionWrapper
102
+ }, sectionHeader, /*#__PURE__*/React.createElement("ul", null, itemsView));
103
+ });
104
+ };
105
+
106
+ const buildAction = action => {
107
+ if (!action) return null;
108
+ const {
109
+ onClick,
110
+ text,
111
+ icon,
112
+ 'aria-label': ariaLabel
113
+ } = action;
114
+ const handleClick = useMemo(() => () => onClick(), [onClick]);
115
+ const buttonProps = {
116
+ type: 'text',
117
+ label: text,
118
+ 'aria-label': ariaLabel,
119
+ 'data-name': `${icon}-button`,
120
+ onClick: handleClick,
121
+ icon: {
122
+ position: 'left',
123
+ type: icon
124
+ }
125
+ };
126
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ButtonLink, buttonProps));
127
+ };
128
+
129
+ const WizardSummary = props => {
130
+ const {
131
+ title,
132
+ sections,
133
+ action
134
+ } = props;
135
+ const sectionsView = buildSections(sections);
136
+ const actionView = buildAction(action);
137
+ const idSwitch = 'open-summary-wizard';
138
+ return /*#__PURE__*/React.createElement("div", {
139
+ className: style.container
140
+ }, /*#__PURE__*/React.createElement("span", {
141
+ className: style.desktopSummaryTitle
142
+ }, title), /*#__PURE__*/React.createElement("input", {
143
+ type: "checkbox",
144
+ id: idSwitch,
145
+ name: "toogle",
146
+ title: idSwitch,
147
+ className: style.checkbox
148
+ }), /*#__PURE__*/React.createElement("div", {
149
+ className: style.summary
150
+ }, /*#__PURE__*/React.createElement("div", {
151
+ className: style.tabletSummaryHeader
152
+ }, /*#__PURE__*/React.createElement("label", {
153
+ htmlFor: idSwitch
154
+ }, /*#__PURE__*/React.createElement("span", {
155
+ className: style.tabletSummaryTitle
156
+ }, title), /*#__PURE__*/React.createElement(ArrowDownIcon, {
157
+ className: style.tabletSummaryIcon
158
+ }))), /*#__PURE__*/React.createElement("div", {
159
+ className: style.summarySections
160
+ }, sectionsView)), /*#__PURE__*/React.createElement("div", {
161
+ className: style.actionZone
162
+ }, actionView));
163
+ };
164
+
165
+ WizardSummary.propTypes = process.env.NODE_ENV !== "production" ? {
166
+ title: PropTypes.string,
167
+ sections: PropTypes.arrayOf(PropTypes.shape({
168
+ title: PropTypes.string,
169
+ items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
170
+ type: PropTypes.string,
171
+ title: PropTypes.string,
172
+ value: PropTypes.string
173
+ }), PropTypes.shape({
174
+ type: PropTypes.string,
175
+ text: PropTypes.string,
176
+ unsaved: PropTypes.bool
177
+ }), PropTypes.shape({
178
+ type: PropTypes.string,
179
+ category: PropTypes.oneOf(['base', 'advanced', 'coach', 'chapter', 'scorm', 'video', 'article', 'podcast']),
180
+ title: PropTypes.string,
181
+ label: PropTypes.string,
182
+ author: PropTypes.string,
183
+ unsaved: PropTypes.bool
184
+ })])),
185
+ counterText: PropTypes.string
186
+ })),
187
+ action: PropTypes.shape({
188
+ icon: PropTypes.string,
189
+ text: PropTypes.string,
190
+ onClick: PropTypes.func,
191
+ 'aria-label': PropTypes.string
192
+ })
193
+ } : {};
194
+ export default WizardSummary;
195
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/wizard-summary/index.js"],"names":["React","useMemo","PropTypes","classnames","NovaCompositionNavigationArrowDown","ArrowDownIcon","ContentBadge","ButtonLink","style","buildItemsOfSection","items","map","item","index","type","title","value","category","label","author","unsaved","contentWrapper","contentCounter","contentItem","content","contentTitle","__html","text","valueSimpleText","buildSectionHeader","section","counterText","sectionHeader","buildSections","sections","itemsView","sectionWrapper","buildAction","action","onClick","icon","ariaLabel","handleClick","buttonProps","position","WizardSummary","props","sectionsView","actionView","idSwitch","container","desktopSummaryTitle","checkbox","summary","tabletSummaryHeader","tabletSummaryTitle","tabletSummaryIcon","summarySections","actionZone","propTypes","string","arrayOf","shape","oneOfType","bool","oneOf","func"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,kCAAkC,IAAIC,aAA9C,QAAkE,0BAAlE;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,mBAAmB,GAAGC,KAAK,IAAI;AACnC,SAAOA,KAAK,CAACC,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;AAChC,UAAM;AAACC,MAAAA;AAAD,QAASF,IAAf;;AACA,YAAQE,IAAR;AACE,WAAK,aAAL;AACE,4BACE;AAAI,UAAA,GAAG,EAAG,GAAEF,IAAI,CAACG,KAAM,IAAGF,KAAM;AAAhC,wBACE;AAAM,UAAA,SAAS,EAAEL,KAAK,CAACO;AAAvB,WAA+BH,IAAI,CAACG,KAApC,CADF,eAEE;AAAM,UAAA,SAAS,EAAEP,KAAK,CAACQ;AAAvB,WAA+BJ,IAAI,CAACI,KAApC,CAFF,CADF;;AAMF,WAAK,SAAL;AAAgB;AACd,gBAAM;AAACC,YAAAA,QAAD;AAAWC,YAAAA,KAAX;AAAkBH,YAAAA,KAAlB;AAAyBI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O;AAiCdjC,IAAAA,WAAW,EAAE7B,SAAS,CAAC0D;AAjCT,GAAhB,CADQ,CAFc;AAuCxBtB,EAAAA,MAAM,EAAEpC,SAAS,CAAC4D,KAAV,CAAgB;AACtBtB,IAAAA,IAAI,EAAEtC,SAAS,CAAC0D,MADM;AAEtBjC,IAAAA,IAAI,EAAEzB,SAAS,CAAC0D,MAFM;AAGtBrB,IAAAA,OAAO,EAAErC,SAAS,CAACgE,IAHG;AAItB,kBAAchE,SAAS,CAAC0D;AAJF,GAAhB;AAvCgB,CAA1B;AA+CA,eAAef,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowDownIcon} from '@coorpacademy/nova-icons';\nimport ContentBadge from '../../atom/content-badge';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst buildItemsOfSection = items => {\n return items.map((item, index) => {\n const {type} = item;\n switch (type) {\n case 'mainElement':\n return (\n <li key={`${item.title}-${index}`}>\n <span className={style.title}>{item.title}</span>\n <span className={style.value}>{item.value}</span>\n </li>\n );\n case 'content': {\n const {category, label, title, author, unsaved = false} = item;\n return (\n <li className={style.contentWrapper} key={`${title}-${index}`}>\n <span className={style.contentCounter}>{index + 1}</span>\n <div className={style.contentItem}>\n <div className={style.content}>\n <ContentBadge category={category} label={label} />\n <span\n className={classnames(style.contentTitle, unsaved && style.unsaved)}\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n </div>\n {author ? <span className={style.author}>{author}</span> : null}\n </div>\n </li>\n );\n }\n case 'text':\n default: {\n const {text, unsaved = false} = item;\n return (\n <li key={`${item.text}-${index}`}>\n <span className={classnames(style.valueSimpleText, unsaved && style.unsaved)}>\n {text}\n </span>\n </li>\n );\n }\n }\n });\n};\n\nconst buildSectionHeader = section => {\n const {title, counterText} = section;\n if (!title) {\n return null;\n }\n return (\n <div className={style.sectionHeader}>\n <span className={style.title}>{title}</span>\n {counterText ? <span className={style.counterText}>{counterText}</span> : null}\n </div>\n );\n};\n\nconst buildSections = sections => {\n return sections.map((section, index) => {\n const sectionHeader = buildSectionHeader(section);\n const itemsView = buildItemsOfSection(section.items);\n return (\n <div key={`summary-section-${index}`} data-step={index} className={style.sectionWrapper}>\n {sectionHeader}\n <ul>{itemsView}</ul>\n </div>\n );\n });\n};\n\nconst buildAction = action => {\n if (!action) return null;\n\n const {onClick, text, icon, 'aria-label': ariaLabel} = action;\n const handleClick = useMemo(() => () => onClick(), [onClick]);\n const buttonProps = {\n type: 'text',\n label: text,\n 'aria-label': ariaLabel,\n 'data-name': `${icon}-button`,\n onClick: handleClick,\n icon: {\n position: 'left',\n type: icon\n }\n };\n\n return (\n <div>\n <ButtonLink {...buttonProps} />\n </div>\n );\n};\n\nconst WizardSummary = props => {\n const {title, sections, action} = props;\n const sectionsView = buildSections(sections);\n const actionView = buildAction(action);\n const idSwitch = 'open-summary-wizard';\n\n return (\n <div className={style.container}>\n <span className={style.desktopSummaryTitle}>{title}</span>\n <input\n type=\"checkbox\"\n id={idSwitch}\n name=\"toogle\"\n title={idSwitch}\n className={style.checkbox}\n />\n <div className={style.summary}>\n <div className={style.tabletSummaryHeader}>\n <label htmlFor={idSwitch}>\n <span className={style.tabletSummaryTitle}>{title}</span>\n <ArrowDownIcon className={style.tabletSummaryIcon} />\n </label>\n </div>\n <div className={style.summarySections}>{sectionsView}</div>\n </div>\n <div className={style.actionZone}>{actionView}</div>\n </div>\n );\n};\n\nWizardSummary.propTypes = {\n title: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.string,\n title: PropTypes.string,\n value: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n text: PropTypes.string,\n unsaved: PropTypes.bool\n }),\n PropTypes.shape({\n type: PropTypes.string,\n category: PropTypes.oneOf([\n 'base',\n 'advanced',\n 'coach',\n 'chapter',\n 'scorm',\n 'video',\n 'article',\n 'podcast'\n ]),\n title: PropTypes.string,\n label: PropTypes.string,\n author: PropTypes.string,\n unsaved: PropTypes.bool\n })\n ])\n ),\n counterText: PropTypes.string\n })\n ),\n action: PropTypes.shape({\n icon: PropTypes.string,\n text: PropTypes.string,\n onClick: PropTypes.func,\n 'aria-label': PropTypes.string\n })\n};\n\nexport default WizardSummary;\n"],"file":"index.js"}
@@ -0,0 +1,230 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value breakpoints: "../../variables/breakpoints.css";
3
+ @value cm_primary_blue from colors;
4
+ @value cm_grey_50 from colors;
5
+ @value cm_grey_300 from colors;
6
+ @value cm_grey_400 from colors;
7
+ @value cm_grey_900 from colors;
8
+ @value cm_green_200 from colors;
9
+ @value cm_purple_200 from colors;
10
+ @value cm_orange_200 from colors;
11
+ @value white from colors;
12
+ @value lightBlack from colors;
13
+ @value cm_yellow_200 from colors;
14
+ @value cm_tablet from breakpoints;
15
+
16
+ .container {
17
+ font-family: Gilroy;
18
+ width: 245px;
19
+ border-radius: 7px;
20
+ background-color: cm_grey_50;
21
+ padding: 40px 37px 32px 37px;
22
+ overflow: hidden;
23
+ position: absolute;
24
+ top: 0px;
25
+ bottom: 0px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ }
29
+
30
+ .summary {
31
+ height: calc(100% - 90px);
32
+ }
33
+
34
+ .unsaved {
35
+ color: cm_yellow_200;
36
+ }
37
+
38
+ .summarySections {
39
+ height: 100%;
40
+ overflow: hidden auto;
41
+ }
42
+
43
+ .actionZone {
44
+ margin: 24px 0px 0px 0px;
45
+ display: flex;
46
+ justify-content: center;
47
+ }
48
+
49
+ .desktopSummaryTitle {
50
+ font-family: 'Gilroy';
51
+ font-style: normal;
52
+ font-weight: bold;
53
+ font-size: 20px;
54
+ margin: 0px 0px 24px 0px;
55
+ color: cm_grey_900;
56
+ display: block;
57
+ }
58
+
59
+ .tabletSummaryHeader {
60
+ display: none;
61
+ }
62
+
63
+ .sectionWrapper {
64
+ margin: 32px 0px 32px 0px;
65
+ }
66
+
67
+ .sectionWrapper:first-child {
68
+ margin: 0px;
69
+ }
70
+
71
+ .sectionWrapper:last-child {
72
+ margin-bottom: 0px;
73
+ }
74
+
75
+ .sectionHeader {
76
+ display: flex;
77
+ justify-content: space-between;
78
+ }
79
+
80
+ .counterText {
81
+ font-style: normal;
82
+ font-weight: normal;
83
+ font-size: 14px;
84
+ }
85
+
86
+ .title {
87
+ font-style: normal;
88
+ font-weight: bold;
89
+ font-size: 12px;
90
+ color: cm_grey_400;
91
+ display: block;
92
+ }
93
+
94
+ .value {
95
+ font-size: 14px;
96
+ font-weight: bold;
97
+ font-stretch: normal;
98
+ font-style: normal;
99
+ display: block;
100
+ }
101
+
102
+ .valueSimpleText {
103
+ composes: value;
104
+ margin: 8px 0px 0px 0px;
105
+ }
106
+
107
+ .contentWrapper {
108
+ margin: 8px 0px 0px 0px;
109
+ display: flex;
110
+ align-items: center;
111
+ }
112
+
113
+ .contentWrapper p {
114
+ margin: 0px;
115
+ }
116
+
117
+ .contentItem {
118
+ display: block;
119
+ max-width: calc(100% -25px);
120
+ }
121
+
122
+ .content {
123
+ display: flex;
124
+ align-items: center;
125
+ }
126
+
127
+ .contentCounter {
128
+ margin-right: 8px;
129
+ color: cm_grey_400;
130
+ font-size: 13px;
131
+ min-width: 20px;
132
+ text-align: center;
133
+ }
134
+
135
+ ul {
136
+ list-style: none;
137
+ padding: 0px;
138
+ margin: 0px;
139
+ }
140
+
141
+ .contentTitle {
142
+ margin: 0px 0px 0px 4px;
143
+ font-size: 13px;
144
+ text-overflow: ellipsis;
145
+ white-space: nowrap;
146
+ overflow: hidden;
147
+ }
148
+
149
+ .author {
150
+ font-size: 11px;
151
+ font-weight: 500;
152
+ font-style: normal;
153
+ color: cm_grey_300;
154
+ }
155
+
156
+ .checkbox {
157
+ display: none;
158
+ }
159
+
160
+ @media cm_tablet {
161
+ .container {
162
+ background-color: transparent;
163
+ width: calc(100% - 64px);
164
+ left: 0px;
165
+ right: 0px;
166
+ flex-direction: row;
167
+ align-items: flex-end;
168
+ padding: 0px 32px 0px 32px;
169
+ margin: 0px;
170
+ }
171
+
172
+ .desktopSummaryTitle {
173
+ display: none;
174
+ }
175
+
176
+ .tabletSummaryHeader {
177
+ display: flex;
178
+ justify-content: space-between;
179
+ font-size: 14px;
180
+ font-weight: bold;
181
+ padding: 0px 0px 32px 0px;
182
+ }
183
+
184
+ .summary {
185
+ width: calc(65% - 48px);
186
+ background-color: cm_grey_50;
187
+ border-radius: 7px;
188
+ height: 20px;
189
+ padding: 12px 24px 12px 24px;
190
+ transition: all 0.5s ease;
191
+ }
192
+
193
+ .actionZone {
194
+ width: 35%;
195
+ display: flex;
196
+ justify-content: center;
197
+ margin: 0px 0px 12px 0px;
198
+ }
199
+
200
+ .sectionWrapper:first-child {
201
+ margin: 0px;
202
+ }
203
+
204
+ label {
205
+ width: 100%;
206
+ right: 0px;
207
+ display: flex;
208
+ flex-direction: row;
209
+ cursor: pointer;
210
+ }
211
+
212
+ label .tabletSummaryTitle{
213
+ flex: 0 1 100%;
214
+ }
215
+
216
+ label .tabletSummaryIcon{
217
+ width: 12px;
218
+ transition: all 0.5s ease;
219
+ }
220
+
221
+ .checkbox:checked + .summary {
222
+ height: 65%;
223
+ padding: 24px;
224
+ box-shadow: 0 -6px 42px -14px rgba(0, 0, 0, 0.25);
225
+ transition: all 0.5s ease;
226
+ }
227
+ .checkbox:checked + .summary .tabletSummaryIcon {
228
+ transform: rotateZ(180deg);
229
+ }
230
+ }
@@ -0,0 +1,124 @@
1
+ export default {
2
+ props: {
3
+ title: 'Certification summary',
4
+ sections: [{
5
+ items: [{
6
+ type: 'mainElement',
7
+ title: 'Language',
8
+ value: '🇬🇧 English'
9
+ }, {
10
+ type: 'mainElement',
11
+ title: 'Name',
12
+ value: 'Marketing expert'
13
+ }]
14
+ }, {
15
+ title: 'Translation',
16
+ items: [{
17
+ type: 'text',
18
+ text: '🇫🇷 French'
19
+ }, {
20
+ type: 'text',
21
+ text: '🇪🇸 Spanish'
22
+ }, {
23
+ type: 'text',
24
+ text: '🇮🇹 Italian',
25
+ unsaved: true
26
+ }]
27
+ }, {
28
+ title: 'Populations',
29
+ items: [{
30
+ type: 'text',
31
+ text: 'Population 2'
32
+ }, {
33
+ type: 'text',
34
+ text: 'Population 1',
35
+ unsaved: true
36
+ }],
37
+ counterText: '2 population'
38
+ }, {
39
+ title: 'Courses',
40
+ items: [{
41
+ type: 'content',
42
+ title: 'Learn Everywhere #10 : Inclusion, Diversité, et autre élements importants',
43
+ category: 'video',
44
+ label: 'Video',
45
+ author: 'Coorpacademy, Faurecia University'
46
+ }, {
47
+ type: 'content',
48
+ title: 'Markteting and online advertising',
49
+ category: 'base',
50
+ label: 'Base',
51
+ author: 'Coorpacademy',
52
+ unsaved: true
53
+ }, {
54
+ type: 'content',
55
+ title: 'Faire une offre',
56
+ category: 'chapter',
57
+ label: "5' learning",
58
+ author: 'Global Exam'
59
+ }, {
60
+ type: 'content',
61
+ title: 'Cluedo: Meurtre sur Skill Island',
62
+ category: 'advanced',
63
+ label: 'Advanced',
64
+ author: 'Coorpacademy'
65
+ }, {
66
+ type: 'content',
67
+ title: 'Learn <b>Everywhere #10</b> : <u>Inclusion, Diversité</u>, et autre élements importants',
68
+ category: 'video',
69
+ label: 'Video',
70
+ author: 'Coorpacademy, Faurecia University'
71
+ }, {
72
+ type: 'content',
73
+ title: 'Mesurer la satisfaction client',
74
+ category: 'coach',
75
+ label: 'Coach',
76
+ author: 'Dunod Formation'
77
+ }, {
78
+ type: 'content',
79
+ title: 'Cluedo: Meurtre sur Skill Island',
80
+ category: 'advanced',
81
+ label: 'Advanced',
82
+ author: 'Coorpacademy'
83
+ }, {
84
+ type: 'content',
85
+ title: 'Suspects - épisode 1',
86
+ category: 'scorm',
87
+ label: 'Interactive slides',
88
+ author: 'Coorpacademy'
89
+ }, {
90
+ type: 'content',
91
+ title: '<p align="right"> وضع النصوص بالتصاميم سواء كانت تصاميم مطبوعه</p>',
92
+ category: 'coach',
93
+ label: 'Coach',
94
+ author: 'Dunod Formation'
95
+ }, {
96
+ type: 'content',
97
+ title: 'Cluedo: Meurtre sur Skill Island',
98
+ category: 'advanced',
99
+ label: 'Advanced',
100
+ author: 'Coorpacademy'
101
+ }, {
102
+ type: 'content',
103
+ title: 'Suspects - épisode 1',
104
+ category: 'scorm',
105
+ label: 'Interactive slides',
106
+ author: 'Coorpacademy'
107
+ }, {
108
+ type: 'content',
109
+ title: 'Mesurer la satisfaction client',
110
+ category: 'coach',
111
+ label: 'Coach',
112
+ author: 'Dunod Formation'
113
+ }],
114
+ counterText: '12 courses'
115
+ }],
116
+ action: {
117
+ icon: 'save',
118
+ text: 'Save in drafts',
119
+ 'aria-label': 'Save in drafts',
120
+ onClick: () => console.log('save')
121
+ }
122
+ }
123
+ };
124
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/wizard-summary/test/fixtures/default.js"],"names":["props","title","sections","items","type","value","text","unsaved","counterText","category","label","author","action","icon","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBADF;AAELC,IAAAA,QAAQ,EAAE,CACR;AACEC,MAAAA,KAAK,EAAE,CACL;AACEC,QAAAA,IAAI,EAAE,aADR;AAEEH,QAAAA,KAAK,EAAE,UAFT;AAGEI,QAAAA,KAAK,EAAE;AAHT,OADK,EAML;AACED,QAAAA,IAAI,EAAE,aADR;AAEEH,QAAAA,KAAK,EAAE,MAFT;AAGEI,QAAAA,KAAK,EAAE;AAHT,OANK;AADT,KADQ,EAeR;AACEJ,MAAAA,KAAK,EAAE,aADT;AAEEE,MAAAA,KAAK,EAAE,CACL;AACEC,QAAAA,IAAI,EAAE,MADR;AAEEE,QAAAA,IAAI,EAAE;AAFR,OADK,EAKL;AACEF,QAAAA,IAAI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AAKEC,QAAAA,MAAM,EAAE;AALV,OAzEK,EAgFL;AACEP,QAAAA,IAAI,EAAE,SADR;AAEEH,QAAAA,KAAK,EAAE,gCAFT;AAGEQ,QAAAA,QAAQ,EAAE,OAHZ;AAIEC,QAAAA,KAAK,EAAE,OAJT;AAKEC,QAAAA,MAAM,EAAE;AALV,OAhFK,CAFT;AA0FEH,MAAAA,WAAW,EAAE;AA1Ff,KAhDQ,CAFL;AA+ILI,IAAAA,MAAM,EAAE;AACNC,MAAAA,IAAI,EAAE,MADA;AAENP,MAAAA,IAAI,EAAE,gBAFA;AAGN,oBAAc,gBAHR;AAINQ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,MAAZ;AAJT;AA/IH;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Certification summary',\n sections: [\n {\n items: [\n {\n type: 'mainElement',\n title: 'Language',\n value: '🇬🇧 English'\n },\n {\n type: 'mainElement',\n title: 'Name',\n value: 'Marketing expert'\n }\n ]\n },\n {\n title: 'Translation',\n items: [\n {\n type: 'text',\n text: '🇫🇷 French'\n },\n {\n type: 'text',\n text: '🇪🇸 Spanish'\n },\n {\n type: 'text',\n text: '🇮🇹 Italian',\n unsaved: true\n }\n ]\n },\n {\n title: 'Populations',\n items: [\n {\n type: 'text',\n text: 'Population 2'\n },\n {\n type: 'text',\n text: 'Population 1',\n unsaved: true\n }\n ],\n counterText: '2 population'\n },\n {\n title: 'Courses',\n items: [\n {\n type: 'content',\n title: 'Learn Everywhere #10 : Inclusion, Diversité, et autre élements importants',\n category: 'video',\n label: 'Video',\n author: 'Coorpacademy, Faurecia University'\n },\n {\n type: 'content',\n title: 'Markteting and online advertising',\n category: 'base',\n label: 'Base',\n author: 'Coorpacademy',\n unsaved: true\n },\n {\n type: 'content',\n title: 'Faire une offre',\n category: 'chapter',\n label: \"5' learning\",\n author: 'Global Exam'\n },\n {\n type: 'content',\n title: 'Cluedo: Meurtre sur Skill Island',\n category: 'advanced',\n label: 'Advanced',\n author: 'Coorpacademy'\n },\n {\n type: 'content',\n title:\n 'Learn <b>Everywhere #10</b> : <u>Inclusion, Diversité</u>, et autre élements importants',\n category: 'video',\n label: 'Video',\n author: 'Coorpacademy, Faurecia University'\n },\n {\n type: 'content',\n title: 'Mesurer la satisfaction client',\n category: 'coach',\n label: 'Coach',\n author: 'Dunod Formation'\n },\n {\n type: 'content',\n title: 'Cluedo: Meurtre sur Skill Island',\n category: 'advanced',\n label: 'Advanced',\n author: 'Coorpacademy'\n },\n {\n type: 'content',\n title: 'Suspects - épisode 1',\n category: 'scorm',\n label: 'Interactive slides',\n author: 'Coorpacademy'\n },\n {\n type: 'content',\n title: '<p align=\"right\"> وضع النصوص بالتصاميم سواء كانت تصاميم مطبوعه</p>',\n category: 'coach',\n label: 'Coach',\n author: 'Dunod Formation'\n },\n {\n type: 'content',\n title: 'Cluedo: Meurtre sur Skill Island',\n category: 'advanced',\n label: 'Advanced',\n author: 'Coorpacademy'\n },\n {\n type: 'content',\n title: 'Suspects - épisode 1',\n category: 'scorm',\n label: 'Interactive slides',\n author: 'Coorpacademy'\n },\n {\n type: 'content',\n title: 'Mesurer la satisfaction client',\n category: 'coach',\n label: 'Coach',\n author: 'Dunod Formation'\n }\n ],\n counterText: '12 courses'\n }\n ],\n action: {\n icon: 'save',\n text: 'Save in drafts',\n 'aria-label': 'Save in drafts',\n onClick: () => console.log('save')\n }\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,23 @@
1
+ export default {
2
+ props: {
3
+ title: 'Certification summary',
4
+ sections: [{
5
+ items: [{
6
+ type: 'mainElement',
7
+ title: 'Language',
8
+ value: '🇬🇧 English'
9
+ }, {
10
+ type: 'mainElement',
11
+ title: 'Name',
12
+ value: 'Marketing expert'
13
+ }]
14
+ }],
15
+ action: {
16
+ icon: 'save',
17
+ text: 'Save in drafts',
18
+ 'aria-label': 'Save in drafts',
19
+ onClick: () => console.log('save')
20
+ }
21
+ }
22
+ };
23
+ //# sourceMappingURL=one-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/wizard-summary/test/fixtures/one-section.js"],"names":["props","title","sections","items","type","value","action","icon","text","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBADF;AAELC,IAAAA,QAAQ,EAAE,CACR;AACEC,MAAAA,KAAK,EAAE,CACL;AACEC,QAAAA,IAAI,EAAE,aADR;AAEEH,QAAAA,KAAK,EAAE,UAFT;AAGEI,QAAAA,KAAK,EAAE;AAHT,OADK,EAML;AACED,QAAAA,IAAI,EAAE,aADR;AAEEH,QAAAA,KAAK,EAAE,MAFT;AAGEI,QAAAA,KAAK,EAAE;AAHT,OANK;AADT,KADQ,CAFL;AAkBLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,IAAI,EAAE,MADA;AAENC,MAAAA,IAAI,EAAE,gBAFA;AAGN,oBAAc,gBAHR;AAINC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,MAAZ;AAJT;AAlBH;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Certification summary',\n sections: [\n {\n items: [\n {\n type: 'mainElement',\n title: 'Language',\n value: '🇬🇧 English'\n },\n {\n type: 'mainElement',\n title: 'Name',\n value: 'Marketing expert'\n }\n ]\n }\n ],\n action: {\n icon: 'save',\n text: 'Save in drafts',\n 'aria-label': 'Save in drafts',\n onClick: () => console.log('save')\n }\n }\n};\n"],"file":"one-section.js"}