@lanaco/lnc-react-ui 4.0.206 → 4.0.208
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 +28 -6
- package/dist/BannerSectionCarousel.js +72 -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 +73 -67
- 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 +7 -7
- package/dist/MasonryGeneralCardsSection.js +24 -24
- 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,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as t, jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { R as
|
|
7
|
-
import {
|
|
8
|
-
import { P as
|
|
9
|
-
import { b as s, a as i, S as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as r, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useRef as P, Suspense as U, memo as G, useMemo as j } from "react";
|
|
3
|
+
import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as h } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import { u as M } from "./useDetectMobile-CcVo3PNi.js";
|
|
6
|
+
import { R as y } from "./style-BUyFad_y.js";
|
|
7
|
+
import { n as B, m as L, l as C } from "./utils-B2fsQ6PS.js";
|
|
8
|
+
import { P as _ } from "./index-BvMY2TbK.js";
|
|
9
|
+
import { b as s, a as i, S as g, c as f } from "./style-BwQ4djFC.js";
|
|
10
|
+
const z = R.div`
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 22.5rem;
|
|
13
13
|
min-height: 22.5rem;
|
|
@@ -25,7 +25,7 @@ const y = f.div`
|
|
|
25
25
|
object-fit: cover;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media
|
|
28
|
+
@media ${h("S")} {
|
|
29
29
|
height: 100%;
|
|
30
30
|
min-height: 100%;
|
|
31
31
|
max-height: 100%;
|
|
@@ -40,15 +40,25 @@ const y = f.div`
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`, D = R.div`
|
|
44
44
|
display: grid;
|
|
45
45
|
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
46
46
|
gap: 1.25rem;
|
|
47
47
|
|
|
48
|
-
@media
|
|
48
|
+
@media ${h("M")} {
|
|
49
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media ${h("S")} {
|
|
49
53
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
54
|
+
gap: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media ${h("XS")} {
|
|
58
|
+
grid-template-columns: 1fr;
|
|
59
|
+
gap: 0.75rem;
|
|
50
60
|
}
|
|
51
|
-
`,
|
|
61
|
+
`, I = R.a`
|
|
52
62
|
display: flex;
|
|
53
63
|
flex-direction: column;
|
|
54
64
|
gap: 0.5rem;
|
|
@@ -69,7 +79,7 @@ const y = f.div`
|
|
|
69
79
|
${B(2)}
|
|
70
80
|
}
|
|
71
81
|
|
|
72
|
-
@media
|
|
82
|
+
@media ${h("S")} {
|
|
73
83
|
& img {
|
|
74
84
|
width: 8.875rem;
|
|
75
85
|
height: 8.875rem;
|
|
@@ -80,52 +90,52 @@ const y = f.div`
|
|
|
80
90
|
object-fit: cover;
|
|
81
91
|
}
|
|
82
92
|
}
|
|
83
|
-
`,
|
|
93
|
+
`, T = N((a, l) => {
|
|
84
94
|
const {
|
|
85
95
|
uuid: o,
|
|
86
|
-
title:
|
|
96
|
+
title: m,
|
|
87
97
|
image: c,
|
|
88
|
-
sellerUuid:
|
|
89
|
-
onSelectCard:
|
|
98
|
+
sellerUuid: v,
|
|
99
|
+
onSelectCard: S = () => {
|
|
90
100
|
},
|
|
91
|
-
imageComponent:
|
|
92
|
-
metadata:
|
|
101
|
+
imageComponent: p,
|
|
102
|
+
metadata: d,
|
|
93
103
|
nameSlug: n,
|
|
94
|
-
LinkComponent:
|
|
95
|
-
} = a,
|
|
104
|
+
LinkComponent: u
|
|
105
|
+
} = a, b = u || "a", w = P(null);
|
|
96
106
|
return /* @__PURE__ */ t(
|
|
97
|
-
|
|
107
|
+
I,
|
|
98
108
|
{
|
|
99
|
-
ref:
|
|
109
|
+
ref: w,
|
|
100
110
|
className: "product-card",
|
|
101
|
-
name:
|
|
102
|
-
"data-accessor":
|
|
103
|
-
onClick: (e) =>
|
|
104
|
-
as:
|
|
105
|
-
...
|
|
111
|
+
name: d == null ? void 0 : d.name,
|
|
112
|
+
"data-accessor": d == null ? void 0 : d.accessor,
|
|
113
|
+
onClick: (e) => S(e, l),
|
|
114
|
+
as: b,
|
|
115
|
+
...u ? {
|
|
106
116
|
to: `/product/${C(n) ? `${n}-` : ""}${o}`
|
|
107
117
|
} : {
|
|
108
118
|
href: `/product/${C(n) ? `${n}-` : ""}${o}`
|
|
109
119
|
},
|
|
110
120
|
children: [
|
|
111
|
-
|
|
112
|
-
/* @__PURE__ */ r("div", { className: "card-title", children:
|
|
121
|
+
L(p) ? p : /* @__PURE__ */ r(_, { src: c }),
|
|
122
|
+
/* @__PURE__ */ r("div", { className: "card-title", children: m })
|
|
113
123
|
]
|
|
114
124
|
}
|
|
115
125
|
);
|
|
116
|
-
}),
|
|
117
|
-
@media
|
|
126
|
+
}), q = R(s)`
|
|
127
|
+
@media ${h("S")} {
|
|
118
128
|
& .skeleton__banner {
|
|
119
129
|
height: 100%;
|
|
120
130
|
aspect-ratio: 1 / 1;
|
|
121
131
|
}
|
|
122
132
|
}
|
|
123
|
-
`,
|
|
133
|
+
`, E = ({ keyPrefix: a }) => /* @__PURE__ */ t(q, { children: [
|
|
124
134
|
/* @__PURE__ */ r(i, { height: "22.5rem", className: "skeleton__banner" }),
|
|
125
|
-
/* @__PURE__ */ t(
|
|
135
|
+
/* @__PURE__ */ t(g, { children: [
|
|
126
136
|
/* @__PURE__ */ t(s, { gap: "0.5rem", children: [
|
|
127
137
|
/* @__PURE__ */ r(
|
|
128
|
-
|
|
138
|
+
f,
|
|
129
139
|
{
|
|
130
140
|
height: "100%",
|
|
131
141
|
width: "100%",
|
|
@@ -133,7 +143,7 @@ const y = f.div`
|
|
|
133
143
|
}
|
|
134
144
|
),
|
|
135
145
|
/* @__PURE__ */ r(s, { height: "1rem", children: /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }) }),
|
|
136
|
-
/* @__PURE__ */ t(
|
|
146
|
+
/* @__PURE__ */ t(g, { gap: "0.5rem", children: [
|
|
137
147
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
138
148
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
139
149
|
] }),
|
|
@@ -146,7 +156,7 @@ const y = f.div`
|
|
|
146
156
|
noGradient: !0,
|
|
147
157
|
children: [
|
|
148
158
|
/* @__PURE__ */ r(
|
|
149
|
-
|
|
159
|
+
f,
|
|
150
160
|
{
|
|
151
161
|
height: "100%",
|
|
152
162
|
width: "100%",
|
|
@@ -154,7 +164,7 @@ const y = f.div`
|
|
|
154
164
|
}
|
|
155
165
|
),
|
|
156
166
|
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
157
|
-
/* @__PURE__ */ t(
|
|
167
|
+
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
158
168
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
159
169
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
160
170
|
] }),
|
|
@@ -170,7 +180,7 @@ const y = f.div`
|
|
|
170
180
|
noGradient: !0,
|
|
171
181
|
children: [
|
|
172
182
|
/* @__PURE__ */ r(
|
|
173
|
-
|
|
183
|
+
f,
|
|
174
184
|
{
|
|
175
185
|
height: "100%",
|
|
176
186
|
width: "100%",
|
|
@@ -178,7 +188,7 @@ const y = f.div`
|
|
|
178
188
|
}
|
|
179
189
|
),
|
|
180
190
|
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
181
|
-
/* @__PURE__ */ t(
|
|
191
|
+
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
182
192
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
183
193
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
184
194
|
] }),
|
|
@@ -194,7 +204,7 @@ const y = f.div`
|
|
|
194
204
|
noGradient: !0,
|
|
195
205
|
children: [
|
|
196
206
|
/* @__PURE__ */ r(
|
|
197
|
-
|
|
207
|
+
f,
|
|
198
208
|
{
|
|
199
209
|
height: "100%",
|
|
200
210
|
width: "100%",
|
|
@@ -202,7 +212,7 @@ const y = f.div`
|
|
|
202
212
|
}
|
|
203
213
|
),
|
|
204
214
|
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
205
|
-
/* @__PURE__ */ t(
|
|
215
|
+
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
206
216
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
207
217
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
208
218
|
] }),
|
|
@@ -214,64 +224,64 @@ const y = f.div`
|
|
|
214
224
|
] })
|
|
215
225
|
] }), F = ({
|
|
216
226
|
keyPrefix: a,
|
|
217
|
-
isLoading:
|
|
218
|
-
fallbackComponent: o = /* @__PURE__ */ r(
|
|
219
|
-
children:
|
|
220
|
-
}) => /* @__PURE__ */ r(U, { fallbackComponent: o, children:
|
|
227
|
+
isLoading: l = !1,
|
|
228
|
+
fallbackComponent: o = /* @__PURE__ */ r(W, {}),
|
|
229
|
+
children: m
|
|
230
|
+
}) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: l === !0 ? /* @__PURE__ */ r(E, { keyPrefix: a }) : m }), k = G(T), Z = N((a, l) => {
|
|
221
231
|
const {
|
|
222
232
|
icon: o,
|
|
223
|
-
items:
|
|
233
|
+
items: m,
|
|
224
234
|
limit: c = 4,
|
|
225
|
-
imageUrl:
|
|
226
|
-
title:
|
|
227
|
-
isLoading:
|
|
228
|
-
getImage:
|
|
235
|
+
imageUrl: v,
|
|
236
|
+
title: S = "Season inspiration",
|
|
237
|
+
isLoading: p = !1,
|
|
238
|
+
getImage: d = () => {
|
|
229
239
|
},
|
|
230
240
|
componentName: n,
|
|
231
|
-
LinkComponent:
|
|
232
|
-
} = a,
|
|
233
|
-
|
|
241
|
+
LinkComponent: u
|
|
242
|
+
} = a, b = M(), w = j(() => /* @__PURE__ */ r(W, { children: b === !0 ? m == null ? void 0 : m.map((e, $) => /* @__PURE__ */ r(
|
|
243
|
+
k,
|
|
234
244
|
{
|
|
235
245
|
title: e == null ? void 0 : e.name,
|
|
236
246
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
237
247
|
uuid: e == null ? void 0 : e.uuid,
|
|
238
248
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
239
|
-
image:
|
|
249
|
+
image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
240
250
|
metadata: { name: n, accessor: e == null ? void 0 : e.accessor },
|
|
241
|
-
LinkComponent:
|
|
251
|
+
LinkComponent: u
|
|
242
252
|
},
|
|
243
253
|
$
|
|
244
|
-
)) :
|
|
245
|
-
|
|
254
|
+
)) : m == null ? void 0 : m.slice(0, c).map((e, $) => /* @__PURE__ */ r(
|
|
255
|
+
k,
|
|
246
256
|
{
|
|
247
257
|
title: e == null ? void 0 : e.name,
|
|
248
258
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
249
259
|
uuid: e == null ? void 0 : e.uuid,
|
|
250
260
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
251
|
-
image:
|
|
261
|
+
image: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
252
262
|
metadata: { name: n, accessor: e == null ? void 0 : e.accessor },
|
|
253
|
-
LinkComponent:
|
|
263
|
+
LinkComponent: u
|
|
254
264
|
},
|
|
255
265
|
$
|
|
256
|
-
)) }), [
|
|
257
|
-
return /* @__PURE__ */ t(
|
|
266
|
+
)) }), [m, b, c]);
|
|
267
|
+
return /* @__PURE__ */ t(y, { ref: l, children: [
|
|
258
268
|
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
|
|
259
269
|
C(o) && /* @__PURE__ */ r("i", { className: o }),
|
|
260
|
-
/* @__PURE__ */ r("span", { children:
|
|
270
|
+
/* @__PURE__ */ r("span", { children: S })
|
|
261
271
|
] }) }),
|
|
262
272
|
/* @__PURE__ */ t(
|
|
263
273
|
F,
|
|
264
274
|
{
|
|
265
|
-
isLoading:
|
|
275
|
+
isLoading: p,
|
|
266
276
|
keyPrefix: "products-with-banner-skeleton",
|
|
267
277
|
children: [
|
|
268
|
-
/* @__PURE__ */ r(
|
|
269
|
-
/* @__PURE__ */ r(
|
|
278
|
+
/* @__PURE__ */ r(z, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: v }) }),
|
|
279
|
+
/* @__PURE__ */ r(D, { limit: c, children: w })
|
|
270
280
|
]
|
|
271
281
|
}
|
|
272
282
|
)
|
|
273
283
|
] });
|
|
274
284
|
});
|
|
275
285
|
export {
|
|
276
|
-
|
|
286
|
+
Z as default
|
|
277
287
|
};
|
package/dist/ProgressBar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-CITgSxXe.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=i.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
|
package/dist/ProgressBar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, isValidElement as f, cloneElement as P } from "react";
|
|
3
3
|
import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as a, d as x } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const w = t.div`
|
|
7
7
|
width: 100%;
|
|
@@ -54,7 +54,7 @@ const w = t.div`
|
|
|
54
54
|
color: g = "primary",
|
|
55
55
|
progressBarEndComponent: r,
|
|
56
56
|
...p
|
|
57
|
-
} = e, o = $(),
|
|
57
|
+
} = e, o = $(), h = () => {
|
|
58
58
|
var n;
|
|
59
59
|
if (f(r))
|
|
60
60
|
return P(r, {
|
|
@@ -72,13 +72,13 @@ const w = t.div`
|
|
|
72
72
|
progressPercentage: s,
|
|
73
73
|
...p,
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ b(
|
|
76
76
|
y,
|
|
77
77
|
{
|
|
78
78
|
progressPercentage: s,
|
|
79
79
|
theme: o,
|
|
80
80
|
color: g,
|
|
81
|
-
children: r !== null &&
|
|
81
|
+
children: r !== null && h()
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
84
|
i && /* @__PURE__ */ c(z, { theme: o, size: l, children: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-CITgSxXe.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CvykQBGY.cjs"),h=require("./index-uCWKRzoS.cjs"),b=g.styled.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
|
|
42
42
|
border-radius: 0.75rem;
|
|
43
43
|
z-index: 2;
|
|
44
|
-
`,w=
|
|
44
|
+
`,w=g.styled.a`
|
|
45
45
|
text-decoration: none;
|
|
46
46
|
color: var(--gray-950);
|
|
47
47
|
cursor: pointer;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
@media
|
|
96
|
+
@media ${p.down("S")} {
|
|
97
97
|
width: 100%;
|
|
98
98
|
|
|
99
99
|
img {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
display: block;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
`,y=d.forwardRef(({title:o,description:
|
|
113
|
+
`,y=d.forwardRef(({title:o,description:t,imageUrl:l,onSelectCard:i=()=>{},link:n,LinkComponent:s},c)=>{const{theme:a}=f.useTheme(),e=s||"a";return r.jsxs(w,{ref:c,theme:a,onClick:i,as:e,...s?{to:`/${n}`}:{href:`/${n}`},children:[r.jsx("img",{loading:"lazy",src:l}),r.jsx(b,{theme:a,className:"quattro-card__gradient",children:r.jsxs("div",{className:"quattro-card__text",children:[r.jsx("div",{className:"quattro-card__title",children:o}),r.jsx("div",{className:"quattro-card__description",children:t})]})})]})}),q=_.qe.div`
|
|
114
114
|
display: flex;
|
|
115
115
|
flex-direction: column;
|
|
116
116
|
align-items: flex-start;
|
|
@@ -156,12 +156,14 @@
|
|
|
156
156
|
width: 100%;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
@media
|
|
159
|
+
@media ${p.down("S")} {
|
|
160
160
|
gap: 1.25rem;
|
|
161
|
+
}
|
|
161
162
|
|
|
163
|
+
@media ${p.down("XS")} {
|
|
162
164
|
& .wrapper__cards {
|
|
163
165
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
164
166
|
gap: 1rem;
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
|
-
`,
|
|
169
|
+
`,x=d.memo(y),j=d.forwardRef(({title:o,items:t,isLoading:l=!1,onSelectCard:i=()=>{},LinkComponent:n},s)=>{const c=d.useMemo(()=>{var a;return(a=t==null?void 0:t.slice(0,4))==null?void 0:a.map((e,u)=>r.jsx(x,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,onSelectCard:()=>i==null?void 0:i(e),link:e==null?void 0:e.link,LinkComponent:n},`quattro-card__${u+1}`))},[t]);return r.jsxs(q,{ref:s,children:[r.jsx("div",{className:"wrapper__heading",children:r.jsx("div",{className:"wrapper__title",children:m.isDefinedNotEmptyString(o)&&r.jsx("div",{className:"title__text",children:r.jsx("span",{children:o})})})}),r.jsx(h.SuspenseBlogCardsSponsored,{isLoading:l,keyPrefix:"quattro-cards-skeleton",children:r.jsx("div",{className:"wrapper__cards",children:c})})]})});module.exports=j;
|
|
@@ -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;
|