@gitlab/ui 66.32.0 → 66.32.1

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 16 Oct 2023 11:22:12 GMT
3
+ * Generated on Tue, 17 Oct 2023 08:12:24 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 16 Oct 2023 11:22:12 GMT
3
+ * Generated on Tue, 17 Oct 2023 08:12:24 GMT
4
4
  */
5
5
 
6
- :root {
6
+ :root.gl-dark {
7
7
  --red-950: #fff4f3;
8
8
  --red-900: #fcf1ef;
9
9
  --red-800: #fdd4cd;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 16 Oct 2023 11:22:12 GMT
3
+ * Generated on Tue, 17 Oct 2023 08:12:24 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#fff";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 16 Oct 2023 11:22:12 GMT
3
+ * Generated on Tue, 17 Oct 2023 08:12:24 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#000";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 16 Oct 2023 11:22:12 GMT
3
+ // Generated on Tue, 17 Oct 2023 08:12:24 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 16 Oct 2023 11:22:12 GMT
3
+ // Generated on Tue, 17 Oct 2023 08:12:24 GMT
4
4
 
5
5
  $gl-line-height-52: 3.25rem;
6
6
  $gl-line-height-44: 2.75rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "66.32.0",
3
+ "version": "66.32.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -91,9 +91,9 @@
91
91
  "@babel/core": "^7.23.2",
92
92
  "@babel/preset-env": "^7.23.2",
93
93
  "@babel/preset-react": "^7.22.15",
94
- "@gitlab/eslint-plugin": "19.0.0",
95
- "@gitlab/fonts": "^1.2.0",
96
- "@gitlab/stylelint-config": "5.0.0",
94
+ "@gitlab/eslint-plugin": "19.2.0",
95
+ "@gitlab/fonts": "^1.3.0",
96
+ "@gitlab/stylelint-config": "5.0.1",
97
97
  "@gitlab/svgs": "3.66.0",
98
98
  "@rollup/plugin-commonjs": "^11.1.0",
99
99
  "@rollup/plugin-node-resolve": "^7.1.3",
@@ -122,7 +122,7 @@
122
122
  "babel-loader": "^8.0.5",
123
123
  "babel-plugin-require-context-hook": "^1.0.0",
124
124
  "bootstrap": "4.6.2",
125
- "cypress": "13.3.0",
125
+ "cypress": "13.3.1",
126
126
  "cypress-axe": "^1.4.0",
127
127
  "dompurify": "^3.0.0",
128
128
  "emoji-regex": "^10.0.0",
@@ -28,6 +28,16 @@ $clear-button-size: 24px;
28
28
  }
29
29
  }
30
30
 
31
+ // top container radius minus its border size to avoid the small gap between the focus ring and container
32
+ $input-focus-ring-border-radius: calc($gl-border-radius-large - $gl-border-size-1);
33
+
34
+ &.gl-listbox-topmost {
35
+ .gl-listbox-search-input {
36
+ border-top-left-radius: $input-focus-ring-border-radius;
37
+ border-top-right-radius: $input-focus-ring-border-radius;
38
+ }
39
+ }
40
+
31
41
  .gl-listbox-search-icon {
32
42
  @include gl-absolute;
33
43
  top: calc(50% - #{$search-icon-size} / 2);
@@ -809,6 +809,7 @@ export default {
809
809
  :aria-owns="listboxId"
810
810
  data-testid="listbox-search-input"
811
811
  :placeholder="searchPlaceholder"
812
+ :class="{ 'gl-listbox-topmost': !headerText }"
812
813
  @input="search"
813
814
  @keydown.enter.prevent
814
815
  @keydown="onKeydown"
@@ -13,18 +13,34 @@ Usage:
13
13
  */
14
14
  font-display: block;
15
15
  font-style: normal;
16
- font-named-instance: 'Regular'; /* stylelint-disable property-no-unknown */
16
+ /* stylelint-disable-next-line property-no-unknown */
17
+ font-named-instance: 'Regular';
17
18
  src: url('../../static/fonts/GitLabSans.woff2') format('woff2');
18
19
  }
19
20
 
21
+ @font-face {
22
+ font-family: 'GitLab Sans';
23
+ font-weight: 100 900;
24
+ /**
25
+ * Applications should use a less aggressive font-display value than this.
26
+ * This is done to make sure Storybook Previews load the font.
27
+ */
28
+ font-display: block;
29
+ font-style: italic;
30
+ /* stylelint-disable-next-line property-no-unknown */
31
+ font-named-instance: 'Regular';
32
+ src: url('../../static/fonts/GitLabSans-Italic.woff2') format('woff2');
33
+ }
34
+
20
35
  /* -------------------------------------------------------
21
36
  Monospaced font: GitLab Mono.
22
37
 
23
38
  Usage:
24
- html { font-family: 'GitLab Mono', sans-serif; }
39
+ html { font-family: 'GitLab Mono', monospace; }
25
40
  */
26
41
  @font-face {
27
42
  font-family: 'GitLab Mono';
43
+ font-weight: 100 900;
28
44
  /**
29
45
  * Applications should use a less aggressive font-display value than this.
30
46
  * This is done to make sure Storybook Previews load the font.
@@ -33,3 +49,19 @@ Usage:
33
49
  font-style: normal;
34
50
  src: url('../../static/fonts/GitLabMono.woff2') format('woff2');
35
51
  }
52
+
53
+ @font-face {
54
+ font-family: 'GitLab Mono';
55
+ font-weight: 100 900;
56
+ /**
57
+ * Applications should use a less aggressive font-display value than this.
58
+ * This is done to make sure Storybook Previews load the font.
59
+ */
60
+ font-display: block;
61
+ font-style: italic;
62
+ src: url('../../static/fonts/GitLabMono-Italic.woff2') format('woff2');
63
+ }
64
+
65
+ * {
66
+ font-synthesis: none;
67
+ }
@@ -15,6 +15,7 @@
15
15
 
16
16
  @import 'components';
17
17
 
18
+ @import '../../dist/tokens/css/tokens';
18
19
  @import 'storybook_dark_mode';
19
20
 
20
21
  /**
@@ -1,4 +1,5 @@
1
1
  @import 'variables';
2
+ @import '../../dist/tokens/css/tokens.dark';
2
3
 
3
4
  // conditional overrides for dark mode for use in storybook.
4
5
  // Because we only use application.css from gitlab (and not
@@ -15,7 +16,6 @@
15
16
  // Note that we are assigning variables with different values due to the way GitLab inverts variables in dark mode.
16
17
  // e.g. text color is usually $gray-900, but in dark mode $gray-900 variable gets inverted to $gray-50
17
18
  --gl-text-color: #{$gray-50};
18
- --gray-600: #{$gray-300};
19
19
 
20
20
  color-scheme: dark;
21
21