@cryptofi/core-ui 0.45.0 → 0.47.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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as _chakra_ui_react from '@chakra-ui/react';
3
- import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, InputProps as InputProps$1, ModalProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
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
5
  import * as react from 'react';
6
6
  import { SVGProps, ReactElement, Dispatch, SetStateAction } from 'react';
@@ -322,6 +322,9 @@ declare const utcDateToLocal: ({ dateFormat, timeString, }: {
322
322
  declare const formatPhoneNumber: (phoneNumberString: string) => string;
323
323
  //# sourceMappingURL=formatPhoneNumber.d.ts.map
324
324
 
325
+ type TooltipLabelFormatter = (index: number, chartValue: any[]) => string | undefined;
326
+ type TooltipValueFormatter = (value: number) => string;
327
+
325
328
  declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
326
329
  data: any[] | undefined;
327
330
  dataKey: string;
@@ -330,8 +333,8 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
330
333
  areaType?: CurveType | undefined;
331
334
  showTooltip?: boolean | undefined;
332
335
  isAnimated?: boolean | undefined;
333
- formatter?: ((value: number) => string) | undefined;
334
- labelFormatter?: ((index: number, chartValue: any[]) => string | undefined) | undefined;
336
+ formatter?: TooltipValueFormatter | undefined;
337
+ labelFormatter?: TooltipLabelFormatter | undefined;
335
338
  sampleRate?: number | undefined;
336
339
  style?: react.CSSProperties | undefined;
337
340
  }) => react_jsx_runtime.JSX.Element;
@@ -391,6 +394,7 @@ interface CfInputProps extends InputProps {
391
394
  rightElement?: React.ReactElement;
392
395
  rightAddon?: React.ReactElement;
393
396
  type?: React.HTMLInputTypeAttribute | 'currency';
397
+ containerCss?: SystemStyleObject;
394
398
  register?: UseFormRegister<any>;
395
399
  }
396
400
  declare const CfInput: _chakra_ui_react.ComponentWithAs<_chakra_ui_react.As, CfInputProps>;
@@ -414,8 +418,8 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
414
418
  lineType?: CurveType | undefined;
415
419
  showTooltip?: boolean | undefined;
416
420
  isAnimated?: boolean | undefined;
417
- formatter?: ((value: number) => string) | undefined;
418
- labelFormatter?: ((index: number, chartValue: any[]) => string | undefined) | undefined;
421
+ formatter?: TooltipValueFormatter | undefined;
422
+ labelFormatter?: TooltipLabelFormatter | undefined;
419
423
  sampleRate?: number | undefined;
420
424
  style?: react.CSSProperties | undefined;
421
425
  }) => react_jsx_runtime.JSX.Element;
@@ -504,7 +508,11 @@ declare const useBreakpoint: () => {
504
508
  //# sourceMappingURL=useBreakpoint.d.ts.map
505
509
 
506
510
  declare const layoutMinWidth = "22rem";
507
- declare const dateFormatNoTime = "MM/DD/YY";
508
- declare const dateFormatWithTime = "MM/DD/YYYY h:mmA";
511
+ declare const dateFormats: {
512
+ dateOnly: string;
513
+ dateWithTime: string;
514
+ shortDateWithTime: string;
515
+ shortDateWithYear: string;
516
+ };
509
517
 
510
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfOpenSearchPagination, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, CfSpinner, 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, SvgIconCircleCheck as IconCircleCheck, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, 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, SvgIconLock as IconLock, 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 PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormatNoTime, dateFormatWithTime, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
518
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfOpenSearchPagination, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, CfSpinner, 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, SvgIconCircleCheck as IconCircleCheck, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, 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, SvgIconLock as IconLock, 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 PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.45.0",
3
+ "version": "0.47.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -29,7 +29,8 @@
29
29
  "storybook": "storybook dev -p 6006",
30
30
  "test": "jest --colors --passWithNoTests",
31
31
  "test:one": "node scripts/testOne.cjs",
32
- "test:watch": "yarn test --collectCoverage=false --watch"
32
+ "test:watch": "yarn test --collectCoverage=false --watch",
33
+ "validate:types": "npx tsc --noEmit"
33
34
  },
34
35
  "module": "dist/index.js",
35
36
  "types": "dist/types/index.d.ts",
@@ -55,7 +56,7 @@
55
56
  "react-currency-input-field": "^3.8.0",
56
57
  "react-hook-form": "^7.51.2",
57
58
  "react-paginate": "^8.2.0",
58
- "recharts": "^2.12.2",
59
+ "recharts": "^2.12.4",
59
60
  "yup": "^1.4.0"
60
61
  },
61
62
  "devDependencies": {
@@ -67,7 +68,7 @@
67
68
  "@rollup/plugin-commonjs": "^25.0.7",
68
69
  "@rollup/plugin-node-resolve": "^15.2.3",
69
70
  "@rollup/plugin-terser": "^0.4.4",
70
- "@storybook/addon-essentials": "^8.0.5",
71
+ "@storybook/addon-essentials": "^8.0.6",
71
72
  "@storybook/addon-interactions": "^8.0.5",
72
73
  "@storybook/addon-links": "^8.0.5",
73
74
  "@storybook/addon-onboarding": "^8.0.5",
@@ -75,10 +76,10 @@
75
76
  "@storybook/components": "^8.0.5",
76
77
  "@storybook/manager-api": "^8.0.5",
77
78
  "@storybook/preview-api": "^8.0.5",
78
- "@storybook/react": "^8.0.5",
79
+ "@storybook/react": "^8.0.6",
79
80
  "@storybook/react-vite": "^8.0.5",
80
81
  "@storybook/test": "^8.0.5",
81
- "@storybook/types": "^8.0.5",
82
+ "@storybook/types": "^8.0.6",
82
83
  "@svgr/cli": "^8.1.0",
83
84
  "@svgr/core": "^8.1.0",
84
85
  "@svgr/plugin-jsx": "^8.1.0",
@@ -119,7 +120,7 @@
119
120
  "prop-types": "^15.8.1",
120
121
  "react": "^18.2.0",
121
122
  "react-dom": "^18.2.0",
122
- "rollup": "^4.13.0",
123
+ "rollup": "^4.14.1",
123
124
  "rollup-plugin-delete": "^2.0.0",
124
125
  "rollup-plugin-dts": "^6.1.0",
125
126
  "rollup-plugin-filesize": "^10.0.0",