@gitlab/ui 99.0.0 → 99.1.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [99.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v99.0.1...v99.1.0) (2024-10-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlFormSelect:** Add class property ([482ba49](https://gitlab.com/gitlab-org/gitlab-ui/commit/482ba491d264053ae2dfacda383d3604397e17b4))
7
+
8
+ ## [99.0.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v99.0.0...v99.0.1) (2024-10-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **BvTransition:** Check whether Element is defined in DOM API ([b69838d](https://gitlab.com/gitlab-org/gitlab-ui/commit/b69838d1b72587cddafecf1f72d93bb9672beb2d))
14
+
1
15
  # [99.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v98.5.2...v99.0.0) (2024-10-28)
2
16
 
3
17
 
@@ -21,6 +21,11 @@ var script = {
21
21
  const widths = isObject(value) ? Object.values(value) : [value];
22
22
  return widths.every(width => Object.values(formInputWidths).includes(width));
23
23
  }
24
+ },
25
+ selectClass: {
26
+ type: [String, Object, Array],
27
+ required: false,
28
+ default: ''
24
29
  }
25
30
  },
26
31
  computed: {
@@ -53,7 +58,7 @@ var script = {
53
58
  const __vue_script__ = script;
54
59
 
55
60
  /* template */
56
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"gl-form-select-wrapper",class:_vm.cssClasses},[_c('b-form-select',_vm._g(_vm._b({staticClass:"gl-form-select",scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$slots)),function(slot){return {key:slot,fn:function(){return [_vm._t(slot)]},proxy:true}})],null,true)},'b-form-select',_vm.$attrs,false),_vm.$listeners))],1)};
61
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"gl-form-select-wrapper",class:_vm.cssClasses},[_c('b-form-select',_vm._g(_vm._b({staticClass:"gl-form-select",class:_vm.selectClass,scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$slots)),function(slot){return {key:slot,fn:function(){return [_vm._t(slot)]},proxy:true}})],null,true)},'b-form-select',_vm.$attrs,false),_vm.$listeners))],1)};
57
62
  var __vue_staticRenderFns__ = [];
58
63
 
59
64
  /* style */
@@ -36,7 +36,7 @@ const props = {
36
36
  // For user supplied transitions (if needed)
37
37
  transProps: makeProp(PROP_TYPE_OBJECT)
38
38
  };
39
- const hasAnimateSupport = Boolean(Element.prototype.animate);
39
+ const hasAnimateSupport = typeof Element !== 'undefined' && Boolean(Element.prototype.animate);
40
40
 
41
41
  // --- Main component ---
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "99.0.0",
3
+ "version": "99.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -104,10 +104,10 @@
104
104
  },
105
105
  "devDependencies": {
106
106
  "@arkweid/lefthook": "0.7.7",
107
- "@babel/core": "^7.25.9",
107
+ "@babel/core": "^7.26.0",
108
108
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
109
109
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
110
- "@babel/preset-env": "^7.25.9",
110
+ "@babel/preset-env": "^7.26.0",
111
111
  "@babel/preset-react": "^7.25.9",
112
112
  "@cypress/grep": "^4.0.1",
113
113
  "@gitlab/eslint-plugin": "20.4.1",
@@ -23,6 +23,11 @@ export default {
23
23
  return widths.every((width) => Object.values(formInputWidths).includes(width));
24
24
  },
25
25
  },
26
+ selectClass: {
27
+ type: [String, Object, Array],
28
+ required: false,
29
+ default: '',
30
+ },
26
31
  },
27
32
  computed: {
28
33
  cssClasses() {
@@ -51,7 +56,7 @@ export default {
51
56
  </script>
52
57
  <template>
53
58
  <span class="gl-form-select-wrapper" :class="cssClasses">
54
- <b-form-select class="gl-form-select" v-bind="$attrs" v-on="$listeners">
59
+ <b-form-select class="gl-form-select" v-bind="$attrs" :class="selectClass" v-on="$listeners">
55
60
  <!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
56
61
  <template v-for="slot in Object.keys($slots)" #[slot]>
57
62
  <slot :name="slot"></slot>
@@ -42,7 +42,7 @@ export const props = {
42
42
  transProps: makeProp(PROP_TYPE_OBJECT)
43
43
  }
44
44
 
45
- const hasAnimateSupport = Boolean(Element.prototype.animate)
45
+ const hasAnimateSupport = typeof Element !== 'undefined' && Boolean(Element.prototype.animate)
46
46
 
47
47
  // --- Main component ---
48
48