@cryptofi/core-ui 1.2.4 → 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 +15 -9
- package/package.json +12 -12
package/dist/types/index.d.ts
CHANGED
|
@@ -380,14 +380,14 @@ interface CfCheckboxProps extends CheckboxProps {
|
|
|
380
380
|
}
|
|
381
381
|
declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
382
382
|
|
|
383
|
-
interface Props$
|
|
383
|
+
interface Props$5 extends FlexProps {
|
|
384
384
|
onSubmit?: (event: FormEvent) => void;
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
387
|
*
|
|
388
388
|
* @description A form component with flex layout, for use with or without React Hook Form.
|
|
389
389
|
*/
|
|
390
|
-
declare const CfForm: ({ children, onSubmit, ...rest }: Props$
|
|
390
|
+
declare const CfForm: ({ children, onSubmit, ...rest }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
391
391
|
//# sourceMappingURL=Form.d.ts.map
|
|
392
392
|
|
|
393
393
|
type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
|
|
@@ -407,7 +407,7 @@ interface CfInputProps extends InputProps {
|
|
|
407
407
|
declare const CfInput: React.FC<CfInputProps>;
|
|
408
408
|
//# sourceMappingURL=Input.d.ts.map
|
|
409
409
|
|
|
410
|
-
interface Props$
|
|
410
|
+
interface Props$4<T extends FieldValues> {
|
|
411
411
|
name: string;
|
|
412
412
|
control: Control;
|
|
413
413
|
register: UseFormRegister<T>;
|
|
@@ -415,7 +415,7 @@ interface Props$3<T extends FieldValues> {
|
|
|
415
415
|
onArrayAppend?: (appendValues: FieldValues) => void;
|
|
416
416
|
onArrayRemove?: (remove: number) => void;
|
|
417
417
|
}
|
|
418
|
-
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;
|
|
419
419
|
//# sourceMappingURL=InputArray.d.ts.map
|
|
420
420
|
|
|
421
421
|
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, labelFormatter, sampleRate, style, }: {
|
|
@@ -433,7 +433,7 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
|
|
|
433
433
|
}) => react_jsx_runtime.JSX.Element;
|
|
434
434
|
//# sourceMappingURL=LineChart.d.ts.map
|
|
435
435
|
|
|
436
|
-
interface Props$
|
|
436
|
+
interface Props$3 extends ModalProps {
|
|
437
437
|
headerContent?: ReactNode;
|
|
438
438
|
footerContent?: ReactNode;
|
|
439
439
|
bodyMinHeight?: string | number;
|
|
@@ -443,7 +443,7 @@ interface Props$2 extends ModalProps {
|
|
|
443
443
|
bodyProps?: ModalBodyProps;
|
|
444
444
|
contentProps?: ModalContentProps;
|
|
445
445
|
}
|
|
446
|
-
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;
|
|
447
447
|
//# sourceMappingURL=Modal.d.ts.map
|
|
448
448
|
|
|
449
449
|
interface CfNavLinkProps extends LinkProps {
|
|
@@ -454,14 +454,14 @@ declare const CfNavLink: (props: CfNavLinkProps) => react_jsx_runtime.JSX.Elemen
|
|
|
454
454
|
interface PageClickEvent {
|
|
455
455
|
selected: number;
|
|
456
456
|
}
|
|
457
|
-
interface Props$
|
|
457
|
+
interface Props$2 extends FlexProps {
|
|
458
458
|
handlePageClick: (event: PageClickEvent) => void;
|
|
459
459
|
totalRecords?: number;
|
|
460
460
|
recordsPerPage?: number;
|
|
461
461
|
pageRangeDisplayed?: number;
|
|
462
462
|
forcePage?: number;
|
|
463
463
|
}
|
|
464
|
-
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;
|
|
465
465
|
|
|
466
466
|
interface LastEvaluatedKeyParams {
|
|
467
467
|
lastEvaluatedPKey?: string;
|
|
@@ -479,6 +479,12 @@ interface CfPaginationProps extends FlexProps {
|
|
|
479
479
|
}
|
|
480
480
|
declare const CfPagination: ({ isLoading, hasMore, setLastEvaluatedKeyParams, lastEvaluatedKey, ...rest }: CfPaginationProps) => react_jsx_runtime.JSX.Element;
|
|
481
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
|
+
|
|
482
488
|
interface CfSelectProps extends SelectProps {
|
|
483
489
|
register?: UseFormRegister<FieldValues> | any;
|
|
484
490
|
errorMessage?: string;
|
|
@@ -531,4 +537,4 @@ declare const dateFormats: {
|
|
|
531
537
|
shortDateWithYear: string;
|
|
532
538
|
};
|
|
533
539
|
|
|
534
|
-
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
|
}
|