@modul/mbui 0.0.55-beta-pv-54250-d628bcf8 → 0.0.55-beta-pv-54250-9d1884c6
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/DrawerDatePicker/MonthView.d.ts +1 -1
- package/dist/DrawerDatePicker/YearView.d.ts +3 -2
- package/dist/DrawerDatePicker/hooks/useInfiniteScroll.d.ts +3 -3
- package/dist/DrawerDatePicker/hooks/useMonthLoader.d.ts +2 -1
- package/dist/DrawerDatePicker/index.js +1 -1
- package/dist/DrawerDatePicker/utils.d.ts +1 -1
- package/dist/Input-OTP/Input.d.ts +4 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -5,11 +5,11 @@ declare type MonthViewProps = {
|
|
|
5
5
|
selected?: Date | DateRange;
|
|
6
6
|
onSelect: (value: Date | DateRange) => void;
|
|
7
7
|
toggleView: () => void;
|
|
8
|
-
disabledDates?: (date: Date) => boolean;
|
|
9
8
|
disableFutureDates?: boolean;
|
|
10
9
|
disablePastDates?: boolean;
|
|
11
10
|
month?: Date;
|
|
12
11
|
mode: DatePickerMode;
|
|
12
|
+
resetTrigger?: boolean;
|
|
13
13
|
};
|
|
14
14
|
declare const MonthView: React.FC<MonthViewProps>;
|
|
15
15
|
export { MonthView };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface YearViewProps {
|
|
3
|
-
years: number[];
|
|
4
3
|
onMonthSelect: (date: Date) => void;
|
|
4
|
+
disableFutureDates: boolean;
|
|
5
|
+
disablePastDates: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const YearView: React.MemoExoticComponent<({
|
|
7
|
+
export declare const YearView: React.MemoExoticComponent<({ onMonthSelect, disableFutureDates, disablePastDates }: YearViewProps) => React.JSX.Element>;
|
|
7
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface UseInfiniteScrollProps {
|
|
2
|
-
onLoadUp
|
|
3
|
-
onLoadDown
|
|
2
|
+
onLoadUp?: () => void;
|
|
3
|
+
onLoadDown?: () => void;
|
|
4
4
|
}
|
|
5
5
|
export declare const useInfiniteScroll: ({ onLoadUp, onLoadDown }: UseInfiniteScrollProps) => {
|
|
6
|
-
containerRef: (
|
|
6
|
+
containerRef: import("react").RefObject<HTMLDivElement>;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
|
@@ -2,11 +2,12 @@ interface UseMonthLoaderProps {
|
|
|
2
2
|
centerDate: Date;
|
|
3
3
|
disableFutureDates: boolean;
|
|
4
4
|
disablePastDates: boolean;
|
|
5
|
+
resetTrigger: boolean;
|
|
5
6
|
}
|
|
6
7
|
interface UseMonthLoaderResult {
|
|
7
8
|
allMonths: Date[];
|
|
8
9
|
visibleMonths: Date[];
|
|
9
10
|
loadMoreMonths: (direction: 'up' | 'down') => void;
|
|
10
11
|
}
|
|
11
|
-
export declare const useMonthLoader: ({ centerDate, disableFutureDates, disablePastDates, }: UseMonthLoaderProps) => UseMonthLoaderResult;
|
|
12
|
+
export declare const useMonthLoader: ({ centerDate, disableFutureDates, disablePastDates, resetTrigger, }: UseMonthLoaderProps) => UseMonthLoaderResult;
|
|
12
13
|
export {};
|