@gitlab/ui 112.3.0 → 112.3.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,18 @@
1
+ ## [112.3.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.1...v112.3.2) (2025-04-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **GlListbox:** Allows listbox to accept null values as defaults ([13848f1](https://gitlab.com/gitlab-org/gitlab-ui/commit/13848f15712c5954ca466b2de4336684aacc3e22))
7
+
8
+ ## [112.3.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.3.0...v112.3.1) (2025-04-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **DesignTokens:** add token.path conditional check ([79a400b](https://gitlab.com/gitlab-org/gitlab-ui/commit/79a400bf7649ce60d568e226525cc2a3bf8aa0c9))
14
+ * **DesignTokens:** use yarn build-tokens script for check tokens build ([f814b08](https://gitlab.com/gitlab-org/gitlab-ui/commit/f814b086764285e1126aac881274d83c2fbad02f))
15
+
1
16
  # [112.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v112.2.3...v112.3.0) (2025-04-11)
2
17
 
3
18
 
@@ -1,6 +1,5 @@
1
1
  import clamp from 'lodash/clamp';
2
2
  import uniqueId from 'lodash/uniqueId';
3
- import isNil from 'lodash/isNil';
4
3
  import { stopEvent } from '../../../../utils/utils';
5
4
  import { GL_DROPDOWN_SHOWN, GL_DROPDOWN_HIDDEN, POSITION_ABSOLUTE, POSITION_FIXED, GL_DROPDOWN_CONTENTS_CLASS, HOME, END, ARROW_UP, ARROW_DOWN, ENTER } from '../constants';
6
5
  import { buttonCategoryOptions, dropdownVariantOptions, buttonSizeOptions, dropdownPlacements } from '../../../../utils/constants';
@@ -57,7 +56,7 @@ var script = {
57
56
  * Array of selected items values for multi-select and selected item value for single-select
58
57
  */
59
58
  selected: {
60
- type: [Array, String, Number],
59
+ type: [Array, String, Number, null],
61
60
  required: false,
62
61
  default: () => []
63
62
  },
@@ -397,7 +396,7 @@ var script = {
397
396
  value
398
397
  } = _ref2;
399
398
  return value === selected;
400
- })).sort();
399
+ })).filter(index => index !== -1).sort();
401
400
  },
402
401
  showList() {
403
402
  return this.flattenedOptions.length && !this.searching;
@@ -482,7 +481,7 @@ var script = {
482
481
  }
483
482
  this.selectedValues = [...newSelected];
484
483
  } else {
485
- this.selectedValues = isNil(newSelected) ? [] : [newSelected];
484
+ this.selectedValues = [newSelected];
486
485
  }
487
486
  }
488
487
  },