@ray-js/components 1.5.0-beta.11 → 1.5.0-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Camera/Camera.d.ts +2 -1
- package/lib/Camera/Camera.js +0 -2
- package/lib/Form/Form.wechat.js +0 -1
- package/lib/Icon/Icon.js +3 -3
- package/lib/Icon/Icon.thing.js +3 -3
- package/lib/Icon/Icon.wechat.js +3 -3
- package/lib/Image/Image.wechat.js +0 -1
- package/lib/Input/Input.js +0 -1
- package/lib/Input/Input.thing.js +0 -1
- package/lib/Input/Input.wechat.js +0 -1
- package/lib/IpcPlayer/IpcPlayer.d.ts +2 -1
- package/lib/IpcPlayer/IpcPlayer.js +0 -2
- package/lib/NativeVideo/NativeVideo.d.ts +2 -1
- package/lib/NativeVideo/NativeVideo.js +0 -2
- package/lib/Picker/Picker.js +0 -1
- package/lib/Picker/Picker.thing.js +0 -1
- package/lib/Picker/Picker.wechat.js +0 -1
- package/lib/Swiper/Swiper.js +0 -1
- package/lib/Swiper/Swiper.thing.js +0 -1
- package/lib/Swiper/Swiper.wechat.js +0 -1
- package/lib/Text/Text.wechat.js +0 -1
- package/lib/View/View.js +0 -1
- package/lib/View/View.thing.js +0 -1
- package/lib/View/View.wechat.js +0 -1
- package/lib/core/index.js +1 -1
- package/lib/utils/handleProps.js +1 -2
- package/package.json +8 -8
package/lib/Camera/Camera.d.ts
CHANGED
package/lib/Camera/Camera.js
CHANGED
package/lib/Form/Form.wechat.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import { Form as RemaxForm } from '@ray-core/wechat';
|
7
6
|
import { useTouch } from '@ray-js/framework-shared';
|
package/lib/Icon/Icon.js
CHANGED
@@ -11,10 +11,10 @@ const Icon = props => {
|
|
11
11
|
style
|
12
12
|
} = props;
|
13
13
|
return /*#__PURE__*/React.createElement(Text, {
|
14
|
-
className:
|
14
|
+
className: `iconfont ${type}`,
|
15
15
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
16
|
-
color:
|
17
|
-
fontSize:
|
16
|
+
color: `${color}`,
|
17
|
+
fontSize: `${size}px`
|
18
18
|
})
|
19
19
|
});
|
20
20
|
};
|
package/lib/Icon/Icon.thing.js
CHANGED
@@ -10,10 +10,10 @@ const Icon = props => {
|
|
10
10
|
style
|
11
11
|
} = props;
|
12
12
|
return /*#__PURE__*/React.createElement(Text, {
|
13
|
-
className:
|
13
|
+
className: `iconfont ${type}`,
|
14
14
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
15
|
-
color:
|
16
|
-
fontSize:
|
15
|
+
color: `${color}`,
|
16
|
+
fontSize: `${size}px`
|
17
17
|
})
|
18
18
|
});
|
19
19
|
};
|
package/lib/Icon/Icon.wechat.js
CHANGED
@@ -11,10 +11,10 @@ const Icon = props => {
|
|
11
11
|
style
|
12
12
|
} = props;
|
13
13
|
return /*#__PURE__*/React.createElement(Text, {
|
14
|
-
className:
|
14
|
+
className: `iconfont ${type}`,
|
15
15
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
16
|
-
color:
|
17
|
-
fontSize:
|
16
|
+
color: `${color}`,
|
17
|
+
fontSize: `${size}px`
|
18
18
|
})
|
19
19
|
});
|
20
20
|
};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["style", "className", "onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onLoad", "onError", "mode"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
package/lib/Input/Input.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["placeholderStyle", "className", "maxLength", "onBlur", "onFocus", "onConfirm"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import { useEventListener } from 'ahooks';
|
package/lib/Input/Input.thing.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import { Input as RemaxInput } from '@ray-js/adapter';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import { Input as RemaxInput } from '@ray-core/wechat';
|
package/lib/Picker/Picker.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
package/lib/Swiper/Swiper.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
// import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import handleProps from '../utils/handleProps';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import { inlineStyle } from '@ray-js/framework-shared';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import clsx from 'clsx';
|
6
5
|
import * as React from 'react';
|
7
6
|
import { inlineStyle } from '@ray-js/framework-shared';
|
package/lib/Text/Text.wechat.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import { Text as RemaxText } from '@ray-core/wechat';
|
7
6
|
import { useTouch } from '@ray-js/framework-shared';
|
package/lib/View/View.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["id", "className", "style", "children", "hoverClassName", "hoverStartTime", "hoverStayTime", "hoverable", "onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onTransitionEnd"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import PropTypes from 'prop-types';
|
package/lib/View/View.thing.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["id", "className", "style", "hoverClassName", "hoverStartTime", "hoverStayTime", "children", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "hoverable", "onTransitionEnd"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import PropTypes from 'prop-types';
|
package/lib/View/View.wechat.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["id", "className", "style", "hoverClassName", "hoverStartTime", "hoverStayTime", "children", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "hoverable", "onTransitionEnd"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import * as React from 'react';
|
6
5
|
import clsx from 'clsx';
|
7
6
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
package/lib/core/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export function generateId() {
|
2
|
-
return
|
2
|
+
return `V${Math.random().toString(32).substr(2, 6).toUpperCase()}`;
|
3
3
|
}
|
4
4
|
export function nextFrame(duration) {
|
5
5
|
return new Promise(resolve => setTimeout(resolve, duration !== null && duration !== void 0 ? duration : 1000 / 30));
|
package/lib/utils/handleProps.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
3
|
const _excluded = ["className", "hoverClassName", "hoverStyle", "refresherDefaultStyle", "overlayStyle", "customStyle", "indicatorStyle", "maskStyle", "placeholderStyle", "borderStyle", "style", "children"];
|
4
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
5
4
|
import { inlineStyle } from '@ray-js/framework-shared';
|
6
5
|
import { paramCase } from 'param-case';
|
7
6
|
import s2o from 'style-to-object';
|
@@ -14,7 +13,7 @@ const transformStyle = originStyle => {
|
|
14
13
|
}
|
15
14
|
return Object.entries(inlineStyle(tempStyle)).map(_ref => {
|
16
15
|
let [k, v] = _ref;
|
17
|
-
return
|
16
|
+
return `${k}:${v}`;
|
18
17
|
}).join(';');
|
19
18
|
};
|
20
19
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "1.5.0-beta.
|
3
|
+
"version": "1.5.0-beta.12",
|
4
4
|
"description": "Ray basic components",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -27,24 +27,24 @@
|
|
27
27
|
"watch": "ray start --type=component"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@ray-core/macro": "^0.3.
|
31
|
-
"@ray-core/wechat": "^0.3.
|
32
|
-
"@ray-js/adapter": "^1.5.0-beta.
|
33
|
-
"@ray-js/framework-shared": "^1.5.0-beta.
|
30
|
+
"@ray-core/macro": "^0.3.9",
|
31
|
+
"@ray-core/wechat": "^0.3.9",
|
32
|
+
"@ray-js/adapter": "^1.5.0-beta.12",
|
33
|
+
"@ray-js/framework-shared": "^1.5.0-beta.12",
|
34
34
|
"ahooks": "^3.7.8",
|
35
35
|
"clsx": "^1.2.1",
|
36
|
-
"core-js": "^3.
|
36
|
+
"core-js": "^3.35.0",
|
37
37
|
"hooks": "^0.3.2",
|
38
38
|
"param-case": "^3.0.4",
|
39
39
|
"react": "^17.0.2",
|
40
40
|
"style-to-object": "^0.3.0"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@ray-js/cli": "^1.5.0-beta.
|
43
|
+
"@ray-js/cli": "^1.5.0-beta.12"
|
44
44
|
},
|
45
45
|
"publishConfig": {
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.org"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "7fb9ae94b8896c81a6b6556099107cb2daab9c9b"
|
50
50
|
}
|