@gitlab/ui 39.5.0 → 39.6.1
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/components/base/filtered_search/filtered_search_term.js +2 -1
- package/dist/components/base/filtered_search/filtered_search_token.js +3 -2
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +3 -2
- 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/filtered_search/filtered_search_term.vue +9 -1
- package/src/components/base/filtered_search/filtered_search_token.vue +16 -3
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +5 -4
- package/src/components/base/markdown/markdown.scss +4 -6
- package/src/components/base/markdown/markdown_typescale_demo.html +28 -1
- 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'
|
|
@@ -65,7 +65,8 @@ export default {
|
|
|
65
65
|
},
|
|
66
66
|
cursorPosition: {
|
|
67
67
|
type: String,
|
|
68
|
-
required:
|
|
68
|
+
required: false,
|
|
69
|
+
default: 'end',
|
|
69
70
|
validator: (value) => ['start', 'end'].includes(value),
|
|
70
71
|
},
|
|
71
72
|
},
|
|
@@ -111,24 +112,29 @@ export default {
|
|
|
111
112
|
Emitted when this term token is clicked.
|
|
112
113
|
@event activate
|
|
113
114
|
-->
|
|
115
|
+
|
|
114
116
|
<!--
|
|
115
117
|
Emitted when this term token will lose its focus.
|
|
116
118
|
@event deactivate
|
|
117
119
|
-->
|
|
120
|
+
|
|
118
121
|
<!--
|
|
119
122
|
Emitted when autocomplete entry is selected.
|
|
120
123
|
@event replace
|
|
121
124
|
@property {object} token Replacement token configuration.
|
|
122
125
|
-->
|
|
126
|
+
|
|
123
127
|
<!--
|
|
124
128
|
Emitted when the token is submitted.
|
|
125
129
|
@event submit
|
|
126
130
|
-->
|
|
131
|
+
|
|
127
132
|
<!--
|
|
128
133
|
Emitted when Space is pressed in-between term text.
|
|
129
134
|
@event split
|
|
130
135
|
@property {array} newTokens Token configurations
|
|
131
136
|
-->
|
|
137
|
+
|
|
132
138
|
<gl-filtered-search-token-segment
|
|
133
139
|
ref="segment"
|
|
134
140
|
v-model="internalValue"
|
|
@@ -158,6 +164,7 @@ export default {
|
|
|
158
164
|
{{ item.title }}
|
|
159
165
|
</gl-filtered-search-suggestion>
|
|
160
166
|
</template>
|
|
167
|
+
|
|
161
168
|
<template #view>
|
|
162
169
|
<input
|
|
163
170
|
v-if="placeholder"
|
|
@@ -167,6 +174,7 @@ export default {
|
|
|
167
174
|
:aria-label="placeholder"
|
|
168
175
|
data-testid="filtered-search-term-input"
|
|
169
176
|
/>
|
|
177
|
+
|
|
170
178
|
<template v-else>{{ value.data }}</template>
|
|
171
179
|
</template>
|
|
172
180
|
</gl-filtered-search-token-segment>
|
|
@@ -67,7 +67,8 @@ export default {
|
|
|
67
67
|
},
|
|
68
68
|
cursorPosition: {
|
|
69
69
|
type: String,
|
|
70
|
-
required:
|
|
70
|
+
required: false,
|
|
71
|
+
default: 'end',
|
|
71
72
|
validator: (value) => ['start', 'end'].includes(value),
|
|
72
73
|
},
|
|
73
74
|
},
|
|
@@ -299,6 +300,7 @@ export default {
|
|
|
299
300
|
Emitted when the token is submitted.
|
|
300
301
|
@event submit
|
|
301
302
|
-->
|
|
303
|
+
|
|
302
304
|
<gl-filtered-search-token-segment
|
|
303
305
|
key="title-segment"
|
|
304
306
|
:value="config.title"
|
|
@@ -318,10 +320,12 @@ export default {
|
|
|
318
320
|
class="gl-filtered-search-token-type"
|
|
319
321
|
:class="getAdditionalSegmentClasses($options.segments.SEGMENT_TITLE)"
|
|
320
322
|
view-only
|
|
321
|
-
>{{ inputValue }}</gl-token
|
|
322
323
|
>
|
|
324
|
+
{{ inputValue }}
|
|
325
|
+
</gl-token>
|
|
323
326
|
</template>
|
|
324
327
|
</gl-filtered-search-token-segment>
|
|
328
|
+
|
|
325
329
|
<gl-filtered-search-token-segment
|
|
326
330
|
key="operator-segment"
|
|
327
331
|
v-model="tokenValue.operator"
|
|
@@ -343,9 +347,11 @@ export default {
|
|
|
343
347
|
variant="search-value"
|
|
344
348
|
:class="getAdditionalSegmentClasses($options.segments.SEGMENT_OPERATOR)"
|
|
345
349
|
view-only
|
|
346
|
-
>{{ operatorDescription }}</gl-token
|
|
347
350
|
>
|
|
351
|
+
{{ operatorDescription }}
|
|
352
|
+
</gl-token>
|
|
348
353
|
</template>
|
|
354
|
+
|
|
349
355
|
<template #option="{ option }">
|
|
350
356
|
<div class="gl-display-flex">
|
|
351
357
|
{{ option.value }}
|
|
@@ -355,16 +361,19 @@ export default {
|
|
|
355
361
|
</div>
|
|
356
362
|
</template>
|
|
357
363
|
</gl-filtered-search-token-segment>
|
|
364
|
+
|
|
358
365
|
<!--
|
|
359
366
|
Emitted when a suggestion has been selected.
|
|
360
367
|
@event select
|
|
361
368
|
@type {string} value The value of the selected suggestion.
|
|
362
369
|
-->
|
|
370
|
+
|
|
363
371
|
<!--
|
|
364
372
|
Emitted when Space is pressed in-between term text.
|
|
365
373
|
@event split
|
|
366
374
|
@property {array} newTokens Token configurations
|
|
367
375
|
-->
|
|
376
|
+
|
|
368
377
|
<gl-filtered-search-token-segment
|
|
369
378
|
v-if="hasDataOrDataSegmentIsCurrentlyActive"
|
|
370
379
|
key="data-segment"
|
|
@@ -386,10 +395,13 @@ export default {
|
|
|
386
395
|
>
|
|
387
396
|
<template #suggestions>
|
|
388
397
|
<!-- @slot The suggestions (implemented with GlFilteredSearchSuggestion). -->
|
|
398
|
+
|
|
389
399
|
<slot name="suggestions"></slot>
|
|
390
400
|
</template>
|
|
401
|
+
|
|
391
402
|
<template #view="{ inputValue }">
|
|
392
403
|
<!-- @slot Used to customize how the token is rendered. -->
|
|
404
|
+
|
|
393
405
|
<slot
|
|
394
406
|
name="view-token"
|
|
395
407
|
v-bind="{
|
|
@@ -412,6 +424,7 @@ export default {
|
|
|
412
424
|
@slot Template for token value in inactive state
|
|
413
425
|
@binding {array} suggestions Slot for rendering autocomplete suggestions when no options are provided.
|
|
414
426
|
-->
|
|
427
|
+
|
|
415
428
|
<slot name="view" v-bind="{ inputValue }">{{ inputValue }}</slot>
|
|
416
429
|
</span>
|
|
417
430
|
</gl-token>
|
|
@@ -79,7 +79,8 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
cursorPosition: {
|
|
81
81
|
type: String,
|
|
82
|
-
required:
|
|
82
|
+
required: false,
|
|
83
|
+
default: 'end',
|
|
83
84
|
validator: (value) => ['start', 'end'].includes(value),
|
|
84
85
|
},
|
|
85
86
|
},
|
|
@@ -346,6 +347,7 @@ export default {
|
|
|
346
347
|
@keydown="handleInputKeydown"
|
|
347
348
|
@blur="handleBlur"
|
|
348
349
|
/>
|
|
350
|
+
|
|
349
351
|
<portal :key="`operator-${_uid}`" :to="portalName">
|
|
350
352
|
<gl-filtered-search-suggestion-list
|
|
351
353
|
v-if="hasOptionsOrSuggestions"
|
|
@@ -361,11 +363,10 @@ export default {
|
|
|
361
363
|
:value="option.value"
|
|
362
364
|
:icon-name="option.icon"
|
|
363
365
|
>
|
|
364
|
-
<slot name="option" v-bind="{ option }">
|
|
365
|
-
{{ option[optionTextField] }}
|
|
366
|
-
</slot>
|
|
366
|
+
<slot name="option" v-bind="{ option }"> {{ option[optionTextField] }} </slot>
|
|
367
367
|
</gl-filtered-search-suggestion>
|
|
368
368
|
</template>
|
|
369
|
+
|
|
369
370
|
<slot v-else name="suggestions"></slot>
|
|
370
371
|
</gl-filtered-search-suggestion-list>
|
|
371
372
|
</portal>
|
|
@@ -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>
|
|
@@ -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
|