advance-semi-theme 1.0.0

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 (169) hide show
  1. package/README.md +214 -0
  2. package/dist/antd/index.d.ts +159 -0
  3. package/dist/antd/index.js +1378 -0
  4. package/dist/antd/plugin.d.ts +34 -0
  5. package/dist/antd/plugin.js +12 -0
  6. package/dist/antd/styles/all.css +83 -0
  7. package/dist/antd/styles/base.css +202 -0
  8. package/dist/antd/styles/components/affix.css +7 -0
  9. package/dist/antd/styles/components/ai.css +242 -0
  10. package/dist/antd/styles/components/alert.css +149 -0
  11. package/dist/antd/styles/components/anchor.css +40 -0
  12. package/dist/antd/styles/components/app.css +9 -0
  13. package/dist/antd/styles/components/autocomplete.css +56 -0
  14. package/dist/antd/styles/components/avatar.css +37 -0
  15. package/dist/antd/styles/components/backtop.css +106 -0
  16. package/dist/antd/styles/components/badge.css +76 -0
  17. package/dist/antd/styles/components/breadcrumb.css +37 -0
  18. package/dist/antd/styles/components/button.css +528 -0
  19. package/dist/antd/styles/components/calendar.css +55 -0
  20. package/dist/antd/styles/components/card.css +113 -0
  21. package/dist/antd/styles/components/carousel.css +57 -0
  22. package/dist/antd/styles/components/cascader.css +99 -0
  23. package/dist/antd/styles/components/checkableTag.css +26 -0
  24. package/dist/antd/styles/components/checkbox.css +119 -0
  25. package/dist/antd/styles/components/collapse.css +74 -0
  26. package/dist/antd/styles/components/colorpicker.css +94 -0
  27. package/dist/antd/styles/components/configprovider.css +6 -0
  28. package/dist/antd/styles/components/datepicker.css +346 -0
  29. package/dist/antd/styles/components/descriptions.css +63 -0
  30. package/dist/antd/styles/components/divider.css +34 -0
  31. package/dist/antd/styles/components/drawer.css +71 -0
  32. package/dist/antd/styles/components/dropdown.css +94 -0
  33. package/dist/antd/styles/components/empty.css +40 -0
  34. package/dist/antd/styles/components/flex.css +19 -0
  35. package/dist/antd/styles/components/floatbutton.css +65 -0
  36. package/dist/antd/styles/components/form.css +90 -0
  37. package/dist/antd/styles/components/grid.css +11 -0
  38. package/dist/antd/styles/components/icon.css +18 -0
  39. package/dist/antd/styles/components/image.css +125 -0
  40. package/dist/antd/styles/components/input.css +459 -0
  41. package/dist/antd/styles/components/inputnumber.css +102 -0
  42. package/dist/antd/styles/components/layout.css +63 -0
  43. package/dist/antd/styles/components/list.css +109 -0
  44. package/dist/antd/styles/components/mentions.css +84 -0
  45. package/dist/antd/styles/components/menu.css +190 -0
  46. package/dist/antd/styles/components/message.css +68 -0
  47. package/dist/antd/styles/components/modal.css +124 -0
  48. package/dist/antd/styles/components/notification.css +89 -0
  49. package/dist/antd/styles/components/pageheader.css +62 -0
  50. package/dist/antd/styles/components/pagination.css +139 -0
  51. package/dist/antd/styles/components/popconfirm.css +64 -0
  52. package/dist/antd/styles/components/popover.css +40 -0
  53. package/dist/antd/styles/components/progress.css +105 -0
  54. package/dist/antd/styles/components/qrcode.css +43 -0
  55. package/dist/antd/styles/components/radio.css +166 -0
  56. package/dist/antd/styles/components/rate.css +47 -0
  57. package/dist/antd/styles/components/result.css +63 -0
  58. package/dist/antd/styles/components/scrollbar.css +22 -0
  59. package/dist/antd/styles/components/segmented.css +75 -0
  60. package/dist/antd/styles/components/select.css +282 -0
  61. package/dist/antd/styles/components/skeleton.css +96 -0
  62. package/dist/antd/styles/components/slider.css +119 -0
  63. package/dist/antd/styles/components/space.css +59 -0
  64. package/dist/antd/styles/components/spin.css +91 -0
  65. package/dist/antd/styles/components/statistic.css +48 -0
  66. package/dist/antd/styles/components/steps.css +176 -0
  67. package/dist/antd/styles/components/switch.css +128 -0
  68. package/dist/antd/styles/components/table.css +197 -0
  69. package/dist/antd/styles/components/tabs.css +212 -0
  70. package/dist/antd/styles/components/tag.css +286 -0
  71. package/dist/antd/styles/components/textArea.css +40 -0
  72. package/dist/antd/styles/components/timeline.css +106 -0
  73. package/dist/antd/styles/components/timepicker.css +105 -0
  74. package/dist/antd/styles/components/tooltip.css +37 -0
  75. package/dist/antd/styles/components/tour.css +114 -0
  76. package/dist/antd/styles/components/transfer.css +232 -0
  77. package/dist/antd/styles/components/tree.css +143 -0
  78. package/dist/antd/styles/components/treeselect.css +46 -0
  79. package/dist/antd/styles/components/typography.css +184 -0
  80. package/dist/antd/styles/components/upload.css +181 -0
  81. package/dist/antd/styles/components/watermark.css +16 -0
  82. package/dist/antd/styles/dark.css +533 -0
  83. package/dist/antd/styles/index.css +115 -0
  84. package/dist/antd/styles/overrides.css +147 -0
  85. package/dist/antd/styles/variables.css +259 -0
  86. package/dist/chunk-FMQWBDDZ.js +207 -0
  87. package/dist/chunk-NGAVTDQ2.js +200 -0
  88. package/dist/chunk-QQOB6AOA.js +213 -0
  89. package/dist/core/index.d.ts +179 -0
  90. package/dist/core/index.js +10 -0
  91. package/dist/core/variables.css +258 -0
  92. package/dist/element/index.d.ts +3 -0
  93. package/dist/element/index.js +17 -0
  94. package/dist/element/plugin.d.ts +34 -0
  95. package/dist/element/plugin.js +12 -0
  96. package/dist/element/styles/base.css +277 -0
  97. package/dist/element/styles/components/affix.css +7 -0
  98. package/dist/element/styles/components/alert.css +44 -0
  99. package/dist/element/styles/components/anchor.css +34 -0
  100. package/dist/element/styles/components/autocomplete.css +61 -0
  101. package/dist/element/styles/components/avatar.css +31 -0
  102. package/dist/element/styles/components/backtop.css +22 -0
  103. package/dist/element/styles/components/badge.css +48 -0
  104. package/dist/element/styles/components/breadcrumb.css +38 -0
  105. package/dist/element/styles/components/button.css +193 -0
  106. package/dist/element/styles/components/calendar.css +58 -0
  107. package/dist/element/styles/components/card.css +29 -0
  108. package/dist/element/styles/components/carousel.css +78 -0
  109. package/dist/element/styles/components/cascader.css +120 -0
  110. package/dist/element/styles/components/check-tag.css +35 -0
  111. package/dist/element/styles/components/checkbox.css +39 -0
  112. package/dist/element/styles/components/collapse.css +58 -0
  113. package/dist/element/styles/components/color-picker.css +82 -0
  114. package/dist/element/styles/components/config-provider.css +6 -0
  115. package/dist/element/styles/components/container.css +26 -0
  116. package/dist/element/styles/components/datepicker.css +165 -0
  117. package/dist/element/styles/components/descriptions-item.css +6 -0
  118. package/dist/element/styles/components/descriptions.css +51 -0
  119. package/dist/element/styles/components/dialog.css +91 -0
  120. package/dist/element/styles/components/divider.css +37 -0
  121. package/dist/element/styles/components/drawer.css +33 -0
  122. package/dist/element/styles/components/dropdown.css +30 -0
  123. package/dist/element/styles/components/empty.css +28 -0
  124. package/dist/element/styles/components/form.css +106 -0
  125. package/dist/element/styles/components/image.css +59 -0
  126. package/dist/element/styles/components/infinite-scroll.css +24 -0
  127. package/dist/element/styles/components/input-number.css +95 -0
  128. package/dist/element/styles/components/input.css +170 -0
  129. package/dist/element/styles/components/link.css +73 -0
  130. package/dist/element/styles/components/loading.css +50 -0
  131. package/dist/element/styles/components/mention.css +49 -0
  132. package/dist/element/styles/components/menu.css +140 -0
  133. package/dist/element/styles/components/message.css +88 -0
  134. package/dist/element/styles/components/notification.css +81 -0
  135. package/dist/element/styles/components/page-header.css +41 -0
  136. package/dist/element/styles/components/pagination.css +135 -0
  137. package/dist/element/styles/components/popconfirm.css +35 -0
  138. package/dist/element/styles/components/popover.css +22 -0
  139. package/dist/element/styles/components/progress.css +28 -0
  140. package/dist/element/styles/components/radio.css +64 -0
  141. package/dist/element/styles/components/rate.css +33 -0
  142. package/dist/element/styles/components/result.css +51 -0
  143. package/dist/element/styles/components/row.css +11 -0
  144. package/dist/element/styles/components/scrollbar.css +33 -0
  145. package/dist/element/styles/components/segmented.css +59 -0
  146. package/dist/element/styles/components/select.css +226 -0
  147. package/dist/element/styles/components/skeleton.css +65 -0
  148. package/dist/element/styles/components/slider.css +93 -0
  149. package/dist/element/styles/components/space.css +19 -0
  150. package/dist/element/styles/components/statistic.css +33 -0
  151. package/dist/element/styles/components/steps.css +122 -0
  152. package/dist/element/styles/components/switch.css +32 -0
  153. package/dist/element/styles/components/table.css +144 -0
  154. package/dist/element/styles/components/tabs.css +125 -0
  155. package/dist/element/styles/components/tag.css +150 -0
  156. package/dist/element/styles/components/text.css +50 -0
  157. package/dist/element/styles/components/time-picker.css +106 -0
  158. package/dist/element/styles/components/timeline.css +58 -0
  159. package/dist/element/styles/components/tooltip.css +22 -0
  160. package/dist/element/styles/components/tour.css +58 -0
  161. package/dist/element/styles/components/transfer.css +181 -0
  162. package/dist/element/styles/components/tree-select.css +28 -0
  163. package/dist/element/styles/components/tree.css +66 -0
  164. package/dist/element/styles/components/upload.css +96 -0
  165. package/dist/element/styles/components/virtualized.css +75 -0
  166. package/dist/element/styles/components/watermark.css +20 -0
  167. package/dist/element/styles/dark.css +82 -0
  168. package/dist/element/styles/index.css +107 -0
  169. package/package.json +78 -0
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Space 间距 - Semi Design 风格
3
+ */
4
+
5
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space {
6
+ display: inline-flex;
7
+ }
8
+
9
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-item {
10
+ display: flex;
11
+ }
12
+
13
+ /* 分割线 */
14
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-split {
15
+ color: var(--semi-color-border);
16
+ }
17
+
18
+ /* 紧凑模式 */
19
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-btn {
20
+ border-radius: 0;
21
+ }
22
+
23
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-btn:first-child {
24
+ border-start-start-radius: var(--semi-border-radius-medium);
25
+ border-end-start-radius: var(--semi-border-radius-medium);
26
+ }
27
+
28
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-btn:last-child {
29
+ border-start-end-radius: var(--semi-border-radius-medium);
30
+ border-end-end-radius: var(--semi-border-radius-medium);
31
+ }
32
+
33
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-input {
34
+ border-radius: 0;
35
+ }
36
+
37
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-input:first-child {
38
+ border-start-start-radius: var(--semi-border-radius-medium);
39
+ border-end-start-radius: var(--semi-border-radius-medium);
40
+ }
41
+
42
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-input:last-child {
43
+ border-start-end-radius: var(--semi-border-radius-medium);
44
+ border-end-end-radius: var(--semi-border-radius-medium);
45
+ }
46
+
47
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-select .ant-select-selector {
48
+ border-radius: 0;
49
+ }
50
+
51
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-select:first-child .ant-select-selector {
52
+ border-start-start-radius: var(--semi-border-radius-medium);
53
+ border-end-start-radius: var(--semi-border-radius-medium);
54
+ }
55
+
56
+ .semi:where([data-semi="all"], [data-semi-space]) .ant-space-compact .ant-select:last-child .ant-select-selector {
57
+ border-start-end-radius: var(--semi-border-radius-medium);
58
+ border-end-end-radius: var(--semi-border-radius-medium);
59
+ }
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Spin 加载中 - Semi Design 风格
3
+ */
4
+
5
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin {
6
+ color: var(--semi-color-primary);
7
+ }
8
+
9
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-dot-item {
10
+ background: var(--semi-color-primary);
11
+ }
12
+
13
+ /* 提示文字 */
14
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-text {
15
+ color: var(--semi-color-primary);
16
+ font-size: var(--semi-font-size-regular);
17
+ margin-top: 8px;
18
+ }
19
+
20
+ /* 容器 */
21
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-container {
22
+ transition: opacity var(--semi-transition-duration) var(--semi-transition-timing);
23
+ }
24
+
25
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-blur {
26
+ opacity: 0.5;
27
+ user-select: none;
28
+ pointer-events: none;
29
+ }
30
+
31
+ /* 嵌套容器 */
32
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-nested-loading {
33
+ position: relative;
34
+ }
35
+
36
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-nested-loading > div > .ant-spin {
37
+ position: absolute;
38
+ top: 0;
39
+ inset-inline-start: 0;
40
+ z-index: 4;
41
+ display: block;
42
+ width: 100%;
43
+ height: 100%;
44
+ max-height: 400px;
45
+ }
46
+
47
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
48
+ position: absolute;
49
+ top: 50%;
50
+ inset-inline-start: 50%;
51
+ margin: -10px;
52
+ }
53
+
54
+ /* 尺寸 */
55
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-sm .ant-spin-dot {
56
+ font-size: 14px;
57
+ }
58
+
59
+ .semi:where([data-semi="all"], [data-semi-spin]) .ant-spin-lg .ant-spin-dot {
60
+ font-size: 32px;
61
+ }
62
+
63
+ /* ==========================================================================
64
+ 全屏加载 (Portal 组件 - 渲染在 body 下)
65
+ ========================================================================== */
66
+
67
+ body.semi .ant-spin-fullscreen,
68
+ .semi .ant-spin-fullscreen {
69
+ background: rgba(255, 255, 255, 0.9);
70
+ }
71
+
72
+ body.semi.semi-dark .ant-spin-fullscreen,
73
+ body.semi-dark .ant-spin-fullscreen,
74
+ .semi.dark .ant-spin-fullscreen {
75
+ background: rgba(0, 0, 0, 0.8);
76
+ }
77
+
78
+ body.semi .ant-spin-fullscreen .ant-spin,
79
+ .semi .ant-spin-fullscreen .ant-spin {
80
+ color: var(--semi-color-primary);
81
+ }
82
+
83
+ body.semi .ant-spin-fullscreen .ant-spin-dot-item,
84
+ .semi .ant-spin-fullscreen .ant-spin-dot-item {
85
+ background: var(--semi-color-primary);
86
+ }
87
+
88
+ body.semi .ant-spin-fullscreen .ant-spin-text,
89
+ .semi .ant-spin-fullscreen .ant-spin-text {
90
+ color: var(--semi-color-primary);
91
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Statistic 统计数值 - Semi Design 风格
3
+ */
4
+
5
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic {
6
+ font-size: var(--semi-font-size-regular);
7
+ }
8
+
9
+ /* 标题 */
10
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-title {
11
+ color: var(--semi-color-text-2);
12
+ font-size: var(--semi-font-size-regular);
13
+ margin-bottom: 4px;
14
+ }
15
+
16
+ /* 内容 */
17
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content {
18
+ color: var(--semi-color-text-0);
19
+ font-size: 24px;
20
+ font-weight: 600;
21
+ }
22
+
23
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content-value-int {
24
+ font-size: 24px;
25
+ }
26
+
27
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content-value-decimal {
28
+ font-size: 16px;
29
+ }
30
+
31
+ /* 前缀和后缀 */
32
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content-prefix,
33
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content-suffix {
34
+ font-size: 16px;
35
+ }
36
+
37
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content-prefix {
38
+ margin-inline-end: 4px;
39
+ }
40
+
41
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-content-suffix {
42
+ margin-inline-start: 4px;
43
+ }
44
+
45
+ /* 倒计时 */
46
+ .semi:where([data-semi="all"], [data-semi-statistic]) .ant-statistic-countdown .ant-statistic-content {
47
+ font-variant-numeric: tabular-nums;
48
+ }
@@ -0,0 +1,176 @@
1
+ /**
2
+ * Steps 步骤条 - Semi Design 风格
3
+ * 参考 semi-foundation/steps/variables.scss
4
+ */
5
+
6
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps {
7
+ font-size: var(--semi-font-size-regular);
8
+ }
9
+
10
+ /* 步骤图标 - 等待状态 */
11
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-wait .ant-steps-item-icon {
12
+ align-items: center;
13
+ background: var(--semi-color-fill-0);
14
+ border: none;
15
+ border-radius: var(--semi-border-radius-circle, 50%);
16
+ display: flex;
17
+ height: 24px;
18
+ justify-content: center;
19
+ width: 24px;
20
+ }
21
+
22
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-wait .ant-steps-item-icon .ant-steps-icon {
23
+ color: var(--semi-color-text-2);
24
+ font-size: 12px;
25
+ font-weight: 600;
26
+ }
27
+
28
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-wait:hover .ant-steps-item-icon {
29
+ background: var(--semi-color-secondary-light-default);
30
+ }
31
+
32
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-wait:hover .ant-steps-item-icon .ant-steps-icon {
33
+ color: var(--semi-color-focus-border);
34
+ }
35
+
36
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-wait:hover .ant-steps-item-title,
37
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-wait:hover .ant-steps-item-description {
38
+ color: var(--semi-color-focus-border);
39
+ }
40
+
41
+ /* 进行中 */
42
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-process .ant-steps-item-icon {
43
+ align-items: center;
44
+ background: var(--semi-color-primary);
45
+ border: none;
46
+ border-radius: var(--semi-border-radius-circle, 50%);
47
+ display: flex;
48
+ height: 24px;
49
+ justify-content: center;
50
+ width: 24px;
51
+ }
52
+
53
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-process .ant-steps-item-icon .ant-steps-icon {
54
+ color: var(--semi-color-white);
55
+ font-size: 12px;
56
+ font-weight: 600;
57
+ }
58
+
59
+ /* 已完成 */
60
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-finish .ant-steps-item-icon {
61
+ align-items: center;
62
+ background: var(--semi-color-primary);
63
+ border: none;
64
+ border-radius: var(--semi-border-radius-circle, 50%);
65
+ display: flex;
66
+ height: 24px;
67
+ justify-content: center;
68
+ width: 24px;
69
+ }
70
+
71
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-finish .ant-steps-item-icon .ant-steps-icon {
72
+ color: var(--semi-color-white);
73
+ }
74
+
75
+ /* 错误 */
76
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-error .ant-steps-item-icon {
77
+ background: var(--semi-color-danger-light-default);
78
+ border-color: var(--semi-color-danger);
79
+ }
80
+
81
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-error .ant-steps-item-icon .ant-steps-icon {
82
+ color: var(--semi-color-danger);
83
+ }
84
+
85
+ /* 标题 */
86
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-title {
87
+ color: var(--semi-color-text-2);
88
+ font-size: var(--semi-font-size-regular);
89
+ font-weight: 600;
90
+ line-height: 24px;
91
+ padding-bottom: 4px;
92
+ }
93
+
94
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-process .ant-steps-item-title {
95
+ color: var(--semi-color-text-0);
96
+ }
97
+
98
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-finish .ant-steps-item-title {
99
+ color: var(--semi-color-text-0);
100
+ }
101
+
102
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-error .ant-steps-item-title {
103
+ color: var(--semi-color-danger);
104
+ }
105
+
106
+ /* 描述 */
107
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-description {
108
+ color: var(--semi-color-text-2);
109
+ font-size: var(--semi-font-size-small);
110
+ max-width: 268px;
111
+ }
112
+
113
+ /* 连接线 */
114
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-tail::after {
115
+ background: var(--semi-color-fill-2);
116
+ height: 1px;
117
+ }
118
+
119
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-finish .ant-steps-item-tail::after {
120
+ background: var(--semi-color-primary);
121
+ }
122
+
123
+ /* 图标左侧间距 */
124
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-container {
125
+ padding-left: 16px;
126
+ }
127
+
128
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-item-icon {
129
+ margin-right: 8px;
130
+ }
131
+
132
+ /* 小尺寸 */
133
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-small .ant-steps-item-icon {
134
+ height: 24px;
135
+ width: 24px;
136
+ }
137
+
138
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-small .ant-steps-item-icon .ant-steps-icon {
139
+ font-size: var(--semi-font-size-small);
140
+ }
141
+
142
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-small .ant-steps-item-title {
143
+ font-size: var(--semi-font-size-regular);
144
+ line-height: 24px;
145
+ }
146
+
147
+ /* 点状步骤 */
148
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-dot .ant-steps-item-icon {
149
+ height: 8px;
150
+ width: 8px;
151
+ border: none;
152
+ }
153
+
154
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {
155
+ background: var(--semi-color-primary);
156
+ }
157
+
158
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-dot .ant-steps-item-finish .ant-steps-item-icon {
159
+ background: var(--semi-color-primary);
160
+ }
161
+
162
+ /* 垂直步骤 */
163
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-vertical .ant-steps-item-tail::after {
164
+ width: 2px;
165
+ height: 100%;
166
+ }
167
+
168
+ /* 导航类型 */
169
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-navigation .ant-steps-item::before {
170
+ background: var(--semi-color-primary);
171
+ bottom: 0;
172
+ }
173
+
174
+ .semi:where([data-semi="all"], [data-semi-steps]) .ant-steps-navigation .ant-steps-item::after {
175
+ border-color: var(--semi-color-border);
176
+ }
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Switch 开关 - Semi Design 风格
3
+ */
4
+
5
+ /* ========== 基础样式 ========== */
6
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch {
7
+ background: var(--semi-color-fill-0);
8
+ height: 24px;
9
+ min-width: 40px;
10
+ border-radius: 12px;
11
+ transition: all 200ms var(--semi-transition-timing);
12
+ }
13
+
14
+ /* ========== 滑块 ========== */
15
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-handle {
16
+ width: 18px;
17
+ height: 18px;
18
+ top: 2px;
19
+ inset-inline-start: 2px;
20
+ }
21
+
22
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-handle::before {
23
+ border-radius: 50%;
24
+ background: rgba(255, 255, 255, 1);
25
+ border: 1px solid var(--semi-color-border);
26
+ box-shadow: none;
27
+ }
28
+
29
+ /* ========== Hover 状态 ========== */
30
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch:hover:not(.ant-switch-disabled) {
31
+ background: var(--semi-color-fill-1);
32
+ }
33
+
34
+ /* ========== 选中状态 ========== */
35
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-checked {
36
+ background: var(--semi-color-success);
37
+ }
38
+
39
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-checked:hover:not(.ant-switch-disabled) {
40
+ background: var(--semi-color-success-hover);
41
+ }
42
+
43
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-checked:active:not(.ant-switch-disabled) {
44
+ background: var(--semi-color-success-active);
45
+ }
46
+
47
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-checked .ant-switch-handle {
48
+ inset-inline-start: calc(100% - 20px);
49
+ }
50
+
51
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-checked .ant-switch-handle::before {
52
+ border-color: transparent;
53
+ }
54
+
55
+ /* ========== Focus 状态 ========== */
56
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch:focus-visible {
57
+ outline: 3px solid var(--semi-color-primary-light-default);
58
+ outline-offset: 0;
59
+ }
60
+
61
+ /* ========== 禁用状态 ========== */
62
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-disabled {
63
+ background: transparent;
64
+ border: 1px solid var(--semi-color-border);
65
+ cursor: not-allowed;
66
+ }
67
+
68
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-disabled:hover {
69
+ background: transparent;
70
+ }
71
+
72
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-disabled .ant-switch-handle::before {
73
+ border: 1px solid var(--semi-color-border);
74
+ }
75
+
76
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-disabled.ant-switch-checked {
77
+ background: var(--semi-color-success-disabled);
78
+ border-color: transparent;
79
+ }
80
+
81
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-disabled.ant-switch-checked .ant-switch-handle::before {
82
+ border-color: transparent;
83
+ }
84
+
85
+ /* ========== 带文字 ========== */
86
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-inner {
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ height: 100%;
91
+ }
92
+
93
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-inner-checked,
94
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-inner-unchecked {
95
+ font-size: 12px;
96
+ color: #fff;
97
+ }
98
+
99
+ /* ========== 尺寸 - Small ========== */
100
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-small {
101
+ height: 16px;
102
+ min-width: 26px;
103
+ border-radius: 8px;
104
+ }
105
+
106
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-small .ant-switch-handle {
107
+ width: 12px;
108
+ height: 12px;
109
+ top: 2px;
110
+ inset-inline-start: 1px;
111
+ }
112
+
113
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-small.ant-switch-checked .ant-switch-handle {
114
+ inset-inline-start: calc(100% - 13px);
115
+ }
116
+
117
+ /* ========== Loading 状态 ========== */
118
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-loading {
119
+ opacity: 0.8;
120
+ }
121
+
122
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-loading-icon {
123
+ color: var(--semi-color-primary);
124
+ }
125
+
126
+ .semi:where([data-semi="all"], [data-semi-switch]) .ant-switch-checked .ant-switch-loading-icon {
127
+ color: #fff;
128
+ }
@@ -0,0 +1,197 @@
1
+ /**
2
+ * Table 表格 - Semi Design 风格
3
+ */
4
+
5
+ /* ========== 表格容器 ========== */
6
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table {
7
+ background: var(--semi-color-bg-0);
8
+ border-radius: var(--semi-border-radius-medium);
9
+ color: var(--semi-color-text-0);
10
+ font-size: var(--semi-font-size-regular);
11
+ }
12
+
13
+ /* ========== 表头 ========== */
14
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-thead > tr > th {
15
+ background: var(--semi-color-bg-1);
16
+ border-bottom: 2px solid var(--semi-color-border);
17
+ color: var(--semi-color-text-2);
18
+ font-weight: 600;
19
+ padding: 8px 16px;
20
+ }
21
+
22
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-thead > tr > th:first-child {
23
+ border-top-left-radius: var(--semi-border-radius-medium);
24
+ }
25
+
26
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-thead > tr > th:last-child {
27
+ border-top-right-radius: var(--semi-border-radius-medium);
28
+ }
29
+
30
+ /* ========== 表格单元格 ========== */
31
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-tbody > tr > td {
32
+ border-bottom: 1px solid var(--semi-color-border);
33
+ padding: 12px 16px;
34
+ transition: background var(--semi-transition-duration) var(--semi-transition-timing);
35
+ }
36
+
37
+ /* ========== 悬停状态 ========== */
38
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-tbody > tr:hover > td {
39
+ background: var(--semi-color-fill-0);
40
+ }
41
+
42
+ /* ========== 选中状态 ========== */
43
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-tbody > tr.ant-table-row-selected > td {
44
+ background: var(--semi-color-primary-light-default);
45
+ }
46
+
47
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-tbody > tr.ant-table-row-selected:hover > td {
48
+ background: var(--semi-color-primary-light-hover);
49
+ }
50
+
51
+ /* ========== 排序 ========== */
52
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-column-sorter {
53
+ color: var(--semi-color-text-2);
54
+ }
55
+
56
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-column-sorter-up.active,
57
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-column-sorter-down.active {
58
+ color: var(--semi-color-primary);
59
+ }
60
+
61
+ /* ========== 筛选触发器 ========== */
62
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-filter-trigger {
63
+ color: var(--semi-color-text-2);
64
+ border-radius: var(--semi-border-radius-small);
65
+ }
66
+
67
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-filter-trigger:hover {
68
+ background: var(--semi-color-fill-0);
69
+ }
70
+
71
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-filter-trigger.active {
72
+ color: var(--semi-color-primary);
73
+ }
74
+
75
+ /* ========== 展开行 ========== */
76
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-expanded-row > td {
77
+ background: var(--semi-color-fill-0);
78
+ }
79
+
80
+ /* ========== 空状态 ========== */
81
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-placeholder {
82
+ color: var(--semi-color-text-2);
83
+ }
84
+
85
+ /* ========== 固定列阴影 ========== */
86
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-cell-fix-left-last::after,
87
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-cell-fix-right-first::after {
88
+ box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);
89
+ }
90
+
91
+ /* ========== 分页 ========== */
92
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-pagination {
93
+ margin: 16px 0 0;
94
+ }
95
+
96
+ /* ========== 边框模式 ========== */
97
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-bordered .ant-table-container {
98
+ border: 1px solid var(--semi-color-border);
99
+ border-radius: var(--semi-border-radius-medium);
100
+ }
101
+
102
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-bordered .ant-table-thead > tr > th,
103
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-bordered .ant-table-tbody > tr > td {
104
+ border-right: 1px solid var(--semi-color-border);
105
+ }
106
+
107
+ /* ========== 小尺寸 ========== */
108
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-small .ant-table-thead > tr > th,
109
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-small .ant-table-tbody > tr > td {
110
+ padding: 8px 12px;
111
+ }
112
+
113
+ /* ========== 中等尺寸 ========== */
114
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-middle .ant-table-thead > tr > th,
115
+ .semi:where([data-semi="all"], [data-semi-table]) .ant-table-middle .ant-table-tbody > tr > td {
116
+ padding: 10px 14px;
117
+ }
118
+
119
+ /* ==========================================================================
120
+ 筛选下拉菜单 (Portal 组件 - 渲染在 body 下)
121
+ ========================================================================== */
122
+
123
+ body.semi .ant-table-filter-dropdown,
124
+ .semi .ant-table-filter-dropdown {
125
+ background: var(--semi-color-bg-0);
126
+ border-radius: var(--semi-border-radius-medium);
127
+ box-shadow: var(--semi-shadow-elevated);
128
+ padding: 8px;
129
+ }
130
+
131
+ body.semi .ant-table-filter-dropdown-tree,
132
+ .semi .ant-table-filter-dropdown-tree {
133
+ padding: 8px;
134
+ }
135
+
136
+ body.semi .ant-table-filter-dropdown-search,
137
+ .semi .ant-table-filter-dropdown-search {
138
+ border-bottom: 1px solid var(--semi-color-border);
139
+ padding: 8px;
140
+ }
141
+
142
+ body.semi .ant-table-filter-dropdown-search-input,
143
+ .semi .ant-table-filter-dropdown-search-input {
144
+ background: var(--semi-color-fill-0);
145
+ border-color: transparent;
146
+ border-radius: var(--semi-border-radius-small);
147
+ }
148
+
149
+ body.semi .ant-table-filter-dropdown-search-input:focus,
150
+ body.semi .ant-table-filter-dropdown-search-input:hover,
151
+ .semi .ant-table-filter-dropdown-search-input:focus,
152
+ .semi .ant-table-filter-dropdown-search-input:hover {
153
+ border-color: var(--semi-color-focus-border);
154
+ }
155
+
156
+ body.semi .ant-table-filter-dropdown-checkall,
157
+ .semi .ant-table-filter-dropdown-checkall {
158
+ padding: 8px 12px;
159
+ border-bottom: 1px solid var(--semi-color-border);
160
+ }
161
+
162
+ body.semi .ant-table-filter-dropdown .ant-dropdown-menu,
163
+ .semi .ant-table-filter-dropdown .ant-dropdown-menu {
164
+ background: transparent;
165
+ border: none;
166
+ box-shadow: none;
167
+ max-height: 264px;
168
+ overflow-y: auto;
169
+ }
170
+
171
+ body.semi .ant-table-filter-dropdown .ant-dropdown-menu-item,
172
+ .semi .ant-table-filter-dropdown .ant-dropdown-menu-item {
173
+ border-radius: var(--semi-border-radius-small);
174
+ color: var(--semi-color-text-0);
175
+ padding: 8px 12px;
176
+ }
177
+
178
+ body.semi .ant-table-filter-dropdown .ant-dropdown-menu-item:hover,
179
+ .semi .ant-table-filter-dropdown .ant-dropdown-menu-item:hover {
180
+ background: var(--semi-color-fill-0);
181
+ }
182
+
183
+ body.semi .ant-table-filter-dropdown-btns,
184
+ .semi .ant-table-filter-dropdown-btns {
185
+ border-top: 1px solid var(--semi-color-border);
186
+ padding: 8px;
187
+ }
188
+
189
+ body.semi .ant-table-filter-dropdown-link,
190
+ .semi .ant-table-filter-dropdown-link {
191
+ color: var(--semi-color-primary);
192
+ }
193
+
194
+ body.semi .ant-table-filter-dropdown-link:hover,
195
+ .semi .ant-table-filter-dropdown-link:hover {
196
+ color: var(--semi-color-primary-hover);
197
+ }