@odynn/awayz-core 0.5.0 → 0.5.1
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.
|
@@ -29,6 +29,10 @@ export interface ICashValueProps {
|
|
|
29
29
|
* This is used when zeroDisplayOption is set to EInvalidAmountDisplayOption.CUSTOM.
|
|
30
30
|
*/
|
|
31
31
|
customDisplay?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Number of decimal places to display. Defaults to 0.
|
|
34
|
+
*/
|
|
35
|
+
decimalPlaces?: number;
|
|
32
36
|
}
|
|
33
37
|
export declare const CurrencyCallStaleTimeMs: number;
|
|
34
38
|
/**
|
|
@@ -38,4 +42,4 @@ export declare const CurrencyCallStaleTimeMs: number;
|
|
|
38
42
|
* If the original currency differs from the user's currency, it shows a conversion
|
|
39
43
|
* tooltip with details about the conversion rate and original amount.
|
|
40
44
|
*/
|
|
41
|
-
export declare const CashValue: ({ amount, currency, position, zeroDisplayOption, customDisplay }: ICashValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const CashValue: ({ amount, currency, position, zeroDisplayOption, customDisplay, decimalPlaces }: ICashValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { EInvalidAmountDisplayOption, EToolTipPosition } from './CashValueTypes';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ amount, currency, position, zeroDisplayOption, customDisplay }: import('./CashValue').ICashValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ amount, currency, position, zeroDisplayOption, customDisplay, decimalPlaces }: import('./CashValue').ICashValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|