@sheinx/shineout-style 3.7.5 → 3.8.0-beta.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/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +78 -92
- package/cjs/form/form-item.d.ts.map +1 -1
- package/cjs/form/form-item.js +0 -5
- package/cjs/popover/popover.d.ts.map +1 -1
- package/cjs/popover/popover.js +18 -3
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +51 -68
- package/cjs/skeleton/skeleton.d.ts.map +1 -1
- package/cjs/skeleton/skeleton.js +2 -2
- package/cjs/tag/tag.d.ts.map +1 -1
- package/cjs/tag/tag.js +1 -2
- package/cjs/tooltip/tooltip.d.ts +50 -0
- package/cjs/tooltip/tooltip.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.js +23 -21
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +70 -90
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +2 -6
- package/cjs/version.d.ts +1 -1
- package/cjs/version.d.ts.map +1 -1
- package/cjs/version.js +1 -1
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +78 -92
- package/esm/form/form-item.d.ts.map +1 -1
- package/esm/form/form-item.js +0 -5
- package/esm/popover/popover.d.ts.map +1 -1
- package/esm/popover/popover.js +18 -3
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +51 -68
- package/esm/skeleton/skeleton.d.ts.map +1 -1
- package/esm/skeleton/skeleton.js +3 -1
- package/esm/tag/tag.d.ts.map +1 -1
- package/esm/tag/tag.js +1 -2
- package/esm/tooltip/tooltip.d.ts +50 -0
- package/esm/tooltip/tooltip.d.ts.map +1 -1
- package/esm/tooltip/tooltip.js +22 -20
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +70 -90
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +2 -6
- package/esm/version.d.ts +1 -1
- package/esm/version.d.ts.map +1 -1
- package/esm/version.js +1 -1
- package/package.json +3 -3
package/esm/select/select.js
CHANGED
|
@@ -51,12 +51,6 @@ var inputBorder = border('wrapper', inputBorderToken);
|
|
|
51
51
|
var wrapper = inputBorder.wrapper,
|
|
52
52
|
wrapperDisabled = inputBorder.wrapperDisabled,
|
|
53
53
|
resetWrapper = _objectWithoutProperties(inputBorder, ["wrapper", "wrapperDisabled"]);
|
|
54
|
-
var selectTagHeightCssvar = "--select-tag-height";
|
|
55
|
-
var selectSmallTagHeightCssvar = "--select-small-tag-height";
|
|
56
|
-
var selectLargeTagHeightCssvar = "--select-large-tag-height";
|
|
57
|
-
var selectTagHeight = "var(".concat(selectTagHeightCssvar, ")");
|
|
58
|
-
var selectSmallTagHeight = "var(".concat(selectSmallTagHeightCssvar, ")");
|
|
59
|
-
var selectLargeTagHeight = "var(".concat(selectLargeTagHeightCssvar, ")");
|
|
60
54
|
var selectStyle = _objectSpread(_objectSpread({
|
|
61
55
|
rootClass: {},
|
|
62
56
|
wrapper: _objectSpread(_objectSpread({
|
|
@@ -65,76 +59,68 @@ var selectStyle = _objectSpread(_objectSpread({
|
|
|
65
59
|
width: '100%',
|
|
66
60
|
outline: 'none',
|
|
67
61
|
cursor: 'pointer'
|
|
68
|
-
}, wrapper), {},
|
|
69
|
-
'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
}, wrapper), {}, {
|
|
63
|
+
'&$wrapperInnerTitle': {
|
|
64
|
+
'& $placeholder,$ellipsis,$space,input': {
|
|
65
|
+
marginTop: 0,
|
|
66
|
+
marginBottom: 0
|
|
67
|
+
},
|
|
68
|
+
'& $tag': {
|
|
69
|
+
marginTop: 0,
|
|
70
|
+
paddingTop: 0,
|
|
71
|
+
paddingBottom: 0,
|
|
72
|
+
height: token.lineHeightDynamic,
|
|
73
|
+
border: 'none',
|
|
74
|
+
'& *': {
|
|
75
|
+
lineHeight: token.lineHeightDynamic
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
'&$wrapperSmall $tag': {
|
|
79
|
+
height: 18,
|
|
80
|
+
marginBottom: 2,
|
|
81
|
+
'&$tag *': {
|
|
82
|
+
lineHeight: '18px'
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
85
|
},
|
|
84
|
-
'&$wrapperSmall
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
'&$wrapperSmall': {
|
|
87
|
+
'& $tag': {
|
|
88
|
+
height: 18,
|
|
89
|
+
lineHeight: '16px',
|
|
90
|
+
marginTop: 1,
|
|
91
|
+
marginBottom: 1
|
|
92
|
+
},
|
|
93
|
+
'& $placeholder,$ellipsis,$space,input': {
|
|
94
|
+
marginTop: 0,
|
|
95
|
+
marginBottom: 0
|
|
89
96
|
}
|
|
90
97
|
},
|
|
91
|
-
'&$wrapperLarge
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
98
|
+
'&$wrapperLarge': {
|
|
99
|
+
'& $placeholder,$ellipsis,$space,input': {
|
|
100
|
+
marginTop: token.selectLargePlaceholderMarginY,
|
|
101
|
+
marginBottom: token.selectLargePlaceholderMarginY
|
|
102
|
+
},
|
|
103
|
+
'& $arrowIcon': {
|
|
104
|
+
width: token.selectLargeFontSize
|
|
96
105
|
}
|
|
97
|
-
}
|
|
98
|
-
}), '&$wrapperSmall', {
|
|
99
|
-
'& $tag': {
|
|
100
|
-
height: selectSmallTagHeight,
|
|
101
|
-
lineHeight: '16px',
|
|
102
|
-
marginTop: 1,
|
|
103
|
-
marginBottom: 1
|
|
104
106
|
},
|
|
105
|
-
'
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
'&:hover': _objectSpread(_objectSpread({}, wrapper['&:hover']), {}, {
|
|
108
|
+
cursor: 'pointer',
|
|
109
|
+
'&$clearable:not($wrapperEmpty):not($wrapperDisabled)': {
|
|
110
|
+
'& $clearIcon': {
|
|
111
|
+
display: 'block'
|
|
112
|
+
},
|
|
113
|
+
'& $arrowIcon': {
|
|
114
|
+
display: 'none'
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
|
-
},
|
|
116
|
-
'
|
|
117
|
-
marginTop: token.selectLargePlaceholderMarginY,
|
|
118
|
-
marginBottom: token.selectLargePlaceholderMarginY
|
|
119
|
-
},
|
|
120
|
-
'& $arrowIcon': {
|
|
121
|
-
width: token.selectLargeFontSize
|
|
122
|
-
}
|
|
123
|
-
}), '&:hover', _objectSpread(_objectSpread({}, wrapper['&:hover']), {}, {
|
|
124
|
-
cursor: 'pointer',
|
|
125
|
-
'&$clearable:not($wrapperEmpty):not($wrapperDisabled)': {
|
|
117
|
+
}),
|
|
118
|
+
'&:not($wrapperEmpty):not($wrapperOpen)': {
|
|
126
119
|
'& $clearIcon': {
|
|
127
|
-
display: 'block'
|
|
128
|
-
},
|
|
129
|
-
'& $arrowIcon': {
|
|
130
120
|
display: 'none'
|
|
131
121
|
}
|
|
132
122
|
}
|
|
133
|
-
})
|
|
134
|
-
'& $clearIcon': {
|
|
135
|
-
display: 'none'
|
|
136
|
-
}
|
|
137
|
-
})),
|
|
123
|
+
}),
|
|
138
124
|
wrapperEmpty: {},
|
|
139
125
|
wrapperOpen: {},
|
|
140
126
|
wrapperDisabled: _objectSpread(_objectSpread({}, wrapperDisabled), {}, {
|
|
@@ -263,9 +249,6 @@ var selectStyle = _objectSpread(_objectSpread({
|
|
|
263
249
|
},
|
|
264
250
|
compressedWrapper: {
|
|
265
251
|
width: 0,
|
|
266
|
-
overflow: 'hidden'
|
|
267
|
-
},
|
|
268
|
-
compressedBoundWrapper: {
|
|
269
252
|
overflow: 'auto'
|
|
270
253
|
},
|
|
271
254
|
controlMouse: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["skeleton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["skeleton.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAU9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AAEtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CA0F9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/esm/skeleton/skeleton.js
CHANGED
|
@@ -4,6 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
// import token from '@sheinx/theme';
|
|
8
|
+
|
|
7
9
|
import token from '@sheinx/theme';
|
|
8
10
|
var animation = {
|
|
9
11
|
'@keyframes skeleton-animation': {
|
|
@@ -22,7 +24,7 @@ var skeletonStyle = _objectSpread(_objectSpread({}, animation), {}, {
|
|
|
22
24
|
},
|
|
23
25
|
animation: {
|
|
24
26
|
'& $textItem, & $image, & $buttonItem': {
|
|
25
|
-
|
|
27
|
+
background: "linear-gradient(90deg, ".concat(token.skeletonAnimationFromColor, " 25%, ").concat(token.skeletonAnimationToColor, " 37%, ").concat(token.skeletonAnimationFromColor, " 63%)"),
|
|
26
28
|
backgroundSize: '400% 100%',
|
|
27
29
|
animation: '$skeleton-animation 1.4s ease infinite'
|
|
28
30
|
}
|
package/esm/tag/tag.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAkJ1C,QAAA,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAkJ1C,QAAA,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,UAAU,CA2MxC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/esm/tag/tag.js
CHANGED
package/esm/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
import { JsStyles } from '../jss-style';
|
|
2
2
|
import { TooltipClasses } from '@sheinx/base';
|
|
3
|
+
export declare const tooltipAnimation: {
|
|
4
|
+
'@keyframes fadeIn': {
|
|
5
|
+
'0%': {
|
|
6
|
+
opacity: number;
|
|
7
|
+
};
|
|
8
|
+
'100%': {
|
|
9
|
+
opacity: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
'@keyframes moveRight': {
|
|
13
|
+
'0%': {
|
|
14
|
+
transformOrigin: string;
|
|
15
|
+
transform: string;
|
|
16
|
+
};
|
|
17
|
+
'100%': {
|
|
18
|
+
transformOrigin: string;
|
|
19
|
+
transform: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
'@keyframes moveLeft': {
|
|
23
|
+
'0%': {
|
|
24
|
+
transformOrigin: string;
|
|
25
|
+
transform: string;
|
|
26
|
+
};
|
|
27
|
+
'100%': {
|
|
28
|
+
transformOrigin: string;
|
|
29
|
+
transform: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
'@keyframes moveTop': {
|
|
33
|
+
'0%': {
|
|
34
|
+
transformOrigin: string;
|
|
35
|
+
transform: string;
|
|
36
|
+
};
|
|
37
|
+
'100%': {
|
|
38
|
+
transformOrigin: string;
|
|
39
|
+
transform: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
'@keyframes moveBottom': {
|
|
43
|
+
'0%': {
|
|
44
|
+
transformOrigin: string;
|
|
45
|
+
transform: string;
|
|
46
|
+
};
|
|
47
|
+
'100%': {
|
|
48
|
+
transformOrigin: string;
|
|
49
|
+
transform: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
3
53
|
declare const tooltipStyle: JsStyles<keyof TooltipClasses>;
|
|
4
54
|
export default tooltipStyle;
|
|
5
55
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD5B,CAAC;AACF,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,cAAc,CAkOhD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/esm/tooltip/tooltip.js
CHANGED
|
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import token from '@sheinx/theme';
|
|
8
8
|
var arrowGap = 12;
|
|
9
9
|
var arrowHeight = 8;
|
|
10
|
-
var
|
|
10
|
+
export var tooltipAnimation = {
|
|
11
11
|
'@keyframes fadeIn': {
|
|
12
12
|
'0%': {
|
|
13
13
|
opacity: 0
|
|
@@ -18,46 +18,48 @@ var animation = {
|
|
|
18
18
|
},
|
|
19
19
|
'@keyframes moveRight': {
|
|
20
20
|
'0%': {
|
|
21
|
-
|
|
21
|
+
transformOrigin: 'left center',
|
|
22
|
+
transform: "var(--soui-popup-transform) scale(0.5)"
|
|
22
23
|
},
|
|
23
24
|
'100%': {
|
|
24
|
-
|
|
25
|
+
transformOrigin: 'left center',
|
|
26
|
+
transform: "var(--soui-popup-transform) scale(1)"
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
'@keyframes moveLeft': {
|
|
28
30
|
'0%': {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
transformOrigin: 'right center',
|
|
32
|
+
transform: "var(--soui-popup-transform, rotate(0deg)) scale(0.5)"
|
|
31
33
|
},
|
|
32
34
|
'100%': {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
transformOrigin: 'right center',
|
|
36
|
+
transform: "var(--soui-popup-transform, rotate(0deg)) scale(1)"
|
|
35
37
|
}
|
|
36
38
|
},
|
|
37
39
|
'@keyframes moveTop': {
|
|
38
40
|
'0%': {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
transformOrigin: 'center bottom',
|
|
42
|
+
transform: "var(--soui-popup-transform, rotate(0deg)) scale(0.5)"
|
|
41
43
|
},
|
|
42
44
|
'100%': {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
transformOrigin: 'center bottom',
|
|
46
|
+
transform: "var(--soui-popup-transform, rotate(0deg)) scale(1)"
|
|
45
47
|
}
|
|
46
48
|
},
|
|
47
49
|
'@keyframes moveBottom': {
|
|
48
50
|
'0%': {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
transformOrigin: 'center top',
|
|
52
|
+
transform: "var(--soui-popup-transform, rotate(0deg)) scale(0.5)"
|
|
51
53
|
},
|
|
52
54
|
'100%': {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
transformOrigin: 'center top',
|
|
56
|
+
transform: "var(--soui-popup-transform, rotate(0deg)) scale(1)"
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
};
|
|
58
60
|
var tooltipStyle = _objectSpread(_objectSpread({
|
|
59
61
|
rootClass: {}
|
|
60
|
-
},
|
|
62
|
+
}, tooltipAnimation), {}, {
|
|
61
63
|
wrapper: {
|
|
62
64
|
display: 'none',
|
|
63
65
|
cursor: 'pointer',
|
|
@@ -217,7 +219,7 @@ var tooltipStyle = _objectSpread(_objectSpread({
|
|
|
217
219
|
position: 'absolute'
|
|
218
220
|
},
|
|
219
221
|
'&[data-soui-position^="bottom"]': {
|
|
220
|
-
animation: '$fadeIn
|
|
222
|
+
animation: '$fadeIn 200ms ease, $moveBottom 200ms cubic-bezier(0.22, 0.61, 0.36, 1)',
|
|
221
223
|
'&::after': {
|
|
222
224
|
width: '100%',
|
|
223
225
|
height: arrowGap,
|
|
@@ -226,7 +228,7 @@ var tooltipStyle = _objectSpread(_objectSpread({
|
|
|
226
228
|
}
|
|
227
229
|
},
|
|
228
230
|
'&[data-soui-position^="top"]': {
|
|
229
|
-
animation: '$fadeIn
|
|
231
|
+
animation: '$fadeIn 200ms ease, $moveTop 200ms cubic-bezier(0.22, 0.61, 0.36, 1);',
|
|
230
232
|
'&::after': {
|
|
231
233
|
width: '100%',
|
|
232
234
|
height: arrowGap,
|
|
@@ -235,7 +237,7 @@ var tooltipStyle = _objectSpread(_objectSpread({
|
|
|
235
237
|
}
|
|
236
238
|
},
|
|
237
239
|
'&[data-soui-position^="left"]': {
|
|
238
|
-
animation: '$fadeIn
|
|
240
|
+
animation: '$fadeIn 200ms ease, $moveLeft 200ms cubic-bezier(0.22, 0.61, 0.36, 1);',
|
|
239
241
|
'&::after': {
|
|
240
242
|
width: arrowGap,
|
|
241
243
|
height: '100%',
|
|
@@ -245,7 +247,7 @@ var tooltipStyle = _objectSpread(_objectSpread({
|
|
|
245
247
|
}
|
|
246
248
|
},
|
|
247
249
|
'&[data-soui-position^="right"]': {
|
|
248
|
-
animation: '$fadeIn
|
|
250
|
+
animation: '$fadeIn 200ms ease, $moveRight 200ms cubic-bezier(0.22, 0.61, 0.36, 1);',
|
|
249
251
|
'&::after': {
|
|
250
252
|
width: arrowGap,
|
|
251
253
|
height: '100%',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAuD1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA2flD,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -51,12 +51,6 @@ var inputBorder = border('wrapper', inputBorderToken);
|
|
|
51
51
|
var wrapper = inputBorder.wrapper,
|
|
52
52
|
wrapperDisabled = inputBorder.wrapperDisabled,
|
|
53
53
|
resetWrapper = _objectWithoutProperties(inputBorder, ["wrapper", "wrapperDisabled"]);
|
|
54
|
-
var selectTagHeightCssvar = "--select-tag-height";
|
|
55
|
-
var selectSmallTagHeightCssvar = "--select-small-tag-height";
|
|
56
|
-
var selectLargeTagHeightCssvar = "--select-large-tag-height";
|
|
57
|
-
var selectTagHeight = "var(".concat(selectTagHeightCssvar, ")");
|
|
58
|
-
var selectSmallTagHeight = "var(".concat(selectSmallTagHeightCssvar, ")");
|
|
59
|
-
var selectLargeTagHeight = "var(".concat(selectLargeTagHeightCssvar, ")");
|
|
60
54
|
var treeSelectStyle = _objectSpread(_objectSpread({
|
|
61
55
|
rootClass: {},
|
|
62
56
|
wrapper: _objectSpread(_objectSpread({
|
|
@@ -65,96 +59,88 @@ var treeSelectStyle = _objectSpread(_objectSpread({
|
|
|
65
59
|
width: '100%',
|
|
66
60
|
outline: 'none',
|
|
67
61
|
cursor: 'pointer'
|
|
68
|
-
}, wrapper), {},
|
|
69
|
-
'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
}, wrapper), {}, {
|
|
63
|
+
'&$wrapperInnerTitle': {
|
|
64
|
+
'& $placeholder,$ellipsis,$space,input': {
|
|
65
|
+
marginTop: 0,
|
|
66
|
+
marginBottom: 0
|
|
67
|
+
},
|
|
68
|
+
'& $tag': {
|
|
69
|
+
marginTop: 0,
|
|
70
|
+
paddingTop: 0,
|
|
71
|
+
paddingBottom: 0,
|
|
72
|
+
height: token.lineHeightDynamic,
|
|
73
|
+
border: 'none',
|
|
74
|
+
'& *': {
|
|
75
|
+
lineHeight: token.lineHeightDynamic
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
'&$wrapperSmall $tag': {
|
|
79
|
+
height: 18,
|
|
80
|
+
marginBottom: 2,
|
|
81
|
+
'&$tag *': {
|
|
82
|
+
lineHeight: '18px'
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
85
|
},
|
|
84
|
-
'&$wrapperSmall
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
'&$wrapperSmall': {
|
|
87
|
+
'& $tag': {
|
|
88
|
+
height: 18,
|
|
89
|
+
lineHeight: '16px',
|
|
90
|
+
marginTop: 1,
|
|
91
|
+
marginBottom: 1
|
|
92
|
+
},
|
|
93
|
+
'& $placeholder,$ellipsis,$space,input': {
|
|
94
|
+
marginTop: 0,
|
|
95
|
+
marginBottom: 0
|
|
96
|
+
},
|
|
97
|
+
'& $optionInner': {
|
|
98
|
+
paddingTop: token.treeSelectSmallOptionInnerPaddingY,
|
|
99
|
+
paddingBottom: token.treeSelectSmallOptionInnerPaddingY,
|
|
100
|
+
paddingLeft: token.treeSelectSmallOptionInnerPaddingX,
|
|
101
|
+
// padding: `${token.treeSelectSmallOptionInnerPaddingY} ${token.treeSelectSmallOptionInnerPaddingX}`,
|
|
102
|
+
fontSize: token.treeSelectSmallFontSize
|
|
103
|
+
},
|
|
104
|
+
'& $clearIcon': {
|
|
105
|
+
right: token.treeSelectSmallPaddingX
|
|
89
106
|
}
|
|
90
107
|
},
|
|
91
|
-
'&$wrapperLarge
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
108
|
+
'&$wrapperLarge': {
|
|
109
|
+
'& $placeholder,$ellipsis,$space,input': {
|
|
110
|
+
marginTop: token.treeSelectLargePlaceholderMarginY,
|
|
111
|
+
marginBottom: token.treeSelectLargePlaceholderMarginY
|
|
112
|
+
},
|
|
113
|
+
'& $optionInner': {
|
|
114
|
+
// padding: `${token.treeSelectLargeOptionInnerPaddingY} ${token.treeSelectLargeOptionInnerPaddingX}`,
|
|
115
|
+
paddingTop: token.treeSelectLargeOptionInnerPaddingY,
|
|
116
|
+
paddingBottom: token.treeSelectLargeOptionInnerPaddingY,
|
|
117
|
+
paddingLeft: token.treeSelectLargeOptionInnerPaddingX,
|
|
118
|
+
fontSize: token.treeSelectLargeFontSize
|
|
119
|
+
},
|
|
120
|
+
'& $arrowIcon': {
|
|
121
|
+
width: token.treeSelectLargeFontSize
|
|
122
|
+
},
|
|
123
|
+
'& $clearIcon': {
|
|
124
|
+
right: token.treeSelectLargePaddingX
|
|
96
125
|
}
|
|
97
|
-
}
|
|
98
|
-
}), '&$wrapperSmall', {
|
|
99
|
-
'& $tag': {
|
|
100
|
-
height: selectSmallTagHeight,
|
|
101
|
-
lineHeight: '16px',
|
|
102
|
-
marginTop: 1,
|
|
103
|
-
marginBottom: 1
|
|
104
|
-
},
|
|
105
|
-
'& $placeholder,$ellipsis,$space,input': {
|
|
106
|
-
marginTop: 0,
|
|
107
|
-
marginBottom: 0
|
|
108
126
|
},
|
|
109
|
-
'
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
}), '&$wrapperLarge', {
|
|
120
|
-
'& $tag': {
|
|
121
|
-
height: selectLargeTagHeight,
|
|
122
|
-
'& *': {
|
|
123
|
-
lineHeight: selectLargeTagHeight
|
|
127
|
+
'&:hover': {
|
|
128
|
+
cursor: 'pointer',
|
|
129
|
+
'&$clearable:not($wrapperEmpty)': {
|
|
130
|
+
'& $clearIcon': {
|
|
131
|
+
display: 'block'
|
|
132
|
+
},
|
|
133
|
+
'& $arrowIcon': {
|
|
134
|
+
display: 'none'
|
|
135
|
+
}
|
|
124
136
|
}
|
|
125
137
|
},
|
|
126
|
-
'
|
|
127
|
-
marginTop: token.treeSelectLargePlaceholderMarginY,
|
|
128
|
-
marginBottom: token.treeSelectLargePlaceholderMarginY
|
|
129
|
-
},
|
|
130
|
-
'& $optionInner': {
|
|
131
|
-
// padding: `${token.treeSelectLargeOptionInnerPaddingY} ${token.treeSelectLargeOptionInnerPaddingX}`,
|
|
132
|
-
paddingTop: token.treeSelectLargeOptionInnerPaddingY,
|
|
133
|
-
paddingBottom: token.treeSelectLargeOptionInnerPaddingY,
|
|
134
|
-
paddingLeft: token.treeSelectLargeOptionInnerPaddingX,
|
|
135
|
-
fontSize: token.treeSelectLargeFontSize
|
|
136
|
-
},
|
|
137
|
-
'& $arrowIcon': {
|
|
138
|
-
width: token.treeSelectLargeFontSize
|
|
139
|
-
},
|
|
140
|
-
'& $clearIcon': {
|
|
141
|
-
right: token.treeSelectLargePaddingX
|
|
142
|
-
}
|
|
143
|
-
}), '&:hover', {
|
|
144
|
-
cursor: 'pointer',
|
|
145
|
-
'&$clearable:not($wrapperEmpty)': {
|
|
138
|
+
'&:not($wrapperEmpty):not($wrapperOpen)': {
|
|
146
139
|
'& $clearIcon': {
|
|
147
|
-
display: 'block'
|
|
148
|
-
},
|
|
149
|
-
'& $arrowIcon': {
|
|
150
140
|
display: 'none'
|
|
151
141
|
}
|
|
152
142
|
}
|
|
153
|
-
}),
|
|
154
|
-
'& $clearIcon': {
|
|
155
|
-
display: 'none'
|
|
156
|
-
}
|
|
157
|
-
})),
|
|
143
|
+
}),
|
|
158
144
|
treeWrapper: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, getTokenName('treeFontColor'), token.treeSelectOptionFontColor), getTokenName('treeContentHoverFontColor'), token.treeSelectContentHoverFontColor), getTokenName('treeContentHoverBackgroundColor'), token.treeSelectContentHoverBackgroundColor), getTokenName('treeContentActiveBackgroundColor'), token.treeSelectContentActiveBackgroundColor), getTokenName('treeContentActiveFontColor'), token.treeSelectContentActiveFontColor), getTokenName('treeContentDisabledFontColor'), token.treeSelectContentDisabledFontColor), getTokenName('treeContentDisabledBackgroundColor'), token.treeSelectContentDisabledBackgroundColor),
|
|
159
145
|
wrapperEmpty: {},
|
|
160
146
|
wrapperOpen: {},
|
|
@@ -263,9 +249,6 @@ var treeSelectStyle = _objectSpread(_objectSpread({
|
|
|
263
249
|
},
|
|
264
250
|
compressedWrapper: {
|
|
265
251
|
width: 0,
|
|
266
|
-
overflow: 'hidden'
|
|
267
|
-
},
|
|
268
|
-
compressedBoundWrapper: {
|
|
269
252
|
overflow: 'auto'
|
|
270
253
|
},
|
|
271
254
|
controlMouse: {
|
|
@@ -493,9 +476,6 @@ var treeSelectStyle = _objectSpread(_objectSpread({
|
|
|
493
476
|
color: token.treeSelectOptionDisabledColor,
|
|
494
477
|
backgroundColor: token.treeSelectOptionDisabledBackgroundColor
|
|
495
478
|
},
|
|
496
|
-
'&&:not([data-active="true"]) > [data-role="text"]': {
|
|
497
|
-
backgroundColor: token.treeSelectContentDisabledBackgroundColor
|
|
498
|
-
},
|
|
499
479
|
'&&:not([data-active="true"]) > [data-role="text"]:hover': {
|
|
500
480
|
backgroundColor: token.treeSelectContentDisabledHoverBackgroundColor
|
|
501
481
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["upload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["upload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAElD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAgZ1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/esm/upload/upload.js
CHANGED
|
@@ -61,11 +61,7 @@ var uploadStyle = {
|
|
|
61
61
|
border: "1px dashed ".concat(token.uploadImageHandlerBorderColor),
|
|
62
62
|
backgroundColor: token.uploadImageHandlerBackgroundColor,
|
|
63
63
|
color: token.uploadImageHandlerFontColor,
|
|
64
|
-
'&:hover, &:hover': {
|
|
65
|
-
borderColor: token.uploadImageHandlerHoverBorderColor,
|
|
66
|
-
color: token.uploadImageHandlerHoverFontColor
|
|
67
|
-
},
|
|
68
|
-
'&:hover, &:hover svg': {
|
|
64
|
+
'&:hover, &:hover *': {
|
|
69
65
|
borderColor: token.uploadImageHandlerHoverBorderColor,
|
|
70
66
|
color: token.uploadImageHandlerHoverFontColor
|
|
71
67
|
},
|
|
@@ -186,7 +182,7 @@ var uploadStyle = {
|
|
|
186
182
|
borderColor: token.uploadImageHandlerHoverBorderColor,
|
|
187
183
|
color: token.uploadImageHandlerHoverFontColor
|
|
188
184
|
},
|
|
189
|
-
'$wrapper:not($wrapperDisabled) &:hover
|
|
185
|
+
'$wrapper:not($wrapperDisabled) &:hover *': {
|
|
190
186
|
color: "".concat(token.uploadImageHandlerHoverFontColor, " !important")
|
|
191
187
|
},
|
|
192
188
|
'$wrapper:not($wrapperDisabled) &:active, $wrapper:not($wrapperDisabled) &:active *': {
|
package/esm/version.d.ts
CHANGED
package/esm/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";AAAA,wBAA8B"}
|
package/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '3.
|
|
1
|
+
export default '3.8.0-beta.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/shineout-style",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"jss": "10.9.2",
|
|
19
19
|
"react-jss": "10.9.2",
|
|
20
|
-
"@sheinx/theme": "3.
|
|
21
|
-
"@sheinx/base": "3.
|
|
20
|
+
"@sheinx/theme": "3.8.0-beta.2",
|
|
21
|
+
"@sheinx/base": "3.8.0-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"core-js": ">=3"
|