@cyberpunk-vue/theme-chalk 1.14.0 → 1.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.css.map +1 -1
  3. package/package.json +1 -1
  4. package/src/common/var.scss +247 -247
  5. package/src/components/avatar-group.scss +113 -113
  6. package/src/components/avatar.scss +123 -123
  7. package/src/components/badge.scss +210 -210
  8. package/src/components/breadcrumb.scss +203 -203
  9. package/src/components/button.scss +975 -975
  10. package/src/components/card.scss +699 -696
  11. package/src/components/checkbox-group.scss +22 -22
  12. package/src/components/checkbox.scss +320 -320
  13. package/src/components/col.scss +43 -43
  14. package/src/components/dialog.scss +360 -360
  15. package/src/components/divider.scss +250 -250
  16. package/src/components/empty.scss +99 -99
  17. package/src/components/form-item.scss +189 -189
  18. package/src/components/form.scss +59 -59
  19. package/src/components/icon.scss +83 -83
  20. package/src/components/image-preview.scss +147 -147
  21. package/src/components/image.scss +351 -351
  22. package/src/components/input-number.scss +129 -129
  23. package/src/components/input.scss +362 -362
  24. package/src/components/loading.scss +64 -64
  25. package/src/components/notification.scss +348 -348
  26. package/src/components/pagination.scss +287 -280
  27. package/src/components/pattern-background.scss +18 -18
  28. package/src/components/popover.scss +438 -438
  29. package/src/components/progress.scss +438 -438
  30. package/src/components/radio-group.scss +22 -22
  31. package/src/components/radio.scss +286 -286
  32. package/src/components/row.scss +12 -12
  33. package/src/components/scrollbar.scss +40 -40
  34. package/src/components/segmented.scss +566 -566
  35. package/src/components/select.scss +15 -1
  36. package/src/components/slider.scss +421 -421
  37. package/src/components/status-indicator.scss +206 -206
  38. package/src/components/switch.scss +405 -405
  39. package/src/components/table.scss +474 -474
  40. package/src/components/tag.scss +416 -416
  41. package/src/components/text.scss +310 -271
  42. package/src/components/textarea.scss +106 -104
  43. package/src/components/timeline.scss +379 -379
  44. package/src/components/tree.scss +397 -397
  45. package/src/components/upload.scss +509 -509
  46. package/src/index.scss +60 -60
  47. package/src/mixins/mixins.scss +156 -156
@@ -1,206 +1,206 @@
1
- // CpStatusIndicator 组件样式
2
- // 赛博朋克风格独立状态指示器
3
-
4
- @use 'sass:map';
5
- @use '../common/var' as *;
6
- @use '../mixins/mixins' as *;
7
-
8
- // 尺寸映射
9
- $status-indicator-sizes: (
10
- sm: 8px,
11
- md: 12px,
12
- lg: 16px,
13
- );
14
-
15
- // 标签字体尺寸映射
16
- $status-indicator-label-sizes: (
17
- sm: 12px,
18
- md: 14px,
19
- lg: 16px,
20
- );
21
-
22
- // 尺寸与间隙映射
23
- $status-indicator-gaps: (
24
- sm: 4px,
25
- md: 6px,
26
- lg: 8px,
27
- );
28
-
29
- @include b(status-indicator) {
30
- display: inline-flex;
31
- align-items: center;
32
- gap: var(--cp-status-indicator-gap, 6px);
33
- color: inherit;
34
-
35
- // ===== 指示点 =====
36
- @include e(dot) {
37
- position: relative;
38
- display: inline-block;
39
- width: 12px;
40
- height: 12px;
41
- background-color: currentColor;
42
- border-radius: 50%;
43
- flex-shrink: 0;
44
- transition: all 0.3s ease;
45
- }
46
-
47
- // ===== 脉冲扩散环 =====
48
- @include e(pulse) {
49
- position: absolute;
50
- inset: 0;
51
- border-radius: inherit;
52
- background-color: currentColor;
53
- animation: cp-status-pulse var(--cp-status-indicator-duration, 1.5s) ease-out infinite;
54
- }
55
-
56
- // ===== 标签 =====
57
- @include e(label) {
58
- font-size: 14px;
59
- color: var(--cp-text-primary);
60
- white-space: nowrap;
61
- transition: all 0.3s ease;
62
- }
63
-
64
- // ===== 尺寸 =====
65
- @each $name, $size in $status-indicator-sizes {
66
- @include m($name) {
67
- gap: var(--cp-status-indicator-gap, map.get($status-indicator-gaps, $name));
68
-
69
- .cp-status-indicator__dot {
70
- width: $size;
71
- height: $size;
72
- }
73
-
74
- .cp-status-indicator__label {
75
- font-size: map.get($status-indicator-label-sizes, $name);
76
- }
77
- }
78
- }
79
-
80
- // ===== 形状 =====
81
- @include m(shape-dot) {
82
- .cp-status-indicator__dot {
83
- border-radius: 50%;
84
- }
85
- }
86
-
87
- @include m(shape-square) {
88
- .cp-status-indicator__dot {
89
- border-radius: 2px;
90
- }
91
-
92
- .cp-status-indicator__pulse {
93
- border-radius: 2px;
94
- }
95
- }
96
-
97
- @include m(shape-diamond) {
98
- .cp-status-indicator__dot {
99
- border-radius: 1px;
100
- transform: rotate(45deg);
101
- }
102
-
103
- .cp-status-indicator__pulse {
104
- border-radius: 1px;
105
- }
106
- }
107
-
108
- // ===== 颜色类型 =====
109
- @include m(primary) {
110
- color: var(--cp-color-primary);
111
- }
112
-
113
- @include m(success) {
114
- color: var(--cp-color-success);
115
- }
116
-
117
- @include m(warning) {
118
- color: var(--cp-color-warning);
119
- }
120
-
121
- @include m(error) {
122
- color: var(--cp-color-error);
123
- }
124
-
125
- @include m(info) {
126
- color: var(--cp-color-info);
127
- }
128
-
129
- @include m(default) {
130
- color: var(--cp-text-secondary);
131
- }
132
-
133
- // ===== 自定义颜色 =====
134
- @include when(custom-color) {
135
- color: var(--cp-status-indicator-color);
136
- }
137
-
138
- // ===== 动画效果 =====
139
-
140
- // 脉冲扩散
141
- @include m(animation-pulse) {
142
- // pulse element handles the animation directly via its own class
143
- }
144
-
145
- // 发光呼吸
146
- @include m(animation-glow) {
147
- .cp-status-indicator__dot {
148
- animation: cp-status-glow var(--cp-status-indicator-duration, 1.5s) ease-in-out infinite;
149
- }
150
- }
151
-
152
- // 闪烁
153
- @include m(animation-blink) {
154
- .cp-status-indicator__dot {
155
- animation: cp-status-blink var(--cp-status-indicator-duration, 1s) ease-in-out infinite;
156
- }
157
- }
158
- }
159
-
160
- // ===== 动画关键帧 =====
161
-
162
- // 脉冲扩散动画
163
- @keyframes cp-status-pulse {
164
- 0% {
165
- transform: scale(1);
166
- opacity: 0.6;
167
- }
168
-
169
- 100% {
170
- // 默认 2.5 倍扩散,受 intensity 影响
171
- transform: scale(calc(1 + 1.5 * var(--cp-status-indicator-intensity, 1)));
172
- opacity: 0;
173
- }
174
- }
175
-
176
- // 发光呼吸动画
177
- @keyframes cp-status-glow {
178
- 0%,
179
- 100% {
180
- // 默认 2px,受 intensity 影响
181
- filter: drop-shadow(0 0 calc(2px * var(--cp-status-indicator-intensity, 1)) currentColor);
182
- opacity: 1;
183
- }
184
-
185
- 50% {
186
- // 默认 8px/12px,受 intensity 影响
187
- filter: drop-shadow(0 0 calc(8px * var(--cp-status-indicator-intensity, 1)) currentColor)
188
- drop-shadow(0 0 calc(12px * var(--cp-status-indicator-intensity, 1)) currentColor);
189
- opacity: 0.85;
190
- }
191
- }
192
-
193
- // 闪烁动画
194
- @keyframes cp-status-blink {
195
- 0%,
196
- 100% {
197
- opacity: 1;
198
- }
199
-
200
- 50% {
201
- // 默认最低 0.3 透明度,intensity 越高,透明项越低(更激烈)
202
- // intensity = 1 -> opacity 0.3
203
- // intensity = 2 -> opacity 0.3 / 2 = 0.15
204
- opacity: calc(0.3 / var(--cp-status-indicator-intensity, 1));
205
- }
206
- }
1
+ // CpStatusIndicator 组件样式
2
+ // 赛博朋克风格独立状态指示器
3
+
4
+ @use 'sass:map';
5
+ @use '../common/var' as *;
6
+ @use '../mixins/mixins' as *;
7
+
8
+ // 尺寸映射
9
+ $status-indicator-sizes: (
10
+ sm: 8px,
11
+ md: 12px,
12
+ lg: 16px,
13
+ );
14
+
15
+ // 标签字体尺寸映射
16
+ $status-indicator-label-sizes: (
17
+ sm: 12px,
18
+ md: 14px,
19
+ lg: 16px,
20
+ );
21
+
22
+ // 尺寸与间隙映射
23
+ $status-indicator-gaps: (
24
+ sm: 4px,
25
+ md: 6px,
26
+ lg: 8px,
27
+ );
28
+
29
+ @include b(status-indicator) {
30
+ display: inline-flex;
31
+ align-items: center;
32
+ gap: var(--cp-status-indicator-gap, 6px);
33
+ color: inherit;
34
+
35
+ // ===== 指示点 =====
36
+ @include e(dot) {
37
+ position: relative;
38
+ display: inline-block;
39
+ width: 12px;
40
+ height: 12px;
41
+ background-color: currentColor;
42
+ border-radius: 50%;
43
+ flex-shrink: 0;
44
+ transition: all 0.3s ease;
45
+ }
46
+
47
+ // ===== 脉冲扩散环 =====
48
+ @include e(pulse) {
49
+ position: absolute;
50
+ inset: 0;
51
+ border-radius: inherit;
52
+ background-color: currentColor;
53
+ animation: cp-status-pulse var(--cp-status-indicator-duration, 1.5s) ease-out infinite;
54
+ }
55
+
56
+ // ===== 标签 =====
57
+ @include e(label) {
58
+ font-size: 14px;
59
+ color: var(--cp-text-primary);
60
+ white-space: nowrap;
61
+ transition: all 0.3s ease;
62
+ }
63
+
64
+ // ===== 尺寸 =====
65
+ @each $name, $size in $status-indicator-sizes {
66
+ @include m($name) {
67
+ gap: var(--cp-status-indicator-gap, map.get($status-indicator-gaps, $name));
68
+
69
+ .cp-status-indicator__dot {
70
+ width: $size;
71
+ height: $size;
72
+ }
73
+
74
+ .cp-status-indicator__label {
75
+ font-size: map.get($status-indicator-label-sizes, $name);
76
+ }
77
+ }
78
+ }
79
+
80
+ // ===== 形状 =====
81
+ @include m(shape-dot) {
82
+ .cp-status-indicator__dot {
83
+ border-radius: 50%;
84
+ }
85
+ }
86
+
87
+ @include m(shape-square) {
88
+ .cp-status-indicator__dot {
89
+ border-radius: 2px;
90
+ }
91
+
92
+ .cp-status-indicator__pulse {
93
+ border-radius: 2px;
94
+ }
95
+ }
96
+
97
+ @include m(shape-diamond) {
98
+ .cp-status-indicator__dot {
99
+ border-radius: 1px;
100
+ transform: rotate(45deg);
101
+ }
102
+
103
+ .cp-status-indicator__pulse {
104
+ border-radius: 1px;
105
+ }
106
+ }
107
+
108
+ // ===== 颜色类型 =====
109
+ @include m(primary) {
110
+ color: var(--cp-color-primary);
111
+ }
112
+
113
+ @include m(success) {
114
+ color: var(--cp-color-success);
115
+ }
116
+
117
+ @include m(warning) {
118
+ color: var(--cp-color-warning);
119
+ }
120
+
121
+ @include m(error) {
122
+ color: var(--cp-color-error);
123
+ }
124
+
125
+ @include m(info) {
126
+ color: var(--cp-color-info);
127
+ }
128
+
129
+ @include m(default) {
130
+ color: var(--cp-text-secondary);
131
+ }
132
+
133
+ // ===== 自定义颜色 =====
134
+ @include when(custom-color) {
135
+ color: var(--cp-status-indicator-color);
136
+ }
137
+
138
+ // ===== 动画效果 =====
139
+
140
+ // 脉冲扩散
141
+ @include m(animation-pulse) {
142
+ // pulse element handles the animation directly via its own class
143
+ }
144
+
145
+ // 发光呼吸
146
+ @include m(animation-glow) {
147
+ .cp-status-indicator__dot {
148
+ animation: cp-status-glow var(--cp-status-indicator-duration, 1.5s) ease-in-out infinite;
149
+ }
150
+ }
151
+
152
+ // 闪烁
153
+ @include m(animation-blink) {
154
+ .cp-status-indicator__dot {
155
+ animation: cp-status-blink var(--cp-status-indicator-duration, 1s) ease-in-out infinite;
156
+ }
157
+ }
158
+ }
159
+
160
+ // ===== 动画关键帧 =====
161
+
162
+ // 脉冲扩散动画
163
+ @keyframes cp-status-pulse {
164
+ 0% {
165
+ transform: scale(1);
166
+ opacity: 0.6;
167
+ }
168
+
169
+ 100% {
170
+ // 默认 2.5 倍扩散,受 intensity 影响
171
+ transform: scale(calc(1 + 1.5 * var(--cp-status-indicator-intensity, 1)));
172
+ opacity: 0;
173
+ }
174
+ }
175
+
176
+ // 发光呼吸动画
177
+ @keyframes cp-status-glow {
178
+ 0%,
179
+ 100% {
180
+ // 默认 2px,受 intensity 影响
181
+ filter: drop-shadow(0 0 calc(2px * var(--cp-status-indicator-intensity, 1)) currentColor);
182
+ opacity: 1;
183
+ }
184
+
185
+ 50% {
186
+ // 默认 8px/12px,受 intensity 影响
187
+ filter: drop-shadow(0 0 calc(8px * var(--cp-status-indicator-intensity, 1)) currentColor)
188
+ drop-shadow(0 0 calc(12px * var(--cp-status-indicator-intensity, 1)) currentColor);
189
+ opacity: 0.85;
190
+ }
191
+ }
192
+
193
+ // 闪烁动画
194
+ @keyframes cp-status-blink {
195
+ 0%,
196
+ 100% {
197
+ opacity: 1;
198
+ }
199
+
200
+ 50% {
201
+ // 默认最低 0.3 透明度,intensity 越高,透明项越低(更激烈)
202
+ // intensity = 1 -> opacity 0.3
203
+ // intensity = 2 -> opacity 0.3 / 2 = 0.15
204
+ opacity: calc(0.3 / var(--cp-status-indicator-intensity, 1));
205
+ }
206
+ }