@powerhousedao/design-system 1.5.1 → 1.7.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/form-input/form-input.d.ts +1 -1
- package/dist/connect/components/form-input/form-input.js +10 -10
- package/dist/connect/components/form-input/form-input.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +33 -31
- package/dist/index.js.map +1 -1
- package/dist/scalars/EthereumAddress/EthereumAddress.d.ts +4 -0
- package/dist/scalars/EthereumAddress/EthereumAddress.js +26 -0
- package/dist/scalars/EthereumAddress/EthereumAddress.js.map +1 -0
- package/dist/scalars/EthereumAddress/index.d.ts +1 -0
- package/dist/scalars/index.d.ts +1 -0
- package/package.json +5 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
2
|
type InputProps = ComponentPropsWithRef<"input">;
|
|
3
3
|
type FormInputProps = Omit<InputProps, "className"> & {
|
|
4
|
-
readonly icon
|
|
4
|
+
readonly icon?: React.JSX.Element;
|
|
5
5
|
readonly errorMessage?: string;
|
|
6
6
|
readonly isTouched?: boolean;
|
|
7
7
|
readonly isDirty?: boolean;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
3
|
import { twMerge as t, twJoin as h } from "tailwind-merge";
|
|
4
|
-
const w = g(function(s,
|
|
4
|
+
const w = g(function(s, i) {
|
|
5
5
|
const {
|
|
6
|
-
icon:
|
|
7
|
-
errorMessage:
|
|
6
|
+
icon: n,
|
|
7
|
+
errorMessage: o,
|
|
8
8
|
isDirty: d,
|
|
9
9
|
containerClassName: l,
|
|
10
10
|
inputClassName: m,
|
|
11
11
|
errorMessageClassName: c,
|
|
12
12
|
hideErrors: p = !1,
|
|
13
13
|
...x
|
|
14
|
-
} = s, f = s.type ?? "text", e = !!
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
14
|
+
} = s, f = s.type ?? "text", e = !!o;
|
|
15
|
+
return /* @__PURE__ */ a("div", { children: [
|
|
16
|
+
/* @__PURE__ */ a(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
className: t(
|
|
@@ -22,7 +22,7 @@ const w = g(function(s, a) {
|
|
|
22
22
|
l
|
|
23
23
|
),
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */ r("span", { className: h((!d || e) && "text-slate-200"), children:
|
|
25
|
+
n && /* @__PURE__ */ r("span", { className: h((!d || e) && "text-slate-200"), children: n }),
|
|
26
26
|
/* @__PURE__ */ r(
|
|
27
27
|
"input",
|
|
28
28
|
{
|
|
@@ -31,7 +31,7 @@ const w = g(function(s, a) {
|
|
|
31
31
|
"w-full bg-transparent font-semibold outline-none",
|
|
32
32
|
m
|
|
33
33
|
),
|
|
34
|
-
ref:
|
|
34
|
+
ref: i,
|
|
35
35
|
type: f
|
|
36
36
|
}
|
|
37
37
|
)
|
|
@@ -47,7 +47,7 @@ const w = g(function(s, a) {
|
|
|
47
47
|
p && "hidden",
|
|
48
48
|
c
|
|
49
49
|
),
|
|
50
|
-
children:
|
|
50
|
+
children: o
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-input.js","sources":["../../../../src/connect/components/form-input/form-input.tsx"],"sourcesContent":["import { ComponentPropsWithRef, ForwardedRef, forwardRef } from \"react\";\nimport { twJoin, twMerge } from \"tailwind-merge\";\n\ntype InputProps = ComponentPropsWithRef<\"input\">;\ntype FormInputProps = Omit<InputProps, \"className\"> & {\n readonly icon
|
|
1
|
+
{"version":3,"file":"form-input.js","sources":["../../../../src/connect/components/form-input/form-input.tsx"],"sourcesContent":["import { ComponentPropsWithRef, ForwardedRef, forwardRef } from \"react\";\nimport { twJoin, twMerge } from \"tailwind-merge\";\n\ntype InputProps = ComponentPropsWithRef<\"input\">;\ntype FormInputProps = Omit<InputProps, \"className\"> & {\n readonly icon?: React.JSX.Element;\n readonly errorMessage?: string;\n readonly isTouched?: boolean;\n readonly isDirty?: boolean;\n readonly type?: \"text\" | \"password\" | \"email\" | \"url\";\n readonly inputClassName?: string;\n readonly containerClassName?: string;\n readonly errorMessageClassName?: string;\n readonly hideErrors?: boolean;\n};\nexport const FormInput = forwardRef(function FormInput(\n props: FormInputProps,\n ref: ForwardedRef<HTMLInputElement>,\n) {\n const {\n icon,\n errorMessage,\n isDirty,\n containerClassName,\n inputClassName,\n errorMessageClassName,\n hideErrors = false,\n ...delegatedProps\n } = props;\n const type = props.type ?? \"text\";\n const isError = !!errorMessage;\n return (\n <div>\n <div\n className={twMerge(\n \"mb-1 flex gap-2 rounded-xl border border-transparent bg-gray-100 p-3 text-gray-800 placeholder:text-gray-500\",\n isError && \"border-red-900\",\n containerClassName,\n )}\n >\n {icon && (\n <span className={twJoin((!isDirty || isError) && \"text-slate-200\")}>\n {icon}\n </span>\n )}\n\n <input\n {...delegatedProps}\n className={twMerge(\n \"w-full bg-transparent font-semibold outline-none\",\n inputClassName,\n )}\n ref={ref}\n type={type}\n />\n </div>\n <p\n className={twMerge(\n \"hidden min-h-4 text-xs text-red-900\",\n isError && \"block\",\n hideErrors && \"hidden\",\n errorMessageClassName,\n )}\n >\n {errorMessage}\n </p>\n </div>\n );\n});\n"],"names":["FormInput","forwardRef","props","ref","icon","errorMessage","isDirty","containerClassName","inputClassName","errorMessageClassName","hideErrors","delegatedProps","type","isError","jsxs","twMerge","jsx","twJoin"],"mappings":";;;AAeO,MAAMA,IAAYC,EAAW,SAClCC,GACAC,GACA;AACM,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,SAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,GAAGC;AAAA,EAAA,IACDT,GACEU,IAAOV,EAAM,QAAQ,QACrBW,IAAU,CAAC,CAACR;AAClB,2BACG,OACC,EAAA,UAAA;AAAA,IAAA,gBAAAS;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,UACAF,KAAW;AAAA,UACXN;AAAA,QACF;AAAA,QAEC,UAAA;AAAA,UACCH,KAAA,gBAAAY,EAAC,UAAK,WAAWC,GAAQ,CAACX,KAAWO,MAAY,gBAAgB,GAC9D,UACHT,EAAA,CAAA;AAAA,UAGF,gBAAAY;AAAA,YAAC;AAAA,YAAA;AAAA,cACE,GAAGL;AAAA,cACJ,WAAWI;AAAA,gBACT;AAAA,gBACAP;AAAA,cACF;AAAA,cACA,KAAAL;AAAA,cACA,MAAAS;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IACF;AAAA,IACA,gBAAAI;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWD;AAAA,UACT;AAAA,UACAF,KAAW;AAAA,UACXH,KAAc;AAAA,UACdD;AAAA,QACF;AAAA,QAEC,UAAAJ;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GACF;AAEJ,CAAC;"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ 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
|
|
9
|
+
import { Disclosure as A } from "./connect/components/disclosure/disclosure.js";
|
|
10
10
|
import { Divider as C } from "./connect/components/divider/divider.js";
|
|
11
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";
|
|
@@ -15,7 +15,7 @@ import { EditorUndoRedoButtons as L } from "./connect/components/editor-undo-red
|
|
|
15
15
|
import { ENSAvatar as O } from "./connect/components/ens-avatar/ens-avatar.js";
|
|
16
16
|
import { FileItem as P } from "./connect/components/file-item/file-item.js";
|
|
17
17
|
import { FolderItem as B } from "./connect/components/folder-item/folder-item.js";
|
|
18
|
-
import { Footer as
|
|
18
|
+
import { Footer as h } from "./connect/components/footer/footer.js";
|
|
19
19
|
import { FooterLink as w } from "./connect/components/footer/footer-link.js";
|
|
20
20
|
import { AddLocalDriveForm as k } from "./connect/components/form/add-local-drive-form.js";
|
|
21
21
|
import { AddRemoteDriveForm as V } from "./connect/components/form/add-remote-drive-form.js";
|
|
@@ -33,7 +33,7 @@ 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
|
|
36
|
+
import { ConnectDeleteDriveModal as Ae } from "./connect/components/modal/delete-drive-modal.js";
|
|
37
37
|
import { ConnectDeleteItemModal as Ce } from "./connect/components/modal/delete-item-modal.js";
|
|
38
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";
|
|
@@ -42,7 +42,7 @@ import { DependencyVersions as Le, verifyPackageJsonFields as ye } from "./conne
|
|
|
42
42
|
import { DocumentSelectSettingsRow as ve } from "./connect/components/modal/settings-modal/document-select-row.js";
|
|
43
43
|
import { SettingsRow as We } from "./connect/components/modal/settings-modal/row.js";
|
|
44
44
|
import { SettingsModal as _e } from "./connect/components/modal/settings-modal/settings-modal.js";
|
|
45
|
-
import { ConnectUpgradeDriveModal as
|
|
45
|
+
import { ConnectUpgradeDriveModal as Ue } from "./connect/components/modal/upgrade-drive-modal.js";
|
|
46
46
|
import { NodeInput as Ge } from "./connect/components/node-input/node-input.js";
|
|
47
47
|
import { RevisionHistory as He } from "./connect/components/revision-history/revision-history.js";
|
|
48
48
|
import { ConnectSearchBar as Ye } from "./connect/components/search-bar/search-bar.js";
|
|
@@ -57,14 +57,14 @@ 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
59
|
import { DocumentToolbar as uo } from "./connect/components/document-toolbar/document-toolbar.js";
|
|
60
|
-
import { BUDGET as Io, DEFAULT as
|
|
60
|
+
import { BUDGET as Io, DEFAULT as Ao, MAKERDAO_RWA_PORTFOLIO as bo, documentTypes as Co } from "./connect/constants/documents.js";
|
|
61
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
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
|
|
63
|
+
import { CREATE as vo, DRIVE as Po, FILE as Wo, FOLDER as Bo, READ as _o, UI_NODE as ho, WRITE as Uo } from "./connect/constants/nodes.js";
|
|
64
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
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
66
|
import { UiNodesContext as cr, UiNodesContextProvider as ur, useUiNodesContext as Dr } from "./connect/context/UiNodesContext.js";
|
|
67
|
-
import { WagmiContext as
|
|
67
|
+
import { WagmiContext as Ar } from "./connect/context/WagmiContext.js";
|
|
68
68
|
import { useDrag as Cr } from "./connect/hooks/drag-and-drop/use-drag.js";
|
|
69
69
|
import { useDrop as Sr } from "./connect/hooks/drag-and-drop/use-drop.js";
|
|
70
70
|
import { formatEthAddress as gr } from "./connect/utils/address.js";
|
|
@@ -72,7 +72,7 @@ import { getDocumentIconSrc as Fr } from "./connect/utils/get-document-icon-src.
|
|
|
72
72
|
import { getFolderStatus as Lr, removeSuccessFiles as yr, sortFilesByStatus as Or } from "./connect/utils/get-folder-status.js";
|
|
73
73
|
import * as o from "./powerhouse/components/legacy/index.js";
|
|
74
74
|
import { Button as Pr } from "./powerhouse/components/button/button.js";
|
|
75
|
-
import { DropdownMenu as Br, DropdownMenuContent as _r, DropdownMenuItem as
|
|
75
|
+
import { DropdownMenu as Br, DropdownMenuContent as _r, DropdownMenuItem as hr, DropdownMenuLabel as Ur, DropdownMenuTrigger as wr } from "./powerhouse/components/dropdown-menu/dropdown-menu.js";
|
|
76
76
|
import { iconNames as kr } from "./assets/icon-components/types.js";
|
|
77
77
|
import { Icon as Vr, preloadIcon as Yr } from "./powerhouse/components/icon/icon.js";
|
|
78
78
|
import { Modal as qr } from "./powerhouse/components/modal/modal.js";
|
|
@@ -86,7 +86,7 @@ import { fixedForwardRef as lt } from "./powerhouse/utils/fixedForwardRef.js";
|
|
|
86
86
|
import { getDimensions as Tt } from "./powerhouse/utils/getDimensions.js";
|
|
87
87
|
import { mergeClassNameProps as ut } from "./powerhouse/utils/mergeClassNameProps.js";
|
|
88
88
|
import { RWAButton as It } from "./rwa/components/button/button.js";
|
|
89
|
-
import { RWAEditor as
|
|
89
|
+
import { RWAEditor as bt } from "./rwa/components/editor/editor.js";
|
|
90
90
|
import { FormInputs as Rt } from "./rwa/components/inputs/form-inputs.js";
|
|
91
91
|
import { RWAFormRow as Et } from "./rwa/components/inputs/form-row.js";
|
|
92
92
|
import { RWANumberInput as Nt } from "./rwa/components/inputs/number-input.js";
|
|
@@ -94,7 +94,7 @@ import { RWATableSelect as Mt } from "./rwa/components/inputs/select.js";
|
|
|
94
94
|
import { RWATableTextInput as yt } from "./rwa/components/inputs/text-input.js";
|
|
95
95
|
import { RWACreateItemModal as vt, _RWACreateItemModal as Pt } from "./rwa/components/modal/create-item-modal.js";
|
|
96
96
|
import { RWADeleteItemModal as Bt, _RWADeleteItemModal as _t } from "./rwa/components/modal/delete-item-modal.js";
|
|
97
|
-
import { ModalFormInputs as
|
|
97
|
+
import { ModalFormInputs as Ut } from "./rwa/components/modal/modal-form-inputs.js";
|
|
98
98
|
import { ModalContext as Gt, ModalManager as kt, useModal as Ht } from "./rwa/components/modal/modal-manager.js";
|
|
99
99
|
import { modals as Yt } from "./rwa/components/modal/modals.js";
|
|
100
100
|
import { AccountsTable as qt } from "./rwa/components/table/accounts/accounts-table.js";
|
|
@@ -110,32 +110,33 @@ import { TableWithForm as la } from "./rwa/components/table/base/table-with-form
|
|
|
110
110
|
import { FeeTransactionsTable as Ta } from "./rwa/components/table/transactions/fee-transactions-table.js";
|
|
111
111
|
import { GroupTransactionsTable as ua } from "./rwa/components/table/transactions/group-transactions-table.js";
|
|
112
112
|
import { TransactionReference as Ia } from "./rwa/components/table/transactions/transaction-reference.js";
|
|
113
|
-
import { UnitPrice as
|
|
113
|
+
import { UnitPrice as ba } from "./rwa/components/table/transactions/unit-price.js";
|
|
114
114
|
import { OtherTab as Ra } from "./rwa/components/tabs/other-tab.js";
|
|
115
115
|
import { PortfolioTab as Ea } from "./rwa/components/tabs/portfolio-tab.js";
|
|
116
116
|
import { TabContent as Na } from "./rwa/components/tabs/tab-content.js";
|
|
117
117
|
import { RWATabs as Ma } from "./rwa/components/tabs/tabs.js";
|
|
118
118
|
import { TransactionsTab as ya } from "./rwa/components/tabs/transactions-tab.js";
|
|
119
119
|
import { columnsByTableName as va } from "./rwa/constants/columns.js";
|
|
120
|
-
import { makeDependentAssetsList as Wa, makeDependentServiceProviderFeeTypesList as Ba, makeDependentTransactionsList as _a, useDependentItemProps as
|
|
120
|
+
import { makeDependentAssetsList as Wa, makeDependentServiceProviderFeeTypesList as Ba, makeDependentTransactionsList as _a, useDependentItemProps as ha } from "./rwa/constants/dependent-items.js";
|
|
121
121
|
import { deleteEditorActionInputsByTableName as wa, editorStateKeysByTableName as Ga, tableLabels as ka, tableNames as Ha } from "./rwa/constants/names.js";
|
|
122
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
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
124
|
import { RWAEditorContextProvider as lm, useEditorContext as dm } from "./rwa/context/editor-context.js";
|
|
125
125
|
import { getColumnCount as cm, useColumnPriority as um } from "./rwa/hooks/useColumnPriority.js";
|
|
126
126
|
import { useFormInputs as Im } from "./rwa/hooks/useFormInputs.js";
|
|
127
|
-
import { useSortTableItems as
|
|
127
|
+
import { useSortTableItems as bm } from "./rwa/hooks/useSortTableItems.js";
|
|
128
128
|
import { useSubmit as Rm } from "./rwa/hooks/useSubmit.js";
|
|
129
129
|
import { useTableData as Em } from "./rwa/hooks/useTableData.js";
|
|
130
130
|
import { useTableForm as Nm } from "./rwa/hooks/useTableForm.js";
|
|
131
131
|
import { useTableHeight as Mm } from "./rwa/hooks/useTableHeight.js";
|
|
132
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
|
|
133
|
+
import { convertToDateTimeLocalFormat as Bm, formatDateForDisplay as _m, isISODate as hm } from "./rwa/utils/date.js";
|
|
134
134
|
import { makeFixedIncomeOptionLabel as wm } from "./rwa/utils/form.js";
|
|
135
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
136
|
import { getCashAsset as Qm, getFixedIncomeAssets as jm, isAssetGroupTransactionType as zm, isCashAsset as Xm, isFixedIncomeAsset as Zm } from "./rwa/utils/validators.js";
|
|
137
137
|
import { getIsTransaction as en, isHexString as on } from "./services/viem.js";
|
|
138
138
|
import { wagmiConfig as tn } from "./services/wagmi.js";
|
|
139
|
+
import { EthereumAddress as mn } from "./scalars/EthereumAddress/EthereumAddress.js";
|
|
139
140
|
export {
|
|
140
141
|
Go as ADD_INVALID_TRIGGER,
|
|
141
142
|
ko as ADD_TRIGGER,
|
|
@@ -159,7 +160,7 @@ export {
|
|
|
159
160
|
Fe as ClearStorageSettingsRow,
|
|
160
161
|
x as Combobox,
|
|
161
162
|
ce as ConnectConfirmationModal,
|
|
162
|
-
|
|
163
|
+
Ae as ConnectDeleteDriveModal,
|
|
163
164
|
Ce as ConnectDeleteItemModal,
|
|
164
165
|
g as ConnectDropdownMenu,
|
|
165
166
|
Ye as ConnectSearchBar,
|
|
@@ -167,10 +168,10 @@ export {
|
|
|
167
168
|
ze as ConnectSidebarFooter,
|
|
168
169
|
Ze as ConnectSidebarHeader,
|
|
169
170
|
To as ConnectTreeView,
|
|
170
|
-
|
|
171
|
+
Ue as ConnectUpgradeDriveModal,
|
|
171
172
|
d as CookieBanner,
|
|
172
173
|
De as CreateDocumentModal,
|
|
173
|
-
|
|
174
|
+
Ao as DEFAULT,
|
|
174
175
|
Ho as DELETE,
|
|
175
176
|
Po as DRIVE,
|
|
176
177
|
Vo as DUPLICATE,
|
|
@@ -178,7 +179,7 @@ export {
|
|
|
178
179
|
D as DefaultEditorLoader,
|
|
179
180
|
j as DeleteDrive,
|
|
180
181
|
Le as DependencyVersions,
|
|
181
|
-
|
|
182
|
+
A as Disclosure,
|
|
182
183
|
C as Divider,
|
|
183
184
|
ve as DocumentSelectSettingsRow,
|
|
184
185
|
uo as DocumentToolbar,
|
|
@@ -189,13 +190,14 @@ export {
|
|
|
189
190
|
S as DriveView,
|
|
190
191
|
Br as DropdownMenu,
|
|
191
192
|
_r as DropdownMenuContent,
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
hr as DropdownMenuItem,
|
|
194
|
+
Ur as DropdownMenuLabel,
|
|
194
195
|
wr as DropdownMenuTrigger,
|
|
195
196
|
O as ENSAvatar,
|
|
196
197
|
ir as ERROR,
|
|
197
198
|
F as EditorActionButtons,
|
|
198
199
|
L as EditorUndoRedoButtons,
|
|
200
|
+
mn as EthereumAddress,
|
|
199
201
|
$a as FEES_INCOME,
|
|
200
202
|
em as FEES_PAYMENT,
|
|
201
203
|
Wo as FILE,
|
|
@@ -203,7 +205,7 @@ export {
|
|
|
203
205
|
Ta as FeeTransactionsTable,
|
|
204
206
|
P as FileItem,
|
|
205
207
|
B as FolderItem,
|
|
206
|
-
|
|
208
|
+
h as Footer,
|
|
207
209
|
w as FooterLink,
|
|
208
210
|
pe as FormInput,
|
|
209
211
|
Rt as FormInputs,
|
|
@@ -219,11 +221,11 @@ export {
|
|
|
219
221
|
oe as Label,
|
|
220
222
|
se as LoadingScreen,
|
|
221
223
|
te as LocationInfo,
|
|
222
|
-
|
|
224
|
+
bo as MAKERDAO_RWA_PORTFOLIO,
|
|
223
225
|
fr as MISSING,
|
|
224
226
|
qr as Modal,
|
|
225
227
|
Gt as ModalContext,
|
|
226
|
-
|
|
228
|
+
Ut as ModalFormInputs,
|
|
227
229
|
kt as ModalManager,
|
|
228
230
|
pa as MoreDetailsCell,
|
|
229
231
|
Yo as NEW,
|
|
@@ -241,7 +243,7 @@ export {
|
|
|
241
243
|
It as RWAButton,
|
|
242
244
|
vt as RWACreateItemModal,
|
|
243
245
|
Bt as RWADeleteItemModal,
|
|
244
|
-
|
|
246
|
+
bt as RWAEditor,
|
|
245
247
|
lm as RWAEditorContextProvider,
|
|
246
248
|
Et as RWAFormRow,
|
|
247
249
|
Nt as RWANumberInput,
|
|
@@ -277,12 +279,12 @@ export {
|
|
|
277
279
|
xo as TooltipProvider,
|
|
278
280
|
Ia as TransactionReference,
|
|
279
281
|
ya as TransactionsTab,
|
|
280
|
-
|
|
282
|
+
ho as UI_NODE,
|
|
281
283
|
cr as UiNodesContext,
|
|
282
284
|
ur as UiNodesContextProvider,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
ba as UnitPrice,
|
|
286
|
+
Uo as WRITE,
|
|
287
|
+
Ar as WagmiContext,
|
|
286
288
|
Pt as _RWACreateItemModal,
|
|
287
289
|
_t as _RWADeleteItemModal,
|
|
288
290
|
mm as allGroupTransactionTypes,
|
|
@@ -332,7 +334,7 @@ export {
|
|
|
332
334
|
mo as isConnectTypeOptions,
|
|
333
335
|
Zm as isFixedIncomeAsset,
|
|
334
336
|
on as isHexString,
|
|
335
|
-
|
|
337
|
+
hm as isISODate,
|
|
336
338
|
o as legacy,
|
|
337
339
|
er as locationInfoByLocation,
|
|
338
340
|
Wa as makeDependentAssetsList,
|
|
@@ -361,7 +363,7 @@ export {
|
|
|
361
363
|
no as toast,
|
|
362
364
|
rt as useAnimation,
|
|
363
365
|
um as useColumnPriority,
|
|
364
|
-
|
|
366
|
+
ha as useDependentItemProps,
|
|
365
367
|
pt as useDocumentReducer,
|
|
366
368
|
Cr as useDrag,
|
|
367
369
|
Sr as useDrop,
|
|
@@ -371,7 +373,7 @@ export {
|
|
|
371
373
|
Im as useFormInputs,
|
|
372
374
|
Ht as useModal,
|
|
373
375
|
ft as usePagination,
|
|
374
|
-
|
|
376
|
+
bm as useSortTableItems,
|
|
375
377
|
Rm as useSubmit,
|
|
376
378
|
Em as useTableData,
|
|
377
379
|
Nm as useTableForm,
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as i, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { schema as n } from "@powerhousedao/scalars/EthereumAddress";
|
|
3
|
+
import { useState as c } from "react";
|
|
4
|
+
import { FormInput as l } from "../../connect/components/form-input/form-input.js";
|
|
5
|
+
const x = ({
|
|
6
|
+
onChange: s
|
|
7
|
+
}) => {
|
|
8
|
+
var o;
|
|
9
|
+
const [r, a] = c(""), t = n.safeParse(r), m = (o = t.error) == null ? void 0 : o.errors.map((e) => e.message).join(", ");
|
|
10
|
+
return s && s(r, t.success), /* @__PURE__ */ i("div", { children: [
|
|
11
|
+
/* @__PURE__ */ d(
|
|
12
|
+
l,
|
|
13
|
+
{
|
|
14
|
+
id: "eth-address-input",
|
|
15
|
+
value: r,
|
|
16
|
+
onChange: (e) => a(e.target.value),
|
|
17
|
+
placeholder: "0x...."
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ d("label", { htmlFor: "eth-address-input", children: r !== "" && m })
|
|
21
|
+
] });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
x as EthereumAddress
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=EthereumAddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EthereumAddress.js","sources":["../../../src/scalars/EthereumAddress/EthereumAddress.tsx"],"sourcesContent":["import { FormInput } from \"@/connect\";\nimport { schema } from \"@powerhousedao/scalars/EthereumAddress\";\nimport { useState } from \"react\";\n\nexport interface EthereumAddressProps {\n onChange?: (address: string, isValidAddress: boolean) => void;\n}\n\nexport const EthereumAddress: React.FC<EthereumAddressProps> = ({\n onChange,\n}) => {\n const [address, setAddress] = useState(\"\");\n\n const result = schema.safeParse(address);\n\n const errors = result.error?.errors.map((error) => error.message).join(\", \");\n\n if (onChange) {\n onChange(address, result.success);\n }\n\n return (\n <div>\n <FormInput\n id=\"eth-address-input\"\n value={address}\n onChange={(e) => setAddress(e.target.value)}\n placeholder=\"0x....\"\n />\n <label htmlFor=\"eth-address-input\">{address !== \"\" && errors}</label>\n </div>\n );\n};\n"],"names":["EthereumAddress","onChange","address","setAddress","useState","result","schema","errors","_a","error","jsx","FormInput"],"mappings":";;;;AAQO,MAAMA,IAAkD,CAAC;AAAA,EAC9D,UAAAC;AACF,MAAM;;AACJ,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAS,EAAE,GAEnCC,IAASC,EAAO,UAAUJ,CAAO,GAEjCK,KAASC,IAAAH,EAAO,UAAP,gBAAAG,EAAc,OAAO,IAAI,CAACC,MAAUA,EAAM,SAAS,KAAK;AAEvE,SAAIR,KACOA,EAAAC,GAASG,EAAO,OAAO,qBAI/B,OACC,EAAA,UAAA;AAAA,IAAA,gBAAAK;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,OAAOT;AAAA,QACP,UAAU,CAAC,MAAMC,EAAW,EAAE,OAAO,KAAK;AAAA,QAC1C,aAAY;AAAA,MAAA;AAAA,IACd;AAAA,sBACC,SAAM,EAAA,SAAQ,qBAAqB,UAAAD,MAAY,MAAMK,EAAO,CAAA;AAAA,EAAA,GAC/D;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EthereumAddress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EthereumAddress';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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.6.0",
|
|
59
59
|
"fast-xml-parser": "^4.3.4",
|
|
60
60
|
"jsdom": "^24.0.0",
|
|
61
61
|
"lightningcss": "^1.27.0",
|
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
"tailwindcss-animate": "^1.0.7",
|
|
97
97
|
"usehooks-ts": "^3.1.0",
|
|
98
98
|
"viem": "^2.16.1",
|
|
99
|
-
"wagmi": "^2.12.17"
|
|
99
|
+
"wagmi": "^2.12.17",
|
|
100
|
+
"zod": "^3.23.8",
|
|
101
|
+
"@powerhousedao/scalars": "1.8.0"
|
|
100
102
|
},
|
|
101
103
|
"scripts": {
|
|
102
104
|
"check-types": "tsc --noEmit",
|