@cryptofi/core-ui 0.32.0 → 0.34.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 +11 -11
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +16 -7
- package/package.json +9 -9
package/dist/types/index.d.ts
CHANGED
|
@@ -229,13 +229,13 @@ declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
|
|
|
229
229
|
* @param precision - The number of decimals to display
|
|
230
230
|
* @param signDisplay - Whether to display a plus sign for positive amounts
|
|
231
231
|
*/
|
|
232
|
-
declare const
|
|
232
|
+
declare const formatUsd: ({ amount, autoPrecision, precision, signDisplay, }: {
|
|
233
233
|
autoPrecision?: boolean | undefined;
|
|
234
234
|
amount: number | string;
|
|
235
235
|
precision?: number | undefined;
|
|
236
236
|
signDisplay?: boolean | undefined;
|
|
237
237
|
}) => string | number;
|
|
238
|
-
//# sourceMappingURL=
|
|
238
|
+
//# sourceMappingURL=formatUsd.d.ts.map
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
*
|
|
@@ -282,7 +282,16 @@ declare const uiColors: {
|
|
|
282
282
|
};
|
|
283
283
|
//# sourceMappingURL=uiColors.d.ts.map
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @description Converts a USD formatted string to a number.
|
|
288
|
+
*/
|
|
289
|
+
declare const usdToNumber: ({ usd, precision, autoPrecision, }: {
|
|
290
|
+
usd: string;
|
|
291
|
+
precision?: number | undefined;
|
|
292
|
+
autoPrecision?: boolean | undefined;
|
|
293
|
+
}) => number;
|
|
294
|
+
//# sourceMappingURL=usdToNumber.d.ts.map
|
|
286
295
|
|
|
287
296
|
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, style, }: {
|
|
288
297
|
data: any[] | undefined;
|
|
@@ -336,16 +345,16 @@ declare const CfForm: ({ children, onSubmit, ...rest }: Props$2) => react_jsx_ru
|
|
|
336
345
|
|
|
337
346
|
type InputProps = Omit<CurrencyInputProps, 'size'> & InputProps$1;
|
|
338
347
|
interface CfInputProps<T extends FieldValues> extends InputProps {
|
|
348
|
+
name: string;
|
|
349
|
+
label?: string;
|
|
339
350
|
register?: UseFormRegister<T>;
|
|
340
351
|
errorMessage?: string;
|
|
341
352
|
helperText?: string;
|
|
342
|
-
label?: string;
|
|
343
353
|
leftAddon?: React.ReactElement;
|
|
344
354
|
leftElement?: React.ReactElement;
|
|
345
355
|
rightElement?: React.ReactElement;
|
|
346
356
|
rightAddon?: React.ReactElement;
|
|
347
|
-
|
|
348
|
-
isCurrency?: boolean;
|
|
357
|
+
type?: React.HTMLInputTypeAttribute | 'currency';
|
|
349
358
|
}
|
|
350
359
|
declare const CfInput: <T extends FieldValues>(props: CfInputProps<T>) => react_jsx_runtime.JSX.Element;
|
|
351
360
|
|
|
@@ -438,4 +447,4 @@ declare const useBreakpoint: () => {
|
|
|
438
447
|
type SVGIcon = ChakraComponent<'svg', object>;
|
|
439
448
|
declare const layoutMinWidth = "22rem";
|
|
440
449
|
|
|
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,
|
|
450
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptofi/core-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "CryptoFi"
|
|
6
6
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"currency.js": "^2.0.4",
|
|
51
51
|
"dayjs": "^1.11.10",
|
|
52
52
|
"decimal.js": "^10.4.3",
|
|
53
|
-
"react-currency-input-field": "^3.
|
|
53
|
+
"react-currency-input-field": "^3.8.0",
|
|
54
54
|
"react-hook-form": "^7.49.3",
|
|
55
55
|
"recharts": "^2.12.0",
|
|
56
56
|
"yup": "^1.3.3"
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"@svgr/plugin-prettier": "^8.1.0",
|
|
83
83
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
84
84
|
"@testing-library/jest-dom": "^6.4.2",
|
|
85
|
-
"@testing-library/react": "^
|
|
85
|
+
"@testing-library/react": "^14.2.1",
|
|
86
86
|
"@types/jest": "^29.2.6",
|
|
87
87
|
"@types/prop-types": "^15",
|
|
88
|
-
"@types/react": "^18.2.
|
|
88
|
+
"@types/react": "^18.2.58",
|
|
89
89
|
"@types/react-dom": "^18.2.19",
|
|
90
90
|
"@types/rollup-plugin-peer-deps-external": "^2",
|
|
91
91
|
"@types/stringify-object": "^4.0.4",
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
"core-js": "^3.36.0",
|
|
96
96
|
"cross-var": "^1.1.0",
|
|
97
97
|
"dotenv-cli": "^7.3.0",
|
|
98
|
-
"eslint": "^8.
|
|
98
|
+
"eslint": "^8.57.0",
|
|
99
99
|
"eslint-config-airbnb": "^19.0.4",
|
|
100
100
|
"eslint-config-prettier": "^9.1.0",
|
|
101
101
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
102
102
|
"eslint-plugin-import": "^2.29.0",
|
|
103
103
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
104
|
-
"eslint-plugin-prettier": "5.
|
|
104
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
105
105
|
"eslint-plugin-react": "^7.28.0",
|
|
106
106
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
107
|
-
"eslint-plugin-simple-import-sort": "^
|
|
108
|
-
"eslint-plugin-storybook": "^0.
|
|
107
|
+
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
108
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
109
109
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
110
110
|
"framer-motion": "^10.16.4",
|
|
111
111
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"stringify-object": "^5.0.0",
|
|
126
126
|
"ts-jest": "^29.0.5",
|
|
127
127
|
"typescript": "^5.3.3",
|
|
128
|
-
"vite": "^
|
|
128
|
+
"vite": "^5.1.4"
|
|
129
129
|
},
|
|
130
130
|
"packageManager": "yarn@4.1.0"
|
|
131
131
|
}
|