@ray-js/components 0.4.12-beta-1 → 0.5.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/lib/Button/Button.android.js +1 -1
- package/lib/Button/Button.ios.js +1 -1
- package/lib/Checkbox/Checkbox.android.js +1 -1
- package/lib/Checkbox/Checkbox.ios.js +1 -1
- package/lib/CheckboxGroup/CheckboxGroup.android.js +1 -1
- package/lib/CheckboxGroup/CheckboxGroup.ios.js +1 -1
- package/lib/ClickableSimplified/index.android.js +1 -1
- package/lib/ClickableSimplified/index.ios.js +1 -1
- package/lib/CoverView/CoverView.android.js +1 -1
- package/lib/CoverView/CoverView.ios.js +1 -1
- package/lib/CoverView/CoverView.js +1 -1
- package/lib/DatePicker/DatePicker.android.js +1 -1
- package/lib/DatePicker/DatePicker.ios.js +1 -1
- package/lib/Form/Form.android.js +1 -1
- package/lib/Form/Form.ios.js +1 -1
- package/lib/Icon/Icon.android.js +1 -1
- package/lib/Icon/Icon.ios.js +1 -1
- package/lib/Image/Image.android.js +1 -1
- package/lib/Image/Image.ios.js +1 -1
- package/lib/Input/Input.android.js +1 -1
- package/lib/Input/Input.ios.js +1 -1
- package/lib/IpcPlayer/IpcPlayer.android.js +1 -1
- package/lib/IpcPlayer/IpcPlayer.ios.js +1 -1
- package/lib/IpcPlayer/IpcPlayer.js +1 -1
- package/lib/Label/Label.android.js +1 -1
- package/lib/Label/Label.ios.js +1 -1
- package/lib/LinearGradient/LinearGradient.android.js +1 -1
- package/lib/LinearGradient/LinearGradient.ios.js +1 -1
- package/lib/Modal/Modal.android.js +1 -1
- package/lib/Modal/Modal.ios.js +1 -1
- package/lib/MovableArea/MovableArea.android.js +1 -1
- package/lib/MovableArea/MovableArea.ios.js +1 -1
- package/lib/MovableView/MovableView.android.js +1 -1
- package/lib/MovableView/MovableView.ios.js +1 -1
- package/lib/PageContainer/PageContainer.android.js +1 -1
- package/lib/PageContainer/PageContainer.ios.js +1 -1
- package/lib/PageContainer/PageContainer.js +1 -1
- package/lib/PageContainer/index.md +2 -2
- package/lib/PageContainer/props.d.ts +2 -2
- package/lib/Picker/Picker.android.js +1 -1
- package/lib/Picker/Picker.ios.js +1 -1
- package/lib/PickerView/PickerView.android.js +1 -1
- package/lib/PickerView/PickerView.ios.js +1 -1
- package/lib/PickerViewColumn/PickerViewColumn.android.js +1 -1
- package/lib/PickerViewColumn/PickerViewColumn.ios.js +1 -1
- package/lib/RadialGradient/RadialGradient.android.js +1 -1
- package/lib/RadialGradient/RadialGradient.ios.js +1 -1
- package/lib/Radio/Radio.android.js +1 -1
- package/lib/Radio/Radio.ios.js +1 -1
- package/lib/RadioGroup/RadioGroup.android.js +1 -1
- package/lib/RadioGroup/RadioGroup.ios.js +1 -1
- package/lib/RichText/RichText.android.js +1 -1
- package/lib/RichText/RichText.ios.js +1 -1
- package/lib/ScrollView/ScrollView.android.js +1 -1
- package/lib/ScrollView/ScrollView.ios.js +1 -1
- package/lib/Slider/Slider.android.js +1 -1
- package/lib/Slider/Slider.ios.js +1 -1
- package/lib/Swiper/Swiper.android.js +1 -1
- package/lib/Swiper/Swiper.ios.js +1 -1
- package/lib/SwiperItem/SwiperItem.android.js +1 -1
- package/lib/SwiperItem/SwiperItem.ios.js +1 -1
- package/lib/SwiperItem/SwiperItem.js +1 -1
- package/lib/Switch/Switch.android.js +1 -1
- package/lib/Switch/Switch.ios.js +1 -1
- package/lib/Text/Text.android.js +1 -1
- package/lib/Text/Text.ios.js +1 -1
- package/lib/Textarea/Textarea.android.js +1 -1
- package/lib/Textarea/Textarea.ios.js +1 -1
- package/lib/TimePicker/TimePicker.android.js +1 -1
- package/lib/TimePicker/TimePicker.ios.js +1 -1
- package/lib/View/View.android.js +1 -1
- package/lib/View/View.ios.js +1 -1
- package/lib/utils/handleProps.android.js +1 -1
- package/lib/utils/handleProps.ios.js +1 -1
- package/lib/utils/handleProps.js +11 -2
- package/lib/utils/handleProps.tuya.js +11 -2
- package/lib/utils/handleProps.web.js +11 -2
- package/lib/utils/handleProps.wechat.js +11 -2
- package/package.json +8 -7
package/lib/utils/handleProps.js
CHANGED
@@ -10,9 +10,18 @@ import "core-js/modules/es.array.concat.js";
|
|
10
10
|
import "core-js/modules/es.json.stringify.js";
|
11
11
|
import { inlineStyle } from '@ray-js/framework-shared';
|
12
12
|
import { paramCase } from 'param-case';
|
13
|
+
import s2o from 'style-to-object';
|
13
14
|
|
14
15
|
var transformStyle = function (originStyle) {
|
15
|
-
|
16
|
+
var tempStyle;
|
17
|
+
|
18
|
+
if (typeof originStyle === 'string') {
|
19
|
+
tempStyle = s2o(originStyle);
|
20
|
+
} else {
|
21
|
+
tempStyle = originStyle;
|
22
|
+
}
|
23
|
+
|
24
|
+
return Object.entries(inlineStyle(tempStyle)).map(function (_ref) {
|
16
25
|
var _ref2 = _slicedToArray(_ref, 2),
|
17
26
|
k = _ref2[0],
|
18
27
|
v = _ref2[1];
|
@@ -55,7 +64,7 @@ var handleProps = function (props) {
|
|
55
64
|
style: style && inlineStyle(style),
|
56
65
|
'hover-class': hoverClassName,
|
57
66
|
'hover-style': hoverStyle && transformStyle(hoverStyle),
|
58
|
-
'refresher-default-style': refresherDefaultStyle && transformStyle(
|
67
|
+
'refresher-default-style': refresherDefaultStyle && transformStyle(refresherDefaultStyle),
|
59
68
|
'overlay-style': overlayStyle && transformStyle(overlayStyle),
|
60
69
|
'custom-style': customStyle && transformStyle(customStyle),
|
61
70
|
'indicator-style': indicatorStyle && transformStyle(indicatorStyle),
|
@@ -10,9 +10,18 @@ import "core-js/modules/es.array.concat.js";
|
|
10
10
|
import "core-js/modules/es.json.stringify.js";
|
11
11
|
import { inlineStyle } from '@ray-js/framework-shared';
|
12
12
|
import { paramCase } from 'param-case';
|
13
|
+
import s2o from 'style-to-object';
|
13
14
|
|
14
15
|
var transformStyle = function (originStyle) {
|
15
|
-
|
16
|
+
var tempStyle;
|
17
|
+
|
18
|
+
if (typeof originStyle === 'string') {
|
19
|
+
tempStyle = s2o(originStyle);
|
20
|
+
} else {
|
21
|
+
tempStyle = originStyle;
|
22
|
+
}
|
23
|
+
|
24
|
+
return Object.entries(inlineStyle(tempStyle)).map(function (_ref) {
|
16
25
|
var _ref2 = _slicedToArray(_ref, 2),
|
17
26
|
k = _ref2[0],
|
18
27
|
v = _ref2[1];
|
@@ -55,7 +64,7 @@ var handleProps = function (props) {
|
|
55
64
|
style: style && inlineStyle(style),
|
56
65
|
'hover-class': hoverClassName,
|
57
66
|
'hover-style': hoverStyle && transformStyle(hoverStyle),
|
58
|
-
'refresher-default-style': refresherDefaultStyle && transformStyle(
|
67
|
+
'refresher-default-style': refresherDefaultStyle && transformStyle(refresherDefaultStyle),
|
59
68
|
'overlay-style': overlayStyle && transformStyle(overlayStyle),
|
60
69
|
'custom-style': customStyle && transformStyle(customStyle),
|
61
70
|
'indicator-style': indicatorStyle && transformStyle(indicatorStyle),
|
@@ -10,9 +10,18 @@ import "core-js/modules/es.array.concat.js";
|
|
10
10
|
import "core-js/modules/es.json.stringify.js";
|
11
11
|
import { inlineStyle } from '@ray-js/framework-shared';
|
12
12
|
import { paramCase } from 'param-case';
|
13
|
+
import s2o from 'style-to-object';
|
13
14
|
|
14
15
|
var transformStyle = function (originStyle) {
|
15
|
-
|
16
|
+
var tempStyle;
|
17
|
+
|
18
|
+
if (typeof originStyle === 'string') {
|
19
|
+
tempStyle = s2o(originStyle);
|
20
|
+
} else {
|
21
|
+
tempStyle = originStyle;
|
22
|
+
}
|
23
|
+
|
24
|
+
return Object.entries(inlineStyle(tempStyle)).map(function (_ref) {
|
16
25
|
var _ref2 = _slicedToArray(_ref, 2),
|
17
26
|
k = _ref2[0],
|
18
27
|
v = _ref2[1];
|
@@ -55,7 +64,7 @@ var handleProps = function (props) {
|
|
55
64
|
style: style && inlineStyle(style),
|
56
65
|
'hover-class': hoverClassName,
|
57
66
|
'hover-style': hoverStyle && transformStyle(hoverStyle),
|
58
|
-
'refresher-default-style': refresherDefaultStyle && transformStyle(
|
67
|
+
'refresher-default-style': refresherDefaultStyle && transformStyle(refresherDefaultStyle),
|
59
68
|
'overlay-style': overlayStyle && transformStyle(overlayStyle),
|
60
69
|
'custom-style': customStyle && transformStyle(customStyle),
|
61
70
|
'indicator-style': indicatorStyle && transformStyle(indicatorStyle),
|
@@ -10,9 +10,18 @@ import "core-js/modules/es.array.concat.js";
|
|
10
10
|
import "core-js/modules/es.json.stringify.js";
|
11
11
|
import { inlineStyle } from '@ray-js/framework-shared';
|
12
12
|
import { paramCase } from 'param-case';
|
13
|
+
import s2o from 'style-to-object';
|
13
14
|
|
14
15
|
var transformStyle = function (originStyle) {
|
15
|
-
|
16
|
+
var tempStyle;
|
17
|
+
|
18
|
+
if (typeof originStyle === 'string') {
|
19
|
+
tempStyle = s2o(originStyle);
|
20
|
+
} else {
|
21
|
+
tempStyle = originStyle;
|
22
|
+
}
|
23
|
+
|
24
|
+
return Object.entries(inlineStyle(tempStyle)).map(function (_ref) {
|
16
25
|
var _ref2 = _slicedToArray(_ref, 2),
|
17
26
|
k = _ref2[0],
|
18
27
|
v = _ref2[1];
|
@@ -55,7 +64,7 @@ var handleProps = function (props) {
|
|
55
64
|
style: style && inlineStyle(style),
|
56
65
|
'hover-class': hoverClassName,
|
57
66
|
'hover-style': hoverStyle && transformStyle(hoverStyle),
|
58
|
-
'refresher-default-style': refresherDefaultStyle && transformStyle(
|
67
|
+
'refresher-default-style': refresherDefaultStyle && transformStyle(refresherDefaultStyle),
|
59
68
|
'overlay-style': overlayStyle && transformStyle(overlayStyle),
|
60
69
|
'custom-style': customStyle && transformStyle(customStyle),
|
61
70
|
'indicator-style': indicatorStyle && transformStyle(indicatorStyle),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.0",
|
4
4
|
"description": "Ray basic components",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -24,10 +24,10 @@
|
|
24
24
|
"watch": "ray start --type=component"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@ray-core/macro": "^0.0.4
|
28
|
-
"@ray-core/wechat": "^0.0.4
|
29
|
-
"@ray-js/framework-shared": "^0.
|
30
|
-
"@ray-js/remax-tuya": "^0.
|
27
|
+
"@ray-core/macro": "^0.0.4",
|
28
|
+
"@ray-core/wechat": "^0.0.4",
|
29
|
+
"@ray-js/framework-shared": "^0.5.0",
|
30
|
+
"@ray-js/remax-tuya": "^0.5.0",
|
31
31
|
"antd-mobile": "^5.0.0-beta.17",
|
32
32
|
"antd-mobile-icons": "^0.2.2",
|
33
33
|
"clsx": "^1.1.1",
|
@@ -38,13 +38,14 @@
|
|
38
38
|
"react-autosize-textarea": "^7.1.0",
|
39
39
|
"react-native-swiper": "^1.6.0",
|
40
40
|
"shifty": "^2.15.2",
|
41
|
+
"style-to-object": "^0.3.0",
|
41
42
|
"tuya-panel-icon": "^0.1.1",
|
42
43
|
"tuya-panel-motion": "^0.0.2",
|
43
44
|
"tuya-panel-slider": "^0.1.1",
|
44
45
|
"tuya-panel-switch": "^0.1.1"
|
45
46
|
},
|
46
47
|
"devDependencies": {
|
47
|
-
"@ray-js/cli": "^0.
|
48
|
+
"@ray-js/cli": "^0.5.0"
|
48
49
|
},
|
49
50
|
"maintainers": [
|
50
51
|
{
|
@@ -52,6 +53,6 @@
|
|
52
53
|
"email": "tuyafe@tuya.com"
|
53
54
|
}
|
54
55
|
],
|
55
|
-
"gitHead": "
|
56
|
+
"gitHead": "5f49ac5a276532472d10aa60ec21c9a5f0b28ce8",
|
56
57
|
"repository": {}
|
57
58
|
}
|