@cryptofi/core-ui 0.35.0 → 0.37.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.
@@ -2,9 +2,8 @@
2
2
  import * as _chakra_ui_system_dist_system_types from '@chakra-ui/system/dist/system.types';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
- import { SVGProps, Dispatch, SetStateAction } from 'react';
6
- import { IconProps, ButtonGroupProps, ButtonProps, CardProps, CheckboxProps, FlexProps, InputProps as InputProps$1, ModalProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
7
- import s from 'slugify';
5
+ import { SVGProps, ReactElement, Dispatch, SetStateAction } from 'react';
6
+ import { IconProps, ButtonGroupProps, ButtonProps, CardProps, FlexProps, CheckboxProps, InputProps as InputProps$1, ModalProps, SelectProps, TagProps, ChakraComponent, UseToastOptions } from '@chakra-ui/react';
8
7
  import { CurveType } from 'recharts/types/shape/Curve';
9
8
  import { CurrencyInputProps } from 'react-currency-input-field';
10
9
  import { FieldValues, UseFormRegister, Control } from 'react-hook-form';
@@ -48,6 +47,9 @@ declare const SvgIconCheck: _chakra_ui_system_dist_system_types.ChakraComponent<
48
47
  declare const SvgIconChecking: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
49
48
  //# sourceMappingURL=IconChecking.d.ts.map
50
49
 
50
+ declare const SvgIconCircleCheck: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
51
+ //# sourceMappingURL=IconCircleCheck.d.ts.map
52
+
51
53
  declare const SvgIconClose: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
52
54
  //# sourceMappingURL=IconClose.d.ts.map
53
55
 
@@ -60,6 +62,9 @@ declare const SvgIconCopy: _chakra_ui_system_dist_system_types.ChakraComponent<(
60
62
  declare const SvgIconDollar: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
61
63
  //# sourceMappingURL=IconDollar.d.ts.map
62
64
 
65
+ declare const SvgIconDollarBill: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
66
+ //# sourceMappingURL=IconDollarBill.d.ts.map
67
+
63
68
  declare const SvgIconDownload: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
64
69
  //# sourceMappingURL=IconDownload.d.ts.map
65
70
 
@@ -96,6 +101,9 @@ declare const SvgIconIndicatorUp: _chakra_ui_system_dist_system_types.ChakraComp
96
101
  declare const SvgIconInfo: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
97
102
  //# sourceMappingURL=IconInfo.d.ts.map
98
103
 
104
+ declare const SvgIconLock: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
105
+ //# sourceMappingURL=IconLock.d.ts.map
106
+
99
107
  declare const SvgIconMail: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
100
108
  //# sourceMappingURL=IconMail.d.ts.map
101
109
 
@@ -294,17 +302,6 @@ declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
294
302
  }) => number;
295
303
  //# sourceMappingURL=usdToNumber.d.ts.map
296
304
 
297
- type Options = Parameters<typeof s>[1];
298
- type Narrowed = Extract<Options, {
299
- replacement?: string | undefined;
300
- }>;
301
- /**
302
- * @description Slugifies a string, with the same API as `slugify` from NPM, but defaults lower to true.
303
- * @link https://www.npmjs.com/package/slugify
304
- */
305
- declare const slugify: (str: string | undefined, options?: Narrowed) => string;
306
- //# sourceMappingURL=slugify.d.ts.map
307
-
308
305
  declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
309
306
  data: any[] | undefined;
310
307
  dataKey: string;
@@ -335,6 +332,12 @@ declare const CfButtonGroupButton: ({ isSelected, children, ...rest }: {
335
332
  declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
336
333
  //# sourceMappingURL=Card.d.ts.map
337
334
 
335
+ interface CarouselProps extends FlexProps {
336
+ carouselContents: ReactElement[];
337
+ isNavVertical?: boolean;
338
+ }
339
+ declare const CfCarousel: (props: CarouselProps) => false | react_jsx_runtime.JSX.Element;
340
+
338
341
  interface CfCheckboxProps extends CheckboxProps {
339
342
  errorMessage?: string;
340
343
  helperText?: string;
@@ -467,4 +470,4 @@ declare const useBreakpoint: () => {
467
470
 
468
471
  declare const layoutMinWidth = "22rem";
469
472
 
470
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, 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, 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, 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, slugify, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
473
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "peerDependencies": {
39
39
  "@chakra-ui/react": "^2.4.9",
40
- "@emotion/react": "^11.11.1",
40
+ "@emotion/react": "^11.11.4",
41
41
  "@emotion/styled": "^11.11.0",
42
42
  "framer-motion": "^10.16.4",
43
43
  "react": "^18.2.0",
@@ -51,16 +51,15 @@
51
51
  "currency.js": "^2.0.4",
52
52
  "dayjs": "^1.11.10",
53
53
  "react-currency-input-field": "^3.8.0",
54
- "react-hook-form": "^7.49.3",
54
+ "react-hook-form": "^7.51.0",
55
55
  "recharts": "^2.12.2",
56
- "slugify": "^1.6.6",
57
56
  "yup": "^1.3.3"
58
57
  },
59
58
  "devDependencies": {
60
59
  "@babel/core": "^7.24.0",
61
60
  "@chakra-ui/react": "^2.4.9",
62
61
  "@chakra-ui/storybook-addon": "^5.0.1",
63
- "@emotion/react": "^11.11.1",
62
+ "@emotion/react": "^11.11.4",
64
63
  "@emotion/styled": "^11.11.0",
65
64
  "@rollup/plugin-commonjs": "^25.0.7",
66
65
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -87,12 +86,12 @@
87
86
  "@types/big.js": "^6.2.2",
88
87
  "@types/jest": "^29.2.6",
89
88
  "@types/prop-types": "^15",
90
- "@types/react": "^18.2.58",
89
+ "@types/react": "^18.2.64",
91
90
  "@types/react-dom": "^18.2.19",
92
91
  "@types/rollup-plugin-peer-deps-external": "^2",
93
92
  "@types/stringify-object": "^4.0.4",
94
93
  "@typescript-eslint/eslint-plugin": "^7.1.0",
95
- "@typescript-eslint/parser": "^7.1.0",
94
+ "@typescript-eslint/parser": "^7.1.1",
96
95
  "chalk": "4.1.2",
97
96
  "core-js": "^3.36.0",
98
97
  "cross-var": "^1.1.0",
@@ -117,7 +116,7 @@
117
116
  "prop-types": "^15.8.1",
118
117
  "react": "^18.2.0",
119
118
  "react-dom": "^18.2.0",
120
- "rollup": "^4.3.1",
119
+ "rollup": "^4.12.1",
121
120
  "rollup-plugin-delete": "^2.0.0",
122
121
  "rollup-plugin-dts": "^6.1.0",
123
122
  "rollup-plugin-filesize": "^10.0.0",