trepur_components 1.0.46 → 1.0.48
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/dist/src/lib/components/Greeting/Greeting.d.ts +1 -2
- package/dist/src/lib/components/Greeting/Greeting.js +3 -4
- package/dist/src/lib/components/Greeting/Greeting.js.map +1 -1
- package/dist/src/lib/components/Showcase/Showcase.js +17 -13
- package/dist/src/lib/components/Showcase/Showcase.js.map +1 -1
- package/dist/src/lib/components/Showcase/style.module.css +75 -61
- package/dist/src/lib/components/Showcase/style.module.css.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ThemeTypes } from '../../utils/controls';
|
|
3
2
|
export interface Props {
|
|
4
3
|
id?: string;
|
|
@@ -8,5 +7,5 @@ export interface Props {
|
|
|
8
7
|
eveningMessage?: string;
|
|
9
8
|
theme?: ThemeTypes;
|
|
10
9
|
}
|
|
11
|
-
declare const Greeting: ({
|
|
10
|
+
declare const Greeting: ({ morningMessage, afternoonMessage, eveningMessage, }: Props) => String;
|
|
12
11
|
export default Greeting;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const Greeting = ({ id, className, morningMessage = 'Good morning', afternoonMessage = 'Good afternoon', eveningMessage = 'Good evening', theme = 'theme-rupertbennett' }) => {
|
|
1
|
+
const Greeting = ({ morningMessage = 'Good morning', afternoonMessage = 'Good afternoon', eveningMessage = 'Good evening', }) => {
|
|
3
2
|
const today = new Date();
|
|
4
3
|
const hours = `0${today.getHours().toString()}`.slice(-2);
|
|
5
4
|
const minutes = `0${today.getMinutes().toString()}`.slice(-2);
|
|
6
5
|
const seconds = `0${today.getSeconds().toString()}`.slice(-2);
|
|
7
6
|
const time = parseInt(`${hours}${minutes}${seconds}`);
|
|
8
|
-
let message;
|
|
7
|
+
let message = '';
|
|
9
8
|
if (time < 120000) {
|
|
10
9
|
message = morningMessage;
|
|
11
10
|
}
|
|
@@ -15,7 +14,7 @@ const Greeting = ({ id, className, morningMessage = 'Good morning', afternoonMes
|
|
|
15
14
|
else if (time > 165959) {
|
|
16
15
|
message = eveningMessage;
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return message;
|
|
19
18
|
};
|
|
20
19
|
export default Greeting;
|
|
21
20
|
//# sourceMappingURL=Greeting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Greeting.js","sourceRoot":"","sources":["../../../../../src/lib/components/Greeting/Greeting.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Greeting.js","sourceRoot":"","sources":["../../../../../src/lib/components/Greeting/Greeting.tsx"],"names":[],"mappings":"AAYA,MAAM,QAAQ,GAAG,CAAC,EAChB,cAAc,GAAG,cAAc,EAC/B,gBAAgB,GAAG,gBAAgB,EACnC,cAAc,GAAG,cAAc,GACzB,EAAU,EAAE;IAClB,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAA;IACxB,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IACzD,MAAM,OAAO,GAAG,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7D,MAAM,OAAO,GAAG,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7D,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,EAAE,CAAC,CAAA;IAErD,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,IAAI,IAAI,GAAG,MAAM,EAAE;QACjB,OAAO,GAAG,cAAc,CAAA;KACzB;SAAM,IAAI,IAAI,GAAG,MAAM,IAAI,IAAI,GAAG,MAAM,EAAE;QACzC,OAAO,GAAG,gBAAgB,CAAA;KAC3B;SAAM,IAAI,IAAI,GAAG,MAAM,EAAE;QACxB,OAAO,GAAG,cAAc,CAAA;KACzB;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import style from './style.module.css';
|
|
3
4
|
import Container from '../Container/Container';
|
|
4
5
|
import ComponentWrapper from '../ComponentWrapper/ComponentWrapper';
|
|
5
6
|
import Icon from '../Icon/Icon';
|
|
6
|
-
const Showcase = ({ id, className, title, subTitle, description, bgColour,
|
|
7
|
+
const Showcase = ({ id, className, title, subTitle, description, bgColour, size = 'large', theme = 'theme-rupertbennett', withArrow = false, avatar }) => {
|
|
7
8
|
const classList = classNames(className);
|
|
8
|
-
const containerSize =
|
|
9
|
-
|
|
9
|
+
const containerSize = classNames({
|
|
10
|
+
[style.smallContainer]: size === 'small',
|
|
11
|
+
[style.mediumContainer]: size === 'medium',
|
|
12
|
+
[style.largeContainer]: size === 'large'
|
|
13
|
+
}, style.container);
|
|
10
14
|
return (React.createElement(ComponentWrapper, { id: id, className: classList, bgColour: bgColour, theme: theme },
|
|
11
|
-
React.createElement(Container, { className:
|
|
12
|
-
React.createElement("div", { className:
|
|
13
|
-
React.createElement("h2", { className:
|
|
14
|
-
React.createElement("h2", { className:
|
|
15
|
-
React.createElement("p", { className:
|
|
16
|
-
React.createElement("div", { className:
|
|
17
|
-
React.createElement("img", { className:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
React.createElement(Container, { className: containerSize, theme: theme },
|
|
16
|
+
React.createElement("div", { className: style.textWrapper },
|
|
17
|
+
React.createElement("h2", { className: style.title }, title),
|
|
18
|
+
React.createElement("h2", { className: style.subTitle }, subTitle),
|
|
19
|
+
React.createElement("p", { className: style.description }, description)),
|
|
20
|
+
React.createElement("div", { className: style.avatarWrapper },
|
|
21
|
+
React.createElement("img", { className: style.avatar, src: avatar }))),
|
|
22
|
+
withArrow &&
|
|
23
|
+
React.createElement("div", { className: style.iconWrapper },
|
|
24
|
+
React.createElement(Icon, { theme: theme, className: style.icon, size: 2, rounded: true, type: 'chevron-down' }))));
|
|
21
25
|
};
|
|
22
26
|
export default Showcase;
|
|
23
27
|
//# sourceMappingURL=Showcase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Showcase.js","sourceRoot":"","sources":["../../../../../src/lib/components/Showcase/Showcase.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Showcase.js","sourceRoot":"","sources":["../../../../../src/lib/components/Showcase/Showcase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAEtC,OAAO,SAAS,MAAM,iCAAiC,CAAA;AACvD,OAAO,gBAAgB,MAAM,+CAA+C,CAAA;AAC5E,OAAO,IAAI,MAAM,uBAAuB,CAAA;AAgBxC,MAAM,QAAQ,GAAoB,CAAC,EACjC,EAAE,EACF,SAAS,EACT,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,qBAAqB,EAC7B,SAAS,GAAG,KAAK,EACjB,MAAM,EACA,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;IAEvC,MAAM,aAAa,GAAG,UAAU,CAAC;QAC/B,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,IAAI,KAAK,OAAO;QACxC,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,IAAI,KAAK,QAAQ;QAC1C,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,IAAI,KAAK,OAAO;KACzC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAEnB,OAAO,CACL,oBAAC,gBAAgB,IACf,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK;QAEZ,oBAAC,SAAS,IAAC,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK;YAC/C,6BAAK,SAAS,EAAE,KAAK,CAAC,WAAW;gBAC/B,4BAAI,SAAS,EAAE,KAAK,CAAC,KAAK,IAAG,KAAK,CAAM;gBACxC,4BAAI,SAAS,EAAE,KAAK,CAAC,QAAQ,IAAG,QAAQ,CAAM;gBAC9C,2BAAG,SAAS,EAAE,KAAK,CAAC,WAAW,IAAG,WAAW,CAAK,CAC9C;YACN,6BAAK,SAAS,EAAE,KAAK,CAAC,aAAa;gBACjC,6BAAK,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,GAAI,CACzC,CACI;QACX,SAAS;YACR,6BAAK,SAAS,EAAE,KAAK,CAAC,WAAW;gBAC/B,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,QAAC,IAAI,EAAC,cAAc,GAAG,CAC9E,CACS,CACpB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1,138 +1,152 @@
|
|
|
1
|
-
.
|
|
1
|
+
.container {
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
flex-wrap: wrap;
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
text-align: center
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
border-color: var(--color-white)
|
|
11
|
-
}
|
|
8
|
+
@media (min-width: 768px) {
|
|
12
9
|
|
|
13
|
-
.
|
|
10
|
+
.container {
|
|
14
11
|
|
|
15
|
-
|
|
12
|
+
display: flex;
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
text-align: left
|
|
15
|
+
}
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
.
|
|
18
|
+
.smallContainer {
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
height: 14rem
|
|
23
21
|
}
|
|
24
22
|
|
|
25
|
-
.
|
|
23
|
+
.mediumContainer {
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
height: 24rem
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
.
|
|
28
|
+
.largeContainer {
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
height: calc(100vh - 176px)
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
.
|
|
33
|
+
.textWrapper {
|
|
36
34
|
|
|
37
|
-
|
|
35
|
+
margin: auto;
|
|
38
36
|
|
|
39
|
-
|
|
37
|
+
width: 100%
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
@media (min-width: 768px) {
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
}
|
|
42
|
+
.textWrapper {
|
|
46
43
|
|
|
47
|
-
.
|
|
44
|
+
width: 66.666667%;
|
|
48
45
|
|
|
49
|
-
|
|
46
|
+
padding-left: 4rem;
|
|
50
47
|
|
|
51
|
-
|
|
48
|
+
padding-right: 1rem
|
|
49
|
+
}
|
|
52
50
|
}
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
@media (min-width: 1024px) {
|
|
53
|
+
|
|
54
|
+
.textWrapper {
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
padding-left: 8rem;
|
|
57
|
+
|
|
58
|
+
padding-right: 2rem
|
|
59
|
+
}
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
|
|
62
|
+
@media (min-width: 1280px) {
|
|
60
63
|
|
|
61
|
-
|
|
64
|
+
.textWrapper {
|
|
65
|
+
|
|
66
|
+
padding-left: 16rem
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
|
|
64
|
-
.
|
|
70
|
+
.title {
|
|
65
71
|
|
|
66
|
-
|
|
72
|
+
font-size: 48px;
|
|
67
73
|
|
|
68
|
-
font-
|
|
74
|
+
font-weight: 700;
|
|
69
75
|
|
|
70
|
-
|
|
76
|
+
line-height: 1.25;
|
|
77
|
+
|
|
78
|
+
color: var(--color-primary)
|
|
71
79
|
}
|
|
72
80
|
|
|
73
|
-
.
|
|
81
|
+
.subTitle {
|
|
74
82
|
|
|
75
|
-
|
|
83
|
+
font-size: 48px;
|
|
76
84
|
|
|
77
|
-
|
|
85
|
+
font-weight: 700;
|
|
78
86
|
|
|
79
|
-
|
|
87
|
+
line-height: 1.25;
|
|
80
88
|
|
|
81
|
-
|
|
89
|
+
color: var(--color-black)
|
|
82
90
|
}
|
|
83
91
|
|
|
84
|
-
.
|
|
92
|
+
.description {
|
|
85
93
|
|
|
86
|
-
|
|
94
|
+
padding-top: 1rem;
|
|
95
|
+
|
|
96
|
+
font-size: 22px;
|
|
87
97
|
|
|
88
|
-
|
|
98
|
+
color: var(--color-black)
|
|
89
99
|
}
|
|
90
100
|
|
|
91
|
-
.
|
|
101
|
+
.avatarWrapper {
|
|
92
102
|
|
|
93
103
|
display: flex;
|
|
94
104
|
|
|
95
|
-
|
|
105
|
+
height: 100%;
|
|
106
|
+
|
|
107
|
+
width: 100%;
|
|
108
|
+
|
|
109
|
+
justify-content: center;
|
|
96
110
|
|
|
97
|
-
|
|
111
|
+
padding-top: 2rem
|
|
98
112
|
}
|
|
99
113
|
|
|
100
114
|
@media (min-width: 768px) {
|
|
101
115
|
|
|
102
|
-
.
|
|
116
|
+
.avatarWrapper {
|
|
103
117
|
|
|
104
|
-
|
|
118
|
+
width: 33.333333%;
|
|
119
|
+
|
|
120
|
+
padding-top: 0px
|
|
105
121
|
}
|
|
106
122
|
}
|
|
107
123
|
|
|
108
|
-
.
|
|
109
|
-
|
|
110
|
-
border-width: 4px;
|
|
124
|
+
.avatar {
|
|
111
125
|
|
|
112
|
-
|
|
126
|
+
max-height: 24rem
|
|
113
127
|
}
|
|
114
128
|
|
|
115
129
|
@media (min-width: 768px) {
|
|
116
130
|
|
|
117
|
-
.
|
|
131
|
+
.avatar {
|
|
118
132
|
|
|
119
|
-
|
|
133
|
+
margin: auto;
|
|
120
134
|
|
|
121
|
-
|
|
122
|
-
}
|
|
135
|
+
max-height: 24rem;
|
|
123
136
|
|
|
124
|
-
|
|
137
|
+
width: 100%
|
|
138
|
+
}
|
|
139
|
+
}
|
|
125
140
|
|
|
126
|
-
|
|
141
|
+
.iconWrapper {
|
|
127
142
|
|
|
128
|
-
|
|
129
|
-
}
|
|
143
|
+
width: 100%
|
|
130
144
|
}
|
|
131
145
|
|
|
132
|
-
.
|
|
146
|
+
.icon {
|
|
133
147
|
|
|
134
|
-
|
|
148
|
+
margin-left: auto;
|
|
135
149
|
|
|
136
|
-
|
|
150
|
+
margin-right: auto
|
|
137
151
|
}
|
|
138
152
|
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/lib/components/Showcase/style.module.css"],"names":[],"mappings":"AACI;;IAAA,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/Showcase/style.module.css"],"names":[],"mappings":"AACI;;IAAA,eAAiD;;IAAjD;AAAiD;;AAAjD;;IAAA;;QAAA,aAAiD;;QAAjD;IAAiD;AAAA;;AAIjD;;IAAA;AAAW;;AAIX;;IAAA;AAAW;;AAIX;;IAAA;AAA4B;;AAI5B;;IAAA,YAAwE;;IAAxE;AAAwE;;AAAxE;;IAAA;;QAAA,iBAAwE;;QAAxE,kBAAwE;;QAAxE;IAAwE;AAAA;;AAAxE;;IAAA;;QAAA,kBAAwE;;QAAxE;IAAwE;AAAA;;AAAxE;;IAAA;;QAAA;IAAwE;AAAA;;AAIxE;;IAAA,eAAoD;;IAApD,gBAAoD;;IAApD,iBAAoD;;IAApD;AAAoD;;AAIpD;;IAAA,eAAkD;;IAAlD,gBAAkD;;IAAlD,iBAAkD;;IAAlD;AAAkD;;AAIlD;;IAAA,iBAA8B;;IAA9B,eAA8B;;IAA9B;AAA8B;;AAI9B;;IAAA,aAA8D;;IAA9D,YAA8D;;IAA9D,WAA8D;;IAA9D,uBAA8D;;IAA9D;AAA8D;;AAA9D;;IAAA;;QAAA,iBAA8D;;QAA9D;IAA8D;AAAA;;AAI9D;;IAAA;AAA+C;;AAA/C;;IAAA;;QAAA,YAA+C;;QAA/C,iBAA+C;;QAA/C;IAA+C;AAAA;;AAI/C;;IAAA;AAAa;;AAIb;;IAAA,iBAAc;;IAAd;AAAc","file":"style.module.css","sourcesContent":[".container {\n @apply flex-wrap md:flex text-center md:text-left;\n}\n\n.smallContainer {\n @apply h-56;\n}\n\n.mediumContainer {\n @apply h-96;\n}\n\n.largeContainer {\n @apply h-[calc(100vh-176px)];\n}\n\n.textWrapper {\n @apply w-full md:w-2/3 m-auto md:pl-16 lg:pl-32 xl:pl-64 md:pr-4 lg:pr-8;\n}\n\n.title {\n @apply font-bold text-xxl text-primary leading-tight;\n}\n\n.subTitle {\n @apply font-bold text-xxl text-black leading-tight;\n}\n\n.description {\n @apply text-md text-black pt-4;\n}\n\n.avatarWrapper {\n @apply w-full md:w-1/3 h-full flex justify-center pt-8 md:pt-0;\n}\n\n.avatar {\n @apply md:m-auto md:w-full max-h-96 md:max-h-96;\n}\n\n.iconWrapper {\n @apply w-full;\n}\n\n.icon {\n @apply mx-auto;\n}"]}
|