@gitlab/ui 126.2.0 → 126.3.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.
@@ -117,7 +117,7 @@ var script = {
117
117
  const __vue_script__ = script;
118
118
 
119
119
  /* template */
120
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVisible)?_c('nav',{staticClass:"gl-pagination",attrs:{"aria-label":_vm.navigationLabel}},[_c('gl-button-group',_vm._g(_vm._b({staticClass:"gl-keyset-pagination gl-gap-3"},'gl-button-group',_vm.$attrs,false),_vm.$listeners),[_c('gl-button',{attrs:{"href":_vm.prevButtonLink,"disabled":_vm.disabled || !_vm.hasPreviousPage,"data-testid":"prevButton","category":"tertiary"},on:{"click":function($event){return _vm.$emit('prev', _vm.startCursor)}}},[_vm._t("previous-button-content",function(){return [_c('div',{staticClass:"gl-align-center gl-flex"},[_c('gl-icon',{attrs:{"name":"chevron-left"}}),_vm._v("\n "+_vm._s(_vm.prevText)+"\n ")],1)]})],2),_vm._v(" "),_c('gl-button',{attrs:{"href":_vm.nextButtonLink,"disabled":_vm.disabled || !_vm.hasNextPage,"data-testid":"nextButton","category":"tertiary"},on:{"click":function($event){return _vm.$emit('next', _vm.endCursor)}}},[_vm._t("next-button-content",function(){return [_c('div',{staticClass:"gl-align-center gl-flex"},[_vm._v("\n "+_vm._s(_vm.nextText)+"\n "),_c('gl-icon',{attrs:{"name":"chevron-right"}})],1)]})],2)],1)],1):_vm._e()};
120
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVisible)?_c('nav',{staticClass:"gl-pagination",attrs:{"aria-label":_vm.navigationLabel}},[_c('gl-button-group',_vm._g(_vm._b({staticClass:"gl-keyset-pagination gl-gap-3"},'gl-button-group',_vm.$attrs,false),_vm.$listeners),[_c('gl-button',{attrs:{"href":_vm.prevButtonLink,"disabled":_vm.disabled || !_vm.hasPreviousPage,"data-testid":"prevButton","category":"tertiary"},on:{"click":function($event){return _vm.$emit('prev', _vm.startCursor)}}},[_vm._t("previous-button-content",function(){return [_c('div',{staticClass:"gl-align-center gl-flex"},[_c('gl-icon',{staticClass:"gl-mr-2",attrs:{"name":"chevron-lg-left"}}),_vm._v("\n "+_vm._s(_vm.prevText)+"\n ")],1)]})],2),_vm._v(" "),_c('gl-button',{attrs:{"href":_vm.nextButtonLink,"disabled":_vm.disabled || !_vm.hasNextPage,"data-testid":"nextButton","category":"tertiary"},on:{"click":function($event){return _vm.$emit('next', _vm.endCursor)}}},[_vm._t("next-button-content",function(){return [_c('div',{staticClass:"gl-align-center gl-flex"},[_vm._v("\n "+_vm._s(_vm.nextText)+"\n "),_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"name":"chevron-lg-right"}})],1)]})],2)],1)],1):_vm._e()};
121
121
  var __vue_staticRenderFns__ = [];
122
122
 
123
123
  /* style */
@@ -81,14 +81,6 @@ var script = {
81
81
  required: false,
82
82
  default: null
83
83
  },
84
- /**
85
- * Text for the previous button (overridden by "previous" slot)
86
- */
87
- prevText: {
88
- type: String,
89
- required: false,
90
- default: translate('GlPagination.prevText', 'Previous')
91
- },
92
84
  /**
93
85
  * When using the compact pagination, use this prop to pass the next page number
94
86
  */
@@ -97,14 +89,6 @@ var script = {
97
89
  required: false,
98
90
  default: null
99
91
  },
100
- /**
101
- * Text for the next button (overridden by "next" slot)
102
- */
103
- nextText: {
104
- type: String,
105
- required: false,
106
- default: translate('GlPagination.nextText', 'Next')
107
- },
108
92
  /**
109
93
  * Text for the ellipsis (overridden by "ellipsis-left" and "ellipsis-right" slots)
110
94
  */
@@ -375,13 +359,13 @@ const __vue_script__ = script;
375
359
  var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVisible)?_c('nav',{staticClass:"gl-pagination",attrs:{"aria-label":_vm.labelNav}},[_c('ul',{class:_vm.wrapperClasses},[_c('li',{class:{
376
360
  disabled: _vm.prevPageIsDisabled,
377
361
  'gl-flex-auto': _vm.isFillAlign,
378
- },attrs:{"aria-hidden":_vm.prevPageIsDisabled,"data-testid":"gl-pagination-li"}},[_c(_vm.prevPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-prev","aria-label":_vm.prevPageAriaLabel,"href":_vm.prevPageHref},on:{"click":function($event){!_vm.prevPageIsDisabled ? _vm.handlePrevious($event, _vm.value - 1) : null;}}},[_vm._t("previous",function(){return [_c('gl-icon',{attrs:{"name":"chevron-left"}}),_vm._v(" "),_c('span',{staticClass:"gl-hidden @sm:gl-block"},[_vm._v(_vm._s(_vm.prevText))])]},null,{ page: _vm.value - 1, disabled: _vm.prevPageIsDisabled })],2)],1),_vm._v(" "),_vm._l((_vm.visibleItems),function(item){return _c('li',{key:item.key,class:{
362
+ },attrs:{"aria-hidden":_vm.prevPageIsDisabled,"data-testid":"gl-pagination-li"}},[_c(_vm.prevPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-prev","aria-label":_vm.prevPageAriaLabel,"href":_vm.prevPageHref},on:{"click":function($event){!_vm.prevPageIsDisabled ? _vm.handlePrevious($event, _vm.value - 1) : null;}}},[_vm._t("previous",function(){return [_c('gl-icon',{attrs:{"name":"chevron-lg-left"}})]},null,{ page: _vm.value - 1, disabled: _vm.prevPageIsDisabled })],2)],1),_vm._v(" "),_vm._l((_vm.visibleItems),function(item){return _c('li',{key:item.key,class:{
379
363
  disabled: item.disabled,
380
364
  'gl-flex-auto': _vm.isFillAlign,
381
365
  },attrs:{"data-testid":"gl-pagination-li"}},[_c(item.component,_vm._g(_vm._b({tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-item","size":"md","aria-disabled":item.disabled}},'component',item.attrs,false),item.listeners),[_vm._t(item.slot,function(){return [_vm._v(_vm._s(item.content))]},null,item.slotData)],2)],1)}),_vm._v(" "),_c('li',{class:{
382
366
  disabled: _vm.nextPageIsDisabled,
383
367
  'gl-flex-auto': _vm.isFillAlign,
384
- },attrs:{"aria-hidden":_vm.nextPageIsDisabled,"data-testid":"gl-pagination-li"}},[_c(_vm.nextPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-next","aria-label":_vm.nextPageAriaLabel,"href":_vm.nextPageHref},on:{"click":function($event){!_vm.nextPageIsDisabled ? _vm.handleNext($event, _vm.value + 1) : null;}}},[_vm._t("next",function(){return [_c('span',{staticClass:"gl-hidden @sm:gl-block"},[_vm._v(_vm._s(_vm.nextText))]),_vm._v(" "),_c('gl-icon',{attrs:{"name":"chevron-right"}})]},null,{ page: _vm.value + 1, disabled: _vm.nextPageIsDisabled })],2)],1)],2)]):_vm._e()};
368
+ },attrs:{"aria-hidden":_vm.nextPageIsDisabled,"data-testid":"gl-pagination-li"}},[_c(_vm.nextPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-pagination-item",attrs:{"data-testid":"gl-pagination-next","aria-label":_vm.nextPageAriaLabel,"href":_vm.nextPageHref},on:{"click":function($event){!_vm.nextPageIsDisabled ? _vm.handleNext($event, _vm.value + 1) : null;}}},[_vm._t("next",function(){return [_c('gl-icon',{attrs:{"name":"chevron-lg-right"}})]},null,{ page: _vm.value + 1, disabled: _vm.nextPageIsDisabled })],2)],1)],2)]):_vm._e()};
385
369
  var __vue_staticRenderFns__ = [];
386
370
 
387
371
  /* style */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "126.2.0",
3
+ "version": "126.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -127,7 +127,7 @@ export default {
127
127
  <!-- @slot Used to customize the appearance of the "Prev" button -->
128
128
  <slot name="previous-button-content">
129
129
  <div class="gl-align-center gl-flex">
130
- <gl-icon name="chevron-left" />
130
+ <gl-icon name="chevron-lg-left" class="gl-mr-2" />
131
131
  {{ prevText }}
132
132
  </div>
133
133
  </slot>
@@ -143,7 +143,7 @@ export default {
143
143
  <slot name="next-button-content">
144
144
  <div class="gl-align-center gl-flex">
145
145
  {{ nextText }}
146
- <gl-icon name="chevron-right" />
146
+ <gl-icon name="chevron-lg-right" class="gl-ml-2" />
147
147
  </div>
148
148
  </slot>
149
149
  </gl-button>
@@ -81,14 +81,6 @@ export default {
81
81
  required: false,
82
82
  default: null,
83
83
  },
84
- /**
85
- * Text for the previous button (overridden by "previous" slot)
86
- */
87
- prevText: {
88
- type: String,
89
- required: false,
90
- default: translate('GlPagination.prevText', 'Previous'),
91
- },
92
84
  /**
93
85
  * When using the compact pagination, use this prop to pass the next page number
94
86
  */
@@ -97,14 +89,6 @@ export default {
97
89
  required: false,
98
90
  default: null,
99
91
  },
100
- /**
101
- * Text for the next button (overridden by "next" slot)
102
- */
103
- nextText: {
104
- type: String,
105
- required: false,
106
- default: translate('GlPagination.nextText', 'Next'),
107
- },
108
92
  /**
109
93
  * Text for the ellipsis (overridden by "ellipsis-left" and "ellipsis-right" slots)
110
94
  */
@@ -412,14 +396,13 @@ export default {
412
396
  @click="!prevPageIsDisabled ? handlePrevious($event, value - 1) : null"
413
397
  >
414
398
  <!--
415
- @slot Content for the "previous" button. Overrides the "prevText" prop.
399
+ @slot Content for the "previous" button. Overrides the default icon.
416
400
  @binding {boolean} active
417
401
  @binding {boolean} disabled
418
402
  @binding {number} number
419
403
  -->
420
404
  <slot name="previous" v-bind="{ page: value - 1, disabled: prevPageIsDisabled }">
421
- <gl-icon name="chevron-left" />
422
- <span class="gl-hidden @sm:gl-block">{{ prevText }}</span>
405
+ <gl-icon name="chevron-lg-left" />
423
406
  </slot>
424
407
  </component>
425
408
  </li>
@@ -477,14 +460,13 @@ export default {
477
460
  @click="!nextPageIsDisabled ? handleNext($event, value + 1) : null"
478
461
  >
479
462
  <!--
480
- @slot Content for the "next" button. Overrides the "nextText" prop.
463
+ @slot Content for the "next" button. Overrides the default icon.
481
464
  @binding {boolean} active
482
465
  @binding {boolean} disabled
483
466
  @binding {number} number
484
467
  -->
485
468
  <slot name="next" v-bind="{ page: value + 1, disabled: nextPageIsDisabled }">
486
- <span class="gl-hidden @sm:gl-block">{{ nextText }}</span>
487
- <gl-icon name="chevron-right" />
469
+ <gl-icon name="chevron-lg-right" />
488
470
  </slot>
489
471
  </component>
490
472
  </li>
package/translations.js CHANGED
@@ -29,8 +29,6 @@ export default {
29
29
  'GlPagination.labelPage': 'Go to page %{page}',
30
30
  'GlPagination.labelPrevPage': 'Go to previous page',
31
31
  'GlPagination.nav': 'Pagination',
32
- 'GlPagination.nextText': 'Next',
33
- 'GlPagination.prevText': 'Previous',
34
32
  'GlProgressBar.ariaLabel': 'Progress bar',
35
33
  'GlSearchBoxByType.clearButtonTitle': 'Clear',
36
34
  'GlSearchBoxByType.input.placeholder': 'Search',