@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.
Files changed (128) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/base/avatar_labeled/avatar_labeled.documentation.js +2 -9
  3. package/dist/components/base/avatars_inline/avatars_inline.documentation.js +2 -5
  4. package/dist/components/base/form/form_combobox/form_combobox.documentation.js +2 -9
  5. package/dist/components/base/form/form_combobox/form_combobox.js +5 -0
  6. package/dist/components/base/form/form_radio/form_radio.documentation.js +2 -33
  7. package/dist/components/base/form/form_radio/form_radio.js +15 -2
  8. package/dist/components/base/form/input_group_text/input_group_text.documentation.js +1 -5
  9. package/dist/components/base/keyset_pagination/keyset_pagination.documentation.js +2 -84
  10. package/dist/components/base/keyset_pagination/keyset_pagination.js +42 -0
  11. package/dist/components/base/modal/modal.documentation.js +2 -32
  12. package/dist/components/base/modal/modal.js +1 -1
  13. package/dist/components/charts/gauge/gauge.documentation.js +2 -6
  14. package/dist/components/charts/tooltip/tooltip.documentation.js +1 -5
  15. package/dist/components/utilities/intersperse/intersperse.documentation.js +2 -5
  16. package/documentation/documented_stories.js +10 -0
  17. package/package.json +3 -3
  18. package/src/components/base/avatar_labeled/avatar_labeled.documentation.js +0 -9
  19. package/src/components/base/avatar_labeled/avatar_labeled.md +2 -5
  20. package/src/components/base/avatar_labeled/avatar_labeled.stories.js +68 -62
  21. package/src/components/base/avatar_labeled/avatar_labeled.vue +1 -0
  22. package/src/components/base/avatars_inline/avatars_inline.documentation.js +0 -2
  23. package/src/components/base/avatars_inline/avatars_inline.md +1 -3
  24. package/src/components/base/avatars_inline/avatars_inline.stories.js +49 -44
  25. package/src/components/base/form/form_combobox/form_combobox.documentation.js +0 -8
  26. package/src/components/base/form/form_combobox/form_combobox.md +0 -2
  27. package/src/components/base/form/form_combobox/form_combobox.stories.js +30 -30
  28. package/src/components/base/form/form_combobox/form_combobox.vue +4 -0
  29. package/src/components/base/form/form_radio/form_radio.documentation.js +0 -31
  30. package/src/components/base/form/form_radio/form_radio.md +7 -14
  31. package/src/components/base/form/form_radio/form_radio.stories.js +40 -28
  32. package/src/components/base/form/form_radio/form_radio.vue +26 -1
  33. package/src/components/base/form/input_group_text/input_group_text.documentation.js +0 -3
  34. package/src/components/base/form/input_group_text/input_group_text.stories.js +24 -18
  35. package/src/components/base/keyset_pagination/keyset_pagination.documentation.js +0 -99
  36. package/src/components/base/keyset_pagination/keyset_pagination.md +0 -2
  37. package/src/components/base/keyset_pagination/keyset_pagination.stories.js +60 -58
  38. package/src/components/base/keyset_pagination/keyset_pagination.vue +35 -1
  39. package/src/components/base/modal/modal.documentation.js +0 -42
  40. package/src/components/base/modal/modal.md +2 -7
  41. package/src/components/base/modal/modal.stories.js +107 -85
  42. package/src/components/base/modal/modal.vue +20 -0
  43. package/src/components/charts/gauge/gauge.documentation.js +0 -3
  44. package/src/components/charts/gauge/gauge.md +0 -2
  45. package/src/components/charts/gauge/gauge.stories.js +70 -86
  46. package/src/components/charts/tooltip/tooltip.documentation.js +0 -3
  47. package/src/components/charts/tooltip/tooltip.stories.js +59 -44
  48. package/src/components/utilities/intersperse/intersperse.documentation.js +0 -2
  49. package/src/components/utilities/intersperse/intersperse.md +0 -2
  50. package/src/components/utilities/intersperse/intersperse.stories.js +38 -38
  51. package/dist/components/base/avatar_labeled/examples/avatar.labeled.example.js +0 -38
  52. package/dist/components/base/avatar_labeled/examples/avatar.labeled_badges.example.js +0 -38
  53. package/dist/components/base/avatar_labeled/examples/avatar.labeled_links.example.js +0 -38
  54. package/dist/components/base/avatar_labeled/examples/avatar.labeled_tooltip.example.js +0 -38
  55. package/dist/components/base/avatar_labeled/examples/index.js +0 -31
  56. package/dist/components/base/avatars_inline/examples/avatars.inline.example.js +0 -58
  57. package/dist/components/base/avatars_inline/examples/avatars.inline_large.example.js +0 -58
  58. package/dist/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.js +0 -70
  59. package/dist/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips_badge.example.js +0 -70
  60. package/dist/components/base/avatars_inline/examples/index.js +0 -31
  61. package/dist/components/base/form/form_combobox/examples/form_combobox.basic.example.js +0 -50
  62. package/dist/components/base/form/form_combobox/examples/index.js +0 -13
  63. package/dist/components/base/form/form_radio/examples/form_radio.basic.example.js +0 -48
  64. package/dist/components/base/form/form_radio/examples/form_radio.checked_disabled.example.js +0 -48
  65. package/dist/components/base/form/form_radio/examples/index.js +0 -19
  66. package/dist/components/base/form/input_group_text/examples/index.js +0 -13
  67. package/dist/components/base/form/input_group_text/examples/input_group_text.basic.example.js +0 -38
  68. package/dist/components/base/keyset_pagination/examples/index.js +0 -37
  69. package/dist/components/base/keyset_pagination/examples/keyset_pagination.basic.example.js +0 -51
  70. package/dist/components/base/keyset_pagination/examples/keyset_pagination.events.example.js +0 -64
  71. package/dist/components/base/keyset_pagination/examples/keyset_pagination.internationalization.example.js +0 -59
  72. package/dist/components/base/keyset_pagination/examples/keyset_pagination.links.example.js +0 -51
  73. package/dist/components/base/keyset_pagination/examples/keyset_pagination.slots.example.js +0 -51
  74. package/dist/components/base/modal/examples/index.js +0 -31
  75. package/dist/components/base/modal/examples/modal.basic.example.js +0 -62
  76. package/dist/components/base/modal/examples/modal.disabled.example.js +0 -89
  77. package/dist/components/base/modal/examples/modal.sizes.example.js +0 -62
  78. package/dist/components/charts/gauge/examples/gauge.basic.example.js +0 -38
  79. package/dist/components/charts/gauge/examples/gauge.no_thresholds.example.js +0 -38
  80. package/dist/components/charts/gauge/examples/gauge.no_value.example.js +0 -38
  81. package/dist/components/charts/gauge/examples/gauge.with_text.example.js +0 -38
  82. package/dist/components/charts/gauge/examples/index.js +0 -31
  83. package/dist/components/charts/tooltip/examples/chart_tooltip.basic.example.js +0 -54
  84. package/dist/components/charts/tooltip/examples/index.js +0 -13
  85. package/dist/components/utilities/intersperse/examples/index.js +0 -31
  86. package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.js +0 -38
  87. package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator_two_items.example.js +0 -38
  88. package/dist/components/utilities/intersperse/examples/intersperse.custom_separator.example.js +0 -38
  89. package/dist/components/utilities/intersperse/examples/intersperse.default.example.js +0 -38
  90. package/src/components/base/avatar_labeled/examples/avatar.labeled.example.vue +0 -8
  91. package/src/components/base/avatar_labeled/examples/avatar.labeled_badges.example.vue +0 -17
  92. package/src/components/base/avatar_labeled/examples/avatar.labeled_links.example.vue +0 -10
  93. package/src/components/base/avatar_labeled/examples/avatar.labeled_tooltip.example.vue +0 -10
  94. package/src/components/base/avatar_labeled/examples/index.js +0 -36
  95. package/src/components/base/avatars_inline/examples/avatars.inline.example.vue +0 -18
  96. package/src/components/base/avatars_inline/examples/avatars.inline_large.example.vue +0 -18
  97. package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.vue +0 -24
  98. package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips_badge.example.vue +0 -31
  99. package/src/components/base/avatars_inline/examples/index.js +0 -36
  100. package/src/components/base/form/form_combobox/examples/form_combobox.basic.example.vue +0 -31
  101. package/src/components/base/form/form_combobox/examples/index.js +0 -15
  102. package/src/components/base/form/form_radio/examples/form_radio.basic.example.vue +0 -16
  103. package/src/components/base/form/form_radio/examples/form_radio.checked_disabled.example.vue +0 -13
  104. package/src/components/base/form/form_radio/examples/index.js +0 -22
  105. package/src/components/base/form/input_group_text/examples/index.js +0 -15
  106. package/src/components/base/form/input_group_text/examples/input_group_text.basic.example.vue +0 -3
  107. package/src/components/base/keyset_pagination/examples/index.js +0 -43
  108. package/src/components/base/keyset_pagination/examples/keyset_pagination.basic.example.vue +0 -16
  109. package/src/components/base/keyset_pagination/examples/keyset_pagination.events.example.vue +0 -29
  110. package/src/components/base/keyset_pagination/examples/keyset_pagination.internationalization.example.vue +0 -23
  111. package/src/components/base/keyset_pagination/examples/keyset_pagination.links.example.vue +0 -20
  112. package/src/components/base/keyset_pagination/examples/keyset_pagination.slots.example.vue +0 -23
  113. package/src/components/base/modal/examples/index.js +0 -39
  114. package/src/components/base/modal/examples/modal.basic.example.vue +0 -39
  115. package/src/components/base/modal/examples/modal.disabled.example.vue +0 -58
  116. package/src/components/base/modal/examples/modal.sizes.example.vue +0 -61
  117. package/src/components/charts/gauge/examples/gauge.basic.example.vue +0 -5
  118. package/src/components/charts/gauge/examples/gauge.no_thresholds.example.vue +0 -5
  119. package/src/components/charts/gauge/examples/gauge.no_value.example.vue +0 -5
  120. package/src/components/charts/gauge/examples/gauge.with_text.example.vue +0 -12
  121. package/src/components/charts/gauge/examples/index.js +0 -36
  122. package/src/components/charts/tooltip/examples/chart_tooltip.basic.example.vue +0 -32
  123. package/src/components/charts/tooltip/examples/index.js +0 -15
  124. package/src/components/utilities/intersperse/examples/index.js +0 -36
  125. package/src/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.vue +0 -7
  126. package/src/components/utilities/intersperse/examples/intersperse.custom_last_separator_two_items.example.vue +0 -6
  127. package/src/components/utilities/intersperse/examples/intersperse.custom_separator.example.vue +0 -7
  128. package/src/components/utilities/intersperse/examples/intersperse.default.example.vue +0 -7
@@ -1,31 +0,0 @@
1
- import IntersperseCustomLastSeparator from './intersperse.custom_last_separator.example';
2
- import IntersperseCustomLastSeparatorTwoItems from './intersperse.custom_last_separator_two_items.example';
3
- import IntersperseCustomSeparator from './intersperse.custom_separator.example';
4
- import Intersperse from './intersperse.default.example';
5
-
6
- var index = [{
7
- name: 'Basic',
8
- items: [{
9
- id: 'intersperse-default',
10
- name: 'Default Intersperse',
11
- description: 'Default intersperse usage',
12
- component: Intersperse
13
- }, {
14
- id: 'intersperse-custom-separator',
15
- name: 'Intersperse with custom separator',
16
- description: 'Set a custom separator',
17
- component: IntersperseCustomSeparator
18
- }, {
19
- id: 'intersperse-custom-last-separator',
20
- name: 'Intersperse with custom last separator',
21
- description: 'Set a custom last separator',
22
- component: IntersperseCustomLastSeparator
23
- }, {
24
- id: 'intersperse-custom-last-separator-two-items',
25
- name: 'Intersperse with custom last separator and two items',
26
- description: 'Set a custom last separator on two items',
27
- component: IntersperseCustomLastSeparatorTwoItems
28
- }]
29
- }];
30
-
31
- 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-intersperse',{attrs:{"last-separator":" and "}},[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")]),_vm._v(" "),_c('span',[_vm._v("Item 3")])])};
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-intersperse',{attrs:{"last-separator":" and "}},[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")])])};
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-intersperse',{attrs:{"separator":"/"}},[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")]),_vm._v(" "),_c('span',[_vm._v("Item 3")])])};
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-intersperse',[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")]),_vm._v(" "),_c('span',[_vm._v("Item 3")])])};
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,8 +0,0 @@
1
- <template>
2
- <gl-avatar-labeled
3
- :size="32"
4
- src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
5
- label="GitLab User"
6
- sub-label="gitlab"
7
- />
8
- </template>
@@ -1,17 +0,0 @@
1
- <template>
2
- <gl-avatar-labeled
3
- :size="32"
4
- src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
5
- label="GitLab User"
6
- sub-label="gitlab"
7
- >
8
- <template #meta>
9
- <div class="gl-p-1">
10
- <gl-badge class="gl-display-flex!" size="sm" variant="info">2FA</gl-badge>
11
- </div>
12
- <div class="gl-p-1">
13
- <gl-badge class="gl-display-flex!" size="sm" variant="danger">Blocked</gl-badge>
14
- </div>
15
- </template>
16
- </gl-avatar-labeled>
17
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <gl-avatar-labeled
3
- :size="32"
4
- src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
5
- label="GitLab User"
6
- sub-label="gitlab@example.com"
7
- label-link="#"
8
- sub-label-link="mailto:#"
9
- />
10
- </template>
@@ -1,10 +0,0 @@
1
- <template>
2
- <gl-avatar-labeled
3
- v-gl-tooltip="{ placement: 'bottom' }"
4
- :size="32"
5
- src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
6
- label="GitLab User"
7
- sub-label="gitlab"
8
- title="Avatar labeled with tooltip"
9
- />
10
- </template>
@@ -1,36 +0,0 @@
1
- import AvatarLabeledExample from './avatar.labeled.example.vue';
2
- import AvatarLabeledBadgesExample from './avatar.labeled_badges.example.vue';
3
- import AvatarLabeledSlotsExample from './avatar.labeled_links.example.vue';
4
- import AvatarLabeledTooltipExample from './avatar.labeled_tooltip.example.vue';
5
-
6
- export default [
7
- {
8
- name: 'Basic',
9
- items: [
10
- {
11
- id: 'avatar-labeled',
12
- name: 'Avatar Labeled',
13
- description: 'Avatar with text labels',
14
- component: AvatarLabeledExample,
15
- },
16
- {
17
- id: 'avatar-labeled-tooltip',
18
- name: 'With tooltip',
19
- description: 'Avatar labeled with tooltip',
20
- component: AvatarLabeledTooltipExample,
21
- },
22
- {
23
- id: 'avatar-labeled-badges',
24
- name: 'With badges',
25
- description: 'Avatar labeled with badges',
26
- component: AvatarLabeledBadgesExample,
27
- },
28
- {
29
- id: 'avatar-labeled-links',
30
- name: 'With label links',
31
- description: 'Avatar labeled with links',
32
- component: AvatarLabeledSlotsExample,
33
- },
34
- ],
35
- },
36
- ];
@@ -1,18 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- avatars: [
6
- { src: 'https://picsum.photos/id/1005/24' },
7
- { src: 'https://picsum.photos/id/1006/24' },
8
- { src: 'https://picsum.photos/id/1009/24' },
9
- { src: 'https://picsum.photos/id/1011/24' },
10
- { src: 'https://picsum.photos/id/1012/24' },
11
- ],
12
- };
13
- },
14
- };
15
- </script>
16
- <template>
17
- <gl-avatars-inline :avatars="avatars" :collapsed="true" :avatar-size="24" :max-visible="2" />
18
- </template>
@@ -1,18 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- avatars: [
6
- { src: 'https://picsum.photos/id/1005/32' },
7
- { src: 'https://picsum.photos/id/1006/32' },
8
- { src: 'https://picsum.photos/id/1009/32' },
9
- { src: 'https://picsum.photos/id/1011/32' },
10
- { src: 'https://picsum.photos/id/1012/32' },
11
- ],
12
- };
13
- },
14
- };
15
- </script>
16
- <template>
17
- <gl-avatars-inline :avatars="avatars" :collapsed="true" :avatar-size="32" :max-visible="2" />
18
- </template>
@@ -1,24 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- avatars: [
6
- { src: 'https://picsum.photos/id/1005/32', tooltip: 'Avatar 1', href: '//gitlab.com' },
7
- { src: 'https://picsum.photos/id/1006/32', tooltip: 'Avatar 2', href: '//gitlab.com' },
8
- { src: 'https://picsum.photos/id/1009/32', tooltip: 'Avatar 3', href: '//gitlab.com' },
9
- { src: 'https://picsum.photos/id/1011/32', tooltip: 'Avatar 4', href: '//gitlab.com' },
10
- { src: 'https://picsum.photos/id/1012/32', tooltip: 'Avatar 5', href: '//gitlab.com' },
11
- ],
12
- };
13
- },
14
- };
15
- </script>
16
- <template>
17
- <gl-avatars-inline :avatars="avatars" :collapsed="true" :avatar-size="32" :max-visible="2">
18
- <template #avatar="{ avatar }">
19
- <gl-avatar-link v-gl-tooltip target="blank" :href="avatar.href" :title="avatar.tooltip">
20
- <gl-avatar :src="avatar.src" :size="32" />
21
- </gl-avatar-link>
22
- </template>
23
- </gl-avatars-inline>
24
- </template>
@@ -1,31 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- avatars: [
6
- { src: 'https://picsum.photos/id/1005/32', tooltip: 'Avatar 1', href: '//gitlab.com' },
7
- { src: 'https://picsum.photos/id/1006/32', tooltip: 'Avatar 2', href: '//gitlab.com' },
8
- { src: 'https://picsum.photos/id/1009/32', tooltip: 'Avatar 3', href: '//gitlab.com' },
9
- { src: 'https://picsum.photos/id/1011/32', tooltip: 'Avatar 4', href: '//gitlab.com' },
10
- { src: 'https://picsum.photos/id/1012/32', tooltip: 'Avatar 5', href: '//gitlab.com' },
11
- ],
12
- };
13
- },
14
- };
15
- </script>
16
- <template>
17
- <gl-avatars-inline
18
- :avatars="avatars"
19
- :collapsed="true"
20
- :avatar-size="32"
21
- :max-visible="2"
22
- badge-tooltip-prop="tooltip"
23
- :badge-tooltip-max-chars="20"
24
- >
25
- <template #avatar="{ avatar }">
26
- <gl-avatar-link v-gl-tooltip target="_blank" :href="avatar.href" :title="avatar.tooltip">
27
- <gl-avatar :src="avatar.src" :size="32" />
28
- </gl-avatar-link>
29
- </template>
30
- </gl-avatars-inline>
31
- </template>
@@ -1,36 +0,0 @@
1
- import AvatarsInlineExample from './avatars.inline.example.vue';
2
- import AvatarsInlineLargeExample from './avatars.inline_large.example.vue';
3
- import AvatarsInlineLinksAndTooltipsExample from './avatars.inline_links_and_tooltips.example.vue';
4
- import AvatarsInlineLinksAndTooltipsBadgeExample from './avatars.inline_links_and_tooltips_badge.example.vue';
5
-
6
- export default [
7
- {
8
- name: 'Basic',
9
- items: [
10
- {
11
- id: 'avatars-inline',
12
- name: 'Avatars Inline',
13
- description: 'Inline Avatars',
14
- component: AvatarsInlineExample,
15
- },
16
- {
17
- id: 'avatars-inline-large',
18
- name: 'Avatars Inline Large',
19
- description: 'Inline Avatars Large',
20
- component: AvatarsInlineLargeExample,
21
- },
22
- {
23
- id: 'avatars-inline-links-and-tooltips',
24
- name: 'Avatars inline with links and tooltips',
25
- description: 'Inline Avatars with Links and Tooltips',
26
- component: AvatarsInlineLinksAndTooltipsExample,
27
- },
28
- {
29
- id: 'avatars-inline-links-and-tooltips-badge',
30
- name: 'Avatars inline with tooltip on badge',
31
- description: 'Inline Avatars with Tooltip on Badge',
32
- component: AvatarsInlineLinksAndTooltipsBadgeExample,
33
- },
34
- ],
35
- },
36
- ];
@@ -1,31 +0,0 @@
1
- <script>
2
- export default {
3
- tokens: [
4
- 'giraffe',
5
- 'dog',
6
- 'dodo',
7
- 'komodo dragon',
8
- 'hippo',
9
- 'platypus',
10
- 'jackalope',
11
- 'quetzal',
12
- 'badger',
13
- 'vicuña',
14
- 'whale',
15
- 'xenarthra',
16
- ],
17
- data() {
18
- return {
19
- inputVal: '',
20
- };
21
- },
22
- };
23
- </script>
24
-
25
- <template>
26
- <gl-form-combobox
27
- v-model="inputVal"
28
- :token-list="$options.tokens"
29
- label-text="Animals We Tolerate"
30
- />
31
- </template>
@@ -1,15 +0,0 @@
1
- import BasicExample from './form_combobox.basic.example.vue';
2
-
3
- export default [
4
- {
5
- name: 'Basic',
6
- items: [
7
- {
8
- id: 'form-combobox-basic',
9
- name: 'Basic',
10
- description: 'Basic Combobox',
11
- component: BasicExample,
12
- },
13
- ],
14
- },
15
- ];
@@ -1,16 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- selected: 'one',
6
- };
7
- },
8
- };
9
- </script>
10
-
11
- <template>
12
- <div>
13
- <gl-form-radio v-model="selected" value="one">One</gl-form-radio>
14
- <gl-form-radio v-model="selected" value="two">Two</gl-form-radio>
15
- </div>
16
- </template>
@@ -1,13 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- checked: 'foo',
6
- };
7
- },
8
- };
9
- </script>
10
-
11
- <template>
12
- <gl-form-radio v-model="checked" value="foo" disabled>Disabled and checked</gl-form-radio>
13
- </template>
@@ -1,22 +0,0 @@
1
- import FormRadioBasic from './form_radio.basic.example.vue';
2
- import FormRadioCheckedDisabled from './form_radio.checked_disabled.example.vue';
3
-
4
- export default [
5
- {
6
- name: 'Basic',
7
- items: [
8
- {
9
- id: 'form-radio-basic',
10
- name: 'Basic',
11
- description: 'Basic GlFormRadio',
12
- component: FormRadioBasic,
13
- },
14
- {
15
- id: 'form-radio-checked-disabled',
16
- name: 'Checked and disabled radio',
17
- description: 'Checked and disabled GlFormRadio',
18
- component: FormRadioCheckedDisabled,
19
- },
20
- ],
21
- },
22
- ];
@@ -1,15 +0,0 @@
1
- import BasicExample from './input_group_text.basic.example.vue';
2
-
3
- export default [
4
- {
5
- name: 'Basic',
6
- items: [
7
- {
8
- id: 'input-group-text-basic',
9
- name: 'Basic',
10
- description: 'Basic Input Group Text',
11
- component: BasicExample,
12
- },
13
- ],
14
- },
15
- ];
@@ -1,3 +0,0 @@
1
- <template>
2
- <gl-input-group-text>Some text</gl-input-group-text>
3
- </template>
@@ -1,43 +0,0 @@
1
- import BasicExample from './keyset_pagination.basic.example.vue';
2
- import EventsExample from './keyset_pagination.events.example.vue';
3
- import I18nExample from './keyset_pagination.internationalization.example.vue';
4
- import LinksExample from './keyset_pagination.links.example.vue';
5
- import SlotsExample from './keyset_pagination.slots.example.vue';
6
-
7
- export default [
8
- {
9
- name: 'Usage examples',
10
- items: [
11
- {
12
- id: 'keyset-pagination-basic',
13
- name: 'Basic',
14
- description: 'Basic Cursor Pagination',
15
- component: BasicExample,
16
- },
17
- {
18
- id: 'keyset-pagination-slots',
19
- name: 'Custom button slots',
20
- description: 'Custom "Prev" or "Next" button content',
21
- component: SlotsExample,
22
- },
23
- {
24
- id: 'keyset-pagination-links',
25
- name: 'Link buttons',
26
- description: '"Prev" and "Next" buttons as link buttons',
27
- component: LinksExample,
28
- },
29
- {
30
- id: 'keyset-pagination-events',
31
- name: 'Button events',
32
- description: '"prev" and "next" events',
33
- component: EventsExample,
34
- },
35
- {
36
- id: 'keyset-pagination-i18n',
37
- name: 'Internationalization',
38
- description: 'Internationalizing the "Prev" and "Next" button text',
39
- component: I18nExample,
40
- },
41
- ],
42
- },
43
- ];
@@ -1,16 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- pageInfo: {
6
- hasPreviousPage: true,
7
- hasNextPage: true,
8
- },
9
- };
10
- },
11
- };
12
- </script>
13
-
14
- <template>
15
- <gl-keyset-pagination v-bind="pageInfo" />
16
- </template>
@@ -1,29 +0,0 @@
1
- <script>
2
- /* eslint-disable no-alert */
3
- export default {
4
- data() {
5
- return {
6
- pageInfo: {
7
- startCursor:
8
- 'eyJpZCI6IjE3NTg1ODciLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDgtMjAgMTQ6NDc6MDguNTQ1MjE1MDAwIFVUQyJ9',
9
- endCursor:
10
- 'eyJpZCI6IjEyNjcxNzkiLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDItMTkgMjE6MDA6MDUuODU5NTQ2MDAwIFVUQyJ9',
11
- hasPreviousPage: true,
12
- hasNextPage: true,
13
- },
14
- };
15
- },
16
- methods: {
17
- onPrev(startCursor) {
18
- alert(`"prev" event fired with start cursor: "${startCursor}"`);
19
- },
20
- onNext(endCursor) {
21
- alert(`"next" event fired with end cursor: "${endCursor}"`);
22
- },
23
- },
24
- };
25
- </script>
26
-
27
- <template>
28
- <gl-keyset-pagination v-bind="pageInfo" @prev="onPrev($event)" @next="onNext($event)" />
29
- </template>
@@ -1,23 +0,0 @@
1
- <script>
2
- export default {
3
- data() {
4
- return {
5
- pageInfo: {
6
- hasPreviousPage: true,
7
- hasNextPage: true,
8
- },
9
- };
10
- },
11
- methods: {
12
- // Stub version of our i18n function in GitLab
13
- // eslint-disable-next-line no-underscore-dangle
14
- __(text) {
15
- return text;
16
- },
17
- },
18
- };
19
- </script>
20
-
21
- <template>
22
- <gl-keyset-pagination v-bind="pageInfo" :prev-text="__('Prev')" :next-text="__('Next')" />
23
- </template>