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

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/calendar",
3
- "version": "0.92.34",
3
+ "version": "0.102.1-beta.0",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {
@@ -16,4 +16,4 @@
16
16
  "dependencies": {
17
17
  "moment": "^2.24.0"
18
18
  }
19
- }
19
+ }
package/publish.sh CHANGED
@@ -7,15 +7,15 @@ rsync -r --exclude=/dist ./* dist
7
7
  cd dist
8
8
 
9
9
  if [ "$1" == "stable" ]; then
10
- npm version $(npm view @momo-kits/calendar@stable version)
11
- npm version patch
10
+ #npm version $(npm view @momo-kits/calendar@stable version)
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
- npm version $(npm view @momo-kits/calendar@beta version)
18
- npm version prerelease --preid=beta
17
+ #npm version $(npm view @momo-kits/calendar@beta version)
18
+ #npm version prerelease --preid=beta
19
19
  npm publish --tag beta --access=public
20
20
  fi
21
21