gt-react 9.2.27 → 9.2.29-alpha.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/CHANGELOG.md +6 -0
- package/dist/branches/plurals/Plural.d.ts +4 -4
- package/dist/branches/plurals/Plural.d.ts.map +1 -1
- package/dist/client.cjs.min.cjs +3 -3
- package/dist/client.d.ts +22 -21
- package/dist/client.esm.min.mjs +3 -3
- package/dist/dictionaries/loadDictionaryHelper.d.ts.map +1 -1
- package/dist/hooks/useGTClass.d.ts +1 -1
- package/dist/hooks/useGTClass.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.esm.min.mjs +3 -3
- package/dist/provider/ClientProvider.d.ts.map +1 -1
- package/dist/provider/hooks/useCreateInternalUseGTFunction.d.ts.map +1 -1
- package/dist/provider/hooks/useCreateInternalUseTranslationsFunction.d.ts.map +1 -1
- package/dist/provider/hooks/useErrorChecks.d.ts.map +1 -1
- package/dist/provider/hooks/useRuntimeTranslation.d.ts.map +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/context.d.ts.map +1 -1
- package/dist/ui/LocaleSelector.d.ts.map +1 -1
- package/dist/variables/Currency.d.ts +6 -6
- package/dist/variables/Currency.d.ts.map +1 -1
- package/dist/variables/DateTime.d.ts +4 -4
- package/dist/variables/DateTime.d.ts.map +1 -1
- package/dist/variables/Num.d.ts +4 -3
- package/dist/variables/Num.d.ts.map +1 -1
- package/package.json +3 -3
@@ -10,14 +10,14 @@ import React from 'react';
|
|
10
10
|
* </Currency>
|
11
11
|
* ```
|
12
12
|
*
|
13
|
-
* @param {
|
14
|
-
* @param {string} [currency] - The currency type (e.g., USD, EUR, etc.).
|
15
|
-
* @param {string[]} [locales] - Optional locales to use for currency formatting. If
|
16
|
-
* @param {Intl.NumberFormatOptions} [options] - Optional formatting options to customize how the currency is displayed.
|
13
|
+
* @param {number | string} children - Content to render inside the currency component.
|
14
|
+
* @param {string} [currency="USD"] - The currency type (e.g., USD, EUR, etc.).
|
15
|
+
* @param {string[]} [locales] - Optional locales to use for currency formatting. If wrapped in a `<GTProvider>`, the user's locale is used.
|
16
|
+
* @param {Intl.NumberFormatOptions} [options={}] - Optional formatting options to customize how the currency is displayed.
|
17
17
|
* @returns {JSX.Element} The formatted currency component.
|
18
18
|
*/
|
19
|
-
declare function Currency({ children, currency,
|
20
|
-
children
|
19
|
+
declare function Currency({ children, currency, locales, options, }: {
|
20
|
+
children: number | string;
|
21
21
|
currency?: string;
|
22
22
|
name?: string;
|
23
23
|
locales?: string[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/variables/Currency.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/variables/Currency.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,OAAY,GACb,EAAE;IACD,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;CACpC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAcpB;kBAzBQ,QAAQ;;;AA8BjB,eAAe,QAAQ,CAAC"}
|
@@ -11,13 +11,13 @@ import React from 'react';
|
|
11
11
|
* </DateTime>
|
12
12
|
* ```
|
13
13
|
*
|
14
|
-
* @param {
|
15
|
-
* @param {string[]} [locales] - Optional locales to use for date formatting. If
|
14
|
+
* @param {Date} children - Content to render inside the date component.
|
15
|
+
* @param {string[]} [locales] - Optional locales to use for date formatting. If wrapped in a `<GTProvider>`, the user's locale is used.
|
16
16
|
* @param {Intl.DateTimeFormatOptions} [options={}] - Optional formatting options for the date, following `Intl.DateTimeFormatOptions` specifications.
|
17
17
|
* @returns {JSX.Element} The formatted date or time component.
|
18
18
|
*/
|
19
|
-
declare function DateTime({ children, locales,
|
20
|
-
children
|
19
|
+
declare function DateTime({ children, locales, options, }: {
|
20
|
+
children: Date;
|
21
21
|
locales?: string[];
|
22
22
|
name?: string;
|
23
23
|
options?: Intl.DateTimeFormatOptions;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../src/variables/DateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../src/variables/DateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,OAAO,EACP,OAAY,GACb,EAAE;IACD,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;CACtC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CASpB;kBAlBQ,QAAQ;;;AAuBjB,eAAe,QAAQ,CAAC"}
|
package/dist/variables/Num.d.ts
CHANGED
@@ -13,12 +13,13 @@ import React from 'react';
|
|
13
13
|
* </Num>
|
14
14
|
* ```
|
15
15
|
*
|
16
|
-
* @param {
|
16
|
+
* @param {number | string} children - Content to render inside the number component.
|
17
|
+
* @param {string[]} [locales] - Optional locales to use for number formatting. If wrapped in a `<GTProvider>`, the user's locale is used.
|
17
18
|
* @param {Intl.NumberFormatOptions} [options={}] - Optional formatting options for the number, following `Intl.NumberFormatOptions` specifications.
|
18
19
|
* @returns {JSX.Element} The formatted number component.
|
19
20
|
*/
|
20
|
-
declare function Num({ children,
|
21
|
-
children
|
21
|
+
declare function Num({ children, locales, options, }: {
|
22
|
+
children: number | string;
|
22
23
|
locales?: string[];
|
23
24
|
options?: Intl.NumberFormatOptions;
|
24
25
|
name?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Num.d.ts","sourceRoot":"","sources":["../../src/variables/Num.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Num.d.ts","sourceRoot":"","sources":["../../src/variables/Num.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,GAAG,CAAC,EACX,QAAQ,EACR,OAAO,EACP,OAAY,GACb,EAAE;IACD,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWpB;kBApBQ,GAAG;;;AAwBZ,eAAe,GAAG,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gt-react",
|
3
|
-
"version": "9.2.
|
3
|
+
"version": "9.2.29-alpha.0",
|
4
4
|
"description": "A React library for automatic internationalization.",
|
5
5
|
"main": "./dist/index.cjs.min.cjs",
|
6
6
|
"module": "./dist/index.esm.min.mjs",
|
@@ -14,8 +14,8 @@
|
|
14
14
|
"react-dom": ">=16.8.0"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@generaltranslation/supported-locales": "^2.0.
|
18
|
-
"generaltranslation": "^
|
17
|
+
"@generaltranslation/supported-locales": "^2.0.11-alpha.0",
|
18
|
+
"generaltranslation": "^7.0.0-alpha.0"
|
19
19
|
},
|
20
20
|
"scripts": {
|
21
21
|
"patch": "npm version patch",
|