@daryasidorovich/modsen-datepicker 1.1.2 → 1.1.4
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/dist/constants/dateMask.d.ts +3 -3
- package/dist/hooks/useValidate.d.ts +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,17 @@ export declare const DATE_MASK: {
|
|
|
2
2
|
readonly mask: "dd/mm/yyyy";
|
|
3
3
|
readonly blocks: {
|
|
4
4
|
readonly dd: {
|
|
5
|
-
readonly mask:
|
|
5
|
+
readonly mask: typeof import("imask").MaskedRange;
|
|
6
6
|
readonly from: 1;
|
|
7
7
|
readonly to: 31;
|
|
8
8
|
};
|
|
9
9
|
readonly mm: {
|
|
10
|
-
readonly mask:
|
|
10
|
+
readonly mask: typeof import("imask").MaskedRange;
|
|
11
11
|
readonly from: 1;
|
|
12
12
|
readonly to: 12;
|
|
13
13
|
};
|
|
14
14
|
readonly yyyy: {
|
|
15
|
-
readonly mask:
|
|
15
|
+
readonly mask: typeof import("imask").MaskedRange;
|
|
16
16
|
readonly from: 1900;
|
|
17
17
|
readonly to: 2100;
|
|
18
18
|
};
|
|
@@ -4,8 +4,8 @@ export declare function useValidate(selectedDate: Date | undefined): {
|
|
|
4
4
|
handleDateValidation: (value: string, startDate?: Date) => Date | undefined;
|
|
5
5
|
handleClearInput: () => void;
|
|
6
6
|
handleDateSelect: (date?: Date) => void;
|
|
7
|
-
ref:
|
|
8
|
-
value:
|
|
9
|
-
setValue:
|
|
7
|
+
ref: import("react").MutableRefObject<import("imask").InputMaskElement | null>;
|
|
8
|
+
value: string;
|
|
9
|
+
setValue: import("react").Dispatch<string>;
|
|
10
10
|
error: string;
|
|
11
11
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -6312,8 +6312,8 @@ const useTooltip = () => {
|
|
|
6312
6312
|
const handleDayMouseEnter = (e) => {
|
|
6313
6313
|
const rect = e.currentTarget.getBoundingClientRect();
|
|
6314
6314
|
const coords = {
|
|
6315
|
-
x: rect.right - 5,
|
|
6316
|
-
y: rect.top - 10,
|
|
6315
|
+
x: rect.right - 5 + window.scrollX,
|
|
6316
|
+
y: rect.top - 10 + window.scrollY,
|
|
6317
6317
|
};
|
|
6318
6318
|
if (timeoutRef.current) {
|
|
6319
6319
|
clearTimeout(timeoutRef.current);
|