@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
package/src/index.scss CHANGED
@@ -1,63 +1,63 @@
1
- // Cyberpunk Vue - 主入口
2
- // 所有 @use 必须在最前面
3
-
4
- @use 'common/var';
5
- @use 'mixins/mixins';
6
- @use 'components/button';
7
- @use 'components/loading';
8
- @use 'components/icon';
9
- @use 'components/input';
10
- @use 'components/textarea';
11
- @use 'components/input-number';
12
- @use 'components/slider';
13
- @use 'components/switch';
14
- @use 'components/progress';
15
- @use 'components/card';
16
- @use 'components/tag';
17
- @use 'components/text';
18
- @use 'components/status-indicator';
19
- @use 'components/image';
20
- @use 'components/image-preview';
21
- @use 'components/avatar';
22
- @use 'components/avatar-group';
23
- @use 'components/popover';
24
- @use 'components/pattern-background';
25
- @use 'components/select';
26
- @use 'components/scrollbar';
27
- @use 'components/checkbox';
28
- @use 'components/checkbox-group';
29
- @use 'components/radio';
30
- @use 'components/radio-group';
31
- @use 'components/badge';
32
- @use 'components/divider';
33
- @use 'components/dialog';
34
- @use 'components/tree';
35
- @use 'components/row';
36
- @use 'components/col';
37
- @use 'components/container';
38
- @use 'components/menu';
39
- @use 'components/notification';
40
- @use 'components/pagination';
41
- @use 'components/segmented';
42
- @use 'components/table';
43
- @use 'components/form';
44
- @use 'components/form-item';
45
- @use 'components/breadcrumb';
46
- @use 'components/upload';
47
- @use 'components/empty';
1
+ // Cyberpunk Vue - 主入口
2
+ // 所有 @use 必须在最前面
3
+
4
+ @use 'common/var';
5
+ @use 'mixins/mixins';
6
+ @use 'components/button';
7
+ @use 'components/loading';
8
+ @use 'components/icon';
9
+ @use 'components/input';
10
+ @use 'components/textarea';
11
+ @use 'components/input-number';
12
+ @use 'components/slider';
13
+ @use 'components/switch';
14
+ @use 'components/progress';
15
+ @use 'components/card';
16
+ @use 'components/tag';
17
+ @use 'components/text';
18
+ @use 'components/status-indicator';
19
+ @use 'components/image';
20
+ @use 'components/image-preview';
21
+ @use 'components/avatar';
22
+ @use 'components/avatar-group';
23
+ @use 'components/popover';
24
+ @use 'components/pattern-background';
25
+ @use 'components/select';
26
+ @use 'components/scrollbar';
27
+ @use 'components/checkbox';
28
+ @use 'components/checkbox-group';
29
+ @use 'components/radio';
30
+ @use 'components/radio-group';
31
+ @use 'components/badge';
32
+ @use 'components/divider';
33
+ @use 'components/dialog';
34
+ @use 'components/tree';
35
+ @use 'components/row';
36
+ @use 'components/col';
37
+ @use 'components/container';
38
+ @use 'components/menu';
39
+ @use 'components/notification';
40
+ @use 'components/pagination';
41
+ @use 'components/segmented';
42
+ @use 'components/table';
43
+ @use 'components/form';
44
+ @use 'components/form-item';
45
+ @use 'components/breadcrumb';
46
+ @use 'components/upload';
47
+ @use 'components/empty';
48
48
  @use 'components/timeline';
49
49
  @use 'components/descriptions';
50
50
  @use 'components/date-picker';
51
-
52
- // 基础样式
53
- *,
54
- *::before,
55
- *::after {
56
- box-sizing: border-box;
57
- }
58
-
59
- body {
60
- font-family: var(--cp-font-family-ui);
61
- background: var(--cp-bg-deep);
62
- color: var(--cp-text-primary);
63
- }
51
+
52
+ // 基础样式
53
+ *,
54
+ *::before,
55
+ *::after {
56
+ box-sizing: border-box;
57
+ }
58
+
59
+ body {
60
+ font-family: var(--cp-font-family-ui);
61
+ background: var(--cp-bg-deep);
62
+ color: var(--cp-text-primary);
63
+ }
@@ -1,157 +1,157 @@
1
- // BEM Mixins for Cyberpunk Vue
2
- // 命名空间: cp
3
-
4
- $namespace: 'cp' !default;
5
- $element-separator: '__' !default;
6
- $modifier-separator: '--' !default;
7
- $state-prefix: 'is-' !default;
8
-
9
- // 块 (Block)
10
- @mixin b($block) {
11
- $B: #{$namespace}-#{$block};
12
-
13
- .#{$B} {
14
- @content;
15
- }
16
- }
17
-
18
- // 元素 (Element)
19
- @mixin e($element) {
20
- $E: #{&}#{$element-separator}#{$element};
21
-
22
- @at-root {
23
- #{$E} {
24
- @content;
25
- }
26
- }
27
- }
28
-
29
- // 修饰符 (Modifier)
30
- @mixin m($modifier) {
31
- $M: #{&}#{$modifier-separator}#{$modifier};
32
-
33
- @at-root {
34
- #{$M} {
35
- @content;
36
- }
37
- }
38
- }
39
-
40
- // 状态 (State)
41
- @mixin when($state) {
42
- @at-root {
43
- &.#{$state-prefix}#{$state} {
44
- @content;
45
- }
46
- }
47
- }
48
-
49
- // 尺寸变体
50
- @mixin size($size) {
51
- @include m($size) {
52
- @content;
53
- }
54
- }
55
-
56
- // 颜色变体
57
- @mixin color-variant($color) {
58
- @include m($color) {
59
- @content;
60
- }
61
- }
62
-
63
- // ===== Scrollbar Mixins =====
64
-
65
- // 基础 scrollbar 样式
66
- @mixin scrollbar-base($width: 6px, $thumb: rgba(0, 240, 255, 0.3), $track: rgba(26, 26, 36, 0.8), $radius: 3px) {
67
- &::-webkit-scrollbar {
68
- width: $width;
69
- height: $width;
70
- }
71
-
72
- &::-webkit-scrollbar-track {
73
- background: $track;
74
- }
75
-
76
- &::-webkit-scrollbar-thumb {
77
- background: $thumb;
78
- border-radius: $radius;
79
-
80
- &:hover {
81
- background: rgba(0, 240, 255, 0.5);
82
- }
83
- }
84
-
85
- // Firefox
86
- scrollbar-width: thin;
87
- scrollbar-color: $thumb $track;
88
- }
89
-
90
- // 快速应用变体
91
- @mixin scrollbar($variant: 'default') {
92
- @if $variant == 'default' {
93
- @include scrollbar-base();
94
- } @else if $variant == 'rounded' {
95
- @include scrollbar-base($radius: 999px);
96
- } @else if $variant == 'futuristic' {
97
- &::-webkit-scrollbar {
98
- width: 8px;
99
- height: 8px;
100
- }
101
- &::-webkit-scrollbar-track {
102
- background: rgba(10, 10, 15, 0.9);
103
- border: 1px solid rgba(0, 240, 255, 0.1);
104
- }
105
- &::-webkit-scrollbar-thumb {
106
- background: linear-gradient(to bottom, rgba(0, 240, 255, 0.2), #00f0ff);
107
- border-radius: 4px;
108
- box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
109
- &:hover {
110
- background: linear-gradient(to bottom, #00f0ff, #00c2ce);
111
- }
112
- }
113
- scrollbar-width: auto;
114
- scrollbar-color: #00f0ff rgba(10, 10, 15, 0.9);
115
- } @else if $variant == 'thin' {
116
- @include scrollbar-base($width: 4px);
117
- } @else if $variant == 'bordered' {
118
- &::-webkit-scrollbar {
119
- width: 10px;
120
- height: 10px;
121
- }
122
- &::-webkit-scrollbar-track {
123
- background: rgba(10, 10, 15, 0.8);
124
- border: 1px solid rgba(0, 240, 255, 0.1);
125
- }
126
- &::-webkit-scrollbar-thumb {
127
- background: rgba(0, 240, 255, 0.2);
128
- border: 1px solid #00f0ff;
129
- border-radius: 0;
130
- &:hover {
131
- background: rgba(0, 240, 255, 0.4);
132
- }
133
- }
134
- } @else if $variant == 'clipped' {
135
- &::-webkit-scrollbar {
136
- width: 10px;
137
- height: 10px;
138
- }
139
- &::-webkit-scrollbar-thumb {
140
- // 使用单一强力渐变切角以确保可见性
141
- background: linear-gradient(135deg, transparent 6px, rgba(0, 240, 255, 0.4) 6px);
142
- background-clip: padding-box;
143
- border: 1px solid rgba(0, 240, 255, 0.5);
144
- border-radius: 0;
145
-
146
- &:hover {
147
- background: linear-gradient(135deg, transparent 6px, #00f0ff 6px);
148
- border-color: #00f0ff;
149
- }
150
- }
151
- } @else if $variant == 'hidden' {
152
- scrollbar-width: none;
153
- &::-webkit-scrollbar {
154
- display: none;
155
- }
156
- }
1
+ // BEM Mixins for Cyberpunk Vue
2
+ // 命名空间: cp
3
+
4
+ $namespace: 'cp' !default;
5
+ $element-separator: '__' !default;
6
+ $modifier-separator: '--' !default;
7
+ $state-prefix: 'is-' !default;
8
+
9
+ // 块 (Block)
10
+ @mixin b($block) {
11
+ $B: #{$namespace}-#{$block};
12
+
13
+ .#{$B} {
14
+ @content;
15
+ }
16
+ }
17
+
18
+ // 元素 (Element)
19
+ @mixin e($element) {
20
+ $E: #{&}#{$element-separator}#{$element};
21
+
22
+ @at-root {
23
+ #{$E} {
24
+ @content;
25
+ }
26
+ }
27
+ }
28
+
29
+ // 修饰符 (Modifier)
30
+ @mixin m($modifier) {
31
+ $M: #{&}#{$modifier-separator}#{$modifier};
32
+
33
+ @at-root {
34
+ #{$M} {
35
+ @content;
36
+ }
37
+ }
38
+ }
39
+
40
+ // 状态 (State)
41
+ @mixin when($state) {
42
+ @at-root {
43
+ &.#{$state-prefix}#{$state} {
44
+ @content;
45
+ }
46
+ }
47
+ }
48
+
49
+ // 尺寸变体
50
+ @mixin size($size) {
51
+ @include m($size) {
52
+ @content;
53
+ }
54
+ }
55
+
56
+ // 颜色变体
57
+ @mixin color-variant($color) {
58
+ @include m($color) {
59
+ @content;
60
+ }
61
+ }
62
+
63
+ // ===== Scrollbar Mixins =====
64
+
65
+ // 基础 scrollbar 样式
66
+ @mixin scrollbar-base($width: 6px, $thumb: rgba(0, 240, 255, 0.3), $track: rgba(26, 26, 36, 0.8), $radius: 3px) {
67
+ &::-webkit-scrollbar {
68
+ width: $width;
69
+ height: $width;
70
+ }
71
+
72
+ &::-webkit-scrollbar-track {
73
+ background: $track;
74
+ }
75
+
76
+ &::-webkit-scrollbar-thumb {
77
+ background: $thumb;
78
+ border-radius: $radius;
79
+
80
+ &:hover {
81
+ background: rgba(0, 240, 255, 0.5);
82
+ }
83
+ }
84
+
85
+ // Firefox
86
+ scrollbar-width: thin;
87
+ scrollbar-color: $thumb $track;
88
+ }
89
+
90
+ // 快速应用变体
91
+ @mixin scrollbar($variant: 'default') {
92
+ @if $variant == 'default' {
93
+ @include scrollbar-base();
94
+ } @else if $variant == 'rounded' {
95
+ @include scrollbar-base($radius: 999px);
96
+ } @else if $variant == 'futuristic' {
97
+ &::-webkit-scrollbar {
98
+ width: 8px;
99
+ height: 8px;
100
+ }
101
+ &::-webkit-scrollbar-track {
102
+ background: rgba(10, 10, 15, 0.9);
103
+ border: 1px solid rgba(0, 240, 255, 0.1);
104
+ }
105
+ &::-webkit-scrollbar-thumb {
106
+ background: linear-gradient(to bottom, rgba(0, 240, 255, 0.2), #00f0ff);
107
+ border-radius: 4px;
108
+ box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
109
+ &:hover {
110
+ background: linear-gradient(to bottom, #00f0ff, #00c2ce);
111
+ }
112
+ }
113
+ scrollbar-width: auto;
114
+ scrollbar-color: #00f0ff rgba(10, 10, 15, 0.9);
115
+ } @else if $variant == 'thin' {
116
+ @include scrollbar-base($width: 4px);
117
+ } @else if $variant == 'bordered' {
118
+ &::-webkit-scrollbar {
119
+ width: 10px;
120
+ height: 10px;
121
+ }
122
+ &::-webkit-scrollbar-track {
123
+ background: rgba(10, 10, 15, 0.8);
124
+ border: 1px solid rgba(0, 240, 255, 0.1);
125
+ }
126
+ &::-webkit-scrollbar-thumb {
127
+ background: rgba(0, 240, 255, 0.2);
128
+ border: 1px solid #00f0ff;
129
+ border-radius: 0;
130
+ &:hover {
131
+ background: rgba(0, 240, 255, 0.4);
132
+ }
133
+ }
134
+ } @else if $variant == 'clipped' {
135
+ &::-webkit-scrollbar {
136
+ width: 10px;
137
+ height: 10px;
138
+ }
139
+ &::-webkit-scrollbar-thumb {
140
+ // 使用单一强力渐变切角以确保可见性
141
+ background: linear-gradient(135deg, transparent 6px, rgba(0, 240, 255, 0.4) 6px);
142
+ background-clip: padding-box;
143
+ border: 1px solid rgba(0, 240, 255, 0.5);
144
+ border-radius: 0;
145
+
146
+ &:hover {
147
+ background: linear-gradient(135deg, transparent 6px, #00f0ff 6px);
148
+ border-color: #00f0ff;
149
+ }
150
+ }
151
+ } @else if $variant == 'hidden' {
152
+ scrollbar-width: none;
153
+ &::-webkit-scrollbar {
154
+ display: none;
155
+ }
156
+ }
157
157
  }