@cryptofi/core-ui 1.6.11 → 2.0.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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -21
- package/package.json +7 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -289,24 +289,6 @@ declare const getDelta: ({ data, dataKey }: {
|
|
|
289
289
|
};
|
|
290
290
|
//# sourceMappingURL=getDelta.d.ts.map
|
|
291
291
|
|
|
292
|
-
declare const getNextDayFormatted: () => {
|
|
293
|
-
dayOfWeek: string;
|
|
294
|
-
monthlyDay: string;
|
|
295
|
-
};
|
|
296
|
-
//# sourceMappingURL=getNextDayFormatted.d.ts.map
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Returns the ordinal suffix for a given day
|
|
300
|
-
* @param day - The day of the month
|
|
301
|
-
* @returns The ordinal suffix for the day
|
|
302
|
-
* @example
|
|
303
|
-
* getOrdinalSuffix(1) // 'st'
|
|
304
|
-
* getOrdinalSuffix(2) // 'nd'
|
|
305
|
-
* getOrdinalSuffix(3) // 'rd'
|
|
306
|
-
* getOrdinalSuffix(25) // 'th'
|
|
307
|
-
*/
|
|
308
|
-
declare const getOrdinalSuffix: (day: number) => "th" | "st" | "nd" | "rd";
|
|
309
|
-
|
|
310
292
|
declare const isIframe: () => boolean;
|
|
311
293
|
//# sourceMappingURL=isIframe.d.ts.map
|
|
312
294
|
|
|
@@ -314,11 +296,11 @@ declare const isIframe: () => boolean;
|
|
|
314
296
|
* @description Pulls every nth element from a time series array, starting from the end
|
|
315
297
|
* to ensure the most recent entry is included.
|
|
316
298
|
*/
|
|
317
|
-
declare const
|
|
299
|
+
declare const sampleFromEnd: <T>({ arr, n }: {
|
|
318
300
|
arr: T[];
|
|
319
301
|
n: number;
|
|
320
302
|
}) => T[];
|
|
321
|
-
//# sourceMappingURL=
|
|
303
|
+
//# sourceMappingURL=sampleFromEnd.d.ts.map
|
|
322
304
|
|
|
323
305
|
declare const splitOnCapitals: (input: string) => string;
|
|
324
306
|
//# sourceMappingURL=splitOnCapitals.d.ts.map
|
|
@@ -677,4 +659,4 @@ declare function useDebounceValue<T>(initialValue: T | (() => T), delay: number,
|
|
|
677
659
|
declare function useUnmount(func: () => void): void;
|
|
678
660
|
//# sourceMappingURL=useUnmount.d.ts.map
|
|
679
661
|
|
|
680
|
-
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, 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, type CfSelectOption, CfSpinner, CfTag, CfToast, CfTooltip, 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, SvgIconDiamonds as IconDiamonds, SvgIconDoge as IconDoge, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconExternalLink as IconExternalLink, 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, SvgIconMinus as IconMinus, SvgIconMkr as IconMkr, 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, SvgIconSol as IconSol, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, SvgIconXrp as IconXrp, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta,
|
|
662
|
+
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, 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, type CfSelectOption, CfSpinner, CfTag, CfToast, CfTooltip, 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, SvgIconDiamonds as IconDiamonds, SvgIconDoge as IconDoge, SvgIconDollar as IconDollar, SvgIconDollarBill as IconDollarBill, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconExternalLink as IconExternalLink, 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, SvgIconMinus as IconMinus, SvgIconMkr as IconMkr, 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, SvgIconSol as IconSol, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, SvgIconXrp as IconXrp, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, isIframe, layoutMinWidth, sampleFromEnd, splitOnCapitals, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, useDebounceCallback, useDebounceValue, useUnmount, utcDateToLocal };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptofi/core-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@chakra-ui/anatomy": "^2.3.4",
|
|
59
|
-
"@hookform/resolvers": "^4.
|
|
59
|
+
"@hookform/resolvers": "^4.1.0",
|
|
60
60
|
"big.js": "^6.2.2",
|
|
61
61
|
"colord": "^2.9.3",
|
|
62
62
|
"currency.js": "^2.0.4",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"yup": "^1.6.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@babel/core": "^7.26.
|
|
73
|
+
"@babel/core": "^7.26.9",
|
|
74
74
|
"@chakra-ui/react": "^2.10.3",
|
|
75
75
|
"@chakra-ui/storybook-addon": "^5.2.5",
|
|
76
76
|
"@emotion/react": "^11.14.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@storybook/addon-essentials": "^8.5.3",
|
|
83
83
|
"@storybook/addon-interactions": "^8.5.3",
|
|
84
84
|
"@storybook/addon-links": "^8.5.3",
|
|
85
|
-
"@storybook/addon-onboarding": "^8.5.
|
|
85
|
+
"@storybook/addon-onboarding": "^8.5.6",
|
|
86
86
|
"@storybook/blocks": "^8.5.3",
|
|
87
87
|
"@storybook/components": "^8.5.3",
|
|
88
88
|
"@storybook/manager-api": "^8.5.3",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"@types/react-dom": "^19.x.x",
|
|
107
107
|
"@types/rollup-plugin-peer-deps-external": "^2",
|
|
108
108
|
"@types/stringify-object": "^4.0.4",
|
|
109
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
110
|
-
"@typescript-eslint/parser": "^8.
|
|
109
|
+
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
110
|
+
"@typescript-eslint/parser": "^8.24.0",
|
|
111
111
|
"chalk": "^4.1.2",
|
|
112
112
|
"core-js": "^3.40.0",
|
|
113
113
|
"cross-var": "^1.1.0",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"ts-jest": "^29.2.5",
|
|
145
145
|
"typescript": "^5.7.3",
|
|
146
146
|
"typescript-eslint": "^8.23.0",
|
|
147
|
-
"vite": "^6.0
|
|
147
|
+
"vite": "^6.1.0"
|
|
148
148
|
},
|
|
149
149
|
"packageManager": "yarn@4.6.0"
|
|
150
150
|
}
|