@lanaco/lnc-react-ui 4.0.121 → 4.0.123

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 (45) hide show
  1. package/dist/BannerSectionCarousel.cjs +112 -126
  2. package/dist/BannerSectionCarousel.js +654 -1509
  3. package/dist/BannerSectionGrid.cjs +3 -3
  4. package/dist/BannerSectionGrid.js +3 -3
  5. package/dist/BannerSectionSimple.cjs +40 -4
  6. package/dist/BannerSectionSimple.js +66 -29
  7. package/dist/BannerSectionWithList.cjs +42 -8
  8. package/dist/BannerSectionWithList.js +57 -22
  9. package/dist/BannerSectionWithListImage.cjs +23 -6
  10. package/dist/BannerSectionWithListImage.js +52 -35
  11. package/dist/BlogCardsSponsoredSection.cjs +13 -7
  12. package/dist/BlogCardsSponsoredSection.js +19 -13
  13. package/dist/BlogListSection.cjs +11 -3
  14. package/dist/BlogListSection.js +18 -10
  15. package/dist/BlogsSectionSimple.cjs +16 -7
  16. package/dist/BlogsSectionSimple.js +47 -32
  17. package/dist/BlogsSectionSimpleCentered.cjs +19 -10
  18. package/dist/BlogsSectionSimpleCentered.js +33 -24
  19. package/dist/DateInput.cjs +1 -1
  20. package/dist/DateInput.js +1 -1
  21. package/dist/FieldOfInterestsMasonrySection.cjs +22 -15
  22. package/dist/FieldOfInterestsMasonrySection.js +70 -63
  23. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -9
  24. package/dist/FieldOfInterestsWithTagsCardsSection.js +49 -44
  25. package/dist/Kanban.cjs +1 -1
  26. package/dist/Kanban.js +2 -2
  27. package/dist/{KanbanCard-Crf-cTxA.js → KanbanCard-68kSAXL6.js} +1 -1
  28. package/dist/{KanbanCard-CP60mpJO.cjs → KanbanCard-BDvoqTDS.cjs} +1 -1
  29. package/dist/KanbanCard.cjs +1 -1
  30. package/dist/KanbanCard.js +1 -1
  31. package/dist/KanbanView.cjs +1 -1
  32. package/dist/KanbanView.js +1 -1
  33. package/dist/OverlayGeneralCardsSection.cjs +105 -63
  34. package/dist/OverlayGeneralCardsSection.js +172 -161
  35. package/dist/SimpleProductsSection.cjs +1 -1
  36. package/dist/SimpleProductsSection.js +1 -1
  37. package/dist/index-Bg5OOQN0.cjs +5 -0
  38. package/dist/{index-BaLBHyTh.cjs → index-CSgGox95.cjs} +6 -6
  39. package/dist/{index-CsrdUl1x.js → index-DK8dqEUQ.js} +5 -5
  40. package/dist/{index-BXrmgzsU.js → index-fN7hCOo3.js} +4 -5
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.js +1 -1
  43. package/dist/style.css +1 -1
  44. package/package.json +2 -2
  45. package/dist/index-BZnmT78f.cjs +0 -5
@@ -1,11 +1,11 @@
1
- import { jsxs as m, jsx as r, Fragment as g } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as r, Fragment as g } from "react/jsx-runtime";
2
2
  import { forwardRef as u, Suspense as B, memo as P, useMemo as R } from "react";
3
3
  import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as v } from "./consts-BuFChS64.js";
4
+ import { M as k } from "./consts-BuFChS64.js";
5
5
  import { u as T } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as I, p as U, k as S } from "./utils-BbgAIA9N.js";
7
- import { R as W } from "./style-08foMKSd.js";
8
- import z from "./Button.js";
6
+ import { o as z, p as I, k as b } from "./utils-BbgAIA9N.js";
7
+ import { R as U } from "./style-08foMKSd.js";
8
+ import W from "./Button.js";
9
9
  import j from "./Link.js";
10
10
  import { P as A } from "./index-YGcWbzeb.js";
11
11
  const E = h.div`
@@ -13,7 +13,7 @@ const E = h.div`
13
13
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
15
15
 
16
- @media (max-width: ${v + "px"}) {
16
+ @media (max-width: ${k + "px"}) {
17
17
  grid-template-columns: repeat(1, 1fr);
18
18
  }
19
19
  `, w = h.div`
@@ -31,7 +31,6 @@ const E = h.div`
31
31
  cursor: pointer;
32
32
 
33
33
  &:hover {
34
-
35
34
  }
36
35
 
37
36
  & img {
@@ -45,15 +44,25 @@ const E = h.div`
45
44
  width: 100%;
46
45
  max-height: 12.5625rem;
47
46
  min-height: 12.5625rem;
48
- background-color: ${I("-90deg")};
47
+ background-color: ${z("-90deg")};
49
48
  }
50
49
 
51
50
  & .action {
52
51
  padding: 0 1rem 1rem 1rem;
53
52
  margin-top: auto;
53
+ color: var(--gray-950, #14161a);
54
+ font-size: 0.875rem;
55
+ font-style: normal;
56
+ font-weight: 500;
57
+ line-height: 1.25rem;
58
+ letter-spacing: -0.0056rem;
59
+
60
+ &:hover {
61
+ color: var(--gray-700, #4e555f);
62
+ }
54
63
  }
55
64
 
56
- @media (max-width: ${v + "px"}) {
65
+ @media (max-width: ${k + "px"}) {
57
66
  }
58
67
  `, y = h.div`
59
68
  padding: 1rem 1rem 0 1rem;
@@ -73,13 +82,19 @@ const E = h.div`
73
82
  font-size: 0.875rem;
74
83
  flex: 1;
75
84
  color: var(--gray-700, #4e555f);
76
- ${U(3)}
85
+ ${I(3)}
77
86
  }
78
87
  `, L = u((t, o) => {
79
- const { title: i, imageUrl: n, text: l, onCardClick: c, readMoreText: s = "Read more" } = t;
80
- return /* @__PURE__ */ m(w, { ref: o, className: "blog-card", onClick: c, children: [
88
+ const {
89
+ title: i,
90
+ imageUrl: n,
91
+ text: l,
92
+ onCardClick: c,
93
+ readMoreText: s = "Read more"
94
+ } = t;
95
+ return /* @__PURE__ */ d(w, { ref: o, className: "blog-card", onClick: c, children: [
81
96
  /* @__PURE__ */ r(A, { src: n }),
82
- /* @__PURE__ */ m(y, { children: [
97
+ /* @__PURE__ */ d(y, { children: [
83
98
  /* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
84
99
  /* @__PURE__ */ r("div", { className: "text-wr", children: l })
85
100
  ] }),
@@ -87,7 +102,7 @@ const E = h.div`
87
102
  ] });
88
103
  }), _ = u(({}, t) => (
89
104
  // <LandingPageClearProductCardSkeleton />
90
- /* @__PURE__ */ m(w, { className: "product-card", children: [
105
+ /* @__PURE__ */ d(w, { className: "product-card", children: [
91
106
  /* @__PURE__ */ r("div", { className: "skeleton-img" }),
92
107
  /* @__PURE__ */ r("div", { className: "card-title" }),
93
108
  /* @__PURE__ */ r(y, {})
@@ -111,7 +126,7 @@ const E = h.div`
111
126
  limit: n,
112
127
  keyPrefix: l
113
128
  }
114
- ) : t }), k = P(L), Y = u((t, o) => {
129
+ ) : t }), S = P(L), Y = u((t, o) => {
115
130
  const {
116
131
  icon: i,
117
132
  title: n,
@@ -126,45 +141,45 @@ const E = h.div`
126
141
  isLoading: N = !1,
127
142
  getImage: f = () => {
128
143
  },
129
- readMoreText: b = "Read more"
130
- } = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, d) => /* @__PURE__ */ r(
131
- k,
144
+ readMoreText: v = "Read more"
145
+ } = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, m) => /* @__PURE__ */ r(
146
+ S,
132
147
  {
133
148
  title: e == null ? void 0 : e.title,
134
149
  imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
135
150
  text: e == null ? void 0 : e.description,
136
151
  titleSlug: e == null ? void 0 : e.titleSlug,
137
- readMoreText: b,
152
+ readMoreText: v,
138
153
  onCardClick: () => c(e == null ? void 0 : e.titleSlug)
139
154
  },
140
- d
141
- )) : a == null ? void 0 : a.slice(0, p).map((e, d) => /* @__PURE__ */ r(
142
- k,
155
+ m
156
+ )) : a == null ? void 0 : a.slice(0, p).map((e, m) => /* @__PURE__ */ r(
157
+ S,
143
158
  {
144
159
  title: e == null ? void 0 : e.title,
145
160
  imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
146
161
  text: e == null ? void 0 : e.description,
147
162
  titleSlug: e == null ? void 0 : e.titleSlug,
148
- readMoreText: b,
163
+ readMoreText: v,
149
164
  onCardClick: () => c(e == null ? void 0 : e.titleSlug)
150
165
  },
151
- d
166
+ m
152
167
  )) }), [a]);
153
- return /* @__PURE__ */ m(W, { ref: o, children: [
154
- /* @__PURE__ */ m("div", { className: "regular-title", children: [
155
- /* @__PURE__ */ m("div", { className: "regular-title-text", children: [
156
- S(i) && /* @__PURE__ */ r("i", { className: i }),
168
+ return /* @__PURE__ */ d(U, { ref: o, children: [
169
+ /* @__PURE__ */ d("div", { className: "regular-title", children: [
170
+ /* @__PURE__ */ d("div", { className: "regular-title-text", children: [
171
+ b(i) && /* @__PURE__ */ r("i", { className: i }),
157
172
  /* @__PURE__ */ r("span", { children: n })
158
173
  ] }),
159
- S(s) && /* @__PURE__ */ r(
160
- z,
174
+ b(s) && /* @__PURE__ */ r(
175
+ W,
161
176
  {
162
177
  type: "button",
163
178
  btnType: "tinted",
164
179
  color: "neutral",
165
180
  onClick: (e) => {
166
- var d;
167
- (d = e == null ? void 0 : e.target) == null || d.blur(), l(s);
181
+ var m;
182
+ (m = e == null ? void 0 : e.target) == null || m.blur(), l(s);
168
183
  },
169
184
  borderRadius: "curved",
170
185
  className: "button-link",
@@ -1,13 +1,13 @@
1
- "use strict";const t=require("react/jsx-runtime"),s=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),x=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-CZynEOC_.cjs"),w=require("./Button.cjs"),b=require("./index-BvSNRLNa.cjs"),j=u.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),s=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),x=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-CZynEOC_.cjs"),w=require("./Button.cjs"),b=require("./index-BvSNRLNa.cjs"),j=g.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
  margin: auto;
6
6
  width: fit-content;
7
- @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
7
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
8
8
  grid-template-columns: repeat(1, 1fr);
9
9
  }
10
- `,h=u.styled.div`
10
+ `,p=g.styled.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  width: 100%;
@@ -27,6 +27,11 @@
27
27
  width: fit-content;
28
28
  margin-top: auto;
29
29
  color: var(--gray-950, #14161a);
30
+ font-size: 0.875rem;
31
+ font-style: normal;
32
+ font-weight: 500;
33
+ line-height: 1.25rem;
34
+ letter-spacing: -0.09px;
30
35
  }
31
36
 
32
37
  & img {
@@ -47,10 +52,10 @@
47
52
  background-color: ${m.linearGradientAnimation("-90deg")};
48
53
  }
49
54
 
50
- @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
55
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
51
56
  max-width: unset;
52
57
  }
53
- `,f=u.styled.div`
58
+ `,f=g.styled.div`
54
59
  text-align: center;
55
60
  display: flex;
56
61
  flex-direction: column;
@@ -58,8 +63,11 @@
58
63
  color: var(--gray-950, #14161a);
59
64
 
60
65
  & .text-wr-title {
61
- font-weight: 600;
66
+ text-align: center;
62
67
  font-size: 1.375rem;
68
+ font-style: normal;
69
+ font-weight: 600;
70
+ line-height: 1.75rem;
63
71
  }
64
72
 
65
73
  & .skeleton-title {
@@ -69,10 +77,11 @@
69
77
  }
70
78
 
71
79
  & .text-wr {
72
- font-weight: 400;
73
80
  font-size: 0.875rem;
74
- flex: 1;
75
- color: var(--gray-700, #4e555f);
81
+ font-style: normal;
82
+ font-weight: 400;
83
+ line-height: 1.25rem;
84
+ letter-spacing: 0.0156rem;
76
85
  ${m.truncateTextInRows(3)}
77
86
  }
78
- `,g=s.forwardRef((i,n)=>{const{title:r,image:o,text:a,buttonText:d,onCardClick:l}=i;return t.jsxs(h,{ref:n,className:"blog-card",onClick:l,children:[t.jsx(b.ProductImageWrapper,{src:o}),t.jsxs(f,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:a})]}),t.jsx(w,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:l,size:"medium",children:d})]})}),k=s.forwardRef((i,n)=>{const{onCardClick:r}=i;return t.jsxs(h,{className:"product-card",onClick:r,children:[t.jsx("div",{className:"skeleton-img"}),t.jsx(f,{children:t.jsx("div",{className:"skeleton-title"})})]})}),C=({limit:i=3,isLoading:n=!1,keyPrefix:r})=>t.jsx(t.Fragment,{children:Array.from({length:i},(o,a)=>t.jsx(k,{isLoading:n},`${r}-skeleton-product-card-${a}`))}),y=({children:i,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:r=!1,limit:o,keyPrefix:a})=>t.jsx(s.Suspense,{fallbackComponent:n,children:r===!0?t.jsx(C,{isLoading:r,limit:o,keyPrefix:a}):i}),v=s.forwardRef((i,n)=>{const{items:r,limit:o=3,onSelectCard:a=()=>{},isLoading:d=!1}=i,l=x.useDetectMobile();return t.jsx(j,{ref:n,limit:o,children:t.jsx(y,{isLoading:d,limit:o,keyPrefix:"explore-landing",children:t.jsx(t.Fragment,{children:l===!0?r==null?void 0:r.map((e,c)=>t.jsx(g,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>a(e)},c)):r==null?void 0:r.slice(0,o).map((e,c)=>t.jsx(g,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>a(e)},c))})})})});module.exports=v;
87
+ `,u=s.forwardRef((i,n)=>{const{title:r,image:o,text:l,buttonText:d,onCardClick:a}=i;return t.jsxs(p,{ref:n,className:"blog-card",onClick:a,children:[t.jsx(b.ProductImageWrapper,{src:o}),t.jsxs(f,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:l})]}),t.jsx(w,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:a,size:"medium",children:d})]})}),k=s.forwardRef((i,n)=>{const{onCardClick:r}=i;return t.jsxs(p,{className:"product-card",onClick:r,children:[t.jsx("div",{className:"skeleton-img"}),t.jsx(f,{children:t.jsx("div",{className:"skeleton-title"})})]})}),y=({limit:i=3,isLoading:n=!1,keyPrefix:r})=>t.jsx(t.Fragment,{children:Array.from({length:i},(o,l)=>t.jsx(k,{isLoading:n},`${r}-skeleton-product-card-${l}`))}),C=({children:i,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:r=!1,limit:o,keyPrefix:l})=>t.jsx(s.Suspense,{fallbackComponent:n,children:r===!0?t.jsx(y,{isLoading:r,limit:o,keyPrefix:l}):i}),v=s.forwardRef((i,n)=>{const{items:r,limit:o=3,onSelectCard:l=()=>{},isLoading:d=!1}=i,a=x.useDetectMobile();return t.jsx(j,{ref:n,limit:o,children:t.jsx(C,{isLoading:d,limit:o,keyPrefix:"explore-landing",children:t.jsx(t.Fragment,{children:a===!0?r==null?void 0:r.map((e,c)=>t.jsx(u,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>l(e)},c)):r==null?void 0:r.slice(0,o).map((e,c)=>t.jsx(u,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>l(e)},c))})})})});module.exports=v;
@@ -1,21 +1,21 @@
1
1
  import { jsxs as c, jsx as t, Fragment as s } from "react/jsx-runtime";
2
2
  import { forwardRef as p, Suspense as k } from "react";
3
3
  import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as h } from "./consts-BuFChS64.js";
4
+ import { M as u } from "./consts-BuFChS64.js";
5
5
  import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as f, p as v } from "./utils-BbgAIA9N.js";
7
- import y from "./Button.js";
6
+ import { o as f, p as y } from "./utils-BbgAIA9N.js";
7
+ import v from "./Button.js";
8
8
  import { P as S } from "./index-YGcWbzeb.js";
9
- const $ = g.div`
9
+ const x = g.div`
10
10
  display: grid;
11
11
  grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
12
12
  gap: 1.25rem;
13
13
  margin: auto;
14
14
  width: fit-content;
15
- @media (max-width: ${h + "px"}) {
15
+ @media (max-width: ${u + "px"}) {
16
16
  grid-template-columns: repeat(1, 1fr);
17
17
  }
18
- `, b = g.div`
18
+ `, w = g.div`
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  width: 100%;
@@ -35,6 +35,11 @@ const $ = g.div`
35
35
  width: fit-content;
36
36
  margin-top: auto;
37
37
  color: var(--gray-950, #14161a);
38
+ font-size: 0.875rem;
39
+ font-style: normal;
40
+ font-weight: 500;
41
+ line-height: 1.25rem;
42
+ letter-spacing: -0.09px;
38
43
  }
39
44
 
40
45
  & img {
@@ -55,10 +60,10 @@ const $ = g.div`
55
60
  background-color: ${f("-90deg")};
56
61
  }
57
62
 
58
- @media (max-width: ${h + "px"}) {
63
+ @media (max-width: ${u + "px"}) {
59
64
  max-width: unset;
60
65
  }
61
- `, w = g.div`
66
+ `, b = g.div`
62
67
  text-align: center;
63
68
  display: flex;
64
69
  flex-direction: column;
@@ -66,8 +71,11 @@ const $ = g.div`
66
71
  color: var(--gray-950, #14161a);
67
72
 
68
73
  & .text-wr-title {
69
- font-weight: 600;
74
+ text-align: center;
70
75
  font-size: 1.375rem;
76
+ font-style: normal;
77
+ font-weight: 600;
78
+ line-height: 1.75rem;
71
79
  }
72
80
 
73
81
  & .skeleton-title {
@@ -77,22 +85,23 @@ const $ = g.div`
77
85
  }
78
86
 
79
87
  & .text-wr {
80
- font-weight: 400;
81
88
  font-size: 0.875rem;
82
- flex: 1;
83
- color: var(--gray-700, #4e555f);
84
- ${v(3)}
89
+ font-style: normal;
90
+ font-weight: 400;
91
+ line-height: 1.25rem;
92
+ letter-spacing: 0.0156rem;
93
+ ${y(3)}
85
94
  }
86
- `, u = p((i, o) => {
95
+ `, h = p((i, o) => {
87
96
  const { title: r, image: n, text: a, buttonText: m, onCardClick: l } = i;
88
- return /* @__PURE__ */ c(b, { ref: o, className: "blog-card", onClick: l, children: [
97
+ return /* @__PURE__ */ c(w, { ref: o, className: "blog-card", onClick: l, children: [
89
98
  /* @__PURE__ */ t(S, { src: n }),
90
- /* @__PURE__ */ c(w, { children: [
99
+ /* @__PURE__ */ c(b, { children: [
91
100
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
92
101
  /* @__PURE__ */ t("div", { className: "text-wr", children: a })
93
102
  ] }),
94
103
  /* @__PURE__ */ t(
95
- y,
104
+ v,
96
105
  {
97
106
  borderRadius: "curved",
98
107
  color: "gray",
@@ -104,17 +113,17 @@ const $ = g.div`
104
113
  }
105
114
  )
106
115
  ] });
107
- }), x = p((i, o) => {
116
+ }), $ = p((i, o) => {
108
117
  const { onCardClick: r } = i;
109
118
  return (
110
119
  // <SimpleBlogCardSkeleton />
111
- /* @__PURE__ */ c(b, { className: "product-card", onClick: r, children: [
120
+ /* @__PURE__ */ c(w, { className: "product-card", onClick: r, children: [
112
121
  /* @__PURE__ */ t("div", { className: "skeleton-img" }),
113
- /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
122
+ /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
114
123
  ] })
115
124
  );
116
125
  }), T = ({ limit: i = 3, isLoading: o = !1, keyPrefix: r }) => /* @__PURE__ */ t(s, { children: Array.from({ length: i }, (n, a) => /* @__PURE__ */ t(
117
- x,
126
+ $,
118
127
  {
119
128
  isLoading: o
120
129
  },
@@ -140,14 +149,14 @@ const $ = g.div`
140
149
  },
141
150
  isLoading: m = !1
142
151
  } = i, l = C();
143
- return /* @__PURE__ */ t($, { ref: o, limit: n, children: /* @__PURE__ */ t(
152
+ return /* @__PURE__ */ t(x, { ref: o, limit: n, children: /* @__PURE__ */ t(
144
153
  B,
145
154
  {
146
155
  isLoading: m,
147
156
  limit: n,
148
157
  keyPrefix: "explore-landing",
149
158
  children: /* @__PURE__ */ t(s, { children: l === !0 ? r == null ? void 0 : r.map((e, d) => /* @__PURE__ */ t(
150
- u,
159
+ h,
151
160
  {
152
161
  title: e == null ? void 0 : e.title,
153
162
  image: (e == null ? void 0 : e.image) || null,
@@ -157,7 +166,7 @@ const $ = g.div`
157
166
  },
158
167
  d
159
168
  )) : r == null ? void 0 : r.slice(0, n).map((e, d) => /* @__PURE__ */ t(
160
- u,
169
+ h,
161
170
  {
162
171
  title: e == null ? void 0 : e.title,
163
172
  image: (e == null ? void 0 : e.image) || null,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BpbMKBf_.cjs"),Aa=require("./Icon.cjs"),Fa=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./utils-CZynEOC_.cjs"),ie=require("./index-BZnmT78f.cjs"),h=require("./defineProperty-CqVRDJI8.cjs"),T=require("./setPrototypeOf-4aSEnBDm.cjs"),Nr=require("./index-41nUb2kP.cjs"),Wa=require("./index-CDGmG-qk.cjs"),Ua=require("./_commonjsHelpers-DwTZ_eVU.cjs"),Ha=require("./TextInput.cjs"),$a=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function Ba(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>a[r]})}}return n.default=a,Object.freeze(n)}const j=Ba(v),qa=Fa.styled.div`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BpbMKBf_.cjs"),Aa=require("./Icon.cjs"),Fa=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./utils-CZynEOC_.cjs"),ie=require("./index-Bg5OOQN0.cjs"),h=require("./defineProperty-CqVRDJI8.cjs"),T=require("./setPrototypeOf-4aSEnBDm.cjs"),Nr=require("./index-41nUb2kP.cjs"),Wa=require("./index-CDGmG-qk.cjs"),Ua=require("./_commonjsHelpers-DwTZ_eVU.cjs"),Ha=require("./TextInput.cjs"),$a=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function Ba(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>a[r]})}}return n.default=a,Object.freeze(n)}const j=Ba(v),qa=Fa.styled.div`
2
2
  ${a=>I.getComponentTypographyCss(a.theme,"DateInput",a.size,"enabled")}
3
3
  & .react-datepicker__header__dropdown {
4
4
  position: absolute !important;
package/dist/DateInput.js CHANGED
@@ -5,7 +5,7 @@ import { P as J } from "./index-CblbdqjE.js";
5
5
  import Qa from "./Icon.js";
6
6
  import { s as Ka } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
7
  import { c as hr, b as $ } from "./utils-BbgAIA9N.js";
8
- import { c as le } from "./index-BXrmgzsU.js";
8
+ import { c as le } from "./index-fN7hCOo3.js";
9
9
  import { c as wt, a as Va, d as R, e as L, g as Y, _, f as I } from "./defineProperty-DF3p0mVo.js";
10
10
  import { a as x } from "./setPrototypeOf-CttqfWo1.js";
11
11
  import { r as zn, R as Xa } from "./index-B1vKwsDE.js";
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./utils-CZynEOC_.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),M=require("./Icon.cjs"),R=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),z=m.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./utils-CZynEOC_.cjs"),m=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=m.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -50,12 +50,25 @@
50
50
  ${l.truncateTextInRows(2)}
51
51
  }
52
52
  }
53
- `,C=m.styled.div`
53
+
54
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
55
+ & .wrapper__content {
56
+ & .wrapper__title {
57
+ font-size: 0.875rem;
58
+ line-height: 1.25rem;
59
+ }
60
+
61
+ & .wrapper__description {
62
+ display: none;
63
+ }
64
+ }
65
+ }
66
+ `,S=m.styled.div`
54
67
  width: 100%;
55
68
  height: 11.625rem;
56
69
  border-radius: 0.75rem;
57
70
  background: ${l.linearGradientAnimation("-90deg")};
58
- `,O=m.styled.div`
71
+ `,C=m.styled.div`
59
72
  display: flex;
60
73
  flex-direction: column;
61
74
  align-items: center;
@@ -102,18 +115,16 @@
102
115
  }
103
116
  }
104
117
 
105
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
118
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
106
119
  flex-direction: row;
107
120
  align-items: center;
108
121
  gap: 0.25rem;
109
122
  border-radius: 999px;
110
- width: 100%;
111
123
  background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
112
124
  padding: 0 0.75rem;
113
125
 
114
126
  &.active {
115
127
  background: var(--gray-950, #14161a);
116
-
117
128
  & .wrapper__icon {
118
129
  background: transparent;
119
130
  }
@@ -141,17 +152,17 @@
141
152
  white-space: nowrap;
142
153
  }
143
154
  }
144
- `,S=m.styled.div`
155
+ `,L=m.styled.div`
145
156
  width: 7.5rem;
146
157
  width: 7.5rem;
147
158
  border-radius: 999px;
148
159
  background: ${l.linearGradientAnimation("-90deg")};
149
160
 
150
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
161
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
151
162
  width: 7.5rem;
152
163
  height: 2.5rem;
153
164
  }
154
- `,F=s.forwardRef(({},t)=>r.jsx(S,{})),L=s.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:n=()=>{}},f)=>r.jsxs(O,{className:o?"active":"",onClick:n,children:[r.jsx(M,{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:f,onSelectCard:g=()=>{}},j)=>{const{theme:x}=R.useTheme();return r.jsxs(z,{theme:x,className:f,onClick:g,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(C,{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=m.styled.div`
165
+ `,O=s.forwardRef(({},t)=>r.jsx(L,{})),F=s.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:n=()=>{}},_)=>r.jsxs(C,{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:_,onSelectCard:x=()=>{}},j)=>{const{theme:u}=z.useTheme();return r.jsxs(R,{theme:u,className:_,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=m.styled.div`
155
166
  display: flex;
156
167
  flex-direction: column;
157
168
  align-items: center;
@@ -192,10 +203,6 @@
192
203
  justify-content: center;
193
204
  align-items: center;
194
205
  gap: 0.75rem;
195
-
196
- grid-template-columns: ${t=>`repeat(${t.numberOfTags||0}, minmax(0, 7rem))`};
197
- justify-content: center;
198
- display: grid;
199
206
  }
200
207
 
201
208
  & .wrapper__cards {
@@ -211,7 +218,7 @@
211
218
  }
212
219
  }
213
220
 
214
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
221
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
215
222
  & .wrapper__tags {
216
223
  overflow-x: scroll;
217
224
  justify-content: flex-start;
@@ -236,4 +243,4 @@
236
243
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
237
244
  }
238
245
  }
239
- `,B=s.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:f=5,limitTagsForMobile:g=5,limit:j=3,limitForMobile:x=2,selectedTag:E,onSelectTag:u=()=>{},onSelectCard:y=()=>{},className:d},I)=>{var k,$;return s.useLayoutEffect(()=>{if(!l.isDefinedNotEmptyString(d))return;const e=()=>{const p=document.querySelector(`.${d} .wrapper__cards`),c=p.querySelectorAll(".wrapper__card");c.forEach(w=>{const N=w.getBoundingClientRect().height,q=Math.ceil((N+10)/20);w.style.gridRowEnd=`span ${q}`});const v=c==null?void 0:c[c.length-1];if(v){const w=v.offsetTop+v.offsetHeight;p.style.height=`${w}px`}},_=document.querySelector(`.${d} .wrapper__cards`).querySelectorAll(".wrapper__image");let h=0;return _.length===0?e():(_.forEach(p=>{p.complete?h++:p.addEventListener("load",()=>{h++,h===_.length&&e()})}),h===_.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d,n]),r.jsxs(W,{ref:I,limitTags:f,limitTagsForMobile:g,limitCards:j,limitCardsForMobile:x,className:d,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(L,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===E,onSelectCard:()=>u==null?void 0:u(e)},`field-of-interests-masonry-tag__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(F,{},`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:()=>y==null?void 0:y(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;
246
+ `,B=s.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:_=5,limitTagsForMobile:x=5,limit:j=3,limitForMobile:u=2,selectedTag:E,onSelectTag:y=()=>{},onSelectCard:v=()=>{},className:d},I)=>{var k,$;return s.useLayoutEffect(()=>{if(!l.isDefinedNotEmptyString(d))return;const e=()=>{const p=document.querySelector(`.${d} .wrapper__cards`),c=p.querySelectorAll(".wrapper__card");c.forEach(w=>{const N=w.getBoundingClientRect().height,M=Math.ceil((N+10)/20);w.style.gridRowEnd=`span ${M}`});const b=c==null?void 0:c[c.length-1];if(b){const w=b.offsetTop+b.offsetHeight;p.style.height=`${w}px`}},f=document.querySelector(`.${d} .wrapper__cards`).querySelectorAll(".wrapper__image");let h=0;return f.length===0?e():(f.forEach(p=>{p.complete?h++:p.addEventListener("load",()=>{h++,h===f.length&&e()})}),h===f.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d,n]),r.jsxs(W,{ref:I,limitTags:_,limitTagsForMobile:x,limitCards:j,limitCardsForMobile:u,className:d,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:()=>y==null?void 0:y(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:()=>v==null?void 0:v(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;