@sheinx/shineout-style 3.2.0-rc.5 → 3.3.0-beta.1

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 (75) hide show
  1. package/cjs/alert/alert.d.ts.map +1 -1
  2. package/cjs/alert/alert.js +12 -5
  3. package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
  4. package/cjs/breadcrumb/breadcrumb.js +8 -1
  5. package/cjs/button/button.d.ts.map +1 -1
  6. package/cjs/button/button.js +45 -17
  7. package/cjs/card/card.d.ts.map +1 -1
  8. package/cjs/card/card.js +8 -4
  9. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  10. package/cjs/date-picker/date-picker.js +5 -1
  11. package/cjs/divider/divider.d.ts.map +1 -1
  12. package/cjs/divider/divider.js +1 -0
  13. package/cjs/empty/empty.d.ts.map +1 -1
  14. package/cjs/empty/empty.js +1 -0
  15. package/cjs/form/form-item.d.ts.map +1 -1
  16. package/cjs/form/form-item.js +8 -3
  17. package/cjs/image/image.js +5 -5
  18. package/cjs/menu/menu.d.ts.map +1 -1
  19. package/cjs/menu/menu.js +94 -16
  20. package/cjs/menu/search.d.ts.map +1 -1
  21. package/cjs/menu/search.js +4 -28
  22. package/cjs/progress/progress.d.ts.map +1 -1
  23. package/cjs/progress/progress.js +43 -6
  24. package/cjs/rate/rate.d.ts.map +1 -1
  25. package/cjs/rate/rate.js +2 -1
  26. package/cjs/select/select.d.ts.map +1 -1
  27. package/cjs/select/select.js +1 -0
  28. package/cjs/slider/slider.js +1 -1
  29. package/cjs/tabs/tabs.d.ts.map +1 -1
  30. package/cjs/tabs/tabs.js +92 -45
  31. package/cjs/tag/tag.d.ts.map +1 -1
  32. package/cjs/tag/tag.js +5 -3
  33. package/cjs/transfer/transfer.d.ts.map +1 -1
  34. package/cjs/transfer/transfer.js +12 -5
  35. package/cjs/version.d.ts +1 -1
  36. package/cjs/version.d.ts.map +1 -1
  37. package/cjs/version.js +1 -1
  38. package/esm/alert/alert.d.ts.map +1 -1
  39. package/esm/alert/alert.js +12 -5
  40. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  41. package/esm/breadcrumb/breadcrumb.js +8 -1
  42. package/esm/button/button.d.ts.map +1 -1
  43. package/esm/button/button.js +45 -17
  44. package/esm/card/card.d.ts.map +1 -1
  45. package/esm/card/card.js +8 -4
  46. package/esm/date-picker/date-picker.d.ts.map +1 -1
  47. package/esm/date-picker/date-picker.js +5 -1
  48. package/esm/divider/divider.d.ts.map +1 -1
  49. package/esm/divider/divider.js +1 -0
  50. package/esm/empty/empty.d.ts.map +1 -1
  51. package/esm/empty/empty.js +1 -0
  52. package/esm/form/form-item.d.ts.map +1 -1
  53. package/esm/form/form-item.js +8 -3
  54. package/esm/image/image.js +5 -5
  55. package/esm/menu/menu.d.ts.map +1 -1
  56. package/esm/menu/menu.js +94 -16
  57. package/esm/menu/search.d.ts.map +1 -1
  58. package/esm/menu/search.js +4 -28
  59. package/esm/progress/progress.d.ts.map +1 -1
  60. package/esm/progress/progress.js +43 -6
  61. package/esm/rate/rate.d.ts.map +1 -1
  62. package/esm/rate/rate.js +2 -1
  63. package/esm/select/select.d.ts.map +1 -1
  64. package/esm/select/select.js +1 -0
  65. package/esm/slider/slider.js +1 -1
  66. package/esm/tabs/tabs.d.ts.map +1 -1
  67. package/esm/tabs/tabs.js +92 -45
  68. package/esm/tag/tag.d.ts.map +1 -1
  69. package/esm/tag/tag.js +5 -3
  70. package/esm/transfer/transfer.d.ts.map +1 -1
  71. package/esm/transfer/transfer.js +12 -5
  72. package/esm/version.d.ts +1 -1
  73. package/esm/version.d.ts.map +1 -1
  74. package/esm/version.js +1 -1
  75. 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,CAgJ5C,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,CAuJ5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -63,11 +63,11 @@ var alertStyle = {
63
63
  widthTitle: {
64
64
  '& $icon': {
65
65
  // marginBottom: Token.alertNearlyMargin,
66
- width: 20,
67
- height: 24
66
+ width: _theme.default.alertTitleIconWidth,
67
+ height: _theme.default.alertTitleIconHeight
68
68
  },
69
69
  '& $title': {
70
- lineHeight: '24px'
70
+ lineHeight: _theme.default.lineHeightDynamic
71
71
  },
72
72
  '& $close': {
73
73
  marginBottom: _theme.default.alertNearlyMargin,
@@ -91,7 +91,7 @@ var alertStyle = {
91
91
  width: _theme.default.alertFontSize,
92
92
  color: _theme.default.alertCloseFontColor,
93
93
  fontSize: _theme.default.alertFontSize,
94
- height: _theme.default.lineHeightDynamic,
94
+ height: _theme.default.alertFontSize,
95
95
  flex: '0 0 auto',
96
96
  display: 'flex',
97
97
  alignItems: 'center',
@@ -101,8 +101,15 @@ var alertStyle = {
101
101
  color: _theme.default.alertCloseHoverColor
102
102
  }
103
103
  },
104
+ closeWrapper: {
105
+ width: _theme.default.alertFontSize,
106
+ height: _theme.default.lineHeightDynamic,
107
+ display: 'flex',
108
+ alignItems: 'center'
109
+ },
104
110
  content: {
105
111
  flex: '1 1 0',
112
+ minWidth: 0,
106
113
  wordBreak: 'break-all'
107
114
  },
108
115
  pending: {
@@ -153,7 +160,7 @@ var alertStyle = {
153
160
  borderColor: 'transparent'
154
161
  },
155
162
  icon: {
156
- width: 16,
163
+ width: _theme.default.alertIconSize,
157
164
  display: 'inline-flex',
158
165
  fontSize: _theme.default.alertFontSize,
159
166
  height: _theme.default.lineHeightDynamic,
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["breadcrumb.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAE1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA4FlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["breadcrumb.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAE1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CAmGlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -10,6 +10,7 @@ var breadcrumbStyle = {
10
10
  wrapper: {
11
11
  lineHeight: _theme.default.lineHeightDynamic,
12
12
  fontSize: _theme.default.breadcrumbFontSize,
13
+ fontWeight: _theme.default.breadcrumbFontWieght,
13
14
  display: 'flex',
14
15
  alignItems: 'center',
15
16
  color: _theme.default.breadcrumbFontColor,
@@ -38,7 +39,13 @@ var breadcrumbStyle = {
38
39
  },
39
40
  item: {
40
41
  display: 'flex',
41
- alignItems: 'center'
42
+ alignItems: 'center',
43
+ '& a:not(a[class])': {
44
+ color: _theme.default.breadcrumbDefaultLinkColor,
45
+ '&:hover': {
46
+ color: _theme.default.breadcrumbDefaultLinkHoverColor
47
+ }
48
+ }
42
49
  // '&:not(a) svg': {
43
50
  // color: token.breadcrumbIconBackgroundColor,
44
51
  // },
@@ -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,CAuW9C,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;AAmL7C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CAgX9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -177,12 +177,17 @@ var textBeforeLine = function textBeforeLine() {
177
177
  }
178
178
  };
179
179
  };
180
- var loading = function loading(type, styles) {
181
- var buttonStyle = button(type, styles);
182
- return {
183
- '&$loading': _objectSpread({}, buttonStyle['&$disabled'])
184
- };
185
- };
180
+
181
+ // const loading = (type: ButtonTypeWithoutLink, styles: ButtonStyleType) => {
182
+ // const buttonStyle = button(type, styles);
183
+
184
+ // return {
185
+ // '&$loading': {
186
+ // ...buttonStyle['&$disabled'],
187
+ // },
188
+ // };
189
+ // };
190
+
186
191
  var ButtonStyle = {
187
192
  button: {
188
193
  outline: 'none',
@@ -202,7 +207,8 @@ var ButtonStyle = {
202
207
  padding: "".concat(_theme.default.buttonPaddingY, " ").concat(_theme.default.buttonPaddingX),
203
208
  transition: 'all .1s linear',
204
209
  fontFamily: 'inherit',
205
- height: _theme.default.buttonHeight,
210
+ // height: Token.buttonHeight,
211
+
206
212
  '& + &': {
207
213
  marginLeft: _theme.default.buttonNearlyMargin
208
214
  },
@@ -214,7 +220,7 @@ var ButtonStyle = {
214
220
  }
215
221
  },
216
222
  small: {
217
- height: _theme.default.buttonSmallHeight,
223
+ // height: Token.buttonSmallHeight,
218
224
  fontWeight: _theme.default.buttonSmallFontWeight,
219
225
  fontSize: _theme.default.buttonSmallFontSize,
220
226
  padding: "".concat(_theme.default.buttonSmallPaddingY, " ").concat(_theme.default.buttonSmallPaddingX),
@@ -224,7 +230,7 @@ var ButtonStyle = {
224
230
  }
225
231
  },
226
232
  large: {
227
- height: _theme.default.buttonLargeHeight,
233
+ // height: Token.buttonLargeHeight,
228
234
  fontWeight: _theme.default.buttonLargeFontWeight,
229
235
  fontSize: _theme.default.buttonLargeFontSize,
230
236
  padding: "".concat(_theme.default.buttonLargePaddingY, " ").concat(_theme.default.buttonLargePaddingX),
@@ -303,18 +309,40 @@ var ButtonStyle = {
303
309
  cursor: 'not-allowed'
304
310
  },
305
311
  loading: {
306
- cursor: 'not-allowed',
307
- '&$default': _objectSpread({}, loading('Secondary', '')),
308
- '&$primary': _objectSpread({}, loading('Primary', '')),
309
- '&$success': _objectSpread({}, loading('Success', '')),
310
- '&$danger': _objectSpread({}, loading('Danger', '')),
311
- '&$warning': _objectSpread({}, loading('Warning', '')),
312
- '&$secondary': _objectSpread({}, loading('Secondary', ''))
312
+ cursor: 'not-allowed'
313
+
314
+ // '&$default': {
315
+ // ...loading('Secondary', ''),
316
+ // },
317
+ // '&$primary': {
318
+ // ...loading('Primary', ''),
319
+ // },
320
+ // '&$success': {
321
+ // ...loading('Success', ''),
322
+ // },
323
+ // '&$danger': {
324
+ // ...loading('Danger', ''),
325
+ // },
326
+ // '&$warning': {
327
+ // ...loading('Warning', ''),
328
+ // },
329
+ // '&$secondary': {
330
+ // ...loading('Secondary', ''),
331
+ // },
313
332
  },
314
333
  groupItem: {},
315
334
  group: {
316
335
  // 2.x 之前非 inline-block
317
- display: 'inline-block',
336
+ display: 'inline-flex',
337
+ // 处理 dropdown 下的 button
338
+ '& [data-role="dropdown"]': {
339
+ '& $button': {
340
+ height: '100%'
341
+ },
342
+ '& [data-role="caret"]': {
343
+ margin: 0
344
+ }
345
+ },
318
346
  '& > :first-child$button,& > :first-child $button': {
319
347
  '&::before': {
320
348
  display: 'none'
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAS9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CA6ItC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAU9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAgJtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/cjs/card/card.js CHANGED
@@ -15,7 +15,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  var headerCommon = {
16
16
  fontSize: _theme.default.cardTitleFontSize,
17
17
  lineHeight: _theme.default.lineHeightDynamic,
18
- fontWeight: 'bold',
18
+ color: _theme.default.cardTitleFontColor,
19
+ fontWeight: _theme.default.cardTitleFontWeight,
19
20
  minWidth: 0
20
21
  };
21
22
  var cardStyle = {
@@ -59,7 +60,7 @@ var cardStyle = {
59
60
  borderRadius: _theme.default.cardBorderRadius
60
61
  },
61
62
  header: {
62
- padding: "".concat(_theme.default.cardPaddingY, " ").concat(_theme.default.cardPaddingX),
63
+ padding: "".concat(_theme.default.cardHeaderPaddingY, " ").concat(_theme.default.cardHeaderPaddingX),
63
64
  '$wrapperMoveable &': {
64
65
  cursor: 'move'
65
66
  },
@@ -110,10 +111,13 @@ var cardStyle = {
110
111
  '$wrapperSplit>$header+&, $wrapperSplit>$header+$bodyCollapse>&': {
111
112
  borderTop: "1px solid ".concat(_theme.default.cardBorderColor)
112
113
  },
113
- padding: "".concat(_theme.default.cardPaddingY, " ").concat(_theme.default.cardPaddingX),
114
+ padding: "".concat(_theme.default.cardBodyPaddingY, " ").concat(_theme.default.cardBodyPaddingX),
114
115
  flex: 1,
115
116
  minHeight: 0,
116
117
  minWidth: 0,
118
+ color: _theme.default.cardBodyFontColor,
119
+ fontWeight: _theme.default.cardBodyFontWeight,
120
+ fontSize: _theme.default.cardBodyFontSize,
117
121
  boxSizing: 'border-box'
118
122
  },
119
123
  bodyCollapse: {},
@@ -121,7 +125,7 @@ var cardStyle = {
121
125
  '$wrapperSplit>$body+&, $wrapperSplit>$bodyCollapse+&': {
122
126
  borderTop: "1px solid ".concat(_theme.default.cardBorderColor)
123
127
  },
124
- padding: "".concat(_theme.default.cardPaddingY, " ").concat(_theme.default.cardPaddingX),
128
+ padding: "".concat(_theme.default.cardFooterPaddingY, " ").concat(_theme.default.cardFooterPaddingX),
125
129
  boxSizing: 'border-box'
126
130
  },
127
131
  resizeX: {
@@ -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;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAuD1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CAwmBlD,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;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAuD1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA4mBlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -64,6 +64,7 @@ var datePickerStyle = _objectSpread(_objectSpread({
64
64
  position: 'relative',
65
65
  // width: token.datePickerDateWidth,
66
66
  width: 240,
67
+ cursor: 'pointer',
67
68
  '&[data-soui-type="datetime"]': {
68
69
  // width: token.datePickerDatetimeWidth,
69
70
  width: 240
@@ -294,6 +295,7 @@ var datePickerStyle = _objectSpread(_objectSpread({
294
295
  cursor: 'pointer',
295
296
  width: _theme.default.datePickerPanelHeaderIconHotWidth,
296
297
  height: _theme.default.datePickerPanelHeaderIconHotWidth,
298
+ color: _theme.default.datePickerPanelHeaderIconColor,
297
299
  borderRadius: '50%',
298
300
  '&[dir=rtl]': {
299
301
  transform: 'rotate(180deg)'
@@ -317,6 +319,8 @@ var datePickerStyle = _objectSpread(_objectSpread({
317
319
  pickerHeaderInfo: {
318
320
  cursor: 'pointer',
319
321
  borderRadius: '2px',
322
+ color: _theme.default.datePickerPanelHeaderFontColor,
323
+ fontWeight: _theme.default.datePickerPanelHeaderFontWeight,
320
324
  '&:hover': {
321
325
  backgroundColor: _theme.default.datePickerPanelHeaderIconHoverBackgroundColor
322
326
  }
@@ -334,7 +338,7 @@ var datePickerStyle = _objectSpread(_objectSpread({
334
338
  '& th, & td': {
335
339
  boxSizing: 'border-box',
336
340
  padding: '0',
337
- fontWeight: 'normal'
341
+ fontWeight: _theme.default.datePickerPanelFontWeight
338
342
  },
339
343
  '& th': {
340
344
  color: _theme.default.datePickerCellHeaderColor,
@@ -1 +1 @@
1
- {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,kBAAkB,CAgF9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,MAAM,cAAc,CAAC;AAEtD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,kBAAkB,CAiF9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -84,6 +84,7 @@ var dividerStyle = {
84
84
  display: 'inline-block',
85
85
  padding: "0 ".concat(_theme.default.dividerTextPaddingX),
86
86
  fontSize: _theme.default.dividerFontSize,
87
+ fontWeight: _theme.default.dividerFontWeight,
87
88
  color: _theme.default.dividerFontColor
88
89
  }
89
90
  };
@@ -1 +1 @@
1
- {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["empty.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,CAwB5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["empty.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,CAyB5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -28,6 +28,7 @@ var emptyStyle = {
28
28
  description: {
29
29
  fontSize: _theme.default.emptyFontSize,
30
30
  color: _theme.default.emptyFontColor,
31
+ fontWeight: _theme.default.emptyFontWeight,
31
32
  lineHeight: _theme.default.lineHeightDynamic
32
33
  }
33
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["form-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CAqGlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["form-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CA0GlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -25,6 +25,8 @@ var formItemStyle = {
25
25
  },
26
26
  wordWrap: 'break-word',
27
27
  width: _theme.default.formItemLabelWidth,
28
+ fontWeight: _theme.default.formItemLabelFontWeight,
29
+ color: _theme.default.formItemLabelFontColor,
28
30
  padding: "".concat(_theme.default.formItemLabelPaddingY, " 0"),
29
31
  lineHeight: _theme.default.lineHeightDynamic,
30
32
  marginRight: _theme.default.formItemLabelMarginXEnd,
@@ -70,7 +72,7 @@ var formItemStyle = {
70
72
  wrapperRequired: {
71
73
  '& $label::before': {
72
74
  marginRight: '4px',
73
- color: _theme.default.formItemDangerColor,
75
+ color: _theme.default.formItemDangerFontColor,
74
76
  content: '"*"',
75
77
  fontFamily: 'SimSun',
76
78
  position: 'relative',
@@ -93,18 +95,21 @@ var formItemStyle = {
93
95
  }
94
96
  },
95
97
  error: {
96
- color: _theme.default.formItemDangerColor,
98
+ color: _theme.default.formItemDangerFontColor,
97
99
  lineHeight: _theme.default.lineHeightDynamic,
98
100
  minHeight: _theme.default.formItemTipMinHeight,
99
- fontSize: _theme.default.formItemTipFontSize
101
+ fontSize: _theme.default.formItemDangerFontSize,
102
+ fontWeight: _theme.default.formItemDangerFontWeight
100
103
  // flexBasis: '100%',
101
104
  // width: 0,
102
105
  },
103
106
  tip: {
104
107
  color: _theme.default.formItemTipFontColor,
105
108
  fontSize: _theme.default.formItemTipFontSize,
109
+ fontWeight: _theme.default.formItemTipFontWeight,
106
110
  lineHeight: _theme.default.lineHeightDynamic,
107
111
  minHeight: _theme.default.formItemTipMinHeight,
112
+ marginTop: _theme.default.formItemTipMarginTop,
108
113
  width: '100%'
109
114
  }
110
115
  };
@@ -160,16 +160,16 @@ var ImageStyle = _objectSpread(_objectSpread({}, animation), {}, {
160
160
  },
161
161
  circle: {
162
162
  borderRadius: _theme.default.imageCircleBorderRadius,
163
- border: "1px solid ".concat(_theme.default.imageCircleBorderColor)
163
+ border: "1px solid ".concat(_theme.default.imageBorderColor)
164
164
  },
165
165
  rounded: {
166
- borderRadius: _theme.default.imageRoundedBorderRadius,
167
- border: "1px solid ".concat(_theme.default.imageRoundedBorderColor)
166
+ borderRadius: _theme.default.imageBorderRadius,
167
+ border: "1px solid ".concat(_theme.default.imageBorderColor)
168
168
  },
169
169
  thumbnail: {
170
- borderRadius: _theme.default.imageThumbnailBorderRadius,
170
+ borderRadius: _theme.default.imageBorderRadius,
171
171
  backgroundColor: '#FFFFFF',
172
- border: "1px solid ".concat(_theme.default.imageThumbnailBorderColor),
172
+ border: "1px solid ".concat(_theme.default.imageBorderColor),
173
173
  '& $inner': {
174
174
  top: 4,
175
175
  left: 4,
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAM9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CA8atC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAM9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CA8ftC,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/cjs/menu/menu.js CHANGED
@@ -15,7 +15,9 @@ var menuStyle = {
15
15
  width: '100%',
16
16
  backgroundColor: _theme.default.menuItemBackgroundColor,
17
17
  transition: "width ".concat(animationDuration, " ").concat(transitionFunc),
18
- color: _theme.default.menuFontColor
18
+ color: _theme.default.menuFontColor,
19
+ display: 'flex',
20
+ flexDirection: 'column'
19
21
  },
20
22
  wrapperLight: {},
21
23
  wrapperDark: {
@@ -35,7 +37,6 @@ var menuStyle = {
35
37
  justifyContent: 'center'
36
38
  },
37
39
  '& $titleContent': {
38
- opacity: 0,
39
40
  alignItems: 'center',
40
41
  whiteSpace: 'nowrap',
41
42
  overflow: 'hidden'
@@ -92,12 +93,46 @@ var menuStyle = {
92
93
  }
93
94
  },
94
95
  scrollbox: {
96
+ flex: 1,
97
+ minWidth: 0,
98
+ minHeight: 0,
99
+ overflow: 'auto',
100
+ // scrollbarWidth: 'thin',
101
+ // '$wrapperLight &': {
102
+ // scrollbarColor: 'rgba(0, 0, 0, 0.1) transparent',
103
+ // '&::-moz-scrollbar-thumb:hover': {
104
+ // backgroundColor: 'rgba(0, 0, 0, 0.2)',
105
+ // },
106
+ // },
107
+ // '$wrapperDark &': {
108
+ // scrollbarColor: 'rgba(255, 255, 255, 0.4) transparent',
109
+ // },
95
110
  '$wrapperVertical &': {
96
- overflow: 'hidden',
97
- height: '100%'
111
+ overflowX: 'hidden'
98
112
  },
99
113
  '$wrapperHorizontal &': {
100
- overflow: 'hidden'
114
+ overflowY: 'hidden'
115
+ },
116
+ '&::-webkit-scrollbar': {
117
+ width: '6px',
118
+ height: '6px'
119
+ },
120
+ '&::-webkit-scrollbar-thumb': {
121
+ border: '0px solid transparent',
122
+ backgroundClip: 'content-box',
123
+ borderRadius: '11px',
124
+ '$wrapperLight &': {
125
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
126
+ '&:hover': {
127
+ backgroundColor: 'rgba(0, 0, 0, 0.1)'
128
+ }
129
+ },
130
+ '$wrapperDark &': {
131
+ backgroundColor: 'rgba(255, 255, 255, 0.4)',
132
+ '&:hover': {
133
+ backgroundColor: 'rgba(255, 255, 255, 0.5)'
134
+ }
135
+ }
101
136
  }
102
137
  },
103
138
  root: {
@@ -112,11 +147,9 @@ var menuStyle = {
112
147
  }
113
148
  },
114
149
  wrapperInline: {},
115
- wrapperVertical: {
116
- position: 'relative'
117
- },
150
+ wrapperVertical: {},
118
151
  wrapperHorizontal: {
119
- position: 'relative'
152
+ flexDirection: 'row'
120
153
  },
121
154
  wrapperHasOpen: {},
122
155
  children: {
@@ -147,6 +180,9 @@ var menuStyle = {
147
180
  alignItems: 'center',
148
181
  cursor: 'pointer',
149
182
  position: 'relative',
183
+ '& a': {
184
+ transition: 'none'
185
+ },
150
186
  '[data-soui-theme=light] &': {
151
187
  color: _theme.default.menuItemFontColor,
152
188
  backgroundColor: _theme.default.menuItemBackgroundColor,
@@ -177,6 +213,12 @@ var menuStyle = {
177
213
  color: _theme.default.menuItemActiveFontColor
178
214
  }
179
215
  },
216
+ '[data-soui-theme=light] $itemDisabled&': {
217
+ color: _theme.default.menuItemActiveDisabledFontColor,
218
+ '& $icon': {
219
+ color: _theme.default.menuItemActiveDisabledFontColor
220
+ }
221
+ },
180
222
  '[data-soui-theme=dark][data-soui-mode=inline] &::before, [data-soui-theme=dark][data-soui-mode=vertical] &::before': {
181
223
  content: '""',
182
224
  position: 'absolute',
@@ -185,7 +227,25 @@ var menuStyle = {
185
227
  bottom: 0,
186
228
  width: '3px',
187
229
  backgroundColor: _theme.default.menuDarkItemActiveBackgroundColor
230
+ },
231
+ '$wrapperCollpase[data-soui-theme=light] $root > &': {
232
+ color: _theme.default.menuItemCollpaseActiveFontColor,
233
+ backgroundColor: _theme.default.menuItemCollpaseActiveBackgroundColor,
234
+ '& $icon': {
235
+ color: _theme.default.menuItemCollpaseActiveFontColor
236
+ }
237
+ },
238
+ '$wrapperCollpase[data-soui-theme=dark] $root > &': {
239
+ color: _theme.default.menuDarkItemCollpaseActiveFontColor,
240
+ backgroundColor: _theme.default.menuDarkItemCollpaseActiveBackgroundColor,
241
+ '& $icon': {
242
+ color: _theme.default.menuDarkItemCollpaseActiveFontColor
243
+ }
244
+ },
245
+ '$wrapperCollpase $root > &::before': {
246
+ display: 'none'
188
247
  }
248
+
189
249
  // '[data-soui-theme=light][data-soui-mode=vertical]:not($wrapperCollpase) &': {
190
250
  // '&::before': {
191
251
  // display: 'block',
@@ -209,13 +269,29 @@ var menuStyle = {
209
269
  color: _theme.default.menuItemActiveFontColor
210
270
  }
211
271
  },
272
+ '[data-soui-theme=light] $itemDisabled&': {
273
+ color: _theme.default.menuItemActiveDisabledFontColor,
274
+ '& $icon': {
275
+ color: _theme.default.menuItemActiveDisabledFontColor
276
+ }
277
+ },
212
278
  '$wrapperCollpase[data-soui-theme=light] $root > &': {
213
- color: _theme.default.menuItemActiveFontColor,
214
- backgroundColor: _theme.default.menuItemBackgroundColor,
279
+ color: _theme.default.menuItemCollpaseActiveFontColor,
280
+ backgroundColor: _theme.default.menuItemCollpaseActiveBackgroundColor,
215
281
  '& $icon': {
216
- color: _theme.default.menuItemActiveFontColor
282
+ color: _theme.default.menuItemCollpaseActiveFontColor
217
283
  }
218
284
  },
285
+ '$wrapperCollpase[data-soui-theme=dark] $root > &': {
286
+ color: _theme.default.menuDarkItemCollpaseActiveFontColor,
287
+ backgroundColor: _theme.default.menuDarkItemCollpaseActiveBackgroundColor,
288
+ '& $icon': {
289
+ color: _theme.default.menuDarkItemCollpaseActiveFontColor
290
+ }
291
+ },
292
+ '$wrapperCollpase $root > &::before': {
293
+ display: 'none'
294
+ },
219
295
  '[data-soui-theme=dark]:not($wrapperCollpase) &': {
220
296
  color: _theme.default.menuDarkItemActiveFontColor,
221
297
  backgroundColor: _theme.default.menuDarkItemActiveBackgroundColor,
@@ -280,7 +356,7 @@ var menuStyle = {
280
356
  itemContentFront: {},
281
357
  itemContentBack: {},
282
358
  header: {
283
- padding: "".concat(_theme.default.menuTitlePaddingY, " ").concat(_theme.default.menuTitlePaddingX),
359
+ padding: "".concat(_theme.default.menuHeaderPaddingX, " ").concat(_theme.default.menuHeaderPaddingY),
284
360
  width: '100%',
285
361
  transition: "width ".concat(animationDuration, " ").concat(transitionFunc),
286
362
  color: _theme.default.menuFontColor,
@@ -337,9 +413,11 @@ var menuStyle = {
337
413
  display: 'inline-flex'
338
414
  },
339
415
  titleContent: {
340
- whiteSpace: 'pre-wrap',
341
- transition: "opacity ".concat(animationDuration, " ").concat(transitionFunc),
342
- opacity: 1
416
+ whiteSpace: 'pre-wrap'
417
+ // '$wrapperCollpase &': {
418
+ // transition: `opacity ${animationDuration} ${transitionFunc}`,
419
+ // },
420
+ // opacity: 1,
343
421
  },
344
422
  expand: {
345
423
  alignSelf: 'stretch',
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAE1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA6FlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAE1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CAoElD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -17,36 +17,12 @@ var menuSearchStyle = {
17
17
  wrapperDark: (_wrapperDark = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_wrapperDark, (0, _theme.getTokenName)('inputClearColor'), _theme.default.menuSearchDarkClearColor), (0, _theme.getTokenName)('inputHoverClearColor'), _theme.default.menuSearchDarkHoverClearColor), (0, _theme.getTokenName)('inputBorderColor'), _theme.default.menuSearchDarkBackgroundColor), (0, _theme.getTokenName)('inputBackgroundColor'), _theme.default.menuSearchDarkBackgroundColor), (0, _theme.getTokenName)('inputFontColor'), _theme.default.menuSearchDarkFontColor), (0, _theme.getTokenName)('inputPlaceholderFontColor'), _theme.default.menuSearchDarkPlaceholderFontColor), (0, _theme.getTokenName)('inputHoverBorderColor'), _theme.default.menuSearchDarkHoverBorderColor), (0, _theme.getTokenName)('inputHoverBackgroundColor'), _theme.default.menuSearchDarkHoverBackgroundColor), (0, _theme.getTokenName)('inputFocusBorderColor'), _theme.default.menuSearchDarkFocusBorderColor), (0, _theme.getTokenName)('inputFocusBackgroundColor'), _theme.default.menuSearchDarkFocusBackgroundColor), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_wrapperDark, (0, _theme.getTokenName)('inputFocusShadow'), _theme.default.menuSearchDarkFocusShadow), (0, _theme.getTokenName)('inputDisabledBorderColor'), _theme.default.menuSearchDarkBackgroundColor), (0, _theme.getTokenName)('inputDisabledBackgroundColor'), _theme.default.menuSearchDarkBackgroundColor), (0, _theme.getTokenName)('inputDisabledFontColor'), _theme.default.menuSearchDarkFontColor), (0, _theme.getTokenName)('inputDisabledPlaceholderFontColor'), _theme.default.menuSearchDarkPlaceholderFontColor)),
18
18
  wrapperLight: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, (0, _theme.getTokenName)('inputBorderColor'), _theme.default.menuSearchBackgroundColor), (0, _theme.getTokenName)('inputBackgroundColor'), _theme.default.menuSearchBackgroundColor), (0, _theme.getTokenName)('inputHoverBorderColor'), _theme.default.menuSearchHoverBorderColor), (0, _theme.getTokenName)('inputHoverBackgroundColor'), _theme.default.menuSearchHoverBackgroundColor), (0, _theme.getTokenName)('inputDisabledBorderColor'), _theme.default.menuSearchDisabledBackgroundColor), (0, _theme.getTokenName)('inputDisabledBackgroundColor'), _theme.default.menuSearchDisabledBackgroundColor), (0, _theme.getTokenName)('inputClearColor'), _theme.default.menuSearchClearColor), (0, _theme.getTokenName)('inputHoverClearColor'), _theme.default.menuSearchHoverClearColor),
19
19
  wrapperCollapsed: {
20
- borderRadius: '50%',
21
- padding: _theme.default.menuSearchPaddingX,
22
20
  cursor: 'pointer',
21
+ width: _theme.default.menuSearchCollpaseSize,
22
+ height: _theme.default.menuSearchCollpaseSize,
23
23
  lineHeight: 1,
24
- '$wrapperLight&': {
25
- background: _theme.default.menuSearchBackgroundColor,
26
- border: "1px solid ".concat(_theme.default.menuSearchBackgroundColor),
27
- '&:hover': {
28
- background: _theme.default.menuSearchHoverBackgroundColor,
29
- borderColor: _theme.default.menuSearchHoverBorderColor
30
- },
31
- '$wrapperDisabled&': {
32
- background: _theme.default.menuSearchDisabledBackgroundColor,
33
- borderColor: _theme.default.menuSearchDisabledBackgroundColor
34
- }
35
- },
36
- '$wrapperDark&': {
37
- background: _theme.default.menuSearchDarkBackgroundColor,
38
- border: "1px solid ".concat(_theme.default.menuSearchDarkBackgroundColor),
39
- '&:hover': {
40
- background: _theme.default.menuSearchDarkHoverBackgroundColor,
41
- borderColor: _theme.default.menuSearchDarkHoverBorderColor
42
- },
43
- '$wrapperDisabled&': {
44
- background: _theme.default.menuSearchDarkBackgroundColor,
45
- borderColor: _theme.default.menuSearchDarkBackgroundColor,
46
- '&$search': {
47
- color: _theme.default.menuSearchDarkIconColor
48
- }
49
- }
24
+ '& input': {
25
+ opacity: 0
50
26
  }
51
27
  },
52
28
  wrapperDisabled: {
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["progress.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AAEtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CAkI9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["progress.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AAEtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CAiJ9C,CAAC;AAEF,eAAe,aAAa,CAAC"}