@momo-kits/calendar 0.92.34 → 0.102.1-beta.1

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/CalendarPro.tsx CHANGED
@@ -116,7 +116,8 @@ export default class CalendarPro extends Component<
116
116
  if (maxValid && !minValid) {
117
117
  min = max.subtract(12, 'months');
118
118
  }
119
- if (min.isSameOrAfter(max)) return {};
119
+ if (min.isSame(max) && this.props.isDoubleDateMode) return {};
120
+ if (min.isAfter(max)) return {};
120
121
  this.minDate = min;
121
122
  this.maxDate = max;
122
123
  };
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
- "name": "@momo-kits/calendar",
3
- "version": "0.92.34",
4
- "private": false,
5
- "main": "index.tsx",
6
- "peerDependencies": {
7
- "@momo-kits/foundation": "latest",
8
- "react": "16.9.0",
9
- "react-native": ">=0.55",
10
- "prop-types": "^15.7.2"
11
- },
12
- "devDependencies": {
13
- "@momo-platform/versions": "4.1.11"
14
- },
15
- "license": "MoMo",
16
- "dependencies": {
17
- "moment": "^2.24.0"
18
- }
2
+ "name": "@momo-kits/calendar",
3
+ "version": "0.102.1-beta.1",
4
+ "private": false,
5
+ "main": "index.tsx",
6
+ "peerDependencies": {
7
+ "@momo-kits/foundation": "latest",
8
+ "react": "16.9.0",
9
+ "react-native": ">=0.55",
10
+ "prop-types": "^15.7.2"
11
+ },
12
+ "devDependencies": {
13
+ "@momo-platform/versions": "4.1.11"
14
+ },
15
+ "license": "MoMo",
16
+ "dependencies": {
17
+ "moment": "^2.24.0"
18
+ }
19
19
  }
package/publish.sh CHANGED
@@ -11,7 +11,7 @@ if [ "$1" == "stable" ]; then
11
11
  npm version patch
12
12
  npm publish --tag stable --access=public
13
13
  elif [ "$1" == "latest" ]; then
14
- npm version $(npm view @momo-kits/foundation@stable version)
14
+ npm version $(npm view @momo-kits/foundation@latest version)
15
15
  npm publish --tag latest --access=public
16
16
  else
17
17
  npm version $(npm view @momo-kits/calendar@beta version)