@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/CHANGELOG.md +7 -0
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +2 -2
- package/scss_to_js/scss_variables.js +1 -0
- package/scss_to_js/scss_variables.json +5 -0
- package/src/components/base/avatar_labeled/avatar_labeled.stories.js +2 -1
- package/src/components/base/avatar_link/avatar_link.stories.js +2 -3
- package/src/components/base/breadcrumb/breadcrumb.md +1 -1
- package/src/components/base/breadcrumb/breadcrumb.stories.js +2 -1
- package/src/components/base/broadcast_message/broadcast_message.scss +1 -1
- package/src/components/base/button/button.scss +1 -1
- package/src/scss/utilities.scss +8 -0
- package/src/scss/utility-mixins/color.scss +4 -0
- package/src/scss/variables.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "39.3.
|
|
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.
|
|
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)'
|
|
@@ -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 =
|
|
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
|
|
|
@@ -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="
|
|
11
|
+
class="gl-breadcrumb-avatar-tile" src="${avatarPath}"
|
|
11
12
|
width="16"
|
|
12
13
|
height="16" />
|
|
13
14
|
</template>
|
package/src/scss/utilities.scss
CHANGED
|
@@ -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
|
}
|
package/src/scss/variables.scss
CHANGED