@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,27 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomContentBadge from '..';
5
+ import fixtureAdvanced from './fixtures/advanced';
6
+ import fixtureArticle from './fixtures/article';
7
+ import fixtureChapter from './fixtures/chapter';
8
+ import fixtureCoach from './fixtures/coach';
9
+ import fixtureDefault from './fixtures/default';
10
+ import fixturePodcast from './fixtures/podcast';
11
+ import fixtureScorm from './fixtures/scorm';
12
+ import fixtureVideo from './fixtures/video';
13
+ test('Atom › AtomContentBadge > should have valid propTypes', t => {
14
+ t.pass();
15
+ forEach(AtomContentBadge.propTypes, (value, key) => {
16
+ t.not(value, undefined, `PropType for "Atom.AtomContentBadge.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
17
+ });
18
+ });
19
+ test('Atom › AtomContentBadge › Advanced › should be rendered', renderComponentMacro, AtomContentBadge, fixtureAdvanced);
20
+ test('Atom › AtomContentBadge › Article › should be rendered', renderComponentMacro, AtomContentBadge, fixtureArticle);
21
+ test('Atom › AtomContentBadge › Chapter › should be rendered', renderComponentMacro, AtomContentBadge, fixtureChapter);
22
+ test('Atom › AtomContentBadge › Coach › should be rendered', renderComponentMacro, AtomContentBadge, fixtureCoach);
23
+ test('Atom › AtomContentBadge › Default › should be rendered', renderComponentMacro, AtomContentBadge, fixtureDefault);
24
+ test('Atom › AtomContentBadge › Podcast › should be rendered', renderComponentMacro, AtomContentBadge, fixturePodcast);
25
+ test('Atom › AtomContentBadge › Scorm › should be rendered', renderComponentMacro, AtomContentBadge, fixtureScorm);
26
+ test('Atom › AtomContentBadge › Video › should be rendered', renderComponentMacro, AtomContentBadge, fixtureVideo);
27
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/content-badge/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomContentBadge","fixtureAdvanced","fixtureArticle","fixtureChapter","fixtureCoach","fixtureDefault","fixturePodcast","fixtureScorm","fixtureVideo","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,gBAAP,MAA6B,IAA7B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAX,IAAI,CAAC,uDAAD,EAA0DY,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACAZ,EAAAA,OAAO,CAACE,gBAAgB,CAACW,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAClDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,iDAAgDF,GAAI,mEAA7E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAhB,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,gBAAlF,EAAoGC,eAApG,CAAJ;AACAJ,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,gBAAjF,EAAmGE,cAAnG,CAAJ;AACAL,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,gBAAjF,EAAmGG,cAAnG,CAAJ;AACAN,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,gBAA/E,EAAiGI,YAAjG,CAAJ;AACAP,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,gBAAjF,EAAmGK,cAAnG,CAAJ;AACAR,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,gBAAjF,EAAmGM,cAAnG,CAAJ;AACAT,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,gBAA/E,EAAiGO,YAAjG,CAAJ;AACAV,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,gBAA/E,EAAiGQ,YAAjG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomContentBadge from '..';\nimport fixtureAdvanced from './fixtures/advanced';\nimport fixtureArticle from './fixtures/article';\nimport fixtureChapter from './fixtures/chapter';\nimport fixtureCoach from './fixtures/coach';\nimport fixtureDefault from './fixtures/default';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureScorm from './fixtures/scorm';\nimport fixtureVideo from './fixtures/video';\n\ntest('Atom › AtomContentBadge > should have valid propTypes', t => {\n t.pass();\n forEach(AtomContentBadge.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomContentBadge.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomContentBadge › Advanced › should be rendered', renderComponentMacro, AtomContentBadge, fixtureAdvanced);\ntest('Atom › AtomContentBadge › Article › should be rendered', renderComponentMacro, AtomContentBadge, fixtureArticle);\ntest('Atom › AtomContentBadge › Chapter › should be rendered', renderComponentMacro, AtomContentBadge, fixtureChapter);\ntest('Atom › AtomContentBadge › Coach › should be rendered', renderComponentMacro, AtomContentBadge, fixtureCoach);\ntest('Atom › AtomContentBadge › Default › should be rendered', renderComponentMacro, AtomContentBadge, fixtureDefault);\ntest('Atom › AtomContentBadge › Podcast › should be rendered', renderComponentMacro, AtomContentBadge, fixturePodcast);\ntest('Atom › AtomContentBadge › Scorm › should be rendered', renderComponentMacro, AtomContentBadge, fixtureScorm);\ntest('Atom › AtomContentBadge › Video › should be rendered', renderComponentMacro, AtomContentBadge, fixtureVideo);\n"],"file":"fixtures.js"}
@@ -2,6 +2,7 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomInputCheckbox from '..';
5
+ import fixtureCheckedDisabled from './fixtures/checked-disabled';
5
6
  import fixtureChecked from './fixtures/checked';
6
7
  import fixtureDefault from './fixtures/default';
7
8
  import fixtureDisabled from './fixtures/disabled';
@@ -14,6 +15,7 @@ test('Atom › AtomInputCheckbox > should have valid propTypes', t => {
14
15
  t.not(value, undefined, `PropType for "Atom.AtomInputCheckbox.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
15
16
  });
16
17
  });
18
+ test('Atom › AtomInputCheckbox › CheckedDisabled › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureCheckedDisabled);
17
19
  test('Atom › AtomInputCheckbox › Checked › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureChecked);
18
20
  test('Atom › AtomInputCheckbox › Default › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDefault);
19
21
  test('Atom › AtomInputCheckbox › Disabled › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDisabled);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/input-checkbox/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputCheckbox","fixtureChecked","fixtureDefault","fixtureDisabled","fixtureError","fixtureModified","fixtureRequired","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAT,IAAI,CAAC,wDAAD,EAA2DU,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,iBAAiB,CAACS,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGC,cAArG,CAAJ;AACAJ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGE,cAArG,CAAJ;AACAL,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGG,eAAtG,CAAJ;AACAN,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,iBAAhF,EAAmGI,YAAnG,CAAJ;AACAP,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGK,eAAtG,CAAJ;AACAR,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGM,eAAtG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputCheckbox from '..';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputCheckbox > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputCheckbox.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputCheckbox.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputCheckbox › Checked › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureChecked);\ntest('Atom › AtomInputCheckbox › Default › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDefault);\ntest('Atom › AtomInputCheckbox › Disabled › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDisabled);\ntest('Atom › AtomInputCheckbox › Error › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureError);\ntest('Atom › AtomInputCheckbox › Modified › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureModified);\ntest('Atom › AtomInputCheckbox › Required › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureRequired);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/input-checkbox/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputCheckbox","fixtureCheckedDisabled","fixtureChecked","fixtureDefault","fixtureDisabled","fixtureError","fixtureModified","fixtureRequired","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAV,IAAI,CAAC,wDAAD,EAA2DW,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACAX,EAAAA,OAAO,CAACE,iBAAiB,CAACU,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAf,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GC,sBAA7G,CAAJ;AACAJ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGE,cAArG,CAAJ;AACAL,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGG,cAArG,CAAJ;AACAN,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGI,eAAtG,CAAJ;AACAP,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,iBAAhF,EAAmGK,YAAnG,CAAJ;AACAR,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGM,eAAtG,CAAJ;AACAT,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGO,eAAtG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputCheckbox from '..';\nimport fixtureCheckedDisabled from './fixtures/checked-disabled';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputCheckbox > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputCheckbox.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputCheckbox.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputCheckbox › CheckedDisabled › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureCheckedDisabled);\ntest('Atom › AtomInputCheckbox › Checked › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureChecked);\ntest('Atom › AtomInputCheckbox › Default › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDefault);\ntest('Atom › AtomInputCheckbox › Disabled › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDisabled);\ntest('Atom › AtomInputCheckbox › Error › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureError);\ntest('Atom › AtomInputCheckbox › Modified › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureModified);\ntest('Atom › AtomInputCheckbox › Required › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureRequired);\n"],"file":"fixtures.js"}
@@ -0,0 +1,65 @@
1
+ import _isEmpty from "lodash/fp/isEmpty";
2
+ import _noop from "lodash/fp/noop";
3
+ import React, { useMemo } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import classnames from 'classnames';
6
+ import { NovaCompositionCoorpacademySearch1 as CMSearchIcon, NovaCompositionCoorpacademySearch as SearchIcon, NovaSolidStatusClose as CloseIcon } from '@coorpacademy/nova-icons';
7
+ import Provider from '../provider';
8
+ import style from './style.css';
9
+
10
+ const Search = props => {
11
+ const {
12
+ value,
13
+ placeholder,
14
+ onChange = _noop,
15
+ onClear = _noop,
16
+ onFocus,
17
+ onBlur,
18
+ theme = 'default'
19
+ } = props;
20
+ const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
21
+ const cmStyle = classnames(style.coorpmanager);
22
+ const isDefaultTheme = theme === 'default';
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ className: isDefaultTheme ? style.wrapperSearch : cmStyle
25
+ }, /*#__PURE__*/React.createElement("label", {
26
+ htmlFor: "search",
27
+ title: placeholder
28
+ }, !isDefaultTheme ? /*#__PURE__*/React.createElement(CMSearchIcon, {
29
+ className: style.searchIcon
30
+ }) : /*#__PURE__*/React.createElement(SearchIcon, {
31
+ className: style.searchIcon
32
+ }), !isDefaultTheme ? /*#__PURE__*/React.createElement("span", {
33
+ className: classnames(style.title, _isEmpty(value) && style.noValue)
34
+ }, placeholder) : null), /*#__PURE__*/React.createElement("input", {
35
+ "data-name": "search-input",
36
+ className: style.search,
37
+ type: "text",
38
+ name: "search",
39
+ id: "search",
40
+ placeholder: placeholder,
41
+ value: value,
42
+ onInput: handleChange,
43
+ onFocus: onFocus,
44
+ onChange: _noop,
45
+ onBlur: onBlur
46
+ }), value && !isDefaultTheme ? /*#__PURE__*/React.createElement(CloseIcon, {
47
+ onClick: onClear,
48
+ className: style.clearIcon
49
+ }) : null);
50
+ };
51
+
52
+ Search.contextTypes = {
53
+ skin: Provider.childContextTypes.skin
54
+ };
55
+ Search.propTypes = process.env.NODE_ENV !== "production" ? {
56
+ value: PropTypes.string,
57
+ placeholder: PropTypes.string.isRequired,
58
+ onChange: PropTypes.func,
59
+ onClear: PropTypes.func,
60
+ onFocus: PropTypes.func,
61
+ onBlur: PropTypes.func,
62
+ theme: PropTypes.oneOf(['default', 'coorpmanager'])
63
+ } : {};
64
+ export default Search;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/input-search/index.js"],"names":["React","useMemo","PropTypes","classnames","NovaCompositionCoorpacademySearch1","CMSearchIcon","NovaCompositionCoorpacademySearch","SearchIcon","NovaSolidStatusClose","CloseIcon","Provider","style","Search","props","value","placeholder","onChange","onClear","onFocus","onBlur","theme","handleChange","e","target","cmStyle","coorpmanager","isDefaultTheme","wrapperSearch","searchIcon","title","noValue","search","clearIcon","contextTypes","skin","childContextTypes","propTypes","string","isRequired","func","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC,kCAAkC,IAAIC,YADxC,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,oBAAoB,IAAIC,SAH1B,QAIO,0BAJP;AAMA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,MAAM,GAAGC,KAAK,IAAI;AACtB,QAAM;AACJC,IAAAA,KADI;AAEJC,IAAAA,WAFI;AAGJC,IAAAA,QAAQ,QAHJ;AAIJC,IAAAA,OAAO,QAJH;AAKJC,IAAAA,OALI;AAMJC,IAAAA,MANI;AAOJC,IAAAA,KAAK,GAAG;AAPJ,MAQFP,KARJ;AASA,QAAMQ,YAAY,GAAGpB,OAAO,CAAC,MAAMqB,CAAC,IAAIN,QAAQ,CAACM,CAAC,CAACC,MAAF,CAAST,KAAV,CAApB,EAAsC,CAACE,QAAD,CAAtC,CAA5B;AACA,QAAMQ,OAAO,GAAGrB,UAAU,CAACQ,KAAK,CAACc,YAAP,CAA1B;AACA,QAAMC,cAAc,GAAGN,KAAK,KAAK,SAAjC;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEM,cAAc,GAAGf,KAAK,CAACgB,aAAT,GAAyBH;AAAvD,kBACE;AAAO,IAAA,OAAO,EAAC,QAAf;AAAwB,IAAA,KAAK,EAAET;AAA/B,KACG,CAACW,cAAD,gBACC,oBAAC,YAAD;AAAc,IAAA,SAAS,EAAEf,KAAK,CAACiB;AAA/B,IADD,gBAGC,oBAAC,UAAD;AAAY,IAAA,SAAS,EAAEjB,KAAK,CAACiB;AAA7B,IAJJ,EAMG,CAACF,cAAD,gBACC;AAAM,IAAA,SAAS,EAAEvB,UAAU,CAACQ,KAAK,CAACkB,KAAP,EAAc,SAAQf,KAAR,KAAkBH,KAAK,CAACmB,OAAtC;AAA3B,KACGf,WADH,CADD,GAIG,IAVN,CADF,eAaE;AACE,iBAAU,cADZ;AAEE,IAAA,SAAS,EAAEJ,KAAK,CAACoB,MAFnB;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,IAAI,EAAC,QAJP;AAKE,IAAA,EAAE,EAAC,QALL;AAME,IAAA,WAAW,EAAEhB,WANf;AAOE,IAAA,KAAK,EAAED,KAPT;AAQE,IAAA,OAAO,EAAEO,YARX;AASE,IAAA,OAAO,EAAEH,OATX;AAUE,IAAA,QAAQ,OAVV;AAWE,IAAA,MAAM,EAAEC;AAXV,IAbF,EA0BGL,KAAK,IAAI,CAACY,cAAV,gBACC,oBAAC,SAAD;AAAW,IAAA,OAAO,EAAET,OAApB;AAA6B,IAAA,SAAS,EAAEN,KAAK,CAACqB;AAA9C,IADD,GAEG,IA5BN,CADF;AAgCD,CA9CD;;AAgDApB,MAAM,CAACqB,YAAP,GAAsB;AACpBC,EAAAA,IAAI,EAAExB,QAAQ,CAACyB,iBAAT,CAA2BD;AADb,CAAtB;AAIAtB,MAAM,CAACwB,SAAP,2CAAmB;AACjBtB,EAAAA,KAAK,EAAEZ,SAAS,CAACmC,MADA;AAEjBtB,EAAAA,WAAW,EAAEb,SAAS,CAACmC,MAAV,CAAiBC,UAFb;AAGjBtB,EAAAA,QAAQ,EAAEd,SAAS,CAACqC,IAHH;AAIjBtB,EAAAA,OAAO,EAAEf,SAAS,CAACqC,IAJF;AAKjBrB,EAAAA,OAAO,EAAEhB,SAAS,CAACqC,IALF;AAMjBpB,EAAAA,MAAM,EAAEjB,SAAS,CAACqC,IAND;AAOjBnB,EAAAA,KAAK,EAAElB,SAAS,CAACsC,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,CAAhB;AAPU,CAAnB;AAUA,eAAe5B,MAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearch1 as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default'\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n className={style.search}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Search;\n"],"file":"index.js"}
@@ -0,0 +1,202 @@
1
+ @value breakpoints: "../../variables/breakpoints.css";
2
+ @value tablet from breakpoints;
3
+ @value mobile from breakpoints;
4
+ @value colors: "../../variables/colors.css";
5
+ @value medium from colors;
6
+ @value light from colors;
7
+ @value white from colors;
8
+ @value dark from colors;
9
+ @value black from colors;
10
+ @value cm_grey_100 from colors;
11
+ @value cm_grey_150 from colors;
12
+ @value cm_grey_400 from colors;
13
+ @value cm_grey_500 from colors;
14
+ @value cm_grey_700 from colors;
15
+
16
+ .wrapperSearch {
17
+ display: flex;
18
+ width: 100%;
19
+ flex-flow: nowrap;
20
+ flex-direction: row;
21
+ align-items: center;
22
+ overflow: hidden;
23
+ }
24
+
25
+ .searchIcon {
26
+ color: dark;
27
+ position: relative;
28
+ margin: 0 0 -3px -20px;
29
+ width: 19px;
30
+ height: 19px;
31
+ left: 35px;
32
+ }
33
+
34
+ .search {
35
+ font-family: "Open Sans";
36
+ text-transform: none;
37
+ margin: 0 3px;
38
+ padding: 0 15px 0 45px;
39
+ border: 0;
40
+ height: 50px;
41
+ border-radius: 0;
42
+ font-size: 14px;
43
+ color: dark;
44
+ width: 100%;
45
+ outline: none;
46
+ font-weight: bold;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ }
51
+
52
+ .search::placeholder {
53
+ color: medium;
54
+ font-size: 14px;
55
+ }
56
+
57
+ .search:focus {
58
+ outline: none;
59
+ }
60
+
61
+ .search:-webkit-autofill {
62
+ background-color: white;
63
+ background-image: none;
64
+ color: medium;
65
+ }
66
+
67
+ .search::placeholder {
68
+ color: medium;
69
+ font-size: 14px;
70
+ }
71
+
72
+ .coorpmanager {
73
+ position: relative;
74
+ }
75
+
76
+ .coorpmanager label {
77
+ display: flex;
78
+ flex-direction: column;
79
+ align-items: flex-start;
80
+ position: absolute;
81
+ height: 64px;
82
+ pointer-events: none;
83
+ }
84
+
85
+ .coorpmanager .title {
86
+ flex-grow: 0;
87
+ font-family: Gilroy;
88
+ font-size: 10px;
89
+ font-weight: bold;
90
+ font-stretch: normal;
91
+ font-style: normal;
92
+ letter-spacing: normal;
93
+ text-align: left;
94
+ z-index: 1;
95
+ color: cm_grey_400;
96
+ width: max-content;
97
+ transition: all 0.25s ease;
98
+ pointer-events: none;
99
+ display: flex;
100
+ flex-direction: row;
101
+ flex-wrap: nowrap;
102
+ position: absolute;
103
+ top: 7px;
104
+ left: 30px;
105
+ }
106
+
107
+ .coorpmanager .search {
108
+ height: 44px;
109
+ margin: 0;
110
+ flex-grow: 0;
111
+ display: flex;
112
+ box-sizing: border-box;
113
+ flex-direction: column;
114
+ justify-content: center;
115
+ align-items: flex-start;
116
+ padding: 19px 30px 5px 30px;
117
+ border-radius: 7px;
118
+ background-color: cm_grey_100;
119
+ font-family: Gilroy;
120
+ font-size: 14px;
121
+ font-weight: 500;
122
+ font-stretch: normal;
123
+ font-style: normal;
124
+ line-height: 44px;
125
+ letter-spacing: normal;
126
+ text-align: left;
127
+ color: cm_grey_700;
128
+ border: none;
129
+ transition: all 0.25s ease;
130
+ outline: none;
131
+ }
132
+
133
+ .coorpmanager .title.noValue {
134
+ font-size: 14px;
135
+ font-weight: 500;
136
+ color: cm_grey_400;
137
+ top: 14px;
138
+ }
139
+
140
+ .coorpmanager:focus-within .title.noValue {
141
+ font-size: 10px;
142
+ font-weight: bold;
143
+ color: cm_grey_400;
144
+ top: 7px;
145
+ }
146
+
147
+ .coorpmanager:focus-within .title.noValue {
148
+ width: max-content;
149
+ height: 8px;
150
+ line-height: 12px;
151
+ color: cm_grey_400;
152
+ }
153
+
154
+ .coorpmanager .search:hover {
155
+ background-color: cm_grey_150;
156
+ }
157
+
158
+ .coorpmanager .search::placeholder {
159
+ color: transparent;
160
+ }
161
+
162
+ .coorpmanager .clearIcon {
163
+ color: cm_grey_400;
164
+ width: 14px;
165
+ height: 14px;
166
+ position: absolute;
167
+ right: 15px;
168
+ top: 16px;
169
+ line-height: 16px;
170
+ cursor: pointer;
171
+ }
172
+
173
+ .coorpmanager .searchIcon {
174
+ color: #000;
175
+ width: 14px;
176
+ height: 14px;
177
+ position: absolute;
178
+ left: 30px;
179
+ top: 16px;
180
+ line-height: 16px;
181
+ }
182
+
183
+ @media tablet {
184
+ .search,
185
+ input {
186
+ font-size: 12px;
187
+ }
188
+
189
+ .search::placeholder {
190
+ font-size: 12px;
191
+ }
192
+ }
193
+
194
+ @media mobile {
195
+ .search {
196
+ font-size: 12px;
197
+ }
198
+
199
+ .search::placeholder {
200
+ font-size: 12px;
201
+ }
202
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-search/test/change.js"],"names":["browserEnv","test","React","shallow","configure","Adapter","Search","adapter","t","plan","onChange","value","is","wrapper","find","simulate","target"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,OAAR,EAAiBC,SAAjB,QAAiC,QAAjC;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,MAAP,MAAmB,IAAnB;AAEAN,UAAU;AACVI,SAAS,CAAC;AAACG,EAAAA,OAAO,EAAE,IAAIF,OAAJ;AAAV,CAAD,CAAT;AAEAJ,IAAI,CAAC,6EAAD,EAAgFO,CAAC,IAAI;AACvFA,EAAAA,CAAC,CAACC,IAAF,CAAO,CAAP;;AAEA,QAAMC,QAAQ,GAAGC,KAAK,IAAI;AACxBH,IAAAA,CAAC,CAACI,EAAF,CAAKD,KAAL,EAAY,mBAAZ;AACD,GAFD;;AAIA,QAAME,OAAO,GAAGV,OAAO,eACrB,oBAAC,MAAD;AAAQ,IAAA,WAAW,EAAC,eAApB;AAAoC,IAAA,KAAK,EAAC,kBAA1C;AAA6D,IAAA,QAAQ,EAAEO;AAAvE,IADqB,CAAvB;AAIAG,EAAAA,OAAO,CAACC,IAAR,CAAa,OAAb,EAAsBC,QAAtB,CAA+B,OAA/B,EAAwC;AAACC,IAAAA,MAAM,EAAE;AAACL,MAAAA,KAAK,EAAE;AAAR;AAAT,GAAxC;AACD,CAZG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {shallow, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport Search from '..';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should call onChange with new value when user try to change the input value', t => {\n t.plan(1);\n\n const onChange = value => {\n t.is(value, 'my name is murphy');\n };\n\n const wrapper = shallow(\n <Search placeholder=\"say your name\" value=\"my name is murph\" onChange={onChange} />\n );\n\n wrapper.find('input').simulate('input', {target: {value: 'my name is murphy'}});\n});\n"],"file":"change.js"}
@@ -0,0 +1,14 @@
1
+ export default {
2
+ props: {
3
+ value: 'big data - le retour',
4
+ placeholder: 'Search for a course',
5
+ onChange: value => {
6
+ console.log(value);
7
+ },
8
+ onEnter: () => console.log('pressed enter'),
9
+ onFocus: () => console.log('onFocus'),
10
+ onClear: () => console.log('clear pressed'),
11
+ theme: 'coorpmanager'
12
+ }
13
+ };
14
+ //# sourceMappingURL=coorpmanager-with-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/coorpmanager-with-value.js"],"names":["props","value","placeholder","onChange","console","log","onEnter","onFocus","onClear","theme"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,sBADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,eAAZ,CANV;AAOLE,IAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,SAAZ,CAPV;AAQLG,IAAAA,OAAO,EAAE,MAAMJ,OAAO,CAACC,GAAR,CAAY,eAAZ,CARV;AASLI,IAAAA,KAAK,EAAE;AATF;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: 'big data - le retour',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onEnter: () => console.log('pressed enter'),\n onFocus: () => console.log('onFocus'),\n onClear: () => console.log('clear pressed'),\n theme: 'coorpmanager'\n }\n};\n"],"file":"coorpmanager-with-value.js"}
@@ -0,0 +1,13 @@
1
+ export default {
2
+ props: {
3
+ value: '',
4
+ placeholder: 'Search for a course',
5
+ onChange: value => {
6
+ console.log(value);
7
+ },
8
+ onFocus: () => console.log('onFocus'),
9
+ onBlur: () => console.log('blur'),
10
+ theme: 'coorpmanager'
11
+ }
12
+ };
13
+ //# sourceMappingURL=coorpmanager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/coorpmanager.js"],"names":["props","value","placeholder","onChange","console","log","onFocus","onBlur","theme"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,EADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,SAAZ,CANV;AAOLE,IAAAA,MAAM,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,MAAZ,CAPT;AAQLG,IAAAA,KAAK,EAAE;AARF;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: '',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onFocus: () => console.log('onFocus'),\n onBlur: () => console.log('blur'),\n theme: 'coorpmanager'\n }\n};\n"],"file":"coorpmanager.js"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/default.js"],"names":["props","value","placeholder","onChange","console","log","onFocus","onBlur"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,EADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,SAAZ,CANV;AAOLE,IAAAA,MAAM,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,MAAZ;AAPT;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: '',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onFocus: () => console.log('onFocus'),\n onBlur: () => console.log('blur')\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-search/test/fixtures/with-value.js"],"names":["props","value","placeholder","onChange","console","log","onEnter","onFocus"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,sBADF;AAELC,IAAAA,WAAW,EAAE,qBAFR;AAGLC,IAAAA,QAAQ,EAAEF,KAAK,IAAI;AACjBG,MAAAA,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AACD,KALI;AAMLK,IAAAA,OAAO,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,eAAZ,CANV;AAOLE,IAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,SAAZ;AAPV;AADM,CAAf","sourcesContent":["export default {\n props: {\n value: 'big data - le retour',\n placeholder: 'Search for a course',\n onChange: value => {\n console.log(value);\n },\n onEnter: () => console.log('pressed enter'),\n onFocus: () => console.log('onFocus')\n }\n};\n"],"file":"with-value.js"}
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomInputSearch from '..';
5
+ import fixtureCoorpmanagerWithValue from './fixtures/coorpmanager-with-value';
6
+ import fixtureCoorpmanager from './fixtures/coorpmanager';
7
+ import fixtureDefault from './fixtures/default';
8
+ import fixtureWithValue from './fixtures/with-value';
9
+ test('Atom › AtomInputSearch > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(AtomInputSearch.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Atom.AtomInputSearch.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Atom › AtomInputSearch › CoorpmanagerWithValue › should be rendered', renderComponentMacro, AtomInputSearch, fixtureCoorpmanagerWithValue);
16
+ test('Atom › AtomInputSearch › Coorpmanager › should be rendered', renderComponentMacro, AtomInputSearch, fixtureCoorpmanager);
17
+ test('Atom › AtomInputSearch › Default › should be rendered', renderComponentMacro, AtomInputSearch, fixtureDefault);
18
+ test('Atom › AtomInputSearch › WithValue › should be rendered', renderComponentMacro, AtomInputSearch, fixtureWithValue);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-search/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputSearch","fixtureCoorpmanagerWithValue","fixtureCoorpmanager","fixtureDefault","fixtureWithValue","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,4BAAP,MAAyC,oCAAzC;AACA,OAAOC,mBAAP,MAAgC,yBAAhC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAP,IAAI,CAAC,sDAAD,EAAyDQ,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,eAAe,CAACO,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,eAA9F,EAA+GC,4BAA/G,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,eAArF,EAAsGE,mBAAtG,CAAJ;AACAL,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGG,cAAjG,CAAJ;AACAN,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGI,gBAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputSearch from '..';\nimport fixtureCoorpmanagerWithValue from './fixtures/coorpmanager-with-value';\nimport fixtureCoorpmanager from './fixtures/coorpmanager';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('Atom › AtomInputSearch > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputSearch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputSearch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputSearch › CoorpmanagerWithValue › should be rendered', renderComponentMacro, AtomInputSearch, fixtureCoorpmanagerWithValue);\ntest('Atom › AtomInputSearch › Coorpmanager › should be rendered', renderComponentMacro, AtomInputSearch, fixtureCoorpmanager);\ntest('Atom › AtomInputSearch › Default › should be rendered', renderComponentMacro, AtomInputSearch, fixtureDefault);\ntest('Atom › AtomInputSearch › WithValue › should be rendered', renderComponentMacro, AtomInputSearch, fixtureWithValue);\n"],"file":"fixtures.js"}
@@ -181,7 +181,7 @@
181
181
 
182
182
 
183
183
  .coorpmanager {
184
- width: 300px;
184
+ width: 100%;
185
185
  position: relative;
186
186
  display: flex;
187
187
  flex-direction: column;
@@ -227,8 +227,12 @@
227
227
  color: cm_grey_500;
228
228
  }
229
229
 
230
+ .coorpmanager label {
231
+ width: 100%;
232
+ }
233
+
230
234
  .coorpmanager input {
231
- width: 300px;
235
+ width: 100%;
232
236
  height: 44px;
233
237
  margin: 0px;
234
238
  flex-grow: 0;
@@ -2,6 +2,7 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomInputText from '..';
5
+ import fixtureCmDefault from './fixtures/cm-default';
5
6
  import fixtureDefault from './fixtures/default';
6
7
  import fixtureDisabled from './fixtures/disabled';
7
8
  import fixtureEmpty from './fixtures/empty';
@@ -15,6 +16,7 @@ test('Atom › AtomInputText > should have valid propTypes', t => {
15
16
  t.not(value, undefined, `PropType for "Atom.AtomInputText.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
16
17
  });
17
18
  });
19
+ test('Atom › AtomInputText › CmDefault › should be rendered', renderComponentMacro, AtomInputText, fixtureCmDefault);
18
20
  test('Atom › AtomInputText › Default › should be rendered', renderComponentMacro, AtomInputText, fixtureDefault);
19
21
  test('Atom › AtomInputText › Disabled › should be rendered', renderComponentMacro, AtomInputText, fixtureDisabled);
20
22
  test('Atom › AtomInputText › Empty › should be rendered', renderComponentMacro, AtomInputText, fixtureEmpty);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/input-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputText","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureError","fixtureModified","fixtureNotitle","fixtureRequired","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,aAAP,MAA0B,IAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAV,IAAI,CAAC,oDAAD,EAAuDW,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF;AACAX,EAAAA,OAAO,CAACE,aAAa,CAACU,SAAf,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8CAA6CF,GAAI,mEAA1E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAf,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FC,cAA7F,CAAJ;AACAJ,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,aAA/E,EAA8FE,eAA9F,CAAJ;AACAL,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FG,YAA3F,CAAJ;AACAN,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FI,YAA3F,CAAJ;AACAP,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,aAA/E,EAA8FK,eAA9F,CAAJ;AACAR,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FM,cAA7F,CAAJ;AACAT,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,aAA/E,EAA8FO,eAA9F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputText from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureNotitle from './fixtures/notitle';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputText > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputText › Default › should be rendered', renderComponentMacro, AtomInputText, fixtureDefault);\ntest('Atom › AtomInputText › Disabled › should be rendered', renderComponentMacro, AtomInputText, fixtureDisabled);\ntest('Atom › AtomInputText › Empty › should be rendered', renderComponentMacro, AtomInputText, fixtureEmpty);\ntest('Atom › AtomInputText › Error › should be rendered', renderComponentMacro, AtomInputText, fixtureError);\ntest('Atom › AtomInputText › Modified › should be rendered', renderComponentMacro, AtomInputText, fixtureModified);\ntest('Atom › AtomInputText › Notitle › should be rendered', renderComponentMacro, AtomInputText, fixtureNotitle);\ntest('Atom › AtomInputText › Required › should be rendered', renderComponentMacro, AtomInputText, fixtureRequired);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/input-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputText","fixtureCmDefault","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureError","fixtureModified","fixtureNotitle","fixtureRequired","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,aAAP,MAA0B,IAA1B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAX,IAAI,CAAC,oDAAD,EAAuDY,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF;AACAZ,EAAAA,OAAO,CAACE,aAAa,CAACW,SAAf,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8CAA6CF,GAAI,mEAA1E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAhB,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,aAAhF,EAA+FC,gBAA/F,CAAJ;AACAJ,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FE,cAA7F,CAAJ;AACAL,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,aAA/E,EAA8FG,eAA9F,CAAJ;AACAN,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FI,YAA3F,CAAJ;AACAP,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FK,YAA3F,CAAJ;AACAR,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,aAA/E,EAA8FM,eAA9F,CAAJ;AACAT,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FO,cAA7F,CAAJ;AACAV,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,aAA/E,EAA8FQ,eAA9F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputText from '..';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureNotitle from './fixtures/notitle';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputText > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputText › CmDefault › should be rendered', renderComponentMacro, AtomInputText, fixtureCmDefault);\ntest('Atom › AtomInputText › Default › should be rendered', renderComponentMacro, AtomInputText, fixtureDefault);\ntest('Atom › AtomInputText › Disabled › should be rendered', renderComponentMacro, AtomInputText, fixtureDisabled);\ntest('Atom › AtomInputText › Empty › should be rendered', renderComponentMacro, AtomInputText, fixtureEmpty);\ntest('Atom › AtomInputText › Error › should be rendered', renderComponentMacro, AtomInputText, fixtureError);\ntest('Atom › AtomInputText › Modified › should be rendered', renderComponentMacro, AtomInputText, fixtureModified);\ntest('Atom › AtomInputText › Notitle › should be rendered', renderComponentMacro, AtomInputText, fixtureNotitle);\ntest('Atom › AtomInputText › Required › should be rendered', renderComponentMacro, AtomInputText, fixtureRequired);\n"],"file":"fixtures.js"}
@@ -183,7 +183,7 @@
183
183
 
184
184
 
185
185
  .coorpmanager {
186
- width: 300px;
186
+ width: 100%;
187
187
  position: relative;
188
188
  display: flex;
189
189
  flex-direction: column;
@@ -192,6 +192,7 @@
192
192
  }
193
193
 
194
194
  .coorpmanager label {
195
+ width: 100%;
195
196
  display: flex;
196
197
  flex-direction: column;
197
198
  align-items: flex-start;
@@ -231,10 +232,9 @@
231
232
  }
232
233
 
233
234
  .coorpmanager textarea {
234
- width: 285px;
235
+ width: stretch;
235
236
  min-height: 145px;
236
237
  resize: vertical;
237
- margin: 0px;
238
238
  flex-grow: 0;
239
239
  display: flex;
240
240
  box-sizing: border-box;
@@ -2,6 +2,8 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomInputTextarea from '..';
5
+ import fixtureCmDefault from './fixtures/cm-default';
6
+ import fixtureCmEmpty from './fixtures/cm-empty';
5
7
  import fixtureDefault from './fixtures/default';
6
8
  import fixtureEmpty from './fixtures/empty';
7
9
  import fixtureError from './fixtures/error';
@@ -11,6 +13,8 @@ test('Atom › AtomInputTextarea > should have valid propTypes', t => {
11
13
  t.not(value, undefined, `PropType for "Atom.AtomInputTextarea.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
14
  });
13
15
  });
16
+ test('Atom › AtomInputTextarea › CmDefault › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmDefault);
17
+ test('Atom › AtomInputTextarea › CmEmpty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmEmpty);
14
18
  test('Atom › AtomInputTextarea › Default › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureDefault);
15
19
  test('Atom › AtomInputTextarea › Empty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureEmpty);
16
20
  test('Atom › AtomInputTextarea › Error › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureError);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/input-textarea/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputTextarea","fixtureDefault","fixtureEmpty","fixtureError","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAN,IAAI,CAAC,wDAAD,EAA2DO,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,iBAAiB,CAACM,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGC,cAArG,CAAJ;AACAJ,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,iBAAhF,EAAmGE,YAAnG,CAAJ;AACAL,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,iBAAhF,EAAmGG,YAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputTextarea from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputTextarea > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputTextarea.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputTextarea.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputTextarea › Default › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureDefault);\ntest('Atom › AtomInputTextarea › Empty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureEmpty);\ntest('Atom › AtomInputTextarea › Error › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureError);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/input-textarea/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomInputTextarea","fixtureCmDefault","fixtureCmEmpty","fixtureDefault","fixtureEmpty","fixtureError","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAR,IAAI,CAAC,wDAAD,EAA2DS,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,iBAAiB,CAACQ,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,iBAApF,EAAuGC,gBAAvG,CAAJ;AACAJ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGE,cAArG,CAAJ;AACAL,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGG,cAArG,CAAJ;AACAN,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,iBAAhF,EAAmGI,YAAnG,CAAJ;AACAP,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,iBAAhF,EAAmGK,YAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputTextarea from '..';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureCmEmpty from './fixtures/cm-empty';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputTextarea > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputTextarea.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputTextarea.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputTextarea › CmDefault › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmDefault);\ntest('Atom › AtomInputTextarea › CmEmpty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmEmpty);\ntest('Atom › AtomInputTextarea › Default › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureDefault);\ntest('Atom › AtomInputTextarea › Empty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureEmpty);\ntest('Atom › AtomInputTextarea › Error › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureError);\n"],"file":"fixtures.js"}
@@ -0,0 +1,27 @@
1
+ import _keys from "lodash/fp/keys";
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import style from './style.css';
5
+ const TAG_STYLES = {
6
+ default: style.default,
7
+ published: style.published,
8
+ revision: style.revision,
9
+ archived: style.archived
10
+ };
11
+
12
+ const Tag = props => {
13
+ const {
14
+ label,
15
+ type = 'default'
16
+ } = props;
17
+ return /*#__PURE__*/React.createElement("span", {
18
+ className: TAG_STYLES[type]
19
+ }, label);
20
+ };
21
+
22
+ Tag.propTypes = process.env.NODE_ENV !== "production" ? {
23
+ label: PropTypes.string,
24
+ type: PropTypes.oneOf(_keys(TAG_STYLES))
25
+ } : {};
26
+ export default Tag;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/tag/index.js"],"names":["React","PropTypes","style","TAG_STYLES","default","published","revision","archived","Tag","props","label","type","propTypes","string","oneOf"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,OAAO,EAAEF,KAAK,CAACE,OADE;AAEjBC,EAAAA,SAAS,EAAEH,KAAK,CAACG,SAFA;AAGjBC,EAAAA,QAAQ,EAAEJ,KAAK,CAACI,QAHC;AAIjBC,EAAAA,QAAQ,EAAEL,KAAK,CAACK;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,EAAEN,UAAU,CAACQ,IAAD;AAA3B,KAAoCD,KAApC,CAAP;AACD,CAJD;;AAMAF,GAAG,CAACI,SAAJ,2CAAgB;AACdF,EAAAA,KAAK,EAAET,SAAS,CAACY,MADH;AAEdF,EAAAA,IAAI,EAAEV,SAAS,CAACa,KAAV,CAAgB,MAAKX,UAAL,CAAhB;AAFQ,CAAhB;AAKA,eAAeK,GAAf","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
+ }