@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
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
**********************************************/
|
|
25
25
|
.sd-select-dropdown {
|
|
26
26
|
box-sizing: border-box;
|
|
27
|
-
padding: 4px 0;
|
|
28
|
-
background-color: var(--sd-color-bg-popup);
|
|
29
|
-
border: 1px solid var(--sd-color-fill-3);
|
|
30
|
-
border-radius: var(--sd-border-radius-medium);
|
|
31
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
27
|
+
padding: var(--component-select-select-popup-padding-vertical, var(--component-select-popup-padding-vertical, var(--spacing-2, 4px))) 0;
|
|
28
|
+
background-color: var(--component-select-select-popup-color-bg, var(--component-select-popup-color-bg, var(--sd-color-bg-popup)));
|
|
29
|
+
border: 1px solid var(--component-select-select-popup-color-border, var(--component-select-popup-color-border, var(--sd-color-fill-3)));
|
|
30
|
+
border-radius: var(--component-select-select-popup-border-radius, var(--component-select-popup-border-radius, var(--sd-border-radius-medium)));
|
|
31
|
+
box-shadow: var(--component-select-select-popup-box-shadow, var(--component-select-popup-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
32
32
|
}
|
|
33
33
|
.sd-select-dropdown .sd-select-dropdown-loading {
|
|
34
34
|
display: flex;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
list-style: none;
|
|
44
44
|
}
|
|
45
45
|
.sd-select-dropdown-list-wrapper {
|
|
46
|
-
max-height: 200px;
|
|
46
|
+
max-height: var(--component-select-select-popup-max-height, var(--component-select-popup-max-height, var(--size-50, 200px)));
|
|
47
47
|
overflow-y: auto;
|
|
48
48
|
}
|
|
49
49
|
.sd-select-dropdown .sd-select-option {
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
width: 100%;
|
|
56
|
-
padding: 0 12px;
|
|
57
|
-
color: var(--sd-color-text-1);
|
|
58
|
-
font-size: 14px;
|
|
59
|
-
line-height: 36px;
|
|
56
|
+
padding: 0 var(--component-select-select-signal-popup-option-padding-horizontal, var(--component-select-signal-popup-option-padding-horizontal, var(--spacing-6, 12px)));
|
|
57
|
+
color: var(--component-select-select-popup-option-color-text-default, var(--component-select-popup-option-color-text-default, var(--sd-color-text-1)));
|
|
58
|
+
font-size: var(--component-select-select-popup-font-size, var(--component-select-popup-font-size, var(--font-size-body-3, 14px)));
|
|
59
|
+
line-height: var(--component-select-select-popup-option-height, var(--component-select-popup-option-height, var(--size-9, 36px)));
|
|
60
60
|
text-align: left;
|
|
61
|
-
background-color: var(--sd-color-bg-popup);
|
|
61
|
+
background-color: var(--component-select-select-popup-option-color-bg-default, var(--component-select-popup-option-color-bg-default, var(--sd-color-bg-popup)));
|
|
62
62
|
cursor: pointer;
|
|
63
63
|
}
|
|
64
64
|
.sd-select-dropdown .sd-select-option-content {
|
|
@@ -78,18 +78,18 @@
|
|
|
78
78
|
justify-content: space-between;
|
|
79
79
|
}
|
|
80
80
|
.sd-select-dropdown .sd-select-option-selected {
|
|
81
|
-
color: var(--sd-color-text-1);
|
|
82
|
-
font-weight: 500;
|
|
83
|
-
background-color: var(--sd-color-bg-popup);
|
|
81
|
+
color: var(--component-select-select-popup-option-color-text-selected, var(--component-select-popup-option-color-text-selected, var(--sd-color-text-1)));
|
|
82
|
+
font-weight: var(--component-select-select-popup-option-font-weight-selected, var(--component-select-popup-option-font-weight-selected, var(--font-weight-500, 500)));
|
|
83
|
+
background-color: var(--component-select-select-popup-option-color-bg-selected, var(--component-select-popup-option-color-bg-selected, var(--sd-color-bg-popup)));
|
|
84
84
|
}
|
|
85
85
|
.sd-select-dropdown .sd-select-option-active, .sd-select-dropdown .sd-select-option:not(.sd-select-dropdown .sd-select-option-disabled):hover {
|
|
86
|
-
color: var(--sd-color-text-1);
|
|
87
|
-
background-color: var(--sd-color-fill-2);
|
|
86
|
+
color: var(--component-select-select-popup-option-color-text-hover, var(--component-select-popup-option-color-text-hover, var(--sd-color-text-1)));
|
|
87
|
+
background-color: var(--component-select-select-popup-option-color-bg-hover, var(--component-select-popup-option-color-bg-hover, var(--sd-color-fill-2)));
|
|
88
88
|
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
89
89
|
}
|
|
90
90
|
.sd-select-dropdown .sd-select-option-disabled {
|
|
91
|
-
color: var(--sd-color-text-4);
|
|
92
|
-
background-color: var(--sd-color-bg-popup);
|
|
91
|
+
color: var(--component-select-select-popup-option-color-text-disabled, var(--component-select-popup-option-color-text-disabled, var(--sd-color-text-4)));
|
|
92
|
+
background-color: var(--component-select-select-popup-option-color-bg-disabled, var(--component-select-popup-option-color-bg-disabled, var(--sd-color-bg-popup)));
|
|
93
93
|
cursor: not-allowed;
|
|
94
94
|
}
|
|
95
95
|
.sd-select-dropdown .sd-select-option-icon {
|
|
@@ -97,19 +97,19 @@
|
|
|
97
97
|
margin-right: 8px;
|
|
98
98
|
}
|
|
99
99
|
.sd-select-dropdown .sd-select-option-suffix {
|
|
100
|
-
margin-left: 12px;
|
|
100
|
+
margin-left: var(--component-select-dropdown-margin-left-suffix-icon, var(--component-select-margin-left-suffix-icon, var(--spacing-6, 12px)));
|
|
101
101
|
}
|
|
102
102
|
.sd-select-dropdown .sd-select-group:first-child .sd-select-dropdown .sd-select-group-title {
|
|
103
|
-
margin-top: 8px;
|
|
103
|
+
margin-top: var(--component-select-select-popup-group-title-padding-top, var(--component-select-popup-group-title-padding-top, var(--spacing-4, 8px)));
|
|
104
104
|
}
|
|
105
105
|
.sd-select-dropdown .sd-select-group-title {
|
|
106
106
|
box-sizing: border-box;
|
|
107
107
|
width: 100%;
|
|
108
|
-
margin-top: 8px;
|
|
109
|
-
padding: 0 12px;
|
|
110
|
-
color: var(--sd-color-text-3);
|
|
111
|
-
font-size: 12px;
|
|
112
|
-
line-height: 20px;
|
|
108
|
+
margin-top: var(--component-select-select-popup-group-title-padding-top, var(--component-select-popup-group-title-padding-top, var(--spacing-4, 8px)));
|
|
109
|
+
padding: 0 var(--component-select-select-popup-group-title-padding-horizontal, var(--component-select-popup-group-title-padding-horizontal, var(--spacing-6, 12px)));
|
|
110
|
+
color: var(--component-select-select-popup-group-title-color-text, var(--component-select-popup-group-title-color-text, var(--sd-color-text-3)));
|
|
111
|
+
font-size: var(--component-select-select-popup-group-title-font-size, var(--component-select-popup-group-title-font-size, var(--font-size-body-1, 12px)));
|
|
112
|
+
line-height: var(--component-select-select-popup-group-title-height, var(--component-select-popup-group-title-height, var(--size-5, 20px)));
|
|
113
113
|
cursor: default;
|
|
114
114
|
overflow: hidden;
|
|
115
115
|
white-space: nowrap;
|
|
@@ -119,26 +119,26 @@
|
|
|
119
119
|
padding-top: 0;
|
|
120
120
|
}
|
|
121
121
|
.sd-select-dropdown-header {
|
|
122
|
-
border-bottom: 1px solid var(--sd-color-fill-3);
|
|
122
|
+
border-bottom: 1px solid var(--component-select-select-popup-color-border, var(--component-select-popup-color-border, var(--sd-color-fill-3)));
|
|
123
123
|
}
|
|
124
124
|
.sd-select-dropdown.sd-select-dropdown-has-footer {
|
|
125
125
|
padding-bottom: 0;
|
|
126
126
|
}
|
|
127
127
|
.sd-select-dropdown-footer {
|
|
128
|
-
border-top: 1px solid var(--sd-color-fill-3);
|
|
128
|
+
border-top: 1px solid var(--component-select-select-popup-color-border, var(--component-select-popup-color-border, var(--sd-color-fill-3)));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.sd-cascader-panel {
|
|
132
132
|
display: inline-flex;
|
|
133
133
|
box-sizing: border-box;
|
|
134
|
-
height: 200px;
|
|
134
|
+
height: var(--component-select-select-popup-max-height, var(--component-select-popup-max-height, var(--size-50, 200px)));
|
|
135
135
|
overflow: hidden;
|
|
136
136
|
white-space: nowrap;
|
|
137
137
|
list-style: none;
|
|
138
138
|
background-color: var(--sd-color-bg-popup);
|
|
139
|
-
border: 1px solid var(--sd-color-fill-3);
|
|
140
|
-
border-radius: var(--sd-border-radius-medium);
|
|
141
|
-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
139
|
+
border: 1px solid var(--component-select-select-popup-color-border, var(--component-select-popup-color-border, var(--sd-color-fill-3)));
|
|
140
|
+
border-radius: var(--component-select-select-popup-border-radius, var(--component-select-popup-border-radius, var(--sd-border-radius-medium)));
|
|
141
|
+
box-shadow: var(--component-select-select-popup-box-shadow, var(--component-select-popup-box-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
|
|
142
142
|
}
|
|
143
143
|
.sd-cascader-search-panel {
|
|
144
144
|
justify-content: flex-start;
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
justify-content: center;
|
|
167
167
|
}
|
|
168
168
|
.sd-cascader-panel-column:not(:last-of-type) {
|
|
169
|
-
border-right: 1px solid var(--sd-color-fill-3);
|
|
169
|
+
border-right: 1px solid var(--component-select-select-popup-color-border, var(--component-select-popup-color-border, var(--sd-color-fill-3)));
|
|
170
170
|
}
|
|
171
171
|
.sd-cascader-column-content {
|
|
172
172
|
flex: 1;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
flex-direction: column;
|
|
180
180
|
box-sizing: border-box;
|
|
181
181
|
height: 100%;
|
|
182
|
-
padding: 4px 0;
|
|
182
|
+
padding: var(--component-select-select-popup-padding-vertical, var(--component-select-popup-padding-vertical, var(--spacing-2, 4px))) 0;
|
|
183
183
|
}
|
|
184
184
|
.sd-cascader-list-wrapper-with-footer {
|
|
185
185
|
padding-bottom: 0;
|
|
@@ -203,33 +203,33 @@
|
|
|
203
203
|
}
|
|
204
204
|
.sd-cascader-list-multiple .sd-cascader-option, .sd-cascader-list-strictly .sd-cascader-option {
|
|
205
205
|
width: 100%;
|
|
206
|
-
padding-left: 12px;
|
|
206
|
+
padding-left: var(--component-cascader-cascader-padding-item-left, var(--component-cascader-padding-item-left, var(--spacing-6, 12px)));
|
|
207
207
|
}
|
|
208
208
|
.sd-cascader-list-multiple .sd-cascader-option .sd-checkbox,
|
|
209
209
|
.sd-cascader-list-multiple .sd-cascader-option .sd-radio, .sd-cascader-list-strictly .sd-cascader-option .sd-checkbox,
|
|
210
210
|
.sd-cascader-list-strictly .sd-cascader-option .sd-radio {
|
|
211
|
-
margin-right: 8px;
|
|
211
|
+
margin-right: var(--component-cascader-cascader-margin-checkbox-right, var(--component-cascader-margin-checkbox-right, var(--spacing-4, 8px)));
|
|
212
212
|
padding-left: 0;
|
|
213
213
|
}
|
|
214
214
|
.sd-cascader-search-list.sd-cascader-list-multiple .sd-cascader-option-label {
|
|
215
|
-
padding-right: 12px;
|
|
215
|
+
padding-right: var(--component-cascader-cascader-padding-item-left, var(--component-cascader-padding-item-left, var(--spacing-6, 12px)));
|
|
216
216
|
}
|
|
217
217
|
.sd-cascader-list-footer {
|
|
218
218
|
box-sizing: border-box;
|
|
219
|
-
height: 36px;
|
|
220
|
-
padding-left: 12px;
|
|
221
|
-
line-height: 36px;
|
|
222
|
-
border-top: 1px solid var(--sd-color-fill-3);
|
|
219
|
+
height: var(--component-cascader-cascader-size-item-height, var(--component-cascader-size-item-height, var(--size-9, 36px)));
|
|
220
|
+
padding-left: var(--component-cascader-cascader-padding-item-left, var(--component-cascader-padding-item-left, var(--spacing-6, 12px)));
|
|
221
|
+
line-height: var(--component-cascader-cascader-size-item-height, var(--component-cascader-size-item-height, var(--size-9, 36px)));
|
|
222
|
+
border-top: 1px solid var(--component-select-select-popup-color-border, var(--component-select-popup-color-border, var(--sd-color-fill-3)));
|
|
223
223
|
}
|
|
224
224
|
.sd-cascader-option, .sd-cascader-search-option {
|
|
225
225
|
position: relative;
|
|
226
226
|
display: flex;
|
|
227
227
|
box-sizing: border-box;
|
|
228
228
|
min-width: 100px;
|
|
229
|
-
height: 36px;
|
|
230
|
-
color: var(--sd-color-text-1);
|
|
231
|
-
font-size: 14px;
|
|
232
|
-
line-height: 36px;
|
|
229
|
+
height: var(--component-cascader-cascader-size-item-height, var(--component-cascader-size-item-height, var(--size-9, 36px)));
|
|
230
|
+
color: var(--component-cascader-cascader-color-item-text, var(--component-cascader-color-item-text, var(--sd-color-text-1)));
|
|
231
|
+
font-size: var(--component-cascader-cascader-font-item-size, var(--component-cascader-font-item-size, var(--font-size-body-3, 14px)));
|
|
232
|
+
line-height: var(--component-cascader-cascader-size-item-height, var(--component-cascader-size-item-height, var(--size-9, 36px)));
|
|
233
233
|
text-align: left;
|
|
234
234
|
background-color: transparent;
|
|
235
235
|
cursor: pointer;
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
box-sizing: border-box;
|
|
240
240
|
min-width: 0;
|
|
241
241
|
padding-right: 34px;
|
|
242
|
-
padding-left: 12px;
|
|
242
|
+
padding-left: var(--component-cascader-cascader-padding-item-left, var(--component-cascader-padding-item-left, var(--spacing-6, 12px)));
|
|
243
243
|
overflow: hidden;
|
|
244
244
|
}
|
|
245
245
|
.sd-cascader-option .sd-icon-right,
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
position: absolute;
|
|
249
249
|
top: 50%;
|
|
250
250
|
right: 10px;
|
|
251
|
-
color: var(--sd-color-text-2);
|
|
251
|
+
color: var(--component-cascader-cascader-color-item-icon, var(--component-cascader-color-item-icon, var(--sd-color-text-2)));
|
|
252
252
|
font-size: 12px;
|
|
253
253
|
transform: translateY(-50%);
|
|
254
254
|
}
|
|
@@ -264,18 +264,18 @@
|
|
|
264
264
|
font-size: 12px;
|
|
265
265
|
}
|
|
266
266
|
.sd-cascader-option:hover, .sd-cascader-search-option-hover {
|
|
267
|
-
color: var(--sd-color-text-1);
|
|
268
|
-
background-color: var(--sd-color-fill-2);
|
|
267
|
+
color: var(--component-cascader-cascader-color-item-text-hover, var(--component-cascader-color-item-text-hover, var(--component-cascader-cascader-color-item-text, var(--component-cascader-color-item-text, var(--sd-color-text-1)))));
|
|
268
|
+
background-color: var(--component-cascader-cascader-color-item-bg-hover, var(--component-cascader-color-item-bg-hover, var(--component-cascader-cascader-color-item-bg-active, var(--component-cascader-color-item-bg-active, var(--sd-color-fill-2)))));
|
|
269
269
|
}
|
|
270
270
|
.sd-cascader-option:hover .sd-checkbox:not(.sd-checkbox-disabled):not(.sd-checkbox-checked):hover .sd-checkbox-icon-hover::before, .sd-cascader-search-option-hover .sd-checkbox:not(.sd-checkbox-disabled):not(.sd-checkbox-checked):hover .sd-checkbox-icon-hover::before {
|
|
271
|
-
background-color: var(--sd-color-fill-3);
|
|
271
|
+
background-color: var(--component-cascader-cascader-color-checkbox-bg-hover, var(--component-cascader-color-checkbox-bg-hover, var(--sd-color-fill-3)));
|
|
272
272
|
}
|
|
273
273
|
.sd-cascader-option:hover .sd-radio:not(.sd-radio-disabled):not(.sd-radio-checked):hover .sd-radio-icon-hover::before, .sd-cascader-search-option-hover .sd-radio:not(.sd-radio-disabled):not(.sd-radio-checked):hover .sd-radio-icon-hover::before {
|
|
274
|
-
background-color: var(--sd-color-fill-3);
|
|
274
|
+
background-color: var(--component-cascader-cascader-color-checkbox-bg-hover, var(--component-cascader-color-checkbox-bg-hover, var(--sd-color-fill-3)));
|
|
275
275
|
}
|
|
276
276
|
.sd-cascader-option-disabled, .sd-cascader-option-disabled:hover, .sd-cascader-search-option-disabled, .sd-cascader-search-option-disabled:hover {
|
|
277
|
-
color: var(--sd-color-text-4);
|
|
278
|
-
background-color: transparent;
|
|
277
|
+
color: var(--component-cascader-cascader-color-item-text-disabled, var(--component-cascader-color-item-text-disabled, var(--sd-color-text-4)));
|
|
278
|
+
background-color: var(--component-cascader-cascader-color-item-bg-disabled, var(--component-cascader-color-item-bg-disabled, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
279
279
|
cursor: not-allowed;
|
|
280
280
|
}
|
|
281
281
|
.sd-cascader-option-disabled .sd-icon-right, .sd-cascader-option-disabled:hover .sd-icon-right, .sd-cascader-search-option-disabled .sd-icon-right, .sd-cascader-search-option-disabled:hover .sd-icon-right {
|
|
@@ -288,17 +288,17 @@
|
|
|
288
288
|
width: 100%;
|
|
289
289
|
}
|
|
290
290
|
.sd-cascader-option-active {
|
|
291
|
-
color: var(--sd-color-text-1);
|
|
292
|
-
background-color: var(--sd-color-fill-2);
|
|
291
|
+
color: var(--component-cascader-cascader-color-item-text-active, var(--component-cascader-color-item-text-active, var(--component-cascader-cascader-color-item-text, var(--component-cascader-color-item-text, var(--sd-color-text-1)))));
|
|
292
|
+
background-color: var(--component-cascader-cascader-color-item-bg-active, var(--component-cascader-color-item-bg-active, var(--sd-color-fill-2)));
|
|
293
293
|
transition: color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
294
294
|
}
|
|
295
295
|
.sd-cascader-option-active:hover {
|
|
296
|
-
color: var(--sd-color-text-1);
|
|
297
|
-
background-color: var(--sd-color-fill-2);
|
|
296
|
+
color: var(--component-cascader-cascader-color-item-text-active, var(--component-cascader-color-item-text-active, var(--component-cascader-cascader-color-item-text, var(--component-cascader-color-item-text, var(--sd-color-text-1)))));
|
|
297
|
+
background-color: var(--component-cascader-cascader-color-item-bg-active, var(--component-cascader-color-item-bg-active, var(--sd-color-fill-2)));
|
|
298
298
|
}
|
|
299
299
|
.sd-cascader-option-active.sd-cascader-option-disabled, .sd-cascader-option-active.sd-cascader-option-disabled:hover {
|
|
300
|
-
color: var(--sd-color-text-4);
|
|
301
|
-
background-color: var(--sd-color-fill-2);
|
|
300
|
+
color: var(--component-cascader-cascader-color-item-text-disabled-active, var(--component-cascader-color-item-text-disabled-active, var(--sd-color-text-4)));
|
|
301
|
+
background-color: var(--component-cascader-cascader-color-item-bg-disabled-active, var(--component-cascader-color-item-bg-disabled-active, var(--sd-color-fill-2)));
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
.cascader-slide-enter-active,
|
|
@@ -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';
|
|
@@ -49,3 +50,91 @@ $cascader-color-item-bg_disabled_active: var(
|
|
|
49
50
|
$cascader-color-checkbox-bg_hover: var(string.unquote('#{global.$sd-cssvars-prefix}-color-fill-3'));
|
|
50
51
|
|
|
51
52
|
$cascader-margin-checkbox-right: global.$spacing-4;
|
|
53
|
+
|
|
54
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
55
|
+
$cascader-size-item-height: theme-runtime.token(
|
|
56
|
+
'cascader',
|
|
57
|
+
'cascader-size-item-height',
|
|
58
|
+
$cascader-size-item-height,
|
|
59
|
+
'size-9'
|
|
60
|
+
);
|
|
61
|
+
$cascader-font-item-size: theme-runtime.token(
|
|
62
|
+
'cascader',
|
|
63
|
+
'cascader-font-item-size',
|
|
64
|
+
$cascader-font-item-size,
|
|
65
|
+
'font-size-body-3'
|
|
66
|
+
);
|
|
67
|
+
$cascader-color-item-text: theme-runtime.token(
|
|
68
|
+
'cascader',
|
|
69
|
+
'cascader-color-item-text',
|
|
70
|
+
$cascader-color-item-text
|
|
71
|
+
);
|
|
72
|
+
$cascader-color-item-icon: theme-runtime.token(
|
|
73
|
+
'cascader',
|
|
74
|
+
'cascader-color-item-icon',
|
|
75
|
+
$cascader-color-item-icon
|
|
76
|
+
);
|
|
77
|
+
$cascader-padding-item-left: theme-runtime.token(
|
|
78
|
+
'cascader',
|
|
79
|
+
'cascader-padding-item-left',
|
|
80
|
+
$cascader-padding-item-left,
|
|
81
|
+
'spacing-6'
|
|
82
|
+
);
|
|
83
|
+
$cascader-color-item-text_hover: theme-runtime.token(
|
|
84
|
+
'cascader',
|
|
85
|
+
'cascader-color-item-text-hover',
|
|
86
|
+
$cascader-color-item-text
|
|
87
|
+
);
|
|
88
|
+
$cascader-color-item-text_active: theme-runtime.token(
|
|
89
|
+
'cascader',
|
|
90
|
+
'cascader-color-item-text-active',
|
|
91
|
+
$cascader-color-item-text
|
|
92
|
+
);
|
|
93
|
+
$cascader-color-item-text_disabled: theme-runtime.token(
|
|
94
|
+
'cascader',
|
|
95
|
+
'cascader-color-item-text-disabled',
|
|
96
|
+
$cascader-color-item-text_disabled
|
|
97
|
+
);
|
|
98
|
+
$cascader-color-item-text_disabled_active: theme-runtime.token(
|
|
99
|
+
'cascader',
|
|
100
|
+
'cascader-color-item-text-disabled-active',
|
|
101
|
+
$cascader-color-item-text_disabled_active
|
|
102
|
+
);
|
|
103
|
+
$cascader-font-item-weight_active: theme-runtime.token(
|
|
104
|
+
'cascader',
|
|
105
|
+
'cascader-font-item-weight-active',
|
|
106
|
+
$cascader-font-item-weight_active,
|
|
107
|
+
'font-weight-500'
|
|
108
|
+
);
|
|
109
|
+
$cascader-color-item-bg_active: theme-runtime.token(
|
|
110
|
+
'cascader',
|
|
111
|
+
'cascader-color-item-bg-active',
|
|
112
|
+
$cascader-color-item-bg_active
|
|
113
|
+
);
|
|
114
|
+
$cascader-color-item-bg_hover: theme-runtime.token(
|
|
115
|
+
'cascader',
|
|
116
|
+
'cascader-color-item-bg-hover',
|
|
117
|
+
$cascader-color-item-bg_active
|
|
118
|
+
);
|
|
119
|
+
$cascader-color-item-bg_disabled: theme-runtime.token(
|
|
120
|
+
'cascader',
|
|
121
|
+
'cascader-color-item-bg-disabled',
|
|
122
|
+
$cascader-color-item-bg_disabled,
|
|
123
|
+
'color-transparent'
|
|
124
|
+
);
|
|
125
|
+
$cascader-color-item-bg_disabled_active: theme-runtime.token(
|
|
126
|
+
'cascader',
|
|
127
|
+
'cascader-color-item-bg-disabled-active',
|
|
128
|
+
$cascader-color-item-bg_disabled_active
|
|
129
|
+
);
|
|
130
|
+
$cascader-color-checkbox-bg_hover: theme-runtime.token(
|
|
131
|
+
'cascader',
|
|
132
|
+
'cascader-color-checkbox-bg-hover',
|
|
133
|
+
$cascader-color-checkbox-bg_hover
|
|
134
|
+
);
|
|
135
|
+
$cascader-margin-checkbox-right: theme-runtime.token(
|
|
136
|
+
'cascader',
|
|
137
|
+
'cascader-margin-checkbox-right',
|
|
138
|
+
$cascader-margin-checkbox-right,
|
|
139
|
+
'spacing-4'
|
|
140
|
+
);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
align-items: center;
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
padding-left: 5px;
|
|
29
|
-
font-size: 14px;
|
|
29
|
+
font-size: var(--component-checkbox-checkbox-text-font-size, var(--component-checkbox-text-font-size, var(--font-size-body-3, 14px)));
|
|
30
30
|
line-height: unset;
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
}
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
background-color: var(--sd-color-neutral-2);
|
|
43
43
|
}
|
|
44
44
|
.sd-checkbox:hover .sd-checkbox-icon-hover::before {
|
|
45
|
-
background-color: var(--sd-color-neutral-2);
|
|
45
|
+
background-color: var(--component-checkbox-checkbox-mask-bg-color-bg, var(--component-checkbox-mask-bg-color-bg, var(--sd-color-neutral-2)));
|
|
46
46
|
}
|
|
47
47
|
.sd-checkbox-label {
|
|
48
|
-
margin-left: 8px;
|
|
49
|
-
color: var(--sd-color-text-1);
|
|
48
|
+
margin-left: var(--component-checkbox-checkbox-text-mask-spacing, var(--component-checkbox-text-mask-spacing, var(--spacing-4, 8px)));
|
|
49
|
+
color: var(--component-checkbox-checkbox-color-text, var(--component-checkbox-color-text, var(--sd-color-text-1)));
|
|
50
50
|
}
|
|
51
51
|
.sd-checkbox-icon {
|
|
52
52
|
position: relative;
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
width: 14px;
|
|
55
55
|
height: 14px;
|
|
56
|
-
background-color: var(--sd-color-bg-2);
|
|
57
|
-
border: 2px solid var(--sd-color-fill-3);
|
|
58
|
-
border-radius: var(--sd-border-radius-small);
|
|
56
|
+
background-color: var(--component-checkbox-checkbox-mask-color-bg, var(--component-checkbox-mask-color-bg, var(--sd-color-bg-2)));
|
|
57
|
+
border: var(--component-checkbox-checkbox-mask-border-width, var(--component-checkbox-mask-border-width, var(--border-2, 2px))) var(--component-checkbox-checkbox-mask-border-style, var(--component-checkbox-mask-border-style, var(--border-solid, solid))) var(--component-checkbox-checkbox-mask-color-border, var(--component-checkbox-mask-color-border, var(--sd-color-fill-3)));
|
|
58
|
+
border-radius: var(--component-checkbox-checkbox-mask-border-radius, var(--component-checkbox-mask-border-radius, var(--sd-border-radius-small)));
|
|
59
59
|
user-select: none;
|
|
60
60
|
}
|
|
61
61
|
.sd-checkbox-icon::after {
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
top: 50%;
|
|
64
64
|
left: 50%;
|
|
65
65
|
display: block;
|
|
66
|
-
width: 6px;
|
|
67
|
-
height: 2px;
|
|
68
|
-
background: var(--sd-color-white);
|
|
66
|
+
width: var(--component-checkbox-checkbox-color-indeterminate-icon-width, var(--component-checkbox-color-indeterminate-icon-width, 6px));
|
|
67
|
+
height: var(--component-checkbox-checkbox-color-indeterminate-icon-height, var(--component-checkbox-color-indeterminate-icon-height, 2px));
|
|
68
|
+
background: var(--component-checkbox-checkbox-color-indeterminate-icon, var(--component-checkbox-color-indeterminate-icon, var(--sd-color-white)));
|
|
69
69
|
border-radius: 0.5px;
|
|
70
70
|
transform: translateX(-50%) translateY(-50%) scale(0);
|
|
71
71
|
content: "";
|
|
@@ -73,31 +73,31 @@
|
|
|
73
73
|
.sd-checkbox-icon-check {
|
|
74
74
|
position: relative;
|
|
75
75
|
display: block;
|
|
76
|
-
width: 8px;
|
|
76
|
+
width: var(--component-checkbox-checkbox-size-check-icon, var(--component-checkbox-size-check-icon, var(--size-2, 8px)));
|
|
77
77
|
height: 100%;
|
|
78
78
|
margin: 0 auto;
|
|
79
|
-
color: var(--sd-color-white);
|
|
79
|
+
color: var(--component-checkbox-checkbox-color-check-icon, var(--component-checkbox-color-check-icon, var(--sd-color-white)));
|
|
80
80
|
transform: scale(0);
|
|
81
81
|
transform-origin: center 75%;
|
|
82
82
|
}
|
|
83
83
|
.sd-checkbox:hover .sd-checkbox-icon {
|
|
84
|
-
border-color: var(--sd-color-fill-4);
|
|
84
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-hover, var(--component-checkbox-mask-color-border-hover, var(--sd-color-fill-4)));
|
|
85
85
|
transition: border-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), transform 0.3s cubic-bezier(0.3, 1.3, 0.3, 1);
|
|
86
86
|
}
|
|
87
87
|
.sd-checkbox-checked:hover .sd-checkbox-icon, .sd-checkbox-indeterminate:hover .sd-checkbox-icon {
|
|
88
88
|
transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.3, 1);
|
|
89
89
|
}
|
|
90
90
|
.sd-checkbox-checked .sd-checkbox-icon {
|
|
91
|
-
background-color: rgb(var(--sd-primary-6));
|
|
92
|
-
border-color: transparent;
|
|
91
|
+
background-color: var(--component-checkbox-checkbox-mask-color-bg-checked, var(--component-checkbox-mask-color-bg-checked, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
92
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-checked, var(--component-checkbox-mask-color-border-checked, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
93
93
|
}
|
|
94
94
|
.sd-checkbox-checked .sd-checkbox-icon-check {
|
|
95
95
|
transform: scale(1);
|
|
96
96
|
transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.3, 1);
|
|
97
97
|
}
|
|
98
98
|
.sd-checkbox-indeterminate .sd-checkbox-icon {
|
|
99
|
-
background-color: rgb(var(--sd-primary-6));
|
|
100
|
-
border-color: transparent;
|
|
99
|
+
background-color: var(--component-checkbox-checkbox-mask-color-bg-checked, var(--component-checkbox-mask-color-bg-checked, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
|
|
100
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-checked, var(--component-checkbox-mask-color-border-checked, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
101
101
|
}
|
|
102
102
|
.sd-checkbox-indeterminate .sd-checkbox-icon svg {
|
|
103
103
|
transform: scale(0);
|
|
@@ -113,41 +113,41 @@
|
|
|
113
113
|
cursor: not-allowed;
|
|
114
114
|
}
|
|
115
115
|
.sd-checkbox.sd-checkbox-disabled:hover .sd-checkbox-mask {
|
|
116
|
-
border-color: var(--sd-color-fill-3);
|
|
116
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-disabled, var(--component-checkbox-mask-color-border-disabled, var(--sd-color-fill-3)));
|
|
117
117
|
}
|
|
118
118
|
.sd-checkbox-checked:hover .sd-checkbox-icon, .sd-checkbox-indeterminate:hover .sd-checkbox-icon {
|
|
119
|
-
border-color: transparent;
|
|
119
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-checked, var(--component-checkbox-mask-color-border-checked, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
120
120
|
}
|
|
121
121
|
.sd-checkbox-disabled .sd-checkbox-icon {
|
|
122
|
-
background-color: var(--sd-color-fill-2);
|
|
123
|
-
border-color: var(--sd-color-fill-3);
|
|
122
|
+
background-color: var(--component-checkbox-checkbox-mask-color-bg-disabled, var(--component-checkbox-mask-color-bg-disabled, var(--sd-color-fill-2)));
|
|
123
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-disabled, var(--component-checkbox-mask-color-border-disabled, var(--sd-color-fill-3)));
|
|
124
124
|
}
|
|
125
125
|
.sd-checkbox-disabled.sd-checkbox-checked .sd-checkbox-icon, .sd-checkbox-disabled.sd-checkbox-checked:hover .sd-checkbox-icon {
|
|
126
|
-
background-color: var(--sd-color-primary-light-3);
|
|
127
|
-
border-color: transparent;
|
|
126
|
+
background-color: var(--component-checkbox-checkbox-mask-color-bg-checked-disabled, var(--component-checkbox-mask-color-bg-checked-disabled, var(--sd-color-primary-light-3)));
|
|
127
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border-checked-disabled, var(--component-checkbox-mask-color-border-checked-disabled, var(--color-transparent, var(--sd-color-transparent, transparent))));
|
|
128
128
|
}
|
|
129
129
|
.sd-checkbox-disabled:hover .sd-checkbox-icon-hover::before, .sd-checkbox-checked:hover .sd-checkbox-icon-hover::before, .sd-checkbox-indeterminate:hover .sd-checkbox-icon-hover::before {
|
|
130
130
|
background-color: transparent;
|
|
131
131
|
}
|
|
132
132
|
.sd-checkbox-disabled:hover .sd-checkbox-icon {
|
|
133
|
-
border-color: var(--sd-color-fill-3);
|
|
133
|
+
border-color: var(--component-checkbox-checkbox-mask-color-border, var(--component-checkbox-mask-color-border, var(--sd-color-fill-3)));
|
|
134
134
|
}
|
|
135
135
|
.sd-checkbox-disabled .sd-checkbox-label {
|
|
136
|
-
color: var(--sd-color-text-4);
|
|
136
|
+
color: var(--component-checkbox-checkbox-color-text-disabled, var(--component-checkbox-color-text-disabled, var(--sd-color-text-4)));
|
|
137
137
|
}
|
|
138
138
|
.sd-checkbox-disabled .sd-checkbox-icon-check {
|
|
139
|
-
color: var(--sd-color-fill-3);
|
|
139
|
+
color: var(--component-checkbox-checkbox-color-check-icon-disabled, var(--component-checkbox-color-check-icon-disabled, var(--sd-color-fill-3)));
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.sd-checkbox-group {
|
|
143
143
|
display: inline-block;
|
|
144
144
|
}
|
|
145
145
|
.sd-checkbox-group .sd-checkbox {
|
|
146
|
-
margin-right: 16px;
|
|
146
|
+
margin-right: var(--component-checkbox-checkbox-group-spacing, var(--component-checkbox-group-spacing, var(--spacing-7, 16px)));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.sd-checkbox-group-direction-vertical .sd-checkbox {
|
|
150
150
|
display: flex;
|
|
151
151
|
margin-right: 0;
|
|
152
|
-
line-height: 32px;
|
|
152
|
+
line-height: var(--component-checkbox-checkbox-group-size-line-height-vertical, var(--component-checkbox-group-size-line-height-vertical, var(--size-8, 32px)));
|
|
153
153
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@style/theme/runtime.scss' as theme-runtime;
|
|
1
2
|
@use '@style/theme/component.scss' as component;
|
|
2
3
|
@use '@style/theme/index.scss' as global;
|
|
3
4
|
|
|
@@ -68,3 +69,136 @@ $checkbox-color-indeterminate-icon-width: 6px;
|
|
|
68
69
|
$checkbox-color-indeterminate-icon-height: 2px;
|
|
69
70
|
|
|
70
71
|
$checkbox-color-indeterminate-icon: var(string.unquote('#{global.$sd-cssvars-prefix}-color-white'));
|
|
72
|
+
|
|
73
|
+
// @generated runtime tokens — pnpm theme:generate
|
|
74
|
+
$checkbox-mask-border-width: theme-runtime.token(
|
|
75
|
+
'checkbox',
|
|
76
|
+
'checkbox-mask-border-width',
|
|
77
|
+
$checkbox-mask-border-width,
|
|
78
|
+
'border-2'
|
|
79
|
+
);
|
|
80
|
+
$checkbox-mask-border-style: theme-runtime.token(
|
|
81
|
+
'checkbox',
|
|
82
|
+
'checkbox-mask-border-style',
|
|
83
|
+
$checkbox-mask-border-style,
|
|
84
|
+
'border-solid'
|
|
85
|
+
);
|
|
86
|
+
$checkbox-mask-border-radius: theme-runtime.token(
|
|
87
|
+
'checkbox',
|
|
88
|
+
'checkbox-mask-border-radius',
|
|
89
|
+
$checkbox-mask-border-radius
|
|
90
|
+
);
|
|
91
|
+
$checkbox-mask-bg-color-bg: theme-runtime.token(
|
|
92
|
+
'checkbox',
|
|
93
|
+
'checkbox-mask-bg-color-bg',
|
|
94
|
+
$checkbox-mask-bg-color-bg
|
|
95
|
+
);
|
|
96
|
+
$checkbox-mask-color-bg: theme-runtime.token(
|
|
97
|
+
'checkbox',
|
|
98
|
+
'checkbox-mask-color-bg',
|
|
99
|
+
$checkbox-mask-color-bg
|
|
100
|
+
);
|
|
101
|
+
$checkbox-mask-color-bg_checked: theme-runtime.token(
|
|
102
|
+
'checkbox',
|
|
103
|
+
'checkbox-mask-color-bg-checked',
|
|
104
|
+
$checkbox-mask-color-bg_checked,
|
|
105
|
+
'color-primary-6'
|
|
106
|
+
);
|
|
107
|
+
$checkbox-mask-color-bg_disabled: theme-runtime.token(
|
|
108
|
+
'checkbox',
|
|
109
|
+
'checkbox-mask-color-bg-disabled',
|
|
110
|
+
$checkbox-mask-color-bg_disabled
|
|
111
|
+
);
|
|
112
|
+
$checkbox-mask-color-bg_checked_disabled: theme-runtime.token(
|
|
113
|
+
'checkbox',
|
|
114
|
+
'checkbox-mask-color-bg-checked-disabled',
|
|
115
|
+
$checkbox-mask-color-bg_checked_disabled
|
|
116
|
+
);
|
|
117
|
+
$checkbox-mask-color-border: theme-runtime.token(
|
|
118
|
+
'checkbox',
|
|
119
|
+
'checkbox-mask-color-border',
|
|
120
|
+
$checkbox-mask-color-border
|
|
121
|
+
);
|
|
122
|
+
$checkbox-mask-color-border_hover: theme-runtime.token(
|
|
123
|
+
'checkbox',
|
|
124
|
+
'checkbox-mask-color-border-hover',
|
|
125
|
+
$checkbox-mask-color-border_hover
|
|
126
|
+
);
|
|
127
|
+
$checkbox-mask-color-border_checked: theme-runtime.token(
|
|
128
|
+
'checkbox',
|
|
129
|
+
'checkbox-mask-color-border-checked',
|
|
130
|
+
$checkbox-mask-color-border_checked,
|
|
131
|
+
'color-transparent'
|
|
132
|
+
);
|
|
133
|
+
$checkbox-mask-color-border_checked_disabled: theme-runtime.token(
|
|
134
|
+
'checkbox',
|
|
135
|
+
'checkbox-mask-color-border-checked-disabled',
|
|
136
|
+
$checkbox-mask-color-border_checked_disabled,
|
|
137
|
+
'color-transparent'
|
|
138
|
+
);
|
|
139
|
+
$checkbox-mask-color-border_disabled: theme-runtime.token(
|
|
140
|
+
'checkbox',
|
|
141
|
+
'checkbox-mask-color-border-disabled',
|
|
142
|
+
$checkbox-mask-color-border_disabled
|
|
143
|
+
);
|
|
144
|
+
$checkbox-color-text: theme-runtime.token('checkbox', 'checkbox-color-text', $checkbox-color-text);
|
|
145
|
+
$checkbox-color-text_disabled: theme-runtime.token(
|
|
146
|
+
'checkbox',
|
|
147
|
+
'checkbox-color-text-disabled',
|
|
148
|
+
$checkbox-color-text_disabled
|
|
149
|
+
);
|
|
150
|
+
$checkbox-group-spacing: theme-runtime.token(
|
|
151
|
+
'checkbox',
|
|
152
|
+
'checkbox-group-spacing',
|
|
153
|
+
$checkbox-group-spacing,
|
|
154
|
+
'spacing-7'
|
|
155
|
+
);
|
|
156
|
+
$checkbox-text-mask-spacing: theme-runtime.token(
|
|
157
|
+
'checkbox',
|
|
158
|
+
'checkbox-text-mask-spacing',
|
|
159
|
+
$checkbox-text-mask-spacing,
|
|
160
|
+
'spacing-4'
|
|
161
|
+
);
|
|
162
|
+
$checkbox-text-font-size: theme-runtime.token(
|
|
163
|
+
'checkbox',
|
|
164
|
+
'checkbox-text-font-size',
|
|
165
|
+
$checkbox-text-font-size,
|
|
166
|
+
'font-size-body-3'
|
|
167
|
+
);
|
|
168
|
+
$checkbox-group-size-line-height_vertical: theme-runtime.token(
|
|
169
|
+
'checkbox',
|
|
170
|
+
'checkbox-group-size-line-height-vertical',
|
|
171
|
+
$checkbox-group-size-line-height_vertical,
|
|
172
|
+
'size-8'
|
|
173
|
+
);
|
|
174
|
+
$checkbox-size-check-icon: theme-runtime.token(
|
|
175
|
+
'checkbox',
|
|
176
|
+
'checkbox-size-check-icon',
|
|
177
|
+
$checkbox-size-check-icon,
|
|
178
|
+
'size-2'
|
|
179
|
+
);
|
|
180
|
+
$checkbox-color-check-icon: theme-runtime.token(
|
|
181
|
+
'checkbox',
|
|
182
|
+
'checkbox-color-check-icon',
|
|
183
|
+
$checkbox-color-check-icon
|
|
184
|
+
);
|
|
185
|
+
$checkbox-color-check-icon_disabled: theme-runtime.token(
|
|
186
|
+
'checkbox',
|
|
187
|
+
'checkbox-color-check-icon-disabled',
|
|
188
|
+
$checkbox-color-check-icon_disabled
|
|
189
|
+
);
|
|
190
|
+
$checkbox-color-indeterminate-icon-width: theme-runtime.token(
|
|
191
|
+
'checkbox',
|
|
192
|
+
'checkbox-color-indeterminate-icon-width',
|
|
193
|
+
$checkbox-color-indeterminate-icon-width
|
|
194
|
+
);
|
|
195
|
+
$checkbox-color-indeterminate-icon-height: theme-runtime.token(
|
|
196
|
+
'checkbox',
|
|
197
|
+
'checkbox-color-indeterminate-icon-height',
|
|
198
|
+
$checkbox-color-indeterminate-icon-height
|
|
199
|
+
);
|
|
200
|
+
$checkbox-color-indeterminate-icon: theme-runtime.token(
|
|
201
|
+
'checkbox',
|
|
202
|
+
'checkbox-color-indeterminate-icon',
|
|
203
|
+
$checkbox-color-indeterminate-icon
|
|
204
|
+
);
|