@ray-js/components 1.5.48-alpha.4 → 1.5.48

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.
@@ -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';
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,24 @@
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 ${type} ${className}`,
16
+ style: _objectSpread(_objectSpread({}, style), {}, {
17
+ color: `${color}`,
18
+ fontSize: `${size}px`
19
+ })
20
+ });
21
+ };
22
+ Icon.defaultProps = defaultIconProps;
23
+ Icon.displayName = 'Icon';
24
+ export default Icon;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,22 @@
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 ${type} ${className}`,
15
+ style: _objectSpread(_objectSpread({}, style), {}, {
16
+ color: `${color}`,
17
+ fontSize: `${size}px`
18
+ })
19
+ });
20
+ };
21
+ Icon.displayName = 'Icon';
22
+ export default Icon;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,24 @@
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 ${type} ${className}`,
16
+ style: _objectSpread(_objectSpread({}, style), {}, {
17
+ color: `${color}`,
18
+ fontSize: `${size}px`
19
+ })
20
+ });
21
+ };
22
+ Icon.defaultProps = defaultIconProps;
23
+ Icon.displayName = 'Icon';
24
+ export default Icon;