@sheinx/shineout-style 3.2.6-beta.0 → 3.3.0-beta.10

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 (115) hide show
  1. package/cjs/alert/alert.d.ts.map +1 -1
  2. package/cjs/alert/alert.js +11 -5
  3. package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
  4. package/cjs/breadcrumb/breadcrumb.js +9 -2
  5. package/cjs/button/button.d.ts.map +1 -1
  6. package/cjs/button/button.js +22 -12
  7. package/cjs/card/card.d.ts.map +1 -1
  8. package/cjs/card/card.js +14 -10
  9. package/cjs/cascader/cascader.d.ts.map +1 -1
  10. package/cjs/cascader/cascader.js +11 -3
  11. package/cjs/collapse/collapse-item.js +3 -3
  12. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  13. package/cjs/date-picker/date-picker.js +4 -1
  14. package/cjs/descriptions/descriptions.js +2 -2
  15. package/cjs/divider/divider.d.ts.map +1 -1
  16. package/cjs/divider/divider.js +1 -0
  17. package/cjs/dropdown/dropdown.d.ts.map +1 -1
  18. package/cjs/dropdown/dropdown.js +4 -3
  19. package/cjs/empty/empty.d.ts.map +1 -1
  20. package/cjs/empty/empty.js +1 -0
  21. package/cjs/form/form-item.d.ts.map +1 -1
  22. package/cjs/form/form-item.js +8 -3
  23. package/cjs/image/image.js +5 -5
  24. package/cjs/input/input.d.ts.map +1 -1
  25. package/cjs/input/input.js +6 -1
  26. package/cjs/list/list.js +2 -2
  27. package/cjs/menu/menu.d.ts.map +1 -1
  28. package/cjs/menu/menu.js +2 -1
  29. package/cjs/modal/modal.d.ts.map +1 -1
  30. package/cjs/modal/modal.js +10 -4
  31. package/cjs/pagination/pagination.d.ts.map +1 -1
  32. package/cjs/pagination/pagination.js +13 -2
  33. package/cjs/progress/progress.d.ts.map +1 -1
  34. package/cjs/progress/progress.js +43 -6
  35. package/cjs/rate/rate.d.ts.map +1 -1
  36. package/cjs/rate/rate.js +2 -1
  37. package/cjs/select/select.d.ts.map +1 -1
  38. package/cjs/select/select.js +4 -3
  39. package/cjs/slider/slider.js +1 -1
  40. package/cjs/spin/spin.js +1 -1
  41. package/cjs/steps/steps.d.ts.map +1 -1
  42. package/cjs/steps/steps.js +4 -1
  43. package/cjs/switch/switch.d.ts.map +1 -1
  44. package/cjs/switch/switch.js +7 -0
  45. package/cjs/tabs/tabs.d.ts.map +1 -1
  46. package/cjs/tabs/tabs.js +93 -46
  47. package/cjs/tag/tag.d.ts.map +1 -1
  48. package/cjs/tag/tag.js +13 -4
  49. package/cjs/transfer/transfer.d.ts.map +1 -1
  50. package/cjs/transfer/transfer.js +12 -5
  51. package/cjs/tree/tree.d.ts.map +1 -1
  52. package/cjs/tree/tree.js +20 -7
  53. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  54. package/cjs/tree-select/tree-select.js +4 -1
  55. package/cjs/version.d.ts +1 -1
  56. package/cjs/version.d.ts.map +1 -1
  57. package/cjs/version.js +1 -1
  58. package/esm/alert/alert.d.ts.map +1 -1
  59. package/esm/alert/alert.js +11 -5
  60. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  61. package/esm/breadcrumb/breadcrumb.js +9 -2
  62. package/esm/button/button.d.ts.map +1 -1
  63. package/esm/button/button.js +22 -12
  64. package/esm/card/card.d.ts.map +1 -1
  65. package/esm/card/card.js +14 -10
  66. package/esm/cascader/cascader.d.ts.map +1 -1
  67. package/esm/cascader/cascader.js +11 -3
  68. package/esm/collapse/collapse-item.js +3 -3
  69. package/esm/date-picker/date-picker.d.ts.map +1 -1
  70. package/esm/date-picker/date-picker.js +4 -1
  71. package/esm/descriptions/descriptions.js +2 -2
  72. package/esm/divider/divider.d.ts.map +1 -1
  73. package/esm/divider/divider.js +1 -0
  74. package/esm/dropdown/dropdown.d.ts.map +1 -1
  75. package/esm/dropdown/dropdown.js +4 -3
  76. package/esm/empty/empty.d.ts.map +1 -1
  77. package/esm/empty/empty.js +1 -0
  78. package/esm/form/form-item.d.ts.map +1 -1
  79. package/esm/form/form-item.js +8 -3
  80. package/esm/image/image.js +5 -5
  81. package/esm/input/input.d.ts.map +1 -1
  82. package/esm/input/input.js +6 -1
  83. package/esm/list/list.js +2 -2
  84. package/esm/menu/menu.d.ts.map +1 -1
  85. package/esm/menu/menu.js +2 -1
  86. package/esm/modal/modal.d.ts.map +1 -1
  87. package/esm/modal/modal.js +10 -4
  88. package/esm/pagination/pagination.d.ts.map +1 -1
  89. package/esm/pagination/pagination.js +13 -2
  90. package/esm/progress/progress.d.ts.map +1 -1
  91. package/esm/progress/progress.js +43 -6
  92. package/esm/rate/rate.d.ts.map +1 -1
  93. package/esm/rate/rate.js +2 -1
  94. package/esm/select/select.d.ts.map +1 -1
  95. package/esm/select/select.js +4 -3
  96. package/esm/slider/slider.js +1 -1
  97. package/esm/spin/spin.js +1 -1
  98. package/esm/steps/steps.d.ts.map +1 -1
  99. package/esm/steps/steps.js +4 -1
  100. package/esm/switch/switch.d.ts.map +1 -1
  101. package/esm/switch/switch.js +7 -0
  102. package/esm/tabs/tabs.d.ts.map +1 -1
  103. package/esm/tabs/tabs.js +93 -46
  104. package/esm/tag/tag.d.ts.map +1 -1
  105. package/esm/tag/tag.js +13 -4
  106. package/esm/transfer/transfer.d.ts.map +1 -1
  107. package/esm/transfer/transfer.js +12 -5
  108. package/esm/tree/tree.d.ts.map +1 -1
  109. package/esm/tree/tree.js +20 -7
  110. package/esm/tree-select/tree-select.d.ts.map +1 -1
  111. package/esm/tree-select/tree-select.js +2 -1
  112. package/esm/version.d.ts +1 -1
  113. package/esm/version.d.ts.map +1 -1
  114. package/esm/version.js +1 -1
  115. package/package.json +3 -3
@@ -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"}
@@ -56,10 +56,6 @@ var progressStyle = {
56
56
  height: '100%',
57
57
  boxSizing: 'border-box',
58
58
  borderRadius: 'inherit',
59
- '$lineInner &': {
60
- display: 'flex',
61
- alignItems: 'center'
62
- },
63
59
  '$wrapperSuccess &': {
64
60
  backgroundColor: _theme.default.progressSuccessFrontBackgroundColor
65
61
  },
@@ -71,6 +67,22 @@ var progressStyle = {
71
67
  },
72
68
  '$wrapperDanger &': {
73
69
  backgroundColor: _theme.default.progressDangerFrontBackgroundColor
70
+ },
71
+ '$lineInner &': {
72
+ display: 'flex',
73
+ alignItems: 'center',
74
+ '$wrapperSuccess&': {
75
+ backgroundColor: _theme.default.progressLineInnerSuccessFrontBackgroundColor
76
+ },
77
+ '$wrapperWarning&': {
78
+ backgroundColor: _theme.default.progressLineInnerWarningFrontBackgroundColor
79
+ },
80
+ '$wrapperInfo&': {
81
+ backgroundColor: _theme.default.progressLineInnerInfoFrontBackgroundColor
82
+ },
83
+ '$wrapperDanger&': {
84
+ backgroundColor: _theme.default.progressLineInnerDangerFrontBackgroundColor
85
+ }
74
86
  }
75
87
  },
76
88
  content: {
@@ -80,7 +92,19 @@ var progressStyle = {
80
92
  '$lineInner &': {
81
93
  marginLeft: 'auto',
82
94
  padding: "0 ".concat(_theme.default.progressLineInnerPaddingX),
83
- color: _theme.default.progressLineInnerFontColor
95
+ fontWeight: _theme.default.progressLineFontWeight
96
+ },
97
+ '$wrapperSuccess &': {
98
+ color: _theme.default.progressSuccessInnerFontColor
99
+ },
100
+ '$wrapperWarning &': {
101
+ color: _theme.default.progressWarningInnerFontColor
102
+ },
103
+ '$wrapperInfo &': {
104
+ color: _theme.default.progressInfoInnerFontColor
105
+ },
106
+ '$wrapperDanger &': {
107
+ color: _theme.default.progressDangerInnerFontColor
84
108
  },
85
109
  '$lineInnerRight &&': {
86
110
  // marginLeft: token.progressLineInnerPaddingX,
@@ -97,7 +121,7 @@ var progressStyle = {
97
121
  background: _theme.default.progressLineBackgroundColor,
98
122
  padding: '3px 8px',
99
123
  borderRadius: '2px',
100
- color: _theme.default.progressLineColor,
124
+ color: _theme.default.progressLinePopFontColor,
101
125
  boxShadow: '0 3px 6px -4px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.08), 0 9px 28px 8px rgba(0,0,0,.05)'
102
126
  },
103
127
  linePopValue: {},
@@ -138,6 +162,19 @@ var progressStyle = {
138
162
  '& $icon': {
139
163
  width: '31.25%',
140
164
  height: '31.25%'
165
+ },
166
+ fontWeight: _theme.default.progressCircleFontWeight,
167
+ '&$wrapperSuccess $content': {
168
+ color: _theme.default.progressCircleSuccessFontColor
169
+ },
170
+ '&$wrapperWarning $content': {
171
+ color: _theme.default.progressCircleWarningFontColor
172
+ },
173
+ '&$wrapperInfo $content': {
174
+ color: _theme.default.progressCircleInfoFontColor
175
+ },
176
+ '&$wrapperDanger $content': {
177
+ color: _theme.default.progressCircleDangerFontColor
141
178
  }
142
179
  },
143
180
  circleBg: {
@@ -1 +1 @@
1
- {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["rate.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;AAoB9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAmFtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["rate.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;AAoB9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAoFtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/cjs/rate/rate.js CHANGED
@@ -104,8 +104,9 @@ var rateStyle = {
104
104
  },
105
105
  text: {
106
106
  fontSize: _theme.default.rateFontSize,
107
+ fontWeight: _theme.default.rateFontWeight,
107
108
  color: _theme.default.rateFontColor,
108
- paddingLeft: 10
109
+ paddingLeft: _theme.default.rateTextGap
109
110
  },
110
111
  itemDisabled: {},
111
112
  itemAnimation: {
@@ -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,CAkf1C,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,CAmf1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -390,9 +390,9 @@ var selectStyle = _objectSpread(_objectSpread({
390
390
  marginLeft: 0
391
391
  },
392
392
  maxWidth: '80%',
393
- marginRight: 4,
394
- marginTop: _theme.default.selectPlaceholderMarginY,
395
- marginBottom: _theme.default.selectPlaceholderMarginY,
393
+ marginRight: _theme.default.selectTagMarginRight,
394
+ marginTop: _theme.default.selectTagMarginY,
395
+ marginBottom: _theme.default.selectTagMarginY,
396
396
  textWrap: 'nowrap',
397
397
  '&$hideTag': {
398
398
  marginRight: 0
@@ -448,6 +448,7 @@ var selectStyle = _objectSpread(_objectSpread({
448
448
  overflow: 'hidden',
449
449
  textOverflow: 'ellipsis',
450
450
  whiteSpace: 'nowrap',
451
+ height: '100%',
451
452
  color: _theme.default.selectOptionFontColor,
452
453
  fontSize: _theme.default.selectFontSize,
453
454
  lineHeight: _theme.default.lineHeightDynamic,
@@ -249,7 +249,7 @@ var sliderStyle = {
249
249
  '&::before': {
250
250
  content: '""',
251
251
  display: 'block',
252
- backgroundColor: '#ccc'
252
+ backgroundColor: _theme.default.sliderScaleLineBackgroundColor
253
253
  },
254
254
  '$wrapper:not($vertical) &': {
255
255
  marginTop: _theme.default.sliderScaleMarginY,
package/cjs/spin/spin.js CHANGED
@@ -90,7 +90,7 @@ var spinStyle = _objectSpread(_objectSpread({}, _animation.default), {}, {
90
90
  bottom: 0,
91
91
  height: '100%',
92
92
  width: '100%',
93
- background: '#FFFFFF',
93
+ background: _theme.default.spinBackgroundColor,
94
94
  opacity: 0.5
95
95
  }
96
96
  },
@@ -1 +1 @@
1
- {"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAEhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CAmpBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAEhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CAspBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -367,7 +367,10 @@ var stepsStyle = {
367
367
  iconWrapper: {
368
368
  display: 'inline-block',
369
369
  textAlign: 'center',
370
- borderRadius: '50%'
370
+ borderRadius: '50%',
371
+ '& svg': {
372
+ width: "calc(100% - 12px)"
373
+ }
371
374
  },
372
375
  dot: {
373
376
  '&$vertical': {
@@ -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,CAsK9C,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,CA6K9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -100,6 +100,7 @@ var switchStyle = _objectSpread(_objectSpread({}, animation), {}, {
100
100
  justifyContent: 'center',
101
101
  color: 'red',
102
102
  '$wrapperChecked &': {
103
+ backgroundColor: _theme.default.switchCheckedCircleFill,
103
104
  '&[dir=ltr]': {
104
105
  right: _theme.default.switchPaddingX,
105
106
  left: "calc(100% - ".concat(_theme.default.switchCircleSize, " - ").concat(_theme.default.switchPaddingX, ")")
@@ -141,6 +142,12 @@ var switchStyle = _objectSpread(_objectSpread({}, animation), {}, {
141
142
  left: _theme.default.switchLargePaddingX,
142
143
  top: _theme.default.switchLargePaddingY
143
144
  },
145
+ '$wrapperDisabled:not($wrapperChecked) &': {
146
+ backgroundColor: _theme.default.switchDisabledCircleFill
147
+ },
148
+ '$wrapperDisabled &': {
149
+ backgroundColor: _theme.default.switchCheckedDisabledCircleFill
150
+ },
144
151
  borderRadius: '50%',
145
152
  position: 'absolute',
146
153
  backgroundColor: _theme.default.switchCircleFill,
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAsSxC,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,WAAW,CAmc1C,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA8RxC,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,WAAW,CA0f1C,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/cjs/tabs/tabs.js CHANGED
@@ -183,12 +183,12 @@ var getLineStyle = function getLineStyle() {
183
183
  bottom: 0,
184
184
  left: 0,
185
185
  width: 2
186
- })),
187
- '& :not([data-soui-state="active"])$tab': {
188
- '&:after': {
189
- display: 'none'
190
- }
191
- }
186
+ }))
187
+ // '& :not([data-soui-state="active"])$tab': {
188
+ // '&:after': {
189
+ // display: 'none',
190
+ // },
191
+ // },
192
192
  },
193
193
  '&[data-soui-position^="right-"][data-soui-shape="line"]': {
194
194
  '&[dir=ltr]': _objectSpread({
@@ -214,12 +214,7 @@ var getLineStyle = function getLineStyle() {
214
214
  bottom: 0,
215
215
  right: 0,
216
216
  width: 2
217
- })),
218
- '& :not([data-soui-state="active"])$tab': {
219
- '&:after': {
220
- display: 'none'
221
- }
222
- }
217
+ }))
223
218
  },
224
219
  '&[data-soui-position^="top-"][data-soui-shape="line"]': _objectSpread({
225
220
  '& $hr': {
@@ -247,7 +242,13 @@ var getLineStyle = function getLineStyle() {
247
242
  })), {}, {
248
243
  '& :not([data-soui-state="active"])$tab': {
249
244
  '&:after': {
250
- display: 'none'
245
+ position: 'absolute',
246
+ content: '""',
247
+ top: 0,
248
+ left: 0,
249
+ width: '100%',
250
+ height: 1,
251
+ background: _theme.default.tabsBorderColor
251
252
  }
252
253
  }
253
254
  })
@@ -307,12 +308,6 @@ var getFillStyle = function getFillStyle() {
307
308
  color: _theme.default.tabsActiveFontColor
308
309
  }
309
310
  },
310
- '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):hover $fillInner': {
311
- background: _theme.default.tabsExtraFillHoverBackgroundColor
312
- },
313
- '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):active $fillInner': {
314
- background: _theme.default.tabsClickBackgroundColor
315
- },
316
311
  '&:before': {
317
312
  content: '""',
318
313
  position: 'absolute',
@@ -455,7 +450,10 @@ var tabsStyle = {
455
450
  },
456
451
  hr: {
457
452
  position: 'absolute',
458
- background: _theme.default.tabsBorderColor
453
+ background: _theme.default.tabsBorderColor,
454
+ '$headerWrapper[data-soui-shape="line"] &': {
455
+ background: _theme.default.tabsLineHrBackgroundColor
456
+ }
459
457
  },
460
458
  cardHr: {
461
459
  // aflter
@@ -664,23 +662,27 @@ var tabsStyle = {
664
662
  '$headerWrapper[data-soui-shape="card"] &': {
665
663
  '& $tab': {
666
664
  position: 'relative',
667
- border: "1px solid ".concat(_theme.default.tabsBorderColor),
668
- padding: "".concat(_theme.default.tabsTabPaddingY, " ").concat(_theme.default.tabsTabPaddingX),
669
- background: _theme.default.tabsBackgroundColor,
665
+ border: "1px solid ".concat(_theme.default.tabsCardBorderColor),
666
+ padding: "".concat(_theme.default.tabsCardPaddingY, " ").concat(_theme.default.tabsCardPaddingX),
667
+ color: _theme.default.tabsCardFontColor,
668
+ fontSize: _theme.default.tabsCardFontSize,
669
+ fontWeight: _theme.default.tabsCardFontWeight,
670
+ background: _theme.default.tabsCardBackgroundColor,
670
671
  '&[data-soui-state="active"]': {
671
- color: _theme.default.tabsActiveFontColor,
672
- background: _theme.default.tabsActiveBackgroundColor,
673
- fontWeight: 'bold'
672
+ color: _theme.default.tabsCardCheckedFontColor,
673
+ fontSize: _theme.default.tabsCardCheckedFontSize,
674
+ fontWeight: _theme.default.tabsCardCheckedFontWeight,
675
+ background: _theme.default.tabsCardCheckedBackgroundColor
674
676
  },
675
677
  '&[data-soui-state="disabled"]': {
676
- color: _theme.default.tabsDisabledFontColor,
678
+ color: _theme.default.tabsCardDisabledFontColor,
677
679
  cursor: 'not-allowed'
678
680
  },
679
681
  '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):hover': {
680
- background: _theme.default.tabsHoverBackgroundColor
682
+ background: _theme.default.tabsCardHoverBackgroundColor
681
683
  },
682
684
  '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):active': {
683
- background: _theme.default.tabsClickBackgroundColor
685
+ background: _theme.default.tabsCardActiveBackgroundColor
684
686
  }
685
687
  }
686
688
  },
@@ -688,17 +690,39 @@ var tabsStyle = {
688
690
  '& $tab': {
689
691
  position: 'relative',
690
692
  padding: "".concat(_theme.default.tabsLinePaddingY, " ").concat(_theme.default.tabsLinePaddingX),
691
- // background: '#FFF',
692
-
693
+ color: _theme.default.tabsLineFontColor,
694
+ fontSize: _theme.default.tabsLineFontSize,
695
+ fontWeight: _theme.default.tabsLineFontWeight,
696
+ background: _theme.default.tabsLineBackgroundColor,
693
697
  '&[data-soui-state="active"]': {
694
- color: _theme.default.tabsActiveFontColor,
695
- background: _theme.default.tabsActiveBackgroundColor,
696
- fontWeight: 'bold'
698
+ color: _theme.default.tabsLineCheckedFontColor,
699
+ fontSize: _theme.default.tabsLineCheckedFontSize,
700
+ background: _theme.default.tabsLineCheckedBackgroundColor,
701
+ fontWeight: _theme.default.tabsLineCheckedFontWeight,
702
+ '&:after': {
703
+ background: _theme.default.tabsLineAfterBackgroundColor
704
+ }
697
705
  },
698
706
  '&[data-soui-state="disabled"]': {
699
- color: _theme.default.tabsDisabledFontColor,
707
+ color: _theme.default.tabsLineDisabledFontColor,
700
708
  cursor: 'not-allowed'
701
709
  },
710
+ '[data-soui-position^="left-"] &': {
711
+ '&:after': {
712
+ width: 1,
713
+ right: 0,
714
+ left: 'auto',
715
+ height: '100%',
716
+ background: _theme.default.tabsLineHrBackgroundColor
717
+ }
718
+ },
719
+ '[data-soui-position^="right-"] &': {
720
+ '&:after': {
721
+ width: 1,
722
+ height: '100%',
723
+ background: _theme.default.tabsLineHrBackgroundColor
724
+ }
725
+ },
702
726
  '&:not([data-soui-state="active"])': {
703
727
  '&:after': {
704
728
  position: 'absolute',
@@ -707,45 +731,68 @@ var tabsStyle = {
707
731
  left: 0,
708
732
  width: '100%',
709
733
  height: 1,
710
- background: _theme.default.tabsBorderColor
734
+ background: _theme.default.tabsLineHrBackgroundColor
711
735
  }
712
736
  },
713
737
  '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):hover $lineInner': {
714
- background: _theme.default.tabsHoverBackgroundColor
738
+ background: _theme.default.tabsLineHoverBackgroundColor
715
739
  },
716
740
  '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):active $lineInner': {
717
- background: _theme.default.tabsClickBackgroundColor
741
+ background: _theme.default.tabsLineActiveBackgroundColor
718
742
  }
719
743
  }
720
744
  },
721
745
  '$headerWrapper[data-soui-shape="dash"] &': {
722
746
  '& $tab': {
723
747
  padding: "".concat(_theme.default.tabsLinePaddingY, " ").concat(_theme.default.tabsLinePaddingX),
748
+ color: _theme.default.tabsLineFontColor,
749
+ fontSize: _theme.default.tabsLineFontSize,
750
+ fontWeight: _theme.default.tabsLineFontWeight,
751
+ background: _theme.default.tabsLineBackgroundColor,
724
752
  '&[data-soui-state="active"]': {
725
- color: _theme.default.tabsActiveFontColor,
726
- background: _theme.default.tabsActiveBackgroundColor,
727
- fontWeight: 'bold'
753
+ color: _theme.default.tabsLineCheckedFontColor,
754
+ fontSize: _theme.default.tabsLineCheckedFontSize,
755
+ background: _theme.default.tabsLineCheckedBackgroundColor,
756
+ fontWeight: _theme.default.tabsLineCheckedFontWeight,
757
+ '&:after': {
758
+ background: _theme.default.tabsLineAfterBackgroundColor
759
+ }
728
760
  },
729
761
  '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):hover $lineInner': {
730
- background: _theme.default.tabsHoverBackgroundColor
762
+ background: _theme.default.tabsLineHoverBackgroundColor
731
763
  },
732
764
  '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):active $lineInner': {
733
- background: _theme.default.tabsClickBackgroundColor
765
+ background: _theme.default.tabsLineActiveBackgroundColor
734
766
  },
735
767
  '&[data-soui-state="disabled"]': {
736
- color: _theme.default.tabsDisabledFontColor,
768
+ color: _theme.default.tabsLineDisabledFontColor,
737
769
  cursor: 'not-allowed'
738
770
  }
739
771
  }
740
772
  },
741
773
  '$headerWrapper[data-soui-shape="fill"] &': {
742
774
  '& $tab': {
775
+ color: _theme.default.tabsFillFontColor,
776
+ fontSize: _theme.default.tabsFillFontSize,
777
+ fontWeight: _theme.default.tabsFillFontWeight,
778
+ background: _theme.default.tabsFillBackgroundColor,
743
779
  '&[data-soui-state="active"]': {
744
- fontWeight: 'bold'
780
+ // fontSize: Token.tabsFillCheckedFontSize,
781
+ '& $fillInner': {
782
+ color: _theme.default.tabsFillCheckedFontColor,
783
+ fontWeight: _theme.default.tabsFillCheckedFontWeight,
784
+ background: _theme.default.tabsFillCheckedBackgroundColor
785
+ }
745
786
  },
746
787
  '&[data-soui-state="disabled"]': {
747
- color: _theme.default.tabsDisabledFontColor,
788
+ color: _theme.default.tabsFillDisabledFontColor,
748
789
  cursor: 'not-allowed'
790
+ },
791
+ '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):hover $fillInner': {
792
+ background: _theme.default.tabsFillHoverBackgroundColor
793
+ },
794
+ '&:not([data-soui-state="active"]):not([data-soui-state="disabled"]):active $fillInner': {
795
+ background: _theme.default.tabsFillActiveBackgroundColor
749
796
  }
750
797
  }
751
798
  },
@@ -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;AA+I1C,QAAA,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,UAAU,CAwIxC,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;AA+I1C,QAAA,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,UAAU,CAiJxC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
package/cjs/tag/tag.js CHANGED
@@ -63,7 +63,7 @@ var tag = function tag(type) {
63
63
  backgroundColor: _theme.default["tag".concat(type, "FillDisabledBackgroundColor")],
64
64
  border: "1px solid ".concat(_theme.default["tag".concat(type, "FillDisabledBorderColor")]),
65
65
  '& $closeIconWrapper': {
66
- fill: _theme.default["tag".concat(type, "FillFontColor")],
66
+ fill: _theme.default["tag".concat(type, "FillDisabledFontColor")],
67
67
  '&:hover': {
68
68
  fill: _theme.default["tag".concat(type, "FillFontColor")],
69
69
  backgroundColor: 'transparent'
@@ -73,8 +73,8 @@ var tag = function tag(type) {
73
73
  },
74
74
  // outline 边框风格
75
75
  '&$outline': {
76
- background: '#fff',
77
- color: _theme.default["tag".concat(type, "FontColor")],
76
+ background: _theme.default["tag".concat(type, "OutlineBackgroundColor")],
77
+ color: _theme.default["tag".concat(type, "OutlineFontColor")],
78
78
  border: "1px solid ".concat(_theme.default["tag".concat(type, "OutlineBorderColor")]),
79
79
  '& $closeIconWrapper': {
80
80
  // hover
@@ -124,8 +124,9 @@ var tag = function tag(type) {
124
124
  var TagStyle = {
125
125
  tag: {
126
126
  display: 'inline-flex',
127
- padding: "0 ".concat(_theme.default.tagPaddingX),
127
+ padding: "".concat(_theme.default.tagPaddingY, " ").concat(_theme.default.tagPaddingX),
128
128
  fontSize: _theme.default.tagFontSize,
129
+ fontWeight: _theme.default.tagFontWeight,
129
130
  borderRadius: _theme.default.tagBorderRadius,
130
131
  boxSizing: 'border-box',
131
132
  lineHeight: "calc(".concat(_theme.default.tagFontSize, " + 4px)"),
@@ -154,6 +155,8 @@ var TagStyle = {
154
155
  large: {
155
156
  fontSize: _theme.default.tagLargeFontSize,
156
157
  lineHeight: "calc(".concat(_theme.default.tagLargeFontSize, " + 8px)"),
158
+ fontWeight: _theme.default.tagLargeFontWeight,
159
+ borderRadius: _theme.default.tagLargeBorderRadius,
157
160
  padding: "".concat(_theme.default.tagLargePaddingY, " ").concat(_theme.default.tagLargePaddingX),
158
161
  '& $closeIconWrapper': {
159
162
  '& svg': {
@@ -163,8 +166,14 @@ var TagStyle = {
163
166
  }
164
167
  },
165
168
  small: {
169
+ fontSize: _theme.default.tagSmallFontSize,
166
170
  lineHeight: "calc(".concat(_theme.default.tagSmallFontSize, " + 6px)"),
167
171
  padding: "0 ".concat(_theme.default.tagSmallPaddingX),
172
+ fontWeight: _theme.default.tagSmallFontWeight,
173
+ borderRadius: _theme.default.tagSmallBorderRadius,
174
+ '& $container': {
175
+ lineHeight: "calc(".concat(_theme.default.tagSmallFontSize, " + 6px)")
176
+ },
168
177
  '& $wrapper': {
169
178
  lineHeight: "calc(".concat(_theme.default.tagSmallFontSize, " + 6px)")
170
179
  },
@@ -1 +1 @@
1
- {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,eAAe,CAAC;AAElD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CAuL1C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,eAAe,CAAC;AAElD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,aAAa,CA8L1C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -95,7 +95,7 @@ var TransferStyle = {
95
95
  marginLeft: 3,
96
96
  '& svg': {
97
97
  width: 14,
98
- color: _theme.default.transferIconColor
98
+ color: _theme.default.transferRemoveIconColor
99
99
  },
100
100
  '&:hover': {
101
101
  background: _theme.default.transferIconBackgroundColor
@@ -153,7 +153,9 @@ var TransferStyle = {
153
153
  alignItems: 'center',
154
154
  boxSizing: 'border-box',
155
155
  justifyContent: 'space-between',
156
- background: _theme.default.transferHeaderBackgroundColor
156
+ background: _theme.default.transferHeaderBackgroundColor,
157
+ borderRadius: "".concat(_theme.default.transferBorderRadius, " ").concat(_theme.default.transferBorderRadius, " 0 0"),
158
+ borderBottom: "1px solid ".concat(_theme.default.transferHeaderBorderColor)
157
159
  },
158
160
  spinContainer: {},
159
161
  title: {
@@ -163,11 +165,14 @@ var TransferStyle = {
163
165
  count: {
164
166
  fontSize: _theme.default.transferFontSize
165
167
  },
166
- list: {},
168
+ list: {
169
+ background: _theme.default.transferBackgroundColor
170
+ },
167
171
  footer: {
168
172
  height: 48,
169
173
  boxSizing: 'border-box',
170
- borderTop: "1px solid ".concat(_theme.default.transferBorderColor)
174
+ borderTop: "1px solid ".concat(_theme.default.transferFooterBorderColor),
175
+ background: _theme.default.transferFooterBackgroundColor
171
176
  },
172
177
  item: {
173
178
  padding: '1px 4px',
@@ -189,10 +194,12 @@ var TransferStyle = {
189
194
  }
190
195
  },
191
196
  itemWrapper: {
192
- borderRadius: _theme.default.transferBorderRadius,
197
+ borderRadius: _theme.default.transferItemBorderRadius,
193
198
  cursor: 'pointer',
199
+ height: '100%',
194
200
  '& $checkbox': {
195
201
  width: '100%',
202
+ height: '100%',
196
203
  padding: '5px 8px',
197
204
  marginRight: 0
198
205
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["tree.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;AAE9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAuNtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["tree.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;AAE9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAqOtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/cjs/tree/tree.js CHANGED
@@ -114,6 +114,17 @@ var treeStyle = {
114
114
  inlineContent: {
115
115
  display: 'inline-flex'
116
116
  },
117
+ contentDisabled: {
118
+ '& $content[data-active="true"]': {
119
+ background: _theme.default.treeContentDisabledBackgroundColor
120
+ },
121
+ '& $content:hover:not([data-active="true"])': {
122
+ background: 'none',
123
+ '& $text': {
124
+ color: _theme.default.treeContentDisabledFontColor
125
+ }
126
+ }
127
+ },
117
128
  content: {
118
129
  flex: 1,
119
130
  display: 'flex',
@@ -137,20 +148,22 @@ var treeStyle = {
137
148
  '&[dir=rtl][data-expanded="true"]::before': {
138
149
  right: -12
139
150
  },
151
+ '$contentDisabled &': {
152
+ '& $text': {
153
+ color: _theme.default.treeContentDisabledFontColor
154
+ }
155
+ },
140
156
  '&[data-active="true"]': {
141
157
  background: _theme.default.treeContentActiveBackgroundColor,
142
158
  '& $text': {
143
159
  color: _theme.default.treeContentActiveFontColor
144
160
  }
145
161
  },
146
- // '&[data-disabled="true"]': {
147
- // cursor: 'not-allowed',
148
- // },
149
- // '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
150
- // background: Token.treeContentHoverBackgroundColor,
151
- // },
152
162
  '&:hover:not([data-active="true"])': {
153
- background: _theme.default.treeContentHoverBackgroundColor
163
+ background: _theme.default.treeContentHoverBackgroundColor,
164
+ '& $text': {
165
+ color: _theme.default.treeContentHoverFontColor
166
+ }
154
167
  }
155
168
  },
156
169
  checkbox: {
@@ -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,CAgdlD,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,CAydlD,CAAC;AACF,eAAe,eAAe,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; }
@@ -144,6 +146,7 @@ var treeSelectStyle = _objectSpread(_objectSpread({
144
146
  }
145
147
  }
146
148
  }),
149
+ treeWrapper: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, (0, _theme.getTokenName)('treeFontColor'), _theme.default.treeSelectOptionFontColor), (0, _theme.getTokenName)('treeContentHoverFontColor'), _theme.default.treeSelectContentHoverFontColor), (0, _theme.getTokenName)('treeContentHoverBackgroundColor'), _theme.default.treeSelectContentHoverBackgroundColor), (0, _theme.getTokenName)('treeContentActiveBackgroundColor'), _theme.default.treeSelectContentActiveBackgroundColor), (0, _theme.getTokenName)('treeContentActiveFontColor'), _theme.default.treeSelectContentActiveFontColor), (0, _theme.getTokenName)('treeContentDisabledFontColor'), _theme.default.treeSelectContentDisabledFontColor), (0, _theme.getTokenName)('treeContentDisabledBackgroundColor'), _theme.default.treeSelectContentDisabledBackgroundColor),
147
150
  wrapperEmpty: {},
148
151
  wrapperOpen: {},
149
152
  wrapperDisabled: _objectSpread({}, wrapperDisabled)
package/cjs/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "3.2.6-beta.0";
1
+ declare const _default: "3.3.0-beta.10";
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,wBAA+B"}