@cryptofi/core-ui 0.18.0 → 0.20.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.
@@ -3,7 +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
+ import { UseFormRegister } from 'react-hook-form';
7
7
 
8
8
  declare const SvgIconAlert: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
9
9
  //# sourceMappingURL=IconAlert.d.ts.map
@@ -158,27 +158,6 @@ declare const SvgIconUpload: _chakra_ui_system_dist_system_types.ChakraComponent
158
158
  declare const SvgIconUser: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
159
159
  //# sourceMappingURL=IconUser.d.ts.map
160
160
 
161
- declare const SvgIconAvax: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
162
- //# sourceMappingURL=IconAvax.d.ts.map
163
-
164
- declare const SvgIconBch: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
165
- //# sourceMappingURL=IconBch.d.ts.map
166
-
167
- declare const SvgIconBtc: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
168
- //# sourceMappingURL=IconBtc.d.ts.map
169
-
170
- declare const SvgIconEth: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
171
- //# sourceMappingURL=IconEth.d.ts.map
172
-
173
- declare const SvgIconLink: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
174
- //# sourceMappingURL=IconLink.d.ts.map
175
-
176
- declare const SvgIconLtc: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
177
- //# sourceMappingURL=IconLtc.d.ts.map
178
-
179
- declare const SvgIconXlm: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
180
- //# sourceMappingURL=IconXlm.d.ts.map
181
-
182
161
  /**
183
162
  * This is a partial Chakra theme and should be extended by the consuming application using
184
163
  * Chakra's extendTheme method.
@@ -199,7 +178,7 @@ declare const convertToUTCEpochTime: ({ timeString, toEndDate }: {
199
178
  }) => string;
200
179
  //# sourceMappingURL=convertToUTCEpochTime.d.ts.map
201
180
 
202
- type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
181
+ type SignDisplay$1 = 'auto' | 'always' | 'exceptZero' | 'never';
203
182
  /**
204
183
  *
205
184
  * @param amount - A finite number
@@ -208,21 +187,20 @@ type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
208
187
  */
209
188
  declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
210
189
  number: number;
211
- signDisplay?: SignDisplay | undefined;
190
+ signDisplay?: SignDisplay$1 | undefined;
212
191
  isDecimal?: boolean | undefined;
213
192
  }) => string;
214
193
  //# sourceMappingURL=formatPercentage.d.ts.map
215
194
 
195
+ type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
216
196
  /**
217
197
  *
218
198
  * @param amount - A finite number
219
- * @param precision - The number of decimals to display
220
- * @signDisplay - Whether to display a plus sign for positive amounts
199
+ * @param signDisplay - Setting for minus / plus sign, defaults to auto
221
200
  */
222
- declare const formatUSD: ({ amount, precision, signDisplay, }: {
201
+ declare const formatUSD: ({ amount, signDisplay }: {
223
202
  amount: number;
224
- precision?: number | undefined;
225
- signDisplay?: boolean | undefined;
203
+ signDisplay?: SignDisplay | undefined;
226
204
  }) => string;
227
205
  //# sourceMappingURL=formatUSD.d.ts.map
228
206
 
@@ -244,6 +222,12 @@ declare const getDelta: ({ data, dataKey }: {
244
222
  };
245
223
  //# sourceMappingURL=getDelta.d.ts.map
246
224
 
225
+ declare const getFormDataQuery: (obj: unknown) => string | undefined;
226
+ //# sourceMappingURL=getFormDataQuery.d.ts.map
227
+
228
+ declare const isFormDataEmpty: (obj: unknown) => boolean;
229
+ //# sourceMappingURL=isFormDataEmpty.d.ts.map
230
+
247
231
  declare const uiColors: {
248
232
  redRemains(alpha?: number): string;
249
233
  heroicRed(alpha?: number): string;
@@ -257,21 +241,15 @@ declare const uiColors: {
257
241
  };
258
242
  //# sourceMappingURL=uiColors.d.ts.map
259
243
 
260
- declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, }: {
244
+ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, }: {
261
245
  data: any[] | undefined;
262
246
  dataKey: string;
263
247
  width?: string | undefined;
264
248
  height?: string | undefined;
265
249
  areaType?: CurveType | undefined;
266
- showTooltip?: boolean | undefined;
267
- isAnimated?: boolean | undefined;
268
- formatter?: ((value: number) => string) | undefined;
269
250
  }) => react_jsx_runtime.JSX.Element;
270
251
  //# sourceMappingURL=AreaChart.d.ts.map
271
252
 
272
- declare const CfBreakpointDebugger: () => react_jsx_runtime.JSX.Element;
273
- //# sourceMappingURL=BreakpointDebugger.d.ts.map
274
-
275
253
  declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
276
254
  //# sourceMappingURL=Card.d.ts.map
277
255
 
@@ -284,39 +262,37 @@ interface CfCheckboxProps extends CheckboxProps {
284
262
  }
285
263
  declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
286
264
 
287
- interface CfInputProps<T extends FieldValues> extends InputProps {
288
- register?: UseFormRegister<T>;
265
+ interface CfInputProps extends InputProps {
289
266
  errorMessage?: string;
290
267
  helperText?: string;
291
268
  label?: string;
269
+ spellCheck?: boolean;
292
270
  IconLeft?: ChakraComponent<'svg', object>;
293
271
  IconRight?: ChakraComponent<'svg', object>;
272
+ name: string;
273
+ register: UseFormRegister<any>;
274
+ rules?: object;
294
275
  }
295
- declare const CfInput: <T extends FieldValues>(props: CfInputProps<T>) => react_jsx_runtime.JSX.Element;
276
+ declare const CfInput: (props: CfInputProps) => react_jsx_runtime.JSX.Element;
296
277
 
297
- declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, }: {
278
+ declare const CfLineChart: ({ data, dataKey, width, height, lineType, }: {
298
279
  data: any[] | undefined;
299
280
  dataKey: string;
300
281
  width?: string | undefined;
301
282
  height?: string | undefined;
302
283
  lineType?: CurveType | undefined;
303
- showTooltip?: boolean | undefined;
304
- isAnimated?: boolean | undefined;
305
- formatter?: ((value: number) => string) | undefined;
306
284
  }) => react_jsx_runtime.JSX.Element;
307
285
  //# sourceMappingURL=LineChart.d.ts.map
308
286
 
309
- interface CfSelectProps<T extends FieldValues> extends SelectProps {
310
- register?: UseFormRegister<T>;
287
+ interface CfSelectProps extends SelectProps {
288
+ register: UseFormRegister<any>;
289
+ name: string;
290
+ rules?: object;
311
291
  errorMessage?: string;
312
292
  helperText?: string;
313
293
  label?: string;
314
294
  }
315
- interface CfSelectOption {
316
- name: string;
317
- value?: string;
318
- }
319
- declare const CfSelect: <T extends FieldValues>(props: CfSelectProps<T>) => react_jsx_runtime.JSX.Element;
295
+ declare const CfSelect: (props: CfSelectProps) => react_jsx_runtime.JSX.Element;
320
296
 
321
297
  interface CfTagProps extends TagProps {
322
298
  label: string;
@@ -331,4 +307,4 @@ interface CfToastProps extends UseToastOptions {
331
307
  }
332
308
  declare const CfToast: (props: CfToastProps) => react_jsx_runtime.JSX.Element;
333
309
 
334
- export { CfAreaChart, CfBreakpointDebugger, CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfLineChart, 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, 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, convertToUTCEpochTime, exportedTheme as coreTheme, formatPercentage, formatUSD, getDelta, uiColors };
310
+ export { CfAreaChart, 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, getFormDataQuery, isFormDataEmpty, uiColors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },