@sdata/web-vue 4.7.1 → 5.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.
- package/dist/sd.css +4004 -3955
- package/dist/sd.min.css +13 -13
- package/es/_components/input-label/style/index.css +47 -47
- package/es/_components/select-view/style/index.css +256 -256
- package/es/alert/style/index.css +48 -48
- package/es/alert/style/token.scss +257 -0
- package/es/anchor/style/index.css +18 -18
- package/es/anchor/style/token.scss +74 -0
- package/es/auto-complete/style/index.css +18 -18
- package/es/auto-complete/style/token.scss +94 -0
- package/es/avatar/style/index.css +31 -31
- package/es/avatar/style/token.scss +118 -0
- package/es/back-top/style/index.css +11 -11
- package/es/back-top/style/token.scss +60 -0
- package/es/badge/style/index.css +35 -35
- package/es/badge/style/token.scss +148 -0
- package/es/basic-crud-table/style/index.css +4 -4
- package/es/basic-crud-table/style/token.scss +20 -0
- package/es/bloom-menu/style/index.css +33 -34
- package/es/bloom-menu/style/index.scss +5 -5
- package/es/bloom-menu/style/token.scss +99 -0
- package/es/border-beam/style/token.scss +28 -0
- package/es/breadcrumb/style/index.css +17 -17
- package/es/breadcrumb/style/token.scss +97 -0
- package/es/button/style/index.css +379 -379
- package/es/button/style/index.scss +3 -3
- package/es/button/style/token.scss +1604 -0
- package/es/card/style/index.css +36 -36
- package/es/card/style/token.scss +162 -0
- package/es/carousel/style/index.css +41 -41
- package/es/carousel/style/token.scss +101 -0
- package/es/cascader/style/index.css +58 -58
- package/es/cascader/style/token.scss +89 -0
- package/es/checkbox/style/index.css +28 -28
- package/es/checkbox/style/token.scss +134 -0
- package/es/collapse/style/index.css +24 -24
- package/es/collapse/style/token.scss +136 -0
- package/es/color-picker/style/index.css +50 -50
- package/es/color-picker/style/token.scss +200 -0
- package/es/comment/style/index.css +15 -15
- package/es/comment/style/token.scss +83 -0
- package/es/config-provider/algorithms.d.ts +11 -0
- package/es/config-provider/algorithms.js +53 -0
- package/es/config-provider/global-theme.js +7 -4
- package/es/config-provider/theme-config.d.ts +11 -0
- package/es/config-provider/theme-config.js +114 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +46 -11
- package/es/config-provider/theme.d.ts +4 -1
- package/es/config-provider/theme.js +6 -5
- package/es/config-provider/token-key.d.ts +1 -0
- package/es/config-provider/token-key.js +6 -0
- package/es/copy/style/index.css +1 -1
- package/es/copy/style/token.scss +9 -0
- package/es/cropper/style/index.css +7 -7
- package/es/cropper/style/token.scss +24 -0
- package/es/date-picker/style/index.css +73 -73
- package/es/date-picker/style/token.scss +229 -0
- package/es/descriptions/style/index.css +45 -45
- package/es/descriptions/style/token.scss +191 -0
- package/es/divider/style/index.css +11 -11
- package/es/divider/style/token.scss +60 -0
- package/es/drawer/style/index.css +13 -13
- package/es/drawer/style/token.scss +68 -0
- package/es/dropdown/style/index.css +24 -23
- package/es/dropdown/style/index.scss +4 -2
- package/es/dropdown/style/token.scss +123 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/ellipsis/interface.d.ts +1 -0
- package/es/ellipsis/style/index.css +2 -2
- package/es/ellipsis/style/token.scss +5 -0
- package/es/empty/style/index.css +7 -7
- package/es/empty/style/token.scss +35 -0
- package/es/file-previewer/style/index.css +44 -44
- package/es/file-previewer/style/token.scss +198 -0
- package/es/form/style/index.css +113 -113
- package/es/form/style/token.scss +340 -0
- package/es/image/style/index.css +83 -83
- package/es/image/style/token.scss +451 -0
- package/es/index.css +4004 -3955
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/input/style/index.css +104 -104
- package/es/input/style/input.scss +2 -8
- package/es/input/style/size.scss +4 -4
- package/es/input/style/token.scss +327 -0
- package/es/input-mask/style/index.css +1 -1
- package/es/input-mask/style/token.scss +8 -0
- package/es/input-number/style/index.css +19 -19
- package/es/input-number/style/token.scss +82 -0
- package/es/input-tag/style/index.css +209 -209
- package/es/input-tag/style/token.scss +226 -0
- package/es/json-form/style/index.css +2 -2
- package/es/json-form/style/token.scss +21 -0
- package/es/kv-list/style/index.css +13 -13
- package/es/kv-list/style/token.scss +29 -0
- package/es/layout/style/index.css +38 -38
- package/es/layout/style/token.scss +100 -0
- package/es/link/style/index.css +28 -28
- package/es/link/style/token.scss +117 -0
- package/es/list/style/index.css +27 -27
- package/es/list/style/token.scss +178 -0
- package/es/mention/style/token.scss +22 -0
- package/es/menu/style/index.css +153 -120
- package/es/menu/style/index.scss +12 -4
- package/es/menu/style/token.scss +390 -0
- package/es/message/style/index.css +33 -33
- package/es/message/style/token.scss +218 -0
- package/es/modal/style/index.css +21 -21
- package/es/modal/style/token.scss +115 -0
- package/es/model-selector/style/index.css +1 -1
- package/es/notification/style/index.css +44 -44
- package/es/notification/style/token.scss +241 -0
- package/es/number-flow/style/index.css +5 -5
- package/es/number-flow/style/token.scss +19 -0
- package/es/page-header/style/index.css +25 -25
- package/es/page-header/style/token.scss +139 -0
- package/es/pagination/style/index.css +85 -85
- package/es/pagination/style/token.scss +303 -0
- package/es/panel-group/style/index.css +7 -7
- package/es/panel-group/style/token.scss +28 -0
- package/es/popconfirm/style/index.css +18 -18
- package/es/popconfirm/style/token.scss +83 -0
- package/es/popover/style/index.css +12 -12
- package/es/popover/style/token.scss +58 -0
- package/es/progress/style/index.css +55 -55
- package/es/progress/style/token.scss +253 -0
- package/es/qr-code/style/index.css +18 -21
- package/es/qr-code/style/index.scss +4 -6
- package/es/qr-code/style/token.scss +59 -0
- package/es/radio/style/index.css +45 -44
- package/es/radio/style/index.scss +1 -0
- package/es/radio/style/token.scss +185 -0
- package/es/rate/style/index.css +8 -8
- package/es/rate/style/token.scss +19 -0
- package/es/regex-vis/style/index.css +51 -51
- package/es/regex-vis/style/token.scss +170 -0
- package/es/result/style/index.css +26 -26
- package/es/result/style/token.scss +139 -0
- package/es/rich-text-editor/style/index.css +31 -31
- package/es/rich-text-editor/style/token.scss +120 -0
- package/es/scrollbar/style/index.css +14 -14
- package/es/scrollbar/style/token.scss +33 -0
- package/es/secret/style/index.css +6 -6
- package/es/secret/style/token.scss +30 -0
- package/es/select/style/index.css +27 -27
- package/es/select/style/token.scss +151 -0
- package/es/selectable-card/style/index.css +53 -51
- package/es/selectable-card/style/index.scss +6 -2
- package/es/selectable-card/style/token.scss +60 -0
- package/es/sender/style/index.css +54 -54
- package/es/sender/style/token.scss +155 -0
- package/es/skeleton/style/index.css +12 -12
- package/es/skeleton/style/token.scss +60 -0
- package/es/slider/style/index.css +34 -34
- package/es/slider/style/token.scss +144 -0
- package/es/spin/style/index.css +11 -11
- package/es/spin/style/token.scss +60 -0
- package/es/split/style/index.css +2 -2
- package/es/split/style/token.scss +18 -0
- package/es/statistic/style/index.css +13 -13
- package/es/statistic/style/token.scss +73 -0
- package/es/steps/style/index.css +98 -98
- package/es/steps/style/token.scss +464 -0
- package/es/style/color/css-variables.scss +382 -381
- package/es/style/theme/css-variables.scss +329 -135
- package/es/style/theme/global.scss +5 -5
- package/es/style/theme/index.scss +1 -1
- package/es/style/theme/runtime.scss +29 -0
- package/es/switch/style/index.css +37 -37
- package/es/switch/style/token.scss +135 -0
- package/es/table/style/index.css +127 -127
- package/es/table/style/token.scss +425 -0
- package/es/tabs/style/index.css +196 -190
- package/es/tabs/style/index.scss +27 -17
- package/es/tabs/style/token.scss +534 -0
- package/es/tag/index.d.ts +13 -0
- package/es/tag/interface.d.ts +1 -0
- package/es/tag/style/index.css +159 -159
- package/es/tag/style/token.scss +513 -0
- package/es/tag/tag.vue.d.ts +13 -3
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +35 -8
- package/es/tag-group/style/index.css +3 -3
- package/es/tag-group/style/token.scss +9 -0
- package/es/textarea/style/index.css +40 -40
- package/es/time-picker/style/index.css +12 -12
- package/es/time-picker/style/token.scss +50 -0
- package/es/timeline/style/index.css +22 -22
- package/es/timeline/style/token.scss +75 -0
- package/es/toolbar/style/index.css +6 -6
- package/es/toolbar/style/token.scss +45 -0
- package/es/tooltip/style/index.css +8 -8
- package/es/tooltip/style/token.scss +46 -0
- package/es/tour/style/index.css +28 -28
- package/es/tour/style/token.scss +65 -0
- package/es/transfer/style/index.css +46 -45
- package/es/transfer/style/index.scss +4 -1
- package/es/transfer/style/token.scss +199 -0
- package/es/tree/style/index.css +43 -36
- package/es/tree/style/index.scss +10 -0
- package/es/tree/style/token.scss +163 -0
- package/es/tree-select/style/index.css +9 -9
- package/es/tree-select/style/token.scss +21 -0
- package/es/trigger/style/index.css +7 -7
- package/es/trigger/style/token.scss +19 -0
- package/es/typography/style/index.css +40 -40
- package/es/typography/style/token.scss +220 -0
- package/es/upload/index.d.ts +3 -0
- package/es/upload/style/index.css +95 -95
- package/es/upload/style/token.scss +470 -0
- package/es/upload/upload.vue.d.ts +2 -0
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +109 -16
- package/json/vetur-attributes.json +7 -0
- package/json/vetur-tags.json +4 -1
- package/json/web-types.json +18 -2
- package/package.json +7 -2
- package/es/style/color/palette-dark.d.ts +0 -4
- package/es/style/color/palette-dark.js +0 -10
- package/es/style/color/palette.d.ts +0 -4
- package/es/style/color/palette.js +0 -10
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -23,3 +24,48 @@ $tooltip-border-radius: global.$radius-small;
|
|
|
23
24
|
$tooltip-color-text: #fff;
|
|
24
25
|
|
|
25
26
|
$tooltip-color-bg: var(string.unquote('#{global.$sd-cssvars-prefix}-color-tooltip-bg'));
|
|
27
|
+
|
|
28
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
29
|
+
$tooltip-padding-horizontal: theme-runtime.token(
|
|
30
|
+
'tooltip',
|
|
31
|
+
'tooltip-padding-horizontal',
|
|
32
|
+
$tooltip-padding-horizontal,
|
|
33
|
+
'spacing-6'
|
|
34
|
+
);
|
|
35
|
+
$tooltip-padding-vertical: theme-runtime.token(
|
|
36
|
+
'tooltip',
|
|
37
|
+
'tooltip-padding-vertical',
|
|
38
|
+
$tooltip-padding-vertical,
|
|
39
|
+
'spacing-4'
|
|
40
|
+
);
|
|
41
|
+
$tooltip-mini-padding-horizontal: theme-runtime.token(
|
|
42
|
+
'tooltip',
|
|
43
|
+
'tooltip-mini-padding-horizontal',
|
|
44
|
+
$tooltip-mini-padding-horizontal,
|
|
45
|
+
'spacing-6'
|
|
46
|
+
);
|
|
47
|
+
$tooltip-mini-padding-vertical: theme-runtime.token(
|
|
48
|
+
'tooltip',
|
|
49
|
+
'tooltip-mini-padding-vertical',
|
|
50
|
+
$tooltip-mini-padding-vertical,
|
|
51
|
+
'spacing-2'
|
|
52
|
+
);
|
|
53
|
+
$tooltip-mini-font-size: theme-runtime.token(
|
|
54
|
+
'tooltip',
|
|
55
|
+
'tooltip-mini-font-size',
|
|
56
|
+
$tooltip-mini-font-size,
|
|
57
|
+
'font-size-body-3'
|
|
58
|
+
);
|
|
59
|
+
$tooltip-font-size: theme-runtime.token(
|
|
60
|
+
'tooltip',
|
|
61
|
+
'tooltip-font-size',
|
|
62
|
+
$tooltip-font-size,
|
|
63
|
+
'font-size-body-3'
|
|
64
|
+
);
|
|
65
|
+
$tooltip-border-radius: theme-runtime.token(
|
|
66
|
+
'tooltip',
|
|
67
|
+
'tooltip-border-radius',
|
|
68
|
+
$tooltip-border-radius
|
|
69
|
+
);
|
|
70
|
+
$tooltip-color-text: theme-runtime.token('tooltip', 'tooltip-color-text', $tooltip-color-text);
|
|
71
|
+
$tooltip-color-bg: theme-runtime.token('tooltip', 'tooltip-color-bg', $tooltip-color-bg);
|
package/es/tour/style/index.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/******** radius *******/
|
|
17
17
|
/********* icon hover *********/
|
|
18
18
|
.sd-tour-overlay {
|
|
19
|
-
z-index: 1000;
|
|
19
|
+
z-index: var(--component-tour-tour-z-index-overlay, var(--component-tour-z-index-overlay, 1000));
|
|
20
20
|
pointer-events: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -44,7 +44,7 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
44
44
|
|
|
45
45
|
.sd-tour-popover {
|
|
46
46
|
position: fixed;
|
|
47
|
-
z-index: 1001;
|
|
47
|
+
z-index: var(--component-tour-tour-z-index-popover, var(--component-tour-z-index-popover, 1001));
|
|
48
48
|
box-sizing: border-box;
|
|
49
49
|
min-width: 280px;
|
|
50
50
|
max-width: 360px;
|
|
@@ -60,12 +60,12 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.sd-tour-popover {
|
|
63
|
-
padding: 12px 16px;
|
|
64
|
-
color: var(--sd-color-text-1);
|
|
65
|
-
background-color: var(--sd-color-bg-popup);
|
|
66
|
-
border: 1px solid var(--sd-color-neutral-3);
|
|
67
|
-
border-radius: var(--sd-border-radius-medium);
|
|
68
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
63
|
+
padding: var(--component-tour-tour-padding-vertical, var(--component-tour-padding-vertical, var(--spacing-6, 12px))) var(--component-tour-tour-padding-horizontal, var(--component-tour-padding-horizontal, var(--spacing-7, 16px)));
|
|
64
|
+
color: var(--component-tour-tour-color-text, var(--component-tour-color-text, var(--sd-color-text-1)));
|
|
65
|
+
background-color: var(--component-tour-tour-color-bg, var(--component-tour-color-bg, var(--sd-color-bg-popup)));
|
|
66
|
+
border: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
67
|
+
border-radius: var(--component-tour-tour-border-radius, var(--component-tour-border-radius, var(--sd-border-radius-medium)));
|
|
68
|
+
box-shadow: var(--component-tour-tour-shadow, var(--component-tour-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.sd-tour-popover .sd-tour-content {
|
|
@@ -74,44 +74,44 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.sd-tour-popover .sd-tour-popover-title {
|
|
77
|
-
color: var(--sd-color-text-1);
|
|
78
|
-
font-size: 16px;
|
|
77
|
+
color: var(--component-tour-tour-color-text, var(--component-tour-color-text, var(--sd-color-text-1)));
|
|
78
|
+
font-size: var(--component-tour-tour-font-size-title, var(--component-tour-font-size-title, var(--font-size-title-1, 16px)));
|
|
79
79
|
line-height: 1.5715;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.sd-tour-popover .sd-tour-popover-description {
|
|
83
|
-
color: var(--sd-color-text-2);
|
|
84
|
-
font-size: 14px;
|
|
83
|
+
color: var(--component-tour-tour-color-description, var(--component-tour-color-description, var(--sd-color-text-2)));
|
|
84
|
+
font-size: var(--component-tour-tour-font-size-body, var(--component-tour-font-size-body, var(--font-size-body-3, 14px)));
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.sd-tour-popover .sd-tour-popover-title[style*=block] + .sd-tour-popover-description {
|
|
88
|
-
margin-top: 4px;
|
|
88
|
+
margin-top: var(--component-tour-tour-gap-title, var(--component-tour-gap-title, var(--spacing-2, 4px)));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.sd-tour-popover .sd-tour-popover-progress-text {
|
|
92
|
-
color: var(--sd-color-text-2);
|
|
93
|
-
font-size: 12px;
|
|
92
|
+
color: var(--component-tour-tour-color-description, var(--component-tour-color-description, var(--sd-color-text-2)));
|
|
93
|
+
font-size: var(--component-tour-tour-font-size-progress, var(--component-tour-font-size-progress, var(--font-size-body-1, 12px)));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.sd-tour-popover .sd-tour-popover-close-btn {
|
|
97
|
-
color: var(--sd-color-text-2);
|
|
97
|
+
color: var(--component-tour-tour-color-description, var(--component-tour-color-description, var(--sd-color-text-2)));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.sd-tour-popover .sd-tour-popover-close-btn:hover,
|
|
101
101
|
.sd-tour-popover .sd-tour-popover-close-btn:focus {
|
|
102
|
-
color: var(--sd-color-text-1);
|
|
102
|
+
color: var(--component-tour-tour-color-text, var(--component-tour-color-text, var(--sd-color-text-1)));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.sd-tour-popover .sd-tour-popover-footer {
|
|
106
106
|
display: flex;
|
|
107
107
|
align-items: center;
|
|
108
108
|
justify-content: space-between;
|
|
109
|
-
margin-top: 10px;
|
|
109
|
+
margin-top: var(--component-tour-tour-gap-footer, var(--component-tour-gap-footer, var(--spacing-5, 10px)));
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.sd-tour-popover .sd-tour-popover-navigation-btns {
|
|
113
113
|
display: inline-flex;
|
|
114
|
-
gap: 4px;
|
|
114
|
+
gap: var(--component-tour-tour-gap-buttons, var(--component-tour-gap-buttons, var(--spacing-2, 4px)));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.sd-tour-popover .sd-tour-popover-progress-text {
|
|
@@ -133,7 +133,7 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
133
133
|
width: 24px;
|
|
134
134
|
height: 24px;
|
|
135
135
|
padding: 0;
|
|
136
|
-
color: var(--sd-color-text-2);
|
|
136
|
+
color: var(--component-tour-tour-color-description, var(--component-tour-color-description, var(--sd-color-text-2)));
|
|
137
137
|
font-size: 20px;
|
|
138
138
|
line-height: 1;
|
|
139
139
|
background: transparent;
|
|
@@ -150,17 +150,17 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
150
150
|
position: absolute;
|
|
151
151
|
width: 12px;
|
|
152
152
|
height: 12px;
|
|
153
|
-
background: var(--sd-color-bg-popup);
|
|
154
|
-
border-top: 1px solid var(--sd-color-neutral-3);
|
|
155
|
-
border-left: 1px solid var(--sd-color-neutral-3);
|
|
153
|
+
background: var(--component-tour-tour-color-bg, var(--component-tour-color-bg, var(--sd-color-bg-popup)));
|
|
154
|
+
border-top: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
155
|
+
border-left: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
156
156
|
transform: rotate(45deg);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.sd-tour-popover-arrow-side-top {
|
|
160
160
|
bottom: -7px;
|
|
161
161
|
border-top: 0;
|
|
162
|
-
border-right: 1px solid var(--sd-color-neutral-3);
|
|
163
|
-
border-bottom: 1px solid var(--sd-color-neutral-3);
|
|
162
|
+
border-right: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
163
|
+
border-bottom: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
164
164
|
border-left: 0;
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -171,8 +171,8 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
171
171
|
.sd-tour-popover-arrow-side-left {
|
|
172
172
|
right: -7px;
|
|
173
173
|
border-top: 0;
|
|
174
|
-
border-right: 1px solid var(--sd-color-neutral-3);
|
|
175
|
-
border-bottom: 1px solid var(--sd-color-neutral-3);
|
|
174
|
+
border-right: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
175
|
+
border-bottom: 1px solid var(--component-tour-tour-color-border, var(--component-tour-color-border, var(--sd-color-neutral-3)));
|
|
176
176
|
border-left: 0;
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -217,7 +217,7 @@ body.sd-tour-active .sd-tour-popover * {
|
|
|
217
217
|
|
|
218
218
|
.sd-tour-active-element {
|
|
219
219
|
position: relative;
|
|
220
|
-
z-index: var(--sd-tour-active-z-index, 1001);
|
|
220
|
+
z-index: var(--sd-tour-active-z-index, var(--component-tour-tour-z-index-popover, var(--component-tour-z-index-popover, 1001)));
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
.sd-tour-no-interaction,
|
package/es/tour/style/token.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/index.scss' as global;
|
|
2
3
|
|
|
3
4
|
@forward '@style/theme/index.scss';
|
|
@@ -25,3 +26,67 @@ $tour-button-padding-y: global.$spacing-1;
|
|
|
25
26
|
$tour-button-padding-x: global.$spacing-4;
|
|
26
27
|
$tour-z-index-overlay: global.$z-index-popup;
|
|
27
28
|
$tour-z-index-popover: global.$z-index-drawer;
|
|
29
|
+
|
|
30
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
31
|
+
$tour-color-bg: theme-runtime.token('tour', 'tour-color-bg', $tour-color-bg);
|
|
32
|
+
$tour-color-text: theme-runtime.token('tour', 'tour-color-text', $tour-color-text);
|
|
33
|
+
$tour-color-description: theme-runtime.token(
|
|
34
|
+
'tour',
|
|
35
|
+
'tour-color-description',
|
|
36
|
+
$tour-color-description
|
|
37
|
+
);
|
|
38
|
+
$tour-color-border: theme-runtime.token('tour', 'tour-color-border', $tour-color-border);
|
|
39
|
+
$tour-color-primary-text: theme-runtime.token(
|
|
40
|
+
'tour',
|
|
41
|
+
'tour-color-primary-text',
|
|
42
|
+
$tour-color-primary-text
|
|
43
|
+
);
|
|
44
|
+
$tour-border-radius: theme-runtime.token('tour', 'tour-border-radius', $tour-border-radius);
|
|
45
|
+
$tour-shadow: theme-runtime.token('tour', 'tour-shadow', $tour-shadow);
|
|
46
|
+
$tour-font-size-title: theme-runtime.token(
|
|
47
|
+
'tour',
|
|
48
|
+
'tour-font-size-title',
|
|
49
|
+
$tour-font-size-title,
|
|
50
|
+
'font-size-title-1'
|
|
51
|
+
);
|
|
52
|
+
$tour-font-size-body: theme-runtime.token(
|
|
53
|
+
'tour',
|
|
54
|
+
'tour-font-size-body',
|
|
55
|
+
$tour-font-size-body,
|
|
56
|
+
'font-size-body-3'
|
|
57
|
+
);
|
|
58
|
+
$tour-font-size-progress: theme-runtime.token(
|
|
59
|
+
'tour',
|
|
60
|
+
'tour-font-size-progress',
|
|
61
|
+
$tour-font-size-progress,
|
|
62
|
+
'font-size-body-1'
|
|
63
|
+
);
|
|
64
|
+
$tour-padding-vertical: theme-runtime.token(
|
|
65
|
+
'tour',
|
|
66
|
+
'tour-padding-vertical',
|
|
67
|
+
$tour-padding-vertical,
|
|
68
|
+
'spacing-6'
|
|
69
|
+
);
|
|
70
|
+
$tour-padding-horizontal: theme-runtime.token(
|
|
71
|
+
'tour',
|
|
72
|
+
'tour-padding-horizontal',
|
|
73
|
+
$tour-padding-horizontal,
|
|
74
|
+
'spacing-7'
|
|
75
|
+
);
|
|
76
|
+
$tour-gap-title: theme-runtime.token('tour', 'tour-gap-title', $tour-gap-title, 'spacing-2');
|
|
77
|
+
$tour-gap-footer: theme-runtime.token('tour', 'tour-gap-footer', $tour-gap-footer, 'spacing-5');
|
|
78
|
+
$tour-gap-buttons: theme-runtime.token('tour', 'tour-gap-buttons', $tour-gap-buttons, 'spacing-2');
|
|
79
|
+
$tour-button-padding-y: theme-runtime.token(
|
|
80
|
+
'tour',
|
|
81
|
+
'tour-button-padding-y',
|
|
82
|
+
$tour-button-padding-y,
|
|
83
|
+
'spacing-1'
|
|
84
|
+
);
|
|
85
|
+
$tour-button-padding-x: theme-runtime.token(
|
|
86
|
+
'tour',
|
|
87
|
+
'tour-button-padding-x',
|
|
88
|
+
$tour-button-padding-x,
|
|
89
|
+
'spacing-4'
|
|
90
|
+
);
|
|
91
|
+
$tour-z-index-overlay: theme-runtime.token('tour', 'tour-z-index-overlay', $tour-z-index-overlay);
|
|
92
|
+
$tour-z-index-popover: theme-runtime.token('tour', 'tour-z-index-popover', $tour-z-index-popover);
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
box-sizing: border-box;
|
|
26
|
-
width: 200px;
|
|
27
|
-
height: 224px;
|
|
28
|
-
border: 1px solid var(--sd-color-neutral-3);
|
|
29
|
-
border-radius: var(--sd-border-radius-small);
|
|
26
|
+
width: var(--component-transfer-transfer-width, var(--component-transfer-width, 200px));
|
|
27
|
+
height: var(--component-transfer-transfer-height, var(--component-transfer-height, 224px));
|
|
28
|
+
border: var(--component-transfer-transfer-border-width, var(--component-transfer-border-width, var(--border-1, 1px))) solid var(--component-transfer-transfer-border-color, var(--component-transfer-border-color, var(--sd-color-neutral-3)));
|
|
29
|
+
border-radius: var(--component-transfer-transfer-border-radius, var(--component-transfer-border-radius, var(--sd-border-radius-small)));
|
|
30
30
|
}
|
|
31
31
|
.sd-transfer-view-search {
|
|
32
|
-
padding: 8px 12px 4px 12px;
|
|
32
|
+
padding: var(--component-transfer-transfer-search-padding-top, var(--component-transfer-search-padding-top, 8px)) var(--component-transfer-transfer-search-padding-right, var(--component-transfer-search-padding-right, 12px)) var(--component-transfer-transfer-search-padding-bottom, var(--component-transfer-search-padding-bottom, 4px)) var(--component-transfer-transfer-search-padding-left, var(--component-transfer-search-padding-left, 12px));
|
|
33
33
|
}
|
|
34
34
|
.sd-transfer-view-list {
|
|
35
35
|
flex: 1;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.sd-transfer-view-header {
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
|
-
padding: 0 10px;
|
|
44
|
+
padding: 0 var(--component-transfer-transfer-item-padding-horizontal, var(--component-transfer-item-padding-horizontal, var(--spacing-5, 10px)));
|
|
45
45
|
}
|
|
46
46
|
.sd-transfer-view-header > *:first-child {
|
|
47
47
|
flex: 1;
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
margin-right: 8px;
|
|
54
54
|
}
|
|
55
55
|
.sd-transfer-view-header {
|
|
56
|
-
height: 40px;
|
|
57
|
-
color: var(--sd-color-text-1);
|
|
58
|
-
font-weight: 500;
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
line-height: 40px;
|
|
61
|
-
background-color: var(--sd-color-fill-1);
|
|
56
|
+
height: var(--component-transfer-transfer-height-title, var(--component-transfer-height-title, var(--size-10, 40px)));
|
|
57
|
+
color: var(--component-transfer-transfer-color-text-header, var(--component-transfer-color-text-header, var(--sd-color-text-1)));
|
|
58
|
+
font-weight: var(--component-transfer-transfer-font-weight-header, var(--component-transfer-font-weight-header, var(--font-weight-500, 500)));
|
|
59
|
+
font-size: var(--component-transfer-transfer-font-size-header, var(--component-transfer-font-size-header, var(--font-size-body-3, 14px)));
|
|
60
|
+
line-height: var(--component-transfer-transfer-height-title, var(--component-transfer-height-title, var(--size-10, 40px)));
|
|
61
|
+
background-color: var(--component-transfer-transfer-color-bg-header, var(--component-transfer-color-bg-header, var(--sd-color-fill-1)));
|
|
62
62
|
}
|
|
63
63
|
.sd-transfer-view-header-title {
|
|
64
64
|
display: flex;
|
|
@@ -84,18 +84,18 @@
|
|
|
84
84
|
text-overflow: ellipsis;
|
|
85
85
|
}
|
|
86
86
|
.sd-transfer-view-header-clear-btn {
|
|
87
|
-
color: var(--sd-color-text-2);
|
|
88
|
-
font-size: 12px;
|
|
87
|
+
color: var(--component-transfer-transfer-color-icon, var(--component-transfer-color-icon, var(--sd-color-text-2)));
|
|
88
|
+
font-size: var(--component-transfer-transfer-font-size-icon, var(--component-transfer-font-size-icon, var(--font-size-body-1, 12px)));
|
|
89
89
|
cursor: pointer;
|
|
90
90
|
}
|
|
91
91
|
.sd-transfer-view-header-clear-btn:hover::before {
|
|
92
|
-
background-color: var(--sd-color-fill-3);
|
|
92
|
+
background-color: var(--component-transfer-transfer-color-bg-icon, var(--component-transfer-color-bg-icon, var(--sd-color-fill-3)));
|
|
93
93
|
}
|
|
94
94
|
.sd-transfer-view-header-count {
|
|
95
95
|
margin-right: 2px;
|
|
96
|
-
color: var(--sd-color-text-3);
|
|
96
|
+
color: var(--component-transfer-transfer-color-text-header-unit, var(--component-transfer-color-text-header-unit, var(--sd-color-text-3)));
|
|
97
97
|
font-weight: normal;
|
|
98
|
-
font-size: 12px;
|
|
98
|
+
font-size: var(--component-transfer-transfer-font-size-header-unit, var(--component-transfer-font-size-header-unit, var(--font-size-body-1, 12px)));
|
|
99
99
|
}
|
|
100
100
|
.sd-transfer-view-body {
|
|
101
101
|
flex: 1 1 auto;
|
|
@@ -123,21 +123,21 @@
|
|
|
123
123
|
display: flex;
|
|
124
124
|
align-items: center;
|
|
125
125
|
box-sizing: border-box;
|
|
126
|
-
height: 40px;
|
|
127
|
-
padding: 0 8px;
|
|
126
|
+
height: var(--component-transfer-transfer-height-footer, var(--component-transfer-height-footer, var(--size-10, 40px)));
|
|
127
|
+
padding: 0 var(--component-transfer-transfer-padding-horizontal-footer, var(--component-transfer-padding-horizontal-footer, var(--spacing-4, 8px)));
|
|
128
128
|
}
|
|
129
129
|
.sd-transfer-view .sd-list .sd-pagination {
|
|
130
130
|
position: absolute;
|
|
131
131
|
top: 50%;
|
|
132
|
-
right: 8px;
|
|
132
|
+
right: var(--component-transfer-transfer-padding-horizontal-footer, var(--component-transfer-padding-horizontal-footer, var(--spacing-4, 8px)));
|
|
133
133
|
margin: 0;
|
|
134
134
|
transform: translateY(-50%);
|
|
135
135
|
}
|
|
136
136
|
.sd-transfer-view .sd-list .sd-pagination-jumper-input {
|
|
137
|
-
width: 24px;
|
|
137
|
+
width: var(--component-transfer-transfer-pagination-width-input, var(--component-transfer-pagination-width-input, var(--size-6, 24px)));
|
|
138
138
|
}
|
|
139
139
|
.sd-transfer-view .sd-list .sd-pagination-jumper-separator {
|
|
140
|
-
padding: 0 8px;
|
|
140
|
+
padding: 0 var(--component-transfer-transfer-pagination-gap-separator, var(--component-transfer-pagination-gap-separator, var(--spacing-4, 8px)));
|
|
141
141
|
}
|
|
142
142
|
.sd-transfer-view .sd-checkbox {
|
|
143
143
|
padding-left: 6px;
|
|
@@ -146,22 +146,22 @@
|
|
|
146
146
|
display: inline;
|
|
147
147
|
}
|
|
148
148
|
.sd-transfer-view .sd-checkbox .sd-icon-hover:hover::before {
|
|
149
|
-
background-color: var(--sd-color-fill-3);
|
|
149
|
+
background-color: var(--component-transfer-transfer-color-bg-icon, var(--component-transfer-color-bg-icon, var(--sd-color-fill-3)));
|
|
150
150
|
}
|
|
151
151
|
.sd-transfer-list-item {
|
|
152
152
|
position: relative;
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
|
-
height: 36px;
|
|
156
|
-
padding: 0 10px;
|
|
157
|
-
color: var(--sd-color-text-1);
|
|
158
|
-
line-height: 36px;
|
|
155
|
+
height: var(--component-transfer-transfer-item-height, var(--component-transfer-item-height, var(--size-9, 36px)));
|
|
156
|
+
padding: 0 var(--component-transfer-transfer-item-padding-horizontal, var(--component-transfer-item-padding-horizontal, var(--spacing-5, 10px)));
|
|
157
|
+
color: var(--component-transfer-transfer-item-color-default, var(--component-transfer-item-color-default, var(--sd-color-text-1)));
|
|
158
|
+
line-height: var(--component-transfer-transfer-item-height, var(--component-transfer-item-height, var(--size-9, 36px)));
|
|
159
159
|
list-style: none;
|
|
160
|
-
background-color: transparent;
|
|
160
|
+
background-color: var(--component-transfer-transfer-item-color-bg-default, var(--component-transfer-item-color-bg-default, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
161
161
|
cursor: default;
|
|
162
162
|
}
|
|
163
163
|
.sd-transfer-list-item-content {
|
|
164
|
-
font-size: 14px;
|
|
164
|
+
font-size: var(--component-transfer-transfer-item-font-size, var(--component-transfer-item-font-size, var(--font-size-body-3, 14px)));
|
|
165
165
|
overflow: hidden;
|
|
166
166
|
white-space: nowrap;
|
|
167
167
|
text-overflow: ellipsis;
|
|
@@ -172,13 +172,14 @@
|
|
|
172
172
|
text-overflow: ellipsis;
|
|
173
173
|
}
|
|
174
174
|
.sd-transfer-list-item-disabled {
|
|
175
|
-
color: var(--sd-color-text-4);
|
|
176
|
-
background-color: transparent;
|
|
175
|
+
color: var(--component-transfer-transfer-item-color-disabled, var(--component-transfer-item-color-disabled, var(--sd-color-text-4)));
|
|
176
|
+
background-color: var(--component-transfer-transfer-item-color-bg-disabled, var(--component-transfer-item-color-bg-disabled, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
177
177
|
cursor: not-allowed;
|
|
178
178
|
}
|
|
179
|
-
.sd-transfer-list-item:not(.sd-transfer-list-item-disabled):hover {
|
|
180
|
-
color: var(--sd-color-text-1);
|
|
181
|
-
background-color: var(--sd-color-fill-2);
|
|
179
|
+
.sd-transfer-list-item:not(.sd-transfer-list-item-disabled):hover, .sd-transfer-list-item:not(.sd-transfer-list-item-disabled):focus-visible {
|
|
180
|
+
color: var(--component-transfer-transfer-item-color-hover, var(--component-transfer-item-color-hover, var(--sd-color-text-1)));
|
|
181
|
+
background-color: var(--component-transfer-transfer-item-color-bg-hover, var(--component-transfer-item-color-bg-hover, var(--sd-color-fill-2)));
|
|
182
|
+
outline: none;
|
|
182
183
|
}
|
|
183
184
|
.sd-transfer-list-item .sd-checkbox {
|
|
184
185
|
width: 100%;
|
|
@@ -188,12 +189,12 @@
|
|
|
188
189
|
}
|
|
189
190
|
.sd-transfer-list-item-remove-btn {
|
|
190
191
|
margin-left: auto;
|
|
191
|
-
color: var(--sd-color-text-2);
|
|
192
|
-
font-size: 12px;
|
|
192
|
+
color: var(--component-transfer-transfer-color-icon, var(--component-transfer-color-icon, var(--sd-color-text-2)));
|
|
193
|
+
font-size: var(--component-transfer-transfer-font-size-icon, var(--component-transfer-font-size-icon, var(--font-size-body-1, 12px)));
|
|
193
194
|
cursor: pointer;
|
|
194
195
|
}
|
|
195
196
|
.sd-transfer-list-item-remove-btn:hover::before {
|
|
196
|
-
background-color: var(--sd-color-fill-3);
|
|
197
|
+
background-color: var(--component-transfer-transfer-color-bg-icon, var(--component-transfer-color-bg-icon, var(--sd-color-fill-3)));
|
|
197
198
|
}
|
|
198
199
|
.sd-transfer-list-item-draggable::before {
|
|
199
200
|
position: absolute;
|
|
@@ -206,28 +207,28 @@
|
|
|
206
207
|
}
|
|
207
208
|
.sd-transfer-list-item-gap-bottom::before {
|
|
208
209
|
bottom: -2px;
|
|
209
|
-
background-color: rgb(var(--sd-primary-6));
|
|
210
|
+
background-color: var(--component-transfer-transfer-item-draggable-color-bg-gap, var(--component-transfer-item-draggable-color-bg-gap, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
210
211
|
}
|
|
211
212
|
.sd-transfer-list-item-gap-top::before {
|
|
212
213
|
top: -2px;
|
|
213
|
-
background-color: rgb(var(--sd-primary-6));
|
|
214
|
+
background-color: var(--component-transfer-transfer-item-draggable-color-bg-gap, var(--component-transfer-item-draggable-color-bg-gap, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
214
215
|
}
|
|
215
216
|
.sd-transfer-list-item-dragging {
|
|
216
|
-
color: var(--sd-color-text-4) !important;
|
|
217
|
-
background-color: var(--sd-color-fill-1) !important;
|
|
217
|
+
color: var(--component-transfer-transfer-item-draggable-color-dragging, var(--component-transfer-item-draggable-color-dragging, var(--sd-color-text-4))) !important;
|
|
218
|
+
background-color: var(--component-transfer-transfer-item-draggable-color-bg-dragging, var(--component-transfer-item-draggable-color-bg-dragging, var(--sd-color-fill-1))) !important;
|
|
218
219
|
}
|
|
219
220
|
.sd-transfer-list-item-dragged {
|
|
220
221
|
animation: sd-transfer-drag-item-blink 0.4s;
|
|
221
222
|
animation-timing-function: cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
222
223
|
}
|
|
223
224
|
.sd-transfer-operations {
|
|
224
|
-
padding: 0 20px;
|
|
225
|
+
padding: 0 var(--component-transfer-transfer-operation-padding-horizontal, var(--component-transfer-operation-padding-horizontal, var(--spacing-8, 20px)));
|
|
225
226
|
}
|
|
226
227
|
.sd-transfer-operations .sd-btn {
|
|
227
228
|
display: block;
|
|
228
229
|
}
|
|
229
230
|
.sd-transfer-operations .sd-btn:last-child {
|
|
230
|
-
margin-top: 12px;
|
|
231
|
+
margin-top: var(--component-transfer-transfer-operation-gap-buttons, var(--component-transfer-operation-gap-buttons, var(--spacing-6, 12px)));
|
|
231
232
|
}
|
|
232
233
|
.sd-transfer-operations-words .sd-btn {
|
|
233
234
|
width: 100%;
|
|
@@ -244,12 +245,12 @@
|
|
|
244
245
|
border-bottom-left-radius: 0;
|
|
245
246
|
}
|
|
246
247
|
.sd-transfer-disabled .sd-transfer-view-header {
|
|
247
|
-
color: var(--sd-color-text-4);
|
|
248
|
+
color: var(--component-transfer-transfer-item-color-disabled, var(--component-transfer-item-color-disabled, var(--sd-color-text-4)));
|
|
248
249
|
}
|
|
249
250
|
|
|
250
251
|
@keyframes sd-transfer-drag-item-blink {
|
|
251
252
|
0% {
|
|
252
|
-
background-color: var(--sd-color-primary-light-1);
|
|
253
|
+
background-color: var(--component-transfer-transfer-item-draggable-color-blink, var(--component-transfer-item-draggable-color-blink, var(--sd-color-primary-light-1)));
|
|
253
254
|
}
|
|
254
255
|
100% {
|
|
255
256
|
background-color: transparent;
|
|
@@ -191,9 +191,12 @@ $transfer-prefix-cls: string.unquote('#{theme.$prefix}-transfer');
|
|
|
191
191
|
cursor: not-allowed;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
// 键盘焦点与 hover 保持同一视觉
|
|
195
|
+
&:not(#{&}-disabled):hover,
|
|
196
|
+
&:not(#{&}-disabled):focus-visible {
|
|
195
197
|
color: $transfer-item-color_hover;
|
|
196
198
|
background-color: $transfer-item-color-bg_hover;
|
|
199
|
+
outline: none;
|
|
197
200
|
}
|
|
198
201
|
|
|
199
202
|
.#{theme.$prefix}-checkbox {
|