@lanaco/lnc-react-ui 4.0.163 → 4.0.164

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.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),b=require("react"),n=require("./index-BpbMKBf_.cjs"),z=require("./utils-Dl9xPH4c.cjs"),Y=require("./TextInput.cjs"),N=require("./Icon.cjs"),B=require("./Link.cjs"),L=require("./DropdownMenu.cjs"),P=require("./DropdownItem.cjs"),O=require("./tag-yputMSpE.cjs"),ee=require("./BlogProductCardsSection.cjs"),A=require("./emotion-styled.browser.esm-BtEseadx.cjs"),ne=require("./index-BueKsXT8.cjs"),$=require("./BlogListSection.cjs"),re=require("./consts-goSZX3xP.cjs"),te=A.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),x=require("react"),r=require("./index-BpbMKBf_.cjs"),oe=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./utils-Dl9xPH4c.cjs"),ce=require("./TextInput.cjs"),k=require("./Icon.cjs"),le=require("./Link.cjs"),$=require("./IconButton.cjs"),M=require("./DropdownMenu.cjs"),R=require("./DropdownItem.cjs"),de=require("./tag-CmeZsPQt.cjs"),me=require("./BlogProductCardsSection.cjs"),V=require("./emotion-styled.browser.esm-BtEseadx.cjs"),he=require("./index-BueKsXT8.cjs"),D=require("./BlogListSection.cjs"),pe=require("./consts-goSZX3xP.cjs"),ue=V.styled.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
  }
82
- `,ie=b.forwardRef(({perPageOptions:c=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:m,handlePerPage:u=()=>{},page:s=1,handlePage:o=()=>{},totalPage:r},d)=>{var _,l;const p=()=>{s>1&&(o==null||o(s-1))},f=()=>{s<r&&(o==null||o(s+1))},g=()=>{const i=[];if(r<=7)for(let a=1;a<=r;a++)i.push(a);else s<=3?i.push(1,2,3,"...",r):s>=r-2?i.push(1,"...",r-2,r-1,r):i.push(1,2,3,"...",r);return i==null?void 0:i.map((a,x)=>a==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:a},`pagination-ellipsis__${x}`):e.jsx("div",{onClick:()=>o(a),className:`pagination__page ${s===a?"active":""}`,children:a},`pagination-page__${x}`))};return e.jsxs(te,{className:"pagination",children:[e.jsx(L,{color:"neutral",control:((_=c==null?void 0:c.find(i=>(i==null?void 0:i.code)===m))==null?void 0:_.name)||((l=c[0])==null?void 0:l.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:c==null?void 0:c.map((i,a)=>e.jsx(P,{active:(i==null?void 0:i.code)===(m==null?void 0:m.code),className:"sort-by__item",onClick:()=>u(i),children:i==null?void 0:i.name},`blog-epxlore-section-per-page-option__${a+1}`))}),e.jsxs("div",{className:"pagination__pages",children:[e.jsx("div",{className:`pagination__page ${s===1?"disabled":""}`,onClick:p,children:e.jsx(N,{icon:" mng-lnc-chevron--left"})}),g(),e.jsx("div",{className:`pagination__page ${s===r?"disabled":""}`,onClick:f,children:e.jsx(N,{icon:" mng-lnc-chevron--right"})})]})]})}),ae=A.styled.div`
82
+ `,_e=x.forwardRef(({perPageOptions:l=[{code:10,name:"Show 10 items"},{code:25,name:"Show 25 items"},{code:50,name:"Show 50 items"}],perPage:u,handlePerPage:g=()=>{},page:s=1,handlePage:d=()=>{},totalPage:t},p)=>{var f,m;const _=()=>{s>1&&(d==null||d(s-1))},y=()=>{s<t&&(d==null||d(s+1))},b=()=>{const i=[];if(t<=7)for(let a=1;a<=t;a++)i.push(a);else s<=3?i.push(1,2,3,"...",t):s>=t-2?i.push(1,"...",t-2,t-1,t):i.push(1,2,3,"...",t);return i==null?void 0:i.map((a,v)=>a==="..."?e.jsx("div",{className:"pagination__page ellipsis",children:a},`pagination-ellipsis__${v}`):e.jsx("div",{onClick:()=>d(a),className:`pagination__page ${s===a?"active":""}`,children:a},`pagination-page__${v}`))};return e.jsxs(ue,{className:"pagination",children:[e.jsx(M,{color:"neutral",control:((f=l==null?void 0:l.find(i=>(i==null?void 0:i.code)===u))==null?void 0:f.name)||((m=l[0])==null?void 0:m.name),placement:"bottom",zIndex:1001,className:"pagination__per-page",children:l==null?void 0:l.map((i,a)=>e.jsx(R,{active:(i==null?void 0:i.code)===(u==null?void 0:u.code),className:"sort-by__item",onClick:()=>g(i),children:i==null?void 0:i.name},`blog-epxlore-section-per-page-option__${a+1}`))}),e.jsxs("div",{className:"pagination__pages",children:[e.jsx("div",{className:`pagination__page ${s===1?"disabled":""}`,onClick:_,children:e.jsx(k,{icon:" mng-lnc-chevron--left"})}),b(),e.jsx("div",{className:`pagination__page ${s===t?"disabled":""}`,onClick:y,children:e.jsx(k,{icon:" mng-lnc-chevron--right"})})]})]})}),fe=V.styled.div`
83
83
  display: flex;
84
84
  align-items: flex-start;
85
85
  gap: 2rem;
@@ -96,18 +96,44 @@
96
96
  flex-direction: column;
97
97
  align-items: flex-start;
98
98
  gap: 1.5rem;
99
+ max-width: 50rem;
99
100
 
100
101
  border-right: 1px solid var(--gray-200, #dddfe4);
101
102
  padding-right: 2rem;
102
103
 
103
104
  & .section__tags {
104
- flex-wrap: wrap;
105
+ flex-wrap: nowrap;
106
+ width: 100%;
107
+ overflow-x: hidden;
108
+ white-space: nowrap;
105
109
  }
106
110
 
107
111
  & .pagination {
108
112
  padding: 1.25rem 0;
109
113
  }
110
114
 
115
+ & .main-content__heading {
116
+ display: flex;
117
+ justify-content: space-between;
118
+ width: 100%;
119
+
120
+ & .main-content__tags-nav {
121
+ display: flex;
122
+ gap: 0.25rem;
123
+
124
+ & .main-content__tag-nav {
125
+ &:not(:disabled) {
126
+ color: var(--gray-950, #14161a);
127
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
128
+
129
+ &:hover {
130
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+
111
137
  & .main-content__title {
112
138
  color: var(--gray-950, #14161a);
113
139
  font-size: 1.5rem;
@@ -118,7 +144,11 @@
118
144
 
119
145
  & .tags__item {
120
146
  &:not(.active) {
121
- background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
147
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
148
+
149
+ &:hover {
150
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
151
+ }
122
152
  }
123
153
  }
124
154
 
@@ -255,7 +285,7 @@
255
285
  font-style: normal;
256
286
  font-weight: 500;
257
287
  line-height: 1.25rem;
258
- ${z.truncateTextInRows(2)}
288
+ ${P.truncateTextInRows(2)}
259
289
  }
260
290
 
261
291
  & .item__description {
@@ -270,16 +300,19 @@
270
300
  }
271
301
  }
272
302
 
273
- @media (max-width: ${re.MOBILE_SIZE_PX+"px"}) {
303
+ @media (max-width: ${pe.MOBILE_SIZE_PX+"px"}) {
274
304
  flex-direction: column;
275
305
 
276
306
  & .landing__main-content {
277
307
  width: 100%;
308
+ max-width: 100%;
278
309
  padding-right: 0;
279
310
  border-right: none;
280
311
 
281
312
  & .section__tags {
282
- flex-wrap: nowrap;
313
+ width: 100%;
314
+ overflow-x: auto;
315
+ white-space: nowrap;
283
316
  }
284
317
 
285
318
  & .main-content__actions {
@@ -287,6 +320,8 @@
287
320
  }
288
321
 
289
322
  & .main-content__items {
323
+ width: 100%;
324
+
290
325
  & .main-content__divider {
291
326
  display: none;
292
327
  }
@@ -317,4 +352,4 @@
317
352
  display: none;
318
353
  }
319
354
  }
320
- `,R=b.forwardRef(({mainTitle:c,sideTitle:m,tags:u,selectedTag:s,handleSelectTag:o=()=>{},blogs:r,miniBlogs:d,products:p,blogsLoading:f=!1,productsLoading:g=!1,sortingOptions:_,sortBy:l,handleSortBy:i=()=>{},allTagText:a="All",searchPlaceholderText:x="Search blogs",timeToReadText:S="{0} min read",getBlogImageUrl:y=()=>{},handleSelectBlog:v=()=>{},handleSelectBlogTag:k=()=>{},handleShareBlog:q=()=>{},showAllButtonLink:E,showAllButtonText:F="Show all products",viewAllButtonText:D="View all (11)",viewAllButtonLink:se,handleViewAll:M=()=>{},handleShowAll:U=()=>{},handleSelectProduct:V=()=>{},getProductImageUrl:H=()=>{},page:W,handlePage:T=()=>{},perPage:X,handlePerPage:Z=()=>{},totalPage:j,perPageOptions:G,handleSearch:J=()=>{},onBookmark:C=()=>{},bookmarkComponent:I=e.jsx(e.Fragment,{children:" "}),componentName:w},K)=>{const Q=t=>{document.getElementById("landing__container").scrollIntoView({behavior:"smooth",block:"start"}),T==null||T(t)};return e.jsxs(ae,{ref:K,id:"landing__container",children:[e.jsxs("div",{className:"landing__main-content",children:[c&&e.jsx("div",{className:"main-content__title",children:c}),u&&e.jsx(O.FaqSectionTags,{tags:u,allTagText:a,selectedTagCode:s,onSelectTag:o}),e.jsxs("div",{className:"main-content__actions",children:[e.jsx(Y,{className:"main-content__search",placeholder:x,debounceTime:200,prefix:e.jsx(N,{icon:" mng-lnc-search",sizeInUnits:"1.25rem",className:"main-content__search-prefix"}),color:"neutral",onChange:J}),e.jsx(L,{color:"neutral",control:l==null?void 0:l.name,zIndex:1001,className:"main-content__sort-by",children:_==null?void 0:_.map((t,h)=>e.jsx(P,{active:(t==null?void 0:t.code)===(l==null?void 0:l.code),className:"sort-by__item",onClick:()=>i(t),children:t==null?void 0:t.name},`blog-epxlore-section-sorting-option__${h+1}`))})]}),e.jsxs("div",{className:"main-content__items",children:[r&&(r==null?void 0:r.length)>0&&e.jsx($,{timeToReadText:S,items:r==null?void 0:r.slice(0,5),isLoading:f,getImage:y,onSelectCard:v,onSelectOption:k,onShare:q,onBookmark:C,bookmarkComponent:I,componentName:w}),e.jsx("div",{className:"main-content__divider"}),p&&(p==null?void 0:p.length)>0&&e.jsx(ee,{buttonText:F,buttonLink:E,onButtonAction:U,onSelectCard:V,items:p,isLoading:g,getImage:H,isHighlight:!0,componentName:w}),e.jsx("div",{className:"main-content__divider"}),r&&(r==null?void 0:r.length)>0&&e.jsx($,{timeToReadText:S,items:r==null?void 0:r.slice(5),isLoading:f,getImage:y,onSelectCard:v,onSelectOption:k,onShare:q,onBookmark:C,bookmarkComponent:I,componentName:w})]}),j&&j>1&&e.jsx(ie,{perPageOptions:G,perPage:X,handlePerPage:Z,page:W,handlePage:Q,totalPage:j})]}),e.jsxs("div",{className:"landing__side-content",children:[m&&e.jsx("div",{className:"side-content__title",children:m}),d&&(d==null?void 0:d.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"side-content__items",children:d==null?void 0:d.map((t,h)=>e.jsx(b.Fragment,{children:e.jsxs("div",{className:"side-content__item",onClick:()=>v(t),children:[e.jsx(ne.ProductImageWrapper,{src:y(t==null?void 0:t.imageUrl,t==null?void 0:t.uuid)||null,alt:`Mini blog ${h+1}`,className:"item__image"}),e.jsxs("div",{className:"item__content",children:[e.jsx("div",{className:"item__title",children:t==null?void 0:t.title}),e.jsx("div",{className:"item__description",children:z.formatLocaleDateString(t==null?void 0:t.publishedAt)})]})]})},`mini_blg_${h}`))}),e.jsx(B,{onClick:M,className:"side-content__link",children:D})]})]})]})});R.propTypes={mainTitle:n.PropTypes.string,sideTitle:n.PropTypes.string,tags:n.PropTypes.array,selectedTag:n.PropTypes.any,handleSelectTag:n.PropTypes.func,blogs:n.PropTypes.array,miniBlogs:n.PropTypes.array,products:n.PropTypes.array,blogsLoading:n.PropTypes.bool,productsLoading:n.PropTypes.bool,sortingOptions:n.PropTypes.array,sortBy:n.PropTypes.any,handleSortBy:n.PropTypes.func,allTagText:n.PropTypes.string,searchPlaceholderText:n.PropTypes.string,timeToReadText:n.PropTypes.string,getBlogImageUrl:n.PropTypes.func,handleSelectBlog:n.PropTypes.func,handleSelectBlogTag:n.PropTypes.func,handleShareBlog:n.PropTypes.func,handleBookmarkBlog:n.PropTypes.func,showAllButtonLink:n.PropTypes.string,showAllButtonText:n.PropTypes.string,viewAllButtonText:n.PropTypes.string,handleShowAll:n.PropTypes.func,handleSelectProduct:n.PropTypes.func,getProductImageUrl:n.PropTypes.func,page:n.PropTypes.number,handlePage:n.PropTypes.func,perPage:n.PropTypes.any,handlePerPage:n.PropTypes.func,totalPage:n.PropTypes.number,perPageOptions:n.PropTypes.array,handleSearch:n.PropTypes.func};module.exports=R;
355
+ `,W=x.forwardRef(({mainTitle:l,sideTitle:u,tags:g,selectedTag:s,handleSelectTag:d=()=>{},blogs:t,miniBlogs:p,products:_,blogsLoading:y=!1,productsLoading:b=!1,sortingOptions:f,sortBy:m,handleSortBy:i=()=>{},allTagText:a="All",searchPlaceholderText:v="Search blogs",timeToReadText:C="{0} min read",getBlogImageUrl:w=()=>{},handleSelectBlog:T=()=>{},handleSelectBlogTag:q=()=>{},handleShareBlog:L=()=>{},showAllButtonLink:E,showAllButtonText:F="Show all products",viewAllButtonText:U="View all (11)",handleViewAll:H=()=>{},handleShowAll:X=()=>{},handleSelectProduct:Z=()=>{},getProductImageUrl:G=()=>{},page:J,handlePage:j=()=>{},perPage:K,handlePerPage:Q=()=>{},totalPage:N,perPageOptions:Y,handleSearch:B=()=>{},onBookmark:A=()=>{},bookmarkComponent:z=e.jsx(e.Fragment,{}),componentName:S},O)=>{const ee=n=>{document.getElementById("landing__container").scrollIntoView({behavior:"smooth",block:"start"}),j==null||j(n)},o=x.useRef(null),ne=oe.useDetectMobile(),[h,re]=x.useState({arrowsVisible:!1,leftArrowDisabled:!1,rightArrowDisabled:!1});x.useEffect(()=>{const n=o==null?void 0:o.current;if(!n)return;const c=()=>{const ae=n.scrollWidth-n.clientWidth;re(se=>({...se,arrowsVisible:n.clientWidth<n.scrollWidth,leftArrowDisabled:n.scrollLeft<=0,rightArrowDisabled:n.scrollLeft>=ae}))},I=new ResizeObserver(c);return I.observe(n),c(),n.addEventListener("scroll",c),()=>{I.disconnect(),n.removeEventListener("scroll",c)}},[]);const te=()=>{var n;(n=o==null?void 0:o.current)==null||n.scrollBy({left:100,behavior:"smooth"})},ie=()=>{var n;(n=o==null?void 0:o.current)==null||n.scrollBy({left:-100,behavior:"smooth"})};return e.jsxs(fe,{ref:O,id:"landing__container",children:[e.jsxs("div",{className:"landing__main-content",children:[e.jsxs("div",{className:"main-content__heading",children:[e.jsx("div",{className:"main-content__title",children:l}),!ne&&(h==null?void 0:h.arrowsVisible)&&e.jsxs("div",{className:"main-content__tags-nav",children:[e.jsx($,{icon:"chevron-left",borderRadius:"curved",btnType:"tinted",color:"neutral",disabled:h==null?void 0:h.leftArrowDisabled,className:"main-content__tag-nav",onClick:ie}),e.jsx($,{icon:"chevron-right",borderRadius:"curved",btnType:"tinted",color:"neutral",disabled:h==null?void 0:h.rightArrowDisabled,className:"main-content__tag-nav",onClick:te})]})]}),g&&e.jsx(de.FaqSectionTags,{ref:o,tags:g,allTagText:a,selectedTagCode:s,onSelectTag:d}),e.jsxs("div",{className:"main-content__actions",children:[e.jsx(ce,{className:"main-content__search",placeholder:v,debounceTime:200,prefix:e.jsx(k,{icon:" mng-lnc-search",sizeInUnits:"1.25rem",className:"main-content__search-prefix"}),color:"neutral",onChange:B}),e.jsx(M,{color:"neutral",control:m==null?void 0:m.name,zIndex:1001,className:"main-content__sort-by",children:f==null?void 0:f.map((n,c)=>e.jsx(R,{active:(n==null?void 0:n.code)===(m==null?void 0:m.code),className:"sort-by__item",onClick:()=>i(n),children:n==null?void 0:n.name},`blog-epxlore-section-sorting-option__${c+1}`))})]}),e.jsxs("div",{className:"main-content__items",children:[t&&(t==null?void 0:t.length)>0&&e.jsx(D,{timeToReadText:C,items:t==null?void 0:t.slice(0,5),isLoading:y,getImage:w,onSelectCard:T,onSelectOption:q,onShare:L,onBookmark:A,bookmarkComponent:z,componentName:S}),e.jsx("div",{className:"main-content__divider"}),_&&(_==null?void 0:_.length)>0&&e.jsx(me,{buttonText:F,buttonLink:E,onButtonAction:X,onSelectCard:Z,items:_,isLoading:b,getImage:G,isHighlight:!0,componentName:S}),e.jsx("div",{className:"main-content__divider"}),t&&(t==null?void 0:t.length)>0&&e.jsx(D,{timeToReadText:C,items:t==null?void 0:t.slice(5),isLoading:y,getImage:w,onSelectCard:T,onSelectOption:q,onShare:L,onBookmark:A,bookmarkComponent:z,componentName:S})]}),N&&N>1&&e.jsx(_e,{perPageOptions:Y,perPage:K,handlePerPage:Q,page:J,handlePage:ee,totalPage:N})]}),e.jsxs("div",{className:"landing__side-content",children:[u&&e.jsx("div",{className:"side-content__title",children:u}),p&&(p==null?void 0:p.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"side-content__items",children:p==null?void 0:p.map((n,c)=>e.jsx(x.Fragment,{children:e.jsxs("div",{className:"side-content__item",onClick:()=>T(n),children:[e.jsx(he.ProductImageWrapper,{src:w(n==null?void 0:n.imageUrl,n==null?void 0:n.uuid)||null,alt:`Mini blog ${c+1}`,className:"item__image"}),e.jsxs("div",{className:"item__content",children:[e.jsx("div",{className:"item__title",children:n==null?void 0:n.title}),e.jsx("div",{className:"item__description",children:P.formatLocaleDateString(n==null?void 0:n.publishedAt)})]})]})},`mini_blg_${c}`))}),e.jsx(le,{onClick:H,className:"side-content__link",children:U})]})]})]})});W.propTypes={mainTitle:r.PropTypes.string,sideTitle:r.PropTypes.string,tags:r.PropTypes.array,selectedTag:r.PropTypes.any,handleSelectTag:r.PropTypes.func,blogs:r.PropTypes.array,miniBlogs:r.PropTypes.array,products:r.PropTypes.array,blogsLoading:r.PropTypes.bool,productsLoading:r.PropTypes.bool,sortingOptions:r.PropTypes.array,sortBy:r.PropTypes.any,handleSortBy:r.PropTypes.func,allTagText:r.PropTypes.string,searchPlaceholderText:r.PropTypes.string,timeToReadText:r.PropTypes.string,getBlogImageUrl:r.PropTypes.func,handleSelectBlog:r.PropTypes.func,handleSelectBlogTag:r.PropTypes.func,handleShareBlog:r.PropTypes.func,handleBookmarkBlog:r.PropTypes.func,showAllButtonLink:r.PropTypes.string,showAllButtonText:r.PropTypes.string,viewAllButtonText:r.PropTypes.string,handleShowAll:r.PropTypes.func,handleSelectProduct:r.PropTypes.func,getProductImageUrl:r.PropTypes.func,page:r.PropTypes.number,handlePage:r.PropTypes.func,perPage:r.PropTypes.any,handlePerPage:r.PropTypes.func,totalPage:r.PropTypes.number,perPageOptions:r.PropTypes.array,handleSearch:r.PropTypes.func};module.exports=W;
@@ -1,19 +1,21 @@
1
- import { jsxs as l, jsx as n, Fragment as L } from "react/jsx-runtime";
2
- import { forwardRef as j, Fragment as B } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
- import { p as O, s as P } from "./utils-BdsZgOUE.js";
5
- import ee from "./TextInput.js";
6
- import k from "./Icon.js";
7
- import ne from "./Link.js";
8
- import F from "./DropdownMenu.js";
1
+ import { jsxs as o, jsx as t, Fragment as j } from "react/jsx-runtime";
2
+ import { forwardRef as V, useRef as ce, useState as le, useEffect as se, Fragment as de } from "react";
3
+ import { P as n } from "./index-CblbdqjE.js";
4
+ import { u as me } from "./useDetectMobile-Bkvj0VMa.js";
5
+ import { p as he, s as fe } from "./utils-BdsZgOUE.js";
6
+ import _e from "./TextInput.js";
7
+ import C from "./Icon.js";
8
+ import ue from "./Link.js";
9
+ import M from "./IconButton.js";
10
+ import W from "./DropdownMenu.js";
9
11
  import E from "./DropdownItem.js";
10
- import { F as te } from "./tag-cRMfP-SZ.js";
11
- import re from "./BlogProductCardsSection.js";
12
- import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
13
- import { P as ie } from "./index-CF3HhgvN.js";
14
- import A from "./BlogListSection.js";
15
- import { M as ae } from "./consts-BuFChS64.js";
16
- const ce = M.div`
12
+ import { F as ge } from "./tag-BtS5lWJ0.js";
13
+ import pe from "./BlogProductCardsSection.js";
14
+ import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
15
+ import { P as ve } from "./index-CF3HhgvN.js";
16
+ import F from "./BlogListSection.js";
17
+ import { M as xe } from "./consts-BuFChS64.js";
18
+ const ye = R.div`
17
19
  display: flex;
18
20
  justify-content: space-between;
19
21
  align-items: center;
@@ -94,93 +96,93 @@ const ce = M.div`
94
96
  }
95
97
  }
96
98
  }
97
- `, oe = j(
99
+ `, be = V(
98
100
  ({
99
- perPageOptions: o = [
101
+ perPageOptions: d = [
100
102
  { code: 10, name: "Show 10 items" },
101
103
  { code: 25, name: "Show 25 items" },
102
104
  { code: 50, name: "Show 50 items" }
103
105
  ],
104
- perPage: f,
105
- handlePerPage: g = () => {
106
+ perPage: u,
107
+ handlePerPage: v = () => {
106
108
  },
107
109
  page: c = 1,
108
- handlePage: s = () => {
110
+ handlePage: m = () => {
109
111
  },
110
- totalPage: t
111
- }, m) => {
112
- var _, d;
113
- const h = () => {
114
- c > 1 && (s == null || s(c - 1));
115
- }, p = () => {
116
- c < t && (s == null || s(c + 1));
112
+ totalPage: r
113
+ }, _) => {
114
+ var p, h;
115
+ const g = () => {
116
+ c > 1 && (m == null || m(c - 1));
117
117
  }, x = () => {
118
+ c < r && (m == null || m(c + 1));
119
+ }, b = () => {
118
120
  const i = [];
119
- if (t <= 7)
120
- for (let a = 1; a <= t; a++)
121
+ if (r <= 7)
122
+ for (let a = 1; a <= r; a++)
121
123
  i.push(a);
122
124
  else
123
- c <= 3 ? i.push(1, 2, 3, "...", t) : c >= t - 2 ? i.push(1, "...", t - 2, t - 1, t) : i.push(1, 2, 3, "...", t);
124
- return i == null ? void 0 : i.map((a, v) => a === "..." ? /* @__PURE__ */ n(
125
+ c <= 3 ? i.push(1, 2, 3, "...", r) : c >= r - 2 ? i.push(1, "...", r - 2, r - 1, r) : i.push(1, 2, 3, "...", r);
126
+ return i == null ? void 0 : i.map((a, y) => a === "..." ? /* @__PURE__ */ t(
125
127
  "div",
126
128
  {
127
129
  className: "pagination__page ellipsis",
128
130
  children: a
129
131
  },
130
- `pagination-ellipsis__${v}`
131
- ) : /* @__PURE__ */ n(
132
+ `pagination-ellipsis__${y}`
133
+ ) : /* @__PURE__ */ t(
132
134
  "div",
133
135
  {
134
- onClick: () => s(a),
136
+ onClick: () => m(a),
135
137
  className: `pagination__page ${c === a ? "active" : ""}`,
136
138
  children: a
137
139
  },
138
- `pagination-page__${v}`
140
+ `pagination-page__${y}`
139
141
  ));
140
142
  };
141
- return /* @__PURE__ */ l(ce, { className: "pagination", children: [
142
- /* @__PURE__ */ n(
143
- F,
143
+ return /* @__PURE__ */ o(ye, { className: "pagination", children: [
144
+ /* @__PURE__ */ t(
145
+ W,
144
146
  {
145
147
  color: "neutral",
146
- control: ((_ = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.code) === f)) == null ? void 0 : _.name) || ((d = o[0]) == null ? void 0 : d.name),
148
+ control: ((p = d == null ? void 0 : d.find((i) => (i == null ? void 0 : i.code) === u)) == null ? void 0 : p.name) || ((h = d[0]) == null ? void 0 : h.name),
147
149
  placement: "bottom",
148
150
  zIndex: 1001,
149
151
  className: "pagination__per-page",
150
- children: o == null ? void 0 : o.map((i, a) => /* @__PURE__ */ n(
152
+ children: d == null ? void 0 : d.map((i, a) => /* @__PURE__ */ t(
151
153
  E,
152
154
  {
153
- active: (i == null ? void 0 : i.code) === (f == null ? void 0 : f.code),
155
+ active: (i == null ? void 0 : i.code) === (u == null ? void 0 : u.code),
154
156
  className: "sort-by__item",
155
- onClick: () => g(i),
157
+ onClick: () => v(i),
156
158
  children: i == null ? void 0 : i.name
157
159
  },
158
160
  `blog-epxlore-section-per-page-option__${a + 1}`
159
161
  ))
160
162
  }
161
163
  ),
162
- /* @__PURE__ */ l("div", { className: "pagination__pages", children: [
163
- /* @__PURE__ */ n(
164
+ /* @__PURE__ */ o("div", { className: "pagination__pages", children: [
165
+ /* @__PURE__ */ t(
164
166
  "div",
165
167
  {
166
168
  className: `pagination__page ${c === 1 ? "disabled" : ""}`,
167
- onClick: h,
168
- children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--left" })
169
+ onClick: g,
170
+ children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--left" })
169
171
  }
170
172
  ),
171
- x(),
172
- /* @__PURE__ */ n(
173
+ b(),
174
+ /* @__PURE__ */ t(
173
175
  "div",
174
176
  {
175
- className: `pagination__page ${c === t ? "disabled" : ""}`,
176
- onClick: p,
177
- children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--right" })
177
+ className: `pagination__page ${c === r ? "disabled" : ""}`,
178
+ onClick: x,
179
+ children: /* @__PURE__ */ t(C, { icon: " mng-lnc-chevron--right" })
178
180
  }
179
181
  )
180
182
  ] })
181
183
  ] });
182
184
  }
183
- ), le = M.div`
185
+ ), we = R.div`
184
186
  display: flex;
185
187
  align-items: flex-start;
186
188
  gap: 2rem;
@@ -197,18 +199,44 @@ const ce = M.div`
197
199
  flex-direction: column;
198
200
  align-items: flex-start;
199
201
  gap: 1.5rem;
202
+ max-width: 50rem;
200
203
 
201
204
  border-right: 1px solid var(--gray-200, #dddfe4);
202
205
  padding-right: 2rem;
203
206
 
204
207
  & .section__tags {
205
- flex-wrap: wrap;
208
+ flex-wrap: nowrap;
209
+ width: 100%;
210
+ overflow-x: hidden;
211
+ white-space: nowrap;
206
212
  }
207
213
 
208
214
  & .pagination {
209
215
  padding: 1.25rem 0;
210
216
  }
211
217
 
218
+ & .main-content__heading {
219
+ display: flex;
220
+ justify-content: space-between;
221
+ width: 100%;
222
+
223
+ & .main-content__tags-nav {
224
+ display: flex;
225
+ gap: 0.25rem;
226
+
227
+ & .main-content__tag-nav {
228
+ &:not(:disabled) {
229
+ color: var(--gray-950, #14161a);
230
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
231
+
232
+ &:hover {
233
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+
212
240
  & .main-content__title {
213
241
  color: var(--gray-950, #14161a);
214
242
  font-size: 1.5rem;
@@ -219,7 +247,11 @@ const ce = M.div`
219
247
 
220
248
  & .tags__item {
221
249
  &:not(.active) {
222
- background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
250
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
251
+
252
+ &:hover {
253
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
254
+ }
223
255
  }
224
256
  }
225
257
 
@@ -356,7 +388,7 @@ const ce = M.div`
356
388
  font-style: normal;
357
389
  font-weight: 500;
358
390
  line-height: 1.25rem;
359
- ${O(2)}
391
+ ${he(2)}
360
392
  }
361
393
 
362
394
  & .item__description {
@@ -371,16 +403,19 @@ const ce = M.div`
371
403
  }
372
404
  }
373
405
 
374
- @media (max-width: ${ae + "px"}) {
406
+ @media (max-width: ${xe + "px"}) {
375
407
  flex-direction: column;
376
408
 
377
409
  & .landing__main-content {
378
410
  width: 100%;
411
+ max-width: 100%;
379
412
  padding-right: 0;
380
413
  border-right: none;
381
414
 
382
415
  & .section__tags {
383
- flex-wrap: nowrap;
416
+ width: 100%;
417
+ overflow-x: auto;
418
+ white-space: nowrap;
384
419
  }
385
420
 
386
421
  & .main-content__actions {
@@ -388,6 +423,8 @@ const ce = M.div`
388
423
  }
389
424
 
390
425
  & .main-content__items {
426
+ width: 100%;
427
+
391
428
  & .main-content__divider {
392
429
  display: none;
393
430
  }
@@ -418,86 +455,142 @@ const ce = M.div`
418
455
  display: none;
419
456
  }
420
457
  }
421
- `, se = j(
458
+ `, Ne = V(
422
459
  ({
423
- mainTitle: o,
424
- sideTitle: f,
425
- tags: g,
460
+ mainTitle: d,
461
+ sideTitle: u,
462
+ tags: v,
426
463
  selectedTag: c,
427
- handleSelectTag: s = () => {
464
+ handleSelectTag: m = () => {
428
465
  },
429
- blogs: t,
430
- miniBlogs: m,
431
- products: h,
432
- blogsLoading: p = !1,
433
- productsLoading: x = !1,
434
- sortingOptions: _,
435
- sortBy: d,
466
+ blogs: r,
467
+ miniBlogs: _,
468
+ products: g,
469
+ blogsLoading: x = !1,
470
+ productsLoading: b = !1,
471
+ sortingOptions: p,
472
+ sortBy: h,
436
473
  handleSortBy: i = () => {
437
474
  },
438
475
  allTagText: a = "All",
439
- searchPlaceholderText: v = "Search blogs",
440
- timeToReadText: T = "{0} min read",
441
- getBlogImageUrl: y = () => {
476
+ searchPlaceholderText: y = "Search blogs",
477
+ timeToReadText: L = "{0} min read",
478
+ getBlogImageUrl: w = () => {
442
479
  },
443
- handleSelectBlog: w = () => {
480
+ handleSelectBlog: N = () => {
444
481
  },
445
- handleSelectBlogTag: C = () => {
482
+ handleSelectBlogTag: A = () => {
446
483
  },
447
- handleShareBlog: I = () => {
484
+ handleShareBlog: z = () => {
448
485
  },
449
486
  // handleBookmarkBlog = () => {},
450
- showAllButtonLink: D,
451
- showAllButtonText: R = "Show all products",
452
- viewAllButtonText: U = "View all (11)",
453
- viewAllButtonLink: de,
454
- handleViewAll: V = () => {
487
+ showAllButtonLink: U,
488
+ showAllButtonText: q = "Show all products",
489
+ viewAllButtonText: H = "View all (11)",
490
+ // viewAllButtonLink,
491
+ handleViewAll: X = () => {
455
492
  },
456
- handleShowAll: q = () => {
493
+ handleShowAll: Z = () => {
457
494
  },
458
- handleSelectProduct: H = () => {
495
+ handleSelectProduct: G = () => {
459
496
  },
460
- getProductImageUrl: W = () => {
497
+ getProductImageUrl: J = () => {
461
498
  },
462
- page: X,
463
- handlePage: b = () => {
499
+ page: K,
500
+ handlePage: k = () => {
464
501
  },
465
- perPage: Z,
466
- handlePerPage: G = () => {
502
+ perPage: Q,
503
+ handlePerPage: Y = () => {
467
504
  },
468
- totalPage: N,
469
- perPageOptions: J,
470
- handleSearch: K = () => {
505
+ totalPage: S,
506
+ perPageOptions: B,
507
+ handleSearch: O = () => {
471
508
  },
472
509
  onBookmark: $ = () => {
473
510
  },
474
- bookmarkComponent: z = /* @__PURE__ */ n(L, { children: " " }),
475
- componentName: S
476
- }, Q) => {
477
- const Y = (r) => {
478
- document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), b == null || b(r);
511
+ bookmarkComponent: I = /* @__PURE__ */ t(j, {}),
512
+ componentName: T
513
+ }, P) => {
514
+ const ee = (e) => {
515
+ document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), k == null || k(e);
516
+ }, l = ce(null), ne = me(), [f, te] = le({
517
+ arrowsVisible: !1,
518
+ leftArrowDisabled: !1,
519
+ rightArrowDisabled: !1
520
+ });
521
+ se(() => {
522
+ const e = l == null ? void 0 : l.current;
523
+ if (!e) return;
524
+ const s = () => {
525
+ const ae = e.scrollWidth - e.clientWidth;
526
+ te((oe) => ({
527
+ ...oe,
528
+ arrowsVisible: e.clientWidth < e.scrollWidth,
529
+ leftArrowDisabled: e.scrollLeft <= 0,
530
+ rightArrowDisabled: e.scrollLeft >= ae
531
+ }));
532
+ }, D = new ResizeObserver(s);
533
+ return D.observe(e), s(), e.addEventListener("scroll", s), () => {
534
+ D.disconnect(), e.removeEventListener("scroll", s);
535
+ };
536
+ }, []);
537
+ const re = () => {
538
+ var e;
539
+ (e = l == null ? void 0 : l.current) == null || e.scrollBy({ left: 100, behavior: "smooth" });
540
+ }, ie = () => {
541
+ var e;
542
+ (e = l == null ? void 0 : l.current) == null || e.scrollBy({ left: -100, behavior: "smooth" });
479
543
  };
480
- return /* @__PURE__ */ l(le, { ref: Q, id: "landing__container", children: [
481
- /* @__PURE__ */ l("div", { className: "landing__main-content", children: [
482
- o && /* @__PURE__ */ n("div", { className: "main-content__title", children: o }),
483
- g && /* @__PURE__ */ n(
484
- te,
544
+ return /* @__PURE__ */ o(we, { ref: P, id: "landing__container", children: [
545
+ /* @__PURE__ */ o("div", { className: "landing__main-content", children: [
546
+ /* @__PURE__ */ o("div", { className: "main-content__heading", children: [
547
+ /* @__PURE__ */ t("div", { className: "main-content__title", children: d }),
548
+ !ne && (f == null ? void 0 : f.arrowsVisible) && /* @__PURE__ */ o("div", { className: "main-content__tags-nav", children: [
549
+ /* @__PURE__ */ t(
550
+ M,
551
+ {
552
+ icon: "chevron-left",
553
+ borderRadius: "curved",
554
+ btnType: "tinted",
555
+ color: "neutral",
556
+ disabled: f == null ? void 0 : f.leftArrowDisabled,
557
+ className: "main-content__tag-nav",
558
+ onClick: ie
559
+ }
560
+ ),
561
+ /* @__PURE__ */ t(
562
+ M,
563
+ {
564
+ icon: "chevron-right",
565
+ borderRadius: "curved",
566
+ btnType: "tinted",
567
+ color: "neutral",
568
+ disabled: f == null ? void 0 : f.rightArrowDisabled,
569
+ className: "main-content__tag-nav",
570
+ onClick: re
571
+ }
572
+ )
573
+ ] })
574
+ ] }),
575
+ v && /* @__PURE__ */ t(
576
+ ge,
485
577
  {
486
- tags: g,
578
+ ref: l,
579
+ tags: v,
487
580
  allTagText: a,
488
581
  selectedTagCode: c,
489
- onSelectTag: s
582
+ onSelectTag: m
490
583
  }
491
584
  ),
492
- /* @__PURE__ */ l("div", { className: "main-content__actions", children: [
493
- /* @__PURE__ */ n(
494
- ee,
585
+ /* @__PURE__ */ o("div", { className: "main-content__actions", children: [
586
+ /* @__PURE__ */ t(
587
+ _e,
495
588
  {
496
589
  className: "main-content__search",
497
- placeholder: v,
590
+ placeholder: y,
498
591
  debounceTime: 200,
499
- prefix: /* @__PURE__ */ n(
500
- k,
592
+ prefix: /* @__PURE__ */ t(
593
+ C,
501
594
  {
502
595
  icon: " mng-lnc-search",
503
596
  sizeInUnits: "1.25rem",
@@ -505,155 +598,155 @@ const ce = M.div`
505
598
  }
506
599
  ),
507
600
  color: "neutral",
508
- onChange: K
601
+ onChange: O
509
602
  }
510
603
  ),
511
- /* @__PURE__ */ n(
512
- F,
604
+ /* @__PURE__ */ t(
605
+ W,
513
606
  {
514
607
  color: "neutral",
515
- control: d == null ? void 0 : d.name,
608
+ control: h == null ? void 0 : h.name,
516
609
  zIndex: 1001,
517
610
  className: "main-content__sort-by",
518
- children: _ == null ? void 0 : _.map((r, u) => /* @__PURE__ */ n(
611
+ children: p == null ? void 0 : p.map((e, s) => /* @__PURE__ */ t(
519
612
  E,
520
613
  {
521
- active: (r == null ? void 0 : r.code) === (d == null ? void 0 : d.code),
614
+ active: (e == null ? void 0 : e.code) === (h == null ? void 0 : h.code),
522
615
  className: "sort-by__item",
523
- onClick: () => i(r),
524
- children: r == null ? void 0 : r.name
616
+ onClick: () => i(e),
617
+ children: e == null ? void 0 : e.name
525
618
  },
526
- `blog-epxlore-section-sorting-option__${u + 1}`
619
+ `blog-epxlore-section-sorting-option__${s + 1}`
527
620
  ))
528
621
  }
529
622
  )
530
623
  ] }),
531
- /* @__PURE__ */ l("div", { className: "main-content__items", children: [
532
- t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
533
- A,
624
+ /* @__PURE__ */ o("div", { className: "main-content__items", children: [
625
+ r && (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
626
+ F,
534
627
  {
535
- timeToReadText: T,
536
- items: t == null ? void 0 : t.slice(0, 5),
537
- isLoading: p,
538
- getImage: y,
539
- onSelectCard: w,
540
- onSelectOption: C,
541
- onShare: I,
628
+ timeToReadText: L,
629
+ items: r == null ? void 0 : r.slice(0, 5),
630
+ isLoading: x,
631
+ getImage: w,
632
+ onSelectCard: N,
633
+ onSelectOption: A,
634
+ onShare: z,
542
635
  onBookmark: $,
543
- bookmarkComponent: z,
544
- componentName: S
636
+ bookmarkComponent: I,
637
+ componentName: T
545
638
  }
546
639
  ),
547
- /* @__PURE__ */ n("div", { className: "main-content__divider" }),
548
- h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
549
- re,
640
+ /* @__PURE__ */ t("div", { className: "main-content__divider" }),
641
+ g && (g == null ? void 0 : g.length) > 0 && /* @__PURE__ */ t(
642
+ pe,
550
643
  {
551
- buttonText: R,
552
- buttonLink: D,
553
- onButtonAction: q,
554
- onSelectCard: H,
555
- items: h,
556
- isLoading: x,
557
- getImage: W,
644
+ buttonText: q,
645
+ buttonLink: U,
646
+ onButtonAction: Z,
647
+ onSelectCard: G,
648
+ items: g,
649
+ isLoading: b,
650
+ getImage: J,
558
651
  isHighlight: !0,
559
- componentName: S
652
+ componentName: T
560
653
  }
561
654
  ),
562
- /* @__PURE__ */ n("div", { className: "main-content__divider" }),
563
- t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
564
- A,
655
+ /* @__PURE__ */ t("div", { className: "main-content__divider" }),
656
+ r && (r == null ? void 0 : r.length) > 0 && /* @__PURE__ */ t(
657
+ F,
565
658
  {
566
- timeToReadText: T,
567
- items: t == null ? void 0 : t.slice(5),
568
- isLoading: p,
569
- getImage: y,
570
- onSelectCard: w,
571
- onSelectOption: C,
572
- onShare: I,
659
+ timeToReadText: L,
660
+ items: r == null ? void 0 : r.slice(5),
661
+ isLoading: x,
662
+ getImage: w,
663
+ onSelectCard: N,
664
+ onSelectOption: A,
665
+ onShare: z,
573
666
  onBookmark: $,
574
- bookmarkComponent: z,
575
- componentName: S
667
+ bookmarkComponent: I,
668
+ componentName: T
576
669
  }
577
670
  )
578
671
  ] }),
579
- N && N > 1 && /* @__PURE__ */ n(
580
- oe,
672
+ S && S > 1 && /* @__PURE__ */ t(
673
+ be,
581
674
  {
582
- perPageOptions: J,
583
- perPage: Z,
584
- handlePerPage: G,
585
- page: X,
586
- handlePage: Y,
587
- totalPage: N
675
+ perPageOptions: B,
676
+ perPage: Q,
677
+ handlePerPage: Y,
678
+ page: K,
679
+ handlePage: ee,
680
+ totalPage: S
588
681
  }
589
682
  )
590
683
  ] }),
591
- /* @__PURE__ */ l("div", { className: "landing__side-content", children: [
592
- f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
593
- m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(L, { children: [
594
- /* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, u) => /* @__PURE__ */ n(B, { children: /* @__PURE__ */ l(
684
+ /* @__PURE__ */ o("div", { className: "landing__side-content", children: [
685
+ u && /* @__PURE__ */ t("div", { className: "side-content__title", children: u }),
686
+ _ && (_ == null ? void 0 : _.length) > 0 && /* @__PURE__ */ o(j, { children: [
687
+ /* @__PURE__ */ t("div", { className: "side-content__items", children: _ == null ? void 0 : _.map((e, s) => /* @__PURE__ */ t(de, { children: /* @__PURE__ */ o(
595
688
  "div",
596
689
  {
597
690
  className: "side-content__item",
598
- onClick: () => w(r),
691
+ onClick: () => N(e),
599
692
  children: [
600
- /* @__PURE__ */ n(
601
- ie,
693
+ /* @__PURE__ */ t(
694
+ ve,
602
695
  {
603
- src: y(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
604
- alt: `Mini blog ${u + 1}`,
696
+ src: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
697
+ alt: `Mini blog ${s + 1}`,
605
698
  className: "item__image"
606
699
  }
607
700
  ),
608
- /* @__PURE__ */ l("div", { className: "item__content", children: [
609
- /* @__PURE__ */ n("div", { className: "item__title", children: r == null ? void 0 : r.title }),
610
- /* @__PURE__ */ n("div", { className: "item__description", children: P(r == null ? void 0 : r.publishedAt) })
701
+ /* @__PURE__ */ o("div", { className: "item__content", children: [
702
+ /* @__PURE__ */ t("div", { className: "item__title", children: e == null ? void 0 : e.title }),
703
+ /* @__PURE__ */ t("div", { className: "item__description", children: fe(e == null ? void 0 : e.publishedAt) })
611
704
  ] })
612
705
  ]
613
706
  }
614
- ) }, `mini_blg_${u}`)) }),
615
- /* @__PURE__ */ n(ne, { onClick: V, className: "side-content__link", children: U })
707
+ ) }, `mini_blg_${s}`)) }),
708
+ /* @__PURE__ */ t(ue, { onClick: X, className: "side-content__link", children: H })
616
709
  ] })
617
710
  ] })
618
711
  ] });
619
712
  }
620
713
  );
621
- se.propTypes = {
622
- mainTitle: e.string,
623
- sideTitle: e.string,
624
- tags: e.array,
625
- selectedTag: e.any,
626
- handleSelectTag: e.func,
627
- blogs: e.array,
628
- miniBlogs: e.array,
629
- products: e.array,
630
- blogsLoading: e.bool,
631
- productsLoading: e.bool,
632
- sortingOptions: e.array,
633
- sortBy: e.any,
634
- handleSortBy: e.func,
635
- allTagText: e.string,
636
- searchPlaceholderText: e.string,
637
- timeToReadText: e.string,
638
- getBlogImageUrl: e.func,
639
- handleSelectBlog: e.func,
640
- handleSelectBlogTag: e.func,
641
- handleShareBlog: e.func,
642
- handleBookmarkBlog: e.func,
643
- showAllButtonLink: e.string,
644
- showAllButtonText: e.string,
645
- viewAllButtonText: e.string,
646
- handleShowAll: e.func,
647
- handleSelectProduct: e.func,
648
- getProductImageUrl: e.func,
649
- page: e.number,
650
- handlePage: e.func,
651
- perPage: e.any,
652
- handlePerPage: e.func,
653
- totalPage: e.number,
654
- perPageOptions: e.array,
655
- handleSearch: e.func
714
+ Ne.propTypes = {
715
+ mainTitle: n.string,
716
+ sideTitle: n.string,
717
+ tags: n.array,
718
+ selectedTag: n.any,
719
+ handleSelectTag: n.func,
720
+ blogs: n.array,
721
+ miniBlogs: n.array,
722
+ products: n.array,
723
+ blogsLoading: n.bool,
724
+ productsLoading: n.bool,
725
+ sortingOptions: n.array,
726
+ sortBy: n.any,
727
+ handleSortBy: n.func,
728
+ allTagText: n.string,
729
+ searchPlaceholderText: n.string,
730
+ timeToReadText: n.string,
731
+ getBlogImageUrl: n.func,
732
+ handleSelectBlog: n.func,
733
+ handleSelectBlogTag: n.func,
734
+ handleShareBlog: n.func,
735
+ handleBookmarkBlog: n.func,
736
+ showAllButtonLink: n.string,
737
+ showAllButtonText: n.string,
738
+ viewAllButtonText: n.string,
739
+ handleShowAll: n.func,
740
+ handleSelectProduct: n.func,
741
+ getProductImageUrl: n.func,
742
+ page: n.number,
743
+ handlePage: n.func,
744
+ perPage: n.any,
745
+ handlePerPage: n.func,
746
+ totalPage: n.number,
747
+ perPageOptions: n.array,
748
+ handleSearch: n.func
656
749
  };
657
750
  export {
658
- se as default
751
+ Ne as default
659
752
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),u=require("react"),n=require("./index-BpbMKBf_.cjs"),P=require("./tag-yputMSpE.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./Icon.cjs"),b=require("./IconButton.cjs"),I=require("./Button.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),m=({title:t,description:i,questionText:a,feedbackText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}})=>{const[h,c]=u.useState(!1),[x,y]=u.useState(!1),T=()=>{c(o=>!o),p()},r=(o,_)=>{o==null||o.stopPropagation(),y(!0),d(_)};return e.jsxs(P.ItemContainer,{className:h?"expanded":"",onClick:T,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:t}),e.jsx(q,{icon:h?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:i}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(q,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:a}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(b,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!0)}),e.jsx(b,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!1)})]})]})})]})]})},v=u.forwardRef(({items:t=[],questionText:i,feedbackText:a,showMoreText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}},h)=>{const c=w.useDetectMobile(),[x,y]=u.useState(!1),T=()=>{y(o=>!o)},r=u.useMemo(()=>{if(c)return t==null?void 0:t.map((s,f)=>e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`));const o=[],_=[];return t==null||t.forEach((s,f)=>{f%2===0?o.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`)):_.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:_})]})},[t,c]);return e.jsx(P.ItemsContainer,{ref:h,children:c?x?r:e.jsxs(e.Fragment,{children:[r==null?void 0:r.slice(0,4),(r==null?void 0:r.length)>4&&e.jsx(I,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:T})]}):r})});m.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};v.propTypes={items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};const M=N.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),u=require("react"),n=require("./index-BpbMKBf_.cjs"),P=require("./tag-CmeZsPQt.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./Icon.cjs"),b=require("./IconButton.cjs"),I=require("./Button.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),m=({title:t,description:i,questionText:a,feedbackText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}})=>{const[h,c]=u.useState(!1),[x,y]=u.useState(!1),T=()=>{c(o=>!o),p()},r=(o,_)=>{o==null||o.stopPropagation(),y(!0),d(_)};return e.jsxs(P.ItemContainer,{className:h?"expanded":"",onClick:T,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:t}),e.jsx(q,{icon:h?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:i}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(q,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:a}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(b,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!0)}),e.jsx(b,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!1)})]})]})})]})]})},v=u.forwardRef(({items:t=[],questionText:i,feedbackText:a,showMoreText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}},h)=>{const c=w.useDetectMobile(),[x,y]=u.useState(!1),T=()=>{y(o=>!o)},r=u.useMemo(()=>{if(c)return t==null?void 0:t.map((s,f)=>e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`));const o=[],_=[];return t==null||t.forEach((s,f)=>{f%2===0?o.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`)):_.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:_})]})},[t,c]);return e.jsx(P.ItemsContainer,{ref:h,children:c?x?r:e.jsxs(e.Fragment,{children:[r==null?void 0:r.slice(0,4),(r==null?void 0:r.length)>4&&e.jsx(I,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:T})]}):r})});m.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};v.propTypes={items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};const M=N.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as i, Fragment as b } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useState as x, useMemo as q } from "react";
3
3
  import { P as n } from "./index-CblbdqjE.js";
4
- import { I as M, a as C, F } from "./tag-cRMfP-SZ.js";
4
+ import { I as M, a as C, F } from "./tag-BtS5lWJ0.js";
5
5
  import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import w from "./Icon.js";
7
7
  import S from "./IconButton.js";
@@ -1,9 +1,9 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
3
  import { P as r } from "./index-CblbdqjE.js";
4
4
  import d from "./Chip.js";
5
5
  import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { M as t } from "./consts-BuFChS64.js";
6
+ import { M as a } from "./consts-BuFChS64.js";
7
7
  const p = o.div`
8
8
  display: flex;
9
9
  gap: 0.75rem;
@@ -12,7 +12,7 @@ const p = o.div`
12
12
 
13
13
  & .tags__item {
14
14
  color: var(--gray-900, #0c1520);
15
- background: var(--gray-100, #f3f6fb);
15
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
16
16
  font-size: 0.875rem;
17
17
  font-style: normal;
18
18
  font-weight: 400;
@@ -33,6 +33,7 @@ const p = o.div`
33
33
 
34
34
  &:hover {
35
35
  background: var(--gray-200, #e4e9f0);
36
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
36
37
  }
37
38
 
38
39
  &:focus {
@@ -40,7 +41,7 @@ const p = o.div`
40
41
  }
41
42
  }
42
43
 
43
- @media (max-width: ${t + "px"}) {
44
+ @media (max-width: ${a + "px"}) {
44
45
  width: 100%;
45
46
  overflow-x: auto;
46
47
  white-space: nowrap;
@@ -59,7 +60,7 @@ const p = o.div`
59
60
  /* Safari and Chrome */
60
61
  }
61
62
  }
62
- `, b = o.div`
63
+ `, v = o.div`
63
64
  display: flex;
64
65
  gap: 1.25rem;
65
66
  width: 100%;
@@ -84,10 +85,10 @@ const p = o.div`
84
85
  }
85
86
  }
86
87
 
87
- @media (max-width: ${t + "px"}) {
88
+ @media (max-width: ${a + "px"}) {
88
89
  flex-direction: column;
89
90
  }
90
- `, v = o.div`
91
+ `, y = o.div`
91
92
  width: 100%;
92
93
  height: fit-content;
93
94
  background: var(--white, #fff);
@@ -167,7 +168,7 @@ const p = o.div`
167
168
  }
168
169
  }
169
170
 
170
- @media (max-width: ${t + "px"}) {
171
+ @media (max-width: ${a + "px"}) {
171
172
  & .card__impression {
172
173
  justify-content: space-between;
173
174
 
@@ -176,9 +177,9 @@ const p = o.div`
176
177
  }
177
178
  }
178
179
  }
179
- `, g = m(
180
+ `, g = f(
180
181
  ({ tags: n = [], allTagText: i, selectedTagCode: l = null, onSelectTag: s = () => {
181
- } }, c) => /* @__PURE__ */ a(p, { ref: c, className: "section__tags", children: [{ name: i, code: null }, ...n].map((e, f) => /* @__PURE__ */ a(
182
+ } }, c) => /* @__PURE__ */ t(p, { ref: c, className: "section__tags", children: [{ name: i, code: null }, ...n].map((e, m) => /* @__PURE__ */ t(
182
183
  d,
183
184
  {
184
185
  label: e == null ? void 0 : e.name,
@@ -189,7 +190,7 @@ const p = o.div`
189
190
  s(e);
190
191
  }
191
192
  },
192
- `faq-section-tag__${f + 1}`
193
+ `faq-section-tag__${m + 1}`
193
194
  )) })
194
195
  );
195
196
  g.propTypes = {
@@ -199,6 +200,6 @@ g.propTypes = {
199
200
  };
200
201
  export {
201
202
  g as F,
202
- b as I,
203
- v as a
203
+ v as I,
204
+ y as a
204
205
  };
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),m=require("react"),r=require("./index-BpbMKBf_.cjs"),p=require("./Chip.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./consts-goSZX3xP.cjs"),g=o.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("react"),r=require("./index-BpbMKBf_.cjs"),p=require("./Chip.cjs"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),g=n.styled.div`
2
2
  display: flex;
3
3
  gap: 0.75rem;
4
4
  align-items: center;
@@ -6,7 +6,7 @@
6
6
 
7
7
  & .tags__item {
8
8
  color: var(--gray-900, #0c1520);
9
- background: var(--gray-100, #f3f6fb);
9
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
10
10
  font-size: 0.875rem;
11
11
  font-style: normal;
12
12
  font-weight: 400;
@@ -27,6 +27,7 @@
27
27
 
28
28
  &:hover {
29
29
  background: var(--gray-200, #e4e9f0);
30
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
30
31
  }
31
32
 
32
33
  &:focus {
@@ -34,7 +35,7 @@
34
35
  }
35
36
  }
36
37
 
37
- @media (max-width: ${t.MOBILE_SIZE_PX+"px"}) {
38
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
38
39
  width: 100%;
39
40
  overflow-x: auto;
40
41
  white-space: nowrap;
@@ -53,7 +54,7 @@
53
54
  /* Safari and Chrome */
54
55
  }
55
56
  }
56
- `,u=o.styled.div`
57
+ `,u=n.styled.div`
57
58
  display: flex;
58
59
  gap: 1.25rem;
59
60
  width: 100%;
@@ -78,10 +79,10 @@
78
79
  }
79
80
  }
80
81
 
81
- @media (max-width: ${t.MOBILE_SIZE_PX+"px"}) {
82
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
82
83
  flex-direction: column;
83
84
  }
84
- `,h=o.styled.div`
85
+ `,h=n.styled.div`
85
86
  width: 100%;
86
87
  height: fit-content;
87
88
  background: var(--white, #fff);
@@ -161,7 +162,7 @@
161
162
  }
162
163
  }
163
164
 
164
- @media (max-width: ${t.MOBILE_SIZE_PX+"px"}) {
165
+ @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
165
166
  & .card__impression {
166
167
  justify-content: space-between;
167
168
 
@@ -170,4 +171,4 @@
170
171
  }
171
172
  }
172
173
  }
173
- `,i=m.forwardRef(({tags:a=[],allTagText:s,selectedTagCode:l=null,onSelectTag:c=()=>{}},d)=>n.jsx(g,{ref:d,className:"section__tags",children:[{name:s,code:null},...a].map((e,f)=>n.jsx(p,{label:e==null?void 0:e.name,borderRadius:"curved",color:"neutral",className:`tags__item ${l===(e==null?void 0:e.code)?"active":""}`,onClick:()=>{c(e)}},`faq-section-tag__${f+1}`))}));i.propTypes={tags:r.PropTypes.array,allTagText:r.PropTypes.string,onSelectTag:r.PropTypes.func};exports.FaqSectionTags=i;exports.ItemContainer=h;exports.ItemsContainer=u;
174
+ `,a=m.forwardRef(({tags:i=[],allTagText:s,selectedTagCode:l=null,onSelectTag:c=()=>{}},d)=>t.jsx(g,{ref:d,className:"section__tags",children:[{name:s,code:null},...i].map((e,f)=>t.jsx(p,{label:e==null?void 0:e.name,borderRadius:"curved",color:"neutral",className:`tags__item ${l===(e==null?void 0:e.code)?"active":""}`,onClick:()=>{c(e)}},`faq-section-tag__${f+1}`))}));a.propTypes={tags:r.PropTypes.array,allTagText:r.PropTypes.string,onSelectTag:r.PropTypes.func};exports.FaqSectionTags=a;exports.ItemContainer=h;exports.ItemsContainer=u;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.163",
3
+ "version": "4.0.164",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [