@gitlab/ui 61.1.2 → 61.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": "61.1.2",
3
+ "version": "61.2.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -267,6 +267,9 @@ export default {
267
267
  */
268
268
  this.$emit('action', action);
269
269
  },
270
+ uniqueItemId() {
271
+ return uniqueId(`disclosure-item-`);
272
+ },
270
273
  isItem,
271
274
  },
272
275
  };
@@ -315,7 +318,8 @@ export default {
315
318
  <slot>
316
319
  <template v-for="(item, index) in items">
317
320
  <template v-if="isItem(item)">
318
- <gl-disclosure-dropdown-item :key="item.text" :item="item" @action="handleAction">
321
+ <!-- eslint-disable-next-line vue/valid-v-for -->
322
+ <gl-disclosure-dropdown-item :key="uniqueItemId()" :item="item" @action="handleAction">
319
323
  <template #list-item>
320
324
  <!-- @slot Custom template of the disclosure dropdown item -->
321
325
  <slot name="list-item" :item="item"></slot>
@@ -336,9 +340,10 @@ export default {
336
340
  </template>
337
341
 
338
342
  <template v-if="$scopedSlots['list-item']">
343
+ <!-- eslint-disable vue/valid-v-for -->
339
344
  <gl-disclosure-dropdown-item
340
345
  v-for="groupItem in item.items"
341
- :key="groupItem.text"
346
+ :key="uniqueItemId()"
342
347
  :item="groupItem"
343
348
  @action="handleAction"
344
349
  >
@@ -347,6 +352,7 @@ export default {
347
352
  <slot name="list-item" :item="groupItem"></slot>
348
353
  </template>
349
354
  </gl-disclosure-dropdown-item>
355
+ <!-- eslint-enable vue/valid-v-for -->
350
356
  </template>
351
357
  </gl-disclosure-dropdown-group>
352
358
  </template>
@@ -49,6 +49,9 @@ export default {
49
49
  handleAction(action) {
50
50
  this.$emit('action', action);
51
51
  },
52
+ uniqueItemId() {
53
+ return uniqueId(`disclosure-item-`);
54
+ },
52
55
  },
53
56
  };
54
57
  </script>
@@ -65,9 +68,10 @@ export default {
65
68
  </div>
66
69
  <ul role="group" :aria-labelledby="groupLabeledBy" class="gl-mb-0 gl-pl-0 gl-list-style-none">
67
70
  <slot>
71
+ <!-- eslint-disable vue/valid-v-for -->
68
72
  <gl-disclosure-dropdown-item
69
73
  v-for="item in group.items"
70
- :key="item.text"
74
+ :key="uniqueItemId()"
71
75
  :item="item"
72
76
  @action="handleAction"
73
77
  >
@@ -1735,6 +1735,14 @@
1735
1735
  border-top-right-radius: $gl-border-radius-base !important;
1736
1736
  }
1737
1737
 
1738
+ .gl-rounded-bottom-left-small {
1739
+ border-bottom-left-radius: $gl-border-radius-small;
1740
+ }
1741
+
1742
+ .gl-rounded-bottom-left-small\! {
1743
+ border-bottom-left-radius: $gl-border-radius-small !important;
1744
+ }
1745
+
1738
1746
  .gl-rounded-bottom-left-base {
1739
1747
  border-bottom-left-radius: $gl-border-radius-base;
1740
1748
  }
@@ -1743,6 +1751,14 @@
1743
1751
  border-bottom-left-radius: $gl-border-radius-base !important;
1744
1752
  }
1745
1753
 
1754
+ .gl-rounded-bottom-left-large {
1755
+ border-bottom-left-radius: $gl-border-radius-large;
1756
+ }
1757
+
1758
+ .gl-rounded-bottom-left-large\! {
1759
+ border-bottom-left-radius: $gl-border-radius-large !important;
1760
+ }
1761
+
1746
1762
  .gl-rounded-bottom-left-none {
1747
1763
  border-bottom-left-radius: 0;
1748
1764
  }
@@ -1751,6 +1767,14 @@
1751
1767
  border-bottom-left-radius: 0 !important;
1752
1768
  }
1753
1769
 
1770
+ .gl-rounded-bottom-right-small {
1771
+ border-bottom-right-radius: $gl-border-radius-small;
1772
+ }
1773
+
1774
+ .gl-rounded-bottom-right-small\! {
1775
+ border-bottom-right-radius: $gl-border-radius-small !important;
1776
+ }
1777
+
1754
1778
  .gl-rounded-bottom-right-base {
1755
1779
  border-bottom-right-radius: $gl-border-radius-base;
1756
1780
  }
@@ -1759,6 +1783,14 @@
1759
1783
  border-bottom-right-radius: $gl-border-radius-base !important;
1760
1784
  }
1761
1785
 
1786
+ .gl-rounded-bottom-right-large {
1787
+ border-bottom-right-radius: $gl-border-radius-large;
1788
+ }
1789
+
1790
+ .gl-rounded-bottom-right-large\! {
1791
+ border-bottom-right-radius: $gl-border-radius-large !important;
1792
+ }
1793
+
1762
1794
  .gl-rounded-bottom-right-none {
1763
1795
  border-bottom-right-radius: 0;
1764
1796
  }
@@ -1793,22 +1825,6 @@
1793
1825
  border-top-right-radius: $gl-border-radius-small !important;
1794
1826
  }
1795
1827
 
1796
- .gl-rounded-bottom-left-small {
1797
- border-bottom-left-radius: $gl-border-radius-small;
1798
- }
1799
-
1800
- .gl-rounded-bottom-left-small\! {
1801
- border-bottom-left-radius: $gl-border-radius-small !important;
1802
- }
1803
-
1804
- .gl-rounded-bottom-right-small {
1805
- border-bottom-right-radius: $gl-border-radius-small;
1806
- }
1807
-
1808
- .gl-rounded-bottom-right-small\! {
1809
- border-bottom-right-radius: $gl-border-radius-small !important;
1810
- }
1811
-
1812
1828
  .gl-rounded-bottom-left-6 {
1813
1829
  border-bottom-left-radius: $gl-border-radius-6;
1814
1830
  }
@@ -405,18 +405,34 @@
405
405
  border-top-right-radius: $gl-border-radius-base;
406
406
  }
407
407
 
408
+ @mixin gl-rounded-bottom-left-small {
409
+ border-bottom-left-radius: $gl-border-radius-small;
410
+ }
411
+
408
412
  @mixin gl-rounded-bottom-left-base {
409
413
  border-bottom-left-radius: $gl-border-radius-base;
410
414
  }
411
415
 
416
+ @mixin gl-rounded-bottom-left-large {
417
+ border-bottom-left-radius: $gl-border-radius-large;
418
+ }
419
+
412
420
  @mixin gl-rounded-bottom-left-none {
413
421
  border-bottom-left-radius: 0;
414
422
  }
415
423
 
424
+ @mixin gl-rounded-bottom-right-small {
425
+ border-bottom-right-radius: $gl-border-radius-small;
426
+ }
427
+
416
428
  @mixin gl-rounded-bottom-right-base {
417
429
  border-bottom-right-radius: $gl-border-radius-base;
418
430
  }
419
431
 
432
+ @mixin gl-rounded-bottom-right-large {
433
+ border-bottom-right-radius: $gl-border-radius-large;
434
+ }
435
+
420
436
  @mixin gl-rounded-bottom-right-none {
421
437
  border-bottom-right-radius: 0;
422
438
  }
@@ -434,14 +450,6 @@
434
450
  border-top-right-radius: $gl-border-radius-small;
435
451
  }
436
452
 
437
- @mixin gl-rounded-bottom-left-small {
438
- border-bottom-left-radius: $gl-border-radius-small;
439
- }
440
-
441
- @mixin gl-rounded-bottom-right-small {
442
- border-bottom-right-radius: $gl-border-radius-small;
443
- }
444
-
445
453
  @mixin gl-rounded-bottom-left-6 {
446
454
  border-bottom-left-radius: $gl-border-radius-6;
447
455
  }