numora 3.1.0 → 3.2.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/types.d.ts CHANGED
@@ -6,7 +6,8 @@ export declare enum ThousandStyle {
6
6
  None = "none",
7
7
  Thousand = "thousand",
8
8
  Lakh = "lakh",
9
- Wan = "wan"
9
+ Wan = "wan",
10
+ Locale = "locale"
10
11
  }
11
12
  export interface FormattingOptions {
12
13
  formatOn?: FormatOn;
@@ -0,0 +1,14 @@
1
+ import { ThousandStyle } from '../types';
2
+ export declare function getSeparatorsFromLocale(locale?: string): {
3
+ thousandSeparator: string;
4
+ decimalSeparator: string;
5
+ };
6
+ export declare function resolveLocaleOptions(options: {
7
+ thousandSeparator?: string;
8
+ thousandStyle?: ThousandStyle;
9
+ decimalSeparator?: string;
10
+ }): {
11
+ thousandSeparator: string;
12
+ thousandStyle: ThousandStyle;
13
+ decimalSeparator: string;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "numora",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Framework-agnostic numeric input library for DeFi and financial apps",
5
5
  "homepage": "https://numora.xyz/",
6
6
  "main": "dist/index.js",