@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,113 +1,113 @@
1
- @use '../mixins/mixins' as *;
2
- @use '../common/var' as *;
3
-
4
- // ============================================
5
- // CpAvatarGroup - 头像组组件
6
- // ============================================
7
-
8
- // 边框宽度
9
- $avatar-group-border-width: 2px;
10
-
11
- // 折叠计数器字体比例
12
- $avatar-group-counter-font-ratio: 0.35;
13
-
14
- @include b(avatar-group) {
15
- display: inline-flex;
16
- align-items: center;
17
-
18
- // ========================================
19
- // 堆叠模式
20
- // ========================================
21
-
22
- &.is-stacked {
23
- .#{$namespace}-avatar {
24
- margin-left: var(--cp-avatar-group-spacing, -8px);
25
- border: $avatar-group-border-width solid var(--cp-bg-base);
26
- box-sizing: content-box;
27
-
28
- &:first-child {
29
- margin-left: 0;
30
- }
31
-
32
- // 堆叠时增加 z-index,后面的在上
33
- @for $i from 1 through 10 {
34
- &:nth-child(#{$i}) {
35
- z-index: #{$i};
36
- }
37
- }
38
- }
39
- }
40
-
41
- // 非堆叠模式 - 使用正间距
42
- &:not(.is-stacked) {
43
- .#{$namespace}-avatar {
44
- margin-left: var(--cp-avatar-group-spacing, 0);
45
-
46
- &:first-child {
47
- margin-left: 0;
48
- }
49
- }
50
- }
51
-
52
- // ========================================
53
- // 折叠计数器
54
- // ========================================
55
-
56
- // 切角尺寸比例(与 avatar 保持一致)
57
- $counter-clip-ratio: 0.15;
58
-
59
- @include e(counter) {
60
- display: inline-flex;
61
- align-items: center;
62
- justify-content: center;
63
- width: var(--cp-avatar-size, 40px);
64
- height: var(--cp-avatar-size, 40px);
65
- background-color: var(--cp-bg-elevated);
66
- color: var(--cp-text-secondary);
67
- font-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-group-counter-font-ratio});
68
- font-weight: 600;
69
- margin-left: var(--cp-avatar-group-spacing, -8px);
70
- border: $avatar-group-border-width solid var(--cp-bg-base);
71
- box-sizing: content-box;
72
- cursor: default;
73
- z-index: 11;
74
- flex-shrink: 0;
75
-
76
- // Hover 效果
77
- transition: background-color 0.2s ease,
78
- color 0.2s ease;
79
-
80
- &:hover {
81
- background-color: var(--cp-border);
82
- color: var(--cp-text-primary);
83
- }
84
-
85
- // ========================================
86
- // 计数器形状变体
87
- // ========================================
88
-
89
- // 圆形 (默认)
90
- &.#{$namespace}-avatar-group__counter--shape-circle {
91
- border-radius: 50%;
92
- }
93
-
94
- // 圆角方形
95
- &.#{$namespace}-avatar-group__counter--shape-square {
96
- border-radius: var(--cp-radius-sm);
97
- }
98
-
99
- // 机甲切角
100
- &.#{$namespace}-avatar-group__counter--shape-clip {
101
- $clip-size: calc(var(--cp-avatar-size, 40px) * #{$counter-clip-ratio});
102
- clip-path: polygon(
103
- #{$clip-size} 0,
104
- 100% 0,
105
- 100% calc(100% - #{$clip-size}),
106
- calc(100% - #{$clip-size}) 100%,
107
- 0 100%,
108
- 0 #{$clip-size}
109
- );
110
- border-radius: 0;
111
- }
112
- }
113
- }
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ // ============================================
5
+ // CpAvatarGroup - 头像组组件
6
+ // ============================================
7
+
8
+ // 边框宽度
9
+ $avatar-group-border-width: 2px;
10
+
11
+ // 折叠计数器字体比例
12
+ $avatar-group-counter-font-ratio: 0.35;
13
+
14
+ @include b(avatar-group) {
15
+ display: inline-flex;
16
+ align-items: center;
17
+
18
+ // ========================================
19
+ // 堆叠模式
20
+ // ========================================
21
+
22
+ &.is-stacked {
23
+ .#{$namespace}-avatar {
24
+ margin-left: var(--cp-avatar-group-spacing, -8px);
25
+ border: $avatar-group-border-width solid var(--cp-bg-base);
26
+ box-sizing: content-box;
27
+
28
+ &:first-child {
29
+ margin-left: 0;
30
+ }
31
+
32
+ // 堆叠时增加 z-index,后面的在上
33
+ @for $i from 1 through 10 {
34
+ &:nth-child(#{$i}) {
35
+ z-index: #{$i};
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ // 非堆叠模式 - 使用正间距
42
+ &:not(.is-stacked) {
43
+ .#{$namespace}-avatar {
44
+ margin-left: var(--cp-avatar-group-spacing, 0);
45
+
46
+ &:first-child {
47
+ margin-left: 0;
48
+ }
49
+ }
50
+ }
51
+
52
+ // ========================================
53
+ // 折叠计数器
54
+ // ========================================
55
+
56
+ // 切角尺寸比例(与 avatar 保持一致)
57
+ $counter-clip-ratio: 0.15;
58
+
59
+ @include e(counter) {
60
+ display: inline-flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ width: var(--cp-avatar-size, 40px);
64
+ height: var(--cp-avatar-size, 40px);
65
+ background-color: var(--cp-bg-elevated);
66
+ color: var(--cp-text-secondary);
67
+ font-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-group-counter-font-ratio});
68
+ font-weight: 600;
69
+ margin-left: var(--cp-avatar-group-spacing, -8px);
70
+ border: $avatar-group-border-width solid var(--cp-bg-base);
71
+ box-sizing: content-box;
72
+ cursor: default;
73
+ z-index: 11;
74
+ flex-shrink: 0;
75
+
76
+ // Hover 效果
77
+ transition: background-color 0.2s ease,
78
+ color 0.2s ease;
79
+
80
+ &:hover {
81
+ background-color: var(--cp-border);
82
+ color: var(--cp-text-primary);
83
+ }
84
+
85
+ // ========================================
86
+ // 计数器形状变体
87
+ // ========================================
88
+
89
+ // 圆形 (默认)
90
+ &.#{$namespace}-avatar-group__counter--shape-circle {
91
+ border-radius: 50%;
92
+ }
93
+
94
+ // 圆角方形
95
+ &.#{$namespace}-avatar-group__counter--shape-square {
96
+ border-radius: var(--cp-radius-sm);
97
+ }
98
+
99
+ // 机甲切角
100
+ &.#{$namespace}-avatar-group__counter--shape-clip {
101
+ $clip-size: calc(var(--cp-avatar-size, 40px) * #{$counter-clip-ratio});
102
+ clip-path: polygon(
103
+ #{$clip-size} 0,
104
+ 100% 0,
105
+ 100% calc(100% - #{$clip-size}),
106
+ calc(100% - #{$clip-size}) 100%,
107
+ 0 100%,
108
+ 0 #{$clip-size}
109
+ );
110
+ border-radius: 0;
111
+ }
112
+ }
113
+ }
@@ -1,123 +1,123 @@
1
- @use '../mixins/mixins' as *;
2
- @use '../common/var' as *;
3
-
4
- // ============================================
5
- // CpAvatar - 赛博朋克风格头像组件
6
- // ============================================
7
-
8
- // 切角尺寸比例
9
- $avatar-clip-ratio: 0.15;
10
-
11
- // 图标占比
12
- $avatar-icon-ratio: 0.55;
13
-
14
- // 文字占比
15
- $avatar-font-ratio: 0.4;
16
-
17
- // 过渡时间
18
- $avatar-transition-duration: 0.2s;
19
-
20
- @include b(avatar) {
21
- display: inline-flex;
22
- align-items: center;
23
- justify-content: center;
24
- position: relative;
25
- overflow: hidden;
26
- background-color: var(--cp-bg-elevated);
27
- color: var(--cp-text-muted);
28
- vertical-align: middle;
29
- flex-shrink: 0;
30
-
31
- // 使用 CSS 变量控制尺寸
32
- width: var(--cp-avatar-size, 40px);
33
- height: var(--cp-avatar-size, 40px);
34
- font-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-font-ratio});
35
-
36
- // 默认禁止选中和拖拽
37
- user-select: none;
38
- -webkit-user-drag: none;
39
-
40
- transition: background-color $avatar-transition-duration ease,
41
- box-shadow $avatar-transition-duration ease;
42
-
43
- // ========================================
44
- // 形状变体
45
- // ========================================
46
-
47
- // 圆形 (默认)
48
- &.#{$namespace}-avatar--shape-circle {
49
- border-radius: 50%;
50
- }
51
-
52
- // 圆角方形
53
- &.#{$namespace}-avatar--shape-square {
54
- border-radius: var(--cp-radius-sm);
55
- }
56
-
57
- // 机甲切角
58
- &.#{$namespace}-avatar--shape-clip {
59
- $clip-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-clip-ratio});
60
- clip-path: polygon(
61
- #{$clip-size} 0,
62
- 100% 0,
63
- 100% calc(100% - #{$clip-size}),
64
- calc(100% - #{$clip-size}) 100%,
65
- 0 100%,
66
- 0 #{$clip-size}
67
- );
68
- }
69
-
70
- // ========================================
71
- // 内部元素
72
- // ========================================
73
-
74
- // 图片
75
- @include e(image) {
76
- display: block;
77
- width: 100%;
78
- height: 100%;
79
- object-fit: cover;
80
- }
81
-
82
- // 图标
83
- @include e(icon) {
84
- font-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-icon-ratio}) !important;
85
- color: inherit;
86
- }
87
-
88
- // 文字
89
- @include e(text) {
90
- display: flex;
91
- align-items: center;
92
- justify-content: center;
93
- font-weight: 500;
94
- text-transform: uppercase;
95
- white-space: nowrap;
96
- }
97
-
98
- // 占位符(用户轮廓)
99
- @include e(placeholder) {
100
- width: 55%;
101
- height: 55%;
102
- color: var(--cp-text-muted);
103
- opacity: 0.7;
104
- }
105
-
106
- // ========================================
107
- // 状态
108
- // ========================================
109
-
110
- // 加载中
111
- &.is-loading {
112
- .#{$namespace}-avatar__image {
113
- opacity: 0;
114
- }
115
- }
116
-
117
- // 错误
118
- &.is-error {
119
- .#{$namespace}-avatar__image {
120
- display: none;
121
- }
122
- }
123
- }
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ // ============================================
5
+ // CpAvatar - 赛博朋克风格头像组件
6
+ // ============================================
7
+
8
+ // 切角尺寸比例
9
+ $avatar-clip-ratio: 0.15;
10
+
11
+ // 图标占比
12
+ $avatar-icon-ratio: 0.55;
13
+
14
+ // 文字占比
15
+ $avatar-font-ratio: 0.4;
16
+
17
+ // 过渡时间
18
+ $avatar-transition-duration: 0.2s;
19
+
20
+ @include b(avatar) {
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ position: relative;
25
+ overflow: hidden;
26
+ background-color: var(--cp-bg-elevated);
27
+ color: var(--cp-text-muted);
28
+ vertical-align: middle;
29
+ flex-shrink: 0;
30
+
31
+ // 使用 CSS 变量控制尺寸
32
+ width: var(--cp-avatar-size, 40px);
33
+ height: var(--cp-avatar-size, 40px);
34
+ font-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-font-ratio});
35
+
36
+ // 默认禁止选中和拖拽
37
+ user-select: none;
38
+ -webkit-user-drag: none;
39
+
40
+ transition: background-color $avatar-transition-duration ease,
41
+ box-shadow $avatar-transition-duration ease;
42
+
43
+ // ========================================
44
+ // 形状变体
45
+ // ========================================
46
+
47
+ // 圆形 (默认)
48
+ &.#{$namespace}-avatar--shape-circle {
49
+ border-radius: 50%;
50
+ }
51
+
52
+ // 圆角方形
53
+ &.#{$namespace}-avatar--shape-square {
54
+ border-radius: var(--cp-radius-sm);
55
+ }
56
+
57
+ // 机甲切角
58
+ &.#{$namespace}-avatar--shape-clip {
59
+ $clip-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-clip-ratio});
60
+ clip-path: polygon(
61
+ #{$clip-size} 0,
62
+ 100% 0,
63
+ 100% calc(100% - #{$clip-size}),
64
+ calc(100% - #{$clip-size}) 100%,
65
+ 0 100%,
66
+ 0 #{$clip-size}
67
+ );
68
+ }
69
+
70
+ // ========================================
71
+ // 内部元素
72
+ // ========================================
73
+
74
+ // 图片
75
+ @include e(image) {
76
+ display: block;
77
+ width: 100%;
78
+ height: 100%;
79
+ object-fit: cover;
80
+ }
81
+
82
+ // 图标
83
+ @include e(icon) {
84
+ font-size: calc(var(--cp-avatar-size, 40px) * #{$avatar-icon-ratio}) !important;
85
+ color: inherit;
86
+ }
87
+
88
+ // 文字
89
+ @include e(text) {
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ font-weight: 500;
94
+ text-transform: uppercase;
95
+ white-space: nowrap;
96
+ }
97
+
98
+ // 占位符(用户轮廓)
99
+ @include e(placeholder) {
100
+ width: 55%;
101
+ height: 55%;
102
+ color: var(--cp-text-muted);
103
+ opacity: 0.7;
104
+ }
105
+
106
+ // ========================================
107
+ // 状态
108
+ // ========================================
109
+
110
+ // 加载中
111
+ &.is-loading {
112
+ .#{$namespace}-avatar__image {
113
+ opacity: 0;
114
+ }
115
+ }
116
+
117
+ // 错误
118
+ &.is-error {
119
+ .#{$namespace}-avatar__image {
120
+ display: none;
121
+ }
122
+ }
123
+ }