@gitlab/ui 39.5.1 → 39.7.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 +21 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +1 -1
- package/scss_to_js/scss_variables.js +1 -1
- package/scss_to_js/scss_variables.json +1 -1
- package/src/components/base/markdown/markdown.scss +4 -6
- package/src/components/base/markdown/markdown_typescale_demo.html +28 -1
- package/src/components/base/tabs/tabs/tabs.scss +0 -1
- package/src/components/base/tabs/tabs/tabs.stories.js +8 -17
- package/src/scss/typescale/_index.scss +9 -0
- package/src/scss/typescale/typescale_demo.html +34 -0
- package/src/scss/utilities.scss +8 -0
- package/src/scss/utility-mixins/box-shadow.scss +4 -0
- package/src/scss/variables.scss +1 -1
package/package.json
CHANGED
|
@@ -318,7 +318,7 @@ export const glModalLargeWidth = '61.875rem'
|
|
|
318
318
|
export const modalHeaderBorderColor = '#bfbfbf'
|
|
319
319
|
export const modalFooterBorderColor = '#bfbfbf'
|
|
320
320
|
export const modalTitleLineHeight = '1.25rem'
|
|
321
|
-
export const
|
|
321
|
+
export const modalBackdropBg = '#000'
|
|
322
322
|
export const modalBackdropOpacity = '0.64'
|
|
323
323
|
export const bodyColor = '#303030'
|
|
324
324
|
export const secondary = '#f0f0f0'
|
|
@@ -131,14 +131,12 @@
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
blockquote {
|
|
134
|
-
@include gl-text-gray-
|
|
134
|
+
@include gl-text-gray-700;
|
|
135
135
|
@include gl-py-3;
|
|
136
|
-
@include gl-
|
|
137
|
-
@include gl-my-
|
|
136
|
+
@include gl-pl-6;
|
|
137
|
+
@include gl-my-3;
|
|
138
138
|
@include gl-mx-0;
|
|
139
|
-
@include gl-border-l-
|
|
140
|
-
@include gl-border-l-4;
|
|
141
|
-
@include gl-border-l-gray-100;
|
|
139
|
+
@include gl-inset-border-l-4-gray-100;
|
|
142
140
|
}
|
|
143
141
|
|
|
144
142
|
.idiff {
|
|
@@ -34,6 +34,33 @@
|
|
|
34
34
|
requests, milestones, snippets and more.
|
|
35
35
|
</p>
|
|
36
36
|
</blockquote>
|
|
37
|
+
<blockquote>
|
|
38
|
+
<ul>
|
|
39
|
+
<li>Blockquote list item 1</li>
|
|
40
|
+
<li>Blockquote list item 2</li>
|
|
41
|
+
</ul>
|
|
42
|
+
</blockquote>
|
|
43
|
+
<blockquote>
|
|
44
|
+
<table>
|
|
45
|
+
<thead>
|
|
46
|
+
<tr>
|
|
47
|
+
<th>header</th>
|
|
48
|
+
</tr>
|
|
49
|
+
</thead>
|
|
50
|
+
<tbody>
|
|
51
|
+
<tr>
|
|
52
|
+
<td>cell</td>
|
|
53
|
+
</tr>
|
|
54
|
+
</tbody>
|
|
55
|
+
</table>
|
|
56
|
+
</blockquote>
|
|
57
|
+
<blockquote>
|
|
58
|
+
<blockquote>
|
|
59
|
+
<p>
|
|
60
|
+
Nested blockquote
|
|
61
|
+
</p>
|
|
62
|
+
</blockquote>
|
|
63
|
+
</blockquote>
|
|
37
64
|
<p>
|
|
38
65
|
This is a paragraph with two types inline diff <span class="idiff addition">addition</span> and
|
|
39
66
|
<span class="idiff deletion">deletion</span>
|
|
@@ -51,4 +78,4 @@
|
|
|
51
78
|
<a href="file.mp3" target="_blank" rel="noopener noreferrer" title="Download file.mp3" data-canonical-src="file.mp3"
|
|
52
79
|
data-link="true" class="gfm">file.mp3</a>
|
|
53
80
|
</span>
|
|
54
|
-
</p>
|
|
81
|
+
</p>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { range } from 'lodash';
|
|
2
2
|
import { GlTabs, GlTab, GlScrollableTabs, GlBadge } from '../../../../index';
|
|
3
|
+
import { badgeVariantOptions } from '../../../../utils/constants';
|
|
3
4
|
import readme from './tabs.md';
|
|
4
5
|
|
|
5
6
|
const components = {
|
|
@@ -152,28 +153,18 @@ export const WithCounterBadges = (_args, { argTypes }) => ({
|
|
|
152
153
|
props: Object.keys(argTypes),
|
|
153
154
|
components: { ...components, GlBadge },
|
|
154
155
|
template: wrap(`
|
|
155
|
-
<gl-tab
|
|
156
|
+
<gl-tab
|
|
157
|
+
v-for="variant in $options.badgeVariantOptions"
|
|
158
|
+
:key="variant"
|
|
159
|
+
>
|
|
156
160
|
<template #title>
|
|
157
161
|
<span>Tab</span>
|
|
158
|
-
<gl-badge size="sm" class="gl-tab-counter-badge">500</gl-badge>
|
|
162
|
+
<gl-badge size="sm" class="gl-tab-counter-badge" :variant="variant">500</gl-badge>
|
|
159
163
|
<span class="sr-only">items</span>
|
|
160
164
|
</template>
|
|
161
|
-
Tab panel
|
|
162
|
-
</gl-tab>
|
|
163
|
-
<gl-tab>
|
|
164
|
-
<template #title>
|
|
165
|
-
<span>Tab</span>
|
|
166
|
-
<gl-badge size="sm" class="gl-tab-counter-badge">250</gl-badge>
|
|
167
|
-
<span class="sr-only">items</span>
|
|
168
|
-
</template>
|
|
169
|
-
Tab panel 2
|
|
170
|
-
</gl-tab>
|
|
171
|
-
<gl-tab>
|
|
172
|
-
<template #title>
|
|
173
|
-
<span>Tab</span>
|
|
174
|
-
</template>
|
|
175
|
-
Tab panel 3
|
|
165
|
+
Tab panel {{ variant }}
|
|
176
166
|
</gl-tab>`),
|
|
167
|
+
badgeVariantOptions,
|
|
177
168
|
});
|
|
178
169
|
|
|
179
170
|
export const WithActions = (_args, { argTypes }) => ({
|
|
@@ -42,3 +42,37 @@
|
|
|
42
42
|
<p>UI Paragraph • GitLab uses "GitLab Flavored Markdown" (GFM). It extends the standard Markdown in a few significant
|
|
43
43
|
ways to add some useful functionality. You can use GFM in the following areas: comments, issues, merge requests,
|
|
44
44
|
milestones, snippets and more.</p>
|
|
45
|
+
<blockquote>
|
|
46
|
+
<p>
|
|
47
|
+
MD Doc Blockquote • GitLab uses "GitLab Flavored Markdown" (GFM). It extends the standard Markdown in a few
|
|
48
|
+
significant ways to add some useful functionality. You can use GFM in the following areas: comments, issues, merge
|
|
49
|
+
requests, milestones, snippets and more.
|
|
50
|
+
</p>
|
|
51
|
+
</blockquote>
|
|
52
|
+
<blockquote>
|
|
53
|
+
<ul>
|
|
54
|
+
<li>Blockquote list item 1</li>
|
|
55
|
+
<li>Blockquote list item 2</li>
|
|
56
|
+
</ul>
|
|
57
|
+
</blockquote>
|
|
58
|
+
<blockquote>
|
|
59
|
+
<table>
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th>header</th>
|
|
63
|
+
</tr>
|
|
64
|
+
</thead>
|
|
65
|
+
<tbody>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>cell</td>
|
|
68
|
+
</tr>
|
|
69
|
+
</tbody>
|
|
70
|
+
</table>
|
|
71
|
+
</blockquote>
|
|
72
|
+
<blockquote>
|
|
73
|
+
<blockquote>
|
|
74
|
+
<p>
|
|
75
|
+
Nested blockquote
|
|
76
|
+
</p>
|
|
77
|
+
</blockquote>
|
|
78
|
+
</blockquote>
|
package/src/scss/utilities.scss
CHANGED
|
@@ -1768,6 +1768,14 @@
|
|
|
1768
1768
|
box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $gray-100 !important
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
|
+
.gl-inset-border-l-4-gray-100 {
|
|
1772
|
+
box-shadow: inset #{$gl-border-size-4} 0 0 0 $gray-100
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
.gl-inset-border-l-4-gray-100\! {
|
|
1776
|
+
box-shadow: inset #{$gl-border-size-4} 0 0 0 $gray-100 !important
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1771
1779
|
.gl-inset-border-b-1-gray-200 {
|
|
1772
1780
|
box-shadow: inset 0 -#{$gl-border-size-1} 0 0 $gray-200
|
|
1773
1781
|
}
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $gray-100;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
@mixin gl-inset-border-l-4-gray-100 {
|
|
44
|
+
box-shadow: inset #{$gl-border-size-4} 0 0 0 $gray-100;
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
@mixin gl-inset-border-b-1-gray-200 {
|
|
44
48
|
box-shadow: inset 0 -#{$gl-border-size-1} 0 0 $gray-200;
|
|
45
49
|
}
|
package/src/scss/variables.scss
CHANGED
|
@@ -461,7 +461,7 @@ $gl-modal-large-width: px-to-rem(990px);
|
|
|
461
461
|
$modal-header-border-color: $gray-200;
|
|
462
462
|
$modal-footer-border-color: $gray-200;
|
|
463
463
|
$modal-title-line-height: $gl-line-height-20;
|
|
464
|
-
$modal-backdrop: #000;
|
|
464
|
+
$modal-backdrop-bg: #000;
|
|
465
465
|
$modal-backdrop-opacity: 0.64;
|
|
466
466
|
|
|
467
467
|
// Bootstrap overrides
|