@trackunit/react-date-and-time-hooks 1.6.6 → 1.6.10
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/index.cjs.js +2 -2
- package/index.esm.js +2 -2
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -423,7 +423,7 @@ const useDateAndTime = () => {
|
|
|
423
423
|
*
|
|
424
424
|
* @param {number | Intl.Duration}
|
|
425
425
|
* @param {TemporalDurationType} type
|
|
426
|
-
* @param {
|
|
426
|
+
* @param {TemporalFormatDayFormat} [format]
|
|
427
427
|
* @example type: "hours", { hours: 230, minutes: 27 } = 230 hours, 27 minutes
|
|
428
428
|
* @example type: "hours", 230.45 = 230 hours, 27 minutes
|
|
429
429
|
* @returns {string}
|
|
@@ -438,7 +438,7 @@ const useDateAndTime = () => {
|
|
|
438
438
|
* Returns the converted time between units.
|
|
439
439
|
*
|
|
440
440
|
* @param {number} amount - The number to convert.
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {TemporalTimeUnit} unit - The unit to convert from.
|
|
442
442
|
* @param {"hour" | "minute" | "second" | "millisecond"} conversionType - The unit to convert to.
|
|
443
443
|
* @returns {number}
|
|
444
444
|
*/
|
package/index.esm.js
CHANGED
|
@@ -421,7 +421,7 @@ const useDateAndTime = () => {
|
|
|
421
421
|
*
|
|
422
422
|
* @param {number | Intl.Duration}
|
|
423
423
|
* @param {TemporalDurationType} type
|
|
424
|
-
* @param {
|
|
424
|
+
* @param {TemporalFormatDayFormat} [format]
|
|
425
425
|
* @example type: "hours", { hours: 230, minutes: 27 } = 230 hours, 27 minutes
|
|
426
426
|
* @example type: "hours", 230.45 = 230 hours, 27 minutes
|
|
427
427
|
* @returns {string}
|
|
@@ -436,7 +436,7 @@ const useDateAndTime = () => {
|
|
|
436
436
|
* Returns the converted time between units.
|
|
437
437
|
*
|
|
438
438
|
* @param {number} amount - The number to convert.
|
|
439
|
-
* @param {
|
|
439
|
+
* @param {TemporalTimeUnit} unit - The unit to convert from.
|
|
440
440
|
* @param {"hour" | "minute" | "second" | "millisecond"} conversionType - The unit to convert to.
|
|
441
441
|
* @returns {number}
|
|
442
442
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-date-and-time-hooks",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"@js-temporal/polyfill": "^0.4.4",
|
|
15
15
|
"react": "19.0.0",
|
|
16
16
|
"zod": "^3.23.8",
|
|
17
|
-
"@trackunit/iris-app-build-utilities": "1.6.
|
|
18
|
-
"@trackunit/iris-app-api": "1.6.
|
|
19
|
-
"@trackunit/react-core-contexts-test": "1.6.
|
|
20
|
-
"@trackunit/date-and-time-utils": "1.6.
|
|
21
|
-
"@trackunit/shared-utils": "1.8.
|
|
22
|
-
"@trackunit/react-core-contexts-api": "1.7.
|
|
23
|
-
"@trackunit/react-core-hooks": "1.6.
|
|
24
|
-
"@trackunit/react-test-setup": "1.3.
|
|
17
|
+
"@trackunit/iris-app-build-utilities": "1.6.9",
|
|
18
|
+
"@trackunit/iris-app-api": "1.6.9",
|
|
19
|
+
"@trackunit/react-core-contexts-test": "1.6.10",
|
|
20
|
+
"@trackunit/date-and-time-utils": "1.6.10",
|
|
21
|
+
"@trackunit/shared-utils": "1.8.10",
|
|
22
|
+
"@trackunit/react-core-contexts-api": "1.7.10",
|
|
23
|
+
"@trackunit/react-core-hooks": "1.6.10",
|
|
24
|
+
"@trackunit/react-test-setup": "1.3.10"
|
|
25
25
|
},
|
|
26
26
|
"module": "./index.esm.js",
|
|
27
27
|
"main": "./index.cjs.js",
|