@ray-js/components 1.4.26 → 1.4.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -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';
package/lib/Icon/Icon.js CHANGED
@@ -11,10 +11,10 @@ const Icon = props => {
11
11
  style
12
12
  } = props;
13
13
  return /*#__PURE__*/React.createElement(Text, {
14
- className: "iconfont ".concat(type),
14
+ className: `iconfont ${type}`,
15
15
  style: _objectSpread(_objectSpread({}, style), {}, {
16
- color: "".concat(color),
17
- fontSize: "".concat(size, "px")
16
+ color: `${color}`,
17
+ fontSize: `${size}px`
18
18
  })
19
19
  });
20
20
  };
@@ -10,10 +10,10 @@ const Icon = props => {
10
10
  style
11
11
  } = props;
12
12
  return /*#__PURE__*/React.createElement(Text, {
13
- className: "iconfont ".concat(type),
13
+ className: `iconfont ${type}`,
14
14
  style: _objectSpread(_objectSpread({}, style), {}, {
15
- color: "".concat(color),
16
- fontSize: "".concat(size, "px")
15
+ color: `${color}`,
16
+ fontSize: `${size}px`
17
17
  })
18
18
  });
19
19
  };
@@ -11,10 +11,10 @@ const Icon = props => {
11
11
  style
12
12
  } = props;
13
13
  return /*#__PURE__*/React.createElement(Text, {
14
- className: "iconfont ".concat(type),
14
+ className: `iconfont ${type}`,
15
15
  style: _objectSpread(_objectSpread({}, style), {}, {
16
- color: "".concat(color),
17
- fontSize: "".concat(size, "px")
16
+ color: `${color}`,
17
+ fontSize: `${size}px`
18
18
  })
19
19
  });
20
20
  };
@@ -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 = ["style", "className", "onClick", "onLongClick", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onLoad", "onError", "mode"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import clsx from 'clsx';
6
5
  import * as React from 'react';
7
6
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
@@ -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 = ["placeholderStyle", "className", "maxLength", "onBlur", "onFocus", "onConfirm"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import * as React from 'react';
6
5
  import clsx from 'clsx';
7
6
  import { useEventListener } from 'ahooks';
@@ -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 = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import * as React from 'react';
6
5
  import clsx from 'clsx';
7
6
  import { Input as RemaxInput } from '@ray-js/adapter';
@@ -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 = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import * as React from 'react';
6
5
  import clsx from 'clsx';
7
6
  import { Input as RemaxInput } from '@ray-core/wechat';
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import "core-js/modules/web.dom-collections.iterator.js";
3
2
  import * as React from 'react';
4
3
  import { useTouch } from '@ray-js/framework-shared';
5
4
  import { useEventListener } from 'ahooks';
@@ -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 = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import clsx from 'clsx';
6
5
  import * as React from 'react';
7
6
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
@@ -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 = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import clsx from 'clsx';
6
5
  import * as React from 'react';
7
6
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
@@ -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 = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  // import clsx from 'clsx';
6
5
  import * as React from 'react';
7
6
  import handleProps from '../utils/handleProps';
@@ -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 = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import clsx from 'clsx';
6
5
  import * as React from 'react';
7
6
  import { inlineStyle } from '@ray-js/framework-shared';
@@ -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 = ["id", "style", "className", "current", "dataSource", "onAfterChange", "onChange", "renderItem", "children"];
4
- import "core-js/modules/web.dom-collections.iterator.js";
5
4
  import clsx from 'clsx';
6
5
  import * as React from 'react';
7
6
  import { inlineStyle } from '@ray-js/framework-shared';
@@ -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 { Text as RemaxText } from '@ray-core/wechat';
7
6
  import { useTouch } from '@ray-js/framework-shared';
package/lib/View/View.js CHANGED
@@ -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 = ["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";
5
4
  import * as React from 'react';
6
5
  import clsx from 'clsx';
7
6
  import PropTypes from 'prop-types';
@@ -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 = ["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";
5
4
  import * as React from 'react';
6
5
  import clsx from 'clsx';
7
6
  import PropTypes from 'prop-types';
@@ -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 = ["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";
5
4
  import * as React from 'react';
6
5
  import clsx from 'clsx';
7
6
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
package/lib/core/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export function generateId() {
2
- return "V".concat(Math.random().toString(32).substr(2, 6).toUpperCase());
2
+ return `V${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));
@@ -1,7 +1,6 @@
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";
5
4
  import { inlineStyle } from '@ray-js/framework-shared';
6
5
  import { paramCase } from 'param-case';
7
6
  import s2o from 'style-to-object';
@@ -14,7 +13,7 @@ const transformStyle = originStyle => {
14
13
  }
15
14
  return Object.entries(inlineStyle(tempStyle)).map(_ref => {
16
15
  let [k, v] = _ref;
17
- return "".concat(k, ":").concat(v);
16
+ return `${k}:${v}`;
18
17
  }).join(';');
19
18
  };
20
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/components",
3
- "version": "1.4.26",
3
+ "version": "1.4.28",
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.3.6",
31
- "@ray-core/wechat": "^0.3.6",
32
- "@ray-js/adapter": "1.4.26",
33
- "@ray-js/framework-shared": "1.4.26",
30
+ "@ray-core/macro": "^0.3.9",
31
+ "@ray-core/wechat": "^0.3.9",
32
+ "@ray-js/adapter": "1.4.28",
33
+ "@ray-js/framework-shared": "1.4.28",
34
34
  "ahooks": "^3.7.8",
35
35
  "clsx": "^1.2.1",
36
- "core-js": "^3.32.1",
36
+ "core-js": "^3.35.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.4.26"
43
+ "@ray-js/cli": "1.4.28"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org"
48
48
  },
49
- "gitHead": "7981d6aea368513b5248cbc0691f817b7a5c225b"
49
+ "gitHead": "0e953599169fa8f8963e117e708cf9e9093e760f"
50
50
  }