@gitlab/ui 32.23.0 → 32.26.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 (43) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/base/accordion/accordion.documentation.js +8 -0
  3. package/dist/components/base/accordion/accordion_item.documentation.js +7 -0
  4. package/dist/components/base/breadcrumb/breadcrumb.js +10 -2
  5. package/dist/components/base/daterange_picker/daterange_picker.documentation.js +8 -0
  6. package/dist/components/charts/bar/bar.documentation.js +2 -5
  7. package/dist/index.css +1 -1
  8. package/dist/index.css.map +1 -1
  9. package/dist/utility_classes.css +1 -1
  10. package/dist/utility_classes.css.map +1 -1
  11. package/documentation/components_documentation.js +3 -0
  12. package/documentation/documented_stories.js +1 -0
  13. package/package.json +4 -4
  14. package/src/components/base/accordion/accordion.documentation.js +6 -0
  15. package/src/components/base/accordion/accordion_item.documentation.js +5 -0
  16. package/src/components/base/breadcrumb/breadcrumb.scss +18 -2
  17. package/src/components/base/breadcrumb/breadcrumb.stories.js +1 -4
  18. package/src/components/base/breadcrumb/breadcrumb.vue +22 -11
  19. package/src/components/base/daterange_picker/daterange_picker.documentation.js +6 -0
  20. package/src/components/base/dropdown/dropdown.scss +2 -0
  21. package/src/components/base/form/form_select/form_select.scss +1 -0
  22. package/src/components/base/label/label.scss +4 -0
  23. package/src/components/base/search_box_by_click/search_box_by_click.scss +1 -0
  24. package/src/components/base/segmented_control/segmented_control.scss +1 -0
  25. package/src/components/base/table/table.scss +1 -0
  26. package/src/components/base/toast/toast.scss +1 -0
  27. package/src/components/base/tooltip/tooltip.scss +1 -0
  28. package/src/components/charts/bar/bar.documentation.js +0 -2
  29. package/src/components/charts/bar/bar.md +0 -2
  30. package/src/components/charts/bar/bar.stories.js +35 -58
  31. package/src/scss/utilities.scss +16 -0
  32. package/src/scss/utility-mixins/position.scss +4 -0
  33. package/src/scss/utility-mixins/sizing.scss +4 -0
  34. package/dist/components/charts/bar/examples/bar.basic.example.js +0 -42
  35. package/dist/components/charts/bar/examples/bar.long_labels.example.js +0 -55
  36. package/dist/components/charts/bar/examples/bar.multiple_series.example.js +0 -48
  37. package/dist/components/charts/bar/examples/bar.negative_values.example.js +0 -43
  38. package/dist/components/charts/bar/examples/index.js +0 -28
  39. package/src/components/charts/bar/examples/bar.basic.example.vue +0 -14
  40. package/src/components/charts/bar/examples/bar.long_labels.example.vue +0 -26
  41. package/src/components/charts/bar/examples/bar.multiple_series.example.vue +0 -22
  42. package/src/components/charts/bar/examples/bar.negative_values.example.vue +0 -15
  43. package/src/components/charts/bar/examples/index.js +0 -33
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # [32.26.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.25.0...v32.26.0) (2021-10-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **breadcrumb:** Set default separator and fix spacing ([95a7fc8](https://gitlab.com/gitlab-org/gitlab-ui/commit/95a7fc8e3ff3a06feb77ea7cdbfa7255b6f2c3f7))
7
+
8
+ # [32.25.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.24.1...v32.25.0) (2021-10-26)
9
+
10
+
11
+ ### Features
12
+
13
+ * **css:** Add gl-top-8 utility class ([40a6aba](https://gitlab.com/gitlab-org/gitlab-ui/commit/40a6abae33d7ba02c7d203a33d2ed6b92b621ea1))
14
+
15
+ ## [32.24.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.24.0...v32.24.1) (2021-10-26)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * revert components' `.documentations.js` files ([5fbcd1f](https://gitlab.com/gitlab-org/gitlab-ui/commit/5fbcd1f93b5e5a3b3d607cfa109425dae97631ac))
21
+
22
+ # [32.24.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.23.0...v32.24.0) (2021-10-22)
23
+
24
+
25
+ ### Features
26
+
27
+ * **css:** Add 5% width mixin ([6eaa25a](https://gitlab.com/gitlab-org/gitlab-ui/commit/6eaa25a250562832f2a8d7e198037e9e661bfdd6))
28
+
1
29
  # [32.23.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.22.0...v32.23.0) (2021-10-22)
2
30
 
3
31
 
@@ -0,0 +1,8 @@
1
+ var description = "Accordions are used to group similar content and hide or show it depending on user needs or\npreferences. Accordions give users more granular control over the interface and help digest content\nin stages, rather than all at once.\n";
2
+
3
+ var accordion_documentation = {
4
+ followsDesignSystem: true,
5
+ description
6
+ };
7
+
8
+ export default accordion_documentation;
@@ -0,0 +1,7 @@
1
+ var description = "## Usage\n\nUse `GlAccordionItem` to place the accordion item within your accordion.\n";
2
+
3
+ var accordion_item_documentation = {
4
+ description
5
+ };
6
+
7
+ export default accordion_item_documentation;
@@ -1,10 +1,12 @@
1
1
  import { BBreadcrumb, BBreadcrumbItem } from 'bootstrap-vue/esm/index.js';
2
+ import GlIcon from '../icon/icon';
2
3
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
3
4
 
4
5
  var script = {
5
6
  components: {
6
7
  BBreadcrumb,
7
- BBreadcrumbItem
8
+ BBreadcrumbItem,
9
+ GlIcon
8
10
  },
9
11
  inheritAttrs: false,
10
12
  props: {
@@ -25,6 +27,12 @@ var script = {
25
27
  });
26
28
  }
27
29
  }
30
+ },
31
+ methods: {
32
+ isLastItem(items, index) {
33
+ return index === items.length - 1;
34
+ }
35
+
28
36
  }
29
37
  };
30
38
 
@@ -32,7 +40,7 @@ var script = {
32
40
  const __vue_script__ = script;
33
41
 
34
42
  /* template */
35
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-breadcrumbs"},[_c('b-breadcrumb',_vm._g(_vm._b({staticClass:"gl-breadcrumb-list"},'b-breadcrumb',_vm.$attrs,false),_vm.$listeners),[_vm._t("avatar"),_vm._v(" "),_vm._l((_vm.items),function(item,index){return [_c('b-breadcrumb-item',{key:index,staticClass:"gl-breadcrumb-item",attrs:{"text":item.text,"href":item.href,"to":item.to}}),_vm._v(" "),(index != _vm.items.length - 1)?_c('span',{key:("index " + (item.text)),staticClass:"gl-breadcrumb-separator",attrs:{"data-testid":"separator"}},[_vm._t("separator")],2):_vm._e()]})],2)],1)};
43
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-breadcrumbs"},[_vm._t("avatar"),_vm._v(" "),_c('b-breadcrumb',_vm._g(_vm._b({staticClass:"gl-breadcrumb-list"},'b-breadcrumb',_vm.$attrs,false),_vm.$listeners),[_vm._l((_vm.items),function(item,index){return [_c('b-breadcrumb-item',{key:index,staticClass:"gl-breadcrumb-item",attrs:{"text":item.text,"href":item.href,"to":item.to}},[_c('span',[_vm._v(_vm._s(item.text))]),_vm._v(" "),(!_vm.isLastItem(_vm.items, index))?_c('span',{key:(index + " " + (item.text)),staticClass:"gl-breadcrumb-separator",attrs:{"data-testid":"separator"}},[_vm._t("separator",[_c('gl-icon',{attrs:{"name":"chevron-right"}})])],2):_vm._e()])]})],2)],2)};
36
44
  var __vue_staticRenderFns__ = [];
37
45
 
38
46
  /* style */
@@ -0,0 +1,8 @@
1
+ var description = "## Usage\n\nDaterange picker allows users to choose a date range by manually typing the start/end date\ninto the input fields or by using a calendar-like dropdown.\n\nA `maxDateRange` can be specified in order to limit the maximum number of days the component\nwill allow to be selected i.e. if the start date is `2020-08-01` and `maxDateRange` is set to `10`,\nthe highest selectable end date would be `2020-08-11`. This value will be offset by `1` if\n`sameDaySelection` is set to `true`. A `defaultMaxDate` will need to be\nprovided when making use of the `maxDateRange`.\n\nBy default, the component does not allow selection of the same start and end date.\nIn a scenario where this is required, the `sameDaySelection` property can be configured.\nThis is specifically useful when a single day selection is being defined as `2020-01-01 00:00:00`\nto `2020-01-01 23:59:59` instead of `2020-01-01 00:00:00` to `2020-01-02 00:00:00`.\n\nWhen `maxDateRange` is set it's a good idea to set the `tooltip` specifying the date range limit\nand to indicate the number of days currently selected using the default slot. For example:\n\n```vue\n<template #default=\"{ daysSelected }\">\n <span v-if=\"daysSelected > -1\">{{ daysSelected }} days selected</span>\n <span v-else>No days selected</span>\n</template>\n```\n\nThe `daysSelected` slot prop is the effective date range, thus the value is increased by one when\n`sameDaySelection` is set to `true`. When no date range has been selected the value is `-1`.\n\n### Note\n\nIf specifying a maxDateRange, it is good practice to include a date range indicator and toolip.\n";
2
+
3
+ var daterange_picker_documentation = {
4
+ followsDesignSystem: true,
5
+ description
6
+ };
7
+
8
+ export default daterange_picker_documentation;
@@ -1,11 +1,8 @@
1
- import examples from './examples';
2
-
3
- var description = "### Bar Chart\n\nA bar chart is similar to a column chart where the the length of bars represents the data value.\nAlthough alike, they are cannot be interchangeably used. Bar charts are good for displaying large\nnumber of categories on the y-axis.\n";
1
+ var description = "A bar chart is similar to a column chart where the the length of bars represents the data value.\nAlthough alike, they are cannot be interchangeably used. Bar charts are good for displaying large\nnumber of categories on the y-axis.\n";
4
2
 
5
3
  var bar_documentation = {
6
4
  followsDesignSystem: true,
7
- description,
8
- examples
5
+ description
9
6
  };
10
7
 
11
8
  export default bar_documentation;