@ray-js/components 1.6.0-beta.8 → 1.6.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/props.d.ts +0 -1
- package/lib/CheckboxGroup/CheckboxGroup.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.thing.js +1 -0
- package/lib/CheckboxGroup/CheckboxGroup.wechat.js +1 -0
- package/lib/CheckboxGroup/props.d.ts +0 -1
- package/lib/Modal/index.web.d.ts +2 -0
- package/lib/PickerView/PickerView.js +1 -0
- package/lib/RadioGroup/RadioGroup.js +1 -0
- package/lib/RadioGroup/RadioGroup.thing.js +1 -0
- package/lib/RadioGroup/RadioGroup.wechat.js +1 -0
- package/lib/RadioGroup/props.d.ts +0 -1
- package/lib/Swiper/Swiper.js +1 -0
- package/lib/Swiper/Swiper.thing.js +1 -0
- package/lib/Swiper/Swiper.wechat.js +1 -0
- package/lib/SwiperItem/props.d.ts +0 -1
- package/lib/Switch/props.d.ts +0 -1
- package/lib/Text/props.d.ts +0 -1
- package/lib/Video/Video.d.ts +3 -2
- package/lib/Video/Video.js +1 -3
- package/lib/Video/Video.wechat.d.ts +2 -1
- package/lib/Video/Video.wechat.js +2 -4
- package/lib/core/index.js +2 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/types/index.d.ts +7 -0
- package/lib/utils/handleProps.js +2 -0
- package/package.json +10 -10
- package/lib/Icon/Icon.d.ts +0 -5
- package/lib/Icon/Icon.js +0 -24
- package/lib/Icon/Icon.thing.d.ts +0 -5
- package/lib/Icon/Icon.thing.js +0 -22
- package/lib/Icon/Icon.wechat.d.ts +0 -5
- package/lib/Icon/Icon.wechat.js +0 -24
- package/lib/Icon/iconfont/iconfont.css +0 -768
- package/lib/Icon/iconfont/iconfont.js +0 -40
- package/lib/Icon/iconfont/iconfont.json +0 -1318
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Icon/index.d.ts +0 -3
- package/lib/Icon/index.js +0 -3
- package/lib/Icon/index.less +0 -5
- package/lib/Icon/props.d.ts +0 -23
- package/lib/Icon/props.js +0 -5
package/lib/Button/props.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import "core-js/modules/esnext.iterator.map.js";
|
3
4
|
import * as React from 'react';
|
4
5
|
import handleProps from '../utils/handleProps';
|
5
6
|
import Label from '../Label';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import "core-js/modules/esnext.iterator.map.js";
|
3
4
|
import * as React from 'react';
|
4
5
|
import clsx from 'clsx';
|
5
6
|
import { useEventListener } from 'ahooks';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
|
+
import "core-js/modules/esnext.iterator.map.js";
|
3
4
|
import * as React from 'react';
|
4
5
|
import { useEventListener } from 'ahooks';
|
5
6
|
import handleProps from '../utils/handleProps';
|
@@ -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 = ["options", "name", "disabled", "onChange", "children", "style"];
|
4
|
+
import "core-js/modules/esnext.iterator.map.js";
|
4
5
|
import * as React from 'react';
|
5
6
|
import { RadioGroup as RemaxRadioGroup } from '@ray-js/adapter';
|
6
7
|
import Radio from '../Radio';
|
package/lib/Swiper/Swiper.js
CHANGED
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
4
4
|
const _excluded = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
|
5
|
+
import "core-js/modules/esnext.iterator.map.js";
|
5
6
|
import "core-js/modules/web.dom-collections.iterator.js";
|
6
7
|
// import clsx from 'clsx';
|
7
8
|
import * as React from 'react';
|
@@ -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", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
|
4
|
+
import "core-js/modules/esnext.iterator.map.js";
|
4
5
|
import "core-js/modules/web.dom-collections.iterator.js";
|
5
6
|
import clsx from 'clsx';
|
6
7
|
import * as React from 'react';
|
@@ -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", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
|
4
|
+
import "core-js/modules/esnext.iterator.map.js";
|
4
5
|
import "core-js/modules/web.dom-collections.iterator.js";
|
5
6
|
import clsx from 'clsx';
|
6
7
|
import * as React from 'react';
|
package/lib/Switch/props.d.ts
CHANGED
package/lib/Text/props.d.ts
CHANGED
package/lib/Video/Video.d.ts
CHANGED
package/lib/Video/Video.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { View } from '@ray-js/components';
|
3
|
-
|
4
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
5
|
-
function Video() {
|
3
|
+
const Video = () => {
|
6
4
|
return /*#__PURE__*/React.createElement(View, null, "Wechat mini program side has not been implemented");
|
7
|
-
}
|
5
|
+
};
|
8
6
|
export default Video;
|
package/lib/core/index.js
CHANGED
package/lib/index.d.ts
CHANGED
@@ -19,7 +19,6 @@ export { default as SwiperItem } from './SwiperItem';
|
|
19
19
|
export { default as Switch } from './Switch';
|
20
20
|
export { default as Slider } from './Slider';
|
21
21
|
export { default as Picker } from './Picker';
|
22
|
-
export { default as Icon } from './Icon';
|
23
22
|
export { default as PickerView } from './PickerView';
|
24
23
|
export { default as PickerViewColumn } from './PickerViewColumn';
|
25
24
|
export { default as PageContainer } from './PageContainer';
|
package/lib/index.js
CHANGED
@@ -19,7 +19,6 @@ export { default as SwiperItem } from './SwiperItem';
|
|
19
19
|
export { default as Switch } from './Switch';
|
20
20
|
export { default as Slider } from './Slider';
|
21
21
|
export { default as Picker } from './Picker';
|
22
|
-
export { default as Icon } from './Icon';
|
23
22
|
export { default as PickerView } from './PickerView';
|
24
23
|
export { default as PickerViewColumn } from './PickerViewColumn';
|
25
24
|
export { default as PageContainer } from './PageContainer';
|
package/lib/types/index.d.ts
CHANGED
@@ -72,6 +72,13 @@ export interface TouchEventHandler {
|
|
72
72
|
* @default undefined
|
73
73
|
*/
|
74
74
|
onLongClick?: (e: TouchEvent) => any;
|
75
|
+
/**
|
76
|
+
* @description.en onLongPress event callback, no longer trigger click event
|
77
|
+
* @description.zh 长按事件回调, 不再触发点击事件
|
78
|
+
* @default undefined
|
79
|
+
* @param e
|
80
|
+
*/
|
81
|
+
onLongPress?: (e: TouchEvent) => any;
|
75
82
|
/**
|
76
83
|
* @description.en onTouchStart
|
77
84
|
* @description.zh 开始触摸事件回调
|
package/lib/utils/handleProps.js
CHANGED
@@ -1,6 +1,8 @@
|
|
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/es.json.stringify.js";
|
5
|
+
import "core-js/modules/esnext.iterator.map.js";
|
4
6
|
import "core-js/modules/web.dom-collections.iterator.js";
|
5
7
|
import { inlineStyle } from '@ray-js/framework-shared';
|
6
8
|
import { paramCase } from 'param-case';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "1.6.0
|
3
|
+
"version": "1.6.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.4.
|
31
|
-
"@ray-core/wechat": "^0.4.
|
32
|
-
"@ray-js/adapter": "
|
33
|
-
"@ray-js/framework-shared": "
|
34
|
-
"ahooks": "^3.
|
30
|
+
"@ray-core/macro": "^0.4.8",
|
31
|
+
"@ray-core/wechat": "^0.4.8",
|
32
|
+
"@ray-js/adapter": "1.6.0",
|
33
|
+
"@ray-js/framework-shared": "1.6.0",
|
34
|
+
"ahooks": "^3.8.4",
|
35
35
|
"clsx": "^1.2.1",
|
36
|
-
"core-js": "^3.
|
36
|
+
"core-js": "^3.39.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": "
|
43
|
+
"@ray-js/cli": "1.6.0"
|
44
44
|
},
|
45
45
|
"publishConfig": {
|
46
46
|
"access": "public",
|
47
|
-
"registry": "https://registry.npmjs.
|
47
|
+
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "b5b10947abcec036f88b73320491fb4e0a4cbe52"
|
50
50
|
}
|
package/lib/Icon/Icon.d.ts
DELETED
package/lib/Icon/Icon.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import * as React from 'react';
|
3
|
-
import { Text } from '@ray-js/components';
|
4
|
-
import { defaultIconProps } from './props';
|
5
|
-
import './index.less';
|
6
|
-
const Icon = props => {
|
7
|
-
const {
|
8
|
-
type,
|
9
|
-
size,
|
10
|
-
color,
|
11
|
-
style,
|
12
|
-
className
|
13
|
-
} = props;
|
14
|
-
return /*#__PURE__*/React.createElement(Text, {
|
15
|
-
className: "ray_iconfont ".concat(type, " ").concat(className),
|
16
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
17
|
-
color: "".concat(color),
|
18
|
-
fontSize: "".concat(size, "px")
|
19
|
-
})
|
20
|
-
});
|
21
|
-
};
|
22
|
-
Icon.defaultProps = defaultIconProps;
|
23
|
-
Icon.displayName = 'Icon';
|
24
|
-
export default Icon;
|
package/lib/Icon/Icon.thing.d.ts
DELETED
package/lib/Icon/Icon.thing.js
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import * as React from 'react';
|
3
|
-
import { Text } from '@ray-js/components';
|
4
|
-
import './index.less';
|
5
|
-
const Icon = props => {
|
6
|
-
const {
|
7
|
-
type,
|
8
|
-
size,
|
9
|
-
color,
|
10
|
-
style,
|
11
|
-
className
|
12
|
-
} = props;
|
13
|
-
return /*#__PURE__*/React.createElement(Text, {
|
14
|
-
className: "ray_iconfont ".concat(type, " ").concat(className),
|
15
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
16
|
-
color: "".concat(color),
|
17
|
-
fontSize: "".concat(size, "px")
|
18
|
-
})
|
19
|
-
});
|
20
|
-
};
|
21
|
-
Icon.displayName = 'Icon';
|
22
|
-
export default Icon;
|
package/lib/Icon/Icon.wechat.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import * as React from 'react';
|
3
|
-
import { Text } from '@ray-js/components';
|
4
|
-
import { defaultIconProps } from './props';
|
5
|
-
import './index.less';
|
6
|
-
const Icon = props => {
|
7
|
-
const {
|
8
|
-
type,
|
9
|
-
size,
|
10
|
-
color,
|
11
|
-
style,
|
12
|
-
className
|
13
|
-
} = props;
|
14
|
-
return /*#__PURE__*/React.createElement(Text, {
|
15
|
-
className: "ray_iconfont ".concat(type, " ").concat(className),
|
16
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
17
|
-
color: "".concat(color),
|
18
|
-
fontSize: "".concat(size, "px")
|
19
|
-
})
|
20
|
-
});
|
21
|
-
};
|
22
|
-
Icon.defaultProps = defaultIconProps;
|
23
|
-
Icon.displayName = 'Icon';
|
24
|
-
export default Icon;
|