@cryptofi/core-ui 0.12.1 → 0.14.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.
@@ -178,7 +178,7 @@ declare const convertToUTCEpochTime: ({ timeString, toEndDate }: {
178
178
  }) => string;
179
179
  //# sourceMappingURL=convertToUTCEpochTime.d.ts.map
180
180
 
181
- type SignDisplay$1 = 'auto' | 'always' | 'exceptZero' | 'never';
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$1 | undefined;
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 signDisplay - Setting for minus / plus sign, defaults to auto
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
- signDisplay?: SignDisplay | undefined;
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.12.1",
3
+ "version": "0.14.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",