@coorpacademy/components 11.40.14 → 11.40.16

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 (320) hide show
  1. package/es/atom/button/style.css +2 -2
  2. package/es/atom/button-menu/utils.d.ts +1 -1
  3. package/es/atom/checkbox-with-title/index.d.ts +25 -1
  4. package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
  5. package/es/atom/checkbox-with-title/index.js +19 -2
  6. package/es/atom/checkbox-with-title/index.js.map +1 -1
  7. package/es/atom/chip/index.d.ts.map +1 -1
  8. package/es/atom/chip/index.js +4 -4
  9. package/es/atom/chip/index.js.map +1 -1
  10. package/es/atom/content-badge/style.css +2 -2
  11. package/es/atom/input-html/index.d.ts.map +1 -1
  12. package/es/atom/input-html/index.js +2 -1
  13. package/es/atom/input-html/index.js.map +1 -1
  14. package/es/atom/input-switch/index.d.ts +24 -1
  15. package/es/atom/input-switch/index.d.ts.map +1 -1
  16. package/es/atom/input-switch/index.js +18 -4
  17. package/es/atom/input-switch/index.js.map +1 -1
  18. package/es/atom/input-switch/style.css +3 -0
  19. package/es/atom/range/index.d.ts +35 -3
  20. package/es/atom/range/index.d.ts.map +1 -1
  21. package/es/atom/range/index.js +95 -20
  22. package/es/atom/range/index.js.map +1 -1
  23. package/es/atom/range/style.css +40 -2
  24. package/es/atom/resource-miniature/style.css +3 -3
  25. package/es/atom/status-item/index.native.js +1 -1
  26. package/es/atom/status-item/index.native.js.map +1 -1
  27. package/es/molecule/base-modal/index.d.ts.map +1 -1
  28. package/es/molecule/base-modal/index.js +11 -5
  29. package/es/molecule/base-modal/index.js.map +1 -1
  30. package/es/molecule/card/favorite.d.ts.map +1 -1
  31. package/es/molecule/card/favorite.js +15 -16
  32. package/es/molecule/card/favorite.js.map +1 -1
  33. package/es/molecule/card/notification.css +0 -6
  34. package/es/molecule/card/notification.d.ts.map +1 -1
  35. package/es/molecule/card/notification.js +12 -14
  36. package/es/molecule/card/notification.js.map +1 -1
  37. package/es/molecule/cm-popin/types.d.ts +2 -0
  38. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  39. package/es/molecule/coorpmanager-base-banner/style.css +1 -1
  40. package/es/molecule/dashboard/cards-list/index.d.ts +9 -0
  41. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  42. package/es/molecule/dashboard/cards-list/index.js +5 -1
  43. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  44. package/es/molecule/dashboard/cards-list/style.css +1 -1
  45. package/es/molecule/draggable-list/index.d.ts +1 -0
  46. package/es/molecule/go1-banner/style.css +3 -3
  47. package/es/molecule/learning-priority-modal/index.js +1 -1
  48. package/es/molecule/learning-priority-modal/index.js.map +1 -1
  49. package/es/molecule/modal/style.css +3 -3
  50. package/es/molecule/multi-filter-panel/index.d.ts +42 -0
  51. package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
  52. package/es/molecule/multi-filter-panel/index.js +28 -15
  53. package/es/molecule/multi-filter-panel/index.js.map +1 -1
  54. package/es/molecule/multi-filter-panel/prop-types.d.ts +32 -5
  55. package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  56. package/es/molecule/multi-filter-panel/prop-types.js +4 -0
  57. package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
  58. package/es/molecule/questions/question-range/index.d.ts +6 -1
  59. package/es/molecule/quick-filters/index.js +3 -1
  60. package/es/molecule/quick-filters/index.js.map +1 -1
  61. package/es/molecule/quick-filters/style.css +7 -2
  62. package/es/molecule/tabs/index.d.ts +39 -0
  63. package/es/molecule/tabs/index.d.ts.map +1 -0
  64. package/es/molecule/tabs/index.js +69 -0
  65. package/es/molecule/tabs/index.js.map +1 -0
  66. package/es/molecule/tabs/style.css +28 -0
  67. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  68. package/es/organism/brand-analytics/style.css +1 -1
  69. package/es/organism/brand-learning-priorities/index.d.ts +1 -0
  70. package/es/organism/content-skill-modal/index.d.ts +23 -0
  71. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  72. package/es/organism/content-skill-modal/types.d.ts +23 -0
  73. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  74. package/es/organism/filter-checkbox-and-search/index.d.ts +22 -0
  75. package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  76. package/es/organism/filter-checkbox-and-search/index.js +21 -4
  77. package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
  78. package/es/organism/filter-checkbox-and-search/props-types.d.ts +3 -0
  79. package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  80. package/es/organism/filter-checkbox-and-search/props-types.js +1 -0
  81. package/es/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  82. package/es/organism/filter-chip/index.d.ts +21 -0
  83. package/es/organism/filter-chip/index.d.ts.map +1 -1
  84. package/es/organism/filter-chip/index.js +14 -2
  85. package/es/organism/filter-chip/index.js.map +1 -1
  86. package/es/organism/filter-range/index.d.ts +28 -0
  87. package/es/organism/filter-range/index.d.ts.map +1 -0
  88. package/es/organism/filter-range/index.js +101 -0
  89. package/es/organism/filter-range/index.js.map +1 -0
  90. package/es/organism/filter-range/prop-types.d.ts +40 -0
  91. package/es/organism/filter-range/prop-types.d.ts.map +1 -0
  92. package/es/organism/filter-range/prop-types.js +20 -0
  93. package/es/organism/filter-range/prop-types.js.map +1 -0
  94. package/es/organism/filter-range/style.css +15 -0
  95. package/es/organism/filter-switch/index.d.ts +22 -0
  96. package/es/organism/filter-switch/index.d.ts.map +1 -1
  97. package/es/organism/filter-switch/index.js +18 -3
  98. package/es/organism/filter-switch/index.js.map +1 -1
  99. package/es/organism/filter-switch/prop-types.d.ts +2 -0
  100. package/es/organism/filter-switch/prop-types.d.ts.map +1 -1
  101. package/es/organism/filter-switch/prop-types.js +2 -1
  102. package/es/organism/filter-switch/prop-types.js.map +1 -1
  103. package/es/organism/list-item/index.d.ts +1 -0
  104. package/es/organism/list-items/index.d.ts +2 -0
  105. package/es/organism/list-items/style.css +1 -1
  106. package/es/organism/mooc-footer/style.css +2 -2
  107. package/es/organism/rewards-form/index.d.ts +1 -0
  108. package/es/organism/select-opponents/index.d.ts +1 -0
  109. package/es/organism/select-opponents/index.d.ts.map +1 -1
  110. package/es/organism/select-opponents/types.d.ts +1 -0
  111. package/es/organism/select-opponents/types.d.ts.map +1 -1
  112. package/es/organism/sidebar/style.css +3 -3
  113. package/es/organism/title-and-input/index.d.ts +1 -0
  114. package/es/organism/title-and-input/index.d.ts.map +1 -1
  115. package/es/organism/title-and-input/types.d.ts +1 -0
  116. package/es/organism/title-and-input/types.d.ts.map +1 -1
  117. package/es/organism/wizard-contents/index.d.ts +1 -0
  118. package/es/template/activity/stars-summary.css +2 -2
  119. package/es/template/app-player/loading/index.d.ts +2 -0
  120. package/es/template/app-player/player/index.d.ts +4 -0
  121. package/es/template/app-player/player/slides/index.d.ts +2 -0
  122. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  123. package/es/template/app-player/popin-correction/index.d.ts +2 -0
  124. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  125. package/es/template/app-player/popin-end/index.d.ts +11 -0
  126. package/es/template/app-player/popin-end/summary.d.ts +9 -0
  127. package/es/template/app-review/index.d.ts +2 -0
  128. package/es/template/app-review/index.d.ts.map +1 -1
  129. package/es/template/app-review/player/prop-types.d.ts +2 -0
  130. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  131. package/es/template/app-review/prop-types.d.ts +2 -0
  132. package/es/template/app-review/prop-types.d.ts.map +1 -1
  133. package/es/template/back-office/brand-update/index.d.ts +28 -0
  134. package/es/template/back-office/brand-update/utils.d.ts +1 -1
  135. package/es/template/common/dashboard/index.d.ts +4 -0
  136. package/es/template/common/search-page/index.d.ts +106 -21
  137. package/es/template/common/search-page/index.d.ts.map +1 -1
  138. package/es/template/common/search-page/index.js +76 -21
  139. package/es/template/common/search-page/index.js.map +1 -1
  140. package/es/template/common/search-page/style.css +52 -4
  141. package/es/template/external-course/index.d.ts +2 -0
  142. package/es/template/my-learning/index.d.ts +9 -0
  143. package/es/template/teams-dashboard/index.d.ts +9 -0
  144. package/es/util/external-content.js +2 -2
  145. package/es/util/external-content.js.map +1 -1
  146. package/es/variables/colors.css +6 -6
  147. package/es/variables/colors.d.ts +5 -4
  148. package/es/variables/colors.d.ts.map +1 -1
  149. package/es/variables/colors.js +5 -4
  150. package/es/variables/colors.js.map +1 -1
  151. package/lib/atom/button/style.css +2 -2
  152. package/lib/atom/button-menu/utils.d.ts +1 -1
  153. package/lib/atom/checkbox-with-title/index.d.ts +25 -1
  154. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  155. package/lib/atom/checkbox-with-title/index.js +19 -2
  156. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  157. package/lib/atom/chip/index.d.ts.map +1 -1
  158. package/lib/atom/chip/index.js +4 -4
  159. package/lib/atom/chip/index.js.map +1 -1
  160. package/lib/atom/content-badge/style.css +2 -2
  161. package/lib/atom/input-html/index.d.ts.map +1 -1
  162. package/lib/atom/input-html/index.js +2 -1
  163. package/lib/atom/input-html/index.js.map +1 -1
  164. package/lib/atom/input-switch/index.d.ts +24 -1
  165. package/lib/atom/input-switch/index.d.ts.map +1 -1
  166. package/lib/atom/input-switch/index.js +18 -4
  167. package/lib/atom/input-switch/index.js.map +1 -1
  168. package/lib/atom/input-switch/style.css +3 -0
  169. package/lib/atom/range/index.d.ts +35 -3
  170. package/lib/atom/range/index.d.ts.map +1 -1
  171. package/lib/atom/range/index.js +95 -20
  172. package/lib/atom/range/index.js.map +1 -1
  173. package/lib/atom/range/style.css +40 -2
  174. package/lib/atom/resource-miniature/style.css +3 -3
  175. package/lib/atom/status-item/index.native.js +1 -1
  176. package/lib/atom/status-item/index.native.js.map +1 -1
  177. package/lib/molecule/base-modal/index.d.ts.map +1 -1
  178. package/lib/molecule/base-modal/index.js +11 -5
  179. package/lib/molecule/base-modal/index.js.map +1 -1
  180. package/lib/molecule/card/favorite.d.ts.map +1 -1
  181. package/lib/molecule/card/favorite.js +15 -16
  182. package/lib/molecule/card/favorite.js.map +1 -1
  183. package/lib/molecule/card/notification.css +0 -6
  184. package/lib/molecule/card/notification.d.ts.map +1 -1
  185. package/lib/molecule/card/notification.js +12 -14
  186. package/lib/molecule/card/notification.js.map +1 -1
  187. package/lib/molecule/cm-popin/types.d.ts +2 -0
  188. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  189. package/lib/molecule/coorpmanager-base-banner/style.css +1 -1
  190. package/lib/molecule/dashboard/cards-list/index.d.ts +9 -0
  191. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  192. package/lib/molecule/dashboard/cards-list/index.js +5 -1
  193. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  194. package/lib/molecule/dashboard/cards-list/style.css +1 -1
  195. package/lib/molecule/draggable-list/index.d.ts +1 -0
  196. package/lib/molecule/go1-banner/style.css +3 -3
  197. package/lib/molecule/learning-priority-modal/index.js +1 -1
  198. package/lib/molecule/learning-priority-modal/index.js.map +1 -1
  199. package/lib/molecule/modal/style.css +3 -3
  200. package/lib/molecule/multi-filter-panel/index.d.ts +42 -0
  201. package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
  202. package/lib/molecule/multi-filter-panel/index.js +28 -15
  203. package/lib/molecule/multi-filter-panel/index.js.map +1 -1
  204. package/lib/molecule/multi-filter-panel/prop-types.d.ts +32 -5
  205. package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  206. package/lib/molecule/multi-filter-panel/prop-types.js +4 -0
  207. package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
  208. package/lib/molecule/questions/question-range/index.d.ts +6 -1
  209. package/lib/molecule/quick-filters/index.js +3 -1
  210. package/lib/molecule/quick-filters/index.js.map +1 -1
  211. package/lib/molecule/quick-filters/style.css +7 -2
  212. package/lib/molecule/tabs/index.d.ts +39 -0
  213. package/lib/molecule/tabs/index.d.ts.map +1 -0
  214. package/lib/molecule/tabs/index.js +74 -0
  215. package/lib/molecule/tabs/index.js.map +1 -0
  216. package/lib/molecule/tabs/style.css +28 -0
  217. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  218. package/lib/organism/brand-analytics/style.css +1 -1
  219. package/lib/organism/brand-learning-priorities/index.d.ts +1 -0
  220. package/lib/organism/content-skill-modal/index.d.ts +23 -0
  221. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  222. package/lib/organism/content-skill-modal/types.d.ts +23 -0
  223. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  224. package/lib/organism/filter-checkbox-and-search/index.d.ts +22 -0
  225. package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  226. package/lib/organism/filter-checkbox-and-search/index.js +21 -4
  227. package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
  228. package/lib/organism/filter-checkbox-and-search/props-types.d.ts +3 -0
  229. package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  230. package/lib/organism/filter-checkbox-and-search/props-types.js +1 -0
  231. package/lib/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  232. package/lib/organism/filter-chip/index.d.ts +21 -0
  233. package/lib/organism/filter-chip/index.d.ts.map +1 -1
  234. package/lib/organism/filter-chip/index.js +14 -2
  235. package/lib/organism/filter-chip/index.js.map +1 -1
  236. package/lib/organism/filter-range/index.d.ts +28 -0
  237. package/lib/organism/filter-range/index.d.ts.map +1 -0
  238. package/lib/organism/filter-range/index.js +108 -0
  239. package/lib/organism/filter-range/index.js.map +1 -0
  240. package/lib/organism/filter-range/prop-types.d.ts +40 -0
  241. package/lib/organism/filter-range/prop-types.d.ts.map +1 -0
  242. package/lib/organism/filter-range/prop-types.js +25 -0
  243. package/lib/organism/filter-range/prop-types.js.map +1 -0
  244. package/lib/organism/filter-range/style.css +15 -0
  245. package/lib/organism/filter-switch/index.d.ts +22 -0
  246. package/lib/organism/filter-switch/index.d.ts.map +1 -1
  247. package/lib/organism/filter-switch/index.js +18 -3
  248. package/lib/organism/filter-switch/index.js.map +1 -1
  249. package/lib/organism/filter-switch/prop-types.d.ts +2 -0
  250. package/lib/organism/filter-switch/prop-types.d.ts.map +1 -1
  251. package/lib/organism/filter-switch/prop-types.js +2 -1
  252. package/lib/organism/filter-switch/prop-types.js.map +1 -1
  253. package/lib/organism/list-item/index.d.ts +1 -0
  254. package/lib/organism/list-items/index.d.ts +2 -0
  255. package/lib/organism/list-items/style.css +1 -1
  256. package/lib/organism/mooc-footer/style.css +2 -2
  257. package/lib/organism/rewards-form/index.d.ts +1 -0
  258. package/lib/organism/select-opponents/index.d.ts +1 -0
  259. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  260. package/lib/organism/select-opponents/types.d.ts +1 -0
  261. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  262. package/lib/organism/sidebar/style.css +3 -3
  263. package/lib/organism/title-and-input/index.d.ts +1 -0
  264. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  265. package/lib/organism/title-and-input/types.d.ts +1 -0
  266. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  267. package/lib/organism/wizard-contents/index.d.ts +1 -0
  268. package/lib/template/activity/stars-summary.css +2 -2
  269. package/lib/template/app-player/loading/index.d.ts +2 -0
  270. package/lib/template/app-player/player/index.d.ts +4 -0
  271. package/lib/template/app-player/player/slides/index.d.ts +2 -0
  272. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  273. package/lib/template/app-player/popin-correction/index.d.ts +2 -0
  274. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  275. package/lib/template/app-player/popin-end/index.d.ts +11 -0
  276. package/lib/template/app-player/popin-end/summary.d.ts +9 -0
  277. package/lib/template/app-review/index.d.ts +2 -0
  278. package/lib/template/app-review/index.d.ts.map +1 -1
  279. package/lib/template/app-review/player/prop-types.d.ts +2 -0
  280. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  281. package/lib/template/app-review/prop-types.d.ts +2 -0
  282. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  283. package/lib/template/back-office/brand-update/index.d.ts +28 -0
  284. package/lib/template/back-office/brand-update/utils.d.ts +1 -1
  285. package/lib/template/common/dashboard/index.d.ts +4 -0
  286. package/lib/template/common/search-page/index.d.ts +106 -21
  287. package/lib/template/common/search-page/index.d.ts.map +1 -1
  288. package/lib/template/common/search-page/index.js +75 -20
  289. package/lib/template/common/search-page/index.js.map +1 -1
  290. package/lib/template/common/search-page/style.css +52 -4
  291. package/lib/template/external-course/index.d.ts +2 -0
  292. package/lib/template/my-learning/index.d.ts +9 -0
  293. package/lib/template/teams-dashboard/index.d.ts +9 -0
  294. package/lib/util/external-content.js +2 -2
  295. package/lib/util/external-content.js.map +1 -1
  296. package/lib/variables/colors.css +6 -6
  297. package/lib/variables/colors.d.ts +5 -4
  298. package/lib/variables/colors.d.ts.map +1 -1
  299. package/lib/variables/colors.js +5 -4
  300. package/lib/variables/colors.js.map +1 -1
  301. package/locales/cs/global.json +1 -1
  302. package/locales/de/global.json +1 -1
  303. package/locales/et/global.json +1 -1
  304. package/locales/fi/global.json +1 -1
  305. package/locales/fr/global.json +1 -1
  306. package/locales/hu/global.json +1 -1
  307. package/locales/hy/global.json +1 -1
  308. package/locales/ja/global.json +1 -1
  309. package/locales/ko/global.json +1 -1
  310. package/locales/lt/global.json +1 -1
  311. package/locales/pl/global.json +1 -1
  312. package/locales/ro/global.json +1 -1
  313. package/locales/ru/global.json +1 -1
  314. package/locales/sk/global.json +1 -1
  315. package/locales/sv/global.json +1 -1
  316. package/locales/uk/global.json +1 -1
  317. package/locales/vi/global.json +1 -1
  318. package/locales/zh/global.json +1 -1
  319. package/locales/zh_TW/global.json +1 -1
  320. package/package.json +4 -2
@@ -1,15 +1,17 @@
1
1
  import _sortBy from "lodash/fp/sortBy";
2
- import _size from "lodash/fp/size";
3
2
  import _pipe from "lodash/fp/pipe";
4
3
  import _map from "lodash/fp/map";
5
4
  import _keys from "lodash/fp/keys";
6
5
  import _isEmpty from "lodash/fp/isEmpty";
7
6
  import _getOr from "lodash/fp/getOr";
8
7
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9
- import React, { useRef } from 'react';
8
+ import React, { useRef, useCallback } from 'react';
10
9
  import PropTypes from 'prop-types';
10
+ import { convert } from 'css-color-function';
11
+ import classNames from 'classnames';
11
12
  import Provider from '../../../atom/provider';
12
13
  import Button from '../../../atom/button';
14
+ import ButtonLink from '../../../atom/button-link';
13
15
  import Filters from '../../../molecule/filters';
14
16
  import CardsGrid from '../../../organism/cards-grid';
15
17
  import CardsList from '../../../molecule/dashboard/cards-list';
@@ -22,6 +24,9 @@ import { cardPropTypes } from '../../../molecule/card';
22
24
  import LearningPriorityCard from '../../../molecule/learning-priority-card';
23
25
  import { COLORS } from '../../../variables/colors';
24
26
  import QuickFilters from '../../../molecule/quick-filters';
27
+ import BaseModal from '../../../molecule/base-modal';
28
+ import MultiFilterPanel from '../../../molecule/multi-filter-panel';
29
+ import Tabs from '../../../molecule/tabs';
25
30
  import style from './style.css';
26
31
  const SearchPage = (props, context) => {
27
32
  const {
@@ -31,6 +36,7 @@ const SearchPage = (props, context) => {
31
36
  cards,
32
37
  count,
33
38
  noresultsfound,
39
+ noresultsfoundDescription,
34
40
  clearFilters,
35
41
  recommendations,
36
42
  moreSortAriaLabel,
@@ -38,12 +44,16 @@ const SearchPage = (props, context) => {
38
44
  filterGroupAriaLabel,
39
45
  sortAriaLabel,
40
46
  popinWithCards,
41
- sections = {}
47
+ sections = {},
48
+ filtersModal,
49
+ searchMessage,
50
+ newVersion = false,
51
+ tabs
42
52
  } = props;
43
53
  const {
44
54
  skin
45
55
  } = context;
46
- const defaultColor = _getOr('#00B0FF', 'common.primary', skin);
56
+ const defaultColor = _getOr(COLORS.cm_primary_blue, 'common.primary', skin);
47
57
  const nodeRef = useRef(null);
48
58
  const recommendationsView = _isEmpty(recommendations) ? null : /*#__PURE__*/React.createElement(CardsList, _extends({}, recommendations, {
49
59
  customStyle: {
@@ -98,17 +108,21 @@ const SearchPage = (props, context) => {
98
108
  // For new content, use standard cards
99
109
  return /*#__PURE__*/React.createElement(CardsList, sectionProps);
100
110
  };
111
+ const tabsView = tabs ? /*#__PURE__*/React.createElement(Tabs, tabs) : null;
101
112
  const cardsView = _isEmpty(cards?.list) ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
102
113
  className: style.noresults
103
114
  }, /*#__PURE__*/React.createElement("div", {
104
- className: style.noresultstxt
105
- }, noresultsfound), /*#__PURE__*/React.createElement(Button, _extends({}, clearFilters, {
115
+ className: style.noresultsTitle
116
+ }, noresultsfound), /*#__PURE__*/React.createElement("div", {
117
+ className: style.noresultsDescription
118
+ }, noresultsfoundDescription), /*#__PURE__*/React.createElement(ButtonLink, _extends({}, clearFilters, {
106
119
  "data-name": "searchPageClear",
107
- className: style.clear,
108
- style: {
109
- background: defaultColor
110
- },
111
- type: "link"
120
+ className: classNames(style.clear, style.center),
121
+ hoverBackgroundColor: convert(`hsl(from ${defaultColor} h s calc(l*(1 - 0.08)))`),
122
+ customStyle: {
123
+ backgroundColor: defaultColor,
124
+ color: 'white'
125
+ }
112
126
  }))), recommendationsView) : /*#__PURE__*/React.createElement(CardsGrid, cards);
113
127
 
114
128
  // Convert sections object to array and sort by order
@@ -116,12 +130,7 @@ const SearchPage = (props, context) => {
116
130
  key,
117
131
  ...sections[key]
118
132
  })), _sortBy('order'))(sections);
119
- const hasSections = _size(sortedSections) > 0;
120
- const contentGridSection = /*#__PURE__*/React.createElement("div", {
121
- className: style.contentSection
122
- }, /*#__PURE__*/React.createElement("div", {
123
- className: style.sectionHeader
124
- }, /*#__PURE__*/React.createElement("div", {
133
+ const titleView = /*#__PURE__*/React.createElement("div", {
125
134
  className: style.sectionTitle
126
135
  }, /*#__PURE__*/React.createElement("span", null, title), /*#__PURE__*/React.createElement(Tag, {
127
136
  label: count || cards.list.length.toString(),
@@ -131,9 +140,15 @@ const SearchPage = (props, context) => {
131
140
  backgroundColor: COLORS.cm_grey_100,
132
141
  color: COLORS.neutral_500
133
142
  }
134
- })), /*#__PURE__*/React.createElement("div", {
143
+ }));
144
+ const contentGridSection = /*#__PURE__*/React.createElement("div", {
145
+ className: style.contentSection
146
+ }, /*#__PURE__*/React.createElement("div", {
147
+ className: style.sectionHeader
148
+ }, tabsView ? tabsView : titleView, /*#__PURE__*/React.createElement("div", {
135
149
  className: style.contentGrid
136
150
  }, " ", cardsView)));
151
+ const handleclearFiltersOnClick = useCallback(() => clearFilters.onClick(), [clearFilters]);
137
152
  return /*#__PURE__*/React.createElement("div", {
138
153
  "data-name": "filters"
139
154
  }, searchFilters ? /*#__PURE__*/React.createElement(Filters, _extends({}, searchFilters, {
@@ -141,7 +156,28 @@ const SearchPage = (props, context) => {
141
156
  moreFilterAriaLabel: moreFilterAriaLabel,
142
157
  filterGroupAriaLabel: filterGroupAriaLabel,
143
158
  sortAriaLabel: sortAriaLabel
144
- })) : null, quickFilters ? /*#__PURE__*/React.createElement(QuickFilters, quickFilters) : null, hasSections ? /*#__PURE__*/React.createElement("div", {
159
+ })) : null, quickFilters ? /*#__PURE__*/React.createElement(QuickFilters, quickFilters) : null, searchMessage ? /*#__PURE__*/React.createElement("div", {
160
+ className: style.searchMessageWrapper
161
+ }, /*#__PURE__*/React.createElement("span", {
162
+ className: style.searchMessage
163
+ // eslint-disable-next-line react/no-danger
164
+ ,
165
+ dangerouslySetInnerHTML: {
166
+ __html: searchMessage
167
+ }
168
+ }), /*#__PURE__*/React.createElement(Button, {
169
+ submitValue: clearFilters.label,
170
+ onClick: handleclearFiltersOnClick,
171
+ "data-name": "searchMeassageClear",
172
+ className: style.clear,
173
+ style: {
174
+ background: 'transparent',
175
+ color: defaultColor,
176
+ padding: '0 5px',
177
+ fontSize: '14px'
178
+ },
179
+ type: "link"
180
+ })) : null, newVersion ? /*#__PURE__*/React.createElement("div", {
145
181
  "data-name": "explorerSections",
146
182
  className: style.sectionsWrapper
147
183
  }, sortedSections.map((section, index) => /*#__PURE__*/React.createElement("div", {
@@ -156,28 +192,47 @@ const SearchPage = (props, context) => {
156
192
  }, title), cardsView), popinWithCards ? /*#__PURE__*/React.createElement("div", {
157
193
  className: style.popinWithCards,
158
194
  ref: nodeRef
159
- }, /*#__PURE__*/React.createElement(CMPopin, popinWithCards)) : null);
195
+ }, /*#__PURE__*/React.createElement(CMPopin, popinWithCards)) : null, filtersModal ? /*#__PURE__*/React.createElement(BaseModal, _extends({}, filtersModal, {
196
+ headerIcon: {
197
+ name: filtersModal.headerIcon.name,
198
+ backgroundColor: convert(`color(${defaultColor} lightness(92%))`),
199
+ color: defaultColor
200
+ },
201
+ footer: {
202
+ cancelButton: filtersModal.footer.cancelButton,
203
+ confirmButton: {
204
+ ...filtersModal.footer.confirmButton,
205
+ color: defaultColor
206
+ }
207
+ }
208
+ }), filtersModal.filterPanelProps ? /*#__PURE__*/React.createElement(MultiFilterPanel, filtersModal.filterPanelProps) : null) : null);
160
209
  };
161
210
  SearchPage.contextTypes = {
162
211
  skin: Provider.childContextTypes.skin
163
212
  };
164
213
  SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
214
+ newVersion: PropTypes.bool,
215
+ searchMessage: PropTypes.string,
165
216
  noresultsfound: PropTypes.string,
217
+ noresultsfoundDescription: PropTypes.string,
166
218
  title: PropTypes.string,
167
219
  searchFilters: PropTypes.shape(Filters.propTypes),
168
220
  quickFilters: PropTypes.shape(QuickFilters.propTypes),
169
221
  cards: PropTypes.shape(CardsGrid.propTypes),
170
222
  count: PropTypes.number,
171
- clearFilters: PropTypes.shape(Button.propTypes),
223
+ clearFilters: PropTypes.shape(ButtonLink.propTypes),
172
224
  recommendations: PropTypes.shape(CardsList.propTypes),
173
225
  moreSortAriaLabel: PropTypes.string,
174
226
  moreFilterAriaLabel: PropTypes.string,
175
227
  filterGroupAriaLabel: PropTypes.string,
176
228
  sortAriaLabel: PropTypes.string,
177
229
  popinWithCards: PropTypes.shape(CMPopin.propTypes),
230
+ filtersModal: PropTypes.shape(BaseModal.propTypes),
231
+ tabs: PropTypes.shape(Tabs.propTypes),
178
232
  sections: PropTypes.objectOf(PropTypes.shape({
179
233
  title: PropTypes.string,
180
234
  cards: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(cardPropTypes), PropTypes.shape(LearnerSkillCard.propTypes), PropTypes.shape(CertificationCard.propTypes), PropTypes.shape(PlaylistCard.propTypes), PropTypes.shape(LearningPriorityCard.propTypes)])),
235
+ tabs: PropTypes.shape(Tabs.propTypes),
181
236
  showMore: PropTypes.string,
182
237
  onShowMore: PropTypes.func,
183
238
  order: PropTypes.number,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useRef","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","CertificationCard","LearnerSkillCard","PlaylistCard","CMPopin","Tag","cardPropTypes","LearningPriorityCard","COLORS","QuickFilters","style","SearchPage","props","context","title","searchFilters","quickFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr","nodeRef","recommendationsView","_isEmpty","createElement","_extends","customStyle","padding","renderSection","section","sectionCount","length","titleWithCount","className","sectionTitle","label","toString","type","size","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","cardsView","list","noresults","noresultstxt","clear","background","sortedSections","_pipe","_keys","_map","_sortBy","hasSections","_size","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","map","index","cardsWrapper","role","ref","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","shape","number","objectOf","arrayOf","oneOfType","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, size, sortBy} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport QuickFilters from '../../../molecule/quick-filters';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n quickFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : (\n <CardsList {...recommendations} customStyle={{padding: 0}} />\n );\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const hasSections = size(sortedSections) > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div data-name=\"filters\">\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n {quickFilters ? <QuickFilters {...quickFilters} /> : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n quickFilters: PropTypes.shape(QuickFilters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAGC,MAAM,QAAO,OAAO;AACnC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,YAAY,MAAM,iC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C;IACdxE,KAAK,EAAEnB,SAAS,CAAC0F,MAAM;IACvBpE,KAAK,EAAEtB,SAAS,CAAC8F,OAAO,CACtB9F,SAAS,CAAC+F,SAAS,CAAC,CAClB/F,SAAS,CAAC2F,KAAK,CAAChF,aAAa,CAAC,EAC9BX,SAAS,CAAC2F,KAAK,CAACpF,gBAAgB,CAAC+E,SAAS,CAAC,EAC3CtF,SAAS,CAAC2F,KAAK,CAACrF,iBAAiB,CAACgF,SAAS,CAAC,EAC5CtF,SAAS,CAAC2F,KAAK,CAACnF,YAAY,CAAC8E,SAAS,CAAC,EACvCtF,SAAS,CAAC2F,KAAK,CAAC/E,oBAAoB,CAAC0E,SAAS,CAAC,CAChD,CACH,CAAC;IACDU,QAAQ,EAAEhG,SAAS,CAAC0F,MAAM;IAC1BO,UAAU,EAAEjG,SAAS,CAACkG,IAAI;IAC1BC,KAAK,EAAEnG,SAAS,CAAC4F,MAAM;IACvBrE,KAAK,EAAEvB,SAAS,CAAC4F,MAAM;IACvB,mBAAmB,EAAE5F,SAAS,CAAC2F,KAAK,CAAC;MACnCS,uBAAuB,EAAEpG,SAAS,CAAC0F,MAAM;MACzCW,wBAAwB,EAAErG,SAAS,CAAC0F;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAED,eAAe1E,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useRef","useCallback","PropTypes","convert","classNames","Provider","Button","ButtonLink","Filters","CardsGrid","CardsList","CertificationCard","LearnerSkillCard","PlaylistCard","CMPopin","Tag","cardPropTypes","LearningPriorityCard","COLORS","QuickFilters","BaseModal","MultiFilterPanel","Tabs","style","SearchPage","props","context","title","searchFilters","quickFilters","cards","count","noresultsfound","noresultsfoundDescription","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","filtersModal","searchMessage","newVersion","tabs","skin","defaultColor","_getOr","cm_primary_blue","nodeRef","recommendationsView","_isEmpty","createElement","_extends","customStyle","padding","renderSection","section","sectionCount","length","titleWithCount","className","sectionTitle","label","toString","type","size","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","tabsView","cardsView","list","noresults","noresultsTitle","noresultsDescription","clear","center","hoverBackgroundColor","sortedSections","_pipe","_keys","_map","_sortBy","titleView","contentGridSection","contentSection","sectionHeader","contentGrid","handleclearFiltersOnClick","onClick","searchMessageWrapper","dangerouslySetInnerHTML","__html","submitValue","background","fontSize","sectionsWrapper","map","index","cardsWrapper","role","ref","headerIcon","name","footer","cancelButton","confirmButton","filterPanelProps","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","bool","string","shape","number","objectOf","arrayOf","oneOfType","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, sortBy} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classNames from 'classnames';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport ButtonLink from '../../../atom/button-link';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport QuickFilters from '../../../molecule/quick-filters';\nimport BaseModal from '../../../molecule/base-modal';\nimport MultiFilterPanel from '../../../molecule/multi-filter-panel';\nimport Tabs from '../../../molecule/tabs';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n quickFilters,\n cards,\n count,\n noresultsfound,\n noresultsfoundDescription,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {},\n filtersModal,\n searchMessage,\n newVersion = false,\n tabs\n } = props;\n const {skin} = context;\n const defaultColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : (\n <CardsList {...recommendations} customStyle={{padding: 0}} />\n );\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const tabsView = tabs ? <Tabs {...tabs} /> : null;\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultsTitle}>{noresultsfound}</div>\n <div className={style.noresultsDescription}>{noresultsfoundDescription}</div>\n <ButtonLink\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={classNames(style.clear, style.center)}\n hoverBackgroundColor={convert(`hsl(from ${defaultColor} h s calc(l*(1 - 0.08)))`)}\n customStyle={{\n backgroundColor: defaultColor,\n color: 'white'\n }}\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const titleView = (\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n {tabsView ? tabsView : titleView}\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n const handleclearFiltersOnClick = useCallback(() => clearFilters.onClick(), [clearFilters]);\n return (\n <div data-name=\"filters\">\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n {quickFilters ? <QuickFilters {...quickFilters} /> : null}\n {searchMessage ? (\n <div className={style.searchMessageWrapper}>\n <span\n className={style.searchMessage}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: searchMessage}}\n />\n <Button\n submitValue={clearFilters.label}\n onClick={handleclearFiltersOnClick}\n data-name=\"searchMeassageClear\"\n className={style.clear}\n style={{\n background: 'transparent',\n color: defaultColor,\n padding: '0 5px',\n fontSize: '14px'\n }}\n type=\"link\"\n />\n </div>\n ) : null}\n {newVersion ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n\n {filtersModal ? (\n <BaseModal\n {...filtersModal}\n headerIcon={{\n name: filtersModal.headerIcon.name,\n backgroundColor: convert(`color(${defaultColor} lightness(92%))`),\n color: defaultColor\n }}\n footer={{\n cancelButton: filtersModal.footer.cancelButton,\n confirmButton: {\n ...filtersModal.footer.confirmButton,\n color: defaultColor\n }\n }}\n >\n {filtersModal.filterPanelProps ? (\n <MultiFilterPanel {...filtersModal.filterPanelProps} />\n ) : null}\n </BaseModal>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n newVersion: PropTypes.bool,\n searchMessage: PropTypes.string,\n noresultsfound: PropTypes.string,\n noresultsfoundDescription: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n quickFilters: PropTypes.shape(QuickFilters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(ButtonLink.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n filtersModal: PropTypes.shape(BaseModal.propTypes),\n tabs: PropTypes.shape(Tabs.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n tabs: PropTypes.shape(Tabs.propTypes),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAAGC,MAAM,EAAEC,WAAW,QAAO,OAAO;AAChD,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,UAAU,MAAM,2BAA2B;AAClD,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,GAAG,MAAM,mBAAmB;AACnC,SAAQC,aAAa,QAAO,wBAAwB;AACpD,OAAOC,oBAAoB,MAAM,0CAA0C;AAC3E,SAAQC,MAAM,QAAO,2BAA2B;AAChD,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EACrC,MAAM;IACJC,KAAK;IACLC,aAAa;IACbC,YAAY;IACZC,KAAK;IACLC,KAAK;IACLC,cAAc;IACdC,yBAAyB;IACzBC,YAAY;IACZC,eAAe;IACfC,iBAAiB;IACjBC,mBAAmB;IACnBC,oBAAoB;IACpBC,aAAa;IACbC,cAAc;I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AAS,CAAC;EAClD1E,YAAY,EAAExC,SAAS,CAACwH,KAAK,CAACtG,SAAS,CAACgG,SAAS,CAAC;EAClDvE,IAAI,EAAE3C,SAAS,CAACwH,KAAK,CAACpG,IAAI,CAAC8F,SAAS,CAAC;EACrC3E,QAAQ,EAAEvC,SAAS,CAAC0H,QAAQ,CAC1B1H,SAAS,CAACwH,KAAK,CAAC;IACd/F,KAAK,EAAEzB,SAAS,CAACuH,MAAM;IACvB3F,KAAK,EAAE5B,SAAS,CAAC2H,OAAO,CACtB3H,SAAS,CAAC4H,SAAS,CAAC,CAClB5H,SAAS,CAACwH,KAAK,CAAC1G,aAAa,CAAC,EAC9Bd,SAAS,CAACwH,KAAK,CAAC9G,gBAAgB,CAACwG,SAAS,CAAC,EAC3ClH,SAAS,CAACwH,KAAK,CAAC/G,iBAAiB,CAACyG,SAAS,CAAC,EAC5ClH,SAAS,CAACwH,KAAK,CAAC7G,YAAY,CAACuG,SAAS,CAAC,EACvClH,SAAS,CAACwH,KAAK,CAACzG,oBAAoB,CAACmG,SAAS,CAAC,CAChD,CACH,CAAC;IACDvE,IAAI,EAAE3C,SAAS,CAACwH,KAAK,CAACpG,IAAI,CAAC8F,SAAS,CAAC;IACrCW,QAAQ,EAAE7H,SAAS,CAACuH,MAAM;IAC1BO,UAAU,EAAE9H,SAAS,CAAC+H,IAAI;IAC1BC,KAAK,EAAEhI,SAAS,CAACyH,MAAM;IACvB5F,KAAK,EAAE7B,SAAS,CAACyH,MAAM;IACvB,mBAAmB,EAAEzH,SAAS,CAACwH,KAAK,CAAC;MACnCS,uBAAuB,EAAEjI,SAAS,CAACuH,MAAM;MACzCW,wBAAwB,EAAElI,SAAS,CAACuH;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAED,eAAejG,UAAU","ignoreList":[]}
@@ -7,11 +7,11 @@
7
7
  @value black from colors;
8
8
  @value white from colors;
9
9
  @value cm_grey_500 from colors;
10
+ @value cm_grey_700 from colors;
10
11
 
11
12
  .cardsWrapper {
12
13
  display: block;
13
14
  width: 100%;
14
- max-width: 1100px;
15
15
  margin: 0px auto;
16
16
  height: auto;
17
17
  box-sizing: border-box;
@@ -19,6 +19,37 @@
19
19
  background: white;
20
20
  }
21
21
 
22
+ .searchMessageWrapper {
23
+ display: flex;
24
+ flex-direction: row;
25
+ flex-wrap: wrap;
26
+ max-width: 1100px;
27
+ width: 100%;
28
+ margin: 60px auto 0px;
29
+ position: relative;
30
+ align-items: baseline;
31
+ }
32
+
33
+ .searchMessage {
34
+ font-family: "Gilroy";
35
+ font-size: 18px;
36
+ font-weight: 400;
37
+ color: cm_grey_500;
38
+ padding: 0 10px;
39
+ display: block;
40
+ line-height: 28px;
41
+ user-select: none;
42
+ }
43
+
44
+ .clear {
45
+ min-width: auto;
46
+ line-height: 28px;
47
+ }
48
+
49
+ .center {
50
+ margin: 32px auto 0px;
51
+ }
52
+
22
53
  .noresults {
23
54
  font-family: "Gilroy";
24
55
  border-top: solid 1px xtraLightGrey;
@@ -42,14 +73,31 @@
42
73
  }
43
74
 
44
75
  .noresults > .clear {
45
- border-radius: 45px;
46
76
  height: 40px;
47
77
  line-height: 40px;
48
78
  width: auto;
49
79
  }
50
80
 
51
- .noresultstxt {
52
- color: black;
81
+ .noresultsTitle {
82
+ font-family: Gilroy;
83
+ font-weight: 700;
84
+ font-style: Bold;
85
+ font-size: 20px;
86
+ line-height: 28px;
87
+ letter-spacing: 0px;
88
+ text-align: center;
89
+ vertical-align: bottom;
90
+ color: cm_grey_700;
91
+ }
92
+
93
+ .noresultsDescription {
94
+ font-family: Gilroy;
95
+ font-weight: 500;
96
+ font-size: 14px;
97
+ line-height: 20px;
98
+ text-align: center;
99
+ vertical-align: bottom;
100
+ color: cm_grey_500;
53
101
  }
54
102
 
55
103
  .popinWithCards {
@@ -323,6 +323,7 @@ declare namespace ExternalCourse {
323
323
  }>>;
324
324
  image: PropTypes.Requireable<string>;
325
325
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
326
+ value: PropTypes.Requireable<string>;
326
327
  title: PropTypes.Requireable<string>;
327
328
  name: PropTypes.Requireable<string>;
328
329
  checked: PropTypes.Requireable<boolean>;
@@ -711,6 +712,7 @@ declare namespace ExternalCourse {
711
712
  searchIconAriaLabel: PropTypes.Requireable<string>;
712
713
  }>>;
713
714
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
715
+ value: PropTypes.Requireable<string>;
714
716
  title: PropTypes.Requireable<string>;
715
717
  name: PropTypes.Requireable<string>;
716
718
  checked: PropTypes.Requireable<boolean>;
@@ -109,6 +109,15 @@ declare namespace MyLearning {
109
109
  progression: PropTypes.Requireable<number>;
110
110
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
111
111
  }> | null | undefined> | null | undefined)[]>;
112
+ tabs: PropTypes.Requireable<PropTypes.InferProps<{
113
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
114
+ title: PropTypes.Requireable<string>;
115
+ count: PropTypes.Requireable<number>;
116
+ 'aria-label': PropTypes.Requireable<string>;
117
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
118
+ isActive: PropTypes.Requireable<boolean>;
119
+ }> | null | undefined)[]>;
120
+ }>>;
112
121
  customStyle: PropTypes.Requireable<{
113
122
  [x: string]: string | null | undefined;
114
123
  }>;
@@ -96,6 +96,15 @@ declare namespace TeamsDashboard {
96
96
  progression: PropTypes.Requireable<number>;
97
97
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
98
98
  }> | null | undefined> | null | undefined)[]>;
99
+ tabs: PropTypes.Requireable<PropTypes.InferProps<{
100
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
101
+ title: PropTypes.Requireable<string>;
102
+ count: PropTypes.Requireable<number>;
103
+ 'aria-label': PropTypes.Requireable<string>;
104
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
105
+ isActive: PropTypes.Requireable<boolean>;
106
+ }> | null | undefined)[]>;
107
+ }>>;
99
108
  customStyle: PropTypes.Requireable<{
100
109
  [x: string]: string | null | undefined;
101
110
  }>;
@@ -10,7 +10,7 @@ export const EXTERNAL_CONTENT_ICONS = {
10
10
  },
11
11
  article: {
12
12
  icon: ArticleIcon,
13
- color: COLORS.cm_bleu_article
13
+ color: COLORS.cm_blue_article
14
14
  },
15
15
  video: {
16
16
  icon: VideoIcon,
@@ -28,7 +28,7 @@ export const ICONS_TYPES = {
28
28
  },
29
29
  article: {
30
30
  iconName: 'file-lines',
31
- iconColor: COLORS.cm_bleu_article
31
+ iconColor: COLORS.cm_blue_article
32
32
  },
33
33
  video: {
34
34
  iconName: 'circle-play',
@@ -1 +1 @@
1
- {"version":3,"file":"external-content.js","names":["includes","NovaCompositionCoorpacademyScorm","ScormIcon","NovaCompositionCoorpacademyArticle","ArticleIcon","NovaCompositionCoorpacademyVideo","VideoIcon","NovaCompositionCoorpacademyMicrophone","PodcastIcon","COLORS","isExternalContent","type","EXTERNAL_COURSE_TYPES","EXTERNAL_CONTENT_ICONS","scorm","icon","color","cm_yellow_scorm","article","cm_bleu_article","video","cm_red_video","podcast","cm_violet_podcast","ICONS_TYPES","iconName","iconColor","chapter","neutral_500"],"sources":["../../src/util/external-content.js"],"sourcesContent":["import includes from 'lodash/fp/includes';\nimport {\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon\n} from '@coorpacademy/nova-icons';\nimport {COLORS} from '../variables/colors';\n\nexport const isExternalContent = type => includes(type, ['scorm', 'video', 'article', 'podcast']);\n\nexport const EXTERNAL_COURSE_TYPES = ['podcast', 'video', 'interactive', 'document'];\n\nexport const EXTERNAL_CONTENT_ICONS = {\n scorm: {icon: ScormIcon, color: COLORS.cm_yellow_scorm},\n article: {icon: ArticleIcon, color: COLORS.cm_bleu_article},\n video: {icon: VideoIcon, color: COLORS.cm_red_video},\n podcast: {icon: PodcastIcon, color: COLORS.cm_violet_podcast}\n};\n\nexport const ICONS_TYPES = {\n scorm: {iconName: 'rectangle-history', iconColor: COLORS.cm_yellow_scorm},\n article: {iconName: 'file-lines', iconColor: COLORS.cm_bleu_article},\n video: {iconName: 'circle-play', iconColor: COLORS.cm_red_video},\n podcast: {iconName: 'microphone-lines', iconColor: COLORS.cm_violet_podcast},\n chapter: {iconName: 'stopwatch', iconColor: COLORS.neutral_500}\n};\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oBAAoB;AACzC,SACEC,gCAAgC,IAAIC,SAAS,EAC7CC,kCAAkC,IAAIC,WAAW,EACjDC,gCAAgC,IAAIC,SAAS,EAC7CC,qCAAqC,IAAIC,WAAW,QAC/C,0BAA0B;AACjC,SAAQC,MAAM,QAAO,qBAAqB;AAE1C,OAAO,MAAMC,iBAAiB,GAAGC,IAAI,IAAIX,QAAQ,CAACW,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAEjG,OAAO,MAAMC,qBAAqB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,CAAC;AAEpF,OAAO,MAAMC,sBAAsB,GAAG;EACpCC,KAAK,EAAE;IAACC,IAAI,EAAEb,SAAS;IAAEc,KAAK,EAAEP,MAAM,CAACQ;EAAe,CAAC;EACvDC,OAAO,EAAE;IAACH,IAAI,EAAEX,WAAW;IAAEY,KAAK,EAAEP,MAAM,CAACU;EAAe,CAAC;EAC3DC,KAAK,EAAE;IAACL,IAAI,EAAET,SAAS;IAAEU,KAAK,EAAEP,MAAM,CAACY;EAAY,CAAC;EACpDC,OAAO,EAAE;IAACP,IAAI,EAAEP,WAAW;IAAEQ,KAAK,EAAEP,MAAM,CAACc;EAAiB;AAC9D,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBV,KAAK,EAAE;IAACW,QAAQ,EAAE,mBAAmB;IAAEC,SAAS,EAAEjB,MAAM,CAACQ;EAAe,CAAC;EACzEC,OAAO,EAAE;IAACO,QAAQ,EAAE,YAAY;IAAEC,SAAS,EAAEjB,MAAM,CAACU;EAAe,CAAC;EACpEC,KAAK,EAAE;IAACK,QAAQ,EAAE,aAAa;IAAEC,SAAS,EAAEjB,MAAM,CAACY;EAAY,CAAC;EAChEC,OAAO,EAAE;IAACG,QAAQ,EAAE,kBAAkB;IAAEC,SAAS,EAAEjB,MAAM,CAACc;EAAiB,CAAC;EAC5EI,OAAO,EAAE;IAACF,QAAQ,EAAE,WAAW;IAAEC,SAAS,EAAEjB,MAAM,CAACmB;EAAW;AAChE,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"external-content.js","names":["includes","NovaCompositionCoorpacademyScorm","ScormIcon","NovaCompositionCoorpacademyArticle","ArticleIcon","NovaCompositionCoorpacademyVideo","VideoIcon","NovaCompositionCoorpacademyMicrophone","PodcastIcon","COLORS","isExternalContent","type","EXTERNAL_COURSE_TYPES","EXTERNAL_CONTENT_ICONS","scorm","icon","color","cm_yellow_scorm","article","cm_blue_article","video","cm_red_video","podcast","cm_violet_podcast","ICONS_TYPES","iconName","iconColor","chapter","neutral_500"],"sources":["../../src/util/external-content.js"],"sourcesContent":["import includes from 'lodash/fp/includes';\nimport {\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon\n} from '@coorpacademy/nova-icons';\nimport {COLORS} from '../variables/colors';\n\nexport const isExternalContent = type => includes(type, ['scorm', 'video', 'article', 'podcast']);\n\nexport const EXTERNAL_COURSE_TYPES = ['podcast', 'video', 'interactive', 'document'];\n\nexport const EXTERNAL_CONTENT_ICONS = {\n scorm: {icon: ScormIcon, color: COLORS.cm_yellow_scorm},\n article: {icon: ArticleIcon, color: COLORS.cm_blue_article},\n video: {icon: VideoIcon, color: COLORS.cm_red_video},\n podcast: {icon: PodcastIcon, color: COLORS.cm_violet_podcast}\n};\n\nexport const ICONS_TYPES = {\n scorm: {iconName: 'rectangle-history', iconColor: COLORS.cm_yellow_scorm},\n article: {iconName: 'file-lines', iconColor: COLORS.cm_blue_article},\n video: {iconName: 'circle-play', iconColor: COLORS.cm_red_video},\n podcast: {iconName: 'microphone-lines', iconColor: COLORS.cm_violet_podcast},\n chapter: {iconName: 'stopwatch', iconColor: COLORS.neutral_500}\n};\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oBAAoB;AACzC,SACEC,gCAAgC,IAAIC,SAAS,EAC7CC,kCAAkC,IAAIC,WAAW,EACjDC,gCAAgC,IAAIC,SAAS,EAC7CC,qCAAqC,IAAIC,WAAW,QAC/C,0BAA0B;AACjC,SAAQC,MAAM,QAAO,qBAAqB;AAE1C,OAAO,MAAMC,iBAAiB,GAAGC,IAAI,IAAIX,QAAQ,CAACW,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAEjG,OAAO,MAAMC,qBAAqB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,CAAC;AAEpF,OAAO,MAAMC,sBAAsB,GAAG;EACpCC,KAAK,EAAE;IAACC,IAAI,EAAEb,SAAS;IAAEc,KAAK,EAAEP,MAAM,CAACQ;EAAe,CAAC;EACvDC,OAAO,EAAE;IAACH,IAAI,EAAEX,WAAW;IAAEY,KAAK,EAAEP,MAAM,CAACU;EAAe,CAAC;EAC3DC,KAAK,EAAE;IAACL,IAAI,EAAET,SAAS;IAAEU,KAAK,EAAEP,MAAM,CAACY;EAAY,CAAC;EACpDC,OAAO,EAAE;IAACP,IAAI,EAAEP,WAAW;IAAEQ,KAAK,EAAEP,MAAM,CAACc;EAAiB;AAC9D,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBV,KAAK,EAAE;IAACW,QAAQ,EAAE,mBAAmB;IAAEC,SAAS,EAAEjB,MAAM,CAACQ;EAAe,CAAC;EACzEC,OAAO,EAAE;IAACO,QAAQ,EAAE,YAAY;IAAEC,SAAS,EAAEjB,MAAM,CAACU;EAAe,CAAC;EACpEC,KAAK,EAAE;IAACK,QAAQ,EAAE,aAAa;IAAEC,SAAS,EAAEjB,MAAM,CAACY;EAAY,CAAC;EAChEC,OAAO,EAAE;IAACG,QAAQ,EAAE,kBAAkB;IAAEC,SAAS,EAAEjB,MAAM,CAACc;EAAiB,CAAC;EAC5EI,OAAO,EAAE;IAACF,QAAQ,EAAE,WAAW;IAAEC,SAAS,EAAEjB,MAAM,CAACmB;EAAW;AAChE,CAAC","ignoreList":[]}
@@ -8,7 +8,7 @@
8
8
  @value medium: #90A4AE;
9
9
  @value dark: #546E7A;
10
10
  @value grey: #607D8B;
11
- @value lightMediumGray: #CFD8DC;
11
+ @value lightMediumGrey: #CFD8DC;
12
12
  @value lightGrey: #f8f8f8;
13
13
  @value darkGrey: rgba(0, 176, 255, 0.15);
14
14
  @value orangeAdd: #FF7043;
@@ -18,7 +18,7 @@
18
18
  @value lightGreen: #66BB6A;
19
19
  @value negative: #F73F52;
20
20
  @value battle: #FFE100;
21
- @value white: #fff;
21
+ @value white: #FFFFFF;
22
22
  @value black: #14171A;
23
23
  @value lightBlack: #263238;
24
24
  @value lightDark: rgba(0, 0, 0, 0.67);
@@ -30,12 +30,13 @@
30
30
  @value cm_blue_50: #f1f6fe;
31
31
  @value cm_blue_200: #74A5F6;
32
32
  @value cm_blue_600: #0051d6;
33
- @value cm_blue_700 #0042AD;
33
+ @value cm_blue_700: #0042AD;
34
34
  @value cm_blue_900: #06265B;
35
- @value cm_bleu_article: #365FCD;
35
+ @value cm_blue_article: #365FCD;
36
36
  @value cm_grey_50: #FAFAFA;
37
37
  @value cm_grey_75: #F4F4F5;
38
38
  @value cm_grey_100: #EAEAEB;
39
+ @value surface_input_neutral_strong: #EAEAEB;
39
40
  @value cm_grey_150: #E1E1E3;
40
41
  @value cm_grey_200: #d7d7da;
41
42
  @value cm_grey_300: #C5C5C9;
@@ -73,7 +74,6 @@
73
74
  @value cm_red_video: #E8335E;
74
75
  @value cm_violet_podcast: #432ba7;
75
76
  @value cm_warning_50: #FFFAE5;
76
- @value box_shadow_medium_dark: rgba(0, 0, 0, 0.15);
77
77
  @value box_shadow_light_dark: rgba(0, 0, 0, 0.12);
78
78
  @value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
79
79
  @value box_shadow_orange_700: rgba(255, 84, 31, 0.15);
@@ -81,7 +81,7 @@
81
81
 
82
82
  @value light_blue: #ADC9F5;
83
83
  @value negative_100: #FCDADA;
84
- @value go1_backgound: #144953;
84
+ @value go1_background: #144953;
85
85
  @value go1_primary: #D5FD42;
86
86
  @value go1_primary_hover: #BFE33B;
87
87
 
@@ -1,19 +1,20 @@
1
1
  export declare const COLORS: {
2
2
  readonly cm_grey_100: "#EAEAEB";
3
- readonly negative: "#ed3436";
3
+ readonly negative: "#F73F52";
4
+ readonly cm_negative_100: "#ed3436;";
4
5
  readonly cm_negative_200: "#B81400";
5
6
  readonly cm_positive_200: "#05944F";
6
7
  readonly white: "#FFFFFF";
7
8
  readonly cm_blue_50: "#f1f6fe";
8
9
  readonly cm_grey_400: "#9999A8";
10
+ readonly cm_grey_500: "#515161";
11
+ readonly cm_grey_700: "#1D1D2B";
9
12
  readonly cm_grey_800: "#171721";
10
13
  readonly cm_grey_150: "#E1E1E3";
11
14
  readonly cm_primary_blue: "#0061FF";
12
15
  readonly cm_blue_700: "#0042AD";
13
16
  readonly primary_100: "#D6E6FF";
14
17
  readonly primary_600: "#0051D6";
15
- readonly cm_grey_500: "#9999A8";
16
- readonly cm_grey_700: "#1D1D2B";
17
18
  readonly cm_yellow_400: "#bd7e00";
18
19
  readonly brand: "#00B0FF";
19
20
  readonly yellow_700: "#A38300";
@@ -28,7 +29,7 @@ export declare const COLORS: {
28
29
  readonly neutral_500: "#515161";
29
30
  readonly neutral_700: "#1D1D2B";
30
31
  readonly cm_red_video: "#E8335E";
31
- readonly cm_bleu_article: "#365FCD";
32
+ readonly cm_blue_article: "#365FCD";
32
33
  readonly cm_yellow_scorm: "#FFB800";
33
34
  readonly negative_700: "#B81400";
34
35
  readonly cm_orange_800: "#A32700";
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/variables/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CT,CAAC;AAEX,oBAAY,MAAM,GAAG,OAAO,MAAM,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/variables/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CT,CAAC;AAEX,oBAAY,MAAM,GAAG,OAAO,MAAM,CAAC"}
@@ -1,19 +1,20 @@
1
1
  export const COLORS = {
2
2
  cm_grey_100: '#EAEAEB',
3
- negative: '#ed3436',
3
+ negative: '#F73F52',
4
+ cm_negative_100: '#ed3436;',
4
5
  cm_negative_200: '#B81400',
5
6
  cm_positive_200: '#05944F',
6
7
  white: '#FFFFFF',
7
8
  cm_blue_50: '#f1f6fe',
8
9
  cm_grey_400: '#9999A8',
10
+ cm_grey_500: '#515161',
11
+ cm_grey_700: '#1D1D2B',
9
12
  cm_grey_800: '#171721',
10
13
  cm_grey_150: '#E1E1E3',
11
14
  cm_primary_blue: '#0061FF',
12
15
  cm_blue_700: '#0042AD',
13
16
  primary_100: '#D6E6FF',
14
17
  primary_600: '#0051D6',
15
- cm_grey_500: '#9999A8',
16
- cm_grey_700: '#1D1D2B',
17
18
  cm_yellow_400: '#bd7e00',
18
19
  brand: '#00B0FF',
19
20
  yellow_700: '#A38300',
@@ -28,7 +29,7 @@ export const COLORS = {
28
29
  neutral_500: '#515161',
29
30
  neutral_700: '#1D1D2B',
30
31
  cm_red_video: '#E8335E',
31
- cm_bleu_article: '#365FCD',
32
+ cm_blue_article: '#365FCD',
32
33
  cm_yellow_scorm: '#FFB800',
33
34
  negative_700: '#B81400',
34
35
  cm_orange_800: '#A32700',
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","names":["COLORS","cm_grey_100","negative","cm_negative_200","cm_positive_200","white","cm_blue_50","cm_grey_400","cm_grey_800","cm_grey_150","cm_primary_blue","cm_blue_700","primary_100","primary_600","cm_grey_500","cm_grey_700","cm_yellow_400","brand","yellow_700","yellow_100","red_700","red_100","cm_violet_podcast","cm_turquoise_strong","yellow_500","neutral_75","neutral_400","neutral_500","neutral_700","cm_red_video","cm_bleu_article","cm_yellow_scorm","negative_700","cm_orange_800","purple_700","purple_100","turquoise_100","pink_100","orange_100","cm_positive_500","purple_500","cm_grey_200"],"sources":["../../src/variables/colors.ts"],"sourcesContent":["export const COLORS = {\n cm_grey_100: '#EAEAEB',\n negative: '#ed3436',\n cm_negative_200: '#B81400',\n cm_positive_200: '#05944F',\n white: '#FFFFFF',\n cm_blue_50: '#f1f6fe',\n cm_grey_400: '#9999A8',\n cm_grey_800: '#171721',\n cm_grey_150: '#E1E1E3',\n cm_primary_blue: '#0061FF',\n cm_blue_700: '#0042AD',\n primary_100: '#D6E6FF',\n primary_600: '#0051D6',\n cm_grey_500: '#9999A8',\n cm_grey_700: '#1D1D2B',\n cm_yellow_400: '#bd7e00',\n brand: '#00B0FF',\n yellow_700: '#A38300',\n yellow_100: '#FFF9D1',\n red_700: '#A30000',\n red_100: '#FFD1D1',\n cm_violet_podcast: '#432ba7',\n cm_turquoise_strong: '#1B7B88',\n yellow_500: '#FFCE0A',\n neutral_75: ' #F4F4F5',\n neutral_400: ' #9999A8',\n neutral_500: '#515161',\n neutral_700: '#1D1D2B',\n cm_red_video: '#E8335E',\n cm_bleu_article: '#365FCD',\n cm_yellow_scorm: '#FFB800',\n negative_700: '#B81400',\n cm_orange_800: '#A32700',\n purple_700: '#2B00A3',\n purple_100: '#DDD1FF',\n turquoise_100: '#D9F4F7',\n pink_100: '#FAD6DE',\n orange_100: '#FFDCD1',\n cm_positive_500: '#35CC7F',\n purple_500: '#4B0AFF',\n cm_grey_200: '#D7D7DA'\n} as const;\n\nexport type Colors = typeof COLORS;\n"],"mappings":"AAAA,OAAO,MAAMA,MAAM,GAAG;EACpBC,WAAW,EAAE,SAAS;EACtBC,QAAQ,EAAE,SAAS;EACnBC,eAAe,EAAE,SAAS;EAC1BC,eAAe,EAAE,SAAS;EAC1BC,KAAK,EAAE,SAAS;EAChBC,UAAU,EAAE,SAAS;EACrBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,eAAe,EAAE,SAAS;EAC1BC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,aAAa,EAAE,SAAS;EACxBC,KAAK,EAAE,SAAS;EAChBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,SAAS;EACrBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,iBAAiB,EAAE,SAAS;EAC5BC,mBAAmB,EAAE,SAAS;EAC9BC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,UAAU;EACtBC,WAAW,EAAE,UAAU;EACvBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,YAAY,EAAE,SAAS;EACvBC,eAAe,EAAE,SAAS;EAC1BC,eAAe,EAAE,SAAS;EAC1BC,YAAY,EAAE,SAAS;EACvBC,aAAa,EAAE,SAAS;EACxBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,SAAS;EACrBC,aAAa,EAAE,SAAS;EACxBC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,SAAS;EACrBC,eAAe,EAAE,SAAS;EAC1BC,UAAU,EAAE,SAAS;EACrBC,WAAW,EAAE;AACf,CAAU","ignoreList":[]}
1
+ {"version":3,"file":"colors.js","names":["COLORS","cm_grey_100","negative","cm_negative_100","cm_negative_200","cm_positive_200","white","cm_blue_50","cm_grey_400","cm_grey_500","cm_grey_700","cm_grey_800","cm_grey_150","cm_primary_blue","cm_blue_700","primary_100","primary_600","cm_yellow_400","brand","yellow_700","yellow_100","red_700","red_100","cm_violet_podcast","cm_turquoise_strong","yellow_500","neutral_75","neutral_400","neutral_500","neutral_700","cm_red_video","cm_blue_article","cm_yellow_scorm","negative_700","cm_orange_800","purple_700","purple_100","turquoise_100","pink_100","orange_100","cm_positive_500","purple_500","cm_grey_200"],"sources":["../../src/variables/colors.ts"],"sourcesContent":["export const COLORS = {\n cm_grey_100: '#EAEAEB',\n negative: '#F73F52',\n cm_negative_100: '#ed3436;',\n cm_negative_200: '#B81400',\n cm_positive_200: '#05944F',\n white: '#FFFFFF',\n cm_blue_50: '#f1f6fe',\n cm_grey_400: '#9999A8',\n cm_grey_500: '#515161',\n cm_grey_700: '#1D1D2B',\n cm_grey_800: '#171721',\n cm_grey_150: '#E1E1E3',\n cm_primary_blue: '#0061FF',\n cm_blue_700: '#0042AD',\n primary_100: '#D6E6FF',\n primary_600: '#0051D6',\n cm_yellow_400: '#bd7e00',\n brand: '#00B0FF',\n yellow_700: '#A38300',\n yellow_100: '#FFF9D1',\n red_700: '#A30000',\n red_100: '#FFD1D1',\n cm_violet_podcast: '#432ba7',\n cm_turquoise_strong: '#1B7B88',\n yellow_500: '#FFCE0A',\n neutral_75: ' #F4F4F5',\n neutral_400: ' #9999A8',\n neutral_500: '#515161',\n neutral_700: '#1D1D2B',\n cm_red_video: '#E8335E',\n cm_blue_article: '#365FCD',\n cm_yellow_scorm: '#FFB800',\n negative_700: '#B81400',\n cm_orange_800: '#A32700',\n purple_700: '#2B00A3',\n purple_100: '#DDD1FF',\n turquoise_100: '#D9F4F7',\n pink_100: '#FAD6DE',\n orange_100: '#FFDCD1',\n cm_positive_500: '#35CC7F',\n purple_500: '#4B0AFF',\n cm_grey_200: '#D7D7DA'\n} as const;\n\nexport type Colors = typeof COLORS;\n"],"mappings":"AAAA,OAAO,MAAMA,MAAM,GAAG;EACpBC,WAAW,EAAE,SAAS;EACtBC,QAAQ,EAAE,SAAS;EACnBC,eAAe,EAAE,UAAU;EAC3BC,eAAe,EAAE,SAAS;EAC1BC,eAAe,EAAE,SAAS;EAC1BC,KAAK,EAAE,SAAS;EAChBC,UAAU,EAAE,SAAS;EACrBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,eAAe,EAAE,SAAS;EAC1BC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,aAAa,EAAE,SAAS;EACxBC,KAAK,EAAE,SAAS;EAChBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,SAAS;EACrBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,iBAAiB,EAAE,SAAS;EAC5BC,mBAAmB,EAAE,SAAS;EAC9BC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,UAAU;EACtBC,WAAW,EAAE,UAAU;EACvBC,WAAW,EAAE,SAAS;EACtBC,WAAW,EAAE,SAAS;EACtBC,YAAY,EAAE,SAAS;EACvBC,eAAe,EAAE,SAAS;EAC1BC,eAAe,EAAE,SAAS;EAC1BC,YAAY,EAAE,SAAS;EACvBC,aAAa,EAAE,SAAS;EACxBC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,SAAS;EACrBC,aAAa,EAAE,SAAS;EACxBC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,SAAS;EACrBC,eAAe,EAAE,SAAS;EAC1BC,UAAU,EAAE,SAAS;EACrBC,WAAW,EAAE;AACf,CAAU","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  @value xtraLightGrey from colors;
4
4
  @value light from colors;
5
5
  @value white from colors;
6
- @value lightMediumGray from colors;
6
+ @value lightMediumGrey from colors;
7
7
 
8
8
  .button {
9
9
  composes: hoverFill from './hover-fill.css';
@@ -41,7 +41,7 @@
41
41
  }
42
42
 
43
43
  .disabledAnchor {
44
- background-color: lightMediumGray;
44
+ background-color: lightMediumGrey;
45
45
  min-width: 200px;
46
46
  text-transform: inherit;
47
47
  border-radius: 2px;
@@ -2,7 +2,7 @@ export declare const DEFAULT_ICON_STYLE: {
2
2
  position: "left";
3
3
  faIcon: {
4
4
  size: number;
5
- color: "#9999A8";
5
+ color: "#515161";
6
6
  customStyle: {
7
7
  padding: number;
8
8
  };