@pisell/date-picker 1.0.141 → 1.0.143
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/es/ActionBar/index.d.ts +2 -2
- package/es/CustomCalendarHeader/index.d.ts +2 -2
- package/es/Dialog/index.d.ts +2 -2
- package/es/Drawer/index.d.ts +1 -1
- package/es/OldActionBar/index.d.ts +2 -2
- package/es/OldPisellDateRangePicker/index.d.ts +1 -1
- package/es/PisellDateRangePicker/index.d.ts +1 -1
- package/es/Shortcuts/index.d.ts +2 -2
- package/es/Toolbar/index.d.ts +2 -2
- package/es/browserSelect/index.d.ts +1 -1
- package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +2 -2
- package/es/icon/ChevronLeft.d.ts +2 -2
- package/es/icon/ChevronLeftDouble.d.ts +2 -2
- package/es/icon/ChevronRight.d.ts +2 -2
- package/es/icon/ChevronRightDouble.d.ts +2 -2
- package/es/icon/CloseCircle.d.ts +2 -2
- package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -2
- package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -2
- package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +2 -2
- package/lib/ActionBar/index.d.ts +2 -2
- package/lib/CustomCalendarHeader/index.d.ts +2 -2
- package/lib/Dialog/index.d.ts +2 -2
- package/lib/Drawer/index.d.ts +1 -1
- package/lib/OldActionBar/index.d.ts +2 -2
- package/lib/OldPisellDateRangePicker/index.d.ts +1 -1
- package/lib/PisellDateRangePicker/index.d.ts +1 -1
- package/lib/Shortcuts/index.d.ts +2 -2
- package/lib/Toolbar/index.d.ts +2 -2
- package/lib/browserSelect/index.d.ts +1 -1
- package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +2 -2
- package/lib/icon/ChevronLeft.d.ts +2 -2
- package/lib/icon/ChevronLeftDouble.d.ts +2 -2
- package/lib/icon/ChevronRight.d.ts +2 -2
- package/lib/icon/ChevronRightDouble.d.ts +2 -2
- package/lib/icon/CloseCircle.d.ts +2 -2
- package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -2
- package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -2
- package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +2 -2
- package/package.json +2 -2
package/es/ActionBar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonProps } from 'antd';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
import './index.less';
|
|
@@ -16,5 +16,5 @@ interface ActionBarProps {
|
|
|
16
16
|
cancelButtonProps?: ButtonProps;
|
|
17
17
|
isDesktop: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const ActionBar: (props: ActionBarProps) => JSX.Element;
|
|
19
|
+
declare const ActionBar: (props: ActionBarProps) => React.JSX.Element;
|
|
20
20
|
export default ActionBar;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomCalendarHeader: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const CustomCalendarHeader: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CustomCalendarHeader;
|
package/es/Dialog/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Dialog: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Dialog: (props: any) => React.JSX.Element;
|
|
3
3
|
export default Dialog;
|
package/es/Drawer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ButtonProps } from "antd";
|
|
3
3
|
import { Dayjs } from "dayjs";
|
|
4
4
|
import "./index.less";
|
|
@@ -15,5 +15,5 @@ interface ActionBarProps {
|
|
|
15
15
|
okButtonProps?: ButtonProps;
|
|
16
16
|
cancelButtonProps?: ButtonProps;
|
|
17
17
|
}
|
|
18
|
-
declare const ActionBar: (props: ActionBarProps) => JSX.Element;
|
|
18
|
+
declare const ActionBar: (props: ActionBarProps) => React.JSX.Element;
|
|
19
19
|
export default ActionBar;
|
|
@@ -75,5 +75,5 @@ export interface PisellDateRangePickerProps {
|
|
|
75
75
|
/** 输入框只读 */
|
|
76
76
|
inputReadOnly: boolean;
|
|
77
77
|
}
|
|
78
|
-
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
|
|
78
|
+
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => React.JSX.Element;
|
|
79
79
|
export default PisellDateRangePicker;
|
|
@@ -79,5 +79,5 @@ export interface PisellDateRangePickerProps {
|
|
|
79
79
|
isHideCustomSelect?: boolean;
|
|
80
80
|
endDateDays?: number;
|
|
81
81
|
}
|
|
82
|
-
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
|
|
82
|
+
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => React.JSX.Element;
|
|
83
83
|
export default PisellDateRangePicker;
|
package/es/Shortcuts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
3
|
import { Dayjs } from "dayjs";
|
|
4
4
|
export declare type PresetType = {
|
|
@@ -12,5 +12,5 @@ interface ShortcutsProps {
|
|
|
12
12
|
onChange: (day: [Dayjs, Dayjs], changeImportance?: "accept" | "set") => void;
|
|
13
13
|
changeImportance?: "accept" | "set";
|
|
14
14
|
}
|
|
15
|
-
declare const Shortcuts: (props: ShortcutsProps) => JSX.Element | null;
|
|
15
|
+
declare const Shortcuts: (props: ShortcutsProps) => React.JSX.Element | null;
|
|
16
16
|
export default Shortcuts;
|
package/es/Toolbar/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAtt
|
|
|
11
11
|
* @Author: zhiwei.Wang
|
|
12
12
|
* @Date: 2024-01-30 16:43
|
|
13
13
|
*/
|
|
14
|
-
declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
|
|
14
|
+
declare const BrowserSelect: (props: BrowserSelectProps) => React.JSX.Element;
|
|
15
15
|
export default BrowserSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { DateRangeCalendarProps } from '../DateRangeCalendar';
|
|
4
4
|
export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewWithMeridiem> extends DateRangeCalendarProps<TDate> {
|
|
@@ -10,4 +10,4 @@ export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewW
|
|
|
10
10
|
* We don't pass all the props down to `DateRangeCalendar`,
|
|
11
11
|
* because otherwise some unwanted props would be passed to the HTML element.
|
|
12
12
|
*/
|
|
13
|
-
export declare const renderDateRangeViewCalendar: <TDate extends unknown>({ value, defaultValue, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, defaultCalendarMonth, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, components, componentsProps, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, }: DateRangeViewRendererProps<TDate, any>) => JSX.Element;
|
|
13
|
+
export declare const renderDateRangeViewCalendar: <TDate extends unknown>({ value, defaultValue, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, defaultCalendarMonth, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, components, componentsProps, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, }: DateRangeViewRendererProps<TDate, any>) => React.JSX.Element;
|
package/es/icon/ChevronLeft.d.ts
CHANGED
package/es/icon/CloseCircle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { UseDesktopRangePickerParams, UseDesktopRangePickerProps } from './useDesktopRangePicker.types';
|
|
4
4
|
export declare const useDesktopRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseDesktopRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseDesktopRangePickerParams<TDate, TView, TExternalProps>) => {
|
|
5
|
-
renderPicker: () => JSX.Element;
|
|
5
|
+
renderPicker: () => React.JSX.Element;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { UseMobileRangePickerParams, UseMobileRangePickerProps } from './useMobileRangePicker.types';
|
|
4
4
|
export declare const useMobileRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseMobileRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseMobileRangePickerParams<TDate, TView, TExternalProps>) => {
|
|
5
|
-
renderPicker: () => JSX.Element;
|
|
5
|
+
renderPicker: () => React.JSX.Element;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStaticRangePicker.types';
|
|
4
4
|
/**
|
|
@@ -6,5 +6,5 @@ import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStat
|
|
|
6
6
|
* - StaticDateRangePicker
|
|
7
7
|
*/
|
|
8
8
|
export declare const useStaticRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseStaticRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ref, ...pickerParams }: UseStaticRangePickerParams<TDate, TView, TExternalProps>) => {
|
|
9
|
-
renderPicker: () => JSX.Element;
|
|
9
|
+
renderPicker: () => React.JSX.Element;
|
|
10
10
|
};
|
package/lib/ActionBar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonProps } from 'antd';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
import './index.less';
|
|
@@ -16,5 +16,5 @@ interface ActionBarProps {
|
|
|
16
16
|
cancelButtonProps?: ButtonProps;
|
|
17
17
|
isDesktop: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const ActionBar: (props: ActionBarProps) => JSX.Element;
|
|
19
|
+
declare const ActionBar: (props: ActionBarProps) => React.JSX.Element;
|
|
20
20
|
export default ActionBar;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomCalendarHeader: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const CustomCalendarHeader: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CustomCalendarHeader;
|
package/lib/Dialog/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Dialog: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Dialog: (props: any) => React.JSX.Element;
|
|
3
3
|
export default Dialog;
|
package/lib/Drawer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ButtonProps } from "antd";
|
|
3
3
|
import { Dayjs } from "dayjs";
|
|
4
4
|
import "./index.less";
|
|
@@ -15,5 +15,5 @@ interface ActionBarProps {
|
|
|
15
15
|
okButtonProps?: ButtonProps;
|
|
16
16
|
cancelButtonProps?: ButtonProps;
|
|
17
17
|
}
|
|
18
|
-
declare const ActionBar: (props: ActionBarProps) => JSX.Element;
|
|
18
|
+
declare const ActionBar: (props: ActionBarProps) => React.JSX.Element;
|
|
19
19
|
export default ActionBar;
|
|
@@ -75,5 +75,5 @@ export interface PisellDateRangePickerProps {
|
|
|
75
75
|
/** 输入框只读 */
|
|
76
76
|
inputReadOnly: boolean;
|
|
77
77
|
}
|
|
78
|
-
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
|
|
78
|
+
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => React.JSX.Element;
|
|
79
79
|
export default PisellDateRangePicker;
|
|
@@ -79,5 +79,5 @@ export interface PisellDateRangePickerProps {
|
|
|
79
79
|
isHideCustomSelect?: boolean;
|
|
80
80
|
endDateDays?: number;
|
|
81
81
|
}
|
|
82
|
-
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
|
|
82
|
+
declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => React.JSX.Element;
|
|
83
83
|
export default PisellDateRangePicker;
|
package/lib/Shortcuts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
3
|
import { Dayjs } from "dayjs";
|
|
4
4
|
export declare type PresetType = {
|
|
@@ -12,5 +12,5 @@ interface ShortcutsProps {
|
|
|
12
12
|
onChange: (day: [Dayjs, Dayjs], changeImportance?: "accept" | "set") => void;
|
|
13
13
|
changeImportance?: "accept" | "set";
|
|
14
14
|
}
|
|
15
|
-
declare const Shortcuts: (props: ShortcutsProps) => JSX.Element | null;
|
|
15
|
+
declare const Shortcuts: (props: ShortcutsProps) => React.JSX.Element | null;
|
|
16
16
|
export default Shortcuts;
|
package/lib/Toolbar/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAtt
|
|
|
11
11
|
* @Author: zhiwei.Wang
|
|
12
12
|
* @Date: 2024-01-30 16:43
|
|
13
13
|
*/
|
|
14
|
-
declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
|
|
14
|
+
declare const BrowserSelect: (props: BrowserSelectProps) => React.JSX.Element;
|
|
15
15
|
export default BrowserSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { DateRangeCalendarProps } from '../DateRangeCalendar';
|
|
4
4
|
export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewWithMeridiem> extends DateRangeCalendarProps<TDate> {
|
|
@@ -10,4 +10,4 @@ export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewW
|
|
|
10
10
|
* We don't pass all the props down to `DateRangeCalendar`,
|
|
11
11
|
* because otherwise some unwanted props would be passed to the HTML element.
|
|
12
12
|
*/
|
|
13
|
-
export declare const renderDateRangeViewCalendar: <TDate extends unknown>({ value, defaultValue, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, defaultCalendarMonth, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, components, componentsProps, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, }: DateRangeViewRendererProps<TDate, any>) => JSX.Element;
|
|
13
|
+
export declare const renderDateRangeViewCalendar: <TDate extends unknown>({ value, defaultValue, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, defaultCalendarMonth, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, components, componentsProps, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, }: DateRangeViewRendererProps<TDate, any>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { UseDesktopRangePickerParams, UseDesktopRangePickerProps } from './useDesktopRangePicker.types';
|
|
4
4
|
export declare const useDesktopRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseDesktopRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseDesktopRangePickerParams<TDate, TView, TExternalProps>) => {
|
|
5
|
-
renderPicker: () => JSX.Element;
|
|
5
|
+
renderPicker: () => React.JSX.Element;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { UseMobileRangePickerParams, UseMobileRangePickerProps } from './useMobileRangePicker.types';
|
|
4
4
|
export declare const useMobileRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseMobileRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseMobileRangePickerParams<TDate, TView, TExternalProps>) => {
|
|
5
|
-
renderPicker: () => JSX.Element;
|
|
5
|
+
renderPicker: () => React.JSX.Element;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
|
|
3
3
|
import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStaticRangePicker.types';
|
|
4
4
|
/**
|
|
@@ -6,5 +6,5 @@ import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStat
|
|
|
6
6
|
* - StaticDateRangePicker
|
|
7
7
|
*/
|
|
8
8
|
export declare const useStaticRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseStaticRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ref, ...pickerParams }: UseStaticRangePickerParams<TDate, TView, TExternalProps>) => {
|
|
9
|
-
renderPicker: () => JSX.Element;
|
|
9
|
+
renderPicker: () => React.JSX.Element;
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/date-picker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.143",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.less"
|
|
6
6
|
],
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prop-types": "^15.8.1",
|
|
31
31
|
"react": "^18.0.0",
|
|
32
32
|
"react-dom": "^18.0.0",
|
|
33
|
-
"@pisell/utils": "1.0.
|
|
33
|
+
"@pisell/utils": "1.0.70"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"es",
|