@gitlab/ui 39.1.0 → 39.3.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 (40) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/base/alert/alert.js +11 -1
  3. package/dist/index.css +2 -2
  4. package/dist/index.css.map +1 -1
  5. package/dist/utility_classes.css +1 -1
  6. package/dist/utility_classes.css.map +1 -1
  7. package/package.json +2 -2
  8. package/scss_to_js/scss_variables.js +6 -2
  9. package/scss_to_js/scss_variables.json +24 -4
  10. package/src/components/base/alert/alert.scss +4 -0
  11. package/src/components/base/alert/alert.spec.js +11 -0
  12. package/src/components/base/alert/alert.stories.js +14 -0
  13. package/src/components/base/alert/alert.vue +10 -0
  14. package/src/components/base/avatar_link/avatar_link.scss +1 -0
  15. package/src/components/base/badge/badge.scss +1 -1
  16. package/src/components/base/breadcrumb/breadcrumb.scss +1 -1
  17. package/src/components/base/button/button.scss +34 -34
  18. package/src/components/base/carousel/carousel.scss +7 -0
  19. package/src/components/base/datepicker/datepicker.scss +4 -0
  20. package/src/components/base/dropdown/dropdown.scss +8 -0
  21. package/src/components/base/dropdown/dropdown_item.scss +0 -1
  22. package/src/components/base/form/form_checkbox/form_checkbox.scss +1 -1
  23. package/src/components/base/form/form_input/form_input.scss +2 -2
  24. package/src/components/base/form/form_select/form_select.scss +2 -2
  25. package/src/components/base/label/label.scss +2 -1
  26. package/src/components/base/link/link.scss +1 -1
  27. package/src/components/base/link/link.stories.js +15 -0
  28. package/src/components/base/nav/nav.scss +7 -0
  29. package/src/components/base/pagination/pagination.scss +14 -7
  30. package/src/components/base/path/path.scss +29 -5
  31. package/src/components/base/search_box_by_click/search_box_by_click.scss +1 -1
  32. package/src/components/base/table/table.scss +6 -0
  33. package/src/components/base/token/token.scss +6 -0
  34. package/src/components/base/token_selector/token_selector.scss +2 -2
  35. package/src/components/shared_components/close_button/close_button.scss +11 -11
  36. package/src/scss/components.scss +3 -1
  37. package/src/scss/mixins.scss +26 -4
  38. package/src/scss/utilities.scss +0 -8
  39. package/src/scss/utility-mixins/outline.scss +1 -1
  40. package/src/scss/variables.scss +8 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # [39.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v39.2.1...v39.3.0) (2022-04-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * **focus:** Improve :focus styles ([9fb0d1d](https://gitlab.com/gitlab-org/gitlab-ui/commit/9fb0d1d440a65dde28ae220870dfc001e2b28990))
7
+
8
+ ## [39.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v39.2.0...v39.2.1) (2022-04-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **GlDropdown:** correct small button spacing ([bfed939](https://gitlab.com/gitlab-org/gitlab-ui/commit/bfed939fb34acf25162f6ef5b42591d00071886b))
14
+
15
+ # [39.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v39.1.0...v39.2.0) (2022-04-25)
16
+
17
+
18
+ ### Features
19
+
20
+ * **GlAlert:** Add support for hiding variant icon ([2c5f3a6](https://gitlab.com/gitlab-org/gitlab-ui/commit/2c5f3a67babfc3ddd6f1b5940e11154fdef5902d))
21
+
1
22
  # [39.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v39.0.0...v39.1.0) (2022-04-22)
2
23
 
3
24
 
@@ -26,6 +26,15 @@ var script = {
26
26
  default: true
27
27
  },
28
28
 
29
+ /**
30
+ * Shows icon based on variant.
31
+ */
32
+ showIcon: {
33
+ type: Boolean,
34
+ required: false,
35
+ default: true
36
+ },
37
+
29
38
  /**
30
39
  * Dismiss button's aria-label.
31
40
  */
@@ -175,7 +184,8 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
175
184
  'gl-alert',
176
185
  { 'gl-alert-sticky': _vm.sticky },
177
186
  { 'gl-alert-not-dismissible': !_vm.dismissible },
178
- _vm.variantClass ]},[_c('gl-icon',{class:{ 'gl-alert-icon': true, 'gl-alert-icon-no-title': !_vm.title },attrs:{"name":_vm.iconName}}),_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()]),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e()],1)};
187
+ { 'gl-alert-no-icon': !_vm.showIcon },
188
+ _vm.variantClass ]},[(_vm.showIcon)?_c('gl-icon',{class:{ 'gl-alert-icon': true, 'gl-alert-icon-no-title': !_vm.title },attrs:{"name":_vm.iconName}}):_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()]),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e()],1)};
179
189
  var __vue_staticRenderFns__ = [];
180
190
 
181
191
  /* style */