@mittwald/flow-react-components 0.1.0-alpha.40 → 0.1.0-alpha.41

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/Header.js ADDED
@@ -0,0 +1,18 @@
1
+ "use client"
2
+ /* */
3
+ import a from "react";
4
+ import "./PropsContextProvider-C0o9mDtR.js";
5
+ import "@react-aria/utils";
6
+ import { u as n } from "./useProps-DWCkDfxd.js";
7
+ const i = (e) => {
8
+ const {
9
+ children: r,
10
+ elementType: t = "header",
11
+ ...o
12
+ } = n("Header", e), m = t;
13
+ return /* @__PURE__ */ a.createElement(m, { ...o }, r);
14
+ };
15
+ export {
16
+ i as Header,
17
+ i as default
18
+ };
package/dist/Section.js CHANGED
@@ -1,17 +1,28 @@
1
1
  "use client"
2
2
  /* */
3
- import n from "react";
4
- import r from "clsx";
5
- const l = "flow--section", a = {
6
- section: l
7
- }, f = (e) => {
8
- const { children: t, className: s, ...o } = e;
9
- if (!t)
3
+ import t from "react";
4
+ import i from "clsx";
5
+ import { P as l } from "./PropsContextProvider-C0o9mDtR.js";
6
+ import "@react-aria/utils";
7
+ import "remeda";
8
+ const m = "flow--section", p = "flow--section--header", o = {
9
+ section: m,
10
+ header: p
11
+ }, N = (s) => {
12
+ const { children: e, className: r, ...n } = s;
13
+ if (!e)
10
14
  return null;
11
- const c = r(a.section, s);
12
- return /* @__PURE__ */ n.createElement("section", { ...o, className: c }, t);
15
+ const c = i(o.section, r), a = {
16
+ Heading: {
17
+ level: 2
18
+ },
19
+ Header: {
20
+ className: o.header
21
+ }
22
+ };
23
+ return /* @__PURE__ */ t.createElement("section", { ...n, className: c }, /* @__PURE__ */ t.createElement(l, { props: a }, e));
13
24
  };
14
25
  export {
15
- f as Section,
16
- f as default
26
+ N as Section,
27
+ N as default
17
28
  };