@coorpacademy/components 10.4.3-alpha.0 → 10.4.6-alpha.1

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 (295) hide show
  1. package/es/atom/autocomplete/style.css +4 -4
  2. package/es/atom/button/style.css +1 -1
  3. package/es/atom/card-image-preview/index.js +35 -0
  4. package/es/atom/card-image-preview/index.js.map +1 -0
  5. package/es/atom/card-image-preview/style.css +34 -0
  6. package/es/atom/card-image-preview/test/fixtures/default.js +6 -0
  7. package/es/atom/card-image-preview/test/fixtures/default.js.map +1 -0
  8. package/es/atom/card-image-preview/test/fixtures/empty.js +4 -0
  9. package/es/atom/card-image-preview/test/fixtures/empty.js.map +1 -0
  10. package/es/atom/catalog-section/style.css +1 -1
  11. package/es/atom/clue/style.css +2 -2
  12. package/es/atom/cta/style.css +1 -1
  13. package/es/atom/difficulty-level/style.css +1 -1
  14. package/es/atom/drag-and-drop/style.css +6 -5
  15. package/es/atom/input-checkbox/style.css +1 -1
  16. package/es/atom/input-doublestep/style.css +5 -5
  17. package/es/atom/input-html/input-preview.css +2 -2
  18. package/es/atom/input-html/style.css +2 -2
  19. package/es/atom/input-readonly/style.css +3 -3
  20. package/es/atom/input-search/style.css +1 -1
  21. package/es/atom/input-switch/style.css +6 -5
  22. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js +6 -5
  23. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -1
  24. package/es/atom/input-text/style.css +5 -5
  25. package/es/atom/input-textarea/style.css +5 -5
  26. package/es/atom/life/style.css +1 -1
  27. package/es/atom/notification/style.css +1 -1
  28. package/es/atom/radio-group/item.css +1 -1
  29. package/es/atom/resource-miniature/style.css +1 -1
  30. package/es/atom/select/style.css +7 -7
  31. package/es/atom/slide/style.css +1 -1
  32. package/es/molecule/add-to-my-list/style.css +3 -3
  33. package/es/molecule/audio/style.css +1 -1
  34. package/es/molecule/battle-request/style.css +4 -4
  35. package/es/molecule/brand-card/description.css +1 -1
  36. package/es/molecule/brand-card/style.css +2 -2
  37. package/es/molecule/brand-card-create/style.css +1 -1
  38. package/es/molecule/brand-create-form/style.css +6 -6
  39. package/es/molecule/brand-download-box/style.css +2 -2
  40. package/es/molecule/brand-tabs/style.css +1 -1
  41. package/es/molecule/brand-upload-box/style.css +2 -2
  42. package/es/molecule/breadcrumbs/style.css +3 -3
  43. package/es/molecule/card/customer.css +1 -1
  44. package/es/molecule/card/favorite.css +1 -1
  45. package/es/molecule/card/notification.css +1 -1
  46. package/es/molecule/card/style.css +1 -1
  47. package/es/molecule/card-content/style.css +4 -4
  48. package/es/molecule/card-with-button/style.css +2 -2
  49. package/es/molecule/cookie-banner/style.css +2 -2
  50. package/es/molecule/dashboard/cards-list/style.css +2 -2
  51. package/es/molecule/dashboard/news-list/style.css +2 -2
  52. package/es/molecule/dashboard/start-battle/style.css +4 -4
  53. package/es/molecule/discipline-cta/style.css +2 -2
  54. package/es/molecule/discipline-header/style.css +4 -4
  55. package/es/molecule/discipline-partners/style.css +2 -2
  56. package/es/molecule/drag-and-drop/common.css +1 -1
  57. package/es/molecule/drag-and-drop/overlay.css +1 -1
  58. package/es/molecule/drag-and-drop/style.css +1 -1
  59. package/es/molecule/drag-and-drop/upload-report.css +4 -4
  60. package/es/molecule/external-content-button/style.css +2 -2
  61. package/es/molecule/feedback/style.css +3 -3
  62. package/es/molecule/filters/filters-wapper.css +2 -2
  63. package/es/molecule/filters/style.css +2 -2
  64. package/es/molecule/forum/forum-comment/style.css +1 -1
  65. package/es/molecule/forum/forum-post/style.css +5 -5
  66. package/es/molecule/menu-list/style.css +1 -1
  67. package/es/molecule/message-popin/style.css +2 -2
  68. package/es/molecule/modal/style.css +2 -2
  69. package/es/molecule/module-card/style.css +2 -2
  70. package/es/molecule/news/style.css +3 -3
  71. package/es/molecule/notification-banner/style.css +3 -3
  72. package/es/molecule/pagination/style.css +1 -1
  73. package/es/molecule/payment-form/index.js +2 -2
  74. package/es/molecule/payment-form/index.js.map +1 -1
  75. package/es/molecule/pdf/style.css +2 -2
  76. package/es/molecule/popin/style.css +2 -2
  77. package/es/molecule/progress-bar/style.css +1 -1
  78. package/es/molecule/questions/free-text/style.css +1 -1
  79. package/es/molecule/questions/qcm/style.css +1 -1
  80. package/es/molecule/questions/qcm-drag/style.css +2 -2
  81. package/es/molecule/questions/qcm-graphic/style.css +1 -1
  82. package/es/molecule/questions/question-range/style.css +2 -2
  83. package/es/molecule/questions/template/style.css +1 -1
  84. package/es/molecule/resource-player/style.css +1 -1
  85. package/es/molecule/scope-content/style.css +6 -6
  86. package/es/molecule/scope-tabs/style.css +1 -1
  87. package/es/molecule/select-multiple/style.css +3 -3
  88. package/es/molecule/setup-cohort-item/style.css +1 -1
  89. package/es/molecule/setup-section/style.css +2 -2
  90. package/es/molecule/setup-sections/style.css +1 -1
  91. package/es/molecule/share/style.css +3 -3
  92. package/es/molecule/ssmenu-list/style.css +1 -1
  93. package/es/molecule/table/style.css +5 -5
  94. package/es/molecule/teams-popin/style.css +2 -2
  95. package/es/molecule/titled-checkbox/style.css +1 -1
  96. package/es/molecule/video-player/jwplayer.css +1 -1
  97. package/es/organism/accordion/part/style.css +1 -1
  98. package/es/organism/brand-analytics/analytics-popin.css +1 -0
  99. package/es/organism/brand-analytics/style.css +1 -1
  100. package/es/organism/brand-table/style.css +2 -2
  101. package/es/organism/brand-upload/style.css +2 -2
  102. package/es/organism/content-translation/style.css +2 -2
  103. package/es/organism/course-selection/index.js +9 -2
  104. package/es/organism/course-selection/index.js.map +1 -1
  105. package/es/organism/course-selection/style.css +2 -1
  106. package/es/organism/course-selection/test/fixtures/default.js +2 -2
  107. package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
  108. package/es/organism/course-selection/test/fixtures/filtered.js +1 -1
  109. package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  110. package/es/organism/course-selection/test/fixtures/sorted-selected.js +1 -1
  111. package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  112. package/es/organism/course-selection/test/fixtures/switch-activated.js +1 -1
  113. package/es/organism/course-selection/test/fixtures/switch-activated.js.map +1 -1
  114. package/es/organism/course-selection/test/fixtures/unsorted-selected.js +1 -1
  115. package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  116. package/es/organism/discussion/style.css +1 -1
  117. package/es/organism/get-the-app/style.css +1 -1
  118. package/es/organism/hero/style.css +1 -1
  119. package/es/organism/mooc-footer/style.css +3 -3
  120. package/es/organism/mooc-header/style.css +8 -8
  121. package/es/organism/popin/style.css +1 -0
  122. package/es/organism/sidebar/style.css +2 -2
  123. package/es/organism/user-preferences/style.css +1 -1
  124. package/es/organism/wizard-contents/style.css +1 -1
  125. package/es/template/activity/engine-stars.css +3 -3
  126. package/es/template/activity/progression-item.css +5 -4
  127. package/es/template/activity/stars-summary.css +2 -2
  128. package/es/template/activity/style.css +3 -3
  129. package/es/template/app-player/player/slides/footer/style.css +1 -1
  130. package/es/template/app-player/player/slides/header/learner.css +4 -4
  131. package/es/template/app-player/player/slides/header/microlearning.css +1 -1
  132. package/es/template/app-player/player/slides/style.css +9 -8
  133. package/es/template/app-player/popin-correction/style.css +3 -3
  134. package/es/template/app-player/popin-end/summary.css +4 -4
  135. package/es/template/app-player/popin-end/summary.js +3 -2
  136. package/es/template/app-player/popin-end/summary.js.map +1 -1
  137. package/es/template/app-player/popin-end/test/fixtures/without-recommendation.js +13 -0
  138. package/es/template/app-player/popin-end/test/fixtures/without-recommendation.js.map +1 -0
  139. package/es/template/app-player/popin-header/style.css +5 -5
  140. package/es/template/back-office/dashboard-preview/dashboard-popin.css +1 -0
  141. package/es/template/back-office/dashboard-preview/style.css +1 -1
  142. package/es/template/cockpit/jw-uploader/style.css +1 -0
  143. package/es/template/common/authors/style.css +5 -4
  144. package/es/template/common/layout.css +1 -1
  145. package/es/template/common/search-page/style.css +2 -1
  146. package/es/template/external-course/style.css +1 -1
  147. package/es/variables/fonts.css +1 -1
  148. package/lib/atom/autocomplete/style.css +4 -4
  149. package/lib/atom/button/style.css +1 -1
  150. package/lib/atom/card-image-preview/index.js +47 -0
  151. package/lib/atom/card-image-preview/index.js.map +1 -0
  152. package/lib/atom/card-image-preview/style.css +34 -0
  153. package/lib/atom/card-image-preview/test/fixtures/default.js +11 -0
  154. package/lib/atom/card-image-preview/test/fixtures/default.js.map +1 -0
  155. package/lib/atom/card-image-preview/test/fixtures/empty.js +9 -0
  156. package/lib/atom/card-image-preview/test/fixtures/empty.js.map +1 -0
  157. package/lib/atom/catalog-section/style.css +1 -1
  158. package/lib/atom/clue/style.css +2 -2
  159. package/lib/atom/cta/style.css +1 -1
  160. package/lib/atom/difficulty-level/style.css +1 -1
  161. package/lib/atom/drag-and-drop/style.css +6 -5
  162. package/lib/atom/input-checkbox/style.css +1 -1
  163. package/lib/atom/input-doublestep/style.css +5 -5
  164. package/lib/atom/input-html/input-preview.css +2 -2
  165. package/lib/atom/input-html/style.css +2 -2
  166. package/lib/atom/input-readonly/style.css +3 -3
  167. package/lib/atom/input-search/style.css +1 -1
  168. package/lib/atom/input-switch/style.css +6 -5
  169. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js +6 -9
  170. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -1
  171. package/lib/atom/input-text/style.css +5 -5
  172. package/lib/atom/input-textarea/style.css +5 -5
  173. package/lib/atom/life/style.css +1 -1
  174. package/lib/atom/notification/style.css +1 -1
  175. package/lib/atom/radio-group/item.css +1 -1
  176. package/lib/atom/resource-miniature/style.css +1 -1
  177. package/lib/atom/select/style.css +7 -7
  178. package/lib/atom/slide/style.css +1 -1
  179. package/lib/molecule/add-to-my-list/style.css +3 -3
  180. package/lib/molecule/audio/style.css +1 -1
  181. package/lib/molecule/battle-request/style.css +4 -4
  182. package/lib/molecule/brand-card/description.css +1 -1
  183. package/lib/molecule/brand-card/style.css +2 -2
  184. package/lib/molecule/brand-card-create/style.css +1 -1
  185. package/lib/molecule/brand-create-form/style.css +6 -6
  186. package/lib/molecule/brand-download-box/style.css +2 -2
  187. package/lib/molecule/brand-tabs/style.css +1 -1
  188. package/lib/molecule/brand-upload-box/style.css +2 -2
  189. package/lib/molecule/breadcrumbs/style.css +3 -3
  190. package/lib/molecule/card/customer.css +1 -1
  191. package/lib/molecule/card/favorite.css +1 -1
  192. package/lib/molecule/card/notification.css +1 -1
  193. package/lib/molecule/card/style.css +1 -1
  194. package/lib/molecule/card-content/style.css +4 -4
  195. package/lib/molecule/card-with-button/style.css +2 -2
  196. package/lib/molecule/cookie-banner/style.css +2 -2
  197. package/lib/molecule/dashboard/cards-list/style.css +2 -2
  198. package/lib/molecule/dashboard/news-list/style.css +2 -2
  199. package/lib/molecule/dashboard/start-battle/style.css +4 -4
  200. package/lib/molecule/discipline-cta/style.css +2 -2
  201. package/lib/molecule/discipline-header/style.css +4 -4
  202. package/lib/molecule/discipline-partners/style.css +2 -2
  203. package/lib/molecule/drag-and-drop/common.css +1 -1
  204. package/lib/molecule/drag-and-drop/overlay.css +1 -1
  205. package/lib/molecule/drag-and-drop/style.css +1 -1
  206. package/lib/molecule/drag-and-drop/upload-report.css +4 -4
  207. package/lib/molecule/external-content-button/style.css +2 -2
  208. package/lib/molecule/feedback/style.css +3 -3
  209. package/lib/molecule/filters/filters-wapper.css +2 -2
  210. package/lib/molecule/filters/style.css +2 -2
  211. package/lib/molecule/forum/forum-comment/style.css +1 -1
  212. package/lib/molecule/forum/forum-post/style.css +5 -5
  213. package/lib/molecule/menu-list/style.css +1 -1
  214. package/lib/molecule/message-popin/style.css +2 -2
  215. package/lib/molecule/modal/style.css +2 -2
  216. package/lib/molecule/module-card/style.css +2 -2
  217. package/lib/molecule/news/style.css +3 -3
  218. package/lib/molecule/notification-banner/style.css +3 -3
  219. package/lib/molecule/pagination/style.css +1 -1
  220. package/lib/molecule/payment-form/index.js +2 -2
  221. package/lib/molecule/payment-form/index.js.map +1 -1
  222. package/lib/molecule/pdf/style.css +2 -2
  223. package/lib/molecule/popin/style.css +2 -2
  224. package/lib/molecule/progress-bar/style.css +1 -1
  225. package/lib/molecule/questions/free-text/style.css +1 -1
  226. package/lib/molecule/questions/qcm/style.css +1 -1
  227. package/lib/molecule/questions/qcm-drag/style.css +2 -2
  228. package/lib/molecule/questions/qcm-graphic/style.css +1 -1
  229. package/lib/molecule/questions/question-range/style.css +2 -2
  230. package/lib/molecule/questions/template/style.css +1 -1
  231. package/lib/molecule/resource-player/style.css +1 -1
  232. package/lib/molecule/scope-content/style.css +6 -6
  233. package/lib/molecule/scope-tabs/style.css +1 -1
  234. package/lib/molecule/select-multiple/style.css +3 -3
  235. package/lib/molecule/setup-cohort-item/style.css +1 -1
  236. package/lib/molecule/setup-section/style.css +2 -2
  237. package/lib/molecule/setup-sections/style.css +1 -1
  238. package/lib/molecule/share/style.css +3 -3
  239. package/lib/molecule/ssmenu-list/style.css +1 -1
  240. package/lib/molecule/table/style.css +5 -5
  241. package/lib/molecule/teams-popin/style.css +2 -2
  242. package/lib/molecule/titled-checkbox/style.css +1 -1
  243. package/lib/molecule/video-player/jwplayer.css +1 -1
  244. package/lib/organism/accordion/part/style.css +1 -1
  245. package/lib/organism/brand-analytics/analytics-popin.css +1 -0
  246. package/lib/organism/brand-analytics/style.css +1 -1
  247. package/lib/organism/brand-table/style.css +2 -2
  248. package/lib/organism/brand-upload/style.css +2 -2
  249. package/lib/organism/content-translation/style.css +2 -2
  250. package/lib/organism/course-selection/index.js +9 -2
  251. package/lib/organism/course-selection/index.js.map +1 -1
  252. package/lib/organism/course-selection/style.css +2 -1
  253. package/lib/organism/course-selection/test/fixtures/default.js +2 -2
  254. package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
  255. package/lib/organism/course-selection/test/fixtures/filtered.js +1 -1
  256. package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  257. package/lib/organism/course-selection/test/fixtures/sorted-selected.js +1 -1
  258. package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  259. package/lib/organism/course-selection/test/fixtures/switch-activated.js +1 -1
  260. package/lib/organism/course-selection/test/fixtures/switch-activated.js.map +1 -1
  261. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +1 -1
  262. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  263. package/lib/organism/discussion/style.css +1 -1
  264. package/lib/organism/get-the-app/style.css +1 -1
  265. package/lib/organism/hero/style.css +1 -1
  266. package/lib/organism/mooc-footer/style.css +3 -3
  267. package/lib/organism/mooc-header/style.css +8 -8
  268. package/lib/organism/popin/style.css +1 -0
  269. package/lib/organism/sidebar/style.css +2 -2
  270. package/lib/organism/user-preferences/style.css +1 -1
  271. package/lib/organism/wizard-contents/style.css +1 -1
  272. package/lib/template/activity/engine-stars.css +3 -3
  273. package/lib/template/activity/progression-item.css +5 -4
  274. package/lib/template/activity/stars-summary.css +2 -2
  275. package/lib/template/activity/style.css +3 -3
  276. package/lib/template/app-player/player/slides/footer/style.css +1 -1
  277. package/lib/template/app-player/player/slides/header/learner.css +4 -4
  278. package/lib/template/app-player/player/slides/header/microlearning.css +1 -1
  279. package/lib/template/app-player/player/slides/style.css +9 -8
  280. package/lib/template/app-player/popin-correction/style.css +3 -3
  281. package/lib/template/app-player/popin-end/summary.css +4 -4
  282. package/lib/template/app-player/popin-end/summary.js +4 -2
  283. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  284. package/lib/template/app-player/popin-end/test/fixtures/without-recommendation.js +24 -0
  285. package/lib/template/app-player/popin-end/test/fixtures/without-recommendation.js.map +1 -0
  286. package/lib/template/app-player/popin-header/style.css +5 -5
  287. package/lib/template/back-office/dashboard-preview/dashboard-popin.css +1 -0
  288. package/lib/template/back-office/dashboard-preview/style.css +1 -1
  289. package/lib/template/cockpit/jw-uploader/style.css +1 -0
  290. package/lib/template/common/authors/style.css +5 -4
  291. package/lib/template/common/layout.css +1 -1
  292. package/lib/template/common/search-page/style.css +2 -1
  293. package/lib/template/external-course/style.css +1 -1
  294. package/lib/variables/fonts.css +1 -1
  295. package/package.json +2 -2
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .title {
34
- font-family: "Open Sans";
34
+ font-family: "Gilroy";
35
35
  font-size: 15px;
36
36
  text-transform: none;
37
37
  color: dark;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .description {
59
- font-family: 'Open Sans';
59
+ font-family: 'Gilroy';
60
60
  font-weight: 500;
61
61
  font-size: 12px;
62
62
  color: medium;
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  .input {
75
- font-family: "Open Sans";
75
+ font-family: "Gilroy";
76
76
  text-transform: none;
77
77
  padding: 0 15px;
78
78
  border: solid 2px light;
@@ -102,7 +102,7 @@
102
102
  position: absolute;
103
103
  top: 50px;
104
104
  border: solid 2px light;
105
- font-family: "Open Sans";
105
+ font-family: "Gilroy";
106
106
  font-size: 14px;
107
107
  color: dark;
108
108
  border-bottom-left-radius: 4px;
@@ -20,7 +20,7 @@
20
20
  text-transform: inherit;
21
21
  background-color: orange;
22
22
  color: white;
23
- font-family: Open Sans, sans-serif;
23
+ font-family: Gilroy;
24
24
  font-weight: 600;
25
25
  font-size: 13px;
26
26
  text-decoration: none;
@@ -0,0 +1,35 @@
1
+ import _get from "lodash/fp/get";
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { NovaCompositionCoorpacademyPictures as PicturesIcon } from '@coorpacademy/nova-icons';
5
+ import Provider from '../provider';
6
+ import style from './style.css';
7
+
8
+ const CardImagePreview = ({
9
+ image
10
+ }, {
11
+ skin
12
+ }) => {
13
+ const whiteColor = _get('common.white', skin);
14
+
15
+ const emptyIcon = !image ? /*#__PURE__*/React.createElement(PicturesIcon, {
16
+ className: style.emptyIcon,
17
+ color: whiteColor
18
+ }) : null;
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ className: style.image,
21
+ style: {
22
+ backgroundImage: image ? `url('${image}')` : 'none'
23
+ },
24
+ "data-name": "card-image-preview"
25
+ }, emptyIcon);
26
+ };
27
+
28
+ CardImagePreview.contextTypes = {
29
+ skin: Provider.childContextTypes.skin
30
+ };
31
+ CardImagePreview.propTypes = process.env.NODE_ENV !== "production" ? {
32
+ image: PropTypes.string
33
+ } : {};
34
+ export default CardImagePreview;
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/card-image-preview/index.js"],"names":["React","PropTypes","NovaCompositionCoorpacademyPictures","PicturesIcon","Provider","style","CardImagePreview","image","skin","whiteColor","emptyIcon","backgroundImage","contextTypes","childContextTypes","propTypes","string"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,mCAAmC,IAAIC,YAA/C,QAAkE,0BAAlE;AACA,OAAOC,QAAP,MAAqB,aAArB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,gBAAgB,GAAG,CAAC;AAACC,EAAAA;AAAD,CAAD,EAAU;AAACC,EAAAA;AAAD,CAAV,KAAqB;AAC5C,QAAMC,UAAU,GAAG,KAAI,cAAJ,EAAoBD,IAApB,CAAnB;;AACA,QAAME,SAAS,GAAG,CAACH,KAAD,gBAAS,oBAAC,YAAD;AAAc,IAAA,SAAS,EAAEF,KAAK,CAACK,SAA/B;AAA0C,IAAA,KAAK,EAAED;AAAjD,IAAT,GAA2E,IAA7F;AAEA,sBACE;AACE,IAAA,SAAS,EAAEJ,KAAK,CAACE,KADnB;AAEE,IAAA,KAAK,EAAE;AACLI,MAAAA,eAAe,EAAEJ,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;AADxC,KAFT;AAKE,iBAAU;AALZ,KAOGG,SAPH,CADF;AAWD,CAfD;;AAiBAJ,gBAAgB,CAACM,YAAjB,GAAgC;AAC9BJ,EAAAA,IAAI,EAAEJ,QAAQ,CAACS,iBAAT,CAA2BL;AADH,CAAhC;AAIAF,gBAAgB,CAACQ,SAAjB,2CAA6B;AAC3BP,EAAAA,KAAK,EAAEN,SAAS,CAACc;AADU,CAA7B;AAGA,eAAeT,gBAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionCoorpacademyPictures as PicturesIcon} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\n\nimport style from './style.css';\n\nconst CardImagePreview = ({image}, {skin}) => {\n const whiteColor = get('common.white', skin);\n const emptyIcon = !image ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n\n return (\n <div\n className={style.image}\n style={{\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n data-name=\"card-image-preview\"\n >\n {emptyIcon}\n </div>\n );\n};\n\nCardImagePreview.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardImagePreview.propTypes = {\n image: PropTypes.string\n};\nexport default CardImagePreview;\n"],"file":"index.js"}
@@ -0,0 +1,34 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_orange_200 from colors;
3
+
4
+ @keyframes fadeIn {
5
+ 0% {
6
+ opacity: 0;
7
+ }
8
+
9
+ 100% {
10
+ opacity: 1;
11
+ }
12
+ }
13
+
14
+ .image {
15
+ box-sizing: border-box;
16
+ overflow: hidden;
17
+ width: 56px;
18
+ height: 56px;
19
+ position: relative;
20
+ animation: fadeIn 1s ease-out forwards;
21
+ border-radius: 7px;
22
+ background-position: 50%;
23
+ background-size: cover;
24
+ background-color: cm_orange_200;
25
+ }
26
+
27
+ .emptyIcon {
28
+ width: 33px;
29
+ height: 27px;
30
+ position: absolute;
31
+ top: 50%;
32
+ left: 50%;
33
+ transform: translate(-50%, -50%);
34
+ }
@@ -0,0 +1,6 @@
1
+ export default {
2
+ props: {
3
+ image: 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/partner-wedemain/fr/medias/img/cover/shutterstock_248741149-1470302136299.jpg&h=500&w=500&q=90'
4
+ }
5
+ };
6
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/card-image-preview/test/fixtures/default.js"],"names":["props","image"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EACH;AAFG;AADM,CAAf","sourcesContent":["export default {\n props: {\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/partner-wedemain/fr/medias/img/cover/shutterstock_248741149-1470302136299.jpg&h=500&w=500&q=90'\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,4 @@
1
+ export default {
2
+ props: {}
3
+ };
4
+ //# sourceMappingURL=empty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/card-image-preview/test/fixtures/empty.js"],"names":["props"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AADM,CAAf","sourcesContent":["export default {\n props: {}\n};\n"],"file":"empty.js"}
@@ -5,7 +5,7 @@
5
5
  .title {
6
6
  border-bottom: 1px solid light;
7
7
  color: medium;
8
- font-family: "Open Sans";
8
+ font-family: "Gilroy";
9
9
  font-size: 13px;
10
10
  font-weight: 800;
11
11
  line-height: 10px;
@@ -80,7 +80,7 @@
80
80
 
81
81
  .stars {
82
82
  padding-top: 50px;
83
- font-family: 'Open Sans';
83
+ font-family: 'Gilroy';
84
84
  font-style: italic;
85
85
  color: white;
86
86
  display: block;
@@ -89,7 +89,7 @@
89
89
 
90
90
  .clueText,
91
91
  .clueText a {
92
- font-family: 'Open Sans';
92
+ font-family: 'Gilroy';
93
93
  font-weight: bold;
94
94
  font-size: 18px;
95
95
  color: white;
@@ -8,7 +8,7 @@
8
8
  .button {
9
9
  display: inline-block;
10
10
  box-sizing: border-box;
11
- font-family: 'Open Sans';
11
+ font-family: 'Gilroy';
12
12
  font-size: 13px;
13
13
  font-weight: 600;
14
14
  text-decoration: none;
@@ -15,7 +15,7 @@
15
15
  text-transform: uppercase;
16
16
  font-weight: bold;
17
17
  color: white;
18
- font-family: 'Open Sans';
18
+ font-family: 'Gilroy';
19
19
  }
20
20
 
21
21
  .inlineContainer {
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .title {
15
- font-family: "Open Sans";
15
+ font-family: "Gilroy";
16
16
  font-size: 15px;
17
17
  text-transform: none;
18
18
  color: dark;
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .description {
23
- font-family: 'Open Sans';
23
+ font-family: 'Gilroy';
24
24
  font-size: 13px;
25
25
  font-weight: 400;
26
26
  font-style: italic;
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  .previewWrapper span {
48
- font-family: 'Open Sans';
48
+ font-family: 'Gilroy';
49
49
  color: dark;
50
50
  font-size: 15px;
51
51
  font-weight: 700;
@@ -90,13 +90,14 @@
90
90
  align-items: center;
91
91
  justify-content: space-between;
92
92
  /* fonts */
93
- font-family: OpenSans-SemiBold;
93
+ font-family: Gilroy;
94
94
  font-size: 13px;
95
95
  font-weight: 400;
96
96
  margin-top: 15px;
97
97
  }
98
98
 
99
99
  .resetSrcLabel {
100
+ font-family: Gilroy;
100
101
  color: dark;
101
102
  max-width: 220px;
102
103
  display: inline-block;
@@ -135,7 +136,7 @@
135
136
  }
136
137
 
137
138
  .uploadLabel {
138
- font-family: 'Open Sans';
139
+ font-family: 'Gilroy';
139
140
  font-size: 18px;
140
141
  text-transform: uppercase;
141
142
  font-weight: 700;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .default .title {
59
- font-family: open sans;
59
+ font-family: Gilroy;
60
60
  font-size: 15px;
61
61
  text-transform: none;
62
62
  color: dark;
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .value {
16
- font-family: 'Open Sans';
16
+ font-family: 'Gilroy';
17
17
  font-size: 15px;
18
18
  font-weight: 700;
19
19
  color: dark;
@@ -40,7 +40,7 @@
40
40
  padding: 0 40px;
41
41
  line-height: 52px;
42
42
  border-radius: 2px;
43
- font-family: 'Open Sans';
43
+ font-family: 'Gilroy';
44
44
  font-size: 15px;
45
45
  color: white;
46
46
  font-weight: 700px;
@@ -62,7 +62,7 @@
62
62
  padding: 0 15px;
63
63
  text-transform: uppercase;
64
64
  border-radius: 2px;
65
- font-family: 'Open Sans';
65
+ font-family: 'Gilroy';
66
66
  font-size: 15px;
67
67
  font-weight: 700;
68
68
  cursor: pointer;
@@ -103,7 +103,7 @@
103
103
  }
104
104
 
105
105
  .description {
106
- font-family: 'Open Sans';
106
+ font-family: 'Gilroy';
107
107
  font-weight: 500;
108
108
  font-size: 14px;
109
109
  color: white;
@@ -111,7 +111,7 @@
111
111
  }
112
112
 
113
113
  .input {
114
- font-family: "Open Sans";
114
+ font-family: "Gilroy";
115
115
  text-transform: none;
116
116
  padding: 0 15px;
117
117
  border: solid 2px light;
@@ -6,7 +6,7 @@
6
6
  color: dark;
7
7
  width: 300px;
8
8
  padding: 10px 15px;
9
- font-family: 'Open Sans';
9
+ font-family: 'Gilroy';
10
10
  font-weight: 100;
11
11
  font-size: 15px;
12
12
  display: block;
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  textarea {
28
- font-family: "Open Sans";
28
+ font-family: "Gilroy";
29
29
  text-transform: none;
30
30
  padding: 10px 15px;
31
31
  border: solid 2px light;
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .title {
24
- font-family: "Open Sans";
24
+ font-family: "Gilroy";
25
25
  font-size: 15px;
26
26
  text-transform: none;
27
27
  color: dark;
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  .description {
52
- font-family: 'Open Sans';
52
+ font-family: 'Gilroy';
53
53
  font-weight: 500;
54
54
  font-size: 12px;
55
55
  color: medium;
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .title {
13
- font-family: "Open Sans";
13
+ font-family: "Gilroy";
14
14
  font-size: 15px;
15
15
  text-transform: none;
16
16
  color: dark;
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  .value {
21
- font-family: 'Open Sans';
21
+ font-family: 'Gilroy';
22
22
  font-size: 15px;
23
23
  font-weight: 700;
24
24
  color: dark;
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .description {
29
- font-family: 'Open Sans';
29
+ font-family: 'Gilroy';
30
30
  font-weight: 500;
31
31
  font-size: 12px;
32
32
  color: medium;
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .search {
35
- font-family: "Open Sans";
35
+ font-family: "Gilroy";
36
36
  text-transform: none;
37
37
  margin: 0 3px;
38
38
  padding: 0 15px 0 45px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .title {
96
- font-family: "Open Sans";
96
+ font-family: "Gilroy";
97
97
  font-size: 15px;
98
98
  text-transform: none;
99
99
  color: dark;
@@ -106,7 +106,7 @@
106
106
  }
107
107
 
108
108
  .description {
109
- font-family: 'Open Sans';
109
+ font-family: 'Gilroy';
110
110
  font-weight: 500;
111
111
  font-size: 12px;
112
112
  color: medium;
@@ -140,11 +140,12 @@
140
140
  }
141
141
 
142
142
  .coorpmanager .checkbox:disabled ~ label {
143
- background: light;
144
- border-color: light;
143
+ border-color: cm_grey_200;
145
144
  pointer-events: none;
145
+ background: cm_grey_200;
146
+ opacity: 0.4;
146
147
  }
147
148
 
148
149
  .coorpmanager .checkbox:disabled ~ label::after {
149
- background: medium;
150
+ background: white;
150
151
  }
@@ -1,11 +1,12 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import checked from './checked';
4
1
  export default {
5
- props: _extends(_extends({}, checked.props), {}, {
2
+ props: {
3
+ type: 'switch',
4
+ title: 'Name',
5
+ value: false,
6
6
  disabled: true,
7
+ onChange: value => console.log(value),
7
8
  titlePosition: 'right',
8
9
  theme: 'coorpmanager'
9
- })
10
+ }
10
11
  };
11
12
  //# sourceMappingURL=cm-right-disabled.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-right-disabled.js"],"names":["checked","props","disabled","titlePosition","theme"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,QAAQ,EAAE,IAFP;AAGHC,IAAAA,aAAa,EAAE,OAHZ;AAIHC,IAAAA,KAAK,EAAE;AAJJ;AADQ,CAAf","sourcesContent":["import checked from './checked';\n\nexport default {\n props: {\n ...checked.props,\n disabled: true,\n titlePosition: 'right',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-right-disabled.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/input-switch/test/fixtures/cm-right-disabled.js"],"names":["props","type","title","value","disabled","onChange","console","log","titlePosition","theme"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,QADD;AAELC,IAAAA,KAAK,EAAE,MAFF;AAGLC,IAAAA,KAAK,EAAE,KAHF;AAILC,IAAAA,QAAQ,EAAE,IAJL;AAKLC,IAAAA,QAAQ,EAAEF,KAAK,IAAIG,OAAO,CAACC,GAAR,CAAYJ,KAAZ,CALd;AAMLK,IAAAA,aAAa,EAAE,OANV;AAOLC,IAAAA,KAAK,EAAE;AAPF;AADM,CAAf","sourcesContent":["export default {\n props: {\n type: 'switch',\n title: 'Name',\n value: false,\n disabled: true,\n onChange: value => console.log(value),\n titlePosition: 'right',\n theme: 'coorpmanager'\n }\n};\n"],"file":"cm-right-disabled.js"}
@@ -50,7 +50,7 @@
50
50
  width: 100%;
51
51
  font-weight: normal;
52
52
  font-size: 14px;
53
- font-family: 'Open Sans';
53
+ font-family: 'Gilroy';
54
54
  padding: 0 0 0 3px;
55
55
  border: 0;
56
56
  border-radius: 0px;
@@ -114,7 +114,7 @@
114
114
  .cockpit .title {
115
115
  color: #797979;
116
116
  font-weight: bold;
117
- font-family: 'Open Sans';
117
+ font-family: 'Gilroy';
118
118
  text-transform: capitalize;
119
119
  font-size: 11px;
120
120
  align-self: flex-start;
@@ -130,7 +130,7 @@
130
130
  }
131
131
 
132
132
  .title {
133
- font-family: "Open Sans";
133
+ font-family: "Gilroy";
134
134
  font-size: 15px;
135
135
  text-transform: none;
136
136
  color: dark;
@@ -138,7 +138,7 @@
138
138
  }
139
139
 
140
140
  .input {
141
- font-family: "Open Sans";
141
+ font-family: "Gilroy";
142
142
  text-transform: none;
143
143
  padding: 0 15px;
144
144
  border: solid 1px light;
@@ -171,7 +171,7 @@
171
171
  }
172
172
 
173
173
  .description {
174
- font-family: 'Open Sans';
174
+ font-family: 'Gilroy';
175
175
  font-weight: 500;
176
176
  font-size: 12px;
177
177
  color: medium;
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .title {
38
- font-family: "Open Sans";
38
+ font-family: "Gilroy";
39
39
  font-size: 15px;
40
40
  text-transform: none;
41
41
  color: dark;
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .default textarea {
46
- font-family: "Open Sans";
46
+ font-family: "Gilroy";
47
47
  text-transform: none;
48
48
  padding: 10px 15px;
49
49
  border: solid 2px light;
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .description {
64
- font-family: 'Open Sans';
64
+ font-family: 'Gilroy';
65
65
  font-weight: 500;
66
66
  font-size: 12px;
67
67
  color: medium;
@@ -97,7 +97,7 @@
97
97
  width: 100%;
98
98
  font-weight: normal;
99
99
  font-size: 14px;
100
- font-family: 'Open Sans';
100
+ font-family: 'Gilroy';
101
101
  padding: 0 0 0 3px;
102
102
  border: 0;
103
103
  border-radius: 0px;
@@ -172,7 +172,7 @@
172
172
  .cockpit .title {
173
173
  color: #797979;
174
174
  font-weight: bold;
175
- font-family: 'Open Sans';
175
+ font-family: 'Gilroy';
176
176
  text-transform: capitalize;
177
177
  font-size: 11px;
178
178
  align-self: flex-start;
@@ -20,7 +20,7 @@
20
20
  justify-content: top;
21
21
  align-items: center;
22
22
  font-size: 22px;
23
- font-family: 'Open Sans';
23
+ font-family: 'Gilroy';
24
24
  font-weight: 700;
25
25
  top: 0;
26
26
  right: 0;
@@ -7,7 +7,7 @@
7
7
 
8
8
  .message {
9
9
  width: 100%;
10
- font-family: 'Open Sans';
10
+ font-family: 'Gilroy';
11
11
  font-weight: 700;
12
12
  font-size: 14px;
13
13
  text-align: center;
@@ -21,7 +21,7 @@
21
21
  display: flex;
22
22
  cursor: pointer;
23
23
  color: white;
24
- font-family: "Open Sans";
24
+ font-family: "Gilroy";
25
25
  font-size: 12px;
26
26
  font-weight: 400;
27
27
  }
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .description {
55
- font-family: 'Open Sans';
55
+ font-family: 'Gilroy';
56
56
  font-size: 11px;
57
57
  margin-left: 16px;
58
58
  margin-right: 16px;
@@ -30,11 +30,11 @@
30
30
  position: relative;
31
31
  flex-grow: 0;
32
32
  margin-right: 20px;
33
- font-family: "Open Sans";
33
+ font-family: "Gilroy";
34
34
  }
35
35
 
36
36
  .title {
37
- font-family: "Open Sans";
37
+ font-family: "Gilroy";
38
38
  font-size: 15px;
39
39
  text-transform: none;
40
40
  color: dark;
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  .default select {
58
- font-family: "Open Sans";
58
+ font-family: "Gilroy";
59
59
  text-transform: none;
60
60
  padding: 0 15px;
61
61
  border: solid 2px light;
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  .modified select {
74
- font-family: "Open Sans";
74
+ font-family: "Gilroy";
75
75
  text-transform: none;
76
76
  padding: 0 15px;
77
77
  border: solid 2px orange;
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  .description {
94
- font-family: 'Open Sans';
94
+ font-family: 'Gilroy';
95
95
  font-weight: 500;
96
96
  font-size: 12px;
97
97
  color: medium;
@@ -209,7 +209,7 @@
209
209
  }
210
210
 
211
211
  .no-label select {
212
- font-family: "Open Sans";
212
+ font-family: "Gilroy";
213
213
  text-transform: none;
214
214
  padding: 0 15px;
215
215
  height: 44px;
@@ -392,7 +392,7 @@
392
392
  background-color: light;
393
393
  border: 0;
394
394
  font-weight: 700;
395
- font-family: 'Open Sans';
395
+ font-family: 'Gilroy';
396
396
  color: dark;
397
397
  padding: 0 30px 0 15px;
398
398
  width: 150px;
@@ -47,7 +47,7 @@
47
47
 
48
48
  .subtitle,
49
49
  .title {
50
- font-family: 'Open Sans';
50
+ font-family: 'Gilroy';
51
51
  text-shadow: 0 0 4px rgba(61, 61, 61, 0.37);
52
52
  }
53
53
 
@@ -14,7 +14,7 @@
14
14
  display: flex;
15
15
  align-items: center;
16
16
  margin: 15px 0;
17
- font-family: Open Sans, sans-serif;
17
+ font-family: Gilroy;
18
18
  font-weight: bold;
19
19
  font-size: 13px;
20
20
  overflow: inherit;
@@ -28,7 +28,7 @@
28
28
  text-transform: inherit;
29
29
  background-color: xtraLightGrey;
30
30
  color: dark;
31
- font-family: Open Sans, sans-serif;
31
+ font-family: Gilroy;
32
32
  font-weight: 600;
33
33
  font-size: 13px;
34
34
  text-decoration: none;
@@ -74,7 +74,7 @@
74
74
  align-items: center;
75
75
  color: white;
76
76
  text-align: center;
77
- font-family: Open Sans, sans-serif;
77
+ font-family: Gilroy;
78
78
  font-weight: bold;
79
79
  font-size: 13px;
80
80
  box-shadow: 0 -1px 20px 0 rgba(0, 0, 0, 0.25);
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  .description {
48
- font-family: 'Open Sans';
48
+ font-family: 'Gilroy';
49
49
  font-weight: 600;
50
50
  text-align: center;
51
51
  font-size: 12px;