@lanaco/lnc-react-ui 4.0.39 → 4.0.40
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/BannerSectionBasic.cjs +9 -9
- package/dist/BannerSectionBasic.js +20 -20
- package/dist/BannerSectionCarousel.cjs +13 -5
- package/dist/BannerSectionCarousel.js +29 -21
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +6 -6
- package/dist/BannerSectionSimple.cjs +4 -4
- package/dist/BannerSectionSimple.js +41 -38
- package/dist/BannerSectionWithList.cjs +4 -4
- package/dist/BannerSectionWithList.js +17 -17
- package/dist/BannerSectionWithListImage.cjs +5 -5
- package/dist/BannerSectionWithListImage.js +41 -38
- package/dist/BlogsSectionDetailed.cjs +10 -10
- package/dist/BlogsSectionDetailed.js +32 -33
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +20 -20
- package/dist/BlogsSectionSimpleCentered.cjs +6 -6
- package/dist/BlogsSectionSimpleCentered.js +9 -9
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +65 -64
- package/dist/BrandHitsSection.cjs +12 -7
- package/dist/BrandHitsSection.js +10 -5
- package/dist/CalorieCalculatorSection.cjs +7 -8
- package/dist/CalorieCalculatorSection.js +31 -32
- package/dist/CustomLoanMapSection.cjs +2 -2
- package/dist/CustomLoanMapSection.js +13 -13
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
- package/dist/GeneralWithTagsCardsSection.cjs +18 -6
- package/dist/GeneralWithTagsCardsSection.js +44 -31
- package/dist/GiftCardsSection.cjs +9 -5
- package/dist/GiftCardsSection.js +21 -17
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +21 -1
- package/dist/MasonryGeneralCardsSection.js +20 -0
- package/dist/OverlayGeneralCardsSection.cjs +52 -96
- package/dist/OverlayGeneralCardsSection.js +116 -165
- package/dist/ProductsWithBannerSection.cjs +5 -5
- package/dist/ProductsWithBannerSection.js +26 -26
- package/dist/SalesCampaignsSection.cjs +17 -17
- package/dist/SalesCampaignsSection.js +81 -81
- package/dist/ShopCardsSection.cjs +19 -9
- package/dist/ShopCardsSection.js +54 -40
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
- package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
- package/dist/index-Dn5tPLgP.cjs +95 -0
- package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
- package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
- package/package.json +1 -1
- package/dist/index-Q_i-aqsF.cjs +0 -95
package/dist/ShopCardsSection.js
CHANGED
|
@@ -2,16 +2,17 @@ import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as c, Fragment as y } from "react";
|
|
3
3
|
import u from "./Button.js";
|
|
4
4
|
import N from "./Icon.js";
|
|
5
|
-
import { t as x, m as v, l as b } from "./utils-DtRLzzTZ.js";
|
|
5
|
+
import { t as x, m as v, l as b, k } from "./utils-DtRLzzTZ.js";
|
|
6
6
|
import { n as f } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
7
|
-
import { M as
|
|
8
|
-
const
|
|
7
|
+
import { M as $ } from "./consts-C1uHV4xc.js";
|
|
8
|
+
const S = f.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: center;
|
|
12
12
|
border-radius: 1.25rem;
|
|
13
13
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
14
14
|
background: var(--Lanaco-Gray-white, #fff);
|
|
15
|
+
width: 100%;
|
|
15
16
|
|
|
16
17
|
/* drop-shadow-sm */
|
|
17
18
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
@@ -158,26 +159,26 @@ const $ = f.div`
|
|
|
158
159
|
width: 100%;
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
|
-
`,
|
|
162
|
+
`, z = c(
|
|
162
163
|
({
|
|
163
164
|
image: a,
|
|
164
165
|
imageComponent: m,
|
|
165
166
|
title: l,
|
|
166
|
-
subtitle:
|
|
167
|
-
badges:
|
|
167
|
+
subtitle: g,
|
|
168
|
+
badges: d,
|
|
168
169
|
rating: o,
|
|
169
|
-
reviewCount:
|
|
170
|
-
products:
|
|
171
|
-
onSelectCard:
|
|
170
|
+
reviewCount: n,
|
|
171
|
+
products: s,
|
|
172
|
+
onSelectCard: _ = () => {
|
|
172
173
|
}
|
|
173
|
-
}, w) => /* @__PURE__ */ t(
|
|
174
|
+
}, w) => /* @__PURE__ */ t(S, { onClick: _, children: [
|
|
174
175
|
/* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
175
176
|
b(m) ? m : /* @__PURE__ */ i("img", { src: a, className: "wrapper__image" }),
|
|
176
177
|
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
177
178
|
/* @__PURE__ */ i("div", { className: "wrapper__title", children: l }),
|
|
178
|
-
/* @__PURE__ */ i("div", { className: "wrapper__subtitle", children:
|
|
179
|
-
|
|
180
|
-
o &&
|
|
179
|
+
/* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: g }),
|
|
180
|
+
d && /* @__PURE__ */ i("div", { className: "wrapper__badges" }),
|
|
181
|
+
o && n && /* @__PURE__ */ t("div", { className: "wrapper__rating", children: [
|
|
181
182
|
/* @__PURE__ */ i("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((r, p) => /* @__PURE__ */ i(
|
|
182
183
|
N,
|
|
183
184
|
{
|
|
@@ -188,13 +189,13 @@ const $ = f.div`
|
|
|
188
189
|
)) }),
|
|
189
190
|
/* @__PURE__ */ t("div", { className: "wrapper__review-count", children: [
|
|
190
191
|
"(",
|
|
191
|
-
|
|
192
|
+
n == null ? void 0 : n.toLocaleString(),
|
|
192
193
|
")"
|
|
193
194
|
] })
|
|
194
195
|
] })
|
|
195
196
|
] })
|
|
196
197
|
] }),
|
|
197
|
-
/* @__PURE__ */ i("div", { className: "wrapper__products", children:
|
|
198
|
+
/* @__PURE__ */ i("div", { className: "wrapper__products", children: s && (s == null ? void 0 : s.map((r, p) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ i(
|
|
198
199
|
"div",
|
|
199
200
|
{
|
|
200
201
|
className: "wrapper__product",
|
|
@@ -206,7 +207,7 @@ const $ = f.div`
|
|
|
206
207
|
}
|
|
207
208
|
) }, p))) })
|
|
208
209
|
] })
|
|
209
|
-
),
|
|
210
|
+
), C = c(({}, a) => /* @__PURE__ */ i(j, { children: /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
210
211
|
/* @__PURE__ */ i("div", { className: "wrapper__image" }),
|
|
211
212
|
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
212
213
|
/* @__PURE__ */ i("div", { className: "wrapper__info-item" }),
|
|
@@ -214,7 +215,7 @@ const $ = f.div`
|
|
|
214
215
|
/* @__PURE__ */ i("div", { className: "wrapper__info-item" }),
|
|
215
216
|
/* @__PURE__ */ i("div", { className: "wrapper__info-item" })
|
|
216
217
|
] })
|
|
217
|
-
] }) })),
|
|
218
|
+
] }) })), M = f.div`
|
|
218
219
|
display: flex;
|
|
219
220
|
flex-direction: column;
|
|
220
221
|
align-items: flex-start;
|
|
@@ -238,6 +239,15 @@ const $ = f.div`
|
|
|
238
239
|
font-weight: 600;
|
|
239
240
|
line-height: 2rem;
|
|
240
241
|
letter-spacing: -0.47px;
|
|
242
|
+
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
gap: 0.5rem;
|
|
246
|
+
|
|
247
|
+
& i {
|
|
248
|
+
font-size: 1.5rem;
|
|
249
|
+
color: var(--primary-500, #f59e0b);
|
|
250
|
+
}
|
|
241
251
|
}
|
|
242
252
|
|
|
243
253
|
& .title__action {
|
|
@@ -273,7 +283,7 @@ const $ = f.div`
|
|
|
273
283
|
width: 100%;
|
|
274
284
|
}
|
|
275
285
|
|
|
276
|
-
@media (max-width: ${
|
|
286
|
+
@media (max-width: ${$ + "px"}) {
|
|
277
287
|
& .wrapper__heading {
|
|
278
288
|
& .wrapper__title {
|
|
279
289
|
& .title__action {
|
|
@@ -294,48 +304,52 @@ const $ = f.div`
|
|
|
294
304
|
gap: 1rem;
|
|
295
305
|
}
|
|
296
306
|
}
|
|
297
|
-
`,
|
|
307
|
+
`, A = c(
|
|
298
308
|
({
|
|
299
309
|
title: a,
|
|
300
310
|
subtitle: m,
|
|
301
311
|
items: l,
|
|
302
|
-
limit:
|
|
303
|
-
limitForMobile:
|
|
304
|
-
|
|
305
|
-
onSelectCard:
|
|
312
|
+
limit: g = 4,
|
|
313
|
+
limitForMobile: d = 2,
|
|
314
|
+
buttonText: o = "Show More",
|
|
315
|
+
onSelectCard: n = () => {
|
|
316
|
+
},
|
|
317
|
+
onButtonAction: s = () => {
|
|
306
318
|
},
|
|
307
|
-
|
|
308
|
-
},
|
|
319
|
+
icon: _
|
|
320
|
+
}, w) => {
|
|
309
321
|
var p;
|
|
310
|
-
const
|
|
311
|
-
n == null || n();
|
|
312
|
-
}, r = (e) => {
|
|
313
|
-
s == null || s(e == null ? void 0 : e.uuid);
|
|
322
|
+
const r = (e) => {
|
|
323
|
+
n == null || n(e == null ? void 0 : e.uuid);
|
|
314
324
|
};
|
|
315
325
|
return /* @__PURE__ */ t(
|
|
316
|
-
|
|
326
|
+
M,
|
|
317
327
|
{
|
|
318
|
-
|
|
319
|
-
|
|
328
|
+
ref: w,
|
|
329
|
+
limitCards: g,
|
|
330
|
+
limitCardsForMobile: d,
|
|
320
331
|
children: [
|
|
321
332
|
/* @__PURE__ */ t("div", { className: "wrapper__heading", children: [
|
|
322
333
|
/* @__PURE__ */ t("div", { className: "wrapper__title", children: [
|
|
323
|
-
a && /* @__PURE__ */
|
|
324
|
-
|
|
334
|
+
a && /* @__PURE__ */ t("div", { className: "title__text", children: [
|
|
335
|
+
k(_) && /* @__PURE__ */ i("i", { className: _ }),
|
|
336
|
+
/* @__PURE__ */ i("span", { children: a })
|
|
337
|
+
] }),
|
|
338
|
+
s && /* @__PURE__ */ i(
|
|
325
339
|
u,
|
|
326
340
|
{
|
|
327
341
|
text: o,
|
|
328
342
|
borderRadius: "curved",
|
|
329
343
|
btnType: "tinted",
|
|
330
344
|
className: "title__action",
|
|
331
|
-
onClick:
|
|
345
|
+
onClick: s
|
|
332
346
|
}
|
|
333
347
|
)
|
|
334
348
|
] }),
|
|
335
349
|
m && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: m })
|
|
336
350
|
] }),
|
|
337
|
-
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: l && (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((e,
|
|
338
|
-
|
|
351
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: l && (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((e, h) => /* @__PURE__ */ i(
|
|
352
|
+
z,
|
|
339
353
|
{
|
|
340
354
|
uuid: e == null ? void 0 : e.uuid,
|
|
341
355
|
title: e == null ? void 0 : e.title,
|
|
@@ -347,13 +361,13 @@ const $ = f.div`
|
|
|
347
361
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
348
362
|
onSelectCard: () => r == null ? void 0 : r(e)
|
|
349
363
|
},
|
|
350
|
-
`shop-card__${
|
|
351
|
-
)) : (p = Array.from("1234")) == null ? void 0 : p.map((e,
|
|
364
|
+
`shop-card__${h + 1}`
|
|
365
|
+
)) : (p = Array.from("1234")) == null ? void 0 : p.map((e, h) => /* @__PURE__ */ i(C, {}, `shop-card-skeleton__${h + 1}`)) })
|
|
352
366
|
]
|
|
353
367
|
}
|
|
354
368
|
);
|
|
355
369
|
}
|
|
356
370
|
);
|
|
357
371
|
export {
|
|
358
|
-
|
|
372
|
+
A as default
|
|
359
373
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),f=require("./consts-CtNoHdBj.cjs"),S=require("./useDetectMobile-D6d5LpdL.cjs"),d=require("./utils-NZLCh-J5.cjs"),k=require("./style-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),f=require("./consts-CtNoHdBj.cjs"),S=require("./useDetectMobile-D6d5LpdL.cjs"),d=require("./utils-NZLCh-J5.cjs"),k=require("./style-DN1qT8BE.cjs"),x=require("./Button.cjs"),C=p.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>"repeat(6, minmax(0, 1fr))"};
|
|
4
4
|
gap: 2rem;
|
|
@@ -4,7 +4,7 @@ import { n as b } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
|
4
4
|
import { M as v } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as E } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
6
|
import { t as h, m as I, k as f } from "./utils-DtRLzzTZ.js";
|
|
7
|
-
import { R as P } from "./style-
|
|
7
|
+
import { R as P } from "./style-CiePxaJ_.js";
|
|
8
8
|
import T from "./Button.js";
|
|
9
9
|
const j = b.div`
|
|
10
10
|
display: grid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),k=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./consts-CtNoHdBj.cjs"),P=require("./useDetectMobile-D6d5LpdL.cjs"),g=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),k=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./consts-CtNoHdBj.cjs"),P=require("./useDetectMobile-D6d5LpdL.cjs"),g=require("./index-DHJmdMN8.cjs"),q=require("./index-Dit169OA.cjs"),M=k.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(6, 1fr);
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,7 +3,7 @@ import { forwardRef as f, Suspense as y, memo as M, useMemo as v } from "react";
|
|
|
3
3
|
import { n as U } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as B } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as C } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
-
import { S as T, a as _ } from "./index-
|
|
6
|
+
import { S as T, a as _ } from "./index-BT55M3t6.js";
|
|
7
7
|
import { T as $ } from "./index-DxdBg_r_.js";
|
|
8
8
|
const j = U.div`
|
|
9
9
|
display: grid;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import _, { useState as
|
|
3
|
-
import { P as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as i, jsxs as d, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import _, { useState as w, useRef as F, useEffect as j, useImperativeHandle as P, forwardRef as q } from "react";
|
|
3
|
+
import { P as r } from "./index-S5Cd7WrG.js";
|
|
4
|
+
import U from "./FlexBox.js";
|
|
5
5
|
import W from "./IconButton.js";
|
|
6
|
-
import { useTheme as
|
|
7
|
-
import { n as
|
|
6
|
+
import { useTheme as X } from "./ThemeProvider.js";
|
|
7
|
+
import { n as Z } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
8
8
|
import { M as C } from "./consts-C1uHV4xc.js";
|
|
9
9
|
import { u as J } from "./useDetectMobile-BC6EGaBc.js";
|
|
10
10
|
import { I as H } from "./index-wy-PXQR9.js";
|
|
11
11
|
import V from "./Button.js";
|
|
12
12
|
import Q from "./Icon.js";
|
|
13
13
|
import { l as Y } from "./utils-DtRLzzTZ.js";
|
|
14
|
-
const
|
|
14
|
+
const ee = Z.div`
|
|
15
15
|
position: relative;
|
|
16
16
|
padding: ${(e) => e.padding};
|
|
17
17
|
|
|
@@ -108,35 +108,35 @@ const rr = q.div`
|
|
|
108
108
|
`, L = _.forwardRef(
|
|
109
109
|
({
|
|
110
110
|
columnGap: e = "2rem",
|
|
111
|
-
rowGap:
|
|
112
|
-
scrollBySize:
|
|
113
|
-
wrapForMobile:
|
|
111
|
+
rowGap: v = "1.25rem",
|
|
112
|
+
scrollBySize: f = 300,
|
|
113
|
+
wrapForMobile: y = !1,
|
|
114
114
|
wrap: n = !1,
|
|
115
|
-
children:
|
|
116
|
-
methodsRef:
|
|
117
|
-
arrowsVisibleOnHover:
|
|
118
|
-
rightAlignArrows:
|
|
119
|
-
padding:
|
|
120
|
-
showTimesBtn:
|
|
121
|
-
noArrows:
|
|
122
|
-
noGradient:
|
|
123
|
-
hideDisabledArrows:
|
|
124
|
-
noMargin:
|
|
125
|
-
...
|
|
126
|
-
},
|
|
127
|
-
const
|
|
128
|
-
var
|
|
129
|
-
(
|
|
115
|
+
children: u,
|
|
116
|
+
methodsRef: b,
|
|
117
|
+
arrowsVisibleOnHover: S = !0,
|
|
118
|
+
rightAlignArrows: k = !1,
|
|
119
|
+
padding: m = "0",
|
|
120
|
+
showTimesBtn: h,
|
|
121
|
+
noArrows: a,
|
|
122
|
+
noGradient: x = !1,
|
|
123
|
+
hideDisabledArrows: c = !1,
|
|
124
|
+
noMargin: g = !1,
|
|
125
|
+
...N
|
|
126
|
+
}, T) => {
|
|
127
|
+
const $ = J(), { theme: l } = X(), [t, A] = w(!1), [p, B] = w(!1), [M, I] = w(!0), o = F(), R = () => {
|
|
128
|
+
var s;
|
|
129
|
+
(s = o.current) == null || s.scrollBy(f, 0);
|
|
130
130
|
}, K = () => {
|
|
131
|
-
var
|
|
132
|
-
(
|
|
133
|
-
}, [E, D] =
|
|
131
|
+
var s;
|
|
132
|
+
(s = o.current) == null || s.scrollBy(-f, 0);
|
|
133
|
+
}, [E, D] = w(!1);
|
|
134
134
|
j(() => {
|
|
135
|
-
var
|
|
135
|
+
var s, O;
|
|
136
136
|
D(
|
|
137
|
-
((
|
|
137
|
+
((s = o == null ? void 0 : o.current) == null ? void 0 : s.scrollWidth) > ((O = o == null ? void 0 : o.current) == null ? void 0 : O.clientWidth)
|
|
138
138
|
);
|
|
139
|
-
}, [
|
|
139
|
+
}, [u]), P(b, () => ({
|
|
140
140
|
scrollToEnd() {
|
|
141
141
|
G();
|
|
142
142
|
},
|
|
@@ -150,42 +150,42 @@ const rr = q.div`
|
|
|
150
150
|
const G = () => {
|
|
151
151
|
o.current.scrollLeft = o.current.scrollWidth;
|
|
152
152
|
};
|
|
153
|
-
return /* @__PURE__ */
|
|
154
|
-
|
|
153
|
+
return /* @__PURE__ */ i(
|
|
154
|
+
ee,
|
|
155
155
|
{
|
|
156
|
-
ref:
|
|
157
|
-
arrowsVisibleOnHover:
|
|
156
|
+
ref: T,
|
|
157
|
+
arrowsVisibleOnHover: S,
|
|
158
158
|
hasOverflow: E,
|
|
159
|
-
noArrows:
|
|
160
|
-
padding:
|
|
161
|
-
rightAlignArrows:
|
|
162
|
-
showTimesBtn:
|
|
163
|
-
theme:
|
|
164
|
-
noMargin:
|
|
165
|
-
...
|
|
166
|
-
children: /* @__PURE__ */
|
|
167
|
-
|
|
159
|
+
noArrows: a,
|
|
160
|
+
padding: m,
|
|
161
|
+
rightAlignArrows: k,
|
|
162
|
+
showTimesBtn: h,
|
|
163
|
+
theme: l,
|
|
164
|
+
noMargin: g,
|
|
165
|
+
...N,
|
|
166
|
+
children: /* @__PURE__ */ d(
|
|
167
|
+
U,
|
|
168
168
|
{
|
|
169
169
|
ref: o,
|
|
170
170
|
className: "scrollable-container",
|
|
171
171
|
columnGap: e,
|
|
172
|
-
rowGap:
|
|
173
|
-
wrap: n ||
|
|
172
|
+
rowGap: v,
|
|
173
|
+
wrap: n || y && $ ? "Wrap" : "NoWrap",
|
|
174
174
|
children: [
|
|
175
|
-
|
|
176
|
-
!(
|
|
175
|
+
a !== !0 && /* @__PURE__ */ d(z, { children: [
|
|
176
|
+
!(c === !0 && p === !0) && /* @__PURE__ */ i(
|
|
177
177
|
W,
|
|
178
178
|
{
|
|
179
179
|
borderRadius: "curved",
|
|
180
180
|
btnType: "tinted",
|
|
181
181
|
className: "scroll-arrow-left",
|
|
182
182
|
color: "neutral",
|
|
183
|
-
disabled:
|
|
183
|
+
disabled: p,
|
|
184
184
|
icon: "angle-left",
|
|
185
185
|
onClick: K
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
|
-
!(
|
|
188
|
+
!(c === !0 && t === !0) && /* @__PURE__ */ i(
|
|
189
189
|
W,
|
|
190
190
|
{
|
|
191
191
|
borderRadius: "curved",
|
|
@@ -198,33 +198,33 @@ const rr = q.div`
|
|
|
198
198
|
}
|
|
199
199
|
)
|
|
200
200
|
] }),
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ i(
|
|
202
202
|
H,
|
|
203
203
|
{
|
|
204
204
|
isHorizontal: !0,
|
|
205
205
|
onIsNotVisible: () => {
|
|
206
|
-
|
|
206
|
+
p === !0 && B(!1);
|
|
207
207
|
},
|
|
208
208
|
onIsVisible: () => {
|
|
209
|
-
|
|
209
|
+
p === !1 && B(!0);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
),
|
|
213
|
-
|
|
214
|
-
/* @__PURE__ */
|
|
213
|
+
u,
|
|
214
|
+
/* @__PURE__ */ i(
|
|
215
215
|
H,
|
|
216
216
|
{
|
|
217
217
|
className: "right-scroller",
|
|
218
218
|
isHorizontal: !0,
|
|
219
219
|
onIsNotVisible: () => {
|
|
220
|
-
t === !0 &&
|
|
220
|
+
t === !0 && A(!1), I(!0);
|
|
221
221
|
},
|
|
222
222
|
onIsVisible: () => {
|
|
223
|
-
t === !1 &&
|
|
223
|
+
t === !1 && A(!0), I(!1);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
M && E &&
|
|
227
|
+
M && E && x !== !0 && /* @__PURE__ */ i("div", { className: "gradient" })
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
230
|
)
|
|
@@ -233,94 +233,89 @@ const rr = q.div`
|
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
L.propTypes = {
|
|
236
|
-
title:
|
|
237
|
-
rowGap:
|
|
238
|
-
columnGap:
|
|
239
|
-
scrollBySize:
|
|
240
|
-
wrapForMobile:
|
|
241
|
-
wrap:
|
|
242
|
-
methodsRef:
|
|
243
|
-
arrowsVisibleOnHover:
|
|
244
|
-
rightAlignArrows:
|
|
245
|
-
padding:
|
|
236
|
+
title: r.string,
|
|
237
|
+
rowGap: r.string,
|
|
238
|
+
columnGap: r.string,
|
|
239
|
+
scrollBySize: r.number,
|
|
240
|
+
wrapForMobile: r.bool,
|
|
241
|
+
wrap: r.bool,
|
|
242
|
+
methodsRef: r.any,
|
|
243
|
+
arrowsVisibleOnHover: r.bool,
|
|
244
|
+
rightAlignArrows: r.bool,
|
|
245
|
+
padding: r.string
|
|
246
246
|
};
|
|
247
|
-
const
|
|
247
|
+
const re = q((e, v) => {
|
|
248
248
|
const {
|
|
249
|
-
allButton:
|
|
250
|
-
items:
|
|
249
|
+
allButton: f = !0,
|
|
250
|
+
items: y = [],
|
|
251
251
|
selectedIds: n = [],
|
|
252
|
-
onSelect:
|
|
252
|
+
onSelect: u = () => {
|
|
253
253
|
},
|
|
254
|
-
onRemove:
|
|
254
|
+
onRemove: b = () => {
|
|
255
255
|
},
|
|
256
|
-
onSelectAll:
|
|
256
|
+
onSelectAll: S = () => {
|
|
257
257
|
},
|
|
258
|
-
className:
|
|
259
|
-
showTimesBtn:
|
|
260
|
-
labelKey:
|
|
261
|
-
valueKey:
|
|
262
|
-
codeKey:
|
|
263
|
-
uniqueKey:
|
|
264
|
-
typeKey:
|
|
265
|
-
productsToolbarName:
|
|
266
|
-
|
|
267
|
-
} = e,
|
|
268
|
-
n != null && n.includes(
|
|
258
|
+
className: k,
|
|
259
|
+
showTimesBtn: m = !1,
|
|
260
|
+
labelKey: h = "label",
|
|
261
|
+
valueKey: a = "value",
|
|
262
|
+
codeKey: x = "code",
|
|
263
|
+
uniqueKey: c,
|
|
264
|
+
typeKey: g,
|
|
265
|
+
productsToolbarName: N = "All",
|
|
266
|
+
...T
|
|
267
|
+
} = e, $ = (l, t) => {
|
|
268
|
+
n != null && n.includes(t) ? b(l, t) : u(l, t);
|
|
269
269
|
};
|
|
270
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ d(
|
|
271
271
|
L,
|
|
272
272
|
{
|
|
273
|
+
ref: v,
|
|
273
274
|
arrowsVisibleOnHover: !1,
|
|
274
|
-
className:
|
|
275
|
+
className: k,
|
|
275
276
|
columnGap: "0.75rem",
|
|
276
277
|
padding: "0.25rem 0",
|
|
277
278
|
rightAlignArrows: !0,
|
|
278
|
-
showTimesBtn:
|
|
279
|
-
|
|
279
|
+
showTimesBtn: m,
|
|
280
|
+
...T,
|
|
280
281
|
children: [
|
|
281
|
-
|
|
282
|
+
f && /* @__PURE__ */ i(
|
|
282
283
|
V,
|
|
283
284
|
{
|
|
284
285
|
borderRadius: "curved",
|
|
285
286
|
btnType: n.length === 0 ? "filled" : "tinted",
|
|
286
287
|
className: "badge-button",
|
|
287
288
|
color: "neutral",
|
|
288
|
-
onClick:
|
|
289
|
-
children:
|
|
289
|
+
onClick: S,
|
|
290
|
+
children: N
|
|
290
291
|
}
|
|
291
292
|
),
|
|
292
|
-
|
|
293
|
+
y.map((l, t) => /* @__PURE__ */ d(
|
|
293
294
|
V,
|
|
294
295
|
{
|
|
295
296
|
borderRadius: "curved",
|
|
296
|
-
btnType: n.includes(
|
|
297
|
+
btnType: n.includes(l.uuid) ? "filled" : "tinted",
|
|
297
298
|
className: "badge-button",
|
|
298
299
|
color: "neutral",
|
|
299
|
-
onClick: () =>
|
|
300
|
-
r[u],
|
|
301
|
-
r[f],
|
|
302
|
-
r[y],
|
|
303
|
-
a ? r[a] : null,
|
|
304
|
-
d ? r[d] : null
|
|
305
|
-
),
|
|
300
|
+
onClick: () => $(l, l[a]),
|
|
306
301
|
children: [
|
|
307
|
-
Y(
|
|
308
|
-
/* @__PURE__ */
|
|
302
|
+
Y(l == null ? void 0 : l.icon) && /* @__PURE__ */ d(z, { children: [
|
|
303
|
+
/* @__PURE__ */ i("i", { className: l == null ? void 0 : l.icon }),
|
|
309
304
|
" "
|
|
310
305
|
] }),
|
|
311
|
-
|
|
312
|
-
|
|
306
|
+
l[h],
|
|
307
|
+
m === !0 && /* @__PURE__ */ i(
|
|
313
308
|
Q,
|
|
314
309
|
{
|
|
315
310
|
className: "times-btn",
|
|
316
311
|
icon: "times",
|
|
317
312
|
sizeInUnits: "0.75rem",
|
|
318
|
-
onClick: () =>
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
313
|
+
onClick: () => b(
|
|
314
|
+
l[a],
|
|
315
|
+
l[h],
|
|
316
|
+
l[x],
|
|
317
|
+
c ? l[c] : null,
|
|
318
|
+
g ? l[g] : null
|
|
324
319
|
)
|
|
325
320
|
}
|
|
326
321
|
)
|
|
@@ -332,19 +327,19 @@ const er = U((e, B) => {
|
|
|
332
327
|
}
|
|
333
328
|
);
|
|
334
329
|
});
|
|
335
|
-
|
|
336
|
-
allButton:
|
|
337
|
-
items:
|
|
338
|
-
selectedIds:
|
|
339
|
-
onSelect:
|
|
340
|
-
onRemove:
|
|
341
|
-
onSelectAll:
|
|
342
|
-
className:
|
|
343
|
-
showTimesBtn:
|
|
344
|
-
valuKey:
|
|
345
|
-
labelKey:
|
|
346
|
-
codeKey:
|
|
330
|
+
re.propTypes = {
|
|
331
|
+
allButton: r.bool,
|
|
332
|
+
items: r.array,
|
|
333
|
+
selectedIds: r.array,
|
|
334
|
+
onSelect: r.func,
|
|
335
|
+
onRemove: r.func,
|
|
336
|
+
onSelectAll: r.func,
|
|
337
|
+
className: r.string,
|
|
338
|
+
showTimesBtn: r.bool,
|
|
339
|
+
valuKey: r.string,
|
|
340
|
+
labelKey: r.string,
|
|
341
|
+
codeKey: r.string
|
|
347
342
|
};
|
|
348
343
|
export {
|
|
349
|
-
|
|
344
|
+
re as S
|
|
350
345
|
};
|
|
@@ -53,6 +53,7 @@ const C = o.div`
|
|
|
53
53
|
aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
|
|
54
54
|
object-fit: cover; /* making sure the image isn't distorted */
|
|
55
55
|
border-radius: 0.75rem;
|
|
56
|
+
mix-blend-mode: multiply;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
& .fallback-image {
|
|
@@ -74,7 +75,7 @@ const C = o.div`
|
|
|
74
75
|
border-radius: 62.4375rem;
|
|
75
76
|
z-index: 1;
|
|
76
77
|
background-color: var(--white, #fff);
|
|
77
|
-
color: var(--gray-950, #
|
|
78
|
+
color: var(--gray-950, #14161a);
|
|
78
79
|
}
|
|
79
80
|
& .title-simple-product-card {
|
|
80
81
|
z-index: 1;
|
|
@@ -85,13 +86,13 @@ const C = o.div`
|
|
|
85
86
|
&:hover {
|
|
86
87
|
& .title-simple-product-card {
|
|
87
88
|
z-index: 1;
|
|
88
|
-
color: var(--primary-500, #
|
|
89
|
+
color: var(--primary-500, #f59e0b);
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
|
-
`,
|
|
92
|
+
`, G = f((d, y) => {
|
|
92
93
|
const {
|
|
93
94
|
uuid: w,
|
|
94
|
-
title:
|
|
95
|
+
title: n,
|
|
95
96
|
price: r,
|
|
96
97
|
currency: i,
|
|
97
98
|
isNegotiable: l,
|
|
@@ -103,11 +104,11 @@ const C = o.div`
|
|
|
103
104
|
imageComponent: t,
|
|
104
105
|
negotiableText: p = "Negotiable",
|
|
105
106
|
freeText: g = "Free"
|
|
106
|
-
} =
|
|
107
|
+
} = d;
|
|
107
108
|
return /* @__PURE__ */ e(v, { className: "simple-product-card", onClick: s, children: [
|
|
108
109
|
h(t) ? t : /* @__PURE__ */ a("img", { src: c }),
|
|
109
110
|
/* @__PURE__ */ e("div", { className: "text-block", children: [
|
|
110
|
-
/* @__PURE__ */ a("div", { className: "title-simple-product-card", children:
|
|
111
|
+
/* @__PURE__ */ a("div", { className: "title-simple-product-card", children: n }),
|
|
111
112
|
/* @__PURE__ */ e("div", { className: "price-chip", children: [
|
|
112
113
|
r && i && `${b(r)} ${x(i)}`,
|
|
113
114
|
l && p,
|
|
@@ -118,5 +119,5 @@ const C = o.div`
|
|
|
118
119
|
});
|
|
119
120
|
export {
|
|
120
121
|
C as S,
|
|
121
|
-
|
|
122
|
+
G as a
|
|
122
123
|
};
|