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