@gitlab/ui 74.9.3 → 75.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/components/base/drawer/drawer.js +8 -1
- package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +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/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/drawer/drawer.md +2 -1
- package/src/components/base/drawer/drawer.stories.js +16 -1
- package/src/components/base/drawer/drawer.vue +8 -1
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +1 -1
- package/src/scss/utilities.scss +0 -14
- package/src/scss/utility-mixins/index.scss +0 -1
- package/src/scss/utility-mixins/z-index.scss +0 -4
- package/src/scss/utility-mixins/isolation.scss +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "75.1.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@gitlab/eslint-plugin": "19.4.0",
|
|
103
103
|
"@gitlab/fonts": "^1.3.0",
|
|
104
104
|
"@gitlab/stylelint-config": "6.1.0",
|
|
105
|
-
"@gitlab/svgs": "3.
|
|
105
|
+
"@gitlab/svgs": "3.84.0",
|
|
106
106
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
107
107
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
108
108
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -4,7 +4,7 @@ handle actions on the information.
|
|
|
4
4
|
### By default
|
|
5
5
|
|
|
6
6
|
```html
|
|
7
|
-
<gl-drawer :open="open" @close="close">
|
|
7
|
+
<gl-drawer :open="open" @close="close" @opened="opened">
|
|
8
8
|
<template #header>Your Title</template>
|
|
9
9
|
<template>
|
|
10
10
|
...children
|
|
@@ -14,3 +14,4 @@ handle actions on the information.
|
|
|
14
14
|
|
|
15
15
|
- `v-bind:open` will be a boolean you will pass to `gl-drawer` and `@close` is a listener that will
|
|
16
16
|
be a function that will toggle open to `false`.
|
|
17
|
+
- The component emits an `opened` event after the opening animation has finished.
|
|
@@ -69,6 +69,7 @@ const createSidebarTemplate = (content) => `
|
|
|
69
69
|
:header-sticky="headerSticky"
|
|
70
70
|
:z-index="zIndex"
|
|
71
71
|
:variant="variant"
|
|
72
|
+
@opened="opened"
|
|
72
73
|
@close="close">${content}</gl-drawer>
|
|
73
74
|
`;
|
|
74
75
|
|
|
@@ -105,9 +106,23 @@ const storyOptions = (viewMode) => ({
|
|
|
105
106
|
});
|
|
106
107
|
|
|
107
108
|
export const Default = (_args, { viewMode }) => ({
|
|
109
|
+
mixins: [
|
|
110
|
+
{
|
|
111
|
+
data() {
|
|
112
|
+
return {
|
|
113
|
+
timesOpened: 0,
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
methods: {
|
|
117
|
+
opened() {
|
|
118
|
+
this.timesOpened += 1;
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
108
123
|
...storyOptions(viewMode),
|
|
109
124
|
template: `
|
|
110
|
-
<div>
|
|
125
|
+
<div :data-opened-count="timesOpened">
|
|
111
126
|
<gl-button @click="toggle">Toggle Drawer</gl-button>
|
|
112
127
|
${createSidebarTemplate(`
|
|
113
128
|
<template #title>List Settings</template>
|
|
@@ -81,6 +81,13 @@ export default {
|
|
|
81
81
|
document.removeEventListener('keydown', this.handleEscape);
|
|
82
82
|
},
|
|
83
83
|
methods: {
|
|
84
|
+
emitOpened() {
|
|
85
|
+
/**
|
|
86
|
+
* Emits when the opening animation has finished.
|
|
87
|
+
* @event opened
|
|
88
|
+
*/
|
|
89
|
+
this.$emit('opened');
|
|
90
|
+
},
|
|
84
91
|
handleEscape(e) {
|
|
85
92
|
const ESC = 27;
|
|
86
93
|
|
|
@@ -92,7 +99,7 @@ export default {
|
|
|
92
99
|
};
|
|
93
100
|
</script>
|
|
94
101
|
<template>
|
|
95
|
-
<transition name="gl-drawer">
|
|
102
|
+
<transition name="gl-drawer" @after-enter="emitOpened">
|
|
96
103
|
<aside v-if="open" :style="drawerStyles" class="gl-drawer" :class="variantClass">
|
|
97
104
|
<div
|
|
98
105
|
class="gl-drawer-header"
|
package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue
CHANGED
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
<template v-if="isAssistantMessage">
|
|
110
110
|
<documentation-sources v-if="sources" :sources="sources" />
|
|
111
111
|
|
|
112
|
-
<div class="gl-display-flex gl-align-items-flex-end gl-mt-4">
|
|
112
|
+
<div class="gl-display-flex gl-align-items-flex-end gl-mt-4 duo-chat-message-feedback">
|
|
113
113
|
<gl-duo-user-feedback @feedback="$emit('track-feedback', $event)" />
|
|
114
114
|
</div>
|
|
115
115
|
</template>
|
package/src/scss/utilities.scss
CHANGED
|
@@ -4177,12 +4177,6 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
4177
4177
|
object-fit: contain !important
|
|
4178
4178
|
}
|
|
4179
4179
|
|
|
4180
|
-
.gl-isolation-isolate {
|
|
4181
|
-
isolation: isolate
|
|
4182
|
-
}
|
|
4183
|
-
.gl-isolation-isolate\! {
|
|
4184
|
-
isolation: isolate !important
|
|
4185
|
-
}
|
|
4186
4180
|
.gl-list-style-none {
|
|
4187
4181
|
list-style-type: none
|
|
4188
4182
|
}
|
|
@@ -9670,11 +9664,3 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
9670
9664
|
.gl-z-index-9999\! {
|
|
9671
9665
|
z-index: 9999 !important
|
|
9672
9666
|
}
|
|
9673
|
-
|
|
9674
|
-
.gl-isolate {
|
|
9675
|
-
isolation: isolate
|
|
9676
|
-
}
|
|
9677
|
-
|
|
9678
|
-
.gl-isolate\! {
|
|
9679
|
-
isolation: isolate !important
|
|
9680
|
-
}
|