@douyinfe/semi-ui 2.20.3 → 2.20.5-alpha.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/README.md +4 -4
- package/dist/css/semi.css +7 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +227 -215
- 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/dropdown/index.js +1 -1
- package/lib/cjs/image/image.d.ts +0 -1
- package/lib/cjs/image/image.js +0 -2
- package/lib/cjs/image/index.d.ts +1 -0
- package/lib/cjs/image/index.js +2 -0
- package/lib/es/dropdown/index.js +1 -1
- package/lib/es/image/image.d.ts +0 -1
- package/lib/es/image/image.js +0 -1
- package/lib/es/image/index.d.ts +1 -0
- package/lib/es/image/index.js +1 -0
- package/package.json +7 -7
|
@@ -238,7 +238,7 @@ class Dropdown extends _baseComponent.default {
|
|
|
238
238
|
onKeyDown: e => {
|
|
239
239
|
this.foundation.handleKeyDown(e);
|
|
240
240
|
const childrenKeyDown = (0, _get2.default)(children, 'props.onKeyDown');
|
|
241
|
-
childrenKeyDown && childrenKeyDown();
|
|
241
|
+
childrenKeyDown && childrenKeyDown(e);
|
|
242
242
|
}
|
|
243
243
|
}) : children);
|
|
244
244
|
}
|
package/lib/cjs/image/image.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import React from "react";
|
|
|
2
2
|
import BaseComponent from "../_base/baseComponent";
|
|
3
3
|
import { ImageProps, ImageStates } from "./interface";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
|
-
import '@douyinfe/semi-foundation/lib/cjs/image/image.css';
|
|
6
5
|
import { PreviewContextProps } from "./previewContext";
|
|
7
6
|
import ImageFoundation, { ImageAdapter } from '@douyinfe/semi-foundation/lib/cjs/image/imageFoundation';
|
|
8
7
|
export default class Image extends BaseComponent<ImageProps, ImageStates> {
|
package/lib/cjs/image/image.js
CHANGED
|
@@ -21,8 +21,6 @@ var _semiIcons = require("@douyinfe/semi-icons");
|
|
|
21
21
|
|
|
22
22
|
var _previewInner = _interopRequireDefault(require("./previewInner"));
|
|
23
23
|
|
|
24
|
-
require("@douyinfe/semi-foundation/lib/cjs/image/image.css");
|
|
25
|
-
|
|
26
24
|
var _previewContext = require("./previewContext");
|
|
27
25
|
|
|
28
26
|
var _imageFoundation = _interopRequireDefault(require("@douyinfe/semi-foundation/lib/cjs/image/imageFoundation"));
|
package/lib/cjs/image/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Image from "./image";
|
|
2
2
|
import PreviewInner from "./previewInner";
|
|
3
3
|
import Preview from "./preview";
|
|
4
|
+
import '@douyinfe/semi-foundation/lib/cjs/image/image.css';
|
|
4
5
|
export default Image;
|
|
5
6
|
export { PreviewInner, Preview, };
|
|
6
7
|
export { ImageProps, PreviewImageProps, PreviewProps, } from "./interface";
|
package/lib/cjs/image/index.js
CHANGED
|
@@ -23,6 +23,8 @@ var _previewInner = _interopRequireDefault(require("./previewInner"));
|
|
|
23
23
|
|
|
24
24
|
var _preview = _interopRequireDefault(require("./preview"));
|
|
25
25
|
|
|
26
|
+
require("@douyinfe/semi-foundation/lib/cjs/image/image.css");
|
|
27
|
+
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
28
30
|
var _default = _image.default;
|
package/lib/es/dropdown/index.js
CHANGED
package/lib/es/image/image.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import React from "react";
|
|
|
2
2
|
import BaseComponent from "../_base/baseComponent";
|
|
3
3
|
import { ImageProps, ImageStates } from "./interface";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
|
-
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
6
5
|
import { PreviewContextProps } from "./previewContext";
|
|
7
6
|
import ImageFoundation, { ImageAdapter } from '@douyinfe/semi-foundation/lib/es/image/imageFoundation';
|
|
8
7
|
export default class Image extends BaseComponent<ImageProps, ImageStates> {
|
package/lib/es/image/image.js
CHANGED
|
@@ -10,7 +10,6 @@ import { cssClasses } from '@douyinfe/semi-foundation/lib/es/image/constants';
|
|
|
10
10
|
import cls from "classnames";
|
|
11
11
|
import { IconUploadError, IconEyeOpened } from "@douyinfe/semi-icons";
|
|
12
12
|
import PreviewInner from "./previewInner";
|
|
13
|
-
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
14
13
|
import { PreviewContext } from "./previewContext";
|
|
15
14
|
import ImageFoundation from '@douyinfe/semi-foundation/lib/es/image/imageFoundation';
|
|
16
15
|
import LocaleConsumer from "../locale/localeConsumer";
|
package/lib/es/image/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Image from "./image";
|
|
2
2
|
import PreviewInner from "./previewInner";
|
|
3
3
|
import Preview from "./preview";
|
|
4
|
+
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
4
5
|
export default Image;
|
|
5
6
|
export { PreviewInner, Preview, };
|
|
6
7
|
export { ImageProps, PreviewImageProps, PreviewProps, } from "./interface";
|
package/lib/es/image/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.5-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@douyinfe/semi-animation": "2.12.0",
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.20.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.20.
|
|
23
|
-
"@douyinfe/semi-icons": "2.20.
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.20.5-alpha.0",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.20.5-alpha.0",
|
|
23
|
+
"@douyinfe/semi-icons": "2.20.5-alpha.0",
|
|
24
24
|
"@douyinfe/semi-illustrations": "2.15.0",
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.20.
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.20.5-alpha.0",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "c6aaa7f57e7fc8482c831b2ef5b98951a6a2adf6",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
76
76
|
"@babel/preset-env": "^7.15.8",
|
|
77
77
|
"@babel/preset-react": "^7.14.5",
|
|
78
|
-
"@douyinfe/semi-scss-compile": "2.20.
|
|
78
|
+
"@douyinfe/semi-scss-compile": "2.20.5-alpha.0",
|
|
79
79
|
"@storybook/addon-knobs": "^6.3.1",
|
|
80
80
|
"@types/lodash": "^4.14.176",
|
|
81
81
|
"@types/react": ">=16.0.0",
|