@mittwald/flow-react-components 0.1.0-alpha.8

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.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/dist/Avatar.d.ts +14 -0
  4. package/dist/Avatar.js +25 -0
  5. package/dist/Badge.d.ts +18 -0
  6. package/dist/Badge.js +39 -0
  7. package/dist/Button-e6_nSMC7.js +41 -0
  8. package/dist/Button.d.ts +15 -0
  9. package/dist/Button.js +14 -0
  10. package/dist/Checkbox.d.ts +12 -0
  11. package/dist/Checkbox.js +76 -0
  12. package/dist/Content.d.ts +13 -0
  13. package/dist/Content.js +20 -0
  14. package/dist/CopyToClipboardButton.d.ts +20 -0
  15. package/dist/CopyToClipboardButton.js +140 -0
  16. package/dist/FieldDescription.d.ts +12 -0
  17. package/dist/FieldDescription.js +19 -0
  18. package/dist/FieldError-O1TRrMMj.js +17 -0
  19. package/dist/FieldError.d.ts +12 -0
  20. package/dist/FieldError.js +13 -0
  21. package/dist/Heading.d.ts +13 -0
  22. package/dist/Heading.js +26 -0
  23. package/dist/Icon-ZFuEzyOR.js +55 -0
  24. package/dist/Icon.d.ts +18 -0
  25. package/dist/Icon.js +14 -0
  26. package/dist/Image.d.ts +11 -0
  27. package/dist/Image.js +11 -0
  28. package/dist/Initials.d.ts +14 -0
  29. package/dist/Initials.js +30 -0
  30. package/dist/Label.d.ts +13 -0
  31. package/dist/Label.js +26 -0
  32. package/dist/LabeledValue.d.ts +12 -0
  33. package/dist/LabeledValue.js +32 -0
  34. package/dist/Link.d.ts +14 -0
  35. package/dist/Link.js +25 -0
  36. package/dist/Navigation.d.ts +22 -0
  37. package/dist/Navigation.js +53 -0
  38. package/dist/Note.d.ts +18 -0
  39. package/dist/Note.js +47 -0
  40. package/dist/PropsContextProvider-1ZntTV8J.js +26 -0
  41. package/dist/RadioGroup.d.ts +17 -0
  42. package/dist/RadioGroup.js +91 -0
  43. package/dist/StatusIcon-R1Q9m-y9.js +118 -0
  44. package/dist/StatusIcon.d.ts +17 -0
  45. package/dist/StatusIcon.js +16 -0
  46. package/dist/Switch.d.ts +16 -0
  47. package/dist/Switch.js +30 -0
  48. package/dist/Text-ZKs-d7Xd.js +19 -0
  49. package/dist/Text.d.ts +12 -0
  50. package/dist/Text.js +12 -0
  51. package/dist/TextArea.d.ts +17 -0
  52. package/dist/TextArea.js +28 -0
  53. package/dist/TextField.d.ts +17 -0
  54. package/dist/TextField.js +21 -0
  55. package/dist/TextFieldBase-aIybTXPT.js +33 -0
  56. package/dist/Tooltip-tMnxO0-t.js +16 -0
  57. package/dist/Tooltip.d.ts +17 -0
  58. package/dist/Tooltip.js +12 -0
  59. package/dist/TooltipTrigger-r60QhGZc.js +11 -0
  60. package/dist/TooltipTrigger.d.ts +12 -0
  61. package/dist/TooltipTrigger.js +9 -0
  62. package/dist/clsx-F0OAuoLf.js +24 -0
  63. package/dist/propsContext-1HT-3SRC.js +7 -0
  64. package/dist/styles.css +1 -0
  65. package/dist/stylesInit.d.ts +4 -0
  66. package/dist/stylesInit.js +6 -0
  67. package/dist/useProps-5ZdbXCrH.js +27 -0
  68. package/package.json +131 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Mittwald CM Service GmbH & Co. KG and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @mittwald/flow-react-components
2
+
3
+ This package is part of
4
+ [Flow – mittwald design system](https://mittwald.github.io/flow/). See the
5
+ homepage for more details.
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ declare const Avatar: FC<AvatarProps>;
5
+ export { Avatar }
6
+ export default Avatar;
7
+
8
+ export declare interface AvatarProps extends PropsWithChildren {
9
+ className?: string;
10
+ /** @default "s" */
11
+ size?: "s" | "m" | "l";
12
+ }
13
+
14
+ export { }
package/dist/Avatar.js ADDED
@@ -0,0 +1,25 @@
1
+ "use client"
2
+ /* */
3
+ import s from "react";
4
+ import { c as n } from "./clsx-F0OAuoLf.js";
5
+ import "./propsContext-1HT-3SRC.js";
6
+ import { P as c } from "./PropsContextProvider-1ZntTV8J.js";
7
+ import "@react-aria/utils";
8
+ const m = "flow--avatar", p = "flow--avatar--initials", a = {
9
+ avatar: m,
10
+ initials: p,
11
+ "size-s": "flow--avatar--size-s",
12
+ "size-m": "flow--avatar--size-m",
13
+ "size-l": "flow--avatar--size-l"
14
+ }, x = (t) => {
15
+ const { children: i, className: e, size: o = "s" } = t, r = n(a.avatar, a[`size-${o}`], e), l = {
16
+ Initials: {
17
+ className: a.initials
18
+ }
19
+ };
20
+ return /* @__PURE__ */ s.createElement("div", { className: r }, /* @__PURE__ */ s.createElement(c, { props: l }, i));
21
+ };
22
+ export {
23
+ x as Avatar,
24
+ x as default
25
+ };
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ declare const Badge: FC<BadgeProps>;
5
+ export { Badge }
6
+ export default Badge;
7
+
8
+ export declare interface BadgeProps extends PropsWithChildren, StatusVariantProps {
9
+ className?: string;
10
+ }
11
+
12
+ declare interface StatusVariantProps<TOmit extends Variant = never> {
13
+ variant?: Exclude<Variant, TOmit>;
14
+ }
15
+
16
+ declare type Variant = "info" | "success" | "warning" | "danger";
17
+
18
+ export { }
package/dist/Badge.js ADDED
@@ -0,0 +1,39 @@
1
+ "use client"
2
+ /* */
3
+ import o from "react";
4
+ import { c as i } from "./clsx-F0OAuoLf.js";
5
+ import { S as l } from "./StatusIcon-R1Q9m-y9.js";
6
+ import { T as p } from "./Text-ZKs-d7Xd.js";
7
+ import "./propsContext-1HT-3SRC.js";
8
+ import { P as d } from "./PropsContextProvider-1ZntTV8J.js";
9
+ import "@react-aria/utils";
10
+ import "./Icon-ZFuEzyOR.js";
11
+ import "@fortawesome/react-fontawesome";
12
+ import "html-react-parser";
13
+ import "./useProps-5ZdbXCrH.js";
14
+ import "react-aria";
15
+ import "react-aria-components";
16
+ const f = "flow--badge", g = "flow--badge--content", u = "flow--badge--custom-icon", b = "flow--badge--status-icon", w = "flow--badge--info", I = "flow--badge--success", x = "flow--badge--warning", N = "flow--badge--danger", t = {
17
+ badge: f,
18
+ content: g,
19
+ customIcon: u,
20
+ statusIcon: b,
21
+ info: w,
22
+ success: I,
23
+ warning: x,
24
+ danger: N
25
+ }, z = (n) => {
26
+ const { children: s, className: c, variant: e = "info", ...a } = n, r = i(t.badge, t[e], c), m = {
27
+ Icon: {
28
+ className: t.customIcon
29
+ },
30
+ Text: {
31
+ className: t.content
32
+ }
33
+ };
34
+ return /* @__PURE__ */ o.createElement("div", { className: r, ...a }, /* @__PURE__ */ o.createElement(l, { className: t.statusIcon, variant: e }), /* @__PURE__ */ o.createElement(d, { props: m }, typeof s == "string" ? /* @__PURE__ */ o.createElement(p, null, s) : s));
35
+ };
36
+ export {
37
+ z as Badge,
38
+ z as default
39
+ };
@@ -0,0 +1,41 @@
1
+ "use client"
2
+ /* */
3
+ import o from "react";
4
+ import * as i from "react-aria-components";
5
+ import { c as p } from "./clsx-F0OAuoLf.js";
6
+ import "./propsContext-1HT-3SRC.js";
7
+ import { P as u } from "./PropsContextProvider-1ZntTV8J.js";
8
+ import { u as f } from "./useProps-5ZdbXCrH.js";
9
+ const d = "flow--button", b = "flow--button--icon", w = "flow--button--small", y = "flow--button--primary", x = "flow--button--accent", P = "flow--button--danger", B = "flow--button--secondary", N = "flow--button--plain", t = {
10
+ button: d,
11
+ icon: b,
12
+ small: w,
13
+ primary: y,
14
+ accent: x,
15
+ danger: P,
16
+ secondary: B,
17
+ plain: N
18
+ }, A = (n) => {
19
+ const {
20
+ variant: r = "primary",
21
+ children: s,
22
+ className: a,
23
+ small: c,
24
+ ...e
25
+ } = f("Button", n), l = p(
26
+ t.button,
27
+ c && t.small,
28
+ t[r],
29
+ a
30
+ ), m = {
31
+ Icon: {
32
+ className: t.icon,
33
+ "aria-hidden": !0,
34
+ fixedWidth: !0
35
+ }
36
+ };
37
+ return /* @__PURE__ */ o.createElement(i.Button, { className: l, ...e }, /* @__PURE__ */ o.createElement(u, { props: m }, s));
38
+ };
39
+ export {
40
+ A as B
41
+ };
@@ -0,0 +1,15 @@
1
+ import * as Aria from 'react-aria-components';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+
5
+ declare const Button: FC<ButtonProps>;
6
+ export { Button }
7
+ export default Button;
8
+
9
+ export declare interface ButtonProps extends PropsWithChildren<Aria.ButtonProps> {
10
+ /** @default "primary" */
11
+ variant?: "primary" | "accent" | "secondary" | "danger" | "plain";
12
+ small?: boolean;
13
+ }
14
+
15
+ export { }
package/dist/Button.js ADDED
@@ -0,0 +1,14 @@
1
+ "use client"
2
+ /* */
3
+ import { B as o } from "./Button-e6_nSMC7.js";
4
+ import "react";
5
+ import "react-aria-components";
6
+ import "./clsx-F0OAuoLf.js";
7
+ import "./propsContext-1HT-3SRC.js";
8
+ import "./PropsContextProvider-1ZntTV8J.js";
9
+ import "@react-aria/utils";
10
+ import "./useProps-5ZdbXCrH.js";
11
+ export {
12
+ o as Button,
13
+ o as default
14
+ };
@@ -0,0 +1,12 @@
1
+ import * as Aria from 'react-aria-components';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+
5
+ declare const Checkbox: FC<CheckboxProps>;
6
+ export { Checkbox }
7
+ export default Checkbox;
8
+
9
+ export declare interface CheckboxProps extends PropsWithChildren<Omit<Aria.CheckboxProps, "children">> {
10
+ }
11
+
12
+ export { }
@@ -0,0 +1,76 @@
1
+ "use client"
2
+ /* */
3
+ import f from "react";
4
+ import * as d from "react-aria-components";
5
+ import { c as v } from "./clsx-F0OAuoLf.js";
6
+ import { I as s } from "./Icon-ZFuEzyOR.js";
7
+ import "@fortawesome/react-fontawesome";
8
+ import "html-react-parser";
9
+ import "./propsContext-1HT-3SRC.js";
10
+ import "@react-aria/utils";
11
+ import "./useProps-5ZdbXCrH.js";
12
+ const k = "flow--checkbox", g = "flow--checkbox--checkmark", u = {
13
+ checkbox: k,
14
+ checkmark: g
15
+ };
16
+ var o = {}, m = {};
17
+ (function(a) {
18
+ Object.defineProperty(a, "__esModule", { value: !0 });
19
+ var e = "far", i = "square-check", n = 448, r = 512, c = [9745, 9989, 61510, "check-square"], h = "f14a", t = "M64 80c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z";
20
+ a.definition = {
21
+ prefix: e,
22
+ iconName: i,
23
+ icon: [
24
+ n,
25
+ r,
26
+ c,
27
+ h,
28
+ t
29
+ ]
30
+ }, a.faSquareCheck = a.definition, a.prefix = e, a.iconName = i, a.width = n, a.height = r, a.ligatures = c, a.unicode = h, a.svgPathData = t, a.aliases = c;
31
+ })(m);
32
+ (function(a) {
33
+ Object.defineProperty(a, "__esModule", { value: !0 });
34
+ var e = m;
35
+ a.definition = {
36
+ prefix: e.prefix,
37
+ iconName: e.iconName,
38
+ icon: [
39
+ e.width,
40
+ e.height,
41
+ e.aliases,
42
+ e.unicode,
43
+ e.svgPathData
44
+ ]
45
+ }, a.faCheckSquare = a.definition, a.prefix = e.prefix, a.iconName = e.iconName, a.width = e.width, a.height = e.height, a.ligatures = e.aliases, a.unicode = e.unicode, a.svgPathData = e.svgPathData, a.aliases = e.aliases;
46
+ })(o);
47
+ var l = {};
48
+ (function(a) {
49
+ Object.defineProperty(a, "__esModule", { value: !0 });
50
+ var e = "far", i = "square", n = 448, r = 512, c = [9632, 9723, 9724, 61590], h = "f0c8", t = "M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z";
51
+ a.definition = {
52
+ prefix: e,
53
+ iconName: i,
54
+ icon: [
55
+ n,
56
+ r,
57
+ c,
58
+ h,
59
+ t
60
+ ]
61
+ }, a.faSquare = a.definition, a.prefix = e, a.iconName = i, a.width = n, a.height = r, a.ligatures = c, a.unicode = h, a.svgPathData = t, a.aliases = c;
62
+ })(l);
63
+ const S = (a) => {
64
+ const { children: e, className: i, ...n } = a, r = v(u.checkbox, i);
65
+ return /* @__PURE__ */ f.createElement(d.Checkbox, { ...n, className: r }, ({ isSelected: c }) => /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
66
+ s,
67
+ {
68
+ className: u.checkmark,
69
+ faIcon: c ? o.faCheckSquare : l.faSquare
70
+ }
71
+ ), e));
72
+ };
73
+ export {
74
+ S as Checkbox,
75
+ S as default
76
+ };
@@ -0,0 +1,13 @@
1
+ import { ComponentProps } from 'react';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+
5
+ declare const Content: FC<ContentProps>;
6
+ export { Content }
7
+ export default Content;
8
+
9
+ export declare interface ContentProps extends PropsWithChildren<ComponentProps<"div">> {
10
+ elementType?: string;
11
+ }
12
+
13
+ export { }
@@ -0,0 +1,20 @@
1
+ "use client"
2
+ /* */
3
+ import r, { createElement as l } from "react";
4
+ import { p as s } from "./propsContext-1HT-3SRC.js";
5
+ import "@react-aria/utils";
6
+ import { u as c } from "./useProps-5ZdbXCrH.js";
7
+ const m = (e) => {
8
+ const { children: t } = e;
9
+ return /* @__PURE__ */ r.createElement(s.Provider, { value: {} }, t);
10
+ }, d = (e) => {
11
+ const { children: t, elementType: n = "div", ...o } = c("Content", e);
12
+ return l(n, {
13
+ ...o,
14
+ children: /* @__PURE__ */ r.createElement(m, null, t)
15
+ });
16
+ };
17
+ export {
18
+ d as Content,
19
+ d as default
20
+ };
@@ -0,0 +1,20 @@
1
+ import * as Aria from 'react-aria-components';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+ import { ReactNode } from 'react';
5
+
6
+ declare interface ButtonProps extends PropsWithChildren<Aria.ButtonProps> {
7
+ /** @default "primary" */
8
+ variant?: "primary" | "accent" | "secondary" | "danger" | "plain";
9
+ small?: boolean;
10
+ }
11
+
12
+ declare const CopyToClipboardButton: FC<CopyToClipboardButtonProps>;
13
+ export { CopyToClipboardButton }
14
+ export default CopyToClipboardButton;
15
+
16
+ export declare interface CopyToClipboardButtonProps extends Omit<ButtonProps, "onPress" | "aria-label"> {
17
+ text: ReactNode;
18
+ }
19
+
20
+ export { }
@@ -0,0 +1,140 @@
1
+ "use client"
2
+ /* */
3
+ import f, { isValidElement as l, Children as p, cloneElement as b } from "react";
4
+ import { B as S } from "./Button-e6_nSMC7.js";
5
+ import { I as R } from "./Icon-ZFuEzyOR.js";
6
+ import { useLocalizedStringFormatter as B } from "react-aria";
7
+ import { T as P } from "./Tooltip-tMnxO0-t.js";
8
+ import { T as $ } from "./TooltipTrigger-r60QhGZc.js";
9
+ import "./propsContext-1HT-3SRC.js";
10
+ import "@react-aria/utils";
11
+ import { u as H } from "./useProps-5ZdbXCrH.js";
12
+ import "react-aria-components";
13
+ import "./clsx-F0OAuoLf.js";
14
+ import "./PropsContextProvider-1ZntTV8J.js";
15
+ import "@fortawesome/react-fontawesome";
16
+ import "html-react-parser";
17
+ function k(e) {
18
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
+ }
20
+ var M = function() {
21
+ var e = document.getSelection();
22
+ if (!e.rangeCount)
23
+ return function() {
24
+ };
25
+ for (var t = document.activeElement, r = [], o = 0; o < e.rangeCount; o++)
26
+ r.push(e.getRangeAt(o));
27
+ switch (t.tagName.toUpperCase()) {
28
+ case "INPUT":
29
+ case "TEXTAREA":
30
+ t.blur();
31
+ break;
32
+ default:
33
+ t = null;
34
+ break;
35
+ }
36
+ return e.removeAllRanges(), function() {
37
+ e.type === "Caret" && e.removeAllRanges(), e.rangeCount || r.forEach(function(n) {
38
+ e.addRange(n);
39
+ }), t && t.focus();
40
+ };
41
+ }, I = M, v = {
42
+ "text/plain": "Text",
43
+ "text/html": "Url",
44
+ default: "Text"
45
+ }, x = "Copy to clipboard: #{key}, Enter";
46
+ function F(e) {
47
+ var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
48
+ return e.replace(/#{\s*key\s*}/g, t);
49
+ }
50
+ function U(e, t) {
51
+ var r, o, n, c, i, a, m = !1;
52
+ t || (t = {}), r = t.debug || !1;
53
+ try {
54
+ n = I(), c = document.createRange(), i = document.getSelection(), a = document.createElement("span"), a.textContent = e, a.ariaHidden = "true", a.style.all = "unset", a.style.position = "fixed", a.style.top = 0, a.style.clip = "rect(0, 0, 0, 0)", a.style.whiteSpace = "pre", a.style.webkitUserSelect = "text", a.style.MozUserSelect = "text", a.style.msUserSelect = "text", a.style.userSelect = "text", a.addEventListener("copy", function(s) {
55
+ if (s.stopPropagation(), t.format)
56
+ if (s.preventDefault(), typeof s.clipboardData > "u") {
57
+ r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
58
+ var d = v[t.format] || v.default;
59
+ window.clipboardData.setData(d, e);
60
+ } else
61
+ s.clipboardData.clearData(), s.clipboardData.setData(t.format, e);
62
+ t.onCopy && (s.preventDefault(), t.onCopy(s.clipboardData));
63
+ }), document.body.appendChild(a), c.selectNodeContents(a), i.addRange(c);
64
+ var V = document.execCommand("copy");
65
+ if (!V)
66
+ throw new Error("copy command was unsuccessful");
67
+ m = !0;
68
+ } catch (s) {
69
+ r && console.error("unable to copy using execCommand: ", s), r && console.warn("trying IE specific stuff");
70
+ try {
71
+ window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), m = !0;
72
+ } catch (d) {
73
+ r && console.error("unable to copy using clipboardData: ", d), r && console.error("falling back to prompt"), o = F("message" in t ? t.message : x), window.prompt(o, e);
74
+ }
75
+ } finally {
76
+ i && (typeof i.removeRange == "function" ? i.removeRange(c) : i.removeAllRanges()), a && document.body.removeChild(a), n();
77
+ }
78
+ return m;
79
+ }
80
+ var z = U;
81
+ const L = /* @__PURE__ */ k(z);
82
+ var E = {};
83
+ (function(e) {
84
+ Object.defineProperty(e, "__esModule", { value: !0 });
85
+ var t = "far", r = "copy", o = 448, n = 512, c = [], i = "f0c5", a = "M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z";
86
+ e.definition = {
87
+ prefix: t,
88
+ iconName: r,
89
+ icon: [
90
+ o,
91
+ n,
92
+ c,
93
+ i,
94
+ a
95
+ ]
96
+ }, e.faCopy = e.definition, e.prefix = t, e.iconName = r, e.width = o, e.height = n, e.ligatures = c, e.unicode = i, e.svgPathData = a, e.aliases = c;
97
+ })(E);
98
+ const O = {
99
+ "de-DE": {
100
+ "copyButton.copy": "Kopieren"
101
+ },
102
+ "en-EN": {
103
+ "copyButton.copy": "Copy"
104
+ }
105
+ }, y = (e) => l(e) && !!e.props.children, _ = (e) => l(e) && y(e) && p.toArray(e.props.children).reduce((t, r) => t || l(r), !1), u = _, w = (e, t) => p.toArray(e).filter(t).map((r) => l(r) && u(r) ? b(r, {
106
+ ...r.props,
107
+ children: w(r.props.children, t)
108
+ }) : r), D = w, T = (e, t) => {
109
+ let r;
110
+ return p.toArray(e).find((o, n, c) => t(o, n, c) ? (r = o, !0) : l(o) && u(o) ? (r = T(o.props.children, t), typeof r < "u") : !1), r;
111
+ }, j = T, A = (e, t) => {
112
+ p.forEach(e, (r, o) => {
113
+ l(r) && u(r) && A(r.props.children, t), t(r, o);
114
+ });
115
+ }, K = A, h = (e, t) => p.toArray(e).map((r, o, n) => l(r) && u(r) ? t(b(r, {
116
+ ...r.props,
117
+ children: h(r.props.children, t)
118
+ })) : t(r, o, n)), J = h, X = (e, t) => p.toArray(e).filter(t), q = X, G = (e) => l(e) ? typeof e.type == "string" ? e.type : e.type.name : null, N = G, Q = (e, t = [], r = "rest") => {
119
+ const o = t.map((n) => typeof n == "string" ? n : n.name);
120
+ return p.toArray(e).reduce((n, c) => {
121
+ const i = N(c), a = i !== null && o.includes(i) ? i : r;
122
+ return typeof n[a] > "u" && (n[a] = []), n[a] = [...n[a], c], n;
123
+ }, {});
124
+ }, W = Q, C = (e) => typeof e > "u" || e === null || typeof e == "boolean" || JSON.stringify(e) === "{}" ? "" : e.toString(), g = (e) => !(e instanceof Array) && !l(e) ? C(e) : p.toArray(e).reduce((t, r) => {
125
+ let o = "";
126
+ return y(r) ? o = g(r.props.children) : l(r) ? o = "" : o = C(r), t.concat(o);
127
+ }, ""), Y = (e) => D(e, (t) => l(t)), Z = Y;
128
+ ({
129
+ ...p
130
+ });
131
+ const de = (e) => {
132
+ const { text: t, ...r } = H("CopyToClipboard", e), n = B(O).format("copyButton.copy"), c = () => {
133
+ L(g(t));
134
+ };
135
+ return /* @__PURE__ */ f.createElement($, null, /* @__PURE__ */ f.createElement(S, { onPress: c, "aria-label": n, ...r }, /* @__PURE__ */ f.createElement(R, { faIcon: E.faCopy })), /* @__PURE__ */ f.createElement(P, null, n));
136
+ };
137
+ export {
138
+ de as CopyToClipboardButton,
139
+ de as default
140
+ };
@@ -0,0 +1,12 @@
1
+ import * as Aria from 'react-aria-components';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+
5
+ declare const FieldDescription: FC<FieldDescriptionProps>;
6
+ export { FieldDescription }
7
+ export default FieldDescription;
8
+
9
+ export declare interface FieldDescriptionProps extends PropsWithChildren<Omit<Aria.TextProps, "children" | "slot">> {
10
+ }
11
+
12
+ export { }
@@ -0,0 +1,19 @@
1
+ "use client"
2
+ /* */
3
+ import r from "react";
4
+ import { c } from "./clsx-F0OAuoLf.js";
5
+ import "./propsContext-1HT-3SRC.js";
6
+ import "@react-aria/utils";
7
+ import { u as l } from "./useProps-5ZdbXCrH.js";
8
+ import { T as p } from "./Text-ZKs-d7Xd.js";
9
+ import "react-aria-components";
10
+ const m = "flow--field-description", n = {
11
+ fieldDescription: m
12
+ }, F = (t) => {
13
+ const { children: e, className: o, ...s } = l("FieldDescription", t), i = c(n.fieldDescription, o);
14
+ return /* @__PURE__ */ r.createElement(p, { slot: "description", ...s, className: i }, e);
15
+ };
16
+ export {
17
+ F as FieldDescription,
18
+ F as default
19
+ };
@@ -0,0 +1,17 @@
1
+ "use client"
2
+ /* */
3
+ import i from "react";
4
+ import * as l from "react-aria-components";
5
+ import { c as m } from "./clsx-F0OAuoLf.js";
6
+ import "./propsContext-1HT-3SRC.js";
7
+ import "@react-aria/utils";
8
+ import { u as a } from "./useProps-5ZdbXCrH.js";
9
+ const c = "flow--field-error", f = {
10
+ fieldError: c
11
+ }, u = (r) => {
12
+ const { children: o, className: e, ...s } = a("FieldError", r), t = m(f.fieldError, e);
13
+ return /* @__PURE__ */ i.createElement(l.FieldError, { ...s, className: t }, o);
14
+ };
15
+ export {
16
+ u as F
17
+ };
@@ -0,0 +1,12 @@
1
+ import * as Aria from 'react-aria-components';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+
5
+ declare const FieldError: FC<FieldErrorProps>;
6
+ export { FieldError }
7
+ export default FieldError;
8
+
9
+ export declare interface FieldErrorProps extends PropsWithChildren<Omit<Aria.FieldErrorProps, "children">> {
10
+ }
11
+
12
+ export { }
@@ -0,0 +1,13 @@
1
+ "use client"
2
+ /* */
3
+ import { F as o } from "./FieldError-O1TRrMMj.js";
4
+ import "react";
5
+ import "react-aria-components";
6
+ import "./clsx-F0OAuoLf.js";
7
+ import "./propsContext-1HT-3SRC.js";
8
+ import "@react-aria/utils";
9
+ import "./useProps-5ZdbXCrH.js";
10
+ export {
11
+ o as FieldError,
12
+ o as default
13
+ };
@@ -0,0 +1,13 @@
1
+ import { ComponentProps } from 'react';
2
+ import { FC } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
+
5
+ declare const Heading: FC<HeadingProps>;
6
+ export { Heading }
7
+ export default Heading;
8
+
9
+ export declare interface HeadingProps extends PropsWithChildren<ComponentProps<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">> {
10
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
11
+ }
12
+
13
+ export { }
@@ -0,0 +1,26 @@
1
+ "use client"
2
+ /* */
3
+ import { createElement as n } from "react";
4
+ import { c as i } from "./clsx-F0OAuoLf.js";
5
+ import "./propsContext-1HT-3SRC.js";
6
+ import "@react-aria/utils";
7
+ import { u as m } from "./useProps-5ZdbXCrH.js";
8
+ const c = "flow--heading", l = {
9
+ heading: c
10
+ }, u = (e) => {
11
+ const {
12
+ children: s,
13
+ className: o,
14
+ level: t = 3,
15
+ ...a
16
+ } = m("Heading", e), r = i(l.heading, o);
17
+ return n(`h${t}`, {
18
+ ...a,
19
+ className: r,
20
+ children: s
21
+ });
22
+ };
23
+ export {
24
+ u as Heading,
25
+ u as default
26
+ };
@@ -0,0 +1,55 @@
1
+ "use client"
2
+ /* */
3
+ import t, { Children as d, useMemo as g } from "react";
4
+ import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
5
+ import { c as u } from "./clsx-F0OAuoLf.js";
6
+ import x from "html-react-parser";
7
+ import "./propsContext-1HT-3SRC.js";
8
+ import "@react-aria/utils";
9
+ import { u as E } from "./useProps-5ZdbXCrH.js";
10
+ const w = "flow--icon", b = "flow--icon--fixed-width", m = {
11
+ icon: w,
12
+ fixedWidth: b
13
+ }, I = (n) => {
14
+ const o = d.toArray(x(n)).find(
15
+ (e) => typeof e == "object" && "type" in e && e.type === "svg"
16
+ );
17
+ if (!o)
18
+ throw new Error(`Invalid SVG string (got ${String(n)})`);
19
+ return o;
20
+ }, F = (n) => {
21
+ const {
22
+ faIcon: o,
23
+ className: e,
24
+ "aria-label": c,
25
+ children: r,
26
+ fixedWidth: f,
27
+ ...p
28
+ } = E("Icon", n), s = {
29
+ ...p,
30
+ focusable: "false",
31
+ role: "img",
32
+ "aria-hidden": !c,
33
+ "aria-label": c
34
+ }, a = {
35
+ className: u(m.icon, e, {
36
+ [m.fixedWidth]: f
37
+ })
38
+ };
39
+ if (o)
40
+ return /* @__PURE__ */ t.createElement("span", { ...a }, /* @__PURE__ */ t.createElement(h, { icon: o, ...s }));
41
+ const l = typeof r == "string", i = g(
42
+ () => l ? I(r) : r,
43
+ [l, r]
44
+ );
45
+ if (!t.isValidElement(i))
46
+ throw new Error(
47
+ `Expected children of Icon component to be a valid React element (got ${String(
48
+ i
49
+ )})`
50
+ );
51
+ return /* @__PURE__ */ t.createElement("span", { ...a }, t.cloneElement(i, s));
52
+ };
53
+ export {
54
+ F as I
55
+ };