@cryptofi/core-ui 0.53.0 → 0.55.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,7 +2,6 @@
2
2
  import * as _chakra_ui_react from '@chakra-ui/react';
3
3
  import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, SystemStyleObject, InputProps as InputProps$1, ModalProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import * as react from 'react';
6
5
  import { SVGProps, ReactElement, Dispatch, SetStateAction } from 'react';
7
6
  import { CurveType } from 'recharts/types/shape/Curve';
8
7
  import { UseFormRegister, FieldValues, Control } from 'react-hook-form';
@@ -213,7 +212,7 @@ declare const aggregateAmounts: (amounts: number[]) => number;
213
212
 
214
213
  declare const dateToTimestamp: ({ timeString, toEndDate }: {
215
214
  timeString: string;
216
- toEndDate?: boolean | undefined;
215
+ toEndDate?: boolean;
217
216
  }) => string;
218
217
  //# sourceMappingURL=dateToTimestamp.d.ts.map
219
218
 
@@ -226,8 +225,8 @@ type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
226
225
  */
227
226
  declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
228
227
  number: number | string;
229
- signDisplay?: SignDisplay | undefined;
230
- isDecimal?: boolean | undefined;
228
+ signDisplay?: SignDisplay;
229
+ isDecimal?: boolean;
231
230
  }) => string | number;
232
231
  //# sourceMappingURL=formatPercentage.d.ts.map
233
232
 
@@ -239,10 +238,10 @@ declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
239
238
  * @param signDisplay - Whether to display a plus sign for positive amounts
240
239
  */
241
240
  declare const formatUsd: ({ amount, autoPrecision, precision, signDisplay, }: {
242
- autoPrecision?: boolean | undefined;
241
+ autoPrecision?: boolean;
243
242
  amount: number | string;
244
- precision?: number | undefined;
245
- signDisplay?: boolean | undefined;
243
+ precision?: number;
244
+ signDisplay?: boolean;
246
245
  }) => string | number;
247
246
  //# sourceMappingURL=formatUsd.d.ts.map
248
247
 
@@ -297,8 +296,8 @@ declare const uiColors: {
297
296
  */
298
297
  declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
299
298
  usd: string;
300
- precision?: number | undefined;
301
- autoPrecision?: boolean | undefined;
299
+ precision?: number;
300
+ autoPrecision?: boolean;
302
301
  }) => number;
303
302
  //# sourceMappingURL=usdToNumber.d.ts.map
304
303
 
@@ -309,8 +308,8 @@ declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
309
308
  * @returns The formatted local date string. Returns 'Invalid Date' for unparseable dates.
310
309
  */
311
310
  declare const utcDateToLocal: ({ dateFormat, timeString, }: {
312
- dateFormat?: string | undefined;
313
- timeString?: string | undefined;
311
+ dateFormat?: string;
312
+ timeString?: string;
314
313
  }) => string;
315
314
  //# sourceMappingURL=utcDateToLocal.d.ts.map
316
315
 
@@ -328,15 +327,15 @@ type TooltipValueFormatter = (value: number) => string;
328
327
  declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
329
328
  data: any[] | undefined;
330
329
  dataKey: string;
331
- width?: string | undefined;
332
- height?: string | undefined;
333
- areaType?: CurveType | undefined;
334
- showTooltip?: boolean | undefined;
335
- isAnimated?: boolean | undefined;
336
- formatter?: TooltipValueFormatter | undefined;
337
- labelFormatter?: TooltipLabelFormatter | undefined;
338
- sampleRate?: number | undefined;
339
- style?: react.CSSProperties | undefined;
330
+ width?: string;
331
+ height?: string;
332
+ areaType?: CurveType;
333
+ showTooltip?: boolean;
334
+ isAnimated?: boolean;
335
+ formatter?: TooltipValueFormatter;
336
+ labelFormatter?: TooltipLabelFormatter;
337
+ sampleRate?: number;
338
+ style?: React.CSSProperties;
340
339
  }) => react_jsx_runtime.JSX.Element;
341
340
  //# sourceMappingURL=AreaChart.d.ts.map
342
341
 
@@ -350,7 +349,7 @@ declare const CfBreakpointDebugger: () => react_jsx_runtime.JSX.Element;
350
349
  declare const CfButtonGroup: ({ children, ...rest }: ButtonGroupProps) => react_jsx_runtime.JSX.Element;
351
350
 
352
351
  declare const CfButtonGroupButton: ({ isSelected, children, ...rest }: {
353
- isSelected?: boolean | undefined;
352
+ isSelected?: boolean;
354
353
  } & ButtonProps) => react_jsx_runtime.JSX.Element;
355
354
 
356
355
  declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
@@ -414,15 +413,15 @@ declare const CfInputArray: <T extends FieldValues>({ name, control, register, d
414
413
  declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
415
414
  data: any[] | undefined;
416
415
  dataKey: string;
417
- width?: string | undefined;
418
- height?: string | undefined;
419
- lineType?: CurveType | undefined;
420
- showTooltip?: boolean | undefined;
421
- isAnimated?: boolean | undefined;
422
- formatter?: TooltipValueFormatter | undefined;
423
- labelFormatter?: TooltipLabelFormatter | undefined;
424
- sampleRate?: number | undefined;
425
- style?: react.CSSProperties | undefined;
416
+ width?: string;
417
+ height?: string;
418
+ lineType?: CurveType;
419
+ showTooltip?: boolean;
420
+ isAnimated?: boolean;
421
+ formatter?: TooltipValueFormatter;
422
+ labelFormatter?: TooltipLabelFormatter;
423
+ sampleRate?: number;
424
+ style?: React.CSSProperties;
426
425
  }) => react_jsx_runtime.JSX.Element;
427
426
  //# sourceMappingURL=LineChart.d.ts.map
428
427
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -55,13 +55,13 @@
55
55
  "dayjs": "^1.11.10",
56
56
  "nanoid": "^3.3.6",
57
57
  "react-currency-input-field": "^3.8.0",
58
- "react-hook-form": "^7.51.3",
58
+ "react-hook-form": "^7.51.4",
59
59
  "react-paginate": "^8.2.0",
60
60
  "recharts": "^2.12.4",
61
61
  "yup": "^1.4.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@babel/core": "^7.24.0",
64
+ "@babel/core": "^7.24.5",
65
65
  "@chakra-ui/react": "^2.4.9",
66
66
  "@chakra-ui/storybook-addon": "^5.1.0",
67
67
  "@emotion/react": "^11.11.4",
@@ -69,24 +69,24 @@
69
69
  "@rollup/plugin-commonjs": "^25.0.7",
70
70
  "@rollup/plugin-node-resolve": "^15.2.3",
71
71
  "@rollup/plugin-terser": "^0.4.4",
72
- "@storybook/addon-essentials": "^8.0.9",
73
- "@storybook/addon-interactions": "^8.0.9",
74
- "@storybook/addon-links": "^8.0.9",
75
- "@storybook/addon-onboarding": "^8.0.9",
76
- "@storybook/blocks": "^8.0.9",
77
- "@storybook/components": "^8.0.9",
78
- "@storybook/manager-api": "^8.0.9",
79
- "@storybook/preview-api": "^8.0.9",
80
- "@storybook/react": "^8.0.9",
81
- "@storybook/react-vite": "^8.0.9",
82
- "@storybook/test": "^8.0.9",
83
- "@storybook/types": "^8.0.9",
72
+ "@storybook/addon-essentials": "^8.0.10",
73
+ "@storybook/addon-interactions": "^8.0.10",
74
+ "@storybook/addon-links": "^8.0.10",
75
+ "@storybook/addon-onboarding": "^8.0.10",
76
+ "@storybook/blocks": "^8.0.10",
77
+ "@storybook/components": "^8.0.10",
78
+ "@storybook/manager-api": "^8.0.10",
79
+ "@storybook/preview-api": "^8.0.10",
80
+ "@storybook/react": "^8.0.10",
81
+ "@storybook/react-vite": "^8.0.10",
82
+ "@storybook/test": "^8.0.10",
83
+ "@storybook/types": "^8.0.10",
84
84
  "@svgr/cli": "^8.1.0",
85
85
  "@svgr/core": "^8.1.0",
86
86
  "@svgr/plugin-jsx": "^8.1.0",
87
87
  "@svgr/plugin-prettier": "^8.1.0",
88
88
  "@svgr/plugin-svgo": "^8.1.0",
89
- "@testing-library/jest-dom": "^6.4.2",
89
+ "@testing-library/jest-dom": "^6.4.5",
90
90
  "@testing-library/react": "^15.0.5",
91
91
  "@types/big.js": "^6.2.2",
92
92
  "@types/jest": "^29.2.6",
@@ -95,8 +95,8 @@
95
95
  "@types/react-dom": "^18.2.25",
96
96
  "@types/rollup-plugin-peer-deps-external": "^2",
97
97
  "@types/stringify-object": "^4.0.4",
98
- "@typescript-eslint/eslint-plugin": "^7.7.1",
99
- "@typescript-eslint/parser": "^7.1.1",
98
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
99
+ "@typescript-eslint/parser": "^7.8.0",
100
100
  "chalk": "4.1.2",
101
101
  "core-js": "^3.36.1",
102
102
  "cross-var": "^1.1.0",
@@ -109,10 +109,10 @@
109
109
  "eslint-plugin-jsx-a11y": "^6.5.1",
110
110
  "eslint-plugin-prettier": "5.1.3",
111
111
  "eslint-plugin-react": "^7.34.1",
112
- "eslint-plugin-react-hooks": "^4.3.0",
112
+ "eslint-plugin-react-hooks": "^4.6.2",
113
113
  "eslint-plugin-simple-import-sort": "^12.0.0",
114
114
  "eslint-plugin-storybook": "^0.8.0",
115
- "eslint-plugin-unused-imports": "^3.1.0",
115
+ "eslint-plugin-unused-imports": "^3.2.0",
116
116
  "framer-motion": "^10.16.4",
117
117
  "identity-obj-proxy": "^3.0.0",
118
118
  "jest": "^29.4.0",
@@ -128,11 +128,11 @@
128
128
  "rollup-plugin-peer-deps-external": "^2.2.4",
129
129
  "rollup-plugin-typescript2": "^0.36.0",
130
130
  "rollup-plugin-visualizer": "^5.12.0",
131
- "storybook": "^8.0.9",
131
+ "storybook": "^8.0.10",
132
132
  "stringify-object": "^5.0.0",
133
133
  "ts-jest": "^29.0.5",
134
134
  "typescript": "^5.4.2",
135
135
  "vite": "^5.2.10"
136
136
  },
137
- "packageManager": "yarn@4.1.0"
137
+ "packageManager": "yarn@4.2.2"
138
138
  }