@pisell/date-picker 3.0.7 → 3.0.8
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 +0 -1
- package/es/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
- package/es/OldActionBar/index.d.ts +0 -1
- package/es/PisellDateRangePicker/LocaleContext.d.ts +7 -2
- package/es/Toolbar/index.d.ts +0 -1
- package/es/hooks/useDocumentVisibility.d.ts +1 -1
- package/es/internals/utils/date-fields-utils.d.ts +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/ActionBar/index.d.ts +0 -1
- package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
- package/lib/OldActionBar/index.d.ts +0 -1
- package/lib/PisellDateRangePicker/LocaleContext.d.ts +7 -2
- package/lib/Toolbar/index.d.ts +0 -1
- package/lib/hooks/useDocumentVisibility.d.ts +1 -1
- package/lib/internals/utils/date-fields-utils.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/package.json +3 -3
package/es/ActionBar/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { BaseToolbarProps, ExportedBaseToolbarProps } from '@mui/x-date-pickers/internals';
|
|
2
3
|
import { DateRange } from '../internals/models';
|
|
3
4
|
import { UseRangePositionResponse } from '../internals/hooks/useRangePosition';
|
|
@@ -7,5 +8,5 @@ export interface DateRangePickerToolbarProps<TDate> extends Omit<BaseToolbarProp
|
|
|
7
8
|
}
|
|
8
9
|
export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbarProps {
|
|
9
10
|
}
|
|
10
|
-
declare const DateRangePickerToolbar:
|
|
11
|
+
declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { DateRangePickerToolbar };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface LocaleContextType {
|
|
3
|
+
locale?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const LocaleContext: import("react").Context<LocaleContextType>;
|
|
6
|
+
export declare const LocaleProvider: import("react").Provider<LocaleContextType>;
|
|
7
|
+
export {};
|
package/es/Toolbar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useDocumentVisibility: () =>
|
|
1
|
+
declare const useDocumentVisibility: () => "hidden" | "visible";
|
|
2
2
|
export default useDocumentVisibility;
|
|
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
|
|
|
5
5
|
};
|
|
6
6
|
export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
|
|
7
7
|
separator: null;
|
|
8
|
-
dateName: "
|
|
8
|
+
dateName: "end" | "start";
|
|
9
9
|
value: string;
|
|
10
10
|
format: string;
|
|
11
11
|
maxLength: number | null;
|
package/es/utils/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PresetType } from "../Shortcuts";
|
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
3
|
export declare const getCurrentLocale: () => string;
|
|
4
4
|
export declare const isBrowser: boolean;
|
|
5
|
-
export declare const isMobile: () =>
|
|
5
|
+
export declare const isMobile: () => boolean;
|
|
6
6
|
/**
|
|
7
7
|
* 格式化预设
|
|
8
8
|
* @param presets
|
package/lib/ActionBar/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { BaseToolbarProps, ExportedBaseToolbarProps } from '@mui/x-date-pickers/internals';
|
|
2
3
|
import { DateRange } from '../internals/models';
|
|
3
4
|
import { UseRangePositionResponse } from '../internals/hooks/useRangePosition';
|
|
@@ -7,5 +8,5 @@ export interface DateRangePickerToolbarProps<TDate> extends Omit<BaseToolbarProp
|
|
|
7
8
|
}
|
|
8
9
|
export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbarProps {
|
|
9
10
|
}
|
|
10
|
-
declare const DateRangePickerToolbar:
|
|
11
|
+
declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { DateRangePickerToolbar };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface LocaleContextType {
|
|
3
|
+
locale?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const LocaleContext: import("react").Context<LocaleContextType>;
|
|
6
|
+
export declare const LocaleProvider: import("react").Provider<LocaleContextType>;
|
|
7
|
+
export {};
|
package/lib/Toolbar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useDocumentVisibility: () =>
|
|
1
|
+
declare const useDocumentVisibility: () => "hidden" | "visible";
|
|
2
2
|
export default useDocumentVisibility;
|
|
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
|
|
|
5
5
|
};
|
|
6
6
|
export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
|
|
7
7
|
separator: null;
|
|
8
|
-
dateName: "
|
|
8
|
+
dateName: "end" | "start";
|
|
9
9
|
value: string;
|
|
10
10
|
format: string;
|
|
11
11
|
maxLength: number | null;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PresetType } from "../Shortcuts";
|
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
3
|
export declare const getCurrentLocale: () => string;
|
|
4
4
|
export declare const isBrowser: boolean;
|
|
5
|
-
export declare const isMobile: () =>
|
|
5
|
+
export declare const isMobile: () => boolean;
|
|
6
6
|
/**
|
|
7
7
|
* 格式化预设
|
|
8
8
|
* @param presets
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/date-picker",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.less"
|
|
6
6
|
],
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"clsx": "^1.2.1",
|
|
24
24
|
"@mui/material": "^5.14.1",
|
|
25
25
|
"@mui/system": "^5.14.1",
|
|
26
|
-
"antd": "^5.
|
|
26
|
+
"antd": "^5.10.1",
|
|
27
27
|
"react": "^18.0.0",
|
|
28
28
|
"react-dom": "^18.0.0",
|
|
29
|
-
"@pisell/utils": "3.0.
|
|
29
|
+
"@pisell/utils": "3.0.5"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"es",
|