@trackunit/react-date-and-time-components 1.9.38 → 1.9.39

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
@@ -211,7 +211,7 @@ const DayRangePicker = ({ onRangeSelect, selectedDays, disabledDays, dataTestId,
211
211
  return false;
212
212
  }, value:
213
213
  // type is wrong here if we add array of 2 elements if end is undefined and set to null it will not highlight the start date
214
- // eslint-disable-next-line local-rules/no-typescript-assertion, @typescript-eslint/no-explicit-any
214
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
215
215
  newRange.end ? [newRange.start ?? null, newRange.end ?? null] : (newRange.start ?? null) }), jsxRuntime.jsx("hr", {}), jsxRuntime.jsxs("div", { className: "flex w-full gap-2", children: [jsxRuntime.jsx(reactComponents.Button, { className: "mr-auto", dataTestId: "range-popover-clear-button", onClick: clearSelectedDays, variant: "secondary", children: t("layout.actions.clear") }), jsxRuntime.jsx(reactComponents.Button, { dataTestId: "range-popover-cancel-button", onClick: () => handleCancel(), variant: "ghost-neutral", children: cancelButtonLabel ? cancelButtonLabel : t("layout.actions.cancel") }), jsxRuntime.jsx(reactComponents.Button, { dataTestId: "range-popover-apply-button", disabled: !newRange.start || !newRange.end, onClick: () => handleApply(), children: t("layout.actions.apply") })] })] }));
216
216
  };
217
217
 
@@ -626,7 +626,7 @@ const DayRangeSelect = ({ className, dataTestId, disabled, selectedDateRange, on
626
626
 
627
627
  /**
628
628
  * The DayPicker component is used when the user needs to select a date.
629
-
629
+
630
630
  * @param {DayPickerProps} props - The props for the DayPicker component
631
631
  * @returns {ReactElement} DayPicker component
632
632
  */
package/index.esm.js CHANGED
@@ -209,7 +209,7 @@ const DayRangePicker = ({ onRangeSelect, selectedDays, disabledDays, dataTestId,
209
209
  return false;
210
210
  }, value:
211
211
  // type is wrong here if we add array of 2 elements if end is undefined and set to null it will not highlight the start date
212
- // eslint-disable-next-line local-rules/no-typescript-assertion, @typescript-eslint/no-explicit-any
212
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
213
213
  newRange.end ? [newRange.start ?? null, newRange.end ?? null] : (newRange.start ?? null) }), jsx("hr", {}), jsxs("div", { className: "flex w-full gap-2", children: [jsx(Button, { className: "mr-auto", dataTestId: "range-popover-clear-button", onClick: clearSelectedDays, variant: "secondary", children: t("layout.actions.clear") }), jsx(Button, { dataTestId: "range-popover-cancel-button", onClick: () => handleCancel(), variant: "ghost-neutral", children: cancelButtonLabel ? cancelButtonLabel : t("layout.actions.cancel") }), jsx(Button, { dataTestId: "range-popover-apply-button", disabled: !newRange.start || !newRange.end, onClick: () => handleApply(), children: t("layout.actions.apply") })] })] }));
214
214
  };
215
215
 
@@ -624,7 +624,7 @@ const DayRangeSelect = ({ className, dataTestId, disabled, selectedDateRange, on
624
624
 
625
625
  /**
626
626
  * The DayPicker component is used when the user needs to select a date.
627
-
627
+
628
628
  * @param {DayPickerProps} props - The props for the DayPicker component
629
629
  * @returns {ReactElement} DayPicker component
630
630
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-date-and-time-components",
3
- "version": "1.9.38",
3
+ "version": "1.9.39",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,15 +8,15 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "react": "19.0.0",
11
- "@trackunit/react-components": "1.7.35",
12
- "@trackunit/date-and-time-utils": "1.6.26",
13
- "@trackunit/react-date-and-time-hooks": "1.6.29",
14
- "@trackunit/css-class-variance-utilities": "1.6.26",
15
- "@trackunit/ui-icons": "1.6.25",
16
- "@trackunit/shared-utils": "1.8.26",
17
- "@trackunit/i18n-library-translation": "1.6.29",
18
- "@trackunit/react-test-setup": "1.3.26",
19
- "@trackunit/react-form-components": "1.7.4",
11
+ "@trackunit/react-components": "1.7.36",
12
+ "@trackunit/date-and-time-utils": "1.6.27",
13
+ "@trackunit/react-date-and-time-hooks": "1.6.30",
14
+ "@trackunit/css-class-variance-utilities": "1.6.27",
15
+ "@trackunit/ui-icons": "1.6.26",
16
+ "@trackunit/shared-utils": "1.8.27",
17
+ "@trackunit/i18n-library-translation": "1.6.30",
18
+ "@trackunit/react-test-setup": "1.3.27",
19
+ "@trackunit/react-form-components": "1.7.5",
20
20
  "string-ts": "^2.0.0",
21
21
  "tailwind-merge": "^2.0.0",
22
22
  "react-calendar": "^6.0.0"
@@ -30,7 +30,7 @@ export interface DayPickerProps extends CommonProps {
30
30
  }
31
31
  /**
32
32
  * The DayPicker component is used when the user needs to select a date.
33
-
33
+
34
34
  * @param {DayPickerProps} props - The props for the DayPicker component
35
35
  * @returns {ReactElement} DayPicker component
36
36
  */