@lanaco/lnc-react-ui 4.0.38 → 4.0.40

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 (67) hide show
  1. package/dist/BannerSectionBasic.cjs +9 -9
  2. package/dist/BannerSectionBasic.js +20 -20
  3. package/dist/BannerSectionCarousel.cjs +13 -5
  4. package/dist/BannerSectionCarousel.js +29 -21
  5. package/dist/BannerSectionGrid.cjs +1 -1
  6. package/dist/BannerSectionGrid.js +6 -6
  7. package/dist/BannerSectionSimple.cjs +4 -4
  8. package/dist/BannerSectionSimple.js +41 -38
  9. package/dist/BannerSectionWithList.cjs +4 -4
  10. package/dist/BannerSectionWithList.js +17 -17
  11. package/dist/BannerSectionWithListImage.cjs +5 -5
  12. package/dist/BannerSectionWithListImage.js +41 -38
  13. package/dist/BlogsSectionDetailed.cjs +15 -15
  14. package/dist/BlogsSectionDetailed.js +128 -92
  15. package/dist/BlogsSectionLarge.cjs +10 -10
  16. package/dist/BlogsSectionLarge.js +87 -60
  17. package/dist/BlogsSectionSimple.cjs +8 -8
  18. package/dist/BlogsSectionSimple.js +98 -72
  19. package/dist/BlogsSectionSimpleCentered.cjs +10 -10
  20. package/dist/BlogsSectionSimpleCentered.js +76 -46
  21. package/dist/BlogsSectionWithFilters.cjs +11 -11
  22. package/dist/BlogsSectionWithFilters.js +102 -73
  23. package/dist/BrandHitsSection.cjs +12 -7
  24. package/dist/BrandHitsSection.js +10 -5
  25. package/dist/CalorieCalculatorSection.cjs +7 -8
  26. package/dist/CalorieCalculatorSection.js +31 -32
  27. package/dist/CustomLoanMapSection.cjs +2 -2
  28. package/dist/CustomLoanMapSection.js +13 -13
  29. package/dist/DetailedProductsSection.cjs +4 -4
  30. package/dist/DetailedProductsSection.js +66 -57
  31. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  32. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
  33. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
  34. package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
  35. package/dist/GeneralWithTagsCardsSection.cjs +18 -6
  36. package/dist/GeneralWithTagsCardsSection.js +44 -31
  37. package/dist/GiftCardsSection.cjs +9 -5
  38. package/dist/GiftCardsSection.js +21 -17
  39. package/dist/LocationSearchSection.cjs +1 -1
  40. package/dist/LocationSearchSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +21 -1
  42. package/dist/MasonryGeneralCardsSection.js +20 -0
  43. package/dist/OverlayGeneralCardsSection.cjs +60 -104
  44. package/dist/OverlayGeneralCardsSection.js +138 -147
  45. package/dist/ProductsWithBannerSection.cjs +10 -10
  46. package/dist/ProductsWithBannerSection.js +85 -54
  47. package/dist/SalesCampaignsSection.cjs +17 -17
  48. package/dist/SalesCampaignsSection.js +81 -81
  49. package/dist/ShopCardsSection.cjs +19 -9
  50. package/dist/ShopCardsSection.js +54 -40
  51. package/dist/SimpleCategoriesSection.cjs +9 -9
  52. package/dist/SimpleCategoriesSection.js +89 -58
  53. package/dist/SimpleProductsSection.cjs +3 -3
  54. package/dist/SimpleProductsSection.js +86 -55
  55. package/dist/UrgentSaleProductsSection.cjs +5 -5
  56. package/dist/UrgentSaleProductsSection.js +41 -30
  57. package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
  58. package/dist/{index-CHkb_Sj6.js → index-BT55M3t6.js} +16 -15
  59. package/dist/{index-Dj5wZCVs.cjs → index-DHJmdMN8.cjs} +6 -5
  60. package/dist/index-Dn5tPLgP.cjs +95 -0
  61. package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
  62. package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
  63. package/dist/suspense-product-card-detailed-BETmfKMT.js +189 -0
  64. package/dist/{index-vXmvgZ2Y.cjs → suspense-product-card-detailed-DtzOxHaH.cjs} +4 -4
  65. package/package.json +1 -1
  66. package/dist/index-D6g5ZqyJ.js +0 -159
  67. package/dist/index-Q_i-aqsF.cjs +0 -95
@@ -1,17 +1,17 @@
1
- import { jsx as s, jsxs as h, Fragment as z } from "react/jsx-runtime";
2
- import _, { useState as S, useRef as F, useEffect as j, useImperativeHandle as P, forwardRef as U } from "react";
3
- import { P as l } from "./index-S5Cd7WrG.js";
4
- import X from "./FlexBox.js";
1
+ import { jsx as i, jsxs as d, Fragment as z } from "react/jsx-runtime";
2
+ import _, { useState as w, useRef as F, useEffect as j, useImperativeHandle as P, forwardRef as q } from "react";
3
+ import { P as r } from "./index-S5Cd7WrG.js";
4
+ import U from "./FlexBox.js";
5
5
  import W from "./IconButton.js";
6
- import { useTheme as Z } from "./ThemeProvider.js";
7
- import { n as q } from "./emotion-styled.browser.esm-CjCaF13H.js";
6
+ import { useTheme as X } from "./ThemeProvider.js";
7
+ import { n as Z } from "./emotion-styled.browser.esm-CjCaF13H.js";
8
8
  import { M as C } from "./consts-C1uHV4xc.js";
9
9
  import { u as J } from "./useDetectMobile-BC6EGaBc.js";
10
10
  import { I as H } from "./index-wy-PXQR9.js";
11
11
  import V from "./Button.js";
12
12
  import Q from "./Icon.js";
13
13
  import { l as Y } from "./utils-DtRLzzTZ.js";
14
- const rr = q.div`
14
+ const ee = Z.div`
15
15
  position: relative;
16
16
  padding: ${(e) => e.padding};
17
17
 
@@ -108,35 +108,35 @@ const rr = q.div`
108
108
  `, L = _.forwardRef(
109
109
  ({
110
110
  columnGap: e = "2rem",
111
- rowGap: B = "1.25rem",
112
- scrollBySize: g = 300,
113
- wrapForMobile: k = !1,
111
+ rowGap: v = "1.25rem",
112
+ scrollBySize: f = 300,
113
+ wrapForMobile: y = !1,
114
114
  wrap: n = !1,
115
- children: p,
116
- methodsRef: w,
117
- arrowsVisibleOnHover: x = !0,
118
- rightAlignArrows: N = !1,
119
- padding: v = "0",
120
- showTimesBtn: f,
121
- noArrows: u,
122
- noGradient: y = !1,
123
- hideDisabledArrows: a = !1,
124
- noMargin: d = !1,
125
- ...T
126
- }, $) => {
127
- const A = J(), { theme: r } = Z(), [t, b] = S(!1), [c, m] = S(!1), [M, I] = S(!0), o = F(), R = () => {
128
- var i;
129
- (i = o.current) == null || i.scrollBy(g, 0);
115
+ children: u,
116
+ methodsRef: b,
117
+ arrowsVisibleOnHover: S = !0,
118
+ rightAlignArrows: k = !1,
119
+ padding: m = "0",
120
+ showTimesBtn: h,
121
+ noArrows: a,
122
+ noGradient: x = !1,
123
+ hideDisabledArrows: c = !1,
124
+ noMargin: g = !1,
125
+ ...N
126
+ }, T) => {
127
+ const $ = J(), { theme: l } = X(), [t, A] = w(!1), [p, B] = w(!1), [M, I] = w(!0), o = F(), R = () => {
128
+ var s;
129
+ (s = o.current) == null || s.scrollBy(f, 0);
130
130
  }, K = () => {
131
- var i;
132
- (i = o.current) == null || i.scrollBy(-g, 0);
133
- }, [E, D] = S(!1);
131
+ var s;
132
+ (s = o.current) == null || s.scrollBy(-f, 0);
133
+ }, [E, D] = w(!1);
134
134
  j(() => {
135
- var i, O;
135
+ var s, O;
136
136
  D(
137
- ((i = o == null ? void 0 : o.current) == null ? void 0 : i.scrollWidth) > ((O = o == null ? void 0 : o.current) == null ? void 0 : O.clientWidth)
137
+ ((s = o == null ? void 0 : o.current) == null ? void 0 : s.scrollWidth) > ((O = o == null ? void 0 : o.current) == null ? void 0 : O.clientWidth)
138
138
  );
139
- }, [p]), P(w, () => ({
139
+ }, [u]), P(b, () => ({
140
140
  scrollToEnd() {
141
141
  G();
142
142
  },
@@ -150,42 +150,42 @@ const rr = q.div`
150
150
  const G = () => {
151
151
  o.current.scrollLeft = o.current.scrollWidth;
152
152
  };
153
- return /* @__PURE__ */ s(
154
- rr,
153
+ return /* @__PURE__ */ i(
154
+ ee,
155
155
  {
156
- ref: $,
157
- arrowsVisibleOnHover: x,
156
+ ref: T,
157
+ arrowsVisibleOnHover: S,
158
158
  hasOverflow: E,
159
- noArrows: u,
160
- padding: v,
161
- rightAlignArrows: N,
162
- showTimesBtn: f,
163
- theme: r,
164
- noMargin: d,
165
- ...T,
166
- children: /* @__PURE__ */ h(
167
- X,
159
+ noArrows: a,
160
+ padding: m,
161
+ rightAlignArrows: k,
162
+ showTimesBtn: h,
163
+ theme: l,
164
+ noMargin: g,
165
+ ...N,
166
+ children: /* @__PURE__ */ d(
167
+ U,
168
168
  {
169
169
  ref: o,
170
170
  className: "scrollable-container",
171
171
  columnGap: e,
172
- rowGap: B,
173
- wrap: n || k && A ? "Wrap" : "NoWrap",
172
+ rowGap: v,
173
+ wrap: n || y && $ ? "Wrap" : "NoWrap",
174
174
  children: [
175
- u !== !0 && /* @__PURE__ */ h(z, { children: [
176
- !(a === !0 && c === !0) && /* @__PURE__ */ s(
175
+ a !== !0 && /* @__PURE__ */ d(z, { children: [
176
+ !(c === !0 && p === !0) && /* @__PURE__ */ i(
177
177
  W,
178
178
  {
179
179
  borderRadius: "curved",
180
180
  btnType: "tinted",
181
181
  className: "scroll-arrow-left",
182
182
  color: "neutral",
183
- disabled: c,
183
+ disabled: p,
184
184
  icon: "angle-left",
185
185
  onClick: K
186
186
  }
187
187
  ),
188
- !(a === !0 && t === !0) && /* @__PURE__ */ s(
188
+ !(c === !0 && t === !0) && /* @__PURE__ */ i(
189
189
  W,
190
190
  {
191
191
  borderRadius: "curved",
@@ -198,33 +198,33 @@ const rr = q.div`
198
198
  }
199
199
  )
200
200
  ] }),
201
- /* @__PURE__ */ s(
201
+ /* @__PURE__ */ i(
202
202
  H,
203
203
  {
204
204
  isHorizontal: !0,
205
205
  onIsNotVisible: () => {
206
- c === !0 && m(!1);
206
+ p === !0 && B(!1);
207
207
  },
208
208
  onIsVisible: () => {
209
- c === !1 && m(!0);
209
+ p === !1 && B(!0);
210
210
  }
211
211
  }
212
212
  ),
213
- p,
214
- /* @__PURE__ */ s(
213
+ u,
214
+ /* @__PURE__ */ i(
215
215
  H,
216
216
  {
217
217
  className: "right-scroller",
218
218
  isHorizontal: !0,
219
219
  onIsNotVisible: () => {
220
- t === !0 && b(!1), I(!0);
220
+ t === !0 && A(!1), I(!0);
221
221
  },
222
222
  onIsVisible: () => {
223
- t === !1 && b(!0), I(!1);
223
+ t === !1 && A(!0), I(!1);
224
224
  }
225
225
  }
226
226
  ),
227
- M && E && y !== !0 && /* @__PURE__ */ s("div", { className: "gradient" })
227
+ M && E && x !== !0 && /* @__PURE__ */ i("div", { className: "gradient" })
228
228
  ]
229
229
  }
230
230
  )
@@ -233,94 +233,89 @@ const rr = q.div`
233
233
  }
234
234
  );
235
235
  L.propTypes = {
236
- title: l.string,
237
- rowGap: l.string,
238
- columnGap: l.string,
239
- scrollBySize: l.number,
240
- wrapForMobile: l.bool,
241
- wrap: l.bool,
242
- methodsRef: l.any,
243
- arrowsVisibleOnHover: l.bool,
244
- rightAlignArrows: l.bool,
245
- padding: l.string
236
+ title: r.string,
237
+ rowGap: r.string,
238
+ columnGap: r.string,
239
+ scrollBySize: r.number,
240
+ wrapForMobile: r.bool,
241
+ wrap: r.bool,
242
+ methodsRef: r.any,
243
+ arrowsVisibleOnHover: r.bool,
244
+ rightAlignArrows: r.bool,
245
+ padding: r.string
246
246
  };
247
- const er = U((e, B) => {
247
+ const re = q((e, v) => {
248
248
  const {
249
- allButton: g = !0,
250
- items: k = [],
249
+ allButton: f = !0,
250
+ items: y = [],
251
251
  selectedIds: n = [],
252
- onSelect: p = () => {
252
+ onSelect: u = () => {
253
253
  },
254
- onRemove: w = () => {
254
+ onRemove: b = () => {
255
255
  },
256
- onSelectAll: x = () => {
256
+ onSelectAll: S = () => {
257
257
  },
258
- className: N,
259
- showTimesBtn: v = !1,
260
- labelKey: f = "label",
261
- valueKey: u = "value",
262
- codeKey: y = "code",
263
- uniqueKey: a,
264
- typeKey: d,
265
- productsToolbarName: T = "All",
266
- ...$
267
- } = e, A = (r, t, b, c, m) => {
268
- n != null && n.includes(r) ? w(r, t, b, c, m) : p(r, t, b, c, m);
258
+ className: k,
259
+ showTimesBtn: m = !1,
260
+ labelKey: h = "label",
261
+ valueKey: a = "value",
262
+ codeKey: x = "code",
263
+ uniqueKey: c,
264
+ typeKey: g,
265
+ productsToolbarName: N = "All",
266
+ ...T
267
+ } = e, $ = (l, t) => {
268
+ n != null && n.includes(t) ? b(l, t) : u(l, t);
269
269
  };
270
- return /* @__PURE__ */ h(
270
+ return /* @__PURE__ */ d(
271
271
  L,
272
272
  {
273
+ ref: v,
273
274
  arrowsVisibleOnHover: !1,
274
- className: N,
275
+ className: k,
275
276
  columnGap: "0.75rem",
276
277
  padding: "0.25rem 0",
277
278
  rightAlignArrows: !0,
278
- showTimesBtn: v,
279
- ...$,
279
+ showTimesBtn: m,
280
+ ...T,
280
281
  children: [
281
- g && /* @__PURE__ */ s(
282
+ f && /* @__PURE__ */ i(
282
283
  V,
283
284
  {
284
285
  borderRadius: "curved",
285
286
  btnType: n.length === 0 ? "filled" : "tinted",
286
287
  className: "badge-button",
287
288
  color: "neutral",
288
- onClick: x,
289
- children: T
289
+ onClick: S,
290
+ children: N
290
291
  }
291
292
  ),
292
- k.map((r, t) => /* @__PURE__ */ h(
293
+ y.map((l, t) => /* @__PURE__ */ d(
293
294
  V,
294
295
  {
295
296
  borderRadius: "curved",
296
- btnType: n.includes(r.uuid) ? "filled" : "tinted",
297
+ btnType: n.includes(l.uuid) ? "filled" : "tinted",
297
298
  className: "badge-button",
298
299
  color: "neutral",
299
- onClick: () => A(
300
- r[u],
301
- r[f],
302
- r[y],
303
- a ? r[a] : null,
304
- d ? r[d] : null
305
- ),
300
+ onClick: () => $(l, l[a]),
306
301
  children: [
307
- Y(r == null ? void 0 : r.icon) && /* @__PURE__ */ h(z, { children: [
308
- /* @__PURE__ */ s("i", { className: r == null ? void 0 : r.icon }),
302
+ Y(l == null ? void 0 : l.icon) && /* @__PURE__ */ d(z, { children: [
303
+ /* @__PURE__ */ i("i", { className: l == null ? void 0 : l.icon }),
309
304
  " "
310
305
  ] }),
311
- r[f],
312
- v === !0 && /* @__PURE__ */ s(
306
+ l[h],
307
+ m === !0 && /* @__PURE__ */ i(
313
308
  Q,
314
309
  {
315
310
  className: "times-btn",
316
311
  icon: "times",
317
312
  sizeInUnits: "0.75rem",
318
- onClick: () => w(
319
- r[u],
320
- r[f],
321
- r[y],
322
- a ? r[a] : null,
323
- d ? r[d] : null
313
+ onClick: () => b(
314
+ l[a],
315
+ l[h],
316
+ l[x],
317
+ c ? l[c] : null,
318
+ g ? l[g] : null
324
319
  )
325
320
  }
326
321
  )
@@ -332,19 +327,19 @@ const er = U((e, B) => {
332
327
  }
333
328
  );
334
329
  });
335
- er.propTypes = {
336
- allButton: l.bool,
337
- items: l.array,
338
- selectedIds: l.array,
339
- onSelect: l.func,
340
- onRemove: l.func,
341
- onSelectAll: l.func,
342
- className: l.string,
343
- showTimesBtn: l.bool,
344
- valuKey: l.string,
345
- labelKey: l.string,
346
- codeKey: l.string
330
+ re.propTypes = {
331
+ allButton: r.bool,
332
+ items: r.array,
333
+ selectedIds: r.array,
334
+ onSelect: r.func,
335
+ onRemove: r.func,
336
+ onSelectAll: r.func,
337
+ className: r.string,
338
+ showTimesBtn: r.bool,
339
+ valuKey: r.string,
340
+ labelKey: r.string,
341
+ codeKey: r.string
347
342
  };
348
343
  export {
349
- er as S
344
+ re as S
350
345
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as f } from "react";
3
- import { n as a } from "./emotion-styled.browser.esm-CjCaF13H.js";
3
+ import { n as o } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
4
  import { m as u, l as h, n as b, G as x } from "./utils-DtRLzzTZ.js";
5
- a.div`
5
+ const C = o.div`
6
6
  background-color: var(--gray-200, #dddfe4);
7
7
  border-radius: 0.75rem;
8
8
  min-width: 11.625rem;
@@ -10,8 +10,7 @@ a.div`
10
10
  max-width: 11.625rem;
11
11
  max-height: 11.625rem;
12
12
  ${u("-90deg")}
13
- `;
14
- const v = a.div`
13
+ `, v = o.div`
15
14
  display: flex;
16
15
  flex-direction: column;
17
16
  justify-content: end;
@@ -54,6 +53,7 @@ const v = a.div`
54
53
  aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
55
54
  object-fit: cover; /* making sure the image isn't distorted */
56
55
  border-radius: 0.75rem;
56
+ mix-blend-mode: multiply;
57
57
  }
58
58
 
59
59
  & .fallback-image {
@@ -75,7 +75,7 @@ const v = a.div`
75
75
  border-radius: 62.4375rem;
76
76
  z-index: 1;
77
77
  background-color: var(--white, #fff);
78
- color: var(--gray-950, #14161A);
78
+ color: var(--gray-950, #14161a);
79
79
  }
80
80
  & .title-simple-product-card {
81
81
  z-index: 1;
@@ -86,17 +86,17 @@ const v = a.div`
86
86
  &:hover {
87
87
  & .title-simple-product-card {
88
88
  z-index: 1;
89
- color: var(--primary-500, #F59E0B);
89
+ color: var(--primary-500, #f59e0b);
90
90
  }
91
91
  }
92
- `, S = f((d, y) => {
92
+ `, G = f((d, y) => {
93
93
  const {
94
94
  uuid: w,
95
95
  title: n,
96
96
  price: r,
97
97
  currency: i,
98
- isNegotiable: m,
99
- isFree: l,
98
+ isNegotiable: l,
99
+ isFree: m,
100
100
  image: c,
101
101
  sellerUuid: k,
102
102
  onSelectCard: s = () => {
@@ -106,17 +106,18 @@ const v = a.div`
106
106
  freeText: g = "Free"
107
107
  } = d;
108
108
  return /* @__PURE__ */ e(v, { className: "simple-product-card", onClick: s, children: [
109
- h(t) ? t : /* @__PURE__ */ o("img", { src: c }),
109
+ h(t) ? t : /* @__PURE__ */ a("img", { src: c }),
110
110
  /* @__PURE__ */ e("div", { className: "text-block", children: [
111
- /* @__PURE__ */ o("div", { className: "title-simple-product-card", children: n }),
111
+ /* @__PURE__ */ a("div", { className: "title-simple-product-card", children: n }),
112
112
  /* @__PURE__ */ e("div", { className: "price-chip", children: [
113
113
  r && i && `${b(r)} ${x(i)}`,
114
- m && p,
115
- l && g
114
+ l && p,
115
+ m && g
116
116
  ] })
117
117
  ] })
118
118
  ] });
119
119
  });
120
120
  export {
121
- S
121
+ C as S,
122
+ G as a
122
123
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),a=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./utils-NZLCh-J5.cjs");a.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),u=require("react"),a=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./utils-NZLCh-J5.cjs"),f=a.newStyled.div`
2
2
  background-color: var(--gray-200, #dddfe4);
3
3
  border-radius: 0.75rem;
4
4
  min-width: 11.625rem;
@@ -6,7 +6,7 @@
6
6
  max-width: 11.625rem;
7
7
  max-height: 11.625rem;
8
8
  ${r.linearGradientAnimation("-90deg")}
9
- `;const f=a.newStyled.div`
9
+ `,b=a.newStyled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  justify-content: end;
@@ -49,6 +49,7 @@
49
49
  aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
50
50
  object-fit: cover; /* making sure the image isn't distorted */
51
51
  border-radius: 0.75rem;
52
+ mix-blend-mode: multiply;
52
53
  }
53
54
 
54
55
  & .fallback-image {
@@ -70,7 +71,7 @@
70
71
  border-radius: 62.4375rem;
71
72
  z-index: 1;
72
73
  background-color: var(--white, #fff);
73
- color: var(--gray-950, #14161A);
74
+ color: var(--gray-950, #14161a);
74
75
  }
75
76
  & .title-simple-product-card {
76
77
  z-index: 1;
@@ -81,7 +82,7 @@
81
82
  &:hover {
82
83
  & .title-simple-product-card {
83
84
  z-index: 1;
84
- color: var(--primary-500, #F59E0B);
85
+ color: var(--primary-500, #f59e0b);
85
86
  }
86
87
  }
87
- `,h=p.forwardRef((d,b)=>{const{uuid:x,title:n,price:i,currency:t,isNegotiable:c,isFree:l,image:s,sellerUuid:y,onSelectCard:m=()=>{},imageComponent:o,negotiableText:g="Negotiable",freeText:u="Free"}=d;return e.jsxs(f,{className:"simple-product-card",onClick:m,children:[r.isDefined(o)?o:e.jsx("img",{src:s}),e.jsxs("div",{className:"text-block",children:[e.jsx("div",{className:"title-simple-product-card",children:n}),e.jsxs("div",{className:"price-chip",children:[i&&t&&`${r.formatPrice(i)} ${r.GetCurrencySymbol(t)}`,c&&g,l&&u]})]})]})});exports.SimpleProductCard=h;
88
+ `,h=u.forwardRef((n,x)=>{const{uuid:y,title:d,price:i,currency:t,isNegotiable:l,isFree:c,image:s,sellerUuid:v,onSelectCard:m=()=>{},imageComponent:o,negotiableText:p="Negotiable",freeText:g="Free"}=n;return e.jsxs(b,{className:"simple-product-card",onClick:m,children:[r.isDefined(o)?o:e.jsx("img",{src:s}),e.jsxs("div",{className:"text-block",children:[e.jsx("div",{className:"title-simple-product-card",children:d}),e.jsxs("div",{className:"price-chip",children:[i&&t&&`${r.formatPrice(i)} ${r.GetCurrencySymbol(t)}`,l&&p,c&&g]})]})]})});exports.SimpleProductCard=h;exports.SkeletonWrapper=f;
@@ -0,0 +1,95 @@
1
+ "use strict";const l=require("react/jsx-runtime"),n=require("react"),r=require("./index-BPVoEhTF.cjs"),V=require("./FlexBox.cjs"),R=require("./IconButton.cjs"),_=require("./ThemeProvider.cjs"),z=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),E=require("./consts-CtNoHdBj.cjs"),D=require("./useDetectMobile-D6d5LpdL.cjs"),K=require("./index-Cb_AeN9A.cjs"),O=require("./Button.cjs"),F=require("./Icon.cjs"),G=require("./utils-NZLCh-J5.cjs"),X=z.newStyled.div`
2
+ position: relative;
3
+ padding: ${e=>e.padding};
4
+
5
+ & button {
6
+ white-space: nowrap;
7
+ }
8
+
9
+ & .badge-button {
10
+ ${e=>e.showTimesBtn===!0&&"padding-left: 0.5rem; padding-right: 0.5rem;"}
11
+ }
12
+
13
+ & .gradient {
14
+ position: absolute;
15
+ top: 50%;
16
+ transform: translate(0, -50%);
17
+ z-index: 4;
18
+ transition: ${"0.3s"};
19
+ right: ${e=>e.noArrows!==!0?"6rem":"0"};
20
+ width: 2rem;
21
+ background: #fff;
22
+ height: 100%;
23
+ -webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
24
+ mask-image: linear-gradient(to left, black 10%, transparent 50%);
25
+ }
26
+
27
+ & .scrollable-container {
28
+ max-width: -webkit-fill-available;
29
+ max-width: -moz-available; /* WebKit-based browsers will ignore this. */
30
+ max-width: fill-available;
31
+
32
+ ${e=>e.rightAlignArrows===!0&&e.noArrows!==!0&&"margin-right: 6rem"};
33
+ scroll-behavior: smooth;
34
+ overflow: hidden;
35
+ -webkit-overflow-scrolling: touch;
36
+ ::-webkit-scrollbar {
37
+ -webkit-appearance: none;
38
+ }
39
+ -ms-overflow-style: none;
40
+ /* Internet Explorer 10+ */
41
+ scrollbar-width: none;
42
+ /* Firefox */
43
+
44
+ &::-webkit-scrollbar {
45
+ display: none;
46
+ /* Safari and Chrome */
47
+ }
48
+
49
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
50
+ margin-right: 0;
51
+ }
52
+ }
53
+ & .scroll-arrow-right,
54
+ & .scroll-arrow-left {
55
+ position: absolute;
56
+ top: 50%;
57
+ transform: translate(0, -50%);
58
+ display: flex;
59
+ justify-content: center;
60
+ align-items: center;
61
+ cursor: pointer;
62
+
63
+ visibility: ${e=>e.arrowsVisibleOnHover===!1&&e.hasOverflow?"visible":"hidden"};
64
+ z-index: 4;
65
+ transition: ${"0.3s"};
66
+ }
67
+ & .scroll-arrow-right {
68
+ ${e=>e.rightAlignArrows===!0?"right: 0":"right: 0.7rem"};
69
+ }
70
+ & .scroll-arrow-left {
71
+ ${e=>e.rightAlignArrows===!0?"right: 2.625rem":"left: 0.7rem"};
72
+ }
73
+ & .scrollable-container:hover > .scroll-arrow-left,
74
+ & .scrollable-container:hover > .scroll-arrow-right {
75
+ visibility: ${e=>e.hasOverflow?"visible":"hidden"};
76
+ }
77
+
78
+ @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
79
+ & .scrollable-container {
80
+ overflow: auto;
81
+ }
82
+ & .scroll-arrow-left,
83
+ & .scroll-arrow-right {
84
+ display: none;
85
+ }
86
+
87
+ & .gradient {
88
+ right: 0;
89
+ }
90
+
91
+ & .scrollable-container button:nth-of-type(3) {
92
+ ${e=>e.noMargin!==!0&&"margin-left: 1rem"};
93
+ }
94
+ }
95
+ `,W=n.forwardRef(({columnGap:e="2rem",rowGap:w="1.25rem",scrollBySize:u=300,wrapForMobile:y=!1,wrap:a=!1,children:p,methodsRef:b,arrowsVisibleOnHover:T=!0,rightAlignArrows:v=!1,padding:f="0",showTimesBtn:h,noArrows:c,noGradient:x=!1,hideDisabledArrows:d=!1,noMargin:g=!1,...P},S)=>{const k=D.useDetectMobile(),{theme:o}=_.useTheme(),[t,j]=n.useState(!1),[m,N]=n.useState(!1),[H,I]=n.useState(!0),s=n.useRef(),q=()=>{var i;(i=s.current)==null||i.scrollBy(u,0)},B=()=>{var i;(i=s.current)==null||i.scrollBy(-u,0)},[$,L]=n.useState(!1);n.useEffect(()=>{var i,A;L(((i=s==null?void 0:s.current)==null?void 0:i.scrollWidth)>((A=s==null?void 0:s.current)==null?void 0:A.clientWidth))},[p]),n.useImperativeHandle(b,()=>({scrollToEnd(){M()},scrollLeft(){B()},scrollRight(){q()}}));const M=()=>{s.current.scrollLeft=s.current.scrollWidth};return l.jsx(X,{ref:S,arrowsVisibleOnHover:T,hasOverflow:$,noArrows:c,padding:f,rightAlignArrows:v,showTimesBtn:h,theme:o,noMargin:g,...P,children:l.jsxs(V,{ref:s,className:"scrollable-container",columnGap:e,rowGap:w,wrap:a||y&&k?"Wrap":"NoWrap",children:[c!==!0&&l.jsxs(l.Fragment,{children:[!(d===!0&&m===!0)&&l.jsx(R,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:m,icon:"angle-left",onClick:B}),!(d===!0&&t===!0)&&l.jsx(R,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:t,icon:"angle-right",onClick:q})]}),l.jsx(K.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{m===!0&&N(!1)},onIsVisible:()=>{m===!1&&N(!0)}}),p,l.jsx(K.InfiniteScrollEndElement,{className:"right-scroller",isHorizontal:!0,onIsNotVisible:()=>{t===!0&&j(!1),I(!0)},onIsVisible:()=>{t===!1&&j(!0),I(!1)}}),H&&$&&x!==!0&&l.jsx("div",{className:"gradient"})]})})});W.propTypes={title:r.PropTypes.string,rowGap:r.PropTypes.string,columnGap:r.PropTypes.string,scrollBySize:r.PropTypes.number,wrapForMobile:r.PropTypes.bool,wrap:r.PropTypes.bool,methodsRef:r.PropTypes.any,arrowsVisibleOnHover:r.PropTypes.bool,rightAlignArrows:r.PropTypes.bool,padding:r.PropTypes.string};const C=n.forwardRef((e,w)=>{const{allButton:u=!0,items:y=[],selectedIds:a=[],onSelect:p=()=>{},onRemove:b=()=>{},onSelectAll:T=()=>{},className:v,showTimesBtn:f=!1,labelKey:h="label",valueKey:c="value",codeKey:x="code",uniqueKey:d,typeKey:g,productsToolbarName:P="All",...S}=e,k=(o,t)=>{a!=null&&a.includes(t)?b(o,t):p(o,t)};return l.jsxs(W,{ref:w,arrowsVisibleOnHover:!1,className:v,columnGap:"0.75rem",padding:"0.25rem 0",rightAlignArrows:!0,showTimesBtn:f,...S,children:[u&&l.jsx(O,{borderRadius:"curved",btnType:a.length===0?"filled":"tinted",className:"badge-button",color:"neutral",onClick:T,children:P}),y.map((o,t)=>l.jsxs(O,{borderRadius:"curved",btnType:a.includes(o.uuid)?"filled":"tinted",className:"badge-button",color:"neutral",onClick:()=>k(o,o[c]),children:[G.isDefined(o==null?void 0:o.icon)&&l.jsxs(l.Fragment,{children:[l.jsx("i",{className:o==null?void 0:o.icon})," "]}),o[h],f===!0&&l.jsx(F,{className:"times-btn",icon:"times",sizeInUnits:"0.75rem",onClick:()=>b(o[c],o[h],o[x],d?o[d]:null,g?o[g]:null)})]},t))]})});C.propTypes={allButton:r.PropTypes.bool,items:r.PropTypes.array,selectedIds:r.PropTypes.array,onSelect:r.PropTypes.func,onRemove:r.PropTypes.func,onSelectAll:r.PropTypes.func,className:r.PropTypes.string,showTimesBtn:r.PropTypes.bool,valuKey:r.PropTypes.string,labelKey:r.PropTypes.string,codeKey:r.PropTypes.string};exports.SelectBar=C;
@@ -20,7 +20,7 @@ const s = r.div`
20
20
 
21
21
  & i {
22
22
  font-size: 1.5rem;
23
- color: var(--primary-500, #F59E0B);
23
+ color: var(--primary-500, #f59e0b);
24
24
  }
25
25
  }
26
26
 
@@ -35,7 +35,7 @@ const s = r.div`
35
35
  }
36
36
  }
37
37
  }
38
- `, o = r.div`
38
+ `, d = r.div`
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  gap: 0.75rem;
@@ -56,7 +56,7 @@ const s = r.div`
56
56
 
57
57
  & i {
58
58
  font-size: 1.5rem;
59
- color: var(--primary-500, #F59E0B);
59
+ color: var(--primary-500, #f59e0b);
60
60
  }
61
61
  }
62
62
 
@@ -65,7 +65,7 @@ const s = r.div`
65
65
  font-size: 1.375rem;
66
66
  }
67
67
  }
68
- `, t = (e) => (e == null ? void 0 : e.toLowerCase()) == "success" ? "color: var(--success-700); border: 1px solid var(--success-600); background-color: var(--sucess-60008);" : (e == null ? void 0 : e.toLowerCase()) == "warning" ? "color: var(--warning-600); border: 1px solid var(--warning-500); background-color: var(--warning-50012);" : (e == null ? void 0 : e.toLowerCase()) == "info" ? "color: var(--info-700); border: 1px solid var(--info-600); background-color: var(--sucess-60012);" : (e == null ? void 0 : e.toLowerCase()) == "danger" ? "color: var(--danger-600); border: 1px solid var(--danger-500); background-color: var(--danger-5008);" : (e == null ? void 0 : e.toLowerCase()) == "gray" ? "color: var(--info-700); border: 1px solid var(--info-600); background-color: var(--sucess-60012);" : "color: var(--gray-950, #14161A); border: 1px solid var(--gray-200); background-color: var(--white);", g = r.div`
68
+ `, t = (e) => (e == null ? void 0 : e.toLowerCase()) == "success" ? "color: var(--success-700, #047857); border: 1px solid var(--success-600, #059669); background-color: var(--sucess-60008, #05966914);" : (e == null ? void 0 : e.toLowerCase()) == "warning" ? "color: var(--warning-600, #d97706); border: 1px solid var(--warning-500, #f59e0b); background-color: var(--warning-50012, #f59e0b1f);" : (e == null ? void 0 : e.toLowerCase()) == "info" ? "color: var(--info-700, #6d28d9); border: 1px solid var(--info-600, #7c3aed); background-color: var(--info-60012, #7c3aed1f);" : (e == null ? void 0 : e.toLowerCase()) == "danger" ? "color: var(--danger-600, #e11d48); border: 1px solid var(--danger-500, #f43f5e); background-color: var(--danger-5008, #f43f5e14);" : (e == null ? void 0 : e.toLowerCase()) == "secondary" ? "color: var(--secondary-700, #2667a0); border: 1px solid var(--secondary-600, #3284cb); background-color: var(--secondary-60012, #3284cb1f);" : "color: var(--gray-950, #14161A); border: 1px solid var(--gray-200, #dddfe4); background-color: var(--white, #fff);", o = r.div`
69
69
  font-size: 0.75rem;
70
70
  font-weight: 500;
71
71
  padding: 0 0.5rem;
@@ -77,7 +77,7 @@ const s = r.div`
77
77
  ${(e) => t(e.color)}
78
78
  `;
79
79
  export {
80
- g as B,
80
+ o as B,
81
81
  s as R,
82
- o as T
82
+ d as T
83
83
  };