@sheinx/shineout-style 3.9.9-beta.5 → 3.9.9-beta.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.
Files changed (47) hide show
  1. package/cjs/button/button.d.ts.map +1 -1
  2. package/cjs/button/button.js +34 -3
  3. package/cjs/checkbox/checkbox.d.ts.map +1 -1
  4. package/cjs/checkbox/checkbox.js +3 -2
  5. package/cjs/collapse/collapse-item.d.ts.map +1 -1
  6. package/cjs/collapse/collapse-item.js +6 -7
  7. package/cjs/popover/popover.d.ts.map +1 -1
  8. package/cjs/popover/popover.js +101 -61
  9. package/cjs/radio/radio.d.ts.map +1 -1
  10. package/cjs/radio/radio.js +2 -1
  11. package/cjs/select/select.d.ts.map +1 -1
  12. package/cjs/select/select.js +7 -2
  13. package/cjs/slider/slider.d.ts.map +1 -1
  14. package/cjs/slider/slider.js +6 -4
  15. package/cjs/textarea/textarea.d.ts.map +1 -1
  16. package/cjs/textarea/textarea.js +4 -0
  17. package/cjs/tooltip/tooltip.d.ts +1 -0
  18. package/cjs/tooltip/tooltip.d.ts.map +1 -1
  19. package/cjs/tooltip/tooltip.js +3 -2
  20. package/cjs/upload/upload.d.ts.map +1 -1
  21. package/cjs/upload/upload.js +2 -5
  22. package/cjs/version.d.ts +1 -1
  23. package/cjs/version.js +1 -1
  24. package/esm/button/button.d.ts.map +1 -1
  25. package/esm/button/button.js +34 -3
  26. package/esm/checkbox/checkbox.d.ts.map +1 -1
  27. package/esm/checkbox/checkbox.js +3 -2
  28. package/esm/collapse/collapse-item.d.ts.map +1 -1
  29. package/esm/collapse/collapse-item.js +6 -7
  30. package/esm/popover/popover.d.ts.map +1 -1
  31. package/esm/popover/popover.js +102 -62
  32. package/esm/radio/radio.d.ts.map +1 -1
  33. package/esm/radio/radio.js +2 -1
  34. package/esm/select/select.d.ts.map +1 -1
  35. package/esm/select/select.js +7 -2
  36. package/esm/slider/slider.d.ts.map +1 -1
  37. package/esm/slider/slider.js +6 -4
  38. package/esm/textarea/textarea.d.ts.map +1 -1
  39. package/esm/textarea/textarea.js +4 -0
  40. package/esm/tooltip/tooltip.d.ts +1 -0
  41. package/esm/tooltip/tooltip.d.ts.map +1 -1
  42. package/esm/tooltip/tooltip.js +2 -1
  43. package/esm/upload/upload.d.ts.map +1 -1
  44. package/esm/upload/upload.js +2 -5
  45. package/esm/version.d.ts +1 -1
  46. package/esm/version.js +1 -1
  47. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAmL7C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CAoZ9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiN7C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CAqZ9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -58,7 +58,37 @@ var beforeLine = function beforeLine() {
58
58
  '&[dir=rtl]::before': {
59
59
  right: -1
60
60
  },
61
- '&:not($disabled):hover': {
61
+ '&$dashed:hover': {
62
+ '&::before': {
63
+ height: '100%',
64
+ top: 0,
65
+ bottom: 0,
66
+ borderLeft: '1px dashed currentColor',
67
+ background: 'none'
68
+ },
69
+ // 使用 ::after 在右侧创建分割线,颜色使用当前按钮的 currentColor
70
+ '&:not(:last-child)::after': {
71
+ content: '" "',
72
+ position: 'absolute',
73
+ height: '100%',
74
+ top: 0,
75
+ width: 1,
76
+ borderLeft: '1px dashed currentColor',
77
+ background: 'none',
78
+ zIndex: 1
79
+ },
80
+ '&:not(:last-child)[dir=ltr]::after': {
81
+ right: -1
82
+ },
83
+ '&:not(:last-child)[dir=rtl]::after': {
84
+ left: -1
85
+ },
86
+ // 隐藏相邻按钮的左侧分割线,因为已经被 ::after 覆盖了
87
+ '& + $button::before': {
88
+ opacity: 0
89
+ }
90
+ },
91
+ '&:not($disabled):not($dashed):hover': {
62
92
  '&::before': {
63
93
  background: 'transparent'
64
94
  },
@@ -411,7 +441,7 @@ var ButtonStyle = {
411
441
  borderRight: 'none'
412
442
  },
413
443
  // 填充型 button
414
- '& $button:not($outline):not($dashed):not($text)': {
444
+ '& $button:not($outline):not($text)': {
415
445
  position: 'relative',
416
446
  '&::before': {
417
447
  transition: 'all 0.3s'
@@ -424,7 +454,8 @@ var ButtonStyle = {
424
454
  height: 'calc(50% - 2px)',
425
455
  top: 'calc(25% + 1px)',
426
456
  width: 1,
427
- background: _theme.default.buttonSplitlineOutlineBackgroundColor
457
+ background: _theme.default.buttonSplitlineOutlineBackgroundColor,
458
+ transition: 'none'
428
459
  },
429
460
  '&[dir=ltr]::before': {
430
461
  left: -1
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CA+IlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CAgJlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -18,7 +18,7 @@ var checkboxStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
18
18
  wrapper: {
19
19
  display: 'inline-flex',
20
20
  position: 'relative',
21
- alignItems: 'center',
21
+ alignItems: 'flex-start',
22
22
  cursor: 'pointer',
23
23
  boxSizing: 'border-box',
24
24
  marginRight: _theme.default.checkboxGap,
@@ -41,6 +41,7 @@ var checkboxStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
41
41
  boxSizing: 'border-box',
42
42
  width: _theme.default.checkboxIconSize,
43
43
  height: _theme.default.checkboxIconSize,
44
+ marginTop: 4,
44
45
  flexShrink: 0,
45
46
  '$wrapperSmall &': {
46
47
  width: _theme.default.checkboxSmallIconSize,
@@ -76,7 +77,7 @@ var checkboxStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
76
77
  }
77
78
  },
78
79
  darkIndicatorWrapper: {
79
- '$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled) &:hover': {
80
+ '$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled):hover &&': {
80
81
  '&::before': {
81
82
  background: _theme.default.checkboxIconCircleDark
82
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"collapse-item.d.ts","sourceRoot":"","sources":["collapse-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG,MAAM,mBAAmB,CAAC;AAE9D,QAAA,MAAM,iBAAiB,EAAE,QAAQ,CAAC,qBAAqB,CA6ItD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"collapse-item.d.ts","sourceRoot":"","sources":["collapse-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG,MAAM,mBAAmB,CAAC;AAE9D,QAAA,MAAM,iBAAiB,EAAE,QAAQ,CAAC,qBAAqB,CA4ItD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -77,14 +77,13 @@ var collapseItemStyle = {
77
77
  '&:after': {
78
78
  content: '""',
79
79
  position: 'absolute',
80
- top: -4,
81
- right: 0,
82
- bottom: 0,
83
- left: -4,
84
- width: 22,
85
- height: 22,
80
+ top: '50%',
81
+ left: '50%',
82
+ width: _theme.default.lineHeightDynamic,
83
+ height: _theme.default.lineHeightDynamic,
86
84
  borderRadius: '50%',
87
- background: _theme.default.collapseIconHoverBackgroundColor
85
+ background: _theme.default.collapseIconHoverBackgroundColor,
86
+ transform: 'translate(-50%, -50%)'
88
87
  }
89
88
  },
90
89
  '&:active:hover': {
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAUpD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CA+N5C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAapD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CAoR5C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -13,6 +13,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
13
  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; }
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
15
  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); }
16
+ var arrowGap = 12;
17
+ var arrowHeight = 8;
16
18
  var cssvar = '--popover-arrow-gap';
17
19
  var hideArrowGap = "var(".concat(cssvar, ", 10px)");
18
20
  var extraArrowGap = 'var(--popover-arrow-gap-extra, 0px)';
@@ -30,32 +32,30 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
30
32
  border: "1px solid ".concat(_theme.default.popoverBorderColor),
31
33
  wordWrap: 'break-word',
32
34
  '& > $arrow': {
33
- 'z-index': 1,
35
+ zIndex: 1,
34
36
  position: 'absolute',
35
- content: '" "',
36
- display: 'block',
37
- border: "inherit",
38
- width: '8.4px',
39
- height: '8.4px',
40
- boxSizing: 'content-box',
41
- background: 'inherit',
42
- borderBottom: 'none',
43
- '&[dir=ltr]': {
44
- borderLeftColor: 'transparent'
45
- },
46
- '&[dir=rtl]': {
47
- borderRight: 'transparent'
37
+ overflow: 'visible',
38
+ width: arrowHeight * 2,
39
+ height: arrowHeight,
40
+ pointerEvents: 'none',
41
+ transformOrigin: 'center center',
42
+ filter: "drop-shadow(0 1px 0 ".concat(_theme.default.popoverBorderColor, ") drop-shadow(0 -1px 0 ").concat(_theme.default.popoverBorderColor, ") drop-shadow(1px 0 0 ").concat(_theme.default.popoverBorderColor, ") drop-shadow(-1px 0 0 ").concat(_theme.default.popoverBorderColor, ")"),
43
+ '&::before': {
44
+ display: 'block',
45
+ content: '""',
46
+ bottom: 0,
47
+ width: '100%',
48
+ height: '100%',
49
+ backgroundColor: _theme.default.popoverBackgroundColor,
50
+ clipPath: "path('".concat(_tooltip.arrowClipPath, "')")
48
51
  }
49
52
  },
50
53
  '&$hideArrow': _defineProperty({}, cssvar, '4px'),
51
54
  '&[data-soui-position^="bottom"]': {
52
- marginTop: "calc(".concat(hideArrowGap, " - 2px)"),
55
+ marginTop: arrowGap - 2,
53
56
  '& > $arrow': {
54
- top: '0',
55
- transform: 'translate(0, -50%) rotate(-45deg)',
56
- left: '0',
57
- right: '0',
58
- margin: 'auto'
57
+ left: '50%',
58
+ transform: 'translate(-50%, calc(-100% + 1px)) rotate(0deg)'
59
59
  },
60
60
  '&::after': {
61
61
  top: poyfillPos,
@@ -68,40 +68,34 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
68
68
  }
69
69
  },
70
70
  '&[data-soui-position^="top"]': {
71
- // marginTop: (arrowGap - 2) * -1,
72
- marginTop: "calc((".concat(hideArrowGap, " - 2px) * -1)"),
71
+ marginTop: (arrowGap - 2) * -1,
73
72
  '& > $arrow': {
74
- bottom: '0',
75
- transform: 'translate(0, 50%) rotate(135deg)',
76
- left: '0',
77
- right: '0',
78
- margin: 'auto'
73
+ top: '100%',
74
+ left: '50%',
75
+ transform: 'translate(-50%, -1px) rotate(-180deg)'
79
76
  },
80
77
  '&::after': {
81
- // bottom: arrowGap * -1,
82
78
  bottom: poyfillPos,
83
79
  left: '0',
84
80
  right: '0',
85
81
  content: '" "',
86
82
  display: 'block',
87
- // height: arrowGap,
88
83
  height: poyfillHeight,
89
84
  position: 'absolute'
90
85
  }
91
86
  },
92
87
  '&[data-soui-position^="left"]': {
93
88
  '&[dir=ltr]': {
94
- marginRight: "calc((".concat(hideArrowGap, " - 2px))")
89
+ marginRight: arrowGap - 2
95
90
  },
96
91
  '&[dir=rtl]': {
97
- marginLeft: "calc((".concat(hideArrowGap, " - 2px))")
92
+ marginLeft: arrowGap - 2
98
93
  },
99
94
  '& > $arrow': {
100
- right: _theme.default.popoverBorderWidth,
101
- transform: 'translate(50%, 0) rotate(45deg)',
102
- top: '0',
103
- bottom: '0',
104
- margin: 'auto'
95
+ right: 0,
96
+ top: '50%',
97
+ transform: 'translate(11px, -50%) rotate(90deg)',
98
+ transformOrigin: 'center center'
105
99
  },
106
100
  '&::after': {
107
101
  right: poyfillPos,
@@ -115,67 +109,113 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
115
109
  },
116
110
  '&[data-soui-position^="right"]': {
117
111
  '&[dir=ltr]': {
118
- marginLeft: "calc(".concat(hideArrowGap, " - 2px)")
112
+ marginLeft: arrowGap - 2
119
113
  },
120
114
  '&[dir=rtl]': {
121
- marginRight: "calc(".concat(hideArrowGap, " - 2px)")
115
+ marginRight: arrowGap - 2
122
116
  },
123
117
  '& > $arrow': {
124
- left: '0',
125
- transform: 'translate(-50%, 0) rotate(-135deg)',
126
- top: '0',
127
- bottom: '0',
128
- margin: 'auto'
118
+ top: '50%',
119
+ left: 0,
120
+ transform: 'translate(-11px, -50%) rotate(-90deg)'
129
121
  },
130
122
  '&::after': {
131
- // left: arrowGap * -1,
132
123
  left: poyfillPos,
133
124
  top: '0',
134
125
  bottom: '0',
135
126
  content: '" "',
136
127
  display: 'block',
137
- // width: arrowGap,
138
128
  width: poyfillHeight,
139
129
  position: 'absolute'
140
130
  }
141
131
  },
142
- '&&[data-soui-position$="-left"] > $arrow': {
143
- left: arrowMargin,
144
- right: 'auto'
132
+ '&&[data-soui-position="bottom-left"] > $arrow': {
133
+ left: 8,
134
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
135
+ },
136
+ '&&[data-soui-position="bottom-right"] > $arrow': {
137
+ right: 8,
138
+ left: 'auto',
139
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
140
+ },
141
+ '&&[data-soui-position="top-left"] > $arrow': {
142
+ left: 8,
143
+ transform: 'translate(0, -1px) rotate(-180deg)'
145
144
  },
146
- '&&[data-soui-position$="-right"] > $arrow': {
147
- right: arrowMargin,
148
- left: 'auto'
145
+ '&&[data-soui-position="top-right"] > $arrow': {
146
+ right: 8,
147
+ left: 'auto',
148
+ transform: 'translate(0, -1px) rotate(-180deg)'
149
149
  },
150
- '&&[data-soui-position$="-top"] > $arrow': {
151
- top: arrowMargin,
152
- bottom: 'auto'
150
+ '&&[data-soui-position="left-top"] > $arrow': {
151
+ top: 8,
152
+ transform: 'translate(11px, 0) rotate(90deg)'
153
153
  },
154
- '&&[data-soui-position$="-bottom"] > $arrow': {
155
- bottom: arrowMargin,
156
- top: 'auto'
154
+ '&&[data-soui-position="left-bottom"] > $arrow': {
155
+ bottom: 8,
156
+ top: 'auto',
157
+ transform: 'translate(11px, 0) rotate(90deg)'
158
+ },
159
+ '&&[data-soui-position="right-top"] > $arrow': {
160
+ top: 8,
161
+ transform: 'translate(-11px, 0) rotate(-90deg)'
162
+ },
163
+ '&&[data-soui-position="right-bottom"] > $arrow': {
164
+ bottom: 8,
165
+ top: 'auto',
166
+ transform: 'translate(-11px, 0) rotate(-90deg)'
157
167
  },
158
168
  '&[data-soui-type="danger"]': {
159
169
  borderColor: _theme.default.popoverDangerBorderColor,
160
- backgroundColor: _theme.default.popoverDangerBackgroundColor
170
+ backgroundColor: _theme.default.popoverDangerBackgroundColor,
171
+ '& > $arrow': {
172
+ filter: "drop-shadow(0 1px 0 ".concat(_theme.default.popoverDangerBorderColor, ") drop-shadow(0 -1px 0 ").concat(_theme.default.popoverDangerBorderColor, ") drop-shadow(1px 0 0 ").concat(_theme.default.popoverDangerBorderColor, ") drop-shadow(-1px 0 0 ").concat(_theme.default.popoverDangerBorderColor, ")")
173
+ },
174
+ '& > $arrow::before': {
175
+ backgroundColor: _theme.default.popoverDangerBackgroundColor
176
+ }
161
177
  },
162
178
  '&[data-soui-type="info"]': {
163
179
  borderColor: _theme.default.popoverInfoBorderColor,
164
- backgroundColor: _theme.default.popoverInfoBackgroundColor
180
+ backgroundColor: _theme.default.popoverInfoBackgroundColor,
181
+ '& > $arrow': {
182
+ filter: "drop-shadow(0 1px 0 ".concat(_theme.default.popoverInfoBorderColor, ") drop-shadow(0 -1px 0 ").concat(_theme.default.popoverInfoBorderColor, ") drop-shadow(1px 0 0 ").concat(_theme.default.popoverInfoBorderColor, ") drop-shadow(-1px 0 0 ").concat(_theme.default.popoverInfoBorderColor, ")")
183
+ },
184
+ '& > $arrow::before': {
185
+ backgroundColor: _theme.default.popoverInfoBackgroundColor
186
+ }
165
187
  },
166
188
  '&[data-soui-type="warning"]': {
167
189
  borderColor: _theme.default.popoverWarningBorderColor,
168
- backgroundColor: _theme.default.popoverWarningBackgroundColor
190
+ backgroundColor: _theme.default.popoverWarningBackgroundColor,
191
+ '& > $arrow': {
192
+ filter: "drop-shadow(0 1px 0 ".concat(_theme.default.popoverWarningBorderColor, ") drop-shadow(0 -1px 0 ").concat(_theme.default.popoverWarningBorderColor, ") drop-shadow(1px 0 0 ").concat(_theme.default.popoverWarningBorderColor, ") drop-shadow(-1px 0 0 ").concat(_theme.default.popoverWarningBorderColor, ")")
193
+ },
194
+ '& > $arrow::before': {
195
+ backgroundColor: _theme.default.popoverWarningBackgroundColor
196
+ }
169
197
  },
170
198
  '&[data-soui-type="success"]': {
171
199
  borderColor: _theme.default.popoverSuccessBorderColor,
172
- backgroundColor: _theme.default.popoverSuccessBackgroundColor
200
+ backgroundColor: _theme.default.popoverSuccessBackgroundColor,
201
+ '& > $arrow': {
202
+ filter: "drop-shadow(0 1px 0 ".concat(_theme.default.popoverSuccessBorderColor, ") drop-shadow(0 -1px 0 ").concat(_theme.default.popoverSuccessBorderColor, ") drop-shadow(1px 0 0 ").concat(_theme.default.popoverSuccessBorderColor, ") drop-shadow(-1px 0 0 ").concat(_theme.default.popoverSuccessBorderColor, ")")
203
+ },
204
+ '& > $arrow::before': {
205
+ backgroundColor: _theme.default.popoverSuccessBackgroundColor
206
+ }
173
207
  },
174
208
  '&[data-soui-type="error"]': {
175
209
  borderColor: _theme.default.popoverErrorBorderColor,
176
210
  backgroundColor: _theme.default.popoverErrorBackgroundColor,
177
211
  '& $content': {
178
212
  color: _theme.default.popoverErrorFontColor
213
+ },
214
+ '& > $arrow': {
215
+ filter: "drop-shadow(0 1px 0 ".concat(_theme.default.popoverErrorBorderColor, ") drop-shadow(0 -1px 0 ").concat(_theme.default.popoverErrorBorderColor, ") drop-shadow(1px 0 0 ").concat(_theme.default.popoverErrorBorderColor, ") drop-shadow(-1px 0 0 ").concat(_theme.default.popoverErrorBorderColor, ")")
216
+ },
217
+ '& > $arrow::before': {
218
+ backgroundColor: _theme.default.popoverErrorBackgroundColor
179
219
  }
180
220
  }
181
221
  },
@@ -1 +1 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CA4K5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CA6K5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -18,7 +18,7 @@ var radioStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
18
18
  wrapper: {
19
19
  display: 'inline-flex',
20
20
  position: 'relative',
21
- alignItems: 'center',
21
+ alignItems: 'flex-start',
22
22
  cursor: 'pointer',
23
23
  boxSizing: 'border-box',
24
24
  marginRight: _theme.default.radioGap,
@@ -56,6 +56,7 @@ var radioStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
56
56
  width: _theme.default.radioIconWidth,
57
57
  minWidth: _theme.default.radioIconWidth,
58
58
  height: _theme.default.radioIconWidth,
59
+ marginTop: 4,
59
60
  '$wrapperSmall &': {
60
61
  width: _theme.default.radioSmallIconWidth,
61
62
  minWidth: _theme.default.radioSmallIconWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAuDlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAgjB1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAuDlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAqjB1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -551,6 +551,7 @@ var selectStyle = _objectSpread(_objectSpread({
551
551
  padding: "".concat(_theme.default.selectHeaderPaddingY, " ").concat(_theme.default.selectHeaderPaddingX),
552
552
  borderBottom: "1px solid ".concat(_theme.default.selectHeaderBorderColor),
553
553
  '& $columnsCheckbox': {
554
+ padding: 0,
554
555
  marginRight: 0,
555
556
  marginLeft: 4,
556
557
  width: 'auto'
@@ -573,8 +574,6 @@ var selectStyle = _objectSpread(_objectSpread({
573
574
  }
574
575
  },
575
576
  columnsOption: {
576
- paddingLeft: _theme.default.selectColumnPadding,
577
- paddingRight: _theme.default.selectColumnPadding,
578
577
  lineHeight: 1,
579
578
  boxSizing: 'border-box',
580
579
  overflow: 'hidden',
@@ -595,6 +594,9 @@ var selectStyle = _objectSpread(_objectSpread({
595
594
  },
596
595
  columnsRadio: {
597
596
  width: '100%',
597
+ height: '100%',
598
+ paddingLeft: _theme.default.selectColumnPadding,
599
+ paddingRight: _theme.default.selectColumnPadding,
598
600
  marginLeft: _theme.default.selectColumnOptionMargin,
599
601
  '& :last-child': {
600
602
  flex: 1,
@@ -605,6 +607,9 @@ var selectStyle = _objectSpread(_objectSpread({
605
607
  },
606
608
  columnsCheckbox: {
607
609
  width: '100%',
610
+ height: '100%',
611
+ paddingLeft: _theme.default.selectColumnPadding,
612
+ paddingRight: _theme.default.selectColumnPadding,
608
613
  // marginLeft: token.selectColumnOptionMargin,
609
614
  marginLeft: 0,
610
615
  '& :last-child': {
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["slider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAIlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAiT1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["slider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAIlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAmT1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -30,14 +30,11 @@ var sliderStyle = {
30
30
  },
31
31
  track: {
32
32
  cursor: 'pointer',
33
- borderRadius: '100px',
34
33
  height: _theme.default.sliderTrackSize,
35
34
  borderTop: "".concat(_theme.default.sliderScaleMarginY, " solid transparent"),
36
35
  borderBottom: "".concat(_theme.default.sliderScaleMarginY, " solid transparent"),
37
36
  boxSizing: 'content-box',
38
- backgroundColor: _theme.default.sliderTrackBackgroundColor,
39
37
  position: 'relative',
40
- backgroundClip: 'content-box',
41
38
  '$vertical &': {
42
39
  width: _theme.default.sliderTrackSize,
43
40
  height: '100%',
@@ -48,9 +45,14 @@ var sliderStyle = {
48
45
  cursor: 'not-allowed'
49
46
  }
50
47
  },
48
+ trackBackground: {
49
+ borderRadius: "calc(".concat(_theme.default.sliderTrackSize, " / 2)"),
50
+ height: '100%',
51
+ backgroundColor: _theme.default.sliderTrackBackgroundColor
52
+ },
51
53
  trackInner: {
52
54
  position: 'absolute',
53
- borderRadius: 'inherit',
55
+ borderRadius: "calc(".concat(_theme.default.sliderTrackSize, " / 2)"),
54
56
  top: '0',
55
57
  left: '0',
56
58
  right: '100%',
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["textarea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAyDxC,QAAA,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,eAAe,CAqI1C,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["textarea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAyDxC,QAAA,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,eAAe,CA0I1C,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -147,6 +147,10 @@ var input = _objectSpread(_objectSpread(_objectSpread({
147
147
  cursor: 'pointer',
148
148
  padding: 4,
149
149
  color: _theme.default.textareaClearColor,
150
+ opacity: 0,
151
+ '$wrapperWithClear:hover &': {
152
+ opacity: 1
153
+ },
150
154
  '$wrapperSmall &': {
151
155
  top: _theme.default.textareaSmallPaddingY
152
156
  },
@@ -130,6 +130,7 @@ export declare const tooltipAnimation: {
130
130
  };
131
131
  };
132
132
  };
133
+ export declare const arrowClipPath = "M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z";
133
134
  declare const tooltipStyle: JsStyles<keyof TooltipClasses>;
134
135
  export default tooltipStyle;
135
136
  //# 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;AAK9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiI5B,CAAC;AACF,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,cAAc,CA4OhD,CAAC;AAEF,eAAe,YAAY,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiI5B,CAAC;AAEF,eAAO,MAAM,aAAa,wMAAwM,CAAC;AAEnO,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,cAAc,CA4OhD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tooltipAnimation = exports.default = void 0;
6
+ exports.tooltipAnimation = exports.default = exports.arrowClipPath = void 0;
7
7
  var _theme = _interopRequireDefault(require("@sheinx/theme"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -144,6 +144,7 @@ var tooltipAnimation = exports.tooltipAnimation = {
144
144
  }
145
145
  }
146
146
  };
147
+ var arrowClipPath = exports.arrowClipPath = 'M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z';
147
148
  var tooltipStyle = _objectSpread(_objectSpread({
148
149
  rootClass: {}
149
150
  }, tooltipAnimation), {}, {
@@ -373,7 +374,7 @@ var tooltipStyle = _objectSpread(_objectSpread({
373
374
  width: '100%',
374
375
  height: '100%',
375
376
  backgroundColor: 'var(--tooltip-background-color)',
376
- clipPath: "path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')"
377
+ clipPath: "path('".concat(arrowClipPath, "')")
377
378
  }
378
379
  },
379
380
  content: {
@@ -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,CA4Z1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
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,CAyZ1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -123,7 +123,6 @@ var uploadStyle = {
123
123
  },
124
124
  iconHover: {
125
125
  '&:hover': {
126
- color: _theme.default.uploadResultIconHoverColor,
127
126
  borderRadius: '50%',
128
127
  backgroundColor: _theme.default.uploadResultIconHoverBackgroundColor
129
128
  }
@@ -289,11 +288,9 @@ var uploadStyle = {
289
288
  boxSizing: 'border-box',
290
289
  width: _theme.default.uploadImageResultMaskIconSize,
291
290
  height: _theme.default.uploadImageResultMaskIconSize,
292
- borderColor: _theme.default.uploadImageResultMaskIconColor,
293
- borderTopColor: 'transparent',
291
+ borderColor: "transparent ".concat(_theme.default.uploadImageResultMaskIconColor, " ").concat(_theme.default.uploadImageResultMaskIconColor, " ").concat(_theme.default.uploadImageResultMaskIconColor),
294
292
  '$resultText &': {
295
- borderColor: _theme.default.uploadResultUploadingIconColor,
296
- borderTopColor: 'transparent'
293
+ borderColor: "transparent ".concat(_theme.default.uploadResultUploadingIconColor, " ").concat(_theme.default.uploadResultUploadingIconColor, " ").concat(_theme.default.uploadResultUploadingIconColor)
297
294
  }
298
295
  },
299
296
  imageResultMaskInfo: {
package/cjs/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "3.9.9-beta.5";
1
+ declare const _default: "3.9.9-beta.7";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
package/cjs/version.js CHANGED
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '3.9.9-beta.5';
7
+ var _default = exports.default = '3.9.9-beta.7';
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAmL7C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CAoZ9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiN7C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CAqZ9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -51,7 +51,37 @@ var beforeLine = function beforeLine() {
51
51
  '&[dir=rtl]::before': {
52
52
  right: -1
53
53
  },
54
- '&:not($disabled):hover': {
54
+ '&$dashed:hover': {
55
+ '&::before': {
56
+ height: '100%',
57
+ top: 0,
58
+ bottom: 0,
59
+ borderLeft: '1px dashed currentColor',
60
+ background: 'none'
61
+ },
62
+ // 使用 ::after 在右侧创建分割线,颜色使用当前按钮的 currentColor
63
+ '&:not(:last-child)::after': {
64
+ content: '" "',
65
+ position: 'absolute',
66
+ height: '100%',
67
+ top: 0,
68
+ width: 1,
69
+ borderLeft: '1px dashed currentColor',
70
+ background: 'none',
71
+ zIndex: 1
72
+ },
73
+ '&:not(:last-child)[dir=ltr]::after': {
74
+ right: -1
75
+ },
76
+ '&:not(:last-child)[dir=rtl]::after': {
77
+ left: -1
78
+ },
79
+ // 隐藏相邻按钮的左侧分割线,因为已经被 ::after 覆盖了
80
+ '& + $button::before': {
81
+ opacity: 0
82
+ }
83
+ },
84
+ '&:not($disabled):not($dashed):hover': {
55
85
  '&::before': {
56
86
  background: 'transparent'
57
87
  },
@@ -404,7 +434,7 @@ var ButtonStyle = {
404
434
  borderRight: 'none'
405
435
  },
406
436
  // 填充型 button
407
- '& $button:not($outline):not($dashed):not($text)': {
437
+ '& $button:not($outline):not($text)': {
408
438
  position: 'relative',
409
439
  '&::before': {
410
440
  transition: 'all 0.3s'
@@ -417,7 +447,8 @@ var ButtonStyle = {
417
447
  height: 'calc(50% - 2px)',
418
448
  top: 'calc(25% + 1px)',
419
449
  width: 1,
420
- background: Token.buttonSplitlineOutlineBackgroundColor
450
+ background: Token.buttonSplitlineOutlineBackgroundColor,
451
+ transition: 'none'
421
452
  },
422
453
  '&[dir=ltr]::before': {
423
454
  left: -1
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CA+IlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CAgJlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -11,7 +11,7 @@ var checkboxStyle = _objectSpread(_objectSpread({}, animations), {}, {
11
11
  wrapper: {
12
12
  display: 'inline-flex',
13
13
  position: 'relative',
14
- alignItems: 'center',
14
+ alignItems: 'flex-start',
15
15
  cursor: 'pointer',
16
16
  boxSizing: 'border-box',
17
17
  marginRight: token.checkboxGap,
@@ -34,6 +34,7 @@ var checkboxStyle = _objectSpread(_objectSpread({}, animations), {}, {
34
34
  boxSizing: 'border-box',
35
35
  width: token.checkboxIconSize,
36
36
  height: token.checkboxIconSize,
37
+ marginTop: 4,
37
38
  flexShrink: 0,
38
39
  '$wrapperSmall &': {
39
40
  width: token.checkboxSmallIconSize,
@@ -69,7 +70,7 @@ var checkboxStyle = _objectSpread(_objectSpread({}, animations), {}, {
69
70
  }
70
71
  },
71
72
  darkIndicatorWrapper: {
72
- '$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled) &:hover': {
73
+ '$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled):hover &&': {
73
74
  '&::before': {
74
75
  background: token.checkboxIconCircleDark
75
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"collapse-item.d.ts","sourceRoot":"","sources":["collapse-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG,MAAM,mBAAmB,CAAC;AAE9D,QAAA,MAAM,iBAAiB,EAAE,QAAQ,CAAC,qBAAqB,CA6ItD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"collapse-item.d.ts","sourceRoot":"","sources":["collapse-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG,MAAM,mBAAmB,CAAC;AAE9D,QAAA,MAAM,iBAAiB,EAAE,QAAQ,CAAC,qBAAqB,CA4ItD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -70,14 +70,13 @@ var collapseItemStyle = {
70
70
  '&:after': {
71
71
  content: '""',
72
72
  position: 'absolute',
73
- top: -4,
74
- right: 0,
75
- bottom: 0,
76
- left: -4,
77
- width: 22,
78
- height: 22,
73
+ top: '50%',
74
+ left: '50%',
75
+ width: Token.lineHeightDynamic,
76
+ height: Token.lineHeightDynamic,
79
77
  borderRadius: '50%',
80
- background: Token.collapseIconHoverBackgroundColor
78
+ background: Token.collapseIconHoverBackgroundColor,
79
+ transform: 'translate(-50%, -50%)'
81
80
  }
82
81
  },
83
82
  '&:active:hover': {
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAUpD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CA+N5C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAapD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CAoR5C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -5,7 +5,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
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
7
  import token from '@sheinx/theme';
8
- import { tooltipAnimation } from "../tooltip/tooltip";
8
+ import { tooltipAnimation, arrowClipPath } from "../tooltip/tooltip";
9
+ var arrowGap = 12;
10
+ var arrowHeight = 8;
9
11
  var cssvar = '--popover-arrow-gap';
10
12
  var hideArrowGap = "var(".concat(cssvar, ", 10px)");
11
13
  var extraArrowGap = 'var(--popover-arrow-gap-extra, 0px)';
@@ -23,32 +25,30 @@ var popoverStyle = _objectSpread(_objectSpread({}, tooltipAnimation), {}, {
23
25
  border: "1px solid ".concat(token.popoverBorderColor),
24
26
  wordWrap: 'break-word',
25
27
  '& > $arrow': {
26
- 'z-index': 1,
28
+ zIndex: 1,
27
29
  position: 'absolute',
28
- content: '" "',
29
- display: 'block',
30
- border: "inherit",
31
- width: '8.4px',
32
- height: '8.4px',
33
- boxSizing: 'content-box',
34
- background: 'inherit',
35
- borderBottom: 'none',
36
- '&[dir=ltr]': {
37
- borderLeftColor: 'transparent'
38
- },
39
- '&[dir=rtl]': {
40
- borderRight: 'transparent'
30
+ overflow: 'visible',
31
+ width: arrowHeight * 2,
32
+ height: arrowHeight,
33
+ pointerEvents: 'none',
34
+ transformOrigin: 'center center',
35
+ filter: "drop-shadow(0 1px 0 ".concat(token.popoverBorderColor, ") drop-shadow(0 -1px 0 ").concat(token.popoverBorderColor, ") drop-shadow(1px 0 0 ").concat(token.popoverBorderColor, ") drop-shadow(-1px 0 0 ").concat(token.popoverBorderColor, ")"),
36
+ '&::before': {
37
+ display: 'block',
38
+ content: '""',
39
+ bottom: 0,
40
+ width: '100%',
41
+ height: '100%',
42
+ backgroundColor: token.popoverBackgroundColor,
43
+ clipPath: "path('".concat(arrowClipPath, "')")
41
44
  }
42
45
  },
43
46
  '&$hideArrow': _defineProperty({}, cssvar, '4px'),
44
47
  '&[data-soui-position^="bottom"]': {
45
- marginTop: "calc(".concat(hideArrowGap, " - 2px)"),
48
+ marginTop: arrowGap - 2,
46
49
  '& > $arrow': {
47
- top: '0',
48
- transform: 'translate(0, -50%) rotate(-45deg)',
49
- left: '0',
50
- right: '0',
51
- margin: 'auto'
50
+ left: '50%',
51
+ transform: 'translate(-50%, calc(-100% + 1px)) rotate(0deg)'
52
52
  },
53
53
  '&::after': {
54
54
  top: poyfillPos,
@@ -61,40 +61,34 @@ var popoverStyle = _objectSpread(_objectSpread({}, tooltipAnimation), {}, {
61
61
  }
62
62
  },
63
63
  '&[data-soui-position^="top"]': {
64
- // marginTop: (arrowGap - 2) * -1,
65
- marginTop: "calc((".concat(hideArrowGap, " - 2px) * -1)"),
64
+ marginTop: (arrowGap - 2) * -1,
66
65
  '& > $arrow': {
67
- bottom: '0',
68
- transform: 'translate(0, 50%) rotate(135deg)',
69
- left: '0',
70
- right: '0',
71
- margin: 'auto'
66
+ top: '100%',
67
+ left: '50%',
68
+ transform: 'translate(-50%, -1px) rotate(-180deg)'
72
69
  },
73
70
  '&::after': {
74
- // bottom: arrowGap * -1,
75
71
  bottom: poyfillPos,
76
72
  left: '0',
77
73
  right: '0',
78
74
  content: '" "',
79
75
  display: 'block',
80
- // height: arrowGap,
81
76
  height: poyfillHeight,
82
77
  position: 'absolute'
83
78
  }
84
79
  },
85
80
  '&[data-soui-position^="left"]': {
86
81
  '&[dir=ltr]': {
87
- marginRight: "calc((".concat(hideArrowGap, " - 2px))")
82
+ marginRight: arrowGap - 2
88
83
  },
89
84
  '&[dir=rtl]': {
90
- marginLeft: "calc((".concat(hideArrowGap, " - 2px))")
85
+ marginLeft: arrowGap - 2
91
86
  },
92
87
  '& > $arrow': {
93
- right: token.popoverBorderWidth,
94
- transform: 'translate(50%, 0) rotate(45deg)',
95
- top: '0',
96
- bottom: '0',
97
- margin: 'auto'
88
+ right: 0,
89
+ top: '50%',
90
+ transform: 'translate(11px, -50%) rotate(90deg)',
91
+ transformOrigin: 'center center'
98
92
  },
99
93
  '&::after': {
100
94
  right: poyfillPos,
@@ -108,67 +102,113 @@ var popoverStyle = _objectSpread(_objectSpread({}, tooltipAnimation), {}, {
108
102
  },
109
103
  '&[data-soui-position^="right"]': {
110
104
  '&[dir=ltr]': {
111
- marginLeft: "calc(".concat(hideArrowGap, " - 2px)")
105
+ marginLeft: arrowGap - 2
112
106
  },
113
107
  '&[dir=rtl]': {
114
- marginRight: "calc(".concat(hideArrowGap, " - 2px)")
108
+ marginRight: arrowGap - 2
115
109
  },
116
110
  '& > $arrow': {
117
- left: '0',
118
- transform: 'translate(-50%, 0) rotate(-135deg)',
119
- top: '0',
120
- bottom: '0',
121
- margin: 'auto'
111
+ top: '50%',
112
+ left: 0,
113
+ transform: 'translate(-11px, -50%) rotate(-90deg)'
122
114
  },
123
115
  '&::after': {
124
- // left: arrowGap * -1,
125
116
  left: poyfillPos,
126
117
  top: '0',
127
118
  bottom: '0',
128
119
  content: '" "',
129
120
  display: 'block',
130
- // width: arrowGap,
131
121
  width: poyfillHeight,
132
122
  position: 'absolute'
133
123
  }
134
124
  },
135
- '&&[data-soui-position$="-left"] > $arrow': {
136
- left: arrowMargin,
137
- right: 'auto'
125
+ '&&[data-soui-position="bottom-left"] > $arrow': {
126
+ left: 8,
127
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
128
+ },
129
+ '&&[data-soui-position="bottom-right"] > $arrow': {
130
+ right: 8,
131
+ left: 'auto',
132
+ transform: 'translate(0, calc(-100% + 1px)) rotate(0deg)'
133
+ },
134
+ '&&[data-soui-position="top-left"] > $arrow': {
135
+ left: 8,
136
+ transform: 'translate(0, -1px) rotate(-180deg)'
138
137
  },
139
- '&&[data-soui-position$="-right"] > $arrow': {
140
- right: arrowMargin,
141
- left: 'auto'
138
+ '&&[data-soui-position="top-right"] > $arrow': {
139
+ right: 8,
140
+ left: 'auto',
141
+ transform: 'translate(0, -1px) rotate(-180deg)'
142
142
  },
143
- '&&[data-soui-position$="-top"] > $arrow': {
144
- top: arrowMargin,
145
- bottom: 'auto'
143
+ '&&[data-soui-position="left-top"] > $arrow': {
144
+ top: 8,
145
+ transform: 'translate(11px, 0) rotate(90deg)'
146
146
  },
147
- '&&[data-soui-position$="-bottom"] > $arrow': {
148
- bottom: arrowMargin,
149
- top: 'auto'
147
+ '&&[data-soui-position="left-bottom"] > $arrow': {
148
+ bottom: 8,
149
+ top: 'auto',
150
+ transform: 'translate(11px, 0) rotate(90deg)'
151
+ },
152
+ '&&[data-soui-position="right-top"] > $arrow': {
153
+ top: 8,
154
+ transform: 'translate(-11px, 0) rotate(-90deg)'
155
+ },
156
+ '&&[data-soui-position="right-bottom"] > $arrow': {
157
+ bottom: 8,
158
+ top: 'auto',
159
+ transform: 'translate(-11px, 0) rotate(-90deg)'
150
160
  },
151
161
  '&[data-soui-type="danger"]': {
152
162
  borderColor: token.popoverDangerBorderColor,
153
- backgroundColor: token.popoverDangerBackgroundColor
163
+ backgroundColor: token.popoverDangerBackgroundColor,
164
+ '& > $arrow': {
165
+ filter: "drop-shadow(0 1px 0 ".concat(token.popoverDangerBorderColor, ") drop-shadow(0 -1px 0 ").concat(token.popoverDangerBorderColor, ") drop-shadow(1px 0 0 ").concat(token.popoverDangerBorderColor, ") drop-shadow(-1px 0 0 ").concat(token.popoverDangerBorderColor, ")")
166
+ },
167
+ '& > $arrow::before': {
168
+ backgroundColor: token.popoverDangerBackgroundColor
169
+ }
154
170
  },
155
171
  '&[data-soui-type="info"]': {
156
172
  borderColor: token.popoverInfoBorderColor,
157
- backgroundColor: token.popoverInfoBackgroundColor
173
+ backgroundColor: token.popoverInfoBackgroundColor,
174
+ '& > $arrow': {
175
+ filter: "drop-shadow(0 1px 0 ".concat(token.popoverInfoBorderColor, ") drop-shadow(0 -1px 0 ").concat(token.popoverInfoBorderColor, ") drop-shadow(1px 0 0 ").concat(token.popoverInfoBorderColor, ") drop-shadow(-1px 0 0 ").concat(token.popoverInfoBorderColor, ")")
176
+ },
177
+ '& > $arrow::before': {
178
+ backgroundColor: token.popoverInfoBackgroundColor
179
+ }
158
180
  },
159
181
  '&[data-soui-type="warning"]': {
160
182
  borderColor: token.popoverWarningBorderColor,
161
- backgroundColor: token.popoverWarningBackgroundColor
183
+ backgroundColor: token.popoverWarningBackgroundColor,
184
+ '& > $arrow': {
185
+ filter: "drop-shadow(0 1px 0 ".concat(token.popoverWarningBorderColor, ") drop-shadow(0 -1px 0 ").concat(token.popoverWarningBorderColor, ") drop-shadow(1px 0 0 ").concat(token.popoverWarningBorderColor, ") drop-shadow(-1px 0 0 ").concat(token.popoverWarningBorderColor, ")")
186
+ },
187
+ '& > $arrow::before': {
188
+ backgroundColor: token.popoverWarningBackgroundColor
189
+ }
162
190
  },
163
191
  '&[data-soui-type="success"]': {
164
192
  borderColor: token.popoverSuccessBorderColor,
165
- backgroundColor: token.popoverSuccessBackgroundColor
193
+ backgroundColor: token.popoverSuccessBackgroundColor,
194
+ '& > $arrow': {
195
+ filter: "drop-shadow(0 1px 0 ".concat(token.popoverSuccessBorderColor, ") drop-shadow(0 -1px 0 ").concat(token.popoverSuccessBorderColor, ") drop-shadow(1px 0 0 ").concat(token.popoverSuccessBorderColor, ") drop-shadow(-1px 0 0 ").concat(token.popoverSuccessBorderColor, ")")
196
+ },
197
+ '& > $arrow::before': {
198
+ backgroundColor: token.popoverSuccessBackgroundColor
199
+ }
166
200
  },
167
201
  '&[data-soui-type="error"]': {
168
202
  borderColor: token.popoverErrorBorderColor,
169
203
  backgroundColor: token.popoverErrorBackgroundColor,
170
204
  '& $content': {
171
205
  color: token.popoverErrorFontColor
206
+ },
207
+ '& > $arrow': {
208
+ filter: "drop-shadow(0 1px 0 ".concat(token.popoverErrorBorderColor, ") drop-shadow(0 -1px 0 ").concat(token.popoverErrorBorderColor, ") drop-shadow(1px 0 0 ").concat(token.popoverErrorBorderColor, ") drop-shadow(-1px 0 0 ").concat(token.popoverErrorBorderColor, ")")
209
+ },
210
+ '& > $arrow::before': {
211
+ backgroundColor: token.popoverErrorBackgroundColor
172
212
  }
173
213
  }
174
214
  },
@@ -1 +1 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CA4K5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CA6K5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -11,7 +11,7 @@ var radioStyle = _objectSpread(_objectSpread({}, animations), {}, {
11
11
  wrapper: {
12
12
  display: 'inline-flex',
13
13
  position: 'relative',
14
- alignItems: 'center',
14
+ alignItems: 'flex-start',
15
15
  cursor: 'pointer',
16
16
  boxSizing: 'border-box',
17
17
  marginRight: token.radioGap,
@@ -49,6 +49,7 @@ var radioStyle = _objectSpread(_objectSpread({}, animations), {}, {
49
49
  width: token.radioIconWidth,
50
50
  minWidth: token.radioIconWidth,
51
51
  height: token.radioIconWidth,
52
+ marginTop: 4,
52
53
  '$wrapperSmall &': {
53
54
  width: token.radioSmallIconWidth,
54
55
  minWidth: token.radioSmallIconWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAuDlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAgjB1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAuDlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAqjB1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -542,6 +542,7 @@ var selectStyle = _objectSpread(_objectSpread({
542
542
  padding: "".concat(token.selectHeaderPaddingY, " ").concat(token.selectHeaderPaddingX),
543
543
  borderBottom: "1px solid ".concat(token.selectHeaderBorderColor),
544
544
  '& $columnsCheckbox': {
545
+ padding: 0,
545
546
  marginRight: 0,
546
547
  marginLeft: 4,
547
548
  width: 'auto'
@@ -564,8 +565,6 @@ var selectStyle = _objectSpread(_objectSpread({
564
565
  }
565
566
  },
566
567
  columnsOption: {
567
- paddingLeft: token.selectColumnPadding,
568
- paddingRight: token.selectColumnPadding,
569
568
  lineHeight: 1,
570
569
  boxSizing: 'border-box',
571
570
  overflow: 'hidden',
@@ -586,6 +585,9 @@ var selectStyle = _objectSpread(_objectSpread({
586
585
  },
587
586
  columnsRadio: {
588
587
  width: '100%',
588
+ height: '100%',
589
+ paddingLeft: token.selectColumnPadding,
590
+ paddingRight: token.selectColumnPadding,
589
591
  marginLeft: token.selectColumnOptionMargin,
590
592
  '& :last-child': {
591
593
  flex: 1,
@@ -596,6 +598,9 @@ var selectStyle = _objectSpread(_objectSpread({
596
598
  },
597
599
  columnsCheckbox: {
598
600
  width: '100%',
601
+ height: '100%',
602
+ paddingLeft: token.selectColumnPadding,
603
+ paddingRight: token.selectColumnPadding,
599
604
  // marginLeft: token.selectColumnOptionMargin,
600
605
  marginLeft: 0,
601
606
  '& :last-child': {
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["slider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAIlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAiT1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["slider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AAIlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CAmT1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -23,14 +23,11 @@ var sliderStyle = {
23
23
  },
24
24
  track: {
25
25
  cursor: 'pointer',
26
- borderRadius: '100px',
27
26
  height: token.sliderTrackSize,
28
27
  borderTop: "".concat(token.sliderScaleMarginY, " solid transparent"),
29
28
  borderBottom: "".concat(token.sliderScaleMarginY, " solid transparent"),
30
29
  boxSizing: 'content-box',
31
- backgroundColor: token.sliderTrackBackgroundColor,
32
30
  position: 'relative',
33
- backgroundClip: 'content-box',
34
31
  '$vertical &': {
35
32
  width: token.sliderTrackSize,
36
33
  height: '100%',
@@ -41,9 +38,14 @@ var sliderStyle = {
41
38
  cursor: 'not-allowed'
42
39
  }
43
40
  },
41
+ trackBackground: {
42
+ borderRadius: "calc(".concat(token.sliderTrackSize, " / 2)"),
43
+ height: '100%',
44
+ backgroundColor: token.sliderTrackBackgroundColor
45
+ },
44
46
  trackInner: {
45
47
  position: 'absolute',
46
- borderRadius: 'inherit',
48
+ borderRadius: "calc(".concat(token.sliderTrackSize, " / 2)"),
47
49
  top: '0',
48
50
  left: '0',
49
51
  right: '100%',
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["textarea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAyDxC,QAAA,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,eAAe,CAqI1C,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["textarea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAyDxC,QAAA,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,eAAe,CA0I1C,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -140,6 +140,10 @@ var input = _objectSpread(_objectSpread(_objectSpread({
140
140
  cursor: 'pointer',
141
141
  padding: 4,
142
142
  color: token.textareaClearColor,
143
+ opacity: 0,
144
+ '$wrapperWithClear:hover &': {
145
+ opacity: 1
146
+ },
143
147
  '$wrapperSmall &': {
144
148
  top: token.textareaSmallPaddingY
145
149
  },
@@ -130,6 +130,7 @@ export declare const tooltipAnimation: {
130
130
  };
131
131
  };
132
132
  };
133
+ export declare const arrowClipPath = "M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z";
133
134
  declare const tooltipStyle: JsStyles<keyof TooltipClasses>;
134
135
  export default tooltipStyle;
135
136
  //# 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;AAK9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiI5B,CAAC;AACF,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,cAAc,CA4OhD,CAAC;AAEF,eAAe,YAAY,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiI5B,CAAC;AAEF,eAAO,MAAM,aAAa,wMAAwM,CAAC;AAEnO,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,cAAc,CA4OhD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -137,6 +137,7 @@ export var tooltipAnimation = {
137
137
  }
138
138
  }
139
139
  };
140
+ export var arrowClipPath = 'M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z';
140
141
  var tooltipStyle = _objectSpread(_objectSpread({
141
142
  rootClass: {}
142
143
  }, tooltipAnimation), {}, {
@@ -366,7 +367,7 @@ var tooltipStyle = _objectSpread(_objectSpread({
366
367
  width: '100%',
367
368
  height: '100%',
368
369
  backgroundColor: 'var(--tooltip-background-color)',
369
- clipPath: "path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z')"
370
+ clipPath: "path('".concat(arrowClipPath, "')")
370
371
  }
371
372
  },
372
373
  content: {
@@ -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,CA4Z1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
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,CAyZ1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -116,7 +116,6 @@ var uploadStyle = {
116
116
  },
117
117
  iconHover: {
118
118
  '&:hover': {
119
- color: token.uploadResultIconHoverColor,
120
119
  borderRadius: '50%',
121
120
  backgroundColor: token.uploadResultIconHoverBackgroundColor
122
121
  }
@@ -282,11 +281,9 @@ var uploadStyle = {
282
281
  boxSizing: 'border-box',
283
282
  width: token.uploadImageResultMaskIconSize,
284
283
  height: token.uploadImageResultMaskIconSize,
285
- borderColor: token.uploadImageResultMaskIconColor,
286
- borderTopColor: 'transparent',
284
+ borderColor: "transparent ".concat(token.uploadImageResultMaskIconColor, " ").concat(token.uploadImageResultMaskIconColor, " ").concat(token.uploadImageResultMaskIconColor),
287
285
  '$resultText &': {
288
- borderColor: token.uploadResultUploadingIconColor,
289
- borderTopColor: 'transparent'
286
+ borderColor: "transparent ".concat(token.uploadResultUploadingIconColor, " ").concat(token.uploadResultUploadingIconColor, " ").concat(token.uploadResultUploadingIconColor)
290
287
  }
291
288
  },
292
289
  imageResultMaskInfo: {
package/esm/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "3.9.9-beta.5";
1
+ declare const _default: "3.9.9-beta.7";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
package/esm/version.js CHANGED
@@ -1 +1 @@
1
- export default '3.9.9-beta.5';
1
+ export default '3.9.9-beta.7';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/shineout-style",
3
- "version": "3.9.9-beta.5",
3
+ "version": "3.9.9-beta.7",
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.9.9-beta.5",
21
- "@sheinx/base": "3.9.9-beta.5"
20
+ "@sheinx/theme": "3.9.9-beta.7",
21
+ "@sheinx/base": "3.9.9-beta.7"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "core-js": ">=3"