@cryptofi/core-ui 0.41.0 → 0.43.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 +10 -6
- package/package.json +16 -16
package/dist/types/index.d.ts
CHANGED
|
@@ -314,7 +314,7 @@ declare const utcDateToLocal: ({ dateFormat, timeString, }: {
|
|
|
314
314
|
}) => string;
|
|
315
315
|
//# sourceMappingURL=utcDateToLocal.d.ts.map
|
|
316
316
|
|
|
317
|
-
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
317
|
+
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
|
|
318
318
|
data: any[] | undefined;
|
|
319
319
|
dataKey: string;
|
|
320
320
|
width?: string | undefined;
|
|
@@ -323,6 +323,7 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
|
|
|
323
323
|
showTooltip?: boolean | undefined;
|
|
324
324
|
isAnimated?: boolean | undefined;
|
|
325
325
|
formatter?: ((value: number) => string) | undefined;
|
|
326
|
+
labelFormatter?: ((index: number, chartValue: any[]) => string | undefined) | undefined;
|
|
326
327
|
sampleRate?: number | undefined;
|
|
327
328
|
style?: react.CSSProperties | undefined;
|
|
328
329
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -372,10 +373,9 @@ declare const CfForm: ({ children, onSubmit, ...rest }: Props$4) => react_jsx_ru
|
|
|
372
373
|
//# sourceMappingURL=Form.d.ts.map
|
|
373
374
|
|
|
374
375
|
type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
|
|
375
|
-
interface CfInputProps
|
|
376
|
+
interface CfInputProps extends InputProps {
|
|
376
377
|
name: string;
|
|
377
378
|
label?: string;
|
|
378
|
-
register?: UseFormRegister<T>;
|
|
379
379
|
errorMessage?: string;
|
|
380
380
|
helperText?: string;
|
|
381
381
|
leftAddon?: React.ReactElement;
|
|
@@ -383,8 +383,9 @@ interface CfInputProps<T extends FieldValues> extends InputProps {
|
|
|
383
383
|
rightElement?: React.ReactElement;
|
|
384
384
|
rightAddon?: React.ReactElement;
|
|
385
385
|
type?: React.HTMLInputTypeAttribute | 'currency';
|
|
386
|
+
register?: UseFormRegister<any>;
|
|
386
387
|
}
|
|
387
|
-
declare const CfInput: <
|
|
388
|
+
declare const CfInput: _chakra_ui_react.ComponentWithAs<_chakra_ui_react.As, CfInputProps>;
|
|
388
389
|
|
|
389
390
|
type Props$3<T extends FieldValues> = {
|
|
390
391
|
name: string;
|
|
@@ -397,7 +398,7 @@ type Props$3<T extends FieldValues> = {
|
|
|
397
398
|
declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$3<T>) => react_jsx_runtime.JSX.Element;
|
|
398
399
|
//# sourceMappingURL=InputArray.d.ts.map
|
|
399
400
|
|
|
400
|
-
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
401
|
+
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
|
|
401
402
|
data: any[] | undefined;
|
|
402
403
|
dataKey: string;
|
|
403
404
|
width?: string | undefined;
|
|
@@ -406,6 +407,7 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
|
|
|
406
407
|
showTooltip?: boolean | undefined;
|
|
407
408
|
isAnimated?: boolean | undefined;
|
|
408
409
|
formatter?: ((value: number) => string) | undefined;
|
|
410
|
+
labelFormatter?: ((index: number, chartValue: any[]) => string | undefined) | undefined;
|
|
409
411
|
sampleRate?: number | undefined;
|
|
410
412
|
style?: react.CSSProperties | undefined;
|
|
411
413
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -494,5 +496,7 @@ declare const useBreakpoint: () => {
|
|
|
494
496
|
//# sourceMappingURL=useBreakpoint.d.ts.map
|
|
495
497
|
|
|
496
498
|
declare const layoutMinWidth = "22rem";
|
|
499
|
+
declare const dateFormatNoTime = "MM/DD/YY";
|
|
500
|
+
declare const dateFormatWithTime = "MM/DD/YYYY h:mmA";
|
|
497
501
|
|
|
498
|
-
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, dateToTimestamp, formatPercentage, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
|
|
502
|
+
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, dateFormatNoTime, dateFormatWithTime, dateToTimestamp, formatPercentage, 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.43.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -61,24 +61,24 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/core": "^7.24.0",
|
|
63
63
|
"@chakra-ui/react": "^2.4.9",
|
|
64
|
-
"@chakra-ui/storybook-addon": "^5.0
|
|
64
|
+
"@chakra-ui/storybook-addon": "^5.1.0",
|
|
65
65
|
"@emotion/react": "^11.11.4",
|
|
66
66
|
"@emotion/styled": "^11.11.0",
|
|
67
67
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
68
68
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
69
69
|
"@rollup/plugin-terser": "^0.4.4",
|
|
70
|
-
"@storybook/addon-essentials": "^8.0.
|
|
71
|
-
"@storybook/addon-interactions": "^8.0.
|
|
72
|
-
"@storybook/addon-links": "^8.0.
|
|
73
|
-
"@storybook/addon-onboarding": "^8.0.
|
|
74
|
-
"@storybook/blocks": "^8.0.
|
|
75
|
-
"@storybook/components": "^8.0.
|
|
76
|
-
"@storybook/manager-api": "^8.0.
|
|
77
|
-
"@storybook/preview-api": "^8.0.
|
|
78
|
-
"@storybook/react": "^8.0.
|
|
79
|
-
"@storybook/react-vite": "^8.0.
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/types": "^8.0.
|
|
70
|
+
"@storybook/addon-essentials": "^8.0.4",
|
|
71
|
+
"@storybook/addon-interactions": "^8.0.4",
|
|
72
|
+
"@storybook/addon-links": "^8.0.4",
|
|
73
|
+
"@storybook/addon-onboarding": "^8.0.4",
|
|
74
|
+
"@storybook/blocks": "^8.0.4",
|
|
75
|
+
"@storybook/components": "^8.0.4",
|
|
76
|
+
"@storybook/manager-api": "^8.0.4",
|
|
77
|
+
"@storybook/preview-api": "^8.0.4",
|
|
78
|
+
"@storybook/react": "^8.0.4",
|
|
79
|
+
"@storybook/react-vite": "^8.0.4",
|
|
80
|
+
"@storybook/test": "^8.0.4",
|
|
81
|
+
"@storybook/types": "^8.0.4",
|
|
82
82
|
"@svgr/cli": "^8.1.0",
|
|
83
83
|
"@svgr/core": "^8.1.0",
|
|
84
84
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
"rollup-plugin-filesize": "^10.0.0",
|
|
126
126
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
127
127
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
128
|
-
"storybook": "^8.0.
|
|
128
|
+
"storybook": "^8.0.4",
|
|
129
129
|
"stringify-object": "^5.0.0",
|
|
130
130
|
"ts-jest": "^29.0.5",
|
|
131
131
|
"typescript": "^5.4.2",
|
|
132
|
-
"vite": "^5.
|
|
132
|
+
"vite": "^5.2.6"
|
|
133
133
|
},
|
|
134
134
|
"packageManager": "yarn@4.1.0"
|
|
135
135
|
}
|