@gitlab/ui 101.7.0 → 101.8.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 (33) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/icon/icon.js +10 -21
  3. package/dist/components/base/toast/toast.js +0 -1
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/tokens/build/js/tokens.dark.js +5 -5
  7. package/dist/tokens/css/tokens.css +1 -1
  8. package/dist/tokens/css/tokens.dark.css +2 -2
  9. package/dist/tokens/js/tokens.dark.js +5 -5
  10. package/dist/tokens/json/tokens.dark.json +7 -10
  11. package/dist/tokens/json/tokens.json +2 -5
  12. package/dist/tokens/scss/_tokens.dark.scss +2 -2
  13. package/dist/tokens/scss/_tokens.scss +1 -1
  14. package/dist/vendor/bootstrap-vue/src/components/toast/toast.js +0 -17
  15. package/package.json +2 -2
  16. package/src/components/base/icon/icon.vue +10 -19
  17. package/src/components/base/toast/toast.js +0 -1
  18. package/src/components/experimental/duo/chat/duo_chat.scss +2 -0
  19. package/src/tokens/build/css/tokens.css +1 -1
  20. package/src/tokens/build/css/tokens.dark.css +2 -2
  21. package/src/tokens/build/js/tokens.dark.js +5 -5
  22. package/src/tokens/build/json/tokens.dark.json +7 -10
  23. package/src/tokens/build/json/tokens.json +2 -5
  24. package/src/tokens/build/scss/_tokens.dark.scss +2 -2
  25. package/src/tokens/build/scss/_tokens.scss +1 -1
  26. package/src/tokens/contextual/link.tokens.json +1 -4
  27. package/src/tokens/text.tokens.json +1 -1
  28. package/src/vendor/bootstrap-vue/src/components/toast/README.md +1 -2
  29. package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.spec.js +0 -14
  30. package/src/vendor/bootstrap-vue/src/components/toast/index.d.ts +0 -1
  31. package/src/vendor/bootstrap-vue/src/components/toast/package.json +0 -4
  32. package/src/vendor/bootstrap-vue/src/components/toast/toast.js +1 -18
  33. package/src/vendor/bootstrap-vue/src/components/toast/toast.spec.js +0 -40
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [101.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.7.1...v101.8.0) (2024-11-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * **GlLink:** Update darkmode token value ([b8c03e0](https://gitlab.com/gitlab-org/gitlab-ui/commit/b8c03e04663fc560e1821c9030733b079aa08279))
7
+
8
+ ## [101.7.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.7.0...v101.7.1) (2024-11-04)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **GlDuoChat:** Prevent scrolling the content behind the Duo Chat ([2b48d08](https://gitlab.com/gitlab-org/gitlab-ui/commit/2b48d0885cfdf409c8d84a1cd046149fae111496))
14
+
1
15
  # [101.7.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.6.2...v101.7.0) (2024-11-04)
2
16
 
3
17
 
@@ -1,28 +1,10 @@
1
1
  import iconsPath from '@gitlab/svgs/dist/icons.svg';
2
+ import iconsInfo from '@gitlab/svgs/dist/icons.json';
2
3
  import { iconSizeOptions, iconVariantOptions } from '../../../utils/constants';
3
4
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
4
5
 
5
6
  //
6
- let iconValidator = () => true;
7
-
8
- /*
9
- During development/tests we want to validate that we are just using icons that are actually defined
10
- */
11
- if (process.env.NODE_ENV !== 'production') {
12
- // eslint-disable-next-line global-require
13
- const data = require('@gitlab/svgs/dist/icons.json');
14
- const {
15
- icons
16
- } = data;
17
- iconValidator = value => {
18
- if (icons.includes(value)) {
19
- return true;
20
- }
21
- // eslint-disable-next-line no-console
22
- console.warn(`Icon '${value}' is not a known icon of @gitlab/svgs`);
23
- return false;
24
- };
25
- }
7
+ const knownIcons = new Set(iconsInfo.icons);
26
8
 
27
9
  /** This is a re-usable vue component for rendering a svg sprite icon
28
10
  * @example
@@ -50,7 +32,14 @@ var script = {
50
32
  name: {
51
33
  type: String,
52
34
  required: true,
53
- validator: iconValidator
35
+ validator: value => {
36
+ if (knownIcons.has(value)) {
37
+ return true;
38
+ }
39
+ // eslint-disable-next-line no-console
40
+ console.warn(`Icon '${value}' is not a known icon of @gitlab/svgs`);
41
+ return false;
42
+ }
54
43
  },
55
44
  /**
56
45
  * Icon size
@@ -7,7 +7,6 @@ const DEFAULT_OPTIONS = {
7
7
  autoHideDelay: 5000,
8
8
  toastClass: 'gl-toast',
9
9
  isStatus: true,
10
- noCloseButton: true,
11
10
  toaster: 'b-toaster-bottom-left'
12
11
  };
13
12
  let toastsCount = 0;