@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
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
.sd-switch {
|
|
43
43
|
position: relative;
|
|
44
44
|
box-sizing: border-box;
|
|
45
|
-
min-width: 40px;
|
|
45
|
+
min-width: var(--component-switch-switch-circle-default-width, var(--component-switch-circle-default-width, var(--size-10, 40px)));
|
|
46
46
|
height: 24px;
|
|
47
47
|
padding: 0;
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
line-height: 24px;
|
|
50
50
|
vertical-align: middle;
|
|
51
|
-
background-color: var(--sd-color-fill-4);
|
|
51
|
+
background-color: var(--component-switch-switch-color-bg-off, var(--component-switch-color-bg-off, var(--sd-color-fill-4)));
|
|
52
52
|
border: none;
|
|
53
53
|
border-radius: 12px;
|
|
54
54
|
outline: none;
|
|
@@ -64,83 +64,83 @@
|
|
|
64
64
|
justify-content: center;
|
|
65
65
|
width: 16px;
|
|
66
66
|
height: 16px;
|
|
67
|
-
color: var(--sd-color-neutral-3);
|
|
67
|
+
color: var(--component-switch-switch-color-dot-icon-off, var(--component-switch-color-dot-icon-off, var(--sd-color-neutral-3)));
|
|
68
68
|
font-size: 12px;
|
|
69
|
-
background-color: var(--sd-color-bg-white);
|
|
69
|
+
background-color: var(--component-switch-switch-color-dot-bg, var(--component-switch-color-dot-bg, var(--sd-color-bg-white)));
|
|
70
70
|
border-radius: 50%;
|
|
71
71
|
transition: left 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
72
72
|
}
|
|
73
73
|
.sd-switch-checked {
|
|
74
|
-
background-color: rgb(var(--sd-primary-6));
|
|
74
|
+
background-color: var(--component-switch-switch-color-bg-on, var(--component-switch-color-bg-on, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
75
75
|
}
|
|
76
76
|
.sd-switch-checked .sd-switch-handle {
|
|
77
77
|
left: calc(100% - 16px - 4px);
|
|
78
|
-
color: rgb(var(--sd-primary-6));
|
|
78
|
+
color: var(--component-switch-switch-color-dot-icon-on, var(--component-switch-color-dot-icon-on, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
79
79
|
}
|
|
80
80
|
.sd-switch[disabled] .sd-switch-handle {
|
|
81
|
-
color: var(--sd-color-fill-2);
|
|
81
|
+
color: var(--component-switch-switch-color-dot-icon-off-disabled, var(--component-switch-color-dot-icon-off-disabled, var(--sd-color-fill-2)));
|
|
82
82
|
}
|
|
83
83
|
.sd-switch[disabled].sd-switch-checked .sd-switch-handle {
|
|
84
|
-
color: var(--sd-color-primary-light-3);
|
|
84
|
+
color: var(--component-switch-switch-color-dot-icon-on-disabled, var(--component-switch-color-dot-icon-on-disabled, var(--sd-color-primary-light-3)));
|
|
85
85
|
}
|
|
86
86
|
.sd-switch[disabled] .sd-switch-handle {
|
|
87
|
-
color: var(--sd-color-fill-2);
|
|
87
|
+
color: var(--component-switch-switch-color-dot-icon-off-disabled, var(--component-switch-color-dot-icon-off-disabled, var(--sd-color-fill-2)));
|
|
88
88
|
}
|
|
89
89
|
.sd-switch[disabled].sd-switch-checked .sd-switch-handle {
|
|
90
|
-
color: var(--sd-color-primary-light-3);
|
|
90
|
+
color: var(--component-switch-switch-color-dot-icon-on-disabled, var(--component-switch-color-dot-icon-on-disabled, var(--sd-color-primary-light-3)));
|
|
91
91
|
}
|
|
92
92
|
.sd-switch-text-holder {
|
|
93
93
|
margin: 0 8px 0 26px;
|
|
94
|
-
font-size: 12px;
|
|
94
|
+
font-size: var(--component-switch-switch-font-size-text, var(--component-switch-font-size-text, var(--font-size-caption, 12px)));
|
|
95
95
|
opacity: 0;
|
|
96
96
|
}
|
|
97
97
|
.sd-switch-text {
|
|
98
98
|
position: absolute;
|
|
99
99
|
top: 0;
|
|
100
100
|
left: 26px;
|
|
101
|
-
color: var(--sd-color-white);
|
|
102
|
-
font-size: 12px;
|
|
101
|
+
color: var(--component-switch-switch-color-text-off, var(--component-switch-color-text-off, var(--sd-color-white)));
|
|
102
|
+
font-size: var(--component-switch-switch-font-size-text, var(--component-switch-font-size-text, var(--font-size-caption, 12px)));
|
|
103
103
|
}
|
|
104
104
|
.sd-switch-checked .sd-switch-text-holder {
|
|
105
105
|
margin: 0 26px 0 8px;
|
|
106
106
|
}
|
|
107
107
|
.sd-switch-checked .sd-switch-text {
|
|
108
108
|
left: 8px;
|
|
109
|
-
color: var(--sd-color-white);
|
|
109
|
+
color: var(--component-switch-switch-color-text-on, var(--component-switch-color-text-on, var(--sd-color-white)));
|
|
110
110
|
}
|
|
111
111
|
.sd-switch[disabled] {
|
|
112
|
-
background-color: var(--sd-color-fill-2);
|
|
112
|
+
background-color: var(--component-switch-switch-color-bg-off-disabled, var(--component-switch-color-bg-off-disabled, var(--sd-color-fill-2)));
|
|
113
113
|
cursor: not-allowed;
|
|
114
114
|
}
|
|
115
115
|
.sd-switch[disabled] .sd-switch-text {
|
|
116
|
-
color: var(--sd-color-white);
|
|
116
|
+
color: var(--component-switch-switch-color-text-off-disabled, var(--component-switch-color-text-off-disabled, var(--sd-color-white)));
|
|
117
117
|
}
|
|
118
118
|
.sd-switch[disabled].sd-switch-checked {
|
|
119
|
-
background-color: var(--sd-color-primary-light-3);
|
|
119
|
+
background-color: var(--component-switch-switch-color-bg-on-disabled, var(--component-switch-color-bg-on-disabled, var(--sd-color-primary-light-3)));
|
|
120
120
|
}
|
|
121
121
|
.sd-switch[disabled].sd-switch-checked .sd-switch-text {
|
|
122
|
-
color: var(--sd-color-white);
|
|
122
|
+
color: var(--component-switch-switch-color-text-on-disabled, var(--component-switch-color-text-on-disabled, var(--sd-color-white)));
|
|
123
123
|
}
|
|
124
124
|
.sd-switch-loading {
|
|
125
|
-
background-color: var(--sd-color-fill-2);
|
|
125
|
+
background-color: var(--component-switch-switch-color-bg-off-loading, var(--component-switch-color-bg-off-loading, var(--sd-color-fill-2)));
|
|
126
126
|
}
|
|
127
127
|
.sd-switch-loading .sd-switch-handle {
|
|
128
|
-
color: var(--sd-color-neutral-3);
|
|
128
|
+
color: var(--component-switch-switch-color-dot-icon-off-loading, var(--component-switch-color-dot-icon-off-loading, var(--sd-color-neutral-3)));
|
|
129
129
|
}
|
|
130
130
|
.sd-switch-loading .sd-switch-text {
|
|
131
|
-
color: var(--sd-color-white);
|
|
131
|
+
color: var(--component-switch-switch-color-text-off-loading, var(--component-switch-color-text-off-loading, var(--sd-color-white)));
|
|
132
132
|
}
|
|
133
133
|
.sd-switch-loading.sd-switch-checked {
|
|
134
|
-
background-color: var(--sd-color-primary-light-3);
|
|
134
|
+
background-color: var(--component-switch-switch-color-bg-on-loading, var(--component-switch-color-bg-on-loading, var(--sd-color-primary-light-3)));
|
|
135
135
|
}
|
|
136
136
|
.sd-switch-loading.sd-switch-checked .sd-switch-handle {
|
|
137
|
-
color: var(--sd-color-primary-light-3);
|
|
137
|
+
color: var(--component-switch-switch-color-dot-icon-on-loading, var(--component-switch-color-dot-icon-on-loading, var(--sd-color-primary-light-3)));
|
|
138
138
|
}
|
|
139
139
|
.sd-switch-loading.sd-switch-checked .sd-switch-text {
|
|
140
|
-
color: var(--sd-color-primary-light-1);
|
|
140
|
+
color: var(--component-switch-switch-color-text-on-loading, var(--component-switch-color-text-on-loading, var(--sd-color-primary-light-1)));
|
|
141
141
|
}
|
|
142
142
|
.sd-switch-small {
|
|
143
|
-
min-width: 28px;
|
|
143
|
+
min-width: var(--component-switch-switch-circle-small-width, var(--component-switch-circle-small-width, var(--size-7, 28px)));
|
|
144
144
|
height: 16px;
|
|
145
145
|
line-height: 16px;
|
|
146
146
|
}
|
|
@@ -165,14 +165,14 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.sd-switch-type-round {
|
|
168
|
-
min-width: 40px;
|
|
168
|
+
min-width: var(--component-switch-switch-round-default-width, var(--component-switch-round-default-width, var(--size-10, 40px)));
|
|
169
169
|
border-radius: var(--sd-border-radius-small);
|
|
170
170
|
}
|
|
171
171
|
.sd-switch-type-round .sd-switch-handle {
|
|
172
172
|
border-radius: 2px;
|
|
173
173
|
}
|
|
174
174
|
.sd-switch-type-round.sd-switch-small {
|
|
175
|
-
min-width: 28px;
|
|
175
|
+
min-width: var(--component-switch-switch-round-small-width, var(--component-switch-round-small-width, var(--size-7, 28px)));
|
|
176
176
|
height: 16px;
|
|
177
177
|
line-height: 16px;
|
|
178
178
|
border-radius: 2px;
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
.sd-switch-type-line {
|
|
185
|
-
min-width: 36px;
|
|
185
|
+
min-width: var(--component-switch-switch-line-default-width, var(--component-switch-line-default-width, var(--size-9, 36px)));
|
|
186
186
|
overflow: unset;
|
|
187
187
|
background-color: transparent;
|
|
188
188
|
}
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
display: block;
|
|
191
191
|
width: 100%;
|
|
192
192
|
height: 6px;
|
|
193
|
-
background-color: var(--sd-color-fill-4);
|
|
193
|
+
background-color: var(--component-switch-switch-color-bg-off, var(--component-switch-color-bg-off, var(--sd-color-fill-4)));
|
|
194
194
|
border-radius: 3px;
|
|
195
195
|
transition: background-color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
196
196
|
content: "";
|
|
@@ -200,15 +200,15 @@
|
|
|
200
200
|
left: 0;
|
|
201
201
|
width: 20px;
|
|
202
202
|
height: 20px;
|
|
203
|
-
background-color: var(--sd-color-bg-white);
|
|
203
|
+
background-color: var(--component-switch-switch-color-dot-bg, var(--component-switch-color-dot-bg, var(--sd-color-bg-white)));
|
|
204
204
|
border-radius: 10px;
|
|
205
|
-
box-shadow: 0 1px 3px var(--sd-color-neutral-6);
|
|
205
|
+
box-shadow: 0 1px 3px var(--component-switch-switch-line-color-dot-shadow, var(--component-switch-line-color-dot-shadow, var(--sd-color-neutral-6)));
|
|
206
206
|
}
|
|
207
207
|
.sd-switch-type-line.sd-switch-checked {
|
|
208
208
|
background-color: transparent;
|
|
209
209
|
}
|
|
210
210
|
.sd-switch-type-line.sd-switch-checked::after {
|
|
211
|
-
background-color: rgb(var(--sd-primary-6));
|
|
211
|
+
background-color: var(--component-switch-switch-color-bg-on, var(--component-switch-color-bg-on, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
212
212
|
}
|
|
213
213
|
.sd-switch-type-line.sd-switch-custom-color {
|
|
214
214
|
--custom-color: $switch-color-bg_off;
|
|
@@ -227,28 +227,28 @@
|
|
|
227
227
|
cursor: not-allowed;
|
|
228
228
|
}
|
|
229
229
|
.sd-switch-type-line[disabled]::after {
|
|
230
|
-
background-color: var(--sd-color-fill-2);
|
|
230
|
+
background-color: var(--component-switch-switch-color-bg-off-disabled, var(--component-switch-color-bg-off-disabled, var(--sd-color-fill-2)));
|
|
231
231
|
}
|
|
232
232
|
.sd-switch-type-line[disabled].sd-switch-checked {
|
|
233
233
|
background-color: transparent;
|
|
234
234
|
}
|
|
235
235
|
.sd-switch-type-line[disabled].sd-switch-checked::after {
|
|
236
|
-
background-color: var(--sd-color-primary-light-3);
|
|
236
|
+
background-color: var(--component-switch-switch-color-bg-on-disabled, var(--component-switch-color-bg-on-disabled, var(--sd-color-primary-light-3)));
|
|
237
237
|
}
|
|
238
238
|
.sd-switch-type-line.sd-switch-loading {
|
|
239
239
|
background-color: transparent;
|
|
240
240
|
}
|
|
241
241
|
.sd-switch-type-line.sd-switch-loading::after {
|
|
242
|
-
background-color: var(--sd-color-fill-2);
|
|
242
|
+
background-color: var(--component-switch-switch-color-bg-off-loading, var(--component-switch-color-bg-off-loading, var(--sd-color-fill-2)));
|
|
243
243
|
}
|
|
244
244
|
.sd-switch-type-line.sd-switch-loading.sd-switch-checked {
|
|
245
245
|
background-color: transparent;
|
|
246
246
|
}
|
|
247
247
|
.sd-switch-type-line.sd-switch-loading.sd-switch-checked::after {
|
|
248
|
-
background-color: var(--sd-color-primary-light-3);
|
|
248
|
+
background-color: var(--component-switch-switch-color-bg-on-loading, var(--component-switch-color-bg-on-loading, var(--sd-color-primary-light-3)));
|
|
249
249
|
}
|
|
250
250
|
.sd-switch-type-line.sd-switch-small {
|
|
251
|
-
min-width: 28px;
|
|
251
|
+
min-width: var(--component-switch-switch-line-small-width, var(--component-switch-line-small-width, var(--size-7, 28px)));
|
|
252
252
|
height: 16px;
|
|
253
253
|
line-height: 16px;
|
|
254
254
|
}
|
|
@@ -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';
|
|
@@ -66,3 +67,137 @@ $switch-color-dot-icon_on_loading: var(
|
|
|
66
67
|
$switch-color-dot-icon_off_loading: var(
|
|
67
68
|
string.unquote('#{global.$sd-cssvars-prefix}-color-neutral-3')
|
|
68
69
|
);
|
|
70
|
+
|
|
71
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
72
|
+
$switch-font-size-text: theme-runtime.token(
|
|
73
|
+
'switch',
|
|
74
|
+
'switch-font-size-text',
|
|
75
|
+
$switch-font-size-text,
|
|
76
|
+
'font-size-caption'
|
|
77
|
+
);
|
|
78
|
+
$switch-circle-default-width: theme-runtime.token(
|
|
79
|
+
'switch',
|
|
80
|
+
'switch-circle-default-width',
|
|
81
|
+
$switch-circle-default-width,
|
|
82
|
+
'size-10'
|
|
83
|
+
);
|
|
84
|
+
$switch-circle-small-width: theme-runtime.token(
|
|
85
|
+
'switch',
|
|
86
|
+
'switch-circle-small-width',
|
|
87
|
+
$switch-circle-small-width,
|
|
88
|
+
'size-7'
|
|
89
|
+
);
|
|
90
|
+
$switch-round-default-width: theme-runtime.token(
|
|
91
|
+
'switch',
|
|
92
|
+
'switch-round-default-width',
|
|
93
|
+
$switch-round-default-width,
|
|
94
|
+
'size-10'
|
|
95
|
+
);
|
|
96
|
+
$switch-round-small-width: theme-runtime.token(
|
|
97
|
+
'switch',
|
|
98
|
+
'switch-round-small-width',
|
|
99
|
+
$switch-round-small-width,
|
|
100
|
+
'size-7'
|
|
101
|
+
);
|
|
102
|
+
$switch-line-default-width: theme-runtime.token(
|
|
103
|
+
'switch',
|
|
104
|
+
'switch-line-default-width',
|
|
105
|
+
$switch-line-default-width,
|
|
106
|
+
'size-9'
|
|
107
|
+
);
|
|
108
|
+
$switch-line-small-width: theme-runtime.token(
|
|
109
|
+
'switch',
|
|
110
|
+
'switch-line-small-width',
|
|
111
|
+
$switch-line-small-width,
|
|
112
|
+
'size-7'
|
|
113
|
+
);
|
|
114
|
+
$switch-line-color-dot-shadow: theme-runtime.token(
|
|
115
|
+
'switch',
|
|
116
|
+
'switch-line-color-dot-shadow',
|
|
117
|
+
$switch-line-color-dot-shadow
|
|
118
|
+
);
|
|
119
|
+
$switch-color-bg_on: theme-runtime.token(
|
|
120
|
+
'switch',
|
|
121
|
+
'switch-color-bg-on',
|
|
122
|
+
$switch-color-bg_on,
|
|
123
|
+
'color-primary-6'
|
|
124
|
+
);
|
|
125
|
+
$switch-color-bg_off: theme-runtime.token('switch', 'switch-color-bg-off', $switch-color-bg_off);
|
|
126
|
+
$switch-color-bg_on_disabled: theme-runtime.token(
|
|
127
|
+
'switch',
|
|
128
|
+
'switch-color-bg-on-disabled',
|
|
129
|
+
$switch-color-bg_on_disabled
|
|
130
|
+
);
|
|
131
|
+
$switch-color-bg_off_disabled: theme-runtime.token(
|
|
132
|
+
'switch',
|
|
133
|
+
'switch-color-bg-off-disabled',
|
|
134
|
+
$switch-color-bg_off_disabled
|
|
135
|
+
);
|
|
136
|
+
$switch-color-bg_on_loading: theme-runtime.token(
|
|
137
|
+
'switch',
|
|
138
|
+
'switch-color-bg-on-loading',
|
|
139
|
+
$switch-color-bg_on_loading
|
|
140
|
+
);
|
|
141
|
+
$switch-color-bg_off_loading: theme-runtime.token(
|
|
142
|
+
'switch',
|
|
143
|
+
'switch-color-bg-off-loading',
|
|
144
|
+
$switch-color-bg_off_loading
|
|
145
|
+
);
|
|
146
|
+
$switch-color-dot-bg: theme-runtime.token('switch', 'switch-color-dot-bg', $switch-color-dot-bg);
|
|
147
|
+
$switch-color-text_on: theme-runtime.token('switch', 'switch-color-text-on', $switch-color-text_on);
|
|
148
|
+
$switch-color-text_off: theme-runtime.token(
|
|
149
|
+
'switch',
|
|
150
|
+
'switch-color-text-off',
|
|
151
|
+
$switch-color-text_off
|
|
152
|
+
);
|
|
153
|
+
$switch-color-text_on_disabled: theme-runtime.token(
|
|
154
|
+
'switch',
|
|
155
|
+
'switch-color-text-on-disabled',
|
|
156
|
+
$switch-color-text_on_disabled
|
|
157
|
+
);
|
|
158
|
+
$switch-color-text_off_disabled: theme-runtime.token(
|
|
159
|
+
'switch',
|
|
160
|
+
'switch-color-text-off-disabled',
|
|
161
|
+
$switch-color-text_off_disabled
|
|
162
|
+
);
|
|
163
|
+
$switch-color-text_on_loading: theme-runtime.token(
|
|
164
|
+
'switch',
|
|
165
|
+
'switch-color-text-on-loading',
|
|
166
|
+
$switch-color-text_on_loading
|
|
167
|
+
);
|
|
168
|
+
$switch-color-text_off_loading: theme-runtime.token(
|
|
169
|
+
'switch',
|
|
170
|
+
'switch-color-text-off-loading',
|
|
171
|
+
$switch-color-text_off_loading
|
|
172
|
+
);
|
|
173
|
+
$switch-color-dot-icon_on: theme-runtime.token(
|
|
174
|
+
'switch',
|
|
175
|
+
'switch-color-dot-icon-on',
|
|
176
|
+
$switch-color-dot-icon_on,
|
|
177
|
+
'color-primary-6'
|
|
178
|
+
);
|
|
179
|
+
$switch-color-dot-icon_off: theme-runtime.token(
|
|
180
|
+
'switch',
|
|
181
|
+
'switch-color-dot-icon-off',
|
|
182
|
+
$switch-color-dot-icon_off
|
|
183
|
+
);
|
|
184
|
+
$switch-color-dot-icon_on_disabled: theme-runtime.token(
|
|
185
|
+
'switch',
|
|
186
|
+
'switch-color-dot-icon-on-disabled',
|
|
187
|
+
$switch-color-dot-icon_on_disabled
|
|
188
|
+
);
|
|
189
|
+
$switch-color-dot-icon_off_disabled: theme-runtime.token(
|
|
190
|
+
'switch',
|
|
191
|
+
'switch-color-dot-icon-off-disabled',
|
|
192
|
+
$switch-color-dot-icon_off_disabled
|
|
193
|
+
);
|
|
194
|
+
$switch-color-dot-icon_on_loading: theme-runtime.token(
|
|
195
|
+
'switch',
|
|
196
|
+
'switch-color-dot-icon-on-loading',
|
|
197
|
+
$switch-color-dot-icon_on_loading
|
|
198
|
+
);
|
|
199
|
+
$switch-color-dot-icon_off_loading: theme-runtime.token(
|
|
200
|
+
'switch',
|
|
201
|
+
'switch-color-dot-icon-off-loading',
|
|
202
|
+
$switch-color-dot-icon_off_loading
|
|
203
|
+
);
|