@oomol-lab/open-flow 0.1.0-beta.20 → 0.1.0-beta.21

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.
@@ -1,18 +1,18 @@
1
1
  import { i as e } from "./main-BDnNHhkU.js";
2
2
  import { c as t, q as n } from "./useValueChanged-BY05Usw-.js";
3
- import { $t as r, Dn as i, E as a, En as o, On as s, S as c, T as l, Tn as u, b as d, kn as f, l as p, t as m, w as h, x as g } from "./workbenchSelect-CwP6rphY.js";
3
+ import { An as r, Dn as i, E as a, On as o, S as s, T as c, b as l, jn as u, kn as d, l as f, t as p, tn as m, w as h, x as g } from "./workbenchSelect-DEmv7SLW.js";
4
4
  import { useEffect as _, useRef as v, useState as y } from "react";
5
5
  import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
6
6
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
7
7
  function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameChange: k, onOpenChange: A, onSubmit: j, pending: M, title: N }) {
8
8
  let P = e(), F = v(null), I = v(null), [L, R] = y(!1), z = O.length > 0 && E != null, B = P(z ? `resource.nameIssue.${E}` : "resource.nameHint", { max: 80 }), V = `${T}-message`, H = `${T}-option`;
9
- return _(() => R(!0), []), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", { ref: I }), /* @__PURE__ */ x(d, {
9
+ return _(() => R(!0), []), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", { ref: I }), /* @__PURE__ */ x(l, {
10
10
  onOpenChange: R,
11
11
  onOpenChangeComplete: (e) => {
12
12
  e || A(!1);
13
13
  },
14
14
  open: L,
15
- children: /* @__PURE__ */ x(c, {
15
+ children: /* @__PURE__ */ x(s, {
16
16
  container: I.current,
17
17
  initialFocus: () => F.current,
18
18
  showCloseButton: !1,
@@ -20,7 +20,7 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
20
20
  className: "flex flex-col gap-4",
21
21
  onSubmit: j,
22
22
  children: [
23
- /* @__PURE__ */ S(l, {
23
+ /* @__PURE__ */ S(c, {
24
24
  className: "flex-row items-center justify-between",
25
25
  children: [/* @__PURE__ */ x(a, { children: N }), /* @__PURE__ */ x(g, {
26
26
  "aria-label": P("common.cancel"),
@@ -29,15 +29,15 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
29
29
  variant: "ghost"
30
30
  }),
31
31
  type: "button",
32
- children: /* @__PURE__ */ x(p, { name: "close" })
32
+ children: /* @__PURE__ */ x(f, { name: "close" })
33
33
  })]
34
34
  }),
35
- /* @__PURE__ */ S(s, {
35
+ /* @__PURE__ */ S(r, {
36
36
  className: "gap-4",
37
- children: [/* @__PURE__ */ S(u, {
37
+ children: [/* @__PURE__ */ S(i, {
38
38
  "data-invalid": z,
39
39
  children: [
40
- /* @__PURE__ */ x(f, {
40
+ /* @__PURE__ */ x(u, {
41
41
  htmlFor: T,
42
42
  children: D
43
43
  }),
@@ -52,17 +52,17 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
52
52
  required: !0,
53
53
  value: O
54
54
  }),
55
- x(z ? i : o, {
55
+ x(z ? d : o, {
56
56
  id: V,
57
57
  children: B
58
58
  })
59
59
  ]
60
- }), w != null && /* @__PURE__ */ S(u, { children: [
61
- /* @__PURE__ */ x(f, {
60
+ }), w != null && /* @__PURE__ */ S(i, { children: [
61
+ /* @__PURE__ */ x(u, {
62
62
  htmlFor: w.state == "ready" ? H : void 0,
63
63
  children: w.label
64
64
  }),
65
- w.state == "ready" ? /* @__PURE__ */ x(m, {
65
+ w.state == "ready" ? /* @__PURE__ */ x(p, {
66
66
  ariaLabel: w.ariaLabel,
67
67
  className: "w-full",
68
68
  id: H,
@@ -74,7 +74,7 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
74
74
  className: "flex min-h-9 items-center gap-2 rounded-lg border bg-muted/30 px-3 py-2 text-sm text-muted-foreground",
75
75
  role: w.state == "error" ? "alert" : "status",
76
76
  children: [
77
- w.state == "loading" && /* @__PURE__ */ x(r, { "aria-hidden": "true" }),
77
+ w.state == "loading" && /* @__PURE__ */ x(m, { "aria-hidden": "true" }),
78
78
  /* @__PURE__ */ x("span", { children: w.status }),
79
79
  w.state == "error" && /* @__PURE__ */ x(n, {
80
80
  className: "ml-auto bg-background",