@momo-kits/calendar 0.120.0-rc.9 → 0.121.0-rc.10

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