@deephaven/components 0.57.1-beta.0 → 0.57.2-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/components",
3
- "version": "0.57.1-beta.0+c8a74a2f",
3
+ "version": "0.57.2-beta.0+9d519e10",
4
4
  "description": "Deephaven React component library",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@adobe/react-spectrum": "^3.29.0",
28
- "@deephaven/icons": "^0.57.1-beta.0+c8a74a2f",
29
- "@deephaven/log": "^0.57.1-beta.0+c8a74a2f",
30
- "@deephaven/react-hooks": "^0.57.1-beta.0+c8a74a2f",
31
- "@deephaven/utils": "^0.57.1-beta.0+c8a74a2f",
28
+ "@deephaven/icons": "^0.57.2-beta.0+9d519e10",
29
+ "@deephaven/log": "^0.57.2-beta.0+9d519e10",
30
+ "@deephaven/react-hooks": "^0.57.2-beta.0+9d519e10",
31
+ "@deephaven/utils": "^0.57.2-beta.0+9d519e10",
32
32
  "@fortawesome/fontawesome-svg-core": "^6.2.1",
33
33
  "@fortawesome/react-fontawesome": "^0.2.0",
34
34
  "@react-spectrum/theme-default": "^3.5.1",
@@ -52,7 +52,7 @@
52
52
  "react-dom": "^17.x"
53
53
  },
54
54
  "devDependencies": {
55
- "@deephaven/mocks": "^0.57.1-beta.0+c8a74a2f"
55
+ "@deephaven/mocks": "^0.57.2-beta.0+9d519e10"
56
56
  },
57
57
  "files": [
58
58
  "dist",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "c8a74a2f6e87110710e395115f0f68802b9f7c67"
68
+ "gitHead": "9d519e101d201498e87b81eea5d9b98b2acb582f"
69
69
  }
@@ -124,6 +124,8 @@ button:focus {
124
124
  //Make btns a minumum size
125
125
  .btn {
126
126
  min-width: 7rem;
127
+ // Matching Spectrum styles
128
+ -webkit-font-smoothing: antialiased;
127
129
  }
128
130
 
129
131
  span.btn-disabled-wrapper {
@@ -308,6 +310,7 @@ span.btn-disabled-wrapper {
308
310
  background: var(--dh-color-action-bg);
309
311
  border: 1px solid var(--dh-color-action-border);
310
312
  color: var(--dh-color-action-fg);
313
+ font-weight: $font-weight-normal;
311
314
 
312
315
  &.active {
313
316
  border-color: var(--dh-color-action-active-border);
@@ -17,7 +17,6 @@
17
17
  $color: var(--dh-color-#{$semantic-value}-contrast);
18
18
 
19
19
  color: $color;
20
- font-weight: var(--spectrum-global-font-weight-bold);
21
20
  @include gradient-bg($background);
22
21
 
23
22
  border-color: $border;
@@ -1,5 +1,6 @@
1
1
  /* stylelint-disable scss/comment-no-empty */
2
2
  // Bootstrap mixin overrides for `bootstrap/scss/mixins/_forms.scss`
3
+ @use 'sass:map';
3
4
 
4
5
  // Form control focus state
5
6
  //
@@ -38,9 +39,11 @@
38
39
  // It's primary purpose is to convert the input color value into a dh css
39
40
  // variable expression. There are a few additional tweaks annotated with
40
41
  // `DH Customization:`
41
- @mixin form-validation-state($state, $semantic-value, $icon) {
42
+ @mixin form-validation-state($state, $bootstrap-value, $icon) {
43
+ $semantic-value: map.get($bootstrap-dh-semantic-map, $bootstrap-value) or '';
44
+
42
45
  // DH Customization: Convert semantic value to css variable
43
- $color: var(--dh-color-visual-#{$semantic-value});
46
+ $color: var(--dh-color-#{$semantic-value}-bg);
44
47
 
45
48
  .#{$state}-feedback {
46
49
  display: none;
@@ -1,20 +1,20 @@
1
1
  // Bootstrap mixin overrides for `bootstrap/scss/mixins/_text-emphasis.scss`
2
+ @use 'sass:map';
3
+
4
+ @mixin text-emphasis-variant(
5
+ $parent,
6
+ $bootstrap-value,
7
+ $ignore-warning: false
8
+ ) {
9
+ $semantic-value: map.get($bootstrap-dh-semantic-map, $bootstrap-value) or '';
2
10
 
3
- @mixin text-emphasis-variant($parent, $semantic-value, $ignore-warning: false) {
4
11
  #{$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
- }
12
+ color: var(--dh-color-#{$semantic-value}-bg) !important;
11
13
  }
12
14
  @if $emphasized-link-hover-darken-percentage != 0 {
13
15
  a#{$parent} {
14
16
  @include hover-focus {
15
- color: var(
16
- --spectrum-#{$semantic-value}-background-color-default
17
- ) !important;
17
+ color: var(--dh-color-#{$semantic-value}-hover-bg) !important;
18
18
  }
19
19
  }
20
20
  }
@@ -165,6 +165,7 @@ $btn-transition:
165
165
  border-color 0.12s ease-in-out,
166
166
  box-shadow 0.12s ease-in-out; //default 0.15 is too long
167
167
  $btn-border-width: 2px;
168
+ $btn-font-weight: var(--spectrum-global-font-weight-bold);
168
169
 
169
170
  //Override Inputs
170
171
  $input-bg: var(--dh-color-input-bg);