@mittwald/flow-react-components 0.1.0-alpha.143 → 0.1.0-alpha.144
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.
- package/dist/{Accordion-QhhkJhTO.js → Accordion-S70SYWwS.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/Action-SzQtjRB5.js +288 -0
- package/dist/Action.js +1 -1
- package/dist/ActionGroup.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-BS1F0zPs.js → Button-Bs4J6es6.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/{Checkbox-CD6v6jqo.js → Checkbox-zg7icNVe.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-I0WYBLv2.js → CheckboxButton-CbLlDhsH.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-DlB-BYko.js → Content-arM8nm8H.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +3 -3
- package/dist/ContextMenuTrigger-CeyI6LLR.js +55 -0
- package/dist/ContextualHelp.js +31 -22
- package/dist/CopyButton.js +5 -5
- package/dist/CounterBadge.js +1 -1
- package/dist/{FieldDescription-Brg52RqE.js → FieldDescription-jVeMFUA3.js} +2 -2
- package/dist/FieldDescription.js +1 -1
- package/dist/{FieldError-D_VRyiJG.js → FieldError-eiEmcuuK.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/{Header-BetbThNR.js → Header-DAaa854y.js} +1 -1
- package/dist/Header.js +1 -1
- package/dist/{Heading-CfQzGjxY.js → Heading-ob3LPLN8.js} +1 -1
- package/dist/Heading.js +1 -1
- package/dist/{Icon-D4bkU_pz.js → Icon-CvhSELPq.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-CMWmQYpS.js → IconCheck-Bx3sPenK.js} +1 -1
- package/dist/{IconCheckboxEmpty-DQLeOSmS.js → IconCheckboxEmpty-CzAVypP3.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-DoNQre-9.js → IconCheckboxIndeterminate-CKiaFL3c.js} +1 -1
- package/dist/{IconChevronDown-HLDPe1kj.js → IconChevronDown-BjpRbARt.js} +1 -1
- package/dist/{IconChevronRight-DmCZeDFh.js → IconChevronRight-BKNi_Ug_.js} +1 -1
- package/dist/{IconChevronUp-CUKpaGeP.js → IconChevronUp-D1VuNDfJ.js} +1 -1
- package/dist/{IconClose-FTrJdf_N.js → IconClose-DVwhXp3R.js} +1 -1
- package/dist/{IconContextMenu-Bmk1_j_0.js → IconContextMenu-B7agrmqo.js} +1 -1
- package/dist/{IconCopy-DH_CNzXF.js → IconCopy-D2sPjH5b.js} +1 -1
- package/dist/{IconDanger-PwvUWqzQ.js → IconDanger-C-H0zYrp.js} +1 -1
- package/dist/{IconInfo-Dzy8qZId.js → IconInfo-DDhh409U.js} +1 -1
- package/dist/{IconPending-BV7TXz8_.js → IconPending-DCgEsvHk.js} +1 -1
- package/dist/{IconPlus-CAQpgAH5.js → IconPlus-Uxpaa4X_.js} +1 -1
- package/dist/{IconRadioOn-BIS8wd64.js → IconRadioOn-8P7k8SVa.js} +1 -1
- package/dist/{IconSearch-DadOOeXe.js → IconSearch-DAPXXri4.js} +1 -1
- package/dist/{IconSucceeded-KKiDIenP.js → IconSucceeded-YONbnUQb.js} +1 -1
- package/dist/{IconWarning-DHYHv9V-.js → IconWarning-zl3wRgfI.js} +1 -1
- package/dist/Icons.js +18 -18
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +2 -2
- package/dist/{Label-5xy35UpX.js → Label-25wKJcpL.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-CcYCy_KC.js → Link-Bal042NI.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +12 -12
- package/dist/{LoadingSpinner-CoSM7GIL.js → LoadingSpinner-bd5Is2yg.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-Dny58Rqq.js → MenuItem-CCEquV9i.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +15 -12
- package/dist/{ModalOverlay-BSu4UEnW.js → ModalOverlay-TJdwgPq0.js} +12 -11
- package/dist/Navigation.js +2 -2
- package/dist/Notification.js +5 -5
- package/dist/NumberField.js +7 -7
- package/dist/OffCanvas.js +40 -26
- package/dist/OverlayContextProvider-BBz2Hde8.js +20 -0
- package/dist/OverlayTrigger-DpALSyS8.js +20 -0
- package/dist/Popover-DrXvRfAg.js +44 -0
- package/dist/RadioGroup.js +5 -5
- package/dist/Section.js +1 -1
- package/dist/Select.js +59 -54
- package/dist/Slider.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-J28z-uQ4.js → StatusIcon-YOrSQbPf.js} +4 -4
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-D6e-S6em.js → Text-BgxTAtk1.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-Ciy6scGP.js → TextFieldBase-HHASqigh.js} +2 -2
- package/dist/context-Bdh6m_8S.js +44 -0
- package/dist/controller.js +4 -3
- package/dist/{flowComponent-CPKCCJEg.js → flowComponent-CWmvUeHT.js} +5 -2
- package/dist/hooks.js +1 -1
- package/dist/react-hook-form.js +2 -2
- package/dist/types/components/Action/models/ActionModel.d.ts +5 -3
- package/dist/types/components/Action/types.d.ts +4 -3
- package/dist/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts +3 -2
- package/dist/types/components/ContextualHelp/ContextualHelp.d.ts +2 -2
- package/dist/types/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.d.ts +3 -2
- package/dist/types/components/Modal/components/ModalTrigger/ModalTrigger.d.ts +3 -2
- package/dist/types/components/OffCanvas/OffCanvas.d.ts +4 -3
- package/dist/types/components/OffCanvas/components/OffCanvasTrigger/OffCanvasTrigger.d.ts +3 -2
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +6 -3
- package/dist/types/components/OverlayTrigger/OverlayTrigger.test.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +1 -1
- package/dist/types/components/Popover/components/PopoverTrigger/PopoverTrigger.d.ts +3 -2
- package/dist/types/components/Select/Select.d.ts +2 -0
- package/dist/types/components/propTypes/index.d.ts +6 -0
- package/dist/types/lib/controller/overlay/OverlayContextProvider.d.ts +10 -0
- package/dist/types/lib/controller/overlay/context.d.ts +49 -2
- package/dist/types/lib/controller/overlay/useOverlayController.d.ts +2 -1
- package/dist/types/lib/propsContext/propsContext.d.ts +6 -0
- package/dist/types/lib/slotContext/slotContext.d.ts +3 -0
- package/dist/useOverlayController-C88Gnnhi.js +10 -0
- package/package.json +4 -4
- package/dist/Action-C4Ncwjzf.js +0 -287
- package/dist/ContextMenuTrigger-DjZx2IST.js +0 -52
- package/dist/OverlayTrigger-DbjMkqKf.js +0 -20
- package/dist/Popover-B-COTLld.js +0 -41
- package/dist/useOverlayController-CGKumeGL.js +0 -49
|
@@ -7,10 +7,10 @@ import { P as N } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import { d } from "./dynamic-ClpUSmEt.js";
|
|
10
|
-
import { B as w } from "./Button-
|
|
10
|
+
import { B as w } from "./Button-Bs4J6es6.js";
|
|
11
11
|
import "@tabler/icons-react";
|
|
12
|
-
import "./Icon-
|
|
13
|
-
import { I as y } from "./IconChevronDown-
|
|
12
|
+
import "./Icon-CvhSELPq.js";
|
|
13
|
+
import { I as y } from "./IconChevronDown-BjpRbARt.js";
|
|
14
14
|
import { TunnelProvider as B, TunnelExit as C } from "@mittwald/react-tunnel";
|
|
15
15
|
import { A as P } from "./Activity-CmfZpgOM.js";
|
|
16
16
|
const A = "flow--accordion", b = "flow--accordion--header", g = "flow--accordion--header-button", D = "flow--accordion--content", T = "flow--accordion--content-inner", H = "flow--accordion--chevron", L = "flow--accordion--expanded", n = {
|
package/dist/Accordion.js
CHANGED
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
var k = Object.defineProperty;
|
|
4
|
+
var M = (n, t, e) => t in n ? k(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
5
|
+
var r = (n, t, e) => (M(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
6
|
+
import g, { createContext as O, useRef as I, useContext as w } from "react";
|
|
7
|
+
import { u as E, O as D } from "./context-Bdh6m_8S.js";
|
|
8
|
+
import T from "invariant";
|
|
9
|
+
import { makeObservable as N, observable as R, action as V, computed as $ } from "mobx";
|
|
10
|
+
import { u as b } from "./useSelector-DpU7_HMO.js";
|
|
11
|
+
import { a as G, g as L, u as U } from "./getActionGroupSlot-Do-bk4GU.js";
|
|
12
|
+
import "./propsContext-DzAKlmhS.js";
|
|
13
|
+
import { P as j } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
14
|
+
import "@react-aria/utils";
|
|
15
|
+
import "remeda";
|
|
16
|
+
import { d as l } from "./dynamic-ClpUSmEt.js";
|
|
17
|
+
import { u as q } from "./slotContext-DoCFkzCA.js";
|
|
18
|
+
const y = O(void 0), z = y.Provider, v = (n) => new Promise((t) => setTimeout(t, n)), C = {
|
|
19
|
+
pending: 1e3,
|
|
20
|
+
succeeded: 1500,
|
|
21
|
+
failed: 2e3
|
|
22
|
+
};
|
|
23
|
+
class x {
|
|
24
|
+
constructor() {
|
|
25
|
+
r(this, "showFeedback");
|
|
26
|
+
r(this, "state", "isIdle");
|
|
27
|
+
r(this, "setPendingTimeout");
|
|
28
|
+
r(this, "error");
|
|
29
|
+
r(this, "isAsync", !1);
|
|
30
|
+
N(this, {
|
|
31
|
+
state: R,
|
|
32
|
+
updateState: V,
|
|
33
|
+
isBusy: $
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static useNew() {
|
|
37
|
+
return I(new x()).current;
|
|
38
|
+
}
|
|
39
|
+
updateState(t) {
|
|
40
|
+
this.state = t;
|
|
41
|
+
}
|
|
42
|
+
useValue() {
|
|
43
|
+
return b(() => this.state, [this]);
|
|
44
|
+
}
|
|
45
|
+
useIsBusy() {
|
|
46
|
+
return b(() => this.isBusy, [this]);
|
|
47
|
+
}
|
|
48
|
+
get isBusy() {
|
|
49
|
+
return this.state !== "isIdle";
|
|
50
|
+
}
|
|
51
|
+
onAsyncStart() {
|
|
52
|
+
this.isAsync = !0, this.updateState("isExecuting"), this.setPendingTimeout = window.setTimeout(
|
|
53
|
+
() => this.startPending(),
|
|
54
|
+
C.pending
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
async onSucceeded() {
|
|
58
|
+
await this.onDone();
|
|
59
|
+
}
|
|
60
|
+
async onFailed(t) {
|
|
61
|
+
this.error = t ?? new Error("Unknown error"), await this.onDone();
|
|
62
|
+
}
|
|
63
|
+
withFeedback(t) {
|
|
64
|
+
return this.showFeedback = t, this;
|
|
65
|
+
}
|
|
66
|
+
async startFailedFeedback() {
|
|
67
|
+
this.updateState("isFailed"), await v(C.failed), this.resetAfterDone();
|
|
68
|
+
}
|
|
69
|
+
async startSucceededFeedback() {
|
|
70
|
+
this.updateState("isSucceeded"), await v(C.succeeded), this.resetAfterDone();
|
|
71
|
+
}
|
|
72
|
+
resetAfterDone() {
|
|
73
|
+
this.updateState("isIdle"), this.isAsync = !1, this.error = void 0;
|
|
74
|
+
}
|
|
75
|
+
async onDone() {
|
|
76
|
+
this.setPendingTimeout && window.clearTimeout(this.setPendingTimeout), this.error ? await this.startFailedFeedback() : this.showFeedback !== !1 && (this.showFeedback || this.isAsync) ? await this.startSucceededFeedback() : this.resetAfterDone();
|
|
77
|
+
}
|
|
78
|
+
startPending() {
|
|
79
|
+
this.updateState("isPending");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const B = (n) => (...t) => {
|
|
83
|
+
const e = [...n], o = e.shift();
|
|
84
|
+
if (o) {
|
|
85
|
+
const s = o(...t), a = () => e.length === 0 ? s : B(e)(...t);
|
|
86
|
+
return s instanceof Promise ? s.then(a) : a();
|
|
87
|
+
}
|
|
88
|
+
}, f = () => {
|
|
89
|
+
}, H = (n, t = {}) => {
|
|
90
|
+
const {
|
|
91
|
+
onSync: e = f,
|
|
92
|
+
onAsync: o = f,
|
|
93
|
+
then: s = f,
|
|
94
|
+
catch: a = f,
|
|
95
|
+
finally: c = f
|
|
96
|
+
} = t;
|
|
97
|
+
try {
|
|
98
|
+
const i = n();
|
|
99
|
+
return i instanceof Promise ? (o(), i.then(s).catch(a).finally(c)) : (e(), s(i), c(), i);
|
|
100
|
+
} catch (i) {
|
|
101
|
+
e(), a(i), c();
|
|
102
|
+
}
|
|
103
|
+
}, P = () => {
|
|
104
|
+
};
|
|
105
|
+
function J(n) {
|
|
106
|
+
var i, h, d;
|
|
107
|
+
if (n.needsConfirmation)
|
|
108
|
+
return n.confirmationModalController.open;
|
|
109
|
+
const t = (p) => typeof p == "string" ? n.getOverlayController(p) : p, {
|
|
110
|
+
action: e,
|
|
111
|
+
toggleOverlay: o,
|
|
112
|
+
closeOverlay: s,
|
|
113
|
+
openOverlay: a
|
|
114
|
+
} = n.actionProps;
|
|
115
|
+
return (e || (a ? (i = t(a)) == null ? void 0 : i.open : s ? (h = t(s)) == null ? void 0 : h.close : o ? (d = t(o)) == null ? void 0 : d.toggle : P)) ?? P;
|
|
116
|
+
}
|
|
117
|
+
class S {
|
|
118
|
+
constructor(t) {
|
|
119
|
+
r(this, "actions", []);
|
|
120
|
+
r(this, "baseAction");
|
|
121
|
+
this.baseAction = t;
|
|
122
|
+
}
|
|
123
|
+
addAction(t) {
|
|
124
|
+
this.actions.push(t);
|
|
125
|
+
}
|
|
126
|
+
async executeBatch(t) {
|
|
127
|
+
if (this.actions.length === 0)
|
|
128
|
+
return;
|
|
129
|
+
const e = this.actions[this.actions.length - 1].actionProps.showFeedback, o = this.baseAction.state.withFeedback(
|
|
130
|
+
this.baseAction.needsConfirmation ? !1 : e
|
|
131
|
+
), s = this.actions.map((i) => J(i)), a = B(s);
|
|
132
|
+
let c;
|
|
133
|
+
if (await H(() => a(...t), {
|
|
134
|
+
onAsync: () => o.onAsyncStart(),
|
|
135
|
+
then: () => o.onSucceeded(),
|
|
136
|
+
catch: (i) => {
|
|
137
|
+
o.onFailed(i), c = i;
|
|
138
|
+
}
|
|
139
|
+
}), c)
|
|
140
|
+
throw c;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
class K {
|
|
144
|
+
constructor(t) {
|
|
145
|
+
r(this, "action");
|
|
146
|
+
r(this, "execute", (...t) => {
|
|
147
|
+
const e = this.getBatchedActions();
|
|
148
|
+
(async () => {
|
|
149
|
+
for (const s of e)
|
|
150
|
+
await s.executeBatch(t);
|
|
151
|
+
})().catch((s) => console.error(s));
|
|
152
|
+
});
|
|
153
|
+
r(this, "getBatchedActions", () => {
|
|
154
|
+
let t = this.action;
|
|
155
|
+
const e = [];
|
|
156
|
+
let o = new S(
|
|
157
|
+
this.action
|
|
158
|
+
), s = 0;
|
|
159
|
+
for (; t; ) {
|
|
160
|
+
const { action: a, break: c, skip: i } = t.actionProps;
|
|
161
|
+
if (t.needsConfirmation) {
|
|
162
|
+
o.addAction(t);
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
if (i) {
|
|
166
|
+
s = i === !0 ? 1 : i, t = t.parentAction;
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if (s > 0) {
|
|
170
|
+
t = t.parentAction, s--;
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
if (c)
|
|
174
|
+
break;
|
|
175
|
+
a || (e.push(o), o = new S(this.action)), o.addAction(t), t = t.parentAction;
|
|
176
|
+
}
|
|
177
|
+
return e.push(o), e;
|
|
178
|
+
});
|
|
179
|
+
this.action = t;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
class u {
|
|
183
|
+
constructor(t) {
|
|
184
|
+
r(this, "state");
|
|
185
|
+
r(this, "needsConfirmation");
|
|
186
|
+
r(this, "actionProps");
|
|
187
|
+
r(this, "parentAction");
|
|
188
|
+
r(this, "confirmationModalController");
|
|
189
|
+
r(this, "overlayContext");
|
|
190
|
+
r(this, "execute", (...t) => {
|
|
191
|
+
new K(this).execute(...t);
|
|
192
|
+
});
|
|
193
|
+
const {
|
|
194
|
+
actionProps: e,
|
|
195
|
+
needsConfirmation: o,
|
|
196
|
+
parentAction: s,
|
|
197
|
+
overlayContext: a,
|
|
198
|
+
confirmationModalController: c,
|
|
199
|
+
state: i
|
|
200
|
+
} = t;
|
|
201
|
+
this.actionProps = e, this.parentAction = s, this.confirmationModalController = c, this.needsConfirmation = o, this.overlayContext = a, this.state = i;
|
|
202
|
+
}
|
|
203
|
+
static useNew(t, e = {}) {
|
|
204
|
+
const o = w(y), s = E(), a = D.useNew(), c = x.useNew();
|
|
205
|
+
return new u({
|
|
206
|
+
parentAction: o,
|
|
207
|
+
overlayContext: s,
|
|
208
|
+
confirmationModalController: a,
|
|
209
|
+
needsConfirmation: !1,
|
|
210
|
+
actionProps: t,
|
|
211
|
+
state: c,
|
|
212
|
+
...e
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
static use() {
|
|
216
|
+
const t = w(y);
|
|
217
|
+
return T(!!t, "Action context is not defined"), G.useRegisterState(t.state), t;
|
|
218
|
+
}
|
|
219
|
+
static useConfirmationAction() {
|
|
220
|
+
const t = u.use();
|
|
221
|
+
return new u({
|
|
222
|
+
actionProps: t.actionProps,
|
|
223
|
+
confirmationModalController: t.confirmationModalController,
|
|
224
|
+
overlayContext: t.overlayContext,
|
|
225
|
+
state: t.state,
|
|
226
|
+
needsConfirmation: !1,
|
|
227
|
+
parentAction: u.useNew(
|
|
228
|
+
{
|
|
229
|
+
closeOverlay: t.confirmationModalController
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
parentAction: t.parentAction
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
getOverlayController(t) {
|
|
238
|
+
const e = (o) => o === void 0 ? void 0 : o ? this.overlayContext[t] : void 0;
|
|
239
|
+
return e(this.actionProps.openOverlay) ?? e(this.actionProps.closeOverlay) ?? e(this.actionProps.toggleOverlay);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const Q = (n) => q()[n], A = (n) => Q("Modal") === "actionConfirm" ? L(n) : void 0, m = (n) => {
|
|
243
|
+
const t = u.use(), e = t.state.useValue(), o = A(n) === "primary", s = t.confirmationModalController.useIsOpen();
|
|
244
|
+
return t.needsConfirmation && s && !o ? "isIdle" : e;
|
|
245
|
+
}, F = {
|
|
246
|
+
onPress: l((n) => {
|
|
247
|
+
const t = u.use(), e = u.useConfirmationAction(), o = A(n) === "primary";
|
|
248
|
+
return A(n) === "abort" ? t.confirmationModalController.close : o ? e.execute : t.execute;
|
|
249
|
+
}),
|
|
250
|
+
isPending: l((n) => m(n) === "isPending"),
|
|
251
|
+
isSucceeded: l(
|
|
252
|
+
(n) => m(n) === "isSucceeded"
|
|
253
|
+
),
|
|
254
|
+
isFailed: l((n) => m(n) === "isFailed"),
|
|
255
|
+
"aria-disabled": l((n) => {
|
|
256
|
+
const t = m(n), e = U().useIsBusy();
|
|
257
|
+
return t === "isExecuting" || e;
|
|
258
|
+
})
|
|
259
|
+
}, ct = (n) => {
|
|
260
|
+
const { children: t, actionModel: e, ...o } = n, s = u.useNew(o), a = e ?? s, c = {
|
|
261
|
+
Button: F,
|
|
262
|
+
Link: {
|
|
263
|
+
onPress: l(() => u.use().execute)
|
|
264
|
+
},
|
|
265
|
+
Modal: {
|
|
266
|
+
slot: l((i) => {
|
|
267
|
+
const { slot: h } = i, d = u.use();
|
|
268
|
+
return d.needsConfirmation = h === "actionConfirm", h;
|
|
269
|
+
}),
|
|
270
|
+
isDismissable: l((i) => {
|
|
271
|
+
const d = u.use().state.useValue();
|
|
272
|
+
return d === "isExecuting" || d === "isPending" ? !1 : i.isDismissable;
|
|
273
|
+
}),
|
|
274
|
+
controller: l(() => {
|
|
275
|
+
const i = u.use();
|
|
276
|
+
return i.needsConfirmation ? i.confirmationModalController : i.getOverlayController("Modal");
|
|
277
|
+
}),
|
|
278
|
+
ActionGroup: {
|
|
279
|
+
Button: F
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
return /* @__PURE__ */ g.createElement(z, { value: a }, /* @__PURE__ */ g.createElement(j, { props: c, mergeInParentContext: !0 }, t));
|
|
284
|
+
};
|
|
285
|
+
export {
|
|
286
|
+
ct as A,
|
|
287
|
+
u as a
|
|
288
|
+
};
|
package/dist/Action.js
CHANGED
package/dist/ActionGroup.js
CHANGED
|
@@ -7,7 +7,7 @@ import "@react-aria/utils";
|
|
|
7
7
|
import "remeda";
|
|
8
8
|
import { d as e } from "./dynamic-ClpUSmEt.js";
|
|
9
9
|
import i from "clsx";
|
|
10
|
-
import { f as g } from "./flowComponent-
|
|
10
|
+
import { f as g } from "./flowComponent-CWmvUeHT.js";
|
|
11
11
|
import { TunnelProvider as E, TunnelExit as n } from "@mittwald/react-tunnel";
|
|
12
12
|
import { A as C, g as a } from "./getActionGroupSlot-Do-bk4GU.js";
|
|
13
13
|
const G = "flow--action-group--action-group-container", v = "flow--action-group", x = "flow--action-group--primary", N = "flow--action-group--secondary", P = "flow--action-group--abort", r = {
|
package/dist/Avatar.js
CHANGED
|
@@ -9,7 +9,7 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
9
9
|
import "remeda";
|
|
10
10
|
import { hash as w } from "object-code";
|
|
11
11
|
import { deepForEach as z } from "react-children-utilities";
|
|
12
|
-
import { f as d } from "./flowComponent-
|
|
12
|
+
import { f as d } from "./flowComponent-CWmvUeHT.js";
|
|
13
13
|
const C = "flow--avatar", h = "flow--avatar--icon", x = "flow--avatar--initials", r = {
|
|
14
14
|
avatar: C,
|
|
15
15
|
icon: h,
|
package/dist/Breadcrumb.js
CHANGED
|
@@ -4,8 +4,8 @@ import r from "react";
|
|
|
4
4
|
import * as m from "react-aria-components";
|
|
5
5
|
import a from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon-
|
|
8
|
-
import { I as b } from "./IconChevronRight-
|
|
7
|
+
import "./Icon-CvhSELPq.js";
|
|
8
|
+
import { I as b } from "./IconChevronRight-BKNi_Ug_.js";
|
|
9
9
|
import "./propsContext-DzAKlmhS.js";
|
|
10
10
|
import { P as d } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
11
11
|
import "@react-aria/utils";
|
|
@@ -9,12 +9,12 @@ import "@react-aria/utils";
|
|
|
9
9
|
import "./propsContext-DzAKlmhS.js";
|
|
10
10
|
import "remeda";
|
|
11
11
|
import "@tabler/icons-react";
|
|
12
|
-
import "./Icon-
|
|
13
|
-
import { I as h, a as I } from "./IconSucceeded-
|
|
12
|
+
import "./Icon-CvhSELPq.js";
|
|
13
|
+
import { I as h, a as I } from "./IconSucceeded-YONbnUQb.js";
|
|
14
14
|
import { W as f } from "./Wrap-DGT1h1o3.js";
|
|
15
|
-
import { T as N } from "./Text-
|
|
16
|
-
import { f as B } from "./flowComponent-
|
|
17
|
-
import { L as k } from "./LoadingSpinner-
|
|
15
|
+
import { T as N } from "./Text-BgxTAtk1.js";
|
|
16
|
+
import { f as B } from "./flowComponent-CWmvUeHT.js";
|
|
17
|
+
import { L as k } from "./LoadingSpinner-bd5Is2yg.js";
|
|
18
18
|
import { useLocalizedStringFormatter as A } from "react-aria";
|
|
19
19
|
import { useLiveRegion as D } from "@chakra-ui/live-region";
|
|
20
20
|
const T = "flow--button", z = "flow--button--content", L = "flow--button--state-icon", R = "flow--button--avatar", K = "flow--button--icon", U = "flow--button--text", W = "flow--button--counter-badge", $ = "flow--button--is-succeeded", j = "flow--button--is-failed", q = "flow--button--is-pending", G = "flow--button--plain", H = "flow--button--primary", J = "flow--button--solid", M = "flow--button--aria-disabled", O = "flow--button--accent", Q = "flow--button--danger", V = "flow--button--secondary", X = "flow--button--dark", Y = "flow--button--light", Z = "flow--button--soft", t = {
|
package/dist/Button.js
CHANGED
|
@@ -4,15 +4,15 @@ import e from "react";
|
|
|
4
4
|
import * as i from "react-aria-components";
|
|
5
5
|
import p from "clsx";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon-
|
|
8
|
-
import { I as x, a as f } from "./IconCheckboxEmpty-
|
|
9
|
-
import { I as h } from "./IconCheckboxIndeterminate-
|
|
7
|
+
import "./Icon-CvhSELPq.js";
|
|
8
|
+
import { I as x, a as f } from "./IconCheckboxEmpty-CzAVypP3.js";
|
|
9
|
+
import { I as h } from "./IconCheckboxIndeterminate-CKiaFL3c.js";
|
|
10
10
|
import { C } from "./ClearPropsContext-CUvsbMn8.js";
|
|
11
11
|
import "./propsContext-DzAKlmhS.js";
|
|
12
12
|
import "@react-aria/utils";
|
|
13
13
|
import "remeda";
|
|
14
14
|
import "dot-prop";
|
|
15
|
-
import { f as k } from "./flowComponent-
|
|
15
|
+
import { f as k } from "./flowComponent-CWmvUeHT.js";
|
|
16
16
|
const b = "flow--checkbox", E = "flow--checkbox--icon", o = {
|
|
17
17
|
checkbox: b,
|
|
18
18
|
icon: E
|
package/dist/Checkbox.js
CHANGED
|
@@ -7,8 +7,8 @@ import { P as b } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "./propsContext-DzAKlmhS.js";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { C as x } from "./Checkbox-
|
|
11
|
-
import { f } from "./flowComponent-
|
|
10
|
+
import { C as x } from "./Checkbox-zg7icNVe.js";
|
|
11
|
+
import { f } from "./flowComponent-CWmvUeHT.js";
|
|
12
12
|
const C = "flow--checkbox-button", i = "flow--checkbox-button--label", h = "flow--checkbox-button--content", t = {
|
|
13
13
|
checkboxButton: C,
|
|
14
14
|
label: i,
|
package/dist/CheckboxButton.js
CHANGED
package/dist/CheckboxGroup.js
CHANGED
|
@@ -7,13 +7,13 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
7
7
|
import { P as h } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
8
8
|
import "@react-aria/utils";
|
|
9
9
|
import "remeda";
|
|
10
|
-
import { F as E } from "./FieldError-
|
|
11
|
-
import { C as k } from "./CheckboxButton-
|
|
10
|
+
import { F as E } from "./FieldError-eiEmcuuK.js";
|
|
11
|
+
import { C as k } from "./CheckboxButton-CbLlDhsH.js";
|
|
12
12
|
import { TunnelProvider as C, TunnelExit as r } from "@mittwald/react-tunnel";
|
|
13
13
|
import { s as o } from "./FormField.module-DHK6nIcD.js";
|
|
14
14
|
import { C as N } from "./ColumnLayout-FMONjI17.js";
|
|
15
15
|
import { d as F } from "./deepFindOfType-6pG0fH7S.js";
|
|
16
|
-
import { f as G } from "./flowComponent-
|
|
16
|
+
import { f as G } from "./flowComponent-CWmvUeHT.js";
|
|
17
17
|
const P = "flow--checkbox-group", s = {
|
|
18
18
|
checkboxGroup: P
|
|
19
19
|
}, j = G("CheckboxGroup", (l) => {
|
|
@@ -6,7 +6,7 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
6
6
|
import "@react-aria/utils";
|
|
7
7
|
import "remeda";
|
|
8
8
|
import "dot-prop";
|
|
9
|
-
import { f as l } from "./flowComponent-
|
|
9
|
+
import { f as l } from "./flowComponent-CWmvUeHT.js";
|
|
10
10
|
import { W as s } from "./Wrap-DGT1h1o3.js";
|
|
11
11
|
import { A as f } from "./Activity-CmfZpgOM.js";
|
|
12
12
|
const W = l("Content", (e) => {
|
package/dist/Content.js
CHANGED
package/dist/ContextMenu.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
|
-
import { C as t } from "./ContextMenuTrigger-
|
|
4
|
-
import { a } from "./ContextMenuTrigger-
|
|
5
|
-
import { M as n } from "./MenuItem-
|
|
3
|
+
import { C as t } from "./ContextMenuTrigger-CeyI6LLR.js";
|
|
4
|
+
import { a } from "./ContextMenuTrigger-CeyI6LLR.js";
|
|
5
|
+
import { M as n } from "./MenuItem-CCEquV9i.js";
|
|
6
6
|
export {
|
|
7
7
|
t as ContextMenu,
|
|
8
8
|
a as ContextMenuTrigger,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import e from "react";
|
|
4
|
+
import * as a from "react-aria-components";
|
|
5
|
+
import { f as v } from "./flowComponent-CWmvUeHT.js";
|
|
6
|
+
import { P as x } from "./Popover-DrXvRfAg.js";
|
|
7
|
+
import "mobx";
|
|
8
|
+
import "./context-Bdh6m_8S.js";
|
|
9
|
+
import { C as M } from "./ClearPropsContext-CUvsbMn8.js";
|
|
10
|
+
import { P as d } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
11
|
+
import "@react-aria/utils";
|
|
12
|
+
import "./propsContext-DzAKlmhS.js";
|
|
13
|
+
import "remeda";
|
|
14
|
+
import { O as C } from "./OverlayTrigger-DpALSyS8.js";
|
|
15
|
+
const P = "flow--context-menu", y = "flow--context-menu--popover", s = {
|
|
16
|
+
contextMenu: P,
|
|
17
|
+
popover: y
|
|
18
|
+
}, R = v("ContextMenu", (o) => {
|
|
19
|
+
const {
|
|
20
|
+
children: t,
|
|
21
|
+
onAction: r,
|
|
22
|
+
selectionMode: n,
|
|
23
|
+
selectedKeys: i,
|
|
24
|
+
defaultSelectedKeys: c,
|
|
25
|
+
disabledKeys: p,
|
|
26
|
+
onSelectionChange: l,
|
|
27
|
+
refProp: m,
|
|
28
|
+
...u
|
|
29
|
+
} = o, f = n === "navigation" ? "single" : n, g = {
|
|
30
|
+
MenuItem: {
|
|
31
|
+
selectionVariant: n === "navigation" ? "navigation" : "control"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ e.createElement(M, null, /* @__PURE__ */ e.createElement(x, { ...u, className: s.popover }, /* @__PURE__ */ e.createElement(
|
|
35
|
+
a.Menu,
|
|
36
|
+
{
|
|
37
|
+
className: s.contextMenu,
|
|
38
|
+
onAction: r,
|
|
39
|
+
selectionMode: f,
|
|
40
|
+
selectedKeys: i,
|
|
41
|
+
defaultSelectedKeys: c,
|
|
42
|
+
disabledKeys: p,
|
|
43
|
+
onSelectionChange: l,
|
|
44
|
+
ref: m
|
|
45
|
+
},
|
|
46
|
+
/* @__PURE__ */ e.createElement(d, { props: g }, t)
|
|
47
|
+
)));
|
|
48
|
+
}), V = (o) => {
|
|
49
|
+
const { children: t, ...r } = o;
|
|
50
|
+
return /* @__PURE__ */ e.createElement(C, { overlayType: "Popover", ...r }, /* @__PURE__ */ e.createElement(a.MenuTrigger, null, t));
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
R as C,
|
|
54
|
+
V as a
|
|
55
|
+
};
|
package/dist/ContextualHelp.js
CHANGED
|
@@ -1,47 +1,56 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import t from "react";
|
|
4
|
-
import { P as
|
|
5
|
-
import * as
|
|
4
|
+
import { P as s } from "./Popover-DrXvRfAg.js";
|
|
5
|
+
import * as c from "react-aria-components";
|
|
6
6
|
import "mobx";
|
|
7
|
-
import "./useOverlayController-
|
|
7
|
+
import { u } from "./useOverlayController-C88Gnnhi.js";
|
|
8
8
|
import "./propsContext-DzAKlmhS.js";
|
|
9
|
-
import { P as
|
|
9
|
+
import { P as l } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
10
10
|
import "@react-aria/utils";
|
|
11
11
|
import "remeda";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
12
|
+
import "./context-Bdh6m_8S.js";
|
|
13
|
+
import { f } from "./flowComponent-CWmvUeHT.js";
|
|
14
|
+
import { O as x } from "./OverlayTrigger-DpALSyS8.js";
|
|
15
|
+
import { useLocalizedStringFormatter as g } from "react-aria";
|
|
14
16
|
import "@tabler/icons-react";
|
|
15
|
-
import "./Icon-
|
|
16
|
-
import { I as
|
|
17
|
-
const
|
|
18
|
-
contextualHelp:
|
|
19
|
-
},
|
|
20
|
-
const {
|
|
17
|
+
import "./Icon-CvhSELPq.js";
|
|
18
|
+
import { I as C } from "./IconInfo-DDhh409U.js";
|
|
19
|
+
const H = "flow--contextual-help", d = {
|
|
20
|
+
contextualHelp: H
|
|
21
|
+
}, A = f("ContextualHelp", (e) => {
|
|
22
|
+
const {
|
|
23
|
+
children: o,
|
|
24
|
+
controller: r,
|
|
25
|
+
refProp: a,
|
|
26
|
+
...n
|
|
27
|
+
} = e, m = u("ContextualHelp", {
|
|
28
|
+
reuseControllerFromContext: !0
|
|
29
|
+
}), i = r ?? m, p = {
|
|
21
30
|
Heading: {
|
|
22
31
|
level: 5
|
|
23
32
|
}
|
|
24
33
|
};
|
|
25
|
-
return /* @__PURE__ */ t.createElement(
|
|
26
|
-
},
|
|
34
|
+
return /* @__PURE__ */ t.createElement(s, { withTip: !0, ...n, controller: i }, /* @__PURE__ */ t.createElement(l, { props: p }, /* @__PURE__ */ t.createElement("div", { className: d.contextualHelp }, o)));
|
|
35
|
+
}), E = { "de-DE": {
|
|
27
36
|
"contextualHelpButton.moreInformation": "Weitere Informationen"
|
|
28
37
|
}, "en-EN": {
|
|
29
38
|
"contextualHelpButton.moreInformation": "More information"
|
|
30
|
-
} },
|
|
31
|
-
const o = {
|
|
39
|
+
} }, L = (e) => {
|
|
40
|
+
const { children: o, ...r } = e, n = {
|
|
32
41
|
Button: {
|
|
33
|
-
"aria-label":
|
|
42
|
+
"aria-label": g(E).format(
|
|
34
43
|
"contextualHelpButton.moreInformation"
|
|
35
44
|
),
|
|
36
|
-
children: /* @__PURE__ */ t.createElement(
|
|
45
|
+
children: /* @__PURE__ */ t.createElement(C, null),
|
|
37
46
|
size: "s",
|
|
38
47
|
variant: "plain"
|
|
39
48
|
}
|
|
40
49
|
};
|
|
41
|
-
return /* @__PURE__ */ t.createElement(
|
|
50
|
+
return /* @__PURE__ */ t.createElement(x, { overlayType: "ContextualHelp", ...r }, /* @__PURE__ */ t.createElement(c.DialogTrigger, null, /* @__PURE__ */ t.createElement(l, { props: n, mergeInParentContext: !0 }, o)));
|
|
42
51
|
};
|
|
43
52
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
A as ContextualHelp,
|
|
54
|
+
L as ContextualHelpTrigger,
|
|
55
|
+
A as default
|
|
47
56
|
};
|
package/dist/CopyButton.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import o from "react";
|
|
4
4
|
import a from "copy-to-clipboard";
|
|
5
|
-
import { B as i } from "./Button-
|
|
5
|
+
import { B as i } from "./Button-Bs4J6es6.js";
|
|
6
6
|
import "@tabler/icons-react";
|
|
7
|
-
import "./Icon-
|
|
8
|
-
import { I as c } from "./IconCopy-
|
|
7
|
+
import "./Icon-CvhSELPq.js";
|
|
8
|
+
import { I as c } from "./IconCopy-D2sPjH5b.js";
|
|
9
9
|
import { useLocalizedStringFormatter as l } from "react-aria";
|
|
10
10
|
import { a as s, T as f } from "./TooltipTrigger-TslkLN5s.js";
|
|
11
11
|
import { onlyText as u } from "react-children-utilities";
|
|
@@ -14,8 +14,8 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
14
14
|
import "@react-aria/utils";
|
|
15
15
|
import "remeda";
|
|
16
16
|
import "dot-prop";
|
|
17
|
-
import { f as C } from "./flowComponent-
|
|
18
|
-
import { A as E } from "./Action-
|
|
17
|
+
import { f as C } from "./flowComponent-CWmvUeHT.js";
|
|
18
|
+
import { A as E } from "./Action-SzQtjRB5.js";
|
|
19
19
|
const B = { "de-DE": {
|
|
20
20
|
"copyButton.copy": "Kopieren"
|
|
21
21
|
}, "en-EN": {
|
package/dist/CounterBadge.js
CHANGED
|
@@ -7,8 +7,8 @@ import "./propsContext-DzAKlmhS.js";
|
|
|
7
7
|
import "@react-aria/utils";
|
|
8
8
|
import "remeda";
|
|
9
9
|
import "dot-prop";
|
|
10
|
-
import { T as p } from "./Text-
|
|
11
|
-
import { f as c } from "./flowComponent-
|
|
10
|
+
import { T as p } from "./Text-BgxTAtk1.js";
|
|
11
|
+
import { f as c } from "./flowComponent-CWmvUeHT.js";
|
|
12
12
|
const a = "flow--field-description", f = {
|
|
13
13
|
fieldDescription: a
|
|
14
14
|
}, P = c("FieldDescription", (e) => {
|