@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.
- package/dist/components/base/nav_item/nav_item.js +11 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +17 -16
- package/dist/tokens/build/js/tokens.js +17 -16
- package/dist/utils/constants.js +6 -1
- package/package.json +6 -6
- package/src/components/base/nav_item/nav_item.scss +31 -0
- package/src/components/base/nav_item/nav_item.vue +11 -0
- package/src/tokens/build/css/tokens.css +17 -16
- package/src/tokens/build/css/tokens.dark.css +17 -16
- package/src/tokens/build/figma/mode.dark.json +26 -16
- package/src/tokens/build/figma/mode.json +26 -16
- package/src/tokens/build/js/tokens.dark.js +16 -15
- package/src/tokens/build/js/tokens.js +16 -15
- package/src/tokens/build/json/tokens.dark.json +66 -31
- package/src/tokens/build/json/tokens.json +66 -31
- package/src/tokens/build/scss/_tokens.dark.scss +17 -16
- package/src/tokens/build/scss/_tokens.scss +17 -16
- package/src/tokens/build/scss/_tokens_custom_properties.scss +1 -0
- package/src/tokens/contextual/nav.tokens.json +46 -16
- package/src/utils/constants.js +6 -0
|
@@ -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,
|