@coorpacademy/components 11.12.3-alpha.13 → 11.12.3-alpha.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 (55) hide show
  1. package/es/molecule/expandable-item/style.css +2 -3
  2. package/es/molecule/menu-links/index.d.ts +8 -2
  3. package/es/molecule/menu-links/index.d.ts.map +1 -1
  4. package/es/molecule/menu-links/index.js +28 -9
  5. package/es/molecule/menu-links/index.js.map +1 -1
  6. package/es/molecule/menu-links/style.css +18 -19
  7. package/es/molecule/menu-links/types.d.ts +14 -2
  8. package/es/molecule/menu-links/types.d.ts.map +1 -1
  9. package/es/molecule/menu-links/types.js +8 -2
  10. package/es/molecule/menu-links/types.js.map +1 -1
  11. package/es/template/common/faq-page/index.d.ts +68 -0
  12. package/es/template/common/faq-page/index.d.ts.map +1 -0
  13. package/es/template/common/faq-page/index.js +42 -0
  14. package/es/template/common/faq-page/index.js.map +1 -0
  15. package/es/template/common/faq-page/style.css +103 -0
  16. package/es/template/common/faq-page/types.d.ts +74 -0
  17. package/es/template/common/faq-page/types.d.ts.map +1 -0
  18. package/es/template/common/faq-page/types.js +13 -0
  19. package/es/template/common/faq-page/types.js.map +1 -0
  20. package/es/template/common/privacy-policy-page/index.d.ts +7 -1
  21. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -1
  22. package/es/template/common/privacy-policy-page/index.js +9 -1
  23. package/es/template/common/privacy-policy-page/index.js.map +1 -1
  24. package/es/template/common/privacy-policy-page/style.css +24 -4
  25. package/es/template/common/privacy-policy-page/types.d.ts +7 -1
  26. package/es/template/common/privacy-policy-page/types.d.ts.map +1 -1
  27. package/es/variables/breakpoints.css +1 -2
  28. package/lib/molecule/expandable-item/style.css +2 -3
  29. package/lib/molecule/menu-links/index.d.ts +8 -2
  30. package/lib/molecule/menu-links/index.d.ts.map +1 -1
  31. package/lib/molecule/menu-links/index.js +33 -9
  32. package/lib/molecule/menu-links/index.js.map +1 -1
  33. package/lib/molecule/menu-links/style.css +18 -19
  34. package/lib/molecule/menu-links/types.d.ts +14 -2
  35. package/lib/molecule/menu-links/types.d.ts.map +1 -1
  36. package/lib/molecule/menu-links/types.js +8 -2
  37. package/lib/molecule/menu-links/types.js.map +1 -1
  38. package/lib/template/common/faq-page/index.d.ts +68 -0
  39. package/lib/template/common/faq-page/index.d.ts.map +1 -0
  40. package/lib/template/common/faq-page/index.js +57 -0
  41. package/lib/template/common/faq-page/index.js.map +1 -0
  42. package/lib/template/common/faq-page/style.css +103 -0
  43. package/lib/template/common/faq-page/types.d.ts +74 -0
  44. package/lib/template/common/faq-page/types.d.ts.map +1 -0
  45. package/lib/template/common/faq-page/types.js +24 -0
  46. package/lib/template/common/faq-page/types.js.map +1 -0
  47. package/lib/template/common/privacy-policy-page/index.d.ts +7 -1
  48. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -1
  49. package/lib/template/common/privacy-policy-page/index.js +9 -1
  50. package/lib/template/common/privacy-policy-page/index.js.map +1 -1
  51. package/lib/template/common/privacy-policy-page/style.css +24 -4
  52. package/lib/template/common/privacy-policy-page/types.d.ts +7 -1
  53. package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -1
  54. package/lib/variables/breakpoints.css +1 -2
  55. package/package.json +2 -2
@@ -19,11 +19,17 @@ declare const PrivacyPolicy: {
19
19
  };
20
20
  menuLinks: {
21
21
  title: import("prop-types").Requireable<string>;
22
+ numberOfDisplayedItems: import("prop-types").Requireable<number>;
23
+ isDesktopMode: import("prop-types").Requireable<boolean>;
24
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
25
+ showMoreText: import("prop-types").Requireable<string>;
26
+ showLessText: import("prop-types").Requireable<string>;
27
+ isSelected: import("prop-types").Requireable<boolean>;
28
+ }>>;
22
29
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
23
30
  text: import("prop-types").Requireable<string>;
24
31
  isSelected: import("prop-types").Requireable<boolean>;
25
32
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
26
- isShowMoreItem: import("prop-types").Requireable<boolean>;
27
33
  }> | null | undefined)[]>;
28
34
  };
29
35
  privacyPolicyDownload: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBP,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BP,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -26,7 +26,15 @@ const PrivacyPolicy = ({
26
26
  className: styles.container
27
27
  }, /*#__PURE__*/React.createElement("div", {
28
28
  className: styles.menuContainer
29
- }, /*#__PURE__*/React.createElement(MenuLinks, menuLinks), /*#__PURE__*/React.createElement("div", {
29
+ }, /*#__PURE__*/React.createElement("div", {
30
+ className: styles.menueLinksDesctop
31
+ }, /*#__PURE__*/React.createElement(MenuLinks, _extends({}, menuLinks, {
32
+ isDesktopMode: true
33
+ }))), /*#__PURE__*/React.createElement("div", {
34
+ className: styles.menueLinksMobile
35
+ }, /*#__PURE__*/React.createElement(MenuLinks, _extends({}, menuLinks, {
36
+ isDesktopMode: false
37
+ }))), /*#__PURE__*/React.createElement("div", {
30
38
  className: styles.privacyPolicyDownloadDesktop
31
39
  }, /*#__PURE__*/React.createElement(PrivacyPolicyDownload, privacyPolicyDownload))), /*#__PURE__*/React.createElement("div", {
32
40
  className: styles.expandableList
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","Hero","PrivacyPolicyContact","PrivacyPolicyDownload","MenuLinks","ExpandableList","propTypes","styles","PrivacyPolicy","header","privacyPolicyContact","menuLinks","privacyPolicyDownload","expandableList","wrapper","hero","container","menuContainer","privacyPolicyDownloadDesktop"],"sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"sourcesContent":["import React from 'react';\nimport Hero from '../../../molecule/hero';\nimport PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';\nimport PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';\nimport MenuLinks from '../../../molecule/menu-links';\nimport ExpandableList from '../../../molecule/expandable-list';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst PrivacyPolicy = ({\n header,\n privacyPolicyContact,\n menuLinks,\n privacyPolicyDownload,\n expandableList\n}: Props) => {\n return (\n <div className={styles.wrapper}>\n <div className={styles.hero}>\n <Hero {...header} mode={'header'} />\n </div>\n <div className={styles.container}>\n <div className={styles.menuContainer}>\n <MenuLinks {...menuLinks} />\n <div className={styles.privacyPolicyDownloadDesktop}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.expandableList}>\n <ExpandableList {...expandableList} />\n </div>\n <div className={styles.privacyPolicyDownload}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.privacyPolicyContact}>\n <PrivacyPolicyContact {...privacyPolicyContact} />\n </div>\n </div>\n );\n};\n\nPrivacyPolicy.propTypes = propTypes;\n\nexport default PrivacyPolicy;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;AACA,OAAOC,oBAAP,MAAiC,0CAAjC;AACA,OAAOC,qBAAP,MAAkC,2CAAlC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;;AAEA,MAAMC,aAAa,GAAG,CAAC;EACrBC,MADqB;EAErBC,oBAFqB;EAGrBC,SAHqB;EAIrBC,qBAJqB;EAKrBC;AALqB,CAAD,KAMT;EACX,oBACE;IAAK,SAAS,EAAEN,MAAM,CAACO;EAAvB,gBACE;IAAK,SAAS,EAAEP,MAAM,CAACQ;EAAvB,gBACE,oBAAC,IAAD,eAAUN,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEF,MAAM,CAACS;EAAvB,gBACE;IAAK,SAAS,EAAET,MAAM,CAACU;EAAvB,gBACE,oBAAC,SAAD,EAAeN,SAAf,CADF,eAEE;IAAK,SAAS,EAAEJ,MAAM,CAACW;EAAvB,gBACE,oBAAC,qBAAD,EAA2BN,qBAA3B,CADF,CAFF,CADF,eAOE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE,oBAAC,cAAD,EAAoBA,cAApB,CADF,CAPF,eAUE;IAAK,SAAS,EAAEN,MAAM,CAACK;EAAvB,gBACE,oBAAC,qBAAD,EAA2BA,qBAA3B,CADF,CAVF,CAJF,eAkBE;IAAK,SAAS,EAAEL,MAAM,CAACG;EAAvB,gBACE,oBAAC,oBAAD,EAA0BA,oBAA1B,CADF,CAlBF,CADF;AAwBD,CA/BD;;AAiCAF,aAAa,CAACF,SAAd,2CAA0BA,SAA1B;AAEA,eAAeE,aAAf"}
1
+ {"version":3,"file":"index.js","names":["React","Hero","PrivacyPolicyContact","PrivacyPolicyDownload","MenuLinks","ExpandableList","propTypes","styles","PrivacyPolicy","header","privacyPolicyContact","menuLinks","privacyPolicyDownload","expandableList","wrapper","hero","container","menuContainer","menueLinksDesctop","menueLinksMobile","privacyPolicyDownloadDesktop"],"sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"sourcesContent":["import React from 'react';\nimport Hero from '../../../molecule/hero';\nimport PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';\nimport PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';\nimport MenuLinks from '../../../molecule/menu-links';\nimport ExpandableList from '../../../molecule/expandable-list';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst PrivacyPolicy = ({\n header,\n privacyPolicyContact,\n menuLinks,\n privacyPolicyDownload,\n expandableList\n}: Props) => {\n return (\n <div className={styles.wrapper}>\n <div className={styles.hero}>\n <Hero {...header} mode={'header'} />\n </div>\n <div className={styles.container}>\n <div className={styles.menuContainer}>\n <div className={styles.menueLinksDesctop}>\n <MenuLinks {...menuLinks} isDesktopMode />\n </div>\n <div className={styles.menueLinksMobile}>\n <MenuLinks {...menuLinks} isDesktopMode={false} />\n </div>\n <div className={styles.privacyPolicyDownloadDesktop}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.expandableList}>\n <ExpandableList {...expandableList} />\n </div>\n <div className={styles.privacyPolicyDownload}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.privacyPolicyContact}>\n <PrivacyPolicyContact {...privacyPolicyContact} />\n </div>\n </div>\n );\n};\n\nPrivacyPolicy.propTypes = propTypes;\n\nexport default PrivacyPolicy;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;AACA,OAAOC,oBAAP,MAAiC,0CAAjC;AACA,OAAOC,qBAAP,MAAkC,2CAAlC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;;AAEA,MAAMC,aAAa,GAAG,CAAC;EACrBC,MADqB;EAErBC,oBAFqB;EAGrBC,SAHqB;EAIrBC,qBAJqB;EAKrBC;AALqB,CAAD,KAMT;EACX,oBACE;IAAK,SAAS,EAAEN,MAAM,CAACO;EAAvB,gBACE;IAAK,SAAS,EAAEP,MAAM,CAACQ;EAAvB,gBACE,oBAAC,IAAD,eAAUN,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEF,MAAM,CAACS;EAAvB,gBACE;IAAK,SAAS,EAAET,MAAM,CAACU;EAAvB,gBACE;IAAK,SAAS,EAAEV,MAAM,CAACW;EAAvB,gBACE,oBAAC,SAAD,eAAeP,SAAf;IAA0B,aAAa;EAAvC,GADF,CADF,eAIE;IAAK,SAAS,EAAEJ,MAAM,CAACY;EAAvB,gBACE,oBAAC,SAAD,eAAeR,SAAf;IAA0B,aAAa,EAAE;EAAzC,GADF,CAJF,eAOE;IAAK,SAAS,EAAEJ,MAAM,CAACa;EAAvB,gBACE,oBAAC,qBAAD,EAA2BR,qBAA3B,CADF,CAPF,CADF,eAYE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE,oBAAC,cAAD,EAAoBA,cAApB,CADF,CAZF,eAeE;IAAK,SAAS,EAAEN,MAAM,CAACK;EAAvB,gBACE,oBAAC,qBAAD,EAA2BA,qBAA3B,CADF,CAfF,CAJF,eAuBE;IAAK,SAAS,EAAEL,MAAM,CAACG;EAAvB,gBACE,oBAAC,oBAAD,EAA0BA,oBAA1B,CADF,CAvBF,CADF;AA6BD,CApCD;;AAsCAF,aAAa,CAACF,SAAd,2CAA0BA,SAA1B;AAEA,eAAeE,aAAf"}
@@ -1,6 +1,6 @@
1
1
  @value breakpoints: "../../../variables/breakpoints.css";
2
2
  @value mobile from breakpoints;
3
- @value mooc_tablet from breakpoints;
3
+ @value tablet from breakpoints;
4
4
  @value desktop from breakpoints;
5
5
  @value colors: "../../../variables/colors.css";
6
6
  @value cm_grey_50 from colors;
@@ -24,10 +24,18 @@
24
24
 
25
25
  .menuContainer {
26
26
  margin-right: 32px;
27
- min-width: 388px;
27
+ min-width: 308px;
28
28
  max-width: 388px;
29
29
  }
30
30
 
31
+ .menueLinksDesctop {
32
+ display: block;
33
+ }
34
+
35
+ .menueLinksMobile {
36
+ display: none;
37
+ }
38
+
31
39
  .privacyPolicyContact{
32
40
  width: 100%;
33
41
  height: 86px;
@@ -42,11 +50,11 @@
42
50
  }
43
51
 
44
52
  .expandableList {
45
- min-width: 686px;
53
+ min-width: 533px;
46
54
  max-width: 748px;
47
55
  width: 100%;
48
56
  }
49
- @media mooc_tablet {
57
+ @media tablet {
50
58
  .privacyPolicyDownloadDesktop {
51
59
  display: none;
52
60
  }
@@ -70,6 +78,12 @@
70
78
  max-width: inherit;
71
79
  width: 100%;
72
80
  }
81
+ .menueLinksDesctop {
82
+ display: none;
83
+ }
84
+ .menueLinksMobile {
85
+ display: block;
86
+ }
73
87
  }
74
88
 
75
89
  @media mobile {
@@ -100,4 +114,10 @@
100
114
  max-width: inherit;
101
115
  width: 100%;
102
116
  }
117
+ .menueLinksDesctop {
118
+ display: none;
119
+ }
120
+ .menueLinksMobile {
121
+ display: block;
122
+ }
103
123
  }
@@ -20,11 +20,17 @@ export declare const propTypes: {
20
20
  };
21
21
  menuLinks: {
22
22
  title: import("prop-types").Requireable<string>;
23
+ numberOfDisplayedItems: import("prop-types").Requireable<number>;
24
+ isDesktopMode: import("prop-types").Requireable<boolean>;
25
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
26
+ showMoreText: import("prop-types").Requireable<string>;
27
+ showLessText: import("prop-types").Requireable<string>;
28
+ isSelected: import("prop-types").Requireable<boolean>;
29
+ }>>;
23
30
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
24
31
  text: import("prop-types").Requireable<string>;
25
32
  isSelected: import("prop-types").Requireable<boolean>;
26
33
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
27
- isShowMoreItem: import("prop-types").Requireable<boolean>;
28
34
  }> | null | undefined)[]>;
29
35
  };
30
36
  privacyPolicyDownload: {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -2,5 +2,4 @@
2
2
  @value tablet: (max-width: 960px);
3
3
  @value desktop: (max-width: 1280px);
4
4
  @value wide: (max-width: 1680px);
5
- @value cm_tablet: (max-width: 1123px);
6
- @value mooc_tablet: (max-width: 1217px);
5
+ @value cm_tablet: (max-width: 1123px);
@@ -20,6 +20,7 @@
20
20
  height: 72px;
21
21
  justify-content: center;
22
22
  }
23
+
23
24
  .header {
24
25
  display: flex;
25
26
  flex-direction: row;
@@ -29,7 +30,6 @@
29
30
  justify-content: space-between;
30
31
  align-items: center;
31
32
  cursor: pointer;
32
- height: 72px;
33
33
  padding: 24px;
34
34
  gap: 16px;
35
35
  }
@@ -46,8 +46,7 @@
46
46
  }
47
47
 
48
48
  .expendedHeader {
49
- padding: 24px 40px 0px 40px;
50
- border-radius: 10px;
49
+ padding: 24px 24px 0px 24px;
51
50
  }
52
51
 
53
52
  .title {
@@ -1,14 +1,20 @@
1
1
  /// <reference types="react" />
2
2
  import { Props } from './types';
3
3
  declare const MenuLinks: {
4
- ({ items, title }: Props): JSX.Element;
4
+ ({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode }: Props): JSX.Element;
5
5
  propTypes: {
6
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
+ }>>;
7
14
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
8
15
  text: import("prop-types").Requireable<string>;
9
16
  isSelected: import("prop-types").Requireable<boolean>;
10
17
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
11
- isShowMoreItem: import("prop-types").Requireable<boolean>;
12
18
  }> | null | undefined)[]>;
13
19
  };
14
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,SAAS;uBAAoB,KAAK;;;;;;;;;;CAwBvC,CAAC;AAIF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,SAAS;4EAAyE,KAAK;;;;;;;;;;;;;;;;CAwC5F,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -3,7 +3,9 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
- var _react = _interopRequireDefault(require("react"));
6
+ var _slice2 = _interopRequireDefault(require("lodash/fp/slice"));
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
7
9
 
8
10
  var _classnames = _interopRequireDefault(require("classnames"));
9
11
 
@@ -13,12 +15,24 @@ var _types = require("./types");
13
15
 
14
16
  var _style = _interopRequireDefault(require("./style.css"));
15
17
 
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
16
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
23
 
18
24
  const MenuLinks = ({
19
25
  items,
20
- title
26
+ title,
27
+ showMoreItem,
28
+ numberOfDisplayedItems,
29
+ isDesktopMode
21
30
  }) => {
31
+ const [isOpen, setIsOpen] = (0, _react.useState)(false);
32
+ const itemsToDesplaye = isDesktopMode || isOpen ? items : (0, _slice2.default)(0, numberOfDisplayedItems, items);
33
+
34
+ const handleOnclickShowMore = () => setIsOpen(!isOpen);
35
+
22
36
  return /*#__PURE__*/_react.default.createElement("div", {
23
37
  className: _style.default.container
24
38
  }, /*#__PURE__*/_react.default.createElement("h2", {
@@ -26,22 +40,32 @@ const MenuLinks = ({
26
40
  }, title), /*#__PURE__*/_react.default.createElement("ul", {
27
41
  className: _style.default.list,
28
42
  "data-name": "menu-links"
29
- }, items.map((item, index) => {
43
+ }, itemsToDesplaye.map((item, index) => {
30
44
  const {
31
45
  handleOnclick
32
46
  } = item;
47
+ console.log({
48
+ isOpen,
49
+ numberOfDisplayedItems
50
+ });
33
51
  return /*#__PURE__*/_react.default.createElement("li", {
34
52
  onClick: handleOnclick,
35
53
  key: `menu-link-item-${index}`,
36
- className: (0, _classnames.default)(item.isShowMoreItem ? _style.default.showMoreItem : null, _style.default.item)
54
+ className: _style.default.item
37
55
  }, /*#__PURE__*/_react.default.createElement("div", {
38
- className: item.isSelected ? _style.default.border : null
56
+ className: (0, _classnames.default)(_style.default.border, item.isSelected ? _style.default.selectedBorder : null)
39
57
  }), /*#__PURE__*/_react.default.createElement("span", {
40
58
  className: item.isSelected ? _style.default.selectedItem : undefined
41
- }, item.text, item.isShowMoreItem ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
42
- className: _style.default.showMoreIcon
43
- }) : null));
44
- })));
59
+ }, item.text));
60
+ }), !isDesktopMode ? /*#__PURE__*/_react.default.createElement("li", {
61
+ onClick: handleOnclickShowMore,
62
+ key: `menu-link-item-show-more`,
63
+ className: (0, _classnames.default)(_style.default.showMoreItem, _style.default.item)
64
+ }, /*#__PURE__*/_react.default.createElement("div", {
65
+ className: _style.default.border
66
+ }), /*#__PURE__*/_react.default.createElement("span", null, isOpen ? showMoreItem.showLessText : showMoreItem.showMoreText, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
67
+ className: isOpen ? _style.default.showLessIcon : _style.default.showMoreIcon
68
+ }))) : null));
45
69
  };
46
70
 
47
71
  MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["MenuLinks","items","title","styles","container","list","map","item","index","handleOnclick","classnames","isShowMoreItem","showMoreItem","isSelected","border","selectedItem","undefined","text","showMoreIcon","propTypes"],"sources":["../../../src/molecule/menu-links/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\nconst MenuLinks = ({items, title}: Props) => {\n return (\n <div className={styles.container}>\n <h2 className={styles.title}>{title}</h2>\n <ul className={styles.list} data-name=\"menu-links\">\n {items.map((item, index) => {\n const {handleOnclick} = item;\n return (\n <li\n onClick={handleOnclick}\n key={`menu-link-item-${index}`}\n className={classnames(item.isShowMoreItem ? styles.showMoreItem : null, styles.item)}\n >\n <div className={item.isSelected ? styles.border : null} />\n <span className={item.isSelected ? styles.selectedItem : undefined}>\n {item.text}\n {item.isShowMoreItem ? <ArrowIcon className={styles.showMoreIcon} /> : null}\n </span>\n </li>\n );\n })}\n </ul>\n </div>\n );\n};\n\nMenuLinks.propTypes = propTypes;\n\nexport default MenuLinks;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA2B;EAC3C,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IAAI,SAAS,EAAED,cAAA,CAAOD;EAAtB,GAA8BA,KAA9B,CADF,eAEE;IAAI,SAAS,EAAEC,cAAA,CAAOE,IAAtB;IAA4B,aAAU;EAAtC,GACGJ,KAAK,CAACK,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;IAC1B,MAAM;MAACC;IAAD,IAAkBF,IAAxB;IACA,oBACE;MACE,OAAO,EAAEE,aADX;MAEE,GAAG,EAAG,kBAAiBD,KAAM,EAF/B;MAGE,SAAS,EAAE,IAAAE,mBAAA,EAAWH,IAAI,CAACI,cAAL,GAAsBR,cAAA,CAAOS,YAA7B,GAA4C,IAAvD,EAA6DT,cAAA,CAAOI,IAApE;IAHb,gBAKE;MAAK,SAAS,EAAEA,IAAI,CAACM,UAAL,GAAkBV,cAAA,CAAOW,MAAzB,GAAkC;IAAlD,EALF,eAME;MAAM,SAAS,EAAEP,IAAI,CAACM,UAAL,GAAkBV,cAAA,CAAOY,YAAzB,GAAwCC;IAAzD,GACGT,IAAI,CAACU,IADR,EAEGV,IAAI,CAACI,cAAL,gBAAsB,6BAAC,6CAAD;MAAW,SAAS,EAAER,cAAA,CAAOe;IAA7B,EAAtB,GAAsE,IAFzE,CANF,CADF;EAaD,CAfA,CADH,CAFF,CADF;AAuBD,CAxBD;;AA0BAlB,SAAS,CAACmB,SAAV,2CAAsBA,gBAAtB;eAEenB,S"}
1
+ {"version":3,"file":"index.js","names":["MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","isOpen","setIsOpen","useState","itemsToDesplaye","handleOnclickShowMore","styles","container","list","map","item","index","handleOnclick","console","log","classnames","border","isSelected","selectedBorder","selectedItem","undefined","text","showLessText","showMoreText","showLessIcon","showMoreIcon","propTypes"],"sources":["../../../src/molecule/menu-links/index.tsx"],"sourcesContent":["import React, {useState} from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport {slice} from 'lodash/fp';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst MenuLinks = ({items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode}: Props) => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const itemsToDesplaye = 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 {itemsToDesplaye.map((item, index) => {\n const {handleOnclick} = item;\n console.log({isOpen, numberOfDisplayedItems});\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 <span className={item.isSelected ? styles.selectedItem : undefined}>{item.text}</span>\n </li>\n );\n })}\n {!isDesktopMode ? (\n <li\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":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,KAAD;EAAQC,KAAR;EAAeC,YAAf;EAA6BC,sBAA7B;EAAqDC;AAArD,CAAD,KAAgF;EAChG,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,IAAAC,eAAA,EAAkB,KAAlB,CAA5B;EACA,MAAMC,eAAe,GAAGJ,aAAa,IAAIC,MAAjB,GAA0BL,KAA1B,GAAkC,qBAAM,CAAN,EAASG,sBAAT,EAAiCH,KAAjC,CAA1D;;EACA,MAAMS,qBAAqB,GAAG,MAAMH,SAAS,CAAC,CAACD,MAAF,CAA7C;;EAEA,oBACE;IAAK,SAAS,EAAEK,cAAA,CAAOC;EAAvB,gBACE;IAAI,SAAS,EAAED,cAAA,CAAOT;EAAtB,GAA8BA,KAA9B,CADF,eAEE;IAAI,SAAS,EAAES,cAAA,CAAOE,IAAtB;IAA4B,aAAU;EAAtC,GACGJ,eAAe,CAACK,GAAhB,CAAoB,CAACC,IAAD,EAAOC,KAAP,KAAiB;IACpC,MAAM;MAACC;IAAD,IAAkBF,IAAxB;IACAG,OAAO,CAACC,GAAR,CAAY;MAACb,MAAD;MAASF;IAAT,CAAZ;IACA,oBACE;MAAI,OAAO,EAAEa,aAAb;MAA4B,GAAG,EAAG,kBAAiBD,KAAM,EAAzD;MAA4D,SAAS,EAAEL,cAAA,CAAOI;IAA9E,gBACE;MACE,SAAS,EAAE,IAAAK,mBAAA,EACTT,cAAA,CAAOU,MADE,EAETN,IAAI,CAACO,UAAL,GAAkBX,cAAA,CAAOY,cAAzB,GAA0C,IAFjC;IADb,EADF,eAOE;MAAM,SAAS,EAAER,IAAI,CAACO,UAAL,GAAkBX,cAAA,CAAOa,YAAzB,GAAwCC;IAAzD,GAAqEV,IAAI,CAACW,IAA1E,CAPF,CADF;EAWD,CAdA,CADH,EAgBG,CAACrB,aAAD,gBACC;IACE,OAAO,EAAEK,qBADX;IAEE,GAAG,EAAG,0BAFR;IAGE,SAAS,EAAE,IAAAU,mBAAA,EAAWT,cAAA,CAAOR,YAAlB,EAAgCQ,cAAA,CAAOI,IAAvC;EAHb,gBAKE;IAAK,SAAS,EAAEJ,cAAA,CAAOU;EAAvB,EALF,eAME,2CACGf,MAAM,GAAGH,YAAY,CAACwB,YAAhB,GAA+BxB,YAAY,CAACyB,YADrD,eAEE,6BAAC,6CAAD;IAAW,SAAS,EAAEtB,MAAM,GAAGK,cAAA,CAAOkB,YAAV,GAAyBlB,cAAA,CAAOmB;EAA5D,EAFF,CANF,CADD,GAYG,IA5BN,CAFF,CADF;AAmCD,CAxCD;;AA0CA9B,SAAS,CAAC+B,SAAV,2CAAsBA,gBAAtB;eAEe/B,S"}
@@ -1,11 +1,13 @@
1
1
  @value colors: "../../variables/colors.css";
2
2
  @value breakpoints: "../../variables/breakpoints.css";
3
3
  @value mobile from breakpoints;
4
- @value mooc_tablet from breakpoints;
4
+ @value tablet from breakpoints;
5
5
  @value cm_primary_blue from colors;
6
6
  @value cm_grey_500 from colors;
7
7
  @value cm_grey_700 from colors;
8
8
  @value cm_grey_800 from colors;
9
+ @value white from colors;
10
+
9
11
 
10
12
  .container {
11
13
  display: flex;
@@ -21,7 +23,7 @@
21
23
  }
22
24
 
23
25
  .title {
24
- padding: 0px 0px 0px 40px;
26
+ padding: 0px 0px 0px 24px;
25
27
  margin: 0;
26
28
  font-family: 'Gilroy';
27
29
  font-style: normal;
@@ -44,31 +46,23 @@
44
46
  .item {
45
47
  display: flex;
46
48
  flex-direction: row;
47
- gap: 36px;
49
+ gap: 20px;
48
50
  margin-bottom: 16px;
49
51
  }
50
52
 
51
- .itemText {
52
- font-family: Gilroy;
53
- font-size: 14px;
54
- font-weight: 500;
55
- line-height: 20px;
56
- letter-spacing: 0px;
57
- font-style: normal;
58
- text-align: left;
59
- margin: 0;
60
- color: cm_grey_800;
61
- }
62
-
63
53
  .border {
64
54
  width: 4px;
65
55
  font-weight: inherit;
66
- background-color: cm_primary_blue;
56
+ background-color: white;
67
57
  flex-shrink: 0;
68
58
  min-width: 4px;
69
59
  flex-basis: 4px;
70
60
  }
71
61
 
62
+ .selectedBorder {
63
+ background-color: cm_primary_blue;
64
+ }
65
+
72
66
  .showMoreItem {
73
67
  display: none;
74
68
  }
@@ -88,7 +82,14 @@
88
82
  margin-left: 8px;
89
83
  }
90
84
 
91
- @media mooc_tablet {
85
+ .showLessIcon {
86
+ width: 12px;
87
+ height: 8px;
88
+ margin-left: 8px;
89
+ transform: rotateZ(180deg);
90
+ }
91
+
92
+ @media tablet {
92
93
  .showMoreItem {
93
94
  font-family: 'Gilroy';
94
95
  font-style: normal;
@@ -100,7 +101,6 @@
100
101
  display: block;
101
102
  display: flex;
102
103
  flex-direction: row;
103
- gap: 36px;
104
104
  margin-bottom: 16px;
105
105
  }
106
106
  }
@@ -117,7 +117,6 @@
117
117
  display: block;
118
118
  display: flex;
119
119
  flex-direction: row;
120
- gap: 36px;
121
120
  margin-bottom: 16px;
122
121
  }
123
122
  }
@@ -1,21 +1,33 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export declare const propTypes: {
3
3
  title: PropTypes.Requireable<string>;
4
+ numberOfDisplayedItems: PropTypes.Requireable<number>;
5
+ isDesktopMode: PropTypes.Requireable<boolean>;
6
+ showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
7
+ showMoreText: PropTypes.Requireable<string>;
8
+ showLessText: PropTypes.Requireable<string>;
9
+ isSelected: PropTypes.Requireable<boolean>;
10
+ }>>;
4
11
  items: PropTypes.Requireable<(PropTypes.InferProps<{
5
12
  text: PropTypes.Requireable<string>;
6
13
  isSelected: PropTypes.Requireable<boolean>;
7
14
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
8
- isShowMoreItem: PropTypes.Requireable<boolean>;
9
15
  }> | null | undefined)[]>;
10
16
  };
11
17
  export declare type Item = {
12
18
  text: string;
13
19
  isSelected?: boolean;
14
20
  handleOnclick: () => void;
15
- isShowMoreItem?: boolean;
21
+ };
22
+ export declare type ShowMoreItem = {
23
+ showMoreText: string;
24
+ showLessText: string;
16
25
  };
17
26
  export declare type Props = {
18
27
  title: string;
28
+ isDesktopMode: boolean;
29
+ showMoreItem: ShowMoreItem;
30
+ numberOfDisplayedItems: number;
19
31
  items: Item[];
20
32
  };
21
33
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;;CAUrB,CAAC;AAEF,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAgBrB,CAAC;AAEF,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
@@ -9,11 +9,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
9
9
 
10
10
  const propTypes = {
11
11
  title: _propTypes.default.string,
12
+ numberOfDisplayedItems: _propTypes.default.number,
13
+ isDesktopMode: _propTypes.default.bool,
14
+ showMoreItem: _propTypes.default.shape({
15
+ showMoreText: _propTypes.default.string,
16
+ showLessText: _propTypes.default.string,
17
+ isSelected: _propTypes.default.bool
18
+ }),
12
19
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
13
20
  text: _propTypes.default.string,
14
21
  isSelected: _propTypes.default.bool,
15
- handleOnclick: _propTypes.default.func,
16
- isShowMoreItem: _propTypes.default.bool
22
+ handleOnclick: _propTypes.default.func
17
23
  }))
18
24
  };
19
25
  exports.propTypes = propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","items","arrayOf","shape","text","isSelected","bool","handleOnclick","func","isShowMoreItem"],"sources":["../../../src/molecule/menu-links/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n isSelected: PropTypes.bool,\n handleOnclick: PropTypes.func,\n isShowMoreItem: PropTypes.bool\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n handleOnclick: () => void;\n isShowMoreItem?: boolean;\n};\nexport type Props = {\n title: string;\n items: Item[];\n};\n"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,KAAK,EAAEF,kBAAA,CAAUG,OAAV,CACLH,kBAAA,CAAUI,KAAV,CAAgB;IACdC,IAAI,EAAEL,kBAAA,CAAUC,MADF;IAEdK,UAAU,EAAEN,kBAAA,CAAUO,IAFR;IAGdC,aAAa,EAAER,kBAAA,CAAUS,IAHX;IAIdC,cAAc,EAAEV,kBAAA,CAAUO;EAJZ,CAAhB,CADK;AAFgB,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","numberOfDisplayedItems","number","isDesktopMode","bool","showMoreItem","shape","showMoreText","showLessText","isSelected","items","arrayOf","text","handleOnclick","func"],"sources":["../../../src/molecule/menu-links/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n numberOfDisplayedItems: PropTypes.number,\n isDesktopMode: PropTypes.bool,\n showMoreItem: PropTypes.shape({\n showMoreText: PropTypes.string,\n showLessText: PropTypes.string,\n isSelected: PropTypes.bool\n }),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n isSelected: PropTypes.bool,\n handleOnclick: PropTypes.func\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n handleOnclick: () => void;\n};\n\nexport type ShowMoreItem = {\n showMoreText: string;\n showLessText: string;\n};\n\nexport type Props = {\n title: string;\n isDesktopMode: boolean;\n showMoreItem: ShowMoreItem;\n numberOfDisplayedItems: number;\n items: Item[];\n};\n"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,sBAAsB,EAAEF,kBAAA,CAAUG,MAFX;EAGvBC,aAAa,EAAEJ,kBAAA,CAAUK,IAHF;EAIvBC,YAAY,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IAC5BC,YAAY,EAAER,kBAAA,CAAUC,MADI;IAE5BQ,YAAY,EAAET,kBAAA,CAAUC,MAFI;IAG5BS,UAAU,EAAEV,kBAAA,CAAUK;EAHM,CAAhB,CAJS;EASvBM,KAAK,EAAEX,kBAAA,CAAUY,OAAV,CACLZ,kBAAA,CAAUO,KAAV,CAAgB;IACdM,IAAI,EAAEb,kBAAA,CAAUC,MADF;IAEdS,UAAU,EAAEV,kBAAA,CAAUK,IAFR;IAGdS,aAAa,EAAEd,kBAAA,CAAUe;EAHX,CAAhB,CADK;AATgB,CAAlB"}
@@ -0,0 +1,68 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ declare const PrivacyPolicy: {
4
+ ({ header, privacyPolicyContact, menuLinks, privacyPolicyDownload, expandableList }: Props): JSX.Element;
5
+ propTypes: {
6
+ header: {
7
+ image: import("prop-types").Requireable<string>;
8
+ mode: import("prop-types").Requireable<string>;
9
+ description: import("prop-types").Requireable<string>;
10
+ title: import("prop-types").Requireable<string>;
11
+ author: import("prop-types").Requireable<string>;
12
+ progress: import("prop-types").Requireable<number>;
13
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
+ submitValue: import("prop-types").Requireable<string>;
15
+ };
16
+ privacyPolicyContact: {
17
+ title: import("prop-types").Requireable<string>;
18
+ content: import("prop-types").Requireable<string>;
19
+ };
20
+ menuLinks: {
21
+ title: import("prop-types").Requireable<string>;
22
+ numberOfDisplayedItems: import("prop-types").Requireable<number>;
23
+ isDesktopMode: import("prop-types").Requireable<boolean>;
24
+ showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
25
+ showMoreText: import("prop-types").Requireable<string>;
26
+ showLessText: import("prop-types").Requireable<string>;
27
+ isSelected: import("prop-types").Requireable<boolean>;
28
+ }>>;
29
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
30
+ text: import("prop-types").Requireable<string>;
31
+ isSelected: import("prop-types").Requireable<boolean>;
32
+ handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
33
+ }> | null | undefined)[]>;
34
+ };
35
+ privacyPolicyDownload: {
36
+ title: import("prop-types").Requireable<string>;
37
+ content: import("prop-types").Requireable<string>;
38
+ downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
39
+ color: any;
40
+ submitValue: import("prop-types").Requireable<string>;
41
+ disabled: import("prop-types").Requireable<boolean>;
42
+ isLinkDisabled: import("prop-types").Requireable<boolean>;
43
+ href: import("prop-types").Requireable<string>;
44
+ download: import("prop-types").Requireable<boolean>;
45
+ target: import("prop-types").Requireable<string>;
46
+ type: import("prop-types").Requireable<string>;
47
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
48
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
49
+ className: import("prop-types").Requireable<string>;
50
+ buttonContentClassName: import("prop-types").Requireable<string>;
51
+ style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
52
+ 'data-name': import("prop-types").Requireable<string>;
53
+ }>>;
54
+ };
55
+ expandableList: {
56
+ items: import("prop-types").Requireable<(import("prop-types").InferProps<{
57
+ title: import("prop-types").Requireable<string>;
58
+ icon: import("prop-types").Requireable<string>;
59
+ isExpended: import("prop-types").Requireable<boolean>;
60
+ content: import("prop-types").Requireable<string>;
61
+ image: import("prop-types").Requireable<string>;
62
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
63
+ }> | null | undefined)[]>;
64
+ };
65
+ };
66
+ };
67
+ export default PrivacyPolicy;
68
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBP,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireDefault(require("react"));
7
+
8
+ var _hero = _interopRequireDefault(require("../../../molecule/hero"));
9
+
10
+ var _privacyPolicyContact = _interopRequireDefault(require("../../../molecule/privacy-policy-contact"));
11
+
12
+ var _privacyPolicyDownload = _interopRequireDefault(require("../../../molecule/privacy-policy-download"));
13
+
14
+ var _menuLinks = _interopRequireDefault(require("../../../molecule/menu-links"));
15
+
16
+ var _expandableList = _interopRequireDefault(require("../../../molecule/expandable-list"));
17
+
18
+ var _types = require("./types");
19
+
20
+ var _style = _interopRequireDefault(require("./style.css"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
26
+ const PrivacyPolicy = ({
27
+ header,
28
+ privacyPolicyContact,
29
+ menuLinks,
30
+ privacyPolicyDownload,
31
+ expandableList
32
+ }) => {
33
+ return /*#__PURE__*/_react.default.createElement("div", {
34
+ className: _style.default.wrapper
35
+ }, /*#__PURE__*/_react.default.createElement("div", {
36
+ className: _style.default.hero
37
+ }, /*#__PURE__*/_react.default.createElement(_hero.default, _extends({}, header, {
38
+ mode: 'header'
39
+ }))), /*#__PURE__*/_react.default.createElement("div", {
40
+ className: _style.default.container
41
+ }, /*#__PURE__*/_react.default.createElement("div", {
42
+ className: _style.default.menuContainer
43
+ }, /*#__PURE__*/_react.default.createElement(_menuLinks.default, menuLinks), /*#__PURE__*/_react.default.createElement("div", {
44
+ className: _style.default.privacyPolicyDownloadDesktop
45
+ }, /*#__PURE__*/_react.default.createElement(_privacyPolicyDownload.default, privacyPolicyDownload))), /*#__PURE__*/_react.default.createElement("div", {
46
+ className: _style.default.expandableList
47
+ }, /*#__PURE__*/_react.default.createElement(_expandableList.default, expandableList)), /*#__PURE__*/_react.default.createElement("div", {
48
+ className: _style.default.privacyPolicyDownload
49
+ }, /*#__PURE__*/_react.default.createElement(_privacyPolicyDownload.default, privacyPolicyDownload))), /*#__PURE__*/_react.default.createElement("div", {
50
+ className: _style.default.privacyPolicyContact
51
+ }, /*#__PURE__*/_react.default.createElement(_privacyPolicyContact.default, privacyPolicyContact)));
52
+ };
53
+
54
+ PrivacyPolicy.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
55
+ var _default = PrivacyPolicy;
56
+ exports.default = _default;
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["PrivacyPolicy","header","privacyPolicyContact","menuLinks","privacyPolicyDownload","expandableList","styles","wrapper","hero","container","menuContainer","privacyPolicyDownloadDesktop","propTypes"],"sources":["../../../../src/template/common/faq-page/index.tsx"],"sourcesContent":["import React from 'react';\nimport Hero from '../../../molecule/hero';\nimport PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';\nimport PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';\nimport MenuLinks from '../../../molecule/menu-links';\nimport ExpandableList from '../../../molecule/expandable-list';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst PrivacyPolicy = ({\n header,\n privacyPolicyContact,\n menuLinks,\n privacyPolicyDownload,\n expandableList\n}: Props) => {\n return (\n <div className={styles.wrapper}>\n <div className={styles.hero}>\n <Hero {...header} mode={'header'} />\n </div>\n <div className={styles.container}>\n <div className={styles.menuContainer}>\n <MenuLinks {...menuLinks} />\n <div className={styles.privacyPolicyDownloadDesktop}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.expandableList}>\n <ExpandableList {...expandableList} />\n </div>\n <div className={styles.privacyPolicyDownload}>\n <PrivacyPolicyDownload {...privacyPolicyDownload} />\n </div>\n </div>\n <div className={styles.privacyPolicyContact}>\n <PrivacyPolicyContact {...privacyPolicyContact} />\n </div>\n </div>\n );\n};\n\nPrivacyPolicy.propTypes = propTypes;\n\nexport default PrivacyPolicy;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,aAAa,GAAG,CAAC;EACrBC,MADqB;EAErBC,oBAFqB;EAGrBC,SAHqB;EAIrBC,qBAJqB;EAKrBC;AALqB,CAAD,KAMT;EACX,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAOE;EAAvB,gBACE,6BAAC,aAAD,eAAUP,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEK,cAAA,CAAOG;EAAvB,gBACE;IAAK,SAAS,EAAEH,cAAA,CAAOI;EAAvB,gBACE,6BAAC,kBAAD,EAAeP,SAAf,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAOK;EAAvB,gBACE,6BAAC,8BAAD,EAA2BP,qBAA3B,CADF,CAFF,CADF,eAOE;IAAK,SAAS,EAAEE,cAAA,CAAOD;EAAvB,gBACE,6BAAC,uBAAD,EAAoBA,cAApB,CADF,CAPF,eAUE;IAAK,SAAS,EAAEC,cAAA,CAAOF;EAAvB,gBACE,6BAAC,8BAAD,EAA2BA,qBAA3B,CADF,CAVF,CAJF,eAkBE;IAAK,SAAS,EAAEE,cAAA,CAAOJ;EAAvB,gBACE,6BAAC,6BAAD,EAA0BA,oBAA1B,CADF,CAlBF,CADF;AAwBD,CA/BD;;AAiCAF,aAAa,CAACY,SAAd,2CAA0BA,gBAA1B;eAEeZ,a"}