@coorpacademy/components 10.1.2 → 10.1.6

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 (353) hide show
  1. package/es/atom/button-link/index.js +108 -0
  2. package/es/atom/button-link/index.js.map +1 -0
  3. package/es/atom/button-link/style.css +93 -0
  4. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js +10 -0
  5. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  6. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js +14 -0
  7. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  8. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js +10 -0
  9. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  10. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +11 -0
  11. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  12. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js +14 -0
  13. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  14. package/es/atom/button-link/test/fixtures/icon-button.js +13 -0
  15. package/es/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  16. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +17 -0
  17. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  18. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js +20 -0
  19. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  20. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js +16 -0
  21. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  22. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +17 -0
  23. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  24. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js +13 -0
  25. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  26. package/es/atom/button-link/test/fixtures.js +33 -0
  27. package/es/atom/button-link/test/fixtures.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/chips/test/fixtures.js +17 -0
  34. package/es/atom/chips/test/fixtures.js.map +1 -0
  35. package/es/atom/content-badge/test/fixtures.js +27 -0
  36. package/es/atom/content-badge/test/fixtures.js.map +1 -0
  37. package/es/atom/input-checkbox/test/fixtures.js +2 -0
  38. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  39. package/es/atom/input-search/index.js +65 -0
  40. package/es/atom/input-search/index.js.map +1 -0
  41. package/es/atom/input-search/style.css +202 -0
  42. package/es/{molecule/search → atom/input-search}/test/change.js +0 -0
  43. package/es/atom/input-search/test/change.js.map +1 -0
  44. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js +14 -0
  45. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  46. package/es/atom/input-search/test/fixtures/coorpmanager.js +13 -0
  47. package/es/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  48. package/es/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  49. package/es/atom/input-search/test/fixtures/default.js.map +1 -0
  50. package/es/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  51. package/es/atom/input-search/test/fixtures/with-value.js.map +1 -0
  52. package/es/atom/input-search/test/fixtures.js +19 -0
  53. package/es/atom/input-search/test/fixtures.js.map +1 -0
  54. package/es/atom/input-text/style.css +6 -2
  55. package/es/atom/input-text/test/fixtures.js +2 -0
  56. package/es/atom/input-text/test/fixtures.js.map +1 -1
  57. package/es/atom/input-textarea/style.css +3 -3
  58. package/es/atom/input-textarea/test/fixtures.js +4 -0
  59. package/es/atom/input-textarea/test/fixtures.js.map +1 -1
  60. package/es/atom/tag/index.js +27 -0
  61. package/es/atom/tag/index.js.map +1 -0
  62. package/es/atom/tag/style.css +38 -0
  63. package/es/atom/tag/test/fixtures/archived.js +7 -0
  64. package/es/atom/tag/test/fixtures/archived.js.map +1 -0
  65. package/es/atom/tag/test/fixtures/default.js +7 -0
  66. package/es/atom/tag/test/fixtures/default.js.map +1 -0
  67. package/es/atom/tag/test/fixtures/published.js +7 -0
  68. package/es/atom/tag/test/fixtures/published.js.map +1 -0
  69. package/es/atom/tag/test/fixtures/revision.js +7 -0
  70. package/es/atom/tag/test/fixtures/revision.js.map +1 -0
  71. package/es/atom/tag/test/fixtures.js +19 -0
  72. package/es/atom/tag/test/fixtures.js.map +1 -0
  73. package/es/atom/title/test/fixtures.js +6 -2
  74. package/es/atom/title/test/fixtures.js.map +1 -1
  75. package/es/atom/wizard-steps/test/fixtures.js +17 -0
  76. package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
  77. package/es/molecule/banner/index.js +19 -10
  78. package/es/molecule/banner/index.js.map +1 -1
  79. package/es/molecule/banner/style.css +13 -11
  80. package/es/molecule/banner/test/fixtures.js +15 -0
  81. package/es/molecule/banner/test/fixtures.js.map +1 -0
  82. package/es/molecule/brand-form-group/index.js +20 -5
  83. package/es/molecule/brand-form-group/index.js.map +1 -1
  84. package/es/molecule/brand-form-group/style.css +19 -0
  85. package/es/molecule/brand-form-group/test/fixtures.js +2 -0
  86. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
  87. package/es/molecule/card/test/fixtures.js +4 -0
  88. package/es/molecule/card/test/fixtures.js.map +1 -1
  89. package/es/molecule/cm-popin/index.js +21 -15
  90. package/es/molecule/cm-popin/index.js.map +1 -1
  91. package/es/molecule/cm-popin/style.css +2 -44
  92. package/es/molecule/cm-popin/test/fixtures/dangerous.js +3 -0
  93. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -1
  94. package/es/molecule/cm-popin/test/fixtures/default.js +6 -3
  95. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -1
  96. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +4 -1
  97. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -1
  98. package/es/molecule/cm-popin/test/fixtures.js +17 -0
  99. package/es/molecule/cm-popin/test/fixtures.js.map +1 -0
  100. package/es/molecule/coorp-manager-roles/test/fixtures.js +13 -0
  101. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  102. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  103. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  104. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  105. package/es/molecule/quick-access-cards-group/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/select-multiple/index.js +113 -146
  109. package/es/molecule/select-multiple/index.js.map +1 -1
  110. package/es/molecule/select-multiple/test/index.js +20 -79
  111. package/es/molecule/select-multiple/test/index.js.map +1 -1
  112. package/es/molecule/vertical-tabs/test/fixtures.js +15 -0
  113. package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  114. package/es/molecule/wizard-summary/index.js +20 -10
  115. package/es/molecule/wizard-summary/index.js.map +1 -1
  116. package/es/molecule/wizard-summary/style.css +12 -21
  117. package/es/molecule/wizard-summary/test/fixtures/default.js +2 -1
  118. package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -1
  119. package/es/molecule/wizard-summary/test/fixtures/one-section.js +2 -1
  120. package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -1
  121. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +2 -1
  122. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -1
  123. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +2 -1
  124. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  125. package/es/molecule/wizard-summary/test/fixtures/two-sections.js +2 -1
  126. package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -1
  127. package/es/molecule/wizard-summary/test/fixtures.js +21 -0
  128. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
  129. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +4 -0
  130. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  131. package/es/organism/brand-dashboard/test/fixtures.js +2 -0
  132. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
  133. package/es/organism/brand-form/test/fixtures/wizard-playlists.js +26 -0
  134. package/es/organism/brand-form/test/fixtures/wizard-playlists.js.map +1 -0
  135. package/es/organism/brand-form/test/fixtures.js +2 -0
  136. package/es/organism/brand-form/test/fixtures.js.map +1 -1
  137. package/es/organism/brand-table/index.js +1 -1
  138. package/es/organism/brand-table/index.js.map +1 -1
  139. package/es/organism/mooc-header/index.js +1 -1
  140. package/es/organism/mooc-header/index.js.map +1 -1
  141. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  142. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  143. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  144. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  145. package/es/organism/search-and-chips-results/index.js +92 -0
  146. package/es/organism/search-and-chips-results/index.js.map +1 -0
  147. package/es/organism/search-and-chips-results/style.css +57 -0
  148. package/es/organism/search-and-chips-results/test/fixtures/default.js +46 -0
  149. package/es/organism/search-and-chips-results/test/fixtures/default.js.map +1 -0
  150. package/es/organism/search-and-chips-results/test/fixtures/empty.js +23 -0
  151. package/es/organism/search-and-chips-results/test/fixtures/empty.js.map +1 -0
  152. package/es/organism/search-and-chips-results/test/fixtures/filtered.js +26 -0
  153. package/es/organism/search-and-chips-results/test/fixtures/filtered.js.map +1 -0
  154. package/es/organism/search-and-chips-results/test/fixtures/sorted-selected.js +49 -0
  155. package/es/organism/search-and-chips-results/test/fixtures/sorted-selected.js.map +1 -0
  156. package/es/organism/search-and-chips-results/test/fixtures/unsorted-selected.js +49 -0
  157. package/es/organism/search-and-chips-results/test/fixtures/unsorted-selected.js.map +1 -0
  158. package/es/organism/search-and-chips-results/test/fixtures.js +21 -0
  159. package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  160. package/es/template/back-office/brand-list/index.js +6 -2
  161. package/es/template/back-office/brand-list/index.js.map +1 -1
  162. package/es/template/back-office/brand-list/style.css +1 -0
  163. package/es/template/back-office/brand-update/test/fixtures.js +2 -2
  164. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  165. package/es/variables/colors.css +2 -2
  166. package/lib/atom/button-link/index.js +125 -0
  167. package/lib/atom/button-link/index.js.map +1 -0
  168. package/lib/atom/button-link/style.css +93 -0
  169. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js +15 -0
  170. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  171. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js +19 -0
  172. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  173. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js +15 -0
  174. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  175. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +16 -0
  176. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  177. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js +19 -0
  178. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  179. package/lib/atom/button-link/test/fixtures/icon-button.js +18 -0
  180. package/lib/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  181. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +22 -0
  182. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  183. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js +25 -0
  184. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  185. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js +21 -0
  186. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  187. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +22 -0
  188. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  189. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js +18 -0
  190. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  191. package/lib/atom/button-link/test/fixtures.js +52 -0
  192. package/lib/atom/button-link/test/fixtures.js.map +1 -0
  193. package/lib/atom/chips/index.js +8 -4
  194. package/lib/atom/chips/index.js.map +1 -1
  195. package/lib/atom/chips/style.css +17 -2
  196. package/lib/atom/chips/test/fixtures/long-text.js +14 -0
  197. package/lib/atom/chips/test/fixtures/long-text.js.map +1 -0
  198. package/lib/atom/chips/test/fixtures.js +28 -0
  199. package/lib/atom/chips/test/fixtures.js.map +1 -0
  200. package/lib/atom/content-badge/test/fixtures.js +43 -0
  201. package/lib/atom/content-badge/test/fixtures.js.map +1 -0
  202. package/lib/atom/input-checkbox/test/fixtures.js +3 -0
  203. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  204. package/lib/{molecule/search → atom/input-search}/index.js +29 -18
  205. package/lib/atom/input-search/index.js.map +1 -0
  206. package/lib/atom/input-search/style.css +202 -0
  207. package/lib/{molecule/search → atom/input-search}/test/change.js +0 -0
  208. package/lib/atom/input-search/test/change.js.map +1 -0
  209. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js +19 -0
  210. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  211. package/lib/atom/input-search/test/fixtures/coorpmanager.js +18 -0
  212. package/lib/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  213. package/lib/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  214. package/lib/atom/input-search/test/fixtures/default.js.map +1 -0
  215. package/lib/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  216. package/lib/atom/input-search/test/fixtures/with-value.js.map +1 -0
  217. package/lib/atom/input-search/test/fixtures.js +31 -0
  218. package/lib/atom/input-search/test/fixtures.js.map +1 -0
  219. package/lib/atom/input-text/style.css +6 -2
  220. package/lib/atom/input-text/test/fixtures.js +3 -0
  221. package/lib/atom/input-text/test/fixtures.js.map +1 -1
  222. package/lib/atom/input-textarea/style.css +3 -3
  223. package/lib/atom/input-textarea/test/fixtures.js +6 -0
  224. package/lib/atom/input-textarea/test/fixtures.js.map +1 -1
  225. package/lib/atom/tag/index.js +39 -0
  226. package/lib/atom/tag/index.js.map +1 -0
  227. package/lib/atom/tag/style.css +38 -0
  228. package/lib/atom/tag/test/fixtures/archived.js +12 -0
  229. package/lib/atom/tag/test/fixtures/archived.js.map +1 -0
  230. package/lib/atom/tag/test/fixtures/default.js +12 -0
  231. package/lib/atom/tag/test/fixtures/default.js.map +1 -0
  232. package/lib/atom/tag/test/fixtures/published.js +12 -0
  233. package/lib/atom/tag/test/fixtures/published.js.map +1 -0
  234. package/lib/atom/tag/test/fixtures/revision.js +12 -0
  235. package/lib/atom/tag/test/fixtures/revision.js.map +1 -0
  236. package/lib/atom/tag/test/fixtures.js +31 -0
  237. package/lib/atom/tag/test/fixtures.js.map +1 -0
  238. package/lib/atom/title/test/fixtures.js +8 -2
  239. package/lib/atom/title/test/fixtures.js.map +1 -1
  240. package/lib/atom/wizard-steps/test/fixtures.js +28 -0
  241. package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
  242. package/lib/molecule/banner/index.js +19 -10
  243. package/lib/molecule/banner/index.js.map +1 -1
  244. package/lib/molecule/banner/style.css +13 -11
  245. package/lib/molecule/{search → banner}/test/fixtures.js +5 -5
  246. package/lib/molecule/banner/test/fixtures.js.map +1 -0
  247. package/lib/molecule/brand-form-group/index.js +22 -5
  248. package/lib/molecule/brand-form-group/index.js.map +1 -1
  249. package/lib/molecule/brand-form-group/style.css +19 -0
  250. package/lib/molecule/brand-form-group/test/fixtures.js +3 -0
  251. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
  252. package/lib/molecule/card/test/fixtures.js +6 -0
  253. package/lib/molecule/card/test/fixtures.js.map +1 -1
  254. package/lib/molecule/cm-popin/index.js +21 -16
  255. package/lib/molecule/cm-popin/index.js.map +1 -1
  256. package/lib/molecule/cm-popin/style.css +2 -44
  257. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +3 -0
  258. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -1
  259. package/lib/molecule/cm-popin/test/fixtures/default.js +6 -3
  260. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -1
  261. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +4 -1
  262. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -1
  263. package/lib/molecule/cm-popin/test/fixtures.js +28 -0
  264. package/lib/molecule/cm-popin/test/fixtures.js.map +1 -0
  265. package/lib/molecule/coorp-manager-roles/test/fixtures.js +22 -0
  266. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  267. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  268. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  269. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  270. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  271. package/lib/molecule/search-form/index.js +3 -3
  272. package/lib/molecule/search-form/index.js.map +1 -1
  273. package/lib/molecule/select-multiple/index.js +117 -143
  274. package/lib/molecule/select-multiple/index.js.map +1 -1
  275. package/lib/molecule/select-multiple/test/index.js +25 -79
  276. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  277. package/lib/molecule/vertical-tabs/test/fixtures.js +25 -0
  278. package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  279. package/lib/molecule/wizard-summary/index.js +20 -10
  280. package/lib/molecule/wizard-summary/index.js.map +1 -1
  281. package/lib/molecule/wizard-summary/style.css +12 -21
  282. package/lib/molecule/wizard-summary/test/fixtures/default.js +2 -1
  283. package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -1
  284. package/lib/molecule/wizard-summary/test/fixtures/one-section.js +2 -1
  285. package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -1
  286. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +2 -1
  287. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -1
  288. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +2 -1
  289. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
  290. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +2 -1
  291. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -1
  292. package/lib/molecule/wizard-summary/test/fixtures.js +34 -0
  293. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
  294. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +6 -0
  295. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  296. package/lib/organism/brand-dashboard/test/fixtures.js +3 -0
  297. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
  298. package/lib/organism/brand-form/test/fixtures/wizard-playlists.js +31 -0
  299. package/lib/organism/brand-form/test/fixtures/wizard-playlists.js.map +1 -0
  300. package/lib/organism/brand-form/test/fixtures.js +3 -0
  301. package/lib/organism/brand-form/test/fixtures.js.map +1 -1
  302. package/lib/organism/brand-table/index.js +3 -3
  303. package/lib/organism/brand-table/index.js.map +1 -1
  304. package/lib/organism/mooc-header/index.js +2 -2
  305. package/lib/organism/mooc-header/index.js.map +1 -1
  306. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  307. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  308. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  309. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  310. package/lib/organism/search-and-chips-results/index.js +105 -0
  311. package/lib/organism/search-and-chips-results/index.js.map +1 -0
  312. package/lib/organism/search-and-chips-results/style.css +57 -0
  313. package/lib/organism/search-and-chips-results/test/fixtures/default.js +51 -0
  314. package/lib/organism/search-and-chips-results/test/fixtures/default.js.map +1 -0
  315. package/lib/organism/search-and-chips-results/test/fixtures/empty.js +28 -0
  316. package/lib/organism/search-and-chips-results/test/fixtures/empty.js.map +1 -0
  317. package/lib/organism/search-and-chips-results/test/fixtures/filtered.js +31 -0
  318. package/lib/organism/search-and-chips-results/test/fixtures/filtered.js.map +1 -0
  319. package/lib/organism/search-and-chips-results/test/fixtures/sorted-selected.js +54 -0
  320. package/lib/organism/search-and-chips-results/test/fixtures/sorted-selected.js.map +1 -0
  321. package/lib/organism/search-and-chips-results/test/fixtures/unsorted-selected.js +54 -0
  322. package/lib/organism/search-and-chips-results/test/fixtures/unsorted-selected.js.map +1 -0
  323. package/lib/organism/search-and-chips-results/test/fixtures.js +34 -0
  324. package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  325. package/lib/template/back-office/brand-list/index.js +7 -3
  326. package/lib/template/back-office/brand-list/index.js.map +1 -1
  327. package/lib/template/back-office/brand-list/style.css +1 -0
  328. package/lib/template/back-office/brand-update/test/fixtures.js +3 -3
  329. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  330. package/lib/variables/colors.css +2 -2
  331. package/package.json +3 -3
  332. package/es/atom/bullet-point-menu-button/test/fixtures.js +0 -27
  333. package/es/atom/bullet-point-menu-button/test/fixtures.js.map +0 -1
  334. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  335. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  336. package/es/molecule/search/index.js +0 -57
  337. package/es/molecule/search/index.js.map +0 -1
  338. package/es/molecule/search/style.css +0 -86
  339. package/es/molecule/search/test/change.js.map +0 -1
  340. package/es/molecule/search/test/fixtures/default.js.map +0 -1
  341. package/es/molecule/search/test/fixtures/with-value.js.map +0 -1
  342. package/es/molecule/search/test/fixtures.js +0 -15
  343. package/es/molecule/search/test/fixtures.js.map +0 -1
  344. package/lib/atom/bullet-point-menu-button/test/fixtures.js +0 -43
  345. package/lib/atom/bullet-point-menu-button/test/fixtures.js.map +0 -1
  346. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  347. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  348. package/lib/molecule/search/index.js.map +0 -1
  349. package/lib/molecule/search/style.css +0 -86
  350. package/lib/molecule/search/test/change.js.map +0 -1
  351. package/lib/molecule/search/test/fixtures/default.js.map +0 -1
  352. package/lib/molecule/search/test/fixtures/with-value.js.map +0 -1
  353. package/lib/molecule/search/test/fixtures.js.map +0 -1
@@ -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,31 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _archived = _interopRequireDefault(require("./fixtures/archived"));
12
+
13
+ var _default = _interopRequireDefault(require("./fixtures/default"));
14
+
15
+ var _published = _interopRequireDefault(require("./fixtures/published"));
16
+
17
+ var _revision = _interopRequireDefault(require("./fixtures/revision"));
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ (0, _ava.default)('Atom › AtomTag > should have valid propTypes', t => {
22
+ t.pass();
23
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
24
+ t.not(value, undefined, `PropType for "Atom.AtomTag.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
25
+ });
26
+ });
27
+ (0, _ava.default)('Atom › AtomTag › Archived › should be rendered', _renderComponent.default, _.default, _archived.default);
28
+ (0, _ava.default)('Atom › AtomTag › Default › should be rendered', _renderComponent.default, _.default, _default.default);
29
+ (0, _ava.default)('Atom › AtomTag › Published › should be rendered', _renderComponent.default, _.default, _published.default);
30
+ (0, _ava.default)('Atom › AtomTag › Revision › should be rendered', _renderComponent.default, _.default, _revision.default);
31
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/tag/test/fixtures.js"],"names":["t","pass","AtomTag","propTypes","value","key","not","undefined","renderComponentMacro","fixtureArchived","fixtureDefault","fixturePublished","fixtureRevision"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,8CAAL,EAAqDA,CAAC,IAAI;AACxDA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAQC,SAAhB,EAA2B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzCL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,wCAAuCF,GAAI,mEAApE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,gDAAL,EAAuDG,wBAAvD,EAA6EN,SAA7E,EAAsFO,iBAAtF;AACA,kBAAK,+CAAL,EAAsDD,wBAAtD,EAA4EN,SAA5E,EAAqFQ,gBAArF;AACA,kBAAK,iDAAL,EAAwDF,wBAAxD,EAA8EN,SAA9E,EAAuFS,kBAAvF;AACA,kBAAK,gDAAL,EAAuDH,wBAAvD,EAA6EN,SAA7E,EAAsFU,iBAAtF","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTag from '..';\nimport fixtureArchived from './fixtures/archived';\nimport fixtureDefault from './fixtures/default';\nimport fixturePublished from './fixtures/published';\nimport fixtureRevision from './fixtures/revision';\n\ntest('Atom › AtomTag > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTag.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTag.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTag › Archived › should be rendered', renderComponentMacro, AtomTag, fixtureArchived);\ntest('Atom › AtomTag › Default › should be rendered', renderComponentMacro, AtomTag, fixtureDefault);\ntest('Atom › AtomTag › Published › should be rendered', renderComponentMacro, AtomTag, fixturePublished);\ntest('Atom › AtomTag › Revision › should be rendered', renderComponentMacro, AtomTag, fixtureRevision);\n"],"file":"fixtures.js"}
@@ -8,7 +8,11 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
8
8
 
9
9
  var _ = _interopRequireDefault(require(".."));
10
10
 
11
- var _fixture = _interopRequireDefault(require("./fixtures/fixture"));
11
+ var _formGroupTitleWithoutSubtitle = _interopRequireDefault(require("./fixtures/form-group-title-without-subtitle"));
12
+
13
+ var _formGroupTitle = _interopRequireDefault(require("./fixtures/form-group-title"));
14
+
15
+ var _pageTitle = _interopRequireDefault(require("./fixtures/page-title"));
12
16
 
13
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
18
 
@@ -18,5 +22,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
18
22
  t.not(value, undefined, `PropType for "Atom.AtomTitle.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
19
23
  });
20
24
  });
21
- (0, _ava.default)('Atom › AtomTitle › Fixture › should be rendered', _renderComponent.default, _.default, _fixture.default);
25
+ (0, _ava.default)('Atom › AtomTitle › FormGroupTitleWithoutSubtitle › should be rendered', _renderComponent.default, _.default, _formGroupTitleWithoutSubtitle.default);
26
+ (0, _ava.default)('Atom › AtomTitle › FormGroupTitle › should be rendered', _renderComponent.default, _.default, _formGroupTitle.default);
27
+ (0, _ava.default)('Atom › AtomTitle › PageTitle › should be rendered', _renderComponent.default, _.default, _pageTitle.default);
22
28
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/title/test/fixtures.js"],"names":["t","pass","AtomTitle","propTypes","value","key","not","undefined","renderComponentMacro","fixtureFixture"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gDAAL,EAAuDA,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAUC,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,iDAAL,EAAwDG,wBAAxD,EAA8EN,SAA9E,EAAyFO,gBAAzF","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTitle from '..';\nimport fixtureFixture from './fixtures/fixture';\n\ntest('Atom › AtomTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTitle › Fixture › should be rendered', renderComponentMacro, AtomTitle, fixtureFixture);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/title/test/fixtures.js"],"names":["t","pass","AtomTitle","propTypes","value","key","not","undefined","renderComponentMacro","fixtureFormGroupTitleWithoutSubtitle","fixtureFormGroupTitle","fixturePageTitle"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gDAAL,EAAuDA,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAUC,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uEAAL,EAA8EG,wBAA9E,EAAoGN,SAApG,EAA+GO,sCAA/G;AACA,kBAAK,wDAAL,EAA+DD,wBAA/D,EAAqFN,SAArF,EAAgGQ,uBAAhG;AACA,kBAAK,mDAAL,EAA0DF,wBAA1D,EAAgFN,SAAhF,EAA2FS,kBAA3F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTitle from '..';\nimport fixtureFormGroupTitleWithoutSubtitle from './fixtures/form-group-title-without-subtitle';\nimport fixtureFormGroupTitle from './fixtures/form-group-title';\nimport fixturePageTitle from './fixtures/page-title';\n\ntest('Atom › AtomTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTitle › FormGroupTitleWithoutSubtitle › should be rendered', renderComponentMacro, AtomTitle, fixtureFormGroupTitleWithoutSubtitle);\ntest('Atom › AtomTitle › FormGroupTitle › should be rendered', renderComponentMacro, AtomTitle, fixtureFormGroupTitle);\ntest('Atom › AtomTitle › PageTitle › should be rendered', renderComponentMacro, AtomTitle, fixturePageTitle);\n"],"file":"fixtures.js"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _default = _interopRequireDefault(require("./fixtures/default"));
12
+
13
+ var _firstStep = _interopRequireDefault(require("./fixtures/first-step"));
14
+
15
+ var _lastStep = _interopRequireDefault(require("./fixtures/last-step"));
16
+
17
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+
19
+ (0, _ava.default)('Atom › AtomWizardSteps > should have valid propTypes', t => {
20
+ t.pass();
21
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
22
+ t.not(value, undefined, `PropType for "Atom.AtomWizardSteps.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
23
+ });
24
+ });
25
+ (0, _ava.default)('Atom › AtomWizardSteps › Default › should be rendered', _renderComponent.default, _.default, _default.default);
26
+ (0, _ava.default)('Atom › AtomWizardSteps › FirstStep › should be rendered', _renderComponent.default, _.default, _firstStep.default);
27
+ (0, _ava.default)('Atom › AtomWizardSteps › LastStep › should be rendered', _renderComponent.default, _.default, _lastStep.default);
28
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/wizard-steps/test/fixtures.js"],"names":["t","pass","AtomWizardSteps","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureFirstStep","fixtureLastStep"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,sDAAL,EAA6DA,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAgBC,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAqGO,gBAArG;AACA,kBAAK,yDAAL,EAAgED,wBAAhE,EAAsFN,SAAtF,EAAuGQ,kBAAvG;AACA,kBAAK,wDAAL,EAA+DF,wBAA/D,EAAqFN,SAArF,EAAsGS,iBAAtG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomWizardSteps from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFirstStep from './fixtures/first-step';\nimport fixtureLastStep from './fixtures/last-step';\n\ntest('Atom › AtomWizardSteps > should have valid propTypes', t => {\n t.pass();\n forEach(AtomWizardSteps.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomWizardSteps.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomWizardSteps › Default › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureDefault);\ntest('Atom › AtomWizardSteps › FirstStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureFirstStep);\ntest('Atom › AtomWizardSteps › LastStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureLastStep);\n"],"file":"fixtures.js"}
@@ -11,7 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
12
  var _novaIcons = require("@coorpacademy/nova-icons");
13
13
 
14
- var _link = _interopRequireDefault(require("../../atom/link"));
14
+ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
15
15
 
16
16
  var _style = _interopRequireDefault(require("./style.css"));
17
17
 
@@ -27,23 +27,32 @@ const Banner = props => {
27
27
  secondCTA
28
28
  } = props;
29
29
  return /*#__PURE__*/_react.default.createElement("div", {
30
- className: (0, _classnames.default)(_style.default.banner, type === 'error' && _style.default.errorBanner)
30
+ className: (0, _classnames.default)(_style.default.banner, type === 'error' && _style.default.errorBanner),
31
+ title: message
31
32
  }, /*#__PURE__*/_react.default.createElement("div", {
32
33
  "data-name": `${type}-banner-message`,
33
34
  className: _style.default.message
34
35
  }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidInterfaceFeedbackInterfaceAlertDiamond, {
35
36
  className: _style.default.icon
36
- }), message), firstCTALabel ? /*#__PURE__*/_react.default.createElement(_link.default, {
37
+ }), message), firstCTALabel ? /*#__PURE__*/_react.default.createElement("div", {
38
+ className: _style.default.button
39
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
37
40
  "data-name": "first-banner-cta",
38
- className: _style.default.button,
39
- onClick: firstCTA
40
- }, firstCTALabel) : null, firstCTALabel && secondCTALabel ? /*#__PURE__*/_react.default.createElement("div", {
41
+ "aria-label": firstCTALabel,
42
+ label: firstCTALabel,
43
+ onClick: firstCTA,
44
+ type: "text"
45
+ })) : null, firstCTALabel && secondCTALabel ? /*#__PURE__*/_react.default.createElement("div", {
41
46
  className: _style.default.buttonsBar
42
- }) : null, secondCTALabel ? /*#__PURE__*/_react.default.createElement(_link.default, {
47
+ }) : null, secondCTALabel ? /*#__PURE__*/_react.default.createElement("div", {
48
+ className: _style.default.button
49
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
43
50
  "data-name": "second-banner-cta",
44
- className: _style.default.button,
45
- onClick: secondCTA
46
- }, secondCTALabel) : null);
51
+ onClick: secondCTA,
52
+ "aria-label": secondCTALabel,
53
+ label: secondCTALabel,
54
+ type: "text"
55
+ })) : null);
47
56
  };
48
57
 
49
58
  Banner.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -1 +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,I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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"}
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;AACE,IAAA,SAAS,EAAE,yBAAWO,eAAMC,MAAjB,EAAyBP,IAAI,KAAK,OAAT,IAAoB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import {NovaSolidInterfaceFeedbackInterfaceAlertDiamond as QuestionIcon} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/button-link';\nimport style from './style.css';\n\nconst Banner = props => {\n const {type, message, firstCTA, firstCTALabel, secondCTALabel, secondCTA} = props;\n return (\n <div\n className={classnames(style.banner, type === 'error' && style.errorBanner)}\n title={message}\n >\n <div data-name={`${type}-banner-message`} className={style.message}>\n <QuestionIcon className={style.icon} />\n {message}\n </div>\n {firstCTALabel ? (\n <div className={style.button}>\n <Link\n data-name=\"first-banner-cta\"\n aria-label={firstCTALabel}\n label={firstCTALabel}\n onClick={firstCTA}\n type=\"text\"\n />\n </div>\n ) : null}\n {firstCTALabel && secondCTALabel ? <div className={style.buttonsBar} /> : null}\n {secondCTALabel ? (\n <div className={style.button}>\n <Link\n data-name=\"second-banner-cta\"\n onClick={secondCTA}\n aria-label={secondCTALabel}\n label={secondCTALabel}\n type=\"text\"\n />\n </div>\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"}
@@ -6,7 +6,9 @@
6
6
  @value cm_negative_50 from colors;
7
7
  @value cm_negative_200 from colors;
8
8
  @value cm_warning_50 from colors;
9
- @value cm_warning_200 from colors;
9
+ @value cm_yellow_100 from colors;
10
+ @value cm_yellow_200 from colors;
11
+ @value cm_yellow_400 from colors;
10
12
 
11
13
  .banner {
12
14
  display: flex;
@@ -17,7 +19,7 @@
17
19
  padding: 16px 24px;
18
20
  border-radius: 5px;
19
21
  background-color: cm_warning_50;
20
- color: cm_warning_200;
22
+ color: cm_yellow_200;
21
23
  border-radius: 5px;
22
24
  }
23
25
 
@@ -26,21 +28,21 @@
26
28
  color: cm_negative_200;
27
29
  }
28
30
 
29
- .button {
30
- flex-grow: 0;
31
- font-family: Gilroy;
32
- font-size: 12px;
33
- font-weight: bold;
34
- line-height: 1.33;
31
+ .button{
35
32
  background-color: transparent;
33
+ color: cm_yellow_200;
34
+ }
35
+
36
+ .button :hover{
37
+ color: cm_yellow_400;
36
38
  }
37
39
 
38
40
  .buttonsBar {
39
- width: 1px;
41
+ width: 2px;
40
42
  align-self: stretch;
41
43
  flex-grow: 0;
42
- opacity: 0.1;
43
- background-color: cm_warning_200;
44
+ opacity: 0.3;
45
+ background-color: cm_yellow_200;
44
46
  }
45
47
 
46
48
  .icon {
@@ -10,16 +10,16 @@ var _ = _interopRequireDefault(require(".."));
10
10
 
11
11
  var _default = _interopRequireDefault(require("./fixtures/default"));
12
12
 
13
- var _withValue = _interopRequireDefault(require("./fixtures/with-value"));
13
+ var _errorBanner = _interopRequireDefault(require("./fixtures/error-banner"));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
 
17
- (0, _ava.default)('Molecule › MoleculeSearch > should have valid propTypes', t => {
17
+ (0, _ava.default)('Molecule › MoleculeBanner > should have valid propTypes', t => {
18
18
  t.pass();
19
19
  (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
- t.not(value, undefined, `PropType for "Molecule.MoleculeSearch.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
20
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBanner.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
21
  });
22
22
  });
23
- (0, _ava.default)('Molecule › MoleculeSearch › Default › should be rendered', _renderComponent.default, _.default, _default.default);
24
- (0, _ava.default)('Molecule › MoleculeSearchWithValue › should be rendered', _renderComponent.default, _.default, _withValue.default);
23
+ (0, _ava.default)('Molecule › MoleculeBanner › Default › should be rendered', _renderComponent.default, _.default, _default.default);
24
+ (0, _ava.default)('Molecule › MoleculeBannerErrorBanner › should be rendered', _renderComponent.default, _.default, _errorBanner.default);
25
25
  //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/banner/test/fixtures.js"],"names":["t","pass","MoleculeBanner","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureErrorBanner"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,yDAAL,EAAgEA,CAAC,IAAI;AACnEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAeC,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mDAAkDF,GAAI,mEAA/E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,0DAAL,EAAiEG,wBAAjE,EAAuFN,SAAvF,EAAuGO,gBAAvG;AACA,kBAAK,8DAAL,EAAqED,wBAArE,EAA2FN,SAA3F,EAA2GQ,oBAA3G","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBanner from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureErrorBanner from './fixtures/error-banner';\n\ntest('Molecule › MoleculeBanner > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBanner.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBanner.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBanner › Default › should be rendered', renderComponentMacro, MoleculeBanner, fixtureDefault);\ntest('Molecule › MoleculeBanner › ErrorBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureErrorBanner);\n"],"file":"fixtures.js"}
@@ -7,6 +7,8 @@ var _snakeCase2 = _interopRequireDefault(require("lodash/fp/snakeCase"));
7
7
 
8
8
  var _map2 = _interopRequireDefault(require("lodash/fp/map"));
9
9
 
10
+ var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
11
+
10
12
  var _react = _interopRequireDefault(require("react"));
11
13
 
12
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -57,6 +59,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
57
59
 
58
60
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
59
61
 
62
+ const inputContainerStyle = {
63
+ default: _style.default.defaultWidth,
64
+ medium: _style.default.mediumWidth,
65
+ large: _style.default.largeWidth
66
+ };
67
+
60
68
  const buildInput = field => {
61
69
  const {
62
70
  type
@@ -125,8 +133,13 @@ const buildInput = field => {
125
133
 
126
134
  const buildField = (field, index) => {
127
135
  const input = buildInput(field);
136
+ const {
137
+ theme,
138
+ size = 'default'
139
+ } = field;
140
+ const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : _style.default.field;
128
141
  return /*#__PURE__*/_react.default.createElement("div", {
129
- className: _style.default.field,
142
+ className: styleInput,
130
143
  key: index
131
144
  }, input);
132
145
  };
@@ -164,7 +177,8 @@ BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
164
177
  fieldsLayout: _propTypes.default.string,
165
178
  groupLayout: _propTypes.default.string,
166
179
  fields: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_extends(_extends({}, _autocomplete.default.propTypes), {}, {
167
- type: _propTypes.default.oneOf(['autoComplete'])
180
+ type: _propTypes.default.oneOf(['autoComplete']),
181
+ size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
168
182
  })), _propTypes.default.shape(_extends(_extends({}, _inputColor.default.propTypes), {}, {
169
183
  type: _propTypes.default.oneOf(['color'])
170
184
  })), _propTypes.default.shape(_extends(_extends({}, _inputReadonly.default.propTypes), {}, {
@@ -172,13 +186,15 @@ BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
172
186
  })), _propTypes.default.shape(_extends(_extends({}, _inputSwitch.default.propTypes), {}, {
173
187
  type: _propTypes.default.oneOf(['switch'])
174
188
  })), _propTypes.default.shape(_extends(_extends({}, _inputTextarea.default.propTypes), {}, {
175
- type: _propTypes.default.oneOf(['textarea'])
189
+ type: _propTypes.default.oneOf(['textarea']),
190
+ size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
176
191
  })), _propTypes.default.shape(_extends(_extends({}, _inputHtml.default.propTypes), {}, {
177
192
  type: _propTypes.default.oneOf(['html'])
178
193
  })), _propTypes.default.shape(_extends(_extends({}, _inputDoublestep.default.propTypes), {}, {
179
194
  type: _propTypes.default.oneOf(['doublestep'])
180
195
  })), _propTypes.default.shape(_extends(_extends({}, _select.default.propTypes), {}, {
181
- type: _propTypes.default.oneOf(['select'])
196
+ type: _propTypes.default.oneOf(['select']),
197
+ size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
182
198
  })), _propTypes.default.shape(_extends(_extends({}, _inputCheckbox.default.propTypes), {}, {
183
199
  type: _propTypes.default.oneOf(['checkbox'])
184
200
  })), _propTypes.default.shape(_extends(_extends({}, _imageUpload.default.propTypes), {}, {
@@ -188,7 +204,8 @@ BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
188
204
  })), _propTypes.default.shape(_extends(_extends({}, _setupSections.default.propTypes), {}, {
189
205
  type: _propTypes.default.oneOf(['sections'])
190
206
  })), _propTypes.default.shape(_extends(_extends({}, _inputText.default.propTypes), {}, {
191
- type: _propTypes.default.oneOf(['text'])
207
+ type: _propTypes.default.oneOf(['text']),
208
+ size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
192
209
  })), _propTypes.default.shape(_extends(_extends({}, _brandDownloadBox.default.propTypes), {}, {
193
210
  type: _propTypes.default.oneOf(['downloadbox'])
194
211
  })), _propTypes.default.shape(_extends(_extends({}, _brandUploadBox.default.propTypes), {}, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/brand-form-group/index.js"],"names":["buildInput","field","type","buildField","index","input","style","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","PropTypes","string","arrayOf","oneOfType","shape","Autocomplete","oneOf","InputColor","InputReadonly","InputSwitch","InputTextarea","InputHTML","InputDoublestep","Select","InputCheckbox","ImageUpload","SetupSlider","SetupSections","InputText","BrandDownloadBox","BrandUploadBox","Button","SelectMultiple","Roles"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA;AAAD,MAASD,KAAf;;AAEA,UAAQC,IAAR;AACE,SAAK,cAAL;AACE,0BAAO,6BAAC,qBAAD,EAAkBD,KAAlB,CAAP;;AACF,SAAK,OAAL;AACE,0BAAO,6BAAC,mBAAD,EAAgBA,KAAhB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,QAAL;AACE,0BAAO,6BAAC,oBAAD,EAAiBA,KAAjB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,MAAL;AACE,0BAAO,6BAAC,kBAAD,EAAeA,KAAf,CAAP;;AACF,SAAK,YAAL;AACE,0BAAO,6BAAC,wBAAD,EAAqBA,KAArB,CAAP;;AACF,SAAK,QAAL;AACE,0BAAO,6BAAC,eAAD,EAAYA,KAAZ,CAAP;;AACF,SAAK,gBAAL;AACE,0BAAO,6BAAC,uBAAD,EAAoBA,KAApB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,OAAL;AACE,0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CAAC,aAAD,CAAhB;AAFR,KArDkB,EAyDlBN,mBAAUI,KAAV,uBACKgB,wBAAerB,SADpB;AAEEnB,IAAAA,IAAI,EAAEoB,mBAAUM,KAAV,CAAgB,CAAC,WAAD,CAAhB;AAFR,KAzDkB,EA6DlBN,mBAAUI,KAAV,uBACKiB,gBAAOtB,SADZ;AAEEnB,IAAAA,IAAI,EAAEoB,mBAAUM,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAFR,KA7DkB,EAiElBN,mBAAUI,KAAV,uBACKkB,wBAAevB,SADpB;AAEEnB,IAAAA,IAAI,EAAEoB,mBAAUM,KAAV,CAAgB,CAAC,gBAAD,CAAhB;AAFR,KAjEkB,EAqElBN,mBAAUI,KAAV,uBACKmB,2BAAMxB,SADX;AAEEnB,IAAAA,IAAI,EAAEoB,mBAAUM,KAAV,CAAgB,CAAC,OAAD,CAAhB;AAFR,KArEkB,EAyElBN,mBAAUI,KAAV,CAAgBc,mBAAUnB,SAA1B,CAzEkB,CAApB,CADM;AALiB,CAA3B;eAmFed,c","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport style from './style.css';\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return <ImageUpload {...field} />;\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'roles':\n return <Roles {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n\n return (\n <div className={style.field} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete'])\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea'])\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select'])\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/brand-form-group/index.js"],"names":["inputContainerStyle","default","style","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","PropTypes","string","arrayOf","oneOfType","shape","Autocomplete","oneOf","InputColor","InputReadonly","InputSwitch","InputTextarea","InputHTML","InputDoublestep","Select","InputCheckbox","ImageUpload","SetupSlider","SetupSections","InputText","BrandDownloadBox","BrandUploadBox","Button","SelectMultiple","Roles"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG;AAC1BC,EAAAA,OAAO,EAAEC,eAAMC,YADW;AAE1BC,EAAAA,MAAM,EAAEF,eAAMG,WAFY;AAG1BC,EAAAA,KAAK,EAAEJ,eAAMK;AAHa,CAA5B;;AAMA,MAAMC,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA;AAAD,MAASD,KAAf;;AAEA,UAAQC,IAAR;AACE,SAAK,cAAL;AACE,0BAAO,6BAAC,qBAAD,EAAkBD,KAAlB,CAAP;;AACF,SAAK,OAAL;AACE,0BAAO,6BAAC,mBAAD,EAAgBA,KAAhB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,QAAL;AACE,0BAAO,6BAAC,oBAAD,EAAiBA,KAAjB,CAAP;;AACF,SAAK,UAAL;AACE,0BAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;AACF,SAAK,MAAL;AACE,0BAAO,6BAAC,kBAAD,EAAeA,KAAf,CAAP;;AACF,SAAK,YAAL;AACE,0BAAO,6BAAC,wBAAD,EAAqBA,KAArB,CAAP;;AACF,SAAK,QAAL;AACE,0BAAO,6BAAC,eAAD,EAAYA,KAAZ,CAAP;;AACF,SAAK,gBAAL;AACE,0BAAO,6BAAC,uBAAD,EAAoBA,KAApB,CAAP;;AACF,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Fed,c","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return <ImageUpload {...field} />;\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'roles':\n return <Roles {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"file":"index.js"}
@@ -50,6 +50,25 @@
50
50
  margin-bottom: 0;
51
51
  }
52
52
 
53
+ .fieldCoorpmanager {
54
+ margin: 0 0 32px 0;
55
+ }
56
+
57
+ .defaultWidth {
58
+ composes: fieldCoorpmanager;
59
+ width: 300px;
60
+ }
61
+
62
+ .mediumWidth {
63
+ composes: fieldCoorpmanager;
64
+ width: 444px;
65
+ }
66
+
67
+ .largeWidth {
68
+ composes: fieldCoorpmanager;
69
+ width: 100%;
70
+ }
71
+
53
72
  @media desktop {
54
73
  .groupGrid {
55
74
  flex-direction: column;
@@ -12,6 +12,8 @@ var _analytics = _interopRequireDefault(require("./fixtures/analytics"));
12
12
 
13
13
  var _animations = _interopRequireDefault(require("./fixtures/animations"));
14
14
 
15
+ var _cmDefault = _interopRequireDefault(require("./fixtures/cm-default"));
16
+
15
17
  var _cohort = _interopRequireDefault(require("./fixtures/cohort"));
16
18
 
17
19
  var _dashboard = _interopRequireDefault(require("./fixtures/dashboard"));
@@ -40,6 +42,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
40
42
  });
41
43
  (0, _ava.default)('Molecule › MoleculeBrandFormGroup › Analytics › should be rendered', _renderComponent.default, _.default, _analytics.default);
42
44
  (0, _ava.default)('Molecule › MoleculeBrandFormGroup › Animations › should be rendered', _renderComponent.default, _.default, _animations.default);
45
+ (0, _ava.default)('Molecule › MoleculeBrandFormGroup › CmDefault › should be rendered', _renderComponent.default, _.default, _cmDefault.default);
43
46
  (0, _ava.default)('Molecule › MoleculeBrandFormGroup › Cohort › should be rendered', _renderComponent.default, _.default, _cohort.default);
44
47
  (0, _ava.default)('Molecule › MoleculeBrandFormGroup › Dashboard › should be rendered', _renderComponent.default, _.default, _dashboard.default);
45
48
  (0, _ava.default)('Molecule › MoleculeBrandFormGroup › Default › should be rendered', _renderComponent.default, _.default, _default.default);