gt-react 9.2.29-alpha.8 → 9.2.29

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.
@@ -11,13 +11,13 @@ import React from 'react';
11
11
  * </DateTime>
12
12
  * ```
13
13
  *
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.
14
+ * @param {any} [children] - Optional content (typically a date) to render inside the component.
15
+ * @param {string[]} [locales] - Optional locales to use for date formatting. If not provided, the library default locale (en-US) is used. 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, options, }: {
20
- children: Date;
19
+ declare function DateTime({ children, locales, name, options, }: {
20
+ children?: any;
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;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"}
1
+ {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../src/variables/DateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,OAAY,GACb,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,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,CAoCpB;kBA9CQ,QAAQ;;;AAmDjB,eAAe,QAAQ,CAAC"}
@@ -13,13 +13,12 @@ import React from 'react';
13
13
  * </Num>
14
14
  * ```
15
15
  *
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.
16
+ * @param {any} [children] - Optional content (typically a number) to render inside the component.
18
17
  * @param {Intl.NumberFormatOptions} [options={}] - Optional formatting options for the number, following `Intl.NumberFormatOptions` specifications.
19
18
  * @returns {JSX.Element} The formatted number component.
20
19
  */
21
- declare function Num({ children, locales, options, }: {
22
- children: number | string;
20
+ declare function Num({ children, name, locales, options, }: {
21
+ children?: any;
23
22
  locales?: string[];
24
23
  options?: Intl.NumberFormatOptions;
25
24
  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;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"}
1
+ {"version":3,"file":"Num.d.ts","sourceRoot":"","sources":["../../src/variables/Num.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C;;;;;;;;;;;;;;;;;GAiBG;AACH,iBAAS,GAAG,CAAC,EACX,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,OAAY,GACb,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,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,CAkBpB;kBA5BQ,GAAG;;;AAgCZ,eAAe,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "9.2.29-alpha.8",
3
+ "version": "9.2.29",
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.11-alpha.8",
18
- "generaltranslation": "^7.0.0-alpha.8"
17
+ "@generaltranslation/supported-locales": "^2.0.10",
18
+ "generaltranslation": "^6.3.2"
19
19
  },
20
20
  "scripts": {
21
21
  "patch": "npm version patch",