@coorpacademy/components 10.1.0 → 10.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/es/atom/button/index.js +3 -1
  2. package/es/atom/button/index.js.map +1 -1
  3. package/es/atom/button-link/index.js +107 -0
  4. package/es/atom/button-link/index.js.map +1 -0
  5. package/es/atom/button-link/style.css +97 -0
  6. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js +10 -0
  7. package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  8. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js +14 -0
  9. package/es/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  10. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js +10 -0
  11. package/es/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  12. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +11 -0
  13. package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  14. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js +14 -0
  15. package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  16. package/es/atom/button-link/test/fixtures/icon-button.js +13 -0
  17. package/es/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  18. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +17 -0
  19. package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  20. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js +20 -0
  21. package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  22. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js +16 -0
  23. package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  24. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +17 -0
  25. package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  26. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js +13 -0
  27. package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  28. package/es/atom/content-badge/index.js +4 -4
  29. package/es/atom/content-badge/index.js.map +1 -1
  30. package/es/atom/input-checkbox/test/fixtures.js +0 -2
  31. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  32. package/es/atom/input-search/index.js +65 -0
  33. package/es/atom/input-search/index.js.map +1 -0
  34. package/es/atom/input-search/style.css +201 -0
  35. package/es/{molecule/search → atom/input-search}/test/change.js +0 -0
  36. package/es/atom/input-search/test/change.js.map +1 -0
  37. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js +14 -0
  38. package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  39. package/es/atom/input-search/test/fixtures/coorpmanager.js +13 -0
  40. package/es/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  41. package/es/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  42. package/es/atom/input-search/test/fixtures/default.js.map +1 -0
  43. package/es/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  44. package/es/atom/input-search/test/fixtures/with-value.js.map +1 -0
  45. package/es/atom/input-text/index.js +34 -6
  46. package/es/atom/input-text/index.js.map +1 -1
  47. package/es/atom/input-text/style.css +229 -1
  48. package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
  49. package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  50. package/es/atom/input-textarea/index.js +36 -11
  51. package/es/atom/input-textarea/index.js.map +1 -1
  52. package/es/atom/input-textarea/style.css +265 -0
  53. package/es/atom/input-textarea/test/fixtures/cm-default.js +17 -0
  54. package/es/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  55. package/es/atom/input-textarea/test/fixtures/cm-empty.js +17 -0
  56. package/es/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  57. package/es/atom/tag/index.js +27 -0
  58. package/es/atom/tag/index.js.map +1 -0
  59. package/es/atom/tag/style.css +38 -0
  60. package/es/atom/tag/test/fixtures/archived.js +7 -0
  61. package/es/atom/tag/test/fixtures/archived.js.map +1 -0
  62. package/es/atom/tag/test/fixtures/default.js +7 -0
  63. package/es/atom/tag/test/fixtures/default.js.map +1 -0
  64. package/es/atom/tag/test/fixtures/published.js +7 -0
  65. package/es/atom/tag/test/fixtures/published.js.map +1 -0
  66. package/es/atom/tag/test/fixtures/revision.js +7 -0
  67. package/es/atom/tag/test/fixtures/revision.js.map +1 -0
  68. package/es/atom/title/test/fixtures.js +2 -6
  69. package/es/atom/title/test/fixtures.js.map +1 -1
  70. package/es/molecule/banner/index.js +46 -0
  71. package/es/molecule/banner/index.js.map +1 -0
  72. package/es/molecule/banner/style.css +63 -0
  73. package/es/molecule/banner/test/fixtures/default.js +11 -0
  74. package/es/molecule/banner/test/fixtures/default.js.map +1 -0
  75. package/es/molecule/banner/test/fixtures/error-banner.js +7 -0
  76. package/es/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  77. package/es/molecule/brand-form-group/test/fixtures/cm-default.js +51 -0
  78. package/es/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  79. package/es/molecule/brand-form-group/test/fixtures/default.js +12 -3
  80. package/es/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  81. package/es/molecule/card/index.js +16 -5
  82. package/es/molecule/card/index.js.map +1 -1
  83. package/es/molecule/card/selectable.css +71 -0
  84. package/es/molecule/card/selectable.js +32 -0
  85. package/es/molecule/card/selectable.js.map +1 -0
  86. package/es/molecule/card/test/fixtures/default.js +1 -0
  87. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  88. package/es/molecule/card/test/fixtures/selectable-false.js +16 -0
  89. package/es/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  90. package/es/molecule/card/test/fixtures/selectable-true.js +17 -0
  91. package/es/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  92. package/es/molecule/card-content/index.js +13 -3
  93. package/es/molecule/card-content/index.js.map +1 -1
  94. package/es/molecule/card-content/style.css +13 -3
  95. package/es/molecule/cm-popin/index.js +82 -0
  96. package/es/molecule/cm-popin/index.js.map +1 -0
  97. package/es/molecule/cm-popin/style.css +115 -0
  98. package/es/molecule/cm-popin/test/fixtures/dangerous.js +19 -0
  99. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  100. package/es/molecule/cm-popin/test/fixtures/default.js +19 -0
  101. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  102. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +20 -0
  103. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  104. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  105. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  106. package/es/molecule/search-form/index.js +1 -1
  107. package/es/molecule/search-form/index.js.map +1 -1
  108. package/es/molecule/wizard-summary/index.js +195 -0
  109. package/es/molecule/wizard-summary/index.js.map +1 -0
  110. package/es/molecule/wizard-summary/style.css +230 -0
  111. package/es/molecule/wizard-summary/test/fixtures/default.js +124 -0
  112. package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  113. package/es/molecule/wizard-summary/test/fixtures/one-section.js +23 -0
  114. package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  115. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +118 -0
  116. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  117. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +42 -0
  118. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  119. package/es/molecule/wizard-summary/test/fixtures/two-sections.js +35 -0
  120. package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  121. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -4
  122. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  123. package/es/organism/brand-dashboard/test/fixtures.js +10 -2
  124. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
  125. package/es/organism/brand-table/index.js +1 -1
  126. package/es/organism/brand-table/index.js.map +1 -1
  127. package/es/organism/mooc-header/index.js +1 -1
  128. package/es/organism/mooc-header/index.js.map +1 -1
  129. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  130. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  131. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  132. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  133. package/es/organism/user-preferences/style.css +1 -0
  134. package/es/template/back-office/brand-list/index.js +6 -2
  135. package/es/template/back-office/brand-list/index.js.map +1 -1
  136. package/es/template/back-office/brand-list/style.css +1 -0
  137. package/es/template/back-office/brand-update/test/fixtures.js +0 -2
  138. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  139. package/es/variables/colors.css +11 -3
  140. package/lib/atom/button/index.js +3 -1
  141. package/lib/atom/button/index.js.map +1 -1
  142. package/lib/atom/button-link/index.js +124 -0
  143. package/lib/atom/button-link/index.js.map +1 -0
  144. package/lib/atom/button-link/style.css +97 -0
  145. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js +15 -0
  146. package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
  147. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js +19 -0
  148. package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
  149. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js +15 -0
  150. package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
  151. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +16 -0
  152. package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
  153. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js +19 -0
  154. package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
  155. package/lib/atom/button-link/test/fixtures/icon-button.js +18 -0
  156. package/lib/atom/button-link/test/fixtures/icon-button.js.map +1 -0
  157. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +22 -0
  158. package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
  159. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js +25 -0
  160. package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
  161. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js +21 -0
  162. package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
  163. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +22 -0
  164. package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
  165. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js +18 -0
  166. package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js.map +1 -0
  167. package/lib/atom/content-badge/index.js +4 -4
  168. package/lib/atom/content-badge/index.js.map +1 -1
  169. package/lib/atom/input-checkbox/test/fixtures.js +0 -3
  170. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  171. package/lib/{molecule/search → atom/input-search}/index.js +29 -18
  172. package/lib/atom/input-search/index.js.map +1 -0
  173. package/lib/atom/input-search/style.css +201 -0
  174. package/lib/{molecule/search → atom/input-search}/test/change.js +0 -0
  175. package/lib/atom/input-search/test/change.js.map +1 -0
  176. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js +19 -0
  177. package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
  178. package/lib/atom/input-search/test/fixtures/coorpmanager.js +18 -0
  179. package/lib/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
  180. package/lib/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
  181. package/lib/atom/input-search/test/fixtures/default.js.map +1 -0
  182. package/lib/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
  183. package/lib/atom/input-search/test/fixtures/with-value.js.map +1 -0
  184. package/lib/atom/input-text/index.js +36 -6
  185. package/lib/atom/input-text/index.js.map +1 -1
  186. package/lib/atom/input-text/style.css +229 -1
  187. package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
  188. package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  189. package/lib/atom/input-textarea/index.js +38 -11
  190. package/lib/atom/input-textarea/index.js.map +1 -1
  191. package/lib/atom/input-textarea/style.css +265 -0
  192. package/lib/atom/input-textarea/test/fixtures/cm-default.js +22 -0
  193. package/lib/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  194. package/lib/atom/input-textarea/test/fixtures/cm-empty.js +22 -0
  195. package/lib/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  196. package/lib/atom/tag/index.js +39 -0
  197. package/lib/atom/tag/index.js.map +1 -0
  198. package/lib/atom/tag/style.css +38 -0
  199. package/lib/atom/tag/test/fixtures/archived.js +12 -0
  200. package/lib/atom/tag/test/fixtures/archived.js.map +1 -0
  201. package/lib/atom/tag/test/fixtures/default.js +12 -0
  202. package/lib/atom/tag/test/fixtures/default.js.map +1 -0
  203. package/lib/atom/tag/test/fixtures/published.js +12 -0
  204. package/lib/atom/tag/test/fixtures/published.js.map +1 -0
  205. package/lib/atom/tag/test/fixtures/revision.js +12 -0
  206. package/lib/atom/tag/test/fixtures/revision.js.map +1 -0
  207. package/lib/atom/title/test/fixtures.js +2 -8
  208. package/lib/atom/title/test/fixtures.js.map +1 -1
  209. package/lib/molecule/banner/index.js +59 -0
  210. package/lib/molecule/banner/index.js.map +1 -0
  211. package/lib/molecule/banner/style.css +63 -0
  212. package/lib/molecule/banner/test/fixtures/default.js +16 -0
  213. package/lib/molecule/banner/test/fixtures/default.js.map +1 -0
  214. package/lib/molecule/banner/test/fixtures/error-banner.js +12 -0
  215. package/lib/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  216. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js +56 -0
  217. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  218. package/lib/molecule/brand-form-group/test/fixtures/default.js +12 -3
  219. package/lib/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  220. package/lib/molecule/card/index.js +17 -5
  221. package/lib/molecule/card/index.js.map +1 -1
  222. package/lib/molecule/card/selectable.css +71 -0
  223. package/lib/molecule/card/selectable.js +45 -0
  224. package/lib/molecule/card/selectable.js.map +1 -0
  225. package/lib/molecule/card/test/fixtures/default.js +1 -0
  226. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  227. package/lib/molecule/card/test/fixtures/selectable-false.js +26 -0
  228. package/lib/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  229. package/lib/molecule/card/test/fixtures/selectable-true.js +27 -0
  230. package/lib/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  231. package/lib/molecule/card-content/index.js +14 -3
  232. package/lib/molecule/card-content/index.js.map +1 -1
  233. package/lib/molecule/card-content/style.css +13 -3
  234. package/lib/molecule/cm-popin/index.js +94 -0
  235. package/lib/molecule/cm-popin/index.js.map +1 -0
  236. package/lib/molecule/cm-popin/style.css +115 -0
  237. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +24 -0
  238. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  239. package/lib/molecule/cm-popin/test/fixtures/default.js +24 -0
  240. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  241. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +25 -0
  242. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  243. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  244. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  245. package/lib/molecule/search-form/index.js +3 -3
  246. package/lib/molecule/search-form/index.js.map +1 -1
  247. package/lib/molecule/wizard-summary/index.js +213 -0
  248. package/lib/molecule/wizard-summary/index.js.map +1 -0
  249. package/lib/molecule/wizard-summary/style.css +230 -0
  250. package/lib/molecule/wizard-summary/test/fixtures/default.js +129 -0
  251. package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  252. package/lib/molecule/wizard-summary/test/fixtures/one-section.js +28 -0
  253. package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  254. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +123 -0
  255. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  256. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +47 -0
  257. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  258. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +40 -0
  259. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  260. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -6
  261. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  262. package/lib/organism/brand-dashboard/test/fixtures.js +14 -2
  263. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
  264. package/lib/organism/brand-table/index.js +3 -3
  265. package/lib/organism/brand-table/index.js.map +1 -1
  266. package/lib/organism/mooc-header/index.js +2 -2
  267. package/lib/organism/mooc-header/index.js.map +1 -1
  268. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  269. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  270. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  271. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  272. package/lib/organism/user-preferences/style.css +1 -0
  273. package/lib/template/back-office/brand-list/index.js +7 -3
  274. package/lib/template/back-office/brand-list/index.js.map +1 -1
  275. package/lib/template/back-office/brand-list/style.css +1 -0
  276. package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
  277. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  278. package/lib/variables/colors.css +11 -3
  279. package/package.json +3 -3
  280. package/es/atom/chips/test/fixtures.js +0 -15
  281. package/es/atom/chips/test/fixtures.js.map +0 -1
  282. package/es/atom/content-badge/test/fixtures.js +0 -27
  283. package/es/atom/content-badge/test/fixtures.js.map +0 -1
  284. package/es/atom/wizard-steps/test/fixtures.js +0 -17
  285. package/es/atom/wizard-steps/test/fixtures.js.map +0 -1
  286. package/es/molecule/coorp-manager-roles/test/fixtures.js +0 -13
  287. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
  288. package/es/molecule/popin/test/fixtures.js +0 -21
  289. package/es/molecule/popin/test/fixtures.js.map +0 -1
  290. package/es/molecule/quick-access-card/test/fixtures.js +0 -21
  291. package/es/molecule/quick-access-card/test/fixtures.js.map +0 -1
  292. package/es/molecule/quick-access-cards-group/test/fixtures.js +0 -21
  293. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
  294. package/es/molecule/search/index.js +0 -57
  295. package/es/molecule/search/index.js.map +0 -1
  296. package/es/molecule/search/style.css +0 -86
  297. package/es/molecule/search/test/change.js.map +0 -1
  298. package/es/molecule/search/test/fixtures/default.js.map +0 -1
  299. package/es/molecule/search/test/fixtures/with-value.js.map +0 -1
  300. package/es/molecule/vertical-tabs/test/fixtures.js +0 -15
  301. package/es/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  302. package/es/molecule/wizard-summary/test/fixtures.js +0 -19
  303. package/es/molecule/wizard-summary/test/fixtures.js.map +0 -1
  304. package/es/organism/brand-analytics/test/fixtures.js +0 -23
  305. package/es/organism/brand-analytics/test/fixtures.js.map +0 -1
  306. package/lib/atom/chips/test/fixtures.js +0 -25
  307. package/lib/atom/chips/test/fixtures.js.map +0 -1
  308. package/lib/atom/content-badge/test/fixtures.js +0 -43
  309. package/lib/atom/content-badge/test/fixtures.js.map +0 -1
  310. package/lib/atom/wizard-steps/test/fixtures.js +0 -28
  311. package/lib/atom/wizard-steps/test/fixtures.js.map +0 -1
  312. package/lib/molecule/coorp-manager-roles/test/fixtures.js +0 -22
  313. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
  314. package/lib/molecule/popin/test/fixtures.js +0 -34
  315. package/lib/molecule/popin/test/fixtures.js.map +0 -1
  316. package/lib/molecule/quick-access-card/test/fixtures.js +0 -34
  317. package/lib/molecule/quick-access-card/test/fixtures.js.map +0 -1
  318. package/lib/molecule/quick-access-cards-group/test/fixtures.js +0 -34
  319. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
  320. package/lib/molecule/search/index.js.map +0 -1
  321. package/lib/molecule/search/style.css +0 -86
  322. package/lib/molecule/search/test/change.js.map +0 -1
  323. package/lib/molecule/search/test/fixtures/default.js.map +0 -1
  324. package/lib/molecule/search/test/fixtures/with-value.js.map +0 -1
  325. package/lib/molecule/vertical-tabs/test/fixtures.js +0 -25
  326. package/lib/molecule/vertical-tabs/test/fixtures.js.map +0 -1
  327. package/lib/molecule/wizard-summary/test/fixtures.js +0 -31
  328. package/lib/molecule/wizard-summary/test/fixtures.js.map +0 -1
  329. package/lib/organism/brand-analytics/test/fixtures.js +0 -37
  330. package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
@@ -5,6 +5,15 @@
5
5
  @value dark from colors;
6
6
  @value grey from colors;
7
7
  @value medium from colors;
8
+ @value xtraLightGrey from colors;
9
+ @value cm_positive_100 from colors;
10
+ @value cm_negative_100 from colors;
11
+ @value cm_grey_100 from colors;
12
+ @value cm_grey_150 from colors;
13
+ @value cm_grey_200 from colors;
14
+ @value cm_grey_400 from colors;
15
+ @value cm_grey_500 from colors;
16
+ @value cm_grey_700 from colors;
8
17
 
9
18
  .default {
10
19
  display: flex;
@@ -64,7 +73,7 @@
64
73
  bottom: 65px;
65
74
  left: 20px;
66
75
  max-width: 380px;
67
- transition: opacity 0.5s ease-in;
76
+ transition: opacity 0.25s ease-in;
68
77
  }
69
78
  .cockpit .description:after {
70
79
  content: "";
@@ -168,3 +177,222 @@
168
177
  color: medium;
169
178
  font-style: italic;
170
179
  }
180
+ /******************************* coorpmanager theme ***************************************/
181
+
182
+
183
+ .coorpmanager {
184
+ width: 300px;
185
+ position: relative;
186
+ display: flex;
187
+ flex-direction: column;
188
+ align-items: flex-start;
189
+ flex-wrap: nowrap;
190
+ }
191
+
192
+ .coorpmanager label {
193
+ display: flex;
194
+ flex-direction: column;
195
+ align-items: flex-start;
196
+ position: relative;
197
+ height: 64px;
198
+ }
199
+
200
+ .coorpmanager .title {
201
+ flex-grow: 0;
202
+ font-family: Gilroy;
203
+ font-size: 10px;
204
+ font-weight: bold;
205
+ font-stretch: normal;
206
+ font-style: normal;
207
+ line-height: 1.2;
208
+ letter-spacing: normal;
209
+ text-align: left;
210
+ z-index: 1;
211
+ color: cm_grey_400;
212
+ width: auto;
213
+ transition: all 0.25s linear;
214
+ pointer-events: none;
215
+ display: flex;
216
+ flex-direction: row;
217
+ flex-wrap: nowrap;
218
+ position: absolute;
219
+ top: 7px;
220
+ left: 16px;
221
+ }
222
+
223
+ .coorpmanager .title.noValue .infoIcon {
224
+ height: 10px;
225
+ width: 10px;
226
+ line-height: 12px;
227
+ color: cm_grey_500;
228
+ }
229
+
230
+ .coorpmanager input {
231
+ width: 300px;
232
+ height: 44px;
233
+ margin: 0px;
234
+ flex-grow: 0;
235
+ display: flex;
236
+ box-sizing: border-box;
237
+ flex-direction: column;
238
+ justify-content: center;
239
+ align-items: flex-start;
240
+ padding: 19px 30px 5px 16px;
241
+ border-radius: 7px;
242
+ background-color: cm_grey_100;
243
+ font-family: Gilroy;
244
+ font-size: 14px;
245
+ font-weight: 500;
246
+ font-stretch: normal;
247
+ font-style: normal;
248
+ line-height: 44px;
249
+ letter-spacing: normal;
250
+ text-align: left;
251
+ color: cm_grey_700;
252
+ border: none;
253
+ transition: all 0.25s linear;
254
+ outline: none;
255
+ display: flex;
256
+ }
257
+
258
+ .coorpmanager .title.noValue{
259
+ font-size: 14px;
260
+ font-weight: 500;
261
+ color: cm_grey_700;
262
+ top: 14px;
263
+ }
264
+
265
+ .coorpmanager:focus-within .title.noValue {
266
+ font-size: 10px;
267
+ font-weight: bold;
268
+ color: cm_grey_400;
269
+ top: 7px;
270
+ }
271
+
272
+ .coorpmanager:focus-within input::placeholder {
273
+ color: cm_grey_400;
274
+ }
275
+
276
+ .coorpmanager:focus-within .title.noValue .infoIcon {
277
+ width: 8px;
278
+ height: 8px;
279
+ line-height: 12px;
280
+ color: cm_grey_400;
281
+ }
282
+
283
+ .coorpmanager input:hover {
284
+ background-color: cm_grey_150;
285
+ }
286
+
287
+ .coorpmanager input::placeholder {
288
+ color: transparent;
289
+ transition: color 0.25s linear;
290
+ }
291
+
292
+ .coorpmanager .hint {
293
+ flex-grow: 0;
294
+ opacity: 0.5;
295
+ font-family: Gilroy;
296
+ font-size: 10px;
297
+ font-weight: 500;
298
+ font-stretch: normal;
299
+ font-style: normal;
300
+ line-height: 1.2;
301
+ letter-spacing: normal;
302
+ text-align: left;
303
+ padding-top: 8px;
304
+ color: cm_grey_700;
305
+ }
306
+
307
+ .coorpmanager.error .hint {
308
+ color: cm_negative_100;
309
+ }
310
+
311
+ .coorpmanager.error .leftIcon {
312
+ background-color: cm_negative_100;
313
+ color: white;
314
+ border-radius: 50%;
315
+ padding: 2px;
316
+ width: 10px;
317
+ height: 10px;
318
+ right: 17px;
319
+ top: 14px;
320
+ }
321
+
322
+ .coorpmanager .leftIcon {
323
+ color: cm_positive_100;
324
+ width: 17px;
325
+ height: 17px;
326
+ position: absolute;
327
+ right: 16px;
328
+ top: 13px;
329
+ }
330
+
331
+ .coorpmanager.disabled {
332
+ opacity: 0.5;
333
+ }
334
+
335
+ .coorpmanager .infoIconWrapper {
336
+ overflow: visible;
337
+ height: 12px;
338
+ margin: 0px 4px;
339
+ cursor: pointer;
340
+ pointer-events: fill;
341
+ position: relative;
342
+ }
343
+
344
+ .coorpmanager .infoIcon {
345
+ cursor: pointer;
346
+ width: 8px;
347
+ height: 8px;
348
+ line-height: 16px;
349
+ color: cm_grey_400;
350
+ transition: all 0.25s linear;
351
+ }
352
+
353
+ .coorpmanager .infoIconWrapper:hover .descriptionLabel {
354
+ visibility: visible;
355
+ opacity: 1;
356
+ }
357
+
358
+ .coorpmanager .descriptionLabel {
359
+ margin: 0 1px 18px 0;
360
+ padding: 8px 16px;
361
+ border-radius: 7px;
362
+ background-color: cm_grey_700;
363
+ flex-grow: 0;
364
+ font-family: Gilroy;
365
+ font-size: 14px;
366
+ font-weight: 500;
367
+ font-stretch: normal;
368
+ font-style: normal;
369
+ line-height: 1.43;
370
+ letter-spacing: normal;
371
+ text-align: center;
372
+ color: white;
373
+ padding: 8px 16px;
374
+ max-width: 200px;
375
+ position: absolute;
376
+ left: -24px;
377
+ z-index: 3;
378
+ bottom: 5px;
379
+ width: max-content;
380
+ visibility: hidden;
381
+ opacity: 0s
382
+ }
383
+
384
+ .coorpmanager .descriptionLabel::after{
385
+ content:'';
386
+ border-left: 6px solid transparent;
387
+ border-right: 6px solid transparent;
388
+ border-top: 6px solid cm_grey_700;
389
+ position: absolute;
390
+ bottom: -6px;
391
+ left: 21px;
392
+ }
393
+ .coorpmanager .title.noValue .descriptionLabel::after{
394
+ left: 22px;
395
+ }
396
+ .coorpmanager:focus-within .title.noValue .descriptionLabel::after{
397
+ left: 21px;
398
+ }
@@ -0,0 +1,17 @@
1
+ export default {
2
+ props: {
3
+ type: 'text',
4
+ title: 'Input name',
5
+ hint: 'Hint <span style="color:red;">10<span>/40',
6
+ placeholder: 'This is an input',
7
+ theme: 'coorpmanager',
8
+ description: 'This is the tooltip text',
9
+ value: 'This is an input',
10
+ disabled: false,
11
+ valid: false,
12
+ error: '',
13
+ required: true,
14
+ onChange: value => console.log(value)
15
+ }
16
+ };
17
+ //# sourceMappingURL=cm-default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-text/test/fixtures/cm-default.js"],"names":["props","type","title","hint","placeholder","theme","description","value","disabled","valid","error","required","onChange","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,MADD;AAELC,IAAAA,KAAK,EAAE,YAFF;AAGLC,IAAAA,IAAI,EAAE,2CAHD;AAILC,IAAAA,WAAW,EAAE,kBAJR;AAKLC,IAAAA,KAAK,EAAE,cALF;AAMLC,IAAAA,WAAW,EAAE,0BANR;AAOLC,IAAAA,KAAK,EAAE,kBAPF;AAQLC,IAAAA,QAAQ,EAAE,KARL;AASLC,IAAAA,KAAK,EAAE,KATF;AAULC,IAAAA,KAAK,EAAE,EAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,QAAQ,EAAEL,KAAK,IAAIM,OAAO,CAACC,GAAR,CAAYP,KAAZ;AAZd;AADM,CAAf","sourcesContent":["export default {\n props: {\n type: 'text',\n title: 'Input name',\n hint: 'Hint <span style=\"color:red;\">10<span>/40',\n placeholder: 'This is an input',\n theme: 'coorpmanager',\n description: 'This is the tooltip text',\n value: 'This is an input',\n disabled: false,\n valid: false,\n error: '',\n required: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"cm-default.js"}
@@ -1,12 +1,15 @@
1
+ import _isEmpty from "lodash/fp/isEmpty";
1
2
  import _keys from "lodash/fp/keys";
2
3
  import _noop from "lodash/fp/noop";
3
4
  import React, { useMemo } from 'react';
4
5
  import PropTypes from 'prop-types';
5
6
  import classnames from 'classnames';
7
+ import { NovaSolidStatusCheckCircle2 as CheckIcon, NovaSolidStatusClose as ErrorIcon, NovaCompositionCoorpacademyInformationIcon as InfoIcon } from '@coorpacademy/nova-icons';
6
8
  import getClassState from '../../util/get-class-state';
7
9
  import style from './style.css';
8
10
  const themeStyle = {
9
11
  setup: style.setup,
12
+ coorpmanager: style.coorpmanager,
10
13
  cockpit: style.cockpit,
11
14
  default: style.default
12
15
  };
@@ -17,9 +20,11 @@ const InputTextarea = props => {
17
20
  name,
18
21
  placeholder,
19
22
  value,
23
+ hint,
20
24
  theme = 'default',
21
25
  onChange = _noop,
22
26
  error,
27
+ valid,
23
28
  required,
24
29
  description,
25
30
  disabled,
@@ -29,22 +34,40 @@ const InputTextarea = props => {
29
34
  const mainClass = themeStyle[theme];
30
35
  const className = getClassState(style.default, style.modified, style.error, modified, error);
31
36
  const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
37
+ const descriptionView = description && theme !== 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
38
+ className: style.description
39
+ }, description) : null;
40
+ const toolTipView = description && theme === 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
41
+ className: style.infoIconWrapper
42
+ }, /*#__PURE__*/React.createElement(InfoIcon, {
43
+ className: style.infoIcon
44
+ }), /*#__PURE__*/React.createElement("div", {
45
+ className: style.descriptionLabel
46
+ }, description)) : null;
47
+ const hintView = theme === 'coorpmanager' ? /*#__PURE__*/React.createElement("div", {
48
+ className: style.hint // eslint-disable-next-line react/no-danger
49
+ ,
50
+ dangerouslySetInnerHTML: {
51
+ __html: error || hint
52
+ }
53
+ }) : null;
54
+ const errorIconView = error ? /*#__PURE__*/React.createElement(ErrorIcon, {
55
+ className: style.leftIcon
56
+ }) : null;
57
+ const validIconView = valid ? /*#__PURE__*/React.createElement(CheckIcon, {
58
+ className: style.leftIcon
59
+ }) : null;
32
60
  return /*#__PURE__*/React.createElement("div", {
33
- className: classnames(mainClass, className)
61
+ className: classnames(mainClass, className, disabled && style.disabled)
34
62
  }, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("span", {
35
- className: style.title
36
- }, title), /*#__PURE__*/React.createElement("textarea", {
63
+ className: classnames(style.title, _isEmpty(value) && style.noValue)
64
+ }, title, toolTipView), /*#__PURE__*/React.createElement("textarea", {
37
65
  name: name,
38
66
  defaultValue: value,
39
67
  placeholder: placeholder,
40
68
  onInput: handleChange,
41
- disabled: disabled,
42
- style: {
43
- resize: 'none'
44
- }
45
- })), /*#__PURE__*/React.createElement("div", {
46
- className: style.description
47
- }, description));
69
+ disabled: disabled
70
+ }), errorIconView, validIconView, hintView), descriptionView);
48
71
  };
49
72
 
50
73
  InputTextarea.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -55,10 +78,12 @@ InputTextarea.propTypes = process.env.NODE_ENV !== "production" ? {
55
78
  theme: PropTypes.oneOf(_keys(themeStyle)),
56
79
  disabled: PropTypes.bool,
57
80
  value: PropTypes.string,
81
+ hint: PropTypes.string,
58
82
  error: PropTypes.string,
59
83
  onChange: PropTypes.func,
60
84
  description: PropTypes.string,
61
- modified: PropTypes.bool
85
+ modified: PropTypes.bool,
86
+ valid: PropTypes.bool
62
87
  } : {};
63
88
  export default InputTextarea;
64
89
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/input-textarea/index.js"],"names":["React","useMemo","PropTypes","classnames","getClassState","style","themeStyle","setup","cockpit","default","InputTextarea","props","title","propsTitle","name","placeholder","value","theme","onChange","error","required","description","disabled","modified","mainClass","className","handleChange","e","target","resize","propTypes","string","bool","oneOf","func"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,aAAP,MAA0B,4BAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,KAAK,EAAEF,KAAK,CAACE,KADI;AAEjBC,EAAAA,OAAO,EAAEH,KAAK,CAACG,OAFE;AAGjBC,EAAAA,OAAO,EAAEJ,KAAK,CAACI;AAHE,CAAnB;;AAKA,MAAMC,aAAa,GAAGC,KAAK,IAAI;AAC7B,QAAM;AACJC,IAAAA,KAAK,EAAEC,UADH;AAEJC,IAAAA,IAFI;AAGJC,IAAAA,WAHI;AAIJC,IAAAA,KAJI;AAKJC,IAAAA,KAAK,GAAG,SALJ;AAMJC,IAAAA,QAAQ,QANJ;AAOJC,IAAAA,KAPI;AAQJC,IAAAA,QARI;AASJC,IAAAA,WATI;AAUJC,IAA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AAEf,SAAS,CAAC+B,KAAV,CAAgB,MAAK3B,UAAL,CAAhB,CALiB;AAMxBgB,EAAAA,QAAQ,EAAEpB,SAAS,CAAC8B,IANI;AAOxBhB,EAAAA,KAAK,EAAEd,SAAS,CAAC6B,MAPO;AAQxBZ,EAAAA,KAAK,EAAEjB,SAAS,CAAC6B,MARO;AASxBb,EAAAA,QAAQ,EAAEhB,SAAS,CAACgC,IATI;AAUxBb,EAAAA,WAAW,EAAEnB,SAAS,CAAC6B,MAVC;AAWxBR,EAAAA,QAAQ,EAAErB,SAAS,CAAC8B;AAXI,CAA1B;AAaA,eAAetB,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, keys} from 'lodash/fp';\nimport classnames from 'classnames';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n cockpit: style.cockpit,\n default: style.default\n};\nconst InputTextarea = props => {\n const {\n title: propsTitle,\n name,\n placeholder,\n value,\n theme = 'default',\n onChange = noop,\n error,\n required,\n description,\n disabled,\n modified = false\n } = props;\n\n const title = `${propsTitle}${required ? '* ' : ' '}`;\n const mainClass = themeStyle[theme];\n const className = getClassState(style.default, style.modified, style.error, modified, error);\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n\n return (\n <div className={classnames(mainClass, className)}>\n <label>\n <span className={style.title}>{title}</span>\n <textarea\n name={name}\n defaultValue={value}\n placeholder={placeholder}\n onInput={handleChange}\n disabled={disabled}\n style={{\n resize: 'none'\n }}\n />\n </label>\n <div className={style.description}>{description}</div>\n </div>\n );\n};\n\nInputTextarea.propTypes = {\n placeholder: PropTypes.string,\n title: PropTypes.string,\n required: PropTypes.bool,\n name: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle)),\n disabled: PropTypes.bool,\n value: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool\n};\nexport default InputTextarea;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/input-textarea/index.js"],"names":["React","useMemo","PropTypes","classnames","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidStatusClose","ErrorIcon","NovaCompositionCoorpacademyInformationIcon","InfoIcon","getClassState","style","themeStyle","setup","coorpmanager","cockpit","default","InputTextarea","props","title","propsTitle","name","placeholder","value","hint","theme","onChange","error","valid","required","description","disabled","modified","mainClass","className","handleChange","e","target","descriptionView","toolTipView","infoIconWrapper","infoIcon","descriptionLabel","hintView","__html","errorIconView","leftIcon","validIconView","noValue","propTypes","string","bool","oneOf","func"],"mappings":";;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC,2BAA2B,IAAIC,SADjC,EAEEC,oBAAoB,IAAIC,SAF1B,EAGEC,0CAA0C,IAAIC,QAHhD,QAIO,0BAJP;AAKA,OAAOC,aAAP,MAA0B,4BAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,KAAK,EAAEF,KAAK,CAACE,KADI;AAEjBC,EAAAA,YAAY,EAAEH,KAAK,CAACG,YAFH;AAGjBC,EAAAA,OAAO,EAAEJ,KAAK,CAACI,OAHE;AAIjBC,EAAAA,OAAO,EAAEL,KAAK,CAACK;AAJE,CAAnB;;AAMA,MAAMC,aAAa,GAAGC,KAAK,IAAI;AAC7B,QAAM;AACJC,IAAAA,KAAK,EAAEC,UADH;AAEJC,IAAAA,IAFI;AAGJC,IAAAA,WAHI;AAIJC,IAAAA,KAJI;AAKJC,IAAAA,IALI;AAMJC,IAAAA,KAAK,GAAG,SANJ;AAOJC,IAAAA,QAAQ,QAPJ;AAQJC,IAAAA,KARI;AASJC,IAAAA,KATI;AAUJC,IAAAA,QAVI;AAWJC,IAAAA,WAXI;AAYJC,IAAAA,QAZI;AAaJC,IAAAA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E5B,SAAS,CAACgD,MAXC;AAYxBlB,EAAAA,QAAQ,EAAE9B,SAAS,CAACiD,IAZI;AAaxBvB,EAAAA,KAAK,EAAE1B,SAAS,CAACiD;AAbO,CAA1B;AAeA,eAAelC,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, keys, isEmpty} from 'lodash/fp';\nimport classnames from 'classnames';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n setup: style.setup,\n coorpmanager: style.coorpmanager,\n cockpit: style.cockpit,\n default: style.default\n};\nconst InputTextarea = props => {\n const {\n title: propsTitle,\n name,\n placeholder,\n value,\n hint,\n theme = 'default',\n onChange = noop,\n error,\n valid,\n required,\n description,\n disabled,\n modified = false\n } = props;\n\n const title = `${propsTitle}${required ? '* ' : ' '}`;\n const mainClass = themeStyle[theme];\n const className = getClassState(style.default, style.modified, style.error, modified, error);\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n\n const descriptionView =\n description && theme !== 'coorpmanager' ? (\n <div className={style.description}>{description}</div>\n ) : null;\n const toolTipView =\n description && theme === 'coorpmanager' ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null;\n const hintView =\n theme === 'coorpmanager' ? (\n <div\n className={style.hint}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: error || hint}}\n />\n ) : null;\n const errorIconView = error ? <ErrorIcon className={style.leftIcon} /> : null;\n const validIconView = valid ? <CheckIcon className={style.leftIcon} /> : null;\n\n return (\n <div className={classnames(mainClass, className, disabled && style.disabled)}>\n <label>\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {title}\n {toolTipView}\n </span>\n <textarea\n name={name}\n defaultValue={value}\n placeholder={placeholder}\n onInput={handleChange}\n disabled={disabled}\n />\n {errorIconView}\n {validIconView}\n {hintView}\n </label>\n {descriptionView}\n </div>\n );\n};\n\nInputTextarea.propTypes = {\n placeholder: PropTypes.string,\n title: PropTypes.string,\n required: PropTypes.bool,\n name: PropTypes.string,\n theme: PropTypes.oneOf(keys(themeStyle)),\n disabled: PropTypes.bool,\n value: PropTypes.string,\n hint: PropTypes.string,\n error: PropTypes.string,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool,\n valid: PropTypes.bool\n};\nexport default InputTextarea;\n"],"file":"index.js"}
@@ -3,6 +3,15 @@
3
3
  @value medium from colors;
4
4
  @value light from colors;
5
5
  @value negative from colors;
6
+ @value xtraLightGrey from colors;
7
+ @value cm_positive_100 from colors;
8
+ @value cm_negative_100 from colors;
9
+ @value cm_grey_100 from colors;
10
+ @value cm_grey_150 from colors;
11
+ @value cm_grey_200 from colors;
12
+ @value cm_grey_400 from colors;
13
+ @value cm_grey_500 from colors;
14
+ @value cm_grey_700 from colors;
6
15
 
7
16
  .default {
8
17
  display: flex;
@@ -169,3 +178,259 @@
169
178
  align-self: flex-start;
170
179
  padding-left: 13px;
171
180
  }
181
+
182
+ /******************************* coorpmanager theme ***************************************/
183
+
184
+
185
+ .coorpmanager {
186
+ width: 300px;
187
+ position: relative;
188
+ display: flex;
189
+ flex-direction: column;
190
+ align-items: flex-start;
191
+ flex-wrap: nowrap;
192
+ }
193
+
194
+ .coorpmanager label {
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: flex-start;
198
+ height: auto;
199
+ position: relative;
200
+ }
201
+
202
+ .coorpmanager .title {
203
+ flex-grow: 0;
204
+ font-family: Gilroy;
205
+ font-size: 10px;
206
+ font-weight: bold;
207
+ font-stretch: normal;
208
+ font-style: normal;
209
+ line-height: 1.2;
210
+ letter-spacing: normal;
211
+ text-align: left;
212
+ z-index: 1;
213
+ color: cm_grey_400;
214
+ width: auto;
215
+ transition: all 0.25s linear;
216
+ pointer-events: none;
217
+ display: flex;
218
+ flex-direction: row;
219
+ flex-wrap: nowrap;
220
+ top: 15px;
221
+ left: 16px;
222
+ position: absolute;
223
+ margin: 0;
224
+ }
225
+
226
+ .coorpmanager .title.noValue .infoIcon {
227
+ height: 10px;
228
+ width: 10px;
229
+ line-height: 12px;
230
+ color: cm_grey_500;
231
+ }
232
+
233
+ .coorpmanager textarea {
234
+ width: 285px;
235
+ min-height: 145px;
236
+ resize: vertical;
237
+ margin: 0px;
238
+ flex-grow: 0;
239
+ display: flex;
240
+ box-sizing: border-box;
241
+ flex-direction: column;
242
+ justify-content: center;
243
+ align-items: flex-start;
244
+ padding: 35px 0px 0px 17px;
245
+ border-radius: 7px;
246
+ background-color: transparent;
247
+ font-family: Gilroy;
248
+ font-size: 14px;
249
+ font-weight: 500;
250
+ font-stretch: normal;
251
+ font-style: normal;
252
+ line-height: 21px;
253
+ letter-spacing: normal;
254
+ text-align: left;
255
+ color: cm_grey_700;
256
+ border: none;
257
+ transition: all 0.25s linear;
258
+ outline: none;
259
+ display: flex;
260
+ margin: 0px 16px 13px 0px;
261
+ box-sizing: border-box;
262
+ position: relative;
263
+ }
264
+
265
+ .coorpmanager label::before {
266
+ content: '';
267
+ top: 0px;
268
+ bottom: 20px;
269
+ left: 0px;
270
+ right: 0px;
271
+ position: absolute;
272
+ background-color: cm_grey_100;
273
+ border-radius: 7px;
274
+ transition: all 0.25s linear;
275
+ }
276
+
277
+ .coorpmanager .title.noValue{
278
+ font-size: 14px;
279
+ font-weight: 500;
280
+ color: cm_grey_700;
281
+ }
282
+
283
+ .coorpmanager:focus-within .title.noValue {
284
+ font-size: 10px;
285
+ font-weight: bold;
286
+ color: cm_grey_400;
287
+ top: 15px;
288
+ }
289
+
290
+ .coorpmanager:focus-within textarea::placeholder {
291
+ color: cm_grey_400;
292
+ }
293
+
294
+ .coorpmanager:focus-within .title.noValue .infoIcon {
295
+ width: 8px;
296
+ height: 8px;
297
+ line-height: 12px;
298
+ color: cm_grey_400;
299
+ }
300
+
301
+
302
+
303
+ .coorpmanager label:hover:before {
304
+ background-color: cm_grey_150;
305
+ }
306
+
307
+ .coorpmanager textarea::placeholder {
308
+ color: transparent;
309
+ transition: all 0.25s linear;
310
+ }
311
+
312
+ .coorpmanager .hint {
313
+ flex-grow: 0;
314
+ opacity: 0.5;
315
+ font-family: Gilroy;
316
+ font-size: 10px;
317
+ font-weight: 500;
318
+ font-stretch: normal;
319
+ font-style: normal;
320
+ line-height: 1.2;
321
+ letter-spacing: normal;
322
+ text-align: left;
323
+ padding-top: 8px;
324
+ color: cm_grey_700;
325
+ height: 12px;
326
+ }
327
+
328
+ .coorpmanager.error .hint {
329
+ color: cm_negative_100;
330
+ }
331
+
332
+ .coorpmanager.error .leftIcon {
333
+ background-color: cm_negative_100;
334
+ color: white;
335
+ border-radius: 50%;
336
+ padding: 2px;
337
+ width: 11px;
338
+ height: 11px;
339
+ right: 17px;
340
+ top: 13px;
341
+ }
342
+
343
+ .coorpmanager .leftIcon {
344
+ color: cm_positive_100;
345
+ width: 17px;
346
+ height: 17px;
347
+ position: absolute;
348
+ right: 15px;
349
+ top: 12px;
350
+ }
351
+
352
+ .coorpmanager.disabled {
353
+ opacity: 0.5;
354
+ }
355
+
356
+ .coorpmanager .infoIconWrapper {
357
+ overflow: visible;
358
+ height: 12px;
359
+ margin: 0px 4px;
360
+ cursor: pointer;
361
+ pointer-events: fill;
362
+ position: relative;
363
+ }
364
+
365
+ .coorpmanager .infoIcon {
366
+ cursor: pointer;
367
+ width: 8px;
368
+ height: 8px;
369
+ line-height: 16px;
370
+ color: cm_grey_400;
371
+ transition: all 0.25s linear;
372
+ }
373
+
374
+ .coorpmanager .infoIconWrapper:hover .descriptionLabel {
375
+ visibility: visible;
376
+ opacity: 1;
377
+ }
378
+
379
+ .coorpmanager .descriptionLabel {
380
+ margin: 0 1px 18px 0;
381
+ padding: 8px 16px;
382
+ border-radius: 7px;
383
+ background-color: cm_grey_700;
384
+ flex-grow: 0;
385
+ font-family: Gilroy;
386
+ font-size: 14px;
387
+ font-weight: 500;
388
+ font-stretch: normal;
389
+ font-style: normal;
390
+ line-height: 1.43;
391
+ letter-spacing: normal;
392
+ text-align: center;
393
+ color: white;
394
+ padding: 8px 16px;
395
+ max-width: 200px;
396
+ position: absolute;
397
+ left: -24px;
398
+ z-index: 3;
399
+ bottom: 5px;
400
+ width: max-content;
401
+ visibility: hidden;
402
+ opacity: 0s
403
+ }
404
+
405
+ .coorpmanager .descriptionLabel::after{
406
+ content:'';
407
+ border-left: 6px solid transparent;
408
+ border-right: 6px solid transparent;
409
+ border-top: 6px solid cm_grey_700;
410
+ position: absolute;
411
+ bottom: -6px;
412
+ left: 21px;
413
+ }
414
+ .coorpmanager .title.noValue .descriptionLabel::after{
415
+ left: 22px;
416
+ }
417
+ .coorpmanager:focus-within .title.noValue .descriptionLabel::after{
418
+ left: 21px;
419
+ }
420
+ .coorpmanager textarea::-webkit-resizer {
421
+ background: repeating-linear-gradient(
422
+ 135deg,
423
+ transparent,
424
+ transparent 14px,
425
+ cm_grey_400 14px,
426
+ cm_grey_400 15.5px,
427
+ transparent 15.5px,
428
+ transparent 17px,
429
+ cm_grey_400 17px,
430
+ cm_grey_400 18.5px,
431
+ transparent 18.5px,
432
+ transparent 20px,
433
+ cm_grey_400 20px,
434
+ cm_grey_400 21.5px
435
+ );
436
+ }
@@ -0,0 +1,17 @@
1
+ export default {
2
+ props: {
3
+ type: 'textarea',
4
+ title: 'Input name',
5
+ hint: 'Hint <span style="color:red;">10<span>/40',
6
+ placeholder: 'This is an input',
7
+ theme: 'coorpmanager',
8
+ description: 'This is the tooltip text',
9
+ value: 'This is an input',
10
+ disabled: false,
11
+ valid: false,
12
+ error: '',
13
+ required: true,
14
+ onChange: value => console.log(value)
15
+ }
16
+ };
17
+ //# sourceMappingURL=cm-default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/input-textarea/test/fixtures/cm-default.js"],"names":["props","type","title","hint","placeholder","theme","description","value","disabled","valid","error","required","onChange","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,UADD;AAELC,IAAAA,KAAK,EAAE,YAFF;AAGLC,IAAAA,IAAI,EAAE,2CAHD;AAILC,IAAAA,WAAW,EAAE,kBAJR;AAKLC,IAAAA,KAAK,EAAE,cALF;AAMLC,IAAAA,WAAW,EAAE,0BANR;AAOLC,IAAAA,KAAK,EAAE,kBAPF;AAQLC,IAAAA,QAAQ,EAAE,KARL;AASLC,IAAAA,KAAK,EAAE,KATF;AAULC,IAAAA,KAAK,EAAE,EAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,QAAQ,EAAEL,KAAK,IAAIM,OAAO,CAACC,GAAR,CAAYP,KAAZ;AAZd;AADM,CAAf","sourcesContent":["export default {\n props: {\n type: 'textarea',\n title: 'Input name',\n hint: 'Hint <span style=\"color:red;\">10<span>/40',\n placeholder: 'This is an input',\n theme: 'coorpmanager',\n description: 'This is the tooltip text',\n value: 'This is an input',\n disabled: false,\n valid: false,\n error: '',\n required: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"cm-default.js"}