@gitlab/ui 78.17.0 → 78.18.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/new_dropdowns/disclosure/mock_data.js +11 -11
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.spec.js +3 -3
- package/src/components/base/new_dropdowns/disclosure/mock_data.js +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [78.18.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.17.0...v78.18.0) (2024-04-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **GlDisclosureDropdown:** Reorder dropdown items in example ([7145be6](https://gitlab.com/gitlab-org/gitlab-ui/commit/7145be686e16ae286e1189071a15e58403aaa635))
|
|
7
|
+
|
|
1
8
|
# [78.17.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.16.0...v78.17.0) (2024-04-19)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -6,17 +6,6 @@ const mockItems = [{
|
|
|
6
6
|
rel: 'nofollow',
|
|
7
7
|
'data-method': 'put'
|
|
8
8
|
}
|
|
9
|
-
}, {
|
|
10
|
-
text: 'Close merge request',
|
|
11
|
-
action: () => {
|
|
12
|
-
// eslint-disable-next-line no-console
|
|
13
|
-
console.log('CLOSED');
|
|
14
|
-
},
|
|
15
|
-
extraAttrs: {
|
|
16
|
-
class: 'gl-text-red-500!',
|
|
17
|
-
rel: 'nofollow',
|
|
18
|
-
'data-method': 'put'
|
|
19
|
-
}
|
|
20
9
|
}, {
|
|
21
10
|
text: 'Create new',
|
|
22
11
|
href: 'https://gitlab.com/gitlab-org/gitlab/-/merge_requests/new',
|
|
@@ -30,6 +19,17 @@ const mockItems = [{
|
|
|
30
19
|
extraAttrs: {
|
|
31
20
|
'data-uuid': '1234'
|
|
32
21
|
}
|
|
22
|
+
}, {
|
|
23
|
+
text: 'Close merge request',
|
|
24
|
+
action: () => {
|
|
25
|
+
// eslint-disable-next-line no-console
|
|
26
|
+
console.log('CLOSED');
|
|
27
|
+
},
|
|
28
|
+
extraAttrs: {
|
|
29
|
+
class: 'gl-text-red-500!',
|
|
30
|
+
rel: 'nofollow',
|
|
31
|
+
'data-method': 'put'
|
|
32
|
+
}
|
|
33
33
|
}];
|
|
34
34
|
const mockItemsCustomItem = [{
|
|
35
35
|
text: 'Assigned to you',
|
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ describe('GlDisclosureDropdownItem', () => {
|
|
|
51
51
|
describe.each`
|
|
52
52
|
prop | mockItem
|
|
53
53
|
${'href'} | ${0}
|
|
54
|
-
${'to'} | ${
|
|
54
|
+
${'to'} | ${2}
|
|
55
55
|
`('when item has a `$prop`', ({ prop, mockItem }) => {
|
|
56
56
|
const item = mockItems[mockItem];
|
|
57
57
|
|
|
@@ -102,7 +102,7 @@ describe('GlDisclosureDropdownItem', () => {
|
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
describe('when item has an `action`', () => {
|
|
105
|
-
const item = mockItems[
|
|
105
|
+
const item = mockItems[3];
|
|
106
106
|
const action = jest.spyOn(item, 'action');
|
|
107
107
|
|
|
108
108
|
beforeEach(() => {
|
|
@@ -184,7 +184,7 @@ describe('GlDisclosureDropdownItem', () => {
|
|
|
184
184
|
beforeEach(() => {
|
|
185
185
|
buildWrapper({
|
|
186
186
|
item: {
|
|
187
|
-
...mockItems[
|
|
187
|
+
...mockItems[3],
|
|
188
188
|
extraAttrs,
|
|
189
189
|
},
|
|
190
190
|
});
|
|
@@ -8,18 +8,6 @@ export const mockItems = [
|
|
|
8
8
|
'data-method': 'put',
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
|
-
{
|
|
12
|
-
text: 'Close merge request',
|
|
13
|
-
action: () => {
|
|
14
|
-
// eslint-disable-next-line no-console
|
|
15
|
-
console.log('CLOSED');
|
|
16
|
-
},
|
|
17
|
-
extraAttrs: {
|
|
18
|
-
class: 'gl-text-red-500!',
|
|
19
|
-
rel: 'nofollow',
|
|
20
|
-
'data-method': 'put',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
11
|
{
|
|
24
12
|
text: 'Create new',
|
|
25
13
|
href: 'https://gitlab.com/gitlab-org/gitlab/-/merge_requests/new',
|
|
@@ -35,6 +23,18 @@ export const mockItems = [
|
|
|
35
23
|
'data-uuid': '1234',
|
|
36
24
|
},
|
|
37
25
|
},
|
|
26
|
+
{
|
|
27
|
+
text: 'Close merge request',
|
|
28
|
+
action: () => {
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.log('CLOSED');
|
|
31
|
+
},
|
|
32
|
+
extraAttrs: {
|
|
33
|
+
class: 'gl-text-red-500!',
|
|
34
|
+
rel: 'nofollow',
|
|
35
|
+
'data-method': 'put',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
38
|
];
|
|
39
39
|
|
|
40
40
|
export const mockItemsCustomItem = [
|