@lanaco/lnc-react-ui 4.0.200 → 4.0.202

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 (38) hide show
  1. package/dist/BannerSectionCarousel.cjs +4 -4
  2. package/dist/BannerSectionCarousel.js +51 -542
  3. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  4. package/dist/BlogCardsSponsoredSection.js +1 -1
  5. package/dist/BlogListSection.cjs +1 -1
  6. package/dist/BlogListSection.js +1 -1
  7. package/dist/BlogsSectionDetailed.cjs +1 -1
  8. package/dist/BlogsSectionDetailed.js +1 -1
  9. package/dist/BlogsSectionSimple.cjs +1 -1
  10. package/dist/BlogsSectionSimple.js +1 -1
  11. package/dist/BlogsSectionWithFilters.cjs +1 -1
  12. package/dist/BlogsSectionWithFilters.js +1 -1
  13. package/dist/DetailedProductsSection.cjs +1 -1
  14. package/dist/DetailedProductsSection.js +1 -1
  15. package/dist/GiftCardsSection.cjs +1 -1
  16. package/dist/GiftCardsSection.js +1 -1
  17. package/dist/PartnerBannerSection.cjs +105 -0
  18. package/dist/PartnerBannerSection.js +159 -0
  19. package/dist/PartnerBrandsSection.cjs +62 -0
  20. package/dist/PartnerBrandsSection.js +154 -0
  21. package/dist/PartnerCardsSection.cjs +134 -0
  22. package/dist/PartnerCardsSection.js +203 -0
  23. package/dist/PartnerStatsSection.cjs +100 -0
  24. package/dist/PartnerStatsSection.js +124 -0
  25. package/dist/ProductsWithBannerSection.cjs +1 -1
  26. package/dist/ProductsWithBannerSection.js +1 -1
  27. package/dist/SalesCampaignsSection.cjs +36 -26
  28. package/dist/SalesCampaignsSection.js +226 -213
  29. package/dist/SimpleCategoriesSection.cjs +1 -1
  30. package/dist/SimpleCategoriesSection.js +1 -1
  31. package/dist/index-BppfjY8h.js +497 -0
  32. package/dist/index-DeS-oqJB.cjs +1 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.js +43 -35
  35. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  36. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  37. package/package.json +6 -2
  38. package/vite.config.js +16 -0
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),s=require("./utils-RnrgDDZP.cjs"),y=require("./Icon.cjs"),x=require("./style-CkcozOY6.cjs"),R=require("./index-uwl7BjRF.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),N=require("./consts-goSZX3xP.cjs"),$=require("./Button.cjs"),z=require("./index-D0IYt1s3.cjs"),I=j.styled.a`
1
+ "use strict";const r=require("react/jsx-runtime"),d=require("react"),s=require("./utils-RnrgDDZP.cjs"),y=require("./Icon.cjs"),x=require("./style-B4kAj6YU.cjs"),R=require("./index-uwl7BjRF.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),N=require("./consts-goSZX3xP.cjs"),$=require("./Button.cjs"),z=require("./index-D0IYt1s3.cjs"),I=j.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as z, useRef as I, memo as R, useMemo as B } from "react";
3
3
  import { m as S, q as C, s as O, v as N, k as b } from "./utils-DtEfC-TX.js";
4
4
  import v from "./Icon.js";
5
- import { B as U } from "./style-Cmlod7oq.js";
5
+ import { B as U } from "./style-neMbLWE6.js";
6
6
  import { P as M } from "./index-B22BZVBG.js";
7
7
  import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as k } from "./consts-BuFChS64.js";
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("react"),P=require("./Icon.cjs"),R=require("./IconButton.cjs"),d=require("./utils-RnrgDDZP.cjs"),N=require("./index-uwl7BjRF.cjs"),q=require("./style-CkcozOY6.cjs"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),W=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),B=x.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),P=require("./Icon.cjs"),R=require("./IconButton.cjs"),d=require("./utils-RnrgDDZP.cjs"),N=require("./index-uwl7BjRF.cjs"),q=require("./style-B4kAj6YU.cjs"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),W=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),B=x.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -4,7 +4,7 @@ import I from "./Icon.js";
4
4
  import j from "./IconButton.js";
5
5
  import { m as q, q as A, s as F, v as L, l as X } from "./utils-DtEfC-TX.js";
6
6
  import { P as Z } from "./index-B22BZVBG.js";
7
- import { B as H } from "./style-Cmlod7oq.js";
7
+ import { B as H } from "./style-neMbLWE6.js";
8
8
  import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
9
  import { M as T } from "./consts-BuFChS64.js";
10
10
  import { b as s, S as l, c as g, a as i } from "./style-BwQ4djFC.js";
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),O=require("./Button.cjs"),q=require("./index-uwl7BjRF.cjs"),B=require("./index-D-3I_Ppj.cjs"),D=v.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-RnrgDDZP.cjs"),k=require("./style-B4kAj6YU.cjs"),O=require("./Button.cjs"),q=require("./index-uwl7BjRF.cjs"),B=require("./index-D-3I_Ppj.cjs"),D=v.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -4,7 +4,7 @@ import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as L } from "./consts-BuFChS64.js";
5
5
  import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { m as M, s as j, q as I, v as S, k as N } from "./utils-DtEfC-TX.js";
7
- import { B as P, R as U } from "./style-Cmlod7oq.js";
7
+ import { B as P, R as U } from "./style-neMbLWE6.js";
8
8
  import W from "./Button.js";
9
9
  import { P as E } from "./index-B22BZVBG.js";
10
10
  import { S as _ } from "./index-CBMsUFkS.js";
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),p=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-RnrgDDZP.cjs"),C=require("./style-CkcozOY6.cjs"),M=require("./Button.cjs"),$=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=j.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),p=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./utils-RnrgDDZP.cjs"),C=require("./style-B4kAj6YU.cjs"),M=require("./Button.cjs"),$=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=j.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -4,7 +4,7 @@ import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as B } from "./consts-BuFChS64.js";
5
5
  import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { w as U, m as W, k as v } from "./utils-DtEfC-TX.js";
7
- import { B as z, R as j } from "./style-Cmlod7oq.js";
7
+ import { B as z, R as j } from "./style-neMbLWE6.js";
8
8
  import D from "./Button.js";
9
9
  import E from "./Link.js";
10
10
  import { P as A } from "./index-B22BZVBG.js";
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),W=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./utils-RnrgDDZP.cjs"),T=require("./style-CkcozOY6.cjs"),E=require("./Button.cjs"),I=require("./Link.cjs"),M=require("./index-uwl7BjRF.cjs"),P=require("./index-CRk3vcd4.cjs"),s=require("./style-BAcV7F53.cjs"),O=S.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),W=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./utils-RnrgDDZP.cjs"),T=require("./style-B4kAj6YU.cjs"),E=require("./Button.cjs"),I=require("./Link.cjs"),M=require("./index-uwl7BjRF.cjs"),P=require("./index-CRk3vcd4.cjs"),s=require("./style-BAcV7F53.cjs"),O=S.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -4,7 +4,7 @@ import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as $ } from "./consts-BuFChS64.js";
5
5
  import { u as U } from "./useDetectMobile-Bkvj0VMa.js";
6
6
  import { m as D, k as C } from "./utils-DtEfC-TX.js";
7
- import { T as K } from "./style-Cmlod7oq.js";
7
+ import { T as K } from "./style-neMbLWE6.js";
8
8
  import G from "./Button.js";
9
9
  import H from "./Link.js";
10
10
  import { P } from "./index-B22BZVBG.js";
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),Q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),K=require("./consts-goSZX3xP.cjs"),W=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),z=require("./useDetectMobile-zkbzoOGV.cjs"),G=require("./style-CkcozOY6.cjs"),j=require("./index-CS4w87SW.cjs"),V=require("./index-CRk3vcd4.cjs"),X=require("./index-oYE1Pl7q.cjs"),Z=Q.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),Q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),K=require("./consts-goSZX3xP.cjs"),W=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),z=require("./useDetectMobile-zkbzoOGV.cjs"),G=require("./style-B4kAj6YU.cjs"),j=require("./index-CS4w87SW.cjs"),V=require("./index-CRk3vcd4.cjs"),X=require("./index-oYE1Pl7q.cjs"),Z=Q.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -5,7 +5,7 @@ import { M as G } from "./consts-BuFChS64.js";
5
5
  import V from "./Button.js";
6
6
  import { k as c } from "./utils-DtEfC-TX.js";
7
7
  import { u as X } from "./useDetectMobile-Bkvj0VMa.js";
8
- import { T as Z } from "./style-Cmlod7oq.js";
8
+ import { T as Z } from "./style-neMbLWE6.js";
9
9
  import { D as H, S as J } from "./index-BASX-BjS.js";
10
10
  import { S as Y } from "./index-CwMCk9wV.js";
11
11
  import { S as x } from "./index-4wvppFLx.js";
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),f=require("react"),C=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-CkcozOY6.cjs"),u=require("./utils-RnrgDDZP.cjs"),R=require("./Button.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),L=g.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),f=require("react"),C=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-B4kAj6YU.cjs"),u=require("./utils-RnrgDDZP.cjs"),R=require("./Button.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),L=g.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as r, Fragment as R } from "react/jsx-runtime";
2
2
  import { forwardRef as C, Suspense as $ } from "react";
3
3
  import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { R as N } from "./style-Cmlod7oq.js";
4
+ import { R as N } from "./style-neMbLWE6.js";
5
5
  import { p as A, G as L, k as b } from "./utils-DtEfC-TX.js";
6
6
  import W from "./Button.js";
7
7
  import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
@@ -0,0 +1,105 @@
1
+ "use strict";const i=require("react/jsx-runtime"),m=require("react"),d=require("./Icon.cjs"),g=require("./Button.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),h=_.styled.div`
2
+ display: flex;
3
+ height: 100%;
4
+ max-height: 19rem;
5
+ padding: 2rem;
6
+ align-items: flex-start;
7
+ flex-direction: column;
8
+ justify-content: space-between;
9
+ background: ${e=>e!=null&&e.imageUrl?`url("${e==null?void 0:e.imageUrl}")`:"white"};
10
+ background-size: cover;
11
+ background-repeat: no-repeat;
12
+ background-position: center;
13
+ border-radius: 1.25rem;
14
+ gap: 2rem;
15
+
16
+ & .section__text {
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: flex-start;
20
+ gap: 1rem;
21
+ align-self: stretch;
22
+ max-width: 50rem;
23
+
24
+ & .section__title {
25
+ color: var(--white, #fff);
26
+ font-weight: 600;
27
+ font-size: 2rem;
28
+ leading-trim: none;
29
+ line-height: 2.5rem;
30
+ letter-spacing: 0%;
31
+ }
32
+
33
+ & .section__description {
34
+ color: var(--white, #fff);
35
+ font-weight: 400;
36
+ font-size: 0.875rem;
37
+ leading-trim: none;
38
+ line-height: 1.25rem;
39
+ letter-spacing: 0.0156rem;
40
+ }
41
+ }
42
+
43
+ & .section__items {
44
+ display: grid;
45
+ grid-template-columns: ${()=>"repeat(2, minmax(0, auto))"};
46
+ row-gap: 0.75rem;
47
+ column-gap: 3rem;
48
+
49
+ & .section__item {
50
+ display: flex;
51
+ gap: 0.5rem;
52
+
53
+ & .item__text {
54
+ color: var(--white, #fff);
55
+ font-weight: 400;
56
+ font-size: 0.75rem;
57
+ leading-trim: none;
58
+ line-height: 1rem;
59
+ letter-spacing: 0.025rem;
60
+ }
61
+ }
62
+ }
63
+
64
+ & .section__action {
65
+ background: var(--white, #fff);
66
+ color: var(--gray-950, #14161a);
67
+ font-size: 0.875rem;
68
+ font-style: normal;
69
+ font-weight: 500;
70
+ line-height: 1.25rem;
71
+
72
+ &:hover {
73
+ color: var(--gray-700, #4e555f);
74
+ }
75
+
76
+ &:focus {
77
+ outline: none;
78
+ }
79
+ }
80
+
81
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
82
+ max-height: 100%;
83
+ padding: 1.5rem;
84
+
85
+ & .section__text {
86
+ max-width: 100%;
87
+
88
+ & .section__title {
89
+ font-size: 1.375rem;
90
+ line-height: 1.75rem;
91
+ }
92
+ }
93
+
94
+ & .section__items {
95
+ display: flex;
96
+ flex-direction: column;
97
+ gap: 0.75rem;
98
+
99
+ & .section__item {
100
+ display: flex;
101
+ gap: 0.5rem;
102
+ }
103
+ }
104
+ }
105
+ `,x=m.forwardRef(({title:e,description:r,imageUrl:s,items:t,buttonText:n,buttonLink:o,onButtonAction:a=()=>{}},u)=>i.jsxs(h,{imageUrl:s,children:[i.jsxs("div",{className:"section__text",children:[e&&i.jsx("div",{className:"section__title",children:e}),r&&i.jsx("div",{className:"section__description",children:r})]}),t&&(t==null?void 0:t.length)>0&&i.jsx("div",{className:"section__items",children:t==null?void 0:t.map((c,l)=>i.jsxs("div",{className:"section__item",children:[i.jsx(d,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1rem",color:"success",className:"item__icon"}),i.jsx("div",{className:"item__text",children:c})]},`partner-banner-section-item__${l+1}`))}),n&&o&&i.jsx(g,{text:n,onClick:()=>a(o),borderRadius:"curved",color:"gray",className:"section__action"})]}));module.exports=x;
@@ -0,0 +1,159 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import f from "./Icon.js";
4
+ import g from "./Button.js";
5
+ import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { M as h } from "./consts-BuFChS64.js";
7
+ const p = _.div`
8
+ display: flex;
9
+ height: 100%;
10
+ max-height: 19rem;
11
+ padding: 2rem;
12
+ align-items: flex-start;
13
+ flex-direction: column;
14
+ justify-content: space-between;
15
+ background: ${(e) => e != null && e.imageUrl ? `url("${e == null ? void 0 : e.imageUrl}")` : "white"};
16
+ background-size: cover;
17
+ background-repeat: no-repeat;
18
+ background-position: center;
19
+ border-radius: 1.25rem;
20
+ gap: 2rem;
21
+
22
+ & .section__text {
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: flex-start;
26
+ gap: 1rem;
27
+ align-self: stretch;
28
+ max-width: 50rem;
29
+
30
+ & .section__title {
31
+ color: var(--white, #fff);
32
+ font-weight: 600;
33
+ font-size: 2rem;
34
+ leading-trim: none;
35
+ line-height: 2.5rem;
36
+ letter-spacing: 0%;
37
+ }
38
+
39
+ & .section__description {
40
+ color: var(--white, #fff);
41
+ font-weight: 400;
42
+ font-size: 0.875rem;
43
+ leading-trim: none;
44
+ line-height: 1.25rem;
45
+ letter-spacing: 0.0156rem;
46
+ }
47
+ }
48
+
49
+ & .section__items {
50
+ display: grid;
51
+ grid-template-columns: ${() => "repeat(2, minmax(0, auto))"};
52
+ row-gap: 0.75rem;
53
+ column-gap: 3rem;
54
+
55
+ & .section__item {
56
+ display: flex;
57
+ gap: 0.5rem;
58
+
59
+ & .item__text {
60
+ color: var(--white, #fff);
61
+ font-weight: 400;
62
+ font-size: 0.75rem;
63
+ leading-trim: none;
64
+ line-height: 1rem;
65
+ letter-spacing: 0.025rem;
66
+ }
67
+ }
68
+ }
69
+
70
+ & .section__action {
71
+ background: var(--white, #fff);
72
+ color: var(--gray-950, #14161a);
73
+ font-size: 0.875rem;
74
+ font-style: normal;
75
+ font-weight: 500;
76
+ line-height: 1.25rem;
77
+
78
+ &:hover {
79
+ color: var(--gray-700, #4e555f);
80
+ }
81
+
82
+ &:focus {
83
+ outline: none;
84
+ }
85
+ }
86
+
87
+ @media (max-width: ${h + "px"}) {
88
+ max-height: 100%;
89
+ padding: 1.5rem;
90
+
91
+ & .section__text {
92
+ max-width: 100%;
93
+
94
+ & .section__title {
95
+ font-size: 1.375rem;
96
+ line-height: 1.75rem;
97
+ }
98
+ }
99
+
100
+ & .section__items {
101
+ display: flex;
102
+ flex-direction: column;
103
+ gap: 0.75rem;
104
+
105
+ & .section__item {
106
+ display: flex;
107
+ gap: 0.5rem;
108
+ }
109
+ }
110
+ }
111
+ `, k = d(
112
+ ({
113
+ title: e,
114
+ description: n,
115
+ imageUrl: c,
116
+ items: i,
117
+ buttonText: o,
118
+ buttonLink: a,
119
+ onButtonAction: l = () => {
120
+ }
121
+ }, x) => /* @__PURE__ */ r(p, { imageUrl: c, children: [
122
+ /* @__PURE__ */ r("div", { className: "section__text", children: [
123
+ e && /* @__PURE__ */ t("div", { className: "section__title", children: e }),
124
+ n && /* @__PURE__ */ t("div", { className: "section__description", children: n })
125
+ ] }),
126
+ i && (i == null ? void 0 : i.length) > 0 && /* @__PURE__ */ t("div", { className: "section__items", children: i == null ? void 0 : i.map((s, m) => /* @__PURE__ */ r(
127
+ "div",
128
+ {
129
+ className: "section__item",
130
+ children: [
131
+ /* @__PURE__ */ t(
132
+ f,
133
+ {
134
+ icon: " mng-lnc-checkmark--outline",
135
+ sizeInUnits: "1rem",
136
+ color: "success",
137
+ className: "item__icon"
138
+ }
139
+ ),
140
+ /* @__PURE__ */ t("div", { className: "item__text", children: s })
141
+ ]
142
+ },
143
+ `partner-banner-section-item__${m + 1}`
144
+ )) }),
145
+ o && a && /* @__PURE__ */ t(
146
+ g,
147
+ {
148
+ text: o,
149
+ onClick: () => l(a),
150
+ borderRadius: "curved",
151
+ color: "gray",
152
+ className: "section__action"
153
+ }
154
+ )
155
+ ] })
156
+ );
157
+ export {
158
+ k as default
159
+ };
@@ -0,0 +1,62 @@
1
+ "use strict";const r=require("react/jsx-runtime"),h=require("react"),g=require("./index-DeS-oqJB.cjs"),_=require("./Button.cjs"),p=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./style-B4kAj6YU.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=b.styled.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 1.5rem;
5
+
6
+ & .section__slider {
7
+ position: relative;
8
+ }
9
+
10
+ & .slider__gradient {
11
+ position: absolute;
12
+ width: 7.5rem;
13
+ height: 100%;
14
+ pointer-events: none;
15
+ z-index: 1;
16
+ opacity: 0.4;
17
+ top: 0;
18
+
19
+ &.left {
20
+ left: 0;
21
+ background: linear-gradient(to left, transparent, white);
22
+ }
23
+
24
+ &.right {
25
+ right: 0;
26
+ background: linear-gradient(to right, transparent, white);
27
+ }
28
+ }
29
+
30
+ .slider__container {
31
+ width: 100%;
32
+ }
33
+
34
+ .slider__item {
35
+ padding-right: 1rem;
36
+ }
37
+
38
+ & .section__item {
39
+ width: 100%;
40
+ height: 100%;
41
+ max-height: 3.75rem;
42
+ border-radius: 0.5rem;
43
+ border: 1px solid var(--gray-200, #e4e9f0);
44
+ overflow: hidden;
45
+
46
+ & img {
47
+ object-fit: cover;
48
+ width: 100%;
49
+ height: 100%;
50
+ filter: grayscale(100%);
51
+ transition: filter 0.3s ease;
52
+
53
+ &:hover {
54
+ filter: grayscale(0%);
55
+ }
56
+ }
57
+
58
+ &:hover {
59
+ cursor: pointer;
60
+ }
61
+ }
62
+ `,x=h.forwardRef(({title:l,buttonText:n,buttonLink:o,items:e,onSelectCard:d=()=>{},onButtonAction:t=()=>{}},m)=>{const c=p.useDetectMobile()?2:7,a=(e==null?void 0:e.length)>c;return r.jsxs(f,{children:[r.jsxs(u.SectionHeadingContainer,{children:[l&&r.jsx("div",{className:"heading__title",children:l}),n&&o&&r.jsx(_,{text:n,borderRadius:"curved",btnType:"tinted",className:"heading__action",color:"neutral",onClick:i=>{var s;(s=i==null?void 0:i.target)==null||s.blur(),t==null||t(o)}})]}),e&&(e==null?void 0:e.length)>0&&r.jsxs("div",{className:"section__slider",children:[a&&r.jsx("div",{className:"slider__gradient left"}),r.jsx(g.Carousel,{responsive:{desktop:{breakpoint:{max:9999,min:801},items:7,slidesToSlide:1,partialVisibilityGutter:10},mobile:{breakpoint:{max:800,min:0},items:2,slidesToSlide:1,partialVisibilityGutter:20}},draggable:!1,swipeable:!1,arrows:!1,infinite:a,autoPlay:a,autoPlaySpeed:2e3,partialVisible:a,customTransition:"transform 500ms linear",transitionDuration:500,containerClass:"slider__container",itemClass:"slider__item",children:e==null?void 0:e.map((i,s)=>r.jsx("div",{className:"section__item",onClick:()=>d(i),children:r.jsx("img",{src:i==null?void 0:i.imageUrl,alt:`Partner brand image ${s+1}`,loading:"lazy"})},`partner-brands-section-item__${s+1}`))}),a&&r.jsx("div",{className:"slider__gradient right"})]})]})});module.exports=x;
@@ -0,0 +1,154 @@
1
+ import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as g } from "react";
3
+ import { C as p } from "./index-BppfjY8h.js";
4
+ import f from "./Button.js";
5
+ import { u as m } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { S as _ } from "./style-neMbLWE6.js";
7
+ import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
+ const u = b.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 1.5rem;
12
+
13
+ & .section__slider {
14
+ position: relative;
15
+ }
16
+
17
+ & .slider__gradient {
18
+ position: absolute;
19
+ width: 7.5rem;
20
+ height: 100%;
21
+ pointer-events: none;
22
+ z-index: 1;
23
+ opacity: 0.4;
24
+ top: 0;
25
+
26
+ &.left {
27
+ left: 0;
28
+ background: linear-gradient(to left, transparent, white);
29
+ }
30
+
31
+ &.right {
32
+ right: 0;
33
+ background: linear-gradient(to right, transparent, white);
34
+ }
35
+ }
36
+
37
+ .slider__container {
38
+ width: 100%;
39
+ }
40
+
41
+ .slider__item {
42
+ padding-right: 1rem;
43
+ }
44
+
45
+ & .section__item {
46
+ width: 100%;
47
+ height: 100%;
48
+ max-height: 3.75rem;
49
+ border-radius: 0.5rem;
50
+ border: 1px solid var(--gray-200, #e4e9f0);
51
+ overflow: hidden;
52
+
53
+ & img {
54
+ object-fit: cover;
55
+ width: 100%;
56
+ height: 100%;
57
+ filter: grayscale(100%);
58
+ transition: filter 0.3s ease;
59
+
60
+ &:hover {
61
+ filter: grayscale(0%);
62
+ }
63
+ }
64
+
65
+ &:hover {
66
+ cursor: pointer;
67
+ }
68
+ }
69
+ `, j = g(
70
+ ({
71
+ title: o,
72
+ buttonText: n,
73
+ buttonLink: d,
74
+ items: e,
75
+ onSelectCard: c = () => {
76
+ },
77
+ onButtonAction: l = () => {
78
+ }
79
+ }, v) => {
80
+ const h = m() ? 2 : 7, a = (e == null ? void 0 : e.length) > h;
81
+ return /* @__PURE__ */ s(u, { children: [
82
+ /* @__PURE__ */ s(_, { children: [
83
+ o && /* @__PURE__ */ i("div", { className: "heading__title", children: o }),
84
+ n && d && /* @__PURE__ */ i(
85
+ f,
86
+ {
87
+ text: n,
88
+ borderRadius: "curved",
89
+ btnType: "tinted",
90
+ className: "heading__action",
91
+ color: "neutral",
92
+ onClick: (r) => {
93
+ var t;
94
+ (t = r == null ? void 0 : r.target) == null || t.blur(), l == null || l(d);
95
+ }
96
+ }
97
+ )
98
+ ] }),
99
+ e && (e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ s("div", { className: "section__slider", children: [
100
+ a && /* @__PURE__ */ i("div", { className: "slider__gradient left" }),
101
+ /* @__PURE__ */ i(
102
+ p,
103
+ {
104
+ responsive: {
105
+ desktop: {
106
+ breakpoint: { max: 9999, min: 801 },
107
+ items: 7,
108
+ slidesToSlide: 1,
109
+ partialVisibilityGutter: 10
110
+ },
111
+ mobile: {
112
+ breakpoint: { max: 800, min: 0 },
113
+ items: 2,
114
+ slidesToSlide: 1,
115
+ partialVisibilityGutter: 20
116
+ }
117
+ },
118
+ draggable: !1,
119
+ swipeable: !1,
120
+ arrows: !1,
121
+ infinite: a,
122
+ autoPlay: a,
123
+ autoPlaySpeed: 2e3,
124
+ partialVisible: a,
125
+ customTransition: "transform 500ms linear",
126
+ transitionDuration: 500,
127
+ containerClass: "slider__container",
128
+ itemClass: "slider__item",
129
+ children: e == null ? void 0 : e.map((r, t) => /* @__PURE__ */ i(
130
+ "div",
131
+ {
132
+ className: "section__item",
133
+ onClick: () => c(r),
134
+ children: /* @__PURE__ */ i(
135
+ "img",
136
+ {
137
+ src: r == null ? void 0 : r.imageUrl,
138
+ alt: `Partner brand image ${t + 1}`,
139
+ loading: "lazy"
140
+ }
141
+ )
142
+ },
143
+ `partner-brands-section-item__${t + 1}`
144
+ ))
145
+ }
146
+ ),
147
+ a && /* @__PURE__ */ i("div", { className: "slider__gradient right" })
148
+ ] })
149
+ ] });
150
+ }
151
+ );
152
+ export {
153
+ j as default
154
+ };