@cryptofi/core-ui 0.11.0 → 0.12.1

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.
@@ -3,6 +3,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { SVGProps } from 'react';
4
4
  import { CurveType } from 'recharts/types/shape/Curve';
5
5
  import { CardProps, CheckboxProps, InputProps, ChakraComponent, SelectProps, TagProps, UseToastOptions } from '@chakra-ui/react';
6
+ import { FieldValues, UseFormRegister } from 'react-hook-form';
6
7
 
7
8
  declare const SvgIconAlert: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
8
9
  //# sourceMappingURL=IconAlert.d.ts.map
@@ -171,6 +172,12 @@ declare const exportedTheme: {
171
172
  };
172
173
  //# sourceMappingURL=exportedTheme.d.ts.map
173
174
 
175
+ declare const convertToUTCEpochTime: ({ timeString, toEndDate }: {
176
+ timeString: string;
177
+ toEndDate?: boolean | undefined;
178
+ }) => string;
179
+ //# sourceMappingURL=convertToUTCEpochTime.d.ts.map
180
+
174
181
  type SignDisplay$1 = 'auto' | 'always' | 'exceptZero' | 'never';
175
182
  /**
176
183
  *
@@ -252,15 +259,15 @@ interface CfCheckboxProps extends CheckboxProps {
252
259
  }
253
260
  declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
254
261
 
255
- interface CfInputProps extends InputProps {
262
+ interface CfInputProps<T extends FieldValues> extends InputProps {
263
+ register?: UseFormRegister<T>;
256
264
  errorMessage?: string;
257
265
  helperText?: string;
258
266
  label?: string;
259
- spellCheck?: boolean;
260
267
  IconLeft?: ChakraComponent<'svg', object>;
261
268
  IconRight?: ChakraComponent<'svg', object>;
262
269
  }
263
- declare const CfInput: (props: CfInputProps) => react_jsx_runtime.JSX.Element;
270
+ declare const CfInput: <T extends FieldValues>(props: CfInputProps<T>) => react_jsx_runtime.JSX.Element;
264
271
 
265
272
  declare const CfLineChart: ({ data, dataKey, width, height, lineType, }: {
266
273
  data: any[] | undefined;
@@ -271,12 +278,13 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, }: {
271
278
  }) => react_jsx_runtime.JSX.Element;
272
279
  //# sourceMappingURL=LineChart.d.ts.map
273
280
 
274
- interface CfSelectProps extends SelectProps {
281
+ interface CfSelectProps<T extends FieldValues> extends SelectProps {
282
+ register?: UseFormRegister<T>;
275
283
  errorMessage?: string;
276
284
  helperText?: string;
277
285
  label?: string;
278
286
  }
279
- declare const CfSelect: (props: CfSelectProps) => react_jsx_runtime.JSX.Element;
287
+ declare const CfSelect: <T extends FieldValues>(props: CfSelectProps<T>) => react_jsx_runtime.JSX.Element;
280
288
 
281
289
  interface CfTagProps extends TagProps {
282
290
  label: string;
@@ -291,4 +299,4 @@ interface CfToastProps extends UseToastOptions {
291
299
  }
292
300
  declare const CfToast: (props: CfToastProps) => react_jsx_runtime.JSX.Element;
293
301
 
294
- export { CfAreaChart, CfBreakpointDebugger, CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfLineChart, CfSelect, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, 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, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, 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, exportedTheme as coreTheme, formatPercentage, formatUSD, getDelta, uiColors };
302
+ export { CfAreaChart, CfBreakpointDebugger, CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfLineChart, CfSelect, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, 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, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, 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, convertToUTCEpochTime, exportedTheme as coreTheme, formatPercentage, formatUSD, getDelta, uiColors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -44,9 +44,13 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@chakra-ui/anatomy": "^2.2.2",
47
+ "@hookform/resolvers": "^3.3.4",
47
48
  "colord": "^2.9.3",
49
+ "dayjs": "^1.11.10",
48
50
  "decimal.js": "^10.4.3",
49
- "recharts": "^2.10.3"
51
+ "react-hook-form": "^7.49.3",
52
+ "recharts": "^2.10.3",
53
+ "yup": "^1.3.3"
50
54
  },
51
55
  "devDependencies": {
52
56
  "@babel/core": "^7.17.5",