@gitlab/ui 53.0.0 → 53.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "53.0.0",
3
+ "version": "53.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -87,7 +87,7 @@
87
87
  "@gitlab/eslint-plugin": "18.1.0",
88
88
  "@gitlab/fonts": "^1.1.0",
89
89
  "@gitlab/stylelint-config": "4.1.0",
90
- "@gitlab/svgs": "3.16.0",
90
+ "@gitlab/svgs": "3.17.0",
91
91
  "@rollup/plugin-commonjs": "^11.1.0",
92
92
  "@rollup/plugin-node-resolve": "^7.1.3",
93
93
  "@rollup/plugin-replace": "^2.3.2",
@@ -17,6 +17,7 @@ export const glSpacingScale15 = '7.5rem'
17
17
  export const glSpacingScale20 = '10rem'
18
18
  export const glSpacingScale26 = '13rem'
19
19
  export const glSpacingScale28 = '14rem'
20
+ export const glSpacingScale30 = '15rem'
20
21
  export const glSpacingScale34 = '17rem'
21
22
  export const glSpacingScale62 = '31rem'
22
23
  export const glSpacingScale80 = '40rem'
@@ -95,6 +95,11 @@
95
95
  "value": "28 * $grid-size",
96
96
  "compiledValue": "14rem"
97
97
  },
98
+ {
99
+ "name": "$gl-spacing-scale-30",
100
+ "value": "30 * $grid-size",
101
+ "compiledValue": "15rem"
102
+ },
98
103
  {
99
104
  "name": "$gl-spacing-scale-34",
100
105
  "value": "34 * $grid-size",
@@ -45,7 +45,12 @@ After closing, `GlDisclosureDropdown` emits a `hidden` event.
45
45
  ### Setting disclosure dropdown items
46
46
 
47
47
  Use the `items` prop to provide actions/links to the disclosure dropdown. Each item can be
48
- either an item or a group. Below are the expected shapes of these objects:
48
+ either an item or a group. For `Item`s, either the `href` or the `action` may be null, but not both.
49
+ A <!-- markdownlint-disable-next-line line-length -->
50
+ [validation error](https://gitlab.com/gitlab-org/gitlab-ui/-/blob/6cbff4f908b429cc01f17a4cc2868e881db1aa31/src/components/base/new_dropdowns/disclosure/utils.js#L1)
51
+ will be triggered if neither field is set.
52
+
53
+ Below are the expected shapes of these objects:
49
54
 
50
55
  ```typescript
51
56
  type Item = {
@@ -62,7 +62,7 @@ describe('GlDisclosureDropdownItem', () => {
62
62
  action.mockClear();
63
63
  });
64
64
 
65
- const findButton = () => wrapper.find('button.dropdown-item');
65
+ const findButton = () => wrapper.find('button[type="button"].dropdown-item');
66
66
 
67
67
  it('should render a button', () => {
68
68
  expect(findButton().exists()).toBe(true);
@@ -28,6 +28,7 @@ export default {
28
28
  is: 'button',
29
29
  attrs: {
30
30
  ...this.item.extraAttrs,
31
+ type: 'button',
31
32
  },
32
33
  listeners: {
33
34
  click: () => this.item.action(),
@@ -4443,6 +4443,14 @@
4443
4443
  width: $gl-spacing-scale-28 !important;
4444
4444
  }
4445
4445
 
4446
+ .gl-w-30 {
4447
+ width: $gl-spacing-scale-30;
4448
+ }
4449
+
4450
+ .gl-w-30\! {
4451
+ width: $gl-spacing-scale-30 !important;
4452
+ }
4453
+
4446
4454
  .gl-w-eighth {
4447
4455
  width: 12.5%;
4448
4456
  }
@@ -69,6 +69,10 @@
69
69
  width: $gl-spacing-scale-28;
70
70
  }
71
71
 
72
+ @mixin gl-w-30 {
73
+ width: $gl-spacing-scale-30;
74
+ }
75
+
72
76
  @mixin gl-w-eighth {
73
77
  width: 12.5%;
74
78
  }
@@ -20,6 +20,7 @@ $gl-spacing-scale-15: 15 * $grid-size;
20
20
  $gl-spacing-scale-20: 20 * $grid-size;
21
21
  $gl-spacing-scale-26: 26 * $grid-size;
22
22
  $gl-spacing-scale-28: 28 * $grid-size;
23
+ $gl-spacing-scale-30: 30 * $grid-size;
23
24
  $gl-spacing-scale-34: 34 * $grid-size;
24
25
  $gl-spacing-scale-62: 62 * $grid-size;
25
26
  $gl-spacing-scale-80: 80 * $grid-size;