@cryptofi/core-ui 1.2.3 → 1.3.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 -3
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +19 -10
- package/package.json +12 -12
package/dist/types/index.d.ts
CHANGED
|
@@ -348,7 +348,10 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
|
|
|
348
348
|
*
|
|
349
349
|
* @description Use this component to visualize Chakra's breakpoints for debugging responsive styles.
|
|
350
350
|
*/
|
|
351
|
-
declare const CfBreakpointDebugger: (
|
|
351
|
+
declare const CfBreakpointDebugger: ({ isCloseable, onClick }: {
|
|
352
|
+
isCloseable?: boolean;
|
|
353
|
+
onClick?: () => void;
|
|
354
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
352
355
|
//# sourceMappingURL=BreakpointDebugger.d.ts.map
|
|
353
356
|
|
|
354
357
|
declare const CfButtonGroup: ({ children, ...rest }: ButtonGroupProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -377,14 +380,14 @@ interface CfCheckboxProps extends CheckboxProps {
|
|
|
377
380
|
}
|
|
378
381
|
declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
379
382
|
|
|
380
|
-
interface Props$
|
|
383
|
+
interface Props$5 extends FlexProps {
|
|
381
384
|
onSubmit?: (event: FormEvent) => void;
|
|
382
385
|
}
|
|
383
386
|
/**
|
|
384
387
|
*
|
|
385
388
|
* @description A form component with flex layout, for use with or without React Hook Form.
|
|
386
389
|
*/
|
|
387
|
-
declare const CfForm: ({ children, onSubmit, ...rest }: Props$
|
|
390
|
+
declare const CfForm: ({ children, onSubmit, ...rest }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
388
391
|
//# sourceMappingURL=Form.d.ts.map
|
|
389
392
|
|
|
390
393
|
type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
|
|
@@ -404,7 +407,7 @@ interface CfInputProps extends InputProps {
|
|
|
404
407
|
declare const CfInput: React.FC<CfInputProps>;
|
|
405
408
|
//# sourceMappingURL=Input.d.ts.map
|
|
406
409
|
|
|
407
|
-
interface Props$
|
|
410
|
+
interface Props$4<T extends FieldValues> {
|
|
408
411
|
name: string;
|
|
409
412
|
control: Control;
|
|
410
413
|
register: UseFormRegister<T>;
|
|
@@ -412,7 +415,7 @@ interface Props$3<T extends FieldValues> {
|
|
|
412
415
|
onArrayAppend?: (appendValues: FieldValues) => void;
|
|
413
416
|
onArrayRemove?: (remove: number) => void;
|
|
414
417
|
}
|
|
415
|
-
declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$
|
|
418
|
+
declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$4<T>) => react_jsx_runtime.JSX.Element;
|
|
416
419
|
//# sourceMappingURL=InputArray.d.ts.map
|
|
417
420
|
|
|
418
421
|
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
|
|
@@ -430,7 +433,7 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
|
|
|
430
433
|
}) => react_jsx_runtime.JSX.Element;
|
|
431
434
|
//# sourceMappingURL=LineChart.d.ts.map
|
|
432
435
|
|
|
433
|
-
interface Props$
|
|
436
|
+
interface Props$3 extends ModalProps {
|
|
434
437
|
headerContent?: ReactNode;
|
|
435
438
|
footerContent?: ReactNode;
|
|
436
439
|
bodyMinHeight?: string | number;
|
|
@@ -440,7 +443,7 @@ interface Props$2 extends ModalProps {
|
|
|
440
443
|
bodyProps?: ModalBodyProps;
|
|
441
444
|
contentProps?: ModalContentProps;
|
|
442
445
|
}
|
|
443
|
-
declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, isDisabledCloseButton, bodyProps, contentProps, ...rest }: Props$
|
|
446
|
+
declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, isDisabledCloseButton, bodyProps, contentProps, ...rest }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
444
447
|
//# sourceMappingURL=Modal.d.ts.map
|
|
445
448
|
|
|
446
449
|
interface CfNavLinkProps extends LinkProps {
|
|
@@ -451,14 +454,14 @@ declare const CfNavLink: (props: CfNavLinkProps) => react_jsx_runtime.JSX.Elemen
|
|
|
451
454
|
interface PageClickEvent {
|
|
452
455
|
selected: number;
|
|
453
456
|
}
|
|
454
|
-
interface Props$
|
|
457
|
+
interface Props$2 extends FlexProps {
|
|
455
458
|
handlePageClick: (event: PageClickEvent) => void;
|
|
456
459
|
totalRecords?: number;
|
|
457
460
|
recordsPerPage?: number;
|
|
458
461
|
pageRangeDisplayed?: number;
|
|
459
462
|
forcePage?: number;
|
|
460
463
|
}
|
|
461
|
-
declare const CfOpenSearchPagination: ({ totalRecords, recordsPerPage, pageRangeDisplayed, handlePageClick, forcePage, ...rest }: Props$
|
|
464
|
+
declare const CfOpenSearchPagination: ({ totalRecords, recordsPerPage, pageRangeDisplayed, handlePageClick, forcePage, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
462
465
|
|
|
463
466
|
interface LastEvaluatedKeyParams {
|
|
464
467
|
lastEvaluatedPKey?: string;
|
|
@@ -476,6 +479,12 @@ interface CfPaginationProps extends FlexProps {
|
|
|
476
479
|
}
|
|
477
480
|
declare const CfPagination: ({ isLoading, hasMore, setLastEvaluatedKeyParams, lastEvaluatedKey, ...rest }: CfPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
478
481
|
|
|
482
|
+
interface Props$1 extends FlexProps {
|
|
483
|
+
isEnabled?: boolean;
|
|
484
|
+
}
|
|
485
|
+
declare const PrettyWrap: ({ children, isEnabled, ...rest }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
486
|
+
//# sourceMappingURL=PrettyWrap.d.ts.map
|
|
487
|
+
|
|
479
488
|
interface CfSelectProps extends SelectProps {
|
|
480
489
|
register?: UseFormRegister<FieldValues> | any;
|
|
481
490
|
errorMessage?: string;
|
|
@@ -528,4 +537,4 @@ declare const dateFormats: {
|
|
|
528
537
|
shortDateWithYear: string;
|
|
529
538
|
};
|
|
530
539
|
|
|
531
|
-
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, CfLineChart, CfModal, CfNavLink, 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, SvgIconMinus as IconMinus, 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, SvgIconXrp as IconXrp, type PageClickEvent, aggregateAmounts, exportedTheme as coreTheme, dateFormats, dateToTimestamp, formatPercentage, formatPhoneNumber, formatUsd, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint, utcDateToLocal };
|
|
540
|
+
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCarousel, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, CfLineChart, CfModal, CfNavLink, CfOpenSearchPagination, CfPagination, PrettyWrap as CfPrettyWrap, 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, SvgIconMinus as IconMinus, 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, SvgIconXrp as IconXrp, 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": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@chakra-ui/storybook-addon": "^5.1.0",
|
|
74
74
|
"@emotion/react": "^11.13.3",
|
|
75
75
|
"@emotion/styled": "^11.13.0",
|
|
76
|
-
"@eslint/js": "^9.
|
|
76
|
+
"@eslint/js": "^9.10.0",
|
|
77
77
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
78
78
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
79
79
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -104,19 +104,19 @@
|
|
|
104
104
|
"@types/react-dom": "^18.2.25",
|
|
105
105
|
"@types/rollup-plugin-peer-deps-external": "^2",
|
|
106
106
|
"@types/stringify-object": "^4.0.4",
|
|
107
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
108
|
-
"@typescript-eslint/parser": "^8.
|
|
109
|
-
"chalk": "4.1.2",
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "^8.4.0",
|
|
108
|
+
"@typescript-eslint/parser": "^8.4.0",
|
|
109
|
+
"chalk": "^4.1.2",
|
|
110
110
|
"core-js": "^3.38.1",
|
|
111
111
|
"cross-var": "^1.1.0",
|
|
112
112
|
"dotenv-cli": "^7.4.1",
|
|
113
|
-
"eslint": "^9.
|
|
113
|
+
"eslint": "^9.10.0",
|
|
114
114
|
"eslint-config-prettier": "^9.1.0",
|
|
115
115
|
"eslint-plugin-check-file": "^2.8.0",
|
|
116
|
-
"eslint-plugin-import": "^2.
|
|
117
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
116
|
+
"eslint-plugin-import": "^2.30.0",
|
|
117
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
118
118
|
"eslint-plugin-prettier": "5.2.1",
|
|
119
|
-
"eslint-plugin-react": "^7.35.
|
|
119
|
+
"eslint-plugin-react": "^7.35.2",
|
|
120
120
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
121
121
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
122
122
|
"eslint-plugin-unused-imports": "^4.1.3",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"react": "^18.3.1",
|
|
131
131
|
"react-dom": "^18.2.0",
|
|
132
132
|
"rollup": "^4.21.2",
|
|
133
|
-
"rollup-plugin-delete": "^2.
|
|
133
|
+
"rollup-plugin-delete": "^2.1.0",
|
|
134
134
|
"rollup-plugin-dts": "^6.1.1",
|
|
135
135
|
"rollup-plugin-filesize": "^10.0.0",
|
|
136
136
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"stringify-object": "^5.0.0",
|
|
141
141
|
"ts-jest": "^29.2.5",
|
|
142
142
|
"typescript": "^5.5.4",
|
|
143
|
-
"typescript-eslint": "^8.
|
|
144
|
-
"vite": "^5.4.
|
|
143
|
+
"typescript-eslint": "^8.4.0",
|
|
144
|
+
"vite": "^5.4.3"
|
|
145
145
|
},
|
|
146
146
|
"packageManager": "yarn@4.2.2"
|
|
147
147
|
}
|