@lanaco/lnc-react-ui 4.0.226 → 4.0.228
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/BannerNextSection.cjs +1 -1
- package/dist/BannerNextSection.js +1 -1
- package/dist/BannerSectionCarousel.cjs +3 -3
- package/dist/BannerSectionCarousel.js +19 -12
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +4 -4
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +2 -2
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +20 -36
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +4 -4
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +41 -59
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +4 -4
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- 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/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
- package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +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 +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
- package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.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/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +4 -4
- 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/FeedbackSection.cjs +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
- 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 +1 -1
- package/dist/GeneralWithTagsCardsSection.js +2 -2
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +77 -147
- 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/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- 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 +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/PartnerBrandsSection.cjs +1 -1
- package/dist/PartnerBrandsSection.js +1 -1
- package/dist/PartnerCardsSection.cjs +1 -1
- package/dist/PartnerCardsSection.js +1 -1
- package/dist/PartnerStatsSection.cjs +1 -1
- package/dist/PartnerStatsSection.js +1 -1
- 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 +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +2 -2
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- 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 +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +25 -25
- package/dist/SalesCampaignsSection.js +267 -306
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +56 -102
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +65 -68
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +1 -1
- package/dist/StatsSection.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 +1 -1
- 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 +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
- package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
- package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
- package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
- package/dist/index-DueyY06i.cjs +368 -0
- package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
- package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
- package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
- package/dist/index-zIt6TVeg.js +753 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
- package/dist/style-CQdEALKR.cjs +59 -0
- package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
- package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
- package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { d
|
|
5
|
-
import { u as
|
|
6
|
-
import { R as
|
|
7
|
-
import { n as
|
|
8
|
-
import { P as
|
|
9
|
-
import { b as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as s, jsx as r, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useRef as N, Suspense as U, memo as W, useMemo as y } from "react";
|
|
3
|
+
import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
+
import { d } from "./breakpoints-BubDitvo.js";
|
|
5
|
+
import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
|
|
6
|
+
import { R as j } from "./style-CP_urKvc.js";
|
|
7
|
+
import { n as M, m as z, l as b } from "./utils-BUdHa0nB.js";
|
|
8
|
+
import { P as B } from "./index-D6_3Q8lN.js";
|
|
9
|
+
import { b as _, a as h, c as C, e as D, d as I } from "./style-BFPpppS9.js";
|
|
10
|
+
const L = g.div`
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 22.5rem;
|
|
13
13
|
min-height: 22.5rem;
|
|
@@ -25,7 +25,7 @@ const z = R.div`
|
|
|
25
25
|
object-fit: cover;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media ${
|
|
28
|
+
@media ${d("S")} {
|
|
29
29
|
height: 100%;
|
|
30
30
|
min-height: 100%;
|
|
31
31
|
max-height: 100%;
|
|
@@ -40,25 +40,25 @@ const z = R.div`
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`, T = g.div`
|
|
44
44
|
display: grid;
|
|
45
|
-
grid-template-columns: ${(
|
|
45
|
+
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
46
46
|
gap: 1.25rem;
|
|
47
47
|
|
|
48
|
-
@media ${
|
|
48
|
+
@media ${d("M")} {
|
|
49
49
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@media ${
|
|
52
|
+
@media ${d("S")} {
|
|
53
53
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
54
54
|
gap: 1rem;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@media ${
|
|
57
|
+
@media ${d("XS")} {
|
|
58
58
|
grid-template-columns: 1fr;
|
|
59
59
|
gap: 0.75rem;
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`, q = g.a`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
gap: 0.5rem;
|
|
@@ -76,10 +76,10 @@ const z = R.div`
|
|
|
76
76
|
& .card-title {
|
|
77
77
|
font-size: 0.875rem;
|
|
78
78
|
font-weight: 600;
|
|
79
|
-
${
|
|
79
|
+
${M(2)}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
@media ${
|
|
82
|
+
@media ${d("S")} {
|
|
83
83
|
& img {
|
|
84
84
|
width: 8.875rem;
|
|
85
85
|
height: 8.875rem;
|
|
@@ -90,198 +90,117 @@ const z = R.div`
|
|
|
90
90
|
object-fit: cover;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`, A = P((t, n) => {
|
|
94
94
|
const {
|
|
95
95
|
uuid: o,
|
|
96
|
-
title:
|
|
96
|
+
title: i,
|
|
97
97
|
image: c,
|
|
98
|
-
sellerUuid:
|
|
99
|
-
onSelectCard:
|
|
98
|
+
sellerUuid: $,
|
|
99
|
+
onSelectCard: f = () => {
|
|
100
100
|
},
|
|
101
|
-
imageComponent:
|
|
102
|
-
metadata:
|
|
103
|
-
nameSlug:
|
|
104
|
-
LinkComponent:
|
|
105
|
-
} =
|
|
106
|
-
return /* @__PURE__ */
|
|
107
|
-
|
|
101
|
+
imageComponent: u,
|
|
102
|
+
metadata: a,
|
|
103
|
+
nameSlug: m,
|
|
104
|
+
LinkComponent: l
|
|
105
|
+
} = t, p = l || "a", S = N(null);
|
|
106
|
+
return /* @__PURE__ */ s(
|
|
107
|
+
q,
|
|
108
108
|
{
|
|
109
|
-
ref:
|
|
109
|
+
ref: S,
|
|
110
110
|
className: "product-card",
|
|
111
|
-
name:
|
|
112
|
-
"data-accessor":
|
|
113
|
-
onClick: (e) =>
|
|
114
|
-
as:
|
|
115
|
-
...
|
|
116
|
-
to: `/product/${
|
|
111
|
+
name: a == null ? void 0 : a.name,
|
|
112
|
+
"data-accessor": a == null ? void 0 : a.accessor,
|
|
113
|
+
onClick: (e) => f(e, n),
|
|
114
|
+
as: p,
|
|
115
|
+
...l ? {
|
|
116
|
+
to: `/product/${b(m) ? `${m}-` : ""}${o}`
|
|
117
117
|
} : {
|
|
118
|
-
href: `/product/${
|
|
118
|
+
href: `/product/${b(m) ? `${m}-` : ""}${o}`
|
|
119
119
|
},
|
|
120
120
|
children: [
|
|
121
|
-
|
|
122
|
-
/* @__PURE__ */ r("div", { className: "card-title", children:
|
|
121
|
+
z(u) ? u : /* @__PURE__ */ r(B, { src: c }),
|
|
122
|
+
/* @__PURE__ */ r("div", { className: "card-title", children: i })
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
|
-
}),
|
|
127
|
-
@media ${
|
|
126
|
+
}), E = g(_)`
|
|
127
|
+
@media ${d("S")} {
|
|
128
128
|
& .skeleton__banner {
|
|
129
129
|
height: 100%;
|
|
130
130
|
aspect-ratio: 1 / 1;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
134
|
-
/* @__PURE__ */ r(
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/* @__PURE__ */ r(s, { height: "2rem", children: /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" }) })
|
|
151
|
-
] }, `${a}-1`),
|
|
152
|
-
/* @__PURE__ */ t(
|
|
153
|
-
s,
|
|
154
|
-
{
|
|
155
|
-
gap: "0.5rem",
|
|
156
|
-
noGradient: !0,
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ r(
|
|
159
|
-
f,
|
|
160
|
-
{
|
|
161
|
-
height: "100%",
|
|
162
|
-
width: "100%",
|
|
163
|
-
borderRadius: "0.75rem"
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
167
|
-
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
168
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
169
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
170
|
-
] }),
|
|
171
|
-
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
172
|
-
]
|
|
173
|
-
},
|
|
174
|
-
`${a}-2`
|
|
175
|
-
),
|
|
176
|
-
/* @__PURE__ */ t(
|
|
177
|
-
s,
|
|
178
|
-
{
|
|
179
|
-
gap: "0.5rem",
|
|
180
|
-
noGradient: !0,
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ r(
|
|
183
|
-
f,
|
|
184
|
-
{
|
|
185
|
-
height: "100%",
|
|
186
|
-
width: "100%",
|
|
187
|
-
borderRadius: "0.75rem"
|
|
188
|
-
}
|
|
189
|
-
),
|
|
190
|
-
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
191
|
-
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
192
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
193
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
194
|
-
] }),
|
|
195
|
-
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
`${a}-3`
|
|
199
|
-
),
|
|
200
|
-
/* @__PURE__ */ t(
|
|
201
|
-
s,
|
|
202
|
-
{
|
|
203
|
-
gap: "0.5rem",
|
|
204
|
-
noGradient: !0,
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ r(
|
|
207
|
-
f,
|
|
208
|
-
{
|
|
209
|
-
height: "100%",
|
|
210
|
-
width: "100%",
|
|
211
|
-
borderRadius: "0.75rem"
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
215
|
-
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
216
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
217
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
`${a}-4`
|
|
223
|
-
)
|
|
224
|
-
] })
|
|
225
|
-
] }), F = ({
|
|
226
|
-
keyPrefix: a,
|
|
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) => {
|
|
133
|
+
`, F = ({ keyPrefix: t }) => /* @__PURE__ */ s(E, { children: [
|
|
134
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "10rem", className: "skeleton__banner" }),
|
|
135
|
+
/* @__PURE__ */ r(C, { children: [1, 2, 3, 4].map((n) => /* @__PURE__ */ s(D, { gap: "0.5rem", children: [
|
|
136
|
+
/* @__PURE__ */ r(I, { size: "6rem" }),
|
|
137
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1rem" }),
|
|
138
|
+
/* @__PURE__ */ s(C, { gap: "0.5rem", children: [
|
|
139
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" }),
|
|
140
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" })
|
|
141
|
+
] }),
|
|
142
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" })
|
|
143
|
+
] }, `${t}-${n}`)) })
|
|
144
|
+
] }), G = ({
|
|
145
|
+
keyPrefix: t,
|
|
146
|
+
isLoading: n = !1,
|
|
147
|
+
fallbackComponent: o = /* @__PURE__ */ r(v, {}),
|
|
148
|
+
children: i
|
|
149
|
+
}) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: n === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : i }), k = W(A), x = P((t, n) => {
|
|
231
150
|
const {
|
|
232
151
|
icon: o,
|
|
233
|
-
items:
|
|
152
|
+
items: i,
|
|
234
153
|
limit: c = 4,
|
|
235
|
-
imageUrl:
|
|
236
|
-
title:
|
|
237
|
-
isLoading:
|
|
238
|
-
getImage:
|
|
154
|
+
imageUrl: $,
|
|
155
|
+
title: f = "Season inspiration",
|
|
156
|
+
isLoading: u = !1,
|
|
157
|
+
getImage: a = () => {
|
|
239
158
|
},
|
|
240
|
-
componentName:
|
|
241
|
-
LinkComponent:
|
|
242
|
-
} =
|
|
159
|
+
componentName: m,
|
|
160
|
+
LinkComponent: l
|
|
161
|
+
} = t, p = R(), S = y(() => /* @__PURE__ */ r(v, { children: p === !0 ? i == null ? void 0 : i.map((e, w) => /* @__PURE__ */ r(
|
|
243
162
|
k,
|
|
244
163
|
{
|
|
245
164
|
title: e == null ? void 0 : e.name,
|
|
246
165
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
247
166
|
uuid: e == null ? void 0 : e.uuid,
|
|
248
167
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
249
|
-
image:
|
|
250
|
-
metadata: { name:
|
|
251
|
-
LinkComponent:
|
|
168
|
+
image: a(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
169
|
+
metadata: { name: m, accessor: e == null ? void 0 : e.accessor },
|
|
170
|
+
LinkComponent: l
|
|
252
171
|
},
|
|
253
|
-
|
|
254
|
-
)) :
|
|
172
|
+
w
|
|
173
|
+
)) : i == null ? void 0 : i.slice(0, c).map((e, w) => /* @__PURE__ */ r(
|
|
255
174
|
k,
|
|
256
175
|
{
|
|
257
176
|
title: e == null ? void 0 : e.name,
|
|
258
177
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
259
178
|
uuid: e == null ? void 0 : e.uuid,
|
|
260
179
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
261
|
-
image:
|
|
262
|
-
metadata: { name:
|
|
263
|
-
LinkComponent:
|
|
180
|
+
image: a(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
181
|
+
metadata: { name: m, accessor: e == null ? void 0 : e.accessor },
|
|
182
|
+
LinkComponent: l
|
|
264
183
|
},
|
|
265
|
-
|
|
266
|
-
)) }), [
|
|
267
|
-
return /* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */
|
|
269
|
-
|
|
270
|
-
/* @__PURE__ */ r("span", { children:
|
|
184
|
+
w
|
|
185
|
+
)) }), [i, p, c]);
|
|
186
|
+
return /* @__PURE__ */ s(j, { ref: n, children: [
|
|
187
|
+
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ s("div", { className: "regular-title-text", children: [
|
|
188
|
+
b(o) && /* @__PURE__ */ r("i", { className: o }),
|
|
189
|
+
/* @__PURE__ */ r("span", { children: f })
|
|
271
190
|
] }) }),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
|
|
191
|
+
/* @__PURE__ */ s(
|
|
192
|
+
G,
|
|
274
193
|
{
|
|
275
|
-
isLoading:
|
|
194
|
+
isLoading: u,
|
|
276
195
|
keyPrefix: "products-with-banner-skeleton",
|
|
277
196
|
children: [
|
|
278
|
-
/* @__PURE__ */ r(
|
|
279
|
-
/* @__PURE__ */ r(
|
|
197
|
+
/* @__PURE__ */ r(L, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: $ }) }),
|
|
198
|
+
/* @__PURE__ */ r(T, { limit: c, children: S })
|
|
280
199
|
]
|
|
281
200
|
}
|
|
282
201
|
)
|
|
283
202
|
] });
|
|
284
203
|
});
|
|
285
204
|
export {
|
|
286
|
-
|
|
205
|
+
x as default
|
|
287
206
|
};
|
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-DwHBgTPn.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("./utils-BK6B_Y9X.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
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-DfbrHHed.js";
|
|
4
|
-
import { c as a, d as x } from "./utils-
|
|
4
|
+
import { c as a, d as x } from "./utils-BUdHa0nB.js";
|
|
5
5
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const w = t.div`
|
|
7
7
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-BK6B_Y9X.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-BMAvJQBG.cjs"),b=g.styled.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
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-
|
|
3
|
+
import { t as _, n as b, l as w } from "./utils-BUdHa0nB.js";
|
|
4
4
|
import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
5
5
|
import { d as m } from "./breakpoints-BubDitvo.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-Cfeh8eHg.js";
|
|
8
|
-
import { S as q } from "./index-
|
|
8
|
+
import { S as q } from "./index-C6amCwRZ.js";
|
|
9
9
|
const k = g.div`
|
|
10
10
|
position: absolute;
|
|
11
11
|
top: 0;
|
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-BK6B_Y9X.cjs"),R=require("./Button.cjs"),Q=require("./emotion-styled.browser.esm-DwHBgTPn.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;
|
package/dist/QuizSection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { y as ae, l as te, m as J, s as ie } from "./utils-
|
|
3
|
+
import { y as ae, l as te, m as J, s as ie } from "./utils-BUdHa0nB.js";
|
|
4
4
|
import z from "./Button.js";
|
|
5
5
|
import { s as U } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
6
6
|
import { d as E } from "./breakpoints-BubDitvo.js";
|
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-DwHBgTPn.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),h=require("react"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-BK6B_Y9X.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-DfbrHHed.js";
|
|
4
|
-
import { e as b, d as N, f as P, c as i } from "./utils-
|
|
4
|
+
import { e as b, d as N, f as P, c as i } from "./utils-BUdHa0nB.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-DwHBgTPn.cjs"),r=require("react"),a=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),r=require("react"),a=require("./utils-BK6B_Y9X.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-DfbrHHed.js";
|
|
3
3
|
import { forwardRef as W, useRef as X, useState as f, useCallback as q, useEffect as N } from "react";
|
|
4
|
-
import { b as A, c as r, d as D, e as G } from "./utils-
|
|
4
|
+
import { b as A, c as r, d as D, e as G } from "./utils-BUdHa0nB.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
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),o=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./utils-BK6B_Y9X.cjs"),y=require("./ThemeProvider.cjs"),S=require("./index-ChHUGfjn.cjs"),m=require("./style-CQdEALKR.cjs"),k=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
color: var(--darkest-950);
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
font-weight: 600;
|
|
9
9
|
font-size: 1.5rem;
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,R=o.styled.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${
|
|
13
|
+
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
16
|
@media ${w.down("M")} {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
@media ${w.down("XS")} {
|
|
25
25
|
grid-template-columns: repeat(1, 1fr);
|
|
26
26
|
}
|
|
27
|
-
`,$=
|
|
27
|
+
`,$=o.styled.a`
|
|
28
28
|
padding-top: 5rem;
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
color: var(--gray-950);
|
|
32
|
-
`,C=
|
|
32
|
+
`,C=o.styled.div`
|
|
33
33
|
position: relative;
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
display: flex;
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
font-size: 1.375rem;
|
|
62
62
|
font-weight: 600;
|
|
63
63
|
color: var(--gray-950, #14161a);
|
|
64
|
-
${
|
|
64
|
+
${f.truncateText()}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& .cont-text {
|
|
68
|
-
${
|
|
68
|
+
${f.truncateTextInRows(2)}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
86
86
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
89
|
-
font-size: ${
|
|
90
|
-
line-height: ${
|
|
88
|
+
`,b=(r,n)=>f.getComponentPropValue(r.theme,"StarRating",r.color,r.disabled===!0?"disabled":"enabled",n),N=o.styled.div`
|
|
89
|
+
font-size: ${r=>b(r,"fontSize")};
|
|
90
|
+
line-height: ${r=>b(r,"lineHeight")};
|
|
91
91
|
line-height: 1.5rem;
|
|
92
92
|
width: fit-content;
|
|
93
93
|
display: flex;
|
|
@@ -104,33 +104,29 @@
|
|
|
104
104
|
font-weight: 400;
|
|
105
105
|
font-size: 0.75rem;
|
|
106
106
|
line-height: 1.5rem;
|
|
107
|
-
color: ${
|
|
107
|
+
color: ${r=>r.color};
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,z=o.styled.span`
|
|
110
110
|
position: absolute;
|
|
111
111
|
z-index: 1;
|
|
112
112
|
display: block;
|
|
113
113
|
top: 0;
|
|
114
114
|
left: 0;
|
|
115
115
|
overflow: hidden;
|
|
116
|
-
width: ${
|
|
116
|
+
width: ${r=>r.width}%;
|
|
117
117
|
|
|
118
|
-
color: ${
|
|
119
|
-
`,
|
|
118
|
+
color: ${r=>f.getColorRgbaValue(r.theme,"StarRating",r.color,r.disabled===!0?"disabled":"enabled","filledColor")};
|
|
119
|
+
`,q=o.styled.span`
|
|
120
120
|
padding: 0;
|
|
121
121
|
display: block;
|
|
122
122
|
z-index: 0;
|
|
123
|
-
color: ${
|
|
124
|
-
`,
|
|
123
|
+
color: ${r=>r.color};
|
|
124
|
+
`,M=p.forwardRef((r,n)=>{const{rating:s=0,reviewCount:i=null,disabled:a=!1,tabIndex:l=0,className:g="",style:h={},color:d="primary",size:u="large"}=r,{theme:e}=y.useTheme(),c={theme:e,color:d,size:u,style:h,disabled:a},j=s/5*100;return t.jsxs(N,{ref:n,tabIndex:l,...c,className:`star-rating ${g}`,children:[t.jsxs("div",{className:"rating",children:[t.jsx(z,{className:"filled-stars",...c,width:j,children:"★★★★★"}),t.jsx(q,{...c,children:"★★★★★"})]}),!isNaN(i)&&Number.isFinite(i)&&t.jsx("div",{className:"review-count",children:`(${i.toLocaleString()})`})]})}),P=p.forwardRef((r,n)=>{const{image:s,text:i,title:a,link:l,rating:g,onSelectCard:h=()=>{},LinkComponent:d}=r,u=d||"a";return t.jsx($,{ref:n,className:"review-card",onClick:h,as:u,...d?{to:`/${l}`}:{href:`/${l}`},children:t.jsxs(C,{children:[t.jsx(S.ProductImageWrapper,{src:s}),t.jsxs("div",{className:"cont",children:[t.jsx("span",{className:"cont-title",children:a}),t.jsx("div",{className:"cont-text",children:i})]}),t.jsx(M,{color:"warning",rating:g})]})})}),F=o.styled(m.SkeletonAnimationContainer)`
|
|
125
125
|
@media ${w.down("S")} {
|
|
126
126
|
flex-direction: column;
|
|
127
127
|
|
|
128
128
|
& > div {
|
|
129
129
|
flex-direction: column;
|
|
130
|
-
|
|
131
|
-
& > div {
|
|
132
|
-
${i.skeletonGradientBackground}
|
|
133
|
-
}
|
|
134
130
|
}
|
|
135
131
|
}
|
|
136
|
-
`,
|
|
132
|
+
`,L=({keyPrefix:r})=>t.jsx(F,{children:[1,2,3].map(n=>t.jsxs(m.SkeletonColumnContainer,{children:[t.jsx(m.SkeletonSquare,{size:"6.25rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"2rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"1rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"1rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${r}-${n}`))}),T=({keyPrefix:r,isLoading:n=!1,fallbackComponent:s=t.jsx(t.Fragment,{}),children:i})=>t.jsx(p.Suspense,{fallbackComponent:s,children:n===!0?t.jsx(L,{keyPrefix:r}):i}),v=p.memo(P),W=p.forwardRef((r,n)=>{const{title:s="Electronics reviews",items:i,limit:a=3,onSelectCard:l=()=>{},isLoading:g=!1,LinkComponent:h}=r,d=x.useDetectMobile(),u=p.useMemo(()=>t.jsx(t.Fragment,{children:d===!0?i==null?void 0:i.map((e,c)=>t.jsx(v,{text:e==null?void 0:e.text,title:e==null?void 0:e.title,image:e==null?void 0:e.image,link:e==null?void 0:e.link,rating:e==null?void 0:e.ratingArithmeticMean,onSelectCard:()=>l(e),LinkComponent:h},c)):i==null?void 0:i.slice(0,a).map((e,c)=>t.jsx(v,{text:e==null?void 0:e.text,title:e==null?void 0:e.title,image:e==null?void 0:e.image,link:e==null?void 0:e.link,rating:e==null?void 0:e.ratingArithmeticMean,onSelectCard:()=>l(e),LinkComponent:h},c))}),[i,d,a]);return t.jsxs(k,{ref:n,children:[t.jsx("div",{className:"container-title",children:s}),t.jsx(T,{isLoading:g,keyPrefix:"reviews-skeleton",children:t.jsx(R,{limit:a,children:u})})]})});module.exports=W;
|