@cryptofi/core-ui 0.19.0 → 0.20.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 +5 -12
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +27 -50
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
import { CurveType } from 'recharts/types/shape/Curve';
|
|
5
5
|
import { CardProps, CheckboxProps, InputProps, ChakraComponent, SelectProps, TagProps, UseToastOptions } from '@chakra-ui/react';
|
|
6
|
-
import {
|
|
6
|
+
import { UseFormRegister } from 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const SvgIconAlert: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
9
9
|
//# sourceMappingURL=IconAlert.d.ts.map
|
|
@@ -158,27 +158,6 @@ declare const SvgIconUpload: _chakra_ui_system_dist_system_types.ChakraComponent
|
|
|
158
158
|
declare const SvgIconUser: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
159
159
|
//# sourceMappingURL=IconUser.d.ts.map
|
|
160
160
|
|
|
161
|
-
declare const SvgIconAvax: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
162
|
-
//# sourceMappingURL=IconAvax.d.ts.map
|
|
163
|
-
|
|
164
|
-
declare const SvgIconBch: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
165
|
-
//# sourceMappingURL=IconBch.d.ts.map
|
|
166
|
-
|
|
167
|
-
declare const SvgIconBtc: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
168
|
-
//# sourceMappingURL=IconBtc.d.ts.map
|
|
169
|
-
|
|
170
|
-
declare const SvgIconEth: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
171
|
-
//# sourceMappingURL=IconEth.d.ts.map
|
|
172
|
-
|
|
173
|
-
declare const SvgIconLink: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
174
|
-
//# sourceMappingURL=IconLink.d.ts.map
|
|
175
|
-
|
|
176
|
-
declare const SvgIconLtc: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
177
|
-
//# sourceMappingURL=IconLtc.d.ts.map
|
|
178
|
-
|
|
179
|
-
declare const SvgIconXlm: _chakra_ui_system_dist_system_types.ChakraComponent<(props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element, {}>;
|
|
180
|
-
//# sourceMappingURL=IconXlm.d.ts.map
|
|
181
|
-
|
|
182
161
|
/**
|
|
183
162
|
* This is a partial Chakra theme and should be extended by the consuming application using
|
|
184
163
|
* Chakra's extendTheme method.
|
|
@@ -199,7 +178,7 @@ declare const convertToUTCEpochTime: ({ timeString, toEndDate }: {
|
|
|
199
178
|
}) => string;
|
|
200
179
|
//# sourceMappingURL=convertToUTCEpochTime.d.ts.map
|
|
201
180
|
|
|
202
|
-
type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
181
|
+
type SignDisplay$1 = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
203
182
|
/**
|
|
204
183
|
*
|
|
205
184
|
* @param amount - A finite number
|
|
@@ -208,21 +187,20 @@ type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
|
208
187
|
*/
|
|
209
188
|
declare const formatPercentage: ({ number, signDisplay, isDecimal, }: {
|
|
210
189
|
number: number;
|
|
211
|
-
signDisplay?: SignDisplay | undefined;
|
|
190
|
+
signDisplay?: SignDisplay$1 | undefined;
|
|
212
191
|
isDecimal?: boolean | undefined;
|
|
213
192
|
}) => string;
|
|
214
193
|
//# sourceMappingURL=formatPercentage.d.ts.map
|
|
215
194
|
|
|
195
|
+
type SignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
|
|
216
196
|
/**
|
|
217
197
|
*
|
|
218
198
|
* @param amount - A finite number
|
|
219
|
-
* @param
|
|
220
|
-
* @signDisplay - Whether to display a plus sign for positive amounts
|
|
199
|
+
* @param signDisplay - Setting for minus / plus sign, defaults to auto
|
|
221
200
|
*/
|
|
222
|
-
declare const formatUSD: ({ amount,
|
|
201
|
+
declare const formatUSD: ({ amount, signDisplay }: {
|
|
223
202
|
amount: number;
|
|
224
|
-
|
|
225
|
-
signDisplay?: boolean | undefined;
|
|
203
|
+
signDisplay?: SignDisplay | undefined;
|
|
226
204
|
}) => string;
|
|
227
205
|
//# sourceMappingURL=formatUSD.d.ts.map
|
|
228
206
|
|
|
@@ -244,6 +222,12 @@ declare const getDelta: ({ data, dataKey }: {
|
|
|
244
222
|
};
|
|
245
223
|
//# sourceMappingURL=getDelta.d.ts.map
|
|
246
224
|
|
|
225
|
+
declare const getFormDataQuery: (obj: unknown) => string | undefined;
|
|
226
|
+
//# sourceMappingURL=getFormDataQuery.d.ts.map
|
|
227
|
+
|
|
228
|
+
declare const isFormDataEmpty: (obj: unknown) => boolean;
|
|
229
|
+
//# sourceMappingURL=isFormDataEmpty.d.ts.map
|
|
230
|
+
|
|
247
231
|
declare const uiColors: {
|
|
248
232
|
redRemains(alpha?: number): string;
|
|
249
233
|
heroicRed(alpha?: number): string;
|
|
@@ -257,20 +241,15 @@ declare const uiColors: {
|
|
|
257
241
|
};
|
|
258
242
|
//# sourceMappingURL=uiColors.d.ts.map
|
|
259
243
|
|
|
260
|
-
declare const CfAreaChart: ({ data, dataKey, width, height, areaType,
|
|
244
|
+
declare const CfAreaChart: ({ data, dataKey, width, height, areaType, }: {
|
|
261
245
|
data: any[] | undefined;
|
|
262
246
|
dataKey: string;
|
|
263
247
|
width?: string | undefined;
|
|
264
248
|
height?: string | undefined;
|
|
265
249
|
areaType?: CurveType | undefined;
|
|
266
|
-
showTooltip?: boolean | undefined;
|
|
267
|
-
isAnimated?: boolean | undefined;
|
|
268
250
|
}) => react_jsx_runtime.JSX.Element;
|
|
269
251
|
//# sourceMappingURL=AreaChart.d.ts.map
|
|
270
252
|
|
|
271
|
-
declare const CfBreakpointDebugger: () => react_jsx_runtime.JSX.Element;
|
|
272
|
-
//# sourceMappingURL=BreakpointDebugger.d.ts.map
|
|
273
|
-
|
|
274
253
|
declare const CfCard: ({ children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
275
254
|
//# sourceMappingURL=Card.d.ts.map
|
|
276
255
|
|
|
@@ -283,39 +262,37 @@ interface CfCheckboxProps extends CheckboxProps {
|
|
|
283
262
|
}
|
|
284
263
|
declare const CfCheckbox: (props: CfCheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
285
264
|
|
|
286
|
-
interface CfInputProps
|
|
287
|
-
register?: UseFormRegister<T>;
|
|
265
|
+
interface CfInputProps extends InputProps {
|
|
288
266
|
errorMessage?: string;
|
|
289
267
|
helperText?: string;
|
|
290
268
|
label?: string;
|
|
269
|
+
spellCheck?: boolean;
|
|
291
270
|
IconLeft?: ChakraComponent<'svg', object>;
|
|
292
271
|
IconRight?: ChakraComponent<'svg', object>;
|
|
272
|
+
name: string;
|
|
273
|
+
register: UseFormRegister<any>;
|
|
274
|
+
rules?: object;
|
|
293
275
|
}
|
|
294
|
-
declare const CfInput:
|
|
276
|
+
declare const CfInput: (props: CfInputProps) => react_jsx_runtime.JSX.Element;
|
|
295
277
|
|
|
296
|
-
declare const CfLineChart: ({ data, dataKey, width, height, lineType,
|
|
278
|
+
declare const CfLineChart: ({ data, dataKey, width, height, lineType, }: {
|
|
297
279
|
data: any[] | undefined;
|
|
298
280
|
dataKey: string;
|
|
299
281
|
width?: string | undefined;
|
|
300
282
|
height?: string | undefined;
|
|
301
283
|
lineType?: CurveType | undefined;
|
|
302
|
-
showTooltip?: boolean | undefined;
|
|
303
|
-
isAnimated?: boolean | undefined;
|
|
304
|
-
formatter?: ((value: number) => string) | undefined;
|
|
305
284
|
}) => react_jsx_runtime.JSX.Element;
|
|
306
285
|
//# sourceMappingURL=LineChart.d.ts.map
|
|
307
286
|
|
|
308
|
-
interface CfSelectProps
|
|
309
|
-
register
|
|
287
|
+
interface CfSelectProps extends SelectProps {
|
|
288
|
+
register: UseFormRegister<any>;
|
|
289
|
+
name: string;
|
|
290
|
+
rules?: object;
|
|
310
291
|
errorMessage?: string;
|
|
311
292
|
helperText?: string;
|
|
312
293
|
label?: string;
|
|
313
294
|
}
|
|
314
|
-
|
|
315
|
-
name: string;
|
|
316
|
-
value?: string;
|
|
317
|
-
}
|
|
318
|
-
declare const CfSelect: <T extends FieldValues>(props: CfSelectProps<T>) => react_jsx_runtime.JSX.Element;
|
|
295
|
+
declare const CfSelect: (props: CfSelectProps) => react_jsx_runtime.JSX.Element;
|
|
319
296
|
|
|
320
297
|
interface CfTagProps extends TagProps {
|
|
321
298
|
label: string;
|
|
@@ -330,4 +307,4 @@ interface CfToastProps extends UseToastOptions {
|
|
|
330
307
|
}
|
|
331
308
|
declare const CfToast: (props: CfToastProps) => react_jsx_runtime.JSX.Element;
|
|
332
309
|
|
|
333
|
-
export { CfAreaChart,
|
|
310
|
+
export { CfAreaChart, CfCard, CfCheckbox, type CfCheckboxProps, CfInput, type CfInputProps, CfLineChart, CfSelect, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, 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, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, 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, convertToUTCEpochTime, exportedTheme as coreTheme, formatPercentage, formatUSD, getDelta, getFormDataQuery, isFormDataEmpty, uiColors };
|