@powerhousedao/design-system 1.2.0 → 1.4.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/document-toolbar/document-toolbar.d.ts +7 -0
- package/dist/connect/components/document-toolbar/document-toolbar.js +43 -0
- package/dist/connect/components/document-toolbar/document-toolbar.js.map +1 -0
- package/dist/connect/components/document-toolbar/index.d.ts +1 -0
- package/dist/connect/components/editor-action-buttons/editor-action-buttons.d.ts +3 -4
- package/dist/connect/components/editor-action-buttons/editor-action-buttons.js.map +1 -1
- package/dist/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.d.ts +2 -3
- package/dist/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js +17 -13
- package/dist/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js.map +1 -1
- package/dist/connect/components/index.d.ts +1 -0
- package/dist/index.js +271 -269
- package/dist/index.js.map +1 -1
- package/dist/rwa/components/table/base/table.js.map +1 -1
- package/dist/rwa/components/tabs/tabs.js +10 -10
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EditorUndoRedoButtonsProps } from '../editor-undo-redo-buttons';
|
|
2
|
+
import { EditorActionButtonsProps } from '../editor-action-buttons';
|
|
3
|
+
export type DocumentToolbarProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & Partial<EditorUndoRedoButtonsProps> & EditorActionButtonsProps;
|
|
7
|
+
export declare const DocumentToolbar: React.FC<DocumentToolbarProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as f } from "tailwind-merge";
|
|
3
|
+
import { EditorUndoRedoButtons as p } from "../editor-undo-redo-buttons/editor-undo-redo-buttons.js";
|
|
4
|
+
import { EditorActionButtons as u } from "../editor-action-buttons/editor-action-buttons.js";
|
|
5
|
+
const j = (r) => {
|
|
6
|
+
const {
|
|
7
|
+
undo: t,
|
|
8
|
+
canUndo: e,
|
|
9
|
+
redo: i,
|
|
10
|
+
canRedo: n,
|
|
11
|
+
title: s,
|
|
12
|
+
onClose: d,
|
|
13
|
+
onExport: c,
|
|
14
|
+
className: m,
|
|
15
|
+
onShowRevisionHistory: l,
|
|
16
|
+
onSwitchboardLinkClick: a
|
|
17
|
+
} = r;
|
|
18
|
+
return /* @__PURE__ */ h("div", { className: f("flex items-center justify-between", m), children: [
|
|
19
|
+
/* @__PURE__ */ o("div", { children: t && i && e && n && /* @__PURE__ */ o(
|
|
20
|
+
p,
|
|
21
|
+
{
|
|
22
|
+
undo: t,
|
|
23
|
+
canUndo: e,
|
|
24
|
+
redo: i,
|
|
25
|
+
canRedo: n
|
|
26
|
+
}
|
|
27
|
+
) }),
|
|
28
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("h2", { className: "text-sm font-semibold", children: s }) }),
|
|
29
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
30
|
+
u,
|
|
31
|
+
{
|
|
32
|
+
onClose: d,
|
|
33
|
+
onExport: c,
|
|
34
|
+
onShowRevisionHistory: l,
|
|
35
|
+
onSwitchboardLinkClick: a
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
] });
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
j as DocumentToolbar
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=document-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-toolbar.js","sources":["../../../../src/connect/components/document-toolbar/document-toolbar.tsx"],"sourcesContent":["import {\n EditorUndoRedoButtons,\n EditorUndoRedoButtonsProps,\n} from \"@/connect/components/editor-undo-redo-buttons\";\nimport {\n EditorActionButtons,\n EditorActionButtonsProps,\n} from \"@/connect/components/editor-action-buttons\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport type DocumentToolbarProps = {\n title?: string;\n className?: string;\n} & Partial<EditorUndoRedoButtonsProps> &\n EditorActionButtonsProps;\n\nexport const DocumentToolbar: React.FC<DocumentToolbarProps> = (props) => {\n const {\n undo,\n canUndo,\n redo,\n canRedo,\n title,\n onClose,\n onExport,\n className,\n onShowRevisionHistory,\n onSwitchboardLinkClick,\n } = props;\n\n return (\n <div className={twMerge(\"flex items-center justify-between\", className)}>\n <div>\n {undo && redo && canUndo && canRedo && (\n <EditorUndoRedoButtons\n undo={undo}\n canUndo={canUndo}\n redo={redo}\n canRedo={canRedo}\n />\n )}\n </div>\n <div>\n <h2 className=\"text-sm font-semibold\">{title}</h2>\n </div>\n <div>\n <EditorActionButtons\n onClose={onClose}\n onExport={onExport}\n onShowRevisionHistory={onShowRevisionHistory}\n onSwitchboardLinkClick={onSwitchboardLinkClick}\n />\n </div>\n </div>\n );\n};\n"],"names":["DocumentToolbar","props","undo","canUndo","redo","canRedo","title","onClose","onExport","className","onShowRevisionHistory","onSwitchboardLinkClick","twMerge","jsx","EditorUndoRedoButtons","EditorActionButtons"],"mappings":";;;;AAgBa,MAAAA,IAAkD,CAACC,MAAU;AAClE,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,wBAAAC;AAAA,EACE,IAAAV;AAEJ,2BACG,OAAI,EAAA,WAAWW,EAAQ,qCAAqCH,CAAS,GACpE,UAAA;AAAA,IAAA,gBAAAI,EAAC,OACE,EAAA,UAAAX,KAAQE,KAAQD,KAAWE,KAC1B,gBAAAQ;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAAZ;AAAA,QACA,SAAAC;AAAA,QACA,MAAAC;AAAA,QACA,SAAAC;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,sBACC,OACC,EAAA,UAAA,gBAAAQ,EAAC,QAAG,WAAU,yBAAyB,aAAM,EAC/C,CAAA;AAAA,sBACC,OACC,EAAA,UAAA,gBAAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,SAAAR;AAAA,QACA,UAAAC;AAAA,QACA,uBAAAE;AAAA,QACA,wBAAAC;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './document-toolbar';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
type
|
|
2
|
-
readonly onSwitchboardLinkClick
|
|
1
|
+
export type EditorActionButtonsProps = {
|
|
2
|
+
readonly onSwitchboardLinkClick?: (() => void) | undefined;
|
|
3
3
|
readonly onExport: () => void;
|
|
4
4
|
readonly onClose: () => void;
|
|
5
5
|
readonly onShowRevisionHistory: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare function EditorActionButtons(props:
|
|
8
|
-
export {};
|
|
7
|
+
export declare function EditorActionButtons(props: EditorActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-action-buttons.js","sources":["../../../../src/connect/components/editor-action-buttons/editor-action-buttons.tsx"],"sourcesContent":["import { Icon } from \"@/powerhouse\";\n\
|
|
1
|
+
{"version":3,"file":"editor-action-buttons.js","sources":["../../../../src/connect/components/editor-action-buttons/editor-action-buttons.tsx"],"sourcesContent":["import { Icon } from \"@/powerhouse\";\n\nexport type EditorActionButtonsProps = {\n readonly onSwitchboardLinkClick?: (() => void) | undefined;\n readonly onExport: () => void;\n readonly onClose: () => void;\n readonly onShowRevisionHistory: () => void;\n};\nexport function EditorActionButtons(props: EditorActionButtonsProps) {\n const { onSwitchboardLinkClick, onExport, onClose, onShowRevisionHistory } =\n props;\n\n return (\n <div className=\"flex gap-x-2\">\n {onSwitchboardLinkClick ? (\n <button\n className=\"flex h-8 items-center gap-x-2 rounded border border-gray-200 px-3 text-sm font-semibold text-gray-900 active:opacity-50\"\n onClick={onSwitchboardLinkClick}\n >\n <Icon name=\"Drive\" size={16} />\n </button>\n ) : null}\n <button\n className=\"flex h-8 items-center gap-x-2 rounded border border-gray-200 px-3 text-sm font-semibold text-gray-900 active:opacity-50\"\n onClick={onExport}\n >\n Export <Icon name=\"Save\" size={16} />\n </button>\n <button\n className=\"flex h-8 items-center gap-x-2 whitespace-nowrap rounded border border-gray-200 px-3 text-sm font-semibold text-gray-900 active:opacity-50\"\n onClick={onShowRevisionHistory}\n >\n Revision history <Icon name=\"History\" size={16} />\n </button>\n <button\n className=\"grid size-8 place-items-center rounded border border-gray-200 active:opacity-50\"\n onClick={onClose}\n >\n <Icon name=\"Xmark\" />\n </button>\n </div>\n );\n}\n"],"names":["EditorActionButtons","props","onSwitchboardLinkClick","onExport","onClose","onShowRevisionHistory","jsxs","jsx","Icon"],"mappings":";;AAQO,SAASA,EAAoBC,GAAiC;AACnE,QAAM,EAAE,wBAAAC,GAAwB,UAAAC,GAAU,SAAAC,GAAS,uBAAAC,MACjDJ;AAGA,SAAA,gBAAAK,EAAC,OAAI,EAAA,WAAU,gBACZ,UAAA;AAAA,IACCJ,IAAA,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,SAASL;AAAA,QAET,UAAC,gBAAAK,EAAAC,GAAA,EAAK,MAAK,SAAQ,MAAM,IAAI;AAAA,MAAA;AAAA,IAAA,IAE7B;AAAA,IACJ,gBAAAF;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,SAASH;AAAA,QACV,UAAA;AAAA,UAAA;AAAA,UACS,gBAAAI,EAAAC,GAAA,EAAK,MAAK,QAAO,MAAM,IAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IACrC;AAAA,IACA,gBAAAF;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,SAASD;AAAA,QACV,UAAA;AAAA,UAAA;AAAA,UACmB,gBAAAE,EAAAC,GAAA,EAAK,MAAK,WAAU,MAAM,IAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAClD;AAAA,IACA,gBAAAD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,SAASH;AAAA,QAET,UAAA,gBAAAG,EAACC,GAAK,EAAA,MAAK,QAAQ,CAAA;AAAA,MAAA;AAAA,IACrB;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
type
|
|
1
|
+
export type EditorUndoRedoButtonsProps = {
|
|
2
2
|
readonly canUndo: boolean;
|
|
3
3
|
readonly canRedo: boolean;
|
|
4
4
|
readonly undo: () => void;
|
|
5
5
|
readonly redo: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare function EditorUndoRedoButtons(props:
|
|
8
|
-
export {};
|
|
7
|
+
export declare function EditorUndoRedoButtons(props: EditorUndoRedoButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { Icon as
|
|
4
|
-
function u(
|
|
5
|
-
const { canUndo: t, canRedo: o, undo:
|
|
2
|
+
import { twMerge as a } from "tailwind-merge";
|
|
3
|
+
import { Icon as n } from "../../../powerhouse/components/icon/icon.js";
|
|
4
|
+
function u(s) {
|
|
5
|
+
const { canUndo: t, canRedo: o, undo: c, redo: d } = s, r = "w-8 h-8 rounded-lg flex justify-center items-center rounded border border-gray-200";
|
|
6
6
|
return /* @__PURE__ */ i("div", { className: "flex gap-x-2 text-gray-500", children: [
|
|
7
|
-
/* @__PURE__ */ e("button", { className:
|
|
8
|
-
|
|
7
|
+
/* @__PURE__ */ e("button", { className: r, disabled: !t, onClick: c, children: /* @__PURE__ */ e(
|
|
8
|
+
n,
|
|
9
9
|
{
|
|
10
|
-
className:
|
|
10
|
+
className: a(
|
|
11
11
|
"-scale-x-100",
|
|
12
|
-
t ? "active:opacity-50" : "text-gray-500"
|
|
12
|
+
t ? "text-gray-900 active:opacity-50" : "text-gray-500"
|
|
13
13
|
),
|
|
14
|
-
name: "RedoArrow"
|
|
14
|
+
name: "RedoArrow",
|
|
15
|
+
size: 18
|
|
15
16
|
}
|
|
16
17
|
) }),
|
|
17
|
-
/* @__PURE__ */ e("button", { className:
|
|
18
|
-
|
|
18
|
+
/* @__PURE__ */ e("button", { className: r, disabled: !o, onClick: d, children: /* @__PURE__ */ e(
|
|
19
|
+
n,
|
|
19
20
|
{
|
|
20
|
-
className:
|
|
21
|
-
|
|
21
|
+
className: a(
|
|
22
|
+
o ? "text-gray-900 active:opacity-50" : "text-gray-500"
|
|
23
|
+
),
|
|
24
|
+
name: "RedoArrow",
|
|
25
|
+
size: 18
|
|
22
26
|
}
|
|
23
27
|
) })
|
|
24
28
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-undo-redo-buttons.js","sources":["../../../../src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.tsx"],"sourcesContent":["import { Icon } from \"@/powerhouse\";\nimport { twMerge } from \"tailwind-merge\";\n\
|
|
1
|
+
{"version":3,"file":"editor-undo-redo-buttons.js","sources":["../../../../src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.tsx"],"sourcesContent":["import { Icon } from \"@/powerhouse\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport type EditorUndoRedoButtonsProps = {\n readonly canUndo: boolean;\n readonly canRedo: boolean;\n readonly undo: () => void;\n readonly redo: () => void;\n};\nexport function EditorUndoRedoButtons(props: EditorUndoRedoButtonsProps) {\n const { canUndo, canRedo, undo, redo } = props;\n const buttonStyles =\n \"w-8 h-8 rounded-lg flex justify-center items-center rounded border border-gray-200\";\n return (\n <div className=\"flex gap-x-2 text-gray-500\">\n <button className={buttonStyles} disabled={!canUndo} onClick={undo}>\n <Icon\n className={twMerge(\n \"-scale-x-100\",\n canUndo ? \"text-gray-900 active:opacity-50\" : \"text-gray-500\",\n )}\n name=\"RedoArrow\"\n size={18}\n />\n </button>\n <button className={buttonStyles} disabled={!canRedo} onClick={redo}>\n <Icon\n className={twMerge(\n canRedo ? \"text-gray-900 active:opacity-50\" : \"text-gray-500\",\n )}\n name=\"RedoArrow\"\n size={18}\n />\n </button>\n </div>\n );\n}\n"],"names":["EditorUndoRedoButtons","props","canUndo","canRedo","undo","redo","buttonStyles","jsxs","jsx","Icon","twMerge"],"mappings":";;;AASO,SAASA,EAAsBC,GAAmC;AACvE,QAAM,EAAE,SAAAC,GAAS,SAAAC,GAAS,MAAAC,GAAM,MAAAC,MAASJ,GACnCK,IACJ;AAEA,SAAA,gBAAAC,EAAC,OAAI,EAAA,WAAU,8BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,YAAO,WAAWF,GAAc,UAAU,CAACJ,GAAS,SAASE,GAC5D,UAAA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,UACAR,IAAU,oCAAoC;AAAA,QAChD;AAAA,QACA,MAAK;AAAA,QACL,MAAM;AAAA,MAAA;AAAA,IAAA,GAEV;AAAA,IACA,gBAAAM,EAAC,YAAO,WAAWF,GAAc,UAAU,CAACH,GAAS,SAASE,GAC5D,UAAA,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAWC;AAAA,UACTP,IAAU,oCAAoC;AAAA,QAChD;AAAA,QACA,MAAK;AAAA,QACL,MAAM;AAAA,MAAA;AAAA,IAAA,GAEV;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { Combobox as x } from "./connect/components/combobox/combobox.js";
|
|
|
6
6
|
import { CookieBanner as d } from "./connect/components/cookie-banner/cookie-banner.js";
|
|
7
7
|
import { DateTimeLocalInput as c } from "./connect/components/date-time-input/date-time-local-input.js";
|
|
8
8
|
import { DefaultEditorLoader as D } from "./connect/components/default-editor-loader/default-editor-loader.js";
|
|
9
|
-
import { Disclosure as
|
|
10
|
-
import { Divider as
|
|
11
|
-
import { DriveView as
|
|
9
|
+
import { Disclosure as b } from "./connect/components/disclosure/disclosure.js";
|
|
10
|
+
import { Divider as C } from "./connect/components/divider/divider.js";
|
|
11
|
+
import { DriveView as S } from "./connect/components/drive-view/drive-view.js";
|
|
12
12
|
import { ConnectDropdownMenu as g } from "./connect/components/dropdown-menu/dropdown-menu.js";
|
|
13
13
|
import { EditorActionButtons as F } from "./connect/components/editor-action-buttons/editor-action-buttons.js";
|
|
14
14
|
import { EditorUndoRedoButtons as L } from "./connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.js";
|
|
@@ -33,9 +33,9 @@ import { AddLocalDriveModal as xe } from "./connect/components/modal/add-local-d
|
|
|
33
33
|
import { AddRemoteDriveModal as de } from "./connect/components/modal/add-remote-drive-modal.js";
|
|
34
34
|
import { ConnectConfirmationModal as ce } from "./connect/components/modal/confirmation-modal.js";
|
|
35
35
|
import { CreateDocumentModal as De } from "./connect/components/modal/create-document-modal.js";
|
|
36
|
-
import { ConnectDeleteDriveModal as
|
|
37
|
-
import { ConnectDeleteItemModal as
|
|
38
|
-
import { DriveSettingsModal as
|
|
36
|
+
import { ConnectDeleteDriveModal as be } from "./connect/components/modal/delete-drive-modal.js";
|
|
37
|
+
import { ConnectDeleteItemModal as Ce } from "./connect/components/modal/delete-item-modal.js";
|
|
38
|
+
import { DriveSettingsModal as Se } from "./connect/components/modal/drive-settings-modal.js";
|
|
39
39
|
import { ReadRequiredModal as ge } from "./connect/components/modal/read-required-modal.js";
|
|
40
40
|
import { ClearStorageSettingsRow as Fe } from "./connect/components/modal/settings-modal/clear-storage-row.js";
|
|
41
41
|
import { DependencyVersions as Le, verifyPackageJsonFields as ye } from "./connect/components/modal/settings-modal/dependency-versions/dependency-versions.js";
|
|
@@ -56,110 +56,111 @@ import { ToastContainer as ao, isConnectTypeOptions as mo, toast as no } from ".
|
|
|
56
56
|
import { Toggle as io } from "./connect/components/toggle/toggle.js";
|
|
57
57
|
import { Tooltip as fo, TooltipProvider as xo } from "./connect/components/tooltip/tooltip.js";
|
|
58
58
|
import { ConnectTreeView as To } from "./connect/components/tree-view/tree-view.js";
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
59
|
+
import { DocumentToolbar as uo } from "./connect/components/document-toolbar/document-toolbar.js";
|
|
60
|
+
import { BUDGET as Io, DEFAULT as bo, MAKERDAO_RWA_PORTFOLIO as Ao, documentTypes as Co } from "./connect/constants/documents.js";
|
|
61
|
+
import { CLOUD as So, LOCAL as Eo, PUBLIC as go, SWITCHBOARD as No, driveLocations as Fo, sharingTypes as Mo } from "./connect/constants/drives.js";
|
|
62
|
+
import { iconMap as yo } from "./connect/constants/icons.js";
|
|
63
|
+
import { CREATE as vo, DRIVE as Po, FILE as Wo, FOLDER as Bo, READ as _o, UI_NODE as Uo, WRITE as ho } from "./connect/constants/nodes.js";
|
|
64
|
+
import { ADD_INVALID_TRIGGER as Go, ADD_TRIGGER as ko, DELETE as Ho, DUPLICATE as Vo, NEW as Yo, NEW_FOLDER as Ko, REMOVE_TRIGGER as qo, RENAME as Jo, SETTINGS as Qo, debugNodeOptions as jo, debugNodeOptionsMap as zo, defaultDriveOptions as Xo, defaultFileOptions as Zo, defaultFolderOptions as $o, locationInfoByLocation as er, nodeOptions as or, nodeOptionsMap as rr, normalNodeOptions as tr, normalNodeOptionsMap as ar, sharingTypeOptions as mr } from "./connect/constants/options.js";
|
|
65
|
+
import { CONFLICT as pr, ERROR as ir, INITIAL_SYNC as sr, MISSING as fr, SUCCESS as xr, SYNCING as lr, syncStatuses as dr } from "./connect/constants/syncing.js";
|
|
66
|
+
import { UiNodesContext as cr, UiNodesContextProvider as ur, useUiNodesContext as Dr } from "./connect/context/UiNodesContext.js";
|
|
67
|
+
import { WagmiContext as br } from "./connect/context/WagmiContext.js";
|
|
68
|
+
import { useDrag as Cr } from "./connect/hooks/drag-and-drop/use-drag.js";
|
|
69
|
+
import { useDrop as Sr } from "./connect/hooks/drag-and-drop/use-drop.js";
|
|
70
|
+
import { formatEthAddress as gr } from "./connect/utils/address.js";
|
|
71
|
+
import { getDocumentIconSrc as Fr } from "./connect/utils/get-document-icon-src.js";
|
|
72
|
+
import { getFolderStatus as Lr, removeSuccessFiles as yr, sortFilesByStatus as Or } from "./connect/utils/get-folder-status.js";
|
|
72
73
|
import * as o from "./powerhouse/components/legacy/index.js";
|
|
73
|
-
import { Button as
|
|
74
|
-
import { DropdownMenu as
|
|
75
|
-
import { iconNames as
|
|
76
|
-
import { Icon as
|
|
77
|
-
import { Modal as
|
|
78
|
-
import { Pagination as
|
|
79
|
-
import { Sidebar as
|
|
80
|
-
import { SidebarPanel as
|
|
81
|
-
import { useAnimation as
|
|
82
|
-
import { createUseDocumentReducer as
|
|
83
|
-
import { usePagination as
|
|
84
|
-
import { fixedForwardRef as
|
|
85
|
-
import { getDimensions as
|
|
86
|
-
import { mergeClassNameProps as
|
|
87
|
-
import { RWAButton as
|
|
88
|
-
import { RWAEditor as
|
|
89
|
-
import { FormInputs as
|
|
90
|
-
import { RWAFormRow as
|
|
91
|
-
import { RWANumberInput as
|
|
92
|
-
import { RWATableSelect as
|
|
93
|
-
import { RWATableTextInput as
|
|
94
|
-
import { RWACreateItemModal as
|
|
95
|
-
import { RWADeleteItemModal as
|
|
96
|
-
import { ModalFormInputs as
|
|
97
|
-
import { ModalContext as
|
|
98
|
-
import { modals as
|
|
99
|
-
import { AccountsTable as
|
|
100
|
-
import { AssetsTable as
|
|
101
|
-
import { FormattedNumber as
|
|
102
|
-
import { RWATableHeaderLabel as
|
|
103
|
-
import { ItemDetails as
|
|
104
|
-
import { Table as
|
|
105
|
-
import { TableBase as
|
|
106
|
-
import { ItemNumberCell as
|
|
107
|
-
import { RWATableRow as
|
|
108
|
-
import { TableWithForm as
|
|
109
|
-
import { FeeTransactionsTable as
|
|
110
|
-
import { GroupTransactionsTable as
|
|
111
|
-
import { TransactionReference as
|
|
112
|
-
import { UnitPrice as
|
|
113
|
-
import { OtherTab as
|
|
114
|
-
import { PortfolioTab as
|
|
115
|
-
import { TabContent as
|
|
116
|
-
import { RWATabs as
|
|
117
|
-
import { TransactionsTab as
|
|
118
|
-
import { columnsByTableName as
|
|
119
|
-
import { makeDependentAssetsList as
|
|
120
|
-
import { deleteEditorActionInputsByTableName as
|
|
121
|
-
import { assetTransactionSignByTransactionType as
|
|
122
|
-
import { ASSET_PURCHASE as
|
|
123
|
-
import { RWAEditorContextProvider as
|
|
124
|
-
import { getColumnCount as
|
|
125
|
-
import { useFormInputs as
|
|
126
|
-
import { useSortTableItems as
|
|
127
|
-
import { useSubmit as
|
|
128
|
-
import { useTableData as
|
|
129
|
-
import { useTableForm as
|
|
130
|
-
import { useTableHeight as
|
|
131
|
-
import { calculateCurrentValue as
|
|
132
|
-
import { convertToDateTimeLocalFormat as
|
|
133
|
-
import { makeFixedIncomeOptionLabel as
|
|
134
|
-
import { calculateCashBalanceChange as
|
|
135
|
-
import { getCashAsset as
|
|
136
|
-
import { getIsTransaction as
|
|
137
|
-
import { wagmiConfig as
|
|
74
|
+
import { Button as Pr } from "./powerhouse/components/button/button.js";
|
|
75
|
+
import { DropdownMenu as Br, DropdownMenuContent as _r, DropdownMenuItem as Ur, DropdownMenuLabel as hr, DropdownMenuTrigger as wr } from "./powerhouse/components/dropdown-menu/dropdown-menu.js";
|
|
76
|
+
import { iconNames as kr } from "./assets/icon-components/types.js";
|
|
77
|
+
import { Icon as Vr, preloadIcon as Yr } from "./powerhouse/components/icon/icon.js";
|
|
78
|
+
import { Modal as qr } from "./powerhouse/components/modal/modal.js";
|
|
79
|
+
import { Pagination as Qr } from "./powerhouse/components/pagination/pagination.js";
|
|
80
|
+
import { Sidebar as zr, SidebarFooter as Xr, SidebarHeader as Zr } from "./powerhouse/components/sidebar/sidebar.js";
|
|
81
|
+
import { SidebarPanel as et } from "./powerhouse/components/sidebar/sidebar-panel.js";
|
|
82
|
+
import { useAnimation as rt, useEnterAnimation as tt, useExitAnimation as at } from "./powerhouse/hooks/animation.js";
|
|
83
|
+
import { createUseDocumentReducer as nt, useDocumentReducer as pt, wrapReducer as it } from "./powerhouse/hooks/reducer.js";
|
|
84
|
+
import { usePagination as ft } from "./powerhouse/hooks/usePagination.js";
|
|
85
|
+
import { fixedForwardRef as lt } from "./powerhouse/utils/fixedForwardRef.js";
|
|
86
|
+
import { getDimensions as Tt } from "./powerhouse/utils/getDimensions.js";
|
|
87
|
+
import { mergeClassNameProps as ut } from "./powerhouse/utils/mergeClassNameProps.js";
|
|
88
|
+
import { RWAButton as It } from "./rwa/components/button/button.js";
|
|
89
|
+
import { RWAEditor as At } from "./rwa/components/editor/editor.js";
|
|
90
|
+
import { FormInputs as Rt } from "./rwa/components/inputs/form-inputs.js";
|
|
91
|
+
import { RWAFormRow as Et } from "./rwa/components/inputs/form-row.js";
|
|
92
|
+
import { RWANumberInput as Nt } from "./rwa/components/inputs/number-input.js";
|
|
93
|
+
import { RWATableSelect as Mt } from "./rwa/components/inputs/select.js";
|
|
94
|
+
import { RWATableTextInput as yt } from "./rwa/components/inputs/text-input.js";
|
|
95
|
+
import { RWACreateItemModal as vt, _RWACreateItemModal as Pt } from "./rwa/components/modal/create-item-modal.js";
|
|
96
|
+
import { RWADeleteItemModal as Bt, _RWADeleteItemModal as _t } from "./rwa/components/modal/delete-item-modal.js";
|
|
97
|
+
import { ModalFormInputs as ht } from "./rwa/components/modal/modal-form-inputs.js";
|
|
98
|
+
import { ModalContext as Gt, ModalManager as kt, useModal as Ht } from "./rwa/components/modal/modal-manager.js";
|
|
99
|
+
import { modals as Yt } from "./rwa/components/modal/modals.js";
|
|
100
|
+
import { AccountsTable as qt } from "./rwa/components/table/accounts/accounts-table.js";
|
|
101
|
+
import { AssetsTable as Qt } from "./rwa/components/table/assets/assets-table.js";
|
|
102
|
+
import { FormattedNumber as zt } from "./rwa/components/table/base/formatted-number.js";
|
|
103
|
+
import { RWATableHeaderLabel as Zt } from "./rwa/components/table/base/header-label.js";
|
|
104
|
+
import { ItemDetails as ea } from "./rwa/components/table/base/item-details.js";
|
|
105
|
+
import { Table as ra } from "./rwa/components/table/base/table.js";
|
|
106
|
+
import { TableBase as aa } from "./rwa/components/table/base/table-base.js";
|
|
107
|
+
import { ItemNumberCell as na, MoreDetailsCell as pa, RWATableCell as ia } from "./rwa/components/table/base/table-cell.js";
|
|
108
|
+
import { RWATableRow as fa } from "./rwa/components/table/base/table-row.js";
|
|
109
|
+
import { TableWithForm as la } from "./rwa/components/table/base/table-with-form.js";
|
|
110
|
+
import { FeeTransactionsTable as Ta } from "./rwa/components/table/transactions/fee-transactions-table.js";
|
|
111
|
+
import { GroupTransactionsTable as ua } from "./rwa/components/table/transactions/group-transactions-table.js";
|
|
112
|
+
import { TransactionReference as Ia } from "./rwa/components/table/transactions/transaction-reference.js";
|
|
113
|
+
import { UnitPrice as Aa } from "./rwa/components/table/transactions/unit-price.js";
|
|
114
|
+
import { OtherTab as Ra } from "./rwa/components/tabs/other-tab.js";
|
|
115
|
+
import { PortfolioTab as Ea } from "./rwa/components/tabs/portfolio-tab.js";
|
|
116
|
+
import { TabContent as Na } from "./rwa/components/tabs/tab-content.js";
|
|
117
|
+
import { RWATabs as Ma } from "./rwa/components/tabs/tabs.js";
|
|
118
|
+
import { TransactionsTab as ya } from "./rwa/components/tabs/transactions-tab.js";
|
|
119
|
+
import { columnsByTableName as va } from "./rwa/constants/columns.js";
|
|
120
|
+
import { makeDependentAssetsList as Wa, makeDependentServiceProviderFeeTypesList as Ba, makeDependentTransactionsList as _a, useDependentItemProps as Ua } from "./rwa/constants/dependent-items.js";
|
|
121
|
+
import { deleteEditorActionInputsByTableName as wa, editorStateKeysByTableName as Ga, tableLabels as ka, tableNames as Ha } from "./rwa/constants/names.js";
|
|
122
|
+
import { assetTransactionSignByTransactionType as Ya, cashTransactionSignByTransactionType as Ka, defaultColumnCountByTableWidth as qa, getActionOperationType as Ja, getStateKeyForTableName as Qa, getTableNameFor as ja } from "./rwa/constants/table.js";
|
|
123
|
+
import { ASSET_PURCHASE as Xa, ASSET_SALE as Za, FEES_INCOME as $a, FEES_PAYMENT as em, INTEREST_INCOME as om, INTEREST_PAYMENT as rm, PRINCIPAL_DRAW as tm, PRINCIPAL_RETURN as am, allGroupTransactionTypes as mm, assetGroupTransactions as nm, feesTransactions as pm, groupTransactionTypeLabels as im, interestTransactions as sm, principalGroupTransactions as fm } from "./rwa/constants/transactions.js";
|
|
124
|
+
import { RWAEditorContextProvider as lm, useEditorContext as dm } from "./rwa/context/editor-context.js";
|
|
125
|
+
import { getColumnCount as cm, useColumnPriority as um } from "./rwa/hooks/useColumnPriority.js";
|
|
126
|
+
import { useFormInputs as Im } from "./rwa/hooks/useFormInputs.js";
|
|
127
|
+
import { useSortTableItems as Am } from "./rwa/hooks/useSortTableItems.js";
|
|
128
|
+
import { useSubmit as Rm } from "./rwa/hooks/useSubmit.js";
|
|
129
|
+
import { useTableData as Em } from "./rwa/hooks/useTableData.js";
|
|
130
|
+
import { useTableForm as Nm } from "./rwa/hooks/useTableForm.js";
|
|
131
|
+
import { useTableHeight as Mm } from "./rwa/hooks/useTableHeight.js";
|
|
132
|
+
import { calculateCurrentValue as ym, calculateSumQuantity as Om, math as vm, sumTotalForProperty as Pm } from "./rwa/utils/calculations.js";
|
|
133
|
+
import { convertToDateTimeLocalFormat as Bm, formatDateForDisplay as _m, isISODate as Um } from "./rwa/utils/date.js";
|
|
134
|
+
import { makeFixedIncomeOptionLabel as wm } from "./rwa/utils/form.js";
|
|
135
|
+
import { calculateCashBalanceChange as km, calculateUnitPrice as Hm, handleDateInTable as Vm, handleTableDatum as Ym, makeTableData as Km, tableDataMakersByTableName as qm } from "./rwa/utils/table.js";
|
|
136
|
+
import { getCashAsset as Qm, getFixedIncomeAssets as jm, isAssetGroupTransactionType as zm, isCashAsset as Xm, isFixedIncomeAsset as Zm } from "./rwa/utils/validators.js";
|
|
137
|
+
import { getIsTransaction as en, isHexString as on } from "./services/viem.js";
|
|
138
|
+
import { wagmiConfig as tn } from "./services/wagmi.js";
|
|
138
139
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
Go as ADD_INVALID_TRIGGER,
|
|
141
|
+
ko as ADD_TRIGGER,
|
|
142
|
+
Xa as ASSET_PURCHASE,
|
|
143
|
+
Za as ASSET_SALE,
|
|
144
|
+
qt as AccountsTable,
|
|
144
145
|
k as AddLocalDriveForm,
|
|
145
146
|
xe as AddLocalDriveModal,
|
|
146
147
|
V as AddRemoteDriveForm,
|
|
147
148
|
de as AddRemoteDriveModal,
|
|
148
149
|
n as AnimatedLoader,
|
|
149
|
-
|
|
150
|
+
Qt as AssetsTable,
|
|
150
151
|
J as AvailableOfflineToggle,
|
|
151
|
-
|
|
152
|
+
Io as BUDGET,
|
|
152
153
|
i as Breadcrumb,
|
|
153
154
|
s as Breadcrumbs,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
Pr as Button,
|
|
156
|
+
So as CLOUD,
|
|
157
|
+
pr as CONFLICT,
|
|
158
|
+
vo as CREATE,
|
|
158
159
|
Fe as ClearStorageSettingsRow,
|
|
159
160
|
x as Combobox,
|
|
160
161
|
ce as ConnectConfirmationModal,
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
be as ConnectDeleteDriveModal,
|
|
163
|
+
Ce as ConnectDeleteItemModal,
|
|
163
164
|
g as ConnectDropdownMenu,
|
|
164
165
|
Ye as ConnectSearchBar,
|
|
165
166
|
Qe as ConnectSidebar,
|
|
@@ -169,214 +170,215 @@ export {
|
|
|
169
170
|
he as ConnectUpgradeDriveModal,
|
|
170
171
|
d as CookieBanner,
|
|
171
172
|
De as CreateDocumentModal,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
bo as DEFAULT,
|
|
174
|
+
Ho as DELETE,
|
|
175
|
+
Po as DRIVE,
|
|
176
|
+
Vo as DUPLICATE,
|
|
176
177
|
c as DateTimeLocalInput,
|
|
177
178
|
D as DefaultEditorLoader,
|
|
178
179
|
j as DeleteDrive,
|
|
179
180
|
Le as DependencyVersions,
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
b as Disclosure,
|
|
182
|
+
C as Divider,
|
|
182
183
|
ve as DocumentSelectSettingsRow,
|
|
184
|
+
uo as DocumentToolbar,
|
|
183
185
|
X as DriveName,
|
|
184
186
|
$ as DriveNameInput,
|
|
185
187
|
K as DriveSettingsForm,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
Se as DriveSettingsModal,
|
|
189
|
+
S as DriveView,
|
|
190
|
+
Br as DropdownMenu,
|
|
191
|
+
_r as DropdownMenuContent,
|
|
192
|
+
Ur as DropdownMenuItem,
|
|
193
|
+
hr as DropdownMenuLabel,
|
|
194
|
+
wr as DropdownMenuTrigger,
|
|
193
195
|
O as ENSAvatar,
|
|
194
|
-
|
|
196
|
+
ir as ERROR,
|
|
195
197
|
F as EditorActionButtons,
|
|
196
198
|
L as EditorUndoRedoButtons,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
$a as FEES_INCOME,
|
|
200
|
+
em as FEES_PAYMENT,
|
|
201
|
+
Wo as FILE,
|
|
202
|
+
Bo as FOLDER,
|
|
203
|
+
Ta as FeeTransactionsTable,
|
|
202
204
|
P as FileItem,
|
|
203
205
|
B as FolderItem,
|
|
204
206
|
U as Footer,
|
|
205
207
|
w as FooterLink,
|
|
206
208
|
pe as FormInput,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
209
|
+
Rt as FormInputs,
|
|
210
|
+
zt as FormattedNumber,
|
|
211
|
+
ua as GroupTransactionsTable,
|
|
212
|
+
sr as INITIAL_SYNC,
|
|
213
|
+
om as INTEREST_INCOME,
|
|
214
|
+
rm as INTEREST_PAYMENT,
|
|
215
|
+
Vr as Icon,
|
|
216
|
+
ea as ItemDetails,
|
|
217
|
+
na as ItemNumberCell,
|
|
218
|
+
Eo as LOCAL,
|
|
217
219
|
oe as Label,
|
|
218
220
|
se as LoadingScreen,
|
|
219
221
|
te as LocationInfo,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
Ao as MAKERDAO_RWA_PORTFOLIO,
|
|
223
|
+
fr as MISSING,
|
|
224
|
+
qr as Modal,
|
|
225
|
+
Gt as ModalContext,
|
|
226
|
+
ht as ModalFormInputs,
|
|
227
|
+
kt as ModalManager,
|
|
228
|
+
pa as MoreDetailsCell,
|
|
229
|
+
Yo as NEW,
|
|
230
|
+
Ko as NEW_FOLDER,
|
|
229
231
|
Ge as NodeInput,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
232
|
+
Ra as OtherTab,
|
|
233
|
+
tm as PRINCIPAL_DRAW,
|
|
234
|
+
am as PRINCIPAL_RETURN,
|
|
235
|
+
go as PUBLIC,
|
|
236
|
+
Qr as Pagination,
|
|
237
|
+
Ea as PortfolioTab,
|
|
238
|
+
_o as READ,
|
|
239
|
+
qo as REMOVE_TRIGGER,
|
|
240
|
+
Jo as RENAME,
|
|
241
|
+
It as RWAButton,
|
|
242
|
+
vt as RWACreateItemModal,
|
|
243
|
+
Bt as RWADeleteItemModal,
|
|
244
|
+
At as RWAEditor,
|
|
245
|
+
lm as RWAEditorContextProvider,
|
|
246
|
+
Et as RWAFormRow,
|
|
247
|
+
Nt as RWANumberInput,
|
|
248
|
+
ia as RWATableCell,
|
|
249
|
+
Zt as RWATableHeaderLabel,
|
|
250
|
+
fa as RWATableRow,
|
|
251
|
+
Mt as RWATableSelect,
|
|
252
|
+
yt as RWATableTextInput,
|
|
253
|
+
Ma as RWATabs,
|
|
252
254
|
ge as ReadRequiredModal,
|
|
253
255
|
He as RevisionHistory,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
Qo as SETTINGS,
|
|
257
|
+
xr as SUCCESS,
|
|
258
|
+
No as SWITCHBOARD,
|
|
259
|
+
lr as SYNCING,
|
|
258
260
|
qe as Select,
|
|
259
261
|
_e as SettingsModal,
|
|
260
262
|
We as SettingsRow,
|
|
261
263
|
me as SharingTypeFormInput,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
zr as Sidebar,
|
|
265
|
+
Xr as SidebarFooter,
|
|
266
|
+
Zr as SidebarHeader,
|
|
267
|
+
et as SidebarPanel,
|
|
266
268
|
eo as SidebarUser,
|
|
267
269
|
ro as SyncStatusIcon,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
Na as TabContent,
|
|
271
|
+
ra as Table,
|
|
272
|
+
aa as TableBase,
|
|
273
|
+
la as TableWithForm,
|
|
272
274
|
ao as ToastContainer,
|
|
273
275
|
io as Toggle,
|
|
274
276
|
fo as Tooltip,
|
|
275
277
|
xo as TooltipProvider,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
278
|
+
Ia as TransactionReference,
|
|
279
|
+
ya as TransactionsTab,
|
|
280
|
+
Uo as UI_NODE,
|
|
281
|
+
cr as UiNodesContext,
|
|
282
|
+
ur as UiNodesContextProvider,
|
|
283
|
+
Aa as UnitPrice,
|
|
284
|
+
ho as WRITE,
|
|
285
|
+
br as WagmiContext,
|
|
286
|
+
Pt as _RWACreateItemModal,
|
|
287
|
+
_t as _RWADeleteItemModal,
|
|
288
|
+
mm as allGroupTransactionTypes,
|
|
289
|
+
nm as assetGroupTransactions,
|
|
290
|
+
Ya as assetTransactionSignByTransactionType,
|
|
291
|
+
km as calculateCashBalanceChange,
|
|
292
|
+
ym as calculateCurrentValue,
|
|
293
|
+
Om as calculateSumQuantity,
|
|
294
|
+
Hm as calculateUnitPrice,
|
|
295
|
+
Ka as cashTransactionSignByTransactionType,
|
|
296
|
+
va as columnsByTableName,
|
|
297
|
+
Bm as convertToDateTimeLocalFormat,
|
|
298
|
+
nt as createUseDocumentReducer,
|
|
299
|
+
jo as debugNodeOptions,
|
|
300
|
+
zo as debugNodeOptionsMap,
|
|
301
|
+
qa as defaultColumnCountByTableWidth,
|
|
302
|
+
Xo as defaultDriveOptions,
|
|
303
|
+
Zo as defaultFileOptions,
|
|
304
|
+
$o as defaultFolderOptions,
|
|
305
|
+
wa as deleteEditorActionInputsByTableName,
|
|
304
306
|
a as designSystemPreset,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
307
|
+
Co as documentTypes,
|
|
308
|
+
Fo as driveLocations,
|
|
309
|
+
Ga as editorStateKeysByTableName,
|
|
310
|
+
pm as feesTransactions,
|
|
311
|
+
lt as fixedForwardRef,
|
|
312
|
+
_m as formatDateForDisplay,
|
|
313
|
+
gr as formatEthAddress,
|
|
314
|
+
Ja as getActionOperationType,
|
|
315
|
+
Qm as getCashAsset,
|
|
316
|
+
cm as getColumnCount,
|
|
317
|
+
Tt as getDimensions,
|
|
318
|
+
Fr as getDocumentIconSrc,
|
|
319
|
+
jm as getFixedIncomeAssets,
|
|
320
|
+
Lr as getFolderStatus,
|
|
321
|
+
en as getIsTransaction,
|
|
322
|
+
Qa as getStateKeyForTableName,
|
|
323
|
+
ja as getTableNameFor,
|
|
324
|
+
im as groupTransactionTypeLabels,
|
|
325
|
+
Vm as handleDateInTable,
|
|
326
|
+
Ym as handleTableDatum,
|
|
327
|
+
yo as iconMap,
|
|
328
|
+
kr as iconNames,
|
|
329
|
+
sm as interestTransactions,
|
|
330
|
+
zm as isAssetGroupTransactionType,
|
|
331
|
+
Xm as isCashAsset,
|
|
330
332
|
mo as isConnectTypeOptions,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
Zm as isFixedIncomeAsset,
|
|
334
|
+
on as isHexString,
|
|
335
|
+
Um as isISODate,
|
|
334
336
|
o as legacy,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
337
|
+
er as locationInfoByLocation,
|
|
338
|
+
Wa as makeDependentAssetsList,
|
|
339
|
+
Ba as makeDependentServiceProviderFeeTypesList,
|
|
340
|
+
_a as makeDependentTransactionsList,
|
|
341
|
+
wm as makeFixedIncomeOptionLabel,
|
|
342
|
+
Km as makeTableData,
|
|
343
|
+
vm as math,
|
|
344
|
+
ut as mergeClassNameProps,
|
|
345
|
+
Yt as modals,
|
|
346
|
+
or as nodeOptions,
|
|
347
|
+
rr as nodeOptionsMap,
|
|
348
|
+
tr as normalNodeOptions,
|
|
349
|
+
ar as normalNodeOptionsMap,
|
|
350
|
+
Yr as preloadIcon,
|
|
351
|
+
fm as principalGroupTransactions,
|
|
352
|
+
yr as removeSuccessFiles,
|
|
353
|
+
mr as sharingTypeOptions,
|
|
354
|
+
Mo as sharingTypes,
|
|
355
|
+
Or as sortFilesByStatus,
|
|
356
|
+
Pm as sumTotalForProperty,
|
|
357
|
+
dr as syncStatuses,
|
|
358
|
+
qm as tableDataMakersByTableName,
|
|
359
|
+
ka as tableLabels,
|
|
360
|
+
Ha as tableNames,
|
|
359
361
|
no as toast,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
362
|
+
rt as useAnimation,
|
|
363
|
+
um as useColumnPriority,
|
|
364
|
+
Ua as useDependentItemProps,
|
|
365
|
+
pt as useDocumentReducer,
|
|
366
|
+
Cr as useDrag,
|
|
367
|
+
Sr as useDrop,
|
|
368
|
+
dm as useEditorContext,
|
|
369
|
+
tt as useEnterAnimation,
|
|
370
|
+
at as useExitAnimation,
|
|
371
|
+
Im as useFormInputs,
|
|
372
|
+
Ht as useModal,
|
|
373
|
+
ft as usePagination,
|
|
374
|
+
Am as useSortTableItems,
|
|
375
|
+
Rm as useSubmit,
|
|
376
|
+
Em as useTableData,
|
|
377
|
+
Nm as useTableForm,
|
|
378
|
+
Mm as useTableHeight,
|
|
379
|
+
Dr as useUiNodesContext,
|
|
378
380
|
ye as verifyPackageJsonFields,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
+
tn as wagmiConfig,
|
|
382
|
+
it as wrapReducer
|
|
381
383
|
};
|
|
382
384
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":["../../../../../src/rwa/components/table/base/table.tsx"],"sourcesContent":["import { Icon } from \"@/powerhouse\";\nimport {\n ItemNumberCell,\n MoreDetailsCell,\n RWATableCell,\n RWATableRow,\n TableBase,\n TableColumn,\n TableItemType,\n TableName,\n TableProps,\n columnsByTableName,\n defaultColumnCountByTableWidth,\n handleTableDatum,\n tableLabels,\n useColumnPriority,\n useEditorContext,\n useTableHeight,\n} from \"@/rwa\";\nimport { useCallback, useRef } from \"react\";\nimport { Fragment } from \"react/jsx-runtime\";\n\nexport function Table(props: TableProps) {\n const {\n tableName,\n tableData,\n columnCountByTableWidth = defaultColumnCountByTableWidth,\n sortHandler,\n specialFirstRow,\n specialLastRow,\n } = props;\n\n const columns = columnsByTableName[tableName];\n\n const {\n operation,\n selectedTableItem,\n isAllowedToCreateDocuments,\n createItem,\n } = useEditorContext();\n\n const tableContainerRef = useRef<HTMLDivElement>(null);\n const rowRefs = useRef<(HTMLTableRowElement | null)[]>([]);\n const headerRef = useRef<HTMLTableSectionElement>(null);\n\n const columnsToShow = useColumnPriority({\n columns,\n columnCountByTableWidth,\n tableContainerRef,\n });\n\n const maxHeight = useTableHeight({\n tableContainerRef,\n rowRefs,\n headerRef,\n selectedItemNumber: selectedTableItem?.itemNumber,\n hasSpecialLastRow: !!specialLastRow,\n });\n\n const tableLabel = tableLabels[tableName];\n\n const onCreateItemClick = useCallback(() => {\n createItem(tableName);\n }, [createItem, tableName]);\n\n const renderRow = useCallback(\n (\n tableItem: TableItemType<TableName>,\n columns: TableColumn[],\n index: number,\n ) => {\n const isSelected = selectedTableItem?.id === tableItem.id;\n\n return (\n <RWATableRow\n key={tableItem.id}\n ref={(el) => (rowRefs.current[index] = el)}\n >\n {columns.map((column) => (\n <Fragment key={column.key}>\n {column.key === \"itemNumber\" && (\n <ItemNumberCell itemNumber={tableItem.itemNumber} />\n )}\n {column.key !== \"itemNumber\" && column.key !== \"moreDetails\" && (\n <RWATableCell\n className={column.isNumberColumn ? \"text-right\" : \"\"}\n key={column.key}\n >\n {handleTableDatum(\n tableItem[column.key as keyof TableItemType<TableName>],\n column.decimalScale,\n column.displayTime,\n )}\n </RWATableCell>\n )}\n {column.key === \"moreDetails\" && (\n <MoreDetailsCell\n isSelected={isSelected}\n tableItem={tableItem}\n tableName={tableName}\n />\n )}\n </Fragment>\n ))}\n </RWATableRow>\n );\n },\n [selectedTableItem?.id, tableName],\n );\n\n return (\n <>\n <TableBase\n columns={columnsToShow}\n hasSelectedItem={!!selectedTableItem}\n headerRef={headerRef}\n maxHeight={maxHeight}\n onClickSort={sortHandler}\n ref={tableContainerRef}\n renderRow={renderRow}\n specialFirstRow={specialFirstRow}\n specialLastRow={specialLastRow}\n tableData={tableData}\n />\n {isAllowedToCreateDocuments && !operation ? (\n <button\n className=\"mt-4 flex h-11 w-full items-center justify-center gap-x-2 rounded-lg border border-gray-300 bg-white text-sm font-semibold text-gray-900\"\n onClick={onCreateItemClick}\n >\n <span>Create {tableLabel}</span>\n <Icon name=\"Plus\" size={14} />\n </button>\n ) : null}\n </>\n );\n}\n"],"names":["Table","props","tableName","tableData","columnCountByTableWidth","defaultColumnCountByTableWidth","sortHandler","specialFirstRow","specialLastRow","columns","columnsByTableName","operation","selectedTableItem","isAllowedToCreateDocuments","createItem","useEditorContext","tableContainerRef","useRef","rowRefs","headerRef","columnsToShow","useColumnPriority","maxHeight","useTableHeight","tableLabel","tableLabels","onCreateItemClick","useCallback","renderRow","tableItem","index","isSelected","jsx","RWATableRow","el","column","jsxs","Fragment","ItemNumberCell","RWATableCell","handleTableDatum","MoreDetailsCell","TableBase","Icon"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"table.js","sources":["../../../../../src/rwa/components/table/base/table.tsx"],"sourcesContent":["import { Icon } from \"@/powerhouse\";\nimport {\n ItemNumberCell,\n MoreDetailsCell,\n RWATableCell,\n RWATableRow,\n SortDirection,\n TableBase,\n TableColumn,\n TableItemType,\n TableName,\n TableProps,\n columnsByTableName,\n defaultColumnCountByTableWidth,\n handleTableDatum,\n tableLabels,\n useColumnPriority,\n useEditorContext,\n useTableHeight,\n} from \"@/rwa\";\nimport { useCallback, useRef } from \"react\";\nimport { Fragment } from \"react/jsx-runtime\";\n\nexport function Table(props: TableProps) {\n const {\n tableName,\n tableData,\n columnCountByTableWidth = defaultColumnCountByTableWidth,\n sortHandler,\n specialFirstRow,\n specialLastRow,\n } = props;\n\n const columns = columnsByTableName[tableName];\n\n const {\n operation,\n selectedTableItem,\n isAllowedToCreateDocuments,\n createItem,\n } = useEditorContext();\n\n const tableContainerRef = useRef<HTMLDivElement>(null);\n const rowRefs = useRef<(HTMLTableRowElement | null)[]>([]);\n const headerRef = useRef<HTMLTableSectionElement>(null);\n\n const columnsToShow = useColumnPriority({\n columns,\n columnCountByTableWidth,\n tableContainerRef,\n });\n\n const maxHeight = useTableHeight({\n tableContainerRef,\n rowRefs,\n headerRef,\n selectedItemNumber: selectedTableItem?.itemNumber,\n hasSpecialLastRow: !!specialLastRow,\n });\n\n const tableLabel = tableLabels[tableName];\n\n const onCreateItemClick = useCallback(() => {\n createItem(tableName);\n }, [createItem, tableName]);\n\n const renderRow = useCallback(\n (\n tableItem: TableItemType<TableName>,\n columns: TableColumn[],\n index: number,\n ) => {\n const isSelected = selectedTableItem?.id === tableItem.id;\n\n return (\n <RWATableRow\n key={tableItem.id}\n ref={(el) => (rowRefs.current[index] = el)}\n >\n {columns.map((column) => (\n <Fragment key={column.key}>\n {column.key === \"itemNumber\" && (\n <ItemNumberCell itemNumber={tableItem.itemNumber} />\n )}\n {column.key !== \"itemNumber\" && column.key !== \"moreDetails\" && (\n <RWATableCell\n className={column.isNumberColumn ? \"text-right\" : \"\"}\n key={column.key}\n >\n {handleTableDatum(\n tableItem[column.key as keyof TableItemType<TableName>],\n column.decimalScale,\n column.displayTime,\n )}\n </RWATableCell>\n )}\n {column.key === \"moreDetails\" && (\n <MoreDetailsCell\n isSelected={isSelected}\n tableItem={tableItem}\n tableName={tableName}\n />\n )}\n </Fragment>\n ))}\n </RWATableRow>\n );\n },\n [selectedTableItem?.id, tableName],\n );\n\n return (\n <>\n <TableBase\n columns={columnsToShow}\n hasSelectedItem={!!selectedTableItem}\n headerRef={headerRef}\n maxHeight={maxHeight}\n onClickSort={\n sortHandler as (key: string, direction: SortDirection) => void\n }\n ref={tableContainerRef}\n renderRow={renderRow}\n specialFirstRow={specialFirstRow}\n specialLastRow={specialLastRow}\n tableData={tableData}\n />\n {isAllowedToCreateDocuments && !operation ? (\n <button\n className=\"mt-4 flex h-11 w-full items-center justify-center gap-x-2 rounded-lg border border-gray-300 bg-white text-sm font-semibold text-gray-900\"\n onClick={onCreateItemClick}\n >\n <span>Create {tableLabel}</span>\n <Icon name=\"Plus\" size={14} />\n </button>\n ) : null}\n </>\n );\n}\n"],"names":["Table","props","tableName","tableData","columnCountByTableWidth","defaultColumnCountByTableWidth","sortHandler","specialFirstRow","specialLastRow","columns","columnsByTableName","operation","selectedTableItem","isAllowedToCreateDocuments","createItem","useEditorContext","tableContainerRef","useRef","rowRefs","headerRef","columnsToShow","useColumnPriority","maxHeight","useTableHeight","tableLabel","tableLabels","onCreateItemClick","useCallback","renderRow","tableItem","index","isSelected","jsx","RWATableRow","el","column","jsxs","Fragment","ItemNumberCell","RWATableCell","handleTableDatum","MoreDetailsCell","TableBase","Icon"],"mappings":"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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Root as m, List as u, Trigger as f, Content as a } from "@radix-ui/react-tabs";
|
|
3
3
|
import { useCallback as h } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { PortfolioTab as b } from "./portfolio-tab.js";
|
|
5
|
+
import { TransactionsTab as p } from "./transactions-tab.js";
|
|
6
|
+
import { OtherTab as g } from "./other-tab.js";
|
|
7
|
+
import { useEditorContext as x } from "../../context/editor-context.js";
|
|
8
|
+
import { EditorActionButtons as v } from "../../../connect/components/editor-action-buttons/editor-action-buttons.js";
|
|
9
9
|
function E() {
|
|
10
10
|
const i = ["Portfolio", "Transactions", "Other"], {
|
|
11
11
|
onSwitchboardLinkClick: n,
|
|
@@ -13,7 +13,7 @@ function E() {
|
|
|
13
13
|
onClose: s,
|
|
14
14
|
onShowRevisionHistory: d,
|
|
15
15
|
clearSelected: r
|
|
16
|
-
} =
|
|
16
|
+
} = x(), c = h(() => {
|
|
17
17
|
r();
|
|
18
18
|
}, [r]);
|
|
19
19
|
return /* @__PURE__ */ e(m, { defaultValue: "Portfolio", onValueChange: c, children: [
|
|
@@ -28,7 +28,7 @@ function E() {
|
|
|
28
28
|
o
|
|
29
29
|
)) }),
|
|
30
30
|
/* @__PURE__ */ t(
|
|
31
|
-
|
|
31
|
+
v,
|
|
32
32
|
{
|
|
33
33
|
onClose: s,
|
|
34
34
|
onExport: l,
|
|
@@ -38,9 +38,9 @@ function E() {
|
|
|
38
38
|
)
|
|
39
39
|
] }),
|
|
40
40
|
/* @__PURE__ */ e("div", { className: "mt-3 rounded-md bg-slate-50 p-8", children: [
|
|
41
|
-
/* @__PURE__ */ t(a, { value: "Portfolio", children: /* @__PURE__ */ t(
|
|
42
|
-
/* @__PURE__ */ t(a, { value: "Transactions", children: /* @__PURE__ */ t(
|
|
43
|
-
/* @__PURE__ */ t(a, { value: "Other", children: /* @__PURE__ */ t(
|
|
41
|
+
/* @__PURE__ */ t(a, { value: "Portfolio", children: /* @__PURE__ */ t(b, {}) }),
|
|
42
|
+
/* @__PURE__ */ t(a, { value: "Transactions", children: /* @__PURE__ */ t(p, {}) }),
|
|
43
|
+
/* @__PURE__ */ t(a, { value: "Other", children: /* @__PURE__ */ t(g, {}) })
|
|
44
44
|
] })
|
|
45
45
|
] });
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"camelcase": "^8.0.0",
|
|
56
56
|
"chromatic": "^11.11.0",
|
|
57
57
|
"cross-env": "^7.0.3",
|
|
58
|
-
"document-model": "2.
|
|
58
|
+
"document-model": "2.3.0",
|
|
59
59
|
"fast-xml-parser": "^4.3.4",
|
|
60
60
|
"jsdom": "^24.0.0",
|
|
61
61
|
"lightningcss": "^1.27.0",
|