@coorpacademy/components 11.12.3-alpha.11 → 11.12.3-alpha.14
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/expandable-item/index.d.ts +16 -24
- package/es/molecule/expandable-item/index.d.ts.map +1 -1
- package/es/molecule/expandable-item/index.js +2 -10
- package/es/molecule/expandable-item/index.js.map +1 -1
- package/es/molecule/expandable-item/style.css +14 -12
- package/es/molecule/expandable-item/types.d.ts +18 -0
- package/es/molecule/expandable-item/types.d.ts.map +1 -0
- package/es/molecule/expandable-item/types.js +10 -0
- package/es/molecule/expandable-item/types.js.map +1 -0
- package/es/molecule/expandable-list/index.d.ts +18 -14
- package/es/molecule/expandable-list/index.d.ts.map +1 -1
- package/es/molecule/expandable-list/index.js +3 -9
- package/es/molecule/expandable-list/index.js.map +1 -1
- package/es/molecule/expandable-list/style.css +1 -2
- package/es/molecule/expandable-list/types.d.ts +16 -0
- package/es/molecule/expandable-list/types.d.ts.map +1 -0
- package/es/molecule/expandable-list/types.js +6 -0
- package/es/molecule/expandable-list/types.js.map +1 -0
- package/es/molecule/hero/index.d.ts +30 -28
- package/es/molecule/hero/index.d.ts.map +1 -1
- package/es/molecule/hero/index.js +2 -11
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/hero/style.css +6 -6
- package/es/molecule/hero/types.d.ts +22 -0
- package/es/molecule/hero/types.d.ts.map +1 -0
- package/es/molecule/hero/types.js +14 -0
- package/es/molecule/hero/types.js.map +1 -0
- package/es/molecule/menu-links/index.d.ts +14 -16
- package/es/molecule/menu-links/index.d.ts.map +1 -1
- package/es/molecule/menu-links/index.js +9 -14
- package/es/molecule/menu-links/index.js.map +1 -1
- package/es/molecule/menu-links/style.css +56 -26
- package/es/molecule/menu-links/types.d.ts +21 -0
- package/es/molecule/menu-links/types.d.ts.map +1 -0
- package/es/molecule/menu-links/types.js +11 -0
- package/es/molecule/menu-links/types.js.map +1 -0
- package/es/molecule/privacy-policy-contact/index.d.ts +12 -16
- package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -1
- package/es/molecule/privacy-policy-contact/index.js +2 -5
- package/es/molecule/privacy-policy-contact/index.js.map +1 -1
- package/es/molecule/privacy-policy-contact/style.css +1 -0
- package/es/molecule/privacy-policy-contact/types.d.ts +10 -0
- package/es/molecule/privacy-policy-contact/types.d.ts.map +1 -0
- package/es/molecule/privacy-policy-contact/types.js +6 -0
- package/es/molecule/privacy-policy-contact/types.js.map +1 -0
- package/es/molecule/privacy-policy-download/index.d.ts +24 -27
- package/es/molecule/privacy-policy-download/index.d.ts.map +1 -1
- package/es/molecule/privacy-policy-download/index.js +2 -6
- package/es/molecule/privacy-policy-download/index.js.map +1 -1
- package/es/molecule/privacy-policy-download/style.css +9 -9
- package/es/molecule/privacy-policy-download/types.d.ts +39 -0
- package/es/molecule/privacy-policy-download/types.d.ts.map +1 -0
- package/es/molecule/privacy-policy-download/types.js +8 -0
- package/es/molecule/privacy-policy-download/types.js.map +1 -0
- package/es/template/common/privacy-policy-page/index.d.ts +21 -18
- package/es/template/common/privacy-policy-page/index.d.ts.map +1 -1
- package/es/template/common/privacy-policy-page/index.js +2 -7
- package/es/template/common/privacy-policy-page/index.js.map +1 -1
- package/es/template/common/privacy-policy-page/style.css +32 -7
- package/es/template/common/privacy-policy-page/types.d.ts +68 -0
- package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/types.js +13 -0
- package/es/template/common/privacy-policy-page/types.js.map +1 -0
- package/es/variables/breakpoints.css +1 -0
- package/lib/molecule/expandable-item/index.d.ts +16 -24
- package/lib/molecule/expandable-item/index.d.ts.map +1 -1
- package/lib/molecule/expandable-item/index.js +3 -12
- package/lib/molecule/expandable-item/index.js.map +1 -1
- package/lib/molecule/expandable-item/style.css +14 -12
- package/lib/molecule/expandable-item/types.d.ts +18 -0
- package/lib/molecule/expandable-item/types.d.ts.map +1 -0
- package/lib/molecule/expandable-item/types.js +19 -0
- package/lib/molecule/expandable-item/types.js.map +1 -0
- package/lib/molecule/expandable-list/index.d.ts +18 -14
- package/lib/molecule/expandable-list/index.d.ts.map +1 -1
- package/lib/molecule/expandable-list/index.js +4 -10
- package/lib/molecule/expandable-list/index.js.map +1 -1
- package/lib/molecule/expandable-list/style.css +1 -2
- package/lib/molecule/expandable-list/types.d.ts +16 -0
- package/lib/molecule/expandable-list/types.d.ts.map +1 -0
- package/lib/molecule/expandable-list/types.js +16 -0
- package/lib/molecule/expandable-list/types.js.map +1 -0
- package/lib/molecule/hero/index.d.ts +30 -28
- package/lib/molecule/hero/index.d.ts.map +1 -1
- package/lib/molecule/hero/index.js +3 -12
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/hero/style.css +6 -6
- package/lib/molecule/hero/types.d.ts +22 -0
- package/lib/molecule/hero/types.d.ts.map +1 -0
- package/lib/molecule/hero/types.js +25 -0
- package/lib/molecule/hero/types.js.map +1 -0
- package/lib/molecule/menu-links/index.d.ts +14 -16
- package/lib/molecule/menu-links/index.d.ts.map +1 -1
- package/lib/molecule/menu-links/index.js +11 -15
- package/lib/molecule/menu-links/index.js.map +1 -1
- package/lib/molecule/menu-links/style.css +56 -26
- package/lib/molecule/menu-links/types.d.ts +21 -0
- package/lib/molecule/menu-links/types.d.ts.map +1 -0
- package/lib/molecule/menu-links/types.js +20 -0
- package/lib/molecule/menu-links/types.js.map +1 -0
- package/lib/molecule/privacy-policy-contact/index.d.ts +12 -16
- package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -1
- package/lib/molecule/privacy-policy-contact/index.js +3 -6
- package/lib/molecule/privacy-policy-contact/index.js.map +1 -1
- package/lib/molecule/privacy-policy-contact/style.css +1 -0
- package/lib/molecule/privacy-policy-contact/types.d.ts +10 -0
- package/lib/molecule/privacy-policy-contact/types.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-contact/types.js +15 -0
- package/lib/molecule/privacy-policy-contact/types.js.map +1 -0
- package/lib/molecule/privacy-policy-download/index.d.ts +24 -27
- package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -1
- package/lib/molecule/privacy-policy-download/index.js +3 -7
- package/lib/molecule/privacy-policy-download/index.js.map +1 -1
- package/lib/molecule/privacy-policy-download/style.css +9 -9
- package/lib/molecule/privacy-policy-download/types.d.ts +39 -0
- package/lib/molecule/privacy-policy-download/types.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-download/types.js +18 -0
- package/lib/molecule/privacy-policy-download/types.js.map +1 -0
- package/lib/template/common/privacy-policy-page/index.d.ts +21 -18
- package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -1
- package/lib/template/common/privacy-policy-page/index.js +3 -7
- package/lib/template/common/privacy-policy-page/index.js.map +1 -1
- package/lib/template/common/privacy-policy-page/style.css +32 -7
- package/lib/template/common/privacy-policy-page/types.d.ts +68 -0
- package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/types.js +24 -0
- package/lib/template/common/privacy-policy-page/types.js.map +1 -0
- package/lib/variables/breakpoints.css +1 -0
- package/package.json +2 -2
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
/// <reference
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
export declare const ICONS: {
|
|
4
|
+
arrow: any;
|
|
5
|
+
};
|
|
6
|
+
declare const ExpandableItem: {
|
|
7
|
+
({ icon, title, isExpended, content, onClick, image }: Props): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
title: import("prop-types").Requireable<string>;
|
|
10
|
+
icon: import("prop-types").Requireable<string>;
|
|
11
|
+
isExpended: import("prop-types").Requireable<boolean>;
|
|
12
|
+
content: import("prop-types").Requireable<string>;
|
|
13
|
+
image: import("prop-types").Requireable<string>;
|
|
14
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
5
17
|
export default ExpandableItem;
|
|
6
|
-
import { NovaCompositionNavigationArrowDown as ArrowIcon } from "@coorpacademy/nova-icons";
|
|
7
|
-
declare function ExpandableItem({ icon, title, isExpended, content, onClick, image }: {
|
|
8
|
-
icon: any;
|
|
9
|
-
title: any;
|
|
10
|
-
isExpended: any;
|
|
11
|
-
content: any;
|
|
12
|
-
onClick: any;
|
|
13
|
-
image: any;
|
|
14
|
-
}): JSX.Element;
|
|
15
|
-
declare namespace ExpandableItem {
|
|
16
|
-
namespace propTypes {
|
|
17
|
-
const title: PropTypes.Requireable<string>;
|
|
18
|
-
const icon: PropTypes.Requireable<string>;
|
|
19
|
-
const isExpended: PropTypes.Requireable<boolean>;
|
|
20
|
-
const content: PropTypes.Requireable<string>;
|
|
21
|
-
const image: PropTypes.Requireable<string>;
|
|
22
|
-
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
import PropTypes from "prop-types";
|
|
26
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;2DAAwD,KAAK;;;;;;;;;CAqBhF,CAAC;AAGF,eAAe,cAAc,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import _keys from "lodash/fp/keys";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
2
|
import classnames from 'classnames';
|
|
5
3
|
import { NovaCompositionNavigationArrowDown as ArrowIcon } from '@coorpacademy/nova-icons';
|
|
4
|
+
import { propTypes } from './types';
|
|
6
5
|
import styles from './style.css';
|
|
7
6
|
export const ICONS = {
|
|
8
7
|
arrow: ArrowIcon
|
|
@@ -39,13 +38,6 @@ const ExpandableItem = ({
|
|
|
39
38
|
}) : null) : null);
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
ExpandableItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
43
|
-
title: PropTypes.string,
|
|
44
|
-
icon: PropTypes.oneOf(_keys(ICONS)),
|
|
45
|
-
isExpended: PropTypes.bool,
|
|
46
|
-
content: PropTypes.string,
|
|
47
|
-
image: PropTypes.string,
|
|
48
|
-
onClick: PropTypes.func
|
|
49
|
-
} : {};
|
|
41
|
+
ExpandableItem.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
50
42
|
export default ExpandableItem;
|
|
51
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","classnames","NovaCompositionNavigationArrowDown","ArrowIcon","propTypes","styles","ICONS","arrow","ExpandableItem","icon","title","isExpended","content","onClick","image","Icon","expendedContainer","container","header","expendedHeader","expendedIcon","__html"],"sources":["../../../src/molecule/expandable-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nexport const ICONS = {\n arrow: ArrowIcon\n};\n\nconst ExpandableItem = ({icon, title, isExpended, content, onClick, image}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container} onClick={onClick}>\n <div className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}>\n <h3 className={styles.title}>{title}</h3>\n {Icon ? (\n <Icon className={classnames(styles.icon, isExpended ? styles.expendedIcon : null)} />\n ) : null}\n </div>\n {isExpended ? (\n <div>\n <div\n className={styles.content} // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {image ? <img className={styles.image} src={image} alt={''} /> : null}\n </div>\n ) : null}\n </div>\n );\n};\n\nExpandableItem.propTypes = propTypes;\nexport default ExpandableItem;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,kCAAkC,IAAIC,SAA9C,QAA8D,0BAA9D;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;AAEA,OAAO,MAAMC,KAAK,GAAG;EACnBC,KAAK,EAAEJ;AADY,CAAd;;AAIP,MAAMK,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,UAAd;EAA0BC,OAA1B;EAAmCC,OAAnC;EAA4CC;AAA5C,CAAD,KAA+D;EACpF,MAAMC,IAAI,GAAGT,KAAK,CAACG,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGN,MAAM,CAACW,iBAAV,GAA8BX,MAAM,CAACY,SAA/D;IAA0E,OAAO,EAAEJ;EAAnF,gBACE;IAAK,SAAS,EAAEZ,UAAU,CAACI,MAAM,CAACa,MAAR,EAAgBP,UAAU,GAAGN,MAAM,CAACc,cAAV,GAA2B,IAArD;EAA1B,gBACE;IAAI,SAAS,EAAEd,MAAM,CAACK;EAAtB,GAA8BA,KAA9B,CADF,EAEGK,IAAI,gBACH,oBAAC,IAAD;IAAM,SAAS,EAAEd,UAAU,CAACI,MAAM,CAACI,IAAR,EAAcE,UAAU,GAAGN,MAAM,CAACe,YAAV,GAAyB,IAAjD;EAA3B,EADG,GAED,IAJN,CADF,EAOGT,UAAU,gBACT,8CACE;IACE,SAAS,EAAEN,MAAM,CAACO,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACS,MAAM,EAAET;IAAT;EAF3B,EADF,EAKGE,KAAK,gBAAG;IAAK,SAAS,EAAET,MAAM,CAACS,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IALnE,CADS,GAQP,IAfN,CADF;AAmBD,CArBD;;AAuBAN,cAAc,CAACJ,SAAf,2CAA2BA,SAA3B;AACA,eAAeI,cAAf"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@value cm_grey_500 from colors;
|
|
7
7
|
@value cm_grey_600 from colors;
|
|
8
8
|
@value cm_grey_800 from colors;
|
|
9
|
+
@value cm_grey_700 from colors;
|
|
9
10
|
@value white from colors;
|
|
10
11
|
|
|
11
12
|
.container {
|
|
@@ -13,12 +14,13 @@
|
|
|
13
14
|
flex-direction: column;
|
|
14
15
|
background: white;
|
|
15
16
|
gap: 16px;
|
|
16
|
-
border-radius:
|
|
17
|
+
border-radius: 8px;
|
|
17
18
|
width: 100%;
|
|
18
19
|
display: flex;
|
|
19
|
-
height:
|
|
20
|
+
height: 72px;
|
|
20
21
|
justify-content: center;
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
.header {
|
|
23
25
|
display: flex;
|
|
24
26
|
flex-direction: row;
|
|
@@ -28,8 +30,8 @@
|
|
|
28
30
|
justify-content: space-between;
|
|
29
31
|
align-items: center;
|
|
30
32
|
cursor: pointer;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
padding: 24px;
|
|
34
|
+
gap: 16px;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.expendedContainer {
|
|
@@ -44,20 +46,20 @@
|
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.expendedHeader {
|
|
47
|
-
padding: 24px
|
|
48
|
-
border-radius: 10px;
|
|
49
|
+
padding: 24px 24px 0px 24px;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.title {
|
|
52
53
|
font-family: Gilroy;
|
|
53
|
-
|
|
54
|
+
color: cm_grey_700;
|
|
55
|
+
margin: 0;
|
|
56
|
+
font-weight: inherit;
|
|
57
|
+
font-family: Gilroy;
|
|
58
|
+
font-size: 18px;
|
|
54
59
|
font-weight: 600;
|
|
55
|
-
line-height:
|
|
60
|
+
line-height: 24px;
|
|
56
61
|
letter-spacing: 0px;
|
|
57
62
|
text-align: left;
|
|
58
|
-
color: cm_grey_800;
|
|
59
|
-
margin: 0;
|
|
60
|
-
font-weight: inherit;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.icon {
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
left: 5px;
|
|
68
70
|
top: 9px;
|
|
69
71
|
border-radius: 0px;
|
|
70
|
-
color:
|
|
72
|
+
color: cm_grey_500;
|
|
71
73
|
flex-shrink: 0;
|
|
72
74
|
min-width: 16px;
|
|
73
75
|
flex-basis: 16px;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
title: PropTypes.Requireable<string>;
|
|
4
|
+
icon: PropTypes.Requireable<string>;
|
|
5
|
+
isExpended: PropTypes.Requireable<boolean>;
|
|
6
|
+
content: PropTypes.Requireable<string>;
|
|
7
|
+
image: PropTypes.Requireable<string>;
|
|
8
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
};
|
|
10
|
+
export declare type Props = {
|
|
11
|
+
title: string;
|
|
12
|
+
icon: 'arrow';
|
|
13
|
+
isExpended: boolean;
|
|
14
|
+
content: string;
|
|
15
|
+
image?: string;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const propTypes = {
|
|
3
|
+
title: PropTypes.string,
|
|
4
|
+
icon: PropTypes.oneOf(['arrow']),
|
|
5
|
+
isExpended: PropTypes.bool,
|
|
6
|
+
content: PropTypes.string,
|
|
7
|
+
image: PropTypes.string,
|
|
8
|
+
onClick: PropTypes.func
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","propTypes","title","string","icon","oneOf","isExpended","bool","content","image","onClick","func"],"sources":["../../../src/molecule/expandable-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n icon: PropTypes.oneOf(['arrow']),\n isExpended: PropTypes.bool,\n content: PropTypes.string,\n image: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n image?: string;\n onClick: () => void;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEF,SAAS,CAACG,MADM;EAEvBC,IAAI,EAAEJ,SAAS,CAACK,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEN,SAAS,CAACO,IAHC;EAIvBC,OAAO,EAAER,SAAS,CAACG,MAJI;EAKvBM,KAAK,EAAET,SAAS,CAACG,MALM;EAMvBO,OAAO,EAAEV,SAAS,CAACW;AANI,CAAlB"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
/// <reference
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
export declare const ICONS: {
|
|
4
|
+
arrow: any;
|
|
5
|
+
};
|
|
6
|
+
declare const ExpandableList: {
|
|
7
|
+
({ items }: Props): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
10
|
+
title: import("prop-types").Requireable<string>;
|
|
11
|
+
icon: import("prop-types").Requireable<string>;
|
|
12
|
+
isExpended: import("prop-types").Requireable<boolean>;
|
|
13
|
+
content: import("prop-types").Requireable<string>;
|
|
14
|
+
image: import("prop-types").Requireable<string>;
|
|
15
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
|
+
}> | null | undefined)[]>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
5
19
|
export default ExpandableList;
|
|
6
|
-
import { NovaCompositionNavigationArrowDown as ArrowIcon } from "@coorpacademy/nova-icons";
|
|
7
|
-
declare function ExpandableList({ items }: {
|
|
8
|
-
items: any;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
declare namespace ExpandableList {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
const items: PropTypes.Requireable<any[]>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
import PropTypes from "prop-types";
|
|
16
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;gBAAa,KAAK;;;;;;;;;;;CAYrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
2
|
import { NovaCompositionNavigationArrowDown as ArrowIcon } from '@coorpacademy/nova-icons';
|
|
6
3
|
import ExpandableItem from '../expandable-item';
|
|
4
|
+
import { propTypes } from './types';
|
|
7
5
|
import styles from './style.css';
|
|
8
6
|
export const ICONS = {
|
|
9
7
|
arrow: ArrowIcon
|
|
@@ -19,14 +17,10 @@ const ExpandableList = ({
|
|
|
19
17
|
return /*#__PURE__*/React.createElement("li", {
|
|
20
18
|
key: `menu-link-item-${index}`,
|
|
21
19
|
className: styles.item
|
|
22
|
-
}, /*#__PURE__*/React.createElement(ExpandableItem,
|
|
23
|
-
className: styles.expandableItem
|
|
24
|
-
})));
|
|
20
|
+
}, /*#__PURE__*/React.createElement(ExpandableItem, item));
|
|
25
21
|
}));
|
|
26
22
|
};
|
|
27
23
|
|
|
28
|
-
ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
29
|
-
items: PropTypes.arrayOf(ExpandableItem.propTypes)
|
|
30
|
-
} : {};
|
|
24
|
+
ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
31
25
|
export default ExpandableList;
|
|
32
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","NovaCompositionNavigationArrowDown","ArrowIcon","ExpandableItem","propTypes","styles","ICONS","arrow","ExpandableList","items","list","map","item","index"],"sources":["../../../src/molecule/expandable-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport ExpandableItem from '../expandable-item';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nexport const ICONS = {\n arrow: ArrowIcon\n};\n\nconst ExpandableList = ({items}: Props) => {\n return (\n <ul className={styles.list} data-name=\"expandable-item\">\n {items.map((item, index) => {\n return (\n <li key={`menu-link-item-${index}`} className={styles.item}>\n <ExpandableItem {...item} />\n </li>\n );\n })}\n </ul>\n );\n};\n\nExpandableList.propTypes = propTypes;\n\nexport default ExpandableList;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAQC,kCAAkC,IAAIC,SAA9C,QAA8D,0BAA9D;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,MAAP,MAAmB,aAAnB;AAEA,OAAO,MAAMC,KAAK,GAAG;EACnBC,KAAK,EAAEL;AADY,CAAd;;AAIP,MAAMM,cAAc,GAAG,CAAC;EAACC;AAAD,CAAD,KAAoB;EACzC,oBACE;IAAI,SAAS,EAAEJ,MAAM,CAACK,IAAtB;IAA4B,aAAU;EAAtC,GACGD,KAAK,CAACE,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;IAC1B,oBACE;MAAI,GAAG,EAAG,kBAAiBA,KAAM,EAAjC;MAAoC,SAAS,EAAER,MAAM,CAACO;IAAtD,gBACE,oBAAC,cAAD,EAAoBA,IAApB,CADF,CADF;EAKD,CANA,CADH,CADF;AAWD,CAZD;;AAcAJ,cAAc,CAACJ,SAAf,2CAA2BA,SAA3B;AAEA,eAAeI,cAAf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { Props as ItemProps } from '../expandable-item/types';
|
|
3
|
+
export declare const propTypes: {
|
|
4
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
5
|
+
title: PropTypes.Requireable<string>;
|
|
6
|
+
icon: PropTypes.Requireable<string>;
|
|
7
|
+
isExpended: PropTypes.Requireable<boolean>;
|
|
8
|
+
content: PropTypes.Requireable<string>;
|
|
9
|
+
image: PropTypes.Requireable<string>;
|
|
10
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
+
}> | null | undefined)[]>;
|
|
12
|
+
};
|
|
13
|
+
export declare type Props = {
|
|
14
|
+
items: ItemProps[];
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,0BAA0B,CAAC;AAExF,eAAO,MAAM,SAAS;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","propTypes","ItemPropTypes","items","arrayOf","shape"],"sources":["../../../src/molecule/expandable-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {Props as ItemProps, propTypes as ItemPropTypes} from '../expandable-item/types';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(ItemPropTypes))\n};\n\nexport type Props = {\n items: ItemProps[];\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAA4BC,SAAS,IAAIC,aAAzC,QAA6D,0BAA7D;AAEA,OAAO,MAAMD,SAAS,GAAG;EACvBE,KAAK,EAAEH,SAAS,CAACI,OAAV,CAAkBJ,SAAS,CAACK,KAAV,CAAgBH,aAAhB,CAAlB;AADgB,CAAlB"}
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebContextValues } from '../../atom/provider/web-context';
|
|
3
|
+
import { Props } from './types';
|
|
4
|
+
declare const Hero: {
|
|
5
|
+
(props: Props, context: WebContextValues): JSX.Element;
|
|
6
|
+
contextTypes: {
|
|
7
|
+
skin: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
8
|
+
common: import("prop-types").Requireable<{
|
|
7
9
|
[x: string]: any;
|
|
8
10
|
}>;
|
|
9
|
-
images:
|
|
10
|
-
'logo-mobile':
|
|
11
|
-
logo:
|
|
12
|
-
'logo-email':
|
|
13
|
-
login:
|
|
11
|
+
images: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
12
|
+
'logo-mobile': import("prop-types").Requireable<any>;
|
|
13
|
+
logo: import("prop-types").Requireable<any>;
|
|
14
|
+
'logo-email': import("prop-types").Requireable<any>;
|
|
15
|
+
login: import("prop-types").Requireable<any>;
|
|
14
16
|
}>>;
|
|
15
|
-
icons:
|
|
17
|
+
icons: import("prop-types").Requireable<{
|
|
16
18
|
[x: string]: any;
|
|
17
19
|
}>;
|
|
18
|
-
mod:
|
|
20
|
+
mod: import("prop-types").Requireable<{
|
|
19
21
|
[x: string]: any;
|
|
20
22
|
}>;
|
|
21
|
-
courses:
|
|
22
|
-
texts:
|
|
23
|
+
courses: import("prop-types").Requireable<any[]>;
|
|
24
|
+
texts: import("prop-types").Requireable<{
|
|
23
25
|
[x: string]: any;
|
|
24
26
|
}>;
|
|
25
27
|
}>>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
28
|
+
};
|
|
29
|
+
propTypes: {
|
|
30
|
+
image: import("prop-types").Requireable<string>;
|
|
31
|
+
mode: import("prop-types").Requireable<string>;
|
|
32
|
+
description: import("prop-types").Requireable<string>;
|
|
33
|
+
title: import("prop-types").Requireable<string>;
|
|
34
|
+
author: import("prop-types").Requireable<string>;
|
|
35
|
+
progress: import("prop-types").Requireable<number>;
|
|
36
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
37
|
+
submitValue: import("prop-types").Requireable<string>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default Hero;
|
|
39
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,IAAI;YAAW,KAAK,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDpD,CAAC;AAQF,eAAe,IAAI,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _get from "lodash/fp/get";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import classnames from 'classnames';
|
|
5
4
|
import Provider from '../../atom/provider';
|
|
6
5
|
import Button from '../../atom/button';
|
|
7
6
|
import CardContentInfo, { MODES } from '../card-content';
|
|
7
|
+
import { propTypes } from './types';
|
|
8
8
|
import style from './style.css';
|
|
9
9
|
|
|
10
10
|
const Hero = (props, context) => {
|
|
@@ -65,15 +65,6 @@ const Hero = (props, context) => {
|
|
|
65
65
|
Hero.contextTypes = {
|
|
66
66
|
skin: Provider.childContextTypes.skin
|
|
67
67
|
};
|
|
68
|
-
Hero.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
69
|
-
image: PropTypes.string,
|
|
70
|
-
mode: PropTypes.string,
|
|
71
|
-
description: PropTypes.string,
|
|
72
|
-
title: CardContentInfo.propTypes.title,
|
|
73
|
-
author: CardContentInfo.propTypes.author,
|
|
74
|
-
progress: CardContentInfo.propTypes.progress,
|
|
75
|
-
onClick: Button.propTypes.onClick,
|
|
76
|
-
submitValue: Button.propTypes.submitValue
|
|
77
|
-
} : {};
|
|
68
|
+
Hero.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
78
69
|
export default Hero;
|
|
79
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","classnames","Provider","Button","CardContentInfo","MODES","propTypes","style","Hero","props","context","skin","image","title","author","progress","onClick","submitValue","description","mode","HERO","primaryColor","cardStyle","hero","lazy","imageWrapper","backgroundColor","backgroundImage","infoWrapper","heroButtonWrapper","heroButton","contextTypes","childContextTypes"],"sources":["../../../src/molecule/hero/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport CardContentInfo, {MODES} from '../card-content';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {propTypes, Props} from './types';\nimport style from './style.css';\n\nconst Hero = (props: Props, context: WebContextValues) => {\n const {skin} = context;\n const {\n image,\n title,\n author,\n progress,\n onClick,\n submitValue,\n description,\n mode = MODES.HERO\n } = props;\n\n const primaryColor = get('common.primary', skin);\n const cardStyle = classnames(style.hero, title ? null : style.lazy);\n\n return (\n <div className={cardStyle} data-name=\"hero\">\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n />\n </div>\n {mode === MODES.HERO ? (\n <CardContentInfo mode={MODES.HERO} author={author} progress={progress} title={title} />\n ) : (\n <div className={style.infoWrapper}>\n <h1 className={style.title}>{title}</h1>\n <p className={style.description}>{description}</p>\n </div>\n )}\n {mode === MODES.HERO ? (\n <div className={style.heroButtonWrapper}>\n <Button\n type=\"link\"\n data-name=\"hero-button\"\n onClick={onClick}\n submitValue={submitValue}\n className={style.heroButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nHero.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nHero.propTypes = propTypes;\n\nexport default Hero;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AAEA,SAAQC,SAAR,QAA+B,SAA/B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,IAAI,GAAG,CAACC,KAAD,EAAeC,OAAf,KAA6C;EACxD,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IACJE,KADI;IAEJC,KAFI;IAGJC,MAHI;IAIJC,QAJI;IAKJC,OALI;IAMJC,WANI;IAOJC,WAPI;IAQJC,IAAI,GAAGd,KAAK,CAACe;EART,IASFX,KATJ;;EAWA,MAAMY,YAAY,GAAG,KAAI,gBAAJ,EAAsBV,IAAtB,CAArB;;EACA,MAAMW,SAAS,GAAGrB,UAAU,CAACM,KAAK,CAACgB,IAAP,EAAaV,KAAK,GAAG,IAAH,GAAUN,KAAK,CAACiB,IAAlC,CAA5B;EAEA,oBACE;IAAK,SAAS,EAAEF,SAAhB;IAA2B,aAAU;EAArC,gBACE;IAAK,SAAS,EAAEf,KAAK,CAACkB;EAAtB,gBACE;IACE,aAAU,OADZ;IAEE,SAAS,EAAElB,KAAK,CAACK,KAFnB;IAGE,KAAK,EAAE;MACLc,eAAe,EAAEL,YADZ;MAELM,eAAe,EAAEf,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;IAFxC;EAHT,EADF,CADF,EAWGO,IAAI,KAAKd,KAAK,CAACe,IAAf,gBACC,oBAAC,eAAD;IAAiB,IAAI,EAAEf,KAAK,CAACe,IAA7B;IAAmC,MAAM,EAAEN,MAA3C;IAAmD,QAAQ,EAAEC,QAA7D;IAAuE,KAAK,EAAEF;EAA9E,EADD,gBAGC;IAAK,SAAS,EAAEN,KAAK,CAACqB;EAAtB,gBACE;IAAI,SAAS,EAAErB,KAAK,CAACM;EAArB,GAA6BA,KAA7B,CADF,eAEE;IAAG,SAAS,EAAEN,KAAK,CAACW;EAApB,GAAkCA,WAAlC,CAFF,CAdJ,EAmBGC,IAAI,KAAKd,KAAK,CAACe,IAAf,gBACC;IAAK,SAAS,EAAEb,KAAK,CAACsB;EAAtB,gBACE,oBAAC,MAAD;IACE,IAAI,EAAC,MADP;IAEE,aAAU,aAFZ;IAGE,OAAO,EAAEb,OAHX;IAIE,WAAW,EAAEC,WAJf;IAKE,SAAS,EAAEV,KAAK,CAACuB,UALnB;IAME,KAAK,EAAE;MAACJ,eAAe,EAAEL;IAAlB;EANT,EADF,CADD,GAWG,IA9BN,CADF;AAkCD,CAlDD;;AAoDAb,IAAI,CAACuB,YAAL,GAAoB;EAClBpB,IAAI,EAAET,QAAQ,CAAC8B,iBAAT,CAA2BrB;AADf,CAApB;AAIAH,IAAI,CAACF,SAAL,2CAAiBA,SAAjB;AAEA,eAAeE,IAAf"}
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
|
|
172
172
|
.title {
|
|
173
173
|
font-family: Gilroy;
|
|
174
|
-
font-size:
|
|
175
|
-
font-weight:
|
|
176
|
-
line-height:
|
|
174
|
+
font-size: 28px;
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
line-height: 36px;
|
|
177
177
|
letter-spacing: 0px;
|
|
178
178
|
text-align: center;
|
|
179
179
|
overflow: hidden;
|
|
@@ -185,10 +185,10 @@
|
|
|
185
185
|
.description {
|
|
186
186
|
text-align: center;
|
|
187
187
|
margin-top: 12px;
|
|
188
|
-
font-size:
|
|
188
|
+
font-size: 18px;
|
|
189
189
|
font-family: Gilroy;
|
|
190
|
-
font-size:
|
|
191
|
-
font-weight:
|
|
190
|
+
font-size: 18px;
|
|
191
|
+
font-weight: 500;
|
|
192
192
|
line-height: 24px;
|
|
193
193
|
letter-spacing: 0px;
|
|
194
194
|
overflow: hidden;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
image: PropTypes.Requireable<string>;
|
|
4
|
+
mode: PropTypes.Requireable<string>;
|
|
5
|
+
description: PropTypes.Requireable<string>;
|
|
6
|
+
title: PropTypes.Requireable<string>;
|
|
7
|
+
author: PropTypes.Requireable<string>;
|
|
8
|
+
progress: PropTypes.Requireable<number>;
|
|
9
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
submitValue: PropTypes.Requireable<string>;
|
|
11
|
+
};
|
|
12
|
+
export declare type Props = {
|
|
13
|
+
image?: string;
|
|
14
|
+
mode?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
author?: string;
|
|
18
|
+
progress?: number;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
submitValue?: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,eAAO,MAAM,SAAS;;;;;;;;;CASrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import CardContentInfo from '../card-content';
|
|
3
|
+
import Button from '../../atom/button';
|
|
4
|
+
export const propTypes = {
|
|
5
|
+
image: PropTypes.string,
|
|
6
|
+
mode: PropTypes.string,
|
|
7
|
+
description: PropTypes.string,
|
|
8
|
+
title: CardContentInfo.propTypes.title,
|
|
9
|
+
author: CardContentInfo.propTypes.author,
|
|
10
|
+
progress: CardContentInfo.propTypes.progress,
|
|
11
|
+
onClick: Button.propTypes.onClick,
|
|
12
|
+
submitValue: Button.propTypes.submitValue
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","CardContentInfo","Button","propTypes","image","string","mode","description","title","author","progress","onClick","submitValue"],"sources":["../../../src/molecule/hero/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport CardContentInfo from '../card-content';\nimport Button from '../../atom/button';\n\nexport const propTypes = {\n image: PropTypes.string,\n mode: PropTypes.string,\n description: PropTypes.string,\n title: CardContentInfo.propTypes.title,\n author: CardContentInfo.propTypes.author,\n progress: CardContentInfo.propTypes.progress,\n onClick: Button.propTypes.onClick,\n submitValue: Button.propTypes.submitValue\n};\n\nexport type Props = {\n image?: string;\n mode?: string;\n description?: string;\n title?: string;\n author?: string;\n progress?: number;\n onClick?: () => void;\n submitValue?: string;\n};\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,eAAP,MAA4B,iBAA5B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEJ,SAAS,CAACK,MADM;EAEvBC,IAAI,EAAEN,SAAS,CAACK,MAFO;EAGvBE,WAAW,EAAEP,SAAS,CAACK,MAHA;EAIvBG,KAAK,EAAEP,eAAe,CAACE,SAAhB,CAA0BK,KAJV;EAKvBC,MAAM,EAAER,eAAe,CAACE,SAAhB,CAA0BM,MALX;EAMvBC,QAAQ,EAAET,eAAe,CAACE,SAAhB,CAA0BO,QANb;EAOvBC,OAAO,EAAET,MAAM,CAACC,SAAP,CAAiBQ,OAPH;EAQvBC,WAAW,EAAEV,MAAM,CAACC,SAAP,CAAiBS;AARP,CAAlB"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
isShowMoreItem: PropTypes.Requireable<boolean>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
declare const MenuLinks: {
|
|
4
|
+
({ items, title }: Props): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
title: import("prop-types").Requireable<string>;
|
|
7
|
+
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
8
|
+
text: import("prop-types").Requireable<string>;
|
|
9
|
+
isSelected: import("prop-types").Requireable<boolean>;
|
|
10
|
+
handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
11
|
+
isShowMoreItem: import("prop-types").Requireable<boolean>;
|
|
14
12
|
}> | null | undefined)[]>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default MenuLinks;
|
|
18
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,SAAS;uBAAoB,KAAK;;;;;;;;;;CA6BvC,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import classnames from 'classnames';
|
|
3
|
+
import { NovaCompositionNavigationArrowDown as ArrowIcon } from '@coorpacademy/nova-icons';
|
|
4
|
+
import { propTypes } from './types';
|
|
4
5
|
import styles from './style.css';
|
|
5
6
|
|
|
6
7
|
const MenuLinks = ({
|
|
@@ -21,23 +22,17 @@ const MenuLinks = ({
|
|
|
21
22
|
return /*#__PURE__*/React.createElement("li", {
|
|
22
23
|
onClick: handleOnclick,
|
|
23
24
|
key: `menu-link-item-${index}`,
|
|
24
|
-
className: styles.item
|
|
25
|
+
className: classnames(item.isShowMoreItem ? styles.showMoreItem : null, styles.item)
|
|
25
26
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
className: item.isSelected ? styles.
|
|
27
|
+
className: classnames(styles.border, item.isSelected ? styles.selectedBorder : null)
|
|
27
28
|
}), /*#__PURE__*/React.createElement("span", {
|
|
28
|
-
className:
|
|
29
|
-
}, item.text
|
|
29
|
+
className: item.isSelected ? styles.selectedItem : undefined
|
|
30
|
+
}, item.text, item.isShowMoreItem ? /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
31
|
+
className: styles.showMoreIcon
|
|
32
|
+
}) : null));
|
|
30
33
|
})));
|
|
31
34
|
};
|
|
32
35
|
|
|
33
|
-
MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
34
|
-
title: PropTypes.string,
|
|
35
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
|
36
|
-
text: PropTypes.string,
|
|
37
|
-
isSelected: PropTypes.bool,
|
|
38
|
-
handleOnclick: PropTypes.func,
|
|
39
|
-
isShowMoreItem: PropTypes.bool
|
|
40
|
-
}))
|
|
41
|
-
} : {};
|
|
36
|
+
MenuLinks.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
42
37
|
export default MenuLinks;
|
|
43
38
|
//# sourceMappingURL=index.js.map
|