@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "39.5.0",
3
+ "version": "39.6.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -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 modalBackdrop = '#000'
321
+ export const modalBackdropBg = '#000'
322
322
  export const modalBackdropOpacity = '0.64'
323
323
  export const bodyColor = '#303030'
324
324
  export const secondary = '#f0f0f0'
@@ -1673,7 +1673,7 @@
1673
1673
  "compiledValue": "1.25rem"
1674
1674
  },
1675
1675
  {
1676
- "name": "$modal-backdrop",
1676
+ "name": "$modal-backdrop-bg",
1677
1677
  "value": "#000",
1678
1678
  "compiledValue": "#000"
1679
1679
  },
@@ -65,7 +65,8 @@ export default {
65
65
  },
66
66
  cursorPosition: {
67
67
  type: String,
68
- required: true,
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: true,
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: true,
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-500;
134
+ @include gl-text-gray-700;
135
135
  @include gl-py-3;
136
- @include gl-px-6;
137
- @include gl-my-5;
136
+ @include gl-pl-6;
137
+ @include gl-my-3;
138
138
  @include gl-mx-0;
139
- @include gl-border-l-solid;
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>
@@ -108,4 +108,13 @@
108
108
  @include gl-line-height-24;
109
109
  }
110
110
  }
111
+
112
+ blockquote {
113
+ @include gl-text-gray-700;
114
+ @include gl-py-3;
115
+ @include gl-pl-6;
116
+ @include gl-my-3;
117
+ @include gl-mx-0;
118
+ @include gl-inset-border-l-4-gray-100;
119
+ }
111
120
  }
@@ -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>
@@ -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
  }
@@ -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