@gitlab/ui 112.3.1 → 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 +14 -0
- package/dist/components/base/nav/nav_item.js +81 -4
- package/dist/components/base/new_dropdowns/listbox/listbox.js +3 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +32018 -0
- package/dist/tokens/docs/tokens-tailwind-docs.json +32018 -0
- package/dist/tokens/figma/constants.tokens.json +998 -0
- package/dist/tokens/figma/contextual.tokens.json +3496 -0
- package/dist/tokens/figma/deprecated.tokens.json +2243 -0
- package/dist/tokens/figma/semantic.tokens.json +1423 -0
- package/dist/tokens/tokens_story.js +2 -2
- package/dist/tokens/tokens_tailwind_table.js +278 -0
- package/package.json +12 -9
- package/src/components/base/nav/nav_item.vue +98 -6
- package/src/components/base/new_dropdowns/listbox/listbox.vue +3 -3
- package/src/internal/color_contrast/color_contrast.vue +2 -2
- package/src/tokens/build/css/tokens.dark.css +1 -1
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +32018 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +32018 -0
- package/src/tokens/tokens_story.vue +2 -2
- package/src/tokens/tokens_tailwind_table.vue +360 -0
- package/src/vendor/bootstrap/scss/_reboot.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [112.3.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.1...v112.3.2) (2025-04-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlListbox:** Allows listbox to accept null values as defaults ([13848f1](https://gitlab.com/gitlab-org/gitlab-ui/commit/13848f15712c5954ca466b2de4336684aacc3e22))
|
|
14
|
+
|
|
1
15
|
## [112.3.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.0...v112.3.1) (2025-04-14)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,19 +1,96 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
7
|
+
GlLink
|
|
8
8
|
},
|
|
9
|
-
|
|
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('
|
|
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 */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import clamp from 'lodash/clamp';
|
|
2
2
|
import uniqueId from 'lodash/uniqueId';
|
|
3
|
-
import isNil from 'lodash/isNil';
|
|
4
3
|
import { stopEvent } from '../../../../utils/utils';
|
|
5
4
|
import { GL_DROPDOWN_SHOWN, GL_DROPDOWN_HIDDEN, POSITION_ABSOLUTE, POSITION_FIXED, GL_DROPDOWN_CONTENTS_CLASS, HOME, END, ARROW_UP, ARROW_DOWN, ENTER } from '../constants';
|
|
6
5
|
import { buttonCategoryOptions, dropdownVariantOptions, buttonSizeOptions, dropdownPlacements } from '../../../../utils/constants';
|
|
@@ -57,7 +56,7 @@ var script = {
|
|
|
57
56
|
* Array of selected items values for multi-select and selected item value for single-select
|
|
58
57
|
*/
|
|
59
58
|
selected: {
|
|
60
|
-
type: [Array, String, Number],
|
|
59
|
+
type: [Array, String, Number, null],
|
|
61
60
|
required: false,
|
|
62
61
|
default: () => []
|
|
63
62
|
},
|
|
@@ -397,7 +396,7 @@ var script = {
|
|
|
397
396
|
value
|
|
398
397
|
} = _ref2;
|
|
399
398
|
return value === selected;
|
|
400
|
-
})).sort();
|
|
399
|
+
})).filter(index => index !== -1).sort();
|
|
401
400
|
},
|
|
402
401
|
showList() {
|
|
403
402
|
return this.flattenedOptions.length && !this.searching;
|
|
@@ -482,7 +481,7 @@ var script = {
|
|
|
482
481
|
}
|
|
483
482
|
this.selectedValues = [...newSelected];
|
|
484
483
|
} else {
|
|
485
|
-
this.selectedValues =
|
|
484
|
+
this.selectedValues = [newSelected];
|
|
486
485
|
}
|
|
487
486
|
}
|
|
488
487
|
},
|