@cryptofi/core-ui 0.57.0 → 0.58.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.
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import * as _chakra_ui_react from '@chakra-ui/react';
3
- import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, SystemStyleObject, InputProps as InputProps$1, ModalProps, LayoutProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
2
+ import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, SystemStyleObject, InputProps as InputProps$1, ModalProps, LayoutProps, LinkProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
4
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { SVGProps, ReactElement, Dispatch, SetStateAction } from 'react';
4
+ import React, { SVGProps, CSSProperties, ReactElement, ReactNode, FormEvent, Dispatch, SetStateAction } from 'react';
6
5
  import { CurveType } from 'recharts/types/shape/Curve';
7
6
  import { UseFormRegister, FieldValues, Control } from 'react-hook-form';
8
7
  import { CurrencyInputProps } from 'react-currency-input-field';
@@ -335,7 +334,7 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
335
334
  formatter?: TooltipValueFormatter;
336
335
  labelFormatter?: TooltipLabelFormatter;
337
336
  sampleRate?: number;
338
- style?: React.CSSProperties;
337
+ style?: CSSProperties;
339
338
  }) => react_jsx_runtime.JSX.Element;
340
339
  //# sourceMappingURL=AreaChart.d.ts.map
341
340
 
@@ -364,7 +363,7 @@ declare const CfCarousel: (props: CarouselProps) => false | react_jsx_runtime.JS
364
363
  interface CfCheckboxProps extends CheckboxProps {
365
364
  errorMessage?: string;
366
365
  helperText?: string;
367
- label?: string | React.ReactNode;
366
+ label?: string | ReactNode;
368
367
  labelPosition?: 'left' | 'right';
369
368
  spaceBetween?: boolean;
370
369
  name: string;
@@ -373,7 +372,7 @@ interface CfCheckboxProps extends CheckboxProps {
373
372
  declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
374
373
 
375
374
  interface Props$4 extends FlexProps {
376
- onSubmit?: (event: React.FormEvent) => void;
375
+ onSubmit?: (event: FormEvent) => void;
377
376
  }
378
377
  /**
379
378
  *
@@ -399,14 +398,14 @@ interface CfInputProps extends InputProps {
399
398
  declare const CfInput: React.FC<CfInputProps>;
400
399
  //# sourceMappingURL=Input.d.ts.map
401
400
 
402
- type Props$3<T extends FieldValues> = {
401
+ interface Props$3<T extends FieldValues> {
403
402
  name: string;
404
403
  control: Control;
405
404
  register: UseFormRegister<T>;
406
405
  defaultValues: FieldValues;
407
406
  onArrayAppend?: (appendValues: FieldValues) => void;
408
407
  onArrayRemove?: (remove: number) => void;
409
- };
408
+ }
410
409
  declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$3<T>) => react_jsx_runtime.JSX.Element;
411
410
  //# sourceMappingURL=InputArray.d.ts.map
412
411
 
@@ -421,13 +420,13 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
421
420
  formatter?: TooltipValueFormatter;
422
421
  labelFormatter?: TooltipLabelFormatter;
423
422
  sampleRate?: number;
424
- style?: React.CSSProperties;
423
+ style?: CSSProperties;
425
424
  }) => react_jsx_runtime.JSX.Element;
426
425
  //# sourceMappingURL=LineChart.d.ts.map
427
426
 
428
427
  interface Props$2 extends ModalProps {
429
- headerContent?: React.ReactNode;
430
- footerContent?: React.ReactNode;
428
+ headerContent?: ReactNode;
429
+ footerContent?: ReactNode;
431
430
  bodyMinHeight?: string | number;
432
431
  bodyBackground?: string;
433
432
  isDisabledCloseButton?: boolean;
@@ -436,6 +435,11 @@ interface Props$2 extends ModalProps {
436
435
  declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyBackground, isDisabledCloseButton, maxHeight, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
437
436
  //# sourceMappingURL=Modal.d.ts.map
438
437
 
438
+ interface CfNavLinkProps extends LinkProps {
439
+ isActive?: boolean;
440
+ }
441
+ declare const CfNavLink: (props: CfNavLinkProps) => react_jsx_runtime.JSX.Element;
442
+
439
443
  interface PageClickEvent {
440
444
  selected: number;
441
445
  }
@@ -516,4 +520,4 @@ declare const dateFormats: {
516
520
  shortDateWithYear: string;
517
521
  };
518
522
 
519
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, 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, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
523
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, CfLineChart, CfModal, CfNavLink, 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, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, 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.57.0",
3
+ "version": "0.58.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -19,7 +19,7 @@
19
19
  "icons:gen": "yarn icons:clean && yarn icons:prefix && yarn icons:svgr && yarn icons:attrs",
20
20
  "icons:prefix": "node scripts/prefixIcons.cjs",
21
21
  "icons:svgr": "npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",
22
- "lint": "eslint src --ext .tsx --ext .ts",
22
+ "lint": "eslint -c eslint.config.js",
23
23
  "lint:fix": "yarn lint --fix",
24
24
  "posttest": "npx http-server coverage/lcov-report",
25
25
  "pretest": "yarn lint:fix",
@@ -66,6 +66,7 @@
66
66
  "@chakra-ui/storybook-addon": "^5.1.0",
67
67
  "@emotion/react": "^11.11.4",
68
68
  "@emotion/styled": "^11.11.5",
69
+ "@eslint/js": "^9.4.0",
69
70
  "@rollup/plugin-commonjs": "^25.0.8",
70
71
  "@rollup/plugin-node-resolve": "^15.2.3",
71
72
  "@rollup/plugin-terser": "^0.4.4",
@@ -73,9 +74,9 @@
73
74
  "@storybook/addon-interactions": "^8.0.11",
74
75
  "@storybook/addon-links": "^8.0.11",
75
76
  "@storybook/addon-onboarding": "^8.0.11",
76
- "@storybook/blocks": "^8.0.11",
77
- "@storybook/components": "^8.1.3",
78
- "@storybook/manager-api": "^8.0.11",
77
+ "@storybook/blocks": "^8.1.6",
78
+ "@storybook/components": "^8.1.6",
79
+ "@storybook/manager-api": "^8.1.6",
79
80
  "@storybook/preview-api": "^8.0.11",
80
81
  "@storybook/react": "^8.0.11",
81
82
  "@storybook/react-vite": "^8.0.11",
@@ -89,41 +90,41 @@
89
90
  "@testing-library/jest-dom": "^6.4.5",
90
91
  "@testing-library/react": "^15.0.5",
91
92
  "@types/big.js": "^6.2.2",
93
+ "@types/eslint__js": "^8.42.3",
92
94
  "@types/jest": "^29.2.6",
93
95
  "@types/prop-types": "^15",
94
96
  "@types/react": "^18.3.3",
95
97
  "@types/react-dom": "^18.2.25",
96
98
  "@types/rollup-plugin-peer-deps-external": "^2",
97
99
  "@types/stringify-object": "^4.0.4",
98
- "@typescript-eslint/eslint-plugin": "^7.9.0",
100
+ "@typescript-eslint/eslint-plugin": "^7.12.0",
99
101
  "@typescript-eslint/parser": "^7.8.0",
100
102
  "chalk": "4.1.2",
101
103
  "core-js": "^3.36.1",
102
104
  "cross-var": "^1.1.0",
103
105
  "dotenv-cli": "^7.4.1",
104
- "eslint": "^8.57.0",
105
- "eslint-config-airbnb": "^19.0.4",
106
+ "eslint": "^9.4.0",
106
107
  "eslint-config-prettier": "^9.1.0",
107
- "eslint-import-resolver-typescript": "^3.6.1",
108
+ "eslint-plugin-check-file": "^2.8.0",
108
109
  "eslint-plugin-import": "^2.29.0",
109
110
  "eslint-plugin-jsx-a11y": "^6.5.1",
110
111
  "eslint-plugin-prettier": "5.1.3",
111
- "eslint-plugin-react": "^7.34.1",
112
+ "eslint-plugin-react": "^7.34.2",
112
113
  "eslint-plugin-react-hooks": "^4.6.2",
113
114
  "eslint-plugin-simple-import-sort": "^12.0.0",
114
- "eslint-plugin-storybook": "^0.8.0",
115
115
  "eslint-plugin-unused-imports": "^3.2.0",
116
116
  "framer-motion": "^10.16.4",
117
+ "globals": "^15.3.0",
117
118
  "identity-obj-proxy": "^3.0.0",
118
119
  "jest": "^29.4.0",
119
120
  "pnpapi": "^0.0.0",
120
- "prettier": "^3.1.0",
121
+ "prettier": "^3.3.0",
121
122
  "prop-types": "^15.8.1",
122
123
  "react": "^18.3.1",
123
124
  "react-dom": "^18.2.0",
124
- "rollup": "^4.17.1",
125
+ "rollup": "^4.18.0",
125
126
  "rollup-plugin-delete": "^2.0.0",
126
- "rollup-plugin-dts": "^6.1.0",
127
+ "rollup-plugin-dts": "^6.1.1",
127
128
  "rollup-plugin-filesize": "^10.0.0",
128
129
  "rollup-plugin-peer-deps-external": "^2.2.4",
129
130
  "rollup-plugin-typescript2": "^0.36.0",
@@ -131,7 +132,8 @@
131
132
  "storybook": "^8.0.11",
132
133
  "stringify-object": "^5.0.0",
133
134
  "ts-jest": "^29.0.5",
134
- "typescript": "^5.4.2",
135
+ "typescript": "^5.4.5",
136
+ "typescript-eslint": "^7.12.0",
135
137
  "vite": "^5.2.10"
136
138
  },
137
139
  "packageManager": "yarn@4.2.2"