@cryptofi/core-ui 0.7.0 → 0.9.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,6 +1,7 @@
1
1
  import * as _chakra_ui_system_dist_system_types from '@chakra-ui/system/dist/system.types';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { SVGProps } from 'react';
4
+ import { CurveType } from 'recharts/types/shape/Curve';
4
5
  import { CardProps, CheckboxProps, InputProps, ChakraComponent, SelectProps, TagProps, UseToastOptions } from '@chakra-ui/react';
5
6
 
6
7
  declare const SvgIconAlert: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
@@ -175,10 +176,12 @@ type SignDisplay$1 = 'auto' | 'always' | 'exceptZero' | 'never';
175
176
  *
176
177
  * @param amount - A finite number
177
178
  * @param signDisplay - Setting for minus / plus sign, defaults to exceptZero
179
+ * @param isDecimal - Is the number a percentage in its decimal form? defaults to true
178
180
  */
179
- declare const formatPercentage: ({ number, signDisplay }: {
181
+ declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
180
182
  number: number;
181
183
  signDisplay?: SignDisplay$1 | undefined;
184
+ isDecimal?: boolean | undefined;
182
185
  }) => string;
183
186
  //# sourceMappingURL=formatPercentage.d.ts.map
184
187
 
@@ -225,6 +228,15 @@ declare const uiColors: {
225
228
  };
226
229
  //# sourceMappingURL=uiColors.d.ts.map
227
230
 
231
+ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, }: {
232
+ data: any[] | undefined;
233
+ dataKey: string;
234
+ width?: string | undefined;
235
+ height?: string | undefined;
236
+ areaType?: CurveType | undefined;
237
+ }) => react_jsx_runtime.JSX.Element;
238
+ //# sourceMappingURL=AreaChart.d.ts.map
239
+
228
240
  declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
229
241
  //# sourceMappingURL=Card.d.ts.map
230
242
 
@@ -247,6 +259,15 @@ interface CfInputProps extends InputProps {
247
259
  }
248
260
  declare const CfInput: (props: CfInputProps) => react_jsx_runtime.JSX.Element;
249
261
 
262
+ declare const CfLineChart: ({ data, dataKey, width, height, lineType, }: {
263
+ data: any[] | undefined;
264
+ dataKey: string;
265
+ width?: string | undefined;
266
+ height?: string | undefined;
267
+ lineType?: CurveType | undefined;
268
+ }) => react_jsx_runtime.JSX.Element;
269
+ //# sourceMappingURL=LineChart.d.ts.map
270
+
250
271
  interface CfSelectProps extends SelectProps {
251
272
  errorMessage?: string;
252
273
  helperText?: string;
@@ -267,4 +288,4 @@ interface CfToastProps extends UseToastOptions {
267
288
  }
268
289
  declare const CfToast: (props: CfToastProps) => react_jsx_runtime.JSX.Element;
269
290
 
270
- export { CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfSelect, type CfSelectProps, CfTag, type CfTagProps, CfToast, type CfToastProps, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, 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, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, 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, exportedTheme as coreTheme, formatPercentage, formatUSD, getDelta, uiColors };
291
+ export { CfAreaChart, CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfLineChart, CfSelect, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, 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, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, 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, exportedTheme as coreTheme, formatPercentage, formatUSD, getDelta, uiColors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -25,7 +25,8 @@
25
25
  "publish:npm": "npm publish --access public",
26
26
  "icons:gen": "yarn icons:clean && yarn icons:prefix && yarn dlx @svgr/cli -- ./svg-icons",
27
27
  "icons:clean": "rm -rf src/icons && mkdir src/icons",
28
- "icons:prefix": "node scripts/prefix-icons.cjs"
28
+ "icons:prefix": "node scripts/prefix-icons.cjs",
29
+ "postpublish": "npm-publish-slack-webhook https://hooks.slack.com/services/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"
29
30
  },
30
31
  "module": "dist/index.js",
31
32
  "types": "dist/types/index.d.ts",
@@ -44,7 +45,8 @@
44
45
  "dependencies": {
45
46
  "@chakra-ui/anatomy": "^2.2.2",
46
47
  "colord": "^2.9.3",
47
- "decimal.js": "^10.4.3"
48
+ "decimal.js": "^10.4.3",
49
+ "recharts": "^2.10.3"
48
50
  },
49
51
  "devDependencies": {
50
52
  "@babel/core": "^7.17.5",
@@ -52,6 +54,7 @@
52
54
  "@chakra-ui/storybook-addon": "^5.0.1",
53
55
  "@emotion/react": "^11.11.1",
54
56
  "@emotion/styled": "^11.11.0",
57
+ "@n370/npm-publish-slack-webhook": "^0.1.1",
55
58
  "@rollup/plugin-commonjs": "^25.0.7",
56
59
  "@rollup/plugin-node-resolve": "^15.2.3",
57
60
  "@rollup/plugin-terser": "^0.4.4",