@apexhub/apex-ui-react 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3363 -3328
- package/dist/index.d.ts +26 -22
- package/dist/index.mjs +3363 -3328
- package/dist/llm/alert.tokens.txt +1 -1
- package/dist/llm/alert.txt +3 -3
- package/dist/llm/apex-provider.txt +3 -2
- package/dist/llm/auto-complete.tokens.txt +1 -1
- package/dist/llm/auto-complete.txt +1 -1
- package/dist/llm/avatar.tokens.txt +1 -1
- package/dist/llm/avatar.txt +1 -1
- package/dist/llm/breadcrumb.tokens.txt +46 -96
- package/dist/llm/breadcrumb.txt +8 -8
- package/dist/llm/button.tokens.txt +1 -1
- package/dist/llm/button.txt +16 -8
- package/dist/llm/card.tokens.txt +3 -1
- package/dist/llm/card.txt +24 -1
- package/dist/llm/cascader.tokens.txt +15 -7
- package/dist/llm/cascader.txt +25 -6
- package/dist/llm/checkbox.tokens.txt +10 -2
- package/dist/llm/checkbox.txt +24 -13
- package/dist/llm/collapse.tokens.txt +1 -1
- package/dist/llm/collapse.txt +1 -1
- package/dist/llm/date-picker.tokens.txt +10 -10
- package/dist/llm/date-picker.txt +7 -3
- package/dist/llm/divider.tokens.txt +1 -1
- package/dist/llm/divider.txt +1 -1
- package/dist/llm/drawer.tokens.txt +2 -2
- package/dist/llm/drawer.txt +2 -2
- package/dist/llm/dropdown.tokens.txt +1 -1
- package/dist/llm/dropdown.txt +1 -1
- package/dist/llm/form.tokens.txt +3 -1
- package/dist/llm/form.txt +1 -1
- package/dist/llm/grid.txt +9 -9
- package/dist/llm/image.tokens.txt +1 -1
- package/dist/llm/image.txt +2 -2
- package/dist/llm/input-number.tokens.txt +4 -4
- package/dist/llm/input-number.txt +8 -3
- package/dist/llm/input.tokens.txt +4 -4
- package/dist/llm/input.txt +4 -2
- package/dist/llm/layout.tokens.txt +1 -1
- package/dist/llm/layout.txt +1 -1
- package/dist/llm/menu.tokens.txt +21 -8
- package/dist/llm/menu.txt +19 -12
- package/dist/llm/message.tokens.txt +1 -1
- package/dist/llm/message.txt +1 -1
- package/dist/llm/modal.tokens.txt +1 -1
- package/dist/llm/modal.txt +9 -9
- package/dist/llm/notification.tokens.txt +1 -1
- package/dist/llm/notification.txt +1 -1
- package/dist/llm/pagination.tokens.txt +6 -4
- package/dist/llm/pagination.txt +18 -9
- package/dist/llm/popover.tokens.txt +4 -14
- package/dist/llm/popover.txt +3 -3
- package/dist/llm/progress.tokens.txt +1 -1
- package/dist/llm/progress.txt +4 -4
- package/dist/llm/radio.tokens.txt +11 -6
- package/dist/llm/radio.txt +38 -1
- package/dist/llm/rate.tokens.txt +1 -1
- package/dist/llm/rate.txt +1 -1
- package/dist/llm/select.tokens.txt +4 -4
- package/dist/llm/select.txt +8 -7
- package/dist/llm/skeleton.tokens.txt +1 -1
- package/dist/llm/skeleton.txt +1 -1
- package/dist/llm/spin.tokens.txt +1 -1
- package/dist/llm/spin.txt +1 -1
- package/dist/llm/steps.tokens.txt +1 -1
- package/dist/llm/steps.txt +1 -1
- package/dist/llm/switch.tokens.txt +1 -1
- package/dist/llm/switch.txt +1 -1
- package/dist/llm/table.tokens.txt +2 -2
- package/dist/llm/table.txt +16 -13
- package/dist/llm/tabs.tokens.txt +1 -1
- package/dist/llm/tabs.txt +1 -1
- package/dist/llm/tag.tokens.txt +1 -2
- package/dist/llm/tag.txt +7 -8
- package/dist/llm/tooltip.tokens.txt +1 -1
- package/dist/llm/tooltip.txt +1 -1
- package/dist/llm/tree-select.tokens.txt +7 -6
- package/dist/llm/tree-select.txt +32 -22
- package/dist/llm/tree.tokens.txt +1 -3
- package/dist/llm/tree.txt +11 -15
- package/dist/llm/typography.tokens.txt +1 -1
- package/dist/llm/typography.txt +1 -1
- package/dist/llm/upload.tokens.txt +5 -1
- package/dist/llm/upload.txt +4 -2
- package/dist/llms-full.txt +321 -184
- package/dist/llms.txt +1 -1
- package/dist/style.css +1716 -1240
- package/llms-full.txt +321 -184
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/src/alert/llm.txt +3 -3
- package/src/alert/tokens.txt +1 -1
- package/src/apex-provider/llm.txt +3 -2
- package/src/auto-complete/llm.txt +1 -1
- package/src/auto-complete/tokens.txt +1 -1
- package/src/avatar/llm.txt +1 -1
- package/src/avatar/tokens.txt +1 -1
- package/src/breadcrumb/llm.txt +8 -8
- package/src/breadcrumb/tokens.txt +46 -96
- package/src/button/llm.txt +16 -8
- package/src/button/tokens.txt +1 -1
- package/src/card/llm.txt +24 -1
- package/src/card/tokens.txt +3 -1
- package/src/cascader/llm.txt +25 -6
- package/src/cascader/tokens.txt +15 -7
- package/src/checkbox/llm.txt +24 -13
- package/src/checkbox/tokens.txt +10 -2
- package/src/collapse/llm.txt +1 -1
- package/src/collapse/tokens.txt +1 -1
- package/src/date-picker/llm.txt +7 -3
- package/src/date-picker/tokens.txt +10 -10
- package/src/divider/llm.txt +1 -1
- package/src/divider/tokens.txt +1 -1
- package/src/drawer/llm.txt +2 -2
- package/src/drawer/tokens.txt +2 -2
- package/src/dropdown/llm.txt +1 -1
- package/src/dropdown/tokens.txt +1 -1
- package/src/form/llm.txt +1 -1
- package/src/form/tokens.txt +3 -1
- package/src/grid/llm.txt +9 -9
- package/src/image/llm.txt +2 -2
- package/src/image/tokens.txt +1 -1
- package/src/input/llm.txt +4 -2
- package/src/input/tokens.txt +4 -4
- package/src/input-number/llm.txt +8 -3
- package/src/input-number/tokens.txt +4 -4
- package/src/layout/llm.txt +1 -1
- package/src/layout/tokens.txt +1 -1
- package/src/menu/llm.txt +19 -12
- package/src/menu/tokens.txt +21 -8
- package/src/message/llm.txt +1 -1
- package/src/message/tokens.txt +1 -1
- package/src/modal/llm.txt +9 -9
- package/src/modal/tokens.txt +1 -1
- package/src/notification/llm.txt +1 -1
- package/src/notification/tokens.txt +1 -1
- package/src/pagination/llm.txt +18 -9
- package/src/pagination/tokens.txt +6 -4
- package/src/popover/llm.txt +3 -3
- package/src/popover/tokens.txt +4 -14
- package/src/progress/llm.txt +4 -4
- package/src/progress/tokens.txt +1 -1
- package/src/radio/llm.txt +38 -1
- package/src/radio/tokens.txt +11 -6
- package/src/rate/llm.txt +1 -1
- package/src/rate/tokens.txt +1 -1
- package/src/select/llm.txt +8 -7
- package/src/select/tokens.txt +4 -4
- package/src/skeleton/llm.txt +1 -1
- package/src/skeleton/tokens.txt +1 -1
- package/src/spin/llm.txt +1 -1
- package/src/spin/tokens.txt +1 -1
- package/src/steps/llm.txt +1 -1
- package/src/steps/tokens.txt +1 -1
- package/src/switch/llm.txt +1 -1
- package/src/switch/tokens.txt +1 -1
- package/src/table/llm.txt +16 -13
- package/src/table/tokens.txt +2 -2
- package/src/tabs/llm.txt +1 -1
- package/src/tabs/tokens.txt +1 -1
- package/src/tag/llm.txt +7 -8
- package/src/tag/tokens.txt +1 -2
- package/src/tooltip/llm.txt +1 -1
- package/src/tooltip/tokens.txt +1 -1
- package/src/tree/llm.txt +11 -15
- package/src/tree/tokens.txt +1 -3
- package/src/tree-select/llm.txt +32 -22
- package/src/tree-select/tokens.txt +7 -6
- package/src/typography/llm.txt +1 -1
- package/src/typography/tokens.txt +1 -1
- package/src/upload/llm.txt +4 -2
- package/src/upload/tokens.txt +5 -1
package/dist/style.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ==========================================================================
|
|
2
2
|
Apex UI Design Tokens — Auto-generated
|
|
3
|
-
Generated at 2026-11-
|
|
3
|
+
Generated at 2026-11-19 04:41:15 from tokens — primitives layer (palette, base value)
|
|
4
4
|
DO NOT EDIT MANUALLY. Run `apex-ui theme` / `apex-ui build` to regenerate.
|
|
5
5
|
========================================================================== */
|
|
6
6
|
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
|
|
184
184
|
/* ==========================================================================
|
|
185
185
|
Apex UI Design Tokens — Auto-generated
|
|
186
|
-
Generated at 2026-11-
|
|
186
|
+
Generated at 2026-11-19 04:41:15 from tokens — aliases layer (foundation, 卡片 Demo / 单选状态)
|
|
187
187
|
DO NOT EDIT MANUALLY. Run `apex-ui theme` / `apex-ui build` to regenerate.
|
|
188
188
|
========================================================================== */
|
|
189
189
|
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
|
|
402
402
|
/* ==========================================================================
|
|
403
403
|
Apex UI Component Tokens — Auto-generated (scoped)
|
|
404
|
-
Generated at 2026-11-
|
|
404
|
+
Generated at 2026-11-19 04:41:15 from tokens — component layer (component, component usage)
|
|
405
405
|
DO NOT EDIT MANUALLY. Run `apex-ui theme` / `apex-ui build` to regenerate.
|
|
406
406
|
========================================================================== */
|
|
407
407
|
|
|
@@ -1483,8 +1483,8 @@
|
|
|
1483
1483
|
--input-stroke-focused: var(--apex-stroke-brand-primary);
|
|
1484
1484
|
--input-stroke-hover: var(--apex-stroke-neutral-quinary);
|
|
1485
1485
|
--input-text-filled-default: var(--apex-text-neutral-primary);
|
|
1486
|
-
--input-text-filled-disabled: var(--apex-text-neutral-
|
|
1487
|
-
--input-text-filled-error: var(--apex-text-neutral-
|
|
1486
|
+
--input-text-filled-disabled: var(--apex-text-neutral-disabled);
|
|
1487
|
+
--input-text-filled-error: var(--apex-text-neutral-primary);
|
|
1488
1488
|
--input-text-filled-focused: var(--apex-text-neutral-primary);
|
|
1489
1489
|
--input-text-filled-hover: var(--apex-text-neutral-primary);
|
|
1490
1490
|
--input-text-placeholder-default: var(--apex-text-neutral-tertiary);
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
--input-stroke-hover: var(--apex-stroke-neutral-quinary);
|
|
1512
1512
|
--input-text-filled-default: var(--apex-text-neutral-primary);
|
|
1513
1513
|
--input-text-filled-disabled: var(--apex-text-neutral-disabled);
|
|
1514
|
-
--input-text-filled-error: var(--apex-text-neutral-
|
|
1514
|
+
--input-text-filled-error: var(--apex-text-neutral-primary);
|
|
1515
1515
|
--input-text-filled-focused: var(--apex-text-neutral-primary);
|
|
1516
1516
|
--input-text-filled-hover: var(--apex-text-neutral-primary);
|
|
1517
1517
|
--input-text-placeholder-default: var(--apex-text-neutral-tertiary);
|
|
@@ -1915,13 +1915,13 @@
|
|
|
1915
1915
|
--radio-icon-icon: var(--apex-size-20);
|
|
1916
1916
|
--radio-spacing-gap: var(--apex-spacing-4);
|
|
1917
1917
|
--radio-stoke-stroke: var(--apex-border-1);
|
|
1918
|
-
--radio-stroke-active: var(--apex-stroke-neutral-
|
|
1918
|
+
--radio-stroke-active: var(--apex-stroke-neutral-septenary);
|
|
1919
1919
|
--radio-stroke-check-active: var(--apex-stroke-brand-tertiary);
|
|
1920
1920
|
--radio-stroke-check-hover: var(--apex-stroke-brand-secondary);
|
|
1921
1921
|
--radio-stroke-default: var(--apex-stroke-neutral-denary);
|
|
1922
1922
|
--radio-stroke-disabled: var(--apex-stroke-neutral-quinary);
|
|
1923
1923
|
--radio-stroke-error: var(--apex-stroke-error-primary);
|
|
1924
|
-
--radio-stroke-hover: var(--apex-stroke-neutral-
|
|
1924
|
+
--radio-stroke-hover: var(--apex-stroke-neutral-octonary);
|
|
1925
1925
|
--radio-stroke-selected: var(--apex-stroke-brand-primary);
|
|
1926
1926
|
--radio-text-active: var(--apex-text-neutral-tertiary);
|
|
1927
1927
|
--radio-text-default: var(--apex-text-neutral-primary);
|
|
@@ -2252,7 +2252,7 @@
|
|
|
2252
2252
|
--table-fill-content-color-2: var(--apex-green-alpha-6);
|
|
2253
2253
|
--table-fill-content-default: var(--apex-fill-neutral-secondary);
|
|
2254
2254
|
--table-fill-content-disabled: var(--apex-fill-neutral-primary);
|
|
2255
|
-
--table-fill-content-hover:
|
|
2255
|
+
--table-fill-content-hover: color-mix(in srgb, var(--apex-fill-neutral-tertiary) 80%, transparent);
|
|
2256
2256
|
--table-fill-content-loading: var(--apex-fill-neutral-tertiary);
|
|
2257
2257
|
--table-fill-content-selected: var(--apex-fill-neutral-quaternary);
|
|
2258
2258
|
--table-fill-header-default: var(--apex-fill-neutral-tertiary);
|
|
@@ -2834,6 +2834,7 @@
|
|
|
2834
2834
|
.apex-alert__icon svg {
|
|
2835
2835
|
width: 1em;
|
|
2836
2836
|
height: 1em;
|
|
2837
|
+
color: inherit;
|
|
2837
2838
|
}
|
|
2838
2839
|
|
|
2839
2840
|
.apex-alert[data-type='success'] .apex-alert__icon {
|
|
@@ -2913,6 +2914,8 @@
|
|
|
2913
2914
|
cursor: pointer;
|
|
2914
2915
|
user-select: none;
|
|
2915
2916
|
outline: none;
|
|
2917
|
+
font-size: 14px;
|
|
2918
|
+
line-height: 20px;
|
|
2916
2919
|
|
|
2917
2920
|
height: var(--button-size-height);
|
|
2918
2921
|
padding: 0 var(--button-spacing-padding-x);
|
|
@@ -3042,6 +3045,8 @@
|
|
|
3042
3045
|
|
|
3043
3046
|
.apex-button--small {
|
|
3044
3047
|
height: var(--button-size-height);
|
|
3048
|
+
font-size: 12px;
|
|
3049
|
+
line-height: 16px;
|
|
3045
3050
|
}
|
|
3046
3051
|
|
|
3047
3052
|
/* ── Block / Loading / Disabled 交互 ─────────────────────────────────────── */
|
|
@@ -3053,7 +3058,6 @@
|
|
|
3053
3058
|
|
|
3054
3059
|
.apex-button--loading {
|
|
3055
3060
|
cursor: default;
|
|
3056
|
-
opacity: 0.85;
|
|
3057
3061
|
}
|
|
3058
3062
|
|
|
3059
3063
|
.apex-button:disabled,
|
|
@@ -3084,10 +3088,25 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3084
3088
|
align-items: center;
|
|
3085
3089
|
justify-content: center;
|
|
3086
3090
|
flex-shrink: 0;
|
|
3087
|
-
|
|
3091
|
+
width: 20px;
|
|
3092
|
+
height: 20px;
|
|
3093
|
+
font-size: 20px;
|
|
3088
3094
|
line-height: 1;
|
|
3089
3095
|
}
|
|
3090
3096
|
|
|
3097
|
+
.apex-button--small .apex-button__icon,
|
|
3098
|
+
.apex-button--small .apex-button__loading-icon {
|
|
3099
|
+
width: 16px;
|
|
3100
|
+
height: 16px;
|
|
3101
|
+
font-size: 16px;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
.apex-icon-primary-button .apex-button__icon {
|
|
3105
|
+
width: 16px;
|
|
3106
|
+
height: 16px;
|
|
3107
|
+
font-size: 16px;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3091
3110
|
.apex-button__icon {
|
|
3092
3111
|
color: var(--button-icon-default, currentColor);
|
|
3093
3112
|
}
|
|
@@ -3148,6 +3167,151 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3148
3167
|
.apex-button__loading-icon .apex-icon {
|
|
3149
3168
|
color: inherit;
|
|
3150
3169
|
}
|
|
3170
|
+
.apex-icon {
|
|
3171
|
+
display: inline-flex;
|
|
3172
|
+
align-items: center;
|
|
3173
|
+
justify-content: center;
|
|
3174
|
+
font-style: normal;
|
|
3175
|
+
line-height: 0;
|
|
3176
|
+
text-align: center;
|
|
3177
|
+
text-transform: none;
|
|
3178
|
+
vertical-align: -0.125em;
|
|
3179
|
+
text-rendering: optimizeLegibility;
|
|
3180
|
+
-webkit-font-smoothing: antialiased;
|
|
3181
|
+
-moz-osx-font-smoothing: grayscale;
|
|
3182
|
+
fill: currentColor;
|
|
3183
|
+
color: var(--apex-icon-neutral-primary);
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
.apex-icon svg {
|
|
3187
|
+
display: inline-block;
|
|
3188
|
+
width: 1em;
|
|
3189
|
+
height: 1em;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
.apex-icon svg.apex-icon__svg--16 {
|
|
3193
|
+
width: var(--apex-size-16, 16px);
|
|
3194
|
+
height: var(--apex-size-16, 16px);
|
|
3195
|
+
}
|
|
3196
|
+
.apex-auto-complete {
|
|
3197
|
+
display: inline-flex;
|
|
3198
|
+
flex-direction: column;
|
|
3199
|
+
width: 100%;
|
|
3200
|
+
min-width: 0;
|
|
3201
|
+
box-sizing: border-box;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
.apex-auto-complete > .apex-input {
|
|
3205
|
+
min-width: 0;
|
|
3206
|
+
max-width: 100%;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
.apex-auto-complete:focus-within .apex-input[data-slot='input-container'] .apex-clear {
|
|
3210
|
+
visibility: visible;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
.apex-auto-complete__popup {
|
|
3214
|
+
z-index: var(--apex-z-index-select);
|
|
3215
|
+
display: flex;
|
|
3216
|
+
flex-direction: column;
|
|
3217
|
+
box-sizing: border-box;
|
|
3218
|
+
width: var(--apex-floating-anchor-width);
|
|
3219
|
+
max-width: var(--apex-floating-available-width);
|
|
3220
|
+
max-height: min(var(--dropdown-size-container-height-max), var(--apex-floating-available-height));
|
|
3221
|
+
border: var(--dropdown-stroke) solid var(--dropdown-stroke-container-default);
|
|
3222
|
+
border-radius: var(--dropdown-radius-container);
|
|
3223
|
+
background-color: var(--dropdown-fill-container-default);
|
|
3224
|
+
overflow: hidden;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
.apex-auto-complete__popup[data-match-width='false'] {
|
|
3228
|
+
width: max-content;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
.apex-auto-complete__popup[data-match-width='custom'] {
|
|
3232
|
+
width: var(--auto-complete-popup-width);
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
.apex-auto-complete__list,
|
|
3236
|
+
.apex-auto-complete__group {
|
|
3237
|
+
display: flex;
|
|
3238
|
+
flex-direction: column;
|
|
3239
|
+
gap: var(--dropdown-size-container-gap);
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
.apex-auto-complete__list {
|
|
3243
|
+
min-height: 0;
|
|
3244
|
+
padding: var(--dropdown-spacing-container-padding-y) var(--dropdown-spacing-container-padding-x);
|
|
3245
|
+
overflow-y: auto;
|
|
3246
|
+
overflow-x: hidden;
|
|
3247
|
+
overscroll-behavior: contain;
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
.apex-auto-complete__option,
|
|
3251
|
+
.apex-auto-complete__group-label {
|
|
3252
|
+
box-sizing: border-box;
|
|
3253
|
+
flex: 0 0 auto;
|
|
3254
|
+
min-height: var(--dropdown-size-item-height-item);
|
|
3255
|
+
padding-inline: var(--dropdown-spacing-item-padding-x-item);
|
|
3256
|
+
display: flex;
|
|
3257
|
+
align-items: center;
|
|
3258
|
+
overflow: hidden;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
.apex-auto-complete__option {
|
|
3262
|
+
border-radius: var(--dropdown-radius-item);
|
|
3263
|
+
background-color: var(--dropdown-fill-default);
|
|
3264
|
+
color: var(--dropdown-text-default);
|
|
3265
|
+
cursor: pointer;
|
|
3266
|
+
user-select: none;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
.apex-auto-complete__option[data-active]:not([data-disabled]),
|
|
3270
|
+
.apex-auto-complete__option:hover:not([data-disabled]) {
|
|
3271
|
+
background-color: var(--dropdown-fill-hover);
|
|
3272
|
+
color: var(--dropdown-text-hover);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
.apex-auto-complete__option:active:not([data-disabled]) {
|
|
3276
|
+
background-color: var(--dropdown-fill-active);
|
|
3277
|
+
color: var(--dropdown-text-active);
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
.apex-auto-complete__option[data-disabled] {
|
|
3281
|
+
background-color: var(--dropdown-fill-disabled);
|
|
3282
|
+
color: var(--dropdown-text-disabled);
|
|
3283
|
+
cursor: not-allowed;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
.apex-auto-complete__group-label {
|
|
3287
|
+
color: var(--dropdown-text-subtitle-default);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
.apex-auto-complete__group > .apex-auto-complete__option {
|
|
3291
|
+
padding-inline-start: var(--dropdown-spacing-item-padding-x-item);
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
.apex-auto-complete__label {
|
|
3295
|
+
/* Same font token scopes as Select option/body and group/caption labels. */
|
|
3296
|
+
font-size: var(--font-fontsize);
|
|
3297
|
+
font-weight: var(--font-fontweight);
|
|
3298
|
+
line-height: var(--font-fontheight);
|
|
3299
|
+
min-width: 0;
|
|
3300
|
+
overflow: hidden;
|
|
3301
|
+
white-space: nowrap;
|
|
3302
|
+
text-overflow: ellipsis;
|
|
3303
|
+
}
|
|
3304
|
+
/* ==========================================================================
|
|
3305
|
+
Input — 消费 component-tokens.css 局部变量(--input-*)
|
|
3306
|
+
作用域:.apex-input.apex-default-input / .apex-input.apex-elevated-input(见 component-tokens.css)
|
|
3307
|
+
|
|
3308
|
+
结构(两层):
|
|
3309
|
+
.apex-input ← 容器:token 作用域 + 尺寸(宽 / 高 / data-size)
|
|
3310
|
+
└─ .apex-input__inner ← 视觉:边框 / 填充 / 内边距 / 状态(hover / focus / status / disabled)
|
|
3311
|
+
状态:默认 → hover → focus-within → data-status → data-disabled(落在 __inner)
|
|
3312
|
+
正文字阶:typography.css(:where(.apex-input) → --apex-typography-body-*)
|
|
3313
|
+
========================================================================== */
|
|
3314
|
+
|
|
3151
3315
|
/* Typography — 文本/标题/段落(P0 字阶 + 修饰 + 基础 ellipsis)
|
|
3152
3316
|
*
|
|
3153
3317
|
* 字阶:.apex-font + .apex-text-{cn|en}-*-font(component-tokens.css)→ --font-font*
|
|
@@ -3161,6 +3325,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3161
3325
|
}
|
|
3162
3326
|
|
|
3163
3327
|
/* Body 字阶 token — Typography 与表单控件(.apex-input 等)共用;缺省 en,zh 由 ApexProvider data-locale 切换 */
|
|
3328
|
+
|
|
3164
3329
|
:root,
|
|
3165
3330
|
[data-locale='en'] {
|
|
3166
3331
|
--apex-typography-body-font-size: var(--apex-fontsize-14);
|
|
@@ -3185,6 +3350,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3185
3350
|
}
|
|
3186
3351
|
|
|
3187
3352
|
/* 块级默认;Text/Paragraph 用 inherit 便于嵌入 Tag/Dropdown 等有色宿主 */
|
|
3353
|
+
|
|
3188
3354
|
:where(.apex-typography-text),
|
|
3189
3355
|
:where(.apex-typography-title),
|
|
3190
3356
|
:where(.apex-typography-paragraph) {
|
|
@@ -3198,6 +3364,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3198
3364
|
}
|
|
3199
3365
|
|
|
3200
3366
|
/* Title 无 variant,须自带主文本色(与 index.md 字阶表一致) */
|
|
3367
|
+
|
|
3201
3368
|
:where(.apex-typography-title) {
|
|
3202
3369
|
color: var(--apex-text-neutral-primary);
|
|
3203
3370
|
}
|
|
@@ -3216,6 +3383,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3216
3383
|
}
|
|
3217
3384
|
|
|
3218
3385
|
/* 字阶:消费 component-tokens.css .apex-font.apex-text-{cn|en}-*-font */
|
|
3386
|
+
|
|
3219
3387
|
:where(.apex-typography.apex-font) {
|
|
3220
3388
|
font-size: var(--font-fontsize);
|
|
3221
3389
|
font-weight: var(--font-fontweight);
|
|
@@ -3232,6 +3400,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3232
3400
|
}
|
|
3233
3401
|
|
|
3234
3402
|
/* 语义 type(显式 prop,保持可覆盖性低于 type 意图) */
|
|
3403
|
+
|
|
3235
3404
|
.apex-typography--type-secondary {
|
|
3236
3405
|
color: var(--apex-text-neutral-secondary);
|
|
3237
3406
|
}
|
|
@@ -3249,6 +3418,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3249
3418
|
}
|
|
3250
3419
|
|
|
3251
3420
|
/* 修饰 */
|
|
3421
|
+
|
|
3252
3422
|
.apex-typography--strong {
|
|
3253
3423
|
font-weight: 600;
|
|
3254
3424
|
}
|
|
@@ -3331,6 +3501,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3331
3501
|
}
|
|
3332
3502
|
|
|
3333
3503
|
/* ellipsis */
|
|
3504
|
+
|
|
3334
3505
|
.apex-typography--ellipsis-single:where(.apex-typography-text),
|
|
3335
3506
|
.apex-typography--ellipsis-single:where(.apex-typography-paragraph) {
|
|
3336
3507
|
/* 允许在 flex/table 等宿主内收缩;避免 min-width:auto 顶住内容宽 */
|
|
@@ -3365,6 +3536,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3365
3536
|
}
|
|
3366
3537
|
|
|
3367
3538
|
/* suffix:JS 测量截断,中间插入 ... span,不用 CSS text-overflow */
|
|
3539
|
+
|
|
3368
3540
|
.apex-typography--ellipsis-suffix:where(.apex-typography-text),
|
|
3369
3541
|
.apex-typography--ellipsis-suffix:where(.apex-typography-paragraph) {
|
|
3370
3542
|
/* 宽度由宿主约束,避免 inline-flex 随内容伸缩导致测量反馈环 */
|
|
@@ -3394,6 +3566,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3394
3566
|
}
|
|
3395
3567
|
|
|
3396
3568
|
/* 多行省略:行数由 TS 在 .apex-typography__ellipsis-text 上 inline 设置 WebkitLineClamp(支持 rows>5) */
|
|
3569
|
+
|
|
3397
3570
|
.apex-typography--ellipsis-multi .apex-typography__content {
|
|
3398
3571
|
overflow: hidden;
|
|
3399
3572
|
white-space: normal;
|
|
@@ -3435,6 +3608,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3435
3608
|
}
|
|
3436
3609
|
|
|
3437
3610
|
/* editable — inline Input, transparent shell inherits typography */
|
|
3611
|
+
|
|
3438
3612
|
.apex-typography__edit {
|
|
3439
3613
|
display: inline;
|
|
3440
3614
|
}
|
|
@@ -3460,1313 +3634,1181 @@ a.apex-button[aria-disabled='true'] {
|
|
|
3460
3634
|
color: inherit;
|
|
3461
3635
|
box-shadow: none;
|
|
3462
3636
|
}
|
|
3463
|
-
/* ==========================================================================
|
|
3464
|
-
Tooltip — 消费 component-tokens.css 局部变量(--tooltip-*)
|
|
3465
|
-
========================================================================== */
|
|
3466
3637
|
|
|
3467
|
-
|
|
3468
|
-
display:flex;
|
|
3469
|
-
justify-content: center;
|
|
3470
|
-
align-items: center;
|
|
3471
|
-
z-index: var(--apex-z-index-tooltip, 1070);
|
|
3472
|
-
box-sizing: border-box;
|
|
3473
|
-
max-width: var(--tooltip-size-width-max);
|
|
3474
|
-
min-width: var(--tooltip-size-width-min);
|
|
3475
|
-
min-height: var(--tooltip-size-height-min);
|
|
3476
|
-
/* 高度按内容自动撑开(不消费 --tooltip-height-max):
|
|
3477
|
-
长文本在 max-width 内换行后完整显示,不做纵向截断 / 滚动。 */
|
|
3478
|
-
padding: var(--tooltip-spacing-padding-y) var(--tooltip-spacing-padding-x);
|
|
3479
|
-
border-radius: var(--tooltip-radius-radius);
|
|
3480
|
-
border: var(--tooltip-stroke-stroke) solid var(--tooltip-stroke-default);
|
|
3481
|
-
background-color: var(--tooltip-fill-default);
|
|
3482
|
-
/* fill-image removed in token 8.4 */
|
|
3483
|
-
color: var(--tooltip-text-default);
|
|
3484
|
-
box-shadow: none;
|
|
3485
|
-
overflow: visible;
|
|
3486
|
-
}
|
|
3638
|
+
/* ── Container ────────────────────────────────────────────────────────────── */
|
|
3487
3639
|
|
|
3488
|
-
.apex-
|
|
3489
|
-
|
|
3490
|
-
}
|
|
3640
|
+
/* 只负责尺寸:min-width / height。尺寸 token 由 .apex-sm/md/lg-input 解析,
|
|
3641
|
+
经 CSS 继承向下传给 .apex-input__inner,其余视觉全部交给 __inner。 */
|
|
3491
3642
|
|
|
3492
|
-
.apex-
|
|
3643
|
+
:where(.apex-input) {
|
|
3493
3644
|
display: inline-flex;
|
|
3494
|
-
|
|
3495
|
-
|
|
3645
|
+
min-width: var(--input-spacing-width-min);
|
|
3646
|
+
height: var(--input-spacing-height);
|
|
3647
|
+
width: 100%;
|
|
3496
3648
|
}
|
|
3497
3649
|
|
|
3498
|
-
/*
|
|
3499
|
-
|
|
3500
|
-
overflow:hidden(截断语义),在 tooltip 场景需覆盖为换行显示完整文本。 */
|
|
3501
|
-
.apex-tooltip__inner {
|
|
3502
|
-
min-width: 0;
|
|
3503
|
-
word-break: break-word;
|
|
3504
|
-
overflow-wrap: anywhere;
|
|
3505
|
-
}
|
|
3650
|
+
/* small 输入体系:Figma CN/text-CN-caption(12 / 18);
|
|
3651
|
+
Select / Cascader / TreeSelect / DatePicker / InputNumber 会复用此尺寸作用域。 */
|
|
3506
3652
|
|
|
3507
|
-
.apex-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
text-overflow: clip;
|
|
3653
|
+
.apex-input.apex-sm-input {
|
|
3654
|
+
font-size: var(--apex-fontsize-12);
|
|
3655
|
+
line-height: var(--apex-fontheight-18);
|
|
3511
3656
|
}
|
|
3512
3657
|
|
|
3513
|
-
/*
|
|
3514
|
-
|
|
3515
|
-
display: block;
|
|
3516
|
-
overflow: visible;
|
|
3517
|
-
}
|
|
3658
|
+
/* textarea / 多选 tags 触发器可纵向增长:容器放开固定高度,由内部内容决定。
|
|
3659
|
+
多选组件统一通过 data-mode 声明,避免用子元素类名推断布局模式。 */
|
|
3518
3660
|
|
|
3519
|
-
.apex-
|
|
3520
|
-
|
|
3661
|
+
.apex-input:has(.apex-input__inner--textarea),
|
|
3662
|
+
.apex-input:has(> [data-mode='multiple']),
|
|
3663
|
+
.apex-input:has(> [data-mode='tags']),
|
|
3664
|
+
.apex-input[data-mode='multiple'],
|
|
3665
|
+
.apex-input[data-mode='tags'] {
|
|
3666
|
+
height: auto;
|
|
3667
|
+
min-height: var(--input-spacing-height);
|
|
3521
3668
|
}
|
|
3522
3669
|
|
|
3523
|
-
.apex-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3670
|
+
.apex-input[data-mode='multiple'] > .apex-input__inner,
|
|
3671
|
+
.apex-input[data-mode='tags'] > .apex-input__inner {
|
|
3672
|
+
align-self: auto;
|
|
3673
|
+
height: auto;
|
|
3674
|
+
min-height: var(--input-spacing-height);
|
|
3675
|
+
align-items: center;
|
|
3527
3676
|
}
|
|
3528
3677
|
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
}
|
|
3678
|
+
/* 多选 tags:上下各保留一条描边宽度;一行 Tag 仍等于基础 Input 高度。
|
|
3679
|
+
responsive 的宽度测量规则位于 _tags/tags.css,本层只处理纵向壳。 */
|
|
3532
3680
|
|
|
3533
|
-
.apex-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
.apex-tooltip[data-side='right'] .apex-tooltip__arrow {
|
|
3539
|
-
margin-top: calc(-1 * var(--tooltip-stroke-stroke));
|
|
3540
|
-
}
|
|
3541
|
-
/* ==========================================================================
|
|
3542
|
-
Input — 消费 component-tokens.css 局部变量(--input-*)
|
|
3543
|
-
作用域:.apex-input.apex-default-input / .apex-input.apex-elevated-input(见 component-tokens.css)
|
|
3544
|
-
|
|
3545
|
-
结构(两层):
|
|
3546
|
-
.apex-input ← 容器:token 作用域 + 尺寸(宽 / 高 / data-size)
|
|
3547
|
-
└─ .apex-input__inner ← 视觉:边框 / 填充 / 内边距 / 状态(hover / focus / status / disabled)
|
|
3548
|
-
状态:默认 → hover → focus-within → data-status → data-disabled(落在 __inner)
|
|
3549
|
-
正文字阶:typography.css(:where(.apex-input) → --apex-typography-body-*)
|
|
3550
|
-
========================================================================== */
|
|
3551
|
-
|
|
3552
|
-
/* Typography — 文本/标题/段落(P0 字阶 + 修饰 + 基础 ellipsis)
|
|
3553
|
-
*
|
|
3554
|
-
* 字阶:.apex-font + .apex-text-{cn|en}-*-font(component-tokens.css)→ --font-font*
|
|
3555
|
-
* locale 由 ApexProvider `data-locale` 驱动(cn / en)。
|
|
3556
|
-
* 默认样式包在 :where() 中(特异性 0),宿主组件用单层 BEM(如 .apex-tag__content)
|
|
3557
|
-
* 即可覆盖 display / color / gap,无需拼接 .apex-typography-*。
|
|
3558
|
-
* 语义修饰(type / disabled 等)保持正常特异性,显式 prop 仍优先。 */
|
|
3559
|
-
|
|
3560
|
-
.apex-typography-root {
|
|
3561
|
-
color: inherit;
|
|
3562
|
-
}
|
|
3563
|
-
|
|
3564
|
-
/* Body 字阶 token — Typography 与表单控件(.apex-input 等)共用;缺省 en,zh 由 ApexProvider data-locale 切换 */
|
|
3565
|
-
|
|
3566
|
-
:root,
|
|
3567
|
-
[data-locale='en'] {
|
|
3568
|
-
--apex-typography-body-font-size: var(--apex-fontsize-14);
|
|
3569
|
-
--apex-typography-body-font-weight: var(--apex-fontweight-400);
|
|
3570
|
-
--apex-typography-body-line-height: var(--apex-fontheight-20);
|
|
3571
|
-
--apex-typography-body-letter-spacing: var(--apex-fontspacing-1);
|
|
3572
|
-
}
|
|
3573
|
-
|
|
3574
|
-
[data-locale='cn'] {
|
|
3575
|
-
--apex-typography-body-font-size: var(--apex-fontsize-14);
|
|
3576
|
-
--apex-typography-body-font-weight: var(--apex-fontweight-400);
|
|
3577
|
-
--apex-typography-body-line-height: var(--apex-fontheight-20);
|
|
3578
|
-
--apex-typography-body-letter-spacing: var(--apex-fontspacing-0);
|
|
3579
|
-
}
|
|
3580
|
-
|
|
3581
|
-
:where(.apex-typography-body-text),
|
|
3582
|
-
:where(.apex-input) {
|
|
3583
|
-
font-size: var(--apex-typography-body-font-size);
|
|
3584
|
-
font-weight: var(--apex-typography-body-font-weight);
|
|
3585
|
-
line-height: var(--apex-typography-body-line-height);
|
|
3586
|
-
letter-spacing: var(--apex-typography-body-letter-spacing);
|
|
3587
|
-
}
|
|
3588
|
-
|
|
3589
|
-
/* 块级默认;Text/Paragraph 用 inherit 便于嵌入 Tag/Dropdown 等有色宿主 */
|
|
3590
|
-
|
|
3591
|
-
:where(.apex-typography-text),
|
|
3592
|
-
:where(.apex-typography-title),
|
|
3593
|
-
:where(.apex-typography-paragraph) {
|
|
3594
|
-
margin: 0;
|
|
3595
|
-
word-break: break-word;
|
|
3596
|
-
}
|
|
3597
|
-
|
|
3598
|
-
:where(.apex-typography-text),
|
|
3599
|
-
:where(.apex-typography-paragraph) {
|
|
3600
|
-
color: inherit;
|
|
3681
|
+
.apex-input__inner > .apex-max-tag-list {
|
|
3682
|
+
box-sizing: border-box;
|
|
3683
|
+
padding-block: var(--input-stroke-stroke);
|
|
3684
|
+
overflow-x: hidden;
|
|
3685
|
+
overflow-y: visible;
|
|
3601
3686
|
}
|
|
3602
3687
|
|
|
3603
|
-
/*
|
|
3604
|
-
|
|
3605
|
-
:where(.apex-typography-title) {
|
|
3606
|
-
color: var(--apex-text-neutral-primary);
|
|
3607
|
-
}
|
|
3688
|
+
/* ── Inner(视觉壳)─────────────────────────────────────────────────────────── */
|
|
3608
3689
|
|
|
3609
|
-
|
|
3610
|
-
:
|
|
3690
|
+
.apex-input__inner {
|
|
3691
|
+
/* 填满容器:align-self:stretch 在容器为固定 height 或仅 min-height 时都能撑满
|
|
3692
|
+
(height:100% 在容器高度不确定时会塌缩为内容高度)。 */
|
|
3693
|
+
align-self: stretch;
|
|
3694
|
+
padding-block: 0;
|
|
3695
|
+
padding-inline: var(--input-spacing-padding-x);
|
|
3696
|
+
flex: 1 1 auto;
|
|
3697
|
+
width: 100%;
|
|
3611
3698
|
display: inline-flex;
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
:
|
|
3619
|
-
|
|
3699
|
+
align-items: center;
|
|
3700
|
+
gap: var(--input-spacing-gap-x);
|
|
3701
|
+
box-sizing: border-box;
|
|
3702
|
+
border-radius: var(--input-radius-radius);
|
|
3703
|
+
border-width: var(--input-stroke-stroke);
|
|
3704
|
+
border-style: solid;
|
|
3705
|
+
background-color: var(--input-fill-default);
|
|
3706
|
+
border-color: var(--input-stroke-default);
|
|
3707
|
+
color: var(--input-text-filled-default);
|
|
3708
|
+
/* CSS 内部变量:供 :-webkit-autofill 的 text-fill / caret 跟随当前状态色。
|
|
3709
|
+
非 Design Token,不写入 theme。 */
|
|
3710
|
+
--input-autofill-text-color: var(--input-text-filled-default);
|
|
3711
|
+
transition:
|
|
3712
|
+
color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
3713
|
+
background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
3714
|
+
border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
3620
3715
|
}
|
|
3621
3716
|
|
|
3622
|
-
/*
|
|
3623
|
-
|
|
3624
|
-
:where(.apex-typography.apex-font) {
|
|
3625
|
-
font-size: var(--font-fontsize);
|
|
3626
|
-
font-weight: var(--font-fontweight);
|
|
3627
|
-
line-height: var(--font-fontheight);
|
|
3628
|
-
letter-spacing: var(--font-fontspacing);
|
|
3629
|
-
}
|
|
3717
|
+
/* 清空按钮仅 hover 显示,保留占位以避免文字与后缀跳动。 */
|
|
3630
3718
|
|
|
3631
|
-
|
|
3632
|
-
|
|
3719
|
+
.apex-input[data-slot='input-container'] .apex-clear {
|
|
3720
|
+
visibility: hidden;
|
|
3721
|
+
pointer-events: none;
|
|
3633
3722
|
}
|
|
3634
3723
|
|
|
3635
|
-
|
|
3636
|
-
|
|
3724
|
+
.apex-input[data-slot='input-container']:hover
|
|
3725
|
+
> .apex-input__inner:not([data-disabled]):not([data-readonly])
|
|
3726
|
+
.apex-clear {
|
|
3727
|
+
visibility: visible;
|
|
3728
|
+
pointer-events: auto;
|
|
3637
3729
|
}
|
|
3638
3730
|
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
color: var(--
|
|
3731
|
+
.apex-input__inner:hover:not([data-disabled]):not([data-readonly]) {
|
|
3732
|
+
background-color: var(--input-fill-hover);
|
|
3733
|
+
border-color: var(--input-stroke-hover);
|
|
3734
|
+
color: var(--input-text-filled-hover);
|
|
3735
|
+
--input-autofill-text-color: var(--input-text-filled-hover);
|
|
3643
3736
|
}
|
|
3644
3737
|
|
|
3645
|
-
.apex-
|
|
3646
|
-
color: var(--
|
|
3738
|
+
.apex-input__inner:focus-within:not([data-disabled]):not([data-readonly]) {
|
|
3739
|
+
background-color: var(--input-fill-focused);
|
|
3740
|
+
border-color: var(--input-stroke-focused);
|
|
3741
|
+
color: var(--input-text-filled-focused);
|
|
3742
|
+
--input-autofill-text-color: var(--input-text-filled-focused);
|
|
3647
3743
|
}
|
|
3648
3744
|
|
|
3649
|
-
.apex-
|
|
3650
|
-
color: var(--
|
|
3745
|
+
.apex-input__inner[data-status='error']:not([data-disabled]):not([data-readonly]) {
|
|
3746
|
+
background-color: var(--input-fill-error);
|
|
3747
|
+
border-color: var(--input-stroke-error);
|
|
3748
|
+
color: var(--input-text-filled-error);
|
|
3749
|
+
--input-autofill-text-color: var(--input-text-filled-error);
|
|
3651
3750
|
}
|
|
3652
3751
|
|
|
3653
|
-
.apex-
|
|
3654
|
-
color: var(--
|
|
3752
|
+
.apex-input__inner[data-status='loading']:not([data-disabled]):not([data-readonly]) {
|
|
3753
|
+
background-color: var(--input-fill-disabled);
|
|
3754
|
+
border-color: var(--input-stroke-disabled);
|
|
3755
|
+
color: var(--input-text-filled-disabled);
|
|
3756
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
3655
3757
|
}
|
|
3656
3758
|
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3759
|
+
.apex-input__inner[data-disabled] {
|
|
3760
|
+
background-color: var(--input-fill-disabled);
|
|
3761
|
+
border-color: var(--input-stroke-disabled);
|
|
3762
|
+
color: var(--input-text-filled-disabled);
|
|
3763
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
3764
|
+
cursor: not-allowed;
|
|
3661
3765
|
}
|
|
3662
3766
|
|
|
3663
|
-
.apex-
|
|
3664
|
-
|
|
3767
|
+
.apex-input__inner[data-readonly]:not([data-disabled]) {
|
|
3768
|
+
background-color: var(--input-fill-disabled);
|
|
3769
|
+
border-color: var(--input-stroke-disabled);
|
|
3770
|
+
color: var(--input-text-filled-disabled);
|
|
3771
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
3772
|
+
cursor: default;
|
|
3665
3773
|
}
|
|
3666
3774
|
|
|
3667
|
-
.apex-
|
|
3668
|
-
|
|
3669
|
-
|
|
3775
|
+
.apex-input__inner[data-readonly]:not([data-disabled]):hover,
|
|
3776
|
+
.apex-input__inner[data-readonly]:not([data-disabled]):focus-within {
|
|
3777
|
+
background-color: var(--input-fill-disabled);
|
|
3778
|
+
border-color: var(--input-stroke-disabled);
|
|
3779
|
+
color: var(--input-text-filled-disabled);
|
|
3780
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
3670
3781
|
}
|
|
3671
3782
|
|
|
3672
|
-
|
|
3673
|
-
text-decoration: line-through;
|
|
3674
|
-
text-decoration-color: var(--apex-stroke-neutral-quaternary);
|
|
3675
|
-
}
|
|
3783
|
+
/* ── Textarea ────────────────────────────────────────────────────────────── */
|
|
3676
3784
|
|
|
3677
|
-
.apex-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3785
|
+
.apex-input__inner--textarea {
|
|
3786
|
+
height: auto;
|
|
3787
|
+
min-height: var(--apex-size-80);
|
|
3788
|
+
max-height: var(--input-spacing-height-max);
|
|
3789
|
+
padding-block: var(--input-spacing-padding-y);
|
|
3790
|
+
align-items: flex-start;
|
|
3681
3791
|
}
|
|
3682
3792
|
|
|
3683
|
-
.apex-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
padding: 0 var(--apex-spacing-4);
|
|
3687
|
-
border-radius: var(--apex-radius-4);
|
|
3688
|
-
background-color: var(--apex-fill-neutral-secondary);
|
|
3793
|
+
.apex-input__inner--textarea .apex-input__prefix,
|
|
3794
|
+
.apex-input__inner--textarea .apex-input__suffix {
|
|
3795
|
+
padding-top: calc(var(--input-spacing-height) / 4 - var(--input-spacing-gap-x));
|
|
3689
3796
|
}
|
|
3690
3797
|
|
|
3691
|
-
|
|
3692
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
3693
|
-
font-size: 0.85em;
|
|
3694
|
-
padding: var(--apex-spacing-2) var(--apex-spacing-4);
|
|
3695
|
-
border: 1px solid var(--apex-stroke-neutral-quaternary);
|
|
3696
|
-
border-radius: var(--apex-radius-4);
|
|
3697
|
-
box-shadow: inset 0 -1px 0 var(--apex-stroke-neutral-quaternary);
|
|
3698
|
-
}
|
|
3798
|
+
/* body:上排 field(+clear) / 下排 count;clear 浮在 field 内、滚动条左侧 */
|
|
3699
3799
|
|
|
3700
|
-
.apex-
|
|
3701
|
-
|
|
3702
|
-
|
|
3800
|
+
.apex-input__textarea-body {
|
|
3801
|
+
display: flex;
|
|
3802
|
+
flex: 1 1 auto;
|
|
3803
|
+
flex-direction: column;
|
|
3804
|
+
align-items: stretch;
|
|
3805
|
+
gap: var(--input-spacing-char-counter-gap, var(--input-spacing-gap-x));
|
|
3806
|
+
min-width: 0;
|
|
3807
|
+
width: 100%;
|
|
3808
|
+
align-self: stretch;
|
|
3703
3809
|
}
|
|
3704
3810
|
|
|
3705
|
-
.apex-
|
|
3811
|
+
.apex-input__textarea-main {
|
|
3812
|
+
position: relative;
|
|
3813
|
+
flex: 1 1 auto;
|
|
3706
3814
|
min-width: 0;
|
|
3815
|
+
min-height: 0;
|
|
3816
|
+
width: 100%;
|
|
3707
3817
|
}
|
|
3708
3818
|
|
|
3709
|
-
.apex-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3819
|
+
.apex-input__inner--textarea .apex-input__field {
|
|
3820
|
+
box-sizing: border-box;
|
|
3821
|
+
display: block;
|
|
3822
|
+
width: 100%;
|
|
3823
|
+
min-height: calc(var(--input-spacing-height) - var(--input-spacing-gap-x) * 2);
|
|
3824
|
+
/* Figma 无拖拽把手;开启 resize 会在 field/count 交界挤成异常小的角标 */
|
|
3825
|
+
resize: none;
|
|
3826
|
+
overflow-x: hidden;
|
|
3827
|
+
overflow-y: auto;
|
|
3828
|
+
scrollbar-width: thin;
|
|
3714
3829
|
}
|
|
3715
3830
|
|
|
3716
|
-
|
|
3717
|
-
order: -1;
|
|
3718
|
-
}
|
|
3831
|
+
/* 有 clear 时:正文右侧让出 clear + 滚动条宽度,clear 落在滚动条左侧 */
|
|
3719
3832
|
|
|
3720
|
-
.apex-
|
|
3721
|
-
|
|
3722
|
-
border: none;
|
|
3723
|
-
background: transparent;
|
|
3724
|
-
color: var(--apex-text-neutral-secondary);
|
|
3725
|
-
cursor: pointer;
|
|
3726
|
-
font-size: var(--apex-size-12);
|
|
3727
|
-
padding: 0;
|
|
3728
|
-
line-height: 1;
|
|
3833
|
+
.apex-input__textarea-main:has(> .apex-clear) .apex-input__field {
|
|
3834
|
+
padding-right: calc(var(--input-icon-icon) + var(--input-spacing-gap-x) + var(--input-icon-icon));
|
|
3729
3835
|
}
|
|
3730
3836
|
|
|
3731
|
-
.apex-
|
|
3732
|
-
|
|
3837
|
+
.apex-input__textarea-main > .apex-clear {
|
|
3838
|
+
position: absolute;
|
|
3839
|
+
top: 0;
|
|
3840
|
+
/* 与上方 padding 中预留的滚动条带对齐:贴在滚动条左侧 */
|
|
3841
|
+
right: var(--input-icon-icon);
|
|
3842
|
+
z-index: 1;
|
|
3733
3843
|
}
|
|
3734
3844
|
|
|
3735
|
-
.apex-
|
|
3736
|
-
|
|
3737
|
-
outline-offset: 2px;
|
|
3845
|
+
.apex-input__inner--textarea .apex-input__count {
|
|
3846
|
+
align-self: flex-end;
|
|
3738
3847
|
}
|
|
3739
3848
|
|
|
3740
|
-
/*
|
|
3849
|
+
/* ── Field ───────────────────────────────────────────────────────────────── */
|
|
3741
3850
|
|
|
3742
|
-
.apex-
|
|
3743
|
-
|
|
3744
|
-
/* 允许在 flex/table 等宿主内收缩;避免 min-width:auto 顶住内容宽 */
|
|
3851
|
+
.apex-input__field {
|
|
3852
|
+
flex: 1;
|
|
3745
3853
|
min-width: 0;
|
|
3746
|
-
max-width: 100%;
|
|
3747
|
-
}
|
|
3748
|
-
|
|
3749
|
-
.apex-typography--ellipsis-single .apex-typography__content:not([data-slot='typography-ellipsis-suffix']) {
|
|
3750
|
-
display: block;
|
|
3751
3854
|
width: 100%;
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3855
|
+
margin: 0;
|
|
3856
|
+
padding: 0;
|
|
3857
|
+
border: none;
|
|
3858
|
+
background: transparent;
|
|
3859
|
+
outline: none;
|
|
3860
|
+
font: inherit;
|
|
3861
|
+
line-height: inherit;
|
|
3862
|
+
color: inherit;
|
|
3757
3863
|
}
|
|
3758
3864
|
|
|
3759
|
-
.apex-
|
|
3760
|
-
|
|
3761
|
-
align-items: baseline;
|
|
3762
|
-
max-width: 100%;
|
|
3763
|
-
vertical-align: bottom;
|
|
3865
|
+
.apex-input__field::placeholder {
|
|
3866
|
+
color: var(--input-text-placeholder-default);
|
|
3764
3867
|
}
|
|
3765
3868
|
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3869
|
+
/* 浏览器自动填充(历史记录 / 密码管理器):
|
|
3870
|
+
原生 input 在 :-webkit-autofill 下会被浏览器强制涂上自己的背景色(淡黄/淡蓝),
|
|
3871
|
+
由于 .apex-input__field 本身是透明的,这层原生底色会以一个"原始输入框"的样子
|
|
3872
|
+
叠在 .apex-input__inner 圆角包裹层内、且长时间不消失。
|
|
3873
|
+
处理:保留自动填充功能本身,仅抹掉这层原生底色——
|
|
3874
|
+
· background-clip: text 把填充底色裁剪到文字范围(视觉上等同透明);
|
|
3875
|
+
· 超长 transition 阻止浏览器把背景色真正绘制出来(兜底,跨浏览器更稳);
|
|
3876
|
+
· text-fill-color / caret-color 使用内部变量 --input-autofill-text-color,
|
|
3877
|
+
跟随 .apex-input__inner 当前状态(default / hover / focus / error / …)。 */
|
|
3774
3878
|
|
|
3775
|
-
|
|
3879
|
+
.apex-input__field:is(:autofill, :-webkit-autofill),
|
|
3880
|
+
.apex-input__field:is(:autofill, :-webkit-autofill):hover,
|
|
3881
|
+
.apex-input__field:is(:autofill, :-webkit-autofill):focus,
|
|
3882
|
+
.apex-input__field:is(:autofill, :-webkit-autofill):active {
|
|
3883
|
+
-webkit-background-clip: text;
|
|
3884
|
+
background-clip: text;
|
|
3885
|
+
-webkit-text-fill-color: var(--input-autofill-text-color);
|
|
3886
|
+
caret-color: var(--input-autofill-text-color);
|
|
3887
|
+
transition: background-color 86400s ease-in-out 0s;
|
|
3888
|
+
}
|
|
3776
3889
|
|
|
3777
|
-
.apex-
|
|
3778
|
-
|
|
3779
|
-
/* 宽度由宿主约束,避免 inline-flex 随内容伸缩导致测量反馈环 */
|
|
3780
|
-
width: 100%;
|
|
3890
|
+
.apex-input__inner:hover:not([data-disabled]):not([data-readonly]) .apex-input__field::placeholder {
|
|
3891
|
+
color: var(--input-text-placeholder-hover);
|
|
3781
3892
|
}
|
|
3782
3893
|
|
|
3783
|
-
.apex-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
position: relative;
|
|
3787
|
-
width: 100%;
|
|
3788
|
-
max-width: 100%;
|
|
3789
|
-
min-width: 0;
|
|
3790
|
-
flex: 1 1 auto;
|
|
3791
|
-
white-space: nowrap;
|
|
3792
|
-
overflow: hidden;
|
|
3894
|
+
.apex-input__inner[data-status='error']:not([data-disabled]):not([data-readonly])
|
|
3895
|
+
.apex-input__field::placeholder {
|
|
3896
|
+
color: var(--input-text-placeholder-error);
|
|
3793
3897
|
}
|
|
3794
3898
|
|
|
3795
|
-
.apex-
|
|
3796
|
-
.apex-
|
|
3797
|
-
|
|
3798
|
-
flex: 0 0 auto;
|
|
3899
|
+
.apex-input__inner[data-status='loading']:not([data-disabled]):not([data-readonly])
|
|
3900
|
+
.apex-input__field::placeholder {
|
|
3901
|
+
color: var(--input-text-placeholder-disabled);
|
|
3799
3902
|
}
|
|
3800
3903
|
|
|
3801
|
-
.apex-
|
|
3802
|
-
|
|
3904
|
+
.apex-input__inner[data-disabled] .apex-input__field {
|
|
3905
|
+
cursor: not-allowed;
|
|
3803
3906
|
}
|
|
3804
3907
|
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
.apex-typography--ellipsis-multi .apex-typography__content {
|
|
3808
|
-
overflow: hidden;
|
|
3809
|
-
white-space: normal;
|
|
3908
|
+
.apex-input__inner[data-disabled] .apex-input__field::placeholder {
|
|
3909
|
+
color: var(--input-text-placeholder-disabled);
|
|
3810
3910
|
}
|
|
3811
3911
|
|
|
3812
|
-
.apex-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
gap: 0;
|
|
3816
|
-
overflow: visible;
|
|
3912
|
+
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field {
|
|
3913
|
+
cursor: default;
|
|
3914
|
+
color: var(--input-text-filled-disabled);
|
|
3817
3915
|
}
|
|
3818
3916
|
|
|
3819
|
-
.apex-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
overflow: hidden;
|
|
3823
|
-
min-width: 0;
|
|
3824
|
-
flex: 1 1 auto;
|
|
3917
|
+
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field::placeholder {
|
|
3918
|
+
color: var(--input-text-placeholder-disabled);
|
|
3825
3919
|
}
|
|
3826
3920
|
|
|
3827
|
-
|
|
3921
|
+
/* ── Prefix / suffix / count ─────────────────────────────────────────────── */
|
|
3922
|
+
|
|
3923
|
+
.apex-input__prefix,
|
|
3924
|
+
.apex-input__suffix {
|
|
3925
|
+
display: inline-flex;
|
|
3828
3926
|
flex-shrink: 0;
|
|
3927
|
+
align-items: center;
|
|
3928
|
+
justify-content: center;
|
|
3929
|
+
color: var(--input-icon-default);
|
|
3829
3930
|
}
|
|
3830
3931
|
|
|
3831
|
-
|
|
3832
|
-
.apex-typography--ellipsis-single:not(.apex-typography--ellipsis-suffix) .apex-typography__ellipsis-suffix {
|
|
3833
|
-
margin-inline-start: var(--apex-spacing-2);
|
|
3834
|
-
}
|
|
3932
|
+
/* Icons inherit prefix/suffix color (currentColor on SVG) */
|
|
3835
3933
|
|
|
3836
|
-
.apex-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3934
|
+
.apex-input__prefix svg,
|
|
3935
|
+
.apex-input__suffix svg{
|
|
3936
|
+
display: block;
|
|
3937
|
+
flex-shrink: 0;
|
|
3938
|
+
width: var(--input-icon-icon);
|
|
3939
|
+
height: var(--input-icon-icon);
|
|
3840
3940
|
color: inherit;
|
|
3841
|
-
cursor: pointer;
|
|
3842
|
-
font-size: inherit;
|
|
3843
|
-
padding: 0;
|
|
3844
|
-
margin-inline-start: var(--apex-spacing-4);
|
|
3845
3941
|
}
|
|
3846
3942
|
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
display: inline;
|
|
3943
|
+
.apex-input__inner:hover:not([data-disabled]):not([data-readonly]) .apex-input__prefix,
|
|
3944
|
+
.apex-input__inner:hover:not([data-disabled]):not([data-readonly]) .apex-input__suffix {
|
|
3945
|
+
color: var(--input-icon-hover);
|
|
3851
3946
|
}
|
|
3852
3947
|
|
|
3853
|
-
.apex-
|
|
3854
|
-
|
|
3855
|
-
|
|
3948
|
+
.apex-input__inner:focus-within:not([data-disabled]):not([data-readonly]) .apex-input__prefix,
|
|
3949
|
+
.apex-input__inner:focus-within:not([data-disabled]):not([data-readonly]) .apex-input__suffix {
|
|
3950
|
+
color: var(--input-icon-focused);
|
|
3856
3951
|
}
|
|
3857
3952
|
|
|
3858
|
-
.apex-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
min-height: unset;
|
|
3862
|
-
height: auto;
|
|
3863
|
-
font: inherit;
|
|
3864
|
-
color: inherit;
|
|
3865
|
-
box-shadow: none;
|
|
3953
|
+
.apex-input__inner[data-status='error']:not([data-disabled]):not([data-readonly]) .apex-input__prefix,
|
|
3954
|
+
.apex-input__inner[data-status='error']:not([data-disabled]):not([data-readonly]) .apex-input__suffix {
|
|
3955
|
+
color: var(--input-icon-error);
|
|
3866
3956
|
}
|
|
3867
3957
|
|
|
3868
|
-
.apex-
|
|
3869
|
-
.apex-
|
|
3870
|
-
|
|
3871
|
-
color: inherit;
|
|
3872
|
-
box-shadow: none;
|
|
3958
|
+
.apex-input__inner[data-status='loading']:not([data-disabled]):not([data-readonly]) .apex-input__prefix,
|
|
3959
|
+
.apex-input__inner[data-status='loading']:not([data-disabled]):not([data-readonly]) .apex-input__suffix {
|
|
3960
|
+
color: var(--input-icon-disabled);
|
|
3873
3961
|
}
|
|
3874
3962
|
|
|
3875
|
-
|
|
3963
|
+
.apex-input__inner[data-disabled] .apex-input__prefix,
|
|
3964
|
+
.apex-input__inner[data-disabled] .apex-input__suffix {
|
|
3965
|
+
color: var(--input-icon-disabled);
|
|
3966
|
+
}
|
|
3876
3967
|
|
|
3877
|
-
|
|
3878
|
-
|
|
3968
|
+
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__prefix,
|
|
3969
|
+
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__suffix {
|
|
3970
|
+
color: var(--input-icon-disabled);
|
|
3971
|
+
}
|
|
3879
3972
|
|
|
3880
|
-
|
|
3973
|
+
.apex-input__count {
|
|
3881
3974
|
display: inline-flex;
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3975
|
+
flex-shrink: 0;
|
|
3976
|
+
align-items: flex-end;
|
|
3977
|
+
gap: var(--input-spacing-char-counter-gap, var(--input-spacing-gap-x));
|
|
3978
|
+
white-space: nowrap;
|
|
3979
|
+
font-size: 12px;
|
|
3980
|
+
line-height: 18px;
|
|
3981
|
+
color: var(--apex-text-neutral-alpha-primary);
|
|
3885
3982
|
}
|
|
3886
3983
|
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
.apex-input.apex-sm-input {
|
|
3891
|
-
font-size: var(--apex-fontsize-12);
|
|
3892
|
-
line-height: var(--apex-fontheight-18);
|
|
3984
|
+
.apex-input__count[data-at-limit] .apex-input__count-current {
|
|
3985
|
+
color: var(--apex-text-error-alpha-primary);
|
|
3893
3986
|
}
|
|
3894
3987
|
|
|
3895
|
-
/*
|
|
3896
|
-
多选组件统一通过 data-mode 声明,避免用子元素类名推断布局模式。 */
|
|
3988
|
+
/* 自定义 count.show 未渲染 __count-current 时,整段计数仍可告警 */
|
|
3897
3989
|
|
|
3898
|
-
.apex-
|
|
3899
|
-
|
|
3900
|
-
.apex-input:has(> [data-mode='tags']),
|
|
3901
|
-
.apex-input[data-mode='multiple'],
|
|
3902
|
-
.apex-input[data-mode='tags'] {
|
|
3903
|
-
height: auto;
|
|
3904
|
-
min-height: var(--input-spacing-height);
|
|
3990
|
+
.apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
3991
|
+
color: var(--apex-text-error-alpha-primary);
|
|
3905
3992
|
}
|
|
3906
3993
|
|
|
3907
|
-
.apex-
|
|
3908
|
-
|
|
3909
|
-
align-self: auto;
|
|
3910
|
-
height: auto;
|
|
3911
|
-
min-height: var(--input-spacing-height);
|
|
3912
|
-
align-items: center;
|
|
3994
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count {
|
|
3995
|
+
color: var(--input-text-filled-disabled);
|
|
3913
3996
|
}
|
|
3914
3997
|
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
.apex-input__inner > .apex-max-tag-list {
|
|
3919
|
-
box-sizing: border-box;
|
|
3920
|
-
padding-block: var(--input-stroke-stroke);
|
|
3921
|
-
overflow-x: hidden;
|
|
3922
|
-
overflow-y: visible;
|
|
3998
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
3999
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
4000
|
+
color: var(--input-text-filled-disabled);
|
|
3923
4001
|
}
|
|
4002
|
+
/* ==========================================================================
|
|
4003
|
+
Clear — 圆形 X 清除按钮
|
|
4004
|
+
作用域:.apex-clear.apex-default-clear(见 component-tokens.css --clear-*)
|
|
4005
|
+
用于 Input / Select / TreeSelect / Cascader / DatePicker 等 allowClear 场景
|
|
4006
|
+
========================================================================== */
|
|
3924
4007
|
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
.apex-input__inner {
|
|
3928
|
-
/* 填满容器:align-self:stretch 在容器为固定 height 或仅 min-height 时都能撑满
|
|
3929
|
-
(height:100% 在容器高度不确定时会塌缩为内容高度)。 */
|
|
3930
|
-
align-self: stretch;
|
|
3931
|
-
padding-block: 0;
|
|
3932
|
-
padding-inline: var(--input-spacing-padding-x);
|
|
3933
|
-
flex: 1 1 auto;
|
|
3934
|
-
width: 100%;
|
|
4008
|
+
.apex-clear {
|
|
3935
4009
|
display: inline-flex;
|
|
4010
|
+
flex-shrink: 0;
|
|
3936
4011
|
align-items: center;
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
border
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
4012
|
+
justify-content: center;
|
|
4013
|
+
margin: 0;
|
|
4014
|
+
padding: 0;
|
|
4015
|
+
border: none;
|
|
4016
|
+
background-color: var(--clear-fill-default);
|
|
4017
|
+
color: var(--clear-icon-default);
|
|
4018
|
+
font: inherit;
|
|
4019
|
+
border-radius: var(--apex-radius-999);
|
|
4020
|
+
cursor: pointer;
|
|
4021
|
+
/* Figma:Clear Button 恒为 14×14,与同排下拉箭头(--input-icon-icon,md/lg 16px)
|
|
4022
|
+
不同轨。消费方可用 --clear-size-size 覆盖;不要再挂回 --input-icon-icon,
|
|
4023
|
+
否则 md/lg 下会被拉到 16px。 */
|
|
4024
|
+
width: var(--clear-size-size, var(--apex-icon-14));
|
|
4025
|
+
height: var(--clear-size-size, var(--apex-icon-14));
|
|
3952
4026
|
}
|
|
3953
4027
|
|
|
3954
|
-
|
|
4028
|
+
.apex-clear__icon,
|
|
4029
|
+
.apex-clear svg {
|
|
4030
|
+
display: block;
|
|
4031
|
+
flex-shrink: 0;
|
|
4032
|
+
width: 50%;
|
|
4033
|
+
height: 50%;
|
|
4034
|
+
color: inherit;
|
|
4035
|
+
}
|
|
3955
4036
|
|
|
3956
|
-
.apex-
|
|
3957
|
-
|
|
3958
|
-
|
|
4037
|
+
.apex-clear:hover:not(:disabled) {
|
|
4038
|
+
color: var(--clear-icon-hover);
|
|
4039
|
+
background-color: var(--clear-fill-hover);
|
|
3959
4040
|
}
|
|
3960
4041
|
|
|
3961
|
-
.apex-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
visibility: visible;
|
|
3965
|
-
pointer-events: auto;
|
|
4042
|
+
.apex-clear:active:not(:disabled) {
|
|
4043
|
+
color: var(--clear-icon-active);
|
|
4044
|
+
background-color: var(--clear-fill-active);
|
|
3966
4045
|
}
|
|
3967
4046
|
|
|
3968
|
-
.apex-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
color: var(--
|
|
3972
|
-
|
|
4047
|
+
.apex-clear:disabled,
|
|
4048
|
+
.apex-clear[data-disabled] {
|
|
4049
|
+
color: var(--clear-icon-disabled);
|
|
4050
|
+
background-color: var(--clear-fill-disabled);
|
|
4051
|
+
cursor: not-allowed;
|
|
3973
4052
|
}
|
|
3974
4053
|
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
color: var(--
|
|
3979
|
-
|
|
4054
|
+
/* 父级 Input 状态透传 */
|
|
4055
|
+
.apex-input__inner[data-status='loading']:not([data-disabled]) .apex-clear:not(:disabled) {
|
|
4056
|
+
color: var(--clear-icon-loading);
|
|
4057
|
+
background-color: var(--clear-fill-loading);
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
.apex-input__inner[data-disabled] .apex-clear {
|
|
4061
|
+
color: var(--clear-icon-disabled);
|
|
4062
|
+
background-color: var(--clear-fill-disabled);
|
|
4063
|
+
cursor: not-allowed;
|
|
4064
|
+
}
|
|
4065
|
+
/* ==========================================================================
|
|
4066
|
+
Avatar — 消费 component-tokens.css 局部变量(--avatar-*)
|
|
4067
|
+
Block: .apex-avatar / .apex-avatar-group
|
|
4068
|
+
Elements: .apex-avatar__image / .apex-avatar__fallback / .apex-avatar__inner
|
|
4069
|
+
Modifiers: .apex-avatar--large / --medium / --small / --circle / --square
|
|
4070
|
+
========================================================================== */
|
|
4071
|
+
|
|
4072
|
+
:where(.apex-avatar) {
|
|
4073
|
+
display: inline-flex;
|
|
4074
|
+
align-items: center;
|
|
4075
|
+
justify-content: center;
|
|
4076
|
+
position: relative;
|
|
4077
|
+
flex-shrink: 0;
|
|
4078
|
+
box-sizing: border-box;
|
|
4079
|
+
overflow: hidden;
|
|
4080
|
+
background-color: var(--avatar-fill-default);
|
|
4081
|
+
color: var(--avatar-text-default);
|
|
4082
|
+
text-align: center;
|
|
4083
|
+
vertical-align: middle;
|
|
4084
|
+
user-select: none;
|
|
4085
|
+
font-weight: 500;
|
|
4086
|
+
line-height: 1;
|
|
3980
4087
|
}
|
|
3981
4088
|
|
|
3982
|
-
|
|
3983
|
-
background-color: var(--input-fill-error);
|
|
3984
|
-
border-color: var(--input-stroke-error);
|
|
3985
|
-
color: var(--input-text-filled-error);
|
|
3986
|
-
--input-autofill-text-color: var(--input-text-filled-error);
|
|
3987
|
-
}
|
|
4089
|
+
/* ── Size(由 apex-sm/md/lg-avatar 注入 --avatar-spacing-width/height;md 源数据为 *-md) */
|
|
3988
4090
|
|
|
3989
|
-
.apex-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
--
|
|
4091
|
+
.apex-avatar--large,
|
|
4092
|
+
.apex-avatar--medium,
|
|
4093
|
+
.apex-avatar--small {
|
|
4094
|
+
width: var(--avatar-spacing-width, var(--avatar-spacing-width-md));
|
|
4095
|
+
height: var(--avatar-spacing-height, var(--avatar-spacing-height-md));
|
|
4096
|
+
font-size: calc(var(--avatar-spacing-height, var(--avatar-spacing-height-md)) / 2);
|
|
3994
4097
|
}
|
|
3995
4098
|
|
|
3996
|
-
.apex-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
--
|
|
4001
|
-
cursor: not-allowed;
|
|
4099
|
+
.apex-avatar--large {
|
|
4100
|
+
--avatar-spacing-width: var(--apex-size-64);
|
|
4101
|
+
--avatar-spacing-height: var(--apex-size-64);
|
|
4102
|
+
--avatar-radius-radius: var(--apex-radius-12);
|
|
4103
|
+
--avatar-icon-icon: var(--apex-icon-40);
|
|
4002
4104
|
}
|
|
4003
4105
|
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
cursor: default;
|
|
4106
|
+
/* ── Shape:circle 用 50%;square 用尺寸作用域 --avatar-radius-radius ───────────── */
|
|
4107
|
+
|
|
4108
|
+
.apex-avatar--circle,
|
|
4109
|
+
.apex-avatar[data-shape='circle'] {
|
|
4110
|
+
border-radius: 50%;
|
|
4010
4111
|
}
|
|
4011
4112
|
|
|
4012
|
-
.apex-
|
|
4013
|
-
.apex-
|
|
4014
|
-
|
|
4015
|
-
border-color: var(--input-stroke-default);
|
|
4016
|
-
color: var(--input-text-filled-default);
|
|
4017
|
-
--input-autofill-text-color: var(--input-text-filled-default);
|
|
4113
|
+
.apex-avatar--square,
|
|
4114
|
+
.apex-avatar[data-shape='square'] {
|
|
4115
|
+
border-radius: var(--avatar-radius-radius);
|
|
4018
4116
|
}
|
|
4019
4117
|
|
|
4020
|
-
/* ──
|
|
4118
|
+
/* ── Image / Fallback ────────────────────────────────────────────────────── */
|
|
4021
4119
|
|
|
4022
|
-
.apex-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
align-items: flex-start;
|
|
4120
|
+
.apex-avatar__image {
|
|
4121
|
+
width: 100%;
|
|
4122
|
+
height: 100%;
|
|
4123
|
+
object-fit: cover;
|
|
4124
|
+
display: block;
|
|
4028
4125
|
}
|
|
4029
4126
|
|
|
4030
|
-
.apex-
|
|
4031
|
-
|
|
4032
|
-
padding-top: calc(var(--input-spacing-height) / 4 - var(--input-spacing-gap-x));
|
|
4127
|
+
.apex-avatar[data-gray] .apex-avatar__image {
|
|
4128
|
+
filter: grayscale(1);
|
|
4033
4129
|
}
|
|
4034
4130
|
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
flex: 1 1 auto;
|
|
4040
|
-
flex-direction: column;
|
|
4041
|
-
align-items: stretch;
|
|
4042
|
-
gap: var(--input-spacing-char-counter-gap, var(--input-spacing-gap-x));
|
|
4043
|
-
min-width: 0;
|
|
4131
|
+
.apex-avatar__fallback {
|
|
4132
|
+
display: inline-flex;
|
|
4133
|
+
align-items: center;
|
|
4134
|
+
justify-content: center;
|
|
4044
4135
|
width: 100%;
|
|
4045
|
-
|
|
4136
|
+
height: 100%;
|
|
4137
|
+
line-height: 1;
|
|
4138
|
+
color: var(--avatar-icon-default);
|
|
4046
4139
|
}
|
|
4047
4140
|
|
|
4048
|
-
.apex-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
width: 100%;
|
|
4141
|
+
.apex-avatar__inner {
|
|
4142
|
+
display: inline-block;
|
|
4143
|
+
transform-origin: center center;
|
|
4144
|
+
white-space: nowrap;
|
|
4145
|
+
font-size: inherit;
|
|
4054
4146
|
}
|
|
4055
4147
|
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
min-height: calc(var(--input-spacing-height) - var(--input-spacing-gap-x) * 2);
|
|
4061
|
-
/* Figma 无拖拽把手;开启 resize 会在 field/count 交界挤成异常小的角标 */
|
|
4062
|
-
resize: none;
|
|
4063
|
-
overflow-x: hidden;
|
|
4064
|
-
overflow-y: auto;
|
|
4065
|
-
scrollbar-width: thin;
|
|
4148
|
+
/* icon 槽位字号由尺寸作用域 --avatar-icon-icon 注入 */
|
|
4149
|
+
.apex-avatar__fallback > svg,
|
|
4150
|
+
.apex-avatar__fallback > [data-slot='avatar-icon'] {
|
|
4151
|
+
font-size: var(--avatar-icon-icon);
|
|
4066
4152
|
}
|
|
4067
4153
|
|
|
4068
|
-
/*
|
|
4154
|
+
/* ── AvatarGroup ─────────────────────────────────────────────────────────── */
|
|
4069
4155
|
|
|
4070
|
-
.apex-
|
|
4071
|
-
|
|
4156
|
+
.apex-avatar-group {
|
|
4157
|
+
display: inline-flex;
|
|
4158
|
+
align-items: center;
|
|
4072
4159
|
}
|
|
4073
4160
|
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
right: var(--input-icon-icon);
|
|
4079
|
-
z-index: 1;
|
|
4161
|
+
/* TODO(tokens):UI 暂未交付 group overlap / border / overflow 配色,先用合理默认值 */
|
|
4162
|
+
.apex-avatar-group .apex-avatar[data-in-group] {
|
|
4163
|
+
margin-inline-start: calc(var(--apex-spacing-6) * -1);
|
|
4164
|
+
border: var(--apex-border-1) solid var(--apex-fill-neutral-primary);
|
|
4080
4165
|
}
|
|
4081
4166
|
|
|
4082
|
-
.apex-
|
|
4083
|
-
|
|
4167
|
+
.apex-avatar-group[data-size='small'] .apex-avatar[data-in-group] {
|
|
4168
|
+
margin-inline-start: calc(var(--apex-spacing-4) * -1);
|
|
4084
4169
|
}
|
|
4085
4170
|
|
|
4086
|
-
|
|
4171
|
+
.apex-avatar-group[data-size='large'] .apex-avatar[data-in-group] {
|
|
4172
|
+
margin-inline-start: calc(var(--apex-spacing-6) * -1);
|
|
4173
|
+
}
|
|
4087
4174
|
|
|
4088
|
-
.apex-
|
|
4089
|
-
|
|
4090
|
-
min-width: 0;
|
|
4091
|
-
width: 100%;
|
|
4092
|
-
margin: 0;
|
|
4093
|
-
padding: 0;
|
|
4094
|
-
border: none;
|
|
4095
|
-
background: transparent;
|
|
4096
|
-
outline: none;
|
|
4097
|
-
font: inherit;
|
|
4098
|
-
line-height: inherit;
|
|
4099
|
-
color: inherit;
|
|
4175
|
+
.apex-avatar-group .apex-avatar[data-in-group]:first-child {
|
|
4176
|
+
margin-inline-start: 0;
|
|
4100
4177
|
}
|
|
4101
4178
|
|
|
4102
|
-
.apex-
|
|
4103
|
-
color: var(--
|
|
4179
|
+
.apex-avatar-group .apex-avatar[data-overflow] {
|
|
4180
|
+
background-color: var(--apex-fill-neutral-tertiary);
|
|
4181
|
+
color: var(--apex-text-neutral-primary);
|
|
4182
|
+
font-size: var(--apex-fontsize-12);
|
|
4183
|
+
font-weight: var(--apex-fontweight-500);
|
|
4184
|
+
letter-spacing: 0;
|
|
4104
4185
|
}
|
|
4105
4186
|
|
|
4106
|
-
/*
|
|
4107
|
-
原生 input 在 :-webkit-autofill 下会被浏览器强制涂上自己的背景色(淡黄/淡蓝),
|
|
4108
|
-
由于 .apex-input__field 本身是透明的,这层原生底色会以一个"原始输入框"的样子
|
|
4109
|
-
叠在 .apex-input__inner 圆角包裹层内、且长时间不消失。
|
|
4110
|
-
处理:保留自动填充功能本身,仅抹掉这层原生底色——
|
|
4111
|
-
· background-clip: text 把填充底色裁剪到文字范围(视觉上等同透明);
|
|
4112
|
-
· 超长 transition 阻止浏览器把背景色真正绘制出来(兜底,跨浏览器更稳);
|
|
4113
|
-
· text-fill-color / caret-color 使用内部变量 --input-autofill-text-color,
|
|
4114
|
-
跟随 .apex-input__inner 当前状态(default / hover / focus / error / …)。 */
|
|
4187
|
+
/* ── Clickable(仅在 data-clickable 作用域下消费 hover/click/focus/disabled token)── */
|
|
4115
4188
|
|
|
4116
|
-
.apex-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
-webkit-text-fill-color: var(--input-autofill-text-color);
|
|
4123
|
-
caret-color: var(--input-autofill-text-color);
|
|
4124
|
-
transition: background-color 86400s ease-in-out 0s;
|
|
4189
|
+
.apex-avatar[data-clickable] {
|
|
4190
|
+
cursor: pointer;
|
|
4191
|
+
transition:
|
|
4192
|
+
background-color 0.15s ease,
|
|
4193
|
+
color 0.15s ease,
|
|
4194
|
+
outline-color 0.15s ease;
|
|
4125
4195
|
}
|
|
4126
4196
|
|
|
4127
|
-
.apex-
|
|
4128
|
-
color: var(--
|
|
4197
|
+
.apex-avatar[data-clickable]:hover {
|
|
4198
|
+
background-color: var(--avatar-fill-hover, var(--avatar-fill-default));
|
|
4199
|
+
color: var(--avatar-text-hover, var(--avatar-text-default));
|
|
4129
4200
|
}
|
|
4130
4201
|
|
|
4131
|
-
.apex-
|
|
4132
|
-
|
|
4133
|
-
color: var(--input-text-placeholder-error);
|
|
4202
|
+
.apex-avatar[data-clickable]:hover .apex-avatar__fallback {
|
|
4203
|
+
color: var(--avatar-icon-hover, var(--avatar-icon-default));
|
|
4134
4204
|
}
|
|
4135
4205
|
|
|
4136
|
-
.apex-
|
|
4137
|
-
|
|
4138
|
-
color: var(--
|
|
4206
|
+
.apex-avatar[data-clickable]:active {
|
|
4207
|
+
background-color: var(--avatar-fill-active, var(--avatar-fill-default));
|
|
4208
|
+
color: var(--avatar-text-active, var(--avatar-text-default));
|
|
4139
4209
|
}
|
|
4140
4210
|
|
|
4141
|
-
.apex-
|
|
4142
|
-
|
|
4211
|
+
.apex-avatar[data-clickable]:active .apex-avatar__fallback {
|
|
4212
|
+
color: var(--avatar-icon-active, var(--avatar-icon-default));
|
|
4143
4213
|
}
|
|
4144
4214
|
|
|
4145
|
-
.apex-
|
|
4146
|
-
|
|
4215
|
+
.apex-avatar[data-clickable]:focus-visible {
|
|
4216
|
+
outline: var(--apex-border-1) solid var(--apex-fill-brand-primary);
|
|
4217
|
+
outline-offset: var(--apex-spacing-2);
|
|
4147
4218
|
}
|
|
4148
4219
|
|
|
4149
|
-
.apex-
|
|
4150
|
-
cursor:
|
|
4151
|
-
color: var(--
|
|
4220
|
+
.apex-avatar[data-clickable][data-disabled] {
|
|
4221
|
+
cursor: not-allowed;
|
|
4222
|
+
background-color: var(--avatar-fill-disabled, var(--avatar-fill-default));
|
|
4223
|
+
color: var(--avatar-text-disabled, var(--avatar-text-default));
|
|
4152
4224
|
}
|
|
4153
4225
|
|
|
4154
|
-
.apex-
|
|
4155
|
-
color: var(--
|
|
4226
|
+
.apex-avatar[data-clickable][data-disabled] .apex-avatar__fallback {
|
|
4227
|
+
color: var(--avatar-icon-disabled, var(--avatar-icon-default));
|
|
4156
4228
|
}
|
|
4157
4229
|
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
display: inline-flex;
|
|
4163
|
-
flex-shrink: 0;
|
|
4164
|
-
align-items: center;
|
|
4165
|
-
justify-content: center;
|
|
4166
|
-
color: var(--input-icon-default);
|
|
4230
|
+
.apex-avatar[data-clickable][data-disabled]:hover,
|
|
4231
|
+
.apex-avatar[data-clickable][data-disabled]:active {
|
|
4232
|
+
background-color: var(--avatar-fill-disabled, var(--avatar-fill-default));
|
|
4233
|
+
color: var(--avatar-text-disabled, var(--avatar-text-default));
|
|
4167
4234
|
}
|
|
4235
|
+
/* Breadcrumb reuses text-button, font and Divider component token scopes. */
|
|
4168
4236
|
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
.apex-input__prefix svg,
|
|
4172
|
-
.apex-input__suffix svg{
|
|
4237
|
+
:where(.apex-breadcrumb) {
|
|
4173
4238
|
display: block;
|
|
4174
|
-
|
|
4175
|
-
width:
|
|
4176
|
-
|
|
4177
|
-
color: inherit;
|
|
4239
|
+
min-width: 0;
|
|
4240
|
+
max-width: 100%;
|
|
4241
|
+
overflow-x: auto;
|
|
4178
4242
|
}
|
|
4179
4243
|
|
|
4180
|
-
.apex-
|
|
4181
|
-
|
|
4182
|
-
|
|
4244
|
+
.apex-breadcrumb__list {
|
|
4245
|
+
display: flex;
|
|
4246
|
+
flex-wrap: nowrap;
|
|
4247
|
+
align-items: center;
|
|
4248
|
+
gap: var(--breadcrumb-spacing-gap-sm);
|
|
4249
|
+
margin: 0;
|
|
4250
|
+
padding: 0;
|
|
4251
|
+
list-style: none;
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
.apex-breadcrumb__item,
|
|
4255
|
+
.apex-breadcrumb__separator-item {
|
|
4256
|
+
display: inline-flex;
|
|
4257
|
+
align-items: center;
|
|
4183
4258
|
}
|
|
4184
4259
|
|
|
4185
|
-
.apex-
|
|
4186
|
-
.apex-
|
|
4187
|
-
|
|
4260
|
+
.apex-breadcrumb__link,
|
|
4261
|
+
.apex-breadcrumb__text {
|
|
4262
|
+
font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
4263
|
+
font-size: var(--font-fontsize);
|
|
4264
|
+
font-weight: var(--font-fontweight);
|
|
4265
|
+
line-height: var(--font-fontheight);
|
|
4266
|
+
letter-spacing: 0;
|
|
4188
4267
|
}
|
|
4189
4268
|
|
|
4190
|
-
.apex-
|
|
4191
|
-
|
|
4192
|
-
color: var(--input-icon-error);
|
|
4269
|
+
.apex-breadcrumb__item {
|
|
4270
|
+
flex-shrink: 0;
|
|
4193
4271
|
}
|
|
4194
4272
|
|
|
4195
|
-
.apex-
|
|
4196
|
-
|
|
4197
|
-
color: var(--input-icon-disabled);
|
|
4273
|
+
.apex-breadcrumb__link {
|
|
4274
|
+
color: var(--button-text-selected);
|
|
4198
4275
|
}
|
|
4199
4276
|
|
|
4200
|
-
.apex-
|
|
4201
|
-
.apex-
|
|
4202
|
-
color: var(--
|
|
4277
|
+
.apex-breadcrumb__link:hover,
|
|
4278
|
+
.apex-breadcrumb__link:focus-visible {
|
|
4279
|
+
color: var(--button-text-hover);
|
|
4203
4280
|
}
|
|
4204
4281
|
|
|
4205
|
-
.apex-
|
|
4206
|
-
|
|
4207
|
-
color: var(--input-icon-default);
|
|
4282
|
+
.apex-breadcrumb__link:active {
|
|
4283
|
+
color: var(--button-text-active);
|
|
4208
4284
|
}
|
|
4209
4285
|
|
|
4210
|
-
.apex-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
align-items: flex-end;
|
|
4214
|
-
gap: var(--input-spacing-char-counter-gap, var(--input-spacing-gap-x));
|
|
4215
|
-
white-space: nowrap;
|
|
4216
|
-
font-size: 12px;
|
|
4217
|
-
line-height: 18px;
|
|
4218
|
-
color: var(--apex-text-neutral-alpha-primary);
|
|
4286
|
+
.apex-breadcrumb__link:focus-visible {
|
|
4287
|
+
outline: 2px solid var(--button-text-hover);
|
|
4288
|
+
outline-offset: 2px;
|
|
4219
4289
|
}
|
|
4220
4290
|
|
|
4221
|
-
.apex-
|
|
4222
|
-
|
|
4291
|
+
.apex-breadcrumb__link[data-state='active'],
|
|
4292
|
+
.apex-breadcrumb__text[data-state='active'] {
|
|
4293
|
+
color: var(--button-text-selected);
|
|
4294
|
+
background-color: transparent;
|
|
4295
|
+
border-color: transparent;
|
|
4223
4296
|
}
|
|
4224
4297
|
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
color: var(--apex-text-error-alpha-primary);
|
|
4298
|
+
.apex-breadcrumb__text {
|
|
4299
|
+
color: var(--button-text-default);
|
|
4300
|
+
cursor: default;
|
|
4229
4301
|
}
|
|
4230
4302
|
|
|
4231
|
-
.apex-
|
|
4232
|
-
|
|
4303
|
+
.apex-breadcrumb__text:hover,
|
|
4304
|
+
.apex-breadcrumb__text:active {
|
|
4305
|
+
color: var(--button-text-default);
|
|
4306
|
+
background-color: transparent;
|
|
4307
|
+
border-color: transparent;
|
|
4233
4308
|
}
|
|
4234
4309
|
|
|
4235
|
-
.apex-
|
|
4236
|
-
.apex-
|
|
4237
|
-
color: var(--
|
|
4310
|
+
.apex-breadcrumb__text[data-state='active']:hover,
|
|
4311
|
+
.apex-breadcrumb__text[data-state='active']:active {
|
|
4312
|
+
color: var(--button-text-selected);
|
|
4313
|
+
background-color: transparent;
|
|
4314
|
+
border-color: transparent;
|
|
4238
4315
|
}
|
|
4239
|
-
/* ==========================================================================
|
|
4240
|
-
Clear — 圆形 X 清除按钮
|
|
4241
|
-
作用域:.apex-clear.apex-default-clear(见 component-tokens.css --clear-*)
|
|
4242
|
-
用于 Input / Select / TreeSelect / Cascader / DatePicker 等 allowClear 场景
|
|
4243
|
-
========================================================================== */
|
|
4244
4316
|
|
|
4245
|
-
.apex-
|
|
4246
|
-
|
|
4317
|
+
.apex-breadcrumb__separator-item,
|
|
4318
|
+
.apex-breadcrumb__separator-icon {
|
|
4247
4319
|
flex-shrink: 0;
|
|
4248
|
-
align-items: center;
|
|
4249
|
-
justify-content: center;
|
|
4250
|
-
margin: 0;
|
|
4251
4320
|
padding: 0;
|
|
4252
|
-
border:
|
|
4253
|
-
|
|
4254
|
-
color: var(--
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
cursor: pointer;
|
|
4258
|
-
width: var(--input-icon-icon, var(--apex-icon-14));
|
|
4259
|
-
height: var(--input-icon-icon, var(--apex-icon-14));
|
|
4321
|
+
border: 0;
|
|
4322
|
+
border-radius: 0;
|
|
4323
|
+
color: var(--button-icon-disabled);
|
|
4324
|
+
background: transparent;
|
|
4325
|
+
cursor: inherit;
|
|
4260
4326
|
}
|
|
4261
4327
|
|
|
4262
|
-
.apex-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
flex-shrink: 0;
|
|
4266
|
-
width: 50%;
|
|
4267
|
-
height: 50%;
|
|
4268
|
-
color: inherit;
|
|
4328
|
+
.apex-breadcrumb__separator-icon {
|
|
4329
|
+
width: var(--button-icon-icon);
|
|
4330
|
+
height: var(--button-icon-icon);
|
|
4269
4331
|
}
|
|
4270
4332
|
|
|
4271
|
-
.apex-
|
|
4272
|
-
|
|
4273
|
-
|
|
4333
|
+
.apex-breadcrumb__separator-item--section {
|
|
4334
|
+
width: 0;
|
|
4335
|
+
margin-inline: calc(var(--breadcrumb-spacing-gap-md) - var(--breadcrumb-spacing-gap-sm));
|
|
4274
4336
|
}
|
|
4275
4337
|
|
|
4276
|
-
.apex-
|
|
4277
|
-
|
|
4278
|
-
|
|
4338
|
+
.apex-breadcrumb__separator {
|
|
4339
|
+
flex-shrink: 0;
|
|
4340
|
+
margin-inline: 0;
|
|
4279
4341
|
}
|
|
4280
4342
|
|
|
4281
|
-
.apex-
|
|
4282
|
-
|
|
4283
|
-
color: var(--clear-icon-disabled);
|
|
4284
|
-
background-color: var(--clear-fill-disabled);
|
|
4285
|
-
cursor: not-allowed;
|
|
4343
|
+
.apex-breadcrumb__separator-item .apex-breadcrumb__separator[data-orientation='vertical'] {
|
|
4344
|
+
margin: 0;
|
|
4286
4345
|
}
|
|
4287
4346
|
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
color: var(--clear-icon-loading);
|
|
4291
|
-
background-color: var(--clear-fill-loading);
|
|
4347
|
+
.apex-breadcrumb__separator-item--section .apex-breadcrumb__separator[data-orientation='vertical'] {
|
|
4348
|
+
height: calc(var(--button-size-height) - var(--button-spacing-gap));
|
|
4292
4349
|
}
|
|
4293
4350
|
|
|
4294
|
-
.apex-
|
|
4295
|
-
color: var(--clear-icon-disabled);
|
|
4296
|
-
background-color: var(--clear-fill-disabled);
|
|
4297
|
-
cursor: not-allowed;
|
|
4298
|
-
}
|
|
4299
|
-
.apex-icon {
|
|
4351
|
+
.apex-breadcrumb__separator-char {
|
|
4300
4352
|
display: inline-flex;
|
|
4301
4353
|
align-items: center;
|
|
4302
4354
|
justify-content: center;
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
text-align: center;
|
|
4306
|
-
text-transform: none;
|
|
4307
|
-
vertical-align: -0.125em;
|
|
4308
|
-
text-rendering: optimizeLegibility;
|
|
4309
|
-
-webkit-font-smoothing: antialiased;
|
|
4310
|
-
-moz-osx-font-smoothing: grayscale;
|
|
4311
|
-
fill: currentColor;
|
|
4312
|
-
color: var(--apex-icon-neutral-primary);
|
|
4313
|
-
}
|
|
4314
|
-
|
|
4315
|
-
.apex-icon svg {
|
|
4316
|
-
display: inline-block;
|
|
4317
|
-
width: 1em;
|
|
4318
|
-
height: 1em;
|
|
4355
|
+
color: inherit;
|
|
4356
|
+
user-select: none;
|
|
4319
4357
|
}
|
|
4358
|
+
/* Divider — 消费 component-tokens.css 局部变量(--divider-*) */
|
|
4320
4359
|
|
|
4321
|
-
.apex-
|
|
4322
|
-
width: var(--apex-size-16, 16px);
|
|
4323
|
-
height: var(--apex-size-16, 16px);
|
|
4324
|
-
}
|
|
4325
|
-
.apex-auto-complete {
|
|
4326
|
-
display: inline-flex;
|
|
4327
|
-
flex-direction: column;
|
|
4328
|
-
width: 100%;
|
|
4329
|
-
min-width: 0;
|
|
4360
|
+
:where(.apex-divider) {
|
|
4330
4361
|
box-sizing: border-box;
|
|
4362
|
+
margin: 0;
|
|
4363
|
+
padding: 0;
|
|
4364
|
+
border: 0;
|
|
4331
4365
|
}
|
|
4332
4366
|
|
|
4333
|
-
|
|
4334
|
-
|
|
4367
|
+
/* 水平纯线 */
|
|
4368
|
+
.apex-divider[data-orientation='horizontal']:not(.apex-divider--with-text) {
|
|
4369
|
+
display: block;
|
|
4370
|
+
align-self: stretch;
|
|
4371
|
+
width: 100%;
|
|
4335
4372
|
max-width: 100%;
|
|
4373
|
+
margin-block: var(--divider-spacing-gap);
|
|
4374
|
+
border-top: var(--divider-stroke-stroke) solid var(--divider-stroke-default);
|
|
4336
4375
|
}
|
|
4337
4376
|
|
|
4338
|
-
|
|
4339
|
-
|
|
4377
|
+
/* 垂直线 */
|
|
4378
|
+
.apex-divider[data-orientation='vertical'] {
|
|
4379
|
+
display: inline-block;
|
|
4380
|
+
vertical-align: middle;
|
|
4381
|
+
width: 0;
|
|
4382
|
+
min-width: 0;
|
|
4383
|
+
height: 1em;
|
|
4384
|
+
margin-inline: var(--divider-spacing-gap);
|
|
4385
|
+
border-left: var(--divider-stroke-stroke) solid var(--divider-stroke-default);
|
|
4340
4386
|
}
|
|
4341
4387
|
|
|
4342
|
-
|
|
4343
|
-
|
|
4388
|
+
/* 水平带文字 */
|
|
4389
|
+
.apex-divider--with-text {
|
|
4344
4390
|
display: flex;
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
max-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
overflow: hidden;
|
|
4354
|
-
}
|
|
4355
|
-
|
|
4356
|
-
.apex-auto-complete__popup[data-match-width='false'] {
|
|
4357
|
-
width: max-content;
|
|
4391
|
+
align-items: center;
|
|
4392
|
+
align-self: stretch;
|
|
4393
|
+
flex: 1 1 100%;
|
|
4394
|
+
width: 100%;
|
|
4395
|
+
max-width: 100%;
|
|
4396
|
+
gap: var(--divider-spacing-gap);
|
|
4397
|
+
margin-block: var(--divider-spacing-gap);
|
|
4398
|
+
line-height: 1;
|
|
4358
4399
|
}
|
|
4359
4400
|
|
|
4360
|
-
.apex-
|
|
4361
|
-
|
|
4401
|
+
.apex-divider__rail {
|
|
4402
|
+
display: block;
|
|
4403
|
+
flex: 1 0 0%;
|
|
4404
|
+
height: 0;
|
|
4405
|
+
align-self: center;
|
|
4406
|
+
border-top: var(--divider-stroke-stroke) solid var(--divider-stroke-default);
|
|
4362
4407
|
}
|
|
4363
4408
|
|
|
4364
|
-
.apex-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
gap: var(--dropdown-size-container-gap);
|
|
4409
|
+
.apex-divider--text-start .apex-divider__rail:first-child {
|
|
4410
|
+
flex: 0 0 var(--divider-spacing-width-lefttext);
|
|
4411
|
+
min-width: var(--divider-spacing-width-lefttext);
|
|
4412
|
+
max-width: var(--divider-spacing-width-lefttext);
|
|
4369
4413
|
}
|
|
4370
4414
|
|
|
4371
|
-
.apex-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
overflow-x: hidden;
|
|
4376
|
-
overscroll-behavior: contain;
|
|
4415
|
+
.apex-divider--text-end .apex-divider__rail:last-child {
|
|
4416
|
+
flex: 0 0 var(--divider-spacing-width-righttext);
|
|
4417
|
+
min-width: var(--divider-spacing-width-righttext);
|
|
4418
|
+
max-width: var(--divider-spacing-width-righttext);
|
|
4377
4419
|
}
|
|
4378
4420
|
|
|
4379
|
-
.apex-
|
|
4380
|
-
.apex-auto-complete__group-label {
|
|
4381
|
-
box-sizing: border-box;
|
|
4421
|
+
.apex-divider__content {
|
|
4382
4422
|
flex: 0 0 auto;
|
|
4383
|
-
min-height: var(--dropdown-size-item-height-item);
|
|
4384
|
-
padding-inline: var(--dropdown-spacing-item-padding-x-item);
|
|
4385
|
-
display: flex;
|
|
4386
|
-
align-items: center;
|
|
4387
|
-
overflow: hidden;
|
|
4388
4423
|
}
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4424
|
+
/* Typography — 文本/标题/段落(P0 字阶 + 修饰 + 基础 ellipsis)
|
|
4425
|
+
*
|
|
4426
|
+
* 字阶:.apex-font + .apex-text-{cn|en}-*-font(component-tokens.css)→ --font-font*
|
|
4427
|
+
* locale 由 ApexProvider `data-locale` 驱动(cn / en)。
|
|
4428
|
+
* 默认样式包在 :where() 中(特异性 0),宿主组件用单层 BEM(如 .apex-tag__content)
|
|
4429
|
+
* 即可覆盖 display / color / gap,无需拼接 .apex-typography-*。
|
|
4430
|
+
* 语义修饰(type / disabled 等)保持正常特异性,显式 prop 仍优先。 */
|
|
4431
|
+
|
|
4432
|
+
.apex-typography-root {
|
|
4433
|
+
color: inherit;
|
|
4396
4434
|
}
|
|
4397
4435
|
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4436
|
+
/* Body 字阶 token — Typography 与表单控件(.apex-input 等)共用;缺省 en,zh 由 ApexProvider data-locale 切换 */
|
|
4437
|
+
:root,
|
|
4438
|
+
[data-locale='en'] {
|
|
4439
|
+
--apex-typography-body-font-size: var(--apex-fontsize-14);
|
|
4440
|
+
--apex-typography-body-font-weight: var(--apex-fontweight-400);
|
|
4441
|
+
--apex-typography-body-line-height: var(--apex-fontheight-20);
|
|
4442
|
+
--apex-typography-body-letter-spacing: var(--apex-fontspacing-1);
|
|
4402
4443
|
}
|
|
4403
4444
|
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4445
|
+
[data-locale='cn'] {
|
|
4446
|
+
--apex-typography-body-font-size: var(--apex-fontsize-14);
|
|
4447
|
+
--apex-typography-body-font-weight: var(--apex-fontweight-400);
|
|
4448
|
+
--apex-typography-body-line-height: var(--apex-fontheight-20);
|
|
4449
|
+
--apex-typography-body-letter-spacing: var(--apex-fontspacing-0);
|
|
4407
4450
|
}
|
|
4408
4451
|
|
|
4409
|
-
.apex-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4452
|
+
:where(.apex-typography-body-text),
|
|
4453
|
+
:where(.apex-input) {
|
|
4454
|
+
font-size: var(--apex-typography-body-font-size);
|
|
4455
|
+
font-weight: var(--apex-typography-body-font-weight);
|
|
4456
|
+
line-height: var(--apex-typography-body-line-height);
|
|
4457
|
+
letter-spacing: var(--apex-typography-body-letter-spacing);
|
|
4413
4458
|
}
|
|
4414
4459
|
|
|
4415
|
-
|
|
4416
|
-
|
|
4460
|
+
/* 块级默认;Text/Paragraph 用 inherit 便于嵌入 Tag/Dropdown 等有色宿主 */
|
|
4461
|
+
:where(.apex-typography-text),
|
|
4462
|
+
:where(.apex-typography-title),
|
|
4463
|
+
:where(.apex-typography-paragraph) {
|
|
4464
|
+
margin: 0;
|
|
4465
|
+
word-break: break-word;
|
|
4417
4466
|
}
|
|
4418
4467
|
|
|
4419
|
-
.apex-
|
|
4420
|
-
|
|
4468
|
+
:where(.apex-typography-text),
|
|
4469
|
+
:where(.apex-typography-paragraph) {
|
|
4470
|
+
color: inherit;
|
|
4421
4471
|
}
|
|
4422
4472
|
|
|
4423
|
-
.
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
font-weight: var(--font-fontweight);
|
|
4427
|
-
line-height: var(--font-fontheight);
|
|
4428
|
-
min-width: 0;
|
|
4429
|
-
overflow: hidden;
|
|
4430
|
-
white-space: nowrap;
|
|
4431
|
-
text-overflow: ellipsis;
|
|
4473
|
+
/* Title 无 variant,须自带主文本色(与 index.md 字阶表一致) */
|
|
4474
|
+
:where(.apex-typography-title) {
|
|
4475
|
+
color: var(--apex-text-neutral-primary);
|
|
4432
4476
|
}
|
|
4433
|
-
/* ==========================================================================
|
|
4434
|
-
Avatar — 消费 component-tokens.css 局部变量(--avatar-*)
|
|
4435
|
-
Block: .apex-avatar / .apex-avatar-group
|
|
4436
|
-
Elements: .apex-avatar__image / .apex-avatar__fallback / .apex-avatar__inner
|
|
4437
|
-
Modifiers: .apex-avatar--large / --medium / --small / --circle / --square
|
|
4438
|
-
========================================================================== */
|
|
4439
4477
|
|
|
4440
|
-
:where(.apex-
|
|
4478
|
+
:where(.apex-typography-text),
|
|
4479
|
+
:where(.apex-typography-paragraph) {
|
|
4441
4480
|
display: inline-flex;
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
box-sizing: border-box;
|
|
4447
|
-
overflow: hidden;
|
|
4448
|
-
background-color: var(--avatar-fill-default);
|
|
4449
|
-
color: var(--avatar-text-default);
|
|
4450
|
-
text-align: center;
|
|
4451
|
-
vertical-align: middle;
|
|
4452
|
-
user-select: none;
|
|
4453
|
-
font-weight: 500;
|
|
4454
|
-
line-height: 1;
|
|
4481
|
+
flex-wrap: wrap;
|
|
4482
|
+
align-items: baseline;
|
|
4483
|
+
gap: var(--apex-spacing-4);
|
|
4484
|
+
max-width: 100%;
|
|
4455
4485
|
}
|
|
4456
4486
|
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
.apex-avatar--large,
|
|
4460
|
-
.apex-avatar--medium,
|
|
4461
|
-
.apex-avatar--small {
|
|
4462
|
-
width: var(--avatar-spacing-width, var(--avatar-spacing-width-md));
|
|
4463
|
-
height: var(--avatar-spacing-height, var(--avatar-spacing-height-md));
|
|
4464
|
-
font-size: calc(var(--avatar-spacing-height, var(--avatar-spacing-height-md)) / 2);
|
|
4487
|
+
:where(.apex-typography-paragraph) {
|
|
4488
|
+
display: flex;
|
|
4465
4489
|
}
|
|
4466
4490
|
|
|
4467
|
-
.apex-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4491
|
+
/* 字阶:消费 component-tokens.css .apex-font.apex-text-{cn|en}-*-font */
|
|
4492
|
+
:where(.apex-typography.apex-font) {
|
|
4493
|
+
font-size: var(--font-fontsize);
|
|
4494
|
+
font-weight: var(--font-fontweight);
|
|
4495
|
+
line-height: var(--font-fontheight);
|
|
4496
|
+
letter-spacing: var(--font-fontspacing);
|
|
4472
4497
|
}
|
|
4473
4498
|
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
.apex-avatar--circle,
|
|
4477
|
-
.apex-avatar[data-shape='circle'] {
|
|
4478
|
-
border-radius: 50%;
|
|
4499
|
+
:where(.apex-typography--variant-body) {
|
|
4500
|
+
color: var(--apex-text-neutral-primary);
|
|
4479
4501
|
}
|
|
4480
4502
|
|
|
4481
|
-
.apex-
|
|
4482
|
-
|
|
4483
|
-
border-radius: var(--avatar-radius-radius);
|
|
4503
|
+
:where(.apex-typography--variant-caption) {
|
|
4504
|
+
color: var(--apex-text-neutral-secondary);
|
|
4484
4505
|
}
|
|
4485
4506
|
|
|
4486
|
-
/*
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
width: 100%;
|
|
4490
|
-
height: 100%;
|
|
4491
|
-
object-fit: cover;
|
|
4492
|
-
display: block;
|
|
4507
|
+
/* 语义 type(显式 prop,保持可覆盖性低于 type 意图) */
|
|
4508
|
+
.apex-typography--type-secondary {
|
|
4509
|
+
color: var(--apex-text-neutral-secondary);
|
|
4493
4510
|
}
|
|
4494
4511
|
|
|
4495
|
-
.apex-
|
|
4496
|
-
|
|
4512
|
+
.apex-typography--type-success {
|
|
4513
|
+
color: var(--apex-text-success-primary);
|
|
4497
4514
|
}
|
|
4498
4515
|
|
|
4499
|
-
.apex-
|
|
4500
|
-
|
|
4501
|
-
align-items: center;
|
|
4502
|
-
justify-content: center;
|
|
4503
|
-
width: 100%;
|
|
4504
|
-
height: 100%;
|
|
4505
|
-
line-height: 1;
|
|
4506
|
-
color: var(--avatar-icon-default);
|
|
4516
|
+
.apex-typography--type-warning {
|
|
4517
|
+
color: var(--apex-text-warning-primary);
|
|
4507
4518
|
}
|
|
4508
4519
|
|
|
4509
|
-
.apex-
|
|
4510
|
-
|
|
4511
|
-
transform-origin: center center;
|
|
4512
|
-
white-space: nowrap;
|
|
4513
|
-
font-size: inherit;
|
|
4520
|
+
.apex-typography--type-danger {
|
|
4521
|
+
color: var(--apex-text-error-primary);
|
|
4514
4522
|
}
|
|
4515
4523
|
|
|
4516
|
-
/*
|
|
4517
|
-
.apex-
|
|
4518
|
-
|
|
4519
|
-
font-size: var(--avatar-icon-icon);
|
|
4524
|
+
/* 修饰 */
|
|
4525
|
+
.apex-typography--strong {
|
|
4526
|
+
font-weight: 600;
|
|
4520
4527
|
}
|
|
4521
4528
|
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
.apex-avatar-group {
|
|
4525
|
-
display: inline-flex;
|
|
4526
|
-
align-items: center;
|
|
4529
|
+
.apex-typography--italic {
|
|
4530
|
+
font-style: italic;
|
|
4527
4531
|
}
|
|
4528
4532
|
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
border: var(--apex-border-1) solid var(--apex-fill-neutral-primary);
|
|
4533
|
+
.apex-typography--underline {
|
|
4534
|
+
text-decoration: underline;
|
|
4535
|
+
text-decoration-color: var(--apex-stroke-neutral-quaternary);
|
|
4533
4536
|
}
|
|
4534
4537
|
|
|
4535
|
-
.apex-
|
|
4536
|
-
|
|
4538
|
+
.apex-typography--delete {
|
|
4539
|
+
text-decoration: line-through;
|
|
4540
|
+
text-decoration-color: var(--apex-stroke-neutral-quaternary);
|
|
4537
4541
|
}
|
|
4538
4542
|
|
|
4539
|
-
.apex-
|
|
4540
|
-
background-color: var(--apex-fill-
|
|
4541
|
-
|
|
4543
|
+
.apex-typography--mark {
|
|
4544
|
+
background-color: var(--apex-fill-warning-secondary);
|
|
4545
|
+
padding: 0 var(--apex-spacing-2);
|
|
4546
|
+
border-radius: var(--apex-radius-4);
|
|
4542
4547
|
}
|
|
4543
4548
|
|
|
4544
|
-
|
|
4549
|
+
.apex-typography--code {
|
|
4550
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
4551
|
+
font-size: 0.9em;
|
|
4552
|
+
padding: 0 var(--apex-spacing-4);
|
|
4553
|
+
border-radius: var(--apex-radius-4);
|
|
4554
|
+
background-color: var(--apex-fill-neutral-secondary);
|
|
4555
|
+
}
|
|
4545
4556
|
|
|
4546
|
-
.apex-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4557
|
+
.apex-typography--keyboard {
|
|
4558
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
4559
|
+
font-size: 0.85em;
|
|
4560
|
+
padding: var(--apex-spacing-2) var(--apex-spacing-4);
|
|
4561
|
+
border: 1px solid var(--apex-stroke-neutral-quaternary);
|
|
4562
|
+
border-radius: var(--apex-radius-4);
|
|
4563
|
+
box-shadow: inset 0 -1px 0 var(--apex-stroke-neutral-quaternary);
|
|
4552
4564
|
}
|
|
4553
4565
|
|
|
4554
|
-
.apex-
|
|
4555
|
-
|
|
4556
|
-
|
|
4566
|
+
.apex-typography--disabled {
|
|
4567
|
+
color: var(--apex-text-neutral-disabled);
|
|
4568
|
+
cursor: not-allowed;
|
|
4557
4569
|
}
|
|
4558
4570
|
|
|
4559
|
-
.apex-
|
|
4560
|
-
|
|
4571
|
+
.apex-typography__content {
|
|
4572
|
+
min-width: 0;
|
|
4561
4573
|
}
|
|
4562
4574
|
|
|
4563
|
-
.apex-
|
|
4564
|
-
|
|
4565
|
-
|
|
4575
|
+
.apex-typography__actions {
|
|
4576
|
+
display: inline-flex;
|
|
4577
|
+
align-items: center;
|
|
4578
|
+
gap: var(--apex-spacing-4);
|
|
4579
|
+
flex-shrink: 0;
|
|
4566
4580
|
}
|
|
4567
4581
|
|
|
4568
|
-
.apex-
|
|
4569
|
-
|
|
4582
|
+
.apex-typography__actions--start {
|
|
4583
|
+
order: -1;
|
|
4570
4584
|
}
|
|
4571
4585
|
|
|
4572
|
-
.apex-
|
|
4573
|
-
|
|
4574
|
-
|
|
4586
|
+
.apex-typography__action {
|
|
4587
|
+
appearance: none;
|
|
4588
|
+
border: none;
|
|
4589
|
+
background: transparent;
|
|
4590
|
+
color: var(--apex-text-neutral-secondary);
|
|
4591
|
+
cursor: pointer;
|
|
4592
|
+
font-size: var(--apex-size-12);
|
|
4593
|
+
padding: 0;
|
|
4594
|
+
line-height: 1;
|
|
4575
4595
|
}
|
|
4576
4596
|
|
|
4577
|
-
.apex-
|
|
4578
|
-
|
|
4579
|
-
background-color: var(--avatar-fill-disabled, var(--avatar-fill-default));
|
|
4580
|
-
color: var(--avatar-text-disabled, var(--avatar-text-default));
|
|
4597
|
+
.apex-typography__action:hover {
|
|
4598
|
+
color: var(--apex-text-neutral-primary);
|
|
4581
4599
|
}
|
|
4582
4600
|
|
|
4583
|
-
.apex-
|
|
4584
|
-
|
|
4601
|
+
.apex-typography__action:focus-visible {
|
|
4602
|
+
outline: 2px solid var(--apex-stroke-brand-primary);
|
|
4603
|
+
outline-offset: 2px;
|
|
4585
4604
|
}
|
|
4586
4605
|
|
|
4587
|
-
|
|
4588
|
-
.apex-
|
|
4589
|
-
|
|
4590
|
-
|
|
4606
|
+
/* ellipsis */
|
|
4607
|
+
.apex-typography--ellipsis-single:where(.apex-typography-text),
|
|
4608
|
+
.apex-typography--ellipsis-single:where(.apex-typography-paragraph) {
|
|
4609
|
+
/* 允许在 flex/table 等宿主内收缩;避免 min-width:auto 顶住内容宽 */
|
|
4610
|
+
min-width: 0;
|
|
4611
|
+
max-width: 100%;
|
|
4591
4612
|
}
|
|
4592
|
-
/* Breadcrumb reuses text-button, font and Divider component token scopes. */
|
|
4593
4613
|
|
|
4594
|
-
|
|
4614
|
+
.apex-typography--ellipsis-single .apex-typography__content:not([data-slot='typography-ellipsis-suffix']) {
|
|
4595
4615
|
display: block;
|
|
4616
|
+
width: 100%;
|
|
4617
|
+
overflow: hidden;
|
|
4618
|
+
text-overflow: ellipsis;
|
|
4619
|
+
white-space: nowrap;
|
|
4596
4620
|
min-width: 0;
|
|
4597
4621
|
max-width: 100%;
|
|
4598
|
-
overflow-x: auto;
|
|
4599
|
-
}
|
|
4600
|
-
|
|
4601
|
-
.apex-breadcrumb__list {
|
|
4602
|
-
display: flex;
|
|
4603
|
-
flex-wrap: nowrap;
|
|
4604
|
-
align-items: center;
|
|
4605
|
-
gap: var(--breadcrumb-spacing-gap-sm);
|
|
4606
|
-
margin: 0;
|
|
4607
|
-
padding: 0;
|
|
4608
|
-
list-style: none;
|
|
4609
4622
|
}
|
|
4610
4623
|
|
|
4611
|
-
.apex-
|
|
4612
|
-
.apex-breadcrumb__separator-item {
|
|
4624
|
+
.apex-typography--ellipsis-single .apex-typography__content--suffix:not([data-slot='typography-ellipsis-suffix']) {
|
|
4613
4625
|
display: inline-flex;
|
|
4614
|
-
align-items:
|
|
4626
|
+
align-items: baseline;
|
|
4627
|
+
max-width: 100%;
|
|
4628
|
+
vertical-align: bottom;
|
|
4615
4629
|
}
|
|
4616
4630
|
|
|
4617
|
-
.apex-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4631
|
+
.apex-typography--ellipsis-single .apex-typography__ellipsis-text {
|
|
4632
|
+
width: fit-content;
|
|
4633
|
+
overflow: hidden;
|
|
4634
|
+
text-overflow: ellipsis;
|
|
4635
|
+
white-space: nowrap;
|
|
4636
|
+
min-width: 0;
|
|
4637
|
+
flex: 1 1 auto;
|
|
4624
4638
|
}
|
|
4625
4639
|
|
|
4626
|
-
|
|
4627
|
-
|
|
4640
|
+
/* suffix:JS 测量截断,中间插入 ... span,不用 CSS text-overflow */
|
|
4641
|
+
.apex-typography--ellipsis-suffix:where(.apex-typography-text),
|
|
4642
|
+
.apex-typography--ellipsis-suffix:where(.apex-typography-paragraph) {
|
|
4643
|
+
/* 宽度由宿主约束,避免 inline-flex 随内容伸缩导致测量反馈环 */
|
|
4644
|
+
width: 100%;
|
|
4628
4645
|
}
|
|
4629
4646
|
|
|
4630
|
-
.apex-
|
|
4631
|
-
|
|
4632
|
-
|
|
4647
|
+
.apex-typography--ellipsis-suffix .apex-typography__content--suffix {
|
|
4648
|
+
display: flex;
|
|
4649
|
+
align-items: baseline;
|
|
4650
|
+
position: relative;
|
|
4651
|
+
width: 100%;
|
|
4652
|
+
max-width: 100%;
|
|
4653
|
+
min-width: 0;
|
|
4654
|
+
flex: 1 1 auto;
|
|
4655
|
+
white-space: nowrap;
|
|
4656
|
+
overflow: hidden;
|
|
4633
4657
|
}
|
|
4634
4658
|
|
|
4635
|
-
.apex-
|
|
4636
|
-
|
|
4659
|
+
.apex-typography--ellipsis-suffix .apex-typography__ellipsis-text,
|
|
4660
|
+
.apex-typography--ellipsis-suffix .apex-typography__ellipsis-symbol,
|
|
4661
|
+
.apex-typography--ellipsis-suffix .apex-typography__ellipsis-suffix {
|
|
4662
|
+
flex: 0 0 auto;
|
|
4637
4663
|
}
|
|
4638
4664
|
|
|
4639
|
-
.apex-
|
|
4640
|
-
|
|
4641
|
-
color: var(--button-text-selected);
|
|
4642
|
-
background-color: var(--button-fill-selected);
|
|
4643
|
-
border-color: var(--button-stroke-selected);
|
|
4665
|
+
.apex-typography__ellipsis-symbol {
|
|
4666
|
+
flex-shrink: 0;
|
|
4644
4667
|
}
|
|
4645
4668
|
|
|
4646
|
-
.apex-
|
|
4647
|
-
|
|
4669
|
+
/* 多行省略:行数由 TS 在 .apex-typography__ellipsis-text 上 inline 设置 WebkitLineClamp(支持 rows>5) */
|
|
4670
|
+
.apex-typography--ellipsis-multi .apex-typography__content {
|
|
4671
|
+
overflow: hidden;
|
|
4672
|
+
white-space: normal;
|
|
4648
4673
|
}
|
|
4649
4674
|
|
|
4650
|
-
.apex-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4675
|
+
.apex-typography--ellipsis-multi .apex-typography__content--suffix {
|
|
4676
|
+
display: flex;
|
|
4677
|
+
align-items: flex-end;
|
|
4678
|
+
gap: 0;
|
|
4679
|
+
overflow: visible;
|
|
4655
4680
|
}
|
|
4656
4681
|
|
|
4657
|
-
.apex-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4682
|
+
.apex-typography--ellipsis-multi .apex-typography__ellipsis-text {
|
|
4683
|
+
width: fit-content;
|
|
4684
|
+
|
|
4685
|
+
overflow: hidden;
|
|
4686
|
+
min-width: 0;
|
|
4687
|
+
flex: 1 1 auto;
|
|
4662
4688
|
}
|
|
4663
4689
|
|
|
4664
|
-
.apex-
|
|
4665
|
-
.apex-breadcrumb__separator-icon {
|
|
4690
|
+
.apex-typography__ellipsis-suffix {
|
|
4666
4691
|
flex-shrink: 0;
|
|
4667
|
-
padding: 0;
|
|
4668
|
-
border: 0;
|
|
4669
|
-
border-radius: 0;
|
|
4670
|
-
color: var(--button-icon-default);
|
|
4671
|
-
background: transparent;
|
|
4672
|
-
cursor: inherit;
|
|
4673
4692
|
}
|
|
4674
4693
|
|
|
4675
|
-
.apex-
|
|
4676
|
-
|
|
4677
|
-
|
|
4694
|
+
.apex-typography--ellipsis-multi .apex-typography__ellipsis-suffix,
|
|
4695
|
+
.apex-typography--ellipsis-single:not(.apex-typography--ellipsis-suffix) .apex-typography__ellipsis-suffix {
|
|
4696
|
+
margin-inline-start: var(--apex-spacing-2);
|
|
4678
4697
|
}
|
|
4679
4698
|
|
|
4680
|
-
.apex-
|
|
4681
|
-
|
|
4682
|
-
|
|
4699
|
+
.apex-typography__ellipsis-expand {
|
|
4700
|
+
appearance: none;
|
|
4701
|
+
border: none;
|
|
4702
|
+
background: transparent;
|
|
4703
|
+
color: inherit;
|
|
4704
|
+
cursor: pointer;
|
|
4705
|
+
font-size: inherit;
|
|
4706
|
+
padding: 0;
|
|
4707
|
+
margin-inline-start: var(--apex-spacing-4);
|
|
4683
4708
|
}
|
|
4684
4709
|
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4710
|
+
/* editable — inline Input, transparent shell inherits typography */
|
|
4711
|
+
.apex-typography__edit {
|
|
4712
|
+
display: inline;
|
|
4688
4713
|
}
|
|
4689
4714
|
|
|
4690
|
-
.apex-
|
|
4691
|
-
|
|
4715
|
+
.apex-typography__edit-input.apex-input {
|
|
4716
|
+
display: inline-flex;
|
|
4717
|
+
height: auto;
|
|
4692
4718
|
}
|
|
4693
4719
|
|
|
4694
|
-
.apex-
|
|
4695
|
-
|
|
4720
|
+
.apex-typography__edit-input .apex-input__inner {
|
|
4721
|
+
background-color: transparent;
|
|
4722
|
+
padding: 0px 4px;
|
|
4723
|
+
min-height: unset;
|
|
4724
|
+
height: auto;
|
|
4725
|
+
font: inherit;
|
|
4726
|
+
color: inherit;
|
|
4727
|
+
box-shadow: none;
|
|
4696
4728
|
}
|
|
4697
4729
|
|
|
4698
|
-
.apex-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
justify-content: center;
|
|
4730
|
+
.apex-typography__edit-input .apex-input__inner:hover:not([data-disabled]),
|
|
4731
|
+
.apex-typography__edit-input .apex-input__inner:focus-within:not([data-disabled]) {
|
|
4732
|
+
background-color: transparent;
|
|
4702
4733
|
color: inherit;
|
|
4703
|
-
|
|
4734
|
+
box-shadow: none;
|
|
4704
4735
|
}
|
|
4705
|
-
/*
|
|
4736
|
+
/* ==========================================================================
|
|
4737
|
+
Tooltip — 消费 component-tokens.css 局部变量(--tooltip-*)
|
|
4738
|
+
========================================================================== */
|
|
4706
4739
|
|
|
4707
|
-
:where(.apex-
|
|
4740
|
+
:where(.apex-tooltip.apex-default-tooltip:not(.apex-popover)) {
|
|
4741
|
+
display:flex;
|
|
4742
|
+
justify-content: center;
|
|
4743
|
+
align-items: center;
|
|
4744
|
+
z-index: var(--apex-z-index-tooltip, 1070);
|
|
4708
4745
|
box-sizing: border-box;
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4746
|
+
max-width: var(--tooltip-size-width-max);
|
|
4747
|
+
min-width: var(--tooltip-size-width-min);
|
|
4748
|
+
min-height: var(--tooltip-size-height-min);
|
|
4749
|
+
/* 高度按内容自动撑开(不消费 --tooltip-height-max):
|
|
4750
|
+
长文本在 max-width 内换行后完整显示,不做纵向截断 / 滚动。 */
|
|
4751
|
+
padding: var(--tooltip-spacing-padding-y) var(--tooltip-spacing-padding-x);
|
|
4752
|
+
border-radius: var(--tooltip-radius-radius);
|
|
4753
|
+
border: var(--tooltip-stroke-stroke) solid var(--tooltip-stroke-default);
|
|
4754
|
+
background-color: var(--tooltip-fill-default);
|
|
4755
|
+
/* fill-image removed in token 8.4 */
|
|
4756
|
+
color: var(--tooltip-text-default);
|
|
4757
|
+
overflow: visible;
|
|
4712
4758
|
}
|
|
4713
4759
|
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
display: block;
|
|
4717
|
-
align-self: stretch;
|
|
4718
|
-
width: 100%;
|
|
4719
|
-
max-width: 100%;
|
|
4720
|
-
margin-block: var(--divider-spacing-gap);
|
|
4721
|
-
border-top: var(--divider-stroke-stroke) solid var(--divider-stroke-default);
|
|
4760
|
+
.apex-tooltip__trigger-fallback {
|
|
4761
|
+
display: inline-block;
|
|
4722
4762
|
}
|
|
4723
4763
|
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4764
|
+
.apex-tooltip__trigger-wrap {
|
|
4765
|
+
display: inline-flex;
|
|
4766
|
+
max-width: fit-content;
|
|
4727
4767
|
vertical-align: middle;
|
|
4728
|
-
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
/* 浮层内容:flex item 需 min-width:0 才能在 max-width 内收缩换行。
|
|
4771
|
+
内层 Typography.Text 的 .apex-typography__content 默认 white-space:nowrap +
|
|
4772
|
+
overflow:hidden(截断语义),在 tooltip 场景需覆盖为换行显示完整文本。 */
|
|
4773
|
+
.apex-tooltip__inner {
|
|
4729
4774
|
min-width: 0;
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
border-left: var(--divider-stroke-stroke) solid var(--divider-stroke-default);
|
|
4775
|
+
word-break: break-word;
|
|
4776
|
+
overflow-wrap: anywhere;
|
|
4733
4777
|
}
|
|
4734
4778
|
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
align-self: stretch;
|
|
4740
|
-
flex: 1 1 100%;
|
|
4741
|
-
width: 100%;
|
|
4742
|
-
max-width: 100%;
|
|
4743
|
-
gap: var(--divider-spacing-gap);
|
|
4744
|
-
margin-block: var(--divider-spacing-gap);
|
|
4745
|
-
line-height: 1;
|
|
4779
|
+
.apex-tooltip__inner .apex-typography__content {
|
|
4780
|
+
overflow: visible;
|
|
4781
|
+
white-space: normal;
|
|
4782
|
+
text-overflow: clip;
|
|
4746
4783
|
}
|
|
4747
4784
|
|
|
4748
|
-
|
|
4785
|
+
/* 箭头:填充三角 + 仅两条斜边描边(底边不描边,与浮层接缝为纯色) */
|
|
4786
|
+
.apex-tooltip__arrow {
|
|
4749
4787
|
display: block;
|
|
4750
|
-
|
|
4751
|
-
height: 0;
|
|
4752
|
-
align-self: center;
|
|
4753
|
-
border-top: var(--divider-stroke-stroke) solid var(--divider-stroke-default);
|
|
4788
|
+
overflow: visible;
|
|
4754
4789
|
}
|
|
4755
4790
|
|
|
4756
|
-
.apex-
|
|
4757
|
-
|
|
4758
|
-
min-width: var(--divider-spacing-width-lefttext);
|
|
4759
|
-
max-width: var(--divider-spacing-width-lefttext);
|
|
4791
|
+
.apex-tooltip__arrow-fill {
|
|
4792
|
+
fill: var(--tooltip-fill-default);
|
|
4760
4793
|
}
|
|
4761
4794
|
|
|
4762
|
-
.apex-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4795
|
+
.apex-tooltip__arrow-edge {
|
|
4796
|
+
stroke: var(--tooltip-stroke-default);
|
|
4797
|
+
stroke-width: var(--tooltip-stroke-stroke);
|
|
4798
|
+
vector-effect: non-scaling-stroke;
|
|
4766
4799
|
}
|
|
4767
4800
|
|
|
4768
|
-
.apex-
|
|
4769
|
-
|
|
4801
|
+
.apex-tooltip[data-side='top'] .apex-tooltip__arrow {
|
|
4802
|
+
margin-top: calc(-1 * var(--tooltip-stroke-stroke));
|
|
4803
|
+
}
|
|
4804
|
+
|
|
4805
|
+
.apex-tooltip[data-side='bottom'] .apex-tooltip__arrow {
|
|
4806
|
+
margin-top: var(--tooltip-stroke-stroke);
|
|
4807
|
+
}
|
|
4808
|
+
|
|
4809
|
+
.apex-tooltip[data-side='left'] .apex-tooltip__arrow,
|
|
4810
|
+
.apex-tooltip[data-side='right'] .apex-tooltip__arrow {
|
|
4811
|
+
margin-top: calc(-1 * var(--tooltip-stroke-stroke));
|
|
4770
4812
|
}
|
|
4771
4813
|
/* ==========================================================================
|
|
4772
4814
|
Card — 消费 component-tokens.css 中 .apex-card 作用域的局部变量
|
|
@@ -4790,7 +4832,12 @@ a.apex-button[aria-disabled='true'] {
|
|
|
4790
4832
|
border-color: var(--card-stroke-hover);
|
|
4791
4833
|
}
|
|
4792
4834
|
|
|
4793
|
-
.apex-card
|
|
4835
|
+
.apex-card:active {
|
|
4836
|
+
/* The primary token currently resolves through a missing alias. */
|
|
4837
|
+
border-color: var(--card-stroke-active, var(--apex-stroke-brand-tertiary));
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4840
|
+
.apex-card[data-selected]:not([data-selected='false']),
|
|
4794
4841
|
.apex-card[aria-selected='true'] {
|
|
4795
4842
|
border-color: var(--card-stroke-selected);
|
|
4796
4843
|
}
|
|
@@ -5545,19 +5592,19 @@ a.apex-button[aria-disabled='true'] {
|
|
|
5545
5592
|
}
|
|
5546
5593
|
|
|
5547
5594
|
.apex-input__inner[data-readonly]:not([data-disabled]) {
|
|
5548
|
-
background-color: var(--input-fill-
|
|
5549
|
-
border-color: var(--input-stroke-
|
|
5550
|
-
color: var(--input-text-filled-
|
|
5551
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
5595
|
+
background-color: var(--input-fill-disabled);
|
|
5596
|
+
border-color: var(--input-stroke-disabled);
|
|
5597
|
+
color: var(--input-text-filled-disabled);
|
|
5598
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
5552
5599
|
cursor: default;
|
|
5553
5600
|
}
|
|
5554
5601
|
|
|
5555
5602
|
.apex-input__inner[data-readonly]:not([data-disabled]):hover,
|
|
5556
5603
|
.apex-input__inner[data-readonly]:not([data-disabled]):focus-within {
|
|
5557
|
-
background-color: var(--input-fill-
|
|
5558
|
-
border-color: var(--input-stroke-
|
|
5559
|
-
color: var(--input-text-filled-
|
|
5560
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
5604
|
+
background-color: var(--input-fill-disabled);
|
|
5605
|
+
border-color: var(--input-stroke-disabled);
|
|
5606
|
+
color: var(--input-text-filled-disabled);
|
|
5607
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
5561
5608
|
}
|
|
5562
5609
|
|
|
5563
5610
|
/* ── Textarea ────────────────────────────────────────────────────────────── */
|
|
@@ -5691,11 +5738,11 @@ a.apex-button[aria-disabled='true'] {
|
|
|
5691
5738
|
|
|
5692
5739
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field {
|
|
5693
5740
|
cursor: default;
|
|
5694
|
-
color: var(--input-text-filled-
|
|
5741
|
+
color: var(--input-text-filled-disabled);
|
|
5695
5742
|
}
|
|
5696
5743
|
|
|
5697
5744
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field::placeholder {
|
|
5698
|
-
color: var(--input-text-placeholder-
|
|
5745
|
+
color: var(--input-text-placeholder-disabled);
|
|
5699
5746
|
}
|
|
5700
5747
|
|
|
5701
5748
|
/* ── Prefix / suffix / count ─────────────────────────────────────────────── */
|
|
@@ -5747,7 +5794,7 @@ a.apex-button[aria-disabled='true'] {
|
|
|
5747
5794
|
|
|
5748
5795
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__prefix,
|
|
5749
5796
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__suffix {
|
|
5750
|
-
color: var(--input-icon-
|
|
5797
|
+
color: var(--input-icon-disabled);
|
|
5751
5798
|
}
|
|
5752
5799
|
|
|
5753
5800
|
.apex-input__count {
|
|
@@ -5771,12 +5818,12 @@ a.apex-button[aria-disabled='true'] {
|
|
|
5771
5818
|
color: var(--apex-text-error-alpha-primary);
|
|
5772
5819
|
}
|
|
5773
5820
|
|
|
5774
|
-
.apex-input__inner[data-disabled] .apex-input__count {
|
|
5821
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count {
|
|
5775
5822
|
color: var(--input-text-filled-disabled);
|
|
5776
5823
|
}
|
|
5777
5824
|
|
|
5778
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
5779
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
5825
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
5826
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
5780
5827
|
color: var(--input-text-filled-disabled);
|
|
5781
5828
|
}
|
|
5782
5829
|
|
|
@@ -6067,6 +6114,14 @@ a.apex-button[aria-disabled='true'] {
|
|
|
6067
6114
|
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
6068
6115
|
}
|
|
6069
6116
|
|
|
6117
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover {
|
|
6118
|
+
color: var(--checkbox-text-hover);
|
|
6119
|
+
}
|
|
6120
|
+
|
|
6121
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active {
|
|
6122
|
+
color: var(--checkbox-text-active);
|
|
6123
|
+
}
|
|
6124
|
+
|
|
6070
6125
|
.apex-checkbox.apex-default-checkbox[data-disabled] {
|
|
6071
6126
|
cursor: not-allowed;
|
|
6072
6127
|
color: var(--checkbox-text-disabled);
|
|
@@ -6114,32 +6169,26 @@ a.apex-button[aria-disabled='true'] {
|
|
|
6114
6169
|
pointer-events: none;
|
|
6115
6170
|
fill: transparent;
|
|
6116
6171
|
color: var(--checkbox-stroke-default);
|
|
6172
|
+
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
6117
6173
|
}
|
|
6118
6174
|
|
|
6119
6175
|
.apex-checkbox__box-path {
|
|
6120
|
-
fill:
|
|
6121
|
-
|
|
6122
|
-
stroke-width: 1;
|
|
6123
|
-
vector-effect: non-scaling-stroke;
|
|
6124
|
-
transition:
|
|
6125
|
-
fill 0.18s cubic-bezier(0.4, 0, 0.2, 1),
|
|
6126
|
-
stroke 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
6176
|
+
fill: currentColor;
|
|
6177
|
+
transition: fill 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
6127
6178
|
}
|
|
6128
6179
|
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
.apex-checkbox__control:hover
|
|
6133
|
-
.apex-checkbox__box:not([data-state='checked']) {
|
|
6134
|
-
color: var(--checkbox-stroke-hover);
|
|
6135
|
-
} */
|
|
6180
|
+
.apex-checkbox__box-path--filled {
|
|
6181
|
+
display: none;
|
|
6182
|
+
}
|
|
6136
6183
|
|
|
6137
|
-
|
|
6184
|
+
.apex-checkbox__control[data-state='checked'] .apex-checkbox__box-path--outline,
|
|
6185
|
+
.apex-checkbox__control[data-state='indeterminate'] .apex-checkbox__box-path--outline {
|
|
6186
|
+
display: none;
|
|
6187
|
+
}
|
|
6138
6188
|
|
|
6139
|
-
.apex-
|
|
6140
|
-
.apex-checkbox__control
|
|
6141
|
-
|
|
6142
|
-
color: var(--checkbox-stroke-hover);
|
|
6189
|
+
.apex-checkbox__control[data-state='checked'] .apex-checkbox__box-path--filled,
|
|
6190
|
+
.apex-checkbox__control[data-state='indeterminate'] .apex-checkbox__box-path--filled {
|
|
6191
|
+
display: block;
|
|
6143
6192
|
}
|
|
6144
6193
|
|
|
6145
6194
|
/* checked:填充 brand,描边同色 */
|
|
@@ -6162,6 +6211,44 @@ color: var(--checkbox-stroke-hover);
|
|
|
6162
6211
|
fill: var(--checkbox-fill-indeterminate);
|
|
6163
6212
|
}
|
|
6164
6213
|
|
|
6214
|
+
/* 交互状态由整行 label 驱动,方框与文案保持一致。 */
|
|
6215
|
+
|
|
6216
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
|
|
6217
|
+
.apex-checkbox__control[data-state='unchecked']
|
|
6218
|
+
.apex-checkbox__box {
|
|
6219
|
+
color: var(--checkbox-stroke-hover);
|
|
6220
|
+
}
|
|
6221
|
+
|
|
6222
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active
|
|
6223
|
+
.apex-checkbox__control[data-state='unchecked']
|
|
6224
|
+
.apex-checkbox__box {
|
|
6225
|
+
color: var(--checkbox-stroke-active);
|
|
6226
|
+
}
|
|
6227
|
+
|
|
6228
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
|
|
6229
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
6230
|
+
.apex-checkbox__box {
|
|
6231
|
+
color: var(--checkbox-stroke-check-hover);
|
|
6232
|
+
}
|
|
6233
|
+
|
|
6234
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
|
|
6235
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
6236
|
+
.apex-checkbox__box-path--filled {
|
|
6237
|
+
fill: var(--checkbox-fill-check-hover);
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6240
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active
|
|
6241
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
6242
|
+
.apex-checkbox__box {
|
|
6243
|
+
color: var(--checkbox-stroke-check-active);
|
|
6244
|
+
}
|
|
6245
|
+
|
|
6246
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active
|
|
6247
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
6248
|
+
.apex-checkbox__box-path--filled {
|
|
6249
|
+
fill: var(--checkbox-fill-check-active);
|
|
6250
|
+
}
|
|
6251
|
+
|
|
6165
6252
|
/* disabled:覆盖所有状态色 */
|
|
6166
6253
|
|
|
6167
6254
|
.apex-checkbox.apex-default-checkbox[data-disabled] .apex-checkbox__box {
|
|
@@ -6169,9 +6256,9 @@ color: var(--checkbox-stroke-hover);
|
|
|
6169
6256
|
}
|
|
6170
6257
|
|
|
6171
6258
|
.apex-checkbox.apex-default-checkbox[data-disabled]
|
|
6172
|
-
.apex-checkbox__control[data-state='checked']
|
|
6173
|
-
.apex-checkbox__box-path {
|
|
6174
|
-
fill: var(--checkbox-
|
|
6259
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
6260
|
+
.apex-checkbox__box-path--filled {
|
|
6261
|
+
fill: var(--checkbox-fill-disabled);
|
|
6175
6262
|
}
|
|
6176
6263
|
|
|
6177
6264
|
/* ── Indicator(Radix 仅在 checked / indeterminate 时挂载)──────────────── */
|
|
@@ -6218,7 +6305,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
6218
6305
|
.apex-checkbox__icon-indeterminate path {
|
|
6219
6306
|
fill: none;
|
|
6220
6307
|
stroke: currentColor;
|
|
6221
|
-
stroke-width: 1
|
|
6308
|
+
stroke-width: 1;
|
|
6222
6309
|
stroke-linecap: round;
|
|
6223
6310
|
stroke-linejoin: round;
|
|
6224
6311
|
vector-effect: non-scaling-stroke;
|
|
@@ -6294,7 +6381,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
6294
6381
|
justify-content: center;
|
|
6295
6382
|
width: var(--tag-icon-icon);
|
|
6296
6383
|
height: var(--tag-icon-icon);
|
|
6297
|
-
color: var(--tag-default);
|
|
6384
|
+
color: var(--tag-icon-default);
|
|
6298
6385
|
font-size: var(--tag-icon-icon);
|
|
6299
6386
|
}
|
|
6300
6387
|
|
|
@@ -6401,14 +6488,14 @@ color: var(--checkbox-stroke-hover);
|
|
|
6401
6488
|
pointer-events: auto;
|
|
6402
6489
|
}
|
|
6403
6490
|
|
|
6404
|
-
/*
|
|
6491
|
+
/* 只读沿用 disabled 视觉。 */
|
|
6405
6492
|
|
|
6406
6493
|
.apex-cascader__selector[data-readonly]:not([data-disabled]) .apex-input__inner,
|
|
6407
6494
|
.apex-cascader__selector[data-readonly]:not([data-disabled]):hover .apex-input__inner,
|
|
6408
6495
|
.apex-cascader__selector[data-readonly]:not([data-disabled]):focus-within .apex-input__inner {
|
|
6409
|
-
background-color: var(--input-fill-
|
|
6410
|
-
border-color: var(--input-stroke-
|
|
6411
|
-
color: var(--input-text-
|
|
6496
|
+
background-color: var(--input-fill-disabled);
|
|
6497
|
+
border-color: var(--input-stroke-disabled);
|
|
6498
|
+
color: var(--input-text-filled-disabled);
|
|
6412
6499
|
}
|
|
6413
6500
|
|
|
6414
6501
|
.apex-cascader__selector[data-status='error']:not([data-disabled]):not([data-readonly]) .apex-input__inner {
|
|
@@ -6437,12 +6524,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
6437
6524
|
color: inherit;
|
|
6438
6525
|
}
|
|
6439
6526
|
|
|
6440
|
-
.apex-cascader__selector:not([data-disabled]):not([data-state='open']):not(:focus-within):not(
|
|
6441
|
-
[data-status='error']
|
|
6442
|
-
)
|
|
6443
|
-
.apex-cascader__selection[data-selected]
|
|
6444
|
-
.apex-typography__content,
|
|
6445
|
-
.apex-cascader__selector[data-readonly]:not([data-disabled]):not([data-state='open']):not(
|
|
6527
|
+
.apex-cascader__selector:not([data-disabled]):not([data-readonly]):not([data-state='open']):not(:focus-within):not(
|
|
6446
6528
|
[data-status='error']
|
|
6447
6529
|
)
|
|
6448
6530
|
.apex-cascader__selection[data-selected]
|
|
@@ -6450,6 +6532,13 @@ color: var(--checkbox-stroke-hover);
|
|
|
6450
6532
|
color: var(--input-text-filled-default);
|
|
6451
6533
|
}
|
|
6452
6534
|
|
|
6535
|
+
.apex-cascader__selector[data-status='error']:not([data-disabled]):not([data-readonly])
|
|
6536
|
+
.apex-cascader__selection[data-selected],
|
|
6537
|
+
.apex-cascader__selector[data-status='error']:not([data-disabled]):not([data-readonly])
|
|
6538
|
+
.apex-cascader__selection[data-selected] .apex-typography__content {
|
|
6539
|
+
color: var(--input-text-filled-error);
|
|
6540
|
+
}
|
|
6541
|
+
|
|
6453
6542
|
.apex-cascader__selector.apex-input:hover:not([data-disabled]):not([data-readonly])
|
|
6454
6543
|
.apex-cascader__placeholder {
|
|
6455
6544
|
color: var(--input-text-placeholder-hover);
|
|
@@ -6518,6 +6607,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
6518
6607
|
color: var(--input-text-placeholder-disabled);
|
|
6519
6608
|
}
|
|
6520
6609
|
|
|
6610
|
+
.apex-cascader__selector.apex-input[data-readonly]:not([data-disabled])
|
|
6611
|
+
.apex-cascader__search::placeholder,
|
|
6612
|
+
.apex-cascader__selector.apex-input[data-readonly]:not([data-disabled])
|
|
6613
|
+
.apex-cascader__placeholder {
|
|
6614
|
+
color: var(--input-text-placeholder-disabled);
|
|
6615
|
+
}
|
|
6616
|
+
|
|
6617
|
+
.apex-cascader__selector:is([data-disabled], [data-readonly])
|
|
6618
|
+
.apex-cascader__selection[data-selected]
|
|
6619
|
+
.apex-typography__content {
|
|
6620
|
+
color: var(--input-text-filled-disabled);
|
|
6621
|
+
}
|
|
6622
|
+
|
|
6521
6623
|
/* showSearch:clear / suffix 贴右;search 保持 field-sizing: content 宽度。
|
|
6522
6624
|
__search / .apex-clear / __suffix 为 .apex-input__inner 直接子级,:has(>) 锚定到 __inner。 */
|
|
6523
6625
|
|
|
@@ -6571,6 +6673,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
6571
6673
|
color: var(--input-icon-default);
|
|
6572
6674
|
}
|
|
6573
6675
|
|
|
6676
|
+
/* 图标尺寸显式锚到 --input-icon-icon(md/lg 16px、sm 14px):BEM 类是 __suffix 而非
|
|
6677
|
+
input.css 的 .apex-input__suffix,拿不到那边的 svg 尺寸规则,否则 svg 的
|
|
6678
|
+
width="1em" 会跟随继承字号渲染成 14px,比设计稿小 2px。
|
|
6679
|
+
注意 Clear Button 走 --clear-size-size(恒 14px),与此处不同轨。 */
|
|
6680
|
+
|
|
6681
|
+
.apex-cascader__prefix svg,
|
|
6682
|
+
.apex-cascader__suffix svg {
|
|
6683
|
+
display: block;
|
|
6684
|
+
flex-shrink: 0;
|
|
6685
|
+
width: var(--input-icon-icon);
|
|
6686
|
+
height: var(--input-icon-icon);
|
|
6687
|
+
}
|
|
6688
|
+
|
|
6574
6689
|
.apex-cascader__selector.apex-input:hover:not([data-disabled]):not([data-readonly])
|
|
6575
6690
|
.apex-cascader__prefix,
|
|
6576
6691
|
.apex-cascader__selector.apex-input:hover:not([data-disabled]):not([data-readonly])
|
|
@@ -6601,6 +6716,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
6601
6716
|
color: var(--input-icon-disabled);
|
|
6602
6717
|
}
|
|
6603
6718
|
|
|
6719
|
+
.apex-cascader__selector.apex-input[data-readonly]:not([data-disabled]) .apex-cascader__prefix,
|
|
6720
|
+
.apex-cascader__selector.apex-input[data-readonly]:not([data-disabled]) .apex-cascader__suffix {
|
|
6721
|
+
color: var(--input-icon-disabled);
|
|
6722
|
+
}
|
|
6723
|
+
|
|
6604
6724
|
.apex-cascader__popup {
|
|
6605
6725
|
z-index: var(--apex-z-index-cascader, 1050);
|
|
6606
6726
|
}
|
|
@@ -6611,13 +6731,15 @@ color: var(--checkbox-stroke-hover);
|
|
|
6611
6731
|
height: auto;
|
|
6612
6732
|
min-height: 100%;
|
|
6613
6733
|
margin-inline: 0;
|
|
6734
|
+
width: var(--apex-border-1);
|
|
6735
|
+
background: var(--dropdown-stroke-container-default, var(--apex-stroke-neutral-quaternary));
|
|
6614
6736
|
}
|
|
6615
6737
|
|
|
6616
6738
|
/* Menus fill the popup viewport; columns own vertical scroll (not __viewport).
|
|
6617
6739
|
Column max-height subtracts menus padding so content stays inside the shell. */
|
|
6618
6740
|
|
|
6619
6741
|
.apex-cascader__menus {
|
|
6620
|
-
gap: var(--
|
|
6742
|
+
gap: var(--cascader-spacing-gap);
|
|
6621
6743
|
display: flex;
|
|
6622
6744
|
flex-direction: row;
|
|
6623
6745
|
align-items: stretch;
|
|
@@ -6902,7 +7024,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
6902
7024
|
justify-content: center;
|
|
6903
7025
|
width: var(--tag-icon-icon);
|
|
6904
7026
|
height: var(--tag-icon-icon);
|
|
6905
|
-
color: var(--tag-default);
|
|
7027
|
+
color: var(--tag-icon-default);
|
|
6906
7028
|
font-size: var(--tag-icon-icon);
|
|
6907
7029
|
}
|
|
6908
7030
|
|
|
@@ -6954,7 +7076,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
6954
7076
|
border-radius: var(--tag-radius-radius);
|
|
6955
7077
|
}
|
|
6956
7078
|
/* ==========================================================================
|
|
6957
|
-
Popover —
|
|
7079
|
+
Popover — 表面与箭头复用 Tooltip Token,其余消费 Popover Token。
|
|
6958
7080
|
默认样式包在 :where() 中(特异性 0),宿主传入的 className / style 可覆盖。
|
|
6959
7081
|
========================================================================== */
|
|
6960
7082
|
|
|
@@ -6963,20 +7085,22 @@ color: var(--checkbox-stroke-hover);
|
|
|
6963
7085
|
box-sizing: border-box;
|
|
6964
7086
|
display: flex;
|
|
6965
7087
|
flex-direction: column;
|
|
6966
|
-
gap: var(--
|
|
7088
|
+
gap: var(--apex-spacing-10, 10px);
|
|
6967
7089
|
min-width: min(
|
|
6968
|
-
var(--
|
|
7090
|
+
var(--apex-size-80),
|
|
6969
7091
|
var(--apex-floating-available-width, 100vw)
|
|
6970
7092
|
);
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
7093
|
+
max-width: min(
|
|
7094
|
+
var(--apex-size-420),
|
|
7095
|
+
var(--apex-floating-available-width, 100vw)
|
|
7096
|
+
);
|
|
7097
|
+
min-height: var(--apex-size-32);
|
|
6974
7098
|
max-height: var(--popover-spacing-height-max);
|
|
6975
|
-
padding: var(--
|
|
6976
|
-
border-radius: var(--
|
|
6977
|
-
border: var(--
|
|
6978
|
-
background-color: var(--
|
|
6979
|
-
color: var(--popover-text-
|
|
7099
|
+
padding: var(--apex-spacing-6) var(--apex-spacing-8);
|
|
7100
|
+
border-radius: var(--apex-radius-8);
|
|
7101
|
+
border: var(--tooltip-stroke-stroke) solid var(--tooltip-stroke-default);
|
|
7102
|
+
background-color: var(--tooltip-fill-default);
|
|
7103
|
+
color: var(--popover-text-title);
|
|
6980
7104
|
overflow: visible;
|
|
6981
7105
|
}
|
|
6982
7106
|
|
|
@@ -6985,12 +7109,22 @@ color: var(--checkbox-stroke-hover);
|
|
|
6985
7109
|
}
|
|
6986
7110
|
|
|
6987
7111
|
.apex-popover__body {
|
|
6988
|
-
height:
|
|
7112
|
+
height: auto;
|
|
6989
7113
|
min-width: 0;
|
|
6990
|
-
color: var(--popover-text-
|
|
7114
|
+
color: var(--popover-text-title);
|
|
7115
|
+
font-size: var(--apex-fontsize-14);
|
|
7116
|
+
line-height: var(--apex-fontheight-20);
|
|
6991
7117
|
overflow-wrap: anywhere;
|
|
6992
7118
|
}
|
|
6993
7119
|
|
|
7120
|
+
.apex-popover__footer {
|
|
7121
|
+
display: flex;
|
|
7122
|
+
width: 100%;
|
|
7123
|
+
align-items: center;
|
|
7124
|
+
justify-content: flex-end;
|
|
7125
|
+
gap: var(--apex-spacing-8);
|
|
7126
|
+
}
|
|
7127
|
+
|
|
6994
7128
|
.apex-popover__trigger-fallback {
|
|
6995
7129
|
display: inline-block;
|
|
6996
7130
|
}
|
|
@@ -7001,22 +7135,22 @@ color: var(--checkbox-stroke-hover);
|
|
|
7001
7135
|
}
|
|
7002
7136
|
|
|
7003
7137
|
.apex-popover__arrow-fill {
|
|
7004
|
-
fill: var(--
|
|
7138
|
+
fill: var(--tooltip-fill-default);
|
|
7005
7139
|
}
|
|
7006
7140
|
|
|
7007
7141
|
.apex-popover__arrow-edge {
|
|
7008
|
-
stroke: var(--
|
|
7009
|
-
stroke-width: var(--
|
|
7142
|
+
stroke: var(--tooltip-stroke-default);
|
|
7143
|
+
stroke-width: var(--tooltip-stroke-stroke);
|
|
7010
7144
|
vector-effect: non-scaling-stroke;
|
|
7011
7145
|
}
|
|
7012
7146
|
|
|
7013
7147
|
/* 箭头与浮层接缝:沿指向轴微移压住描边缝隙(定位/旋转由 FloatingOverlayArrow 负责) */
|
|
7014
7148
|
.apex-popover[data-side='top'] .apex-popover__arrow {
|
|
7015
|
-
margin-top: calc(-1 * var(--
|
|
7149
|
+
margin-top: calc(-1 * var(--tooltip-stroke-stroke));
|
|
7016
7150
|
}
|
|
7017
7151
|
|
|
7018
7152
|
.apex-popover[data-side='bottom'] .apex-popover__arrow {
|
|
7019
|
-
margin-bottom: calc(-1 * var(--
|
|
7153
|
+
margin-bottom: calc(-1 * var(--tooltip-stroke-stroke));
|
|
7020
7154
|
}
|
|
7021
7155
|
/* ==========================================================================
|
|
7022
7156
|
Checkbox — 仅消费 component-tokens.css 第三层局部变量(--checkbox-*)
|
|
@@ -7041,6 +7175,14 @@ color: var(--checkbox-stroke-hover);
|
|
|
7041
7175
|
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
7042
7176
|
}
|
|
7043
7177
|
|
|
7178
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover {
|
|
7179
|
+
color: var(--checkbox-text-hover);
|
|
7180
|
+
}
|
|
7181
|
+
|
|
7182
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active {
|
|
7183
|
+
color: var(--checkbox-text-active);
|
|
7184
|
+
}
|
|
7185
|
+
|
|
7044
7186
|
.apex-checkbox.apex-default-checkbox[data-disabled] {
|
|
7045
7187
|
cursor: not-allowed;
|
|
7046
7188
|
color: var(--checkbox-text-disabled);
|
|
@@ -7088,29 +7230,26 @@ color: var(--checkbox-stroke-hover);
|
|
|
7088
7230
|
pointer-events: none;
|
|
7089
7231
|
fill: transparent;
|
|
7090
7232
|
color: var(--checkbox-stroke-default);
|
|
7233
|
+
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
7091
7234
|
}
|
|
7092
7235
|
|
|
7093
7236
|
.apex-checkbox__box-path {
|
|
7094
|
-
fill:
|
|
7095
|
-
|
|
7096
|
-
stroke-width: 1;
|
|
7097
|
-
vector-effect: non-scaling-stroke;
|
|
7098
|
-
transition:
|
|
7099
|
-
fill 0.18s cubic-bezier(0.4, 0, 0.2, 1),
|
|
7100
|
-
stroke 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
7237
|
+
fill: currentColor;
|
|
7238
|
+
transition: fill 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
7101
7239
|
}
|
|
7102
7240
|
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
.apex-checkbox__box
|
|
7113
|
-
|
|
7241
|
+
.apex-checkbox__box-path--filled {
|
|
7242
|
+
display: none;
|
|
7243
|
+
}
|
|
7244
|
+
|
|
7245
|
+
.apex-checkbox__control[data-state='checked'] .apex-checkbox__box-path--outline,
|
|
7246
|
+
.apex-checkbox__control[data-state='indeterminate'] .apex-checkbox__box-path--outline {
|
|
7247
|
+
display: none;
|
|
7248
|
+
}
|
|
7249
|
+
|
|
7250
|
+
.apex-checkbox__control[data-state='checked'] .apex-checkbox__box-path--filled,
|
|
7251
|
+
.apex-checkbox__control[data-state='indeterminate'] .apex-checkbox__box-path--filled {
|
|
7252
|
+
display: block;
|
|
7114
7253
|
}
|
|
7115
7254
|
|
|
7116
7255
|
/* checked:填充 brand,描边同色 */
|
|
@@ -7131,15 +7270,52 @@ color: var(--checkbox-stroke-hover);
|
|
|
7131
7270
|
fill: var(--checkbox-fill-indeterminate);
|
|
7132
7271
|
}
|
|
7133
7272
|
|
|
7273
|
+
/* 交互状态由整行 label 驱动,方框与文案保持一致。 */
|
|
7274
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
|
|
7275
|
+
.apex-checkbox__control[data-state='unchecked']
|
|
7276
|
+
.apex-checkbox__box {
|
|
7277
|
+
color: var(--checkbox-stroke-hover);
|
|
7278
|
+
}
|
|
7279
|
+
|
|
7280
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active
|
|
7281
|
+
.apex-checkbox__control[data-state='unchecked']
|
|
7282
|
+
.apex-checkbox__box {
|
|
7283
|
+
color: var(--checkbox-stroke-active);
|
|
7284
|
+
}
|
|
7285
|
+
|
|
7286
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
|
|
7287
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
7288
|
+
.apex-checkbox__box {
|
|
7289
|
+
color: var(--checkbox-stroke-check-hover);
|
|
7290
|
+
}
|
|
7291
|
+
|
|
7292
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
|
|
7293
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
7294
|
+
.apex-checkbox__box-path--filled {
|
|
7295
|
+
fill: var(--checkbox-fill-check-hover);
|
|
7296
|
+
}
|
|
7297
|
+
|
|
7298
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active
|
|
7299
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
7300
|
+
.apex-checkbox__box {
|
|
7301
|
+
color: var(--checkbox-stroke-check-active);
|
|
7302
|
+
}
|
|
7303
|
+
|
|
7304
|
+
.apex-checkbox.apex-default-checkbox:not([data-disabled]):active
|
|
7305
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
7306
|
+
.apex-checkbox__box-path--filled {
|
|
7307
|
+
fill: var(--checkbox-fill-check-active);
|
|
7308
|
+
}
|
|
7309
|
+
|
|
7134
7310
|
/* disabled:覆盖所有状态色 */
|
|
7135
7311
|
.apex-checkbox.apex-default-checkbox[data-disabled] .apex-checkbox__box {
|
|
7136
7312
|
color: var(--checkbox-stroke-disabled);
|
|
7137
7313
|
}
|
|
7138
7314
|
|
|
7139
7315
|
.apex-checkbox.apex-default-checkbox[data-disabled]
|
|
7140
|
-
.apex-checkbox__control[data-state='checked']
|
|
7141
|
-
.apex-checkbox__box-path {
|
|
7142
|
-
fill: var(--checkbox-
|
|
7316
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
|
|
7317
|
+
.apex-checkbox__box-path--filled {
|
|
7318
|
+
fill: var(--checkbox-fill-disabled);
|
|
7143
7319
|
}
|
|
7144
7320
|
|
|
7145
7321
|
/* ── Indicator(Radix 仅在 checked / indeterminate 时挂载)──────────────── */
|
|
@@ -7185,7 +7361,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
7185
7361
|
.apex-checkbox__icon-indeterminate path {
|
|
7186
7362
|
fill: none;
|
|
7187
7363
|
stroke: currentColor;
|
|
7188
|
-
stroke-width: 1
|
|
7364
|
+
stroke-width: 1;
|
|
7189
7365
|
stroke-linecap: round;
|
|
7190
7366
|
stroke-linejoin: round;
|
|
7191
7367
|
vector-effect: non-scaling-stroke;
|
|
@@ -7863,19 +8039,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
7863
8039
|
}
|
|
7864
8040
|
|
|
7865
8041
|
.apex-input__inner[data-readonly]:not([data-disabled]) {
|
|
7866
|
-
background-color: var(--input-fill-
|
|
7867
|
-
border-color: var(--input-stroke-
|
|
7868
|
-
color: var(--input-text-filled-
|
|
7869
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
8042
|
+
background-color: var(--input-fill-disabled);
|
|
8043
|
+
border-color: var(--input-stroke-disabled);
|
|
8044
|
+
color: var(--input-text-filled-disabled);
|
|
8045
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
7870
8046
|
cursor: default;
|
|
7871
8047
|
}
|
|
7872
8048
|
|
|
7873
8049
|
.apex-input__inner[data-readonly]:not([data-disabled]):hover,
|
|
7874
8050
|
.apex-input__inner[data-readonly]:not([data-disabled]):focus-within {
|
|
7875
|
-
background-color: var(--input-fill-
|
|
7876
|
-
border-color: var(--input-stroke-
|
|
7877
|
-
color: var(--input-text-filled-
|
|
7878
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
8051
|
+
background-color: var(--input-fill-disabled);
|
|
8052
|
+
border-color: var(--input-stroke-disabled);
|
|
8053
|
+
color: var(--input-text-filled-disabled);
|
|
8054
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
7879
8055
|
}
|
|
7880
8056
|
|
|
7881
8057
|
/* ── Textarea ────────────────────────────────────────────────────────────── */
|
|
@@ -8009,11 +8185,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
8009
8185
|
|
|
8010
8186
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field {
|
|
8011
8187
|
cursor: default;
|
|
8012
|
-
color: var(--input-text-filled-
|
|
8188
|
+
color: var(--input-text-filled-disabled);
|
|
8013
8189
|
}
|
|
8014
8190
|
|
|
8015
8191
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field::placeholder {
|
|
8016
|
-
color: var(--input-text-placeholder-
|
|
8192
|
+
color: var(--input-text-placeholder-disabled);
|
|
8017
8193
|
}
|
|
8018
8194
|
|
|
8019
8195
|
/* ── Prefix / suffix / count ─────────────────────────────────────────────── */
|
|
@@ -8065,7 +8241,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
8065
8241
|
|
|
8066
8242
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__prefix,
|
|
8067
8243
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__suffix {
|
|
8068
|
-
color: var(--input-icon-
|
|
8244
|
+
color: var(--input-icon-disabled);
|
|
8069
8245
|
}
|
|
8070
8246
|
|
|
8071
8247
|
.apex-input__count {
|
|
@@ -8089,12 +8265,12 @@ color: var(--checkbox-stroke-hover);
|
|
|
8089
8265
|
color: var(--apex-text-error-alpha-primary);
|
|
8090
8266
|
}
|
|
8091
8267
|
|
|
8092
|
-
.apex-input__inner[data-disabled] .apex-input__count {
|
|
8268
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count {
|
|
8093
8269
|
color: var(--input-text-filled-disabled);
|
|
8094
8270
|
}
|
|
8095
8271
|
|
|
8096
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
8097
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
8272
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
8273
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
8098
8274
|
color: var(--input-text-filled-disabled);
|
|
8099
8275
|
}
|
|
8100
8276
|
|
|
@@ -8122,10 +8298,10 @@ color: var(--checkbox-stroke-hover);
|
|
|
8122
8298
|
max-width: 100%;
|
|
8123
8299
|
}
|
|
8124
8300
|
|
|
8125
|
-
/* RangePicker
|
|
8301
|
+
/* RangePicker 为完整日期与清除图标预留空间(待 UI 补 --datepicker-width-range-trigger)。 */
|
|
8126
8302
|
|
|
8127
8303
|
.apex-datepicker.apex-input:is(.apex-default-input, .apex-elevated-input).apex-datepicker--range {
|
|
8128
|
-
width: calc(2 * var(--input-spacing-width-min));
|
|
8304
|
+
width: calc(2 * var(--input-spacing-width-min) + 2 * var(--input-spacing-padding-x) + var(--input-icon-icon));
|
|
8129
8305
|
height: var(--input-spacing-height);
|
|
8130
8306
|
min-width: 0;
|
|
8131
8307
|
max-width: 100%;
|
|
@@ -8170,14 +8346,14 @@ color: var(--checkbox-stroke-hover);
|
|
|
8170
8346
|
color: var(--input-icon-focused);
|
|
8171
8347
|
}
|
|
8172
8348
|
|
|
8173
|
-
/*
|
|
8349
|
+
/* 只读保持 disabled 视觉,仍可聚焦。 */
|
|
8174
8350
|
|
|
8175
8351
|
.apex-datepicker[data-readonly]:not([data-disabled]) .apex-input__inner,
|
|
8176
8352
|
.apex-datepicker[data-readonly]:not([data-disabled]):hover .apex-input__inner,
|
|
8177
8353
|
.apex-datepicker[data-readonly]:not([data-disabled]) .apex-input__inner:focus-within {
|
|
8178
|
-
background-color: var(--input-fill-
|
|
8179
|
-
border-color: var(--input-stroke-
|
|
8180
|
-
color: var(--input-text-filled-
|
|
8354
|
+
background-color: var(--input-fill-disabled);
|
|
8355
|
+
border-color: var(--input-stroke-disabled);
|
|
8356
|
+
color: var(--input-text-filled-disabled);
|
|
8181
8357
|
}
|
|
8182
8358
|
|
|
8183
8359
|
.apex-datepicker__trigger[data-readonly] {
|
|
@@ -8188,7 +8364,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
8188
8364
|
§2 触发器 button(字段区,布局对齐 .apex-input__field)
|
|
8189
8365
|
========================================================================== */
|
|
8190
8366
|
|
|
8191
|
-
/* 双 class 提权:填满 __inner 中
|
|
8367
|
+
/* 双 class 提权:填满 __inner 中 prefix / clear 之外的区域,整块可点 */
|
|
8192
8368
|
|
|
8193
8369
|
.apex-datepicker__trigger.apex-input__field {
|
|
8194
8370
|
flex: 1 1 auto;
|
|
@@ -8200,6 +8376,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
8200
8376
|
text-align: start;
|
|
8201
8377
|
cursor: pointer;
|
|
8202
8378
|
white-space: nowrap;
|
|
8379
|
+
gap: var(--input-spacing-gap-x);
|
|
8203
8380
|
}
|
|
8204
8381
|
|
|
8205
8382
|
.apex-datepicker__trigger.apex-input__field:disabled {
|
|
@@ -8214,7 +8391,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
8214
8391
|
}
|
|
8215
8392
|
|
|
8216
8393
|
/* ==========================================================================
|
|
8217
|
-
§3 value / separator / clear
|
|
8394
|
+
§3 value / separator / clear
|
|
8218
8395
|
========================================================================== */
|
|
8219
8396
|
|
|
8220
8397
|
.apex-datepicker__value {
|
|
@@ -8251,34 +8428,46 @@ color: var(--checkbox-stroke-hover);
|
|
|
8251
8428
|
|
|
8252
8429
|
.apex-datepicker .apex-input__inner[data-readonly]:not([data-disabled])
|
|
8253
8430
|
.apex-datepicker__value--placeholder {
|
|
8254
|
-
color: var(--input-text-placeholder-
|
|
8431
|
+
color: var(--input-text-placeholder-disabled);
|
|
8255
8432
|
}
|
|
8256
8433
|
|
|
8257
8434
|
.apex-datepicker__separator {
|
|
8435
|
+
position: relative;
|
|
8436
|
+
display: inline-flex;
|
|
8437
|
+
align-items: center;
|
|
8258
8438
|
flex-shrink: 0;
|
|
8259
8439
|
padding: 0 var(--input-spacing-gap-x);
|
|
8260
8440
|
user-select: none;
|
|
8261
8441
|
color: inherit;
|
|
8262
8442
|
}
|
|
8263
8443
|
|
|
8264
|
-
|
|
8265
|
-
|
|
8444
|
+
.apex-datepicker__separator::before {
|
|
8445
|
+
content: '';
|
|
8446
|
+
position: absolute;
|
|
8447
|
+
inset-block: var(--apex-spacing-6);
|
|
8448
|
+
inset-inline-start: 50%;
|
|
8449
|
+
width: var(--apex-border-1);
|
|
8450
|
+
transform: translateX(-50%);
|
|
8451
|
+
background: var(--input-stroke-default);
|
|
8452
|
+
}
|
|
8453
|
+
|
|
8454
|
+
/* Icon 默认渲染 16px,但 DatePicker 槽位应遵循 Input 的 --input-icon-icon。 */
|
|
8266
8455
|
|
|
8267
|
-
.apex-datepicker .apex-
|
|
8268
|
-
.apex-datepicker .apex-
|
|
8269
|
-
.apex-datepicker .apex-
|
|
8456
|
+
.apex-datepicker .apex-input__prefix,
|
|
8457
|
+
.apex-datepicker .apex-input__prefix .apex-icon,
|
|
8458
|
+
.apex-datepicker .apex-input__prefix .apex-icon svg {
|
|
8270
8459
|
width: var(--input-icon-icon);
|
|
8271
8460
|
height: var(--input-icon-icon);
|
|
8272
8461
|
}
|
|
8273
8462
|
|
|
8274
|
-
/* Icon 自带默认 color
|
|
8463
|
+
/* Icon 自带默认 color;改为继承槽位,才能响应 Input 的 hover / focus / error / disabled 色。 */
|
|
8275
8464
|
|
|
8276
|
-
.apex-datepicker .apex-
|
|
8465
|
+
.apex-datepicker .apex-input__prefix .apex-icon {
|
|
8277
8466
|
color: inherit;
|
|
8278
8467
|
}
|
|
8279
8468
|
|
|
8280
8469
|
/* RangePicker showTime 打开时:仅拉伸当前编辑字段绘制底部 active bar。
|
|
8281
|
-
inner 保持 Input 默认的纵向居中,避免固定高度的 clear /
|
|
8470
|
+
inner 保持 Input 默认的纵向居中,避免固定高度的 clear / prefix icon 贴到顶部。 */
|
|
8282
8471
|
|
|
8283
8472
|
.apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
|
|
8284
8473
|
.apex-datepicker__trigger--start,
|
|
@@ -8322,7 +8511,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
8322
8511
|
color: var(--input-text-placeholder-focused);
|
|
8323
8512
|
}
|
|
8324
8513
|
|
|
8325
|
-
/* 有值且 hover 时显示 clear
|
|
8514
|
+
/* 有值且 hover 时显示 clear。 */
|
|
8326
8515
|
|
|
8327
8516
|
.apex-datepicker .apex-clear {
|
|
8328
8517
|
display: none;
|
|
@@ -8332,10 +8521,17 @@ color: var(--checkbox-stroke-hover);
|
|
|
8332
8521
|
display: inline-flex;
|
|
8333
8522
|
}
|
|
8334
8523
|
|
|
8335
|
-
/*
|
|
8524
|
+
/* RangePicker 的 clear 常驻占位,避免 hover 时两段日期重新分配宽度。 */
|
|
8336
8525
|
|
|
8337
|
-
.apex-datepicker
|
|
8338
|
-
display:
|
|
8526
|
+
.apex-datepicker--range .apex-clear {
|
|
8527
|
+
display: inline-flex;
|
|
8528
|
+
visibility: hidden;
|
|
8529
|
+
pointer-events: none;
|
|
8530
|
+
}
|
|
8531
|
+
|
|
8532
|
+
.apex-datepicker--range:hover:not([data-disabled]):not([data-readonly]) .apex-clear {
|
|
8533
|
+
visibility: visible;
|
|
8534
|
+
pointer-events: auto;
|
|
8339
8535
|
}
|
|
8340
8536
|
|
|
8341
8537
|
/* Popover portal shell — above Modal/Drawer (default z-index 1000); align with Select dropdown */
|
|
@@ -8565,8 +8761,17 @@ color: var(--checkbox-stroke-hover);
|
|
|
8565
8761
|
}
|
|
8566
8762
|
|
|
8567
8763
|
.apex-datepicker-panel__half--left {
|
|
8568
|
-
|
|
8569
|
-
|
|
8764
|
+
position: relative;
|
|
8765
|
+
}
|
|
8766
|
+
|
|
8767
|
+
.apex-datepicker-panel__half--left::after {
|
|
8768
|
+
content: '';
|
|
8769
|
+
position: absolute;
|
|
8770
|
+
inset-block: 0;
|
|
8771
|
+
inset-inline-end: 0;
|
|
8772
|
+
width: var(--datepicker-stroke-stroke-container);
|
|
8773
|
+
background: var(--datepicker-stroke-container-default);
|
|
8774
|
+
pointer-events: none;
|
|
8570
8775
|
}
|
|
8571
8776
|
|
|
8572
8777
|
/* ==========================================================================
|
|
@@ -9357,6 +9562,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
9357
9562
|
overflow-x: hidden;
|
|
9358
9563
|
overflow-y: auto;
|
|
9359
9564
|
box-sizing: border-box;
|
|
9565
|
+
padding-block-start: var(--drawer-spacing-padding);
|
|
9360
9566
|
margin-inline-end: calc((var(--drawer-spacing-padding) - var(--drawer-scrollbar-inset)) * -1);
|
|
9361
9567
|
padding-inline-end: calc(
|
|
9362
9568
|
var(--drawer-spacing-padding) - var(--drawer-scrollbar-inset) - var(--scrollbar-width-thumb, 4px)
|
|
@@ -9653,6 +9859,16 @@ color: var(--checkbox-stroke-hover);
|
|
|
9653
9859
|
color: var(--form-text-caption-default);
|
|
9654
9860
|
}
|
|
9655
9861
|
|
|
9862
|
+
/* Figma form1/form2:caption 从控件底边下方 4px 开始。 */
|
|
9863
|
+
.apex-form__item--vertical .apex-form__item-caption {
|
|
9864
|
+
margin-top: var(--form-spacing-gap);
|
|
9865
|
+
}
|
|
9866
|
+
|
|
9867
|
+
.apex-form__item--horizontal .apex-form__item-caption,
|
|
9868
|
+
.apex-form__item--inline .apex-form__item-caption {
|
|
9869
|
+
margin-top: var(--form-spacing-gap-y);
|
|
9870
|
+
}
|
|
9871
|
+
|
|
9656
9872
|
/* caption 预留态:保证最小高度防止布局跳动 */
|
|
9657
9873
|
.apex-form__item-caption[data-reserve] {
|
|
9658
9874
|
min-height: 16px;
|
|
@@ -11062,20 +11278,10 @@ color: var(--checkbox-stroke-hover);
|
|
|
11062
11278
|
top: var(--apex-spacing-24);
|
|
11063
11279
|
right: var(--apex-spacing-24);
|
|
11064
11280
|
z-index: 2;
|
|
11065
|
-
color: var(--apex-grey-dark-10);
|
|
11066
|
-
--button-fill-default: var(--apex-grey-dark-3);
|
|
11067
|
-
--button-fill-hover: var(--apex-grey-dark-5);
|
|
11068
|
-
--button-fill-active: var(--apex-grey-dark-4);
|
|
11069
|
-
--button-stroke: 0;
|
|
11070
11281
|
border-radius: 50%;
|
|
11071
|
-
opacity: 0.9;
|
|
11072
11282
|
pointer-events: auto;
|
|
11073
11283
|
}
|
|
11074
11284
|
|
|
11075
|
-
.apex-upload-preview__close.apex-button:hover {
|
|
11076
|
-
opacity: 1;
|
|
11077
|
-
}
|
|
11078
|
-
|
|
11079
11285
|
.apex-upload-preview__close:focus-visible {
|
|
11080
11286
|
outline: 2px solid var(--apex-stroke-brand-primary);
|
|
11081
11287
|
outline-offset: 2px;
|
|
@@ -11616,19 +11822,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
11616
11822
|
}
|
|
11617
11823
|
|
|
11618
11824
|
.apex-input__inner[data-readonly]:not([data-disabled]) {
|
|
11619
|
-
background-color: var(--input-fill-
|
|
11620
|
-
border-color: var(--input-stroke-
|
|
11621
|
-
color: var(--input-text-filled-
|
|
11622
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
11825
|
+
background-color: var(--input-fill-disabled);
|
|
11826
|
+
border-color: var(--input-stroke-disabled);
|
|
11827
|
+
color: var(--input-text-filled-disabled);
|
|
11828
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
11623
11829
|
cursor: default;
|
|
11624
11830
|
}
|
|
11625
11831
|
|
|
11626
11832
|
.apex-input__inner[data-readonly]:not([data-disabled]):hover,
|
|
11627
11833
|
.apex-input__inner[data-readonly]:not([data-disabled]):focus-within {
|
|
11628
|
-
background-color: var(--input-fill-
|
|
11629
|
-
border-color: var(--input-stroke-
|
|
11630
|
-
color: var(--input-text-filled-
|
|
11631
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
11834
|
+
background-color: var(--input-fill-disabled);
|
|
11835
|
+
border-color: var(--input-stroke-disabled);
|
|
11836
|
+
color: var(--input-text-filled-disabled);
|
|
11837
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
11632
11838
|
}
|
|
11633
11839
|
|
|
11634
11840
|
/* ── Textarea ────────────────────────────────────────────────────────────── */
|
|
@@ -11762,11 +11968,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
11762
11968
|
|
|
11763
11969
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field {
|
|
11764
11970
|
cursor: default;
|
|
11765
|
-
color: var(--input-text-filled-
|
|
11971
|
+
color: var(--input-text-filled-disabled);
|
|
11766
11972
|
}
|
|
11767
11973
|
|
|
11768
11974
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field::placeholder {
|
|
11769
|
-
color: var(--input-text-placeholder-
|
|
11975
|
+
color: var(--input-text-placeholder-disabled);
|
|
11770
11976
|
}
|
|
11771
11977
|
|
|
11772
11978
|
/* ── Prefix / suffix / count ─────────────────────────────────────────────── */
|
|
@@ -11818,7 +12024,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
11818
12024
|
|
|
11819
12025
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__prefix,
|
|
11820
12026
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__suffix {
|
|
11821
|
-
color: var(--input-icon-
|
|
12027
|
+
color: var(--input-icon-disabled);
|
|
11822
12028
|
}
|
|
11823
12029
|
|
|
11824
12030
|
.apex-input__count {
|
|
@@ -11842,12 +12048,12 @@ color: var(--checkbox-stroke-hover);
|
|
|
11842
12048
|
color: var(--apex-text-error-alpha-primary);
|
|
11843
12049
|
}
|
|
11844
12050
|
|
|
11845
|
-
.apex-input__inner[data-disabled] .apex-input__count {
|
|
12051
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count {
|
|
11846
12052
|
color: var(--input-text-filled-disabled);
|
|
11847
12053
|
}
|
|
11848
12054
|
|
|
11849
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
11850
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
12055
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
12056
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
11851
12057
|
color: var(--input-text-filled-disabled);
|
|
11852
12058
|
}
|
|
11853
12059
|
|
|
@@ -11930,6 +12136,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
11930
12136
|
border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
11931
12137
|
}
|
|
11932
12138
|
|
|
12139
|
+
/* Prefix/suffix are inline adornments. Keep their visual gap compact while
|
|
12140
|
+
retaining the normal Input padding for a plain numeric field. */
|
|
12141
|
+
|
|
12142
|
+
.apex-input-number--mode-input:has(.apex-input-number__prefix, .apex-input-number__suffix)
|
|
12143
|
+
.apex-input-number__inner {
|
|
12144
|
+
gap: var(--input-spacing-gap-x);
|
|
12145
|
+
}
|
|
12146
|
+
|
|
12147
|
+
.apex-input-number--mode-input:has(.apex-input-number__prefix, .apex-input-number__suffix)
|
|
12148
|
+
.apex-input-number__field {
|
|
12149
|
+
padding-inline: 0;
|
|
12150
|
+
}
|
|
12151
|
+
|
|
11933
12152
|
/* input.css 的 __inner:focus-within 会染整壳;input 模式改由 field 承担 focus 皮肤 */
|
|
11934
12153
|
|
|
11935
12154
|
.apex-input-number--mode-input
|
|
@@ -11950,7 +12169,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
11950
12169
|
.apex-input-number__field:focus {
|
|
11951
12170
|
background-color: transparent;
|
|
11952
12171
|
border-color: transparent;
|
|
11953
|
-
color: var(--input-text-filled-
|
|
12172
|
+
color: var(--input-text-filled-disabled);
|
|
11954
12173
|
}
|
|
11955
12174
|
|
|
11956
12175
|
.apex-input-number--mode-input .apex-input-number__handler:focus-visible {
|
|
@@ -12607,7 +12826,9 @@ color: var(--checkbox-stroke-hover);
|
|
|
12607
12826
|
justify-content: space-between;
|
|
12608
12827
|
width: var(--menu-spacing-width-panel);
|
|
12609
12828
|
min-width: var(--menu-spacing-width-panel);
|
|
12610
|
-
padding:
|
|
12829
|
+
padding:
|
|
12830
|
+
calc(var(--menu-spacing-padding-y) + var(--menu-spacing-gap-sm) * 0.5)
|
|
12831
|
+
calc(var(--menu-spacing-padding-x) + var(--menu-spacing-gap-sm) * 0.5);
|
|
12611
12832
|
background-color: var(--menu-fill-container-default);
|
|
12612
12833
|
}
|
|
12613
12834
|
|
|
@@ -12684,6 +12905,10 @@ color: var(--checkbox-stroke-hover);
|
|
|
12684
12905
|
gap: var(--menu-spacing-gap-md);
|
|
12685
12906
|
}
|
|
12686
12907
|
|
|
12908
|
+
.apex-menu.apex-menu--menu-maximized .apex-menu__body {
|
|
12909
|
+
gap: calc(var(--menu-spacing-gap-md) + var(--menu-spacing-gap-sm) * 0.5);
|
|
12910
|
+
}
|
|
12911
|
+
|
|
12687
12912
|
.apex-menu.apex-menu--menu-collapsed .apex-menu__body {
|
|
12688
12913
|
align-items: center;
|
|
12689
12914
|
}
|
|
@@ -12701,7 +12926,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
12701
12926
|
padding-bottom: var(--menu-spacing-gap-md);
|
|
12702
12927
|
overflow: hidden;
|
|
12703
12928
|
white-space: nowrap;
|
|
12704
|
-
color: var(--menu-button-
|
|
12929
|
+
color: var(--menu-button-text-default);
|
|
12930
|
+
}
|
|
12931
|
+
|
|
12932
|
+
.apex-menu.apex-menu--menu-maximized .apex-menu__header {
|
|
12933
|
+
padding-bottom: 0;
|
|
12705
12934
|
}
|
|
12706
12935
|
|
|
12707
12936
|
/* ── Footer (always present) ─────────────────────────────────────────────── */
|
|
@@ -12788,7 +13017,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
12788
13017
|
min-height: 0;
|
|
12789
13018
|
padding: 0;
|
|
12790
13019
|
margin: 0;
|
|
12791
|
-
gap: var(--menu-spacing-gap-sm);
|
|
13020
|
+
gap: var(--apex-spacing-12, var(--menu-spacing-gap-sm));
|
|
12792
13021
|
overflow-x: visible;
|
|
12793
13022
|
overflow-y: auto;
|
|
12794
13023
|
list-style: none;
|
|
@@ -12846,7 +13075,8 @@ color: var(--checkbox-stroke-hover);
|
|
|
12846
13075
|
grid-template-columns: minmax(0, 1fr);
|
|
12847
13076
|
width: 100%;
|
|
12848
13077
|
min-height: 0;
|
|
12849
|
-
|
|
13078
|
+
align-content: start;
|
|
13079
|
+
gap: calc(var(--menu-spacing-gap-sm) * 2);
|
|
12850
13080
|
margin: 0;
|
|
12851
13081
|
padding: 0;
|
|
12852
13082
|
overflow-x: hidden;
|
|
@@ -12868,6 +13098,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
12868
13098
|
height: var(--menu-button-spacing-height);
|
|
12869
13099
|
padding: 0 var(--menu-button-spacing-padding-x);
|
|
12870
13100
|
gap: var(--menu-button-spacing-gap);
|
|
13101
|
+
border: var(--menu-button-stroke-stroke) solid var(--menu-button-stroke-default);
|
|
12871
13102
|
border-radius: var(--menu-button-radius-radius);
|
|
12872
13103
|
background-color: var(--menu-button-fill-default);
|
|
12873
13104
|
color: var(--menu-button-text-default);
|
|
@@ -12903,6 +13134,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
12903
13134
|
|
|
12904
13135
|
.apex-menu .apex-menu__row:hover:not(:disabled) {
|
|
12905
13136
|
background-color: var(--menu-button-fill-hover);
|
|
13137
|
+
border-color: var(--menu-button-stroke-hover);
|
|
12906
13138
|
color: var(--menu-button-text-hover);
|
|
12907
13139
|
}
|
|
12908
13140
|
|
|
@@ -12912,6 +13144,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
12912
13144
|
|
|
12913
13145
|
.apex-menu .apex-menu__row:active:not(:disabled) {
|
|
12914
13146
|
background-color: var(--menu-button-fill-active);
|
|
13147
|
+
border-color: var(--menu-button-stroke-active);
|
|
12915
13148
|
color: var(--menu-button-text-active);
|
|
12916
13149
|
}
|
|
12917
13150
|
|
|
@@ -12922,13 +13155,22 @@ color: var(--checkbox-stroke-hover);
|
|
|
12922
13155
|
.apex-menu .apex-menu__row[data-selected-secondary]:hover:not(:disabled),
|
|
12923
13156
|
.apex-menu .apex-menu__row[data-selected-secondary]:active:not(:disabled) {
|
|
12924
13157
|
background-color: var(--menu-button-fill-selected);
|
|
13158
|
+
border-color: var(--menu-button-stroke-selected);
|
|
12925
13159
|
color: var(--menu-button-text-selected);
|
|
12926
13160
|
}
|
|
12927
13161
|
|
|
12928
|
-
.apex-menu .apex-menu__row[data-selected] .apex-
|
|
12929
|
-
.apex-menu .apex-menu__row[data-selected] .apex-
|
|
12930
|
-
.apex-menu .apex-menu__row[data-selected-secondary] .apex-
|
|
12931
|
-
|
|
13162
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]) .apex-menu__label,
|
|
13163
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]):hover:not(:disabled) .apex-menu__label,
|
|
13164
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]):active:not(:disabled) .apex-menu__label {
|
|
13165
|
+
color: var(--menu-button-text-selected);
|
|
13166
|
+
}
|
|
13167
|
+
|
|
13168
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]) .apex-menu__icon,
|
|
13169
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]) .apex-menu__caret,
|
|
13170
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]):hover:not(:disabled) .apex-menu__icon,
|
|
13171
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]):hover:not(:disabled) .apex-menu__caret,
|
|
13172
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]):active:not(:disabled) .apex-menu__icon,
|
|
13173
|
+
.apex-menu .apex-menu__row:is([data-selected], [data-selected-secondary]):active:not(:disabled) .apex-menu__caret {
|
|
12932
13174
|
color: var(--menu-button-icon-selected);
|
|
12933
13175
|
}
|
|
12934
13176
|
|
|
@@ -12942,6 +13184,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
12942
13184
|
.apex-menu .apex-menu__row:disabled,
|
|
12943
13185
|
.apex-menu .apex-menu__row[data-disabled] {
|
|
12944
13186
|
background-color: var(--menu-button-fill-disabled);
|
|
13187
|
+
border-color: var(--menu-button-stroke-disabled);
|
|
12945
13188
|
color: var(--menu-button-text-disabled);
|
|
12946
13189
|
}
|
|
12947
13190
|
|
|
@@ -12977,20 +13220,22 @@ color: var(--checkbox-stroke-hover);
|
|
|
12977
13220
|
width: 100%;
|
|
12978
13221
|
min-width: 0;
|
|
12979
13222
|
max-width: 100%;
|
|
12980
|
-
gap:
|
|
13223
|
+
gap: 0;
|
|
12981
13224
|
}
|
|
12982
13225
|
|
|
12983
13226
|
.apex-menu .apex-menu__sublist {
|
|
12984
|
-
|
|
13227
|
+
--menu-sublist-offset: max(0px, calc(var(--menu-inline-indent) - var(--menu-spacing-gap-sm)));
|
|
13228
|
+
gap: calc(var(--menu-spacing-gap-sm) * 2);
|
|
12985
13229
|
position: relative;
|
|
12986
13230
|
display: grid;
|
|
12987
13231
|
grid-template-columns: minmax(0, 1fr);
|
|
12988
|
-
width: calc(100% - var(--menu-
|
|
13232
|
+
width: calc(100% - var(--menu-sublist-offset));
|
|
12989
13233
|
min-width: 0;
|
|
12990
|
-
max-width: calc(100% - var(--menu-
|
|
13234
|
+
max-width: calc(100% - var(--menu-sublist-offset));
|
|
12991
13235
|
box-sizing: border-box;
|
|
12992
|
-
margin-block-start: var(--menu-spacing-gap-
|
|
12993
|
-
margin-
|
|
13236
|
+
margin-block-start: var(--menu-spacing-gap-md);
|
|
13237
|
+
margin-block-end: calc(var(--menu-spacing-gap-sm) * 2);
|
|
13238
|
+
margin-inline-start: var(--menu-sublist-offset);
|
|
12994
13239
|
padding: 0;
|
|
12995
13240
|
padding-inline-start: var(--menu-spacing-gap-sublist);
|
|
12996
13241
|
list-style: none;
|
|
@@ -13000,7 +13245,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
13000
13245
|
content: '';
|
|
13001
13246
|
position: absolute;
|
|
13002
13247
|
inset-block: 0;
|
|
13003
|
-
inset-inline-start:
|
|
13248
|
+
inset-inline-start: 0;
|
|
13004
13249
|
width: var(--menu-stroke-stroke);
|
|
13005
13250
|
background-color: var(--menu-button-fill-hover);
|
|
13006
13251
|
pointer-events: none;
|
|
@@ -13953,6 +14198,20 @@ color: var(--checkbox-stroke-hover);
|
|
|
13953
14198
|
--pagination-button-spacing-height: var(--pagination-height);
|
|
13954
14199
|
}
|
|
13955
14200
|
|
|
14201
|
+
/* `showTotal` is rendered beside the nav so the total never inherits the
|
|
14202
|
+
paginator surface background. The pagination classes keep the generated
|
|
14203
|
+
component tokens available to the total text without painting this shell. */
|
|
14204
|
+
.apex-pagination__root.apex-pagination {
|
|
14205
|
+
display: inline-flex;
|
|
14206
|
+
align-items: center;
|
|
14207
|
+
gap: var(--pagination-spacing-gap-text, var(--apex-spacing-16));
|
|
14208
|
+
padding: 0;
|
|
14209
|
+
border: 0;
|
|
14210
|
+
border-radius: 0;
|
|
14211
|
+
background: transparent;
|
|
14212
|
+
height: auto;
|
|
14213
|
+
}
|
|
14214
|
+
|
|
13956
14215
|
/* 根容器 */
|
|
13957
14216
|
:where(.apex-pagination) {
|
|
13958
14217
|
display: inline-flex;
|
|
@@ -13961,12 +14220,13 @@ color: var(--checkbox-stroke-hover);
|
|
|
13961
14220
|
padding: var(--pagination-spacing-padding-y) var(--pagination-spacing-padding-x);
|
|
13962
14221
|
border-radius: var(--pagination-radius-radius);
|
|
13963
14222
|
background-color: var(--pagination-fill-default);
|
|
14223
|
+
border: 1px solid var(--pagination-stroke-default);
|
|
13964
14224
|
margin: 0;
|
|
13965
14225
|
box-sizing: border-box;
|
|
13966
14226
|
width: fit-content;
|
|
13967
|
-
height: calc(
|
|
14227
|
+
min-height: calc(
|
|
13968
14228
|
var(--pagination-height) + var(--pagination-spacing-padding-y) +
|
|
13969
|
-
var(--pagination-spacing-padding-y)
|
|
14229
|
+
var(--pagination-spacing-padding-y) + 2px
|
|
13970
14230
|
);
|
|
13971
14231
|
}
|
|
13972
14232
|
|
|
@@ -13999,6 +14259,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
13999
14259
|
.apex-pagination__total {
|
|
14000
14260
|
white-space: nowrap;
|
|
14001
14261
|
flex-shrink: 0;
|
|
14262
|
+
color: var(--pagination-text-default);
|
|
14002
14263
|
}
|
|
14003
14264
|
|
|
14004
14265
|
/* 页码列表 */
|
|
@@ -14025,10 +14286,10 @@ color: var(--checkbox-stroke-hover);
|
|
|
14025
14286
|
display: inline-flex;
|
|
14026
14287
|
align-items: center;
|
|
14027
14288
|
justify-content: center;
|
|
14028
|
-
min-width:var(--pagination-button-spacing-width);
|
|
14029
|
-
width:
|
|
14030
|
-
padding:
|
|
14031
|
-
height:var(--pagination-button-spacing-height);
|
|
14289
|
+
min-width: var(--pagination-button-spacing-width);
|
|
14290
|
+
width: var(--pagination-button-spacing-width);
|
|
14291
|
+
padding: 0;
|
|
14292
|
+
height: var(--pagination-button-spacing-height);
|
|
14032
14293
|
border-radius: var(--pagination-button-radius-radius);
|
|
14033
14294
|
background-color: var(--pagination-button-fill-default);
|
|
14034
14295
|
border: none;
|
|
@@ -14052,6 +14313,39 @@ color: var(--checkbox-stroke-hover);
|
|
|
14052
14313
|
color: var(--pagination-button-text-active);
|
|
14053
14314
|
}
|
|
14054
14315
|
|
|
14316
|
+
/* Figma uses a 16px single-line chevron for previous/next controls. Keep the
|
|
14317
|
+
text fallback in the DOM for custom renderers, but draw the visual glyph
|
|
14318
|
+
with the pagination icon color token. */
|
|
14319
|
+
.apex-pagination-button[data-pagination-type='prev']::before,
|
|
14320
|
+
.apex-pagination-button[data-pagination-type='next']::before {
|
|
14321
|
+
content: '';
|
|
14322
|
+
width: 6px;
|
|
14323
|
+
height: 6px;
|
|
14324
|
+
border: 0 solid currentColor;
|
|
14325
|
+
border-inline-start-width: 1.5px;
|
|
14326
|
+
border-block-end-width: 1.5px;
|
|
14327
|
+
flex-shrink: 0;
|
|
14328
|
+
}
|
|
14329
|
+
|
|
14330
|
+
.apex-pagination-button[data-pagination-type='prev']::before {
|
|
14331
|
+
transform: rotate(45deg);
|
|
14332
|
+
}
|
|
14333
|
+
|
|
14334
|
+
.apex-pagination-button[data-pagination-type='next']::before {
|
|
14335
|
+
transform: rotate(225deg);
|
|
14336
|
+
}
|
|
14337
|
+
|
|
14338
|
+
.apex-pagination-button[data-pagination-type='prev'] .apex-button__content,
|
|
14339
|
+
.apex-pagination-button[data-pagination-type='next'] .apex-button__content {
|
|
14340
|
+
position: absolute;
|
|
14341
|
+
width: 1px;
|
|
14342
|
+
height: 1px;
|
|
14343
|
+
overflow: hidden;
|
|
14344
|
+
clip: rect(0 0 0 0);
|
|
14345
|
+
clip-path: inset(50%);
|
|
14346
|
+
white-space: nowrap;
|
|
14347
|
+
}
|
|
14348
|
+
|
|
14055
14349
|
.apex-pagination-button:focus-visible {
|
|
14056
14350
|
outline: 2px solid var(--pagination-button-fill-active);
|
|
14057
14351
|
}
|
|
@@ -14162,18 +14456,8 @@ color: var(--checkbox-stroke-hover);
|
|
|
14162
14456
|
|
|
14163
14457
|
/* ── responsive 隐藏规则(display: none;H8:不做动画)────────────────────── */
|
|
14164
14458
|
|
|
14165
|
-
.apex-pagination[data-responsive-mode='xs'] .apex-pagination__total,
|
|
14166
14459
|
.apex-pagination[data-responsive-mode='xs'] .apex-pagination__size-changer,
|
|
14167
|
-
.apex-pagination[data-responsive-mode='
|
|
14168
|
-
display: none;
|
|
14169
|
-
}
|
|
14170
|
-
|
|
14171
|
-
.apex-pagination[data-responsive-mode='sm'] .apex-pagination__size-changer,
|
|
14172
|
-
.apex-pagination[data-responsive-mode='sm'] .apex-pagination__jumper {
|
|
14173
|
-
display: none;
|
|
14174
|
-
}
|
|
14175
|
-
|
|
14176
|
-
.apex-pagination[data-responsive-mode='md'] .apex-pagination__jumper {
|
|
14460
|
+
.apex-pagination[data-responsive-mode='sm'] .apex-pagination__size-changer {
|
|
14177
14461
|
display: none;
|
|
14178
14462
|
}
|
|
14179
14463
|
/* ==========================================================================
|
|
@@ -14657,19 +14941,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
14657
14941
|
}
|
|
14658
14942
|
|
|
14659
14943
|
.apex-input__inner[data-readonly]:not([data-disabled]) {
|
|
14660
|
-
background-color: var(--input-fill-
|
|
14661
|
-
border-color: var(--input-stroke-
|
|
14662
|
-
color: var(--input-text-filled-
|
|
14663
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
14944
|
+
background-color: var(--input-fill-disabled);
|
|
14945
|
+
border-color: var(--input-stroke-disabled);
|
|
14946
|
+
color: var(--input-text-filled-disabled);
|
|
14947
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
14664
14948
|
cursor: default;
|
|
14665
14949
|
}
|
|
14666
14950
|
|
|
14667
14951
|
.apex-input__inner[data-readonly]:not([data-disabled]):hover,
|
|
14668
14952
|
.apex-input__inner[data-readonly]:not([data-disabled]):focus-within {
|
|
14669
|
-
background-color: var(--input-fill-
|
|
14670
|
-
border-color: var(--input-stroke-
|
|
14671
|
-
color: var(--input-text-filled-
|
|
14672
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
14953
|
+
background-color: var(--input-fill-disabled);
|
|
14954
|
+
border-color: var(--input-stroke-disabled);
|
|
14955
|
+
color: var(--input-text-filled-disabled);
|
|
14956
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
14673
14957
|
}
|
|
14674
14958
|
|
|
14675
14959
|
/* ── Textarea ────────────────────────────────────────────────────────────── */
|
|
@@ -14803,11 +15087,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
14803
15087
|
|
|
14804
15088
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field {
|
|
14805
15089
|
cursor: default;
|
|
14806
|
-
color: var(--input-text-filled-
|
|
15090
|
+
color: var(--input-text-filled-disabled);
|
|
14807
15091
|
}
|
|
14808
15092
|
|
|
14809
15093
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field::placeholder {
|
|
14810
|
-
color: var(--input-text-placeholder-
|
|
15094
|
+
color: var(--input-text-placeholder-disabled);
|
|
14811
15095
|
}
|
|
14812
15096
|
|
|
14813
15097
|
/* ── Prefix / suffix / count ─────────────────────────────────────────────── */
|
|
@@ -14859,7 +15143,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
14859
15143
|
|
|
14860
15144
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__prefix,
|
|
14861
15145
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__suffix {
|
|
14862
|
-
color: var(--input-icon-
|
|
15146
|
+
color: var(--input-icon-disabled);
|
|
14863
15147
|
}
|
|
14864
15148
|
|
|
14865
15149
|
.apex-input__count {
|
|
@@ -14883,12 +15167,12 @@ color: var(--checkbox-stroke-hover);
|
|
|
14883
15167
|
color: var(--apex-text-error-alpha-primary);
|
|
14884
15168
|
}
|
|
14885
15169
|
|
|
14886
|
-
.apex-input__inner[data-disabled] .apex-input__count {
|
|
15170
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count {
|
|
14887
15171
|
color: var(--input-text-filled-disabled);
|
|
14888
15172
|
}
|
|
14889
15173
|
|
|
14890
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
14891
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
15174
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
15175
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
14892
15176
|
color: var(--input-text-filled-disabled);
|
|
14893
15177
|
}
|
|
14894
15178
|
|
|
@@ -14955,14 +15239,14 @@ color: var(--checkbox-stroke-hover);
|
|
|
14955
15239
|
pointer-events: auto;
|
|
14956
15240
|
}
|
|
14957
15241
|
|
|
14958
|
-
/*
|
|
15242
|
+
/* 只读保持 disabled 视觉,但保留可聚焦语义。 */
|
|
14959
15243
|
|
|
14960
15244
|
.apex-select__selector[data-readonly]:not([data-disabled]) .apex-input__inner,
|
|
14961
15245
|
.apex-select__selector[data-readonly]:not([data-disabled]):hover .apex-input__inner,
|
|
14962
15246
|
.apex-select__selector[data-readonly]:not([data-disabled]):focus-within .apex-input__inner {
|
|
14963
|
-
background-color: var(--input-fill-
|
|
14964
|
-
border-color: var(--input-stroke-
|
|
14965
|
-
color: var(--input-text-filled-
|
|
15247
|
+
background-color: var(--input-fill-disabled);
|
|
15248
|
+
border-color: var(--input-stroke-disabled);
|
|
15249
|
+
color: var(--input-text-filled-disabled);
|
|
14966
15250
|
}
|
|
14967
15251
|
|
|
14968
15252
|
/* status 优先于 default / hover / 展开 / focus(与 Input 一致:error 态始终 error 描边) */
|
|
@@ -14990,12 +15274,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
14990
15274
|
color: inherit;
|
|
14991
15275
|
}
|
|
14992
15276
|
|
|
14993
|
-
.apex-select__selector:not([data-disabled]):not([data-state='open']):not(:focus-within):not(
|
|
14994
|
-
[data-status='error']
|
|
14995
|
-
):not([data-status='loading'])
|
|
14996
|
-
.apex-select__selection[data-selected]:not([data-disabled])
|
|
14997
|
-
.apex-typography__content,
|
|
14998
|
-
.apex-select__selector[data-readonly]:not([data-disabled]):not([data-state='open']):not(
|
|
15277
|
+
.apex-select__selector:not([data-disabled]):not([data-readonly]):not([data-state='open']):not(:focus-within):not(
|
|
14999
15278
|
[data-status='error']
|
|
15000
15279
|
):not([data-status='loading'])
|
|
15001
15280
|
.apex-select__selection[data-selected]:not([data-disabled])
|
|
@@ -15151,6 +15430,17 @@ color: var(--checkbox-stroke-hover);
|
|
|
15151
15430
|
color: var(--input-text-placeholder-disabled);
|
|
15152
15431
|
}
|
|
15153
15432
|
|
|
15433
|
+
.apex-select__selector.apex-input[data-readonly]:not([data-disabled]) .apex-select__placeholder,
|
|
15434
|
+
.apex-select__selector.apex-input[data-readonly]:not([data-disabled]) .apex-select__search::placeholder {
|
|
15435
|
+
color: var(--input-text-placeholder-disabled);
|
|
15436
|
+
}
|
|
15437
|
+
|
|
15438
|
+
.apex-select__selector:is([data-disabled], [data-readonly])
|
|
15439
|
+
.apex-select__selection[data-selected]
|
|
15440
|
+
.apex-typography__content {
|
|
15441
|
+
color: var(--input-text-filled-disabled);
|
|
15442
|
+
}
|
|
15443
|
+
|
|
15154
15444
|
/* ── Prefix / Suffix / Clear ────────────────────────────────────────────── */
|
|
15155
15445
|
|
|
15156
15446
|
.apex-select__prefix,
|
|
@@ -15197,22 +15487,29 @@ color: var(--checkbox-stroke-hover);
|
|
|
15197
15487
|
color: var(--input-icon-disabled);
|
|
15198
15488
|
}
|
|
15199
15489
|
|
|
15490
|
+
.apex-select__selector.apex-input[data-readonly]:not([data-disabled]) .apex-select__prefix,
|
|
15491
|
+
.apex-select__selector.apex-input[data-readonly]:not([data-disabled]) .apex-select__suffix {
|
|
15492
|
+
color: var(--input-icon-disabled);
|
|
15493
|
+
}
|
|
15494
|
+
|
|
15200
15495
|
/* 默认 caret-down:展开时 180° 旋转(动画作用于 wrapper,配合 GPU 合成层) */
|
|
15201
15496
|
|
|
15202
15497
|
.apex-select__suffix {
|
|
15203
15498
|
transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
15204
15499
|
}
|
|
15205
15500
|
|
|
15206
|
-
/* C8: 默认 caret SVG 的 display 收敛到 CSS,避免 Select.tsx 写 inline style
|
|
15501
|
+
/* C8: 默认 caret SVG 的 display 收敛到 CSS,避免 Select.tsx 写 inline style。
|
|
15502
|
+
尺寸显式锚到 --input-icon-icon(md/lg 16px、sm 14px):BEM 类是 __suffix 而非
|
|
15503
|
+
input.css 的 .apex-input__suffix,拿不到那边的 svg 尺寸规则,否则 svg 的
|
|
15504
|
+
width="1em" 会跟随继承字号渲染成 14px,比设计稿小 2px。
|
|
15505
|
+
注意 Clear Button 走 --clear-size-size(恒 14px),与此处不同轨。 */
|
|
15207
15506
|
|
|
15507
|
+
.apex-select__prefix svg,
|
|
15208
15508
|
.apex-select__suffix svg {
|
|
15209
15509
|
display: block;
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
.apex-select__suffix svg[data-disabled] {
|
|
15215
|
-
color:white !important;
|
|
15510
|
+
flex-shrink: 0;
|
|
15511
|
+
width: var(--input-icon-icon);
|
|
15512
|
+
height: var(--input-icon-icon);
|
|
15216
15513
|
}
|
|
15217
15514
|
|
|
15218
15515
|
.apex-select__selector.apex-input[data-state='open'] .apex-select__suffix {
|
|
@@ -15600,6 +15897,15 @@ color: var(--checkbox-stroke-hover);
|
|
|
15600
15897
|
/* Label — Typography.Text + radio 组件 token */
|
|
15601
15898
|
.apex-radio__label {
|
|
15602
15899
|
color: var(--radio-text-default);
|
|
15900
|
+
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
15901
|
+
}
|
|
15902
|
+
|
|
15903
|
+
.apex-radio:hover:not([data-disabled]) .apex-radio__label {
|
|
15904
|
+
color: var(--radio-text-hover);
|
|
15905
|
+
}
|
|
15906
|
+
|
|
15907
|
+
.apex-radio:active:not([data-disabled]) .apex-radio__label {
|
|
15908
|
+
color: var(--radio-text-active);
|
|
15603
15909
|
}
|
|
15604
15910
|
|
|
15605
15911
|
.apex-radio__label.apex-typography--disabled,
|
|
@@ -15620,46 +15926,74 @@ color: var(--checkbox-stroke-hover);
|
|
|
15620
15926
|
box-sizing: border-box;
|
|
15621
15927
|
width: var(--radio-icon-icon);
|
|
15622
15928
|
height: var(--radio-icon-icon);
|
|
15623
|
-
border
|
|
15624
|
-
border-style: solid;
|
|
15625
|
-
border-width: var(--radio-stoke-stroke);
|
|
15626
|
-
border-color: var(--radio-stroke-default);
|
|
15929
|
+
border: 0;
|
|
15627
15930
|
background-color: transparent;
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
|
|
15931
|
+
}
|
|
15932
|
+
|
|
15933
|
+
.apex-radio__indicator::before {
|
|
15934
|
+
content: '';
|
|
15935
|
+
display: block;
|
|
15936
|
+
width: calc(var(--radio-icon-icon) - var(--apex-spacing-6));
|
|
15937
|
+
height: calc(var(--radio-icon-icon) - var(--apex-spacing-6));
|
|
15938
|
+
box-sizing: border-box;
|
|
15939
|
+
border: var(--radio-stoke-stroke) solid var(--radio-stroke-default);
|
|
15940
|
+
border-radius: 50%;
|
|
15941
|
+
transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
15631
15942
|
}
|
|
15632
15943
|
|
|
15633
15944
|
.apex-radio__indicator::after {
|
|
15634
15945
|
content: '';
|
|
15635
15946
|
display: block;
|
|
15636
|
-
|
|
15637
|
-
|
|
15947
|
+
position: absolute;
|
|
15948
|
+
width: calc((var(--radio-icon-icon) - var(--apex-spacing-6)) / 2 - var(--radio-stoke-stroke));
|
|
15949
|
+
height: calc((var(--radio-icon-icon) - var(--apex-spacing-6)) / 2 - var(--radio-stoke-stroke));
|
|
15638
15950
|
border-radius: 50%;
|
|
15639
15951
|
background-color: var(--radio-stroke-selected);
|
|
15640
15952
|
transform: scale(0);
|
|
15641
|
-
transition:
|
|
15953
|
+
transition:
|
|
15954
|
+
transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
15955
|
+
background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
15642
15956
|
}
|
|
15643
15957
|
|
|
15644
|
-
.apex-radio:hover:not([data-disabled]):not([data-state='checked']) .apex-radio__indicator {
|
|
15958
|
+
.apex-radio:hover:not([data-disabled]):not([data-state='checked']) .apex-radio__indicator::before {
|
|
15645
15959
|
border-color: var(--radio-stroke-hover);
|
|
15646
15960
|
}
|
|
15647
15961
|
|
|
15648
|
-
.apex-radio[data-
|
|
15962
|
+
.apex-radio:active:not([data-disabled]):not([data-state='checked']) .apex-radio__indicator::before {
|
|
15963
|
+
border-color: var(--radio-stroke-active);
|
|
15964
|
+
}
|
|
15965
|
+
|
|
15966
|
+
.apex-radio[data-state='checked']:not([data-disabled]) .apex-radio__indicator::before {
|
|
15649
15967
|
border-color: var(--radio-stroke-selected);
|
|
15650
15968
|
}
|
|
15651
15969
|
|
|
15970
|
+
.apex-radio[data-state='checked']:hover:not([data-disabled]) .apex-radio__indicator::before {
|
|
15971
|
+
border-color: var(--radio-stroke-check-hover);
|
|
15972
|
+
}
|
|
15973
|
+
|
|
15974
|
+
.apex-radio[data-state='checked']:active:not([data-disabled]) .apex-radio__indicator::before {
|
|
15975
|
+
border-color: var(--radio-stroke-check-active);
|
|
15976
|
+
}
|
|
15977
|
+
|
|
15652
15978
|
.apex-radio[data-state='checked']:not([data-disabled]) .apex-radio__indicator::after {
|
|
15653
15979
|
transform: scale(1);
|
|
15654
15980
|
}
|
|
15655
15981
|
|
|
15656
|
-
.apex-radio[data-disabled] .apex-radio__indicator {
|
|
15982
|
+
.apex-radio[data-state='checked']:hover:not([data-disabled]) .apex-radio__indicator::after {
|
|
15983
|
+
background-color: var(--radio-stroke-check-hover);
|
|
15984
|
+
}
|
|
15985
|
+
|
|
15986
|
+
.apex-radio[data-state='checked']:active:not([data-disabled]) .apex-radio__indicator::after {
|
|
15987
|
+
background-color: var(--radio-stroke-check-active);
|
|
15988
|
+
}
|
|
15989
|
+
|
|
15990
|
+
.apex-radio[data-disabled] .apex-radio__indicator::before {
|
|
15657
15991
|
border-color: var(--radio-stroke-disabled);
|
|
15658
15992
|
}
|
|
15659
15993
|
|
|
15660
15994
|
.apex-radio[data-disabled][data-state='checked'] .apex-radio__indicator::after {
|
|
15661
15995
|
transform: scale(1);
|
|
15662
|
-
background-color: var(--radio-
|
|
15996
|
+
background-color: var(--radio-stroke-disabled);
|
|
15663
15997
|
}
|
|
15664
15998
|
/* ==========================================================================
|
|
15665
15999
|
Rate — 消费 component-tokens.css 局部变量(--rating-*)
|
|
@@ -16549,7 +16883,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
16549
16883
|
line-height: var(--apex-fontheight-18);
|
|
16550
16884
|
}
|
|
16551
16885
|
|
|
16552
|
-
/* height-content 是内容区最小高度;加上 block 上下 padding 后行高下限为
|
|
16886
|
+
/* height-content 是内容区最小高度;加上 block 上下 padding 后行高下限为 32/40/40 */
|
|
16553
16887
|
.apex-table.apex-block-md-table,
|
|
16554
16888
|
.apex-table.apex-block-la-table {
|
|
16555
16889
|
--table-row-min-height: calc(
|
|
@@ -16946,12 +17280,22 @@ color: var(--checkbox-stroke-hover);
|
|
|
16946
17280
|
|
|
16947
17281
|
.apex-table__empty-image {
|
|
16948
17282
|
display: block;
|
|
16949
|
-
width: var(--table-empty-image-width,
|
|
16950
|
-
height: var(--table-empty-image-height,
|
|
17283
|
+
width: var(--table-empty-image-width, 215px);
|
|
17284
|
+
height: var(--table-empty-image-height, 144px);
|
|
16951
17285
|
flex-shrink: 0;
|
|
16952
17286
|
line-height: 0;
|
|
16953
17287
|
}
|
|
16954
17288
|
|
|
17289
|
+
.apex-table--medium .apex-table__empty-image {
|
|
17290
|
+
width: var(--table-empty-image-width, 161px);
|
|
17291
|
+
height: var(--table-empty-image-height, 108px);
|
|
17292
|
+
}
|
|
17293
|
+
|
|
17294
|
+
.apex-table--small .apex-table__empty-image {
|
|
17295
|
+
width: var(--table-empty-image-width, 108px);
|
|
17296
|
+
height: var(--table-empty-image-height, 72px);
|
|
17297
|
+
}
|
|
17298
|
+
|
|
16955
17299
|
.apex-table__empty-image svg,
|
|
16956
17300
|
.apex-table__empty-image img {
|
|
16957
17301
|
display: block;
|
|
@@ -17116,7 +17460,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
17116
17460
|
.apex-table__cell {
|
|
17117
17461
|
position: relative;
|
|
17118
17462
|
box-sizing: border-box;
|
|
17119
|
-
/*
|
|
17463
|
+
/* table-cell 的 min-height 不参与表格行高计算,使用 height 保持内容可继续撑高 */
|
|
17120
17464
|
padding: var(--table-spacing-padding-y) var(--table-spacing-padding-x);
|
|
17121
17465
|
border-right: var(--table-stroke-stroke) solid var(--table-stroke-container-default);
|
|
17122
17466
|
border-bottom: var(--table-stroke-stroke) solid var(--table-stroke-container-default);
|
|
@@ -17128,7 +17472,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
17128
17472
|
}
|
|
17129
17473
|
|
|
17130
17474
|
.apex-table__cell:not(.apex-table__cell--head):not(.apex-table__cell--empty) {
|
|
17131
|
-
|
|
17475
|
+
height: var(--table-row-min-height);
|
|
17132
17476
|
}
|
|
17133
17477
|
|
|
17134
17478
|
/* 去掉表格最右列的外侧右边框(替代 `:last-child`)。
|
|
@@ -17224,7 +17568,13 @@ color: var(--checkbox-stroke-hover);
|
|
|
17224
17568
|
justify-content: center;
|
|
17225
17569
|
}
|
|
17226
17570
|
|
|
17227
|
-
/*
|
|
17571
|
+
/* Table selection controls use the compact 16px glyph from the design. */
|
|
17572
|
+
.apex-table__cell--selection .apex-checkbox__control {
|
|
17573
|
+
width: var(--apex-size-16);
|
|
17574
|
+
height: var(--apex-size-16);
|
|
17575
|
+
}
|
|
17576
|
+
|
|
17577
|
+
/* showIndex=true 时序号 + 选择控件合并列:默认显示序号,行 hover / 已选 / 焦点时切换为控件 */
|
|
17228
17578
|
.apex-table__selection-cell {
|
|
17229
17579
|
position: relative;
|
|
17230
17580
|
display: inline-flex;
|
|
@@ -17294,10 +17644,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
17294
17644
|
padding: var(--apex-spacing-16, 16px) 0;
|
|
17295
17645
|
}
|
|
17296
17646
|
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17647
|
+
.apex-table__pagination-total {
|
|
17648
|
+
flex: 0 0 auto;
|
|
17649
|
+
color: var(--table-text-content-disabled);
|
|
17650
|
+
font-size: var(--apex-fontsize-12);
|
|
17651
|
+
line-height: var(--apex-fontheight-18);
|
|
17301
17652
|
}
|
|
17302
17653
|
|
|
17303
17654
|
/* 展开列 / 树形缩进 */
|
|
@@ -17417,7 +17768,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
17417
17768
|
|
|
17418
17769
|
/* text 形态:项间分隔线,标签紧凑排布 */
|
|
17419
17770
|
.apex-text-tab .apex-tabs__list {
|
|
17420
|
-
gap: var(--tab-spacing-gap);
|
|
17771
|
+
gap: var(--apex-spacing-4, var(--tab-spacing-gap));
|
|
17421
17772
|
}
|
|
17422
17773
|
|
|
17423
17774
|
/* ── 指示条基线(仅 line 形态)──────────────────────────
|
|
@@ -17435,7 +17786,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
17435
17786
|
.apex-line-horizontal-tab .apex-tabs__list::after {
|
|
17436
17787
|
left: 0;
|
|
17437
17788
|
right: 0;
|
|
17438
|
-
bottom: calc(-1 * var(--tab-spacing-gap-button-line));
|
|
17789
|
+
bottom: calc(-1 * var(--apex-spacing-2, var(--tab-spacing-gap-button-line)));
|
|
17439
17790
|
height: var(--tab-stroke-default);
|
|
17440
17791
|
}
|
|
17441
17792
|
|
|
@@ -17532,7 +17883,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
17532
17883
|
left: 0;
|
|
17533
17884
|
right: 0;
|
|
17534
17885
|
bottom: calc(
|
|
17535
|
-
-1 * var(--tab-spacing-gap-button-line) + (var(--tab-stroke-default) - var(--tab-stroke-selected)) / 2
|
|
17886
|
+
-1 * var(--apex-spacing-2, var(--tab-spacing-gap-button-line)) + (var(--tab-stroke-default) - var(--tab-stroke-selected)) / 2
|
|
17536
17887
|
);
|
|
17537
17888
|
height: var(--tab-stroke-selected);
|
|
17538
17889
|
border-radius: 10px;
|
|
@@ -17774,11 +18125,16 @@ color: var(--checkbox-stroke-hover);
|
|
|
17774
18125
|
flex: 1 1 auto;
|
|
17775
18126
|
flex-direction: row;
|
|
17776
18127
|
align-items: center;
|
|
17777
|
-
gap: var(--
|
|
18128
|
+
gap: var(--apex-spacing-4);
|
|
17778
18129
|
min-width: 0;
|
|
17779
18130
|
box-sizing: border-box;
|
|
17780
18131
|
}
|
|
17781
18132
|
|
|
18133
|
+
.apex-tree__content:has(> .apex-tree__title-zone[data-highlighted]:not([data-selected])) {
|
|
18134
|
+
border-radius: var(--dropdown-radius-item);
|
|
18135
|
+
background-color: var(--dropdown-fill-hover);
|
|
18136
|
+
}
|
|
18137
|
+
|
|
17782
18138
|
/* ── 分区交互(对齐 dropdown.css 项态,但限定在 .apex-tree 内)──────────── */
|
|
17783
18139
|
|
|
17784
18140
|
.apex-tree .apex-tree__zone {
|
|
@@ -17834,6 +18190,13 @@ color: var(--checkbox-stroke-hover);
|
|
|
17834
18190
|
color: var(--dropdown-text-hover);
|
|
17835
18191
|
}
|
|
17836
18192
|
|
|
18193
|
+
.apex-tree
|
|
18194
|
+
.apex-tree__title-zone.apex-tree__zone[data-highlighted]:not([data-disabled]):not(
|
|
18195
|
+
[data-selected]
|
|
18196
|
+
) {
|
|
18197
|
+
background-color: var(--dropdown-fill-default);
|
|
18198
|
+
}
|
|
18199
|
+
|
|
17837
18200
|
.apex-tree .apex-tree__zone:active:not([data-disabled]):not([data-selected]) {
|
|
17838
18201
|
background-color: var(--dropdown-fill-active);
|
|
17839
18202
|
color: var(--dropdown-text-active);
|
|
@@ -17875,8 +18238,10 @@ color: var(--checkbox-stroke-hover);
|
|
|
17875
18238
|
min-width: 0;
|
|
17876
18239
|
max-width: none;
|
|
17877
18240
|
justify-content: flex-start;
|
|
17878
|
-
gap: var(--
|
|
17879
|
-
|
|
18241
|
+
gap: var(--apex-spacing-4);
|
|
18242
|
+
/* The row already supplies the design-system content gap. Keep the title's
|
|
18243
|
+
hit area padded on the trailing side without widening checkbox-to-text. */
|
|
18244
|
+
padding: 0 var(--dropdown-spacing-item-padding-x-item) 0 0;
|
|
17880
18245
|
}
|
|
17881
18246
|
|
|
17882
18247
|
.apex-tree[data-block-node='true'] .apex-tree__title-zone {
|
|
@@ -18385,19 +18750,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
18385
18750
|
}
|
|
18386
18751
|
|
|
18387
18752
|
.apex-input__inner[data-readonly]:not([data-disabled]) {
|
|
18388
|
-
background-color: var(--input-fill-
|
|
18389
|
-
border-color: var(--input-stroke-
|
|
18390
|
-
color: var(--input-text-filled-
|
|
18391
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
18753
|
+
background-color: var(--input-fill-disabled);
|
|
18754
|
+
border-color: var(--input-stroke-disabled);
|
|
18755
|
+
color: var(--input-text-filled-disabled);
|
|
18756
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
18392
18757
|
cursor: default;
|
|
18393
18758
|
}
|
|
18394
18759
|
|
|
18395
18760
|
.apex-input__inner[data-readonly]:not([data-disabled]):hover,
|
|
18396
18761
|
.apex-input__inner[data-readonly]:not([data-disabled]):focus-within {
|
|
18397
|
-
background-color: var(--input-fill-
|
|
18398
|
-
border-color: var(--input-stroke-
|
|
18399
|
-
color: var(--input-text-filled-
|
|
18400
|
-
--input-autofill-text-color: var(--input-text-filled-
|
|
18762
|
+
background-color: var(--input-fill-disabled);
|
|
18763
|
+
border-color: var(--input-stroke-disabled);
|
|
18764
|
+
color: var(--input-text-filled-disabled);
|
|
18765
|
+
--input-autofill-text-color: var(--input-text-filled-disabled);
|
|
18401
18766
|
}
|
|
18402
18767
|
|
|
18403
18768
|
/* ── Textarea ────────────────────────────────────────────────────────────── */
|
|
@@ -18531,11 +18896,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
18531
18896
|
|
|
18532
18897
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field {
|
|
18533
18898
|
cursor: default;
|
|
18534
|
-
color: var(--input-text-filled-
|
|
18899
|
+
color: var(--input-text-filled-disabled);
|
|
18535
18900
|
}
|
|
18536
18901
|
|
|
18537
18902
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__field::placeholder {
|
|
18538
|
-
color: var(--input-text-placeholder-
|
|
18903
|
+
color: var(--input-text-placeholder-disabled);
|
|
18539
18904
|
}
|
|
18540
18905
|
|
|
18541
18906
|
/* ── Prefix / suffix / count ─────────────────────────────────────────────── */
|
|
@@ -18587,7 +18952,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
18587
18952
|
|
|
18588
18953
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__prefix,
|
|
18589
18954
|
.apex-input__inner[data-readonly]:not([data-disabled]) .apex-input__suffix {
|
|
18590
|
-
color: var(--input-icon-
|
|
18955
|
+
color: var(--input-icon-disabled);
|
|
18591
18956
|
}
|
|
18592
18957
|
|
|
18593
18958
|
.apex-input__count {
|
|
@@ -18611,12 +18976,12 @@ color: var(--checkbox-stroke-hover);
|
|
|
18611
18976
|
color: var(--apex-text-error-alpha-primary);
|
|
18612
18977
|
}
|
|
18613
18978
|
|
|
18614
|
-
.apex-input__inner[data-disabled] .apex-input__count {
|
|
18979
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count {
|
|
18615
18980
|
color: var(--input-text-filled-disabled);
|
|
18616
18981
|
}
|
|
18617
18982
|
|
|
18618
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
18619
|
-
.apex-input__inner[data-disabled] .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
18983
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit] .apex-input__count-current,
|
|
18984
|
+
.apex-input__inner:is([data-disabled], [data-readonly]) .apex-input__count[data-at-limit]:not(:has(.apex-input__count-current)) {
|
|
18620
18985
|
color: var(--input-text-filled-disabled);
|
|
18621
18986
|
}
|
|
18622
18987
|
|
|
@@ -18710,11 +19075,16 @@ color: var(--checkbox-stroke-hover);
|
|
|
18710
19075
|
flex: 1 1 auto;
|
|
18711
19076
|
flex-direction: row;
|
|
18712
19077
|
align-items: center;
|
|
18713
|
-
gap: var(--
|
|
19078
|
+
gap: var(--apex-spacing-4);
|
|
18714
19079
|
min-width: 0;
|
|
18715
19080
|
box-sizing: border-box;
|
|
18716
19081
|
}
|
|
18717
19082
|
|
|
19083
|
+
.apex-tree__content:has(> .apex-tree__title-zone[data-highlighted]:not([data-selected])) {
|
|
19084
|
+
border-radius: var(--dropdown-radius-item);
|
|
19085
|
+
background-color: var(--dropdown-fill-hover);
|
|
19086
|
+
}
|
|
19087
|
+
|
|
18718
19088
|
/* ── 分区交互(对齐 dropdown.css 项态,但限定在 .apex-tree 内)──────────── */
|
|
18719
19089
|
|
|
18720
19090
|
.apex-tree .apex-tree__zone {
|
|
@@ -18771,6 +19141,13 @@ color: var(--checkbox-stroke-hover);
|
|
|
18771
19141
|
color: var(--dropdown-text-hover);
|
|
18772
19142
|
}
|
|
18773
19143
|
|
|
19144
|
+
.apex-tree
|
|
19145
|
+
.apex-tree__title-zone.apex-tree__zone[data-highlighted]:not([data-disabled]):not(
|
|
19146
|
+
[data-selected]
|
|
19147
|
+
) {
|
|
19148
|
+
background-color: var(--dropdown-fill-default);
|
|
19149
|
+
}
|
|
19150
|
+
|
|
18774
19151
|
.apex-tree .apex-tree__zone:active:not([data-disabled]):not([data-selected]) {
|
|
18775
19152
|
background-color: var(--dropdown-fill-active);
|
|
18776
19153
|
color: var(--dropdown-text-active);
|
|
@@ -18814,8 +19191,10 @@ color: var(--checkbox-stroke-hover);
|
|
|
18814
19191
|
min-width: 0;
|
|
18815
19192
|
max-width: none;
|
|
18816
19193
|
justify-content: flex-start;
|
|
18817
|
-
gap: var(--
|
|
18818
|
-
|
|
19194
|
+
gap: var(--apex-spacing-4);
|
|
19195
|
+
/* The row already supplies the design-system content gap. Keep the title's
|
|
19196
|
+
hit area padded on the trailing side without widening checkbox-to-text. */
|
|
19197
|
+
padding: 0 var(--dropdown-spacing-item-padding-x-item) 0 0;
|
|
18819
19198
|
}
|
|
18820
19199
|
|
|
18821
19200
|
.apex-tree[data-block-node='true'] .apex-tree__title-zone {
|
|
@@ -18907,14 +19286,14 @@ color: var(--checkbox-stroke-hover);
|
|
|
18907
19286
|
pointer-events: auto;
|
|
18908
19287
|
}
|
|
18909
19288
|
|
|
18910
|
-
/*
|
|
19289
|
+
/* 只读沿用 disabled 视觉。 */
|
|
18911
19290
|
|
|
18912
19291
|
.apex-tree-select__selector[data-readonly]:not([data-disabled]) .apex-input__inner,
|
|
18913
19292
|
.apex-tree-select__selector[data-readonly]:not([data-disabled]):hover .apex-input__inner,
|
|
18914
19293
|
.apex-tree-select__selector[data-readonly]:not([data-disabled]):focus-within .apex-input__inner {
|
|
18915
|
-
background-color: var(--input-fill-
|
|
18916
|
-
border-color: var(--input-stroke-
|
|
18917
|
-
color: var(--input-text-
|
|
19294
|
+
background-color: var(--input-fill-disabled);
|
|
19295
|
+
border-color: var(--input-stroke-disabled);
|
|
19296
|
+
color: var(--input-text-filled-disabled);
|
|
18918
19297
|
}
|
|
18919
19298
|
|
|
18920
19299
|
.apex-tree-select__selection,
|
|
@@ -18931,10 +19310,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
18931
19310
|
color: inherit;
|
|
18932
19311
|
}
|
|
18933
19312
|
|
|
18934
|
-
.apex-tree-select__selector:not([data-disabled]):not([data-state='open']):not(:focus-within)
|
|
18935
|
-
.apex-tree-select__selection[data-selected]
|
|
18936
|
-
.apex-typography__content,
|
|
18937
|
-
.apex-tree-select__selector[data-readonly]:not([data-disabled]):not([data-state='open'])
|
|
19313
|
+
.apex-tree-select__selector:not([data-disabled]):not([data-readonly]):not([data-state='open']):not(:focus-within)
|
|
18938
19314
|
.apex-tree-select__selection[data-selected]
|
|
18939
19315
|
.apex-typography__content {
|
|
18940
19316
|
color: var(--input-text-filled-default);
|
|
@@ -19022,6 +19398,19 @@ color: var(--checkbox-stroke-hover);
|
|
|
19022
19398
|
color: var(--input-text-placeholder-disabled);
|
|
19023
19399
|
}
|
|
19024
19400
|
|
|
19401
|
+
.apex-tree-select__selector.apex-input[data-readonly]:not([data-disabled])
|
|
19402
|
+
.apex-tree-select__placeholder,
|
|
19403
|
+
.apex-tree-select__selector.apex-input[data-readonly]:not([data-disabled])
|
|
19404
|
+
.apex-tree-select__search::placeholder {
|
|
19405
|
+
color: var(--input-text-placeholder-disabled);
|
|
19406
|
+
}
|
|
19407
|
+
|
|
19408
|
+
.apex-tree-select__selector:is([data-disabled], [data-readonly])
|
|
19409
|
+
.apex-tree-select__selection[data-selected]
|
|
19410
|
+
.apex-typography__content {
|
|
19411
|
+
color: var(--input-text-filled-disabled);
|
|
19412
|
+
}
|
|
19413
|
+
|
|
19025
19414
|
.apex-tree-select__selector
|
|
19026
19415
|
.apex-input__inner:has(
|
|
19027
19416
|
> .apex-tree-select__search:not(.apex-tree-select__search--hidden)
|
|
@@ -19082,12 +19471,26 @@ color: var(--checkbox-stroke-hover);
|
|
|
19082
19471
|
color: var(--input-icon-disabled);
|
|
19083
19472
|
}
|
|
19084
19473
|
|
|
19474
|
+
.apex-tree-select__selector.apex-input[data-readonly]:not([data-disabled]) .apex-tree-select__prefix,
|
|
19475
|
+
.apex-tree-select__selector.apex-input[data-readonly]:not([data-disabled]) .apex-tree-select__suffix {
|
|
19476
|
+
color: var(--input-icon-disabled);
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19085
19479
|
.apex-tree-select__suffix {
|
|
19086
19480
|
transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
19087
19481
|
}
|
|
19088
19482
|
|
|
19483
|
+
/* 尺寸显式锚到 --input-icon-icon(md/lg 16px、sm 14px):BEM 类是 __suffix 而非
|
|
19484
|
+
input.css 的 .apex-input__suffix,拿不到那边的 svg 尺寸规则,否则 svg 的
|
|
19485
|
+
width="1em" 会跟随继承字号渲染成 14px,比设计稿小 2px。
|
|
19486
|
+
注意 Clear Button 走 --clear-size-size(恒 14px),与此处不同轨。 */
|
|
19487
|
+
|
|
19488
|
+
.apex-tree-select__prefix svg,
|
|
19089
19489
|
.apex-tree-select__suffix svg {
|
|
19090
19490
|
display: block;
|
|
19491
|
+
flex-shrink: 0;
|
|
19492
|
+
width: var(--input-icon-icon);
|
|
19493
|
+
height: var(--input-icon-icon);
|
|
19091
19494
|
}
|
|
19092
19495
|
|
|
19093
19496
|
.apex-tree-select__selector[data-state='open'] .apex-tree-select__suffix {
|
|
@@ -19148,6 +19551,36 @@ color: var(--checkbox-stroke-hover);
|
|
|
19148
19551
|
padding-inline: 0;
|
|
19149
19552
|
}
|
|
19150
19553
|
|
|
19554
|
+
.apex-tree-select__tree
|
|
19555
|
+
.apex-tree__content:has([data-slot='tree-checkbox'][data-highlighted]:not([data-disabled])) {
|
|
19556
|
+
border-radius: var(--dropdown-radius-item);
|
|
19557
|
+
background-color: var(--dropdown-fill-hover);
|
|
19558
|
+
}
|
|
19559
|
+
|
|
19560
|
+
.apex-tree-select__tree
|
|
19561
|
+
.apex-tree__content:hover
|
|
19562
|
+
.apex-checkbox:not([data-disabled])
|
|
19563
|
+
.apex-checkbox__control[data-state='unchecked']:not(:active)
|
|
19564
|
+
.apex-checkbox__box {
|
|
19565
|
+
color: var(--checkbox-stroke-hover);
|
|
19566
|
+
}
|
|
19567
|
+
|
|
19568
|
+
.apex-tree-select__tree
|
|
19569
|
+
.apex-tree__content:hover
|
|
19570
|
+
.apex-checkbox:not([data-disabled])
|
|
19571
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate']):not(:active)
|
|
19572
|
+
.apex-checkbox__box {
|
|
19573
|
+
color: var(--checkbox-stroke-check-hover);
|
|
19574
|
+
}
|
|
19575
|
+
|
|
19576
|
+
.apex-tree-select__tree
|
|
19577
|
+
.apex-tree__content:hover
|
|
19578
|
+
.apex-checkbox:not([data-disabled])
|
|
19579
|
+
.apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate']):not(:active)
|
|
19580
|
+
.apex-checkbox__box-path--filled {
|
|
19581
|
+
fill: var(--checkbox-fill-check-hover);
|
|
19582
|
+
}
|
|
19583
|
+
|
|
19151
19584
|
.apex-tree-select__empty {
|
|
19152
19585
|
display: flex;
|
|
19153
19586
|
align-items: center;
|
|
@@ -19176,6 +19609,20 @@ color: var(--checkbox-stroke-hover);
|
|
|
19176
19609
|
flex-wrap: wrap;
|
|
19177
19610
|
}
|
|
19178
19611
|
|
|
19612
|
+
/* Normalize legacy generated disabled token spellings at the component boundary. */
|
|
19613
|
+
.apex-upload.apex-item-elevated-upload,
|
|
19614
|
+
.apex-upload.apex-trigger-default-upload,
|
|
19615
|
+
.apex-upload.apex-trigger-elevated-upload {
|
|
19616
|
+
--upload-icon-disabled: var(--upload-icon-disable);
|
|
19617
|
+
--upload-text-caption-disabled: var(--upload-text-caption-diasbled);
|
|
19618
|
+
--upload-text-title-disabled: var(--upload-text-title-diasbled);
|
|
19619
|
+
}
|
|
19620
|
+
|
|
19621
|
+
.apex-upload.apex-picture-upload {
|
|
19622
|
+
--upload-text-disabled: var(--upload-text-diasbled);
|
|
19623
|
+
--upload-text-title-disabled: var(--upload-text-disabled);
|
|
19624
|
+
}
|
|
19625
|
+
|
|
19179
19626
|
.apex-upload__trigger {
|
|
19180
19627
|
box-sizing: border-box;
|
|
19181
19628
|
display: inline-flex;
|
|
@@ -19249,7 +19696,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
19249
19696
|
.apex-upload__trigger[data-disabled] {
|
|
19250
19697
|
pointer-events: none;
|
|
19251
19698
|
cursor: not-allowed;
|
|
19252
|
-
color: var(--upload-text-title-
|
|
19699
|
+
color: var(--upload-text-title-disabled, var(--apex-text-neutral-disabled));
|
|
19253
19700
|
background: var(--upload-fill-disabled);
|
|
19254
19701
|
border-color: var(--upload-stroke-disabled);
|
|
19255
19702
|
}
|
|
@@ -19259,7 +19706,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
19259
19706
|
}
|
|
19260
19707
|
|
|
19261
19708
|
.apex-upload__trigger[data-disabled] .apex-icon {
|
|
19262
|
-
color: var(--upload-icon-
|
|
19709
|
+
color: var(--upload-icon-disabled, var(--apex-icon-neutral-disabled));
|
|
19263
19710
|
}
|
|
19264
19711
|
|
|
19265
19712
|
.apex-upload__list {
|
|
@@ -19356,7 +19803,7 @@ color: var(--checkbox-stroke-hover);
|
|
|
19356
19803
|
flex-wrap: wrap;
|
|
19357
19804
|
justify-content: center;
|
|
19358
19805
|
align-items: center;
|
|
19359
|
-
gap: var(--apex-spacing-
|
|
19806
|
+
gap: var(--apex-spacing-2);
|
|
19360
19807
|
}
|
|
19361
19808
|
|
|
19362
19809
|
.apex-upload__list-item [data-slot='upload-list-item-name'] {
|
|
@@ -19421,6 +19868,27 @@ color: var(--checkbox-stroke-hover);
|
|
|
19421
19868
|
width: 16px;
|
|
19422
19869
|
}
|
|
19423
19870
|
|
|
19871
|
+
.apex-upload__trigger.apex-trigger-md-upload {
|
|
19872
|
+
flex-direction: column;
|
|
19873
|
+
gap: var(--apex-spacing-8);
|
|
19874
|
+
}
|
|
19875
|
+
|
|
19876
|
+
.apex-upload__trigger.apex-trigger-md-upload .apex-upload__default-trigger-icon {
|
|
19877
|
+
width: var(--apex-icon-32);
|
|
19878
|
+
height: var(--apex-icon-32);
|
|
19879
|
+
font-size: var(--apex-icon-32);
|
|
19880
|
+
}
|
|
19881
|
+
|
|
19882
|
+
.apex-upload__trigger.apex-trigger-md-upload:not([data-disabled]) .apex-typography + .apex-typography {
|
|
19883
|
+
color: var(--upload-text-caption-default);
|
|
19884
|
+
font-size: var(--apex-fontsize-12);
|
|
19885
|
+
line-height: var(--apex-fontheight-18);
|
|
19886
|
+
}
|
|
19887
|
+
|
|
19888
|
+
.apex-upload__trigger.apex-trigger-md-upload[data-disabled] .apex-typography {
|
|
19889
|
+
color: inherit;
|
|
19890
|
+
}
|
|
19891
|
+
|
|
19424
19892
|
.apex-upload__action-icon {
|
|
19425
19893
|
flex-shrink: 0;
|
|
19426
19894
|
object-fit: contain;
|
|
@@ -19461,11 +19929,11 @@ color: var(--checkbox-stroke-hover);
|
|
|
19461
19929
|
.apex-upload__list-item:is(.apex-item-default-upload, .apex-item-elevated-upload)[data-disabled]:not(
|
|
19462
19930
|
[data-status='uploading']
|
|
19463
19931
|
):not([data-status='error']) {
|
|
19464
|
-
--upload-item-caption-color: var(--upload-text-caption-disabled
|
|
19465
|
-
--upload-item-icon-color: var(--upload-icon-disabled
|
|
19932
|
+
--upload-item-caption-color: var(--upload-text-caption-disabled);
|
|
19933
|
+
--upload-item-icon-color: var(--upload-icon-disabled);
|
|
19466
19934
|
background: var(--upload-fill-disabled);
|
|
19467
19935
|
border-color: var(--upload-stroke-disabled);
|
|
19468
|
-
color: var(--upload-text-title-disabled
|
|
19936
|
+
color: var(--upload-text-title-disabled);
|
|
19469
19937
|
}
|
|
19470
19938
|
|
|
19471
19939
|
.apex-upload__list-item:is(.apex-item-default-upload, .apex-item-elevated-upload)[data-status='uploading'] {
|
|
@@ -19591,6 +20059,17 @@ color: var(--checkbox-stroke-hover);
|
|
|
19591
20059
|
box-sizing: border-box;
|
|
19592
20060
|
}
|
|
19593
20061
|
|
|
20062
|
+
.apex-upload__list-item[data-slot='upload-picture-list-item'] .apex-upload__doc-thumb {
|
|
20063
|
+
flex: 0 0 var(--apex-size-40);
|
|
20064
|
+
width: var(--apex-size-40);
|
|
20065
|
+
height: var(--apex-size-40);
|
|
20066
|
+
padding: 0;
|
|
20067
|
+
}
|
|
20068
|
+
|
|
20069
|
+
.apex-upload__list-item[data-slot='upload-picture-list-item'] .apex-upload__doc-thumb-ext {
|
|
20070
|
+
display: none;
|
|
20071
|
+
}
|
|
20072
|
+
|
|
19594
20073
|
.apex-upload__doc-thumb-icon {
|
|
19595
20074
|
color: var(--upload-icon-default, var(--apex-icon-neutral-secondary));
|
|
19596
20075
|
}
|
|
@@ -19608,12 +20087,9 @@ color: var(--checkbox-stroke-hover);
|
|
|
19608
20087
|
|
|
19609
20088
|
/* Keep file status colors; only disabled mutation actions use disabled tokens. */
|
|
19610
20089
|
.apex-upload__list-item[data-disabled] .apex-upload__text-btn.apex-button:disabled {
|
|
19611
|
-
color: var(
|
|
19612
|
-
--upload-text-title-disabled,
|
|
19613
|
-
var(--upload-text-title-diasbled, var(--upload-text-diasbled))
|
|
19614
|
-
);
|
|
20090
|
+
color: var(--upload-text-title-disabled, var(--apex-text-neutral-disabled));
|
|
19615
20091
|
}
|
|
19616
20092
|
|
|
19617
20093
|
.apex-upload__list-item[data-disabled] .apex-upload__text-btn:disabled .apex-button__icon {
|
|
19618
|
-
color: var(--upload-icon-disabled, var(--
|
|
20094
|
+
color: var(--upload-icon-disabled, var(--apex-icon-neutral-disabled));
|
|
19619
20095
|
}
|