@modul/mbui 0.0.60-beta-pv-54289-5c2f1983 → 0.0.60-beta-pv-54250-010da4a9
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/DrawerDatePicker.d.ts +3 -1
- package/dist/DrawerDatePicker/MonthCaption.d.ts +9 -0
- package/dist/DrawerDatePicker/MonthView.d.ts +6 -2
- package/dist/DrawerDatePicker/YearView.d.ts +3 -2
- package/dist/DrawerDatePicker/helpers/helpers.d.ts +4 -0
- package/dist/DrawerDatePicker/hooks/useInfiniteScroll.d.ts +8 -0
- package/dist/DrawerDatePicker/hooks/useMonthLoader.d.ts +13 -0
- package/dist/DrawerDatePicker/hooks/useScrollToMonth.d.ts +7 -0
- package/dist/DrawerDatePicker/index.js +1 -1
- package/dist/DrawerDatePicker/utils.d.ts +1 -1
- package/dist/Input/Input.d.ts +1 -3
- package/dist/Input/InputMask.d.ts +2 -6
- package/dist/Input/index.d.ts +0 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input-OTP/Input.d.ts +2 -2
- package/dist/Select/SelectDrawer/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/assets/css/global.css +1 -24
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +11 -12
- package/dist/Input/InputNumericFormat.d.ts +0 -6
@@ -10,8 +10,10 @@ interface DrawerDatePickerProps extends React.RefAttributes<HTMLInputElement>, P
|
|
10
10
|
triggerDisabled?: boolean;
|
11
11
|
selected?: Date | DateRange;
|
12
12
|
disabled?: boolean;
|
13
|
+
disabledDates?: (date: Date) => boolean;
|
13
14
|
disableFutureDates?: boolean;
|
14
|
-
|
15
|
+
disablePastDates?: boolean;
|
16
|
+
dateFormat?: string;
|
15
17
|
placeholder?: string;
|
16
18
|
onSelect: (value: Date | DateRange) => void;
|
17
19
|
}
|
@@ -3,11 +3,15 @@ import { DateRange } from 'react-day-picker';
|
|
3
3
|
import { DatePickerMode } from './DrawerDatePicker';
|
4
4
|
declare type MonthViewProps = {
|
5
5
|
selected?: Date | DateRange;
|
6
|
+
selectedMonth?: Date;
|
6
7
|
onSelect: (value: Date | DateRange) => void;
|
7
|
-
toggleView: () => void;
|
8
|
-
|
8
|
+
toggleView: (date: Date) => void;
|
9
|
+
disabled?: (date: Date) => boolean;
|
10
|
+
disableFutureDates?: boolean;
|
11
|
+
disablePastDates?: boolean;
|
9
12
|
month?: Date;
|
10
13
|
mode: DatePickerMode;
|
14
|
+
resetTrigger?: boolean;
|
11
15
|
};
|
12
16
|
declare const MonthView: React.FC<MonthViewProps>;
|
13
17
|
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 {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const isFirstMonthVisible: (visibleMonths: Date[], allMonths: Date[]) => boolean;
|
2
|
+
export declare const isLastMonthVisible: (visibleMonths: Date[], allMonths: Date[]) => boolean;
|
3
|
+
export declare const loadPreviousMonths: (visibleMonths: Date[], allMonths: Date[]) => Date[];
|
4
|
+
export declare const loadNextMonths: (visibleMonths: Date[], allMonths: Date[]) => Date[];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
interface UseMonthLoaderProps {
|
2
|
+
centerDate: Date;
|
3
|
+
disableFutureDates: boolean;
|
4
|
+
disablePastDates: boolean;
|
5
|
+
resetTrigger: boolean;
|
6
|
+
}
|
7
|
+
interface UseMonthLoaderResult {
|
8
|
+
allMonths: Date[];
|
9
|
+
visibleMonths: Date[];
|
10
|
+
loadMoreMonths: (direction: 'up' | 'down') => void;
|
11
|
+
}
|
12
|
+
export declare const useMonthLoader: ({ centerDate, disableFutureDates, disablePastDates, resetTrigger, }: UseMonthLoaderProps) => UseMonthLoaderResult;
|
13
|
+
export {};
|