@gitlab/ui 101.0.1 → 101.2.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 +14 -0
- package/dist/components/base/toast/toast.js +4 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/toast/toast.js +5 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +9 -12
- package/src/components/experimental/duo/chat/duo_chat.scss +4 -4
- package/src/components/experimental/duo/chat/variables.scss +1 -0
- package/src/vendor/bootstrap/LICENSE +7 -18
- package/src/vendor/bootstrap-vue/LICENSE +7 -17
- package/src/vendor/bootstrap-vue/src/components/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -63,8 +63,13 @@ function showToast(message, options = {}) {
|
|
|
63
63
|
this.$root.$on('bv::toast:hidden', toastHiddenCallback);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
const updatedAutoHideDelay = !Number.isNaN(options?.autoHideDelay)
|
|
67
|
+
? { autoHideDelay: options.autoHideDelay }
|
|
68
|
+
: null;
|
|
69
|
+
|
|
66
70
|
this.$bvToast.toast(message, {
|
|
67
71
|
...DEFAULT_OPTIONS,
|
|
72
|
+
...updatedAutoHideDelay,
|
|
68
73
|
id,
|
|
69
74
|
title: renderTitle(this.$createElement, toast, options),
|
|
70
75
|
});
|
package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
$duo-code-scrim-top-gradient: linear-gradient(to top, rgba($gray-10, 0), $gray-10);
|
|
1
|
+
@import '../../variables';
|
|
3
2
|
|
|
4
3
|
.duo-chat-message {
|
|
5
4
|
max-width: 90%;
|
|
@@ -16,26 +15,24 @@ $duo-code-scrim-top-gradient: linear-gradient(to top, rgba($gray-10, 0), $gray-1
|
|
|
16
15
|
&::before,
|
|
17
16
|
&::after {
|
|
18
17
|
content: '';
|
|
19
|
-
left:
|
|
20
|
-
width: calc(100% -
|
|
18
|
+
left: $gl-border-size-1;
|
|
19
|
+
width: calc(100% - calc(2 * $gl-border-size-1));
|
|
21
20
|
position: absolute;
|
|
22
|
-
@apply gl-pointer-events-none;
|
|
23
|
-
@apply gl-h-7;
|
|
21
|
+
@apply gl-pointer-events-none gl-h-7 gl-rounded-b-base;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
&.scrim-top {
|
|
27
25
|
&::before {
|
|
28
|
-
background: $duo-
|
|
29
|
-
top:
|
|
30
|
-
@apply gl-
|
|
26
|
+
background: $duo-chat-scrim-gradient;
|
|
27
|
+
top: $gl-border-size-1;
|
|
28
|
+
@apply -gl-rotate-180;
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
&.scrim-bottom {
|
|
35
33
|
&::after {
|
|
36
|
-
background: $duo-
|
|
37
|
-
bottom:
|
|
38
|
-
@apply gl-rounded-b-base;
|
|
34
|
+
background: $duo-chat-scrim-gradient;
|
|
35
|
+
bottom: $gl-border-size-1;
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
@import 'variables';
|
|
2
2
|
|
|
3
3
|
.duo-chat {
|
|
4
4
|
z-index: 999;
|
|
@@ -50,13 +50,13 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.duo-chat-drawer-header {
|
|
53
|
-
@apply gl-border-b-
|
|
53
|
+
@apply gl-border-b-1 gl-border-b-gray-100 gl-border-b-solid;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.duo-chat-drawer-header-sticky {
|
|
57
57
|
top: 0;
|
|
58
58
|
position: sticky;
|
|
59
|
-
@apply gl-border-b-
|
|
59
|
+
@apply gl-border-b-1 gl-border-b-gray-100 gl-border-b-solid;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.duo-chat-drawer-body {
|
|
@@ -68,7 +68,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.duo-chat-drawer-footer {
|
|
71
|
-
@apply gl-border-t-
|
|
71
|
+
@apply gl-border-t-1 gl-border-t-gray-100 gl-border-t-solid;
|
|
72
72
|
@apply gl-p-5;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10);
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
This project includes modified code from the following open source project:
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2011-2022 The Bootstrap Authors
|
|
3
|
+
Bootstrap
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
Original work Copyright © 2011-2022 Twitter, Inc., 2011-2022 The Bootstrap Authors
|
|
6
|
+
Source: https://github.com/twbs
|
|
7
|
+
License: MIT License
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
all copies or substantial portions of the Software.
|
|
9
|
+
Modifications to the original Bootstrap code have been made by GitLab B.V.
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
THE SOFTWARE.
|
|
11
|
+
The full text of the MIT License can be found in the LICENSE file in the root directory of this project.
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
This project includes modified code from the following open source project:
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Bootstrap Vue
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
Original work Copyright © 2016-2020 BootstrapVue
|
|
6
|
+
Source: https://github.com/bootstrap-vue/bootstrap-vue
|
|
7
|
+
License: MIT License
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
copies or substantial portions of the Software.
|
|
9
|
+
Modifications to the original BootstrapVue code have been made by GitLab B.V.
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
11
|
+
The full text of the MIT License can be found in the LICENSE file in the root directory of this project.
|