@deephaven/components 0.55.0 → 0.55.1-alpha-theming-bootstrap.77

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.
Files changed (134) hide show
  1. package/css/BaseStyleSheet.css +878 -3622
  2. package/css/BaseStyleSheet.css.map +1 -1
  3. package/dist/AutoCompleteInput.css +4 -4
  4. package/dist/AutoCompleteInput.css.map +1 -1
  5. package/dist/Button.d.ts.map +1 -1
  6. package/dist/Button.js +26 -2
  7. package/dist/Button.js.map +1 -1
  8. package/dist/ComboBox.css +26 -6
  9. package/dist/ComboBox.css.map +1 -1
  10. package/dist/ComboBox.d.ts.map +1 -1
  11. package/dist/ComboBox.js +2 -4
  12. package/dist/ComboBox.js.map +1 -1
  13. package/dist/CustomTimeSelect.css +23 -10
  14. package/dist/CustomTimeSelect.css.map +1 -1
  15. package/dist/CustomTimeSelect.d.ts.map +1 -1
  16. package/dist/CustomTimeSelect.js +2 -5
  17. package/dist/CustomTimeSelect.js.map +1 -1
  18. package/dist/DraggableItemList.css +14 -14
  19. package/dist/DraggableItemList.css.map +1 -1
  20. package/dist/HierarchicalCheckboxMenu.css +20 -6
  21. package/dist/HierarchicalCheckboxMenu.css.map +1 -1
  22. package/dist/HierarchicalCheckboxMenu.d.ts.map +1 -1
  23. package/dist/HierarchicalCheckboxMenu.js +2 -4
  24. package/dist/HierarchicalCheckboxMenu.js.map +1 -1
  25. package/dist/ItemList.css +1 -1
  26. package/dist/ItemList.css.map +1 -1
  27. package/dist/ItemListItem.css +7 -7
  28. package/dist/ItemListItem.css.map +1 -1
  29. package/dist/LoadingOverlay.css +1 -1
  30. package/dist/LoadingOverlay.css.map +1 -1
  31. package/dist/LoadingSpinner.css +2 -8
  32. package/dist/LoadingSpinner.css.map +1 -1
  33. package/dist/MaskedInput.css.map +1 -1
  34. package/dist/RandomAreaPlotAnimation.d.ts +1 -1
  35. package/dist/RandomAreaPlotAnimation.d.ts.map +1 -1
  36. package/dist/RandomAreaPlotAnimation.js +32 -13
  37. package/dist/RandomAreaPlotAnimation.js.map +1 -1
  38. package/dist/SearchInput.css +28 -12
  39. package/dist/SearchInput.css.map +1 -1
  40. package/dist/SearchInput.d.ts +10 -1
  41. package/dist/SearchInput.d.ts.map +1 -1
  42. package/dist/SearchInput.js +73 -7
  43. package/dist/SearchInput.js.map +1 -1
  44. package/dist/SelectValueList.css +3 -3
  45. package/dist/SelectValueList.css.map +1 -1
  46. package/dist/SocketedButton.css +33 -33
  47. package/dist/SocketedButton.css.map +1 -1
  48. package/dist/ThemeExport.module.css +33 -33
  49. package/dist/ThemeExport.module.css.map +1 -1
  50. package/dist/TimeSlider.css +10 -10
  51. package/dist/TimeSlider.css.map +1 -1
  52. package/dist/TimeSlider.module.css +10 -10
  53. package/dist/TimeSlider.module.css.map +1 -1
  54. package/dist/ToastNotification.css +4 -4
  55. package/dist/ToastNotification.css.map +1 -1
  56. package/dist/UISwitch.css +19 -19
  57. package/dist/UISwitch.css.map +1 -1
  58. package/dist/ValidateLabelInput.css +1 -1
  59. package/dist/ValidateLabelInput.css.map +1 -1
  60. package/dist/context-actions/ContextActions.css +19 -19
  61. package/dist/context-actions/ContextActions.css.map +1 -1
  62. package/dist/menu-actions/DropdownMenu.css +2 -2
  63. package/dist/menu-actions/DropdownMenu.css.map +1 -1
  64. package/dist/navigation/MenuItem.css +9 -9
  65. package/dist/navigation/MenuItem.css.map +1 -1
  66. package/dist/navigation/Page.css.map +1 -1
  67. package/dist/navigation/Stack.css +2 -2
  68. package/dist/navigation/Stack.css.map +1 -1
  69. package/dist/popper/Popper.css +4 -4
  70. package/dist/popper/Popper.css.map +1 -1
  71. package/dist/shortcuts/GlobalShortcuts.d.ts +2 -0
  72. package/dist/shortcuts/GlobalShortcuts.d.ts.map +1 -1
  73. package/dist/shortcuts/GlobalShortcuts.js +14 -0
  74. package/dist/shortcuts/GlobalShortcuts.js.map +1 -1
  75. package/dist/theme/SpectrumThemeProvider.d.ts.map +1 -1
  76. package/dist/theme/SpectrumThemeProvider.js +1 -0
  77. package/dist/theme/SpectrumThemeProvider.js.map +1 -1
  78. package/dist/theme/ThemeModel.d.ts +23 -5
  79. package/dist/theme/ThemeModel.d.ts.map +1 -1
  80. package/dist/theme/ThemeModel.js +67 -3
  81. package/dist/theme/ThemeModel.js.map +1 -1
  82. package/dist/theme/ThemePicker.d.ts +4 -0
  83. package/dist/theme/ThemePicker.d.ts.map +1 -0
  84. package/dist/theme/ThemePicker.js +25 -0
  85. package/dist/theme/ThemePicker.js.map +1 -0
  86. package/dist/theme/ThemeProvider.d.ts +3 -1
  87. package/dist/theme/ThemeProvider.d.ts.map +1 -1
  88. package/dist/theme/ThemeProvider.js +16 -9
  89. package/dist/theme/ThemeProvider.js.map +1 -1
  90. package/dist/theme/ThemeUtils.d.ts +46 -8
  91. package/dist/theme/ThemeUtils.d.ts.map +1 -1
  92. package/dist/theme/ThemeUtils.js +104 -36
  93. package/dist/theme/ThemeUtils.js.map +1 -1
  94. package/dist/theme/index.d.ts +1 -0
  95. package/dist/theme/index.d.ts.map +1 -1
  96. package/dist/theme/index.js +1 -0
  97. package/dist/theme/index.js.map +1 -1
  98. package/dist/theme/theme-dark/theme-dark-components.css +1 -1
  99. package/dist/theme/theme-dark/theme-dark-components.css.map +1 -1
  100. package/dist/theme/theme-dark/theme-dark-palette.css +1 -1
  101. package/dist/theme/theme-dark/theme-dark-palette.css.map +1 -1
  102. package/dist/theme/theme-dark/theme-dark-semantic-chart.css +1 -1
  103. package/dist/theme/theme-dark/theme-dark-semantic-chart.css.map +1 -1
  104. package/dist/theme/theme-dark/theme-dark-semantic-editor.css +1 -1
  105. package/dist/theme/theme-dark/theme-dark-semantic-editor.css.map +1 -1
  106. package/dist/theme/theme-dark/theme-dark-semantic-grid.css +1 -1
  107. package/dist/theme/theme-dark/theme-dark-semantic-grid.css.map +1 -1
  108. package/dist/theme/theme-dark/theme-dark-semantic.css +1 -1
  109. package/dist/theme/theme-dark/theme-dark-semantic.css.map +1 -1
  110. package/dist/theme/theme-light/theme-light-palette.css +1 -1
  111. package/dist/theme/theme-light/theme-light-palette.css.map +1 -1
  112. package/dist/theme/theme-spectrum/index.d.ts +1 -0
  113. package/dist/theme/theme-spectrum/index.d.ts.map +1 -1
  114. package/dist/theme/theme-spectrum/index.js +3 -3
  115. package/dist/theme/theme-spectrum/index.js.map +1 -1
  116. package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css +1 -1
  117. package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css.map +1 -1
  118. package/dist/theme/theme-spectrum/theme-spectrum-overrides.css +1 -0
  119. package/dist/theme/theme-spectrum/theme-spectrum-overrides.css.map +1 -0
  120. package/dist/theme/theme-svg.css +1 -0
  121. package/dist/theme/theme-svg.css.map +1 -0
  122. package/package.json +7 -7
  123. package/scss/BaseStyleSheet.scss +169 -82
  124. package/scss/bootstrap_imports.scss +49 -0
  125. package/scss/bootstrap_override_functions.scss +31 -0
  126. package/scss/bootstrap_override_mixins_background_variant.scss +16 -0
  127. package/scss/bootstrap_override_mixins_buttons.scss +123 -0
  128. package/scss/bootstrap_override_mixins_forms.scss +231 -0
  129. package/scss/bootstrap_override_mixins_text_emphasis.scss +21 -0
  130. package/scss/bootstrap_overrides.scss +144 -101
  131. package/scss/new_variables.scss +18 -0
  132. package/scss/util.scss +27 -0
  133. package/dist/theme/theme-spectrum/theme-spectrum-overrides.module.css +0 -1
  134. package/dist/theme/theme-spectrum/theme-spectrum-overrides.module.css.map +0 -1
@@ -0,0 +1,123 @@
1
+ // Bootstrap mixin overrides for `bootstrap/scss/mixins/_buttons.scss`
2
+ @use 'sass:map';
3
+
4
+ // This mixin overrides the one in `bootstrap/scss/mixins/_buttons.scss`
5
+ // $bootstrap-value comes from $theme-colors map (see `bootstrap/scss/_buttons.scss`)
6
+ @mixin button-variant($bootstrap-value, $_) {
7
+ $semantic-value: map.get($bootstrap-dh-semantic-map, $bootstrap-value) or '';
8
+
9
+ // DH Customization: Convert semantic value to css variables
10
+ $background: var(--dh-color-#{$semantic-value}-bg);
11
+ $border: var(--dh-color-#{$semantic-value}-bg);
12
+ $boxshadow-color: hsla(var(--dh-color-#{$semantic-value}-hsl), 0.5);
13
+ $hover-background: var(--dh-color-#{$semantic-value}-hover-bg);
14
+ $hover-border: var(--dh-color-#{$semantic-value}-hover-bg);
15
+ $active-background: var(--dh-color-#{$semantic-value}-down-bg);
16
+ $active-border: var(--dh-color-#{$semantic-value}-down-bg);
17
+ $color: var(--dh-color-#{$semantic-value}-contrast);
18
+
19
+ color: $color;
20
+ font-weight: var(--spectrum-global-font-weight-bold);
21
+ @include gradient-bg($background);
22
+
23
+ border-color: $border;
24
+ @include box-shadow($btn-box-shadow);
25
+
26
+ @include hover {
27
+ color: $color;
28
+ @include gradient-bg($hover-background);
29
+
30
+ border-color: $hover-border;
31
+ }
32
+
33
+ &:focus {
34
+ box-shadow: none;
35
+ }
36
+
37
+ &:focus-visible,
38
+ &.focus {
39
+ color: $color;
40
+ @include gradient-bg($hover-background);
41
+
42
+ border-color: $hover-border;
43
+ box-shadow: 0 0 0 $btn-focus-width $boxshadow-color;
44
+ }
45
+
46
+ // Disabled comes first so active can properly restyle
47
+ &.disabled,
48
+ &:disabled {
49
+ color: $color;
50
+ background-color: $background;
51
+ border-color: $border;
52
+ // Remove CSS gradients if they're enabled
53
+ @if $enable-gradients {
54
+ background-image: none;
55
+ }
56
+ }
57
+
58
+ &:not(:disabled):not(.disabled):active,
59
+ &:not(:disabled):not(.disabled).active,
60
+ .show > &.dropdown-toggle {
61
+ color: $color;
62
+ background-color: $active-background;
63
+ @if $enable-gradients {
64
+ background-image: none; // Remove the gradient for the pressed/active state
65
+ }
66
+
67
+ border-color: $active-border;
68
+
69
+ &:focus-visible {
70
+ box-shadow: 0 0 0 $btn-focus-width $boxshadow-color;
71
+ }
72
+ }
73
+ }
74
+
75
+ @mixin button-outline-variant($bootstrap-value) {
76
+ $semantic-value: map.get($bootstrap-dh-semantic-map, $bootstrap-value) or '';
77
+
78
+ $color: var(--dh-color-#{$semantic-value}-bg);
79
+ $boxshadow-color: hsla(var(--dh-color-#{$semantic-value}-hsl), 0.5);
80
+ $hover-color: color-yiq($semantic-value);
81
+ $hover-background: var(--dh-color-#{$semantic-value}-hover-bg);
82
+ $active-background: var(--dh-color-#{$semantic-value}-down-bg);
83
+
84
+ color: $color;
85
+ border-color: $color;
86
+
87
+ @include hover {
88
+ color: $hover-color;
89
+ background-color: $hover-background;
90
+ border-color: $hover-background;
91
+ }
92
+
93
+ &:focus,
94
+ &.focus {
95
+ box-shadow: 0 0 0 $btn-focus-width $boxshadow-color;
96
+ }
97
+
98
+ &.disabled,
99
+ &:disabled {
100
+ color: $color;
101
+ background-color: transparent;
102
+ }
103
+
104
+ &:not(:disabled):not(.disabled):active,
105
+ &:not(:disabled):not(.disabled).active,
106
+ .show > &.dropdown-toggle {
107
+ color: color-yiq($semantic-value);
108
+ background-color: $active-background;
109
+ border-color: $active-background;
110
+
111
+ &:focus {
112
+ @if $enable-shadows and $btn-active-box-shadow != none {
113
+ @include box-shadow(
114
+ $btn-active-box-shadow,
115
+ 0 0 0 $btn-focus-width $boxshadow-color
116
+ );
117
+ } @else {
118
+ // Avoid using mixin so we can pass custom focus shadow properly
119
+ box-shadow: 0 0 0 $btn-focus-width $boxshadow-color;
120
+ }
121
+ }
122
+ }
123
+ }
@@ -0,0 +1,231 @@
1
+ /* stylelint-disable scss/comment-no-empty */
2
+ // Bootstrap mixin overrides for `bootstrap/scss/mixins/_forms.scss`
3
+
4
+ // Form control focus state
5
+ //
6
+ // Generate a customized focus state and for any input with the specified color,
7
+ // which defaults to the `$input-focus-border-color` variable.
8
+ //
9
+ // We highly encourage you to not customize the default value, but instead use
10
+ // this to tweak colors on an as-needed basis. This aesthetic change is based on
11
+ // WebKit's default styles, but applicable to a wider range of browsers. Its
12
+ // usability and accessibility should be taken into account with any change.
13
+ //
14
+ // Example usage: change the default blue border and shadow to white for better
15
+ // contrast against a dark gray background.
16
+ @mixin form-control-focus($ignore-warning: false) {
17
+ &:focus {
18
+ color: $input-focus-color;
19
+ background-color: $input-focus-bg;
20
+ border-color: $input-focus-border-color;
21
+ outline: 0;
22
+ @if $enable-shadows {
23
+ @include box-shadow($input-box-shadow, $input-focus-box-shadow);
24
+ } @else {
25
+ // Avoid using mixin so we can pass custom focus shadow properly
26
+ box-shadow: $input-focus-box-shadow;
27
+ }
28
+ }
29
+ @include deprecate(
30
+ 'The `form-control-focus()` mixin',
31
+ 'v4.4.0',
32
+ 'v5',
33
+ $ignore-warning
34
+ );
35
+ }
36
+
37
+ // This mixin overrides the one in `bootstrap/scss/mixins/_forms.scss`
38
+ // It's primary purpose is to convert the input color value into a dh css
39
+ // variable expression. There are a few additional tweaks annotated with
40
+ // `DH Customization:`
41
+ @mixin form-validation-state($state, $semantic-value, $icon) {
42
+ // DH Customization: Convert semantic value to css variable
43
+ $color: var(--dh-color-visual-#{$semantic-value});
44
+
45
+ .#{$state}-feedback {
46
+ display: none;
47
+ width: 100%;
48
+ margin-top: $form-feedback-margin-top;
49
+ @include font-size($form-feedback-font-size);
50
+
51
+ color: $color;
52
+ }
53
+
54
+ .#{$state}-tooltip {
55
+ position: absolute;
56
+ top: 100%;
57
+ left: 0;
58
+ z-index: 5;
59
+ display: none;
60
+ max-width: 100%; // Contain to parent when possible
61
+ padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
62
+ margin-top: 0.1rem;
63
+ @include font-size($form-feedback-tooltip-font-size);
64
+
65
+ line-height: $form-feedback-tooltip-line-height;
66
+ color: color-yiq($semantic-value);
67
+ background-color: $color;
68
+ @include border-radius($form-feedback-tooltip-border-radius);
69
+
70
+ // See https://github.com/twbs/bootstrap/pull/31557
71
+ // Align tooltip to form elements
72
+ .form-row > .col > &,
73
+ .form-row > [class*='col-'] > & {
74
+ left: $form-grid-gutter-width * 0.5;
75
+ }
76
+ }
77
+
78
+ @include form-validation-state-selector($state) {
79
+ ~ .#{$state}-feedback,
80
+ ~ .#{$state}-tooltip {
81
+ display: block;
82
+ }
83
+ }
84
+
85
+ .form-control {
86
+ @include form-validation-state-selector($state) {
87
+ border-color: $color;
88
+
89
+ @if $enable-validation-icons {
90
+ padding-right: $input-height-inner !important; // stylelint-disable-line declaration-no-important
91
+ background-image: escape-svg($icon);
92
+ background-repeat: no-repeat;
93
+ background-position: right $input-height-inner-quarter center;
94
+ background-size: $input-height-inner-half $input-height-inner-half;
95
+ }
96
+
97
+ &:focus {
98
+ border-color: $color;
99
+ }
100
+
101
+ // DH Customization: Moved box-shadow from :focus to :focus-visible and
102
+ // changed to $input-focus-box-shadow
103
+ &:focus-visible {
104
+ box-shadow: $input-focus-box-shadow;
105
+ }
106
+ }
107
+ }
108
+
109
+ // stylelint-disable-next-line selector-no-qualifying-type
110
+ select.form-control {
111
+ @include form-validation-state-selector($state) {
112
+ @if $enable-validation-icons {
113
+ padding-right: $input-padding-x *
114
+ 4 !important; // stylelint-disable-line declaration-no-important
115
+
116
+ background-position: right $input-padding-x * 2 center;
117
+ }
118
+ }
119
+ }
120
+
121
+ // stylelint-disable-next-line selector-no-qualifying-type
122
+ textarea.form-control {
123
+ @include form-validation-state-selector($state) {
124
+ @if $enable-validation-icons {
125
+ padding-right: $input-height-inner;
126
+ background-position: top
127
+ $input-height-inner-quarter
128
+ right
129
+ $input-height-inner-quarter;
130
+ }
131
+ }
132
+ }
133
+
134
+ .custom-select {
135
+ @include form-validation-state-selector($state) {
136
+ border-color: $color;
137
+
138
+ @if $enable-validation-icons {
139
+ padding-right: $custom-select-feedback-icon-padding-right !important; // stylelint-disable-line declaration-no-important
140
+ background:
141
+ $custom-select-background,
142
+ $custom-select-bg
143
+ escape-svg($icon)
144
+ $custom-select-feedback-icon-position /
145
+ $custom-select-feedback-icon-size
146
+ no-repeat;
147
+ }
148
+
149
+ &:focus {
150
+ border-color: $color;
151
+ }
152
+
153
+ // DH Customization: Moved box-shadow from :focus to :focus-visible and
154
+ // changed to $input-focus-box-shadow
155
+ &:focus-visible {
156
+ box-shadow: $input-focus-box-shadow;
157
+ }
158
+ }
159
+ }
160
+
161
+ .form-check-input {
162
+ @include form-validation-state-selector($state) {
163
+ ~ .form-check-label {
164
+ color: $color;
165
+ }
166
+
167
+ ~ .#{$state}-feedback,
168
+ ~ .#{$state}-tooltip {
169
+ display: block;
170
+ }
171
+ }
172
+ }
173
+
174
+ .custom-control-input {
175
+ @include form-validation-state-selector($state) {
176
+ ~ .custom-control-label {
177
+ color: $color;
178
+
179
+ &::before {
180
+ border-color: $color;
181
+ }
182
+ }
183
+
184
+ &:checked {
185
+ // DH Customization: Changed from lighten($color, 10%) to $color
186
+ ~ .custom-control-label::before {
187
+ border-color: $color;
188
+ @include gradient-bg($color);
189
+ }
190
+ }
191
+
192
+ // DH Customization: Moved box-shadow from :focus to :focus-visible and
193
+ // changed to $input-focus-box-shadow.
194
+ &:focus-visible {
195
+ ~ .custom-control-label::before {
196
+ box-shadow: $input-focus-box-shadow;
197
+ }
198
+ }
199
+
200
+ &:focus {
201
+ &:not(:checked) ~ .custom-control-label::before {
202
+ border-color: $color;
203
+ }
204
+ }
205
+ }
206
+ }
207
+
208
+ // custom file
209
+ .custom-file-input {
210
+ @include form-validation-state-selector($state) {
211
+ ~ .custom-file-label {
212
+ border-color: $color;
213
+ }
214
+
215
+ &:focus {
216
+ ~ .custom-file-label {
217
+ border-color: $color;
218
+ // DH Customization: Removed box-shadow
219
+ // box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
220
+ }
221
+ }
222
+
223
+ // DH Customization: Added rule
224
+ &:focus-visible {
225
+ ~ .custom-file-label {
226
+ box-shadow: $input-focus-box-shadow;
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
@@ -0,0 +1,21 @@
1
+ // Bootstrap mixin overrides for `bootstrap/scss/mixins/_text-emphasis.scss`
2
+
3
+ @mixin text-emphasis-variant($parent, $semantic-value, $ignore-warning: false) {
4
+ #{$parent} {
5
+ // if $semantic-value = primary then use accent-700
6
+ @if $semantic-value == 'accent' {
7
+ color: var(--spectrum-#{$semantic-value}-color-700) !important;
8
+ } @else {
9
+ color: var(--spectrum-#{$semantic-value}-visual-color) !important;
10
+ }
11
+ }
12
+ @if $emphasized-link-hover-darken-percentage != 0 {
13
+ a#{$parent} {
14
+ @include hover-focus {
15
+ color: var(
16
+ --spectrum-#{$semantic-value}-background-color-default
17
+ ) !important;
18
+ }
19
+ }
20
+ }
21
+ }