@douyinfe/semi-ui 2.24.0-alpha.0 → 2.24.0-beta.0
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/dist/css/semi.css +33 -10
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +395 -230
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/_utils/index.d.ts +3 -3
- package/lib/cjs/carousel/index.d.ts +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +2 -2
- package/lib/cjs/form/field.d.ts +2 -2
- package/lib/cjs/form/hoc/withField.js +4 -0
- package/lib/cjs/highlight/index.d.ts +37 -0
- package/lib/cjs/highlight/index.js +72 -0
- package/lib/cjs/image/image.js +4 -1
- package/lib/cjs/image/index.d.ts +1 -1
- package/lib/cjs/image/interface.d.ts +2 -0
- package/lib/cjs/image/previewImage.js +4 -2
- package/lib/cjs/image/previewInner.d.ts +5 -0
- package/lib/cjs/image/previewInner.js +43 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +8 -0
- package/lib/cjs/modal/Modal.d.ts +1 -1
- package/lib/cjs/modal/Modal.js +4 -4
- package/lib/cjs/navigation/Item.d.ts +1 -1
- package/lib/cjs/navigation/Item.js +9 -0
- package/lib/cjs/navigation/SubNav.js +6 -1
- package/lib/cjs/navigation/index.d.ts +9 -1
- package/lib/cjs/navigation/index.js +8 -3
- package/lib/cjs/navigation/nav-context.d.ts +4 -1
- package/lib/cjs/select/index.d.ts +2 -0
- package/lib/cjs/select/index.js +9 -1
- package/lib/cjs/timePicker/TimePicker.js +0 -1
- package/lib/cjs/upload/index.d.ts +3 -3
- package/lib/es/_utils/index.d.ts +3 -3
- package/lib/es/carousel/index.d.ts +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +2 -2
- package/lib/es/form/field.d.ts +2 -2
- package/lib/es/form/hoc/withField.js +4 -0
- package/lib/es/highlight/index.d.ts +37 -0
- package/lib/es/highlight/index.js +56 -0
- package/lib/es/image/image.js +3 -1
- package/lib/es/image/index.d.ts +1 -1
- package/lib/es/image/interface.d.ts +2 -0
- package/lib/es/image/previewImage.js +4 -2
- package/lib/es/image/previewInner.d.ts +5 -0
- package/lib/es/image/previewInner.js +43 -0
- package/lib/es/index.d.ts +1 -0
- package/lib/es/index.js +1 -0
- package/lib/es/modal/Modal.d.ts +1 -1
- package/lib/es/modal/Modal.js +4 -4
- package/lib/es/navigation/Item.d.ts +1 -1
- package/lib/es/navigation/Item.js +9 -0
- package/lib/es/navigation/SubNav.js +6 -1
- package/lib/es/navigation/index.d.ts +9 -1
- package/lib/es/navigation/index.js +8 -3
- package/lib/es/navigation/nav-context.d.ts +4 -1
- package/lib/es/select/index.d.ts +2 -0
- package/lib/es/select/index.js +8 -1
- package/lib/es/timePicker/TimePicker.js +0 -1
- package/lib/es/upload/index.d.ts +3 -3
- package/package.json +8 -8
package/lib/es/upload/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import UploadFoundation from '@douyinfe/semi-foundation/lib/es/upload/foundation';
|
|
4
4
|
import FileCard from './fileCard';
|
|
5
5
|
import BaseComponent from '../_base/baseComponent';
|
|
6
|
-
import { FileItem, RenderFileItemProps, UploadListType, PromptPositionType, BeforeUploadProps, AfterUploadProps, OnChangeProps, customRequestArgs, CustomError } from './interface';
|
|
6
|
+
import type { FileItem, RenderFileItemProps, UploadListType, PromptPositionType, BeforeUploadProps, AfterUploadProps, OnChangeProps, customRequestArgs, CustomError } from './interface';
|
|
7
7
|
import { Locale } from '../locale/interface';
|
|
8
8
|
import '@douyinfe/semi-foundation/lib/es/upload/upload.css';
|
|
9
9
|
import type { CustomFile, UploadAdapter, BeforeUploadObjectResult, AfterUploadResult } from '@douyinfe/semi-foundation/lib/es/upload/foundation';
|
|
10
10
|
import type { ValidateStatus } from '../_base/baseComponent';
|
|
11
|
-
export { FileItem, RenderFileItemProps, UploadListType, PromptPositionType, BeforeUploadProps, AfterUploadProps, OnChangeProps, customRequestArgs, CustomError, BeforeUploadObjectResult, AfterUploadResult, };
|
|
11
|
+
export type { FileItem, RenderFileItemProps, UploadListType, PromptPositionType, BeforeUploadProps, AfterUploadProps, OnChangeProps, customRequestArgs, CustomError, BeforeUploadObjectResult, AfterUploadResult, };
|
|
12
12
|
export interface UploadProps {
|
|
13
13
|
accept?: string;
|
|
14
14
|
action: string;
|
|
@@ -142,7 +142,7 @@ declare class Upload extends BaseComponent<UploadProps, UploadState> {
|
|
|
142
142
|
style: PropTypes.Requireable<object>;
|
|
143
143
|
timeout: PropTypes.Requireable<number>;
|
|
144
144
|
transformFile: PropTypes.Requireable<(...args: any[]) => any>;
|
|
145
|
-
uploadTrigger: PropTypes.Requireable<"
|
|
145
|
+
uploadTrigger: PropTypes.Requireable<"auto" | "custom">;
|
|
146
146
|
validateMessage: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
147
147
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
148
148
|
withCredentials: PropTypes.Requireable<boolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.24.0-
|
|
3
|
+
"version": "2.24.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.24.0-
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.24.0-
|
|
22
|
-
"@douyinfe/semi-foundation": "2.24.0-
|
|
23
|
-
"@douyinfe/semi-icons": "2.24.0-
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.24.0-
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.24.0-
|
|
20
|
+
"@douyinfe/semi-animation": "2.24.0-beta.0",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.24.0-beta.0",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.24.0-beta.0",
|
|
23
|
+
"@douyinfe/semi-icons": "2.24.0-beta.0",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.24.0-beta.0",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.24.0-beta.0",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "31e17a2fa310d85e240da05803b514a08507a451",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|