@mindly/ui-components 7.0.6 → 7.0.7
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.
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { SupportedCurrency, SupportedLocales } from '../types';
|
|
2
2
|
type PriceNormilizeProps = {
|
|
3
3
|
price: number;
|
|
4
|
-
locale
|
|
5
|
-
currency?: SupportedCurrency;
|
|
4
|
+
locale?: SupportedLocales;
|
|
6
5
|
side?: 'left' | 'right';
|
|
7
6
|
mode?: 'sign' | 'transcription' | 'sign_and_transcription';
|
|
8
7
|
roundingTo?: number;
|
|
9
8
|
extendedUsd?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
12
|
+
currency?: SupportedCurrency;
|
|
10
13
|
};
|
|
11
14
|
export declare const priceNormalize: ({ price, locale, currency, side, mode, roundingTo, extendedUsd, }: PriceNormilizeProps) => string;
|
|
12
15
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2378,12 +2378,15 @@ declare const mergeRefs: <T extends unknown>(...refs: AnyRef[]) => React__defaul
|
|
|
2378
2378
|
|
|
2379
2379
|
type PriceNormilizeProps = {
|
|
2380
2380
|
price: number;
|
|
2381
|
-
locale
|
|
2382
|
-
currency?: SupportedCurrency;
|
|
2381
|
+
locale?: SupportedLocales;
|
|
2383
2382
|
side?: 'left' | 'right';
|
|
2384
2383
|
mode?: 'sign' | 'transcription' | 'sign_and_transcription';
|
|
2385
2384
|
roundingTo?: number;
|
|
2386
2385
|
extendedUsd?: boolean;
|
|
2386
|
+
/**
|
|
2387
|
+
* @deprecated
|
|
2388
|
+
*/
|
|
2389
|
+
currency?: SupportedCurrency;
|
|
2387
2390
|
};
|
|
2388
2391
|
declare const priceNormalize: ({ price, locale, currency, side, mode, roundingTo, extendedUsd, }: PriceNormilizeProps) => string;
|
|
2389
2392
|
|