@lanaco/lnc-react-ui 4.0.210 → 4.0.211

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.
@@ -130,7 +130,7 @@
130
130
  }
131
131
 
132
132
  & .carousel-item .section__card .section__image {
133
- object-fit: cover;
133
+ object-fit: contain;
134
134
  object-position: center;
135
135
  }
136
136
  }
@@ -3,12 +3,12 @@ import { Suspense as v, forwardRef as y } from "react";
3
3
  import { C as w } from "./index-BppfjY8h.js";
4
4
  import { b as k, a as C } from "./style-BwQ4djFC.js";
5
5
  import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { d as o, s as i } from "./breakpoints-ff0SIcV3.js";
6
+ import { d as a, s as i } from "./breakpoints-ff0SIcV3.js";
7
7
  import S from "./Button.js";
8
8
  import { u as j } from "./useDetectMobile-CcVo3PNi.js";
9
9
  import { m as $ } from "./utils-B2fsQ6PS.js";
10
10
  const N = h(k)`
11
- @media ${o("S")} {
11
+ @media ${a("S")} {
12
12
  & > div {
13
13
  height: 100%;
14
14
  aspect-ratio: 1 / 1;
@@ -16,10 +16,10 @@ const N = h(k)`
16
16
  }
17
17
  `, z = ({ keyPrefix: t }) => /* @__PURE__ */ r(N, { noGradient: !0, children: /* @__PURE__ */ r(C, { keyPrefix: `${t}-1`, height: "22.5rem" }) }), B = ({
18
18
  keyPrefix: t,
19
- isLoading: a = !1,
19
+ isLoading: o = !1,
20
20
  fallbackComponent: n = /* @__PURE__ */ r(u, {}),
21
21
  children: s
22
- }) => /* @__PURE__ */ r(v, { fallbackComponent: n, children: a === !0 ? /* @__PURE__ */ r(z, { keyPrefix: t }) : s }), M = h.div`
22
+ }) => /* @__PURE__ */ r(v, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(z, { keyPrefix: t }) : s }), M = h.div`
23
23
  &:hover {
24
24
  cursor: pointer;
25
25
 
@@ -137,26 +137,26 @@ const N = h(k)`
137
137
  right: 1rem;
138
138
  }
139
139
 
140
- @media ${o("M")} {
140
+ @media ${a("M")} {
141
141
  & .carousel-item .section__card,
142
142
  & .carousel-item:not(.react-multi-carousel-item--active) .section__card {
143
143
  height: 100%;
144
144
  }
145
145
 
146
146
  & .carousel-item .section__card .section__image {
147
- object-fit: cover;
147
+ object-fit: contain;
148
148
  object-position: center;
149
149
  }
150
150
  }
151
151
 
152
- @media ${o("S")} {
152
+ @media ${a("S")} {
153
153
  & .carousel-item .section__card .section__image {
154
154
  object-fit: cover;
155
155
  object-position: center;
156
156
  }
157
157
  }
158
158
 
159
- @media ${o("XS")} {
159
+ @media ${a("XS")} {
160
160
  & .carousel-container {
161
161
  min-height: 23.4375rem;
162
162
  }
@@ -213,7 +213,7 @@ const N = h(k)`
213
213
  `, F = y(
214
214
  ({
215
215
  items: t = [],
216
- isLoading: a = !1,
216
+ isLoading: o = !1,
217
217
  deviceType: n,
218
218
  partialVisible: s = !0,
219
219
  fallbackComponent: p = /* @__PURE__ */ r(u, {}),
@@ -245,7 +245,7 @@ const N = h(k)`
245
245
  {
246
246
  fallbackComponent: p,
247
247
  keyPrefix: "banner-carousel-skeleton",
248
- isLoading: a,
248
+ isLoading: o,
249
249
  children: /* @__PURE__ */ r(
250
250
  w,
251
251
  {
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),k=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./breakpoints-CcVm-gVm.cjs"),T=require("./useDetectMobile-DYV6V1yw.cjs"),s=require("./index-B9c6y2J5.cjs"),f=w.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),k=require("react"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./breakpoints-CcVm-gVm.cjs"),T=require("./useDetectMobile-DYV6V1yw.cjs"),n=require("./index-B9c6y2J5.cjs"),$=q.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(2, 1fr);
4
4
  gap: 0;
@@ -25,7 +25,15 @@
25
25
  border-radius: 0.75rem 0rem 0.75rem 0.75rem;
26
26
  }
27
27
 
28
- @media ${q.down("S")} {
28
+ @media ${s.down("M")} {
29
+ padding: 1rem;
30
+
31
+ & .text-item {
32
+ padding: 1rem;
33
+ }
34
+ }
35
+
36
+ @media ${s.down("S")} {
29
37
  grid-template-columns: repeat(1, 1fr);
30
38
  gap: 1.5rem;
31
39
 
@@ -45,4 +53,4 @@
45
53
  max-height: unset;
46
54
  }
47
55
  }
48
- `,N=k.forwardRef((e,n)=>{const{image1Url:o,image2Url:i,title1:g,title2:a,text1:u,text2:c,subtitle1:h,subtitle2:l,buttonText1:x,buttonText2:d,buttonLink1:b,buttonLink2:p,rowHeight:j="12.65625rem",onButtonAction:r=()=>{}}=e,m=T.useDetectMobile();return t.jsxs(f,{ref:n,height:j,children:[t.jsx(s.TextBlockV1,{className:"text-item",title:g,subtitle:h,description:u,buttonText:x,buttonLink:b,onButtonAction:r}),t.jsx("img",{className:"img-item img-1",src:o}),m!==!0&&t.jsx("img",{className:"img-item img-2",src:i}),t.jsx(s.TextBlockV1,{className:"text-item",title:a,subtitle:l,description:c,buttonText:d,buttonLink:p,onButtonAction:r}),m===!0&&t.jsx("img",{className:"img-item img-2",src:i})]})});module.exports=N;
56
+ `,f=k.forwardRef((e,o)=>{const{image1Url:g,image2Url:i,title1:a,title2:u,text1:c,text2:d,subtitle1:h,subtitle2:l,buttonText1:x,buttonText2:b,buttonLink1:p,buttonLink2:j,rowHeight:w="12.65625rem",onButtonAction:r=()=>{}}=e,m=T.useDetectMobile();return t.jsxs($,{ref:o,height:w,children:[t.jsx(n.TextBlockV1,{className:"text-item",title:a,subtitle:h,description:c,buttonText:x,buttonLink:p,onButtonAction:r}),t.jsx("img",{className:"img-item img-1",src:g}),m!==!0&&t.jsx("img",{className:"img-item img-2",src:i}),t.jsx(n.TextBlockV1,{className:"text-item",title:u,subtitle:l,description:d,buttonText:b,buttonLink:j,onButtonAction:r}),m===!0&&t.jsx("img",{className:"img-item img-2",src:i})]})});module.exports=f;
@@ -1,9 +1,9 @@
1
- import { jsxs as w, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as T } from "react";
1
+ import { jsxs as T, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as $ } from "react";
3
3
  import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { d as N } from "./breakpoints-ff0SIcV3.js";
5
- import { u as $ } from "./useDetectMobile-CcVo3PNi.js";
6
- import { T as o } from "./index-CoQ9APCD.js";
4
+ import { d as o } from "./breakpoints-ff0SIcV3.js";
5
+ import { u as N } from "./useDetectMobile-CcVo3PNi.js";
6
+ import { T as s } from "./index-CoQ9APCD.js";
7
7
  const L = k.div`
8
8
  display: grid;
9
9
  grid-template-columns: repeat(2, 1fr);
@@ -31,7 +31,15 @@ const L = k.div`
31
31
  border-radius: 0.75rem 0rem 0.75rem 0.75rem;
32
32
  }
33
33
 
34
- @media ${N("S")} {
34
+ @media ${o("M")} {
35
+ padding: 1rem;
36
+
37
+ & .text-item {
38
+ padding: 1rem;
39
+ }
40
+ }
41
+
42
+ @media ${o("S")} {
35
43
  grid-template-columns: repeat(1, 1fr);
36
44
  gap: 1.5rem;
37
45
 
@@ -51,48 +59,48 @@ const L = k.div`
51
59
  max-height: unset;
52
60
  }
53
61
  }
54
- `, S = T((t, s) => {
62
+ `, S = $((t, a) => {
55
63
  const {
56
- image1Url: a,
64
+ image1Url: g,
57
65
  image2Url: i,
58
- title1: g,
59
- title2: n,
60
- text1: h,
66
+ title1: n,
67
+ title2: h,
68
+ text1: d,
61
69
  text2: u,
62
70
  subtitle1: l,
63
- subtitle2: d,
64
- buttonText1: c,
71
+ subtitle2: c,
72
+ buttonText1: p,
65
73
  buttonText2: x,
66
74
  buttonLink1: b,
67
- buttonLink2: p,
68
- rowHeight: f = "12.65625rem",
75
+ buttonLink2: f,
76
+ rowHeight: w = "12.65625rem",
69
77
  onButtonAction: m = () => {
70
78
  }
71
- } = t, r = $();
72
- return /* @__PURE__ */ w(L, { ref: s, height: f, children: [
79
+ } = t, r = N();
80
+ return /* @__PURE__ */ T(L, { ref: a, height: w, children: [
73
81
  /* @__PURE__ */ e(
74
- o,
82
+ s,
75
83
  {
76
84
  className: "text-item",
77
- title: g,
85
+ title: n,
78
86
  subtitle: l,
79
- description: h,
80
- buttonText: c,
87
+ description: d,
88
+ buttonText: p,
81
89
  buttonLink: b,
82
90
  onButtonAction: m
83
91
  }
84
92
  ),
85
- /* @__PURE__ */ e("img", { className: "img-item img-1", src: a }),
93
+ /* @__PURE__ */ e("img", { className: "img-item img-1", src: g }),
86
94
  r !== !0 && /* @__PURE__ */ e("img", { className: "img-item img-2", src: i }),
87
95
  /* @__PURE__ */ e(
88
- o,
96
+ s,
89
97
  {
90
98
  className: "text-item",
91
- title: n,
92
- subtitle: d,
99
+ title: h,
100
+ subtitle: c,
93
101
  description: u,
94
102
  buttonText: x,
95
- buttonLink: p,
103
+ buttonLink: f,
96
104
  onButtonAction: m
97
105
  }
98
106
  ),
@@ -38,7 +38,7 @@
38
38
 
39
39
  @media ${g.down("M")} {
40
40
  & .section__items {
41
- grid-template-columns: repeat(3, minmax(0, 1fr));
41
+ grid-template-columns: repeat(4, minmax(0, 1fr));
42
42
  }
43
43
  }
44
44
 
@@ -49,7 +49,7 @@ const ee = G.div`
49
49
 
50
50
  @media ${g("M")} {
51
51
  & .section__items {
52
- grid-template-columns: repeat(3, minmax(0, 1fr));
52
+ grid-template-columns: repeat(4, minmax(0, 1fr));
53
53
  }
54
54
  }
55
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.210",
3
+ "version": "4.0.211",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [