@lanaco/lnc-react-ui 4.0.157 → 4.0.161

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 (77) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +11 -9
  2. package/dist/BlogCardsSponsoredSection.js +108 -90
  3. package/dist/BlogExploreSection.cjs +5 -5
  4. package/dist/BlogExploreSection.js +88 -84
  5. package/dist/BlogListSection.cjs +5 -5
  6. package/dist/BlogListSection.js +139 -126
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +37 -35
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +43 -41
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +9 -4
  13. package/dist/BlogsSectionDetailed.cjs +11 -11
  14. package/dist/BlogsSectionDetailed.js +122 -108
  15. package/dist/BlogsSectionLarge.cjs +4 -4
  16. package/dist/BlogsSectionLarge.js +43 -40
  17. package/dist/BlogsSectionSimple.cjs +8 -8
  18. package/dist/BlogsSectionSimple.js +100 -86
  19. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  20. package/dist/BlogsSectionSimpleCentered.js +81 -66
  21. package/dist/BlogsSectionWithFilters.cjs +11 -11
  22. package/dist/BlogsSectionWithFilters.js +108 -93
  23. package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
  24. package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
  25. package/dist/DetailedProductsInfinitiveSection.cjs +5 -3
  26. package/dist/DetailedProductsInfinitiveSection.js +31 -27
  27. package/dist/DetailedProductsSection.cjs +3 -3
  28. package/dist/DetailedProductsSection.js +76 -65
  29. package/dist/Dropdown.cjs +1 -1
  30. package/dist/Dropdown.js +2 -2
  31. package/dist/DropdownLookup.cjs +1 -1
  32. package/dist/DropdownLookup.js +1 -1
  33. package/dist/FieldOfInterestsMasonrySection.cjs +20 -12
  34. package/dist/FieldOfInterestsMasonrySection.js +35 -27
  35. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  36. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  37. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -0
  38. package/dist/FieldOfInterestsWithTagsCardsSection.js +5 -3
  39. package/dist/GiftCardsSection.cjs +1 -1
  40. package/dist/GiftCardsSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +1 -3
  42. package/dist/MasonryGeneralCardsSection.js +9 -11
  43. package/dist/MultiSelectDropdown.cjs +1 -1
  44. package/dist/MultiSelectDropdown.js +1 -1
  45. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  46. package/dist/MultiSelectDropdownLookup.js +1 -1
  47. package/dist/ProductsWithBannerSection.cjs +20 -27
  48. package/dist/ProductsWithBannerSection.js +93 -78
  49. package/dist/QuattroCardsSection.cjs +2 -0
  50. package/dist/QuattroCardsSection.js +2 -0
  51. package/dist/SalesCampaignsSection.cjs +29 -27
  52. package/dist/SalesCampaignsSection.js +247 -239
  53. package/dist/ShopCardsSection.cjs +5 -3
  54. package/dist/ShopCardsSection.js +29 -25
  55. package/dist/SimpleCategoriesSection.cjs +1 -1
  56. package/dist/SimpleCategoriesSection.js +1 -1
  57. package/dist/SimpleProductsSection.cjs +3 -3
  58. package/dist/SimpleProductsSection.js +62 -51
  59. package/dist/UrgentSaleProductsSection.cjs +6 -6
  60. package/dist/UrgentSaleProductsSection.js +67 -56
  61. package/dist/index-1Dm1i6WK.js +52 -0
  62. package/dist/index-BGTtoLxz.cjs +1 -0
  63. package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
  64. package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
  68. package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
  69. package/dist/{style-BLuyU97E.js → style-DKAOBWn3.js} +1 -0
  70. package/dist/{style-lSjkOR95.cjs → style-Db3VFbfP.cjs} +1 -0
  71. package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
  72. package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
  73. package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
  74. package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
  75. package/package.json +1 -1
  76. package/dist/index-Cm0f72Po.cjs +0 -1
  77. package/dist/index-DGp7FHms.js +0 -42
@@ -1,13 +1,13 @@
1
1
  import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
- import { memo as P, forwardRef as M, useMemo as B } from "react";
3
- import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as I } from "./consts-BuFChS64.js";
5
- import L from "./IconButton.js";
6
- import T from "./Button.js";
2
+ import { memo as B, forwardRef as D, useMemo as I } from "react";
3
+ import { s as L } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as T } from "./consts-BuFChS64.js";
5
+ import z from "./IconButton.js";
6
+ import E from "./Button.js";
7
7
  import { k as a } from "./utils-BdsZgOUE.js";
8
- import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
9
- import { D as E, S as U } from "./suspense-product-card-detailed-BWoxabjZ.js";
10
- const $ = D.div`
8
+ import { u as U } from "./useDetectMobile-Bkvj0VMa.js";
9
+ import { D as $, S as j } from "./suspense-product-card-detailed-BZtObEfA.js";
10
+ const A = L.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  gap: 1.5rem;
@@ -56,7 +56,9 @@ const $ = D.div`
56
56
  white-space: nowrap;
57
57
  }
58
58
 
59
- @media (max-width: ${I + "px"}) {
59
+ @media (max-width: ${T + "px"}) {
60
+ gap: 1.25rem;
61
+
60
62
  & .section__items {
61
63
  display: flex;
62
64
  gap: 1rem;
@@ -77,10 +79,10 @@ const $ = D.div`
77
79
  }
78
80
  }
79
81
  }
80
- `, j = P(E), H = M((r, p) => {
82
+ `, F = B($), Q = D((r, p) => {
81
83
  const {
82
- title: l,
83
- icon: s,
84
+ title: s,
85
+ icon: l,
84
86
  items: i,
85
87
  limit: c = 4,
86
88
  isLoading: m = !1,
@@ -100,9 +102,10 @@ const $ = D.div`
100
102
  sponsoredText: v,
101
103
  onBookmark: C = () => {
102
104
  },
103
- bookmarkComponent: S
104
- } = r, u = z(), N = B(() => i == null ? void 0 : i.map((e, t) => /* @__PURE__ */ o(
105
- j,
105
+ bookmarkComponent: N,
106
+ componentName: S
107
+ } = r, u = U(), P = I(() => i == null ? void 0 : i.map((e, t) => /* @__PURE__ */ o(
108
+ F,
106
109
  {
107
110
  name: e == null ? void 0 : e.name,
108
111
  price: e == null ? void 0 : e.price,
@@ -113,7 +116,7 @@ const $ = D.div`
113
116
  uuid: e == null ? void 0 : e.uuid,
114
117
  sponsored: e == null ? void 0 : e.sponsored,
115
118
  imageComponent: e == null ? void 0 : e.imageComponent,
116
- onSelectCard: () => g({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug }),
119
+ onSelectCard: (R, M) => g({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug, cardRef: M }),
117
120
  imageUrl: w(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
118
121
  isFree: e == null ? void 0 : e.isFree,
119
122
  isNegotiable: e == null ? void 0 : e.isNegotiable,
@@ -126,21 +129,22 @@ const $ = D.div`
126
129
  trade: e == null ? void 0 : e.trade,
127
130
  sponsoredText: v,
128
131
  onBookmark: C,
129
- bookmarkComponent: S,
132
+ bookmarkComponent: N,
130
133
  bookmarked: e == null ? void 0 : e.bookmarked,
131
- bookmarkLists: e == null ? void 0 : e.bookmarkLists
134
+ bookmarkLists: e == null ? void 0 : e.bookmarkLists,
135
+ metadata: { accessor: e == null ? void 0 : e.accessor, name: S }
132
136
  },
133
137
  t
134
138
  )), [i]);
135
- return /* @__PURE__ */ n($, { ref: p, limit: c, children: [
139
+ return /* @__PURE__ */ n(A, { ref: p, limit: c, children: [
136
140
  /* @__PURE__ */ n("div", { className: "section__heading", children: [
137
- a(l) && /* @__PURE__ */ n("div", { className: "section__title", children: [
138
- a(s) && /* @__PURE__ */ o("i", { className: s }),
141
+ a(s) && /* @__PURE__ */ n("div", { className: "section__title", children: [
142
+ a(l) && /* @__PURE__ */ o("i", { className: l }),
139
143
  " ",
140
- l
144
+ s
141
145
  ] }),
142
146
  u && a(d) && /* @__PURE__ */ o(
143
- T,
147
+ E,
144
148
  {
145
149
  type: "button",
146
150
  btnType: "tinted",
@@ -156,16 +160,16 @@ const $ = D.div`
156
160
  )
157
161
  ] }),
158
162
  /* @__PURE__ */ o("div", { className: "section__items", children: /* @__PURE__ */ o(
159
- U,
163
+ j,
160
164
  {
161
165
  isLoading: m,
162
166
  limit: c,
163
167
  keyPrefix: "explore-landing",
164
- children: N
168
+ children: P
165
169
  }
166
170
  ) }),
167
171
  !u && !m && /* @__PURE__ */ o(
168
- L,
172
+ z,
169
173
  {
170
174
  icon: k,
171
175
  borderRadius: "curved",
@@ -178,5 +182,5 @@ const $ = D.div`
178
182
  ] });
179
183
  });
180
184
  export {
181
- H as default
185
+ Q as default
182
186
  };
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),s=require("react"),U=require("./emotion-styled.browser.esm-BtEseadx.cjs"),L=require("./consts-goSZX3xP.cjs"),M=require("./Button.cjs"),S=require("./utils-Dl9xPH4c.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./style-lSjkOR95.cjs"),f=require("./suspense-product-card-detailed-DYyH_jf5.cjs"),B=require("./index-D0xXo7W6.cjs"),E=U.styled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),l=require("react"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),F=require("./consts-goSZX3xP.cjs"),B=require("./Button.cjs"),f=require("./utils-Dl9xPH4c.cjs"),E=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./style-Db3VFbfP.cjs"),j=require("./suspense-product-card-detailed-D-pjVe22.cjs"),I=require("./index-D0xXo7W6.cjs"),_=T.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -7,7 +7,7 @@
7
7
  white-space: nowrap;
8
8
  }
9
9
 
10
- @media (max-width: ${L.MOBILE_SIZE_PX+"px"}) {
10
+ @media (max-width: ${F.MOBILE_SIZE_PX+"px"}) {
11
11
  display: flex;
12
12
  gap: 1rem;
13
13
  overflow-x: auto;
@@ -26,4 +26,4 @@
26
26
  /* Safari and Chrome */
27
27
  }
28
28
  }
29
- `,h=s.memo(f.DetailedProductCard),R=s.forwardRef((a,q)=>{const{icon:l,title:j,buttonLink:d,items:t,buttonText:w,limit:r=4,onSelectCard:c=()=>{},onButtonAction:P=()=>{},isLoading:N=!1,getImage:u=()=>{},negotiableText:m,freeText:g,options:n,onSelectOption:p=()=>{},productsToolbarName:v="All",sponsoredText:b,onBookmark:k=()=>{},bookmarkComponent:y}=a,C=T.useDetectMobile(),D=s.useMemo(()=>i.jsx(i.Fragment,{children:C===!0?t==null?void 0:t.map((e,o)=>i.jsx(h,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>c({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug}),imageUrl:u(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:b,onBookmark:k,bookmarkComponent:y,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists},o)):t==null?void 0:t.slice(0,r).map((e,o)=>i.jsx(h,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>c({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug}),imageUrl:u(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:b,onBookmark:k,bookmarkComponent:y,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists},o))}),[t,C,r]);return i.jsxs(F.TitleWithOptionsSectionWrapper,{ref:q,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&i.jsx("i",{className:l}),i.jsx("span",{children:j})]}),S.isDefinedNotEmptyString(d)&&i.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var o;(o=e==null?void 0:e.target)==null||o.blur(),P(d)},borderRadius:"curved",className:"button-link",children:w})]}),(n==null?void 0:n.length)>0&&i.jsx(B.SelectBar,{items:n,onRemove:e=>{p(e)},onSelect:e=>{p(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:v}),i.jsx(E,{limit:r,children:i.jsx(f.SuspenseDetailedProductCard,{isLoading:N,limit:r,keyPrefix:"explore-landing",children:D})})]})});module.exports=R;
29
+ `,q=l.memo(j.DetailedProductCard),O=l.forwardRef((a,w)=>{const{icon:c,title:N,buttonLink:d,items:t,buttonText:P,limit:i=4,onSelectCard:u=()=>{},onButtonAction:v=()=>{},isLoading:D=!1,getImage:m=()=>{},negotiableText:g,freeText:p,options:n,onSelectOption:b=()=>{},productsToolbarName:U="All",sponsoredText:k,onBookmark:y=()=>{},bookmarkComponent:C,componentName:S}=a,h=E.useDetectMobile(),L=l.useMemo(()=>o.jsx(o.Fragment,{children:h===!0?t==null?void 0:t.map((e,r)=>o.jsx(q,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(M,s)=>u({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:g,freeText:p,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:k,onBookmark:y,bookmarkComponent:C,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:S}},r)):t==null?void 0:t.slice(0,i).map((e,r)=>o.jsx(q,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(M,s)=>u({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:g,freeText:p,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:k,onBookmark:y,bookmarkComponent:C,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:S}},r))}),[t,h,i]);return o.jsxs(R.TitleWithOptionsSectionWrapper,{ref:w,children:[o.jsxs("div",{className:"regular-title",children:[o.jsxs("div",{className:"regular-title-text",children:[f.isDefinedNotEmptyString(c)&&o.jsx("i",{className:c}),o.jsx("span",{children:N})]}),f.isDefinedNotEmptyString(d)&&o.jsx(B,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var r;(r=e==null?void 0:e.target)==null||r.blur(),v(d)},borderRadius:"curved",className:"button-link",children:P})]}),(n==null?void 0:n.length)>0&&o.jsx(I.SelectBar,{items:n,onRemove:e=>{b(e)},onSelect:e=>{b(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:U}),o.jsx(_,{limit:i,children:o.jsx(j.SuspenseDetailedProductCard,{isLoading:D,limit:i,keyPrefix:"explore-landing",children:L})})]})});module.exports=O;
@@ -1,14 +1,14 @@
1
- import { jsx as o, Fragment as L, jsxs as l } from "react/jsx-runtime";
2
- import { memo as M, forwardRef as D, useMemo as F } from "react";
3
- import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as q } from "./consts-BuFChS64.js";
5
- import E from "./Button.js";
6
- import { k as S } from "./utils-BdsZgOUE.js";
7
- import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
8
- import { T as O } from "./style-BLuyU97E.js";
9
- import { D as R, S as W } from "./suspense-product-card-detailed-BWoxabjZ.js";
10
- import { S as $ } from "./index-Dweo-G3H.js";
11
- const j = B.div`
1
+ import { jsx as o, Fragment as F, jsxs as s } from "react/jsx-runtime";
2
+ import { memo as B, forwardRef as q, useMemo as E } from "react";
3
+ import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as O } from "./consts-BuFChS64.js";
5
+ import R from "./Button.js";
6
+ import { k as h } from "./utils-BdsZgOUE.js";
7
+ import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
8
+ import { T as $ } from "./style-DKAOBWn3.js";
9
+ import { D as j, S as z } from "./suspense-product-card-detailed-BZtObEfA.js";
10
+ import { S as A } from "./index-Dweo-G3H.js";
11
+ const K = I.div`
12
12
  display: grid;
13
13
  grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
@@ -17,7 +17,7 @@ const j = B.div`
17
17
  white-space: nowrap;
18
18
  }
19
19
 
20
- @media (max-width: ${q + "px"}) {
20
+ @media (max-width: ${O + "px"}) {
21
21
  display: flex;
22
22
  gap: 1rem;
23
23
  overflow-x: auto;
@@ -36,33 +36,34 @@ const j = B.div`
36
36
  /* Safari and Chrome */
37
37
  }
38
38
  }
39
- `, C = M(R), V = D((n, h) => {
39
+ `, w = B(j), ee = q((n, N) => {
40
40
  const {
41
- icon: s,
42
- title: w,
41
+ icon: m,
42
+ title: P,
43
43
  buttonLink: d,
44
44
  items: r,
45
- buttonText: P,
45
+ buttonText: v,
46
46
  limit: t = 4,
47
- onSelectCard: m = () => {
47
+ onSelectCard: c = () => {
48
48
  },
49
- onButtonAction: N = () => {
49
+ onButtonAction: T = () => {
50
50
  },
51
- isLoading: v = !1,
52
- getImage: c = () => {
51
+ isLoading: U = !1,
52
+ getImage: u = () => {
53
53
  },
54
- negotiableText: u,
55
- freeText: p,
54
+ negotiableText: p,
55
+ freeText: g,
56
56
  options: a,
57
- onSelectOption: g = () => {
57
+ onSelectOption: b = () => {
58
58
  },
59
- productsToolbarName: T = "All",
60
- sponsoredText: b,
61
- onBookmark: k = () => {
59
+ productsToolbarName: L = "All",
60
+ sponsoredText: k,
61
+ onBookmark: f = () => {
62
62
  },
63
- bookmarkComponent: f
64
- } = n, y = I(), U = F(() => /* @__PURE__ */ o(L, { children: y === !0 ? r == null ? void 0 : r.map((e, i) => /* @__PURE__ */ o(
65
- C,
63
+ bookmarkComponent: y,
64
+ componentName: S
65
+ } = n, C = W(), M = E(() => /* @__PURE__ */ o(F, { children: C === !0 ? r == null ? void 0 : r.map((e, i) => /* @__PURE__ */ o(
66
+ w,
66
67
  {
67
68
  name: e == null ? void 0 : e.name,
68
69
  price: e == null ? void 0 : e.price,
@@ -73,26 +74,31 @@ const j = B.div`
73
74
  uuid: e == null ? void 0 : e.uuid,
74
75
  sponsored: e == null ? void 0 : e.sponsored,
75
76
  imageComponent: e == null ? void 0 : e.imageComponent,
76
- onSelectCard: () => m({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug }),
77
- imageUrl: c(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
77
+ onSelectCard: (D, l) => c({
78
+ uuid: e == null ? void 0 : e.uuid,
79
+ nameSlug: e == null ? void 0 : e.nameSlug,
80
+ cardRef: l
81
+ }),
82
+ imageUrl: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
78
83
  isFree: e == null ? void 0 : e.isFree,
79
84
  isNegotiable: e == null ? void 0 : e.isNegotiable,
80
- negotiableText: u,
81
- freeText: p,
85
+ negotiableText: p,
86
+ freeText: g,
82
87
  tags: e == null ? void 0 : e.tags,
83
88
  categoryCode: e == null ? void 0 : e.categoryCode,
84
89
  condition: e == null ? void 0 : e.condition,
85
90
  quantity: e == null ? void 0 : e.quantity,
86
91
  trade: e == null ? void 0 : e.trade,
87
- sponsoredText: b,
88
- onBookmark: k,
89
- bookmarkComponent: f,
92
+ sponsoredText: k,
93
+ onBookmark: f,
94
+ bookmarkComponent: y,
90
95
  bookmarked: e == null ? void 0 : e.bookmarked,
91
- bookmarkLists: e == null ? void 0 : e.bookmarkLists
96
+ bookmarkLists: e == null ? void 0 : e.bookmarkLists,
97
+ metadata: { accessor: e == null ? void 0 : e.accessor, name: S }
92
98
  },
93
99
  i
94
100
  )) : r == null ? void 0 : r.slice(0, t).map((e, i) => /* @__PURE__ */ o(
95
- C,
101
+ w,
96
102
  {
97
103
  name: e == null ? void 0 : e.name,
98
104
  price: e == null ? void 0 : e.price,
@@ -104,74 +110,79 @@ const j = B.div`
104
110
  location: e == null ? void 0 : e.location,
105
111
  sponsored: e == null ? void 0 : e.sponsored,
106
112
  imageComponent: e == null ? void 0 : e.imageComponent,
107
- onSelectCard: () => m({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug }),
108
- imageUrl: c(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
113
+ onSelectCard: (D, l) => c({
114
+ uuid: e == null ? void 0 : e.uuid,
115
+ nameSlug: e == null ? void 0 : e.nameSlug,
116
+ cardRef: l
117
+ }),
118
+ imageUrl: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
109
119
  isFree: e == null ? void 0 : e.isFree,
110
120
  isNegotiable: e == null ? void 0 : e.isNegotiable,
111
- negotiableText: u,
112
- freeText: p,
121
+ negotiableText: p,
122
+ freeText: g,
113
123
  tags: e == null ? void 0 : e.tags,
114
124
  categoryCode: e == null ? void 0 : e.categoryCode,
115
125
  condition: e == null ? void 0 : e.condition,
116
126
  quantity: e == null ? void 0 : e.quantity,
117
127
  trade: e == null ? void 0 : e.trade,
118
- sponsoredText: b,
119
- onBookmark: k,
120
- bookmarkComponent: f,
128
+ sponsoredText: k,
129
+ onBookmark: f,
130
+ bookmarkComponent: y,
121
131
  bookmarked: e == null ? void 0 : e.bookmarked,
122
- bookmarkLists: e == null ? void 0 : e.bookmarkLists
132
+ bookmarkLists: e == null ? void 0 : e.bookmarkLists,
133
+ metadata: { accessor: e == null ? void 0 : e.accessor, name: S }
123
134
  },
124
135
  i
125
- )) }), [r, y, t]);
126
- return /* @__PURE__ */ l(O, { ref: h, children: [
127
- /* @__PURE__ */ l("div", { className: "regular-title", children: [
128
- /* @__PURE__ */ l("div", { className: "regular-title-text", children: [
129
- S(s) && /* @__PURE__ */ o("i", { className: s }),
130
- /* @__PURE__ */ o("span", { children: w })
136
+ )) }), [r, C, t]);
137
+ return /* @__PURE__ */ s($, { ref: N, children: [
138
+ /* @__PURE__ */ s("div", { className: "regular-title", children: [
139
+ /* @__PURE__ */ s("div", { className: "regular-title-text", children: [
140
+ h(m) && /* @__PURE__ */ o("i", { className: m }),
141
+ /* @__PURE__ */ o("span", { children: P })
131
142
  ] }),
132
- S(d) && /* @__PURE__ */ o(
133
- E,
143
+ h(d) && /* @__PURE__ */ o(
144
+ R,
134
145
  {
135
146
  type: "button",
136
147
  btnType: "tinted",
137
148
  color: "neutral",
138
149
  onClick: (e) => {
139
150
  var i;
140
- (i = e == null ? void 0 : e.target) == null || i.blur(), N(d);
151
+ (i = e == null ? void 0 : e.target) == null || i.blur(), T(d);
141
152
  },
142
153
  borderRadius: "curved",
143
154
  className: "button-link",
144
- children: P
155
+ children: v
145
156
  }
146
157
  )
147
158
  ] }),
148
159
  (a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ o(
149
- $,
160
+ A,
150
161
  {
151
162
  items: a,
152
163
  onRemove: (e) => {
153
- g(e);
164
+ b(e);
154
165
  },
155
166
  onSelect: (e) => {
156
- g(e);
167
+ b(e);
157
168
  },
158
169
  labelKey: "name",
159
170
  valueKey: "code",
160
171
  noMargin: !0,
161
- productsToolbarName: T
172
+ productsToolbarName: L
162
173
  }
163
174
  ),
164
- /* @__PURE__ */ o(j, { limit: t, children: /* @__PURE__ */ o(
165
- W,
175
+ /* @__PURE__ */ o(K, { limit: t, children: /* @__PURE__ */ o(
176
+ z,
166
177
  {
167
- isLoading: v,
178
+ isLoading: U,
168
179
  limit: t,
169
180
  keyPrefix: "explore-landing",
170
- children: U
181
+ children: M
171
182
  }
172
183
  ) })
173
184
  ] });
174
185
  });
175
186
  export {
176
- V as default
187
+ ee as default
177
188
  };
package/dist/Dropdown.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),t=require("./CustomStyles-Ajyqx0cb.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const O=require("./index-Cp66dWMi.cjs");function S(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(p,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return p.default=o,Object.freeze(p)}const M=S(s);var h=s.forwardRef(function(o,p){var r=t.useStateManager(o);return M.createElement(t.Select,l._extends({ref:p},r))}),j=h;const a=s.forwardRef((o,p)=>{const{styles:r,debounceTime:n=0,name:C,isSearchable:u=!0,isClearable:c=!0,size:y="small",color:i="primary",className:T="",style:P={},...b}=o,m=l.useTheme();return s.useCallback(O.debounce((f,d)=>{onInputChange==null||onInputChange(f,d)},n)),g.jsx(j,{ref:p,styles:r||t.customStyles,size:y,color:i,theme:m,isSearchable:u,isClearable:c,className:T,style:P,...b})});a.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.any,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};exports.components=t.components;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),t=require("./CustomStyles-BwHfr4iM.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const O=require("./index-Cp66dWMi.cjs");function S(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(p,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return p.default=o,Object.freeze(p)}const M=S(s);var h=s.forwardRef(function(o,p){var r=t.useStateManager(o);return M.createElement(t.Select,l._extends({ref:p},r))}),j=h;const a=s.forwardRef((o,p)=>{const{styles:r,debounceTime:n=0,name:C,isSearchable:u=!0,isClearable:c=!0,size:y="small",color:i="primary",className:T="",style:P={},...b}=o,m=l.useTheme();return s.useCallback(O.debounce((f,d)=>{onInputChange==null||onInputChange(f,d)},n)),g.jsx(j,{ref:p,styles:r||t.customStyles,size:y,color:i,theme:m,isSearchable:u,isClearable:c,className:T,style:P,...b})});a.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.any,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};exports.components=t.components;exports.default=a;
package/dist/Dropdown.js CHANGED
@@ -2,8 +2,8 @@ import { jsx as g } from "react/jsx-runtime";
2
2
  import { P as e } from "./index-CblbdqjE.js";
3
3
  import * as O from "react";
4
4
  import { forwardRef as t, useCallback as y } from "react";
5
- import { u as S, S as M, a as h } from "./CustomStyles-DVcu00ul.js";
6
- import { c as H } from "./CustomStyles-DVcu00ul.js";
5
+ import { u as S, S as M, a as h } from "./CustomStyles-iconSXFL.js";
6
+ import { c as H } from "./CustomStyles-iconSXFL.js";
7
7
  import { _ as C, u as x } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  import "./index-B1vKwsDE.js";
9
9
  import { d as I } from "./index-Dt62UGku.js";
@@ -1 +1 @@
1
- "use strict";const le=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),t=require("react"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),s=require("./CustomStyles-Ajyqx0cb.cjs"),ce=require("./defineProperty-CqVRDJI8.cjs");require("./index-41nUb2kP.cjs");const fe=require("./index-Cp66dWMi.cjs");function de(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(p,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return p.default=o,Object.freeze(p)}const ye=de(t);var Te=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Pe(o){var p=o.defaultOptions,n=p===void 0?!1:p,a=o.cacheOptions,i=a===void 0?!1:a,y=o.loadOptions;o.options;var l=o.isLoading,h=l===void 0?!1:l,S=o.onInputChange,m=o.filterOption,C=m===void 0?null:m,g=s._objectWithoutProperties(o,Te),_=g.inputValue,u=t.useRef(void 0),c=t.useRef(!1),T=t.useState(Array.isArray(n)?n:void 0),f=s._slicedToArray(T,2),G=f[0],x=f[1],W=t.useState(typeof _<"u"?_:""),q=s._slicedToArray(W,2),D=q[0],I=q[1],J=t.useState(n===!0),R=s._slicedToArray(J,2),K=R[0],P=R[1],Q=t.useState(void 0),w=s._slicedToArray(Q,2),A=w[0],L=w[1],U=t.useState([]),E=s._slicedToArray(U,2),X=E[0],j=E[1],Y=t.useState(!1),$=s._slicedToArray(Y,2),Z=$[0],v=$[1],ee=t.useState({}),k=s._slicedToArray(ee,2),O=k[0],F=k[1],te=t.useState(void 0),z=s._slicedToArray(te,2),oe=z[0],ne=z[1],se=t.useState(void 0),N=s._slicedToArray(se,2),re=N[0],pe=N[1];i!==re&&(F({}),pe(i)),n!==oe&&(x(Array.isArray(n)?n:void 0),ne(n)),t.useEffect(function(){return c.current=!0,function(){c.current=!1}},[]);var M=t.useCallback(function(b,d){if(!y)return d();var r=y(b,d);r&&typeof r.then=="function"&&r.then(d,function(){return d()})},[y]);t.useEffect(function(){n===!0&&M(D,function(b){c.current&&(x(b||[]),P(!!u.current))})},[]);var ae=t.useCallback(function(b,d){var r=s.handleInputChange(b,d,S);if(!r){u.current=void 0,I(""),L(""),j([]),P(!1),v(!1);return}if(i&&O[r])I(r),L(r),j(O[r]),P(!1),v(!1);else{var ie=u.current={};I(r),P(!0),v(!A),M(r,function(V){c&&ie===u.current&&(u.current=void 0,P(!1),L(r),j(V||[]),v(!1),F(V?s._objectSpread2(s._objectSpread2({},O),{},ce._defineProperty({},r,V)):O))})}},[i,M,A,O,S]),ue=Z?[]:D&&A?X:G||[];return s._objectSpread2(s._objectSpread2({},g),{},{options:ue,isLoading:K||h,onInputChange:ae,filterOption:C})}var Oe=t.forwardRef(function(o,p){var n=Pe(o),a=s.useStateManager(n);return ye.createElement(s.Select,B._extends({ref:p},a))}),be=Oe;const H=t.forwardRef((o,p)=>{const{styles:n,debounceTime:a=0,isSearchable:i=!0,isClearable:y=!0,onInputChange:l,size:h="small",color:S="primary",className:m="",style:C={},...g}=o,_=B.useTheme(),u=t.useCallback(fe.debounce((T,f)=>{l==null||l(T,f)},a)),c=(T,f)=>{u(T,f)};return le.jsx(be,{ref:p,styles:n||s.customStyles,size:h,color:S,theme:_,isSearchable:i,isClearable:y,onInputChange:c,className:m,style:C,...g})});H.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=H;
1
+ "use strict";const le=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),t=require("react"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),s=require("./CustomStyles-BwHfr4iM.cjs"),ce=require("./defineProperty-CqVRDJI8.cjs");require("./index-41nUb2kP.cjs");const fe=require("./index-Cp66dWMi.cjs");function de(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(p,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return p.default=o,Object.freeze(p)}const ye=de(t);var Te=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Pe(o){var p=o.defaultOptions,n=p===void 0?!1:p,a=o.cacheOptions,i=a===void 0?!1:a,y=o.loadOptions;o.options;var l=o.isLoading,h=l===void 0?!1:l,S=o.onInputChange,m=o.filterOption,C=m===void 0?null:m,g=s._objectWithoutProperties(o,Te),_=g.inputValue,u=t.useRef(void 0),c=t.useRef(!1),T=t.useState(Array.isArray(n)?n:void 0),f=s._slicedToArray(T,2),G=f[0],x=f[1],W=t.useState(typeof _<"u"?_:""),q=s._slicedToArray(W,2),D=q[0],I=q[1],J=t.useState(n===!0),R=s._slicedToArray(J,2),K=R[0],P=R[1],Q=t.useState(void 0),w=s._slicedToArray(Q,2),A=w[0],L=w[1],U=t.useState([]),E=s._slicedToArray(U,2),X=E[0],j=E[1],Y=t.useState(!1),$=s._slicedToArray(Y,2),Z=$[0],v=$[1],ee=t.useState({}),k=s._slicedToArray(ee,2),O=k[0],F=k[1],te=t.useState(void 0),z=s._slicedToArray(te,2),oe=z[0],ne=z[1],se=t.useState(void 0),N=s._slicedToArray(se,2),re=N[0],pe=N[1];i!==re&&(F({}),pe(i)),n!==oe&&(x(Array.isArray(n)?n:void 0),ne(n)),t.useEffect(function(){return c.current=!0,function(){c.current=!1}},[]);var M=t.useCallback(function(b,d){if(!y)return d();var r=y(b,d);r&&typeof r.then=="function"&&r.then(d,function(){return d()})},[y]);t.useEffect(function(){n===!0&&M(D,function(b){c.current&&(x(b||[]),P(!!u.current))})},[]);var ae=t.useCallback(function(b,d){var r=s.handleInputChange(b,d,S);if(!r){u.current=void 0,I(""),L(""),j([]),P(!1),v(!1);return}if(i&&O[r])I(r),L(r),j(O[r]),P(!1),v(!1);else{var ie=u.current={};I(r),P(!0),v(!A),M(r,function(V){c&&ie===u.current&&(u.current=void 0,P(!1),L(r),j(V||[]),v(!1),F(V?s._objectSpread2(s._objectSpread2({},O),{},ce._defineProperty({},r,V)):O))})}},[i,M,A,O,S]),ue=Z?[]:D&&A?X:G||[];return s._objectSpread2(s._objectSpread2({},g),{},{options:ue,isLoading:K||h,onInputChange:ae,filterOption:C})}var Oe=t.forwardRef(function(o,p){var n=Pe(o),a=s.useStateManager(n);return ye.createElement(s.Select,B._extends({ref:p},a))}),be=Oe;const H=t.forwardRef((o,p)=>{const{styles:n,debounceTime:a=0,isSearchable:i=!0,isClearable:y=!0,onInputChange:l,size:h="small",color:S="primary",className:m="",style:C={},...g}=o,_=B.useTheme(),u=t.useCallback(fe.debounce((T,f)=>{l==null||l(T,f)},a)),c=(T,f)=>{u(T,f)};return le.jsx(be,{ref:p,styles:n||s.customStyles,size:h,color:S,theme:_,isSearchable:i,isClearable:y,onInputChange:c,className:m,style:C,...g})});H.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=H;
@@ -3,7 +3,7 @@ import { P as e } from "./index-CblbdqjE.js";
3
3
  import * as Oe from "react";
4
4
  import { useRef as G, useState as a, useEffect as W, useCallback as j, forwardRef as J } from "react";
5
5
  import { _ as me, u as be } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
- import { _ as Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-DVcu00ul.js";
6
+ import { _ as Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-iconSXFL.js";
7
7
  import { _ as _e } from "./defineProperty-DF3p0mVo.js";
8
8
  import "./index-B1vKwsDE.js";
9
9
  import { d as Ie } from "./index-Dt62UGku.js";
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./utils-Dl9xPH4c.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),q=require("./Icon.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),R=_.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),s=require("./utils-Dl9xPH4c.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),R=require("./Icon.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),z=_.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -37,7 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 500;
39
39
  line-height: 1.5rem;
40
- ${l.truncateTextInRows(2)}
40
+ ${s.truncateTextInRows(2)}
41
41
  }
42
42
 
43
43
  & .wrapper__description {
@@ -47,11 +47,11 @@
47
47
  font-weight: 400;
48
48
  line-height: 1rem;
49
49
  letter-spacing: 0.025rem;
50
- ${l.truncateTextInRows(2)}
50
+ ${s.truncateTextInRows(2)}
51
51
  }
52
52
  }
53
53
 
54
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
54
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
55
55
  & .wrapper__content {
56
56
  & .wrapper__title {
57
57
  font-size: 0.875rem;
@@ -67,13 +67,15 @@
67
67
  width: 100%;
68
68
  height: 11.625rem;
69
69
  border-radius: 0.75rem;
70
- background: ${l.linearGradientAnimation("-90deg")};
70
+ background: ${s.linearGradientAnimation("-90deg")};
71
71
  `,C=_.styled.div`
72
72
  display: flex;
73
73
  flex-direction: column;
74
74
  align-items: center;
75
75
  gap: 0.75rem;
76
76
  height: 100%;
77
+ max-width: 8rem;
78
+ min-width: 8rem;
77
79
 
78
80
  &:hover {
79
81
  cursor: pointer;
@@ -106,6 +108,8 @@
106
108
  font-style: normal;
107
109
  font-weight: 400;
108
110
  line-height: 1.5rem;
111
+ max-width: 8rem;
112
+ ${s.truncateTextInRows(2)}
109
113
  }
110
114
 
111
115
  &.active {
@@ -115,7 +119,9 @@
115
119
  }
116
120
  }
117
121
 
118
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
122
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
123
+ max-width: unset;
124
+ min-width: unset;
119
125
  flex-direction: row;
120
126
  align-items: center;
121
127
  gap: 0.25rem;
@@ -150,19 +156,20 @@
150
156
  font-size: 0.875rem;
151
157
  line-height: 1.25rem;
152
158
  white-space: nowrap;
159
+ max-width: unset;
153
160
  }
154
161
  }
155
162
  `,L=_.styled.div`
156
163
  width: 7.5rem;
157
164
  width: 7.5rem;
158
165
  border-radius: 999px;
159
- background: ${l.linearGradientAnimation("-90deg")};
166
+ background: ${s.linearGradientAnimation("-90deg")};
160
167
 
161
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
168
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
162
169
  width: 7.5rem;
163
170
  height: 2.5rem;
164
171
  }
165
- `,O=s.forwardRef(({},t)=>r.jsx(L,{})),F=s.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:n=()=>{}},d)=>r.jsxs(C,{ref:d,className:o?"active":"",onClick:n,children:[r.jsx(q,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),A=s.forwardRef(({image:t,imageComponent:o,title:i,description:n,className:d,onSelectCard:x=()=>{}},u)=>{const{theme:y}=z.useTheme();return r.jsxs(R,{ref:u,theme:y,className:d,onClick:x,children:[l.isDefined(o)?o:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),T=s.forwardRef(({},t)=>r.jsxs(S,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),W=_.styled.div`
172
+ `,O=l.forwardRef(({},t)=>r.jsx(L,{})),F=l.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:n=()=>{}},d)=>r.jsxs(C,{ref:d,className:o?"active":"",onClick:n,children:[r.jsx(R,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),A=l.forwardRef(({image:t,imageComponent:o,title:i,description:n,className:d,onSelectCard:g=()=>{}},u)=>{const{theme:y}=q.useTheme();return r.jsxs(z,{ref:u,theme:y,className:d,onClick:g,children:[s.isDefined(o)?o:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),T=l.forwardRef(({},t)=>r.jsxs(S,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),W=_.styled.div`
166
173
  display: flex;
167
174
  flex-direction: column;
168
175
  align-items: center;
@@ -201,7 +208,6 @@
201
208
  & .wrapper__tags {
202
209
  display: flex;
203
210
  justify-content: center;
204
- align-items: center;
205
211
  gap: 0.75rem;
206
212
  }
207
213
 
@@ -218,7 +224,9 @@
218
224
  }
219
225
  }
220
226
 
221
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
227
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
228
+ gap: 1rem;
229
+
222
230
  & .wrapper__tags {
223
231
  overflow-x: scroll;
224
232
  justify-content: flex-start;
@@ -243,4 +251,4 @@
243
251
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
244
252
  }
245
253
  }
246
- `,B=s.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:d=5,limitTagsForMobile:x=5,limit:u=3,limitForMobile:y=2,selectedTag:E,onSelectTag:v=()=>{},onSelectCard:b=()=>{},className:p},I)=>{var k,$;return s.useLayoutEffect(()=>{if(!l.isDefinedNotEmptyString(p))return;const e=()=>{const c=document.querySelector(`.${p} .wrapper__cards`),m=c.querySelectorAll(".wrapper__card");m.forEach(w=>{const N=w.getBoundingClientRect().height,M=Math.ceil((N+10)/20);w.style.gridRowEnd=`span ${M}`});const j=m==null?void 0:m[m.length-1];if(j){const w=j.offsetTop+j.offsetHeight;c.style.height=`${w}px`}},f=document.querySelector(`.${p} .wrapper__cards`).querySelectorAll(".wrapper__image");let h=0;return f.length===0?e():(f.forEach(c=>{c.complete?h++:c.addEventListener("load",()=>{h++,h===f.length&&e()})}),h===f.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[p,n]),r.jsxs(W,{ref:I,limitTags:d,limitTagsForMobile:x,limitCards:u,limitCardsForMobile:y,className:p,numberOfTags:i==null?void 0:i.length,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__tags__external",children:r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(F,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===E,onSelectCard:()=>v==null?void 0:v(e)},`field-of-interests-masonry-tag__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(O,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))})}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(A,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>b==null?void 0:b(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,a)=>r.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=B;
254
+ `,B=l.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:d=5,limitTagsForMobile:g=5,limit:u=3,limitForMobile:y=2,selectedTag:I,onSelectTag:v=()=>{},onSelectCard:b=()=>{},className:p},E)=>{var k,$;return l.useLayoutEffect(()=>{if(!s.isDefinedNotEmptyString(p))return;const e=()=>{const c=document.querySelector(`.${p} .wrapper__cards`),m=c.querySelectorAll(".wrapper__card");m.forEach(f=>{const N=f.getBoundingClientRect().height,M=Math.ceil((N+10)/20);f.style.gridRowEnd=`span ${M}`});const j=m==null?void 0:m[m.length-1];if(j){const f=j.offsetTop+j.offsetHeight;c.style.height=`${f}px`}},h=document.querySelector(`.${p} .wrapper__cards`).querySelectorAll(".wrapper__image");let w=0;return h.length===0?e():(h.forEach(c=>{c.complete?w++:c.addEventListener("load",()=>{w++,w===h.length&&e()})}),w===h.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[p,n]),r.jsxs(W,{ref:E,limitTags:d,limitTagsForMobile:g,limitCards:u,limitCardsForMobile:y,className:p,numberOfTags:i==null?void 0:i.length,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__tags__external",children:r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(F,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===I,onSelectCard:()=>v==null?void 0:v(e)},`field-of-interests-masonry-tag__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(O,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))})}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(A,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>b==null?void 0:b(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,a)=>r.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=B;