@gitlab/ui 36.4.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 (59) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/base/drawer/drawer.documentation.js +2 -5
  3. package/dist/components/base/form/form_radio_group/form_radio_group.documentation.js +2 -48
  4. package/dist/components/base/form/form_radio_group/form_radio_group.js +22 -2
  5. package/dist/components/base/pagination/pagination.js +1 -1
  6. package/dist/components/charts/heatmap/heatmap.documentation.js +0 -3
  7. package/dist/components/charts/series_label/series_label.documentation.js +2 -5
  8. package/dist/index.css +2 -2
  9. package/dist/index.css.map +1 -1
  10. package/dist/utility_classes.css +1 -1
  11. package/dist/utility_classes.css.map +1 -1
  12. package/documentation/documented_stories.js +4 -0
  13. package/package.json +11 -11
  14. package/scss_to_js/scss_variables.js +1 -0
  15. package/scss_to_js/scss_variables.json +5 -0
  16. package/src/components/base/breadcrumb/breadcrumb.stories.js +8 -8
  17. package/src/components/base/drawer/drawer.documentation.js +0 -2
  18. package/src/components/base/drawer/drawer.md +0 -6
  19. package/src/components/base/drawer/drawer.stories.js +66 -34
  20. package/src/components/base/form/form_radio_group/form_radio_group.documentation.js +0 -48
  21. package/src/components/base/form/form_radio_group/form_radio_group.md +0 -2
  22. package/src/components/base/form/form_radio_group/form_radio_group.stories.js +50 -29
  23. package/src/components/base/form/form_radio_group/form_radio_group.vue +22 -2
  24. package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +10 -10
  25. package/src/components/base/pagination/pagination.stories.js +5 -1
  26. package/src/components/base/pagination/pagination.vue +1 -1
  27. package/src/components/charts/heatmap/heatmap.documentation.js +0 -2
  28. package/src/components/charts/heatmap/heatmap.stories.js +59 -42
  29. package/src/components/charts/series_label/series_label.documentation.js +0 -2
  30. package/src/components/charts/series_label/series_label.md +0 -2
  31. package/src/components/charts/series_label/series_label.stories.js +62 -59
  32. package/src/scss/utilities.scss +48 -0
  33. package/src/scss/utility-mixins/border.scss +21 -0
  34. package/src/scss/utility-mixins/grid.scss +4 -0
  35. package/src/scss/variables.scss +2 -0
  36. package/dist/components/base/drawer/examples/drawer.basic.example.js +0 -58
  37. package/dist/components/base/drawer/examples/index.js +0 -13
  38. package/dist/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.js +0 -59
  39. package/dist/components/base/form/form_radio_group/examples/form_radio_group.slots.example.js +0 -48
  40. package/dist/components/base/form/form_radio_group/examples/index.js +0 -17
  41. package/dist/components/charts/heatmap/examples/heatmap.custom_options.example.js +0 -79
  42. package/dist/components/charts/heatmap/examples/heatmap.hourly.example.js +0 -70
  43. package/dist/components/charts/heatmap/examples/heatmap.responsive.example.js +0 -70
  44. package/dist/components/charts/heatmap/examples/heatmap.totals.example.js +0 -62
  45. package/dist/components/charts/heatmap/examples/index.js +0 -31
  46. package/dist/components/charts/series_label/examples/index.js +0 -13
  47. package/dist/components/charts/series_label/examples/series_label.basic.example.js +0 -38
  48. package/src/components/base/drawer/examples/drawer.basic.example.vue +0 -29
  49. package/src/components/base/drawer/examples/index.js +0 -15
  50. package/src/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.vue +0 -27
  51. package/src/components/base/form/form_radio_group/examples/form_radio_group.slots.example.vue +0 -21
  52. package/src/components/base/form/form_radio_group/examples/index.js +0 -20
  53. package/src/components/charts/heatmap/examples/heatmap.custom_options.example.vue +0 -70
  54. package/src/components/charts/heatmap/examples/heatmap.hourly.example.vue +0 -62
  55. package/src/components/charts/heatmap/examples/heatmap.responsive.example.vue +0 -63
  56. package/src/components/charts/heatmap/examples/heatmap.totals.example.vue +0 -38
  57. package/src/components/charts/heatmap/examples/index.js +0 -36
  58. package/src/components/charts/series_label/examples/index.js +0 -15
  59. package/src/components/charts/series_label/examples/series_label.basic.example.vue +0 -3
@@ -128,6 +128,10 @@ export const setupStorybookReadme = () =>
128
128
  'GlNavItemDropdown',
129
129
  'GlPopover',
130
130
  'GlSingleStat',
131
+ 'GlDrawer',
132
+ 'GlHeatmap',
133
+ 'GlFormRadioGroup',
134
+ 'GlChartSeriesLabel',
131
135
  ],
132
136
  components: {
133
137
  GlComponentDocumentation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "36.4.0",
3
+ "version": "36.7.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -76,7 +76,8 @@
76
76
  "vue": "^2.6.10"
77
77
  },
78
78
  "resolutions": {
79
- "chokidar": "^3.5.2"
79
+ "chokidar": "^3.5.2",
80
+ "sane": "^5.0.1"
80
81
  },
81
82
  "devDependencies": {
82
83
  "@arkweid/lefthook": "^0.7.6",
@@ -88,15 +89,15 @@
88
89
  "@rollup/plugin-commonjs": "^11.1.0",
89
90
  "@rollup/plugin-node-resolve": "^7.1.3",
90
91
  "@rollup/plugin-replace": "^2.3.2",
91
- "@storybook/addon-a11y": "6.4.15",
92
- "@storybook/addon-docs": "6.4.15",
93
- "@storybook/addon-essentials": "6.4.15",
92
+ "@storybook/addon-a11y": "6.4.19",
93
+ "@storybook/addon-docs": "6.4.19",
94
+ "@storybook/addon-essentials": "6.4.19",
94
95
  "@storybook/addon-knobs": "6.4.0",
95
- "@storybook/addon-storyshots": "6.4.15",
96
- "@storybook/addon-storyshots-puppeteer": "6.4.15",
97
- "@storybook/addon-viewport": "6.4.15",
98
- "@storybook/theming": "6.4.15",
99
- "@storybook/vue": "6.4.15",
96
+ "@storybook/addon-storyshots": "6.4.19",
97
+ "@storybook/addon-storyshots-puppeteer": "6.4.19",
98
+ "@storybook/addon-viewport": "6.4.19",
99
+ "@storybook/theming": "6.4.19",
100
+ "@storybook/vue": "6.4.19",
100
101
  "@vue/test-utils": "1.3.0",
101
102
  "autoprefixer": "^9.7.6",
102
103
  "babel-jest": "^26.6.3",
@@ -122,7 +123,6 @@
122
123
  "mockdate": "^2.0.5",
123
124
  "node-sass": "^4.14.1",
124
125
  "node-sass-magic-importer": "^5.3.2",
125
- "nodemon": "^1.11.0",
126
126
  "npm-run-all": "^4.1.5",
127
127
  "pikaday": "^1.8.0",
128
128
  "plop": "^2.5.4",
@@ -276,6 +276,7 @@ export const glFontSizeMonospaceSm = '0.6875rem'
276
276
  export const glMonospaceFont = 'Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace'
277
277
  export const glRegularFont = '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji'
278
278
  export const glFonts = '("monospace": "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace, "regular": -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")'
279
+ export const borderColor = '#dbdbdb'
279
280
  export const glBorderSize1 = '1px'
280
281
  export const glBorderSize2 = '2px'
281
282
  export const glBorderSize3 = '3px'
@@ -1441,6 +1441,11 @@
1441
1441
  ],
1442
1442
  "compiledValue": "(\"monospace\": \"Menlo\", \"DejaVu Sans Mono\", \"Liberation Mono\", \"Consolas\", \"Ubuntu Mono\", \"Courier New\", \"andale mono\", \"lucida console\", monospace, \"regular\": -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Noto Sans\", Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\")"
1443
1443
  },
1444
+ {
1445
+ "name": "$border-color",
1446
+ "value": "$gray-100",
1447
+ "compiledValue": "#dbdbdb"
1448
+ },
1444
1449
  {
1445
1450
  "name": "$gl-border-size-1",
1446
1451
  "value": "1px",
@@ -16,19 +16,19 @@ const template = `
16
16
 
17
17
  const defaultItems = [
18
18
  {
19
- text: 'First Item',
19
+ text: 'First item',
20
20
  href: '#',
21
21
  },
22
22
  {
23
- text: 'Second Item',
23
+ text: 'Second item',
24
24
  href: '#',
25
25
  },
26
26
  {
27
- text: 'Third Item',
27
+ text: 'Third item',
28
28
  href: '#',
29
29
  },
30
30
  {
31
- text: 'Fourth Item',
31
+ text: 'Fourth item',
32
32
  to: { name: 'fourth-item' },
33
33
  },
34
34
  ];
@@ -63,19 +63,19 @@ export default {
63
63
 
64
64
  const extraItems = [
65
65
  {
66
- text: 'Fifth Item',
66
+ text: 'Fifth item',
67
67
  href: '#',
68
68
  },
69
69
  {
70
- text: 'Sixth Item',
70
+ text: 'Sixth item',
71
71
  href: '#',
72
72
  },
73
73
  {
74
- text: 'Seventh Item',
74
+ text: 'Seventh item',
75
75
  href: '#',
76
76
  },
77
77
  {
78
- text: 'Eighth Item',
78
+ text: 'Eighth item',
79
79
  href: '#',
80
80
  },
81
81
  ];
@@ -1,8 +1,6 @@
1
1
  import description from './drawer.md';
2
- import examples from './examples';
3
2
 
4
3
  export default {
5
4
  followsDesignSystem: false,
6
5
  description,
7
- examples,
8
6
  };
@@ -1,9 +1,3 @@
1
- # Drawer
2
-
3
- <!-- STORY -->
4
-
5
- ## Usage
6
-
7
1
  The drawer is used to show more information about a certain resource in the UI and potentially
8
2
  handle actions on the information.
9
3
 
@@ -1,13 +1,7 @@
1
- import { withKnobs } from '@storybook/addon-knobs';
2
- import { documentedStoriesOf } from '../../../../documentation/documented_stories';
3
- import { GlButton } from '../../../index';
1
+ import { GlDrawer, GlButton } from '../../../index';
4
2
  import readme from './drawer.md';
5
- import GlDrawer from './drawer.vue';
6
3
 
7
- const components = {
8
- GlDrawer,
9
- GlButton,
10
- };
4
+ const components = { GlDrawer, GlButton };
11
5
 
12
6
  const drawerContent = [
13
7
  'One',
@@ -31,7 +25,8 @@ const drawerContent = [
31
25
  )
32
26
  .join('');
33
27
 
34
- const getStory = (template) => ({
28
+ export const Default = (_args, { viewMode }) => ({
29
+ components,
35
30
  methods: {
36
31
  toggle() {
37
32
  this.open = !this.open;
@@ -42,45 +37,68 @@ const getStory = (template) => ({
42
37
  },
43
38
  data() {
44
39
  return {
45
- open: true,
40
+ open: viewMode !== 'docs',
46
41
  };
47
42
  },
48
- components,
49
- template,
50
- });
51
-
52
- documentedStoriesOf('base/drawer', readme)
53
- .addDecorator(withKnobs)
54
- .add('default', () =>
55
- getStory(`
43
+ template: `
56
44
  <div>
57
45
  <gl-button @click="toggle">Toggle Drawer</gl-button>
58
46
  <gl-drawer :open="open" @close="close">
59
47
  <template #title>List Settings</template>
60
48
  ${drawerContent}
61
49
  </gl-drawer>
62
- </div>`)
63
- )
64
- .add('with actions', () =>
65
- getStory(`
50
+ </div>`,
51
+ });
52
+
53
+ export const WithActions = (_args, { viewMode }) => ({
54
+ components,
55
+ methods: {
56
+ toggle() {
57
+ this.open = !this.open;
58
+ },
59
+ close() {
60
+ this.open = false;
61
+ },
62
+ },
63
+ data() {
64
+ return {
65
+ open: viewMode !== 'docs',
66
+ };
67
+ },
68
+ template: `
66
69
  <div>
67
70
  <gl-button @click="toggle">Toggle Drawer</gl-button>
68
71
  <gl-drawer :open="open" @close="close">
69
- <template #title>
72
+ <template #title>
70
73
  <h3>custom-network-policy</h3>
71
74
  </template>
72
75
  <template #header>
73
- <div class="gl-mt-5">
74
- <gl-button variant="confirm">Save</gl-button>
75
- <gl-button class="gl-ml-3" @click="toggle">Cancel</gl-button>
76
- </div>
76
+ <div class="gl-mt-5">
77
+ <gl-button variant="confirm">Save</gl-button>
78
+ <gl-button class="gl-ml-3" @click="toggle">Cancel</gl-button>
79
+ </div>
77
80
  </template>
78
- ${drawerContent}
81
+ ${drawerContent}
79
82
  </gl-drawer>
80
- </div>`)
81
- )
82
- .add('sidebar variant', () =>
83
- getStory(`
83
+ </div>`,
84
+ });
85
+
86
+ export const SidebarVariant = (_args, { viewMode }) => ({
87
+ components,
88
+ methods: {
89
+ toggle() {
90
+ this.open = !this.open;
91
+ },
92
+ close() {
93
+ this.open = false;
94
+ },
95
+ },
96
+ data() {
97
+ return {
98
+ open: viewMode !== 'docs',
99
+ };
100
+ },
101
+ template: `
84
102
  <div>
85
103
  <gl-button @click="toggle">Toggle Drawer</gl-button>
86
104
  <gl-drawer :open="open" @close="close" variant="sidebar">
@@ -94,5 +112,19 @@ documentedStoriesOf('base/drawer', readme)
94
112
  </template>
95
113
  ${drawerContent}
96
114
  </gl-drawer>
97
- </div>`)
98
- );
115
+ </div>`,
116
+ });
117
+
118
+ export default {
119
+ title: 'base/drawer',
120
+ component: GlDrawer,
121
+ parameters: {
122
+ knobs: { disabled: true },
123
+ controls: { disable: true },
124
+ docs: {
125
+ description: {
126
+ component: readme,
127
+ },
128
+ },
129
+ },
130
+ };
@@ -1,54 +1,6 @@
1
- import examples from './examples';
2
1
  import description from './form_radio_group.md';
3
2
 
4
3
  export default {
5
4
  description,
6
- examples,
7
5
  followsDesignSystem: true,
8
- bootstrapComponent: 'b-form-radio-group',
9
- propsInfo: {
10
- options: {
11
- additionalInfo: 'Array of objects representing the radios to render',
12
- },
13
- valueField: {
14
- additionalInfo: 'Field name in the options prop that should be used for the value',
15
- },
16
- textField: {
17
- additionalInfo: 'Field name in the options prop that should be used for the text label',
18
- },
19
- htmlField: {
20
- additionalInfo:
21
- 'Field name in the options prop that should be used for the html label instead of text field. Use with caution.',
22
- },
23
- disabledField: {
24
- additionalInfo: 'Field name in the options prop that should be used for the disabled state',
25
- },
26
- checked: {
27
- additionalInfo: 'The current value of the checked radio in the group',
28
- },
29
- },
30
- events: [
31
- {
32
- event: 'input',
33
- args: [{ arg: 'checked', description: 'current selected value of radio group' }],
34
- description: 'Emitted when the selected value is changed',
35
- },
36
- {
37
- event: 'change',
38
- args: [{ arg: 'checked', description: 'current selected value of radio group' }],
39
- description: 'Emitted when the selected value is changed due to user interaction',
40
- },
41
- ],
42
- slots: [
43
- {
44
- name: 'first',
45
- description:
46
- 'Slot for GlFormRadios that will appear before radios generated from options prop',
47
- },
48
- {
49
- name: 'default',
50
- description:
51
- 'Slot for GlFormRadios that will appear after radios generated from options prop',
52
- },
53
- ],
54
6
  };
@@ -1,5 +1,3 @@
1
- # GlFormRadioGroup
2
-
3
1
  The `GlFormRadioGroup` component provides an alternative and sometimes more
4
2
  compact way of setting up a group of `GlFormRadio` components.
5
3
 
@@ -1,30 +1,16 @@
1
- import { withKnobs, object, text } from '@storybook/addon-knobs';
2
- import { documentedStoriesOf } from '../../../../../documentation/documented_stories';
3
- import { GlFormRadioGroup, GlFormRadio } from '../../../../index';
1
+ import { GlFormRadioGroup } from '../../../../index';
4
2
  import readme from './form_radio_group.md';
5
3
 
6
- const components = {
7
- GlFormRadioGroup,
8
- GlFormRadio,
9
- };
10
-
11
4
  const defaultOptions = [
12
5
  { value: 'pizza', text: 'Pizza' },
13
6
  { value: 'tacos', text: 'Tacos' },
14
7
  { value: 'burger', text: 'Burger', disabled: true },
15
8
  ];
16
-
17
- function generateProps({ name = 'radio-group-name', options = defaultOptions } = {}) {
18
- return {
19
- name: {
20
- type: String,
21
- default: text('name', name),
22
- },
23
- options: {
24
- default: object('options', options),
25
- },
26
- };
27
- }
9
+ const data = () => ({ selected: 'slot-option' });
10
+ const generateProps = ({ name = 'radio-group-name', options = defaultOptions } = {}) => ({
11
+ name,
12
+ options,
13
+ });
28
14
 
29
15
  const template = `
30
16
  <div>
@@ -45,13 +31,48 @@ const template = `
45
31
  </gl-form-radio-group>
46
32
  </div>`;
47
33
 
48
- const data = () => ({ selected: 'slot-option' });
34
+ const Template = (args, { argTypes }) => ({
35
+ components: {
36
+ GlFormRadioGroup,
37
+ },
38
+ props: Object.keys(argTypes),
39
+ template,
40
+ data,
41
+ });
42
+ export const Default = Template.bind({});
43
+ Default.args = generateProps();
49
44
 
50
- documentedStoriesOf('base/form/form-radio-group', readme)
51
- .addDecorator(withKnobs)
52
- .add('default', () => ({
53
- components,
54
- props: generateProps(),
55
- data,
56
- template,
57
- }));
45
+ export default {
46
+ title: 'base/form/form-radio-group',
47
+ component: GlFormRadioGroup,
48
+ parameters: {
49
+ knobs: { disable: true },
50
+ bootstrapComponent: 'b-form-radio-group',
51
+ docs: {
52
+ description: {
53
+ component: readme,
54
+ },
55
+ },
56
+ },
57
+ argTypes: {
58
+ options: {
59
+ description: 'Array of objects representing the radios to render',
60
+ },
61
+ valueField: {
62
+ description: 'Field name in the options prop that should be used for the value',
63
+ },
64
+ textField: {
65
+ description: 'Field name in the options prop that should be used for the text label',
66
+ },
67
+ htmlField: {
68
+ description:
69
+ 'Field name in the options prop that should be used for the html label instead of text field. Use with caution.',
70
+ },
71
+ disabledField: {
72
+ description: 'Field name in the options prop that should be used for the disabled state',
73
+ },
74
+ checked: {
75
+ description: 'The current value of the checked radio in the group',
76
+ },
77
+ },
78
+ };
@@ -17,6 +17,24 @@ export default {
17
17
  mixins: [formOptionsMixin],
18
18
  inheritAttrs: false,
19
19
  model,
20
+ methods: {
21
+ onInput(e) {
22
+ /**
23
+ * Emitted when the selected value is changed.
24
+ *
25
+ * @event input
26
+ */
27
+ this.$emit('input', e);
28
+ },
29
+ onChange(e) {
30
+ /**
31
+ * Emitted when the selected value is changed.
32
+ *
33
+ * @event change
34
+ */
35
+ this.$emit('change', e);
36
+ },
37
+ },
20
38
  };
21
39
  </script>
22
40
  <template>
@@ -25,9 +43,10 @@ export default {
25
43
  stacked
26
44
  v-bind="$attrs"
27
45
  v-on="$listeners"
28
- @input="$emit('input', $event)"
29
- @change="$emit('change', $event)"
46
+ @input="onInput"
47
+ @change="onChange"
30
48
  >
49
+ <!-- @slot Slot for GlFormRadios that will appear before radios generated from options prop -->
31
50
  <slot name="first"></slot>
32
51
  <gl-form-radio
33
52
  v-for="(option, idx) in formOptions"
@@ -38,6 +57,7 @@ export default {
38
57
  <span v-if="option.html" v-safe-html="option.html"></span>
39
58
  <span v-else>{{ option.text }}</span>
40
59
  </gl-form-radio>
60
+ <!-- @slot Slot for GlFormRadios that will appear after radios generated from options prop -->
41
61
  <slot></slot>
42
62
  </b-form-radio-group>
43
63
  </template>
@@ -42,7 +42,7 @@ exports[`Paginated List Pagination renders 1 item on page 7 with page size of 2
42
42
  limits="[object Object]"
43
43
  nexttext="Next"
44
44
  perpage="2"
45
- prevtext="Prev"
45
+ prevtext="Previous"
46
46
  totalitems="13"
47
47
  value="7"
48
48
  />
@@ -119,7 +119,7 @@ exports[`Paginated List Pagination renders 3 items on page 2 with default page s
119
119
  limits="[object Object]"
120
120
  nexttext="Next"
121
121
  perpage="10"
122
- prevtext="Prev"
122
+ prevtext="Previous"
123
123
  totalitems="13"
124
124
  value="2"
125
125
  />
@@ -222,7 +222,7 @@ exports[`Paginated List Pagination renders 5 items on page 1 for a page size of
222
222
  limits="[object Object]"
223
223
  nexttext="Next"
224
224
  perpage="5"
225
- prevtext="Prev"
225
+ prevtext="Previous"
226
226
  totalitems="13"
227
227
  value="1"
228
228
  />
@@ -390,7 +390,7 @@ exports[`Paginated List Pagination renders 10 items for a default page size of 1
390
390
  limits="[object Object]"
391
391
  nexttext="Next"
392
392
  perpage="10"
393
- prevtext="Prev"
393
+ prevtext="Previous"
394
394
  totalitems="13"
395
395
  value="1"
396
396
  />
@@ -597,7 +597,7 @@ exports[`Paginated List Pagination renders 13 items for a default page size of 2
597
597
  limits="[object Object]"
598
598
  nexttext="Next"
599
599
  perpage="20"
600
- prevtext="Prev"
600
+ prevtext="Previous"
601
601
  totalitems="13"
602
602
  value="1"
603
603
  />
@@ -717,7 +717,7 @@ exports[`Paginated List Search states renders the list filtered by search result
717
717
  limits="[object Object]"
718
718
  nexttext="Next"
719
719
  perpage="10"
720
- prevtext="Prev"
720
+ prevtext="Previous"
721
721
  totalitems="2"
722
722
  value="1"
723
723
  />
@@ -837,7 +837,7 @@ exports[`Paginated List Searchless states renders the list with nested items, wh
837
837
  limits="[object Object]"
838
838
  nexttext="Next"
839
839
  perpage="10"
840
- prevtext="Prev"
840
+ prevtext="Previous"
841
841
  totalitems="2"
842
842
  value="1"
843
843
  />
@@ -888,7 +888,7 @@ exports[`Paginated List props filter filters on default "id" key 1`] = `
888
888
  limits="[object Object]"
889
889
  nexttext="Next"
890
890
  perpage="10"
891
- prevtext="Prev"
891
+ prevtext="Previous"
892
892
  totalitems="1"
893
893
  value="1"
894
894
  />
@@ -939,7 +939,7 @@ exports[`Paginated List props filter filters on provided "myKey" key 1`] = `
939
939
  limits="[object Object]"
940
940
  nexttext="Next"
941
941
  perpage="10"
942
- prevtext="Prev"
942
+ prevtext="Previous"
943
943
  totalitems="1"
944
944
  value="1"
945
945
  />
@@ -990,7 +990,7 @@ exports[`Paginated List props filter filters with provided filter function 1`] =
990
990
  limits="[object Object]"
991
991
  nexttext="Next"
992
992
  perpage="10"
993
- prevtext="Prev"
993
+ prevtext="Previous"
994
994
  totalitems="1"
995
995
  value="1"
996
996
  />
@@ -4,7 +4,11 @@ import GlPagination from './pagination.vue';
4
4
 
5
5
  const components = { GlPagination };
6
6
 
7
- const generateBaseProps = ({ prevText = 'Prev', nextText = 'Next', disabled = false } = {}) => ({
7
+ const generateBaseProps = ({
8
+ prevText = 'Previous',
9
+ nextText = 'Next',
10
+ disabled = false,
11
+ } = {}) => ({
8
12
  prevText,
9
13
  nextText,
10
14
  disabled,
@@ -82,7 +82,7 @@ export default {
82
82
  prevText: {
83
83
  type: String,
84
84
  required: false,
85
- default: 'Prev',
85
+ default: 'Previous',
86
86
  },
87
87
  /**
88
88
  * When using the compact pagination, use this prop to pass the next page number
@@ -1,8 +1,6 @@
1
- import examples from './examples';
2
1
  import description from './heatmap.md';
3
2
 
4
3
  export default {
5
4
  description,
6
- examples,
7
5
  followsDesignSystem: true,
8
6
  };