@gitlab/ui 32.54.1 → 32.57.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "32.54.1",
3
+ "version": "32.57.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -139,7 +139,14 @@ describe('line component', () => {
139
139
  const dataTooltipTitle = 'FooBar';
140
140
 
141
141
  beforeEach(() => {
142
- createShallowWrapper();
142
+ createShallowWrapper(
143
+ {},
144
+ {
145
+ stubs: {
146
+ 'chart-tooltip': ChartTooltipStub,
147
+ },
148
+ }
149
+ );
143
150
  });
144
151
 
145
152
  it('is initialized', () => {
@@ -354,19 +354,15 @@ export default {
354
354
  :top="dataTooltipPosition.top"
355
355
  :left="dataTooltipPosition.left"
356
356
  >
357
- <template v-if="formatTooltipText">
358
- <!-- eslint-disable-next-line vue/no-deprecated-slot-attribute -->
359
- <slot slot="title" name="tooltip-title"></slot>
360
- <slot name="tooltip-content"></slot>
361
- </template>
362
- <template v-else>
363
- <!-- eslint-disable-next-line vue/no-deprecated-slot-attribute -->
364
- <div slot="title">
357
+ <template #title>
358
+ <slot v-if="formatTooltipText" name="tooltip-title"></slot>
359
+ <div v-else>
365
360
  {{ dataTooltipTitle }}
366
361
  <template v-if="options.xAxis.name">({{ options.xAxis.name }})</template>
367
362
  </div>
368
- <tooltip-default-format :tooltip-content="dataTooltipContent" />
369
363
  </template>
364
+ <slot v-if="formatTooltipText" name="tooltip-content"></slot>
365
+ <tooltip-default-format v-else :tooltip-content="dataTooltipContent" />
370
366
  </chart-tooltip>
371
367
  <chart-legend
372
368
  v-if="compiledOptions"
@@ -0,0 +1,39 @@
1
+ // stylelint-disable scss/at-import-partial-extension-blacklist
2
+
3
+ // imports from https://github.com/bootstrap-vue/bootstrap-vue/blob/dev/src/index.scss
4
+
5
+ @import 'bootstrap-vue/src/variables.scss';
6
+ @import 'bootstrap-vue/src/utilities.scss';
7
+
8
+ // Used by BFormSpinbutton, BFormDatepicker, BFormTimepicker, BTime, BCalendar
9
+ @import 'bootstrap-vue/src/custom-controls.scss';
10
+
11
+ // Comment out components we are not importing in gitlab-ui
12
+ // Still listed for easy comparison
13
+ // @import 'bootstrap-vue/src/components/avatar/index.scss';
14
+ // @import 'bootstrap-vue/src/components/calendar/index.scss';
15
+ @import 'bootstrap-vue/src/components/card/index.scss';
16
+ @import 'bootstrap-vue/src/components/dropdown/index.scss';
17
+ @import 'bootstrap-vue/src/components/form-checkbox/index.scss';
18
+ // @import 'bootstrap-vue/src/components/form-file/index.scss';
19
+ @import 'bootstrap-vue/src/components/form-input/index.scss';
20
+ @import 'bootstrap-vue/src/components/form-radio/index.scss';
21
+ // @import 'bootstrap-vue/src/components/form-rating/index.scss';
22
+ // @import 'bootstrap-vue/src/components/form-spinbutton/index.scss';
23
+ @import 'bootstrap-vue/src/components/form-tags/index.scss';
24
+ @import 'bootstrap-vue/src/components/input-group/index.scss';
25
+ // @import 'bootstrap-vue/src/components/media/index.scss';
26
+ @import 'bootstrap-vue/src/components/modal/index.scss';
27
+ @import 'bootstrap-vue/src/components/nav/index.scss';
28
+ @import 'bootstrap-vue/src/components/navbar/index.scss';
29
+ // @import 'bootstrap-vue/src/components/pagination/index.scss';
30
+ // @import 'bootstrap-vue/src/components/pagination-nav/index.scss';
31
+ @import 'bootstrap-vue/src/components/popover/index.scss';
32
+ // @import 'bootstrap-vue/src/components/skeleton/index.scss';
33
+ // @import 'bootstrap-vue/src/components/sidebar/index.scss';
34
+ @import 'bootstrap-vue/src/components/table/index.scss';
35
+ // @import 'bootstrap-vue/src/components/time/index.scss';
36
+ @import 'bootstrap-vue/src/components/toast/index.scss';
37
+ @import 'bootstrap-vue/src/components/tooltip/index.scss';
38
+
39
+ // @import 'bootstrap-vue/src/icons/icons.scss';
@@ -1,6 +1,6 @@
1
1
  @import 'bootstrap';
2
2
 
3
- @import 'bootstrap-vue/src/index.scss'; // stylelint-disable-line
3
+ @import 'bootstrap_vue';
4
4
 
5
5
  // Settings
6
6
  @import 'functions';
@@ -5,7 +5,7 @@
5
5
  @import 'bootstrap/scss/variables';
6
6
  @import 'bootstrap/scss/mixins';
7
7
 
8
- @import 'bootstrap-vue/src/index.scss'; // stylelint-disable-line
8
+ @import 'bootstrap_vue';
9
9
 
10
10
  @import 'mixins';
11
11
  @import 'utility-mixins/index';