@cryptofi/core-ui 0.30.0 → 0.32.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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +13 -9
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { ButtonGroupProps, ButtonProps, CardProps, CheckboxProps, FlexProps, InputProps as InputProps$1, ModalProps, SelectProps, TagProps, UseToastOptions, ChakraComponent } from '@chakra-ui/react';
|
|
3
3
|
import * as _chakra_ui_system_dist_system_types from '@chakra-ui/system/dist/system.types';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import * as react from 'react';
|
|
5
6
|
import { SVGProps, Dispatch, SetStateAction } from 'react';
|
|
6
7
|
import { CurveType } from 'recharts/types/shape/Curve';
|
|
7
8
|
import { CurrencyInputProps } from 'react-currency-input-field';
|
|
@@ -76,9 +77,6 @@ declare const SvgIconExchange: _chakra_ui_system_dist_system_types.ChakraCompone
|
|
|
76
77
|
declare const SvgIconFilter: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
77
78
|
//# sourceMappingURL=IconFilter.d.ts.map
|
|
78
79
|
|
|
79
|
-
declare const SvgIconFilterActive: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
80
|
-
//# sourceMappingURL=IconFilterActive.d.ts.map
|
|
81
|
-
|
|
82
80
|
declare const SvgIconHelp: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
83
81
|
//# sourceMappingURL=IconHelp.d.ts.map
|
|
84
82
|
|
|
@@ -227,10 +225,12 @@ declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
|
|
|
227
225
|
/**
|
|
228
226
|
*
|
|
229
227
|
* @param amount - Number or string to format
|
|
228
|
+
* @param autoPrecision - Display five decimal places for amounts between -1 and 1 (overrides precision)
|
|
230
229
|
* @param precision - The number of decimals to display
|
|
231
|
-
* @signDisplay - Whether to display a plus sign for positive amounts
|
|
230
|
+
* @param signDisplay - Whether to display a plus sign for positive amounts
|
|
232
231
|
*/
|
|
233
|
-
declare const formatUSD: ({ amount, precision, signDisplay, }: {
|
|
232
|
+
declare const formatUSD: ({ amount, autoPrecision, precision, signDisplay, }: {
|
|
233
|
+
autoPrecision?: boolean | undefined;
|
|
234
234
|
amount: number | string;
|
|
235
235
|
precision?: number | undefined;
|
|
236
236
|
signDisplay?: boolean | undefined;
|
|
@@ -284,7 +284,7 @@ declare const uiColors: {
|
|
|
284
284
|
|
|
285
285
|
declare const usdToNumber: (usd: string) => number;
|
|
286
286
|
|
|
287
|
-
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, }: {
|
|
287
|
+
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
288
288
|
data: any[] | undefined;
|
|
289
289
|
dataKey: string;
|
|
290
290
|
width?: string | undefined;
|
|
@@ -294,6 +294,7 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
|
|
|
294
294
|
isAnimated?: boolean | undefined;
|
|
295
295
|
formatter?: ((value: number) => string) | undefined;
|
|
296
296
|
sampleRate?: number | undefined;
|
|
297
|
+
style?: react.CSSProperties | undefined;
|
|
297
298
|
}) => react_jsx_runtime.JSX.Element;
|
|
298
299
|
//# sourceMappingURL=AreaChart.d.ts.map
|
|
299
300
|
|
|
@@ -359,7 +360,7 @@ type Props$1<T extends FieldValues> = {
|
|
|
359
360
|
declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$1<T>) => react_jsx_runtime.JSX.Element;
|
|
360
361
|
//# sourceMappingURL=InputArray.d.ts.map
|
|
361
362
|
|
|
362
|
-
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, }: {
|
|
363
|
+
declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
363
364
|
data: any[] | undefined;
|
|
364
365
|
dataKey: string;
|
|
365
366
|
width?: string | undefined;
|
|
@@ -369,14 +370,17 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
|
|
|
369
370
|
isAnimated?: boolean | undefined;
|
|
370
371
|
formatter?: ((value: number) => string) | undefined;
|
|
371
372
|
sampleRate?: number | undefined;
|
|
373
|
+
style?: react.CSSProperties | undefined;
|
|
372
374
|
}) => react_jsx_runtime.JSX.Element;
|
|
373
375
|
//# sourceMappingURL=LineChart.d.ts.map
|
|
374
376
|
|
|
375
377
|
interface Props extends ModalProps {
|
|
376
378
|
headerContent?: React.ReactNode;
|
|
377
379
|
footerContent?: React.ReactNode;
|
|
380
|
+
bodyMinHeight?: string | number;
|
|
381
|
+
bodyBackground?: string;
|
|
378
382
|
}
|
|
379
|
-
declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
383
|
+
declare const CfModal: ({ isOpen, onClose, headerContent, footerContent, children, isCentered, size, bodyMinHeight, bodyBackground, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
380
384
|
//# sourceMappingURL=Modal.d.ts.map
|
|
381
385
|
|
|
382
386
|
interface LastEvaluatedKeyParams {
|
|
@@ -434,4 +438,4 @@ declare const useBreakpoint: () => {
|
|
|
434
438
|
type SVGIcon = ChakraComponent<'svg', object>;
|
|
435
439
|
declare const layoutMinWidth = "22rem";
|
|
436
440
|
|
|
437
|
-
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, 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, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter,
|
|
441
|
+
export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, 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, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, 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, 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 SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUSD, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
|