@mittwald/flow-react-components 0.1.0-alpha.51 → 0.1.0-alpha.52

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,27 +1,28 @@
1
1
  "use client"
2
2
  /* */
3
- import e from "react";
4
- import l from "clsx";
5
- import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
6
- import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
3
+ import o from "react";
4
+ import c from "clsx";
5
+ import { C as l } from "./ClearPropsContext-CD1-9TZA.js";
6
+ import { P as p } from "./PropsContextProvider-B6QiUIPM.js";
7
7
  import "@react-aria/utils";
8
8
  import "./propsContext-Dx7WKmmM.js";
9
9
  import "remeda";
10
- import { f } from "./flowComponent-92d7kP4i.js";
11
- const h = "flow--heading", g = "flow--heading--icon", o = {
12
- heading: h,
13
- icon: g
14
- }, H = f("Heading", (t) => {
15
- const { children: n, className: r, level: s = 2, ...a } = t, i = l(o.heading, r), c = `h${s}`, m = {
10
+ import { f as d } from "./flowComponent-92d7kP4i.js";
11
+ import * as f from "react-aria-components";
12
+ const g = "flow--heading", h = "flow--heading--icon", e = {
13
+ heading: g,
14
+ icon: h
15
+ }, v = d("Heading", (t) => {
16
+ const { children: r, className: n, level: a = 2, ...s } = t, i = c(e.heading, n), m = {
16
17
  Icon: {
17
18
  "aria-hidden": !0,
18
19
  size: "s",
19
- className: o.icon
20
+ className: e.icon
20
21
  }
21
22
  };
22
- return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(c, { className: i, ...a }, /* @__PURE__ */ e.createElement(d, { props: m }, n)));
23
+ return /* @__PURE__ */ o.createElement(l, null, /* @__PURE__ */ o.createElement(f.Heading, { level: a, className: i, ...s }, /* @__PURE__ */ o.createElement(p, { props: m }, r)));
23
24
  });
24
25
  export {
25
- H as Heading,
26
- H as default
26
+ v as Heading,
27
+ v as default
27
28
  };
@@ -1,9 +1,7 @@
1
- import React, { ComponentPropsWithoutRef, PropsWithChildren } from "react";
1
+ import React from "react";
2
2
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
3
- type Level = 1 | 2 | 3 | 4 | 5 | 6;
4
- export interface HeadingProps extends PropsWithChildren, ComponentPropsWithoutRef<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">, FlowComponentProps {
5
- level?: Level;
6
- tunnelId?: string;
3
+ import * as Aria from "react-aria-components";
4
+ export interface HeadingProps extends Aria.HeadingProps, FlowComponentProps {
7
5
  }
8
6
  export declare const Heading: React.ComponentClass<HeadingProps & import("../../lib/types/props").PropsWithTunnel, any> | React.FunctionComponent<HeadingProps & import("../../lib/types/props").PropsWithTunnel>;
9
7
  export default Heading;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.51",
3
+ "version": "0.1.0-alpha.52",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -262,5 +262,5 @@
262
262
  "optional": true
263
263
  }
264
264
  },
265
- "gitHead": "4477a993ec55e0fd6a384f3cf17d1e7e9c251447"
265
+ "gitHead": "7339d3ce93b0fca97688050f6f7959e801a5534e"
266
266
  }