@gitlab/ui 63.4.0 → 64.0.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.
@@ -11,6 +11,7 @@ import {
11
11
  END,
12
12
  ARROW_DOWN,
13
13
  ARROW_UP,
14
+ GL_DROPDOWN_CONTENTS_CLASS,
14
15
  } from '../constants';
15
16
  import {
16
17
  buttonCategoryOptions,
@@ -300,13 +301,13 @@ export default {
300
301
  default: false,
301
302
  },
302
303
  /**
303
- * Options to be passed to the underlying Popper.js instance.
304
- * Overrides built-in options.
304
+ * Custom offset to be applied to Floating UI's offset middleware.
305
+ * https://floating-ui.com/docs/offset
305
306
  */
306
- popperOptions: {
307
- type: Object,
307
+ dropdownOffset: {
308
+ type: [Number, Object],
308
309
  required: false,
309
- default: () => ({}),
310
+ default: undefined,
310
311
  },
311
312
  /**
312
313
  * Lets the dropdown extend to match its content's width, up to a maximum width
@@ -338,6 +339,7 @@ export default {
338
339
  return {
339
340
  'top-scrim-visible': !this.topBoundaryVisible,
340
341
  'bottom-scrim-visible': !this.bottomBoundaryVisible,
342
+ [GL_DROPDOWN_CONTENTS_CLASS]: true,
341
343
  };
342
344
  },
343
345
  itemTag() {
@@ -705,7 +707,7 @@ export default {
705
707
  :loading="loading"
706
708
  :no-caret="noCaret"
707
709
  :placement="placement"
708
- :popper-options="popperOptions"
710
+ :offset="dropdownOffset"
709
711
  :fluid-width="fluidWidth"
710
712
  @[$options.events.GL_DROPDOWN_SHOWN]="onShow"
711
713
  @[$options.events.GL_DROPDOWN_HIDDEN]="onHide"