@momo-kits/carousel 0.0.53-beta.4 → 0.0.53-beta.42

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/CarouselV2.js CHANGED
@@ -1185,6 +1185,7 @@ export default class Carousel extends React.PureComponent {
1185
1185
  style,
1186
1186
  useExperimentalSnap,
1187
1187
  disableIntervalMomentum,
1188
+ vertical,
1188
1189
  } = this.props;
1189
1190
 
1190
1191
  const containerStyle = [
@@ -1213,7 +1214,15 @@ export default class Carousel extends React.PureComponent {
1213
1214
  };
1214
1215
 
1215
1216
  const contentContainerStyle = [
1216
- !useExperimentalSnap ? innerMarginStyle : {},
1217
+ vertical
1218
+ ? {
1219
+ paddingTop: this._getContainerInnerMargin(),
1220
+ paddingBottom: this._getContainerInnerMargin(true),
1221
+ }
1222
+ : {
1223
+ paddingLeft: this._getContainerInnerMargin(),
1224
+ paddingRight: this._getContainerInnerMargin(true),
1225
+ },
1217
1226
  contentContainerCustomStyle || {},
1218
1227
  ];
1219
1228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/carousel",
3
- "version": "0.0.53-beta.4",
3
+ "version": "0.0.53-beta.42",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {
package/publish.sh CHANGED
@@ -21,9 +21,9 @@ rsync -r --verbose --exclude '*.mdx' --exclude '*Demo.js' --exclude 'props-type
21
21
  #npm login
22
22
  #publish dist to npm
23
23
  cd dist
24
- npm publish --tag beta --access=public --otp=734211
24
+ npm publish --tag beta --access=public
25
25
  cd ..
26
26
  rm -rf dist
27
27
 
28
28
 
29
- curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/carousel new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/carousel"}'
29
+ curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/carousel new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/carousel"}'