@oomol-lab/open-flow 0.1.0-beta.12 → 0.1.0-beta.13

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 (43) hide show
  1. package/dist/browser/{DesignerIcon-ckcKnxxJ.js → DesignerIcon-Bzpx8BtG.js} +7 -2
  2. package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
  3. package/dist/browser/carbon-Cn-DTyjG.js +54 -0
  4. package/dist/browser/{createResourceDialog-2pESP2wA.js → createResourceDialog-Cdixb0WC.js} +13 -13
  5. package/dist/browser/{dist-BZ5PTFAs.js → dist-D1VYgicl.js} +426 -305
  6. package/dist/browser/{dist-Bmb2mZvW.js → dist-DYjIVIZC.js} +22 -22
  7. package/dist/browser/{dist-Ce71Szg7.js → dist-DwvhuMxw.js} +15 -15
  8. package/dist/browser/{dist-DY4qlXTK.js → dist-TJfrvoIQ.js} +21 -21
  9. package/dist/browser/{esm-BPZ0P6x4.js → esm-nAA6DHox.js} +1 -1
  10. package/dist/browser/flow-authoring-node.d.ts +4 -0
  11. package/dist/browser/flow-authoring.d.ts +1 -1
  12. package/dist/browser/flow-authoring.js +1525 -1454
  13. package/dist/browser/flow-change.d.ts +42 -0
  14. package/dist/browser/flow-change.js +1423 -1387
  15. package/dist/browser/{flowChanges-CHPdBmZb.js → flowChanges-CX0dLRzD.js} +2797 -1609
  16. package/dist/browser/{flowWorkspace-BLGcgnHj.js → flowWorkspace-BhpxeXhY.js} +50485 -49229
  17. package/dist/browser/inputValues-CFlfnXlS.js +30 -0
  18. package/dist/browser/licenses.md +3 -1
  19. package/dist/browser/{select-Dn3vpjGC.js → select-DCGY8Lom.js} +2569 -2013
  20. package/dist/browser/{typeScriptSession-BoV-FDl3.js → typeScriptSession-DnAmJCzu.js} +6 -6
  21. package/dist/browser/workbench.css +1 -1
  22. package/dist/browser/workbench.js +828 -767
  23. package/dist/browser/workbenchSelect-DdXtOYD1.js +30 -0
  24. package/dist/common/control-api-conformance.js +5339 -218
  25. package/dist/common/control-api.d.ts +244 -11
  26. package/dist/common/control-api.js +2007 -1615
  27. package/dist/common/control-requests.js +1153 -1117
  28. package/dist/common/flow-agent.d.ts +10 -0
  29. package/dist/common/flow-encoding.js +162 -127
  30. package/dist/common/flow-semantics.d.ts +4 -2
  31. package/dist/common/flow-semantics.js +4495 -3448
  32. package/dist/common/mcp.js +1351 -1308
  33. package/dist/common/run-events.js +2 -1
  34. package/dist/common/run-lifecycle.d.ts +4 -0
  35. package/dist/common/run-lifecycle.js +30 -0
  36. package/dist/common/run-results.d.ts +56 -0
  37. package/dist/common/runtime-contract.d.ts +24 -0
  38. package/dist/common/scheduler.d.ts +29 -9
  39. package/dist/common/scheduler.js +3246 -2323
  40. package/package.json +1 -1
  41. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  42. package/dist/browser/waitNotificationInputs-BFbQUOyp.js +0 -29
  43. package/dist/browser/workbenchSelect-DzF8oik9.js +0 -435
@@ -1,29 +0,0 @@
1
- import { f as e } from "./dist-C46JByB-.js";
2
- import { s as t } from "./main-DmjVyuWr.js";
3
- import { n, t as r } from "./flowRunInputEditorStore-NPGePkvP.js";
4
- import { n as i } from "./flowWorkspace-BLGcgnHj.js";
5
- import { useEffect as a, useState as o } from "react";
6
- import { jsx as s } from "react/jsx-runtime";
7
- //#region src/workbench/browser/runtime/designer/waitNotificationInputs.tsx
8
- function c({ definitions: c, language: l, onChange: u, onCommit: d, onValidChange: f, showErrors: p, theme: m, values: h }) {
9
- let [g] = o(() => e(l)), [_] = o(() => {
10
- let e = new r(c, g);
11
- return e.replaceValues(h), e;
12
- }), v = t(n(_).inputs.inputValues$), y = t(_.valid$);
13
- return a(() => g.set(l), [l, g]), a(() => u(_.values()), [
14
- v,
15
- u,
16
- _
17
- ]), a(() => f(y), [f, y]), a(() => () => {
18
- _.dispose(), g.dispose();
19
- }, [g, _]), /* @__PURE__ */ s("div", {
20
- onBlur: () => d(_.values(), _.valid$.value),
21
- children: /* @__PURE__ */ s(i, {
22
- showErrors: p,
23
- store: _,
24
- theme: m
25
- })
26
- });
27
- }
28
- //#endregion
29
- export { c as WaitNotificationInputs };
@@ -1,435 +0,0 @@
1
- import { $ as e, B as t, Ct as n, H as r, I as i, In as a, K as o, Kn as s, L as c, Mt as l, On as u, P as d, Pt as f, Qn as p, Rt as m, Tt as h, U as g, Un as _, V as v, Vn as y, Zt as b, _ as x, dt as S, en as C, f as w, g as T, h as E, it as D, kn as ee, m as te, nt as ne, sr as O, tr as k, w as A, z as j } from "./getPseudoElementBounds-Dfqo78k7.js";
2
- import { i as M, n as N, o as P, r as F, s as re, t as ie, v as I } from "./select-Dn3vpjGC.js";
3
- import * as L from "react";
4
- import { jsx as R, jsxs as z } from "react/jsx-runtime";
5
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
6
- var B = /*#__PURE__*/ L.createContext(void 0);
7
- process.env.NODE_ENV !== "production" && (B.displayName = "DialogRootContext");
8
- function V(e) {
9
- let t = L.useContext(B);
10
- if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? k(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
11
- return t;
12
- }
13
- //#endregion
14
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
15
- var H = {
16
- ...h,
17
- ...C
18
- }, U = /*#__PURE__*/ L.forwardRef(function(e, t) {
19
- let { render: n, className: r, style: i, forceRender: a = !1, ...o } = e, { store: c } = V(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
20
- open: l,
21
- transitionStatus: c.useState("transitionStatus")
22
- };
23
- return s("div", e, {
24
- state: f,
25
- ref: [c.context.backdropRef, t],
26
- stateAttributesMapping: H,
27
- props: [{
28
- role: "presentation",
29
- hidden: !d,
30
- style: {
31
- userSelect: "none",
32
- WebkitUserSelect: "none"
33
- }
34
- }, o],
35
- enabled: a || !u
36
- });
37
- });
38
- process.env.NODE_ENV !== "production" && (U.displayName = "DialogBackdrop");
39
- //#endregion
40
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
41
- var W = /*#__PURE__*/ L.forwardRef(function(e, t) {
42
- let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...c } = e, { store: u } = V(), d = u.useState("open");
43
- function m(e) {
44
- d && u.setOpen(!1, l(f, e.nativeEvent));
45
- }
46
- let { getButtonProps: h, buttonRef: g } = p({
47
- disabled: i,
48
- native: a
49
- });
50
- return s("button", e, {
51
- state: { disabled: i },
52
- ref: [t, g],
53
- props: [
54
- { onClick: m },
55
- c,
56
- h
57
- ]
58
- });
59
- });
60
- process.env.NODE_ENV !== "production" && (W.displayName = "DialogClose");
61
- //#endregion
62
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
63
- var G = /*#__PURE__*/ L.forwardRef(function(e, t) {
64
- let { render: n, className: r, style: i, id: o, ...c } = e, { store: l } = V(), u = a(o);
65
- return l.useSyncedValueWithCleanup("descriptionElementId", u), s("p", e, {
66
- ref: t,
67
- props: [{ id: u }, c]
68
- });
69
- });
70
- process.env.NODE_ENV !== "production" && (G.displayName = "DialogDescription");
71
- //#endregion
72
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
73
- var K = /*#__PURE__*/ function(e) {
74
- return e.nestedDialogs = "--nested-dialogs", e;
75
- }({}), q = function(e) {
76
- return e[e.open = n.open] = "open", e[e.closed = n.closed] = "closed", e[e.startingStyle = n.startingStyle] = "startingStyle", e[e.endingStyle = n.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
77
- }({}), J = /*#__PURE__*/ L.createContext(void 0);
78
- process.env.NODE_ENV !== "production" && (J.displayName = "DialogPortalContext");
79
- function ae() {
80
- let e = L.useContext(J);
81
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? k(26) : "Base UI: <Dialog.Portal> is missing.");
82
- return e;
83
- }
84
- //#endregion
85
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
86
- var oe = {
87
- ...h,
88
- ...C,
89
- nestedDialogOpen(e) {
90
- return e ? { [q.nestedDialogOpen]: "" } : null;
91
- }
92
- }, Y = /*#__PURE__*/ L.forwardRef(function(e, t) {
93
- let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...c } = e, { store: l } = V(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), v = l.useState("open"), y = l.useState("openMethod"), x = l.useState("titleElementId"), S = l.useState("transitionStatus"), C = l.useState("role");
94
- ae(), b({
95
- open: v,
96
- ref: l.context.popupRef,
97
- onComplete() {
98
- v && l.context.onOpenChangeComplete?.(!0);
99
- }
100
- });
101
- function w(e) {
102
- return e !== "touch" || l.context.popupRef.current;
103
- }
104
- let T = i === void 0 ? w : i, E = s("div", e, {
105
- state: {
106
- open: v,
107
- nested: g,
108
- transitionStatus: S,
109
- nestedDialogOpen: _ > 0
110
- },
111
- props: [
112
- p,
113
- {
114
- "aria-labelledby": x ?? void 0,
115
- "aria-describedby": u ?? void 0,
116
- role: C,
117
- tabIndex: -1,
118
- hidden: !h,
119
- onKeyDown(e) {
120
- A.has(e.key) && e.stopPropagation();
121
- },
122
- style: { [K.nestedDialogs]: _ }
123
- },
124
- c
125
- ],
126
- ref: [
127
- t,
128
- l.context.popupRef,
129
- l.useStateSetter("popupElement")
130
- ],
131
- stateAttributesMapping: oe
132
- });
133
- return /*#__PURE__*/ R(D, {
134
- context: f,
135
- openInteractionType: y,
136
- disabled: !h,
137
- closeOnFocusOut: !d,
138
- initialFocus: T,
139
- returnFocus: r,
140
- modal: m !== !1,
141
- restoreFocus: "popup",
142
- children: E
143
- });
144
- });
145
- process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPopup");
146
- //#endregion
147
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
148
- var X = /*#__PURE__*/ L.forwardRef(function(e, t) {
149
- let { keepMounted: n = !1, ...r } = e, { store: i } = V(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
150
- return a || n ? /*#__PURE__*/ R(J.Provider, {
151
- value: n,
152
- children: /*#__PURE__*/ z(S, {
153
- ref: t,
154
- ...r,
155
- children: [a && o === !0 && /*#__PURE__*/ R(T, {
156
- ref: i.context.internalBackdropRef,
157
- inert: x(!s)
158
- }), e.children]
159
- })
160
- }) : null;
161
- });
162
- process.env.NODE_ENV !== "production" && (X.displayName = "DialogPortal");
163
- //#endregion
164
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
165
- function se(e) {
166
- let { store: t, parentContext: n, actionsRef: a, isDrawer: o } = e, s = t.useState("open"), f = t.useState("disablePointerDismissal"), p = t.useState("modal"), h = t.useState("popupElement"), { openMethod: _, triggerProps: v } = w(s);
167
- r(t);
168
- let { forceUnmount: y } = g(s, t), b = L.useCallback(() => {
169
- t.setOpen(!1, l(m));
170
- }, [t]);
171
- L.useImperativeHandle(a, () => ({
172
- unmount: y,
173
- close: b
174
- }), [y, b]);
175
- let x = c({
176
- popupStore: t,
177
- onOpenChange: t.setOpen,
178
- treatPopupAsFloatingElement: !0
179
- }), [S, C] = L.useState(0), [T, E] = L.useState(0), D = S === 0, O = d(x), k = ne(x, {
180
- outsidePressEvent() {
181
- return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
182
- mouse: p === "trap-focus" ? "sloppy" : "intentional",
183
- touch: "sloppy"
184
- };
185
- },
186
- outsidePress(e) {
187
- if (!t.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
188
- let n = ee(e);
189
- if (D && !f) {
190
- let e = n;
191
- return p && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e || u(e, h) && !e?.hasAttribute("data-base-ui-portal") : !0;
192
- }
193
- return !1;
194
- },
195
- escapeKey: D
196
- });
197
- te(s && p === !0, h);
198
- let { getReferenceProps: A, getFloatingProps: j, getTriggerProps: M } = i([O, k]);
199
- t.useContextCallback("onNestedDialogOpen", (e, t) => {
200
- C(e), E(t);
201
- }), t.useContextCallback("onNestedDialogClose", () => {
202
- C(0), E(0);
203
- }), L.useEffect(() => (n?.onNestedDialogOpen && s && n.onNestedDialogOpen(S + 1, T + +!!o), n?.onNestedDialogClose && !s && n.onNestedDialogClose(), () => {
204
- n?.onNestedDialogClose && s && n.onNestedDialogClose();
205
- }), [
206
- o,
207
- s,
208
- S,
209
- T,
210
- n
211
- ]);
212
- let N = L.useMemo(() => A(v), [A, v]), P = L.useMemo(() => M(v), [M, v]), F = L.useMemo(() => j(), [j]);
213
- t.useSyncedValues({
214
- openMethod: _,
215
- activeTriggerProps: N,
216
- inactiveTriggerProps: P,
217
- popupProps: F,
218
- floatingRootContext: x,
219
- nestedOpenDialogCount: S,
220
- nestedOpenDrawerCount: T
221
- });
222
- }
223
- //#endregion
224
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
225
- var ce = {
226
- ...t,
227
- modal: e((e) => e.modal),
228
- nested: e((e) => e.nested),
229
- nestedOpenDialogCount: e((e) => e.nestedOpenDialogCount),
230
- nestedOpenDrawerCount: e((e) => e.nestedOpenDrawerCount),
231
- disablePointerDismissal: e((e) => e.disablePointerDismissal),
232
- openMethod: e((e) => e.openMethod),
233
- descriptionElementId: e((e) => e.descriptionElementId),
234
- titleElementId: e((e) => e.titleElementId),
235
- viewportElement: e((e) => e.viewportElement),
236
- role: e((e) => e.role)
237
- }, le = class e extends o {
238
- constructor(e) {
239
- super(ue(e), {
240
- popupRef: /*#__PURE__*/ L.createRef(),
241
- backdropRef: /*#__PURE__*/ L.createRef(),
242
- internalBackdropRef: /*#__PURE__*/ L.createRef(),
243
- outsidePressEnabledRef: { current: !0 },
244
- triggerElements: new v(),
245
- onOpenChange: void 0,
246
- onOpenChangeComplete: void 0
247
- }, ce);
248
- }
249
- setOpen = (e, t) => {
250
- if (t.preventUnmountOnClose = () => {
251
- this.set("preventUnmountingOnClose", !0);
252
- }, !e && t.trigger == null && this.state.activeTriggerId != null && (t.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(e, t), t.isCanceled) return;
253
- this.state.floatingRootContext.dispatchOpenChange(e, t);
254
- let n = { open: e }, r = t.trigger?.id ?? null;
255
- (r || e) && (n.activeTriggerId = r, n.activeTriggerElement = t.trigger ?? null), this.update(n);
256
- };
257
- static useStore(t, n) {
258
- let r = O(() => new e(n)).current;
259
- return t ?? r;
260
- }
261
- };
262
- function ue(e = {}) {
263
- return {
264
- ...j(),
265
- modal: !0,
266
- disablePointerDismissal: !1,
267
- popupElement: null,
268
- viewportElement: null,
269
- descriptionElementId: void 0,
270
- titleElementId: void 0,
271
- openMethod: null,
272
- nested: !1,
273
- nestedOpenDialogCount: 0,
274
- nestedOpenDrawerCount: 0,
275
- role: "dialog",
276
- ...e
277
- };
278
- }
279
- //#endregion
280
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
281
- var Z = /*#__PURE__*/ L.createContext(!1);
282
- process.env.NODE_ENV !== "production" && (Z.displayName = "IsDrawerContext");
283
- function de(e) {
284
- 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 = V(!0), p = L.useContext(Z), m = !!f, h = le.useStore(l?.store, {
285
- open: r,
286
- openProp: n,
287
- activeTriggerId: d,
288
- triggerIdProp: u,
289
- modal: s,
290
- disablePointerDismissal: o,
291
- nested: m
292
- });
293
- E(() => {
294
- n === void 0 && h.state.open === !1 && r === !0 && h.update({
295
- open: !0,
296
- activeTriggerId: d
297
- });
298
- }), h.useControlledProp("openProp", n), h.useControlledProp("triggerIdProp", u), h.useSyncedValues({
299
- disablePointerDismissal: o,
300
- nested: m,
301
- modal: s
302
- }), h.useContextCallback("onOpenChange", i), h.useContextCallback("onOpenChangeComplete", a);
303
- let g = h.useState("payload");
304
- se({
305
- store: h,
306
- actionsRef: c,
307
- parentContext: f?.store.context,
308
- isDrawer: p,
309
- onOpenChange: i,
310
- triggerIdProp: u
311
- });
312
- let _ = L.useMemo(() => ({ store: h }), [h]);
313
- return /*#__PURE__*/ R(Z.Provider, {
314
- value: !1,
315
- children: /*#__PURE__*/ R(B.Provider, {
316
- value: _,
317
- children: typeof t == "function" ? t({ payload: g }) : t
318
- })
319
- });
320
- }
321
- //#endregion
322
- //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
323
- var Q = /*#__PURE__*/ L.forwardRef(function(e, t) {
324
- let { render: n, className: r, style: i, id: o, ...c } = e, { store: l } = V(), u = a(o);
325
- return l.useSyncedValueWithCleanup("titleElementId", u), s("h2", e, {
326
- ref: t,
327
- props: [{ id: u }, c]
328
- });
329
- });
330
- process.env.NODE_ENV !== "production" && (Q.displayName = "DialogTitle");
331
- //#endregion
332
- //#region src/ui/browser/dialog.tsx
333
- function fe(e) {
334
- return /* @__PURE__ */ R(de, {
335
- "data-slot": "dialog",
336
- ...e
337
- });
338
- }
339
- function pe(e) {
340
- return /* @__PURE__ */ R(X, {
341
- "data-slot": "dialog-portal",
342
- ...e
343
- });
344
- }
345
- function me(e) {
346
- return /* @__PURE__ */ R(W, {
347
- "data-slot": "dialog-close",
348
- ...e
349
- });
350
- }
351
- function $({ className: e, ...t }) {
352
- return /* @__PURE__ */ R(U, {
353
- "data-slot": "dialog-overlay",
354
- className: _("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),
355
- ...t
356
- });
357
- }
358
- function he({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: i = !0, ...a }) {
359
- return /* @__PURE__ */ z(pe, {
360
- container: r,
361
- children: [/* @__PURE__ */ R($, {}), /* @__PURE__ */ z(Y, {
362
- "data-slot": "dialog-content",
363
- className: _("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),
364
- ...a,
365
- children: [e, i && /* @__PURE__ */ z(W, {
366
- "data-slot": "dialog-close",
367
- render: /* @__PURE__ */ R(y, {
368
- className: "absolute top-2 right-2",
369
- size: "icon-sm",
370
- variant: "ghost"
371
- }),
372
- children: [/* @__PURE__ */ R(I, {}), /* @__PURE__ */ R("span", {
373
- className: "sr-only",
374
- children: n
375
- })]
376
- })]
377
- })]
378
- });
379
- }
380
- function ge({ className: e, ...t }) {
381
- return /* @__PURE__ */ R("div", {
382
- "data-slot": "dialog-header",
383
- className: _("flex flex-col gap-2", e),
384
- ...t
385
- });
386
- }
387
- function _e({ className: e, ...t }) {
388
- return /* @__PURE__ */ R("div", {
389
- "data-slot": "dialog-footer",
390
- className: _("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
391
- ...t
392
- });
393
- }
394
- function ve({ className: e, ...t }) {
395
- return /* @__PURE__ */ R(Q, {
396
- "data-slot": "dialog-title",
397
- className: _("text-base leading-none font-medium", e),
398
- ...t
399
- });
400
- }
401
- function ye({ className: e, ...t }) {
402
- return /* @__PURE__ */ R(G, {
403
- "data-slot": "dialog-description",
404
- className: _("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
405
- ...t
406
- });
407
- }
408
- //#endregion
409
- //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
410
- function be({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: a, portalRoot: o, value: s }) {
411
- return /* @__PURE__ */ z(ie, {
412
- disabled: n,
413
- onValueChange: (e) => {
414
- e != null && i(e);
415
- },
416
- value: s,
417
- children: [/* @__PURE__ */ R(P, {
418
- "aria-label": e,
419
- className: _("min-w-32", t),
420
- id: r,
421
- children: /* @__PURE__ */ R(re, { children: a.find((e) => e.value == s)?.label ?? s })
422
- }), /* @__PURE__ */ R(N, {
423
- align: "end",
424
- alignItemWithTrigger: !1,
425
- container: o,
426
- children: /* @__PURE__ */ R(F, { children: a.map((e) => /* @__PURE__ */ R(M, {
427
- disabled: e.disabled,
428
- value: e.value,
429
- children: e.label
430
- }, e.value)) })
431
- })]
432
- });
433
- }
434
- //#endregion
435
- export { ye as a, ve as c, he as i, fe as n, _e as o, me as r, ge as s, be as t };