@gitlab/ui 40.2.2 → 40.3.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": "40.2.2",
3
+ "version": "40.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -181,6 +181,31 @@
181
181
  }
182
182
  }
183
183
  }
184
+
185
+ table {
186
+ @include gl-my-7;
187
+
188
+ th,
189
+ td {
190
+ @include gl-px-3;
191
+ @include gl-py-4;
192
+ @include gl-inset-border-b-1-gray-100;
193
+ @include gl-vertical-align-top;
194
+ }
195
+
196
+ th {
197
+ @include gl-inset-border-y-1-gray-100;
198
+ @include gl-font-weight-bold;
199
+ }
200
+
201
+ thead {
202
+ @include gl-bg-gray-50;
203
+ }
204
+
205
+ tr:nth-child(even) {
206
+ @include gl-bg-gray-10;
207
+ }
208
+ }
184
209
  }
185
210
 
186
211
  .gl-compact-markdown {
@@ -262,4 +287,11 @@
262
287
  @include gl-font-size-monospace-sm;
263
288
  }
264
289
  }
290
+
291
+ table {
292
+ th,
293
+ td {
294
+ @include gl-py-3;
295
+ }
296
+ }
265
297
  }
@@ -3,7 +3,7 @@ import GlMarkdown from './markdown.vue';
3
3
  import markdownTypescaleDemoContent from './markdown_typescale_demo.html';
4
4
 
5
5
  const template = `
6
- <gl-markdown :compact="compact">${markdownTypescaleDemoContent}</gl-markdown>
6
+ <gl-markdown :compact="compact">${markdownTypescaleDemoContent}</gl-markdown>
7
7
  `;
8
8
 
9
9
  const generateProps = ({ compact = false } = {}) => ({ compact });
@@ -14,8 +14,11 @@ const Template = (args, { argTypes }) => ({
14
14
  template,
15
15
  });
16
16
 
17
- export const Typescale = Template.bind({});
18
- Typescale.args = generateProps();
17
+ export const Documentation = Template.bind({});
18
+ Documentation.args = generateProps();
19
+
20
+ export const Compact = Template.bind({});
21
+ Compact.args = generateProps({ compact: true });
19
22
 
20
23
  export default {
21
24
  title: 'base/markdown',
@@ -27,6 +27,52 @@
27
27
  <p>MD Doc Paragraph • GitLab uses "GitLab Flavored Markdown" (GFM). It extends the standard Markdown in a few
28
28
  significant ways to add some useful functionality. You can use GFM in the following areas: comments, issues, merge
29
29
  requests, milestones, snippets and more.</p>
30
+
31
+ <table>
32
+ <thead>
33
+ <tr>
34
+ <th>Widget</th>
35
+ <th>Wording</th>
36
+ <th>Proposed</th>
37
+ </tr>
38
+ </thead>
39
+ <tbody>
40
+ <tr>
41
+ <td>
42
+ Test summary
43
+ </td>
44
+ <td>
45
+ Test summary contained 3 failed, 1 fixed test result out of 15 total tests
46
+ </td>
47
+ <td>
48
+ This is the only one that doesn't include the breakdown in the Level 1 subtext. Does it need to be updated?
49
+ </td>
50
+ </tr>
51
+ <tr>
52
+ <td>
53
+ Browser performance
54
+ </td>
55
+ <td>
56
+ Browser performance test metrics: 7 changes
57
+ </td>
58
+ <td>
59
+ Browser performance test metrics detected 7 changes
60
+ </td>
61
+ </tr>
62
+ <tr>
63
+ <td>
64
+ Load performance
65
+ </td>
66
+ <td>
67
+ Load performance test metrics detected 4 changes
68
+ </td>
69
+ <td>
70
+
71
+ </td>
72
+ </tr>
73
+ </tbody>
74
+ </table>
75
+
30
76
  <blockquote>
31
77
  <p>
32
78
  MD Doc Blockquote • GitLab uses "GitLab Flavored Markdown" (GFM). It extends the standard Markdown in a few
@@ -1760,6 +1760,24 @@
1760
1760
  inset 0 -#{$gl-border-size-1} 0 0 $gray-200 !important
1761
1761
  }
1762
1762
 
1763
+ .gl-inset-border-y-1-gray-100 {
1764
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-100,
1765
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-100
1766
+ }
1767
+
1768
+ .gl-inset-border-y-1-gray-100\! {
1769
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-100,
1770
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-100 !important
1771
+ }
1772
+
1773
+ .gl-inset-border-b-1-gray-100 {
1774
+ box-shadow: inset 0 -#{$gl-border-size-1} 0 0 $gray-100
1775
+ }
1776
+
1777
+ .gl-inset-border-b-1-gray-100\! {
1778
+ box-shadow: inset 0 -#{$gl-border-size-1} 0 0 $gray-100 !important
1779
+ }
1780
+
1763
1781
  .gl-inset-border-b-2-gray-100 {
1764
1782
  box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $gray-100
1765
1783
  }
@@ -36,6 +36,15 @@
36
36
  inset 0 -#{$gl-border-size-1} 0 0 $gray-200;
37
37
  }
38
38
 
39
+ @mixin gl-inset-border-y-1-gray-100 {
40
+ box-shadow: inset 0 #{$gl-border-size-1} 0 0 $gray-100,
41
+ inset 0 -#{$gl-border-size-1} 0 0 $gray-100;
42
+ }
43
+
44
+ @mixin gl-inset-border-b-1-gray-100 {
45
+ box-shadow: inset 0 -#{$gl-border-size-1} 0 0 $gray-100;
46
+ }
47
+
39
48
  @mixin gl-inset-border-b-2-gray-100 {
40
49
  box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $gray-100;
41
50
  }