@gitlab/ui 54.2.0 → 54.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "54.2.0",
3
+ "version": "54.2.2",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -85,7 +85,7 @@
85
85
  "@babel/core": "^7.20.12",
86
86
  "@babel/preset-env": "^7.20.2",
87
87
  "@gitlab/eslint-plugin": "18.1.0",
88
- "@gitlab/fonts": "^1.1.2",
88
+ "@gitlab/fonts": "^1.2.0",
89
89
  "@gitlab/stylelint-config": "4.1.0",
90
90
  "@gitlab/svgs": "3.17.0",
91
91
  "@rollup/plugin-commonjs": "^11.1.0",
@@ -123,9 +123,9 @@
123
123
  "glob": "^7.2.0",
124
124
  "identity-obj-proxy": "^3.0.0",
125
125
  "inquirer-select-directory": "^1.2.0",
126
- "jest": "^29.3.1",
127
- "jest-circus": "29.3.1",
128
- "jest-environment-jsdom": "29.3.1",
126
+ "jest": "^29.4.0",
127
+ "jest-circus": "29.4.0",
128
+ "jest-environment-jsdom": "29.4.0",
129
129
  "markdownlint-cli": "^0.29.0",
130
130
  "mockdate": "^2.0.5",
131
131
  "npm-run-all": "^4.1.5",
@@ -223,9 +223,7 @@ describe('datepicker component', () => {
223
223
  slots: { default: input.outerHTML },
224
224
  });
225
225
 
226
- expect(pikadayConfig()).toMatchObject({
227
- field: input,
228
- });
226
+ expect(pikadayConfig().field).toEqual(input);
229
227
  });
230
228
  });
231
229
 
@@ -7,6 +7,8 @@ import GlDisclosureDropdownItem from './disclosure_dropdown_item.vue';
7
7
  describe('GlDisclosureDropdownItem', () => {
8
8
  let wrapper;
9
9
 
10
+ const clone = (i) => JSON.parse(JSON.stringify(i));
11
+
10
12
  const buildWrapper = (propsData, slots = {}) => {
11
13
  wrapper = mount(GlDisclosureDropdownItem, {
12
14
  propsData,
@@ -18,7 +20,7 @@ describe('GlDisclosureDropdownItem', () => {
18
20
  describe('when default slot content provided', () => {
19
21
  const content = 'This is an item';
20
22
  const slots = { default: content };
21
- const item = mockItems[1];
23
+ const item = clone(mockItems[1]);
22
24
 
23
25
  beforeEach(() => {
24
26
  buildWrapper({ item }, slots);
@@ -41,7 +43,7 @@ describe('GlDisclosureDropdownItem', () => {
41
43
 
42
44
  describe('when item has a `href`', () => {
43
45
  beforeEach(() => {
44
- buildWrapper({ item: mockItems[0] });
46
+ buildWrapper({ item: clone(mockItems[0]) });
45
47
  });
46
48
 
47
49
  const findLink = () => wrapper.find('a.gl-new-dropdown-item-content');
@@ -19,6 +19,7 @@
19
19
  @include gl-rounded-lg;
20
20
  @include gl-shadow-md;
21
21
  width: $gl-new-dropdown-width;
22
+ z-index: 1000;
22
23
  }
23
24
 
24
25
  .gl-new-dropdown-inner {