@mittwald/flow-react-components 0.1.0-alpha.122 → 0.1.0-alpha.124

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 (130) hide show
  1. package/dist/{Accordion-9wwB377E.js → Accordion-Bszrsi-4.js} +4 -4
  2. package/dist/Accordion.js +1 -1
  3. package/dist/Action-7EQNT1az.js +217 -0
  4. package/dist/Action.js +1 -1
  5. package/dist/Avatar.js +22 -22
  6. package/dist/Breadcrumb.js +3 -3
  7. package/dist/{Button-BGCNzfmU.js → Button-tEtjVHFC.js} +6 -6
  8. package/dist/Button.js +1 -1
  9. package/dist/ButtonGroup.js +16 -16
  10. package/dist/{Checkbox-HtVxajw_.js → Checkbox-CHueH9FZ.js} +4 -4
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/CheckboxButton-Ch3zxviG.js +29 -0
  13. package/dist/CheckboxButton.js +1 -1
  14. package/dist/CheckboxGroup.js +15 -15
  15. package/dist/{Content-CPAYV7wp.js → Content-xPY804ey.js} +1 -1
  16. package/dist/Content.js +1 -1
  17. package/dist/{ContextMenu-BGfJXwpB.js → ContextMenu-ChxMleeO.js} +3 -3
  18. package/dist/ContextMenu.js +2 -2
  19. package/dist/CopyButton.js +5 -5
  20. package/dist/FieldDescription.js +2 -2
  21. package/dist/{FieldError--Qpixa12.js → FieldError-Bl_SXH5M.js} +3 -3
  22. package/dist/FieldError.js +1 -1
  23. package/dist/Header.js +1 -1
  24. package/dist/HeaderNavigation.js +1 -1
  25. package/dist/{Heading-CYit9Nf-.js → Heading-CSfMC_V6.js} +2 -2
  26. package/dist/Heading.js +1 -1
  27. package/dist/{Icon-DhFv_0k_.js → Icon-DXq5lwp4.js} +7 -6
  28. package/dist/Icon.js +1 -1
  29. package/dist/{IconCheck-D8ys0_F5.js → IconCheck-BLXj9z4I.js} +1 -1
  30. package/dist/{IconCheckboxEmpty-DRlqWMgD.js → IconCheckboxEmpty-CseDZ77J.js} +1 -1
  31. package/dist/{IconCheckboxIndeterminate-CfK_tk87.js → IconCheckboxIndeterminate-BdEkNKEg.js} +1 -1
  32. package/dist/{IconChevronDown-gLJKgegq.js → IconChevronDown-DGMWVrr9.js} +1 -1
  33. package/dist/{IconChevronRight-CqgfPevo.js → IconChevronRight-Sd5qEgz9.js} +1 -1
  34. package/dist/{IconClose-BEe9M79E.js → IconClose-BuJDcvk1.js} +1 -1
  35. package/dist/{IconContextMenu-B9OI5d_u.js → IconContextMenu-BtDEfs_U.js} +1 -1
  36. package/dist/{IconCopy-A7uxuck-.js → IconCopy-Y4GR1Z03.js} +1 -1
  37. package/dist/{IconDanger-ALKH8dEk.js → IconDanger-D3n1sEDX.js} +1 -1
  38. package/dist/{IconPending-BV6Loio6.js → IconPending-C0IPPa0F.js} +1 -1
  39. package/dist/{IconPlus-eFn-agxn.js → IconPlus-BL-Zqbnv.js} +1 -1
  40. package/dist/{IconRadioOn--oXSoOvP.js → IconRadioOn-D0pCkmJ4.js} +1 -1
  41. package/dist/{IconSearch-BO1yNi13.js → IconSearch-B9UA2NmT.js} +1 -1
  42. package/dist/{IconSucceeded-d8xQyLF2.js → IconSucceeded-B4DEKa6J.js} +1 -1
  43. package/dist/{IconWarning-CAgZzx72.js → IconWarning-CmSsxAnH.js} +1 -1
  44. package/dist/Icons.js +16 -16
  45. package/dist/{IllustratedMessage-D1xVzeZO.js → IllustratedMessage-BUg2-svi.js} +1 -1
  46. package/dist/IllustratedMessage.js +1 -1
  47. package/dist/Image.js +5 -5
  48. package/dist/Initials.js +1 -1
  49. package/dist/InlineAlert.js +4 -4
  50. package/dist/{Label-DWCo1l63.js → Label-CfPzBQtx.js} +1 -1
  51. package/dist/Label.js +1 -1
  52. package/dist/LabeledValue.js +1 -1
  53. package/dist/LayoutCard.js +2 -2
  54. package/dist/{Link-BK57CeBv.js → Link-BNozTXoN.js} +2 -2
  55. package/dist/Link.js +1 -1
  56. package/dist/List.js +199 -204
  57. package/dist/{LoadingSpinner-BV4S5RsS.js → LoadingSpinner-smFm5pXR.js} +2 -2
  58. package/dist/LoadingSpinner.js +1 -1
  59. package/dist/MenuItem-CgrBX4na.js +54 -0
  60. package/dist/MenuItem.js +1 -1
  61. package/dist/Modal.js +13 -6
  62. package/dist/Navigation.js +3 -3
  63. package/dist/NumberField.js +7 -7
  64. package/dist/OffCanvas.js +7 -7
  65. package/dist/Overlay-CUZ1KZa8.js +33 -0
  66. package/dist/OverlayTrigger.js +3 -3
  67. package/dist/Popover-B6bARCOK.js +17 -0
  68. package/dist/ProgressBar.js +1 -1
  69. package/dist/PropsContextProvider-ChpH8eF2.js +81 -0
  70. package/dist/RadioGroup.js +46 -37
  71. package/dist/Section.js +18 -18
  72. package/dist/Select.js +6 -6
  73. package/dist/Skeleton-CKLaTmDR.js +22 -0
  74. package/dist/Skeleton.js +1 -1
  75. package/dist/StatusBadge.js +3 -3
  76. package/dist/{StatusIcon-CvIY_c35.js → StatusIcon-CzfeqAZQ.js} +3 -3
  77. package/dist/StatusIcon.js +1 -1
  78. package/dist/Switch.js +5 -5
  79. package/dist/Tabs.js +47 -39
  80. package/dist/{Text-DXApO_Re.js → Text-DOQUStg_.js} +2 -2
  81. package/dist/Text.js +1 -1
  82. package/dist/TextArea.js +2 -2
  83. package/dist/TextField.js +2 -2
  84. package/dist/{TextFieldBase-C7g5i_rC.js → TextFieldBase-B6lQlCmE.js} +2 -2
  85. package/dist/context-CEG7VfKL.js +58 -0
  86. package/dist/controller.js +1 -1
  87. package/dist/{flowComponent-Dha_9C4F.js → flowComponent-Cv_SURLH.js} +35 -34
  88. package/dist/hooks.js +1 -1
  89. package/dist/{index-0qLHBjoi.js → index-BlZLqtIV.js} +8 -8
  90. package/dist/react-hook-form.js +2 -2
  91. package/dist/styles.css +1 -1
  92. package/dist/types/components/Action/Action.d.ts +2 -12
  93. package/dist/types/components/Action/components/ActionButton.d.ts +4 -0
  94. package/dist/types/components/Action/components/ActionLink.d.ts +4 -0
  95. package/dist/types/components/Action/components/ConfirmationModal.d.ts +4 -0
  96. package/dist/types/components/Action/components/ConfirmationModalButton.d.ts +4 -0
  97. package/dist/types/components/Action/context.d.ts +15 -0
  98. package/dist/types/components/Action/index.d.ts +1 -1
  99. package/dist/types/components/Action/lib/execution/ActionExecution.d.ts +2 -2
  100. package/dist/types/components/Action/lib/execution/ActionState.d.ts +1 -1
  101. package/dist/types/components/Action/lib/execution/useActionController.d.ts +2 -3
  102. package/dist/types/components/Action/stories/Default.stories.d.ts +1 -1
  103. package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +1 -1
  104. package/dist/types/components/Action/types.d.ts +11 -0
  105. package/dist/types/components/List/components/Items/ListItem/ListItem.d.ts +6 -0
  106. package/dist/types/components/List/components/Items/ListItem/index.d.ts +4 -0
  107. package/dist/types/components/List/index.d.ts +1 -0
  108. package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
  109. package/dist/types/components/Modal/Modal.d.ts +1 -0
  110. package/dist/types/components/Overlay/Overlay.d.ts +1 -0
  111. package/dist/types/components/Popover/Popover.d.ts +3 -1
  112. package/dist/types/components/Popover/stories/Default.stories.d.ts +1 -0
  113. package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts +7 -0
  114. package/dist/types/components/Skeleton/Skeleton.d.ts +4 -1
  115. package/dist/types/lib/promises/sleep.d.ts +1 -0
  116. package/package.json +24 -28
  117. package/dist/Action-5b_DWWiS.js +0 -191
  118. package/dist/CheckboxButton-BPC6RfJj.js +0 -29
  119. package/dist/MenuItem-CzSUuXS-.js +0 -49
  120. package/dist/Overlay-ofdfFqqi.js +0 -28
  121. package/dist/Popover-MmxZkKu3.js +0 -15
  122. package/dist/Popover.js +0 -7
  123. package/dist/PropsContextProvider-DZvwqHLP.js +0 -64
  124. package/dist/Skeleton-D97e6aVe.js +0 -14
  125. package/dist/context-DJetA3qV.js +0 -8
  126. package/dist/types/components/Action/lib/execution/breakAction.d.ts +0 -2
  127. package/dist/types/components/Action/lib/execution/useActionFunction.d.ts +0 -4
  128. package/dist/types/components/List/components/Items/Item/Item.d.ts +0 -5
  129. package/dist/types/components/List/components/Items/Item/index.d.ts +0 -5
  130. /package/dist/types/components/List/components/Items/{Item → ListItem}/FallbackRenderer.d.ts +0 -0
package/dist/Switch.js CHANGED
@@ -4,16 +4,16 @@ 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-DhFv_0k_.js";
8
- import { I as p } from "./IconCheck-D8ys0_F5.js";
9
- import { I as h } from "./IconClose-BEe9M79E.js";
10
- import { L as w } from "./Label-DWCo1l63.js";
7
+ import "./Icon-DXq5lwp4.js";
8
+ import { I as p } from "./IconCheck-BLXj9z4I.js";
9
+ import { I as h } from "./IconClose-BuJDcvk1.js";
10
+ import { L as w } from "./Label-CfPzBQtx.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
15
  import "dot-prop";
16
- import { f as b } from "./flowComponent-Dha_9C4F.js";
16
+ import { f as b } from "./flowComponent-Cv_SURLH.js";
17
17
  const E = "flow--switch--track", C = "flow--switch--handle", N = "flow--switch--label", t = {
18
18
  switch: "flow--switch",
19
19
  "label-leading": "flow--switch--label-leading",
package/dist/Tabs.js CHANGED
@@ -1,27 +1,27 @@
1
1
  "use client"
2
2
  /* */
3
3
  import e, { useRef as h, useState as x, useEffect as M, useId as g, createContext as I, useContext as P } from "react";
4
- import * as C from "react-aria-components";
4
+ import * as E from "react-aria-components";
5
5
  import { MenuTrigger as y } from "react-aria-components";
6
- import d from "clsx";
7
- import { TunnelExit as p, TunnelProvider as S, TunnelEntry as b } from "@mittwald/react-tunnel";
8
- import { f as O } from "./flowComponent-Dha_9C4F.js";
6
+ import u from "clsx";
7
+ import { TunnelExit as C, TunnelProvider as S, TunnelEntry as f } from "@mittwald/react-tunnel";
8
+ import { f as O } from "./flowComponent-Cv_SURLH.js";
9
9
  import { useCallbackRef as B } from "use-callback-ref";
10
- import { C as K } from "./ContextMenu-BGfJXwpB.js";
11
- import { M as A } from "./MenuItem-CzSUuXS-.js";
12
- import { B as L } from "./Button-BGCNzfmU.js";
10
+ import { C as K } from "./ContextMenu-ChxMleeO.js";
11
+ import { M as A } from "./MenuItem-CgrBX4na.js";
12
+ import { B as L } from "./Button-tEtjVHFC.js";
13
13
  import "@tabler/icons-react";
14
- import "./Icon-DhFv_0k_.js";
15
- import { I as F } from "./IconContextMenu-B9OI5d_u.js";
16
- import { T as R } from "./Text-DXApO_Re.js";
14
+ import "./Icon-DXq5lwp4.js";
15
+ import { I as F } from "./IconContextMenu-BtDEfs_U.js";
16
+ import { T as R } from "./Text-DOQUStg_.js";
17
17
  import "./propsContext-CauylOgH.js";
18
- import { P as W } from "./PropsContextProvider-DZvwqHLP.js";
18
+ import { P as W } from "./PropsContextProvider-ChpH8eF2.js";
19
19
  import "@react-aria/utils";
20
20
  import "remeda";
21
21
  const $ = "flow--tabs", k = "flow--tabs--list", j = {
22
22
  tabs: $,
23
23
  list: k
24
- }, q = "flow--tabs--tab-list", z = "flow--tabs--tab-list--context-menu-button", D = "flow--tabs--tab-list--titles", G = "flow--tabs--tab-list--collapsed", u = {
24
+ }, q = "flow--tabs--tab-list", z = "flow--tabs--tab-list--context-menu-button", D = "flow--tabs--tab-list--titles", G = "flow--tabs--tab-list--collapsed", b = {
25
25
  tabList: q,
26
26
  contextMenuButton: z,
27
27
  titles: D,
@@ -50,22 +50,22 @@ const $ = "flow--tabs", k = "flow--tabs--list", j = {
50
50
  ref: o,
51
51
  isOverflowing: n
52
52
  };
53
- }, J = "flow--tabs--tab-title", Q = "flow--tabs--tab-title--text", U = "flow--tabs--tab-title--menu-item", f = {
53
+ }, J = "flow--tabs--tab-title", Q = "flow--tabs--tab-title--text", U = "flow--tabs--tab-title--menu-item", p = {
54
54
  tabTitle: J,
55
55
  text: Q,
56
56
  menuItem: U
57
57
  }, V = (s) => {
58
- const { className: n, ...r } = s, o = d(n, f.tabTitle);
59
- return /* @__PURE__ */ e.createElement("div", { ...r, className: o, "data-selected": !0 }, /* @__PURE__ */ e.createElement(p, { id: "ActiveTitle" }));
58
+ const { className: n, ...r } = s, o = u(n, p.tabTitle);
59
+ return /* @__PURE__ */ e.createElement("div", { ...r, className: o, "data-selected": !0 }, /* @__PURE__ */ e.createElement(C, { id: "ActiveTitle" }));
60
60
  }, X = (s) => {
61
- const { selection: n, disabledKeys: r, onContextMenuSelectionChange: o } = s, a = g(), c = H(), l = c.isOverflowing, t = d(u.tabList, l && u.collapsed), i = (N) => {
61
+ const { selection: n, disabledKeys: r, onContextMenuSelectionChange: o } = s, a = g(), c = H(), l = c.isOverflowing, t = u(b.tabList, l && b.collapsed), i = (N) => {
62
62
  const [v] = N;
63
63
  v && o(v);
64
- }, E = /* @__PURE__ */ e.createElement(C.TabList, { className: u.titles, ref: c.ref }, /* @__PURE__ */ e.createElement(p, { id: "Titles" })), m = l && /* @__PURE__ */ e.createElement(V, { id: a }), T = l && /* @__PURE__ */ e.createElement(y, null, /* @__PURE__ */ e.createElement(
64
+ }, m = /* @__PURE__ */ e.createElement(E.TabList, { className: b.titles, ref: c.ref }, /* @__PURE__ */ e.createElement(C, { id: "Titles" })), d = l && /* @__PURE__ */ e.createElement(V, { id: a }), T = l && /* @__PURE__ */ e.createElement(y, null, /* @__PURE__ */ e.createElement(
65
65
  L,
66
66
  {
67
67
  variant: "soft",
68
- className: u.contextMenuButton,
68
+ className: b.contextMenuButton,
69
69
  color: "secondary",
70
70
  "aria-labelledby": a
71
71
  },
@@ -78,61 +78,69 @@ const $ = "flow--tabs", k = "flow--tabs--list", j = {
78
78
  selectionMode: "navigation",
79
79
  onSelectionChange: i
80
80
  },
81
- /* @__PURE__ */ e.createElement(p, { id: "ContextMenuItems" })
81
+ /* @__PURE__ */ e.createElement(C, { id: "ContextMenuItems" })
82
82
  ));
83
- return /* @__PURE__ */ e.createElement("div", { className: t }, E, m, T);
83
+ return /* @__PURE__ */ e.createElement("div", { className: t }, m, d, T);
84
84
  }, Te = O("Tabs", (s) => {
85
- const { children: n, className: r, defaultSelectedKey: o, disabledKeys: a, ...c } = s, l = d(j.tabs, r), [t, i] = x(
85
+ const {
86
+ children: n,
87
+ className: r,
88
+ defaultSelectedKey: o,
89
+ disabledKeys: a,
90
+ refProp: c,
91
+ ...l
92
+ } = s, t = u(j.tabs, r), [i, m] = x(
86
93
  o
87
94
  );
88
95
  return /* @__PURE__ */ e.createElement(S, null, n, /* @__PURE__ */ e.createElement(
89
- C.Tabs,
96
+ E.Tabs,
90
97
  {
91
98
  slot: null,
92
- className: l,
93
- ...c,
94
- selectedKey: t,
95
- onSelectionChange: i,
96
- disabledKeys: a
99
+ className: t,
100
+ ...l,
101
+ selectedKey: i,
102
+ onSelectionChange: m,
103
+ disabledKeys: a,
104
+ ref: c
97
105
  },
98
106
  /* @__PURE__ */ e.createElement(
99
107
  X,
100
108
  {
101
- selection: t,
102
- onContextMenuSelectionChange: i,
109
+ selection: i,
110
+ onContextMenuSelectionChange: m,
103
111
  disabledKeys: a
104
112
  }
105
113
  ),
106
- /* @__PURE__ */ e.createElement(p, { id: "Panels" })
114
+ /* @__PURE__ */ e.createElement(C, { id: "Panels" })
107
115
  ));
108
116
  }), w = I({
109
117
  id: "undefined"
110
118
  }), Y = () => P(w), Z = w.Provider, ve = (s) => {
111
- const { children: n, className: r, ...o } = s, { id: a } = Y(), c = d(f.tabTitle, r);
112
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(b, { id: "Titles" }, /* @__PURE__ */ e.createElement(C.Tab, { ...o, id: a, className: c }, (l) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(R, { emulateBoldWidth: !0 }, /* @__PURE__ */ e.createElement("span", { className: f.text }, n)), /* @__PURE__ */ e.createElement(b, { id: "ActiveTitle" }, l.isSelected && n)))), /* @__PURE__ */ e.createElement(b, { id: "ContextMenuItems" }, /* @__PURE__ */ e.createElement(A, { className: f.menuItem, id: a }, n)));
119
+ const { children: n, className: r, ...o } = s, { id: a } = Y(), c = u(p.tabTitle, r);
120
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(f, { id: "Titles" }, /* @__PURE__ */ e.createElement(E.Tab, { ...o, id: a, className: c }, (l) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(R, { emulateBoldWidth: !0 }, /* @__PURE__ */ e.createElement("span", { className: p.text }, n)), /* @__PURE__ */ e.createElement(f, { id: "ActiveTitle" }, l.isSelected && n)))), /* @__PURE__ */ e.createElement(f, { id: "ContextMenuItems" }, /* @__PURE__ */ e.createElement(A, { className: p.menuItem, id: a }, n)));
113
121
  }, _ = "flow--tabs--tab--tab-panel", ee = {
114
122
  tabPanel: _
115
123
  }, xe = (s) => {
116
- const { children: n, className: r, id: o, ...a } = s, c = d(ee.tabPanel, r), l = g(), t = o ?? l, i = (E) => {
117
- const m = E.state.selectedKey === t, T = {
124
+ const { children: n, className: r, id: o, ...a } = s, c = u(ee.tabPanel, r), l = g(), t = o ?? l, i = (m) => {
125
+ const d = m.state.selectedKey === t, T = {
118
126
  Content: {
119
- isActive: m
127
+ isActive: d
120
128
  },
121
129
  Section: {
122
- isActive: m
130
+ isActive: d
123
131
  }
124
132
  };
125
133
  return /* @__PURE__ */ e.createElement(
126
134
  W,
127
135
  {
128
136
  props: T,
129
- dependencies: [m, n]
137
+ dependencies: [d, n]
130
138
  },
131
139
  n
132
140
  );
133
141
  };
134
- return /* @__PURE__ */ e.createElement(b, { id: "Panels" }, /* @__PURE__ */ e.createElement(Z, { value: { id: t } }, /* @__PURE__ */ e.createElement(
135
- C.TabPanel,
142
+ return /* @__PURE__ */ e.createElement(f, { id: "Panels" }, /* @__PURE__ */ e.createElement(Z, { value: { id: t } }, /* @__PURE__ */ e.createElement(
143
+ E.TabPanel,
136
144
  {
137
145
  className: c,
138
146
  shouldForceMount: !0,
@@ -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-DZvwqHLP.js";
6
+ import { P as E } from "./PropsContextProvider-ChpH8eF2.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-Dha_9C4F.js";
11
+ import { f as T } from "./flowComponent-Cv_SURLH.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-DXApO_Re.js";
3
+ import { T as a } from "./Text-DOQUStg_.js";
4
4
  export {
5
5
  a as Text,
6
6
  a as default
package/dist/TextArea.js CHANGED
@@ -2,13 +2,13 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import * as n from "react-aria-components";
5
- import { T as p } from "./TextFieldBase-C7g5i_rC.js";
5
+ import { T as p } from "./TextFieldBase-B6lQlCmE.js";
6
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
10
  import "dot-prop";
11
- import { f as c } from "./flowComponent-Dha_9C4F.js";
11
+ import { f as c } from "./flowComponent-Cv_SURLH.js";
12
12
  const f = "flow--text-area", x = {
13
13
  textArea: f
14
14
  }, P = c("TextArea", (t) => {
package/dist/TextField.js CHANGED
@@ -2,13 +2,13 @@
2
2
  /* */
3
3
  import e from "react";
4
4
  import * as s from "react-aria-components";
5
- import { T as a } from "./TextFieldBase-C7g5i_rC.js";
5
+ import { T as a } from "./TextFieldBase-B6lQlCmE.js";
6
6
  import { C as n } from "./ClearPropsContext-CeCMjUK9.js";
7
7
  import "./propsContext-CauylOgH.js";
8
8
  import "@react-aria/utils";
9
9
  import "remeda";
10
10
  import "dot-prop";
11
- import { f as p } from "./flowComponent-Dha_9C4F.js";
11
+ import { f as p } from "./flowComponent-Cv_SURLH.js";
12
12
  const c = "flow--text-field", f = {
13
13
  textField: c
14
14
  }, w = p("TextField", (t) => {
@@ -5,11 +5,11 @@ import * as n from "react-aria-components";
5
5
  import { s as e } from "./FormField.module-DHK6nIcD.js";
6
6
  import p from "clsx";
7
7
  import { C as d } from "./ClearPropsContext-CeCMjUK9.js";
8
- import { P as f } from "./PropsContextProvider-DZvwqHLP.js";
8
+ import { P as f } from "./PropsContextProvider-ChpH8eF2.js";
9
9
  import "@react-aria/utils";
10
10
  import "./propsContext-CauylOgH.js";
11
11
  import "remeda";
12
- import { F as E } from "./FieldError--Qpixa12.js";
12
+ import { F as E } from "./FieldError-Bl_SXH5M.js";
13
13
  const g = c(
14
14
  (o, F) => {
15
15
  const { children: t, className: s, input: a, ...i } = o, l = p(e.formField, s), m = {
@@ -0,0 +1,58 @@
1
+ "use client"
2
+ /* */
3
+ var u = Object.defineProperty;
4
+ var m = (e, t, o) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
5
+ var a = (e, t, o) => (m(e, typeof t != "symbol" ? t + "" : t, o), o);
6
+ import { useRef as C, createContext as f, useMemo as d, useContext as p } from "react";
7
+ import { O as i, u as l } from "./index-BlZLqtIV.js";
8
+ import { makeObservable as v, observable as x, action as w } from "mobx";
9
+ import { u as b } from "./useSelector-DpU7_HMO.js";
10
+ class r {
11
+ constructor() {
12
+ a(this, "state", "isIdle");
13
+ v(this, {
14
+ state: x,
15
+ updateState: w
16
+ });
17
+ }
18
+ static useNew() {
19
+ return C(new r()).current;
20
+ }
21
+ updateState(t) {
22
+ this.state = t;
23
+ }
24
+ useState() {
25
+ return b(() => this.state, [this]);
26
+ }
27
+ }
28
+ const c = f({
29
+ actionProps: {},
30
+ state: new r(),
31
+ overlayController: new i(),
32
+ confirmationModalController: new i(),
33
+ needsConfirmation: !1
34
+ }), M = c.Provider, h = () => p(c), N = (e) => {
35
+ const t = h(), o = l(), n = r.useNew(), s = l();
36
+ return d(
37
+ () => ({
38
+ actionProps: e,
39
+ parentContext: t,
40
+ overlayController: o,
41
+ state: n,
42
+ confirmationModalController: s,
43
+ needsConfirmation: !1
44
+ }),
45
+ [
46
+ e,
47
+ t,
48
+ o,
49
+ n,
50
+ s
51
+ ]
52
+ );
53
+ };
54
+ export {
55
+ M as A,
56
+ N as a,
57
+ h as u
58
+ };
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { O as l, u as o } from "./index-0qLHBjoi.js";
3
+ import { O as l, u as o } from "./index-BlZLqtIV.js";
4
4
  export {
5
5
  l as OverlayController,
6
6
  o as useOverlayController
@@ -1,14 +1,14 @@
1
1
  "use client"
2
2
  /* */
3
- import u, { isValidElement as l, forwardRef as C } from "react";
3
+ import u, { isValidElement as d, forwardRef as C } from "react";
4
4
  import { C as f } from "./ClearPropsContext-CeCMjUK9.js";
5
5
  import { u as x } from "./propsContext-CauylOgH.js";
6
6
  import { mergeProps as P } from "@react-aria/utils";
7
7
  import { pickBy as y, omit as h } from "remeda";
8
8
  import "dot-prop";
9
- import { P as b } from "./PropsContextProvider-DZvwqHLP.js";
10
- import { TunnelEntry as E } from "@mittwald/react-tunnel";
11
- const k = {
9
+ import { P as E } from "./PropsContextProvider-ChpH8eF2.js";
10
+ import { TunnelEntry as b } from "@mittwald/react-tunnel";
11
+ const F = {
12
12
  Action: !0,
13
13
  Avatar: !0,
14
14
  Button: !0,
@@ -47,71 +47,72 @@ const k = {
47
47
  TextArea: !0,
48
48
  TextField: !0
49
49
  }, c = Object.keys(
50
- k
50
+ F
51
51
  );
52
- function w(t) {
52
+ function k(t) {
53
53
  return !!t && typeof t == "object" && "__dynamicProp" in t;
54
54
  }
55
55
  function m(t) {
56
56
  return typeof t == "string" && c.includes(t);
57
57
  }
58
- function F(t) {
58
+ function w(t) {
59
59
  return !m(t);
60
60
  }
61
- const v = (t, r) => {
61
+ const R = (t, r) => {
62
62
  const e = {};
63
- for (const o in t)
64
- if (F(o)) {
65
- const n = t[o];
66
- w(n) && (e[o] = n.__dynamicProp(r));
63
+ for (const n in t)
64
+ if (w(n)) {
65
+ const o = t[n];
66
+ k(o) && (e[n] = o.__dynamicProp(r));
67
67
  }
68
68
  return e;
69
69
  };
70
- function B(t) {
70
+ function g(t) {
71
71
  return !!t && typeof t == "object" && "children" in t && !!t.children;
72
72
  }
73
- const T = (t) => y(t, (r, e) => m(e)), g = (t, r) => {
74
- if (!B(r))
73
+ const v = (t) => y(t, (r, e) => m(e)), B = (t, r) => {
74
+ if (!g(r))
75
75
  return {};
76
76
  const e = r.children;
77
- if (!Array.isArray(e) && !l(e))
77
+ if (!Array.isArray(e) && !d(e))
78
78
  return {};
79
- const o = T(t);
80
- return Object.keys(o).length === 0 ? {} : {
81
- children: /* @__PURE__ */ u.createElement(b, { props: o, mergeInParentContext: !0 }, r.children)
79
+ const n = v(t);
80
+ return Object.keys(n).length === 0 ? {} : {
81
+ children: /* @__PURE__ */ u.createElement(E, { props: n, mergeInParentContext: !0 }, r.children)
82
82
  };
83
- }, A = (t, r) => {
84
- const e = x()[t], o = e ? v(e, r) : void 0, n = e ? g(e, r) : void 0;
83
+ }, T = (t, r) => {
84
+ const e = x()[t], n = e ? R(e, r) : void 0, o = e ? B(e, r) : void 0;
85
85
  return P(
86
86
  e && h(e, c),
87
87
  r,
88
- o,
89
- n
88
+ n,
89
+ o
90
90
  );
91
- };
91
+ }, A = (t) => /* @__PURE__ */ u.createElement(u.Fragment, null, t.children());
92
92
  function I(t, r) {
93
- return C((e, o) => {
94
- const { render: n, tunnelId: s, ...d } = A(
93
+ return C((e, n) => {
94
+ const { render: o, tunnelId: s, ...a } = T(
95
95
  t,
96
96
  e
97
97
  ), p = {
98
- refProp: o,
99
- ...d
98
+ refProp: n,
99
+ ...a
100
100
  };
101
101
  let i = /* @__PURE__ */ u.createElement(r, { ...p });
102
- if (n) {
103
- const a = I(
102
+ if (o) {
103
+ const l = I(
104
104
  t,
105
105
  r
106
106
  );
107
- i = /* @__PURE__ */ u.createElement(f, null, n(
108
- a,
107
+ i = /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(A, null, () => o(
108
+ l,
109
109
  p
110
- ));
110
+ )));
111
111
  }
112
- return s && (i = /* @__PURE__ */ u.createElement(E, { id: s }, i)), i;
112
+ return s && (i = /* @__PURE__ */ u.createElement(b, { id: s }, i)), i;
113
113
  });
114
114
  }
115
115
  export {
116
+ A as R,
116
117
  I as f
117
118
  };
package/dist/hooks.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import "mobx";
4
4
  import "react";
5
- import { u as l } from "./index-0qLHBjoi.js";
5
+ import { u as l } from "./index-BlZLqtIV.js";
6
6
  export {
7
7
  l as useOverlayController
8
8
  };
@@ -1,16 +1,16 @@
1
1
  "use client"
2
2
  /* */
3
- var a = Object.defineProperty;
4
- var p = (t, e, o) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
5
- var i = (t, e, o) => (p(t, typeof e != "symbol" ? e + "" : e, o), o);
6
- import { makeObservable as O, observable as c, action as s } from "mobx";
7
- import { useState as m, createContext as C, useContext as b } from "react";
3
+ var p = Object.defineProperty;
4
+ var a = (t, e, o) => e in t ? p(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
5
+ var i = (t, e, o) => (a(t, typeof e != "symbol" ? e + "" : e, o), o);
6
+ import { makeObservable as c, observable as O, action as s } from "mobx";
7
+ import { useRef as m, createContext as C, useContext as b } from "react";
8
8
  import { u as d } from "./useSelector-DpU7_HMO.js";
9
9
  class n {
10
10
  constructor(e = !1) {
11
11
  i(this, "isOpen");
12
- O(this, {
13
- isOpen: c,
12
+ c(this, {
13
+ isOpen: O,
14
14
  open: s.bound,
15
15
  close: s.bound,
16
16
  toggle: s.bound,
@@ -18,7 +18,7 @@ class n {
18
18
  }), this.isOpen = e;
19
19
  }
20
20
  static useNew(e) {
21
- return m(new n(e))[0];
21
+ return m(new n(e)).current;
22
22
  }
23
23
  open() {
24
24
  this.isOpen = !0;
@@ -3,11 +3,11 @@
3
3
  import r, { createContext as x, useContext as F } from "react";
4
4
  import { Controller as h } from "react-hook-form";
5
5
  import "./propsContext-CauylOgH.js";
6
- import { P as v } from "./PropsContextProvider-DZvwqHLP.js";
6
+ import { P as v } from "./PropsContextProvider-ChpH8eF2.js";
7
7
  import "@react-aria/utils";
8
8
  import "remeda";
9
9
  import { d as E } from "./dynamic-ClpUSmEt.js";
10
- import { F as P } from "./FieldError--Qpixa12.js";
10
+ import { F as P } from "./FieldError-Bl_SXH5M.js";
11
11
  const d = x({}), b = d.Provider, g = () => F(d);
12
12
  function k(o) {
13
13
  var l;