@cryptofi/core-ui 0.12.1 → 0.13.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/README.md +6 -2
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +7 -6
- package/package.json +2 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -178,7 +178,7 @@ declare const convertToUTCEpochTime: ({ timeString, toEndDate }: {
|
|
|
178
178
|
}) => string;
|
|
179
179
|
//# sourceMappingURL=convertToUTCEpochTime.d.ts.map
|
|
180
180
|
|
|
181
|
-
type SignDisplay
|
|
181
|
+
type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
182
182
|
/**
|
|
183
183
|
*
|
|
184
184
|
* @param amount - A finite number
|
|
@@ -187,20 +187,21 @@ type SignDisplay$1 = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
|
187
187
|
*/
|
|
188
188
|
declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
|
|
189
189
|
number: number;
|
|
190
|
-
signDisplay?: SignDisplay
|
|
190
|
+
signDisplay?: SignDisplay | undefined;
|
|
191
191
|
isDecimal?: boolean | undefined;
|
|
192
192
|
}) => string;
|
|
193
193
|
//# sourceMappingURL=formatPercentage.d.ts.map
|
|
194
194
|
|
|
195
|
-
type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
196
195
|
/**
|
|
197
196
|
*
|
|
198
197
|
* @param amount - A finite number
|
|
199
|
-
* @param
|
|
198
|
+
* @param precision - The number of decimals to display
|
|
199
|
+
* @signDisplay - Whether to display a plus sign for positive amounts
|
|
200
200
|
*/
|
|
201
|
-
declare const formatUSD: ({ amount, signDisplay }: {
|
|
201
|
+
declare const formatUSD: ({ amount, precision, signDisplay, }: {
|
|
202
202
|
amount: number;
|
|
203
|
-
|
|
203
|
+
precision?: number | undefined;
|
|
204
|
+
signDisplay?: boolean | undefined;
|
|
204
205
|
}) => string;
|
|
205
206
|
//# sourceMappingURL=formatUSD.d.ts.map
|
|
206
207
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptofi/core-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@chakra-ui/anatomy": "^2.2.2",
|
|
47
47
|
"@hookform/resolvers": "^3.3.4",
|
|
48
48
|
"colord": "^2.9.3",
|
|
49
|
+
"currency.js": "^2.0.4",
|
|
49
50
|
"dayjs": "^1.11.10",
|
|
50
51
|
"decimal.js": "^10.4.3",
|
|
51
52
|
"react-hook-form": "^7.49.3",
|