@lanaco/lnc-react-ui 4.0.90 → 4.0.91

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,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),s=require("./utils-BWzf4vLl.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=require("./styled-components.browser.esm-CMTEDJ_5.cjs"),_=c.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),n=require("react"),s=require("./utils-BWzf4vLl.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CMTEDJ_5.cjs"),u=m.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -41,7 +41,7 @@
41
41
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
42
42
  border-radius: 0.75rem;
43
43
  z-index: 2;
44
- `,u=c.styled.div`
44
+ `,f=m.styled.div`
45
45
  cursor: pointer;
46
46
  position: relative;
47
47
  border-radius: 0.75rem;
@@ -108,7 +108,7 @@
108
108
  @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
109
109
  width: 100%;
110
110
  }
111
- `,f=a.forwardRef(({title:i,description:r,imageUrl:l,onSelectCard:o=()=>{}},n)=>{const{theme:e}=p.useTheme();return t.jsxs(u,{theme:e,onClick:o,children:[t.jsx("img",{loading:"lazy",src:l}),t.jsx(_,{theme:e,className:"quattro-card__gradient",children:t.jsxs("div",{className:"quattro-card__text",children:[t.jsx("div",{className:"quattro-card__title",children:i}),t.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),h=g.qe.div`
111
+ `,h=n.forwardRef(({title:o,description:r,imageUrl:i,onSelectCard:l=()=>{}},c)=>{const{theme:a}=g.useTheme();return e.jsxs(f,{theme:a,onClick:l,children:[e.jsx("img",{loading:"lazy",src:i}),e.jsx(u,{theme:a,className:"quattro-card__gradient",children:e.jsxs("div",{className:"quattro-card__text",children:[e.jsx("div",{className:"quattro-card__title",children:o}),e.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),b=_.qe.div`
112
112
  display: flex;
113
113
  flex-direction: column;
114
114
  align-items: flex-start;
@@ -160,4 +160,4 @@
160
160
  gap: 1rem;
161
161
  }
162
162
  }
163
- `,b=a.memo(f),w=a.forwardRef(({title:i,items:r},l)=>{const o=a.useMemo(()=>{var n;return(n=r==null?void 0:r.slice(0,4))==null?void 0:n.map((e,m)=>t.jsx(b,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,onSelectCard:()=>onSelectCard==null?void 0:onSelectCard(e)},`quattro-card__${m+1}`))},[r]);return t.jsxs(h,{children:[t.jsx("div",{className:"wrapper__heading",children:t.jsx("div",{className:"wrapper__title",children:s.isDefinedNotEmptyString(i)&&t.jsx("div",{className:"title__text",children:t.jsx("span",{children:i})})})}),t.jsx("div",{className:"wrapper__cards",children:o})]})});module.exports=w;
163
+ `,w=n.memo(h),x=n.forwardRef(({title:o,items:r,onSelectCard:i=()=>{}},l)=>{const c=n.useMemo(()=>{var a;return(a=r==null?void 0:r.slice(0,4))==null?void 0:a.map((t,p)=>e.jsx(w,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,imageUrl:t==null?void 0:t.imageUrl,onSelectCard:()=>i==null?void 0:i(t)},`quattro-card__${p+1}`))},[r]);return e.jsxs(b,{children:[e.jsx("div",{className:"wrapper__heading",children:e.jsx("div",{className:"wrapper__title",children:s.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"title__text",children:e.jsx("span",{children:o})})})}),e.jsx("div",{className:"wrapper__cards",children:c})]})});module.exports=x;
@@ -1,11 +1,11 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as s, memo as p, useMemo as g } from "react";
3
- import { t as f, p as h, k as u } from "./utils-BXCGNjIy.js";
4
- import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as c, memo as g, useMemo as f } from "react";
3
+ import { t as h, p as u, k as _ } from "./utils-BXCGNjIy.js";
4
+ import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { M as d } from "./consts-BuFChS64.js";
6
- import { u as _ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { q as b } from "./styled-components.browser.esm-C9FYANiy.js";
8
- const w = c.div`
6
+ import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { q as w } from "./styled-components.browser.esm-C9FYANiy.js";
8
+ const y = m.div`
9
9
  position: absolute;
10
10
  top: 0;
11
11
  left: 0;
@@ -48,7 +48,7 @@ const w = c.div`
48
48
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
49
49
  border-radius: 0.75rem;
50
50
  z-index: 2;
51
- `, y = c.div`
51
+ `, v = m.div`
52
52
  cursor: pointer;
53
53
  position: relative;
54
54
  border-radius: 0.75rem;
@@ -86,7 +86,7 @@ const w = c.div`
86
86
  font-style: normal;
87
87
  font-weight: 600;
88
88
  line-height: 1.75rem;
89
- ${f()}
89
+ ${h()}
90
90
  }
91
91
 
92
92
  & .quattro-card__description {
@@ -94,7 +94,7 @@ const w = c.div`
94
94
  font-style: normal;
95
95
  font-weight: 500;
96
96
  line-height: 1.25rem;
97
- ${h(2)}
97
+ ${u(2)}
98
98
  }
99
99
 
100
100
  @media (max-width: ${d + "px"}) {
@@ -115,19 +115,19 @@ const w = c.div`
115
115
  @media (max-width: ${d + "px"}) {
116
116
  width: 100%;
117
117
  }
118
- `, v = s(
119
- ({ title: a, description: r, imageUrl: l, onSelectCard: i = () => {
120
- } }, o) => {
121
- const { theme: t } = _();
122
- return /* @__PURE__ */ n(y, { theme: t, onClick: i, children: [
123
- /* @__PURE__ */ e("img", { loading: "lazy", src: l }),
124
- /* @__PURE__ */ e(w, { theme: t, className: "quattro-card__gradient", children: /* @__PURE__ */ n("div", { className: "quattro-card__text", children: [
125
- /* @__PURE__ */ e("div", { className: "quattro-card__title", children: a }),
126
- /* @__PURE__ */ e("div", { className: "quattro-card__description", children: r })
118
+ `, x = c(
119
+ ({ title: o, description: e, imageUrl: a, onSelectCard: s = () => {
120
+ } }, l) => {
121
+ const { theme: i } = b();
122
+ return /* @__PURE__ */ n(v, { theme: i, onClick: s, children: [
123
+ /* @__PURE__ */ r("img", { loading: "lazy", src: a }),
124
+ /* @__PURE__ */ r(y, { theme: i, className: "quattro-card__gradient", children: /* @__PURE__ */ n("div", { className: "quattro-card__text", children: [
125
+ /* @__PURE__ */ r("div", { className: "quattro-card__title", children: o }),
126
+ /* @__PURE__ */ r("div", { className: "quattro-card__description", children: e })
127
127
  ] }) })
128
128
  ] });
129
129
  }
130
- ), x = b.div`
130
+ ), q = w.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  align-items: flex-start;
@@ -179,25 +179,28 @@ const w = c.div`
179
179
  gap: 1rem;
180
180
  }
181
181
  }
182
- `, q = p(v), S = s(({ title: a, items: r }, l) => {
183
- const i = g(() => {
184
- var o;
185
- return (o = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : o.map((t, m) => /* @__PURE__ */ e(
186
- q,
187
- {
188
- title: t == null ? void 0 : t.title,
189
- description: t == null ? void 0 : t.description,
190
- imageUrl: t == null ? void 0 : t.imageUrl,
191
- onSelectCard: () => onSelectCard == null ? void 0 : onSelectCard(t)
192
- },
193
- `quattro-card__${m + 1}`
194
- ));
195
- }, [r]);
196
- return /* @__PURE__ */ n(x, { children: [
197
- /* @__PURE__ */ e("div", { className: "wrapper__heading", children: /* @__PURE__ */ e("div", { className: "wrapper__title", children: u(a) && /* @__PURE__ */ e("div", { className: "title__text", children: /* @__PURE__ */ e("span", { children: a }) }) }) }),
198
- /* @__PURE__ */ e("div", { className: "wrapper__cards", children: i })
199
- ] });
200
- });
182
+ `, k = g(x), I = c(
183
+ ({ title: o, items: e, onSelectCard: a = () => {
184
+ } }, s) => {
185
+ const l = f(() => {
186
+ var i;
187
+ return (i = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : i.map((t, p) => /* @__PURE__ */ r(
188
+ k,
189
+ {
190
+ title: t == null ? void 0 : t.title,
191
+ description: t == null ? void 0 : t.description,
192
+ imageUrl: t == null ? void 0 : t.imageUrl,
193
+ onSelectCard: () => a == null ? void 0 : a(t)
194
+ },
195
+ `quattro-card__${p + 1}`
196
+ ));
197
+ }, [e]);
198
+ return /* @__PURE__ */ n(q, { children: [
199
+ /* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children: _(o) && /* @__PURE__ */ r("div", { className: "title__text", children: /* @__PURE__ */ r("span", { children: o }) }) }) }),
200
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: l })
201
+ ] });
202
+ }
203
+ );
201
204
  export {
202
- S as default
205
+ I as default
203
206
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.90",
3
+ "version": "4.0.91",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [