@coorpacademy/components 11.14.20-alpha.51 → 11.14.20-alpha.52
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.
- package/es/molecule/menu-links/index.d.ts +2 -1
- package/es/molecule/menu-links/index.d.ts.map +1 -1
- package/es/molecule/menu-links/index.js +11 -9
- package/es/molecule/menu-links/index.js.map +1 -1
- package/es/molecule/menu-links/types.d.ts +2 -0
- package/es/molecule/menu-links/types.d.ts.map +1 -1
- package/es/molecule/menu-links/types.js +1 -0
- package/es/molecule/menu-links/types.js.map +1 -1
- package/es/template/common/faq-page/index.d.ts +1 -0
- package/es/template/common/faq-page/index.d.ts.map +1 -1
- package/es/template/common/faq-page/types.d.ts +1 -0
- package/es/template/common/faq-page/types.d.ts.map +1 -1
- package/es/template/common/privacy-policy-page/index.d.ts +1 -0
- package/es/template/common/privacy-policy-page/index.d.ts.map +1 -1
- package/es/template/common/privacy-policy-page/types.d.ts +1 -0
- package/es/template/common/privacy-policy-page/types.d.ts.map +1 -1
- package/lib/molecule/menu-links/index.d.ts +2 -1
- package/lib/molecule/menu-links/index.d.ts.map +1 -1
- package/lib/molecule/menu-links/index.js +13 -9
- package/lib/molecule/menu-links/index.js.map +1 -1
- package/lib/molecule/menu-links/types.d.ts +2 -0
- package/lib/molecule/menu-links/types.d.ts.map +1 -1
- package/lib/molecule/menu-links/types.js +1 -0
- package/lib/molecule/menu-links/types.js.map +1 -1
- package/lib/template/common/faq-page/index.d.ts +1 -0
- package/lib/template/common/faq-page/index.d.ts.map +1 -1
- package/lib/template/common/faq-page/types.d.ts +1 -0
- package/lib/template/common/faq-page/types.d.ts.map +1 -1
- package/lib/template/common/privacy-policy-page/index.d.ts +1 -0
- package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -1
- package/lib/template/common/privacy-policy-page/types.d.ts +1 -0
- package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Props } from './types';
|
|
3
3
|
declare const MenuLinks: {
|
|
4
|
-
({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode }: Props): JSX.Element;
|
|
4
|
+
({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode, withScroll }: Props): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
title: import("prop-types").Requireable<string>;
|
|
7
7
|
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
8
8
|
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
9
|
+
withScroll: import("prop-types").Requireable<boolean>;
|
|
9
10
|
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
11
|
showMoreText: import("prop-types").Requireable<string>;
|
|
11
12
|
showLessText: import("prop-types").Requireable<string>;
|
|
@@ -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;
|
|
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"}
|
|
@@ -17,7 +17,8 @@ const MenuLinks = ({
|
|
|
17
17
|
title,
|
|
18
18
|
showMoreItem,
|
|
19
19
|
numberOfDisplayedItems,
|
|
20
|
-
isDesktopMode
|
|
20
|
+
isDesktopMode,
|
|
21
|
+
withScroll = false
|
|
21
22
|
}) => {
|
|
22
23
|
const [isOpen, setIsOpen] = useState(false);
|
|
23
24
|
const itemsToDisplay = isDesktopMode || isOpen ? items : _slice(0, numberOfDisplayedItems, items);
|
|
@@ -36,6 +37,13 @@ const MenuLinks = ({
|
|
|
36
37
|
handleOnclick
|
|
37
38
|
} = item;
|
|
38
39
|
const Icon = item.icon ? ICONS[item.icon] : null;
|
|
40
|
+
const Item = /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: styles.flexContainer
|
|
42
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
43
|
+
className: item.isSelected ? styles.selectedItem : undefined
|
|
44
|
+
}, item.text), Icon ? /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
45
|
+
className: classnames(styles.arrowIcon, item.isSelected ? styles.selectedIcon : null)
|
|
46
|
+
}) : null);
|
|
39
47
|
return /*#__PURE__*/React.createElement("li", {
|
|
40
48
|
onClick: handleOnclick,
|
|
41
49
|
key: `menu-link-item-${index}`,
|
|
@@ -46,16 +54,10 @@ const MenuLinks = ({
|
|
|
46
54
|
className: styles.flexContainer
|
|
47
55
|
}, Icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
48
56
|
className: classnames(styles.icon, item.isSelected ? styles.selectedIcon : null)
|
|
49
|
-
}) : null, /*#__PURE__*/React.createElement("a", {
|
|
57
|
+
}) : null, withScroll ? /*#__PURE__*/React.createElement("a", {
|
|
50
58
|
className: styles.link,
|
|
51
59
|
href: `#menu-link-item-${index}`
|
|
52
|
-
},
|
|
53
|
-
className: styles.flexContainer
|
|
54
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
55
|
-
className: item.isSelected ? styles.selectedItem : undefined
|
|
56
|
-
}, item.text), Icon ? /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
57
|
-
className: classnames(styles.arrowIcon, item.isSelected ? styles.selectedIcon : null)
|
|
58
|
-
}) : null))));
|
|
60
|
+
}, Item) : Item));
|
|
59
61
|
}), !isDesktopMode ? /*#__PURE__*/React.createElement("li", {
|
|
60
62
|
// eslint-disable-next-line react/jsx-no-bind
|
|
61
63
|
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","isOpen","setIsOpen","itemsToDisplay","handleOnclickShowMore","container","list","map","item","index","handleOnclick","Icon","icon","
|
|
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.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AFX;IAGE,GAAG,EAAG,0BAHR;IAIE,SAAS,EAAE/B,UAAU,CAACc,MAAM,CAACU,YAAR,EAAsBV,MAAM,CAACqB,IAA7B;EAJvB,gBAME;IAAK,SAAS,EAAErB,MAAM,CAACkC;EAAvB,EANF,eAOE,kCACGpB,MAAM,GAAGJ,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"}
|
|
@@ -3,6 +3,7 @@ export declare const propTypes: {
|
|
|
3
3
|
title: PropTypes.Requireable<string>;
|
|
4
4
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
5
5
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
6
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
6
7
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
8
|
showMoreText: PropTypes.Requireable<string>;
|
|
8
9
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -28,6 +29,7 @@ export declare type IconsType = 'mobilePhone' | 'chatBubbleCircleQuestionMark' |
|
|
|
28
29
|
export declare type Props = {
|
|
29
30
|
title: string;
|
|
30
31
|
isDesktopMode: boolean;
|
|
32
|
+
withScroll?: boolean;
|
|
31
33
|
showMoreItem: ShowMoreItem;
|
|
32
34
|
numberOfDisplayedItems: number;
|
|
33
35
|
items: Item[];
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEF,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,SAAS,GACjB,aAAa,GACb,8BAA8B,GAC9B,cAAc,GACd,aAAa,GACb,aAAa,CAAC;AAElB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","numberOfDisplayedItems","number","isDesktopMode","bool","showMoreItem","shape","showMoreText","showLessText","isSelected","items","arrayOf","text","handleOnclick","func"],"sources":["../../../src/molecule/menu-links/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n numberOfDisplayedItems: PropTypes.number,\n isDesktopMode: PropTypes.bool,\n showMoreItem: PropTypes.shape({\n showMoreText: PropTypes.string,\n showLessText: PropTypes.string,\n isSelected: PropTypes.bool\n }),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n isSelected: PropTypes.bool,\n handleOnclick: PropTypes.func\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n handleOnclick: () => void;\n 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 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,
|
|
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"}
|
|
@@ -21,6 +21,7 @@ declare const FAQPage: {
|
|
|
21
21
|
title: import("prop-types").Requireable<string>;
|
|
22
22
|
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
23
23
|
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
24
|
+
withScroll: import("prop-types").Requireable<boolean>;
|
|
24
25
|
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
25
26
|
showMoreText: import("prop-types").Requireable<string>;
|
|
26
27
|
showLessText: import("prop-types").Requireable<string>;
|
|
@@ -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
|
|
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"}
|
|
@@ -23,6 +23,7 @@ export declare const propTypes: {
|
|
|
23
23
|
title: PropTypes.Requireable<string>;
|
|
24
24
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
25
25
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
26
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
27
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
28
|
showMoreText: PropTypes.Requireable<string>;
|
|
28
29
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS
|
|
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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
|
|
@@ -21,6 +21,7 @@ declare const PrivacyPolicy: {
|
|
|
21
21
|
title: import("prop-types").Requireable<string>;
|
|
22
22
|
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
23
23
|
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
24
|
+
withScroll: import("prop-types").Requireable<boolean>;
|
|
24
25
|
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
25
26
|
showMoreText: import("prop-types").Requireable<string>;
|
|
26
27
|
showLessText: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BP,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -23,6 +23,7 @@ export declare const propTypes: {
|
|
|
23
23
|
title: PropTypes.Requireable<string>;
|
|
24
24
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
25
25
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
26
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
27
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
28
|
showMoreText: PropTypes.Requireable<string>;
|
|
28
29
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS
|
|
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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Props } from './types';
|
|
3
3
|
declare const MenuLinks: {
|
|
4
|
-
({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode }: Props): JSX.Element;
|
|
4
|
+
({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode, withScroll }: Props): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
title: import("prop-types").Requireable<string>;
|
|
7
7
|
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
8
8
|
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
9
|
+
withScroll: import("prop-types").Requireable<boolean>;
|
|
9
10
|
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
11
|
showMoreText: import("prop-types").Requireable<string>;
|
|
11
12
|
showLessText: import("prop-types").Requireable<string>;
|
|
@@ -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;
|
|
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"}
|
|
@@ -34,7 +34,8 @@ const MenuLinks = ({
|
|
|
34
34
|
title,
|
|
35
35
|
showMoreItem,
|
|
36
36
|
numberOfDisplayedItems,
|
|
37
|
-
isDesktopMode
|
|
37
|
+
isDesktopMode,
|
|
38
|
+
withScroll = false
|
|
38
39
|
}) => {
|
|
39
40
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
40
41
|
const itemsToDisplay = isDesktopMode || isOpen ? items : (0, _slice2.default)(0, numberOfDisplayedItems, items);
|
|
@@ -53,6 +54,15 @@ const MenuLinks = ({
|
|
|
53
54
|
handleOnclick
|
|
54
55
|
} = item;
|
|
55
56
|
const Icon = item.icon ? ICONS[item.icon] : null;
|
|
57
|
+
|
|
58
|
+
const Item = /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
+
className: _style.default.flexContainer
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
61
|
+
className: item.isSelected ? _style.default.selectedItem : undefined
|
|
62
|
+
}, item.text), Icon ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
|
|
63
|
+
className: (0, _classnames.default)(_style.default.arrowIcon, item.isSelected ? _style.default.selectedIcon : null)
|
|
64
|
+
}) : null);
|
|
65
|
+
|
|
56
66
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
57
67
|
onClick: handleOnclick,
|
|
58
68
|
key: `menu-link-item-${index}`,
|
|
@@ -63,16 +73,10 @@ const MenuLinks = ({
|
|
|
63
73
|
className: _style.default.flexContainer
|
|
64
74
|
}, Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
|
|
65
75
|
className: (0, _classnames.default)(_style.default.icon, item.isSelected ? _style.default.selectedIcon : null)
|
|
66
|
-
}) : null, /*#__PURE__*/_react.default.createElement("a", {
|
|
76
|
+
}) : null, withScroll ? /*#__PURE__*/_react.default.createElement("a", {
|
|
67
77
|
className: _style.default.link,
|
|
68
78
|
href: `#menu-link-item-${index}`
|
|
69
|
-
},
|
|
70
|
-
className: _style.default.flexContainer
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
72
|
-
className: item.isSelected ? _style.default.selectedItem : undefined
|
|
73
|
-
}, item.text), Icon ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
|
|
74
|
-
className: (0, _classnames.default)(_style.default.arrowIcon, item.isSelected ? _style.default.selectedIcon : null)
|
|
75
|
-
}) : null))));
|
|
79
|
+
}, Item) : Item));
|
|
76
80
|
}), !isDesktopMode ? /*#__PURE__*/_react.default.createElement("li", {
|
|
77
81
|
// eslint-disable-next-line react/jsx-no-bind
|
|
78
82
|
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","isOpen","setIsOpen","useState","itemsToDisplay","handleOnclickShowMore","styles","container","list","map","item","index","handleOnclick","Icon","icon","
|
|
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,EAAE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AU,gBACT;MAAG,SAAS,EAAEM,cAAA,CAAOoB,IAArB;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"}
|
|
@@ -3,6 +3,7 @@ export declare const propTypes: {
|
|
|
3
3
|
title: PropTypes.Requireable<string>;
|
|
4
4
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
5
5
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
6
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
6
7
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
8
|
showMoreText: PropTypes.Requireable<string>;
|
|
8
9
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -28,6 +29,7 @@ export declare type IconsType = 'mobilePhone' | 'chatBubbleCircleQuestionMark' |
|
|
|
28
29
|
export declare type Props = {
|
|
29
30
|
title: string;
|
|
30
31
|
isDesktopMode: boolean;
|
|
32
|
+
withScroll?: boolean;
|
|
31
33
|
showMoreItem: ShowMoreItem;
|
|
32
34
|
numberOfDisplayedItems: number;
|
|
33
35
|
items: Item[];
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEF,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,SAAS,GACjB,aAAa,GACb,8BAA8B,GAC9B,cAAc,GACd,aAAa,GACb,aAAa,CAAC;AAElB,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"}
|
|
@@ -11,6 +11,7 @@ const propTypes = {
|
|
|
11
11
|
title: _propTypes.default.string,
|
|
12
12
|
numberOfDisplayedItems: _propTypes.default.number,
|
|
13
13
|
isDesktopMode: _propTypes.default.bool,
|
|
14
|
+
withScroll: _propTypes.default.bool,
|
|
14
15
|
showMoreItem: _propTypes.default.shape({
|
|
15
16
|
showMoreText: _propTypes.default.string,
|
|
16
17
|
showLessText: _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","numberOfDisplayedItems","number","isDesktopMode","bool","showMoreItem","shape","showMoreText","showLessText","isSelected","items","arrayOf","text","handleOnclick","func"],"sources":["../../../src/molecule/menu-links/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n numberOfDisplayedItems: PropTypes.number,\n isDesktopMode: PropTypes.bool,\n showMoreItem: PropTypes.shape({\n showMoreText: PropTypes.string,\n showLessText: PropTypes.string,\n isSelected: PropTypes.bool\n }),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n isSelected: PropTypes.bool,\n handleOnclick: PropTypes.func\n })\n )\n};\n\nexport type Item = {\n text: string;\n isSelected?: boolean;\n handleOnclick: () => void;\n 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 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,
|
|
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"}
|
|
@@ -21,6 +21,7 @@ declare const FAQPage: {
|
|
|
21
21
|
title: import("prop-types").Requireable<string>;
|
|
22
22
|
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
23
23
|
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
24
|
+
withScroll: import("prop-types").Requireable<boolean>;
|
|
24
25
|
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
25
26
|
showMoreText: import("prop-types").Requireable<string>;
|
|
26
27
|
showLessText: import("prop-types").Requireable<string>;
|
|
@@ -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
|
|
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"}
|
|
@@ -23,6 +23,7 @@ export declare const propTypes: {
|
|
|
23
23
|
title: PropTypes.Requireable<string>;
|
|
24
24
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
25
25
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
26
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
27
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
28
|
showMoreText: PropTypes.Requireable<string>;
|
|
28
29
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS
|
|
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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
|
|
@@ -21,6 +21,7 @@ declare const PrivacyPolicy: {
|
|
|
21
21
|
title: import("prop-types").Requireable<string>;
|
|
22
22
|
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
23
23
|
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
24
|
+
withScroll: import("prop-types").Requireable<boolean>;
|
|
24
25
|
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
25
26
|
showMoreText: import("prop-types").Requireable<string>;
|
|
26
27
|
showLessText: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,aAAa;yFAMhB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BP,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -23,6 +23,7 @@ export declare const propTypes: {
|
|
|
23
23
|
title: PropTypes.Requireable<string>;
|
|
24
24
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
25
25
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
26
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
27
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
28
|
showMoreText: PropTypes.Requireable<string>;
|
|
28
29
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS
|
|
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,EACL,KAAK,IAAI,aAAa,EAEvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,qBAAqB,EAAE,aAAa,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.14.20-alpha.
|
|
3
|
+
"version": "11.14.20-alpha.52+ccb9587b9",
|
|
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": "
|
|
171
|
+
"gitHead": "ccb9587b9e3c6abed4e11ade0f060b5968050932"
|
|
172
172
|
}
|