@lanaco/lnc-react-ui 4.0.26 → 4.0.28

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.js CHANGED
@@ -1,100 +1,138 @@
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;
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`
7
+ display: flex;
8
+ border-radius: 0.75rem;
9
+ background-color: ${(e) => e.bgcolor || "transparent"};
10
+ overflow: hidden;
11
11
 
12
- & .text-item {
13
- max-height: ${(t) => t.height};
14
- min-height: ${(t) => t.height};
15
- max-width: 27rem;
16
- margin: auto;
12
+ & button {
13
+ width: fit-content;
17
14
  }
18
15
 
19
16
  & img {
20
17
  object-fit: cover;
21
- width: 100%;
22
- max-height: ${(t) => t.height};
23
- min-height: ${(t) => t.height};
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"};
24
22
  }
25
23
 
26
- & .img-1 {
27
- border-radius: 0.75rem 0.75rem 0.75rem 0;
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
+ }
28
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;
29
45
 
30
- & .img-2 {
31
- border-radius: 0.75rem 0rem 0.75rem 0.75rem;
46
+ @media (max-width: ${n + "px"}) {
47
+ padding: 1.25rem;
32
48
  }
49
+ `, H = t.div`
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: 0.25rem;
33
53
 
34
- @media (max-width: ${T + "px"}) {
35
- grid-template-columns: repeat(1, 1fr);
36
- gap: 1.5rem;
54
+ & .header-title {
55
+ font-size: 1.5rem;
56
+ font-weight: 600;
57
+ }
37
58
 
38
- & .img-item {
39
- width: 100%;
40
- min-height: 11.25rem;
41
- max-height: 11.25rem;
42
- }
59
+ & .header-subtitle {
60
+ color: var(--gray-600, #676e79);
61
+ font-size: 1rem;
62
+ font-weight: 500;
63
+ }
43
64
 
44
- & .img1,
45
- .img2 {
46
- border-radius: 0.75rem;
47
- }
65
+ @media (max-width: ${n + "px"}) {
66
+ flex-direction: column;
67
+ }
68
+ `, W = t.div`
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 0.75rem;
72
+ font-size: 0.875rem;
73
+ font-weight: 500;
74
+
75
+ & .list-item {
76
+ display: flex;
77
+ align-items: center;
48
78
 
49
- & .text-item {
50
- min-height: unset;
51
- max-height: unset;
79
+ & .mng {
80
+ font-size: 1.25rem;
81
+ color: var(--info-600);
52
82
  }
53
83
  }
54
- `, y = f((t, N) => {
84
+
85
+ @media (max-width: ${n + "px"}) {
86
+ }
87
+ `, N = u((e, k) => {
55
88
  const {
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
- ] });
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
+ );
97
135
  });
98
136
  export {
99
- y as default
137
+ N as default
100
138
  };
package/dist/index6.cjs CHANGED
@@ -1,81 +1,150 @@
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`
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),x=require("./Button.cjs"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),i=require("./utils-CE6bljYe.cjs"),h=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=require("./consts-dNz9tpt4.cjs"),f=s.newStyled.div`
2
2
  display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-start;
3
5
  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;
12
- }
13
-
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);
6
+ position: relative;
7
+ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
16
8
 
17
- `}
9
+ grid-column: ${t=>{var e;return((e=t.position)==null?void 0:e.columnStart)||"1"}} /
10
+ ${t=>{var e;return((e=t.position)==null?void 0:e.columnEnd)||"6"}};
11
+ grid-row: ${t=>{var e;return((e=t.position)==null?void 0:e.rowStart)||"1"}} /
12
+ ${t=>{var e;return((e=t.position)==null?void 0:e.rowEnd)||"1"}};
18
13
 
19
- & img {
14
+ & .wrapper__image {
15
+ height: 100%;
16
+ width: 100%;
20
17
  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"};
18
+ border-radius: 0.75rem;
25
19
  }
26
20
 
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
- `}
21
+ & .wrapper__image--skeleton {
22
+ width: 24.5rem;
23
+ height: 30rem;
24
+ border-radius: 0.75rem;
25
+ background-color: ${i.linearGradientAnimation("-90deg")};
26
+ }
31
27
 
32
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
33
- gap: 1.5rem;
28
+ & .wrapper__text {
29
+ display: flex;
34
30
  flex-direction: column;
35
- min-height: unset;
36
- max-height: unset;
31
+ align-items: flex-start;
32
+ padding: 1rem;
33
+ position: absolute;
34
+ bottom: 0;
35
+ left: 0;
36
+ gap: 0.75rem;
37
+
38
+ & .text__title {
39
+ color: var(--white, #ffffff);
40
+ font-size: 1rem;
41
+ font-style: normal;
42
+ font-weight: 500;
43
+ line-height: 1.5rem;
44
+ ${i.truncateTextInRows(2)}
45
+ }
46
+
47
+ & .text__tag {
48
+ background-color: var(--warning-600, #d97706);
49
+ color: var(--white, #ffffff);
50
+ font-size: 0.875rem;
51
+ font-style: normal;
52
+ font-weight: 500;
53
+ line-height: 1.25rem;
54
+ padding: 0.25rem 0.5rem;
37
55
 
38
- & button {
39
- width: fit-content;
56
+ border-radius: 0.375rem;
57
+ background: var(--warning-600, #d97706);
40
58
  }
41
59
 
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"};
60
+ & .text__description {
61
+ color: var(--white);
62
+ font-size: 0.875rem;
63
+ font-style: normal;
64
+ font-weight: 400;
65
+ line-height: 1.25rem;
66
+ ${i.truncateTextInRows(2)}
47
67
  }
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
68
 
56
- ${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
69
+ & .text__action {
70
+ background: var(--white);
71
+ color: var(--black);
57
72
 
58
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
59
- padding: 0;
60
- flex-direction: column;
73
+ &:hover {
74
+ background: var(--primary-500, #f59e0b);
75
+ color: var(--white);
76
+ }
77
+ }
78
+
79
+ & .text__title--skeleton {
80
+ background-color: ${i.linearGradientAnimation("-90deg")};
81
+ height: 1rem;
82
+ width: 9rem;
83
+ }
84
+
85
+ & .text__description--skeleton {
86
+ background-color: ${i.linearGradientAnimation("-90deg")};
87
+ height: 1rem;
88
+ width: 12rem;
89
+ }
90
+
91
+ & .text__action--skeleton {
92
+ background-color: ${i.linearGradientAnimation("-90deg")};
93
+ height: 2rem;
94
+ width: 9rem;
95
+ }
61
96
  }
62
- `,v=i.newStyled.div`
97
+ `,u=c.forwardRef(({title:t,image:e,description:n,actionText:o,onSelectCard:a=()=>{},className:l,position:g,tag:d},y)=>{const p=h.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(f,{theme:p,className:l,onClick:a,position:g,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[d&&r.jsx("div",{className:"text__tag",children:d}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(o)&&r.jsx(x,{text:o,onClick:a,className:"text__action"})]})]})})}),_=s.newStyled.div`
63
98
  display: flex;
64
99
  flex-direction: column;
65
- gap: 0.25rem;
100
+ gap: 1.5rem;
66
101
 
67
- & .header-title {
68
- font-size: 1.75rem;
102
+ & .regular-title {
103
+ display: flex;
104
+ gap: 0.5rem;
105
+ align-items: center;
106
+ justify-content: space-between;
107
+ font-size: 1.5rem;
69
108
  font-weight: 600;
109
+ & .regular-title-text {
110
+ display: flex;
111
+ gap: 0.5rem;
112
+ align-items: center;
113
+ }
114
+
115
+ & i {
116
+ font-size: 1.5rem;
117
+ color: var(--primary-500, #f59e0b);
118
+ }
70
119
  }
71
120
 
72
- & .header-subtitle {
73
- color: var(--gray-950, #14161a);
74
- font-size: 1rem;
75
- font-weight: 500;
121
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
122
+ gap: 1.25rem;
123
+
124
+ & .regular-title {
125
+ font-size: 1.375rem;
126
+
127
+ &.center {
128
+ justify-content: center;
129
+ }
130
+ }
76
131
  }
132
+ `,w=s.newStyled.div`
133
+ display: grid;
134
+ grid-template-columns: repeat(12, 1fr);
135
+ grid-template-rows: 15rem 15rem;
136
+ grid-column-gap: 1.25rem;
137
+ grid-row-gap: 1.25rem;
138
+ height: 30rem;
139
+ max-height: 30rem;
77
140
 
78
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
141
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
142
+ display: flex;
79
143
  flex-direction: column;
144
+ gap: 1rem;
145
+ width: 100%;
146
+ height: 100%;
147
+ max-height: 100%;
148
+ padding: 0 1rem;
80
149
  }
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;
150
+ `,b=c.forwardRef(({title:t,items:e,limit:n=3},o)=>r.jsxs(_,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(w,{limit:n,children:e&&(e==null?void 0:e.map((a,l)=>r.jsx(u,{...a},`landing-page-masonry-general-card__${l+1}`)))})]}));module.exports=b;