@tarojs/components-react 3.8.0-canary.0 → 3.8.0-canary.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/LICENSE +14 -0
- package/dist/components/button/index.js +115 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button/style/index.scss.js +4 -0
- package/dist/components/button/style/index.scss.js.map +1 -0
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/components/icon/style/index.scss.js +4 -0
- package/dist/components/icon/style/index.scss.js.map +1 -0
- package/dist/components/image/index.js +9 -6
- package/dist/components/image/index.js.map +1 -1
- package/dist/components/image/style/index.css.js +4 -0
- package/dist/components/image/style/index.css.js.map +1 -0
- package/dist/components/input/index.js +260 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/style/index.scss.js +4 -0
- package/dist/components/input/style/index.scss.js.map +1 -0
- package/dist/components/pull-down-refresh/index.js +9 -2
- package/dist/components/pull-down-refresh/index.js.map +1 -1
- package/dist/components/pull-down-refresh/style/index.css.js +4 -0
- package/dist/components/pull-down-refresh/style/index.css.js.map +1 -0
- package/dist/components/scroll-view/index.js +16 -9
- package/dist/components/scroll-view/index.js.map +1 -1
- package/dist/components/scroll-view/style/index.css.js +4 -0
- package/dist/components/scroll-view/style/index.css.js.map +1 -0
- package/dist/components/swiper/index.js +26 -20
- package/dist/components/swiper/index.js.map +1 -1
- package/dist/components/swiper/style/index.css.js +4 -0
- package/dist/components/swiper/style/index.css.js.map +1 -0
- package/dist/components/text/index.js +9 -5
- package/dist/components/text/index.js.map +1 -1
- package/dist/components/text/style/index.css.js +4 -0
- package/dist/components/text/style/index.css.js.map +1 -0
- package/dist/components/view/index.js +8 -4
- package/dist/components/view/index.js.map +1 -1
- package/dist/components/view/style/index.css.js +4 -0
- package/dist/components/view/style/index.css.js.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/index.js +19 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +20 -14
- package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js +0 -13
- package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -2,10 +2,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
4
4
|
import _createSuper from '@babel/runtime/helpers/createSuper';
|
|
5
|
-
import { __rest } from '
|
|
6
|
-
import '
|
|
5
|
+
import { __rest } from 'tslib';
|
|
6
|
+
import './style/index.css.js';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import { createForwardRefComponent } from '../../utils/index.js';
|
|
9
10
|
|
|
10
11
|
var Text = /*#__PURE__*/function (_React$Component) {
|
|
11
12
|
_inherits(Text, _React$Component);
|
|
@@ -19,19 +20,22 @@ var Text = /*#__PURE__*/function (_React$Component) {
|
|
|
19
20
|
value: function render() {
|
|
20
21
|
var _a = this.props,
|
|
21
22
|
className = _a.className,
|
|
23
|
+
forwardedRef = _a.forwardedRef,
|
|
22
24
|
_a$selectable = _a.selectable,
|
|
23
25
|
selectable = _a$selectable === void 0 ? false : _a$selectable,
|
|
24
|
-
restProps = __rest(_a, ["className", "selectable"]);
|
|
26
|
+
restProps = __rest(_a, ["className", "forwardedRef", "selectable"]);
|
|
25
27
|
var cls = classNames('taro-text', {
|
|
26
28
|
'taro-text__selectable': selectable
|
|
27
29
|
}, className);
|
|
28
30
|
return React.createElement("span", Object.assign({}, restProps, {
|
|
29
|
-
className: cls
|
|
31
|
+
className: cls,
|
|
32
|
+
ref: forwardedRef
|
|
30
33
|
}), this.props.children);
|
|
31
34
|
}
|
|
32
35
|
}]);
|
|
33
36
|
return Text;
|
|
34
37
|
}(React.Component);
|
|
38
|
+
var index = createForwardRefComponent(Text);
|
|
35
39
|
|
|
36
|
-
export {
|
|
40
|
+
export { index as default };
|
|
37
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/text/index.tsx"],"sourcesContent":["import '
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/text/index.tsx"],"sourcesContent":["import './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\nimport { createForwardRefComponent } from '../../utils/index'\n\ninterface IProps extends React.HTMLAttributes<HTMLSpanElement> {\n selectable?: boolean\n forwardedRef?: React.MutableRefObject<HTMLSpanElement>\n}\n\nclass Text extends React.Component<IProps, Record<string, unknown>> {\n render () {\n const { className, forwardedRef, 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} ref={forwardedRef}>\n {this.props.children}\n </span>\n )\n }\n}\n\nexport default createForwardRefComponent(Text)\n"],"names":["Text","_React$Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_a","props","className","forwardedRef","_a$selectable","selectable","restProps","__rest","cls","classNames","React","createElement","Object","assign","ref","children","Component","createForwardRefComponent"],"mappings":";;;;;;;;;;AAK6D,IAOvDA,IAAK,0BAAAC,gBAAA,EAAA;EAAAC,SAAA,CAAAF,IAAA,EAAAC,gBAAA,CAAA,CAAA;AAAA,EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,IAAA,CAAA,CAAA;AAAA,EAAA,SAAAA,IAAA,GAAA;AAAAK,IAAAA,eAAA,OAAAL,IAAA,CAAA,CAAA;AAAA,IAAA,OAAAG,MAAA,CAAAG,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA,CAAA;AAAA,GAAA;AAAAC,EAAAA,YAAA,CAAAR,IAAA,EAAA,CAAA;IAAAS,GAAA,EAAA,QAAA;IAAAC,KAAA,EACT,SAAAC,MAAAA,GAAM;AACE,MAAA,IAAAC,KAAgE,IAAI,CAACC,KAAK;QAAxEC,SAAS,GAA+DF,EAAA,CAAxEE,SAAS;QAAEC,YAAY,GAAiDH,EAAA,CAA7DG,YAAY;QAAAC,aAAA,GAAiDJ,EAAA,CAA/CK,UAAU;AAAVA,QAAAA,UAAU,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;AAAKE,QAAAA,SAAS,GAA3DC,MAAA,CAAAP,EAAA,EAAA,CAAA,WAAA,EAAA,cAAA,EAAA,YAAA,CAA6D,CAAa,CAAA;AAChF,MAAA,IAAMQ,GAAG,GAAGC,UAAU,CACpB,WAAW,EACX;AACE,QAAA,uBAAuB,EAAEJ,UAAAA;OAC1B,EACDH,SAAS,CACV,CAAA;AACD,MAAA,OACEQ,KAAU,CAAAC,aAAA,CAAA,MAAA,EAAAC,MAAA,CAAAC,MAAA,CAAA,EAAA,EAAAP,SAAS;AAAEJ,QAAAA,SAAS,EAAEM,GAAG;AAAEM,QAAAA,GAAG,EAAEX,YAAAA;AAAY,OAAA,CAAA,EACnD,IAAI,CAACF,KAAK,CAACc,QAAQ,CACf,CAAA;AAEX,KAAA;AAAC,GAAA,CAAA,CAAA,CAAA;AAAA,EAAA,OAAA3B,IAAA,CAAA;AAAA,CAfgBsB,CAAAA,KAAK,CAACM,SAA0C,CAAA,CAAA;AAkBnE,YAAeC,yBAAyB,CAAC7B,IAAI,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -3,10 +3,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
4
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
5
5
|
import _createSuper from '@babel/runtime/helpers/createSuper';
|
|
6
|
-
import { __rest } from '
|
|
7
|
-
import '
|
|
6
|
+
import { __rest } from 'tslib';
|
|
7
|
+
import './style/index.css.js';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import { createForwardRefComponent } from '../../utils/index.js';
|
|
10
11
|
|
|
11
12
|
var View = /*#__PURE__*/function (_React$Component) {
|
|
12
13
|
_inherits(View, _React$Component);
|
|
@@ -36,7 +37,8 @@ var View = /*#__PURE__*/function (_React$Component) {
|
|
|
36
37
|
hoverStartTime = _a$hoverStartTime === void 0 ? 50 : _a$hoverStartTime,
|
|
37
38
|
_a$hoverStayTime = _a.hoverStayTime,
|
|
38
39
|
hoverStayTime = _a$hoverStayTime === void 0 ? 400 : _a$hoverStayTime,
|
|
39
|
-
|
|
40
|
+
forwardedRef = _a.forwardedRef,
|
|
41
|
+
other = __rest(_a, ["className", "hoverClass", "onTouchStart", "onTouchEnd", "onTouchMove", "hoverStartTime", "hoverStayTime", "forwardedRef"]);
|
|
40
42
|
var cls = classNames('', _defineProperty({}, "".concat(hoverClass), this.state.hover), className);
|
|
41
43
|
var _onTouchStart = function _onTouchStart(e) {
|
|
42
44
|
if (hoverClass) {
|
|
@@ -91,6 +93,7 @@ var View = /*#__PURE__*/function (_React$Component) {
|
|
|
91
93
|
onTouchEnd && onTouchEnd(e);
|
|
92
94
|
};
|
|
93
95
|
return React.createElement("div", Object.assign({
|
|
96
|
+
ref: forwardedRef,
|
|
94
97
|
className: cls,
|
|
95
98
|
onTouchStart: _onTouchStart,
|
|
96
99
|
onTouchEnd: _onTouchEnd,
|
|
@@ -100,6 +103,7 @@ var View = /*#__PURE__*/function (_React$Component) {
|
|
|
100
103
|
}]);
|
|
101
104
|
return View;
|
|
102
105
|
}(React.Component);
|
|
106
|
+
var index = createForwardRefComponent(View);
|
|
103
107
|
|
|
104
|
-
export {
|
|
108
|
+
export { index as default };
|
|
105
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/view/index.tsx"],"sourcesContent":["import '
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/view/index.tsx"],"sourcesContent":["import './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\nimport { createForwardRefComponent } from '../../utils/index'\n\ninterface IProps extends React.HTMLAttributes<HTMLDivElement> {\n hoverClass?: string\n hoverStartTime?: number\n hoverStayTime?: number\n forwardedRef?: React.MutableRefObject<HTMLDivElement>\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 forwardedRef,\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 ref={forwardedRef}\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 createForwardRefComponent(View)\n"],"names":["View","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","state","hover","touch","startTime","_createClass","key","value","render","_this2","_a","props","className","hoverClass","onTouchStart","onTouchEnd","onTouchMove","_a$hoverStartTime","hoverStartTime","_a$hoverStayTime","hoverStayTime","forwardedRef","other","__rest","cls","classNames","_defineProperty","concat","_onTouchStart","e","setState","setTimeout","onLongPress","timeoutEvent","Date","getTime","_onTouchMove","clearTimeout","_onTouchEnd","spanTime","React","createElement","Object","assign","ref","children","Component","createForwardRefComponent"],"mappings":";;;;;;;;;;;AAK6D,IAkBvDA,IAAK,0BAAAC,gBAAA,EAAA;EAAAC,SAAA,CAAAF,IAAA,EAAAC,gBAAA,CAAA,CAAA;AAAA,EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,IAAA,CAAA,CAAA;AAAX,EAAA,SAAAA,OAAA;AAAA,IAAA,IAAAK,KAAA,CAAA;AAAAC,IAAAA,eAAA,OAAAN,IAAA,CAAA,CAAA;;IACEK,KAAA,CAAAE,KAAK,GAAG;AACNC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,KAAK,EAAE,KAAA;KACR,CAAA;IAGDJ,KAAA,CAASK,SAAA,GAAG,CAAC,CAAA;AAAA,IAAA,OAAAL,KAAA,CAAA;AAmFf,GAAA;AAACM,EAAAA,YAAA,CAAAX,IAAA,EAAA,CAAA;IAAAY,GAAA,EAAA,QAAA;IAAAC,KAAA,EAjFC,SAAAC,MAAAA,GAAM;AAAA,MAAA,IAAAC,MAAA,GAAA,IAAA,CAAA;AACE,MAAA,IAAAC,EAUF,GAAA,IAAI,CAACC,KAAK;QATZC,SAA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KAAA;iBACR,CAAA;AAAA,eAAC,CAAC,CAAA;AACJ,aAAA;WACF,EAAEkB,aAAa,CAAC,CAAA;AAClB,SAAA;AACDL,QAAAA,UAAU,IAAIA,UAAU,CAACc,CAAC,CAAC,CAAA;OAC5B,CAAA;MAED,OACEW,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,MAAA,CAAAC,MAAA,CAAA;AACEC,QAAAA,GAAG,EAAEvB,YAAY;AACjBT,QAAAA,SAAS,EAAEY,GAAG;AACdV,QAAAA,YAAY,EAAEc,aAAa;AAC3Bb,QAAAA,UAAU,EAAEuB,WAAW;AACvBtB,QAAAA,WAAW,EAAEoB,YAAAA;SACTd,KAAK,CAAA,EAER,IAAI,CAACX,KAAK,CAACkC,QAAQ,CAChB,CAAA;AAEV,KAAA;AAAC,GAAA,CAAA,CAAA,CAAA;AAAA,EAAA,OAAAnD,IAAA,CAAA;AAAA,CAzFgB8C,CAAAA,KAAK,CAACM,SAAyB,CAAA,CAAA;AA4FlD,YAAeC,yBAAyB,CAACrD,IAAI,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@-webkit-keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.taro-button-core[loading]>.weui-loading{animation:weuiLoading 1s steps(12) infinite;background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;background-size:100%;display:inline-block;height:20px;vertical-align:middle;width:20px}.taro-button-core[loading]>.weui-loading.weui-btn_primary,.taro-button-core[loading]>.weui-loading.weui-btn_warn{color:hsla(0,0%,100%,.6)}.taro-button-core[loading]>.weui-loading.weui-btn_primary{background-color:#179b16}.taro-button-core[loading]>.weui-loading.weui-btn_warn{background-color:#ce3c39}.taro-button-core{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background-color:#f8f8f8;border-radius:5px;border-width:0;box-sizing:border-box;color:#000;display:block;font-size:18px;line-height:2.55555556;margin-left:auto;margin-right:auto;outline:0;overflow:hidden;padding-left:14px;padding-right:14px;position:relative;text-align:center;text-decoration:none;width:100%}.taro-button-core:focus{outline:0}.taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core:after{border:1px solid rgba(0,0,0,.2);border-radius:10px;box-sizing:border-box;content:" ";height:200%;left:0;position:absolute;top:0;transform:scale(.5);transform-origin:0 0;width:200%}.taro-button-core+.taro-button-core{margin-top:15px}.taro-button-core[type=default]{background-color:#f8f8f8;color:#000}.taro-button-core[type=default]:not([disabled]):visited{color:#000}.taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core[size=mini]{display:inline-block;font-size:13px;line-height:2.3;padding:0 1.32em;width:auto}.taro-button-core[plain],.taro-button-core[plain][type=default],.taro-button-core[plain][type=primary]{background-color:transparent;border-width:1px}.taro-button-core[disabled]{color:hsla(0,0%,100%,.6)}.taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0,0,0,.3)}.taro-button-core[disabled][type=primary]{background-color:#9ed99d}.taro-button-core[disabled][type=warn]{background-color:#ec8b89}.taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}.taro-button-core[loading][type=primary],.taro-button-core[loading][type=warn]{color:hsla(0,0%,100%,.6)}.taro-button-core[loading][type=primary]{background-color:#179b16}.taro-button-core[loading][type=warn]{background-color:#ce3c39}.taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}.taro-button-core[plain][type=primary]:not([disabled]):active{background-color:transparent;border-color:rgba(26,173,25,.6);color:rgba(26,173,25,.6)}.taro-button-core[plain][type=primary]:after{border-width:0}.taro-button-core[plain][type=warn]{border:1px solid #e64340;color:#e64340}.taro-button-core[plain][type=warn]:not([disabled]):active{background-color:transparent;border-color:rgba(230,67,64,.6);color:rgba(230,67,64,.6)}.taro-button-core[plain][type=warn]:after{border-width:0}.taro-button-core[plain],.taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}.taro-button-core[plain]:not([disabled]):active,.taro-button-core[plain][type=default]:not([disabled]):active{background-color:transparent;border-color:rgba(53,53,53,.6);color:rgba(53,53,53,.6)}.taro-button-core[plain]:after,.taro-button-core[plain][type=default]:after{border-width:0}.taro-button-core[type=primary]{background-color:#1aad19;color:#fff}.taro-button-core[type=primary]:not([disabled]):visited{color:#fff}.taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:hsla(0,0%,100%,.6)}.taro-button-core[type=warn]{background-color:#e64340;color:#fff}.taro-button-core[type=warn]:not([disabled]):visited{color:#fff}.taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:hsla(0,0%,100%,.6)}.taro-button-core[plain][disabled],.taro-button-core[plain][disabled][type=primary]{background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2);color:rgba(0,0,0,.3)}.weui-icon-circle:before{content:"\ea01"}.weui-icon-download:before{content:"\ea02"}.weui-icon-info:before{content:"\ea03"}.weui-icon-safe-success:before{content:"\ea04"}.weui-icon-safe-warn:before{content:"\ea05"}.weui-icon-success:before{content:"\ea06"}.weui-icon-success-circle:before{content:"\ea07"}.weui-icon-success-no-circle:before{content:"\ea08"}.weui-icon-waiting:before{content:"\ea09"}.weui-icon-waiting-circle:before{content:"\ea0a"}.weui-icon-warn:before{content:"\ea0b"}.weui-icon-info-circle:before{content:"\ea0c"}.weui-icon-cancel:before{content:"\ea0d"}.weui-icon-search:before{content:"\ea0e"}.weui-icon-clear:before{content:"\ea0f"}.weui-icon-back:before{content:"\ea10"}.weui-icon-delete:before{content:"\ea11"}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-clear,.weui-icon-search{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}img[src=""]{opacity:0}.taro-img{display:inline-block;font-size:0;height:240px;overflow:hidden;position:relative;width:320px}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-aspectfit,.taro-img__mode-scaletofill{height:100%;object-fit:contain;width:100%}.taro-img__mode-aspectfill{height:100%;object-fit:cover;width:100%}.taro-img__mode-top,.taro-img__mode-widthfix{width:100%}.taro-img__mode-bottom{bottom:0;position:absolute;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%}.taro-img__mode-right,.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{bottom:0;position:absolute}.taro-img__mode-bottomright{bottom:0;position:absolute;right:0}.taro-input-core,input{display:block}input{height:1.4rem;overflow:hidden;text-align:inherit;text-overflow:clip;white-space:nowrap}.weui-input{-webkit-appearance:none;background-color:transparent;border:0;color:inherit;font-size:inherit;height:1.4705882353em;line-height:1.4705882353;outline:0;width:100%}.weui-input::-webkit-inner-spin-button,.weui-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.rmc-pull-to-refresh-content{transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{transition:transform .3s}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{animation-fill-mode:both;animation:rmc-pull-to-refresh-indicator .5s linear 0s infinite;background-color:grey;border-radius:100%;display:inline-block;height:6px;margin:3px;width:6px}.rmc-pull-to-refresh-indicator>div:nth-child(0){animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll::-webkit-scrollbar{display:none}.taro-scroll-view{overflow:hidden}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}.swiper-container-wrapper{height:150px}.swiper-container{height:100%}.swiper-pagination{font-size:0}.swiper-pagination-bullet{opacity:1}.taro-text{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}body,html{-webkit-tap-highlight-color:rgba(0,0,0,0);user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
export { Ad, AdCustom, AnimationVideo, AnimationView, ArCamera, Audio, AwemeData, Block,
|
|
1
|
+
export { Ad, AdCustom, AnimationVideo, AnimationView, ArCamera, Audio, AwemeData, Block, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CommentDetail, CommentList, ContactButton, CoverImage, CoverView, CustomWrapper, Editor, FollowSwan, Form, FunctionalPageNavigator, InlinePaymentPanel, KeyboardAccessory, Label, Lifestyle, Like, LivePlayer, LivePusher, Login, Lottie, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, OfficialAccount, OpenData, PageContainer, PageMeta, Picker, PickerGroup, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, RtcRoom, RtcRoomItem, ShareElement, Slider, Slot, Switch, TabItem, Tabbar, Tabs, Textarea, Video, VideoControl, VideoDanmu, VoipRoom, WebView } from '@tarojs/components/lib/react';
|
|
2
|
+
export { default as Button } from './components/button/index.js';
|
|
3
|
+
export { default as Icon } from './components/icon/index.js';
|
|
2
4
|
export { default as Image } from './components/image/index.js';
|
|
5
|
+
export { default as Input } from './components/input/index.js';
|
|
3
6
|
export { default as PullDownRefresh } from './components/pull-down-refresh/index.js';
|
|
4
7
|
export { default as ScrollView } from './components/scroll-view/index.js';
|
|
5
8
|
export { Swiper, SwiperItem } from './components/swiper/index.js';
|
|
6
9
|
export { default as Text } from './components/text/index.js';
|
|
7
10
|
export { default as View } from './components/view/index.js';
|
|
11
|
+
|
|
12
|
+
/* eslint-disable simple-import-sort/exports */
|
|
8
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nexport { Ad } from '@tarojs/components/lib/react'\nexport { AdCustom } from '@tarojs/components/lib/react'\nexport { AnimationVideo } from '@tarojs/components/lib/react'\nexport { AnimationView } from '@tarojs/components/lib/react'\nexport { ArCamera } from '@tarojs/components/lib/react'\nexport { Audio } from '@tarojs/components/lib/react'\nexport { AwemeData } from '@tarojs/components/lib/react'\nexport { Block } from '@tarojs/components/lib/react'\nexport { default as Button } from './components/button'\nexport { Camera } from '@tarojs/components/lib/react'\nexport { Canvas } from '@tarojs/components/lib/react'\nexport { ChannelLive } from '@tarojs/components/lib/react'\nexport { ChannelVideo } from '@tarojs/components/lib/react'\nexport { Checkbox, CheckboxGroup } from '@tarojs/components/lib/react'\nexport { CommentDetail, CommentList } from '@tarojs/components/lib/react'\nexport { ContactButton } from '@tarojs/components/lib/react'\nexport { CoverImage } from '@tarojs/components/lib/react'\nexport { CoverView } from '@tarojs/components/lib/react'\nexport { CustomWrapper } from '@tarojs/components/lib/react'\nexport { Editor } from '@tarojs/components/lib/react'\nexport { FollowSwan } from '@tarojs/components/lib/react'\nexport { Form } from '@tarojs/components/lib/react'\nexport { FunctionalPageNavigator } from '@tarojs/components/lib/react'\nexport { default as Icon } from './components/icon'\nexport { default as Image } from './components/image'\nexport { InlinePaymentPanel } from '@tarojs/components/lib/react'\nexport { default as Input } from './components/input'\nexport { KeyboardAccessory } from '@tarojs/components/lib/react'\nexport { Label } from '@tarojs/components/lib/react'\nexport { Lifestyle } from '@tarojs/components/lib/react'\nexport { Like } from '@tarojs/components/lib/react'\nexport { LivePlayer } from '@tarojs/components/lib/react'\nexport { LivePusher } from '@tarojs/components/lib/react'\nexport { Login } from '@tarojs/components/lib/react'\nexport { Lottie } from '@tarojs/components/lib/react'\nexport { Map } from '@tarojs/components/lib/react'\nexport { MatchMedia } from '@tarojs/components/lib/react'\nexport { MovableArea, MovableView } from '@tarojs/components/lib/react'\nexport { NavigationBar } from '@tarojs/components/lib/react'\nexport { Navigator } from '@tarojs/components/lib/react'\nexport { OfficialAccount } from '@tarojs/components/lib/react'\nexport { OpenData } from '@tarojs/components/lib/react'\nexport { PageContainer } from '@tarojs/components/lib/react'\nexport { PageMeta } from '@tarojs/components/lib/react'\nexport { Picker, PickerGroup } from '@tarojs/components/lib/react'\nexport { PickerView, PickerViewColumn } from '@tarojs/components/lib/react'\nexport { Progress } from '@tarojs/components/lib/react'\nexport { default as PullDownRefresh } from './components/pull-down-refresh'\n// export { PullToRefresh } from '@tarojs/components/lib/react'\nexport { Radio, RadioGroup } from '@tarojs/components/lib/react'\nexport { RichText } from '@tarojs/components/lib/react'\nexport { RootPortal } from '@tarojs/components/lib/react'\nexport { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/react'\nexport { default as ScrollView } from './components/scroll-view'\nexport { ShareElement } from '@tarojs/components/lib/react'\nexport { Slider } from '@tarojs/components/lib/react'\nexport { NativeSlot, Slot } from '@tarojs/components/lib/react'\nexport { Swiper, SwiperItem } from './components/swiper'\nexport { Switch } from '@tarojs/components/lib/react'\nexport { Tabbar, TabItem } from '@tarojs/components/lib/react'\nexport { Tabs } from '@tarojs/components/lib/react'\nexport { default as Text } from './components/text'\nexport { Textarea } from '@tarojs/components/lib/react'\nexport { Video, VideoControl, VideoDanmu } from '@tarojs/components/lib/react'\nexport { default as View } from './components/view'\nexport { VoipRoom } from '@tarojs/components/lib/react'\nexport { WebView } from '@tarojs/components/lib/react'\n"],"names":[],"mappings":";;;;;;;;;;;AAAA"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
|
|
1
3
|
function throttle(fn) {
|
|
2
4
|
var threshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
|
|
3
5
|
var scope = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -36,6 +38,22 @@ function debounce(fn) {
|
|
|
36
38
|
}, ms);
|
|
37
39
|
};
|
|
38
40
|
}
|
|
41
|
+
function omit(obj, fields) {
|
|
42
|
+
var shallowCopy = Object.assign({}, obj);
|
|
43
|
+
for (var i = 0; i < fields.length; i += 1) {
|
|
44
|
+
var key = fields[i];
|
|
45
|
+
delete shallowCopy[key];
|
|
46
|
+
}
|
|
47
|
+
return shallowCopy;
|
|
48
|
+
}
|
|
49
|
+
var createForwardRefComponent = function createForwardRefComponent(ReactComponent) {
|
|
50
|
+
var forwardRefComponent = function forwardRefComponent(props, ref) {
|
|
51
|
+
return React.createElement(ReactComponent, Object.assign({}, props, {
|
|
52
|
+
forwardedRef: ref
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
return forwardRef(forwardRefComponent);
|
|
56
|
+
};
|
|
39
57
|
|
|
40
|
-
export { debounce, throttle };
|
|
58
|
+
export { createForwardRefComponent, debounce, omit, throttle };
|
|
41
59
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/index.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/index.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nexport function throttle (fn, threshold = 250, scope?) {\n let lastTime = 0\n let deferTimer: ReturnType<typeof setTimeout>\n return function (...args) {\n const context = scope || this\n const now = Date.now()\n if (now - lastTime > threshold) {\n fn.apply(this, args)\n lastTime = now\n } else {\n clearTimeout(deferTimer)\n deferTimer = setTimeout(() => {\n lastTime = now\n fn.apply(context, args)\n }, threshold)\n }\n }\n}\n\nexport function debounce (fn, ms = 250, scope?) {\n let timer: ReturnType<typeof setTimeout>\n\n return function (...args) {\n const context = scope || this\n clearTimeout(timer)\n timer = setTimeout(function () {\n fn.apply(context, args)\n }, ms)\n }\n}\n\nexport function omit (obj, fields) {\n const shallowCopy = Object.assign({}, obj)\n for (let i = 0; i < fields.length; i += 1) {\n const key = fields[i]\n delete shallowCopy[key]\n }\n return shallowCopy\n}\n\nexport const createForwardRefComponent = (ReactComponent: any) => {\n const forwardRefComponent = (\n props,\n ref\n ) => <ReactComponent {...props} forwardedRef={ref} />\n\n return forwardRef(forwardRefComponent)\n}\n"],"names":["throttle","fn","threshold","arguments","length","undefined","scope","lastTime","deferTimer","_len","args","Array","_key","context","now","Date","apply","clearTimeout","setTimeout","debounce","ms","timer","_len2","_key2","omit","obj","fields","shallowCopy","Object","assign","i","key","createForwardRefComponent","ReactComponent","forwardRefComponent","props","ref","React","createElement","forwardedRef","forwardRef"],"mappings":";;AAEM,SAAUA,QAAQA,CAAEC,EAAE,EAAyB;AAAA,EAAA,IAAvBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG,CAAA;EAAA,IAAEG,KAAM,GAAAH,SAAA,CAAAC,MAAA,GAAAD,CAAAA,GAAAA,SAAA,MAAAE,SAAA,CAAA;EACnD,IAAIE,QAAQ,GAAG,CAAC,CAAA;AAChB,EAAA,IAAIC,UAAyC,CAAA;AAC7C,EAAA,OAAO,YAAiB;AA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C;;;;"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-react",
|
|
3
|
-
"version": "3.8.0-canary.
|
|
3
|
+
"version": "3.8.0-canary.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main:h5": "src/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
8
8
|
"types": "types/index.d.ts",
|
|
9
9
|
"sideEffects": [
|
|
10
|
-
"./dist/components/**/loader.js"
|
|
10
|
+
"./dist/components/**/loader.js",
|
|
11
|
+
"**/style/*.js",
|
|
12
|
+
"*.scss",
|
|
13
|
+
"*.css"
|
|
11
14
|
],
|
|
12
15
|
"files": [
|
|
13
16
|
"dist",
|
|
@@ -23,26 +26,29 @@
|
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"@babel/runtime": "^7.14.5",
|
|
25
28
|
"classnames": "^2.2.5",
|
|
26
|
-
"intersection-observer": "^0.7.0",
|
|
27
|
-
"resolve-pathname": "^3.0.0",
|
|
28
29
|
"swiper": "6.8.0",
|
|
29
|
-
"
|
|
30
|
-
"@tarojs/
|
|
31
|
-
"@tarojs/
|
|
30
|
+
"tslib": "^2.6.2",
|
|
31
|
+
"@tarojs/components": "3.8.0-canary.1",
|
|
32
|
+
"@tarojs/taro": "3.8.0-canary.1"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@babel/core": "^7.14.5",
|
|
35
|
-
"@rollup/plugin-babel": "^
|
|
36
|
-
"@rollup/plugin-commonjs": "^
|
|
37
|
-
"@rollup/plugin-node-resolve": "^
|
|
38
|
-
"rollup": "^
|
|
36
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
37
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
39
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
|
40
|
+
"postcss": "^8.4.18",
|
|
41
|
+
"rollup": "^3.8.1",
|
|
39
42
|
"rollup-plugin-node-externals": "^5.0.0",
|
|
40
|
-
"rollup-plugin-postcss": "^
|
|
43
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
41
44
|
"rollup-plugin-ts": "^3.0.2",
|
|
42
45
|
"typescript": "^4.7.4"
|
|
43
46
|
},
|
|
44
47
|
"scripts": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
48
|
+
"prebuild": "pnpm run clean",
|
|
49
|
+
"build": "pnpm run rollup --environment NODE_ENV:production",
|
|
50
|
+
"clean": "rimraf ./dist",
|
|
51
|
+
"dev": "pnpm run rollup --environment NODE_ENV:development -w",
|
|
52
|
+
"rollup": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --bundleConfigAsCjs"
|
|
47
53
|
}
|
|
48
54
|
}
|
package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '@babel/runtime/helpers/typeof';
|
|
2
|
-
|
|
3
|
-
function __rest(s, e) {
|
|
4
|
-
var t = {};
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { __rest };
|
|
13
|
-
//# sourceMappingURL=tslib.es6.js.map
|
package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tslib.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|