@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
|
@@ -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":"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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"}
|
|
@@ -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>;
|
|
@@ -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"}
|
|
@@ -7,22 +7,19 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
7
7
|
|
|
8
8
|
var _types = require("../../../molecule/privacy-policy-contact/types");
|
|
9
9
|
|
|
10
|
-
var _types2 = require("../../../molecule/
|
|
10
|
+
var _types2 = require("../../../molecule/hero/types");
|
|
11
11
|
|
|
12
|
-
var _types3 = require("../../../molecule/
|
|
12
|
+
var _types3 = require("../../../molecule/menu-links/types");
|
|
13
13
|
|
|
14
|
-
var _types4 = require("../../../molecule/
|
|
15
|
-
|
|
16
|
-
var _types5 = require("../../../molecule/expandable-list/types");
|
|
14
|
+
var _types4 = require("../../../molecule/expandable-list/types");
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
const propTypes = {
|
|
21
|
-
header: _propTypes.default.shape(
|
|
19
|
+
header: _propTypes.default.shape(_types2.propTypes),
|
|
22
20
|
privacyPolicyContact: _propTypes.default.shape(_types.propTypes),
|
|
23
|
-
menuLinks: _propTypes.default.shape(
|
|
24
|
-
|
|
25
|
-
expandableList: _propTypes.default.shape(_types5.propTypes)
|
|
21
|
+
menuLinks: _propTypes.default.shape(_types3.propTypes),
|
|
22
|
+
expandableList: _propTypes.default.shape(_types4.propTypes)
|
|
26
23
|
};
|
|
27
24
|
exports.propTypes = propTypes;
|
|
28
25
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","header","PropTypes","shape","HeroPropTypes","privacyPolicyContact","ContactPropTypes","menuLinks","MenuLinksPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","header","PropTypes","shape","HeroPropTypes","privacyPolicyContact","ContactPropTypes","menuLinks","MenuLinksPropTypes","expandableList","ListPropTypes"],"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;;AACA;;AAIA;;AACA;;AAIA;;;;AAKO,MAAMA,SAAS,GAAG;EACvBC,MAAM,EAAEC,kBAAA,CAAUC,KAAV,CAAgBC,iBAAhB,CADe;EAEvBC,oBAAoB,EAAEH,kBAAA,CAAUC,KAAV,CAAgBG,gBAAhB,CAFC;EAGvBC,SAAS,EAAEL,kBAAA,CAAUC,KAAV,CAAgBK,iBAAhB,CAHY;EAIvBC,cAAc,EAAEP,kBAAA,CAAUC,KAAV,CAAgBO,iBAAhB;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"}
|
|
@@ -9,8 +9,6 @@ var _hero = _interopRequireDefault(require("../../../molecule/hero"));
|
|
|
9
9
|
|
|
10
10
|
var _privacyPolicyContact = _interopRequireDefault(require("../../../molecule/privacy-policy-contact"));
|
|
11
11
|
|
|
12
|
-
var _privacyPolicyDownload = _interopRequireDefault(require("../../../molecule/privacy-policy-download"));
|
|
13
|
-
|
|
14
12
|
var _menuLinks = _interopRequireDefault(require("../../../molecule/menu-links"));
|
|
15
13
|
|
|
16
14
|
var _expandableList = _interopRequireDefault(require("../../../molecule/expandable-list"));
|
|
@@ -27,7 +25,6 @@ const PrivacyPolicy = ({
|
|
|
27
25
|
header,
|
|
28
26
|
privacyPolicyContact,
|
|
29
27
|
menuLinks,
|
|
30
|
-
privacyPolicyDownload,
|
|
31
28
|
expandableList
|
|
32
29
|
}) => {
|
|
33
30
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -48,13 +45,9 @@ const PrivacyPolicy = ({
|
|
|
48
45
|
className: _style.default.menueLinksMobile
|
|
49
46
|
}, /*#__PURE__*/_react.default.createElement(_menuLinks.default, _extends({}, menuLinks, {
|
|
50
47
|
isDesktopMode: false
|
|
51
|
-
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
52
|
-
className: _style.default.privacyPolicyDownloadDesktop
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_privacyPolicyDownload.default, privacyPolicyDownload))), /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
+
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
54
49
|
className: _style.default.expandableList
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_expandableList.default, expandableList)), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: _style.default.privacyPolicyDownload
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement(_privacyPolicyDownload.default, privacyPolicyDownload))), /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_expandableList.default, expandableList))), /*#__PURE__*/_react.default.createElement("div", {
|
|
58
51
|
className: _style.default.privacyPolicyContact
|
|
59
52
|
}, /*#__PURE__*/_react.default.createElement(_privacyPolicyContact.default, privacyPolicyContact)));
|
|
60
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["PrivacyPolicy","header","privacyPolicyContact","menuLinks","
|
|
1
|
+
{"version":3,"file":"index.js","names":["PrivacyPolicy","header","privacyPolicyContact","menuLinks","expandableList","styles","wrapper","hero","container","menuContainer","menueLinksDesctop","menueLinksMobile","propTypes"],"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;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,aAAa,GAAG,CAAC;EAACC,MAAD;EAASC,oBAAT;EAA+BC,SAA/B;EAA0CC;AAA1C,CAAD,KAAsE;EAC1F,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAOC;EAAvB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAOE;EAAvB,gBACE,6BAAC,aAAD,eAAUN,MAAV;IAAkB,IAAI,EAAE;EAAxB,GADF,CADF,eAIE;IAAK,SAAS,EAAEI,cAAA,CAAOG;EAAvB,gBACE;IAAK,SAAS,EAAEH,cAAA,CAAOI;EAAvB,gBACE;IAAK,SAAS,EAAEJ,cAAA,CAAOK;EAAvB,gBACE,6BAAC,kBAAD,eAAeP,SAAf;IAA0B,aAAa;EAAvC,GADF,CADF,eAIE;IAAK,SAAS,EAAEE,cAAA,CAAOM;EAAvB,gBACE,6BAAC,kBAAD,eAAeR,SAAf;IAA0B,aAAa,EAAE;EAAzC,GADF,CAJF,CADF,eASE;IAAK,SAAS,EAAEE,cAAA,CAAOD;EAAvB,gBACE,6BAAC,uBAAD,EAAoBA,cAApB,CADF,CATF,CAJF,eAiBE;IAAK,SAAS,EAAEC,cAAA,CAAOH;EAAvB,gBACE,6BAAC,6BAAD,EAA0BA,oBAA1B,CADF,CAjBF,CADF;AAuBD,CAxBD;;AA0BAF,aAAa,CAACY,SAAd,2CAA0BA,gBAA1B;eAEeZ,a"}
|
|
@@ -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"}
|
|
@@ -7,22 +7,19 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
7
7
|
|
|
8
8
|
var _types = require("../../../molecule/privacy-policy-contact/types");
|
|
9
9
|
|
|
10
|
-
var _types2 = require("../../../molecule/
|
|
10
|
+
var _types2 = require("../../../molecule/hero/types");
|
|
11
11
|
|
|
12
|
-
var _types3 = require("../../../molecule/
|
|
12
|
+
var _types3 = require("../../../molecule/menu-links/types");
|
|
13
13
|
|
|
14
|
-
var _types4 = require("../../../molecule/
|
|
15
|
-
|
|
16
|
-
var _types5 = require("../../../molecule/expandable-list/types");
|
|
14
|
+
var _types4 = require("../../../molecule/expandable-list/types");
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
const propTypes = {
|
|
21
|
-
header: _propTypes.default.shape(
|
|
19
|
+
header: _propTypes.default.shape(_types2.propTypes),
|
|
22
20
|
privacyPolicyContact: _propTypes.default.shape(_types.propTypes),
|
|
23
|
-
menuLinks: _propTypes.default.shape(
|
|
24
|
-
|
|
25
|
-
expandableList: _propTypes.default.shape(_types5.propTypes)
|
|
21
|
+
menuLinks: _propTypes.default.shape(_types3.propTypes),
|
|
22
|
+
expandableList: _propTypes.default.shape(_types4.propTypes)
|
|
26
23
|
};
|
|
27
24
|
exports.propTypes = propTypes;
|
|
28
25
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","header","PropTypes","shape","HeroPropTypes","privacyPolicyContact","ContactPropTypes","menuLinks","MenuLinksPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","header","PropTypes","shape","HeroPropTypes","privacyPolicyContact","ContactPropTypes","menuLinks","MenuLinksPropTypes","expandableList","ListPropTypes"],"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;;AACA;;AAIA;;AACA;;AAIA;;;;AAKO,MAAMA,SAAS,GAAG;EACvBC,MAAM,EAAEC,kBAAA,CAAUC,KAAV,CAAgBC,iBAAhB,CADe;EAEvBC,oBAAoB,EAAEH,kBAAA,CAAUC,KAAV,CAAgBG,gBAAhB,CAFC;EAGvBC,SAAS,EAAEL,kBAAA,CAAUC,KAAV,CAAgBK,iBAAhB,CAHY;EAIvBC,cAAc,EAAEP,kBAAA,CAAUC,KAAV,CAAgBO,iBAAhB;AAJO,CAAlB"}
|
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.60.28+bfa6ff2e3",
|
|
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": "bfa6ff2e3bb7b7cc2e92fb8448b54c5130b57241"
|
|
172
172
|
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Props } from './types';
|
|
3
|
-
declare const PrivacyPolicyDownload: {
|
|
4
|
-
({ title, downloadButton, content }: Props): JSX.Element;
|
|
5
|
-
propTypes: {
|
|
6
|
-
title: import("prop-types").Requireable<string>;
|
|
7
|
-
content: import("prop-types").Requireable<string>;
|
|
8
|
-
downloadButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
9
|
-
color: any;
|
|
10
|
-
submitValue: import("prop-types").Requireable<string>;
|
|
11
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
12
|
-
href: import("prop-types").Requireable<string>;
|
|
13
|
-
download: import("prop-types").Requireable<boolean>;
|
|
14
|
-
target: import("prop-types").Requireable<string>;
|
|
15
|
-
type: import("prop-types").Requireable<string>;
|
|
16
|
-
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
17
|
-
className: import("prop-types").Requireable<string>;
|
|
18
|
-
style: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
19
|
-
'data-name': import("prop-types").Requireable<string>;
|
|
20
|
-
'aria-label': import("prop-types").Requireable<string>;
|
|
21
|
-
'data-testid': import("prop-types").Requireable<string>;
|
|
22
|
-
useButtonTag: import("prop-types").Requireable<boolean>;
|
|
23
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
-
onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
26
|
-
onMouseOver: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
27
|
-
buttonRef: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
|
|
28
|
-
'data-for': import("prop-types").Requireable<string>;
|
|
29
|
-
'data-tooltip-place': import("prop-types").Requireable<string>;
|
|
30
|
-
'data-tip': import("prop-types").Requireable<boolean>;
|
|
31
|
-
isLinkDisabled: import("prop-types").Requireable<boolean>;
|
|
32
|
-
useWrapper: import("prop-types").Requireable<boolean>;
|
|
33
|
-
buttonContentClassName: import("prop-types").Requireable<string>;
|
|
34
|
-
}>>;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default PrivacyPolicyDownload;
|
|
38
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/privacy-policy-download/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAEzC,QAAA,MAAM,qBAAqB;yCAAsC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYrE,CAAC;AAIF,eAAe,qBAAqB,CAAC"}
|