@coorpacademy/components 11.16.0 → 11.16.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 (76) hide show
  1. package/es/molecule/expandable-item/index.d.ts +2 -1
  2. package/es/molecule/expandable-item/index.d.ts.map +1 -1
  3. package/es/molecule/expandable-item/index.js +20 -4
  4. package/es/molecule/expandable-item/index.js.map +1 -1
  5. package/es/molecule/expandable-item/types.d.ts +2 -0
  6. package/es/molecule/expandable-item/types.d.ts.map +1 -1
  7. package/es/molecule/expandable-item/types.js +2 -1
  8. package/es/molecule/expandable-item/types.js.map +1 -1
  9. package/es/molecule/expandable-list/index.d.ts +1 -0
  10. package/es/molecule/expandable-list/index.d.ts.map +1 -1
  11. package/es/molecule/expandable-list/types.d.ts +1 -0
  12. package/es/molecule/expandable-list/types.d.ts.map +1 -1
  13. package/es/molecule/menu-links/index.d.ts +1 -0
  14. package/es/molecule/menu-links/index.d.ts.map +1 -1
  15. package/es/molecule/menu-links/index.js +5 -4
  16. package/es/molecule/menu-links/index.js.map +1 -1
  17. package/es/molecule/menu-links/style.css +3 -2
  18. package/es/molecule/menu-links/types.d.ts +2 -0
  19. package/es/molecule/menu-links/types.d.ts.map +1 -1
  20. package/es/molecule/menu-links/types.js +2 -1
  21. package/es/molecule/menu-links/types.js.map +1 -1
  22. package/es/molecule/privacy-policy-contact/index.js +1 -1
  23. package/es/molecule/privacy-policy-contact/index.js.map +1 -1
  24. package/es/template/common/faq-article-page/index.d.ts +3 -0
  25. package/es/template/common/faq-article-page/index.d.ts.map +1 -1
  26. package/es/template/common/faq-article-page/types.d.ts +6 -0
  27. package/es/template/common/faq-article-page/types.d.ts.map +1 -1
  28. package/es/template/common/faq-article-page/types.js +4 -1
  29. package/es/template/common/faq-article-page/types.js.map +1 -1
  30. package/es/template/common/faq-page/index.d.ts +2 -0
  31. package/es/template/common/faq-page/index.d.ts.map +1 -1
  32. package/es/template/common/faq-page/types.d.ts +2 -0
  33. package/es/template/common/faq-page/types.d.ts.map +1 -1
  34. package/es/template/common/privacy-policy-page/index.d.ts +2 -0
  35. package/es/template/common/privacy-policy-page/index.d.ts.map +1 -1
  36. package/es/template/common/privacy-policy-page/types.d.ts +2 -0
  37. package/es/template/common/privacy-policy-page/types.d.ts.map +1 -1
  38. package/lib/molecule/expandable-item/index.d.ts +2 -1
  39. package/lib/molecule/expandable-item/index.d.ts.map +1 -1
  40. package/lib/molecule/expandable-item/index.js +20 -4
  41. package/lib/molecule/expandable-item/index.js.map +1 -1
  42. package/lib/molecule/expandable-item/types.d.ts +2 -0
  43. package/lib/molecule/expandable-item/types.d.ts.map +1 -1
  44. package/lib/molecule/expandable-item/types.js +2 -1
  45. package/lib/molecule/expandable-item/types.js.map +1 -1
  46. package/lib/molecule/expandable-list/index.d.ts +1 -0
  47. package/lib/molecule/expandable-list/index.d.ts.map +1 -1
  48. package/lib/molecule/expandable-list/types.d.ts +1 -0
  49. package/lib/molecule/expandable-list/types.d.ts.map +1 -1
  50. package/lib/molecule/menu-links/index.d.ts +1 -0
  51. package/lib/molecule/menu-links/index.d.ts.map +1 -1
  52. package/lib/molecule/menu-links/index.js +5 -4
  53. package/lib/molecule/menu-links/index.js.map +1 -1
  54. package/lib/molecule/menu-links/style.css +3 -2
  55. package/lib/molecule/menu-links/types.d.ts +2 -0
  56. package/lib/molecule/menu-links/types.d.ts.map +1 -1
  57. package/lib/molecule/menu-links/types.js +2 -1
  58. package/lib/molecule/menu-links/types.js.map +1 -1
  59. package/lib/molecule/privacy-policy-contact/index.js +1 -1
  60. package/lib/molecule/privacy-policy-contact/index.js.map +1 -1
  61. package/lib/template/common/faq-article-page/index.d.ts +3 -0
  62. package/lib/template/common/faq-article-page/index.d.ts.map +1 -1
  63. package/lib/template/common/faq-article-page/types.d.ts +6 -0
  64. package/lib/template/common/faq-article-page/types.d.ts.map +1 -1
  65. package/lib/template/common/faq-article-page/types.js +4 -1
  66. package/lib/template/common/faq-article-page/types.js.map +1 -1
  67. package/lib/template/common/faq-page/index.d.ts +2 -0
  68. package/lib/template/common/faq-page/index.d.ts.map +1 -1
  69. package/lib/template/common/faq-page/types.d.ts +2 -0
  70. package/lib/template/common/faq-page/types.d.ts.map +1 -1
  71. package/lib/template/common/privacy-policy-page/index.d.ts +2 -0
  72. package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -1
  73. package/lib/template/common/privacy-policy-page/types.d.ts +2 -0
  74. package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -1
  75. package/package.json +2 -2
  76. package/locales/.mtslconfig.json +0 -1
@@ -4,7 +4,7 @@ export declare const ICONS: {
4
4
  arrow: any;
5
5
  };
6
6
  declare const ExpandableItem: {
7
- ({ icon, title, isExpended, isLink, content, onClick, image }: Props): JSX.Element;
7
+ ({ icon, title, isExpended, isLink, content, onClick, image, ariaLabel }: Props): JSX.Element;
8
8
  propTypes: {
9
9
  title: import("prop-types").Requireable<string>;
10
10
  icon: import("prop-types").Requireable<string>;
@@ -13,6 +13,7 @@ declare const ExpandableItem: {
13
13
  content: import("prop-types").Requireable<string>;
14
14
  image: import("prop-types").Requireable<string>;
15
15
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
16
+ ariaLabel: import("prop-types").Requireable<string>;
16
17
  };
17
18
  };
18
19
  export default ExpandableItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;mEAAgE,KAAK;;;;;;;;;;CA8BxF,CAAC;AAGF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;8EASjB,KAAK;;;;;;;;;;;CAwDP,CAAC;AAGF,eAAe,cAAc,CAAC"}
@@ -14,19 +14,35 @@ const ExpandableItem = ({
14
14
  isLink,
15
15
  content,
16
16
  onClick,
17
- image
17
+ image,
18
+ ariaLabel
18
19
  }) => {
19
20
  const Icon = ICONS[icon];
20
21
  return /*#__PURE__*/React.createElement("div", {
21
22
  className: isExpended ? styles.expendedContainer : styles.container
22
- }, /*#__PURE__*/React.createElement("div", {
23
+ }, isLink ? /*#__PURE__*/React.createElement("a", {
23
24
  className: classnames(styles.header, isExpended ? styles.expendedHeader : null),
24
- onClick: onClick
25
+ onClick: onClick,
26
+ "aria-label": ariaLabel
25
27
  }, /*#__PURE__*/React.createElement("h3", {
26
28
  className: styles.title
27
29
  }, title), Icon ? /*#__PURE__*/React.createElement(Icon, {
28
30
  className: classnames(styles.icon, isExpended ? styles.expendedIcon : null, isLink ? styles.linkIcon : null)
29
- }) : null), isExpended ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
31
+ }) : null) : /*#__PURE__*/React.createElement("div", {
32
+ className: classnames(styles.header, isExpended ? styles.expendedHeader : null),
33
+ onClick: onClick,
34
+ id: `${title}_expended_item_id`,
35
+ "aria-controls": `${title}_expended_item_aria-controls`,
36
+ "aria-expanded": isExpended
37
+ }, /*#__PURE__*/React.createElement("h3", {
38
+ className: styles.title
39
+ }, title), Icon ? /*#__PURE__*/React.createElement(Icon, {
40
+ className: classnames(styles.icon, isExpended ? styles.expendedIcon : null, isLink ? styles.linkIcon : null)
41
+ }) : null), isExpended ? /*#__PURE__*/React.createElement("div", {
42
+ id: `${title}_expended_item_aria-controls`,
43
+ role: "region",
44
+ "aria-labelledby": `${title}_expended_item_id`
45
+ }, /*#__PURE__*/React.createElement("div", {
30
46
  className: styles.content // eslint-disable-next-line react/no-danger
31
47
  ,
32
48
  dangerouslySetInnerHTML: {
@@ -1 +1 @@
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}>\n <div\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n >\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;EAA/D,gBACE;IACE,SAAS,EAAEjB,UAAU,CAACI,MAAM,CAACc,MAAR,EAAgBR,UAAU,GAAGN,MAAM,CAACe,cAAV,GAA2B,IAArD,CADvB;IAEE,OAAO,EAAEN;EAFX,gBAIE;IAAI,SAAS,EAAET,MAAM,CAACK;EAAtB,GAA8BA,KAA9B,CAJF,EAKGM,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,IAbN,CADF,EAgBGX,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,IAxBN,CADF;AA4BD,CA9BD;;AAgCAP,cAAc,CAACJ,SAAf,2CAA2BA,SAA3B;AACA,eAAeI,cAAf"}
1
+ {"version":3,"file":"index.js","names":["React","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","ariaLabel","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 = ({\n icon,\n title,\n isExpended,\n isLink,\n content,\n onClick,\n image,\n ariaLabel\n}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container}>\n {isLink ? (\n <a\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n aria-label={ariaLabel}\n >\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 </a>\n ) : (\n <div\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n id={`${title}_expended_item_id`}\n aria-controls={`${title}_expended_item_aria-controls`}\n aria-expanded={isExpended}\n >\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 )}\n {isExpended ? (\n <div\n id={`${title}_expended_item_aria-controls`}\n role=\"region\"\n aria-labelledby={`${title}_expended_item_id`}\n >\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;;AA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kB,QAAV,GAAqB,IAHR;EADvB,EADG,GAQD,IAhBN,CAnBJ,EAsCGZ,UAAU,gBACT;IACE,EAAE,EAAG,GAAED,KAAM,8BADf;IAEE,IAAI,EAAC,QAFP;IAGE,mBAAkB,GAAEA,KAAM;EAH5B,gBAKE;IACE,SAAS,EAAEL,MAAM,CAACQ,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACW,MAAM,EAAEX;IAAT;EAF3B,EALF,EASGE,KAAK,gBAAG;IAAK,SAAS,EAAEV,MAAM,CAACU,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IATnE,CADS,GAYP,IAlDN,CADF;AAsDD,CAjED;;AAmEAP,cAAc,CAACJ,SAAf,2CAA2BA,SAA3B;AACA,eAAeI,cAAf"}
@@ -7,12 +7,14 @@ export declare const propTypes: {
7
7
  content: PropTypes.Requireable<string>;
8
8
  image: PropTypes.Requireable<string>;
9
9
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
+ ariaLabel: PropTypes.Requireable<string>;
10
11
  };
11
12
  export declare type Props = {
12
13
  title: string;
13
14
  icon: 'arrow';
14
15
  isExpended: boolean;
15
16
  content: string;
17
+ ariaLabel?: string;
16
18
  isLink?: boolean;
17
19
  image?: string;
18
20
  onClick: () => void;
@@ -1 +1 @@
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
+ {"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;;;;;;;;;CASrB,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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
@@ -6,6 +6,7 @@ export const propTypes = {
6
6
  isLink: PropTypes.bool,
7
7
  content: PropTypes.string,
8
8
  image: PropTypes.string,
9
- onClick: PropTypes.func
9
+ onClick: PropTypes.func,
10
+ ariaLabel: PropTypes.string
10
11
  };
11
12
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","icon","oneOf","isExpended","bool","isLink","content","image","onClick","func","ariaLabel"],"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 ariaLabel: PropTypes.string\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n ariaLabel?: 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,IAPI;EAQvBC,SAAS,EAAEb,SAAS,CAACG;AARE,CAAlB"}
@@ -11,6 +11,7 @@ declare const ExpandableList: {
11
11
  content: import("prop-types").Requireable<string>;
12
12
  image: import("prop-types").Requireable<string>;
13
13
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
+ ariaLabel: import("prop-types").Requireable<string>;
14
15
  }> | null | undefined)[]>;
15
16
  };
16
17
  };
@@ -1 +1 @@
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;;;;;;;;;;;;CAgBrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
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;;;;;;;;;;;;;CAgBrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -9,6 +9,7 @@ export declare const propTypes: {
9
9
  content: PropTypes.Requireable<string>;
10
10
  image: PropTypes.Requireable<string>;
11
11
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
12
+ ariaLabel: PropTypes.Requireable<string>;
12
13
  }> | null | undefined)[]>;
13
14
  };
14
15
  export declare type Props = {
@@ -1 +1 @@
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
+ {"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"}
@@ -16,6 +16,7 @@ declare const MenuLinks: {
16
16
  text: import("prop-types").Requireable<string>;
17
17
  isSelected: import("prop-types").Requireable<boolean>;
18
18
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ ariaLabel: import("prop-types").Requireable<string>;
19
20
  }> | null | undefined)[]>;
20
21
  };
21
22
  };
@@ -1 +1 @@
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;wFAOZ,KAAK;;;;;;;;;;;;;;;;;CAsEP,CAAC;AAIF,eAAe,SAAS,CAAC"}
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;wFAOZ,KAAK;;;;;;;;;;;;;;;;;;CAsEP,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -25,7 +25,7 @@ const MenuLinks = ({
25
25
 
26
26
  const handleOnclickShowMore = () => setIsOpen(!isOpen);
27
27
 
28
- return /*#__PURE__*/React.createElement("div", {
28
+ return /*#__PURE__*/React.createElement("nav", {
29
29
  className: styles.container
30
30
  }, /*#__PURE__*/React.createElement("h2", {
31
31
  className: styles.title
@@ -54,10 +54,11 @@ const MenuLinks = ({
54
54
  className: styles.flexContainer
55
55
  }, Icon ? /*#__PURE__*/React.createElement(Icon, {
56
56
  className: classnames(styles.icon, item.isSelected ? styles.selectedIcon : null)
57
- }) : null, withScroll ? /*#__PURE__*/React.createElement("a", {
57
+ }) : null, /*#__PURE__*/React.createElement("a", {
58
58
  className: styles.link,
59
- href: `#menu-link-item-${index}`
60
- }, Item) : Item));
59
+ href: withScroll ? `#menu-link-item-${index}` : undefined,
60
+ "aria-label": item.ariaLabel
61
+ }, Item)));
61
62
  }), !isDesktopMode ? /*#__PURE__*/React.createElement("li", {
62
63
  // eslint-disable-next-line react/jsx-no-bind
63
64
  onClick: handleOnclickShowMore,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useState","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","NovaLinePhoneMobilePhone","MobilePhone","NovaLineMessagesChatChatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","NovaLineNetworkNetworkAlert","NetworkAlert","NovaLineObjectsBinoculars","Binoculaire","NovaLineContentEditionContentBook","ContentBook","propTypes","styles","ICONS","mobilePhone","chatBubbleCircleQuestionMark","networkAlert","binoculaire","contentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","withScroll","isOpen","setIsOpen","itemsToDisplay","handleOnclickShowMore","container","list","map","item","index","handleOnclick","Icon","icon","Item","flexContainer","isSelected","selectedItem","undefined","text","arrowIcon","selectedIcon","border","selectedBorder","link","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 NovaLineObjectsBinoculars 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 = ({\n items,\n title,\n showMoreItem,\n numberOfDisplayedItems,\n isDesktopMode,\n withScroll = false\n}: 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 const Item = (\n <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>{item.text}</span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\n );\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 {withScroll ? (\n <a className={styles.link} href={`#menu-link-item-${index}`}>\n {Item}\n </a>\n ) : (\n Item\n )}\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":";AAAA,OAAOA,KAAP,IAAeC,QAAf,QAA8B,OAA9B;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC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,YAAY,CAAC2B,YAAhB,GAA+B3B,YAAY,CAAC4B,YADrD,eAEE,oBAAC,SAAD;IAAW,SAAS,EAAExB,MAAM,GAAGd,MAAM,CAACuC,YAAV,GAAyBvC,MAAM,CAACwC;EAA5D,EAFF,CAPF,CADD,GAaG,IA1DN,CAFF,CADF;AAiED,CA7ED;;AA+EAjC,SAAS,CAACR,SAAV,2CAAsBA,SAAtB;AAEA,eAAeQ,SAAf"}
1
+ {"version":3,"file":"index.js","names":["React","useState","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","NovaLinePhoneMobilePhone","MobilePhone","NovaLineMessagesChatChatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","NovaLineNetworkNetworkAlert","NetworkAlert","NovaLineObjectsBinoculars","Binoculaire","NovaLineContentEditionContentBook","ContentBook","propTypes","styles","ICONS","mobilePhone","chatBubbleCircleQuestionMark","networkAlert","binoculaire","contentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","withScroll","isOpen","setIsOpen","itemsToDisplay","handleOnclickShowMore","container","list","map","item","index","handleOnclick","Icon","icon","Item","flexContainer","isSelected","selectedItem","undefined","text","arrowIcon","selectedIcon","border","selectedBorder","link","ariaLabel","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 NovaLineObjectsBinoculars 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 = ({\n items,\n title,\n showMoreItem,\n numberOfDisplayedItems,\n isDesktopMode,\n withScroll = false\n}: 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 <nav 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 const Item = (\n <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>{item.text}</span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\n );\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 <a\n className={styles.link}\n href={withScroll ? `#menu-link-item-${index}` : undefined}\n aria-label={item.ariaLabel}\n >\n {Item}\n </a>\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 </nav>\n );\n};\n\nMenuLinks.propTypes = propTypes;\n\nexport default MenuLinks;\n"],"mappings":";AAAA,O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AR,EAAsBV,MAAM,CAACqB,IAA7B;EAJvB,gBAME;IAAK,SAAS,EAAErB,MAAM,CAACkC;EAAvB,EANF,eAOE,kCACGpB,MAAM,GAAGJ,YAAY,CAAC4B,YAAhB,GAA+B5B,YAAY,CAAC6B,YADrD,eAEE,oBAAC,SAAD;IAAW,SAAS,EAAEzB,MAAM,GAAGd,MAAM,CAACwC,YAAV,GAAyBxC,MAAM,CAACyC;EAA5D,EAFF,CAPF,CADD,GAaG,IA1DN,CAFF,CADF;AAiED,CA7ED;;AA+EAlC,SAAS,CAACR,SAAV,2CAAsBA,SAAtB;AAEA,eAAeQ,SAAf"}
@@ -25,6 +25,7 @@
25
25
  .link {
26
26
  text-decoration: none;
27
27
  color: cm_grey_700;
28
+ flex: 1;
28
29
  }
29
30
 
30
31
  .title {
@@ -68,9 +69,9 @@
68
69
 
69
70
  .flexContainer {
70
71
  display: flex;
71
- justify-content: space-between;
72
72
  align-items: center;
73
73
  width: 100%;
74
+ justify-content: space-between;
74
75
  }
75
76
  .border {
76
77
  width: 4px;
@@ -117,7 +118,7 @@
117
118
  }
118
119
 
119
120
  .selectedItem:hover {
120
- text-decoration-color: cm_primary_blue!important;
121
+ text-decoration-color: cm_primary_blue;
121
122
  color: cm_primary_blue;
122
123
  }
123
124
  .showMoreIcon {
@@ -13,11 +13,13 @@ export declare const propTypes: {
13
13
  text: PropTypes.Requireable<string>;
14
14
  isSelected: PropTypes.Requireable<boolean>;
15
15
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
16
+ ariaLabel: PropTypes.Requireable<string>;
16
17
  }> | null | undefined)[]>;
17
18
  };
18
19
  export declare type Item = {
19
20
  text: string;
20
21
  isSelected?: boolean;
22
+ ariaLabel?: string;
21
23
  handleOnclick: () => void;
22
24
  icon?: IconsType;
23
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM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ElB,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
@@ -12,7 +12,8 @@ export const propTypes = {
12
12
  items: PropTypes.arrayOf(PropTypes.shape({
13
13
  text: PropTypes.string,
14
14
  isSelected: PropTypes.bool,
15
- handleOnclick: PropTypes.func
15
+ handleOnclick: PropTypes.func,
16
+ ariaLabel: PropTypes.string
16
17
  }))
17
18
  };
18
19
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","numberOfDisplayedItems","number","isDesktopMode","bool","withScroll","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 withScroll: 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 icon?: IconsType;\n};\n\nexport type ShowMoreItem = {\n showMoreText: string;\n showLessText: string;\n};\n\nexport type IconsType =\n | 'mobilePhone'\n | 'chatBubbleCircleQuestionMark'\n | 'networkAlert'\n | 'binoculaire'\n | 'contentBook';\n\nexport type Props = {\n title: string;\n isDesktopMode: boolean;\n withScroll?: boolean;\n showMoreItem: ShowMoreItem;\n numberOfDisplayedItems: number;\n items: Item[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,sBAAsB,EAAEJ,SAAS,CAACK,MAFX;EAGvBC,aAAa,EAAEN,SAAS,CAACO,IAHF;EAIvBC,UAAU,EAAER,SAAS,CAACO,IAJC;EAKvBE,YAAY,EAAET,SAAS,CAACU,KAAV,CAAgB;IAC5BC,YAAY,EAAEX,SAAS,CAACG,MADI;IAE5BS,YAAY,EAAEZ,SAAS,CAACG,MAFI;IAG5BU,UAAU,EAAEb,SAAS,CAACO;EAHM,CAAhB,CALS;EAUvBO,KAAK,EAAEd,SAAS,CAACe,OAAV,CACLf,SAAS,CAACU,KAAV,CAAgB;IACdM,IAAI,EAAEhB,SAAS,CAACG,MADF;IAEdU,UAAU,EAAEb,SAAS,CAACO,IAFR;IAGdU,aAAa,EAAEjB,SAAS,CAACkB;EAHX,CAAhB,CADK;AAVgB,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","numberOfDisplayedItems","number","isDesktopMode","bool","withScroll","showMoreItem","shape","showMoreText","showLessText","isSelected","items","arrayOf","text","handleOnclick","func","ariaLabel"],"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 withScroll: 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 ariaLabel: PropTypes.string\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n ariaLabel?: string;\n handleOnclick: () => void;\n icon?: IconsType;\n};\n\nexport type ShowMoreItem = {\n showMoreText: string;\n showLessText: string;\n};\n\nexport type IconsType =\n | 'mobilePhone'\n | 'chatBubbleCircleQuestionMark'\n | 'networkAlert'\n | 'binoculaire'\n | 'contentBook';\n\nexport type Props = {\n title: string;\n isDesktopMode: boolean;\n withScroll?: boolean;\n showMoreItem: ShowMoreItem;\n numberOfDisplayedItems: number;\n items: Item[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,sBAAsB,EAAEJ,SAAS,CAACK,MAFX;EAGvBC,aAAa,EAAEN,SAAS,CAACO,IAHF;EAIvBC,UAAU,EAAER,SAAS,CAACO,IAJC;EAKvBE,YAAY,EAAET,SAAS,CAACU,KAAV,CAAgB;IAC5BC,YAAY,EAAEX,SAAS,CAACG,MADI;IAE5BS,YAAY,EAAEZ,SAAS,CAACG,MAFI;IAG5BU,UAAU,EAAEb,SAAS,CAACO;EAHM,CAAhB,CALS;EAUvBO,KAAK,EAAEd,SAAS,CAACe,OAAV,CACLf,SAAS,CAACU,KAAV,CAAgB;IACdM,IAAI,EAAEhB,SAAS,CAACG,MADF;IAEdU,UAAU,EAAEb,SAAS,CAACO,IAFR;IAGdU,aAAa,EAAEjB,SAAS,CAACkB,IAHX;IAIdC,SAAS,EAAEnB,SAAS,CAACG;EAJP,CAAhB,CADK;AAVgB,CAAlB"}
@@ -12,7 +12,7 @@ const PrivacyPolicyContact = ({
12
12
  }) => {
13
13
  return /*#__PURE__*/React.createElement("div", {
14
14
  className: styles.container
15
- }, /*#__PURE__*/React.createElement("h3", {
15
+ }, /*#__PURE__*/React.createElement("div", {
16
16
  className: styles.title // eslint-disable-next-line react/no-danger
17
17
  ,
18
18
  dangerouslySetInnerHTML: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","PrivacyPolicyContact","title","content","container","__html"],"sources":["../../../src/molecule/privacy-policy-contact/index.tsx"],"sourcesContent":["import React from 'react';\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 PrivacyPolicyContact = ({title, content}: Props) => {\n return (\n <div className={styles.container}>\n <h3\n className={styles.title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <p className={styles.content}>{content}</p>\n </div>\n );\n};\n\nPrivacyPolicyContact.propTypes = propTypes;\n\nexport default PrivacyPolicyContact;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;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,oBAAoB,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA6B;EACxD,oBACE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE;IACE,SAAS,EAAEN,MAAM,CAACI,KADpB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACG,MAAM,EAAEH;IAAT;EAH3B,EADF,eAME;IAAG,SAAS,EAAEJ,MAAM,CAACK;EAArB,GAA+BA,OAA/B,CANF,CADF;AAUD,CAXD;;AAaAF,oBAAoB,CAACJ,SAArB,2CAAiCA,SAAjC;AAEA,eAAeI,oBAAf"}
1
+ {"version":3,"file":"index.js","names":["React","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","PrivacyPolicyContact","title","content","container","__html"],"sources":["../../../src/molecule/privacy-policy-contact/index.tsx"],"sourcesContent":["import React from 'react';\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 PrivacyPolicyContact = ({title, content}: Props) => {\n return (\n <div className={styles.container}>\n <div\n className={styles.title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <p className={styles.content}>{content}</p>\n </div>\n );\n};\n\nPrivacyPolicyContact.propTypes = propTypes;\n\nexport default PrivacyPolicyContact;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;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,oBAAoB,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA6B;EACxD,oBACE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE;IACE,SAAS,EAAEN,MAAM,CAACI,KADpB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACG,MAAM,EAAEH;IAAT;EAH3B,EADF,eAME;IAAG,SAAS,EAAEJ,MAAM,CAACK;EAArB,GAA+BA,OAA/B,CANF,CADF;AAUD,CAXD;;AAaAF,oBAAoB,CAACJ,SAArB,2CAAiCA,SAAjC;AAEA,eAAeI,oBAAf"}
@@ -16,6 +16,9 @@ declare const FAQArticlePage: {
16
16
  'aria-label': import("prop-types").Requireable<string>;
17
17
  icon: import("prop-types").Requireable<string>;
18
18
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ link: import("prop-types").Requireable<import("prop-types").InferProps<{
20
+ href: import("prop-types").Requireable<string>;
21
+ }>>;
19
22
  }>>;
20
23
  privacyPolicyContact: import("prop-types").Requireable<import("prop-types").InferProps<{
21
24
  title: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,KAAK,EAAa,MAAM,SAAS,CAAC;AAMrD,QAAA,MAAM,cAAc;+EAMjB,KAAK;;;;;;;;;;;;;;;;;;;;;CAkCP,CAAC;AAIF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,KAAK,EAAa,MAAM,SAAS,CAAC;AAMrD,QAAA,MAAM,cAAc;+EAMjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;CAkCP,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -14,6 +14,9 @@ export declare const propTypes: {
14
14
  'aria-label': PropTypes.Requireable<string>;
15
15
  icon: PropTypes.Requireable<string>;
16
16
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
17
+ link: PropTypes.Requireable<PropTypes.InferProps<{
18
+ href: PropTypes.Requireable<string>;
19
+ }>>;
17
20
  }>>;
18
21
  privacyPolicyContact: PropTypes.Requireable<PropTypes.InferProps<{
19
22
  title: PropTypes.Requireable<string>;
@@ -35,6 +38,9 @@ export declare type Props = {
35
38
  'data-name': string;
36
39
  'aria-label': string;
37
40
  icon: string;
41
+ link: {
42
+ href?: string;
43
+ };
38
44
  onClick: () => void;
39
45
  };
40
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AAExD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAkBrB,CAAC;AAEF,oBAAY,UAAU,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AAEzE,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,YAAY,CAAC;IACnC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AAExD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC;AAEF,oBAAY,UAAU,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AAEzE,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,YAAY,CAAC;IACnC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACJ,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;QACF,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC"}
@@ -13,7 +13,10 @@ export const propTypes = {
13
13
  'data-name': PropTypes.string,
14
14
  'aria-label': PropTypes.string,
15
15
  icon: PropTypes.string,
16
- onClick: PropTypes.func
16
+ onClick: PropTypes.func,
17
+ link: PropTypes.shape({
18
+ href: PropTypes.string
19
+ })
17
20
  }),
18
21
  privacyPolicyContact: PropTypes.shape(ContactPropTypes)
19
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","propTypes","ContactPropTypes","subArticles","arrayOf","shape","subTitle","string","text","image","backButtonText","title","backButton","size","icon","onClick","func","privacyPolicyContact"],"sources":["../../../../src/template/common/faq-article-page/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {\n Props as ContactProps,\n propTypes as ContactPropTypes\n} from '../../../molecule/privacy-policy-contact/types';\n\nexport const propTypes = {\n subArticles: PropTypes.arrayOf(\n PropTypes.shape({\n subTitle: PropTypes.string,\n text: PropTypes.string,\n image: PropTypes.string,\n backButtonText: PropTypes.string\n })\n ),\n title: PropTypes.string,\n backButton: PropTypes.shape({\n size: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func\n }),\n privacyPolicyContact: PropTypes.shape(ContactPropTypes)\n};\n\nexport type SubArticle = {subTitle: string; text: string; image: string};\n\nexport type Props = {\n subArticles: SubArticle[];\n backButtonText: string;\n title: string;\n privacyPolicyContact: ContactProps;\n backButton: {\n size: string;\n 'data-name': string;\n 'aria-label': string;\n icon: string;\n onClick: () => void;\n };\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAEEC,SAAS,IAAIC,gBAFf,QAGO,gDAHP;AAKA,OAAO,MAAMD,SAAS,GAAG;EACvBE,WAAW,EAAEH,SAAS,CAACI,OAAV,CACXJ,SAAS,CAACK,KAAV,CAAgB;IACdC,QAAQ,EAAEN,SAAS,CAACO,MADN;IAEdC,IAAI,EAAER,SAAS,CAACO,MAFF;IAGdE,KAAK,EAAET,SAAS,CAACO,MAHH;IAIdG,cAAc,EAAEV,SAAS,CAACO;EAJZ,CAAhB,CADW,CADU;EASvBI,KAAK,EAAEX,SAAS,CAACO,MATM;EAUvBK,UAAU,EAAEZ,SAAS,CAACK,KAAV,CAAgB;IAC1BQ,IAAI,EAAEb,SAAS,CAACO,MADU;IAE1B,aAAaP,SAAS,CAACO,MAFG;IAG1B,cAAcP,SAAS,CAACO,MAHE;IAI1BO,IAAI,EAAEd,SAAS,CAACO,MAJU;IAK1BQ,OAAO,EAAEf,SAAS,CAACgB;EALO,CAAhB,CAVW;EAiBvBC,oBAAoB,EAAEjB,SAAS,CAACK,KAAV,CAAgBH,gBAAhB;AAjBC,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["PropTypes","propTypes","ContactPropTypes","subArticles","arrayOf","shape","subTitle","string","text","image","backButtonText","title","backButton","size","icon","onClick","func","link","href","privacyPolicyContact"],"sources":["../../../../src/template/common/faq-article-page/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {\n Props as ContactProps,\n propTypes as ContactPropTypes\n} from '../../../molecule/privacy-policy-contact/types';\n\nexport const propTypes = {\n subArticles: PropTypes.arrayOf(\n PropTypes.shape({\n subTitle: PropTypes.string,\n text: PropTypes.string,\n image: PropTypes.string,\n backButtonText: PropTypes.string\n })\n ),\n title: PropTypes.string,\n backButton: PropTypes.shape({\n size: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string\n })\n }),\n privacyPolicyContact: PropTypes.shape(ContactPropTypes)\n};\n\nexport type SubArticle = {subTitle: string; text: string; image: string};\n\nexport type Props = {\n subArticles: SubArticle[];\n backButtonText: string;\n title: string;\n privacyPolicyContact: ContactProps;\n backButton: {\n size: string;\n 'data-name': string;\n 'aria-label': string;\n icon: string;\n link: {\n href?: string;\n };\n onClick: () => void;\n };\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAEEC,SAAS,IAAIC,gBAFf,QAGO,gDAHP;AAKA,OAAO,MAAMD,SAAS,GAAG;EACvBE,WAAW,EAAEH,SAAS,CAACI,OAAV,CACXJ,SAAS,CAACK,KAAV,CAAgB;IACdC,QAAQ,EAAEN,SAAS,CAACO,MADN;IAEdC,IAAI,EAAER,SAAS,CAACO,MAFF;IAGdE,KAAK,EAAET,SAAS,CAACO,MAHH;IAIdG,cAAc,EAAEV,SAAS,CAACO;EAJZ,CAAhB,CADW,CADU;EASvBI,KAAK,EAAEX,SAAS,CAACO,MATM;EAUvBK,UAAU,EAAEZ,SAAS,CAACK,KAAV,CAAgB;IAC1BQ,IAAI,EAAEb,SAAS,CAACO,MADU;IAE1B,aAAaP,SAAS,CAACO,MAFG;IAG1B,cAAcP,SAAS,CAACO,MAHE;IAI1BO,IAAI,EAAEd,SAAS,CAACO,MAJU;IAK1BQ,OAAO,EAAEf,SAAS,CAACgB,IALO;IAM1BC,IAAI,EAAEjB,SAAS,CAACK,KAAV,CAAgB;MACpBa,IAAI,EAAElB,SAAS,CAACO;IADI,CAAhB;EANoB,CAAhB,CAVW;EAoBvBY,oBAAoB,EAAEnB,SAAS,CAACK,KAAV,CAAgBH,gBAAhB;AApBC,CAAlB"}
@@ -31,6 +31,7 @@ declare const FAQPage: {
31
31
  text: import("prop-types").Requireable<string>;
32
32
  isSelected: import("prop-types").Requireable<boolean>;
33
33
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
34
+ ariaLabel: import("prop-types").Requireable<string>;
34
35
  }> | null | undefined)[]>;
35
36
  }>>;
36
37
  expandableList: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -42,6 +43,7 @@ declare const FAQPage: {
42
43
  content: import("prop-types").Requireable<string>;
43
44
  image: import("prop-types").Requireable<string>;
44
45
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
46
+ ariaLabel: import("prop-types").Requireable<string>;
45
47
  }> | null | undefined)[]>;
46
48
  }>>;
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,OAAO;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBhF,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,OAAO;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBhF,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -32,6 +32,7 @@ export declare const propTypes: {
32
32
  text: PropTypes.Requireable<string>;
33
33
  isSelected: PropTypes.Requireable<boolean>;
34
34
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ ariaLabel: PropTypes.Requireable<string>;
35
36
  }> | null | undefined)[]>;
36
37
  }>>;
37
38
  expandableList: PropTypes.Requireable<PropTypes.InferProps<{
@@ -43,6 +44,7 @@ export declare const propTypes: {
43
44
  content: PropTypes.Requireable<string>;
44
45
  image: PropTypes.Requireable<string>;
45
46
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
47
+ ariaLabel: PropTypes.Requireable<string>;
46
48
  }> | null | undefined)[]>;
47
49
  }>>;
48
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -31,6 +31,7 @@ declare const PrivacyPolicy: {
31
31
  text: import("prop-types").Requireable<string>;
32
32
  isSelected: import("prop-types").Requireable<boolean>;
33
33
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
34
+ ariaLabel: import("prop-types").Requireable<string>;
34
35
  }> | null | undefined)[]>;
35
36
  }>>;
36
37
  expandableList: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -42,6 +43,7 @@ declare const PrivacyPolicy: {
42
43
  content: import("prop-types").Requireable<string>;
43
44
  image: import("prop-types").Requireable<string>;
44
45
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
46
+ ariaLabel: import("prop-types").Requireable<string>;
45
47
  }> | null | undefined)[]>;
46
48
  }>>;
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBtF,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBtF,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -32,6 +32,7 @@ export declare const propTypes: {
32
32
  text: PropTypes.Requireable<string>;
33
33
  isSelected: PropTypes.Requireable<boolean>;
34
34
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ ariaLabel: PropTypes.Requireable<string>;
35
36
  }> | null | undefined)[]>;
36
37
  }>>;
37
38
  expandableList: PropTypes.Requireable<PropTypes.InferProps<{
@@ -43,6 +44,7 @@ export declare const propTypes: {
43
44
  content: PropTypes.Requireable<string>;
44
45
  image: PropTypes.Requireable<string>;
45
46
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
47
+ ariaLabel: PropTypes.Requireable<string>;
46
48
  }> | null | undefined)[]>;
47
49
  }>>;
48
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,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,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -4,7 +4,7 @@ export declare const ICONS: {
4
4
  arrow: any;
5
5
  };
6
6
  declare const ExpandableItem: {
7
- ({ icon, title, isExpended, isLink, content, onClick, image }: Props): JSX.Element;
7
+ ({ icon, title, isExpended, isLink, content, onClick, image, ariaLabel }: Props): JSX.Element;
8
8
  propTypes: {
9
9
  title: import("prop-types").Requireable<string>;
10
10
  icon: import("prop-types").Requireable<string>;
@@ -13,6 +13,7 @@ declare const ExpandableItem: {
13
13
  content: import("prop-types").Requireable<string>;
14
14
  image: import("prop-types").Requireable<string>;
15
15
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
16
+ ariaLabel: import("prop-types").Requireable<string>;
16
17
  };
17
18
  };
18
19
  export default ExpandableItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;mEAAgE,KAAK;;;;;;;;;;CA8BxF,CAAC;AAGF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;8EASjB,KAAK;;;;;;;;;;;CAwDP,CAAC;AAGF,eAAe,cAAc,CAAC"}
@@ -27,19 +27,35 @@ const ExpandableItem = ({
27
27
  isLink,
28
28
  content,
29
29
  onClick,
30
- image
30
+ image,
31
+ ariaLabel
31
32
  }) => {
32
33
  const Icon = ICONS[icon];
33
34
  return /*#__PURE__*/_react.default.createElement("div", {
34
35
  className: isExpended ? _style.default.expendedContainer : _style.default.container
35
- }, /*#__PURE__*/_react.default.createElement("div", {
36
+ }, isLink ? /*#__PURE__*/_react.default.createElement("a", {
36
37
  className: (0, _classnames.default)(_style.default.header, isExpended ? _style.default.expendedHeader : null),
37
- onClick: onClick
38
+ onClick: onClick,
39
+ "aria-label": ariaLabel
38
40
  }, /*#__PURE__*/_react.default.createElement("h3", {
39
41
  className: _style.default.title
40
42
  }, title), Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
41
43
  className: (0, _classnames.default)(_style.default.icon, isExpended ? _style.default.expendedIcon : null, isLink ? _style.default.linkIcon : null)
42
- }) : null), isExpended ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
44
+ }) : null) : /*#__PURE__*/_react.default.createElement("div", {
45
+ className: (0, _classnames.default)(_style.default.header, isExpended ? _style.default.expendedHeader : null),
46
+ onClick: onClick,
47
+ id: `${title}_expended_item_id`,
48
+ "aria-controls": `${title}_expended_item_aria-controls`,
49
+ "aria-expanded": isExpended
50
+ }, /*#__PURE__*/_react.default.createElement("h3", {
51
+ className: _style.default.title
52
+ }, title), Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
53
+ className: (0, _classnames.default)(_style.default.icon, isExpended ? _style.default.expendedIcon : null, isLink ? _style.default.linkIcon : null)
54
+ }) : null), isExpended ? /*#__PURE__*/_react.default.createElement("div", {
55
+ id: `${title}_expended_item_aria-controls`,
56
+ role: "region",
57
+ "aria-labelledby": `${title}_expended_item_id`
58
+ }, /*#__PURE__*/_react.default.createElement("div", {
43
59
  className: _style.default.content // eslint-disable-next-line react/no-danger
44
60
  ,
45
61
  dangerouslySetInnerHTML: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","Icon","styles","expendedContainer","container","classnames","header","expendedHeader","expendedIcon","linkIcon","__html","propTypes"],"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}>\n <div\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n >\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;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,UAAd;EAA0BC,MAA1B;EAAkCC,OAAlC;EAA2CC,OAA3C;EAAoDC;AAApD,CAAD,KAAuE;EAC5F,MAAMC,IAAI,GAAGX,KAAK,CAACI,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGM,cAAA,CAAOC,iBAAV,GAA8BD,cAAA,CAAOE;EAA/D,gBACE;IACE,SAAS,EAAE,IAAAC,mBAAA,EAAWH,cAAA,CAAOI,MAAlB,EAA0BV,UAAU,GAAGM,cAAA,CAAOK,cAAV,GAA2B,IAA/D,CADb;IAEE,OAAO,EAAER;EAFX,gBAIE;IAAI,SAAS,EAAEG,cAAA,CAAOP;EAAtB,GAA8BA,KAA9B,CAJF,EAKGM,IAAI,gBACH,6BAAC,IAAD;IACE,SAAS,EAAE,IAAAI,mBAAA,EACTH,cAAA,CAAOR,IADE,EAETE,UAAU,GAAGM,cAAA,CAAOM,YAAV,GAAyB,IAF1B,EAGTX,MAAM,GAAGK,cAAA,CAAOO,QAAV,GAAqB,IAHlB;EADb,EADG,GAQD,IAbN,CADF,EAgBGb,UAAU,gBACT,uDACE;IACE,SAAS,EAAEM,cAAA,CAAOJ,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACY,MAAM,EAAEZ;IAAT;EAF3B,EADF,EAKGE,KAAK,gBAAG;IAAK,SAAS,EAAEE,cAAA,CAAOF,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IALnE,CADS,GAQP,IAxBN,CADF;AA4BD,CA9BD;;AAgCAP,cAAc,CAACkB,SAAf,2CAA2BA,gBAA3B;eACelB,c"}
1
+ {"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","ariaLabel","Icon","styles","expendedContainer","container","classnames","header","expendedHeader","expendedIcon","linkIcon","__html","propTypes"],"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 = ({\n icon,\n title,\n isExpended,\n isLink,\n content,\n onClick,\n image,\n ariaLabel\n}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container}>\n {isLink ? (\n <a\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n aria-label={ariaLabel}\n >\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 </a>\n ) : (\n <div\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n id={`${title}_expended_item_id`}\n aria-controls={`${title}_expended_item_aria-controls`}\n aria-expanded={isExpended}\n >\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 )}\n {isExpended ? (\n <div\n id={`${title}_expended_item_aria-controls`}\n role=\"region\"\n aria-labelledby={`${title}_expended_item_id`}\n >\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;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,cAAc,GAAG,CAAC;EACtBC,IADsB;EAEtBC,KAFsB;EAGtBC,UAHsB;EAItBC,MAJsB;EAKtBC,OALsB;EAMtBC,OANsB;EAOtBC,KAPsB;EAQtBC;AARsB,CAAD,KASV;EACX,MAAMC,IAAI,GAAGZ,KAAK,CAACI,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGO,cAAA,CAAOC,iBAAV,GAA8BD,cAAA,CAAOE;EAA/D,GACGR,MAAM,gBACL;IACE,SAAS,EAAE,IAAAS,mBAAA,EAAWH,cAAA,CAAOI,MAAlB,EAA0BX,UAAU,GAAGO,cAAA,CAAOK,cAAV,GAA2B,IAA/D,CADb;IAEE,OAAO,EAAET,OAFX;IAGE,cAAYE;EAHd,gBAKE;IAAI,SAAS,EAAEE,cAAA,CAAOR;EAAtB,GAA8BA,KAA9B,CALF,EAMGO,IAAI,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 export declare const propTypes: {
7
7
  content: PropTypes.Requireable<string>;
8
8
  image: PropTypes.Requireable<string>;
9
9
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
10
+ ariaLabel: PropTypes.Requireable<string>;
10
11
  };
11
12
  export declare type Props = {
12
13
  title: string;
13
14
  icon: 'arrow';
14
15
  isExpended: boolean;
15
16
  content: string;
17
+ ariaLabel?: string;
16
18
  isLink?: boolean;
17
19
  image?: string;
18
20
  onClick: () => void;
@@ -1 +1 @@
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
+ {"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;;;;;;;;;CASrB,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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
@@ -14,7 +14,8 @@ const propTypes = {
14
14
  isLink: _propTypes.default.bool,
15
15
  content: _propTypes.default.string,
16
16
  image: _propTypes.default.string,
17
- onClick: _propTypes.default.func
17
+ onClick: _propTypes.default.func,
18
+ ariaLabel: _propTypes.default.string
18
19
  };
19
20
  exports.propTypes = propTypes;
20
21
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","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;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEJ,kBAAA,CAAUK,IAHC;EAIvBC,MAAM,EAAEN,kBAAA,CAAUK,IAJK;EAKvBE,OAAO,EAAEP,kBAAA,CAAUC,MALI;EAMvBO,KAAK,EAAER,kBAAA,CAAUC,MANM;EAOvBQ,OAAO,EAAET,kBAAA,CAAUU;AAPI,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","icon","oneOf","isExpended","bool","isLink","content","image","onClick","func","ariaLabel"],"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 ariaLabel: PropTypes.string\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n ariaLabel?: string;\n isLink?: boolean;\n image?: string;\n onClick: () => void;\n};\n"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEJ,kBAAA,CAAUK,IAHC;EAIvBC,MAAM,EAAEN,kBAAA,CAAUK,IAJK;EAKvBE,OAAO,EAAEP,kBAAA,CAAUC,MALI;EAMvBO,KAAK,EAAER,kBAAA,CAAUC,MANM;EAOvBQ,OAAO,EAAET,kBAAA,CAAUU,IAPI;EAQvBC,SAAS,EAAEX,kBAAA,CAAUC;AARE,CAAlB"}
@@ -11,6 +11,7 @@ declare const ExpandableList: {
11
11
  content: import("prop-types").Requireable<string>;
12
12
  image: import("prop-types").Requireable<string>;
13
13
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
14
+ ariaLabel: import("prop-types").Requireable<string>;
14
15
  }> | null | undefined)[]>;
15
16
  };
16
17
  };
@@ -1 +1 @@
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;;;;;;;;;;;;CAgBrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
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;;;;;;;;;;;;;CAgBrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -9,6 +9,7 @@ export declare const propTypes: {
9
9
  content: PropTypes.Requireable<string>;
10
10
  image: PropTypes.Requireable<string>;
11
11
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
12
+ ariaLabel: PropTypes.Requireable<string>;
12
13
  }> | null | undefined)[]>;
13
14
  };
14
15
  export declare type Props = {
@@ -1 +1 @@
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
+ {"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"}
@@ -16,6 +16,7 @@ declare const MenuLinks: {
16
16
  text: import("prop-types").Requireable<string>;
17
17
  isSelected: import("prop-types").Requireable<boolean>;
18
18
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ ariaLabel: import("prop-types").Requireable<string>;
19
20
  }> | null | undefined)[]>;
20
21
  };
21
22
  };
@@ -1 +1 @@
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;wFAOZ,KAAK;;;;;;;;;;;;;;;;;CAsEP,CAAC;AAIF,eAAe,SAAS,CAAC"}
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;wFAOZ,KAAK;;;;;;;;;;;;;;;;;;CAsEP,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -42,7 +42,7 @@ const MenuLinks = ({
42
42
 
43
43
  const handleOnclickShowMore = () => setIsOpen(!isOpen);
44
44
 
45
- return /*#__PURE__*/_react.default.createElement("div", {
45
+ return /*#__PURE__*/_react.default.createElement("nav", {
46
46
  className: _style.default.container
47
47
  }, /*#__PURE__*/_react.default.createElement("h2", {
48
48
  className: _style.default.title
@@ -73,10 +73,11 @@ const MenuLinks = ({
73
73
  className: _style.default.flexContainer
74
74
  }, Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
75
75
  className: (0, _classnames.default)(_style.default.icon, item.isSelected ? _style.default.selectedIcon : null)
76
- }) : null, withScroll ? /*#__PURE__*/_react.default.createElement("a", {
76
+ }) : null, /*#__PURE__*/_react.default.createElement("a", {
77
77
  className: _style.default.link,
78
- href: `#menu-link-item-${index}`
79
- }, Item) : Item));
78
+ href: withScroll ? `#menu-link-item-${index}` : undefined,
79
+ "aria-label": item.ariaLabel
80
+ }, Item)));
80
81
  }), !isDesktopMode ? /*#__PURE__*/_react.default.createElement("li", {
81
82
  // eslint-disable-next-line react/jsx-no-bind
82
83
  onClick: handleOnclickShowMore,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ICONS","mobilePhone","MobilePhone","chatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","networkAlert","NetworkAlert","binoculaire","Binoculaire","contentBook","ContentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","withScroll","isOpen","setIsOpen","useState","itemsToDisplay","handleOnclickShowMore","styles","container","list","map","item","index","handleOnclick","Icon","icon","Item","flexContainer","isSelected","selectedItem","undefined","text","classnames","arrowIcon","selectedIcon","border","selectedBorder","link","showLessText","showMoreText","showLessIcon","showMoreIcon","propTypes"],"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 NovaLineObjectsBinoculars 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 = ({\n items,\n title,\n showMoreItem,\n numberOfDisplayedItems,\n isDesktopMode,\n withScroll = false\n}: 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 const Item = (\n <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>{item.text}</span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\n );\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 {withScroll ? (\n <a className={styles.link} href={`#menu-link-item-${index}`}>\n {Item}\n </a>\n ) : (\n Item\n )}\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":";;;;;;;AAAA;;AACA;;AACA;;AASA;;AACA;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,WAAW,EAAEC,mCADD;EAEZC,4BAA4B,EAAEC,2DAFlB;EAGZC,YAAY,EAAEC,sCAHF;EAIZC,WAAW,EAAEC,oCAJD;EAKZC,WAAW,EAAEC;AALD,CAAd;;AAQA,MAAMC,SAAS,GAAG,CAAC;EACjBC,KADiB;EAEjBC,KAFiB;EAGjBC,YAHiB;EAIjBC,sBAJiB;EAKjBC,aALiB;EAMjBC,UAAU,GAAG;AANI,CAAD,KAOL;EACX,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,IAAAC,eAAA,EAAkB,KAAlB,CAA5B;EACA,MAAMC,cAAc,GAAGL,aAAa,IAAIE,MAAjB,GAA0BN,KAA1B,GAAkC,qBAAM,CAAN,EAASG,sBAAT,EAAiCH,KAAjC,CAAzD;;EACA,MAAMU,qBAAqB,GAAG,MAAMH,SAAS,CAAC,CAACD,MAAF,CAA7C;;EAEA,oBACE;IAAK,SAAS,EAAEK,cAAA,CAAOC;EAAvB,gBACE;IAAI,SAAS,EAAED,c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;MAA2B,IAAI,EAAG,mBAAkBf,KAAM;IAA1D,GACGI,IADH,CADS,GAKTA,IAdJ,CAPF,CADF;EA2BD,CA3CA,CADH,EA6CG,CAAChB,aAAD,gBACC;IACE;IACA,OAAO,EAAEM,qBAFX;IAGE,GAAG,EAAG,0BAHR;IAIE,SAAS,EAAE,IAAAgB,mBAAA,EAAWf,cAAA,CAAOT,YAAlB,EAAgCS,cAAA,CAAOI,IAAvC;EAJb,gBAME;IAAK,SAAS,EAAEJ,cAAA,CAAOkB;EAAvB,EANF,eAOE,2CACGvB,MAAM,GAAGJ,YAAY,CAAC8B,YAAhB,GAA+B9B,YAAY,CAAC+B,YADrD,eAEE,6BAAC,6CAAD;IAAW,SAAS,EAAE3B,MAAM,GAAGK,cAAA,CAAOuB,YAAV,GAAyBvB,cAAA,CAAOwB;EAA5D,EAFF,CAPF,CADD,GAaG,IA1DN,CAFF,CADF;AAiED,CA7ED;;AA+EApC,SAAS,CAACqC,SAAV,2CAAsBA,gBAAtB;eAEerC,S"}
1
+ {"version":3,"file":"index.js","names":["ICONS","mobilePhone","MobilePhone","chatBubbleCircleQuestionMark","ChatBubbleCircleQuestionMark","networkAlert","NetworkAlert","binoculaire","Binoculaire","contentBook","ContentBook","MenuLinks","items","title","showMoreItem","numberOfDisplayedItems","isDesktopMode","withScroll","isOpen","setIsOpen","useState","itemsToDisplay","handleOnclickShowMore","styles","container","list","map","item","index","handleOnclick","Icon","icon","Item","flexContainer","isSelected","selectedItem","undefined","text","classnames","arrowIcon","selectedIcon","border","selectedBorder","link","ariaLabel","showLessText","showMoreText","showLessIcon","showMoreIcon","propTypes"],"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 NovaLineObjectsBinoculars 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 = ({\n items,\n title,\n showMoreItem,\n numberOfDisplayedItems,\n isDesktopMode,\n withScroll = false\n}: 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 <nav 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 const Item = (\n <div className={styles.flexContainer}>\n <span className={item.isSelected ? styles.selectedItem : undefined}>{item.text}</span>\n {Icon ? (\n <ArrowIcon\n className={classnames(\n styles.arrowIcon,\n item.isSelected ? styles.selectedIcon : null\n )}\n />\n ) : null}\n </div>\n );\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 <a\n className={styles.link}\n href={withScroll ? `#menu-link-item-${index}` : undefined}\n aria-label={item.ariaLabel}\n >\n {Item}\n </a>\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 </nav>\n );\n};\n\nMenuLinks.propTypes = propTypes;\n\nexport default MenuLinks;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AASA;;AACA;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,WAAW,EAAEC,mCADD;EAEZC,4BAA4B,EAAEC,2DAFlB;EAGZC,YAAY,EAAEC,sCAHF;EAIZC,WAAW,EAAEC,oCAJD;EAKZC,WAAW,EAAEC;AALD,CAAd;;AAQA,MAAMC,SAAS,GAAG,CAAC;EACjBC,KADiB;EAEjBC,KAFiB;EAGjBC,YAHiB;EAIjBC,sBAJiB;EAKjBC,aALiB;EAMjBC,UAAU,GAAG;AANI,CAAD,KAOL;EACX,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,IAAAC,eAAA,EAAkB,KAAlB,CAA5B;EACA,MAAMC,cAAc,GAAGL,aAAa,IAAIE,MAAjB,GAA0BN,KAA1B,GAAkC,qBAAM,CAAN,EAASG,sBAAT,EAAiCH,KAAjC,CAAzD;;EACA,MAAMU,qBAAqB,GAAG,MAAMH,SAAS,CAAC,CAACD,MAAF,CAA7C;;EAEA,oBACE;IAAK,SAAS,EAAEK,cAAA,CAAOC;EAAvB,gBACE;IAAI,SAAS,EAAED,cAAA,CAAOV;EAAtB,GAA8BA,KAA9B,CADF,eAEE;IAAI,SAAS,EAAEU,cAAA,CAAOE,IAAtB;IAA4B,aAAU;EAAtC,GACGJ,cAAc,CAACK,GAAf,CAAmB,CAACC,IAAD,EAAOC,KAAP,KAAiB;IACnC,MAAM;MAACC;IAAD,IAAkBF,IAAxB;IACA,MAAMG,IAAI,GAAGH,IAAI,CAACI,IAAL,GAAY/B,KAAK,CAAC2B,IAAI,CAACI,IAAN,CAAjB,GAA+B,IAA5C;;IACA,M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;IAAK,SAAS,EAAEJ,cAAA,CAAOkB;EAAvB,EANF,eAOE,2CACGvB,MAAM,GAAGJ,YAAY,CAAC+B,YAAhB,GAA+B/B,YAAY,CAACgC,YADrD,eAEE,6BAAC,6CAAD;IAAW,SAAS,EAAE5B,MAAM,GAAGK,cAAA,CAAOwB,YAAV,GAAyBxB,cAAA,CAAOyB;EAA5D,EAFF,CAPF,CADD,GAaG,IA1DN,CAFF,CADF;AAiED,CA7ED;;AA+EArC,SAAS,CAACsC,SAAV,2CAAsBA,gBAAtB;eAEetC,S"}
@@ -25,6 +25,7 @@
25
25
  .link {
26
26
  text-decoration: none;
27
27
  color: cm_grey_700;
28
+ flex: 1;
28
29
  }
29
30
 
30
31
  .title {
@@ -68,9 +69,9 @@
68
69
 
69
70
  .flexContainer {
70
71
  display: flex;
71
- justify-content: space-between;
72
72
  align-items: center;
73
73
  width: 100%;
74
+ justify-content: space-between;
74
75
  }
75
76
  .border {
76
77
  width: 4px;
@@ -117,7 +118,7 @@
117
118
  }
118
119
 
119
120
  .selectedItem:hover {
120
- text-decoration-color: cm_primary_blue!important;
121
+ text-decoration-color: cm_primary_blue;
121
122
  color: cm_primary_blue;
122
123
  }
123
124
  .showMoreIcon {
@@ -13,11 +13,13 @@ export declare const propTypes: {
13
13
  text: PropTypes.Requireable<string>;
14
14
  isSelected: PropTypes.Requireable<boolean>;
15
15
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
16
+ ariaLabel: PropTypes.Requireable<string>;
16
17
  }> | null | undefined)[]>;
17
18
  };
18
19
  export declare type Item = {
19
20
  text: string;
20
21
  isSelected?: boolean;
22
+ ariaLabel?: string;
21
23
  handleOnclick: () => void;
22
24
  icon?: IconsType;
23
25
  };
@@ -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;;;;;;;;;;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AC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
@@ -20,7 +20,8 @@ const propTypes = {
20
20
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
21
21
  text: _propTypes.default.string,
22
22
  isSelected: _propTypes.default.bool,
23
- handleOnclick: _propTypes.default.func
23
+ handleOnclick: _propTypes.default.func,
24
+ ariaLabel: _propTypes.default.string
24
25
  }))
25
26
  };
26
27
  exports.propTypes = propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","numberOfDisplayedItems","number","isDesktopMode","bool","withScroll","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 withScroll: 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 icon?: IconsType;\n};\n\nexport type ShowMoreItem = {\n showMoreText: string;\n showLessText: string;\n};\n\nexport type IconsType =\n | 'mobilePhone'\n | 'chatBubbleCircleQuestionMark'\n | 'networkAlert'\n | 'binoculaire'\n | 'contentBook';\n\nexport type Props = {\n title: string;\n isDesktopMode: boolean;\n withScroll?: 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,UAAU,EAAEN,kBAAA,CAAUK,IAJC;EAKvBE,YAAY,EAAEP,kBAAA,CAAUQ,KAAV,CAAgB;IAC5BC,YAAY,EAAET,kBAAA,CAAUC,MADI;IAE5BS,YAAY,EAAEV,kBAAA,CAAUC,MAFI;IAG5BU,UAAU,EAAEX,kBAAA,CAAUK;EAHM,CAAhB,CALS;EAUvBO,KAAK,EAAEZ,kBAAA,CAAUa,OAAV,CACLb,kBAAA,CAAUQ,KAAV,CAAgB;IACdM,IAAI,EAAEd,kBAAA,CAAUC,MADF;IAEdU,UAAU,EAAEX,kBAAA,CAAUK,IAFR;IAGdU,aAAa,EAAEf,kBAAA,CAAUgB;EAHX,CAAhB,CADK;AAVgB,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","numberOfDisplayedItems","number","isDesktopMode","bool","withScroll","showMoreItem","shape","showMoreText","showLessText","isSelected","items","arrayOf","text","handleOnclick","func","ariaLabel"],"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 withScroll: 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 ariaLabel: PropTypes.string\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n ariaLabel?: string;\n handleOnclick: () => void;\n icon?: IconsType;\n};\n\nexport type ShowMoreItem = {\n showMoreText: string;\n showLessText: string;\n};\n\nexport type IconsType =\n | 'mobilePhone'\n | 'chatBubbleCircleQuestionMark'\n | 'networkAlert'\n | 'binoculaire'\n | 'contentBook';\n\nexport type Props = {\n title: string;\n isDesktopMode: boolean;\n withScroll?: 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,UAAU,EAAEN,kBAAA,CAAUK,IAJC;EAKvBE,YAAY,EAAEP,kBAAA,CAAUQ,KAAV,CAAgB;IAC5BC,YAAY,EAAET,kBAAA,CAAUC,MADI;IAE5BS,YAAY,EAAEV,kBAAA,CAAUC,MAFI;IAG5BU,UAAU,EAAEX,kBAAA,CAAUK;EAHM,CAAhB,CALS;EAUvBO,KAAK,EAAEZ,kBAAA,CAAUa,OAAV,CACLb,kBAAA,CAAUQ,KAAV,CAAgB;IACdM,IAAI,EAAEd,kBAAA,CAAUC,MADF;IAEdU,UAAU,EAAEX,kBAAA,CAAUK,IAFR;IAGdU,aAAa,EAAEf,kBAAA,CAAUgB,IAHX;IAIdC,SAAS,EAAEjB,kBAAA,CAAUC;EAJP,CAAhB,CADK;AAVgB,CAAlB"}
@@ -24,7 +24,7 @@ const PrivacyPolicyContact = ({
24
24
  }) => {
25
25
  return /*#__PURE__*/_react.default.createElement("div", {
26
26
  className: _style.default.container
27
- }, /*#__PURE__*/_react.default.createElement("h3", {
27
+ }, /*#__PURE__*/_react.default.createElement("div", {
28
28
  className: _style.default.title // eslint-disable-next-line react/no-danger
29
29
  ,
30
30
  dangerouslySetInnerHTML: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","PrivacyPolicyContact","title","content","styles","container","__html","propTypes"],"sources":["../../../src/molecule/privacy-policy-contact/index.tsx"],"sourcesContent":["import React from 'react';\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 PrivacyPolicyContact = ({title, content}: Props) => {\n return (\n <div className={styles.container}>\n <h3\n className={styles.title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <p className={styles.content}>{content}</p>\n </div>\n );\n};\n\nPrivacyPolicyContact.propTypes = propTypes;\n\nexport default PrivacyPolicyContact;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,oBAAoB,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA6B;EACxD,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IACE,SAAS,EAAED,cAAA,CAAOF,KADpB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACI,MAAM,EAAEJ;IAAT;EAH3B,EADF,eAME;IAAG,SAAS,EAAEE,cAAA,CAAOD;EAArB,GAA+BA,OAA/B,CANF,CADF;AAUD,CAXD;;AAaAF,oBAAoB,CAACM,SAArB,2CAAiCA,gBAAjC;eAEeN,oB"}
1
+ {"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","PrivacyPolicyContact","title","content","styles","container","__html","propTypes"],"sources":["../../../src/molecule/privacy-policy-contact/index.tsx"],"sourcesContent":["import React from 'react';\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 PrivacyPolicyContact = ({title, content}: Props) => {\n return (\n <div className={styles.container}>\n <div\n className={styles.title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <p className={styles.content}>{content}</p>\n </div>\n );\n};\n\nPrivacyPolicyContact.propTypes = propTypes;\n\nexport default PrivacyPolicyContact;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,oBAAoB,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAA6B;EACxD,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IACE,SAAS,EAAED,cAAA,CAAOF,KADpB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACI,MAAM,EAAEJ;IAAT;EAH3B,EADF,eAME;IAAG,SAAS,EAAEE,cAAA,CAAOD;EAArB,GAA+BA,OAA/B,CANF,CADF;AAUD,CAXD;;AAaAF,oBAAoB,CAACM,SAArB,2CAAiCA,gBAAjC;eAEeN,oB"}
@@ -16,6 +16,9 @@ declare const FAQArticlePage: {
16
16
  'aria-label': import("prop-types").Requireable<string>;
17
17
  icon: import("prop-types").Requireable<string>;
18
18
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ link: import("prop-types").Requireable<import("prop-types").InferProps<{
20
+ href: import("prop-types").Requireable<string>;
21
+ }>>;
19
22
  }>>;
20
23
  privacyPolicyContact: import("prop-types").Requireable<import("prop-types").InferProps<{
21
24
  title: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,KAAK,EAAa,MAAM,SAAS,CAAC;AAMrD,QAAA,MAAM,cAAc;+EAMjB,KAAK;;;;;;;;;;;;;;;;;;;;;CAkCP,CAAC;AAIF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,KAAK,EAAa,MAAM,SAAS,CAAC;AAMrD,QAAA,MAAM,cAAc;+EAMjB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;CAkCP,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -14,6 +14,9 @@ export declare const propTypes: {
14
14
  'aria-label': PropTypes.Requireable<string>;
15
15
  icon: PropTypes.Requireable<string>;
16
16
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
17
+ link: PropTypes.Requireable<PropTypes.InferProps<{
18
+ href: PropTypes.Requireable<string>;
19
+ }>>;
17
20
  }>>;
18
21
  privacyPolicyContact: PropTypes.Requireable<PropTypes.InferProps<{
19
22
  title: PropTypes.Requireable<string>;
@@ -35,6 +38,9 @@ export declare type Props = {
35
38
  'data-name': string;
36
39
  'aria-label': string;
37
40
  icon: string;
41
+ link: {
42
+ href?: string;
43
+ };
38
44
  onClick: () => void;
39
45
  };
40
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AAExD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAkBrB,CAAC;AAEF,oBAAY,UAAU,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AAEzE,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,YAAY,CAAC;IACnC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-article-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AAExD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC;AAEF,oBAAY,UAAU,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AAEzE,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,YAAY,CAAC;IACnC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACJ,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;QACF,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC"}
@@ -22,7 +22,10 @@ const propTypes = {
22
22
  'data-name': _propTypes.default.string,
23
23
  'aria-label': _propTypes.default.string,
24
24
  icon: _propTypes.default.string,
25
- onClick: _propTypes.default.func
25
+ onClick: _propTypes.default.func,
26
+ link: _propTypes.default.shape({
27
+ href: _propTypes.default.string
28
+ })
26
29
  }),
27
30
  privacyPolicyContact: _propTypes.default.shape(_types.propTypes)
28
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","subArticles","PropTypes","arrayOf","shape","subTitle","string","text","image","backButtonText","title","backButton","size","icon","onClick","func","privacyPolicyContact","ContactPropTypes"],"sources":["../../../../src/template/common/faq-article-page/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {\n Props as ContactProps,\n propTypes as ContactPropTypes\n} from '../../../molecule/privacy-policy-contact/types';\n\nexport const propTypes = {\n subArticles: PropTypes.arrayOf(\n PropTypes.shape({\n subTitle: PropTypes.string,\n text: PropTypes.string,\n image: PropTypes.string,\n backButtonText: PropTypes.string\n })\n ),\n title: PropTypes.string,\n backButton: PropTypes.shape({\n size: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func\n }),\n privacyPolicyContact: PropTypes.shape(ContactPropTypes)\n};\n\nexport type SubArticle = {subTitle: string; text: string; image: string};\n\nexport type Props = {\n subArticles: SubArticle[];\n backButtonText: string;\n title: string;\n privacyPolicyContact: ContactProps;\n backButton: {\n size: string;\n 'data-name': string;\n 'aria-label': string;\n icon: string;\n onClick: () => void;\n };\n};\n"],"mappings":";;;;;AAAA;;AACA;;;;AAKO,MAAMA,SAAS,GAAG;EACvBC,WAAW,EAAEC,kBAAA,CAAUC,OAAV,CACXD,kBAAA,CAAUE,KAAV,CAAgB;IACdC,QAAQ,EAAEH,kBAAA,CAAUI,MADN;IAEdC,IAAI,EAAEL,kBAAA,CAAUI,MAFF;IAGdE,KAAK,EAAEN,kBAAA,CAAUI,MAHH;IAIdG,cAAc,EAAEP,kBAAA,CAAUI;EAJZ,CAAhB,CADW,CADU;EASvBI,KAAK,EAAER,kBAAA,CAAUI,MATM;EAUvBK,UAAU,EAAET,kBAAA,CAAUE,KAAV,CAAgB;IAC1BQ,IAAI,EAAEV,kBAAA,CAAUI,MADU;IAE1B,aAAaJ,kBAAA,CAAUI,MAFG;IAG1B,cAAcJ,kBAAA,CAAUI,MAHE;IAI1BO,IAAI,EAAEX,kBAAA,CAAUI,MAJU;IAK1BQ,OAAO,EAAEZ,kBAAA,CAAUa;EALO,CAAhB,CAVW;EAiBvBC,oBAAoB,EAAEd,kBAAA,CAAUE,KAAV,CAAgBa,gBAAhB;AAjBC,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["propTypes","subArticles","PropTypes","arrayOf","shape","subTitle","string","text","image","backButtonText","title","backButton","size","icon","onClick","func","link","href","privacyPolicyContact","ContactPropTypes"],"sources":["../../../../src/template/common/faq-article-page/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {\n Props as ContactProps,\n propTypes as ContactPropTypes\n} from '../../../molecule/privacy-policy-contact/types';\n\nexport const propTypes = {\n subArticles: PropTypes.arrayOf(\n PropTypes.shape({\n subTitle: PropTypes.string,\n text: PropTypes.string,\n image: PropTypes.string,\n backButtonText: PropTypes.string\n })\n ),\n title: PropTypes.string,\n backButton: PropTypes.shape({\n size: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string\n })\n }),\n privacyPolicyContact: PropTypes.shape(ContactPropTypes)\n};\n\nexport type SubArticle = {subTitle: string; text: string; image: string};\n\nexport type Props = {\n subArticles: SubArticle[];\n backButtonText: string;\n title: string;\n privacyPolicyContact: ContactProps;\n backButton: {\n size: string;\n 'data-name': string;\n 'aria-label': string;\n icon: string;\n link: {\n href?: string;\n };\n onClick: () => void;\n };\n};\n"],"mappings":";;;;;AAAA;;AACA;;;;AAKO,MAAMA,SAAS,GAAG;EACvBC,WAAW,EAAEC,kBAAA,CAAUC,OAAV,CACXD,kBAAA,CAAUE,KAAV,CAAgB;IACdC,QAAQ,EAAEH,kBAAA,CAAUI,MADN;IAEdC,IAAI,EAAEL,kBAAA,CAAUI,MAFF;IAGdE,KAAK,EAAEN,kBAAA,CAAUI,MAHH;IAIdG,cAAc,EAAEP,kBAAA,CAAUI;EAJZ,CAAhB,CADW,CADU;EASvBI,KAAK,EAAER,kBAAA,CAAUI,MATM;EAUvBK,UAAU,EAAET,kBAAA,CAAUE,KAAV,CAAgB;IAC1BQ,IAAI,EAAEV,kBAAA,CAAUI,MADU;IAE1B,aAAaJ,kBAAA,CAAUI,MAFG;IAG1B,cAAcJ,kBAAA,CAAUI,MAHE;IAI1BO,IAAI,EAAEX,kBAAA,CAAUI,MAJU;IAK1BQ,OAAO,EAAEZ,kBAAA,CAAUa,IALO;IAM1BC,IAAI,EAAEd,kBAAA,CAAUE,KAAV,CAAgB;MACpBa,IAAI,EAAEf,kBAAA,CAAUI;IADI,CAAhB;EANoB,CAAhB,CAVW;EAoBvBY,oBAAoB,EAAEhB,kBAAA,CAAUE,KAAV,CAAgBe,gBAAhB;AApBC,CAAlB"}
@@ -31,6 +31,7 @@ declare const FAQPage: {
31
31
  text: import("prop-types").Requireable<string>;
32
32
  isSelected: import("prop-types").Requireable<boolean>;
33
33
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
34
+ ariaLabel: import("prop-types").Requireable<string>;
34
35
  }> | null | undefined)[]>;
35
36
  }>>;
36
37
  expandableList: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -42,6 +43,7 @@ declare const FAQPage: {
42
43
  content: import("prop-types").Requireable<string>;
43
44
  image: import("prop-types").Requireable<string>;
44
45
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
46
+ ariaLabel: import("prop-types").Requireable<string>;
45
47
  }> | null | undefined)[]>;
46
48
  }>>;
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,OAAO;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBhF,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,OAAO;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBhF,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -32,6 +32,7 @@ export declare const propTypes: {
32
32
  text: PropTypes.Requireable<string>;
33
33
  isSelected: PropTypes.Requireable<boolean>;
34
34
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ ariaLabel: PropTypes.Requireable<string>;
35
36
  }> | null | undefined)[]>;
36
37
  }>>;
37
38
  expandableList: PropTypes.Requireable<PropTypes.InferProps<{
@@ -43,6 +44,7 @@ export declare const propTypes: {
43
44
  content: PropTypes.Requireable<string>;
44
45
  image: PropTypes.Requireable<string>;
45
46
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
47
+ ariaLabel: PropTypes.Requireable<string>;
46
48
  }> | null | undefined)[]>;
47
49
  }>>;
48
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/faq-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -31,6 +31,7 @@ declare const PrivacyPolicy: {
31
31
  text: import("prop-types").Requireable<string>;
32
32
  isSelected: import("prop-types").Requireable<boolean>;
33
33
  handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
34
+ ariaLabel: import("prop-types").Requireable<string>;
34
35
  }> | null | undefined)[]>;
35
36
  }>>;
36
37
  expandableList: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -42,6 +43,7 @@ declare const PrivacyPolicy: {
42
43
  content: import("prop-types").Requireable<string>;
43
44
  image: import("prop-types").Requireable<string>;
44
45
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
46
+ ariaLabel: import("prop-types").Requireable<string>;
45
47
  }> | null | undefined)[]>;
46
48
  }>>;
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBtF,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;kEAA+D,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBtF,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -32,6 +32,7 @@ export declare const propTypes: {
32
32
  text: PropTypes.Requireable<string>;
33
33
  isSelected: PropTypes.Requireable<boolean>;
34
34
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ ariaLabel: PropTypes.Requireable<string>;
35
36
  }> | null | undefined)[]>;
36
37
  }>>;
37
38
  expandableList: PropTypes.Requireable<PropTypes.InferProps<{
@@ -43,6 +44,7 @@ export declare const propTypes: {
43
44
  content: PropTypes.Requireable<string>;
44
45
  image: PropTypes.Requireable<string>;
45
46
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
47
+ ariaLabel: PropTypes.Requireable<string>;
46
48
  }> | null | undefined)[]>;
47
49
  }>>;
48
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,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,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.16.0",
3
+ "version": "11.16.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -168,5 +168,5 @@
168
168
  "last 2 versions",
169
169
  "IE 11"
170
170
  ],
171
- "gitHead": "e93be374d218c12f5a64704bcadac58964eba847"
171
+ "gitHead": "a5154a1d81b74a04f3e5e8e47639a903b3d9ad5e"
172
172
  }
@@ -1 +0,0 @@
1
- {"ignore_dirs":[]}