@gitlab/ui 59.4.0 → 60.0.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,33 @@
1
+ # [60.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v59.5.0...v60.0.0) (2023-04-06)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Breadcrumb:** Add opt in multiple avatars ([67f1e3e](https://gitlab.com/gitlab-org/gitlab-ui/commit/67f1e3eac7899568052730d0135cb471e2d0e474))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **Breadcrumb:** Deprecated avatar slot
12
+ Added avatar option in items prop
13
+
14
+ chore(breadcrumbs)
15
+
16
+ fix css rules on avatar
17
+
18
+ chore(breadcrumbs)
19
+
20
+ fix story template
21
+
22
+ Add review suggestions
23
+
24
+ # [59.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v59.4.0...v59.5.0) (2023-04-06)
25
+
26
+
27
+ ### Features
28
+
29
+ * add gl-sm-flex-nowrap, gl-flex-wrap-reverse ([7acd006](https://gitlab.com/gitlab-org/gitlab-ui/commit/7acd006d285bfe7eb51f9bcb1edc81b20b934b8a))
30
+
1
31
  # [59.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v59.3.2...v59.4.0) (2023-04-05)
2
32
 
3
33
 
@@ -1,5 +1,6 @@
1
1
  import { BBreadcrumb } from 'bootstrap-vue/esm/index.js';
2
2
  import GlButton from '../button/button';
3
+ import GlAvatar from '../avatar/avatar';
3
4
  import { GlTooltipDirective } from '../../../directives/tooltip';
4
5
  import GlBreadcrumbItem from './breadcrumb_item';
5
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
@@ -10,7 +11,8 @@ var script = {
10
11
  components: {
11
12
  BBreadcrumb,
12
13
  GlButton,
13
- GlBreadcrumbItem
14
+ GlBreadcrumbItem,
15
+ GlAvatar
14
16
  },
15
17
  directives: {
16
18
  GlTooltip: GlTooltipDirective
@@ -27,9 +29,9 @@ var script = {
27
29
  text: '',
28
30
  href: ''
29
31
  }],
30
- validator: links => {
31
- return links.every(link => {
32
- const keys = Object.keys(link);
32
+ validator: items => {
33
+ return items.every(item => {
34
+ const keys = Object.keys(item);
33
35
  return keys.includes('text') && (keys.includes('href') || keys.includes('to'));
34
36
  });
35
37
  }
@@ -83,7 +85,7 @@ var script = {
83
85
  const __vue_script__ = script;
84
86
 
85
87
  /* template */
86
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"gl-breadcrumbs",attrs:{"aria-label":"Breadcrumb"}},[_vm._t("avatar"),_vm._v(" "),_c('b-breadcrumb',_vm._g(_vm._b({staticClass:"gl-breadcrumb-list"},'b-breadcrumb',_vm.$attrs,false),_vm.$listeners),[_vm._l((_vm.items),function(item,index){return [_c('gl-breadcrumb-item',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isItemCollapsed(index)),expression:"!isItemCollapsed(index)"}],ref:_vm.isFirstItem(index) ? 'firstItem' : null,refInFor:true,attrs:{"text":item.text,"href":item.href,"to":item.to,"aria-current":_vm.getAriaCurrentAttr(index)}},[_vm._v(_vm._s(item.text))]),_vm._v(" "),(_vm.showCollapsedBreadcrumbsExpander(index))?[_c('li',{staticClass:"gl-breadcrumb-item"},[_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",value:('Show all breadcrumbs'),expression:"'Show all breadcrumbs'",modifiers:{"hover":true}}],attrs:{"aria-label":"Show all breadcrumbs","data-testid":"collapsed-expander","icon":"ellipsis_h","category":"primary"},on:{"click":_vm.expandBreadcrumbs}})],1)]:_vm._e()]})],2)],2)};
88
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"gl-breadcrumbs",attrs:{"aria-label":"Breadcrumb"}},[_c('b-breadcrumb',_vm._g(_vm._b({staticClass:"gl-breadcrumb-list"},'b-breadcrumb',_vm.$attrs,false),_vm.$listeners),[_vm._l((_vm.items),function(item,index){return [_c('gl-breadcrumb-item',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isItemCollapsed(index)),expression:"!isItemCollapsed(index)"}],ref:_vm.isFirstItem(index) ? 'firstItem' : null,refInFor:true,attrs:{"text":item.text,"href":item.href,"to":item.to,"aria-current":_vm.getAriaCurrentAttr(index)}},[(item.avatarPath)?_c('gl-avatar',{staticClass:"gl-breadcrumb-avatar-tile gl-border gl-mr-2 gl-rounded-base!",attrs:{"src":item.avatarPath,"size":16,"aria-hidden":"true","shape":"rect","data-testid":"avatar"}}):_vm._e(),_c('span',[_vm._v(_vm._s(item.text))])],1),_vm._v(" "),(_vm.showCollapsedBreadcrumbsExpander(index))?[_c('li',{staticClass:"gl-breadcrumb-item"},[_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",value:('Show all breadcrumbs'),expression:"'Show all breadcrumbs'",modifiers:{"hover":true}}],attrs:{"aria-label":"Show all breadcrumbs","data-testid":"collapsed-expander","icon":"ellipsis_h","category":"primary"},on:{"click":_vm.expandBreadcrumbs}})],1)]:_vm._e()]})],2)],1)};
87
89
  var __vue_staticRenderFns__ = [];
88
90
 
89
91
  /* style */