@nutui/nutui-react 2.3.9 → 2.3.11
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 +22 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +3 -3
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Animate/style/style.css +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/BackTop.js +1 -1
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +18 -3
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- package/dist/esm/Col/style/style.css +1 -1
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/Input.js +4 -1
- package/dist/esm/InputNumber.js +107 -161
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +28 -12
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +2 -4
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Swipe/style/style.css +1 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/formitem2.js +39 -5
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +6 -2
- package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +6 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +15 -17
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +3 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/shortpassword/types.d.ts +4 -0
- 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 +219 -202
- package/dist/nutui.react.umd.js +219 -202
- package/dist/packages/animate/animate.scss +0 -27
- package/dist/packages/audio/audio.scss +0 -5
- package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
- package/dist/packages/badge/badge.scss +7 -0
- package/dist/packages/barrage/barrage.scss +23 -4
- package/dist/packages/button/button.scss +0 -1
- package/dist/packages/calendar/calendar.scss +4 -4
- package/dist/packages/calendarcard/calendarcard.scss +0 -1
- package/dist/packages/cascader/cascader.scss +0 -1
- package/dist/packages/checkbox/checkbox.scss +0 -2
- package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
- package/dist/packages/col/col.scss +2 -2
- package/dist/packages/collapseitem/collapseitem.scss +2 -3
- package/dist/packages/dialog/dialog.scss +4 -0
- package/dist/packages/divider/divider.scss +1 -1
- package/dist/packages/fixednav/fixednav.scss +0 -2
- package/dist/packages/form/form.scss +24 -26
- package/dist/packages/formitem/formitem.scss +0 -1
- package/dist/packages/grid/grid.scss +1 -1
- package/dist/packages/griditem/griditem.scss +28 -26
- package/dist/packages/imagepreview/imagepreview.scss +0 -1
- package/dist/packages/indicator/indicator.scss +2 -3
- package/dist/packages/menu/menu.scss +0 -7
- package/dist/packages/menuitem/menuitem.scss +14 -10
- package/dist/packages/navbar/navbar.scss +3 -5
- package/dist/packages/noticebar/noticebar.scss +20 -0
- package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
- package/dist/packages/pagination/pagination.scss +0 -2
- package/dist/packages/picker/picker.scss +9 -0
- package/dist/packages/popover/popover.scss +0 -4
- package/dist/packages/popup/popup.scss +4 -19
- package/dist/packages/price/price.scss +1 -0
- package/dist/packages/radio/radio.scss +0 -1
- package/dist/packages/radiogroup/radiogroup.scss +10 -1
- package/dist/packages/range/range.scss +127 -127
- package/dist/packages/rate/rate.scss +0 -1
- package/dist/packages/searchbar/searchbar.scss +3 -2
- package/dist/packages/shortpassword/shortpassword.scss +4 -0
- package/dist/packages/skeleton/skeleton.scss +13 -3
- package/dist/packages/space/space.scss +0 -1
- package/dist/packages/step/step.scss +21 -25
- package/dist/packages/swipe/swipe.scss +0 -15
- package/dist/packages/swiper/swiper.scss +0 -1
- package/dist/packages/switch/switch.scss +11 -0
- package/dist/packages/table/table.scss +4 -5
- package/dist/packages/tabs/tabs.scss +16 -18
- package/dist/packages/tag/tag.scss +0 -1
- package/dist/packages/textarea/textarea.scss +1 -6
- package/dist/packages/timeselect/timeselect.scss +1 -6
- package/dist/packages/tour/tour.scss +1 -5
- package/dist/packages/trendarrow/trendarrow.scss +0 -1
- package/dist/packages/uploader/uploader.scss +0 -1
- package/dist/packages/virtuallist/virtuallist.scss +12 -12
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables.scss +11 -7
- package/dist/types/packages/formitem/formitem.d.ts +14 -2
- package/dist/types/packages/formitem/formitem.taro.d.ts +6 -2
- package/dist/types/packages/inputnumber/inputnumber.d.ts +28 -28
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +15 -17
- package/dist/types/packages/shortpassword/shortpassword.d.ts +3 -2
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +3 -2
- package/dist/types/packages/shortpassword/types.d.ts +4 -0
- package/package.json +5 -5
package/dist/style.mjs
CHANGED
|
@@ -1340,13 +1340,14 @@ $radio-button-disabled-active-color: var(
|
|
|
1340
1340
|
--nutui-radio-button-disabled-active-color,
|
|
1341
1341
|
$white
|
|
1342
1342
|
) !default;
|
|
1343
|
-
$radiogroup-radio-margin: var(
|
|
1343
|
+
$radiogroup-radio-margin: var(--nutui-radiogroup-radio-margin, 20px) !default;
|
|
1344
|
+
$radiogroup-radio-margin-bottom: var(
|
|
1344
1345
|
--nutui-radiogroup-radio-margin,
|
|
1345
|
-
|
|
1346
|
+
5px
|
|
1346
1347
|
) !default;
|
|
1347
1348
|
$radiogroup-radio-label-margin: var(
|
|
1348
1349
|
--nutui-radiogroup-radio-label-margin,
|
|
1349
|
-
0 5px
|
|
1350
|
+
0 5px
|
|
1350
1351
|
) !default;
|
|
1351
1352
|
|
|
1352
1353
|
// signature(✅)
|
|
@@ -1912,7 +1913,7 @@ $form-item-label-margin-right: var(
|
|
|
1912
1913
|
) !default;
|
|
1913
1914
|
$form-item-label-text-align: var(
|
|
1914
1915
|
--nutui-form-item-label-text-align,
|
|
1915
|
-
|
|
1916
|
+
start
|
|
1916
1917
|
) !default;
|
|
1917
1918
|
$form-item-required-margin-right: var(
|
|
1918
1919
|
--nutui-form-item-required-margin-right,
|
|
@@ -1924,17 +1925,20 @@ $form-item-body-font-size: var(
|
|
|
1924
1925
|
) !default;
|
|
1925
1926
|
$form-item-body-slots-text-align: var(
|
|
1926
1927
|
--nutui-form-item-body-slots-text-align,
|
|
1927
|
-
|
|
1928
|
+
start
|
|
1928
1929
|
) !default;
|
|
1929
1930
|
$form-item-body-input-text-align: var(
|
|
1930
1931
|
--nutui-form-item-body-input-text-align,
|
|
1931
|
-
|
|
1932
|
+
start
|
|
1932
1933
|
) !default;
|
|
1933
1934
|
$form-item-tip-font-size: var(
|
|
1934
1935
|
--nutui-form-item-tip-font-size,
|
|
1935
1936
|
$font-size-xs
|
|
1936
1937
|
) !default;
|
|
1937
|
-
$form-item-tip-text-align: var(
|
|
1938
|
+
$form-item-tip-text-align: var(
|
|
1939
|
+
--nutui-form-item-tip-text-align,
|
|
1940
|
+
start
|
|
1941
|
+
) !default;
|
|
1938
1942
|
|
|
1939
1943
|
// skeleton(✅)
|
|
1940
1944
|
$skeleton-background: var(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { Context } from '../form/context';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
|
-
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
6
|
+
export interface FormItemProps extends Omit<BasicComponent, 'children'>, BaseFormField {
|
|
7
7
|
/**
|
|
8
8
|
* 必填表单项 label 的红色星标,仅用于控制样式
|
|
9
9
|
* @default false
|
|
@@ -44,6 +44,17 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
44
44
|
* @default onChange
|
|
45
45
|
*/
|
|
46
46
|
validateTrigger: string | string[]
|
|
47
|
+
/**
|
|
48
|
+
* 更新逻辑
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
shouldUpdate: boolean
|
|
52
|
+
/**
|
|
53
|
+
* 不使用样式,只使用字段管理
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
noStyle: boolean
|
|
57
|
+
children: ReactNode | ((obj: any) => React.ReactNode);
|
|
47
58
|
}
|
|
48
59
|
export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
49
60
|
resetCount: number;
|
|
@@ -53,6 +64,7 @@ export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
|
53
64
|
context: React.ContextType<typeof Context>;
|
|
54
65
|
private cancelRegister;
|
|
55
66
|
private componentRef;
|
|
67
|
+
private eventOff;
|
|
56
68
|
constructor(props: FormItemProps);
|
|
57
69
|
componentDidMount(): void;
|
|
58
70
|
componentWillUnmount(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { Context } from '../form/context';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
|
-
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
6
|
+
export interface FormItemProps extends Omit<BasicComponent, 'children'>, BaseFormField {
|
|
7
7
|
required: boolean;
|
|
8
8
|
initialValue: any;
|
|
9
9
|
trigger: string;
|
|
@@ -12,6 +12,9 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
12
12
|
onClick: (event: React.MouseEvent, componentRef: React.MutableRefObject<any>) => void;
|
|
13
13
|
errorMessageAlign: TextAlign;
|
|
14
14
|
validateTrigger: string | string[];
|
|
15
|
+
shouldUpdate: boolean;
|
|
16
|
+
noStyle: boolean;
|
|
17
|
+
children: ReactNode | ((obj: any) => React.ReactNode);
|
|
15
18
|
}
|
|
16
19
|
export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
17
20
|
resetCount: number;
|
|
@@ -21,6 +24,7 @@ export declare class FormItem extends React.Component<Partial<FormItemProps>, {
|
|
|
21
24
|
context: React.ContextType<typeof Context>;
|
|
22
25
|
private cancelRegister;
|
|
23
26
|
private componentRef;
|
|
27
|
+
private eventOff;
|
|
24
28
|
constructor(props: FormItemProps);
|
|
25
29
|
componentDidMount(): void;
|
|
26
30
|
componentWillUnmount(): void;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import React, { FunctionComponent, ChangeEvent
|
|
1
|
+
import React, { FunctionComponent, ChangeEvent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export interface InputNumberProps extends BasicComponent {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 当前值,受控值
|
|
6
|
+
* @default -
|
|
7
|
+
*/
|
|
8
|
+
value: number | string
|
|
9
|
+
/**
|
|
10
|
+
* 默认值
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
defaultValue: number | string
|
|
14
|
+
/**
|
|
15
|
+
* 是否允许内容为空
|
|
6
16
|
* @default false
|
|
7
17
|
*/
|
|
8
|
-
|
|
18
|
+
allowEmpty: boolean
|
|
9
19
|
/**
|
|
10
20
|
* 最小值限制
|
|
11
21
|
* @default 1
|
|
12
22
|
*/
|
|
13
|
-
min:
|
|
23
|
+
min: number | string
|
|
14
24
|
/**
|
|
15
25
|
* 最大值限制
|
|
16
26
|
* @default 9999
|
|
17
27
|
*/
|
|
18
|
-
max:
|
|
28
|
+
max: number | string
|
|
19
29
|
/**
|
|
20
|
-
*
|
|
30
|
+
* 禁用所有功能
|
|
21
31
|
* @default false
|
|
22
32
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 当前值,受控值
|
|
26
|
-
* @default -
|
|
27
|
-
*/
|
|
28
|
-
value: string | number
|
|
29
|
-
/**
|
|
30
|
-
* 默认值
|
|
31
|
-
* @default 0
|
|
32
|
-
*/
|
|
33
|
-
defaultValue: string | number
|
|
33
|
+
disabled: boolean
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* 只读状态禁用输入框操作行为
|
|
36
36
|
* @default false
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
readOnly: boolean
|
|
39
39
|
/**
|
|
40
40
|
* 步长
|
|
41
41
|
* @default 1
|
|
42
42
|
*/
|
|
43
|
-
step:
|
|
43
|
+
step: number
|
|
44
44
|
/**
|
|
45
45
|
* 设置保留的小数位
|
|
46
46
|
* @default 0
|
|
47
47
|
*/
|
|
48
|
-
digits:
|
|
48
|
+
digits: number
|
|
49
49
|
/**
|
|
50
50
|
* 支持异步修改
|
|
51
51
|
* @default false
|
|
@@ -55,36 +55,36 @@ export interface InputNumberProps extends BasicComponent {
|
|
|
55
55
|
* 指定输入框展示值的格式
|
|
56
56
|
* @default -
|
|
57
57
|
*/
|
|
58
|
-
formatter?: (
|
|
58
|
+
formatter?: (value?: string | number) => string
|
|
59
59
|
/**
|
|
60
60
|
* 点击增加按钮时触发
|
|
61
61
|
* @default -
|
|
62
62
|
*/
|
|
63
|
-
onPlus: (e: MouseEvent) => void
|
|
63
|
+
onPlus: (e: React.MouseEvent) => void
|
|
64
64
|
/**
|
|
65
65
|
* 点击减少按钮时触发
|
|
66
66
|
* @default -
|
|
67
67
|
*/
|
|
68
|
-
onMinus: (e: MouseEvent) => void
|
|
68
|
+
onMinus: (e: React.MouseEvent) => void
|
|
69
69
|
/**
|
|
70
70
|
* 点击不可用的按钮时触发
|
|
71
71
|
* @default -
|
|
72
72
|
*/
|
|
73
|
-
onOverlimit: (e: MouseEvent) => void
|
|
73
|
+
onOverlimit: (e: React.MouseEvent) => void
|
|
74
74
|
/**
|
|
75
75
|
* 输入框失去焦点时触发
|
|
76
76
|
* @default -
|
|
77
77
|
*/
|
|
78
|
-
onBlur: (e:
|
|
78
|
+
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void
|
|
79
79
|
/**
|
|
80
80
|
* 输入框获得焦点时触发
|
|
81
81
|
* @default -
|
|
82
82
|
*/
|
|
83
|
-
onFocus: (e: FocusEvent<HTMLInputElement>) => void
|
|
83
|
+
onFocus: (e: React.FocusEvent<HTMLInputElement>) => void
|
|
84
84
|
/**
|
|
85
85
|
* 值改变时触发
|
|
86
86
|
* @default -
|
|
87
87
|
*/
|
|
88
|
-
onChange: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void
|
|
88
|
+
onChange: (param: string | number, e: React.MouseEvent | ChangeEvent<HTMLInputElement>) => void
|
|
89
89
|
}
|
|
90
90
|
export declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import React, { FunctionComponent, ChangeEvent
|
|
1
|
+
import React, { FunctionComponent, ChangeEvent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export interface InputNumberProps extends BasicComponent {
|
|
4
|
+
value: number | string;
|
|
5
|
+
defaultValue: number | string;
|
|
6
|
+
allowEmpty: boolean;
|
|
7
|
+
min: number | string;
|
|
8
|
+
max: number | string;
|
|
4
9
|
disabled: boolean;
|
|
5
|
-
min: string | number;
|
|
6
|
-
max: string | number;
|
|
7
10
|
readOnly: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
allowEmpty: boolean;
|
|
11
|
-
step: string | number;
|
|
12
|
-
digits: string | number;
|
|
11
|
+
step: number;
|
|
12
|
+
digits: number;
|
|
13
13
|
async: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onFocus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
22
|
-
onChange: (param: string | number, e: MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
formatter?: (value?: string | number) => string;
|
|
15
|
+
onPlus: (e: React.MouseEvent) => void;
|
|
16
|
+
onMinus: (e: React.MouseEvent) => void;
|
|
17
|
+
onOverlimit: (e: React.MouseEvent) => void;
|
|
18
|
+
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
+
onFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
+
onChange: (param: string | number, e: React.MouseEvent | ChangeEvent<HTMLInputElement>) => void;
|
|
23
21
|
}
|
|
24
22
|
export declare const InputNumber: FunctionComponent<Partial<InputNumberProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
2
|
import { PopupProps } from '../../packages/popup/index';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
/**
|
|
@@ -87,4 +87,5 @@ export interface ShortPasswordProps extends PopupProps {
|
|
|
87
87
|
*/
|
|
88
88
|
onComplete: (value: string) => void
|
|
89
89
|
}
|
|
90
|
-
export declare const
|
|
90
|
+
export declare const InternalShortPassword: ForwardRefRenderFunction<unknown, Partial<ShortPasswordProps>>;
|
|
91
|
+
export declare const ShortPassword: React.ForwardRefExoticComponent<Partial<ShortPasswordProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
2
|
import { PopupProps } from '../../packages/popup/popup.taro';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
value: string;
|
|
@@ -19,4 +19,5 @@ export interface ShortPasswordProps extends PopupProps {
|
|
|
19
19
|
onTips: () => void;
|
|
20
20
|
onComplete: (value: string) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const InternalShortPassword: ForwardRefRenderFunction<unknown, Partial<ShortPasswordProps>>;
|
|
23
|
+
export declare const ShortPassword: React.ForwardRefExoticComponent<Partial<ShortPasswordProps> & React.RefAttributes<unknown>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"*.{ts,tsx,js,md}": "eslint"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@babel/runtime": "^7.
|
|
54
|
+
"@babel/runtime": "^7.23.9",
|
|
55
55
|
"@nutui/icons-react": "^1.0.2",
|
|
56
56
|
"@nutui/touch-emulator": "^1.0.0",
|
|
57
57
|
"@react-spring/web": "~9.6.1",
|
|
58
58
|
"@use-gesture/react": "10.2.20",
|
|
59
59
|
"async-validator": "^4.2.5",
|
|
60
|
-
"classnames": "^2.
|
|
60
|
+
"classnames": "^2.5.1",
|
|
61
61
|
"lodash.isequal": "^4.5.0",
|
|
62
62
|
"lodash.kebabcase": "^4.1.1",
|
|
63
63
|
"react-transition-group": "^4.4.5"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
67
67
|
},
|
|
68
68
|
"resolutions": {
|
|
69
|
-
"@types/react": "18",
|
|
70
|
-
"@types/react-dom": "18"
|
|
69
|
+
"@types/react": "^18.2.57",
|
|
70
|
+
"@types/react-dom": "^18.2.19"
|
|
71
71
|
}
|
|
72
72
|
}
|