@gitlab/ui 32.46.0 → 32.50.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 +28 -0
- package/dist/components/base/avatar_labeled/avatar_labeled.documentation.js +2 -9
- package/dist/components/base/avatars_inline/avatars_inline.documentation.js +2 -5
- package/dist/components/base/form/form_combobox/form_combobox.documentation.js +2 -9
- package/dist/components/base/form/form_combobox/form_combobox.js +5 -0
- package/dist/components/base/form/form_radio/form_radio.documentation.js +2 -33
- package/dist/components/base/form/form_radio/form_radio.js +15 -2
- package/dist/components/base/form/input_group_text/input_group_text.documentation.js +1 -5
- package/dist/components/base/keyset_pagination/keyset_pagination.documentation.js +2 -84
- package/dist/components/base/keyset_pagination/keyset_pagination.js +42 -0
- package/dist/components/base/modal/modal.documentation.js +2 -32
- package/dist/components/base/modal/modal.js +1 -1
- package/dist/components/charts/gauge/gauge.documentation.js +2 -6
- package/dist/components/charts/tooltip/tooltip.documentation.js +1 -5
- package/dist/components/utilities/intersperse/intersperse.documentation.js +2 -5
- package/documentation/documented_stories.js +10 -0
- package/package.json +3 -3
- package/src/components/base/avatar_labeled/avatar_labeled.documentation.js +0 -9
- package/src/components/base/avatar_labeled/avatar_labeled.md +2 -5
- package/src/components/base/avatar_labeled/avatar_labeled.stories.js +68 -62
- package/src/components/base/avatar_labeled/avatar_labeled.vue +1 -0
- package/src/components/base/avatars_inline/avatars_inline.documentation.js +0 -2
- package/src/components/base/avatars_inline/avatars_inline.md +1 -3
- package/src/components/base/avatars_inline/avatars_inline.stories.js +49 -44
- package/src/components/base/form/form_combobox/form_combobox.documentation.js +0 -8
- package/src/components/base/form/form_combobox/form_combobox.md +0 -2
- package/src/components/base/form/form_combobox/form_combobox.stories.js +30 -30
- package/src/components/base/form/form_combobox/form_combobox.vue +4 -0
- package/src/components/base/form/form_radio/form_radio.documentation.js +0 -31
- package/src/components/base/form/form_radio/form_radio.md +7 -14
- package/src/components/base/form/form_radio/form_radio.stories.js +40 -28
- package/src/components/base/form/form_radio/form_radio.vue +26 -1
- package/src/components/base/form/input_group_text/input_group_text.documentation.js +0 -3
- package/src/components/base/form/input_group_text/input_group_text.stories.js +24 -18
- package/src/components/base/keyset_pagination/keyset_pagination.documentation.js +0 -99
- package/src/components/base/keyset_pagination/keyset_pagination.md +0 -2
- package/src/components/base/keyset_pagination/keyset_pagination.stories.js +60 -58
- package/src/components/base/keyset_pagination/keyset_pagination.vue +35 -1
- package/src/components/base/modal/modal.documentation.js +0 -42
- package/src/components/base/modal/modal.md +2 -7
- package/src/components/base/modal/modal.stories.js +107 -85
- package/src/components/base/modal/modal.vue +20 -0
- package/src/components/charts/gauge/gauge.documentation.js +0 -3
- package/src/components/charts/gauge/gauge.md +0 -2
- package/src/components/charts/gauge/gauge.stories.js +70 -86
- package/src/components/charts/tooltip/tooltip.documentation.js +0 -3
- package/src/components/charts/tooltip/tooltip.stories.js +59 -44
- package/src/components/utilities/intersperse/intersperse.documentation.js +0 -2
- package/src/components/utilities/intersperse/intersperse.md +0 -2
- package/src/components/utilities/intersperse/intersperse.stories.js +38 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled_badges.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled_links.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled_tooltip.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/index.js +0 -31
- package/dist/components/base/avatars_inline/examples/avatars.inline.example.js +0 -58
- package/dist/components/base/avatars_inline/examples/avatars.inline_large.example.js +0 -58
- package/dist/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.js +0 -70
- package/dist/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips_badge.example.js +0 -70
- package/dist/components/base/avatars_inline/examples/index.js +0 -31
- package/dist/components/base/form/form_combobox/examples/form_combobox.basic.example.js +0 -50
- package/dist/components/base/form/form_combobox/examples/index.js +0 -13
- package/dist/components/base/form/form_radio/examples/form_radio.basic.example.js +0 -48
- package/dist/components/base/form/form_radio/examples/form_radio.checked_disabled.example.js +0 -48
- package/dist/components/base/form/form_radio/examples/index.js +0 -19
- package/dist/components/base/form/input_group_text/examples/index.js +0 -13
- package/dist/components/base/form/input_group_text/examples/input_group_text.basic.example.js +0 -38
- package/dist/components/base/keyset_pagination/examples/index.js +0 -37
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.basic.example.js +0 -51
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.events.example.js +0 -64
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.internationalization.example.js +0 -59
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.links.example.js +0 -51
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.slots.example.js +0 -51
- package/dist/components/base/modal/examples/index.js +0 -31
- package/dist/components/base/modal/examples/modal.basic.example.js +0 -62
- package/dist/components/base/modal/examples/modal.disabled.example.js +0 -89
- package/dist/components/base/modal/examples/modal.sizes.example.js +0 -62
- package/dist/components/charts/gauge/examples/gauge.basic.example.js +0 -38
- package/dist/components/charts/gauge/examples/gauge.no_thresholds.example.js +0 -38
- package/dist/components/charts/gauge/examples/gauge.no_value.example.js +0 -38
- package/dist/components/charts/gauge/examples/gauge.with_text.example.js +0 -38
- package/dist/components/charts/gauge/examples/index.js +0 -31
- package/dist/components/charts/tooltip/examples/chart_tooltip.basic.example.js +0 -54
- package/dist/components/charts/tooltip/examples/index.js +0 -13
- package/dist/components/utilities/intersperse/examples/index.js +0 -31
- package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.js +0 -38
- package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator_two_items.example.js +0 -38
- package/dist/components/utilities/intersperse/examples/intersperse.custom_separator.example.js +0 -38
- package/dist/components/utilities/intersperse/examples/intersperse.default.example.js +0 -38
- package/src/components/base/avatar_labeled/examples/avatar.labeled.example.vue +0 -8
- package/src/components/base/avatar_labeled/examples/avatar.labeled_badges.example.vue +0 -17
- package/src/components/base/avatar_labeled/examples/avatar.labeled_links.example.vue +0 -10
- package/src/components/base/avatar_labeled/examples/avatar.labeled_tooltip.example.vue +0 -10
- package/src/components/base/avatar_labeled/examples/index.js +0 -36
- package/src/components/base/avatars_inline/examples/avatars.inline.example.vue +0 -18
- package/src/components/base/avatars_inline/examples/avatars.inline_large.example.vue +0 -18
- package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.vue +0 -24
- package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips_badge.example.vue +0 -31
- package/src/components/base/avatars_inline/examples/index.js +0 -36
- package/src/components/base/form/form_combobox/examples/form_combobox.basic.example.vue +0 -31
- package/src/components/base/form/form_combobox/examples/index.js +0 -15
- package/src/components/base/form/form_radio/examples/form_radio.basic.example.vue +0 -16
- package/src/components/base/form/form_radio/examples/form_radio.checked_disabled.example.vue +0 -13
- package/src/components/base/form/form_radio/examples/index.js +0 -22
- package/src/components/base/form/input_group_text/examples/index.js +0 -15
- package/src/components/base/form/input_group_text/examples/input_group_text.basic.example.vue +0 -3
- package/src/components/base/keyset_pagination/examples/index.js +0 -43
- package/src/components/base/keyset_pagination/examples/keyset_pagination.basic.example.vue +0 -16
- package/src/components/base/keyset_pagination/examples/keyset_pagination.events.example.vue +0 -29
- package/src/components/base/keyset_pagination/examples/keyset_pagination.internationalization.example.vue +0 -23
- package/src/components/base/keyset_pagination/examples/keyset_pagination.links.example.vue +0 -20
- package/src/components/base/keyset_pagination/examples/keyset_pagination.slots.example.vue +0 -23
- package/src/components/base/modal/examples/index.js +0 -39
- package/src/components/base/modal/examples/modal.basic.example.vue +0 -39
- package/src/components/base/modal/examples/modal.disabled.example.vue +0 -58
- package/src/components/base/modal/examples/modal.sizes.example.vue +0 -61
- package/src/components/charts/gauge/examples/gauge.basic.example.vue +0 -5
- package/src/components/charts/gauge/examples/gauge.no_thresholds.example.vue +0 -5
- package/src/components/charts/gauge/examples/gauge.no_value.example.vue +0 -5
- package/src/components/charts/gauge/examples/gauge.with_text.example.vue +0 -12
- package/src/components/charts/gauge/examples/index.js +0 -36
- package/src/components/charts/tooltip/examples/chart_tooltip.basic.example.vue +0 -32
- package/src/components/charts/tooltip/examples/index.js +0 -15
- package/src/components/utilities/intersperse/examples/index.js +0 -36
- package/src/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.vue +0 -7
- package/src/components/utilities/intersperse/examples/intersperse.custom_last_separator_two_items.example.vue +0 -6
- package/src/components/utilities/intersperse/examples/intersperse.custom_separator.example.vue +0 -7
- package/src/components/utilities/intersperse/examples/intersperse.default.example.vue +0 -7
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { withKnobs, object, number, text as textKnob, array } from '@storybook/addon-knobs';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
|
|
3
1
|
import { toolbox } from '../../../utils/charts/story_config';
|
|
4
2
|
import readme from './gauge.md';
|
|
5
3
|
import GlGauge from './gauge.vue';
|
|
@@ -16,7 +14,7 @@ const template = `
|
|
|
16
14
|
/>
|
|
17
15
|
`;
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
const generateProps = ({
|
|
20
18
|
value = 48,
|
|
21
19
|
min = 0,
|
|
22
20
|
max = 100,
|
|
@@ -24,88 +22,74 @@ function generateProps({
|
|
|
24
22
|
option = {},
|
|
25
23
|
thresholds = [38, 82],
|
|
26
24
|
splitNumber = 10,
|
|
27
|
-
} = {}) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
default: array('Thresholds', thresholds),
|
|
43
|
-
},
|
|
44
|
-
text: {
|
|
45
|
-
default: textKnob('Detail Text', text),
|
|
46
|
-
},
|
|
47
|
-
splitNumber: {
|
|
48
|
-
default: number('Split Number', splitNumber),
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
}
|
|
25
|
+
} = {}) => ({
|
|
26
|
+
option,
|
|
27
|
+
value,
|
|
28
|
+
min,
|
|
29
|
+
max,
|
|
30
|
+
thresholds,
|
|
31
|
+
text,
|
|
32
|
+
splitNumber,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const Template = (args, { argTypes }) => ({
|
|
36
|
+
components: { GlGauge },
|
|
37
|
+
props: Object.keys(argTypes),
|
|
38
|
+
template,
|
|
39
|
+
});
|
|
52
40
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
props: generateProps({
|
|
105
|
-
option: {
|
|
106
|
-
toolbox,
|
|
41
|
+
export const Default = Template.bind({});
|
|
42
|
+
Default.args = generateProps();
|
|
43
|
+
|
|
44
|
+
export const OneThreshold = Template.bind({});
|
|
45
|
+
OneThreshold.args = generateProps({
|
|
46
|
+
value: 65,
|
|
47
|
+
thresholds: [85],
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export const TwoThresholds = Template.bind({});
|
|
51
|
+
TwoThresholds.args = generateProps({
|
|
52
|
+
value: 90,
|
|
53
|
+
thresholds: [60, 85],
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export const NoThresholds = Template.bind({});
|
|
57
|
+
NoThresholds.args = generateProps({
|
|
58
|
+
value: 90,
|
|
59
|
+
thresholds: [],
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export const WithCustomDetailText = Template.bind({});
|
|
63
|
+
WithCustomDetailText.args = generateProps({
|
|
64
|
+
value: 90,
|
|
65
|
+
text: '90Mbps',
|
|
66
|
+
thresholds: [60, 85],
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export const WithNaNValues = Template.bind({});
|
|
70
|
+
WithNaNValues.args = generateProps({
|
|
71
|
+
min: 'not a number value',
|
|
72
|
+
max: 'not a number value',
|
|
73
|
+
value: 'not a number value',
|
|
74
|
+
thresholds: [60, 85],
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export const WithToolbox = Template.bind({});
|
|
78
|
+
WithToolbox.args = generateProps({
|
|
79
|
+
option: {
|
|
80
|
+
toolbox,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export default {
|
|
85
|
+
title: 'charts/gauge-chart',
|
|
86
|
+
component: GlGauge,
|
|
87
|
+
parameters: {
|
|
88
|
+
knobs: { disable: true },
|
|
89
|
+
docs: {
|
|
90
|
+
description: {
|
|
91
|
+
component: readme,
|
|
107
92
|
},
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}));
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { GlChart, GlChartTooltip, GlChartSeriesLabel } from '../../../../charts';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
|
|
3
2
|
import {
|
|
4
3
|
SERIES_NAME,
|
|
5
4
|
SERIES_NAME_LONG,
|
|
6
5
|
SERIES_NAME_LONG_WITHOUT_SPACES,
|
|
7
6
|
} from '../../../utils/stories_utils';
|
|
8
|
-
|
|
9
7
|
import readme from './tooltip.md';
|
|
10
8
|
|
|
11
9
|
const components = {
|
|
@@ -33,10 +31,9 @@ const baseStoryOptions = {
|
|
|
33
31
|
},
|
|
34
32
|
};
|
|
35
33
|
|
|
36
|
-
const getStoryOptions = (tooltipContent) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
template: `<div class="position-relative">
|
|
34
|
+
const getStoryOptions = (tooltipContent) => ({
|
|
35
|
+
...baseStoryOptions,
|
|
36
|
+
template: `<div class="position-relative">
|
|
40
37
|
<gl-chart
|
|
41
38
|
:options="options"
|
|
42
39
|
:height="100"
|
|
@@ -57,43 +54,61 @@ const getStoryOptions = (tooltipContent) => {
|
|
|
57
54
|
${tooltipContent}
|
|
58
55
|
</gl-chart-tooltip>
|
|
59
56
|
</div>`,
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const Default = (args, { argTypes }) => ({
|
|
60
|
+
props: Object.keys(argTypes),
|
|
61
|
+
...getStoryOptions('Example Content'),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export const WithLongSeriesLabel = (args, { argTypes }) => ({
|
|
65
|
+
props: Object.keys(argTypes),
|
|
66
|
+
...getStoryOptions(`
|
|
67
|
+
<gl-chart-series-label color="#1F78D1">${SERIES_NAME[SERIES_NAME_LONG]}</gl-chart-series-label>
|
|
68
|
+
`),
|
|
69
|
+
});
|
|
62
70
|
|
|
63
|
-
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
)
|
|
70
|
-
.add('with long series label with no spaces', () =>
|
|
71
|
-
getStoryOptions(`
|
|
72
|
-
<gl-chart-series-label color="#1F78D1">${SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES]}</gl-chart-series-label>
|
|
73
|
-
`)
|
|
74
|
-
)
|
|
71
|
+
export const WithLongSeriesLabelWithNoSpaces = (args, { argTypes }) => ({
|
|
72
|
+
props: Object.keys(argTypes),
|
|
73
|
+
...getStoryOptions(`
|
|
74
|
+
<gl-chart-series-label color="#1F78D1">${SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES]}</gl-chart-series-label>
|
|
75
|
+
`),
|
|
76
|
+
});
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
export const TitleProp = (args, { argTypes }) => ({
|
|
79
|
+
props: Object.keys(argTypes),
|
|
80
|
+
...baseStoryOptions,
|
|
81
|
+
template: `
|
|
82
|
+
<div class="position-relative">
|
|
83
|
+
<gl-chart
|
|
84
|
+
:options="options"
|
|
85
|
+
:height="100"
|
|
86
|
+
@created="onCreated"
|
|
87
|
+
/>
|
|
88
|
+
<gl-chart-tooltip
|
|
89
|
+
v-if="chart"
|
|
90
|
+
:chart="chart"
|
|
91
|
+
:show="showTooltip"
|
|
92
|
+
:top="top"
|
|
93
|
+
:left="left"
|
|
94
|
+
title="Title from prop"
|
|
95
|
+
>
|
|
96
|
+
Example content
|
|
97
|
+
</gl-chart-tooltip>
|
|
98
|
+
</div>`,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export default {
|
|
102
|
+
title: 'charts/chart-tooltip',
|
|
103
|
+
component: GlChartTooltip,
|
|
104
|
+
parameters: {
|
|
105
|
+
bootstrapComponent: 'b-popover',
|
|
106
|
+
knobs: { disable: true },
|
|
107
|
+
controls: { disable: true },
|
|
108
|
+
docs: {
|
|
109
|
+
description: {
|
|
110
|
+
component: readme,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { array, text, withKnobs } from '@storybook/addon-knobs';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
|
|
3
1
|
import { GlIntersperse } from '../../../../index';
|
|
4
2
|
import readme from './intersperse.md';
|
|
5
3
|
|
|
@@ -11,44 +9,46 @@ const template = `
|
|
|
11
9
|
</div>
|
|
12
10
|
`;
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
const generateProps = ({
|
|
15
13
|
separator = ', ',
|
|
16
14
|
lastSeparator = '',
|
|
17
15
|
items = ['Foo', 'Bar', 'Baz', 'Qaz'],
|
|
18
|
-
} = {}) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
separator: {
|
|
24
|
-
default: text('separator', separator),
|
|
25
|
-
},
|
|
26
|
-
lastSeparator: {
|
|
27
|
-
default: text('lastSeparator', lastSeparator),
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
16
|
+
} = {}) => ({
|
|
17
|
+
separator,
|
|
18
|
+
lastSeparator,
|
|
19
|
+
items,
|
|
20
|
+
});
|
|
31
21
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
22
|
+
const Template = (args, { argTypes }) => ({
|
|
23
|
+
components: {
|
|
24
|
+
GlIntersperse,
|
|
25
|
+
},
|
|
26
|
+
props: Object.keys(argTypes),
|
|
27
|
+
template,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export const Default = Template.bind({});
|
|
31
|
+
Default.args = generateProps();
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
title: 'utilities/intersperse',
|
|
35
|
+
component: GlIntersperse,
|
|
36
|
+
parameters: {
|
|
37
|
+
knobs: { disable: true },
|
|
38
|
+
docs: {
|
|
39
|
+
description: {
|
|
40
|
+
component: readme,
|
|
41
|
+
},
|
|
52
42
|
},
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const CustomSeparator = Template.bind({});
|
|
47
|
+
CustomSeparator.args = generateProps({
|
|
48
|
+
separator: '-',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export const CustomLastSeparator = Template.bind({});
|
|
52
|
+
CustomLastSeparator.args = generateProps({
|
|
53
|
+
lastSeparator: ' and ',
|
|
54
|
+
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-avatar-labeled',{attrs:{"size":32,"src":"https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64","label":"GitLab User","sub-label":"gitlab"}})};
|
|
7
|
-
var __vue_staticRenderFns__ = [];
|
|
8
|
-
|
|
9
|
-
/* style */
|
|
10
|
-
const __vue_inject_styles__ = undefined;
|
|
11
|
-
/* scoped */
|
|
12
|
-
const __vue_scope_id__ = undefined;
|
|
13
|
-
/* module identifier */
|
|
14
|
-
const __vue_module_identifier__ = undefined;
|
|
15
|
-
/* functional template */
|
|
16
|
-
const __vue_is_functional_template__ = false;
|
|
17
|
-
/* style inject */
|
|
18
|
-
|
|
19
|
-
/* style inject SSR */
|
|
20
|
-
|
|
21
|
-
/* style inject shadow dom */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const __vue_component__ = __vue_normalize__(
|
|
26
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
27
|
-
__vue_inject_styles__,
|
|
28
|
-
{},
|
|
29
|
-
__vue_scope_id__,
|
|
30
|
-
__vue_is_functional_template__,
|
|
31
|
-
__vue_module_identifier__,
|
|
32
|
-
false,
|
|
33
|
-
undefined,
|
|
34
|
-
undefined,
|
|
35
|
-
undefined
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
export default __vue_component__;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-avatar-labeled',{attrs:{"size":32,"src":"https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64","label":"GitLab User","sub-label":"gitlab"},scopedSlots:_vm._u([{key:"meta",fn:function(){return [_c('div',{staticClass:"gl-p-1"},[_c('gl-badge',{staticClass:"gl-display-flex!",attrs:{"size":"sm","variant":"info"}},[_vm._v("2FA")])],1),_vm._v(" "),_c('div',{staticClass:"gl-p-1"},[_c('gl-badge',{staticClass:"gl-display-flex!",attrs:{"size":"sm","variant":"danger"}},[_vm._v("Blocked")])],1)]},proxy:true}])})};
|
|
7
|
-
var __vue_staticRenderFns__ = [];
|
|
8
|
-
|
|
9
|
-
/* style */
|
|
10
|
-
const __vue_inject_styles__ = undefined;
|
|
11
|
-
/* scoped */
|
|
12
|
-
const __vue_scope_id__ = undefined;
|
|
13
|
-
/* module identifier */
|
|
14
|
-
const __vue_module_identifier__ = undefined;
|
|
15
|
-
/* functional template */
|
|
16
|
-
const __vue_is_functional_template__ = false;
|
|
17
|
-
/* style inject */
|
|
18
|
-
|
|
19
|
-
/* style inject SSR */
|
|
20
|
-
|
|
21
|
-
/* style inject shadow dom */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const __vue_component__ = __vue_normalize__(
|
|
26
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
27
|
-
__vue_inject_styles__,
|
|
28
|
-
{},
|
|
29
|
-
__vue_scope_id__,
|
|
30
|
-
__vue_is_functional_template__,
|
|
31
|
-
__vue_module_identifier__,
|
|
32
|
-
false,
|
|
33
|
-
undefined,
|
|
34
|
-
undefined,
|
|
35
|
-
undefined
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
export default __vue_component__;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-avatar-labeled',{attrs:{"size":32,"src":"https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64","label":"GitLab User","sub-label":"gitlab@example.com","label-link":"#","sub-label-link":"mailto:#"}})};
|
|
7
|
-
var __vue_staticRenderFns__ = [];
|
|
8
|
-
|
|
9
|
-
/* style */
|
|
10
|
-
const __vue_inject_styles__ = undefined;
|
|
11
|
-
/* scoped */
|
|
12
|
-
const __vue_scope_id__ = undefined;
|
|
13
|
-
/* module identifier */
|
|
14
|
-
const __vue_module_identifier__ = undefined;
|
|
15
|
-
/* functional template */
|
|
16
|
-
const __vue_is_functional_template__ = false;
|
|
17
|
-
/* style inject */
|
|
18
|
-
|
|
19
|
-
/* style inject SSR */
|
|
20
|
-
|
|
21
|
-
/* style inject shadow dom */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const __vue_component__ = __vue_normalize__(
|
|
26
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
27
|
-
__vue_inject_styles__,
|
|
28
|
-
{},
|
|
29
|
-
__vue_scope_id__,
|
|
30
|
-
__vue_is_functional_template__,
|
|
31
|
-
__vue_module_identifier__,
|
|
32
|
-
false,
|
|
33
|
-
undefined,
|
|
34
|
-
undefined,
|
|
35
|
-
undefined
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
export default __vue_component__;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-avatar-labeled',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ placement: 'bottom' }),expression:"{ placement: 'bottom' }"}],attrs:{"size":32,"src":"https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64","label":"GitLab User","sub-label":"gitlab","title":"Avatar labeled with tooltip"}})};
|
|
7
|
-
var __vue_staticRenderFns__ = [];
|
|
8
|
-
|
|
9
|
-
/* style */
|
|
10
|
-
const __vue_inject_styles__ = undefined;
|
|
11
|
-
/* scoped */
|
|
12
|
-
const __vue_scope_id__ = undefined;
|
|
13
|
-
/* module identifier */
|
|
14
|
-
const __vue_module_identifier__ = undefined;
|
|
15
|
-
/* functional template */
|
|
16
|
-
const __vue_is_functional_template__ = false;
|
|
17
|
-
/* style inject */
|
|
18
|
-
|
|
19
|
-
/* style inject SSR */
|
|
20
|
-
|
|
21
|
-
/* style inject shadow dom */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const __vue_component__ = __vue_normalize__(
|
|
26
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
27
|
-
__vue_inject_styles__,
|
|
28
|
-
{},
|
|
29
|
-
__vue_scope_id__,
|
|
30
|
-
__vue_is_functional_template__,
|
|
31
|
-
__vue_module_identifier__,
|
|
32
|
-
false,
|
|
33
|
-
undefined,
|
|
34
|
-
undefined,
|
|
35
|
-
undefined
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
export default __vue_component__;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import AvatarLabeledExample from './avatar.labeled.example';
|
|
2
|
-
import AvatarLabeledBadgesExample from './avatar.labeled_badges.example';
|
|
3
|
-
import AvatarLabeledSlotsExample from './avatar.labeled_links.example';
|
|
4
|
-
import AvatarLabeledTooltipExample from './avatar.labeled_tooltip.example';
|
|
5
|
-
|
|
6
|
-
var index = [{
|
|
7
|
-
name: 'Basic',
|
|
8
|
-
items: [{
|
|
9
|
-
id: 'avatar-labeled',
|
|
10
|
-
name: 'Avatar Labeled',
|
|
11
|
-
description: 'Avatar with text labels',
|
|
12
|
-
component: AvatarLabeledExample
|
|
13
|
-
}, {
|
|
14
|
-
id: 'avatar-labeled-tooltip',
|
|
15
|
-
name: 'With tooltip',
|
|
16
|
-
description: 'Avatar labeled with tooltip',
|
|
17
|
-
component: AvatarLabeledTooltipExample
|
|
18
|
-
}, {
|
|
19
|
-
id: 'avatar-labeled-badges',
|
|
20
|
-
name: 'With badges',
|
|
21
|
-
description: 'Avatar labeled with badges',
|
|
22
|
-
component: AvatarLabeledBadgesExample
|
|
23
|
-
}, {
|
|
24
|
-
id: 'avatar-labeled-links',
|
|
25
|
-
name: 'With label links',
|
|
26
|
-
description: 'Avatar labeled with links',
|
|
27
|
-
component: AvatarLabeledSlotsExample
|
|
28
|
-
}]
|
|
29
|
-
}];
|
|
30
|
-
|
|
31
|
-
export default index;
|