@gitlab/ui 91.3.0 → 91.5.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # [91.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v91.4.0...v91.5.0) (2024-09-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Alert:** Transparent border bottom ([30f1863](https://gitlab.com/gitlab-org/gitlab-ui/commit/30f1863f6921426ea4b907a3e0c74ed98b41e727))
7
+
8
+ # [91.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v91.3.0...v91.4.0) (2024-09-02)
9
+
10
+
11
+ ### Features
12
+
13
+ * **GlAlert:** Replace english text with translation ([38582dd](https://gitlab.com/gitlab-org/gitlab-ui/commit/38582dddee70e6bf2b19945b5f20953359f5bc7a))
14
+ * **GlBanner:** Replace english text with translation ([a8ad872](https://gitlab.com/gitlab-org/gitlab-ui/commit/a8ad872011660d2973c9008e63b314355032e632))
15
+ * **GlBroadcastMessage:** Replace english text with translation ([6cf3e7c](https://gitlab.com/gitlab-org/gitlab-ui/commit/6cf3e7cfe272c1eb48c61d0d79dec9245a825d75))
16
+ * **GlModal:** Replace english text with translation ([2498b0e](https://gitlab.com/gitlab-org/gitlab-ui/commit/2498b0e38f74d2af7efae62b3686ff189b056932))
17
+ * **GlToken:** Add property 'removeLabel' ([87b81a6](https://gitlab.com/gitlab-org/gitlab-ui/commit/87b81a6f0838e8a644af20558a65b02d5b99e25e))
18
+
1
19
  # [91.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v91.2.0...v91.3.0) (2024-08-30)
2
20
 
3
21
 
@@ -1,3 +1,4 @@
1
+ import { translate } from '../../../utils/i18n';
1
2
  import { alertVariantOptions, alertVariantIconMap, buttonCategoryOptions } from '../../../utils/constants';
2
3
  import CloseButton from '../../shared_components/close_button/close_button';
3
4
  import GlButton from '../button/button';
@@ -35,12 +36,12 @@ var script = {
35
36
  default: true
36
37
  },
37
38
  /**
38
- * Dismiss button's aria-label.
39
+ * The close button's label, it is used for the button's aria-label attribute.
39
40
  */
40
41
  dismissLabel: {
41
42
  type: String,
42
43
  required: false,
43
- default: 'Dismiss'
44
+ default: () => translate('GlAlert.closeButtonTitle', 'Dismiss')
44
45
  },
45
46
  variant: {
46
47
  type: String,
@@ -1,4 +1,5 @@
1
1
  import { bannerVariants } from '../../../utils/constants';
2
+ import { translate } from '../../../utils/i18n';
2
3
  import CloseButton from '../../shared_components/close_button/close_button';
3
4
  import GlButton from '../button/button';
4
5
  import GlCard from '../card/card';
@@ -62,12 +63,12 @@ var script = {
62
63
  }
63
64
  },
64
65
  /**
65
- * Dismiss button's aria-label.
66
+ * The close button's label, it is used for the button's aria-label attribute.
66
67
  */
67
68
  dismissLabel: {
68
69
  type: String,
69
70
  required: false,
70
- default: 'Dismiss'
71
+ default: () => translate('GlBanner.closeButtonTitle', 'Dismiss')
71
72
  }
72
73
  },
73
74
  computed: {
@@ -1,4 +1,5 @@
1
1
  import { colorThemes } from '../../../utils/constants';
2
+ import { translate } from '../../../utils/i18n';
2
3
  import CloseButton from '../../shared_components/close_button/close_button';
3
4
  import GlIcon from '../icon/icon';
4
5
  import { TYPE_BANNER, TYPE_LIST, TYPE_NOTIFICATION } from './constants';
@@ -28,12 +29,12 @@ var script = {
28
29
  default: true
29
30
  },
30
31
  /**
31
- * The dismiss button's label, it is visible in mobile viewports and used for the button's aria-label attribute.
32
+ * The dismiss button's label, it is used for the button's aria-label attribute.
32
33
  */
33
34
  dismissLabel: {
34
35
  type: String,
35
36
  required: false,
36
- default: 'Dismiss'
37
+ default: () => translate('GlBroadcastMessage.closeButtonTitle', 'Dismiss')
37
38
  },
38
39
  /**
39
40
  * The theme's name to use, this should correspond to the user's selected theme in GitLab.
@@ -1,4 +1,5 @@
1
1
  import { BModal } from '../../../vendor/bootstrap-vue/src/components/modal/modal';
2
+ import { translate } from '../../../utils/i18n';
2
3
  import { modalSizeOptions, modalButtonDefaults, focusableTags, COMMA } from '../../../utils/constants';
3
4
  import { logWarning, focusFirstFocusableElement } from '../../../utils/utils';
4
5
  import CloseButton from '../../shared_components/close_button/close_button';
@@ -65,10 +66,13 @@ var script = {
65
66
  default: modalSizeOptions.md,
66
67
  validator: val => Object.keys(modalSizeOptions).includes(val)
67
68
  },
69
+ /**
70
+ * The close button's label, it is used for the button's aria-label attribute.
71
+ */
68
72
  dismissLabel: {
69
73
  type: String,
70
74
  required: false,
71
- default: 'Close'
75
+ default: () => translate('GlModal.closeButtonTitle', 'Close')
72
76
  },
73
77
  visible: {
74
78
  type: Boolean,
@@ -1,4 +1,5 @@
1
1
  import { tokenVariants } from '../../../utils/constants';
2
+ import { translate } from '../../../utils/i18n';
2
3
  import CloseButton from '../../shared_components/close_button/close_button';
3
4
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
4
5
 
@@ -22,6 +23,14 @@ var script = {
22
23
  required: false,
23
24
  default: 'default',
24
25
  validator: variant => tokenVariants.includes(variant)
26
+ },
27
+ /**
28
+ * The close button's label, it is used for the button's aria-label attribute.
29
+ */
30
+ removeLabel: {
31
+ type: String,
32
+ required: false,
33
+ default: () => translate('GlToken.closeButtonTitle', 'Remove')
25
34
  }
26
35
  },
27
36
  computed: {
@@ -50,7 +59,7 @@ var script = {
50
59
  const __vue_script__ = script;
51
60
 
52
61
  /* template */
53
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',_vm._g({class:['gl-token', _vm.variantClass, _vm.viewOnlyClass]},_vm.$listeners),[_c('span',{staticClass:"gl-token-content"},[_vm._t("default"),_vm._v(" "),(!_vm.viewOnly)?_c('close-button',{staticClass:"gl-token-close gl-close-btn-color-inherit",on:{"click":_vm.close}}):_vm._e()],2)])};
62
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',_vm._g({class:['gl-token', _vm.variantClass, _vm.viewOnlyClass]},_vm.$listeners),[_c('span',{staticClass:"gl-token-content"},[_vm._t("default"),_vm._v(" "),(!_vm.viewOnly)?_c('close-button',{staticClass:"gl-token-close gl-close-btn-color-inherit",attrs:{"label":_vm.removeLabel},on:{"click":_vm.close}}):_vm._e()],2)])};
54
63
  var __vue_staticRenderFns__ = [];
55
64
 
56
65
  /* style */
@@ -1,3 +1,4 @@
1
+ import { translate } from '../../../utils/i18n';
1
2
  import GlButton from '../../base/button/button';
2
3
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
3
4
 
@@ -10,7 +11,7 @@ var script = {
10
11
  label: {
11
12
  type: String,
12
13
  required: false,
13
- default: 'Close'
14
+ default: () => translate('CloseButton.title', 'Close')
14
15
  }
15
16
  }
16
17
  };