@cryptofi/core-ui 0.29.0 → 0.31.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.
@@ -2,6 +2,7 @@
2
2
  import { ButtonGroupProps, ButtonProps, CardProps, CheckboxProps, FlexProps, InputProps as InputProps$1, ModalProps, SelectProps, TagProps, UseToastOptions, ChakraComponent } from '@chakra-ui/react';
3
3
  import * as _chakra_ui_system_dist_system_types from '@chakra-ui/system/dist/system.types';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import * as react from 'react';
5
6
  import { SVGProps, Dispatch, SetStateAction } from 'react';
6
7
  import { CurveType } from 'recharts/types/shape/Curve';
7
8
  import { CurrencyInputProps } from 'react-currency-input-field';
@@ -227,10 +228,12 @@ declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
227
228
  /**
228
229
  *
229
230
  * @param amount - Number or string to format
231
+ * @param autoPrecision - Display five decimal places for amounts between -1 and 1 (overrides precision)
230
232
  * @param precision - The number of decimals to display
231
- * @signDisplay - Whether to display a plus sign for positive amounts
233
+ * @param signDisplay - Whether to display a plus sign for positive amounts
232
234
  */
233
- declare const formatUSD: ({ amount, precision, signDisplay, }: {
235
+ declare const formatUSD: ({ amount, autoPrecision, precision, signDisplay, }: {
236
+ autoPrecision?: boolean | undefined;
234
237
  amount: number | string;
235
238
  precision?: number | undefined;
236
239
  signDisplay?: boolean | undefined;
@@ -284,7 +287,7 @@ declare const uiColors: {
284
287
 
285
288
  declare const usdToNumber: (usd: string) => number;
286
289
 
287
- declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, }: {
290
+ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
288
291
  data: any[] | undefined;
289
292
  dataKey: string;
290
293
  width?: string | undefined;
@@ -294,6 +297,7 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
294
297
  isAnimated?: boolean | undefined;
295
298
  formatter?: ((value: number) => string) | undefined;
296
299
  sampleRate?: number | undefined;
300
+ style?: react.CSSProperties | undefined;
297
301
  }) => react_jsx_runtime.JSX.Element;
298
302
  //# sourceMappingURL=AreaChart.d.ts.map
299
303
 
@@ -359,7 +363,7 @@ type Props$1<T extends FieldValues> = {
359
363
  declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$1<T>) => react_jsx_runtime.JSX.Element;
360
364
  //# sourceMappingURL=InputArray.d.ts.map
361
365
 
362
- declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, }: {
366
+ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
363
367
  data: any[] | undefined;
364
368
  dataKey: string;
365
369
  width?: string | undefined;
@@ -369,14 +373,17 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
369
373
  isAnimated?: boolean | undefined;
370
374
  formatter?: ((value: number) => string) | undefined;
371
375
  sampleRate?: number | undefined;
376
+ style?: react.CSSProperties | undefined;
372
377
  }) => react_jsx_runtime.JSX.Element;
373
378
  //# sourceMappingURL=LineChart.d.ts.map
374
379
 
375
380
  interface Props extends ModalProps {
376
381
  headerContent?: React.ReactNode;
377
382
  footerContent?: React.ReactNode;
383
+ bodyMinHeight?: string | number;
384
+ bodyBackground?: string;
378
385
  }
379
- declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, ...rest }: Props) => react_jsx_runtime.JSX.Element;
386
+ declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyMinHeight, bodyBackground, ...rest }: Props) => react_jsx_runtime.JSX.Element;
380
387
  //# sourceMappingURL=Modal.d.ts.map
381
388
 
382
389
  interface LastEvaluatedKeyParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -11,7 +11,7 @@
11
11
  "type": "module",
12
12
  "scripts": {
13
13
  "build": "rm -rf ./dist && rollup -c",
14
- "build-storybook": "storybook build --docs -o dist",
14
+ "build:storybook": "storybook build --docs -o dist",
15
15
  "dev": "yarn storybook dev --docs",
16
16
  "format": "prettier --config ./.prettierrc -w '**/*.{tsx,ts,js,cjs,json,yml}' && git update-index --again",
17
17
  "icons:gen": "yarn icons:clean && yarn icons:prefix && npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",