@lanaco/lnc-react-ui 4.0.222 → 4.0.223

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 o=require("react/jsx-runtime"),f=require("react"),x=require("./Button.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),m=require("./index-B_ilx3wM.cjs"),p=h.styled.a`
1
+ "use strict";const n=require("react/jsx-runtime"),h=require("react"),x=require("./Button.cjs"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),m=require("./index-B_ilx3wM.cjs"),p=u.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -82,7 +82,7 @@
82
82
  }
83
83
  }
84
84
  }
85
- `,y=f.forwardRef(({title:r,description:n,buttonText:i,imageUrl:l,backgroundColor:c="none",handleSelectCard:d=()=>{},handleButtonAction:g=()=>{},selectAction:e,LinkComponent:s},u)=>{const _=s||"a";return o.jsxs(p,{ref:u,backgroundImage:l,backgroundColor:c,onClick:d,as:_,...s?{to:`/${e}`}:{href:`/${e}`},children:[o.jsxs("div",{className:"section__text",children:[r&&o.jsx("div",{className:"section__title",children:r}),n&&o.jsx("div",{className:"section__description",children:n})]}),o.jsx(x,{text:i,onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),g()},borderRadius:"regular",color:"gray",className:"section__action"})]})}),v=h.styled.div`
85
+ `,y=h.forwardRef(({title:r,description:o,buttonText:i,imageUrl:l,backgroundColor:c="none",handleSelectCard:d=()=>{},handleButtonAction:g=()=>{},selectAction:s,LinkComponent:e},f)=>{const _=e||"a";return n.jsxs(p,{ref:f,backgroundImage:l,backgroundColor:c,onClick:d,as:_,...e?{to:`/${s}`}:{href:`/${s}`},children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),o&&n.jsx("div",{className:"section__description",children:o})]}),n.jsx(x,{text:i,onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),g()},borderRadius:"regular",color:"gray",className:"section__action"})]})}),v=u.styled.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
88
  align-items: flex-start;
@@ -99,7 +99,7 @@
99
99
 
100
100
  & .section__items {
101
101
  display: grid;
102
- grid-template-columns: repeat(4, 1fr);
102
+ grid-template-columns: repeat(${r=>r==null?void 0:r.numOfColumns}, 1fr);
103
103
  gap: 1rem;
104
104
  width: 100%;
105
105
  }
@@ -122,4 +122,4 @@
122
122
  grid-template-columns: 1fr;
123
123
  }
124
124
  }
125
- `,b=f.forwardRef(({title:r,items:n,isLoading:i=!1,onSelectCard:l=()=>{},onButtonAction:c=()=>{},LinkComponent:d},g)=>o.jsxs(v,{ref:g,children:[o.jsx("div",{className:"section__title",children:r}),o.jsx(m.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:o.jsx("div",{className:"section__items",children:n==null?void 0:n.map((e,s)=>o.jsx(y,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>l(e),handleButtonAction:()=>c(e),selectAction:e==null?void 0:e.selectAction,LinkComponent:d},`overlay-general-card__${s+1}`))})})]}));module.exports=b;
125
+ `,b=h.forwardRef(({title:r,items:o,isLoading:i=!1,numOfColumns:l=4,onSelectCard:c=()=>{},onButtonAction:d=()=>{},LinkComponent:g},s)=>n.jsxs(v,{ref:s,numOfColumns:l,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(m.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:o==null?void 0:o.map((e,f)=>n.jsx(y,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>c(e),handleButtonAction:()=>d(e),selectAction:e==null?void 0:e.selectAction,LinkComponent:g},`overlay-general-card__${f+1}`))})})]}));module.exports=b;
@@ -1,10 +1,10 @@
1
- import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as h } from "react";
1
+ import { jsxs as h, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
3
  import u from "./Button.js";
4
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { d as i } from "./breakpoints-ff0SIcV3.js";
6
6
  import { S as p } from "./index-hC-E71GE.js";
7
- const x = m.a`
7
+ const x = _.a`
8
8
  text-decoration: none;
9
9
  color: var(--gray-950);
10
10
  display: flex;
@@ -88,7 +88,7 @@ const x = m.a`
88
88
  }
89
89
  }
90
90
  }
91
- `, v = h(
91
+ `, v = m(
92
92
  ({
93
93
  title: r,
94
94
  description: n,
@@ -99,23 +99,23 @@ const x = m.a`
99
99
  },
100
100
  handleButtonAction: f = () => {
101
101
  },
102
- selectAction: e,
103
- LinkComponent: a
104
- }, _) => /* @__PURE__ */ g(
102
+ selectAction: a,
103
+ LinkComponent: e
104
+ }, g) => /* @__PURE__ */ h(
105
105
  x,
106
106
  {
107
- ref: _,
107
+ ref: g,
108
108
  backgroundImage: l,
109
109
  backgroundColor: c,
110
110
  onClick: d,
111
- as: a || "a",
112
- ...a ? {
113
- to: `/${e}`
111
+ as: e || "a",
112
+ ...e ? {
113
+ to: `/${a}`
114
114
  } : {
115
- href: `/${e}`
115
+ href: `/${a}`
116
116
  },
117
117
  children: [
118
- /* @__PURE__ */ g("div", { className: "section__text", children: [
118
+ /* @__PURE__ */ h("div", { className: "section__text", children: [
119
119
  r && /* @__PURE__ */ o("div", { className: "section__title", children: r }),
120
120
  n && /* @__PURE__ */ o("div", { className: "section__description", children: n })
121
121
  ] }),
@@ -134,7 +134,7 @@ const x = m.a`
134
134
  ]
135
135
  }
136
136
  )
137
- ), y = m.div`
137
+ ), y = _.div`
138
138
  display: flex;
139
139
  flex-direction: column;
140
140
  align-items: flex-start;
@@ -151,7 +151,7 @@ const x = m.a`
151
151
 
152
152
  & .section__items {
153
153
  display: grid;
154
- grid-template-columns: repeat(4, 1fr);
154
+ grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
155
155
  gap: 1rem;
156
156
  width: 100%;
157
157
  }
@@ -174,24 +174,25 @@ const x = m.a`
174
174
  grid-template-columns: 1fr;
175
175
  }
176
176
  }
177
- `, N = h(
177
+ `, N = m(
178
178
  ({
179
179
  title: r,
180
180
  items: n,
181
181
  isLoading: s = !1,
182
- onSelectCard: l = () => {
182
+ numOfColumns: l = 4,
183
+ onSelectCard: c = () => {
183
184
  },
184
- onButtonAction: c = () => {
185
+ onButtonAction: d = () => {
185
186
  },
186
- LinkComponent: d
187
- }, f) => /* @__PURE__ */ g(y, { ref: f, children: [
187
+ LinkComponent: f
188
+ }, a) => /* @__PURE__ */ h(y, { ref: a, numOfColumns: l, children: [
188
189
  /* @__PURE__ */ o("div", { className: "section__title", children: r }),
189
190
  /* @__PURE__ */ o(
190
191
  p,
191
192
  {
192
193
  isLoading: s,
193
194
  keyPrefix: "overlay-general-cards-skeleton",
194
- children: /* @__PURE__ */ o("div", { className: "section__items", children: n == null ? void 0 : n.map((e, a) => /* @__PURE__ */ o(
195
+ children: /* @__PURE__ */ o("div", { className: "section__items", children: n == null ? void 0 : n.map((e, g) => /* @__PURE__ */ o(
195
196
  v,
196
197
  {
197
198
  title: e == null ? void 0 : e.title,
@@ -199,12 +200,12 @@ const x = m.a`
199
200
  imageUrl: e == null ? void 0 : e.imageUrl,
200
201
  buttonText: e == null ? void 0 : e.buttonText,
201
202
  backgroundColor: e == null ? void 0 : e.backgroundColor,
202
- handleSelectCard: () => l(e),
203
- handleButtonAction: () => c(e),
203
+ handleSelectCard: () => c(e),
204
+ handleButtonAction: () => d(e),
204
205
  selectAction: e == null ? void 0 : e.selectAction,
205
- LinkComponent: d
206
+ LinkComponent: f
206
207
  },
207
- `overlay-general-card__${a + 1}`
208
+ `overlay-general-card__${g + 1}`
208
209
  )) })
209
210
  }
210
211
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.222",
3
+ "version": "4.0.223",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [