@deephaven/components 0.55.1-beta.1 → 0.55.1-beta.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/css/BaseStyleSheet.css +62 -16
- package/css/BaseStyleSheet.css.map +1 -1
- package/dist/ComboBox.css +20 -0
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.d.ts.map +1 -1
- package/dist/ComboBox.js +2 -4
- package/dist/ComboBox.js.map +1 -1
- package/dist/CustomTimeSelect.css +15 -2
- package/dist/CustomTimeSelect.css.map +1 -1
- package/dist/CustomTimeSelect.d.ts.map +1 -1
- package/dist/CustomTimeSelect.js +2 -5
- package/dist/CustomTimeSelect.js.map +1 -1
- package/dist/LoadingSpinner.css +2 -8
- package/dist/LoadingSpinner.css.map +1 -1
- package/dist/SearchInput.css +28 -12
- package/dist/SearchInput.css.map +1 -1
- package/dist/SearchInput.d.ts +10 -1
- package/dist/SearchInput.d.ts.map +1 -1
- package/dist/SearchInput.js +73 -7
- package/dist/SearchInput.js.map +1 -1
- package/dist/shortcuts/GlobalShortcuts.d.ts +2 -0
- package/dist/shortcuts/GlobalShortcuts.d.ts.map +1 -1
- package/dist/shortcuts/GlobalShortcuts.js +14 -0
- package/dist/shortcuts/GlobalShortcuts.js.map +1 -1
- package/dist/theme/ThemeModel.d.ts +12 -6
- package/dist/theme/ThemeModel.d.ts.map +1 -1
- package/dist/theme/ThemeModel.js +18 -3
- package/dist/theme/ThemeModel.js.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +1 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +6 -1
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/ThemeUtils.d.ts +37 -5
- package/dist/theme/ThemeUtils.d.ts.map +1 -1
- package/dist/theme/ThemeUtils.js +80 -15
- package/dist/theme/ThemeUtils.js.map +1 -1
- package/dist/theme/theme-dark/theme-dark-components.css +1 -1
- package/dist/theme/theme-dark/theme-dark-components.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-palette.css +1 -1
- package/dist/theme/theme-dark/theme-dark-palette.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-chart.css +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-chart.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic.css +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic.css.map +1 -1
- package/dist/theme/theme-light/theme-light-palette.css +1 -1
- package/dist/theme/theme-light/theme-light-palette.css.map +1 -1
- package/dist/theme/theme-spectrum/index.d.ts +1 -0
- package/dist/theme/theme-spectrum/index.d.ts.map +1 -1
- package/dist/theme/theme-spectrum/index.js +3 -3
- package/dist/theme/theme-spectrum/index.js.map +1 -1
- package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css +1 -1
- package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css.map +1 -1
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.css +1 -0
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.css.map +1 -0
- package/dist/theme/theme-svg.css +1 -0
- package/dist/theme/theme-svg.css.map +1 -0
- package/package.json +7 -7
- package/scss/BaseStyleSheet.scss +102 -23
- package/scss/util.scss +27 -0
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.module.css +0 -1
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.module.css.map +0 -1
package/scss/BaseStyleSheet.scss
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
// Import our custom variables and bootstrap
|
|
2
2
|
// Can be imported directly by Vite since it resolves bootstrap to node_modules/bootstrap
|
|
3
3
|
@import './custom.scss';
|
|
4
|
+
@import './util.scss';
|
|
4
5
|
@import 'bootstrap/scss/bootstrap';
|
|
5
6
|
|
|
7
|
+
:root {
|
|
8
|
+
--dh-svg-inline-icon-size: 16px;
|
|
9
|
+
--scrollbar-color: 255, 255, 255;
|
|
10
|
+
}
|
|
11
|
+
|
|
6
12
|
//Various non-variable css overides
|
|
7
13
|
//Overide default size from 16px to 14px. We need density.
|
|
8
14
|
html {
|
|
@@ -14,7 +20,7 @@ html {
|
|
|
14
20
|
// and look best at that size. Default icon size back to 16px
|
|
15
21
|
// vertical alignment changed to best match icon set against 14px text
|
|
16
22
|
.svg-inline--fa {
|
|
17
|
-
font-size:
|
|
23
|
+
font-size: var(--dh-svg-inline-icon-size);
|
|
18
24
|
vertical-align: -3px;
|
|
19
25
|
}
|
|
20
26
|
|
|
@@ -392,6 +398,16 @@ form label small {
|
|
|
392
398
|
.form-control.focus {
|
|
393
399
|
border: 1px solid $primary;
|
|
394
400
|
}
|
|
401
|
+
|
|
402
|
+
.form-control.is-invalid,
|
|
403
|
+
.form-control.is-invalid:focus {
|
|
404
|
+
border-color: var(--dh-color-form-control-error);
|
|
405
|
+
background-image: var(--dh-svg-icon-error);
|
|
406
|
+
}
|
|
407
|
+
.form-control.is-invalid:focus {
|
|
408
|
+
box-shadow: 0 0 0 0.2rem var(--dh-color-form-control-error-shadow);
|
|
409
|
+
}
|
|
410
|
+
|
|
395
411
|
.form-control.btn:focus {
|
|
396
412
|
box-shadow: $input-btn-focus-box-shadow;
|
|
397
413
|
}
|
|
@@ -450,9 +466,41 @@ form label small {
|
|
|
450
466
|
cursor: not-allowed;
|
|
451
467
|
}
|
|
452
468
|
|
|
469
|
+
.custom-select {
|
|
470
|
+
$caret-size: 10px 6px;
|
|
471
|
+
$error-size: 16px;
|
|
472
|
+
|
|
473
|
+
background-image: var(--dh-svg-icon-select-indicator);
|
|
474
|
+
background-size: $caret-size;
|
|
475
|
+
|
|
476
|
+
&:hover {
|
|
477
|
+
background-image: var(--dh-svg-icon-select-indicator-hover);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
&.is-invalid,
|
|
481
|
+
&.is-invalid:focus {
|
|
482
|
+
border-color: var(--dh-color-form-control-error);
|
|
483
|
+
background-size: $caret-size, $error-size;
|
|
484
|
+
background-image: var(--dh-svg-icon-select-indicator),
|
|
485
|
+
var(--dh-svg-icon-error);
|
|
486
|
+
}
|
|
487
|
+
&.is-invalid:hover {
|
|
488
|
+
background-image: var(--dh-svg-icon-select-indicator-hover),
|
|
489
|
+
var(--dh-svg-icon-error);
|
|
490
|
+
}
|
|
491
|
+
&.is-invalid:focus {
|
|
492
|
+
box-shadow: 0 0 0 0.2rem var(--dh-color-form-control-error-shadow);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
453
496
|
.custom-select:disabled {
|
|
454
497
|
border-color: $black;
|
|
455
498
|
cursor: not-allowed;
|
|
499
|
+
background-image: var(--dh-svg-icon-select-indicator-disabled);
|
|
500
|
+
&.is-invalid {
|
|
501
|
+
background-image: var(--dh-svg-icon-select-indicator-disabled),
|
|
502
|
+
var(--dh-svg-icon-error);
|
|
503
|
+
}
|
|
456
504
|
}
|
|
457
505
|
|
|
458
506
|
input[type='number'] {
|
|
@@ -481,11 +529,8 @@ input[type='number']::-webkit-inner-spin-button {
|
|
|
481
529
|
}
|
|
482
530
|
|
|
483
531
|
.input-group > .input-group-append.cb-dropdown > .btn {
|
|
484
|
-
color: $gray-400;
|
|
485
532
|
border: 1px solid $gray-400;
|
|
486
|
-
|
|
487
|
-
color: $foreground;
|
|
488
|
-
}
|
|
533
|
+
|
|
489
534
|
&:focus {
|
|
490
535
|
border-color: $input-focus-border-color;
|
|
491
536
|
}
|
|
@@ -656,12 +701,6 @@ input[type='number']::-webkit-inner-spin-button {
|
|
|
656
701
|
background: rgba(var(--scrollbar-color), 0.35);
|
|
657
702
|
}
|
|
658
703
|
|
|
659
|
-
/* stylelint-disable no-descending-specificity */
|
|
660
|
-
:root {
|
|
661
|
-
--scrollbar-color: 255, 255, 255;
|
|
662
|
-
}
|
|
663
|
-
/* stylelint-enable no-descending-specificity */
|
|
664
|
-
|
|
665
704
|
// used in inverted color sections, like light modals
|
|
666
705
|
.theme-bg-light {
|
|
667
706
|
--scrollbar-color: 0, 0, 0;
|
|
@@ -740,29 +779,68 @@ input[type='number']::-webkit-inner-spin-button {
|
|
|
740
779
|
//Moz specific hacks
|
|
741
780
|
/* stylelint-disable-next-line function-url-quotes */
|
|
742
781
|
@-moz-document url-prefix() {
|
|
743
|
-
|
|
744
|
-
|
|
782
|
+
$caret-position: right $custom-select-padding-x;
|
|
783
|
+
$error-position: right (1 + $custom-select-padding-x);
|
|
784
|
+
$svg-caret: var(--dh-svg-icon-select-indicator);
|
|
785
|
+
$svg-caret-hover: var(--dh-svg-icon-select-indicator-hover);
|
|
786
|
+
$svg-error: var(--dh-svg-icon-error);
|
|
787
|
+
|
|
788
|
+
//Selection box in mozilla loses default styling on options list if you apply a background color other then #FFF or inherit...
|
|
789
|
+
//Hack: turn the background to inherit, then apply a background gradient that is inputbg color to inputbg color
|
|
745
790
|
//for crossbrowser consistency this gradient is stacked bellow the svg used to get a caret (indicator) looking the same
|
|
746
791
|
.custom-select {
|
|
747
792
|
background-color: inherit !important;
|
|
748
793
|
color: $foreground;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
background-size:
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
794
|
+
// bg image, size and position for 2 layers
|
|
795
|
+
background-image: $svg-caret, solid-gradient($input-bg);
|
|
796
|
+
background-size:
|
|
797
|
+
10px 6px,
|
|
798
|
+
cover;
|
|
799
|
+
background-position-x: $caret-position, center;
|
|
800
|
+
background-position-y:
|
|
801
|
+
bottom 50%,
|
|
755
802
|
center;
|
|
803
|
+
background-repeat: no-repeat;
|
|
804
|
+
|
|
756
805
|
//make the dotted duplicate focus line on firefox go away
|
|
757
806
|
&:-moz-focusring {
|
|
758
807
|
color: rgba(0, 0, 0, 0%);
|
|
759
808
|
text-shadow: 0 0 0 $foreground !important;
|
|
760
809
|
}
|
|
810
|
+
|
|
811
|
+
&:hover {
|
|
812
|
+
background-image: $svg-caret-hover, solid-gradient($input-bg);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
&.is-invalid,
|
|
816
|
+
&.is-invalid:focus {
|
|
817
|
+
// bg image, size and position for 3 layers
|
|
818
|
+
background-image: $svg-caret, $svg-error, solid-gradient($input-bg);
|
|
819
|
+
background-size:
|
|
820
|
+
10px 6px,
|
|
821
|
+
16px,
|
|
822
|
+
cover;
|
|
823
|
+
background-position-x: $caret-position, $error-position, center;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
&.is-invalid:hover {
|
|
827
|
+
background-image: $svg-caret-hover, $svg-error, solid-gradient($input-bg);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
&:disabled {
|
|
831
|
+
background-image: $svg-caret, solid-gradient($input-disabled-bg);
|
|
832
|
+
|
|
833
|
+
&.is-invalid {
|
|
834
|
+
background-image: $svg-caret, $svg-error,
|
|
835
|
+
solid-gradient($input-disabled-bg);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
761
838
|
}
|
|
762
839
|
|
|
763
840
|
.console-creator .custom-select {
|
|
764
|
-
background-image:
|
|
765
|
-
|
|
841
|
+
background-image: var(--dh-svg-icon-select-indicator),
|
|
842
|
+
solid-gradient($gray-700);
|
|
843
|
+
|
|
766
844
|
&:-moz-focusring {
|
|
767
845
|
color: rgba(0, 0, 0, 0%);
|
|
768
846
|
text-shadow: 0 0 0 $foreground !important;
|
|
@@ -770,8 +848,9 @@ input[type='number']::-webkit-inner-spin-button {
|
|
|
770
848
|
}
|
|
771
849
|
|
|
772
850
|
.modal-dialog.theme-bg-light .custom-select {
|
|
773
|
-
background-image:
|
|
774
|
-
|
|
851
|
+
background-image: var(--dh-svg-icon-select-indicator),
|
|
852
|
+
solid-gradient($gray-200);
|
|
853
|
+
|
|
775
854
|
&:-moz-focusring {
|
|
776
855
|
color: rgba(0, 0, 0, 0%);
|
|
777
856
|
text-shadow: 0 0 0 $background !important;
|
package/scss/util.scss
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
// Setup a mask-image for an inline svg
|
|
2
|
+
@mixin icon-image-mask($mask-image, $size: 16px) {
|
|
3
|
+
background-size: $size;
|
|
4
|
+
background-color: var(--dh-color-foreground);
|
|
5
|
+
mask-image: $mask-image;
|
|
6
|
+
mask-position: center center;
|
|
7
|
+
mask-repeat: no-repeat;
|
|
8
|
+
mask-size: $size;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Caret icon for pickers, dropdowns, select, etc.
|
|
12
|
+
@mixin caret-icon() {
|
|
13
|
+
$width: 10px;
|
|
14
|
+
$height: 6px;
|
|
15
|
+
@include icon-image-mask(var(--dh-svg-icon-selector-caret), $width $height);
|
|
16
|
+
|
|
17
|
+
background-color: var(--dh-color-selector-fg);
|
|
18
|
+
width: $width;
|
|
19
|
+
height: $height;
|
|
20
|
+
}
|
|
21
|
+
|
|
1
22
|
/// Utilty for increasing specificity by repeating a given selector n number of
|
|
2
23
|
/// times.
|
|
3
24
|
///
|
|
@@ -26,3 +47,9 @@
|
|
|
26
47
|
|
|
27
48
|
@return $result;
|
|
28
49
|
}
|
|
50
|
+
|
|
51
|
+
// Linear gradient with same start and end color. Useful for certain scenarios
|
|
52
|
+
// where we need a solid background image layer.
|
|
53
|
+
@function solid-gradient($color) {
|
|
54
|
+
@return linear-gradient(0deg, $color, $color);
|
|
55
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[class^=spectrum]{font-family:var(--font-family-sans-serif) !important}/*# sourceMappingURL=theme-spectrum-overrides.module.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/theme/theme-spectrum/theme-spectrum-overrides.module.css"],"names":[],"mappings":"AAAA,kBAGE","file":"theme-spectrum-overrides.module.css","sourcesContent":["[class^='spectrum'] {\n /* --font-family-sans-serif is defined in Bootstrap's _root.scss. We want\n Spectrum to use the same default font-family */\n font-family: var(--font-family-sans-serif) !important;\n}\n"]}
|