@gitlab/ui 78.15.0 → 78.15.2
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/components/base/keyset_pagination/keyset_pagination.js +6 -5
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/base/card/card.scss +4 -4
- package/src/components/base/keyset_pagination/keyset_pagination.stories.js +2 -2
- package/src/components/base/keyset_pagination/keyset_pagination.vue +6 -5
- package/translations.json +3 -0
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
|
|
25
25
|
.gl-card-header {
|
|
26
26
|
@include gl-border-b-solid;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
border-top-left-radius: calc($gl-border-radius-base - $gl-border-size-1);
|
|
28
|
+
border-top-right-radius: calc($gl-border-radius-base - $gl-border-size-1);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.gl-card-footer {
|
|
32
32
|
@include gl-border-t-solid;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
border-bottom-left-radius: calc($gl-border-radius-base - $gl-border-size-1);
|
|
34
|
+
border-bottom-right-radius: calc($gl-border-radius-base - $gl-border-size-1);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.gl-card-header,
|
|
@@ -6,8 +6,8 @@ const generateProps = ({
|
|
|
6
6
|
hasNextPage = true,
|
|
7
7
|
startCursor = 'eyJpZCI6IjE3NTg1ODciLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDgtMjAgMTQ6NDc6MDguNTQ1MjE1MDAwIFVUQyJ9',
|
|
8
8
|
endCursor = 'eyJpZCI6IjEyNjcxNzkiLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDItMTkgMjE6MDA6MDUuODU5NTQ2MDAwIFVUQyJ9',
|
|
9
|
-
prevText
|
|
10
|
-
nextText
|
|
9
|
+
prevText,
|
|
10
|
+
nextText,
|
|
11
11
|
prevButtonLink = '',
|
|
12
12
|
nextButtonLink = '',
|
|
13
13
|
disabled = false,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import GlButton from '../button/button.vue';
|
|
3
3
|
import GlButtonGroup from '../button_group/button_group.vue';
|
|
4
4
|
import GlIcon from '../icon/icon.vue';
|
|
5
|
+
import { translate } from '../../../utils/i18n';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
name: 'GlKeysetPagination',
|
|
@@ -53,12 +54,12 @@ export default {
|
|
|
53
54
|
},
|
|
54
55
|
/**
|
|
55
56
|
* The text that will be rendered inside the "Prev" button.
|
|
56
|
-
* It
|
|
57
|
+
* It's important to provide this parameter since the default text is not translatable.
|
|
57
58
|
*/
|
|
58
59
|
prevText: {
|
|
59
60
|
type: String,
|
|
60
61
|
required: false,
|
|
61
|
-
default: 'Prev',
|
|
62
|
+
default: () => translate('GlKeysetPagination.prevText', 'Prev'),
|
|
62
63
|
},
|
|
63
64
|
/**
|
|
64
65
|
* A link that will be used as the "Prev" button\'s "href" attribute.
|
|
@@ -76,16 +77,16 @@ export default {
|
|
|
76
77
|
navigationLabel: {
|
|
77
78
|
type: String,
|
|
78
79
|
required: false,
|
|
79
|
-
default: 'Pagination',
|
|
80
|
+
default: () => translate('GlKeysetPagination.navigationLabel', 'Pagination'),
|
|
80
81
|
},
|
|
81
82
|
/**
|
|
82
83
|
* The text that will be rendered inside the "Next" button.
|
|
83
|
-
* It
|
|
84
|
+
* It's important to provide this parameter since the default text is not translatable.
|
|
84
85
|
*/
|
|
85
86
|
nextText: {
|
|
86
87
|
type: String,
|
|
87
88
|
required: false,
|
|
88
|
-
default: 'Next',
|
|
89
|
+
default: () => translate('GlKeysetPagination.nextText', 'Next'),
|
|
89
90
|
},
|
|
90
91
|
/**
|
|
91
92
|
* A link that will be used as the "Next" button\'s "href" attribute.
|
package/translations.json
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
"GlSorting.sortDescending": "Sort direction: descending",
|
|
5
5
|
"GlSearchBoxByType.clearButtonTitle": "Clear",
|
|
6
6
|
"GlSearchBoxByType.input.placeholder": "Search",
|
|
7
|
+
"GlKeysetPagination.prevText": "Prev",
|
|
8
|
+
"GlKeysetPagination.navigationLabel": "Pagination",
|
|
9
|
+
"GlKeysetPagination.nextText": "Next",
|
|
7
10
|
"GlBreadcrumb.showMoreLabel": "Show more breadcrumbs",
|
|
8
11
|
"GlCollapsibleListbox.srOnlyResultsLabel": "Results count"
|
|
9
12
|
}
|