@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/CHANGELOG.md +14 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/badge/badge.md +2 -0
- package/src/components/base/button/button.md +2 -0
- package/src/components/base/filtered_search/filtered_search.md +2 -0
- package/src/components/base/form/form_checkbox/form_checkbox.scss +2 -1
- package/src/components/base/keyset_pagination/keyset_pagination.md +4 -0
- package/src/components/base/markdown/markdown.md +2 -0
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md +2 -0
- package/src/components/utilities/friendly_wrap/friendly_wrap.md +8 -0
- package/src/components/utilities/intersperse/intersperse.md +8 -0
- package/src/components/utilities/sprintf/sprintf.md +2 -0
- package/src/components/utilities/truncate/truncate.md +2 -0
- package/src/directives/safe_html/safe_html.md +2 -0
- package/src/scss/utilities.scss +8 -0
- package/src/scss/utility-mixins/background.scss +1 -1
package/package.json
CHANGED
|
@@ -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-
|
|
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
|
|
package/src/scss/utilities.scss
CHANGED
|
@@ -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
|
}
|