umwd-components 0.1.265 → 0.1.266
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.
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var e=require("react"),t=require("./TextImageSection.js"),r=require("./HeroSection.js"),a=require("./FeaturesSection.js"),n=require("./FleetSection.js"),o=require("./IconSection.js"),c=require("./ColumnsSection.js"),i=require("@mui/material"),u=require("../ContactForm.js"),s=require("./PersonaliaSection.js"),l=require("./PictureBarSection.js"),m=require("./LogoBarSection.js");function d(i){switch(i.__component){case"layout.hero-section":return e.createElement(r.HeroSection,{key:i.id,data:i});case"layout.features-section":return e.createElement(a.FeatureSection,{key:i.id,data:i});case"layout.contact-section":return e.createElement(u.ContactForm,{key:i.id,data:i});case"layout.text-image-section":return e.createElement(t.TextImageSection,{key:i.id,data:i});case"layout.icon-section":return e.createElement(o.IconSection,{key:i.id,data:i});case"layout.fleet-section":return e.createElement(n.FleetSection,{key:i.id,data:i});case"layout.columns-section":return e.createElement(c.ColumnsSection,{key:i.id,data:i});case"layout.personalia-section":return e.createElement(s.PersonaliaSection,{key:i.id,data:i});case"layout.picture-bar-section":return e.createElement(l.PictureBarSection,{key:i.id,data:i});case"layout.logo-bar-section":return e.createElement(m.LogoBarSection,{key:i.id,data:i});default:return null}}exports.Page=function(t){let{blocks:r,sx:a=[]}=t;return r?e.createElement(i
|
|
6
|
+
"use strict";var e=require("react"),t=require("./TextImageSection.js"),r=require("./HeroSection.js"),a=require("./FeaturesSection.js"),n=require("./FleetSection.js"),o=require("./IconSection.js"),c=require("./ColumnsSection.js"),i=require("@mui/material/Box"),u=require("../ContactForm.js"),s=require("./PersonaliaSection.js"),l=require("./PictureBarSection.js"),m=require("./LogoBarSection.js");function d(i){switch(i.__component){case"layout.hero-section":return e.createElement(r.HeroSection,{key:i.id,data:i});case"layout.features-section":return e.createElement(a.FeatureSection,{key:i.id,data:i});case"layout.contact-section":return e.createElement(u.ContactForm,{key:i.id,data:i});case"layout.text-image-section":return e.createElement(t.TextImageSection,{key:i.id,data:i});case"layout.icon-section":return e.createElement(o.IconSection,{key:i.id,data:i});case"layout.fleet-section":return e.createElement(n.FleetSection,{key:i.id,data:i});case"layout.columns-section":return e.createElement(c.ColumnsSection,{key:i.id,data:i});case"layout.personalia-section":return e.createElement(s.PersonaliaSection,{key:i.id,data:i});case"layout.picture-bar-section":return e.createElement(l.PictureBarSection,{key:i.id,data:i});case"layout.logo-bar-section":return e.createElement(m.LogoBarSection,{key:i.id,data:i});default:return null}}exports.Page=function(t){let{blocks:r,sx:a=[]}=t;return r?e.createElement(i,{sx:[...Array.isArray(a)?a:[a]]},r.map(d)):e.createElement("p",null,"No sections found")};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import e from"react";import{TextImageSection as t}from"./TextImageSection.js";import{HeroSection as
|
|
6
|
+
import e from"react";import{TextImageSection as t}from"./TextImageSection.js";import{HeroSection as r}from"./HeroSection.js";import{FeatureSection as o}from"./FeaturesSection.js";import{FleetSection as a}from"./FleetSection.js";import{IconSection as n}from"./IconSection.js";import{ColumnsSection as c}from"./ColumnsSection.js";import i from"@mui/material/Box";import{ContactForm as m}from"../ContactForm.js";import{PersonaliaSection as s}from"./PersonaliaSection.js";import{PictureBarSection as l}from"./PictureBarSection.js";import{LogoBarSection as u}from"./LogoBarSection.js";function d(i){switch(i.__component){case"layout.hero-section":return e.createElement(r,{key:i.id,data:i});case"layout.features-section":return e.createElement(o,{key:i.id,data:i});case"layout.contact-section":return e.createElement(m,{key:i.id,data:i});case"layout.text-image-section":return e.createElement(t,{key:i.id,data:i});case"layout.icon-section":return e.createElement(n,{key:i.id,data:i});case"layout.fleet-section":return e.createElement(a,{key:i.id,data:i});case"layout.columns-section":return e.createElement(c,{key:i.id,data:i});case"layout.personalia-section":return e.createElement(s,{key:i.id,data:i});case"layout.picture-bar-section":return e.createElement(l,{key:i.id,data:i});case"layout.logo-bar-section":return e.createElement(u,{key:i.id,data:i});default:return null}}function y(t){let{blocks:r,sx:o=[]}=t;return r?e.createElement(i,{sx:[...Array.isArray(o)?o:[o]]},r.map(d)):e.createElement("p",null,"No sections found")}export{y as Page};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { FeatureSection } from "./FeaturesSection.tsx";
|
|
|
5
5
|
import { FleetSection } from "./FleetSection.tsx";
|
|
6
6
|
import { IconSection } from "./IconSection.tsx";
|
|
7
7
|
import { ColumnsSection } from "./ColumnsSection.tsx";
|
|
8
|
-
import
|
|
8
|
+
import Box from "@mui/material/Box";
|
|
9
9
|
import { ContactForm } from "../ContactForm.tsx";
|
|
10
10
|
import { PersonaliaSection } from "./PersonaliaSection.tsx";
|
|
11
11
|
import { PictureBarSection } from "./PictureBarSection.tsx";
|
|
@@ -50,5 +50,14 @@ export function Page({ blocks, sx = [] }: PageProps) {
|
|
|
50
50
|
return <p>No sections found</p>;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
return
|
|
53
|
+
return (
|
|
54
|
+
<Box
|
|
55
|
+
sx={[
|
|
56
|
+
// You cannot spread `sx` directly because `SxProps` (typeof sx) can be an array.
|
|
57
|
+
...(Array.isArray(sx) ? sx : [sx]),
|
|
58
|
+
]}
|
|
59
|
+
>
|
|
60
|
+
{blocks.map(blockRenderer)}
|
|
61
|
+
</Box>
|
|
62
|
+
);
|
|
54
63
|
}
|