@pisell/date-picker 1.0.55 → 1.0.56

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from "antd";
2
3
  import { Dayjs } from "dayjs";
3
4
  import "./index.less";
@@ -64,4 +64,3 @@ export interface PisellDateRangePickerProps {
64
64
  }
65
65
  declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
66
66
  export default PisellDateRangePicker;
67
- //# sourceMappingURL=index.d.ts.map
@@ -183,6 +183,9 @@ var PisellDateRangePicker = function PisellDateRangePicker(props) {
183
183
  },
184
184
  popper: {
185
185
  className: popupClassName
186
+ },
187
+ mobilePaper: {
188
+ className: popupClassName
186
189
  }
187
190
  }
188
191
  }));
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  import { Dayjs } from "dayjs";
3
4
  export declare type PresetType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { DateRangeCalendarProps } from '../DateRangeCalendar';
3
4
  export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewWithMeridiem> extends DateRangeCalendarProps<TDate> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { UseDesktopRangePickerParams, UseDesktopRangePickerProps } from './useDesktopRangePicker.types';
3
4
  export declare const useDesktopRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseDesktopRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseDesktopRangePickerParams<TDate, TView, TExternalProps>) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { UseMobileRangePickerParams, UseMobileRangePickerProps } from './useMobileRangePicker.types';
3
4
  export declare const useMobileRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseMobileRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseMobileRangePickerParams<TDate, TView, TExternalProps>) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStaticRangePicker.types';
3
4
  /**
@@ -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: "start" | "end";
8
+ dateName: "end" | "start";
9
9
  value: string;
10
10
  format: string;
11
11
  maxLength: number | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from "antd";
2
3
  import { Dayjs } from "dayjs";
3
4
  import "./index.less";
@@ -64,4 +64,3 @@ export interface PisellDateRangePickerProps {
64
64
  }
65
65
  declare const PisellDateRangePicker: (props: PisellDateRangePickerProps) => JSX.Element;
66
66
  export default PisellDateRangePicker;
67
- //# sourceMappingURL=index.d.ts.map
@@ -200,6 +200,9 @@ var PisellDateRangePicker = (props) => {
200
200
  },
201
201
  popper: {
202
202
  className: popupClassName
203
+ },
204
+ mobilePaper: {
205
+ className: popupClassName
203
206
  }
204
207
  }
205
208
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  import { Dayjs } from "dayjs";
3
4
  export declare type PresetType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { DateRangeCalendarProps } from '../DateRangeCalendar';
3
4
  export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewWithMeridiem> extends DateRangeCalendarProps<TDate> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { UseDesktopRangePickerParams, UseDesktopRangePickerProps } from './useDesktopRangePicker.types';
3
4
  export declare const useDesktopRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseDesktopRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseDesktopRangePickerParams<TDate, TView, TExternalProps>) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { UseMobileRangePickerParams, UseMobileRangePickerProps } from './useMobileRangePicker.types';
3
4
  export declare const useMobileRangePicker: <TDate, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UseMobileRangePickerProps<TDate, TView, any, TExternalProps>>({ props, ...pickerParams }: UseMobileRangePickerParams<TDate, TView, TExternalProps>) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
2
3
  import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStaticRangePicker.types';
3
4
  /**
@@ -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: "start" | "end";
8
+ dateName: "end" | "start";
9
9
  value: string;
10
10
  format: string;
11
11
  maxLength: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],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