@cryptofi/core-ui 0.31.0 → 0.33.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.
@@ -77,9 +77,6 @@ declare const SvgIconExchange: _chakra_ui_system_dist_system_types.ChakraCompone
77
77
  declare const SvgIconFilter: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
78
78
  //# sourceMappingURL=IconFilter.d.ts.map
79
79
 
80
- declare const SvgIconFilterActive: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
81
- //# sourceMappingURL=IconFilterActive.d.ts.map
82
-
83
80
  declare const SvgIconHelp: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
84
81
  //# sourceMappingURL=IconHelp.d.ts.map
85
82
 
@@ -232,13 +229,13 @@ declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
232
229
  * @param precision - The number of decimals to display
233
230
  * @param signDisplay - Whether to display a plus sign for positive amounts
234
231
  */
235
- declare const formatUSD: ({ amount, autoPrecision, precision, signDisplay, }: {
232
+ declare const formatUsd: ({ amount, autoPrecision, precision, signDisplay, }: {
236
233
  autoPrecision?: boolean | undefined;
237
234
  amount: number | string;
238
235
  precision?: number | undefined;
239
236
  signDisplay?: boolean | undefined;
240
237
  }) => string | number;
241
- //# sourceMappingURL=formatUSD.d.ts.map
238
+ //# sourceMappingURL=formatUsd.d.ts.map
242
239
 
243
240
  /**
244
241
  *
@@ -285,7 +282,16 @@ declare const uiColors: {
285
282
  };
286
283
  //# sourceMappingURL=uiColors.d.ts.map
287
284
 
288
- declare const usdToNumber: (usd: string) => number;
285
+ /**
286
+ *
287
+ * @description Converts a USD formatted string to a number.
288
+ */
289
+ declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
290
+ usd: string;
291
+ precision?: number | undefined;
292
+ autoPrecision?: boolean | undefined;
293
+ }) => number;
294
+ //# sourceMappingURL=usdToNumber.d.ts.map
289
295
 
290
296
  declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
291
297
  data: any[] | undefined;
@@ -339,16 +345,16 @@ declare const CfForm: ({ children, onSubmit, ...rest }: Props$2) => react_jsx_ru
339
345
 
340
346
  type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
341
347
  interface CfInputProps<T extends FieldValues> extends InputProps {
348
+ name: string;
349
+ label?: string;
342
350
  register?: UseFormRegister<T>;
343
351
  errorMessage?: string;
344
352
  helperText?: string;
345
- label?: string;
346
353
  leftAddon?: React.ReactElement;
347
354
  leftElement?: React.ReactElement;
348
355
  rightElement?: React.ReactElement;
349
356
  rightAddon?: React.ReactElement;
350
- name: string;
351
- isCurrency?: boolean;
357
+ type?: React.HTMLInputTypeAttribute | 'currency';
352
358
  }
353
359
  declare const CfInput: <T extends FieldValues>(props: CfInputProps<T>) => react_jsx_runtime.JSX.Element;
354
360
 
@@ -441,4 +447,4 @@ declare const useBreakpoint: () => {
441
447
  type SVGIcon = ChakraComponent<'svg', object>;
442
448
  declare const layoutMinWidth = "22rem";
443
449
 
444
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconAvax as IconAvax, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, SvgIconBch as IconBch, SvgIconBtc as IconBtc, SvgIconCalendar as IconCalendar, SvgIconCaretDown as IconCaretDown, SvgIconCaretLeft as IconCaretLeft, SvgIconCaretRight as IconCaretRight, SvgIconCaretUp as IconCaretUp, SvgIconCent as IconCent, SvgIconCheck as IconCheck, SvgIconChecking as IconChecking, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconFilterActive as IconFilterActive, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconLink as IconLink, SvgIconLtc as IconLtc, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, SvgIconRefresh as IconRefresh, SvgIconReports as IconReports, SvgIconReservesSuccess as IconReservesSuccess, SvgIconReservesWarning as IconReservesWarning, SvgIconSearch as IconSearch, SvgIconSettings as IconSettings, SvgIconSettlement as IconSettlement, SvgIconSignIn as IconSignIn, SvgIconSignOut as IconSignOut, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, type SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUSD, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
450
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconAvax as IconAvax, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, SvgIconBch as IconBch, SvgIconBtc as IconBtc, SvgIconCalendar as IconCalendar, SvgIconCaretDown as IconCaretDown, SvgIconCaretLeft as IconCaretLeft, SvgIconCaretRight as IconCaretRight, SvgIconCaretUp as IconCaretUp, SvgIconCent as IconCent, SvgIconCheck as IconCheck, SvgIconChecking as IconChecking, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconLink as IconLink, SvgIconLtc as IconLtc, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, SvgIconRefresh as IconRefresh, SvgIconReports as IconReports, SvgIconReservesSuccess as IconReservesSuccess, SvgIconReservesWarning as IconReservesWarning, SvgIconSearch as IconSearch, SvgIconSettings as IconSettings, SvgIconSettlement as IconSettlement, SvgIconSignIn as IconSignIn, SvgIconSignOut as IconSignOut, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, type SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -50,7 +50,7 @@
50
50
  "currency.js": "^2.0.4",
51
51
  "dayjs": "^1.11.10",
52
52
  "decimal.js": "^10.4.3",
53
- "react-currency-input-field": "^3.7.0",
53
+ "react-currency-input-field": "^3.8.0",
54
54
  "react-hook-form": "^7.49.3",
55
55
  "recharts": "^2.12.0",
56
56
  "yup": "^1.3.3"
@@ -82,10 +82,10 @@
82
82
  "@svgr/plugin-prettier": "^8.1.0",
83
83
  "@svgr/plugin-svgo": "^8.1.0",
84
84
  "@testing-library/jest-dom": "^6.4.2",
85
- "@testing-library/react": "^13.4.0",
85
+ "@testing-library/react": "^14.2.1",
86
86
  "@types/jest": "^29.2.6",
87
87
  "@types/prop-types": "^15",
88
- "@types/react": "^18.2.55",
88
+ "@types/react": "^18.2.58",
89
89
  "@types/react-dom": "^18.2.19",
90
90
  "@types/rollup-plugin-peer-deps-external": "^2",
91
91
  "@types/stringify-object": "^4.0.4",
@@ -95,17 +95,17 @@
95
95
  "core-js": "^3.36.0",
96
96
  "cross-var": "^1.1.0",
97
97
  "dotenv-cli": "^7.3.0",
98
- "eslint": "^8.9.0",
98
+ "eslint": "^8.57.0",
99
99
  "eslint-config-airbnb": "^19.0.4",
100
100
  "eslint-config-prettier": "^9.1.0",
101
101
  "eslint-import-resolver-typescript": "^3.6.1",
102
102
  "eslint-plugin-import": "^2.29.0",
103
103
  "eslint-plugin-jsx-a11y": "^6.5.1",
104
- "eslint-plugin-prettier": "5.0.0",
104
+ "eslint-plugin-prettier": "5.1.3",
105
105
  "eslint-plugin-react": "^7.28.0",
106
106
  "eslint-plugin-react-hooks": "^4.3.0",
107
- "eslint-plugin-simple-import-sort": "^9.0.0",
108
- "eslint-plugin-storybook": "^0.6.15",
107
+ "eslint-plugin-simple-import-sort": "^12.0.0",
108
+ "eslint-plugin-storybook": "^0.8.0",
109
109
  "eslint-plugin-unused-imports": "^3.1.0",
110
110
  "framer-motion": "^10.16.4",
111
111
  "identity-obj-proxy": "^3.0.0",
@@ -125,7 +125,7 @@
125
125
  "stringify-object": "^5.0.0",
126
126
  "ts-jest": "^29.0.5",
127
127
  "typescript": "^5.3.3",
128
- "vite": "^4.5.0"
128
+ "vite": "^5.1.4"
129
129
  },
130
130
  "packageManager": "yarn@4.1.0"
131
131
  }