@coorpacademy/components 11.15.2 → 11.15.3
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 +19 -0
- package/es/molecule/expandable-item/index.d.ts.map +1 -0
- package/es/molecule/expandable-item/index.js +44 -0
- package/es/molecule/expandable-item/index.js.map +1 -0
- package/es/molecule/expandable-item/style.css +129 -0
- package/es/molecule/expandable-item/types.d.ts +20 -0
- package/es/molecule/expandable-item/types.d.ts.map +1 -0
- package/es/molecule/expandable-item/types.js +11 -0
- package/es/molecule/expandable-item/types.js.map +1 -0
- package/es/molecule/expandable-list/index.d.ts +18 -0
- package/es/molecule/expandable-list/index.d.ts.map +1 -0
- package/es/molecule/expandable-list/index.js +23 -0
- package/es/molecule/expandable-list/index.js.map +1 -0
- package/es/molecule/expandable-list/style.css +20 -0
- package/es/molecule/expandable-list/types.d.ts +17 -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 -26
- package/es/molecule/hero/index.d.ts.map +1 -1
- package/es/molecule/hero/index.js +14 -13
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/hero/style.css +42 -0
- 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 +23 -0
- package/es/molecule/menu-links/index.d.ts.map +1 -0
- package/es/molecule/menu-links/index.js +75 -0
- package/es/molecule/menu-links/index.js.map +1 -0
- package/es/molecule/menu-links/style.css +166 -0
- package/es/molecule/menu-links/types.d.ts +37 -0
- package/es/molecule/menu-links/types.d.ts.map +1 -0
- package/es/molecule/menu-links/types.js +18 -0
- package/es/molecule/menu-links/types.js.map +1 -0
- package/es/molecule/privacy-policy-contact/index.d.ts +14 -0
- package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -0
- package/es/molecule/privacy-policy-contact/index.js +28 -0
- package/es/molecule/privacy-policy-contact/index.js.map +1 -0
- package/es/molecule/privacy-policy-contact/style.css +39 -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/quick-access-card/index.d.ts +1 -0
- package/es/molecule/quick-access-card/index.d.ts.map +1 -1
- package/es/molecule/quick-access-card/index.js +88 -25
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-card/style.css +32 -21
- package/es/molecule/quick-access-cards-group/index.d.ts +1 -0
- package/es/organism/brand-dashboard/index.d.ts +1 -0
- package/es/template/back-office/brand-update/index.d.ts +1 -0
- package/es/template/common/faq-article-page/index.d.ts +27 -0
- package/es/template/common/faq-article-page/index.d.ts.map +1 -0
- package/es/template/common/faq-article-page/index.js +55 -0
- package/es/template/common/faq-article-page/index.js.map +1 -0
- package/es/template/common/faq-article-page/style.css +125 -0
- package/es/template/common/faq-article-page/types.d.ts +41 -0
- package/es/template/common/faq-article-page/types.d.ts.map +1 -0
- package/es/template/common/faq-article-page/types.js +20 -0
- package/es/template/common/faq-article-page/types.js.map +1 -0
- package/es/template/common/faq-cards-page/index.d.ts +33 -0
- package/es/template/common/faq-cards-page/index.d.ts.map +1 -0
- package/es/template/common/faq-cards-page/index.js +45 -0
- package/es/template/common/faq-cards-page/index.js.map +1 -0
- package/es/template/common/faq-cards-page/style.css +106 -0
- package/es/template/common/faq-cards-page/types.d.ts +45 -0
- package/es/template/common/faq-cards-page/types.d.ts.map +1 -0
- package/es/template/common/faq-cards-page/types.js +18 -0
- package/es/template/common/faq-cards-page/types.js.map +1 -0
- package/es/template/common/faq-page/index.d.ts +50 -0
- package/es/template/common/faq-page/index.d.ts.map +1 -0
- package/es/template/common/faq-page/index.js +44 -0
- package/es/template/common/faq-page/index.js.map +1 -0
- package/es/template/common/faq-page/style.css +112 -0
- package/es/template/common/faq-page/types.d.ts +55 -0
- package/es/template/common/faq-page/types.d.ts.map +1 -0
- package/es/template/common/faq-page/types.js +12 -0
- package/es/template/common/faq-page/types.js.map +1 -0
- package/es/template/common/privacy-policy-page/index.d.ts +50 -0
- package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/index.js +44 -0
- package/es/template/common/privacy-policy-page/index.js.map +1 -0
- package/es/template/common/privacy-policy-page/style.css +111 -0
- package/es/template/common/privacy-policy-page/types.d.ts +55 -0
- package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/types.js +12 -0
- package/es/template/common/privacy-policy-page/types.js.map +1 -0
- package/es/util/button-icons.d.ts +1 -0
- package/es/util/button-icons.d.ts.map +1 -1
- package/es/util/button-icons.js +3 -2
- package/es/util/button-icons.js.map +1 -1
- package/es/variables/breakpoints.css +1 -1
- package/lib/molecule/expandable-item/index.d.ts +19 -0
- package/lib/molecule/expandable-item/index.d.ts.map +1 -0
- package/lib/molecule/expandable-item/index.js +58 -0
- package/lib/molecule/expandable-item/index.js.map +1 -0
- package/lib/molecule/expandable-item/style.css +129 -0
- package/lib/molecule/expandable-item/types.d.ts +20 -0
- package/lib/molecule/expandable-item/types.d.ts.map +1 -0
- package/lib/molecule/expandable-item/types.js +20 -0
- package/lib/molecule/expandable-item/types.js.map +1 -0
- package/lib/molecule/expandable-list/index.d.ts +18 -0
- package/lib/molecule/expandable-list/index.d.ts.map +1 -0
- package/lib/molecule/expandable-list/index.js +34 -0
- package/lib/molecule/expandable-list/index.js.map +1 -0
- package/lib/molecule/expandable-list/style.css +20 -0
- package/lib/molecule/expandable-list/types.d.ts +17 -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 -26
- package/lib/molecule/hero/index.d.ts.map +1 -1
- package/lib/molecule/hero/index.js +15 -14
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/hero/style.css +42 -0
- 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 +23 -0
- package/lib/molecule/menu-links/index.d.ts.map +1 -0
- package/lib/molecule/menu-links/index.js +95 -0
- package/lib/molecule/menu-links/index.js.map +1 -0
- package/lib/molecule/menu-links/style.css +166 -0
- package/lib/molecule/menu-links/types.d.ts +37 -0
- package/lib/molecule/menu-links/types.d.ts.map +1 -0
- package/lib/molecule/menu-links/types.js +27 -0
- package/lib/molecule/menu-links/types.js.map +1 -0
- package/lib/molecule/privacy-policy-contact/index.d.ts +14 -0
- package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-contact/index.js +41 -0
- package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
- package/lib/molecule/privacy-policy-contact/style.css +39 -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/quick-access-card/index.d.ts +1 -0
- package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
- package/lib/molecule/quick-access-card/index.js +87 -24
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-card/style.css +32 -21
- package/lib/molecule/quick-access-cards-group/index.d.ts +1 -0
- package/lib/organism/brand-dashboard/index.d.ts +1 -0
- package/lib/template/back-office/brand-update/index.d.ts +1 -0
- package/lib/template/common/faq-article-page/index.d.ts +27 -0
- package/lib/template/common/faq-article-page/index.d.ts.map +1 -0
- package/lib/template/common/faq-article-page/index.js +69 -0
- package/lib/template/common/faq-article-page/index.js.map +1 -0
- package/lib/template/common/faq-article-page/style.css +125 -0
- package/lib/template/common/faq-article-page/types.d.ts +41 -0
- package/lib/template/common/faq-article-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-article-page/types.js +30 -0
- package/lib/template/common/faq-article-page/types.js.map +1 -0
- package/lib/template/common/faq-cards-page/index.d.ts +33 -0
- package/lib/template/common/faq-cards-page/index.d.ts.map +1 -0
- package/lib/template/common/faq-cards-page/index.js +58 -0
- package/lib/template/common/faq-cards-page/index.js.map +1 -0
- package/lib/template/common/faq-cards-page/style.css +106 -0
- package/lib/template/common/faq-cards-page/types.d.ts +45 -0
- package/lib/template/common/faq-cards-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-cards-page/types.js +29 -0
- package/lib/template/common/faq-cards-page/types.js.map +1 -0
- package/lib/template/common/faq-page/index.d.ts +50 -0
- package/lib/template/common/faq-page/index.d.ts.map +1 -0
- package/lib/template/common/faq-page/index.js +58 -0
- package/lib/template/common/faq-page/index.js.map +1 -0
- package/lib/template/common/faq-page/style.css +112 -0
- package/lib/template/common/faq-page/types.d.ts +55 -0
- package/lib/template/common/faq-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-page/types.js +25 -0
- package/lib/template/common/faq-page/types.js.map +1 -0
- package/lib/template/common/privacy-policy-page/index.d.ts +50 -0
- package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/index.js +58 -0
- package/lib/template/common/privacy-policy-page/index.js.map +1 -0
- package/lib/template/common/privacy-policy-page/style.css +111 -0
- package/lib/template/common/privacy-policy-page/types.d.ts +55 -0
- package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/types.js +25 -0
- package/lib/template/common/privacy-policy-page/types.js.map +1 -0
- package/lib/util/button-icons.d.ts +1 -0
- package/lib/util/button-icons.d.ts.map +1 -1
- package/lib/util/button-icons.js +2 -1
- package/lib/util/button-icons.js.map +1 -1
- package/lib/variables/breakpoints.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
|
+
@value mobile from breakpoints;
|
|
3
|
+
@value tablet from breakpoints;
|
|
4
|
+
@value desktop from breakpoints;
|
|
5
|
+
@value colors: "../../../variables/colors.css";
|
|
6
|
+
@value cm_grey_50 from colors;
|
|
7
|
+
|
|
8
|
+
.wrapper {
|
|
9
|
+
background-color: cm_grey_50;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.hero {
|
|
13
|
+
height: 228px;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.container {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
margin: 40px auto;
|
|
21
|
+
padding: 0px 40px;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.menuContainer {
|
|
26
|
+
margin-right: 32px;
|
|
27
|
+
min-width: 308px;
|
|
28
|
+
max-width: 388px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.menueLinksDesctop {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.menueLinksMobile {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.privacyPolicyContact{
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 86px;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.expandableList {
|
|
47
|
+
min-width: 533px;
|
|
48
|
+
max-width: 748px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
@media tablet {
|
|
52
|
+
.container {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
margin: 40px;
|
|
56
|
+
padding: 0px;
|
|
57
|
+
}
|
|
58
|
+
.menuContainer {
|
|
59
|
+
margin: 0px 0px 16px 0px;
|
|
60
|
+
width: 100%;
|
|
61
|
+
min-width: inherit;
|
|
62
|
+
max-width: inherit;
|
|
63
|
+
}
|
|
64
|
+
.expandableList {
|
|
65
|
+
min-width: inherit;
|
|
66
|
+
max-width: inherit;
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
.menueLinksDesctop {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
.menueLinksMobile {
|
|
73
|
+
display: block;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media mobile {
|
|
78
|
+
.hero {
|
|
79
|
+
height: 264px;
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.container {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
margin: 40px 24px;
|
|
86
|
+
padding: 0px;
|
|
87
|
+
}
|
|
88
|
+
.menuContainer {
|
|
89
|
+
margin: 0px 0px 16px 0px;
|
|
90
|
+
width: 100%;
|
|
91
|
+
min-width: inherit;
|
|
92
|
+
max-width: inherit;
|
|
93
|
+
}
|
|
94
|
+
.expandableList {
|
|
95
|
+
min-width: inherit;
|
|
96
|
+
max-width: inherit;
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
.menueLinksDesctop {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
.menueLinksMobile {
|
|
103
|
+
display: block;
|
|
104
|
+
}
|
|
105
|
+
.privacyPolicyContact{
|
|
106
|
+
width: 100%;
|
|
107
|
+
height: max-content;
|
|
108
|
+
display: flex;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { Props as ContactProps } from '../../../molecule/privacy-policy-contact/types';
|
|
3
|
+
import { Props as HeroProps } from '../../../molecule/hero/types';
|
|
4
|
+
import { Props as MenuLinksProps } from '../../../molecule/menu-links/types';
|
|
5
|
+
import { Props as ListProps } from '../../../molecule/expandable-list/types';
|
|
6
|
+
export declare const propTypes: {
|
|
7
|
+
header: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
|
+
image: PropTypes.Requireable<string>;
|
|
9
|
+
mode: PropTypes.Requireable<string>;
|
|
10
|
+
description: PropTypes.Requireable<string>;
|
|
11
|
+
title: PropTypes.Requireable<string>;
|
|
12
|
+
author: PropTypes.Requireable<string>;
|
|
13
|
+
progress: PropTypes.Requireable<number>;
|
|
14
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
submitValue: PropTypes.Requireable<string>;
|
|
16
|
+
}>>;
|
|
17
|
+
privacyPolicyContact: PropTypes.Requireable<PropTypes.InferProps<{
|
|
18
|
+
title: PropTypes.Requireable<string>;
|
|
19
|
+
content: PropTypes.Requireable<string>;
|
|
20
|
+
}>>;
|
|
21
|
+
menuLinks: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
|
+
title: PropTypes.Requireable<string>;
|
|
23
|
+
numberOfDisplayedItems: PropTypes.Requireable<number>;
|
|
24
|
+
isDesktopMode: PropTypes.Requireable<boolean>;
|
|
25
|
+
withScroll: PropTypes.Requireable<boolean>;
|
|
26
|
+
showMoreItem: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
|
+
showMoreText: PropTypes.Requireable<string>;
|
|
28
|
+
showLessText: PropTypes.Requireable<string>;
|
|
29
|
+
isSelected: PropTypes.Requireable<boolean>;
|
|
30
|
+
}>>;
|
|
31
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
32
|
+
text: PropTypes.Requireable<string>;
|
|
33
|
+
isSelected: PropTypes.Requireable<boolean>;
|
|
34
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
+
}> | null | undefined)[]>;
|
|
36
|
+
}>>;
|
|
37
|
+
expandableList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
39
|
+
title: PropTypes.Requireable<string>;
|
|
40
|
+
icon: PropTypes.Requireable<string>;
|
|
41
|
+
isExpended: PropTypes.Requireable<boolean>;
|
|
42
|
+
isLink: PropTypes.Requireable<boolean>;
|
|
43
|
+
content: PropTypes.Requireable<string>;
|
|
44
|
+
image: PropTypes.Requireable<string>;
|
|
45
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
|
+
}> | null | undefined)[]>;
|
|
47
|
+
}>>;
|
|
48
|
+
};
|
|
49
|
+
export declare type Props = {
|
|
50
|
+
header: HeroProps;
|
|
51
|
+
privacyPolicyContact: ContactProps;
|
|
52
|
+
menuLinks: MenuLinksProps;
|
|
53
|
+
expandableList: ListProps;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/common/privacy-policy-page/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,YAAY,EAEtB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,KAAK,IAAI,cAAc,EAExB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,IAAI,SAAS,EAEnB,MAAM,yCAAyC,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,oBAAoB,EAAE,YAAY,CAAC;IACnC,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { propTypes as ContactPropTypes } from '../../../molecule/privacy-policy-contact/types';
|
|
3
|
+
import { propTypes as HeroPropTypes } from '../../../molecule/hero/types';
|
|
4
|
+
import { propTypes as MenuLinksPropTypes } from '../../../molecule/menu-links/types';
|
|
5
|
+
import { propTypes as ListPropTypes } from '../../../molecule/expandable-list/types';
|
|
6
|
+
export const propTypes = {
|
|
7
|
+
header: PropTypes.shape(HeroPropTypes),
|
|
8
|
+
privacyPolicyContact: PropTypes.shape(ContactPropTypes),
|
|
9
|
+
menuLinks: PropTypes.shape(MenuLinksPropTypes),
|
|
10
|
+
expandableList: PropTypes.shape(ListPropTypes)
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;EAoBE"}
|
package/es/util/button-icons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon, NovaSolidFilesFoldersFolders as FoldersIcon, NovaSolidFilesBasicFileUpload2 as UploadIcon, NovaCompositionNavigationArrowDown as ArrowDown, NovaLineFilesOfficeFileOfficePdf as PDF } from '@coorpacademy/nova-icons';
|
|
1
|
+
import { NovaSolidRemoveAddAddCircle1 as AddIcon, NovaCompositionCoorpacademyAnalytics as AnalyticsIcon, NovaSolidContentEditionBin as BinIcon, NovaCompositionCoorpacademyBulletPoint as BulletPointIcon, NovaCompositionNavigationArrowLeft as ChevronLeftIcon, NovaCompositionNavigationArrowRight as ChevronRightIcon, NovaSolidStatusClose as CloseIcon, NovaSolidContentEditionPencilWrite as EditIcon, NovaCompositionCoorpacademyEye as EyeIcon, NovaSolidContentContentViewModule1 as ListIcon, NovaSolidLoginLogout1 as LogoutIcon, NovaSolidApplicationsWindowUpload3 as PublishIcon, NovaSolidComputersSdCard as SaveIcon, NovaLineLoginKey1 as KlfIcon, NovaSolidFilesFoldersFolders as FoldersIcon, NovaSolidFilesBasicFileUpload2 as UploadIcon, NovaCompositionNavigationArrowDown as ArrowDown, NovaCompositionNavigationArrowLeft as ArrowLeft, NovaLineFilesOfficeFileOfficePdf as PDF } from '@coorpacademy/nova-icons';
|
|
2
2
|
export const ICONS = {
|
|
3
3
|
add: AddIcon,
|
|
4
4
|
analytics: AnalyticsIcon,
|
|
@@ -17,6 +17,7 @@ export const ICONS = {
|
|
|
17
17
|
folders: FoldersIcon,
|
|
18
18
|
upload: UploadIcon,
|
|
19
19
|
down: ArrowDown,
|
|
20
|
-
pdf: PDF
|
|
20
|
+
pdf: PDF,
|
|
21
|
+
back: ArrowLeft
|
|
21
22
|
};
|
|
22
23
|
//# sourceMappingURL=button-icons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-icons.js","names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","NovaSolidFilesFoldersFolders","FoldersIcon","NovaSolidFilesBasicFileUpload2","UploadIcon","NovaCompositionNavigationArrowDown","ArrowDown","NovaLineFilesOfficeFileOfficePdf","PDF","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see","folders","upload","down","pdf"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF\n};\n"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,EAcEC,iBAAiB,IAAIC,OAdvB,EAeEC,4BAA4B,IAAIC,WAflC,EAgBEC,8BAA8B,IAAIC,UAhBpC,EAiBEC,kCAAkC,IAAIC,SAjBxC,
|
|
1
|
+
{"version":3,"file":"button-icons.js","names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","NovaSolidFilesFoldersFolders","FoldersIcon","NovaSolidFilesBasicFileUpload2","UploadIcon","NovaCompositionNavigationArrowDown","ArrowDown","ArrowLeft","NovaLineFilesOfficeFileOfficePdf","PDF","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see","folders","upload","down","pdf","back"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF,\n back: ArrowLeft\n};\n"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,EAcEC,iBAAiB,IAAIC,OAdvB,EAeEC,4BAA4B,IAAIC,WAflC,EAgBEC,8BAA8B,IAAIC,UAhBpC,EAiBEC,kCAAkC,IAAIC,SAjBxC,EAkBEzB,kCAAkC,IAAI0B,SAlBxC,EAmBEC,gCAAgC,IAAIC,GAnBtC,QAoBO,0BApBP;AAsBA,OAAO,MAAMC,KAAK,GAAG;EACnBC,GAAG,EAAErC,OADc;EAEnBsC,SAAS,EAAEpC,aAFQ;EAGnBqC,GAAG,EAAEnC,OAHc;EAInB,gBAAgBE,eAJG;EAKnB,gBAAgBE,eALG;EAMnB,iBAAiBE,gBANE;EAOnB8B,KAAK,EAAE5B,SAPY;EAQnB6B,IAAI,EAAE3B,QARa;EASnB4B,GAAG,EAAEhB,OATc;EAUnBiB,IAAI,EAAEzB,QAVa;EAWnB0B,MAAM,EAAExB,UAXW;EAYnByB,OAAO,EAAEvB,WAZU;EAanBwB,IAAI,EAAEtB,QAba;EAcnBuB,GAAG,EAAE/B,OAdc;EAenBgC,OAAO,EAAEpB,WAfU;EAgBnBqB,MAAM,EAAEnB,UAhBW;EAiBnBoB,IAAI,EAAElB,SAjBa;EAkBnBmB,GAAG,EAAEhB,GAlBc;EAmBnBiB,IAAI,EAAEnB;AAnBa,CAAd"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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, isLink, 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
|
+
isLink: 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
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default ExpandableItem;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;mEAAgE,KAAK;;;;;;;;;;CA8BxF,CAAC;AAGF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.ICONS = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
|
|
10
|
+
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
11
|
+
|
|
12
|
+
var _types = require("./types");
|
|
13
|
+
|
|
14
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
const ICONS = {
|
|
19
|
+
arrow: _novaIcons.NovaCompositionNavigationArrowDown
|
|
20
|
+
};
|
|
21
|
+
exports.ICONS = ICONS;
|
|
22
|
+
|
|
23
|
+
const ExpandableItem = ({
|
|
24
|
+
icon,
|
|
25
|
+
title,
|
|
26
|
+
isExpended,
|
|
27
|
+
isLink,
|
|
28
|
+
content,
|
|
29
|
+
onClick,
|
|
30
|
+
image
|
|
31
|
+
}) => {
|
|
32
|
+
const Icon = ICONS[icon];
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: isExpended ? _style.default.expendedContainer : _style.default.container
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
+
className: (0, _classnames.default)(_style.default.header, isExpended ? _style.default.expendedHeader : null),
|
|
37
|
+
onClick: onClick
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement("h3", {
|
|
39
|
+
className: _style.default.title
|
|
40
|
+
}, title), Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
|
|
41
|
+
className: (0, _classnames.default)(_style.default.icon, isExpended ? _style.default.expendedIcon : null, isLink ? _style.default.linkIcon : null)
|
|
42
|
+
}) : null), isExpended ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: _style.default.content // eslint-disable-next-line react/no-danger
|
|
44
|
+
,
|
|
45
|
+
dangerouslySetInnerHTML: {
|
|
46
|
+
__html: content
|
|
47
|
+
}
|
|
48
|
+
}), image ? /*#__PURE__*/_react.default.createElement("img", {
|
|
49
|
+
className: _style.default.image,
|
|
50
|
+
src: image,
|
|
51
|
+
alt: ''
|
|
52
|
+
}) : null) : null);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
ExpandableItem.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
56
|
+
var _default = ExpandableItem;
|
|
57
|
+
exports.default = _default;
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","Icon","styles","expendedContainer","container","classnames","header","expendedHeader","expendedIcon","linkIcon","__html","propTypes"],"sources":["../../../src/molecule/expandable-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nexport const ICONS = {\n arrow: ArrowIcon\n};\n\nconst ExpandableItem = ({icon, title, isExpended, isLink, content, onClick, image}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container}>\n <div\n className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}\n onClick={onClick}\n >\n <h3 className={styles.title}>{title}</h3>\n {Icon ? (\n <Icon\n className={classnames(\n styles.icon,\n isExpended ? styles.expendedIcon : null,\n isLink ? styles.linkIcon : null\n )}\n />\n ) : null}\n </div>\n {isExpended ? (\n <div>\n <div\n className={styles.content} // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {image ? <img className={styles.image} src={image} alt={''} /> : null}\n </div>\n ) : null}\n </div>\n );\n};\n\nExpandableItem.propTypes = propTypes;\nexport default ExpandableItem;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,UAAd;EAA0BC,MAA1B;EAAkCC,OAAlC;EAA2CC,OAA3C;EAAoDC;AAApD,CAAD,KAAuE;EAC5F,MAAMC,IAAI,GAAGX,KAAK,CAACI,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGM,cAAA,CAAOC,iBAAV,GAA8BD,cAAA,CAAOE;EAA/D,gBACE;IACE,SAAS,EAAE,IAAAC,mBAAA,EAAWH,cAAA,CAAOI,MAAlB,EAA0BV,UAAU,GAAGM,cAAA,CAAOK,cAAV,GAA2B,IAA/D,CADb;IAEE,OAAO,EAAER;EAFX,gBAIE;IAAI,SAAS,EAAEG,cAAA,CAAOP;EAAtB,GAA8BA,KAA9B,CAJF,EAKGM,IAAI,gBACH,6BAAC,IAAD;IACE,SAAS,EAAE,IAAAI,mBAAA,EACTH,cAAA,CAAOR,IADE,EAETE,UAAU,GAAGM,cAAA,CAAOM,YAAV,GAAyB,IAF1B,EAGTX,MAAM,GAAGK,cAAA,CAAOO,QAAV,GAAqB,IAHlB;EADb,EADG,GAQD,IAbN,CADF,EAgBGb,UAAU,gBACT,uDACE;IACE,SAAS,EAAEM,cAAA,CAAOJ,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACY,MAAM,EAAEZ;IAAT;EAF3B,EADF,EAKGE,KAAK,gBAAG;IAAK,SAAS,EAAEE,cAAA,CAAOF,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IALnE,CADS,GAQP,IAxBN,CADF;AA4BD,CA9BD;;AAgCAP,cAAc,CAACkB,SAAf,2CAA2BA,gBAA3B;eACelB,c"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
@value tablet from breakpoints;
|
|
5
|
+
@value cm_primary_blue from colors;
|
|
6
|
+
@value cm_grey_500 from colors;
|
|
7
|
+
@value cm_grey_600 from colors;
|
|
8
|
+
@value cm_grey_800 from colors;
|
|
9
|
+
@value cm_grey_700 from colors;
|
|
10
|
+
@value white from colors;
|
|
11
|
+
|
|
12
|
+
.container {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
background: white;
|
|
16
|
+
gap: 16px;
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.header {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
flex: none;
|
|
27
|
+
order: 0;
|
|
28
|
+
flex-grow: 0;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
align-items: center;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
padding: 24px;
|
|
33
|
+
gap: 16px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.expendedContainer {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
background: white;
|
|
40
|
+
gap: 16px;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.expendedHeader {
|
|
48
|
+
padding: 24px 24px 0px 24px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.title {
|
|
52
|
+
font-family: Gilroy;
|
|
53
|
+
color: cm_grey_700;
|
|
54
|
+
margin: 0;
|
|
55
|
+
font-weight: inherit;
|
|
56
|
+
font-family: Gilroy;
|
|
57
|
+
font-size: 18px;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
line-height: 24px;
|
|
60
|
+
letter-spacing: 0px;
|
|
61
|
+
text-align: left;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.icon {
|
|
65
|
+
width: 16px;
|
|
66
|
+
height: 16px;
|
|
67
|
+
width: 14px;
|
|
68
|
+
left: 5px;
|
|
69
|
+
top: 9px;
|
|
70
|
+
border-radius: 0px;
|
|
71
|
+
color: cm_grey_500;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
min-width: 16px;
|
|
74
|
+
flex-basis: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.expendedIcon {
|
|
78
|
+
transform: rotateZ(180deg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.linkIcon {
|
|
82
|
+
transform: rotateZ(270deg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.content {
|
|
86
|
+
font-family: Gilroy;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
line-height: 20px;
|
|
90
|
+
letter-spacing: 0px;
|
|
91
|
+
text-align: left;
|
|
92
|
+
padding: 0px 40px 32px 40px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.image {
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media mobile {
|
|
100
|
+
.container {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
background: white;
|
|
104
|
+
gap: 16px;
|
|
105
|
+
border-radius: 8px;
|
|
106
|
+
width: 100%;
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
height: max-content;
|
|
110
|
+
font-family: Gilroy;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
font-weight: 500;
|
|
113
|
+
line-height: 20px;
|
|
114
|
+
letter-spacing: 0px;
|
|
115
|
+
text-align: left;
|
|
116
|
+
}
|
|
117
|
+
.header {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
flex: none;
|
|
121
|
+
order: 0;
|
|
122
|
+
flex-grow: 0;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
align-items: center;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
padding: 12px 40px;
|
|
127
|
+
height: max-content;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
isLink: PropTypes.Requireable<boolean>;
|
|
7
|
+
content: PropTypes.Requireable<string>;
|
|
8
|
+
image: PropTypes.Requireable<string>;
|
|
9
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
};
|
|
11
|
+
export declare type Props = {
|
|
12
|
+
title: string;
|
|
13
|
+
icon: 'arrow';
|
|
14
|
+
isExpended: boolean;
|
|
15
|
+
content: string;
|
|
16
|
+
isLink?: boolean;
|
|
17
|
+
image?: string;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
};
|
|
20
|
+
//# 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;;;;;;;;CAQrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
|
|
10
|
+
const propTypes = {
|
|
11
|
+
title: _propTypes.default.string,
|
|
12
|
+
icon: _propTypes.default.oneOf(['arrow']),
|
|
13
|
+
isExpended: _propTypes.default.bool,
|
|
14
|
+
isLink: _propTypes.default.bool,
|
|
15
|
+
content: _propTypes.default.string,
|
|
16
|
+
image: _propTypes.default.string,
|
|
17
|
+
onClick: _propTypes.default.func
|
|
18
|
+
};
|
|
19
|
+
exports.propTypes = propTypes;
|
|
20
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","icon","oneOf","isExpended","bool","isLink","content","image","onClick","func"],"sources":["../../../src/molecule/expandable-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n icon: PropTypes.oneOf(['arrow']),\n isExpended: PropTypes.bool,\n isLink: PropTypes.bool,\n content: PropTypes.string,\n image: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n isLink?: boolean;\n image?: string;\n onClick: () => void;\n};\n"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEJ,kBAAA,CAAUK,IAHC;EAIvBC,MAAM,EAAEN,kBAAA,CAAUK,IAJK;EAKvBE,OAAO,EAAEP,kBAAA,CAAUC,MALI;EAMvBO,KAAK,EAAER,kBAAA,CAAUC,MANM;EAOvBQ,OAAO,EAAET,kBAAA,CAAUU;AAPI,CAAlB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
declare const ExpandableList: {
|
|
4
|
+
({ items }: Props): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
7
|
+
title: import("prop-types").Requireable<string>;
|
|
8
|
+
icon: import("prop-types").Requireable<string>;
|
|
9
|
+
isExpended: import("prop-types").Requireable<boolean>;
|
|
10
|
+
isLink: import("prop-types").Requireable<boolean>;
|
|
11
|
+
content: import("prop-types").Requireable<string>;
|
|
12
|
+
image: import("prop-types").Requireable<string>;
|
|
13
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
14
|
+
}> | null | undefined)[]>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default ExpandableList;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,cAAc;gBAAa,KAAK;;;;;;;;;;;;CAgBrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _expandableItem = _interopRequireDefault(require("../expandable-item"));
|
|
9
|
+
|
|
10
|
+
var _types = require("./types");
|
|
11
|
+
|
|
12
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
const ExpandableList = ({
|
|
17
|
+
items
|
|
18
|
+
}) => {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
20
|
+
className: _style.default.list,
|
|
21
|
+
"data-name": "expandable-item"
|
|
22
|
+
}, items.map((item, index) => {
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
24
|
+
key: `menu-link-item-${index}`,
|
|
25
|
+
id: `menu-link-item-${index}`,
|
|
26
|
+
className: _style.default.item
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_expandableItem.default, item));
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
32
|
+
var _default = ExpandableList;
|
|
33
|
+
exports.default = _default;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["ExpandableList","items","styles","list","map","item","index","propTypes"],"sources":["../../../src/molecule/expandable-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport ExpandableItem from '../expandable-item';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\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\n key={`menu-link-item-${index}`}\n id={`menu-link-item-${index}`}\n className={styles.item}\n >\n <ExpandableItem {...item} />\n </li>\n );\n })}\n </ul>\n );\n};\n\nExpandableList.propTypes = propTypes;\n\nexport default ExpandableList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,cAAc,GAAG,CAAC;EAACC;AAAD,CAAD,KAAoB;EACzC,oBACE;IAAI,SAAS,EAAEC,cAAA,CAAOC,IAAtB;IAA4B,aAAU;EAAtC,GACGF,KAAK,CAACG,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;IAC1B,oBACE;MACE,GAAG,EAAG,kBAAiBA,KAAM,EAD/B;MAEE,EAAE,EAAG,kBAAiBA,KAAM,EAF9B;MAGE,SAAS,EAAEJ,cAAA,CAAOG;IAHpB,gBAKE,6BAAC,uBAAD,EAAoBA,IAApB,CALF,CADF;EASD,CAVA,CADH,CADF;AAeD,CAhBD;;AAkBAL,cAAc,CAACO,SAAf,2CAA2BA,gBAA3B;eAEeP,c"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
@value tablet from breakpoints;
|
|
5
|
+
@value cm_primary_blue from colors;
|
|
6
|
+
@value cm_grey_500 from colors;
|
|
7
|
+
@value cm_grey_800 from colors;
|
|
8
|
+
|
|
9
|
+
.list {
|
|
10
|
+
list-style: none;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.item {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
margin-bottom: 16px;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
isLink: PropTypes.Requireable<boolean>;
|
|
9
|
+
content: PropTypes.Requireable<string>;
|
|
10
|
+
image: PropTypes.Requireable<string>;
|
|
11
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
}> | null | undefined)[]>;
|
|
13
|
+
};
|
|
14
|
+
export declare type Props = {
|
|
15
|
+
items: ItemProps[];
|
|
16
|
+
};
|
|
17
|
+
//# 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,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
var _types = require("../expandable-item/types");
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
const propTypes = {
|
|
13
|
+
items: _propTypes.default.arrayOf(_propTypes.default.shape(_types.propTypes))
|
|
14
|
+
};
|
|
15
|
+
exports.propTypes = propTypes;
|
|
16
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","items","PropTypes","arrayOf","shape","ItemPropTypes"],"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;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,gBAAhB,CAAlB;AADgB,CAAlB"}
|