@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
package/dist/Modal.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsx as t, Fragment as L, jsxs as R } from "react/jsx-runtime";
2
- import { forwardRef as z, useRef as X, useState as V, useImperativeHandle as q, useEffect as J } from "react";
2
+ import { forwardRef as z, useRef as V, useState as q, useImperativeHandle as J, useEffect as K } from "react";
3
3
  import { P as o } from "./index-CblbdqjE.js";
4
4
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import K from "./Icon.js";
5
+ import P from "./Icon.js";
6
6
  import { b as w } from "./utils-Dc5zIpaz.js";
7
- import { r as P } from "./index-B1vKwsDE.js";
7
+ import { r as Q } from "./index-B1vKwsDE.js";
8
8
  import { m as M } from "./motion-Ckekul_K.js";
9
- import { u as Q } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
+ import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
10
  import { A as S } from "./index-D-c5IxDk.js";
11
- const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (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})`, Z = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${l})`, ee = (e, n, a) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, oe = C(M.div)`
11
+ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FULL" ? `calc(100dvh - ${g} - ${h})` : `calc(100dvh - ${g} - ${h} - ${l})` : n ? e == "FULL" ? `calc(100dvh - ${g})` : `calc(100dvh - ${g} - ${l})` : a ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${l})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${l})`, ee = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${l})`, oe = (e, n, a) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, te = C(M.div)`
12
12
  position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
13
13
  top: 0;
14
14
  left: 0;
@@ -17,16 +17,17 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
17
17
  background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
18
18
  z-index: ${(e) => e.zIndex};
19
19
  display: flex;
20
- `, te = C(M.div)`
20
+ `, re = C(M.div)`
21
21
  position: relative;
22
22
  width: 50%;
23
23
  background-color: white;
24
24
  ${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
25
25
  background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
26
26
  z-index: ${(e) => e.zIndex};
27
- width: ${(e) => le[e.size.toUpperCase()]};
28
- max-width: ${(e) => Z(e.size.toUpperCase())};
29
- box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
27
+ width: ${(e) => ie[e.size.toUpperCase()]};
28
+ max-width: ${(e) => ee(e.size.toUpperCase())};
29
+ box-shadow:
30
+ 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
30
31
  0px 10px 10px -5px rgba(0, 0, 0, 0.04);
31
32
  border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
32
33
  display: flex;
@@ -34,7 +35,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
34
35
  gap: 0.5rem;
35
36
 
36
37
  & .lnc-modal-header {
37
- max-height: ${h};
38
+ max-height: ${g};
38
39
  overflow: hidden;
39
40
  padding: ${l} ${l} 0 ${l};
40
41
  }
@@ -44,7 +45,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
44
45
  margin: 0;
45
46
  }
46
47
  & .lnc-modal-footer {
47
- max-height: ${f};
48
+ max-height: ${h};
48
49
  overflow: hidden;
49
50
  padding-top: 1rem;
50
51
  }
@@ -55,16 +56,16 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
55
56
  flex-direction: column;
56
57
  justify-content: space-between;
57
58
  scrollbar-width: thin;
58
- ${(e) => e.scrollOverlay == !1 && `max-height: ${Y(
59
+ ${(e) => e.scrollOverlay == !1 && `max-height: ${Z(
59
60
  e.size.toUpperCase(),
60
61
  e.header,
61
62
  e.footer
62
63
  )};`}
63
64
  overflow: auto;
64
- margin: ${(e) => ee(e.size, e.header, e.footer)};
65
+ margin: ${(e) => oe(e.size, e.header, e.footer)};
65
66
  padding: 0 ${l} 0 ${l};
66
67
  }
67
- `, re = C.div`
68
+ `, ne = C.div`
68
69
  position: absolute;
69
70
  cursor: pointer;
70
71
  top: 1.375rem;
@@ -106,7 +107,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
106
107
  "cancelBtnBgOpacity"
107
108
  )};
108
109
  }
109
- `, ne = C(M.div)`
110
+ `, ae = C(M.div)`
110
111
  display: ${(e) => e.scrollOverlay === !0 ? "block" : "none"};
111
112
  position: fixed;
112
113
  top: 0;
@@ -115,25 +116,26 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
115
116
  width: 100%;
116
117
  background-color: ${(e) => e.overlayColor};
117
118
  z-index: 3;
118
- `, ae = z((e, n) => {
119
+ `, le = z((e, n) => {
119
120
  const {
120
- portalElement: a = document.body,
121
+ preventDefault: a = !1,
122
+ portalElement: m = document.body,
121
123
  isOpen: s = !1,
122
- header: m,
123
- footer: i,
124
- scrollOverlay: c = !1,
125
- overlay: d = !0,
126
- overlayColor: p = "rgba(0, 0, 0, 0.3)",
124
+ header: i,
125
+ footer: c,
126
+ scrollOverlay: d = !1,
127
+ overlay: p = !0,
128
+ overlayColor: f = "rgba(0, 0, 0, 0.3)",
127
129
  showCloseButton: u = !0,
128
- onOpen: g = () => {
130
+ onOpen: x = () => {
129
131
  },
130
- onClose: x = () => {
132
+ onClose: U = () => {
131
133
  },
132
- zIndex: U = 1e3,
133
- size: y = "fluid",
134
- clickOutsideToClose: $ = !0,
135
- className: b = "",
136
- style: G = {},
134
+ zIndex: y = 1e3,
135
+ size: $ = "fluid",
136
+ clickOutsideToClose: b = !0,
137
+ className: G = "",
138
+ style: _ = {},
137
139
  overlayProps: F,
138
140
  overlayAnimation: k = {
139
141
  animate: { opacity: 1 },
@@ -151,18 +153,18 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
151
153
  },
152
154
  transition: { type: "spring", duration: 0.6 }
153
155
  },
154
- onFinishOpen: _ = () => {
156
+ onFinishOpen: W = () => {
155
157
  },
156
158
  children: T,
157
159
  rest: I
158
- } = e, E = X(), [v, N] = V(s);
159
- let j = { theme: Q(), size: y, zIndex: U, className: b, style: G };
160
- const A = (r) => {
161
- r == null || r.preventDefault(), r == null || r.stopPropagation(), r.target === r.currentTarget && $ && O(r);
160
+ } = e, E = V(), [v, N] = q(s);
161
+ let D = { theme: Y(), size: $, zIndex: y, className: G, style: _ };
162
+ const j = (r) => {
163
+ a && (r == null || r.preventDefault(), r == null || r.stopPropagation()), r.target === r.currentTarget && b && O(r);
162
164
  };
163
- q(n, () => ({
165
+ J(n, () => ({
164
166
  open() {
165
- W();
167
+ X();
166
168
  },
167
169
  close() {
168
170
  O();
@@ -171,94 +173,94 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
171
173
  return v;
172
174
  }
173
175
  }));
174
- const W = (r) => {
175
- N(!0), g(r);
176
+ const X = (r) => {
177
+ N(!0), x(r);
176
178
  }, O = (r) => {
177
- N(!1), x(r);
179
+ N(!1), U(r);
178
180
  };
179
- return J(() => {
180
- v === !0 && _();
181
- }, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: a ? /* @__PURE__ */ t(L, { children: P.createPortal(
181
+ return K(() => {
182
+ v === !0 && W();
183
+ }, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: m ? /* @__PURE__ */ t(L, { children: Q.createPortal(
182
184
  /* @__PURE__ */ t(
183
- D,
185
+ A,
184
186
  {
185
187
  ref: E,
186
- overlay: d,
187
- scrollOverlay: c,
188
- onClickOutsideModal: A,
189
- overlayColor: p,
188
+ overlay: p,
189
+ scrollOverlay: d,
190
+ onClickOutsideModal: j,
191
+ overlayColor: f,
190
192
  overlayProps: F,
191
193
  overlayAnimation: k,
192
194
  modalAnimation: B,
193
- themeProps: j,
195
+ themeProps: D,
194
196
  showCloseButton: u,
195
197
  close: O,
196
- header: m,
197
- footer: i,
198
+ header: i,
199
+ footer: c,
198
200
  isOpen: s,
199
201
  ...I,
200
202
  children: T
201
203
  }
202
204
  ),
203
- a
205
+ m
204
206
  ) }) : /* @__PURE__ */ t(
205
- D,
207
+ A,
206
208
  {
207
209
  ref: E,
208
- overlay: d,
209
- scrollOverlay: c,
210
- onClickOutsideModal: A,
211
- overlayColor: p,
210
+ overlay: p,
211
+ scrollOverlay: d,
212
+ onClickOutsideModal: j,
213
+ overlayColor: f,
212
214
  overlayProps: F,
213
215
  overlayAnimation: k,
214
216
  modalAnimation: B,
215
- themeProps: j,
217
+ themeProps: D,
216
218
  showCloseButton: u,
217
219
  close: O,
218
- header: m,
219
- footer: i,
220
+ header: i,
221
+ footer: c,
220
222
  isOpen: s,
221
223
  ...I,
222
224
  children: T
223
225
  }
224
226
  ) }) });
225
- }), D = z(
227
+ }), A = z(
226
228
  ({
227
229
  overlay: e,
228
230
  scrollOverlay: n,
229
231
  onClickOutsideModal: a,
230
- overlayColor: s,
231
- overlayProps: m,
232
+ overlayColor: m,
233
+ overlayProps: s,
232
234
  overlayAnimation: i,
233
235
  modalAnimation: c,
234
236
  themeProps: d,
235
237
  showCloseButton: p,
236
- header: u,
237
- footer: g,
238
+ header: f,
239
+ footer: u,
238
240
  close: x,
239
241
  isOpen: U,
240
242
  children: y,
241
243
  ...$
242
244
  }, b) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
243
245
  /* @__PURE__ */ t(
244
- ne,
246
+ ae,
245
247
  {
246
248
  scrollOverlay: n,
247
249
  onClick: a,
248
- overlayColor: s,
249
- ...m,
250
+ overlayColor: m,
251
+ ...s,
250
252
  ...i
251
253
  }
252
254
  ),
253
255
  /* @__PURE__ */ t(
254
- oe,
256
+ te,
255
257
  {
256
258
  ...d,
257
259
  onClick: a,
258
260
  scrollOverlay: n,
259
- overlayColor: s,
261
+ overlayColor: m,
260
262
  isOpen: U,
261
- ...m,
263
+ ...s,
262
264
  ...i,
263
265
  children: /* @__PURE__ */ t(
264
266
  H,
@@ -269,8 +271,8 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
269
271
  modalAnimation: c,
270
272
  showCloseButton: p,
271
273
  close: x,
272
- header: u,
273
- footer: g,
274
+ header: f,
275
+ footer: u,
274
276
  ...$,
275
277
  children: y
276
278
  }
@@ -285,8 +287,8 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
285
287
  modalAnimation: c,
286
288
  showCloseButton: p,
287
289
  close: x,
288
- header: u,
289
- footer: g,
290
+ header: f,
291
+ footer: u,
290
292
  ...$,
291
293
  children: y
292
294
  }
@@ -296,16 +298,16 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
296
298
  themeProps: e,
297
299
  scrollOverlay: n,
298
300
  modalAnimation: a,
299
- showCloseButton: s,
300
- close: m,
301
+ showCloseButton: m,
302
+ close: s,
301
303
  header: i,
302
304
  footer: c,
303
305
  children: d,
304
306
  ...p
305
- }, u) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
306
- te,
307
+ }, f) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
308
+ re,
307
309
  {
308
- ref: u,
310
+ ref: f,
309
311
  ...e,
310
312
  ...a,
311
313
  header: i,
@@ -314,13 +316,13 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
314
316
  ...p,
315
317
  className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
316
318
  children: [
317
- s && /* @__PURE__ */ t(
318
- re,
319
+ m && /* @__PURE__ */ t(
320
+ ne,
319
321
  {
320
322
  ...e,
321
323
  className: "modal-lnc-times",
322
- onClick: m,
323
- children: /* @__PURE__ */ t(K, { icon: "times" })
324
+ onClick: s,
325
+ children: /* @__PURE__ */ t(P, { icon: "times" })
324
326
  }
325
327
  ),
326
328
  i && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: i }),
@@ -330,7 +332,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
330
332
  }
331
333
  ) })
332
334
  );
333
- ae.propTypes = {
335
+ le.propTypes = {
334
336
  /**
335
337
  * If the value is given modal will use createPortal to be rendered in portalElement
336
338
  */
@@ -362,7 +364,7 @@ ae.propTypes = {
362
364
  size: o.oneOf(["fluid", "xs", "s", "m", "l", "xl", "full"]),
363
365
  overlayProps: o.any
364
366
  };
365
- const le = {
367
+ const ie = {
366
368
  FLUID: "max-content",
367
369
  XS: "320px",
368
370
  S: "412px",
@@ -372,5 +374,5 @@ const le = {
372
374
  FULL: "100vw"
373
375
  };
374
376
  export {
375
- ae as default
377
+ le as default
376
378
  };
@@ -1,4 +1,6 @@
1
- "use strict";const n=require("react/jsx-runtime"),g=require("react"),t=require("./index-BpbMKBf_.cjs"),x=require("./Button.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),_=require("./index-D-3I_Ppj.cjs"),p=f.styled.div`
1
+ "use strict";const n=require("react/jsx-runtime"),d=require("react"),x=require("./Button.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),_=require("./index-D-3I_Ppj.cjs"),u=f.styled.a`
2
+ text-decoration: none;
3
+ color: var(--gray-950);
2
4
  display: flex;
3
5
  height: 28.75rem;
4
6
  padding: 2.25rem;
@@ -60,7 +62,7 @@
60
62
  }
61
63
  }
62
64
 
63
- @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
65
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
64
66
  padding: 2rem;
65
67
  min-height: 17.5rem;
66
68
  width: 100%;
@@ -83,7 +85,7 @@
83
85
  }
84
86
  }
85
87
  }
86
- `,u=g.forwardRef(({title:r,description:o,buttonText:i,imageUrl:s,backgroundColor:l="none",handleSelectCard:a=()=>{},handleButtonAction:e=()=>{}},d)=>n.jsxs(p,{backgroundImage:s,backgroundColor:l,onClick:a,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:c=>{c==null||c.stopPropagation(),e()},borderRadius:"regular",color:"gray",className:"section__action"})]}));u.propTypes={title:t.PropTypes.string,description:t.PropTypes.string,buttonText:t.PropTypes.string,imageUrl:t.PropTypes.string,backgroundColor:t.PropTypes.string,handleSelectCard:t.PropTypes.func,handleButtonAction:t.PropTypes.func};const m=f.styled.div`
88
+ `,m=d.forwardRef(({title:r,description:t,buttonText:i,imageUrl:s,backgroundColor:l="none",handleSelectCard:a=()=>{},handleButtonAction:e=()=>{},selectAction:c},h)=>n.jsxs(u,{ref:h,backgroundImage:s,backgroundColor:l,onClick:a,href:`/${c}`,children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),t&&n.jsx("div",{className:"section__description",children:t})]}),n.jsx(x,{text:i,onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation(),e()},borderRadius:"regular",color:"gray",className:"section__action"})]})),y=f.styled.div`
87
89
  display: flex;
88
90
  flex-direction: column;
89
91
  align-items: flex-start;
@@ -122,7 +124,7 @@
122
124
  }
123
125
  }
124
126
 
125
- @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
127
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
126
128
  & .section__title {
127
129
  font-size: 1.375rem;
128
130
  line-height: 1.75rem;
@@ -132,4 +134,4 @@
132
134
  flex-direction: column;
133
135
  }
134
136
  }
135
- `,y=g.forwardRef(({title:r,items:o,isLoading:i=!1,onSelectCard:s=()=>{},onButtonAction:l=()=>{}},a)=>n.jsxs(m,{ref:a,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(_.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:o==null?void 0:o.map((e,d)=>n.jsx(u,{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:()=>s(e),handleButtonAction:()=>l(e)},`overlay-general-card__${d+1}`))})})]}));module.exports=y;
137
+ `,v=d.forwardRef(({title:r,items:t,isLoading:i=!1,onSelectCard:s=()=>{},onButtonAction:l=()=>{}},a)=>n.jsxs(y,{ref:a,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(_.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:t==null?void 0:t.map((e,c)=>n.jsx(m,{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:()=>s(e),handleButtonAction:()=>l(e),selectAction:e==null?void 0:e.selectAction},`overlay-general-card__${c+1}`))})})]}));module.exports=v;
@@ -1,11 +1,12 @@
1
1
  import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as g } from "react";
3
- import { P as t } from "./index-CblbdqjE.js";
4
- import u from "./Button.js";
5
- import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { M as m } from "./consts-BuFChS64.js";
7
- import { S as x } from "./index-BovNbKxB.js";
8
- const p = h.div`
2
+ import { forwardRef as f } from "react";
3
+ import m from "./Button.js";
4
+ import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { M as h } from "./consts-BuFChS64.js";
6
+ import { S as u } from "./index-BovNbKxB.js";
7
+ const x = g.a`
8
+ text-decoration: none;
9
+ color: var(--gray-950);
9
10
  display: flex;
10
11
  height: 28.75rem;
11
12
  padding: 2.25rem;
@@ -67,7 +68,7 @@ const p = h.div`
67
68
  }
68
69
  }
69
70
 
70
- @media (max-width: ${m + "px"}) {
71
+ @media (max-width: ${h + "px"}) {
71
72
  padding: 2rem;
72
73
  min-height: 17.5rem;
73
74
  width: 100%;
@@ -90,7 +91,7 @@ const p = h.div`
90
91
  }
91
92
  }
92
93
  }
93
- `, _ = g(
94
+ `, p = f(
94
95
  ({
95
96
  title: r,
96
97
  description: o,
@@ -100,24 +101,27 @@ const p = h.div`
100
101
  handleSelectCard: s = () => {
101
102
  },
102
103
  handleButtonAction: e = () => {
103
- }
104
- }, f) => /* @__PURE__ */ d(
105
- p,
104
+ },
105
+ selectAction: c
106
+ }, _) => /* @__PURE__ */ d(
107
+ x,
106
108
  {
109
+ ref: _,
107
110
  backgroundImage: a,
108
111
  backgroundColor: l,
109
112
  onClick: s,
113
+ href: `/${c}`,
110
114
  children: [
111
115
  /* @__PURE__ */ d("div", { className: "section__text", children: [
112
116
  r && /* @__PURE__ */ n("div", { className: "section__title", children: r }),
113
117
  o && /* @__PURE__ */ n("div", { className: "section__description", children: o })
114
118
  ] }),
115
119
  /* @__PURE__ */ n(
116
- u,
120
+ m,
117
121
  {
118
122
  text: i,
119
- onClick: (c) => {
120
- c == null || c.stopPropagation(), e();
123
+ onClick: (t) => {
124
+ t == null || t.preventDefault(), t == null || t.stopPropagation(), e();
121
125
  },
122
126
  borderRadius: "regular",
123
127
  color: "gray",
@@ -127,17 +131,7 @@ const p = h.div`
127
131
  ]
128
132
  }
129
133
  )
130
- );
131
- _.propTypes = {
132
- title: t.string,
133
- description: t.string,
134
- buttonText: t.string,
135
- imageUrl: t.string,
136
- backgroundColor: t.string,
137
- handleSelectCard: t.func,
138
- handleButtonAction: t.func
139
- };
140
- const y = h.div`
134
+ ), v = g.div`
141
135
  display: flex;
142
136
  flex-direction: column;
143
137
  align-items: flex-start;
@@ -176,7 +170,7 @@ const y = h.div`
176
170
  }
177
171
  }
178
172
 
179
- @media (max-width: ${m + "px"}) {
173
+ @media (max-width: ${h + "px"}) {
180
174
  & .section__title {
181
175
  font-size: 1.375rem;
182
176
  line-height: 1.75rem;
@@ -186,7 +180,7 @@ const y = h.div`
186
180
  flex-direction: column;
187
181
  }
188
182
  }
189
- `, N = g(
183
+ `, $ = f(
190
184
  ({
191
185
  title: r,
192
186
  items: o,
@@ -195,15 +189,15 @@ const y = h.div`
195
189
  },
196
190
  onButtonAction: l = () => {
197
191
  }
198
- }, s) => /* @__PURE__ */ d(y, { ref: s, children: [
192
+ }, s) => /* @__PURE__ */ d(v, { ref: s, children: [
199
193
  /* @__PURE__ */ n("div", { className: "section__title", children: r }),
200
194
  /* @__PURE__ */ n(
201
- x,
195
+ u,
202
196
  {
203
197
  isLoading: i,
204
198
  keyPrefix: "overlay-general-cards-skeleton",
205
- children: /* @__PURE__ */ n("div", { className: "section__items", children: o == null ? void 0 : o.map((e, f) => /* @__PURE__ */ n(
206
- _,
199
+ children: /* @__PURE__ */ n("div", { className: "section__items", children: o == null ? void 0 : o.map((e, c) => /* @__PURE__ */ n(
200
+ p,
207
201
  {
208
202
  title: e == null ? void 0 : e.title,
209
203
  description: e == null ? void 0 : e.description,
@@ -211,14 +205,15 @@ const y = h.div`
211
205
  buttonText: e == null ? void 0 : e.buttonText,
212
206
  backgroundColor: e == null ? void 0 : e.backgroundColor,
213
207
  handleSelectCard: () => a(e),
214
- handleButtonAction: () => l(e)
208
+ handleButtonAction: () => l(e),
209
+ selectAction: e == null ? void 0 : e.selectAction
215
210
  },
216
- `overlay-general-card__${f + 1}`
211
+ `overlay-general-card__${c + 1}`
217
212
  )) })
218
213
  }
219
214
  )
220
215
  ] })
221
216
  );
222
217
  export {
223
- N as default
218
+ $ as default
224
219
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),W=require("./style-CkcozOY6.cjs"),b=require("./utils-RnrgDDZP.cjs"),C=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),_=g.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),P=require("./useDetectMobile-zkbzoOGV.cjs"),w=require("./style-CkcozOY6.cjs"),u=require("./utils-RnrgDDZP.cjs"),f=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),L=g.styled.div`
2
2
  width: 100%;
3
3
  height: 22.5rem;
4
4
  min-height: 22.5rem;
@@ -31,7 +31,7 @@
31
31
  }
32
32
  }
33
33
  }
34
- `,q=g.styled.div`
34
+ `,W=g.styled.div`
35
35
  display: grid;
36
36
  grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
37
37
  gap: 1.25rem;
@@ -39,11 +39,13 @@
39
39
  @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
40
40
  grid-template-columns: repeat(2, minmax(0, 1fr));
41
41
  }
42
- `,$=g.styled.div`
42
+ `,C=g.styled.a`
43
43
  display: flex;
44
44
  flex-direction: column;
45
45
  gap: 0.5rem;
46
46
  cursor: pointer;
47
+ text-decoration: none;
48
+ color: var(--gray-950);
47
49
 
48
50
  & img {
49
51
  width: 100%;
@@ -55,7 +57,7 @@
55
57
  & .card-title {
56
58
  font-size: 0.875rem;
57
59
  font-weight: 600;
58
- ${b.truncateTextInRows(2)}
60
+ ${u.truncateTextInRows(2)}
59
61
  }
60
62
 
61
63
  @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
@@ -69,11 +71,11 @@
69
71
  object-fit: cover;
70
72
  }
71
73
  }
72
- `,v=o.forwardRef((t,a)=>{const{uuid:d,title:n,image:l,sellerUuid:k,onSelectCard:m=()=>{},imageComponent:h,metadata:s}=t,c=o.useRef(null);return r.jsxs($,{ref:c,className:"product-card",name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:u=>m(u,a),children:[b.isDefined(h)?h:r.jsx(C.ProductImageWrapper,{src:l}),r.jsx("div",{className:"card-title",children:n})]})}),I=g.styled(i.SkeletonColumnWrapper)`
74
+ `,$=a.forwardRef((t,d)=>{const{uuid:s,title:n,image:l,sellerUuid:k,onSelectCard:S=()=>{},imageComponent:h,metadata:o,nameSlug:m}=t,c=a.useRef(null);return e.jsxs(C,{ref:c,className:"product-card",name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,onClick:j=>S(j,d),href:`/product/${u.isDefinedNotEmptyString(m)?`${m}-`:""}${s}`,children:[u.isDefined(h)?h:e.jsx(f.ProductImageWrapper,{src:l}),e.jsx("div",{className:"card-title",children:n})]})}),_=g.styled(i.SkeletonColumnWrapper)`
73
75
  @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
74
76
  & .skeleton__banner {
75
77
  height: 100%;
76
78
  aspect-ratio: 1 / 1;
77
79
  }
78
80
  }
79
- `,y=({keyPrefix:t})=>r.jsxs(I,{children:[r.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),r.jsxs(i.SkeletonRowWrapper,{children:[r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),E=({keyPrefix:t,isLoading:a=!1,fallbackComponent:d=r.jsx(r.Fragment,{}),children:n})=>r.jsx(o.Suspense,{fallbackComponent:d,children:a===!0?r.jsx(y,{keyPrefix:t}):n}),P=o.memo(v),M=o.forwardRef((t,a)=>{const{icon:d,items:n,limit:l=4,imageUrl:k,onSelectCard:m=()=>{},title:h="Season inspiration",isLoading:s=!1,getImage:c=()=>{},componentName:u}=t,R=f.useDetectMobile(),w=o.useMemo(()=>r.jsx(r.Fragment,{children:R===!0?n==null?void 0:n.map((e,S)=>r.jsx(P,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(L,j)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:j}),image:c(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:u,accessor:e==null?void 0:e.accessor}},S)):n==null?void 0:n.slice(0,l).map((e,S)=>r.jsx(P,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(L,j)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:j}),image:c(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:u,accessor:e==null?void 0:e.accessor}},S))}),[n,R,l]);return r.jsxs(W.RegulatTitleSectionWrapper,{ref:a,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(d)&&r.jsx("i",{className:d}),r.jsx("span",{children:h})]})}),r.jsxs(E,{isLoading:s,keyPrefix:"products-with-banner-skeleton",children:[r.jsx(_,{className:"products-banner",children:r.jsx("img",{src:k})}),r.jsx(q,{limit:l,children:w})]})]})});module.exports=M;
81
+ `,q=({keyPrefix:t})=>e.jsxs(_,{children:[e.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),e.jsxs(i.SkeletonRowWrapper,{children:[e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),v=({keyPrefix:t,isLoading:d=!1,fallbackComponent:s=e.jsx(e.Fragment,{}),children:n})=>e.jsx(a.Suspense,{fallbackComponent:s,children:d===!0?e.jsx(q,{keyPrefix:t}):n}),R=a.memo($),y=a.forwardRef((t,d)=>{const{icon:s,items:n,limit:l=4,imageUrl:k,title:S="Season inspiration",isLoading:h=!1,getImage:o=()=>{},componentName:m}=t,c=P.useDetectMobile(),j=a.useMemo(()=>e.jsx(e.Fragment,{children:c===!0?n==null?void 0:n.map((r,b)=>e.jsx(R,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:m,accessor:r==null?void 0:r.accessor}},b)):n==null?void 0:n.slice(0,l).map((r,b)=>e.jsx(R,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:m,accessor:r==null?void 0:r.accessor}},b))}),[n,c,l]);return e.jsxs(w.RegulatTitleSectionWrapper,{ref:d,children:[e.jsx("div",{className:"regular-title",children:e.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(s)&&e.jsx("i",{className:s}),e.jsx("span",{children:S})]})}),e.jsxs(v,{isLoading:h,keyPrefix:"products-with-banner-skeleton",children:[e.jsx(L,{className:"products-banner",children:e.jsx("img",{src:k})}),e.jsx(W,{limit:l,children:j})]})]})});module.exports=y;