@lanaco/lnc-react-ui 4.0.86 → 4.0.88
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 +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +6 -3
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +3 -3
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +33 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +2 -2
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +4 -4
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +33 -30
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +50 -45
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +96 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +40 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
- package/dist/FieldOfInterestsMasonrySection.js +72 -66
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +12 -11
- package/dist/FieldOfInterestsWithTagsCardsSection.js +56 -53
- package/dist/GeneralWithTagsCardsSection.cjs +6 -7
- package/dist/GeneralWithTagsCardsSection.js +8 -9
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +55 -52
- package/dist/LoanCalculatorSection.cjs +106 -4
- package/dist/LoanCalculatorSection.js +505 -350
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +4 -4
- package/dist/LocationSearchSection.js +18 -16
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +2 -2
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -2
- package/dist/SeparatorSection.cjs +1 -1
- package/dist/SeparatorSection.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +19 -16
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/UrgentSaleProductsSection.cjs +12 -6
- package/dist/UrgentSaleProductsSection.js +56 -47
- package/dist/consts-BuFChS64.js +7 -0
- package/dist/consts-goSZX3xP.cjs +1 -0
- package/dist/{index-BxlCwYfi.cjs → index-BaLBHyTh.cjs} +1 -1
- package/dist/{index-C7iutNsj.cjs → index-Ccw8sLnK.cjs} +1 -1
- package/dist/{index-CpuLfTNK.js → index-CsrdUl1x.js} +1 -1
- package/dist/{index-CWAifrDS.cjs → index-Cx4KvZ9L.cjs} +1 -1
- package/dist/{index-rYeYJwuL.cjs → index-DG7qQq8L.cjs} +1 -1
- package/dist/{index-DmuZIVnC.js → index-Db8wvLXS.js} +2 -2
- package/dist/{index-BpS5mEUu.js → index-Yh18uk_f.js} +2 -2
- package/dist/{index-B5bRol0l.js → index-iSD5jNBk.js} +2 -2
- package/dist/{skeleton-BRWiMY6b.cjs → skeleton-BBSBZ4JV.cjs} +1 -1
- package/dist/{skeleton-DhXNRCfI.js → skeleton-DALCB1S7.js} +1 -1
- package/dist/{style-OPSfrtFm.cjs → style-BTTXJFJN.cjs} +1 -1
- package/dist/{style-CsMpu4iC.js → style-sLF37aOA.js} +1 -1
- package/dist/{style-DOKM5cZi.js → style-tw6KjI2J.js} +1 -1
- package/dist/{style-C571ywKV.cjs → style-xvwWn3Zv.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-D-tE8xV6.cjs → suspense-categories-card-simple-5JZtz7wj.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BmmCOsc0.js → suspense-categories-card-simple-BTFqzXyn.js} +1 -1
- package/dist/{suspense-large-Buu1428e.cjs → suspense-large-BtfvnzWh.cjs} +1 -1
- package/dist/{suspense-large-iKRJJlJv.js → suspense-large-DFlSJhGG.js} +1 -1
- package/dist/{suspense-product-card-detailed-J2a9wi6Z.js → suspense-product-card-detailed-CwdbxJrY.js} +1 -1
- package/dist/{suspense-product-card-detailed-CwUN6A-L.cjs → suspense-product-card-detailed-DBNlkFiP.cjs} +1 -1
- package/dist/{useDetectMobile-BC6EGaBc.js → useDetectMobile-Bkvj0VMa.js} +1 -1
- package/dist/{useDetectMobile-D6d5LpdL.cjs → useDetectMobile-zkbzoOGV.cjs} +1 -1
- package/package.json +1 -1
- package/dist/consts-C1uHV4xc.js +0 -6
- package/dist/consts-CtNoHdBj.cjs +0 -1
- package/dist/index-B69VVFyo.js +0 -164
- package/dist/index-ZR5ws_qw.cjs +0 -103
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { t as y, m as b, k as
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { M as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { t as y, m as b, k as C, l as I } from "./utils-BE-UlkKf.js";
|
|
5
|
+
import W from "./Icon.js";
|
|
6
|
+
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { M as j } from "./consts-BuFChS64.js";
|
|
8
|
+
const z = p.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -65,12 +65,12 @@ const F = m.div`
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`, O = p.div`
|
|
69
69
|
width: 100%;
|
|
70
70
|
height: 11.625rem;
|
|
71
71
|
border-radius: 0.75rem;
|
|
72
72
|
background: ${b("-90deg")};
|
|
73
|
-
`,
|
|
73
|
+
`, A = p.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
padding: 0 0.75rem 0 0.75rem;
|
|
76
76
|
align-items: center;
|
|
@@ -82,6 +82,7 @@ const F = m.div`
|
|
|
82
82
|
|
|
83
83
|
&:hover {
|
|
84
84
|
cursor: pointer;
|
|
85
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
& .wrapper__icon {
|
|
@@ -119,30 +120,30 @@ const F = m.div`
|
|
|
119
120
|
color: var(--white, #fff);
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
`,
|
|
123
|
+
`, E = p.div`
|
|
123
124
|
width: 7rem;
|
|
124
125
|
height: 3rem;
|
|
125
126
|
border-radius: 999px;
|
|
126
127
|
background: ${b("-90deg")};
|
|
127
|
-
`,
|
|
128
|
-
({ name: r, isActive: n, icon: t, onSelectCard:
|
|
129
|
-
} },
|
|
130
|
-
|
|
128
|
+
`, M = l(({}, r) => /* @__PURE__ */ i(E, {})), D = l(
|
|
129
|
+
({ name: r, isActive: n, icon: t, onSelectCard: o = () => {
|
|
130
|
+
} }, m) => /* @__PURE__ */ s(A, { className: n ? "active" : "", onClick: o, children: [
|
|
131
|
+
C(t) && /* @__PURE__ */ i(W, { icon: t, className: "wrapper__icon" }),
|
|
131
132
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
132
133
|
] })
|
|
133
|
-
),
|
|
134
|
-
({ image: r, imageComponent: n, name: t, description:
|
|
134
|
+
), G = l(
|
|
135
|
+
({ image: r, imageComponent: n, name: t, description: o, onSelectCard: m = () => {
|
|
135
136
|
} }, u) => {
|
|
136
|
-
const { theme:
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
/* @__PURE__ */
|
|
137
|
+
const { theme: f } = F();
|
|
138
|
+
return /* @__PURE__ */ s(z, { theme: f, onClick: m, children: [
|
|
139
|
+
I(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
140
|
+
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
140
141
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
141
|
-
|
|
142
|
+
o && /* @__PURE__ */ i("div", { className: "wrapper__description", children: o })
|
|
142
143
|
] })
|
|
143
144
|
] });
|
|
144
145
|
}
|
|
145
|
-
),
|
|
146
|
+
), L = l(({}, r) => /* @__PURE__ */ i(O, {})), R = p.div`
|
|
146
147
|
display: flex;
|
|
147
148
|
flex-direction: column;
|
|
148
149
|
align-items: center;
|
|
@@ -190,7 +191,7 @@ const F = m.div`
|
|
|
190
191
|
width: 100%;
|
|
191
192
|
}
|
|
192
193
|
|
|
193
|
-
@media (max-width: ${
|
|
194
|
+
@media (max-width: ${j + "px"}) {
|
|
194
195
|
& .wrapper__tags {
|
|
195
196
|
overflow-x: scroll;
|
|
196
197
|
justify-content: flex-start;
|
|
@@ -216,70 +217,72 @@ const F = m.div`
|
|
|
216
217
|
gap: 1rem;
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
|
-
`,
|
|
220
|
+
`, J = l(
|
|
220
221
|
({
|
|
221
222
|
title: r,
|
|
222
223
|
subtitle: n,
|
|
223
224
|
tags: t = [],
|
|
224
|
-
limitTags:
|
|
225
|
-
limitTagsForMobile:
|
|
225
|
+
limitTags: o = 7,
|
|
226
|
+
limitTagsForMobile: m = 7,
|
|
226
227
|
limit: u = 3,
|
|
227
|
-
limitForMobile:
|
|
228
|
-
items:
|
|
228
|
+
limitForMobile: f = 2,
|
|
229
|
+
items: d = [],
|
|
229
230
|
selectedTag: c,
|
|
231
|
+
isLoadingTags: k = !1,
|
|
232
|
+
isLoadingItems: $ = !1,
|
|
230
233
|
onSelectTag: h = () => {
|
|
231
234
|
},
|
|
232
235
|
onSelectCard: _ = () => {
|
|
233
236
|
},
|
|
234
|
-
getImage:
|
|
237
|
+
getImage: N = () => {
|
|
235
238
|
}
|
|
236
|
-
},
|
|
239
|
+
}, T) => {
|
|
237
240
|
var x, v;
|
|
238
241
|
const w = (e) => {
|
|
239
242
|
h == null || h(e);
|
|
240
243
|
}, g = (e) => {
|
|
241
244
|
_ == null || _(e);
|
|
242
245
|
};
|
|
243
|
-
return /* @__PURE__ */
|
|
244
|
-
|
|
246
|
+
return /* @__PURE__ */ s(
|
|
247
|
+
R,
|
|
245
248
|
{
|
|
246
|
-
limitTags:
|
|
247
|
-
limitTagsForMobile:
|
|
249
|
+
limitTags: o,
|
|
250
|
+
limitTagsForMobile: m,
|
|
248
251
|
limitCards: u,
|
|
249
|
-
limitCardsForMobile:
|
|
252
|
+
limitCardsForMobile: f,
|
|
250
253
|
children: [
|
|
251
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
252
255
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
253
256
|
n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
|
|
254
257
|
] }),
|
|
255
|
-
/* @__PURE__ */ i("div", { className: "wrapper__tags", children:
|
|
256
|
-
|
|
258
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: k ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
|
|
259
|
+
M,
|
|
260
|
+
{},
|
|
261
|
+
`field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
|
|
262
|
+
)) : t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ i(
|
|
263
|
+
D,
|
|
257
264
|
{
|
|
258
265
|
icon: e == null ? void 0 : e.icon,
|
|
259
266
|
name: e == null ? void 0 : e.name,
|
|
260
267
|
isActive: (e == null ? void 0 : e.uuid) === (c == null ? void 0 : c.uuid),
|
|
261
268
|
onSelectCard: () => w == null ? void 0 : w(e)
|
|
262
269
|
},
|
|
263
|
-
`field-of-interests-with-tags-card-tag__${
|
|
264
|
-
)) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
|
|
265
|
-
A,
|
|
266
|
-
{},
|
|
267
|
-
`field-of-interests-with-tags-card-tag-skeleton__${o + 1}`
|
|
270
|
+
`field-of-interests-with-tags-card-tag__${a + 1}`
|
|
268
271
|
)) }),
|
|
269
|
-
/* @__PURE__ */ i("div", { className: "wrapper__cards", children:
|
|
270
|
-
|
|
272
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: $ ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
|
|
273
|
+
L,
|
|
274
|
+
{},
|
|
275
|
+
`field-of-interests-with-tags-card-skeleton__${a + 1}`
|
|
276
|
+
)) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */ i(
|
|
277
|
+
G,
|
|
271
278
|
{
|
|
272
|
-
image:
|
|
279
|
+
image: N(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
|
|
273
280
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
274
281
|
name: e == null ? void 0 : e.name,
|
|
275
282
|
description: (e == null ? void 0 : e.shortDescription) || (e == null ? void 0 : e.description),
|
|
276
283
|
onSelectCard: () => g == null ? void 0 : g(e)
|
|
277
284
|
},
|
|
278
|
-
`field-of-interests-with-tags-card__${
|
|
279
|
-
)) : (v = Array.from("123")) == null ? void 0 : v.map((e, o) => /* @__PURE__ */ i(
|
|
280
|
-
D,
|
|
281
|
-
{},
|
|
282
|
-
`field-of-interests-with-tags-card-skeleton__${o + 1}`
|
|
285
|
+
`field-of-interests-with-tags-card__${a + 1}`
|
|
283
286
|
)) })
|
|
284
287
|
]
|
|
285
288
|
}
|
|
@@ -287,5 +290,5 @@ const F = m.div`
|
|
|
287
290
|
}
|
|
288
291
|
);
|
|
289
292
|
export {
|
|
290
|
-
|
|
293
|
+
J as default
|
|
291
294
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-DhRHf5Ed.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;
|
|
5
|
-
|
|
6
|
-
align-self: stretch;
|
|
5
|
+
width: fit-content;
|
|
7
6
|
border-radius: 0.75rem;
|
|
8
7
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
9
8
|
background: var(--Lanaco-Gray-white, #fff);
|
|
@@ -17,9 +16,9 @@
|
|
|
17
16
|
|
|
18
17
|
& .wrapper__image {
|
|
19
18
|
width: 100%;
|
|
19
|
+
max-width: 18rem;
|
|
20
20
|
object-fit: cover;
|
|
21
21
|
height: auto;
|
|
22
|
-
max-height: 19.5rem;
|
|
23
22
|
border-radius: 0.75rem 0.75rem 0 0;
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -97,6 +96,7 @@
|
|
|
97
96
|
|
|
98
97
|
&:hover {
|
|
99
98
|
cursor: pointer;
|
|
99
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
& .wrapper__icon {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
height: 3rem;
|
|
136
136
|
border-radius: 999px;
|
|
137
137
|
background: ${d.linearGradientAnimation("-90deg")};
|
|
138
|
-
`,C=
|
|
138
|
+
`,C=s.forwardRef(({},a)=>r.jsx(N,{})),E=s.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=s.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=s.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
|
|
139
139
|
display: flex;
|
|
140
140
|
flex-direction: column;
|
|
141
141
|
align-items: center;
|
|
@@ -181,7 +181,6 @@
|
|
|
181
181
|
justify-content: center;
|
|
182
182
|
align-items: center;
|
|
183
183
|
gap: 1.5rem;
|
|
184
|
-
width: 100%;
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
@@ -212,4 +211,4 @@
|
|
|
212
211
|
gap: 1rem;
|
|
213
212
|
}
|
|
214
213
|
}
|
|
215
|
-
`,R=
|
|
214
|
+
`,R=s.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 w,x;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,l)=>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__${l+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,l)=>r.jsx(W,{},`general-with-tags-card-skeleton__${l+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,l)=>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__${l+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(x=Array.from("123"))==null?void 0:x.map((e,l)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${l+1}`))})]})});module.exports=R;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
3
|
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as d } from "./consts-
|
|
4
|
+
import { M as d } from "./consts-BuFChS64.js";
|
|
5
5
|
import { t as y, m as x, k, l as $ } from "./utils-BE-UlkKf.js";
|
|
6
6
|
import N from "./Icon.js";
|
|
7
7
|
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
@@ -9,8 +9,7 @@ const W = s.div`
|
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
12
|
-
|
|
13
|
-
align-self: stretch;
|
|
12
|
+
width: fit-content;
|
|
14
13
|
border-radius: 0.75rem;
|
|
15
14
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
16
15
|
background: var(--Lanaco-Gray-white, #fff);
|
|
@@ -24,9 +23,9 @@ const W = s.div`
|
|
|
24
23
|
|
|
25
24
|
& .wrapper__image {
|
|
26
25
|
width: 100%;
|
|
26
|
+
max-width: 18rem;
|
|
27
27
|
object-fit: cover;
|
|
28
28
|
height: auto;
|
|
29
|
-
max-height: 19.5rem;
|
|
30
29
|
border-radius: 0.75rem 0.75rem 0 0;
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -104,6 +103,7 @@ const W = s.div`
|
|
|
104
103
|
|
|
105
104
|
&:hover {
|
|
106
105
|
cursor: pointer;
|
|
106
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
& .wrapper__icon {
|
|
@@ -204,7 +204,6 @@ const W = s.div`
|
|
|
204
204
|
justify-content: center;
|
|
205
205
|
align-items: center;
|
|
206
206
|
gap: 1.5rem;
|
|
207
|
-
width: 100%;
|
|
208
207
|
}
|
|
209
208
|
|
|
210
209
|
@media (max-width: ${d + "px"}) {
|
|
@@ -247,11 +246,11 @@ const W = s.div`
|
|
|
247
246
|
items: n = [],
|
|
248
247
|
onSelectTag: h = () => {
|
|
249
248
|
},
|
|
250
|
-
onSelectCard:
|
|
249
|
+
onSelectCard: w = () => {
|
|
251
250
|
},
|
|
252
251
|
isLoading: b
|
|
253
252
|
}, v) => {
|
|
254
|
-
var
|
|
253
|
+
var f, _;
|
|
255
254
|
return /* @__PURE__ */ m(
|
|
256
255
|
A,
|
|
257
256
|
{
|
|
@@ -272,11 +271,11 @@ const W = s.div`
|
|
|
272
271
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
273
272
|
title: e == null ? void 0 : e.title,
|
|
274
273
|
onSelectCard: () => {
|
|
275
|
-
|
|
274
|
+
w == null || w(e);
|
|
276
275
|
}
|
|
277
276
|
},
|
|
278
277
|
`general-with-tags-card__${l + 1}`
|
|
279
|
-
)) : (
|
|
278
|
+
)) : (f = Array.from("123")) == null ? void 0 : f.map((e, l) => /* @__PURE__ */ a(
|
|
280
279
|
M,
|
|
281
280
|
{},
|
|
282
281
|
`general-with-tags-card-skeleton__${l + 1}`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-xvwWn3Zv.cjs"),o=require("./utils-DhRHf5Ed.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
6
|
@media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,G=
|
|
9
|
+
`,G=c.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
gap: 0.75rem;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
& .text-wrap {
|
|
22
22
|
text-align: center;
|
|
23
23
|
}
|
|
24
|
-
`,k=
|
|
24
|
+
`,k=c.styled.div`
|
|
25
25
|
width: 100%;
|
|
26
26
|
min-height: 11rem;
|
|
27
27
|
max-height: 11rem;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
& .skeleton__card {
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: 100%;
|
|
36
|
-
${
|
|
36
|
+
${o.linearGradientAnimation("-90deg")}
|
|
37
37
|
|
|
38
38
|
background: linear-gradient(
|
|
39
39
|
178deg,
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
-webkit-transform: rotate(315deg);
|
|
70
70
|
transform: rotate(315deg);
|
|
71
71
|
}
|
|
72
|
-
`;
|
|
72
|
+
`;c.styled.div`
|
|
73
73
|
width: 100%;
|
|
74
74
|
height: 11.5rem;
|
|
75
75
|
border-radius: 0.75rem;
|
|
76
|
-
background: ${
|
|
77
|
-
`;const p=f.forwardRef((
|
|
76
|
+
background: ${o.linearGradientAnimation("-90deg")};
|
|
77
|
+
`;const p=f.forwardRef((a,d)=>{const{image:s,text:l,price:i,currency:t,onSelectGiftCard:m=()=>{}}=a;return r.jsxs(G,{ref:d,className:"simple-gift-card",onClick:()=>m(i),children:[r.jsxs(k,{children:[r.jsx("div",{className:"price-tag",children:i&&t&&`${o.formatPrice(i)} ${o.GetCurrencySymbol(t)}`}),r.jsx("img",{src:s})]}),r.jsx("div",{className:"text-wrap",children:l})]})}),q=f.forwardRef((a,d)=>{const{icon:s,title:l,buttonLink:i,items:t,buttonText:m,limit:u=4,onSelectCard:g=()=>{},onButtonAction:h=()=>{}}=a,b=w.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:d,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[o.isDefinedNotEmptyString(s)&&r.jsx("i",{className:s}),r.jsx("span",{children:l})]}),o.isDefinedNotEmptyString(i)&&r.jsx(j,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(i)},borderRadius:"curved",children:m})]}),r.jsx(S,{limit:u,children:b===!0?t==null?void 0:t.map((e,n)=>r.jsx(p,{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,onSelectGiftCard:y=>g(e)},n)):t==null?void 0:t.slice(0,u).map((e,n)=>r.jsx(p,{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,onSelectGiftCard:y=>g(e)},n))})]})});module.exports=q;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
|
-
import { u as C } from "./useDetectMobile-
|
|
4
|
-
import { R as k } from "./style-
|
|
3
|
+
import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { R as k } from "./style-sLF37aOA.js";
|
|
5
5
|
import { m as b, n as G, G as S, k as u } from "./utils-BE-UlkKf.js";
|
|
6
6
|
import N from "./Button.js";
|
|
7
|
-
import { s as
|
|
8
|
-
import { M as $ } from "./consts-
|
|
9
|
-
const T =
|
|
7
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { M as $ } from "./consts-BuFChS64.js";
|
|
9
|
+
const T = c.div`
|
|
10
10
|
display: grid;
|
|
11
|
-
grid-template-columns: ${(
|
|
11
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
12
12
|
gap: 1.25rem;
|
|
13
13
|
|
|
14
14
|
@media (max-width: ${$ + "px"}) {
|
|
15
15
|
grid-template-columns: repeat(1, 1fr);
|
|
16
16
|
}
|
|
17
|
-
`, j =
|
|
17
|
+
`, j = c.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
gap: 0.75rem;
|
|
@@ -29,7 +29,7 @@ const T = d.div`
|
|
|
29
29
|
& .text-wrap {
|
|
30
30
|
text-align: center;
|
|
31
31
|
}
|
|
32
|
-
`, E =
|
|
32
|
+
`, E = c.div`
|
|
33
33
|
width: 100%;
|
|
34
34
|
min-height: 11rem;
|
|
35
35
|
max-height: 11rem;
|
|
@@ -78,54 +78,54 @@ const T = d.div`
|
|
|
78
78
|
transform: rotate(315deg);
|
|
79
79
|
}
|
|
80
80
|
`;
|
|
81
|
-
|
|
81
|
+
c.div`
|
|
82
82
|
width: 100%;
|
|
83
83
|
height: 11.5rem;
|
|
84
84
|
border-radius: 0.75rem;
|
|
85
85
|
background: ${b("-90deg")};
|
|
86
86
|
`;
|
|
87
|
-
const f = h((
|
|
87
|
+
const f = h((a, m) => {
|
|
88
88
|
const {
|
|
89
|
-
image:
|
|
90
|
-
text:
|
|
89
|
+
image: d,
|
|
90
|
+
text: l,
|
|
91
91
|
price: i,
|
|
92
|
-
currency:
|
|
93
|
-
onSelectGiftCard:
|
|
92
|
+
currency: e,
|
|
93
|
+
onSelectGiftCard: s = () => {
|
|
94
94
|
}
|
|
95
|
-
} =
|
|
96
|
-
return /* @__PURE__ */
|
|
95
|
+
} = a;
|
|
96
|
+
return /* @__PURE__ */ n(
|
|
97
97
|
j,
|
|
98
98
|
{
|
|
99
|
-
ref:
|
|
99
|
+
ref: m,
|
|
100
100
|
className: "simple-gift-card",
|
|
101
|
-
onClick: () =>
|
|
101
|
+
onClick: () => s(i),
|
|
102
102
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */ t("div", { className: "price-tag", children: i &&
|
|
105
|
-
/* @__PURE__ */ t("img", { src:
|
|
103
|
+
/* @__PURE__ */ n(E, { children: [
|
|
104
|
+
/* @__PURE__ */ t("div", { className: "price-tag", children: i && e && `${G(i)} ${S(e)}` }),
|
|
105
|
+
/* @__PURE__ */ t("img", { src: d })
|
|
106
106
|
] }),
|
|
107
|
-
/* @__PURE__ */ t("div", { className: "text-wrap", children:
|
|
107
|
+
/* @__PURE__ */ t("div", { className: "text-wrap", children: l })
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
}), D = h((
|
|
111
|
+
}), D = h((a, m) => {
|
|
112
112
|
const {
|
|
113
|
-
icon:
|
|
114
|
-
title:
|
|
113
|
+
icon: d,
|
|
114
|
+
title: l,
|
|
115
115
|
buttonLink: i,
|
|
116
|
-
items:
|
|
117
|
-
buttonText:
|
|
116
|
+
items: e,
|
|
117
|
+
buttonText: s,
|
|
118
118
|
limit: p = 4,
|
|
119
119
|
onSelectCard: g = () => {
|
|
120
120
|
},
|
|
121
121
|
onButtonAction: v = () => {
|
|
122
122
|
}
|
|
123
|
-
} =
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
u(
|
|
128
|
-
/* @__PURE__ */ t("span", { children:
|
|
123
|
+
} = a, w = C();
|
|
124
|
+
return /* @__PURE__ */ n(k, { ref: m, children: [
|
|
125
|
+
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
126
|
+
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
127
|
+
u(d) && /* @__PURE__ */ t("i", { className: d }),
|
|
128
|
+
/* @__PURE__ */ t("span", { children: l })
|
|
129
129
|
] }),
|
|
130
130
|
u(i) && /* @__PURE__ */ t(
|
|
131
131
|
N,
|
|
@@ -133,34 +133,37 @@ const f = h((o, c) => {
|
|
|
133
133
|
type: "button",
|
|
134
134
|
btnType: "tinted",
|
|
135
135
|
color: "gray",
|
|
136
|
-
onClick: () =>
|
|
136
|
+
onClick: (r) => {
|
|
137
|
+
var o;
|
|
138
|
+
(o = r == null ? void 0 : r.target) == null || o.blur(), v(i);
|
|
139
|
+
},
|
|
137
140
|
borderRadius: "curved",
|
|
138
|
-
children:
|
|
141
|
+
children: s
|
|
139
142
|
}
|
|
140
143
|
)
|
|
141
144
|
] }),
|
|
142
|
-
/* @__PURE__ */ t(T, { limit: p, children: w === !0 ?
|
|
145
|
+
/* @__PURE__ */ t(T, { limit: p, children: w === !0 ? e == null ? void 0 : e.map((r, o) => /* @__PURE__ */ t(
|
|
143
146
|
f,
|
|
144
147
|
{
|
|
145
|
-
text:
|
|
146
|
-
price:
|
|
147
|
-
currency:
|
|
148
|
-
image:
|
|
149
|
-
uuid:
|
|
150
|
-
onSelectGiftCard: (y) => g(
|
|
148
|
+
text: r == null ? void 0 : r.text,
|
|
149
|
+
price: r == null ? void 0 : r.priceTo,
|
|
150
|
+
currency: r == null ? void 0 : r.currencyIsoCode,
|
|
151
|
+
image: r == null ? void 0 : r.imageUrl,
|
|
152
|
+
uuid: r == null ? void 0 : r.uuid,
|
|
153
|
+
onSelectGiftCard: (y) => g(r)
|
|
151
154
|
},
|
|
152
|
-
|
|
153
|
-
)) :
|
|
155
|
+
o
|
|
156
|
+
)) : e == null ? void 0 : e.slice(0, p).map((r, o) => /* @__PURE__ */ t(
|
|
154
157
|
f,
|
|
155
158
|
{
|
|
156
|
-
text:
|
|
157
|
-
price:
|
|
158
|
-
currency:
|
|
159
|
-
image:
|
|
160
|
-
uuid:
|
|
161
|
-
onSelectGiftCard: (y) => g(
|
|
159
|
+
text: r == null ? void 0 : r.text,
|
|
160
|
+
price: r == null ? void 0 : r.priceTo,
|
|
161
|
+
currency: r == null ? void 0 : r.currencyIsoCode,
|
|
162
|
+
image: r == null ? void 0 : r.imageUrl,
|
|
163
|
+
uuid: r == null ? void 0 : r.uuid,
|
|
164
|
+
onSelectGiftCard: (y) => g(r)
|
|
162
165
|
},
|
|
163
|
-
|
|
166
|
+
o
|
|
164
167
|
)) })
|
|
165
168
|
] });
|
|
166
169
|
});
|