@gitlab/ui 37.0.0 → 37.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/base/drawer/drawer.documentation.js +1 -1
  3. package/dist/components/base/form/form_input_group/form_input_group.documentation.js +2 -26
  4. package/dist/components/base/form/form_input_group/form_input_group.js +7 -0
  5. package/dist/components/base/loading_icon/loading_icon.js +1 -1
  6. package/dist/components/base/pagination/pagination.js +23 -2
  7. package/dist/components/base/path/data.js +2 -1
  8. package/dist/components/base/path/path.js +14 -7
  9. package/dist/components/base/tabs/tab/tab.js +4 -0
  10. package/dist/components/base/tabs/tabs/tabs.documentation.js +2 -14
  11. package/dist/components/base/tabs/tabs/tabs.js +8 -0
  12. package/dist/components/charts/legend/legend.js +12 -0
  13. package/dist/directives/safe_html/safe_html.documentation.js +1 -1
  14. package/dist/directives/safe_link/safe_link.documentation.js +2 -3
  15. package/dist/index.css +1 -1
  16. package/dist/index.css.map +1 -1
  17. package/dist/utility_classes.css +1 -1
  18. package/dist/utility_classes.css.map +1 -1
  19. package/documentation/components_documentation.js +0 -2
  20. package/documentation/documented_stories.js +6 -0
  21. package/package.json +1 -1
  22. package/src/components/base/drawer/drawer.documentation.js +1 -1
  23. package/src/components/base/form/form_input_group/form_input_group.documentation.js +0 -28
  24. package/src/components/base/form/form_input_group/form_input_group.md +0 -4
  25. package/src/components/base/form/form_input_group/form_input_group.stories.js +84 -62
  26. package/src/components/base/form/form_input_group/form_input_group.vue +9 -0
  27. package/src/components/base/loading_icon/loading_icon.vue +1 -1
  28. package/src/components/base/pagination/pagination.spec.js +12 -2
  29. package/src/components/base/pagination/pagination.vue +23 -6
  30. package/src/components/base/path/__snapshots__/path.spec.js.snap +6 -0
  31. package/src/components/base/path/data.js +1 -0
  32. package/src/components/base/path/path.scss +6 -1
  33. package/src/components/base/path/path.spec.js +20 -0
  34. package/src/components/base/path/path.vue +18 -7
  35. package/src/components/base/tabs/tab/tab.vue +4 -0
  36. package/src/components/base/tabs/tabs/tabs.documentation.js +0 -12
  37. package/src/components/base/tabs/tabs/tabs.md +2 -7
  38. package/src/components/base/tabs/tabs/tabs.stories.js +219 -161
  39. package/src/components/base/tabs/tabs/tabs.vue +6 -0
  40. package/src/components/charts/legend/legend.stories.js +22 -15
  41. package/src/components/charts/legend/legend.vue +9 -0
  42. package/src/directives/safe_html/safe_html.md +0 -4
  43. package/src/directives/safe_html/safe_html.stories.js +53 -44
  44. package/src/directives/safe_link/safe_link.documentation.js +0 -1
  45. package/src/directives/safe_link/safe_link.md +0 -4
  46. package/src/directives/safe_link/safe_link.stories.js +31 -30
  47. package/src/scss/utilities.scss +8 -0
  48. package/src/scss/utility-mixins/background.scss +4 -0
  49. package/dist/components/base/form/form_input_group/examples/form_input_group.basic.example.js +0 -38
  50. package/dist/components/base/form/form_input_group/examples/form_input_group.predefined_options.example.js +0 -54
  51. package/dist/components/base/form/form_input_group/examples/form_input_group.predefined_reactive.example.js +0 -55
  52. package/dist/components/base/form/form_input_group/examples/form_input_group.reactive.example.js +0 -48
  53. package/dist/components/base/form/form_input_group/examples/index.js +0 -27
  54. package/dist/components/base/tabs/tab/examples/index.js +0 -13
  55. package/dist/components/base/tabs/tab/examples/tab.basic.example.js +0 -38
  56. package/dist/components/base/tabs/tab/tab.documentation.js +0 -18
  57. package/dist/components/base/tabs/tabs/examples/index.js +0 -60
  58. package/dist/components/base/tabs/tabs/examples/tabs.basic.example.js +0 -38
  59. package/dist/components/base/tabs/tabs/examples/tabs.contentless_tab.example.js +0 -38
  60. package/dist/components/base/tabs/tabs/examples/tabs.counterbadges.example.js +0 -38
  61. package/dist/components/base/tabs/tabs/examples/tabs.custom_title.example.js +0 -38
  62. package/dist/components/base/tabs/tabs/examples/tabs.disabled.example.js +0 -38
  63. package/dist/components/base/tabs/tabs/examples/tabs.justified.example.js +0 -38
  64. package/dist/components/base/tabs/tabs/examples/tabs.no_tabs.example.js +0 -38
  65. package/dist/components/base/tabs/tabs/examples/tabs.scrollable.example.js +0 -47
  66. package/dist/components/base/tabs/tabs/examples/tabs.styles_only.example.js +0 -38
  67. package/dist/components/charts/legend/examples/index.js +0 -22
  68. package/dist/components/charts/legend/examples/legend.basic.example.js +0 -93
  69. package/dist/components/charts/legend/examples/legend.toggled.example.js +0 -100
  70. package/dist/components/charts/legend/legend.documentation.js +0 -21
  71. package/src/components/base/form/form_input_group/examples/form_input_group.basic.example.vue +0 -10
  72. package/src/components/base/form/form_input_group/examples/form_input_group.predefined_options.example.vue +0 -25
  73. package/src/components/base/form/form_input_group/examples/form_input_group.predefined_reactive.example.vue +0 -32
  74. package/src/components/base/form/form_input_group/examples/form_input_group.reactive.example.vue +0 -25
  75. package/src/components/base/form/form_input_group/examples/index.js +0 -32
  76. package/src/components/base/tabs/tab/examples/index.js +0 -15
  77. package/src/components/base/tabs/tab/examples/tab.basic.example.vue +0 -5
  78. package/src/components/base/tabs/tab/tab.documentation.js +0 -16
  79. package/src/components/base/tabs/tab/tab.md +0 -3
  80. package/src/components/base/tabs/tab/tab.stories.js +0 -12
  81. package/src/components/base/tabs/tabs/examples/index.js +0 -72
  82. package/src/components/base/tabs/tabs/examples/tabs.basic.example.vue +0 -6
  83. package/src/components/base/tabs/tabs/examples/tabs.contentless_tab.example.vue +0 -17
  84. package/src/components/base/tabs/tabs/examples/tabs.counterbadges.example.vue +0 -28
  85. package/src/components/base/tabs/tabs/examples/tabs.custom_title.example.vue +0 -9
  86. package/src/components/base/tabs/tabs/examples/tabs.disabled.example.vue +0 -7
  87. package/src/components/base/tabs/tabs/examples/tabs.justified.example.vue +0 -6
  88. package/src/components/base/tabs/tabs/examples/tabs.no_tabs.example.vue +0 -8
  89. package/src/components/base/tabs/tabs/examples/tabs.scrollable.example.vue +0 -20
  90. package/src/components/base/tabs/tabs/examples/tabs.styles_only.example.vue +0 -22
  91. package/src/components/charts/legend/examples/index.js +0 -27
  92. package/src/components/charts/legend/examples/legend.basic.example.vue +0 -55
  93. package/src/components/charts/legend/examples/legend.toggled.example.vue +0 -60
  94. package/src/components/charts/legend/legend.documentation.js +0 -19
  95. package/src/components/charts/legend/legend.md +0 -0
@@ -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-tabs',{attrs:{"justified":""}},[_c('gl-tab',{attrs:{"title":"Tab 1"}},[_vm._v("Tab panel 1")]),_vm._v(" "),_c('gl-tab',{attrs:{"title":"Tab 2"}},[_vm._v("Tab panel 2")])],1)};
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-tabs',{scopedSlots:_vm._u([{key:"empty",fn:function(){return [_vm._v("\n This content is only displayed when there are no tabs. Useful for dynamically added/removed\n tabs.\n ")]},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,47 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- tabs: Array(20).fill(1).map((_, index) => index + 1).map(id => ({
5
- id,
6
- title: `Tab ${id}`,
7
- content: `Tab panel ${id} content...`
8
- }))
9
- };
10
-
11
- /* script */
12
- const __vue_script__ = script;
13
-
14
- /* template */
15
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-scrollable-tabs',_vm._l((_vm.$options.tabs),function(tab){return _c('gl-tab',{key:tab.id,attrs:{"title":tab.title}},[_vm._v("\n "+_vm._s(tab.content)+"\n ")])}),1)};
16
- var __vue_staticRenderFns__ = [];
17
-
18
- /* style */
19
- const __vue_inject_styles__ = undefined;
20
- /* scoped */
21
- const __vue_scope_id__ = undefined;
22
- /* module identifier */
23
- const __vue_module_identifier__ = undefined;
24
- /* functional template */
25
- const __vue_is_functional_template__ = false;
26
- /* style inject */
27
-
28
- /* style inject SSR */
29
-
30
- /* style inject shadow dom */
31
-
32
-
33
-
34
- const __vue_component__ = __vue_normalize__(
35
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
36
- __vue_inject_styles__,
37
- __vue_script__,
38
- __vue_scope_id__,
39
- __vue_is_functional_template__,
40
- __vue_module_identifier__,
41
- false,
42
- undefined,
43
- undefined,
44
- undefined
45
- );
46
-
47
- 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;_vm._self._c||_h;return _vm._m(0)};
7
- var __vue_staticRenderFns__ = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tabs gl-tabs"},[_c('ul',{staticClass:"nav gl-tabs-nav",attrs:{"role":"tablist"}},[_c('li',{staticClass:"nav-item",attrs:{"role":"presentation"}},[_c('a',{staticClass:"nav-link gl-tab-nav-item gl-tab-nav-item-active gl-tab-nav-item-active-indigo",attrs:{"role":"tab","target":"_self","href":"#"}},[_vm._v("Tab 1")])]),_vm._v(" "),_c('li',{staticClass:"nav-item",attrs:{"role":"presentation"}},[_c('a',{staticClass:"nav-link gl-tab-nav-item",attrs:{"role":"tab","target":"_self","href":"#"}},[_vm._v("Tab 2")])])]),_vm._v(" "),_c('div',{staticClass:"tab-content gl-tab-content"},[_c('div',{staticClass:"tab-pane active",attrs:{"role":"tabpanel"}},[_vm._v("Tab panel 1")]),_vm._v(" "),_c('div',{staticClass:"tab-pane",attrs:{"role":"tabpanel"}},[_vm._v("Tab panel 2")])])])}];
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,22 +0,0 @@
1
- import LegendBasicExample from './legend.basic.example';
2
- import LegendToggledExample from './legend.toggled.example';
3
-
4
- var index = [{
5
- name: 'Basic',
6
- items: [{
7
- id: 'chart-legend-basic',
8
- name: 'Basic',
9
- description: 'Basic Chart Legend',
10
- component: LegendBasicExample
11
- }]
12
- }, {
13
- name: 'Toggled',
14
- items: [{
15
- id: 'chart-legend-toggled',
16
- name: 'Toggled',
17
- description: 'Toggled Chart Legend',
18
- component: LegendToggledExample
19
- }]
20
- }];
21
-
22
- export default index;
@@ -1,93 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- chart: null,
7
- options: {
8
- legend: {
9
- show: false
10
- },
11
- xAxis: {
12
- type: 'category',
13
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
14
- },
15
- yAxis: {
16
- type: 'value'
17
- },
18
- // Generate the series with generateSeriesData() after
19
- // https://gitlab.com/gitlab-org/gitlab-ui/-/issues/754
20
- // gets implemented
21
- series: [{
22
- color: '#1f75cb',
23
- data: [820, 932, 960, 1150, 1290, 1330, 1390],
24
- name: 'Series 1',
25
- showSymbol: true,
26
- type: 'line'
27
- }, {
28
- color: '#108548',
29
- data: [1640, 1864, 1920, 2300, 2580, 2660, 2780],
30
- name: 'Series 2',
31
- showSymbol: true,
32
- type: 'line'
33
- }]
34
- }
35
- };
36
- },
37
-
38
- computed: {
39
- seriesData() {
40
- return this.options.series.map(series => ({
41
- type: 'solid',
42
- name: series.name,
43
- color: series.color,
44
- data: series.data
45
- }));
46
- }
47
-
48
- },
49
- methods: {
50
- onCreated(chart) {
51
- this.chart = chart;
52
- }
53
-
54
- }
55
- };
56
-
57
- /* script */
58
- const __vue_script__ = script;
59
-
60
- /* template */
61
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('gl-chart',{attrs:{"options":_vm.options},on:{"created":_vm.onCreated}}),_vm._v(" "),(_vm.chart)?_c('gl-chart-legend',{attrs:{"chart":_vm.chart,"series-info":_vm.seriesData}}):_vm._e()],1)};
62
- var __vue_staticRenderFns__ = [];
63
-
64
- /* style */
65
- const __vue_inject_styles__ = undefined;
66
- /* scoped */
67
- const __vue_scope_id__ = undefined;
68
- /* module identifier */
69
- const __vue_module_identifier__ = undefined;
70
- /* functional template */
71
- const __vue_is_functional_template__ = false;
72
- /* style inject */
73
-
74
- /* style inject SSR */
75
-
76
- /* style inject shadow dom */
77
-
78
-
79
-
80
- const __vue_component__ = __vue_normalize__(
81
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
82
- __vue_inject_styles__,
83
- __vue_script__,
84
- __vue_scope_id__,
85
- __vue_is_functional_template__,
86
- __vue_module_identifier__,
87
- false,
88
- undefined,
89
- undefined,
90
- undefined
91
- );
92
-
93
- export default __vue_component__;
@@ -1,100 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- chart: null,
7
- options: {
8
- legend: {
9
- show: false
10
- },
11
- xAxis: {
12
- type: 'category',
13
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
14
- },
15
- yAxis: {
16
- type: 'value'
17
- },
18
- // Generate the series with generateSeriesData() after
19
- // https://gitlab.com/gitlab-org/gitlab-ui/-/issues/754
20
- // gets implemented
21
- series: [{
22
- color: '#1f75cb',
23
- data: [820, 932, 960, 1150, 1290, 1330, 1390],
24
- name: 'Toggled Series 1',
25
- showSymbol: true,
26
- type: 'line'
27
- }, {
28
- color: '#108548',
29
- data: [1640, 1864, 1920, 2300, 2580, 2660, 2780],
30
- name: 'Series 2',
31
- showSymbol: true,
32
- type: 'line'
33
- }]
34
- }
35
- };
36
- },
37
-
38
- computed: {
39
- seriesData() {
40
- return this.options.series.map(series => ({
41
- type: 'solid',
42
- name: series.name,
43
- color: series.color,
44
- data: series.data
45
- }));
46
- }
47
-
48
- },
49
-
50
- mounted() {
51
- this.$nextTick(() => {
52
- document.querySelector('#js-chart-legend [role=button]').click();
53
- });
54
- },
55
-
56
- methods: {
57
- onCreated(chart) {
58
- this.chart = chart;
59
- }
60
-
61
- }
62
- };
63
-
64
- /* script */
65
- const __vue_script__ = script;
66
-
67
- /* template */
68
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('gl-chart',{attrs:{"options":_vm.options},on:{"created":_vm.onCreated}}),_vm._v(" "),(_vm.chart)?_c('gl-chart-legend',{attrs:{"id":"js-chart-legend","chart":_vm.chart,"series-info":_vm.seriesData}}):_vm._e()],1)};
69
- var __vue_staticRenderFns__ = [];
70
-
71
- /* style */
72
- const __vue_inject_styles__ = undefined;
73
- /* scoped */
74
- const __vue_scope_id__ = undefined;
75
- /* module identifier */
76
- const __vue_module_identifier__ = undefined;
77
- /* functional template */
78
- const __vue_is_functional_template__ = false;
79
- /* style inject */
80
-
81
- /* style inject SSR */
82
-
83
- /* style inject shadow dom */
84
-
85
-
86
-
87
- const __vue_component__ = __vue_normalize__(
88
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
89
- __vue_inject_styles__,
90
- __vue_script__,
91
- __vue_scope_id__,
92
- __vue_is_functional_template__,
93
- __vue_module_identifier__,
94
- false,
95
- undefined,
96
- undefined,
97
- undefined
98
- );
99
-
100
- export default __vue_component__;
@@ -1,21 +0,0 @@
1
- import examples from './examples';
2
-
3
- var description = "";
4
-
5
- var legend_documentation = {
6
- description,
7
- examples,
8
- propsInfo: {
9
- averageText: {
10
- additionalInfo: 'Text for data average (overridden by prop if needed for internationalization)'
11
- },
12
- maxText: {
13
- additionalInfo: 'Text for max amount (overridden by prop if needed for internationalization)'
14
- },
15
- layout: {
16
- additionalInfo: 'Sets the display layout'
17
- }
18
- }
19
- };
20
-
21
- export default legend_documentation;
@@ -1,10 +0,0 @@
1
- <template>
2
- <gl-form-input-group>
3
- <template #prepend>
4
- <gl-input-group-text>Username</gl-input-group-text>
5
- </template>
6
- <template #append>
7
- <gl-button variant="success">Add</gl-button>
8
- </template>
9
- </gl-form-input-group>
10
- </template>
@@ -1,25 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- optionValues: [
6
- { name: 'Embed', value: 'https://embed.com' },
7
- { name: 'Share', value: 'https://share.org' },
8
- ],
9
- };
10
- },
11
- };
12
- </script>
13
- <template>
14
- <!--
15
- optionValues = [
16
- { name: 'Embed', value: 'https://embed.com' },
17
- { name: 'Share', value: 'https://share.org' },
18
- ]
19
- -->
20
- <gl-form-input-group :predefined-options="optionValues">
21
- <template #append>
22
- <gl-button variant="success">Add</gl-button>
23
- </template>
24
- </gl-form-input-group>
25
- </template>
@@ -1,32 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- testVal: 'foo',
6
- optionValues: [
7
- { name: 'Embed', value: 'https://embed.com' },
8
- { name: 'Share', value: 'https://share.org' },
9
- ],
10
- };
11
- },
12
- };
13
- </script>
14
- <template>
15
- <!--
16
- optionValues = [
17
- { name: 'Embed', value: 'https://embed.com' },
18
- { name: 'Share', value: 'https://share.org' },
19
- ]
20
- -->
21
- <div>
22
- <label>
23
- Data outside of the component
24
- <input v-model="testVal" type="text" class="gl-form-input" />
25
- </label>
26
- <gl-form-input-group v-model="testVal" :predefined-options="optionValues">
27
- <template #append>
28
- <gl-button variant="success">Add</gl-button>
29
- </template>
30
- </gl-form-input-group>
31
- </div>
32
- </template>
@@ -1,25 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- testVal: 'foo',
6
- };
7
- },
8
- };
9
- </script>
10
- <template>
11
- <div>
12
- <label>
13
- Data outside of the component
14
- <gl-form-input v-model="testVal" type="text" />
15
- </label>
16
- <gl-form-input-group v-model="testVal">
17
- <template #prepend>
18
- <gl-input-group-text>Username</gl-input-group-text>
19
- </template>
20
- <template #append>
21
- <gl-button variant="success">Add</gl-button>
22
- </template>
23
- </gl-form-input-group>
24
- </div>
25
- </template>
@@ -1,32 +0,0 @@
1
- import BasicExample from './form_input_group.basic.example.vue';
2
- import PredefinedOptionsExample from './form_input_group.predefined_options.example.vue';
3
- import PredefinedReactiveExample from './form_input_group.predefined_reactive.example.vue';
4
- import ReactiveExample from './form_input_group.reactive.example.vue';
5
-
6
- export default [
7
- {
8
- name: 'Text Input Group',
9
- items: [
10
- {
11
- id: 'input-text-group',
12
- name: 'Basic',
13
- component: BasicExample,
14
- },
15
- {
16
- id: 'input-text-group-reactive',
17
- name: 'Reactive update of/from the component',
18
- component: ReactiveExample,
19
- },
20
- {
21
- id: 'input-text-group-predefined-options',
22
- name: 'With predefined options',
23
- component: PredefinedOptionsExample,
24
- },
25
- {
26
- id: 'input-text-group-predefined-reactive',
27
- name: 'With predefined options and reactive updates',
28
- component: PredefinedReactiveExample,
29
- },
30
- ],
31
- },
32
- ];
@@ -1,15 +0,0 @@
1
- import BasicTabExample from './tab.basic.example.vue';
2
-
3
- export default [
4
- {
5
- name: 'Basic',
6
- items: [
7
- {
8
- id: 'tab-basic',
9
- name: 'Basic',
10
- description: 'Basic Tab',
11
- component: BasicTabExample,
12
- },
13
- ],
14
- },
15
- ];
@@ -1,5 +0,0 @@
1
- <template>
2
- <gl-tabs>
3
- <gl-tab title="First">first content</gl-tab>
4
- </gl-tabs>
5
- </template>
@@ -1,16 +0,0 @@
1
- import examples from './examples';
2
- import description from './tab.md';
3
-
4
- export default {
5
- description,
6
- examples,
7
- bootstrapComponent: 'b-tab',
8
- followsDesignSystem: true,
9
- propsInfo: {
10
- queryParamValue: {
11
- additionalInfo:
12
- 'Query string parameter value to use when `gl-tabs` `sync-active-tab-with-query-params` prop is set to `true`.',
13
- type: String,
14
- },
15
- },
16
- };
@@ -1,3 +0,0 @@
1
- ### GlTab Component cannot be used alone
2
-
3
- It must be used with `tabs` as the parent
@@ -1,12 +0,0 @@
1
- import { documentedStoriesOf } from '../../../../../documentation/documented_stories';
2
-
3
- const template = `
4
- <div>
5
- <h3>The Tab component should not be used on its own</h3>
6
- <p><code>&lt;gl-tab /&gt;</code> can only be used with <code>&lt;gl-tabs /&gt;</code> as the immediate parent</p>
7
- </div>
8
- `;
9
-
10
- documentedStoriesOf('base/tabs/tab', '').add('default', () => ({
11
- template,
12
- }));
@@ -1,72 +0,0 @@
1
- import BasicTabsExample from './tabs.basic.example.vue';
2
- import ContentlessTabExample from './tabs.contentless_tab.example.vue';
3
- import TabsWithCounterBadgesExample from './tabs.counterbadges.example.vue';
4
- import CustomTitleExample from './tabs.custom_title.example.vue';
5
- import DisabledTabExample from './tabs.disabled.example.vue';
6
- import JustifiedTabsExample from './tabs.justified.example.vue';
7
- import NoTabsExample from './tabs.no_tabs.example.vue';
8
- import TabsScrollableExample from './tabs.scrollable.example.vue';
9
- import TabsStylesOnlyExample from './tabs.styles_only.example.vue';
10
-
11
- export default [
12
- {
13
- name: 'Basic',
14
- items: [
15
- {
16
- id: 'tabs-basic',
17
- name: 'Basic',
18
- description: 'Basic Tabs',
19
- component: BasicTabsExample,
20
- },
21
- {
22
- id: 'tabs-disabled',
23
- name: 'Disabled',
24
- description: 'Disabled Tab',
25
- component: DisabledTabExample,
26
- },
27
- {
28
- id: 'tabs-custom-title',
29
- name: 'Custom Title',
30
- description: 'Custom Title Tab',
31
- component: CustomTitleExample,
32
- },
33
- {
34
- id: 'tabs-contentless-tab',
35
- name: 'Contentless Tab',
36
- description: 'Contentless Tab',
37
- component: ContentlessTabExample,
38
- },
39
- {
40
- id: 'tabs-no-tabs',
41
- name: 'Empty state when no tabs',
42
- description: 'Empty state/content for when there are no tabs',
43
- component: NoTabsExample,
44
- },
45
- {
46
- id: 'tabs-with-counter-badges',
47
- name: 'Tabs with counter badges',
48
- component: TabsWithCounterBadgesExample,
49
- },
50
- {
51
- id: 'tabs-styles-only',
52
- name: 'Tabs styles only',
53
- component: TabsStylesOnlyExample,
54
- },
55
- {
56
- id: 'justified-tabs',
57
- name: 'Justified tabs',
58
- component: JustifiedTabsExample,
59
- },
60
- ],
61
- },
62
- {
63
- name: 'Scrollable',
64
- items: [
65
- {
66
- id: 'tabs-scrollable',
67
- name: 'Scrollable tabs with lots of tabs',
68
- component: TabsScrollableExample,
69
- },
70
- ],
71
- },
72
- ];
@@ -1,6 +0,0 @@
1
- <template>
2
- <gl-tabs>
3
- <gl-tab title="Tab 1">Tab panel 1</gl-tab>
4
- <gl-tab title="Tab 2">Tab panel 2</gl-tab>
5
- </gl-tabs>
6
- </template>