@dappworks/kit 0.5.22 → 0.5.24
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/{chunk-5RDWJ3BR.mjs → chunk-DCSRCD7W.mjs} +21 -20
- package/dist/chunk-DCSRCD7W.mjs.map +1 -0
- package/dist/{chunk-UNOD2CPN.mjs → chunk-HI5TZD5C.mjs} +3 -3
- package/dist/{chunk-43PPHYFY.mjs → chunk-J4KYA4IE.mjs} +53 -531
- package/dist/chunk-J4KYA4IE.mjs.map +1 -0
- package/dist/{chunk-DVNRHEKS.mjs → chunk-LUZYPHFG.mjs} +3 -1
- package/dist/chunk-LUZYPHFG.mjs.map +1 -0
- package/dist/{chunk-ELOEHZQA.mjs → chunk-SNGWN2DW.mjs} +2 -2
- package/dist/dev.mjs +1 -1
- package/dist/experimental.d.mts +3 -3
- package/dist/form.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/jsontable.mjs +3 -3
- package/dist/metrics.mjs +3 -3
- package/dist/plugins.mjs +3 -3
- package/dist/ui.mjs +2 -2
- package/dist/wallet.mjs +3 -3
- package/package.json +2 -2
- package/dist/chunk-43PPHYFY.mjs.map +0 -1
- package/dist/chunk-5RDWJ3BR.mjs.map +0 -1
- package/dist/chunk-DVNRHEKS.mjs.map +0 -1
- /package/dist/{chunk-UNOD2CPN.mjs.map → chunk-HI5TZD5C.mjs.map} +0 -0
- /package/dist/{chunk-ELOEHZQA.mjs.map → chunk-SNGWN2DW.mjs.map} +0 -0
|
@@ -11,6 +11,8 @@ var Dialog = observer(() => {
|
|
|
11
11
|
const modal = rootStore2.get(DialogStore);
|
|
12
12
|
const { className, classNames, isOpen, placement, title, size, content, isDismissable } = modal;
|
|
13
13
|
const Content = typeof content === "function" ? content : () => content;
|
|
14
|
+
if (!isOpen)
|
|
15
|
+
return null;
|
|
14
16
|
return /* @__PURE__ */ React.createElement(
|
|
15
17
|
Modal,
|
|
16
18
|
{
|
|
@@ -73,4 +75,4 @@ var DialogStore = class _DialogStore {
|
|
|
73
75
|
|
|
74
76
|
export { DialogStore };
|
|
75
77
|
//# sourceMappingURL=out.js.map
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-LUZYPHFG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../module/Dialog/index.tsx","../module/Dialog/Provider.tsx"],"names":["React","rootStore"],"mappings":";;;;;;;;;;;;;AAAA,OAAOA,YAAW;AAClB,SAAS,0BAA0B;;;ACDnC,OAAO,WAAW;AAClB,SAAS,OAAO,WAAW,cAAc,mBAAmB;AAC5D,SAAS,gBAAgB;AAIzB,IAAM,SAAS,SAAS,MAAM;AAC5B,QAAMC,aAAY,SAAS;AAC3B,QAAM,QAAQA,WAAU,IAAI,WAAW;AACvC,QAAM,EAAE,WAAW,YAAY,QAAQ,WAAW,OAAO,MAAM,SAAS,cAAc,IAAI;AAC1F,QAAM,UAAU,OAAO,YAAY,aAAa,UAAU,MAAM;AAChE,MAAI,CAAC;AAAQ,WAAO;AACpB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,cAAc,CAAC,SAAkB;AAC/B,YAAI,CAAC,MAAM;AACT,gBAAM,MAAM;AAAA,QACd;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEA,oCAAC,gBAAa,WAAU,gCACrB,MACC,0DACG,SAAS,oCAAC,eAAY,WAAU,yBAAuB,KAAM,GAC9D,oCAAC,iBACC,oCAAC,aAAQ,CACX,CACF,CAEJ;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,mBAAQ;;;ADhCR,IAAM,cAAN,MAAM,aAA6B;AAAA,EAcxC,YAAY,MAA6B;AAbzC,eAAM;AACN,oBAAW,MAAM,gBAAAD,OAAA,cAAC,sBAAS;AAE3B,kBAAS;AAET,iBAAQ;AACR,gBAAkF;AAClF,qBAAoB;AAEpB,iBAAmB;AACnB,mBAA+D;AAC/D,yBAAgB;AAGd,UAAM,aAAa,UAAS,6BAAM,UAAS,WAAW,OAAO;AAC7D,UAAM,aAAa,kCACd,WAAW,aACX,6BAAM;AAEX,WAAO,OAAO,MAAM,MAAM,EAAE,WAAW,CAAC;AACxC,uBAAmB,IAAI;AAAA,EACzB;AAAA,EAGA,QAAQ,GAAyB;AAC/B,WAAO,OAAO,MAAM,CAAC;AAAA,EACvB;AAAA,EAEA,QAAQ;AACN,SAAK,SAAS;AACd,SAAK,QAAQ;AACb,SAAK,UAAU;AACf,SAAK,OAAO;AACZ,SAAK,gBAAgB;AAAA,EACvB;AAAA,EAEA,OAAO,KAAK,GAAyB;AACnC,UAAM,aAAa,UAAS,uBAAG,UAAS,WAAW,OAAO;AAC1D,UAAM,aAAa,kCACd,WAAW,aACX,uBAAG;AAER,cAAU,IAAI,YAAW,EAAE,QAAQ,iCAC9B,IAD8B;AAAA,MAEjC;AAAA,MACA,QAAQ;AAAA,IAEV,EAAC;AAAA,EACH;AAAA,EAEA,OAAO,QAAQ;AACb,cAAU,IAAI,YAAW,EAAE,MAAM;AAAA,EACnC;AACF","sourcesContent":["import React from \"react\";\nimport { makeAutoObservable } from \"mobx\";\nimport { rootStore } from \"../../store\";\nimport { Store } from \"../../store/standard/base\";\nimport Provider from \"./Provider\";\nimport { ModalSlots, SlotsToClasses } from \"@nextui-org/react\";\nimport { getStyle, ThemeType } from \"../../themes\";\n\nexport class DialogStore implements Store {\n sid = \"DialogStore\";\n provider = () => <Provider />;\n\n isOpen = false;\n placement: \"center\" | \"auto\" | \"top\" | \"bottom\" | \"top-center\" | \"bottom-center\";\n title = \"\";\n size: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"full\" | \"xs\" | \"3xl\" | \"4xl\" | \"5xl\" = \"md\";\n className: string = \"\";\n classNames?: SlotsToClasses<ModalSlots>;\n theme: ThemeType = \"default\";\n content: React.ReactNode | ((props: any) => React.ReactNode) = \"\";\n isDismissable = true;\n\n constructor(args?: Partial<DialogStore>) {\n const modalStyle = getStyle(args?.theme || 'default', 'Modal');\n const classNames = {\n ...modalStyle.classNames,\n ...args?.classNames\n }\n Object.assign(this, args, { classNames });\n makeAutoObservable(this);\n }\n\n\n setData(v: Partial<DialogStore>) {\n Object.assign(this, v);\n }\n\n close() {\n this.isOpen = false;\n this.title = \"\";\n this.content = \"\";\n this.size = \"md\";\n this.isDismissable = true;\n }\n\n static show(v: Partial<DialogStore>) {\n const modalStyle = getStyle(v?.theme || 'default', 'Modal');\n const classNames = {\n ...modalStyle.classNames,\n ...v?.classNames\n }\n rootStore.get(DialogStore).setData({\n ...v,\n classNames,\n isOpen: true,\n\n });\n }\n\n static close() {\n rootStore.get(DialogStore).close();\n }\n}\n","import React from \"react\";\nimport { Modal, ModalBody, ModalContent, ModalHeader } from \"@nextui-org/react\";\nimport { observer } from \"mobx-react-lite\";\nimport { DialogStore } from \".\";\nimport { useStore } from \"../../store/index\";\n\nconst Dialog = observer(() => {\n const rootStore = useStore();\n const modal = rootStore.get(DialogStore);\n const { className, classNames, isOpen, placement, title, size, content, isDismissable } = modal;\n const Content = typeof content === 'function' ? content : () => content;\n if (!isOpen) return null;\n return (\n <Modal\n isOpen={isOpen}\n size={size}\n placement={placement}\n onOpenChange={(open: boolean) => {\n if (!open) {\n modal.close();\n }\n }}\n className={className}\n classNames={classNames}\n isDismissable={isDismissable}\n >\n <ModalContent className=\"max-h-screen overflow-auto\">\n {() => (\n <>\n {title && <ModalHeader className=\"flex flex-col gap-1\">{title}</ModalHeader>}\n <ModalBody>\n <Content />\n </ModalBody>\n </>\n )}\n </ModalContent>\n </Modal >\n );\n});\n\nexport default Dialog;"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn } from './chunk-
|
|
1
|
+
import { cn } from './chunk-DCSRCD7W.mjs';
|
|
2
2
|
import { Skeleton } from '@nextui-org/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -26,4 +26,4 @@ var SkeletonBox = ({
|
|
|
26
26
|
|
|
27
27
|
export { SkeletonBox };
|
|
28
28
|
//# sourceMappingURL=out.js.map
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-SNGWN2DW.mjs.map
|
package/dist/dev.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { helper } from './chunk-R4N52NI2.mjs';
|
|
2
2
|
import { _ } from './chunk-K7LFG5BA.mjs';
|
|
3
|
-
import { cn } from './chunk-
|
|
3
|
+
import { cn } from './chunk-DCSRCD7W.mjs';
|
|
4
4
|
import { __objRest, __spreadProps, __spreadValues } from './chunk-VIK2VI34.mjs';
|
|
5
5
|
import * as React3 from 'react';
|
|
6
6
|
import React3__default, { useMemo, useRef } from 'react';
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as Store, R as RootStore } from './root-BPMUmS6H.js';
|
|
2
|
-
import React, { ReactNode, HTMLAttributeAnchorTarget } from 'react';
|
|
2
|
+
import React$1, { ReactNode, HTMLAttributeAnchorTarget } from 'react';
|
|
3
3
|
import 'typed-emitter';
|
|
4
4
|
|
|
5
5
|
declare class SlotPlugin implements Store {
|
|
@@ -176,7 +176,7 @@ declare class JSONViewPlugin implements Store {
|
|
|
176
176
|
JSONView: {
|
|
177
177
|
Test: {
|
|
178
178
|
name: string;
|
|
179
|
-
render: () => React.JSX.Element;
|
|
179
|
+
render: () => React$1.JSX.Element;
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
onNewStore({ rootStore, store }: {
|
|
@@ -184,7 +184,7 @@ declare class JSONViewPlugin implements Store {
|
|
|
184
184
|
store: Store;
|
|
185
185
|
}): void;
|
|
186
186
|
crawl(store: Store): void;
|
|
187
|
-
static JSONView: (props: JSONViewType) => React.JSX.Element;
|
|
187
|
+
static JSONView: (props: JSONViewType) => React$1.JSX.Element;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export { AsyncStorage, Collection, type DataGroup, type Engine, type JSONDataType, JSONViewPlugin, type JSONViewType, SlotPlugin, type StorageParams, StoragePlugin, jwt };
|
package/dist/form.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { getStyle } from './chunk-YG4RDLYA.mjs';
|
|
|
2
2
|
import { useStore, RootStore } from './chunk-XSGTWROT.mjs';
|
|
3
3
|
import { helper } from './chunk-R4N52NI2.mjs';
|
|
4
4
|
import { _ } from './chunk-K7LFG5BA.mjs';
|
|
5
|
-
import { cn } from './chunk-
|
|
5
|
+
import { cn } from './chunk-DCSRCD7W.mjs';
|
|
6
6
|
import { __objRest, __spreadValues, __spreadProps } from './chunk-VIK2VI34.mjs';
|
|
7
7
|
import React7, { useEffect, useMemo, useState, useRef, useCallback, createRef } from 'react';
|
|
8
8
|
import { Modal, ModalContent, ModalHeader, ModalBody, Checkbox, Input, Select, SelectItem, Button, Textarea, DatePicker, Chip, Card, Tabs, Tab } from '@nextui-org/react';
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AppProvider, AutoMan, BigNumberInputState, BigNumberState, ObjectPool, PromiseHook, StorageListState, StorageState } from './chunk-
|
|
1
|
+
export { AppProvider, AutoMan, BigNumberInputState, BigNumberState, ObjectPool, PromiseHook, StorageListState, StorageState } from './chunk-J4KYA4IE.mjs';
|
|
2
2
|
export { BooleanState, NumberState, PromiseState, Store, StringState, ValueState } from './chunk-B7RV4C5E.mjs';
|
|
3
3
|
import './chunk-6AX24IFY.mjs';
|
|
4
4
|
import './chunk-2N4HH4ZF.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-LUZYPHFG.mjs';
|
|
6
6
|
import './chunk-IMOLRP7I.mjs';
|
|
7
7
|
import './chunk-YG4RDLYA.mjs';
|
|
8
8
|
export { RootStore, rootStore, useStore } from './chunk-XSGTWROT.mjs';
|
package/dist/jsontable.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { JSONTable } from './chunk-
|
|
1
|
+
export { JSONTable } from './chunk-HI5TZD5C.mjs';
|
|
2
2
|
import './chunk-ONVPCAMQ.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-SNGWN2DW.mjs';
|
|
4
4
|
import './chunk-K7LFG5BA.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-DCSRCD7W.mjs';
|
|
6
6
|
import './chunk-VIK2VI34.mjs';
|
|
7
7
|
//# sourceMappingURL=out.js.map
|
|
8
8
|
//# sourceMappingURL=jsontable.mjs.map
|
package/dist/metrics.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { JSONTable } from './chunk-
|
|
1
|
+
import { JSONTable } from './chunk-HI5TZD5C.mjs';
|
|
2
2
|
import './chunk-ONVPCAMQ.mjs';
|
|
3
|
-
import { SkeletonBox } from './chunk-
|
|
3
|
+
import { SkeletonBox } from './chunk-SNGWN2DW.mjs';
|
|
4
4
|
import './chunk-K7LFG5BA.mjs';
|
|
5
|
-
import { cn } from './chunk-
|
|
5
|
+
import { cn } from './chunk-DCSRCD7W.mjs';
|
|
6
6
|
import { __spreadValues } from './chunk-VIK2VI34.mjs';
|
|
7
7
|
import React8 from 'react';
|
|
8
8
|
import { Grid, Col, BarChart, LineChart, AreaChart, DonutChart, Text } from '@tremor/react';
|
package/dist/plugins.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DialogStore } from './chunk-
|
|
2
|
-
export { DialogStore } from './chunk-
|
|
1
|
+
import { DialogStore } from './chunk-LUZYPHFG.mjs';
|
|
2
|
+
export { DialogStore } from './chunk-LUZYPHFG.mjs';
|
|
3
3
|
import { ToastPlugin } from './chunk-IMOLRP7I.mjs';
|
|
4
4
|
export { ToastPlugin } from './chunk-IMOLRP7I.mjs';
|
|
5
5
|
import { getStyle } from './chunk-YG4RDLYA.mjs';
|
|
6
6
|
import { useStore, RootStore } from './chunk-XSGTWROT.mjs';
|
|
7
7
|
import './chunk-K7LFG5BA.mjs';
|
|
8
|
-
import { cn } from './chunk-
|
|
8
|
+
import { cn } from './chunk-DCSRCD7W.mjs';
|
|
9
9
|
import { __spreadProps, __spreadValues } from './chunk-VIK2VI34.mjs';
|
|
10
10
|
import { makeAutoObservable, makeObservable } from 'mobx';
|
|
11
11
|
import React3 from 'react';
|
package/dist/ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { SkeletonBox } from './chunk-
|
|
2
|
-
import { cn } from './chunk-
|
|
1
|
+
export { SkeletonBox } from './chunk-SNGWN2DW.mjs';
|
|
2
|
+
import { cn } from './chunk-DCSRCD7W.mjs';
|
|
3
3
|
import './chunk-VIK2VI34.mjs';
|
|
4
4
|
import React, { useState, useEffect } from 'react';
|
|
5
5
|
import { Card } from '@nextui-org/react';
|
package/dist/wallet.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { WalletConfigStore, WalletStore, WalletRpcStore } from './chunk-
|
|
2
|
-
export { ConnectLedger, DisconnectLedger, WalletConfigStore, WalletHistoryStore, WalletRpcStore, WalletStore } from './chunk-
|
|
1
|
+
import { WalletConfigStore, WalletStore, WalletRpcStore } from './chunk-J4KYA4IE.mjs';
|
|
2
|
+
export { ConnectLedger, DisconnectLedger, WalletConfigStore, WalletHistoryStore, WalletRpcStore, WalletStore } from './chunk-J4KYA4IE.mjs';
|
|
3
3
|
import './chunk-B7RV4C5E.mjs';
|
|
4
4
|
import './chunk-6AX24IFY.mjs';
|
|
5
5
|
import './chunk-2N4HH4ZF.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-LUZYPHFG.mjs';
|
|
7
7
|
import { ToastPlugin } from './chunk-IMOLRP7I.mjs';
|
|
8
8
|
import './chunk-YG4RDLYA.mjs';
|
|
9
9
|
import { RootStore } from './chunk-XSGTWROT.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dappworks/kit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -171,4 +171,4 @@
|
|
|
171
171
|
"reflect-metadata": "^0.2.2",
|
|
172
172
|
"virtua": "0.33.7"
|
|
173
173
|
}
|
|
174
|
-
}
|
|
174
|
+
}
|