@lanaco/lnc-react-ui 4.0.32 → 4.0.34
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +2 -2
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +3 -3
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +2 -2
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +2 -2
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +111 -0
- package/dist/BlogsSectionDetailed.js +224 -0
- package/dist/BlogsSectionLarge.cjs +101 -0
- package/dist/BlogsSectionLarge.js +177 -0
- package/dist/BlogsSectionSimple.cjs +71 -0
- package/dist/BlogsSectionSimple.js +158 -0
- package/dist/BlogsSectionSimpleCentered.cjs +78 -0
- package/dist/BlogsSectionSimpleCentered.js +149 -0
- package/dist/BlogsSectionWithFilters.cjs +173 -0
- package/dist/BlogsSectionWithFilters.js +559 -0
- package/dist/BrandHitsSection.cjs +11 -7
- package/dist/BrandHitsSection.js +10 -6
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +240 -0
- package/dist/CustomLoanMapSection.js +410 -0
- package/dist/{CustomStyles-DuADCM-0.js → CustomStyles-BWOJ2IOk.js} +1 -1
- package/dist/{CustomStyles-CBON9fD-.cjs → CustomStyles-DyqGX2oY.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +5 -5
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +7 -7
- package/dist/FieldOfInterestsMasonrySection.js +24 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +11 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +62 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +37 -17
- package/dist/FieldOfInterestsWithTagsCardsSection.js +69 -49
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +198 -0
- package/dist/GeneralWithTagsCardsSection.js +287 -0
- package/dist/GiftCardsSection.cjs +11 -7
- package/dist/GiftCardsSection.js +34 -30
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +6 -6
- package/dist/MasonryGeneralCardsSection.js +38 -36
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +127 -0
- package/dist/OverlayGeneralCardsSection.js +183 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +4 -4
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuizSection.cjs +387 -0
- package/dist/QuizSection.js +697 -0
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +8 -8
- package/dist/ShopCardsSection.js +50 -50
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +81 -0
- package/dist/SimpleCategoriesSection.js +153 -0
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +4 -4
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +25 -25
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +3 -3
- package/dist/consts-C1uHV4xc.js +6 -0
- package/dist/consts-CtNoHdBj.cjs +1 -0
- package/dist/{index-jVpIwR2G.js → index-7XMd1kAv.js} +2 -2
- package/dist/{index-C2M7QHPq.cjs → index-B67WqHGh.cjs} +1 -1
- package/dist/{index-BlV3tdJ8.cjs → index-B6kVbS_M.cjs} +1 -1
- package/dist/{index-DcYg32le.js → index-CTJZaJ_S.js} +1 -1
- package/dist/{index-DGl-lSfF.js → index-HV_Ku4ub.js} +1 -1
- package/dist/{index-LdP7U1Yl.cjs → index-mIxT8eNX.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +51 -47
- package/dist/{style-C3OB0uad.cjs → style-BEUISPP7.cjs} +5 -5
- package/dist/{style-Ch-xOasu.js → style-BGQ1B_dp.js} +7 -8
- package/dist/{useDetectMobile-BookNOsk.js → useDetectMobile-BC6EGaBc.js} +1 -1
- package/dist/{useDetectMobile-rBe0FiP2.cjs → useDetectMobile-D6d5LpdL.cjs} +1 -1
- package/dist/{utils-CE6bljYe.cjs → utils-C0YSTwcn.cjs} +7 -7
- package/dist/{utils-DtEdJZWa.js → utils-CqvISfv9.js} +43 -36
- package/package.json +12 -1
- package/vite.config.js +40 -0
- package/dist/consts-DNVz1x1I.js +0 -4
- package/dist/consts-dNz9tpt4.cjs +0 -1
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T, useState as b, useRef as D, useEffect as q } from "react";
|
|
3
|
+
import { p as ee, l as B, q as re } from "./utils-CqvISfv9.js";
|
|
4
|
+
import R from "./Button.js";
|
|
5
|
+
import { n as Q } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
|
+
import { M as S, C as M, a as L } from "./consts-C1uHV4xc.js";
|
|
7
|
+
import F from "./Icon.js";
|
|
8
|
+
import te from "./ProgressBar.js";
|
|
9
|
+
const ae = Q.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
gap: 2rem;
|
|
15
|
+
flex: 1 0 0;
|
|
16
|
+
|
|
17
|
+
& .wrapper__content {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
|
|
21
|
+
& .wrapper__title {
|
|
22
|
+
color: var(--gray-950, #14161a);
|
|
23
|
+
font-size: 1.75rem;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
line-height: 2.25rem;
|
|
27
|
+
letter-spacing: -0.59px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& .wrapper__description {
|
|
31
|
+
color: var(--gray-950, #14161a);
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
line-height: 1.5rem;
|
|
36
|
+
letter-spacing: -0.18px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
& .wrapper__action {
|
|
41
|
+
background: var(--gray-950, #14161a);
|
|
42
|
+
font-size: 0.875rem;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
line-height: 1.25rem;
|
|
46
|
+
letter-spacing: -0.09px;
|
|
47
|
+
padding: 0.625rem 0.75rem;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
color: var(--white, #fff);
|
|
51
|
+
background: var(---gray-600, #676e79);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:focus {
|
|
55
|
+
outline: none;
|
|
56
|
+
background: var(--gray-950, #14161a);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: ${S + "px"}) {
|
|
61
|
+
& .wrapper__title {
|
|
62
|
+
font-size: 1.375rem;
|
|
63
|
+
line-height: 1.75rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
& .wrapper__description {
|
|
67
|
+
font-size: 0.875rem;
|
|
68
|
+
line-height: 1.25rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`, ie = Q.div`
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: flex-start;
|
|
75
|
+
gap: 1.5rem;
|
|
76
|
+
align-self: stretch;
|
|
77
|
+
|
|
78
|
+
& .wrapper__headline {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: flex-start;
|
|
81
|
+
justify-items: space-between;
|
|
82
|
+
gap: 32px;
|
|
83
|
+
width: 100%;
|
|
84
|
+
|
|
85
|
+
& .wrapper__question-no {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: flex-start;
|
|
90
|
+
gap: 0.75rem;
|
|
91
|
+
width: 100%;
|
|
92
|
+
|
|
93
|
+
& .question-no__text {
|
|
94
|
+
color: var(--gray-950, #14161a);
|
|
95
|
+
font-size: 1.375rem;
|
|
96
|
+
font-style: normal;
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
line-height: 1.75rem;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& .question-no__progress-bar {
|
|
102
|
+
height: 0.25rem;
|
|
103
|
+
& > div {
|
|
104
|
+
background: var(--yellow-600, #d97706);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& .wrapper__timer {
|
|
110
|
+
position: relative;
|
|
111
|
+
width: 3.75rem;
|
|
112
|
+
height: 3.75rem;
|
|
113
|
+
background-color: #f0f0f0;
|
|
114
|
+
border-radius: 50%;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
|
|
119
|
+
& .timer__display {
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 50%;
|
|
122
|
+
left: 50%;
|
|
123
|
+
transform: translate(-50%, -50%);
|
|
124
|
+
z-index: 10;
|
|
125
|
+
|
|
126
|
+
& .timer__text {
|
|
127
|
+
color: var(--red-600, #e11d48);
|
|
128
|
+
font-size: 0.75rem;
|
|
129
|
+
font-style: normal;
|
|
130
|
+
font-weight: 500;
|
|
131
|
+
line-height: 1rem;
|
|
132
|
+
letter-spacing: 0.5px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
& .wrapper__content {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
align-items: flex-start;
|
|
142
|
+
gap: 2.5rem;
|
|
143
|
+
width: 100%;
|
|
144
|
+
|
|
145
|
+
& .wrapper__item {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
align-items: flex-start;
|
|
149
|
+
gap: 1.25rem;
|
|
150
|
+
align-self: stretch;
|
|
151
|
+
|
|
152
|
+
& .wrapper__text {
|
|
153
|
+
color: var(--gray-950, #14161a);
|
|
154
|
+
font-size: 1rem;
|
|
155
|
+
font-style: normal;
|
|
156
|
+
font-weight: 600;
|
|
157
|
+
line-height: 1.5rem;
|
|
158
|
+
letter-spacing: 0.1px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
& .wrapper__answers {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: flex-start;
|
|
164
|
+
gap: 0.75rem;
|
|
165
|
+
align-self: stretch;
|
|
166
|
+
|
|
167
|
+
& .wrapper__answer {
|
|
168
|
+
display: flex;
|
|
169
|
+
padding: 1rem 0.75rem;
|
|
170
|
+
align-items: flex-start;
|
|
171
|
+
justify-content: space-between;
|
|
172
|
+
border-radius: 0.75rem;
|
|
173
|
+
border: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
|
|
174
|
+
color: var(--gray-950, #14161a);
|
|
175
|
+
font-size: 0.875rem;
|
|
176
|
+
font-style: normal;
|
|
177
|
+
font-weight: 500;
|
|
178
|
+
line-height: 1.25rem;
|
|
179
|
+
letter-spacing: -0.09px;
|
|
180
|
+
width: 100%;
|
|
181
|
+
|
|
182
|
+
&:hover {
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.active {
|
|
187
|
+
border: 2px solid var(--yellow-600, #d97706);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
& .wrapper__icon {
|
|
191
|
+
color: var(--yellow-600, #d97706);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
& .wrapper__actions {
|
|
198
|
+
display: flex;
|
|
199
|
+
justify-content: flex-end;
|
|
200
|
+
gap: 0.5rem;
|
|
201
|
+
align-items: center;
|
|
202
|
+
align-self: stretch;
|
|
203
|
+
width: 100%;
|
|
204
|
+
font-size: 0.875rem;
|
|
205
|
+
font-style: normal;
|
|
206
|
+
font-weight: 500;
|
|
207
|
+
line-height: 1.25rem;
|
|
208
|
+
letter-spacing: -0.09px;
|
|
209
|
+
|
|
210
|
+
& .wrapper__action {
|
|
211
|
+
padding: 0.625rem 0.75rem;
|
|
212
|
+
font-size: 0.875rem;
|
|
213
|
+
font-style: normal;
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
line-height: 1.25rem;
|
|
216
|
+
letter-spacing: -0.09px;
|
|
217
|
+
min-width: 5rem;
|
|
218
|
+
|
|
219
|
+
&.action__give-up {
|
|
220
|
+
background: transparent;
|
|
221
|
+
color: var(--gray-950, #14161a);
|
|
222
|
+
|
|
223
|
+
&:hover {
|
|
224
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:focus {
|
|
228
|
+
outline: none;
|
|
229
|
+
background: transparent;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&.action__next {
|
|
234
|
+
background: var(--gray-950, #14161a);
|
|
235
|
+
|
|
236
|
+
&:hover {
|
|
237
|
+
background: var(---gray-600, #676e79);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&:focus {
|
|
241
|
+
outline: none;
|
|
242
|
+
background: var(--gray-950, #14161a);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&:disabled {
|
|
246
|
+
color: var(--white, #fff);
|
|
247
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@media (max-width: ${S + "px"}) {
|
|
255
|
+
& .wrapper__content {
|
|
256
|
+
& .wrapper__item {
|
|
257
|
+
& .wrapper__answers {
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
`, ne = Q.div`
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-direction: column;
|
|
266
|
+
align-items: flex-start;
|
|
267
|
+
gap: 1.5rem;
|
|
268
|
+
|
|
269
|
+
& .wrapper__content {
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
align-items: center;
|
|
273
|
+
gap: 1rem;
|
|
274
|
+
align-self: stretch;
|
|
275
|
+
|
|
276
|
+
& .wrapper__info {
|
|
277
|
+
display: flex;
|
|
278
|
+
flex-direction: column;
|
|
279
|
+
align-items: flex-start;
|
|
280
|
+
gap: 0.25rem;
|
|
281
|
+
align-self: stretch;
|
|
282
|
+
color: var(--gray-950, #14161a);
|
|
283
|
+
|
|
284
|
+
align-items: center;
|
|
285
|
+
|
|
286
|
+
& .wrapper__title {
|
|
287
|
+
font-size: 1.75rem;
|
|
288
|
+
font-style: normal;
|
|
289
|
+
font-weight: 600;
|
|
290
|
+
line-height: 2.25rem;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
& .wrapper__description {
|
|
294
|
+
font-size: 1rem;
|
|
295
|
+
font-style: normal;
|
|
296
|
+
font-weight: 400;
|
|
297
|
+
line-height: 1.5rem;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
& .wrapper__actions {
|
|
303
|
+
display: flex;
|
|
304
|
+
flex-direction: column;
|
|
305
|
+
align-items: center;
|
|
306
|
+
gap: 0.5rem;
|
|
307
|
+
width: 100%;
|
|
308
|
+
font-size: 0.875rem;
|
|
309
|
+
font-style: normal;
|
|
310
|
+
font-weight: 500;
|
|
311
|
+
line-height: 1.25rem;
|
|
312
|
+
letter-spacing: -0.09px;
|
|
313
|
+
|
|
314
|
+
& .wrapper__action {
|
|
315
|
+
padding: 0.625rem 0.75rem;
|
|
316
|
+
font-size: 0.875rem;
|
|
317
|
+
font-style: normal;
|
|
318
|
+
font-weight: 500;
|
|
319
|
+
line-height: 1.25rem;
|
|
320
|
+
letter-spacing: -0.09px;
|
|
321
|
+
min-width: 22rem;
|
|
322
|
+
width: 100%;
|
|
323
|
+
|
|
324
|
+
&.action__end-quiz {
|
|
325
|
+
background: transparent;
|
|
326
|
+
color: var(--gray-950, #14161a);
|
|
327
|
+
|
|
328
|
+
&:hover {
|
|
329
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&:focus {
|
|
333
|
+
outline: none;
|
|
334
|
+
background: transparent;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
&.action__continue {
|
|
339
|
+
background: var(--gray-950, #14161a);
|
|
340
|
+
|
|
341
|
+
&:hover {
|
|
342
|
+
background: var(---gray-600, #676e79);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&:focus {
|
|
346
|
+
outline: none;
|
|
347
|
+
background: var(--gray-950, #14161a);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@media (max-width: ${S + "px"}) {
|
|
354
|
+
width: 100%;
|
|
355
|
+
|
|
356
|
+
& .wrapper__actions {
|
|
357
|
+
& .wrapper__action {
|
|
358
|
+
width: 100%;
|
|
359
|
+
min-width: 100%;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
`, le = T(
|
|
364
|
+
({
|
|
365
|
+
title: s,
|
|
366
|
+
description: c,
|
|
367
|
+
startQuizText: d = "Start quiz",
|
|
368
|
+
onStartQuiz: _ = () => {
|
|
369
|
+
}
|
|
370
|
+
}, o) => /* @__PURE__ */ a(ae, { children: [
|
|
371
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
372
|
+
/* @__PURE__ */ e("div", { className: "wrapper__title", children: s }),
|
|
373
|
+
/* @__PURE__ */ e("div", { className: "wrapper__description", children: c })
|
|
374
|
+
] }),
|
|
375
|
+
/* @__PURE__ */ e(
|
|
376
|
+
R,
|
|
377
|
+
{
|
|
378
|
+
text: d,
|
|
379
|
+
size: "medium",
|
|
380
|
+
className: "wrapper__action",
|
|
381
|
+
onClick: _
|
|
382
|
+
}
|
|
383
|
+
)
|
|
384
|
+
] })
|
|
385
|
+
), ce = T(
|
|
386
|
+
({
|
|
387
|
+
questionNoText: s,
|
|
388
|
+
questionNo: c,
|
|
389
|
+
totalQuestions: d,
|
|
390
|
+
text: _,
|
|
391
|
+
answers: o,
|
|
392
|
+
selectedAnswer: m,
|
|
393
|
+
secondsPerQuestion: r,
|
|
394
|
+
nextText: E = "Next",
|
|
395
|
+
giveUpText: C = "Give up",
|
|
396
|
+
nextDisabled: U = !0,
|
|
397
|
+
onSelectAnswer: Z = () => {
|
|
398
|
+
},
|
|
399
|
+
onGiveUp: $ = () => {
|
|
400
|
+
},
|
|
401
|
+
onNext: W = () => {
|
|
402
|
+
}
|
|
403
|
+
}, O) => {
|
|
404
|
+
const [f, k] = b(r), [h, I] = b(!0), u = D(null);
|
|
405
|
+
q(() => (h && f > 0 && (u.current = setInterval(() => {
|
|
406
|
+
k((i) => i > 0 ? i - 1 : 0);
|
|
407
|
+
}, 1e3)), () => clearInterval(u.current)), [h, f]);
|
|
408
|
+
const z = f > 0 ? f / r * L : 0, w = (i) => (m == null ? void 0 : m.uuid) === i;
|
|
409
|
+
return /* @__PURE__ */ a(ie, { children: [
|
|
410
|
+
/* @__PURE__ */ a("div", { className: "wrapper__headline", children: [
|
|
411
|
+
/* @__PURE__ */ a("div", { className: "wrapper__question-no", children: [
|
|
412
|
+
/* @__PURE__ */ e("div", { className: "question-no__text", children: `${s} ${c} / ${d}` }),
|
|
413
|
+
/* @__PURE__ */ e(
|
|
414
|
+
te,
|
|
415
|
+
{
|
|
416
|
+
progressPercentage: c / d * 100,
|
|
417
|
+
className: "question-no__progress-bar"
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
] }),
|
|
421
|
+
/* @__PURE__ */ a("div", { className: "wrapper__timer", children: [
|
|
422
|
+
/* @__PURE__ */ a("svg", { className: "timer__ring", width: "60", height: "60", children: [
|
|
423
|
+
/* @__PURE__ */ e(
|
|
424
|
+
"circle",
|
|
425
|
+
{
|
|
426
|
+
className: "ring__progres-background",
|
|
427
|
+
cx: "30",
|
|
428
|
+
cy: "30",
|
|
429
|
+
r: M,
|
|
430
|
+
stroke: "#e0e0e0",
|
|
431
|
+
strokeWidth: "4",
|
|
432
|
+
fill: "transparent"
|
|
433
|
+
}
|
|
434
|
+
),
|
|
435
|
+
/* @__PURE__ */ e(
|
|
436
|
+
"circle",
|
|
437
|
+
{
|
|
438
|
+
className: "ring__progres",
|
|
439
|
+
cx: "30",
|
|
440
|
+
cy: "30",
|
|
441
|
+
r: M,
|
|
442
|
+
stroke: "#d97706",
|
|
443
|
+
strokeWidth: "4",
|
|
444
|
+
fill: "transparent",
|
|
445
|
+
strokeLinecap: "round",
|
|
446
|
+
transform: "rotate(-90 30 30)",
|
|
447
|
+
strokeDasharray: L,
|
|
448
|
+
strokeDashoffset: L - z
|
|
449
|
+
}
|
|
450
|
+
)
|
|
451
|
+
] }),
|
|
452
|
+
/* @__PURE__ */ e("div", { className: "timer__display", children: /* @__PURE__ */ e("span", { className: "timer__text", children: ee(f) }) })
|
|
453
|
+
] })
|
|
454
|
+
] }),
|
|
455
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
456
|
+
/* @__PURE__ */ a("div", { className: "wrapper__item", children: [
|
|
457
|
+
/* @__PURE__ */ e("div", { className: "wrapper__text", children: _ }),
|
|
458
|
+
/* @__PURE__ */ e("div", { className: "wrapper__answers", children: o && (o == null ? void 0 : o.map((i, x) => /* @__PURE__ */ a(
|
|
459
|
+
"div",
|
|
460
|
+
{
|
|
461
|
+
className: `wrapper__answer ${w(i == null ? void 0 : i.uuid) ? "active" : ""}`,
|
|
462
|
+
onClick: () => Z(i),
|
|
463
|
+
children: [
|
|
464
|
+
`${String.fromCharCode(65 + x)}: ${i == null ? void 0 : i.label}`,
|
|
465
|
+
w(i == null ? void 0 : i.uuid) && /* @__PURE__ */ e(
|
|
466
|
+
F,
|
|
467
|
+
{
|
|
468
|
+
icon: " mng-lnc-checkmark--filled",
|
|
469
|
+
sizeInUnits: "1.25rem",
|
|
470
|
+
className: "wrapper__icon"
|
|
471
|
+
}
|
|
472
|
+
)
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
`quiz-answer__${x + 1}`
|
|
476
|
+
))) })
|
|
477
|
+
] }),
|
|
478
|
+
/* @__PURE__ */ a("div", { className: "wrapper__actions", children: [
|
|
479
|
+
/* @__PURE__ */ e(
|
|
480
|
+
R,
|
|
481
|
+
{
|
|
482
|
+
text: C,
|
|
483
|
+
borderRadius: "curved",
|
|
484
|
+
size: "medium",
|
|
485
|
+
className: "wrapper__action action__give-up",
|
|
486
|
+
onClick: $
|
|
487
|
+
}
|
|
488
|
+
),
|
|
489
|
+
/* @__PURE__ */ e(
|
|
490
|
+
R,
|
|
491
|
+
{
|
|
492
|
+
text: E,
|
|
493
|
+
borderRadius: "curved",
|
|
494
|
+
size: "medium",
|
|
495
|
+
className: "wrapper__action action__next",
|
|
496
|
+
disabled: U,
|
|
497
|
+
onClick: W
|
|
498
|
+
}
|
|
499
|
+
)
|
|
500
|
+
] })
|
|
501
|
+
] })
|
|
502
|
+
] });
|
|
503
|
+
}
|
|
504
|
+
), oe = T(
|
|
505
|
+
({
|
|
506
|
+
title: s,
|
|
507
|
+
description: c,
|
|
508
|
+
continueText: d = "Continue",
|
|
509
|
+
endQuizText: _ = "End quiz",
|
|
510
|
+
onContinue: o = () => {
|
|
511
|
+
},
|
|
512
|
+
onEndQuiz: m = () => {
|
|
513
|
+
}
|
|
514
|
+
}, r) => /* @__PURE__ */ a(ne, { children: [
|
|
515
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
516
|
+
/* @__PURE__ */ e(
|
|
517
|
+
F,
|
|
518
|
+
{
|
|
519
|
+
icon: " mng-lnc-checkmark--outline",
|
|
520
|
+
color: "success",
|
|
521
|
+
sizeInUnits: "4rem",
|
|
522
|
+
className: "wrapper__icon"
|
|
523
|
+
}
|
|
524
|
+
),
|
|
525
|
+
/* @__PURE__ */ a("div", { className: "wrapper__info", children: [
|
|
526
|
+
s && /* @__PURE__ */ e("div", { className: "wrapper__title", children: s }),
|
|
527
|
+
c && /* @__PURE__ */ e("div", { className: "wrapper__description", children: c })
|
|
528
|
+
] })
|
|
529
|
+
] }),
|
|
530
|
+
/* @__PURE__ */ a("div", { className: "wrapper__actions", children: [
|
|
531
|
+
/* @__PURE__ */ e(
|
|
532
|
+
R,
|
|
533
|
+
{
|
|
534
|
+
text: d,
|
|
535
|
+
borderRadius: "curved",
|
|
536
|
+
size: "medium",
|
|
537
|
+
className: "wrapper__action action__continue",
|
|
538
|
+
onClick: o
|
|
539
|
+
}
|
|
540
|
+
),
|
|
541
|
+
/* @__PURE__ */ e(
|
|
542
|
+
R,
|
|
543
|
+
{
|
|
544
|
+
text: _,
|
|
545
|
+
borderRadius: "curved",
|
|
546
|
+
size: "medium",
|
|
547
|
+
className: "wrapper__action action__end-quiz",
|
|
548
|
+
onClick: m
|
|
549
|
+
}
|
|
550
|
+
)
|
|
551
|
+
] })
|
|
552
|
+
] })
|
|
553
|
+
), l = {
|
|
554
|
+
START_QUIZ: 0,
|
|
555
|
+
QUIZ: 1,
|
|
556
|
+
CORRECT_ANSWER: 2
|
|
557
|
+
}, pe = Q.div`
|
|
558
|
+
display: flex;
|
|
559
|
+
width: 100%;
|
|
560
|
+
align-items: center;
|
|
561
|
+
gap: 2rem;
|
|
562
|
+
|
|
563
|
+
& .wrapper__outlet {
|
|
564
|
+
display: flex;
|
|
565
|
+
padding: 2rem 3rem;
|
|
566
|
+
flex-direction: column;
|
|
567
|
+
justify-content: center;
|
|
568
|
+
align-items: center;
|
|
569
|
+
width: 100%;
|
|
570
|
+
align-self: stretch;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
& .wrapper__image {
|
|
574
|
+
width: 100%;
|
|
575
|
+
height: auto;
|
|
576
|
+
aspect-ratio: 1 / 1;
|
|
577
|
+
max-width: 22.5rem;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
@media (max-width: ${S + "px"}) {
|
|
581
|
+
& .wrapper__outlet {
|
|
582
|
+
padding: 0;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
& .wrapper__image {
|
|
586
|
+
display: none;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`, we = T(
|
|
590
|
+
({
|
|
591
|
+
welcomeTitle: s,
|
|
592
|
+
welcomeDescription: c,
|
|
593
|
+
endTitle: d,
|
|
594
|
+
endDescription: _,
|
|
595
|
+
image: o,
|
|
596
|
+
imageComponent: m,
|
|
597
|
+
questions: r,
|
|
598
|
+
secondsPerQuestion: E,
|
|
599
|
+
numOfCredits: C,
|
|
600
|
+
startQuizText: U = "Start quiz",
|
|
601
|
+
nextText: Z = "Next",
|
|
602
|
+
giveUpText: $ = "Give up",
|
|
603
|
+
questionNoText: W = "Question",
|
|
604
|
+
continueText: O = "Continue",
|
|
605
|
+
endQuizText: f = "End quiz",
|
|
606
|
+
onStartQuiz: k = () => {
|
|
607
|
+
},
|
|
608
|
+
onSelectAnswer: h = () => {
|
|
609
|
+
},
|
|
610
|
+
onGiveUp: I = () => {
|
|
611
|
+
},
|
|
612
|
+
onNext: u = () => {
|
|
613
|
+
},
|
|
614
|
+
onContinue: z = () => {
|
|
615
|
+
},
|
|
616
|
+
onEndQuiz: w = () => {
|
|
617
|
+
}
|
|
618
|
+
}, i) => {
|
|
619
|
+
const [x, g] = b(l.START_QUIZ), [p, v] = b(1), [t, j] = b(null), [y, N] = b(null), P = D([]), X = D(0), G = () => {
|
|
620
|
+
g(l.QUIZ), j(
|
|
621
|
+
r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.questionNo) === p)
|
|
622
|
+
), k == null || k();
|
|
623
|
+
}, H = (n) => {
|
|
624
|
+
N(n), h == null || h();
|
|
625
|
+
}, J = () => {
|
|
626
|
+
g(l.START_QUIZ), v(1), N(null), I == null || I();
|
|
627
|
+
}, K = () => {
|
|
628
|
+
let n = (y == null ? void 0 : y.uuid) === (t == null ? void 0 : t.correctAnswer);
|
|
629
|
+
n ? (g(l.CORRECT_ANSWER), X.current += C || (t == null ? void 0 : t.numOfCredits)) : p === (r == null ? void 0 : r.length) ? (g(l.START_QUIZ), v(1), N(null)) : (v(p + 1), j(
|
|
630
|
+
r == null ? void 0 : r.find((A) => (A == null ? void 0 : A.questionNo) === p + 1)
|
|
631
|
+
), N(null)), P.current = [
|
|
632
|
+
...P.current,
|
|
633
|
+
{
|
|
634
|
+
question: t,
|
|
635
|
+
selectedAnswer: y,
|
|
636
|
+
isCorrect: n
|
|
637
|
+
}
|
|
638
|
+
], u == null || u();
|
|
639
|
+
}, V = () => {
|
|
640
|
+
p === (r == null ? void 0 : r.length) ? (g(l.START_QUIZ), v(1)) : (g(l.QUIZ), v(p + 1), j(
|
|
641
|
+
r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.questionNo) === p + 1)
|
|
642
|
+
)), N(null), z == null || z();
|
|
643
|
+
}, Y = () => {
|
|
644
|
+
g(l.START_QUIZ), v(1), N(null), w == null || w();
|
|
645
|
+
};
|
|
646
|
+
return /* @__PURE__ */ a(pe, { children: [
|
|
647
|
+
/* @__PURE__ */ a("div", { className: "wrapper__outlet", children: [
|
|
648
|
+
x === l.START_QUIZ && /* @__PURE__ */ e(
|
|
649
|
+
le,
|
|
650
|
+
{
|
|
651
|
+
title: s,
|
|
652
|
+
description: c,
|
|
653
|
+
startQuizText: U,
|
|
654
|
+
onStartQuiz: G
|
|
655
|
+
}
|
|
656
|
+
),
|
|
657
|
+
x === l.QUIZ && t && /* @__PURE__ */ e(
|
|
658
|
+
ce,
|
|
659
|
+
{
|
|
660
|
+
questionNoText: W,
|
|
661
|
+
questionNo: p,
|
|
662
|
+
totalQuestions: (r == null ? void 0 : r.length) || 0,
|
|
663
|
+
text: t == null ? void 0 : t.text,
|
|
664
|
+
answers: t == null ? void 0 : t.answers,
|
|
665
|
+
secondsPerQuestion: E || (t == null ? void 0 : t.secondsPerQuestion),
|
|
666
|
+
selectedAnswer: y,
|
|
667
|
+
nextText: Z,
|
|
668
|
+
giveUpText: $,
|
|
669
|
+
nextDisabled: !B(y),
|
|
670
|
+
onSelectAnswer: H,
|
|
671
|
+
onGiveUp: J,
|
|
672
|
+
onNext: K
|
|
673
|
+
},
|
|
674
|
+
`quiz-question__${p}`
|
|
675
|
+
),
|
|
676
|
+
x === l.CORRECT_ANSWER && /* @__PURE__ */ e(
|
|
677
|
+
oe,
|
|
678
|
+
{
|
|
679
|
+
title: d,
|
|
680
|
+
description: re(
|
|
681
|
+
_,
|
|
682
|
+
C || (t == null ? void 0 : t.numOfCredits)
|
|
683
|
+
),
|
|
684
|
+
continueText: O,
|
|
685
|
+
endQuizText: f,
|
|
686
|
+
onContinue: V,
|
|
687
|
+
onEndQuiz: Y
|
|
688
|
+
}
|
|
689
|
+
)
|
|
690
|
+
] }),
|
|
691
|
+
B(m) ? m : /* @__PURE__ */ e("img", { src: o, className: "wrapper__image" })
|
|
692
|
+
] });
|
|
693
|
+
}
|
|
694
|
+
);
|
|
695
|
+
export {
|
|
696
|
+
we as default
|
|
697
|
+
};
|
package/dist/RadioInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BPVoEhTF.cjs"),o=require("./utils-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BPVoEhTF.cjs"),o=require("./utils-C0YSTwcn.cjs"),O=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.newStyled.label`
|
|
2
2
|
min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
|
|
3
3
|
max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
|
|
4
4
|
width: 100%;
|
package/dist/RadioInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as b, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as P, useState as j } from "react";
|
|
3
3
|
import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
4
|
import { P as i } from "./index-S5Cd7WrG.js";
|
|
5
|
-
import { d as f, g as N, e as T, a as t } from "./utils-
|
|
5
|
+
import { d as f, g as N, e as T, a as t } from "./utils-CqvISfv9.js";
|
|
6
6
|
import { u as F } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
8
8
|
min-height: ${(e) => f(e.theme, e.size)};
|
package/dist/RangeSlider.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./index-BPVoEhTF.cjs"),o=require("react"),a=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./index-BPVoEhTF.cjs"),o=require("react"),a=require("./utils-C0YSTwcn.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),F=require("./useUpdateEffect-BtMgpgIV.cjs"),L=({theme:e,size:i})=>{var c=a.getSizeValueWithUnits(e,i);return`
|
|
2
2
|
min-height: ${c};
|
|
3
3
|
max-height: ${c};
|
|
4
4
|
`},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},W=y.newStyled.div`
|