@databricks/design-system 2.0.4 → 2.0.5
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/CHANGELOG.md +24 -0
- package/dist/RHFControlledTypeaheadComboboxV2-DsH-nIEk.js +172 -0
- package/dist/RHFControlledTypeaheadComboboxV2-DsH-nIEk.js.map +1 -0
- package/dist/{WizardStepContentWrapper-8bs2FwRi.js → WizardStepContentWrapper-Bq1wm0V7.js} +554 -404
- package/dist/WizardStepContentWrapper-Bq1wm0V7.js.map +1 -0
- package/dist/index-BRAVZg-S.js +8308 -0
- package/dist/index-BRAVZg-S.js.map +1 -0
- package/dist/index-dark.css +364 -97
- package/dist/index-dark.mitigated.css +367 -100
- package/dist/index.css +684 -117
- package/dist/index.js +25 -8146
- package/dist/index.js.map +1 -1
- package/dist/index.mitigated.css +688 -121
- package/dist/patterns.js +1 -1
- package/dist-types/design-system/Breadcrumb/Breadcrumb.d.ts +10 -3
- package/dist-types/design-system/Button/AntDButtonInternal.d.ts +21 -0
- package/dist-types/design-system/Button/Button.d.ts +3 -19
- package/dist-types/design-system/Button/NativeButton.d.ts +3 -0
- package/dist-types/design-system/Button/getBtnClassName.d.ts +17 -0
- package/dist-types/design-system/Button/index.d.ts +1 -0
- package/dist-types/design-system/DesignSystemProvider/DesignTokenScopeWithEmotionTheme.d.ts +4 -4
- package/dist-types/design-system/FormV2/RHFAdapters.d.ts +8 -0
- package/dist-types/design-system/FormV2/RHFControlledTypeaheadComboboxV2.d.ts +58 -0
- package/dist-types/design-system/Icon/Icon.d.ts +2 -2
- package/dist-types/design-system/Icon/__generated/icons/ColorMappingEditIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/ColorMappingIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/MicrophoneIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/MicrophoneOffIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/OperatorIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/VoiceModeIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/index.d.ts +6 -0
- package/dist-types/design-system/Overflow/Overflow.d.ts +3 -1
- package/dist-types/design-system/Overflow/OverflowPopover.d.ts +2 -1
- package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxMenu.d.ts +2 -0
- package/dist-types/design-system/shape-tokens.d.ts +1 -1
- package/dist-types/test-utils/rtl/buttonVariants.d.ts +4 -4
- package/dist-types/~patterns/Wizard/WizardStepNavigation.d.ts +9 -0
- package/dist-types/~patterns/Wizard/index.d.ts +1 -0
- package/package.json +6 -4
- package/dist/WizardStepContentWrapper-8bs2FwRi.js.map +0 -1
|
@@ -16115,113 +16115,140 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16115
16115
|
|
|
16116
16116
|
:where(.du-bois-dark) {
|
|
16117
16117
|
/* Neutral */
|
|
16118
|
-
--db-
|
|
16119
|
-
--db-subtle
|
|
16120
|
-
--db-strong
|
|
16118
|
+
--db-surface-base: var(--db-color-background-primary);
|
|
16119
|
+
--db-surface-subtle: var(--db-color-background-secondary);
|
|
16120
|
+
--db-surface-strong: initial; /* TODO */
|
|
16121
16121
|
|
|
16122
|
-
--db-
|
|
16123
|
-
--db-
|
|
16124
|
-
--db-
|
|
16122
|
+
--db-surface-inverse: initial; /* TODO */
|
|
16123
|
+
--db-surface-active: var(--db-color-table-background-selected-default);
|
|
16124
|
+
--db-surface-hover: var(--db-color-table-background-unselected-hover);
|
|
16125
|
+
--db-surface-disabled: var(--db-color-action-disabled-background);
|
|
16125
16126
|
|
|
16126
|
-
--db-
|
|
16127
|
-
--db-
|
|
16128
|
-
--db-
|
|
16127
|
+
--db-surface-selected: var(--db-color-table-background-selected-hover);
|
|
16128
|
+
--db-surface-selected-hover: initial; /* TODO */;
|
|
16129
|
+
--db-surface-selected-active: initial; /* TODO */;
|
|
16129
16130
|
|
|
16130
|
-
|
|
16131
|
-
--db-
|
|
16132
|
-
|
|
16133
|
-
--db-neutral-surface-disabled: var(--db-color-action-disabled-background);
|
|
16134
|
-
--db-text-on-neutral-surface-disabled: var(--db-color-action-disabled-text);
|
|
16131
|
+
/* Surface alpha-blending modifiers */
|
|
16132
|
+
--db-surface-backdrop: initial; /* TODO */;
|
|
16133
|
+
/* TODO: surface-tint for containers that distinguish some content */
|
|
16135
16134
|
|
|
16136
|
-
|
|
16137
|
-
--db-
|
|
16138
|
-
--db-
|
|
16139
|
-
--db-
|
|
16135
|
+
--db-text-base: var(--db-color-text-primary);
|
|
16136
|
+
--db-text-subtle: var(--db-color-text-secondary);
|
|
16137
|
+
--db-text-strong: initial; /* TODO */
|
|
16138
|
+
--db-text-disabled: var(--db-color-action-disabled-text);
|
|
16139
|
+
--db-text-suggestion: initial; /* TODO - e.g. input placeholder, loading text */
|
|
16140
|
+
--db-text-inverse: initial; /* TODO, stark contrast e.g. tooltip text */
|
|
16140
16141
|
|
|
16141
|
-
--db-
|
|
16142
|
-
--db-
|
|
16143
|
-
--db-
|
|
16144
|
-
--db-
|
|
16142
|
+
--db-border-base: var(--db-color-border);
|
|
16143
|
+
--db-border-subtle: initial; /* TODO */
|
|
16144
|
+
--db-border-strong: var(--db-color-border-accessible);
|
|
16145
|
+
--db-border-hover: initial; /* TODO */
|
|
16146
|
+
--db-border-active: initial; /* TODO */
|
|
16147
|
+
--db-border-disabled: initial; /* TODO */
|
|
16145
16148
|
|
|
16146
|
-
|
|
16147
|
-
--db-
|
|
16148
|
-
--db-
|
|
16149
|
+
/* Accent */
|
|
16150
|
+
--db-accent-surface: var(--db-color-action-primary-background-default);
|
|
16151
|
+
--db-accent-surface-subtle: var(--db-color-action-default-background-hover);
|
|
16152
|
+
--db-accent-surface-strong: var(--db-color-action-primary-background-hover);
|
|
16149
16153
|
|
|
16150
|
-
--db-
|
|
16151
|
-
--db-
|
|
16152
|
-
--db-
|
|
16153
|
-
--db-primary-surface-disabled: var(--db-color-action-disabled-background);
|
|
16154
|
-
--db-text-on-primary-surface-disabled: var(--db-color-action-disabled-text);
|
|
16154
|
+
--db-accent-surface-hover: var(--db-color-action-primary-background-hover);
|
|
16155
|
+
--db-accent-surface-active: initial; /* TODO */
|
|
16156
|
+
--db-accent-surface-selected: var(--db-color-action-primary-background-press);
|
|
16155
16157
|
|
|
16156
|
-
/*
|
|
16157
|
-
--db-
|
|
16158
|
-
--db-
|
|
16159
|
-
--db-strong-error-surface: var(--db-color-action-danger-primary-background-hover);
|
|
16158
|
+
/* In the current design, the text color for an accent surface does not change with hover, active, etc. */
|
|
16159
|
+
--db-accent-text: var(--db-color-action-link-default);
|
|
16160
|
+
--db-text-on-accent-surface: var(--db-color-action-primary-text-default);
|
|
16160
16161
|
|
|
16161
|
-
--db-
|
|
16162
|
-
--db-
|
|
16163
|
-
--db-
|
|
16164
|
-
--db-strong-text-on-error-surface: var(--db-color-action-danger-primary-text);
|
|
16162
|
+
--db-accent-border: var(--db-color-action-primary-background-default);
|
|
16163
|
+
--db-accent-border-hover: var(--db-color-action-primary-background-press);
|
|
16164
|
+
--db-accent-border-active: initial; /* TODO */;
|
|
16165
16165
|
|
|
16166
|
-
|
|
16167
|
-
--db-
|
|
16168
|
-
--db-
|
|
16166
|
+
/* Negative */
|
|
16167
|
+
--db-negative-surface: var(--db-color-action-danger-primary-background-default);
|
|
16168
|
+
--db-negative-surface-subtle: var(--db-color-background-danger);
|
|
16169
|
+
--db-negative-surface-strong: var(--db-color-action-danger-primary-background-hover);
|
|
16169
16170
|
|
|
16170
|
-
--db-
|
|
16171
|
-
--db-
|
|
16172
|
-
--db-
|
|
16173
|
-
--db-error-surface-disabled: var(--db-color-action-disabled-background);
|
|
16174
|
-
--db-text-on-error-surface-disabled: var(--db-color-action-disabled-text);
|
|
16171
|
+
--db-negative-surface-hover: var(--db-color-action-danger-primary-background-hover);
|
|
16172
|
+
--db-negative-surface-active: initial; /* TODO */
|
|
16173
|
+
--db-negative-surface-selected: var(--db-color-action-danger-primary-background-press);
|
|
16175
16174
|
|
|
16176
|
-
|
|
16177
|
-
--db-
|
|
16178
|
-
--db-subtle-warning-surface: var(--db-color-background-warning);
|
|
16175
|
+
--db-negative-text: var(--db-color-text-validation-danger);
|
|
16176
|
+
--db-text-on-negative-surface: var(--db-color-action-danger-primary-text);
|
|
16179
16177
|
|
|
16180
|
-
--db-
|
|
16181
|
-
--db-
|
|
16178
|
+
--db-negative-border: var(--db-color-action-danger-default-border-default);
|
|
16179
|
+
--db-negative-border-hover: initial; /* TODO */
|
|
16180
|
+
--db-negative-border-active: initial; /* TODO */
|
|
16182
16181
|
|
|
16183
|
-
|
|
16182
|
+
/* Caution */
|
|
16183
|
+
--db-caution-surface: initial; /* TODO */
|
|
16184
|
+
--db-caution-surface-subtle: var(--db-color-background-warning);
|
|
16185
|
+
--db-caution-surface-strong: initial; /* TODO */
|
|
16184
16186
|
|
|
16185
|
-
/*
|
|
16186
|
-
--db-
|
|
16187
|
-
--db-
|
|
16187
|
+
--db-caution-surface-hover: initial; /* TODO */
|
|
16188
|
+
--db-caution-surface-active: initial; /* TODO */
|
|
16189
|
+
--db-caution-surface-selected: initial; /* TODO */
|
|
16188
16190
|
|
|
16189
|
-
--db-text-
|
|
16190
|
-
--db-
|
|
16191
|
+
--db-caution-text: var(--db-color-text-validation-warning);
|
|
16192
|
+
--db-text-on-caution-surface: initial; /* TODO */
|
|
16191
16193
|
|
|
16192
|
-
--db-
|
|
16194
|
+
--db-caution-border: var(--db-color-border-warning);
|
|
16195
|
+
--db-caution-border-hover: initial; /* TODO */
|
|
16196
|
+
--db-caution-border-active: initial; /* TODO */
|
|
16197
|
+
|
|
16198
|
+
/* Positive */
|
|
16199
|
+
--db-positive-surface: initial; /* TODO */
|
|
16200
|
+
--db-positive-surface-subtle: var(--db-color-background-success);
|
|
16201
|
+
--db-positive-surface-strong: initial; /* TODO */
|
|
16202
|
+
|
|
16203
|
+
--db-positive-surface-hover: initial; /* TODO */
|
|
16204
|
+
--db-positive-surface-active: initial; /* TODO */
|
|
16205
|
+
--db-positive-surface-selected: initial; /* TODO */
|
|
16206
|
+
|
|
16207
|
+
--db-positive-text: var(--db-color-text-validation-success);
|
|
16208
|
+
--db-text-on-positive-surface: initial; /* TODO */
|
|
16209
|
+
|
|
16210
|
+
--db-positive-border: initial; /* TODO */
|
|
16211
|
+
--db-positive-border-hover: initial; /* TODO */
|
|
16212
|
+
--db-positive-border-active: initial; /* TODO */
|
|
16193
16213
|
}
|
|
16194
16214
|
|
|
16195
16215
|
:where(.du-bois-dark) {
|
|
16196
16216
|
--db-layout-unit: 0.25rem; /* 4px */
|
|
16197
16217
|
--db-density-scalar: 1;
|
|
16198
16218
|
--db-size-scalar: 1;
|
|
16199
|
-
--db-
|
|
16219
|
+
--db-space-scalar: 1;
|
|
16200
16220
|
|
|
16201
16221
|
/* Size and spacing are the same steps, but with their own scalars included in the calc. */
|
|
16202
16222
|
|
|
16203
|
-
--db-size-
|
|
16204
|
-
--db-size-
|
|
16205
|
-
--db-size-
|
|
16206
|
-
--db-size-
|
|
16207
|
-
--db-size-
|
|
16208
|
-
--db-size-
|
|
16223
|
+
--db-size-1: calc(var(--db-layout-unit) * 1 * var(--db-density-scalar) * var(--db-size-scalar)); /* 4px */
|
|
16224
|
+
--db-size-2: calc(var(--db-layout-unit) * 2 * var(--db-density-scalar) * var(--db-size-scalar)); /* 8px */
|
|
16225
|
+
--db-size-3: calc(var(--db-layout-unit) * 3 * var(--db-density-scalar) * var(--db-size-scalar)); /* 12px */
|
|
16226
|
+
--db-size-4: calc(var(--db-layout-unit) * 4 * var(--db-density-scalar) * var(--db-size-scalar)); /* 16px */
|
|
16227
|
+
--db-size-5: calc(var(--db-layout-unit) * 5 * var(--db-density-scalar) * var(--db-size-scalar)); /* 20px */
|
|
16228
|
+
--db-size-6: calc(var(--db-layout-unit) * 6 * var(--db-density-scalar) * var(--db-size-scalar)); /* 24px */
|
|
16229
|
+
--db-size-7: calc(var(--db-layout-unit) * 7 * var(--db-density-scalar) * var(--db-size-scalar)); /* 28px */
|
|
16230
|
+
--db-size-8: calc(var(--db-layout-unit) * 8 * var(--db-density-scalar) * var(--db-size-scalar)); /* 32px */
|
|
16231
|
+
--db-size-10: calc(var(--db-layout-unit) * 10 * var(--db-density-scalar) * var(--db-size-scalar)); /* 40px */
|
|
16232
|
+
--db-size-12: calc(var(--db-layout-unit) * 12 * var(--db-density-scalar) * var(--db-size-scalar)); /* 48px */
|
|
16209
16233
|
|
|
16210
|
-
--db-
|
|
16211
|
-
--db-
|
|
16212
|
-
--db-
|
|
16213
|
-
--db-
|
|
16214
|
-
--db-
|
|
16215
|
-
--db-
|
|
16234
|
+
--db-space-0-5: calc(var(--db-layout-unit) * 0.5 * var(--db-density-scalar) * var(--db-space-scalar)); /* 2px */
|
|
16235
|
+
--db-space-1: calc(var(--db-layout-unit) * 1 * var(--db-density-scalar) * var(--db-space-scalar)); /* 4px */
|
|
16236
|
+
--db-space-2: calc(var(--db-layout-unit) * 2 * var(--db-density-scalar) * var(--db-space-scalar)); /* 8px */
|
|
16237
|
+
--db-space-3: calc(var(--db-layout-unit) * 3 * var(--db-density-scalar) * var(--db-space-scalar)); /* 12px */
|
|
16238
|
+
--db-space-4: calc(var(--db-layout-unit) * 4 * var(--db-density-scalar) * var(--db-space-scalar)); /* 16px */
|
|
16239
|
+
--db-space-6: calc(var(--db-layout-unit) * 6 * var(--db-density-scalar) * var(--db-space-scalar)); /* 24px */
|
|
16240
|
+
--db-space-8: calc(var(--db-layout-unit) * 8 * var(--db-density-scalar) * var(--db-space-scalar)); /* 32px */
|
|
16241
|
+
--db-space-10: calc(var(--db-layout-unit) * 10 * var(--db-density-scalar) * var(--db-space-scalar)); /* 40px */
|
|
16216
16242
|
}
|
|
16217
16243
|
|
|
16218
16244
|
:where(.du-bois-dark) {
|
|
16219
16245
|
--db-font-family:
|
|
16220
16246
|
"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
16247
|
+
--db-numeric-font-family: var(--db-font-family);
|
|
16221
16248
|
--db-mono-font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
16222
16249
|
|
|
16223
|
-
--db-font-size-
|
|
16224
|
-
--db-font-size-
|
|
16250
|
+
--db-font-size-xs: 0.6875rem; /* 11px */
|
|
16251
|
+
--db-font-size-sm: 0.75rem; /* 12px */
|
|
16225
16252
|
--db-font-size-base: 0.8125rem; /* 13px */
|
|
16226
16253
|
--db-font-size-md: 0.875rem; /* 14px */
|
|
16227
16254
|
--db-font-size-lg: 0.9375rem; /* 15px */
|
|
@@ -16230,6 +16257,8 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16230
16257
|
--db-font-size-3xl: 1.5rem; /* 24px */
|
|
16231
16258
|
--db-font-size-4xl: 2rem; /* 32px */
|
|
16232
16259
|
|
|
16260
|
+
/* TODO: media query for mobile font sizes */
|
|
16261
|
+
|
|
16233
16262
|
/* Du Bois v1 ships 400 and 600 only */
|
|
16234
16263
|
--db-font-weight-normal: 400;
|
|
16235
16264
|
--db-font-weight-medium: initial; /* TODO */
|
|
@@ -16247,6 +16276,16 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16247
16276
|
:where(.du-bois-dark) {
|
|
16248
16277
|
--db-focus-ring-color: var(--db-color-action-default-border-focus);
|
|
16249
16278
|
--db-focus-ring-width: 2px;
|
|
16279
|
+
--db-focus-ring-offset: 2px;
|
|
16280
|
+
}
|
|
16281
|
+
|
|
16282
|
+
:where(.du-bois-dark) {
|
|
16283
|
+
--db-shape-control: 4px;
|
|
16284
|
+
--db-shape-control-large: 999px;
|
|
16285
|
+
--db-shape-container-small: 8px;
|
|
16286
|
+
--db-shape-container-medium: 12px;
|
|
16287
|
+
--db-shape-container-large: 16px;
|
|
16288
|
+
--db-shape-pill: 999px;
|
|
16250
16289
|
}
|
|
16251
16290
|
|
|
16252
16291
|
:where(.du-bois-dark) {
|
|
@@ -16254,31 +16293,31 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16254
16293
|
--db-selection-toggle-border-radius: 4px;
|
|
16255
16294
|
|
|
16256
16295
|
/* Color */
|
|
16257
|
-
--db-selection-toggle-surface: var(--db-
|
|
16258
|
-
--db-selection-toggle-mark: var(--db-text-on-
|
|
16259
|
-
--db-selection-toggle-text: var(--db-text-
|
|
16260
|
-
--db-selection-toggle-border: var(--db-strong
|
|
16261
|
-
|
|
16262
|
-
--db-selection-toggle-surface-hover: var(--db-
|
|
16263
|
-
--db-selection-toggle-surface-press: var(--db-
|
|
16264
|
-
--db-selection-toggle-surface-checked: var(--db-
|
|
16265
|
-
--db-selection-toggle-surface-checked-hover: var(--db-
|
|
16266
|
-
--db-selection-toggle-surface-checked-press: var(--db-
|
|
16267
|
-
--db-selection-toggle-surface-disabled: var(--db-
|
|
16268
|
-
--db-selection-toggle-surface-checked-disabled: var(--db-
|
|
16269
|
-
|
|
16270
|
-
--db-selection-toggle-border-hover: var(--db-
|
|
16271
|
-
--db-selection-toggle-border-press: var(--db-
|
|
16272
|
-
--db-selection-toggle-border-disabled: var(--db-
|
|
16273
|
-
|
|
16274
|
-
--db-selection-toggle-mark-disabled: var(--db-text-
|
|
16275
|
-
--db-selection-toggle-text-disabled: var(--db-text-
|
|
16296
|
+
--db-selection-toggle-surface: var(--db-surface-base);
|
|
16297
|
+
--db-selection-toggle-mark: var(--db-text-on-accent-surface);
|
|
16298
|
+
--db-selection-toggle-text: var(--db-text-base);
|
|
16299
|
+
--db-selection-toggle-border: var(--db-border-strong);
|
|
16300
|
+
|
|
16301
|
+
--db-selection-toggle-surface-hover: var(--db-surface-hover);
|
|
16302
|
+
--db-selection-toggle-surface-press: var(--db-surface-selected);
|
|
16303
|
+
--db-selection-toggle-surface-checked: var(--db-accent-surface);
|
|
16304
|
+
--db-selection-toggle-surface-checked-hover: var(--db-accent-surface-hover);
|
|
16305
|
+
--db-selection-toggle-surface-checked-press: var(--db-accent-surface-selected);
|
|
16306
|
+
--db-selection-toggle-surface-disabled: var(--db-surface-disabled);
|
|
16307
|
+
--db-selection-toggle-surface-checked-disabled: var(--db-surface-disabled);
|
|
16308
|
+
|
|
16309
|
+
--db-selection-toggle-border-hover: var(--db-accent-surface-hover);
|
|
16310
|
+
--db-selection-toggle-border-press: var(--db-accent-surface-selected);
|
|
16311
|
+
--db-selection-toggle-border-disabled: var(--db-border-base);
|
|
16312
|
+
|
|
16313
|
+
--db-selection-toggle-mark-disabled: var(--db-text-disabled);
|
|
16314
|
+
--db-selection-toggle-text-disabled: var(--db-text-disabled);
|
|
16276
16315
|
|
|
16277
16316
|
--db-selection-toggle-shadow-checked: 0 0 0 1px var(--db-color-action-primary-background-default);
|
|
16278
16317
|
|
|
16279
16318
|
/* Density */
|
|
16280
|
-
--db-selection-toggle-size: var(--db-size-
|
|
16281
|
-
--db-selection-toggle-label-spacing: var(--db-
|
|
16319
|
+
--db-selection-toggle-size: var(--db-size-4);
|
|
16320
|
+
--db-selection-toggle-label-spacing: var(--db-space-2);
|
|
16282
16321
|
|
|
16283
16322
|
/* Motion */
|
|
16284
16323
|
--db-selection-toggle-transition-duration: 120ms;
|
|
@@ -16315,8 +16354,8 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16315
16354
|
--db-checkbox-size: var(--db-selection-toggle-size);
|
|
16316
16355
|
--db-checkbox-label-spacing: var(--db-selection-toggle-label-spacing);
|
|
16317
16356
|
--db-checkbox-focus-ring-width: var(--db-focus-ring-width);
|
|
16318
|
-
--db-checkbox-indeterminate-mark-width: var(--db-size-
|
|
16319
|
-
--db-checkbox-indeterminate-mark-height: calc(var(--db-size-
|
|
16357
|
+
--db-checkbox-indeterminate-mark-width: var(--db-size-2); /* 8px */
|
|
16358
|
+
--db-checkbox-indeterminate-mark-height: calc(var(--db-size-1) * 0.75); /* 3px */
|
|
16320
16359
|
|
|
16321
16360
|
/* Motion */
|
|
16322
16361
|
--db-checkbox-transition-duration: var(--db-selection-toggle-transition-duration);
|
|
@@ -16443,7 +16482,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16443
16482
|
/* Density */
|
|
16444
16483
|
--db-radio-size: var(--db-selection-toggle-size);
|
|
16445
16484
|
--db-radio-label-spacing: var(--db-selection-toggle-label-spacing);
|
|
16446
|
-
--db-radio-mark-size: var(--db-size-
|
|
16485
|
+
--db-radio-mark-size: var(--db-size-1);
|
|
16447
16486
|
|
|
16448
16487
|
/* Motion */
|
|
16449
16488
|
--db-radio-transition-duration: var(--db-selection-toggle-transition-duration);
|
|
@@ -16609,8 +16648,8 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16609
16648
|
--db-switch-text-disabled: var(--db-selection-toggle-text-disabled);
|
|
16610
16649
|
|
|
16611
16650
|
/* Density */
|
|
16612
|
-
--db-switch-track-width: calc(var(--db-size-
|
|
16613
|
-
--db-switch-track-height: var(--db-size-
|
|
16651
|
+
--db-switch-track-width: calc(var(--db-size-4) * 1.75); /* 28px */
|
|
16652
|
+
--db-switch-track-height: var(--db-size-4); /* 16px */
|
|
16614
16653
|
--db-switch-thumb-size: var(--db-switch-track-height);
|
|
16615
16654
|
--db-switch-label-spacing: var(--db-selection-toggle-label-spacing);
|
|
16616
16655
|
|
|
@@ -16637,7 +16676,235 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16637
16676
|
/* Target the <Label>'s class, not a bare `label` — that would also match the .db-switch root <label>. */
|
|
16638
16677
|
|
|
16639
16678
|
/* Indent a following hint/message past the track. The class is doubled to out-specify FormMessage's
|
|
16640
|
-
* own margin rule.
|
|
16679
|
+
* own margin rule. Each rule's key (rightmost) selector is a single class, not a multi-item :is(),
|
|
16680
|
+
* so Chromium can hash-reject it instead of attempting the match against every element on every
|
|
16681
|
+
* recalc (the leading/middle :is() groups aren't the key selector, so they're left as-is). */
|
|
16682
|
+
|
|
16683
|
+
/* Component-tier tokens for the native <Button>, grouped by area (density, shape, typography, color).
|
|
16684
|
+
* Colors alias the action-* system tokens; sizes alias the system density scale.
|
|
16685
|
+
*
|
|
16686
|
+
* Follows the mortar/action.css pattern: one semantic set (surface / border / text, each with
|
|
16687
|
+
* -hover / -press / -disabled) whose defaults are the secondary variant. The variant classes that
|
|
16688
|
+
* re-set these tokens per variant live in NativeButton.css; this file declares only tokens. */
|
|
16689
|
+
|
|
16690
|
+
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16691
|
+
* `.du-bois-dark` subtree (or a portal that re-applies the theme class) instead of freezing at the root values. */
|
|
16692
|
+
:where(.du-bois-dark) {
|
|
16693
|
+
/* ── Density ──────────────────────────────────────────────────────────── */
|
|
16694
|
+
--db-btn-height: var(--db-size-8);
|
|
16695
|
+
--db-btn-height-small: var(--db-size-6);
|
|
16696
|
+
--db-btn-icon-size: var(--db-size-4);
|
|
16697
|
+
--db-btn-border-width: 1px;
|
|
16698
|
+
--db-btn-padding-vertical: var(--db-space-1);
|
|
16699
|
+
--db-btn-padding-horizontal: var(--db-space-3);
|
|
16700
|
+
--db-btn-padding-horizontal-small: var(--db-space-2);
|
|
16701
|
+
/* Icon/force-icon horizontal padding: half the standard horizontal padding. */
|
|
16702
|
+
--db-btn-padding-horizontal-icon: calc(var(--db-space-3) / 2); /* 6px */
|
|
16703
|
+
--db-btn-gap: var(--db-space-1);
|
|
16704
|
+
--db-btn-end-icon-gap: var(--db-space-2);
|
|
16705
|
+
--db-btn-end-icon-gap-small: var(--db-space-1);
|
|
16706
|
+
/* Width of a content-less button while loading, so the standalone spinner has room. */
|
|
16707
|
+
--db-btn-loading-empty-width: var(--db-size-10);
|
|
16708
|
+
|
|
16709
|
+
/* ── Shape ────────────────────────────────────────────────────────────── */
|
|
16710
|
+
--db-btn-border-radius: var(--db-shape-control);
|
|
16711
|
+
|
|
16712
|
+
/* ── Typography ───────────────────────────────────────────────────────── */
|
|
16713
|
+
--db-btn-font-size: var(--db-font-size-base);
|
|
16714
|
+
--db-btn-icon-only-font-size: var(--db-font-size-lg); /* 15px */
|
|
16715
|
+
--db-btn-font-weight: var(--db-font-weight-normal);
|
|
16716
|
+
/* Line heights are hard-coded until the typography scale ships computed per-level line-height tokens. */
|
|
16717
|
+
--db-btn-line-height: 1.25rem; /* 20px */
|
|
16718
|
+
--db-btn-line-height-small: 1rem; /* 16px */
|
|
16719
|
+
|
|
16720
|
+
/* ── Color: semantic set (defaults = secondary variant) ───────────────── */
|
|
16721
|
+
--db-btn-surface: var(--db-color-action-default-background-default);
|
|
16722
|
+
--db-btn-surface-hover: var(--db-color-action-default-background-hover);
|
|
16723
|
+
--db-btn-surface-press: var(--db-color-action-default-background-press);
|
|
16724
|
+
--db-btn-surface-disabled: transparent;
|
|
16725
|
+
--db-btn-border: var(--db-color-action-default-border-default);
|
|
16726
|
+
--db-btn-border-hover: var(--db-color-action-default-border-hover);
|
|
16727
|
+
--db-btn-border-press: var(--db-color-action-default-border-press);
|
|
16728
|
+
--db-btn-border-disabled: var(--db-color-action-disabled-border);
|
|
16729
|
+
--db-btn-text: var(--db-color-action-default-text-default);
|
|
16730
|
+
--db-btn-text-hover: var(--db-color-action-default-text-hover);
|
|
16731
|
+
--db-btn-text-press: var(--db-color-action-default-text-press);
|
|
16732
|
+
--db-btn-text-disabled: var(--db-color-action-disabled-text);
|
|
16733
|
+
|
|
16734
|
+
/* ── Focus & icon ─────────────────────────────────────────────────────── */
|
|
16735
|
+
--db-btn-focus-ring: var(--db-color-action-default-border-focus);
|
|
16736
|
+
--db-btn-danger-focus-ring: var(--db-color-action-danger-primary-background-default);
|
|
16737
|
+
--db-btn-icon-glyph: var(--db-color-text-secondary);
|
|
16738
|
+
}
|
|
16739
|
+
|
|
16740
|
+
/* Native <Button> visual styles. Consumes the component-tier `--db-btn-*` tokens (see tokens.css);
|
|
16741
|
+
* the variant classes below re-set those tokens per variant and the rules that follow paint them.
|
|
16742
|
+
* Shipped via mortar.css. */
|
|
16743
|
+
|
|
16744
|
+
/* ── 0. Variant token re-sets ──────────────────────────────────────────────
|
|
16745
|
+
* Each variant class re-sets the semantic tokens declared in tokens.css; combined classes win by
|
|
16746
|
+
* specificity, which beats the `:where(:root)` (specificity 0) defaults regardless of file order. */
|
|
16747
|
+
/* Link is borderless and text-only, so its hover/press surface stays transparent. */
|
|
16748
|
+
/* Every danger button (icon included) disables to the filled treatment. */
|
|
16749
|
+
/* Danger, filled (primary): re-set only the surface; text/transparent border come from primary. */
|
|
16750
|
+
/* Danger, secondary/outlined. */
|
|
16751
|
+
/* Danger, tertiary/link: danger text everywhere, danger surface on hover/press; resting/disabled
|
|
16752
|
+
* surface stay the tertiary ghost (override the filled danger-disabled set above). */
|
|
16753
|
+
/* Icon-only renders as the ghost (tertiary) treatment regardless of variant; re-set the semantic set
|
|
16754
|
+
* so the icon-only rules paint from these component tokens. */
|
|
16755
|
+
/* Danger icon-only keeps the ghost resting surface (inherited above) but uses danger text and a
|
|
16756
|
+
* danger hover/press surface. */
|
|
16757
|
+
|
|
16758
|
+
/* ── 1. Base — paints the default (secondary) variant ────────────────────── */
|
|
16759
|
+
|
|
16760
|
+
/* ── 2. Padding ──────────────────────────────────────────────────────────── */
|
|
16761
|
+
|
|
16762
|
+
/* ── 3. Interactive states ───────────────────────────────────────────────── */
|
|
16763
|
+
|
|
16764
|
+
/* ── 4. Focus ────────────────────────────────────────────────────────────── */
|
|
16765
|
+
|
|
16766
|
+
/* ── 5. Small / full-width / empty ────────────────────────────────────────── */
|
|
16767
|
+
|
|
16768
|
+
/* ── 6. Tertiary & link ──────────────────────────────────────────────────── */
|
|
16769
|
+
/* Re-declare the text color for a non-icon-only tertiary/link at two-class weight so a plain
|
|
16770
|
+
* call-site `color` override loses; an icon-only glyph stays at base weight so its override wins. */
|
|
16771
|
+
/* Keep the resting border at two-class weight (parity with the shielded border-color). */
|
|
16772
|
+
|
|
16773
|
+
/* ── 7. Danger ───────────────────────────────────────────────────────────── */
|
|
16774
|
+
|
|
16775
|
+
/* ── 8. Icon-only ────────────────────────────────────────────────────────── */
|
|
16776
|
+
/* `:where()` keeps this at (0,1,0) so a call-site `css` width override wins, as it does for `height`. */
|
|
16777
|
+
/* `:where()` on the exclusion holds this at (0,2,0): enough to tint an un-overridden icon-only link
|
|
16778
|
+
* over the base color, while still letting a consumer's own icon-color override win on source order. */
|
|
16779
|
+
|
|
16780
|
+
/* ── 9. Disabled — base rules paint the per-variant `*-disabled` tokens (see tokens.css) ──────── */
|
|
16781
|
+
/* Empty and loading disabled buttons keep a transparent border (set elsewhere), so exclude them.
|
|
16782
|
+
* `:where()` on the exclusion holds this at (0,2,0): enough to beat the base border, while still
|
|
16783
|
+
* letting a consumer's own `[disabled]` border override win on source order. */
|
|
16784
|
+
|
|
16785
|
+
/* ── 10. Icon & content layout ───────────────────────────────────────────── */
|
|
16786
|
+
/* The leading icon renders unwrapped as the button's direct `.anticon` child (see NativeButton.tsx),
|
|
16787
|
+
* so `> .anticon` targets only a real icon glyph — a non-glyph `icon` (e.g. a Spinner) keeps its own
|
|
16788
|
+
* sizing — and out-specifies AntD's runtime-injected global `.anticon` rule. */
|
|
16789
|
+
|
|
16790
|
+
/* ── 11. Loading ─────────────────────────────────────────────────────────── */
|
|
16791
|
+
|
|
16792
|
+
/* ── 12. dangerouslySetForceIconStyles ───────────────────────────────────── */
|
|
16793
|
+
|
|
16794
|
+
:where(.du-bois-dark) {
|
|
16795
|
+
/* Shape */
|
|
16796
|
+
/* Must not scale with density; no non-scaling system token holds it. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16797
|
+
--db-navigation-menu-indicator-thickness: 4px;
|
|
16798
|
+
/* No system token holds this control-specific inset. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16799
|
+
--db-navigation-menu-focus-ring-offset: -1px;
|
|
16800
|
+
|
|
16801
|
+
/* Color */
|
|
16802
|
+
--db-navigation-menu-indicator: var(--db-accent-surface);
|
|
16803
|
+
--db-navigation-menu-focus-ring: var(--db-focus-ring-color);
|
|
16804
|
+
--db-navigation-menu-text: var(--db-text-subtle);
|
|
16805
|
+
--db-navigation-menu-text-active: var(--db-text-base);
|
|
16806
|
+
/* No v2 semantic for default-action link text yet; bridges on the v1 --db-color-* token. */
|
|
16807
|
+
--db-navigation-menu-text-hover: var(--db-color-action-default-text-hover);
|
|
16808
|
+
--db-navigation-menu-text-press: var(--db-color-action-default-text-press);
|
|
16809
|
+
|
|
16810
|
+
/* Density */
|
|
16811
|
+
--db-navigation-menu-item-height: var(--db-size-8);
|
|
16812
|
+
--db-navigation-menu-item-min-width: var(--db-size-6);
|
|
16813
|
+
--db-navigation-menu-link-padding-top: var(--db-space-1);
|
|
16814
|
+
--db-navigation-menu-link-padding-bottom: var(--db-space-2);
|
|
16815
|
+
--db-navigation-menu-focus-ring-width: var(--db-focus-ring-width);
|
|
16816
|
+
}
|
|
16817
|
+
|
|
16818
|
+
:where(.du-bois-dark) {
|
|
16819
|
+
/* Shape */
|
|
16820
|
+
/* TODO(FEINF-6505): adopt --db-shape-container-* once a 4px container radius exists; kept on --db-radius-sm to preserve 4px. */
|
|
16821
|
+
--db-snackbar-border-radius: var(--db-radius-sm);
|
|
16822
|
+
|
|
16823
|
+
/* Density */
|
|
16824
|
+
--db-snackbar-spacing-vertical: var(--db-space-3);
|
|
16825
|
+
--db-snackbar-spacing-horizontal: var(--db-space-4);
|
|
16826
|
+
--db-snackbar-close-button-spacing: var(--db-space-2);
|
|
16827
|
+
|
|
16828
|
+
/* Color */
|
|
16829
|
+
/* No v1/v2 system token holds this theme-invariant white. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16830
|
+
--db-snackbar-text: #ffffff;
|
|
16831
|
+
/* No v1/v2 system token holds these theme-invariant close-icon colors. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16832
|
+
--db-snackbar-close-icon: #e8ecf0;
|
|
16833
|
+
--db-snackbar-close-icon-hover: #8acaff;
|
|
16834
|
+
--db-snackbar-close-icon-press: #bae1fc;
|
|
16835
|
+
}
|
|
16836
|
+
|
|
16837
|
+
:where(.du-bois-dark) {
|
|
16838
|
+
/* Color */
|
|
16839
|
+
/* No v1/v2 system token holds this light/dark surface pair. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16840
|
+
--db-snackbar-surface: #445461;
|
|
16841
|
+
|
|
16842
|
+
/* Elevation */
|
|
16843
|
+
/* No v1/v2 system token holds this dark shadow; --db-elevation-med is theme-invariant (light). TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16844
|
+
--db-snackbar-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16845
|
+
}
|
|
16846
|
+
|
|
16847
|
+
/* Tooltip renders an inverted surface (dark chip in light mode, light chip in dark mode), so it does
|
|
16848
|
+
* not draw from the popover family's neutral surface. Surface/text reference the v1 tooltip
|
|
16849
|
+
* primitives from tokens-groups until a v2 semantic exists. */
|
|
16850
|
+
|
|
16851
|
+
:where(.du-bois-dark) {
|
|
16852
|
+
/* Shape */
|
|
16853
|
+
--db-tooltip-border-radius: var(--db-radius-sm);
|
|
16854
|
+
|
|
16855
|
+
/* Density */
|
|
16856
|
+
--db-tooltip-spacing-vertical: var(--db-space-1);
|
|
16857
|
+
--db-tooltip-spacing-horizontal: var(--db-space-2);
|
|
16858
|
+
|
|
16859
|
+
/* Typography */
|
|
16860
|
+
--db-tooltip-font-size: var(--db-font-size-base);
|
|
16861
|
+
--db-tooltip-font-weight: var(--db-font-weight-normal);
|
|
16862
|
+
}
|
|
16863
|
+
|
|
16864
|
+
:where(.du-bois-dark) {
|
|
16865
|
+
/* Color */
|
|
16866
|
+
--db-tooltip-surface: var(--db-color-tooltip-background-tooltip);
|
|
16867
|
+
--db-tooltip-text: var(--db-color-tooltip-text-tooltip);
|
|
16868
|
+
/* Darker v1 blue primitives than light mode — the chip is light here, so links need contrast. */
|
|
16869
|
+
--db-tooltip-link-text: #2272b4; /* blue600 */
|
|
16870
|
+
--db-tooltip-link-text-hover: #0e538b; /* blue700 */
|
|
16871
|
+
--db-tooltip-link-text-press: #04355d; /* blue800 */
|
|
16872
|
+
|
|
16873
|
+
/* Elevation */
|
|
16874
|
+
/* v2 elevation tokens are theme-invariant, so --db-elevation-med would keep the light shadow here.
|
|
16875
|
+
* Hold the v1 dark shadow as a literal to avoid a regression until elevation gains a dark value. */
|
|
16876
|
+
--db-tooltip-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16877
|
+
}
|
|
16878
|
+
|
|
16879
|
+
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16880
|
+
* `.du-bois-dark` subtree instead of freezing at the light values. */
|
|
16881
|
+
:where(.du-bois-dark) {
|
|
16882
|
+
/* Shape */
|
|
16883
|
+
--db-progress-border-radius: var(--db-shape-pill);
|
|
16884
|
+
|
|
16885
|
+
/* Color */
|
|
16886
|
+
--db-progress-track: var(--db-color-progress-track);
|
|
16887
|
+
--db-progress-fill: var(--db-color-progress-fill);
|
|
16888
|
+
|
|
16889
|
+
/* Density */
|
|
16890
|
+
--db-progress-size: var(--db-size-2);
|
|
16891
|
+
|
|
16892
|
+
/* Motion */
|
|
16893
|
+
/* No v2 motion token holds this duration. TODO(FEINF-6505): adopt a v2 motion token when one is added. */
|
|
16894
|
+
--db-progress-transition-duration: 300ms;
|
|
16895
|
+
}
|
|
16896
|
+
|
|
16897
|
+
:where(.du-bois-dark) {
|
|
16898
|
+
/* Color */
|
|
16899
|
+
/* No v2 token holds tertiary action-text states yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16900
|
+
--db-overflow-trigger-text: var(--db-color-action-tertiary-text-default);
|
|
16901
|
+
--db-overflow-trigger-text-hover: var(--db-color-action-tertiary-text-hover);
|
|
16902
|
+
--db-overflow-trigger-text-press: var(--db-color-action-tertiary-text-press);
|
|
16903
|
+
|
|
16904
|
+
/* Density */
|
|
16905
|
+
--db-overflow-spacing: var(--db-space-2);
|
|
16906
|
+
--db-overflow-menu-spacing: var(--db-space-1);
|
|
16907
|
+
}
|
|
16641
16908
|
|
|
16642
16909
|
|
|
16643
16910
|
:where(.du-bois-dark-btn-icon-only) > :where(.anticon),
|