@lanaco/lnc-react-ui
Version:
React component library
70 lines (65 loc) • 1.74 kB
JavaScript
import { jsxs as o, jsx as t } from "react/jsx-runtime";
import { forwardRef as d } from "react";
import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
import { d as m } from "./breakpoints-BubDitvo.js";
import u from "./Button.js";
const b = f.div`
display: flex;
flex-direction: column;
gap: 1.25rem;
color: var(--gray-950, #14161a);
justify-content: center;
& button {
width: fit-content;
}
& .block-group {
display: flex;
flex-direction: column;
}
& .txt-block-subtitle {
font-size: 0.75rem;
font-weight: 400;
color: var(--gray-500, #868c98);
}
& .txt-block-title {
font-size: 1.5rem;
font-weight: 600;
color: var(--gray-950, #14161a);
}
& .txt-block-description {
font-size: 0.875rem;
font-weight: 400;
color: var(--gray-700, #4e555f);
}
@media ${m("S")} {
align-items: start;
justify-content: start;
& .txt-block-title {
font-size: 1.375rem;
}
}
`, v = d((e, p) => {
const { title: r, subtitle: i, description: n, buttonText: l, buttonLink: c, onButtonAction: s = () => {
}, ...a } = e;
return /* @__PURE__ */ o(b, { ...a, children: [
/* @__PURE__ */ o("div", { className: "block-group", children: [
/* @__PURE__ */ t("div", { className: "txt-block-subtitle", children: i }),
/* @__PURE__ */ t("div", { className: "txt-block-title", children: r }),
/* @__PURE__ */ t("div", { className: "txt-block-description", children: n })
] }),
/* @__PURE__ */ t(
u,
{
type: "button",
btnType: "outline",
borderRadius: "curved",
onClick: () => s(c),
color: "gray",
children: l
}
)
] });
});
export {
v as T
};