@gitlab/ui 112.3.2 → 112.3.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [112.3.3](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.2...v112.3.3) (2025-04-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **DesignTokens:** add custom format for JS output without comments ([14ee749](https://gitlab.com/gitlab-org/gitlab-ui/commit/14ee749590ce58ae26fe7237a93d35eff0d5ca00))
7
+
1
8
  ## [112.3.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.1...v112.3.2) (2025-04-15)
2
9
 
3
10
 
@@ -1,19 +1,96 @@
1
- import { BNavItem } from '../../../vendor/bootstrap-vue/src/components/nav/nav-item';
1
+ import GlLink from '../link/link';
2
2
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
3
3
 
4
4
  var script = {
5
5
  name: 'GlNavItem',
6
6
  components: {
7
- BNavItem
7
+ GlLink
8
8
  },
9
- inheritAttrs: false
9
+ props: {
10
+ /**
11
+ * When set to `true`, places the component in the active state with active styling
12
+ */
13
+ active: {
14
+ type: Boolean,
15
+ required: false,
16
+ default: false
17
+ },
18
+ /**
19
+ * When set to `true`, disables the component's functionality and places it in a disabled state.
20
+ */
21
+ disabled: {
22
+ type: Boolean,
23
+ required: false,
24
+ default: false
25
+ },
26
+ /**
27
+ * Denotes the target URL of the link for standard links.
28
+ */
29
+ href: {
30
+ type: String,
31
+ required: false,
32
+ default: undefined
33
+ },
34
+ /**
35
+ * <router-link> prop: Denotes the target route of the link.
36
+ * When clicked, the value of the to prop will be passed to `router.push()` internally,
37
+ * so the value can be either a string or a Location descriptor object.
38
+ */
39
+ to: {
40
+ type: [Object, String],
41
+ required: false,
42
+ default: undefined
43
+ },
44
+ /**
45
+ * <router-link> prop: Configure the active CSS class applied when the link is active.
46
+ */
47
+ activeClass: {
48
+ type: String,
49
+ required: false,
50
+ default: undefined
51
+ },
52
+ /**
53
+ * <router-link> prop: Configure the active CSS class applied when the link is active with exact match.
54
+ */
55
+ exactActiveClass: {
56
+ type: String,
57
+ required: false,
58
+ default: undefined
59
+ },
60
+ /**
61
+ * Attributes for the link element
62
+ */
63
+ linkAttrs: {
64
+ type: Object,
65
+ required: false,
66
+ default: null
67
+ },
68
+ /**
69
+ * Classes for the link element
70
+ */
71
+ linkClasses: {
72
+ type: Array,
73
+ required: false,
74
+ default: () => []
75
+ }
76
+ },
77
+ computed: {
78
+ computedLinkClasses() {
79
+ const classes = this.linkClasses;
80
+
81
+ // the `unstyled` link variant does not do this by itself
82
+ if (this.disabled) classes.push('disabled');
83
+ if (this.active) classes.push('active');
84
+ return classes;
85
+ }
86
+ }
10
87
  };
11
88
 
12
89
  /* script */
13
90
  const __vue_script__ = script;
14
91
 
15
92
  /* template */
16
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-nav-item',_vm._g(_vm._b({},'b-nav-item',_vm.$attrs,false),_vm.$listeners),[_vm._t("default")],2)};
93
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"nav-item"},[_c('gl-link',_vm._g(_vm._b({staticClass:"nav-link",class:_vm.computedLinkClasses,attrs:{"variant":"unstyled","active":_vm.active,"disabled":_vm.disabled,"href":_vm.href,"to":_vm.to,"active-class":_vm.activeClass,"exact-active-class":_vm.exactActiveClass}},'gl-link',_vm.linkAttrs,false),_vm.$listeners),[_vm._t("default")],2)],1)};
17
94
  var __vue_staticRenderFns__ = [];
18
95
 
19
96
  /* style */