@douyinfe/semi-foundation 2.88.1 → 2.88.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/image/image.scss +7 -0
- package/lib/cjs/image/image.css +6 -0
- package/lib/cjs/image/image.scss +7 -0
- package/lib/cjs/navigation/navigation.css +5 -0
- package/lib/cjs/navigation/navigation.scss +6 -0
- package/lib/cjs/rating/foundation.js +3 -2
- package/lib/cjs/rating/rating.css +5 -0
- package/lib/cjs/rating/rating.scss +6 -0
- package/lib/cjs/upload/upload.css +6 -0
- package/lib/cjs/upload/upload.scss +7 -0
- package/lib/es/image/image.css +6 -0
- package/lib/es/image/image.scss +7 -0
- package/lib/es/navigation/navigation.css +5 -0
- package/lib/es/navigation/navigation.scss +6 -0
- package/lib/es/rating/foundation.js +3 -2
- package/lib/es/rating/rating.css +5 -0
- package/lib/es/rating/rating.scss +6 -0
- package/lib/es/upload/upload.css +6 -0
- package/lib/es/upload/upload.scss +7 -0
- package/navigation/navigation.scss +6 -0
- package/package.json +4 -4
- package/rating/foundation.ts +4 -2
- package/rating/rating.scss +6 -0
- package/upload/upload.scss +7 -0
package/image/image.scss
CHANGED
|
@@ -19,6 +19,13 @@ $module: #{$prefix}-image;
|
|
|
19
19
|
max-width: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
&-tooltip-children-wrapper {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
width: fit-content;
|
|
25
|
+
height: fit-content;
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
&-img {
|
|
23
30
|
vertical-align: top;
|
|
24
31
|
border-radius: inherit;
|
package/lib/cjs/image/image.css
CHANGED
package/lib/cjs/image/image.scss
CHANGED
|
@@ -19,6 +19,13 @@ $module: #{$prefix}-image;
|
|
|
19
19
|
max-width: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
&-tooltip-children-wrapper {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
width: fit-content;
|
|
25
|
+
height: fit-content;
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
&-img {
|
|
23
30
|
vertical-align: top;
|
|
24
31
|
border-radius: inherit;
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
transition: opacity 0.2s cubic-bezier(0.5, -0.1, 1, 0.4);
|
|
50
50
|
opacity: 0;
|
|
51
51
|
}
|
|
52
|
+
.semi-navigation-collapsed-wrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
width: fit-content;
|
|
55
|
+
height: fit-content;
|
|
56
|
+
}
|
|
52
57
|
.semi-navigation-sub-wrap .semi-navigation-sub-title, .semi-navigation-item {
|
|
53
58
|
cursor: pointer;
|
|
54
59
|
display: flex;
|
|
@@ -174,10 +174,11 @@ class RatingFoundation extends _foundation.default {
|
|
|
174
174
|
const {
|
|
175
175
|
count,
|
|
176
176
|
allowHalf,
|
|
177
|
-
preventScroll
|
|
177
|
+
preventScroll,
|
|
178
|
+
tooltips
|
|
178
179
|
} = this.getProps();
|
|
179
180
|
const index = Math.ceil(value) - 1;
|
|
180
|
-
const starElement = [...event.currentTarget.childNodes].map(item => item.childNodes[0].childNodes);
|
|
181
|
+
const starElement = [...event.currentTarget.childNodes].map(item => tooltips ? item.childNodes[0].childNodes[0].childNodes : item.childNodes[0].childNodes);
|
|
181
182
|
if (index < 0) {
|
|
182
183
|
starElement[count][0].focus({
|
|
183
184
|
preventScroll
|
package/lib/es/image/image.css
CHANGED
package/lib/es/image/image.scss
CHANGED
|
@@ -19,6 +19,13 @@ $module: #{$prefix}-image;
|
|
|
19
19
|
max-width: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
&-tooltip-children-wrapper {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
width: fit-content;
|
|
25
|
+
height: fit-content;
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
&-img {
|
|
23
30
|
vertical-align: top;
|
|
24
31
|
border-radius: inherit;
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
transition: opacity 0.2s cubic-bezier(0.5, -0.1, 1, 0.4);
|
|
50
50
|
opacity: 0;
|
|
51
51
|
}
|
|
52
|
+
.semi-navigation-collapsed-wrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
width: fit-content;
|
|
55
|
+
height: fit-content;
|
|
56
|
+
}
|
|
52
57
|
.semi-navigation-sub-wrap .semi-navigation-sub-title, .semi-navigation-item {
|
|
53
58
|
cursor: pointer;
|
|
54
59
|
display: flex;
|
|
@@ -167,10 +167,11 @@ export default class RatingFoundation extends BaseFoundation {
|
|
|
167
167
|
const {
|
|
168
168
|
count,
|
|
169
169
|
allowHalf,
|
|
170
|
-
preventScroll
|
|
170
|
+
preventScroll,
|
|
171
|
+
tooltips
|
|
171
172
|
} = this.getProps();
|
|
172
173
|
const index = Math.ceil(value) - 1;
|
|
173
|
-
const starElement = [...event.currentTarget.childNodes].map(item => item.childNodes[0].childNodes);
|
|
174
|
+
const starElement = [...event.currentTarget.childNodes].map(item => tooltips ? item.childNodes[0].childNodes[0].childNodes : item.childNodes[0].childNodes);
|
|
174
175
|
if (index < 0) {
|
|
175
176
|
starElement[count][0].focus({
|
|
176
177
|
preventScroll
|
package/lib/es/rating/rating.css
CHANGED
package/lib/es/upload/upload.css
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.88.
|
|
3
|
+
"version": "2.88.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.88.
|
|
11
|
-
"@douyinfe/semi-json-viewer-core": "2.88.
|
|
10
|
+
"@douyinfe/semi-animation": "2.88.2",
|
|
11
|
+
"@douyinfe/semi-json-viewer-core": "2.88.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": "c4ddfa944bb1685377a053c381aa9f4b3a3b5e26",
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
35
35
|
"@babel/preset-env": "^7.15.8",
|
package/rating/foundation.ts
CHANGED
|
@@ -146,9 +146,11 @@ export default class RatingFoundation<P = Record<string, any>, S = Record<string
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
changeFocusStar(value: number, event: any) {
|
|
149
|
-
const { count, allowHalf, preventScroll } = this.getProps();
|
|
149
|
+
const { count, allowHalf, preventScroll, tooltips } = this.getProps();
|
|
150
150
|
const index = Math.ceil(value) - 1;
|
|
151
|
-
const starElement = [...event.currentTarget.childNodes].map(item =>
|
|
151
|
+
const starElement = [...event.currentTarget.childNodes].map(item =>
|
|
152
|
+
tooltips ? item.childNodes[0].childNodes[0].childNodes : item.childNodes[0].childNodes
|
|
153
|
+
);
|
|
152
154
|
if (index < 0) {
|
|
153
155
|
starElement[count][0].focus({ preventScroll });
|
|
154
156
|
} else {
|
package/rating/rating.scss
CHANGED
package/upload/upload.scss
CHANGED