@mittwald/flow-react-components 0.1.0-alpha.48 → 0.1.0-alpha.49

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/dist/{Button-IRdeGCc6.js → Button-DiHP-IYs.js} +25 -23
  2. package/dist/Button.js +1 -1
  3. package/dist/Checkbox.js +10 -8
  4. package/dist/Content.js +11 -9
  5. package/dist/CopyButton.js +14 -13
  6. package/dist/FieldDescription.js +12 -10
  7. package/dist/FieldError-BmzydlRW.js +22 -0
  8. package/dist/FieldError.js +1 -1
  9. package/dist/Header.js +8 -13
  10. package/dist/Heading.js +11 -13
  11. package/dist/{Icon-X0pOdlJY.js → Icon-hyIHBPMT.js} +18 -16
  12. package/dist/Icon.js +1 -1
  13. package/dist/{IconCheck-BD6sGh4B.js → IconCheck-B_oanaSr.js} +1 -1
  14. package/dist/{IconChevronUp-CyLNEJQy.js → IconChevronUp-DOOZfR76.js} +1 -1
  15. package/dist/{IconClose-mhahyKoS.js → IconClose-iB7vE9z6.js} +1 -1
  16. package/dist/{IconCopy-Bpp37OMK.js → IconCopy-CVV8P-Kn.js} +1 -1
  17. package/dist/{IconDanger-DH5QCYHj.js → IconDanger-Bq08fgKM.js} +1 -1
  18. package/dist/{IconPlus-CnjtlT2f.js → IconPlus-ChJLWEqL.js} +1 -1
  19. package/dist/{IconSucceeded-DQdtfEkv.js → IconSucceeded-DbgWPDVp.js} +1 -1
  20. package/dist/{IconUnchecked-BhOGDWAq.js → IconUnchecked-C7a0quEr.js} +1 -1
  21. package/dist/{IconWarning-D7qa4Hmz.js → IconWarning-BYFc8Vv9.js} +1 -1
  22. package/dist/Icons.js +10 -10
  23. package/dist/Image.js +10 -8
  24. package/dist/Initials.js +13 -11
  25. package/dist/InlineAlert.js +16 -18
  26. package/dist/Label-696-vpHQ.js +27 -0
  27. package/dist/Label.js +1 -1
  28. package/dist/LayoutCard.js +9 -15
  29. package/dist/Link.js +21 -19
  30. package/dist/List.js +7 -7
  31. package/dist/Navigation.js +29 -27
  32. package/dist/NumberField.js +14 -12
  33. package/dist/RadioGroup.js +14 -12
  34. package/dist/StatusBadge.js +16 -19
  35. package/dist/{StatusIcon-VLj9j54q.js → StatusIcon-BTQPL8cG.js} +10 -8
  36. package/dist/StatusIcon.js +1 -1
  37. package/dist/Switch.js +16 -20
  38. package/dist/Text-DaJ0Ajt9.js +29 -0
  39. package/dist/Text.js +1 -1
  40. package/dist/TextArea.js +1 -1
  41. package/dist/TextField.js +1 -1
  42. package/dist/{TextFieldBase-_wFIsQyH.js → TextFieldBase-D60i8AOY.js} +1 -1
  43. package/dist/flowComponent-DLzr2Cvi.js +92 -0
  44. package/dist/types/components/Button/Button.d.ts +4 -3
  45. package/dist/types/components/Content/Content.d.ts +4 -3
  46. package/dist/types/components/CopyButton/CopyButton.d.ts +4 -3
  47. package/dist/types/components/FieldDescription/FieldDescription.d.ts +4 -3
  48. package/dist/types/components/FieldError/FieldError.d.ts +4 -3
  49. package/dist/types/components/Header/Header.d.ts +4 -3
  50. package/dist/types/components/Heading/Heading.d.ts +5 -3
  51. package/dist/types/components/Icon/Icon.d.ts +4 -3
  52. package/dist/types/components/Image/Image.d.ts +4 -3
  53. package/dist/types/components/Initials/Initials.d.ts +4 -3
  54. package/dist/types/components/InlineAlert/InlineAlert.d.ts +4 -3
  55. package/dist/types/components/Label/Label.d.ts +4 -3
  56. package/dist/types/components/LayoutCard/LayoutCard.d.ts +4 -3
  57. package/dist/types/components/Link/Link.d.ts +4 -3
  58. package/dist/types/components/Navigation/components/NavigationItem/NavigationItem.d.ts +4 -3
  59. package/dist/types/components/StatusBadge/StatusBadge.d.ts +4 -3
  60. package/dist/types/components/Switch/Switch.d.ts +4 -3
  61. package/dist/types/components/Text/Text.d.ts +4 -3
  62. package/dist/types/lib/componentFactory/flowComponent.d.ts +8 -0
  63. package/dist/types/lib/types/props.d.ts +5 -2
  64. package/package.json +7 -7
  65. package/dist/FieldError-BFjashy7.js +0 -21
  66. package/dist/Label-DIeeRQZQ.js +0 -25
  67. package/dist/Text-BAkan-um.js +0 -27
  68. package/dist/useProps-4x7PxhiE.js +0 -72
@@ -3,25 +3,23 @@
3
3
  import e from "react";
4
4
  import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
5
5
  import { P as m } from "./PropsContextProvider-B6QiUIPM.js";
6
- import { u as f } from "./useProps-4x7PxhiE.js";
7
- import p from "clsx";
8
- import { S as u } from "./StatusIcon-VLj9j54q.js";
9
- const d = "flow--inline-alert", g = "flow--inline-alert--content", w = "flow--inline-alert--status-icon", C = "flow--inline-alert--heading", I = "flow--inline-alert--info", N = "flow--inline-alert--warning", h = "flow--inline-alert--danger", x = "flow--inline-alert--success", n = {
10
- inlineAlert: d,
11
- content: g,
12
- statusIcon: w,
6
+ import "@react-aria/utils";
7
+ import "./propsContext-Dx7WKmmM.js";
8
+ import "remeda";
9
+ import f from "clsx";
10
+ import { S as p } from "./StatusIcon-BTQPL8cG.js";
11
+ import { f as d } from "./flowComponent-DLzr2Cvi.js";
12
+ const u = "flow--inline-alert", w = "flow--inline-alert--content", g = "flow--inline-alert--status-icon", C = "flow--inline-alert--heading", I = "flow--inline-alert--info", N = "flow--inline-alert--warning", h = "flow--inline-alert--danger", x = "flow--inline-alert--success", n = {
13
+ inlineAlert: u,
14
+ content: w,
15
+ statusIcon: g,
13
16
  heading: C,
14
17
  info: I,
15
18
  warning: N,
16
19
  danger: h,
17
20
  success: x
18
- }, H = (s) => {
19
- const {
20
- children: o,
21
- className: l,
22
- status: t = "info",
23
- ...a
24
- } = f("InlineAlert", s), r = p(n.inlineAlert, n[t], l), i = {
21
+ }, j = d("InlineAlert", (o) => {
22
+ const { children: s, className: l, status: t = "info", ...r } = o, a = f(n.inlineAlert, n[t], l), i = {
25
23
  Heading: {
26
24
  className: n.heading,
27
25
  level: 3
@@ -30,9 +28,9 @@ const d = "flow--inline-alert", g = "flow--inline-alert--content", w = "flow--in
30
28
  className: n.content
31
29
  }
32
30
  };
33
- return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement("aside", { ...a, className: r }, /* @__PURE__ */ e.createElement(u, { className: n.statusIcon, status: t }), /* @__PURE__ */ e.createElement(m, { props: i }, o)));
34
- };
31
+ return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement("aside", { ...r, className: a }, /* @__PURE__ */ e.createElement(p, { className: n.statusIcon, status: t }), /* @__PURE__ */ e.createElement(m, { props: i }, s)));
32
+ });
35
33
  export {
36
- H as InlineAlert,
37
- H as default
34
+ j as InlineAlert,
35
+ j as default
38
36
  };
@@ -0,0 +1,27 @@
1
+ "use client"
2
+ /* */
3
+ import o from "react";
4
+ import * as i from "react-aria-components";
5
+ import p from "clsx";
6
+ import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
7
+ import "./propsContext-Dx7WKmmM.js";
8
+ import "@react-aria/utils";
9
+ import "remeda";
10
+ import { useLocalizedStringFormatter as b } from "react-aria";
11
+ import { f } from "./flowComponent-DLzr2Cvi.js";
12
+ const C = "flow--label", L = {
13
+ label: C
14
+ }, E = {
15
+ "de-DE": {
16
+ "label.optional": "(optional)"
17
+ },
18
+ "en-EN": {
19
+ "label.optional": "(optional)"
20
+ }
21
+ }, k = f("Label", (t) => {
22
+ const { children: l, className: a, optional: e, ...r } = t, n = b(E), s = p(L.label, a), m = " " + n.format("label.optional");
23
+ return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement(i.Label, { ...r, className: s }, l, e && m));
24
+ });
25
+ export {
26
+ k as L
27
+ };
package/dist/Label.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as e } from "./Label-DIeeRQZQ.js";
3
+ import { L as e } from "./Label-696-vpHQ.js";
4
4
  export {
5
5
  e as Label,
6
6
  e as default
@@ -1,21 +1,15 @@
1
1
  "use client"
2
2
  /* */
3
3
  import c from "react";
4
- import "./propsContext-Dx7WKmmM.js";
5
- import { u as m } from "./useProps-4x7PxhiE.js";
6
- import n from "clsx";
7
- const u = "flow--layout-card", d = {
8
- layoutCard: u
9
- }, f = (t) => {
10
- const {
11
- children: o,
12
- className: a,
13
- elementType: e = "div",
14
- ...r
15
- } = m("LayoutCard", t), s = n(d.layoutCard, a), l = e;
4
+ import m from "clsx";
5
+ import { f as n } from "./flowComponent-DLzr2Cvi.js";
6
+ const d = "flow--layout-card", u = {
7
+ layoutCard: d
8
+ }, p = n("LayoutCard", (t) => {
9
+ const { children: o, className: a, elementType: e = "div", ...r } = t, s = m(u.layoutCard, a), l = e;
16
10
  return /* @__PURE__ */ c.createElement(l, { className: s, ...r }, o);
17
- };
11
+ });
18
12
  export {
19
- f as LayoutCard,
20
- f as default
13
+ p as LayoutCard,
14
+ p as default
21
15
  };
package/dist/Link.js CHANGED
@@ -4,30 +4,32 @@ import i from "react";
4
4
  import * as c from "react-aria-components";
5
5
  import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
6
6
  import "./propsContext-Dx7WKmmM.js";
7
- import { u as k } from "./useProps-4x7PxhiE.js";
7
+ import "@react-aria/utils";
8
+ import "remeda";
8
9
  import f from "clsx";
9
- const d = "flow--link", u = "flow--link--inline", C = "flow--link--primary", w = "flow--link--danger", n = {
10
+ import { f as k } from "./flowComponent-DLzr2Cvi.js";
11
+ const d = "flow--link", C = "flow--link--inline", w = "flow--link--primary", u = "flow--link--danger", n = {
10
12
  link: d,
11
- inline: u,
12
- primary: C,
13
- danger: w
14
- }, E = (r) => {
13
+ inline: C,
14
+ primary: w,
15
+ danger: u
16
+ }, v = k("Link", (o) => {
15
17
  const {
16
- children: e,
17
- className: o,
18
- variant: l = "default",
19
- inline: t,
18
+ children: r,
19
+ className: t,
20
+ variant: e = "default",
21
+ inline: l,
20
22
  linkComponent: a = c.Link,
21
- ...s
22
- } = k("Link", r), m = f(
23
+ ...m
24
+ } = o, s = f(
23
25
  n.link,
24
- n[l],
25
- t && n.inline,
26
- o
26
+ n[e],
27
+ l && n.inline,
28
+ t
27
29
  );
28
- return /* @__PURE__ */ i.createElement(p, null, /* @__PURE__ */ i.createElement(a, { className: m, ...s }, e));
29
- };
30
+ return /* @__PURE__ */ i.createElement(p, null, /* @__PURE__ */ i.createElement(a, { className: s, ...m }, r));
31
+ });
30
32
  export {
31
- E as Link,
32
- E as default
33
+ v as Link,
34
+ v as default
33
35
  };
package/dist/List.js CHANGED
@@ -5,21 +5,21 @@ var B = (i, t, e) => t in i ? V(i, t, { enumerable: !0, configurable: !0, writab
5
5
  var n = (i, t, e) => (B(i, typeof t != "symbol" ? t + "" : t, e), e);
6
6
  import r, { createContext as U, useContext as $, Suspense as D, createElement as x, useMemo as O, useEffect as I, isValidElement as H } from "react";
7
7
  import { useMessageFormatter as j, useLocalizedStringFormatter as q } from "react-aria";
8
- import { T as J } from "./Text-BAkan-um.js";
9
- import { B as b } from "./Button-IRdeGCc6.js";
8
+ import { T as J } from "./Text-DaJ0Ajt9.js";
9
+ import { B as b } from "./Button-DiHP-IYs.js";
10
10
  import "@tabler/icons-react";
11
- import "./Icon-X0pOdlJY.js";
12
11
  import R from "clsx";
13
12
  import "html-react-parser";
14
13
  import "./propsContext-Dx7WKmmM.js";
15
14
  import "@react-aria/utils";
16
15
  import { times as K } from "remeda";
17
- import { a as G, I as Q } from "./IconChevronUp-CyLNEJQy.js";
18
- import { L as W } from "./Label-DIeeRQZQ.js";
19
- import { getProperty as X } from "dot-prop";
16
+ import "./flowComponent-DLzr2Cvi.js";
20
17
  import { useSignal as f } from "@preact/signals-react";
21
- import { useReactTable as Y, getCoreRowModel as Z, getSortedRowModel as _, getFilteredRowModel as tt, getPaginationRowModel as et, getFacetedUniqueValues as at } from "@tanstack/react-table";
22
18
  import { useSignals as S } from "@preact/signals-react/runtime";
19
+ import { a as G, I as Q } from "./IconChevronUp-DOOZfR76.js";
20
+ import { L as W } from "./Label-696-vpHQ.js";
21
+ import { getProperty as X } from "dot-prop";
22
+ import { useReactTable as Y, getCoreRowModel as Z, getSortedRowModel as _, getFilteredRowModel as tt, getPaginationRowModel as et, getFacetedUniqueValues as at } from "@tanstack/react-table";
23
23
  import it from "invariant";
24
24
  import { getAsyncResource as T } from "@mittwald/react-use-promise";
25
25
  import { deepFind as st, deepForEach as nt } from "react-children-utilities";
@@ -1,46 +1,48 @@
1
1
  "use client"
2
2
  /* */
3
3
  import t from "react";
4
- import c from "clsx";
4
+ import m from "clsx";
5
5
  import "./propsContext-Dx7WKmmM.js";
6
- import { P as l } from "./PropsContextProvider-B6QiUIPM.js";
7
- import { u as m } from "./useProps-4x7PxhiE.js";
8
- import * as v from "react-aria-components";
6
+ import { P as c } from "./PropsContextProvider-B6QiUIPM.js";
7
+ import "@react-aria/utils";
8
+ import "remeda";
9
+ import * as l from "react-aria-components";
10
+ import { f as v } from "./flowComponent-DLzr2Cvi.js";
9
11
  const g = "flow--navigation", p = {
10
12
  navigation: g
11
- }, d = (n) => {
12
- const { className: a, children: o, ...e } = n, i = c(p.navigation, a);
13
- return /* @__PURE__ */ t.createElement("nav", { className: i, role: "navigation", ...e }, /* @__PURE__ */ t.createElement("ul", null, o));
14
- }, f = "flow--navigation--navigation-item", u = "flow--navigation--navigation-item--icon", x = "flow--navigation--navigation-item--text", s = {
13
+ }, P = (n) => {
14
+ const { className: o, children: a, ...i } = n, e = m(p.navigation, o);
15
+ return /* @__PURE__ */ t.createElement("nav", { className: e, role: "navigation", ...i }, /* @__PURE__ */ t.createElement("ul", null, a));
16
+ }, f = "flow--navigation--navigation-item", x = "flow--navigation--navigation-item--icon", N = "flow--navigation--navigation-item--text", r = {
15
17
  navigationItem: f,
16
- icon: u,
17
- text: x
18
- }, k = (n) => {
18
+ icon: x,
19
+ text: N
20
+ }, h = v("NavigationItem", (n) => {
19
21
  const {
20
- isCurrent: a,
21
- children: o,
22
- linkComponent: e = v.Link,
23
- ...i
24
- } = m("NavigationItem", n), r = {
22
+ isCurrent: o,
23
+ children: a,
24
+ linkComponent: i = l.Link,
25
+ ...e
26
+ } = n, s = {
25
27
  Text: {
26
- className: s.text
28
+ className: r.text
27
29
  },
28
30
  Icon: {
29
- className: s.icon
31
+ className: r.icon
30
32
  }
31
33
  };
32
34
  return /* @__PURE__ */ t.createElement("li", null, /* @__PURE__ */ t.createElement(
33
- e,
35
+ i,
34
36
  {
35
- ...i,
36
- className: s.navigationItem,
37
- "aria-current": a ? "page" : !1
37
+ ...e,
38
+ className: r.navigationItem,
39
+ "aria-current": o ? "page" : !1
38
40
  },
39
- /* @__PURE__ */ t.createElement(l, { props: r }, o)
41
+ /* @__PURE__ */ t.createElement(c, { props: s }, a)
40
42
  ));
41
- };
43
+ });
42
44
  export {
43
- d as Navigation,
44
- k as NavigationItem,
45
- d as default
45
+ P as Navigation,
46
+ h as NavigationItem,
47
+ P as default
46
48
  };
@@ -3,19 +3,21 @@
3
3
  import e from "react";
4
4
  import * as r from "react-aria-components";
5
5
  import { s as o } from "./FormField.module-DHK6nIcD.js";
6
- import u from "clsx";
7
- import { C as p } from "./ClearPropsContext-CD1-9TZA.js";
6
+ import p from "clsx";
7
+ import { C as u } from "./ClearPropsContext-CD1-9TZA.js";
8
8
  import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
9
9
  import "@react-aria/utils";
10
10
  import "./propsContext-Dx7WKmmM.js";
11
11
  import "remeda";
12
- import { F as f } from "./FieldError-BFjashy7.js";
13
- import { B as s } from "./Button-IRdeGCc6.js";
12
+ import { F as f } from "./FieldError-BmzydlRW.js";
13
+ import { B as s } from "./Button-DiHP-IYs.js";
14
14
  import "@tabler/icons-react";
15
- import "./Icon-X0pOdlJY.js";
16
15
  import "html-react-parser";
17
- import { I as E, a as N } from "./IconChevronUp-CyLNEJQy.js";
18
- import { I, a as b } from "./IconPlus-CnjtlT2f.js";
16
+ import "./flowComponent-DLzr2Cvi.js";
17
+ import "@preact/signals-react";
18
+ import "@preact/signals-react/runtime";
19
+ import { I as E, a as N } from "./IconChevronUp-DOOZfR76.js";
20
+ import { I, a as b } from "./IconPlus-ChJLWEqL.js";
19
21
  const P = "flow--number-field--group", B = "flow--number-field--input", C = "flow--number-field--decrement-button", F = "flow--number-field--increment-button", w = "flow--number-field--coarse-pointer-icon", h = "flow--number-field--touch-icon", t = {
20
22
  group: P,
21
23
  input: B,
@@ -23,8 +25,8 @@ const P = "flow--number-field--group", B = "flow--number-field--input", C = "flo
23
25
  incrementButton: F,
24
26
  coarsePointerIcon: w,
25
27
  touchIcon: h
26
- }, k = (n) => {
27
- const { children: c, className: a, ...m } = n, l = u(o.formField, a), i = {
28
+ }, J = (n) => {
29
+ const { children: c, className: m, ...a } = n, l = p(o.formField, m), i = {
28
30
  Label: {
29
31
  className: o.label,
30
32
  optional: !n.isRequired
@@ -36,7 +38,7 @@ const P = "flow--number-field--group", B = "flow--number-field--input", C = "flo
36
38
  className: o.customFieldError
37
39
  }
38
40
  };
39
- return /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement(r.NumberField, { ...m, className: l }, /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
41
+ return /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(r.NumberField, { ...a, className: l }, /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
40
42
  s,
41
43
  {
42
44
  slot: "decrement",
@@ -61,6 +63,6 @@ const P = "flow--number-field--group", B = "flow--number-field--input", C = "flo
61
63
  )), /* @__PURE__ */ e.createElement(d, { props: i }, c), /* @__PURE__ */ e.createElement(f, { className: o.fieldError })));
62
64
  };
63
65
  export {
64
- k as NumberField,
65
- k as default
66
+ J as NumberField,
67
+ J as default
66
68
  };
@@ -7,19 +7,21 @@ import "./propsContext-Dx7WKmmM.js";
7
7
  import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
- import { F as p } from "./FieldError-BFjashy7.js";
10
+ import { F as p } from "./FieldError-BmzydlRW.js";
11
11
  import "@tabler/icons-react";
12
- import "./Icon-X0pOdlJY.js";
13
12
  import "html-react-parser";
14
- import { I as f } from "./IconCheck-BD6sGh4B.js";
13
+ import "./flowComponent-DLzr2Cvi.js";
14
+ import "@preact/signals-react";
15
+ import "@preact/signals-react/runtime";
16
+ import { I as f } from "./IconCheck-B_oanaSr.js";
15
17
  const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-group--field-error", g = "flow--radio-group--custom-field-error", w = "flow--radio-group--field-description", r = {
16
18
  radioGroup: u,
17
19
  label: E,
18
20
  fieldError: N,
19
21
  customFieldError: g,
20
22
  fieldDescription: w
21
- }, T = (t) => {
22
- const { children: a, className: s, ...c } = t, i = m(r.radioGroup, s), l = {
23
+ }, q = (t) => {
24
+ const { children: a, className: s, ...i } = t, c = m(r.radioGroup, s), l = {
23
25
  Label: {
24
26
  className: r.label
25
27
  },
@@ -30,15 +32,15 @@ const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-
30
32
  className: r.customFieldError
31
33
  }
32
34
  };
33
- return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(p, { className: r.fieldError }));
35
+ return /* @__PURE__ */ o.createElement(n.RadioGroup, { ...i, className: c }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(p, { className: r.fieldError }));
34
36
  }, b = "flow--radio-group--radio", k = "flow--radio-group--radio--content", h = "flow--radio-group--radio--icon", C = "flow--radio-group--radio--checkmark", F = "flow--radio-group--radio--label", e = {
35
37
  radio: b,
36
38
  content: k,
37
39
  icon: h,
38
40
  checkmark: C,
39
41
  label: F
40
- }, j = (t) => {
41
- const { children: a, className: s, ...c } = t, i = m(e.radio, s), l = {
42
+ }, z = (t) => {
43
+ const { children: a, className: s, ...i } = t, c = m(e.radio, s), l = {
42
44
  Icon: {
43
45
  className: e.icon
44
46
  },
@@ -49,10 +51,10 @@ const u = "flow--radio-group", E = "flow--radio-group--label", N = "flow--radio-
49
51
  className: e.content
50
52
  }
51
53
  };
52
- return /* @__PURE__ */ o.createElement(n.Radio, { ...c, className: i }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(f, { className: e.checkmark }));
54
+ return /* @__PURE__ */ o.createElement(n.Radio, { ...i, className: c }, /* @__PURE__ */ o.createElement(d, { props: l }, a), /* @__PURE__ */ o.createElement(f, { className: e.checkmark }));
53
55
  };
54
56
  export {
55
- j as Radio,
56
- T as RadioGroup,
57
- T as default
57
+ z as Radio,
58
+ q as RadioGroup,
59
+ q as default
58
60
  };
@@ -1,29 +1,26 @@
1
1
  "use client"
2
2
  /* */
3
3
  import t from "react";
4
- import l from "clsx";
5
- import { S as m } from "./StatusIcon-VLj9j54q.js";
6
- import { T as u } from "./Text-BAkan-um.js";
7
- import { C as d } from "./ClearPropsContext-CD1-9TZA.js";
4
+ import m from "clsx";
5
+ import { S as l } from "./StatusIcon-BTQPL8cG.js";
6
+ import { T as u } from "./Text-DaJ0Ajt9.js";
7
+ import { C as f } from "./ClearPropsContext-CD1-9TZA.js";
8
8
  import "./propsContext-Dx7WKmmM.js";
9
- import { u as f } from "./useProps-4x7PxhiE.js";
10
- const g = "flow--status-badge", i = "flow--status-badge--text", p = "flow--status-badge--info", w = "flow--status-badge--success", x = "flow--status-badge--warning", b = "flow--status-badge--danger", s = {
11
- statusBadge: g,
12
- text: i,
9
+ import "@react-aria/utils";
10
+ import "remeda";
11
+ import { f as i } from "./flowComponent-DLzr2Cvi.js";
12
+ const d = "flow--status-badge", g = "flow--status-badge--text", p = "flow--status-badge--info", w = "flow--status-badge--success", x = "flow--status-badge--warning", b = "flow--status-badge--danger", s = {
13
+ statusBadge: d,
14
+ text: g,
13
15
  info: p,
14
16
  success: w,
15
17
  warning: x,
16
18
  danger: b
17
- }, T = (a) => {
18
- const {
19
- children: o,
20
- className: n,
21
- status: e = "info",
22
- ...r
23
- } = f("StatusBadge", a), c = l(s.statusBadge, s[e], n);
24
- return /* @__PURE__ */ t.createElement(d, null, /* @__PURE__ */ t.createElement("div", { className: c, ...r }, /* @__PURE__ */ t.createElement(m, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(u, { className: s.text }, o)));
25
- };
19
+ }, y = i("StatusBadge", (a) => {
20
+ const { children: o, className: n, status: e = "info", ...r } = a, c = m(s.statusBadge, s[e], n);
21
+ return /* @__PURE__ */ t.createElement(f, null, /* @__PURE__ */ t.createElement("div", { className: c, ...r }, /* @__PURE__ */ t.createElement(l, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(u, { className: s.text }, o)));
22
+ });
26
23
  export {
27
- T as StatusBadge,
28
- T as default
24
+ y as StatusBadge,
25
+ y as default
29
26
  };
@@ -2,17 +2,19 @@
2
2
  /* */
3
3
  import o from "react";
4
4
  import "@tabler/icons-react";
5
- import "./Icon-X0pOdlJY.js";
6
5
  import "clsx";
7
6
  import "html-react-parser";
8
7
  import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
9
8
  import "./propsContext-Dx7WKmmM.js";
10
9
  import "@react-aria/utils";
11
10
  import "remeda";
12
- import { I as e } from "./IconDanger-DH5QCYHj.js";
13
- import { I as i, a as m, b as u } from "./IconWarning-D7qa4Hmz.js";
11
+ import "./flowComponent-DLzr2Cvi.js";
12
+ import "@preact/signals-react";
13
+ import "@preact/signals-react/runtime";
14
+ import { I as e } from "./IconDanger-Bq08fgKM.js";
15
+ import { I as i, a as m, b as u } from "./IconWarning-BYFc8Vv9.js";
14
16
  import { useLocalizedStringFormatter as I } from "react-aria";
15
- const f = {
17
+ const p = {
16
18
  "de-DE": {
17
19
  "statusIcon.danger": "Fehler",
18
20
  "statusIcon.info": "Information",
@@ -25,15 +27,15 @@ const f = {
25
27
  "statusIcon.success": "Successful",
26
28
  "statusIcon.warning": "Warning"
27
29
  }
28
- }, g = {
30
+ }, f = {
29
31
  danger: e,
30
32
  info: i,
31
33
  success: m,
32
34
  warning: u
33
- }, L = (n) => {
34
- const { status: t = "info", ...r } = n, s = I(f).format(`statusIcon.${t}`), a = g[t];
35
+ }, N = (n) => {
36
+ const { status: t = "info", ...r } = n, s = I(p).format(`statusIcon.${t}`), a = f[t];
35
37
  return /* @__PURE__ */ o.createElement(c, null, /* @__PURE__ */ o.createElement(a, { "aria-label": s, ...r }));
36
38
  };
37
39
  export {
38
- L as S
40
+ N as S
39
41
  };
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { S as a } from "./StatusIcon-VLj9j54q.js";
3
+ import { S as a } from "./StatusIcon-BTQPL8cG.js";
4
4
  export {
5
5
  a as StatusIcon,
6
6
  a as default
package/dist/Switch.js CHANGED
@@ -4,34 +4,30 @@ import e from "react";
4
4
  import * as i from "react-aria-components";
5
5
  import n from "clsx";
6
6
  import "@tabler/icons-react";
7
- import "./Icon-X0pOdlJY.js";
8
7
  import "html-react-parser";
9
- import { C as h } from "./ClearPropsContext-CD1-9TZA.js";
8
+ import { C as f } from "./ClearPropsContext-CD1-9TZA.js";
10
9
  import "./propsContext-Dx7WKmmM.js";
11
- import { u as p } from "./useProps-4x7PxhiE.js";
12
- import { I as w } from "./IconCheck-BD6sGh4B.js";
13
- import { I as f } from "./IconClose-mhahyKoS.js";
14
- import { L as d } from "./Label-DIeeRQZQ.js";
15
- const b = "flow--switch--track", E = "flow--switch--handle", u = "flow--switch--label", t = {
10
+ import "@react-aria/utils";
11
+ import "remeda";
12
+ import { f as h } from "./flowComponent-DLzr2Cvi.js";
13
+ import { I as p } from "./IconCheck-B_oanaSr.js";
14
+ import { I as w } from "./IconClose-iB7vE9z6.js";
15
+ import { L as d } from "./Label-696-vpHQ.js";
16
+ const b = "flow--switch--track", E = "flow--switch--handle", C = "flow--switch--label", t = {
16
17
  switch: "flow--switch",
17
18
  "label-leading": "flow--switch--label-leading",
18
19
  track: b,
19
20
  handle: E,
20
- label: u
21
- }, y = (l) => {
22
- const {
23
- children: a,
24
- className: s,
25
- labelPosition: r = "trailing",
26
- ...o
27
- } = p("Switch", l), c = n(
21
+ label: C
22
+ }, A = h("Switch", (l) => {
23
+ const { children: a, className: o, labelPosition: r = "trailing", ...s } = l, c = n(
28
24
  t.switch,
29
25
  t[`label-${r}`],
30
- s
26
+ o
31
27
  );
32
- return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(i.Switch, { ...o, className: c }, ({ isSelected: m }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, m ? /* @__PURE__ */ e.createElement(w, { size: "s" }) : /* @__PURE__ */ e.createElement(f, { size: "s" }))), /* @__PURE__ */ e.createElement(d, { className: t.label }, a))));
33
- };
28
+ return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(i.Switch, { ...s, className: c }, ({ isSelected: m }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, m ? /* @__PURE__ */ e.createElement(p, { size: "s" }) : /* @__PURE__ */ e.createElement(w, { size: "s" }))), /* @__PURE__ */ e.createElement(d, { className: t.label }, a))));
29
+ });
34
30
  export {
35
- y as Switch,
36
- y as default
31
+ A as Switch,
32
+ A as default
37
33
  };
@@ -0,0 +1,29 @@
1
+ "use client"
2
+ /* */
3
+ import t from "react";
4
+ import * as l from "react-aria-components";
5
+ import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
6
+ import { P as f } from "./PropsContextProvider-B6QiUIPM.js";
7
+ import "@react-aria/utils";
8
+ import "./propsContext-Dx7WKmmM.js";
9
+ import "remeda";
10
+ import x from "invariant";
11
+ import { f as T } from "./flowComponent-DLzr2Cvi.js";
12
+ const v = T("Text", (r) => {
13
+ const { children: m, className: s, elementType: e = "span", ...i } = r, o = { ...i, className: s }, p = {
14
+ Link: {
15
+ inline: !0
16
+ }
17
+ }, n = /* @__PURE__ */ t.createElement(f, { props: p }, m);
18
+ if (!r.slot) {
19
+ const a = e;
20
+ return /* @__PURE__ */ t.createElement(a, { ...o }, n);
21
+ }
22
+ return x(
23
+ typeof e == "string",
24
+ "'elementType' in Text component must be of type string"
25
+ ), /* @__PURE__ */ t.createElement(c, null, /* @__PURE__ */ t.createElement(l.Text, { ...o, elementType: e }, n));
26
+ });
27
+ export {
28
+ v as T
29
+ };
package/dist/Text.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { T as a } from "./Text-BAkan-um.js";
3
+ import { T as a } from "./Text-DaJ0Ajt9.js";
4
4
  export {
5
5
  a as Text,
6
6
  a as default
package/dist/TextArea.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import * as l from "react-aria-components";
5
- import { T as n } from "./TextFieldBase-_wFIsQyH.js";
5
+ import { T as n } from "./TextFieldBase-D60i8AOY.js";
6
6
  import { C as c } from "./ClearPropsContext-CD1-9TZA.js";
7
7
  import "./propsContext-Dx7WKmmM.js";
8
8
  import "@react-aria/utils";
package/dist/TextField.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import t from "react";
4
4
  import * as s from "react-aria-components";
5
- import { T as a } from "./TextFieldBase-_wFIsQyH.js";
5
+ import { T as a } from "./TextFieldBase-D60i8AOY.js";
6
6
  import { C as m } from "./ClearPropsContext-CD1-9TZA.js";
7
7
  import "./propsContext-Dx7WKmmM.js";
8
8
  import "@react-aria/utils";
@@ -9,7 +9,7 @@ import { P as d } from "./PropsContextProvider-B6QiUIPM.js";
9
9
  import "@react-aria/utils";
10
10
  import "./propsContext-Dx7WKmmM.js";
11
11
  import "remeda";
12
- import { F as f } from "./FieldError-BFjashy7.js";
12
+ import { F as f } from "./FieldError-BmzydlRW.js";
13
13
  const D = (o) => {
14
14
  const { children: t, className: s, input: a, ...i } = o, l = p(e.formField, s), m = {
15
15
  Label: {