@momo-kits/calendar 0.121.0-rc.11 → 0.121.0-rc.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/calendar",
3
- "version": "0.121.0-rc.11",
3
+ "version": "0.121.0-rc.3",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {
package/types.ts CHANGED
@@ -5,9 +5,8 @@ export type Holidays = {
5
5
  solar: object;
6
6
  lunar: any[];
7
7
  mixedLabel?: string;
8
- label?: string;
9
- day: number;
10
- month: number;
8
+ day?: number;
9
+ month?: number;
11
10
  };
12
11
 
13
12
  export type PriceInfo = {
@@ -60,7 +59,7 @@ export type CalendarProState = {
60
59
 
61
60
  export type DoubleDate = {
62
61
  first: Moment.Moment;
63
- second: Moment.Moment | null;
62
+ second: Moment.Moment;
64
63
  };
65
64
 
66
65
  export type CalendarProps = {
@@ -145,7 +144,7 @@ export type MonthListState = {
145
144
  };
146
145
 
147
146
  export type MonthListRef = {
148
- scrollToMonth: (date: Moment.Moment) => void;
147
+ scrollToMonth: () => void;
149
148
  };
150
149
 
151
150
  export type MonthProps = {
@@ -164,10 +163,10 @@ export type MonthProps = {
164
163
 
165
164
  export type DayProps = {
166
165
  onChoose?: (date: Moment.Moment) => void;
167
- date?: Moment.Moment;
166
+ date: Moment.Moment;
168
167
  minDate: Moment.Moment;
169
168
  maxDate: Moment.Moment;
170
- isEmpty?: boolean;
169
+ empty: Moment.Moment;
171
170
  index: number;
172
171
  isShowLunar: boolean;
173
172
  isDoubleDateMode: boolean;