@mittwald/flow-react-components 0.1.0-alpha.89 → 0.1.0-alpha.90

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 (33) hide show
  1. package/dist/Action-CPBrLRz3.js +192 -0
  2. package/dist/Action.js +1 -1
  3. package/dist/CopyButton.js +1 -1
  4. package/dist/Icons.js +79 -78
  5. package/dist/{Link-0b3GsopL.js → Link-CRT1IZf5.js} +1 -1
  6. package/dist/Link.js +1 -1
  7. package/dist/List.js +1 -1
  8. package/dist/Modal.js +23 -50
  9. package/dist/OffCanvas.js +42 -0
  10. package/dist/Overlay-ofdfFqqi.js +28 -0
  11. package/dist/OverlayTrigger.js +22 -0
  12. package/dist/Tabs.js +9 -8
  13. package/dist/context-DJetA3qV.js +8 -0
  14. package/dist/controller.js +1 -1
  15. package/dist/hooks.js +1 -1
  16. package/dist/index-0qLHBjoi.js +49 -0
  17. package/dist/styles.css +1 -1
  18. package/dist/types/components/Action/Action.d.ts +3 -3
  19. package/dist/types/components/Icon/components/icons/IconMenu.d.ts +5 -0
  20. package/dist/types/components/Icon/components/icons/index.d.ts +1 -0
  21. package/dist/types/components/Modal/Modal.d.ts +0 -1
  22. package/dist/types/components/Modal/index.d.ts +0 -1
  23. package/dist/types/components/OffCanvas/OffCanvas.d.ts +9 -0
  24. package/dist/types/components/OffCanvas/index.d.ts +4 -0
  25. package/dist/types/components/OffCanvas/stories/Default.stories.d.ts +7 -0
  26. package/dist/types/components/Overlay/Overlay.d.ts +9 -0
  27. package/dist/types/components/{Modal/components/ModalTrigger.d.ts → Overlay/components/OverlayTrigger/OverlayTrigger.d.ts} +1 -1
  28. package/dist/types/components/Overlay/components/OverlayTrigger/index.d.ts +4 -0
  29. package/dist/types/components/Overlay/index.d.ts +5 -0
  30. package/dist/types/components/Tabs/index.d.ts +4 -1
  31. package/package.json +12 -4
  32. package/dist/Action-CC0yBUVp.js +0 -188
  33. package/dist/index-D8fboLvc.js +0 -49
@@ -0,0 +1,192 @@
1
+ "use client"
2
+ /* */
3
+ var S = Object.defineProperty;
4
+ var y = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
5
+ var f = (t, e, n) => (y(t, typeof e != "symbol" ? e + "" : e, n), n);
6
+ import a, { useRef as C, useState as E, useEffect as D } from "react";
7
+ import "./propsContext-CauylOgH.js";
8
+ import { P as g } from "./PropsContextProvider-DZvwqHLP.js";
9
+ import "@react-aria/utils";
10
+ import "remeda";
11
+ import { u as P, O as w } from "./index-0qLHBjoi.js";
12
+ import { u as x, A as O } from "./context-DJetA3qV.js";
13
+ import { TunnelProvider as M, TunnelExit as R } from "@mittwald/react-tunnel";
14
+ import { makeObservable as B, observable as I, action as T } from "mobx";
15
+ import { u as N } from "./useSelector-DpU7_HMO.js";
16
+ const k = (t) => (...e) => {
17
+ const n = [...t], s = n.shift();
18
+ if (s) {
19
+ const o = s(...e), r = () => n.length === 0 ? o : k(n)(...e);
20
+ return o instanceof Promise ? o.then(r) : r();
21
+ }
22
+ }, b = "flowBreakActionMarker";
23
+ function $(t) {
24
+ return !!t && t instanceof Error && t.message === b;
25
+ }
26
+ const G = () => {
27
+ throw new Error(b);
28
+ }, p = {
29
+ pending: 1e3,
30
+ succeeded: 1500,
31
+ failed: 2e3
32
+ };
33
+ class H {
34
+ constructor(e, n, s = {}) {
35
+ f(this, "options");
36
+ f(this, "state");
37
+ f(this, "args");
38
+ f(this, "isDone", !1);
39
+ f(this, "error");
40
+ const {
41
+ resetAfterDone: o = !0,
42
+ onFeedbackDone: r = () => {
43
+ },
44
+ showFeedback: l = !1
45
+ } = s;
46
+ this.state = e, this.args = n, this.options = { resetAfterDone: o, onFeedbackDone: r, showFeedback: l };
47
+ }
48
+ onAsyncStart() {
49
+ this.options.showFeedback = !0, this.state.updateState("isExecuting"), setTimeout(() => this.startPending(), p.pending);
50
+ }
51
+ onSucceeded() {
52
+ this.onDone();
53
+ }
54
+ onFailed(e) {
55
+ this.error = e ?? new Error("Unknown error"), console.error(e), this.onDone();
56
+ }
57
+ startFailedFeedback() {
58
+ $(this.error) ? this.resetAfterDone() : (this.state.updateState("isFailed"), setTimeout(() => this.resetAfterDone(), p.failed));
59
+ }
60
+ startSucceededFeedback() {
61
+ this.state.updateState("isSucceeded"), setTimeout(() => this.resetAfterDone(), p.succeeded);
62
+ }
63
+ resetAfterDone() {
64
+ this.options.resetAfterDone && this.state.updateState("isIdle"), this.error || this.options.onFeedbackDone(...this.args);
65
+ }
66
+ onDone() {
67
+ this.isDone = !0, this.options.showFeedback ? this.error ? this.startFailedFeedback() : this.startSucceededFeedback() : this.resetAfterDone();
68
+ }
69
+ startPending() {
70
+ this.isDone || this.state.updateState("isPending");
71
+ }
72
+ }
73
+ class v {
74
+ constructor() {
75
+ f(this, "state", "isIdle");
76
+ B(this, {
77
+ state: I,
78
+ updateState: T
79
+ });
80
+ }
81
+ static useNew() {
82
+ return C(new v()).current;
83
+ }
84
+ updateState(e) {
85
+ this.state = e;
86
+ }
87
+ useState() {
88
+ return N(() => this.state, [this]);
89
+ }
90
+ }
91
+ const L = () => {
92
+ }, U = (t) => {
93
+ const {
94
+ action: e,
95
+ toggleOverlay: n,
96
+ openOverlay: s,
97
+ closeOverlay: o,
98
+ break: r
99
+ } = t, l = P(), i = (h) => typeof h == "boolean" ? l : h;
100
+ return e || (n ? i(n).toggle : s ? i(s).open : o ? i(o).close : r ? G : L);
101
+ }, j = (t, e = {}) => {
102
+ const {
103
+ onSync: n = () => {
104
+ },
105
+ onAsync: s = () => {
106
+ },
107
+ then: o = () => {
108
+ },
109
+ catch: r = () => {
110
+ },
111
+ finally: l = () => {
112
+ }
113
+ } = e;
114
+ try {
115
+ const i = t();
116
+ return i instanceof Promise ? (s(), i.then(o).catch(r).finally(l)) : (n(), o(i), l(), i);
117
+ } catch (i) {
118
+ n(), r(i), l();
119
+ }
120
+ }, q = (t) => {
121
+ const { isConfirmationAction: e, showFeedback: n } = t, s = U(t), o = x(), r = v.useNew(), l = !e, i = e ? void 0 : o, h = e ? o : void 0, u = k([s, i]);
122
+ return {
123
+ callAction: (...c) => {
124
+ const A = new H(r, c, {
125
+ onFeedbackDone: h,
126
+ resetAfterDone: l,
127
+ showFeedback: n
128
+ });
129
+ return j(u, {
130
+ onAsync: () => A.onAsyncStart(),
131
+ then: () => A.onSucceeded(),
132
+ catch: (F) => A.onFailed(F)
133
+ });
134
+ },
135
+ state: r
136
+ };
137
+ }, m = (t) => {
138
+ const [e, n] = E(!1), s = w.useNew(), o = q(t), r = e ? s.open : o.callAction, h = {
139
+ Link: {
140
+ onPress: r
141
+ },
142
+ Button: {
143
+ onPress: r,
144
+ render: (u, d) => {
145
+ const c = o.state.useState();
146
+ return /* @__PURE__ */ a.createElement(
147
+ u,
148
+ {
149
+ ...d,
150
+ isPending: c === "isPending" ? !0 : void 0,
151
+ "aria-disabled": c !== "isIdle" ? !0 : void 0,
152
+ isSucceeded: c === "isSucceeded" ? !0 : void 0,
153
+ isFailed: c === "isFailed" ? !0 : void 0
154
+ }
155
+ );
156
+ }
157
+ },
158
+ Modal: {
159
+ tunnelId: "outsideActionProvider",
160
+ render: (u, d) => {
161
+ const c = d.slot === "actionConfirm";
162
+ return D(() => {
163
+ if (c)
164
+ return n(!0), () => {
165
+ n(!1);
166
+ };
167
+ }, [c]), c ? /* @__PURE__ */ a.createElement(u, { controller: s, ...d }) : /* @__PURE__ */ a.createElement(u, { ...d });
168
+ },
169
+ ButtonGroup: {
170
+ Button: {
171
+ render: (u, d) => {
172
+ const { variant: c } = d;
173
+ return c === "secondary" ? /* @__PURE__ */ a.createElement(m, { break: !0 }, /* @__PURE__ */ a.createElement(m, { closeOverlay: !0 }, /* @__PURE__ */ a.createElement(u, { ...d }))) : /* @__PURE__ */ a.createElement(m, { closeOverlay: !0 }, /* @__PURE__ */ a.createElement(m, { ...t, isConfirmationAction: !0 }, /* @__PURE__ */ a.createElement(u, { ...d })));
174
+ }
175
+ }
176
+ }
177
+ }
178
+ };
179
+ return /* @__PURE__ */ a.createElement(M, null, /* @__PURE__ */ a.createElement(
180
+ g,
181
+ {
182
+ props: h,
183
+ dependencies: [e],
184
+ mergeInParentContext: !0
185
+ },
186
+ /* @__PURE__ */ a.createElement(O, { value: r }, t.children),
187
+ /* @__PURE__ */ a.createElement(R, { id: "outsideActionProvider" })
188
+ ));
189
+ };
190
+ export {
191
+ m as A
192
+ };
package/dist/Action.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { A as t } from "./Action-CC0yBUVp.js";
3
+ import { A as t } from "./Action-CPBrLRz3.js";
4
4
  export {
5
5
  t as Action,
6
6
  t as default
@@ -15,7 +15,7 @@ import "@react-aria/utils";
15
15
  import "remeda";
16
16
  import "dot-prop";
17
17
  import { f as C } from "./flowComponent-C4FfRbD8.js";
18
- import { A as E } from "./Action-CC0yBUVp.js";
18
+ import { A as E } from "./Action-CPBrLRz3.js";
19
19
  const B = {
20
20
  "de-DE": {
21
21
  "copyButton.copy": "Kopieren"
package/dist/Icons.js CHANGED
@@ -1,23 +1,23 @@
1
1
  "use client"
2
2
  /* */
3
3
  import n from "react";
4
- import { IconAppWindow as o, IconArrowLeft as l, IconClock as c, IconChevronLeft as a, IconCode as r, IconCalendarCheck as I, IconBuilding as m, IconLayoutBoard as s, IconDatabase as E, IconCalendar as u, IconTrash as i, IconWorld as p, IconMail as h, IconExternalLink as d, IconFilter as f, IconEyeCancel as C, IconHome as x, IconInbox as S, IconList as v, IconPower as b, IconUsersGroup as g, IconBell as k, IconArchive as L, IconDice3 as w, IconDeviceFloppy as D, IconSearch as $, IconListSearch as y, IconServer as F, IconSettings as M, IconShare3 as B, IconEye as H, IconAdjustmentsHorizontal as P, IconShield as A, IconShieldCheckFilled as R, IconDoor as V, IconSubtask as O, IconHeadset as T, IconFileX as j, IconLayoutGrid as z } from "@tabler/icons-react";
4
+ import { IconAppWindow as o, IconArrowLeft as l, IconClock as c, IconChevronLeft as a, IconCode as r, IconCalendarCheck as I, IconBuilding as m, IconLayoutBoard as s, IconDatabase as E, IconCalendar as u, IconTrash as i, IconWorld as p, IconMail as h, IconExternalLink as d, IconFilter as f, IconEyeCancel as C, IconHome as x, IconInbox as S, IconList as v, IconPower as b, IconUsersGroup as g, IconMenu2 as k, IconBell as L, IconArchive as w, IconDice3 as D, IconDeviceFloppy as $, IconSearch as M, IconListSearch as y, IconServer as F, IconSettings as B, IconShare3 as H, IconEye as P, IconAdjustmentsHorizontal as A, IconShield as R, IconShieldCheckFilled as V, IconDoor as O, IconSubtask as T, IconHeadset as j, IconFileX as z, IconLayoutGrid as W } from "@tabler/icons-react";
5
5
  import { I as t } from "./Icon-DpcNiaNb.js";
6
- import { I as Pe } from "./IconCheck-DDbrMURX.js";
7
- import { I as Re, a as Ve } from "./IconCheckboxEmpty-0Lz4T3u4.js";
8
- import { I as Te } from "./IconCheckboxIndeterminate-p6GmeDnv.js";
9
- import { I as ze } from "./IconChevronDown-CbK0gKMB.js";
10
- import { I as Ge } from "./IconChevronRight-CJv9kuRZ.js";
11
- import { a as Ne, I as Xe, b as qe } from "./IconPlus-DS099is1.js";
12
- import { I as Ke } from "./IconClose-CwV3QUi2.js";
13
- import { I as Ye } from "./IconContextMenu-DD5RGOEW.js";
14
- import { I as _e } from "./IconCopy-BOSbNCO3.js";
15
- import { I as nn } from "./IconDanger-BCQl3s0h.js";
16
- import { a as cn, I as on } from "./IconSucceeded-Cje6NH8R.js";
17
- import { I as an, a as rn, b as In } from "./IconWarning-3thkYnBz.js";
18
- import { I as sn } from "./IconPending-i0n-9-8z.js";
19
- import { a as un, I as pn } from "./IconRadioOn-D5xbBFYA.js";
20
- const N = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(o, null)), X = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(l, null)), q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), J = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(a, null)), K = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(r, null)), Q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(I, null)), Y = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(m, null)), Z = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(s, null)), _ = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(E, null)), ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(u, null)), ne = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(i, null)), te = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(p, null)), ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(h, null)), oe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(d, null)), le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(f, null)), ae = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(C, null)), re = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(x, null)), Ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(S, null)), me = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(v, null)), se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(b, null)), Ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(g, null)), ue = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(k, null)), ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(L, null)), pe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(w, null)), he = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(D, null)), de = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement($, null)), fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(y, null)), Ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(F, null)), xe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(M, null)), Se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(B, null)), ve = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(H, null)), be = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(P, null)), ge = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(A, null)), ke = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(R, null)), Le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(V, null)), we = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(O, null)), De = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(T, null)), $e = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(j, null)), ye = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(z, null)), Fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), Me = (e) => /* @__PURE__ */ n.createElement(
6
+ import { I as Re } from "./IconCheck-DDbrMURX.js";
7
+ import { I as Oe, a as Te } from "./IconCheckboxEmpty-0Lz4T3u4.js";
8
+ import { I as ze } from "./IconCheckboxIndeterminate-p6GmeDnv.js";
9
+ import { I as Ge } from "./IconChevronDown-CbK0gKMB.js";
10
+ import { I as Ne } from "./IconChevronRight-CJv9kuRZ.js";
11
+ import { a as qe, I as Je, b as Ke } from "./IconPlus-DS099is1.js";
12
+ import { I as Ye } from "./IconClose-CwV3QUi2.js";
13
+ import { I as _e } from "./IconContextMenu-DD5RGOEW.js";
14
+ import { I as nn } from "./IconCopy-BOSbNCO3.js";
15
+ import { I as cn } from "./IconDanger-BCQl3s0h.js";
16
+ import { a as ln, I as an } from "./IconSucceeded-Cje6NH8R.js";
17
+ import { I as In, a as mn, b as sn } from "./IconWarning-3thkYnBz.js";
18
+ import { I as un } from "./IconPending-i0n-9-8z.js";
19
+ import { a as hn, I as dn } from "./IconRadioOn-D5xbBFYA.js";
20
+ const X = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(o, null)), q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(l, null)), J = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), K = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(a, null)), Q = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(r, null)), Y = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(I, null)), Z = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(m, null)), _ = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(s, null)), ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(E, null)), ne = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(u, null)), te = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(i, null)), ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(p, null)), oe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(h, null)), le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(d, null)), ae = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(f, null)), re = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(C, null)), Ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(x, null)), me = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(S, null)), se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(v, null)), Ee = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(b, null)), ue = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(g, null)), ie = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(k, null)), pe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(L, null)), he = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(w, null)), de = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(D, null)), fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement($, null)), Ce = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(M, null)), xe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(y, null)), Se = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(F, null)), ve = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(B, null)), be = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(H, null)), ge = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(P, null)), ke = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(A, null)), Le = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(R, null)), we = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(V, null)), De = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(O, null)), $e = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(T, null)), Me = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(j, null)), ye = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(z, null)), Fe = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(W, null)), Be = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.createElement(c, null)), He = (e) => /* @__PURE__ */ n.createElement(
21
21
  t,
22
22
  {
23
23
  ...e
@@ -29,66 +29,67 @@ const N = (e) => /* @__PURE__ */ n.createElement(t, { ...e }, /* @__PURE__ */ n.
29
29
  `
30
30
  );
31
31
  export {
32
- N as IconApp,
33
- X as IconBackLink,
34
- q as IconBackup,
35
- Pe as IconCheck,
36
- Re as IconCheckboxChecked,
37
- Ve as IconCheckboxEmpty,
38
- Te as IconCheckboxIndeterminate,
39
- ze as IconChevronDown,
40
- J as IconChevronLeft,
41
- Ge as IconChevronRight,
42
- Ne as IconChevronUp,
43
- Ke as IconClose,
44
- K as IconCode,
45
- Ye as IconContextMenu,
46
- _e as IconCopy,
47
- Q as IconCronjob,
48
- Y as IconCustomer,
49
- nn as IconDanger,
50
- Z as IconDashboard,
51
- _ as IconDatabase,
52
- ee as IconDate,
53
- ne as IconDelete,
54
- te as IconDomain,
55
- ce as IconEmail,
56
- oe as IconExternalLink,
57
- cn as IconFailed,
58
- le as IconFilter,
59
- ae as IconHide,
60
- re as IconHome,
61
- Ie as IconInbox,
62
- an as IconInfo,
63
- me as IconListView,
64
- se as IconLogout,
65
- Ee as IconMember,
66
- Xe as IconMinus,
67
- Me as IconMittwald,
68
- ue as IconNotification,
69
- sn as IconPending,
70
- qe as IconPlus,
71
- ie as IconProject,
72
- un as IconRadioOff,
73
- pn as IconRadioOn,
74
- pe as IconRandom,
75
- he as IconSave,
76
- de as IconSearch,
77
- fe as IconSearchEngine,
78
- Ce as IconServer,
79
- xe as IconSettings,
80
- Se as IconShare,
81
- ve as IconShow,
82
- be as IconSorting,
83
- ge as IconSpamProtectionOff,
84
- ke as IconSpamProtectionOn,
85
- Le as IconSshSftp,
86
- we as IconSubdomain,
87
- on as IconSucceeded,
88
- rn as IconSuccess,
89
- De as IconSupport,
90
- $e as IconTerminate,
91
- ye as IconTileView,
92
- Fe as IconTime,
93
- In as IconWarning
32
+ X as IconApp,
33
+ q as IconBackLink,
34
+ J as IconBackup,
35
+ Re as IconCheck,
36
+ Oe as IconCheckboxChecked,
37
+ Te as IconCheckboxEmpty,
38
+ ze as IconCheckboxIndeterminate,
39
+ Ge as IconChevronDown,
40
+ K as IconChevronLeft,
41
+ Ne as IconChevronRight,
42
+ qe as IconChevronUp,
43
+ Ye as IconClose,
44
+ Q as IconCode,
45
+ _e as IconContextMenu,
46
+ nn as IconCopy,
47
+ Y as IconCronjob,
48
+ Z as IconCustomer,
49
+ cn as IconDanger,
50
+ _ as IconDashboard,
51
+ ee as IconDatabase,
52
+ ne as IconDate,
53
+ te as IconDelete,
54
+ ce as IconDomain,
55
+ oe as IconEmail,
56
+ le as IconExternalLink,
57
+ ln as IconFailed,
58
+ ae as IconFilter,
59
+ re as IconHide,
60
+ Ie as IconHome,
61
+ me as IconInbox,
62
+ In as IconInfo,
63
+ se as IconListView,
64
+ Ee as IconLogout,
65
+ ue as IconMember,
66
+ ie as IconMenu,
67
+ Je as IconMinus,
68
+ He as IconMittwald,
69
+ pe as IconNotification,
70
+ un as IconPending,
71
+ Ke as IconPlus,
72
+ he as IconProject,
73
+ hn as IconRadioOff,
74
+ dn as IconRadioOn,
75
+ de as IconRandom,
76
+ fe as IconSave,
77
+ Ce as IconSearch,
78
+ xe as IconSearchEngine,
79
+ Se as IconServer,
80
+ ve as IconSettings,
81
+ be as IconShare,
82
+ ge as IconShow,
83
+ ke as IconSorting,
84
+ Le as IconSpamProtectionOff,
85
+ we as IconSpamProtectionOn,
86
+ De as IconSshSftp,
87
+ $e as IconSubdomain,
88
+ an as IconSucceeded,
89
+ mn as IconSuccess,
90
+ Me as IconSupport,
91
+ ye as IconTerminate,
92
+ Fe as IconTileView,
93
+ Be as IconTime,
94
+ sn as IconWarning
94
95
  };
@@ -35,9 +35,9 @@ const E = "flow--link", F = "flow--link--inline", g = "flow--link--icon", o = {
35
35
  return /* @__PURE__ */ n.createElement(P, null, /* @__PURE__ */ n.createElement(
36
36
  k,
37
37
  {
38
- className: C,
39
38
  ...c,
40
39
  ...u,
40
+ className: C,
41
41
  ref: a
42
42
  },
43
43
  /* @__PURE__ */ n.createElement(d, { props: f }, r)
package/dist/Link.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { L as o } from "./Link-0b3GsopL.js";
3
+ import { L as o } from "./Link-CRT1IZf5.js";
4
4
  export {
5
5
  o as Link,
6
6
  o as default
package/dist/List.js CHANGED
@@ -28,7 +28,7 @@ import "./propsContext-CauylOgH.js";
28
28
  import { P as bt } from "./PropsContextProvider-DZvwqHLP.js";
29
29
  import "@react-aria/utils";
30
30
  import { W as St } from "./Wrap-DGT1h1o3.js";
31
- import { L as yt } from "./Link-0b3GsopL.js";
31
+ import { L as yt } from "./Link-CRT1IZf5.js";
32
32
  import { I as Ct } from "./IconContextMenu-DD5RGOEW.js";
33
33
  import { d as f, a as M } from "./deepFindOfType-6pG0fH7S.js";
34
34
  import { I as vt } from "./InlineCode-BV2i5uN0.js";
package/dist/Modal.js CHANGED
@@ -1,47 +1,34 @@
1
1
  "use client"
2
2
  /* */
3
- import * as n from "react-aria-components";
4
3
  import o from "react";
5
- import g from "clsx";
4
+ import d from "clsx";
6
5
  import "./propsContext-CauylOgH.js";
7
- import { P as E } from "./PropsContextProvider-DZvwqHLP.js";
6
+ import { P as f } from "./PropsContextProvider-DZvwqHLP.js";
8
7
  import "@react-aria/utils";
9
8
  import "remeda";
10
- import { TunnelProvider as y, TunnelExit as z } from "@mittwald/react-tunnel";
11
- import { u as r, a as s } from "./index-D8fboLvc.js";
12
- import { f as x } from "./flowComponent-C4FfRbD8.js";
13
- import { A as O } from "./Action-CC0yBUVp.js";
9
+ import { TunnelProvider as p, TunnelExit as c } from "@mittwald/react-tunnel";
10
+ import { f as u } from "./flowComponent-C4FfRbD8.js";
11
+ import { O as w } from "./Overlay-ofdfFqqi.js";
14
12
  import "mobx";
15
- const b = "flow--modal--overlay", M = "flow--modal", N = "flow--modal--dialog", P = "flow--modal--button-group", F = "flow--modal--content", G = "flow--modal--off-canvas", e = {
16
- overlay: b,
17
- "modal-fade": "flow--modal--modal-fade",
18
- modal: M,
13
+ import "./index-0qLHBjoi.js";
14
+ import "./context-DJetA3qV.js";
15
+ const v = "flow--modal", z = "flow--modal--button-group", C = "flow--modal--content", b = "flow--modal--off-canvas", t = {
16
+ modal: v,
19
17
  "modal-zoom": "flow--modal--modal-zoom",
20
- dialog: N,
21
- buttonGroup: P,
22
- content: F,
18
+ buttonGroup: z,
19
+ content: C,
23
20
  "size-s": "flow--modal--size-s",
24
21
  "size-m": "flow--modal--size-m",
25
22
  "size-l": "flow--modal--size-l",
26
- offCanvas: G,
23
+ offCanvas: b,
27
24
  "modal-slide-in": "flow--modal--modal-slide-in",
28
25
  "modal-slide-up": "flow--modal--modal-slide-up"
29
- }, q = x("Modal", (t) => {
30
- const {
31
- size: l = "s",
32
- offCanvas: m,
33
- controller: d,
34
- defaultOpen: i,
35
- children: c,
36
- ...f
37
- } = t, p = r({
38
- reuseControllerFromContext: !0,
39
- defaultOpen: i
40
- }), a = d ?? p, u = a.useIsOpen(), v = g(
41
- e.modal,
42
- e[`size-${l}`],
43
- m && e.offCanvas
44
- ), C = {
26
+ }, F = u("Modal", (e) => {
27
+ const { size: l = "s", offCanvas: n, controller: a, children: m, ...s } = e, r = d(
28
+ t.modal,
29
+ t[`size-${l}`],
30
+ n && t.offCanvas
31
+ ), i = {
45
32
  Content: {
46
33
  elementType: o.Fragment
47
34
  },
@@ -50,27 +37,13 @@ const b = "flow--modal--overlay", M = "flow--modal", N = "flow--modal--dialog",
50
37
  slot: "title"
51
38
  },
52
39
  ButtonGroup: {
53
- className: e.buttonGroup,
40
+ className: t.buttonGroup,
54
41
  tunnelId: "buttons"
55
42
  }
56
43
  };
57
- return /* @__PURE__ */ o.createElement(
58
- n.ModalOverlay,
59
- {
60
- className: e.overlay,
61
- ...f,
62
- isDismissable: !0,
63
- isOpen: u,
64
- onOpenChange: (w) => a.setOpen(w)
65
- },
66
- /* @__PURE__ */ o.createElement(n.Modal, { className: v }, /* @__PURE__ */ o.createElement(n.Dialog, { className: e.dialog }, /* @__PURE__ */ o.createElement(s, { value: a }, /* @__PURE__ */ o.createElement(E, { props: C }, /* @__PURE__ */ o.createElement(y, null, /* @__PURE__ */ o.createElement("div", { className: e.content }, c), /* @__PURE__ */ o.createElement(z, { id: "buttons" }))))))
67
- );
68
- }), J = (t) => {
69
- const l = r();
70
- return /* @__PURE__ */ o.createElement(s, { value: l }, /* @__PURE__ */ o.createElement(O, { openModal: l }, t.children));
71
- };
44
+ return /* @__PURE__ */ o.createElement(w, { className: r, controller: a, ...s }, /* @__PURE__ */ o.createElement(f, { props: i }, /* @__PURE__ */ o.createElement(p, null, /* @__PURE__ */ o.createElement("div", { className: t.content }, m), /* @__PURE__ */ o.createElement(c, { id: "buttons" }))));
45
+ });
72
46
  export {
73
- q as Modal,
74
- J as ModalTrigger,
75
- q as default
47
+ F as Modal,
48
+ F as default
76
49
  };
@@ -0,0 +1,42 @@
1
+ "use client"
2
+ /* */
3
+ import o from "react";
4
+ import f from "clsx";
5
+ import { B as c } from "./Button-DJcL25jy.js";
6
+ import "@tabler/icons-react";
7
+ import "./Icon-DpcNiaNb.js";
8
+ import { I as m } from "./IconClose-CwV3QUi2.js";
9
+ import { A as i } from "./Action-CPBrLRz3.js";
10
+ import { O as p } from "./Overlay-ofdfFqqi.js";
11
+ import "mobx";
12
+ import "./index-0qLHBjoi.js";
13
+ import "./propsContext-CauylOgH.js";
14
+ import { P as v } from "./PropsContextProvider-DZvwqHLP.js";
15
+ import "@react-aria/utils";
16
+ import "remeda";
17
+ const u = "flow--off-canvas", d = "flow--off-canvas--close-button", t = {
18
+ offCanvas: u,
19
+ "off-canvas-slide-in": "flow--off-canvas--off-canvas-slide-in",
20
+ "off-canvas-slide-out": "flow--off-canvas--off-canvas-slide-out",
21
+ closeButton: d
22
+ }, z = (s) => {
23
+ const { controller: a, children: e, className: n } = s, r = f(t.offCanvas, n), l = {
24
+ Heading: {
25
+ slot: "title"
26
+ }
27
+ };
28
+ return /* @__PURE__ */ o.createElement(p, { controller: a, className: r }, /* @__PURE__ */ o.createElement(i, { closeOverlay: !0 }, /* @__PURE__ */ o.createElement(
29
+ c,
30
+ {
31
+ style: "plain",
32
+ size: "s",
33
+ variant: "secondary",
34
+ className: t.closeButton
35
+ },
36
+ /* @__PURE__ */ o.createElement(m, null)
37
+ )), /* @__PURE__ */ o.createElement(v, { props: l }, e));
38
+ };
39
+ export {
40
+ z as OffCanvas,
41
+ z as default
42
+ };
@@ -0,0 +1,28 @@
1
+ "use client"
2
+ /* */
3
+ import * as r from "react-aria-components";
4
+ import e from "react";
5
+ import v from "clsx";
6
+ import { u as y, a as p } from "./index-0qLHBjoi.js";
7
+ import "mobx";
8
+ const u = "flow--overlay", O = {
9
+ overlay: u,
10
+ "overlay-fade": "flow--overlay--overlay-fade"
11
+ }, E = (l) => {
12
+ const { controller: t, children: a, className: s } = l, n = y({
13
+ reuseControllerFromContext: !0
14
+ }), o = t ?? n, c = o.useIsOpen(), m = v(O.overlay, s);
15
+ return /* @__PURE__ */ e.createElement(
16
+ r.ModalOverlay,
17
+ {
18
+ className: m,
19
+ isDismissable: !0,
20
+ isOpen: c,
21
+ onOpenChange: (i) => o.setOpen(i)
22
+ },
23
+ /* @__PURE__ */ e.createElement(r.Modal, null, /* @__PURE__ */ e.createElement(r.Dialog, null, /* @__PURE__ */ e.createElement(p, { value: o }, a)))
24
+ );
25
+ };
26
+ export {
27
+ E as O
28
+ };
@@ -0,0 +1,22 @@
1
+ "use client"
2
+ /* */
3
+ import r from "react";
4
+ import "mobx";
5
+ import { u as l, a as m } from "./index-0qLHBjoi.js";
6
+ import { A as p } from "./Action-CPBrLRz3.js";
7
+ import "./propsContext-CauylOgH.js";
8
+ import { P as i } from "./PropsContextProvider-DZvwqHLP.js";
9
+ import "@react-aria/utils";
10
+ import "remeda";
11
+ const x = (t) => {
12
+ const e = l(), o = {
13
+ Button: {
14
+ render: (a, n) => /* @__PURE__ */ r.createElement(p, { openOverlay: e }, /* @__PURE__ */ r.createElement(a, { ...n }))
15
+ }
16
+ };
17
+ return /* @__PURE__ */ r.createElement(m, { value: e }, /* @__PURE__ */ r.createElement(i, { props: o }, t.children));
18
+ };
19
+ export {
20
+ x as OverlayTrigger,
21
+ x as default
22
+ };