@cryptofi/core-ui 0.36.0 → 0.38.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,8 +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';
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';
7
7
  import { CurveType } from 'recharts/types/shape/Curve';
8
8
  import { CurrencyInputProps } from 'react-currency-input-field';
9
9
  import { FieldValues, UseFormRegister, Control } from 'react-hook-form';
@@ -47,6 +47,9 @@ declare const SvgIconCheck: _chakra_ui_system_dist_system_types.ChakraComponent<
47
47
  declare const SvgIconChecking: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
48
48
  //# sourceMappingURL=IconChecking.d.ts.map
49
49
 
50
+ declare const SvgIconCircleCheck: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
51
+ //# sourceMappingURL=IconCircleCheck.d.ts.map
52
+
50
53
  declare const SvgIconClose: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
51
54
  //# sourceMappingURL=IconClose.d.ts.map
52
55
 
@@ -59,6 +62,9 @@ declare const SvgIconCopy: _chakra_ui_system_dist_system_types.ChakraComponent<(
59
62
  declare const SvgIconDollar: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
60
63
  //# sourceMappingURL=IconDollar.d.ts.map
61
64
 
65
+ declare const SvgIconDollarBill: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
66
+ //# sourceMappingURL=IconDollarBill.d.ts.map
67
+
62
68
  declare const SvgIconDownload: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
63
69
  //# sourceMappingURL=IconDownload.d.ts.map
64
70
 
@@ -95,6 +101,9 @@ declare const SvgIconIndicatorUp: _chakra_ui_system_dist_system_types.ChakraComp
95
101
  declare const SvgIconInfo: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
96
102
  //# sourceMappingURL=IconInfo.d.ts.map
97
103
 
104
+ declare const SvgIconLock: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
105
+ //# sourceMappingURL=IconLock.d.ts.map
106
+
98
107
  declare const SvgIconMail: _chakra_ui_system_dist_system_types.ChakraComponent<(props: IconProps & SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
99
108
  //# sourceMappingURL=IconMail.d.ts.map
100
109
 
@@ -323,6 +332,12 @@ declare const CfButtonGroupButton: ({ isSelected, children, ...rest }: {
323
332
  declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
324
333
  //# sourceMappingURL=Card.d.ts.map
325
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
+
326
341
  interface CfCheckboxProps extends CheckboxProps {
327
342
  errorMessage?: string;
328
343
  helperText?: string;
@@ -455,4 +470,4 @@ declare const useBreakpoint: () => {
455
470
 
456
471
  declare const layoutMinWidth = "22rem";
457
472
 
458
- 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, 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.36.0",
3
+ "version": "0.38.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -14,9 +14,11 @@
14
14
  "build:storybook": "storybook build --docs -o dist",
15
15
  "dev": "yarn storybook dev --docs",
16
16
  "format": "prettier --config ./.prettierrc -w '**/*.{tsx,ts,js,cjs,json,yml}' && git update-index --again",
17
- "icons:gen": "yarn icons:clean && yarn icons:prefix && npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",
17
+ "icons:attrs": "node scripts/replaceIconAttrs.cjs",
18
18
  "icons:clean": "npx rimraf './src/icons/**/Icon!(*.stories).tsx' ./src/icons/index.ts",
19
+ "icons:gen": "yarn icons:clean && yarn icons:prefix && yarn icons:svgr && yarn icons:attrs",
19
20
  "icons:prefix": "node scripts/prefixIcons.cjs",
21
+ "icons:svgr": "npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",
20
22
  "lint": "eslint src --ext .tsx --ext .ts",
21
23
  "lint:fix": "yarn lint --fix",
22
24
  "posttest": "npx http-server coverage/lcov-report",
@@ -53,7 +55,7 @@
53
55
  "react-currency-input-field": "^3.8.0",
54
56
  "react-hook-form": "^7.51.0",
55
57
  "recharts": "^2.12.2",
56
- "yup": "^1.3.3"
58
+ "yup": "^1.4.0"
57
59
  },
58
60
  "devDependencies": {
59
61
  "@babel/core": "^7.24.0",
@@ -90,12 +92,12 @@
90
92
  "@types/react-dom": "^18.2.19",
91
93
  "@types/rollup-plugin-peer-deps-external": "^2",
92
94
  "@types/stringify-object": "^4.0.4",
93
- "@typescript-eslint/eslint-plugin": "^7.1.0",
95
+ "@typescript-eslint/eslint-plugin": "^7.1.1",
94
96
  "@typescript-eslint/parser": "^7.1.1",
95
97
  "chalk": "4.1.2",
96
98
  "core-js": "^3.36.0",
97
99
  "cross-var": "^1.1.0",
98
- "dotenv-cli": "^7.3.0",
100
+ "dotenv-cli": "^7.4.1",
99
101
  "eslint": "^8.57.0",
100
102
  "eslint-config-airbnb": "^19.0.4",
101
103
  "eslint-config-prettier": "^9.1.0",
@@ -125,7 +127,7 @@
125
127
  "storybook": "^7.6.12",
126
128
  "stringify-object": "^5.0.0",
127
129
  "ts-jest": "^29.0.5",
128
- "typescript": "^5.3.3",
130
+ "typescript": "^5.4.2",
129
131
  "vite": "^5.1.4"
130
132
  },
131
133
  "packageManager": "yarn@4.1.0"