@momo-kits/foundation 0.92.8 → 0.92.9-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/Input/InputDropDown.tsx +2 -2
- package/package.json +2 -2
- package/publish.sh +16 -16
package/Input/InputDropDown.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import {ApplicationContext, ComponentContext} from '../Application';
|
|
|
4
4
|
import {Styles} from '../Consts';
|
|
5
5
|
import {Icon} from '../Icon';
|
|
6
6
|
import {Loader} from '../Loader';
|
|
7
|
-
import {ErrorView, FloatingView,
|
|
7
|
+
import {ErrorView, FloatingView, getSizeStyle} from './common';
|
|
8
8
|
import {InputDropDownProps} from './index';
|
|
9
9
|
import styles from './styles';
|
|
10
10
|
|
|
@@ -61,7 +61,7 @@ const InputDropDown = ({
|
|
|
61
61
|
styles.inputWrapper,
|
|
62
62
|
{backgroundColor: theme.colors.background.surface},
|
|
63
63
|
getSizeStyle(size),
|
|
64
|
-
getBorderColor(theme, false, errorMessage, disabled),
|
|
64
|
+
// getBorderColor(theme, false, errorMessage, disabled),
|
|
65
65
|
]}>
|
|
66
66
|
<FloatingView
|
|
67
67
|
floatingValue={floatingValue}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/foundation",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.9-beta.0",
|
|
4
4
|
"description": "React Native Component Kits",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {},
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
},
|
|
44
44
|
"author": "@momo-kits/foundation",
|
|
45
45
|
"license": "ISC"
|
|
46
|
-
}
|
|
46
|
+
}
|
package/publish.sh
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Prepare dist files
|
|
2
4
|
rm -rf dist
|
|
3
5
|
mkdir dist
|
|
4
|
-
|
|
5
|
-
cp . ./dist
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# GET VERSION from mck_package.json
|
|
9
|
-
VERSIONSTRING=( v$(jq .version package.json) )
|
|
10
|
-
VERSION=(${VERSIONSTRING//[\"]/})
|
|
11
|
-
echo VERSION: $VERSION
|
|
12
|
-
|
|
13
|
-
rsync -r --verbose --exclude '*.mdx' --exclude '*Demo.js' --exclude 'props-type.js' --exclude 'prop-types.js' ./* dist
|
|
14
|
-
|
|
6
|
+
rsync -r --exclude=/dist ./* dist
|
|
15
7
|
cd dist
|
|
16
|
-
npm publish --tag latest --access=public
|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
PACKAGE_NAME=$(npm pkg get name)
|
|
10
|
+
if [ "$1" == "beta" ]; then # Publish beta
|
|
11
|
+
npm version $(npm view "$PACKAGE_NAME@beta" version)
|
|
12
|
+
npm version prepatch --preid=beta
|
|
13
|
+
npm publish --tag beta --access=public
|
|
14
|
+
else # Publish latest
|
|
15
|
+
npm version $(npm view $PACKAGE_NAME version)
|
|
16
|
+
npm version patch
|
|
17
|
+
npm publish --tag latest --access=public
|
|
18
|
+
fi
|
|
19
|
+
NEW_PACKAGE_VERSION=$(npm pkg get version)
|
|
20
|
+
|
|
21
|
+
# Clean up
|
|
19
22
|
cd ..
|
|
20
23
|
rm -rf dist
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
#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/core new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/foundation"}'
|