@lanaco/lnc-react-ui
Version:
React component library
143 lines (132 loc) • 3.37 kB
JavaScript
import { jsxs as a, jsx as e } from "react/jsx-runtime";
import { forwardRef as p, Fragment as u } from "react";
import { s } from "./emotion-styled.browser.esm-DfbrHHed.js";
import { d as m } from "./breakpoints-BubDitvo.js";
import y from "./Button.js";
import { m as i } from "./utils-BUdHa0nB.js";
const x = s.div`
padding-bottom: 1.38rem;
text-align: center;
display: flex;
justify-content: center;
flex-direction: column;
gap: 2rem;
align-items: center;
& button {
width: fit-content;
background: var(--gray-950, #14161a);
font-size: 0.875rem;
font-style: normal;
font-weight: 500;
line-height: 1.25rem;
letter-spacing: -0.09px;
white-space: pre;
&:hover {
background: var(--gray-700, #424b56);
}
}
@media ${m("S")} {
padding-bottom: 0;
}
`, b = s.div`
text-align: center;
display: flex;
justify-content: center;
flex-direction: column;
gap: 0.25rem;
& .header-title {
color: var(--gray-950, #14161a);
text-align: center;
font-size: 1.75rem;
font-style: normal;
font-weight: 600;
line-height: 2.25rem;
}
& .header-subtitle {
color: var(--gray-600, #676e79);
text-align: center;
font-size: 1rem;
font-style: normal;
font-weight: 500;
line-height: 1.5rem;
}
@media ${m("S")} {
& .header-title {
font-size: 1.375rem;
line-height: 1.75rem;
}
& .header-subtitle {
font-size: 0.875rem;
font-style: normal;
line-height: 1.25rem;
}
}
`, v = s.div`
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
gap: 0.75rem;
font-size: 0.875rem;
font-weight: 500;
align-items: center;
& .list-item {
display: flex;
align-items: center;
color: var(--gray-950, #14161a);
font-size: 0.875rem;
font-style: normal;
font-weight: 500;
line-height: 1.25rem;
letter-spacing: -0.0056rem;
& .mng {
font-size: 1.25rem;
color: var(--primary-600, #e86b1e);
}
}
@media ${m("S")} {
& .list-item {
flex-direction: column;
text-align: center;
justify-content: center;
gap: 0;
}
}
`, B = p((c, d) => {
const {
title: r,
subtitle: o,
buttonText: f,
list: l,
buttonLink: g,
onButtonAction: h = () => {
}
} = c;
return /* @__PURE__ */ a(x, { ref: d, className: "lp-section lp-bnr-section lp-banner-section-with-list", children: [
(i(r) || i(o)) && /* @__PURE__ */ a(b, { children: [
i(r) && /* @__PURE__ */ e("div", { className: "header-title", children: r }),
i(o) && /* @__PURE__ */ e("div", { className: "header-subitle", children: o })
] }),
/* @__PURE__ */ e(v, { children: l == null ? void 0 : l.map((t, n) => /* @__PURE__ */ e(u, { children: /* @__PURE__ */ a("div", { className: "list-item", children: [
/* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
/* @__PURE__ */ e("span", { children: t })
] }) }, n)) }),
/* @__PURE__ */ e(
y,
{
size: "medium",
color: "neutral",
type: "button",
className: "header-button",
onClick: (t) => {
var n;
(n = t == null ? void 0 : t.target) == null || n.blur(), h(g);
},
children: f
}
)
] });
});
export {
B as default
};