@gitlab/ui 112.2.3 → 112.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/CHANGELOG.md +7 -0
- package/dist/components/base/nav/nav.js +89 -5
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tokens/build/js/tokens.dark.js +80 -80
- package/dist/tokens/build/js/tokens.js +179 -179
- package/dist/tokens/css/tokens.css +50 -50
- package/dist/tokens/css/tokens.dark.css +25 -25
- package/dist/tokens/js/tokens.dark.js +80 -80
- package/dist/tokens/js/tokens.js +179 -179
- package/dist/tokens/json/tokens.dark.json +130 -130
- package/dist/tokens/json/tokens.json +229 -229
- package/dist/tokens/scss/_tokens.dark.scss +25 -25
- package/dist/tokens/scss/_tokens.scss +50 -50
- package/dist/tokens/tailwind/tokens.cjs +47 -47
- package/package.json +2 -2
- package/src/components/base/nav/nav.md +182 -4
- package/src/components/base/nav/nav.vue +60 -7
- package/src/tokens/build/css/tokens.css +50 -50
- package/src/tokens/build/css/tokens.dark.css +25 -25
- package/src/tokens/build/figma/constants.tokens.json +25 -25
- package/src/tokens/build/figma/deprecated.tokens.json +25 -25
- package/src/tokens/build/js/tokens.dark.js +80 -80
- package/src/tokens/build/js/tokens.js +179 -179
- package/src/tokens/build/json/tokens.dark.json +130 -130
- package/src/tokens/build/json/tokens.json +229 -229
- package/src/tokens/build/scss/_tokens.dark.scss +25 -25
- package/src/tokens/build/scss/_tokens.scss +50 -50
- package/src/tokens/build/tailwind/tokens.cjs +47 -47
- package/src/tokens/constant/color.tokens.json +25 -25
- package/src/tokens/deprecated/deprecated.color.tokens.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [112.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.2.3...v112.3.0) (2025-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **Color:** Reduce saturation ([b6a73d1](https://gitlab.com/gitlab-org/gitlab-ui/commit/b6a73d15f4b73aeb477f76d76fbf52b1f0e9fa80))
|
|
7
|
+
|
|
1
8
|
## [112.2.3](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.2.2...v112.2.3) (2025-04-08)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,19 +1,103 @@
|
|
|
1
|
-
import { BNav } from '../../../vendor/bootstrap-vue/src/components/nav/nav';
|
|
2
1
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
3
2
|
|
|
4
3
|
var script = {
|
|
5
4
|
name: 'GlNav',
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Align the nav items in the nav: 'start' (or 'left'), 'center', 'end' (or 'right')
|
|
8
|
+
*/
|
|
9
|
+
align: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: false,
|
|
12
|
+
default: ''
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* Set this prop when the nav is placed inside a card header
|
|
16
|
+
*/
|
|
17
|
+
cardHeader: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
required: false,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Proportionately fills all horizontal space with nav items.
|
|
24
|
+
* All horizontal space is occupied, but not every nav item has the same width
|
|
25
|
+
*/
|
|
26
|
+
fill: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
required: false,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Fills all horizontal space with nav items, but unlike 'fill', every nav item will be the same width
|
|
33
|
+
*/
|
|
34
|
+
justified: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: false,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Renders the nav items with the appearance of pill buttons
|
|
41
|
+
*/
|
|
42
|
+
pills: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: false,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Makes the nav smaller
|
|
49
|
+
*/
|
|
50
|
+
small: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
required: false,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Renders the nav items with the appearance of tabs
|
|
57
|
+
*/
|
|
58
|
+
tabs: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
required: false,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* Specify the HTML tag to render instead of the default tag
|
|
65
|
+
*/
|
|
66
|
+
tag: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: false,
|
|
69
|
+
default: 'ul'
|
|
70
|
+
}
|
|
8
71
|
},
|
|
9
|
-
|
|
72
|
+
computed: {
|
|
73
|
+
justifyContent() {
|
|
74
|
+
if (!this.align) return '';
|
|
75
|
+
const alignMapping = {
|
|
76
|
+
left: 'start',
|
|
77
|
+
right: 'end'
|
|
78
|
+
};
|
|
79
|
+
return `justify-content-${alignMapping[this.align] || this.align}`;
|
|
80
|
+
},
|
|
81
|
+
classes() {
|
|
82
|
+
return {
|
|
83
|
+
'nav-tabs': this.tabs,
|
|
84
|
+
'nav-pills': this.pills && !this.tabs,
|
|
85
|
+
'card-header-tabs': this.cardHeader && this.tabs,
|
|
86
|
+
'card-header-pills': this.cardHeader && this.pills && !this.tabs,
|
|
87
|
+
'nav-fill': this.fill,
|
|
88
|
+
'nav-justified': this.justified,
|
|
89
|
+
[this.justifyContent]: this.align,
|
|
90
|
+
small: this.small
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
10
94
|
};
|
|
11
95
|
|
|
12
96
|
/* script */
|
|
13
97
|
const __vue_script__ = script;
|
|
14
98
|
|
|
15
99
|
/* template */
|
|
16
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(
|
|
100
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._g({tag:"component",staticClass:"nav",class:_vm.classes},_vm.$listeners),[_vm._t("default")],2)};
|
|
17
101
|
var __vue_staticRenderFns__ = [];
|
|
18
102
|
|
|
19
103
|
/* style */
|