@sheinx/shineout-style 3.9.4-beta.8 → 3.9.4

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 (51) hide show
  1. package/cjs/alert/alert.d.ts.map +1 -1
  2. package/cjs/alert/alert.js +6 -3
  3. package/cjs/cascader/cascader.d.ts.map +1 -1
  4. package/cjs/cascader/cascader.js +17 -10
  5. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  6. package/cjs/date-picker/date-picker.js +10 -2
  7. package/cjs/modal/modal.js +2 -2
  8. package/cjs/radio/radio.d.ts.map +1 -1
  9. package/cjs/radio/radio.js +3 -0
  10. package/cjs/rate/rate.js +2 -2
  11. package/cjs/select/select.d.ts.map +1 -1
  12. package/cjs/select/select.js +17 -9
  13. package/cjs/switch/switch.d.ts.map +1 -1
  14. package/cjs/switch/switch.js +20 -26
  15. package/cjs/table/table.d.ts.map +1 -1
  16. package/cjs/table/table.js +6 -7
  17. package/cjs/tabs/tabs.js +2 -2
  18. package/cjs/tag/tag.d.ts.map +1 -1
  19. package/cjs/tag/tag.js +8 -11
  20. package/cjs/transfer/transfer.js +15 -15
  21. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  22. package/cjs/tree-select/tree-select.js +14 -9
  23. package/cjs/version.d.ts +1 -1
  24. package/cjs/version.d.ts.map +1 -1
  25. package/cjs/version.js +1 -1
  26. package/esm/alert/alert.d.ts.map +1 -1
  27. package/esm/alert/alert.js +6 -3
  28. package/esm/cascader/cascader.d.ts.map +1 -1
  29. package/esm/cascader/cascader.js +15 -10
  30. package/esm/date-picker/date-picker.d.ts.map +1 -1
  31. package/esm/date-picker/date-picker.js +10 -2
  32. package/esm/modal/modal.js +2 -2
  33. package/esm/radio/radio.d.ts.map +1 -1
  34. package/esm/radio/radio.js +3 -0
  35. package/esm/rate/rate.js +2 -2
  36. package/esm/select/select.d.ts.map +1 -1
  37. package/esm/select/select.js +15 -9
  38. package/esm/switch/switch.d.ts.map +1 -1
  39. package/esm/switch/switch.js +18 -25
  40. package/esm/table/table.d.ts.map +1 -1
  41. package/esm/table/table.js +4 -6
  42. package/esm/tabs/tabs.js +2 -2
  43. package/esm/tag/tag.d.ts.map +1 -1
  44. package/esm/tag/tag.js +8 -11
  45. package/esm/transfer/transfer.js +15 -15
  46. package/esm/tree-select/tree-select.d.ts.map +1 -1
  47. package/esm/tree-select/tree-select.js +14 -9
  48. package/esm/version.d.ts +1 -1
  49. package/esm/version.d.ts.map +1 -1
  50. package/esm/version.js +1 -1
  51. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["alert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CAqK5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["alert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CAwK5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -64,7 +64,6 @@ var alertStyle = {
64
64
  withTitle: {
65
65
  '& $icon': {
66
66
  fontSize: _theme.default.alertTitleFontSize,
67
- // marginBottom: Token.alertNearlyMargin,
68
67
  width: "calc(".concat(_theme.default.alertTitleIconWidth, " + 2px)"),
69
68
  height: _theme.default.lineHeightDynamic
70
69
  },
@@ -91,13 +90,17 @@ var alertStyle = {
91
90
  cursor: 'pointer',
92
91
  color: _theme.default.alertCloseFontColor,
93
92
  fontSize: _theme.default.alertFontSize,
94
- height: "calc(".concat(_theme.default.alertFontSize, " + 2px)"),
95
- width: "calc(".concat(_theme.default.alertFontSize, " + 2px)"),
93
+ height: _theme.default.alertFontSize,
94
+ width: _theme.default.alertFontSize,
96
95
  flex: '0 0 auto',
97
96
  display: 'flex',
98
97
  alignItems: 'center',
99
98
  justifyContent: 'center',
100
99
  // marginLeft: Token.alertNearlyMargin,
100
+ '$withTitle &': {
101
+ width: _theme.default.alertTitleFontSize,
102
+ height: _theme.default.alertTitleFontSize
103
+ },
101
104
  '&:hover': {
102
105
  color: _theme.default.alertCloseHoverColor
103
106
  },
@@ -1 +1 @@
1
- {"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["cascader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AAuDtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CAwgB9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["cascader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AAuDtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CA+gB9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _theme = _interopRequireDefault(require("@sheinx/theme"));
8
+ var _theme = _interopRequireWildcard(require("@sheinx/theme"));
9
9
  var _inputBorder = _interopRequireDefault(require("../input/input-border"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
15
  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; }
@@ -89,9 +91,9 @@ var cascaderStyle = _objectSpread(_objectSpread({
89
91
  },
90
92
  '&$wrapperSmall': {
91
93
  '& $tag': {
92
- lineHeight: '16px',
93
94
  marginTop: 1,
94
- marginBottom: 1
95
+ marginBottom: 1,
96
+ border: 'none'
95
97
  },
96
98
  '& $placeholder,$ellipsis,$space,input': {
97
99
  marginTop: 0,
@@ -326,12 +328,18 @@ var cascaderStyle = _objectSpread(_objectSpread({
326
328
  clearable: {},
327
329
  clearIcon: {
328
330
  cursor: 'pointer',
329
- width: _theme.default.cascaderFontSize,
331
+ width: _theme.default.cascaderClearIconSize,
330
332
  lineHeight: 0,
331
333
  color: _theme.default.cascaderClearColor,
332
334
  verticalAlign: 'middle',
333
335
  '&:hover': {
334
336
  color: _theme.default.cascaderClearHoverColor
337
+ },
338
+ '$wrapperSmall &': {
339
+ width: _theme.default.cascaderSmallClearIconSize
340
+ },
341
+ '$wrapperLarge &': {
342
+ width: _theme.default.cascaderLargeClearIconSize
335
343
  }
336
344
  },
337
345
  compressedIcon: {},
@@ -413,7 +421,7 @@ var cascaderStyle = _objectSpread(_objectSpread({
413
421
  paddingTop: _theme.default.cascaderListPaddingY,
414
422
  paddingBottom: _theme.default.cascaderListPaddingY
415
423
  },
416
- tag: {
424
+ tag: _defineProperty(_defineProperty({
417
425
  flexShrink: 0,
418
426
  '&$tag + &$tag': {
419
427
  marginLeft: 0
@@ -422,11 +430,10 @@ var cascaderStyle = _objectSpread(_objectSpread({
422
430
  marginRight: _theme.default.cascaderTagMarginRight,
423
431
  marginTop: _theme.default.cascaderTagMarginY,
424
432
  marginBottom: _theme.default.cascaderTagMarginY,
425
- textWrap: 'nowrap',
426
- '&$hideTag': {
427
- marginRight: 0
428
- }
429
- },
433
+ textWrap: 'nowrap'
434
+ }, (0, _theme.getTokenName)('tagDefaultLineBase'), _theme.default.inputFontSize), '&$hideTag', {
435
+ marginRight: 0
436
+ }),
430
437
  tagOnly: {
431
438
  flexShrink: 1,
432
439
  minWidth: 42
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AA+D1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CAupBlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AA+D1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA+pBlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -307,10 +307,15 @@ var datePickerStyle = _objectSpread(_objectSpread(_objectSpread({
307
307
  alignItems: 'center',
308
308
  justifyContent: 'center',
309
309
  cursor: 'pointer',
310
- width: _theme.default.datePickerPanelHeaderIconHotWidth,
311
- height: _theme.default.datePickerPanelHeaderIconHotWidth,
310
+ width: "calc(".concat(_theme.default.datePickerPanelHeaderFontSize, " + 8px)"),
311
+ height: "calc(".concat(_theme.default.datePickerPanelHeaderFontSize, " + 8px)"),
312
312
  color: _theme.default.datePickerPanelHeaderIconColor,
313
313
  borderRadius: '50%',
314
+ '$pickerHeaderRight:has(&), $pickerHeaderLeft:has(&)': {
315
+ display: 'flex',
316
+ alignItems: 'center',
317
+ height: _theme.default.datePickerPanelHeaderIconHotWidth
318
+ },
314
319
  '&[dir=rtl]': {
315
320
  transform: 'rotate(180deg)'
316
321
  },
@@ -363,6 +368,9 @@ var datePickerStyle = _objectSpread(_objectSpread(_objectSpread({
363
368
  borderTop: "1px solid ".concat(_theme.default.datePickerPanelHeaderBorderColor),
364
369
  display: 'flex',
365
370
  justifyContent: 'space-between',
371
+ '&:empty': {
372
+ display: 'none'
373
+ },
366
374
  '&[dir=rtl] $pickerFooterConfirm': {
367
375
  'margin-right': 'auto'
368
376
  },
@@ -352,8 +352,8 @@ var modalStyle = _objectSpread(_objectSpread({
352
352
  headerClose: {
353
353
  marginLeft: _theme.default.modalHeaderCloseMarginXStart,
354
354
  marginTop: _theme.default.modalHeaderCloseTop,
355
- width: _theme.default.modalHeaderCloseSize,
356
- height: _theme.default.modalHeaderCloseSize,
355
+ width: _theme.default.modalHeaderFontSize,
356
+ height: _theme.default.modalHeaderFontSize,
357
357
  cursor: 'pointer',
358
358
  display: 'block',
359
359
  color: _theme.default.modalHeaderCloseColor,
@@ -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,CAyK5C,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,CA4K5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -27,6 +27,9 @@ var radioStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
27
27
  },
28
28
  'button&': {
29
29
  padding: "".concat(_theme.default.radioButtonPaddingY, " ").concat(_theme.default.radioButtonPaddingX)
30
+ },
31
+ 'button[data-soui-outline]&:not($wrapperChecked):not($wrapperDisabled):not(:hover)': {
32
+ borderColor: _theme.default.radioButtonBorderColor
30
33
  }
31
34
  },
32
35
  wrapperSmall: {
package/cjs/rate/rate.js CHANGED
@@ -45,8 +45,8 @@ var rateStyle = _objectSpread(_objectSpread({}, animation), {}, {
45
45
  display: 'flex',
46
46
  boxSizing: 'border-box',
47
47
  alignItems: 'center',
48
- width: _theme.default.rateSize,
49
- fontSize: _theme.default.rateSize,
48
+ width: "calc(".concat(_theme.default.rateFontSize, " + 10px)"),
49
+ fontSize: "calc(".concat(_theme.default.rateFontSize, " + 10px)"),
50
50
  lineHeight: 1,
51
51
  '&:not($itemDisabled):hover': {
52
52
  cursor: 'pointer',
@@ -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,CAwhB1C,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,CAgiB1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _theme = _interopRequireDefault(require("@sheinx/theme"));
8
+ var _theme = _interopRequireWildcard(require("@sheinx/theme"));
9
9
  var _inputBorder = _interopRequireDefault(require("../input/input-border"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
15
  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; }
@@ -89,7 +91,8 @@ var selectStyle = _objectSpread(_objectSpread({
89
91
  '&$wrapperSmall': {
90
92
  '& $tag': {
91
93
  marginTop: 1,
92
- marginBottom: 1
94
+ marginBottom: 1,
95
+ border: 'none'
93
96
  },
94
97
  '& $placeholder,$ellipsis,$space,input': {
95
98
  marginTop: 0,
@@ -320,12 +323,18 @@ var selectStyle = _objectSpread(_objectSpread({
320
323
  clearable: {},
321
324
  clearIcon: {
322
325
  cursor: 'pointer',
323
- width: _theme.default.selectFontSize,
326
+ width: _theme.default.selectClearIconSize,
324
327
  lineHeight: 0,
325
328
  color: _theme.default.selectClearColor,
326
329
  verticalAlign: 'middle',
327
330
  '&:hover': {
328
331
  color: _theme.default.selectIconColor
332
+ },
333
+ '$wrapperSmall &': {
334
+ width: _theme.default.selectSmallClearIconSize
335
+ },
336
+ '$wrapperLarge &': {
337
+ width: _theme.default.selectLargeClearIconSize
329
338
  }
330
339
  },
331
340
  arrowIcon: {
@@ -404,7 +413,7 @@ var selectStyle = _objectSpread(_objectSpread({
404
413
  }
405
414
  }
406
415
  },
407
- tag: {
416
+ tag: _defineProperty(_defineProperty({
408
417
  flexShrink: 0,
409
418
  '&$tag + &$tag': {
410
419
  marginLeft: 0
@@ -413,11 +422,10 @@ var selectStyle = _objectSpread(_objectSpread({
413
422
  marginRight: _theme.default.selectTagMarginRight,
414
423
  marginTop: _theme.default.selectTagMarginY,
415
424
  marginBottom: _theme.default.selectTagMarginY,
416
- textWrap: 'nowrap',
417
- '&$hideTag': {
418
- marginRight: 0
419
- }
420
- },
425
+ textWrap: 'nowrap'
426
+ }, (0, _theme.getTokenName)('tagDefaultLineBase'), _theme.default.inputFontSize), '&$hideTag', {
427
+ marginRight: 0
428
+ }),
421
429
  tagOnly: {
422
430
  flexShrink: 1,
423
431
  minWidth: 42
@@ -1 +1 @@
1
- {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["switch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAaxC,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CA4L9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["switch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAaxC,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CA6L9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _theme = _interopRequireDefault(require("@sheinx/theme"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7
+ var _theme = _interopRequireWildcard(require("@sheinx/theme"));
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9
10
  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); }
10
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -26,7 +27,7 @@ var transition = '.2s cubic-bezier(.34,.69,.1,1)';
26
27
  var switchStyle = _objectSpread(_objectSpread({
27
28
  rootClass: {}
28
29
  }, animation), {}, {
29
- wrapper: {
30
+ wrapper: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
30
31
  '[data-soui-role="form-control"] > &': {
31
32
  margin: '5px 0'
32
33
  },
@@ -51,30 +52,23 @@ var switchStyle = _objectSpread(_objectSpread({
51
52
  '$wrapperChecked$wrapperDisabled&': {
52
53
  backgroundColor: _theme.default.switchCheckedDisabledBackgroundColor,
53
54
  color: _theme.default.switchCheckedDisabledFontColor
54
- },
55
- height: "calc( ".concat(_theme.default.switchCircleSize, " + ").concat(_theme.default.switchPaddingY, " * 2 )"),
56
- padding: "".concat(_theme.default.switchPaddingY, " ").concat(_theme.default.switchPaddingX),
57
- minWidth: _theme.default.switchWidth,
58
- borderRadius: "calc( ".concat(_theme.default.switchCircleSize, " / 2 + ").concat(_theme.default.switchPaddingY, " )"),
59
- fontSize: _theme.default.switchFontSize,
60
- '$wrapperSmall&': {
61
- height: "calc( ".concat(_theme.default.switchSmallCircleSize, " + ").concat(_theme.default.switchSmallPaddingY, " * 2 )"),
62
- padding: "".concat(_theme.default.switchSmallPaddingY, " ").concat(_theme.default.switchSmallPaddingX),
63
- minWidth: _theme.default.switchSmallWidth,
64
- borderRadius: "calc( ".concat(_theme.default.switchSmallCircleSize, " / 2 + ").concat(_theme.default.switchSmallPaddingY, " )"),
65
- fontSize: _theme.default.switchSmallFontSize,
66
- '[data-soui-role="form-control"] > &': {
67
- marginTop: 8
68
- }
69
- },
70
- '$wrapperLarge&': {
71
- height: "calc( ".concat(_theme.default.switchLargeCircleSize, " + ").concat(_theme.default.switchLargePaddingY, " * 2 )"),
72
- padding: "".concat(_theme.default.switchLargePaddingY, " ").concat(_theme.default.switchLargePaddingX),
73
- minWidth: _theme.default.switchLargeWidth,
74
- borderRadius: "calc( ".concat(_theme.default.switchLargeCircleSize, " / 2 + ").concat(_theme.default.switchLargePaddingY, " )"),
75
- fontSize: _theme.default.switchLargeFontSize
76
55
  }
77
- },
56
+ }, (0, _theme.getTokenName)('switchCircleSize'), "calc(".concat(_theme.default.switchFontSize, " + 4px)")), "height", "calc( ".concat(_theme.default.switchCircleSize, " + ").concat(_theme.default.switchPaddingY, " * 2 )")), "padding", "".concat(_theme.default.switchPaddingY, " ").concat(_theme.default.switchPaddingX)), "minWidth", _theme.default.switchWidth), "borderRadius", "calc( ".concat(_theme.default.switchCircleSize, " / 2 + ").concat(_theme.default.switchPaddingY, " )")), "fontSize", _theme.default.switchFontSize), '$wrapperSmall&', {
57
+ height: "calc( ".concat(_theme.default.switchSmallCircleSize, " + ").concat(_theme.default.switchSmallPaddingY, " * 2 )"),
58
+ padding: "".concat(_theme.default.switchSmallPaddingY, " ").concat(_theme.default.switchSmallPaddingX),
59
+ minWidth: _theme.default.switchSmallWidth,
60
+ borderRadius: "calc( ".concat(_theme.default.switchSmallCircleSize, " / 2 + ").concat(_theme.default.switchSmallPaddingY, " )"),
61
+ fontSize: _theme.default.switchSmallFontSize,
62
+ '[data-soui-role="form-control"] > &': {
63
+ marginTop: 8
64
+ }
65
+ }), '$wrapperLarge&', {
66
+ height: "calc( ".concat(_theme.default.switchLargeCircleSize, " + ").concat(_theme.default.switchLargePaddingY, " * 2 )"),
67
+ padding: "".concat(_theme.default.switchLargePaddingY, " ").concat(_theme.default.switchLargePaddingX),
68
+ minWidth: _theme.default.switchLargeWidth,
69
+ borderRadius: "calc( ".concat(_theme.default.switchLargeCircleSize, " / 2 + ").concat(_theme.default.switchLargePaddingY, " )"),
70
+ fontSize: _theme.default.switchLargeFontSize
71
+ }),
78
72
  wrapperChecked: {},
79
73
  textPadding: {
80
74
  paddingLeft: _theme.default.switchTextPaddingRight,
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAWxC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAUhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CA4oBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAWxC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAUhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CA6oBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _theme = _interopRequireDefault(require("@sheinx/theme"));
7
+ var _theme = _interopRequireWildcard(require("@sheinx/theme"));
8
8
  var _mixin = require("../mixin");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
11
  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); }
11
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -403,11 +404,9 @@ var tableStyle = _objectSpread(_objectSpread({
403
404
  marginInlineEnd: -5
404
405
  }
405
406
  },
406
- filterIconContainer: {
407
- '&:hover $filterIcon': {
408
- color: _theme.default.tableFilterIconHoverColor
409
- }
410
- },
407
+ filterIconContainer: _defineProperty(_defineProperty({}, (0, _theme.getTokenName)('buttonSmallCircleSize'), "calc(".concat(_theme.default.tableFilterIconSize, " + 8px)")), '&:hover $filterIcon', {
408
+ color: _theme.default.tableFilterIconHoverColor
409
+ }),
411
410
  filterIcon: {
412
411
  width: _theme.default.tableFilterIconSize,
413
412
  height: _theme.default.tableFilterIconSize,
package/cjs/tabs/tabs.js CHANGED
@@ -739,8 +739,8 @@ var tabsStyle = {
739
739
  alignItems: 'center',
740
740
  justifyContent: 'center',
741
741
  borderRadius: '50%',
742
- width: 22,
743
- height: 22
742
+ width: "calc(".concat(_theme.default.tabsArrowFontSize, " + 8px)"),
743
+ height: "calc(".concat(_theme.default.tabsArrowFontSize, " + 8px)")
744
744
  },
745
745
  bordered: {},
746
746
  card: {},
@@ -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;AAqJ1C,QAAA,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,UAAU,CAwNxC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
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;AAqJ1C,QAAA,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,UAAU,CAqNxC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/cjs/tag/tag.js CHANGED
@@ -171,8 +171,8 @@ var TagStyle = {
171
171
  padding: "".concat(_theme.default.tagLargePaddingY, " ").concat(_theme.default.tagLargePaddingX),
172
172
  '& $closeIconWrapper': {
173
173
  '& svg': {
174
- width: 14,
175
- height: 14
174
+ width: _theme.default.tagLargeFontSize,
175
+ height: _theme.default.tagLargeFontSize
176
176
  }
177
177
  },
178
178
  '& $wrapper': {
@@ -192,15 +192,12 @@ var TagStyle = {
192
192
  lineHeight: "var(".concat(_theme.default.tagSmallLineHeight, ", calc(").concat(_theme.default.tagSmallFontSize, " + 6px))")
193
193
  },
194
194
  '& $closeIcon': {
195
- height: "var(".concat(_theme.default.tagSmallLineHeight, ", calc(").concat(_theme.default.tagSmallFontSize, " + 6px))")
195
+ height: "var(".concat(_theme.default.tagSmallLineHeight, ", calc(").concat(_theme.default.tagSmallFontSize, " + 4px))")
196
196
  },
197
197
  '& $closeIconWrapper': {
198
- width: "calc(".concat(_theme.default.tagSmallFontSize, " + 6px)"),
199
- height: "calc(".concat(_theme.default.tagSmallFontSize, " + 6px)"),
200
- lineHeight: "calc(".concat(_theme.default.tagSmallFontSize, " + 6px)"),
201
198
  '& svg': {
202
- width: 12,
203
- height: 12
199
+ width: _theme.default.tagSmallFontSize,
200
+ height: _theme.default.tagSmallFontSize
204
201
  }
205
202
  }
206
203
  },
@@ -211,7 +208,7 @@ var TagStyle = {
211
208
  }
212
209
  },
213
210
  closeIcon: {
214
- marginLeft: 4,
211
+ marginLeft: 2,
215
212
  alignItems: 'center',
216
213
  display: 'inline-flex',
217
214
  cursor: 'pointer',
@@ -226,8 +223,8 @@ var TagStyle = {
226
223
  width: "calc(1em + 4px)",
227
224
  height: "calc(1em + 4px)",
228
225
  '& svg': {
229
- width: 12,
230
- height: 12
226
+ width: _theme.default.tagFontSize,
227
+ height: _theme.default.tagFontSize
231
228
  }
232
229
  },
233
230
  info: _objectSpread({}, brightTag('info', 'Info')),
@@ -22,7 +22,7 @@ var TransferStyle = {
22
22
  small: {
23
23
  '& $operations': {
24
24
  '& svg': {
25
- width: 12
25
+ width: _theme.default.transferSmallFontSize
26
26
  }
27
27
  },
28
28
  '& $header': {
@@ -32,7 +32,7 @@ var TransferStyle = {
32
32
  fontSize: _theme.default.transferSmallFontSize
33
33
  },
34
34
  '& $close': {
35
- width: 20
35
+ width: "calc(".concat(_theme.default.transferSmallFontSize, " + 8px)")
36
36
  },
37
37
  '& $left, & $right': {
38
38
  padding: 0
@@ -88,19 +88,19 @@ var TransferStyle = {
88
88
  lineHeight: _theme.default.lineHeightDynamic
89
89
  },
90
90
  removeAll: {
91
- width: 24,
92
- height: 24,
91
+ width: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
92
+ height: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
93
93
  borderRadius: '50%',
94
- minWidth: 24,
94
+ minWidth: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
95
95
  fontSize: _theme.default.transferFontSize,
96
- lineHeight: '14px',
96
+ lineHeight: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
97
97
  cursor: 'pointer',
98
98
  display: 'flex',
99
99
  alignItems: 'center',
100
100
  justifyContent: 'center',
101
101
  marginLeft: 3,
102
102
  '& svg': {
103
- width: 14,
103
+ width: _theme.default.transferFontSize,
104
104
  color: _theme.default.transferRemoveIconColor
105
105
  },
106
106
  '&:hover': {
@@ -108,12 +108,12 @@ var TransferStyle = {
108
108
  }
109
109
  },
110
110
  close: {
111
- width: 22,
112
- height: 22,
111
+ width: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
112
+ height: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
113
113
  flexShrink: 0,
114
114
  borderRadius: '50%',
115
- minWidth: 12,
116
- fontSize: 12,
115
+ minWidth: "calc(".concat(_theme.default.transferFontSize, " + 8px)"),
116
+ fontSize: _theme.default.transferFontSize,
117
117
  cursor: 'pointer',
118
118
  color: _theme.default.transferIconColor,
119
119
  lineHeight: "calc(".concat(_theme.default.lineHeightDynamic, " + 2px)"),
@@ -122,7 +122,7 @@ var TransferStyle = {
122
122
  alignItems: 'center',
123
123
  justifyContent: 'center',
124
124
  '& svg': {
125
- width: 12
125
+ width: _theme.default.transferFontSize
126
126
  },
127
127
  '&:hover': {
128
128
  background: _theme.default.transferIconBackgroundColor
@@ -135,7 +135,7 @@ var TransferStyle = {
135
135
  justifyContent: 'center',
136
136
  flexDirection: 'column',
137
137
  '& svg': {
138
- width: 14
138
+ width: _theme.default.transferFontSize
139
139
  }
140
140
  },
141
141
  inputWrapper: {
@@ -143,8 +143,8 @@ var TransferStyle = {
143
143
  },
144
144
  input: {
145
145
  '& > div > svg': {
146
- width: 14,
147
- minWidth: 14,
146
+ width: _theme.default.transferFontSize,
147
+ minWidth: _theme.default.transferFontSize,
148
148
  color: _theme.default.transferIconColor
149
149
  }
150
150
  },
@@ -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;AAuD1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA6flD,CAAC;AACF,eAAe,eAAe,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,CAogBlD,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -90,9 +90,9 @@ var treeSelectStyle = _objectSpread(_objectSpread({
90
90
  },
91
91
  '&$wrapperSmall': {
92
92
  '& $tag': {
93
- lineHeight: '16px',
94
93
  marginTop: 1,
95
- marginBottom: 1
94
+ marginBottom: 1,
95
+ border: 'none'
96
96
  },
97
97
  '& $placeholder,$ellipsis,$space,input': {
98
98
  marginTop: 0,
@@ -300,12 +300,18 @@ var treeSelectStyle = _objectSpread(_objectSpread({
300
300
  clearable: {},
301
301
  clearIcon: {
302
302
  cursor: 'pointer',
303
- width: _theme.default.treeSelectFontSize,
303
+ width: _theme.default.treeSelectClearIconSize,
304
304
  lineHeight: 0,
305
305
  color: _theme.default.treeSelectClearColor,
306
306
  verticalAlign: 'middle',
307
307
  '&:hover svg': {
308
308
  color: _theme.default.treeSelectClearHoverColor
309
+ },
310
+ '$wrapperSmall &': {
311
+ width: _theme.default.treeSelectSmallClearIconSize
312
+ },
313
+ '$wrapperLarge &': {
314
+ width: _theme.default.treeSelectLargeClearIconSize
309
315
  }
310
316
  },
311
317
  arrowIcon: {
@@ -387,7 +393,7 @@ var treeSelectStyle = _objectSpread(_objectSpread({
387
393
  }
388
394
  }
389
395
  },
390
- tag: {
396
+ tag: _defineProperty(_defineProperty({
391
397
  flexShrink: 0,
392
398
  '&$tag + &$tag': {
393
399
  marginLeft: 0
@@ -396,11 +402,10 @@ var treeSelectStyle = _objectSpread(_objectSpread({
396
402
  marginRight: _theme.default.treeSelectTagMarginRight,
397
403
  marginTop: _theme.default.treeSelectTagMarginY,
398
404
  marginBottom: _theme.default.treeSelectTagMarginY,
399
- textWrap: 'nowrap',
400
- '&$hideTag': {
401
- marginRight: 0
402
- }
403
- },
405
+ textWrap: 'nowrap'
406
+ }, (0, _theme.getTokenName)('tagDefaultLineBase'), _theme.default.inputFontSize), '&$hideTag', {
407
+ marginRight: 0
408
+ }),
404
409
  tagOnly: {
405
410
  flexShrink: 1,
406
411
  minWidth: 42
package/cjs/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "3.9.4-beta.8";
1
+ declare const _default: "3.9.4";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";AAAA,wBAA8B"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";AAAA,wBAAuB"}
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.4-beta.8';
7
+ var _default = exports.default = '3.9.4';
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["alert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CAqK5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["alert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CAwK5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -57,7 +57,6 @@ var alertStyle = {
57
57
  withTitle: {
58
58
  '& $icon': {
59
59
  fontSize: Token.alertTitleFontSize,
60
- // marginBottom: Token.alertNearlyMargin,
61
60
  width: "calc(".concat(Token.alertTitleIconWidth, " + 2px)"),
62
61
  height: Token.lineHeightDynamic
63
62
  },
@@ -84,13 +83,17 @@ var alertStyle = {
84
83
  cursor: 'pointer',
85
84
  color: Token.alertCloseFontColor,
86
85
  fontSize: Token.alertFontSize,
87
- height: "calc(".concat(Token.alertFontSize, " + 2px)"),
88
- width: "calc(".concat(Token.alertFontSize, " + 2px)"),
86
+ height: Token.alertFontSize,
87
+ width: Token.alertFontSize,
89
88
  flex: '0 0 auto',
90
89
  display: 'flex',
91
90
  alignItems: 'center',
92
91
  justifyContent: 'center',
93
92
  // marginLeft: Token.alertNearlyMargin,
93
+ '$withTitle &': {
94
+ width: Token.alertTitleFontSize,
95
+ height: Token.alertTitleFontSize
96
+ },
94
97
  '&:hover': {
95
98
  color: Token.alertCloseHoverColor
96
99
  },