@gitlab/ui 90.5.0 → 91.0.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 CHANGED
@@ -1,3 +1,16 @@
1
+ # [91.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v90.5.0...v91.0.0) (2024-08-29)
2
+
3
+
4
+ ### Code Refactoring
5
+
6
+ * **Path:** Update to tokens ([f57c5e4](https://gitlab.com/gitlab-org/gitlab-ui/commit/f57c5e48d73f9ccb143ddf60e6b604dd84d129ee))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **Path:** Replace SCSS variables with design tokens for the
12
+ Path component and make some minor design tweaks. Remove theme option.
13
+
1
14
  # [90.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v90.4.0...v90.5.0) (2024-08-28)
2
15
 
3
16
 
@@ -2,14 +2,13 @@ import iconSpriteInfo from '@gitlab/svgs/dist/icons.json';
2
2
  import uniqueId from 'lodash/uniqueId';
3
3
  import findLast from 'lodash/findLast';
4
4
  import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
5
- import { glThemes } from '../../../utils/constants';
6
5
  import GlIcon from '../icon/icon';
7
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
8
7
 
9
8
  //
10
9
  const BOUNDARY_WIDTH = 40;
11
10
  const PATH_ITEM_CLASS = 'gl-path-button';
12
- const PATH_ACTIVE_ITEM_PREFIX = 'gl-path-active-item';
11
+ const PATH_ACTIVE_ITEM_CLASS = 'gl-path-active-item';
13
12
  var script = {
14
13
  name: 'GlPath',
15
14
  components: {
@@ -35,15 +34,6 @@ var script = {
35
34
  required: false,
36
35
  default: () => []
37
36
  },
38
- /**
39
- * The color theme to be used.
40
- */
41
- theme: {
42
- type: String,
43
- required: false,
44
- default: 'indigo',
45
- validator: theme => glThemes.includes(theme)
46
- },
47
37
  /**
48
38
  * The items' background color.
49
39
  */
@@ -61,9 +51,6 @@ var script = {
61
51
  };
62
52
  },
63
53
  computed: {
64
- activeClass() {
65
- return `${PATH_ACTIVE_ITEM_PREFIX}-${this.theme}`;
66
- },
67
54
  entireListVisible() {
68
55
  return this.width >= this.getScrollWidth();
69
56
  },
@@ -95,7 +82,7 @@ var script = {
95
82
  },
96
83
  methods: {
97
84
  pathItemClass(index) {
98
- return index === this.selectedIndex ? `${PATH_ITEM_CLASS} ${this.activeClass}` : PATH_ITEM_CLASS;
85
+ return index === this.selectedIndex ? `${PATH_ITEM_CLASS} ${PATH_ACTIVE_ITEM_CLASS}` : PATH_ITEM_CLASS;
99
86
  },
100
87
  onItemClicked(selectedIndex) {
101
88
  this.selectedIndex = selectedIndex;