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