@gitlab/ui 74.1.0 → 74.3.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": "74.1.0",
3
+ "version": "74.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -149,6 +149,14 @@ describe('sorting component', () => {
149
149
  );
150
150
  });
151
151
 
152
+ it('passes `block` prop to listbox', () => {
153
+ createComponent({
154
+ block: true,
155
+ });
156
+
157
+ expect(findListbox().props('block')).toBe(true);
158
+ });
159
+
152
160
  it('sets aria-label of sort direction button', async () => {
153
161
  createComponent({ sortOptions: [] });
154
162
 
@@ -85,6 +85,14 @@ export default {
85
85
  required: false,
86
86
  default: '',
87
87
  },
88
+ /**
89
+ * Render the dropdown toggle button as a block element
90
+ */
91
+ block: {
92
+ type: Boolean,
93
+ required: false,
94
+ default: false,
95
+ },
88
96
  },
89
97
  computed: {
90
98
  localSortDirection() {
@@ -145,6 +153,7 @@ export default {
145
153
  :toggle-class="listboxToggleClass"
146
154
  :class="dropdownClass"
147
155
  placement="right"
156
+ :block="block"
148
157
  @select="onSortByChanged"
149
158
  />
150
159
  <gl-button
@@ -3798,6 +3798,18 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
3798
3798
  flex-basis: 33% !important;
3799
3799
  }
3800
3800
 
3801
+ .gl-md-flex-basis-13 {
3802
+ @include gl-media-breakpoint-up(md) {
3803
+ flex-basis: $gl-spacing-scale-13;
3804
+ }
3805
+ }
3806
+
3807
+ .gl-md-flex-basis-13\! {
3808
+ @include gl-media-breakpoint-up(md) {
3809
+ flex-basis: $gl-spacing-scale-13 !important;
3810
+ }
3811
+ }
3812
+
3801
3813
  .gl-md-flex-basis-third {
3802
3814
  @include gl-media-breakpoint-up(md) {
3803
3815
  flex-basis: 33%;
@@ -223,6 +223,12 @@
223
223
  flex-basis: 33%;
224
224
  }
225
225
 
226
+ @mixin gl-md-flex-basis-13 {
227
+ @include gl-media-breakpoint-up(md) {
228
+ flex-basis: $gl-spacing-scale-13;
229
+ }
230
+ }
231
+
226
232
  @mixin gl-md-flex-basis-third {
227
233
  @include gl-media-breakpoint-up(md) {
228
234
  @include gl-flex-basis-third;