@oomol-lab/open-flow 0.1.0-alpha.13 → 0.1.0-alpha.14
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/browser/{addNodeOptions-JRHMwVOl.js → addNodeOptions-0tjmBEYS.js} +968 -959
- package/dist/browser/{createResourceDialog-CWD62rU0.js → createResourceDialog-CRRJCp8F.js} +101 -101
- package/dist/browser/{esm-C04lx1pd.js → esm-CIApMBt7.js} +1 -1
- package/dist/browser/{flowWorkspace-_qaqIyDi.js → flowWorkspace-bWrxAxMV.js} +10212 -10070
- package/dist/browser/{useOpenInteractionType-CRgOHg5M.js → useOpenInteractionType-BtV5cRut.js} +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +841 -799
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "./main-DmjVyuWr.js";
|
|
2
|
-
import { $n as t, B as n, C as r, Ct as i, D as a, E as o, H as s,
|
|
2
|
+
import { $n as t, B as n, C as r, Ct as i, D as a, E as o, H as s, It as c, Ln as l, N as u, O as d, Rn as f, S as p, T as m, Tr as h, V as g, Y as _, Yn as v, _t as y, a as b, ar as x, dt as S, er as C, gr as w, gt as T, ht as E, i as ee, k as te, lt as D, mt as O, nr as k, o as A, p as j, r as M, rr as N, sr as P, t as F, tr as ne, ur as I, w as re, yr as L, yt as ie, zt as R } from "./useOpenInteractionType-BtV5cRut.js";
|
|
3
3
|
import * as z from "react";
|
|
4
4
|
import { useEffect as ae, useRef as B, useState as oe } from "react";
|
|
5
5
|
import { Fragment as se, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
@@ -21,13 +21,13 @@ function W(e) {
|
|
|
21
21
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
|
|
22
22
|
var le = {
|
|
23
23
|
...S,
|
|
24
|
-
...
|
|
24
|
+
...R
|
|
25
25
|
}, G = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
26
26
|
let { render: n, className: r, style: i, forceRender: a = !1, ...o } = e, { store: s } = W(), c = s.useState("open"), l = s.useState("nested"), u = s.useState("mounted"), d = {
|
|
27
27
|
open: c,
|
|
28
28
|
transitionStatus: s.useState("transitionStatus")
|
|
29
29
|
};
|
|
30
|
-
return
|
|
30
|
+
return I("div", e, {
|
|
31
31
|
state: d,
|
|
32
32
|
ref: [s.context.backdropRef, t],
|
|
33
33
|
stateAttributesMapping: le,
|
|
@@ -48,13 +48,13 @@ process.env.NODE_ENV !== "production" && (G.displayName = "DialogBackdrop");
|
|
|
48
48
|
var K = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
49
49
|
let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { store: c } = W(), l = c.useState("open");
|
|
50
50
|
function u(e) {
|
|
51
|
-
l && c.setOpen(!1,
|
|
51
|
+
l && c.setOpen(!1, y(ie, e.nativeEvent));
|
|
52
52
|
}
|
|
53
|
-
let { getButtonProps: d, buttonRef: f } =
|
|
53
|
+
let { getButtonProps: d, buttonRef: f } = w({
|
|
54
54
|
disabled: i,
|
|
55
55
|
native: a
|
|
56
56
|
});
|
|
57
|
-
return
|
|
57
|
+
return I("button", e, {
|
|
58
58
|
state: { disabled: i },
|
|
59
59
|
ref: [t, f],
|
|
60
60
|
props: [
|
|
@@ -69,26 +69,26 @@ process.env.NODE_ENV !== "production" && (K.displayName = "DialogClose");
|
|
|
69
69
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
|
|
70
70
|
var ue = /*#__PURE__*/ function(e) {
|
|
71
71
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
72
|
-
}({}),
|
|
73
|
-
return e[e.open =
|
|
74
|
-
}({}),
|
|
75
|
-
process.env.NODE_ENV !== "production" && (
|
|
76
|
-
function
|
|
77
|
-
let e = z.useContext(
|
|
72
|
+
}({}), de = function(e) {
|
|
73
|
+
return e[e.open = D.open] = "open", e[e.closed = D.closed] = "closed", e[e.startingStyle = D.startingStyle] = "startingStyle", e[e.endingStyle = D.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
|
|
74
|
+
}({}), q = /*#__PURE__*/ z.createContext(void 0);
|
|
75
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "DialogPortalContext");
|
|
76
|
+
function fe() {
|
|
77
|
+
let e = z.useContext(q);
|
|
78
78
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? L(26) : "Base UI: <Dialog.Portal> is missing.");
|
|
79
79
|
return e;
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
|
|
83
|
-
var
|
|
83
|
+
var pe = {
|
|
84
84
|
...S,
|
|
85
|
-
...
|
|
85
|
+
...R,
|
|
86
86
|
nestedDialogOpen(e) {
|
|
87
|
-
return e ? { [
|
|
87
|
+
return e ? { [de.nestedDialogOpen]: "" } : null;
|
|
88
88
|
}
|
|
89
|
-
},
|
|
90
|
-
let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...
|
|
91
|
-
|
|
89
|
+
}, J = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
90
|
+
let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...l } = e, { store: u } = W(), d = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), p = u.useState("floatingRootContext"), m = u.useState("popupProps"), h = u.useState("modal"), g = u.useState("mounted"), _ = u.useState("nested"), v = u.useState("nestedOpenDialogCount"), y = u.useState("open"), b = u.useState("openMethod"), x = u.useState("titleElementId"), S = u.useState("transitionStatus"), C = u.useState("role");
|
|
91
|
+
fe(), c({
|
|
92
92
|
open: y,
|
|
93
93
|
ref: u.context.popupRef,
|
|
94
94
|
onComplete() {
|
|
@@ -98,7 +98,7 @@ var fe = {
|
|
|
98
98
|
function w(e) {
|
|
99
99
|
return e !== "touch" || u.context.popupRef.current;
|
|
100
100
|
}
|
|
101
|
-
let T = i === void 0 ? w : i, E =
|
|
101
|
+
let T = i === void 0 ? w : i, E = I("div", e, {
|
|
102
102
|
state: {
|
|
103
103
|
open: y,
|
|
104
104
|
nested: _,
|
|
@@ -114,18 +114,18 @@ var fe = {
|
|
|
114
114
|
tabIndex: -1,
|
|
115
115
|
hidden: !g,
|
|
116
116
|
onKeyDown(e) {
|
|
117
|
-
|
|
117
|
+
j.has(e.key) && e.stopPropagation();
|
|
118
118
|
},
|
|
119
119
|
style: { [ue.nestedDialogs]: v }
|
|
120
120
|
},
|
|
121
|
-
|
|
121
|
+
l
|
|
122
122
|
],
|
|
123
123
|
ref: [
|
|
124
124
|
t,
|
|
125
125
|
u.context.popupRef,
|
|
126
126
|
u.useStateSetter("popupElement")
|
|
127
127
|
],
|
|
128
|
-
stateAttributesMapping:
|
|
128
|
+
stateAttributesMapping: pe
|
|
129
129
|
});
|
|
130
130
|
return /*#__PURE__*/ V(s, {
|
|
131
131
|
context: p,
|
|
@@ -139,41 +139,41 @@ var fe = {
|
|
|
139
139
|
children: E
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
-
process.env.NODE_ENV !== "production" && (
|
|
142
|
+
process.env.NODE_ENV !== "production" && (J.displayName = "DialogPopup");
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
|
|
145
|
-
var
|
|
145
|
+
var Y = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
146
146
|
let { keepMounted: n = !1, ...r } = e, { store: i } = W(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
|
|
147
|
-
return a || n ? /*#__PURE__*/ V(
|
|
147
|
+
return a || n ? /*#__PURE__*/ V(q.Provider, {
|
|
148
148
|
value: n,
|
|
149
|
-
children: /*#__PURE__*/ H(
|
|
149
|
+
children: /*#__PURE__*/ H(_, {
|
|
150
150
|
ref: t,
|
|
151
151
|
...r,
|
|
152
|
-
children: [a && o === !0 && /*#__PURE__*/ V(
|
|
152
|
+
children: [a && o === !0 && /*#__PURE__*/ V(b, {
|
|
153
153
|
ref: i.context.internalBackdropRef,
|
|
154
|
-
inert:
|
|
154
|
+
inert: A(!s)
|
|
155
155
|
}), e.children]
|
|
156
156
|
})
|
|
157
157
|
}) : null;
|
|
158
158
|
});
|
|
159
|
-
process.env.NODE_ENV !== "production" && (
|
|
159
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPortal");
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
|
|
162
|
-
function
|
|
163
|
-
let { store: t, parentContext: n, actionsRef: a, isDrawer: o } = e, s = t.useState("open"),
|
|
164
|
-
|
|
165
|
-
let { forceUnmount:
|
|
166
|
-
t.setOpen(!1,
|
|
162
|
+
function me(e) {
|
|
163
|
+
let { store: t, parentContext: n, actionsRef: a, isDrawer: o } = e, s = t.useState("open"), c = t.useState("disablePointerDismissal"), u = t.useState("modal"), m = t.useState("popupElement"), { openMethod: h, triggerProps: _ } = F(s);
|
|
164
|
+
d(t);
|
|
165
|
+
let { forceUnmount: v } = te(s, t), b = z.useCallback(() => {
|
|
166
|
+
t.setOpen(!1, y(i));
|
|
167
167
|
}, [t]);
|
|
168
168
|
z.useImperativeHandle(a, () => ({
|
|
169
|
-
unmount:
|
|
170
|
-
close:
|
|
171
|
-
}), [
|
|
169
|
+
unmount: v,
|
|
170
|
+
close: b
|
|
171
|
+
}), [v, b]);
|
|
172
172
|
let x = re({
|
|
173
173
|
popupStore: t,
|
|
174
174
|
onOpenChange: t.setOpen,
|
|
175
175
|
treatPopupAsFloatingElement: !0
|
|
176
|
-
}), [S, C] = z.useState(0), [w, T] = z.useState(0), E = S === 0, D =
|
|
176
|
+
}), [S, C] = z.useState(0), [w, T] = z.useState(0), E = S === 0, D = p(x), O = g(x, {
|
|
177
177
|
outsidePressEvent() {
|
|
178
178
|
return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
|
|
179
179
|
mouse: u === "trap-focus" ? "sloppy" : "intentional",
|
|
@@ -182,16 +182,16 @@ function pe(e) {
|
|
|
182
182
|
},
|
|
183
183
|
outsidePress(e) {
|
|
184
184
|
if (!t.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
|
|
185
|
-
let n =
|
|
186
|
-
if (E && !
|
|
185
|
+
let n = f(e);
|
|
186
|
+
if (E && !c) {
|
|
187
187
|
let e = n;
|
|
188
|
-
return u && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e ||
|
|
188
|
+
return u && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e || l(e, m) && !e?.hasAttribute("data-base-ui-portal") : !0;
|
|
189
189
|
}
|
|
190
190
|
return !1;
|
|
191
191
|
},
|
|
192
192
|
escapeKey: E
|
|
193
193
|
});
|
|
194
|
-
ee(s && u === !0,
|
|
194
|
+
ee(s && u === !0, m);
|
|
195
195
|
let { getReferenceProps: k, getFloatingProps: A, getTriggerProps: j } = r([D, O]);
|
|
196
196
|
t.useContextCallback("onNestedDialogOpen", (e, t) => {
|
|
197
197
|
C(e), T(t);
|
|
@@ -206,9 +206,9 @@ function pe(e) {
|
|
|
206
206
|
w,
|
|
207
207
|
n
|
|
208
208
|
]);
|
|
209
|
-
let M = z.useMemo(() => k(
|
|
209
|
+
let M = z.useMemo(() => k(_), [k, _]), N = z.useMemo(() => j(_), [j, _]), P = z.useMemo(() => A(), [A]);
|
|
210
210
|
t.useSyncedValues({
|
|
211
|
-
openMethod:
|
|
211
|
+
openMethod: h,
|
|
212
212
|
activeTriggerProps: M,
|
|
213
213
|
inactiveTriggerProps: N,
|
|
214
214
|
popupProps: P,
|
|
@@ -219,7 +219,7 @@ function pe(e) {
|
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
|
|
222
|
-
var
|
|
222
|
+
var he = {
|
|
223
223
|
...o,
|
|
224
224
|
modal: n((e) => e.modal),
|
|
225
225
|
nested: n((e) => e.nested),
|
|
@@ -231,9 +231,9 @@ var me = {
|
|
|
231
231
|
titleElementId: n((e) => e.titleElementId),
|
|
232
232
|
viewportElement: n((e) => e.viewportElement),
|
|
233
233
|
role: n((e) => e.role)
|
|
234
|
-
},
|
|
234
|
+
}, ge = class e extends u {
|
|
235
235
|
constructor(e) {
|
|
236
|
-
super(
|
|
236
|
+
super(_e(e), {
|
|
237
237
|
popupRef: /*#__PURE__*/ z.createRef(),
|
|
238
238
|
backdropRef: /*#__PURE__*/ z.createRef(),
|
|
239
239
|
internalBackdropRef: /*#__PURE__*/ z.createRef(),
|
|
@@ -241,7 +241,7 @@ var me = {
|
|
|
241
241
|
triggerElements: new a(),
|
|
242
242
|
onOpenChange: void 0,
|
|
243
243
|
onOpenChangeComplete: void 0
|
|
244
|
-
},
|
|
244
|
+
}, he);
|
|
245
245
|
}
|
|
246
246
|
setOpen = (e, t) => {
|
|
247
247
|
if (t.preventUnmountOnClose = () => {
|
|
@@ -252,13 +252,13 @@ var me = {
|
|
|
252
252
|
(r || e) && (n.activeTriggerId = r, n.activeTriggerElement = t.trigger ?? null), this.update(n);
|
|
253
253
|
};
|
|
254
254
|
static useStore(t, n) {
|
|
255
|
-
let r =
|
|
255
|
+
let r = h(() => new e(n)).current;
|
|
256
256
|
return t ?? r;
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
function
|
|
259
|
+
function _e(e = {}) {
|
|
260
260
|
return {
|
|
261
|
-
...
|
|
261
|
+
...m(),
|
|
262
262
|
modal: !0,
|
|
263
263
|
disablePointerDismissal: !1,
|
|
264
264
|
popupElement: null,
|
|
@@ -275,10 +275,10 @@ function ge(e = {}) {
|
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
|
|
278
|
-
var
|
|
279
|
-
process.env.NODE_ENV !== "production" && (
|
|
280
|
-
function
|
|
281
|
-
let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: u, defaultTriggerId: d = null } = e, f = W(!0), p = z.useContext(
|
|
278
|
+
var X = /*#__PURE__*/ z.createContext(!1);
|
|
279
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "IsDrawerContext");
|
|
280
|
+
function ve(e) {
|
|
281
|
+
let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: u, defaultTriggerId: d = null } = e, f = W(!0), p = z.useContext(X), m = !!f, h = ge.useStore(l?.store, {
|
|
282
282
|
open: r,
|
|
283
283
|
openProp: n,
|
|
284
284
|
activeTriggerId: d,
|
|
@@ -287,7 +287,7 @@ function _e(e) {
|
|
|
287
287
|
disablePointerDismissal: o,
|
|
288
288
|
nested: m
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
M(() => {
|
|
291
291
|
n === void 0 && h.state.open === !1 && r === !0 && h.update({
|
|
292
292
|
open: !0,
|
|
293
293
|
activeTriggerId: d
|
|
@@ -298,7 +298,7 @@ function _e(e) {
|
|
|
298
298
|
modal: s
|
|
299
299
|
}), h.useContextCallback("onOpenChange", i), h.useContextCallback("onOpenChangeComplete", a);
|
|
300
300
|
let g = h.useState("payload");
|
|
301
|
-
|
|
301
|
+
me({
|
|
302
302
|
store: h,
|
|
303
303
|
actionsRef: c,
|
|
304
304
|
parentContext: f?.store.context,
|
|
@@ -307,7 +307,7 @@ function _e(e) {
|
|
|
307
307
|
triggerIdProp: u
|
|
308
308
|
});
|
|
309
309
|
let _ = z.useMemo(() => ({ store: h }), [h]);
|
|
310
|
-
return /*#__PURE__*/ V(
|
|
310
|
+
return /*#__PURE__*/ V(X.Provider, {
|
|
311
311
|
value: !1,
|
|
312
312
|
children: /*#__PURE__*/ V(U.Provider, {
|
|
313
313
|
value: _,
|
|
@@ -317,51 +317,51 @@ function _e(e) {
|
|
|
317
317
|
}
|
|
318
318
|
//#endregion
|
|
319
319
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
|
|
320
|
-
var
|
|
321
|
-
let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c =
|
|
322
|
-
return s.useSyncedValueWithCleanup("titleElementId", c),
|
|
320
|
+
var Z = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
321
|
+
let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c = v(a);
|
|
322
|
+
return s.useSyncedValueWithCleanup("titleElementId", c), I("h2", e, {
|
|
323
323
|
ref: t,
|
|
324
324
|
props: [{ id: c }, o]
|
|
325
325
|
});
|
|
326
326
|
});
|
|
327
|
-
process.env.NODE_ENV !== "production" && (
|
|
327
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "DialogTitle");
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/ui/browser/dialog.tsx
|
|
330
|
-
function
|
|
331
|
-
return /* @__PURE__ */ V(
|
|
330
|
+
function ye(e) {
|
|
331
|
+
return /* @__PURE__ */ V(ve, {
|
|
332
332
|
"data-slot": "dialog",
|
|
333
333
|
...e
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
return /* @__PURE__ */ V(
|
|
336
|
+
function be(e) {
|
|
337
|
+
return /* @__PURE__ */ V(Y, {
|
|
338
338
|
"data-slot": "dialog-portal",
|
|
339
339
|
...e
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Q(e) {
|
|
343
343
|
return /* @__PURE__ */ V(K, {
|
|
344
344
|
"data-slot": "dialog-close",
|
|
345
345
|
...e
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function xe({ className: e, ...t }) {
|
|
349
349
|
return /* @__PURE__ */ V(G, {
|
|
350
350
|
"data-slot": "dialog-overlay",
|
|
351
|
-
className:
|
|
351
|
+
className: P("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
|
|
352
352
|
...t
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
return /* @__PURE__ */ H(
|
|
355
|
+
function Se({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: i = !0, ...a }) {
|
|
356
|
+
return /* @__PURE__ */ H(be, {
|
|
357
357
|
container: r,
|
|
358
|
-
children: [/* @__PURE__ */ V(
|
|
358
|
+
children: [/* @__PURE__ */ V(xe, {}), /* @__PURE__ */ H(J, {
|
|
359
359
|
"data-slot": "dialog-content",
|
|
360
|
-
className:
|
|
360
|
+
className: P("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
|
|
361
361
|
...a,
|
|
362
362
|
children: [e, i && /* @__PURE__ */ H(K, {
|
|
363
363
|
"data-slot": "dialog-close",
|
|
364
|
-
render: /* @__PURE__ */ V(
|
|
364
|
+
render: /* @__PURE__ */ V(x, {
|
|
365
365
|
className: "absolute top-2 right-2",
|
|
366
366
|
size: "icon-sm",
|
|
367
367
|
variant: "ghost"
|
|
@@ -374,38 +374,38 @@ function xe({ children: e, className: t, closeLabel: n = "Close", container: r,
|
|
|
374
374
|
})]
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Ce({ className: e, ...t }) {
|
|
378
378
|
return /* @__PURE__ */ V("div", {
|
|
379
379
|
"data-slot": "dialog-header",
|
|
380
|
-
className:
|
|
380
|
+
className: P("flex flex-col gap-2", e),
|
|
381
381
|
...t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function $({ className: e, ...t }) {
|
|
385
385
|
return /* @__PURE__ */ V("div", {
|
|
386
386
|
"data-slot": "dialog-footer",
|
|
387
|
-
className:
|
|
387
|
+
className: P("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
|
|
388
388
|
...t
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
function we({ className: e, ...t }) {
|
|
392
|
-
return /* @__PURE__ */ V(
|
|
392
|
+
return /* @__PURE__ */ V(Z, {
|
|
393
393
|
"data-slot": "dialog-title",
|
|
394
|
-
className:
|
|
394
|
+
className: P("text-base leading-none font-medium", e),
|
|
395
395
|
...t
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
|
|
400
400
|
function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange: s, onSubmit: c, pending: l, title: u }) {
|
|
401
|
-
let d = e(), f = B(null), p = B(null), [
|
|
402
|
-
return ae(() =>
|
|
403
|
-
onOpenChange:
|
|
401
|
+
let d = e(), f = B(null), p = B(null), [m, h] = oe(!1), g = a.length > 0 && r != null, _ = d(g ? `resource.nameIssue.${r}` : "resource.nameHint", { max: 80 }), v = `${n}-message`;
|
|
402
|
+
return ae(() => h(!0), []), /* @__PURE__ */ H(se, { children: [/* @__PURE__ */ V("div", { ref: p }), /* @__PURE__ */ V(ye, {
|
|
403
|
+
onOpenChange: h,
|
|
404
404
|
onOpenChangeComplete: (e) => {
|
|
405
405
|
e || s(!1);
|
|
406
406
|
},
|
|
407
|
-
open:
|
|
408
|
-
children: /* @__PURE__ */ V(
|
|
407
|
+
open: m,
|
|
408
|
+
children: /* @__PURE__ */ V(Se, {
|
|
409
409
|
container: p.current,
|
|
410
410
|
initialFocus: () => f.current,
|
|
411
411
|
showCloseButton: !1,
|
|
@@ -413,29 +413,29 @@ function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange:
|
|
|
413
413
|
className: "flex flex-col gap-4",
|
|
414
414
|
onSubmit: c,
|
|
415
415
|
children: [
|
|
416
|
-
/* @__PURE__ */ H(
|
|
416
|
+
/* @__PURE__ */ H(Ce, {
|
|
417
417
|
className: "flex-row items-center justify-between",
|
|
418
|
-
children: [/* @__PURE__ */ V(we, { children: u }), /* @__PURE__ */ V(
|
|
418
|
+
children: [/* @__PURE__ */ V(we, { children: u }), /* @__PURE__ */ V(Q, {
|
|
419
419
|
"aria-label": d("common.cancel"),
|
|
420
|
-
render: /* @__PURE__ */ V(
|
|
420
|
+
render: /* @__PURE__ */ V(x, {
|
|
421
421
|
size: "icon-sm",
|
|
422
422
|
variant: "ghost"
|
|
423
423
|
}),
|
|
424
424
|
type: "button",
|
|
425
|
-
children: /* @__PURE__ */ V(
|
|
425
|
+
children: /* @__PURE__ */ V(O, { name: "close" })
|
|
426
426
|
})]
|
|
427
427
|
}),
|
|
428
|
-
/* @__PURE__ */ V(
|
|
429
|
-
"data-invalid":
|
|
428
|
+
/* @__PURE__ */ V(k, { children: /* @__PURE__ */ H(t, {
|
|
429
|
+
"data-invalid": g,
|
|
430
430
|
children: [
|
|
431
|
-
/* @__PURE__ */ V(
|
|
431
|
+
/* @__PURE__ */ V(N, {
|
|
432
432
|
htmlFor: n,
|
|
433
433
|
children: i
|
|
434
434
|
}),
|
|
435
|
-
/* @__PURE__ */ V(
|
|
435
|
+
/* @__PURE__ */ V(T, {
|
|
436
436
|
autoComplete: "off",
|
|
437
|
-
"aria-describedby":
|
|
438
|
-
"aria-invalid":
|
|
437
|
+
"aria-describedby": v,
|
|
438
|
+
"aria-invalid": g,
|
|
439
439
|
id: n,
|
|
440
440
|
name: "resource-name",
|
|
441
441
|
onChange: (e) => o(e.target.value),
|
|
@@ -443,17 +443,17 @@ function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange:
|
|
|
443
443
|
required: !0,
|
|
444
444
|
value: a
|
|
445
445
|
}),
|
|
446
|
-
V(
|
|
447
|
-
id:
|
|
448
|
-
children:
|
|
446
|
+
V(g ? ne : C, {
|
|
447
|
+
id: v,
|
|
448
|
+
children: _
|
|
449
449
|
})
|
|
450
450
|
]
|
|
451
451
|
}) }),
|
|
452
|
-
/* @__PURE__ */ H(
|
|
453
|
-
render: /* @__PURE__ */ V(
|
|
452
|
+
/* @__PURE__ */ H($, { children: [/* @__PURE__ */ V(Q, {
|
|
453
|
+
render: /* @__PURE__ */ V(x, { variant: "outline" }),
|
|
454
454
|
type: "button",
|
|
455
455
|
children: d("common.cancel")
|
|
456
|
-
}), /* @__PURE__ */ V(
|
|
456
|
+
}), /* @__PURE__ */ V(x, {
|
|
457
457
|
disabled: l || r != null,
|
|
458
458
|
type: "submit",
|
|
459
459
|
children: d(l ? "common.creating" : "common.create")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e } from "./dist-BpopSHwP.js";
|
|
2
2
|
import { r as t } from "./dist-BKuSVKCC.js";
|
|
3
3
|
import { M as n, t as r } from "./dist-CUSrALSX.js";
|
|
4
|
-
import { n as i } from "./flowWorkspace-
|
|
4
|
+
import { n as i } from "./flowWorkspace-bWrxAxMV.js";
|
|
5
5
|
//#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
|
|
6
6
|
var a = (e) => {
|
|
7
7
|
var i = e.theme, a = e.settings, o = a === void 0 ? {} : a, s = e.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
|