@gitlab/ui 32.51.2 → 32.54.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "32.51.2",
3
+ "version": "32.54.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -90,15 +90,15 @@
90
90
  "@rollup/plugin-commonjs": "^11.1.0",
91
91
  "@rollup/plugin-node-resolve": "^7.1.3",
92
92
  "@rollup/plugin-replace": "^2.3.2",
93
- "@storybook/addon-a11y": "6.4.9",
94
- "@storybook/addon-docs": "6.4.9",
95
- "@storybook/addon-essentials": "6.4.9",
93
+ "@storybook/addon-a11y": "6.4.10",
94
+ "@storybook/addon-docs": "6.4.10",
95
+ "@storybook/addon-essentials": "6.4.10",
96
96
  "@storybook/addon-knobs": "6.4.0",
97
- "@storybook/addon-storyshots": "6.4.9",
98
- "@storybook/addon-storyshots-puppeteer": "6.4.9",
99
- "@storybook/addon-viewport": "6.4.9",
100
- "@storybook/theming": "6.4.9",
101
- "@storybook/vue": "6.4.9",
97
+ "@storybook/addon-storyshots": "6.4.10",
98
+ "@storybook/addon-storyshots-puppeteer": "6.4.10",
99
+ "@storybook/addon-viewport": "6.4.10",
100
+ "@storybook/theming": "6.4.10",
101
+ "@storybook/vue": "6.4.10",
102
102
  "@vue/test-utils": "1.3.0",
103
103
  "autoprefixer": "^9.7.6",
104
104
  "babel-jest": "^26.6.3",
@@ -3,8 +3,8 @@ import LoadingIcon from './loading_icon.vue';
3
3
 
4
4
  describe('loading icon component', () => {
5
5
  let wrapper;
6
- const createComponent = (propsData) => {
7
- wrapper = shallowMount(LoadingIcon, { propsData });
6
+ const createComponent = ({ attrs, ...propsData } = {}) => {
7
+ wrapper = shallowMount(LoadingIcon, { propsData, attrs });
8
8
  };
9
9
 
10
10
  const baseCssClass = 'gl-spinner';
@@ -83,4 +83,19 @@ describe('loading icon component', () => {
83
83
  expect(spinnerEl.attributes('aria-label')).toBe(label);
84
84
  });
85
85
  });
86
+
87
+ describe('role', () => {
88
+ it('should have default role value as status', () => {
89
+ createComponent();
90
+
91
+ expect(wrapper.attributes('role')).toBe('status');
92
+ });
93
+
94
+ it('should have role value as custom value passed', () => {
95
+ const role = 'dialog';
96
+ createComponent({ attrs: { role } });
97
+
98
+ expect(wrapper.attributes('role')).toBe(role);
99
+ });
100
+ });
86
101
  });
@@ -63,7 +63,7 @@ export default {
63
63
  };
64
64
  </script>
65
65
  <template>
66
- <component :is="rootElementType" class="gl-spinner-container">
66
+ <component :is="rootElementType" class="gl-spinner-container" role="status">
67
67
  <span :class="cssClasses" class="align-text-bottom" :aria-label="label"></span>
68
68
  </component>
69
69
  </template>
@@ -67,6 +67,11 @@ $gl-popover-max-width: $grid-size * 35;
67
67
  @include gl-font-sm;
68
68
  @include gl-font-weight-bold;
69
69
  @include gl-m-0;
70
+
71
+ .gl-button.close {
72
+ margin-top: -$gl-spacing-scale-3;
73
+ margin-right: -$gl-spacing-scale-4;
74
+ }
70
75
  }
71
76
 
72
77
  .popover-body {
@@ -96,14 +96,22 @@ export default {
96
96
  </script>
97
97
 
98
98
  <template>
99
- <section class="row" :class="{ 'empty-state text-center': !compact }">
100
- <div :class="{ 'col-3 d-none d-sm-block': compact, 'col-12': !compact }">
99
+ <section
100
+ class="gl-display-flex gl-flex-wrap"
101
+ :class="{
102
+ 'empty-state gl-text-center gl-flex-direction-column': !compact,
103
+ 'gl-flex-direction-row': compact,
104
+ }"
105
+ >
106
+ <div
107
+ :class="{ 'gl-display-none gl-sm-display-block gl-px-4': compact, 'gl-max-w-full': !compact }"
108
+ >
101
109
  <div v-if="svgPath" :class="{ 'svg-content': !compact }" class="svg-250">
102
110
  <img :src="svgPath" alt="" role="img" class="gl-max-w-full" :height="height" />
103
111
  </div>
104
112
  </div>
105
- <div :class="compact ? 'col-sm-9' : 'col-12'">
106
- <div class="text-content gl-mx-auto gl-my-0" :class="{ 'gl-p-5': !compact }">
113
+ <div :class="compact ? 'gl-flex-grow-1 gl-flex-basis-0 gl-px-4' : 'gl-max-w-full gl-m-auto'">
114
+ <div class="gl-mx-auto gl-my-0" :class="{ 'gl-p-5': !compact }">
107
115
  <h1
108
116
  ref="title"
109
117
  class="gl-font-size-h-display gl-line-height-36"
@@ -3306,6 +3306,12 @@
3306
3306
  mask-position: center !important;
3307
3307
  mask-size: cover !important
3308
3308
  }
3309
+ .gl-mix-blend-mode-luminosity {
3310
+ mix-blend-mode: luminosity
3311
+ }
3312
+ .gl-mix-blend-mode-luminosity\! {
3313
+ mix-blend-mode: luminosity !important
3314
+ }
3309
3315
  .gl-opacity-0 {
3310
3316
  opacity: 0
3311
3317
  }
@@ -29,6 +29,7 @@
29
29
  @import './grid';
30
30
  @import './list-style';
31
31
  @import './masks';
32
+ @import './mix-blend-mode';
32
33
  @import './opacity';
33
34
  @import './outline';
34
35
  @import './overflow';
@@ -0,0 +1,3 @@
1
+ @mixin gl-mix-blend-mode-luminosity {
2
+ mix-blend-mode: luminosity;
3
+ }