@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
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
6
|
-
import { P as
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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:
|
|
20
|
+
className: e.icon
|
|
20
21
|
}
|
|
21
22
|
};
|
|
22
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
26
|
-
|
|
26
|
+
v as Heading,
|
|
27
|
+
v as default
|
|
27
28
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
|
|
3
|
-
|
|
4
|
-
export interface HeadingProps extends
|
|
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.
|
|
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": "
|
|
265
|
+
"gitHead": "7339d3ce93b0fca97688050f6f7959e801a5534e"
|
|
266
266
|
}
|