@gitlab/ui 36.3.0 → 36.6.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 (41) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/base/drawer/drawer.documentation.js +2 -5
  3. package/dist/components/charts/single_stat/single_stat.documentation.js +1 -4
  4. package/dist/components/regions/empty_state/empty_state.js +3 -2
  5. package/dist/index.css +2 -2
  6. package/dist/index.css.map +1 -1
  7. package/dist/utility_classes.css +1 -1
  8. package/dist/utility_classes.css.map +1 -1
  9. package/documentation/documented_stories.js +2 -0
  10. package/package.json +9 -9
  11. package/scss_to_js/scss_variables.js +1 -0
  12. package/scss_to_js/scss_variables.json +5 -0
  13. package/src/components/base/breadcrumb/breadcrumb.stories.js +8 -8
  14. package/src/components/base/drawer/drawer.documentation.js +0 -2
  15. package/src/components/base/drawer/drawer.md +0 -6
  16. package/src/components/base/drawer/drawer.stories.js +66 -34
  17. package/src/components/charts/single_stat/single_stat.documentation.js +0 -2
  18. package/src/components/charts/single_stat/single_stat.md +0 -2
  19. package/src/components/charts/single_stat/single_stat.stories.js +73 -80
  20. package/src/components/regions/empty_state/empty_state.spec.js +49 -0
  21. package/src/components/regions/empty_state/empty_state.vue +11 -8
  22. package/src/scss/utilities.scss +48 -0
  23. package/src/scss/utility-mixins/border.scss +21 -0
  24. package/src/scss/utility-mixins/grid.scss +4 -0
  25. package/src/scss/variables.scss +2 -0
  26. package/dist/components/base/drawer/examples/drawer.basic.example.js +0 -58
  27. package/dist/components/base/drawer/examples/index.js +0 -13
  28. package/dist/components/charts/single_stat/examples/index.js +0 -32
  29. package/dist/components/charts/single_stat/examples/single_stat.badge.example.js +0 -38
  30. package/dist/components/charts/single_stat/examples/single_stat.hover.example.js +0 -38
  31. package/dist/components/charts/single_stat/examples/single_stat.meta_icon.example.js +0 -38
  32. package/dist/components/charts/single_stat/examples/single_stat.simple.example.js +0 -38
  33. package/dist/components/charts/single_stat/examples/single_stat.title_icon.example.js +0 -38
  34. package/src/components/base/drawer/examples/drawer.basic.example.vue +0 -29
  35. package/src/components/base/drawer/examples/index.js +0 -15
  36. package/src/components/charts/single_stat/examples/index.js +0 -38
  37. package/src/components/charts/single_stat/examples/single_stat.badge.example.vue +0 -31
  38. package/src/components/charts/single_stat/examples/single_stat.hover.example.vue +0 -7
  39. package/src/components/charts/single_stat/examples/single_stat.meta_icon.example.vue +0 -10
  40. package/src/components/charts/single_stat/examples/single_stat.simple.example.vue +0 -7
  41. package/src/components/charts/single_stat/examples/single_stat.title_icon.example.vue +0 -7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # [36.6.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.5.1...v36.6.0) (2022-02-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **css:** Add shorthand border util classes ([318c99c](https://gitlab.com/gitlab-org/gitlab-ui/commit/318c99c4764b7cc889a4b97d93215ab322b03025))
7
+
8
+ ## [36.5.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.5.0...v36.5.1) (2022-02-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **breadcrumb:** Use sentence case for examples ([ace4a4f](https://gitlab.com/gitlab-org/gitlab-ui/commit/ace4a4fa048131c768b0442ac0b677f20258446a))
14
+
15
+ # [36.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.4.0...v36.5.0) (2022-02-10)
16
+
17
+
18
+ ### Features
19
+
20
+ * **css:** add grid template columns utility class ([4e97584](https://gitlab.com/gitlab-org/gitlab-ui/commit/4e975849f61eea7999a486257c417b87e60bee24))
21
+
22
+ # [36.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.3.0...v36.4.0) (2022-02-09)
23
+
24
+
25
+ ### Features
26
+
27
+ * **GlEmptyState:** make title into a slot ([45bacac](https://gitlab.com/gitlab-org/gitlab-ui/commit/45bacac972a7c4748e1fc96e1605615f816cb8ed))
28
+
1
29
  # [36.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v36.2.0...v36.3.0) (2022-02-08)
2
30
 
3
31
 
@@ -1,11 +1,8 @@
1
- import examples from './examples';
2
-
3
- var description = "# Drawer\n\n<!-- STORY -->\n\n## Usage\n\nThe drawer is used to show more information about a certain resource in the UI and potentially\nhandle actions on the information.\n\n### By default\n\n```html\n<gl-drawer :open=\"open\" @close=\"close\">\n <template #header>Your Title</template>\n <template>\n ...children\n </template>\n</gl-drawer>\n```\n\n- `v-bind:open` will be a boolean you will pass to `gl-drawer` and `@close` is a listener that will\nbe a function that will toggle open to `false`.\n";
1
+ var description = "The drawer is used to show more information about a certain resource in the UI and potentially\nhandle actions on the information.\n\n### By default\n\n```html\n<gl-drawer :open=\"open\" @close=\"close\">\n <template #header>Your Title</template>\n <template>\n ...children\n </template>\n</gl-drawer>\n```\n\n- `v-bind:open` will be a boolean you will pass to `gl-drawer` and `@close` is a listener that will\nbe a function that will toggle open to `false`.\n";
4
2
 
5
3
  var drawer_documentation = {
6
4
  followsDesignSystem: false,
7
- description,
8
- examples
5
+ description
9
6
  };
10
7
 
11
8
  export default drawer_documentation;
@@ -1,9 +1,6 @@
1
- import examples from './examples';
2
-
3
- var description = "### Single Stat\n\nThe single stat component is used to show a single value. The color of the meta icon / badge is\ndetermined by the **variant** prop, which can be one of \"success\", \"warning\", \"danger\", \"info\",\n\"neutral\" or \"muted\" (default).\n\n#### Hover state\n\nYou can make the component focusable by adding a `tabindex=0` attribute to it. This will also apply\na hover state to the component.\n";
1
+ var description = "The single stat component is used to show a single value. The color of the meta icon / badge is\ndetermined by the **variant** prop, which can be one of \"success\", \"warning\", \"danger\", \"info\",\n\"neutral\" or \"muted\" (default).\n\n#### Hover state\n\nYou can make the component focusable by adding a `tabindex=0` attribute to it. This will also apply\na hover state to the component.\n";
4
2
 
5
3
  var single_stat_documentation = {
6
- examples,
7
4
  description
8
5
  };
9
6
 
@@ -11,7 +11,8 @@ var script = {
11
11
  */
12
12
  title: {
13
13
  type: String,
14
- required: true
14
+ required: false,
15
+ default: null
15
16
  },
16
17
 
17
18
  /**
@@ -113,7 +114,7 @@ const __vue_script__ = script;
113
114
  var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"gl-display-flex",class:{
114
115
  'empty-state gl-text-center gl-flex-direction-column': !_vm.compact,
115
116
  'gl-flex-direction-row': _vm.compact,
116
- }},[_c('div',{class:{ 'gl-display-none gl-sm-display-block gl-px-4': _vm.compact, 'gl-max-w-full': !_vm.compact }},[(_vm.svgPath)?_c('div',{staticClass:"svg-250",class:{ 'svg-content': !_vm.compact }},[_c('img',{staticClass:"gl-max-w-full",attrs:{"src":_vm.svgPath,"alt":"","role":"img","height":_vm.height}})]):_vm._e()]),_vm._v(" "),_c('div',{class:_vm.compact ? 'gl-flex-grow-1 gl-flex-basis-0 gl-px-4' : 'gl-max-w-full gl-m-auto'},[_c('div',{staticClass:"gl-mx-auto gl-my-0",class:{ 'gl-p-5': !_vm.compact }},[_c('h1',{ref:"title",staticClass:"gl-font-size-h-display gl-line-height-36",class:_vm.compact ? 'h5' : 'h4'},[_vm._v("\n "+_vm._s(_vm.title)+"\n ")]),_vm._v(" "),(_vm.description || _vm.$scopedSlots.description)?_c('p',{ref:"description",staticClass:"gl-mt-3"},[_vm._t("description",[_vm._v("\n "+_vm._s(_vm.description)+"\n ")])],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-display-flex gl-flex-wrap",class:{ 'gl-justify-content-center': !_vm.compact }},[_vm._t("actions",[(_vm.shouldRenderPrimaryButton)?_c('gl-button',{staticClass:"gl-mb-3",class:_vm.compact ? 'gl-mr-3' : 'gl-mx-2',attrs:{"variant":"confirm","href":_vm.primaryButtonLink}},[_vm._v(_vm._s(_vm.primaryButtonText))]):_vm._e(),_vm._v(" "),(_vm.shouldRenderSecondaryButton)?_c('gl-button',{staticClass:"gl-mb-3 gl-mr-3",class:{ 'gl-mx-2!': !_vm.compact },attrs:{"href":_vm.secondaryButtonLink}},[_vm._v(_vm._s(_vm.secondaryButtonText)+"\n ")]):_vm._e()])],2)])])])};
117
+ }},[_c('div',{class:{ 'gl-display-none gl-sm-display-block gl-px-4': _vm.compact, 'gl-max-w-full': !_vm.compact }},[(_vm.svgPath)?_c('div',{staticClass:"svg-250",class:{ 'svg-content': !_vm.compact }},[_c('img',{staticClass:"gl-max-w-full",attrs:{"src":_vm.svgPath,"alt":"","role":"img","height":_vm.height}})]):_vm._e()]),_vm._v(" "),_c('div',{class:_vm.compact ? 'gl-flex-grow-1 gl-flex-basis-0 gl-px-4' : 'gl-max-w-full gl-m-auto'},[_c('div',{staticClass:"gl-mx-auto gl-my-0",class:{ 'gl-p-5': !_vm.compact }},[_vm._t("title",[_c('h1',{staticClass:"gl-font-size-h-display gl-line-height-36",class:_vm.compact ? 'h5' : 'h4'},[_vm._v("\n "+_vm._s(_vm.title)+"\n ")])]),_vm._v(" "),(_vm.description || _vm.$scopedSlots.description)?_c('p',{ref:"description",staticClass:"gl-mt-3"},[_vm._t("description",[_vm._v("\n "+_vm._s(_vm.description)+"\n ")])],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-display-flex gl-flex-wrap",class:{ 'gl-justify-content-center': !_vm.compact }},[_vm._t("actions",[(_vm.shouldRenderPrimaryButton)?_c('gl-button',{staticClass:"gl-mb-3",class:_vm.compact ? 'gl-mr-3' : 'gl-mx-2',attrs:{"variant":"confirm","href":_vm.primaryButtonLink}},[_vm._v(_vm._s(_vm.primaryButtonText))]):_vm._e(),_vm._v(" "),(_vm.shouldRenderSecondaryButton)?_c('gl-button',{staticClass:"gl-mb-3 gl-mr-3",class:{ 'gl-mx-2!': !_vm.compact },attrs:{"href":_vm.secondaryButtonLink}},[_vm._v(_vm._s(_vm.secondaryButtonText)+"\n ")]):_vm._e()])],2)],2)])])};
117
118
  var __vue_staticRenderFns__ = [];
118
119
 
119
120
  /* style */