@douyinfe/semi-foundation 2.71.1-alpha → 2.71.2
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/button/iconButton.scss +6 -0
- package/button/variables.scss +6 -0
- package/image/image.scss +6 -0
- package/lib/cjs/button/iconButton.css +6 -0
- package/lib/cjs/button/iconButton.scss +6 -0
- package/lib/cjs/button/variables.scss +6 -0
- package/lib/cjs/image/image.css +6 -0
- package/lib/cjs/image/image.scss +6 -0
- package/lib/cjs/overflowList/constants.d.ts +1 -1
- package/lib/cjs/tooltip/foundation.js +2 -1
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/es/button/iconButton.css +6 -0
- package/lib/es/button/iconButton.scss +6 -0
- package/lib/es/button/variables.scss +6 -0
- package/lib/es/image/image.css +6 -0
- package/lib/es/image/image.scss +6 -0
- package/lib/es/overflowList/constants.d.ts +1 -1
- package/lib/es/tooltip/foundation.js +2 -1
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/package.json +4 -4
- package/tooltip/foundation.ts +2 -1
package/button/iconButton.scss
CHANGED
|
@@ -35,6 +35,8 @@ $module: #{$prefix}-button;
|
|
|
35
35
|
padding-right: $spacing-button_iconOnly_default-paddingRight;
|
|
36
36
|
padding-top: $spacing-button_iconOnly_default-paddingTop;
|
|
37
37
|
padding-bottom: $spacing-button_iconOnly_default-paddingRight;
|
|
38
|
+
height: $height-button_iconOnly_default;
|
|
39
|
+
width: $width-button_iconOnly_default;
|
|
38
40
|
justify-content: center;
|
|
39
41
|
align-items: center;
|
|
40
42
|
|
|
@@ -45,6 +47,8 @@ $module: #{$prefix}-button;
|
|
|
45
47
|
padding-right: $spacing-button_iconOnly_small-paddingRight;
|
|
46
48
|
padding-top: $spacing-button_iconOnly_small-paddingTop;
|
|
47
49
|
padding-bottom: $spacing-button_iconOnly_small-paddingBottom;
|
|
50
|
+
height: $height-button_iconOnly_small;
|
|
51
|
+
width: $width-button_iconOnly_small;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
&-large {
|
|
@@ -52,6 +56,8 @@ $module: #{$prefix}-button;
|
|
|
52
56
|
padding-right: $spacing-button_iconOnly_large-paddingRight;
|
|
53
57
|
padding-top: $spacing-button_iconOnly_large-paddingTop;
|
|
54
58
|
padding-bottom: $spacing-button_iconOnly_large-paddingBottom;
|
|
59
|
+
height: $height-button_iconOnly_large;
|
|
60
|
+
width: $width-button_iconOnly_large;
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
}
|
package/button/variables.scss
CHANGED
|
@@ -154,6 +154,12 @@ $spacing-button_iconOnly_small-paddingLeft: $spacing-extra-tight; // 图标按
|
|
|
154
154
|
$spacing-button_iconOnly_small-paddingRight: $spacing-extra-tight; // 图标按钮右侧内边距 - 小尺寸
|
|
155
155
|
$spacing-button_iconOnly_small-paddingTop: $spacing-extra-tight; // 图标按钮顶部内边距 - 小尺寸
|
|
156
156
|
$spacing-button_iconOnly_small-paddingBottom: $spacing-extra-tight; // 图标按钮底部内边距 - 小尺寸
|
|
157
|
+
$height-button_iconOnly_small: $height-control-small; // 图标按钮 height - 小尺寸
|
|
158
|
+
$width-button_iconOnly_small: $height-control-small; // 图标按钮 width - 小尺寸
|
|
159
|
+
$height-button_iconOnly_default:$height-control-default; // 图标按钮 height - 默认
|
|
160
|
+
$width-button_iconOnly_default: $height-control-default; // 图标按钮 width - 默认
|
|
161
|
+
$height-button_iconOnly_large: $height-control-large; // 图标按钮 height - 大尺寸
|
|
162
|
+
$width-button_iconOnly_large: $height-control-large; // 图标按钮 width - 大尺寸
|
|
157
163
|
|
|
158
164
|
// margin
|
|
159
165
|
$spacing-button_iconOnly_content-marginLeft: $spacing-tight; // 按钮左侧图标距离文字间距
|
package/image/image.scss
CHANGED
|
@@ -204,6 +204,12 @@ $module: #{$prefix}-image;
|
|
|
204
204
|
// transition: transform $transition_duration-image_preview_image_img $transition_delay-image_preview_image_img;
|
|
205
205
|
z-index: 0;
|
|
206
206
|
user-select: none;
|
|
207
|
+
/**
|
|
208
|
+
* In tailwind, the max-width of img/video is set to 100%,
|
|
209
|
+
* which will affect the amplification effect of the picture.
|
|
210
|
+
* So we need to set max-width to none.
|
|
211
|
+
*/
|
|
212
|
+
max-width: none;
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
&-spin {
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
padding-right: 8px;
|
|
26
26
|
padding-top: 8px;
|
|
27
27
|
padding-bottom: 8px;
|
|
28
|
+
height: 32px;
|
|
29
|
+
width: 32px;
|
|
28
30
|
justify-content: center;
|
|
29
31
|
align-items: center;
|
|
30
32
|
}
|
|
@@ -33,12 +35,16 @@
|
|
|
33
35
|
padding-right: 4px;
|
|
34
36
|
padding-top: 4px;
|
|
35
37
|
padding-bottom: 4px;
|
|
38
|
+
height: 24px;
|
|
39
|
+
width: 24px;
|
|
36
40
|
}
|
|
37
41
|
.semi-button.semi-button-with-icon-only.semi-button-size-large {
|
|
38
42
|
padding-left: 12px;
|
|
39
43
|
padding-right: 12px;
|
|
40
44
|
padding-top: 12px;
|
|
41
45
|
padding-bottom: 12px;
|
|
46
|
+
height: 40px;
|
|
47
|
+
width: 40px;
|
|
42
48
|
}
|
|
43
49
|
.semi-button-content-left {
|
|
44
50
|
margin-right: 8px;
|
|
@@ -35,6 +35,8 @@ $module: #{$prefix}-button;
|
|
|
35
35
|
padding-right: $spacing-button_iconOnly_default-paddingRight;
|
|
36
36
|
padding-top: $spacing-button_iconOnly_default-paddingTop;
|
|
37
37
|
padding-bottom: $spacing-button_iconOnly_default-paddingRight;
|
|
38
|
+
height: $height-button_iconOnly_default;
|
|
39
|
+
width: $width-button_iconOnly_default;
|
|
38
40
|
justify-content: center;
|
|
39
41
|
align-items: center;
|
|
40
42
|
|
|
@@ -45,6 +47,8 @@ $module: #{$prefix}-button;
|
|
|
45
47
|
padding-right: $spacing-button_iconOnly_small-paddingRight;
|
|
46
48
|
padding-top: $spacing-button_iconOnly_small-paddingTop;
|
|
47
49
|
padding-bottom: $spacing-button_iconOnly_small-paddingBottom;
|
|
50
|
+
height: $height-button_iconOnly_small;
|
|
51
|
+
width: $width-button_iconOnly_small;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
&-large {
|
|
@@ -52,6 +56,8 @@ $module: #{$prefix}-button;
|
|
|
52
56
|
padding-right: $spacing-button_iconOnly_large-paddingRight;
|
|
53
57
|
padding-top: $spacing-button_iconOnly_large-paddingTop;
|
|
54
58
|
padding-bottom: $spacing-button_iconOnly_large-paddingBottom;
|
|
59
|
+
height: $height-button_iconOnly_large;
|
|
60
|
+
width: $width-button_iconOnly_large;
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
}
|
|
@@ -154,6 +154,12 @@ $spacing-button_iconOnly_small-paddingLeft: $spacing-extra-tight; // 图标按
|
|
|
154
154
|
$spacing-button_iconOnly_small-paddingRight: $spacing-extra-tight; // 图标按钮右侧内边距 - 小尺寸
|
|
155
155
|
$spacing-button_iconOnly_small-paddingTop: $spacing-extra-tight; // 图标按钮顶部内边距 - 小尺寸
|
|
156
156
|
$spacing-button_iconOnly_small-paddingBottom: $spacing-extra-tight; // 图标按钮底部内边距 - 小尺寸
|
|
157
|
+
$height-button_iconOnly_small: $height-control-small; // 图标按钮 height - 小尺寸
|
|
158
|
+
$width-button_iconOnly_small: $height-control-small; // 图标按钮 width - 小尺寸
|
|
159
|
+
$height-button_iconOnly_default:$height-control-default; // 图标按钮 height - 默认
|
|
160
|
+
$width-button_iconOnly_default: $height-control-default; // 图标按钮 width - 默认
|
|
161
|
+
$height-button_iconOnly_large: $height-control-large; // 图标按钮 height - 大尺寸
|
|
162
|
+
$width-button_iconOnly_large: $height-control-large; // 图标按钮 width - 大尺寸
|
|
157
163
|
|
|
158
164
|
// margin
|
|
159
165
|
$spacing-button_iconOnly_content-marginLeft: $spacing-tight; // 按钮左侧图标距离文字间距
|
package/lib/cjs/image/image.css
CHANGED
|
@@ -177,6 +177,12 @@
|
|
|
177
177
|
transform: scale3d(1, 1, 1) var(--semi-transform-rotate-none);
|
|
178
178
|
z-index: 0;
|
|
179
179
|
user-select: none;
|
|
180
|
+
/**
|
|
181
|
+
* In tailwind, the max-width of img/video is set to 100%,
|
|
182
|
+
* which will affect the amplification effect of the picture.
|
|
183
|
+
* So we need to set max-width to none.
|
|
184
|
+
*/
|
|
185
|
+
max-width: none;
|
|
180
186
|
}
|
|
181
187
|
.semi-image-preview-image-spin {
|
|
182
188
|
position: absolute;
|
package/lib/cjs/image/image.scss
CHANGED
|
@@ -204,6 +204,12 @@ $module: #{$prefix}-image;
|
|
|
204
204
|
// transition: transform $transition_duration-image_preview_image_img $transition_delay-image_preview_image_img;
|
|
205
205
|
z-index: 0;
|
|
206
206
|
user-select: none;
|
|
207
|
+
/**
|
|
208
|
+
* In tailwind, the max-width of img/video is set to 100%,
|
|
209
|
+
* which will affect the amplification effect of the picture.
|
|
210
|
+
* So we need to set max-width to none.
|
|
211
|
+
*/
|
|
212
|
+
max-width: none;
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
&-spin {
|
|
@@ -416,7 +416,8 @@ class Tooltip extends _foundation.default {
|
|
|
416
416
|
}
|
|
417
417
|
_togglePortalVisible(isVisible) {
|
|
418
418
|
const nowVisible = this.getState('visible');
|
|
419
|
-
|
|
419
|
+
const isInsert = this.getState("isInsert");
|
|
420
|
+
if (nowVisible !== isVisible || isInsert !== isVisible) {
|
|
420
421
|
this._adapter.togglePortalVisible(isVisible, () => {
|
|
421
422
|
if (isVisible) {
|
|
422
423
|
this._adapter.setInitialFocus();
|
|
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
|
|
|
83
83
|
export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
|
|
84
84
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
85
85
|
export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
|
|
86
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
86
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
|
|
87
87
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
88
88
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
padding-right: 8px;
|
|
26
26
|
padding-top: 8px;
|
|
27
27
|
padding-bottom: 8px;
|
|
28
|
+
height: 32px;
|
|
29
|
+
width: 32px;
|
|
28
30
|
justify-content: center;
|
|
29
31
|
align-items: center;
|
|
30
32
|
}
|
|
@@ -33,12 +35,16 @@
|
|
|
33
35
|
padding-right: 4px;
|
|
34
36
|
padding-top: 4px;
|
|
35
37
|
padding-bottom: 4px;
|
|
38
|
+
height: 24px;
|
|
39
|
+
width: 24px;
|
|
36
40
|
}
|
|
37
41
|
.semi-button.semi-button-with-icon-only.semi-button-size-large {
|
|
38
42
|
padding-left: 12px;
|
|
39
43
|
padding-right: 12px;
|
|
40
44
|
padding-top: 12px;
|
|
41
45
|
padding-bottom: 12px;
|
|
46
|
+
height: 40px;
|
|
47
|
+
width: 40px;
|
|
42
48
|
}
|
|
43
49
|
.semi-button-content-left {
|
|
44
50
|
margin-right: 8px;
|
|
@@ -35,6 +35,8 @@ $module: #{$prefix}-button;
|
|
|
35
35
|
padding-right: $spacing-button_iconOnly_default-paddingRight;
|
|
36
36
|
padding-top: $spacing-button_iconOnly_default-paddingTop;
|
|
37
37
|
padding-bottom: $spacing-button_iconOnly_default-paddingRight;
|
|
38
|
+
height: $height-button_iconOnly_default;
|
|
39
|
+
width: $width-button_iconOnly_default;
|
|
38
40
|
justify-content: center;
|
|
39
41
|
align-items: center;
|
|
40
42
|
|
|
@@ -45,6 +47,8 @@ $module: #{$prefix}-button;
|
|
|
45
47
|
padding-right: $spacing-button_iconOnly_small-paddingRight;
|
|
46
48
|
padding-top: $spacing-button_iconOnly_small-paddingTop;
|
|
47
49
|
padding-bottom: $spacing-button_iconOnly_small-paddingBottom;
|
|
50
|
+
height: $height-button_iconOnly_small;
|
|
51
|
+
width: $width-button_iconOnly_small;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
&-large {
|
|
@@ -52,6 +56,8 @@ $module: #{$prefix}-button;
|
|
|
52
56
|
padding-right: $spacing-button_iconOnly_large-paddingRight;
|
|
53
57
|
padding-top: $spacing-button_iconOnly_large-paddingTop;
|
|
54
58
|
padding-bottom: $spacing-button_iconOnly_large-paddingBottom;
|
|
59
|
+
height: $height-button_iconOnly_large;
|
|
60
|
+
width: $width-button_iconOnly_large;
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
}
|
|
@@ -154,6 +154,12 @@ $spacing-button_iconOnly_small-paddingLeft: $spacing-extra-tight; // 图标按
|
|
|
154
154
|
$spacing-button_iconOnly_small-paddingRight: $spacing-extra-tight; // 图标按钮右侧内边距 - 小尺寸
|
|
155
155
|
$spacing-button_iconOnly_small-paddingTop: $spacing-extra-tight; // 图标按钮顶部内边距 - 小尺寸
|
|
156
156
|
$spacing-button_iconOnly_small-paddingBottom: $spacing-extra-tight; // 图标按钮底部内边距 - 小尺寸
|
|
157
|
+
$height-button_iconOnly_small: $height-control-small; // 图标按钮 height - 小尺寸
|
|
158
|
+
$width-button_iconOnly_small: $height-control-small; // 图标按钮 width - 小尺寸
|
|
159
|
+
$height-button_iconOnly_default:$height-control-default; // 图标按钮 height - 默认
|
|
160
|
+
$width-button_iconOnly_default: $height-control-default; // 图标按钮 width - 默认
|
|
161
|
+
$height-button_iconOnly_large: $height-control-large; // 图标按钮 height - 大尺寸
|
|
162
|
+
$width-button_iconOnly_large: $height-control-large; // 图标按钮 width - 大尺寸
|
|
157
163
|
|
|
158
164
|
// margin
|
|
159
165
|
$spacing-button_iconOnly_content-marginLeft: $spacing-tight; // 按钮左侧图标距离文字间距
|
package/lib/es/image/image.css
CHANGED
|
@@ -177,6 +177,12 @@
|
|
|
177
177
|
transform: scale3d(1, 1, 1) var(--semi-transform-rotate-none);
|
|
178
178
|
z-index: 0;
|
|
179
179
|
user-select: none;
|
|
180
|
+
/**
|
|
181
|
+
* In tailwind, the max-width of img/video is set to 100%,
|
|
182
|
+
* which will affect the amplification effect of the picture.
|
|
183
|
+
* So we need to set max-width to none.
|
|
184
|
+
*/
|
|
185
|
+
max-width: none;
|
|
180
186
|
}
|
|
181
187
|
.semi-image-preview-image-spin {
|
|
182
188
|
position: absolute;
|
package/lib/es/image/image.scss
CHANGED
|
@@ -204,6 +204,12 @@ $module: #{$prefix}-image;
|
|
|
204
204
|
// transition: transform $transition_duration-image_preview_image_img $transition_delay-image_preview_image_img;
|
|
205
205
|
z-index: 0;
|
|
206
206
|
user-select: none;
|
|
207
|
+
/**
|
|
208
|
+
* In tailwind, the max-width of img/video is set to 100%,
|
|
209
|
+
* which will affect the amplification effect of the picture.
|
|
210
|
+
* So we need to set max-width to none.
|
|
211
|
+
*/
|
|
212
|
+
max-width: none;
|
|
207
213
|
}
|
|
208
214
|
|
|
209
215
|
&-spin {
|
|
@@ -409,7 +409,8 @@ export default class Tooltip extends BaseFoundation {
|
|
|
409
409
|
}
|
|
410
410
|
_togglePortalVisible(isVisible) {
|
|
411
411
|
const nowVisible = this.getState('visible');
|
|
412
|
-
|
|
412
|
+
const isInsert = this.getState("isInsert");
|
|
413
|
+
if (nowVisible !== isVisible || isInsert !== isVisible) {
|
|
413
414
|
this._adapter.togglePortalVisible(isVisible, () => {
|
|
414
415
|
if (isVisible) {
|
|
415
416
|
this._adapter.setInitialFocus();
|
|
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
|
|
|
83
83
|
export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
|
|
84
84
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
85
85
|
export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
|
|
86
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
86
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
|
|
87
87
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
88
88
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.71.
|
|
3
|
+
"version": "2.71.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.71.
|
|
11
|
-
"@douyinfe/semi-json-viewer-core": "2.71.
|
|
10
|
+
"@douyinfe/semi-animation": "2.71.2",
|
|
11
|
+
"@douyinfe/semi-json-viewer-core": "2.71.2",
|
|
12
12
|
"@mdx-js/mdx": "^3.0.1",
|
|
13
13
|
"async-validator": "^3.5.0",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"*.scss",
|
|
30
30
|
"*.css"
|
|
31
31
|
],
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "e65e2dcb2c75c77a7c41234b1e7b5a2ebc73dd67",
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
35
35
|
"@babel/preset-env": "^7.15.8",
|
package/tooltip/foundation.ts
CHANGED
|
@@ -383,7 +383,8 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
|
|
|
383
383
|
|
|
384
384
|
_togglePortalVisible(isVisible: boolean) {
|
|
385
385
|
const nowVisible = this.getState('visible');
|
|
386
|
-
|
|
386
|
+
const isInsert = this.getState("isInsert");
|
|
387
|
+
if (nowVisible !== isVisible || isInsert !== isVisible) {
|
|
387
388
|
this._adapter.togglePortalVisible(isVisible, () => {
|
|
388
389
|
if (isVisible) {
|
|
389
390
|
this._adapter.setInitialFocus();
|