@lanaco/lnc-react-ui 4.0.69 → 4.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +132 -133
- package/dist/BlogsSectionSimpleCentered.cjs +6 -7
- package/dist/BlogsSectionSimpleCentered.js +62 -63
- package/dist/MasonryGeneralCardsSection.cjs +6 -6
- package/dist/MasonryGeneralCardsSection.js +40 -38
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +76 -72
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as g, Suspense as
|
|
1
|
+
import { jsx as r, Fragment as p, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Suspense as m } from "react";
|
|
3
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
5
|
-
import { R as
|
|
6
|
-
import { t as
|
|
7
|
-
import
|
|
8
|
-
import { useTheme as
|
|
9
|
-
const
|
|
4
|
+
import { M as f } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { R as x } from "./style-CsMpu4iC.js";
|
|
6
|
+
import { t as v, m as y, k } from "./utils-DCs-SbIv.js";
|
|
7
|
+
import w from "./Button.js";
|
|
8
|
+
import { useTheme as b } from "./ThemeProvider.js";
|
|
9
|
+
const $ = h.div`
|
|
10
10
|
display: grid;
|
|
11
11
|
grid-template-columns: ${(n) => `repeat(${n.limit}, 1fr)`};
|
|
12
12
|
gap: 1.25rem;
|
|
13
13
|
justify-items: center;
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${f + "px"}) {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: 1rem;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`, u = h.div`
|
|
21
21
|
width: 100%;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
position: relative;
|
|
@@ -58,7 +58,7 @@ const P = h.div`
|
|
|
58
58
|
|
|
59
59
|
& .content-text-title {
|
|
60
60
|
font-weight: 600;
|
|
61
|
-
${
|
|
61
|
+
${v(2)}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -70,7 +70,7 @@ const P = h.div`
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
& .img-skeleton {
|
|
73
|
-
background-color: ${
|
|
73
|
+
background-color: ${y("-90deg")};
|
|
74
74
|
min-height: 28.75rem;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ const P = h.div`
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
@media (max-width: ${
|
|
83
|
+
@media (max-width: ${f + "px"}) {
|
|
84
84
|
& img,
|
|
85
85
|
.img.skeleton {
|
|
86
86
|
aspect-ratio: unset;
|
|
@@ -88,57 +88,57 @@ const P = h.div`
|
|
|
88
88
|
max-height: 28.75rem;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
92
|
-
|
|
91
|
+
`, C = g(({}, n) => /* @__PURE__ */ r(u, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), N = ({ limit: n = 2, isLoading: t = !1, keyPrefix: o }) => /* @__PURE__ */ r(p, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
|
|
92
|
+
C,
|
|
93
93
|
{
|
|
94
|
-
isLoading:
|
|
94
|
+
isLoading: t
|
|
95
95
|
},
|
|
96
|
-
`${
|
|
97
|
-
)) }),
|
|
96
|
+
`${o}-skeleton-product-card-${a}`
|
|
97
|
+
)) }), S = ({
|
|
98
98
|
children: n,
|
|
99
|
-
fallbackComponent:
|
|
100
|
-
isLoading:
|
|
99
|
+
fallbackComponent: t = /* @__PURE__ */ r(p, {}),
|
|
100
|
+
isLoading: o = !1,
|
|
101
101
|
limit: l,
|
|
102
102
|
keyPrefix: a
|
|
103
|
-
}) => /* @__PURE__ */ r(
|
|
104
|
-
|
|
103
|
+
}) => /* @__PURE__ */ r(m, { fallbackComponent: t, children: o === !0 ? /* @__PURE__ */ r(
|
|
104
|
+
N,
|
|
105
105
|
{
|
|
106
|
-
isLoading:
|
|
106
|
+
isLoading: o,
|
|
107
107
|
limit: l,
|
|
108
108
|
keyPrefix: a
|
|
109
109
|
}
|
|
110
|
-
) : n }),
|
|
110
|
+
) : n }), _ = g(
|
|
111
111
|
({
|
|
112
112
|
title: n,
|
|
113
|
-
image:
|
|
114
|
-
backgroundColor:
|
|
113
|
+
image: t,
|
|
114
|
+
backgroundColor: o,
|
|
115
115
|
description: l,
|
|
116
116
|
buttonText: a,
|
|
117
|
-
handleClick:
|
|
117
|
+
handleClick: c = () => {
|
|
118
118
|
},
|
|
119
|
-
onButtonAction:
|
|
119
|
+
onButtonAction: d = () => {
|
|
120
120
|
}
|
|
121
|
-
},
|
|
122
|
-
const { theme:
|
|
123
|
-
return /* @__PURE__ */ r(
|
|
124
|
-
|
|
121
|
+
}, e) => {
|
|
122
|
+
const { theme: s } = b();
|
|
123
|
+
return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(
|
|
124
|
+
u,
|
|
125
125
|
{
|
|
126
|
-
ref:
|
|
127
|
-
theme:
|
|
128
|
-
overlay:
|
|
129
|
-
onClick:
|
|
126
|
+
ref: e,
|
|
127
|
+
theme: s,
|
|
128
|
+
overlay: o,
|
|
129
|
+
onClick: c,
|
|
130
130
|
children: [
|
|
131
|
-
/* @__PURE__ */ r("img", { src:
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ r("img", { src: t }),
|
|
132
|
+
/* @__PURE__ */ i("div", { className: "content-wrapper", children: [
|
|
133
|
+
/* @__PURE__ */ i("div", { className: "content-text", children: [
|
|
134
134
|
/* @__PURE__ */ r("div", { children: n }),
|
|
135
135
|
/* @__PURE__ */ r("div", { className: "content-text-title", children: l })
|
|
136
136
|
] }),
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
k(a) && /* @__PURE__ */ r(
|
|
138
|
+
w,
|
|
139
139
|
{
|
|
140
140
|
text: a,
|
|
141
|
-
onClick:
|
|
141
|
+
onClick: d,
|
|
142
142
|
className: "text__action",
|
|
143
143
|
size: "medium",
|
|
144
144
|
color: "gray"
|
|
@@ -149,37 +149,41 @@ const P = h.div`
|
|
|
149
149
|
}
|
|
150
150
|
) });
|
|
151
151
|
}
|
|
152
|
-
),
|
|
153
|
-
({
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
), E = g(
|
|
153
|
+
({
|
|
154
|
+
title: n,
|
|
155
|
+
items: t,
|
|
156
|
+
limit: o = 2,
|
|
157
|
+
onSelectCard: l = () => {
|
|
158
|
+
},
|
|
159
|
+
isLoading: a = !1,
|
|
160
|
+
onButtonAction: c = () => {
|
|
161
|
+
}
|
|
162
|
+
}, d) => /* @__PURE__ */ i(x, { ref: d, children: [
|
|
163
|
+
/* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: n }) }) }),
|
|
164
|
+
/* @__PURE__ */ r($, { limit: o, children: /* @__PURE__ */ r(
|
|
165
|
+
S,
|
|
158
166
|
{
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
) })
|
|
180
|
-
] });
|
|
181
|
-
}
|
|
167
|
+
isLoading: a,
|
|
168
|
+
limit: o,
|
|
169
|
+
keyPrefix: "explore-landing",
|
|
170
|
+
children: t == null ? void 0 : t.map((e, s) => /* @__PURE__ */ r(
|
|
171
|
+
_,
|
|
172
|
+
{
|
|
173
|
+
title: e == null ? void 0 : e.title,
|
|
174
|
+
image: e == null ? void 0 : e.imageUrl,
|
|
175
|
+
description: e == null ? void 0 : e.description,
|
|
176
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
177
|
+
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
178
|
+
handleClick: () => l(e == null ? void 0 : e.selectAction, e),
|
|
179
|
+
onButtonAction: () => c(e == null ? void 0 : e.buttonLink, e)
|
|
180
|
+
},
|
|
181
|
+
`landing-page-overlay-general-card__${s + 1}`
|
|
182
|
+
))
|
|
183
|
+
}
|
|
184
|
+
) })
|
|
185
|
+
] })
|
|
182
186
|
);
|
|
183
187
|
export {
|
|
184
|
-
|
|
188
|
+
E as default
|
|
185
189
|
};
|