@pisell/date-picker 1.0.92 → 1.0.93

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.
Files changed (37) hide show
  1. package/es/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
  2. package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
  3. package/package.json +2 -2
  4. package/es/CustomCalendarHeader/index.d.ts +0 -2
  5. package/es/Dialog/index.d.ts +0 -2
  6. package/es/Drawer/index.d.ts +0 -11
  7. package/es/PisellDateRangePicker/LocaleContext.d.ts +0 -2
  8. package/es/Shortcuts/index.d.ts +0 -15
  9. package/es/browserSelect/index.d.ts +0 -15
  10. package/es/hooks/useDocumentVisibility.d.ts +0 -2
  11. package/es/hooks/useNextDay.d.ts +0 -2
  12. package/es/hooks/useUpdateEffect.d.ts +0 -2
  13. package/es/icon/ChevronLeft.d.ts +0 -5
  14. package/es/icon/ChevronLeftDouble.d.ts +0 -5
  15. package/es/icon/ChevronRight.d.ts +0 -5
  16. package/es/icon/ChevronRightDouble.d.ts +0 -5
  17. package/es/icon/CloseCircle.d.ts +0 -5
  18. package/es/locales/en-US.d.ts +0 -26
  19. package/es/locales/zh-CN.d.ts +0 -26
  20. package/es/locales/zh-TW.d.ts +0 -26
  21. package/lib/CustomCalendarHeader/index.d.ts +0 -2
  22. package/lib/Dialog/index.d.ts +0 -2
  23. package/lib/Drawer/index.d.ts +0 -11
  24. package/lib/PisellDateRangePicker/LocaleContext.d.ts +0 -2
  25. package/lib/Shortcuts/index.d.ts +0 -15
  26. package/lib/browserSelect/index.d.ts +0 -15
  27. package/lib/hooks/useDocumentVisibility.d.ts +0 -2
  28. package/lib/hooks/useNextDay.d.ts +0 -2
  29. package/lib/hooks/useUpdateEffect.d.ts +0 -2
  30. package/lib/icon/ChevronLeft.d.ts +0 -5
  31. package/lib/icon/ChevronLeftDouble.d.ts +0 -5
  32. package/lib/icon/ChevronRight.d.ts +0 -5
  33. package/lib/icon/ChevronRightDouble.d.ts +0 -5
  34. package/lib/icon/CloseCircle.d.ts +0 -5
  35. package/lib/locales/en-US.d.ts +0 -26
  36. package/lib/locales/zh-CN.d.ts +0 -26
  37. package/lib/locales/zh-TW.d.ts +0 -26
@@ -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: any;
11
+ declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
11
12
  export { DateRangePickerToolbar };
@@ -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: any;
11
+ declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
11
12
  export { DateRangePickerToolbar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
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.30"
29
+ "@pisell/utils": "1.0.31"
30
30
  },
31
31
  "files": [
32
32
  "es",
@@ -1,2 +0,0 @@
1
- declare const CustomCalendarHeader: (props: any) => JSX.Element;
2
- export default CustomCalendarHeader;
@@ -1,2 +0,0 @@
1
- declare const Dialog: (props: any) => JSX.Element;
2
- export default Dialog;
@@ -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;
@@ -1,2 +0,0 @@
1
- export declare const LocaleContext: any;
2
- export declare const LocaleProvider: any;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const useDocumentVisibility: () => any;
2
- export default useDocumentVisibility;
@@ -1,2 +0,0 @@
1
- declare const useNextDay: (fn: Function) => void;
2
- export default useNextDay;
@@ -1,2 +0,0 @@
1
- declare const useUpdateEffect: (fn: Function, deps: any[]) => void;
2
- export default useUpdateEffect;
@@ -1,5 +0,0 @@
1
- declare const ChevronLeft: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronLeft;
@@ -1,5 +0,0 @@
1
- declare const ChevronLeftDouble: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronLeftDouble;
@@ -1,5 +0,0 @@
1
- declare const ChevronRight: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronRight;
@@ -1,5 +0,0 @@
1
- declare const ChevronRightDouble: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronRightDouble;
@@ -1,5 +0,0 @@
1
- declare const CloseCircle: (props: {
2
- className: string;
3
- onClick: any;
4
- }) => JSX.Element;
5
- export default CloseCircle;
@@ -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;
@@ -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;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const CustomCalendarHeader: (props: any) => JSX.Element;
2
- export default CustomCalendarHeader;
@@ -1,2 +0,0 @@
1
- declare const Dialog: (props: any) => JSX.Element;
2
- export default Dialog;
@@ -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;
@@ -1,2 +0,0 @@
1
- export declare const LocaleContext: any;
2
- export declare const LocaleProvider: any;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const useDocumentVisibility: () => any;
2
- export default useDocumentVisibility;
@@ -1,2 +0,0 @@
1
- declare const useNextDay: (fn: Function) => void;
2
- export default useNextDay;
@@ -1,2 +0,0 @@
1
- declare const useUpdateEffect: (fn: Function, deps: any[]) => void;
2
- export default useUpdateEffect;
@@ -1,5 +0,0 @@
1
- declare const ChevronLeft: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronLeft;
@@ -1,5 +0,0 @@
1
- declare const ChevronLeftDouble: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronLeftDouble;
@@ -1,5 +0,0 @@
1
- declare const ChevronRight: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronRight;
@@ -1,5 +0,0 @@
1
- declare const ChevronRightDouble: (props: {
2
- className?: string | undefined;
3
- onClick?: any;
4
- }) => JSX.Element;
5
- export default ChevronRightDouble;
@@ -1,5 +0,0 @@
1
- declare const CloseCircle: (props: {
2
- className: string;
3
- onClick: any;
4
- }) => JSX.Element;
5
- export default CloseCircle;
@@ -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;
@@ -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;
@@ -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;