@cryptofi/core-ui 0.48.0 → 0.49.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.
@@ -5,7 +5,7 @@ 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';
7
7
  import { CurveType } from 'recharts/types/shape/Curve';
8
- import { FieldValues, UseFormRegister, Control } from 'react-hook-form';
8
+ import { UseFormRegister, FieldValues, Control } from 'react-hook-form';
9
9
  import { CurrencyInputProps } from 'react-currency-input-field';
10
10
 
11
11
  declare const SvgIconAlert: _chakra_ui_react.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
@@ -362,16 +362,16 @@ interface CarouselProps extends FlexProps {
362
362
  }
363
363
  declare const CfCarousel: (props: CarouselProps) => false | react_jsx_runtime.JSX.Element;
364
364
 
365
- interface CfCheckboxProps<T extends FieldValues> extends CheckboxProps {
365
+ interface CfCheckboxProps extends CheckboxProps {
366
366
  errorMessage?: string;
367
367
  helperText?: string;
368
368
  label?: string | React.ReactNode;
369
369
  labelPosition?: 'left' | 'right';
370
370
  spaceBetween?: boolean;
371
371
  name: string;
372
- register?: UseFormRegister<T>;
372
+ register?: UseFormRegister<FieldValues> | any;
373
373
  }
374
- declare const CfCheckbox: <T extends FieldValues>(props: CfCheckboxProps<T>) => react_jsx_runtime.JSX.Element;
374
+ declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
375
375
 
376
376
  interface Props$4 extends FlexProps {
377
377
  onSubmit?: (event: React.FormEvent) => void;
@@ -395,9 +395,10 @@ interface CfInputProps extends InputProps {
395
395
  rightAddon?: React.ReactElement;
396
396
  type?: React.HTMLInputTypeAttribute | 'currency';
397
397
  containerCss?: SystemStyleObject;
398
- register?: UseFormRegister<any>;
398
+ register?: UseFormRegister<FieldValues> | any;
399
399
  }
400
- declare const CfInput: _chakra_ui_react.ComponentWithAs<_chakra_ui_react.As, CfInputProps>;
400
+ declare const CfInput: React.FC<CfInputProps>;
401
+ //# sourceMappingURL=Input.d.ts.map
401
402
 
402
403
  type Props$3<T extends FieldValues> = {
403
404
  name: string;
@@ -463,8 +464,8 @@ interface CfPaginationProps extends FlexProps {
463
464
  }
464
465
  declare const CfPagination: ({ isLoading, hasMore, setLastEvaluatedKeyParams, lastEvaluatedKey, ...rest }: CfPaginationProps) => react_jsx_runtime.JSX.Element;
465
466
 
466
- interface CfSelectProps<T extends FieldValues> extends SelectProps {
467
- register?: UseFormRegister<T>;
467
+ interface CfSelectProps extends SelectProps {
468
+ register?: UseFormRegister<FieldValues> | any;
468
469
  errorMessage?: string;
469
470
  helperText?: string;
470
471
  label?: string;
@@ -474,7 +475,7 @@ interface CfSelectOption {
474
475
  name: string;
475
476
  value?: string;
476
477
  }
477
- declare const CfSelect: <T extends FieldValues>(props: CfSelectProps<T>) => react_jsx_runtime.JSX.Element;
478
+ declare const CfSelect: (props: CfSelectProps) => react_jsx_runtime.JSX.Element;
478
479
 
479
480
  interface Props extends FlexProps {
480
481
  boxSize?: string | number;
@@ -515,4 +516,4 @@ declare const dateFormats: {
515
516
  shortDateWithYear: string;
516
517
  };
517
518
 
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 };
519
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, 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.48.0",
3
+ "version": "0.49.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -55,7 +55,7 @@
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.2",
58
+ "react-hook-form": "^7.51.3",
59
59
  "react-paginate": "^8.2.0",
60
60
  "recharts": "^2.12.4",
61
61
  "yup": "^1.4.0"
@@ -77,7 +77,7 @@
77
77
  "@storybook/components": "^8.0.6",
78
78
  "@storybook/manager-api": "^8.0.6",
79
79
  "@storybook/preview-api": "^8.0.6",
80
- "@storybook/react": "^8.0.6",
80
+ "@storybook/react": "^8.0.8",
81
81
  "@storybook/react-vite": "^8.0.6",
82
82
  "@storybook/test": "^8.0.6",
83
83
  "@storybook/types": "^8.0.6",
@@ -92,13 +92,13 @@
92
92
  "@types/jest": "^29.2.6",
93
93
  "@types/prop-types": "^15",
94
94
  "@types/react": "^18.2.64",
95
- "@types/react-dom": "^18.2.19",
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.1.1",
98
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
99
99
  "@typescript-eslint/parser": "^7.1.1",
100
100
  "chalk": "4.1.2",
101
- "core-js": "^3.36.0",
101
+ "core-js": "^3.36.1",
102
102
  "cross-var": "^1.1.0",
103
103
  "dotenv-cli": "^7.4.1",
104
104
  "eslint": "^8.57.0",
@@ -108,7 +108,7 @@
108
108
  "eslint-plugin-import": "^2.29.0",
109
109
  "eslint-plugin-jsx-a11y": "^6.5.1",
110
110
  "eslint-plugin-prettier": "5.1.3",
111
- "eslint-plugin-react": "^7.34.0",
111
+ "eslint-plugin-react": "^7.34.1",
112
112
  "eslint-plugin-react-hooks": "^4.3.0",
113
113
  "eslint-plugin-simple-import-sort": "^12.0.0",
114
114
  "eslint-plugin-storybook": "^0.8.0",