@gitlab/ui 36.6.0 → 36.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/base/form/form_radio_group/form_radio_group.documentation.js +2 -48
  3. package/dist/components/base/form/form_radio_group/form_radio_group.js +22 -2
  4. package/dist/components/base/pagination/pagination.js +1 -1
  5. package/dist/components/charts/heatmap/heatmap.documentation.js +0 -3
  6. package/dist/components/charts/series_label/series_label.documentation.js +2 -5
  7. package/documentation/documented_stories.js +3 -0
  8. package/package.json +3 -3
  9. package/src/components/base/form/form_radio_group/form_radio_group.documentation.js +0 -48
  10. package/src/components/base/form/form_radio_group/form_radio_group.md +0 -2
  11. package/src/components/base/form/form_radio_group/form_radio_group.stories.js +50 -29
  12. package/src/components/base/form/form_radio_group/form_radio_group.vue +22 -2
  13. package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +10 -10
  14. package/src/components/base/pagination/pagination.stories.js +5 -1
  15. package/src/components/base/pagination/pagination.vue +1 -1
  16. package/src/components/charts/heatmap/heatmap.documentation.js +0 -2
  17. package/src/components/charts/heatmap/heatmap.stories.js +59 -42
  18. package/src/components/charts/series_label/series_label.documentation.js +0 -2
  19. package/src/components/charts/series_label/series_label.md +0 -2
  20. package/src/components/charts/series_label/series_label.stories.js +62 -59
  21. package/dist/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.js +0 -59
  22. package/dist/components/base/form/form_radio_group/examples/form_radio_group.slots.example.js +0 -48
  23. package/dist/components/base/form/form_radio_group/examples/index.js +0 -17
  24. package/dist/components/charts/heatmap/examples/heatmap.custom_options.example.js +0 -79
  25. package/dist/components/charts/heatmap/examples/heatmap.hourly.example.js +0 -70
  26. package/dist/components/charts/heatmap/examples/heatmap.responsive.example.js +0 -70
  27. package/dist/components/charts/heatmap/examples/heatmap.totals.example.js +0 -62
  28. package/dist/components/charts/heatmap/examples/index.js +0 -31
  29. package/dist/components/charts/series_label/examples/index.js +0 -13
  30. package/dist/components/charts/series_label/examples/series_label.basic.example.js +0 -38
  31. package/src/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.vue +0 -27
  32. package/src/components/base/form/form_radio_group/examples/form_radio_group.slots.example.vue +0 -21
  33. package/src/components/base/form/form_radio_group/examples/index.js +0 -20
  34. package/src/components/charts/heatmap/examples/heatmap.custom_options.example.vue +0 -70
  35. package/src/components/charts/heatmap/examples/heatmap.hourly.example.vue +0 -62
  36. package/src/components/charts/heatmap/examples/heatmap.responsive.example.vue +0 -63
  37. package/src/components/charts/heatmap/examples/heatmap.totals.example.vue +0 -38
  38. package/src/components/charts/heatmap/examples/index.js +0 -36
  39. package/src/components/charts/series_label/examples/index.js +0 -15
  40. package/src/components/charts/series_label/examples/series_label.basic.example.vue +0 -3
@@ -1,6 +1,4 @@
1
- import { withKnobs, text } from '@storybook/addon-knobs';
2
1
  import { GlChartSeriesLabel } from '../../../charts';
3
- import { documentedStoriesOf } from '../../../../documentation/documented_stories';
4
2
  import { colorPaletteDefault } from '../../../utils/charts/theme';
5
3
  import {
6
4
  SERIES_NAME,
@@ -10,67 +8,72 @@ import {
10
8
  } from '../../../utils/stories_utils';
11
9
  import readme from './series_label.md';
12
10
 
13
- const components = {
14
- GlChartSeriesLabel,
15
- };
16
-
17
- const generateProps = ({ color = colorPaletteDefault[0], type = 'solid' } = {}) => ({
18
- color: {
19
- default: text('Color', color),
20
- },
21
- type: {
22
- default: text('Series Type', type),
23
- },
11
+ const generateProps = ({
12
+ color = colorPaletteDefault[0],
13
+ type = 'solid',
14
+ text = SERIES_NAME[SERIES_NAME_SHORT],
15
+ } = {}) => ({
16
+ color,
17
+ type,
18
+ text,
24
19
  });
25
20
 
26
- const template = `<gl-chart-series-label
21
+ const template = `
22
+ <gl-chart-series-label
27
23
  :color="color"
28
24
  :type="type"
29
25
  >
30
- {{$options.text}}
26
+ {{ text }}
31
27
  </gl-chart-series-label>`;
32
28
 
33
- documentedStoriesOf('charts/chart-series-label', readme)
34
- .addDecorator(withKnobs)
35
- .add('default', () => ({
36
- components,
37
- props: generateProps({ color: '' }),
38
- template,
39
- text: SERIES_NAME[SERIES_NAME_SHORT],
40
- }))
41
- .add('with long name', () => ({
42
- components,
43
- props: generateProps({ color: '' }),
44
- template,
45
- text: SERIES_NAME[SERIES_NAME_LONG],
46
- }))
47
- .add('with long name with no spaces', () => ({
48
- components,
49
- props: generateProps({ color: '' }),
50
- template,
51
- text: SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES],
52
- }))
53
- .add('with color dashed', () => ({
54
- components,
55
- props: generateProps({ type: 'dashed' }),
56
- template,
57
- text: SERIES_NAME[SERIES_NAME_SHORT],
58
- }))
59
- .add('with color', () => ({
60
- components,
61
- props: generateProps(),
62
- template,
63
- text: SERIES_NAME[SERIES_NAME_SHORT],
64
- }))
65
- .add('with color and long name', () => ({
66
- components,
67
- props: generateProps(),
68
- template,
69
- text: SERIES_NAME[SERIES_NAME_LONG],
70
- }))
71
- .add('with color and long name with no spaces', () => ({
72
- components,
73
- props: generateProps(),
74
- template,
75
- text: SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES],
76
- }));
29
+ const Template = (_args, { argTypes }) => ({
30
+ components: {
31
+ GlChartSeriesLabel,
32
+ },
33
+ props: Object.keys(argTypes),
34
+ template,
35
+ });
36
+
37
+ export const Default = Template.bind({});
38
+ Default.args = generateProps({ color: '' });
39
+
40
+ export const WithLongName = Template.bind({});
41
+ WithLongName.args = generateProps({ color: '', text: SERIES_NAME[SERIES_NAME_LONG] });
42
+
43
+ export const WithLongNameWithNoSpaces = Template.bind({});
44
+ WithLongNameWithNoSpaces.args = generateProps({
45
+ color: '',
46
+ text: SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES],
47
+ });
48
+
49
+ export const WithColorDashed = Template.bind({});
50
+ WithColorDashed.args = generateProps({ type: 'dashed', text: SERIES_NAME[SERIES_NAME_SHORT] });
51
+
52
+ export const WithColor = Template.bind({});
53
+ WithColor.args = generateProps({ text: SERIES_NAME[SERIES_NAME_SHORT] });
54
+
55
+ export const WithColorAndLongName = Template.bind({});
56
+ WithColorAndLongName.args = generateProps({ text: SERIES_NAME[SERIES_NAME_LONG] });
57
+
58
+ export const WithColorAndLongNameWithNoSpaces = Template.bind({});
59
+ WithColorAndLongNameWithNoSpaces.args = generateProps({
60
+ text: SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES],
61
+ });
62
+
63
+ export default {
64
+ title: 'charts/chart-series-label',
65
+ component: GlChartSeriesLabel,
66
+ parameters: {
67
+ knobs: { disable: true },
68
+ docs: {
69
+ description: {
70
+ component: readme,
71
+ },
72
+ },
73
+ },
74
+ argTypes: {
75
+ color: {
76
+ control: 'color',
77
+ },
78
+ },
79
+ };
@@ -1,59 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- selected: 'String option',
7
- options: ['String option', {
8
- text: 'Object option',
9
- value: 'object'
10
- }, {
11
- html: '<i>HTML</i> option',
12
- value: 'html'
13
- }, {
14
- text: 'Disabled option',
15
- value: 'disabledOption',
16
- disabled: true
17
- }]
18
- };
19
- }
20
-
21
- };
22
-
23
- /* script */
24
- const __vue_script__ = script;
25
-
26
- /* template */
27
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-radio-group',{attrs:{"options":_vm.options},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}})};
28
- var __vue_staticRenderFns__ = [];
29
-
30
- /* style */
31
- const __vue_inject_styles__ = undefined;
32
- /* scoped */
33
- const __vue_scope_id__ = undefined;
34
- /* module identifier */
35
- const __vue_module_identifier__ = undefined;
36
- /* functional template */
37
- const __vue_is_functional_template__ = false;
38
- /* style inject */
39
-
40
- /* style inject SSR */
41
-
42
- /* style inject shadow dom */
43
-
44
-
45
-
46
- const __vue_component__ = __vue_normalize__(
47
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
48
- __vue_inject_styles__,
49
- __vue_script__,
50
- __vue_scope_id__,
51
- __vue_is_functional_template__,
52
- __vue_module_identifier__,
53
- false,
54
- undefined,
55
- undefined,
56
- undefined
57
- );
58
-
59
- export default __vue_component__;
@@ -1,48 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- selected: 'one'
7
- };
8
- }
9
-
10
- };
11
-
12
- /* script */
13
- const __vue_script__ = script;
14
-
15
- /* template */
16
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-radio-group',{model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}},[_c('gl-form-radio',{attrs:{"value":"one"}},[_vm._v("One")]),_vm._v(" "),_c('gl-form-radio',{attrs:{"value":"two"},scopedSlots:_vm._u([{key:"help",fn:function(){return [_vm._v("Help text")]},proxy:true}])},[_vm._v("\n Two\n ")]),_vm._v(" "),_c('gl-form-radio',{attrs:{"value":"three"}},[_vm._v("Three")]),_vm._v(" "),_c('gl-form-radio',{attrs:{"value":"four","disabled":""}},[_vm._v("Disabled option")])],1)};
17
- var __vue_staticRenderFns__ = [];
18
-
19
- /* style */
20
- const __vue_inject_styles__ = undefined;
21
- /* scoped */
22
- const __vue_scope_id__ = undefined;
23
- /* module identifier */
24
- const __vue_module_identifier__ = undefined;
25
- /* functional template */
26
- const __vue_is_functional_template__ = false;
27
- /* style inject */
28
-
29
- /* style inject SSR */
30
-
31
- /* style inject shadow dom */
32
-
33
-
34
-
35
- const __vue_component__ = __vue_normalize__(
36
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
37
- __vue_inject_styles__,
38
- __vue_script__,
39
- __vue_scope_id__,
40
- __vue_is_functional_template__,
41
- __vue_module_identifier__,
42
- false,
43
- undefined,
44
- undefined,
45
- undefined
46
- );
47
-
48
- export default __vue_component__;
@@ -1,17 +0,0 @@
1
- import FormRadioGroupOptionsArray from './form_radio_group.options_array.example';
2
- import FormRadioGroupSlots from './form_radio_group.slots.example';
3
-
4
- var index = [{
5
- name: 'Radio Group',
6
- items: [{
7
- id: 'form-radio-group-slots',
8
- name: 'Form Radio Group using Slots',
9
- component: FormRadioGroupSlots
10
- }, {
11
- id: 'form-radio-group-options-array',
12
- name: 'Form Radio Group using Options Array',
13
- component: FormRadioGroupOptionsArray
14
- }]
15
- }];
16
-
17
- export default index;
@@ -1,79 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- series: (() => {
7
- const hours = 24;
8
- const days = 7;
9
- const res = [];
10
-
11
- for (let x = 0; x < hours; x += 1) {
12
- for (let y = 0; y < days; y += 1) {
13
- let val = Math.random() * 10;
14
-
15
- if (Math.random() > 0.5) {
16
- val = '-';
17
- }
18
-
19
- res.push([x, y, val]);
20
- }
21
- }
22
-
23
- return res;
24
- })(),
25
- xAxisLabels: ['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'],
26
- yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun']
27
- };
28
- }
29
-
30
- };
31
-
32
- /* script */
33
- const __vue_script__ = script;
34
-
35
- /* template */
36
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-heatmap',{attrs:{"data-series":_vm.series,"x-axis-labels":_vm.xAxisLabels,"y-axis-labels":_vm.yAxisLabels,"options":{
37
- xAxis: {
38
- splitArea: {
39
- show: false,
40
- },
41
- },
42
- yAxis: {
43
- splitArea: {
44
- show: false,
45
- },
46
- },
47
- }}})};
48
- var __vue_staticRenderFns__ = [];
49
-
50
- /* style */
51
- const __vue_inject_styles__ = undefined;
52
- /* scoped */
53
- const __vue_scope_id__ = undefined;
54
- /* module identifier */
55
- const __vue_module_identifier__ = undefined;
56
- /* functional template */
57
- const __vue_is_functional_template__ = false;
58
- /* style inject */
59
-
60
- /* style inject SSR */
61
-
62
- /* style inject shadow dom */
63
-
64
-
65
-
66
- const __vue_component__ = __vue_normalize__(
67
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
68
- __vue_inject_styles__,
69
- __vue_script__,
70
- __vue_scope_id__,
71
- __vue_is_functional_template__,
72
- __vue_module_identifier__,
73
- false,
74
- undefined,
75
- undefined,
76
- undefined
77
- );
78
-
79
- export default __vue_component__;
@@ -1,70 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- series: (() => {
7
- const hours = 24;
8
- const days = 7;
9
- const res = [];
10
-
11
- for (let x = 0; x < hours; x += 1) {
12
- for (let y = 0; y < days; y += 1) {
13
- let val = Math.random() * 10;
14
-
15
- if (Math.random() > 0.7) {
16
- val = '-';
17
- }
18
-
19
- res.push([x, y, val]);
20
- }
21
- }
22
-
23
- return res;
24
- })(),
25
- xAxisLabels: ['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'],
26
- yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
27
- xAxisName: 'Hour',
28
- yAxisName: 'Day'
29
- };
30
- }
31
-
32
- };
33
-
34
- /* script */
35
- const __vue_script__ = script;
36
-
37
- /* template */
38
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-heatmap',{attrs:{"data-series":_vm.series,"x-axis-labels":_vm.xAxisLabels,"y-axis-labels":_vm.yAxisLabels,"x-axis-name":_vm.xAxisName,"y-axis-name":_vm.yAxisName}})};
39
- var __vue_staticRenderFns__ = [];
40
-
41
- /* style */
42
- const __vue_inject_styles__ = undefined;
43
- /* scoped */
44
- const __vue_scope_id__ = undefined;
45
- /* module identifier */
46
- const __vue_module_identifier__ = undefined;
47
- /* functional template */
48
- const __vue_is_functional_template__ = false;
49
- /* style inject */
50
-
51
- /* style inject SSR */
52
-
53
- /* style inject shadow dom */
54
-
55
-
56
-
57
- const __vue_component__ = __vue_normalize__(
58
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
59
- __vue_inject_styles__,
60
- __vue_script__,
61
- __vue_scope_id__,
62
- __vue_is_functional_template__,
63
- __vue_module_identifier__,
64
- false,
65
- undefined,
66
- undefined,
67
- undefined
68
- );
69
-
70
- export default __vue_component__;
@@ -1,70 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- series: (() => {
7
- const hours = 24;
8
- const days = 7;
9
- const res = [];
10
-
11
- for (let x = 0; x < hours; x += 1) {
12
- for (let y = 0; y < days; y += 1) {
13
- let val = Math.random() * 10;
14
-
15
- if (Math.random() > 0.7) {
16
- val = '-';
17
- }
18
-
19
- res.push([x, y, val]);
20
- }
21
- }
22
-
23
- return res;
24
- })(),
25
- xAxisLabels: ['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'],
26
- yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
27
- xAxisName: 'Hour',
28
- yAxisName: 'Day'
29
- };
30
- }
31
-
32
- };
33
-
34
- /* script */
35
- const __vue_script__ = script;
36
-
37
- /* template */
38
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-heatmap',{attrs:{"data-series":_vm.series,"x-axis-labels":_vm.xAxisLabels,"y-axis-labels":_vm.yAxisLabels,"x-axis-name":_vm.xAxisName,"y-axis-name":_vm.yAxisName,"responsive":false}})};
39
- var __vue_staticRenderFns__ = [];
40
-
41
- /* style */
42
- const __vue_inject_styles__ = undefined;
43
- /* scoped */
44
- const __vue_scope_id__ = undefined;
45
- /* module identifier */
46
- const __vue_module_identifier__ = undefined;
47
- /* functional template */
48
- const __vue_is_functional_template__ = false;
49
- /* style inject */
50
-
51
- /* style inject SSR */
52
-
53
- /* style inject shadow dom */
54
-
55
-
56
-
57
- const __vue_component__ = __vue_normalize__(
58
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
59
- __vue_inject_styles__,
60
- __vue_script__,
61
- __vue_scope_id__,
62
- __vue_is_functional_template__,
63
- __vue_module_identifier__,
64
- false,
65
- undefined,
66
- undefined,
67
- undefined
68
- );
69
-
70
- export default __vue_component__;
@@ -1,62 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- series: (() => {
7
- const hours = 12;
8
- const days = 20;
9
- const res = [];
10
-
11
- for (let x = 0; x < hours; x += 1) {
12
- for (let y = 0; y < days; y += 1) {
13
- const val = Math.ceil(Math.random() * (y % 12) - 3);
14
- res.push([x, y, val]);
15
- }
16
- }
17
-
18
- return res;
19
- })(),
20
- xAxisLabels: ['7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm']
21
- };
22
- }
23
-
24
- };
25
-
26
- /* script */
27
- const __vue_script__ = script;
28
-
29
- /* template */
30
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-heatmap',{attrs:{"title":"Pageviews per hour","data-series":_vm.series,"x-axis-labels":_vm.xAxisLabels}})};
31
- var __vue_staticRenderFns__ = [];
32
-
33
- /* style */
34
- const __vue_inject_styles__ = undefined;
35
- /* scoped */
36
- const __vue_scope_id__ = undefined;
37
- /* module identifier */
38
- const __vue_module_identifier__ = undefined;
39
- /* functional template */
40
- const __vue_is_functional_template__ = false;
41
- /* style inject */
42
-
43
- /* style inject SSR */
44
-
45
- /* style inject shadow dom */
46
-
47
-
48
-
49
- const __vue_component__ = __vue_normalize__(
50
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
51
- __vue_inject_styles__,
52
- __vue_script__,
53
- __vue_scope_id__,
54
- __vue_is_functional_template__,
55
- __vue_module_identifier__,
56
- false,
57
- undefined,
58
- undefined,
59
- undefined
60
- );
61
-
62
- export default __vue_component__;
@@ -1,31 +0,0 @@
1
- import CustomOptionsExample from './heatmap.custom_options.example';
2
- import HourlyExample from './heatmap.hourly.example';
3
- import CustomResponsiveExample from './heatmap.responsive.example';
4
- import TotalsExample from './heatmap.totals.example';
5
-
6
- var index = [{
7
- name: 'Calendar',
8
- items: [{
9
- id: 'heatmap-hourly',
10
- name: 'Hourly breakdown',
11
- description: 'HourlyExample',
12
- component: HourlyExample
13
- }, {
14
- id: 'heatmap-totals',
15
- name: 'Histograms over time',
16
- description: 'TotalsExample',
17
- component: TotalsExample
18
- }, {
19
- id: 'heatmap-custom-options',
20
- name: 'Heatmap with no background',
21
- description: 'CustomOptionsExample',
22
- component: CustomOptionsExample
23
- }, {
24
- id: 'heatmap-responsive',
25
- name: 'Heatmap which is non mobile responsive',
26
- description: 'CustomResponsiveExample',
27
- component: CustomResponsiveExample
28
- }]
29
- }];
30
-
31
- export default index;
@@ -1,13 +0,0 @@
1
- import SeriesLabelBasicExample from './series_label.basic.example';
2
-
3
- var index = [{
4
- name: 'Basic',
5
- items: [{
6
- id: 'series-label-basic',
7
- name: 'Basic',
8
- description: 'Basic Series Label',
9
- component: SeriesLabelBasicExample
10
- }]
11
- }];
12
-
13
- export default index;
@@ -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-chart-series-label',{attrs:{"color":"#1F78D1"}},[_vm._v("Series Name")])};
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,27 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- selected: 'String option',
6
- options: [
7
- 'String option',
8
- { text: 'Object option', value: 'object' },
9
- { html: '<i>HTML</i> option', value: 'html' },
10
- { text: 'Disabled option', value: 'disabledOption', disabled: true },
11
- ],
12
- };
13
- },
14
- };
15
- </script>
16
-
17
- <template>
18
- <!--
19
- options: [
20
- 'String option',
21
- { text: 'Object option', value: 'object' },
22
- { html: '<i>HTML</i> option', value: 'html' },
23
- { text: 'Disabled option', value: 'disabledOption', disabled: true },
24
- ],
25
- -->
26
- <gl-form-radio-group v-model="selected" :options="options" />
27
- </template>
@@ -1,21 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- selected: 'one',
6
- };
7
- },
8
- };
9
- </script>
10
-
11
- <template>
12
- <gl-form-radio-group v-model="selected">
13
- <gl-form-radio value="one">One</gl-form-radio>
14
- <gl-form-radio value="two">
15
- Two
16
- <template #help>Help text</template>
17
- </gl-form-radio>
18
- <gl-form-radio value="three">Three</gl-form-radio>
19
- <gl-form-radio value="four" disabled>Disabled option</gl-form-radio>
20
- </gl-form-radio-group>
21
- </template>