@cryptofi/core-ui 1.6.5 → 1.6.7

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,7 +1,7 @@
1
1
  import * as _chakra_ui_react from '@chakra-ui/react';
2
2
  import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, SystemStyleObject, InputProps as InputProps$1, ModalProps, LayoutProps, ModalBodyProps, ModalContentProps, LinkProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import React, { SVGProps, CSSProperties, ReactElement, ReactNode, FormEvent, Dispatch, SetStateAction } from 'react';
4
+ import React$1, { SVGProps, CSSProperties, ReactElement, ReactNode, FormEvent, Dispatch, SetStateAction } from 'react';
5
5
  import { CurveType } from 'recharts/types/shape/Curve';
6
6
  import { UseFormRegister, FieldValues, Control } from 'react-hook-form';
7
7
  import { CurrencyInputProps } from 'react-currency-input-field';
@@ -414,6 +414,71 @@ interface CfCheckboxProps extends CheckboxProps {
414
414
  }
415
415
  declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
416
416
 
417
+ declare const Actions: ({ uiColor, isLocalDev, enableRefetch, setEnableRefetch, setShowBreakpointDebugger, onDrawerClose, }: {
418
+ uiColor: string;
419
+ idToken: string | undefined;
420
+ isLocalDev: boolean;
421
+ enableRefetch: boolean;
422
+ setEnableRefetch: (value: boolean) => void;
423
+ setShowBreakpointDebugger: (value: boolean) => void;
424
+ onDrawerClose: () => void;
425
+ }) => react_jsx_runtime.JSX.Element;
426
+ //# sourceMappingURL=Actions.d.ts.map
427
+
428
+ interface Props$6 extends ButtonProps {
429
+ uiColor: string;
430
+ }
431
+ declare const Button: _chakra_ui_react.ComponentWithAs<"button", Props$6>;
432
+ //# sourceMappingURL=Button.d.ts.map
433
+
434
+ declare const DataGrid: ({ data, heading, uiColor, buttons, }: {
435
+ data: any[];
436
+ heading?: string;
437
+ uiColor: string;
438
+ buttons?: ReactNode;
439
+ }) => react_jsx_runtime.JSX.Element;
440
+ //# sourceMappingURL=DataGrid.d.ts.map
441
+
442
+ declare const DevConsole: ({ children, footer, consoleButton, isLocalDev, }: {
443
+ children: ({ uiColor, onClose }: {
444
+ uiColor: string;
445
+ onClose: () => void;
446
+ }) => React.ReactNode;
447
+ footer: ({ uiColor }: {
448
+ uiColor: string;
449
+ }) => React.ReactNode;
450
+ consoleButton: ({ uiColor, onClose, isOpen, hideButton, onOpen, }: {
451
+ uiColor: string;
452
+ onClose: () => void;
453
+ isOpen: boolean;
454
+ hideButton: boolean;
455
+ onOpen: () => void;
456
+ }) => React.ReactNode;
457
+ isLocalDev: boolean;
458
+ }) => react_jsx_runtime.JSX.Element;
459
+ //# sourceMappingURL=DevConsole.d.ts.map
460
+
461
+ declare const FloatingButton: ({ hideButton, enableRefetch, onOpen, uiColor, hasSystemOverride, authBypassEnabled, }: {
462
+ hideButton: boolean;
463
+ enableRefetch: boolean;
464
+ onOpen: () => void;
465
+ uiColor: string;
466
+ hasSystemOverride: boolean;
467
+ authBypassEnabled: boolean;
468
+ }) => react_jsx_runtime.JSX.Element;
469
+ //# sourceMappingURL=FloatingButton.d.ts.map
470
+
471
+ declare const Links: ({ uiColor }: {
472
+ uiColor: string;
473
+ }) => react_jsx_runtime.JSX.Element;
474
+ //# sourceMappingURL=Links.d.ts.map
475
+
476
+ declare const SystemStatus: ({ enableRefetch, status }: {
477
+ enableRefetch: boolean;
478
+ status?: boolean;
479
+ }) => react_jsx_runtime.JSX.Element;
480
+ //# sourceMappingURL=SystemStatus.d.ts.map
481
+
417
482
  interface Props$5 extends FlexProps {
418
483
  onSubmit?: (event: FormEvent) => void;
419
484
  }
@@ -430,15 +495,15 @@ interface CfInputProps extends InputProps {
430
495
  label?: string;
431
496
  errorMessage?: string;
432
497
  helperText?: string;
433
- leftAddon?: React.ReactElement;
434
- leftElement?: React.ReactElement;
435
- rightElement?: React.ReactElement;
436
- rightAddon?: React.ReactElement;
437
- type?: React.HTMLInputTypeAttribute | 'currency';
498
+ leftAddon?: React$1.ReactElement;
499
+ leftElement?: React$1.ReactElement;
500
+ rightElement?: React$1.ReactElement;
501
+ rightAddon?: React$1.ReactElement;
502
+ type?: React$1.HTMLInputTypeAttribute | 'currency';
438
503
  containerCss?: SystemStyleObject;
439
504
  register?: UseFormRegister<FieldValues> | any;
440
505
  }
441
- declare const CfInput: React.FC<CfInputProps>;
506
+ declare const CfInput: React$1.FC<CfInputProps>;
442
507
  //# sourceMappingURL=Input.d.ts.map
443
508
 
444
509
  interface Props$4<T extends FieldValues> {
@@ -569,4 +634,29 @@ declare const useBreakpoint: () => {
569
634
  };
570
635
  //# sourceMappingURL=useBreakpoint.d.ts.map
571
636
 
572
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, CfLineChart, CfModal, CfNavLink, CfOpenSearchPagination, CfPagination, PrettyWrap as CfPrettyWrap, CfSelect, type CfSelectOption, CfSpinner, CfTag, CfToast, CfTooltip, SvgIconAlert as IconAlert, SvgIconAlgo as IconAlgo, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconAvax as IconAvax, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, SvgIconBch as IconBch, SvgIconBookCheck as IconBookCheck, 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, SvgIconDiamonds as IconDiamonds, SvgIconDoge as IconDoge, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconExternalLink as IconExternalLink, 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, SvgIconMinus as IconMinus, SvgIconMkr as IconMkr, 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, SvgIconSol as IconSol, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, SvgIconXrp as IconXrp, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, isIframe, layoutMinWidth, pullFromEnd, splitOnCapitals, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
637
+ interface DebounceOptions {
638
+ leading?: boolean;
639
+ trailing?: boolean;
640
+ maxWait?: number;
641
+ }
642
+ interface ControlFunctions {
643
+ cancel: () => void;
644
+ flush: () => void;
645
+ isPending: () => boolean;
646
+ }
647
+ type DebouncedState<T extends (...args: any) => ReturnType<T>> = ((...args: Parameters<T>) => ReturnType<T> | undefined) & ControlFunctions;
648
+ declare function useDebounceCallback<T extends (...args: any) => ReturnType<T>>(func: T, delay?: number, options?: DebounceOptions): DebouncedState<T>;
649
+
650
+ interface UseDebounceValueOptions<T> {
651
+ leading?: boolean;
652
+ trailing?: boolean;
653
+ maxWait?: number;
654
+ equalityFn?: (left: T, right: T) => boolean;
655
+ }
656
+ declare function useDebounceValue<T>(initialValue: T | (() => T), delay: number, options?: UseDebounceValueOptions<T>): [T, DebouncedState<(value: T) => void>];
657
+ //# sourceMappingURL=useDebounceValue.d.ts.map
658
+
659
+ declare function useUnmount(func: () => void): void;
660
+ //# sourceMappingURL=useUnmount.d.ts.map
661
+
662
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, DevConsole as CfDevConsole, Actions as CfDevConsoleActions, Button as CfDevConsoleButton, DataGrid as CfDevConsoleDataGrid, FloatingButton as CfDevConsoleFloatingButton, Links as CfDevConsoleLinks, SystemStatus as CfDevConsoleSystemStatus, CfForm, CfInput, CfInputArray, CfLineChart, CfModal, CfNavLink, CfOpenSearchPagination, CfPagination, PrettyWrap as CfPrettyWrap, CfSelect, type CfSelectOption, CfSpinner, CfTag, CfToast, CfTooltip, SvgIconAlert as IconAlert, SvgIconAlgo as IconAlgo, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconAvax as IconAvax, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, SvgIconBch as IconBch, SvgIconBookCheck as IconBookCheck, 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, SvgIconDiamonds as IconDiamonds, SvgIconDoge as IconDoge, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconExternalLink as IconExternalLink, 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, SvgIconMinus as IconMinus, SvgIconMkr as IconMkr, 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, SvgIconSol as IconSol, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, SvgIconXrp as IconXrp, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, isIframe, layoutMinWidth, pullFromEnd, splitOnCapitals, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, useDebounceCallback, useDebounceValue, useUnmount, utcDateToLocal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -50,8 +50,8 @@
50
50
  "@emotion/react": "^11.14.0",
51
51
  "@emotion/styled": "^11.14.0",
52
52
  "framer-motion": "^10.16.4",
53
- "react": "^18.3.1",
54
- "react-dom": "^18.3.1",
53
+ "react": "^19.x.x",
54
+ "react-dom": "^19.x.x",
55
55
  "react-imask": "^7.6.1"
56
56
  },
57
57
  "dependencies": {
@@ -61,6 +61,7 @@
61
61
  "colord": "^2.9.3",
62
62
  "currency.js": "^2.0.4",
63
63
  "dayjs": "^1.11.13",
64
+ "lodash": "^4.17.21",
64
65
  "nanoid": "^3.3.8",
65
66
  "react-currency-input-field": "^3.9.0",
66
67
  "react-hook-form": "^7.54.2",
@@ -78,18 +79,18 @@
78
79
  "@rollup/plugin-commonjs": "^28.0.2",
79
80
  "@rollup/plugin-node-resolve": "^16.0.0",
80
81
  "@rollup/plugin-terser": "^0.4.4",
81
- "@storybook/addon-essentials": "^8.4.7",
82
- "@storybook/addon-interactions": "^8.4.7",
83
- "@storybook/addon-links": "^8.4.7",
84
- "@storybook/addon-onboarding": "^8.4.7",
85
- "@storybook/blocks": "^8.4.7",
86
- "@storybook/components": "^8.4.7",
87
- "@storybook/manager-api": "^8.4.7",
88
- "@storybook/preview-api": "^8.4.7",
89
- "@storybook/react": "^8.4.7",
90
- "@storybook/react-vite": "^8.4.7",
91
- "@storybook/test": "^8.4.7",
92
- "@storybook/types": "^8.4.7",
82
+ "@storybook/addon-essentials": "^8.5.2",
83
+ "@storybook/addon-interactions": "^8.5.2",
84
+ "@storybook/addon-links": "^8.5.2",
85
+ "@storybook/addon-onboarding": "^8.5.2",
86
+ "@storybook/blocks": "^8.5.2",
87
+ "@storybook/components": "^8.5.2",
88
+ "@storybook/manager-api": "^8.5.2",
89
+ "@storybook/preview-api": "^8.5.2",
90
+ "@storybook/react": "^8.5.2",
91
+ "@storybook/react-vite": "^8.5.2",
92
+ "@storybook/test": "^8.5.2",
93
+ "@storybook/types": "^8.5.2",
93
94
  "@svgr/cli": "^8.1.0",
94
95
  "@svgr/core": "^8.1.0",
95
96
  "@svgr/plugin-jsx": "^8.1.0",
@@ -101,22 +102,22 @@
101
102
  "@types/eslint__js": "^8.42.3",
102
103
  "@types/jest": "^29.5.14",
103
104
  "@types/prop-types": "^15",
104
- "@types/react": "^18.3.12",
105
- "@types/react-dom": "^18.3.1",
105
+ "@types/react": "^19.x.x",
106
+ "@types/react-dom": "^19.x.x",
106
107
  "@types/rollup-plugin-peer-deps-external": "^2",
107
108
  "@types/stringify-object": "^4.0.4",
108
- "@typescript-eslint/eslint-plugin": "^8.19.1",
109
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
109
110
  "@typescript-eslint/parser": "^8.19.1",
110
111
  "chalk": "^4.1.2",
111
112
  "core-js": "^3.40.0",
112
113
  "cross-var": "^1.1.0",
113
114
  "dotenv-cli": "^8.0.0",
114
- "eslint": "^9.18.0",
115
+ "eslint": "^9.19.0",
115
116
  "eslint-config-prettier": "^9.1.0",
116
117
  "eslint-plugin-check-file": "^2.8.0",
117
118
  "eslint-plugin-import": "^2.31.0",
118
119
  "eslint-plugin-jsx-a11y": "^6.10.2",
119
- "eslint-plugin-prettier": "5.2.1",
120
+ "eslint-plugin-prettier": "5.2.3",
120
121
  "eslint-plugin-react": "^7.37.4",
121
122
  "eslint-plugin-react-hooks": "^5.1.0",
122
123
  "eslint-plugin-simple-import-sort": "^12.1.1",
@@ -131,19 +132,19 @@
131
132
  "react": "^18.3.1",
132
133
  "react-dom": "^18.3.1",
133
134
  "react-imask": "^7.6.1",
134
- "rollup": "^4.30.1",
135
+ "rollup": "^4.31.0",
135
136
  "rollup-plugin-delete": "^2.1.0",
136
137
  "rollup-plugin-dts": "^6.1.1",
137
138
  "rollup-plugin-filesize": "^10.0.0",
138
139
  "rollup-plugin-peer-deps-external": "^2.2.4",
139
140
  "rollup-plugin-typescript2": "^0.36.0",
140
141
  "rollup-plugin-visualizer": "^5.14.0",
141
- "storybook": "^8.4.7",
142
+ "storybook": "^8.5.2",
142
143
  "stringify-object": "^5.0.0",
143
144
  "ts-jest": "^29.2.5",
144
145
  "typescript": "^5.7.3",
145
146
  "typescript-eslint": "^8.19.0",
146
- "vite": "^6.0.7"
147
+ "vite": "^6.0.11"
147
148
  },
148
149
  "packageManager": "yarn@4.6.0"
149
150
  }