@cryptofi/core-ui 0.40.0 → 0.41.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.
@@ -302,6 +302,18 @@ declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
302
302
  }) => number;
303
303
  //# sourceMappingURL=usdToNumber.d.ts.map
304
304
 
305
+ /**
306
+ * Converts a UTC date string to local time format.
307
+ * @param timeString: The UTC date string to be converted. If undefined, the current UTC time will be used.
308
+ * @param dateFormat: The format string for the output. Defaults to 'MM/DD/YY' if undefined.
309
+ * @returns The formatted local date string. Returns 'Invalid Date' for unparseable dates.
310
+ */
311
+ declare const utcDateToLocal: ({ dateFormat, timeString, }: {
312
+ dateFormat?: string | undefined;
313
+ timeString?: string | undefined;
314
+ }) => string;
315
+ //# sourceMappingURL=utcDateToLocal.d.ts.map
316
+
305
317
  declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
306
318
  data: any[] | undefined;
307
319
  dataKey: string;
@@ -349,14 +361,14 @@ interface CfCheckboxProps<T extends FieldValues> extends CheckboxProps {
349
361
  }
350
362
  declare const CfCheckbox: <T extends FieldValues>(props: CfCheckboxProps<T>) => react_jsx_runtime.JSX.Element;
351
363
 
352
- interface Props$3 extends FlexProps {
364
+ interface Props$4 extends FlexProps {
353
365
  onSubmit?: (event: React.FormEvent) => void;
354
366
  }
355
367
  /**
356
368
  *
357
369
  * @description A form component with flex layout, for use with or without React Hook Form.
358
370
  */
359
- declare const CfForm: ({ children, onSubmit, ...rest }: Props$3) => react_jsx_runtime.JSX.Element;
371
+ declare const CfForm: ({ children, onSubmit, ...rest }: Props$4) => react_jsx_runtime.JSX.Element;
360
372
  //# sourceMappingURL=Form.d.ts.map
361
373
 
362
374
  type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
@@ -374,7 +386,7 @@ interface CfInputProps<T extends FieldValues> extends InputProps {
374
386
  }
375
387
  declare const CfInput: <T extends FieldValues>(props: CfInputProps<T>) => react_jsx_runtime.JSX.Element;
376
388
 
377
- type Props$2<T extends FieldValues> = {
389
+ type Props$3<T extends FieldValues> = {
378
390
  name: string;
379
391
  control: Control;
380
392
  register: UseFormRegister<T>;
@@ -382,7 +394,7 @@ type Props$2<T extends FieldValues> = {
382
394
  onArrayAppend?: (appendValues: FieldValues) => void;
383
395
  onArrayRemove?: (remove: number) => void;
384
396
  };
385
- declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$2<T>) => react_jsx_runtime.JSX.Element;
397
+ declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$3<T>) => react_jsx_runtime.JSX.Element;
386
398
  //# sourceMappingURL=InputArray.d.ts.map
387
399
 
388
400
  declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
@@ -399,16 +411,28 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
399
411
  }) => react_jsx_runtime.JSX.Element;
400
412
  //# sourceMappingURL=LineChart.d.ts.map
401
413
 
402
- interface Props$1 extends ModalProps {
414
+ interface Props$2 extends ModalProps {
403
415
  headerContent?: React.ReactNode;
404
416
  footerContent?: React.ReactNode;
405
417
  bodyMinHeight?: string | number;
406
418
  bodyBackground?: string;
407
419
  isDisabledCloseButton?: boolean;
408
420
  }
409
- declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyMinHeight, bodyBackground, isDisabledCloseButton, ...rest }: Props$1) => react_jsx_runtime.JSX.Element;
421
+ declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyMinHeight, bodyBackground, isDisabledCloseButton, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
410
422
  //# sourceMappingURL=Modal.d.ts.map
411
423
 
424
+ interface PageClickEvent {
425
+ selected: number;
426
+ }
427
+ interface Props$1 extends FlexProps {
428
+ handlePageClick: (event: PageClickEvent) => void;
429
+ totalRecords?: number;
430
+ recordsPerPage?: number;
431
+ pageRangeDisplayed?: number;
432
+ forcePage?: number;
433
+ }
434
+ declare const CfOpenSearchPagination: ({ totalRecords, recordsPerPage, pageRangeDisplayed, handlePageClick, forcePage, ...rest }: Props$1) => react_jsx_runtime.JSX.Element;
435
+
412
436
  interface LastEvaluatedKeyParams {
413
437
  lastEvaluatedPKey?: string;
414
438
  lastEvaluatedSKey?: string;
@@ -471,4 +495,4 @@ declare const useBreakpoint: () => {
471
495
 
472
496
  declare const layoutMinWidth = "22rem";
473
497
 
474
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, 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, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
498
+ 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, dateToTimestamp, formatPercentage, 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.40.0",
3
+ "version": "0.41.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -54,6 +54,7 @@
54
54
  "dayjs": "^1.11.10",
55
55
  "react-currency-input-field": "^3.8.0",
56
56
  "react-hook-form": "^7.51.0",
57
+ "react-paginate": "^8.2.0",
57
58
  "recharts": "^2.12.2",
58
59
  "yup": "^1.4.0"
59
60
  },