@cryptofi/core-ui 0.8.0 → 0.10.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.
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +20 -1
- package/package.json +8 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -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, {}>;
|
|
@@ -227,6 +228,15 @@ declare const uiColors: {
|
|
|
227
228
|
};
|
|
228
229
|
//# sourceMappingURL=uiColors.d.ts.map
|
|
229
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
|
+
|
|
230
240
|
declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
231
241
|
//# sourceMappingURL=Card.d.ts.map
|
|
232
242
|
|
|
@@ -249,6 +259,15 @@ interface CfInputProps extends InputProps {
|
|
|
249
259
|
}
|
|
250
260
|
declare const CfInput: (props: CfInputProps) => react_jsx_runtime.JSX.Element;
|
|
251
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
|
+
|
|
252
271
|
interface CfSelectProps extends SelectProps {
|
|
253
272
|
errorMessage?: string;
|
|
254
273
|
helperText?: string;
|
|
@@ -269,4 +288,4 @@ interface CfToastProps extends UseToastOptions {
|
|
|
269
288
|
}
|
|
270
289
|
declare const CfToast: (props: CfToastProps) => react_jsx_runtime.JSX.Element;
|
|
271
290
|
|
|
272
|
-
export { CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfSelect, type CfSelectProps, CfTag, type CfTagProps, CfToast,
|
|
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.
|
|
3
|
+
"version": "0.10.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": "dotenv cross-var npm-publish-slack-webhook %SLACK_WEBHOOK_URL%"
|
|
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",
|
|
@@ -82,6 +85,8 @@
|
|
|
82
85
|
"@types/stringify-object": "^4.0.4",
|
|
83
86
|
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
|
84
87
|
"@typescript-eslint/parser": "^6.13.1",
|
|
88
|
+
"cross-var": "^1.1.0",
|
|
89
|
+
"dotenv-cli": "^7.3.0",
|
|
85
90
|
"eslint": "^8.9.0",
|
|
86
91
|
"eslint-config-airbnb": "^19.0.4",
|
|
87
92
|
"eslint-config-prettier": "^8.4.0",
|