@lanaco/lnc-react-ui 4.0.154 → 4.0.155

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.
@@ -126,4 +126,4 @@
126
126
  }`}
127
127
  }
128
128
  }
129
- `,S=b.forwardRef(({title:i,subtitle:o,items:r,limit:g=4,limitForMobile:w=2,buttonText:a="Show More",onSelectCard:h=()=>{},onButtonAction:n=()=>{},icon:p,getImage:f=()=>{},getProductImage:x=()=>{},hideProducts:c=!1,showRating:y=!0,gridView:l=!1},v)=>{var m;return t.jsxs(k,{ref:v,limitCards:g,limitCardsForMobile:w,gridView:l,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[d.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:i})]}),n&&t.jsx(u,{text:a,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${l?"grid":""}`,onClick:n})]}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__cards",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,s)=>t.jsx(_.ShopCard,{showRating:!y,uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>h(e==null?void 0:e.uuid),image:f(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:x,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:!c},`shop-card__${s+1}`)):(m=Array.from("1234"))==null?void 0:m.map((e,s)=>t.jsx(_.ShopCardSkeleton,{},`shop-card-skeleton__${s+1}`))}),l&&n&&t.jsx(u,{text:a,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:n})]})});module.exports=S;
129
+ `,S=b.forwardRef(({title:i,subtitle:o,items:r,limit:g=4,limitForMobile:w=2,buttonText:a="Show More",onSelectCard:f=()=>{},onButtonAction:l=()=>{},icon:p,getImage:h=()=>{},getProductImage:x=()=>{},hideProducts:c=!1,showRating:y=!0,gridView:n=!1},v)=>{var m;return t.jsxs(k,{ref:v,limitCards:g,limitCardsForMobile:w,gridView:n,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[d.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:i})]}),l&&t.jsx(u,{text:a,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${n?"grid":""}`,onClick:l})]}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__cards",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,s)=>t.jsx(_.ShopCard,{showRating:y,uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>f(e==null?void 0:e.uuid),image:h(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:x,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:c},`shop-card__${s+1}`)):(m=Array.from("1234"))==null?void 0:m.map((e,s)=>t.jsx(_.ShopCardSkeleton,{},`shop-card-skeleton__${s+1}`))}),n&&l&&t.jsx(u,{text:a,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:l})]})});module.exports=S;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as d } from "react";
2
+ import { forwardRef as c } from "react";
3
3
  import _ from "./Button.js";
4
- import { S as c, a as C } from "./skeleton-BWFqIToC.js";
4
+ import { S as d, a as C } from "./skeleton-BWFqIToC.js";
5
5
  import { k } from "./utils-BdsZgOUE.js";
6
6
  import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
7
  import { M as N } from "./consts-BuFChS64.js";
@@ -133,20 +133,20 @@ const $ = S.div`
133
133
  }`}
134
134
  }
135
135
  }
136
- `, D = d(
136
+ `, D = c(
137
137
  ({
138
138
  title: t,
139
139
  subtitle: s,
140
140
  items: r,
141
141
  limit: g = 4,
142
- limitForMobile: h = 2,
142
+ limitForMobile: u = 2,
143
143
  buttonText: p = "Show More",
144
- onSelectCard: u = () => {
144
+ onSelectCard: w = () => {
145
145
  },
146
146
  onButtonAction: l = () => {
147
147
  },
148
148
  icon: m,
149
- getImage: w = () => {
149
+ getImage: h = () => {
150
150
  },
151
151
  getProductImage: y = () => {
152
152
  },
@@ -160,7 +160,7 @@ const $ = S.div`
160
160
  {
161
161
  ref: b,
162
162
  limitCards: g,
163
- limitCardsForMobile: h,
163
+ limitCardsForMobile: u,
164
164
  gridView: o,
165
165
  children: [
166
166
  /* @__PURE__ */ n("div", { className: "wrapper__heading", children: [
@@ -184,9 +184,9 @@ const $ = S.div`
184
184
  s && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: s })
185
185
  ] }),
186
186
  /* @__PURE__ */ i("div", { className: "wrapper__cards", children: r && (r == null ? void 0 : r.length) > 0 ? r == null ? void 0 : r.map((e, a) => /* @__PURE__ */ i(
187
- c,
187
+ d,
188
188
  {
189
- showRating: !x,
189
+ showRating: x,
190
190
  uuid: e == null ? void 0 : e.uuid,
191
191
  title: e == null ? void 0 : e.name,
192
192
  subtitle: e == null ? void 0 : e.shortDescription,
@@ -194,11 +194,11 @@ const $ = S.div`
194
194
  reviewCount: e == null ? void 0 : e.reviewCount,
195
195
  products: e == null ? void 0 : e.products,
196
196
  imageComponent: e == null ? void 0 : e.imageComponent,
197
- onSelectCard: () => u(e == null ? void 0 : e.uuid),
198
- image: w(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
197
+ onSelectCard: () => w(e == null ? void 0 : e.uuid),
198
+ image: h(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
199
199
  getProductImage: y,
200
200
  canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
201
- hideProducts: !v
201
+ hideProducts: v
202
202
  },
203
203
  `shop-card__${a + 1}`
204
204
  )) : (f = Array.from("1234")) == null ? void 0 : f.map((e, a) => /* @__PURE__ */ i(C, {}, `shop-card-skeleton__${a + 1}`)) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.154",
3
+ "version": "4.0.155",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [