@gitlab/ui 43.14.0 → 43.15.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,11 @@
1
+ # [43.15.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v43.14.0...v43.15.0) (2022-09-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Banner:** Update banner spec ([488b01d](https://gitlab.com/gitlab-org/gitlab-ui/commit/488b01d941d1166b47070ffe04a7c617e0bc82a3))
7
+ * **Banner:** Update heading level ([c4c4373](https://gitlab.com/gitlab-org/gitlab-ui/commit/c4c437375596b4157968c88ff16e59bef95a1f36))
8
+
1
9
  # [43.14.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v43.13.0...v43.14.0) (2022-09-08)
2
10
 
3
11
 
@@ -101,7 +101,7 @@ var script = {
101
101
  const __vue_script__ = script;
102
102
 
103
103
  /* template */
104
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-card',{staticClass:"gl-px-8 gl-py-6 gl-line-height-20",class:{ 'gl-banner-introduction': _vm.isIntroducing, 'gl-border-none!': _vm.embedded },attrs:{"body-class":"gl-display-flex gl-p-0!"}},[(_vm.svgPath)?_c('div',{staticClass:"gl-banner-illustration"},[_c('img',{attrs:{"src":_vm.svgPath,"alt":"","role":"presentation"}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-banner-content"},[_c('h1',{staticClass:"gl-banner-title"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),_vm._t("default"),_vm._v(" "),_c('gl-button',{attrs:{"variant":"confirm","category":"primary","data-testid":"gl-banner-primary-button","href":_vm.buttonLink},on:{"click":_vm.primaryButtonClicked}},[_vm._v(_vm._s(_vm.buttonText))]),_vm._v(" "),_vm._t("actions")],2),_vm._v(" "),_c('gl-button',{staticClass:"gl-banner-close",attrs:{"variant":_vm.isIntroducing ? 'confirm' : 'default',"category":"tertiary","size":"small","icon":"close","aria-label":"Close banner"},on:{"click":_vm.handleClose}})],1)};
104
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-card',{staticClass:"gl-px-8 gl-py-6 gl-line-height-20",class:{ 'gl-banner-introduction': _vm.isIntroducing, 'gl-border-none!': _vm.embedded },attrs:{"body-class":"gl-display-flex gl-p-0!"}},[(_vm.svgPath)?_c('div',{staticClass:"gl-banner-illustration"},[_c('img',{attrs:{"src":_vm.svgPath,"alt":"","role":"presentation"}})]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-banner-content"},[_c('h2',{staticClass:"gl-banner-title"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),_vm._t("default"),_vm._v(" "),_c('gl-button',{attrs:{"variant":"confirm","category":"primary","data-testid":"gl-banner-primary-button","href":_vm.buttonLink},on:{"click":_vm.primaryButtonClicked}},[_vm._v(_vm._s(_vm.buttonText))]),_vm._v(" "),_vm._t("actions")],2),_vm._v(" "),_c('gl-button',{staticClass:"gl-banner-close",attrs:{"variant":_vm.isIntroducing ? 'confirm' : 'default',"category":"tertiary","size":"small","icon":"close","aria-label":"Close banner"},on:{"click":_vm.handleClose}})],1)};
105
105
  var __vue_staticRenderFns__ = [];
106
106
 
107
107
  /* style */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "43.14.0",
3
+ "version": "43.15.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -81,7 +81,7 @@
81
81
  "@babel/preset-env": "^7.18.10",
82
82
  "@gitlab/eslint-plugin": "17.0.0",
83
83
  "@gitlab/stylelint-config": "4.1.0",
84
- "@gitlab/svgs": "3.2.0",
84
+ "@gitlab/svgs": "3.3.0",
85
85
  "@rollup/plugin-commonjs": "^11.1.0",
86
86
  "@rollup/plugin-node-resolve": "^7.1.3",
87
87
  "@rollup/plugin-replace": "^2.3.2",
@@ -104,7 +104,7 @@
104
104
  "bootstrap": "4.5.3",
105
105
  "cypress": "^10.7.0",
106
106
  "emoji-regex": "^10.0.0",
107
- "eslint": "8.22.0",
107
+ "eslint": "8.23.0",
108
108
  "eslint-import-resolver-jest": "3.0.2",
109
109
  "eslint-plugin-cypress": "2.12.1",
110
110
  "eslint-plugin-storybook": "0.6.4",
@@ -25,7 +25,7 @@ describe('banner component', () => {
25
25
  });
26
26
 
27
27
  it('should render the correct title', () => {
28
- expect(wrapper.find('h1').text()).toEqual(propsData.title);
28
+ expect(wrapper.find('h2').text()).toEqual(propsData.title);
29
29
  });
30
30
 
31
31
  it('should render the button', () => {
@@ -98,7 +98,7 @@ export default {
98
98
  <img :src="svgPath" alt="" role="presentation" />
99
99
  </div>
100
100
  <div class="gl-banner-content">
101
- <h1 class="gl-banner-title">{{ title }}</h1>
101
+ <h2 class="gl-banner-title">{{ title }}</h2>
102
102
  <!-- @slot The banner content to display -->
103
103
  <slot></slot>
104
104
  <gl-button