@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "74.9.3",
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.83.0",
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"
@@ -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>
@@ -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
- }
@@ -29,7 +29,6 @@
29
29
  @import './flex';
30
30
  @import './grid';
31
31
  @import './image';
32
- @import './isolation';
33
32
  @import './list-style';
34
33
  @import './masks';
35
34
  @import './mix-blend-mode';
@@ -35,7 +35,3 @@
35
35
  @mixin gl-z-index-9999 {
36
36
  z-index: 9999;
37
37
  }
38
-
39
- @mixin gl-isolate {
40
- isolation: isolate;
41
- }
@@ -1,3 +0,0 @@
1
- @mixin gl-isolation-isolate {
2
- isolation: isolate;
3
- }