@databricks/design-system 2.0.6 → 2.0.8
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/AGENTS.md +239 -166
- package/CHANGELOG.md +36 -0
- package/dist/{RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js → RHFControlledTypeaheadComboboxV2-Boee19c1.js} +3 -3
- package/dist/{RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js.map → RHFControlledTypeaheadComboboxV2-Boee19c1.js.map} +1 -1
- package/dist/{WizardStepContentWrapper-6YTjeEaA.js → WizardStepContentWrapper-DfErft8z.js} +201 -257
- package/dist/WizardStepContentWrapper-DfErft8z.js.map +1 -0
- package/dist/dubois-colors.less +3 -1
- package/dist/icon-metadata.json +5 -0
- package/dist/{index-DiRpSwH2.js → index-CUzS-Vjx.js} +121 -109
- package/dist/index-CUzS-Vjx.js.map +1 -0
- package/dist/index-dark.css +136 -1
- package/dist/index-dark.mitigated.css +164 -16
- package/dist/index.css +183 -28
- package/dist/index.js +2 -2
- package/dist/index.mitigated.css +211 -43
- package/dist/patterns.js +1 -1
- package/dist-types/design-system/Alert/Alert.d.ts +21 -4
- package/dist-types/design-system/Button/Button.d.ts +2 -1
- package/dist-types/design-system/Icon/__generated/icons/SlidesIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/index.d.ts +1 -0
- package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +0 -2
- package/dist-types/design-system/index.d.ts +0 -1
- package/dist-types/design-system/utils/safex.d.ts +4 -2
- package/dist-types/theme/_generated/ValidSemanticColors.d.ts +1 -0
- package/dist-types/theme/generalVariables.d.ts +0 -1
- package/package.json +5 -4
- package/setup.mjs +586 -0
- package/dist/WizardStepContentWrapper-6YTjeEaA.js.map +0 -1
- package/dist/index-DiRpSwH2.js.map +0 -1
- package/dist-types/design-system/LegacyTooltip/LegacyTooltip.d.ts +0 -47
- package/dist-types/design-system/LegacyTooltip/index.d.ts +0 -1
package/dist/index-dark.css
CHANGED
|
@@ -16192,6 +16192,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16192
16192
|
--db-color-border-danger: #e65b77;
|
|
16193
16193
|
--db-color-border-warning: #de7921;
|
|
16194
16194
|
--db-color-code-background: #37444f;
|
|
16195
|
+
--db-color-composer-background: #1f272d;
|
|
16195
16196
|
--db-color-overlay-overlay: rgba(0, 0, 0, 0.45);
|
|
16196
16197
|
--db-color-progress-fill: #5f7281;
|
|
16197
16198
|
--db-color-progress-fill-primary: #2272b4;
|
|
@@ -16467,6 +16468,18 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16467
16468
|
--db-shape-pill: 999px;
|
|
16468
16469
|
}
|
|
16469
16470
|
|
|
16471
|
+
:where(.du-bois-dark) {
|
|
16472
|
+
/* Shape */
|
|
16473
|
+
/* Mirrors the ShapeTokens host-override var used by Card; falls back to the theme radius. */
|
|
16474
|
+
--db-card-border-radius: var(--info-container-border-radius, 8px);
|
|
16475
|
+
|
|
16476
|
+
/* Color */
|
|
16477
|
+
--db-card-surface: var(--db-surface-base);
|
|
16478
|
+
--db-card-text: var(--db-text-base);
|
|
16479
|
+
--db-card-border: var(--db-border-base);
|
|
16480
|
+
--db-card-border-hover: var(--db-border-strong);
|
|
16481
|
+
}
|
|
16482
|
+
|
|
16470
16483
|
:where(.du-bois-dark) {
|
|
16471
16484
|
/* Shape */
|
|
16472
16485
|
/* Mirrors the ShapeTokens host-override var used by list items; falls back to the theme radius. */
|
|
@@ -16543,6 +16556,28 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16543
16556
|
--db-selection-toggle-transition-duration: 120ms;
|
|
16544
16557
|
}
|
|
16545
16558
|
|
|
16559
|
+
:where(.du-bois-dark) {
|
|
16560
|
+
/* Shape */
|
|
16561
|
+
--db-avatar-border-radius: var(--db-radius-sm);
|
|
16562
|
+
|
|
16563
|
+
/* Density */
|
|
16564
|
+
--db-avatar-group-gap: var(--db-space-1);
|
|
16565
|
+
--db-avatar-group-border-width: 1px;
|
|
16566
|
+
|
|
16567
|
+
/* Color */
|
|
16568
|
+
/* No v2 token holds the secondary icon glyph yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16569
|
+
--db-avatar-icon: var(--db-color-text-secondary);
|
|
16570
|
+
/* No v2 token holds the default avatar surface yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16571
|
+
--db-avatar-surface: var(--db-color-tag-background-default);
|
|
16572
|
+
/* No v2 token holds the group divider border yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16573
|
+
--db-avatar-group-border-color: var(--db-color-background-primary);
|
|
16574
|
+
}
|
|
16575
|
+
|
|
16576
|
+
:where(.du-bois-dark) {
|
|
16577
|
+
/* Color */
|
|
16578
|
+
/* No v2 token holds the initials/icon glyph on a colored avatar yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16579
|
+
--db-avatar-text: #e8ecf0;
|
|
16580
|
+
}
|
|
16546
16581
|
|
|
16547
16582
|
|
|
16548
16583
|
/* Component-tier tokens for the native <Button>, grouped by area (density, shape, typography, color).
|
|
@@ -16813,6 +16848,17 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16813
16848
|
}
|
|
16814
16849
|
|
|
16815
16850
|
|
|
16851
|
+
:where(.du-bois-dark) {
|
|
16852
|
+
/* Color */
|
|
16853
|
+
--db-empty-text: var(--db-text-subtle);
|
|
16854
|
+
--db-empty-image-color: var(--db-text-disabled);
|
|
16855
|
+
|
|
16856
|
+
/* Density */
|
|
16857
|
+
--db-empty-image-size: calc(var(--db-size-8) * 2);
|
|
16858
|
+
--db-empty-image-spacing: var(--db-space-4);
|
|
16859
|
+
--db-empty-description-spacing: var(--db-space-4);
|
|
16860
|
+
--db-empty-max-width: 600px;
|
|
16861
|
+
}
|
|
16816
16862
|
|
|
16817
16863
|
|
|
16818
16864
|
|
|
@@ -16850,6 +16896,21 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16850
16896
|
}
|
|
16851
16897
|
|
|
16852
16898
|
|
|
16899
|
+
:where(.du-bois-dark) {
|
|
16900
|
+
/* Shape */
|
|
16901
|
+
--db-listbox-border-radius: var(--db-list-item-border-radius);
|
|
16902
|
+
--db-listbox-focus-ring-width: var(--db-focus-ring-width);
|
|
16903
|
+
|
|
16904
|
+
/* Color */
|
|
16905
|
+
--db-listbox-surface: var(--db-list-surface);
|
|
16906
|
+
--db-listbox-empty-text: var(--db-text-subtle);
|
|
16907
|
+
--db-listbox-focus-ring-color: var(--db-focus-ring-color);
|
|
16908
|
+
|
|
16909
|
+
/* Density */
|
|
16910
|
+
--db-listbox-spacing: var(--db-space-2);
|
|
16911
|
+
--db-listbox-empty-spacing-horizontal: var(--db-space-3);
|
|
16912
|
+
--db-listbox-empty-spacing-vertical: calc(var(--db-space-2) * 0.75);
|
|
16913
|
+
}
|
|
16853
16914
|
|
|
16854
16915
|
|
|
16855
16916
|
:where(.du-bois-dark) {
|
|
@@ -16876,6 +16937,36 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16876
16937
|
--db-navigation-menu-focus-ring-width: var(--db-focus-ring-width);
|
|
16877
16938
|
}
|
|
16878
16939
|
|
|
16940
|
+
:where(.du-bois-dark) {
|
|
16941
|
+
/* Shape */
|
|
16942
|
+
--db-notification-border-radius: var(--db-popup-border-radius);
|
|
16943
|
+
|
|
16944
|
+
/* Density */
|
|
16945
|
+
--db-notification-padding: var(--db-space-3);
|
|
16946
|
+
--db-notification-column-gap: var(--db-space-1);
|
|
16947
|
+
--db-notification-description-gap: var(--db-space-1);
|
|
16948
|
+
--db-notification-close-offset: calc(var(--db-space-1) * 1.5);
|
|
16949
|
+
--db-notification-close-size: var(--db-size-5);
|
|
16950
|
+
--db-notification-viewport-padding: var(--db-space-3);
|
|
16951
|
+
--db-notification-viewport-gap: var(--db-space-3);
|
|
16952
|
+
--db-notification-viewport-margin: var(--db-space-6);
|
|
16953
|
+
--db-notification-viewport-width: 440px;
|
|
16954
|
+
|
|
16955
|
+
/* Color */
|
|
16956
|
+
--db-notification-surface: var(--db-popup-surface);
|
|
16957
|
+
--db-notification-border: var(--db-popup-border);
|
|
16958
|
+
--db-notification-text: var(--db-popup-text);
|
|
16959
|
+
--db-notification-icon: var(--db-text-subtle);
|
|
16960
|
+
--db-notification-icon-success: var(--db-positive-text);
|
|
16961
|
+
--db-notification-icon-warning: var(--db-caution-text);
|
|
16962
|
+
--db-notification-icon-error: var(--db-negative-text);
|
|
16963
|
+
}
|
|
16964
|
+
|
|
16965
|
+
:where(.du-bois-dark) {
|
|
16966
|
+
/* Elevation */
|
|
16967
|
+
/* 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. */
|
|
16968
|
+
--db-notification-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16969
|
+
}
|
|
16879
16970
|
|
|
16880
16971
|
:where(.du-bois-dark) {
|
|
16881
16972
|
/* Color */
|
|
@@ -16921,6 +17012,45 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16921
17012
|
--db-popover-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16922
17013
|
}
|
|
16923
17014
|
|
|
17015
|
+
:where(.du-bois-dark) {
|
|
17016
|
+
/* Shape */
|
|
17017
|
+
--db-preview-card-border-radius: var(--db-card-border-radius);
|
|
17018
|
+
--db-preview-card-image-border-radius: var(--info-container-border-radius, 4px);
|
|
17019
|
+
--db-preview-card-border-width: 1px;
|
|
17020
|
+
|
|
17021
|
+
/* Density */
|
|
17022
|
+
--db-preview-card-padding: var(--db-space-4);
|
|
17023
|
+
--db-preview-card-padding-large: var(--db-space-6);
|
|
17024
|
+
--db-preview-card-gap: var(--db-space-2);
|
|
17025
|
+
--db-preview-card-gap-large: var(--db-space-4);
|
|
17026
|
+
--db-preview-card-action-spacing: var(--db-space-4);
|
|
17027
|
+
|
|
17028
|
+
/* Color */
|
|
17029
|
+
--db-preview-card-text: var(--db-text-subtle);
|
|
17030
|
+
--db-preview-card-title-text: var(--db-card-text);
|
|
17031
|
+
--db-preview-card-border: var(--db-card-border);
|
|
17032
|
+
/* No v2 token holds the active/focus border yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17033
|
+
--db-preview-card-border-hover: var(--db-color-action-default-border-hover);
|
|
17034
|
+
/* No v2 token holds the focus outline ring yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17035
|
+
--db-preview-card-border-focus: var(--db-color-action-default-border-focus);
|
|
17036
|
+
/* No v2 token holds the active surface tint yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17037
|
+
--db-preview-card-surface-active: var(--db-color-action-tertiary-background-press);
|
|
17038
|
+
--db-preview-card-surface-disabled: var(--db-surface-disabled);
|
|
17039
|
+
/* No v2 token holds the disabled border yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17040
|
+
--db-preview-card-border-disabled: var(--db-color-action-disabled-border);
|
|
17041
|
+
--db-preview-card-text-disabled: var(--db-text-disabled);
|
|
17042
|
+
|
|
17043
|
+
/* Typography */
|
|
17044
|
+
--db-preview-card-title-font-weight: var(--db-font-weight-semibold);
|
|
17045
|
+
}
|
|
17046
|
+
|
|
17047
|
+
:where(.du-bois-dark) {
|
|
17048
|
+
/* Elevation */
|
|
17049
|
+
|
|
17050
|
+
/* No v2 elevation token holds the dark shadows yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17051
|
+
--db-preview-card-shadow: 0px 2px 3px -1px rgba(0, 0, 0, 0.45), 0px 1px 0px 0px rgba(0, 0, 0, 0.26);
|
|
17052
|
+
--db-preview-card-shadow-hover: 0px 3px 6px 0px rgba(0, 0, 0, 0.45);
|
|
17053
|
+
}
|
|
16924
17054
|
|
|
16925
17055
|
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16926
17056
|
* `.du-bois-dark` subtree instead of freezing at the light values. */
|
|
@@ -17217,7 +17347,12 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17217
17347
|
--db-switch-transition-duration: var(--db-selection-toggle-transition-duration);
|
|
17218
17348
|
}
|
|
17219
17349
|
|
|
17220
|
-
/* The track. `appearance: none` strips the native checkbox rendering so the input itself can be styled.
|
|
17350
|
+
/* The track. `appearance: none` strips the native checkbox rendering so the input itself can be styled.
|
|
17351
|
+
* Scoped via the `.db-switch-input` class, never a bare `input`: `.db-switch .db-switch-input` is
|
|
17352
|
+
* specificity (0,2,0), which out-ranks a host app's `input[type='checkbox'] { width: auto }` reset
|
|
17353
|
+
* (e.g. Bootstrap, loaded in webapp). A bare `.db-switch input` (0,1,1) merely ties that reset and, losing
|
|
17354
|
+
* on load order, has its `inline-size` overridden to `auto` — collapsing the track to zero width and
|
|
17355
|
+
* leaving only the floating thumb. Mirrors NativeCheckbox's `.db-checkbox-input`. */
|
|
17221
17356
|
|
|
17222
17357
|
/* The thumb. A pseudo-element keeps the input the switch's only element, so nothing can overlay it
|
|
17223
17358
|
* and intercept clicks. Offset left by the border width to sit flush with the track's outer edge. */
|
|
@@ -16018,6 +16018,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16018
16018
|
--db-color-border-danger: #e65b77;
|
|
16019
16019
|
--db-color-border-warning: #de7921;
|
|
16020
16020
|
--db-color-code-background: #37444f;
|
|
16021
|
+
--db-color-composer-background: #1f272d;
|
|
16021
16022
|
--db-color-overlay-overlay: rgba(0, 0, 0, 0.45);
|
|
16022
16023
|
--db-color-progress-fill: #5f7281;
|
|
16023
16024
|
--db-color-progress-fill-primary: #2272b4;
|
|
@@ -16293,6 +16294,18 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16293
16294
|
--db-shape-pill: 999px;
|
|
16294
16295
|
}
|
|
16295
16296
|
|
|
16297
|
+
:where(.du-bois-dark) {
|
|
16298
|
+
/* Shape */
|
|
16299
|
+
/* Mirrors the ShapeTokens host-override var used by Card; falls back to the theme radius. */
|
|
16300
|
+
--db-card-border-radius: var(--info-container-border-radius, 8px);
|
|
16301
|
+
|
|
16302
|
+
/* Color */
|
|
16303
|
+
--db-card-surface: var(--db-surface-base);
|
|
16304
|
+
--db-card-text: var(--db-text-base);
|
|
16305
|
+
--db-card-border: var(--db-border-base);
|
|
16306
|
+
--db-card-border-hover: var(--db-border-strong);
|
|
16307
|
+
}
|
|
16308
|
+
|
|
16296
16309
|
:where(.du-bois-dark) {
|
|
16297
16310
|
/* Shape */
|
|
16298
16311
|
/* Mirrors the ShapeTokens host-override var used by list items; falls back to the theme radius. */
|
|
@@ -16369,6 +16382,28 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16369
16382
|
--db-selection-toggle-transition-duration: 120ms;
|
|
16370
16383
|
}
|
|
16371
16384
|
|
|
16385
|
+
:where(.du-bois-dark) {
|
|
16386
|
+
/* Shape */
|
|
16387
|
+
--db-avatar-border-radius: var(--db-radius-sm);
|
|
16388
|
+
|
|
16389
|
+
/* Density */
|
|
16390
|
+
--db-avatar-group-gap: var(--db-space-1);
|
|
16391
|
+
--db-avatar-group-border-width: 1px;
|
|
16392
|
+
|
|
16393
|
+
/* Color */
|
|
16394
|
+
/* No v2 token holds the secondary icon glyph yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16395
|
+
--db-avatar-icon: var(--db-color-text-secondary);
|
|
16396
|
+
/* No v2 token holds the default avatar surface yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16397
|
+
--db-avatar-surface: var(--db-color-tag-background-default);
|
|
16398
|
+
/* No v2 token holds the group divider border yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16399
|
+
--db-avatar-group-border-color: var(--db-color-background-primary);
|
|
16400
|
+
}
|
|
16401
|
+
|
|
16402
|
+
:where(.du-bois-dark) {
|
|
16403
|
+
/* Color */
|
|
16404
|
+
/* No v2 token holds the initials/icon glyph on a colored avatar yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16405
|
+
--db-avatar-text: #e8ecf0;
|
|
16406
|
+
}
|
|
16372
16407
|
|
|
16373
16408
|
|
|
16374
16409
|
/* Component-tier tokens for the native <Button>, grouped by area (density, shape, typography, color).
|
|
@@ -16639,6 +16674,17 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16639
16674
|
}
|
|
16640
16675
|
|
|
16641
16676
|
|
|
16677
|
+
:where(.du-bois-dark) {
|
|
16678
|
+
/* Color */
|
|
16679
|
+
--db-empty-text: var(--db-text-subtle);
|
|
16680
|
+
--db-empty-image-color: var(--db-text-disabled);
|
|
16681
|
+
|
|
16682
|
+
/* Density */
|
|
16683
|
+
--db-empty-image-size: calc(var(--db-size-8) * 2);
|
|
16684
|
+
--db-empty-image-spacing: var(--db-space-4);
|
|
16685
|
+
--db-empty-description-spacing: var(--db-space-4);
|
|
16686
|
+
--db-empty-max-width: 600px;
|
|
16687
|
+
}
|
|
16642
16688
|
|
|
16643
16689
|
|
|
16644
16690
|
|
|
@@ -16676,6 +16722,21 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16676
16722
|
}
|
|
16677
16723
|
|
|
16678
16724
|
|
|
16725
|
+
:where(.du-bois-dark) {
|
|
16726
|
+
/* Shape */
|
|
16727
|
+
--db-listbox-border-radius: var(--db-list-item-border-radius);
|
|
16728
|
+
--db-listbox-focus-ring-width: var(--db-focus-ring-width);
|
|
16729
|
+
|
|
16730
|
+
/* Color */
|
|
16731
|
+
--db-listbox-surface: var(--db-list-surface);
|
|
16732
|
+
--db-listbox-empty-text: var(--db-text-subtle);
|
|
16733
|
+
--db-listbox-focus-ring-color: var(--db-focus-ring-color);
|
|
16734
|
+
|
|
16735
|
+
/* Density */
|
|
16736
|
+
--db-listbox-spacing: var(--db-space-2);
|
|
16737
|
+
--db-listbox-empty-spacing-horizontal: var(--db-space-3);
|
|
16738
|
+
--db-listbox-empty-spacing-vertical: calc(var(--db-space-2) * 0.75);
|
|
16739
|
+
}
|
|
16679
16740
|
|
|
16680
16741
|
|
|
16681
16742
|
:where(.du-bois-dark) {
|
|
@@ -16702,6 +16763,36 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16702
16763
|
--db-navigation-menu-focus-ring-width: var(--db-focus-ring-width);
|
|
16703
16764
|
}
|
|
16704
16765
|
|
|
16766
|
+
:where(.du-bois-dark) {
|
|
16767
|
+
/* Shape */
|
|
16768
|
+
--db-notification-border-radius: var(--db-popup-border-radius);
|
|
16769
|
+
|
|
16770
|
+
/* Density */
|
|
16771
|
+
--db-notification-padding: var(--db-space-3);
|
|
16772
|
+
--db-notification-column-gap: var(--db-space-1);
|
|
16773
|
+
--db-notification-description-gap: var(--db-space-1);
|
|
16774
|
+
--db-notification-close-offset: calc(var(--db-space-1) * 1.5);
|
|
16775
|
+
--db-notification-close-size: var(--db-size-5);
|
|
16776
|
+
--db-notification-viewport-padding: var(--db-space-3);
|
|
16777
|
+
--db-notification-viewport-gap: var(--db-space-3);
|
|
16778
|
+
--db-notification-viewport-margin: var(--db-space-6);
|
|
16779
|
+
--db-notification-viewport-width: 440px;
|
|
16780
|
+
|
|
16781
|
+
/* Color */
|
|
16782
|
+
--db-notification-surface: var(--db-popup-surface);
|
|
16783
|
+
--db-notification-border: var(--db-popup-border);
|
|
16784
|
+
--db-notification-text: var(--db-popup-text);
|
|
16785
|
+
--db-notification-icon: var(--db-text-subtle);
|
|
16786
|
+
--db-notification-icon-success: var(--db-positive-text);
|
|
16787
|
+
--db-notification-icon-warning: var(--db-caution-text);
|
|
16788
|
+
--db-notification-icon-error: var(--db-negative-text);
|
|
16789
|
+
}
|
|
16790
|
+
|
|
16791
|
+
:where(.du-bois-dark) {
|
|
16792
|
+
/* Elevation */
|
|
16793
|
+
/* 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. */
|
|
16794
|
+
--db-notification-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16795
|
+
}
|
|
16705
16796
|
|
|
16706
16797
|
:where(.du-bois-dark) {
|
|
16707
16798
|
/* Color */
|
|
@@ -16747,6 +16838,45 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16747
16838
|
--db-popover-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16748
16839
|
}
|
|
16749
16840
|
|
|
16841
|
+
:where(.du-bois-dark) {
|
|
16842
|
+
/* Shape */
|
|
16843
|
+
--db-preview-card-border-radius: var(--db-card-border-radius);
|
|
16844
|
+
--db-preview-card-image-border-radius: var(--info-container-border-radius, 4px);
|
|
16845
|
+
--db-preview-card-border-width: 1px;
|
|
16846
|
+
|
|
16847
|
+
/* Density */
|
|
16848
|
+
--db-preview-card-padding: var(--db-space-4);
|
|
16849
|
+
--db-preview-card-padding-large: var(--db-space-6);
|
|
16850
|
+
--db-preview-card-gap: var(--db-space-2);
|
|
16851
|
+
--db-preview-card-gap-large: var(--db-space-4);
|
|
16852
|
+
--db-preview-card-action-spacing: var(--db-space-4);
|
|
16853
|
+
|
|
16854
|
+
/* Color */
|
|
16855
|
+
--db-preview-card-text: var(--db-text-subtle);
|
|
16856
|
+
--db-preview-card-title-text: var(--db-card-text);
|
|
16857
|
+
--db-preview-card-border: var(--db-card-border);
|
|
16858
|
+
/* No v2 token holds the active/focus border yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16859
|
+
--db-preview-card-border-hover: var(--db-color-action-default-border-hover);
|
|
16860
|
+
/* No v2 token holds the focus outline ring yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16861
|
+
--db-preview-card-border-focus: var(--db-color-action-default-border-focus);
|
|
16862
|
+
/* No v2 token holds the active surface tint yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16863
|
+
--db-preview-card-surface-active: var(--db-color-action-tertiary-background-press);
|
|
16864
|
+
--db-preview-card-surface-disabled: var(--db-surface-disabled);
|
|
16865
|
+
/* No v2 token holds the disabled border yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16866
|
+
--db-preview-card-border-disabled: var(--db-color-action-disabled-border);
|
|
16867
|
+
--db-preview-card-text-disabled: var(--db-text-disabled);
|
|
16868
|
+
|
|
16869
|
+
/* Typography */
|
|
16870
|
+
--db-preview-card-title-font-weight: var(--db-font-weight-semibold);
|
|
16871
|
+
}
|
|
16872
|
+
|
|
16873
|
+
:where(.du-bois-dark) {
|
|
16874
|
+
/* Elevation */
|
|
16875
|
+
|
|
16876
|
+
/* No v2 elevation token holds the dark shadows yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16877
|
+
--db-preview-card-shadow: 0px 2px 3px -1px rgba(0, 0, 0, 0.45), 0px 1px 0px 0px rgba(0, 0, 0, 0.26);
|
|
16878
|
+
--db-preview-card-shadow-hover: 0px 3px 6px 0px rgba(0, 0, 0, 0.45);
|
|
16879
|
+
}
|
|
16750
16880
|
|
|
16751
16881
|
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16752
16882
|
* `.du-bois-dark` subtree instead of freezing at the light values. */
|
|
@@ -17043,7 +17173,12 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17043
17173
|
--db-switch-transition-duration: var(--db-selection-toggle-transition-duration);
|
|
17044
17174
|
}
|
|
17045
17175
|
|
|
17046
|
-
/* The track. `appearance: none` strips the native checkbox rendering so the input itself can be styled.
|
|
17176
|
+
/* The track. `appearance: none` strips the native checkbox rendering so the input itself can be styled.
|
|
17177
|
+
* Scoped via the `.db-switch-input` class, never a bare `input`: `.db-switch .db-switch-input` is
|
|
17178
|
+
* specificity (0,2,0), which out-ranks a host app's `input[type='checkbox'] { width: auto }` reset
|
|
17179
|
+
* (e.g. Bootstrap, loaded in webapp). A bare `.db-switch input` (0,1,1) merely ties that reset and, losing
|
|
17180
|
+
* on load order, has its `inline-size` overridden to `auto` — collapsing the track to zero width and
|
|
17181
|
+
* leaving only the floating thumb. Mirrors NativeCheckbox's `.db-checkbox-input`. */
|
|
17047
17182
|
|
|
17048
17183
|
/* The thumb. A pseudo-element keeps the input the switch's only element, so nothing can overlay it
|
|
17049
17184
|
* and intercept clicks. Offset left by the border width to sit flush with the track's outer edge. */
|
|
@@ -17176,17 +17311,20 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17176
17311
|
|
|
17177
17312
|
|
|
17178
17313
|
:where(.du-bois-dark-btn-icon-only) > :where(.anticon),
|
|
17179
|
-
:where(.du-bois-dark-btn-icon-only) > :where(.du-bois-dark-btn-loading-icon)
|
|
17314
|
+
:where(.du-bois-dark-btn-icon-only) > :where(.du-bois-dark-btn-loading-icon),
|
|
17315
|
+
:where(.du-bois-dark-btn-icon-only) > :where(.db-icon) {
|
|
17180
17316
|
font-size: 15px;
|
|
17181
17317
|
}
|
|
17182
17318
|
|
|
17183
17319
|
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-lg) > .anticon,
|
|
17184
|
-
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-lg) > .du-bois-dark-btn-loading-icon
|
|
17320
|
+
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-lg) > .du-bois-dark-btn-loading-icon,
|
|
17321
|
+
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-lg) > .db-icon {
|
|
17185
17322
|
font-size: 20px;
|
|
17186
17323
|
}
|
|
17187
17324
|
|
|
17188
17325
|
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-sm) > .anticon,
|
|
17189
|
-
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-sm) > .du-bois-dark-btn-loading-icon
|
|
17326
|
+
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-sm) > .du-bois-dark-btn-loading-icon,
|
|
17327
|
+
.du-bois-dark-btn-icon-only:where(.du-bois-dark-btn-sm) > .db-icon {
|
|
17190
17328
|
font-size: 13px;
|
|
17191
17329
|
}
|
|
17192
17330
|
|
|
@@ -17211,7 +17349,8 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17211
17349
|
|
|
17212
17350
|
|
|
17213
17351
|
.du-bois-dark-btn:where([disabled]) > .anticon,
|
|
17214
|
-
.du-bois-dark-btn:where([disabled]) > .du-bois-dark-btn-loading-icon
|
|
17352
|
+
.du-bois-dark-btn:where([disabled]) > .du-bois-dark-btn-loading-icon,
|
|
17353
|
+
.du-bois-dark-btn:where([disabled]) > .db-icon {
|
|
17215
17354
|
pointer-events: none;
|
|
17216
17355
|
}
|
|
17217
17356
|
|
|
@@ -17248,13 +17387,15 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17248
17387
|
|
|
17249
17388
|
|
|
17250
17389
|
:where(.du-bois-dark-select-multiple) .du-bois-dark-select-selection-item-remove > .anticon,
|
|
17251
|
-
:where(.du-bois-dark-select-multiple) .du-bois-dark-select-selection-item-remove > .du-bois-dark-select-selection-item-remove-icon
|
|
17390
|
+
:where(.du-bois-dark-select-multiple) .du-bois-dark-select-selection-item-remove > .du-bois-dark-select-selection-item-remove-icon,
|
|
17391
|
+
:where(.du-bois-dark-select-multiple) .du-bois-dark-select-selection-item-remove > .db-icon {
|
|
17252
17392
|
line-height: 1;
|
|
17253
17393
|
}
|
|
17254
17394
|
|
|
17255
17395
|
|
|
17256
17396
|
:where(.du-bois-dark-select-arrow) > .anticon,
|
|
17257
|
-
:where(.du-bois-dark-select-arrow) > .du-bois-dark-select-arrow-icon
|
|
17397
|
+
:where(.du-bois-dark-select-arrow) > .du-bois-dark-select-arrow-icon,
|
|
17398
|
+
:where(.du-bois-dark-select-arrow) > .db-icon {
|
|
17258
17399
|
line-height: 1;
|
|
17259
17400
|
}
|
|
17260
17401
|
|
|
@@ -17285,12 +17426,14 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17285
17426
|
}
|
|
17286
17427
|
|
|
17287
17428
|
|
|
17288
|
-
:where(.du-bois-dark-picker-suffix) > .anticon
|
|
17429
|
+
:where(.du-bois-dark-picker-suffix) > .anticon,
|
|
17430
|
+
:where(.du-bois-dark-picker-suffix) > .db-icon {
|
|
17289
17431
|
vertical-align: top;
|
|
17290
17432
|
}
|
|
17291
17433
|
|
|
17292
17434
|
|
|
17293
|
-
:where(.du-bois-dark-picker-clear) > .anticon
|
|
17435
|
+
:where(.du-bois-dark-picker-clear) > .anticon,
|
|
17436
|
+
:where(.du-bois-dark-picker-clear) > .db-icon {
|
|
17294
17437
|
vertical-align: top;
|
|
17295
17438
|
}
|
|
17296
17439
|
|
|
@@ -17371,7 +17514,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17371
17514
|
}
|
|
17372
17515
|
|
|
17373
17516
|
|
|
17374
|
-
.du-bois-dark-menu-item:has(> .du-bois-dark-menu-item-icon, > .anticon) > .du-bois-dark-menu-title-content, .du-bois-dark-menu-submenu-title:has(> .du-bois-dark-menu-item-icon, > .anticon) > .du-bois-dark-menu-title-content {
|
|
17517
|
+
.du-bois-dark-menu-item:has(> .du-bois-dark-menu-item-icon, > .anticon) > .du-bois-dark-menu-title-content, .du-bois-dark-menu-submenu-title:has(> .du-bois-dark-menu-item-icon, > .anticon) > .du-bois-dark-menu-title-content, .du-bois-dark-menu-item:has(> .du-bois-dark-menu-item-icon, > .db-icon) > .du-bois-dark-menu-title-content, .du-bois-dark-menu-submenu-title:has(> .du-bois-dark-menu-item-icon, > .db-icon) > .du-bois-dark-menu-title-content {
|
|
17375
17518
|
margin-left: 10px;
|
|
17376
17519
|
opacity: 1;
|
|
17377
17520
|
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), margin 0.3s, color 0.3s;
|
|
@@ -17385,12 +17528,13 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17385
17528
|
color: #fff;
|
|
17386
17529
|
}
|
|
17387
17530
|
|
|
17388
|
-
.du-bois-dark-menu-dark .du-bois-dark-menu-item-selected:has(> .du-bois-dark-menu-item-icon, > .anticon) > .du-bois-dark-menu-title-content {
|
|
17531
|
+
.du-bois-dark-menu-dark .du-bois-dark-menu-item-selected:has(> .du-bois-dark-menu-item-icon, > .anticon) > .du-bois-dark-menu-title-content, .du-bois-dark-menu-dark .du-bois-dark-menu-item-selected:has(> .du-bois-dark-menu-item-icon, > .db-icon) > .du-bois-dark-menu-title-content {
|
|
17389
17532
|
color: #fff;
|
|
17390
17533
|
}
|
|
17391
17534
|
|
|
17392
17535
|
|
|
17393
|
-
.du-bois-dark-breadcrumb-link > .anticon:not(:last-child)
|
|
17536
|
+
.du-bois-dark-breadcrumb-link > .anticon:not(:last-child),
|
|
17537
|
+
.du-bois-dark-breadcrumb-link > .db-icon:not(:last-child) {
|
|
17394
17538
|
margin-inline-end: 4px;
|
|
17395
17539
|
}
|
|
17396
17540
|
|
|
@@ -17420,7 +17564,8 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17420
17564
|
}
|
|
17421
17565
|
|
|
17422
17566
|
|
|
17423
|
-
.du-bois-dark-btn > .anticon
|
|
17567
|
+
.du-bois-dark-btn > .anticon,
|
|
17568
|
+
.du-bois-dark-btn > .db-icon {
|
|
17424
17569
|
display: inline-block;
|
|
17425
17570
|
}
|
|
17426
17571
|
|
|
@@ -17435,14 +17580,17 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17435
17580
|
}
|
|
17436
17581
|
|
|
17437
17582
|
|
|
17438
|
-
:where(.du-bois-dark-tag) > .anticon:first-child
|
|
17583
|
+
:where(.du-bois-dark-tag) > .anticon:first-child,
|
|
17584
|
+
:where(.du-bois-dark-tag) > .db-icon:first-child {
|
|
17439
17585
|
margin-right: 7px;
|
|
17440
17586
|
}
|
|
17441
|
-
:where(.du-bois-dark-tag):has(> .anticon:first-child) > .anticon:not(:first-child)
|
|
17587
|
+
:where(.du-bois-dark-tag):has(> .anticon:first-child) > .anticon:not(:first-child),
|
|
17588
|
+
:where(.du-bois-dark-tag):has(> .db-icon:first-child) > .db-icon:not(:first-child) {
|
|
17442
17589
|
margin-left: 7px;
|
|
17443
17590
|
}
|
|
17444
17591
|
|
|
17445
17592
|
|
|
17446
|
-
.du-bois-dark-btn > .anticon:not(:first-child)
|
|
17593
|
+
.du-bois-dark-btn > .anticon:not(:first-child),
|
|
17594
|
+
.du-bois-dark-btn > .db-icon:not(:first-child) {
|
|
17447
17595
|
margin-left: 8px;
|
|
17448
17596
|
}
|