@zag-js/i18n-utils 0.74.2 → 0.75.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.d.mts CHANGED
@@ -4,13 +4,13 @@ interface FilterReturn {
4
4
  contains(string: string, substring: string): boolean;
5
5
  }
6
6
  interface FilterOptions extends Intl.CollatorOptions {
7
- locale?: string;
7
+ locale?: string | undefined;
8
8
  }
9
9
  declare function filter(options?: FilterOptions): FilterReturn;
10
10
 
11
11
  interface FormatBytesOptions {
12
- unit?: "bit" | "byte";
13
- unitDisplay?: "long" | "short" | "narrow";
12
+ unit?: "bit" | "byte" | undefined;
13
+ unitDisplay?: "long" | "short" | "narrow" | undefined;
14
14
  }
15
15
  declare const formatBytes: (bytes: number, locale?: string, options?: FormatBytesOptions) => string;
16
16
 
@@ -42,9 +42,9 @@ declare global {
42
42
  declare function getDefaultLocale(): Locale;
43
43
 
44
44
  interface LocaleOptions {
45
- locale?: string;
46
- getRootNode?: () => ShadowRoot | Document | Node;
47
- onLocaleChange?: (locale: Locale) => void;
45
+ locale?: string | undefined;
46
+ getRootNode?: (() => ShadowRoot | Document | Node) | undefined;
47
+ onLocaleChange?: ((locale: Locale) => void) | undefined;
48
48
  }
49
49
  declare function trackLocale(options?: LocaleOptions): () => void;
50
50
 
package/dist/index.d.ts CHANGED
@@ -4,13 +4,13 @@ interface FilterReturn {
4
4
  contains(string: string, substring: string): boolean;
5
5
  }
6
6
  interface FilterOptions extends Intl.CollatorOptions {
7
- locale?: string;
7
+ locale?: string | undefined;
8
8
  }
9
9
  declare function filter(options?: FilterOptions): FilterReturn;
10
10
 
11
11
  interface FormatBytesOptions {
12
- unit?: "bit" | "byte";
13
- unitDisplay?: "long" | "short" | "narrow";
12
+ unit?: "bit" | "byte" | undefined;
13
+ unitDisplay?: "long" | "short" | "narrow" | undefined;
14
14
  }
15
15
  declare const formatBytes: (bytes: number, locale?: string, options?: FormatBytesOptions) => string;
16
16
 
@@ -42,9 +42,9 @@ declare global {
42
42
  declare function getDefaultLocale(): Locale;
43
43
 
44
44
  interface LocaleOptions {
45
- locale?: string;
46
- getRootNode?: () => ShadowRoot | Document | Node;
47
- onLocaleChange?: (locale: Locale) => void;
45
+ locale?: string | undefined;
46
+ getRootNode?: (() => ShadowRoot | Document | Node) | undefined;
47
+ onLocaleChange?: ((locale: Locale) => void) | undefined;
48
48
  }
49
49
  declare function trackLocale(options?: LocaleOptions): () => void;
50
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/i18n-utils",
3
- "version": "0.74.2",
3
+ "version": "0.75.0",
4
4
  "description": "Interationalization utilities for Zag.js",
5
5
  "keywords": [
6
6
  "js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "clean-package": "../../../clean-package.config.json",
26
26
  "dependencies": {
27
- "@zag-js/dom-query": "0.74.2"
27
+ "@zag-js/dom-query": "0.75.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "clean-package": "2.2.0",