@ray-js/components 1.5.0-beta.12 → 1.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.thing.js +1 -1
- package/lib/Button/Button.wechat.js +1 -1
- package/lib/Camera/Camera.js +1 -1
- package/lib/Camera/Camera.wechat.js +1 -1
- package/lib/CheckboxGroup/CheckboxGroup.js +3 -2
- package/lib/CheckboxGroup/props.d.ts +5 -2
- package/lib/CoverView/CoverView.js +1 -1
- package/lib/CoverView/CoverView.wechat.js +1 -1
- package/lib/Form/Form.wechat.js +1 -0
- package/lib/Icon/Icon.js +5 -4
- package/lib/Icon/Icon.thing.js +5 -4
- package/lib/Icon/Icon.wechat.js +5 -4
- package/lib/Icon/iconfont/iconfont.css +3 -3
- package/lib/Icon/iconfont/iconfont.json +1 -1
- package/lib/Iframe/Iframe.js +1 -1
- package/lib/Image/Image.js +2 -2
- package/lib/Image/Image.wechat.js +2 -1
- package/lib/Input/Input.js +10 -8
- package/lib/Input/Input.thing.js +3 -2
- package/lib/Input/Input.wechat.js +9 -7
- package/lib/Input/props.d.ts +13 -47
- package/lib/IpcPlayer/IpcPlayer.js +1 -1
- package/lib/IpcPlayer/IpcPlayer.wechat.js +1 -1
- package/lib/Map/Map.js +1 -1
- package/lib/MovableView/MovableView.js +2 -2
- package/lib/NativeVideo/NativeVideo.js +1 -1
- package/lib/NativeVideo/NativeVideo.wechat.js +1 -1
- package/lib/PageContainer/PageContainer.js +15 -14
- package/lib/PageContainer/props.d.ts +4 -6
- package/lib/Picker/Picker.js +6 -4
- package/lib/Picker/Picker.thing.js +8 -6
- package/lib/Picker/Picker.wechat.js +8 -6
- package/lib/PickerView/PickerView.js +3 -2
- package/lib/PickerView/PickerView.thing.js +7 -6
- package/lib/PickerView/PickerView.wechat.js +7 -6
- package/lib/RadioGroup/RadioGroup.js +3 -2
- package/lib/RadioGroup/props.d.ts +4 -14
- package/lib/ScrollView/ScrollView.js +3 -3
- package/lib/Slider/Slider.js +5 -4
- package/lib/Slider/Slider.thing.js +5 -4
- package/lib/Slider/Slider.wechat.js +5 -4
- package/lib/Slider/props.d.ts +7 -30
- package/lib/Swiper/Swiper.js +4 -2
- package/lib/Swiper/Swiper.thing.js +3 -2
- package/lib/Swiper/Swiper.wechat.js +3 -2
- package/lib/Swiper/props.d.ts +3 -0
- package/lib/Switch/Switch.js +1 -1
- package/lib/Switch/Switch.thing.js +3 -2
- package/lib/Switch/Switch.wechat.js +3 -2
- package/lib/Switch/props.d.ts +4 -15
- package/lib/Text/Text.wechat.js +1 -0
- package/lib/Textarea/Textarea.js +7 -6
- package/lib/Textarea/Textarea.thing.js +1 -1
- package/lib/Textarea/Textarea.wechat.js +1 -1
- package/lib/Textarea/props.d.ts +10 -3
- package/lib/Video/Video.js +1 -1
- package/lib/Video/Video.wechat.js +1 -1
- package/lib/View/View.js +1 -0
- package/lib/View/View.thing.js +1 -0
- package/lib/View/View.wechat.js +1 -0
- package/lib/WebView/WebView.js +1 -1
- package/lib/core/index.js +1 -1
- package/lib/utils/handleProps.js +2 -1
- package/package.json +9 -9
package/lib/Textarea/props.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { BaseProps, FormEvent } from '../types';
|
3
|
+
import { GenericEvent } from '@ray-js/adapter';
|
3
4
|
export type TextareaEvent = FormEvent<{
|
4
5
|
value: string;
|
5
6
|
}>;
|
@@ -57,17 +58,23 @@ export interface TextareaProps extends BaseProps {
|
|
57
58
|
* @description.zh 输入框聚焦时触发
|
58
59
|
* @default null
|
59
60
|
*/
|
60
|
-
onFocus?: (event:
|
61
|
+
onFocus?: (event: GenericEvent<{
|
62
|
+
value: any;
|
63
|
+
}>) => void;
|
61
64
|
/**
|
62
65
|
* @description.en Triggered when the input box loses focus
|
63
66
|
* @description.zh 输入框失去焦点时触发
|
64
67
|
* @default null
|
65
68
|
*/
|
66
|
-
onBlur?: (event:
|
69
|
+
onBlur?: (event: GenericEvent<{
|
70
|
+
value: any;
|
71
|
+
}>) => void;
|
67
72
|
/**
|
68
73
|
* @description.en Called when the number of lines in the input box changes, event.detail = {height: 0, lineCount: 0}
|
69
74
|
* @description.zh 输入框行数变化时调用,event.detail = {height: 0, lineCount: 0}
|
70
75
|
* @default null
|
71
76
|
*/
|
72
|
-
onLinechange?: (event:
|
77
|
+
onLinechange?: (event: GenericEvent<{
|
78
|
+
value: any;
|
79
|
+
}>) => void;
|
73
80
|
}
|
package/lib/Video/Video.js
CHANGED
@@ -2,6 +2,6 @@ import React from 'react';
|
|
2
2
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
4
4
|
const Video = () => {
|
5
|
-
return /*#__PURE__*/React.createElement("div", null, "
|
5
|
+
return /*#__PURE__*/React.createElement("div", null, "The web side is not implemented yet.");
|
6
6
|
};
|
7
7
|
export default Video;
|
@@ -3,6 +3,6 @@ import { View } from '@ray-js/components';
|
|
3
3
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
5
5
|
function Video() {
|
6
|
-
return /*#__PURE__*/React.createElement(View, null, "
|
6
|
+
return /*#__PURE__*/React.createElement(View, null, "Wechat mini program side has not been implemented");
|
7
7
|
}
|
8
8
|
export default Video;
|
package/lib/View/View.js
CHANGED
@@ -1,6 +1,7 @@
|
|
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";
|
4
5
|
import * as React from 'react';
|
5
6
|
import clsx from 'clsx';
|
6
7
|
import PropTypes from 'prop-types';
|
package/lib/View/View.thing.js
CHANGED
@@ -1,6 +1,7 @@
|
|
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";
|
4
5
|
import * as React from 'react';
|
5
6
|
import clsx from 'clsx';
|
6
7
|
import PropTypes from 'prop-types';
|
package/lib/View/View.wechat.js
CHANGED
@@ -1,6 +1,7 @@
|
|
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";
|
4
5
|
import * as React from 'react';
|
5
6
|
import clsx from 'clsx';
|
6
7
|
import { inlineStyle, useTouch } from '@ray-js/framework-shared';
|
package/lib/WebView/WebView.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
const WebView = () => {
|
3
|
-
return /*#__PURE__*/React.createElement("div", null, "web
|
3
|
+
return /*#__PURE__*/React.createElement("div", null, "The web side is not implemented yet.");
|
4
4
|
};
|
5
5
|
export default WebView;
|
package/lib/core/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export function generateId() {
|
2
|
-
return
|
2
|
+
return "V".concat(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,6 +1,7 @@
|
|
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";
|
4
5
|
import { inlineStyle } from '@ray-js/framework-shared';
|
5
6
|
import { paramCase } from 'param-case';
|
6
7
|
import s2o from 'style-to-object';
|
@@ -13,7 +14,7 @@ const transformStyle = originStyle => {
|
|
13
14
|
}
|
14
15
|
return Object.entries(inlineStyle(tempStyle)).map(_ref => {
|
15
16
|
let [k, v] = _ref;
|
16
|
-
return
|
17
|
+
return "".concat(k, ":").concat(v);
|
17
18
|
}).join(';');
|
18
19
|
};
|
19
20
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "1.5.0
|
3
|
+
"version": "1.5.0",
|
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.
|
31
|
-
"@ray-core/wechat": "^0.
|
32
|
-
"@ray-js/adapter": "
|
33
|
-
"@ray-js/framework-shared": "
|
34
|
-
"ahooks": "^3.7.
|
30
|
+
"@ray-core/macro": "^0.4.0",
|
31
|
+
"@ray-core/wechat": "^0.4.0",
|
32
|
+
"@ray-js/adapter": "1.5.0",
|
33
|
+
"@ray-js/framework-shared": "1.5.0",
|
34
|
+
"ahooks": "^3.7.10",
|
35
35
|
"clsx": "^1.2.1",
|
36
|
-
"core-js": "^3.
|
36
|
+
"core-js": "^3.36.1",
|
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": "
|
43
|
+
"@ray-js/cli": "1.5.0"
|
44
44
|
},
|
45
45
|
"publishConfig": {
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.org"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "acb0b960e4f0cda492b34c950bf9cd8d5b27ec8a"
|
50
50
|
}
|