@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.
Files changed (44) hide show
  1. package/lib/Button/props.d.ts +0 -1
  2. package/lib/CheckboxGroup/CheckboxGroup.js +1 -0
  3. package/lib/CheckboxGroup/CheckboxGroup.thing.js +1 -0
  4. package/lib/CheckboxGroup/CheckboxGroup.wechat.js +1 -0
  5. package/lib/CheckboxGroup/props.d.ts +0 -1
  6. package/lib/Modal/index.web.d.ts +2 -0
  7. package/lib/PickerView/PickerView.js +1 -0
  8. package/lib/RadioGroup/RadioGroup.js +1 -0
  9. package/lib/RadioGroup/RadioGroup.thing.js +1 -0
  10. package/lib/RadioGroup/RadioGroup.wechat.js +1 -0
  11. package/lib/RadioGroup/props.d.ts +0 -1
  12. package/lib/Swiper/Swiper.js +1 -0
  13. package/lib/Swiper/Swiper.thing.js +1 -0
  14. package/lib/Swiper/Swiper.wechat.js +1 -0
  15. package/lib/SwiperItem/props.d.ts +0 -1
  16. package/lib/Switch/props.d.ts +0 -1
  17. package/lib/Text/props.d.ts +0 -1
  18. package/lib/Video/Video.d.ts +3 -2
  19. package/lib/Video/Video.js +1 -3
  20. package/lib/Video/Video.wechat.d.ts +2 -1
  21. package/lib/Video/Video.wechat.js +2 -4
  22. package/lib/core/index.js +2 -0
  23. package/lib/index.d.ts +0 -1
  24. package/lib/index.js +0 -1
  25. package/lib/types/index.d.ts +7 -0
  26. package/lib/utils/handleProps.js +2 -0
  27. package/package.json +10 -10
  28. package/lib/Icon/Icon.d.ts +0 -5
  29. package/lib/Icon/Icon.js +0 -24
  30. package/lib/Icon/Icon.thing.d.ts +0 -5
  31. package/lib/Icon/Icon.thing.js +0 -22
  32. package/lib/Icon/Icon.wechat.d.ts +0 -5
  33. package/lib/Icon/Icon.wechat.js +0 -24
  34. package/lib/Icon/iconfont/iconfont.css +0 -768
  35. package/lib/Icon/iconfont/iconfont.js +0 -40
  36. package/lib/Icon/iconfont/iconfont.json +0 -1318
  37. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  38. package/lib/Icon/iconfont/iconfont.woff +0 -0
  39. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  40. package/lib/Icon/index.d.ts +0 -3
  41. package/lib/Icon/index.js +0 -3
  42. package/lib/Icon/index.less +0 -5
  43. package/lib/Icon/props.d.ts +0 -23
  44. package/lib/Icon/props.js +0 -5
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  export interface ButtonProps extends BaseProps {
4
3
  /**
@@ -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,3 +1,4 @@
1
+ import "core-js/modules/esnext.iterator.map.js";
1
2
  import * as React from 'react';
2
3
  import { CheckboxGroup as RemaxCheckboxGroup } from '@ray-js/adapter';
3
4
  import Checkbox from '../Checkbox';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/esnext.iterator.map.js";
1
2
  import * as React from 'react';
2
3
  import { CheckboxGroup as RemaxCheckboxGroup } from '@ray-core/wechat';
3
4
  import Checkbox from '../Checkbox';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  import { CheckboxProps } from '../Checkbox/props';
4
3
  import { GenericEvent } from '@ray-js/adapter';
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function Modal({ children }: React.PropsWithChildren<Record<string, any>>): React.ReactPortal;
@@ -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';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/esnext.iterator.map.js";
1
2
  import * as React from 'react';
2
3
  import { RadioGroup as RemaxRadioGroup } from '@ray-core/wechat';
3
4
  import Radio from '../Radio';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  import { RadioProps } from '../Radio/props';
4
3
  import { GenericEvent } from '@ray-js/adapter';
@@ -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';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  export interface SwiperItemProps extends BaseProps {
4
3
  children?: React.ReactNode | string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GenericEvent } from '@ray-js/adapter';
3
2
  import { BaseProps } from '../types';
4
3
  export interface SwitchProps extends BaseProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  export interface TextProps extends BaseProps {
4
3
  /**
@@ -1,3 +1,4 @@
1
- import React from 'react';
2
- declare const Video: () => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { VideoProps } from '@ray-js/adapter';
3
+ declare const Video: React.FC<VideoProps>;
3
4
  export default Video;
@@ -1,6 +1,4 @@
1
- import React from 'react';
2
-
3
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
1
+ import * as React from 'react';
4
2
  const Video = () => {
5
3
  return /*#__PURE__*/React.createElement("div", null, "The web side is not implemented yet.");
6
4
  };
@@ -1,3 +1,4 @@
1
1
  import * as React from 'react';
2
- declare function Video(): React.JSX.Element;
2
+ import { VideoProps } from '@ray-js/adapter';
3
+ declare const Video: React.FC<VideoProps>;
3
4
  export default Video;
@@ -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
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/esnext.iterator.constructor.js";
2
+ import "core-js/modules/esnext.iterator.for-each.js";
1
3
  export function generateId() {
2
4
  return "V".concat(Math.random().toString(32).substr(2, 6).toUpperCase());
3
5
  }
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';
@@ -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 开始触摸事件回调
@@ -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-beta.8",
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.5",
31
- "@ray-core/wechat": "^0.4.5",
32
- "@ray-js/adapter": "^1.6.0-beta.8",
33
- "@ray-js/framework-shared": "^1.6.0-beta.8",
34
- "ahooks": "^3.7.11",
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.37.0",
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": "^1.6.0-beta.8"
43
+ "@ray-js/cli": "1.6.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",
47
- "registry": "https://registry.npmjs.org"
47
+ "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "b1d4118961bba4f3f2a889ec5bb9444d165df0dc"
49
+ "gitHead": "b5b10947abcec036f88b73320491fb4e0a4cbe52"
50
50
  }
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { IconProps } from './props';
3
- import './index.less';
4
- declare const Icon: React.FC<IconProps>;
5
- export default Icon;
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;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { IconProps } from './props';
3
- import './index.less';
4
- declare const Icon: React.FC<IconProps>;
5
- export default Icon;
@@ -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;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { IconProps } from './props';
3
- import './index.less';
4
- declare const Icon: React.FC<IconProps>;
5
- export default Icon;
@@ -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;