@gitlab/ui 59.2.0 → 59.3.1
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 +14 -0
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +4 -3
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +5 -5
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.spec.js +7 -0
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +1 -1
- package/src/components/charts/sparkline/sparkline.stories.js +2 -0
- package/src/scss/utilities.scss +36 -0
- package/src/scss/utility-mixins/sizing.scss +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "59.
|
|
3
|
+
"version": "59.3.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@arkweid/lefthook": "0.7.7",
|
|
88
|
-
"@babel/core": "^7.21.
|
|
89
|
-
"@babel/preset-env": "^7.
|
|
90
|
-
"@gitlab/eslint-plugin": "18.
|
|
88
|
+
"@babel/core": "^7.21.4",
|
|
89
|
+
"@babel/preset-env": "^7.21.4",
|
|
90
|
+
"@gitlab/eslint-plugin": "18.3.0",
|
|
91
91
|
"@gitlab/fonts": "^1.2.0",
|
|
92
92
|
"@gitlab/stylelint-config": "4.1.0",
|
|
93
|
-
"@gitlab/svgs": "3.
|
|
93
|
+
"@gitlab/svgs": "3.36.0",
|
|
94
94
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
95
95
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
96
96
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -92,6 +92,13 @@ describe('base dropdown', () => {
|
|
|
92
92
|
wrapper.destroy();
|
|
93
93
|
expect(destroyPopper).toHaveBeenCalled();
|
|
94
94
|
});
|
|
95
|
+
|
|
96
|
+
it('should not destroy popper instance when component is not initiated', async () => {
|
|
97
|
+
buildWrapper();
|
|
98
|
+
wrapper.destroy();
|
|
99
|
+
await nextTick();
|
|
100
|
+
expect(destroyPopper).not.toHaveBeenCalled();
|
|
101
|
+
});
|
|
95
102
|
});
|
|
96
103
|
|
|
97
104
|
describe('renders content to the default slot', () => {
|
|
@@ -55,12 +55,14 @@ Default.args = generateProps();
|
|
|
55
55
|
|
|
56
56
|
export const WithoutLastYValue = Template.bind({});
|
|
57
57
|
WithoutLastYValue.args = generateProps({ showLastYValue: false });
|
|
58
|
+
WithoutLastYValue.parameters = { storyshots: { disable: true } };
|
|
58
59
|
|
|
59
60
|
export const WithChartColorGradient = Template.bind({});
|
|
60
61
|
WithChartColorGradient.args = generateProps({ gradient: customGradient });
|
|
61
62
|
|
|
62
63
|
export const WithSmoothing = Template.bind({});
|
|
63
64
|
WithSmoothing.args = generateProps({ smooth: 0.5 });
|
|
65
|
+
WithSmoothing.parameters = { storyshots: { disable: true } };
|
|
64
66
|
|
|
65
67
|
export const AutoHeight = Template.bind({});
|
|
66
68
|
Object.assign(AutoHeight, {
|
package/src/scss/utilities.scss
CHANGED
|
@@ -4984,6 +4984,42 @@
|
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
4986
4986
|
|
|
4987
|
+
.gl-md-w-15 {
|
|
4988
|
+
@include gl-media-breakpoint-up(md) {
|
|
4989
|
+
width: $gl-spacing-scale-15;
|
|
4990
|
+
}
|
|
4991
|
+
}
|
|
4992
|
+
|
|
4993
|
+
.gl-md-w-15\! {
|
|
4994
|
+
@include gl-media-breakpoint-up(md) {
|
|
4995
|
+
width: $gl-spacing-scale-15 !important;
|
|
4996
|
+
}
|
|
4997
|
+
}
|
|
4998
|
+
|
|
4999
|
+
.gl-md-w-20 {
|
|
5000
|
+
@include gl-media-breakpoint-up(md) {
|
|
5001
|
+
width: $gl-spacing-scale-20;
|
|
5002
|
+
}
|
|
5003
|
+
}
|
|
5004
|
+
|
|
5005
|
+
.gl-md-w-20\! {
|
|
5006
|
+
@include gl-media-breakpoint-up(md) {
|
|
5007
|
+
width: $gl-spacing-scale-20 !important;
|
|
5008
|
+
}
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
.gl-md-w-30 {
|
|
5012
|
+
@include gl-media-breakpoint-up(md) {
|
|
5013
|
+
width: $gl-spacing-scale-30;
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5016
|
+
|
|
5017
|
+
.gl-md-w-30\! {
|
|
5018
|
+
@include gl-media-breakpoint-up(md) {
|
|
5019
|
+
width: $gl-spacing-scale-30 !important;
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
|
|
4987
5023
|
.gl-md-w-half {
|
|
4988
5024
|
@include gl-media-breakpoint-up(md) {
|
|
4989
5025
|
width: 50%;
|
|
@@ -251,6 +251,24 @@
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
@mixin gl-md-w-15 {
|
|
255
|
+
@include gl-media-breakpoint-up(md) {
|
|
256
|
+
@include gl-w-15;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@mixin gl-md-w-20 {
|
|
261
|
+
@include gl-media-breakpoint-up(md) {
|
|
262
|
+
@include gl-w-20;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@mixin gl-md-w-30 {
|
|
267
|
+
@include gl-media-breakpoint-up(md) {
|
|
268
|
+
@include gl-w-30;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
254
272
|
@mixin gl-md-w-half {
|
|
255
273
|
@include gl-media-breakpoint-up(md) {
|
|
256
274
|
width: 50%;
|