@coorpacademy/components 11.14.20-alpha.33.39 → 11.14.20
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/course-section/style.css +4 -6
- package/es/molecule/draggable/style.css +9 -5
- package/es/molecule/draggable-list/index.d.ts +50 -2
- package/es/molecule/draggable-list/index.d.ts.map +1 -1
- package/es/molecule/draggable-list/index.js +7 -4
- package/es/molecule/draggable-list/index.js.map +1 -1
- package/es/molecule/hero/index.d.ts +26 -30
- package/es/molecule/hero/index.d.ts.map +1 -1
- package/es/molecule/hero/index.js +13 -14
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/hero/style.css +0 -42
- package/es/molecule/quick-access-card/index.d.ts +0 -1
- package/es/molecule/quick-access-card/index.d.ts.map +1 -1
- package/es/molecule/quick-access-card/index.js +25 -88
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-card/style.css +21 -32
- package/es/molecule/quick-access-cards-group/index.d.ts +0 -1
- package/es/organism/brand-dashboard/index.d.ts +0 -1
- package/es/organism/list-item/index.d.ts +1 -0
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +4 -3
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +6 -4
- package/es/organism/list-items/index.d.ts +3 -32
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +15 -5
- package/es/organism/list-items/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +3 -33
- package/es/template/mobile-login/receive-email/index.native.d.ts +1 -1
- package/es/template/mobile-login/receive-email/index.native.d.ts.map +1 -1
- package/es/template/mobile-login/receive-email/index.native.js +6 -1
- package/es/template/mobile-login/receive-email/index.native.js.map +1 -1
- package/es/util/button-icons.d.ts +0 -1
- package/es/util/button-icons.d.ts.map +1 -1
- package/es/util/button-icons.js +2 -3
- package/es/util/button-icons.js.map +1 -1
- package/es/variables/breakpoints.css +1 -1
- package/lib/molecule/course-section/style.css +4 -6
- package/lib/molecule/draggable/style.css +9 -5
- package/lib/molecule/draggable-list/index.d.ts +50 -2
- package/lib/molecule/draggable-list/index.d.ts.map +1 -1
- package/lib/molecule/draggable-list/index.js +8 -4
- package/lib/molecule/draggable-list/index.js.map +1 -1
- package/lib/molecule/hero/index.d.ts +26 -30
- package/lib/molecule/hero/index.d.ts.map +1 -1
- package/lib/molecule/hero/index.js +14 -15
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/hero/style.css +0 -42
- package/lib/molecule/quick-access-card/index.d.ts +0 -1
- package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
- package/lib/molecule/quick-access-card/index.js +24 -87
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-card/style.css +21 -32
- package/lib/molecule/quick-access-cards-group/index.d.ts +0 -1
- package/lib/organism/brand-dashboard/index.d.ts +0 -1
- package/lib/organism/list-item/index.d.ts +1 -0
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +4 -3
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +6 -4
- package/lib/organism/list-items/index.d.ts +3 -32
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +16 -5
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +3 -33
- package/lib/template/mobile-login/receive-email/index.native.d.ts +1 -1
- package/lib/template/mobile-login/receive-email/index.native.d.ts.map +1 -1
- package/lib/template/mobile-login/receive-email/index.native.js +6 -1
- package/lib/template/mobile-login/receive-email/index.native.js.map +1 -1
- package/lib/util/button-icons.d.ts +0 -1
- package/lib/util/button-icons.d.ts.map +1 -1
- package/lib/util/button-icons.js +1 -2
- package/lib/util/button-icons.js.map +1 -1
- package/lib/variables/breakpoints.css +1 -1
- package/package.json +2 -2
- package/es/molecule/expandable-item/index.d.ts +0 -19
- package/es/molecule/expandable-item/index.d.ts.map +0 -1
- package/es/molecule/expandable-item/index.js +0 -44
- package/es/molecule/expandable-item/index.js.map +0 -1
- package/es/molecule/expandable-item/style.css +0 -134
- package/es/molecule/expandable-item/types.d.ts +0 -20
- package/es/molecule/expandable-item/types.d.ts.map +0 -1
- package/es/molecule/expandable-item/types.js +0 -11
- package/es/molecule/expandable-item/types.js.map +0 -1
- package/es/molecule/expandable-list/index.d.ts +0 -18
- package/es/molecule/expandable-list/index.d.ts.map +0 -1
- package/es/molecule/expandable-list/index.js +0 -22
- package/es/molecule/expandable-list/index.js.map +0 -1
- package/es/molecule/expandable-list/style.css +0 -20
- package/es/molecule/expandable-list/types.d.ts +0 -17
- package/es/molecule/expandable-list/types.d.ts.map +0 -1
- package/es/molecule/expandable-list/types.js +0 -6
- package/es/molecule/expandable-list/types.js.map +0 -1
- package/es/molecule/hero/types.d.ts +0 -22
- package/es/molecule/hero/types.d.ts.map +0 -1
- package/es/molecule/hero/types.js +0 -14
- package/es/molecule/hero/types.js.map +0 -1
- package/es/molecule/menu-links/index.d.ts +0 -22
- package/es/molecule/menu-links/index.d.ts.map +0 -1
- package/es/molecule/menu-links/index.js +0 -70
- package/es/molecule/menu-links/index.js.map +0 -1
- package/es/molecule/menu-links/style.css +0 -161
- package/es/molecule/menu-links/types.d.ts +0 -35
- package/es/molecule/menu-links/types.d.ts.map +0 -1
- package/es/molecule/menu-links/types.js +0 -17
- package/es/molecule/menu-links/types.js.map +0 -1
- package/es/molecule/privacy-policy-contact/index.d.ts +0 -14
- package/es/molecule/privacy-policy-contact/index.d.ts.map +0 -1
- package/es/molecule/privacy-policy-contact/index.js +0 -28
- package/es/molecule/privacy-policy-contact/index.js.map +0 -1
- package/es/molecule/privacy-policy-contact/style.css +0 -38
- package/es/molecule/privacy-policy-contact/types.d.ts +0 -10
- package/es/molecule/privacy-policy-contact/types.d.ts.map +0 -1
- package/es/molecule/privacy-policy-contact/types.js +0 -6
- package/es/molecule/privacy-policy-contact/types.js.map +0 -1
- package/es/molecule/privacy-policy-download/index.d.ts +0 -38
- package/es/molecule/privacy-policy-download/index.d.ts.map +0 -1
- package/es/molecule/privacy-policy-download/index.js +0 -27
- package/es/molecule/privacy-policy-download/index.js.map +0 -1
- package/es/molecule/privacy-policy-download/style.css +0 -65
- package/es/molecule/privacy-policy-download/types.d.ts +0 -50
- package/es/molecule/privacy-policy-download/types.d.ts.map +0 -1
- package/es/molecule/privacy-policy-download/types.js +0 -8
- package/es/molecule/privacy-policy-download/types.js.map +0 -1
- package/es/template/common/faq-article-page/index.d.ts +0 -27
- package/es/template/common/faq-article-page/index.d.ts.map +0 -1
- package/es/template/common/faq-article-page/index.js +0 -55
- package/es/template/common/faq-article-page/index.js.map +0 -1
- package/es/template/common/faq-article-page/style.css +0 -114
- package/es/template/common/faq-article-page/types.d.ts +0 -41
- package/es/template/common/faq-article-page/types.d.ts.map +0 -1
- package/es/template/common/faq-article-page/types.js +0 -20
- package/es/template/common/faq-article-page/types.js.map +0 -1
- package/es/template/common/faq-cards-page/index.d.ts +0 -33
- package/es/template/common/faq-cards-page/index.d.ts.map +0 -1
- package/es/template/common/faq-cards-page/index.js +0 -45
- package/es/template/common/faq-cards-page/index.js.map +0 -1
- package/es/template/common/faq-cards-page/style.css +0 -96
- package/es/template/common/faq-cards-page/types.d.ts +0 -45
- package/es/template/common/faq-cards-page/types.d.ts.map +0 -1
- package/es/template/common/faq-cards-page/types.js +0 -18
- package/es/template/common/faq-cards-page/types.js.map +0 -1
- package/es/template/common/faq-page/index.d.ts +0 -80
- package/es/template/common/faq-page/index.d.ts.map +0 -1
- package/es/template/common/faq-page/index.js +0 -44
- package/es/template/common/faq-page/index.js.map +0 -1
- package/es/template/common/faq-page/style.css +0 -106
- package/es/template/common/faq-page/types.d.ts +0 -87
- package/es/template/common/faq-page/types.d.ts.map +0 -1
- package/es/template/common/faq-page/types.js +0 -14
- package/es/template/common/faq-page/types.js.map +0 -1
- package/es/template/common/privacy-policy-page/index.d.ts +0 -80
- package/es/template/common/privacy-policy-page/index.d.ts.map +0 -1
- package/es/template/common/privacy-policy-page/index.js +0 -50
- package/es/template/common/privacy-policy-page/index.js.map +0 -1
- package/es/template/common/privacy-policy-page/style.css +0 -123
- package/es/template/common/privacy-policy-page/types.d.ts +0 -87
- package/es/template/common/privacy-policy-page/types.d.ts.map +0 -1
- package/es/template/common/privacy-policy-page/types.js +0 -14
- package/es/template/common/privacy-policy-page/types.js.map +0 -1
- package/lib/molecule/expandable-item/index.d.ts +0 -19
- package/lib/molecule/expandable-item/index.d.ts.map +0 -1
- package/lib/molecule/expandable-item/index.js +0 -58
- package/lib/molecule/expandable-item/index.js.map +0 -1
- package/lib/molecule/expandable-item/style.css +0 -134
- package/lib/molecule/expandable-item/types.d.ts +0 -20
- package/lib/molecule/expandable-item/types.d.ts.map +0 -1
- package/lib/molecule/expandable-item/types.js +0 -20
- package/lib/molecule/expandable-item/types.js.map +0 -1
- package/lib/molecule/expandable-list/index.d.ts +0 -18
- package/lib/molecule/expandable-list/index.d.ts.map +0 -1
- package/lib/molecule/expandable-list/index.js +0 -33
- package/lib/molecule/expandable-list/index.js.map +0 -1
- package/lib/molecule/expandable-list/style.css +0 -20
- package/lib/molecule/expandable-list/types.d.ts +0 -17
- package/lib/molecule/expandable-list/types.d.ts.map +0 -1
- package/lib/molecule/expandable-list/types.js +0 -16
- package/lib/molecule/expandable-list/types.js.map +0 -1
- package/lib/molecule/hero/types.d.ts +0 -22
- package/lib/molecule/hero/types.d.ts.map +0 -1
- package/lib/molecule/hero/types.js +0 -25
- package/lib/molecule/hero/types.js.map +0 -1
- package/lib/molecule/menu-links/index.d.ts +0 -22
- package/lib/molecule/menu-links/index.d.ts.map +0 -1
- package/lib/molecule/menu-links/index.js +0 -88
- package/lib/molecule/menu-links/index.js.map +0 -1
- package/lib/molecule/menu-links/style.css +0 -161
- package/lib/molecule/menu-links/types.d.ts +0 -35
- package/lib/molecule/menu-links/types.d.ts.map +0 -1
- package/lib/molecule/menu-links/types.js +0 -26
- package/lib/molecule/menu-links/types.js.map +0 -1
- package/lib/molecule/privacy-policy-contact/index.d.ts +0 -14
- package/lib/molecule/privacy-policy-contact/index.d.ts.map +0 -1
- package/lib/molecule/privacy-policy-contact/index.js +0 -41
- package/lib/molecule/privacy-policy-contact/index.js.map +0 -1
- package/lib/molecule/privacy-policy-contact/style.css +0 -38
- package/lib/molecule/privacy-policy-contact/types.d.ts +0 -10
- package/lib/molecule/privacy-policy-contact/types.d.ts.map +0 -1
- package/lib/molecule/privacy-policy-contact/types.js +0 -15
- package/lib/molecule/privacy-policy-contact/types.js.map +0 -1
- package/lib/molecule/privacy-policy-download/index.d.ts +0 -38
- package/lib/molecule/privacy-policy-download/index.d.ts.map +0 -1
- package/lib/molecule/privacy-policy-download/index.js +0 -38
- package/lib/molecule/privacy-policy-download/index.js.map +0 -1
- package/lib/molecule/privacy-policy-download/style.css +0 -65
- package/lib/molecule/privacy-policy-download/types.d.ts +0 -50
- package/lib/molecule/privacy-policy-download/types.d.ts.map +0 -1
- package/lib/molecule/privacy-policy-download/types.js +0 -18
- package/lib/molecule/privacy-policy-download/types.js.map +0 -1
- package/lib/template/common/faq-article-page/index.d.ts +0 -27
- package/lib/template/common/faq-article-page/index.d.ts.map +0 -1
- package/lib/template/common/faq-article-page/index.js +0 -69
- package/lib/template/common/faq-article-page/index.js.map +0 -1
- package/lib/template/common/faq-article-page/style.css +0 -114
- package/lib/template/common/faq-article-page/types.d.ts +0 -41
- package/lib/template/common/faq-article-page/types.d.ts.map +0 -1
- package/lib/template/common/faq-article-page/types.js +0 -30
- package/lib/template/common/faq-article-page/types.js.map +0 -1
- package/lib/template/common/faq-cards-page/index.d.ts +0 -33
- package/lib/template/common/faq-cards-page/index.d.ts.map +0 -1
- package/lib/template/common/faq-cards-page/index.js +0 -58
- package/lib/template/common/faq-cards-page/index.js.map +0 -1
- package/lib/template/common/faq-cards-page/style.css +0 -96
- package/lib/template/common/faq-cards-page/types.d.ts +0 -45
- package/lib/template/common/faq-cards-page/types.d.ts.map +0 -1
- package/lib/template/common/faq-cards-page/types.js +0 -29
- package/lib/template/common/faq-cards-page/types.js.map +0 -1
- package/lib/template/common/faq-page/index.d.ts +0 -80
- package/lib/template/common/faq-page/index.d.ts.map +0 -1
- package/lib/template/common/faq-page/index.js +0 -58
- package/lib/template/common/faq-page/index.js.map +0 -1
- package/lib/template/common/faq-page/style.css +0 -106
- package/lib/template/common/faq-page/types.d.ts +0 -87
- package/lib/template/common/faq-page/types.d.ts.map +0 -1
- package/lib/template/common/faq-page/types.js +0 -28
- package/lib/template/common/faq-page/types.js.map +0 -1
- package/lib/template/common/privacy-policy-page/index.d.ts +0 -80
- package/lib/template/common/privacy-policy-page/index.d.ts.map +0 -1
- package/lib/template/common/privacy-policy-page/index.js +0 -65
- package/lib/template/common/privacy-policy-page/index.js.map +0 -1
- package/lib/template/common/privacy-policy-page/style.css +0 -123
- package/lib/template/common/privacy-policy-page/types.d.ts +0 -87
- package/lib/template/common/privacy-policy-page/types.d.ts.map +0 -1
- package/lib/template/common/privacy-policy-page/types.js +0 -28
- package/lib/template/common/privacy-policy-page/types.js.map +0 -1
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
font-family: Gilroy;
|
|
34
34
|
font-size: 16px;
|
|
35
35
|
font-weight: bold;
|
|
36
|
-
overflow:hidden;
|
|
37
|
-
white-space:nowrap;
|
|
38
|
-
display:inline-block;
|
|
39
|
-
text-overflow:ellipsis;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
40
|
width: 100%;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -59,5 +59,3 @@
|
|
|
59
59
|
min-height: 56px;
|
|
60
60
|
min-width: 56px;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
@@ -13,15 +13,18 @@
|
|
|
13
13
|
background: transparent;
|
|
14
14
|
margin: 8px 0;
|
|
15
15
|
border-radius: 7px;
|
|
16
|
-
transform:translate(0,0);
|
|
16
|
+
transform: translate(0, 0);
|
|
17
17
|
z-index: 0;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
.draggable:hover {
|
|
20
21
|
background: rgba(0, 0, 0, 0.3);
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
.draggable:active {
|
|
23
25
|
background: transparent;
|
|
24
26
|
}
|
|
27
|
+
|
|
25
28
|
.draggable:before {
|
|
26
29
|
content: '.';
|
|
27
30
|
position: absolute;
|
|
@@ -32,9 +35,10 @@
|
|
|
32
35
|
font-size: 25px;
|
|
33
36
|
color: medium;
|
|
34
37
|
pointer-events: none;
|
|
35
|
-
text-shadow: 0 0 medium,
|
|
36
|
-
|
|
38
|
+
text-shadow: 0 0 medium, 0 5px medium, 0 10px medium, 0 15px medium,
|
|
39
|
+
5px 0 medium, 5px 5px medium, 5px 10px medium, 5px 15px medium;
|
|
37
40
|
}
|
|
41
|
+
|
|
38
42
|
.dragging {
|
|
39
43
|
background: rgba(0, 0, 0, 0.1);
|
|
40
44
|
}
|
|
@@ -6,7 +6,7 @@ declare function DraggableList({ items, onDrop, itemType }: {
|
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace DraggableList {
|
|
8
8
|
namespace propTypes {
|
|
9
|
-
const items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
9
|
+
const items: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
|
|
10
10
|
title: PropTypes.Validator<string>;
|
|
11
11
|
onUp: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
12
|
onDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -43,7 +43,55 @@ declare namespace DraggableList {
|
|
|
43
43
|
}> | null | undefined)[]>;
|
|
44
44
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
45
|
}>>;
|
|
46
|
-
}> |
|
|
46
|
+
}> | PropTypes.InferProps<{
|
|
47
|
+
'aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
48
|
+
title: PropTypes.Requireable<string>;
|
|
49
|
+
author: PropTypes.Requireable<string>;
|
|
50
|
+
modules: PropTypes.Requireable<string>;
|
|
51
|
+
position: PropTypes.Requireable<string>;
|
|
52
|
+
}>>;
|
|
53
|
+
image: PropTypes.Requireable<string>;
|
|
54
|
+
badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
55
|
+
category: PropTypes.Requireable<string>;
|
|
56
|
+
label: PropTypes.Requireable<string>;
|
|
57
|
+
}> | null | undefined)[]>;
|
|
58
|
+
title: PropTypes.Requireable<string>;
|
|
59
|
+
author: PropTypes.Requireable<string>;
|
|
60
|
+
position: PropTypes.Requireable<number>;
|
|
61
|
+
id: PropTypes.Requireable<string>;
|
|
62
|
+
}> | PropTypes.InferProps<{
|
|
63
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
64
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
65
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
66
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
67
|
+
'data-name': PropTypes.Requireable<string>;
|
|
68
|
+
label: PropTypes.Requireable<string>;
|
|
69
|
+
type: PropTypes.Requireable<string>;
|
|
70
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
+
}> | null | undefined)[]>;
|
|
72
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
|
+
}>>;
|
|
74
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
75
|
+
type: PropTypes.Requireable<string>;
|
|
76
|
+
label: PropTypes.Requireable<string>;
|
|
77
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
78
|
+
dataName: PropTypes.Requireable<string>;
|
|
79
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
80
|
+
position: PropTypes.Requireable<string>;
|
|
81
|
+
type: PropTypes.Requireable<string>;
|
|
82
|
+
}>>;
|
|
83
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
|
+
}>>;
|
|
85
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
86
|
+
label: PropTypes.Requireable<string>;
|
|
87
|
+
type: PropTypes.Requireable<string>;
|
|
88
|
+
}> | null | undefined)[]>;
|
|
89
|
+
title: PropTypes.Validator<string>;
|
|
90
|
+
order: PropTypes.Requireable<number>;
|
|
91
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
92
|
+
contentType: PropTypes.Requireable<string>;
|
|
93
|
+
id: PropTypes.Requireable<string>;
|
|
94
|
+
}> | null | undefined> | null | undefined)[]>;
|
|
47
95
|
const onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
96
|
const itemType: PropTypes.Requireable<string>;
|
|
49
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";AAaA;;;;gBAmDC"}
|
|
@@ -5,9 +5,11 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import Draggable from '../draggable';
|
|
6
6
|
import SetupSection from '../setup-section';
|
|
7
7
|
import CourseSection from '../course-section';
|
|
8
|
+
import ListItem from '../../organism/list-item';
|
|
8
9
|
const ITEMS = {
|
|
9
10
|
'setup-section': SetupSection,
|
|
10
|
-
'course-section': CourseSection
|
|
11
|
+
'course-section': CourseSection,
|
|
12
|
+
'list-item': ListItem
|
|
11
13
|
};
|
|
12
14
|
|
|
13
15
|
const DraggableList = ({
|
|
@@ -33,7 +35,7 @@ const DraggableList = ({
|
|
|
33
35
|
setDragFrom(null);
|
|
34
36
|
}, [onDrop, setDragTo, setDragFrom, dragFrom]);
|
|
35
37
|
const Item = ITEMS[itemType];
|
|
36
|
-
const itemsView = items.map(item => /*#__PURE__*/React.createElement(Draggable, {
|
|
38
|
+
const itemsView = items.map((item, index) => /*#__PURE__*/React.createElement(Draggable, {
|
|
37
39
|
key: item.id,
|
|
38
40
|
id: item.id,
|
|
39
41
|
dragging: dragTo === item.id,
|
|
@@ -42,13 +44,14 @@ const DraggableList = ({
|
|
|
42
44
|
onDragLeave: dragLeaveHandler,
|
|
43
45
|
onDrop: dropHandler
|
|
44
46
|
}, /*#__PURE__*/React.createElement(Item, _extends({}, item, {
|
|
45
|
-
key: item.id
|
|
47
|
+
key: item.id,
|
|
48
|
+
order: index
|
|
46
49
|
}))));
|
|
47
50
|
return /*#__PURE__*/React.createElement("div", null, itemsView);
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
DraggableList.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
51
|
-
items: PropTypes.arrayOf(PropTypes.shape(SetupSection.propTypes)),
|
|
54
|
+
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(SetupSection.propTypes), PropTypes.shape(CourseSection.propTypes), PropTypes.shape(ListItem.propTypes)])),
|
|
52
55
|
onDrop: PropTypes.func,
|
|
53
56
|
itemType: PropTypes.string
|
|
54
57
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useState","useCallback","PropTypes","Draggable","SetupSection","CourseSection","ITEMS","DraggableList","items","onDrop","itemType","dragTo","setDragTo","dragFrom","setDragFrom","dragStartHandler","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","propTypes","arrayOf","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\n\nconst ITEMS = {'setup-section': SetupSection
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useState","useCallback","PropTypes","Draggable","SetupSection","CourseSection","ListItem","ITEMS","DraggableList","items","onDrop","itemType","dragTo","setDragTo","dragFrom","setDragFrom","dragStartHandler","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,QAAP,MAAqB,0BAArB;AAEA,MAAMC,KAAK,GAAG;EACZ,iBAAiBH,YADL;EAEZ,kBAAkBC,aAFN;EAGZ,aAAaC;AAHD,CAAd;;AAMA,MAAME,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD,KAA+B;EACnD,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsBb,QAAQ,CAAC,IAAD,CAApC;EACA,MAAM,CAACc,QAAD,EAAWC,WAAX,IAA0Bf,QAAQ,CAAC,IAAD,CAAxC;EAEA,MAAMgB,gBAAgB,GAAGf,WAAW,CAClCgB,EAAE,IAAI;IACJF,WAAW,CAACE,EAAD,CAAX;EACD,CAHiC,EAIlC,CAACF,WAAD,CAJkC,CAApC;EAOA,MAAMG,eAAe,GAAGjB,WAAW,CACjCgB,EAAE,IAAI;IACJ,IAAIL,MAAM,KAAKK,EAAf,EAAmB;IACnBJ,SAAS,CAACI,EAAD,CAAT;EACD,CAJgC,EAKjC,CAACL,MAAD,EAASC,SAAT,CALiC,CAAnC;EAQA,MAAMM,gBAAgB,GAAGlB,WAAW,CAClCgB,EAAE,IAAI;IACJJ,SAAS,CAAC,IAAD,CAAT;EACD,CAHiC,EAIlC,CAACA,SAAD,CAJkC,CAApC;EAOA,MAAMO,WAAW,GAAGnB,WAAW,CAC7BgB,EAAE,IAAI;IACJ,IAAIP,MAAM,IAAII,QAAd,EAAwBJ,MAAM,CAACI,QAAD,EAAWG,EAAX,CAAN;IAExBJ,SAAS,CAAC,IAAD,CAAT;IACAE,WAAW,CAAC,IAAD,CAAX;EACD,CAN4B,EAO7B,CAACL,MAAD,EAASG,SAAT,EAAoBE,WAApB,EAAiCD,QAAjC,CAP6B,CAA/B;EAUA,MAAMO,IAAI,GAAGd,KAAK,CAACI,QAAD,CAAlB;EACA,MAAMW,SAAS,GAAGb,KAAK,CAACc,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,kBAC1B,oBAAC,SAAD;IACE,GAAG,EAAED,IAAI,CAACP,EADZ;IAEE,EAAE,EAAEO,IAAI,CAACP,EAFX;IAGE,QAAQ,EAAEL,MAAM,KAAKY,IAAI,CAACP,EAH5B;IAIE,WAAW,EAAED,gBAJf;IAKE,UAAU,EAAEE,eALd;IAME,WAAW,EAAEC,gBANf;IAOE,MAAM,EAAEC;EAPV,gBASE,oBAAC,IAAD,eAAUI,IAAV;IAAgB,GAAG,EAAEA,IAAI,CAACP,EAA1B;IAA8B,KAAK,EAAEQ;EAArC,GATF,CADgB,CAAlB;EAaA,oBAAO,iCAAMH,SAAN,CAAP;AACD,CAnDD;;AAqDAd,aAAa,CAACkB,SAAd,2CAA0B;EACxBjB,KAAK,EAAEP,SAAS,CAACyB,OAAV,CACLzB,SAAS,CAAC0B,SAAV,CAAoB,CAClB1B,SAAS,CAAC2B,KAAV,CAAgBzB,YAAY,CAACsB,SAA7B,CADkB,EAElBxB,SAAS,CAAC2B,KAAV,CAAgBxB,aAAa,CAACqB,SAA9B,CAFkB,EAGlBxB,SAAS,CAAC2B,KAAV,CAAgBvB,QAAQ,CAACoB,SAAzB,CAHkB,CAApB,CADK,CADiB;EAQxBhB,MAAM,EAAER,SAAS,CAAC4B,IARM;EASxBnB,QAAQ,EAAET,SAAS,CAAC6B;AATI,CAA1B;AAYA,eAAevB,aAAf"}
|
|
@@ -1,41 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
skin: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
8
|
-
common: import("prop-types").Requireable<{
|
|
1
|
+
export default Hero;
|
|
2
|
+
declare function Hero(props: any, context: any): JSX.Element;
|
|
3
|
+
declare namespace Hero {
|
|
4
|
+
namespace contextTypes {
|
|
5
|
+
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
common: PropTypes.Requireable<{
|
|
9
7
|
[x: string]: any;
|
|
10
8
|
}>;
|
|
11
|
-
images:
|
|
12
|
-
'logo-mobile':
|
|
13
|
-
logo:
|
|
14
|
-
'logo-email':
|
|
15
|
-
login:
|
|
9
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
+
logo: PropTypes.Requireable<any>;
|
|
12
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
+
login: PropTypes.Requireable<any>;
|
|
16
14
|
}>>;
|
|
17
|
-
icons:
|
|
15
|
+
icons: PropTypes.Requireable<{
|
|
18
16
|
[x: string]: any;
|
|
19
17
|
}>;
|
|
20
|
-
mod:
|
|
18
|
+
mod: PropTypes.Requireable<{
|
|
21
19
|
[x: string]: any;
|
|
22
20
|
}>;
|
|
23
|
-
courses:
|
|
24
|
-
texts:
|
|
21
|
+
courses: PropTypes.Requireable<any[]>;
|
|
22
|
+
texts: PropTypes.Requireable<{
|
|
25
23
|
[x: string]: any;
|
|
26
24
|
}>;
|
|
27
25
|
}>>;
|
|
28
|
-
}
|
|
29
|
-
propTypes
|
|
30
|
-
image:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
export default Hero;
|
|
26
|
+
}
|
|
27
|
+
namespace propTypes {
|
|
28
|
+
const image: PropTypes.Requireable<string>;
|
|
29
|
+
const title: PropTypes.Requireable<string>;
|
|
30
|
+
const author: PropTypes.Requireable<string>;
|
|
31
|
+
const progress: PropTypes.Requireable<number>;
|
|
32
|
+
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
const submitValue: PropTypes.Requireable<string>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
import PropTypes from "prop-types";
|
|
41
37
|
//# 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.js"],"names":[],"mappings":";AASA,6DAgCC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _get from "lodash/fp/get";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
3
4
|
import classnames from 'classnames';
|
|
4
5
|
import Provider from '../../atom/provider';
|
|
5
6
|
import Button from '../../atom/button';
|
|
6
7
|
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) => {
|
|
@@ -17,9 +17,7 @@ const Hero = (props, context) => {
|
|
|
17
17
|
author,
|
|
18
18
|
progress,
|
|
19
19
|
onClick,
|
|
20
|
-
submitValue
|
|
21
|
-
description,
|
|
22
|
-
mode = MODES.HERO
|
|
20
|
+
submitValue
|
|
23
21
|
} = props;
|
|
24
22
|
|
|
25
23
|
const primaryColor = _get('common.primary', skin);
|
|
@@ -37,18 +35,12 @@ const Hero = (props, context) => {
|
|
|
37
35
|
backgroundColor: primaryColor,
|
|
38
36
|
backgroundImage: image ? `url('${image}')` : 'none'
|
|
39
37
|
}
|
|
40
|
-
})),
|
|
38
|
+
})), /*#__PURE__*/React.createElement(CardContentInfo, {
|
|
41
39
|
mode: MODES.HERO,
|
|
42
40
|
author: author,
|
|
43
41
|
progress: progress,
|
|
44
42
|
title: title
|
|
45
|
-
})
|
|
46
|
-
className: style.infoWrapper
|
|
47
|
-
}, /*#__PURE__*/React.createElement("h1", {
|
|
48
|
-
className: style.title
|
|
49
|
-
}, title), /*#__PURE__*/React.createElement("p", {
|
|
50
|
-
className: style.description
|
|
51
|
-
}, description)), mode === MODES.HERO ? /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
52
44
|
className: style.heroButtonWrapper
|
|
53
45
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
54
46
|
type: "link",
|
|
@@ -59,12 +51,19 @@ const Hero = (props, context) => {
|
|
|
59
51
|
style: {
|
|
60
52
|
backgroundColor: primaryColor
|
|
61
53
|
}
|
|
62
|
-
}))
|
|
54
|
+
})));
|
|
63
55
|
};
|
|
64
56
|
|
|
65
57
|
Hero.contextTypes = {
|
|
66
58
|
skin: Provider.childContextTypes.skin
|
|
67
59
|
};
|
|
68
|
-
Hero.propTypes = process.env.NODE_ENV !== "production" ?
|
|
60
|
+
Hero.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
61
|
+
image: PropTypes.string,
|
|
62
|
+
title: CardContentInfo.propTypes.title,
|
|
63
|
+
author: CardContentInfo.propTypes.author,
|
|
64
|
+
progress: CardContentInfo.propTypes.progress,
|
|
65
|
+
onClick: Button.propTypes.onClick,
|
|
66
|
+
submitValue: Button.propTypes.submitValue
|
|
67
|
+
} : {};
|
|
69
68
|
export default Hero;
|
|
70
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","classnames","Provider","Button","CardContentInfo","MODES","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","classnames","Provider","Button","CardContentInfo","MODES","style","Hero","props","context","skin","image","title","author","progress","onClick","submitValue","primaryColor","cardStyle","hero","lazy","imageWrapper","backgroundColor","backgroundImage","HERO","heroButtonWrapper","heroButton","contextTypes","childContextTypes","propTypes","string"],"sources":["../../../src/molecule/hero/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\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 style from './style.css';\n\nconst Hero = (props, context) => {\n const {skin} = context;\n const {image, title, author, progress, onClick, submitValue} = 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 <CardContentInfo mode={MODES.HERO} author={author} progress={progress} title={title} />\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 </div>\n );\n};\n\nHero.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nHero.propTypes = {\n image: 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 default Hero;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,IAAI,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC/B,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IAACE,KAAD;IAAQC,KAAR;IAAeC,MAAf;IAAuBC,QAAvB;IAAiCC,OAAjC;IAA0CC;EAA1C,IAAyDR,KAA/D;;EAEA,MAAMS,YAAY,GAAG,KAAI,gBAAJ,EAAsBP,IAAtB,CAArB;;EACA,MAAMQ,SAAS,GAAGjB,UAAU,CAACK,KAAK,CAACa,IAAP,EAAaP,KAAK,GAAG,IAAH,GAAUN,KAAK,CAACc,IAAlC,CAA5B;EAEA,oBACE;IAAK,SAAS,EAAEF,SAAhB;IAA2B,aAAU;EAArC,gBACE;IAAK,SAAS,EAAEZ,KAAK,CAACe;EAAtB,gBACE;IACE,aAAU,OADZ;IAEE,SAAS,EAAEf,KAAK,CAACK,KAFnB;IAGE,KAAK,EAAE;MACLW,eAAe,EAAEL,YADZ;MAELM,eAAe,EAAEZ,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;IAFxC;EAHT,EADF,CADF,eAWE,oBAAC,eAAD;IAAiB,IAAI,EAAEN,KAAK,CAACmB,IAA7B;IAAmC,MAAM,EAAEX,MAA3C;IAAmD,QAAQ,EAAEC,QAA7D;IAAuE,KAAK,EAAEF;EAA9E,EAXF,eAYE;IAAK,SAAS,EAAEN,KAAK,CAACmB;EAAtB,gBACE,oBAAC,MAAD;IACE,IAAI,EAAC,MADP;IAEE,aAAU,aAFZ;IAGE,OAAO,EAAEV,OAHX;IAIE,WAAW,EAAEC,WAJf;IAKE,SAAS,EAAEV,KAAK,CAACoB,UALnB;IAME,KAAK,EAAE;MAACJ,eAAe,EAAEL;IAAlB;EANT,EADF,CAZF,CADF;AAyBD,CAhCD;;AAkCAV,IAAI,CAACoB,YAAL,GAAoB;EAClBjB,IAAI,EAAER,QAAQ,CAAC0B,iBAAT,CAA2BlB;AADf,CAApB;AAIAH,IAAI,CAACsB,SAAL,2CAAiB;EACflB,KAAK,EAAEX,SAAS,CAAC8B,MADF;EAEflB,KAAK,EAAER,eAAe,CAACyB,SAAhB,CAA0BjB,KAFlB;EAGfC,MAAM,EAAET,eAAe,CAACyB,SAAhB,CAA0BhB,MAHnB;EAIfC,QAAQ,EAAEV,eAAe,CAACyB,SAAhB,CAA0Bf,QAJrB;EAKfC,OAAO,EAAEZ,MAAM,CAAC0B,SAAP,CAAiBd,OALX;EAMfC,WAAW,EAAEb,MAAM,CAAC0B,SAAP,CAAiBb;AANf,CAAjB;AASA,eAAeT,IAAf"}
|
|
@@ -156,45 +156,3 @@
|
|
|
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
|
-
}
|
|
@@ -6,7 +6,6 @@ declare namespace QuickAccessCard {
|
|
|
6
6
|
const description: PropTypes.Requireable<string>;
|
|
7
7
|
const href: PropTypes.Requireable<string>;
|
|
8
8
|
const openInNewTab: PropTypes.Requireable<boolean>;
|
|
9
|
-
const isMoocCard: PropTypes.Requireable<boolean>;
|
|
10
9
|
const feature: PropTypes.Requireable<string>;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/quick-access-card/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/quick-access-card/index.js"],"names":[],"mappings":";AA+EA,wEAwDC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { NovaSolidContentContentBookAdd as CockpitIcon, NovaSolidUsersActionsUser as ManageUserIcon, NovaSolidFilesBasicFileUpload2 as UploadUserIcon, NovaSolidEmailAtSign as ManageEmailIcon, NovaSolidDesignPaintBrush2 as LookAndFeelIcon, NovaSolidContentContentViewList as DashboardIcon, NovaSolidContentEditionFlash as MassiveBattleIcon, NovaSolidApplicationsWindowApplication5 as CmsIcon, NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon, NovaCompositionNavigationArrowRight as ActionIcon, NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon
|
|
3
|
+
import { NovaSolidContentContentBookAdd as CockpitIcon, NovaSolidUsersActionsUser as ManageUserIcon, NovaSolidFilesBasicFileUpload2 as UploadUserIcon, NovaSolidEmailAtSign as ManageEmailIcon, NovaSolidDesignPaintBrush2 as LookAndFeelIcon, NovaSolidContentContentViewList as DashboardIcon, NovaSolidContentEditionFlash as MassiveBattleIcon, NovaSolidApplicationsWindowApplication5 as CmsIcon, NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon, NovaCompositionNavigationArrowRight as ActionIcon, NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon } from '@coorpacademy/nova-icons';
|
|
4
4
|
import Link from '../../atom/link';
|
|
5
5
|
import style from './style.css';
|
|
6
6
|
|
|
@@ -33,21 +33,6 @@ const getIcon = feature => {
|
|
|
33
33
|
case 'analytics':
|
|
34
34
|
return AnalyticsIcon;
|
|
35
35
|
|
|
36
|
-
case 'binoculaire':
|
|
37
|
-
return Binoculaire;
|
|
38
|
-
|
|
39
|
-
case 'book':
|
|
40
|
-
return ContentBook;
|
|
41
|
-
|
|
42
|
-
case 'network':
|
|
43
|
-
return NetworkAlert;
|
|
44
|
-
|
|
45
|
-
case 'chat-bubble-question':
|
|
46
|
-
return ChatBubbleCircleQuestionMark;
|
|
47
|
-
|
|
48
|
-
case 'mobile-phone':
|
|
49
|
-
return MobilePhone;
|
|
50
|
-
|
|
51
36
|
default:
|
|
52
37
|
return CockpitIcon;
|
|
53
38
|
}
|
|
@@ -58,77 +43,37 @@ const getBackgroudRadialColors = feature => {
|
|
|
58
43
|
case 'manage_users':
|
|
59
44
|
case 'upload_users':
|
|
60
45
|
return {
|
|
61
|
-
|
|
62
|
-
degrees: '187'
|
|
63
|
-
iconColor: null
|
|
46
|
+
iconColor: '#2EC1D6',
|
|
47
|
+
degrees: '187'
|
|
64
48
|
};
|
|
65
49
|
|
|
66
50
|
case 'look_and_feel':
|
|
67
51
|
case 'dashboard':
|
|
68
52
|
return {
|
|
69
|
-
|
|
70
|
-
degrees: '167'
|
|
71
|
-
iconColor: null
|
|
53
|
+
iconColor: '#18BB98',
|
|
54
|
+
degrees: '167'
|
|
72
55
|
};
|
|
73
56
|
|
|
74
57
|
case 'cockpit':
|
|
75
58
|
return {
|
|
76
|
-
|
|
77
|
-
degrees: '14'
|
|
78
|
-
iconColor: null
|
|
59
|
+
iconColor: '#FF7043',
|
|
60
|
+
degrees: '14'
|
|
79
61
|
};
|
|
80
62
|
|
|
81
63
|
case 'manage_email':
|
|
82
64
|
case 'massive_battle':
|
|
83
65
|
case 'cms':
|
|
84
66
|
return {
|
|
85
|
-
|
|
86
|
-
degrees: '256'
|
|
87
|
-
iconColor: null
|
|
67
|
+
iconColor: '#7340FF',
|
|
68
|
+
degrees: '256'
|
|
88
69
|
};
|
|
89
70
|
|
|
90
71
|
case 'analytics':
|
|
91
72
|
return {
|
|
92
|
-
|
|
93
|
-
degrees: '0',
|
|
94
|
-
iconColor: null
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
case 'binoculaire':
|
|
98
|
-
return {
|
|
99
|
-
iconBackgroundColor: '#FFEFEB',
|
|
100
|
-
iconColor: '#FF541F',
|
|
101
|
-
degrees: '0'
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
case 'book':
|
|
105
|
-
return {
|
|
106
|
-
iconBackgroundColor: '#F1F6FE',
|
|
107
|
-
degrees: '0',
|
|
108
|
-
iconColor: null
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
case 'network':
|
|
112
|
-
return {
|
|
113
|
-
iconBackgroundColor: '#FFE5E6',
|
|
114
|
-
iconColor: '#FF0A0A',
|
|
73
|
+
iconColor: '#FF4040',
|
|
115
74
|
degrees: '0'
|
|
116
75
|
};
|
|
117
76
|
|
|
118
|
-
case 'chat-bubble-question':
|
|
119
|
-
return {
|
|
120
|
-
iconBackgroundColor: '#E8FCF8',
|
|
121
|
-
iconColor: '#16AC8C',
|
|
122
|
-
degrees: '0'
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
case 'mobile-phone':
|
|
126
|
-
return {
|
|
127
|
-
iconBackgroundColor: '#F4F0FF',
|
|
128
|
-
degrees: '0',
|
|
129
|
-
iconColor: null
|
|
130
|
-
};
|
|
131
|
-
|
|
132
77
|
default:
|
|
133
78
|
return null;
|
|
134
79
|
}
|
|
@@ -140,13 +85,11 @@ const QuickAccessCard = (props, context) => {
|
|
|
140
85
|
description,
|
|
141
86
|
feature,
|
|
142
87
|
href,
|
|
143
|
-
openInNewTab = false
|
|
144
|
-
isMoocCard = false
|
|
88
|
+
openInNewTab = false
|
|
145
89
|
} = props;
|
|
146
90
|
const {
|
|
147
|
-
|
|
148
|
-
degrees
|
|
149
|
-
iconColor
|
|
91
|
+
iconColor,
|
|
92
|
+
degrees
|
|
150
93
|
} = getBackgroudRadialColors(feature);
|
|
151
94
|
const Icon = getIcon(feature);
|
|
152
95
|
const newTabOnClick = openInNewTab ? /*#__PURE__*/React.createElement(NewTabIcon, {
|
|
@@ -161,7 +104,7 @@ const QuickAccessCard = (props, context) => {
|
|
|
161
104
|
target: openInNewTab ? '_blank' : '_self',
|
|
162
105
|
className: style.link
|
|
163
106
|
}, /*#__PURE__*/React.createElement("div", {
|
|
164
|
-
style:
|
|
107
|
+
style: {
|
|
165
108
|
background: `radial-gradient(62.12% 56.45% at 0% 77.29%,
|
|
166
109
|
hsl(${degrees}deg 68% 40% / 20%) 0%,
|
|
167
110
|
hsl(${degrees}deg 68% 40% / 0%) 100%),
|
|
@@ -172,37 +115,32 @@ const QuickAccessCard = (props, context) => {
|
|
|
172
115
|
hsl(${degrees}deg 87% 91%) 0%,
|
|
173
116
|
hsl(${degrees}deg 87% 91% / 0%) 100%),
|
|
174
117
|
#FAFAFA`
|
|
175
|
-
}
|
|
118
|
+
},
|
|
176
119
|
className: style.content
|
|
177
120
|
}, /*#__PURE__*/React.createElement("div", {
|
|
178
121
|
className: style.iconFeatureWrapper,
|
|
179
122
|
style: {
|
|
180
|
-
backgroundColor:
|
|
123
|
+
backgroundColor: iconColor
|
|
181
124
|
}
|
|
182
125
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
183
|
-
className: style.iconFeature
|
|
184
|
-
style: {
|
|
185
|
-
color: iconColor
|
|
186
|
-
}
|
|
126
|
+
className: style.iconFeature
|
|
187
127
|
})), /*#__PURE__*/React.createElement("div", {
|
|
188
128
|
className: style.title
|
|
189
129
|
}, title, newTabOnClick), /*#__PURE__*/React.createElement("div", {
|
|
190
130
|
className: style.description
|
|
191
131
|
}, description), /*#__PURE__*/React.createElement("div", {
|
|
192
|
-
className: style.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
backgroundColor: iconBackgroundColor
|
|
197
|
-
} : null
|
|
132
|
+
className: style.iconGotoWrapper,
|
|
133
|
+
style: {
|
|
134
|
+
backgroundColor: iconColor
|
|
135
|
+
}
|
|
198
136
|
}, /*#__PURE__*/React.createElement("div", {
|
|
199
|
-
className:
|
|
137
|
+
className: style.hover,
|
|
200
138
|
style: {
|
|
201
|
-
color:
|
|
139
|
+
color: iconColor
|
|
202
140
|
}
|
|
203
141
|
}, /*#__PURE__*/React.createElement(ActionIcon, {
|
|
204
142
|
className: style.iconGoto
|
|
205
|
-
}))))))
|
|
143
|
+
}))))));
|
|
206
144
|
};
|
|
207
145
|
|
|
208
146
|
QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -210,8 +148,7 @@ QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
210
148
|
description: PropTypes.string,
|
|
211
149
|
href: PropTypes.string,
|
|
212
150
|
openInNewTab: PropTypes.bool,
|
|
213
|
-
|
|
214
|
-
feature: PropTypes.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users', 'binoculaire', 'book', 'network', 'chat-bubble-question', 'mobile-phone'])
|
|
151
|
+
feature: PropTypes.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users'])
|
|
215
152
|
} : {};
|
|
216
153
|
export default QuickAccessCard;
|
|
217
154
|
//# sourceMappingURL=index.js.map
|