@gitlab/ui 39.3.1 → 39.3.2

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": "39.3.1",
3
+ "version": "39.3.2",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -82,7 +82,7 @@
82
82
  "@babel/preset-env": "^7.10.2",
83
83
  "@gitlab/eslint-plugin": "12.0.1",
84
84
  "@gitlab/stylelint-config": "4.0.0",
85
- "@gitlab/svgs": "2.10.0",
85
+ "@gitlab/svgs": "2.11.0",
86
86
  "@rollup/plugin-commonjs": "^11.1.0",
87
87
  "@rollup/plugin-node-resolve": "^7.1.3",
88
88
  "@rollup/plugin-replace": "^2.3.2",
@@ -27,6 +27,7 @@ export const limitedLayoutWidth = '990px'
27
27
  export const black = '#000'
28
28
  export const blackNormal = '#333'
29
29
  export const white = '#fff'
30
+ export const whiteContrast = '#fff'
30
31
  export const whiteNormal = '#f0f0f0'
31
32
  export const whiteDark = '#eaeaea'
32
33
  export const whiteTransparent = 'rgba(255, 255, 255, 0.8)'
@@ -172,6 +172,11 @@
172
172
  "value": "#fff",
173
173
  "compiledValue": "#fff"
174
174
  },
175
+ {
176
+ "name": "$white-contrast",
177
+ "value": "#fff",
178
+ "compiledValue": "#fff"
179
+ },
175
180
  {
176
181
  "name": "$white-normal",
177
182
  "value": "#f0f0f0",
@@ -2,6 +2,7 @@ import Vue from 'vue';
2
2
  import { GlAvatarLabeled, GlBadge } from '../../../index';
3
3
  import { GlTooltipDirective } from '../../../directives/tooltip';
4
4
  import { avatarSizeOptions, avatarShapeOptions, tooltipPlacements } from '../../../utils/constants';
5
+ import avatarPath from '../../../../static/img/avatar.png';
5
6
  import readme from './avatar_labeled.md';
6
7
 
7
8
  Vue.directive('gl-tooltip', GlTooltipDirective);
@@ -13,7 +14,7 @@ const generateProps = ({
13
14
  subLabel = '@gitlab',
14
15
  size = 32,
15
16
  shape = 'circle',
16
- src = 'https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64',
17
+ src = avatarPath,
17
18
  } = {}) => ({
18
19
  label,
19
20
  subLabel,
@@ -1,5 +1,6 @@
1
1
  import { GlAvatarLink, GlAvatar, GlAvatarLabeled } from '../../../index';
2
2
  import { avatarSizeOptions, avatarShapeOptions } from '../../../utils/constants';
3
+ import avatarPath from '../../../../static/img/avatar.png';
3
4
  import readme from './avatar_link.md';
4
5
 
5
6
  const components = { GlAvatarLink, GlAvatar, GlAvatarLabeled };
@@ -19,9 +20,7 @@ const generateLabelsProps = ({ label = 'GitLab User', subLabel = '@gitlab' } = {
19
20
  subLabel,
20
21
  });
21
22
 
22
- const generateImageProps = ({
23
- src = 'https://assets.gitlab-static.net/uploads/-/system/project/avatar/278964/logo-extra-whitespace.png?width=64',
24
- } = {}) => ({
23
+ const generateImageProps = ({ src = avatarPath } = {}) => ({
25
24
  src,
26
25
  });
27
26
 
@@ -18,7 +18,7 @@ to draw a `/`
18
18
  <img
19
19
  alt=""
20
20
  class="gl-breadcrumb-avatar-tile"
21
- src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=16"
21
+ src="/path/to/image.png"
22
22
  width="16"
23
23
  height="16"
24
24
  />
@@ -1,4 +1,5 @@
1
1
  import { GlBreadcrumb } from '../../../index';
2
+ import avatarPath from '../../../../static/img/avatar.png';
2
3
  import readme from './breadcrumb.md';
3
4
 
4
5
  const template = `
@@ -7,7 +8,7 @@ const template = `
7
8
  >
8
9
  <template #avatar>
9
10
  <img alt=""
10
- class="gl-breadcrumb-avatar-tile" src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=16"
11
+ class="gl-breadcrumb-avatar-tile" src="${avatarPath}"
11
12
  width="16"
12
13
  height="16" />
13
14
  </template>
@@ -1,5 +1,5 @@
1
1
  .gl-broadcast-message {
2
- @include gl-text-white;
2
+ @include gl-text-contrast-light;
3
3
  @include gl-display-flex;
4
4
  @include gl-justify-content-space-between;
5
5
  @include gl-align-items-flex-start;
@@ -136,7 +136,7 @@
136
136
  &.btn-success,
137
137
  &.btn-danger,
138
138
  &.btn-warning {
139
- @include gl-text-white;
139
+ @include gl-text-contrast-light;
140
140
  }
141
141
 
142
142
  &.btn-confirm,
@@ -2061,6 +2061,14 @@
2061
2061
  color: $white !important;
2062
2062
  }
2063
2063
 
2064
+ .gl-text-contrast-light {
2065
+ color: $white-contrast;
2066
+ }
2067
+
2068
+ .gl-text-contrast-light\! {
2069
+ color: $white-contrast !important;
2070
+ }
2071
+
2064
2072
  .gl-text-body {
2065
2073
  color: $body-color;
2066
2074
  }
@@ -19,6 +19,10 @@
19
19
  color: $white;
20
20
  }
21
21
 
22
+ @mixin gl-text-contrast-light {
23
+ color: $white-contrast;
24
+ }
25
+
22
26
  @mixin gl-text-body {
23
27
  color: $body-color;
24
28
  }
@@ -45,6 +45,7 @@ $black: #000 !default;
45
45
  $black-normal: #333 !default;
46
46
 
47
47
  $white: #fff !default;
48
+ $white-contrast: #fff !default;
48
49
  $white-normal: #f0f0f0 !default;
49
50
  $white-dark: #eaeaea !default;
50
51
  $white-transparent: rgba(255, 255, 255, 0.8) !default;