@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.
- package/CHANGELOG.md +21 -0
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +76 -25
- package/dist/components/base/new_dropdowns/base_dropdown/constants.js +3 -2
- package/dist/components/base/new_dropdowns/constants.js +2 -10
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +9 -8
- package/dist/components/base/new_dropdowns/listbox/listbox.js +9 -8
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +20 -20
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.spec.js +97 -58
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +78 -23
- package/src/components/base/new_dropdowns/base_dropdown/constants.js +2 -1
- package/src/components/base/new_dropdowns/constants.js +2 -11
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.spec.js +10 -4
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +9 -7
- package/src/components/base/new_dropdowns/dropdown.scss +3 -0
- package/src/components/base/new_dropdowns/listbox/listbox.spec.js +10 -4
- package/src/components/base/new_dropdowns/listbox/listbox.stories.js +2 -2
- package/src/components/base/new_dropdowns/listbox/listbox.vue +8 -6
|
@@ -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
|
-
*
|
|
304
|
-
*
|
|
304
|
+
* Custom offset to be applied to Floating UI's offset middleware.
|
|
305
|
+
* https://floating-ui.com/docs/offset
|
|
305
306
|
*/
|
|
306
|
-
|
|
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
|
-
:
|
|
710
|
+
:offset="dropdownOffset"
|
|
709
711
|
:fluid-width="fluidWidth"
|
|
710
712
|
@[$options.events.GL_DROPDOWN_SHOWN]="onShow"
|
|
711
713
|
@[$options.events.GL_DROPDOWN_HIDDEN]="onHide"
|