@ray-js/components 1.6.18 → 1.6.20-alpha.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.
@@ -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';
@@ -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';
@@ -2,7 +2,6 @@ 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 = ["placeholderStyle", "className", "maxLength", "onBlur", "onFocus", "onConfirm"];
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import * as React from 'react';
7
6
  import clsx from 'clsx';
8
7
  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';
@@ -2,7 +2,6 @@ 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 = ["name", "id", "className", "style", "disabled", "type", "value", "focus", "maxLength", "onBlur", "onConfirm", "onFocus", "onInput", "password", "placeholder", "placeholderStyle"];
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import * as React from 'react';
7
6
  import clsx from 'clsx';
8
7
  import { Input as RemaxInput } from '@ray-core/wechat';
@@ -1,6 +1,5 @@
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/web.dom-collections.iterator.js";
4
3
  import * as React from 'react';
5
4
  import { useTouch } from '@ray-js/framework-shared';
6
5
  import { useEventListener } from 'ahooks';
@@ -2,7 +2,6 @@ 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 = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import clsx from 'clsx';
7
6
  import * as React from 'react';
8
7
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
@@ -2,7 +2,6 @@ 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 = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import clsx from 'clsx';
7
6
  import * as React from 'react';
8
7
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
@@ -3,7 +3,6 @@ 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
5
  import "core-js/modules/esnext.iterator.map.js";
6
- import "core-js/modules/web.dom-collections.iterator.js";
7
6
  // import clsx from 'clsx';
8
7
  import * as React from 'react';
9
8
  import handleProps from '../utils/handleProps';
@@ -2,7 +2,6 @@ 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
4
  import "core-js/modules/esnext.iterator.map.js";
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import clsx from 'clsx';
7
6
  import * as React from 'react';
8
7
  import { inlineStyle } from '@ray-js/framework-shared';
@@ -2,7 +2,6 @@ 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
4
  import "core-js/modules/esnext.iterator.map.js";
5
- import "core-js/modules/web.dom-collections.iterator.js";
6
5
  import clsx from 'clsx';
7
6
  import * as React from 'react';
8
7
  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,7 +1,7 @@
1
1
  import "core-js/modules/esnext.iterator.constructor.js";
2
2
  import "core-js/modules/esnext.iterator.for-each.js";
3
3
  export function generateId() {
4
- return "V".concat(Math.random().toString(32).substr(2, 6).toUpperCase());
4
+ return `V${Math.random().toString(32).substr(2, 6).toUpperCase()}`;
5
5
  }
6
6
  export function nextFrame(duration) {
7
7
  return new Promise(resolve => setTimeout(resolve, duration !== null && duration !== void 0 ? duration : 1000 / 30));
@@ -1,9 +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/es.json.stringify.js";
5
4
  import "core-js/modules/esnext.iterator.map.js";
6
- import "core-js/modules/web.dom-collections.iterator.js";
7
5
  import { inlineStyle } from '@ray-js/framework-shared';
8
6
  import { paramCase } from 'param-case';
9
7
  import s2o from 'style-to-object';
@@ -16,7 +14,7 @@ const transformStyle = originStyle => {
16
14
  }
17
15
  return Object.entries(inlineStyle(tempStyle)).map(_ref => {
18
16
  let [k, v] = _ref;
19
- return "".concat(k, ":").concat(v);
17
+ return `${k}:${v}`;
20
18
  }).join(';');
21
19
  };
22
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/components",
3
- "version": "1.6.18",
3
+ "version": "1.6.20-alpha.0",
4
4
  "description": "Ray basic components",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,8 +29,8 @@
29
29
  "dependencies": {
30
30
  "@ray-core/macro": "^0.4.8",
31
31
  "@ray-core/wechat": "^0.4.8",
32
- "@ray-js/adapter": "1.6.18",
33
- "@ray-js/framework-shared": "1.6.18",
32
+ "@ray-js/adapter": "1.6.20-alpha.0",
33
+ "@ray-js/framework-shared": "1.6.20-alpha.0",
34
34
  "ahooks": "^3.8.4",
35
35
  "clsx": "^1.2.1",
36
36
  "core-js": "^3.39.0",
@@ -40,11 +40,11 @@
40
40
  "style-to-object": "^0.3.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@ray-js/cli": "1.6.18"
43
+ "@ray-js/cli": "1.6.20-alpha.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "537ce09350475f32d1ac01abd36cc9171f9c7ecd"
49
+ "gitHead": "6111376e4f7189596d01d840c06e43284eb74d2e"
50
50
  }