@ray-js/components 1.5.40 → 1.5.41

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,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';
@@ -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
@@ -12,10 +12,10 @@ const Icon = props => {
12
12
  className
13
13
  } = props;
14
14
  return /*#__PURE__*/React.createElement(Text, {
15
- className: "ray_iconfont ".concat(type, " ").concat(className),
15
+ className: `ray_iconfont ${type} ${className}`,
16
16
  style: _objectSpread(_objectSpread({}, style), {}, {
17
- color: "".concat(color),
18
- fontSize: "".concat(size, "px")
17
+ color: `${color}`,
18
+ fontSize: `${size}px`
19
19
  })
20
20
  });
21
21
  };
@@ -11,10 +11,10 @@ const Icon = props => {
11
11
  className
12
12
  } = props;
13
13
  return /*#__PURE__*/React.createElement(Text, {
14
- className: "ray_iconfont ".concat(type, " ").concat(className),
14
+ className: `ray_iconfont ${type} ${className}`,
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
  };
@@ -12,10 +12,10 @@ const Icon = props => {
12
12
  className
13
13
  } = props;
14
14
  return /*#__PURE__*/React.createElement(Text, {
15
- className: "ray_iconfont ".concat(type, " ").concat(className),
15
+ className: `ray_iconfont ${type} ${className}`,
16
16
  style: _objectSpread(_objectSpread({}, style), {}, {
17
- color: "".concat(color),
18
- fontSize: "".concat(size, "px")
17
+ color: `${color}`,
18
+ fontSize: `${size}px`
19
19
  })
20
20
  });
21
21
  };
@@ -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';
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function Modal({ children }: React.PropsWithChildren<Record<string, any>>): React.ReactPortal;
@@ -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';
@@ -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,7 +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/web.dom-collections.iterator.js";
5
+ import "core-js/modules/esnext.iterator.map.js";
6
6
  // import clsx from 'clsx';
7
7
  import * as React from 'react';
8
8
  import handleProps from '../utils/handleProps';
@@ -1,7 +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/web.dom-collections.iterator.js";
4
+ import "core-js/modules/esnext.iterator.map.js";
5
5
  import clsx from 'clsx';
6
6
  import * as React from 'react';
7
7
  import { inlineStyle } from '@ray-js/framework-shared';
@@ -1,7 +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/web.dom-collections.iterator.js";
4
+ import "core-js/modules/esnext.iterator.map.js";
5
5
  import clsx from 'clsx';
6
6
  import * as React from 'react';
7
7
  import { inlineStyle } from '@ray-js/framework-shared';
@@ -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,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';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  export interface TextProps extends BaseProps {
4
3
  /**
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,7 @@
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
- return "V".concat(Math.random().toString(32).substr(2, 6).toUpperCase());
4
+ return `V${Math.random().toString(32).substr(2, 6).toUpperCase()}`;
3
5
  }
4
6
  export function nextFrame(duration) {
5
7
  return new Promise(resolve => setTimeout(resolve, duration !== null && duration !== void 0 ? duration : 1000 / 30));
@@ -1,7 +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/web.dom-collections.iterator.js";
4
+ import "core-js/modules/esnext.iterator.map.js";
5
5
  import { inlineStyle } from '@ray-js/framework-shared';
6
6
  import { paramCase } from 'param-case';
7
7
  import s2o from 'style-to-object';
@@ -14,7 +14,7 @@ const transformStyle = originStyle => {
14
14
  }
15
15
  return Object.entries(inlineStyle(tempStyle)).map(_ref => {
16
16
  let [k, v] = _ref;
17
- return "".concat(k, ":").concat(v);
17
+ return `${k}:${v}`;
18
18
  }).join(';');
19
19
  };
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/components",
3
- "version": "1.5.40",
3
+ "version": "1.5.41",
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.5.40",
33
- "@ray-js/framework-shared": "1.5.40",
34
- "ahooks": "^3.7.11",
30
+ "@ray-core/macro": "^0.4.7",
31
+ "@ray-core/wechat": "^0.4.7",
32
+ "@ray-js/adapter": "1.5.41",
33
+ "@ray-js/framework-shared": "1.5.41",
34
+ "ahooks": "^3.8.1",
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.5.40"
43
+ "@ray-js/cli": "1.5.41"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "e8a643ccba2beedc367608816be210c5f55120cf"
49
+ "gitHead": "08f9269589769f029e63b3835dfa92b48c6a6f15"
50
50
  }