@gitlab/ui 126.1.1 → 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.
- package/dist/components/base/keyset_pagination/keyset_pagination.js +1 -1
- package/dist/components/base/pagination/pagination.js +2 -18
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +5 -1
- package/dist/tokens/build/js/tokens.js +5 -1
- package/package.json +4 -4
- package/src/components/base/keyset_pagination/keyset_pagination.vue +2 -2
- package/src/components/base/pagination/pagination.vue +4 -22
- package/src/tokens/build/css/tokens.css +4 -0
- package/src/tokens/build/css/tokens.dark.css +4 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +136 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +136 -0
- package/src/tokens/build/figma/semantic.tokens.json +64 -0
- package/src/tokens/build/js/tokens.dark.js +4 -0
- package/src/tokens/build/js/tokens.js +4 -0
- package/src/tokens/build/json/tokens.dark.json +142 -0
- package/src/tokens/build/json/tokens.json +142 -0
- package/src/tokens/build/scss/_tokens.dark.scss +4 -0
- package/src/tokens/build/scss/_tokens.scss +4 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -0
- package/src/tokens/build/tailwind/tokens.cjs +4 -0
- package/src/tokens/semantic/feedback.tokens.json +64 -0
- package/translations.js +0 -2
|
@@ -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"}})
|
|
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('
|
|
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 */
|