@nutui/nutui-react 2.0.5 → 2.0.7
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 +16 -0
- package/dist/esm/Address.js +30 -17
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Button.js +15 -18
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Range.js +5 -13
- package/dist/esm/Uploader.js +3 -0
- package/dist/esm/types/src/packages/address/address.d.ts +9 -2
- package/dist/esm/types/src/packages/address/address.taro.d.ts +8 -2
- package/dist/esm/types/src/packages/audio/audio.d.ts +5 -4
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +2 -1
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/backtop/backtop.d.ts +2 -1
- package/dist/esm/types/src/packages/backtop/backtop.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/button/button.d.ts +2 -1
- package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/col/col.d.ts +2 -1
- package/dist/esm/types/src/packages/col/col.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +2 -1
- package/dist/esm/types/src/packages/formitem/types.d.ts +2 -1
- package/dist/esm/types/src/packages/row/row.d.ts +2 -1
- package/dist/esm/types/src/packages/row/row.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +6 -5
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +6 -5
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +5 -4
- package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/tag/tag.d.ts +2 -1
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/textarea/textarea.d.ts +3 -2
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -0
- package/dist/esm/types/src/utils/use-touch.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +60 -46
- package/dist/nutui.react.umd.js +60 -46
- package/dist/packages/button/button.scss +6 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/address/address.d.ts +13 -2
- package/dist/types/packages/audio/audio.d.ts +5 -4
- package/dist/types/packages/avatar/avatar.d.ts +2 -1
- package/dist/types/packages/backtop/backtop.d.ts +2 -1
- package/dist/types/packages/button/button.d.ts +3 -2
- package/dist/types/packages/col/col.d.ts +2 -1
- package/dist/types/packages/dialog/config.d.ts +2 -1
- package/dist/types/packages/formitem/types.d.ts +2 -1
- package/dist/types/packages/row/row.d.ts +2 -1
- package/dist/types/packages/searchbar/searchbar.d.ts +6 -5
- package/dist/types/packages/swipe/swipe.d.ts +5 -4
- package/dist/types/packages/tag/tag.d.ts +2 -1
- package/dist/types/packages/textarea/textarea.d.ts +3 -2
- package/dist/types/packages/uploader/uploader.d.ts +1 -0
- package/dist/types/utils/use-touch.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export type RowEventType = 'row' | 'col';
|
|
4
5
|
export interface RowProps extends BasicComponent {
|
|
@@ -7,6 +8,6 @@ export interface RowProps extends BasicComponent {
|
|
|
7
8
|
align: string;
|
|
8
9
|
wrap: string;
|
|
9
10
|
gutter: string | number;
|
|
10
|
-
onClick: (e:
|
|
11
|
+
onClick: (e: MouseEvent<HTMLDivElement>, type: RowEventType) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const Row: FunctionComponent<Partial<RowProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export interface SearchBarProps extends BasicComponent {
|
|
4
5
|
/** 文本值 */
|
|
@@ -24,14 +25,14 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
24
25
|
/** 确定搜索时触发 */
|
|
25
26
|
onSearch?: (val: string) => void;
|
|
26
27
|
/** 输入框内容变化时触发 */
|
|
27
|
-
onChange?: (value: string, event:
|
|
28
|
+
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
|
28
29
|
/** 输入框获得焦点时触发 */
|
|
29
|
-
onFocus?: (value: string, event:
|
|
30
|
+
onFocus?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
|
|
30
31
|
/** 输入框失去焦点时触发 */
|
|
31
|
-
onBlur?: (value: string, event:
|
|
32
|
+
onBlur?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
|
|
32
33
|
/** 点击清除按钮后触发 */
|
|
33
|
-
onClear?: (event:
|
|
34
|
+
onClear?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
34
35
|
/** 点击输入区域时触发 */
|
|
35
|
-
onInputClick?: (event:
|
|
36
|
+
onInputClick?: (event: MouseEvent<HTMLInputElement>) => void;
|
|
36
37
|
}
|
|
37
38
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export interface SearchBarProps extends BasicComponent {
|
|
4
5
|
/** 文本值 */
|
|
@@ -24,14 +25,14 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
24
25
|
/** 确定搜索时触发 */
|
|
25
26
|
onSearch?: (val: string) => void;
|
|
26
27
|
/** 输入框内容变化时触发 */
|
|
27
|
-
onChange?: (value: string, event:
|
|
28
|
+
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
|
28
29
|
/** 输入框获得焦点时触发 */
|
|
29
|
-
onFocus?: (value: string, event:
|
|
30
|
+
onFocus?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
|
|
30
31
|
/** 输入框失去焦点时触发 */
|
|
31
|
-
onBlur?: (value: string, event:
|
|
32
|
+
onBlur?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
|
|
32
33
|
/** 点击清除按钮后触发 */
|
|
33
|
-
onClear?: (event:
|
|
34
|
+
onClear?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
34
35
|
/** 点击输入区域时触发 */
|
|
35
|
-
onInputClick?: (event:
|
|
36
|
+
onInputClick?: (event: MouseEvent<HTMLInputElement>) => void;
|
|
36
37
|
}
|
|
37
38
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { TouchEvent, MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export type SwipeSide = 'left' | 'right';
|
|
4
5
|
export interface SwipeInstance {
|
|
@@ -27,9 +28,9 @@ export interface SwipeProps extends BasicComponent {
|
|
|
27
28
|
position: SwipeSide;
|
|
28
29
|
}) => void;
|
|
29
30
|
/** 点击时触发 */
|
|
30
|
-
onActionClick?: (event:
|
|
31
|
-
onTouchStart?: (event:
|
|
32
|
-
onTouchEnd?: (event:
|
|
33
|
-
onTouchMove?: (event:
|
|
31
|
+
onActionClick?: (event: MouseEvent<HTMLDivElement>, position: SwipeSide) => void;
|
|
32
|
+
onTouchStart?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
33
|
+
onTouchEnd?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
34
|
+
onTouchMove?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
34
35
|
}
|
|
35
36
|
export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React.RefAttributes<SwipeInstance>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { TouchEvent, MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export type SwipeSide = 'left' | 'right';
|
|
4
5
|
export interface SwipeInstance {
|
|
@@ -27,9 +28,9 @@ export interface SwipeProps extends BasicComponent {
|
|
|
27
28
|
position: SwipeSide;
|
|
28
29
|
}) => void;
|
|
29
30
|
/** 点击时触发 */
|
|
30
|
-
onActionClick?: (event:
|
|
31
|
-
onTouchStart?: (event:
|
|
32
|
-
onTouchEnd?: (event:
|
|
33
|
-
onTouchMove?: (event:
|
|
31
|
+
onActionClick?: (event: MouseEvent<HTMLDivElement>, position: SwipeSide) => void;
|
|
32
|
+
onTouchStart?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
33
|
+
onTouchEnd?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
34
|
+
onTouchMove?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
34
35
|
}
|
|
35
36
|
export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onTouchEnd" | "onTouchMove" | "onTouchStart"> & React.RefAttributes<SwipeInstance>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export type TagType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
4
5
|
export interface TagProps extends BasicComponent {
|
|
@@ -10,7 +11,7 @@ export interface TagProps extends BasicComponent {
|
|
|
10
11
|
mark: boolean;
|
|
11
12
|
closeable: boolean;
|
|
12
13
|
closeIcon: ReactNode;
|
|
13
|
-
onClick: (e: MouseEvent) => void;
|
|
14
|
+
onClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
14
15
|
onClose: (e?: any) => void;
|
|
15
16
|
}
|
|
16
17
|
export declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export type TagType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
4
5
|
export interface TagProps extends BasicComponent {
|
|
@@ -10,7 +11,7 @@ export interface TagProps extends BasicComponent {
|
|
|
10
11
|
mark: boolean;
|
|
11
12
|
closeable: boolean;
|
|
12
13
|
closeIcon: ReactNode;
|
|
13
|
-
onClick: (e: MouseEvent) => void;
|
|
14
|
+
onClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
14
15
|
onClose: (e?: any) => void;
|
|
15
16
|
}
|
|
16
17
|
export declare const Tag: FunctionComponent<Partial<TagProps>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { FocusEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export interface TextAreaProps extends BasicComponent {
|
|
4
5
|
value: string;
|
|
@@ -11,7 +12,7 @@ export interface TextAreaProps extends BasicComponent {
|
|
|
11
12
|
disabled: boolean;
|
|
12
13
|
autoSize: boolean;
|
|
13
14
|
onChange: (value: string) => void;
|
|
14
|
-
onBlur: (event:
|
|
15
|
-
onFocus: (event:
|
|
15
|
+
onBlur: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
16
|
+
onFocus: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const TextArea: FunctionComponent<Partial<TextAreaProps> & Omit<React.HTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onBlur' | 'onFocus'>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type Direction = '' | 'vertical' | 'horizontal';
|
|
2
2
|
export declare function useTouch(): {
|
|
3
|
-
move:
|
|
4
|
-
start:
|
|
3
|
+
move: (event: React.TouchEvent<HTMLElement>) => void;
|
|
4
|
+
start: (event: React.TouchEvent<HTMLElement>) => void;
|
|
5
5
|
reset: () => void;
|
|
6
6
|
startX: number;
|
|
7
7
|
startY: number;
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
/*!
|
|
9
|
-
* @nutui/nutui-react v2.0.
|
|
9
|
+
* @nutui/nutui-react v2.0.7 Wed Jul 26 2023 13:54:35 GMT+0800 (China Standard Time)
|
|
10
10
|
* (c) 2023 @jdf2e.
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
@@ -2449,32 +2449,29 @@ const Button = React__default.forwardRef(
|
|
|
2449
2449
|
onClick(e);
|
|
2450
2450
|
}
|
|
2451
2451
|
};
|
|
2452
|
-
return (
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
className
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
{
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
},
|
|
2476
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "nut-button__warp" }, loading ? /* @__PURE__ */ React__default.createElement(k$3, { className: "nut-icon-loading" }) : null, !loading && icon ? icon : null, children && /* @__PURE__ */ React__default.createElement("div", { className: icon || loading ? "nut-button-text" : "" }, children))
|
|
2477
|
-
)
|
|
2452
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2453
|
+
"button",
|
|
2454
|
+
{
|
|
2455
|
+
...rest,
|
|
2456
|
+
ref,
|
|
2457
|
+
type: nativeType,
|
|
2458
|
+
className: classNames(
|
|
2459
|
+
prefixCls,
|
|
2460
|
+
className,
|
|
2461
|
+
props.type ? `${prefixCls}--${type4}` : null,
|
|
2462
|
+
props.fill ? `${prefixCls}--${fill}` : null,
|
|
2463
|
+
{
|
|
2464
|
+
[`${prefixCls}--${size}`]: size,
|
|
2465
|
+
[`${prefixCls}--${shape}`]: shape,
|
|
2466
|
+
[`${prefixCls}--block`]: block,
|
|
2467
|
+
[`${prefixCls}--disabled`]: disabled,
|
|
2468
|
+
[`${prefixCls}--loading`]: loading
|
|
2469
|
+
}
|
|
2470
|
+
),
|
|
2471
|
+
style: { ...getStyle(), ...style },
|
|
2472
|
+
onClick: (e) => handleClick2(e)
|
|
2473
|
+
},
|
|
2474
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "nut-button__warp" }, loading ? /* @__PURE__ */ React__default.createElement(k$3, { className: "nut-icon-loading" }) : null, !loading && icon ? icon : null, children && /* @__PURE__ */ React__default.createElement("div", { className: icon || loading ? "nut-button-text" : "" }, children))
|
|
2478
2475
|
);
|
|
2479
2476
|
}
|
|
2480
2477
|
);
|
|
@@ -13050,7 +13047,6 @@ const ExistRender = (props) => {
|
|
|
13050
13047
|
};
|
|
13051
13048
|
const defaultProps$$ = {
|
|
13052
13049
|
...ComponentDefaults,
|
|
13053
|
-
visible: false,
|
|
13054
13050
|
defaultValue: [],
|
|
13055
13051
|
type: "custom",
|
|
13056
13052
|
options: [],
|
|
@@ -13064,10 +13060,11 @@ const defaultProps$$ = {
|
|
|
13064
13060
|
closeIcon: null,
|
|
13065
13061
|
backIcon: null
|
|
13066
13062
|
};
|
|
13067
|
-
const
|
|
13063
|
+
const InternalAddress = (props, ref) => {
|
|
13068
13064
|
const { locale } = useConfig();
|
|
13069
13065
|
const {
|
|
13070
13066
|
visible,
|
|
13067
|
+
defaultVisible,
|
|
13071
13068
|
defaultValue,
|
|
13072
13069
|
children,
|
|
13073
13070
|
type: type4,
|
|
@@ -13095,19 +13092,31 @@ const Address = (props) => {
|
|
|
13095
13092
|
};
|
|
13096
13093
|
const classPrefix2 = "nut-address";
|
|
13097
13094
|
const [currentType, setCurrentType] = useState(type4);
|
|
13098
|
-
const [
|
|
13099
|
-
|
|
13100
|
-
|
|
13095
|
+
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
13096
|
+
value: visible,
|
|
13097
|
+
defaultValue: defaultVisible,
|
|
13098
|
+
finalValue: defaultVisible
|
|
13099
|
+
});
|
|
13100
|
+
useImperativeHandle(ref, () => {
|
|
13101
|
+
return {
|
|
13102
|
+
open() {
|
|
13103
|
+
setInnerVisible(true);
|
|
13104
|
+
},
|
|
13105
|
+
close() {
|
|
13106
|
+
setInnerVisible(false);
|
|
13107
|
+
}
|
|
13108
|
+
};
|
|
13109
|
+
});
|
|
13110
|
+
const handleClose = () => {
|
|
13111
|
+
setInnerVisible(false);
|
|
13112
|
+
onClose && onClose();
|
|
13101
13113
|
};
|
|
13102
|
-
useEffect(() => {
|
|
13103
|
-
setShowPopup(visible);
|
|
13104
|
-
}, [visible]);
|
|
13105
13114
|
const renderLeftOnCustomSwitch = () => {
|
|
13106
13115
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, custom && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React__default.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React__default.createElement(y$6, { color: "#cccccc" })));
|
|
13107
13116
|
};
|
|
13108
13117
|
const selectedExistItem = (data) => {
|
|
13109
13118
|
onExistSelect && onExistSelect(data);
|
|
13110
|
-
|
|
13119
|
+
handleClose();
|
|
13111
13120
|
};
|
|
13112
13121
|
const onSwitchModule = () => {
|
|
13113
13122
|
if (currentType === "exist") {
|
|
@@ -13120,7 +13129,7 @@ const Address = (props) => {
|
|
|
13120
13129
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, currentType === "custom" || currentType === "custom2" ? /* @__PURE__ */ React__default.createElement(
|
|
13121
13130
|
CustomRender,
|
|
13122
13131
|
{
|
|
13123
|
-
visible:
|
|
13132
|
+
visible: innerVisible,
|
|
13124
13133
|
closeable: true,
|
|
13125
13134
|
title: title || locale.address.selectRegion,
|
|
13126
13135
|
left: renderLeftOnCustomSwitch(),
|
|
@@ -13130,7 +13139,7 @@ const Address = (props) => {
|
|
|
13130
13139
|
optionKey,
|
|
13131
13140
|
type: currentType,
|
|
13132
13141
|
height,
|
|
13133
|
-
onClose:
|
|
13142
|
+
onClose: handleClose,
|
|
13134
13143
|
onChange: (val, params) => {
|
|
13135
13144
|
onChange == null ? void 0 : onChange(val, params);
|
|
13136
13145
|
}
|
|
@@ -13138,12 +13147,13 @@ const Address = (props) => {
|
|
|
13138
13147
|
) : /* @__PURE__ */ React__default.createElement(
|
|
13139
13148
|
Popup,
|
|
13140
13149
|
{
|
|
13141
|
-
visible:
|
|
13150
|
+
visible: innerVisible,
|
|
13142
13151
|
position: "bottom",
|
|
13143
13152
|
round: true,
|
|
13144
13153
|
closeable: true,
|
|
13145
13154
|
closeIcon,
|
|
13146
|
-
title: title || locale.address.selectRegion
|
|
13155
|
+
title: title || locale.address.selectRegion,
|
|
13156
|
+
onClose: handleClose
|
|
13147
13157
|
},
|
|
13148
13158
|
/* @__PURE__ */ React__default.createElement(
|
|
13149
13159
|
"div",
|
|
@@ -13167,6 +13177,7 @@ const Address = (props) => {
|
|
|
13167
13177
|
)
|
|
13168
13178
|
));
|
|
13169
13179
|
};
|
|
13180
|
+
const Address = forwardRef(InternalAddress);
|
|
13170
13181
|
Address.defaultProps = defaultProps$$;
|
|
13171
13182
|
Address.displayName = "NutAddress";
|
|
13172
13183
|
const Utils = {
|
|
@@ -18021,7 +18032,7 @@ const Range = (props) => {
|
|
|
18021
18032
|
setEaxctValue(newValue);
|
|
18022
18033
|
updateValue(newValue);
|
|
18023
18034
|
};
|
|
18024
|
-
const onTouchEnd = (
|
|
18035
|
+
const onTouchEnd = () => {
|
|
18025
18036
|
if (disabled) {
|
|
18026
18037
|
return;
|
|
18027
18038
|
}
|
|
@@ -18070,8 +18081,8 @@ const Range = (props) => {
|
|
|
18070
18081
|
onTouchStart(e);
|
|
18071
18082
|
},
|
|
18072
18083
|
onTouchMove: (e) => onTouchMove(e),
|
|
18073
|
-
onTouchEnd
|
|
18074
|
-
onTouchCancel:
|
|
18084
|
+
onTouchEnd,
|
|
18085
|
+
onTouchCancel: onTouchEnd,
|
|
18075
18086
|
onClick: (e) => e.stopPropagation()
|
|
18076
18087
|
},
|
|
18077
18088
|
renderButton(index)
|
|
@@ -18082,8 +18093,8 @@ const Range = (props) => {
|
|
|
18082
18093
|
className: "nut-range-button-wrapper",
|
|
18083
18094
|
onTouchStart: (e) => onTouchStart(e),
|
|
18084
18095
|
onTouchMove: (e) => onTouchMove(e),
|
|
18085
|
-
onTouchEnd
|
|
18086
|
-
onTouchCancel:
|
|
18096
|
+
onTouchEnd,
|
|
18097
|
+
onTouchCancel: onTouchEnd,
|
|
18087
18098
|
onClick: (e) => e.stopPropagation()
|
|
18088
18099
|
},
|
|
18089
18100
|
renderButton()
|
|
@@ -18976,6 +18987,7 @@ class FileItem {
|
|
|
18976
18987
|
__publicField(this, "path");
|
|
18977
18988
|
__publicField(this, "percentage", 0);
|
|
18978
18989
|
__publicField(this, "formData", new FormData());
|
|
18990
|
+
__publicField(this, "responseText");
|
|
18979
18991
|
}
|
|
18980
18992
|
}
|
|
18981
18993
|
const InternalUploader = (props, ref) => {
|
|
@@ -19106,6 +19118,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19106
19118
|
if (item.uid === fileItem.uid) {
|
|
19107
19119
|
item.status = "success";
|
|
19108
19120
|
item.message = locale.uploader.success;
|
|
19121
|
+
item.responseText = responseText;
|
|
19109
19122
|
}
|
|
19110
19123
|
return item;
|
|
19111
19124
|
});
|
|
@@ -19123,6 +19136,7 @@ const InternalUploader = (props, ref) => {
|
|
|
19123
19136
|
if (item.uid === fileItem.uid) {
|
|
19124
19137
|
item.status = "error";
|
|
19125
19138
|
item.message = locale.uploader.error;
|
|
19139
|
+
item.responseText = responseText;
|
|
19126
19140
|
}
|
|
19127
19141
|
return item;
|
|
19128
19142
|
});
|
|
@@ -21991,7 +22005,7 @@ const Audio = (props) => {
|
|
|
21991
22005
|
}
|
|
21992
22006
|
};
|
|
21993
22007
|
const onTimeupdate = (e) => {
|
|
21994
|
-
const time = parseInt(e.target.currentTime);
|
|
22008
|
+
const time = parseInt(String(e.target.currentTime));
|
|
21995
22009
|
const formated = formatSeconds(`${time}`);
|
|
21996
22010
|
statusRef.current.currentDuration = formated;
|
|
21997
22011
|
setPercent(time / statusRef.current.second * 100);
|