@gitlab/ui 43.15.0 → 43.17.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": "43.15.0",
3
+ "version": "43.17.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -112,9 +112,9 @@
112
112
  "glob": "^7.2.0",
113
113
  "identity-obj-proxy": "^3.0.0",
114
114
  "inquirer-select-directory": "^1.2.0",
115
- "jest": "^29.0.2",
116
- "jest-circus": "29.0.2",
117
- "jest-environment-jsdom": "29.0.2",
115
+ "jest": "^29.0.3",
116
+ "jest-circus": "29.0.3",
117
+ "jest-environment-jsdom": "29.0.3",
118
118
  "jest-serializer-vue": "^2.0.2",
119
119
  "markdownlint-cli": "^0.29.0",
120
120
  "mockdate": "^2.0.5",
@@ -1,4 +1,12 @@
1
- import { GlButton, GlButtonGroup, GlBadge, GlDropdown, GlDropdownItem } from '../../../index';
1
+ import {
2
+ GlButton,
3
+ GlButtonGroup,
4
+ GlBadge,
5
+ GlDropdown,
6
+ GlDropdownItem,
7
+ GlSorting,
8
+ GlSortingItem,
9
+ } from '../../../index';
2
10
  import {
3
11
  buttonCategoryOptions,
4
12
  buttonVariantOptions,
@@ -478,13 +486,12 @@ export const Badges = (args, { argTypes = {} }) => ({
478
486
  </div>
479
487
  `,
480
488
  });
481
-
482
489
  Badges.parameters = { controls: { disable: true } };
483
490
 
484
491
  export const BadgeWithSROnlyText = (args, { argTypes = {} }) => ({
485
492
  props: Object.keys(argTypes),
486
493
  components: { GlButton, GlBadge },
487
- template: `
494
+ template: `
488
495
  <gl-button variant="confirm" buttonTextClasses="gl-display-flex gl-align-items-center">
489
496
  Submit review
490
497
  <gl-badge size="sm" variant="info" class="gl-ml-2">2</gl-badge>
@@ -492,9 +499,21 @@ export const BadgeWithSROnlyText = (args, { argTypes = {} }) => ({
492
499
  </gl-button>
493
500
  `,
494
501
  });
495
-
496
502
  BadgeWithSROnlyText.parameters = { controls: { disable: true } };
497
503
 
504
+ export const SortingDropdownSplitButton = (args, { argTypes }) => ({
505
+ props: Object.keys(argTypes),
506
+ components: { GlSorting, GlSortingItem },
507
+ template: `
508
+ <gl-sorting text="Sorting options">
509
+ <gl-sorting-item active>First item</gl-sorting-item>
510
+ <gl-sorting-item>Second item</gl-sorting-item>
511
+ <gl-sorting-item>Last item</gl-sorting-item>
512
+ </gl-sorting>
513
+ `,
514
+ });
515
+ SortingDropdownSplitButton.parameters = { controls: { disable: true } };
516
+
498
517
  export default {
499
518
  title: 'base/button',
500
519
  component: GlButton,
@@ -10,7 +10,7 @@ const components = {
10
10
  const propDefault = (prop) => GlSorting.props[prop].default;
11
11
 
12
12
  const generateProps = ({
13
- text = 'Sorting Dropdown',
13
+ text = 'Sorting options',
14
14
  isAscending = propDefault('isAscending'),
15
15
  sortDirectionToolTip = propDefault('sortDirectionToolTip'),
16
16
  dropdownClass = propDefault('dropdownClass'),
@@ -13,7 +13,7 @@ const generateProps = ({ href = null, active = false } = {}) => ({
13
13
  });
14
14
 
15
15
  const template = `
16
- <gl-sorting text="Sorting Dropdown">
16
+ <gl-sorting text="Sorting options">
17
17
  <gl-sorting-item :href="href" :active="active">Some item</gl-sorting-item>
18
18
  </gl-sorting>`;
19
19
 
@@ -6308,6 +6308,16 @@
6308
6308
  margin-left: #{$gl-spacing-scale-5} !important;
6309
6309
  }
6310
6310
  }
6311
+ .gl-gap-y-3 {
6312
+ > * + * {
6313
+ margin-top: #{$gl-spacing-scale-3};
6314
+ }
6315
+ }
6316
+ .gl-gap-y-3\! {
6317
+ > * + * {
6318
+ margin-top: #{$gl-spacing-scale-3} !important;
6319
+ }
6320
+ }
6311
6321
  .gl-gap-3 {
6312
6322
  gap: $gl-spacing-scale-3;
6313
6323
  }
@@ -6392,6 +6402,16 @@
6392
6402
  margin-top: $gl-spacing-scale-5 !important;
6393
6403
  }
6394
6404
  }
6405
+ .gl-sm-mt-6 {
6406
+ @include gl-media-breakpoint-up(sm) {
6407
+ margin-top: $gl-spacing-scale-6;
6408
+ }
6409
+ }
6410
+ .gl-sm-mt-6\! {
6411
+ @include gl-media-breakpoint-up(sm) {
6412
+ margin-top: $gl-spacing-scale-6 !important;
6413
+ }
6414
+ }
6395
6415
  .gl-sm-mb-7 {
6396
6416
  @include gl-media-breakpoint-up(sm) {
6397
6417
  margin-bottom: $gl-spacing-scale-7;
@@ -813,6 +813,12 @@
813
813
  }
814
814
  }
815
815
 
816
+ @mixin gl-gap-y-3 {
817
+ > * + * {
818
+ margin-top: #{$gl-spacing-scale-3};
819
+ }
820
+ }
821
+
816
822
  @mixin gl-gap-3 {
817
823
  gap: $gl-spacing-scale-3;
818
824
  }
@@ -883,6 +889,12 @@
883
889
  }
884
890
  }
885
891
 
892
+ @mixin gl-sm-mt-6 {
893
+ @include gl-media-breakpoint-up(sm) {
894
+ @include gl-mt-6;
895
+ }
896
+ }
897
+
886
898
  @mixin gl-sm-mb-7 {
887
899
  @include gl-media-breakpoint-up(sm) {
888
900
  @include gl-mb-7;