@arco-design/mobile-react 2.19.1-941e02b.7 → 2.19.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/CHANGELOG.md +13 -0
- package/cjs/button/index.d.ts +6 -0
- package/cjs/button/index.js +3 -1
- package/cjs/grid/index.js +12 -13
- package/cjs/image/index.d.ts +1 -0
- package/cjs/image/index.js +7 -9
- package/cjs/image-preview/index.d.ts +2 -2
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +1 -5
- package/cjs/notify/index.d.ts +1 -0
- package/cjs/notify/index.js +12 -0
- package/cjs/notify/type.d.ts +1 -0
- package/cjs/steps/demo/style/css/mobile.css +1 -1
- package/cjs/steps/demo/style/mobile.less +1 -1
- package/cjs/steps/style/css/index.css +15 -5
- package/cjs/steps/style/index.less +10 -6
- package/cjs/style.d.ts +0 -1
- package/cjs/style.js +0 -2
- package/cjs/transition/index.js +4 -2
- package/dist/index.js +242 -538
- package/dist/index.min.js +5 -4
- package/dist/style.css +9 -120
- package/dist/style.min.css +1 -1
- package/esm/button/index.d.ts +6 -0
- package/esm/button/index.js +3 -1
- package/esm/grid/index.js +12 -13
- package/esm/image/index.d.ts +1 -0
- package/esm/image/index.js +8 -10
- package/esm/image-preview/index.d.ts +2 -2
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/notify/index.d.ts +1 -0
- package/esm/notify/index.js +1 -0
- package/esm/notify/type.d.ts +1 -0
- package/esm/steps/demo/style/css/mobile.css +1 -1
- package/esm/steps/demo/style/mobile.less +1 -1
- package/esm/steps/style/css/index.css +15 -5
- package/esm/steps/style/index.less +10 -6
- package/esm/style.d.ts +0 -1
- package/esm/style.js +0 -1
- package/esm/transition/index.js +4 -2
- package/package.json +3 -3
- package/tokens/app/arcodesign/default/css-variables.less +2 -17
- package/tokens/app/arcodesign/default/index.d.ts +2 -17
- package/tokens/app/arcodesign/default/index.js +3 -18
- package/tokens/app/arcodesign/default/index.json +24 -140
- package/tokens/app/arcodesign/default/index.less +2 -17
- package/umd/button/index.d.ts +6 -0
- package/umd/button/index.js +3 -1
- package/umd/grid/index.js +12 -13
- package/umd/image/index.d.ts +1 -0
- package/umd/image/index.js +7 -9
- package/umd/image-preview/index.d.ts +2 -2
- package/umd/index.d.ts +0 -1
- package/umd/index.js +5 -7
- package/umd/notify/index.d.ts +1 -0
- package/umd/notify/index.js +13 -4
- package/umd/notify/type.d.ts +1 -0
- package/umd/steps/demo/style/css/mobile.css +1 -1
- package/umd/steps/demo/style/mobile.less +1 -1
- package/umd/steps/style/css/index.css +15 -5
- package/umd/steps/style/index.less +10 -6
- package/umd/style.d.ts +0 -1
- package/umd/style.js +4 -4
- package/umd/transition/index.js +4 -2
- package/cjs/image-picker/add-icon.d.ts +0 -2
- package/cjs/image-picker/add-icon.js +0 -22
- package/cjs/image-picker/demo/style/css/mobile.css +0 -40
- package/cjs/image-picker/demo/style/mobile.less +0 -42
- package/cjs/image-picker/index.d.ts +0 -181
- package/cjs/image-picker/index.js +0 -301
- package/cjs/image-picker/style/css/index.css +0 -147
- package/cjs/image-picker/style/css/index.d.ts +0 -2
- package/cjs/image-picker/style/css/index.js +0 -5
- package/cjs/image-picker/style/index.d.ts +0 -2
- package/cjs/image-picker/style/index.js +0 -5
- package/cjs/image-picker/style/index.less +0 -116
- package/esm/image-picker/add-icon.d.ts +0 -2
- package/esm/image-picker/add-icon.js +0 -14
- package/esm/image-picker/demo/style/css/mobile.css +0 -40
- package/esm/image-picker/demo/style/mobile.less +0 -42
- package/esm/image-picker/index.d.ts +0 -181
- package/esm/image-picker/index.js +0 -282
- package/esm/image-picker/style/css/index.css +0 -147
- package/esm/image-picker/style/css/index.d.ts +0 -2
- package/esm/image-picker/style/css/index.js +0 -2
- package/esm/image-picker/style/index.d.ts +0 -2
- package/esm/image-picker/style/index.js +0 -2
- package/esm/image-picker/style/index.less +0 -116
- package/umd/image-picker/add-icon.d.ts +0 -2
- package/umd/image-picker/add-icon.js +0 -35
- package/umd/image-picker/demo/style/css/mobile.css +0 -40
- package/umd/image-picker/demo/style/mobile.less +0 -42
- package/umd/image-picker/index.d.ts +0 -181
- package/umd/image-picker/index.js +0 -304
- package/umd/image-picker/style/css/index.css +0 -147
- package/umd/image-picker/style/css/index.d.ts +0 -2
- package/umd/image-picker/style/css/index.js +0 -15
- package/umd/image-picker/style/index.d.ts +0 -2
- package/umd/image-picker/style/index.js +0 -15
- package/umd/image-picker/style/index.less +0 -116
package/esm/button/index.d.ts
CHANGED
|
@@ -109,6 +109,12 @@ export interface ButtonProps {
|
|
|
109
109
|
* @en Callback function when disabling button
|
|
110
110
|
*/
|
|
111
111
|
onClickDisabled?: (e: React.MouseEvent) => void;
|
|
112
|
+
/**
|
|
113
|
+
* 加载中是否禁用按钮操作
|
|
114
|
+
* @en Disable button when loading
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
disableWhenLoading?: boolean;
|
|
112
118
|
}
|
|
113
119
|
export interface ButtonRef {
|
|
114
120
|
/**
|
package/esm/button/index.js
CHANGED
|
@@ -30,6 +30,8 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30
30
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
31
31
|
_props$disabled = props.disabled,
|
|
32
32
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
33
|
+
_props$disableWhenLoa = props.disableWhenLoading,
|
|
34
|
+
disableWhenLoading = _props$disableWhenLoa === void 0 ? true : _props$disableWhenLoa,
|
|
33
35
|
_props$shape = props.shape,
|
|
34
36
|
shape = _props$shape === void 0 ? 'semi' : _props$shape,
|
|
35
37
|
_props$halfBorder = props.halfBorder,
|
|
@@ -96,7 +98,7 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
96
98
|
onTouchCancel: handleTouchEnd,
|
|
97
99
|
onMouseDown: handleTouchStart,
|
|
98
100
|
onMouseUp: handleTouchEnd,
|
|
99
|
-
onClick: disabled ? onClickDisabled : onClick
|
|
101
|
+
onClick: disabled || loading && disableWhenLoading ? onClickDisabled : onClick
|
|
100
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
101
103
|
className: "btn-icon"
|
|
102
104
|
}, icon, loading && (loadingIcon === void 0 ? /*#__PURE__*/React.createElement(Loading, {
|
package/esm/grid/index.js
CHANGED
|
@@ -36,21 +36,14 @@ var Grid = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
var getRows = function getRows(prefix, rowsData, rows, row) {
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var fakeGrids = new Array(columns - placeholders).fill({
|
|
44
|
-
img: null,
|
|
45
|
-
title: ''
|
|
46
|
-
});
|
|
47
|
-
renderData = rowsData.concat(fakeGrids);
|
|
48
|
-
}
|
|
49
|
-
|
|
39
|
+
var fakeGrids = new Array(!isSliding && columns && rowsData.length % columns ? columns - rowsData.length % columns : 0).fill('');
|
|
40
|
+
var widthStyle = {
|
|
41
|
+
minWidth: 1 / columns * 100 + "%"
|
|
42
|
+
};
|
|
50
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
44
|
className: prefix + "-rows",
|
|
52
45
|
key: row
|
|
53
|
-
},
|
|
46
|
+
}, rowsData.map(function (item, index) {
|
|
54
47
|
var img = item.img,
|
|
55
48
|
title = item.title,
|
|
56
49
|
content = item.content,
|
|
@@ -64,7 +57,7 @@ var Grid = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
64
57
|
}
|
|
65
58
|
|
|
66
59
|
var marginBottom = row + 1 === rows ? 0 : typeof gutter === 'number' ? gutter : (gutter == null ? void 0 : gutter.y) || 0;
|
|
67
|
-
var rowLen =
|
|
60
|
+
var rowLen = rowsData.length;
|
|
68
61
|
var marginRight = index + 1 === rowLen ? 0 : typeof gutter === 'number' ? gutter : (gutter == null ? void 0 : gutter.x) || 0;
|
|
69
62
|
return /*#__PURE__*/React.createElement("div", {
|
|
70
63
|
key: index,
|
|
@@ -93,6 +86,12 @@ var Grid = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
93
86
|
}) : null, (row + 1) % rows !== 0 ? /*#__PURE__*/React.createElement("i", {
|
|
94
87
|
className: "horizontal-border"
|
|
95
88
|
}) : null);
|
|
89
|
+
}), fakeGrids.map(function (_, i) {
|
|
90
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: cls(prefix + "-rows-item fake-col"),
|
|
92
|
+
key: i,
|
|
93
|
+
style: widthStyle
|
|
94
|
+
});
|
|
96
95
|
}));
|
|
97
96
|
};
|
|
98
97
|
|
package/esm/image/index.d.ts
CHANGED
package/esm/image/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef, useImperativeHandle, useRef, useEffect, useMemo } from 'react';
|
|
3
|
-
import { cls,
|
|
3
|
+
import { cls, handleUnit, nextTick } from '@arco-design/mobile-utils';
|
|
4
4
|
import { ContextLayout } from '../context-provider';
|
|
5
5
|
import Loading from '../loading';
|
|
6
6
|
import { useSystem, useWindowSize, getStyleWithVendor, useMountedState } from '../_helpers';
|
|
@@ -39,7 +39,8 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39
39
|
var loadingImageRef = useRef(null);
|
|
40
40
|
var style = props.style,
|
|
41
41
|
className = props.className,
|
|
42
|
-
status = props.status,
|
|
42
|
+
_props$status = props.status,
|
|
43
|
+
status = _props$status === void 0 ? 'init' : _props$status,
|
|
43
44
|
src = props.src,
|
|
44
45
|
width = props.width,
|
|
45
46
|
height = props.height,
|
|
@@ -79,7 +80,6 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
79
80
|
var isPreview = Boolean(fit.indexOf('preview') >= 0);
|
|
80
81
|
var actualBoxWidth = boxWidth || windowWidth;
|
|
81
82
|
var actualBoxHeight = boxHeight || windowHeight;
|
|
82
|
-
var validStatus = status === undefined ? imageStatus : status;
|
|
83
83
|
var attrs = useMemo(function () {
|
|
84
84
|
var imageStyle = {};
|
|
85
85
|
|
|
@@ -255,9 +255,7 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
return /*#__PURE__*/React.createElement(ContextLayout, null, function (_ref) {
|
|
258
|
-
var prefixCls = _ref.prefixCls
|
|
259
|
-
_ref$locale = _ref.locale,
|
|
260
|
-
locale = _ref$locale === void 0 ? defaultLocale : _ref$locale;
|
|
258
|
+
var prefixCls = _ref.prefixCls;
|
|
261
259
|
return /*#__PURE__*/React.createElement("div", {
|
|
262
260
|
className: cls(prefixCls + "-image all-border-box", {
|
|
263
261
|
preview: isPreview
|
|
@@ -272,7 +270,7 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
272
270
|
}, bottomOverlap || /*#__PURE__*/React.createElement("div", {
|
|
273
271
|
className: "image-placeholder"
|
|
274
272
|
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
275
|
-
className: cls('image-container',
|
|
273
|
+
className: cls('image-container', imageStatus, {
|
|
276
274
|
animate: Boolean(animateDuration),
|
|
277
275
|
'static-label': staticLabel
|
|
278
276
|
}),
|
|
@@ -287,7 +285,7 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
287
285
|
return _onLoad && _onLoad(e.nativeEvent, imageDomRef.current);
|
|
288
286
|
},
|
|
289
287
|
onError: handleStaticImageError
|
|
290
|
-
})) : null), showLoading &&
|
|
288
|
+
})) : null), showLoading && (status === 'loading' || imageStatus === 'loading') ? /*#__PURE__*/React.createElement("div", {
|
|
291
289
|
className: "image-content image-loading-container",
|
|
292
290
|
style: {
|
|
293
291
|
borderRadius: radius
|
|
@@ -299,7 +297,7 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
299
297
|
className: "loading-icon",
|
|
300
298
|
radius: 8.5,
|
|
301
299
|
stroke: 3
|
|
302
|
-
}))) : null, showError &&
|
|
300
|
+
}))) : null, showError && (status === 'error' || imageStatus === 'error') ? /*#__PURE__*/React.createElement("div", {
|
|
303
301
|
className: "image-content image-error-container",
|
|
304
302
|
onClick: function onClick(e) {
|
|
305
303
|
e.stopPropagation();
|
|
@@ -310,7 +308,7 @@ export var BaseImage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
310
308
|
}
|
|
311
309
|
}, errorArea || /*#__PURE__*/React.createElement("div", {
|
|
312
310
|
className: "image-retry-load"
|
|
313
|
-
},
|
|
311
|
+
}, "\u91CD\u8BD5")) : null, topOverlap ? /*#__PURE__*/React.createElement("div", {
|
|
314
312
|
className: "image-content image-top-overlap",
|
|
315
313
|
style: {
|
|
316
314
|
borderRadius: radius
|
|
@@ -268,9 +268,9 @@ declare const _default: React.ForwardRefExoticComponent<ImagePreviewProps & Reac
|
|
|
268
268
|
* @param {ImagePreviewProps} config configuration
|
|
269
269
|
* @returns {{ close: () => void; update: (newConfig: ImagePreviewProps) => void; }}
|
|
270
270
|
*/
|
|
271
|
-
open: (config: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "
|
|
271
|
+
open: (config: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "openIndex" | "images" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => {
|
|
272
272
|
close: () => void;
|
|
273
|
-
update: (newConfig: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "
|
|
273
|
+
update: (newConfig: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "openIndex" | "images" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => void; /**
|
|
274
274
|
* 是否可循环滑动
|
|
275
275
|
* @en Whether it can be swiped circularly
|
|
276
276
|
* @default false
|
package/esm/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export { default as Ellipsis } from './ellipsis';
|
|
|
21
21
|
export { default as Grid } from './grid';
|
|
22
22
|
export { default as Image } from './image';
|
|
23
23
|
export { default as ShowMonitor } from './show-monitor';
|
|
24
|
-
export { default as ImagePicker } from './image-picker';
|
|
25
24
|
export { default as ImagePreview } from './image-preview';
|
|
26
25
|
export { default as Input } from './input';
|
|
27
26
|
export { default as LoadMore } from './load-more';
|
package/esm/index.js
CHANGED
|
@@ -21,7 +21,6 @@ export { default as Ellipsis } from './ellipsis';
|
|
|
21
21
|
export { default as Grid } from './grid';
|
|
22
22
|
export { default as Image } from './image';
|
|
23
23
|
export { default as ShowMonitor } from './show-monitor';
|
|
24
|
-
export { default as ImagePicker } from './image-picker';
|
|
25
24
|
export { default as ImagePreview } from './image-preview';
|
|
26
25
|
export { default as Input } from './input';
|
|
27
26
|
export { default as LoadMore } from './load-more';
|
package/esm/notify/index.d.ts
CHANGED
package/esm/notify/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { componentWrapper, nextTick } from '@arco-design/mobile-utils';
|
|
|
5
5
|
import { ContextLayout } from '../context-provider';
|
|
6
6
|
import { getStyleWithVendor, useUpdateEffect } from '../_helpers';
|
|
7
7
|
import { notify } from './methods';
|
|
8
|
+
export * from './type';
|
|
8
9
|
var Notify = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
9
10
|
var _props$className = props.className,
|
|
10
11
|
className = _props$className === void 0 ? '' : _props$className,
|
package/esm/notify/type.d.ts
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
.vertical .arco-steps-item-tail {
|
|
60
60
|
height: 100%;
|
|
61
61
|
width: 18PX ;
|
|
62
|
-
top:
|
|
62
|
+
top: 0.18rem;
|
|
63
63
|
padding: 0.28rem 0 ;
|
|
64
64
|
}
|
|
65
65
|
.vertical .arco-steps-item-tail:after {
|
|
@@ -73,7 +73,19 @@
|
|
|
73
73
|
.finish .arco-steps-item-tail:after {
|
|
74
74
|
background: #165dff ;
|
|
75
75
|
}
|
|
76
|
-
.arco-steps-item-custom-icon
|
|
76
|
+
.arco-steps-item-custom-icon {
|
|
77
|
+
display: -webkit-box;
|
|
78
|
+
display: -webkit-flex;
|
|
79
|
+
display: flex;
|
|
80
|
+
-webkit-box-align: center;
|
|
81
|
+
-webkit-align-items: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
-webkit-box-pack: center;
|
|
84
|
+
-webkit-justify-content: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: 20PX ;
|
|
87
|
+
height: 20PX ;
|
|
88
|
+
}
|
|
77
89
|
.arco-steps-item-icon {
|
|
78
90
|
display: -webkit-inline-box;
|
|
79
91
|
display: -webkit-inline-flex;
|
|
@@ -84,12 +96,10 @@
|
|
|
84
96
|
-webkit-box-pack: center;
|
|
85
97
|
-webkit-justify-content: center;
|
|
86
98
|
justify-content: center;
|
|
99
|
+
border-radius: 50%;
|
|
87
100
|
width: 18PX ;
|
|
88
101
|
height: 18PX ;
|
|
89
102
|
}
|
|
90
|
-
.arco-steps-item-icon {
|
|
91
|
-
border-radius: 50%;
|
|
92
|
-
}
|
|
93
103
|
.number.finish .arco-steps-item-icon {
|
|
94
104
|
background: #E8F3FF ;
|
|
95
105
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.vertical & {
|
|
48
48
|
height: 100%;
|
|
49
49
|
.use-var(width, steps-icon-width);
|
|
50
|
-
.
|
|
50
|
+
.rem(top, 9);
|
|
51
51
|
.use-var(padding, steps-tail-vertical-padding);
|
|
52
52
|
|
|
53
53
|
&:after {
|
|
@@ -65,17 +65,21 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
&-custom-icon
|
|
69
|
-
|
|
70
|
-
display: inline-flex;
|
|
68
|
+
&-custom-icon {
|
|
69
|
+
display: flex;
|
|
71
70
|
align-items: center;
|
|
72
71
|
justify-content: center;
|
|
73
|
-
.use-var(width, steps-icon-width);
|
|
74
|
-
.use-var(height, steps-icon-height);
|
|
72
|
+
.use-var(width, steps-custom-icon-width);
|
|
73
|
+
.use-var(height, steps-custom-icon-height);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
&-icon {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
78
80
|
border-radius: 50%;
|
|
81
|
+
.use-var(width, steps-icon-width);
|
|
82
|
+
.use-var(height, steps-icon-height);
|
|
79
83
|
|
|
80
84
|
.number.finish & {
|
|
81
85
|
.use-var(background, steps-finish-icon-num-background);
|
package/esm/style.d.ts
CHANGED
package/esm/style.js
CHANGED
package/esm/transition/index.js
CHANGED
|
@@ -14,10 +14,12 @@ import { ContextLayout } from '../context-provider';
|
|
|
14
14
|
* @name_en Transition
|
|
15
15
|
*/
|
|
16
16
|
export default function Transition(props) {
|
|
17
|
-
var children = props.children,
|
|
17
|
+
var _props$children = props.children,
|
|
18
|
+
children = _props$children === void 0 ? /*#__PURE__*/React.createElement("div", null) : _props$children,
|
|
18
19
|
type = props.type,
|
|
19
20
|
transIn = props.in,
|
|
20
|
-
timeout = props.timeout,
|
|
21
|
+
_props$timeout = props.timeout,
|
|
22
|
+
timeout = _props$timeout === void 0 ? 300 : _props$timeout,
|
|
21
23
|
_props$mountOnEnter = props.mountOnEnter,
|
|
22
24
|
mountOnEnter = _props$mountOnEnter === void 0 ? true : _props$mountOnEnter,
|
|
23
25
|
_props$unmountOnExit = props.unmountOnExit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arco-design/mobile-react",
|
|
3
|
-
"version": "2.19.1
|
|
3
|
+
"version": "2.19.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "taoyiyue@bytedance.com",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@arco-design/mobile-utils": "^2.10.1
|
|
18
|
+
"@arco-design/mobile-utils": "^2.10.1",
|
|
19
19
|
"@arco-design/transformable": "^1.0.0",
|
|
20
20
|
"es6-promise": "^4.2.8",
|
|
21
21
|
"lodash.throttle": "^4.1.1",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "87bdcdc779e527c26b07dd8a950d8e7cec0982dd"
|
|
40
40
|
}
|
|
@@ -518,7 +518,6 @@
|
|
|
518
518
|
--steps-padding: ~`pxtorem(16)` 0;
|
|
519
519
|
--steps-tail-horizontal-padding: 0 ~`pxtorem(18)`;
|
|
520
520
|
--steps-tail-vertical-padding: ~`pxtorem(14)` 0;
|
|
521
|
-
--steps-tail-vertical-top: ~`pxtorem(9)`;
|
|
522
521
|
--steps-tail-standard-size: 1PX;
|
|
523
522
|
--steps-tail-standard-background: var(--line-color);
|
|
524
523
|
--steps-tail-finish-background: var(--primary-color);
|
|
@@ -545,6 +544,8 @@
|
|
|
545
544
|
--steps-wait-description-color: var(--sub-info-font-color);
|
|
546
545
|
--steps-icon-width: 18PX;
|
|
547
546
|
--steps-icon-height: 18PX;
|
|
547
|
+
--steps-custom-icon-width: 20PX;
|
|
548
|
+
--steps-custom-icon-height: 20PX;
|
|
548
549
|
--steps-dot-width: 8PX;
|
|
549
550
|
--steps-dot-height: 8PX;
|
|
550
551
|
--steps-dot-border-width: 1.5PX;
|
|
@@ -646,20 +647,4 @@
|
|
|
646
647
|
--action-sheet-header-padding: ~`pxtorem(16)`;
|
|
647
648
|
--action-sheet-title-font-size: ~`pxtorem(16)`;
|
|
648
649
|
--action-sheet-sub-title-font-size: ~`pxtorem(14)`;
|
|
649
|
-
--image-picker-font-size: ~`pxtorem(14)`;
|
|
650
|
-
--image-picker-disabled-opacity: 0.7;
|
|
651
|
-
--image-picker-border-radius: ~`pxtorem(2)`;
|
|
652
|
-
--image-picker-add-background: #f7f8fa;
|
|
653
|
-
--image-picker-add-icon-font-size: ~`pxtorem(30)`;
|
|
654
|
-
--image-picker-add-icon-color: #d8d8d8;
|
|
655
|
-
--image-picker-add-text-font-size: ~`pxtorem(12)`;
|
|
656
|
-
--image-picker-add-text-color: var(--sub-info-font-color);
|
|
657
|
-
--image-picker-error-color: #ffffff;
|
|
658
|
-
--image-picker-error-background: rgba(0, 0, 0, 0.5);
|
|
659
|
-
--image-picker-close-color: #ffffff;
|
|
660
|
-
--image-picker-close-font-size: ~`pxtorem(12)`;
|
|
661
|
-
--image-picker-close-width: ~`pxtorem(18)`;
|
|
662
|
-
--image-picker-close-height: ~`pxtorem(18)`;
|
|
663
|
-
--image-picker-close-background: rgba(0, 0, 0, 0.3);
|
|
664
|
-
--image-picker-close-border-radius: 0 ~`pxtorem(2)`;
|
|
665
650
|
}
|
|
@@ -517,7 +517,6 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
|
517
517
|
'steps-padding': string;
|
|
518
518
|
'steps-tail-horizontal-padding': string;
|
|
519
519
|
'steps-tail-vertical-padding': string;
|
|
520
|
-
'steps-tail-vertical-top': string;
|
|
521
520
|
'steps-tail-standard-size': string;
|
|
522
521
|
'steps-tail-standard-background': string;
|
|
523
522
|
'steps-tail-finish-background': string;
|
|
@@ -544,6 +543,8 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
|
544
543
|
'steps-wait-description-color': string;
|
|
545
544
|
'steps-icon-width': string;
|
|
546
545
|
'steps-icon-height': string;
|
|
546
|
+
'steps-custom-icon-width': string;
|
|
547
|
+
'steps-custom-icon-height': string;
|
|
547
548
|
'steps-dot-width': string;
|
|
548
549
|
'steps-dot-height': string;
|
|
549
550
|
'steps-dot-border-width': string;
|
|
@@ -645,22 +646,6 @@ export interface ArcodesignToken extends Record<string, string> {
|
|
|
645
646
|
'action-sheet-header-padding': string;
|
|
646
647
|
'action-sheet-title-font-size': string;
|
|
647
648
|
'action-sheet-sub-title-font-size': string;
|
|
648
|
-
'image-picker-font-size': string;
|
|
649
|
-
'image-picker-disabled-opacity': string;
|
|
650
|
-
'image-picker-border-radius': string;
|
|
651
|
-
'image-picker-add-background': string;
|
|
652
|
-
'image-picker-add-icon-font-size': string;
|
|
653
|
-
'image-picker-add-icon-color': string;
|
|
654
|
-
'image-picker-add-text-font-size': string;
|
|
655
|
-
'image-picker-add-text-color': string;
|
|
656
|
-
'image-picker-error-color': string;
|
|
657
|
-
'image-picker-error-background': string;
|
|
658
|
-
'image-picker-close-color': string;
|
|
659
|
-
'image-picker-close-font-size': string;
|
|
660
|
-
'image-picker-close-width': string;
|
|
661
|
-
'image-picker-close-height': string;
|
|
662
|
-
'image-picker-close-background': string;
|
|
663
|
-
'image-picker-close-border-radius': string;
|
|
664
649
|
}
|
|
665
650
|
declare const tokens: ArcodesignToken;
|
|
666
651
|
export default tokens;
|
|
@@ -529,7 +529,6 @@ var tokens = {
|
|
|
529
529
|
"steps-padding": "0.32rem 0",
|
|
530
530
|
"steps-tail-horizontal-padding": "0 0.36rem",
|
|
531
531
|
"steps-tail-vertical-padding": "0.28rem 0",
|
|
532
|
-
"steps-tail-vertical-top": "0.18rem",
|
|
533
532
|
"steps-tail-standard-size": "1PX",
|
|
534
533
|
"steps-tail-standard-background": "#e5e6eb",
|
|
535
534
|
"steps-tail-finish-background": "#165dff",
|
|
@@ -556,6 +555,8 @@ var tokens = {
|
|
|
556
555
|
"steps-wait-description-color": "#86909c",
|
|
557
556
|
"steps-icon-width": "18PX",
|
|
558
557
|
"steps-icon-height": "18PX",
|
|
558
|
+
"steps-custom-icon-width": "20PX",
|
|
559
|
+
"steps-custom-icon-height": "20PX",
|
|
559
560
|
"steps-dot-width": "8PX",
|
|
560
561
|
"steps-dot-height": "8PX",
|
|
561
562
|
"steps-dot-border-width": "1.5PX",
|
|
@@ -656,23 +657,7 @@ var tokens = {
|
|
|
656
657
|
"action-sheet-cancel-border-width": "0.16rem",
|
|
657
658
|
"action-sheet-header-padding": "0.32rem",
|
|
658
659
|
"action-sheet-title-font-size": "0.32rem",
|
|
659
|
-
"action-sheet-sub-title-font-size": "0.28rem"
|
|
660
|
-
"image-picker-font-size": "0.28rem",
|
|
661
|
-
"image-picker-disabled-opacity": "0.7",
|
|
662
|
-
"image-picker-border-radius": "0.04rem",
|
|
663
|
-
"image-picker-add-background": "#f7f8fa",
|
|
664
|
-
"image-picker-add-icon-font-size": "0.6rem",
|
|
665
|
-
"image-picker-add-icon-color": "#d8d8d8",
|
|
666
|
-
"image-picker-add-text-font-size": "0.24rem",
|
|
667
|
-
"image-picker-add-text-color": "#86909c",
|
|
668
|
-
"image-picker-error-color": "#ffffff",
|
|
669
|
-
"image-picker-error-background": "rgba(0, 0, 0, 0.5)",
|
|
670
|
-
"image-picker-close-color": "#ffffff",
|
|
671
|
-
"image-picker-close-font-size": "0.24rem",
|
|
672
|
-
"image-picker-close-width": "0.36rem",
|
|
673
|
-
"image-picker-close-height": "0.36rem",
|
|
674
|
-
"image-picker-close-background": "rgba(0, 0, 0, 0.3)",
|
|
675
|
-
"image-picker-close-border-radius": "0 0.04rem"
|
|
660
|
+
"action-sheet-sub-title-font-size": "0.28rem"
|
|
676
661
|
};
|
|
677
662
|
var _default = tokens;
|
|
678
663
|
exports["default"] = _default;
|