@gitlab/ui 106.1.0 → 106.2.1

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +4 -2
  3. package/dist/components/experimental/experiment_badge/experiment_badge.js +8 -14
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/tailwind.css +1 -1
  7. package/dist/tailwind.css.map +1 -1
  8. package/dist/tokens/build/js/tokens.dark.js +1 -1
  9. package/dist/tokens/build/js/tokens.js +1 -1
  10. package/dist/tokens/css/tokens.css +1 -1
  11. package/dist/tokens/css/tokens.dark.css +1 -1
  12. package/dist/tokens/js/tokens.dark.js +1 -1
  13. package/dist/tokens/js/tokens.js +1 -1
  14. package/dist/tokens/json/tokens.dark.json +3 -3
  15. package/dist/tokens/json/tokens.json +3 -3
  16. package/dist/tokens/scss/_tokens.dark.scss +1 -1
  17. package/dist/tokens/scss/_tokens.scss +1 -1
  18. package/dist/tokens/tailwind/tokens.cjs +1 -1
  19. package/package.json +4 -3
  20. package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +11 -2
  21. package/src/components/experimental/experiment_badge/experiment_badge.md +5 -4
  22. package/src/components/experimental/experiment_badge/experiment_badge.vue +8 -17
  23. package/src/tokens/build/css/tokens.css +1 -1
  24. package/src/tokens/build/css/tokens.dark.css +1 -1
  25. package/src/tokens/build/js/tokens.dark.js +1 -1
  26. package/src/tokens/build/js/tokens.js +1 -1
  27. package/src/tokens/build/json/tokens.dark.json +3 -3
  28. package/src/tokens/build/json/tokens.json +3 -3
  29. package/src/tokens/build/scss/_tokens.dark.scss +1 -1
  30. package/src/tokens/build/scss/_tokens.scss +1 -1
  31. package/src/tokens/build/tailwind/tokens.cjs +1 -1
  32. package/src/tokens/icon.tokens.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [106.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v106.2.0...v106.2.1) (2025-01-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **GlDashboardPanel:** Fix title truncation ([5bde012](https://gitlab.com/gitlab-org/gitlab-ui/commit/5bde0125bc2f886cdb032d642bdc72c7fa10fa89))
7
+
8
+ # [106.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v106.1.0...v106.2.0) (2025-01-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * **GlExperimentBadge:** Add story for beta ([5c63782](https://gitlab.com/gitlab-org/gitlab-ui/commit/5c63782fa999a4a2a4676c1109974f1bb8647f67))
14
+
1
15
  # [106.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v106.0.0...v106.1.0) (2025-01-07)
2
16
 
3
17
 
@@ -6,6 +6,7 @@ import GlLoadingIcon from '../../base/loading_icon/loading_icon';
6
6
  import GlPopover from '../../base/popover/popover';
7
7
  import GlSprintf from '../../utilities/sprintf/sprintf';
8
8
  import GlLink from '../../base/link/link';
9
+ import GlTruncate from '../../utilities/truncate/truncate';
9
10
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
10
11
 
11
12
  var script = {
@@ -16,7 +17,8 @@ var script = {
16
17
  GlIcon,
17
18
  GlPopover,
18
19
  GlSprintf,
19
- GlLink
20
+ GlLink,
21
+ GlTruncate
20
22
  },
21
23
  props: {
22
24
  containerClass: {
@@ -121,7 +123,7 @@ var script = {
121
123
  const __vue_script__ = script;
122
124
 
123
125
  /* template */
124
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-border gl-h-full !gl-overflow-visible gl-rounded-base gl-bg-white gl-p-4",class:_vm.containerClasses,attrs:{"id":_vm.panelId}},[_c('div',{staticClass:"gl-flex gl-h-full gl-flex-col"},[_c('div',{staticClass:"gl-flex gl-items-start gl-justify-between",attrs:{"data-testid":"panel-title"}},[_c('div',{staticClass:"gl-flex gl-items-center gl-pb-3"},[(_vm.hasTitleIcon)?_c('gl-icon',{staticClass:"gl-mr-1",class:_vm.titleIconClass,attrs:{"name":_vm.titleIcon,"data-testid":"panel-title-icon"}}):_vm._e(),_vm._v(" "),(_vm.hasTitle)?_c('strong',{staticClass:"gl-text-gray-700"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),(_vm.hasTitlePopover)?[_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"id":_vm.titlePopoverId,"data-testid":"panel-title-popover-icon","name":"information-o","variant":"info"}}),_vm._v(" "),_c('gl-popover',{attrs:{"data-testid":"panel-title-popover","boundary":"viewport","target":_vm.titlePopoverId}},[(_vm.hasTitlePopoverLink)?_c('gl-sprintf',{attrs:{"message":_vm.titlePopover.description},scopedSlots:_vm._u([{key:"link",fn:function(ref){
126
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-border gl-h-full !gl-overflow-visible gl-rounded-base gl-bg-white gl-p-4",class:_vm.containerClasses,attrs:{"id":_vm.panelId}},[_c('div',{staticClass:"gl-flex gl-h-full gl-flex-col"},[_c('div',{staticClass:"gl-flex gl-items-start gl-justify-between",attrs:{"data-testid":"panel-title"}},[_c('div',{staticClass:"gl-flex gl-items-center gl-overflow-hidden gl-pb-3"},[(_vm.hasTitleIcon)?_c('gl-icon',{staticClass:"gl-mr-1",class:_vm.titleIconClass,attrs:{"name":_vm.titleIcon,"data-testid":"panel-title-icon"}}):_vm._e(),_vm._v(" "),(_vm.hasTitle)?_c('gl-truncate',{staticClass:"gl-font-bold gl-text-default",attrs:{"text":_vm.title,"with-tooltip":""}}):_vm._e(),_vm._v(" "),(_vm.hasTitlePopover)?[_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"id":_vm.titlePopoverId,"data-testid":"panel-title-popover-icon","name":"information-o","variant":"info"}}),_vm._v(" "),_c('gl-popover',{attrs:{"data-testid":"panel-title-popover","boundary":"viewport","target":_vm.titlePopoverId}},[(_vm.hasTitlePopoverLink)?_c('gl-sprintf',{attrs:{"message":_vm.titlePopover.description},scopedSlots:_vm._u([{key:"link",fn:function(ref){
125
127
  var content = ref.content;
126
128
  return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v("\n "+_vm._s(_vm.titlePopover.description)+"\n ")]],2)]:_vm._e()],2),_vm._v(" "),(_vm.shouldShowActions)?_c('gl-disclosure-dropdown',{attrs:{"items":_vm.actions,"icon":"ellipsis_v","toggle-text":_vm.actionsToggleText,"text-sr-only":"","no-caret":"","placement":"bottom-end","fluid-width":"","toggle-class":"gl-ml-1","category":"tertiary","positioning-strategy":"fixed"},on:{"shown":function($event){return _vm.$emit('dropdownOpen')},"hidden":function($event){return _vm.$emit('dropdownClosed')}},scopedSlots:_vm._u([{key:"list-item",fn:function(ref){
127
129
  var item = ref.item;
@@ -3,21 +3,23 @@ import GlBadge from '../../base/badge/badge';
3
3
  import GlLink from '../../base/link/link';
4
4
  import GlPopover from '../../base/popover/popover';
5
5
  import GlSprintf from '../../utilities/sprintf/sprintf';
6
- import { badgeTypes, badgeTypeValidator } from './constants';
6
+ import { badgeTypeValidator } from './constants';
7
7
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
8
8
 
9
9
  const i18n = {
10
10
  experiment: {
11
11
  BADGE: 'Experiment',
12
+ HELP_PAGE_URL: 'https://docs.gitlab.com/ee/policy/development_stages_support.html#experiment',
12
13
  POPOVER_TITLE: "What's an experiment?",
13
14
  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
- 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
+ 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.']
15
16
  },
16
17
  beta: {
17
18
  BADGE: 'Beta',
19
+ HELP_PAGE_URL: 'https://docs.gitlab.com/ee/policy/development_stages_support.html#beta',
18
20
  POPOVER_TITLE: "What's a beta?",
19
21
  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
- 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.']
22
+ 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.']
21
23
  }
22
24
  };
23
25
  var script = {
@@ -29,14 +31,6 @@ var script = {
29
31
  GlLink
30
32
  },
31
33
  props: {
32
- /**
33
- * The URL of a page to provide more explanations on the experiment.
34
- */
35
- helpPageUrl: {
36
- type: String,
37
- required: false,
38
- default: ''
39
- },
40
34
  /**
41
35
  * The placement of the popover in relation to the button.
42
36
  */
@@ -46,12 +40,12 @@ var script = {
46
40
  default: 'bottom'
47
41
  },
48
42
  /**
49
- * The type of the badge.
43
+ * The type of the badge. Can be 'experiment' or 'beta'.
50
44
  */
51
45
  type: {
52
46
  type: String,
53
47
  required: false,
54
- default: badgeTypes[0],
48
+ default: 'experiment',
55
49
  validator: badgeTypeValidator
56
50
  }
57
51
  },
@@ -71,7 +65,7 @@ const __vue_script__ = script;
71
65
  /* template */
72
66
  var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-badge',{ref:"badge",staticClass:"gl-mx-4 hover:gl-cursor-pointer",attrs:{"id":_vm.triggerId,"href":"#","variant":"neutral"}},[_c('span',[_vm._v(_vm._s(_vm.activeType.BADGE))]),_vm._v(" "),_c('gl-popover',{attrs:{"triggers":"hover focus click","show-close-button":"","placement":_vm.popoverPlacement,"target":_vm.triggerId,"css-classes":['!gl-z-9999'],"title":_vm.activeType.POPOVER_TITLE}},[_c('gl-sprintf',{attrs:{"message":_vm.activeType.POPOVER_CONTENT},scopedSlots:_vm._u([{key:"link",fn:function(ref){
73
67
  var content = ref.content;
74
- return [(_vm.helpPageUrl)?_c('gl-link',{staticClass:"!gl-text-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){
68
+ return [_c('gl-link',{staticClass:"!gl-text-sm",attrs:{"href":_vm.activeType.HELP_PAGE_URL,"target":"_blank"}},[_vm._v("\n "+_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
69
  var content = ref.content;
76
70
  return [_c('span',{staticClass:"gl-mb-0 gl-mt-5 gl-block"},[_vm._v(_vm._s(content))])]}}])})],1)],1)};
77
71
  var __vue_staticRenderFns__ = [];