@cryptofi/core-ui 1.6.4 → 1.6.6

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
- import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, InputProps as InputProps$1, SystemStyleObject, ModalProps, LayoutProps, ModalBodyProps, ModalContentProps, LinkProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
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,4 @@ 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
+ 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, utcDateToLocal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -47,103 +47,103 @@
47
47
  ],
48
48
  "peerDependencies": {
49
49
  "@chakra-ui/react": "^2.10.3",
50
- "@emotion/react": "^11.13.5",
51
- "@emotion/styled": "^11.13.5",
50
+ "@emotion/react": "^11.14.0",
51
+ "@emotion/styled": "^11.14.0",
52
52
  "framer-motion": "^10.16.4",
53
- "react": "^18.3.1",
54
- "react-dom": "^19.0.0",
53
+ "react": "^19.x.x",
54
+ "react-dom": "^19.x.x",
55
55
  "react-imask": "^7.6.1"
56
56
  },
57
57
  "dependencies": {
58
58
  "@chakra-ui/anatomy": "^2.3.4",
59
- "@hookform/resolvers": "^3.9.1",
59
+ "@hookform/resolvers": "^3.10.0",
60
60
  "big.js": "^6.2.2",
61
61
  "colord": "^2.9.3",
62
62
  "currency.js": "^2.0.4",
63
63
  "dayjs": "^1.11.13",
64
64
  "nanoid": "^3.3.8",
65
65
  "react-currency-input-field": "^3.9.0",
66
- "react-hook-form": "^7.54.1",
66
+ "react-hook-form": "^7.54.2",
67
67
  "react-paginate": "^8.2.0",
68
68
  "recharts": "^2.15.0",
69
- "yup": "^1.5.0"
69
+ "yup": "^1.6.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/core": "^7.26.0",
73
73
  "@chakra-ui/react": "^2.10.3",
74
74
  "@chakra-ui/storybook-addon": "^5.2.5",
75
- "@emotion/react": "^11.13.5",
76
- "@emotion/styled": "^11.13.5",
77
- "@eslint/js": "^9.17.0",
75
+ "@emotion/react": "^11.14.0",
76
+ "@emotion/styled": "^11.14.0",
77
+ "@eslint/js": "^9.18.0",
78
78
  "@rollup/plugin-commonjs": "^28.0.2",
79
79
  "@rollup/plugin-node-resolve": "^16.0.0",
80
80
  "@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",
81
+ "@storybook/addon-essentials": "^8.5.2",
82
+ "@storybook/addon-interactions": "^8.5.2",
83
+ "@storybook/addon-links": "^8.5.2",
84
+ "@storybook/addon-onboarding": "^8.5.2",
85
+ "@storybook/blocks": "^8.5.2",
86
+ "@storybook/components": "^8.5.2",
87
+ "@storybook/manager-api": "^8.5.2",
88
+ "@storybook/preview-api": "^8.5.2",
89
+ "@storybook/react": "^8.5.2",
90
+ "@storybook/react-vite": "^8.5.2",
91
+ "@storybook/test": "^8.5.2",
92
+ "@storybook/types": "^8.5.2",
93
93
  "@svgr/cli": "^8.1.0",
94
94
  "@svgr/core": "^8.1.0",
95
95
  "@svgr/plugin-jsx": "^8.1.0",
96
96
  "@svgr/plugin-prettier": "^8.1.0",
97
97
  "@svgr/plugin-svgo": "^8.1.0",
98
98
  "@testing-library/jest-dom": "^6.6.3",
99
- "@testing-library/react": "^16.0.1",
99
+ "@testing-library/react": "^16.1.0",
100
100
  "@types/big.js": "^6.2.2",
101
101
  "@types/eslint__js": "^8.42.3",
102
102
  "@types/jest": "^29.5.14",
103
103
  "@types/prop-types": "^15",
104
- "@types/react": "^18.3.12",
105
- "@types/react-dom": "^19.0.1",
104
+ "@types/react": "^19.x.x",
105
+ "@types/react-dom": "^19.x.x",
106
106
  "@types/rollup-plugin-peer-deps-external": "^2",
107
107
  "@types/stringify-object": "^4.0.4",
108
- "@typescript-eslint/eslint-plugin": "^8.16.0",
109
- "@typescript-eslint/parser": "^8.17.0",
108
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
109
+ "@typescript-eslint/parser": "^8.19.1",
110
110
  "chalk": "^4.1.2",
111
- "core-js": "^3.39.0",
111
+ "core-js": "^3.40.0",
112
112
  "cross-var": "^1.1.0",
113
- "dotenv-cli": "^7.4.4",
114
- "eslint": "^9.16.0",
113
+ "dotenv-cli": "^8.0.0",
114
+ "eslint": "^9.19.0",
115
115
  "eslint-config-prettier": "^9.1.0",
116
116
  "eslint-plugin-check-file": "^2.8.0",
117
117
  "eslint-plugin-import": "^2.31.0",
118
118
  "eslint-plugin-jsx-a11y": "^6.10.2",
119
- "eslint-plugin-prettier": "5.2.1",
120
- "eslint-plugin-react": "^7.37.2",
119
+ "eslint-plugin-prettier": "5.2.3",
120
+ "eslint-plugin-react": "^7.37.4",
121
121
  "eslint-plugin-react-hooks": "^5.1.0",
122
122
  "eslint-plugin-simple-import-sort": "^12.1.1",
123
123
  "eslint-plugin-unused-imports": "^4.1.4",
124
124
  "framer-motion": "^10.16.4",
125
- "globals": "^15.13.0",
125
+ "globals": "^15.14.0",
126
126
  "identity-obj-proxy": "^3.0.0",
127
127
  "jest": "^29.4.0",
128
128
  "pnpapi": "^0.0.0",
129
129
  "prettier": "^3.4.2",
130
130
  "prop-types": "^15.8.1",
131
131
  "react": "^18.3.1",
132
- "react-dom": "^19.0.0",
132
+ "react-dom": "^18.3.1",
133
133
  "react-imask": "^7.6.1",
134
- "rollup": "^4.27.2",
134
+ "rollup": "^4.31.0",
135
135
  "rollup-plugin-delete": "^2.1.0",
136
136
  "rollup-plugin-dts": "^6.1.1",
137
137
  "rollup-plugin-filesize": "^10.0.0",
138
138
  "rollup-plugin-peer-deps-external": "^2.2.4",
139
139
  "rollup-plugin-typescript2": "^0.36.0",
140
- "rollup-plugin-visualizer": "^5.12.0",
141
- "storybook": "^8.4.7",
140
+ "rollup-plugin-visualizer": "^5.14.0",
141
+ "storybook": "^8.5.2",
142
142
  "stringify-object": "^5.0.0",
143
143
  "ts-jest": "^29.2.5",
144
- "typescript": "^5.7.2",
145
- "typescript-eslint": "^8.18.0",
146
- "vite": "^5.4.11"
144
+ "typescript": "^5.7.3",
145
+ "typescript-eslint": "^8.19.0",
146
+ "vite": "^6.0.11"
147
147
  },
148
- "packageManager": "yarn@4.2.2"
148
+ "packageManager": "yarn@4.6.0"
149
149
  }