@cryptofi/core-ui 0.46.0 → 0.47.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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +14 -7
- package/package.json +8 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -322,6 +322,9 @@ declare const utcDateToLocal: ({ dateFormat, timeString, }: {
|
|
|
322
322
|
declare const formatPhoneNumber: (phoneNumberString: string) => string;
|
|
323
323
|
//# sourceMappingURL=formatPhoneNumber.d.ts.map
|
|
324
324
|
|
|
325
|
+
type TooltipLabelFormatter = (index: number, chartValue: any[]) => string | undefined;
|
|
326
|
+
type TooltipValueFormatter = (value: number) => string;
|
|
327
|
+
|
|
325
328
|
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
|
|
326
329
|
data: any[] | undefined;
|
|
327
330
|
dataKey: string;
|
|
@@ -330,8 +333,8 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
|
|
|
330
333
|
areaType?: CurveType | undefined;
|
|
331
334
|
showTooltip?: boolean | undefined;
|
|
332
335
|
isAnimated?: boolean | undefined;
|
|
333
|
-
formatter?:
|
|
334
|
-
labelFormatter?:
|
|
336
|
+
formatter?: TooltipValueFormatter | undefined;
|
|
337
|
+
labelFormatter?: TooltipLabelFormatter | undefined;
|
|
335
338
|
sampleRate?: number | undefined;
|
|
336
339
|
style?: react.CSSProperties | undefined;
|
|
337
340
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -415,8 +418,8 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
|
|
|
415
418
|
lineType?: CurveType | undefined;
|
|
416
419
|
showTooltip?: boolean | undefined;
|
|
417
420
|
isAnimated?: boolean | undefined;
|
|
418
|
-
formatter?:
|
|
419
|
-
labelFormatter?:
|
|
421
|
+
formatter?: TooltipValueFormatter | undefined;
|
|
422
|
+
labelFormatter?: TooltipLabelFormatter | undefined;
|
|
420
423
|
sampleRate?: number | undefined;
|
|
421
424
|
style?: react.CSSProperties | undefined;
|
|
422
425
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -505,7 +508,11 @@ declare const useBreakpoint: () => {
|
|
|
505
508
|
//# sourceMappingURL=useBreakpoint.d.ts.map
|
|
506
509
|
|
|
507
510
|
declare const layoutMinWidth = "22rem";
|
|
508
|
-
declare const
|
|
509
|
-
|
|
511
|
+
declare const dateFormats: {
|
|
512
|
+
dateOnly: string;
|
|
513
|
+
dateWithTime: string;
|
|
514
|
+
shortDateWithTime: string;
|
|
515
|
+
shortDateWithYear: string;
|
|
516
|
+
};
|
|
510
517
|
|
|
511
|
-
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfOpenSearchPagination, 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, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme,
|
|
518
|
+
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfOpenSearchPagination, 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, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptofi/core-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"storybook": "storybook dev -p 6006",
|
|
30
30
|
"test": "jest --colors --passWithNoTests",
|
|
31
31
|
"test:one": "node scripts/testOne.cjs",
|
|
32
|
-
"test:watch": "yarn test --collectCoverage=false --watch"
|
|
32
|
+
"test:watch": "yarn test --collectCoverage=false --watch",
|
|
33
|
+
"validate:types": "npx tsc --noEmit"
|
|
33
34
|
},
|
|
34
35
|
"module": "dist/index.js",
|
|
35
36
|
"types": "dist/types/index.d.ts",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"react-currency-input-field": "^3.8.0",
|
|
56
57
|
"react-hook-form": "^7.51.2",
|
|
57
58
|
"react-paginate": "^8.2.0",
|
|
58
|
-
"recharts": "^2.12.
|
|
59
|
+
"recharts": "^2.12.4",
|
|
59
60
|
"yup": "^1.4.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
68
69
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
69
70
|
"@rollup/plugin-terser": "^0.4.4",
|
|
70
|
-
"@storybook/addon-essentials": "^8.0.
|
|
71
|
+
"@storybook/addon-essentials": "^8.0.6",
|
|
71
72
|
"@storybook/addon-interactions": "^8.0.5",
|
|
72
73
|
"@storybook/addon-links": "^8.0.5",
|
|
73
74
|
"@storybook/addon-onboarding": "^8.0.5",
|
|
@@ -75,10 +76,10 @@
|
|
|
75
76
|
"@storybook/components": "^8.0.5",
|
|
76
77
|
"@storybook/manager-api": "^8.0.5",
|
|
77
78
|
"@storybook/preview-api": "^8.0.5",
|
|
78
|
-
"@storybook/react": "^8.0.
|
|
79
|
+
"@storybook/react": "^8.0.6",
|
|
79
80
|
"@storybook/react-vite": "^8.0.5",
|
|
80
81
|
"@storybook/test": "^8.0.5",
|
|
81
|
-
"@storybook/types": "^8.0.
|
|
82
|
+
"@storybook/types": "^8.0.6",
|
|
82
83
|
"@svgr/cli": "^8.1.0",
|
|
83
84
|
"@svgr/core": "^8.1.0",
|
|
84
85
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
@@ -119,7 +120,7 @@
|
|
|
119
120
|
"prop-types": "^15.8.1",
|
|
120
121
|
"react": "^18.2.0",
|
|
121
122
|
"react-dom": "^18.2.0",
|
|
122
|
-
"rollup": "^4.
|
|
123
|
+
"rollup": "^4.14.1",
|
|
123
124
|
"rollup-plugin-delete": "^2.0.0",
|
|
124
125
|
"rollup-plugin-dts": "^6.1.0",
|
|
125
126
|
"rollup-plugin-filesize": "^10.0.0",
|