@lanaco/lnc-react-ui 4.0.185 → 4.0.188
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/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +150 -158
- package/dist/BlogCardsSponsoredSection.cjs +5 -5
- package/dist/BlogCardsSponsoredSection.js +55 -51
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +182 -215
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +134 -116
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +26 -24
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +21 -19
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +81 -76
- package/dist/BlogsSectionLarge.cjs +6 -6
- package/dist/BlogsSectionLarge.js +34 -31
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +68 -63
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +67 -54
- package/dist/BlogsSectionWithFilters.cjs +9 -9
- package/dist/BlogsSectionWithFilters.js +98 -84
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +50 -32
- package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
- package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
- package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +23 -21
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +38 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
- package/dist/FieldOfInterestsMasonrySection.js +87 -83
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +83 -46
- package/dist/GiftCardsSection.cjs +7 -7
- package/dist/GiftCardsSection.js +56 -47
- package/dist/MasonryGeneralCardsSection.cjs +16 -15
- package/dist/MasonryGeneralCardsSection.js +83 -68
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +58 -50
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +79 -70
- package/dist/QuattroCardsSection.cjs +8 -8
- package/dist/QuattroCardsSection.js +62 -40
- package/dist/ReviewsSection.cjs +8 -8
- package/dist/ReviewsSection.js +92 -67
- package/dist/SalesCampaignsSection.cjs +18 -18
- package/dist/SalesCampaignsSection.js +304 -298
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +25 -23
- package/dist/SimpleCategoriesSection.cjs +4 -4
- package/dist/SimpleCategoriesSection.js +25 -22
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +53 -50
- package/dist/UrgentSaleProductsSection.cjs +4 -4
- package/dist/UrgentSaleProductsSection.js +41 -38
- package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
- package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
- package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
- package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
- package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
- package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
- package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
- package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),w=require("react"),p=require("./utils-RnrgDDZP.cjs"),$=require("./Icon.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=require("./index-BAJkosVg.cjs"),I=_.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
cursor: pointer;
|
|
55
|
-
`,k=
|
|
55
|
+
`,k=_.styled.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
padding: 0 0.75rem 0 0.75rem;
|
|
58
58
|
align-items: center;
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@media (max-width: ${
|
|
106
|
+
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
107
107
|
min-width: fit-content;
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,C=w.forwardRef(({name:i,isActive:s,activeColor:t,icon:n,onSelectCard:c=()=>{}},a)=>r.jsxs(k,{ref:a,className:s?"active":"",activeColor:t,onClick:c,children:[p.isDefinedNotEmptyString(n)&&r.jsx($,{icon:n,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),E=w.forwardRef(({image:i,imageComponent:s,name:t,description:n,onSelectCard:c=()=>{},uuid:a,nameSlug:o,LinkComponent:l},m)=>{const g=l||"a",{theme:d}=N.useTheme();return r.jsxs(I,{ref:m,theme:d,onClick:c,as:g,...l?{to:`/product/${p.isDefinedNotEmptyString(o)?`${o}-`:""}${a}`}:{href:`/product/${p.isDefinedNotEmptyString(o)?`${o}-`:""}${a}`},children:[p.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),q=_.styled.div`
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
112
112
|
align-items: center;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
width: 100%;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
@media (max-width: ${
|
|
157
|
+
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
158
158
|
gap: 1rem;
|
|
159
159
|
|
|
160
160
|
& .wrapper__tags {
|
|
@@ -183,4 +183,4 @@
|
|
|
183
183
|
gap: 1rem;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
`,
|
|
186
|
+
`,F=w.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:n=7,limitTagsForMobile:c=7,limit:a=3,limitForMobile:o=2,items:l=[],isLoadingTags:m=!1,isLoadingCards:g=!1,selectedTag:d,activeColor:v,onSelectTag:f=()=>{},onSelectCard:h=()=>{},LinkComponent:b},j)=>r.jsxs(q,{ref:j,limitTags:n,limitTagsForMobile:c,limitCards:a,limitCardsForMobile:o,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx(u.SuspenseFieldOfInterestsWithTagsTag,{isLoading:m,keyPrefix:"field-of-interests-with-tags-tag",children:r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,x)=>r.jsx(C,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===d,activeColor:v,onSelectCard:()=>f==null?void 0:f(e)},`field-of-interests-with-tags-card-tag__${x+1}`))})}),r.jsx(u.SuspenseFieldOfInterestsWithTagsCard,{isLoading:m,keyPrefix:"field-of-interests-with-tags-card",children:r.jsx("div",{className:"wrapper__cards",children:l==null?void 0:l.map((e,x)=>r.jsx(E,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>h==null?void 0:h(e),uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,LinkComponent:b},`field-of-interests-with-tags-card__${x+1}`))})})]}));module.exports=F;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { o as
|
|
4
|
-
import
|
|
5
|
-
import { s as
|
|
6
|
-
import { M as
|
|
7
|
-
import { u as
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
1
|
+
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _ } from "react";
|
|
3
|
+
import { o as v, k as w, l as N } from "./utils-Dc5zIpaz.js";
|
|
4
|
+
import C from "./Icon.js";
|
|
5
|
+
import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import { M as y } from "./consts-BuFChS64.js";
|
|
7
|
+
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { S as W, a as j } from "./index-DxwIu0Wn.js";
|
|
9
|
+
const F = x.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -46,7 +46,7 @@ const W = w.a`
|
|
|
46
46
|
font-style: normal;
|
|
47
47
|
font-weight: 500;
|
|
48
48
|
line-height: 1.5rem;
|
|
49
|
-
${
|
|
49
|
+
${v(2)}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
& .wrapper__description {
|
|
@@ -56,11 +56,11 @@ const W = w.a`
|
|
|
56
56
|
font-weight: 400;
|
|
57
57
|
line-height: 1rem;
|
|
58
58
|
letter-spacing: 0.025rem;
|
|
59
|
-
${
|
|
59
|
+
${v(2)}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
cursor: pointer;
|
|
63
|
-
`,
|
|
63
|
+
`, z = x.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
padding: 0 0.75rem 0 0.75rem;
|
|
66
66
|
align-items: center;
|
|
@@ -111,37 +111,60 @@ const W = w.a`
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
@media (max-width: ${
|
|
114
|
+
@media (max-width: ${y + "px"}) {
|
|
115
115
|
min-width: fit-content;
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
118
|
-
({ name: r, isActive: a, activeColor: t, icon: n, onSelectCard:
|
|
119
|
-
} },
|
|
120
|
-
|
|
117
|
+
`, O = _(
|
|
118
|
+
({ name: r, isActive: a, activeColor: t, icon: n, onSelectCard: p = () => {
|
|
119
|
+
} }, s) => /* @__PURE__ */ m(
|
|
120
|
+
z,
|
|
121
121
|
{
|
|
122
|
-
ref:
|
|
122
|
+
ref: s,
|
|
123
123
|
className: a ? "active" : "",
|
|
124
124
|
activeColor: t,
|
|
125
|
-
onClick:
|
|
125
|
+
onClick: p,
|
|
126
126
|
children: [
|
|
127
|
-
|
|
127
|
+
w(n) && /* @__PURE__ */ i(C, { icon: n, className: "wrapper__icon" }),
|
|
128
128
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
)
|
|
132
|
-
),
|
|
133
|
-
({
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
132
|
+
), T = _(
|
|
133
|
+
({
|
|
134
|
+
image: r,
|
|
135
|
+
imageComponent: a,
|
|
136
|
+
name: t,
|
|
137
|
+
description: n,
|
|
138
|
+
onSelectCard: p = () => {
|
|
139
|
+
},
|
|
140
|
+
uuid: s,
|
|
141
|
+
nameSlug: o,
|
|
142
|
+
LinkComponent: l
|
|
143
|
+
}, f) => {
|
|
144
|
+
const u = l || "a", { theme: c } = I();
|
|
145
|
+
return /* @__PURE__ */ m(
|
|
146
|
+
F,
|
|
147
|
+
{
|
|
148
|
+
ref: f,
|
|
149
|
+
theme: c,
|
|
150
|
+
onClick: p,
|
|
151
|
+
as: u,
|
|
152
|
+
...l ? {
|
|
153
|
+
to: `/product/${w(o) ? `${o}-` : ""}${s}`
|
|
154
|
+
} : {
|
|
155
|
+
href: `/product/${w(o) ? `${o}-` : ""}${s}`
|
|
156
|
+
},
|
|
157
|
+
children: [
|
|
158
|
+
N(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
159
|
+
/* @__PURE__ */ m("div", { className: "wrapper__content", children: [
|
|
160
|
+
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
161
|
+
n && /* @__PURE__ */ i("div", { className: "wrapper__description", children: n })
|
|
162
|
+
] })
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
);
|
|
143
166
|
}
|
|
144
|
-
),
|
|
167
|
+
), E = x.div`
|
|
145
168
|
display: flex;
|
|
146
169
|
flex-direction: column;
|
|
147
170
|
align-items: center;
|
|
@@ -189,7 +212,7 @@ const W = w.a`
|
|
|
189
212
|
width: 100%;
|
|
190
213
|
}
|
|
191
214
|
|
|
192
|
-
@media (max-width: ${
|
|
215
|
+
@media (max-width: ${y + "px"}) {
|
|
193
216
|
gap: 1rem;
|
|
194
217
|
|
|
195
218
|
& .wrapper__tags {
|
|
@@ -218,72 +241,74 @@ const W = w.a`
|
|
|
218
241
|
gap: 1rem;
|
|
219
242
|
}
|
|
220
243
|
}
|
|
221
|
-
`,
|
|
244
|
+
`, X = _(
|
|
222
245
|
({
|
|
223
246
|
title: r,
|
|
224
247
|
subtitle: a,
|
|
225
248
|
tags: t = [],
|
|
226
249
|
limitTags: n = 7,
|
|
227
|
-
limitTagsForMobile:
|
|
228
|
-
limit:
|
|
229
|
-
limitForMobile:
|
|
250
|
+
limitTagsForMobile: p = 7,
|
|
251
|
+
limit: s = 3,
|
|
252
|
+
limitForMobile: o = 2,
|
|
230
253
|
items: l = [],
|
|
231
254
|
isLoadingTags: f = !1,
|
|
232
|
-
isLoadingCards:
|
|
233
|
-
selectedTag:
|
|
234
|
-
activeColor:
|
|
255
|
+
isLoadingCards: u = !1,
|
|
256
|
+
selectedTag: c,
|
|
257
|
+
activeColor: b,
|
|
235
258
|
onSelectTag: d = () => {
|
|
236
259
|
},
|
|
237
|
-
onSelectCard:
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
260
|
+
onSelectCard: h = () => {
|
|
261
|
+
},
|
|
262
|
+
LinkComponent: $
|
|
263
|
+
}, k) => /* @__PURE__ */ m(
|
|
264
|
+
E,
|
|
241
265
|
{
|
|
242
|
-
ref:
|
|
266
|
+
ref: k,
|
|
243
267
|
limitTags: n,
|
|
244
|
-
limitTagsForMobile:
|
|
245
|
-
limitCards:
|
|
246
|
-
limitCardsForMobile:
|
|
268
|
+
limitTagsForMobile: p,
|
|
269
|
+
limitCards: s,
|
|
270
|
+
limitCardsForMobile: o,
|
|
247
271
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
|
|
249
273
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
250
274
|
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
251
275
|
] }),
|
|
252
276
|
/* @__PURE__ */ i(
|
|
253
|
-
|
|
277
|
+
W,
|
|
254
278
|
{
|
|
255
279
|
isLoading: f,
|
|
256
280
|
keyPrefix: "field-of-interests-with-tags-tag",
|
|
257
|
-
children: /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t == null ? void 0 : t.map((e,
|
|
258
|
-
|
|
281
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t == null ? void 0 : t.map((e, g) => /* @__PURE__ */ i(
|
|
282
|
+
O,
|
|
259
283
|
{
|
|
260
284
|
icon: e == null ? void 0 : e.icon,
|
|
261
285
|
name: e == null ? void 0 : e.title,
|
|
262
|
-
isActive: (e == null ? void 0 : e.code) ===
|
|
263
|
-
activeColor:
|
|
286
|
+
isActive: (e == null ? void 0 : e.code) === c,
|
|
287
|
+
activeColor: b,
|
|
264
288
|
onSelectCard: () => d == null ? void 0 : d(e)
|
|
265
289
|
},
|
|
266
|
-
`field-of-interests-with-tags-card-tag__${
|
|
290
|
+
`field-of-interests-with-tags-card-tag__${g + 1}`
|
|
267
291
|
)) })
|
|
268
292
|
}
|
|
269
293
|
),
|
|
270
294
|
/* @__PURE__ */ i(
|
|
271
|
-
|
|
295
|
+
j,
|
|
272
296
|
{
|
|
273
297
|
isLoading: f,
|
|
274
298
|
keyPrefix: "field-of-interests-with-tags-card",
|
|
275
|
-
children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: l == null ? void 0 : l.map((e,
|
|
276
|
-
|
|
299
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: l == null ? void 0 : l.map((e, g) => /* @__PURE__ */ i(
|
|
300
|
+
T,
|
|
277
301
|
{
|
|
278
302
|
image: e == null ? void 0 : e.image,
|
|
279
303
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
280
304
|
name: e == null ? void 0 : e.title,
|
|
281
305
|
description: e == null ? void 0 : e.description,
|
|
282
|
-
onSelectCard: () =>
|
|
306
|
+
onSelectCard: () => h == null ? void 0 : h(e),
|
|
283
307
|
uuid: e == null ? void 0 : e.uuid,
|
|
284
|
-
nameSlug: e == null ? void 0 : e.nameSlug
|
|
308
|
+
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
309
|
+
LinkComponent: $
|
|
285
310
|
},
|
|
286
|
-
`field-of-interests-with-tags-card__${
|
|
311
|
+
`field-of-interests-with-tags-card__${g + 1}`
|
|
287
312
|
)) })
|
|
288
313
|
}
|
|
289
314
|
)
|
|
@@ -292,5 +317,5 @@ const W = w.a`
|
|
|
292
317
|
)
|
|
293
318
|
);
|
|
294
319
|
export {
|
|
295
|
-
|
|
320
|
+
X as default
|
|
296
321
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),x=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("react"),v=require("./Icon.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),h=require("./utils-RnrgDDZP.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./index-BAJkosVg.cjs"),$=g.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
`,I=g.styled.a`
|
|
69
69
|
text-decoration: none;
|
|
70
70
|
color: var(--gray-950);
|
|
71
71
|
display: flex;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
white-space: nowrap;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
`,
|
|
116
|
+
`,N=x.forwardRef(({title:t,icon:a,onSelectCard:i=()=>{},selectAction:s,LinkComponent:n},l)=>{const o=n||"a";return r.jsxs(I,{ref:l,onClick:i,as:o,...n?{to:`/${s}`}:{href:`/${s}`},children:[h.isDefinedNotEmptyString(a)&&r.jsx(v,{icon:a,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})}),k=x.forwardRef(({imageUrl:t,imageComponent:a,title:i,onSelectCard:s=()=>{},selectAction:n,LinkComponent:l},o)=>{const{theme:p}=j.useTheme(),c=l||"a";return r.jsxs($,{ref:o,theme:p,onClick:s,as:c,...l?{to:`/${n}`}:{href:`/${n}`},children:[h.isDefined(a)?a:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:i})})]})}),C=g.styled.div`
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: column;
|
|
119
119
|
align-items: center;
|
|
@@ -189,4 +189,4 @@
|
|
|
189
189
|
gap: 1rem;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
`,
|
|
192
|
+
`,E=x.forwardRef(({title:t,subtitle:a,options:i=[],limitTags:s=7,limitTagsForMobile:n=2,limit:l=3,limitForMobile:o=3,items:p=[],onSelectTag:c=()=>{},onSelectCard:d=()=>{},isLoadingTags:u=!1,isLoadingCards:y=!1,LinkComponent:w},b)=>r.jsxs(C,{ref:b,limitTags:s,limitTagsForMobile:n,limitCards:l,limitCardsForMobile:o,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__subtitle",children:a})]}),r.jsx(_.SuspenseFieldOfInterestsWithTagsCard,{isLoading:y,keyPrefix:"general-with-tags-cards-card",children:r.jsx("div",{className:"wrapper__cards",children:p==null?void 0:p.map((e,m)=>r.jsx(k,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,selectAction:e==null?void 0:e.selectAction,onSelectCard:()=>{d==null||d(e)},LinkComponent:w},`general-with-tags-card__${m+1}`))})}),r.jsx(_.SuspenseFieldOfInterestsWithTagsTag,{isLoading:u,keyPrefix:"general-with-tags-cards-tag",children:r.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((e,m)=>r.jsx(N,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>c==null?void 0:c(e),selectAction:e==null?void 0:e.selectAction,LinkComponent:w},`general-with-tags-card-tag__${m+1}`))})})]}));module.exports=E;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
|
-
import
|
|
3
|
+
import b from "./Icon.js";
|
|
4
4
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { M as w } from "./consts-BuFChS64.js";
|
|
6
|
-
import { o as
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as
|
|
9
|
-
const
|
|
6
|
+
import { o as v, k as $, l as C } from "./utils-Dc5zIpaz.js";
|
|
7
|
+
import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { a as k, S as W } from "./index-DxwIu0Wn.js";
|
|
9
|
+
const j = h.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -45,7 +45,7 @@ const W = h.a`
|
|
|
45
45
|
font-style: normal;
|
|
46
46
|
font-weight: 500;
|
|
47
47
|
line-height: 1.5rem;
|
|
48
|
-
${
|
|
48
|
+
${v(2)}
|
|
49
49
|
transition: var(--transition, all 0.2s ease);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -73,7 +73,7 @@ const W = h.a`
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`, I = h.a`
|
|
77
77
|
text-decoration: none;
|
|
78
78
|
color: var(--gray-950);
|
|
79
79
|
display: flex;
|
|
@@ -121,23 +121,57 @@ const W = h.a`
|
|
|
121
121
|
white-space: nowrap;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
`,
|
|
124
|
+
`, z = g(
|
|
125
125
|
({ title: r, icon: t, onSelectCard: i = () => {
|
|
126
|
-
}, selectAction: n },
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
}, selectAction: o, LinkComponent: n }, s) => /* @__PURE__ */ c(
|
|
127
|
+
I,
|
|
128
|
+
{
|
|
129
|
+
ref: s,
|
|
130
|
+
onClick: i,
|
|
131
|
+
as: n || "a",
|
|
132
|
+
...n ? {
|
|
133
|
+
to: `/${o}`
|
|
134
|
+
} : {
|
|
135
|
+
href: `/${o}`
|
|
136
|
+
},
|
|
137
|
+
children: [
|
|
138
|
+
$(t) && /* @__PURE__ */ a(b, { icon: t, className: "wrapper__icon" }),
|
|
139
|
+
/* @__PURE__ */ a("div", { className: "wrapper__text", children: r })
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
), T = g(
|
|
131
144
|
// eslint-disable-next-line react/prop-types
|
|
132
|
-
({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
145
|
+
({
|
|
146
|
+
imageUrl: r,
|
|
147
|
+
imageComponent: t,
|
|
148
|
+
title: i,
|
|
149
|
+
onSelectCard: o = () => {
|
|
150
|
+
},
|
|
151
|
+
selectAction: n,
|
|
152
|
+
LinkComponent: s
|
|
153
|
+
}, p) => {
|
|
154
|
+
const { theme: l } = N();
|
|
155
|
+
return /* @__PURE__ */ c(
|
|
156
|
+
j,
|
|
157
|
+
{
|
|
158
|
+
ref: p,
|
|
159
|
+
theme: l,
|
|
160
|
+
onClick: o,
|
|
161
|
+
as: s || "a",
|
|
162
|
+
...s ? {
|
|
163
|
+
to: `/${n}`
|
|
164
|
+
} : {
|
|
165
|
+
href: `/${n}`
|
|
166
|
+
},
|
|
167
|
+
children: [
|
|
168
|
+
C(t) ? t : /* @__PURE__ */ a("img", { src: r, className: "wrapper__image" }),
|
|
169
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: /* @__PURE__ */ a("div", { className: "wrapper__title", children: i }) })
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
);
|
|
139
173
|
}
|
|
140
|
-
),
|
|
174
|
+
), F = h.div`
|
|
141
175
|
display: flex;
|
|
142
176
|
flex-direction: column;
|
|
143
177
|
align-items: center;
|
|
@@ -213,42 +247,43 @@ const W = h.a`
|
|
|
213
247
|
gap: 1rem;
|
|
214
248
|
}
|
|
215
249
|
}
|
|
216
|
-
`,
|
|
250
|
+
`, U = g(
|
|
217
251
|
({
|
|
218
252
|
title: r,
|
|
219
253
|
subtitle: t,
|
|
220
254
|
options: i = [],
|
|
221
|
-
limitTags:
|
|
222
|
-
limitTagsForMobile:
|
|
255
|
+
limitTags: o = 7,
|
|
256
|
+
limitTagsForMobile: n = 2,
|
|
223
257
|
limit: s = 3,
|
|
224
258
|
limitForMobile: p = 3,
|
|
225
|
-
items:
|
|
226
|
-
onSelectTag:
|
|
259
|
+
items: l = [],
|
|
260
|
+
onSelectTag: m = () => {
|
|
227
261
|
},
|
|
228
262
|
onSelectCard: d = () => {
|
|
229
263
|
},
|
|
230
|
-
isLoadingTags:
|
|
231
|
-
isLoadingCards:
|
|
232
|
-
|
|
233
|
-
|
|
264
|
+
isLoadingTags: x = !1,
|
|
265
|
+
isLoadingCards: u = !1,
|
|
266
|
+
LinkComponent: _
|
|
267
|
+
}, y) => /* @__PURE__ */ c(
|
|
268
|
+
F,
|
|
234
269
|
{
|
|
235
|
-
ref:
|
|
236
|
-
limitTags:
|
|
237
|
-
limitTagsForMobile:
|
|
270
|
+
ref: y,
|
|
271
|
+
limitTags: o,
|
|
272
|
+
limitTagsForMobile: n,
|
|
238
273
|
limitCards: s,
|
|
239
274
|
limitCardsForMobile: p,
|
|
240
275
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ c("div", { className: "wrapper__heading", children: [
|
|
242
277
|
r && /* @__PURE__ */ a("div", { className: "wrapper__title", children: r }),
|
|
243
278
|
t && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: t })
|
|
244
279
|
] }),
|
|
245
280
|
/* @__PURE__ */ a(
|
|
246
|
-
|
|
281
|
+
k,
|
|
247
282
|
{
|
|
248
|
-
isLoading:
|
|
283
|
+
isLoading: u,
|
|
249
284
|
keyPrefix: "general-with-tags-cards-card",
|
|
250
|
-
children: /* @__PURE__ */ a("div", { className: "wrapper__cards", children:
|
|
251
|
-
|
|
285
|
+
children: /* @__PURE__ */ a("div", { className: "wrapper__cards", children: l == null ? void 0 : l.map((e, f) => /* @__PURE__ */ a(
|
|
286
|
+
T,
|
|
252
287
|
{
|
|
253
288
|
imageUrl: e == null ? void 0 : e.imageUrl,
|
|
254
289
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
@@ -256,24 +291,26 @@ const W = h.a`
|
|
|
256
291
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
257
292
|
onSelectCard: () => {
|
|
258
293
|
d == null || d(e);
|
|
259
|
-
}
|
|
294
|
+
},
|
|
295
|
+
LinkComponent: _
|
|
260
296
|
},
|
|
261
297
|
`general-with-tags-card__${f + 1}`
|
|
262
298
|
)) })
|
|
263
299
|
}
|
|
264
300
|
),
|
|
265
301
|
/* @__PURE__ */ a(
|
|
266
|
-
|
|
302
|
+
W,
|
|
267
303
|
{
|
|
268
|
-
isLoading:
|
|
304
|
+
isLoading: x,
|
|
269
305
|
keyPrefix: "general-with-tags-cards-tag",
|
|
270
306
|
children: /* @__PURE__ */ a("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e, f) => /* @__PURE__ */ a(
|
|
271
|
-
|
|
307
|
+
z,
|
|
272
308
|
{
|
|
273
309
|
icon: e == null ? void 0 : e.icon,
|
|
274
310
|
title: e == null ? void 0 : e.title,
|
|
275
|
-
onSelectCard: () =>
|
|
276
|
-
selectAction: e == null ? void 0 : e.selectAction
|
|
311
|
+
onSelectCard: () => m == null ? void 0 : m(e),
|
|
312
|
+
selectAction: e == null ? void 0 : e.selectAction,
|
|
313
|
+
LinkComponent: _
|
|
277
314
|
},
|
|
278
315
|
`general-with-tags-card-tag__${f + 1}`
|
|
279
316
|
)) })
|
|
@@ -284,5 +321,5 @@ const W = h.a`
|
|
|
284
321
|
)
|
|
285
322
|
);
|
|
286
323
|
export {
|
|
287
|
-
|
|
324
|
+
U as default
|
|
288
325
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),f=require("react"),C=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-CkcozOY6.cjs"),u=require("./utils-RnrgDDZP.cjs"),R=require("./Button.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),L=g.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
`,$=g.styled.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
transform: scale(1.1);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,G=g.styled.div`
|
|
33
33
|
width: 100%;
|
|
34
34
|
min-height: 11rem;
|
|
35
35
|
max-height: 11rem;
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
-webkit-transform: rotate(315deg);
|
|
67
67
|
transform: rotate(315deg);
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
70
|
-
@media (max-width: ${
|
|
69
|
+
`,b=f.forwardRef((i,l)=>{const{image:o,text:c,price:s,currency:n,onSelectGiftCard:h=()=>{},selectAction:d,LinkComponent:m}=i,p=m||"a";return r.jsxs($,{ref:l,className:"simple-gift-card",onClick:()=>h(s),as:p,...m?{to:`${d}`}:{href:`${d}`},children:[r.jsxs(G,{children:[r.jsx("div",{className:"price-tag",children:s&&n&&`${u.formatPrice(s)} ${u.GetCurrencySymbol(n)}`}),r.jsx("img",{src:o})]}),r.jsx("div",{className:"text-wrap",children:c})]})}),I=g.styled(t.SkeletonRowWrapper)`
|
|
70
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
|
|
73
73
|
& > div {
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,N=({keyPrefix:i})=>r.jsxs(I,{children:[r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-1`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-2`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-3`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-4`)]}),q=({keyPrefix:i,isLoading:l=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:c})=>r.jsx(f.Suspense,{fallbackComponent:o,children:l===!0?r.jsx(N,{keyPrefix:i}):c}),P=f.forwardRef((i,l)=>{const{icon:o,title:c,buttonLink:s,items:n,isLoading:h=!1,buttonText:d,limit:m=4,onSelectCard:p=()=>{},onButtonAction:w=()=>{},LinkComponent:j}=i,k=C.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:c})]}),u.isDefinedNotEmptyString(d)&&u.isDefinedNotEmptyString(s)&&!h&&r.jsx(R,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),w(s)},borderRadius:"curved",className:"button-link",children:d})]}),r.jsx(q,{isLoading:h,keyPrefix:"gift-cards-skeleton",children:r.jsx(L,{limit:m,children:k===!0?n==null?void 0:n.map((e,a)=>r.jsx(b,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:y=>p(e),LinkComponent:j},a)):n==null?void 0:n.slice(0,m).map((e,a)=>r.jsx(b,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,selectAction:e==null?void 0:e.selectAction,onSelectGiftCard:y=>p(e),LinkComponent:j},a))})})]})});module.exports=P;
|