@gitlab/ui 66.19.0 → 66.21.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 +19 -0
- package/dist/components/base/banner/banner.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +3 -3
- package/src/components/base/banner/banner.scss +3 -27
- package/src/components/base/banner/banner.vue +1 -1
- package/src/components/base/path/path.stories.js +1 -1
- package/src/components/base/popover/popover.scss +1 -3
- package/src/components/experimental/duo/user_feedback/user_feedback.md +4 -4
- package/src/components/experimental/duo/user_feedback/user_feedback.stories.js +0 -1
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "66.
|
|
3
|
+
"version": "66.21.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@arkweid/lefthook": "0.7.7",
|
|
91
|
-
"@babel/core": "^7.
|
|
91
|
+
"@babel/core": "^7.23.0",
|
|
92
92
|
"@babel/preset-env": "^7.22.20",
|
|
93
93
|
"@babel/preset-react": "^7.22.15",
|
|
94
94
|
"@gitlab/eslint-plugin": "19.0.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"babel-loader": "^8.0.5",
|
|
123
123
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
124
124
|
"bootstrap": "4.6.2",
|
|
125
|
-
"cypress": "13.
|
|
125
|
+
"cypress": "13.3.0",
|
|
126
126
|
"cypress-axe": "^1.4.0",
|
|
127
127
|
"dompurify": "^3.0.0",
|
|
128
128
|
"emoji-regex": "^10.0.0",
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
.gl-banner {
|
|
2
|
-
@include gl-border-1;
|
|
3
|
-
@include gl-border-gray-100;
|
|
4
|
-
@include gl-border-solid;
|
|
5
|
-
@include gl-display-flex;
|
|
6
|
-
@include gl-font-base;
|
|
7
|
-
@include gl-px-8;
|
|
8
|
-
@include gl-py-6;
|
|
9
|
-
@include gl-rounded-base;
|
|
10
|
-
@include gl-relative;
|
|
11
|
-
|
|
12
|
-
p {
|
|
13
|
-
@include gl-line-height-20;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
1
|
.gl-banner-illustration {
|
|
18
2
|
@include gl-flex-shrink-0;
|
|
19
3
|
@include gl-mr-6;
|
|
@@ -28,26 +12,18 @@
|
|
|
28
12
|
}
|
|
29
13
|
|
|
30
14
|
.gl-banner-title {
|
|
31
|
-
@include gl-
|
|
32
|
-
@include gl-font-weight-bold;
|
|
33
|
-
@include gl-mt-0;
|
|
15
|
+
@include gl-heading-scale-500;
|
|
34
16
|
@include gl-mb-3;
|
|
35
|
-
@include gl-line-height-20;
|
|
36
17
|
}
|
|
37
18
|
|
|
38
19
|
.gl-banner-close {
|
|
39
20
|
@include gl-absolute;
|
|
40
|
-
@include gl-top-
|
|
41
|
-
@include gl-right-
|
|
21
|
+
@include gl-top-3;
|
|
22
|
+
@include gl-right-3;
|
|
42
23
|
}
|
|
43
24
|
|
|
44
25
|
// Introduction variant
|
|
45
26
|
.gl-banner-introduction {
|
|
46
27
|
@include gl-bg-blue-50;
|
|
47
28
|
@include gl-border-blue-300;
|
|
48
|
-
|
|
49
|
-
.gl-banner-title {
|
|
50
|
-
@include gl-font-size-h-display;
|
|
51
|
-
@include gl-line-height-28;
|
|
52
|
-
}
|
|
53
29
|
}
|
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
|
|
109
109
|
<template>
|
|
110
110
|
<gl-card
|
|
111
|
-
class="gl-
|
|
111
|
+
class="gl-pl-6 gl-pr-8 gl-py-6"
|
|
112
112
|
:class="{ 'gl-banner-introduction': isIntroducing, 'gl-border-none!': embedded }"
|
|
113
113
|
body-class="gl-display-flex gl-p-0!"
|
|
114
114
|
>
|
|
@@ -35,7 +35,7 @@ export const WithPopovers = (args, { argTypes }) => ({
|
|
|
35
35
|
<template #default="{ pathItem, pathId }">
|
|
36
36
|
<gl-popover triggers="hover" placement="bottom" :target="pathId">
|
|
37
37
|
<template #title>
|
|
38
|
-
|
|
38
|
+
{{ pathItem.title }}
|
|
39
39
|
</template>
|
|
40
40
|
{{ pathItem.metric }}
|
|
41
41
|
</gl-popover>
|
|
@@ -63,10 +63,8 @@ $gl-popover-max-width: $grid-size * 35;
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.popover-header {
|
|
66
|
+
@include gl-heading-scale-200;
|
|
66
67
|
@include gl-bg-white;
|
|
67
|
-
@include gl-font-sm;
|
|
68
|
-
@include gl-font-weight-bold;
|
|
69
|
-
@include gl-m-0;
|
|
70
68
|
@include gl-border-bottom-0;
|
|
71
69
|
@include gl-pb-0;
|
|
72
70
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
The main entry point component for gathering the user feedback for
|
|
1
|
+
The main entry point component for gathering the user feedback for AI features.
|
|
2
2
|
|
|
3
3
|
The component consists of a textual button and a connected modal with the actual form, emitting
|
|
4
4
|
the form data on submission.
|
|
@@ -8,7 +8,7 @@ the form data on submission.
|
|
|
8
8
|
The component allows to customize the button text, presented to the user.
|
|
9
9
|
|
|
10
10
|
```html
|
|
11
|
-
<gl-user-feedback feedback-link-text="Leave your custom feedback" />
|
|
11
|
+
<gl-duo-user-feedback feedback-link-text="Leave your custom feedback" />
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Linking to a separate feedback form
|
|
@@ -18,7 +18,7 @@ be necessary for all consumers. In such a case, the component allows to bypass t
|
|
|
18
18
|
form and link to an external feedback page/form.
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
|
-
<gl-user-feedback feedback-link-url="https://gitlab.com" />
|
|
21
|
+
<gl-duo-user-feedback feedback-link-url="https://gitlab.com" />
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Listening to the feedback form submission
|
|
@@ -26,7 +26,7 @@ form and link to an external feedback page/form.
|
|
|
26
26
|
This component emits the `feedback` event with all the options selected in the feedback form.
|
|
27
27
|
|
|
28
28
|
```html
|
|
29
|
-
<gl-user-feedback @feedback="myEventTracker" />
|
|
29
|
+
<gl-duo-user-feedback @feedback="myEventTracker" />
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
The returned event contains two props (`feedbackChoices` and `extendedTextFeedback`) coming from
|