@gitlab/ui 71.7.1 → 71.8.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 +7 -0
- package/dist/components/base/banner/banner.js +0 -9
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +2 -2
- package/src/components/base/banner/banner.stories.js +0 -8
- package/src/components/base/banner/banner.vue +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [71.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.7.1...v71.8.0) (2023-12-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **GlBanner:** remove embedded property ([b024100](https://gitlab.com/gitlab-org/gitlab-ui/commit/b02410025fbb4efa7704081e0c0c2a9bd01e3216))
|
|
7
|
+
|
|
1
8
|
## [71.7.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.7.0...v71.7.1) (2023-12-08)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -68,14 +68,6 @@ var script = {
|
|
|
68
68
|
type: String,
|
|
69
69
|
required: false,
|
|
70
70
|
default: 'Dismiss'
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Removes the border for banners embedded in content.
|
|
74
|
-
*/
|
|
75
|
-
embedded: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
required: false,
|
|
78
|
-
default: null
|
|
79
71
|
}
|
|
80
72
|
},
|
|
81
73
|
computed: {
|
|
@@ -111,7 +103,6 @@ const __vue_script__ = script;
|
|
|
111
103
|
/* template */
|
|
112
104
|
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-card',{staticClass:"gl-pl-6 gl-pr-8 gl-py-6",class:{
|
|
113
105
|
'gl-banner-introduction': _vm.isIntroducing,
|
|
114
|
-
'gl-border-none!': _vm.embedded,
|
|
115
106
|
'gl-bg-gray-10!': !_vm.isIntroducing,
|
|
116
107
|
},attrs:{"body-class":"gl-display-flex gl-p-0!"}},[(_vm.svgPath)?_c('div',{staticClass:"gl-banner-illustration"},[_c('img',{attrs:{"src":_vm.svgPath,"alt":""}})]):_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',_vm._b({attrs:{"variant":"confirm","category":"primary","data-testid":"gl-banner-primary-button","href":_vm.buttonLink},on:{"click":_vm.primaryButtonClicked}},'gl-button',_vm.buttonAttributes,false),[_vm._v(_vm._s(_vm.buttonText))]),_vm._v(" "),_vm._t("actions")],2),_vm._v(" "),_c('close-button',{staticClass:"gl-banner-close",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.handleClose}})],1)};
|
|
117
108
|
var __vue_staticRenderFns__ = [];
|
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "71.
|
|
3
|
+
"version": "71.8.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@gitlab/eslint-plugin": "19.2.0",
|
|
95
95
|
"@gitlab/fonts": "^1.3.0",
|
|
96
96
|
"@gitlab/stylelint-config": "5.0.1",
|
|
97
|
-
"@gitlab/svgs": "3.
|
|
97
|
+
"@gitlab/svgs": "3.72.0",
|
|
98
98
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
99
99
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
100
100
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -13,7 +13,6 @@ const template = `
|
|
|
13
13
|
:button-link="buttonLink"
|
|
14
14
|
:svg-path="svgPath"
|
|
15
15
|
:variant="variant"
|
|
16
|
-
:embedded="embedded"
|
|
17
16
|
>
|
|
18
17
|
<p>GitLab Service Desk is a simple way to allow people to create issues in your GitLab instance without needing their own user account. It provides a unique email address for end users to create issues in a project, and replies can be sent either though the GitLab interface or by email. End users will only see the thread though email.</p>
|
|
19
18
|
</gl-banner>
|
|
@@ -26,7 +25,6 @@ const generateProps = ({
|
|
|
26
25
|
buttonLink = 'https://gitlab.com',
|
|
27
26
|
svgPath = serviceDeskCalloutSvg,
|
|
28
27
|
variant = GlBanner.props.variant.default,
|
|
29
|
-
embedded = false,
|
|
30
28
|
} = {}) => ({
|
|
31
29
|
title,
|
|
32
30
|
buttonAttributes,
|
|
@@ -34,7 +32,6 @@ const generateProps = ({
|
|
|
34
32
|
buttonLink,
|
|
35
33
|
svgPath,
|
|
36
34
|
variant,
|
|
37
|
-
embedded,
|
|
38
35
|
});
|
|
39
36
|
|
|
40
37
|
const Template = (args, { argTypes }) => ({
|
|
@@ -58,11 +55,6 @@ Introduction.args = generateProps({
|
|
|
58
55
|
variant: bannerVariants[1],
|
|
59
56
|
});
|
|
60
57
|
|
|
61
|
-
export const Embedded = Template.bind({});
|
|
62
|
-
Embedded.args = generateProps({
|
|
63
|
-
embedded: true,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
58
|
export const WithActions = (args, { argTypes }) => ({
|
|
67
59
|
components: {
|
|
68
60
|
GlBanner,
|
|
@@ -69,14 +69,6 @@ export default {
|
|
|
69
69
|
required: false,
|
|
70
70
|
default: 'Dismiss',
|
|
71
71
|
},
|
|
72
|
-
/**
|
|
73
|
-
* Removes the border for banners embedded in content.
|
|
74
|
-
*/
|
|
75
|
-
embedded: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
required: false,
|
|
78
|
-
default: null,
|
|
79
|
-
},
|
|
80
72
|
},
|
|
81
73
|
computed: {
|
|
82
74
|
isIntroducing() {
|
|
@@ -111,7 +103,6 @@ export default {
|
|
|
111
103
|
class="gl-pl-6 gl-pr-8 gl-py-6"
|
|
112
104
|
:class="{
|
|
113
105
|
'gl-banner-introduction': isIntroducing,
|
|
114
|
-
'gl-border-none!': embedded,
|
|
115
106
|
'gl-bg-gray-10!': !isIntroducing,
|
|
116
107
|
}"
|
|
117
108
|
body-class="gl-display-flex gl-p-0!"
|