@gitlab/ui 49.8.0 → 49.9.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 +7 -0
- package/dist/components/base/new_dropdowns/listbox/listbox.js +8 -5
- package/dist/components/base/paginated_list/paginated_list.js +1 -1
- package/dist/components/base/path/path.js +1 -1
- package/dist/components/charts/area/area.js +1 -1
- package/dist/components/charts/bar/bar.js +1 -1
- package/dist/components/charts/column/column.js +1 -1
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
- package/dist/components/charts/gauge/gauge.js +1 -1
- package/dist/components/charts/heatmap/heatmap.js +1 -1
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/stacked_column/stacked_column.js +1 -1
- package/dist/components/mixins/toolbox_mixin.js +2 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/use_mock_intersection_observer.js +1 -1
- package/package.json +15 -7
- package/scss_to_js/scss_variables.js +6 -5
- package/scss_to_js/scss_variables.json +15 -10
- package/src/components/base/new_dropdowns/listbox/listbox.vue +10 -7
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +0 -8
- package/src/components/base/paginated_list/paginated_list.vue +4 -3
- package/src/components/base/path/__snapshots__/path.spec.js.snap +0 -30
- package/src/components/base/path/path.vue +1 -2
- package/src/components/charts/area/area.vue +1 -1
- package/src/components/charts/bar/bar.vue +1 -1
- package/src/components/charts/column/column.vue +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -1
- package/src/components/charts/gauge/gauge.vue +1 -1
- package/src/components/charts/heatmap/heatmap.vue +1 -1
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/stacked_column/stacked_column.vue +1 -1
- package/src/components/mixins/toolbox_mixin.js +1 -1
- package/src/components/utilities/intersection_observer/intersection_observer.spec.js +1 -1
- package/src/scss/utilities.scss +24 -0
- package/src/scss/utility-mixins/box-shadow.scss +21 -0
- package/src/scss/variables.scss +6 -5
- package/src/utils/use_mock_intersection_observer.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "49.
|
|
3
|
+
"version": "49.9.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"test:unit": "NODE_ENV=test jest --testPathIgnorePatterns storyshots.spec.js",
|
|
38
38
|
"test:unit:watch": "yarn test:unit --watch",
|
|
39
39
|
"test:unit:debug": "NODE_ENV=test node --inspect node_modules/.bin/jest --testPathIgnorePatterns storyshot.spec.js --watch --runInBand",
|
|
40
|
+
"test:unit-vue3": "VUE_VERSION=3 NODE_ENV=test jest --testPathIgnorePatterns storyshots.spec.js",
|
|
41
|
+
"test:unit-vue3:watch": "VUE_VERSION=3 yarn test:unit --watch --notify",
|
|
42
|
+
"test:unit-vue3:debug": "VUE_VERSION=3 NODE_ENV=test node --inspect node_modules/.bin/jest --testPathIgnorePatterns storyshot.spec.js --watch --runInBand",
|
|
40
43
|
"test:visual": "./bin/run-visual-tests.sh 'jest ./tests/storyshots.spec.js'",
|
|
41
44
|
"test:visual:minimal": "node ./bin/run_minimal_visual_tests.js",
|
|
42
45
|
"test:visual:update": "./bin/run-visual-tests.sh 'JEST_IMAGE_SNAPSHOT_TRACK_OBSOLETE=1 jest ./tests/storyshots.spec.js --updateSnapshot'",
|
|
@@ -94,8 +97,12 @@
|
|
|
94
97
|
"@storybook/addon-viewport": "6.5.13",
|
|
95
98
|
"@storybook/theming": "6.5.13",
|
|
96
99
|
"@storybook/vue": "6.5.13",
|
|
100
|
+
"@vue/compat": "^3.2.40",
|
|
101
|
+
"@vue/compiler-sfc": "^3.2.40",
|
|
97
102
|
"@vue/test-utils": "1.3.0",
|
|
103
|
+
"@vue/test-utils-vue3": "npm:@vue/test-utils@2.2.0",
|
|
98
104
|
"@vue/vue2-jest": "29.0.0",
|
|
105
|
+
"@vue/vue3-jest": "^29.1.1",
|
|
99
106
|
"autoprefixer": "^9.7.6",
|
|
100
107
|
"babel-jest": "29.0.1",
|
|
101
108
|
"babel-loader": "^8.0.5",
|
|
@@ -105,7 +112,7 @@
|
|
|
105
112
|
"bootstrap": "4.6.2",
|
|
106
113
|
"cypress": "^10.11.0",
|
|
107
114
|
"emoji-regex": "^10.0.0",
|
|
108
|
-
"eslint": "8.
|
|
115
|
+
"eslint": "8.27.0",
|
|
109
116
|
"eslint-import-resolver-jest": "3.0.2",
|
|
110
117
|
"eslint-plugin-cypress": "2.12.1",
|
|
111
118
|
"eslint-plugin-storybook": "0.6.7",
|
|
@@ -113,9 +120,9 @@
|
|
|
113
120
|
"glob": "^7.2.0",
|
|
114
121
|
"identity-obj-proxy": "^3.0.0",
|
|
115
122
|
"inquirer-select-directory": "^1.2.0",
|
|
116
|
-
"jest": "^29.
|
|
117
|
-
"jest-circus": "29.
|
|
118
|
-
"jest-environment-jsdom": "29.
|
|
123
|
+
"jest": "^29.3.0",
|
|
124
|
+
"jest-circus": "29.3.0",
|
|
125
|
+
"jest-environment-jsdom": "29.3.0",
|
|
119
126
|
"markdownlint-cli": "^0.29.0",
|
|
120
127
|
"mockdate": "^2.0.5",
|
|
121
128
|
"npm-run-all": "^4.1.5",
|
|
@@ -140,11 +147,12 @@
|
|
|
140
147
|
"start-server-and-test": "^1.10.6",
|
|
141
148
|
"storybook-dark-mode": "^1.0.8",
|
|
142
149
|
"stylelint": "14.9.1",
|
|
143
|
-
"stylelint-config-prettier": "9.0.
|
|
150
|
+
"stylelint-config-prettier": "9.0.4",
|
|
144
151
|
"stylelint-prettier": "2.0.0",
|
|
145
152
|
"vue": "2.7.13",
|
|
146
153
|
"vue-loader": "^15.8.3",
|
|
147
|
-
"vue-template-compiler": "2.7.13"
|
|
154
|
+
"vue-template-compiler": "2.7.13",
|
|
155
|
+
"vue-test-utils-compat": "^0.0.10"
|
|
148
156
|
},
|
|
149
157
|
"release": {
|
|
150
158
|
"branches": [
|
|
@@ -238,11 +238,12 @@ export const darkenNormalFactor = '7%'
|
|
|
238
238
|
export const darkenDarkFactor = '10%'
|
|
239
239
|
export const darkenBorderFactor = '5%'
|
|
240
240
|
export const darkenBorderDashedFactor = '25%'
|
|
241
|
-
export const tGrayA02 = 'rgba(
|
|
242
|
-
export const tGrayA04 = 'rgba(
|
|
243
|
-
export const tGrayA06 = 'rgba(
|
|
244
|
-
export const tGrayA08 = 'rgba(
|
|
245
|
-
export const
|
|
241
|
+
export const tGrayA02 = 'rgba(31, 30, 36, 0.02)'
|
|
242
|
+
export const tGrayA04 = 'rgba(31, 30, 36, 0.04)'
|
|
243
|
+
export const tGrayA06 = 'rgba(31, 30, 36, 0.06)'
|
|
244
|
+
export const tGrayA08 = 'rgba(31, 30, 36, 0.08)'
|
|
245
|
+
export const tGrayA16 = 'rgba(31, 30, 36, 0.16)'
|
|
246
|
+
export const tGrayA24 = 'rgba(31, 30, 36, 0.24)'
|
|
246
247
|
export const glTextColor = '#333238'
|
|
247
248
|
export const glTextColorSecondary = '#737278'
|
|
248
249
|
export const glFontWeightLight = '300'
|
|
@@ -1229,28 +1229,33 @@
|
|
|
1229
1229
|
},
|
|
1230
1230
|
{
|
|
1231
1231
|
"name": "$t-gray-a-02",
|
|
1232
|
-
"value": "rgba($
|
|
1233
|
-
"compiledValue": "rgba(
|
|
1232
|
+
"value": "rgba($gray-950, 0.02)",
|
|
1233
|
+
"compiledValue": "rgba(31, 30, 36, 0.02)"
|
|
1234
1234
|
},
|
|
1235
1235
|
{
|
|
1236
1236
|
"name": "$t-gray-a-04",
|
|
1237
|
-
"value": "rgba($
|
|
1238
|
-
"compiledValue": "rgba(
|
|
1237
|
+
"value": "rgba($gray-950, 0.04)",
|
|
1238
|
+
"compiledValue": "rgba(31, 30, 36, 0.04)"
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
1241
|
"name": "$t-gray-a-06",
|
|
1242
|
-
"value": "rgba($
|
|
1243
|
-
"compiledValue": "rgba(
|
|
1242
|
+
"value": "rgba($gray-950, 0.06)",
|
|
1243
|
+
"compiledValue": "rgba(31, 30, 36, 0.06)"
|
|
1244
1244
|
},
|
|
1245
1245
|
{
|
|
1246
1246
|
"name": "$t-gray-a-08",
|
|
1247
|
-
"value": "rgba(
|
|
1248
|
-
"compiledValue": "rgba(
|
|
1247
|
+
"value": "rgba($gray-950, 0.08)",
|
|
1248
|
+
"compiledValue": "rgba(31, 30, 36, 0.08)"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "$t-gray-a-16",
|
|
1252
|
+
"value": "rgba($gray-950, 0.16)",
|
|
1253
|
+
"compiledValue": "rgba(31, 30, 36, 0.16)"
|
|
1249
1254
|
},
|
|
1250
1255
|
{
|
|
1251
1256
|
"name": "$t-gray-a-24",
|
|
1252
|
-
"value": "rgba(
|
|
1253
|
-
"compiledValue": "rgba(
|
|
1257
|
+
"value": "rgba($gray-950, 0.24)",
|
|
1258
|
+
"compiledValue": "rgba(31, 30, 36, 0.24)"
|
|
1254
1259
|
},
|
|
1255
1260
|
{
|
|
1256
1261
|
"name": "$gl-text-color",
|
|
@@ -303,13 +303,16 @@ export default {
|
|
|
303
303
|
}
|
|
304
304
|
},
|
|
305
305
|
},
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
306
|
+
resetButtonLabel: {
|
|
307
|
+
immediate: true,
|
|
308
|
+
handler(newResetButtonLabel) {
|
|
309
|
+
if (process.env.NODE_ENV !== 'production' && newResetButtonLabel && !this.headerText) {
|
|
310
|
+
throw new Error(
|
|
311
|
+
'The reset button cannot be rendered without a header. Either provide a header via the headerText prop, or do not provide the resetButtonLabel prop.'
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
},
|
|
313
316
|
},
|
|
314
317
|
methods: {
|
|
315
318
|
open() {
|
|
@@ -597,9 +597,7 @@ exports[`Paginated List Search states renders the custom empty search message wh
|
|
|
597
597
|
<div
|
|
598
598
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-search"
|
|
599
599
|
>
|
|
600
|
-
|
|
601
600
|
Custom empty message
|
|
602
|
-
|
|
603
601
|
</div>
|
|
604
602
|
</div>
|
|
605
603
|
`;
|
|
@@ -620,9 +618,7 @@ exports[`Paginated List Search states renders the default empty search message w
|
|
|
620
618
|
<div
|
|
621
619
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-search"
|
|
622
620
|
>
|
|
623
|
-
|
|
624
621
|
Sorry, your filter produced no results.
|
|
625
|
-
|
|
626
622
|
</div>
|
|
627
623
|
</div>
|
|
628
624
|
`;
|
|
@@ -702,9 +698,7 @@ exports[`Paginated List Searchless states renders the list in an empty state wit
|
|
|
702
698
|
<div
|
|
703
699
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-message"
|
|
704
700
|
>
|
|
705
|
-
|
|
706
701
|
List is passed in empty
|
|
707
|
-
|
|
708
702
|
</div>
|
|
709
703
|
</div>
|
|
710
704
|
`;
|
|
@@ -725,9 +719,7 @@ exports[`Paginated List Searchless states renders the list in an empty state, wh
|
|
|
725
719
|
<div
|
|
726
720
|
class="bs-callout bs-callout-warning mt-3 empty-message empty-message"
|
|
727
721
|
>
|
|
728
|
-
|
|
729
722
|
There are currently no items in this list.
|
|
730
|
-
|
|
731
723
|
</div>
|
|
732
724
|
</div>
|
|
733
725
|
`;
|
|
@@ -163,13 +163,14 @@ export default {
|
|
|
163
163
|
:total-items="pageInfo.total"
|
|
164
164
|
@input="change"
|
|
165
165
|
/>
|
|
166
|
-
|
|
166
|
+
<!-- Prettier will insert extra line-break which will result in render differences between Vue.js 2 and Vue.js 3 -->
|
|
167
|
+
<!-- See https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2004 for details -->
|
|
168
|
+
<!-- display: inline -->
|
|
167
169
|
<div
|
|
168
170
|
v-if="emptyList"
|
|
169
171
|
class="bs-callout bs-callout-warning mt-3 empty-message"
|
|
170
172
|
:class="{ 'empty-message': zeroTotal, 'empty-search': zeroSearchResults }"
|
|
173
|
+
>{{ zeroTotal ? emptyMessage : emptySearchMessage }}</div
|
|
171
174
|
>
|
|
172
|
-
{{ zeroTotal ? emptyMessage : emptySearchMessage }}
|
|
173
|
-
</div>
|
|
174
175
|
</div>
|
|
175
176
|
</template>
|
|
@@ -30,7 +30,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
30
30
|
<button
|
|
31
31
|
class="gl-path-button gl-path-active-item-indigo"
|
|
32
32
|
>
|
|
33
|
-
|
|
34
33
|
First
|
|
35
34
|
<span
|
|
36
35
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -46,7 +45,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
46
45
|
<button
|
|
47
46
|
class="gl-path-button"
|
|
48
47
|
>
|
|
49
|
-
|
|
50
48
|
Second
|
|
51
49
|
<span
|
|
52
50
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -62,7 +60,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
62
60
|
<button
|
|
63
61
|
class="gl-path-button"
|
|
64
62
|
>
|
|
65
|
-
|
|
66
63
|
Third
|
|
67
64
|
<span
|
|
68
65
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -78,7 +75,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
78
75
|
<button
|
|
79
76
|
class="gl-path-button"
|
|
80
77
|
>
|
|
81
|
-
|
|
82
78
|
Fourth
|
|
83
79
|
<span
|
|
84
80
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -94,7 +90,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
94
90
|
<button
|
|
95
91
|
class="gl-path-button"
|
|
96
92
|
>
|
|
97
|
-
|
|
98
93
|
Fifth
|
|
99
94
|
<span
|
|
100
95
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -110,7 +105,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
110
105
|
<button
|
|
111
106
|
class="gl-path-button"
|
|
112
107
|
>
|
|
113
|
-
|
|
114
108
|
Sixth
|
|
115
109
|
<span
|
|
116
110
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -126,7 +120,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
126
120
|
<button
|
|
127
121
|
class="gl-path-button"
|
|
128
122
|
>
|
|
129
|
-
|
|
130
123
|
Seventh
|
|
131
124
|
<span
|
|
132
125
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -144,7 +137,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
144
137
|
class="gl-path-button"
|
|
145
138
|
disabled=""
|
|
146
139
|
>
|
|
147
|
-
|
|
148
140
|
Eighth
|
|
149
141
|
<span
|
|
150
142
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -160,7 +152,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
160
152
|
<button
|
|
161
153
|
class="gl-path-button"
|
|
162
154
|
>
|
|
163
|
-
|
|
164
155
|
Ninth
|
|
165
156
|
<span
|
|
166
157
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -176,7 +167,6 @@ exports[`Path matches the snapshot 1`] = `
|
|
|
176
167
|
<button
|
|
177
168
|
class="gl-path-button"
|
|
178
169
|
>
|
|
179
|
-
|
|
180
170
|
Tenth
|
|
181
171
|
<span
|
|
182
172
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -239,7 +229,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
239
229
|
name="home"
|
|
240
230
|
size="16"
|
|
241
231
|
/>
|
|
242
|
-
|
|
243
232
|
First
|
|
244
233
|
<span
|
|
245
234
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -255,7 +244,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
255
244
|
<button
|
|
256
245
|
class="gl-path-button"
|
|
257
246
|
>
|
|
258
|
-
|
|
259
247
|
Second
|
|
260
248
|
<span
|
|
261
249
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -271,7 +259,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
271
259
|
<button
|
|
272
260
|
class="gl-path-button"
|
|
273
261
|
>
|
|
274
|
-
|
|
275
262
|
Third
|
|
276
263
|
<span
|
|
277
264
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -287,7 +274,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
287
274
|
<button
|
|
288
275
|
class="gl-path-button"
|
|
289
276
|
>
|
|
290
|
-
|
|
291
277
|
Fourth
|
|
292
278
|
<span
|
|
293
279
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -303,7 +289,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
303
289
|
<button
|
|
304
290
|
class="gl-path-button"
|
|
305
291
|
>
|
|
306
|
-
|
|
307
292
|
Fifth
|
|
308
293
|
<span
|
|
309
294
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -319,7 +304,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
319
304
|
<button
|
|
320
305
|
class="gl-path-button"
|
|
321
306
|
>
|
|
322
|
-
|
|
323
307
|
Sixth
|
|
324
308
|
<span
|
|
325
309
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -335,7 +319,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
335
319
|
<button
|
|
336
320
|
class="gl-path-button"
|
|
337
321
|
>
|
|
338
|
-
|
|
339
322
|
Seventh
|
|
340
323
|
<span
|
|
341
324
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -353,7 +336,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
353
336
|
class="gl-path-button"
|
|
354
337
|
disabled=""
|
|
355
338
|
>
|
|
356
|
-
|
|
357
339
|
Eighth
|
|
358
340
|
<span
|
|
359
341
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -369,7 +351,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
369
351
|
<button
|
|
370
352
|
class="gl-path-button"
|
|
371
353
|
>
|
|
372
|
-
|
|
373
354
|
Ninth
|
|
374
355
|
<span
|
|
375
356
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -385,7 +366,6 @@ exports[`Path renders the list of items with icons matches the snapshot 1`] = `
|
|
|
385
366
|
<button
|
|
386
367
|
class="gl-path-button"
|
|
387
368
|
>
|
|
388
|
-
|
|
389
369
|
Tenth
|
|
390
370
|
<span
|
|
391
371
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -442,7 +422,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
442
422
|
<button
|
|
443
423
|
class="gl-path-button gl-path-active-item-indigo"
|
|
444
424
|
>
|
|
445
|
-
|
|
446
425
|
First
|
|
447
426
|
<span
|
|
448
427
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -458,7 +437,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
458
437
|
<button
|
|
459
438
|
class="gl-path-button"
|
|
460
439
|
>
|
|
461
|
-
|
|
462
440
|
Second
|
|
463
441
|
<span
|
|
464
442
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -474,7 +452,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
474
452
|
<button
|
|
475
453
|
class="gl-path-button"
|
|
476
454
|
>
|
|
477
|
-
|
|
478
455
|
Third
|
|
479
456
|
<span
|
|
480
457
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -490,7 +467,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
490
467
|
<button
|
|
491
468
|
class="gl-path-button"
|
|
492
469
|
>
|
|
493
|
-
|
|
494
470
|
Fourth
|
|
495
471
|
<span
|
|
496
472
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -506,7 +482,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
506
482
|
<button
|
|
507
483
|
class="gl-path-button"
|
|
508
484
|
>
|
|
509
|
-
|
|
510
485
|
Fifth
|
|
511
486
|
<span
|
|
512
487
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -522,7 +497,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
522
497
|
<button
|
|
523
498
|
class="gl-path-button"
|
|
524
499
|
>
|
|
525
|
-
|
|
526
500
|
Sixth
|
|
527
501
|
<span
|
|
528
502
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -538,7 +512,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
538
512
|
<button
|
|
539
513
|
class="gl-path-button"
|
|
540
514
|
>
|
|
541
|
-
|
|
542
515
|
Seventh
|
|
543
516
|
<span
|
|
544
517
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -556,7 +529,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
556
529
|
class="gl-path-button"
|
|
557
530
|
disabled=""
|
|
558
531
|
>
|
|
559
|
-
|
|
560
532
|
Eighth
|
|
561
533
|
<span
|
|
562
534
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -572,7 +544,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
572
544
|
<button
|
|
573
545
|
class="gl-path-button"
|
|
574
546
|
>
|
|
575
|
-
|
|
576
547
|
Ninth
|
|
577
548
|
<span
|
|
578
549
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -588,7 +559,6 @@ exports[`Path renders the list of items with metrics matches the snapshot 1`] =
|
|
|
588
559
|
<button
|
|
589
560
|
class="gl-path-button"
|
|
590
561
|
>
|
|
591
|
-
|
|
592
562
|
Tenth
|
|
593
563
|
<span
|
|
594
564
|
class="gl-font-weight-normal gl-pl-2"
|
|
@@ -182,8 +182,7 @@ export default {
|
|
|
182
182
|
:name="item.icon"
|
|
183
183
|
class="gl-mr-2"
|
|
184
184
|
data-testid="gl-path-item-icon"
|
|
185
|
-
/>
|
|
186
|
-
{{ item.title
|
|
185
|
+
/>{{ item.title
|
|
187
186
|
}}<span v-if="item.metric" class="gl-font-weight-normal gl-pl-2">{{ item.metric }}</span>
|
|
188
187
|
</button>
|
|
189
188
|
<!--
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
42
42
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
43
43
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
44
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
44
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
45
45
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
46
46
|
import Chart from '../chart/chart.vue';
|
|
47
47
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -7,7 +7,7 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
|
|
|
7
7
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
9
|
import { hexToRgba, debounceByAnimationFrame } from '../../../utils/utils';
|
|
10
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
10
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
11
11
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
13
|
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
@@ -15,7 +15,7 @@ import { TOOLTIP_LEFT_OFFSET, CHART_TYPE_LINE } from '../../../utils/charts/cons
|
|
|
15
15
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
16
16
|
import { columnOptions } from '../../../utils/constants';
|
|
17
17
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
18
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
18
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
19
19
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
20
20
|
import Chart from '../chart/chart.vue';
|
|
21
21
|
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
@@ -7,7 +7,7 @@ import defaultChartOptions, {
|
|
|
7
7
|
} from '../../../utils/charts/config';
|
|
8
8
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
9
9
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
10
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
10
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
11
11
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
13
|
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script>
|
|
3
3
|
import { merge, isFinite, uniq, sortBy } from 'lodash';
|
|
4
4
|
import { gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue } from '../../../utils/charts/theme';
|
|
5
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
5
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
6
6
|
import Chart from '../chart/chart.vue';
|
|
7
7
|
|
|
8
8
|
const AXIS_LABEL_FONT_SIZE_PX = 14;
|
|
@@ -7,7 +7,7 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
|
|
|
7
7
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
9
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
10
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
10
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
11
11
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
13
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
45
45
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
46
46
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
47
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
47
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
48
48
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
49
49
|
import Chart from '../chart/chart.vue';
|
|
50
50
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
23
23
|
import { columnOptions } from '../../../utils/constants';
|
|
24
24
|
import { debounceByAnimationFrame } from '../../../utils/utils';
|
|
25
|
-
import ToolboxMixin from '../../mixins/toolbox_mixin';
|
|
25
|
+
import { ToolboxMixin } from '../../mixins/toolbox_mixin';
|
|
26
26
|
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
27
27
|
import Chart from '../chart/chart.vue';
|
|
28
28
|
import ChartLegend from '../legend/legend.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import useMockIntersectionObserver from '~/utils/use_mock_intersection_observer';
|
|
2
|
+
import { useMockIntersectionObserver } from '~/utils/use_mock_intersection_observer';
|
|
3
3
|
import GlIntersectionObserver from './intersection_observer.vue';
|
|
4
4
|
|
|
5
5
|
const TEST_SLOT = '<p>Hello world! Lorem ipsum.</p>';
|
package/src/scss/utilities.scss
CHANGED
|
@@ -2081,6 +2081,30 @@
|
|
|
2081
2081
|
.gl-shadow-drawer\! {
|
|
2082
2082
|
box-shadow: -4px 0 8px $gray-200 !important
|
|
2083
2083
|
}
|
|
2084
|
+
|
|
2085
|
+
.gl-shadow-sm {
|
|
2086
|
+
box-shadow: 0 1px 2px rgba($gray-950, 0.1)
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
.gl-shadow-sm\! {
|
|
2090
|
+
box-shadow: 0 1px 2px rgba($gray-950, 0.1) !important
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
.gl-shadow-md {
|
|
2094
|
+
box-shadow: 0 2px 8px rgba($gray-950, 0.16), 0 0 2px rgba($gray-950, 0.16)
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
.gl-shadow-md\! {
|
|
2098
|
+
box-shadow: 0 2px 8px rgba($gray-950, 0.16), 0 0 2px rgba($gray-950, 0.16) !important
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
.gl-shadow-lg {
|
|
2102
|
+
box-shadow: 0 4px 12px rgba($gray-950, 0.16), 0 0 4px rgba($gray-950, 0.16)
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
.gl-shadow-lg\! {
|
|
2106
|
+
box-shadow: 0 4px 12px rgba($gray-950, 0.16), 0 0 4px rgba($gray-950, 0.16) !important
|
|
2107
|
+
}
|
|
2084
2108
|
.gl-clearfix {
|
|
2085
2109
|
&::after {
|
|
2086
2110
|
display: block;
|
|
@@ -185,3 +185,24 @@
|
|
|
185
185
|
@mixin gl-shadow-drawer {
|
|
186
186
|
box-shadow: -4px 0 8px $gray-200;
|
|
187
187
|
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* New utilities to match design specs
|
|
191
|
+
* Per https: //gitlab.com/gitlab-org/gitlab-ui/-/issues/615,
|
|
192
|
+
* some of the above could be replaced.
|
|
193
|
+
*
|
|
194
|
+
* These use gray instead of black to align with
|
|
195
|
+
* tinted neutrals.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
@mixin gl-shadow-sm {
|
|
199
|
+
box-shadow: 0 1px 2px rgba($gray-950, 0.1);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@mixin gl-shadow-md {
|
|
203
|
+
box-shadow: 0 2px 8px rgba($gray-950, 0.16), 0 0 2px rgba($gray-950, 0.16);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@mixin gl-shadow-lg {
|
|
207
|
+
box-shadow: 0 4px 12px rgba($gray-950, 0.16), 0 0 4px rgba($gray-950, 0.16);
|
|
208
|
+
}
|
package/src/scss/variables.scss
CHANGED
|
@@ -304,11 +304,12 @@ $darken-dark-factor: 10%;
|
|
|
304
304
|
$darken-border-factor: 5%;
|
|
305
305
|
$darken-border-dashed-factor: 25%;
|
|
306
306
|
|
|
307
|
-
$t-gray-a-02: rgba($
|
|
308
|
-
$t-gray-a-04: rgba($
|
|
309
|
-
$t-gray-a-06: rgba($
|
|
310
|
-
$t-gray-a-08: rgba(
|
|
311
|
-
$t-gray-a-
|
|
307
|
+
$t-gray-a-02: rgba($gray-950, 0.02);
|
|
308
|
+
$t-gray-a-04: rgba($gray-950, 0.04);
|
|
309
|
+
$t-gray-a-06: rgba($gray-950, 0.06);
|
|
310
|
+
$t-gray-a-08: rgba($gray-950, 0.08);
|
|
311
|
+
$t-gray-a-16: rgba($gray-950, 0.16);
|
|
312
|
+
$t-gray-a-24: rgba($gray-950, 0.24);
|
|
312
313
|
|
|
313
314
|
// Text
|
|
314
315
|
$gl-text-color: $gray-900 !default;
|
|
@@ -63,7 +63,7 @@ class MockIntersectionObserver extends MockObserver {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const useMockIntersectionObserver = () => {
|
|
66
|
+
export const useMockIntersectionObserver = () => {
|
|
67
67
|
let instances;
|
|
68
68
|
let origObserver;
|
|
69
69
|
|
|
@@ -94,5 +94,3 @@ const useMockIntersectionObserver = () => {
|
|
|
94
94
|
|
|
95
95
|
return { getInstances, trigger };
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
export default useMockIntersectionObserver;
|