@gitlab/ui 112.2.3 → 112.3.1

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/components/base/nav/nav.js +89 -5
  3. package/dist/index.css +2 -2
  4. package/dist/index.css.map +1 -1
  5. package/dist/tailwind.css +1 -1
  6. package/dist/tokens/build/js/tokens.dark.js +80 -80
  7. package/dist/tokens/build/js/tokens.js +179 -179
  8. package/dist/tokens/css/tokens.css +50 -50
  9. package/dist/tokens/css/tokens.dark.css +25 -25
  10. package/dist/tokens/js/tokens.dark.js +80 -80
  11. package/dist/tokens/js/tokens.js +179 -179
  12. package/dist/tokens/json/tokens.dark.json +130 -130
  13. package/dist/tokens/json/tokens.json +229 -229
  14. package/dist/tokens/scss/_tokens.dark.scss +25 -25
  15. package/dist/tokens/scss/_tokens.scss +50 -50
  16. package/dist/tokens/tailwind/tokens.cjs +47 -47
  17. package/package.json +2 -2
  18. package/src/components/base/nav/nav.md +182 -4
  19. package/src/components/base/nav/nav.vue +60 -7
  20. package/src/tokens/build/css/tokens.css +50 -50
  21. package/src/tokens/build/css/tokens.dark.css +25 -25
  22. package/src/tokens/build/figma/constants.tokens.json +25 -25
  23. package/src/tokens/build/figma/deprecated.tokens.json +25 -25
  24. package/src/tokens/build/js/tokens.dark.js +80 -80
  25. package/src/tokens/build/js/tokens.js +179 -179
  26. package/src/tokens/build/json/tokens.dark.json +130 -130
  27. package/src/tokens/build/json/tokens.json +229 -229
  28. package/src/tokens/build/scss/_tokens.dark.scss +25 -25
  29. package/src/tokens/build/scss/_tokens.scss +50 -50
  30. package/src/tokens/build/tailwind/tokens.cjs +47 -47
  31. package/src/tokens/constant/color.tokens.json +25 -25
  32. package/src/tokens/deprecated/deprecated.color.tokens.json +25 -25
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [112.3.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.0...v112.3.1) (2025-04-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **DesignTokens:** add token.path conditional check ([79a400b](https://gitlab.com/gitlab-org/gitlab-ui/commit/79a400bf7649ce60d568e226525cc2a3bf8aa0c9))
7
+ * **DesignTokens:** use yarn build-tokens script for check tokens build ([f814b08](https://gitlab.com/gitlab-org/gitlab-ui/commit/f814b086764285e1126aac881274d83c2fbad02f))
8
+
9
+ # [112.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.2.3...v112.3.0) (2025-04-11)
10
+
11
+
12
+ ### Features
13
+
14
+ * **Color:** Reduce saturation ([b6a73d1](https://gitlab.com/gitlab-org/gitlab-ui/commit/b6a73d15f4b73aeb477f76d76fbf52b1f0e9fa80))
15
+
1
16
  ## [112.2.3](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.2.2...v112.2.3) (2025-04-08)
2
17
 
3
18
 
@@ -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
- components: {
7
- BNav
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
- inheritAttrs: false
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('b-nav',_vm._g(_vm._b({},'b-nav',_vm.$attrs,false),_vm.$listeners),[_vm._t("default")],2)};
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 */