@cryptofi/core-ui 2.2.5 → 2.3.2

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.
@@ -313,6 +313,20 @@ declare const formatUsd: ({ amount, autoPrecision, precision, signDisplay, }: {
313
313
  }) => string | number;
314
314
  //# sourceMappingURL=formatUsd.d.ts.map
315
315
 
316
+ declare const generatePalette: (baseColor?: string) => {
317
+ 900: string;
318
+ 800: string;
319
+ 700: string;
320
+ 600: string;
321
+ 500: string;
322
+ 400: string;
323
+ 300: string;
324
+ 200: string;
325
+ 100: string;
326
+ 50: string;
327
+ };
328
+ //# sourceMappingURL=generatePalette.d.ts.map
329
+
316
330
  /**
317
331
  *
318
332
  * @param data - Date-sorted array of objects
@@ -643,8 +657,9 @@ declare const CfSelect: (props: CfSelectProps) => react_jsx_runtime.JSX.Element;
643
657
  interface Props extends FlexProps {
644
658
  boxSize?: string | number;
645
659
  color?: 'neutral' | 'brand';
660
+ 'aria-label'?: string;
646
661
  }
647
- declare const CfSpinner: ({ boxSize, color, ...rest }: Props) => react_jsx_runtime.JSX.Element;
662
+ declare const CfSpinner: ({ boxSize, color, "aria-label": ariaLabel, ...rest }: Props) => react_jsx_runtime.JSX.Element;
648
663
  //# sourceMappingURL=Spinner.d.ts.map
649
664
 
650
665
  type SVGIcon = ChakraComponent<'svg', object>;
@@ -717,5 +732,5 @@ declare function useDebounceValue<T>(initialValue: T | (() => T), delay: number,
717
732
  declare function useUnmount(func: () => void): void;
718
733
  //# sourceMappingURL=useUnmount.d.ts.map
719
734
 
720
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, 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, CfSpinner, CfStatCard, CfTag, CfToast, CfTooltip, SvgIconAave as IconAave, 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, SvgIconDai as IconDai, SvgIconDiamonds as IconDiamonds, SvgIconDoge as IconDoge, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, SvgIconDot as IconDot, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconExternalLink as IconExternalLink, SvgIconFaq as IconFaq, SvgIconFil as IconFil, SvgIconFilter as IconFilter, SvgIconGlossary as IconGlossary, SvgIconHbar as IconHbar, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconLearn as IconLearn, SvgIconLink as IconLink, SvgIconLock as IconLock, SvgIconLtc as IconLtc, SvgIconMail as IconMail, SvgIconMatic as IconMatic, SvgIconMenu as IconMenu, SvgIconMinus as IconMinus, SvgIconMkr as IconMkr, SvgIconMore as IconMore, SvgIconNear as IconNear, 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, SvgIconShib as IconShib, SvgIconSignIn as IconSignIn, SvgIconSignOut as IconSignOut, SvgIconSol as IconSol, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSunset as IconSunset, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUsdc as IconUsdc, SvgIconUsdt as IconUsdt, SvgIconUser as IconUser, SvgIconXlm as IconXlm, SvgIconXrp as IconXrp, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, isIframe, layoutMinWidth, sampleFromEnd, splitOnCapitals, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, useDebounceCallback, useDebounceValue, useUnmount, utcDateToLocal };
735
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, 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, CfSpinner, CfStatCard, CfTag, CfToast, CfTooltip, SvgIconAave as IconAave, 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, SvgIconDai as IconDai, SvgIconDiamonds as IconDiamonds, SvgIconDoge as IconDoge, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, SvgIconDot as IconDot, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconExternalLink as IconExternalLink, SvgIconFaq as IconFaq, SvgIconFil as IconFil, SvgIconFilter as IconFilter, SvgIconGlossary as IconGlossary, SvgIconHbar as IconHbar, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconLearn as IconLearn, SvgIconLink as IconLink, SvgIconLock as IconLock, SvgIconLtc as IconLtc, SvgIconMail as IconMail, SvgIconMatic as IconMatic, SvgIconMenu as IconMenu, SvgIconMinus as IconMinus, SvgIconMkr as IconMkr, SvgIconMore as IconMore, SvgIconNear as IconNear, 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, SvgIconShib as IconShib, SvgIconSignIn as IconSignIn, SvgIconSignOut as IconSignOut, SvgIconSol as IconSol, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSunset as IconSunset, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUsdc as IconUsdc, SvgIconUsdt as IconUsdt, SvgIconUser as IconUser, SvgIconXlm as IconXlm, SvgIconXrp as IconXrp, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, generatePalette, getDelta, isIframe, layoutMinWidth, sampleFromEnd, splitOnCapitals, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, useDebounceCallback, useDebounceValue, useUnmount, utcDateToLocal };
721
736
  export type { CfCheckboxProps, CfSelectOption, PageClickEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "2.2.5",
3
+ "version": "2.3.2",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -9,29 +9,6 @@
9
9
  },
10
10
  "license": "MIT",
11
11
  "type": "module",
12
- "scripts": {
13
- "build": "rm -rf ./dist && rollup -c",
14
- "build:storybook": "storybook build --docs -o dist",
15
- "dev": "yarn storybook dev --docs",
16
- "format": "prettier --config ./.prettierrc -w '**/*.{tsx,ts,js,cjs,json,yml}' && git update-index --again",
17
- "icons:attrs": "node scripts/replaceIconAttrs.cjs",
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",
20
- "icons:prefix": "node scripts/prefixIcons.cjs",
21
- "icons:svgr": "npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",
22
- "lint": "eslint -c eslint.config.js",
23
- "lint:fix": "yarn lint --fix",
24
- "posttest": "npx http-server coverage/lcov-report",
25
- "pretest": "yarn lint:fix",
26
- "publish:local": "yarn build && npx yalc publish --push",
27
- "publish:notifier": "dotenv cross-var node scripts/npmPublishNotifier.cjs %SLACK_WEBHOOK_URL%",
28
- "publish:npm": "yarn build && npm publish --access public && yarn publish:notifier",
29
- "storybook": "storybook dev -p 6006",
30
- "test": "jest --colors --passWithNoTests",
31
- "test:one": "node scripts/testOne.cjs",
32
- "test:watch": "yarn test --collectCoverage=false --watch",
33
- "validate:types": "npx tsc --noEmit"
34
- },
35
12
  "exports": {
36
13
  ".": {
37
14
  "import": {
@@ -45,10 +22,6 @@
45
22
  "files": [
46
23
  "dist"
47
24
  ],
48
- "resolutions": {
49
- "react": "^18.0.0",
50
- "react-dom": "^18.0.0"
51
- },
52
25
  "peerDependencies": {
53
26
  "@chakra-ui/react": "^2.10.3",
54
27
  "@emotion/react": "^11.14.0",
@@ -60,28 +33,28 @@
60
33
  },
61
34
  "dependencies": {
62
35
  "@chakra-ui/anatomy": "^2.3.4",
63
- "@hookform/resolvers": "^5.2.0",
36
+ "@hookform/resolvers": "^5.2.2",
64
37
  "big.js": "^7.0.1",
65
38
  "colord": "^2.9.3",
66
39
  "currency.js": "^2.0.4",
67
- "dayjs": "^1.11.13",
40
+ "dayjs": "^1.11.18",
68
41
  "lodash": "^4.17.21",
69
42
  "nanoid": "^3.3.11",
70
- "react-currency-input-field": "^3.10.0",
43
+ "react-currency-input-field": "^4.0.3",
71
44
  "react-hook-form": "^7.62.0",
72
45
  "react-paginate": "^8.3.0",
73
46
  "recharts": "^2.15.3",
74
47
  "yup": "^1.7.0"
75
48
  },
76
49
  "devDependencies": {
77
- "@babel/core": "^7.28.3",
50
+ "@babel/core": "^7.28.4",
78
51
  "@chakra-ui/react": "^2.10.3",
79
52
  "@chakra-ui/storybook-addon": "^5.2.5",
80
53
  "@emotion/react": "^11.14.0",
81
54
  "@emotion/styled": "^11.14.1",
82
- "@eslint/js": "^9.33.0",
55
+ "@eslint/js": "^9.36.0",
83
56
  "@rollup/plugin-commonjs": "^28.0.6",
84
- "@rollup/plugin-node-resolve": "^16.0.1",
57
+ "@rollup/plugin-node-resolve": "^16.0.2",
85
58
  "@rollup/plugin-terser": "^0.4.4",
86
59
  "@storybook/addon-essentials": "^8.6.14",
87
60
  "@storybook/addon-interactions": "^8.6.14",
@@ -105,18 +78,20 @@
105
78
  "@types/big.js": "^6.2.2",
106
79
  "@types/eslint__js": "^9.14.0",
107
80
  "@types/jest": "^30.0.0",
81
+ "@types/lodash": "^4.17.20",
82
+ "@types/node": "^24.5.2",
108
83
  "@types/prop-types": "^15",
109
84
  "@types/react": "^19.x.x",
110
85
  "@types/react-dom": "^19.x.x",
111
86
  "@types/rollup-plugin-peer-deps-external": "^2",
112
87
  "@types/stringify-object": "^4.0.4",
113
- "@typescript-eslint/eslint-plugin": "^8.40.0",
114
- "@typescript-eslint/parser": "^8.41.0",
88
+ "@typescript-eslint/eslint-plugin": "^8.44.0",
89
+ "@typescript-eslint/parser": "^8.44.0",
115
90
  "chalk": "^4.1.2",
116
- "core-js": "^3.45.0",
91
+ "core-js": "^3.45.1",
117
92
  "cross-var": "^1.1.0",
118
93
  "dotenv-cli": "^10.0.0",
119
- "eslint": "^9.33.0",
94
+ "eslint": "^9.36.0",
120
95
  "eslint-config-prettier": "^10.1.8",
121
96
  "eslint-plugin-check-file": "^3.3.0",
122
97
  "eslint-plugin-import": "^2.32.0",
@@ -127,28 +102,50 @@
127
102
  "eslint-plugin-simple-import-sort": "^12.1.1",
128
103
  "eslint-plugin-unused-imports": "^4.2.0",
129
104
  "framer-motion": "^10.16.4",
130
- "globals": "^16.3.0",
105
+ "globals": "^16.4.0",
131
106
  "identity-obj-proxy": "^3.0.0",
132
- "jest": "^30.0.5",
107
+ "jest": "^30.2.0",
133
108
  "pnpapi": "^0.0.0",
134
109
  "prettier": "^3.6.2",
135
110
  "prop-types": "^15.8.1",
136
111
  "react": "^18.x.x",
137
112
  "react-dom": "^18.x.x",
138
113
  "react-imask": "^7.6.1",
139
- "rollup": "^4.45.1",
114
+ "rollup": "^4.52.3",
140
115
  "rollup-plugin-delete": "^3.0.1",
141
- "rollup-plugin-dts": "^6.2.1",
116
+ "rollup-plugin-dts": "^6.2.3",
142
117
  "rollup-plugin-filesize": "^10.0.0",
143
118
  "rollup-plugin-peer-deps-external": "^2.2.4",
144
119
  "rollup-plugin-typescript2": "^0.36.0",
145
120
  "rollup-plugin-visualizer": "^6.0.3",
146
121
  "storybook": "^8.6.14",
147
- "stringify-object": "^5.0.0",
148
- "ts-jest": "^29.4.1",
122
+ "stringify-object": "^6.0.0",
123
+ "ts-jest": "^29.4.4",
149
124
  "typescript": "^5.9.2",
150
- "typescript-eslint": "^8.38.0",
151
- "vite": "^7.0.5"
125
+ "typescript-eslint": "^8.43.0",
126
+ "vite": "^7.1.7"
152
127
  },
153
- "packageManager": "yarn@4.9.1"
154
- }
128
+ "scripts": {
129
+ "build": "rm -rf ./dist && rollup -c",
130
+ "build:storybook": "storybook build --docs -o dist",
131
+ "dev": "pnpm storybook dev --docs",
132
+ "format": "prettier --config ./.prettierrc -w '**/*.{tsx,ts,js,cjs,json,yml}' && git update-index --again",
133
+ "icons:attrs": "node scripts/replaceIconAttrs.cjs",
134
+ "icons:clean": "npx rimraf './src/icons/**/Icon!(*.stories).tsx' ./src/icons/index.ts",
135
+ "icons:gen": "pnpm icons:clean && pnpm icons:prefix && pnpm icons:svgr && pnpm icons:attrs",
136
+ "icons:prefix": "node scripts/prefixIcons.cjs",
137
+ "icons:svgr": "npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",
138
+ "lint": "eslint -c eslint.config.js",
139
+ "lint:fix": "pnpm lint --fix",
140
+ "serve:coverage": "npx http-server coverage/lcov-report",
141
+ "pretest": "pnpm lint:fix",
142
+ "publish:local": "pnpm build && npx yalc publish --push",
143
+ "publish:notifier": "dotenv cross-var node scripts/npmPublishNotifier.cjs %SLACK_WEBHOOK_URL%",
144
+ "publish:npm": "pnpm build && npm publish --access public && pnpm publish:notifier",
145
+ "storybook": "storybook dev -p 6006",
146
+ "test": "jest --colors --passWithNoTests",
147
+ "test:one": "node scripts/testOne.cjs",
148
+ "test:watch": "pnpm test --collectCoverage=false --watch",
149
+ "validate:types": "npx tsc --noEmit"
150
+ }
151
+ }