@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/Kanban.cjs +2 -2
- package/dist/Kanban.js +81 -83
- package/dist/index-BlV3tdJ8.cjs +87 -0
- package/dist/index-DGl-lSfF.js +122 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +100 -92
- package/dist/index10.cjs +64 -91
- package/dist/index10.js +104 -161
- package/dist/index11.cjs +62 -112
- package/dist/index11.js +101 -1510
- package/dist/index12.cjs +194 -0
- package/dist/index12.js +312 -0
- package/dist/index13.cjs +98 -0
- package/dist/index13.js +221 -0
- package/dist/index14.cjs +161 -0
- package/dist/index14.js +254 -0
- package/dist/index15.cjs +135 -0
- package/dist/index15.js +1534 -0
- package/dist/index3.cjs +19 -56
- package/dist/index3.js +72 -113
- package/dist/index4.cjs +54 -34
- package/dist/index4.js +112 -77
- package/dist/index5.cjs +33 -66
- package/dist/index5.js +80 -124
- package/dist/index6.cjs +60 -44
- package/dist/index6.js +119 -79
- package/dist/index7.cjs +26 -43
- package/dist/index7.js +60 -94
- package/dist/index8.cjs +56 -124
- package/dist/index8.js +110 -194
- package/dist/index9.cjs +127 -67
- package/dist/index9.js +193 -123
- package/dist/useEffectOnce-DFrzfNzT.cjs +1 -0
- package/dist/useEffectOnce-guOKBPuL.js +7 -0
- package/package.json +6 -2
- package/vite.config.js +16 -0
package/dist/index9.cjs
CHANGED
|
@@ -1,90 +1,150 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
max-height: 22.5rem;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
8
|
-
0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
9
|
-
border: 1px solid var(--gray-95008, #14161a14);
|
|
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
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
10
5
|
border-radius: 0.75rem;
|
|
11
|
-
|
|
6
|
+
position: relative;
|
|
7
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
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"}};
|
|
13
|
+
|
|
14
|
+
& .wrapper__image {
|
|
15
15
|
height: 100%;
|
|
16
|
+
width: 100%;
|
|
16
17
|
object-fit: cover;
|
|
18
|
+
border-radius: 0.75rem;
|
|
17
19
|
}
|
|
18
|
-
`,v=c.newStyled.div`
|
|
19
|
-
display: grid;
|
|
20
|
-
grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
|
|
21
|
-
gap: 1.25rem;
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
& .wrapper__image--skeleton {
|
|
22
|
+
width: 24.5rem;
|
|
23
|
+
height: 30rem;
|
|
24
|
+
border-radius: 0.75rem;
|
|
25
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& .wrapper__text {
|
|
24
29
|
display: flex;
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
flex-direction: column;
|
|
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;
|
|
55
|
+
|
|
56
|
+
border-radius: 0.375rem;
|
|
57
|
+
background: var(--warning-600, #d97706);
|
|
58
|
+
}
|
|
59
|
+
|
|
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)}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .text__action {
|
|
70
|
+
background: var(--white);
|
|
71
|
+
color: var(--black);
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background: var(--primary-500, #f59e0b);
|
|
75
|
+
color: var(--white);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
27
78
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
79
|
+
& .text__title--skeleton {
|
|
80
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
81
|
+
height: 1rem;
|
|
82
|
+
width: 9rem;
|
|
31
83
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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;
|
|
40
95
|
}
|
|
41
96
|
}
|
|
42
|
-
`,
|
|
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`
|
|
43
98
|
display: flex;
|
|
44
99
|
flex-direction: column;
|
|
45
|
-
gap:
|
|
46
|
-
cursor: pointer;
|
|
100
|
+
gap: 1.5rem;
|
|
47
101
|
|
|
48
|
-
&
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
& .card-title {
|
|
56
|
-
font-size: 0.875rem;
|
|
102
|
+
& .regular-title {
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 0.5rem;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
font-size: 1.5rem;
|
|
57
108
|
font-weight: 600;
|
|
58
|
-
|
|
59
|
-
|
|
109
|
+
& .regular-title-text {
|
|
110
|
+
display: flex;
|
|
111
|
+
gap: 0.5rem;
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
60
114
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
color: var(--primary-500, #
|
|
115
|
+
& i {
|
|
116
|
+
font-size: 1.5rem;
|
|
117
|
+
color: var(--primary-500, #f59e0b);
|
|
64
118
|
}
|
|
65
119
|
}
|
|
66
120
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
border-radius: 0.75rem;
|
|
70
|
-
border: 1px solid white;
|
|
71
|
-
}
|
|
121
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
122
|
+
gap: 1.25rem;
|
|
72
123
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: 1.25rem;
|
|
77
|
-
}
|
|
124
|
+
& .regular-title {
|
|
125
|
+
font-size: 1.375rem;
|
|
78
126
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
height: 8.875rem;
|
|
83
|
-
min-width: 8.875rem;
|
|
84
|
-
min-height: 8.875rem;
|
|
85
|
-
min-width: 8.875rem;
|
|
86
|
-
min-height: 8.875rem;
|
|
87
|
-
object-fit: cover;
|
|
127
|
+
&.center {
|
|
128
|
+
justify-content: center;
|
|
129
|
+
}
|
|
88
130
|
}
|
|
89
131
|
}
|
|
90
|
-
`,
|
|
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;
|
|
140
|
+
|
|
141
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
gap: 1rem;
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
max-height: 100%;
|
|
148
|
+
padding: 0 1rem;
|
|
149
|
+
}
|
|
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;
|
package/dist/index9.js
CHANGED
|
@@ -1,152 +1,222 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as t, Fragment as u, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import _ from "./Button.js";
|
|
4
|
+
import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { m as o, t as c, k as g } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { u as w } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
4
7
|
import { M as f } from "./consts-DNVz1x1I.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 22.5rem;
|
|
11
|
-
min-height: 22.5rem;
|
|
12
|
-
max-height: 22.5rem;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
15
|
-
0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
16
|
-
border: 1px solid var(--gray-95008, #14161a14);
|
|
8
|
+
const b = d.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: flex-start;
|
|
17
12
|
border-radius: 0.75rem;
|
|
18
|
-
|
|
13
|
+
position: relative;
|
|
14
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
grid-column: ${(r) => {
|
|
17
|
+
var e;
|
|
18
|
+
return ((e = r.position) == null ? void 0 : e.columnStart) || "1";
|
|
19
|
+
}} /
|
|
20
|
+
${(r) => {
|
|
21
|
+
var e;
|
|
22
|
+
return ((e = r.position) == null ? void 0 : e.columnEnd) || "6";
|
|
23
|
+
}};
|
|
24
|
+
grid-row: ${(r) => {
|
|
25
|
+
var e;
|
|
26
|
+
return ((e = r.position) == null ? void 0 : e.rowStart) || "1";
|
|
27
|
+
}} /
|
|
28
|
+
${(r) => {
|
|
29
|
+
var e;
|
|
30
|
+
return ((e = r.position) == null ? void 0 : e.rowEnd) || "1";
|
|
31
|
+
}};
|
|
32
|
+
|
|
33
|
+
& .wrapper__image {
|
|
22
34
|
height: 100%;
|
|
35
|
+
width: 100%;
|
|
23
36
|
object-fit: cover;
|
|
37
|
+
border-radius: 0.75rem;
|
|
24
38
|
}
|
|
25
|
-
`, $ = s.div`
|
|
26
|
-
display: grid;
|
|
27
|
-
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
28
|
-
gap: 1.25rem;
|
|
29
39
|
|
|
30
|
-
|
|
40
|
+
& .wrapper__image--skeleton {
|
|
41
|
+
width: 24.5rem;
|
|
42
|
+
height: 30rem;
|
|
43
|
+
border-radius: 0.75rem;
|
|
44
|
+
background-color: ${o("-90deg")};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
& .wrapper__text {
|
|
31
48
|
display: flex;
|
|
32
|
-
|
|
33
|
-
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
align-items: flex-start;
|
|
51
|
+
padding: 1rem;
|
|
52
|
+
position: absolute;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
gap: 0.75rem;
|
|
56
|
+
|
|
57
|
+
& .text__title {
|
|
58
|
+
color: var(--white, #ffffff);
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
line-height: 1.5rem;
|
|
63
|
+
${c(2)}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
& .text__tag {
|
|
67
|
+
background-color: var(--warning-600, #d97706);
|
|
68
|
+
color: var(--white, #ffffff);
|
|
69
|
+
font-size: 0.875rem;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
line-height: 1.25rem;
|
|
73
|
+
padding: 0.25rem 0.5rem;
|
|
34
74
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-webkit-appearance: none;
|
|
75
|
+
border-radius: 0.375rem;
|
|
76
|
+
background: var(--warning-600, #d97706);
|
|
38
77
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
78
|
+
|
|
79
|
+
& .text__description {
|
|
80
|
+
color: var(--white);
|
|
81
|
+
font-size: 0.875rem;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
line-height: 1.25rem;
|
|
85
|
+
${c(2)}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& .text__action {
|
|
89
|
+
background: var(--white);
|
|
90
|
+
color: var(--black);
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
background: var(--primary-500, #f59e0b);
|
|
94
|
+
color: var(--white);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& .text__title--skeleton {
|
|
99
|
+
background-color: ${o("-90deg")};
|
|
100
|
+
height: 1rem;
|
|
101
|
+
width: 9rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
& .text__description--skeleton {
|
|
105
|
+
background-color: ${o("-90deg")};
|
|
106
|
+
height: 1rem;
|
|
107
|
+
width: 12rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& .text__action--skeleton {
|
|
111
|
+
background-color: ${o("-90deg")};
|
|
112
|
+
height: 2rem;
|
|
113
|
+
width: 9rem;
|
|
47
114
|
}
|
|
48
115
|
}
|
|
49
|
-
`,
|
|
116
|
+
`, v = p(
|
|
117
|
+
({
|
|
118
|
+
title: r,
|
|
119
|
+
image: e,
|
|
120
|
+
description: i,
|
|
121
|
+
actionText: n,
|
|
122
|
+
onSelectCard: a = () => {
|
|
123
|
+
},
|
|
124
|
+
className: l,
|
|
125
|
+
position: h,
|
|
126
|
+
tag: s
|
|
127
|
+
}, $) => {
|
|
128
|
+
const x = w();
|
|
129
|
+
return /* @__PURE__ */ t(u, { children: /* @__PURE__ */ m(
|
|
130
|
+
b,
|
|
131
|
+
{
|
|
132
|
+
theme: x,
|
|
133
|
+
className: l,
|
|
134
|
+
onClick: a,
|
|
135
|
+
position: h,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
|
|
138
|
+
/* @__PURE__ */ m("div", { className: "wrapper__text", children: [
|
|
139
|
+
s && /* @__PURE__ */ t("div", { className: "text__tag", children: s }),
|
|
140
|
+
/* @__PURE__ */ t("div", { className: "text__title", children: r }),
|
|
141
|
+
g(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
|
|
142
|
+
g(n) && /* @__PURE__ */ t(
|
|
143
|
+
_,
|
|
144
|
+
{
|
|
145
|
+
text: n,
|
|
146
|
+
onClick: a,
|
|
147
|
+
className: "text__action"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
] })
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
) });
|
|
154
|
+
}
|
|
155
|
+
), y = d.div`
|
|
50
156
|
display: flex;
|
|
51
157
|
flex-direction: column;
|
|
52
|
-
gap:
|
|
53
|
-
cursor: pointer;
|
|
158
|
+
gap: 1.5rem;
|
|
54
159
|
|
|
55
|
-
&
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
& .card-title {
|
|
63
|
-
font-size: 0.875rem;
|
|
160
|
+
& .regular-title {
|
|
161
|
+
display: flex;
|
|
162
|
+
gap: 0.5rem;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
font-size: 1.5rem;
|
|
64
166
|
font-weight: 600;
|
|
65
|
-
|
|
66
|
-
|
|
167
|
+
& .regular-title-text {
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 0.5rem;
|
|
170
|
+
align-items: center;
|
|
171
|
+
}
|
|
67
172
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
color: var(--primary-500, #
|
|
173
|
+
& i {
|
|
174
|
+
font-size: 1.5rem;
|
|
175
|
+
color: var(--primary-500, #f59e0b);
|
|
71
176
|
}
|
|
72
177
|
}
|
|
73
178
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
border-radius: 0.75rem;
|
|
77
|
-
border: 1px solid white;
|
|
78
|
-
}
|
|
179
|
+
@media (max-width: ${f + "px"}) {
|
|
180
|
+
gap: 1.25rem;
|
|
79
181
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
182
|
+
& .regular-title {
|
|
183
|
+
font-size: 1.375rem;
|
|
184
|
+
|
|
185
|
+
&.center {
|
|
186
|
+
justify-content: center;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
84
189
|
}
|
|
190
|
+
`, k = d.div`
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-columns: repeat(12, 1fr);
|
|
193
|
+
grid-template-rows: 15rem 15rem;
|
|
194
|
+
grid-column-gap: 1.25rem;
|
|
195
|
+
grid-row-gap: 1.25rem;
|
|
196
|
+
height: 30rem;
|
|
197
|
+
max-height: 30rem;
|
|
85
198
|
|
|
86
199
|
@media (max-width: ${f + "px"}) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
object-fit: cover;
|
|
95
|
-
}
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
gap: 1rem;
|
|
203
|
+
width: 100%;
|
|
204
|
+
height: 100%;
|
|
205
|
+
max-height: 100%;
|
|
206
|
+
padding: 0 1rem;
|
|
96
207
|
}
|
|
97
|
-
`,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
sellerUuid: p,
|
|
103
|
-
onSelectCard: t = () => {
|
|
104
|
-
},
|
|
105
|
-
imageComponent: d
|
|
106
|
-
} = a;
|
|
107
|
-
return /* @__PURE__ */ m(j, { className: "product-card", onClick: t, children: [
|
|
108
|
-
y(d) ? d : /* @__PURE__ */ r("img", { src: o }),
|
|
109
|
-
/* @__PURE__ */ r("div", { className: "card-title", children: i })
|
|
110
|
-
] });
|
|
111
|
-
}), P = g((a, c) => {
|
|
112
|
-
const {
|
|
113
|
-
icon: l,
|
|
114
|
-
items: i,
|
|
115
|
-
limit: o = 4,
|
|
116
|
-
bannerImage: p,
|
|
117
|
-
onSelectCard: t = () => {
|
|
118
|
-
},
|
|
119
|
-
title: d = "Season inspiration"
|
|
120
|
-
} = a, b = w();
|
|
121
|
-
return /* @__PURE__ */ m(v, { ref: c, children: [
|
|
122
|
-
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ m("div", { className: "regular-title-text", children: [
|
|
123
|
-
N(l) && /* @__PURE__ */ r("i", { className: l }),
|
|
124
|
-
/* @__PURE__ */ r("span", { children: d })
|
|
125
|
-
] }) }),
|
|
126
|
-
/* @__PURE__ */ r(S, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: p }) }),
|
|
127
|
-
/* @__PURE__ */ r($, { limit: o, children: b === !0 ? i == null ? void 0 : i.map((e, n) => /* @__PURE__ */ r(
|
|
128
|
-
u,
|
|
129
|
-
{
|
|
130
|
-
title: e == null ? void 0 : e.title,
|
|
131
|
-
image: e == null ? void 0 : e.image,
|
|
132
|
-
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
133
|
-
uuid: e == null ? void 0 : e.uuid,
|
|
134
|
-
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
|
|
135
|
-
},
|
|
136
|
-
n
|
|
137
|
-
)) : i == null ? void 0 : i.slice(0, o).map((e, n) => /* @__PURE__ */ r(
|
|
138
|
-
u,
|
|
208
|
+
`, C = p(
|
|
209
|
+
({ title: r, items: e, limit: i = 3 }, n) => /* @__PURE__ */ m(y, { children: [
|
|
210
|
+
/* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
|
|
211
|
+
/* @__PURE__ */ t(k, { limit: i, children: e && (e == null ? void 0 : e.map((a, l) => /* @__PURE__ */ t(
|
|
212
|
+
v,
|
|
139
213
|
{
|
|
140
|
-
|
|
141
|
-
image: e == null ? void 0 : e.image,
|
|
142
|
-
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
143
|
-
uuid: e == null ? void 0 : e.uuid,
|
|
144
|
-
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
|
|
214
|
+
...a
|
|
145
215
|
},
|
|
146
|
-
|
|
147
|
-
)) })
|
|
148
|
-
] })
|
|
149
|
-
|
|
216
|
+
`landing-page-masonry-general-card__${l + 1}`
|
|
217
|
+
))) })
|
|
218
|
+
] })
|
|
219
|
+
);
|
|
150
220
|
export {
|
|
151
|
-
|
|
221
|
+
C as default
|
|
152
222
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react");var t=function(e){c.useEffect(e,[])};exports.useEffectOnce=t;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lanaco/lnc-react-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.26",
|
|
4
4
|
"description": "React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -123,7 +123,11 @@
|
|
|
123
123
|
"./BannerSectionGrid": "./dist/BannerSectionGrid.js",
|
|
124
124
|
"./BannerSectionSimple": "./dist/BannerSectionSimple.js",
|
|
125
125
|
"./BannerSectionWithList": "./dist/BannerSectionWithList.js",
|
|
126
|
-
"./BannerSectionWithListImage": "./dist/BannerSectionWithListImage.js"
|
|
126
|
+
"./BannerSectionWithListImage": "./dist/BannerSectionWithListImage.js",
|
|
127
|
+
"./BrandHitsSection": "./dist/BrandHitsSection.js",
|
|
128
|
+
"./FieldOfInterestsMasonrySection": "./dist/FieldOfInterestsMasonrySection.js",
|
|
129
|
+
"./FieldOfInterestsWithAvatarsCardsSection": "./dist/FieldOfInterestsWithAvatarsCardsSection.js",
|
|
130
|
+
"./FieldOfInterestsWithTagsCardsSection": "./dist/FieldOfInterestsWithTagsCardsSection.js"
|
|
127
131
|
},
|
|
128
132
|
"dependencies": {
|
|
129
133
|
"@dnd-kit/core": "^6.0.5",
|
package/vite.config.js
CHANGED
|
@@ -181,6 +181,22 @@ export default defineConfig({
|
|
|
181
181
|
__dirname,
|
|
182
182
|
"src/Landing Sections/banners-sections/banner-section-with-list-image/index.jsx"
|
|
183
183
|
),
|
|
184
|
+
resolve(
|
|
185
|
+
__dirname,
|
|
186
|
+
"src/Landing Sections/brand-sections/brand-hits-section/index.jsx"
|
|
187
|
+
),
|
|
188
|
+
resolve(
|
|
189
|
+
__dirname,
|
|
190
|
+
"src/Landing Sections/field-of-interests-sections/field-of-interests-masonry-section/index.jsx"
|
|
191
|
+
),
|
|
192
|
+
resolve(
|
|
193
|
+
__dirname,
|
|
194
|
+
"src/Landing Sections/field-of-interests-sections/field-of-interests-with-avatars-cards-section/index.jsx"
|
|
195
|
+
),
|
|
196
|
+
resolve(
|
|
197
|
+
__dirname,
|
|
198
|
+
"src/Landing Sections/field-of-interests-sections/field-of-interests-with-tags-cards-section/index.jsx"
|
|
199
|
+
),
|
|
184
200
|
],
|
|
185
201
|
name: "@lanaco/lnc-react-ui",
|
|
186
202
|
fileName: (format, name) => {
|