@sprintup-cms/sdk 1.8.45 → 1.8.46
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/next/index.cjs +13 -2
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +13 -2
- package/dist/next/index.js.map +1 -1
- package/dist/react/index.cjs +13 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +13 -2
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/next/index.cjs
CHANGED
|
@@ -800,8 +800,19 @@ function ColumnsBlock({ block }) {
|
|
|
800
800
|
function ContainerBlock({ block }) {
|
|
801
801
|
const d = getData(block);
|
|
802
802
|
const maxW = { sm: "max-w-sm", md: "max-w-md", lg: "max-w-lg", xl: "max-w-xl", "2xl": "max-w-2xl", "4xl": "max-w-4xl", full: "max-w-full" };
|
|
803
|
-
const pad = { none: "", sm: "px-4 py-4", md: "px-6 py-8", lg: "px-8 py-12" };
|
|
804
|
-
|
|
803
|
+
const pad = { none: "px-0 py-0", sm: "px-4 py-4", md: "px-6 py-8", lg: "px-8 py-12" };
|
|
804
|
+
const align = { left: "text-left", center: "text-center", right: "text-right" };
|
|
805
|
+
const style = d.bgColor ? { backgroundColor: d.bgColor } : void 0;
|
|
806
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { style, className: d.bgColor ? "rounded-xl" : "", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `mx-auto ${maxW[d.maxWidth || "4xl"] ?? "max-w-4xl"} ${pad[d.padding || "md"] ?? "px-6 py-8"} ${align[d.align || "left"] ?? "text-left"}`, children: [
|
|
807
|
+
d.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-bold tracking-tight text-balance mb-4", children: d.title }),
|
|
808
|
+
d.content && /* @__PURE__ */ jsxRuntime.jsx(
|
|
809
|
+
"div",
|
|
810
|
+
{
|
|
811
|
+
className: "prose prose-sm max-w-none leading-relaxed",
|
|
812
|
+
dangerouslySetInnerHTML: { __html: d.content }
|
|
813
|
+
}
|
|
814
|
+
)
|
|
815
|
+
] }) });
|
|
805
816
|
}
|
|
806
817
|
function CarouselBlock({ block }) {
|
|
807
818
|
const d = getData(block);
|