@gitlab/ui 58.5.1 → 58.6.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": "58.5.1",
3
+ "version": "58.6.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,16 +1,22 @@
1
1
  import GlButton from '../button/button.vue';
2
2
  import GlDropdown from '../dropdown/dropdown.vue';
3
3
  import GlDropdownItem from '../dropdown/dropdown_item.vue';
4
+ import { buttonSizeOptions } from '../../../utils/constants';
4
5
  import GlButtonGroup from './button_group.vue';
5
6
  import readme from './button_group.md';
6
7
 
7
- const generateProps = ({ vertical = false } = {}) => ({ vertical });
8
+ const defaultValue = (prop) => GlButton.props[prop].default;
9
+
10
+ const generateProps = ({ vertical = false, size = defaultValue('size') } = {}) => ({
11
+ vertical,
12
+ size,
13
+ });
8
14
 
9
15
  const template = `
10
16
  <gl-button-group :vertical="vertical">
11
- <gl-button>Button 1</gl-button>
12
- <gl-button>Button 2</gl-button>
13
- <gl-dropdown text="Some dropdown">
17
+ <gl-button :size="size">Button 1</gl-button>
18
+ <gl-button :size="size">Button 2</gl-button>
19
+ <gl-dropdown :size="size" text="Some dropdown">
14
20
  <gl-dropdown-item>First item</gl-dropdown-item>
15
21
  <gl-dropdown-item>Second item</gl-dropdown-item>
16
22
  <gl-dropdown-item>Last item</gl-dropdown-item>
@@ -37,4 +43,10 @@ export default {
37
43
  },
38
44
  },
39
45
  },
46
+ argTypes: {
47
+ size: {
48
+ options: Object.keys(buttonSizeOptions),
49
+ control: 'select',
50
+ },
51
+ },
40
52
  };
@@ -3886,6 +3886,14 @@
3886
3886
  }
3887
3887
  }
3888
3888
 
3889
+ .gl-grid-template-columns-4 {
3890
+ grid-template-columns: 1fr 1fr 1fr 1fr;
3891
+ }
3892
+
3893
+ .gl-grid-template-columns-4\! {
3894
+ grid-template-columns: 1fr 1fr 1fr 1fr !important;
3895
+ }
3896
+
3889
3897
  .gl-lg-grid-template-columns-4 {
3890
3898
  @include gl-media-breakpoint-up(lg) {
3891
3899
  grid-template-columns: repeat(4, 1fr);
@@ -6675,6 +6683,12 @@
6675
6683
  .gl-gap-6\! {
6676
6684
  gap: $gl-spacing-scale-6 !important;
6677
6685
  }
6686
+ .gl-gap-7 {
6687
+ gap: $gl-spacing-scale-7;
6688
+ }
6689
+ .gl-gap-7\! {
6690
+ gap: $gl-spacing-scale-7 !important;
6691
+ }
6678
6692
  .gl-column-gap-6 {
6679
6693
  column-gap: $gl-spacing-scale-6;
6680
6694
  }
@@ -33,6 +33,10 @@
33
33
  }
34
34
  }
35
35
 
36
+ @mixin gl-grid-template-columns-4 {
37
+ grid-template-columns: 1fr 1fr 1fr 1fr;
38
+ }
39
+
36
40
  @mixin gl-lg-grid-template-columns-4 {
37
41
  @include gl-media-breakpoint-up(lg) {
38
42
  grid-template-columns: repeat(4, 1fr);
@@ -870,6 +870,10 @@
870
870
  gap: $gl-spacing-scale-6;
871
871
  }
872
872
 
873
+ @mixin gl-gap-7 {
874
+ gap: $gl-spacing-scale-7;
875
+ }
876
+
873
877
  /**
874
878
  * Column gap utilities
875
879
  *