UNPKG

@lanaco/lnc-react-ui

Version:

React component library

70 lines (65 loc) 1.74 kB
import { jsxs as o, jsx as t } from "react/jsx-runtime"; import { forwardRef as d } from "react"; import { n as m } from "./emotion-styled.browser.esm-CjCaF13H.js"; import { M as f } from "./consts-C1uHV4xc.js"; import p from "./Button.js"; const u = m.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); } & .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 (max-width: ${f + "px"}) { align-items: start; justify-content: start; & .txt-block-title { font-size: 1.375rem; } } `, v = d((e, b) => { const { title: r, subtitle: i, description: n, buttonText: l, buttonLink: c, onButtonAction: s = () => { }, ...a } = e; return /* @__PURE__ */ o(u, { ...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( p, { type: "button", btnType: "outline", borderRadius: "curved", onClick: () => s(c), color: "gray", children: l } ) ] }); }); export { v as T };