@coorpacademy/components 11.14.13 → 11.14.14-alpha.11
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 +135 -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 +22 -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 +22 -0
- package/es/molecule/menu-links/index.d.ts.map +1 -0
- package/es/molecule/menu-links/index.js +70 -0
- package/es/molecule/menu-links/index.js.map +1 -0
- package/es/molecule/menu-links/style.css +161 -0
- package/es/molecule/menu-links/types.d.ts +35 -0
- package/es/molecule/menu-links/types.d.ts.map +1 -0
- package/es/molecule/menu-links/types.js +17 -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 +38 -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 +38 -0
- package/es/molecule/privacy-policy-download/index.d.ts.map +1 -0
- package/es/molecule/privacy-policy-download/index.js +27 -0
- package/es/molecule/privacy-policy-download/index.js.map +1 -0
- package/es/molecule/privacy-policy-download/style.css +65 -0
- package/es/molecule/privacy-policy-download/types.d.ts +50 -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/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 +28 -17
- 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 +110 -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 +95 -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 +80 -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 +104 -0
- package/es/template/common/faq-page/types.d.ts +87 -0
- package/es/template/common/faq-page/types.d.ts.map +1 -0
- package/es/template/common/faq-page/types.js +14 -0
- package/es/template/common/faq-page/types.js.map +1 -0
- package/es/template/common/privacy-policy-page/index.d.ts +80 -0
- package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/index.js +50 -0
- package/es/template/common/privacy-policy-page/index.js.map +1 -0
- package/es/template/common/privacy-policy-page/style.css +123 -0
- package/es/template/common/privacy-policy-page/types.d.ts +87 -0
- package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/types.js +14 -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 +135 -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 +33 -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 +22 -0
- package/lib/molecule/menu-links/index.d.ts.map +1 -0
- package/lib/molecule/menu-links/index.js +88 -0
- package/lib/molecule/menu-links/index.js.map +1 -0
- package/lib/molecule/menu-links/style.css +161 -0
- package/lib/molecule/menu-links/types.d.ts +35 -0
- package/lib/molecule/menu-links/types.d.ts.map +1 -0
- package/lib/molecule/menu-links/types.js +26 -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 +38 -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 +38 -0
- package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-download/index.js +38 -0
- package/lib/molecule/privacy-policy-download/index.js.map +1 -0
- package/lib/molecule/privacy-policy-download/style.css +65 -0
- package/lib/molecule/privacy-policy-download/types.d.ts +50 -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/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 +28 -17
- 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 +110 -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 +95 -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 +80 -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 +104 -0
- package/lib/template/common/faq-page/types.d.ts +87 -0
- package/lib/template/common/faq-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-page/types.js +28 -0
- package/lib/template/common/faq-page/types.js.map +1 -0
- package/lib/template/common/privacy-policy-page/index.d.ts +80 -0
- package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/index.js +65 -0
- package/lib/template/common/privacy-policy-page/index.js.map +1 -0
- package/lib/template/common/privacy-policy-page/style.css +123 -0
- package/lib/template/common/privacy-policy-page/types.d.ts +87 -0
- package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/types.js +28 -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,135 @@
|
|
|
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
|
+
height: 72px;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.header {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
flex: none;
|
|
28
|
+
order: 0;
|
|
29
|
+
flex-grow: 0;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: center;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
padding: 24px;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.expendedContainer {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
background: white;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
border-radius: 2px;
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.expendedHeader {
|
|
49
|
+
padding: 24px 24px 0px 24px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.title {
|
|
53
|
+
font-family: Gilroy;
|
|
54
|
+
color: cm_grey_700;
|
|
55
|
+
margin: 0;
|
|
56
|
+
font-weight: inherit;
|
|
57
|
+
font-family: Gilroy;
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
line-height: 24px;
|
|
61
|
+
letter-spacing: 0px;
|
|
62
|
+
text-align: left;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.icon {
|
|
66
|
+
width: 16px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
width: 14px;
|
|
69
|
+
left: 5px;
|
|
70
|
+
top: 9px;
|
|
71
|
+
border-radius: 0px;
|
|
72
|
+
color: cm_grey_500;
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
min-width: 16px;
|
|
75
|
+
flex-basis: 16px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.expendedIcon {
|
|
79
|
+
transform: rotateZ(180deg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.linkIcon {
|
|
83
|
+
transform: rotateZ(270deg);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.content {
|
|
87
|
+
font-family: Gilroy;
|
|
88
|
+
font-size: 20px;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
line-height: 28px;
|
|
91
|
+
letter-spacing: 0px;
|
|
92
|
+
text-align: left;
|
|
93
|
+
padding: 0px 40px 32px 40px;
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.image {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.content span{
|
|
102
|
+
font-family: Gilroy;
|
|
103
|
+
font-size: 20px;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
line-height: 28px;
|
|
106
|
+
letter-spacing: 0px;
|
|
107
|
+
text-align: left;
|
|
108
|
+
color: cm_grey_600;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media mobile {
|
|
112
|
+
.container {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
background: white;
|
|
116
|
+
gap: 16px;
|
|
117
|
+
border-radius: 2px;
|
|
118
|
+
width: 100%;
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
height: max-content;
|
|
122
|
+
}
|
|
123
|
+
.header {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: row;
|
|
126
|
+
flex: none;
|
|
127
|
+
order: 0;
|
|
128
|
+
flex-grow: 0;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
align-items: center;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
padding: 12px 40px;
|
|
133
|
+
height: max-content;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -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;;;;;;;;;;;;CAYrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
className: _style.default.item
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_expandableItem.default, item));
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
31
|
+
var _default = ExpandableList;
|
|
32
|
+
exports.default = _default;
|
|
33
|
+
//# 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 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;;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;MAAI,GAAG,EAAG,kBAAiBA,KAAM,EAAjC;MAAoC,SAAS,EAAEJ,cAAA,CAAOG;IAAtD,gBACE,6BAAC,uBAAD,EAAoBA,IAApB,CADF,CADF;EAKD,CANA,CADH,CADF;AAWD,CAZD;;AAcAL,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"}
|
|
@@ -1,37 +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
|
-
|
|
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;
|
|
37
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"}
|
|
@@ -7,8 +7,6 @@ var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
11
|
|
|
14
12
|
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
@@ -17,6 +15,8 @@ var _button = _interopRequireDefault(require("../../atom/button"));
|
|
|
17
15
|
|
|
18
16
|
var _cardContent = _interopRequireWildcard(require("../card-content"));
|
|
19
17
|
|
|
18
|
+
var _types = require("./types");
|
|
19
|
+
|
|
20
20
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
21
21
|
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -35,7 +35,9 @@ const Hero = (props, context) => {
|
|
|
35
35
|
author,
|
|
36
36
|
progress,
|
|
37
37
|
onClick,
|
|
38
|
-
submitValue
|
|
38
|
+
submitValue,
|
|
39
|
+
description,
|
|
40
|
+
mode = _cardContent.MODES.HERO
|
|
39
41
|
} = props;
|
|
40
42
|
const primaryColor = (0, _get2.default)('common.primary', skin);
|
|
41
43
|
const cardStyle = (0, _classnames.default)(_style.default.hero, title ? null : _style.default.lazy);
|
|
@@ -51,12 +53,18 @@ const Hero = (props, context) => {
|
|
|
51
53
|
backgroundColor: primaryColor,
|
|
52
54
|
backgroundImage: image ? `url('${image}')` : 'none'
|
|
53
55
|
}
|
|
54
|
-
})), /*#__PURE__*/_react.default.createElement(_cardContent.default, {
|
|
56
|
+
})), mode === _cardContent.MODES.HERO ? /*#__PURE__*/_react.default.createElement(_cardContent.default, {
|
|
55
57
|
mode: _cardContent.MODES.HERO,
|
|
56
58
|
author: author,
|
|
57
59
|
progress: progress,
|
|
58
60
|
title: title
|
|
59
|
-
})
|
|
61
|
+
}) : /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
className: _style.default.infoWrapper
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("h1", {
|
|
64
|
+
className: _style.default.title
|
|
65
|
+
}, title), /*#__PURE__*/_react.default.createElement("p", {
|
|
66
|
+
className: _style.default.description
|
|
67
|
+
}, description)), mode === _cardContent.MODES.HERO ? /*#__PURE__*/_react.default.createElement("div", {
|
|
60
68
|
className: _style.default.heroButtonWrapper
|
|
61
69
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
62
70
|
type: "link",
|
|
@@ -67,20 +75,13 @@ const Hero = (props, context) => {
|
|
|
67
75
|
style: {
|
|
68
76
|
backgroundColor: primaryColor
|
|
69
77
|
}
|
|
70
|
-
})));
|
|
78
|
+
})) : null);
|
|
71
79
|
};
|
|
72
80
|
|
|
73
81
|
Hero.contextTypes = {
|
|
74
82
|
skin: _provider.default.childContextTypes.skin
|
|
75
83
|
};
|
|
76
|
-
Hero.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
77
|
-
image: _propTypes.default.string,
|
|
78
|
-
title: _cardContent.default.propTypes.title,
|
|
79
|
-
author: _cardContent.default.propTypes.author,
|
|
80
|
-
progress: _cardContent.default.propTypes.progress,
|
|
81
|
-
onClick: _button.default.propTypes.onClick,
|
|
82
|
-
submitValue: _button.default.propTypes.submitValue
|
|
83
|
-
} : {};
|
|
84
|
+
Hero.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
84
85
|
var _default = Hero;
|
|
85
86
|
exports.default = _default;
|
|
86
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Hero","props","context","skin","image","title","author","progress","onClick","submitValue","primaryColor","cardStyle","classnames","style","hero","lazy","imageWrapper","backgroundColor","backgroundImage","
|
|
1
|
+
{"version":3,"file":"index.js","names":["Hero","props","context","skin","image","title","author","progress","onClick","submitValue","description","mode","MODES","HERO","primaryColor","cardStyle","classnames","style","hero","lazy","imageWrapper","backgroundColor","backgroundImage","infoWrapper","heroButtonWrapper","heroButton","contextTypes","Provider","childContextTypes","propTypes"],"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;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,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,GAAGC,kBAAA,CAAMC;EART,IASFZ,KATJ;EAWA,MAAMa,YAAY,GAAG,mBAAI,gBAAJ,EAAsBX,IAAtB,CAArB;EACA,MAAMY,SAAS,GAAG,IAAAC,mBAAA,EAAWC,cAAA,CAAMC,IAAjB,EAAuBb,KAAK,GAAG,IAAH,GAAUY,cAAA,CAAME,IAA5C,CAAlB;EAEA,oBACE;IAAK,SAAS,EAAEJ,SAAhB;IAA2B,aAAU;EAArC,gBACE;IAAK,SAAS,EAAEE,cAAA,CAAMG;EAAtB,gBACE;IACE,aAAU,OADZ;IAEE,SAAS,EAAEH,cAAA,CAAMb,KAFnB;IAGE,KAAK,EAAE;MACLiB,eAAe,EAAEP,YADZ;MAELQ,eAAe,EAAElB,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;IAFxC;EAHT,EADF,CADF,EAWGO,IAAI,KAAKC,kBAAA,CAAMC,IAAf,gBACC,6BAAC,oBAAD;IAAiB,IAAI,EAAED,kBAAA,CAAMC,IAA7B;IAAmC,MAAM,EAAEP,MAA3C;IAAmD,QAAQ,EAAEC,QAA7D;IAAuE,KAAK,EAAEF;EAA9E,EADD,gBAGC;IAAK,SAAS,EAAEY,cAAA,CAAMM;EAAtB,gBACE;IAAI,SAAS,EAAEN,cAAA,CAAMZ;EAArB,GAA6BA,KAA7B,CADF,eAEE;IAAG,SAAS,EAAEY,cAAA,CAAMP;EAApB,GAAkCA,WAAlC,CAFF,CAdJ,EAmBGC,IAAI,KAAKC,kBAAA,CAAMC,IAAf,gBACC;IAAK,SAAS,EAAEI,cAAA,CAAMO;EAAtB,gBACE,6BAAC,eAAD;IACE,IAAI,EAAC,MADP;IAEE,aAAU,aAFZ;IAGE,OAAO,EAAEhB,OAHX;IAIE,WAAW,EAAEC,WAJf;IAKE,SAAS,EAAEQ,cAAA,CAAMQ,UALnB;IAME,KAAK,EAAE;MAACJ,eAAe,EAAEP;IAAlB;EANT,EADF,CADD,GAWG,IA9BN,CADF;AAkCD,CAlDD;;AAoDAd,IAAI,CAAC0B,YAAL,GAAoB;EAClBvB,IAAI,EAAEwB,iBAAA,CAASC,iBAAT,CAA2BzB;AADf,CAApB;AAIAH,IAAI,CAAC6B,SAAL,2CAAiBA,gBAAjB;eAEe7B,I"}
|
|
@@ -156,3 +156,45 @@
|
|
|
156
156
|
opacity: 0;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
|
|
160
|
+
.infoWrapper {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
position: relative;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
padding: 0 40px;
|
|
166
|
+
width: 100%;
|
|
167
|
+
box-sizing: border-box;
|
|
168
|
+
color: white;
|
|
169
|
+
align-self: center;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.title {
|
|
173
|
+
font-family: Gilroy;
|
|
174
|
+
font-size: 28px;
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
line-height: 36px;
|
|
177
|
+
letter-spacing: 0px;
|
|
178
|
+
text-align: center;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
user-select: none;
|
|
181
|
+
margin: 0;
|
|
182
|
+
align-self: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.description {
|
|
186
|
+
text-align: center;
|
|
187
|
+
margin-top: 12px;
|
|
188
|
+
font-size: 18px;
|
|
189
|
+
font-family: Gilroy;
|
|
190
|
+
font-size: 18px;
|
|
191
|
+
font-weight: 500;
|
|
192
|
+
line-height: 24px;
|
|
193
|
+
letter-spacing: 0px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
user-select: none;
|
|
196
|
+
max-width: 650px;
|
|
197
|
+
padding: 0;
|
|
198
|
+
margin: 0;
|
|
199
|
+
align-self: center;
|
|
200
|
+
}
|
|
@@ -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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
var _cardContent = _interopRequireDefault(require("../card-content"));
|
|
9
|
+
|
|
10
|
+
var _button = _interopRequireDefault(require("../../atom/button"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
const propTypes = {
|
|
15
|
+
image: _propTypes.default.string,
|
|
16
|
+
mode: _propTypes.default.string,
|
|
17
|
+
description: _propTypes.default.string,
|
|
18
|
+
title: _cardContent.default.propTypes.title,
|
|
19
|
+
author: _cardContent.default.propTypes.author,
|
|
20
|
+
progress: _cardContent.default.propTypes.progress,
|
|
21
|
+
onClick: _button.default.propTypes.onClick,
|
|
22
|
+
submitValue: _button.default.propTypes.submitValue
|
|
23
|
+
};
|
|
24
|
+
exports.propTypes = propTypes;
|
|
25
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","image","PropTypes","string","mode","description","title","CardContentInfo","author","progress","onClick","Button","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;;AACA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,IAAI,EAAEF,kBAAA,CAAUC,MAFO;EAGvBE,WAAW,EAAEH,kBAAA,CAAUC,MAHA;EAIvBG,KAAK,EAAEC,oBAAA,CAAgBP,SAAhB,CAA0BM,KAJV;EAKvBE,MAAM,EAAED,oBAAA,CAAgBP,SAAhB,CAA0BQ,MALX;EAMvBC,QAAQ,EAAEF,oBAAA,CAAgBP,SAAhB,CAA0BS,QANb;EAOvBC,OAAO,EAAEC,eAAA,CAAOX,SAAP,CAAiBU,OAPH;EAQvBE,WAAW,EAAED,eAAA,CAAOX,SAAP,CAAiBY;AARP,CAAlB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
declare const MenuLinks: {
|
|
4
|
+
({ items, title, showMoreItem, numberOfDisplayedItems, isDesktopMode }: Props): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
title: import("prop-types").Requireable<string>;
|
|
7
|
+
numberOfDisplayedItems: import("prop-types").Requireable<number>;
|
|
8
|
+
isDesktopMode: import("prop-types").Requireable<boolean>;
|
|
9
|
+
showMoreItem: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
|
+
showMoreText: import("prop-types").Requireable<string>;
|
|
11
|
+
showLessText: import("prop-types").Requireable<string>;
|
|
12
|
+
isSelected: import("prop-types").Requireable<boolean>;
|
|
13
|
+
}>>;
|
|
14
|
+
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
15
|
+
text: import("prop-types").Requireable<string>;
|
|
16
|
+
isSelected: import("prop-types").Requireable<boolean>;
|
|
17
|
+
handleOnclick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
18
|
+
}> | null | undefined)[]>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default MenuLinks;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/menu-links/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAWzC,QAAA,MAAM,SAAS;4EAAyE,KAAK;;;;;;;;;;;;;;;;CA+D5F,CAAC;AAIF,eAAe,SAAS,CAAC"}
|