@lanaco/lnc-react-ui 4.0.210 → 4.0.212
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/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +10 -10
- package/dist/BannerSectionGrid.cjs +11 -3
- package/dist/BannerSectionGrid.js +34 -26
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +374 -348
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +38 -39
- package/package.json +1 -1
|
@@ -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
|
|
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 ${
|
|
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:
|
|
19
|
+
isLoading: o = !1,
|
|
20
20
|
fallbackComponent: n = /* @__PURE__ */ r(u, {}),
|
|
21
21
|
children: s
|
|
22
|
-
}) => /* @__PURE__ */ r(v, { fallbackComponent: n, children:
|
|
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 ${
|
|
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:
|
|
147
|
+
object-fit: contain;
|
|
148
148
|
object-position: center;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
@media ${
|
|
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 ${
|
|
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:
|
|
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:
|
|
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"),
|
|
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 ${
|
|
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
|
-
`,
|
|
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
|
|
2
|
-
import { forwardRef as
|
|
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
|
|
5
|
-
import { u as
|
|
6
|
-
import { T as
|
|
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 ${
|
|
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 =
|
|
62
|
+
`, S = $((t, a) => {
|
|
55
63
|
const {
|
|
56
|
-
image1Url:
|
|
64
|
+
image1Url: g,
|
|
57
65
|
image2Url: i,
|
|
58
|
-
title1:
|
|
59
|
-
title2:
|
|
60
|
-
text1:
|
|
66
|
+
title1: n,
|
|
67
|
+
title2: h,
|
|
68
|
+
text1: d,
|
|
61
69
|
text2: u,
|
|
62
70
|
subtitle1: l,
|
|
63
|
-
subtitle2:
|
|
64
|
-
buttonText1:
|
|
71
|
+
subtitle2: c,
|
|
72
|
+
buttonText1: p,
|
|
65
73
|
buttonText2: x,
|
|
66
74
|
buttonLink1: b,
|
|
67
|
-
buttonLink2:
|
|
68
|
-
rowHeight:
|
|
75
|
+
buttonLink2: f,
|
|
76
|
+
rowHeight: w = "12.65625rem",
|
|
69
77
|
onButtonAction: m = () => {
|
|
70
78
|
}
|
|
71
|
-
} = t, r =
|
|
72
|
-
return /* @__PURE__ */
|
|
79
|
+
} = t, r = N();
|
|
80
|
+
return /* @__PURE__ */ T(L, { ref: a, height: w, children: [
|
|
73
81
|
/* @__PURE__ */ e(
|
|
74
|
-
|
|
82
|
+
s,
|
|
75
83
|
{
|
|
76
84
|
className: "text-item",
|
|
77
|
-
title:
|
|
85
|
+
title: n,
|
|
78
86
|
subtitle: l,
|
|
79
|
-
description:
|
|
80
|
-
buttonText:
|
|
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:
|
|
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
|
-
|
|
96
|
+
s,
|
|
89
97
|
{
|
|
90
98
|
className: "text-item",
|
|
91
|
-
title:
|
|
92
|
-
subtitle:
|
|
99
|
+
title: h,
|
|
100
|
+
subtitle: c,
|
|
93
101
|
description: u,
|
|
94
102
|
buttonText: x,
|
|
95
|
-
buttonLink:
|
|
103
|
+
buttonLink: f,
|
|
96
104
|
onButtonAction: m
|
|
97
105
|
}
|
|
98
106
|
),
|