@gitlab/ui 59.0.0 → 59.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "59.0.0",
3
+ "version": "59.1.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -4,7 +4,9 @@ indicate an issue’s status, a member’s role, or if a branch is protected.
4
4
 
5
5
  ## Usage
6
6
 
7
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
7
8
  ```html
9
+
8
10
  <gl-badge>Hello, world!</gl-badge>
9
11
  ```
10
12
 
@@ -19,7 +19,9 @@ with the necessary classes added to make it look like a button, it shares the sa
19
19
  Icon-only buttons must have an accessible name.
20
20
  You can provide one with the `aria-label` attribute, which is read out by screen readers.
21
21
 
22
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
22
23
  ```html
24
+
23
25
  <gl-button icon="close" aria-label="Close" />
24
26
  ```
25
27
 
@@ -59,6 +59,8 @@ const availableTokens = [
59
59
  Pass the list of tokens to the search component. Optionally, you can use `v-model` to receive
60
60
  realtime updates:
61
61
 
62
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
62
63
  ```html
64
+
63
65
  <gl-filtered-search :available-tokens="tokens" v-model="value" />
64
66
  ```
@@ -56,6 +56,7 @@
56
56
  .custom-control-input ~ .custom-control-label {
57
57
  @include gl-cursor-pointer;
58
58
  @include gl-pl-3;
59
+ @include gl-mb-3;
59
60
 
60
61
  &::before,
61
62
  &::after {
@@ -153,7 +154,7 @@
153
154
  .help-text {
154
155
  @include gl-mt-2;
155
156
  @include gl-text-gray-500;
156
- @include gl-mb-3;
157
+ @include gl-mb-0;
157
158
  @include gl-font-base;
158
159
  @include gl-line-height-normal;
159
160
  }
@@ -10,7 +10,9 @@ is to `v-bind` to the
10
10
  [`PageInfo`](https://docs.gitlab.com/ee/api/graphql/reference/#pageinfo) type
11
11
  returned by the endpoint:
12
12
 
13
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
13
14
  ```html
15
+
14
16
  <gl-keyset-pagination v-bind="pageInfo" />
15
17
  ```
16
18
 
@@ -25,7 +27,9 @@ can't be translated.
25
27
 
26
28
  Example:
27
29
 
30
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
28
31
  ```html
32
+
29
33
  <gl-keyset-pagination v-bind="pageInfo" :prev-text="__('Prev')" :next-text="__('Next')" />
30
34
  ```
31
35
 
@@ -40,7 +40,9 @@ selector to the root element that contains the markdown-generated HTML.
40
40
 
41
41
  Set the `compact` property to true in `GlMarkdown` to apply the compact markdown styles.
42
42
 
43
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
43
44
  ```html
45
+
44
46
  <gl-markdown compact></gl-compact>
45
47
  ```
46
48
 
@@ -4,7 +4,9 @@ to make sure this is the right dropdown component for you.
4
4
 
5
5
  ### Basic usage
6
6
 
7
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
7
8
  ```html
9
+
8
10
  <gl-disclosure-dropdown-dropdown toggle-text="Actions" :items="items" />
9
11
  ```
10
12
 
@@ -21,13 +21,17 @@ wbr {
21
21
  By default, `GlFriendlyWrap` wraps text with slashes (`/`) as the break-symbol, which is especially
22
22
  useful when displaying paths or URLs:
23
23
 
24
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
24
25
  ```html
26
+
25
27
  <gl-friendly-wrap text="/some/file/path" />
26
28
  ```
27
29
 
28
30
  The code above renders to the following HTML:
29
31
 
32
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
30
33
  ```html
34
+
31
35
  <span class="text-break">/<wbr>some/<wbr>file/<wbr>path</span>
32
36
  ```
33
37
 
@@ -44,7 +48,9 @@ Multiple custom break-symbols can be defined via the `GlFriendlyWrap` prop:
44
48
 
45
49
  Which renders to:
46
50
 
51
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
47
52
  ```html
53
+
48
54
  <span class="text-break">some;<wbr>text-<wbr>that.<wbr>needs;<wbr>to-<wbr>be.<wbr>wrapped</span>
49
55
  ```
50
56
 
@@ -61,6 +67,8 @@ Symbols can be words too:
61
67
 
62
68
  Which renders to:
63
69
 
70
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
64
71
  ```html
72
+
65
73
  <span class="text-break">it goes on and<wbr> on and<wbr> on and<wbr> on</span>
66
74
  ```
@@ -34,7 +34,9 @@ consistent formatting.
34
34
 
35
35
  This renders to the following HTML:
36
36
 
37
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
37
38
  ```html
39
+
38
40
  <span><span>Item 1</span>, <span>Item 2</span>, <span>Item 3</span></span>
39
41
  ```
40
42
 
@@ -52,7 +54,9 @@ A custom separator can be defined via the `separator` prop:
52
54
 
53
55
  This renders to the following HTML:
54
56
 
57
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
55
58
  ```html
59
+
56
60
  <span><span>Item 1</span>/<span>Item 2</span>/<span>Item 3</span></span>
57
61
  ```
58
62
 
@@ -70,7 +74,9 @@ A custom last separator can be defined via the `lastSeparator` prop:
70
74
 
71
75
  This renders to the following HTML:
72
76
 
77
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
73
78
  ```html
79
+
74
80
  <span><span>Item 1</span>, <span>Item 2</span>, and <span>Item 3</span></span>
75
81
  ```
76
82
 
@@ -85,6 +91,8 @@ A custom last separator used on two items will only place `lastSeparator` betwee
85
91
 
86
92
  This renders to the following HTML:
87
93
 
94
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
88
95
  ```html
96
+
89
97
  <span><span>Item 1</span> and <span>Item 2</span></span>
90
98
  ```
@@ -130,7 +130,9 @@ export default {
130
130
 
131
131
  The example above renders to this HTML:
132
132
 
133
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
133
134
  ```html
135
+
134
136
  <div>Written by <span>Some author</span></div>
135
137
  ```
136
138
 
@@ -4,7 +4,9 @@ The `GlTruncate` component lets you truncate the long texts with ellipsis.
4
4
 
5
5
  ## Usage
6
6
 
7
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
7
8
  ```html
9
+
8
10
  <gl-truncate :text="text" :position="position" />
9
11
  ```
10
12
 
@@ -46,7 +46,9 @@ const config = { ALLOWED_TAGS: ['b'] };
46
46
  const config = { ALLOWED_TAGS: [] };
47
47
  ```
48
48
 
49
+ <!-- Empty initial line is a workaround for https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2102 -->
49
50
  ```html
51
+
50
52
  <div v-safe-html:[config]="rawHtml"></div>
51
53
  ```
52
54
 
@@ -482,6 +482,10 @@
482
482
  background-color: $t-gray-a-08
483
483
  }
484
484
 
485
+ .gl-focus-bg-t-gray-a-08:focus {
486
+ background-color: $t-gray-a-08
487
+ }
488
+
485
489
  .gl-bg-t-gray-a-08\! {
486
490
  background-color: $t-gray-a-08 !important
487
491
  }
@@ -490,6 +494,10 @@
490
494
  background-color: $t-gray-a-08 !important
491
495
  }
492
496
 
497
+ .gl-focus-bg-t-gray-a-08\!:focus {
498
+ background-color: $t-gray-a-08 !important
499
+ }
500
+
493
501
  .gl-bg-theme-indigo-50 {
494
502
  background-color: $theme-indigo-50
495
503
  }
@@ -174,7 +174,7 @@
174
174
  background-color: $red-700;
175
175
  }
176
176
 
177
- @mixin gl-bg-t-gray-a-08($hover: true) {
177
+ @mixin gl-bg-t-gray-a-08($hover: true, $focus: true) {
178
178
  background-color: $t-gray-a-08;
179
179
  }
180
180