@gitlab/ui 65.1.1 → 65.1.2

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [65.1.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v65.1.1...v65.1.2) (2023-08-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **GlDisclosureDropdown:** sets alignment to fix right placement ([02c966a](https://gitlab.com/gitlab-org/gitlab-ui/commit/02c966aa2d990a514134e376f33ee47864f6cc76)), closes [#L69-L70](https://gitlab.com/gitlab-org/gitlab-ui/issues/L69-L70)
7
+
1
8
  ## [65.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v65.1.0...v65.1.1) (2023-08-10)
2
9
 
3
10
 
@@ -230,10 +230,13 @@ var script = {
230
230
  return this.positioningStrategy === POSITION_FIXED;
231
231
  },
232
232
  floatingUIConfig() {
233
+ const placement = dropdownPlacements[this.placement];
234
+ const [, alignment] = placement.split('-');
233
235
  return {
234
- placement: dropdownPlacements[this.placement],
236
+ placement,
235
237
  strategy: this.positioningStrategy,
236
238
  middleware: [offset(this.offset), autoPlacement({
239
+ alignment,
237
240
  allowedPlacements: dropdownAllowedAutoPlacements[this.placement]
238
241
  }), size({
239
242
  apply: _ref => {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 10 Aug 2023 14:55:51 GMT
3
+ * Generated on Fri, 11 Aug 2023 17:26:50 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 10 Aug 2023 14:55:51 GMT
3
+ * Generated on Fri, 11 Aug 2023 17:26:50 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 10 Aug 2023 14:55:51 GMT
3
+ * Generated on Fri, 11 Aug 2023 17:26:50 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#fff";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 10 Aug 2023 14:55:51 GMT
3
+ * Generated on Fri, 11 Aug 2023 17:26:50 GMT
4
4
  */
5
5
 
6
6
  export const BLACK = "#000";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 10 Aug 2023 14:55:51 GMT
3
+ // Generated on Fri, 11 Aug 2023 17:26:50 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 10 Aug 2023 14:55:51 GMT
3
+ // Generated on Fri, 11 Aug 2023 17:26:50 GMT
4
4
 
5
5
  $brand-gray-05: #2b2838 !default;
6
6
  $brand-gray-04: #45424d !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "65.1.1",
3
+ "version": "65.1.2",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -123,7 +123,7 @@
123
123
  "emoji-regex": "^10.0.0",
124
124
  "eslint": "8.46.0",
125
125
  "eslint-import-resolver-jest": "3.0.2",
126
- "eslint-plugin-cypress": "2.13.3",
126
+ "eslint-plugin-cypress": "2.13.4",
127
127
  "eslint-plugin-storybook": "0.6.12",
128
128
  "glob": "^7.2.0",
129
129
  "identity-obj-proxy": "^3.0.0",
@@ -108,6 +108,7 @@ describe('base dropdown', () => {
108
108
  middleware: [
109
109
  offset({ mainAxis: DEFAULT_OFFSET }),
110
110
  autoPlacement({
111
+ alignment: 'start',
111
112
  allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
112
113
  }),
113
114
  ],
@@ -128,6 +129,7 @@ describe('base dropdown', () => {
128
129
  middleware: [
129
130
  offset({ mainAxis: DEFAULT_OFFSET }),
130
131
  autoPlacement({
132
+ alignment: undefined,
131
133
  allowedPlacements: ['bottom', 'top'],
132
134
  }),
133
135
  ],
@@ -148,6 +150,7 @@ describe('base dropdown', () => {
148
150
  middleware: [
149
151
  offset({ mainAxis: DEFAULT_OFFSET }),
150
152
  autoPlacement({
153
+ alignment: 'end',
151
154
  allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
152
155
  }),
153
156
  ],
@@ -243,12 +243,15 @@ export default {
243
243
  return this.positioningStrategy === POSITION_FIXED;
244
244
  },
245
245
  floatingUIConfig() {
246
+ const placement = dropdownPlacements[this.placement];
247
+ const [, alignment] = placement.split('-');
246
248
  return {
247
- placement: dropdownPlacements[this.placement],
249
+ placement,
248
250
  strategy: this.positioningStrategy,
249
251
  middleware: [
250
252
  offset(this.offset),
251
253
  autoPlacement({
254
+ alignment,
252
255
  allowedPlacements: dropdownAllowedAutoPlacements[this.placement],
253
256
  }),
254
257
  size({