@lanaco/lnc-react-ui 4.0.183 → 4.0.185

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.
Files changed (75) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +5 -3
  2. package/dist/BlogCardsSponsoredSection.js +68 -64
  3. package/dist/BlogCategoryCardsSection.cjs +1 -1
  4. package/dist/BlogCategoryCardsSection.js +1 -1
  5. package/dist/BlogListSection.cjs +8 -6
  6. package/dist/BlogListSection.js +122 -114
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +1 -1
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +1 -1
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +1 -1
  13. package/dist/BlogsSectionDetailed.cjs +5 -3
  14. package/dist/BlogsSectionDetailed.js +53 -49
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +9 -7
  18. package/dist/BlogsSectionSimple.js +53 -47
  19. package/dist/BlogsSectionSimpleCentered.cjs +7 -5
  20. package/dist/BlogsSectionSimpleCentered.js +31 -26
  21. package/dist/BlogsSectionWithFilters.cjs +9 -7
  22. package/dist/BlogsSectionWithFilters.js +47 -42
  23. package/dist/BrandHitsSection.cjs +9 -7
  24. package/dist/BrandHitsSection.js +40 -35
  25. package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
  26. package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
  27. package/dist/CheckBoxInput.cjs +27 -27
  28. package/dist/CheckBoxInput.js +61 -98
  29. package/dist/ColorInput.cjs +26 -26
  30. package/dist/ColorInput.js +127 -162
  31. package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
  32. package/dist/DetailedProductsInfinitiveSection.js +6 -5
  33. package/dist/DetailedProductsSection.cjs +2 -2
  34. package/dist/DetailedProductsSection.js +12 -10
  35. package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
  36. package/dist/FieldOfInterestsMasonrySection.js +90 -85
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
  41. package/dist/GeneralWithTagsCardsSection.cjs +12 -8
  42. package/dist/GeneralWithTagsCardsSection.js +50 -44
  43. package/dist/GiftCardsSection.cjs +7 -5
  44. package/dist/GiftCardsSection.js +46 -40
  45. package/dist/MasonryGeneralCardsSection.cjs +6 -5
  46. package/dist/MasonryGeneralCardsSection.js +26 -23
  47. package/dist/Modal.cjs +14 -13
  48. package/dist/Modal.js +88 -86
  49. package/dist/OverlayGeneralCardsSection.cjs +7 -5
  50. package/dist/OverlayGeneralCardsSection.js +30 -35
  51. package/dist/ProductsWithBannerSection.cjs +8 -6
  52. package/dist/ProductsWithBannerSection.js +71 -77
  53. package/dist/QuattroCardsSection.cjs +8 -6
  54. package/dist/QuattroCardsSection.js +31 -28
  55. package/dist/ReviewsSection.cjs +11 -9
  56. package/dist/ReviewsSection.js +38 -36
  57. package/dist/SalesCampaignsSection.cjs +22 -19
  58. package/dist/SalesCampaignsSection.js +299 -300
  59. package/dist/ShopCardsSection.cjs +1 -1
  60. package/dist/ShopCardsSection.js +1 -1
  61. package/dist/SimpleCategoriesSection.cjs +2 -2
  62. package/dist/SimpleCategoriesSection.js +7 -3
  63. package/dist/SimpleProductsSection.cjs +5 -5
  64. package/dist/SimpleProductsSection.js +62 -72
  65. package/dist/UrgentSaleProductsSection.cjs +6 -6
  66. package/dist/UrgentSaleProductsSection.js +9 -7
  67. package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
  68. package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
  69. package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
  70. package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
  71. package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
  72. package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
  73. package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
  74. package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
  75. package/package.json +1 -1
@@ -2,12 +2,12 @@ import { jsxs as i, jsx as r, Fragment as R } from "react/jsx-runtime";
2
2
  import { forwardRef as v, Suspense as k } from "react";
3
3
  import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
4
4
  import { R as I } from "./style-C7FUSHmS.js";
5
- import { p as N, G as W, k as h } from "./utils-Dc5zIpaz.js";
6
- import T from "./Button.js";
5
+ import { p as N, G as A, k as g } from "./utils-Dc5zIpaz.js";
6
+ import W from "./Button.js";
7
7
  import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as S } from "./consts-BuFChS64.js";
9
- import { s as j, a as z, S as u, b as o } from "./style-CXMUA6cI.js";
10
- const B = p.div`
9
+ import { s as T, a as j, S as h, b as o } from "./style-CXMUA6cI.js";
10
+ const z = p.div`
11
11
  display: grid;
12
12
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
13
13
  gap: 1.25rem;
@@ -15,7 +15,9 @@ const B = p.div`
15
15
  @media (max-width: ${S + "px"}) {
16
16
  grid-template-columns: repeat(1, 1fr);
17
17
  }
18
- `, E = p.div`
18
+ `, B = p.a`
19
+ text-decoration: none;
20
+ color: var(--gray-950);
19
21
  display: flex;
20
22
  flex-direction: column;
21
23
  gap: 0.75rem;
@@ -36,7 +38,7 @@ const B = p.div`
36
38
  transform: scale(1.1);
37
39
  }
38
40
  }
39
- `, L = p.div`
41
+ `, E = p.div`
40
42
  width: 100%;
41
43
  min-height: 11rem;
42
44
  max-height: 11rem;
@@ -73,31 +75,33 @@ const B = p.div`
73
75
  -webkit-transform: rotate(315deg);
74
76
  transform: rotate(315deg);
75
77
  }
76
- `, w = v((t, m) => {
78
+ `, w = v((t, s) => {
77
79
  const {
78
80
  image: a,
79
81
  text: l,
80
82
  price: d,
81
83
  currency: n,
82
- onSelectGiftCard: c = () => {
83
- }
84
+ onSelectGiftCard: m = () => {
85
+ },
86
+ selectAction: u
84
87
  } = t;
85
88
  return /* @__PURE__ */ i(
86
- E,
89
+ B,
87
90
  {
88
- ref: m,
91
+ ref: s,
89
92
  className: "simple-gift-card",
90
- onClick: () => c(d),
93
+ onClick: () => m(d),
94
+ href: u,
91
95
  children: [
92
- /* @__PURE__ */ i(L, { children: [
93
- /* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${N(d)} ${W(n)}` }),
96
+ /* @__PURE__ */ i(E, { children: [
97
+ /* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${N(d)} ${A(n)}` }),
94
98
  /* @__PURE__ */ r("img", { src: a })
95
99
  ] }),
96
100
  /* @__PURE__ */ r("div", { className: "text-wrap", children: l })
97
101
  ]
98
102
  }
99
103
  );
100
- }), M = p(z)`
104
+ }), L = p(j)`
101
105
  @media (max-width: ${S + "px"}) {
102
106
  flex-direction: column;
103
107
 
@@ -105,12 +109,12 @@ const B = p.div`
105
109
  flex-direction: column;
106
110
 
107
111
  & > div {
108
- ${j}
112
+ ${T}
109
113
  }
110
114
  }
111
115
  }
112
- `, D = ({ keyPrefix: t }) => /* @__PURE__ */ i(M, { children: [
113
- /* @__PURE__ */ i(u, { alignItems: "center", children: [
116
+ `, M = ({ keyPrefix: t }) => /* @__PURE__ */ i(L, { children: [
117
+ /* @__PURE__ */ i(h, { alignItems: "center", children: [
114
118
  /* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
115
119
  /* @__PURE__ */ r(
116
120
  o,
@@ -122,7 +126,7 @@ const B = p.div`
122
126
  )
123
127
  ] }, `${t}-1`),
124
128
  /* @__PURE__ */ i(
125
- u,
129
+ h,
126
130
  {
127
131
  alignItems: "center",
128
132
  noGradient: !0,
@@ -141,7 +145,7 @@ const B = p.div`
141
145
  `${t}-2`
142
146
  ),
143
147
  /* @__PURE__ */ i(
144
- u,
148
+ h,
145
149
  {
146
150
  alignItems: "center",
147
151
  noGradient: !0,
@@ -160,7 +164,7 @@ const B = p.div`
160
164
  `${t}-3`
161
165
  ),
162
166
  /* @__PURE__ */ i(
163
- u,
167
+ h,
164
168
  {
165
169
  alignItems: "center",
166
170
  noGradient: !0,
@@ -178,48 +182,48 @@ const B = p.div`
178
182
  },
179
183
  `${t}-4`
180
184
  )
181
- ] }), U = ({
185
+ ] }), D = ({
182
186
  keyPrefix: t,
183
- isLoading: m = !1,
187
+ isLoading: s = !1,
184
188
  fallbackComponent: a = /* @__PURE__ */ r(R, {}),
185
189
  children: l
186
- }) => /* @__PURE__ */ r(k, { fallbackComponent: a, children: m === !0 ? /* @__PURE__ */ r(D, { keyPrefix: t }) : l }), J = v((t, m) => {
190
+ }) => /* @__PURE__ */ r(k, { fallbackComponent: a, children: s === !0 ? /* @__PURE__ */ r(M, { keyPrefix: t }) : l }), J = v((t, s) => {
187
191
  const {
188
192
  icon: a,
189
193
  title: l,
190
194
  buttonLink: d,
191
195
  items: n,
192
- isLoading: c = !1,
193
- buttonText: g,
196
+ isLoading: m = !1,
197
+ buttonText: u,
194
198
  limit: f = 4,
195
199
  onSelectCard: b = () => {
196
200
  },
197
201
  onButtonAction: C = () => {
198
202
  }
199
- } = t, G = $();
200
- return /* @__PURE__ */ i(I, { ref: m, children: [
203
+ } = t, y = $();
204
+ return /* @__PURE__ */ i(I, { ref: s, children: [
201
205
  /* @__PURE__ */ i("div", { className: "regular-title", children: [
202
206
  /* @__PURE__ */ i("div", { className: "regular-title-text", children: [
203
- h(a) && /* @__PURE__ */ r("i", { className: a }),
207
+ g(a) && /* @__PURE__ */ r("i", { className: a }),
204
208
  /* @__PURE__ */ r("span", { children: l })
205
209
  ] }),
206
- h(g) && h(d) && !c && /* @__PURE__ */ r(
207
- T,
210
+ g(u) && g(d) && !m && /* @__PURE__ */ r(
211
+ W,
208
212
  {
209
213
  type: "button",
210
214
  btnType: "tinted",
211
215
  color: "neutral",
212
216
  onClick: (e) => {
213
- var s;
214
- (s = e == null ? void 0 : e.target) == null || s.blur(), C(d);
217
+ var c;
218
+ (c = e == null ? void 0 : e.target) == null || c.blur(), C(d);
215
219
  },
216
220
  borderRadius: "curved",
217
221
  className: "button-link",
218
- children: g
222
+ children: u
219
223
  }
220
224
  )
221
225
  ] }),
222
- /* @__PURE__ */ r(U, { isLoading: c, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ r(B, { limit: f, children: G === !0 ? n == null ? void 0 : n.map((e, s) => /* @__PURE__ */ r(
226
+ /* @__PURE__ */ r(D, { isLoading: m, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ r(z, { limit: f, children: y === !0 ? n == null ? void 0 : n.map((e, c) => /* @__PURE__ */ r(
223
227
  w,
224
228
  {
225
229
  text: e == null ? void 0 : e.text,
@@ -227,10 +231,11 @@ const B = p.div`
227
231
  currency: e == null ? void 0 : e.currencyIsoCode,
228
232
  image: e == null ? void 0 : e.imageUrl,
229
233
  uuid: e == null ? void 0 : e.uuid,
230
- onSelectGiftCard: (y) => b(e)
234
+ selectAction: e == null ? void 0 : e.selectAction,
235
+ onSelectGiftCard: (G) => b(e)
231
236
  },
232
- s
233
- )) : n == null ? void 0 : n.slice(0, f).map((e, s) => /* @__PURE__ */ r(
237
+ c
238
+ )) : n == null ? void 0 : n.slice(0, f).map((e, c) => /* @__PURE__ */ r(
234
239
  w,
235
240
  {
236
241
  text: e == null ? void 0 : e.text,
@@ -238,9 +243,10 @@ const B = p.div`
238
243
  currency: e == null ? void 0 : e.currencyIsoCode,
239
244
  image: e == null ? void 0 : e.imageUrl,
240
245
  uuid: e == null ? void 0 : e.uuid,
241
- onSelectGiftCard: (y) => b(e)
246
+ selectAction: e == null ? void 0 : e.selectAction,
247
+ onSelectGiftCard: (G) => b(e)
242
248
  },
243
- s
249
+ c
244
250
  )) }) })
245
251
  ] });
246
252
  });
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),h=require("react"),_=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./utils-RnrgDDZP.cjs"),c=require("./consts-goSZX3xP.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),i=require("./style-BAcV7F53.cjs"),w=d.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),h=require("react"),_=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./utils-RnrgDDZP.cjs"),c=require("./consts-goSZX3xP.cjs"),w=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),i=require("./style-BAcV7F53.cjs"),j=d.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -6,6 +6,7 @@
6
6
  position: relative;
7
7
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
8
8
  cursor: pointer;
9
+ text-decoration: none;
9
10
 
10
11
  grid-column: ${r=>{var t;return((t=r.position)==null?void 0:t.columnStart)||"1"}} /
11
12
  ${r=>{var t;return((t=r.position)==null?void 0:t.columnEnd)||"6"}};
@@ -112,7 +113,7 @@
112
113
  max-height: 14.5rem;
113
114
  }
114
115
  }
115
- `,j=h.forwardRef(({title:r,imageUrl:t,description:a,buttonText:o,onSelectCard:m=()=>{},className:g,position:l,tag:s,backgroundColor:p},x)=>{const u=f.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(w,{ref:x,theme:u,className:g,position:l,backgroundColor:p,onClick:m,children:[e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__text",children:[s&&e.jsx("div",{className:"text__tag",children:s}),e.jsx("div",{className:"text__title",children:r}),n.isDefinedNotEmptyString(a)&&e.jsx("div",{className:"text__description",children:a}),n.isDefinedNotEmptyString(o)&&e.jsx(_,{text:o,className:"text__action"})]})]})})}),b=d.styled.div`
116
+ `,b=h.forwardRef(({title:r,imageUrl:t,description:o,buttonText:a,onSelectCard:m=()=>{},className:g,position:l,tag:s,backgroundColor:p,buttonLink:x},u)=>{const f=w.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(j,{ref:u,theme:f,className:g,position:l,backgroundColor:p,onClick:m,href:`/${x}`,children:[e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__text",children:[s&&e.jsx("div",{className:"text__tag",children:s}),e.jsx("div",{className:"text__title",children:r}),n.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),n.isDefinedNotEmptyString(a)&&e.jsx(_,{text:a,className:"text__action"})]})]})})}),k=d.styled.div`
116
117
  display: flex;
117
118
  flex-direction: column;
118
119
  gap: 1.5rem;
@@ -145,7 +146,7 @@
145
146
  }
146
147
  }
147
148
  }
148
- `,k=d.styled.div`
149
+ `,y=d.styled.div`
149
150
  display: grid;
150
151
  grid-template-columns: ${r=>"repeat(12, minmax(0, 1fr))"};
151
152
 
@@ -163,7 +164,7 @@
163
164
  height: 100%;
164
165
  max-height: 100%;
165
166
  }
166
- `,y=d.styled(i.SkeletonRowWrapper)`
167
+ `,S=d.styled(i.SkeletonRowWrapper)`
167
168
  @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
168
169
  flex-direction: column;
169
170
 
@@ -177,4 +178,4 @@
177
178
  flex-direction: column;
178
179
  }
179
180
  }
180
- `,S=({keyPrefix:r})=>e.jsxs(y,{children:[e.jsx(i.SkeletonColumnWrapper,{children:e.jsx(i.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-5`)]})]})]}),v=({keyPrefix:r,isLoading:t=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:o})=>e.jsx(h.Suspense,{fallbackComponent:a,children:t===!0?e.jsx(S,{keyPrefix:r}):o}),$=h.forwardRef(({title:r,items:t,isLoading:a=!1,limit:o=3,onSelectCard:m=()=>{}},g)=>e.jsxs(b,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx(v,{isLoading:a,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx(k,{limit:o,children:t&&(t==null?void 0:t.map((l,s)=>e.jsx(j,{...l,onSelectCard:()=>m(l)},`landing-page-masonry-general-card__${s+1}`)))})})]}));module.exports=$;
181
+ `,v=({keyPrefix:r})=>e.jsxs(S,{children:[e.jsx(i.SkeletonColumnWrapper,{children:e.jsx(i.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-5`)]})]})]}),$=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=e.jsx(e.Fragment,{}),children:a})=>e.jsx(h.Suspense,{fallbackComponent:o,children:t===!0?e.jsx(v,{keyPrefix:r}):a}),E=h.forwardRef(({title:r,items:t,isLoading:o=!1,limit:a=3,onSelectCard:m=()=>{}},g)=>e.jsxs(k,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx($,{isLoading:o,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx(y,{limit:a,children:t&&(t==null?void 0:t.map((l,s)=>e.jsx(b,{...l,onSelectCard:()=>m(l)},`landing-page-masonry-general-card__${s+1}`)))})})]}));module.exports=E;
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, Fragment as _, jsxs as i } from "react/jsx-runtime";
2
- import { forwardRef as w, Suspense as k } from "react";
3
- import y from "./Button.js";
2
+ import { forwardRef as w, Suspense as y } from "react";
3
+ import S from "./Button.js";
4
4
  import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { w as m, o as f, k as u } from "./utils-Dc5zIpaz.js";
6
6
  import { M as c } from "./consts-BuFChS64.js";
7
- import { u as S } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  import { a as p, S as x, b as o } from "./style-CXMUA6cI.js";
9
- const N = s.div`
9
+ const C = s.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  align-items: flex-start;
@@ -14,6 +14,7 @@ const N = s.div`
14
14
  position: relative;
15
15
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
16
16
  cursor: pointer;
17
+ text-decoration: none;
17
18
 
18
19
  grid-column: ${(e) => {
19
20
  var t;
@@ -132,7 +133,7 @@ const N = s.div`
132
133
  max-height: 14.5rem;
133
134
  }
134
135
  }
135
- `, C = w(
136
+ `, G = w(
136
137
  ({
137
138
  title: e,
138
139
  imageUrl: t,
@@ -143,18 +144,20 @@ const N = s.div`
143
144
  className: h,
144
145
  position: l,
145
146
  tag: d,
146
- backgroundColor: b
147
- }, v) => {
148
- const $ = S();
147
+ backgroundColor: b,
148
+ buttonLink: v
149
+ }, $) => {
150
+ const k = N();
149
151
  return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ i(
150
- N,
152
+ C,
151
153
  {
152
- ref: v,
153
- theme: $,
154
+ ref: $,
155
+ theme: k,
154
156
  className: h,
155
157
  position: l,
156
158
  backgroundColor: b,
157
159
  onClick: g,
160
+ href: `/${v}`,
158
161
  children: [
159
162
  /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
160
163
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: [
@@ -162,7 +165,7 @@ const N = s.div`
162
165
  /* @__PURE__ */ r("div", { className: "text__title", children: e }),
163
166
  u(a) && /* @__PURE__ */ r("div", { className: "text__description", children: a }),
164
167
  u(n) && /* @__PURE__ */ r(
165
- y,
168
+ S,
166
169
  {
167
170
  text: n,
168
171
  className: "text__action"
@@ -173,7 +176,7 @@ const N = s.div`
173
176
  }
174
177
  ) });
175
178
  }
176
- ), G = s.div`
179
+ ), z = s.div`
177
180
  display: flex;
178
181
  flex-direction: column;
179
182
  gap: 1.5rem;
@@ -206,7 +209,7 @@ const N = s.div`
206
209
  }
207
210
  }
208
211
  }
209
- `, z = s.div`
212
+ `, M = s.div`
210
213
  display: grid;
211
214
  grid-template-columns: ${(e) => "repeat(12, minmax(0, 1fr))"};
212
215
 
@@ -224,7 +227,7 @@ const N = s.div`
224
227
  height: 100%;
225
228
  max-height: 100%;
226
229
  }
227
- `, M = s(p)`
230
+ `, j = s(p)`
228
231
  @media (max-width: ${c + "px"}) {
229
232
  flex-direction: column;
230
233
 
@@ -238,7 +241,7 @@ const N = s.div`
238
241
  flex-direction: column;
239
242
  }
240
243
  }
241
- `, j = ({ keyPrefix: e }) => /* @__PURE__ */ i(M, { children: [
244
+ `, E = ({ keyPrefix: e }) => /* @__PURE__ */ i(j, { children: [
242
245
  /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(
243
246
  o,
244
247
  {
@@ -257,22 +260,22 @@ const N = s.div`
257
260
  /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-5`)
258
261
  ] })
259
262
  ] })
260
- ] }), E = ({
263
+ ] }), W = ({
261
264
  keyPrefix: e,
262
265
  isLoading: t = !1,
263
266
  fallbackComponent: a = /* @__PURE__ */ r(_, {}),
264
267
  children: n
265
- }) => /* @__PURE__ */ r(k, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ r(j, { keyPrefix: e }) : n }), F = w(
268
+ }) => /* @__PURE__ */ r(y, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ r(E, { keyPrefix: e }) : n }), O = w(
266
269
  ({ title: e, items: t, isLoading: a = !1, limit: n = 3, onSelectCard: g = () => {
267
- } }, h) => /* @__PURE__ */ i(G, { ref: h, children: [
270
+ } }, h) => /* @__PURE__ */ i(z, { ref: h, children: [
268
271
  /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: e }) }) }),
269
272
  /* @__PURE__ */ r(
270
- E,
273
+ W,
271
274
  {
272
275
  isLoading: a,
273
276
  keyPrefix: "masonry-general-cards-skeleton",
274
- children: /* @__PURE__ */ r(z, { limit: n, children: t && (t == null ? void 0 : t.map((l, d) => /* @__PURE__ */ r(
275
- C,
277
+ children: /* @__PURE__ */ r(M, { limit: n, children: t && (t == null ? void 0 : t.map((l, d) => /* @__PURE__ */ r(
278
+ G,
276
279
  {
277
280
  ...l,
278
281
  onSelectCard: () => g(l)
@@ -284,5 +287,5 @@ const N = s.div`
284
287
  ] })
285
288
  );
286
289
  export {
287
- F as default
290
+ O as default
288
291
  };
package/dist/Modal.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),_=require("./Icon.cjs"),w=require("./utils-RnrgDDZP.cjs"),V=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),x="5rem",h="3.8rem",i="1.5rem",W=(e,n,a)=>n&&a?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:n?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:a?e=="FULL"?`calc(100dvh - ${x})`:`calc(100dvh - ${x} - ${i})`:e=="FULL"?"100dvh":`calc(100dvh - ${i})`,X=e=>e=="FULL"?"100vw":`calc(100vw - ${i})`,J=(e,n,a)=>e=="FULL"?"0":`${n?"0":"16px"} 0 ${a?"0":"16px"} 0`,K=C.styled(L.motion.div)`
1
+ "use strict";const r=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),V=require("./Icon.cjs"),w=require("./utils-RnrgDDZP.cjs"),G=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),W=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),f="5rem",h="3.8rem",l="1.5rem",X=(e,n,a)=>n&&a?e=="FULL"?`calc(100dvh - ${h} - ${f})`:`calc(100dvh - ${h} - ${f} - ${l})`:n?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${l})`:a?e=="FULL"?`calc(100dvh - ${f})`:`calc(100dvh - ${f} - ${l})`:e=="FULL"?"100dvh":`calc(100dvh - ${l})`,J=e=>e=="FULL"?"100vw":`calc(100vw - ${l})`,K=(e,n,a)=>e=="FULL"?"0":`${n?"0":"16px"} 0 ${a?"0":"16px"} 0`,Q=C.styled(L.motion.div)`
2
2
  position: ${e=>e.scrollOverlay==!0?"absolute":"fixed"};
3
3
  top: 0;
4
4
  left: 0;
@@ -7,16 +7,17 @@
7
7
  background: ${e=>e.scrollOverlay===!0?"transparent":e.overlayColor};
8
8
  z-index: ${e=>e.zIndex};
9
9
  display: flex;
10
- `,Q=C.styled(L.motion.div)`
10
+ `,Y=C.styled(L.motion.div)`
11
11
  position: relative;
12
12
  width: 50%;
13
13
  background-color: white;
14
14
  ${e=>e.scrollOverlay==!1?"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);":"height: fit-content; margin-right: auto; margin-left: auto;"}
15
15
  background-color: ${e=>w.getColorRgbaValue(e.theme,"Modal","default","enabled","bg")};
16
16
  z-index: ${e=>e.zIndex};
17
- width: ${e=>ee[e.size.toUpperCase()]};
18
- max-width: ${e=>X(e.size.toUpperCase())};
19
- box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
17
+ width: ${e=>oe[e.size.toUpperCase()]};
18
+ max-width: ${e=>J(e.size.toUpperCase())};
19
+ box-shadow:
20
+ 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
20
21
  0px 10px 10px -5px rgba(0, 0, 0, 0.04);
21
22
  border-radius: ${e=>e.size.toUpperCase()!="FULL"?"16px":"0"};
22
23
  display: flex;
@@ -26,7 +27,7 @@
26
27
  & .lnc-modal-header {
27
28
  max-height: ${h};
28
29
  overflow: hidden;
29
- padding: ${i} ${i} 0 ${i};
30
+ padding: ${l} ${l} 0 ${l};
30
31
  }
31
32
  & .lnc-modal-header > h1,
32
33
  h2,
@@ -34,7 +35,7 @@
34
35
  margin: 0;
35
36
  }
36
37
  & .lnc-modal-footer {
37
- max-height: ${x};
38
+ max-height: ${f};
38
39
  overflow: hidden;
39
40
  padding-top: 1rem;
40
41
  }
@@ -45,12 +46,12 @@
45
46
  flex-direction: column;
46
47
  justify-content: space-between;
47
48
  scrollbar-width: thin;
48
- ${e=>e.scrollOverlay==!1&&`max-height: ${W(e.size.toUpperCase(),e.header,e.footer)};`}
49
+ ${e=>e.scrollOverlay==!1&&`max-height: ${X(e.size.toUpperCase(),e.header,e.footer)};`}
49
50
  overflow: auto;
50
- margin: ${e=>J(e.size,e.header,e.footer)};
51
- padding: 0 ${i} 0 ${i};
51
+ margin: ${e=>K(e.size,e.header,e.footer)};
52
+ padding: 0 ${l} 0 ${l};
52
53
  }
53
- `,Y=C.styled.div`
54
+ `,Z=C.styled.div`
54
55
  position: absolute;
55
56
  cursor: pointer;
56
57
  top: 1.375rem;
@@ -72,7 +73,7 @@
72
73
  &:focus {
73
74
  background-color: ${e=>w.getColorRgbaValue(e.theme,"Modal","primary","focus","cancelBtnBg","cancelBtnBgOpacity")};
74
75
  }
75
- `,Z=C.styled(L.motion.div)`
76
+ `,ee=C.styled(L.motion.div)`
76
77
  display: ${e=>e.scrollOverlay===!0?"block":"none"};
77
78
  position: fixed;
78
79
  top: 0;
@@ -81,4 +82,4 @@
81
82
  width: 100%;
82
83
  background-color: ${e=>e.overlayColor};
83
84
  z-index: 3;
84
- `,A=y.forwardRef((e,n)=>{const{portalElement:a=document.body,isOpen:c=!1,header:p,footer:l,scrollOverlay:s=!1,overlay:d=!0,overlayColor:u="rgba(0, 0, 0, 0.3)",showCloseButton:m=!0,onOpen:f=()=>{},onClose:g=()=>{},zIndex:O=1e3,size:$="fluid",clickOutsideToClose:b=!0,className:T="",style:D={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:H=()=>{},children:z,rest:M}=e,R=y.useRef(),[v,k]=y.useState(c);let B={theme:G.useTheme(),size:$,zIndex:O,className:T,style:D};const q=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),t.target===t.currentTarget&&b&&j(t)};y.useImperativeHandle(n,()=>({open(){S()},close(){j()},isOpen(){return v}}));const S=t=>{k(!0),f(t)},j=t=>{k(!1),g(t)};return y.useEffect(()=>{v===!0&&H()},[v]),r.jsx(r.Fragment,{children:v&&r.jsx(r.Fragment,{children:a?r.jsx(r.Fragment,{children:V.reactDomExports.createPortal(r.jsx(E,{ref:R,overlay:d,scrollOverlay:s,onClickOutsideModal:q,overlayColor:u,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:m,close:j,header:p,footer:l,isOpen:c,...M,children:z}),a)}):r.jsx(E,{ref:R,overlay:d,scrollOverlay:s,onClickOutsideModal:q,overlayColor:u,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:m,close:j,header:p,footer:l,isOpen:c,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:n,onClickOutsideModal:a,overlayColor:c,overlayProps:p,overlayAnimation:l,modalAnimation:s,themeProps:d,showCloseButton:u,header:m,footer:f,close:g,isOpen:O,children:$,...b},T)=>r.jsx(N.AnimatePresence,{children:e?r.jsxs(r.Fragment,{children:[r.jsx(Z,{scrollOverlay:n,onClick:a,overlayColor:c,...p,...l}),r.jsx(K,{...d,onClick:a,scrollOverlay:n,overlayColor:c,isOpen:O,...p,...l,children:r.jsx(I,{ref:T,themeProps:d,scrollOverlay:n,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:f,...b,children:$})})]}):r.jsx(I,{ref:T,themeProps:d,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:f,...b,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:n,modalAnimation:a,showCloseButton:c,close:p,header:l,footer:s,children:d,...u},m)=>r.jsx(N.AnimatePresence,{children:r.jsxs(Q,{ref:m,...e,...a,header:l,footer:s,scrollOverlay:n,...u,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[c&&r.jsx(Y,{...e,className:"modal-lnc-times",onClick:p,children:r.jsx(_,{icon:"times"})}),l&&r.jsx("div",{className:"lnc-modal-header",children:l}),r.jsx("div",{className:"lnc-modal-content",children:d}),s&&r.jsx("div",{className:"lnc-modal-footer",children:s})]})}));A.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const ee={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=A;
85
+ `,D=y.forwardRef((e,n)=>{const{preventDefault:a=!1,portalElement:p=document.body,isOpen:c=!1,header:i,footer:s,scrollOverlay:d=!1,overlay:u=!0,overlayColor:m="rgba(0, 0, 0, 0.3)",showCloseButton:x=!0,onOpen:g=()=>{},onClose:O=()=>{},zIndex:$=1e3,size:b="fluid",clickOutsideToClose:T=!0,className:A="",style:H={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:S=()=>{},children:z,rest:M}=e,R=y.useRef(),[v,k]=y.useState(c);let B={theme:W.useTheme(),size:b,zIndex:$,className:A,style:H};const q=t=>{a&&(t==null||t.preventDefault(),t==null||t.stopPropagation()),t.target===t.currentTarget&&T&&j(t)};y.useImperativeHandle(n,()=>({open(){_()},close(){j()},isOpen(){return v}}));const _=t=>{k(!0),g(t)},j=t=>{k(!1),O(t)};return y.useEffect(()=>{v===!0&&S()},[v]),r.jsx(r.Fragment,{children:v&&r.jsx(r.Fragment,{children:p?r.jsx(r.Fragment,{children:G.reactDomExports.createPortal(r.jsx(E,{ref:R,overlay:u,scrollOverlay:d,onClickOutsideModal:q,overlayColor:m,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:x,close:j,header:i,footer:s,isOpen:c,...M,children:z}),p)}):r.jsx(E,{ref:R,overlay:u,scrollOverlay:d,onClickOutsideModal:q,overlayColor:m,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:x,close:j,header:i,footer:s,isOpen:c,...M,children:z})})})}),E=y.forwardRef(({overlay:e,scrollOverlay:n,onClickOutsideModal:a,overlayColor:p,overlayProps:c,overlayAnimation:i,modalAnimation:s,themeProps:d,showCloseButton:u,header:m,footer:x,close:g,isOpen:O,children:$,...b},T)=>r.jsx(N.AnimatePresence,{children:e?r.jsxs(r.Fragment,{children:[r.jsx(ee,{scrollOverlay:n,onClick:a,overlayColor:p,...c,...i}),r.jsx(Q,{...d,onClick:a,scrollOverlay:n,overlayColor:p,isOpen:O,...c,...i,children:r.jsx(I,{ref:T,themeProps:d,scrollOverlay:n,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:x,...b,children:$})})]}):r.jsx(I,{ref:T,themeProps:d,modalAnimation:s,showCloseButton:u,close:g,header:m,footer:x,...b,children:$})})),I=y.forwardRef(({themeProps:e,scrollOverlay:n,modalAnimation:a,showCloseButton:p,close:c,header:i,footer:s,children:d,...u},m)=>r.jsx(N.AnimatePresence,{children:r.jsxs(Y,{ref:m,...e,...a,header:i,footer:s,scrollOverlay:n,...u,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[p&&r.jsx(Z,{...e,className:"modal-lnc-times",onClick:c,children:r.jsx(V,{icon:"times"})}),i&&r.jsx("div",{className:"lnc-modal-header",children:i}),r.jsx("div",{className:"lnc-modal-content",children:d}),s&&r.jsx("div",{className:"lnc-modal-footer",children:s})]})}));D.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const oe={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=D;