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