@volr/react-ui 0.1.55 → 0.1.57
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/index.cjs +284 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +211 -71
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -128,6 +128,12 @@ declare const en: {
|
|
|
128
128
|
readonly title: "Success!";
|
|
129
129
|
readonly message: "You're all set. Redirecting...";
|
|
130
130
|
};
|
|
131
|
+
readonly account: {
|
|
132
|
+
readonly title: "My Account";
|
|
133
|
+
readonly walletAddress: "Wallet Address";
|
|
134
|
+
readonly email: "Email";
|
|
135
|
+
readonly logout: "Log out";
|
|
136
|
+
};
|
|
131
137
|
readonly deposit: {
|
|
132
138
|
readonly selectTitle: "Select asset to deposit";
|
|
133
139
|
readonly qrTitle: "Deposit";
|
|
@@ -187,13 +193,21 @@ interface I18nProviderProps {
|
|
|
187
193
|
declare function I18nProvider({ children }: I18nProviderProps): react_jsx_runtime.JSX.Element;
|
|
188
194
|
declare const useTranslation: typeof useI18n;
|
|
189
195
|
|
|
190
|
-
type ModalMode = "
|
|
196
|
+
type ModalMode = "account" | "deposit";
|
|
197
|
+
interface ModalAsset {
|
|
198
|
+
chainId: number;
|
|
199
|
+
symbol: string;
|
|
200
|
+
}
|
|
201
|
+
interface OpenModalOptions {
|
|
202
|
+
mode?: ModalMode;
|
|
203
|
+
asset?: ModalAsset;
|
|
204
|
+
}
|
|
191
205
|
interface VolrModalContextValue {
|
|
192
206
|
isOpen: boolean;
|
|
193
207
|
mode: ModalMode;
|
|
194
|
-
|
|
208
|
+
asset: ModalAsset | null;
|
|
209
|
+
open: (options?: OpenModalOptions) => void;
|
|
195
210
|
close: () => void;
|
|
196
|
-
toggle: () => void;
|
|
197
211
|
}
|
|
198
212
|
declare const useVolrModal: () => VolrModalContextValue;
|
|
199
213
|
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,12 @@ declare const en: {
|
|
|
128
128
|
readonly title: "Success!";
|
|
129
129
|
readonly message: "You're all set. Redirecting...";
|
|
130
130
|
};
|
|
131
|
+
readonly account: {
|
|
132
|
+
readonly title: "My Account";
|
|
133
|
+
readonly walletAddress: "Wallet Address";
|
|
134
|
+
readonly email: "Email";
|
|
135
|
+
readonly logout: "Log out";
|
|
136
|
+
};
|
|
131
137
|
readonly deposit: {
|
|
132
138
|
readonly selectTitle: "Select asset to deposit";
|
|
133
139
|
readonly qrTitle: "Deposit";
|
|
@@ -187,13 +193,21 @@ interface I18nProviderProps {
|
|
|
187
193
|
declare function I18nProvider({ children }: I18nProviderProps): react_jsx_runtime.JSX.Element;
|
|
188
194
|
declare const useTranslation: typeof useI18n;
|
|
189
195
|
|
|
190
|
-
type ModalMode = "
|
|
196
|
+
type ModalMode = "account" | "deposit";
|
|
197
|
+
interface ModalAsset {
|
|
198
|
+
chainId: number;
|
|
199
|
+
symbol: string;
|
|
200
|
+
}
|
|
201
|
+
interface OpenModalOptions {
|
|
202
|
+
mode?: ModalMode;
|
|
203
|
+
asset?: ModalAsset;
|
|
204
|
+
}
|
|
191
205
|
interface VolrModalContextValue {
|
|
192
206
|
isOpen: boolean;
|
|
193
207
|
mode: ModalMode;
|
|
194
|
-
|
|
208
|
+
asset: ModalAsset | null;
|
|
209
|
+
open: (options?: OpenModalOptions) => void;
|
|
195
210
|
close: () => void;
|
|
196
|
-
toggle: () => void;
|
|
197
211
|
}
|
|
198
212
|
declare const useVolrModal: () => VolrModalContextValue;
|
|
199
213
|
|