@tarojs/components-react 3.5.0-canary.0 → 3.5.0-theta.1
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.
- package/dist/image/index.js +17 -24
- package/dist/image/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index2.js +44 -0
- package/dist/index2.js.map +1 -0
- package/dist/pull-down-refresh/index.js +48 -69
- package/dist/pull-down-refresh/index.js.map +1 -1
- package/dist/scroll-view/index.js +13 -35
- package/dist/scroll-view/index.js.map +1 -1
- package/dist/swiper/index.js +63 -92
- package/dist/swiper/index.js.map +1 -1
- package/dist/text/index.js +8 -11
- package/dist/text/index.js.map +1 -1
- package/dist/tslib.es6.js +17 -0
- package/dist/tslib.es6.js.map +1 -0
- package/dist/view/index.js +20 -33
- package/dist/view/index.js.map +1 -1
- package/index.js +4 -4
- package/package.json +6 -9
package/dist/text/index.js
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
4
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
3
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
6
4
|
import _createSuper from '@babel/runtime/helpers/createSuper';
|
|
5
|
+
import { _ as __rest } from '../tslib.es6.js';
|
|
7
6
|
import '../weui.js';
|
|
8
|
-
import React from 'react';
|
|
9
7
|
import { s as styleInject, c as classNames } from '../index.js';
|
|
8
|
+
import React from 'react';
|
|
10
9
|
import '@babel/runtime/helpers/typeof';
|
|
11
10
|
|
|
12
11
|
var css_248z = ".taro-text {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.taro-text__selectable {\n -moz-user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n";
|
|
13
12
|
styleInject(css_248z,{"insertAt":"top"});
|
|
14
13
|
|
|
15
|
-
var _excluded = ["className", "selectable"];
|
|
16
|
-
|
|
17
14
|
var Text = /*#__PURE__*/function (_React$Component) {
|
|
18
15
|
_inherits(Text, _React$Component);
|
|
19
16
|
|
|
@@ -28,16 +25,16 @@ var Text = /*#__PURE__*/function (_React$Component) {
|
|
|
28
25
|
_createClass(Text, [{
|
|
29
26
|
key: "render",
|
|
30
27
|
value: function render() {
|
|
31
|
-
var
|
|
32
|
-
className =
|
|
33
|
-
|
|
34
|
-
selectable =
|
|
35
|
-
restProps =
|
|
28
|
+
var _a = this.props,
|
|
29
|
+
className = _a.className,
|
|
30
|
+
_a$selectable = _a.selectable,
|
|
31
|
+
selectable = _a$selectable === void 0 ? false : _a$selectable,
|
|
32
|
+
restProps = __rest(_a, ["className", "selectable"]);
|
|
36
33
|
|
|
37
34
|
var cls = classNames('taro-text', {
|
|
38
35
|
'taro-text__selectable': selectable
|
|
39
36
|
}, className);
|
|
40
|
-
return React.createElement("span",
|
|
37
|
+
return React.createElement("span", Object.assign({}, restProps, {
|
|
41
38
|
className: cls
|
|
42
39
|
}), this.props.children);
|
|
43
40
|
}
|
package/dist/text/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/text/index.tsx"],"sourcesContent":["import 'weui'\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/text/index.tsx"],"sourcesContent":["import 'weui'\nimport './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\ninterface IProps extends React.HTMLAttributes<HTMLSpanElement> {\n selectable?: boolean\n}\n\nclass Text extends React.Component<IProps, Record<string, unknown>> {\n render () {\n const { className, selectable = false, ...restProps } = this.props\n const cls = classNames(\n 'taro-text',\n {\n 'taro-text__selectable': selectable\n },\n className\n )\n return (\n <span {...restProps} className={cls}>\n {this.props.children}\n </span>\n )\n }\n}\n\nexport default Text\n"],"names":["Text","_a","props","className","selectable","restProps","__rest","cls","classNames","React","createElement","Object","assign","children","Component"],"mappings":";;;;;;;;;;;;;IAUMA;;;;;;;;;;;;;WACJ,SAAM,MAAA,GAAA;MACE,IAAAC,KAAkD,IAAA,CAAKC,KAAvD;AAAA,UAAEC,SAAF,GAA4DF,EAA5D,CAAEE,SAAF;UAA4DF,aAAAA,GAAAA,EAA5D,CAAaG,UAAb;UAAaA,UAAb,8BAA0B,KAA1B,GAAA,aAAA;UAAoCC,SAApC,GAAAC,MAAA,CAAAL,EAAA,EAAA,CAAA,WAAA,EAAA,YAAA,CAAA,CAAA,CAAA;;AACN,MAAA,IAAMM,GAAG,GAAGC,UAAU,CACpB,WADoB,EAEpB;QACE,uBAAyBJ,EAAAA,UAAAA;OAHP,EAKpBD,SALoB,CAAtB,CAAA;AAOA,MAAA,OACEM,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAAC,MAAA,CAAAC,MAAA,CAAA,EAAA,EAAUP,SAAV,EAAmB;AAAEF,QAAAA,SAAS,EAAEI,GAAAA;AAAb,OAAnB,CAAA,EACG,IAAA,CAAKL,KAAL,CAAWW,QADd,CADF,CAAA;AAKD,KAAA;;;;AAfgBJ,CAAAA,CAAAA,KAAK,CAACK;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import '@babel/runtime/helpers/typeof';
|
|
2
|
+
|
|
3
|
+
function __rest(s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { __rest as _ };
|
|
17
|
+
//# sourceMappingURL=tslib.es6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tslib.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/view/index.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
2
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
4
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
|
-
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
6
4
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
7
5
|
import _createSuper from '@babel/runtime/helpers/createSuper';
|
|
8
|
-
import
|
|
6
|
+
import { _ as __rest } from '../tslib.es6.js';
|
|
9
7
|
import '../weui.js';
|
|
10
|
-
import React from 'react';
|
|
11
8
|
import { s as styleInject, c as classNames } from '../index.js';
|
|
9
|
+
import React from 'react';
|
|
12
10
|
import '@babel/runtime/helpers/typeof';
|
|
13
11
|
|
|
14
12
|
var css_248z = "body, html{\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n";
|
|
15
13
|
styleInject(css_248z,{"insertAt":"top"});
|
|
16
14
|
|
|
17
|
-
var _excluded = ["hoverClass", "onTouchStart", "onTouchEnd", "onTouchMove", "className", "hoverStartTime", "hoverStayTime"];
|
|
18
|
-
|
|
19
15
|
var View = /*#__PURE__*/function (_React$Component) {
|
|
20
16
|
_inherits(View, _React$Component);
|
|
21
17
|
|
|
@@ -26,21 +22,12 @@ var View = /*#__PURE__*/function (_React$Component) {
|
|
|
26
22
|
|
|
27
23
|
_classCallCheck(this, View);
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
34
|
-
|
|
35
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
25
|
+
_this = _super.apply(this, arguments);
|
|
26
|
+
_this.state = {
|
|
36
27
|
hover: false,
|
|
37
28
|
touch: false
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_defineProperty(_assertThisInitialized(_this), "timeoutEvent", void 0);
|
|
41
|
-
|
|
42
|
-
_defineProperty(_assertThisInitialized(_this), "startTime", 0);
|
|
43
|
-
|
|
29
|
+
};
|
|
30
|
+
_this.startTime = 0;
|
|
44
31
|
return _this;
|
|
45
32
|
}
|
|
46
33
|
|
|
@@ -49,17 +36,17 @@ var View = /*#__PURE__*/function (_React$Component) {
|
|
|
49
36
|
value: function render() {
|
|
50
37
|
var _this2 = this;
|
|
51
38
|
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
hoverStartTime =
|
|
60
|
-
|
|
61
|
-
hoverStayTime =
|
|
62
|
-
other =
|
|
39
|
+
var _a = this.props,
|
|
40
|
+
className = _a.className,
|
|
41
|
+
hoverClass = _a.hoverClass,
|
|
42
|
+
onTouchStart = _a.onTouchStart,
|
|
43
|
+
onTouchEnd = _a.onTouchEnd,
|
|
44
|
+
onTouchMove = _a.onTouchMove,
|
|
45
|
+
_a$hoverStartTime = _a.hoverStartTime,
|
|
46
|
+
hoverStartTime = _a$hoverStartTime === void 0 ? 50 : _a$hoverStartTime,
|
|
47
|
+
_a$hoverStayTime = _a.hoverStayTime,
|
|
48
|
+
hoverStayTime = _a$hoverStayTime === void 0 ? 400 : _a$hoverStayTime,
|
|
49
|
+
other = __rest(_a, ["className", "hoverClass", "onTouchStart", "onTouchEnd", "onTouchMove", "hoverStartTime", "hoverStayTime"]);
|
|
63
50
|
|
|
64
51
|
var cls = classNames('', _defineProperty({}, "".concat(hoverClass), this.state.hover), className);
|
|
65
52
|
|
|
@@ -125,12 +112,12 @@ var View = /*#__PURE__*/function (_React$Component) {
|
|
|
125
112
|
onTouchEnd && onTouchEnd(e);
|
|
126
113
|
};
|
|
127
114
|
|
|
128
|
-
return React.createElement("div",
|
|
115
|
+
return React.createElement("div", Object.assign({
|
|
129
116
|
className: cls,
|
|
130
117
|
onTouchStart: _onTouchStart,
|
|
131
118
|
onTouchEnd: _onTouchEnd,
|
|
132
119
|
onTouchMove: _onTouchMove
|
|
133
|
-
}), this.props.children);
|
|
120
|
+
}, other), this.props.children);
|
|
134
121
|
}
|
|
135
122
|
}]);
|
|
136
123
|
|
package/dist/view/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/view/index.tsx"],"sourcesContent":["import 'weui'\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/view/index.tsx"],"sourcesContent":["import 'weui'\nimport './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\ninterface IProps extends React.HTMLAttributes<HTMLDivElement> {\n hoverClass?: string\n hoverStartTime?: number\n hoverStayTime?: number\n onTouchStart?(e: React.TouchEvent<HTMLDivElement>): void\n onTouchEnd?(e: React.TouchEvent<HTMLDivElement>): void\n onTouchMove?(e: React.TouchEvent<HTMLDivElement>): void\n onLongPress?(): void\n}\n\ninterface IState {\n hover: boolean\n touch: boolean\n}\n\nclass View extends React.Component<IProps, IState> {\n state = {\n hover: false,\n touch: false\n }\n\n timeoutEvent: ReturnType<typeof setTimeout>\n startTime = 0\n\n render () {\n const {\n className,\n hoverClass,\n onTouchStart,\n onTouchEnd,\n onTouchMove,\n hoverStartTime = 50,\n hoverStayTime = 400,\n ...other\n } = this.props\n\n const cls = classNames(\n '',\n {\n [`${hoverClass}`]: this.state.hover\n },\n className\n )\n\n const _onTouchStart = e => {\n if (hoverClass) {\n this.setState(() => ({\n touch: true\n }))\n setTimeout(() => {\n if (this.state.touch) {\n this.setState(() => ({\n hover: true\n }))\n }\n }, hoverStartTime)\n }\n onTouchStart && onTouchStart(e)\n if (this.props.onLongPress) {\n this.timeoutEvent = setTimeout(() => {\n this.props.onLongPress!()\n }, 350)\n this.startTime = new Date().getTime()\n }\n }\n\n const _onTouchMove = e => {\n clearTimeout(this.timeoutEvent)\n onTouchMove && onTouchMove(e)\n }\n\n const _onTouchEnd = e => {\n const spanTime = new Date().getTime() - this.startTime\n if (spanTime < 350) {\n clearTimeout(this.timeoutEvent)\n }\n if (hoverClass) {\n this.setState(() => ({\n touch: false\n }))\n setTimeout(() => {\n if (!this.state.touch) {\n this.setState(() => ({\n hover: false\n }))\n }\n }, hoverStayTime)\n }\n onTouchEnd && onTouchEnd(e)\n }\n\n return (\n <div\n className={cls}\n onTouchStart={_onTouchStart}\n onTouchEnd={_onTouchEnd}\n onTouchMove={_onTouchMove}\n {...other}\n >\n {this.props.children}\n </div>\n )\n }\n}\n\nexport default View\n"],"names":["View","state","hover","touch","startTime","_a","props","className","hoverClass","onTouchStart","onTouchEnd","onTouchMove","hoverStartTime","hoverStayTime","other","__rest","cls","classNames","_onTouchStart","e","setState","setTimeout","onLongPress","timeoutEvent","Date","getTime","_onTouchMove","clearTimeout","_onTouchEnd","spanTime","React","createElement","Object","assign","children","Component"],"mappings":";;;;;;;;;;;;;;IAqBMA;;;;;EAAN,SAAA,IAAA,GAAA;AAAA,IAAA,IAAA,KAAA,CAAA;;AAAA,IAAA,eAAA,CAAA,IAAA,EAAA,IAAA,CAAA,CAAA;;;AACE,IAAA,KAAA,CAAAC,KAAA,GAAQ;AACNC,MAAAA,KAAK,EAAE,KADD;AAENC,MAAAA,KAAK,EAAE,KAAA;KAFT,CAAA;IAMA,KAASC,CAAAA,SAAT,GAAY,CAAZ,CAAA;AAPF,IAAA,OAAA,KAAA,CAAA;AAwFC,GAAA;;;;WA/EC,SAAM,MAAA,GA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,CAAA;eAAd,CAAA,CAAA;AAGD,aAAA;WALO,EAMPW,aANO,CAAV,CAAA;AAOD,SAAA;;AACDH,QAAAA,UAAU,IAAIA,UAAU,CAACS,CAAD,CAAxB,CAAA;OAjBF,CAAA;;MAoBA,OACEW,KACE,CAAAC,aADF,CACE,KADF,EACEC,MAAA,CAAAC,MAAA,CAAA;AAAA1B,QAAAA,SAAS,EAAES,GAAX;AACAP,QAAAA,YAAY,EAAES,aADd;AAEAR,QAAAA,UAAU,EAAEkB,WAFZ;AAGAjB,QAAAA,WAAW,EAAEe,YAAAA;OAHb,EAIIZ,KAJJ,CADF,EAOG,KAAKR,KAAL,CAAW4B,QAPd,CADF,CAAA;AAWD,KAAA;;;;AAvFgBJ,CAAAA,CAAAA,KAAK,CAACK;;;;"}
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as View } from './dist/view'
|
|
2
|
-
export { default as ScrollView } from './dist/scroll-view'
|
|
3
|
-
export { default as Text } from './dist/text'
|
|
4
1
|
export { default as Image } from './dist/image'
|
|
5
|
-
export { Swiper, SwiperItem } from './dist/swiper'
|
|
6
2
|
export { default as PullDownRefresh } from './dist/pull-down-refresh'
|
|
3
|
+
export { default as ScrollView } from './dist/scroll-view'
|
|
4
|
+
export { Swiper, SwiperItem } from './dist/swiper'
|
|
5
|
+
export { default as Text } from './dist/text'
|
|
6
|
+
export { default as View } from './dist/view'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-react",
|
|
3
|
-
"version": "3.5.0-
|
|
3
|
+
"version": "3.5.0-theta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main:h5": "src/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,10 +11,6 @@
|
|
|
11
11
|
"dist",
|
|
12
12
|
"index.js"
|
|
13
13
|
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "rollup -c",
|
|
16
|
-
"dev": "rollup -c -w"
|
|
17
|
-
},
|
|
18
14
|
"repository": {
|
|
19
15
|
"type": "git",
|
|
20
16
|
"url": "git+https://github.com/NervJS/taro.git"
|
|
@@ -24,8 +20,6 @@
|
|
|
24
20
|
"license": "MIT",
|
|
25
21
|
"dependencies": {
|
|
26
22
|
"@babel/runtime": "^7.14.5",
|
|
27
|
-
"@tarojs/taro": "3.5.0-canary.0",
|
|
28
|
-
"@tarojs/taro-h5": "3.5.0-canary.0",
|
|
29
23
|
"better-scroll": "^1.14.1",
|
|
30
24
|
"classnames": "^2.2.5",
|
|
31
25
|
"intersection-observer": "^0.7.0",
|
|
@@ -33,5 +27,8 @@
|
|
|
33
27
|
"swiper": "6.8.0",
|
|
34
28
|
"weui": "^1.1.2"
|
|
35
29
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rollup -c",
|
|
32
|
+
"dev": "rollup -c -w"
|
|
33
|
+
}
|
|
34
|
+
}
|