@sprintup-cms/sdk 1.8.44 → 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.js
CHANGED
|
@@ -794,8 +794,19 @@ function ColumnsBlock({ block }) {
|
|
|
794
794
|
function ContainerBlock({ block }) {
|
|
795
795
|
const d = getData(block);
|
|
796
796
|
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" };
|
|
797
|
-
const pad = { none: "", sm: "px-4 py-4", md: "px-6 py-8", lg: "px-8 py-12" };
|
|
798
|
-
|
|
797
|
+
const pad = { none: "px-0 py-0", sm: "px-4 py-4", md: "px-6 py-8", lg: "px-8 py-12" };
|
|
798
|
+
const align = { left: "text-left", center: "text-center", right: "text-right" };
|
|
799
|
+
const style = d.bgColor ? { backgroundColor: d.bgColor } : void 0;
|
|
800
|
+
return /* @__PURE__ */ jsx("section", { style, className: d.bgColor ? "rounded-xl" : "", children: /* @__PURE__ */ 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: [
|
|
801
|
+
d.title && /* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-bold tracking-tight text-balance mb-4", children: d.title }),
|
|
802
|
+
d.content && /* @__PURE__ */ jsx(
|
|
803
|
+
"div",
|
|
804
|
+
{
|
|
805
|
+
className: "prose prose-sm max-w-none leading-relaxed",
|
|
806
|
+
dangerouslySetInnerHTML: { __html: d.content }
|
|
807
|
+
}
|
|
808
|
+
)
|
|
809
|
+
] }) });
|
|
799
810
|
}
|
|
800
811
|
function CarouselBlock({ block }) {
|
|
801
812
|
const d = getData(block);
|