@lanaco/lnc-react-ui 4.0.109 → 4.0.110
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/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +6 -9
- package/dist/BlogsSectionDetailed.js +9 -12
- package/dist/BlogsSectionSimple.cjs +6 -9
- package/dist/BlogsSectionSimple.js +23 -26
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -4
- package/dist/FieldOfInterestsMasonrySection.js +51 -41
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +0 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +15 -24
- package/dist/GeneralWithTagsCardsSection.cjs +3 -12
- package/dist/GeneralWithTagsCardsSection.js +5 -14
- package/dist/GiftCardsSection.cjs +10 -3
- package/dist/GiftCardsSection.js +24 -17
- package/dist/LocationSearchSection.cjs +3 -7
- package/dist/LocationSearchSection.js +8 -12
- package/dist/MasonryGeneralCardsSection.cjs +2 -11
- package/dist/MasonryGeneralCardsSection.js +0 -9
- package/dist/OverlayGeneralCardsSection.cjs +17 -11
- package/dist/OverlayGeneralCardsSection.js +37 -31
- package/dist/ProductsWithBannerSection.cjs +5 -11
- package/dist/ProductsWithBannerSection.js +8 -14
- package/dist/SalesCampaignsSection.cjs +9 -12
- package/dist/SalesCampaignsSection.js +22 -25
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-CEI_JOki.js → index-B2pFbNKc.js} +4 -5
- package/dist/{index-B30K8mkW.cjs → index-B_HNDmXL.cjs} +3 -4
- package/dist/{suspense-categories-card-simple-Ds6hXZKt.js → suspense-categories-card-simple-BbtBbuWb.js} +15 -17
- package/dist/{suspense-categories-card-simple-B5zd-nnm.cjs → suspense-categories-card-simple-CK7XDK4k.cjs} +2 -4
- package/dist/{suspense-product-card-detailed-DXwya4fQ.cjs → suspense-product-card-detailed-LcBMp1iw.cjs} +4 -10
- package/dist/{suspense-product-card-detailed-bYBpLiXc.js → suspense-product-card-detailed-PArA5O4M.js} +0 -6
- package/dist/{suspense-product-card-simple-Ba1UPqgy.cjs → suspense-product-card-simple-CJwnghtt.cjs} +1 -1
- package/dist/{suspense-product-card-simple-ib6FLerL.js → suspense-product-card-simple-Z-FddSb-.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as c, useLayoutEffect as
|
|
3
|
-
import { p as E, o as I, l as
|
|
1
|
+
import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useLayoutEffect as O } from "react";
|
|
3
|
+
import { p as E, o as I, l as L, k as S } from "./utils-BbgAIA9N.js";
|
|
4
4
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { M as b } from "./consts-BuFChS64.js";
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
6
|
+
import A from "./Icon.js";
|
|
7
|
+
import { u as T } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const W = m.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: fit-content;
|
|
@@ -57,16 +57,17 @@ const j = m.div`
|
|
|
57
57
|
${E(2)}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`, j = m.div`
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 11.625rem;
|
|
63
63
|
border-radius: 0.75rem;
|
|
64
64
|
background: ${I("-90deg")};
|
|
65
|
-
`,
|
|
65
|
+
`, q = m.div`
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
68
|
align-items: center;
|
|
69
69
|
gap: 0.75rem;
|
|
70
|
+
height: 100%;
|
|
70
71
|
|
|
71
72
|
&:hover {
|
|
72
73
|
cursor: pointer;
|
|
@@ -147,7 +148,7 @@ const j = m.div`
|
|
|
147
148
|
white-space: nowrap;
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
|
-
`,
|
|
151
|
+
`, R = m.div`
|
|
151
152
|
width: 7.5rem;
|
|
152
153
|
width: 7.5rem;
|
|
153
154
|
border-radius: 999px;
|
|
@@ -157,36 +158,36 @@ const j = m.div`
|
|
|
157
158
|
width: 7.5rem;
|
|
158
159
|
height: 2.5rem;
|
|
159
160
|
}
|
|
160
|
-
`, B = c(({},
|
|
161
|
-
({ text:
|
|
162
|
-
} }, f) => /* @__PURE__ */ l(
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
161
|
+
`, B = c(({}, r) => /* @__PURE__ */ i(R, {})), D = c(
|
|
162
|
+
({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
|
|
163
|
+
} }, f) => /* @__PURE__ */ l(q, { className: o ? "active" : "", onClick: a, children: [
|
|
164
|
+
/* @__PURE__ */ i(A, { icon: t, className: "wrapper__icon" }),
|
|
165
|
+
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
165
166
|
] })
|
|
166
167
|
), G = c(
|
|
167
168
|
({
|
|
168
|
-
image:
|
|
169
|
+
image: r,
|
|
169
170
|
imageComponent: o,
|
|
170
|
-
title:
|
|
171
|
-
description:
|
|
171
|
+
title: t,
|
|
172
|
+
description: a,
|
|
172
173
|
className: f,
|
|
173
174
|
onSelectCard: g = () => {
|
|
174
175
|
}
|
|
175
176
|
}, k) => {
|
|
176
|
-
const { theme: u } =
|
|
177
|
-
return /* @__PURE__ */ l(
|
|
178
|
-
|
|
177
|
+
const { theme: u } = T();
|
|
178
|
+
return /* @__PURE__ */ l(W, { theme: u, className: f, onClick: g, children: [
|
|
179
|
+
L(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
179
180
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
182
|
+
a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
|
|
182
183
|
] })
|
|
183
184
|
] });
|
|
184
185
|
}
|
|
185
|
-
), H = c(({},
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
), H = c(({}, r) => /* @__PURE__ */ l(j, { children: [
|
|
187
|
+
/* @__PURE__ */ i("div", { className: "wrapper__image" }),
|
|
187
188
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ i("div", { className: "wrapper__title" }),
|
|
190
|
+
/* @__PURE__ */ i("div", { className: "wrapper__description" })
|
|
190
191
|
] })
|
|
191
192
|
] })), P = m.div`
|
|
192
193
|
display: flex;
|
|
@@ -220,16 +221,24 @@ const j = m.div`
|
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
|
|
224
|
+
& .wrapper__tags__external {
|
|
225
|
+
width: 100%;
|
|
226
|
+
}
|
|
227
|
+
|
|
223
228
|
& .wrapper__tags {
|
|
224
229
|
display: flex;
|
|
225
230
|
justify-content: center;
|
|
226
231
|
align-items: center;
|
|
227
232
|
gap: 0.75rem;
|
|
233
|
+
|
|
234
|
+
grid-template-columns: ${(r) => `repeat(${r.numberOfTags || 0}, minmax(0, 7rem))`};
|
|
235
|
+
justify-content: center;
|
|
236
|
+
display: grid;
|
|
228
237
|
}
|
|
229
238
|
|
|
230
239
|
& .wrapper__cards {
|
|
231
240
|
display: grid;
|
|
232
|
-
grid-template-columns: ${(
|
|
241
|
+
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(12.5rem, 1fr))`};
|
|
233
242
|
grid-auto-rows: 0.625rem;
|
|
234
243
|
gap: 0.625rem;
|
|
235
244
|
width: 100%;
|
|
@@ -262,15 +271,15 @@ const j = m.div`
|
|
|
262
271
|
}
|
|
263
272
|
|
|
264
273
|
& .wrapper__cards {
|
|
265
|
-
grid-template-columns: ${(
|
|
274
|
+
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
266
275
|
}
|
|
267
276
|
}
|
|
268
277
|
`, Y = c(
|
|
269
278
|
({
|
|
270
|
-
title:
|
|
279
|
+
title: r,
|
|
271
280
|
subtitle: o,
|
|
272
|
-
tags:
|
|
273
|
-
items:
|
|
281
|
+
tags: t = [],
|
|
282
|
+
items: a = [],
|
|
274
283
|
limitTags: f = 5,
|
|
275
284
|
limitTagsForMobile: g = 5,
|
|
276
285
|
limit: k = 3,
|
|
@@ -283,8 +292,8 @@ const j = m.div`
|
|
|
283
292
|
className: s
|
|
284
293
|
}, C) => {
|
|
285
294
|
var $, N;
|
|
286
|
-
return
|
|
287
|
-
if (!
|
|
295
|
+
return O(() => {
|
|
296
|
+
if (!S(s))
|
|
288
297
|
return;
|
|
289
298
|
const e = () => {
|
|
290
299
|
const p = document.querySelector(`.${s} .wrapper__cards`), d = p.querySelectorAll(".wrapper__card");
|
|
@@ -306,7 +315,7 @@ const j = m.div`
|
|
|
306
315
|
}), _ === h.length && e()), window.addEventListener("resize", e), () => {
|
|
307
316
|
window.removeEventListener("resize", e);
|
|
308
317
|
};
|
|
309
|
-
}, [s,
|
|
318
|
+
}, [s, a]), /* @__PURE__ */ l(
|
|
310
319
|
P,
|
|
311
320
|
{
|
|
312
321
|
ref: C,
|
|
@@ -315,12 +324,13 @@ const j = m.div`
|
|
|
315
324
|
limitCards: k,
|
|
316
325
|
limitCardsForMobile: u,
|
|
317
326
|
className: s,
|
|
327
|
+
numberOfTags: t == null ? void 0 : t.length,
|
|
318
328
|
children: [
|
|
319
329
|
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
320
|
-
|
|
321
|
-
o && /* @__PURE__ */
|
|
330
|
+
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
331
|
+
o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
|
|
322
332
|
] }),
|
|
323
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
|
|
324
334
|
D,
|
|
325
335
|
{
|
|
326
336
|
icon: e == null ? void 0 : e.icon,
|
|
@@ -329,12 +339,12 @@ const j = m.div`
|
|
|
329
339
|
onSelectCard: () => x == null ? void 0 : x(e)
|
|
330
340
|
},
|
|
331
341
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
332
|
-
)) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */
|
|
342
|
+
)) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ i(
|
|
333
343
|
B,
|
|
334
344
|
{},
|
|
335
345
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
336
|
-
)) }),
|
|
337
|
-
/* @__PURE__ */
|
|
346
|
+
)) }) }),
|
|
347
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
|
|
338
348
|
G,
|
|
339
349
|
{
|
|
340
350
|
image: e == null ? void 0 : e.image,
|
|
@@ -345,7 +355,7 @@ const j = m.div`
|
|
|
345
355
|
className: "wrapper__card"
|
|
346
356
|
},
|
|
347
357
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
348
|
-
)) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */
|
|
358
|
+
)) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ i(
|
|
349
359
|
H,
|
|
350
360
|
{},
|
|
351
361
|
`field-of-interests-with-tags-card-skeleton__${n + 1}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-CZynEOC_.cjs"),$=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-CZynEOC_.cjs"),$=require("./index-B_HNDmXL.cjs"),c=h.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 11.625rem;
|
|
4
4
|
border-radius: 0.75rem;
|
|
@@ -3,7 +3,7 @@ import { forwardRef as g } from "react";
|
|
|
3
3
|
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as x } from "./consts-BuFChS64.js";
|
|
5
5
|
import { o as v, l as C } from "./utils-BbgAIA9N.js";
|
|
6
|
-
import { S as F } from "./index-
|
|
6
|
+
import { S as F } from "./index-B2pFbNKc.js";
|
|
7
7
|
const N = _.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 11.625rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { p as y, o as b, k as C, l as I } from "./utils-BbgAIA9N.js";
|
|
@@ -55,16 +55,7 @@ const z = p.div`
|
|
|
55
55
|
${y(2)}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
&:hover {
|
|
60
58
|
cursor: pointer;
|
|
61
|
-
|
|
62
|
-
& .wrapper__content {
|
|
63
|
-
& .wrapper__title {
|
|
64
|
-
color: var(--primary-500, #e87722);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
59
|
`, O = p.div`
|
|
69
60
|
width: 100%;
|
|
70
61
|
height: 11.625rem;
|
|
@@ -126,20 +117,20 @@ const z = p.div`
|
|
|
126
117
|
border-radius: 999px;
|
|
127
118
|
background: ${b("-90deg")};
|
|
128
119
|
`, M = l(({}, r) => /* @__PURE__ */ i(E, {})), D = l(
|
|
129
|
-
({ name: r, isActive: n, icon: t, onSelectCard:
|
|
130
|
-
} }, m) => /* @__PURE__ */
|
|
120
|
+
({ name: r, isActive: n, icon: t, onSelectCard: s = () => {
|
|
121
|
+
} }, m) => /* @__PURE__ */ o(A, { className: n ? "active" : "", onClick: s, children: [
|
|
131
122
|
C(t) && /* @__PURE__ */ i(W, { icon: t, className: "wrapper__icon" }),
|
|
132
123
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
133
124
|
] })
|
|
134
125
|
), G = l(
|
|
135
|
-
({ image: r, imageComponent: n, name: t, description:
|
|
126
|
+
({ image: r, imageComponent: n, name: t, description: s, onSelectCard: m = () => {
|
|
136
127
|
} }, u) => {
|
|
137
128
|
const { theme: f } = F();
|
|
138
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ o(z, { theme: f, onClick: m, children: [
|
|
139
130
|
I(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
140
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ o("div", { className: "wrapper__content", children: [
|
|
141
132
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
142
|
-
|
|
133
|
+
s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
|
|
143
134
|
] })
|
|
144
135
|
] });
|
|
145
136
|
}
|
|
@@ -222,7 +213,7 @@ const z = p.div`
|
|
|
222
213
|
title: r,
|
|
223
214
|
subtitle: n,
|
|
224
215
|
tags: t = [],
|
|
225
|
-
limitTags:
|
|
216
|
+
limitTags: s = 7,
|
|
226
217
|
limitTagsForMobile: m = 7,
|
|
227
218
|
limit: u = 3,
|
|
228
219
|
limitForMobile: f = 2,
|
|
@@ -238,20 +229,20 @@ const z = p.div`
|
|
|
238
229
|
}
|
|
239
230
|
}, T) => {
|
|
240
231
|
var x, v;
|
|
241
|
-
const
|
|
232
|
+
const g = (e) => {
|
|
242
233
|
h == null || h(e);
|
|
243
|
-
},
|
|
234
|
+
}, w = (e) => {
|
|
244
235
|
_ == null || _(e);
|
|
245
236
|
};
|
|
246
|
-
return /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ o(
|
|
247
238
|
R,
|
|
248
239
|
{
|
|
249
|
-
limitTags:
|
|
240
|
+
limitTags: s,
|
|
250
241
|
limitTagsForMobile: m,
|
|
251
242
|
limitCards: u,
|
|
252
243
|
limitCardsForMobile: f,
|
|
253
244
|
children: [
|
|
254
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
|
|
255
246
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
256
247
|
n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
|
|
257
248
|
] }),
|
|
@@ -265,7 +256,7 @@ const z = p.div`
|
|
|
265
256
|
icon: e == null ? void 0 : e.icon,
|
|
266
257
|
name: e == null ? void 0 : e.name,
|
|
267
258
|
isActive: (e == null ? void 0 : e.uuid) === (c == null ? void 0 : c.uuid),
|
|
268
|
-
onSelectCard: () =>
|
|
259
|
+
onSelectCard: () => g == null ? void 0 : g(e)
|
|
269
260
|
},
|
|
270
261
|
`field-of-interests-with-tags-card-tag__${a + 1}`
|
|
271
262
|
)) }),
|
|
@@ -280,7 +271,7 @@ const z = p.div`
|
|
|
280
271
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
281
272
|
name: e == null ? void 0 : e.name,
|
|
282
273
|
description: (e == null ? void 0 : e.shortDescription) || (e == null ? void 0 : e.description),
|
|
283
|
-
onSelectCard: () =>
|
|
274
|
+
onSelectCard: () => w == null ? void 0 : w(e)
|
|
284
275
|
},
|
|
285
276
|
`field-of-interests-with-tags-card__${a + 1}`
|
|
286
277
|
)) })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-CZynEOC_.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -39,17 +39,8 @@
|
|
|
39
39
|
transition: var(--transition, all 0.2s ease);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
42
|
cursor: pointer;
|
|
45
43
|
|
|
46
|
-
& .wrapper__content {
|
|
47
|
-
& .wrapper__title {
|
|
48
|
-
color: var(--primary-500, #e87722);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
44
|
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
54
45
|
background: transparent;
|
|
55
46
|
border: none;
|
|
@@ -134,7 +125,7 @@
|
|
|
134
125
|
height: 3rem;
|
|
135
126
|
border-radius: 999px;
|
|
136
127
|
background: ${d.linearGradientAnimation("-90deg")};
|
|
137
|
-
`,C=
|
|
128
|
+
`,C=l.forwardRef(({},a)=>r.jsx(N,{})),E=l.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},p)=>r.jsxs($,{onClick:t,children:[d.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=l.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:p=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:p,children:[d.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=l.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
|
|
138
129
|
display: flex;
|
|
139
130
|
flex-direction: column;
|
|
140
131
|
align-items: center;
|
|
@@ -210,4 +201,4 @@
|
|
|
210
201
|
gap: 1rem;
|
|
211
202
|
}
|
|
212
203
|
}
|
|
213
|
-
`,R=
|
|
204
|
+
`,R=l.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:p=7,limitTagsForMobile:c=2,limit:g=3,limitForMobile:f=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:u},b)=>{var x,w;return r.jsxs(G,{ref:b,limitTags:p,limitTagsForMobile:c,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[a&&r.jsx("div",{className:"wrapper__title",children:a}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(I,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{_==null||_(e)}},`general-with-tags-card__${s+1}`)):(x=Array.from("123"))==null?void 0:x.map((e,s)=>r.jsx(W,{},`general-with-tags-card-skeleton__${s+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,s)=>r.jsx(E,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>h==null?void 0:h(e)},`general-with-tags-card-tag__${s+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(w=Array.from("123"))==null?void 0:w.map((e,s)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=R;
|
|
@@ -46,17 +46,8 @@ const W = s.div`
|
|
|
46
46
|
transition: var(--transition, all 0.2s ease);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
&:hover {
|
|
51
49
|
cursor: pointer;
|
|
52
50
|
|
|
53
|
-
& .wrapper__content {
|
|
54
|
-
& .wrapper__title {
|
|
55
|
-
color: var(--primary-500, #e87722);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
51
|
@media (max-width: ${d + "px"}) {
|
|
61
52
|
background: transparent;
|
|
62
53
|
border: none;
|
|
@@ -245,11 +236,11 @@ const W = s.div`
|
|
|
245
236
|
items: n = [],
|
|
246
237
|
onSelectTag: h = () => {
|
|
247
238
|
},
|
|
248
|
-
onSelectCard:
|
|
239
|
+
onSelectCard: f = () => {
|
|
249
240
|
},
|
|
250
241
|
isLoading: b
|
|
251
242
|
}, v) => {
|
|
252
|
-
var
|
|
243
|
+
var w, _;
|
|
253
244
|
return /* @__PURE__ */ m(
|
|
254
245
|
A,
|
|
255
246
|
{
|
|
@@ -270,11 +261,11 @@ const W = s.div`
|
|
|
270
261
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
271
262
|
title: e == null ? void 0 : e.title,
|
|
272
263
|
onSelectCard: () => {
|
|
273
|
-
|
|
264
|
+
f == null || f(e);
|
|
274
265
|
}
|
|
275
266
|
},
|
|
276
267
|
`general-with-tags-card__${l + 1}`
|
|
277
|
-
)) : (
|
|
268
|
+
)) : (w = Array.from("123")) == null ? void 0 : w.map((e, l) => /* @__PURE__ */ a(
|
|
278
269
|
M,
|
|
279
270
|
{},
|
|
280
271
|
`general-with-tags-card-skeleton__${l + 1}`
|
|
@@ -288,7 +279,7 @@ const W = s.div`
|
|
|
288
279
|
},
|
|
289
280
|
`general-with-tags-card-tag__${l + 1}`
|
|
290
281
|
)) }),
|
|
291
|
-
b === !0 && !((t == null ? void 0 : t.length) > 0) && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: (
|
|
282
|
+
b === !0 && !((t == null ? void 0 : t.length) > 0) && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: (_ = Array.from("123")) == null ? void 0 : _.map((e, l) => /* @__PURE__ */ a(
|
|
292
283
|
z,
|
|
293
284
|
{},
|
|
294
285
|
`general-with-tags-card-tag-skeleton__${l + 1}`
|
|
@@ -14,13 +14,19 @@
|
|
|
14
14
|
font-weight: 500;
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
transition: var(--transition);
|
|
17
|
-
&:hover {
|
|
18
|
-
color: var(--primary-500, #f59e0b);
|
|
19
|
-
}
|
|
20
17
|
|
|
21
18
|
& .text-wrap {
|
|
22
19
|
text-align: center;
|
|
23
20
|
}
|
|
21
|
+
& img {
|
|
22
|
+
transition: var(--transition, all 0.3s ease);
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
&:hover {
|
|
26
|
+
& img {
|
|
27
|
+
transform: scale(1.1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
24
30
|
`,G=c.styled.div`
|
|
25
31
|
width: 100%;
|
|
26
32
|
min-height: 11rem;
|
|
@@ -63,6 +69,7 @@
|
|
|
63
69
|
position: absolute;
|
|
64
70
|
left: -4.5rem;
|
|
65
71
|
top: 1rem;
|
|
72
|
+
z-index: 2;
|
|
66
73
|
|
|
67
74
|
-moz-transform: rotate(315deg);
|
|
68
75
|
-o-transform: rotate(315deg);
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -22,14 +22,20 @@ const T = c.div`
|
|
|
22
22
|
font-weight: 500;
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
transition: var(--transition);
|
|
25
|
-
&:hover {
|
|
26
|
-
color: var(--primary-500, #f59e0b);
|
|
27
|
-
}
|
|
28
25
|
|
|
29
26
|
& .text-wrap {
|
|
30
27
|
text-align: center;
|
|
31
28
|
}
|
|
32
|
-
|
|
29
|
+
& img {
|
|
30
|
+
transition: var(--transition, all 0.3s ease);
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
&:hover {
|
|
34
|
+
& img {
|
|
35
|
+
transform: scale(1.1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`, z = c.div`
|
|
33
39
|
width: 100%;
|
|
34
40
|
min-height: 11rem;
|
|
35
41
|
max-height: 11rem;
|
|
@@ -71,6 +77,7 @@ const T = c.div`
|
|
|
71
77
|
position: absolute;
|
|
72
78
|
left: -4.5rem;
|
|
73
79
|
top: 1rem;
|
|
80
|
+
z-index: 2;
|
|
74
81
|
|
|
75
82
|
-moz-transform: rotate(315deg);
|
|
76
83
|
-o-transform: rotate(315deg);
|
|
@@ -84,48 +91,48 @@ c.div`
|
|
|
84
91
|
border-radius: 0.75rem;
|
|
85
92
|
background: ${b("-90deg")};
|
|
86
93
|
`;
|
|
87
|
-
const f = h((a,
|
|
94
|
+
const f = h((a, s) => {
|
|
88
95
|
const {
|
|
89
96
|
image: d,
|
|
90
|
-
text:
|
|
97
|
+
text: l,
|
|
91
98
|
price: i,
|
|
92
99
|
currency: r,
|
|
93
|
-
onSelectGiftCard:
|
|
100
|
+
onSelectGiftCard: m = () => {
|
|
94
101
|
}
|
|
95
102
|
} = a;
|
|
96
103
|
return /* @__PURE__ */ n(
|
|
97
104
|
j,
|
|
98
105
|
{
|
|
99
|
-
ref:
|
|
106
|
+
ref: s,
|
|
100
107
|
className: "simple-gift-card",
|
|
101
|
-
onClick: () =>
|
|
108
|
+
onClick: () => m(i),
|
|
102
109
|
children: [
|
|
103
|
-
/* @__PURE__ */ n(
|
|
110
|
+
/* @__PURE__ */ n(z, { children: [
|
|
104
111
|
/* @__PURE__ */ t("div", { className: "price-tag", children: i && r && `${G(i)} ${S(r)}` }),
|
|
105
112
|
/* @__PURE__ */ t("img", { src: d })
|
|
106
113
|
] }),
|
|
107
|
-
/* @__PURE__ */ t("div", { className: "text-wrap", children:
|
|
114
|
+
/* @__PURE__ */ t("div", { className: "text-wrap", children: l })
|
|
108
115
|
]
|
|
109
116
|
}
|
|
110
117
|
);
|
|
111
|
-
}), D = h((a,
|
|
118
|
+
}), D = h((a, s) => {
|
|
112
119
|
const {
|
|
113
120
|
icon: d,
|
|
114
|
-
title:
|
|
121
|
+
title: l,
|
|
115
122
|
buttonLink: i,
|
|
116
123
|
items: r,
|
|
117
|
-
buttonText:
|
|
124
|
+
buttonText: m,
|
|
118
125
|
limit: p = 4,
|
|
119
126
|
onSelectCard: g = () => {
|
|
120
127
|
},
|
|
121
128
|
onButtonAction: v = () => {
|
|
122
129
|
}
|
|
123
130
|
} = a, w = C();
|
|
124
|
-
return /* @__PURE__ */ n(k, { ref:
|
|
131
|
+
return /* @__PURE__ */ n(k, { ref: s, children: [
|
|
125
132
|
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
126
133
|
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
127
134
|
u(d) && /* @__PURE__ */ t("i", { className: d }),
|
|
128
|
-
/* @__PURE__ */ t("span", { children:
|
|
135
|
+
/* @__PURE__ */ t("span", { children: l })
|
|
129
136
|
] }),
|
|
130
137
|
u(i) && /* @__PURE__ */ t(
|
|
131
138
|
N,
|
|
@@ -139,7 +146,7 @@ const f = h((a, l) => {
|
|
|
139
146
|
},
|
|
140
147
|
borderRadius: "curved",
|
|
141
148
|
className: "button-link",
|
|
142
|
-
children:
|
|
149
|
+
children: m
|
|
143
150
|
}
|
|
144
151
|
)
|
|
145
152
|
] }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),v=require("./index-C1DkD2ug.cjs"),w=i.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: 1.25rem;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
grid-template-columns: repeat(2, 1fr);
|
|
29
29
|
gap: 0.5rem;
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,N=i.styled.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
gap: 0.75rem;
|
|
@@ -52,9 +52,5 @@
|
|
|
52
52
|
.city {
|
|
53
53
|
cursor: pointer;
|
|
54
54
|
transition: var(--transition);
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
color: var(--primary-500, #f59e0b);
|
|
58
|
-
}
|
|
59
55
|
}
|
|
60
|
-
`,
|
|
56
|
+
`,_=l.forwardRef((c,p)=>{const{title:m,items:s,options:o,selectedOption:g=[],onSelectRegion:u=()=>{},onSelectCity:x=()=>{},onSelectOption:h=()=>{},onSelectAll:f=()=>{},productsToolbarName:b="All"}=c;return e.jsxs(w,{ref:p,children:[e.jsx("div",{className:"wrapper-title",children:m}),(o==null?void 0:o.length)>0&&e.jsx(v.SelectBar,{items:o,selectedIds:g,onSelect:(r,t)=>{h(r,t)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:b}),e.jsx(S,{children:s==null?void 0:s.map((r,t)=>{var a;return e.jsxs(N,{children:[e.jsx("div",{className:"region",onClick:()=>u(r),children:r==null?void 0:r.name}),e.jsx("div",{className:"group-items",children:(a=r==null?void 0:r.cities)==null?void 0:a.map((n,j)=>e.jsx(l.Fragment,{children:e.jsxs("div",{className:"city",onClick:()=>x(n),children:[e.jsx("span",{children:n==null?void 0:n.name}),e.jsxs("span",{className:"count-txt",children:["(",n==null?void 0:n.count,")"]})]})},t+j))})]},t)})})]})});module.exports=_;
|