@gitlab/ui 36.5.1 → 37.0.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 +39 -0
- package/dist/components/base/alert/alert.js +1 -11
- package/dist/components/base/card/card.js +1 -1
- package/dist/components/base/form/form_radio_group/form_radio_group.documentation.js +2 -48
- package/dist/components/base/form/form_radio_group/form_radio_group.js +22 -2
- package/dist/components/base/pagination/pagination.js +1 -1
- package/dist/components/charts/area/area.documentation.js +1 -7
- package/dist/components/charts/heatmap/heatmap.documentation.js +0 -3
- package/dist/components/charts/line/line.documentation.js +2 -5
- package/dist/components/charts/series_label/series_label.documentation.js +2 -5
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/stories_utils.js +13 -1
- package/documentation/documented_stories.js +5 -0
- package/package.json +13 -13
- package/scss_to_js/scss_variables.js +1 -0
- package/scss_to_js/scss_variables.json +5 -0
- package/src/components/base/accordion/accordion.stories.js +2 -1
- package/src/components/base/alert/alert.scss +0 -38
- package/src/components/base/alert/alert.spec.js +0 -1
- package/src/components/base/alert/alert.stories.js +0 -8
- package/src/components/base/alert/alert.vue +30 -41
- package/src/components/base/badge/badge.stories.js +4 -24
- package/src/components/base/card/card.vue +2 -2
- package/src/components/base/daterange_picker/daterange_picker.stories.js +10 -35
- package/src/components/base/form/form_radio_group/form_radio_group.documentation.js +0 -48
- package/src/components/base/form/form_radio_group/form_radio_group.md +0 -2
- package/src/components/base/form/form_radio_group/form_radio_group.stories.js +50 -29
- package/src/components/base/form/form_radio_group/form_radio_group.vue +22 -2
- package/src/components/base/icon/icon.stories.js +2 -5
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +10 -10
- package/src/components/base/pagination/pagination.stories.js +5 -1
- package/src/components/base/pagination/pagination.vue +1 -1
- package/src/components/base/toggle/toggle.stories.js +2 -3
- package/src/components/charts/area/area.documentation.js +0 -5
- package/src/components/charts/area/area.stories.js +127 -127
- package/src/components/charts/bar/bar.stories.js +8 -5
- package/src/components/charts/heatmap/heatmap.documentation.js +0 -2
- package/src/components/charts/heatmap/heatmap.stories.js +58 -44
- package/src/components/charts/line/line.documentation.js +0 -2
- package/src/components/charts/line/line.md +0 -2
- package/src/components/charts/line/line.stories.js +124 -113
- package/src/components/charts/series_label/series_label.documentation.js +0 -2
- package/src/components/charts/series_label/series_label.md +0 -2
- package/src/components/charts/series_label/series_label.stories.js +62 -59
- package/src/scss/utilities.scss +40 -0
- package/src/scss/utility-mixins/border.scss +21 -0
- package/src/scss/variables.scss +2 -0
- package/src/utils/stories_utils.js +6 -0
- package/src/utils/stories_utils.spec.js +18 -0
- package/dist/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.js +0 -59
- package/dist/components/base/form/form_radio_group/examples/form_radio_group.slots.example.js +0 -48
- package/dist/components/base/form/form_radio_group/examples/index.js +0 -17
- package/dist/components/charts/area/examples/area.basic.example.js +0 -45
- package/dist/components/charts/area/examples/area.basic_plus.example.js +0 -53
- package/dist/components/charts/area/examples/index.js +0 -19
- package/dist/components/charts/heatmap/examples/heatmap.custom_options.example.js +0 -79
- package/dist/components/charts/heatmap/examples/heatmap.hourly.example.js +0 -70
- package/dist/components/charts/heatmap/examples/heatmap.responsive.example.js +0 -70
- package/dist/components/charts/heatmap/examples/heatmap.totals.example.js +0 -62
- package/dist/components/charts/heatmap/examples/index.js +0 -31
- package/dist/components/charts/line/examples/index.js +0 -19
- package/dist/components/charts/line/examples/line.basic.example.js +0 -45
- package/dist/components/charts/line/examples/line.series.example.js +0 -53
- package/dist/components/charts/series_label/examples/index.js +0 -13
- package/dist/components/charts/series_label/examples/series_label.basic.example.js +0 -38
- package/src/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.vue +0 -27
- package/src/components/base/form/form_radio_group/examples/form_radio_group.slots.example.vue +0 -21
- package/src/components/base/form/form_radio_group/examples/index.js +0 -20
- package/src/components/charts/area/area.md +0 -1
- package/src/components/charts/area/examples/area.basic.example.vue +0 -14
- package/src/components/charts/area/examples/area.basic_plus.example.vue +0 -25
- package/src/components/charts/area/examples/index.js +0 -22
- package/src/components/charts/heatmap/examples/heatmap.custom_options.example.vue +0 -70
- package/src/components/charts/heatmap/examples/heatmap.hourly.example.vue +0 -62
- package/src/components/charts/heatmap/examples/heatmap.responsive.example.vue +0 -63
- package/src/components/charts/heatmap/examples/heatmap.totals.example.vue +0 -38
- package/src/components/charts/heatmap/examples/index.js +0 -36
- package/src/components/charts/line/examples/index.js +0 -22
- package/src/components/charts/line/examples/line.basic.example.vue +0 -14
- package/src/components/charts/line/examples/line.series.example.vue +0 -25
- package/src/components/charts/series_label/examples/index.js +0 -15
- package/src/components/charts/series_label/examples/series_label.basic.example.vue +0 -3
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-area-chart
|
|
3
|
-
:data="[
|
|
4
|
-
{
|
|
5
|
-
name: 'Values',
|
|
6
|
-
data: [
|
|
7
|
-
[0, 5],
|
|
8
|
-
[4, 3],
|
|
9
|
-
[8, 10],
|
|
10
|
-
],
|
|
11
|
-
},
|
|
12
|
-
]"
|
|
13
|
-
:option="{
|
|
14
|
-
series: [
|
|
15
|
-
{
|
|
16
|
-
type: 'scatter',
|
|
17
|
-
data: [
|
|
18
|
-
[2, 5],
|
|
19
|
-
[6, 10],
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
}"
|
|
24
|
-
/>
|
|
25
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import AreaBasicExample from './area.basic.example.vue';
|
|
2
|
-
import AreaBasicPlusExample from './area.basic_plus.example.vue';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
name: 'Basic',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
id: 'area-basic',
|
|
10
|
-
name: 'Basic',
|
|
11
|
-
description: 'Basic Area Chart',
|
|
12
|
-
component: AreaBasicExample,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'area-basic-plus',
|
|
16
|
-
name: 'Basic plus custom series',
|
|
17
|
-
description: 'Basic area chart with custom series added',
|
|
18
|
-
component: AreaBasicPlusExample,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
series: (() => {
|
|
6
|
-
const hours = 24;
|
|
7
|
-
const days = 7;
|
|
8
|
-
const res = [];
|
|
9
|
-
for (let x = 0; x < hours; x += 1) {
|
|
10
|
-
for (let y = 0; y < days; y += 1) {
|
|
11
|
-
let val = Math.random() * 10;
|
|
12
|
-
if (Math.random() > 0.5) {
|
|
13
|
-
val = '-';
|
|
14
|
-
}
|
|
15
|
-
res.push([x, y, val]);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return res;
|
|
19
|
-
})(),
|
|
20
|
-
xAxisLabels: [
|
|
21
|
-
'12',
|
|
22
|
-
'1',
|
|
23
|
-
'2',
|
|
24
|
-
'3',
|
|
25
|
-
'4',
|
|
26
|
-
'5',
|
|
27
|
-
'6',
|
|
28
|
-
'7',
|
|
29
|
-
'8',
|
|
30
|
-
'9',
|
|
31
|
-
'10',
|
|
32
|
-
'11',
|
|
33
|
-
'12',
|
|
34
|
-
'1',
|
|
35
|
-
'2',
|
|
36
|
-
'3',
|
|
37
|
-
'4',
|
|
38
|
-
'5',
|
|
39
|
-
'6',
|
|
40
|
-
'7',
|
|
41
|
-
'8',
|
|
42
|
-
'9',
|
|
43
|
-
'10',
|
|
44
|
-
'11',
|
|
45
|
-
],
|
|
46
|
-
yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<template>
|
|
53
|
-
<gl-heatmap
|
|
54
|
-
:data-series="series"
|
|
55
|
-
:x-axis-labels="xAxisLabels"
|
|
56
|
-
:y-axis-labels="yAxisLabels"
|
|
57
|
-
:options="{
|
|
58
|
-
xAxis: {
|
|
59
|
-
splitArea: {
|
|
60
|
-
show: false,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
yAxis: {
|
|
64
|
-
splitArea: {
|
|
65
|
-
show: false,
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
}"
|
|
69
|
-
/>
|
|
70
|
-
</template>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
series: (() => {
|
|
6
|
-
const hours = 24;
|
|
7
|
-
const days = 7;
|
|
8
|
-
const res = [];
|
|
9
|
-
for (let x = 0; x < hours; x += 1) {
|
|
10
|
-
for (let y = 0; y < days; y += 1) {
|
|
11
|
-
let val = Math.random() * 10;
|
|
12
|
-
if (Math.random() > 0.7) {
|
|
13
|
-
val = '-';
|
|
14
|
-
}
|
|
15
|
-
res.push([x, y, val]);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return res;
|
|
19
|
-
})(),
|
|
20
|
-
xAxisLabels: [
|
|
21
|
-
'12',
|
|
22
|
-
'1',
|
|
23
|
-
'2',
|
|
24
|
-
'3',
|
|
25
|
-
'4',
|
|
26
|
-
'5',
|
|
27
|
-
'6',
|
|
28
|
-
'7',
|
|
29
|
-
'8',
|
|
30
|
-
'9',
|
|
31
|
-
'10',
|
|
32
|
-
'11',
|
|
33
|
-
'12',
|
|
34
|
-
'1',
|
|
35
|
-
'2',
|
|
36
|
-
'3',
|
|
37
|
-
'4',
|
|
38
|
-
'5',
|
|
39
|
-
'6',
|
|
40
|
-
'7',
|
|
41
|
-
'8',
|
|
42
|
-
'9',
|
|
43
|
-
'10',
|
|
44
|
-
'11',
|
|
45
|
-
],
|
|
46
|
-
yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
|
|
47
|
-
xAxisName: 'Hour',
|
|
48
|
-
yAxisName: 'Day',
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<template>
|
|
55
|
-
<gl-heatmap
|
|
56
|
-
:data-series="series"
|
|
57
|
-
:x-axis-labels="xAxisLabels"
|
|
58
|
-
:y-axis-labels="yAxisLabels"
|
|
59
|
-
:x-axis-name="xAxisName"
|
|
60
|
-
:y-axis-name="yAxisName"
|
|
61
|
-
/>
|
|
62
|
-
</template>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
series: (() => {
|
|
6
|
-
const hours = 24;
|
|
7
|
-
const days = 7;
|
|
8
|
-
const res = [];
|
|
9
|
-
for (let x = 0; x < hours; x += 1) {
|
|
10
|
-
for (let y = 0; y < days; y += 1) {
|
|
11
|
-
let val = Math.random() * 10;
|
|
12
|
-
if (Math.random() > 0.7) {
|
|
13
|
-
val = '-';
|
|
14
|
-
}
|
|
15
|
-
res.push([x, y, val]);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return res;
|
|
19
|
-
})(),
|
|
20
|
-
xAxisLabels: [
|
|
21
|
-
'12',
|
|
22
|
-
'1',
|
|
23
|
-
'2',
|
|
24
|
-
'3',
|
|
25
|
-
'4',
|
|
26
|
-
'5',
|
|
27
|
-
'6',
|
|
28
|
-
'7',
|
|
29
|
-
'8',
|
|
30
|
-
'9',
|
|
31
|
-
'10',
|
|
32
|
-
'11',
|
|
33
|
-
'12',
|
|
34
|
-
'1',
|
|
35
|
-
'2',
|
|
36
|
-
'3',
|
|
37
|
-
'4',
|
|
38
|
-
'5',
|
|
39
|
-
'6',
|
|
40
|
-
'7',
|
|
41
|
-
'8',
|
|
42
|
-
'9',
|
|
43
|
-
'10',
|
|
44
|
-
'11',
|
|
45
|
-
],
|
|
46
|
-
yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
|
|
47
|
-
xAxisName: 'Hour',
|
|
48
|
-
yAxisName: 'Day',
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<template>
|
|
55
|
-
<gl-heatmap
|
|
56
|
-
:data-series="series"
|
|
57
|
-
:x-axis-labels="xAxisLabels"
|
|
58
|
-
:y-axis-labels="yAxisLabels"
|
|
59
|
-
:x-axis-name="xAxisName"
|
|
60
|
-
:y-axis-name="yAxisName"
|
|
61
|
-
:responsive="false"
|
|
62
|
-
/>
|
|
63
|
-
</template>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
series: (() => {
|
|
6
|
-
const hours = 12;
|
|
7
|
-
const days = 20;
|
|
8
|
-
const res = [];
|
|
9
|
-
for (let x = 0; x < hours; x += 1) {
|
|
10
|
-
for (let y = 0; y < days; y += 1) {
|
|
11
|
-
const val = Math.ceil(Math.random() * (y % 12) - 3);
|
|
12
|
-
res.push([x, y, val]);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return res;
|
|
16
|
-
})(),
|
|
17
|
-
xAxisLabels: [
|
|
18
|
-
'7am',
|
|
19
|
-
'8am',
|
|
20
|
-
'9am',
|
|
21
|
-
'10am',
|
|
22
|
-
'11am',
|
|
23
|
-
'12pm',
|
|
24
|
-
'1pm',
|
|
25
|
-
'2pm',
|
|
26
|
-
'3pm',
|
|
27
|
-
'4pm',
|
|
28
|
-
'5pm',
|
|
29
|
-
'6pm',
|
|
30
|
-
],
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<template>
|
|
37
|
-
<gl-heatmap title="Pageviews per hour" :data-series="series" :x-axis-labels="xAxisLabels" />
|
|
38
|
-
</template>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import CustomOptionsExample from './heatmap.custom_options.example.vue';
|
|
2
|
-
import HourlyExample from './heatmap.hourly.example.vue';
|
|
3
|
-
import CustomResponsiveExample from './heatmap.responsive.example.vue';
|
|
4
|
-
import TotalsExample from './heatmap.totals.example.vue';
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
{
|
|
8
|
-
name: 'Calendar',
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
id: 'heatmap-hourly',
|
|
12
|
-
name: 'Hourly breakdown',
|
|
13
|
-
description: 'HourlyExample',
|
|
14
|
-
component: HourlyExample,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 'heatmap-totals',
|
|
18
|
-
name: 'Histograms over time',
|
|
19
|
-
description: 'TotalsExample',
|
|
20
|
-
component: TotalsExample,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: 'heatmap-custom-options',
|
|
24
|
-
name: 'Heatmap with no background',
|
|
25
|
-
description: 'CustomOptionsExample',
|
|
26
|
-
component: CustomOptionsExample,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 'heatmap-responsive',
|
|
30
|
-
name: 'Heatmap which is non mobile responsive',
|
|
31
|
-
description: 'CustomResponsiveExample',
|
|
32
|
-
component: CustomResponsiveExample,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import LineBasicExample from './line.basic.example.vue';
|
|
2
|
-
import LineSeriesExample from './line.series.example.vue';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
name: 'Basic',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
id: 'line-basic',
|
|
10
|
-
name: 'Basic',
|
|
11
|
-
description: 'Basic line chart',
|
|
12
|
-
component: LineBasicExample,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'line-basic-plus',
|
|
16
|
-
name: 'Basic plus custom series',
|
|
17
|
-
description: 'Basic line chart with custom series added',
|
|
18
|
-
component: LineSeriesExample,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-line-chart
|
|
3
|
-
:data="[
|
|
4
|
-
{
|
|
5
|
-
name: 'Values',
|
|
6
|
-
data: [
|
|
7
|
-
[0, 5],
|
|
8
|
-
[4, 3],
|
|
9
|
-
[8, 10],
|
|
10
|
-
],
|
|
11
|
-
},
|
|
12
|
-
]"
|
|
13
|
-
:option="{
|
|
14
|
-
series: [
|
|
15
|
-
{
|
|
16
|
-
type: 'scatter',
|
|
17
|
-
data: [
|
|
18
|
-
[2, 5],
|
|
19
|
-
[6, 10],
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
}"
|
|
24
|
-
/>
|
|
25
|
-
</template>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import SeriesLabelBasicExample from './series_label.basic.example.vue';
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
name: 'Basic',
|
|
6
|
-
items: [
|
|
7
|
-
{
|
|
8
|
-
id: 'series-label-basic',
|
|
9
|
-
name: 'Basic',
|
|
10
|
-
description: 'Basic Series Label',
|
|
11
|
-
component: SeriesLabelBasicExample,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
];
|