@coorpacademy/components 11.14.20-alpha.51 → 11.14.20-alpha.60.28
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 -31
- package/es/template/common/faq-page/index.d.ts.map +1 -1
- package/es/template/common/faq-page/types.d.ts +1 -33
- package/es/template/common/faq-page/types.d.ts.map +1 -1
- package/es/template/common/faq-page/types.js +0 -2
- package/es/template/common/faq-page/types.js.map +1 -1
- package/es/template/common/privacy-policy-page/index.d.ts +2 -32
- package/es/template/common/privacy-policy-page/index.d.ts.map +1 -1
- package/es/template/common/privacy-policy-page/index.js +2 -8
- package/es/template/common/privacy-policy-page/index.js.map +1 -1
- package/es/template/common/privacy-policy-page/style.css +0 -20
- package/es/template/common/privacy-policy-page/types.d.ts +1 -33
- package/es/template/common/privacy-policy-page/types.d.ts.map +1 -1
- package/es/template/common/privacy-policy-page/types.js +0 -2
- package/es/template/common/privacy-policy-page/types.js.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 -31
- package/lib/template/common/faq-page/index.d.ts.map +1 -1
- package/lib/template/common/faq-page/types.d.ts +1 -33
- package/lib/template/common/faq-page/types.d.ts.map +1 -1
- package/lib/template/common/faq-page/types.js +6 -9
- package/lib/template/common/faq-page/types.js.map +1 -1
- package/lib/template/common/privacy-policy-page/index.d.ts +2 -32
- package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -1
- package/lib/template/common/privacy-policy-page/index.js +2 -9
- package/lib/template/common/privacy-policy-page/index.js.map +1 -1
- package/lib/template/common/privacy-policy-page/style.css +0 -20
- package/lib/template/common/privacy-policy-page/types.d.ts +1 -33
- package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -1
- package/lib/template/common/privacy-policy-page/types.js +6 -9
- package/lib/template/common/privacy-policy-page/types.js.map +1 -1
- package/package.json +2 -2
- package/es/molecule/privacy-policy-download/index.d.ts +0 -38
- package/es/molecule/privacy-policy-download/index.d.ts.map +0 -1
- package/es/molecule/privacy-policy-download/index.js +0 -27
- package/es/molecule/privacy-policy-download/index.js.map +0 -1
- package/es/molecule/privacy-policy-download/style.css +0 -66
- package/es/molecule/privacy-policy-download/types.d.ts +0 -50
- package/es/molecule/privacy-policy-download/types.d.ts.map +0 -1
- package/es/molecule/privacy-policy-download/types.js +0 -8
- package/es/molecule/privacy-policy-download/types.js.map +0 -1
- package/lib/molecule/privacy-policy-download/index.d.ts +0 -38
- package/lib/molecule/privacy-policy-download/index.d.ts.map +0 -1
- package/lib/molecule/privacy-policy-download/index.js +0 -38
- package/lib/molecule/privacy-policy-download/index.js.map +0 -1
- package/lib/molecule/privacy-policy-download/style.css +0 -66
- package/lib/molecule/privacy-policy-download/types.d.ts +0 -50
- package/lib/molecule/privacy-policy-download/types.d.ts.map +0 -1
- package/lib/molecule/privacy-policy-download/types.js +0 -18
- package/lib/molecule/privacy-policy-download/types.js.map +0 -1
|
@@ -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.showMoreIcon} />\n </span>\n </li>\n ) : null}\n </ul>\n </div>\n );\n};\n\nMenuLinks.propTypes = propTypes;\n\nexport default MenuLinks;\n"],"mappings":"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"}
|
|
@@ -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>;
|
|
@@ -32,37 +33,6 @@ declare const FAQPage: {
|
|
|
32
33
|
handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
34
|
}> | null | undefined)[]>;
|
|
34
35
|
}>>;
|
|
35
|
-
privacyPolicyDownload: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
36
|
-
title: import("prop-types").Requireable<string>;
|
|
37
|
-
content: import("prop-types").Requireable<string>;
|
|
38
|
-
downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
39
|
-
color: any;
|
|
40
|
-
submitValue: import("prop-types").Requireable<string>;
|
|
41
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
42
|
-
href: import("prop-types").Requireable<string>;
|
|
43
|
-
download: import("prop-types").Requireable<boolean>;
|
|
44
|
-
target: import("prop-types").Requireable<string>;
|
|
45
|
-
type: import("prop-types").Requireable<string>;
|
|
46
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
47
|
-
className: import("prop-types").Requireable<string>;
|
|
48
|
-
style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
49
|
-
'data-name': import("prop-types").Requireable<string>;
|
|
50
|
-
'aria-label': import("prop-types").Requireable<string>;
|
|
51
|
-
'data-testid': import("prop-types").Requireable<string>;
|
|
52
|
-
useButtonTag: import("prop-types").Requireable<boolean>;
|
|
53
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
54
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
55
|
-
onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
56
|
-
onMouseOver: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
57
|
-
buttonRef: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
58
|
-
'data-for': import("prop-types").Requireable<string>;
|
|
59
|
-
'data-tooltip-place': import("prop-types").Requireable<string>;
|
|
60
|
-
'data-tip': import("prop-types").Requireable<boolean>;
|
|
61
|
-
isLinkDisabled: import("prop-types").Requireable<boolean>;
|
|
62
|
-
useWrapper: import("prop-types").Requireable<boolean>;
|
|
63
|
-
buttonContentClassName: import("prop-types").Requireable<string>;
|
|
64
|
-
}>>;
|
|
65
|
-
}>>;
|
|
66
36
|
expandableList: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
67
37
|
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
68
38
|
title: 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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { Props as ContactProps } from '../../../molecule/privacy-policy-contact/types';
|
|
3
|
-
import { Props as DownloadProps } from '../../../molecule/privacy-policy-download/types';
|
|
4
3
|
import { Props as HeroProps } from '../../../molecule/hero/types';
|
|
5
4
|
import { Props as MenuLinksProps } from '../../../molecule/menu-links/types';
|
|
6
5
|
import { Props as ListProps } from '../../../molecule/expandable-list/types';
|
|
@@ -23,6 +22,7 @@ export declare const propTypes: {
|
|
|
23
22
|
title: PropTypes.Requireable<string>;
|
|
24
23
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
25
24
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
25
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
26
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
27
|
showMoreText: PropTypes.Requireable<string>;
|
|
28
28
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -34,37 +34,6 @@ export declare const propTypes: {
|
|
|
34
34
|
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
}>>;
|
|
37
|
-
privacyPolicyDownload: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
|
-
title: PropTypes.Requireable<string>;
|
|
39
|
-
content: PropTypes.Requireable<string>;
|
|
40
|
-
downloadButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
-
color: any;
|
|
42
|
-
submitValue: PropTypes.Requireable<string>;
|
|
43
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
44
|
-
href: PropTypes.Requireable<string>;
|
|
45
|
-
download: PropTypes.Requireable<boolean>;
|
|
46
|
-
target: PropTypes.Requireable<string>;
|
|
47
|
-
type: PropTypes.Requireable<string>;
|
|
48
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
49
|
-
className: PropTypes.Requireable<string>;
|
|
50
|
-
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
51
|
-
'data-name': PropTypes.Requireable<string>;
|
|
52
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
53
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
54
|
-
useButtonTag: PropTypes.Requireable<boolean>;
|
|
55
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
-
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
|
-
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
buttonRef: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
60
|
-
'data-for': PropTypes.Requireable<string>;
|
|
61
|
-
'data-tooltip-place': PropTypes.Requireable<string>;
|
|
62
|
-
'data-tip': PropTypes.Requireable<boolean>;
|
|
63
|
-
isLinkDisabled: PropTypes.Requireable<boolean>;
|
|
64
|
-
useWrapper: PropTypes.Requireable<boolean>;
|
|
65
|
-
buttonContentClassName: PropTypes.Requireable<string>;
|
|
66
|
-
}>>;
|
|
67
|
-
}>>;
|
|
68
37
|
expandableList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
38
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
70
39
|
title: PropTypes.Requireable<string>;
|
|
@@ -81,7 +50,6 @@ export declare type Props = {
|
|
|
81
50
|
header: HeroProps;
|
|
82
51
|
privacyPolicyContact: ContactProps;
|
|
83
52
|
menuLinks: MenuLinksProps;
|
|
84
|
-
privacyPolicyDownload: DownloadProps;
|
|
85
53
|
expandableList: ListProps;
|
|
86
54
|
};
|
|
87
55
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -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,
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { propTypes as ContactPropTypes } from '../../../molecule/privacy-policy-contact/types';
|
|
3
|
-
import { propTypes as DownloadPropTypes } from '../../../molecule/privacy-policy-download/types';
|
|
4
3
|
import { propTypes as HeroPropTypes } from '../../../molecule/hero/types';
|
|
5
4
|
import { propTypes as MenuLinksPropTypes } from '../../../molecule/menu-links/types';
|
|
6
5
|
import { propTypes as ListPropTypes } from '../../../molecule/expandable-list/types';
|
|
@@ -8,7 +7,6 @@ export const propTypes = {
|
|
|
8
7
|
header: PropTypes.shape(HeroPropTypes),
|
|
9
8
|
privacyPolicyContact: PropTypes.shape(ContactPropTypes),
|
|
10
9
|
menuLinks: PropTypes.shape(MenuLinksPropTypes),
|
|
11
|
-
privacyPolicyDownload: PropTypes.shape(DownloadPropTypes),
|
|
12
10
|
expandableList: PropTypes.shape(ListPropTypes)
|
|
13
11
|
};
|
|
14
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","propTypes","ContactPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","propTypes","ContactPropTypes","HeroPropTypes","MenuLinksPropTypes","ListPropTypes","header","shape","privacyPolicyContact","menuLinks","expandableList"],"sources":["../../../../src/template/common/faq-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';\nimport {Props as HeroProps, propTypes as HeroPropTypes} from '../../../molecule/hero/types';\nimport {\n Props as MenuLinksProps,\n propTypes as MenuLinksPropTypes\n} from '../../../molecule/menu-links/types';\nimport {\n Props as ListProps,\n propTypes as ListPropTypes\n} from '../../../molecule/expandable-list/types';\n\nexport const propTypes = {\n header: PropTypes.shape(HeroPropTypes),\n privacyPolicyContact: PropTypes.shape(ContactPropTypes),\n menuLinks: PropTypes.shape(MenuLinksPropTypes),\n expandableList: PropTypes.shape(ListPropTypes)\n};\n\nexport type Props = {\n header: HeroProps;\n privacyPolicyContact: ContactProps;\n menuLinks: MenuLinksProps;\n expandableList: ListProps;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAEEC,SAAS,IAAIC,gBAFf,QAGO,gDAHP;AAIA,SAA4BD,SAAS,IAAIE,aAAzC,QAA6D,8BAA7D;AACA,SAEEF,SAAS,IAAIG,kBAFf,QAGO,oCAHP;AAIA,SAEEH,SAAS,IAAII,aAFf,QAGO,yCAHP;AAKA,OAAO,MAAMJ,SAAS,GAAG;EACvBK,MAAM,EAAEN,SAAS,CAACO,KAAV,CAAgBJ,aAAhB,CADe;EAEvBK,oBAAoB,EAAER,SAAS,CAACO,KAAV,CAAgBL,gBAAhB,CAFC;EAGvBO,SAAS,EAAET,SAAS,CAACO,KAAV,CAAgBH,kBAAhB,CAHY;EAIvBM,cAAc,EAAEV,SAAS,CAACO,KAAV,CAAgBF,aAAhB;AAJO,CAAlB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Props } from './types';
|
|
3
3
|
declare const PrivacyPolicy: {
|
|
4
|
-
({ header, privacyPolicyContact, menuLinks,
|
|
4
|
+
({ header, privacyPolicyContact, menuLinks, expandableList }: Props): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
header: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
7
7
|
image: import("prop-types").Requireable<string>;
|
|
@@ -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>;
|
|
@@ -32,37 +33,6 @@ declare const PrivacyPolicy: {
|
|
|
32
33
|
handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
34
|
}> | null | undefined)[]>;
|
|
34
35
|
}>>;
|
|
35
|
-
privacyPolicyDownload: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
36
|
-
title: import("prop-types").Requireable<string>;
|
|
37
|
-
content: import("prop-types").Requireable<string>;
|
|
38
|
-
downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
39
|
-
color: any;
|
|
40
|
-
submitValue: import("prop-types").Requireable<string>;
|
|
41
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
42
|
-
href: import("prop-types").Requireable<string>;
|
|
43
|
-
download: import("prop-types").Requireable<boolean>;
|
|
44
|
-
target: import("prop-types").Requireable<string>;
|
|
45
|
-
type: import("prop-types").Requireable<string>;
|
|
46
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
47
|
-
className: import("prop-types").Requireable<string>;
|
|
48
|
-
style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
49
|
-
'data-name': import("prop-types").Requireable<string>;
|
|
50
|
-
'aria-label': import("prop-types").Requireable<string>;
|
|
51
|
-
'data-testid': import("prop-types").Requireable<string>;
|
|
52
|
-
useButtonTag: import("prop-types").Requireable<boolean>;
|
|
53
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
54
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
55
|
-
onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
56
|
-
onMouseOver: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
57
|
-
buttonRef: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
58
|
-
'data-for': import("prop-types").Requireable<string>;
|
|
59
|
-
'data-tooltip-place': import("prop-types").Requireable<string>;
|
|
60
|
-
'data-tip': import("prop-types").Requireable<boolean>;
|
|
61
|
-
isLinkDisabled: import("prop-types").Requireable<boolean>;
|
|
62
|
-
useWrapper: import("prop-types").Requireable<boolean>;
|
|
63
|
-
buttonContentClassName: import("prop-types").Requireable<string>;
|
|
64
|
-
}>>;
|
|
65
|
-
}>>;
|
|
66
36
|
expandableList: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
67
37
|
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
68
38
|
title: 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":";
|
|
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"}
|
|
@@ -3,7 +3,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Hero from '../../../molecule/hero';
|
|
5
5
|
import PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';
|
|
6
|
-
import PrivacyPolicyDownload from '../../../molecule/privacy-policy-download';
|
|
7
6
|
import MenuLinks from '../../../molecule/menu-links';
|
|
8
7
|
import ExpandableList from '../../../molecule/expandable-list';
|
|
9
8
|
import { propTypes } from './types';
|
|
@@ -13,7 +12,6 @@ const PrivacyPolicy = ({
|
|
|
13
12
|
header,
|
|
14
13
|
privacyPolicyContact,
|
|
15
14
|
menuLinks,
|
|
16
|
-
privacyPolicyDownload,
|
|
17
15
|
expandableList
|
|
18
16
|
}) => {
|
|
19
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -34,13 +32,9 @@ const PrivacyPolicy = ({
|
|
|
34
32
|
className: styles.menueLinksMobile
|
|
35
33
|
}, /*#__PURE__*/React.createElement(MenuLinks, _extends({}, menuLinks, {
|
|
36
34
|
isDesktopMode: false
|
|
37
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: styles.privacyPolicyDownloadDesktop
|
|
39
|
-
}, /*#__PURE__*/React.createElement(PrivacyPolicyDownload, privacyPolicyDownload))), /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
40
36
|
className: styles.expandableList
|
|
41
|
-
}, /*#__PURE__*/React.createElement(ExpandableList, expandableList)), /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: styles.privacyPolicyDownload
|
|
43
|
-
}, /*#__PURE__*/React.createElement(PrivacyPolicyDownload, privacyPolicyDownload))), /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
}, /*#__PURE__*/React.createElement(ExpandableList, expandableList))), /*#__PURE__*/React.createElement("div", {
|
|
44
38
|
className: styles.privacyPolicyContact
|
|
45
39
|
}, /*#__PURE__*/React.createElement(PrivacyPolicyContact, privacyPolicyContact)));
|
|
46
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","Hero","PrivacyPolicyContact","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","Hero","PrivacyPolicyContact","MenuLinks","ExpandableList","propTypes","styles","PrivacyPolicy","header","privacyPolicyContact","menuLinks","expandableList","wrapper","hero","container","menuContainer","menueLinksDesctop","menueLinksMobile"],"sources":["../../../../src/template/common/privacy-policy-page/index.tsx"],"sourcesContent":["import React from 'react';\nimport Hero from '../../../molecule/hero';\nimport PrivacyPolicyContact from '../../../molecule/privacy-policy-contact';\nimport MenuLinks from '../../../molecule/menu-links';\nimport ExpandableList from '../../../molecule/expandable-list';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst PrivacyPolicy = ({header, privacyPolicyContact, menuLinks, expandableList}: Props) => {\n return (\n <div className={styles.wrapper}>\n <div className={styles.hero}>\n <Hero {...header} mode={'header'} />\n </div>\n <div className={styles.container}>\n <div className={styles.menuContainer}>\n <div className={styles.menueLinksDesctop}>\n <MenuLinks {...menuLinks} isDesktopMode />\n </div>\n <div className={styles.menueLinksMobile}>\n <MenuLinks {...menuLinks} isDesktopMode={false} />\n </div>\n </div>\n <div className={styles.expandableList}>\n <ExpandableList {...expandableList} />\n </div>\n </div>\n <div className={styles.privacyPolicyContact}>\n <PrivacyPolicyContact {...privacyPolicyContact} />\n </div>\n </div>\n );\n};\n\nPrivacyPolicy.propTypes = propTypes;\n\nexport default PrivacyPolicy;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;AACA,OAAOC,oBAAP,MAAiC,0CAAjC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;;AAEA,MAAMC,aAAa,GAAG,CAAC;EAACC,MAAD;EAASC,oBAAT;EAA+BC,SAA/B;EAA0CC;AAA1C,CAAD,KAAsE;EAC1F,oBACE;IAAK,SAAS,EAAEL,MAAM,CAACM;EAAvB,gBACE;IAAK,SAAS,EAAEN,MAAM,CAACO;EAAvB,gBACE,oBAAC,IAAD,eAAUL,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEF,MAAM,CAACQ;EAAvB,gBACE;IAAK,SAAS,EAAER,MAAM,CAACS;EAAvB,gBACE;IAAK,SAAS,EAAET,MAAM,CAACU;EAAvB,gBACE,oBAAC,SAAD,eAAeN,SAAf;IAA0B,aAAa;EAAvC,GADF,CADF,eAIE;IAAK,SAAS,EAAEJ,MAAM,CAACW;EAAvB,gBACE,oBAAC,SAAD,eAAeP,SAAf;IAA0B,aAAa,EAAE;EAAzC,GADF,CAJF,CADF,eASE;IAAK,SAAS,EAAEJ,MAAM,CAACK;EAAvB,gBACE,oBAAC,cAAD,EAAoBA,cAApB,CADF,CATF,CAJF,eAiBE;IAAK,SAAS,EAAEL,MAAM,CAACG;EAAvB,gBACE,oBAAC,oBAAD,EAA0BA,oBAA1B,CADF,CAjBF,CADF;AAuBD,CAxBD;;AA0BAF,aAAa,CAACF,SAAd,2CAA0BA,SAA1B;AAEA,eAAeE,aAAf"}
|
|
@@ -43,26 +43,12 @@
|
|
|
43
43
|
justify-content: center;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.privacyPolicyDownloadDesktop {
|
|
47
|
-
margin-top: 28px;
|
|
48
|
-
display: block;
|
|
49
|
-
}
|
|
50
|
-
.privacyPolicyDownload {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
46
|
.expandableList {
|
|
55
47
|
min-width: 533px;
|
|
56
48
|
max-width: 748px;
|
|
57
49
|
width: 100%;
|
|
58
50
|
}
|
|
59
51
|
@media tablet {
|
|
60
|
-
.privacyPolicyDownloadDesktop {
|
|
61
|
-
display: none;
|
|
62
|
-
}
|
|
63
|
-
.privacyPolicyDownload {
|
|
64
|
-
display: block;
|
|
65
|
-
}
|
|
66
52
|
.container {
|
|
67
53
|
display: flex;
|
|
68
54
|
flex-direction: column;
|
|
@@ -93,12 +79,6 @@
|
|
|
93
79
|
height: 264px;
|
|
94
80
|
width: 100%;
|
|
95
81
|
}
|
|
96
|
-
.privacyPolicyDownloadDesktop {
|
|
97
|
-
display: none;
|
|
98
|
-
}
|
|
99
|
-
.privacyPolicyDownload {
|
|
100
|
-
display: block;
|
|
101
|
-
}
|
|
102
82
|
.container {
|
|
103
83
|
display: flex;
|
|
104
84
|
flex-direction: column;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { Props as ContactProps } from '../../../molecule/privacy-policy-contact/types';
|
|
3
|
-
import { Props as DownloadProps } from '../../../molecule/privacy-policy-download/types';
|
|
4
3
|
import { Props as HeroProps } from '../../../molecule/hero/types';
|
|
5
4
|
import { Props as MenuLinksProps } from '../../../molecule/menu-links/types';
|
|
6
5
|
import { Props as ListProps } from '../../../molecule/expandable-list/types';
|
|
@@ -23,6 +22,7 @@ export declare const propTypes: {
|
|
|
23
22
|
title: PropTypes.Requireable<string>;
|
|
24
23
|
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
25
24
|
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
25
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
26
|
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
27
|
showMoreText: PropTypes.Requireable<string>;
|
|
28
28
|
showLessText: PropTypes.Requireable<string>;
|
|
@@ -34,37 +34,6 @@ export declare const propTypes: {
|
|
|
34
34
|
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
35
|
}> | null | undefined)[]>;
|
|
36
36
|
}>>;
|
|
37
|
-
privacyPolicyDownload: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
|
-
title: PropTypes.Requireable<string>;
|
|
39
|
-
content: PropTypes.Requireable<string>;
|
|
40
|
-
downloadButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
-
color: any;
|
|
42
|
-
submitValue: PropTypes.Requireable<string>;
|
|
43
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
44
|
-
href: PropTypes.Requireable<string>;
|
|
45
|
-
download: PropTypes.Requireable<boolean>;
|
|
46
|
-
target: PropTypes.Requireable<string>;
|
|
47
|
-
type: PropTypes.Requireable<string>;
|
|
48
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
49
|
-
className: PropTypes.Requireable<string>;
|
|
50
|
-
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
51
|
-
'data-name': PropTypes.Requireable<string>;
|
|
52
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
53
|
-
'data-testid': PropTypes.Requireable<string>;
|
|
54
|
-
useButtonTag: PropTypes.Requireable<boolean>;
|
|
55
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
-
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
|
-
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
buttonRef: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
60
|
-
'data-for': PropTypes.Requireable<string>;
|
|
61
|
-
'data-tooltip-place': PropTypes.Requireable<string>;
|
|
62
|
-
'data-tip': PropTypes.Requireable<boolean>;
|
|
63
|
-
isLinkDisabled: PropTypes.Requireable<boolean>;
|
|
64
|
-
useWrapper: PropTypes.Requireable<boolean>;
|
|
65
|
-
buttonContentClassName: PropTypes.Requireable<string>;
|
|
66
|
-
}>>;
|
|
67
|
-
}>>;
|
|
68
37
|
expandableList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
38
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
70
39
|
title: PropTypes.Requireable<string>;
|
|
@@ -81,7 +50,6 @@ export declare type Props = {
|
|
|
81
50
|
header: HeroProps;
|
|
82
51
|
privacyPolicyContact: ContactProps;
|
|
83
52
|
menuLinks: MenuLinksProps;
|
|
84
|
-
privacyPolicyDownload: DownloadProps;
|
|
85
53
|
expandableList: ListProps;
|
|
86
54
|
};
|
|
87
55
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -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,
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { propTypes as ContactPropTypes } from '../../../molecule/privacy-policy-contact/types';
|
|
3
|
-
import { propTypes as DownloadPropTypes } from '../../../molecule/privacy-policy-download/types';
|
|
4
3
|
import { propTypes as HeroPropTypes } from '../../../molecule/hero/types';
|
|
5
4
|
import { propTypes as MenuLinksPropTypes } from '../../../molecule/menu-links/types';
|
|
6
5
|
import { propTypes as ListPropTypes } from '../../../molecule/expandable-list/types';
|
|
@@ -8,7 +7,6 @@ export const propTypes = {
|
|
|
8
7
|
header: PropTypes.shape(HeroPropTypes),
|
|
9
8
|
privacyPolicyContact: PropTypes.shape(ContactPropTypes),
|
|
10
9
|
menuLinks: PropTypes.shape(MenuLinksPropTypes),
|
|
11
|
-
privacyPolicyDownload: PropTypes.shape(DownloadPropTypes),
|
|
12
10
|
expandableList: PropTypes.shape(ListPropTypes)
|
|
13
11
|
};
|
|
14
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","propTypes","ContactPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","propTypes","ContactPropTypes","HeroPropTypes","MenuLinksPropTypes","ListPropTypes","header","shape","privacyPolicyContact","menuLinks","expandableList"],"sources":["../../../../src/template/common/privacy-policy-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';\nimport {Props as HeroProps, propTypes as HeroPropTypes} from '../../../molecule/hero/types';\nimport {\n Props as MenuLinksProps,\n propTypes as MenuLinksPropTypes\n} from '../../../molecule/menu-links/types';\nimport {\n Props as ListProps,\n propTypes as ListPropTypes\n} from '../../../molecule/expandable-list/types';\n\nexport const propTypes = {\n header: PropTypes.shape(HeroPropTypes),\n privacyPolicyContact: PropTypes.shape(ContactPropTypes),\n menuLinks: PropTypes.shape(MenuLinksPropTypes),\n expandableList: PropTypes.shape(ListPropTypes)\n};\n\nexport type Props = {\n header: HeroProps;\n privacyPolicyContact: ContactProps;\n menuLinks: MenuLinksProps;\n expandableList: ListProps;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAEEC,SAAS,IAAIC,gBAFf,QAGO,gDAHP;AAIA,SAA4BD,SAAS,IAAIE,aAAzC,QAA6D,8BAA7D;AACA,SAEEF,SAAS,IAAIG,kBAFf,QAGO,oCAHP;AAIA,SAEEH,SAAS,IAAII,aAFf,QAGO,yCAHP;AAKA,OAAO,MAAMJ,SAAS,GAAG;EACvBK,MAAM,EAAEN,SAAS,CAACO,KAAV,CAAgBJ,aAAhB,CADe;EAEvBK,oBAAoB,EAAER,SAAS,CAACO,KAAV,CAAgBL,gBAAhB,CAFC;EAGvBO,SAAS,EAAET,SAAS,CAACO,KAAV,CAAgBH,kBAAhB,CAHY;EAIvBM,cAAc,EAAEV,SAAS,CAACO,KAAV,CAAgBF,aAAhB;AAJO,CAAlB"}
|
|
@@ -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"}
|