@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 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),l=require("react"),p=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),l=require("react"),p=require("./index-Cx4KvZ9L.cjs"),d=l.forwardRef((e,t)=>{const{locationFinderTitle:n,locationFinderPlaceholder:o,openMapText:i,onOpenMap:r=()=>{},mapFilters:c,inputComponent:a}=e;return s.jsx(p.LocationFinder,{ref:t,title:n,placeholderText:o,onOpenMap:r,openMapText:i,mapFilters:c,inputComponent:a})});module.exports=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),
|
|
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"),j=require("./index-DG7qQq8L.cjs"),w=i.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: 1.25rem;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
box-shadow: none;
|
|
20
20
|
border: none;
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,S=i.styled.div`
|
|
23
23
|
display: grid;
|
|
24
24
|
grid-template-columns: repeat(4, 1fr);
|
|
25
25
|
gap: 1.5rem;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
grid-template-columns: repeat(2, 1fr);
|
|
29
29
|
gap: 0.5rem;
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,y=i.styled.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
gap: 0.75rem;
|
|
@@ -57,4 +57,4 @@
|
|
|
57
57
|
color: var(--primary-500, #f59e0b);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`,N=l.forwardRef((c,p)=>{const{title:m,items:s,options:o,selectedOption:g=[],onSelectRegion:u=()=>{},onSelectCity:x=()=>{},onSelectOption:h=()=>{},onSelectAll:f=()=>{},productsToolbarName:v="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(j.SelectBar,{items:o,selectedIds:g,onSelect:(r,t)=>{h(r,t)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:v}),e.jsx(S,{children:s==null?void 0:s.map((r,t)=>{var a;return e.jsxs(y,{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,b)=>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+b))})]},t)})})]})});module.exports=N;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as w, Fragment as S } from "react";
|
|
3
3
|
import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as p } from "./consts-
|
|
5
|
-
import { S } from "./index-
|
|
6
|
-
const
|
|
4
|
+
import { M as p } from "./consts-BuFChS64.js";
|
|
5
|
+
import { S as N } from "./index-Db8wvLXS.js";
|
|
6
|
+
const C = l.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
padding: 1.25rem;
|
|
@@ -24,7 +24,7 @@ const N = l.div`
|
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
border: none;
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`, k = l.div`
|
|
28
28
|
display: grid;
|
|
29
29
|
grid-template-columns: repeat(4, 1fr);
|
|
30
30
|
gap: 1.5rem;
|
|
@@ -33,7 +33,7 @@ const N = l.div`
|
|
|
33
33
|
grid-template-columns: repeat(2, 1fr);
|
|
34
34
|
gap: 0.5rem;
|
|
35
35
|
}
|
|
36
|
-
`,
|
|
36
|
+
`, y = l.div`
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
gap: 0.75rem;
|
|
@@ -62,7 +62,7 @@ const N = l.div`
|
|
|
62
62
|
color: var(--primary-500, #f59e0b);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`, A = w((s, m) => {
|
|
66
66
|
const {
|
|
67
67
|
title: c,
|
|
68
68
|
items: t,
|
|
@@ -75,12 +75,13 @@ const N = l.div`
|
|
|
75
75
|
onSelectOption: u = () => {
|
|
76
76
|
},
|
|
77
77
|
onSelectAll: x = () => {
|
|
78
|
-
}
|
|
78
|
+
},
|
|
79
|
+
productsToolbarName: v = "All"
|
|
79
80
|
} = s;
|
|
80
|
-
return /* @__PURE__ */ i(
|
|
81
|
+
return /* @__PURE__ */ i(C, { ref: m, children: [
|
|
81
82
|
/* @__PURE__ */ o("div", { className: "wrapper-title", children: c }),
|
|
82
83
|
(a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ o(
|
|
83
|
-
|
|
84
|
+
N,
|
|
84
85
|
{
|
|
85
86
|
items: a,
|
|
86
87
|
selectedIds: g,
|
|
@@ -90,25 +91,26 @@ const N = l.div`
|
|
|
90
91
|
onSelectAll: x,
|
|
91
92
|
labelKey: "name",
|
|
92
93
|
valueKey: "code",
|
|
93
|
-
noMargin: !0
|
|
94
|
+
noMargin: !0,
|
|
95
|
+
productsToolbarName: v
|
|
94
96
|
}
|
|
95
97
|
),
|
|
96
|
-
/* @__PURE__ */ o(
|
|
98
|
+
/* @__PURE__ */ o(k, { children: t == null ? void 0 : t.map((e, n) => {
|
|
97
99
|
var d;
|
|
98
|
-
return /* @__PURE__ */ i(
|
|
100
|
+
return /* @__PURE__ */ i(y, { children: [
|
|
99
101
|
/* @__PURE__ */ o("div", { className: "region", onClick: () => f(e), children: e == null ? void 0 : e.name }),
|
|
100
|
-
/* @__PURE__ */ o("div", { className: "group-items", children: (d = e == null ? void 0 : e.cities) == null ? void 0 : d.map((r,
|
|
102
|
+
/* @__PURE__ */ o("div", { className: "group-items", children: (d = e == null ? void 0 : e.cities) == null ? void 0 : d.map((r, b) => /* @__PURE__ */ o(S, { children: /* @__PURE__ */ i("div", { className: "city", onClick: () => h(r), children: [
|
|
101
103
|
/* @__PURE__ */ o("span", { children: r == null ? void 0 : r.name }),
|
|
102
104
|
/* @__PURE__ */ i("span", { className: "count-txt", children: [
|
|
103
105
|
"(",
|
|
104
106
|
r == null ? void 0 : r.count,
|
|
105
107
|
")"
|
|
106
108
|
] })
|
|
107
|
-
] }) }, n +
|
|
109
|
+
] }) }, n + b)) })
|
|
108
110
|
] }, n);
|
|
109
111
|
}) })
|
|
110
112
|
] });
|
|
111
113
|
});
|
|
112
114
|
export {
|
|
113
|
-
|
|
115
|
+
A as default
|
|
114
116
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),m=require("react"),f=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-DhRHf5Ed.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),f=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-DhRHf5Ed.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=require("./consts-goSZX3xP.cjs"),_=d.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -4,7 +4,7 @@ import b from "./Button.js";
|
|
|
4
4
|
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { m as n, t as g, k as p } from "./utils-BE-UlkKf.js";
|
|
6
6
|
import { u as v } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
-
import { M as f } from "./consts-
|
|
7
|
+
import { M as f } from "./consts-BuFChS64.js";
|
|
8
8
|
const y = s.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),p=require("./style-xvwWn3Zv.cjs"),u=require("./utils-DhRHf5Ed.cjs"),f=require("./Button.cjs"),v=require("./ThemeProvider.cjs"),j=x.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${n=>`repeat(${n.limit}, 1fr)`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, Fragment as p, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, Suspense as m } from "react";
|
|
3
3
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as h } from "./consts-
|
|
5
|
-
import { R as v } from "./style-
|
|
4
|
+
import { M as h } from "./consts-BuFChS64.js";
|
|
5
|
+
import { R as v } from "./style-sLF37aOA.js";
|
|
6
6
|
import { t as x, m as y, k } from "./utils-BE-UlkKf.js";
|
|
7
7
|
import w from "./Button.js";
|
|
8
8
|
import { useTheme as b } from "./ThemeProvider.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),k=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-xvwWn3Zv.cjs"),d=require("./utils-DhRHf5Ed.cjs"),P=require("./index-BVaZWq6y.cjs"),S=u.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 22.5rem;
|
|
4
4
|
min-height: 22.5rem;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, Suspense as C, memo as N, useMemo as S } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as k } from "./consts-
|
|
5
|
-
import { u as $ } from "./useDetectMobile-
|
|
6
|
-
import { R as U } from "./style-
|
|
4
|
+
import { M as k } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { R as U } from "./style-sLF37aOA.js";
|
|
7
7
|
import { t as I, m as b, l as M, k as W } from "./utils-BE-UlkKf.js";
|
|
8
8
|
import { P as j } from "./index-Ca38iPjf.js";
|
|
9
9
|
const E = p.div`
|
package/dist/QuizSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-DhRHf5Ed.cjs"),k=require("./Button.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./consts-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("react"),N=require("./utils-DhRHf5Ed.cjs"),k=require("./Button.cjs"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./consts-goSZX3xP.cjs"),M=require("./Icon.cjs"),K=require("./ProgressBar.cjs"),V=T.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
justify-content: center;
|
package/dist/QuizSection.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as I, useState as w, useRef as B, useEffect as re } from "re
|
|
|
3
3
|
import { v as ae, k as te, l as G, q as ie } from "./utils-BE-UlkKf.js";
|
|
4
4
|
import z from "./Button.js";
|
|
5
5
|
import { s as E } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import { M as U, C as H, a as P } from "./consts-
|
|
6
|
+
import { M as U, C as H, a as P } from "./consts-BuFChS64.js";
|
|
7
7
|
import M from "./Icon.js";
|
|
8
8
|
import ne from "./ProgressBar.js";
|
|
9
9
|
const le = E.div`
|
package/dist/ReviewsSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-DhRHf5Ed.cjs"),N=require("./ThemeProvider.cjs"),a=require("./index-BPVoEhTF.cjs"),P=require("./index-BVaZWq6y.cjs"),C=c.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
color: var(--darkest-950);
|
package/dist/ReviewsSection.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t, Fragment as w } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h, Suspense as C, memo as k, useMemo as x } from "react";
|
|
3
3
|
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as z } from "./consts-
|
|
5
|
-
import { u as P } from "./useDetectMobile-
|
|
4
|
+
import { M as z } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { o as R, t as M, m as I, b as j, g as E } from "./utils-BE-UlkKf.js";
|
|
7
7
|
import { useTheme as T } from "./ThemeProvider.js";
|
|
8
8
|
import { P as l } from "./index-S5Cd7WrG.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./utils-DhRHf5Ed.cjs"),E=require("./consts-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),n=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./utils-DhRHf5Ed.cjs"),E=require("./consts-goSZX3xP.cjs"),K=require("./motion-B_VPZaJq.cjs"),i=require("./index-BPVoEhTF.cjs"),Q=require("./Icon.cjs"),ee=require("./Badge.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=require("./useDetectMobile-zkbzoOGV.cjs"),re=require("./FlexBox.cjs"),q=require("./index-CHDRU86t.cjs"),z=require("./IconButton.cjs"),te=f.styled.div`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
display: flex;
|
|
4
4
|
gap: 1rem;
|
|
@@ -2,13 +2,13 @@ import { jsx as t, jsxs as w, Fragment as G } from "react/jsx-runtime";
|
|
|
2
2
|
import { createElement as ae, useState as E, useEffect as j, forwardRef as V, useRef as Q, useImperativeHandle as ne, Suspense as se, memo as le, useMemo as ce } from "react";
|
|
3
3
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { a as _, l as X, m as ee } from "./utils-BE-UlkKf.js";
|
|
5
|
-
import { M as A } from "./consts-
|
|
5
|
+
import { M as A } from "./consts-BuFChS64.js";
|
|
6
6
|
import { m as de } from "./motion-Ckekul_K.js";
|
|
7
7
|
import { P as i } from "./index-S5Cd7WrG.js";
|
|
8
8
|
import ge from "./Icon.js";
|
|
9
9
|
import he from "./Badge.js";
|
|
10
10
|
import { u as M } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
11
|
-
import { u as re } from "./useDetectMobile-
|
|
11
|
+
import { u as re } from "./useDetectMobile-Bkvj0VMa.js";
|
|
12
12
|
import fe from "./FlexBox.js";
|
|
13
13
|
import { I as Y } from "./index-Dhf4jQmS.js";
|
|
14
14
|
import L from "./IconButton.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),t=require("react"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("react"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),a=s.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 0.125rem;
|
|
4
4
|
background-color: var(--gray-95008, rgba(20, 22, 26, 0.08));
|
package/dist/SeparatorSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as a } from "react";
|
|
3
3
|
import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as e } from "./consts-
|
|
4
|
+
import { M as e } from "./consts-BuFChS64.js";
|
|
5
5
|
const m = t.div`
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 0.125rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),y=require("react"),v=require("./Button.cjs"),p=require("./skeleton-C_Jypl8r.cjs"),c=require("./utils-DhRHf5Ed.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),y=require("react"),v=require("./Button.cjs"),p=require("./skeleton-C_Jypl8r.cjs"),c=require("./utils-DhRHf5Ed.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),C=j.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
package/dist/ShopCardsSection.js
CHANGED
|
@@ -4,7 +4,7 @@ import v from "./Button.js";
|
|
|
4
4
|
import { S as C, a as b } from "./skeleton-wfDIalr3.js";
|
|
5
5
|
import { k as d } from "./utils-BE-UlkKf.js";
|
|
6
6
|
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
-
import { M as N } from "./consts-
|
|
7
|
+
import { M as N } from "./consts-BuFChS64.js";
|
|
8
8
|
const $ = S.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),q=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-DhRHf5Ed.cjs"),k=require("./style-xvwWn3Zv.cjs"),v=require("./Button.cjs"),p=require("./suspense-categories-card-simple-5JZtz7wj.cjs"),M=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>"repeat(6, minmax(0, 1fr))"};
|
|
4
4
|
gap: 2rem;
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
/* Safari and Chrome */
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,m=s.memo(p.CategorySimpleCard),E=s.forwardRef((a,g)=>{const{icon:l,title:
|
|
25
|
+
`,m=s.memo(p.CategorySimpleCard),E=s.forwardRef((a,g)=>{const{icon:l,title:b="Shop by category",items:t,buttonText:y="Shop now",buttonLink:c,limit:n=12,onButtonAction:h=()=>{},onSelectCard:i=()=>{},isLoading:f=!1,getImage:u=()=>{}}=a,S=q.useDetectMobile(),j=s.useMemo(()=>r.jsx(r.Fragment,{children:S===!0?t==null?void 0:t.map((e,o)=>r.jsx(m,{uuid:e==null?void 0:e.uuid,image:u(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},o)):t==null?void 0:t.slice(0,n).map((e,o)=>r.jsx(m,{uuid:e==null?void 0:e.uuid,image:u(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e)},o))}),[t]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:g,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(l)&&r.jsx("i",{className:l}),r.jsx("span",{children:b})]}),d.isDefinedNotEmptyString(c)&&r.jsx(v,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var o;(o=e==null?void 0:e.target)==null||o.blur(),h(c)},borderRadius:"curved",children:y})]}),r.jsx(M,{limit:n,children:r.jsx(p.SuspenseSimpleCategoryCard,{isLoading:f,limit:n,keyPrefix:"explore-landing",children:j})})]})});module.exports=E;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r, Fragment as S, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { memo as C, forwardRef as k, useMemo as v } from "react";
|
|
3
3
|
import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as E } from "./consts-
|
|
5
|
-
import { u as I } from "./useDetectMobile-
|
|
4
|
+
import { M as E } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { k as p } from "./utils-BE-UlkKf.js";
|
|
7
|
-
import { R as N } from "./style-
|
|
7
|
+
import { R as N } from "./style-sLF37aOA.js";
|
|
8
8
|
import R from "./Button.js";
|
|
9
|
-
import { C as B, S as L } from "./suspense-categories-card-simple-
|
|
9
|
+
import { C as B, S as L } from "./suspense-categories-card-simple-BTFqzXyn.js";
|
|
10
10
|
const P = M.div`
|
|
11
11
|
display: grid;
|
|
12
12
|
grid-template-columns: ${(l) => "repeat(6, minmax(0, 1fr))"};
|
|
@@ -31,14 +31,14 @@ const P = M.div`
|
|
|
31
31
|
/* Safari and Chrome */
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`, u = C(B), G = k((l, c) => {
|
|
35
35
|
const {
|
|
36
36
|
icon: m,
|
|
37
37
|
title: g = "Shop by category",
|
|
38
38
|
items: o,
|
|
39
39
|
buttonText: f = "Shop now",
|
|
40
40
|
buttonLink: s,
|
|
41
|
-
limit:
|
|
41
|
+
limit: a = 12,
|
|
42
42
|
onButtonAction: b = () => {
|
|
43
43
|
},
|
|
44
44
|
onSelectCard: i = () => {
|
|
@@ -46,26 +46,26 @@ const P = M.div`
|
|
|
46
46
|
isLoading: y = !1,
|
|
47
47
|
getImage: d = () => {
|
|
48
48
|
}
|
|
49
|
-
} = l, h = I(), w = v(() => /* @__PURE__ */ r(S, { children: h === !0 ? o == null ? void 0 : o.map((e,
|
|
50
|
-
|
|
49
|
+
} = l, h = I(), w = v(() => /* @__PURE__ */ r(S, { children: h === !0 ? o == null ? void 0 : o.map((e, t) => /* @__PURE__ */ r(
|
|
50
|
+
u,
|
|
51
51
|
{
|
|
52
52
|
uuid: e == null ? void 0 : e.uuid,
|
|
53
53
|
image: d(e == null ? void 0 : e.image) || null,
|
|
54
54
|
name: e == null ? void 0 : e.name,
|
|
55
55
|
onSelectCard: () => i == null ? void 0 : i(e == null ? void 0 : e.uuid)
|
|
56
56
|
},
|
|
57
|
-
|
|
58
|
-
)) : o == null ? void 0 : o.slice(0,
|
|
59
|
-
|
|
57
|
+
t
|
|
58
|
+
)) : o == null ? void 0 : o.slice(0, a).map((e, t) => /* @__PURE__ */ r(
|
|
59
|
+
u,
|
|
60
60
|
{
|
|
61
61
|
uuid: e == null ? void 0 : e.uuid,
|
|
62
62
|
image: d(e == null ? void 0 : e.image) || null,
|
|
63
63
|
name: e == null ? void 0 : e.name,
|
|
64
64
|
onSelectCard: () => i == null ? void 0 : i(e)
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
t
|
|
67
67
|
)) }), [o]);
|
|
68
|
-
return /* @__PURE__ */ n(N, { ref:
|
|
68
|
+
return /* @__PURE__ */ n(N, { ref: c, children: [
|
|
69
69
|
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
70
70
|
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
71
71
|
p(m) && /* @__PURE__ */ r("i", { className: m }),
|
|
@@ -77,17 +77,20 @@ const P = M.div`
|
|
|
77
77
|
type: "button",
|
|
78
78
|
btnType: "tinted",
|
|
79
79
|
color: "gray",
|
|
80
|
-
onClick: () =>
|
|
80
|
+
onClick: (e) => {
|
|
81
|
+
var t;
|
|
82
|
+
(t = e == null ? void 0 : e.target) == null || t.blur(), b(s);
|
|
83
|
+
},
|
|
81
84
|
borderRadius: "curved",
|
|
82
85
|
children: f
|
|
83
86
|
}
|
|
84
87
|
)
|
|
85
88
|
] }),
|
|
86
|
-
/* @__PURE__ */ r(P, { limit:
|
|
89
|
+
/* @__PURE__ */ r(P, { limit: a, children: /* @__PURE__ */ r(
|
|
87
90
|
L,
|
|
88
91
|
{
|
|
89
92
|
isLoading: y,
|
|
90
|
-
limit:
|
|
93
|
+
limit: a,
|
|
91
94
|
keyPrefix: "explore-landing",
|
|
92
95
|
children: w
|
|
93
96
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),n=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),M=require("./consts-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),n=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),M=require("./consts-goSZX3xP.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./index-B9HSHvhH.cjs"),N=require("./index-BaLBHyTh.cjs"),v=require("./suspense-product-card-simple-0x5sc47a.cjs"),T=k.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(6, 1fr);
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t, Fragment as M, jsxs as U } from "react/jsx-runtime";
|
|
2
2
|
import { memo as F, forwardRef as N, useMemo as T } from "react";
|
|
3
3
|
import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as B } from "./consts-
|
|
5
|
-
import { u as I } from "./useDetectMobile-
|
|
4
|
+
import { M as B } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { S as L } from "./index-BBPnKoi6.js";
|
|
7
|
-
import { T as j } from "./index-
|
|
7
|
+
import { T as j } from "./index-CsrdUl1x.js";
|
|
8
8
|
import { S as z } from "./suspense-product-card-simple--ExcEpD-.js";
|
|
9
9
|
const C = v.div`
|
|
10
10
|
display: grid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),n=require("react"),P=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./Button.cjs"),b=require("./suspense-product-card-detailed-DBNlkFiP.cjs"),C=P.styled.div`
|
|
2
2
|
padding: 1.75rem 3rem;
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-columns: ${t=>`repeat(${t.limit||5}, minmax(0, 1fr))`};
|
|
@@ -54,15 +54,21 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@media (max-width: ${
|
|
57
|
+
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
58
58
|
grid-template-columns: repeat(2, 1fr);
|
|
59
59
|
padding: 2rem 1.25rem;
|
|
60
60
|
gap: 1.19rem;
|
|
61
|
+
}
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
@media (max-width: ${f.SMALL_MOBILE_SIZE_PX+"px"}) {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
64
66
|
|
|
65
|
-
& .
|
|
67
|
+
& .product-card {
|
|
68
|
+
& img {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
}
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
|
-
`,
|
|
74
|
+
`,h=n.memo(b.DetailedProductCard),N=n.forwardRef((t,w)=>{const{items:r,limit:a=5,limitMobile:d=4,onSelectCard:s=()=>{},title:y="Urgent sale",showLessText:S="Show less",showMoreText:j="Show more",isLoading:k=!1,getImage:m=()=>{},negotiableText:g,freeText:p}=t,c=v.useDetectMobile(),[l,M]=n.useState(!1),U=n.useMemo(()=>{var o;return i.jsx(i.Fragment,{children:c===!0?(o=r==null?void 0:r.slice(0,l===!0?r==null?void 0:r.length:d))==null?void 0:o.map((e,u)=>i.jsx(h,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:g,freeText:p},u)):r==null?void 0:r.slice(0,a).map((e,u)=>i.jsx(h,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:g,freeText:p},u))})},[r,c,a,d,l]);return i.jsxs(C,{ref:w,limit:a,children:[i.jsxs("div",{className:"urgent-tag",children:[i.jsx("i",{className:"mng mng-lnc-bolt-filled"}),i.jsx("span",{children:y})]}),i.jsx(b.SuspenseDetailedProductCard,{isLoading:k,limit:a,keyPrefix:"explore-landing",children:U}),c===!0&&d<(r==null?void 0:r.length)&&i.jsx(q,{className:"show-more",btnType:"basic",type:"button",color:"gray",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),M(!l)},children:l===!0?S:j})]})});module.exports=N;
|