one-ewallet-otc-ui 0.0.1 → 0.0.2

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/style.css CHANGED
@@ -1 +1 @@
1
- .loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.loading-container .loading-text{font-size:14px;color:#666;font-weight:500;animation:textPulse 2s ease-in-out infinite}.loading-small{transform:scale(.6)}.loading-medium{transform:scale(1)}.loading-large{transform:scale(1.4)}.loading-spinner{position:relative;width:60px;height:60px}.loading-spinner .spinner-ring{position:absolute;width:100%;height:100%;border:3px solid transparent;border-top:3px solid #fbbb04;border-radius:50%;animation:spin 1.2s linear infinite}.loading-spinner .spinner-ring:nth-child(1){animation-delay:0s;border-top-color:#ea4334}.loading-spinner .spinner-ring:nth-child(2){animation-delay:.4s;border-top-color:#35a853}.loading-spinner .spinner-ring:nth-child(3){animation-delay:.8s;border-top-color:#4185f4}.loading-pulse{display:flex;gap:8px}.loading-pulse .pulse-circle{width:12px;height:12px;border-radius:50%;background:linear-gradient(45deg,#007bff,#00d4ff);animation:pulse 1.4s ease-in-out infinite both}.loading-pulse .pulse-circle:nth-child(1){animation-delay:0s}.loading-pulse .pulse-circle:nth-child(2){animation-delay:.2s}.loading-pulse .pulse-circle:nth-child(3){animation-delay:.4s}.loading-wave{display:flex;gap:4px;align-items:flex-end;height:40px}.loading-wave .wave-bar{width:6px;background:linear-gradient(180deg,#007bff,#00d4ff);border-radius:3px;animation:wave 1.2s ease-in-out infinite}.loading-wave .wave-bar:nth-child(1){animation-delay:0s;height:20px}.loading-wave .wave-bar:nth-child(2){animation-delay:.1s;height:30px}.loading-wave .wave-bar:nth-child(3){animation-delay:.2s;height:40px}.loading-wave .wave-bar:nth-child(4){animation-delay:.3s;height:30px}.loading-wave .wave-bar:nth-child(5){animation-delay:.4s;height:20px}.loading-dots{display:flex;gap:6px}.loading-dots .dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(45deg,#007bff,#00d4ff);animation:dots 1.4s ease-in-out infinite both}.loading-dots .dot:nth-child(1){animation-delay:0s}.loading-dots .dot:nth-child(2){animation-delay:.2s}.loading-dots .dot:nth-child(3){animation-delay:.4s}.loading-ripple{position:relative;width:60px;height:60px}.loading-ripple .ripple-circle{position:absolute;width:100%;height:100%;border:2px solid #007bff;border-radius:50%;animation:ripple 2s ease-out infinite}.loading-ripple .ripple-circle:nth-child(1){animation-delay:0s}.loading-ripple .ripple-circle:nth-child(2){animation-delay:.5s}.loading-ripple .ripple-circle:nth-child(3){animation-delay:1s}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulse{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}@keyframes wave{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}@keyframes dots{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}@keyframes ripple{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}@keyframes textPulse{0%,to{opacity:.6}50%{opacity:1}}@media (prefers-color-scheme: dark){.loading-container .loading-text{color:#999}.loading-pulse .pulse-circle,.loading-dots .dot{background:linear-gradient(45deg,#4dabf7,#74c0fc)}.loading-wave .wave-bar{background:linear-gradient(180deg,#4dabf7,#74c0fc)}.loading-ripple .ripple-circle{border-color:#4dabf7}}@media (max-width: 768px){.loading-container{gap:12px}.loading-container .loading-text{font-size:12px}.loading-medium{transform:scale(.9)}.loading-large{transform:scale(1.2)}}.ant-modal{background:#16171a!important;border-radius:12px!important}.ant-modal-content{background:#16171a!important}.anticon,.ant-select-selector{color:#fff!important}.otc-modal .token-select-box{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;background:#16171a33}.otc-modal .custom-select{width:100%}.otc-modal .custom-select .ant-select-selector{background:transparent!important;border:none!important;box-shadow:none!important;padding-left:0!important}.otc-modal .underline{text-decoration:underline}.otc-modal .cor{color:#5ec1ff}.withdraw-page .input.ant-input,.otc-modal .input.ant-input{height:48px;border-radius:8px;background:#16171a33;border:1px solid #2a2f36;color:#cbd5e1;placeholder:#94a3b8}.withdraw-page .input.ant-input::placeholder,.otc-modal .input.ant-input::placeholder{color:#94a3b8}.ant-btn:disabled{background:#ffffff80!important;border:none!important;color:#fff;cursor:not-allowed}.ant-btn:disabled:hover{background:#ffffff4d;border:none;color:#fff}.pointer{cursor:pointer}.fwb{font-weight:700}.ta{text-align:center}.tr{text-align:right}.cf{color:#e2e8f0}.cf06{color:#94a3b8}.w100,.w-100{width:100%}.m-w-60{max-width:60px}.h-48{height:48px}.m-h-36{min-height:36px}.fz-12{font-size:12px}.fz-14{font-size:14px}.fz-16{font-size:16px}.fz-18{font-size:18px}.fz-24{font-size:24px}.m-b-6{margin-bottom:6px}.m-b-8{margin-bottom:8px}.m-b-12{margin-bottom:12px}.m-b-16{margin-bottom:16px}.m-t-4{margin-top:4px}.m-t-6{margin-top:6px}.m-t-8{margin-top:8px}.m-t-10{margin-top:10px}.m-t-12{margin-top:12px}.m-t-16{margin-top:16px}.p-12{padding:12px}.p-t-40{padding-top:40px}.gap-4{gap:4px}.gap-8{gap:8px}.gap-12{gap:12px}.flex{display:flex}.flex-middle{justify-content:center}.flex-center{align-items:center}.flex-between{justify-content:space-between}.flex-column{flex-direction:column}
1
+ .loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.loading-container .loading-text{font-size:14px;color:#666;font-weight:500;animation:textPulse 2s ease-in-out infinite}.loading-small{transform:scale(.6)}.loading-medium{transform:scale(1)}.loading-large{transform:scale(1.4)}.loading-spinner{position:relative;width:60px;height:60px}.loading-spinner .spinner-ring{position:absolute;width:100%;height:100%;border:3px solid transparent;border-top:3px solid #fbbb04;border-radius:50%;animation:spin 1.2s linear infinite}.loading-spinner .spinner-ring:nth-child(1){animation-delay:0s;border-top-color:#ea4334}.loading-spinner .spinner-ring:nth-child(2){animation-delay:.4s;border-top-color:#35a853}.loading-spinner .spinner-ring:nth-child(3){animation-delay:.8s;border-top-color:#4185f4}.loading-pulse{display:flex;gap:8px}.loading-pulse .pulse-circle{width:12px;height:12px;border-radius:50%;background:linear-gradient(45deg,#007bff,#00d4ff);animation:pulse 1.4s ease-in-out infinite both}.loading-pulse .pulse-circle:nth-child(1){animation-delay:0s}.loading-pulse .pulse-circle:nth-child(2){animation-delay:.2s}.loading-pulse .pulse-circle:nth-child(3){animation-delay:.4s}.loading-wave{display:flex;gap:4px;align-items:flex-end;height:40px}.loading-wave .wave-bar{width:6px;background:linear-gradient(180deg,#007bff,#00d4ff);border-radius:3px;animation:wave 1.2s ease-in-out infinite}.loading-wave .wave-bar:nth-child(1){animation-delay:0s;height:20px}.loading-wave .wave-bar:nth-child(2){animation-delay:.1s;height:30px}.loading-wave .wave-bar:nth-child(3){animation-delay:.2s;height:40px}.loading-wave .wave-bar:nth-child(4){animation-delay:.3s;height:30px}.loading-wave .wave-bar:nth-child(5){animation-delay:.4s;height:20px}.loading-dots{display:flex;gap:6px}.loading-dots .dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(45deg,#007bff,#00d4ff);animation:dots 1.4s ease-in-out infinite both}.loading-dots .dot:nth-child(1){animation-delay:0s}.loading-dots .dot:nth-child(2){animation-delay:.2s}.loading-dots .dot:nth-child(3){animation-delay:.4s}.loading-ripple{position:relative;width:60px;height:60px}.loading-ripple .ripple-circle{position:absolute;width:100%;height:100%;border:2px solid #007bff;border-radius:50%;animation:ripple 2s ease-out infinite}.loading-ripple .ripple-circle:nth-child(1){animation-delay:0s}.loading-ripple .ripple-circle:nth-child(2){animation-delay:.5s}.loading-ripple .ripple-circle:nth-child(3){animation-delay:1s}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulse{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}@keyframes wave{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}@keyframes dots{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}@keyframes ripple{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}@keyframes textPulse{0%,to{opacity:.6}50%{opacity:1}}@media (prefers-color-scheme: dark){.loading-container .loading-text{color:#999}.loading-pulse .pulse-circle,.loading-dots .dot{background:linear-gradient(45deg,#4dabf7,#74c0fc)}.loading-wave .wave-bar{background:linear-gradient(180deg,#4dabf7,#74c0fc)}.loading-ripple .ripple-circle{border-color:#4dabf7}}@media (max-width: 768px){.loading-container{gap:12px}.loading-container .loading-text{font-size:12px}.loading-medium{transform:scale(.9)}.loading-large{transform:scale(1.2)}}.ant-modal{background:#16171a!important;border-radius:12px!important}.ant-modal-content{background:#16171a!important}.anticon,.ant-select-selector{color:#fff!important}.otc-modal .token-select-box{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;background:#16171a33}.otc-modal .custom-select{width:100%}.otc-modal .custom-select .ant-select-selector{background:transparent!important;border:none!important;box-shadow:none!important;padding-left:0!important}.otc-modal .underline{text-decoration:underline}.otc-modal .cor{color:#5ec1ff}.withdraw-page .input.ant-input,.otc-modal .input.ant-input{height:48px!important;border-radius:8px!important;background:#16171a33!important;border:1px solid #2a2f36!important;color:#cbd5e1!important;placeholder:#94a3b8!important}.withdraw-page .input.ant-input::placeholder,.otc-modal .input.ant-input::placeholder{color:#94a3b8!important}.ant-btn:disabled{background:#ffffff80!important;border:none!important;color:#fff!important;cursor:not-allowed!important}.ant-btn:disabled:hover{background:#ffffff4d!important;border:none!important;color:#fff!important}.pointer{cursor:pointer}.fwb{font-weight:700}.ta{text-align:center}.tr{text-align:right}.cf{color:#e2e8f0}.cf06{color:#94a3b8}.w100,.w-100{width:100%}.m-w-60{max-width:60px}.h-48{height:48px}.m-h-36{min-height:36px}.fz-12{font-size:12px}.fz-14{font-size:14px}.fz-16{font-size:16px}.fz-18{font-size:18px}.fz-24{font-size:24px}.m-b-6{margin-bottom:6px}.m-b-8{margin-bottom:8px}.m-b-12{margin-bottom:12px}.m-b-16{margin-bottom:16px}.m-t-4{margin-top:4px}.m-t-6{margin-top:6px}.m-t-8{margin-top:8px}.m-t-10{margin-top:10px}.m-t-12{margin-top:12px}.m-t-16{margin-top:16px}.p-12{padding:12px}.p-t-40{padding-top:40px}.gap-4{gap:4px}.gap-8{gap:8px}.gap-12{gap:12px}.flex{display:flex}.flex-middle{justify-content:center}.flex-center{align-items:center}.flex-between{justify-content:space-between}.flex-column{flex-direction:column}
@@ -0,0 +1,10 @@
1
+ import './scss/loading.scss';
2
+ interface LoadingProps {
3
+ size?: 'small' | 'medium' | 'large';
4
+ type?: 'spinner' | 'pulse' | 'wave' | 'dots' | 'ripple';
5
+ text?: string;
6
+ className?: string;
7
+ }
8
+ declare const Loading: React.FC<LoadingProps>;
9
+ export default Loading;
10
+ //# sourceMappingURL=Loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/components/OTC/Loading.tsx"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAE7B,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwEnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import './scss/otc.scss';
2
+ export interface OtcModalProps {
3
+ children: React.ReactNode;
4
+ baseUrl: string;
5
+ lang?: 'ZH' | 'EN';
6
+ authToken: string;
7
+ userAddress: string;
8
+ }
9
+ export default function OtcModal({ children, lang, authToken, userAddress, baseUrl }: OtcModalProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=OtcModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OtcModal.d.ts","sourceRoot":"","sources":["../../../../src/components/OTC/OtcModal.tsx"],"names":[],"mappings":"AAmBA,OAAO,iBAAiB,CAAA;AACxB,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AA2BD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAW,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,aAAa,2CA4YzG"}
@@ -0,0 +1,9 @@
1
+ interface QRCodeProps {
2
+ data: string;
3
+ width?: number;
4
+ height?: number;
5
+ image?: string;
6
+ }
7
+ export declare const QRCode: ({ data, width, height, image }: QRCodeProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Qrcode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Qrcode.d.ts","sourceRoot":"","sources":["../../../../src/components/OTC/Qrcode.tsx"],"names":[],"mappings":"AAGA,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,MAAM,GAAI,gCAAiD,WAAW,4CAsDlF,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { useSuiClient } from '@onelabs/dapp-kit';
2
+ import './scss/otc.scss';
3
+ export interface WithdrawProps {
4
+ children: React.ReactNode;
5
+ baseUrl: string;
6
+ lang?: 'ZH' | 'EN';
7
+ authToken: string;
8
+ userAddress: string;
9
+ suiClient: ReturnType<typeof useSuiClient>;
10
+ USDH_COIN_TYPE: string;
11
+ USDH_DECIMALS: number;
12
+ onSubmit: (withdrawData: any, callback: () => void) => void;
13
+ }
14
+ export default function Withdraw({ children, lang, authToken, userAddress, baseUrl, suiClient, USDH_COIN_TYPE, USDH_DECIMALS, onSubmit }: WithdrawProps): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=Withdraw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Withdraw.d.ts","sourceRoot":"","sources":["../../../../src/components/OTC/Withdraw.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAenE,OAAO,iBAAiB,CAAA;AAKxB,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CAC7D;AA0BD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAW,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,aAAiB,EAAE,QAAQ,EAAE,EAAE,aAAa,2CA6UjK"}
@@ -0,0 +1,2 @@
1
+ export declare function post(url: string, token: string, data: any): Promise<unknown>;
2
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/components/OTC/http.ts"],"names":[],"mappings":"AAcA,wBAAgB,IAAI,CAChB,GAAG,EAAC,MAAM,EACV,KAAK,EAAC,MAAM,EACZ,IAAI,EAAC,GAAG,oBAyBT"}
@@ -0,0 +1,102 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare const onCopyToText: (text: string) => void;
3
+ export declare const addPoint: (address?: string, len?: number) => string;
4
+ export declare const formatTimeStr: (time: string) => string;
5
+ export type RoundingMode = BigNumber.RoundingMode;
6
+ export declare function pow(base: number | string, exponent: number): string;
7
+ export declare function times(num1: number | string, num2: number | string, toFix?: number): string;
8
+ export declare function plus(num1: number | string, num2: number | string, toFix?: number): string;
9
+ export declare function sum(numbers: (number | string)[], toFix?: number): string;
10
+ export declare function equal(num1: number | string, num2: number | string): boolean;
11
+ export declare function divide(num1: number | string, num2: number | string, toFix?: number): string;
12
+ export declare function gt(num1: number | string, num2: number | string): boolean;
13
+ export declare function gte(num1: number | string, num2: number | string): boolean;
14
+ export declare function lt(num1: number | string, num2: number | string): boolean;
15
+ export declare function lte(num1: number | string, num2: number | string): boolean;
16
+ export declare function minus(num1: number | string, num2: number | string, toFix?: number): string;
17
+ export declare function ceil(num: string | number): string;
18
+ export declare function fix(number: string, decimal?: number, optional?: RoundingMode): string;
19
+ export declare function toDisplayDenomAmount(number: string | number, decimal: number): string;
20
+ export declare function toBaseDenomAmount(number: string | number, decimal: number): string;
21
+ export declare function isNumber(number: string): boolean;
22
+ export declare function isDecimal(number: string, decimal: number): boolean;
23
+ export declare function calculatePercentiles(numbers: number[], percentiles: number[]): number[];
24
+ /**
25
+ * 将最小单位转为可读的 Token 数量
26
+ * @param value - 最小单位数值
27
+ * @param decimals - 精度
28
+ * @param precision - 保留的小数位数
29
+ */
30
+ export declare function formatUnits(value: string | number, decimals: number, precision?: number): string;
31
+ /**
32
+ * 将 token 数量转为最小单位(向下取整为整数)
33
+ */
34
+ export declare function parseUnits(value: string | number, decimals: number): string;
35
+ /**
36
+ * 将字符串或 BigNumber 转为 bigint,若有小数则直接舍弃(向零截断)。
37
+ * @throws 当值为 NaN / 非有限数时抛错
38
+ */
39
+ export declare function toBigIntTrunc(value: string | BigNumber): bigint;
40
+ /**
41
+ * 截取字符串小数位
42
+ */
43
+ export declare function truncateDecimals(str: string | number, decimalPlaces: number): string;
44
+ type AbbrevStyle = 'western' | 'cn';
45
+ /**
46
+ * 千分位分隔符格式化
47
+ */
48
+ type SeparatorOptions = {
49
+ style?: AbbrevStyle;
50
+ separator?: string;
51
+ };
52
+ export declare function formatNumberWithSeparator(num: number | string, options?: SeparatorOptions): string;
53
+ type FormatOptions = {
54
+ style?: 'western' | 'cn';
55
+ decimals?: number;
56
+ minDecimals?: number;
57
+ trimZeros?: boolean;
58
+ locale?: false | string;
59
+ threshold?: number;
60
+ smallDecimals?: number;
61
+ };
62
+ export declare function abbreviateNumber(input: number | string | null | undefined, options?: FormatOptions): string;
63
+ /**
64
+ * 数字舍入
65
+ * @param value 要处理的数字
66
+ * @param digits 保留的小数位(可为负,-1 表示到十位,-2 到百位…)
67
+ * @param mode 舍入方式:
68
+ * - 'round' 四舍五入(默认)
69
+ * - 'floor' 向下取整
70
+ * - 'ceil' 向上取整
71
+ * - 'towardZero' 向零取整
72
+ * - 'awayFromZero' 远离零取整
73
+ * - 'halfEven' 银行家舍入(四舍六入,五看前一位奇偶)
74
+ * @returns number
75
+ */
76
+ export declare function roundDecimal(value: number | string, digits?: number, mode?: 'round' | 'floor' | 'ceil' | 'towardZero' | 'awayFromZero' | 'halfEven'): number;
77
+ /**
78
+ * 把结果格式化为固定小数位的字符串(不会补科学计数法)
79
+ * @example formatFixed(1.005, 2, 'halfEven') -> "1.00"
80
+ */
81
+ export declare function formatFixed(value: number, digits?: number, mode?: 'round' | 'floor' | 'ceil' | 'towardZero' | 'awayFromZero' | 'halfEven'): string;
82
+ /**
83
+ * 通用数字格式化
84
+ * - 支持整数分组(groupSize 或 groupPattern)
85
+ * - 支持小数分组(fractionGroupSize)
86
+ * - 支持自定义分隔符/小数点符号
87
+ * - 支持最少/最多小数位(最多位会四舍五入,half-up)
88
+ */
89
+ export interface FormatNumberOptions {
90
+ groupSize?: number;
91
+ groupPattern?: number[];
92
+ groupSeparator?: string;
93
+ decimalSeparator?: string;
94
+ minFractionDigits?: number;
95
+ maxFractionDigits?: number;
96
+ fractionGroupSize?: number;
97
+ fractionGroupSeparator?: string;
98
+ trimTrailingZeros?: boolean;
99
+ }
100
+ export declare function formatNumber(input: number | string | bigint, opts?: FormatNumberOptions): string;
101
+ export {};
102
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/components/OTC/util.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,SAQxC,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,UAAS,MAAW,EAAE,YAAO,WAErD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAK5C,CAAA;AAID,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;AAMlD,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,UAE1D;AAGD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,UAGjF;AAGD,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,UAGhF;AAGD,wBAAgB,GAAG,CAAC,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAOxE;AAGD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MA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,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,SAAI,EACV,IAAI,GACA,OAAO,GACP,OAAO,GACP,MAAM,GACN,YAAY,GACZ,cAAc,GACd,UAAoB,GACvB,MAAM,CAmER;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,EACb,MAAM,SAAI,EACV,IAAI,GACA,OAAO,GACP,OAAO,GACP,MAAM,GACN,YAAY,GACZ,cAAc,GACd,UAAoB,GACvB,MAAM,CAKR;AAED;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAElC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAGhC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAC/B,IAAI,GAAE,mBAAwB,GAC7B,MAAM,CAmDR"}
@@ -0,0 +1,5 @@
1
+ export { default as OtcModal } from './OTC/OtcModal';
2
+ export type { OtcModalProps } from './OTC/OtcModal';
3
+ export { default as Withdraw } from './OTC/Withdraw';
4
+ export type { WithdrawProps } from './OTC/Withdraw';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ declare module '*.scss' {
2
+ const content: string;
3
+ export default content;
4
+ }
5
+
6
+ declare module '*.css' {
7
+ const content: string;
8
+ export default content;
9
+ }
10
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-ewallet-otc-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"