@cryptofi/core-ui 0.27.0 → 0.28.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.
@@ -76,6 +76,9 @@ declare const SvgIconExchange: _chakra_ui_system_dist_system_types.ChakraCompone
76
76
  declare const SvgIconFilter: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
77
77
  //# sourceMappingURL=IconFilter.d.ts.map
78
78
 
79
+ declare const SvgIconFilterActive: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
80
+ //# sourceMappingURL=IconFilterActive.d.ts.map
81
+
79
82
  declare const SvgIconHelp: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
80
83
  //# sourceMappingURL=IconHelp.d.ts.map
81
84
 
@@ -252,6 +255,16 @@ declare const getDelta: ({ data, dataKey }: {
252
255
  };
253
256
  //# sourceMappingURL=getDelta.d.ts.map
254
257
 
258
+ /**
259
+ * @description Pulls every nth element from a time series array, starting from the end
260
+ * to ensure the most recent entry is included.
261
+ */
262
+ declare const pullFromEnd: <T>({ arr, n }: {
263
+ arr: T[];
264
+ n: number;
265
+ }) => T[];
266
+ //# sourceMappingURL=pullFromEnd.d.ts.map
267
+
255
268
  /**
256
269
  * @description An object with predefined UI colors, implemented as functions with optional alpha values.
257
270
  * Color names are assigned using https://colornamer.robertcooper.me/.
@@ -409,4 +422,4 @@ declare const CfToast: ({ description, title, onClose, isClosable, status }: CfT
409
422
  type SVGIcon = ChakraComponent<'svg', object>;
410
423
  declare const layoutMinWidth = "22rem";
411
424
 
412
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, 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, type SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUSD, getDelta, layoutMinWidth, uiColors, usdToNumber };
425
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, 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, SvgIconFilterActive as IconFilterActive, 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, type SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUSD, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -52,7 +52,7 @@
52
52
  "decimal.js": "^10.4.3",
53
53
  "react-currency-input-field": "^3.7.0",
54
54
  "react-hook-form": "^7.49.3",
55
- "recharts": "^2.10.3",
55
+ "recharts": "^2.12.0",
56
56
  "yup": "^1.3.3"
57
57
  },
58
58
  "devDependencies": {
@@ -68,8 +68,8 @@
68
68
  "@storybook/addon-interactions": "^7.6.14",
69
69
  "@storybook/addon-links": "^7.6.14",
70
70
  "@storybook/addon-onboarding": "^1.0.8",
71
- "@storybook/blocks": "^7.6.14",
72
- "@storybook/components": "^7.6.14",
71
+ "@storybook/blocks": "^7.6.16",
72
+ "@storybook/components": "^7.6.17",
73
73
  "@storybook/manager-api": "^7.6.14",
74
74
  "@storybook/preview-api": "^7.6.14",
75
75
  "@storybook/react": "^7.6.14",
@@ -81,7 +81,7 @@
81
81
  "@svgr/plugin-jsx": "^8.1.0",
82
82
  "@svgr/plugin-prettier": "^8.1.0",
83
83
  "@svgr/plugin-svgo": "^8.1.0",
84
- "@testing-library/jest-dom": "^5.16.2",
84
+ "@testing-library/jest-dom": "^6.4.2",
85
85
  "@testing-library/react": "^13.4.0",
86
86
  "@types/jest": "^29.2.6",
87
87
  "@types/lodash.isempty": "^4",
@@ -90,9 +90,10 @@
90
90
  "@types/react-dom": "^18.2.19",
91
91
  "@types/rollup-plugin-peer-deps-external": "^2",
92
92
  "@types/stringify-object": "^4.0.4",
93
- "@typescript-eslint/eslint-plugin": "^6.13.1",
94
- "@typescript-eslint/parser": "^6.13.1",
93
+ "@typescript-eslint/eslint-plugin": "^7.0.2",
94
+ "@typescript-eslint/parser": "^7.0.2",
95
95
  "chalk": "4.1.2",
96
+ "core-js": "^3.36.0",
96
97
  "cross-var": "^1.1.0",
97
98
  "dotenv-cli": "^7.3.0",
98
99
  "eslint": "^8.9.0",
@@ -106,7 +107,7 @@
106
107
  "eslint-plugin-react-hooks": "^4.3.0",
107
108
  "eslint-plugin-simple-import-sort": "^9.0.0",
108
109
  "eslint-plugin-storybook": "^0.6.15",
109
- "eslint-plugin-unused-imports": "^3.0.0",
110
+ "eslint-plugin-unused-imports": "^3.1.0",
110
111
  "framer-motion": "^10.16.4",
111
112
  "identity-obj-proxy": "^3.0.0",
112
113
  "jest": "^29.4.0",