@lanaco/lnc-react-ui 4.0.205 → 4.0.207
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/BREAKPOINTS.md +148 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +6 -6
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +8 -8
- package/dist/ActionsToolbar.cjs +15 -4
- package/dist/ActionsToolbar.js +58 -46
- package/dist/AdBannerSection.cjs +4 -4
- package/dist/AdBannerSection.js +5 -5
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +12 -12
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +5 -5
- package/dist/BannerNextSection.cjs +2 -2
- package/dist/BannerNextSection.js +13 -13
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +22 -22
- package/dist/BannerSectionCarousel.cjs +27 -6
- package/dist/BannerSectionCarousel.js +71 -50
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +13 -13
- package/dist/BannerSectionSimple.cjs +15 -15
- package/dist/BannerSectionSimple.js +40 -40
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +20 -20
- package/dist/BannerSectionWithListImage.cjs +6 -9
- package/dist/BannerSectionWithListImage.js +17 -20
- package/dist/BlogCardsSponsoredSection.cjs +7 -5
- package/dist/BlogCardsSponsoredSection.js +32 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +60 -60
- package/dist/BlogImagePathSection.cjs +3 -14
- package/dist/BlogImagePathSection.js +27 -39
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +32 -32
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +12 -12
- package/dist/BlogsSectionDetailed.cjs +14 -6
- package/dist/BlogsSectionDetailed.js +53 -45
- package/dist/BlogsSectionLarge.cjs +13 -5
- package/dist/BlogsSectionLarge.js +48 -40
- package/dist/BlogsSectionSimple.cjs +14 -9
- package/dist/BlogsSectionSimple.js +43 -38
- package/dist/BlogsSectionSimpleCentered.cjs +17 -8
- package/dist/BlogsSectionSimpleCentered.js +68 -59
- package/dist/BlogsSectionWithFilters.cjs +16 -11
- package/dist/BlogsSectionWithFilters.js +43 -38
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +13 -13
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +16 -16
- 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/CalorieCalculatorSection.cjs +15 -15
- package/dist/CalorieCalculatorSection.js +84 -84
- package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
- package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
- 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 +14 -14
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +5 -5
- package/dist/ContactSection.cjs +4 -4
- package/dist/ContactSection.js +72 -72
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +67 -67
- package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
- package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
- package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
- package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
- package/dist/DateInput.cjs +6 -6
- package/dist/DateInput.js +646 -645
- 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/DetailedProductsInfinitiveSection.cjs +10 -4
- package/dist/DetailedProductsInfinitiveSection.js +71 -65
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +55 -51
- 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 +13 -13
- 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 +7 -7
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +8 -8
- package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
- package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +52 -52
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +15 -15
- package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
- package/dist/FieldOfInterestsMasonrySection.js +107 -117
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
- package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.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 +14 -8
- package/dist/GeneralWithTagsCardsSection.js +31 -25
- package/dist/GiftCardsSection.cjs +15 -7
- package/dist/GiftCardsSection.js +44 -36
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +4 -4
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +4 -4
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
- package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.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 +5 -5
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +9 -9
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +3 -3
- package/dist/LoanCalculatorSection.js +17 -17
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +13 -6
- package/dist/LocationSearchSection.js +34 -27
- package/dist/MasonryGeneralCardsSection.cjs +13 -9
- package/dist/MasonryGeneralCardsSection.js +34 -30
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +14 -14
- package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
- package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +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/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
- package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +7 -7
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +5 -5
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +8 -8
- package/dist/OverlayGeneralCardsSection.cjs +19 -31
- package/dist/OverlayGeneralCardsSection.js +51 -63
- package/dist/PartnerBannerSection.cjs +2 -2
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +2 -2
- package/dist/PartnerBrandsSection.js +24 -17
- package/dist/PartnerCardsSection.cjs +3 -3
- package/dist/PartnerCardsSection.js +18 -18
- package/dist/PartnerStatsSection.cjs +2 -2
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +19 -19
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -10
- package/dist/ProductsWithBannerSection.js +79 -69
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +5 -5
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +19 -17
- package/dist/QuizSection.cjs +9 -9
- package/dist/QuizSection.js +56 -56
- 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/ReviewsSection.cjs +24 -16
- package/dist/ReviewsSection.js +56 -48
- package/dist/SalesCampaignsSection.cjs +25 -21
- package/dist/SalesCampaignsSection.js +248 -241
- package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
- package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/SeparatorSection.cjs +3 -3
- package/dist/SeparatorSection.js +4 -4
- package/dist/ShopCardsSection.cjs +11 -5
- package/dist/ShopCardsSection.js +40 -34
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +9 -5
- package/dist/SimpleCategoriesSection.js +61 -57
- package/dist/SimpleProductsSection.cjs +44 -11
- package/dist/SimpleProductsSection.js +100 -67
- package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
- package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +3 -3
- package/dist/StatsSection.js +11 -11
- package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
- package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +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 +54 -49
- package/dist/Table.js +417 -401
- package/dist/TableView.cjs +10 -2
- package/dist/TableView.js +84 -75
- 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 +4 -4
- package/dist/ThemeProvider.js +11 -10
- 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/ToggleSection.cjs +7 -7
- package/dist/ToggleSection.js +38 -38
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
- package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +7 -7
- package/dist/UrgentSaleProductsSection.cjs +10 -4
- package/dist/UrgentSaleProductsSection.js +67 -61
- package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
- package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
- package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
- package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
- package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
- package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
- package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
- package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
- package/dist/breakpoints-CcVm-gVm.cjs +1 -0
- package/dist/breakpoints-ff0SIcV3.js +91 -0
- package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
- package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
- package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
- package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
- package/dist/index-B_ilx3wM.cjs +16 -0
- package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
- package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
- package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
- package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
- package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
- package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
- package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
- package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
- package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
- package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
- package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
- package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
- package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
- package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
- package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
- package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
- package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
- package/dist/index.cjs +1 -1
- package/dist/index.js +213 -194
- package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
- package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
- package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
- package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
- package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
- package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
- package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
- package/dist/theme-Q3WOGKWQ.cjs +1 -0
- package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
- package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
- package/dist/utils-B2fsQ6PS.js +334 -0
- package/dist/utils-CITgSxXe.cjs +51 -0
- package/package.json +1 -1
- package/dist/consts-BuFChS64.js +0 -7
- package/dist/consts-goSZX3xP.cjs +0 -1
- package/dist/index-D-3I_Ppj.cjs +0 -16
- package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
- package/dist/utils-RnrgDDZP.cjs +0 -51
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { t as _,
|
|
4
|
-
import { s as
|
|
5
|
-
import {
|
|
2
|
+
import { forwardRef as p, memo as u, useMemo as h } from "react";
|
|
3
|
+
import { t as _, n as b, l as w } from "./utils-B2fsQ6PS.js";
|
|
4
|
+
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { d as m } from "./breakpoints-ff0SIcV3.js";
|
|
6
6
|
import { u as y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
import { q as v } from "./styled-components.browser.esm-D-n22PJk.js";
|
|
8
|
-
import { S as q } from "./index-
|
|
9
|
-
const k =
|
|
8
|
+
import { S as q } from "./index-BWeXujWl.js";
|
|
9
|
+
const k = g.div`
|
|
10
10
|
position: absolute;
|
|
11
11
|
top: 0;
|
|
12
12
|
left: 0;
|
|
@@ -49,7 +49,7 @@ const k = p.div`
|
|
|
49
49
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
|
|
50
50
|
border-radius: 0.75rem;
|
|
51
51
|
z-index: 2;
|
|
52
|
-
`,
|
|
52
|
+
`, z = g.a`
|
|
53
53
|
text-decoration: none;
|
|
54
54
|
color: var(--gray-950);
|
|
55
55
|
cursor: pointer;
|
|
@@ -101,7 +101,7 @@ const k = p.div`
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
@media
|
|
104
|
+
@media ${m("S")} {
|
|
105
105
|
width: 100%;
|
|
106
106
|
|
|
107
107
|
img {
|
|
@@ -118,7 +118,7 @@ const k = p.div`
|
|
|
118
118
|
display: block;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`, N = p(
|
|
122
122
|
({
|
|
123
123
|
title: o,
|
|
124
124
|
description: e,
|
|
@@ -130,7 +130,7 @@ const k = p.div`
|
|
|
130
130
|
}, l) => {
|
|
131
131
|
const { theme: i } = y();
|
|
132
132
|
return /* @__PURE__ */ c(
|
|
133
|
-
|
|
133
|
+
z,
|
|
134
134
|
{
|
|
135
135
|
ref: l,
|
|
136
136
|
theme: i,
|
|
@@ -151,7 +151,7 @@ const k = p.div`
|
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
),
|
|
154
|
+
), $ = v.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
flex-direction: column;
|
|
157
157
|
align-items: flex-start;
|
|
@@ -197,21 +197,23 @@ const k = p.div`
|
|
|
197
197
|
width: 100%;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
@media
|
|
200
|
+
@media ${m("S")} {
|
|
201
201
|
gap: 1.25rem;
|
|
202
|
+
}
|
|
202
203
|
|
|
204
|
+
@media ${m("XS")} {
|
|
203
205
|
& .wrapper__cards {
|
|
204
206
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
205
207
|
gap: 1rem;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
|
-
`,
|
|
210
|
+
`, x = u(N), I = p(
|
|
209
211
|
({ title: o, items: e, isLoading: d = !1, onSelectCard: a = () => {
|
|
210
212
|
}, LinkComponent: n }, s) => {
|
|
211
|
-
const l =
|
|
213
|
+
const l = h(() => {
|
|
212
214
|
var i;
|
|
213
215
|
return (i = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : i.map((r, f) => /* @__PURE__ */ t(
|
|
214
|
-
|
|
216
|
+
x,
|
|
215
217
|
{
|
|
216
218
|
title: r == null ? void 0 : r.title,
|
|
217
219
|
description: r == null ? void 0 : r.description,
|
|
@@ -223,7 +225,7 @@ const k = p.div`
|
|
|
223
225
|
`quattro-card__${f + 1}`
|
|
224
226
|
));
|
|
225
227
|
}, [e]);
|
|
226
|
-
return /* @__PURE__ */ c(
|
|
228
|
+
return /* @__PURE__ */ c($, { ref: s, children: [
|
|
227
229
|
/* @__PURE__ */ t("div", { className: "wrapper__heading", children: /* @__PURE__ */ t("div", { className: "wrapper__title", children: w(o) && /* @__PURE__ */ t("div", { className: "title__text", children: /* @__PURE__ */ t("span", { children: o }) }) }) }),
|
|
228
230
|
/* @__PURE__ */ t(
|
|
229
231
|
q,
|
|
@@ -237,5 +239,5 @@ const k = p.div`
|
|
|
237
239
|
}
|
|
238
240
|
);
|
|
239
241
|
export {
|
|
240
|
-
|
|
242
|
+
I as default
|
|
241
243
|
};
|
package/dist/QuizSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-CITgSxXe.cjs"),R=require("./Button.cjs"),Q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./breakpoints-CcVm-gVm.cjs"),P=require("./Icon.cjs"),Y=require("./ProgressBar.cjs"),q=Q.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
justify-content: center;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@media
|
|
52
|
+
@media ${I.down("S")} {
|
|
53
53
|
& .wrapper__title {
|
|
54
54
|
font-size: 1.375rem;
|
|
55
55
|
line-height: 1.75rem;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
line-height: 1.25rem;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
63
|
+
`,ee=Q.styled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
align-items: flex-start;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
@media
|
|
253
|
+
@media ${I.down("S")} {
|
|
254
254
|
& .wrapper__content {
|
|
255
255
|
& .wrapper__item {
|
|
256
256
|
& .wrapper__answers {
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
`,
|
|
262
|
+
`,re=Q.styled.div`
|
|
263
263
|
display: flex;
|
|
264
264
|
flex-direction: column;
|
|
265
265
|
align-items: flex-start;
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
@media
|
|
352
|
+
@media ${I.down("S")} {
|
|
353
353
|
width: 100%;
|
|
354
354
|
|
|
355
355
|
& .wrapper__actions {
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
`,
|
|
362
|
+
`,te=i.forwardRef(({title:g,description:c,startQuizText:f="Start quiz",onStartQuiz:h=()=>{}},o)=>e.jsxs(q,{ref:o,children:[e.jsxs("div",{className:"wrapper__content",children:[e.jsx("div",{className:"wrapper__title",children:g}),e.jsx("div",{className:"wrapper__description",children:c})]}),e.jsx(R,{text:f,size:"medium",className:"wrapper__action",onClick:h})]})),B=26,O=2*Math.PI*B,ae=i.forwardRef(({questionNoText:g,questionNo:c,totalQuestions:f,text:h,options:o,correctAnswerIndex:n,selectedAnswer:r,secondsPerQuestion:k,nextText:z="Next",giveUpText:U="Give up",nextDisabled:E=!0,onSelectAnswer:$=()=>{},onGiveUp:W=()=>{},onNext:Z=()=>{},selectedAnswerIndex:p},j)=>{const[d,b]=i.useState(k),[u,S]=i.useState(!0),x=i.useRef(null);i.useEffect(()=>(u&&d>0&&(x.current=setInterval(()=>{b(m=>m>0?m-1:0)},1e3)),()=>clearInterval(x.current)),[u,d]);const D=d>0?d/k*O:0;return e.jsxs(ee,{ref:j,children:[e.jsxs("div",{className:"wrapper__headline",children:[e.jsxs("div",{className:"wrapper__question-no",children:[e.jsx("div",{className:"question-no__text",children:`${g} ${c} / ${f}`}),e.jsx(Y,{progressPercentage:c/f*100,className:"question-no__progress-bar"})]}),e.jsxs("div",{className:"wrapper__timer",children:[e.jsxs("svg",{className:"timer__ring",width:"60",height:"60",children:[e.jsx("circle",{className:"ring__progres-background",cx:"30",cy:"30",r:B,stroke:"#e0e0e0",strokeWidth:"4",fill:"transparent"}),e.jsx("circle",{className:"ring__progres",cx:"30",cy:"30",r:B,stroke:"#d97706",strokeWidth:"4",fill:"transparent",strokeLinecap:"round",transform:"rotate(-90 30 30)",strokeDasharray:O,strokeDashoffset:O-D})]}),e.jsx("div",{className:"timer__display",children:e.jsx("span",{className:"timer__text",children:N.formatTimerText(d)})})]})]}),e.jsxs("div",{className:"wrapper__content",children:[e.jsxs("div",{className:"wrapper__item",children:[e.jsx("div",{className:"wrapper__text",children:h}),e.jsx("div",{className:"wrapper__answers",children:o==null?void 0:o.map((m,a)=>e.jsxs("div",{className:`wrapper__answer ${n===a&&n===p?"active":N.isDefinedNotEmptyString(r)&&n!==p&&p===a?"incorrect":""}`,onClick:()=>$(m,a),children:[`${String.fromCharCode(65+a)}: ${m}`,n===a&&n===p&&e.jsx(P,{icon:" mng-lnc-checkmark--filled",sizeInUnits:"1.25rem",className:"wrapper__icon"}),p>=0&&n!==p&&p===a&&e.jsx(P,{icon:" mng-lnc-close--filled",sizeInUnits:"1.25rem",className:"wrapper__icon__incorrect"})]},`quiz-answer__${a+1}`))})]}),e.jsxs("div",{className:"wrapper__actions",children:[e.jsx(R,{text:U,borderRadius:"curved",size:"medium",className:"wrapper__action action__give-up",onClick:W}),e.jsx(R,{text:z,borderRadius:"curved",size:"medium",className:"wrapper__action action__next",disabled:E,onClick:Z})]})]})]})}),ie=i.forwardRef(({title:g,description:c,continueText:f="Continue",endQuizText:h="End quiz",onContinue:o=()=>{},onEndQuiz:n=()=>{}},r)=>e.jsxs(re,{ref:r,children:[e.jsxs("div",{className:"wrapper__content",children:[e.jsx(P,{icon:" mng-lnc-checkmark--outline",color:"success",sizeInUnits:"4rem",className:"wrapper__icon"}),e.jsxs("div",{className:"wrapper__info",children:[g&&e.jsx("div",{className:"wrapper__title",children:g}),c&&e.jsx("div",{className:"wrapper__description",children:c})]})]}),e.jsxs("div",{className:"wrapper__actions",children:[e.jsx(R,{text:f,borderRadius:"curved",size:"medium",className:"wrapper__action action__continue",onClick:o}),e.jsx(R,{text:h,borderRadius:"curved",size:"medium",className:"wrapper__action action__end-quiz",onClick:n})]})]})),l={START_QUIZ:0,QUIZ:1,CORRECT_ANSWER:2},ne=Q.styled.div`
|
|
363
363
|
display: flex;
|
|
364
364
|
width: 100%;
|
|
365
365
|
align-items: center;
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
border-radius: 0.75rem;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
@media
|
|
386
|
+
@media ${I.down("S")} {
|
|
387
387
|
& .wrapper__outlet {
|
|
388
388
|
padding: 0;
|
|
389
389
|
}
|
|
@@ -392,4 +392,4 @@
|
|
|
392
392
|
display: none;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
`,
|
|
395
|
+
`,le=i.forwardRef(({title:g,subtitle:c,endTitle:f,endDescription:h,imageUrl:o,imageComponent:n,questions:r,secondsPerQuestion:k,numberOfCredits:z,startQuizText:U="Start quiz",nextText:E="Next",giveUpText:$="Give up",questionNoText:W="Question",continueText:Z="Continue",endQuizText:p="End quiz",onStartQuiz:j=()=>{},onSelectAnswer:d=()=>{},onGiveUp:b=()=>{},onNext:u=()=>{},onContinue:S=()=>{},onEndQuiz:x=()=>{}},D)=>{const[m,a]=i.useState(l.START_QUIZ),[_,w]=i.useState(0),[t,A]=i.useState(null),[L,v]=i.useState(null),[M,y]=i.useState(null),F=i.useRef([]),C=i.useRef(0),G=()=>{var s;a(l.QUIZ),A((s=r==null?void 0:r.at)==null?void 0:s.call(r,_)),j==null||j()},H=(s,T)=>{y(T),v(s),d==null||d()},J=()=>{a(l.START_QUIZ),w(0),v(null),y(null),b==null||b()},K=()=>{var T;const s=M===(t==null?void 0:t.correctAnswerIndex);s?(a(l.CORRECT_ANSWER),C.current+=z||(t==null?void 0:t.numberOfCredits)):_===(r==null?void 0:r.length)-1?(a(l.START_QUIZ),w(0),v(null),y(null)):(w(_+1),A((T=r==null?void 0:r.at)==null?void 0:T.call(r,_+1)),v(null),y(null)),F.current=[...F.current,{question:t,selectedAnswer:L,isCorrect:s}],u==null||u()},V=()=>{var s;_===(r==null?void 0:r.length)-1?(a(l.START_QUIZ),w(0)):(a(l.QUIZ),w(_+1),A((s=r==null?void 0:r.at)==null?void 0:s.call(r,_+1))),v(null),y(null),S==null||S(C==null?void 0:C.current)},X=()=>{a(l.START_QUIZ),w(0),v(null),y(null),x==null||x()};return e.jsxs(ne,{ref:D,children:[e.jsxs("div",{className:"wrapper__outlet",children:[m===l.START_QUIZ&&e.jsx(te,{title:g,description:c,startQuizText:U,onStartQuiz:G}),m===l.QUIZ&&t&&e.jsx(ae,{questionNoText:W,questionNo:_,totalQuestions:(r==null?void 0:r.length)||0,text:t==null?void 0:t.questionText,options:t==null?void 0:t.options,secondsPerQuestion:k||(t==null?void 0:t.secondsPerQuestion),correctAnswerIndex:t==null?void 0:t.correctAnswerIndex,selectedAnswer:L,nextText:E,giveUpText:$,nextDisabled:!N.isDefined(L),onSelectAnswer:H,onGiveUp:J,onNext:K,selectedAnswerIndex:M},`quiz-question__${_}`),m===l.CORRECT_ANSWER&&e.jsx(ie,{title:f,description:N.formatString(h,z||(t==null?void 0:t.numberOfCredits)),continueText:Z,endQuizText:p,onContinue:V,onEndQuiz:X})]}),N.isDefined(n)?n:e.jsx("img",{src:o,className:"wrapper__image"})]})});module.exports=le;
|
package/dist/QuizSection.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as I, useState as w, useRef as B, useEffect as re } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { y as ae, l as te, m as J, s as ie } from "./utils-B2fsQ6PS.js";
|
|
4
4
|
import z from "./Button.js";
|
|
5
|
-
import { s as
|
|
6
|
-
import {
|
|
5
|
+
import { s as U } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import { d as E } from "./breakpoints-ff0SIcV3.js";
|
|
7
7
|
import M from "./Icon.js";
|
|
8
8
|
import ne from "./ProgressBar.js";
|
|
9
|
-
const le =
|
|
9
|
+
const le = U.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
justify-content: center;
|
|
@@ -57,7 +57,7 @@ const le = E.div`
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
@media
|
|
60
|
+
@media ${E("S")} {
|
|
61
61
|
& .wrapper__title {
|
|
62
62
|
font-size: 1.375rem;
|
|
63
63
|
line-height: 1.75rem;
|
|
@@ -68,7 +68,7 @@ const le = E.div`
|
|
|
68
68
|
line-height: 1.25rem;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`, ce =
|
|
71
|
+
`, ce = U.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex-direction: column;
|
|
74
74
|
align-items: flex-start;
|
|
@@ -258,7 +258,7 @@ const le = E.div`
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
@media
|
|
261
|
+
@media ${E("S")} {
|
|
262
262
|
& .wrapper__content {
|
|
263
263
|
& .wrapper__item {
|
|
264
264
|
& .wrapper__answers {
|
|
@@ -267,7 +267,7 @@ const le = E.div`
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
`, oe =
|
|
270
|
+
`, oe = U.div`
|
|
271
271
|
display: flex;
|
|
272
272
|
flex-direction: column;
|
|
273
273
|
align-items: flex-start;
|
|
@@ -357,7 +357,7 @@ const le = E.div`
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
@media
|
|
360
|
+
@media ${E("S")} {
|
|
361
361
|
width: 100%;
|
|
362
362
|
|
|
363
363
|
& .wrapper__actions {
|
|
@@ -389,7 +389,7 @@ const le = E.div`
|
|
|
389
389
|
}
|
|
390
390
|
)
|
|
391
391
|
] })
|
|
392
|
-
), pe = I(
|
|
392
|
+
), F = 26, P = 2 * Math.PI * F, pe = I(
|
|
393
393
|
({
|
|
394
394
|
questionNoText: g,
|
|
395
395
|
questionNo: o,
|
|
@@ -400,9 +400,9 @@ const le = E.div`
|
|
|
400
400
|
selectedAnswer: e,
|
|
401
401
|
secondsPerQuestion: R,
|
|
402
402
|
nextText: C = "Next",
|
|
403
|
-
giveUpText:
|
|
404
|
-
nextDisabled:
|
|
405
|
-
onSelectAnswer:
|
|
403
|
+
giveUpText: $ = "Give up",
|
|
404
|
+
nextDisabled: W = !0,
|
|
405
|
+
onSelectAnswer: Z = () => {
|
|
406
406
|
},
|
|
407
407
|
onGiveUp: j = () => {
|
|
408
408
|
},
|
|
@@ -410,11 +410,11 @@ const le = E.div`
|
|
|
410
410
|
},
|
|
411
411
|
selectedAnswerIndex: p
|
|
412
412
|
}, N) => {
|
|
413
|
-
const [m, k] = w(R), [u,
|
|
414
|
-
re(() => (u && m > 0 && (
|
|
413
|
+
const [m, k] = w(R), [u, S] = w(!0), v = B(null);
|
|
414
|
+
re(() => (u && m > 0 && (v.current = setInterval(() => {
|
|
415
415
|
k((d) => d > 0 ? d - 1 : 0);
|
|
416
|
-
}, 1e3)), () => clearInterval(
|
|
417
|
-
const
|
|
416
|
+
}, 1e3)), () => clearInterval(v.current)), [u, m]);
|
|
417
|
+
const A = m > 0 ? m / R * P : 0;
|
|
418
418
|
return /* @__PURE__ */ t(ce, { ref: N, children: [
|
|
419
419
|
/* @__PURE__ */ t("div", { className: "wrapper__headline", children: [
|
|
420
420
|
/* @__PURE__ */ t("div", { className: "wrapper__question-no", children: [
|
|
@@ -435,7 +435,7 @@ const le = E.div`
|
|
|
435
435
|
className: "ring__progres-background",
|
|
436
436
|
cx: "30",
|
|
437
437
|
cy: "30",
|
|
438
|
-
r:
|
|
438
|
+
r: F,
|
|
439
439
|
stroke: "#e0e0e0",
|
|
440
440
|
strokeWidth: "4",
|
|
441
441
|
fill: "transparent"
|
|
@@ -447,14 +447,14 @@ const le = E.div`
|
|
|
447
447
|
className: "ring__progres",
|
|
448
448
|
cx: "30",
|
|
449
449
|
cy: "30",
|
|
450
|
-
r:
|
|
450
|
+
r: F,
|
|
451
451
|
stroke: "#d97706",
|
|
452
452
|
strokeWidth: "4",
|
|
453
453
|
fill: "transparent",
|
|
454
454
|
strokeLinecap: "round",
|
|
455
455
|
transform: "rotate(-90 30 30)",
|
|
456
456
|
strokeDasharray: P,
|
|
457
|
-
strokeDashoffset: P -
|
|
457
|
+
strokeDashoffset: P - A
|
|
458
458
|
}
|
|
459
459
|
)
|
|
460
460
|
] }),
|
|
@@ -468,7 +468,7 @@ const le = E.div`
|
|
|
468
468
|
"div",
|
|
469
469
|
{
|
|
470
470
|
className: `wrapper__answer ${n === i && n === p ? "active" : te(e) && n !== p && p === i ? "incorrect" : ""}`,
|
|
471
|
-
onClick: () =>
|
|
471
|
+
onClick: () => Z(d, i),
|
|
472
472
|
children: [
|
|
473
473
|
`${String.fromCharCode(65 + i)}: ${d}`,
|
|
474
474
|
n === i && n === p && /* @__PURE__ */ r(
|
|
@@ -496,7 +496,7 @@ const le = E.div`
|
|
|
496
496
|
/* @__PURE__ */ r(
|
|
497
497
|
z,
|
|
498
498
|
{
|
|
499
|
-
text:
|
|
499
|
+
text: $,
|
|
500
500
|
borderRadius: "curved",
|
|
501
501
|
size: "medium",
|
|
502
502
|
className: "wrapper__action action__give-up",
|
|
@@ -510,7 +510,7 @@ const le = E.div`
|
|
|
510
510
|
borderRadius: "curved",
|
|
511
511
|
size: "medium",
|
|
512
512
|
className: "wrapper__action action__next",
|
|
513
|
-
disabled:
|
|
513
|
+
disabled: W,
|
|
514
514
|
onClick: D
|
|
515
515
|
}
|
|
516
516
|
)
|
|
@@ -571,7 +571,7 @@ const le = E.div`
|
|
|
571
571
|
START_QUIZ: 0,
|
|
572
572
|
QUIZ: 1,
|
|
573
573
|
CORRECT_ANSWER: 2
|
|
574
|
-
}, de =
|
|
574
|
+
}, de = U.div`
|
|
575
575
|
display: flex;
|
|
576
576
|
width: 100%;
|
|
577
577
|
align-items: center;
|
|
@@ -595,7 +595,7 @@ const le = E.div`
|
|
|
595
595
|
border-radius: 0.75rem;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
@media
|
|
598
|
+
@media ${E("S")} {
|
|
599
599
|
& .wrapper__outlet {
|
|
600
600
|
padding: 0;
|
|
601
601
|
}
|
|
@@ -615,9 +615,9 @@ const le = E.div`
|
|
|
615
615
|
questions: e,
|
|
616
616
|
secondsPerQuestion: R,
|
|
617
617
|
numberOfCredits: C,
|
|
618
|
-
startQuizText:
|
|
619
|
-
nextText:
|
|
620
|
-
giveUpText:
|
|
618
|
+
startQuizText: $ = "Start quiz",
|
|
619
|
+
nextText: W = "Next",
|
|
620
|
+
giveUpText: Z = "Give up",
|
|
621
621
|
questionNoText: j = "Question",
|
|
622
622
|
continueText: D = "Continue",
|
|
623
623
|
endQuizText: p = "End quiz",
|
|
@@ -629,29 +629,29 @@ const le = E.div`
|
|
|
629
629
|
},
|
|
630
630
|
onNext: u = () => {
|
|
631
631
|
},
|
|
632
|
-
onContinue:
|
|
632
|
+
onContinue: S = () => {
|
|
633
633
|
},
|
|
634
|
-
onEndQuiz:
|
|
634
|
+
onEndQuiz: v = () => {
|
|
635
635
|
}
|
|
636
|
-
},
|
|
637
|
-
const [d, i] = w(l.START_QUIZ), [_,
|
|
636
|
+
}, A) => {
|
|
637
|
+
const [d, i] = w(l.START_QUIZ), [_, x] = w(0), [a, L] = w(null), [O, y] = w(null), [G, b] = w(null), H = B([]), T = B(0), K = () => {
|
|
638
638
|
var c;
|
|
639
|
-
i(l.QUIZ),
|
|
639
|
+
i(l.QUIZ), L(
|
|
640
640
|
// questions?.find((question) => question?.questionNo === questionNo)
|
|
641
641
|
(c = e == null ? void 0 : e.at) == null ? void 0 : c.call(e, _)
|
|
642
642
|
), N == null || N();
|
|
643
|
-
},
|
|
644
|
-
b(
|
|
645
|
-
},
|
|
646
|
-
i(l.START_QUIZ),
|
|
643
|
+
}, V = (c, Q) => {
|
|
644
|
+
b(Q), y(c), m == null || m();
|
|
645
|
+
}, X = () => {
|
|
646
|
+
i(l.START_QUIZ), x(0), y(null), b(null), k == null || k();
|
|
647
647
|
}, Y = () => {
|
|
648
|
-
var
|
|
649
|
-
const c =
|
|
650
|
-
c ? (i(l.CORRECT_ANSWER),
|
|
648
|
+
var Q;
|
|
649
|
+
const c = G === (a == null ? void 0 : a.correctAnswerIndex);
|
|
650
|
+
c ? (i(l.CORRECT_ANSWER), T.current += C || (a == null ? void 0 : a.numberOfCredits)) : _ === (e == null ? void 0 : e.length) - 1 ? (i(l.START_QUIZ), x(0), y(null), b(null)) : (x(_ + 1), L(
|
|
651
651
|
// questions?.find((question) => question?.questionNo === questionNo + 1)
|
|
652
|
-
(
|
|
653
|
-
), y(null), b(null)),
|
|
654
|
-
...
|
|
652
|
+
(Q = e == null ? void 0 : e.at) == null ? void 0 : Q.call(e, _ + 1)
|
|
653
|
+
), y(null), b(null)), H.current = [
|
|
654
|
+
...H.current,
|
|
655
655
|
{
|
|
656
656
|
question: a,
|
|
657
657
|
selectedAnswer: O,
|
|
@@ -660,22 +660,22 @@ const le = E.div`
|
|
|
660
660
|
], u == null || u();
|
|
661
661
|
}, q = () => {
|
|
662
662
|
var c;
|
|
663
|
-
_ === (e == null ? void 0 : e.length) - 1 ? (i(l.START_QUIZ),
|
|
663
|
+
_ === (e == null ? void 0 : e.length) - 1 ? (i(l.START_QUIZ), x(0)) : (i(l.QUIZ), x(_ + 1), L(
|
|
664
664
|
// questions?.find((question) => question?.questionNo === questionNo + 1)
|
|
665
665
|
(c = e == null ? void 0 : e.at) == null ? void 0 : c.call(e, _ + 1)
|
|
666
|
-
)), y(null), b(null),
|
|
666
|
+
)), y(null), b(null), S == null || S(T == null ? void 0 : T.current);
|
|
667
667
|
}, ee = () => {
|
|
668
|
-
i(l.START_QUIZ),
|
|
668
|
+
i(l.START_QUIZ), x(0), y(null), b(null), v == null || v();
|
|
669
669
|
};
|
|
670
|
-
return /* @__PURE__ */ t(de, { ref:
|
|
670
|
+
return /* @__PURE__ */ t(de, { ref: A, children: [
|
|
671
671
|
/* @__PURE__ */ t("div", { className: "wrapper__outlet", children: [
|
|
672
672
|
d === l.START_QUIZ && /* @__PURE__ */ r(
|
|
673
673
|
se,
|
|
674
674
|
{
|
|
675
675
|
title: g,
|
|
676
676
|
description: o,
|
|
677
|
-
startQuizText:
|
|
678
|
-
onStartQuiz:
|
|
677
|
+
startQuizText: $,
|
|
678
|
+
onStartQuiz: K
|
|
679
679
|
}
|
|
680
680
|
),
|
|
681
681
|
d === l.QUIZ && a && /* @__PURE__ */ r(
|
|
@@ -689,13 +689,13 @@ const le = E.div`
|
|
|
689
689
|
secondsPerQuestion: R || (a == null ? void 0 : a.secondsPerQuestion),
|
|
690
690
|
correctAnswerIndex: a == null ? void 0 : a.correctAnswerIndex,
|
|
691
691
|
selectedAnswer: O,
|
|
692
|
-
nextText:
|
|
693
|
-
giveUpText:
|
|
694
|
-
nextDisabled: !
|
|
695
|
-
onSelectAnswer:
|
|
696
|
-
onGiveUp:
|
|
692
|
+
nextText: W,
|
|
693
|
+
giveUpText: Z,
|
|
694
|
+
nextDisabled: !J(O),
|
|
695
|
+
onSelectAnswer: V,
|
|
696
|
+
onGiveUp: X,
|
|
697
697
|
onNext: Y,
|
|
698
|
-
selectedAnswerIndex:
|
|
698
|
+
selectedAnswerIndex: G
|
|
699
699
|
},
|
|
700
700
|
`quiz-question__${_}`
|
|
701
701
|
),
|
|
@@ -714,7 +714,7 @@ const le = E.div`
|
|
|
714
714
|
}
|
|
715
715
|
)
|
|
716
716
|
] }),
|
|
717
|
-
|
|
717
|
+
J(n) ? n : /* @__PURE__ */ r("img", { src: s, className: "wrapper__image" })
|
|
718
718
|
] });
|
|
719
719
|
}
|
|
720
720
|
);
|
package/dist/RadioInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-CITgSxXe.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=e=>e=="left"?"row-reverse":"row",B=g.styled.label`
|
|
2
2
|
min-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
|
|
3
3
|
max-height: ${e=>t.getSizeValueWithUnits(e.theme,e.size)};
|
|
4
4
|
width: 100%;
|
package/dist/RadioInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as B, useState as j } from "react";
|
|
3
3
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { e as b, d as N, f as P, c as i } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const I = (e) => e == "left" ? "row-reverse" : "row", L = f.label`
|
|
7
7
|
min-height: ${(e) => b(e.theme, e.size)};
|
package/dist/RangeSlider.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("react"),a=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("react"),a=require("./utils-CITgSxXe.cjs"),F=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),U=require("./useUpdateEffect-BtMgpgIV.cjs"),_=({theme:e,size:i})=>{var u=a.getSizeValueWithUnits(e,i);return`
|
|
2
2
|
min-height: ${u};
|
|
3
3
|
max-height: ${u};
|
|
4
4
|
`},g={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},T=x.styled.div`
|
package/dist/RangeSlider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as M, jsx as t, Fragment as L } from "react/jsx-runtime";
|
|
2
2
|
import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
3
3
|
import { forwardRef as W, useRef as X, useState as f, useCallback as q, useEffect as N } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { b as A, c as r, d as D, e as G } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as H } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
import { u as J } from "./useUpdateEffect-CuYWz7EA.js";
|
|
7
7
|
const K = ({ theme: e, size: o }) => {
|
package/dist/ReviewsSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),g=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),g=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),S=require("./useDetectMobile-DYV6V1yw.cjs"),b=require("./utils-CITgSxXe.cjs"),k=require("./ThemeProvider.cjs"),v=require("./index-DsINTjQk.cjs"),i=require("./style-BAcV7F53.cjs"),R=l.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
color: var(--darkest-950);
|
|
@@ -8,20 +8,28 @@
|
|
|
8
8
|
font-weight: 600;
|
|
9
9
|
font-size: 1.5rem;
|
|
10
10
|
}
|
|
11
|
-
`,y=
|
|
11
|
+
`,y=l.styled.div`
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
|
-
@media
|
|
16
|
+
@media ${w.down("M")} {
|
|
17
|
+
grid-template-columns: repeat(2, 1fr);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media ${w.down("S")} {
|
|
21
|
+
grid-template-columns: repeat(2, 1fr);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media ${w.down("XS")} {
|
|
17
25
|
grid-template-columns: repeat(1, 1fr);
|
|
18
26
|
}
|
|
19
|
-
|
|
27
|
+
`,$=l.styled.a`
|
|
20
28
|
padding-top: 5rem;
|
|
21
29
|
overflow: hidden;
|
|
22
30
|
text-decoration: none;
|
|
23
31
|
color: var(--gray-950);
|
|
24
|
-
|
|
32
|
+
`,C=l.styled.div`
|
|
25
33
|
position: relative;
|
|
26
34
|
cursor: pointer;
|
|
27
35
|
display: flex;
|
|
@@ -53,11 +61,11 @@
|
|
|
53
61
|
font-size: 1.375rem;
|
|
54
62
|
font-weight: 600;
|
|
55
63
|
color: var(--gray-950, #14161a);
|
|
56
|
-
${
|
|
64
|
+
${b.truncateText()}
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
& .cont-text {
|
|
60
|
-
${
|
|
68
|
+
${b.truncateTextInRows(2)}
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
|
|
@@ -77,9 +85,9 @@
|
|
|
77
85
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
78
86
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
79
87
|
}
|
|
80
|
-
`,
|
|
81
|
-
font-size: ${t=>
|
|
82
|
-
line-height: ${t=>
|
|
88
|
+
`,j=(t,o)=>b.getComponentPropValue(t.theme,"StarRating",t.color,t.disabled===!0?"disabled":"enabled",o),P=l.styled.div`
|
|
89
|
+
font-size: ${t=>j(t,"fontSize")};
|
|
90
|
+
line-height: ${t=>j(t,"lineHeight")};
|
|
83
91
|
line-height: 1.5rem;
|
|
84
92
|
width: fit-content;
|
|
85
93
|
display: flex;
|
|
@@ -98,7 +106,7 @@
|
|
|
98
106
|
line-height: 1.5rem;
|
|
99
107
|
color: ${t=>t.color};
|
|
100
108
|
}
|
|
101
|
-
`,L=
|
|
109
|
+
`,L=l.styled.span`
|
|
102
110
|
position: absolute;
|
|
103
111
|
z-index: 1;
|
|
104
112
|
display: block;
|
|
@@ -107,14 +115,14 @@
|
|
|
107
115
|
overflow: hidden;
|
|
108
116
|
width: ${t=>t.width}%;
|
|
109
117
|
|
|
110
|
-
color: ${t=>
|
|
111
|
-
`,N=
|
|
118
|
+
color: ${t=>b.getColorRgbaValue(t.theme,"StarRating",t.color,t.disabled===!0?"disabled":"enabled","filledColor")};
|
|
119
|
+
`,N=l.styled.span`
|
|
112
120
|
padding: 0;
|
|
113
121
|
display: block;
|
|
114
122
|
z-index: 0;
|
|
115
123
|
color: ${t=>t.color};
|
|
116
|
-
`,q=g.forwardRef((t,o)=>{const{rating:
|
|
117
|
-
@media
|
|
124
|
+
`,q=g.forwardRef((t,o)=>{const{rating:a=0,reviewCount:n=null,disabled:s=!1,tabIndex:d=0,className:p="",style:h={},color:c="primary",size:u="large"}=t,{theme:r}=k.useTheme(),m={theme:r,color:c,size:u,style:h,disabled:s},x=a/5*100;return e.jsxs(P,{ref:o,tabIndex:d,...m,className:`star-rating ${p}`,children:[e.jsxs("div",{className:"rating",children:[e.jsx(L,{className:"filled-stars",...m,width:x,children:"★★★★★"}),e.jsx(N,{...m,children:"★★★★★"})]}),!isNaN(n)&&Number.isFinite(n)&&e.jsx("div",{className:"review-count",children:`(${n.toLocaleString()})`})]})}),z=g.forwardRef((t,o)=>{const{image:a,text:n,title:s,link:d,rating:p,onSelectCard:h=()=>{},LinkComponent:c}=t,u=c||"a";return e.jsx($,{ref:o,className:"review-card",onClick:h,as:u,...c?{to:`/${d}`}:{href:`/${d}`},children:e.jsxs(C,{children:[e.jsx(v.ProductImageWrapper,{src:a}),e.jsxs("div",{className:"cont",children:[e.jsx("span",{className:"cont-title",children:s}),e.jsx("div",{className:"cont-text",children:n})]}),e.jsx(q,{color:"warning",rating:p})]})})}),M=l.styled(i.SkeletonRowWrapper)`
|
|
125
|
+
@media ${w.down("S")} {
|
|
118
126
|
flex-direction: column;
|
|
119
127
|
|
|
120
128
|
& > div {
|
|
@@ -125,4 +133,4 @@
|
|
|
125
133
|
}
|
|
126
134
|
}
|
|
127
135
|
}
|
|
128
|
-
`,W=({keyPrefix:t})=>e.jsxs(M,{children:[e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-3`)]}),
|
|
136
|
+
`,W=({keyPrefix:t})=>e.jsxs(M,{children:[e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"6.25rem",width:"6.25rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${t}-3`)]}),F=({keyPrefix:t,isLoading:o=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:n})=>e.jsx(g.Suspense,{fallbackComponent:a,children:o===!0?e.jsx(W,{keyPrefix:t}):n}),f=g.memo(z),G=g.forwardRef((t,o)=>{const{title:a="Electronics reviews",items:n,limit:s=3,onSelectCard:d=()=>{},isLoading:p=!1,LinkComponent:h}=t,c=S.useDetectMobile(),u=g.useMemo(()=>e.jsx(e.Fragment,{children:c===!0?n==null?void 0:n.map((r,m)=>e.jsx(f,{text:r==null?void 0:r.text,title:r==null?void 0:r.title,image:r==null?void 0:r.image,link:r==null?void 0:r.link,rating:r==null?void 0:r.ratingArithmeticMean,onSelectCard:()=>d(r),LinkComponent:h},m)):n==null?void 0:n.slice(0,s).map((r,m)=>e.jsx(f,{text:r==null?void 0:r.text,title:r==null?void 0:r.title,image:r==null?void 0:r.image,link:r==null?void 0:r.link,rating:r==null?void 0:r.ratingArithmeticMean,onSelectCard:()=>d(r),LinkComponent:h},m))}),[n,c,s]);return e.jsxs(R,{ref:o,children:[e.jsx("div",{className:"container-title",children:a}),e.jsx(F,{isLoading:p,keyPrefix:"reviews-skeleton",children:e.jsx(y,{limit:s,children:u})})]})});module.exports=G;
|