@mittwald/flow-react-components 0.1.0-alpha.65 → 0.1.0-alpha.67

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 (102) hide show
  1. package/dist/{Action-DZzRGFBL.js → Action-DEpgmJgz.js} +10 -8
  2. package/dist/Action.js +1 -1
  3. package/dist/Avatar.js +2 -2
  4. package/dist/Breadcrumb.js +3 -3
  5. package/dist/{Button-CdGfSPx-.js → Button-RNHxIFd2.js} +6 -6
  6. package/dist/Button.js +1 -1
  7. package/dist/ButtonGroup.js +2 -2
  8. package/dist/{Checkbox-Bc-Yp2Li.js → Checkbox-DKySO10B.js} +7 -6
  9. package/dist/Checkbox.js +1 -1
  10. package/dist/{CheckboxButton-D5G0rxZz.js → CheckboxButton-CWdX3bM9.js} +3 -3
  11. package/dist/CheckboxButton.js +1 -1
  12. package/dist/CheckboxGroup.js +4 -4
  13. package/dist/Content.js +8 -7
  14. package/dist/ContextMenu-CyJQ17tm.js +36 -0
  15. package/dist/ContextMenu.js +7 -7
  16. package/dist/CopyButton.js +10 -9
  17. package/dist/FieldDescription.js +11 -10
  18. package/dist/FieldError-TYnVmG-o.js +23 -0
  19. package/dist/FieldError.js +1 -1
  20. package/dist/Header.js +1 -1
  21. package/dist/HeaderNavigation.js +1 -1
  22. package/dist/Heading.js +2 -2
  23. package/dist/{Icon-DVRBNZZe.js → Icon-CPAehMux.js} +13 -12
  24. package/dist/Icon.js +1 -1
  25. package/dist/{IconCheck-D9Y94psR.js → IconCheck-C778cVIW.js} +1 -1
  26. package/dist/{IconCheckboxEmpty-BneZ_izo.js → IconCheckboxEmpty-CuRg5vZt.js} +1 -1
  27. package/dist/{IconCheckboxIndeterminate-DZM-0gVy.js → IconCheckboxIndeterminate-Czwxs_TE.js} +1 -1
  28. package/dist/{IconChevronDown-D8WRADYa.js → IconChevronDown-BL8_H9Kf.js} +1 -1
  29. package/dist/{IconChevronRight-D2iaxujY.js → IconChevronRight-BdGTP9WG.js} +1 -1
  30. package/dist/{IconClose-zpsdo5WH.js → IconClose-Cq9t3LQV.js} +1 -1
  31. package/dist/{IconContextMenu-D58YJ4YL.js → IconContextMenu-BDvtrC86.js} +1 -1
  32. package/dist/{IconCopy-Dg12Fbk9.js → IconCopy-C9jfVrgu.js} +1 -1
  33. package/dist/{IconDanger-BKH4QbJ1.js → IconDanger-B7qTdARI.js} +1 -1
  34. package/dist/{IconPlus-WchYGpT1.js → IconPlus-vUgeG2A9.js} +1 -1
  35. package/dist/{IconRadioOn-DNpq9Xk7.js → IconRadioOn-CTDczjLJ.js} +1 -1
  36. package/dist/{IconSucceeded-d5GrQkmO.js → IconSucceeded-C092cisG.js} +1 -1
  37. package/dist/{IconWarning-pPmXp5KC.js → IconWarning-B5oeYHHs.js} +1 -1
  38. package/dist/Icons.js +73 -72
  39. package/dist/IllustratedMessage.js +42 -0
  40. package/dist/Image.js +5 -4
  41. package/dist/Initials.js +7 -6
  42. package/dist/InlineAlert.js +3 -3
  43. package/dist/InlineCode-BV2i5uN0.js +18 -0
  44. package/dist/InlineCode.js +1 -1
  45. package/dist/{Label-BFDBIwAZ.js → Label-B4BxkNHo.js} +4 -3
  46. package/dist/Label.js +1 -1
  47. package/dist/LabeledValue.js +1 -1
  48. package/dist/LayoutCard.js +19 -10
  49. package/dist/{Link-kCrtSVrZ.js → Link-I6WUPEGi.js} +2 -2
  50. package/dist/Link.js +1 -1
  51. package/dist/List.js +21 -20
  52. package/dist/MenuItem-CrRLNYPb.js +38 -0
  53. package/dist/MenuItem.js +7 -0
  54. package/dist/Modal.js +1 -1
  55. package/dist/Navigation.js +1 -1
  56. package/dist/NumberField.js +55 -41
  57. package/dist/ProgressBar.js +1 -1
  58. package/dist/PropsContextProvider-DkNLd3Yj.js +63 -0
  59. package/dist/RadioGroup.js +45 -45
  60. package/dist/Section.js +1 -1
  61. package/dist/Select.js +5 -5
  62. package/dist/StatusBadge.js +9 -8
  63. package/dist/{StatusIcon-gxczp9bZ.js → StatusIcon-BrpddXMN.js} +8 -7
  64. package/dist/StatusIcon.js +1 -1
  65. package/dist/Switch.js +10 -9
  66. package/dist/Tabs.js +23 -22
  67. package/dist/{Text-D7C_T7CE.js → Text-BW9cNWaj.js} +2 -2
  68. package/dist/Text.js +1 -1
  69. package/dist/TextArea.js +8 -7
  70. package/dist/TextField.js +9 -8
  71. package/dist/{TextFieldBase-DuP4Ls0l.js → TextFieldBase-BcCtRAw5.js} +2 -2
  72. package/dist/flowComponent-mJ64-1gs.js +22 -0
  73. package/dist/react-hook-form.js +2 -2
  74. package/dist/styles.css +1 -1
  75. package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -2
  76. package/dist/types/components/ContextMenu/index.d.ts +1 -1
  77. package/dist/types/components/Icon/components/icons/IconCode.d.ts +5 -0
  78. package/dist/types/components/Icon/components/icons/index.d.ts +1 -0
  79. package/dist/types/components/IllustratedMessage/IllustratedMessage.d.ts +7 -0
  80. package/dist/types/components/IllustratedMessage/index.d.ts +4 -0
  81. package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +8 -0
  82. package/dist/types/components/IllustratedMessage/stories/EdgeCases.stories.d.ts +8 -0
  83. package/dist/types/components/MenuItem/MenuItem.d.ts +7 -0
  84. package/dist/types/components/{ContextMenu/components/ContextMenuItem/ContextMenuItemContent.d.ts → MenuItem/MenuItemContent.d.ts} +1 -1
  85. package/dist/types/components/MenuItem/index.d.ts +4 -0
  86. package/dist/types/components/Tabs/Tabs.d.ts +4 -3
  87. package/dist/types/components/Tabs/components/Tab/context.d.ts +1 -1
  88. package/dist/types/components/Tabs/components/TabTitle/TabTitle.d.ts +1 -1
  89. package/dist/types/components/propTypes/index.d.ts +3 -1
  90. package/dist/types/lib/propsContext/PropsContextProvider.d.ts +1 -0
  91. package/dist/types/lib/propsContext/mergePropsContext.d.ts +1 -1
  92. package/dist/types/lib/propsContext/propsContext.d.ts +2 -1
  93. package/dist/types/lib/react/getPropsMerger.d.ts +1 -0
  94. package/dist/{useProps-DoKnPAup.js → useProps-BqLmWTTi.js} +3 -2
  95. package/package.json +11 -3
  96. package/dist/ContextMenuItem-k4nwztKS.js +0 -67
  97. package/dist/FieldError-CBxCl2nS.js +0 -22
  98. package/dist/InlineCode-CI8164C6.js +0 -17
  99. package/dist/PropsContextProvider-BcOGMJkn.js +0 -25
  100. package/dist/flowComponent-CEo3pjEA.js +0 -19
  101. package/dist/types/components/ContextMenu/components/ContextMenuItem/ContextMenuItem.d.ts +0 -7
  102. package/dist/types/components/ContextMenu/components/ContextMenuItem/index.d.ts +0 -4
@@ -3,28 +3,28 @@
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 p from "clsx";
7
- import { C as f } from "./ClearPropsContext-CeCMjUK9.js";
8
- import { P as d } from "./PropsContextProvider-BcOGMJkn.js";
6
+ import E from "clsx";
7
+ import { C as N } from "./ClearPropsContext-CeCMjUK9.js";
8
+ import { P as b } from "./PropsContextProvider-DkNLd3Yj.js";
9
9
  import "@react-aria/utils";
10
10
  import "./propsContext-CauylOgH.js";
11
11
  import "remeda";
12
- import { F as E } from "./FieldError-CBxCl2nS.js";
13
- import { B as s } from "./Button-CdGfSPx-.js";
12
+ import { F as I } from "./FieldError-TYnVmG-o.js";
13
+ import { B as a } from "./Button-RNHxIFd2.js";
14
14
  import "@tabler/icons-react";
15
- import "./Icon-DVRBNZZe.js";
16
- import { I as N } from "./IconChevronDown-D8WRADYa.js";
17
- import { I as b, a as I, b as C } from "./IconPlus-WchYGpT1.js";
18
- import { f as F } from "./flowComponent-CEo3pjEA.js";
19
- const P = "flow--number-field--group", w = "flow--number-field--input", B = "flow--number-field--decrement-button", h = "flow--number-field--increment-button", y = "flow--number-field--coarse-pointer-icon", v = "flow--number-field--touch-icon", t = {
20
- group: P,
21
- input: w,
22
- decrementButton: B,
23
- incrementButton: h,
24
- coarsePointerIcon: y,
25
- touchIcon: v
26
- }, J = F("NumberField", (n) => {
27
- const { children: m, className: c, ref: a, ...l } = n, i = p(o.formField, c), u = {
15
+ import "./Icon-CPAehMux.js";
16
+ import { I as C } from "./IconChevronDown-BL8_H9Kf.js";
17
+ import { I as h, a as F, b as P } from "./IconPlus-vUgeG2A9.js";
18
+ import { f as w } from "./flowComponent-mJ64-1gs.js";
19
+ const B = "flow--number-field--group", g = "flow--number-field--input", y = "flow--number-field--decrement-button", v = "flow--number-field--increment-button", x = "flow--number-field--coarse-pointer-icon", D = "flow--number-field--touch-icon", t = {
20
+ group: B,
21
+ input: g,
22
+ decrementButton: y,
23
+ incrementButton: v,
24
+ coarsePointerIcon: x,
25
+ touchIcon: D
26
+ }, K = w("NumberField", (n) => {
27
+ const { children: m, className: c, ref: l, onChange: s, ...i } = n, u = E(o.formField, c), p = {
28
28
  Label: {
29
29
  className: o.label,
30
30
  optional: !n.isRequired
@@ -35,32 +35,46 @@ const P = "flow--number-field--group", w = "flow--number-field--input", B = "flo
35
35
  FieldError: {
36
36
  className: o.customFieldError
37
37
  }
38
+ }, f = (d) => {
39
+ setTimeout(() => {
40
+ s && s(d);
41
+ }, 150);
38
42
  };
39
- return /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(r.NumberField, { ...l, className: i }, /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
40
- s,
43
+ return /* @__PURE__ */ e.createElement(N, null, /* @__PURE__ */ e.createElement(
44
+ r.NumberField,
41
45
  {
42
- slot: "decrement",
43
- className: t.decrementButton,
44
- size: "s",
45
- style: "plain",
46
- variant: "secondary"
46
+ ...i,
47
+ className: u,
48
+ onChange: f
47
49
  },
48
- /* @__PURE__ */ e.createElement(N, null),
49
- /* @__PURE__ */ e.createElement(b, { className: t.coarsePointerIcon })
50
- ), /* @__PURE__ */ e.createElement(r.Input, { className: t.input, ref: a }), /* @__PURE__ */ e.createElement(
51
- s,
52
- {
53
- slot: "increment",
54
- className: t.incrementButton,
55
- size: "s",
56
- style: "plain",
57
- variant: "secondary"
58
- },
59
- /* @__PURE__ */ e.createElement(I, null),
60
- /* @__PURE__ */ e.createElement(C, { className: t.coarsePointerIcon })
61
- )), /* @__PURE__ */ e.createElement(d, { props: u }, m), /* @__PURE__ */ e.createElement(E, { className: o.fieldError })));
50
+ /* @__PURE__ */ e.createElement(r.Group, { className: t.group }, /* @__PURE__ */ e.createElement(
51
+ a,
52
+ {
53
+ slot: "decrement",
54
+ className: t.decrementButton,
55
+ size: "s",
56
+ style: "plain",
57
+ variant: "secondary"
58
+ },
59
+ /* @__PURE__ */ e.createElement(C, null),
60
+ /* @__PURE__ */ e.createElement(h, { className: t.coarsePointerIcon })
61
+ ), /* @__PURE__ */ e.createElement(r.Input, { className: t.input, ref: l }), /* @__PURE__ */ e.createElement(
62
+ a,
63
+ {
64
+ slot: "increment",
65
+ className: t.incrementButton,
66
+ size: "s",
67
+ style: "plain",
68
+ variant: "secondary"
69
+ },
70
+ /* @__PURE__ */ e.createElement(F, null),
71
+ /* @__PURE__ */ e.createElement(P, { className: t.coarsePointerIcon })
72
+ )),
73
+ /* @__PURE__ */ e.createElement(b, { props: p }, m),
74
+ /* @__PURE__ */ e.createElement(I, { className: o.fieldError })
75
+ ));
62
76
  });
63
77
  export {
64
- J as NumberField,
65
- J as default
78
+ K as NumberField,
79
+ K as default
66
80
  };
@@ -5,7 +5,7 @@ import s from "react";
5
5
  import w from "clsx";
6
6
  import { useNumberFormatter as d } from "react-aria";
7
7
  import "./propsContext-CauylOgH.js";
8
- import { P as x } from "./PropsContextProvider-BcOGMJkn.js";
8
+ import { P as x } from "./PropsContextProvider-DkNLd3Yj.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
11
  const N = "flow--progress-bar", v = "flow--progress-bar--label", B = "flow--progress-bar--value", E = "flow--progress-bar--bar", P = "flow--progress-bar--fill", z = "flow--progress-bar--info", V = "flow--progress-bar--success", h = "flow--progress-bar--danger", y = "flow--progress-bar--warning", r = {
@@ -0,0 +1,63 @@
1
+ "use client"
2
+ /* */
3
+ import u, { useMemo as m, isValidElement as f, cloneElement as C } from "react";
4
+ import { u as v, p as E } from "./propsContext-CauylOgH.js";
5
+ import { mergeProps as h } from "@react-aria/utils";
6
+ import { isObjectType as c } from "remeda";
7
+ import { setProperty as x } from "dot-prop";
8
+ const N = (t = {}) => (...r) => {
9
+ const { mergeClassNames: n = !0, mergeEventHandler: s = !0 } = t, e = h(...r);
10
+ if (c(e)) {
11
+ if (!n)
12
+ for (const o of r)
13
+ c(o) && "className" in e && "className" in o && (e.className = o.className);
14
+ if (!s) {
15
+ for (const o of r)
16
+ if (c(o))
17
+ for (const [p, a] of Object.entries(o))
18
+ /^on[A-Z]/.test(p) && x(e, p, a);
19
+ }
20
+ }
21
+ return e;
22
+ }, b = N({
23
+ mergeClassNames: !1,
24
+ mergeEventHandler: !1
25
+ }), j = (t = {}, r = {}) => {
26
+ const n = Object.keys({
27
+ ...t,
28
+ ...r
29
+ });
30
+ return Object.fromEntries(
31
+ n.map((s) => [
32
+ s,
33
+ b(
34
+ t[s],
35
+ r[s]
36
+ )
37
+ ])
38
+ );
39
+ }, V = (t) => {
40
+ const {
41
+ props: r,
42
+ dependencies: n = [],
43
+ mergeInParentContext: s = !1,
44
+ children: e,
45
+ ...o
46
+ } = t, p = v(), a = m(() => r, n), i = m(
47
+ () => s ? j(p, r) : r,
48
+ [a, p, s]
49
+ ), l = f(e) ? {
50
+ ...o,
51
+ ...e.props
52
+ } : o, d = [
53
+ e,
54
+ ...Object.entries(l).flatMap((g) => g)
55
+ ], P = m(
56
+ () => f(e) ? C(e, l) : e,
57
+ d
58
+ );
59
+ return /* @__PURE__ */ u.createElement(E.Provider, { value: i }, P);
60
+ };
61
+ export {
62
+ V as P
63
+ };
@@ -3,30 +3,31 @@
3
3
  import e from "react";
4
4
  import * as R from "react-aria-components";
5
5
  import d from "clsx";
6
- import { u as G } from "./propsContext-CauylOgH.js";
7
- import { P as E } from "./PropsContextProvider-BcOGMJkn.js";
6
+ import "./propsContext-CauylOgH.js";
7
+ import { P as E } from "./PropsContextProvider-DkNLd3Yj.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
- import { F as y } from "./FieldError-CBxCl2nS.js";
11
- import { C as F } from "./ColumnLayout-FMONjI17.js";
12
- import { TunnelProvider as b, TunnelExit as m } from "@mittwald/react-tunnel";
13
- import { s as l } from "./FormField.module-DHK6nIcD.js";
14
- import { d as k } from "./deepFindOfType-6pG0fH7S.js";
10
+ import { F as x } from "./FieldError-TYnVmG-o.js";
11
+ import { C as y } from "./ColumnLayout-FMONjI17.js";
12
+ import { TunnelProvider as F, TunnelExit as m } from "@mittwald/react-tunnel";
13
+ import { s } from "./FormField.module-DHK6nIcD.js";
14
+ import { d as I } from "./deepFindOfType-6pG0fH7S.js";
15
15
  import { C as h } from "./ClearPropsContext-CeCMjUK9.js";
16
16
  import "@tabler/icons-react";
17
- import "./Icon-DVRBNZZe.js";
18
- import { I, a as B } from "./IconRadioOn-DNpq9Xk7.js";
19
- import { f as N } from "./flowComponent-CEo3pjEA.js";
20
- import { d as P } from "./dynamic-ClpUSmEt.js";
21
- import { I as v } from "./IconCheck-D9Y94psR.js";
22
- const D = "flow--radio-group", C = {
23
- radioGroup: D
24
- }, T = "flow--radio-group--radio-button", $ = "flow--radio-group--radio-button--content", O = "flow--radio-group--radio-button--label", f = {
25
- radioButton: T,
26
- content: $,
27
- label: O
28
- }, L = N("RadioButton", (a) => {
29
- const { children: t, className: r, ref: o, ...n } = a, s = d(f.radioButton, r), i = {
17
+ import "./Icon-CPAehMux.js";
18
+ import { I as b, a as k } from "./IconRadioOn-CTDczjLJ.js";
19
+ import { f as N } from "./flowComponent-mJ64-1gs.js";
20
+ import "dot-prop";
21
+ import { d as B } from "./dynamic-ClpUSmEt.js";
22
+ import { I as v } from "./IconCheck-C778cVIW.js";
23
+ const P = "flow--radio-group", C = {
24
+ radioGroup: P
25
+ }, D = "flow--radio-group--radio-button", T = "flow--radio-group--radio-button--content", $ = "flow--radio-group--radio-button--label", f = {
26
+ radioButton: D,
27
+ content: T,
28
+ label: $
29
+ }, O = N("RadioButton", (a) => {
30
+ const { children: t, className: r, ref: o, ...n } = a, l = d(f.radioButton, r), i = {
30
31
  Text: {
31
32
  className: f.label
32
33
  },
@@ -34,33 +35,32 @@ const D = "flow--radio-group", C = {
34
35
  className: f.content
35
36
  }
36
37
  };
37
- return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(K, { ...n, className: s, ref: o }, /* @__PURE__ */ e.createElement(E, { props: i }, t)));
38
- }), A = "flow--radio-group--segmented-group", S = "flow--radio-group--segmented-group--segments", j = "flow--radio-group--segmented-group--segment", q = "flow--radio-group--segmented-group--checkmark", c = {
39
- segmentedGroup: A,
40
- segments: S,
41
- segment: j,
42
- checkmark: q
43
- }, z = (a) => {
44
- const { children: t } = a, r = d(c.segmentedGroup, l.formField), n = {
45
- ...G(),
38
+ return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(J, { ...n, className: l, ref: o }, /* @__PURE__ */ e.createElement(E, { props: i }, t)));
39
+ }), L = "flow--radio-group--segmented-group", A = "flow--radio-group--segmented-group--segments", S = "flow--radio-group--segmented-group--segment", j = "flow--radio-group--segmented-group--checkmark", c = {
40
+ segmentedGroup: L,
41
+ segments: A,
42
+ segment: S,
43
+ checkmark: j
44
+ }, q = (a) => {
45
+ const { children: t } = a, r = d(c.segmentedGroup, s.formField), o = {
46
46
  Radio: {
47
47
  className: c.segment,
48
48
  unstyled: !0,
49
- children: P((s) => /* @__PURE__ */ e.createElement(e.Fragment, null, s.children, /* @__PURE__ */ e.createElement(v, { className: c.checkmark })))
49
+ children: B((n) => /* @__PURE__ */ e.createElement(e.Fragment, null, n.children, /* @__PURE__ */ e.createElement(v, { className: c.checkmark })))
50
50
  }
51
51
  };
52
- return /* @__PURE__ */ e.createElement("div", { className: r }, /* @__PURE__ */ e.createElement(E, { props: n }, /* @__PURE__ */ e.createElement("div", { className: c.segments }, t)));
52
+ return /* @__PURE__ */ e.createElement("div", { className: r }, /* @__PURE__ */ e.createElement(E, { props: o, mergeInParentContext: !0 }, /* @__PURE__ */ e.createElement("div", { className: c.segments }, t)));
53
53
  }, me = N("RadioGroup", (a) => {
54
- const { children: t, className: r, variant: o = "default", s: n, m: s, l: i, ...p } = a, w = d(l.formField, r), x = {
54
+ const { children: t, className: r, variant: o = "default", s: n, m: l, l: i, ...p } = a, w = d(s.formField, r), G = {
55
55
  Label: {
56
- className: l.label
56
+ className: s.label
57
57
  },
58
58
  FieldDescription: {
59
- className: l.fieldDescription,
59
+ className: s.fieldDescription,
60
60
  tunnelId: "fieldDescription"
61
61
  },
62
62
  FieldError: {
63
- className: l.customFieldError,
63
+ className: s.customFieldError,
64
64
  tunnelId: "fieldError"
65
65
  },
66
66
  RadioButton: {
@@ -69,20 +69,20 @@ const D = "flow--radio-group", C = {
69
69
  Radio: {
70
70
  tunnelId: "radios"
71
71
  }
72
- }, u = !!k(t, L);
72
+ }, u = !!I(t, O);
73
73
  return o === "segmented" && u && console.warn(
74
74
  "<RadioButton/> is not supported in 'segmented' variant of <RadioGroup />"
75
- ), /* @__PURE__ */ e.createElement(R.RadioGroup, { ...p, className: w }, /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(E, { props: x }, t, o === "segmented" && /* @__PURE__ */ e.createElement(z, null, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && u && /* @__PURE__ */ e.createElement(F, { s: n, m: s, l: i, className: C.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && !u && /* @__PURE__ */ e.createElement("div", { className: C.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), /* @__PURE__ */ e.createElement(m, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(m, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(y, { className: l.fieldError }));
76
- }), H = "flow--radio-group--radio", J = "flow--radio-group--radio--icon", g = {
77
- radio: H,
78
- icon: J
79
- }, K = N("Radio", (a) => {
80
- const { children: t, className: r, unstyled: o = !1, ref: n, ...s } = a, i = o ? r : d(g.radio, r);
81
- return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(R.Radio, { ...s, className: i, ref: n }, ({ isSelected: p }) => /* @__PURE__ */ e.createElement(e.Fragment, null, p ? !o && /* @__PURE__ */ e.createElement(I, { className: g.icon }) : !o && /* @__PURE__ */ e.createElement(B, { className: g.icon }), t)));
75
+ ), /* @__PURE__ */ e.createElement(R.RadioGroup, { ...p, className: w }, /* @__PURE__ */ e.createElement(F, null, /* @__PURE__ */ e.createElement(E, { props: G }, t, o === "segmented" && /* @__PURE__ */ e.createElement(q, null, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && u && /* @__PURE__ */ e.createElement(y, { s: n, m: l, l: i, className: C.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), o === "default" && !u && /* @__PURE__ */ e.createElement("div", { className: C.radioGroup }, /* @__PURE__ */ e.createElement(m, { id: "radios" })), /* @__PURE__ */ e.createElement(m, { id: "fieldDescription" }), /* @__PURE__ */ e.createElement(m, { id: "fieldError" }))), /* @__PURE__ */ e.createElement(x, { className: s.fieldError }));
76
+ }), z = "flow--radio-group--radio", H = "flow--radio-group--radio--icon", g = {
77
+ radio: z,
78
+ icon: H
79
+ }, J = N("Radio", (a) => {
80
+ const { children: t, className: r, unstyled: o = !1, ref: n, ...l } = a, i = o ? r : d(g.radio, r);
81
+ return /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(R.Radio, { ...l, className: i, ref: n }, ({ isSelected: p }) => /* @__PURE__ */ e.createElement(e.Fragment, null, p ? !o && /* @__PURE__ */ e.createElement(b, { className: g.icon }) : !o && /* @__PURE__ */ e.createElement(k, { className: g.icon }), t)));
82
82
  });
83
83
  export {
84
- K as Radio,
85
- L as RadioButton,
84
+ J as Radio,
85
+ O as RadioButton,
86
86
  me as RadioGroup,
87
87
  me as default
88
88
  };
package/dist/Section.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import s from "react";
4
4
  import i from "clsx";
5
5
  import "./propsContext-CauylOgH.js";
6
- import { P as l } from "./PropsContextProvider-BcOGMJkn.js";
6
+ import { P as l } from "./PropsContextProvider-DkNLd3Yj.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  const m = "flow--section", d = "flow--section--header", p = "flow--section--status-badge", e = {
package/dist/Select.js CHANGED
@@ -3,16 +3,16 @@
3
3
  import e from "react";
4
4
  import * as c from "react-aria-components";
5
5
  import "./propsContext-CauylOgH.js";
6
- import { P as C } from "./PropsContextProvider-BcOGMJkn.js";
6
+ import { P as C } from "./PropsContextProvider-DkNLd3Yj.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { s as r } from "./FormField.module-DHK6nIcD.js";
10
- import { F as x } from "./FieldError-CBxCl2nS.js";
10
+ import { F as x } from "./FieldError-TYnVmG-o.js";
11
11
  import m from "clsx";
12
12
  import "@tabler/icons-react";
13
- import "./Icon-DVRBNZZe.js";
14
- import { I as h } from "./IconChevronDown-D8WRADYa.js";
15
- import { f as E } from "./flowComponent-CEo3pjEA.js";
13
+ import "./Icon-CPAehMux.js";
14
+ import { I as h } from "./IconChevronDown-BL8_H9Kf.js";
15
+ import { f as E } from "./flowComponent-mJ64-1gs.js";
16
16
  import { P as v } from "./Popover-MmxZkKu3.js";
17
17
  import { TunnelProvider as w, TunnelExit as S } from "@mittwald/react-tunnel";
18
18
  const F = "flow--select", P = "flow--select--toggle", f = {
@@ -2,13 +2,14 @@
2
2
  /* */
3
3
  import t from "react";
4
4
  import l from "clsx";
5
- import { S as f } from "./StatusIcon-gxczp9bZ.js";
6
- import { T as u } from "./Text-D7C_T7CE.js";
7
- import { C as i } from "./ClearPropsContext-CeCMjUK9.js";
5
+ import { S as f } from "./StatusIcon-BrpddXMN.js";
6
+ import { T as i } from "./Text-BW9cNWaj.js";
7
+ import { C as u } from "./ClearPropsContext-CeCMjUK9.js";
8
8
  import "./propsContext-CauylOgH.js";
9
9
  import "@react-aria/utils";
10
10
  import "remeda";
11
- import { f as d } from "./flowComponent-CEo3pjEA.js";
11
+ import "dot-prop";
12
+ import { f as d } from "./flowComponent-mJ64-1gs.js";
12
13
  const g = "flow--status-badge", p = "flow--status-badge--text", w = "flow--status-badge--info", x = "flow--status-badge--success", b = "flow--status-badge--warning", B = "flow--status-badge--danger", s = {
13
14
  statusBadge: g,
14
15
  text: p,
@@ -16,11 +17,11 @@ const g = "flow--status-badge", p = "flow--status-badge--text", w = "flow--statu
16
17
  success: x,
17
18
  warning: b,
18
19
  danger: B
19
- }, z = d("StatusBadge", (a) => {
20
+ }, P = d("StatusBadge", (a) => {
20
21
  const { children: o, className: n, status: e = "info", ref: r, ...c } = a, m = l(s.statusBadge, s[e], n);
21
- return /* @__PURE__ */ t.createElement(i, null, /* @__PURE__ */ t.createElement("div", { className: m, ...c, ref: r }, /* @__PURE__ */ t.createElement(f, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(u, { className: s.text }, o)));
22
+ return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement("div", { className: m, ...c, ref: r }, /* @__PURE__ */ t.createElement(f, { size: "s", className: s.statusIcon, status: e }), /* @__PURE__ */ t.createElement(i, { className: s.text }, o)));
22
23
  });
23
24
  export {
24
- z as StatusBadge,
25
- z as default
25
+ P as StatusBadge,
26
+ P as default
26
27
  };
@@ -2,14 +2,15 @@
2
2
  /* */
3
3
  import o from "react";
4
4
  import "@tabler/icons-react";
5
- import "./Icon-DVRBNZZe.js";
6
- import { I as c } from "./IconDanger-BKH4QbJ1.js";
7
- import { I as e, a as i, b as m } from "./IconWarning-pPmXp5KC.js";
5
+ import "./Icon-CPAehMux.js";
6
+ import { I as c } from "./IconDanger-B7qTdARI.js";
7
+ import { I as e, a as i, b as m } from "./IconWarning-B5oeYHHs.js";
8
8
  import { useLocalizedStringFormatter as u } from "react-aria";
9
9
  import { C as I } from "./ClearPropsContext-CeCMjUK9.js";
10
10
  import "./propsContext-CauylOgH.js";
11
11
  import "@react-aria/utils";
12
12
  import "remeda";
13
+ import "dot-prop";
13
14
  const f = {
14
15
  "de-DE": {
15
16
  "statusIcon.danger": "Fehler",
@@ -28,10 +29,10 @@ const f = {
28
29
  info: e,
29
30
  success: i,
30
31
  warning: m
31
- }, x = (n) => {
32
- const { status: t = "info", ...s } = n, r = u(f).format(`statusIcon.${t}`), a = g[t];
33
- return /* @__PURE__ */ o.createElement(I, null, /* @__PURE__ */ o.createElement(a, { "aria-label": r, ...s }));
32
+ }, D = (n) => {
33
+ const { status: t = "info", ...r } = n, s = u(f).format(`statusIcon.${t}`), a = g[t];
34
+ return /* @__PURE__ */ o.createElement(I, null, /* @__PURE__ */ o.createElement(a, { "aria-label": s, ...r }));
34
35
  };
35
36
  export {
36
- x as S
37
+ D as S
37
38
  };
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { S as a } from "./StatusIcon-gxczp9bZ.js";
3
+ import { S as a } from "./StatusIcon-BrpddXMN.js";
4
4
  export {
5
5
  a as StatusIcon,
6
6
  a as default
package/dist/Switch.js CHANGED
@@ -4,22 +4,23 @@ import e from "react";
4
4
  import * as n from "react-aria-components";
5
5
  import f from "clsx";
6
6
  import "@tabler/icons-react";
7
- import "./Icon-DVRBNZZe.js";
8
- import { I as h } from "./IconCheck-D9Y94psR.js";
9
- import { I as p } from "./IconClose-zpsdo5WH.js";
10
- import { L as w } from "./Label-BFDBIwAZ.js";
7
+ import "./Icon-CPAehMux.js";
8
+ import { I as p } from "./IconCheck-C778cVIW.js";
9
+ import { I as h } from "./IconClose-Cq9t3LQV.js";
10
+ import { L as w } from "./Label-B4BxkNHo.js";
11
11
  import { C as d } from "./ClearPropsContext-CeCMjUK9.js";
12
12
  import "./propsContext-CauylOgH.js";
13
13
  import "@react-aria/utils";
14
14
  import "remeda";
15
- import { f as b } from "./flowComponent-CEo3pjEA.js";
15
+ import "dot-prop";
16
+ import { f as b } from "./flowComponent-mJ64-1gs.js";
16
17
  const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--label", t = {
17
18
  switch: "flow--switch",
18
19
  "label-leading": "flow--switch--label-leading",
19
20
  track: E,
20
21
  handle: C,
21
22
  label: N
22
- }, F = b("Switch", (l) => {
23
+ }, R = b("Switch", (l) => {
23
24
  const {
24
25
  children: a,
25
26
  className: o,
@@ -31,9 +32,9 @@ const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--
31
32
  t[`label-${r}`],
32
33
  o
33
34
  );
34
- return /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(n.Switch, { ...c, className: m, ref: s }, ({ isSelected: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, i ? /* @__PURE__ */ e.createElement(h, { size: "s" }) : /* @__PURE__ */ e.createElement(p, { size: "s" }))), /* @__PURE__ */ e.createElement(w, { className: t.label }, a))));
35
+ return /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(n.Switch, { ...c, className: m, ref: s }, ({ isSelected: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: t.track }, /* @__PURE__ */ e.createElement("div", { className: t.handle }, i ? /* @__PURE__ */ e.createElement(p, { size: "s" }) : /* @__PURE__ */ e.createElement(h, { size: "s" }))), /* @__PURE__ */ e.createElement(w, { className: t.label }, a))));
35
36
  });
36
37
  export {
37
- F as Switch,
38
- F as default
38
+ R as Switch,
39
+ R as default
39
40
  };
package/dist/Tabs.js CHANGED
@@ -1,44 +1,45 @@
1
1
  "use client"
2
2
  /* */
3
- import t, { createContext as x, useContext as N, useId as P } from "react";
3
+ import t, { createContext as f, useContext as p, useId as x } from "react";
4
4
  import * as l from "react-aria-components";
5
5
  import c from "clsx";
6
- import { TunnelProvider as f, TunnelExit as i, TunnelEntry as T } from "@mittwald/react-tunnel";
7
- import { T as p } from "./Text-D7C_T7CE.js";
8
- const C = "flow--tabs", h = "flow--tabs--tab-list", m = {
9
- tabs: C,
10
- tabList: h
11
- }, M = (e) => {
12
- const { children: a, className: s, ...n } = e, o = c(m.tabs, s);
13
- return /* @__PURE__ */ t.createElement(f, null, a, /* @__PURE__ */ t.createElement(l.Tabs, { className: o, ...n }, /* @__PURE__ */ t.createElement(l.TabList, { className: m.tabList }, /* @__PURE__ */ t.createElement(i, { id: "TabTitles" })), /* @__PURE__ */ t.createElement(i, { id: "TabPanels" })));
14
- }, v = "flow--tabs--tab-title", w = {
6
+ import { TunnelProvider as N, TunnelExit as m, TunnelEntry as T } from "@mittwald/react-tunnel";
7
+ import { f as P } from "./flowComponent-mJ64-1gs.js";
8
+ import { T as C } from "./Text-BW9cNWaj.js";
9
+ const h = "flow--tabs", w = "flow--tabs--tab-list", b = {
10
+ tabs: h,
11
+ tabList: w
12
+ }, W = P("Tabs", (e) => {
13
+ const { children: a, className: s, ...n } = e, o = c(b.tabs, s);
14
+ return /* @__PURE__ */ t.createElement(N, null, a, /* @__PURE__ */ t.createElement(l.Tabs, { className: o, ...n }, /* @__PURE__ */ t.createElement(l.TabList, { className: b.tabList }, /* @__PURE__ */ t.createElement(m, { id: "TabTitles" })), /* @__PURE__ */ t.createElement(m, { id: "TabPanels" })));
15
+ }), v = "flow--tabs--tab-title", y = {
15
16
  tabTitle: v
16
- }, d = x({}), y = () => N(d), L = d.Provider, R = (e) => {
17
- const { children: a, className: s, ...n } = e, o = y(), r = c(w.tabTitle, s);
18
- return /* @__PURE__ */ t.createElement(T, { id: "TabTitles" }, /* @__PURE__ */ t.createElement(l.Tab, { className: r, ...n, id: o.id }, /* @__PURE__ */ t.createElement(p, { emulateBoldWidth: !0 }, a)));
19
- }, F = "flow--tabs--tab--tab-panel", I = {
20
- tabPanel: F
21
- }, W = (e) => {
17
+ }, d = f({}), L = () => p(d), F = d.Provider, j = (e) => {
18
+ const { children: a, className: s, ...n } = e, o = L(), r = c(y.tabTitle, s);
19
+ return /* @__PURE__ */ t.createElement(T, { id: "TabTitles" }, /* @__PURE__ */ t.createElement(l.Tab, { className: r, ...n, id: o.id }, /* @__PURE__ */ t.createElement(C, { emulateBoldWidth: !0 }, a)));
20
+ }, I = "flow--tabs--tab--tab-panel", $ = {
21
+ tabPanel: I
22
+ }, k = (e) => {
22
23
  const {
23
24
  children: a,
24
25
  className: s,
25
26
  shouldForceMount: n = !0,
26
27
  id: o,
27
28
  ...r
28
- } = e, u = c(I.tabPanel, s), E = P(), b = o ?? E;
29
- return /* @__PURE__ */ t.createElement(T, { id: "TabPanels" }, /* @__PURE__ */ t.createElement(L, { value: { id: b } }, /* @__PURE__ */ t.createElement(
29
+ } = e, u = c($.tabPanel, s), E = x(), i = o ?? E;
30
+ return /* @__PURE__ */ t.createElement(T, { id: "TabPanels" }, /* @__PURE__ */ t.createElement(F, { value: { id: i } }, /* @__PURE__ */ t.createElement(
30
31
  l.TabPanel,
31
32
  {
32
33
  className: u,
33
34
  shouldForceMount: n,
34
- id: b,
35
+ id: i,
35
36
  ...r
36
37
  },
37
38
  a
38
39
  )));
39
40
  };
40
41
  export {
41
- W as Tab,
42
- R as TabTitle,
43
- M as Tabs
42
+ k as Tab,
43
+ j as TabTitle,
44
+ W as Tabs
44
45
  };
@@ -3,12 +3,12 @@
3
3
  import e from "react";
4
4
  import * as f from "react-aria-components";
5
5
  import { C as x } from "./ClearPropsContext-CeCMjUK9.js";
6
- import { P as E } from "./PropsContextProvider-BcOGMJkn.js";
6
+ import { P as E } from "./PropsContextProvider-DkNLd3Yj.js";
7
7
  import "@react-aria/utils";
8
8
  import "./propsContext-CauylOgH.js";
9
9
  import "remeda";
10
10
  import u from "invariant";
11
- import { f as T } from "./flowComponent-CEo3pjEA.js";
11
+ import { f as T } from "./flowComponent-mJ64-1gs.js";
12
12
  import { E as d } from "./EmulatedBoldText-Dtox8Wd1.js";
13
13
  import { W as C } from "./Wrap-DGT1h1o3.js";
14
14
  const A = T("Text", (r) => {
package/dist/Text.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { T as a } from "./Text-D7C_T7CE.js";
3
+ import { T as a } from "./Text-BW9cNWaj.js";
4
4
  export {
5
5
  a as Text,
6
6
  a as default
package/dist/TextArea.js CHANGED
@@ -2,15 +2,16 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import * as n from "react-aria-components";
5
- import { T as p } from "./TextFieldBase-DuP4Ls0l.js";
6
- import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
5
+ import { T as p } from "./TextFieldBase-BcCtRAw5.js";
6
+ import { C as i } from "./ClearPropsContext-CeCMjUK9.js";
7
7
  import "./propsContext-CauylOgH.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
- import { f as i } from "./flowComponent-CEo3pjEA.js";
10
+ import "dot-prop";
11
+ import { f as c } from "./flowComponent-mJ64-1gs.js";
11
12
  const f = "flow--text-area", x = {
12
13
  textArea: f
13
- }, h = i("TextArea", (t) => {
14
+ }, y = c("TextArea", (t) => {
14
15
  const { children: r, placeholder: o, rows: a = 5, ref: m, ...s } = t, l = /* @__PURE__ */ e.createElement(
15
16
  n.TextArea,
16
17
  {
@@ -20,9 +21,9 @@ const f = "flow--text-area", x = {
20
21
  ref: m
21
22
  }
22
23
  );
23
- return /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement(p, { ...s, input: l }, r));
24
+ return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(p, { ...s, input: l }, r));
24
25
  });
25
26
  export {
26
- h as TextArea,
27
- h as default
27
+ y as TextArea,
28
+ y as default
28
29
  };