@cryptofi/core-ui 0.40.0 → 0.42.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 +36 -10
- package/package.json +17 -16
package/dist/types/index.d.ts
CHANGED
|
@@ -302,6 +302,18 @@ declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
|
|
|
302
302
|
}) => number;
|
|
303
303
|
//# sourceMappingURL=usdToNumber.d.ts.map
|
|
304
304
|
|
|
305
|
+
/**
|
|
306
|
+
* Converts a UTC date string to local time format.
|
|
307
|
+
* @param timeString: The UTC date string to be converted. If undefined, the current UTC time will be used.
|
|
308
|
+
* @param dateFormat: The format string for the output. Defaults to 'MM/DD/YY' if undefined.
|
|
309
|
+
* @returns The formatted local date string. Returns 'Invalid Date' for unparseable dates.
|
|
310
|
+
*/
|
|
311
|
+
declare const utcDateToLocal: ({ dateFormat, timeString, }: {
|
|
312
|
+
dateFormat?: string | undefined;
|
|
313
|
+
timeString?: string | undefined;
|
|
314
|
+
}) => string;
|
|
315
|
+
//# sourceMappingURL=utcDateToLocal.d.ts.map
|
|
316
|
+
|
|
305
317
|
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
306
318
|
data: any[] | undefined;
|
|
307
319
|
dataKey: string;
|
|
@@ -349,21 +361,20 @@ interface CfCheckboxProps<T extends FieldValues> extends CheckboxProps {
|
|
|
349
361
|
}
|
|
350
362
|
declare const CfCheckbox: <T extends FieldValues>(props: CfCheckboxProps<T>) => react_jsx_runtime.JSX.Element;
|
|
351
363
|
|
|
352
|
-
interface Props$
|
|
364
|
+
interface Props$4 extends FlexProps {
|
|
353
365
|
onSubmit?: (event: React.FormEvent) => void;
|
|
354
366
|
}
|
|
355
367
|
/**
|
|
356
368
|
*
|
|
357
369
|
* @description A form component with flex layout, for use with or without React Hook Form.
|
|
358
370
|
*/
|
|
359
|
-
declare const CfForm: ({ children, onSubmit, ...rest }: Props$
|
|
371
|
+
declare const CfForm: ({ children, onSubmit, ...rest }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
360
372
|
//# sourceMappingURL=Form.d.ts.map
|
|
361
373
|
|
|
362
374
|
type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
|
|
363
|
-
interface CfInputProps
|
|
375
|
+
interface CfInputProps extends InputProps {
|
|
364
376
|
name: string;
|
|
365
377
|
label?: string;
|
|
366
|
-
register?: UseFormRegister<T>;
|
|
367
378
|
errorMessage?: string;
|
|
368
379
|
helperText?: string;
|
|
369
380
|
leftAddon?: React.ReactElement;
|
|
@@ -371,10 +382,11 @@ interface CfInputProps<T extends FieldValues> extends InputProps {
|
|
|
371
382
|
rightElement?: React.ReactElement;
|
|
372
383
|
rightAddon?: React.ReactElement;
|
|
373
384
|
type?: React.HTMLInputTypeAttribute | 'currency';
|
|
385
|
+
register?: UseFormRegister<any>;
|
|
374
386
|
}
|
|
375
|
-
declare const CfInput: <
|
|
387
|
+
declare const CfInput: _chakra_ui_react.ComponentWithAs<_chakra_ui_react.As, CfInputProps>;
|
|
376
388
|
|
|
377
|
-
type Props$
|
|
389
|
+
type Props$3<T extends FieldValues> = {
|
|
378
390
|
name: string;
|
|
379
391
|
control: Control;
|
|
380
392
|
register: UseFormRegister<T>;
|
|
@@ -382,7 +394,7 @@ type Props$2<T extends FieldValues> = {
|
|
|
382
394
|
onArrayAppend?: (appendValues: FieldValues) => void;
|
|
383
395
|
onArrayRemove?: (remove: number) => void;
|
|
384
396
|
};
|
|
385
|
-
declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$
|
|
397
|
+
declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$3<T>) => react_jsx_runtime.JSX.Element;
|
|
386
398
|
//# sourceMappingURL=InputArray.d.ts.map
|
|
387
399
|
|
|
388
400
|
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
@@ -399,16 +411,28 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
|
|
|
399
411
|
}) => react_jsx_runtime.JSX.Element;
|
|
400
412
|
//# sourceMappingURL=LineChart.d.ts.map
|
|
401
413
|
|
|
402
|
-
interface Props$
|
|
414
|
+
interface Props$2 extends ModalProps {
|
|
403
415
|
headerContent?: React.ReactNode;
|
|
404
416
|
footerContent?: React.ReactNode;
|
|
405
417
|
bodyMinHeight?: string | number;
|
|
406
418
|
bodyBackground?: string;
|
|
407
419
|
isDisabledCloseButton?: boolean;
|
|
408
420
|
}
|
|
409
|
-
declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyMinHeight, bodyBackground, isDisabledCloseButton, ...rest }: Props$
|
|
421
|
+
declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyMinHeight, bodyBackground, isDisabledCloseButton, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
410
422
|
//# sourceMappingURL=Modal.d.ts.map
|
|
411
423
|
|
|
424
|
+
interface PageClickEvent {
|
|
425
|
+
selected: number;
|
|
426
|
+
}
|
|
427
|
+
interface Props$1 extends FlexProps {
|
|
428
|
+
handlePageClick: (event: PageClickEvent) => void;
|
|
429
|
+
totalRecords?: number;
|
|
430
|
+
recordsPerPage?: number;
|
|
431
|
+
pageRangeDisplayed?: number;
|
|
432
|
+
forcePage?: number;
|
|
433
|
+
}
|
|
434
|
+
declare const CfOpenSearchPagination: ({ totalRecords, recordsPerPage, pageRangeDisplayed, handlePageClick, forcePage, ...rest }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
435
|
+
|
|
412
436
|
interface LastEvaluatedKeyParams {
|
|
413
437
|
lastEvaluatedPKey?: string;
|
|
414
438
|
lastEvaluatedSKey?: string;
|
|
@@ -470,5 +494,7 @@ declare const useBreakpoint: () => {
|
|
|
470
494
|
//# sourceMappingURL=useBreakpoint.d.ts.map
|
|
471
495
|
|
|
472
496
|
declare const layoutMinWidth = "22rem";
|
|
497
|
+
declare const dateFormatNoTime = "MM/DD/YY";
|
|
498
|
+
declare const dateFormatWithTime = "MM/DD/YYYY h:mmA";
|
|
473
499
|
|
|
474
|
-
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, 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, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
|
|
500
|
+
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.42.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -54,30 +54,31 @@
|
|
|
54
54
|
"dayjs": "^1.11.10",
|
|
55
55
|
"react-currency-input-field": "^3.8.0",
|
|
56
56
|
"react-hook-form": "^7.51.0",
|
|
57
|
+
"react-paginate": "^8.2.0",
|
|
57
58
|
"recharts": "^2.12.2",
|
|
58
59
|
"yup": "^1.4.0"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@babel/core": "^7.24.0",
|
|
62
63
|
"@chakra-ui/react": "^2.4.9",
|
|
63
|
-
"@chakra-ui/storybook-addon": "^5.0
|
|
64
|
+
"@chakra-ui/storybook-addon": "^5.1.0",
|
|
64
65
|
"@emotion/react": "^11.11.4",
|
|
65
66
|
"@emotion/styled": "^11.11.0",
|
|
66
67
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
67
68
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
68
69
|
"@rollup/plugin-terser": "^0.4.4",
|
|
69
|
-
"@storybook/addon-essentials": "^8.0.
|
|
70
|
-
"@storybook/addon-interactions": "^8.0.
|
|
71
|
-
"@storybook/addon-links": "^8.0.
|
|
72
|
-
"@storybook/addon-onboarding": "^8.0.
|
|
73
|
-
"@storybook/blocks": "^8.0.
|
|
74
|
-
"@storybook/components": "^8.0.
|
|
75
|
-
"@storybook/manager-api": "^8.0.
|
|
76
|
-
"@storybook/preview-api": "^8.0.
|
|
77
|
-
"@storybook/react": "^8.0.
|
|
78
|
-
"@storybook/react-vite": "^8.0.
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@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",
|
|
81
82
|
"@svgr/cli": "^8.1.0",
|
|
82
83
|
"@svgr/core": "^8.1.0",
|
|
83
84
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
@@ -124,11 +125,11 @@
|
|
|
124
125
|
"rollup-plugin-filesize": "^10.0.0",
|
|
125
126
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
126
127
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
127
|
-
"storybook": "^8.0.
|
|
128
|
+
"storybook": "^8.0.4",
|
|
128
129
|
"stringify-object": "^5.0.0",
|
|
129
130
|
"ts-jest": "^29.0.5",
|
|
130
131
|
"typescript": "^5.4.2",
|
|
131
|
-
"vite": "^5.
|
|
132
|
+
"vite": "^5.2.6"
|
|
132
133
|
},
|
|
133
134
|
"packageManager": "yarn@4.1.0"
|
|
134
135
|
}
|