@trackunit/react-date-and-time-components 2.1.53 → 2.1.55
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
CHANGED
|
@@ -602,7 +602,7 @@ const DEFAULT_COUNT = 7;
|
|
|
602
602
|
* createTemporalPeriodCombinations({ direction: "last", count: 2, unit: "days" }); // [{ direction: "last", count: 2, unit: "days" }]
|
|
603
603
|
* createTemporalPeriodCombinations({ direction: "next", count: 1 }); // [{ direction: "next", count: 1, unit: "day" }]
|
|
604
604
|
*/
|
|
605
|
-
const createTemporalPeriodCombinations = ({ direction, count,
|
|
605
|
+
const createTemporalPeriodCombinations = ({ direction, count, }) => {
|
|
606
606
|
const directions = direction ? [direction] : DEFAULT_DIRECTIONS;
|
|
607
607
|
const _count = count ?? DEFAULT_COUNT;
|
|
608
608
|
const isCountPlural = _count > 1;
|
package/index.esm.js
CHANGED
|
@@ -600,7 +600,7 @@ const DEFAULT_COUNT = 7;
|
|
|
600
600
|
* createTemporalPeriodCombinations({ direction: "last", count: 2, unit: "days" }); // [{ direction: "last", count: 2, unit: "days" }]
|
|
601
601
|
* createTemporalPeriodCombinations({ direction: "next", count: 1 }); // [{ direction: "next", count: 1, unit: "day" }]
|
|
602
602
|
*/
|
|
603
|
-
const createTemporalPeriodCombinations = ({ direction, count,
|
|
603
|
+
const createTemporalPeriodCombinations = ({ direction, count, }) => {
|
|
604
604
|
const directions = direction ? [direction] : DEFAULT_DIRECTIONS;
|
|
605
605
|
const _count = count ?? DEFAULT_COUNT;
|
|
606
606
|
const isCountPlural = _count > 1;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-date-and-time-components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.55",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/react-components": "2.1.
|
|
11
|
-
"@trackunit/date-and-time-utils": "1.13.
|
|
12
|
-
"@trackunit/react-date-and-time-hooks": "2.1.
|
|
13
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
14
|
-
"@trackunit/ui-icons": "1.13.
|
|
15
|
-
"@trackunit/shared-utils": "1.15.
|
|
16
|
-
"@trackunit/i18n-library-translation": "2.0.
|
|
17
|
-
"@trackunit/react-form-components": "2.1.
|
|
10
|
+
"@trackunit/react-components": "2.1.52",
|
|
11
|
+
"@trackunit/date-and-time-utils": "1.13.55",
|
|
12
|
+
"@trackunit/react-date-and-time-hooks": "2.1.54",
|
|
13
|
+
"@trackunit/css-class-variance-utilities": "1.13.52",
|
|
14
|
+
"@trackunit/ui-icons": "1.13.53",
|
|
15
|
+
"@trackunit/shared-utils": "1.15.52",
|
|
16
|
+
"@trackunit/i18n-library-translation": "2.0.52",
|
|
17
|
+
"@trackunit/react-form-components": "2.1.54",
|
|
18
18
|
"string-ts": "^2.0.0",
|
|
19
19
|
"tailwind-merge": "^2.0.0",
|
|
20
20
|
"react-calendar": "^6.0.0"
|
|
@@ -9,4 +9,4 @@ import { TemporalPeriod } from "../../types";
|
|
|
9
9
|
* createTemporalPeriodCombinations({ direction: "last", count: 2, unit: "days" }); // [{ direction: "last", count: 2, unit: "days" }]
|
|
10
10
|
* createTemporalPeriodCombinations({ direction: "next", count: 1 }); // [{ direction: "next", count: 1, unit: "day" }]
|
|
11
11
|
*/
|
|
12
|
-
export declare const createTemporalPeriodCombinations: ({ direction, count,
|
|
12
|
+
export declare const createTemporalPeriodCombinations: ({ direction, count, }: Partial<TemporalPeriod>) => Array<TemporalPeriod>;
|