@gitlab/ui 103.4.0 → 103.5.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
+ # [103.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v103.4.1...v103.5.0) (2024-11-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlAccordion:** add chevron animation ([fee4ef4](https://gitlab.com/gitlab-org/gitlab-ui/commit/fee4ef4dac649ee09ce3f9a9a2610d68fe9a8e88))
7
+
8
+ ## [103.4.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v103.4.0...v103.4.1) (2024-11-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **GlFormInputGroup:** announce description when wrapped in GlFormGroup ([59bb6b1](https://gitlab.com/gitlab-org/gitlab-ui/commit/59bb6b195ce3c0a447a131d87c475554141eb8dc))
14
+
1
15
  # [103.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v103.3.0...v103.4.0) (2024-11-22)
2
16
 
3
17
 
@@ -1,5 +1,6 @@
1
1
  import uniqueId from 'lodash/uniqueId';
2
2
  import { BCollapse } from '../../../vendor/bootstrap-vue/src/components/collapse/collapse';
3
+ import GlAnimatedChevronRightDownIcon from '../animated_icon/animated_chevron_right_down_icon';
3
4
  import { GlCollapseToggleDirective } from '../../../directives/collapse_toggle';
4
5
  import GlButton from '../button/button';
5
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
@@ -8,7 +9,8 @@ var script = {
8
9
  name: 'GlAccordionItem',
9
10
  components: {
10
11
  BCollapse,
11
- GlButton
12
+ GlButton,
13
+ GlAnimatedChevronRightDownIcon
12
14
  },
13
15
  directives: {
14
16
  GlCollapseToggle: GlCollapseToggleDirective
@@ -77,9 +79,6 @@ var script = {
77
79
  accordion() {
78
80
  return this.accordionSetId() || undefined;
79
81
  },
80
- icon() {
81
- return this.isVisible ? 'chevron-down' : 'chevron-right';
82
- },
83
82
  buttonTitle() {
84
83
  return this.isVisible && this.titleVisible ? this.titleVisible : this.title;
85
84
  }
@@ -98,7 +97,7 @@ var script = {
98
97
  const __vue_script__ = script;
99
98
 
100
99
  /* template */
101
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-accordion-item"},[_c(_vm.headerComponent,{tag:"component",staticClass:"gl-accordion-item-header",class:_vm.headerClass},[_c('gl-button',{directives:[{name:"gl-collapse-toggle",rawName:"v-gl-collapse-toggle",value:(_vm.accordionItemId),expression:"accordionItemId"}],attrs:{"variant":"link","button-text-classes":"gl-flex","icon":_vm.icon}},[_vm._v("\n "+_vm._s(_vm.buttonTitle)+"\n ")])],1),_vm._v(" "),_c('b-collapse',{staticClass:"gl-mt-3 gl-text-base",attrs:{"id":_vm.accordionItemId,"visible":_vm.isVisible,"accordion":_vm.accordion,"data-testid":("accordion-item-collapse-" + _vm.accordionItemId)},model:{value:(_vm.isVisible),callback:function ($$v) {_vm.isVisible=$$v;},expression:"isVisible"}},[_vm._t("default")],2)],1)};
100
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-accordion-item"},[_c(_vm.headerComponent,{tag:"component",staticClass:"gl-accordion-item-header",class:_vm.headerClass},[_c('gl-button',{directives:[{name:"gl-collapse-toggle",rawName:"v-gl-collapse-toggle",value:(_vm.accordionItemId),expression:"accordionItemId"}],attrs:{"variant":"link","button-text-classes":"gl-flex"}},[_c('gl-animated-chevron-right-down-icon',{attrs:{"is-on":_vm.isVisible}}),_vm._v("\n "+_vm._s(_vm.buttonTitle)+"\n ")],1)],1),_vm._v(" "),_c('b-collapse',{staticClass:"gl-mt-3 gl-text-base",attrs:{"id":_vm.accordionItemId,"visible":_vm.isVisible,"accordion":_vm.accordion,"data-testid":("accordion-item-collapse-" + _vm.accordionItemId)},model:{value:(_vm.isVisible),callback:function ($$v) {_vm.isVisible=$$v;},expression:"isVisible"}},[_vm._t("default")],2)],1)};
102
101
  var __vue_staticRenderFns__ = [];
103
102
 
104
103
  /* style */
@@ -18,6 +18,7 @@ var script = {
18
18
  GlDropdownItem
19
19
  },
20
20
  mixins: [InputGroupMixin],
21
+ inheritAttrs: false,
21
22
  props: {
22
23
  /**
23
24
  * Automatically selects the content of the input field on click.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "103.4.0",
3
+ "version": "103.5.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,7 @@
1
1
  <script>
2
2
  import uniqueId from 'lodash/uniqueId';
3
3
  import { BCollapse } from '../../../vendor/bootstrap-vue/src/components/collapse/collapse';
4
+ import GlAnimatedChevronRightDownIcon from '../animated_icon/animated_chevron_right_down_icon.vue';
4
5
  import { GlCollapseToggleDirective } from '../../../directives/collapse_toggle';
5
6
  import GlButton from '../button/button.vue';
6
7
 
@@ -9,6 +10,7 @@ export default {
9
10
  components: {
10
11
  BCollapse,
11
12
  GlButton,
13
+ GlAnimatedChevronRightDownIcon,
12
14
  },
13
15
  directives: {
14
16
  GlCollapseToggle: GlCollapseToggleDirective,
@@ -77,9 +79,6 @@ export default {
77
79
  accordion() {
78
80
  return this.accordionSetId() || undefined;
79
81
  },
80
- icon() {
81
- return this.isVisible ? 'chevron-down' : 'chevron-right';
82
- },
83
82
  buttonTitle() {
84
83
  return this.isVisible && this.titleVisible ? this.titleVisible : this.title;
85
84
  },
@@ -102,8 +101,8 @@ export default {
102
101
  v-gl-collapse-toggle="accordionItemId"
103
102
  variant="link"
104
103
  button-text-classes="gl-flex"
105
- :icon="icon"
106
104
  >
105
+ <gl-animated-chevron-right-down-icon :is-on="isVisible" />
107
106
  {{ buttonTitle }}
108
107
  </gl-button>
109
108
  </component>
@@ -18,6 +18,7 @@ export default {
18
18
  GlDropdownItem,
19
19
  },
20
20
  mixins: [InputGroupMixin],
21
+ inheritAttrs: false,
21
22
  props: {
22
23
  /**
23
24
  * Automatically selects the content of the input field on click.