@nutui/nutui-react-taro 3.0.19-cpp.26-beta.4 → 3.0.19-cpp.27
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 +14 -0
- package/dist/cjs/locales/base.d.ts +5 -0
- package/dist/cjs/locales/en-US.js +5 -0
- package/dist/cjs/locales/id-ID.js +5 -0
- package/dist/cjs/locales/ja-JP.js +6 -1
- package/dist/cjs/locales/tr-TR.js +5 -0
- package/dist/cjs/locales/zh-CN.js +5 -0
- package/dist/cjs/locales/zh-TW.js +5 -0
- package/dist/cjs/locales/zh-UG.js +5 -0
- package/dist/cjs/packages/actionsheet/style/style.harmony.css +7 -7
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/style/style.harmony.css +7 -7
- package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
- package/dist/cjs/packages/avatar/avatar.js +32 -6
- package/dist/cjs/packages/badge/badge.js +16 -3
- package/dist/cjs/packages/button/button.d.ts +2 -21
- package/dist/cjs/packages/button/button.js +2 -3
- package/dist/cjs/packages/button/index.d.ts +0 -1
- package/dist/cjs/packages/calendar/style/style.harmony.css +7 -7
- package/dist/cjs/packages/cascader/style/style.harmony.css +7 -7
- package/dist/cjs/packages/datepicker/style/style.harmony.css +7 -7
- package/dist/cjs/packages/dialog/dialog.js +6 -2
- package/dist/cjs/packages/divider/divider.js +2 -2
- package/dist/cjs/packages/empty/empty.d.ts +4 -4
- package/dist/cjs/packages/image/image.js +11 -3
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +7 -7
- package/dist/cjs/packages/input/input.js +10 -3
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +7 -7
- package/dist/cjs/packages/picker/style/style.harmony.css +7 -7
- package/dist/cjs/packages/popover/style/style.harmony.css +7 -7
- package/dist/cjs/packages/popup/style/popup.scss +8 -7
- package/dist/cjs/packages/popup/style/style.css +7 -7
- package/dist/cjs/packages/popup/style/style.harmony.css +7 -7
- package/dist/cjs/packages/popup/style-jmapp/popup.scss +8 -7
- package/dist/cjs/packages/popup/style-jmapp/style.css +7 -7
- package/dist/cjs/packages/popup/style-jrkf/popup.scss +8 -7
- package/dist/cjs/packages/popup/style-jrkf/style.css +7 -7
- package/dist/cjs/packages/progress/progress.js +2 -4
- package/dist/cjs/packages/quickenter/quickenter.js +21 -15
- package/dist/cjs/packages/quickenter/style/quickenter.scss +10 -2
- package/dist/cjs/packages/quickenter/style/style.css +7 -1
- package/dist/cjs/packages/quickenter/style/style.harmony.css +13 -8
- package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +10 -2
- package/dist/cjs/packages/quickenter/style-jmapp/style.css +7 -1
- package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +10 -2
- package/dist/cjs/packages/quickenter/style-jrkf/style.css +7 -1
- package/dist/cjs/packages/resultpage/resultpage.js +2 -1
- package/dist/cjs/packages/searchbar/searchbar.js +23 -9
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +7 -7
- package/dist/cjs/packages/swipe/swipe.d.ts +1 -1
- package/dist/cjs/packages/tabs/tabs.js +12 -5
- package/dist/cjs/packages/timeselect/style/style.harmony.css +7 -7
- package/dist/cjs/packages/tour/style/style.harmony.css +7 -7
- package/dist/cjs/types/spec/button/base.d.ts +2 -1
- package/dist/cjs/types/spec/button/taro.d.ts +5 -1
- package/dist/cjs/types/spec/quickenter/base.d.ts +1 -0
- package/dist/cjs/utils/taro/get-rect.js +4 -2
- package/dist/es/locales/base.d.ts +5 -0
- package/dist/es/locales/en-US.js +5 -0
- package/dist/es/locales/id-ID.js +5 -0
- package/dist/es/locales/ja-JP.js +6 -1
- package/dist/es/locales/tr-TR.js +5 -0
- package/dist/es/locales/zh-CN.js +5 -0
- package/dist/es/locales/zh-TW.js +5 -0
- package/dist/es/locales/zh-UG.js +5 -0
- package/dist/es/packages/actionsheet/style/style.harmony.css +7 -7
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/style/style.harmony.css +7 -7
- package/dist/es/packages/animatingnumbers/countup.js +3 -1
- package/dist/es/packages/avatar/avatar.js +32 -6
- package/dist/es/packages/badge/badge.js +16 -3
- package/dist/es/packages/button/button.d.ts +2 -21
- package/dist/es/packages/button/button.js +2 -4
- package/dist/es/packages/button/index.d.ts +0 -1
- package/dist/es/packages/calendar/style/style.harmony.css +7 -7
- package/dist/es/packages/cascader/style/style.harmony.css +7 -7
- package/dist/es/packages/datepicker/style/style.harmony.css +7 -7
- package/dist/es/packages/dialog/dialog.js +6 -2
- package/dist/es/packages/divider/divider.js +1 -1
- package/dist/es/packages/empty/empty.d.ts +4 -4
- package/dist/es/packages/image/image.js +11 -3
- package/dist/es/packages/imagepreview/style/style.harmony.css +7 -7
- package/dist/es/packages/input/input.js +10 -3
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +7 -7
- package/dist/es/packages/picker/style/style.harmony.css +7 -7
- package/dist/es/packages/popover/style/style.harmony.css +7 -7
- package/dist/es/packages/popup/popup.js +1 -2
- package/dist/es/packages/popup/style/popup.scss +8 -7
- package/dist/es/packages/popup/style/style.css +7 -7
- package/dist/es/packages/popup/style/style.harmony.css +7 -7
- package/dist/es/packages/popup/style-jmapp/popup.scss +8 -7
- package/dist/es/packages/popup/style-jmapp/style.css +7 -7
- package/dist/es/packages/popup/style-jrkf/popup.scss +8 -7
- package/dist/es/packages/popup/style-jrkf/style.css +7 -7
- package/dist/es/packages/progress/progress.js +2 -4
- package/dist/es/packages/quickenter/quickenter.js +19 -13
- package/dist/es/packages/quickenter/style/quickenter.scss +10 -2
- package/dist/es/packages/quickenter/style/style.css +7 -1
- package/dist/es/packages/quickenter/style/style.harmony.css +13 -8
- package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +10 -2
- package/dist/es/packages/quickenter/style-jmapp/style.css +7 -1
- package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +10 -2
- package/dist/es/packages/quickenter/style-jrkf/style.css +7 -1
- package/dist/es/packages/resultpage/resultpage.js +2 -1
- package/dist/es/packages/searchbar/searchbar.js +23 -9
- package/dist/es/packages/shortpassword/style/style.harmony.css +7 -7
- package/dist/es/packages/swipe/swipe.d.ts +1 -1
- package/dist/es/packages/tabs/tabs.js +12 -5
- package/dist/es/packages/timeselect/style/style.harmony.css +7 -7
- package/dist/es/packages/tour/style/style.harmony.css +7 -7
- package/dist/es/types/spec/button/base.d.ts +2 -1
- package/dist/es/types/spec/button/taro.d.ts +5 -1
- package/dist/es/types/spec/quickenter/base.d.ts +1 -0
- package/dist/es/utils/taro/get-rect.js +4 -2
- package/dist/nutui.react.umd.js +1127 -102
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +34 -34
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +42 -42
- package/dist/style.css +1 -1
- package/dist/style.scss +36 -36
- package/dist/styles/jd-font.scss +2 -2
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { Image as TImage, View } from "@tarojs/components";
|
|
|
9
9
|
import { Image as ImageIcon, ImageError } from "@nutui/icons-react-taro";
|
|
10
10
|
import classNames from "classnames";
|
|
11
11
|
import { pxTransform } from "../../utils/taro/px-transform";
|
|
12
|
+
import { useConfig } from "../configprovider/index";
|
|
12
13
|
var defaultProps = {
|
|
13
14
|
src: '',
|
|
14
15
|
error: true,
|
|
@@ -30,6 +31,7 @@ export var Image = function(props) {
|
|
|
30
31
|
]);
|
|
31
32
|
var _useState = _sliced_to_array(useState(true), 2), innerLoading = _useState[0], setInnerLoading = _useState[1];
|
|
32
33
|
var _useState1 = _sliced_to_array(useState(false), 2), isError = _useState1[0], setIsError = _useState1[1];
|
|
34
|
+
var locale = useConfig().locale;
|
|
33
35
|
var pxCheck = function(value) {
|
|
34
36
|
return Number.isNaN(Number(value)) ? String(value) : pxTransform(+value);
|
|
35
37
|
};
|
|
@@ -62,8 +64,11 @@ export var Image = function(props) {
|
|
|
62
64
|
if (!isError) return null;
|
|
63
65
|
if (typeof error === 'boolean' && error === true && !innerLoading) {
|
|
64
66
|
return /*#__PURE__*/ React.createElement(View, {
|
|
65
|
-
className: "".concat(classPrefix, "-error")
|
|
66
|
-
|
|
67
|
+
className: "".concat(classPrefix, "-error"),
|
|
68
|
+
ariaLabel: locale.image.errorTip || ''
|
|
69
|
+
}, /*#__PURE__*/ React.createElement(ImageError, {
|
|
70
|
+
ariaHidden: true
|
|
71
|
+
}));
|
|
67
72
|
}
|
|
68
73
|
if (/*#__PURE__*/ React.isValidElement(error) && !innerLoading) {
|
|
69
74
|
return /*#__PURE__*/ React.createElement(View, {
|
|
@@ -74,7 +79,8 @@ export var Image = function(props) {
|
|
|
74
79
|
}, [
|
|
75
80
|
error,
|
|
76
81
|
isError,
|
|
77
|
-
innerLoading
|
|
82
|
+
innerLoading,
|
|
83
|
+
locale
|
|
78
84
|
]);
|
|
79
85
|
var renderLoading = useCallback(function() {
|
|
80
86
|
if (!loading) return null;
|
|
@@ -100,6 +106,8 @@ export var Image = function(props) {
|
|
|
100
106
|
className: classNames("".concat(classPrefix, "-default"), className && "".concat(className, "-image"), _define_property({}, "".concat(classPrefix, "-error"), isError)),
|
|
101
107
|
style: imgStyle,
|
|
102
108
|
src: src,
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
ariaHidden: isError,
|
|
103
111
|
onLoad: function(e) {
|
|
104
112
|
return handleLoad(e);
|
|
105
113
|
},
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
animation-name: popup-slide-right-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-right-exit
|
|
294
|
+
.nut-popup-slide-right-exit {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-right-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
transform: translate3d(0, 0%, 0);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
@keyframes
|
|
307
|
+
@keyframes slide-bottom-exit {
|
|
308
308
|
from {
|
|
309
309
|
transform: translate3d(0, 0%, 0);
|
|
310
310
|
}
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
316
|
-
transform:
|
|
316
|
+
transform: translate(0, 0);
|
|
317
317
|
animation-fill-mode: both;
|
|
318
318
|
animation-name: popup-slide-bottom-enter;
|
|
319
319
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
320
320
|
}
|
|
321
|
-
.nut-popup-slide-bottom-exit
|
|
321
|
+
.nut-popup-slide-bottom-exit {
|
|
322
322
|
animation-fill-mode: both;
|
|
323
|
-
animation-name:
|
|
323
|
+
animation-name: slide-bottom-exit;
|
|
324
324
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
325
325
|
}
|
|
326
326
|
@keyframes popup-slide-left-enter {
|
|
@@ -340,12 +340,12 @@
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
343
|
-
transform:
|
|
343
|
+
transform: translate(0, 0);
|
|
344
344
|
animation-fill-mode: both;
|
|
345
345
|
animation-name: popup-slide-left-enter;
|
|
346
346
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
347
347
|
}
|
|
348
|
-
.nut-popup-slide-left-exit-active {
|
|
348
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
349
349
|
animation-fill-mode: both;
|
|
350
350
|
animation-name: popup-slide-left-exit;
|
|
351
351
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -191,7 +191,9 @@ export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
191
191
|
confirmType: confirmType,
|
|
192
192
|
onBlur: handleBlur,
|
|
193
193
|
onFocus: handleFocus,
|
|
194
|
-
onInput: handleInput
|
|
194
|
+
onInput: handleInput,
|
|
195
|
+
ariaLabel: props.ariaLabel || // eslint-disable-next-line no-nested-ternary
|
|
196
|
+
(value ? undefined : placeholder === undefined ? locale.placeholder : placeholder)
|
|
195
197
|
})), /*#__PURE__*/ React.createElement(View, {
|
|
196
198
|
style: {
|
|
197
199
|
display: clearable && !readOnly && active && value.length > 0 ? 'flex' : 'none',
|
|
@@ -204,8 +206,13 @@ export var Input = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
204
206
|
setValue('');
|
|
205
207
|
onClear === null || onClear === void 0 ? void 0 : onClear('');
|
|
206
208
|
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
+
},
|
|
210
|
+
ariaRole: "button",
|
|
211
|
+
ariaLabel: locale.clear || '清除'
|
|
212
|
+
}, clearIcon ? /*#__PURE__*/ React.cloneElement(clearIcon, {
|
|
213
|
+
ariaHidden: true
|
|
214
|
+
}) : /*#__PURE__*/ React.createElement(MaskClose, {
|
|
215
|
+
ariaHidden: true,
|
|
209
216
|
className: "nut-input-clear"
|
|
210
217
|
})));
|
|
211
218
|
});
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
animation-name: popup-slide-right-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-right-exit
|
|
294
|
+
.nut-popup-slide-right-exit {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-right-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
transform: translate3d(0, 0%, 0);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
@keyframes
|
|
307
|
+
@keyframes slide-bottom-exit {
|
|
308
308
|
from {
|
|
309
309
|
transform: translate3d(0, 0%, 0);
|
|
310
310
|
}
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
316
|
-
transform:
|
|
316
|
+
transform: translate(0, 0);
|
|
317
317
|
animation-fill-mode: both;
|
|
318
318
|
animation-name: popup-slide-bottom-enter;
|
|
319
319
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
320
320
|
}
|
|
321
|
-
.nut-popup-slide-bottom-exit
|
|
321
|
+
.nut-popup-slide-bottom-exit {
|
|
322
322
|
animation-fill-mode: both;
|
|
323
|
-
animation-name:
|
|
323
|
+
animation-name: slide-bottom-exit;
|
|
324
324
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
325
325
|
}
|
|
326
326
|
@keyframes popup-slide-left-enter {
|
|
@@ -340,12 +340,12 @@
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
343
|
-
transform:
|
|
343
|
+
transform: translate(0, 0);
|
|
344
344
|
animation-fill-mode: both;
|
|
345
345
|
animation-name: popup-slide-left-enter;
|
|
346
346
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
347
347
|
}
|
|
348
|
-
.nut-popup-slide-left-exit-active {
|
|
348
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
349
349
|
animation-fill-mode: both;
|
|
350
350
|
animation-name: popup-slide-left-exit;
|
|
351
351
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
animation-name: popup-slide-right-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-right-exit
|
|
294
|
+
.nut-popup-slide-right-exit {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-right-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
transform: translate3d(0, 0%, 0);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
@keyframes
|
|
307
|
+
@keyframes slide-bottom-exit {
|
|
308
308
|
from {
|
|
309
309
|
transform: translate3d(0, 0%, 0);
|
|
310
310
|
}
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
316
|
-
transform:
|
|
316
|
+
transform: translate(0, 0);
|
|
317
317
|
animation-fill-mode: both;
|
|
318
318
|
animation-name: popup-slide-bottom-enter;
|
|
319
319
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
320
320
|
}
|
|
321
|
-
.nut-popup-slide-bottom-exit
|
|
321
|
+
.nut-popup-slide-bottom-exit {
|
|
322
322
|
animation-fill-mode: both;
|
|
323
|
-
animation-name:
|
|
323
|
+
animation-name: slide-bottom-exit;
|
|
324
324
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
325
325
|
}
|
|
326
326
|
@keyframes popup-slide-left-enter {
|
|
@@ -340,12 +340,12 @@
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
343
|
-
transform:
|
|
343
|
+
transform: translate(0, 0);
|
|
344
344
|
animation-fill-mode: both;
|
|
345
345
|
animation-name: popup-slide-left-enter;
|
|
346
346
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
347
347
|
}
|
|
348
|
-
.nut-popup-slide-left-exit-active {
|
|
348
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
349
349
|
animation-fill-mode: both;
|
|
350
350
|
animation-name: popup-slide-left-exit;
|
|
351
351
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
animation-name: popup-slide-right-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-right-exit
|
|
294
|
+
.nut-popup-slide-right-exit {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-right-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
transform: translate3d(0, 0%, 0);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
@keyframes
|
|
307
|
+
@keyframes slide-bottom-exit {
|
|
308
308
|
from {
|
|
309
309
|
transform: translate3d(0, 0%, 0);
|
|
310
310
|
}
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
316
|
-
transform:
|
|
316
|
+
transform: translate(0, 0);
|
|
317
317
|
animation-fill-mode: both;
|
|
318
318
|
animation-name: popup-slide-bottom-enter;
|
|
319
319
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
320
320
|
}
|
|
321
|
-
.nut-popup-slide-bottom-exit
|
|
321
|
+
.nut-popup-slide-bottom-exit {
|
|
322
322
|
animation-fill-mode: both;
|
|
323
|
-
animation-name:
|
|
323
|
+
animation-name: slide-bottom-exit;
|
|
324
324
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
325
325
|
}
|
|
326
326
|
@keyframes popup-slide-left-enter {
|
|
@@ -340,12 +340,12 @@
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
343
|
-
transform:
|
|
343
|
+
transform: translate(0, 0);
|
|
344
344
|
animation-fill-mode: both;
|
|
345
345
|
animation-name: popup-slide-left-enter;
|
|
346
346
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
347
347
|
}
|
|
348
|
-
.nut-popup-slide-left-exit-active {
|
|
348
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
349
349
|
animation-fill-mode: both;
|
|
350
350
|
animation-name: popup-slide-left-exit;
|
|
351
351
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -209,8 +209,7 @@ export var Popup = function(props) {
|
|
|
209
209
|
onClick: handleCloseIconClick,
|
|
210
210
|
ariaRole: "button",
|
|
211
211
|
ariaLabel: closeAriaLabel || locale.close
|
|
212
|
-
}, /*#__PURE__*/ React.isValidElement(closeIcon) ? closeIcon :
|
|
213
|
-
/*#__PURE__*/ React.createElement(Close, {
|
|
212
|
+
}, /*#__PURE__*/ React.isValidElement(closeIcon) ? closeIcon : /*#__PURE__*/ React.createElement(Close, {
|
|
214
213
|
ariaHidden: true
|
|
215
214
|
}));
|
|
216
215
|
}, [
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
animation-duration: $popup-animation-duration;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
&-right-exit
|
|
271
|
+
&-right-exit {
|
|
272
272
|
animation-fill-mode: both;
|
|
273
273
|
animation-name: popup-slide-right-exit;
|
|
274
274
|
animation-duration: $popup-animation-duration;
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
@keyframes
|
|
287
|
+
@keyframes slide-bottom-exit {
|
|
288
288
|
from {
|
|
289
289
|
transform: translate3d(0, 0%, 0);
|
|
290
290
|
}
|
|
@@ -295,15 +295,15 @@
|
|
|
295
295
|
|
|
296
296
|
&-bottom-enter-active,
|
|
297
297
|
&-bottom-appear-active {
|
|
298
|
-
transform:
|
|
298
|
+
transform: translate(0, 0);
|
|
299
299
|
animation-fill-mode: both;
|
|
300
300
|
animation-name: popup-slide-bottom-enter;
|
|
301
301
|
animation-duration: $popup-animation-duration;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
&-bottom-exit
|
|
304
|
+
&-bottom-exit {
|
|
305
305
|
animation-fill-mode: both;
|
|
306
|
-
animation-name:
|
|
306
|
+
animation-name: slide-bottom-exit;
|
|
307
307
|
animation-duration: $popup-animation-duration;
|
|
308
308
|
}
|
|
309
309
|
|
|
@@ -328,13 +328,14 @@
|
|
|
328
328
|
|
|
329
329
|
&-left-enter-active,
|
|
330
330
|
&-left-appear-active {
|
|
331
|
-
transform:
|
|
331
|
+
transform: translate(0, 0);
|
|
332
332
|
animation-fill-mode: both;
|
|
333
333
|
animation-name: popup-slide-left-enter;
|
|
334
334
|
animation-duration: $popup-animation-duration;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
&-left-exit-active
|
|
337
|
+
&-left-exit-active,
|
|
338
|
+
&-left-exit-done {
|
|
338
339
|
animation-fill-mode: both;
|
|
339
340
|
animation-name: popup-slide-left-exit;
|
|
340
341
|
animation-duration: $popup-animation-duration;
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
animation-name: popup-slide-right-enter;
|
|
238
238
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
239
239
|
}
|
|
240
|
-
.nut-popup-slide-right-exit
|
|
240
|
+
.nut-popup-slide-right-exit {
|
|
241
241
|
animation-fill-mode: both;
|
|
242
242
|
animation-name: popup-slide-right-exit;
|
|
243
243
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
transform: translate3d(0, 0%, 0);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
@keyframes
|
|
253
|
+
@keyframes slide-bottom-exit {
|
|
254
254
|
from {
|
|
255
255
|
transform: translate3d(0, 0%, 0);
|
|
256
256
|
}
|
|
@@ -259,14 +259,14 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
262
|
-
transform:
|
|
262
|
+
transform: translate(0, 0);
|
|
263
263
|
animation-fill-mode: both;
|
|
264
264
|
animation-name: popup-slide-bottom-enter;
|
|
265
265
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
266
266
|
}
|
|
267
|
-
.nut-popup-slide-bottom-exit
|
|
267
|
+
.nut-popup-slide-bottom-exit {
|
|
268
268
|
animation-fill-mode: both;
|
|
269
|
-
animation-name:
|
|
269
|
+
animation-name: slide-bottom-exit;
|
|
270
270
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
271
271
|
}
|
|
272
272
|
@keyframes popup-slide-left-enter {
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
289
|
-
transform:
|
|
289
|
+
transform: translate(0, 0);
|
|
290
290
|
animation-fill-mode: both;
|
|
291
291
|
animation-name: popup-slide-left-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-left-exit-active {
|
|
294
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-left-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
animation-name: popup-slide-right-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-right-exit
|
|
294
|
+
.nut-popup-slide-right-exit {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-right-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
transform: translate3d(0, 0%, 0);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
@keyframes
|
|
307
|
+
@keyframes slide-bottom-exit {
|
|
308
308
|
from {
|
|
309
309
|
transform: translate3d(0, 0%, 0);
|
|
310
310
|
}
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
316
|
-
transform:
|
|
316
|
+
transform: translate(0, 0);
|
|
317
317
|
animation-fill-mode: both;
|
|
318
318
|
animation-name: popup-slide-bottom-enter;
|
|
319
319
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
320
320
|
}
|
|
321
|
-
.nut-popup-slide-bottom-exit
|
|
321
|
+
.nut-popup-slide-bottom-exit {
|
|
322
322
|
animation-fill-mode: both;
|
|
323
|
-
animation-name:
|
|
323
|
+
animation-name: slide-bottom-exit;
|
|
324
324
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
325
325
|
}
|
|
326
326
|
@keyframes popup-slide-left-enter {
|
|
@@ -340,12 +340,12 @@
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
343
|
-
transform:
|
|
343
|
+
transform: translate(0, 0);
|
|
344
344
|
animation-fill-mode: both;
|
|
345
345
|
animation-name: popup-slide-left-enter;
|
|
346
346
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
347
347
|
}
|
|
348
|
-
.nut-popup-slide-left-exit-active {
|
|
348
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
349
349
|
animation-fill-mode: both;
|
|
350
350
|
animation-name: popup-slide-left-exit;
|
|
351
351
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
animation-duration: $popup-animation-duration;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
&-right-exit
|
|
271
|
+
&-right-exit {
|
|
272
272
|
animation-fill-mode: both;
|
|
273
273
|
animation-name: popup-slide-right-exit;
|
|
274
274
|
animation-duration: $popup-animation-duration;
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
@keyframes
|
|
287
|
+
@keyframes slide-bottom-exit {
|
|
288
288
|
from {
|
|
289
289
|
transform: translate3d(0, 0%, 0);
|
|
290
290
|
}
|
|
@@ -295,15 +295,15 @@
|
|
|
295
295
|
|
|
296
296
|
&-bottom-enter-active,
|
|
297
297
|
&-bottom-appear-active {
|
|
298
|
-
transform:
|
|
298
|
+
transform: translate(0, 0);
|
|
299
299
|
animation-fill-mode: both;
|
|
300
300
|
animation-name: popup-slide-bottom-enter;
|
|
301
301
|
animation-duration: $popup-animation-duration;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
&-bottom-exit
|
|
304
|
+
&-bottom-exit {
|
|
305
305
|
animation-fill-mode: both;
|
|
306
|
-
animation-name:
|
|
306
|
+
animation-name: slide-bottom-exit;
|
|
307
307
|
animation-duration: $popup-animation-duration;
|
|
308
308
|
}
|
|
309
309
|
|
|
@@ -328,13 +328,14 @@
|
|
|
328
328
|
|
|
329
329
|
&-left-enter-active,
|
|
330
330
|
&-left-appear-active {
|
|
331
|
-
transform:
|
|
331
|
+
transform: translate(0, 0);
|
|
332
332
|
animation-fill-mode: both;
|
|
333
333
|
animation-name: popup-slide-left-enter;
|
|
334
334
|
animation-duration: $popup-animation-duration;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
&-left-exit-active
|
|
337
|
+
&-left-exit-active,
|
|
338
|
+
&-left-exit-done {
|
|
338
339
|
animation-fill-mode: both;
|
|
339
340
|
animation-name: popup-slide-left-exit;
|
|
340
341
|
animation-duration: $popup-animation-duration;
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
animation-name: popup-slide-right-enter;
|
|
238
238
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
239
239
|
}
|
|
240
|
-
.nut-popup-slide-right-exit
|
|
240
|
+
.nut-popup-slide-right-exit {
|
|
241
241
|
animation-fill-mode: both;
|
|
242
242
|
animation-name: popup-slide-right-exit;
|
|
243
243
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
transform: translate3d(0, 0%, 0);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
@keyframes
|
|
253
|
+
@keyframes slide-bottom-exit {
|
|
254
254
|
from {
|
|
255
255
|
transform: translate3d(0, 0%, 0);
|
|
256
256
|
}
|
|
@@ -259,14 +259,14 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
262
|
-
transform:
|
|
262
|
+
transform: translate(0, 0);
|
|
263
263
|
animation-fill-mode: both;
|
|
264
264
|
animation-name: popup-slide-bottom-enter;
|
|
265
265
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
266
266
|
}
|
|
267
|
-
.nut-popup-slide-bottom-exit
|
|
267
|
+
.nut-popup-slide-bottom-exit {
|
|
268
268
|
animation-fill-mode: both;
|
|
269
|
-
animation-name:
|
|
269
|
+
animation-name: slide-bottom-exit;
|
|
270
270
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
271
271
|
}
|
|
272
272
|
@keyframes popup-slide-left-enter {
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
289
|
-
transform:
|
|
289
|
+
transform: translate(0, 0);
|
|
290
290
|
animation-fill-mode: both;
|
|
291
291
|
animation-name: popup-slide-left-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-left-exit-active {
|
|
294
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-left-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
animation-duration: $popup-animation-duration;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
&-right-exit
|
|
271
|
+
&-right-exit {
|
|
272
272
|
animation-fill-mode: both;
|
|
273
273
|
animation-name: popup-slide-right-exit;
|
|
274
274
|
animation-duration: $popup-animation-duration;
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
@keyframes
|
|
287
|
+
@keyframes slide-bottom-exit {
|
|
288
288
|
from {
|
|
289
289
|
transform: translate3d(0, 0%, 0);
|
|
290
290
|
}
|
|
@@ -295,15 +295,15 @@
|
|
|
295
295
|
|
|
296
296
|
&-bottom-enter-active,
|
|
297
297
|
&-bottom-appear-active {
|
|
298
|
-
transform:
|
|
298
|
+
transform: translate(0, 0);
|
|
299
299
|
animation-fill-mode: both;
|
|
300
300
|
animation-name: popup-slide-bottom-enter;
|
|
301
301
|
animation-duration: $popup-animation-duration;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
&-bottom-exit
|
|
304
|
+
&-bottom-exit {
|
|
305
305
|
animation-fill-mode: both;
|
|
306
|
-
animation-name:
|
|
306
|
+
animation-name: slide-bottom-exit;
|
|
307
307
|
animation-duration: $popup-animation-duration;
|
|
308
308
|
}
|
|
309
309
|
|
|
@@ -328,13 +328,14 @@
|
|
|
328
328
|
|
|
329
329
|
&-left-enter-active,
|
|
330
330
|
&-left-appear-active {
|
|
331
|
-
transform:
|
|
331
|
+
transform: translate(0, 0);
|
|
332
332
|
animation-fill-mode: both;
|
|
333
333
|
animation-name: popup-slide-left-enter;
|
|
334
334
|
animation-duration: $popup-animation-duration;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
&-left-exit-active
|
|
337
|
+
&-left-exit-active,
|
|
338
|
+
&-left-exit-done {
|
|
338
339
|
animation-fill-mode: both;
|
|
339
340
|
animation-name: popup-slide-left-exit;
|
|
340
341
|
animation-duration: $popup-animation-duration;
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
animation-name: popup-slide-right-enter;
|
|
238
238
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
239
239
|
}
|
|
240
|
-
.nut-popup-slide-right-exit
|
|
240
|
+
.nut-popup-slide-right-exit {
|
|
241
241
|
animation-fill-mode: both;
|
|
242
242
|
animation-name: popup-slide-right-exit;
|
|
243
243
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
transform: translate3d(0, 0%, 0);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
@keyframes
|
|
253
|
+
@keyframes slide-bottom-exit {
|
|
254
254
|
from {
|
|
255
255
|
transform: translate3d(0, 0%, 0);
|
|
256
256
|
}
|
|
@@ -259,14 +259,14 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
.nut-popup-slide-bottom-enter-active, .nut-popup-slide-bottom-appear-active {
|
|
262
|
-
transform:
|
|
262
|
+
transform: translate(0, 0);
|
|
263
263
|
animation-fill-mode: both;
|
|
264
264
|
animation-name: popup-slide-bottom-enter;
|
|
265
265
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
266
266
|
}
|
|
267
|
-
.nut-popup-slide-bottom-exit
|
|
267
|
+
.nut-popup-slide-bottom-exit {
|
|
268
268
|
animation-fill-mode: both;
|
|
269
|
-
animation-name:
|
|
269
|
+
animation-name: slide-bottom-exit;
|
|
270
270
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
271
271
|
}
|
|
272
272
|
@keyframes popup-slide-left-enter {
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
.nut-popup-slide-left-enter-active, .nut-popup-slide-left-appear-active {
|
|
289
|
-
transform:
|
|
289
|
+
transform: translate(0, 0);
|
|
290
290
|
animation-fill-mode: both;
|
|
291
291
|
animation-name: popup-slide-left-enter;
|
|
292
292
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
293
293
|
}
|
|
294
|
-
.nut-popup-slide-left-exit-active {
|
|
294
|
+
.nut-popup-slide-left-exit-active, .nut-popup-slide-left-exit-done {
|
|
295
295
|
animation-fill-mode: both;
|
|
296
296
|
animation-name: popup-slide-left-exit;
|
|
297
297
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|