@gitlab/ui 80.15.1 → 80.16.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 +14 -0
- package/dist/components/base/icon/icon.js +14 -2
- package/dist/components/experimental/experiment_badge/experiment_badge.js +5 -3
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +10 -1
- package/dist/tokens/build/js/tokens.js +10 -1
- package/dist/tokens/css/tokens.css +9 -0
- package/dist/tokens/css/tokens.dark.css +9 -0
- package/dist/tokens/js/tokens.dark.js +9 -0
- package/dist/tokens/js/tokens.js +9 -0
- package/dist/tokens/json/tokens.dark.json +202 -0
- package/dist/tokens/json/tokens.json +202 -0
- package/dist/tokens/scss/_tokens.dark.scss +9 -0
- package/dist/tokens/scss/_tokens.scss +9 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +9 -0
- package/dist/tokens/tailwind/tokens.cjs +20 -0
- package/dist/utils/constants.js +13 -1
- package/package.json +1 -1
- package/src/components/base/icon/icon.scss +0 -1
- package/src/components/base/icon/icon.vue +14 -2
- package/src/components/experimental/experiment_badge/experiment_badge.vue +5 -2
- package/src/tokens/build/css/tokens.css +9 -0
- package/src/tokens/build/css/tokens.dark.css +9 -0
- package/src/tokens/build/js/tokens.dark.js +9 -0
- package/src/tokens/build/js/tokens.js +9 -0
- package/src/tokens/build/json/tokens.dark.json +202 -0
- package/src/tokens/build/json/tokens.json +202 -0
- package/src/tokens/build/scss/_tokens.dark.scss +9 -0
- package/src/tokens/build/scss/_tokens.scss +9 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +9 -0
- package/src/tokens/build/tailwind/tokens.cjs +20 -0
- package/src/tokens/icon.tokens.json +78 -0
- package/src/utils/constants.js +13 -0
- package/tailwind.defaults.js +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [80.16.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.15.2...v80.16.0) (2024-05-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **GlIcon:** Add semantic icon design tokens to GlIcon component ([2e17cab](https://gitlab.com/gitlab-org/gitlab-ui/commit/2e17cab58a6890b31efd8060bbf0ee617577172f))
|
|
7
|
+
|
|
8
|
+
## [80.15.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.15.1...v80.15.2) (2024-05-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlExperimentBadge:** correct line-break in the text ([b55a2f8](https://gitlab.com/gitlab-org/gitlab-ui/commit/b55a2f8968319edd6283c2e984bae9882f4c1431))
|
|
14
|
+
|
|
1
15
|
## [80.15.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.15.0...v80.15.1) (2024-05-29)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import iconsPath from '@gitlab/svgs/dist/icons.svg';
|
|
2
|
-
import { iconSizeOptions } from '../../../utils/constants';
|
|
2
|
+
import { iconSizeOptions, iconVariantOptions } from '../../../utils/constants';
|
|
3
3
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
4
4
|
|
|
5
5
|
//
|
|
@@ -60,6 +60,15 @@ var script = {
|
|
|
60
60
|
required: false,
|
|
61
61
|
default: 16,
|
|
62
62
|
validator: value => iconSizeOptions.includes(value)
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Icon variant
|
|
66
|
+
*/
|
|
67
|
+
variant: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
default: 'current',
|
|
71
|
+
validator: value => Object.keys(iconVariantOptions).includes(value)
|
|
63
72
|
}
|
|
64
73
|
},
|
|
65
74
|
computed: {
|
|
@@ -68,6 +77,9 @@ var script = {
|
|
|
68
77
|
},
|
|
69
78
|
iconSizeClass() {
|
|
70
79
|
return this.size ? `s${this.size}` : '';
|
|
80
|
+
},
|
|
81
|
+
iconVariantClass() {
|
|
82
|
+
return this.variant ? iconVariantOptions[this.variant] : '';
|
|
71
83
|
}
|
|
72
84
|
}
|
|
73
85
|
};
|
|
@@ -76,7 +88,7 @@ var script = {
|
|
|
76
88
|
const __vue_script__ = script;
|
|
77
89
|
|
|
78
90
|
/* template */
|
|
79
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',_vm._g({key:_vm.spriteHref,class:['gl-icon', _vm.iconSizeClass],attrs:{"data-testid":(_vm.name + "-icon"),"role":"img","aria-hidden":!_vm.ariaLabel,"aria-label":_vm.ariaLabel}},_vm.$listeners),[_c('use',{attrs:{"href":_vm.spriteHref}})])};
|
|
91
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',_vm._g({key:_vm.spriteHref,class:['gl-icon', _vm.iconSizeClass, _vm.iconVariantClass],attrs:{"data-testid":(_vm.name + "-icon"),"role":"img","aria-hidden":!_vm.ariaLabel,"aria-label":_vm.ariaLabel}},_vm.$listeners),[_c('use',{attrs:{"href":_vm.spriteHref}})])};
|
|
80
92
|
var __vue_staticRenderFns__ = [];
|
|
81
93
|
|
|
82
94
|
/* style */
|
|
@@ -10,13 +10,13 @@ const i18n = {
|
|
|
10
10
|
experiment: {
|
|
11
11
|
BADGE: 'Experiment',
|
|
12
12
|
POPOVER_TITLE: "What's an experiment?",
|
|
13
|
-
POPOVER_CONTENT: 'An %{linkStart}experiment%{linkEnd} is not yet production-ready, but is released for initial testing and feedback during development
|
|
13
|
+
POPOVER_CONTENT: 'An %{linkStart}experiment%{linkEnd} is not yet production-ready, but is released for initial testing and feedback during development.%{line-breakStart}Experiments:%{line-breakEnd} %{bullets}',
|
|
14
14
|
POPOVER_BULLETS: ['Might be unstable or cause data loss.', 'Are not supported and might not be documented.', 'Could be changed or removed at any time.', 'Are subject to the GitLab Testing Agreement.']
|
|
15
15
|
},
|
|
16
16
|
beta: {
|
|
17
17
|
BADGE: 'Beta',
|
|
18
18
|
POPOVER_TITLE: "What's a beta?",
|
|
19
|
-
POPOVER_CONTENT: "A %{linkStart}beta%{linkEnd} feature is not yet production-ready, but is ready for testing and unlikely to change significantly before it's released
|
|
19
|
+
POPOVER_CONTENT: "A %{linkStart}beta%{linkEnd} feature is not yet production-ready, but is ready for testing and unlikely to change significantly before it's released.%{line-breakStart}Beta features:%{line-breakEnd} %{bullets}",
|
|
20
20
|
POPOVER_BULLETS: ['Have a low risk of data loss, but might still be unstable.', 'Are supported on a commercially-reasonable effort basis.', 'Have a near complete user experience.', 'Are subject to the GitLab Testing Agreement.']
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -71,7 +71,9 @@ const __vue_script__ = script;
|
|
|
71
71
|
/* template */
|
|
72
72
|
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-badge',{staticClass:"gl-mx-4 gl-hover-cursor-pointer",attrs:{"id":_vm.triggerId,"variant":"neutral","size":"md"}},[_c('span',[_vm._v(_vm._s(_vm.activeType.BADGE))]),_vm._v(" "),_c('gl-popover',{attrs:{"triggers":"click","show-close-button":"","placement":_vm.popoverPlacement,"target":_vm.triggerId,"css-classes":['gl-z-index-9999!'],"title":_vm.activeType.POPOVER_TITLE}},[_c('gl-sprintf',{attrs:{"message":_vm.activeType.POPOVER_CONTENT},scopedSlots:_vm._u([{key:"link",fn:function(ref){
|
|
73
73
|
var content = ref.content;
|
|
74
|
-
return [(_vm.helpPageUrl)?_c('gl-link',{staticClass:"gl-font-sm!",attrs:{"href":_vm.helpPageUrl,"target":"_blank"}},[_vm._v("\n "+_vm._s(content)+"\n ")]):_c('span',[_vm._v(_vm._s(content))])]}},{key:"bullets",fn:function(){return [_c('ul',{staticClass:"gl-mb-0 gl-pl-5"},_vm._l((_vm.activeType.POPOVER_BULLETS),function(item,i){return _c('li',{key:("li-" + i)},[_vm._v("\n "+_vm._s(item)+"\n ")])}),0)]},proxy:true}
|
|
74
|
+
return [(_vm.helpPageUrl)?_c('gl-link',{staticClass:"gl-font-sm!",attrs:{"href":_vm.helpPageUrl,"target":"_blank"}},[_vm._v("\n "+_vm._s(content)+"\n ")]):_c('span',[_vm._v(_vm._s(content))])]}},{key:"bullets",fn:function(){return [_c('ul',{staticClass:"gl-mb-0 gl-pl-5"},_vm._l((_vm.activeType.POPOVER_BULLETS),function(item,i){return _c('li',{key:("li-" + i)},[_vm._v("\n "+_vm._s(item)+"\n ")])}),0)]},proxy:true},{key:"line-break",fn:function(ref){
|
|
75
|
+
var content = ref.content;
|
|
76
|
+
return [_c('span',{staticClass:"gl-mt-5 gl-mb-0 gl-display-block"},[_vm._v(_vm._s(content))])]}}])})],1)],1)};
|
|
75
77
|
var __vue_staticRenderFns__ = [];
|
|
76
78
|
|
|
77
79
|
/* style */
|