@nutui/nutui-react-taro 2.0.0-alpha.0 → 2.0.0-alpha.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 +24 -630
- package/dist/esm/ActionSheet.js +3 -3
- package/dist/esm/Address.js +3 -3
- package/dist/esm/Calendar.js +5 -5
- package/dist/esm/Cascader.js +4 -4
- package/dist/esm/Col.js +2 -1
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/ImagePreview.js +5 -5
- package/dist/esm/NumberKeyboard.js +3 -3
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/Popup.js +2 -4
- package/dist/esm/Row.js +2 -1
- package/dist/esm/ShortPassword.js +3 -3
- package/dist/esm/SideNavBar.js +3 -8
- package/dist/esm/TimeSelect.js +4 -4
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/{actionsheet.taro-b76a342e.js → actionsheet.taro-10cc53ee.js} +1 -1
- package/dist/esm/{address.taro-1812caeb.js → address.taro-632ca799.js} +1 -1
- package/dist/esm/{calendar.taro-b6b147ca.js → calendar.taro-099cb4a2.js} +1 -1
- package/dist/esm/{cascader.taro-9c0a1a38.js → cascader.taro-62e764a7.js} +2 -2
- package/dist/esm/{col.taro-53eed3cc.js → col.taro-a99a9171.js} +3 -1
- package/dist/esm/{datepicker.taro-439e2080.js → datepicker.taro-0f2bcf42.js} +1 -1
- package/dist/esm/{imagepreview.taro-867ee24a.js → imagepreview.taro-b88fcf41.js} +2 -2
- package/dist/esm/{numberkeyboard.taro-81b36e5e.js → numberkeyboard.taro-ed9b2149.js} +2 -2
- package/dist/esm/nutui-react.es.js +17 -17
- package/dist/esm/{picker.taro-5c9030a7.js → picker.taro-5028afcb.js} +1 -1
- package/dist/esm/{popup.taro-124b9bab.js → popup.taro-020bf791.js} +27 -30
- package/dist/esm/{row.taro-f64d4a13.js → row.taro-75039d53.js} +5 -3
- package/dist/esm/{shortpassword.taro-9a2c98ad.js → shortpassword.taro-681a33a1.js} +1 -1
- package/dist/esm/{sidenavbar.taro-0265812f.js → sidenavbar.taro-d5c5b331.js} +1 -3
- package/dist/esm/{timeselect.taro-5b047850.js → timeselect.taro-a4b86771.js} +1 -1
- package/dist/esm/{uploader.taro-0cca7e97.js → uploader.taro-2151eec6.js} +34 -36
- 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/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.mjs +240 -244
- package/dist/nutui.react.umd.js +240 -244
- package/dist/packages/audio/audio.scss +2 -15
- package/dist/packages/calendar/calendar.scss +0 -30
- package/dist/packages/popup/popup.scss +0 -16
- package/dist/packages/row/row.scss +13 -31
- package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
- package/dist/packages/uploader/uploader.scss +2 -28
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +25 -27
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -222,26 +222,23 @@ interface PopupProps extends OverlayProps {
|
|
|
222
222
|
position: string;
|
|
223
223
|
transition: string;
|
|
224
224
|
overlayStyle: React__default.CSSProperties;
|
|
225
|
-
|
|
226
|
-
popClass: string;
|
|
225
|
+
overlayClassName: string;
|
|
227
226
|
closeable: boolean;
|
|
228
227
|
closeIconPosition: string;
|
|
229
228
|
closeIcon: React__default.ReactNode;
|
|
230
229
|
destroyOnClose: boolean;
|
|
231
|
-
|
|
230
|
+
portal: Teleport;
|
|
232
231
|
overlay: boolean;
|
|
233
232
|
round: boolean;
|
|
234
233
|
onOpen: () => void;
|
|
235
234
|
onClose: () => void;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
onClickOverlay: (e: ITouchEvent) => void;
|
|
239
|
-
onClickCloseIcon: (e: MouseEvent$1) => void;
|
|
235
|
+
onClickOverlay: (e: ITouchEvent) => boolean | void;
|
|
236
|
+
onClickCloseIcon: (e: ITouchEvent) => boolean | void;
|
|
240
237
|
}
|
|
241
238
|
declare const Popup: FunctionComponent<Partial<PopupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
242
239
|
|
|
243
240
|
type EventType$1 = 'row' | 'col';
|
|
244
|
-
interface ColProps {
|
|
241
|
+
interface ColProps extends BasicComponent {
|
|
245
242
|
span: string | number;
|
|
246
243
|
offset: string | number;
|
|
247
244
|
gutter: string | number;
|
|
@@ -293,7 +290,7 @@ interface LayoutProps {
|
|
|
293
290
|
declare const Layout: FunctionComponent<Partial<LayoutProps> & React__default.HTMLAttributes<HTMLDivElement>>;
|
|
294
291
|
|
|
295
292
|
type EventType = 'row' | 'col';
|
|
296
|
-
interface RowProps {
|
|
293
|
+
interface RowProps extends BasicComponent {
|
|
297
294
|
type: string;
|
|
298
295
|
justify: string;
|
|
299
296
|
align: string;
|
|
@@ -1150,17 +1147,18 @@ interface mediaType {
|
|
|
1150
1147
|
}
|
|
1151
1148
|
interface UploaderProps extends BasicComponent {
|
|
1152
1149
|
url: string;
|
|
1153
|
-
|
|
1150
|
+
maxCount: string | number;
|
|
1154
1151
|
sizeType: (keyof sizeType)[];
|
|
1155
1152
|
sourceType: (keyof sourceType)[];
|
|
1156
1153
|
mediaType: (keyof mediaType)[];
|
|
1157
1154
|
camera: string;
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1155
|
+
maxFileSize: number;
|
|
1156
|
+
defaultValue?: FileType$1<React__default.ReactNode>[];
|
|
1157
|
+
value?: FileType$1<string>[];
|
|
1158
|
+
previewType: 'picture' | 'list';
|
|
1159
|
+
imageFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1160
|
+
uploadIcon?: React__default.ReactNode;
|
|
1161
|
+
uploadLabel?: React__default.ReactNode;
|
|
1164
1162
|
name: string;
|
|
1165
1163
|
accept: string;
|
|
1166
1164
|
disabled: boolean;
|
|
@@ -1171,36 +1169,36 @@ interface UploaderProps extends BasicComponent {
|
|
|
1171
1169
|
method: string;
|
|
1172
1170
|
xhrState: number | string;
|
|
1173
1171
|
headers: object;
|
|
1174
|
-
|
|
1175
|
-
|
|
1172
|
+
preview: boolean;
|
|
1173
|
+
deletable: boolean;
|
|
1176
1174
|
className: string;
|
|
1177
|
-
|
|
1175
|
+
previewUrl?: string;
|
|
1178
1176
|
maxDuration: number;
|
|
1179
1177
|
style: React__default.CSSProperties;
|
|
1180
1178
|
onStart?: (option: UploadOptions) => void;
|
|
1181
|
-
|
|
1179
|
+
onDelete?: (file: FileItem, fileList: FileType$1<React__default.ReactNode>[]) => void;
|
|
1182
1180
|
onSuccess?: (param: {
|
|
1183
1181
|
responseText: XMLHttpRequest['responseText'];
|
|
1184
1182
|
option: UploadOptions;
|
|
1185
|
-
fileList: FileType$1<
|
|
1183
|
+
fileList: FileType$1<React__default.ReactNode>[];
|
|
1186
1184
|
}) => void;
|
|
1187
1185
|
onProgress?: (param: {
|
|
1188
1186
|
e: ProgressEvent<XMLHttpRequestEventTarget>;
|
|
1189
1187
|
option: UploadOptions;
|
|
1190
|
-
percentage:
|
|
1188
|
+
percentage: React__default.ReactNode;
|
|
1191
1189
|
}) => void;
|
|
1192
1190
|
onFailure?: (param: {
|
|
1193
1191
|
responseText: XMLHttpRequest['responseText'];
|
|
1194
1192
|
option: UploadOptions;
|
|
1195
|
-
fileList: FileType$1<
|
|
1193
|
+
fileList: FileType$1<React__default.ReactNode>[];
|
|
1196
1194
|
}) => void;
|
|
1197
|
-
onUpdate?: (fileList: FileType$1<
|
|
1195
|
+
onUpdate?: (fileList: FileType$1<React__default.ReactNode>[]) => void;
|
|
1198
1196
|
onOversize?: (files: Taro.chooseImage.ImageFile[] | Taro.chooseMedia.ChooseMedia[] | any) => void;
|
|
1199
1197
|
onChange?: (param: {
|
|
1200
|
-
fileList: FileType$1<
|
|
1198
|
+
fileList: FileType$1<React__default.ReactNode>[];
|
|
1201
1199
|
}) => void;
|
|
1202
|
-
|
|
1203
|
-
|
|
1200
|
+
beforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1201
|
+
beforeDelete?: (file: FileItem, files: FileType$1<React__default.ReactNode>[]) => boolean;
|
|
1204
1202
|
onFileItemClick?: (file: FileItem) => void;
|
|
1205
1203
|
}
|
|
1206
1204
|
declare class FileItem {
|