@powerhousedao/design-system 1.29.5 → 1.30.0

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 (103) hide show
  1. package/dist/connect/components/ens-avatar/ens-avatar.js +10 -10
  2. package/dist/connect/components/file-item/file-item.js +3 -3
  3. package/dist/connect/components/folder-item/folder-item.js +3 -3
  4. package/dist/connect/components/form/add-remote-drive-form.js +12 -12
  5. package/dist/connect/components/form/drive-settings-form.js +8 -8
  6. package/dist/connect/components/modal/settings-modal/dependency-versions/dependency-versions.js +1 -1
  7. package/dist/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js +3 -3
  8. package/dist/connect/components/revision-history/utils.js +14 -14
  9. package/dist/connect/components/status-icon/sync-status-icon.js +13 -13
  10. package/dist/connect/components/tooltip/tooltip.js +6 -6
  11. package/dist/connect/components/tree-view/tree-view.js +9 -9
  12. package/dist/connect/constants/icons.js +3 -3
  13. package/dist/connect/hooks/drag-and-drop/use-drag.js +12 -12
  14. package/dist/connect/hooks/drag-and-drop/use-drop.js +23 -23
  15. package/dist/powerhouse/components/dropdown-menu/dropdown-menu.js +3 -3
  16. package/dist/powerhouse/components/legacy/textInput.js +1 -1
  17. package/dist/powerhouse/components/legacy/textInputVariant.js +1 -1
  18. package/dist/rwa/components/inputs/number-input.js +7 -7
  19. package/dist/rwa/components/inputs/select.js +1 -1
  20. package/dist/rwa/components/modal/modals.js +4 -4
  21. package/dist/rwa/components/table/accounts/accounts-table.js +10 -10
  22. package/dist/rwa/components/table/base/table.js +18 -18
  23. package/dist/rwa/components/table/transactions/group-transactions-table.js +8 -8
  24. package/dist/rwa/context/editor-context.js +24 -24
  25. package/dist/rwa/hooks/useColumnPriority.js +16 -16
  26. package/dist/rwa/hooks/useFormInputs.js +2 -2
  27. package/dist/rwa/hooks/useTableHeight.js +13 -13
  28. package/dist/rwa/utils/table.js +48 -48
  29. package/dist/scalars/components/amount-field/amount-field-validations.js +12 -12
  30. package/dist/scalars/components/amount-field/amount-field.js +19 -19
  31. package/dist/scalars/components/amount-field/use-amount-field.js +108 -108
  32. package/dist/scalars/components/amount-field/utils.js +25 -25
  33. package/dist/scalars/components/country-code-field/country-code-field.js +10 -10
  34. package/dist/scalars/components/currency-code-field/currency-code-field.js +4 -4
  35. package/dist/scalars/components/date-picker-field/date-picker-field.js +8 -8
  36. package/dist/scalars/components/date-picker-field/date-picker-validations.js +5 -5
  37. package/dist/scalars/components/date-picker-field/use-date-picker-field.js +28 -28
  38. package/dist/scalars/components/fragments/radio-group-field/radio-group-field.js +26 -26
  39. package/dist/scalars/components/fragments/select-field/content.js +16 -16
  40. package/dist/scalars/components/fragments/select-field/select-field.js +17 -17
  41. package/dist/scalars/components/fragments/text-field/text-field.js +30 -30
  42. package/dist/scalars/components/fragments/textarea-field/textarea-field.js +20 -20
  43. package/dist/scalars/components/fragments/tooltip/tooltip.js +16 -16
  44. package/dist/scalars/components/fragments/value-transformer/value-transformer.js +2 -2
  45. package/dist/scalars/components/fragments/with-field-validation/with-field-validation.js +25 -25
  46. package/dist/scalars/components/id-field/id-field.js +9 -9
  47. package/dist/scalars/components/number-field/number-field.js +16 -16
  48. package/dist/scalars/components/number-field/use-number-field.js +26 -26
  49. package/dist/scalars/components/number-field/utils.js +1 -1
  50. package/dist/scalars/components/number-field/utils.js.map +1 -1
  51. package/dist/scalars/components/phid-field/phid-field.js +78 -78
  52. package/dist/scalars/components/phid-field/phid-field.js.map +1 -1
  53. package/dist/scalars/components/phid-field/phid-input-container.js +3 -3
  54. package/dist/scalars/components/phid-field/use-phid-field.js +60 -60
  55. package/dist/scalars/components/sidebar/sidebar.js +1 -1
  56. package/dist/scalars/components/sidebar/subcomponents/sidebar-provider.js +68 -68
  57. package/dist/scalars/components/sidebar/subcomponents/sidebar-provider.js.map +1 -1
  58. package/dist/scalars/components/sidebar/use-sidebar-resize.js +13 -13
  59. package/dist/scalars/components/sidebar/utils.js +18 -18
  60. package/dist/scalars/components/time-picker-field/time-picker-field.js +10 -10
  61. package/dist/scalars/components/time-picker-field/time-picker-validations.js +2 -2
  62. package/dist/scalars/components/time-picker-field/use-time-picker-field.js +13 -13
  63. package/dist/scalars/components/time-picker-field/utils.js +25 -25
  64. package/dist/scalars/components/url-field/url-field.js +12 -12
  65. package/dist/scalars/lib/deep-equal.js +13 -13
  66. package/dist/scalars/lib/value-cast.js +5 -5
  67. package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.d.ts.map +1 -1
  68. package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.d.ts.map +1 -1
  69. package/dist/src/connect/components/home-screen/home-screen.d.ts.map +1 -1
  70. package/dist/src/connect/components/sidebar/sidebar-add-drive-item.d.ts.map +1 -1
  71. package/dist/src/connect/components/sidebar/sidebar-item.d.ts.map +1 -1
  72. package/dist/src/connect/utils/get-folder-status.d.ts.map +1 -1
  73. package/dist/src/powerhouse/components/legacy/styles.d.ts.map +1 -1
  74. package/dist/src/powerhouse/components/legacy/stylesVariant.d.ts.map +1 -1
  75. package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts.map +1 -1
  76. package/dist/src/scalars/components/amount-field/use-amount-field.d.ts.map +1 -1
  77. package/dist/src/scalars/components/amount-field/utils.d.ts.map +1 -1
  78. package/dist/src/scalars/components/date-picker-field/date-picker-validations.d.ts.map +1 -1
  79. package/dist/src/scalars/components/date-picker-field/subcomponents/calendar-date-header/calendar-date-header.d.ts.map +1 -1
  80. package/dist/src/scalars/components/date-picker-field/use-date-picker-field.d.ts.map +1 -1
  81. package/dist/src/scalars/components/date-picker-field/utils.d.ts.map +1 -1
  82. package/dist/src/scalars/components/date-time-field/date-time-picker-contet.d.ts.map +1 -1
  83. package/dist/src/scalars/components/date-time-field/use-date-time-picker.d.ts.map +1 -1
  84. package/dist/src/scalars/components/form/utils.d.ts.map +1 -1
  85. package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts.map +1 -1
  86. package/dist/src/scalars/components/number-field/number-field-validations.d.ts.map +1 -1
  87. package/dist/src/scalars/components/number-field/use-number-field.d.ts.map +1 -1
  88. package/dist/src/scalars/components/phid-field/utils.d.ts.map +1 -1
  89. package/dist/src/scalars/components/sidebar/subcomponents/sidebar-content-area.d.ts.map +1 -1
  90. package/dist/src/scalars/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
  91. package/dist/src/scalars/components/sidebar/subcomponents/sidebar-provider.d.ts.map +1 -1
  92. package/dist/src/scalars/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
  93. package/dist/src/scalars/components/sidebar/use-sidebar-resize.d.ts.map +1 -1
  94. package/dist/src/scalars/components/sidebar/utils.d.ts.map +1 -1
  95. package/dist/src/scalars/components/time-picker-field/time-picker-validations.d.ts.map +1 -1
  96. package/dist/src/scalars/components/time-picker-field/use-time-picker-field.d.ts.map +1 -1
  97. package/dist/src/scalars/components/time-picker-field/utils.d.ts.map +1 -1
  98. package/dist/src/scalars/components/url-field/url-favicon.d.ts.map +1 -1
  99. package/dist/src/scalars/components/url-field/useURLWarnings.d.ts.map +1 -1
  100. package/dist/src/scalars/lib/share-number-validations.d.ts.map +1 -1
  101. package/dist/src/scalars/lib/testing.d.ts.map +1 -1
  102. package/dist/tsconfig.tsbuildinfo +1 -1
  103. package/package.json +5 -5
@@ -1,24 +1,24 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import c from "../../../assets/powerhouse-rounded.png.js";
3
- import { useEnsName as l, useEnsAvatar as m } from "wagmi";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import l from "../../../assets/powerhouse-rounded.png.js";
3
+ import { useEnsName as m, useEnsAvatar as u } from "wagmi";
4
4
  function N(o) {
5
- const { address: r, chainId: i = 1, size: a = "14px" } = o, e = {
5
+ const { address: r, chainId: i = 1, size: a = "14px" } = o, s = {
6
6
  width: a,
7
7
  height: a
8
- }, n = l({ address: r, chainId: i }), d = n.data ?? void 0, s = m({ name: d }), u = s.data ?? c;
9
- return n.isLoading || s.isLoading ? /* @__PURE__ */ t(
8
+ }, t = m({ address: r, chainId: i }), d = t.data ?? void 0, e = u({ name: d }), c = e.data ?? l;
9
+ return t.isLoading || e.isLoading ? /* @__PURE__ */ n(
10
10
  "div",
11
11
  {
12
12
  className: "flex-none animate-pulse rounded-full bg-gray-400 fade-out",
13
- style: e
13
+ style: s
14
14
  }
15
- ) : /* @__PURE__ */ t(
15
+ ) : /* @__PURE__ */ n(
16
16
  "img",
17
17
  {
18
18
  alt: "ENS Avatar",
19
19
  className: "flex-none rounded-full object-contain",
20
- src: u,
21
- style: e
20
+ src: c,
21
+ style: s
22
22
  }
23
23
  );
24
24
  }
@@ -3,7 +3,7 @@ import { useState as m } from "react";
3
3
  import { twMerge as d } from "tailwind-merge";
4
4
  import { READ as c, WRITE as R } from "../../constants/nodes.js";
5
5
  import { useDrag as j } from "../../hooks/drag-and-drop/use-drag.js";
6
- import { nodeOptionsMap as A, defaultFileOptions as F, DUPLICATE as P, RENAME as L, DELETE as U } from "../../constants/options.js";
6
+ import { nodeOptionsMap as A, defaultFileOptions as F, DELETE as P, RENAME as L, DUPLICATE as U } from "../../constants/options.js";
7
7
  import { getDocumentIconSrc as V } from "../../utils/get-document-icon-src.js";
8
8
  import { SyncStatusIcon as z } from "../status-icon/sync-status-icon.js";
9
9
  import { ConnectDropdownMenu as H } from "../dropdown-menu/dropdown-menu.js";
@@ -20,9 +20,9 @@ function oe(u) {
20
20
  onDeleteNode: x,
21
21
  isAllowedToCreateDocuments: v
22
22
  } = u, [y, s] = m(c), [a, i] = m(!1), { dragProps: S } = j({ uiNode: o }), l = y === c, w = {
23
- [P]: () => g(o),
23
+ [U]: () => g(o),
24
24
  [L]: () => s(R),
25
- [U]: () => x(o)
25
+ [P]: () => x(o)
26
26
  }, D = Object.entries(A).map(([n, t]) => ({
27
27
  ...t,
28
28
  id: n
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
3
  import { twMerge as p } from "tailwind-merge";
4
4
  import { useDrop as P } from "../../hooks/drag-and-drop/use-drop.js";
5
- import { nodeOptionsMap as j, defaultFolderOptions as z, DUPLICATE as L, RENAME as U, DELETE as V } from "../../constants/options.js";
5
+ import { nodeOptionsMap as j, defaultFolderOptions as z, DELETE as L, RENAME as U, DUPLICATE as V } from "../../constants/options.js";
6
6
  import { READ as l, WRITE as H } from "../../constants/nodes.js";
7
7
  import { useDrag as W } from "../../hooks/drag-and-drop/use-drag.js";
8
8
  import { NodeInput as $ } from "../node-input/node-input.js";
@@ -37,9 +37,9 @@ function te(c) {
37
37
  C(n);
38
38
  }
39
39
  const k = {
40
- [L]: () => g(n),
40
+ [V]: () => g(n),
41
41
  [U]: () => d(H),
42
- [V]: () => v(n)
42
+ [L]: () => v(n)
43
43
  }, A = Object.entries(j).map(([o, t]) => ({
44
44
  ...t,
45
45
  id: o
@@ -1,8 +1,8 @@
1
- import { jsx as r, jsxs as a, Fragment as h } from "react/jsx-runtime";
2
- import { useState as o, useEffect as v } from "react";
1
+ import { jsx as r, jsxs as n, Fragment as v } from "react/jsx-runtime";
2
+ import { useState as o, useEffect as h } from "react";
3
3
  import { useForm as x } from "react-hook-form";
4
4
  import { useDebounceValue as B } from "usehooks-ts";
5
- import { SWITCHBOARD as g, PUBLIC as F } from "../../constants/drives.js";
5
+ import { PUBLIC as F, SWITCHBOARD as g } from "../../constants/drives.js";
6
6
  import { DriveName as P } from "./inputs/drive-name.js";
7
7
  import { Divider as k } from "../divider/divider.js";
8
8
  import { Disclosure as R } from "../disclosure/disclosure.js";
@@ -17,23 +17,23 @@ function _(s) {
17
17
  availableOffline: (e == null ? void 0 : e.availableOffline) ?? !1
18
18
  }
19
19
  });
20
- v(() => {
20
+ h(() => {
21
21
  L(i);
22
- }, [i]), v(() => {
22
+ }, [i]), h(() => {
23
23
  if (d(!1), l === "") return;
24
24
  t().catch(console.error);
25
25
  async function t() {
26
26
  try {
27
- const { id: n, name: V } = await S(l);
27
+ const { id: a, name: V } = await S(l);
28
28
  m({
29
- id: n,
29
+ id: a,
30
30
  name: V,
31
31
  sharingType: c,
32
32
  location: g,
33
33
  availableOffline: !0
34
34
  }), b("availableOffline", !0), f(!0), p("");
35
- } catch (n) {
36
- m(void 0), f(!1), p(n.message);
35
+ } catch (a) {
36
+ m(void 0), f(!1), p(a.message);
37
37
  }
38
38
  }
39
39
  }, [l, b, c]);
@@ -44,10 +44,10 @@ function _(s) {
44
44
  url: l
45
45
  });
46
46
  }
47
- return /* @__PURE__ */ r("form", { onSubmit: A(I), children: w ? /* @__PURE__ */ a(h, { children: [
47
+ return /* @__PURE__ */ r("form", { onSubmit: A(I), children: w ? /* @__PURE__ */ n(v, { children: [
48
48
  /* @__PURE__ */ r(P, { driveName: (e == null ? void 0 : e.name) ?? "New drive" }),
49
49
  /* @__PURE__ */ r(k, { className: "my-3" }),
50
- /* @__PURE__ */ a(
50
+ /* @__PURE__ */ n(
51
51
  R,
52
52
  {
53
53
  isOpen: u,
@@ -60,7 +60,7 @@ function _(s) {
60
60
  }
61
61
  ),
62
62
  /* @__PURE__ */ r(O, { className: "mt-4 w-full", color: "dark", type: "submit", children: "Add new drive" })
63
- ] }) : /* @__PURE__ */ a(h, { children: [
63
+ ] }) : /* @__PURE__ */ n(v, { children: [
64
64
  /* @__PURE__ */ r(
65
65
  q,
66
66
  {
@@ -8,10 +8,10 @@ import { Label as C } from "./inputs/label.js";
8
8
  import { SharingTypeFormInput as I } from "./inputs/sharing-type-form-input.js";
9
9
  import { Disclosure as f } from "../disclosure/disclosure.js";
10
10
  import { LocationInfo as L } from "./inputs/location-info.js";
11
- import { AvailableOfflineToggle as T } from "./inputs/available-offline-toggle.js";
12
- import { Icon as x } from "../../../powerhouse/components/icon/icon.js";
13
- import { Button as F } from "../../../powerhouse/components/button/button.js";
14
- import { PUBLIC as B, SWITCHBOARD as j } from "../../constants/drives.js";
11
+ import { SWITCHBOARD as T, PUBLIC as x } from "../../constants/drives.js";
12
+ import { AvailableOfflineToggle as F } from "./inputs/available-offline-toggle.js";
13
+ import { Icon as B } from "../../../powerhouse/components/icon/icon.js";
14
+ import { Button as j } from "../../../powerhouse/components/button/button.js";
15
15
  function K(m) {
16
16
  const { uiDriveNode: c, onSubmit: p } = m, { name: h, sharingType: n, availableOffline: u } = c, [a, g] = i(!1), [r, D] = i(!1), [d, s] = i(!1), { register: l, handleSubmit: b, control: S } = N({
17
17
  mode: "onBlur",
@@ -20,7 +20,7 @@ function K(m) {
20
20
  sharingType: n,
21
21
  availableOffline: u
22
22
  }
23
- }), v = n === B ? j : n;
23
+ }), v = n === x ? T : n;
24
24
  return /* @__PURE__ */ o("form", { onSubmit: b(p), children: [
25
25
  /* @__PURE__ */ e(O, { ...l("name") }),
26
26
  /* @__PURE__ */ e(t, { className: "my-4" }),
@@ -35,7 +35,7 @@ function K(m) {
35
35
  title: "Location",
36
36
  children: [
37
37
  /* @__PURE__ */ e(L, { location: v }),
38
- /* @__PURE__ */ e(T, { ...l("availableOffline") })
38
+ /* @__PURE__ */ e(F, { ...l("availableOffline") })
39
39
  ]
40
40
  }
41
41
  ),
@@ -53,7 +53,7 @@ function K(m) {
53
53
  onClick: () => s(!0),
54
54
  type: "button",
55
55
  children: [
56
- /* @__PURE__ */ e(x, { name: "Trash" }),
56
+ /* @__PURE__ */ e(B, { name: "Trash" }),
57
57
  "Delete drive"
58
58
  ]
59
59
  }
@@ -62,7 +62,7 @@ function K(m) {
62
62
  ),
63
63
  d && r ? /* @__PURE__ */ e(w, { ...m, onCancel: () => s(!1) }) : /* @__PURE__ */ o(y, { children: [
64
64
  /* @__PURE__ */ e(t, { className: "my-3" }),
65
- /* @__PURE__ */ e(F, { className: "mb-4 w-full", type: "submit", children: "Confirm" })
65
+ /* @__PURE__ */ e(j, { className: "mb-4 w-full", type: "submit", children: "Confirm" })
66
66
  ] })
67
67
  ] });
68
68
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
- import { object as f, string as r, record as p } from "zod";
3
+ import { object as f, record as p, string as r } from "zod";
4
4
  import { Disclosure as u } from "../../../disclosure/disclosure.js";
5
5
  const c = [
6
6
  "@powerhousedao/design-system",
@@ -2,14 +2,14 @@ import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
2
  import { useState as r, useCallback as g } from "react";
3
3
  import { Input as x } from "../../../../../scalars/components/fragments/input/input.js";
4
4
  import { Button as b } from "../../../../../powerhouse/components/button/button.js";
5
- const y = (u) => {
6
- const { onInstall: l, className: h } = u, [s, n] = r(""), [o, c] = r(!1), [e, m] = r(), i = g(() => {
5
+ const y = (h) => {
6
+ const { onInstall: l, className: u } = h, [s, n] = r(""), [o, c] = r(!1), [e, m] = r(), i = g(() => {
7
7
  const t = l(s);
8
8
  t ? (c(!0), t.then(() => n("")).catch(m).finally(() => c(!1))) : (n(""), m(void 0));
9
9
  }, [l, s]), f = g((t) => {
10
10
  n(t.target.value);
11
11
  }, []), p = e ? typeof e == "string" ? e : e instanceof Error ? e.message : e : " ";
12
- return /* @__PURE__ */ d("div", { className: h, children: [
12
+ return /* @__PURE__ */ d("div", { className: u, children: [
13
13
  /* @__PURE__ */ a("h3", { className: "mb-4 font-semibold text-gray-900", children: "Install Package" }),
14
14
  /* @__PURE__ */ d("div", { className: "flex items-center gap-4", children: [
15
15
  /* @__PURE__ */ a(
@@ -1,12 +1,12 @@
1
1
  function c(t) {
2
- var s, r, p, a, d, h;
3
- const i = [], n = /* @__PURE__ */ new Set();
2
+ var n, o, p, a, d, h;
3
+ const i = [], s = /* @__PURE__ */ new Set();
4
4
  for (const e of t) {
5
- const o = e.timestamp.split("T")[0];
6
- n.has(o) || (n.add(o), i.push({
5
+ const r = e.timestamp.split("T")[0];
6
+ s.has(r) || (s.add(r), i.push({
7
7
  type: "day",
8
8
  height: 32,
9
- timestamp: o
9
+ timestamp: r
10
10
  })), i.push({
11
11
  type: "revision",
12
12
  height: 46,
@@ -15,10 +15,10 @@ function c(t) {
15
15
  stateHash: e.hash,
16
16
  operationType: e.type,
17
17
  operationInput: e.input ?? {},
18
- address: (r = (s = e.context) == null ? void 0 : s.signer) == null ? void 0 : r.user.address,
18
+ address: (o = (n = e.context) == null ? void 0 : n.signer) == null ? void 0 : o.user.address,
19
19
  chainId: (a = (p = e.context) == null ? void 0 : p.signer) == null ? void 0 : a.user.chainId,
20
20
  timestamp: e.timestamp,
21
- signatures: m(
21
+ signatures: u(
22
22
  ((h = (d = e.context) == null ? void 0 : d.signer) == null ? void 0 : h.signatures) ?? []
23
23
  ),
24
24
  errors: e.error ? [e.error] : void 0
@@ -32,18 +32,18 @@ function c(t) {
32
32
  }
33
33
  return i;
34
34
  }
35
- function u(t) {
36
- const [i, n, s, r] = t;
35
+ function m(t) {
36
+ const [i, s, n, o] = t;
37
37
  return {
38
38
  signerAddress: i,
39
- hash: n,
40
- prevStateHash: s,
41
- signatureBytes: r,
39
+ hash: s,
40
+ prevStateHash: n,
41
+ signatureBytes: o,
42
42
  isVerified: !0
43
43
  };
44
44
  }
45
- function m(t) {
46
- return t == null ? void 0 : t.map(u);
45
+ function u(t) {
46
+ return t == null ? void 0 : t.map(m);
47
47
  }
48
48
  export {
49
49
  c as makeRows
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { twMerge as c } from "tailwind-merge";
3
- import { INITIAL_SYNC as r, SYNCING as a, SUCCESS as S, CONFLICT as m, MISSING as I, ERROR as N } from "../../constants/syncing.js";
3
+ import { ERROR as r, MISSING as a, CONFLICT as S, SUCCESS as m, SYNCING as I, INITIAL_SYNC as N } from "../../constants/syncing.js";
4
4
  import { Icon as o } from "../../../powerhouse/components/icon/icon.js";
5
5
  const y = {
6
6
  SYNCING: "Syncing",
@@ -13,58 +13,58 @@ const y = {
13
13
  function R(i) {
14
14
  const { syncStatus: C, className: e, overrideSyncIcons: l = {}, ...s } = i, n = { ...y, ...l };
15
15
  return {
16
- [r]: /* @__PURE__ */ t(
16
+ [N]: /* @__PURE__ */ t(
17
17
  o,
18
18
  {
19
19
  size: 16,
20
20
  ...s,
21
21
  className: c("text-blue-900", e),
22
- name: n[r]
22
+ name: n[N]
23
23
  }
24
24
  ),
25
- [a]: /* @__PURE__ */ t(
25
+ [I]: /* @__PURE__ */ t(
26
26
  o,
27
27
  {
28
28
  size: 16,
29
29
  ...s,
30
30
  className: c("text-blue-900", e),
31
- name: n[a]
31
+ name: n[I]
32
32
  }
33
33
  ),
34
- [S]: /* @__PURE__ */ t(
34
+ [m]: /* @__PURE__ */ t(
35
35
  o,
36
36
  {
37
37
  size: 16,
38
38
  ...s,
39
39
  className: c("text-green-900", e),
40
- name: n[S]
40
+ name: n[m]
41
41
  }
42
42
  ),
43
- [m]: /* @__PURE__ */ t(
43
+ [S]: /* @__PURE__ */ t(
44
44
  o,
45
45
  {
46
46
  size: 16,
47
47
  ...s,
48
48
  className: c("text-orange-900", e),
49
- name: n[m]
49
+ name: n[S]
50
50
  }
51
51
  ),
52
- [I]: /* @__PURE__ */ t(
52
+ [a]: /* @__PURE__ */ t(
53
53
  o,
54
54
  {
55
55
  size: 16,
56
56
  ...s,
57
57
  className: c("text-red-900", e),
58
- name: n[I]
58
+ name: n[a]
59
59
  }
60
60
  ),
61
- [N]: /* @__PURE__ */ t(
61
+ [r]: /* @__PURE__ */ t(
62
62
  o,
63
63
  {
64
64
  size: 16,
65
65
  ...s,
66
66
  className: c("text-red-900", e),
67
- name: n[N]
67
+ name: n[r]
68
68
  }
69
69
  )
70
70
  }[C];
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { Root as p, Trigger as c, Portal as h, Content as m, Provider as g } from "@radix-ui/react-tooltip";
2
+ import { Provider as p, Root as c, Trigger as h, Portal as m, Content as g } from "@radix-ui/react-tooltip";
3
3
  import { twMerge as u } from "tailwind-merge";
4
4
  function w(r) {
5
5
  const {
@@ -12,16 +12,16 @@ function w(r) {
12
12
  ...s
13
13
  } = r;
14
14
  return /* @__PURE__ */ a(
15
- p,
15
+ c,
16
16
  {
17
17
  defaultOpen: i,
18
18
  delayDuration: 0,
19
19
  onOpenChange: d,
20
20
  open: n,
21
21
  children: [
22
- /* @__PURE__ */ o(c, { asChild: !0, children: e }),
23
- /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
24
- m,
22
+ /* @__PURE__ */ o(h, { asChild: !0, children: e }),
23
+ /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(
24
+ g,
25
25
  {
26
26
  ...s,
27
27
  className: u(
@@ -35,7 +35,7 @@ function w(r) {
35
35
  }
36
36
  );
37
37
  }
38
- const C = g;
38
+ const C = p;
39
39
  export {
40
40
  w as Tooltip,
41
41
  C as TooltipProvider
@@ -3,7 +3,7 @@ import { useState as m, createElement as xe } from "react";
3
3
  import { twMerge as a } from "tailwind-merge";
4
4
  import { DropIndicator as Te } from "./drop-indicator.js";
5
5
  import { READ as u, FILE as x, DRIVE as T, WRITE as p, CREATE as f } from "../../constants/nodes.js";
6
- import { nodeOptionsMap as ye, DUPLICATE as Ce, NEW_FOLDER as we, RENAME as Me, DELETE as Oe, SETTINGS as Re, ADD_TRIGGER as Se, REMOVE_TRIGGER as ke, ADD_INVALID_TRIGGER as be } from "../../constants/options.js";
6
+ import { nodeOptionsMap as ye, ADD_INVALID_TRIGGER as Ce, REMOVE_TRIGGER as we, ADD_TRIGGER as Me, SETTINGS as Oe, DELETE as Re, RENAME as Se, NEW_FOLDER as ke, DUPLICATE as be } from "../../constants/options.js";
7
7
  import { useDrag as Ae } from "../../hooks/drag-and-drop/use-drag.js";
8
8
  import { useDrop as Le } from "../../hooks/drag-and-drop/use-drop.js";
9
9
  import { LOCAL as Fe, CLOUD as Pe, PUBLIC as Ge } from "../../constants/drives.js";
@@ -38,20 +38,20 @@ function ze(s) {
38
38
  "text-gray-600 transition-colors group-hover/node:text-gray-900",
39
39
  O && "text-gray-900"
40
40
  ), re = {
41
- [Ce]: () => z(e),
42
- [we]: () => {
41
+ [be]: () => z(e),
42
+ [ke]: () => {
43
43
  h(e), C(!0), l(f);
44
44
  },
45
- [Me]: () => l(p),
46
- [Oe]: () => {
45
+ [Se]: () => l(p),
46
+ [Re]: () => {
47
47
  e.kind === T ? U(e) : H(e);
48
48
  },
49
- [Re]: () => {
49
+ [Oe]: () => {
50
50
  e.kind === T && $(e);
51
51
  },
52
- [Se]: () => W(e.driveId),
53
- [ke]: () => B(e.driveId),
54
- [be]: () => K(e.driveId)
52
+ [Me]: () => W(e.driveId),
53
+ [we]: () => B(e.driveId),
54
+ [Ce]: () => K(e.driveId)
55
55
  }, ie = L[e.sharingType][e.kind], se = Object.entries(ye).map(([n, i]) => ({
56
56
  ...i,
57
57
  id: n
@@ -1,11 +1,11 @@
1
1
  import o from "../../assets/icons/budget.png.js";
2
2
  import m from "../../assets/icons/rwa-report.png.js";
3
3
  import t from "../../assets/icons/template.png.js";
4
- import { BUDGET as r, DEFAULT as e, MAKERDAO_RWA_PORTFOLIO as f } from "./documents.js";
4
+ import { MAKERDAO_RWA_PORTFOLIO as r, DEFAULT as e, BUDGET as f } from "./documents.js";
5
5
  const g = {
6
- [r]: o,
6
+ [f]: o,
7
7
  [e]: t,
8
- [f]: m
8
+ [r]: m
9
9
  };
10
10
  export {
11
11
  g as iconMap
@@ -1,26 +1,26 @@
1
- import { useState as i, useCallback as s, useMemo as u } from "react";
2
- import { UI_NODE as D, DRIVE as f } from "../../constants/nodes.js";
1
+ import { useState as i, useCallback as s, useMemo as D } from "react";
2
+ import { UI_NODE as l, DRIVE as u } from "../../constants/nodes.js";
3
3
  function m(g) {
4
- const { uiNode: r } = g, [a, d] = i(!1), e = s(
5
- (o) => {
6
- o.dataTransfer.setData(D, JSON.stringify(r));
4
+ const { uiNode: r } = g, [a, d] = i(!1), o = s(
5
+ (n) => {
6
+ n.dataTransfer.setData(l, JSON.stringify(r));
7
7
  },
8
8
  [r]
9
- ), n = s(() => {
9
+ ), t = s(() => {
10
10
  d(!1);
11
- }, []), t = !!r && r.kind !== f;
12
- return u(() => ({
11
+ }, []), e = !!r && r.kind !== u;
12
+ return D(() => ({
13
13
  isDragging: a,
14
- dragProps: t ? {
14
+ dragProps: e ? {
15
15
  draggable: !0,
16
- onDragStart: e,
17
- onDragEnd: n
16
+ onDragStart: o,
17
+ onDragEnd: t
18
18
  } : {
19
19
  draggable: !1,
20
20
  onDragStart: void 0,
21
21
  onDragEnd: void 0
22
22
  }
23
- }), [t, a, n, e]);
23
+ }), [e, a, t, o]);
24
24
  }
25
25
  export {
26
26
  m as useDrag
@@ -1,40 +1,40 @@
1
- import { useState as F, useCallback as s, useMemo as N } from "react";
2
- import { FILE as O, UI_NODE as T } from "../../constants/nodes.js";
3
- function P(n) {
4
- const { uiNode: e, onAddFile: r, onCopyNode: i, onMoveNode: d } = n, [p, a] = F(!1), l = !!e && e.kind !== O, f = s((o) => {
5
- o.preventDefault(), a(!0);
6
- }, []), u = s(() => {
7
- a(!1);
8
- }, []), c = s(
9
- async (o) => {
10
- if (o.preventDefault(), o.stopPropagation(), !e) return;
11
- const D = w(o.dataTransfer.items).filter(
1
+ import { useState as F, useCallback as n, useMemo as v } from "react";
2
+ import { FILE as N, UI_NODE as O } from "../../constants/nodes.js";
3
+ function A(a) {
4
+ const { uiNode: o, onAddFile: r, onCopyNode: i, onMoveNode: p } = a, [d, s] = F(!1), l = !!o && o.kind !== N, f = n((e) => {
5
+ e.preventDefault(), s(!0);
6
+ }, []), c = n(() => {
7
+ s(!1);
8
+ }, []), u = n(
9
+ async (e) => {
10
+ if (e.preventDefault(), e.stopPropagation(), !o) return;
11
+ const D = T(e.dataTransfer.items).filter(
12
12
  Boolean
13
13
  );
14
14
  if (D.length)
15
15
  for (const t of D)
16
- t && await r(t, e);
16
+ t && await r(t, o);
17
17
  else {
18
- const t = o.getModifierState("Alt"), m = o.dataTransfer.getData(T), g = JSON.parse(m);
19
- t ? await i(g, e) : await d(g, e);
18
+ const t = e.getModifierState("Alt"), m = e.dataTransfer.getData(O), g = JSON.parse(m);
19
+ t ? await i(g, o) : await p(g, o);
20
20
  }
21
- a(!1);
21
+ s(!1);
22
22
  },
23
- [r, i, d, e]
23
+ [r, i, p, o]
24
24
  );
25
- return N(() => ({
26
- isDropTarget: p,
27
- dropProps: l ? { onDragOver: f, onDragLeave: u, onDrop: c } : {
25
+ return v(() => ({
26
+ isDropTarget: d,
27
+ dropProps: l ? { onDragOver: f, onDragLeave: c, onDrop: u } : {
28
28
  onDragOver: void 0,
29
29
  onDragLeave: void 0,
30
30
  onDrop: void 0
31
31
  }
32
- }), [l, p, u, f, c]);
32
+ }), [l, d, c, f, u]);
33
33
  }
34
- function w(n) {
35
- return Array.from(n).map((r) => r.kind === "file" ? r.getAsFile() : null).filter(Boolean);
34
+ function T(a) {
35
+ return Array.from(a).map((r) => r.kind === "file" ? r.getAsFile() : null).filter(Boolean);
36
36
  }
37
37
  export {
38
- P as useDrop
38
+ A as useDrop
39
39
  };
40
40
  //# sourceMappingURL=use-drop.js.map
@@ -1,9 +1,9 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { Root as e, Trigger as p, Portal as d, Content as m, Label as u, Item as c } from "@radix-ui/react-dropdown-menu";
2
+ import { Root as e, Trigger as p, Label as d, Item as m, Portal as u, Content as c } from "@radix-ui/react-dropdown-menu";
3
3
  import { forwardRef as f } from "react";
4
4
  const M = e, a = p, g = f(function({ children: n, ...r }, t) {
5
- return /* @__PURE__ */ o(d, { children: /* @__PURE__ */ o(m, { ...r, ref: t, children: n }) });
6
- }), l = u, C = c;
5
+ return /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(c, { ...r, ref: t, children: n }) });
6
+ }), l = d, C = m;
7
7
  export {
8
8
  M as DropdownMenu,
9
9
  g as DropdownMenuContent,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as y, jsx as i } from "react/jsx-runtime";
2
2
  import { useState as E, useEffect as o, useRef as d } from "react";
3
- import { inputStyle as c, typographySizes as x } from "./styles.js";
3
+ import { typographySizes as x, inputStyle as c } from "./styles.js";
4
4
  function k(t) {
5
5
  const [n, u] = E({
6
6
  value: t.value || "",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as y, useEffect as c, useRef as x } from "react";
3
- import { inputStyle as f, typographySizes as E } from "./stylesVariant.js";
3
+ import { typographySizes as E, inputStyle as f } from "./stylesVariant.js";
4
4
  function F(e) {
5
5
  const [l, a] = y({
6
6
  value: e.value || "",
@@ -6,8 +6,8 @@ import { RWATableTextInput as R } from "./text-input.js";
6
6
  function T(r) {
7
7
  const {
8
8
  name: o,
9
- control: n,
10
- currency: a,
9
+ control: a,
10
+ currency: n,
11
11
  rules: l,
12
12
  errorMessage: t,
13
13
  errorMessageClassName: i,
@@ -20,13 +20,13 @@ function T(r) {
20
20
  decimalScale: c = 2,
21
21
  thousandSeparator: p = ",",
22
22
  fixedDecimalScale: d = !0
23
- } = m ?? {}, f = a === "USD" ? "$" : void 0, g = r["aria-invalid"] === "true";
23
+ } = m ?? {}, f = n === "USD" ? "$" : void 0, g = r["aria-invalid"] === "true";
24
24
  return /* @__PURE__ */ e(
25
25
  S,
26
26
  {
27
- control: n,
27
+ control: a,
28
28
  name: o,
29
- render: ({ field: { onChange: x, value: h, ref: N } }) => /* @__PURE__ */ C(I, { children: [
29
+ render: ({ field: { onChange: x, value: h, ref: v } }) => /* @__PURE__ */ C(I, { children: [
30
30
  /* @__PURE__ */ e(
31
31
  F,
32
32
  {
@@ -35,8 +35,8 @@ function T(r) {
35
35
  customInput: R,
36
36
  decimalScale: c,
37
37
  fixedDecimalScale: d,
38
- getInputRef: N,
39
- onValueChange: ({ floatValue: v }) => x(v),
38
+ getInputRef: v,
39
+ onValueChange: ({ floatValue: N }) => x(N),
40
40
  prefix: f,
41
41
  thousandSeparator: p,
42
42
  value: h
@@ -1,4 +1,4 @@
1
- import { jsx as r, Fragment as i, jsxs as g } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as g, Fragment as i } from "react/jsx-runtime";
2
2
  import { Controller as h } from "react-hook-form";
3
3
  import { twMerge as p } from "tailwind-merge";
4
4
  import { Combobox as C } from "../../../connect/components/combobox/combobox.js";
@@ -1,8 +1,8 @@
1
- import { RWACreateItemModal as e } from "./create-item-modal.js";
2
- import { RWADeleteItemModal as t } from "./delete-item-modal.js";
1
+ import { RWADeleteItemModal as e } from "./delete-item-modal.js";
2
+ import { RWACreateItemModal as t } from "./create-item-modal.js";
3
3
  const r = {
4
- createItem: e,
5
- deleteItem: t
4
+ createItem: t,
5
+ deleteItem: e
6
6
  };
7
7
  export {
8
8
  r as modals