@gitlab/ui 88.5.0 → 89.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 (62) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/base/form/form_checkbox_tree/models/tree.js +1 -0
  3. package/dist/components/charts/series_label/series_label.js +1 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +0 -2
  7. package/dist/tokens/build/js/tokens.dark.js +13 -7
  8. package/dist/tokens/build/js/tokens.js +13 -7
  9. package/dist/tokens/css/tokens.css +12 -6
  10. package/dist/tokens/css/tokens.dark.css +12 -6
  11. package/dist/tokens/js/tokens.dark.js +12 -6
  12. package/dist/tokens/js/tokens.js +12 -6
  13. package/dist/tokens/json/tokens.dark.json +160 -30
  14. package/dist/tokens/json/tokens.json +160 -30
  15. package/dist/tokens/scss/_tokens.dark.scss +12 -6
  16. package/dist/tokens/scss/_tokens.scss +12 -6
  17. package/dist/tokens/scss/_tokens_custom_properties.scss +6 -0
  18. package/dist/vendor/bootstrap-vue/src/components/index.js +0 -2
  19. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +1 -1
  20. package/dist/vendor/bootstrap-vue/src/constants/components.js +1 -3
  21. package/dist/vendor/bootstrap-vue/src/index.js +0 -3
  22. package/package.json +1 -1
  23. package/src/components/base/avatar/avatar.scss +8 -0
  24. package/src/components/base/form/form_checkbox_tree/models/tree.js +1 -0
  25. package/src/components/charts/series_label/series_label.vue +1 -0
  26. package/src/index.js +0 -2
  27. package/src/scss/bootstrap.scss +0 -1
  28. package/src/scss/components.scss +0 -1
  29. package/src/tokens/build/css/tokens.css +12 -6
  30. package/src/tokens/build/css/tokens.dark.css +12 -6
  31. package/src/tokens/build/js/tokens.dark.js +12 -6
  32. package/src/tokens/build/js/tokens.js +12 -6
  33. package/src/tokens/build/json/tokens.dark.json +160 -30
  34. package/src/tokens/build/json/tokens.json +160 -30
  35. package/src/tokens/build/scss/_tokens.dark.scss +12 -6
  36. package/src/tokens/build/scss/_tokens.scss +12 -6
  37. package/src/tokens/build/scss/_tokens_custom_properties.scss +6 -0
  38. package/src/tokens/contextual/avatar.tokens.json +52 -18
  39. package/src/vendor/bootstrap-vue/nuxt/index.js +0 -1
  40. package/src/vendor/bootstrap-vue/package.json +0 -1
  41. package/src/vendor/bootstrap-vue/src/components/index.d.ts +0 -1
  42. package/src/vendor/bootstrap-vue/src/components/index.js +0 -2
  43. package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +1 -1
  44. package/src/vendor/bootstrap-vue/src/constants/components.js +0 -2
  45. package/src/vendor/bootstrap-vue/src/index.js +0 -5
  46. package/dist/components/base/carousel/carousel.js +0 -48
  47. package/dist/components/base/carousel/carousel_slide.js +0 -47
  48. package/dist/vendor/bootstrap-vue/src/components/carousel/carousel-slide.js +0 -123
  49. package/dist/vendor/bootstrap-vue/src/components/carousel/carousel.js +0 -617
  50. package/dist/vendor/bootstrap-vue/src/components/carousel/index.js +0 -14
  51. package/src/components/base/carousel/carousel.md +0 -3
  52. package/src/components/base/carousel/carousel.scss +0 -29
  53. package/src/components/base/carousel/carousel.vue +0 -19
  54. package/src/components/base/carousel/carousel_slide.vue +0 -18
  55. package/src/vendor/bootstrap-vue/src/components/carousel/README.md +0 -320
  56. package/src/vendor/bootstrap-vue/src/components/carousel/carousel-slide.js +0 -132
  57. package/src/vendor/bootstrap-vue/src/components/carousel/carousel-slide.spec.js +0 -276
  58. package/src/vendor/bootstrap-vue/src/components/carousel/carousel.js +0 -655
  59. package/src/vendor/bootstrap-vue/src/components/carousel/carousel.spec.js +0 -1069
  60. package/src/vendor/bootstrap-vue/src/components/carousel/index.d.ts +0 -20
  61. package/src/vendor/bootstrap-vue/src/components/carousel/index.js +0 -12
  62. package/src/vendor/bootstrap-vue/src/components/carousel/package.json +0 -185
@@ -1,123 +0,0 @@
1
- import { extend } from '../../vue';
2
- import { NAME_CAROUSEL_SLIDE } from '../../constants/components';
3
- import { HAS_TOUCH_SUPPORT } from '../../constants/env';
4
- import { PROP_TYPE_STRING, PROP_TYPE_BOOLEAN, PROP_TYPE_NUMBER_STRING } from '../../constants/props';
5
- import { SLOT_NAME_IMG } from '../../constants/slots';
6
- import { stopEvent } from '../../utils/events';
7
- import { htmlOrText } from '../../utils/html';
8
- import { identity } from '../../utils/identity';
9
- import { sortKeys } from '../../utils/object';
10
- import { makeProp, makePropsConfigurable, pluckProps, unprefixPropName } from '../../utils/props';
11
- import { props as props$1, idMixin } from '../../mixins/id';
12
- import { normalizeSlotMixin } from '../../mixins/normalize-slot';
13
- import { BImg } from '../image/img';
14
-
15
- // --- Props ---
16
-
17
- const imgProps = {
18
- imgAlt: makeProp(PROP_TYPE_STRING),
19
- imgBlank: makeProp(PROP_TYPE_BOOLEAN, false),
20
- imgBlankColor: makeProp(PROP_TYPE_STRING, 'transparent'),
21
- imgHeight: makeProp(PROP_TYPE_NUMBER_STRING),
22
- imgSrc: makeProp(PROP_TYPE_STRING),
23
- imgWidth: makeProp(PROP_TYPE_NUMBER_STRING)
24
- };
25
- const props = makePropsConfigurable(sortKeys({
26
- ...props$1,
27
- ...imgProps,
28
- background: makeProp(PROP_TYPE_STRING),
29
- caption: makeProp(PROP_TYPE_STRING),
30
- captionHtml: makeProp(PROP_TYPE_STRING),
31
- captionTag: makeProp(PROP_TYPE_STRING, 'h3'),
32
- contentTag: makeProp(PROP_TYPE_STRING, 'div'),
33
- contentVisibleUp: makeProp(PROP_TYPE_STRING),
34
- text: makeProp(PROP_TYPE_STRING),
35
- textHtml: makeProp(PROP_TYPE_STRING),
36
- textTag: makeProp(PROP_TYPE_STRING, 'p')
37
- }), NAME_CAROUSEL_SLIDE);
38
-
39
- // --- Main component ---
40
-
41
- // @vue/component
42
- const BCarouselSlide = /*#__PURE__*/extend({
43
- name: NAME_CAROUSEL_SLIDE,
44
- mixins: [idMixin, normalizeSlotMixin],
45
- inject: {
46
- getBvCarousel: {
47
- // Explicitly disable touch if not a child of carousel
48
- default: () => () => ({
49
- noTouch: true
50
- })
51
- }
52
- },
53
- props,
54
- computed: {
55
- bvCarousel() {
56
- return this.getBvCarousel();
57
- },
58
- contentClasses() {
59
- return [this.contentVisibleUp ? 'd-none' : '', this.contentVisibleUp ? `d-${this.contentVisibleUp}-block` : ''];
60
- },
61
- computedWidth() {
62
- // Use local width, or try parent width
63
- return this.imgWidth || this.bvCarousel.imgWidth || null;
64
- },
65
- computedHeight() {
66
- // Use local height, or try parent height
67
- return this.imgHeight || this.bvCarousel.imgHeight || null;
68
- }
69
- },
70
- render(h) {
71
- let $img = this.normalizeSlot(SLOT_NAME_IMG);
72
- if (!$img && (this.imgSrc || this.imgBlank)) {
73
- const on = {};
74
- // Touch support event handler
75
- /* istanbul ignore if: difficult to test in JSDOM */
76
- if (!this.bvCarousel.noTouch && HAS_TOUCH_SUPPORT) {
77
- on.dragstart = event => stopEvent(event, {
78
- propagation: false
79
- });
80
- }
81
- $img = h(BImg, {
82
- props: {
83
- ...pluckProps(imgProps, this.$props, unprefixPropName.bind(null, 'img')),
84
- width: this.computedWidth,
85
- height: this.computedHeight,
86
- fluidGrow: true,
87
- block: true
88
- },
89
- on
90
- });
91
- }
92
- const $contentChildren = [
93
- // Caption
94
- this.caption || this.captionHtml ? h(this.captionTag, {
95
- domProps: htmlOrText(this.captionHtml, this.caption)
96
- }) : false,
97
- // Text
98
- this.text || this.textHtml ? h(this.textTag, {
99
- domProps: htmlOrText(this.textHtml, this.text)
100
- }) : false,
101
- // Children
102
- this.normalizeSlot() || false];
103
- let $content = h();
104
- if ($contentChildren.some(identity)) {
105
- $content = h(this.contentTag, {
106
- staticClass: 'carousel-caption',
107
- class: this.contentClasses
108
- }, $contentChildren.map($child => $child || h()));
109
- }
110
- return h('div', {
111
- staticClass: 'carousel-item',
112
- style: {
113
- background: this.background || this.bvCarousel.background || null
114
- },
115
- attrs: {
116
- id: this.safeId(),
117
- role: 'listitem'
118
- }
119
- }, [$img, $content]);
120
- }
121
- });
122
-
123
- export { BCarouselSlide, props };