@mittwald/flow-react-components 0.1.0-alpha.26 → 0.1.0-alpha.27

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.
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ declare const ColumnLayout: FC<ColumnLayoutProps>;
5
+ export { ColumnLayout }
6
+ export default ColumnLayout;
7
+
8
+ export declare interface ColumnLayoutProps extends PropsWithChildren {
9
+ s?: number[];
10
+ m?: number[];
11
+ l?: number[];
12
+ }
13
+
14
+ export { }
@@ -0,0 +1,22 @@
1
+ "use client"
2
+ /* */
3
+ import s from "react";
4
+ const i = "flow--column-layout--column-layout-container", f = "flow--column-layout", e = {
5
+ columnLayoutContainer: i,
6
+ columnLayout: f
7
+ }, l = (n) => {
8
+ if (n.length < 1)
9
+ throw new Error("Column layout array is empty");
10
+ return n.map((o) => `${o}fr`).join(" ");
11
+ }, d = (n) => {
12
+ const { children: u, s: o, m: t, l: c } = n, a = o ? l(o) : void 0, m = t ? l(t) : o ? a : void 0, r = c ? l(c) : t || o ? m : void 0, y = {
13
+ "--column-layout--columns-s": a,
14
+ "--column-layout--columns-m": m,
15
+ "--column-layout--columns-l": r
16
+ };
17
+ return /* @__PURE__ */ s.createElement("div", { className: e.columnLayoutContainer, style: y }, /* @__PURE__ */ s.createElement("div", { className: e.columnLayout }, u));
18
+ };
19
+ export {
20
+ d as ColumnLayout,
21
+ d as default
22
+ };