umwd-components 0.1.764 → 0.1.766

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.
Files changed (43) hide show
  1. package/dist/cjs/src/components/page-builder/PBCategoryBlock.js +7 -0
  2. package/dist/cjs/src/components/page-builder/PBColumnsSection.js +6 -0
  3. package/dist/cjs/src/components/page-builder/PBFleetSection.js +6 -0
  4. package/dist/cjs/src/components/page-builder/PBIconSection.js +6 -0
  5. package/dist/cjs/src/components/page-builder/PBLogoBarSection.js +7 -0
  6. package/dist/cjs/src/components/page-builder/PBPictureBarSection.js +7 -0
  7. package/dist/cjs/src/components/page-builder/PBProductBlock.js +7 -0
  8. package/dist/cjs/src/components/page-builder/PageBuilder.js +1 -1
  9. package/dist/cjs/src/components/page-elements/Page.js +1 -1
  10. package/dist/cjs/src/index.js +1 -1
  11. package/dist/cjs/src/lib/getIcon.js +1 -1
  12. package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
  13. package/dist/esm/src/components/page-builder/PBCategoryBlock.js +35 -0
  14. package/dist/esm/src/components/page-builder/{ColumnsSection.js → PBColumnsSection.js} +3 -3
  15. package/dist/esm/src/components/page-builder/{FleetSection.js → PBFleetSection.js} +2 -2
  16. package/dist/esm/src/components/page-builder/{IconSection.js → PBIconSection.js} +3 -3
  17. package/dist/esm/src/components/page-builder/{LogoBarSection.js → PBLogoBarSection.js} +2 -2
  18. package/dist/esm/src/components/page-builder/PBPersonaliaSection.js +5 -5
  19. package/dist/esm/src/components/page-builder/{PictureBarSection.js → PBPictureBarSection.js} +2 -2
  20. package/dist/esm/src/components/page-builder/PBProductBlock.js +27 -0
  21. package/dist/esm/src/components/page-builder/PageBuilder.js +31 -21
  22. package/dist/esm/src/components/page-elements/Page.js +6 -4
  23. package/dist/esm/src/index.js +5 -1
  24. package/dist/esm/src/lib/getIcon.js +1 -1
  25. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  26. package/dist/esm/types/components/page-builder/PBCategoryBlock.d.ts +31 -0
  27. package/dist/esm/types/components/page-builder/{ColumnsSection.d.ts → PBColumnsSection.d.ts} +5 -5
  28. package/dist/esm/types/components/page-builder/{FleetSection.d.ts → PBFleetSection.d.ts} +5 -5
  29. package/dist/esm/types/components/page-builder/PBHeroSection.d.ts +4 -4
  30. package/dist/esm/types/components/page-builder/{IconSection.d.ts → PBIconSection.d.ts} +5 -5
  31. package/dist/esm/types/components/page-builder/{LogoBarSection.d.ts → PBLogoBarSection.d.ts} +7 -7
  32. package/dist/esm/types/components/page-builder/PBPersonaliaSection.d.ts +6 -6
  33. package/dist/esm/types/components/page-builder/{PictureBarSection.d.ts → PBPictureBarSection.d.ts} +3 -3
  34. package/dist/esm/types/components/page-builder/PBProductBlock.d.ts +15 -0
  35. package/dist/esm/types/components/page-elements/Page.d.ts +3 -1
  36. package/dist/esm/types/index.d.ts +5 -1
  37. package/dist/esm/types/lib/getIcon.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/dist/cjs/src/components/page-builder/ColumnsSection.js +0 -6
  40. package/dist/cjs/src/components/page-builder/FleetSection.js +0 -6
  41. package/dist/cjs/src/components/page-builder/IconSection.js +0 -6
  42. package/dist/cjs/src/components/page-builder/LogoBarSection.js +0 -7
  43. package/dist/cjs/src/components/page-builder/PictureBarSection.js +0 -7
@@ -0,0 +1,31 @@
1
+ import { SxProps, Theme } from "@mui/material/styles";
2
+ import { ExtendedProduct } from "../../types/e-commerce/product/types";
3
+ type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
4
+ interface PBCategoryBlockProps {
5
+ id: number;
6
+ __component: string;
7
+ title: string;
8
+ description: string;
9
+ category: {
10
+ documentId: string;
11
+ uuid?: string;
12
+ title: string;
13
+ description: string;
14
+ slug?: string;
15
+ is_archive?: boolean;
16
+ createdAt?: string;
17
+ updatedAt?: string;
18
+ publishedAt?: string;
19
+ products?: {
20
+ data: ExtendedProduct[];
21
+ };
22
+ };
23
+ previewAmount?: number;
24
+ maxWidth?: MaxWidth;
25
+ sx?: SxProps<Theme>;
26
+ glass?: boolean;
27
+ }
28
+ export declare function PBCategoryBlock({ data, }: {
29
+ readonly data: PBCategoryBlockProps;
30
+ }): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -1,21 +1,21 @@
1
1
  import { SxProps, Theme } from "@mui/material/styles";
2
2
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
3
- interface ColumnProps {
3
+ interface PBColumnProps {
4
4
  id: number;
5
5
  heading: string;
6
6
  text: string;
7
7
  icon: string;
8
8
  }
9
- interface ColumnsSectionProps {
9
+ interface PBColumnsSectionProps {
10
10
  id: number;
11
11
  __component: string;
12
12
  title: string;
13
13
  description: string;
14
- column: ColumnProps[];
14
+ column: PBColumnProps[];
15
15
  maxWidth: MaxWidth;
16
16
  sx?: SxProps<Theme>;
17
17
  }
18
- export declare function ColumnsSection({ data, }: {
19
- readonly data: ColumnsSectionProps;
18
+ export declare function PBColumnsSection({ data, }: {
19
+ readonly data: PBColumnsSectionProps;
20
20
  }): import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -1,7 +1,7 @@
1
1
  import { StrapiImageProps } from "../../types/StrapiImageProps";
2
2
  import { SxProps, Theme } from "@mui/material/styles";
3
3
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
4
- interface AirplaneProps {
4
+ interface PBAirplaneProps {
5
5
  id: number;
6
6
  name: string;
7
7
  description: string;
@@ -13,16 +13,16 @@ interface AirplaneProps {
13
13
  cabinLength: number;
14
14
  floorplan: StrapiImageProps;
15
15
  }
16
- interface FleetSectionProps {
16
+ interface PBFleetSectionProps {
17
17
  id: number;
18
18
  __component: string;
19
19
  title: string;
20
20
  description: string;
21
- airplane: AirplaneProps[];
21
+ airplane: PBAirplaneProps[];
22
22
  maxWidth: MaxWidth;
23
23
  sx?: SxProps<Theme>;
24
24
  }
25
- export declare function FleetSection({ data }: {
26
- readonly data: FleetSectionProps;
25
+ export declare function PBFleetSection({ data, }: {
26
+ readonly data: PBFleetSectionProps;
27
27
  }): import("react/jsx-runtime").JSX.Element;
28
28
  export {};
@@ -1,12 +1,12 @@
1
1
  import { SxProps, Theme } from "@mui/material/styles";
2
2
  import { StrapiImageProps } from "../../types/StrapiImageProps";
3
3
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
4
- interface LinkProps {
4
+ interface PBLinkProps {
5
5
  id: number;
6
6
  url: string;
7
7
  text: string;
8
8
  }
9
- interface HeroSectionProps {
9
+ interface PBHeroSectionProps {
10
10
  data: {
11
11
  id: number;
12
12
  __component: string;
@@ -14,12 +14,12 @@ interface HeroSectionProps {
14
14
  subHeading: string;
15
15
  bgImage?: StrapiImageProps;
16
16
  logoImage?: StrapiImageProps;
17
- link: LinkProps;
17
+ link: PBLinkProps;
18
18
  maxWidth?: MaxWidth;
19
19
  sx?: SxProps<Theme>;
20
20
  glass?: boolean;
21
21
  };
22
22
  index: number;
23
23
  }
24
- export declare function PBHeroSection({ data, index }: Readonly<HeroSectionProps>): import("react/jsx-runtime").JSX.Element;
24
+ export declare function PBHeroSection({ data, index }: Readonly<PBHeroSectionProps>): import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -1,21 +1,21 @@
1
1
  import { SxProps, Theme } from "@mui/material/styles";
2
2
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
3
- interface IconProps {
3
+ interface PBIconProps {
4
4
  id: number;
5
5
  title: string;
6
6
  text: string;
7
7
  icon: string;
8
8
  }
9
- interface IconSectionProps {
9
+ interface PBIconSectionProps {
10
10
  id: number;
11
11
  __component: string;
12
12
  title: string;
13
13
  description: string;
14
- icon: IconProps[];
14
+ icon: PBIconProps[];
15
15
  maxWidth?: MaxWidth;
16
16
  sx?: SxProps<Theme>;
17
17
  }
18
- export declare function IconSection({ data }: {
19
- readonly data: IconSectionProps;
18
+ export declare function PBIconSection({ data }: {
19
+ readonly data: PBIconSectionProps;
20
20
  }): import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { SxProps, Theme } from "@mui/material/styles";
3
3
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
4
- interface ImageProps {
4
+ interface PBImageProps {
5
5
  id: number;
6
6
  url: string;
7
7
  alternativeText: string;
@@ -9,23 +9,23 @@ interface ImageProps {
9
9
  width: number;
10
10
  height: number;
11
11
  }
12
- interface companyProps {
12
+ interface PBcompanyProps {
13
13
  id: number;
14
- logo: ImageProps;
14
+ logo: PBImageProps;
15
15
  name: string;
16
16
  url: string;
17
17
  }
18
- interface LogoBarSectionProps {
18
+ interface PBLogoBarSectionProps {
19
19
  id: number;
20
20
  __component: string;
21
21
  title: string;
22
22
  description: string;
23
- companies: companyProps[];
23
+ companies: PBcompanyProps[];
24
24
  maxWidth: MaxWidth;
25
25
  sx?: SxProps<Theme>;
26
26
  glass?: boolean;
27
27
  }
28
- export declare function LogoBarSection({ data, }: {
29
- readonly data: LogoBarSectionProps;
28
+ export declare function PBLogoBarSection({ data, }: {
29
+ readonly data: PBLogoBarSectionProps;
30
30
  }): import("react/jsx-runtime").JSX.Element;
31
31
  export {};
@@ -1,12 +1,12 @@
1
1
  import { SxProps, Theme } from "@mui/material/styles";
2
2
  import { StrapiImageProps } from "../../types/StrapiImageProps";
3
3
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
4
- interface LinkProps {
4
+ interface PBLinkProps {
5
5
  id: number;
6
6
  url: string;
7
7
  text: string;
8
8
  }
9
- interface PartnerProps {
9
+ interface PBPartnerProps {
10
10
  id: number;
11
11
  name: string;
12
12
  function: string;
@@ -14,20 +14,20 @@ interface PartnerProps {
14
14
  photo: StrapiImageProps;
15
15
  email: string;
16
16
  phone: string;
17
- links: LinkProps[];
17
+ links: PBLinkProps[];
18
18
  linkedIn: string;
19
19
  }
20
- interface PersonaliaSectionProps {
20
+ interface PBPersonaliaSectionProps {
21
21
  data: {
22
22
  id: number;
23
23
  __component: string;
24
24
  title: string;
25
25
  description: string;
26
- partner?: PartnerProps[];
26
+ partner?: PBPartnerProps[];
27
27
  maxWidth: MaxWidth;
28
28
  sx?: SxProps<Theme>;
29
29
  };
30
30
  index: number;
31
31
  }
32
- export declare function PBPersonaliaSection({ data, index, }: Readonly<PersonaliaSectionProps>): import("react/jsx-runtime").JSX.Element;
32
+ export declare function PBPersonaliaSection({ data, index, }: Readonly<PBPersonaliaSectionProps>): import("react/jsx-runtime").JSX.Element;
33
33
  export {};
@@ -1,7 +1,7 @@
1
1
  import { StrapiImageProps } from "../../types/StrapiImageProps";
2
2
  import { SxProps, Theme } from "@mui/material/styles";
3
3
  type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
4
- interface PictureBarSectionProps {
4
+ interface PBPictureBarSectionProps {
5
5
  id: number;
6
6
  __component: string;
7
7
  title: string;
@@ -13,7 +13,7 @@ interface PictureBarSectionProps {
13
13
  sx?: SxProps<Theme>;
14
14
  glass?: boolean;
15
15
  }
16
- export declare function PictureBarSection({ data, }: {
17
- readonly data: PictureBarSectionProps;
16
+ export declare function PBPictureBarSection({ data, }: {
17
+ readonly data: PBPictureBarSectionProps;
18
18
  }): import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -0,0 +1,15 @@
1
+ import { SxProps, Theme } from "@mui/material/styles";
2
+ type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
3
+ interface PBProductBlockProps {
4
+ id: number;
5
+ __component: string;
6
+ title: string;
7
+ description: string;
8
+ maxWidth: MaxWidth;
9
+ sx?: SxProps<Theme>;
10
+ glass?: boolean;
11
+ }
12
+ export declare function PBProductBlock({ data, }: {
13
+ readonly data: PBProductBlockProps;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -1,7 +1,9 @@
1
1
  import { SxProps, Theme } from "@mui/material/styles";
2
2
  interface PageProps {
3
+ title?: string;
4
+ description?: string;
3
5
  blocks: any[];
4
6
  sx?: SxProps<Theme>;
5
7
  }
6
- export declare function Page({ blocks, sx }: PageProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Page({ title, description, blocks, sx }: PageProps): import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -112,7 +112,11 @@ export { getAllInvoices as getAllInvoices } from "./data/loaders/e-commerce/getA
112
112
  export { createProductAction as createProductAction } from "./data/actions/e-commerce/product/createProductAction";
113
113
  export { updateProductAction as updateProductAction } from "./data/actions/e-commerce/product/updateProductAction";
114
114
  export { updateCategoryAction as updateCategoryAction } from "./data/actions/e-commerce/categories/updateCategoryAction";
115
- export { flattenAttributes as flattenAttributes, getStrapiURL as getStrapiURL, getStrapiMedia as getStrapiMedia, formDataToBlocks as formDataToBlocks, } from "./lib/utils";
115
+ export { flattenAttributes as flattenAttributes, getStrapiURL as getStrapiURL, getStrapiMedia as getStrapiMedia, formDataToBlocks as formDataToBlocks, setOpacity as setOpacity, } from "./lib/utils";
116
+ export { default as getIcon } from "./lib/getIcon";
117
+ export { StrapiImage as StrapiImage } from "./components/StrapiImage";
118
+ export { default as MarkdownDisplay } from "./components/common/markdown/MarkdownDisplay";
119
+ export { default as MarkdownEditor } from "./components/common/markdown/MarkdownEditor";
116
120
  export { areBusinessCredentailsComplete as areBusinessCredentailsComplete } from "./lib/areBusinessCredentialsComplete";
117
121
  export { isCustomerProfileComplete as isCustomerProfileComplete } from "./lib/isCustomerProfileComplete";
118
122
  export { isCustomerProfileCompleteV2 as isCustomerProfileCompleteV2 } from "./lib/isCustomerProfileCompleteV2";
@@ -1 +1 @@
1
- export default function getIcon(icon: string): React.ElementType | null;
1
+ export default function getIcon(icon: string): React.ElementType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.764",
3
+ "version": "0.1.766",
4
4
  "description": "UMWD Component library",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",
@@ -1,6 +0,0 @@
1
- /*
2
- * UMWD-Components
3
- * @copyright Jelle Paulus
4
- * @license MIT
5
- */
6
- "use strict";var e=require("react/jsx-runtime"),r=require("@mui/material/Grid"),i=require("@mui/material/Typography"),t=require("@mui/material/Container"),n=require("@mui/material/Paper"),s=require("../../lib/getIcon.js");exports.ColumnsSection=function({data:a}){const{column:l,maxWidth:x,sx:u=[]}=a;return e.jsx(t,{maxWidth:x||"lg",sx:[{my:1},...Array.isArray(u)?u:[u]],children:e.jsx(r,{container:!0,spacing:2,children:l.map(t=>{const a=s.default(t.icon);return e.jsx(r,{size:{xs:12,md:6},children:e.jsxs(n,{sx:{p:2,height:"100%"},children:[e.jsxs(i,{variant:"h5",sx:{mb:2,display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[null!==a&&e.jsx(a,{sx:{mr:2,mt:.2,width:"50px",height:"50px",fill:"currentColor",stroke:"none"}}),t.heading]}),e.jsx(i,{children:t.text})]})},t.id)})})})};
@@ -1,6 +0,0 @@
1
- /*
2
- * UMWD-Components
3
- * @copyright Jelle Paulus
4
- * @license MIT
5
- */
6
- "use strict";var e=require("react/jsx-runtime"),i=require("@mui/material/Stack"),r=require("@mui/material/Card"),t=require("@mui/material/CardHeader"),a=require("@mui/material/CardContent"),n=require("@mui/material/Typography"),l=require("@mui/material/Container"),s=require("@mui/material/Box"),o=require("@mui/material/Chip"),m=require("@mui/material/Paper"),c=require("../StrapiImage.js"),x=require("@mui/icons-material/Radar"),d=require("@mui/icons-material/Speed"),u=require("@mui/icons-material/Height"),h=require("@mui/material/styles");exports.FleetSection=function({data:p}){const{airplane:g,maxWidth:j,sx:f=[]}=p,b=h.useTheme();return e.jsx(l,{maxWidth:j||"lg",sx:[{my:1},...Array.isArray(f)?f:[f]],children:e.jsx(i,{spacing:2,direction:"row",justifyContent:"stretch",flexWrap:"wrap",sx:{width:"100%",[b.breakpoints.up("xs")]:{flexDirection:"column"},[b.breakpoints.up("sm")]:{flexDirection:"row"}},useFlexGap:!0,children:g.map(l=>e.jsxs(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",flex:1,minWidth:275},children:[e.jsx(t,{title:l.name,subheader:l.description}),e.jsx(s,{sx:{flex:1}}),e.jsx(a,{sx:{p:1,height:180,mb:2},children:e.jsxs(m,{sx:{p:1,display:"grid",alignItems:"center",justifyContent:"center",height:"100%",position:"relative"},variant:"outlined",children:[null!==l.floorplan&&e.jsx(c.StrapiImage,{id:l.floorplan.id?.toString(),url:l.floorplan.url,alternativeText:l.floorplan.alternativeText,width:l.floorplan.width,height:l.floorplan.height,style:{objectFit:"contain",width:"100%",paddingBottom:"20px"}}),l.cabinHeight&&l.cabinWidth&&l.cabinLength&&e.jsx(s,{sx:{position:"absolute",right:".5rem",bottom:".5rem"},children:e.jsxs(n,{variant:"body2",color:"text.secondary",align:"right",children:[e.jsx("strong",{children:"Cabin Dimensions:"})," ",e.jsx("strong",{children:"H"})," ",l.cabinHeight," m ",e.jsx("strong",{children:"W"})," ",l.cabinWidth," m ",e.jsx("strong",{children:"L"})," ",l.cabinLength," m"]})})]})}),e.jsx(a,{sx:{},children:e.jsxs(i,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[e.jsx(o,{label:`Range: ${l.range} km`,variant:"filled",color:"primary",icon:e.jsx(x,{})}),e.jsx(o,{label:`Speed: ${l.speed} km/h`,variant:"filled",color:"primary",icon:e.jsx(d,{})}),e.jsx(o,{label:`Ceiling: ${l.ceiling} ft`,variant:"filled",color:"primary",icon:e.jsx(u,{})})]})})]},l.id))})})};
@@ -1,6 +0,0 @@
1
- /*
2
- * UMWD-Components
3
- * @copyright Jelle Paulus
4
- * @license MIT
5
- */
6
- "use strict";var e=require("react/jsx-runtime"),i=require("@mui/material/Grid"),r=require("@mui/material/Card"),t=require("@mui/material/CardContent"),n=require("@mui/material/Typography"),a=require("@mui/material/Container"),s=require("../../lib/getIcon.js");exports.IconSection=function({data:l}){const{icon:c,maxWidth:m,sx:o={}}=l;return e.jsx(a,{maxWidth:m||"lg",sx:{my:1,...o},children:e.jsx(i,{container:!0,spacing:2,children:c.map(a=>{const l=s.default(a.icon);return e.jsx(i,{size:{xs:12,sm:6,md:4,lg:3},children:e.jsx(r,{sx:{display:"flex",flexDirection:"column",flex:1,height:"100%"},children:e.jsxs(t,{children:[e.jsxs(n,{variant:"h6",component:"div",sx:{display:"flex",justifyContent:"start",alignItems:"start",minHeight:"4.2rem"},children:[null!==l&&e.jsx(l,{sx:{mr:2,mt:.2}}),a.title]}),e.jsx(n,{variant:"body2",color:"text.secondary",component:"div",children:a.text})]})})},a.id)})})})};
@@ -1,7 +0,0 @@
1
- "use client";
2
- /*
3
- * UMWD-Components
4
- * @copyright Jelle Paulus
5
- * @license MIT
6
- */
7
- "use strict";var e=require("react/jsx-runtime"),i=require("@mui/material/Paper"),r=require("@mui/material/Container"),t=require("@mui/material/Grid"),a=require("@mui/material/Stack"),n=require("../StrapiImage.js"),o=require("@mui/material/styles"),s=require("../../lib/utils.js"),l=require("../StyledLink.js");exports.LogoBarSection=function({data:c}){const{companies:u,maxWidth:d="lg",sx:m={},glass:x=!1}=c,g=o.useTheme();return e.jsx(r,{maxWidth:d,sx:{my:1,...m},children:e.jsx(t,{container:!0,spacing:2,children:e.jsx(t,{size:12,children:e.jsx(i,{sx:{p:2,backdropFilter:"blur(3px)",backgroundColor:s.setOpacity(g.palette.background.paper,x?.1:1),border:x?"1px solid rgba(255, 255, 255, 0.15)":"none"},children:e.jsx(a,{direction:{xs:"column",sm:"row"},spacing:2,justifyContent:"space-around",children:u&&u.map(i=>e.jsxs(l.StyledLink,{href:i.url,sx:{flex:"1 1 0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",paddingBottom:"1rem",transform:"scale(.9)",transition:".2s","&:hover":{transform:"scale(1)"}},children:[e.jsx(n.StrapiImage,{id:i.logo.id.toString(),url:i.logo.url,alternativeText:i.logo.alternativeText,width:i.logo.width,height:i.logo.height,style:{...i.logo.style,width:"120px",height:"120px",objectFit:"contain",paddingBottom:"1rem"}}),i.name]},i.id))})})})})})};
@@ -1,7 +0,0 @@
1
- "use client";
2
- /*
3
- * UMWD-Components
4
- * @copyright Jelle Paulus
5
- * @license MIT
6
- */
7
- "use strict";var e=require("react/jsx-runtime"),r=require("@mui/material/Paper"),i=require("@mui/material/Container"),t=require("@mui/material/Grid"),a=require("@mui/material/Box"),s=require("@mui/material/Stack"),u=require("../StrapiImage.js"),l=require("@mui/material/styles"),n=require("../../lib/utils.js");exports.PictureBarSection=function({data:d}){const{pictures:c,maxWidth:m="lg",sx:o={},glass:x=!1}=d,h=l.useTheme();return e.jsx(i,{maxWidth:m,sx:{my:1,...o},children:e.jsx(t,{container:!0,spacing:2,children:e.jsx(t,{size:12,children:e.jsx(r,{sx:{p:2,backdropFilter:"blur(3px)",backgroundColor:n.setOpacity(h.palette.background.paper,x?.1:1),border:x?"1px solid rgba(255, 255, 255, 0.15)":"none"},children:e.jsx(s,{direction:{xs:"column",sm:"row"},spacing:2,justifyContent:"space-around",children:c.data&&c.data.map(r=>e.jsx(a,{sx:{flex:"1 1 0"},children:e.jsx(u.StrapiImage,{id:r.id.toString(),url:r.url,alternativeText:r.alternativeText,width:r.width,height:r.height,style:{...r.style,width:"100%",height:"auto"}})},r.id))})})})})})};