@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "39.5.1",
3
+ "version": "39.7.0",
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
  },
@@ -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>
@@ -37,7 +37,6 @@
37
37
 
38
38
  > .gl-tab-counter-badge {
39
39
  font-weight: inherit;
40
- color: inherit;
41
40
  @include gl-ml-2;
42
41
  }
43
42
  }
@@ -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 1
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 }) => ({
@@ -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