@gitlab/ui 136.1.0 → 136.2.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.
@@ -1,3 +1,4 @@
1
+ import { navItemIndicatorPositionOptions } from '../../../utils/constants';
1
2
  import GlAnimatedChevronRightDownIcon from '../animated_icon/animated_chevron_right_down_icon';
2
3
  import GlIcon from '../icon/icon';
3
4
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
@@ -64,6 +65,15 @@ var script = {
64
65
  type: [String, Object],
65
66
  required: false,
66
67
  default: null
68
+ },
69
+ /**
70
+ * Position of the selected indicator
71
+ */
72
+ indicatorPosition: {
73
+ type: String,
74
+ required: false,
75
+ default: 'left',
76
+ validator: value => navItemIndicatorPositionOptions[value] !== undefined
67
77
  }
68
78
  },
69
79
  computed: {
@@ -71,7 +81,7 @@ var script = {
71
81
  return this.isParent ? String(this.expanded) : null;
72
82
  },
73
83
  classes() {
74
- return ['gl-nav-item', {
84
+ return ['gl-nav-item', navItemIndicatorPositionOptions[this.indicatorPosition], {
75
85
  'gl-nav-item-is-icon-only': this.isIconOnly,
76
86
  'gl-nav-item-has-start-slot': this.icon || Boolean(this.$scopedSlots.icon),
77
87
  'gl-nav-item-has-end-slot': Boolean(this.$scopedSlots.end) || this.isParent,