@lanaco/lnc-react-ui 4.0.170 → 4.0.171
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.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-BU6DPCvJ.js +0 -652
- package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { o as
|
|
7
|
-
import
|
|
8
|
-
import { P as
|
|
9
|
-
|
|
1
|
+
import { jsxs as f, jsx as t, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useRef as S, Suspense as v } from "react";
|
|
3
|
+
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as u } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { o as k } from "./utils-DHfRApMf.js";
|
|
7
|
+
import $ from "./Button.js";
|
|
8
|
+
import { P as R } from "./index-BbltNcou.js";
|
|
9
|
+
import { a as T, b as h } from "./style-CXMUA6cI.js";
|
|
10
|
+
const B = d.div`
|
|
10
11
|
display: grid;
|
|
11
|
-
grid-template-columns: ${(
|
|
12
|
+
grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
|
|
12
13
|
gap: 1.25rem;
|
|
13
14
|
margin: auto;
|
|
14
15
|
width: fit-content;
|
|
15
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${u + "px"}) {
|
|
16
17
|
grid-template-columns: repeat(1, 1fr);
|
|
17
18
|
}
|
|
18
|
-
`,
|
|
19
|
+
`, I = d.div`
|
|
19
20
|
display: flex;
|
|
20
21
|
flex-direction: column;
|
|
21
22
|
width: 100%;
|
|
@@ -51,19 +52,10 @@ const P = f.div`
|
|
|
51
52
|
object-fit: cover;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
max-width: 6rem;
|
|
56
|
-
min-width: 6rem;
|
|
57
|
-
min-height: 6rem;
|
|
58
|
-
max-height: 6rem;
|
|
59
|
-
border-radius: 0.75rem;
|
|
60
|
-
background-color: ${C("-90deg")};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media (max-width: ${b + "px"}) {
|
|
55
|
+
@media (max-width: ${u + "px"}) {
|
|
64
56
|
max-width: unset;
|
|
65
57
|
}
|
|
66
|
-
`,
|
|
58
|
+
`, W = d.div`
|
|
67
59
|
text-align: center;
|
|
68
60
|
display: flex;
|
|
69
61
|
flex-direction: column;
|
|
@@ -78,122 +70,137 @@ const P = f.div`
|
|
|
78
70
|
line-height: 1.75rem;
|
|
79
71
|
}
|
|
80
72
|
|
|
81
|
-
& .skeleton-title {
|
|
82
|
-
height: 1.75rem;
|
|
83
|
-
width: 80%;
|
|
84
|
-
background-color: ${C("-90deg")};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
73
|
& .text-wr {
|
|
88
74
|
font-size: 0.875rem;
|
|
89
75
|
font-style: normal;
|
|
90
76
|
font-weight: 400;
|
|
91
77
|
line-height: 1.25rem;
|
|
92
78
|
letter-spacing: 0.0156rem;
|
|
93
|
-
${
|
|
79
|
+
${k(3)}
|
|
94
80
|
}
|
|
95
|
-
`,
|
|
96
|
-
const { title:
|
|
97
|
-
|
|
81
|
+
`, b = C((r, m) => {
|
|
82
|
+
const { title: i, image: o, text: l, buttonText: c, onCardClick: s, metadata: n } = r, e = S(), a = (p) => {
|
|
83
|
+
s(p, e);
|
|
98
84
|
};
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
|
|
85
|
+
return /* @__PURE__ */ f(
|
|
86
|
+
I,
|
|
101
87
|
{
|
|
102
88
|
ref: e,
|
|
103
|
-
name:
|
|
104
|
-
"data-accessor":
|
|
89
|
+
name: n == null ? void 0 : n.name,
|
|
90
|
+
"data-accessor": n == null ? void 0 : n.accessor,
|
|
105
91
|
className: "blog-card",
|
|
106
|
-
onClick:
|
|
92
|
+
onClick: a,
|
|
107
93
|
children: [
|
|
108
|
-
/* @__PURE__ */ t(
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */ t("div", { className: "text-wr-title", children:
|
|
111
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
94
|
+
/* @__PURE__ */ t(R, { src: o }),
|
|
95
|
+
/* @__PURE__ */ f(W, { children: [
|
|
96
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: i }),
|
|
97
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: l })
|
|
112
98
|
] }),
|
|
113
99
|
/* @__PURE__ */ t(
|
|
114
|
-
|
|
100
|
+
$,
|
|
115
101
|
{
|
|
116
102
|
borderRadius: "curved",
|
|
117
103
|
color: "gray",
|
|
118
104
|
type: "button",
|
|
119
105
|
btnType: "outline",
|
|
120
|
-
onClick:
|
|
106
|
+
onClick: a,
|
|
121
107
|
size: "medium",
|
|
122
|
-
children:
|
|
108
|
+
children: c
|
|
123
109
|
}
|
|
124
110
|
)
|
|
125
111
|
]
|
|
126
112
|
}
|
|
127
113
|
);
|
|
128
|
-
}),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
children: i,
|
|
145
|
-
fallbackComponent: l = /* @__PURE__ */ t(h, {}),
|
|
146
|
-
isLoading: r = !1,
|
|
147
|
-
limit: o,
|
|
148
|
-
keyPrefix: n
|
|
149
|
-
}) => /* @__PURE__ */ t(S, { fallbackComponent: l, children: r === !0 ? /* @__PURE__ */ t(
|
|
150
|
-
z,
|
|
151
|
-
{
|
|
152
|
-
isLoading: r,
|
|
153
|
-
limit: o,
|
|
154
|
-
keyPrefix: n
|
|
114
|
+
}), j = d(T)`
|
|
115
|
+
@media (max-width: ${u + "px"}) {
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
|
|
118
|
+
& > div {
|
|
119
|
+
width: 100%;
|
|
120
|
+
|
|
121
|
+
background: linear-gradient(
|
|
122
|
+
to right,
|
|
123
|
+
transparent 0%,
|
|
124
|
+
#f4f6fb 40%,
|
|
125
|
+
#f4f6fb 100%
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
box-shadow: none;
|
|
129
|
+
}
|
|
155
130
|
}
|
|
156
|
-
|
|
131
|
+
`, z = ({ keyPrefix: r }) => /* @__PURE__ */ f(j, { justifyContent: "center", alignItems: "center", children: [
|
|
132
|
+
/* @__PURE__ */ t(
|
|
133
|
+
h,
|
|
134
|
+
{
|
|
135
|
+
height: "24.75rem",
|
|
136
|
+
width: "18.5rem",
|
|
137
|
+
borderRadius: "0.75rem"
|
|
138
|
+
},
|
|
139
|
+
`${r}-1`
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ t(
|
|
142
|
+
h,
|
|
143
|
+
{
|
|
144
|
+
height: "24.75rem",
|
|
145
|
+
width: "18.5rem",
|
|
146
|
+
borderRadius: "0.75rem"
|
|
147
|
+
},
|
|
148
|
+
`${r}-2`
|
|
149
|
+
),
|
|
150
|
+
/* @__PURE__ */ t(
|
|
151
|
+
h,
|
|
152
|
+
{
|
|
153
|
+
height: "24.75rem",
|
|
154
|
+
width: "18.5rem",
|
|
155
|
+
borderRadius: "0.75rem"
|
|
156
|
+
},
|
|
157
|
+
`${r}-3`
|
|
158
|
+
)
|
|
159
|
+
] }), M = ({
|
|
160
|
+
keyPrefix: r,
|
|
161
|
+
isLoading: m = !1,
|
|
162
|
+
fallbackComponent: i = /* @__PURE__ */ t(w, {}),
|
|
163
|
+
children: o
|
|
164
|
+
}) => /* @__PURE__ */ t(v, { fallbackComponent: i, children: m === !0 ? /* @__PURE__ */ t(z, { keyPrefix: r }) : o }), X = C((r, m) => {
|
|
157
165
|
const {
|
|
158
|
-
items:
|
|
166
|
+
items: i,
|
|
159
167
|
limit: o = 3,
|
|
160
|
-
onSelectCard:
|
|
168
|
+
onSelectCard: l = () => {
|
|
161
169
|
},
|
|
162
|
-
isLoading:
|
|
163
|
-
componentName:
|
|
164
|
-
} =
|
|
165
|
-
return /* @__PURE__ */ t(
|
|
166
|
-
|
|
170
|
+
isLoading: c = !1,
|
|
171
|
+
componentName: s
|
|
172
|
+
} = r, n = y();
|
|
173
|
+
return /* @__PURE__ */ t(
|
|
174
|
+
M,
|
|
167
175
|
{
|
|
168
|
-
isLoading:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
w,
|
|
176
|
+
isLoading: c,
|
|
177
|
+
keyPrefix: "blogs-simple-centered-skeleton",
|
|
178
|
+
children: /* @__PURE__ */ t(B, { ref: m, limit: o, children: /* @__PURE__ */ t(w, { children: n === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ t(
|
|
179
|
+
b,
|
|
173
180
|
{
|
|
174
181
|
title: e == null ? void 0 : e.title,
|
|
175
182
|
image: (e == null ? void 0 : e.image) || null,
|
|
176
183
|
text: e == null ? void 0 : e.text,
|
|
177
184
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
178
|
-
onCardClick: (
|
|
179
|
-
metadata: { name:
|
|
185
|
+
onCardClick: (p, g) => l(e, g),
|
|
186
|
+
metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
|
|
180
187
|
},
|
|
181
|
-
|
|
182
|
-
)) :
|
|
183
|
-
|
|
188
|
+
a
|
|
189
|
+
)) : i == null ? void 0 : i.slice(0, o).map((e, a) => /* @__PURE__ */ t(
|
|
190
|
+
b,
|
|
184
191
|
{
|
|
185
192
|
title: e == null ? void 0 : e.title,
|
|
186
193
|
image: (e == null ? void 0 : e.image) || null,
|
|
187
194
|
text: e == null ? void 0 : e.text,
|
|
188
195
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
189
|
-
onCardClick: (
|
|
190
|
-
metadata: { name:
|
|
196
|
+
onCardClick: (p, g) => l(e, g),
|
|
197
|
+
metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
|
|
191
198
|
},
|
|
192
|
-
|
|
193
|
-
)) })
|
|
199
|
+
a
|
|
200
|
+
)) }) })
|
|
194
201
|
}
|
|
195
|
-
)
|
|
202
|
+
);
|
|
196
203
|
});
|
|
197
204
|
export {
|
|
198
|
-
|
|
205
|
+
X as default
|
|
199
206
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),b=require("./utils-Dl9xPH4c.cjs"),W=require("./style-Db3VFbfP.cjs"),T=require("./Button.cjs"),E=require("./Link.cjs"),I=require("./index-BueKsXT8.cjs"),M=require("./index-BvQx3xAm.cjs"),n=require("./style-BAcV7F53.cjs"),P=j.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,O=j.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
width: 100%;
|
|
12
12
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -33,22 +33,13 @@
|
|
|
33
33
|
object-fit: cover;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
& .skeleton-img {
|
|
37
|
-
max-width: 3.3125rem;
|
|
38
|
-
min-width: 3.3125rem;
|
|
39
|
-
min-height: 3.3125rem;
|
|
40
|
-
max-height: 3.3125rem;
|
|
41
|
-
border-radius: 0.75rem;
|
|
42
|
-
background-color: ${m.linearGradientAnimation("-90deg")};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
36
|
& a {
|
|
46
37
|
margin-top: auto;
|
|
47
38
|
}
|
|
48
39
|
|
|
49
|
-
@media (max-width: ${
|
|
40
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
50
41
|
}
|
|
51
|
-
`,
|
|
42
|
+
`,z=j.styled.div`
|
|
52
43
|
display: flex;
|
|
53
44
|
flex-direction: column;
|
|
54
45
|
gap: 0.5rem;
|
|
@@ -59,22 +50,33 @@
|
|
|
59
50
|
font-size: 1rem;
|
|
60
51
|
}
|
|
61
52
|
|
|
62
|
-
& .skeleton-title {
|
|
63
|
-
height: 1.5rem;
|
|
64
|
-
width: 80%;
|
|
65
|
-
background-color: ${m.linearGradientAnimation("-90deg")};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
& .skeleton-action {
|
|
69
|
-
height: 1.25rem;
|
|
70
|
-
width: 20%;
|
|
71
|
-
background-color: ${m.linearGradientAnimation("-90deg")};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
53
|
& .text-wr {
|
|
75
54
|
font-weight: 400;
|
|
76
55
|
font-size: 0.875rem;
|
|
77
56
|
color: var(--gray-700, #4e555f);
|
|
78
|
-
${
|
|
57
|
+
${b.truncateTextInRows(3)}
|
|
58
|
+
}
|
|
59
|
+
`,D=a.forwardRef((r,m)=>{const{title:l,imageUrl:c,text:s,buttonText:u,onCardClick:d,metadata:i}=r,h=a.useRef(),p=g=>{d(g,h)};return t.jsxs(O,{ref:h,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:p,children:[t.jsxs(z,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:s}),t.jsx(E,{color:"gray",onClick:p,children:u})]}),t.jsx(I.ProductImageWrapper,{src:c})]})}),F=j.styled(n.SkeletonColumnWrapper)`
|
|
60
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
61
|
+
& .skeleton__tags {
|
|
62
|
+
& > div {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
& .skeleton__cards {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
|
|
70
|
+
& > div {
|
|
71
|
+
background: linear-gradient(
|
|
72
|
+
to right,
|
|
73
|
+
transparent 0%,
|
|
74
|
+
#f4f6fb 40%,
|
|
75
|
+
#f4f6fb 100%
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
79
81
|
}
|
|
80
|
-
`,
|
|
82
|
+
`,A=({keyPrefix:r})=>t.jsxs(F,{children:[t.jsxs(n.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(n.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),U=({keyPrefix:r,isLoading:m=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:m===!0?t.jsx(A,{keyPrefix:r}):c}),C=a.memo(D),X=a.forwardRef((r,m)=>{const{icon:l,title:c,items:s,buttonText:u,limit:d=3,options:i,selectedOption:h=[],onButtonAction:p=()=>{},buttonLink:g,onSelectOption:k=()=>{},onSelectAll:_=()=>{},isLoading:v=!1,onSelectCard:f=()=>{},productsToolbarName:$="All",allButton:N=!1,componentName:y}=r,R=L.useDetectMobile(),q=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?s==null?void 0:s.map((e,S)=>t.jsx(C,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(B,w)=>f(e,w),metadata:{name:y,accessor:e==null?void 0:e.accessor}},S)):(o=s==null?void 0:s.slice(0,d))==null?void 0:o.map((e,S)=>t.jsx(C,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(B,w)=>f(e,w),metadata:{name:y,accessor:e==null?void 0:e.accessor}},S))})},[s,R,d,f]);return t.jsxs(W.TitleWithOptionsSectionWrapper,{ref:m,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),b.isDefinedNotEmptyString(u)&&b.isDefinedNotEmptyString(g)&&!v&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),p(g)},borderRadius:"curved",children:u})]}),t.jsxs(U,{isLoading:v,keyPrefix:"blogs-with-filters-skeleton",children:[(i==null?void 0:i.length)>0&&t.jsx(M.SelectBar,{items:i,selectedIds:h,onRemove:o=>{k(o)},onSelect:o=>{k(o)},onSelectAll:_,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:$,allButton:N}),t.jsx(P,{limit:d,children:q})]})]})});module.exports=X;
|