@mittwald/flow-react-components 0.1.0-alpha.82 → 0.1.0-alpha.83

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/Heading.js CHANGED
@@ -1,28 +1,45 @@
1
1
  "use client"
2
2
  /* */
3
- import e from "react";
4
- import l from "clsx";
5
- import { C as p } from "./ClearPropsContext-CeCMjUK9.js";
6
- import { P as d } from "./PropsContextProvider-DZvwqHLP.js";
3
+ import o from "react";
4
+ import m from "clsx";
5
+ import { C as d } from "./ClearPropsContext-CeCMjUK9.js";
6
+ import { P as f } from "./PropsContextProvider-DZvwqHLP.js";
7
7
  import "@react-aria/utils";
8
8
  import "./propsContext-CauylOgH.js";
9
9
  import "remeda";
10
- import { f } from "./flowComponent-dvQga3NG.js";
10
+ import { f as p } from "./flowComponent-dvQga3NG.js";
11
11
  import * as g from "react-aria-components";
12
- const h = "flow--heading", C = "flow--heading--icon", o = {
13
- heading: h,
14
- icon: C
15
- }, y = f("Heading", (t) => {
16
- const { children: r, className: n, level: a = 2, ref: s, ...i } = t, m = l(o.heading, n), c = {
12
+ const w = "flow--heading", C = "flow--heading--icon", u = "flow--heading--h1", x = "flow--heading--h2", N = "flow--heading--h3", P = "flow--heading--h4", v = "flow--heading--h5", E = "flow--heading--h6", e = {
13
+ heading: w,
14
+ icon: C,
15
+ h1: u,
16
+ h2: x,
17
+ h3: N,
18
+ h4: P,
19
+ h5: v,
20
+ h6: E
21
+ }, b = p("Heading", (a) => {
22
+ const {
23
+ children: s,
24
+ className: r,
25
+ level: n = 2,
26
+ levelVisual: t = n,
27
+ ref: i,
28
+ ...h
29
+ } = a, l = m(
30
+ e.heading,
31
+ t && e[`h${t}`],
32
+ r
33
+ ), c = {
17
34
  Icon: {
18
35
  "aria-hidden": !0,
19
36
  size: "s",
20
- className: o.icon
37
+ className: e.icon
21
38
  }
22
39
  };
23
- return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(g.Heading, { level: a, className: m, ...i, ref: s }, /* @__PURE__ */ e.createElement(d, { props: c }, r)));
40
+ return /* @__PURE__ */ o.createElement(d, null, /* @__PURE__ */ o.createElement(g.Heading, { level: n, className: l, ...h, ref: i }, /* @__PURE__ */ o.createElement(f, { props: c }, s)));
24
41
  });
25
42
  export {
26
- y as Heading,
27
- y as default
43
+ b as Heading,
44
+ b as default
28
45
  };