@coorpacademy/components 11.14.1-alpha.3.27 → 11.14.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 (231) hide show
  1. package/es/atom/button/index.d.ts.map +1 -1
  2. package/es/atom/button/index.js +18 -13
  3. package/es/atom/button/index.js.map +1 -1
  4. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  5. package/es/molecule/cm-popin/index.js +5 -4
  6. package/es/molecule/cm-popin/index.js.map +1 -1
  7. package/es/molecule/cm-popin/style.css +61 -40
  8. package/es/molecule/hero/index.d.ts +26 -30
  9. package/es/molecule/hero/index.d.ts.map +1 -1
  10. package/es/molecule/hero/index.js +13 -14
  11. package/es/molecule/hero/index.js.map +1 -1
  12. package/es/molecule/hero/style.css +0 -42
  13. package/es/molecule/quick-access-card/index.d.ts +0 -1
  14. package/es/molecule/quick-access-card/index.d.ts.map +1 -1
  15. package/es/molecule/quick-access-card/index.js +21 -77
  16. package/es/molecule/quick-access-card/index.js.map +1 -1
  17. package/es/molecule/quick-access-card/style.css +17 -28
  18. package/es/molecule/quick-access-cards-group/index.d.ts +0 -1
  19. package/es/organism/brand-dashboard/index.d.ts +0 -1
  20. package/es/template/back-office/brand-update/index.d.ts +0 -1
  21. package/es/template/external-course/index.d.ts +69 -21
  22. package/es/template/external-course/index.d.ts.map +1 -1
  23. package/es/template/external-course/index.js +73 -56
  24. package/es/template/external-course/index.js.map +1 -1
  25. package/es/template/external-course/style.css +1 -1
  26. package/es/util/button-icons.d.ts +0 -1
  27. package/es/util/button-icons.d.ts.map +1 -1
  28. package/es/util/button-icons.js +2 -3
  29. package/es/util/button-icons.js.map +1 -1
  30. package/es/variables/breakpoints.css +1 -1
  31. package/lib/atom/button/index.d.ts.map +1 -1
  32. package/lib/atom/button/index.js +18 -13
  33. package/lib/atom/button/index.js.map +1 -1
  34. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  35. package/lib/molecule/cm-popin/index.js +4 -3
  36. package/lib/molecule/cm-popin/index.js.map +1 -1
  37. package/lib/molecule/cm-popin/style.css +61 -40
  38. package/lib/molecule/hero/index.d.ts +26 -30
  39. package/lib/molecule/hero/index.d.ts.map +1 -1
  40. package/lib/molecule/hero/index.js +14 -15
  41. package/lib/molecule/hero/index.js.map +1 -1
  42. package/lib/molecule/hero/style.css +0 -42
  43. package/lib/molecule/quick-access-card/index.d.ts +0 -1
  44. package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
  45. package/lib/molecule/quick-access-card/index.js +20 -76
  46. package/lib/molecule/quick-access-card/index.js.map +1 -1
  47. package/lib/molecule/quick-access-card/style.css +17 -28
  48. package/lib/molecule/quick-access-cards-group/index.d.ts +0 -1
  49. package/lib/organism/brand-dashboard/index.d.ts +0 -1
  50. package/lib/template/back-office/brand-update/index.d.ts +0 -1
  51. package/lib/template/external-course/index.d.ts +69 -21
  52. package/lib/template/external-course/index.d.ts.map +1 -1
  53. package/lib/template/external-course/index.js +76 -54
  54. package/lib/template/external-course/index.js.map +1 -1
  55. package/lib/template/external-course/style.css +1 -1
  56. package/lib/util/button-icons.d.ts +0 -1
  57. package/lib/util/button-icons.d.ts.map +1 -1
  58. package/lib/util/button-icons.js +1 -2
  59. package/lib/util/button-icons.js.map +1 -1
  60. package/lib/variables/breakpoints.css +1 -1
  61. package/package.json +3 -3
  62. package/es/molecule/expandable-item/index.d.ts +0 -19
  63. package/es/molecule/expandable-item/index.d.ts.map +0 -1
  64. package/es/molecule/expandable-item/index.js +0 -44
  65. package/es/molecule/expandable-item/index.js.map +0 -1
  66. package/es/molecule/expandable-item/style.css +0 -135
  67. package/es/molecule/expandable-item/types.d.ts +0 -20
  68. package/es/molecule/expandable-item/types.d.ts.map +0 -1
  69. package/es/molecule/expandable-item/types.js +0 -11
  70. package/es/molecule/expandable-item/types.js.map +0 -1
  71. package/es/molecule/expandable-list/index.d.ts +0 -18
  72. package/es/molecule/expandable-list/index.d.ts.map +0 -1
  73. package/es/molecule/expandable-list/index.js +0 -22
  74. package/es/molecule/expandable-list/index.js.map +0 -1
  75. package/es/molecule/expandable-list/style.css +0 -20
  76. package/es/molecule/expandable-list/types.d.ts +0 -17
  77. package/es/molecule/expandable-list/types.d.ts.map +0 -1
  78. package/es/molecule/expandable-list/types.js +0 -6
  79. package/es/molecule/expandable-list/types.js.map +0 -1
  80. package/es/molecule/hero/types.d.ts +0 -22
  81. package/es/molecule/hero/types.d.ts.map +0 -1
  82. package/es/molecule/hero/types.js +0 -14
  83. package/es/molecule/hero/types.js.map +0 -1
  84. package/es/molecule/menu-links/index.d.ts +0 -22
  85. package/es/molecule/menu-links/index.d.ts.map +0 -1
  86. package/es/molecule/menu-links/index.js +0 -70
  87. package/es/molecule/menu-links/index.js.map +0 -1
  88. package/es/molecule/menu-links/style.css +0 -161
  89. package/es/molecule/menu-links/types.d.ts +0 -35
  90. package/es/molecule/menu-links/types.d.ts.map +0 -1
  91. package/es/molecule/menu-links/types.js +0 -17
  92. package/es/molecule/menu-links/types.js.map +0 -1
  93. package/es/molecule/privacy-policy-contact/index.d.ts +0 -14
  94. package/es/molecule/privacy-policy-contact/index.d.ts.map +0 -1
  95. package/es/molecule/privacy-policy-contact/index.js +0 -28
  96. package/es/molecule/privacy-policy-contact/index.js.map +0 -1
  97. package/es/molecule/privacy-policy-contact/style.css +0 -38
  98. package/es/molecule/privacy-policy-contact/types.d.ts +0 -10
  99. package/es/molecule/privacy-policy-contact/types.d.ts.map +0 -1
  100. package/es/molecule/privacy-policy-contact/types.js +0 -6
  101. package/es/molecule/privacy-policy-contact/types.js.map +0 -1
  102. package/es/molecule/privacy-policy-download/index.d.ts +0 -38
  103. package/es/molecule/privacy-policy-download/index.d.ts.map +0 -1
  104. package/es/molecule/privacy-policy-download/index.js +0 -27
  105. package/es/molecule/privacy-policy-download/index.js.map +0 -1
  106. package/es/molecule/privacy-policy-download/style.css +0 -65
  107. package/es/molecule/privacy-policy-download/types.d.ts +0 -50
  108. package/es/molecule/privacy-policy-download/types.d.ts.map +0 -1
  109. package/es/molecule/privacy-policy-download/types.js +0 -8
  110. package/es/molecule/privacy-policy-download/types.js.map +0 -1
  111. package/es/template/common/faq-article-page/index.d.ts +0 -27
  112. package/es/template/common/faq-article-page/index.d.ts.map +0 -1
  113. package/es/template/common/faq-article-page/index.js +0 -50
  114. package/es/template/common/faq-article-page/index.js.map +0 -1
  115. package/es/template/common/faq-article-page/style.css +0 -110
  116. package/es/template/common/faq-article-page/types.d.ts +0 -40
  117. package/es/template/common/faq-article-page/types.d.ts.map +0 -1
  118. package/es/template/common/faq-article-page/types.js +0 -20
  119. package/es/template/common/faq-article-page/types.js.map +0 -1
  120. package/es/template/common/faq-cards-page/index.d.ts +0 -34
  121. package/es/template/common/faq-cards-page/index.d.ts.map +0 -1
  122. package/es/template/common/faq-cards-page/index.js +0 -45
  123. package/es/template/common/faq-cards-page/index.js.map +0 -1
  124. package/es/template/common/faq-cards-page/style.css +0 -95
  125. package/es/template/common/faq-cards-page/types.d.ts +0 -44
  126. package/es/template/common/faq-cards-page/types.d.ts.map +0 -1
  127. package/es/template/common/faq-cards-page/types.js +0 -13
  128. package/es/template/common/faq-cards-page/types.js.map +0 -1
  129. package/es/template/common/faq-page/index.d.ts +0 -80
  130. package/es/template/common/faq-page/index.d.ts.map +0 -1
  131. package/es/template/common/faq-page/index.js +0 -44
  132. package/es/template/common/faq-page/index.js.map +0 -1
  133. package/es/template/common/faq-page/style.css +0 -104
  134. package/es/template/common/faq-page/types.d.ts +0 -86
  135. package/es/template/common/faq-page/types.d.ts.map +0 -1
  136. package/es/template/common/faq-page/types.js +0 -13
  137. package/es/template/common/faq-page/types.js.map +0 -1
  138. package/es/template/common/privacy-policy-page/index.d.ts +0 -80
  139. package/es/template/common/privacy-policy-page/index.d.ts.map +0 -1
  140. package/es/template/common/privacy-policy-page/index.js +0 -50
  141. package/es/template/common/privacy-policy-page/index.js.map +0 -1
  142. package/es/template/common/privacy-policy-page/style.css +0 -123
  143. package/es/template/common/privacy-policy-page/types.d.ts +0 -86
  144. package/es/template/common/privacy-policy-page/types.d.ts.map +0 -1
  145. package/es/template/common/privacy-policy-page/types.js +0 -13
  146. package/es/template/common/privacy-policy-page/types.js.map +0 -1
  147. package/lib/molecule/expandable-item/index.d.ts +0 -19
  148. package/lib/molecule/expandable-item/index.d.ts.map +0 -1
  149. package/lib/molecule/expandable-item/index.js +0 -58
  150. package/lib/molecule/expandable-item/index.js.map +0 -1
  151. package/lib/molecule/expandable-item/style.css +0 -135
  152. package/lib/molecule/expandable-item/types.d.ts +0 -20
  153. package/lib/molecule/expandable-item/types.d.ts.map +0 -1
  154. package/lib/molecule/expandable-item/types.js +0 -20
  155. package/lib/molecule/expandable-item/types.js.map +0 -1
  156. package/lib/molecule/expandable-list/index.d.ts +0 -18
  157. package/lib/molecule/expandable-list/index.d.ts.map +0 -1
  158. package/lib/molecule/expandable-list/index.js +0 -33
  159. package/lib/molecule/expandable-list/index.js.map +0 -1
  160. package/lib/molecule/expandable-list/style.css +0 -20
  161. package/lib/molecule/expandable-list/types.d.ts +0 -17
  162. package/lib/molecule/expandable-list/types.d.ts.map +0 -1
  163. package/lib/molecule/expandable-list/types.js +0 -16
  164. package/lib/molecule/expandable-list/types.js.map +0 -1
  165. package/lib/molecule/hero/types.d.ts +0 -22
  166. package/lib/molecule/hero/types.d.ts.map +0 -1
  167. package/lib/molecule/hero/types.js +0 -25
  168. package/lib/molecule/hero/types.js.map +0 -1
  169. package/lib/molecule/menu-links/index.d.ts +0 -22
  170. package/lib/molecule/menu-links/index.d.ts.map +0 -1
  171. package/lib/molecule/menu-links/index.js +0 -88
  172. package/lib/molecule/menu-links/index.js.map +0 -1
  173. package/lib/molecule/menu-links/style.css +0 -161
  174. package/lib/molecule/menu-links/types.d.ts +0 -35
  175. package/lib/molecule/menu-links/types.d.ts.map +0 -1
  176. package/lib/molecule/menu-links/types.js +0 -26
  177. package/lib/molecule/menu-links/types.js.map +0 -1
  178. package/lib/molecule/privacy-policy-contact/index.d.ts +0 -14
  179. package/lib/molecule/privacy-policy-contact/index.d.ts.map +0 -1
  180. package/lib/molecule/privacy-policy-contact/index.js +0 -41
  181. package/lib/molecule/privacy-policy-contact/index.js.map +0 -1
  182. package/lib/molecule/privacy-policy-contact/style.css +0 -38
  183. package/lib/molecule/privacy-policy-contact/types.d.ts +0 -10
  184. package/lib/molecule/privacy-policy-contact/types.d.ts.map +0 -1
  185. package/lib/molecule/privacy-policy-contact/types.js +0 -15
  186. package/lib/molecule/privacy-policy-contact/types.js.map +0 -1
  187. package/lib/molecule/privacy-policy-download/index.d.ts +0 -38
  188. package/lib/molecule/privacy-policy-download/index.d.ts.map +0 -1
  189. package/lib/molecule/privacy-policy-download/index.js +0 -38
  190. package/lib/molecule/privacy-policy-download/index.js.map +0 -1
  191. package/lib/molecule/privacy-policy-download/style.css +0 -65
  192. package/lib/molecule/privacy-policy-download/types.d.ts +0 -50
  193. package/lib/molecule/privacy-policy-download/types.d.ts.map +0 -1
  194. package/lib/molecule/privacy-policy-download/types.js +0 -18
  195. package/lib/molecule/privacy-policy-download/types.js.map +0 -1
  196. package/lib/template/common/faq-article-page/index.d.ts +0 -27
  197. package/lib/template/common/faq-article-page/index.d.ts.map +0 -1
  198. package/lib/template/common/faq-article-page/index.js +0 -63
  199. package/lib/template/common/faq-article-page/index.js.map +0 -1
  200. package/lib/template/common/faq-article-page/style.css +0 -110
  201. package/lib/template/common/faq-article-page/types.d.ts +0 -40
  202. package/lib/template/common/faq-article-page/types.d.ts.map +0 -1
  203. package/lib/template/common/faq-article-page/types.js +0 -30
  204. package/lib/template/common/faq-article-page/types.js.map +0 -1
  205. package/lib/template/common/faq-cards-page/index.d.ts +0 -34
  206. package/lib/template/common/faq-cards-page/index.d.ts.map +0 -1
  207. package/lib/template/common/faq-cards-page/index.js +0 -58
  208. package/lib/template/common/faq-cards-page/index.js.map +0 -1
  209. package/lib/template/common/faq-cards-page/style.css +0 -95
  210. package/lib/template/common/faq-cards-page/types.d.ts +0 -44
  211. package/lib/template/common/faq-cards-page/types.d.ts.map +0 -1
  212. package/lib/template/common/faq-cards-page/types.js +0 -25
  213. package/lib/template/common/faq-cards-page/types.js.map +0 -1
  214. package/lib/template/common/faq-page/index.d.ts +0 -80
  215. package/lib/template/common/faq-page/index.d.ts.map +0 -1
  216. package/lib/template/common/faq-page/index.js +0 -58
  217. package/lib/template/common/faq-page/index.js.map +0 -1
  218. package/lib/template/common/faq-page/style.css +0 -104
  219. package/lib/template/common/faq-page/types.d.ts +0 -86
  220. package/lib/template/common/faq-page/types.d.ts.map +0 -1
  221. package/lib/template/common/faq-page/types.js +0 -24
  222. package/lib/template/common/faq-page/types.js.map +0 -1
  223. package/lib/template/common/privacy-policy-page/index.d.ts +0 -80
  224. package/lib/template/common/privacy-policy-page/index.d.ts.map +0 -1
  225. package/lib/template/common/privacy-policy-page/index.js +0 -65
  226. package/lib/template/common/privacy-policy-page/index.js.map +0 -1
  227. package/lib/template/common/privacy-policy-page/style.css +0 -123
  228. package/lib/template/common/privacy-policy-page/types.d.ts +0 -86
  229. package/lib/template/common/privacy-policy-page/types.d.ts.map +0 -1
  230. package/lib/template/common/privacy-policy-page/types.js +0 -24
  231. package/lib/template/common/privacy-policy-page/types.js.map +0 -1
@@ -1,44 +0,0 @@
1
- import React from 'react';
2
- import classnames from 'classnames';
3
- import { NovaCompositionNavigationArrowDown as ArrowIcon } from '@coorpacademy/nova-icons';
4
- import { propTypes } from './types';
5
- import styles from './style.css';
6
- export const ICONS = {
7
- arrow: ArrowIcon
8
- };
9
-
10
- const ExpandableItem = ({
11
- icon,
12
- title,
13
- isExpended,
14
- isLink,
15
- content,
16
- onClick,
17
- image
18
- }) => {
19
- const Icon = ICONS[icon];
20
- return /*#__PURE__*/React.createElement("div", {
21
- className: isExpended ? styles.expendedContainer : styles.container,
22
- onClick: onClick
23
- }, /*#__PURE__*/React.createElement("div", {
24
- className: classnames(styles.header, isExpended ? styles.expendedHeader : null)
25
- }, /*#__PURE__*/React.createElement("h3", {
26
- className: styles.title
27
- }, title), Icon ? /*#__PURE__*/React.createElement(Icon, {
28
- className: classnames(styles.icon, isExpended ? styles.expendedIcon : null, isLink ? styles.linkIcon : null)
29
- }) : null), isExpended ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
30
- className: styles.content // eslint-disable-next-line react/no-danger
31
- ,
32
- dangerouslySetInnerHTML: {
33
- __html: content
34
- }
35
- }), image ? /*#__PURE__*/React.createElement("img", {
36
- className: styles.image,
37
- src: image,
38
- alt: ''
39
- }) : null) : null);
40
- };
41
-
42
- ExpandableItem.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
43
- export default ExpandableItem;
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["React","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","Icon","expendedContainer","container","header","expendedHeader","expendedIcon","linkIcon","__html"],"sources":["../../../src/molecule/expandable-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nexport const ICONS = {\n arrow: ArrowIcon\n};\n\nconst ExpandableItem = ({icon, title, isExpended, isLink, content, onClick, image}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container} onClick={onClick}>\n <div className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}>\n <h3 className={styles.title}>{title}</h3>\n {Icon ? (\n <Icon\n className={classnames(\n styles.icon,\n isExpended ? styles.expendedIcon : null,\n isLink ? styles.linkIcon : null\n )}\n />\n ) : null}\n </div>\n {isExpended ? (\n <div>\n <div\n className={styles.content} // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {image ? <img className={styles.image} src={image} alt={''} /> : null}\n </div>\n ) : null}\n </div>\n );\n};\n\nExpandableItem.propTypes = propTypes;\nexport default ExpandableItem;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,kCAAkC,IAAIC,SAA9C,QAA8D,0BAA9D;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;AAEA,OAAO,MAAMC,KAAK,GAAG;EACnBC,KAAK,EAAEJ;AADY,CAAd;;AAIP,MAAMK,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,UAAd;EAA0BC,MAA1B;EAAkCC,OAAlC;EAA2CC,OAA3C;EAAoDC;AAApD,CAAD,KAAuE;EAC5F,MAAMC,IAAI,GAAGV,KAAK,CAACG,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGN,MAAM,CAACY,iBAAV,GAA8BZ,MAAM,CAACa,SAA/D;IAA0E,OAAO,EAAEJ;EAAnF,gBACE;IAAK,SAAS,EAAEb,UAAU,CAACI,MAAM,CAACc,MAAR,EAAgBR,UAAU,GAAGN,MAAM,CAACe,cAAV,GAA2B,IAArD;EAA1B,gBACE;IAAI,SAAS,EAAEf,MAAM,CAACK;EAAtB,GAA8BA,KAA9B,CADF,EAEGM,IAAI,gBACH,oBAAC,IAAD;IACE,SAAS,EAAEf,UAAU,CACnBI,MAAM,CAACI,IADY,EAEnBE,UAAU,GAAGN,MAAM,CAACgB,YAAV,GAAyB,IAFhB,EAGnBT,MAAM,GAAGP,MAAM,CAACiB,QAAV,GAAqB,IAHR;EADvB,EADG,GAQD,IAVN,CADF,EAaGX,UAAU,gBACT,8CACE;IACE,SAAS,EAAEN,MAAM,CAACQ,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACU,MAAM,EAAEV;IAAT;EAF3B,EADF,EAKGE,KAAK,gBAAG;IAAK,SAAS,EAAEV,MAAM,CAACU,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IALnE,CADS,GAQP,IArBN,CADF;AAyBD,CA3BD;;AA6BAP,cAAc,CAACJ,SAAf,2CAA2BA,SAA3B;AACA,eAAeI,cAAf"}
@@ -1,135 +0,0 @@
1
- @value colors: "../../variables/colors.css";
2
- @value breakpoints: "../../variables/breakpoints.css";
3
- @value mobile from breakpoints;
4
- @value tablet from breakpoints;
5
- @value cm_primary_blue from colors;
6
- @value cm_grey_500 from colors;
7
- @value cm_grey_600 from colors;
8
- @value cm_grey_800 from colors;
9
- @value cm_grey_700 from colors;
10
- @value white from colors;
11
-
12
- .container {
13
- display: flex;
14
- flex-direction: column;
15
- background: white;
16
- gap: 16px;
17
- border-radius: 8px;
18
- width: 100%;
19
- display: flex;
20
- height: 72px;
21
- justify-content: center;
22
- }
23
-
24
- .header {
25
- display: flex;
26
- flex-direction: row;
27
- flex: none;
28
- order: 0;
29
- flex-grow: 0;
30
- justify-content: space-between;
31
- align-items: center;
32
- cursor: pointer;
33
- padding: 24px;
34
- gap: 16px;
35
- }
36
-
37
- .expendedContainer {
38
- display: flex;
39
- flex-direction: column;
40
- background: white;
41
- gap: 16px;
42
- border-radius: 2px;
43
- width: 100%;
44
- display: flex;
45
- justify-content: center;
46
- }
47
-
48
- .expendedHeader {
49
- padding: 24px 24px 0px 24px;
50
- }
51
-
52
- .title {
53
- font-family: Gilroy;
54
- color: cm_grey_700;
55
- margin: 0;
56
- font-weight: inherit;
57
- font-family: Gilroy;
58
- font-size: 18px;
59
- font-weight: 600;
60
- line-height: 24px;
61
- letter-spacing: 0px;
62
- text-align: left;
63
- }
64
-
65
- .icon {
66
- width: 16px;
67
- height: 16px;
68
- width: 14px;
69
- left: 5px;
70
- top: 9px;
71
- border-radius: 0px;
72
- color: cm_grey_500;
73
- flex-shrink: 0;
74
- min-width: 16px;
75
- flex-basis: 16px;
76
- }
77
-
78
- .expendedIcon {
79
- transform: rotateZ(180deg);
80
- }
81
-
82
- .linkIcon {
83
- transform: rotateZ(270deg);
84
- }
85
-
86
- .content {
87
- font-family: Gilroy;
88
- font-size: 20px;
89
- font-weight: 400;
90
- line-height: 28px;
91
- letter-spacing: 0px;
92
- text-align: left;
93
- padding: 0px 40px 32px 40px;
94
-
95
- }
96
-
97
- .image {
98
- width: 100%;
99
- }
100
-
101
- .content span{
102
- font-family: Gilroy;
103
- font-size: 20px;
104
- font-weight: 400;
105
- line-height: 28px;
106
- letter-spacing: 0px;
107
- text-align: left;
108
- color: cm_grey_600;
109
- }
110
-
111
- @media mobile {
112
- .container {
113
- display: flex;
114
- flex-direction: column;
115
- background: white;
116
- gap: 16px;
117
- border-radius: 2px;
118
- width: 100%;
119
- display: flex;
120
- justify-content: center;
121
- height: max-content;
122
- }
123
- .header {
124
- display: flex;
125
- flex-direction: row;
126
- flex: none;
127
- order: 0;
128
- flex-grow: 0;
129
- justify-content: space-between;
130
- align-items: center;
131
- cursor: pointer;
132
- padding: 12px 40px;
133
- height: max-content;
134
- }
135
- }
@@ -1,20 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export declare const propTypes: {
3
- title: PropTypes.Requireable<string>;
4
- icon: PropTypes.Requireable<string>;
5
- isExpended: PropTypes.Requireable<boolean>;
6
- isLink: PropTypes.Requireable<boolean>;
7
- content: PropTypes.Requireable<string>;
8
- image: PropTypes.Requireable<string>;
9
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
- };
11
- export declare type Props = {
12
- title: string;
13
- icon: 'arrow';
14
- isExpended: boolean;
15
- content: string;
16
- isLink?: boolean;
17
- image?: string;
18
- onClick: () => void;
19
- };
20
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;;CAQrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
@@ -1,11 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export const propTypes = {
3
- title: PropTypes.string,
4
- icon: PropTypes.oneOf(['arrow']),
5
- isExpended: PropTypes.bool,
6
- isLink: PropTypes.bool,
7
- content: PropTypes.string,
8
- image: PropTypes.string,
9
- onClick: PropTypes.func
10
- };
11
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","icon","oneOf","isExpended","bool","isLink","content","image","onClick","func"],"sources":["../../../src/molecule/expandable-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n icon: PropTypes.oneOf(['arrow']),\n isExpended: PropTypes.bool,\n isLink: PropTypes.bool,\n content: PropTypes.string,\n image: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n isLink?: boolean;\n image?: string;\n onClick: () => void;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,IAAI,EAAEJ,SAAS,CAACK,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEN,SAAS,CAACO,IAHC;EAIvBC,MAAM,EAAER,SAAS,CAACO,IAJK;EAKvBE,OAAO,EAAET,SAAS,CAACG,MALI;EAMvBO,KAAK,EAAEV,SAAS,CAACG,MANM;EAOvBQ,OAAO,EAAEX,SAAS,CAACY;AAPI,CAAlB"}
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import { Props } from './types';
3
- declare const ExpandableList: {
4
- ({ items }: Props): JSX.Element;
5
- propTypes: {
6
- items: import("prop-types").Requireable<(import("prop-types").InferProps<{
7
- title: import("prop-types").Requireable<string>;
8
- icon: import("prop-types").Requireable<string>;
9
- isExpended: import("prop-types").Requireable<boolean>;
10
- isLink: import("prop-types").Requireable<boolean>;
11
- content: import("prop-types").Requireable<string>;
12
- image: import("prop-types").Requireable<string>;
13
- onClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
- }> | null | undefined)[]>;
15
- };
16
- };
17
- export default ExpandableList;
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,cAAc;gBAAa,KAAK;;;;;;;;;;;;CAYrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import ExpandableItem from '../expandable-item';
3
- import { propTypes } from './types';
4
- import styles from './style.css';
5
-
6
- const ExpandableList = ({
7
- items
8
- }) => {
9
- return /*#__PURE__*/React.createElement("ul", {
10
- className: styles.list,
11
- "data-name": "expandable-item"
12
- }, items.map((item, index) => {
13
- return /*#__PURE__*/React.createElement("li", {
14
- key: `menu-link-item-${index}`,
15
- className: styles.item
16
- }, /*#__PURE__*/React.createElement(ExpandableItem, item));
17
- }));
18
- };
19
-
20
- ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
21
- export default ExpandableList;
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["React","ExpandableItem","propTypes","styles","ExpandableList","items","list","map","item","index"],"sources":["../../../src/molecule/expandable-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport ExpandableItem from '../expandable-item';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst ExpandableList = ({items}: Props) => {\n return (\n <ul className={styles.list} data-name=\"expandable-item\">\n {items.map((item, index) => {\n return (\n <li key={`menu-link-item-${index}`} className={styles.item}>\n <ExpandableItem {...item} />\n </li>\n );\n })}\n </ul>\n );\n};\n\nExpandableList.propTypes = propTypes;\n\nexport default ExpandableList;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;;AAEA,MAAMC,cAAc,GAAG,CAAC;EAACC;AAAD,CAAD,KAAoB;EACzC,oBACE;IAAI,SAAS,EAAEF,MAAM,CAACG,IAAtB;IAA4B,aAAU;EAAtC,GACGD,KAAK,CAACE,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;IAC1B,oBACE;MAAI,GAAG,EAAG,kBAAiBA,KAAM,EAAjC;MAAoC,SAAS,EAAEN,MAAM,CAACK;IAAtD,gBACE,oBAAC,cAAD,EAAoBA,IAApB,CADF,CADF;EAKD,CANA,CADH,CADF;AAWD,CAZD;;AAcAJ,cAAc,CAACF,SAAf,2CAA2BA,SAA3B;AAEA,eAAeE,cAAf"}
@@ -1,20 +0,0 @@
1
- @value colors: "../../variables/colors.css";
2
- @value breakpoints: "../../variables/breakpoints.css";
3
- @value mobile from breakpoints;
4
- @value tablet from breakpoints;
5
- @value cm_primary_blue from colors;
6
- @value cm_grey_500 from colors;
7
- @value cm_grey_800 from colors;
8
-
9
- .list {
10
- list-style: none;
11
- cursor: pointer;
12
- margin: 0;
13
- padding: 0;
14
- }
15
-
16
- .item {
17
- display: flex;
18
- flex-direction: row;
19
- margin-bottom: 16px;
20
- }
@@ -1,17 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import { Props as ItemProps } from '../expandable-item/types';
3
- export declare const propTypes: {
4
- items: PropTypes.Requireable<(PropTypes.InferProps<{
5
- title: PropTypes.Requireable<string>;
6
- icon: PropTypes.Requireable<string>;
7
- isExpended: PropTypes.Requireable<boolean>;
8
- isLink: PropTypes.Requireable<boolean>;
9
- content: PropTypes.Requireable<string>;
10
- image: PropTypes.Requireable<string>;
11
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
12
- }> | null | undefined)[]>;
13
- };
14
- export declare type Props = {
15
- items: ItemProps[];
16
- };
17
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,0BAA0B,CAAC;AAExF,eAAO,MAAM,SAAS;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC"}
@@ -1,6 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import { propTypes as ItemPropTypes } from '../expandable-item/types';
3
- export const propTypes = {
4
- items: PropTypes.arrayOf(PropTypes.shape(ItemPropTypes))
5
- };
6
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","propTypes","ItemPropTypes","items","arrayOf","shape"],"sources":["../../../src/molecule/expandable-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {Props as ItemProps, propTypes as ItemPropTypes} from '../expandable-item/types';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(ItemPropTypes))\n};\n\nexport type Props = {\n items: ItemProps[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAA4BC,SAAS,IAAIC,aAAzC,QAA6D,0BAA7D;AAEA,OAAO,MAAMD,SAAS,GAAG;EACvBE,KAAK,EAAEH,SAAS,CAACI,OAAV,CAAkBJ,SAAS,CAACK,KAAV,CAAgBH,aAAhB,CAAlB;AADgB,CAAlB"}
@@ -1,22 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export declare const propTypes: {
3
- image: PropTypes.Requireable<string>;
4
- mode: PropTypes.Requireable<string>;
5
- description: PropTypes.Requireable<string>;
6
- title: PropTypes.Requireable<string>;
7
- author: PropTypes.Requireable<string>;
8
- progress: PropTypes.Requireable<number>;
9
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
- submitValue: PropTypes.Requireable<string>;
11
- };
12
- export declare type Props = {
13
- image?: string;
14
- mode?: string;
15
- description?: string;
16
- title?: string;
17
- author?: string;
18
- progress?: number;
19
- onClick?: () => void;
20
- submitValue?: string;
21
- };
22
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,eAAO,MAAM,SAAS;;;;;;;;;CASrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,14 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import CardContentInfo from '../card-content';
3
- import Button from '../../atom/button';
4
- export const propTypes = {
5
- image: PropTypes.string,
6
- mode: PropTypes.string,
7
- description: PropTypes.string,
8
- title: CardContentInfo.propTypes.title,
9
- author: CardContentInfo.propTypes.author,
10
- progress: CardContentInfo.propTypes.progress,
11
- onClick: Button.propTypes.onClick,
12
- submitValue: Button.propTypes.submitValue
13
- };
14
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","CardContentInfo","Button","propTypes","image","string","mode","description","title","author","progress","onClick","submitValue"],"sources":["../../../src/molecule/hero/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport CardContentInfo from '../card-content';\nimport Button from '../../atom/button';\n\nexport const propTypes = {\n image: PropTypes.string,\n mode: PropTypes.string,\n description: PropTypes.string,\n title: CardContentInfo.propTypes.title,\n author: CardContentInfo.propTypes.author,\n progress: CardContentInfo.propTypes.progress,\n onClick: Button.propTypes.onClick,\n submitValue: Button.propTypes.submitValue\n};\n\nexport type Props = {\n image?: string;\n mode?: string;\n description?: string;\n title?: string;\n author?: string;\n progress?: number;\n onClick?: () => void;\n submitValue?: string;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,eAAP,MAA4B,iBAA5B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEJ,SAAS,CAACK,MADM;EAEvBC,IAAI,EAAEN,SAAS,CAACK,MAFO;EAGvBE,WAAW,EAAEP,SAAS,CAACK,MAHA;EAIvBG,KAAK,EAAEP,eAAe,CAACE,SAAhB,CAA0BK,KAJV;EAKvBC,MAAM,EAAER,eAAe,CAACE,SAAhB,CAA0BM,MALX;EAMvBC,QAAQ,EAAET,eAAe,CAACE,SAAhB,CAA0BO,QANb;EAOvBC,OAAO,EAAET,MAAM,CAACC,SAAP,CAAiBQ,OAPH;EAQvBC,WAAW,EAAEV,MAAM,CAACC,SAAP,CAAiBS;AARP,CAAlB"}
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import { Props } from './types';
3
- declare const MenuLinks: {
4
- ({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode }: Props): JSX.Element;
5
- propTypes: {
6
- title: import("prop-types").Requireable<string>;
7
- numberOfDisplayedItems: import("prop-types").Requireable<number>;
8
- isDesktopMode: import("prop-types").Requireable<boolean>;
9
- showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
10
- showMoreText: import("prop-types").Requireable<string>;
11
- showLessText: import("prop-types").Requireable<string>;
12
- isSelected: import("prop-types").Requireable<boolean>;
13
- }>>;
14
- items: import("prop-types").Requireable<(import("prop-types").InferProps<{
15
- text: import("prop-types").Requireable<string>;
16
- isSelected: import("prop-types").Requireable<boolean>;
17
- handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
18
- }> | null | undefined)[]>;
19
- };
20
- };
21
- export default MenuLinks;
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAWzC,QAAA,MAAM,SAAS;4EAAyE,KAAK;;;;;;;;;;;;;;;;CA+D5F,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -1,70 +0,0 @@
1
- import _slice from "lodash/fp/slice";
2
- import React, { useState } from 'react';
3
- import classnames from 'classnames';
4
- import { NovaCompositionNavigationArrowDown as ArrowIcon, NovaLinePhoneMobilePhone as MobilePhone, NovaLineMessagesChatChatBubbleCircleQuestionMark as ChatBubbleCircleQuestionMark, NovaLineNetworkNetworkAlert as NetworkAlert, NovaLineObjectsBinoculars1 as Binoculaire, NovaLineContentEditionContentBook as ContentBook } from '@coorpacademy/nova-icons';
5
- import { propTypes } from './types';
6
- import styles from './style.css';
7
- const ICONS = {
8
- mobilePhone: MobilePhone,
9
- chatBubbleCircleQuestionMark: ChatBubbleCircleQuestionMark,
10
- networkAlert: NetworkAlert,
11
- binoculaire: Binoculaire,
12
- contentBook: ContentBook
13
- };
14
-
15
- const MenuLinks = ({
16
- items,
17
- title,
18
- showMoreItem,
19
- numberOfDisplayedItems,
20
- isDesktopMode
21
- }) => {
22
- const [isOpen, setIsOpen] = useState(false);
23
- const itemsToDisplay = isDesktopMode || isOpen ? items : _slice(0, numberOfDisplayedItems, items);
24
-
25
- const handleOnclickShowMore = () => setIsOpen(!isOpen);
26
-
27
- return /*#__PURE__*/React.createElement("div", {
28
- className: styles.container
29
- }, /*#__PURE__*/React.createElement("h2", {
30
- className: styles.title
31
- }, title), /*#__PURE__*/React.createElement("ul", {
32
- className: styles.list,
33
- "data-name": "menu-links"
34
- }, itemsToDisplay.map((item, index) => {
35
- const {
36
- handleOnclick
37
- } = item;
38
- const Icon = item.icon ? ICONS[item.icon] : null;
39
- return /*#__PURE__*/React.createElement("li", {
40
- onClick: handleOnclick,
41
- key: `menu-link-item-${index}`,
42
- className: styles.item
43
- }, /*#__PURE__*/React.createElement("div", {
44
- className: classnames(styles.border, item.isSelected ? styles.selectedBorder : null)
45
- }), /*#__PURE__*/React.createElement("div", {
46
- className: styles.flexContainer
47
- }, Icon ? /*#__PURE__*/React.createElement(Icon, {
48
- className: classnames(styles.icon, item.isSelected ? styles.selectedIcon : null)
49
- }) : null, /*#__PURE__*/React.createElement("div", {
50
- className: styles.flexContainer
51
- }, /*#__PURE__*/React.createElement("span", {
52
- className: item.isSelected ? styles.selectedItem : undefined
53
- }, item.text), Icon ? /*#__PURE__*/React.createElement(ArrowIcon, {
54
- className: classnames(styles.arrowIcon, item.isSelected ? styles.selectedIcon : null)
55
- }) : null)));
56
- }), !isDesktopMode ? /*#__PURE__*/React.createElement("li", {
57
- // eslint-disable-next-line react/jsx-no-bind
58
- onClick: handleOnclickShowMore,
59
- key: `menu-link-item-show-more`,
60
- className: classnames(styles.showMoreItem, styles.item)
61
- }, /*#__PURE__*/React.createElement("div", {
62
- className: styles.border
63
- }), /*#__PURE__*/React.createElement("span", null, isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText, /*#__PURE__*/React.createElement(ArrowIcon, {
64
- className: isOpen ? styles.showLessIcon : styles.showMoreIcon
65
- }))) : null));
66
- };
67
-
68
- MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
69
- export default MenuLinks;
70
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["React","useState","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","NovaLinePhoneMobilePhone","MobilePhone","NovaLineMessagesChatChatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","NovaLineNetworkNetworkAlert","NetworkAlert","NovaLineObjectsBinoculars1","Binoculaire","NovaLineContentEditionContentBook","ContentBook","propTypes","styles","ICONS","mobilePhone","chatBubbleCircleQuestionMark","networkAlert","binoculaire","contentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","isOpen","setIsOpen","itemsToDisplay","handleOnclickShowMore","container","list","map","item","index","handleOnclick","Icon","icon","border","isSelected","selectedBorder","flexContainer","selectedIcon","selectedItem","undefined","text","arrowIcon","showLessText","showMoreText","showLessIcon","showMoreIcon"],"sources":["../../../src/molecule/menu-links/index.tsx"],"sourcesContent":["import React, {useState} from 'react';\nimport classnames from 'classnames';\nimport {\n NovaCompositionNavigationArrowDown as ArrowIcon,\n NovaLinePhoneMobilePhone as MobilePhone,\n NovaLineMessagesChatChatBubbleCircleQuestionMark as ChatBubbleCircleQuestionMark,\n NovaLineNetworkNetworkAlert as NetworkAlert,\n NovaLineObjectsBinoculars1 as Binoculaire,\n NovaLineContentEditionContentBook as ContentBook\n} from '@coorpacademy/nova-icons';\nimport {slice} from 'lodash/fp';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst ICONS = {\n mobilePhone: MobilePhone,\n chatBubbleCircleQuestionMark: ChatBubbleCircleQuestionMark,\n networkAlert: NetworkAlert,\n binoculaire: Binoculaire,\n contentBook: ContentBook\n};\n\nconst MenuLinks = ({items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode}: Props) => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const itemsToDisplay = isDesktopMode || isOpen ? items : slice(0, numberOfDisplayedItems, items);\n const handleOnclickShowMore = () => setIsOpen(!isOpen);\n\n return (\n <div className={styles.container}>\n <h2 className={styles.title}>{title}</h2>\n <ul className={styles.list} data-name=\"menu-links\">\n {itemsToDisplay.map((item, index) => {\n const {handleOnclick} = item;\n const Icon = item.icon ? ICONS[item.icon] : null;\n return (\n <li onClick={handleOnclick} key={`menu-link-item-${index}`} className={styles.item}>\n <div\n className={classnames(\n styles.border,\n item.isSelected ? styles.selectedBorder : null\n )}\n />\n <div className={styles.flexContainer}>\n {Icon ? (\n <Icon\n className={classnames(\n styles.icon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>\n {item.text}\n </span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\n </div>\n </li>\n );\n })}\n {!isDesktopMode ? (\n <li\n // eslint-disable-next-line react/jsx-no-bind\n onClick={handleOnclickShowMore}\n key={`menu-link-item-show-more`}\n className={classnames(styles.showMoreItem, styles.item)}\n >\n <div className={styles.border} />\n <span>\n {isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText}\n <ArrowIcon className={isOpen ? styles.showLessIcon : styles.showMoreIcon} />\n </span>\n </li>\n ) : null}\n </ul>\n </div>\n );\n};\n\nMenuLinks.propTypes = propTypes;\n\nexport default MenuLinks;\n"],"mappings":"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"}
@@ -1,161 +0,0 @@
1
- @value colors: "../../variables/colors.css";
2
- @value breakpoints: "../../variables/breakpoints.css";
3
- @value mobile from breakpoints;
4
- @value tablet from breakpoints;
5
- @value cm_primary_blue from colors;
6
- @value cm_grey_500 from colors;
7
- @value cm_grey_700 from colors;
8
- @value cm_grey_800 from colors;
9
- @value white from colors;
10
-
11
-
12
- .container {
13
- display: flex;
14
- flex-direction: column;
15
- align-items: flex-start;
16
- padding: 24px 24px 8px 0px;
17
- gap: 24px;
18
- background: #FFFFFF;
19
- border-radius: 8px;
20
- flex: none;
21
- order: 0;
22
- flex-grow: 0;
23
- }
24
-
25
- .title {
26
- padding: 0px 0px 0px 24px;
27
- margin: 0;
28
- font-family: 'Gilroy';
29
- font-style: normal;
30
- font-weight: 600;
31
- font-size: 16px;
32
- line-height: 22px;
33
- order: 0;
34
- flex-grow: 0;
35
- z-index: 0;
36
- color: cm_grey_500;
37
- }
38
-
39
- .list {
40
- list-style: none;
41
- cursor: pointer;
42
- margin: 0;
43
- padding: 0;
44
- width: 100%;
45
- }
46
-
47
- .item {
48
- display: flex;
49
- flex-direction: row;
50
- gap: 28px;
51
- margin-bottom: 16px;
52
- width: 100%;
53
- }
54
-
55
- .flexContainer span {
56
- font-family: Gilroy;
57
- font-size: 14px;
58
- font-weight: 700;
59
- line-height: 20px;
60
- letter-spacing: 0px;
61
- text-align: left;
62
- }
63
-
64
- .flexContainer {
65
- display: flex;
66
- justify-content: space-between;
67
- align-items: center;
68
- width: 100%;
69
- }
70
- .border {
71
- width: 4px;
72
- font-weight: inherit;
73
- background-color: white;
74
- flex-shrink: 0;
75
- min-width: 4px;
76
- flex-basis: 4px;
77
- }
78
-
79
- .icon {
80
- width: 20px;
81
- height: 20px;
82
- color: #000;
83
- margin-right: 12px;
84
- }
85
-
86
- .arrowIcon{
87
- width: 12px;
88
- min-width: 12px;
89
- height: 12px;
90
- margin-left: 10px;
91
- transform: rotateZ(270deg);
92
- }
93
-
94
- .selectedBorder {
95
- background-color: cm_primary_blue;
96
- }
97
-
98
- .showMoreItem {
99
- display: none;
100
- }
101
-
102
- .selectedItem {
103
- color: cm_primary_blue;
104
- font-weight: 600;
105
- }
106
-
107
- .selectedIcon {
108
- color: cm_primary_blue;
109
- }
110
- .item:hover{
111
- text-decoration: underline;
112
- }
113
-
114
- .selectedItem:hover {
115
- text-decoration-color: cm_primary_blue!important;
116
- color: cm_primary_blue;
117
- }
118
- .showMoreIcon {
119
- width: 12px;
120
- height: 8px;
121
- margin-left: 8px;
122
- }
123
-
124
- .showLessIcon {
125
- width: 12px;
126
- height: 8px;
127
- margin-left: 8px;
128
- transform: rotateZ(180deg);
129
- }
130
-
131
- @media tablet {
132
- .showMoreItem {
133
- font-family: 'Gilroy';
134
- font-style: normal;
135
- font-weight: 700;
136
- font-size: 14px;
137
- line-height: 20px;
138
- color: cm_grey_700;
139
- margin: 0;
140
- display: block;
141
- display: flex;
142
- flex-direction: row;
143
- margin-bottom: 16px;
144
- }
145
- }
146
-
147
- @media mobile {
148
- .showMoreItem {
149
- font-family: 'Gilroy';
150
- font-style: normal;
151
- font-weight: 700;
152
- font-size: 14px;
153
- line-height: 20px;
154
- color: cm_grey_700;
155
- margin: 0;
156
- display: block;
157
- display: flex;
158
- flex-direction: row;
159
- margin-bottom: 16px;
160
- }
161
- }