@gitlab/ui 109.2.1 → 110.1.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 +20 -0
- package/dist/charts.js +0 -1
- package/dist/components/charts/area/area.js +1 -1
- package/dist/components/charts/bar/bar.js +2 -2
- package/dist/components/charts/column/column.js +1 -1
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +2 -2
- package/dist/components/charts/heatmap/heatmap.js +2 -2
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/{tooltip → shared/tooltip}/tooltip.js +6 -6
- package/dist/components/{shared_components/charts → charts/shared/tooltip/tooltip_default_format}/tooltip_default_format.js +1 -1
- package/dist/components/charts/sparkline/sparkline.js +1 -1
- package/dist/components/charts/stacked_column/stacked_column.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/src/charts.js +0 -1
- package/src/components/charts/area/area.vue +1 -1
- package/src/components/charts/bar/bar.vue +2 -2
- package/src/components/charts/column/column.vue +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +2 -2
- package/src/components/charts/heatmap/heatmap.vue +2 -2
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/{tooltip → shared/tooltip}/tooltip.vue +7 -6
- package/src/components/{shared_components/charts → charts/shared/tooltip/tooltip_default_format}/tooltip_default_format.vue +1 -1
- package/src/components/charts/sparkline/sparkline.vue +1 -1
- package/src/components/charts/stacked_column/stacked_column.vue +2 -2
- package/src/scss/components.scss +2 -2
- package/src/scss/typography.scss +17 -0
- package/src/vendor/bootstrap/scss/_tables.scss +0 -28
- /package/src/components/charts/{tooltip → shared/tooltip}/tooltip.md +0 -0
- /package/src/components/charts/{tooltip → shared/tooltip}/tooltip.scss +0 -0
- /package/src/components/{shared_components/charts → charts/shared/tooltip/tooltip_default_format}/tooltip_default_format.scss +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "110.1.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"eslint-formatter-gitlab": "^5.1.0",
|
|
156
156
|
"eslint-import-resolver-jest": "3.0.2",
|
|
157
157
|
"eslint-plugin-cypress": "3.6.0",
|
|
158
|
-
"eslint-plugin-storybook": "0.11.
|
|
158
|
+
"eslint-plugin-storybook": "0.11.4",
|
|
159
159
|
"fuse.js": "^7.0.0",
|
|
160
160
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
161
161
|
"glob": "10.3.3",
|
package/src/charts.js
CHANGED
|
@@ -5,7 +5,6 @@ export { default as GlGaugeChart } from './components/charts/gauge/gauge.vue';
|
|
|
5
5
|
export { default as GlLineChart } from './components/charts/line/line.vue';
|
|
6
6
|
export { default as GlChartLegend } from './components/charts/legend/legend.vue';
|
|
7
7
|
export { default as GlChartSeriesLabel } from './components/charts/series_label/series_label.vue';
|
|
8
|
-
export { default as GlChartTooltip } from './components/charts/tooltip/tooltip.vue';
|
|
9
8
|
export { default as GlHeatmap } from './components/charts/heatmap';
|
|
10
9
|
export { default as GlColumnChart } from './components/charts/column/column.vue';
|
|
11
10
|
export { default as GlStackedColumnChart } from './components/charts/stacked_column/stacked_column.vue';
|
|
@@ -41,7 +41,7 @@ import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
|
41
41
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
42
42
|
import Chart from '../chart/chart.vue';
|
|
43
43
|
import ChartLegend from '../legend/legend.vue';
|
|
44
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
44
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
45
45
|
|
|
46
46
|
export default {
|
|
47
47
|
name: 'GlAreaChart',
|
|
@@ -7,9 +7,9 @@ import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
|
7
7
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
9
|
import { hexToRgba } from '../../../utils/utils';
|
|
10
|
-
import TooltipDefaultFormat from '
|
|
10
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
11
11
|
import Chart from '../chart/chart.vue';
|
|
12
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
12
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* `nameGap` in charts/config is set to 50 but it is not
|
|
@@ -15,7 +15,7 @@ import { CHART_TYPE_LINE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/cons
|
|
|
15
15
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
16
16
|
import { columnOptions } from '../../../utils/constants';
|
|
17
17
|
import Chart from '../chart/chart.vue';
|
|
18
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
18
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
19
19
|
|
|
20
20
|
const yAxisDefaults = {
|
|
21
21
|
...yAxis,
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from '../../../utils/charts/config';
|
|
9
9
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
10
10
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
11
|
-
import TooltipDefaultFormat from '
|
|
11
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
13
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
14
14
|
|
|
15
15
|
export default {
|
|
16
16
|
name: 'GlDiscreteScatterChart',
|
|
@@ -6,10 +6,10 @@ import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config
|
|
|
6
6
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
7
7
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
|
-
import TooltipDefaultFormat from '
|
|
9
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
10
10
|
import Chart from '../chart/chart.vue';
|
|
11
11
|
import ChartLegend from '../legend/legend.vue';
|
|
12
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
12
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
13
13
|
|
|
14
14
|
const defaultOptions = {
|
|
15
15
|
visualMap: {
|
|
@@ -44,7 +44,7 @@ import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
|
44
44
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
45
45
|
import Chart from '../chart/chart.vue';
|
|
46
46
|
import ChartLegend from '../legend/legend.vue';
|
|
47
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
47
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
48
48
|
|
|
49
49
|
export default {
|
|
50
50
|
name: 'GlLineChart',
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
2
2
|
<script>
|
|
3
3
|
import * as echarts from 'echarts';
|
|
4
|
-
import { uid, debounceByAnimationFrame } from '
|
|
5
|
-
import GlPopover from '
|
|
6
|
-
import { popoverPlacements } from '
|
|
7
|
-
import { TOOLTIP_LEFT_OFFSET, TOOLTIP_TOP_OFFSET } from '
|
|
8
|
-
import { getTooltipTitle, getTooltipContent } from '
|
|
9
|
-
|
|
4
|
+
import { uid, debounceByAnimationFrame } from '../../../../utils/utils';
|
|
5
|
+
import GlPopover from '../../../base/popover/popover.vue';
|
|
6
|
+
import { popoverPlacements } from '../../../../utils/constants';
|
|
7
|
+
import { TOOLTIP_LEFT_OFFSET, TOOLTIP_TOP_OFFSET } from '../../../../utils/charts/constants';
|
|
8
|
+
import { getTooltipTitle, getTooltipContent } from '../../../../utils/charts/config';
|
|
9
|
+
|
|
10
|
+
import TooltipDefaultFormat from './tooltip_default_format/tooltip_default_format.vue';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'GlChartTooltip',
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '../../../utils/charts/config';
|
|
12
12
|
import { HEIGHT_AUTO_HORIZONTAL_LAYOUT_CLASSES } from '../../../utils/charts/constants';
|
|
13
13
|
import Chart from '../chart/chart.vue';
|
|
14
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
14
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
15
15
|
|
|
16
16
|
// the padding is needed so the mark points don't overflow when visible
|
|
17
17
|
const gridPadding = symbolSize / 2;
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from '../../../utils/charts/constants';
|
|
23
23
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
24
24
|
import { columnOptions } from '../../../utils/constants';
|
|
25
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
25
26
|
import Chart from '../chart/chart.vue';
|
|
26
27
|
import ChartLegend from '../legend/legend.vue';
|
|
27
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
28
|
-
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
28
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
29
29
|
|
|
30
30
|
const yAxisDefaults = {
|
|
31
31
|
...yAxis,
|
package/src/scss/components.scss
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
@import '../components/charts/legend/legend';
|
|
70
70
|
@import '../components/charts/series_label/series_label';
|
|
71
71
|
@import '../components/charts/single_stat/single_stat';
|
|
72
|
-
@import '../components/charts/tooltip/tooltip';
|
|
73
|
-
@import '../components/
|
|
72
|
+
@import '../components/charts/shared/tooltip/tooltip';
|
|
73
|
+
@import '../components/charts/shared/tooltip/tooltip_default_format/tooltip_default_format';
|
|
74
74
|
@import '../components/utilities/truncate/truncate';
|
|
75
75
|
@import '../components/utilities/truncate_text/truncate_text';
|
|
76
76
|
@import '../components/base/new_dropdowns/dropdown';
|
package/src/scss/typography.scss
CHANGED
|
@@ -19,3 +19,20 @@ a:not([href]):not([class]) {
|
|
|
19
19
|
caption {
|
|
20
20
|
@apply gl-text-subtle;
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
.table {
|
|
24
|
+
@apply gl-w-full gl-mb-3 gl-text-default gl-bg-transparent;
|
|
25
|
+
|
|
26
|
+
th,
|
|
27
|
+
td {
|
|
28
|
+
@apply gl-p-4 gl-align-top gl-border-t;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
thead th {
|
|
32
|
+
@apply gl-align-bottom gl-border-b gl-border-b-2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
tbody + tbody {
|
|
36
|
+
@apply gl-border-t gl-border-t-2;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Basic Bootstrap table
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
.table {
|
|
6
|
-
width: 100%;
|
|
7
|
-
margin-bottom: $spacer;
|
|
8
|
-
color: $table-color;
|
|
9
|
-
background-color: $table-bg; // Reset for nesting within parents with `background-color`.
|
|
10
|
-
|
|
11
|
-
th,
|
|
12
|
-
td {
|
|
13
|
-
padding: $table-cell-padding;
|
|
14
|
-
vertical-align: top;
|
|
15
|
-
border-top: $table-border-width solid $table-border-color;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
thead th {
|
|
19
|
-
vertical-align: bottom;
|
|
20
|
-
border-bottom: (2 * $table-border-width) solid $table-border-color;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
tbody + tbody {
|
|
24
|
-
border-top: (2 * $table-border-width) solid $table-border-color;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
1
|
//
|
|
30
2
|
// Condensed table w/ half padding
|
|
31
3
|
//
|
|
File without changes
|
|
File without changes
|