trepur_components 1.0.4 → 1.0.6
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/Accordion/{index.d.ts → Accordion.d.ts} +0 -0
- package/dist/src/lib/components/Accordion/{index.js → Accordion.js} +3 -4
- package/dist/src/lib/components/Accordion/Accordion.js.map +1 -0
- package/dist/src/lib/components/AlertBar/AlertBar.d.ts +16 -0
- package/dist/src/lib/components/AlertBar/AlertBar.js +64 -0
- package/dist/src/lib/components/AlertBar/AlertBar.js.map +1 -0
- package/dist/src/lib/components/AlertBar/style.module.css +65 -0
- package/dist/src/lib/components/AlertBar/style.module.css.map +1 -0
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.js +21 -0
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/src/lib/components/Breadcrumbs/style.module.css +53 -0
- package/dist/src/lib/components/Breadcrumbs/style.module.css.map +1 -0
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.d.ts +9 -0
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.js +19 -0
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.js.map +1 -0
- package/dist/src/lib/components/BreadcrumbsBordered/style.module.css +17 -0
- package/dist/src/lib/components/BreadcrumbsBordered/style.module.css.map +1 -0
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.d.ts +12 -0
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.js +52 -0
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.js.map +1 -0
- package/dist/src/lib/components/BreadcrumbsItem/style.module.css +48 -0
- package/dist/src/lib/components/BreadcrumbsItem/style.module.css.map +1 -0
- package/dist/src/lib/components/Button/Button.d.ts +17 -0
- package/dist/src/lib/components/Button/Button.js +33 -0
- package/dist/src/lib/components/Button/Button.js.map +1 -0
- package/dist/src/lib/components/Button/style.module.css +127 -0
- package/dist/src/lib/components/Button/style.module.css.map +1 -0
- package/dist/src/lib/components/Card/Card.d.ts +31 -0
- package/dist/src/lib/components/Card/Card.js +66 -0
- package/dist/src/lib/components/Card/Card.js.map +1 -0
- package/dist/src/lib/components/Card/style.module.css +184 -0
- package/dist/src/lib/components/Card/style.module.css.map +1 -0
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.d.ts +10 -0
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.js +13 -0
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.js.map +1 -0
- package/dist/src/lib/components/CardWithTopImage/style.module.css +36 -0
- package/dist/src/lib/components/CardWithTopImage/style.module.css.map +1 -0
- package/dist/src/lib/components/Carousel/Carousel.d.ts +59 -0
- package/dist/src/lib/components/Carousel/Carousel.js +123 -0
- package/dist/src/lib/components/Carousel/Carousel.js.map +1 -0
- package/dist/src/lib/components/Carousel/style.module.css +59 -0
- package/dist/src/lib/components/Carousel/style.module.css.map +1 -0
- package/dist/src/lib/components/Collapsible/Collapsible.d.ts +16 -0
- package/dist/src/lib/components/Collapsible/Collapsible.js +68 -0
- package/dist/src/lib/components/Collapsible/Collapsible.js.map +1 -0
- package/dist/src/lib/components/Collapsible/style.module.css +122 -0
- package/dist/src/lib/components/Collapsible/style.module.css.map +1 -0
- package/dist/src/lib/components/Column/Column.d.ts +12 -0
- package/dist/src/lib/components/Column/Column.js +84 -0
- package/dist/src/lib/components/Column/Column.js.map +1 -0
- package/dist/src/lib/components/Column/style.module.css +244 -0
- package/dist/src/lib/components/Column/style.module.css.map +1 -0
- package/dist/src/lib/components/Container/Container.d.ts +9 -0
- package/dist/src/lib/components/Container/Container.js +9 -0
- package/dist/src/lib/components/Container/Container.js.map +1 -0
- package/dist/src/lib/components/Container/style.module.css +5 -0
- package/dist/src/lib/components/Container/style.module.css.map +1 -0
- package/dist/src/lib/components/Footer/Footer.d.ts +11 -0
- package/dist/src/lib/components/Footer/Footer.js +14 -0
- package/dist/src/lib/components/Footer/Footer.js.map +1 -0
- package/dist/src/lib/components/Footer/style.module.css +89 -0
- package/dist/src/lib/components/Footer/style.module.css.map +1 -0
- package/dist/src/lib/components/Form/Form.d.ts +15 -0
- package/dist/src/lib/components/Form/Form.js +20 -0
- package/dist/src/lib/components/Form/Form.js.map +1 -0
- package/dist/src/lib/components/Form/style.module.css +4 -0
- package/dist/src/lib/components/Form/style.module.css.map +1 -0
- package/dist/src/lib/components/FyreCard/FyreCard.d.ts +13 -0
- package/dist/src/lib/components/FyreCard/FyreCard.js +18 -0
- package/dist/src/lib/components/FyreCard/FyreCard.js.map +1 -0
- package/dist/src/lib/components/FyreCard/style.module.css +37 -0
- package/dist/src/lib/components/FyreCard/style.module.css.map +1 -0
- package/dist/src/lib/components/Greeting/Greeting.d.ts +10 -0
- package/dist/src/lib/components/Greeting/Greeting.js +21 -0
- package/dist/src/lib/components/Greeting/Greeting.js.map +1 -0
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.d.ts +6 -0
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.js +29 -0
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.js.map +1 -0
- package/dist/src/lib/components/HamburgerIcon/style.module.css +90 -0
- package/dist/src/lib/components/HamburgerIcon/style.module.css.map +1 -0
- package/dist/src/lib/components/Icon/Icon.d.ts +19 -0
- package/dist/src/lib/components/Icon/Icon.js +37 -0
- package/dist/src/lib/components/Icon/Icon.js.map +1 -0
- package/dist/src/lib/components/Icon/style.module.css +219 -0
- package/dist/src/lib/components/Icon/style.module.css.map +1 -0
- package/dist/src/lib/components/Image/Image.d.ts +16 -0
- package/dist/src/lib/components/Image/Image.js +54 -0
- package/dist/src/lib/components/Image/Image.js.map +1 -0
- package/dist/src/lib/components/Image/style.module.css +70 -0
- package/dist/src/lib/components/Image/style.module.css.map +1 -0
- package/dist/src/lib/components/ImageLink/ImageLink.d.ts +15 -0
- package/dist/src/lib/components/ImageLink/ImageLink.js +19 -0
- package/dist/src/lib/components/ImageLink/ImageLink.js.map +1 -0
- package/dist/src/lib/components/ImageLink/style.module.css +111 -0
- package/dist/src/lib/components/ImageLink/style.module.css.map +1 -0
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.d.ts +9 -0
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.js +12 -0
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.js.map +1 -0
- package/dist/src/lib/components/ImageLinkList/style.module.css +14 -0
- package/dist/src/lib/components/ImageLinkList/style.module.css.map +1 -0
- package/dist/src/lib/components/InformationIcon/InformationIcon.d.ts +15 -0
- package/dist/src/lib/components/InformationIcon/InformationIcon.js +45 -0
- package/dist/src/lib/components/InformationIcon/InformationIcon.js.map +1 -0
- package/dist/src/lib/components/InformationIcon/style.module.css +90 -0
- package/dist/src/lib/components/InformationIcon/style.module.css.map +1 -0
- package/dist/src/lib/components/Input/Input.d.ts +31 -0
- package/dist/src/lib/components/Input/Input.js +26 -0
- package/dist/src/lib/components/Input/Input.js.map +1 -0
- package/dist/src/lib/components/Input/style.module.css +88 -0
- package/dist/src/lib/components/Input/style.module.css.map +1 -0
- package/dist/src/lib/components/Jumbotron/Jumbotron.d.ts +9 -0
- package/dist/src/lib/components/Jumbotron/Jumbotron.js +10 -0
- package/dist/src/lib/components/Jumbotron/Jumbotron.js.map +1 -0
- package/dist/src/lib/components/Jumbotron/style.module.css +5 -0
- package/dist/src/lib/components/Jumbotron/style.module.css.map +1 -0
- package/dist/src/lib/components/Nav/Nav.d.ts +22 -0
- package/dist/src/lib/components/Nav/Nav.js +62 -0
- package/dist/src/lib/components/Nav/Nav.js.map +1 -0
- package/dist/src/lib/components/Nav/style.module.css +299 -0
- package/dist/src/lib/components/Nav/style.module.css.map +1 -0
- package/dist/src/lib/components/NavItem/NavItem.d.ts +15 -0
- package/dist/src/lib/components/NavItem/NavItem.js +22 -0
- package/dist/src/lib/components/NavItem/NavItem.js.map +1 -0
- package/dist/src/lib/components/NavItem/style.module.css +133 -0
- package/dist/src/lib/components/NavItem/style.module.css.map +1 -0
- package/dist/src/lib/components/NewsCard/NewsCard.d.ts +14 -0
- package/dist/src/lib/components/NewsCard/NewsCard.js +21 -0
- package/dist/src/lib/components/NewsCard/NewsCard.js.map +1 -0
- package/dist/src/lib/components/NewsCard/style.module.css +34 -0
- package/dist/src/lib/components/NewsCard/style.module.css.map +1 -0
- package/dist/src/lib/components/Profile/Profile.d.ts +18 -0
- package/dist/src/lib/components/Profile/Profile.js +36 -0
- package/dist/src/lib/components/Profile/Profile.js.map +1 -0
- package/dist/src/lib/components/Profile/style.module.css +110 -0
- package/dist/src/lib/components/Profile/style.module.css.map +1 -0
- package/dist/src/lib/components/Row/Row.d.ts +8 -0
- package/dist/src/lib/components/Row/Row.js +9 -0
- package/dist/src/lib/components/Row/Row.js.map +1 -0
- package/dist/src/lib/components/Row/style.module.css +5 -0
- package/dist/src/lib/components/Row/style.module.css.map +1 -0
- package/dist/src/lib/components/Search/Search.d.ts +13 -0
- package/dist/src/lib/components/Search/Search.js +24 -0
- package/dist/src/lib/components/Search/Search.js.map +1 -0
- package/dist/src/lib/components/Search/style.module.css +48 -0
- package/dist/src/lib/components/Search/style.module.css.map +1 -0
- package/dist/src/lib/components/SocialBlock/SocialBlock.d.ts +21 -0
- package/dist/src/lib/components/SocialBlock/SocialBlock.js +64 -0
- package/dist/src/lib/components/SocialBlock/SocialBlock.js.map +1 -0
- package/dist/src/lib/components/SocialBlock/style.module.css +88 -0
- package/dist/src/lib/components/SocialBlock/style.module.css.map +1 -0
- package/dist/src/lib/components/StarRating/StarRating.d.ts +9 -0
- package/dist/src/lib/components/StarRating/StarRating.js +28 -0
- package/dist/src/lib/components/StarRating/StarRating.js.map +1 -0
- package/dist/src/lib/components/StarRating/style.module.css +10 -0
- package/dist/src/lib/components/StarRating/style.module.css.map +1 -0
- package/dist/src/lib/components/Testimonial/Testimonial.d.ts +17 -0
- package/dist/src/lib/components/Testimonial/Testimonial.js +28 -0
- package/dist/src/lib/components/Testimonial/Testimonial.js.map +1 -0
- package/dist/src/lib/components/Testimonial/style.module.css +38 -0
- package/dist/src/lib/components/Testimonial/style.module.css.map +1 -0
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.d.ts +26 -0
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.js +105 -0
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.js.map +1 -0
- package/dist/src/lib/components/TextAndTitle/style.module.css +106 -0
- package/dist/src/lib/components/TextAndTitle/style.module.css.map +1 -0
- package/dist/src/lib/components/TextArea/TextArea.d.ts +27 -0
- package/dist/src/lib/components/TextArea/TextArea.js +20 -0
- package/dist/src/lib/components/TextArea/TextArea.js.map +1 -0
- package/dist/src/lib/components/TextArea/style.module.css +73 -0
- package/dist/src/lib/components/TextArea/style.module.css.map +1 -0
- package/dist/src/lib/components/Timeline/Timeline.d.ts +14 -0
- package/dist/src/lib/components/Timeline/Timeline.js +127 -0
- package/dist/src/lib/components/Timeline/Timeline.js.map +1 -0
- package/dist/src/lib/components/Timeline/style.module.css +249 -0
- package/dist/src/lib/components/Timeline/style.module.css.map +1 -0
- package/dist/src/lib/components/Tubestops/Tubestops.d.ts +12 -0
- package/dist/src/lib/components/Tubestops/Tubestops.js +38 -0
- package/dist/src/lib/components/Tubestops/Tubestops.js.map +1 -0
- package/dist/src/lib/components/Tubestops/style.module.css +952 -0
- package/dist/src/lib/components/Tubestops/style.module.css.map +1 -0
- package/dist/src/lib/components/UserIcon/UserIcon.d.ts +11 -0
- package/dist/src/lib/components/UserIcon/UserIcon.js +17 -0
- package/dist/src/lib/components/UserIcon/UserIcon.js.map +1 -0
- package/dist/src/lib/components/UserIcon/style.module.css +42 -0
- package/dist/src/lib/components/UserIcon/style.module.css.map +1 -0
- package/dist/src/lib/components/Video/Video.d.ts +17 -0
- package/dist/src/lib/components/Video/Video.js +9 -0
- package/dist/src/lib/components/Video/Video.js.map +1 -0
- package/dist/src/lib/index.d.ts +39 -39
- package/dist/src/lib/index.js +40 -42
- package/dist/src/lib/index.js.map +1 -1
- package/package.json +2 -6
- package/dist/src/lib/components/Accordion/index.js.map +0 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
.classList {
|
|
2
|
+
|
|
3
|
+
margin-left: auto;
|
|
4
|
+
|
|
5
|
+
margin-right: auto;
|
|
6
|
+
|
|
7
|
+
margin-top: auto;
|
|
8
|
+
|
|
9
|
+
margin-bottom: auto
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sizeOne {
|
|
13
|
+
|
|
14
|
+
height: 1.5rem;
|
|
15
|
+
|
|
16
|
+
width: 1.5rem
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sizeTwo {
|
|
20
|
+
|
|
21
|
+
height: 2.5rem;
|
|
22
|
+
|
|
23
|
+
width: 2.5rem
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sizeThree {
|
|
27
|
+
|
|
28
|
+
height: 3.5rem;
|
|
29
|
+
|
|
30
|
+
width: 3.5rem
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sizeFour {
|
|
34
|
+
|
|
35
|
+
height: 5rem;
|
|
36
|
+
|
|
37
|
+
width: 5rem
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sizeFive {
|
|
41
|
+
|
|
42
|
+
height: 6rem;
|
|
43
|
+
|
|
44
|
+
width: 6rem
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sizeSix {
|
|
48
|
+
|
|
49
|
+
height: 7rem;
|
|
50
|
+
|
|
51
|
+
width: 7rem
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sizeSeven {
|
|
55
|
+
|
|
56
|
+
height: 8rem;
|
|
57
|
+
|
|
58
|
+
width: 8rem
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sizeEight {
|
|
62
|
+
|
|
63
|
+
height: 9rem;
|
|
64
|
+
|
|
65
|
+
width: 9rem
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sizeNine {
|
|
69
|
+
|
|
70
|
+
height: 10rem;
|
|
71
|
+
|
|
72
|
+
width: 10rem
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sizeTen {
|
|
76
|
+
|
|
77
|
+
height: 11rem;
|
|
78
|
+
|
|
79
|
+
width: 11rem
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.rounded {
|
|
83
|
+
|
|
84
|
+
border-radius: 9999px
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.wrapperClassList {
|
|
88
|
+
|
|
89
|
+
display: flex;
|
|
90
|
+
|
|
91
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
92
|
+
|
|
93
|
+
transition-duration: 500ms
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.textPrimary {
|
|
97
|
+
|
|
98
|
+
--tw-text-opacity: 1;
|
|
99
|
+
|
|
100
|
+
color: rgb(0 54 160 / var(--tw-text-opacity))
|
|
101
|
+
}
|
|
102
|
+
.textSecondary {
|
|
103
|
+
|
|
104
|
+
--tw-text-opacity: 1;
|
|
105
|
+
|
|
106
|
+
color: rgb(255 168 0 / var(--tw-text-opacity))
|
|
107
|
+
}
|
|
108
|
+
.textWhite {
|
|
109
|
+
|
|
110
|
+
--tw-text-opacity: 1;
|
|
111
|
+
|
|
112
|
+
color: rgb(255 255 255 / var(--tw-text-opacity))
|
|
113
|
+
}
|
|
114
|
+
.textBlack {
|
|
115
|
+
|
|
116
|
+
--tw-text-opacity: 1;
|
|
117
|
+
|
|
118
|
+
color: rgb(0 0 0 / var(--tw-text-opacity))
|
|
119
|
+
}
|
|
120
|
+
.textGold {
|
|
121
|
+
|
|
122
|
+
--tw-text-opacity: 1;
|
|
123
|
+
|
|
124
|
+
color: rgb(226 177 60 / var(--tw-text-opacity))
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.bgPrimary {
|
|
128
|
+
|
|
129
|
+
--tw-bg-opacity: 1;
|
|
130
|
+
|
|
131
|
+
background-color: rgb(0 54 160 / var(--tw-bg-opacity))
|
|
132
|
+
}
|
|
133
|
+
.bgSecondary {
|
|
134
|
+
|
|
135
|
+
--tw-bg-opacity: 1;
|
|
136
|
+
|
|
137
|
+
background-color: rgb(255 168 0 / var(--tw-bg-opacity))
|
|
138
|
+
}
|
|
139
|
+
.bgWhite {
|
|
140
|
+
|
|
141
|
+
--tw-bg-opacity: 1;
|
|
142
|
+
|
|
143
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
|
|
144
|
+
}
|
|
145
|
+
.bglack {
|
|
146
|
+
|
|
147
|
+
--tw-bg-opacity: 1;
|
|
148
|
+
|
|
149
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity))
|
|
150
|
+
}
|
|
151
|
+
.bgGold {
|
|
152
|
+
|
|
153
|
+
--tw-bg-opacity: 1;
|
|
154
|
+
|
|
155
|
+
background-color: rgb(226 177 60 / var(--tw-bg-opacity))
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.hoverTextPrimary:hover {
|
|
159
|
+
|
|
160
|
+
--tw-text-opacity: 1;
|
|
161
|
+
|
|
162
|
+
color: rgb(0 54 160 / var(--tw-text-opacity))
|
|
163
|
+
}
|
|
164
|
+
.hoverTextSecondary:hover {
|
|
165
|
+
|
|
166
|
+
--tw-text-opacity: 1;
|
|
167
|
+
|
|
168
|
+
color: rgb(255 168 0 / var(--tw-text-opacity))
|
|
169
|
+
}
|
|
170
|
+
.hoverTextWhite:hover {
|
|
171
|
+
|
|
172
|
+
--tw-text-opacity: 1;
|
|
173
|
+
|
|
174
|
+
color: rgb(255 255 255 / var(--tw-text-opacity))
|
|
175
|
+
}
|
|
176
|
+
.hoverTextlack:hover {
|
|
177
|
+
|
|
178
|
+
--tw-text-opacity: 1;
|
|
179
|
+
|
|
180
|
+
color: rgb(0 0 0 / var(--tw-text-opacity))
|
|
181
|
+
}
|
|
182
|
+
.hoverTextGold:hover {
|
|
183
|
+
|
|
184
|
+
--tw-text-opacity: 1;
|
|
185
|
+
|
|
186
|
+
color: rgb(226 177 60 / var(--tw-text-opacity))
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.hoverBgPrimary:hover {
|
|
190
|
+
|
|
191
|
+
--tw-bg-opacity: 1;
|
|
192
|
+
|
|
193
|
+
background-color: rgb(0 54 160 / var(--tw-bg-opacity))
|
|
194
|
+
}
|
|
195
|
+
.hoverBgSecondary:hover {
|
|
196
|
+
|
|
197
|
+
--tw-bg-opacity: 1;
|
|
198
|
+
|
|
199
|
+
background-color: rgb(255 168 0 / var(--tw-bg-opacity))
|
|
200
|
+
}
|
|
201
|
+
.hoverBgWhite:hover {
|
|
202
|
+
|
|
203
|
+
--tw-bg-opacity: 1;
|
|
204
|
+
|
|
205
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
|
|
206
|
+
}
|
|
207
|
+
.hoverBglack:hover {
|
|
208
|
+
|
|
209
|
+
--tw-bg-opacity: 1;
|
|
210
|
+
|
|
211
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity))
|
|
212
|
+
}
|
|
213
|
+
.hoverBgGold:hover {
|
|
214
|
+
|
|
215
|
+
--tw-bg-opacity: 1;
|
|
216
|
+
|
|
217
|
+
background-color: rgb(226 177 60 / var(--tw-bg-opacity))
|
|
218
|
+
}
|
|
219
|
+
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/Icon/style.module.css"],"names":[],"mappings":"AACI;;IAAA,iBAAsB;;IAAtB,kBAAsB;;IAAtB,gBAAsB;;IAAtB;AAAsB;;AAItB;;IAAA,cAAc;;IAAd;AAAc;;AAId;;IAAA,cAAgB;;IAAhB;AAAgB;;AAIhB;;IAAA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ree {\n @apply w-14 h-14;\n}\n\n.sizeFour {\n @apply w-20 h-20;\n}\n\n.sizeFive {\n @apply w-24 h-24;\n}\n\n.sizeSix {\n @apply w-28 h-28;\n}\n\n.sizeSeven {\n @apply w-32 h-32;\n}\n\n.sizeEight {\n @apply w-36 h-36;\n}\n\n.sizeNine {\n @apply w-40 h-40;\n}\n\n.sizeTen {\n @apply w-44 h-44;\n}\n\n.rounded {\n @apply rounded-full;\n}\n\n.wrapperClassList {\n @apply flex duration-500 transform;\n}\n\n.textPrimary { @apply text-primary; }\n.textSecondary { @apply text-secondary; }\n.textWhite { @apply text-white; }\n.textBlack { @apply text-black; }\n.textGold { @apply text-gold; }\n\n.bgPrimary { @apply bg-primary; }\n.bgSecondary { @apply bg-secondary; }\n.bgWhite { @apply bg-white; }\n.bglack { @apply bg-black; }\n.bgGold { @apply bg-gold; }\n\n.hoverTextPrimary { @apply hover:text-primary; }\n.hoverTextSecondary { @apply hover:text-secondary; }\n.hoverTextWhite { @apply hover:text-white; }\n.hoverTextlack { @apply hover:text-black; }\n.hoverTextGold { @apply hover:text-gold; }\n\n.hoverBgPrimary { @apply hover:bg-primary; }\n.hoverBgSecondary { @apply hover:bg-secondary; }\n.hoverBgWhite { @apply hover:bg-white; }\n.hoverBglack { @apply hover:bg-black; }\n.hoverBgGold { @apply hover:bg-gold; }"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
altText?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
roundedFull?: boolean;
|
|
10
|
+
height?: number;
|
|
11
|
+
width?: number;
|
|
12
|
+
overlayText?: string;
|
|
13
|
+
centerAligned?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const Image: ({ id, className, image, altText, title, rounded, roundedFull, height, width, overlayText, centerAligned }: Props) => JSX.Element;
|
|
16
|
+
export default Image;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import style from './style.module.css';
|
|
4
|
+
const Image = ({ id, className, image, altText, title, rounded = false, roundedFull = false, height = 8, width = 8, overlayText, centerAligned = false }) => {
|
|
5
|
+
const [isHovering, setIsHovering] = useState(false);
|
|
6
|
+
const opacity = classNames({
|
|
7
|
+
[style.visible]: isHovering,
|
|
8
|
+
[style.invisible]: !isHovering
|
|
9
|
+
});
|
|
10
|
+
const widthClassList = classNames({
|
|
11
|
+
'w-6': width === 1,
|
|
12
|
+
'w-10': width === 2,
|
|
13
|
+
'w-14': width === 3,
|
|
14
|
+
'w-16': width === 4,
|
|
15
|
+
'w-20': width === 5,
|
|
16
|
+
'w-24': width === 6,
|
|
17
|
+
'w-28': width === 7,
|
|
18
|
+
'w-32': width === 8,
|
|
19
|
+
'w-36': width === 9,
|
|
20
|
+
'w-40': width === 10,
|
|
21
|
+
'w-44': width === 11,
|
|
22
|
+
'w-full': (width === undefined) || (![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(width))
|
|
23
|
+
});
|
|
24
|
+
const heightClassList = classNames({
|
|
25
|
+
'h-6': height === 1,
|
|
26
|
+
'h-10': height === 2,
|
|
27
|
+
'h-14': height === 3,
|
|
28
|
+
'h-16': height === 4,
|
|
29
|
+
'h-20': height === 5,
|
|
30
|
+
'h-24': height === 6,
|
|
31
|
+
'h-28': height === 7,
|
|
32
|
+
'h-32': height === 8,
|
|
33
|
+
'h-36': height === 9,
|
|
34
|
+
'h-40': height === 10,
|
|
35
|
+
'h-44': height === 11,
|
|
36
|
+
'h-full': (height === undefined) || (![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(height))
|
|
37
|
+
});
|
|
38
|
+
const imageClassList = classNames({
|
|
39
|
+
[style.rounded]: rounded,
|
|
40
|
+
[style.roundedFull]: roundedFull,
|
|
41
|
+
[style.centerAligned]: centerAligned
|
|
42
|
+
}, className, widthClassList, heightClassList);
|
|
43
|
+
const overlayClassList = classNames(widthClassList, heightClassList, opacity, style.overlayClassList);
|
|
44
|
+
const overlayTextWrapperClassList = classNames(widthClassList, heightClassList, opacity, style.overlayTextWrapperClassList);
|
|
45
|
+
return (React.createElement(React.Fragment, null,
|
|
46
|
+
overlayText !== undefined &&
|
|
47
|
+
React.createElement(React.Fragment, null,
|
|
48
|
+
React.createElement("div", { className: overlayClassList }),
|
|
49
|
+
React.createElement("div", { className: overlayTextWrapperClassList, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false) },
|
|
50
|
+
React.createElement("p", { className: style.overlayTextClassList }, overlayText))),
|
|
51
|
+
React.createElement("img", Object.assign({ id: id, className: imageClassList, src: image }, (altText !== undefined && { alt: altText }), (title !== undefined && { title })))));
|
|
52
|
+
};
|
|
53
|
+
export default Image;
|
|
54
|
+
//# sourceMappingURL=Image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../../src/lib/components/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAgBtC,MAAM,KAAK,GAAG,CAAC,EACb,EAAE,EACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,OAAO,GAAG,KAAK,EACf,WAAW,GAAG,KAAK,EACnB,MAAM,GAAG,CAAC,EACV,KAAK,GAAG,CAAC,EACT,WAAW,EACX,aAAa,GAAG,KAAK,EACf,EAAe,EAAE;IACvB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACnD,MAAM,OAAO,GAAG,UAAU,CAAC;QACzB,CAAC,KAAK,CAAC,OAAO,CAAC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A;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.overlayTextClassList {
|
|
2
|
+
|
|
3
|
+
margin: auto;
|
|
4
|
+
|
|
5
|
+
text-align: center;
|
|
6
|
+
|
|
7
|
+
--tw-text-opacity: 1;
|
|
8
|
+
|
|
9
|
+
color: rgb(0 54 160 / var(--tw-text-opacity))
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.overlayTextWrapperClassList {
|
|
13
|
+
|
|
14
|
+
position: absolute;
|
|
15
|
+
|
|
16
|
+
z-index: 20;
|
|
17
|
+
|
|
18
|
+
display: flex;
|
|
19
|
+
|
|
20
|
+
transition-property: opacity;
|
|
21
|
+
|
|
22
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
23
|
+
|
|
24
|
+
transition-duration: 700ms
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.overlayClassList {
|
|
28
|
+
|
|
29
|
+
position: absolute;
|
|
30
|
+
|
|
31
|
+
z-index: 10;
|
|
32
|
+
|
|
33
|
+
--tw-bg-opacity: 1;
|
|
34
|
+
|
|
35
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
36
|
+
|
|
37
|
+
transition-property: opacity;
|
|
38
|
+
|
|
39
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
40
|
+
|
|
41
|
+
transition-duration: 700ms
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rounded {
|
|
45
|
+
|
|
46
|
+
border-radius: 1rem
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.roundedFull {
|
|
50
|
+
|
|
51
|
+
border-radius: 9999px
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.centerAligned {
|
|
55
|
+
|
|
56
|
+
margin-left: auto;
|
|
57
|
+
|
|
58
|
+
margin-right: auto
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.visible {
|
|
62
|
+
|
|
63
|
+
opacity: 0.8
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.invisible {
|
|
67
|
+
|
|
68
|
+
opacity: 0
|
|
69
|
+
}
|
|
70
|
+
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/Image/style.module.css"],"names":[],"mappings":"AACI;;IAAA,YAAsC;;IAAtC,kBAAsC;;IAAtC,oBAAsC;;IAAtC;AAAsC;;AAItC;;IAAA,kBAAyD;;IAAzD,WAAyD;;IAAzD,aAAyD;;IAAzD,4BAAyD;;IAAzD,wDAAyD;;IAAzD;AAAyD;;AAIzD;;IAAA,kBAA6D;;IAA7D,WAA6D;;IAA7D,kBAA6D;;IAA7D,yDAA6D;;IAA7D,4BAA6D;;IAA7D,wDAA6D;;IAA7D;AAA6D;;AAI7D;;IAAA;AAAkB;;AAIlB;;IAAA;AAAmB;;AAInB;;IAAA,iBAAc;;IAAd;AAAc;;AAId;;IAAA;AAAiB;;AAIjB;;IAAA;AAAgB","file":"style.module.css","sourcesContent":[".overlayTextClassList {\n @apply m-auto text-center text-primary;\n}\n\n.overlayTextWrapperClassList {\n @apply flex absolute z-20 transition-opacity duration-700;\n}\n\n.overlayClassList {\n @apply absolute z-10 transition-opacity duration-700 bg-white;\n}\n\n.rounded {\n @apply rounded-2xl;\n}\n\n.roundedFull {\n @apply rounded-full;\n}\n\n.centerAligned {\n @apply mx-auto;\n}\n\n.visible {\n @apply opacity-80;\n}\n\n.invisible {\n @apply opacity-0;\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as buttonProps } from '../Button/Button';
|
|
3
|
+
export interface Props {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
altText?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
link?: string;
|
|
10
|
+
rounded?: boolean;
|
|
11
|
+
openInNewTab?: boolean;
|
|
12
|
+
buttonProps?: buttonProps;
|
|
13
|
+
}
|
|
14
|
+
declare const ImageLink: ({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }: Props) => JSX.Element;
|
|
15
|
+
export default ImageLink;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Button from '../Button/Button';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import style from './style.module.css';
|
|
5
|
+
const ImageLink = ({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }) => {
|
|
6
|
+
const classList = classNames(className, style.classList);
|
|
7
|
+
const roundedClass = classNames({
|
|
8
|
+
[style.rounded]: rounded
|
|
9
|
+
});
|
|
10
|
+
return (React.createElement("a", Object.assign({ id: id, href: link }, (openInNewTab !== false && { target: 'blank' })),
|
|
11
|
+
React.createElement("div", { className: classNames(roundedClass, classList, style.wrapper) },
|
|
12
|
+
React.createElement("img", { src: image, alt: altText, className: style.image }),
|
|
13
|
+
title !== undefined &&
|
|
14
|
+
React.createElement("h1", { className: style.title }, title),
|
|
15
|
+
(buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.children) !== undefined &&
|
|
16
|
+
React.createElement(Button, { className: style.button }, buttonProps.children))));
|
|
17
|
+
};
|
|
18
|
+
export default ImageLink;
|
|
19
|
+
//# sourceMappingURL=ImageLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageLink.js","sourceRoot":"","sources":["../../../../../src/lib/components/ImageLink/ImageLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAgC,MAAM,2BAA2B,CAAA;AACxE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAatC,MAAM,SAAS,GAAG,CAAC,EACjB,EAAE,EACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,WAAW,EACL,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAExD,MAAM,YAAY,GAAG,UAAU,CAAC;QAC9B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO;KACzB,CAAC,CAAA;IAEF,OAAO,CACL,yCACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IACN,CAAC,YAAY,KAAK,KAAK,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;QAEnD,6BAAK,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC;YAChE,6BACE,GAAG,EAAE,KAAK,EACV,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,KAAK,CAAC,KAAK,GACtB;YACD,KAAK,KAAK,SAAS;gBAClB,4BACE,SAAS,EAAE,KAAK,CAAC,KAAK,IAErB,KAAK,CACH;YACN,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,MAAK,SAAS;gBAClC,oBAAC,MAAM,IACL,SAAS,EAAE,KAAK,CAAC,MAAM,IAEtB,WAAW,CAAC,QAAQ,CACd,CACP,CACJ,CACL,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.classList {
|
|
2
|
+
|
|
3
|
+
margin-left: 0.25rem;
|
|
4
|
+
|
|
5
|
+
margin-right: 0.25rem;
|
|
6
|
+
|
|
7
|
+
margin-bottom: 0.5rem;
|
|
8
|
+
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
|
|
13
|
+
text-align: center
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.classList:hover {
|
|
17
|
+
|
|
18
|
+
opacity: 0.5
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (min-width: 768px) {
|
|
22
|
+
|
|
23
|
+
.classList {
|
|
24
|
+
|
|
25
|
+
margin-left: 0.25rem;
|
|
26
|
+
|
|
27
|
+
margin-right: 0.25rem;
|
|
28
|
+
|
|
29
|
+
margin-bottom: 0.5rem
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (min-width: 1024px) {
|
|
34
|
+
|
|
35
|
+
.classList {
|
|
36
|
+
|
|
37
|
+
margin-left: 0.75rem;
|
|
38
|
+
|
|
39
|
+
margin-right: 0.75rem;
|
|
40
|
+
|
|
41
|
+
margin-bottom: 1.25rem
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.rounded {
|
|
46
|
+
|
|
47
|
+
border-radius: 9999px
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.title {
|
|
51
|
+
|
|
52
|
+
position: absolute;
|
|
53
|
+
|
|
54
|
+
left: 0px;
|
|
55
|
+
|
|
56
|
+
right: 0px;
|
|
57
|
+
|
|
58
|
+
top: 0px;
|
|
59
|
+
|
|
60
|
+
margin-top: 1rem;
|
|
61
|
+
|
|
62
|
+
--tw-bg-opacity: 1;
|
|
63
|
+
|
|
64
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
65
|
+
|
|
66
|
+
padding-top: 0.5rem;
|
|
67
|
+
|
|
68
|
+
padding-bottom: 0.5rem;
|
|
69
|
+
|
|
70
|
+
text-align: center;
|
|
71
|
+
|
|
72
|
+
--tw-text-opacity: 1;
|
|
73
|
+
|
|
74
|
+
color: rgb(255 255 255 / var(--tw-text-opacity))
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.button {
|
|
78
|
+
|
|
79
|
+
position: absolute;
|
|
80
|
+
|
|
81
|
+
left: 0px;
|
|
82
|
+
|
|
83
|
+
right: 0px;
|
|
84
|
+
|
|
85
|
+
bottom: 0px;
|
|
86
|
+
|
|
87
|
+
margin-left: 2rem;
|
|
88
|
+
|
|
89
|
+
margin-right: 2rem;
|
|
90
|
+
|
|
91
|
+
margin-bottom: 1rem;
|
|
92
|
+
|
|
93
|
+
text-align: center
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.image {
|
|
97
|
+
|
|
98
|
+
height: 100%;
|
|
99
|
+
|
|
100
|
+
width: 100%;
|
|
101
|
+
|
|
102
|
+
object-fit: cover
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.wrapper {
|
|
106
|
+
|
|
107
|
+
position: relative;
|
|
108
|
+
|
|
109
|
+
overflow: hidden
|
|
110
|
+
}
|
|
111
|
+
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/ImageLink/style.module.css"],"names":[],"mappings":"AACI;;IAAA,oBAA4G;;IAA5G,qBAA4G;;IAA5G,qBAA4G;;IAA5G,eAA4G;;IAA5G,gBAA4G;;IAA5G;AAA4G;;AAA5G;;IAAA;AAA4G;;AAA5G;;IAAA;;QAAA,oBAA4G;;QAA5G,qBAA4G;;QAA5G;IAA4G;AAAA;;AAA5G;;IAAA;;QAAA,oBAA4G;;QAA5G,qBAA4G;;QAA5G;IAA4G;AAAA;;AAI5G;;IAAA;AAAmB;;AAInB;;IAAA,kBAAyE;;IAAzE,SAAyE;;IAAzE,UAAyE;;IAAzE,QAAyE;;IAAzE,gBAAyE;;IAAzE,kBAAyE;;IAAzE,mDAAyE;;IAAzE,mBAAyE;;IAAzE,sBAAyE;;IAAzE,kBAAyE;;IAAzE,oBAAyE;;IAAzE;AAAyE;;AAIzE;;IAAA,kBAAwD;;IAAxD,SAAwD;;IAAxD,UAAwD;;IAAxD,WAAwD;;IAAxD,iBAAwD;;IAAxD,kBAAwD;;IAAxD,mBAAwD;;IAAxD;AAAwD;;AAIxD;;IAAA,YAAiC;;IAAjC,WAAiC;;IAAjC;AAAiC;;AAIjC;;IAAA,kBAA+B;;IAA/B;AAA+B","file":"style.module.css","sourcesContent":[".classList {\n @apply cursor-pointer lg:mx-3 md:mx-1 mx-1 lg:mb-5 md:mb-2 mb-2 hover:opacity-50 overflow-hidden text-center;\n}\n\n.rounded {\n @apply rounded-full;\n}\n\n.title {\n @apply absolute bg-black text-white py-2 mt-4 top-0 inset-x-0 text-center;\n}\n\n.button {\n @apply absolute mx-8 mb-4 bottom-0 inset-x-0 text-center;\n}\n\n.image {\n @apply object-cover w-full h-full;\n}\n\n.wrapper {\n @apply relative overflow-hidden;\n}"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as imageLinkProps } from '../ImageLink/ImageLink';
|
|
3
|
+
export interface Props {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
items?: imageLinkProps[];
|
|
7
|
+
}
|
|
8
|
+
declare const ImageLinkList: ({ id, className, items }: Props) => JSX.Element;
|
|
9
|
+
export default ImageLinkList;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ImageLink from '../ImageLink/ImageLink';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import style from './style.module.css';
|
|
5
|
+
const ImageLinkList = ({ id, className, items }) => {
|
|
6
|
+
const classList = classNames(className, style.classList);
|
|
7
|
+
return (React.createElement("div", { id: id, className: classList }, items === null || items === void 0 ? void 0 : items.map((item, i) => {
|
|
8
|
+
return (React.createElement(ImageLink, { key: `image_link_${i + 0}`, altText: item.altText, image: item.image, title: item.title }));
|
|
9
|
+
})));
|
|
10
|
+
};
|
|
11
|
+
export default ImageLinkList;
|
|
12
|
+
//# sourceMappingURL=ImageLinkList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageLinkList.js","sourceRoot":"","sources":["../../../../../src/lib/components/ImageLinkList/ImageLinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAsC,MAAM,wBAAwB,CAAA;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAOtC,MAAM,aAAa,GAAG,CAAC,EACrB,EAAE,EACF,SAAS,EACT,KAAK,EACC,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAExD,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,IAC9B,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAS,EAAE,EAAE;QAC9B,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,EAC1B,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.classList {
|
|
2
|
+
display: grid
|
|
3
|
+
}
|
|
4
|
+
@media (min-width: 640px) {
|
|
5
|
+
.classList {
|
|
6
|
+
grid-template-columns: repeat(2, minmax(0, 1fr))
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@media (min-width: 768px) {
|
|
10
|
+
.classList {
|
|
11
|
+
grid-template-columns: repeat(4, minmax(0, 1fr))
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/lib/components/ImageLinkList/style.module.css"],"names":[],"mappings":"AACI;IAAA;AAAyC;AAAzC;IAAA;QAAA;IAAyC;AAAA;AAAzC;IAAA;QAAA;IAAyC;AAAA","file":"style.module.css","sourcesContent":[".classList {\n @apply grid md:grid-cols-4 sm:grid-cols-2;\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as iconProps } from '../Icon/Icon';
|
|
3
|
+
export interface Props {
|
|
4
|
+
id: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
number: number;
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
withAnimation?: boolean;
|
|
11
|
+
iconProps?: iconProps;
|
|
12
|
+
theme?: 'dark' | 'light';
|
|
13
|
+
}
|
|
14
|
+
declare const InformationIcon: ({ id, className, text, number, bordered, rounded, withAnimation, iconProps, theme }: Props) => JSX.Element;
|
|
15
|
+
export default InformationIcon;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import Icon from '../Icon/Icon';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import style from './style.module.css';
|
|
5
|
+
const InformationIcon = ({ id, className, text, number, bordered = false, rounded = false, withAnimation = false, iconProps, theme = 'light' }) => {
|
|
6
|
+
const colours = theme === 'dark' ? [style.dark] : [style.light];
|
|
7
|
+
const loaded = useRef(false);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const element = document.getElementById(`${id}_number`);
|
|
10
|
+
const observer = new IntersectionObserver((entries, observer) => {
|
|
11
|
+
entries.forEach(entry => {
|
|
12
|
+
if (entry.intersectionRatio >= 0.1 && !loaded.current) {
|
|
13
|
+
loaded.current = true;
|
|
14
|
+
counterAnimation(document.getElementById(`${id}_number`), 0, number, 3000);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}, { threshold: 1 });
|
|
18
|
+
(element != null) && withAnimation && observer.observe(element);
|
|
19
|
+
}, []);
|
|
20
|
+
const classList = classNames({
|
|
21
|
+
border: bordered,
|
|
22
|
+
[style.rounded]: rounded
|
|
23
|
+
}, className, colours, style.classList);
|
|
24
|
+
const counterAnimation = (obj, start, end, duration) => {
|
|
25
|
+
let startTimestamp;
|
|
26
|
+
const step = (timestamp) => {
|
|
27
|
+
startTimestamp = timestamp;
|
|
28
|
+
const progress = Math.min((timestamp - startTimestamp) / duration, 1);
|
|
29
|
+
obj.innerHTML = Math.floor(progress * (end - start) + start);
|
|
30
|
+
if (progress < 1) {
|
|
31
|
+
window.requestAnimationFrame(step);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
window.requestAnimationFrame(step);
|
|
35
|
+
};
|
|
36
|
+
return (React.createElement("div", { id: id, className: style.wrapperClassList },
|
|
37
|
+
React.createElement("div", { className: classList },
|
|
38
|
+
(iconProps != null) &&
|
|
39
|
+
React.createElement(Icon, Object.assign({}, iconProps)),
|
|
40
|
+
number !== undefined &&
|
|
41
|
+
React.createElement("p", null, number),
|
|
42
|
+
React.createElement("p", null, text))));
|
|
43
|
+
};
|
|
44
|
+
export default InformationIcon;
|
|
45
|
+
//# sourceMappingURL=InformationIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InformationIcon.js","sourceRoot":"","sources":["../../../../../src/lib/components/InformationIcon/InformationIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,IAA4B,MAAM,uBAAuB,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AActC,MAAM,eAAe,GAAG,CAAC,EACvB,EAAE,EACF,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,aAAa,GAAG,KAAK,EACrB,SAAS,EACT,KAAK,GAAG,OAAO,EACT,EAAe,EAAE;IACvB,MAAM,OAAO,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,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