@coorpacademy/components 10.1.1 → 10.1.5

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 (336) 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 +108 -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/chips/index.js +8 -4
  29. package/es/atom/chips/index.js.map +1 -1
  30. package/es/atom/chips/style.css +17 -2
  31. package/es/atom/chips/test/fixtures/long-text.js +9 -0
  32. package/es/atom/chips/test/fixtures/long-text.js.map +1 -0
  33. package/es/atom/content-badge/index.js +4 -4
  34. package/es/atom/content-badge/index.js.map +1 -1
  35. package/es/atom/input-search/index.js +65 -0
  36. package/es/atom/input-search/index.js.map +1 -0
  37. package/es/atom/input-search/style.css +202 -0
  38. package/es/{molecule/search → atom/input-search}/test/change.js +0 -0
  39. package/es/atom/input-search/test/change.js.map +1 -0
  40. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js +14 -0
  41. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  42. package/es/atom/input-search/test/fixtures/coorpmanager.js +13 -0
  43. package/es/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  44. package/es/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  45. package/es/atom/input-search/test/fixtures/default.js.map +1 -0
  46. package/es/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  47. package/es/atom/input-search/test/fixtures/with-value.js.map +1 -0
  48. package/es/atom/input-text/index.js +1 -1
  49. package/es/atom/input-text/index.js.map +1 -1
  50. package/es/atom/input-text/style.css +22 -13
  51. package/es/atom/input-textarea/index.js +36 -11
  52. package/es/atom/input-textarea/index.js.map +1 -1
  53. package/es/atom/input-textarea/style.css +265 -0
  54. package/es/atom/input-textarea/test/fixtures/cm-default.js +17 -0
  55. package/es/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  56. package/es/atom/input-textarea/test/fixtures/cm-empty.js +17 -0
  57. package/es/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  58. package/es/atom/tag/index.js +27 -0
  59. package/es/atom/tag/index.js.map +1 -0
  60. package/es/atom/tag/style.css +38 -0
  61. package/es/atom/tag/test/fixtures/archived.js +7 -0
  62. package/es/atom/tag/test/fixtures/archived.js.map +1 -0
  63. package/es/atom/tag/test/fixtures/default.js +7 -0
  64. package/es/atom/tag/test/fixtures/default.js.map +1 -0
  65. package/es/atom/tag/test/fixtures/published.js +7 -0
  66. package/es/atom/tag/test/fixtures/published.js.map +1 -0
  67. package/es/atom/tag/test/fixtures/revision.js +7 -0
  68. package/es/atom/tag/test/fixtures/revision.js.map +1 -0
  69. package/es/molecule/banner/index.js +46 -0
  70. package/es/molecule/banner/index.js.map +1 -0
  71. package/es/molecule/banner/style.css +63 -0
  72. package/es/molecule/banner/test/fixtures/default.js +11 -0
  73. package/es/molecule/banner/test/fixtures/default.js.map +1 -0
  74. package/es/molecule/banner/test/fixtures/error-banner.js +7 -0
  75. package/es/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  76. package/es/molecule/brand-form-group/test/fixtures/cm-default.js +51 -0
  77. package/es/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  78. package/es/molecule/brand-form-group/test/fixtures/default.js +12 -3
  79. package/es/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  80. package/es/molecule/card/index.js +16 -5
  81. package/es/molecule/card/index.js.map +1 -1
  82. package/es/molecule/card/selectable.css +71 -0
  83. package/es/molecule/card/selectable.js +32 -0
  84. package/es/molecule/card/selectable.js.map +1 -0
  85. package/es/molecule/card/test/fixtures/default.js +1 -0
  86. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  87. package/es/molecule/card/test/fixtures/selectable-false.js +16 -0
  88. package/es/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  89. package/es/molecule/card/test/fixtures/selectable-true.js +17 -0
  90. package/es/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  91. package/es/molecule/card-content/index.js +13 -3
  92. package/es/molecule/card-content/index.js.map +1 -1
  93. package/es/molecule/card-content/style.css +13 -3
  94. package/es/molecule/cm-popin/index.js +82 -0
  95. package/es/molecule/cm-popin/index.js.map +1 -0
  96. package/es/molecule/cm-popin/style.css +115 -0
  97. package/es/molecule/cm-popin/test/fixtures/dangerous.js +19 -0
  98. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  99. package/es/molecule/cm-popin/test/fixtures/default.js +19 -0
  100. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  101. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +20 -0
  102. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  103. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  104. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  105. package/es/molecule/feedback/test/fixtures.js +2 -0
  106. package/es/molecule/feedback/test/fixtures.js.map +1 -1
  107. package/es/molecule/search-form/index.js +1 -1
  108. package/es/molecule/search-form/index.js.map +1 -1
  109. package/es/molecule/select-multiple/index.js +113 -146
  110. package/es/molecule/select-multiple/index.js.map +1 -1
  111. package/es/molecule/select-multiple/test/index.js +20 -79
  112. package/es/molecule/select-multiple/test/index.js.map +1 -1
  113. package/es/molecule/wizard-summary/index.js +60 -25
  114. package/es/molecule/wizard-summary/index.js.map +1 -1
  115. package/es/molecule/wizard-summary/style.css +100 -20
  116. package/es/molecule/wizard-summary/test/fixtures/default.js +11 -4
  117. package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -1
  118. package/es/molecule/wizard-summary/test/fixtures/one-section.js +2 -1
  119. package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -1
  120. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +118 -0
  121. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  122. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +2 -1
  123. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  124. package/es/molecule/wizard-summary/test/fixtures/two-sections.js +2 -1
  125. package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -1
  126. package/es/organism/brand-table/index.js +1 -1
  127. package/es/organism/brand-table/index.js.map +1 -1
  128. package/es/organism/mooc-header/index.js +1 -1
  129. package/es/organism/mooc-header/index.js.map +1 -1
  130. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  131. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  132. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  133. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  134. package/es/organism/search-and-chips-results/index.js +91 -0
  135. package/es/organism/search-and-chips-results/index.js.map +1 -0
  136. package/es/organism/search-and-chips-results/style.css +57 -0
  137. package/es/organism/search-and-chips-results/test/fixtures/default.js +46 -0
  138. package/es/organism/search-and-chips-results/test/fixtures/default.js.map +1 -0
  139. package/es/organism/search-and-chips-results/test/fixtures/empty.js +23 -0
  140. package/es/organism/search-and-chips-results/test/fixtures/empty.js.map +1 -0
  141. package/es/organism/search-and-chips-results/test/fixtures/filtered.js +26 -0
  142. package/es/organism/search-and-chips-results/test/fixtures/filtered.js.map +1 -0
  143. package/es/organism/search-and-chips-results/test/fixtures/sorted-selected.js +49 -0
  144. package/es/organism/search-and-chips-results/test/fixtures/sorted-selected.js.map +1 -0
  145. package/es/organism/search-and-chips-results/test/fixtures/unsorted-selected.js +49 -0
  146. package/es/organism/search-and-chips-results/test/fixtures/unsorted-selected.js.map +1 -0
  147. package/es/template/app-player/popin-end/test/fixtures.js +2 -0
  148. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -1
  149. package/es/template/back-office/brand-list/index.js +6 -2
  150. package/es/template/back-office/brand-list/index.js.map +1 -1
  151. package/es/template/back-office/brand-list/style.css +1 -0
  152. package/es/variables/colors.css +7 -3
  153. package/lib/atom/button/index.js +3 -1
  154. package/lib/atom/button/index.js.map +1 -1
  155. package/lib/atom/button-link/index.js +125 -0
  156. package/lib/atom/button-link/index.js.map +1 -0
  157. package/lib/atom/button-link/style.css +97 -0
  158. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js +15 -0
  159. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  160. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js +19 -0
  161. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  162. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js +15 -0
  163. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  164. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +16 -0
  165. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  166. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js +19 -0
  167. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  168. package/lib/atom/button-link/test/fixtures/icon-button.js +18 -0
  169. package/lib/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  170. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +22 -0
  171. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  172. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js +25 -0
  173. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  174. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js +21 -0
  175. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  176. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +22 -0
  177. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  178. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js +18 -0
  179. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  180. package/lib/atom/chips/index.js +8 -4
  181. package/lib/atom/chips/index.js.map +1 -1
  182. package/lib/atom/chips/style.css +17 -2
  183. package/lib/atom/chips/test/fixtures/long-text.js +14 -0
  184. package/lib/atom/chips/test/fixtures/long-text.js.map +1 -0
  185. package/lib/atom/content-badge/index.js +4 -4
  186. package/lib/atom/content-badge/index.js.map +1 -1
  187. package/lib/{molecule/search → atom/input-search}/index.js +29 -18
  188. package/lib/atom/input-search/index.js.map +1 -0
  189. package/lib/atom/input-search/style.css +202 -0
  190. package/lib/{molecule/search → atom/input-search}/test/change.js +0 -0
  191. package/lib/atom/input-search/test/change.js.map +1 -0
  192. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js +19 -0
  193. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  194. package/lib/atom/input-search/test/fixtures/coorpmanager.js +18 -0
  195. package/lib/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  196. package/lib/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  197. package/lib/atom/input-search/test/fixtures/default.js.map +1 -0
  198. package/lib/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  199. package/lib/atom/input-search/test/fixtures/with-value.js.map +1 -0
  200. package/lib/atom/input-text/index.js +1 -1
  201. package/lib/atom/input-text/index.js.map +1 -1
  202. package/lib/atom/input-text/style.css +22 -13
  203. package/lib/atom/input-textarea/index.js +38 -11
  204. package/lib/atom/input-textarea/index.js.map +1 -1
  205. package/lib/atom/input-textarea/style.css +265 -0
  206. package/lib/atom/input-textarea/test/fixtures/cm-default.js +22 -0
  207. package/lib/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  208. package/lib/atom/input-textarea/test/fixtures/cm-empty.js +22 -0
  209. package/lib/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  210. package/lib/atom/tag/index.js +39 -0
  211. package/lib/atom/tag/index.js.map +1 -0
  212. package/lib/atom/tag/style.css +38 -0
  213. package/lib/atom/tag/test/fixtures/archived.js +12 -0
  214. package/lib/atom/tag/test/fixtures/archived.js.map +1 -0
  215. package/lib/atom/tag/test/fixtures/default.js +12 -0
  216. package/lib/atom/tag/test/fixtures/default.js.map +1 -0
  217. package/lib/atom/tag/test/fixtures/published.js +12 -0
  218. package/lib/atom/tag/test/fixtures/published.js.map +1 -0
  219. package/lib/atom/tag/test/fixtures/revision.js +12 -0
  220. package/lib/atom/tag/test/fixtures/revision.js.map +1 -0
  221. package/lib/molecule/banner/index.js +59 -0
  222. package/lib/molecule/banner/index.js.map +1 -0
  223. package/lib/molecule/banner/style.css +63 -0
  224. package/lib/molecule/banner/test/fixtures/default.js +16 -0
  225. package/lib/molecule/banner/test/fixtures/default.js.map +1 -0
  226. package/lib/molecule/banner/test/fixtures/error-banner.js +12 -0
  227. package/lib/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  228. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js +56 -0
  229. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  230. package/lib/molecule/brand-form-group/test/fixtures/default.js +12 -3
  231. package/lib/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  232. package/lib/molecule/card/index.js +17 -5
  233. package/lib/molecule/card/index.js.map +1 -1
  234. package/lib/molecule/card/selectable.css +71 -0
  235. package/lib/molecule/card/selectable.js +45 -0
  236. package/lib/molecule/card/selectable.js.map +1 -0
  237. package/lib/molecule/card/test/fixtures/default.js +1 -0
  238. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  239. package/lib/molecule/card/test/fixtures/selectable-false.js +26 -0
  240. package/lib/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  241. package/lib/molecule/card/test/fixtures/selectable-true.js +27 -0
  242. package/lib/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  243. package/lib/molecule/card-content/index.js +14 -3
  244. package/lib/molecule/card-content/index.js.map +1 -1
  245. package/lib/molecule/card-content/style.css +13 -3
  246. package/lib/molecule/cm-popin/index.js +94 -0
  247. package/lib/molecule/cm-popin/index.js.map +1 -0
  248. package/lib/molecule/cm-popin/style.css +115 -0
  249. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +24 -0
  250. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  251. package/lib/molecule/cm-popin/test/fixtures/default.js +24 -0
  252. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  253. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +25 -0
  254. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  255. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  256. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  257. package/lib/molecule/feedback/test/fixtures.js +3 -0
  258. package/lib/molecule/feedback/test/fixtures.js.map +1 -1
  259. package/lib/molecule/search-form/index.js +3 -3
  260. package/lib/molecule/search-form/index.js.map +1 -1
  261. package/lib/molecule/select-multiple/index.js +117 -143
  262. package/lib/molecule/select-multiple/index.js.map +1 -1
  263. package/lib/molecule/select-multiple/test/index.js +25 -79
  264. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  265. package/lib/molecule/wizard-summary/index.js +59 -23
  266. package/lib/molecule/wizard-summary/index.js.map +1 -1
  267. package/lib/molecule/wizard-summary/style.css +100 -20
  268. package/lib/molecule/wizard-summary/test/fixtures/default.js +11 -4
  269. package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -1
  270. package/lib/molecule/wizard-summary/test/fixtures/one-section.js +2 -1
  271. package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -1
  272. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +123 -0
  273. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  274. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +2 -1
  275. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  276. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +2 -1
  277. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -1
  278. package/lib/organism/brand-table/index.js +3 -3
  279. package/lib/organism/brand-table/index.js.map +1 -1
  280. package/lib/organism/mooc-header/index.js +2 -2
  281. package/lib/organism/mooc-header/index.js.map +1 -1
  282. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  283. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  284. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  285. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  286. package/lib/organism/search-and-chips-results/index.js +104 -0
  287. package/lib/organism/search-and-chips-results/index.js.map +1 -0
  288. package/lib/organism/search-and-chips-results/style.css +57 -0
  289. package/lib/organism/search-and-chips-results/test/fixtures/default.js +51 -0
  290. package/lib/organism/search-and-chips-results/test/fixtures/default.js.map +1 -0
  291. package/lib/organism/search-and-chips-results/test/fixtures/empty.js +28 -0
  292. package/lib/organism/search-and-chips-results/test/fixtures/empty.js.map +1 -0
  293. package/lib/organism/search-and-chips-results/test/fixtures/filtered.js +31 -0
  294. package/lib/organism/search-and-chips-results/test/fixtures/filtered.js.map +1 -0
  295. package/lib/organism/search-and-chips-results/test/fixtures/sorted-selected.js +54 -0
  296. package/lib/organism/search-and-chips-results/test/fixtures/sorted-selected.js.map +1 -0
  297. package/lib/organism/search-and-chips-results/test/fixtures/unsorted-selected.js +54 -0
  298. package/lib/organism/search-and-chips-results/test/fixtures/unsorted-selected.js.map +1 -0
  299. package/lib/template/app-player/popin-end/test/fixtures.js +3 -0
  300. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -1
  301. package/lib/template/back-office/brand-list/index.js +7 -3
  302. package/lib/template/back-office/brand-list/index.js.map +1 -1
  303. package/lib/template/back-office/brand-list/style.css +1 -0
  304. package/lib/variables/colors.css +7 -3
  305. package/package.json +3 -3
  306. package/es/atom/chips/test/fixtures.js +0 -15
  307. package/es/atom/chips/test/fixtures.js.map +0 -1
  308. package/es/atom/content-badge/test/fixtures.js +0 -27
  309. package/es/atom/content-badge/test/fixtures.js.map +0 -1
  310. package/es/atom/wizard-steps/test/fixtures.js +0 -17
  311. package/es/atom/wizard-steps/test/fixtures.js.map +0 -1
  312. package/es/molecule/search/index.js +0 -57
  313. package/es/molecule/search/index.js.map +0 -1
  314. package/es/molecule/search/style.css +0 -86
  315. package/es/molecule/search/test/change.js.map +0 -1
  316. package/es/molecule/search/test/fixtures/default.js.map +0 -1
  317. package/es/molecule/search/test/fixtures/with-value.js.map +0 -1
  318. package/es/molecule/vertical-tabs/test/fixtures.js +0 -15
  319. package/es/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  320. package/es/molecule/wizard-summary/test/fixtures.js +0 -19
  321. package/es/molecule/wizard-summary/test/fixtures.js.map +0 -1
  322. package/lib/atom/chips/test/fixtures.js +0 -25
  323. package/lib/atom/chips/test/fixtures.js.map +0 -1
  324. package/lib/atom/content-badge/test/fixtures.js +0 -43
  325. package/lib/atom/content-badge/test/fixtures.js.map +0 -1
  326. package/lib/atom/wizard-steps/test/fixtures.js +0 -28
  327. package/lib/atom/wizard-steps/test/fixtures.js.map +0 -1
  328. package/lib/molecule/search/index.js.map +0 -1
  329. package/lib/molecule/search/style.css +0 -86
  330. package/lib/molecule/search/test/change.js.map +0 -1
  331. package/lib/molecule/search/test/fixtures/default.js.map +0 -1
  332. package/lib/molecule/search/test/fixtures/with-value.js.map +0 -1
  333. package/lib/molecule/vertical-tabs/test/fixtures.js +0 -25
  334. package/lib/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  335. package/lib/molecule/wizard-summary/test/fixtures.js +0 -31
  336. package/lib/molecule/wizard-summary/test/fixtures.js.map +0 -1
@@ -3,6 +3,15 @@
3
3
  @value medium from colors;
4
4
  @value light from colors;
5
5
  @value negative from colors;
6
+ @value xtraLightGrey from colors;
7
+ @value cm_positive_100 from colors;
8
+ @value cm_negative_100 from colors;
9
+ @value cm_grey_100 from colors;
10
+ @value cm_grey_150 from colors;
11
+ @value cm_grey_200 from colors;
12
+ @value cm_grey_400 from colors;
13
+ @value cm_grey_500 from colors;
14
+ @value cm_grey_700 from colors;
6
15
 
7
16
  .default {
8
17
  display: flex;
@@ -169,3 +178,259 @@
169
178
  align-self: flex-start;
170
179
  padding-left: 13px;
171
180
  }
181
+
182
+ /******************************* coorpmanager theme ***************************************/
183
+
184
+
185
+ .coorpmanager {
186
+ width: 100%;
187
+ position: relative;
188
+ display: flex;
189
+ flex-direction: column;
190
+ align-items: flex-start;
191
+ flex-wrap: nowrap;
192
+ }
193
+
194
+ .coorpmanager label {
195
+ width: 100%;
196
+ display: flex;
197
+ flex-direction: column;
198
+ align-items: flex-start;
199
+ height: auto;
200
+ position: relative;
201
+ }
202
+
203
+ .coorpmanager .title {
204
+ flex-grow: 0;
205
+ font-family: Gilroy;
206
+ font-size: 10px;
207
+ font-weight: bold;
208
+ font-stretch: normal;
209
+ font-style: normal;
210
+ line-height: 1.2;
211
+ letter-spacing: normal;
212
+ text-align: left;
213
+ z-index: 1;
214
+ color: cm_grey_400;
215
+ width: auto;
216
+ transition: all 0.25s linear;
217
+ pointer-events: none;
218
+ display: flex;
219
+ flex-direction: row;
220
+ flex-wrap: nowrap;
221
+ top: 15px;
222
+ left: 16px;
223
+ position: absolute;
224
+ margin: 0;
225
+ }
226
+
227
+ .coorpmanager .title.noValue .infoIcon {
228
+ height: 10px;
229
+ width: 10px;
230
+ line-height: 12px;
231
+ color: cm_grey_500;
232
+ }
233
+
234
+ .coorpmanager textarea {
235
+ width: stretch;
236
+ min-height: 145px;
237
+ resize: vertical;
238
+ flex-grow: 0;
239
+ display: flex;
240
+ box-sizing: border-box;
241
+ flex-direction: column;
242
+ justify-content: center;
243
+ align-items: flex-start;
244
+ padding: 35px 0px 0px 17px;
245
+ border-radius: 7px;
246
+ background-color: transparent;
247
+ font-family: Gilroy;
248
+ font-size: 14px;
249
+ font-weight: 500;
250
+ font-stretch: normal;
251
+ font-style: normal;
252
+ line-height: 21px;
253
+ letter-spacing: normal;
254
+ text-align: left;
255
+ color: cm_grey_700;
256
+ border: none;
257
+ transition: all 0.25s linear;
258
+ outline: none;
259
+ display: flex;
260
+ margin: 0px 16px 13px 0px;
261
+ box-sizing: border-box;
262
+ position: relative;
263
+ }
264
+
265
+ .coorpmanager label::before {
266
+ content: '';
267
+ top: 0px;
268
+ bottom: 20px;
269
+ left: 0px;
270
+ right: 0px;
271
+ position: absolute;
272
+ background-color: cm_grey_100;
273
+ border-radius: 7px;
274
+ transition: all 0.25s linear;
275
+ }
276
+
277
+ .coorpmanager .title.noValue{
278
+ font-size: 14px;
279
+ font-weight: 500;
280
+ color: cm_grey_700;
281
+ }
282
+
283
+ .coorpmanager:focus-within .title.noValue {
284
+ font-size: 10px;
285
+ font-weight: bold;
286
+ color: cm_grey_400;
287
+ top: 15px;
288
+ }
289
+
290
+ .coorpmanager:focus-within textarea::placeholder {
291
+ color: cm_grey_400;
292
+ }
293
+
294
+ .coorpmanager:focus-within .title.noValue .infoIcon {
295
+ width: 8px;
296
+ height: 8px;
297
+ line-height: 12px;
298
+ color: cm_grey_400;
299
+ }
300
+
301
+
302
+
303
+ .coorpmanager label:hover:before {
304
+ background-color: cm_grey_150;
305
+ }
306
+
307
+ .coorpmanager textarea::placeholder {
308
+ color: transparent;
309
+ transition: all 0.25s linear;
310
+ }
311
+
312
+ .coorpmanager .hint {
313
+ flex-grow: 0;
314
+ opacity: 0.5;
315
+ font-family: Gilroy;
316
+ font-size: 10px;
317
+ font-weight: 500;
318
+ font-stretch: normal;
319
+ font-style: normal;
320
+ line-height: 1.2;
321
+ letter-spacing: normal;
322
+ text-align: left;
323
+ padding-top: 8px;
324
+ color: cm_grey_700;
325
+ height: 12px;
326
+ }
327
+
328
+ .coorpmanager.error .hint {
329
+ color: cm_negative_100;
330
+ }
331
+
332
+ .coorpmanager.error .leftIcon {
333
+ background-color: cm_negative_100;
334
+ color: white;
335
+ border-radius: 50%;
336
+ padding: 2px;
337
+ width: 11px;
338
+ height: 11px;
339
+ right: 17px;
340
+ top: 13px;
341
+ }
342
+
343
+ .coorpmanager .leftIcon {
344
+ color: cm_positive_100;
345
+ width: 17px;
346
+ height: 17px;
347
+ position: absolute;
348
+ right: 15px;
349
+ top: 12px;
350
+ }
351
+
352
+ .coorpmanager.disabled {
353
+ opacity: 0.5;
354
+ }
355
+
356
+ .coorpmanager .infoIconWrapper {
357
+ overflow: visible;
358
+ height: 12px;
359
+ margin: 0px 4px;
360
+ cursor: pointer;
361
+ pointer-events: fill;
362
+ position: relative;
363
+ }
364
+
365
+ .coorpmanager .infoIcon {
366
+ cursor: pointer;
367
+ width: 8px;
368
+ height: 8px;
369
+ line-height: 16px;
370
+ color: cm_grey_400;
371
+ transition: all 0.25s linear;
372
+ }
373
+
374
+ .coorpmanager .infoIconWrapper:hover .descriptionLabel {
375
+ visibility: visible;
376
+ opacity: 1;
377
+ }
378
+
379
+ .coorpmanager .descriptionLabel {
380
+ margin: 0 1px 18px 0;
381
+ padding: 8px 16px;
382
+ border-radius: 7px;
383
+ background-color: cm_grey_700;
384
+ flex-grow: 0;
385
+ font-family: Gilroy;
386
+ font-size: 14px;
387
+ font-weight: 500;
388
+ font-stretch: normal;
389
+ font-style: normal;
390
+ line-height: 1.43;
391
+ letter-spacing: normal;
392
+ text-align: center;
393
+ color: white;
394
+ padding: 8px 16px;
395
+ max-width: 200px;
396
+ position: absolute;
397
+ left: -24px;
398
+ z-index: 3;
399
+ bottom: 5px;
400
+ width: max-content;
401
+ visibility: hidden;
402
+ opacity: 0s
403
+ }
404
+
405
+ .coorpmanager .descriptionLabel::after{
406
+ content:'';
407
+ border-left: 6px solid transparent;
408
+ border-right: 6px solid transparent;
409
+ border-top: 6px solid cm_grey_700;
410
+ position: absolute;
411
+ bottom: -6px;
412
+ left: 21px;
413
+ }
414
+ .coorpmanager .title.noValue .descriptionLabel::after{
415
+ left: 22px;
416
+ }
417
+ .coorpmanager:focus-within .title.noValue .descriptionLabel::after{
418
+ left: 21px;
419
+ }
420
+ .coorpmanager textarea::-webkit-resizer {
421
+ background: repeating-linear-gradient(
422
+ 135deg,
423
+ transparent,
424
+ transparent 14px,
425
+ cm_grey_400 14px,
426
+ cm_grey_400 15.5px,
427
+ transparent 15.5px,
428
+ transparent 17px,
429
+ cm_grey_400 17px,
430
+ cm_grey_400 18.5px,
431
+ transparent 18.5px,
432
+ transparent 20px,
433
+ cm_grey_400 20px,
434
+ cm_grey_400 21.5px
435
+ );
436
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'textarea',
8
+ title: 'Input name',
9
+ hint: 'Hint <span style="color:red;">10<span>/40',
10
+ placeholder: 'This is an input',
11
+ theme: 'coorpmanager',
12
+ description: 'This is the tooltip text',
13
+ value: 'This is an input',
14
+ disabled: false,
15
+ valid: false,
16
+ error: '',
17
+ required: true,
18
+ onChange: value => console.log(value)
19
+ }
20
+ };
21
+ exports.default = _default;
22
+ //# sourceMappingURL=cm-default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-textarea/test/fixtures/cm-default.js"],"names":["props","type","title","hint","placeholder","theme","description","value","disabled","valid","error","required","onChange","console","log"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,UADD;AAELC,IAAAA,KAAK,EAAE,YAFF;AAGLC,IAAAA,IAAI,EAAE,2CAHD;AAILC,IAAAA,WAAW,EAAE,kBAJR;AAKLC,IAAAA,KAAK,EAAE,cALF;AAMLC,IAAAA,WAAW,EAAE,0BANR;AAOLC,IAAAA,KAAK,EAAE,kBAPF;AAQLC,IAAAA,QAAQ,EAAE,KARL;AASLC,IAAAA,KAAK,EAAE,KATF;AAULC,IAAAA,KAAK,EAAE,EAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,QAAQ,EAAEL,KAAK,IAAIM,OAAO,CAACC,GAAR,CAAYP,KAAZ;AAZd;AADM,C","sourcesContent":["export default {\n props: {\n type: 'textarea',\n title: 'Input name',\n hint: 'Hint <span style=\"color:red;\">10<span>/40',\n placeholder: 'This is an input',\n theme: 'coorpmanager',\n description: 'This is the tooltip text',\n value: 'This is an input',\n disabled: false,\n valid: false,\n error: '',\n required: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"cm-default.js"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'textarea',
8
+ title: 'Input name',
9
+ hint: 'Hint <span style="color:red;">10<span>/40',
10
+ placeholder: 'This is an input',
11
+ theme: 'coorpmanager',
12
+ description: 'This is the tooltip text',
13
+ value: '',
14
+ disabled: false,
15
+ valid: false,
16
+ error: '',
17
+ required: true,
18
+ onChange: value => console.log(value)
19
+ }
20
+ };
21
+ exports.default = _default;
22
+ //# sourceMappingURL=cm-empty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-textarea/test/fixtures/cm-empty.js"],"names":["props","type","title","hint","placeholder","theme","description","value","disabled","valid","error","required","onChange","console","log"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,UADD;AAELC,IAAAA,KAAK,EAAE,YAFF;AAGLC,IAAAA,IAAI,EAAE,2CAHD;AAILC,IAAAA,WAAW,EAAE,kBAJR;AAKLC,IAAAA,KAAK,EAAE,cALF;AAMLC,IAAAA,WAAW,EAAE,0BANR;AAOLC,IAAAA,KAAK,EAAE,EAPF;AAQLC,IAAAA,QAAQ,EAAE,KARL;AASLC,IAAAA,KAAK,EAAE,KATF;AAULC,IAAAA,KAAK,EAAE,EAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,QAAQ,EAAEL,KAAK,IAAIM,OAAO,CAACC,GAAR,CAAYP,KAAZ;AAZd;AADM,C","sourcesContent":["export default {\n props: {\n type: 'textarea',\n title: 'Input name',\n hint: 'Hint <span style=\"color:red;\">10<span>/40',\n placeholder: 'This is an input',\n theme: 'coorpmanager',\n description: 'This is the tooltip text',\n value: '',\n disabled: false,\n valid: false,\n error: '',\n required: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"cm-empty.js"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _style = _interopRequireDefault(require("./style.css"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ const TAG_STYLES = {
17
+ default: _style.default.default,
18
+ published: _style.default.published,
19
+ revision: _style.default.revision,
20
+ archived: _style.default.archived
21
+ };
22
+
23
+ const Tag = props => {
24
+ const {
25
+ label,
26
+ type = 'default'
27
+ } = props;
28
+ return /*#__PURE__*/_react.default.createElement("span", {
29
+ className: TAG_STYLES[type]
30
+ }, label);
31
+ };
32
+
33
+ Tag.propTypes = process.env.NODE_ENV !== "production" ? {
34
+ label: _propTypes.default.string,
35
+ type: _propTypes.default.oneOf((0, _keys2.default)(TAG_STYLES))
36
+ } : {};
37
+ var _default = Tag;
38
+ exports.default = _default;
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/tag/index.js"],"names":["TAG_STYLES","default","style","published","revision","archived","Tag","props","label","type","propTypes","PropTypes","string","oneOf"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;AAEA,MAAMA,UAAU,GAAG;AACjBC,EAAAA,OAAO,EAAEC,eAAMD,OADE;AAEjBE,EAAAA,SAAS,EAAED,eAAMC,SAFA;AAGjBC,EAAAA,QAAQ,EAAEF,eAAME,QAHC;AAIjBC,EAAAA,QAAQ,EAAEH,eAAMG;AAJC,CAAnB;;AAOA,MAAMC,GAAG,GAAGC,KAAK,IAAI;AACnB,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,IAAI,GAAG;AAAf,MAA4BF,KAAlC;AAEA,sBAAO;AAAM,IAAA,SAAS,EAAEP,UAAU,CAACS,IAAD;AAA3B,KAAoCD,KAApC,CAAP;AACD,CAJD;;AAMAF,GAAG,CAACI,SAAJ,2CAAgB;AACdF,EAAAA,KAAK,EAAEG,mBAAUC,MADH;AAEdH,EAAAA,IAAI,EAAEE,mBAAUE,KAAV,CAAgB,oBAAKb,UAAL,CAAhB;AAFQ,CAAhB;eAKeM,G","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport style from './style.css';\n\nconst TAG_STYLES = {\n default: style.default,\n published: style.published,\n revision: style.revision,\n archived: style.archived\n};\n\nconst Tag = props => {\n const {label, type = 'default'} = props;\n\n return <span className={TAG_STYLES[type]}>{label}</span>;\n};\n\nTag.propTypes = {\n label: PropTypes.string,\n type: PropTypes.oneOf(keys(TAG_STYLES))\n};\n\nexport default Tag;\n"],"file":"index.js"}
@@ -0,0 +1,38 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value white from colors;
3
+ @value cm_yellow_200 from colors;
4
+ @value cm_positive_100 from colors;
5
+ @value cm_orange_700 from colors;
6
+ @value black from colors;
7
+
8
+ .tag {
9
+ border-radius: 24px;
10
+ font-family: 'Gilroy';
11
+ font-size: 14px;
12
+ font-weight: bold;
13
+ min-width: 90px;
14
+ padding: 12px 16px;
15
+ }
16
+
17
+ .default {
18
+ composes: tag;
19
+ color: black;
20
+ }
21
+
22
+ .revision {
23
+ composes: tag;
24
+ background-color: color(cm_yellow_200 a(15%));
25
+ color: cm_yellow_200;
26
+ }
27
+
28
+ .published {
29
+ composes: tag;
30
+ background-color: color(cm_positive_100 a(15%));
31
+ color: cm_positive_100;
32
+ }
33
+
34
+ .archived {
35
+ composes: tag;
36
+ background-color: color(cm_orange_700 a(15%));
37
+ color: cm_orange_700;
38
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ label: 'Archived',
8
+ type: 'archived'
9
+ }
10
+ };
11
+ exports.default = _default;
12
+ //# sourceMappingURL=archived.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/tag/test/fixtures/archived.js"],"names":["props","label","type"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,UADF;AAELC,IAAAA,IAAI,EAAE;AAFD;AADM,C","sourcesContent":["export default {\n props: {\n label: 'Archived',\n type: 'archived'\n }\n};\n"],"file":"archived.js"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ label: 'Default',
8
+ type: undefined
9
+ }
10
+ };
11
+ exports.default = _default;
12
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/tag/test/fixtures/default.js"],"names":["props","label","type","undefined"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,SADF;AAELC,IAAAA,IAAI,EAAEC;AAFD;AADM,C","sourcesContent":["export default {\n props: {\n label: 'Default',\n type: undefined\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ label: 'Published',
8
+ type: 'published'
9
+ }
10
+ };
11
+ exports.default = _default;
12
+ //# sourceMappingURL=published.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/tag/test/fixtures/published.js"],"names":["props","label","type"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,IAAI,EAAE;AAFD;AADM,C","sourcesContent":["export default {\n props: {\n label: 'Published',\n type: 'published'\n }\n};\n"],"file":"published.js"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ label: 'Ongoing changes',
8
+ type: 'revision'
9
+ }
10
+ };
11
+ exports.default = _default;
12
+ //# sourceMappingURL=revision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/tag/test/fixtures/revision.js"],"names":["props","label","type"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,iBADF;AAELC,IAAAA,IAAI,EAAE;AAFD;AADM,C","sourcesContent":["export default {\n props: {\n label: 'Ongoing changes',\n type: 'revision'\n }\n};\n"],"file":"revision.js"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireDefault(require("react"));
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _novaIcons = require("@coorpacademy/nova-icons");
13
+
14
+ var _link = _interopRequireDefault(require("../../atom/link"));
15
+
16
+ var _style = _interopRequireDefault(require("./style.css"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ const Banner = props => {
21
+ const {
22
+ type,
23
+ message,
24
+ firstCTA,
25
+ firstCTALabel,
26
+ secondCTALabel,
27
+ secondCTA
28
+ } = props;
29
+ return /*#__PURE__*/_react.default.createElement("div", {
30
+ className: (0, _classnames.default)(_style.default.banner, type === 'error' && _style.default.errorBanner)
31
+ }, /*#__PURE__*/_react.default.createElement("div", {
32
+ "data-name": `${type}-banner-message`,
33
+ className: _style.default.message
34
+ }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidInterfaceFeedbackInterfaceAlertDiamond, {
35
+ className: _style.default.icon
36
+ }), message), firstCTALabel ? /*#__PURE__*/_react.default.createElement(_link.default, {
37
+ "data-name": "first-banner-cta",
38
+ className: _style.default.button,
39
+ onClick: firstCTA
40
+ }, firstCTALabel) : null, firstCTALabel && secondCTALabel ? /*#__PURE__*/_react.default.createElement("div", {
41
+ className: _style.default.buttonsBar
42
+ }) : null, secondCTALabel ? /*#__PURE__*/_react.default.createElement(_link.default, {
43
+ "data-name": "second-banner-cta",
44
+ className: _style.default.button,
45
+ onClick: secondCTA
46
+ }, secondCTALabel) : null);
47
+ };
48
+
49
+ Banner.propTypes = process.env.NODE_ENV !== "production" ? {
50
+ type: _propTypes.default.oneOf(['information', 'error']),
51
+ message: _propTypes.default.string.isRequired,
52
+ firstCTA: _propTypes.default.func,
53
+ firstCTALabel: _propTypes.default.string,
54
+ secondCTALabel: _propTypes.default.string,
55
+ secondCTA: _propTypes.default.func
56
+ } : {};
57
+ var _default = Banner;
58
+ exports.default = _default;
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/banner/index.js"],"names":["Banner","props","type","message","firstCTA","firstCTALabel","secondCTALabel","secondCTA","style","banner","errorBanner","icon","button","buttonsBar","propTypes","PropTypes","oneOf","string","isRequired","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,MAAM,GAAGC,KAAK,IAAI;AACtB,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA,OAAP;AAAgBC,IAAAA,QAAhB;AAA0BC,IAAAA,aAA1B;AAAyCC,IAAAA,cAAzC;AAAyDC,IAAAA;AAAzD,MAAsEN,KAA5E;AACA,sBACE;AAAK,IAAA,SAAS,EAAE,yBAAWO,eAAMC,MAAjB,EAAyBP,IAAI,KAAK,OAAT,IAAoBM,eAAME,WAAnD;AAAhB,kBACE;AAAK,iBAAY,GAAER,IAAK,iBAAxB;AAA0C,IAAA,SAAS,EAAEM,eAAML;AAA3D,kBACE,6BAAC,0DAAD;AAAc,IAAA,SAAS,EAAEK,eAAMG;AAA/B,IADF,EAEGR,OAFH,CADF,EAKGE,aAAa,gBACZ,6BAAC,aAAD;AAAM,iBAAU,kBAAhB;AAAmC,IAAA,SAAS,EAAEG,eAAMI,MAApD;AAA4D,IAAA,OAAO,EAAER;AAArE,KACGC,aADH,CADY,GAIV,IATN,EAUGA,aAAa,IAAIC,cAAjB,gBAAkC;AAAK,IAAA,SAAS,EAAEE,eAAMK;AAAtB,IAAlC,GAAyE,IAV5E,EAWGP,cAAc,gBACb,6BAAC,aAAD;AAAM,iBAAU,mBAAhB;AAAoC,IAAA,SAAS,EAAEE,eAAMI,MAArD;AAA6D,IAAA,OAAO,EAAEL;AAAtE,KACGD,cADH,CADa,GAIX,IAfN,CADF;AAmBD,CArBD;;AAuBAN,MAAM,CAACc,SAAP,2CAAmB;AACjBZ,EAAAA,IAAI,EAAEa,mBAAUC,KAAV,CAAgB,CAAC,aAAD,EAAgB,OAAhB,CAAhB,CADW;AAEjBb,EAAAA,OAAO,EAAEY,mBAAUE,MAAV,CAAiBC,UAFT;AAGjBd,EAAAA,QAAQ,EAAEW,mBAAUI,IAHH;AAIjBd,EAAAA,aAAa,EAAEU,mBAAUE,MAJR;AAKjBX,EAAAA,cAAc,EAAES,mBAAUE,MALT;AAMjBV,EAAAA,SAAS,EAAEQ,mBAAUI;AANJ,CAAnB;eASenB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {NovaSolidInterfaceFeedbackInterfaceAlertDiamond as QuestionIcon} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport style from './style.css';\n\nconst Banner = props => {\n const {type, message, firstCTA, firstCTALabel, secondCTALabel, secondCTA} = props;\n return (\n <div className={classnames(style.banner, type === 'error' && style.errorBanner)}>\n <div data-name={`${type}-banner-message`} className={style.message}>\n <QuestionIcon className={style.icon} />\n {message}\n </div>\n {firstCTALabel ? (\n <Link data-name=\"first-banner-cta\" className={style.button} onClick={firstCTA}>\n {firstCTALabel}\n </Link>\n ) : null}\n {firstCTALabel && secondCTALabel ? <div className={style.buttonsBar} /> : null}\n {secondCTALabel ? (\n <Link data-name=\"second-banner-cta\" className={style.button} onClick={secondCTA}>\n {secondCTALabel}\n </Link>\n ) : null}\n </div>\n );\n};\n\nBanner.propTypes = {\n type: PropTypes.oneOf(['information', 'error']),\n message: PropTypes.string.isRequired,\n firstCTA: PropTypes.func,\n firstCTALabel: PropTypes.string,\n secondCTALabel: PropTypes.string,\n secondCTA: PropTypes.func\n};\n\nexport default Banner;\n"],"file":"index.js"}
@@ -0,0 +1,63 @@
1
+ @value breakpoints: "../../variables/breakpoints.css";
2
+ @value mobile from breakpoints;
3
+ @value colors: "../../variables/colors.css";
4
+ @value white from colors;
5
+ @value medium from colors;
6
+ @value cm_negative_50 from colors;
7
+ @value cm_negative_200 from colors;
8
+ @value cm_warning_50 from colors;
9
+ @value cm_yellow_200 from colors;
10
+
11
+ .banner {
12
+ display: flex;
13
+ flex-direction: row;
14
+ justify-content: flex-start;
15
+ align-items: center;
16
+ gap: 8px;
17
+ padding: 16px 24px;
18
+ border-radius: 5px;
19
+ background-color: cm_warning_50;
20
+ color: cm_yellow_200;
21
+ border-radius: 5px;
22
+ }
23
+
24
+ .errorBanner {
25
+ background-color: cm_negative_50;
26
+ color: cm_negative_200;
27
+ }
28
+
29
+ .button {
30
+ flex-grow: 0;
31
+ font-family: Gilroy;
32
+ font-size: 12px;
33
+ font-weight: bold;
34
+ line-height: 1.33;
35
+ background-color: transparent;
36
+ }
37
+
38
+ .buttonsBar {
39
+ width: 1px;
40
+ align-self: stretch;
41
+ flex-grow: 0;
42
+ opacity: 0.1;
43
+ background-color: cm_yellow_200;
44
+ }
45
+
46
+ .icon {
47
+ height: 22px;
48
+ margin-right: 16px;
49
+ }
50
+
51
+ .message {
52
+ font-family: 'Gilroy';
53
+ font-size: 14px;
54
+ font-weight: 600;
55
+ font-stretch: normal;
56
+ font-style: normal;
57
+ line-height: normal;
58
+ letter-spacing: normal;
59
+ flex: 0 1 100%;
60
+ display: flex;
61
+ align-content: center;
62
+ align-items: center;
63
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'information',
8
+ message: 'Changes saved but not published. Do you want to update this custom playlist now? ',
9
+ firstCTALabel: 'Undo',
10
+ firstCTA: () => console.log('first cta'),
11
+ secondCTALabel: 'Update',
12
+ secondCTA: () => console.log('second cta')
13
+ }
14
+ };
15
+ exports.default = _default;
16
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/banner/test/fixtures/default.js"],"names":["props","type","message","firstCTALabel","firstCTA","console","log","secondCTALabel","secondCTA"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,aADD;AAELC,IAAAA,OAAO,EAAE,mFAFJ;AAGLC,IAAAA,aAAa,EAAE,MAHV;AAILC,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ,CAJX;AAKLC,IAAAA,cAAc,EAAE,QALX;AAMLC,IAAAA,SAAS,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,YAAZ;AANZ;AADM,C","sourcesContent":["export default {\n props: {\n type: 'information',\n message: 'Changes saved but not published. Do you want to update this custom playlist now? ',\n firstCTALabel: 'Undo',\n firstCTA: () => console.log('first cta'),\n secondCTALabel: 'Update',\n secondCTA: () => console.log('second cta')\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ type: 'error',
8
+ message: 'Unable to publish this custom playlist. You must complete all the creation steps before publishing it. '
9
+ }
10
+ };
11
+ exports.default = _default;
12
+ //# sourceMappingURL=error-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/banner/test/fixtures/error-banner.js"],"names":["props","type","message"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,OADD;AAELC,IAAAA,OAAO,EACL;AAHG;AADM,C","sourcesContent":["export default {\n props: {\n type: 'error',\n message:\n 'Unable to publish this custom playlist. You must complete all the creation steps before publishing it. '\n }\n};\n"],"file":"error-banner.js"}