@shophost/react 2.0.33 → 2.0.34

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/ui/calendar.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { DayPickerRangeProps, DayPickerSingleProps, Matcher } from 'react-day-picker';
1
+ import { DateRange, Matcher, PropsSingle, PropsRange } from 'react-day-picker';
2
2
  type OmitKeys<T, K extends keyof T> = {
3
3
  [P in keyof T as P extends K ? never : P]: T[P];
4
4
  };
5
- type KeysToOmit = 'showWeekNumber' | 'captionLayout' | 'mode';
6
- type SingleProps = OmitKeys<DayPickerSingleProps, KeysToOmit>;
7
- type RangeProps = OmitKeys<DayPickerRangeProps, KeysToOmit>;
5
+ type KeysToOmit = 'captionLayout' | 'mode';
6
+ type SingleProps = OmitKeys<PropsSingle, KeysToOmit>;
7
+ type RangeProps = OmitKeys<PropsRange, KeysToOmit>;
8
8
  type CalendarProps = ({
9
9
  mode: 'single';
10
10
  } & SingleProps) | ({
@@ -18,4 +18,4 @@ declare const Calendar: {
18
18
  }): import("react/jsx-runtime").JSX.Element;
19
19
  displayName: string;
20
20
  };
21
- export { Calendar, type Matcher };
21
+ export { Calendar, type DateRange, type Matcher };