@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.
@@ -1,23 +1,23 @@
1
- import { jsx as r, Fragment as i, jsxs as c } from "react/jsx-runtime";
2
- import { forwardRef as g, Suspense as x, memo as v, useMemo as y } from "react";
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 u } from "./consts-C1uHV4xc.js";
5
- import { R as k } from "./style-CsMpu4iC.js";
6
- import { t as w, m as b, k as $ } from "./utils-DCs-SbIv.js";
7
- import C from "./Button.js";
8
- import { useTheme as N } from "./ThemeProvider.js";
9
- const P = h.div`
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: ${u + "px"}) {
15
+ @media (max-width: ${f + "px"}) {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  gap: 1rem;
19
19
  }
20
- `, f = h.div`
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
- ${w(2)}
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: ${b("-90deg")};
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: ${u + "px"}) {
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
- `, S = g(({}, n) => /* @__PURE__ */ r(f, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), _ = ({ limit: n = 2, isLoading: o = !1, keyPrefix: t }) => /* @__PURE__ */ r(i, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
92
- S,
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: o
94
+ isLoading: t
95
95
  },
96
- `${t}-skeleton-product-card-${a}`
97
- )) }), j = ({
96
+ `${o}-skeleton-product-card-${a}`
97
+ )) }), S = ({
98
98
  children: n,
99
- fallbackComponent: o = /* @__PURE__ */ r(i, {}),
100
- isLoading: t = !1,
99
+ fallbackComponent: t = /* @__PURE__ */ r(p, {}),
100
+ isLoading: o = !1,
101
101
  limit: l,
102
102
  keyPrefix: a
103
- }) => /* @__PURE__ */ r(x, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ r(
104
- _,
103
+ }) => /* @__PURE__ */ r(m, { fallbackComponent: t, children: o === !0 ? /* @__PURE__ */ r(
104
+ N,
105
105
  {
106
- isLoading: t,
106
+ isLoading: o,
107
107
  limit: l,
108
108
  keyPrefix: a
109
109
  }
110
- ) : n }), G = g(
110
+ ) : n }), _ = g(
111
111
  ({
112
112
  title: n,
113
- image: o,
114
- backgroundColor: t,
113
+ image: t,
114
+ backgroundColor: o,
115
115
  description: l,
116
116
  buttonText: a,
117
- handleClick: d = () => {
117
+ handleClick: c = () => {
118
118
  },
119
- onButtonAction: s = () => {
119
+ onButtonAction: d = () => {
120
120
  }
121
- }, p) => {
122
- const { theme: e } = N();
123
- return /* @__PURE__ */ r(i, { children: /* @__PURE__ */ c(
124
- f,
121
+ }, e) => {
122
+ const { theme: s } = b();
123
+ return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(
124
+ u,
125
125
  {
126
- ref: p,
127
- theme: e,
128
- overlay: t,
129
- onClick: d,
126
+ ref: e,
127
+ theme: s,
128
+ overlay: o,
129
+ onClick: c,
130
130
  children: [
131
- /* @__PURE__ */ r("img", { src: o }),
132
- /* @__PURE__ */ c("div", { className: "content-wrapper", children: [
133
- /* @__PURE__ */ c("div", { className: "content-text", children: [
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
- $(a) && /* @__PURE__ */ r(
138
- C,
137
+ k(a) && /* @__PURE__ */ r(
138
+ w,
139
139
  {
140
140
  text: a,
141
- onClick: s,
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
- ), O = v(G), L = g(
153
- ({ title: n, items: o, limit: t = 2, onSelectCard: l = () => {
154
- }, isLoading: a = !1, onButtonAction: d = () => {
155
- } }, s) => {
156
- const p = y(() => /* @__PURE__ */ r(i, { children: o && (o == null ? void 0 : o.map((e, m) => /* @__PURE__ */ r(
157
- O,
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
- title: e == null ? void 0 : e.title,
160
- image: e == null ? void 0 : e.imageUrl,
161
- description: e == null ? void 0 : e.description,
162
- buttonText: e == null ? void 0 : e.buttonText,
163
- backgroundColor: e == null ? void 0 : e.backgroundColor,
164
- handleClick: () => l(e == null ? void 0 : e.selectAction, e),
165
- onButtonAction: () => d(e == null ? void 0 : e.buttonLink, e)
166
- },
167
- `landing-page-overlay-general-card__${m + 1}`
168
- ))) }), [o, l]);
169
- return /* @__PURE__ */ c(k, { ref: s, children: [
170
- /* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: n }) }) }),
171
- /* @__PURE__ */ r(P, { limit: t, children: /* @__PURE__ */ r(
172
- j,
173
- {
174
- isLoading: a,
175
- limit: t,
176
- keyPrefix: "explore-landing",
177
- children: p
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
- L as default
188
+ E as default
185
189
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.69",
3
+ "version": "4.0.71",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [