@gitlab/ui 97.3.0 → 98.1.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 +20 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +0 -1
- package/dist/tokens/build/js/tokens.dark.js +84 -84
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +47 -47
- package/dist/tokens/js/tokens.dark.js +84 -84
- package/dist/tokens/json/tokens.dark.json +148 -133
- package/dist/tokens/json/tokens.json +64 -49
- package/dist/tokens/scss/_tokens.dark.scss +47 -47
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/dist/vendor/bootstrap-vue/src/components/collapse/collapse.js +3 -36
- package/dist/vendor/bootstrap-vue/src/components/tabs/tabs.js +1 -1
- package/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js +12 -2
- package/dist/vendor/bootstrap-vue/src/constants/components.js +1 -3
- package/dist/vendor/bootstrap-vue/src/constants/env.js +1 -2
- package/dist/vendor/bootstrap-vue/src/index.js +0 -2
- package/dist/vendor/bootstrap-vue/src/mixins/dropdown.js +12 -39
- package/package.json +2 -1
- package/src/index.js +0 -1
- package/src/scss/bootstrap_vue.scss +0 -1
- package/src/scss/components.scss +0 -1
- package/src/tokens/action.tokens.json +21 -12
- package/src/tokens/build/css/tokens.css +1 -1
- package/src/tokens/build/css/tokens.dark.css +47 -47
- package/src/tokens/build/js/tokens.dark.js +84 -84
- package/src/tokens/build/json/tokens.dark.json +148 -133
- package/src/tokens/build/json/tokens.json +64 -49
- package/src/tokens/build/scss/_tokens.dark.scss +47 -47
- package/src/tokens/build/scss/_tokens.scss +1 -1
- package/src/tokens/contextual/button.tokens.json +43 -37
- package/src/vendor/bootstrap-vue/package.json +3 -20
- package/src/vendor/bootstrap-vue/src/components/collapse/MODIFICATIONS.md +14 -0
- package/src/vendor/bootstrap-vue/src/components/collapse/collapse.js +3 -37
- package/src/vendor/bootstrap-vue/src/components/collapse/collapse.spec.js +0 -132
- package/src/vendor/bootstrap-vue/src/components/collapse/package.json +0 -4
- package/src/vendor/bootstrap-vue/src/components/dropdown/README.md +1 -1
- package/src/vendor/bootstrap-vue/src/components/form-input/form-input.spec.js +3 -0
- package/src/vendor/bootstrap-vue/src/components/index.d.ts +0 -1
- package/src/vendor/bootstrap-vue/src/components/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/modal/MODIFICATIONS.md +8 -5
- package/src/vendor/bootstrap-vue/src/components/nav/package.json +1 -1
- package/src/vendor/bootstrap-vue/src/components/popover/popover.spec.js +0 -1
- package/src/vendor/bootstrap-vue/src/components/table/table-filtering.spec.js +1 -1
- package/src/vendor/bootstrap-vue/src/components/tabs/tabs.js +1 -1
- package/src/vendor/bootstrap-vue/src/components/toast/toast.spec.js +6 -18
- package/src/vendor/bootstrap-vue/src/components/tooltip/tooltip.spec.js +67 -356
- package/src/vendor/bootstrap-vue/src/components/transition/bv-transition.js +15 -2
- package/src/vendor/bootstrap-vue/src/constants/components.js +0 -2
- package/src/vendor/bootstrap-vue/src/constants/env.js +0 -3
- package/src/vendor/bootstrap-vue/src/directives/tooltip/tooltip.spec.js +46 -79
- package/src/vendor/bootstrap-vue/src/index.js +0 -4
- package/src/vendor/bootstrap-vue/src/mixins/dropdown.js +12 -36
- package/src/vendor/bootstrap-vue/src/utils/config.spec.js +20 -2
- package/dist/components/base/navbar/navbar.js +0 -48
- package/dist/vendor/bootstrap-vue/src/components/navbar/index.js +0 -2
- package/dist/vendor/bootstrap-vue/src/components/navbar/navbar-brand.js +0 -40
- package/dist/vendor/bootstrap-vue/src/components/navbar/navbar.js +0 -72
- package/src/components/base/navbar/navbar.md +0 -4
- package/src/components/base/navbar/navbar.scss +0 -0
- package/src/components/base/navbar/navbar.vue +0 -17
- package/src/vendor/bootstrap-vue/src/components/navbar/README.md +0 -332
- package/src/vendor/bootstrap-vue/src/components/navbar/_navbar.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/navbar/index.d.ts +0 -10
- package/src/vendor/bootstrap-vue/src/components/navbar/index.js +0 -4
- package/src/vendor/bootstrap-vue/src/components/navbar/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar-brand.js +0 -42
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar-brand.spec.js +0 -50
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar.js +0 -78
- package/src/vendor/bootstrap-vue/src/components/navbar/navbar.spec.js +0 -130
- package/src/vendor/bootstrap-vue/src/components/navbar/package.json +0 -54
|
@@ -927,6 +927,8 @@ describe('form-input', () => {
|
|
|
927
927
|
const origGetBCR = Element.prototype.getBoundingClientRect
|
|
928
928
|
|
|
929
929
|
beforeEach(() => {
|
|
930
|
+
// @gitlab-ui: In order to get these tests passing we needed to use real timers
|
|
931
|
+
jest.useRealTimers()
|
|
930
932
|
// Mock `getBoundingClientRect()` so that the `isVisible(el)` test returns `true`
|
|
931
933
|
Element.prototype.getBoundingClientRect = jest.fn(() => ({
|
|
932
934
|
width: 24,
|
|
@@ -941,6 +943,7 @@ describe('form-input', () => {
|
|
|
941
943
|
afterEach(() => {
|
|
942
944
|
// Restore prototype
|
|
943
945
|
Element.prototype.getBoundingClientRect = origGetBCR
|
|
946
|
+
jest.useFakeTimers()
|
|
944
947
|
})
|
|
945
948
|
|
|
946
949
|
it('works when true', async () => {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# Modifications to Vendored Code
|
|
2
2
|
|
|
3
3
|
**Library**: BootstrapVue
|
|
4
|
-
**Version**: 2.23.1
|
|
4
|
+
**Version**: 2.23.1 **Link:** https://bootstrap-vue.org **Source:**
|
|
5
|
+
https://github.com/bootstrap-vue/bootstrap-vue **Copyright:** (c) 2016-2024 BootstrapVue
|
|
6
|
+
**License:** (c)
|
|
7
|
+
[2016-2024 BootstrapVue](https://github.com/bootstrap-vue/bootstrap-vue/blob/master/LICENSE)
|
|
5
8
|
|
|
6
9
|
This file documents modifications made to the original BootstrapVue component files.
|
|
7
10
|
|
|
8
|
-
## Removed unnecessary properties
|
|
11
|
+
## Removed unnecessary properties
|
|
9
12
|
|
|
10
13
|
The following properties have been removed as they are no longer supported in our implementation:
|
|
11
14
|
|
|
@@ -19,9 +22,9 @@ The following properties have been removed as they are no longer supported in ou
|
|
|
19
22
|
- `footerBorderVariant`
|
|
20
23
|
- `footerTextVariant`
|
|
21
24
|
|
|
22
|
-
These properties were removed to streamline the component for our use case, as they are no longer
|
|
23
|
-
The following files have been modified from the original:
|
|
25
|
+
These properties were removed to streamline the component for our use case, as they are no longer
|
|
26
|
+
necessary in our project. The following files have been modified from the original:
|
|
24
27
|
|
|
25
28
|
- `modal.js`: Removed unnecessary properties.
|
|
26
29
|
- `package.json`: Removed unnecessary properties.
|
|
27
|
-
- `README.md`: Removed unnecessary properties.
|
|
30
|
+
- `README.md`: Removed unnecessary properties.
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
{
|
|
80
80
|
"prop": "boundary",
|
|
81
81
|
"version": "2.4.0",
|
|
82
|
-
"description": "The boundary constraint of the menu: 'scrollParent', 'window', 'viewport', or a reference to an HTMLElement.
|
|
82
|
+
"description": "The boundary constraint of the menu: 'scrollParent', 'window', 'viewport', or a reference to an HTMLElement."
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"prop": "dropleft",
|
|
@@ -371,7 +371,7 @@ describe('table > filtering', () => {
|
|
|
371
371
|
lastFilterTimer = wrapper.vm.$_filterTimer
|
|
372
372
|
expect(wrapper.vm.localFilter).not.toEqual('z')
|
|
373
373
|
|
|
374
|
-
jest.
|
|
374
|
+
jest.advanceTimersByTime(101)
|
|
375
375
|
await waitNT(wrapper.vm)
|
|
376
376
|
expect(wrapper.emitted('input').length).toBe(2)
|
|
377
377
|
expect(wrapper.emitted('input')[1][0]).toEqual([testItems[2]])
|
|
@@ -187,7 +187,7 @@ const BVTabButton = /*#__PURE__*/ extend({
|
|
|
187
187
|
|
|
188
188
|
// --- Props ---
|
|
189
189
|
|
|
190
|
-
const navProps = omit(BNavProps, ['tabs', '
|
|
190
|
+
const navProps = omit(BNavProps, ['tabs', 'cardHeader'])
|
|
191
191
|
|
|
192
192
|
export const props = makePropsConfigurable(
|
|
193
193
|
sortKeys({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils'
|
|
2
|
-
import { waitNT, waitRAF } from '../../../tests/utils'
|
|
2
|
+
import { ensureEventEmitted, waitNT, waitRAF } from '../../../tests/utils'
|
|
3
3
|
import { BToast } from './toast'
|
|
4
4
|
|
|
5
5
|
describe('b-toast', () => {
|
|
@@ -217,14 +217,14 @@ describe('b-toast', () => {
|
|
|
217
217
|
})
|
|
218
218
|
|
|
219
219
|
it('auto-hide works', async () => {
|
|
220
|
-
jest.useFakeTimers()
|
|
221
220
|
const wrapper = mount(BToast, {
|
|
222
221
|
attachTo: document.body,
|
|
223
222
|
propsData: {
|
|
224
223
|
static: true,
|
|
225
224
|
noAutoHide: false,
|
|
226
225
|
visible: true,
|
|
227
|
-
title: 'title'
|
|
226
|
+
title: 'title',
|
|
227
|
+
autoHideDelay: 1000
|
|
228
228
|
},
|
|
229
229
|
slots: {
|
|
230
230
|
default: 'content'
|
|
@@ -232,10 +232,7 @@ describe('b-toast', () => {
|
|
|
232
232
|
})
|
|
233
233
|
|
|
234
234
|
expect(wrapper.vm).toBeDefined()
|
|
235
|
-
|
|
236
|
-
await waitRAF()
|
|
237
|
-
await waitNT(wrapper.vm)
|
|
238
|
-
await waitRAF()
|
|
235
|
+
|
|
239
236
|
await waitNT(wrapper.vm)
|
|
240
237
|
await waitRAF()
|
|
241
238
|
await waitNT(wrapper.vm)
|
|
@@ -244,19 +241,10 @@ describe('b-toast', () => {
|
|
|
244
241
|
expect(wrapper.element.tagName).toBe('DIV')
|
|
245
242
|
expect(wrapper.vm.$_dismissTimer).not.toEqual(null)
|
|
246
243
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
await waitNT(wrapper.vm)
|
|
250
|
-
await waitRAF()
|
|
251
|
-
await waitNT(wrapper.vm)
|
|
252
|
-
await waitRAF()
|
|
253
|
-
await waitNT(wrapper.vm)
|
|
254
|
-
await waitRAF()
|
|
255
|
-
await waitNT(wrapper.vm)
|
|
256
|
-
await waitRAF()
|
|
244
|
+
await ensureEventEmitted(wrapper, 'hidden')
|
|
257
245
|
|
|
258
|
-
expect(wrapper.element.nodeType).toBe(Node.COMMENT_NODE)
|
|
259
246
|
expect(wrapper.vm.$_dismissTimer).toBe(null)
|
|
247
|
+
expect(wrapper.element.nodeType).toBe(Node.COMMENT_NODE)
|
|
260
248
|
|
|
261
249
|
wrapper.destroy()
|
|
262
250
|
})
|