@gitlab/ui 36.7.1 → 37.0.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 (42) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/base/alert/alert.js +1 -11
  3. package/dist/components/base/card/card.js +1 -1
  4. package/dist/components/charts/area/area.documentation.js +1 -7
  5. package/dist/components/charts/line/line.documentation.js +2 -5
  6. package/dist/index.css +1 -1
  7. package/dist/index.css.map +1 -1
  8. package/dist/utils/stories_utils.js +13 -1
  9. package/documentation/documented_stories.js +2 -0
  10. package/package.json +2 -2
  11. package/src/components/base/accordion/accordion.stories.js +2 -1
  12. package/src/components/base/alert/alert.scss +0 -38
  13. package/src/components/base/alert/alert.spec.js +0 -1
  14. package/src/components/base/alert/alert.stories.js +0 -8
  15. package/src/components/base/alert/alert.vue +30 -41
  16. package/src/components/base/badge/badge.stories.js +4 -24
  17. package/src/components/base/card/card.vue +2 -2
  18. package/src/components/base/daterange_picker/daterange_picker.stories.js +10 -35
  19. package/src/components/base/icon/icon.stories.js +2 -5
  20. package/src/components/base/toggle/toggle.stories.js +2 -3
  21. package/src/components/charts/area/area.documentation.js +0 -5
  22. package/src/components/charts/area/area.stories.js +127 -127
  23. package/src/components/charts/bar/bar.stories.js +8 -5
  24. package/src/components/charts/heatmap/heatmap.stories.js +13 -16
  25. package/src/components/charts/line/line.documentation.js +0 -2
  26. package/src/components/charts/line/line.md +0 -2
  27. package/src/components/charts/line/line.stories.js +124 -113
  28. package/src/utils/stories_utils.js +6 -0
  29. package/src/utils/stories_utils.spec.js +18 -0
  30. package/dist/components/charts/area/examples/area.basic.example.js +0 -45
  31. package/dist/components/charts/area/examples/area.basic_plus.example.js +0 -53
  32. package/dist/components/charts/area/examples/index.js +0 -19
  33. package/dist/components/charts/line/examples/index.js +0 -19
  34. package/dist/components/charts/line/examples/line.basic.example.js +0 -45
  35. package/dist/components/charts/line/examples/line.series.example.js +0 -53
  36. package/src/components/charts/area/area.md +0 -1
  37. package/src/components/charts/area/examples/area.basic.example.vue +0 -14
  38. package/src/components/charts/area/examples/area.basic_plus.example.vue +0 -25
  39. package/src/components/charts/area/examples/index.js +0 -22
  40. package/src/components/charts/line/examples/index.js +0 -22
  41. package/src/components/charts/line/examples/line.basic.example.vue +0 -14
  42. package/src/components/charts/line/examples/line.series.example.vue +0 -25
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # [37.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.7.1...v37.0.0) (2022-02-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlAlert:** drop contained behavior ([a2ae17e](https://gitlab.com/gitlab-org/gitlab-ui/commit/a2ae17eeb80eb9ea399b9f93047fc71764a3e1cb))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **GlAlert:** This drops GlAlert's contained behavior.
12
+
13
+ Alerts content width cannot be constrainted with the `contained` prop
14
+ anymore. Existing alerts' content will exapnd to the take up the alert's
15
+ full width.
16
+ You should consider removing all `contained` usages from your code.
17
+ `
18
+
1
19
  ## [36.7.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.7.0...v36.7.1) (2022-02-18)
2
20
 
3
21
 
@@ -76,15 +76,6 @@ var script = {
76
76
  required: false,
77
77
  default: ''
78
78
  },
79
-
80
- /**
81
- * Contained alerts have their content's width limited.
82
- */
83
- contained: {
84
- type: Boolean,
85
- required: false,
86
- default: false
87
- },
88
79
  sticky: {
89
80
  type: Boolean,
90
81
  required: false,
@@ -182,10 +173,9 @@ const __vue_script__ = script;
182
173
  /* template */
183
174
  var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
184
175
  'gl-alert',
185
- { 'gl-alert-max-content gl-alert-layout-limited': _vm.contained },
186
176
  { 'gl-alert-sticky': _vm.sticky },
187
177
  { 'gl-alert-not-dismissible': !_vm.dismissible },
188
- _vm.variantClass ]},[_c('div',{staticClass:"gl-alert-container"},[_c('gl-icon',{class:{ 'gl-alert-icon': true, 'gl-alert-icon-no-title': !_vm.title },attrs:{"name":_vm.iconName}}),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-content",attrs:{"role":"alert"}},[(_vm.title)?_c('h4',{staticClass:"gl-alert-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.shouldRenderActions)?_c('div',{staticClass:"gl-alert-actions"},[_vm._t("actions",_vm._l((_vm.actionButtons),function(actionButton,index){return _c('gl-button',_vm._g(_vm._b({key:index,staticClass:"gl-alert-action"},'gl-button',actionButton.attrs,false),actionButton.listeners),[_vm._v("\n "+_vm._s(actionButton.text)+"\n ")])}))],2):_vm._e()])],1)])};
178
+ _vm.variantClass ]},[_c('gl-icon',{class:{ 'gl-alert-icon': true, 'gl-alert-icon-no-title': !_vm.title },attrs:{"name":_vm.iconName}}),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-content",attrs:{"role":"alert"}},[(_vm.title)?_c('h4',{staticClass:"gl-alert-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.shouldRenderActions)?_c('div',{staticClass:"gl-alert-actions"},[_vm._t("actions",_vm._l((_vm.actionButtons),function(actionButton,index){return _c('gl-button',_vm._g(_vm._b({key:index,staticClass:"gl-alert-action"},'gl-button',actionButton.attrs,false),actionButton.listeners),[_vm._v("\n "+_vm._s(actionButton.text)+"\n ")])}))],2):_vm._e()])],1)};
189
179
  var __vue_staticRenderFns__ = [];
190
180
 
191
181
  /* style */
@@ -35,7 +35,7 @@ var script = {
35
35
  const __vue_script__ = script;
36
36
 
37
37
  /* template */
38
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-card"},[(this.$slots.header)?_c('div',{staticClass:"gl-card-header",class:_vm.headerClass},[_vm._t("header")],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-card-body",class:_vm.bodyClass},[_vm._t("default")],2),_vm._v(" "),(this.$slots.footer)?_c('div',{staticClass:"gl-card-footer",class:_vm.footerClass},[_vm._t("footer")],2):_vm._e()])};
38
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-card"},[(_vm.$slots.header)?_c('div',{staticClass:"gl-card-header",class:_vm.headerClass},[_vm._t("header")],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-card-body",class:_vm.bodyClass},[_vm._t("default")],2),_vm._v(" "),(_vm.$slots.footer)?_c('div',{staticClass:"gl-card-footer",class:_vm.footerClass},[_vm._t("footer")],2):_vm._e()])};
39
39
  var __vue_staticRenderFns__ = [];
40
40
 
41
41
  /* style */
@@ -1,11 +1,5 @@
1
- import examples from './examples';
2
-
3
- var description = "### Area Chart\n";
4
-
5
1
  var area_documentation = {
6
- followsDesignSystem: false,
7
- description,
8
- examples
2
+ followsDesignSystem: false
9
3
  };
10
4
 
11
5
  export default area_documentation;
@@ -1,11 +1,8 @@
1
- import examples from './examples';
2
-
3
- var description = "### Line Chart\n\nThis is a basic line chart.\n\n### Implementation Details\n\nThis component wraps the Gitlab UI `chart` component, which in turn wraps the ECharts component.\n\nSee the [chart](./?path=/story/charts-chart--default) component for more info.\n";
1
+ var description = "This is a basic line chart.\n\n### Implementation Details\n\nThis component wraps the Gitlab UI `chart` component, which in turn wraps the ECharts component.\n\nSee the [chart](./?path=/story/charts-chart--default) component for more info.\n";
4
2
 
5
3
  var line_documentation = {
6
4
  followsDesignSystem: false,
7
- description,
8
- examples
5
+ description
9
6
  };
10
7
 
11
8
  export default line_documentation;