@lanaco/lnc-react-ui 4.0.25 → 4.0.26

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.
package/dist/index5.cjs CHANGED
@@ -1,81 +1,48 @@
1
- "use strict";const t=require("react/jsx-runtime"),w=require("react"),i=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./consts-dNz9tpt4.cjs"),$=require("./Button.cjs"),y=require("./useDetectMobile-rBe0FiP2.cjs"),j=i.newStyled.div`
2
- display: flex;
3
- border-radius: 0.75rem;
4
- background-color: ${e=>e.bgcolor||"transparent"};
5
- overflow: hidden;
6
- max-height: ${e=>e.height||"22.5rem"};
7
- min-height: ${e=>e.height||"22.5rem"};
8
- background-color: ${e=>e.bgcolor||"transparent"};
9
-
10
- & button {
11
- width: fit-content;
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("react"),j=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./consts-dNz9tpt4.cjs"),f=require("./useDetectMobile-rBe0FiP2.cjs"),m=require("./index-C2M7QHPq.cjs"),k=j.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: repeat(2, 1fr);
4
+ gap: 0;
5
+
6
+ & .text-item {
7
+ max-height: ${e=>e.height};
8
+ min-height: ${e=>e.height};
9
+ max-width: 27rem;
10
+ margin: auto;
12
11
  }
13
12
 
14
- ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
15
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
16
-
17
- `}
18
-
19
13
  & img {
20
14
  object-fit: cover;
21
- max-width: ${e=>e.imgW||"22.5rem"};
22
- min-width: ${e=>e.imgW||"22.5rem"};
23
- max-height: ${e=>e.height||"22.5rem"};
24
- min-height: ${e=>e.height||"22.5rem"};
15
+ width: 100%;
16
+ max-height: ${e=>e.height};
17
+ min-height: ${e=>e.height};
25
18
  }
26
19
 
27
- ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
28
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
20
+ & .img-1 {
21
+ border-radius: 0.75rem 0.75rem 0.75rem 0;
22
+ }
29
23
 
30
- `}
24
+ & .img-2 {
25
+ border-radius: 0.75rem 0rem 0.75rem 0.75rem;
26
+ }
31
27
 
32
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
28
+ @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
29
+ grid-template-columns: repeat(1, 1fr);
33
30
  gap: 1.5rem;
34
- flex-direction: column;
35
- min-height: unset;
36
- max-height: unset;
37
31
 
38
- & button {
39
- width: fit-content;
32
+ & .img-item {
33
+ width: 100%;
34
+ min-height: 11.25rem;
35
+ max-height: 11.25rem;
40
36
  }
41
37
 
42
- & img {
43
- max-width: 100%;
44
- min-width: 100%;
45
- max-height: ${e=>e.imgHMob||"12.1rem"};
46
- min-height: ${e=>e.imgHMob||"12.1rem"};
38
+ & .img1,
39
+ .img2 {
40
+ border-radius: 0.75rem;
47
41
  }
48
- }
49
- `,M=i.newStyled.div`
50
- padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
51
- display: flex;
52
- gap: 2rem;
53
- flex-direction: ${e=>e.isHorizontalContent===!0?"row":"column"};
54
- flex: 1;
55
-
56
- ${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
57
42
 
58
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
59
- padding: 0;
60
- flex-direction: column;
61
- }
62
- `,v=i.newStyled.div`
63
- display: flex;
64
- flex-direction: column;
65
- gap: 0.25rem;
66
-
67
- & .header-title {
68
- font-size: 1.75rem;
69
- font-weight: 600;
70
- }
71
-
72
- & .header-subtitle {
73
- color: var(--gray-950, #14161a);
74
- font-size: 1rem;
75
- font-weight: 500;
76
- }
77
-
78
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
79
- flex-direction: column;
43
+ & .text-item {
44
+ min-height: unset;
45
+ max-height: unset;
46
+ }
80
47
  }
81
- `,B=w.forwardRef((e,S)=>{const{title:d,subtitle:l,buttonText:m,image:o,imagePosition:n="right",noImageForMobile:a=!1,height:h,imageWidth:c,imageHeightMob:g,smallPadding:x=!1,isHorizontalContent:u=!1,backgroundColor:p,hasBorder:b=!1,onBannerClick:f}=e,s=y.useDetectMobile();return t.jsxs(j,{bgcolor:p,height:h,imgW:c,imgHMob:g,hasBorder:b,children:[n!=="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o}),t.jsxs(M,{isHorizontalContent:u,smallPadding:x,children:[t.jsxs(v,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx($,{size:"medium",color:"neutral",type:"button",onClick:f,children:m})]}),n==="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o})]})});module.exports=B;
48
+ `,q=p.forwardRef((e,T)=>{const{image1:s,image2:i,title1:n,title2:o,text1:g,text2:a,subtitle1:c,subtitle2:u,buttonText1:h,buttonText2:x,buttonLink1:l,buttonLink2:d,rowHeight:b="12.65625rem"}=e,r=f.useDetectMobile();return t.jsxs(k,{height:b,children:[t.jsx(m.TextBlockV1,{className:"text-item",title:n,subtitle:c,description:g,buttonText:h,buttonLink:l}),t.jsx("img",{className:"img-item img-1",src:s}),r!==!0&&t.jsx("img",{className:"img-item img-2",src:i}),t.jsx(m.TextBlockV1,{className:"text-item",title:o,subtitle:u,description:a,buttonText:x,buttonLink:d}),r===!0&&t.jsx("img",{className:"img-item img-2",src:i})]})});module.exports=q;
package/dist/index5.js CHANGED
@@ -1,144 +1,100 @@
1
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as $ } from "react";
3
- import { n as r } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
- import { M as o } from "./consts-DNVz1x1I.js";
5
- import v from "./Button.js";
6
- import { u as y } from "./useDetectMobile-BookNOsk.js";
7
- const M = r.div`
8
- display: flex;
9
- border-radius: 0.75rem;
10
- background-color: ${(e) => e.bgcolor || "transparent"};
11
- overflow: hidden;
12
- max-height: ${(e) => e.height || "22.5rem"};
13
- min-height: ${(e) => e.height || "22.5rem"};
14
- background-color: ${(e) => e.bgcolor || "transparent"};
1
+ import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as T } from "./consts-DNVz1x1I.js";
5
+ import { u as k } from "./useDetectMobile-BookNOsk.js";
6
+ import { T as r } from "./index-DcYg32le.js";
7
+ const L = w.div`
8
+ display: grid;
9
+ grid-template-columns: repeat(2, 1fr);
10
+ gap: 0;
15
11
 
16
- & button {
17
- width: fit-content;
12
+ & .text-item {
13
+ max-height: ${(t) => t.height};
14
+ min-height: ${(t) => t.height};
15
+ max-width: 27rem;
16
+ margin: auto;
18
17
  }
19
18
 
20
- ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
21
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
22
-
23
- `}
24
-
25
19
  & img {
26
20
  object-fit: cover;
27
- max-width: ${(e) => e.imgW || "22.5rem"};
28
- min-width: ${(e) => e.imgW || "22.5rem"};
29
- max-height: ${(e) => e.height || "22.5rem"};
30
- min-height: ${(e) => e.height || "22.5rem"};
21
+ width: 100%;
22
+ max-height: ${(t) => t.height};
23
+ min-height: ${(t) => t.height};
31
24
  }
32
25
 
33
- ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
34
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
26
+ & .img-1 {
27
+ border-radius: 0.75rem 0.75rem 0.75rem 0;
28
+ }
35
29
 
36
- `}
30
+ & .img-2 {
31
+ border-radius: 0.75rem 0rem 0.75rem 0.75rem;
32
+ }
37
33
 
38
- @media (max-width: ${o + "px"}) {
34
+ @media (max-width: ${T + "px"}) {
35
+ grid-template-columns: repeat(1, 1fr);
39
36
  gap: 1.5rem;
40
- flex-direction: column;
41
- min-height: unset;
42
- max-height: unset;
43
37
 
44
- & button {
45
- width: fit-content;
38
+ & .img-item {
39
+ width: 100%;
40
+ min-height: 11.25rem;
41
+ max-height: 11.25rem;
46
42
  }
47
43
 
48
- & img {
49
- max-width: 100%;
50
- min-width: 100%;
51
- max-height: ${(e) => e.imgHMob || "12.1rem"};
52
- min-height: ${(e) => e.imgHMob || "12.1rem"};
44
+ & .img1,
45
+ .img2 {
46
+ border-radius: 0.75rem;
53
47
  }
54
- }
55
- `, C = r.div`
56
- padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
57
- display: flex;
58
- gap: 2rem;
59
- flex-direction: ${(e) => e.isHorizontalContent === !0 ? "row" : "column"};
60
- flex: 1;
61
-
62
- ${(e) => e.isHorizontalContent === !0 && "justify-content: space-between;"}
63
-
64
- @media (max-width: ${o + "px"}) {
65
- padding: 0;
66
- flex-direction: column;
67
- }
68
- `, H = r.div`
69
- display: flex;
70
- flex-direction: column;
71
- gap: 0.25rem;
72
-
73
- & .header-title {
74
- font-size: 1.75rem;
75
- font-weight: 600;
76
- }
77
48
 
78
- & .header-subtitle {
79
- color: var(--gray-950, #14161a);
80
- font-size: 1rem;
81
- font-weight: 500;
82
- }
83
-
84
- @media (max-width: ${o + "px"}) {
85
- flex-direction: column;
49
+ & .text-item {
50
+ min-height: unset;
51
+ max-height: unset;
52
+ }
86
53
  }
87
- `, I = $((e, B) => {
54
+ `, y = f((t, N) => {
88
55
  const {
89
- title: l,
90
- subtitle: h,
91
- buttonText: g,
92
- image: a,
93
- imagePosition: n = "right",
94
- noImageForMobile: m = !1,
95
- height: s,
96
- imageWidth: c,
97
- imageHeightMob: x,
98
- smallPadding: p = !1,
99
- isHorizontalContent: u = !1,
100
- backgroundColor: b,
101
- hasBorder: f = !1,
102
- onBannerClick: w
103
- } = e, d = y();
104
- return /* @__PURE__ */ t(
105
- M,
106
- {
107
- bgcolor: b,
108
- height: s,
109
- imgW: c,
110
- imgHMob: x,
111
- hasBorder: f,
112
- children: [
113
- n !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a }),
114
- /* @__PURE__ */ t(
115
- C,
116
- {
117
- isHorizontalContent: u,
118
- smallPadding: p,
119
- children: [
120
- /* @__PURE__ */ t(H, { children: [
121
- /* @__PURE__ */ i("div", { className: "header-title", children: l }),
122
- /* @__PURE__ */ i("div", { className: "header-subitle", children: h })
123
- ] }),
124
- /* @__PURE__ */ i(
125
- v,
126
- {
127
- size: "medium",
128
- color: "neutral",
129
- type: "button",
130
- onClick: w,
131
- children: g
132
- }
133
- )
134
- ]
135
- }
136
- ),
137
- n === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a })
138
- ]
139
- }
140
- );
56
+ image1: o,
57
+ image2: i,
58
+ title1: s,
59
+ title2: a,
60
+ text1: g,
61
+ text2: n,
62
+ subtitle1: h,
63
+ subtitle2: u,
64
+ buttonText1: d,
65
+ buttonText2: l,
66
+ buttonLink1: c,
67
+ buttonLink2: x,
68
+ rowHeight: p = "12.65625rem"
69
+ } = t, m = k();
70
+ return /* @__PURE__ */ b(L, { height: p, children: [
71
+ /* @__PURE__ */ e(
72
+ r,
73
+ {
74
+ className: "text-item",
75
+ title: s,
76
+ subtitle: h,
77
+ description: g,
78
+ buttonText: d,
79
+ buttonLink: c
80
+ }
81
+ ),
82
+ /* @__PURE__ */ e("img", { className: "img-item img-1", src: o }),
83
+ m !== !0 && /* @__PURE__ */ e("img", { className: "img-item img-2", src: i }),
84
+ /* @__PURE__ */ e(
85
+ r,
86
+ {
87
+ className: "text-item",
88
+ title: a,
89
+ subtitle: u,
90
+ description: n,
91
+ buttonText: l,
92
+ buttonLink: x
93
+ }
94
+ ),
95
+ m === !0 && /* @__PURE__ */ e("img", { className: "img-item img-2", src: i })
96
+ ] });
141
97
  });
142
98
  export {
143
- I as default
99
+ y as default
144
100
  };
package/dist/index6.cjs CHANGED
@@ -1,65 +1,81 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),u=require("./Button.cjs"),t=require("./utils-CE6bljYe.cjs"),h=s.newStyled.div`
2
- padding-bottom: 1.38rem;
3
- text-align: center;
1
+ "use strict";const t=require("react/jsx-runtime"),w=require("react"),i=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./consts-dNz9tpt4.cjs"),$=require("./Button.cjs"),y=require("./useDetectMobile-rBe0FiP2.cjs"),j=i.newStyled.div`
4
2
  display: flex;
5
- justify-content: center;
6
- flex-direction: column;
7
- gap: 2rem;
8
- align-items: center;
3
+ border-radius: 0.75rem;
4
+ background-color: ${e=>e.bgcolor||"transparent"};
5
+ overflow: hidden;
6
+ max-height: ${e=>e.height||"22.5rem"};
7
+ min-height: ${e=>e.height||"22.5rem"};
8
+ background-color: ${e=>e.bgcolor||"transparent"};
9
9
 
10
10
  & button {
11
11
  width: fit-content;
12
12
  }
13
13
 
14
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
15
- padding-bottom: 0;
14
+ ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
15
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
16
+
17
+ `}
18
+
19
+ & img {
20
+ object-fit: cover;
21
+ max-width: ${e=>e.imgW||"22.5rem"};
22
+ min-width: ${e=>e.imgW||"22.5rem"};
23
+ max-height: ${e=>e.height||"22.5rem"};
24
+ min-height: ${e=>e.height||"22.5rem"};
25
+ }
26
+
27
+ ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
28
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
29
+
30
+ `}
31
+
32
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
33
+ gap: 1.5rem;
34
+ flex-direction: column;
35
+ min-height: unset;
36
+ max-height: unset;
37
+
38
+ & button {
39
+ width: fit-content;
40
+ }
41
+
42
+ & img {
43
+ max-width: 100%;
44
+ min-width: 100%;
45
+ max-height: ${e=>e.imgHMob||"12.1rem"};
46
+ min-height: ${e=>e.imgHMob||"12.1rem"};
47
+ }
48
+ }
49
+ `,M=i.newStyled.div`
50
+ padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
51
+ display: flex;
52
+ gap: 2rem;
53
+ flex-direction: ${e=>e.isHorizontalContent===!0?"row":"column"};
54
+ flex: 1;
55
+
56
+ ${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
57
+
58
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
59
+ padding: 0;
60
+ flex-direction: column;
16
61
  }
17
- `,g=s.newStyled.div`
18
- text-align: center;
62
+ `,v=i.newStyled.div`
19
63
  display: flex;
20
- justify-content: center;
21
64
  flex-direction: column;
22
65
  gap: 0.25rem;
23
66
 
24
67
  & .header-title {
25
- font-size: 1.5rem;
68
+ font-size: 1.75rem;
26
69
  font-weight: 600;
27
70
  }
28
71
 
29
72
  & .header-subtitle {
30
- color: var(--gray-600, #676e79);
73
+ color: var(--gray-950, #14161a);
31
74
  font-size: 1rem;
32
75
  font-weight: 500;
33
76
  }
34
77
 
35
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
36
- }
37
- `,p=s.newStyled.div`
38
- text-align: center;
39
- display: flex;
40
- flex-direction: column;
41
- justify-content: center;
42
- gap: 0.75rem;
43
- font-size: 0.875rem;
44
- font-weight: 500;
45
- align-items: center;
46
-
47
- & .list-item {
48
- display: flex;
49
- align-items: center;
50
-
51
- & .mng {
52
- font-size: 1.25rem;
53
- color: var(--success-600);
54
- }
55
- }
56
-
57
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
58
- & .list-item {
59
- flex-direction: column;
60
- text-align: center;
61
- justify-content: center;
62
- gap: 0;
63
- }
78
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
79
+ flex-direction: column;
64
80
  }
65
- `,j=o.forwardRef((a,y)=>{const{title:i,subtitle:n,buttonText:d,list:r,fallback:m=()=>{},onBannerClick:l}=a;return e.jsxs(h,{children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(g,{children:[t.isDefined(i)&&e.jsx("div",{className:"header-title",children:i}),t.isDefined(n)&&e.jsx("div",{className:"header-subitle",children:n})]}),e.jsx(p,{children:r==null?void 0:r.map((x,f)=>e.jsx(o.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:x})]})},f))}),e.jsx(u,{size:"medium",color:"neutral",type:"button",onClick:()=>t.isDefined(l)?l():m(),children:d})]})});module.exports=j;
81
+ `,B=w.forwardRef((e,S)=>{const{title:d,subtitle:l,buttonText:m,image:o,imagePosition:n="right",noImageForMobile:a=!1,height:h,imageWidth:c,imageHeightMob:g,smallPadding:x=!1,isHorizontalContent:u=!1,backgroundColor:p,hasBorder:b=!1,onBannerClick:f}=e,s=y.useDetectMobile();return t.jsxs(j,{bgcolor:p,height:h,imgW:c,imgHMob:g,hasBorder:b,children:[n!=="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o}),t.jsxs(M,{isHorizontalContent:u,smallPadding:x,children:[t.jsxs(v,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx($,{size:"medium",color:"neutral",type:"button",onClick:f,children:m})]}),n==="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o})]})});module.exports=B;