@douyinfe/semi-ui 2.20.6 → 2.20.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/dist/umd/semi-ui.js +5 -3
- 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/image/image.d.ts +1 -0
- package/lib/cjs/image/image.js +2 -0
- package/lib/cjs/image/preview.d.ts +1 -0
- package/lib/cjs/image/preview.js +2 -0
- package/lib/es/image/image.d.ts +1 -0
- package/lib/es/image/image.js +1 -0
- package/lib/es/image/preview.d.ts +1 -0
- package/lib/es/image/preview.js +1 -0
- package/package.json +7 -7
package/lib/cjs/image/image.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ImageProps, ImageStates } from "./interface";
|
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import { PreviewContextProps } from "./previewContext";
|
|
6
6
|
import ImageFoundation, { ImageAdapter } from '@douyinfe/semi-foundation/lib/cjs/image/imageFoundation';
|
|
7
|
+
import '@douyinfe/semi-foundation/lib/cjs/image/image.css';
|
|
7
8
|
export default class Image extends BaseComponent<ImageProps, ImageStates> {
|
|
8
9
|
static isSemiImage: boolean;
|
|
9
10
|
static contextType: React.Context<PreviewContextProps>;
|
package/lib/cjs/image/image.js
CHANGED
|
@@ -29,6 +29,8 @@ var _localeConsumer = _interopRequireDefault(require("../locale/localeConsumer")
|
|
|
29
29
|
|
|
30
30
|
var _skeleton = _interopRequireDefault(require("../skeleton"));
|
|
31
31
|
|
|
32
|
+
require("@douyinfe/semi-foundation/lib/cjs/image/image.css");
|
|
33
|
+
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
35
|
|
|
34
36
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
@@ -4,6 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { PreviewProps, PreviewState } from "./interface";
|
|
5
5
|
import PreviewInner from "./previewInner";
|
|
6
6
|
import PreviewFoundation from '@douyinfe/semi-foundation/lib/cjs/image/previewFoundation';
|
|
7
|
+
import '@douyinfe/semi-foundation/lib/cjs/image/image.css';
|
|
7
8
|
export default class Preview extends BaseComponent<PreviewProps, PreviewState> {
|
|
8
9
|
static propTypes: {
|
|
9
10
|
style: PropTypes.Requireable<object>;
|
package/lib/cjs/image/preview.js
CHANGED
|
@@ -23,6 +23,8 @@ var _uuid = require("@douyinfe/semi-foundation/lib/cjs/utils/uuid");
|
|
|
23
23
|
|
|
24
24
|
var _constants = require("@douyinfe/semi-foundation/lib/cjs/image/constants");
|
|
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 __rest = void 0 && (void 0).__rest || function (s, e) {
|
package/lib/es/image/image.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ImageProps, ImageStates } from "./interface";
|
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import { PreviewContextProps } from "./previewContext";
|
|
6
6
|
import ImageFoundation, { ImageAdapter } from '@douyinfe/semi-foundation/lib/es/image/imageFoundation';
|
|
7
|
+
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
7
8
|
export default class Image extends BaseComponent<ImageProps, ImageStates> {
|
|
8
9
|
static isSemiImage: boolean;
|
|
9
10
|
static contextType: React.Context<PreviewContextProps>;
|
package/lib/es/image/image.js
CHANGED
|
@@ -14,6 +14,7 @@ import { PreviewContext } from "./previewContext";
|
|
|
14
14
|
import ImageFoundation from '@douyinfe/semi-foundation/lib/es/image/imageFoundation';
|
|
15
15
|
import LocaleConsumer from "../locale/localeConsumer";
|
|
16
16
|
import Skeleton from "../skeleton";
|
|
17
|
+
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
17
18
|
const prefixCls = cssClasses.PREFIX;
|
|
18
19
|
export default class Image extends BaseComponent {
|
|
19
20
|
constructor(props) {
|
|
@@ -4,6 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { PreviewProps, PreviewState } from "./interface";
|
|
5
5
|
import PreviewInner from "./previewInner";
|
|
6
6
|
import PreviewFoundation from '@douyinfe/semi-foundation/lib/es/image/previewFoundation';
|
|
7
|
+
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
7
8
|
export default class Preview extends BaseComponent<PreviewProps, PreviewState> {
|
|
8
9
|
static propTypes: {
|
|
9
10
|
style: PropTypes.Requireable<object>;
|
package/lib/es/image/preview.js
CHANGED
|
@@ -19,6 +19,7 @@ import PreviewInner from "./previewInner";
|
|
|
19
19
|
import PreviewFoundation from '@douyinfe/semi-foundation/lib/es/image/previewFoundation';
|
|
20
20
|
import { getUuidShort } from '@douyinfe/semi-foundation/lib/es/utils/uuid';
|
|
21
21
|
import { cssClasses } from '@douyinfe/semi-foundation/lib/es/image/constants';
|
|
22
|
+
import '@douyinfe/semi-foundation/lib/es/image/image.css';
|
|
22
23
|
const prefixCls = cssClasses.PREFIX;
|
|
23
24
|
export default class Preview extends BaseComponent {
|
|
24
25
|
constructor(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.7",
|
|
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.7",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.20.7",
|
|
23
|
+
"@douyinfe/semi-icons": "2.20.7",
|
|
24
24
|
"@douyinfe/semi-illustrations": "2.15.0",
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.20.
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.20.7",
|
|
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": "c0d0df27f122e6e57483172169baf1c23745a29a",
|
|
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.7",
|
|
79
79
|
"@storybook/addon-knobs": "^6.3.1",
|
|
80
80
|
"@types/lodash": "^4.14.176",
|
|
81
81
|
"@types/react": ">=16.0.0",
|