@pisell/date-picker 1.0.105 → 1.0.106
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/package.json +2 -2
- package/es/CustomCalendarHeader/index.d.ts +0 -2
- package/es/Dialog/index.d.ts +0 -2
- package/es/Drawer/index.d.ts +0 -11
- package/es/PisellDateRangePicker/LocaleContext.d.ts +0 -2
- package/es/Shortcuts/index.d.ts +0 -15
- package/es/browserSelect/index.d.ts +0 -15
- package/es/hooks/useDocumentVisibility.d.ts +0 -2
- package/es/hooks/useNextDay.d.ts +0 -2
- package/es/hooks/useUpdateEffect.d.ts +0 -2
- package/es/icon/ChevronLeft.d.ts +0 -5
- package/es/icon/ChevronLeftDouble.d.ts +0 -5
- package/es/icon/ChevronRight.d.ts +0 -5
- package/es/icon/ChevronRightDouble.d.ts +0 -5
- package/es/icon/CloseCircle.d.ts +0 -5
- package/es/locales/en-US.d.ts +0 -26
- package/es/locales/zh-CN.d.ts +0 -26
- package/es/locales/zh-TW.d.ts +0 -26
- package/lib/CustomCalendarHeader/index.d.ts +0 -2
- package/lib/Dialog/index.d.ts +0 -2
- package/lib/Drawer/index.d.ts +0 -11
- package/lib/PisellDateRangePicker/LocaleContext.d.ts +0 -2
- package/lib/Shortcuts/index.d.ts +0 -15
- package/lib/browserSelect/index.d.ts +0 -15
- package/lib/hooks/useDocumentVisibility.d.ts +0 -2
- package/lib/hooks/useNextDay.d.ts +0 -2
- package/lib/hooks/useUpdateEffect.d.ts +0 -2
- package/lib/icon/ChevronLeft.d.ts +0 -5
- package/lib/icon/ChevronLeftDouble.d.ts +0 -5
- package/lib/icon/ChevronRight.d.ts +0 -5
- package/lib/icon/ChevronRightDouble.d.ts +0 -5
- package/lib/icon/CloseCircle.d.ts +0 -5
- package/lib/locales/en-US.d.ts +0 -26
- package/lib/locales/zh-CN.d.ts +0 -26
- package/lib/locales/zh-TW.d.ts +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/date-picker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.106",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.less"
|
|
6
6
|
],
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"antd": "^5.5.0",
|
|
27
27
|
"react": "^18.0.0",
|
|
28
28
|
"react-dom": "^18.0.0",
|
|
29
|
-
"@pisell/utils": "1.0.
|
|
29
|
+
"@pisell/utils": "1.0.39"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"es",
|
package/es/Dialog/index.d.ts
DELETED
package/es/Drawer/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.less";
|
|
3
|
-
interface DrawerProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
height?: number;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Drawer: (props: DrawerProps) => JSX.Element | null;
|
|
11
|
-
export default Drawer;
|
package/es/Shortcuts/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { Dayjs } from "dayjs";
|
|
3
|
-
export declare type PresetType = {
|
|
4
|
-
label?: string;
|
|
5
|
-
getValue?: () => [Dayjs, Dayjs];
|
|
6
|
-
value: [Dayjs, Dayjs] | "today" | "yesterday" | "last_3_days" | "last_7_days" | "last_30_days" | "last_90_days" | "last_180_days" | "tomorrow" | "next_3_days" | "next_7_days" | "next_30_days" | "next_90_days" | "next_180_days";
|
|
7
|
-
key?: string;
|
|
8
|
-
};
|
|
9
|
-
interface ShortcutsProps {
|
|
10
|
-
items: PresetType[];
|
|
11
|
-
onChange: (day: [Dayjs, Dayjs], changeImportance?: "accept" | "set") => void;
|
|
12
|
-
changeImportance?: "accept" | "set";
|
|
13
|
-
}
|
|
14
|
-
declare const Shortcuts: (props: ShortcutsProps) => JSX.Element | null;
|
|
15
|
-
export default Shortcuts;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.less";
|
|
3
|
-
interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
|
|
4
|
-
options: any[];
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @title: 系统级别的下拉框
|
|
8
|
-
* @description:
|
|
9
|
-
* @param {BrowserSelectProps} props
|
|
10
|
-
* @return {*}
|
|
11
|
-
* @Author: zhiwei.Wang
|
|
12
|
-
* @Date: 2024-01-30 16:43
|
|
13
|
-
*/
|
|
14
|
-
declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
|
|
15
|
-
export default BrowserSelect;
|
package/es/hooks/useNextDay.d.ts
DELETED
package/es/icon/ChevronLeft.d.ts
DELETED
package/es/icon/CloseCircle.d.ts
DELETED
package/es/locales/en-US.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'action-bar-cancel': string;
|
|
3
|
-
'action-bar-apply': string;
|
|
4
|
-
'action-bar-start.time': string;
|
|
5
|
-
'action-bar-end.time': string;
|
|
6
|
-
'toolbar-date-range-shortcut-custom': string;
|
|
7
|
-
"toolbar-date-range-shortcut-date-range": string;
|
|
8
|
-
"toolbar-date-range-shortcut-starting": string;
|
|
9
|
-
"toolbar-date-range-shortcut-ending": string;
|
|
10
|
-
"toolbar-date-range-shortcut-today": string;
|
|
11
|
-
"toolbar-date-range-shortcut-yesterday": string;
|
|
12
|
-
"toolbar-date-range-shortcut-tomorrow": string;
|
|
13
|
-
"toolbar-date-range-shortcut-last-3-days": string;
|
|
14
|
-
"toolbar-date-range-shortcut-last-7-days": string;
|
|
15
|
-
"toolbar-date-range-shortcut-last-30-days": string;
|
|
16
|
-
"toolbar-date-range-shortcut-last-90-days": string;
|
|
17
|
-
"toolbar-date-range-shortcut-last-180-days": string;
|
|
18
|
-
"toolbar-date-range-shortcut-next-3-days": string;
|
|
19
|
-
"toolbar-date-range-shortcut-next-7-days": string;
|
|
20
|
-
"toolbar-date-range-shortcut-next-30-days": string;
|
|
21
|
-
"toolbar-date-range-shortcut-next-90-days": string;
|
|
22
|
-
"toolbar-date-range-shortcut-next-180-days": string;
|
|
23
|
-
"toolbar-date-range-invalid-start-date": string;
|
|
24
|
-
"toolbar-date-range-invalid-end-date": string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
package/es/locales/zh-CN.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"action-bar-cancel": string;
|
|
3
|
-
"action-bar-apply": string;
|
|
4
|
-
"action-bar-start.time": string;
|
|
5
|
-
"action-bar-end.time": string;
|
|
6
|
-
"toolbar-date-range-shortcut-date-range": string;
|
|
7
|
-
"toolbar-date-range-shortcut-starting": string;
|
|
8
|
-
"toolbar-date-range-shortcut-ending": string;
|
|
9
|
-
"toolbar-date-range-shortcut-custom": string;
|
|
10
|
-
"toolbar-date-range-shortcut-today": string;
|
|
11
|
-
"toolbar-date-range-shortcut-yesterday": string;
|
|
12
|
-
"toolbar-date-range-shortcut-tomorrow": string;
|
|
13
|
-
"toolbar-date-range-shortcut-last-3-days": string;
|
|
14
|
-
"toolbar-date-range-shortcut-last-7-days": string;
|
|
15
|
-
"toolbar-date-range-shortcut-last-30-days": string;
|
|
16
|
-
"toolbar-date-range-shortcut-last-90-days": string;
|
|
17
|
-
"toolbar-date-range-shortcut-last-180-days": string;
|
|
18
|
-
"toolbar-date-range-shortcut-next-3-days": string;
|
|
19
|
-
"toolbar-date-range-shortcut-next-7-days": string;
|
|
20
|
-
"toolbar-date-range-shortcut-next-30-days": string;
|
|
21
|
-
"toolbar-date-range-shortcut-next-90-days": string;
|
|
22
|
-
"toolbar-date-range-shortcut-next-180-days": string;
|
|
23
|
-
"toolbar-date-range-invalid-start-date": string;
|
|
24
|
-
"toolbar-date-range-invalid-end-date": string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
package/es/locales/zh-TW.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'action-bar-cancel': string;
|
|
3
|
-
'action-bar-apply': string;
|
|
4
|
-
'action-bar-start.time': string;
|
|
5
|
-
'action-bar-end.time': string;
|
|
6
|
-
'toolbar-date-range-shortcut-custom': string;
|
|
7
|
-
"toolbar-date-range-shortcut-date-range": string;
|
|
8
|
-
"toolbar-date-range-shortcut-starting": string;
|
|
9
|
-
"toolbar-date-range-shortcut-ending": string;
|
|
10
|
-
"toolbar-date-range-shortcut-today": string;
|
|
11
|
-
"toolbar-date-range-shortcut-yesterday": string;
|
|
12
|
-
"toolbar-date-range-shortcut-tomorrow": string;
|
|
13
|
-
"toolbar-date-range-shortcut-last-3-days": string;
|
|
14
|
-
"toolbar-date-range-shortcut-last-7-days": string;
|
|
15
|
-
"toolbar-date-range-shortcut-last-30-days": string;
|
|
16
|
-
"toolbar-date-range-shortcut-last-90-days": string;
|
|
17
|
-
"toolbar-date-range-shortcut-last-180-days": string;
|
|
18
|
-
"toolbar-date-range-shortcut-next-3-days": string;
|
|
19
|
-
"toolbar-date-range-shortcut-next-7-days": string;
|
|
20
|
-
"toolbar-date-range-shortcut-next-30-days": string;
|
|
21
|
-
"toolbar-date-range-shortcut-next-90-days": string;
|
|
22
|
-
"toolbar-date-range-shortcut-next-180-days": string;
|
|
23
|
-
"toolbar-date-range-invalid-start-date": string;
|
|
24
|
-
"toolbar-date-range-invalid-end-date": string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
package/lib/Dialog/index.d.ts
DELETED
package/lib/Drawer/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.less";
|
|
3
|
-
interface DrawerProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
height?: number;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Drawer: (props: DrawerProps) => JSX.Element | null;
|
|
11
|
-
export default Drawer;
|
package/lib/Shortcuts/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import { Dayjs } from "dayjs";
|
|
3
|
-
export declare type PresetType = {
|
|
4
|
-
label?: string;
|
|
5
|
-
getValue?: () => [Dayjs, Dayjs];
|
|
6
|
-
value: [Dayjs, Dayjs] | "today" | "yesterday" | "last_3_days" | "last_7_days" | "last_30_days" | "last_90_days" | "last_180_days" | "tomorrow" | "next_3_days" | "next_7_days" | "next_30_days" | "next_90_days" | "next_180_days";
|
|
7
|
-
key?: string;
|
|
8
|
-
};
|
|
9
|
-
interface ShortcutsProps {
|
|
10
|
-
items: PresetType[];
|
|
11
|
-
onChange: (day: [Dayjs, Dayjs], changeImportance?: "accept" | "set") => void;
|
|
12
|
-
changeImportance?: "accept" | "set";
|
|
13
|
-
}
|
|
14
|
-
declare const Shortcuts: (props: ShortcutsProps) => JSX.Element | null;
|
|
15
|
-
export default Shortcuts;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.less";
|
|
3
|
-
interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
|
|
4
|
-
options: any[];
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @title: 系统级别的下拉框
|
|
8
|
-
* @description:
|
|
9
|
-
* @param {BrowserSelectProps} props
|
|
10
|
-
* @return {*}
|
|
11
|
-
* @Author: zhiwei.Wang
|
|
12
|
-
* @Date: 2024-01-30 16:43
|
|
13
|
-
*/
|
|
14
|
-
declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
|
|
15
|
-
export default BrowserSelect;
|
package/lib/locales/en-US.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'action-bar-cancel': string;
|
|
3
|
-
'action-bar-apply': string;
|
|
4
|
-
'action-bar-start.time': string;
|
|
5
|
-
'action-bar-end.time': string;
|
|
6
|
-
'toolbar-date-range-shortcut-custom': string;
|
|
7
|
-
"toolbar-date-range-shortcut-date-range": string;
|
|
8
|
-
"toolbar-date-range-shortcut-starting": string;
|
|
9
|
-
"toolbar-date-range-shortcut-ending": string;
|
|
10
|
-
"toolbar-date-range-shortcut-today": string;
|
|
11
|
-
"toolbar-date-range-shortcut-yesterday": string;
|
|
12
|
-
"toolbar-date-range-shortcut-tomorrow": string;
|
|
13
|
-
"toolbar-date-range-shortcut-last-3-days": string;
|
|
14
|
-
"toolbar-date-range-shortcut-last-7-days": string;
|
|
15
|
-
"toolbar-date-range-shortcut-last-30-days": string;
|
|
16
|
-
"toolbar-date-range-shortcut-last-90-days": string;
|
|
17
|
-
"toolbar-date-range-shortcut-last-180-days": string;
|
|
18
|
-
"toolbar-date-range-shortcut-next-3-days": string;
|
|
19
|
-
"toolbar-date-range-shortcut-next-7-days": string;
|
|
20
|
-
"toolbar-date-range-shortcut-next-30-days": string;
|
|
21
|
-
"toolbar-date-range-shortcut-next-90-days": string;
|
|
22
|
-
"toolbar-date-range-shortcut-next-180-days": string;
|
|
23
|
-
"toolbar-date-range-invalid-start-date": string;
|
|
24
|
-
"toolbar-date-range-invalid-end-date": string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
package/lib/locales/zh-CN.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"action-bar-cancel": string;
|
|
3
|
-
"action-bar-apply": string;
|
|
4
|
-
"action-bar-start.time": string;
|
|
5
|
-
"action-bar-end.time": string;
|
|
6
|
-
"toolbar-date-range-shortcut-date-range": string;
|
|
7
|
-
"toolbar-date-range-shortcut-starting": string;
|
|
8
|
-
"toolbar-date-range-shortcut-ending": string;
|
|
9
|
-
"toolbar-date-range-shortcut-custom": string;
|
|
10
|
-
"toolbar-date-range-shortcut-today": string;
|
|
11
|
-
"toolbar-date-range-shortcut-yesterday": string;
|
|
12
|
-
"toolbar-date-range-shortcut-tomorrow": string;
|
|
13
|
-
"toolbar-date-range-shortcut-last-3-days": string;
|
|
14
|
-
"toolbar-date-range-shortcut-last-7-days": string;
|
|
15
|
-
"toolbar-date-range-shortcut-last-30-days": string;
|
|
16
|
-
"toolbar-date-range-shortcut-last-90-days": string;
|
|
17
|
-
"toolbar-date-range-shortcut-last-180-days": string;
|
|
18
|
-
"toolbar-date-range-shortcut-next-3-days": string;
|
|
19
|
-
"toolbar-date-range-shortcut-next-7-days": string;
|
|
20
|
-
"toolbar-date-range-shortcut-next-30-days": string;
|
|
21
|
-
"toolbar-date-range-shortcut-next-90-days": string;
|
|
22
|
-
"toolbar-date-range-shortcut-next-180-days": string;
|
|
23
|
-
"toolbar-date-range-invalid-start-date": string;
|
|
24
|
-
"toolbar-date-range-invalid-end-date": string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
package/lib/locales/zh-TW.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'action-bar-cancel': string;
|
|
3
|
-
'action-bar-apply': string;
|
|
4
|
-
'action-bar-start.time': string;
|
|
5
|
-
'action-bar-end.time': string;
|
|
6
|
-
'toolbar-date-range-shortcut-custom': string;
|
|
7
|
-
"toolbar-date-range-shortcut-date-range": string;
|
|
8
|
-
"toolbar-date-range-shortcut-starting": string;
|
|
9
|
-
"toolbar-date-range-shortcut-ending": string;
|
|
10
|
-
"toolbar-date-range-shortcut-today": string;
|
|
11
|
-
"toolbar-date-range-shortcut-yesterday": string;
|
|
12
|
-
"toolbar-date-range-shortcut-tomorrow": string;
|
|
13
|
-
"toolbar-date-range-shortcut-last-3-days": string;
|
|
14
|
-
"toolbar-date-range-shortcut-last-7-days": string;
|
|
15
|
-
"toolbar-date-range-shortcut-last-30-days": string;
|
|
16
|
-
"toolbar-date-range-shortcut-last-90-days": string;
|
|
17
|
-
"toolbar-date-range-shortcut-last-180-days": string;
|
|
18
|
-
"toolbar-date-range-shortcut-next-3-days": string;
|
|
19
|
-
"toolbar-date-range-shortcut-next-7-days": string;
|
|
20
|
-
"toolbar-date-range-shortcut-next-30-days": string;
|
|
21
|
-
"toolbar-date-range-shortcut-next-90-days": string;
|
|
22
|
-
"toolbar-date-range-shortcut-next-180-days": string;
|
|
23
|
-
"toolbar-date-range-invalid-start-date": string;
|
|
24
|
-
"toolbar-date-range-invalid-end-date": string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|