@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.
- package/dist/connect/components/ens-avatar/ens-avatar.js +10 -10
- package/dist/connect/components/file-item/file-item.js +3 -3
- package/dist/connect/components/folder-item/folder-item.js +3 -3
- package/dist/connect/components/form/add-remote-drive-form.js +12 -12
- package/dist/connect/components/form/drive-settings-form.js +8 -8
- package/dist/connect/components/modal/settings-modal/dependency-versions/dependency-versions.js +1 -1
- package/dist/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js +3 -3
- package/dist/connect/components/revision-history/utils.js +14 -14
- package/dist/connect/components/status-icon/sync-status-icon.js +13 -13
- package/dist/connect/components/tooltip/tooltip.js +6 -6
- package/dist/connect/components/tree-view/tree-view.js +9 -9
- package/dist/connect/constants/icons.js +3 -3
- package/dist/connect/hooks/drag-and-drop/use-drag.js +12 -12
- package/dist/connect/hooks/drag-and-drop/use-drop.js +23 -23
- package/dist/powerhouse/components/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/powerhouse/components/legacy/textInput.js +1 -1
- package/dist/powerhouse/components/legacy/textInputVariant.js +1 -1
- package/dist/rwa/components/inputs/number-input.js +7 -7
- package/dist/rwa/components/inputs/select.js +1 -1
- package/dist/rwa/components/modal/modals.js +4 -4
- package/dist/rwa/components/table/accounts/accounts-table.js +10 -10
- package/dist/rwa/components/table/base/table.js +18 -18
- package/dist/rwa/components/table/transactions/group-transactions-table.js +8 -8
- package/dist/rwa/context/editor-context.js +24 -24
- package/dist/rwa/hooks/useColumnPriority.js +16 -16
- package/dist/rwa/hooks/useFormInputs.js +2 -2
- package/dist/rwa/hooks/useTableHeight.js +13 -13
- package/dist/rwa/utils/table.js +48 -48
- package/dist/scalars/components/amount-field/amount-field-validations.js +12 -12
- package/dist/scalars/components/amount-field/amount-field.js +19 -19
- package/dist/scalars/components/amount-field/use-amount-field.js +108 -108
- package/dist/scalars/components/amount-field/utils.js +25 -25
- package/dist/scalars/components/country-code-field/country-code-field.js +10 -10
- package/dist/scalars/components/currency-code-field/currency-code-field.js +4 -4
- package/dist/scalars/components/date-picker-field/date-picker-field.js +8 -8
- package/dist/scalars/components/date-picker-field/date-picker-validations.js +5 -5
- package/dist/scalars/components/date-picker-field/use-date-picker-field.js +28 -28
- package/dist/scalars/components/fragments/radio-group-field/radio-group-field.js +26 -26
- package/dist/scalars/components/fragments/select-field/content.js +16 -16
- package/dist/scalars/components/fragments/select-field/select-field.js +17 -17
- package/dist/scalars/components/fragments/text-field/text-field.js +30 -30
- package/dist/scalars/components/fragments/textarea-field/textarea-field.js +20 -20
- package/dist/scalars/components/fragments/tooltip/tooltip.js +16 -16
- package/dist/scalars/components/fragments/value-transformer/value-transformer.js +2 -2
- package/dist/scalars/components/fragments/with-field-validation/with-field-validation.js +25 -25
- package/dist/scalars/components/id-field/id-field.js +9 -9
- package/dist/scalars/components/number-field/number-field.js +16 -16
- package/dist/scalars/components/number-field/use-number-field.js +26 -26
- package/dist/scalars/components/number-field/utils.js +1 -1
- package/dist/scalars/components/number-field/utils.js.map +1 -1
- package/dist/scalars/components/phid-field/phid-field.js +78 -78
- package/dist/scalars/components/phid-field/phid-field.js.map +1 -1
- package/dist/scalars/components/phid-field/phid-input-container.js +3 -3
- package/dist/scalars/components/phid-field/use-phid-field.js +60 -60
- package/dist/scalars/components/sidebar/sidebar.js +1 -1
- package/dist/scalars/components/sidebar/subcomponents/sidebar-provider.js +68 -68
- package/dist/scalars/components/sidebar/subcomponents/sidebar-provider.js.map +1 -1
- package/dist/scalars/components/sidebar/use-sidebar-resize.js +13 -13
- package/dist/scalars/components/sidebar/utils.js +18 -18
- package/dist/scalars/components/time-picker-field/time-picker-field.js +10 -10
- package/dist/scalars/components/time-picker-field/time-picker-validations.js +2 -2
- package/dist/scalars/components/time-picker-field/use-time-picker-field.js +13 -13
- package/dist/scalars/components/time-picker-field/utils.js +25 -25
- package/dist/scalars/components/url-field/url-field.js +12 -12
- package/dist/scalars/lib/deep-equal.js +13 -13
- package/dist/scalars/lib/value-cast.js +5 -5
- package/dist/src/connect/components/home-screen/home-screen-add-drive-item/home-screen-add-drive-item.d.ts.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.d.ts.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-add-drive-item.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-item.d.ts.map +1 -1
- package/dist/src/connect/utils/get-folder-status.d.ts.map +1 -1
- package/dist/src/powerhouse/components/legacy/styles.d.ts.map +1 -1
- package/dist/src/powerhouse/components/legacy/stylesVariant.d.ts.map +1 -1
- package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/amount-field/use-amount-field.d.ts.map +1 -1
- package/dist/src/scalars/components/amount-field/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/calendar-date-header/calendar-date-header.d.ts.map +1 -1
- package/dist/src/scalars/components/date-picker-field/use-date-picker-field.d.ts.map +1 -1
- package/dist/src/scalars/components/date-picker-field/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/date-time-picker-contet.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/use-date-time-picker.d.ts.map +1 -1
- package/dist/src/scalars/components/form/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts.map +1 -1
- package/dist/src/scalars/components/number-field/number-field-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/number-field/use-number-field.d.ts.map +1 -1
- package/dist/src/scalars/components/phid-field/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/sidebar/subcomponents/sidebar-content-area.d.ts.map +1 -1
- package/dist/src/scalars/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
- package/dist/src/scalars/components/sidebar/subcomponents/sidebar-provider.d.ts.map +1 -1
- package/dist/src/scalars/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
- package/dist/src/scalars/components/sidebar/use-sidebar-resize.d.ts.map +1 -1
- package/dist/src/scalars/components/sidebar/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/time-picker-field/time-picker-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/time-picker-field/use-time-picker-field.d.ts.map +1 -1
- package/dist/src/scalars/components/time-picker-field/utils.d.ts.map +1 -1
- package/dist/src/scalars/components/url-field/url-favicon.d.ts.map +1 -1
- package/dist/src/scalars/components/url-field/useURLWarnings.d.ts.map +1 -1
- package/dist/src/scalars/lib/share-number-validations.d.ts.map +1 -1
- package/dist/src/scalars/lib/testing.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useEnsName as
|
|
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,
|
|
5
|
+
const { address: r, chainId: i = 1, size: a = "14px" } = o, s = {
|
|
6
6
|
width: a,
|
|
7
7
|
height: a
|
|
8
|
-
},
|
|
9
|
-
return
|
|
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:
|
|
13
|
+
style: s
|
|
14
14
|
}
|
|
15
|
-
) : /* @__PURE__ */
|
|
15
|
+
) : /* @__PURE__ */ n(
|
|
16
16
|
"img",
|
|
17
17
|
{
|
|
18
18
|
alt: "ENS Avatar",
|
|
19
19
|
className: "flex-none rounded-full object-contain",
|
|
20
|
-
src:
|
|
21
|
-
style:
|
|
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,
|
|
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
|
-
[
|
|
23
|
+
[U]: () => g(o),
|
|
24
24
|
[L]: () => s(R),
|
|
25
|
-
[
|
|
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,
|
|
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
|
-
[
|
|
40
|
+
[V]: () => g(n),
|
|
41
41
|
[U]: () => d(H),
|
|
42
|
-
[
|
|
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
|
|
2
|
-
import { useState as o, useEffect as
|
|
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 {
|
|
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
|
-
|
|
20
|
+
h(() => {
|
|
21
21
|
L(i);
|
|
22
|
-
}, [i]),
|
|
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:
|
|
27
|
+
const { id: a, name: V } = await S(l);
|
|
28
28
|
m({
|
|
29
|
-
id:
|
|
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 (
|
|
36
|
-
m(void 0), f(!1), p(
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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 ===
|
|
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(
|
|
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(
|
|
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(
|
|
65
|
+
/* @__PURE__ */ e(j, { className: "mb-4 w-full", type: "submit", children: "Confirm" })
|
|
66
66
|
] })
|
|
67
67
|
] });
|
|
68
68
|
}
|
package/dist/connect/components/modal/settings-modal/dependency-versions/dependency-versions.js
CHANGED
|
@@ -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,
|
|
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",
|
package/dist/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js
CHANGED
|
@@ -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 = (
|
|
6
|
-
const { onInstall: l, className:
|
|
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:
|
|
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
|
|
3
|
-
const i = [],
|
|
2
|
+
var n, o, p, a, d, h;
|
|
3
|
+
const i = [], s = /* @__PURE__ */ new Set();
|
|
4
4
|
for (const e of t) {
|
|
5
|
-
const
|
|
6
|
-
|
|
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:
|
|
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: (
|
|
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:
|
|
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
|
|
36
|
-
const [i,
|
|
35
|
+
function m(t) {
|
|
36
|
+
const [i, s, n, o] = t;
|
|
37
37
|
return {
|
|
38
38
|
signerAddress: i,
|
|
39
|
-
hash:
|
|
40
|
-
prevStateHash:
|
|
41
|
-
signatureBytes:
|
|
39
|
+
hash: s,
|
|
40
|
+
prevStateHash: n,
|
|
41
|
+
signatureBytes: o,
|
|
42
42
|
isVerified: !0
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return t == null ? void 0 : t.map(
|
|
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 {
|
|
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
|
-
[
|
|
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[
|
|
22
|
+
name: n[N]
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
[
|
|
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[
|
|
31
|
+
name: n[I]
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
[
|
|
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[
|
|
40
|
+
name: n[m]
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
[
|
|
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[
|
|
49
|
+
name: n[S]
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
[
|
|
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[
|
|
58
|
+
name: n[a]
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
[
|
|
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[
|
|
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 {
|
|
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
|
-
|
|
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(
|
|
23
|
-
/* @__PURE__ */ o(
|
|
24
|
-
|
|
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 =
|
|
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,
|
|
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
|
-
[
|
|
42
|
-
[
|
|
41
|
+
[be]: () => z(e),
|
|
42
|
+
[ke]: () => {
|
|
43
43
|
h(e), C(!0), l(f);
|
|
44
44
|
},
|
|
45
|
-
[
|
|
46
|
-
[
|
|
45
|
+
[Se]: () => l(p),
|
|
46
|
+
[Re]: () => {
|
|
47
47
|
e.kind === T ? U(e) : H(e);
|
|
48
48
|
},
|
|
49
|
-
[
|
|
49
|
+
[Oe]: () => {
|
|
50
50
|
e.kind === T && $(e);
|
|
51
51
|
},
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
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 {
|
|
4
|
+
import { MAKERDAO_RWA_PORTFOLIO as r, DEFAULT as e, BUDGET as f } from "./documents.js";
|
|
5
5
|
const g = {
|
|
6
|
-
[
|
|
6
|
+
[f]: o,
|
|
7
7
|
[e]: t,
|
|
8
|
-
[
|
|
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
|
|
2
|
-
import { UI_NODE as
|
|
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),
|
|
5
|
-
(
|
|
6
|
-
|
|
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
|
-
),
|
|
9
|
+
), t = s(() => {
|
|
10
10
|
d(!1);
|
|
11
|
-
}, []),
|
|
12
|
-
return
|
|
11
|
+
}, []), e = !!r && r.kind !== u;
|
|
12
|
+
return D(() => ({
|
|
13
13
|
isDragging: a,
|
|
14
|
-
dragProps:
|
|
14
|
+
dragProps: e ? {
|
|
15
15
|
draggable: !0,
|
|
16
|
-
onDragStart:
|
|
17
|
-
onDragEnd:
|
|
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
|
-
}), [
|
|
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
|
|
2
|
-
import { FILE as
|
|
3
|
-
function
|
|
4
|
-
const { uiNode:
|
|
5
|
-
|
|
6
|
-
}, []),
|
|
7
|
-
|
|
8
|
-
}, []),
|
|
9
|
-
async (
|
|
10
|
-
if (
|
|
11
|
-
const D =
|
|
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,
|
|
16
|
+
t && await r(t, o);
|
|
17
17
|
else {
|
|
18
|
-
const t =
|
|
19
|
-
t ? await i(g,
|
|
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
|
-
|
|
21
|
+
s(!1);
|
|
22
22
|
},
|
|
23
|
-
[r, i,
|
|
23
|
+
[r, i, p, o]
|
|
24
24
|
);
|
|
25
|
-
return
|
|
26
|
-
isDropTarget:
|
|
27
|
-
dropProps: l ? { onDragOver: f, onDragLeave:
|
|
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,
|
|
32
|
+
}), [l, d, c, f, u]);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return Array.from(
|
|
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
|
-
|
|
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,
|
|
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(
|
|
6
|
-
}), l =
|
|
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 {
|
|
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 {
|
|
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:
|
|
10
|
-
currency:
|
|
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 =
|
|
23
|
+
} = m ?? {}, f = n === "USD" ? "$" : void 0, g = r["aria-invalid"] === "true";
|
|
24
24
|
return /* @__PURE__ */ e(
|
|
25
25
|
S,
|
|
26
26
|
{
|
|
27
|
-
control:
|
|
27
|
+
control: a,
|
|
28
28
|
name: o,
|
|
29
|
-
render: ({ field: { onChange: x, value: h, ref:
|
|
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:
|
|
39
|
-
onValueChange: ({ floatValue:
|
|
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,
|
|
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 {
|
|
2
|
-
import {
|
|
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:
|
|
5
|
-
deleteItem:
|
|
4
|
+
createItem: t,
|
|
5
|
+
deleteItem: e
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
r as modals
|