@gitlab/ui 74.0.0 → 74.2.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.0.0",
3
+ "version": "74.2.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -104,20 +104,20 @@
104
104
  "@rollup/plugin-commonjs": "^11.1.0",
105
105
  "@rollup/plugin-node-resolve": "^7.1.3",
106
106
  "@rollup/plugin-replace": "^2.3.2",
107
- "@storybook/addon-a11y": "7.6.11",
108
- "@storybook/addon-docs": "7.6.11",
109
- "@storybook/addon-essentials": "7.6.11",
110
- "@storybook/addon-interactions": "7.6.11",
111
- "@storybook/addon-viewport": "7.6.11",
112
- "@storybook/builder-webpack5": "7.6.11",
107
+ "@storybook/addon-a11y": "7.6.12",
108
+ "@storybook/addon-docs": "7.6.12",
109
+ "@storybook/addon-essentials": "7.6.12",
110
+ "@storybook/addon-interactions": "7.6.12",
111
+ "@storybook/addon-viewport": "7.6.12",
112
+ "@storybook/builder-webpack5": "7.6.12",
113
113
  "@storybook/jest": "0.2.3",
114
114
  "@storybook/test-runner": "0.16.0",
115
115
  "@storybook/testing-library": "0.2.2",
116
- "@storybook/theming": "7.6.11",
117
- "@storybook/vue": "7.6.11",
118
- "@storybook/vue-webpack5": "7.6.11",
119
- "@storybook/vue3": "7.6.11",
120
- "@storybook/vue3-webpack5": "7.6.11",
116
+ "@storybook/theming": "7.6.12",
117
+ "@storybook/vue": "7.6.12",
118
+ "@storybook/vue-webpack5": "7.6.12",
119
+ "@storybook/vue3": "7.6.12",
120
+ "@storybook/vue3-webpack5": "7.6.12",
121
121
  "@types/jest": "^29.5.11",
122
122
  "@types/jest-image-snapshot": "^6.4.0",
123
123
  "@vue/compat": "^3.2.40",
@@ -170,7 +170,7 @@
170
170
  "sass-loader": "^10.2.0",
171
171
  "sass-true": "^6.1.0",
172
172
  "start-server-and-test": "^1.10.6",
173
- "storybook": "7.6.11",
173
+ "storybook": "7.6.12",
174
174
  "storybook-dark-mode": "3.0.3",
175
175
  "style-dictionary": "^3.8.0",
176
176
  "stylelint": "15.10.2",
@@ -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
@@ -549,6 +549,10 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
549
549
  background-color: $t-gray-a-08
550
550
  }
551
551
 
552
+ .gl-active-bg-t-gray-a-08:active {
553
+ background-color: $t-gray-a-08
554
+ }
555
+
552
556
  .gl-bg-t-gray-a-08\! {
553
557
  background-color: $t-gray-a-08 !important
554
558
  }
@@ -561,6 +565,10 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
561
565
  background-color: $t-gray-a-08 !important
562
566
  }
563
567
 
568
+ .gl-active-bg-t-gray-a-08\!:active {
569
+ background-color: $t-gray-a-08 !important
570
+ }
571
+
564
572
  .gl-bg-theme-indigo-50 {
565
573
  background-color: $theme-indigo-50
566
574
  }
@@ -4686,6 +4694,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
4686
4694
  left: -$gl-spacing-scale-5 !important;
4687
4695
  }
4688
4696
 
4697
+ .gl-left-n37 {
4698
+ left: -$gl-spacing-scale-37;
4699
+ }
4700
+
4701
+ .gl-left-n37\! {
4702
+ left: -$gl-spacing-scale-37 !important;
4703
+ }
4704
+
4689
4705
  .gl-left-50p {
4690
4706
  left: 50%;
4691
4707
  }
@@ -5505,6 +5521,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
5505
5521
  min-width: $gl-spacing-scale-20 !important;
5506
5522
  }
5507
5523
 
5524
+ .gl-min-w-33 {
5525
+ min-width: $gl-spacing-scale-33;
5526
+ }
5527
+
5528
+ .gl-min-w-33\! {
5529
+ min-width: $gl-spacing-scale-33 !important;
5530
+ }
5531
+
5508
5532
  .gl-min-w-full {
5509
5533
  min-width: 100%;
5510
5534
  }
@@ -5625,6 +5649,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
5625
5649
  max-width: $gl-spacing-scale-34 !important;
5626
5650
  }
5627
5651
 
5652
+ .gl-max-w-37 {
5653
+ max-width: $gl-spacing-scale-37;
5654
+ }
5655
+
5656
+ .gl-max-w-37\! {
5657
+ max-width: $gl-spacing-scale-37 !important;
5658
+ }
5659
+
5628
5660
  .gl-max-w-48 {
5629
5661
  max-width: $gl-spacing-scale-48;
5630
5662
  }
@@ -6592,6 +6624,12 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
6592
6624
  .gl-mr-7\! {
6593
6625
  margin-right: $gl-spacing-scale-7 !important;
6594
6626
  }
6627
+ .gl-mr-5p {
6628
+ margin-right: 5%;
6629
+ }
6630
+ .gl-mr-5p\! {
6631
+ margin-right: 5% !important;
6632
+ }
6595
6633
  .gl-sm-mr-3 {
6596
6634
  @include gl-media-breakpoint-up(sm) {
6597
6635
  margin-right: $gl-spacing-scale-3;
@@ -9543,6 +9581,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
9543
9581
  z-index: 3 !important
9544
9582
  }
9545
9583
 
9584
+ .gl-z-index-4 {
9585
+ z-index: 4
9586
+ }
9587
+
9588
+ .gl-z-index-4\! {
9589
+ z-index: 4 !important
9590
+ }
9591
+
9546
9592
  .gl-z-index-200 {
9547
9593
  z-index: 200
9548
9594
  }
@@ -178,7 +178,7 @@
178
178
  background-color: $red-700;
179
179
  }
180
180
 
181
- @mixin gl-bg-t-gray-a-08($hover: true, $focus: true) {
181
+ @mixin gl-bg-t-gray-a-08($hover: true, $focus: true, $active: true) {
182
182
  background-color: $t-gray-a-08;
183
183
  }
184
184
 
@@ -202,6 +202,10 @@
202
202
  left: -$gl-spacing-scale-5;
203
203
  }
204
204
 
205
+ @mixin gl-left-n37 {
206
+ left: -$gl-spacing-scale-37;
207
+ }
208
+
205
209
  @mixin gl-left-50p {
206
210
  left: 50%;
207
211
  }
@@ -415,6 +415,10 @@
415
415
  min-width: $gl-spacing-scale-20;
416
416
  }
417
417
 
418
+ @mixin gl-min-w-33 {
419
+ min-width: $gl-spacing-scale-33;
420
+ }
421
+
418
422
  @mixin gl-min-w-full {
419
423
  min-width: 100%;
420
424
  }
@@ -475,6 +479,10 @@
475
479
  max-width: $gl-spacing-scale-34;
476
480
  }
477
481
 
482
+ @mixin gl-max-w-37 {
483
+ max-width: $gl-spacing-scale-37;
484
+ }
485
+
478
486
  @mixin gl-max-w-48 {
479
487
  max-width: $gl-spacing-scale-48;
480
488
  }
@@ -527,6 +527,10 @@
527
527
  margin-right: $gl-spacing-scale-7;
528
528
  }
529
529
 
530
+ @mixin gl-mr-5p {
531
+ margin-right: 5%;
532
+ }
533
+
530
534
  @mixin gl-sm-mr-3 {
531
535
  @include gl-media-breakpoint-up(sm) {
532
536
  margin-right: $gl-spacing-scale-3;
@@ -20,6 +20,10 @@
20
20
  z-index: 3;
21
21
  }
22
22
 
23
+ @mixin gl-z-index-4 {
24
+ z-index: 4;
25
+ }
26
+
23
27
  @mixin gl-z-index-200 {
24
28
  z-index: 200;
25
29
  }
@@ -23,7 +23,9 @@ $gl-spacing-scale-26: 26 * $grid-size;
23
23
  $gl-spacing-scale-28: 28 * $grid-size;
24
24
  $gl-spacing-scale-30: 30 * $grid-size;
25
25
  $gl-spacing-scale-31: 31 * $grid-size;
26
+ $gl-spacing-scale-33: 33 * $grid-size;
26
27
  $gl-spacing-scale-34: 34 * $grid-size;
28
+ $gl-spacing-scale-37: 37 * $grid-size;
27
29
  $gl-spacing-scale-48: 48 * $grid-size;
28
30
  $gl-spacing-scale-62: 62 * $grid-size;
29
31
  $gl-spacing-scale-75: 75 * $grid-size;