@gitlab/ui 86.9.0 → 86.10.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +10 -6
  3. package/dist/components/base/new_dropdowns/disclosure/mock_data.js +8 -1
  4. package/dist/index.css +2 -2
  5. package/dist/index.css.map +1 -1
  6. package/dist/tailwind.css +1 -1
  7. package/dist/tokens/build/js/tokens.dark.js +77 -77
  8. package/dist/tokens/build/js/tokens.js +63 -63
  9. package/dist/tokens/css/tokens.css +24 -24
  10. package/dist/tokens/css/tokens.dark.css +23 -23
  11. package/dist/tokens/js/tokens.dark.js +77 -77
  12. package/dist/tokens/js/tokens.js +63 -63
  13. package/dist/tokens/json/tokens.dark.json +107 -107
  14. package/dist/tokens/json/tokens.json +93 -93
  15. package/dist/tokens/scss/_tokens.dark.scss +23 -23
  16. package/dist/tokens/scss/_tokens.scss +24 -24
  17. package/dist/tokens/tailwind/tokens.cjs +18 -18
  18. package/dist/utility_classes.css +1 -1
  19. package/dist/utility_classes.css.map +1 -1
  20. package/dist/utils/utils.js +1 -1
  21. package/package.json +1 -1
  22. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +10 -6
  23. package/src/components/base/new_dropdowns/disclosure/mock_data.js +12 -0
  24. package/src/tokens/build/css/tokens.css +24 -24
  25. package/src/tokens/build/css/tokens.dark.css +23 -23
  26. package/src/tokens/build/js/tokens.dark.js +77 -77
  27. package/src/tokens/build/js/tokens.js +63 -63
  28. package/src/tokens/build/json/tokens.dark.json +107 -107
  29. package/src/tokens/build/json/tokens.json +93 -93
  30. package/src/tokens/build/scss/_tokens.dark.scss +23 -23
  31. package/src/tokens/build/scss/_tokens.scss +24 -24
  32. package/src/tokens/build/tailwind/tokens.cjs +18 -18
  33. package/src/tokens/color.alpha.tokens.json +6 -6
  34. package/src/tokens/color.constant.tokens.json +5 -5
  35. package/src/tokens/color.tokens.json +14 -14
  36. package/src/tokens/color.transparency.tokens.json +6 -6
  37. package/src/tokens/shadow.tokens.json +2 -2
  38. package/src/tokens/text.tokens.json +1 -1
  39. package/src/utils/utils.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # [86.10.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.9.1...v86.10.0) (2024-07-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Color:** Update black and alpha ([98c8723](https://gitlab.com/gitlab-org/gitlab-ui/commit/98c87234ee4f6186c39695d1da8c046fa32296e7))
7
+ * **Color:** Update neutral hex values ([664441d](https://gitlab.com/gitlab-org/gitlab-ui/commit/664441d8cd0a4e8baec31e1cfb2356c746f766e0))
8
+ * **Color:** Use 1000 for alpha ([209f248](https://gitlab.com/gitlab-org/gitlab-ui/commit/209f248516bc7752a438f6ece876d6f00af7e877))
9
+
10
+ ## [86.9.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.9.0...v86.9.1) (2024-07-11)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **disclosure-dropdown:** correctly close on item selection ([9e21f53](https://gitlab.com/gitlab-org/gitlab-ui/commit/9e21f5385860862a520f8ae72d58721da6433d1c))
16
+
1
17
  # [86.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.8.0...v86.9.0) (2024-07-11)
2
18
 
3
19
 
@@ -321,12 +321,16 @@ var script = {
321
321
  this.$refs.baseDropdown.closeAndFocus();
322
322
  },
323
323
  handleAction(action) {
324
- /**
325
- * Emitted when one of disclosure dropdown items is clicked
326
- *
327
- * @event action
328
- */
329
- this.$emit('action', action);
324
+ // See https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/4376 for
325
+ // detailed explanation why we need requestAnimationFrame
326
+ window.requestAnimationFrame(() => {
327
+ /**
328
+ * Emitted when one of disclosure dropdown items is clicked
329
+ *
330
+ * @event action
331
+ */
332
+ this.$emit('action', action);
333
+ });
330
334
  },
331
335
  handleAutoClose(e) {
332
336
  if (this.autoClose && e.target.closest(ITEM_SELECTOR) && e.target.closest(DROPDOWN_SELECTOR) === this.$refs.baseDropdown.$el) {
@@ -31,6 +31,13 @@ const mockItems = [{
31
31
  'data-method': 'put'
32
32
  }
33
33
  }];
34
+ const mockButtons = [{
35
+ text: 'Checks'
36
+ }, {
37
+ text: 'Projects'
38
+ }, {
39
+ text: 'Standards'
40
+ }];
34
41
  const mockItemsCustomItem = [{
35
42
  text: 'Assigned to you',
36
43
  href: 'https://gitlab.com/dashboard/merge_requests?assignee_username=root',
@@ -150,4 +157,4 @@ const mockProfileGroups = [{
150
157
  }]
151
158
  }];
152
159
 
153
- export { mockGroups, mockGroupsCustomItem, mockItems, mockItemsCustomItem, mockProfileGroups };
160
+ export { mockButtons, mockGroups, mockGroupsCustomItem, mockItems, mockItemsCustomItem, mockProfileGroups };