@gitlab/ui 114.8.0 → 115.0.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.
@@ -29,6 +29,8 @@ import {
29
29
  SLOT_NAME_EMPTY,
30
30
  SLOT_NAME_TABS_END,
31
31
  SLOT_NAME_TABS_START,
32
+ SLOT_NAME_TOOLBAR_END,
33
+ SLOT_NAME_TOOLBAR_START,
32
34
  SLOT_NAME_TITLE
33
35
  } from '../../constants/slots'
34
36
  import { arrayIncludes } from '../../utils/array'
@@ -623,7 +625,11 @@ export const BTabs = /*#__PURE__*/ extend({
623
625
  class: this.navWrapperClass,
624
626
  key: 'bv-tabs-nav'
625
627
  },
626
- [$nav]
628
+ [
629
+ this.normalizeSlot(SLOT_NAME_TOOLBAR_START) || h(),
630
+ $nav,
631
+ this.normalizeSlot(SLOT_NAME_TOOLBAR_END) || h()
632
+ ]
627
633
  )
628
634
 
629
635
  const $children = this.normalizeSlot() || []
@@ -24,6 +24,8 @@ export const SLOT_NAME_TABLE_CAPTION = 'table-caption'
24
24
  export const SLOT_NAME_TABLE_COLGROUP = 'table-colgroup'
25
25
  export const SLOT_NAME_TABS_END = 'tabs-end'
26
26
  export const SLOT_NAME_TABS_START = 'tabs-start'
27
+ export const SLOT_NAME_TOOLBAR_END = 'toolbar-end'
28
+ export const SLOT_NAME_TOOLBAR_START = 'toolbar-start'
27
29
  export const SLOT_NAME_TEXT = 'text'
28
30
  export const SLOT_NAME_THEAD_TOP = 'thead-top'
29
31
  export const SLOT_NAME_TITLE = 'title'
package/translations.js CHANGED
@@ -35,4 +35,6 @@ export default {
35
35
  'GlSorting.sortAscending': 'Sort direction: ascending',
36
36
  'GlSorting.sortDescending': 'Sort direction: descending',
37
37
  'GlToken.closeButtonTitle': 'Remove',
38
+ 'GlTabs.GlScrollableTabs.scrollLeftLabel': 'Scroll left',
39
+ 'GlTabs.GlScrollableTabs.scrollRightLabel': 'Scroll right',
38
40
  };