@gitlab/ui 95.6.0 → 96.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 +29 -0
- package/dist/components/base/toggle/toggle.js +3 -4
- package/dist/components/experimental/duo/chat/constants.js +1 -2
- package/dist/components/experimental/duo/chat/duo_chat.js +2 -2
- package/dist/components/experimental/duo/chat/mock_data.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/toggle/toggle.scss +11 -37
- package/src/components/base/toggle/toggle.vue +4 -5
- package/src/components/experimental/duo/chat/constants.js +0 -1
- package/src/components/experimental/duo/chat/duo_chat.vue +1 -6
- package/src/components/experimental/duo/chat/mock_data.js +2 -2
package/package.json
CHANGED
|
@@ -26,32 +26,6 @@ $toggle-height: 2.5 * $grid-size;
|
|
|
26
26
|
@apply gl-leading-normal;
|
|
27
27
|
@apply gl-font-normal;
|
|
28
28
|
@apply gl-inline-flex;
|
|
29
|
-
|
|
30
|
-
&.is-disabled {
|
|
31
|
-
@apply gl-cursor-not-allowed;
|
|
32
|
-
|
|
33
|
-
.gl-toggle {
|
|
34
|
-
@apply gl-cursor-not-allowed;
|
|
35
|
-
@apply gl-bg-gray-200;
|
|
36
|
-
|
|
37
|
-
.toggle-icon > svg {
|
|
38
|
-
@apply gl-fill-gray-200;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.gl-toggle.is-checked {
|
|
43
|
-
@apply gl-bg-blue-200;
|
|
44
|
-
|
|
45
|
-
.toggle-icon > svg {
|
|
46
|
-
@apply gl-fill-blue-200;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.gl-toggle-label,
|
|
51
|
-
.gl-description-label {
|
|
52
|
-
@apply gl-text-gray-500;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
29
|
}
|
|
56
30
|
|
|
57
31
|
.gl-description-label {
|
|
@@ -184,20 +158,20 @@ $toggle-height: 2.5 * $grid-size;
|
|
|
184
158
|
}
|
|
185
159
|
|
|
186
160
|
.toggle-icon {
|
|
187
|
-
transform: translateX($toggle-translate-width);
|
|
188
161
|
background-color: var(--gl-action-strong-confirm-foreground-color-default);
|
|
162
|
+
transform: translateX($toggle-translate-width);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
189
165
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
background-color: var(--gl-action-strong-confirm-foreground-color-focus);
|
|
196
|
-
}
|
|
166
|
+
&.is-disabled,
|
|
167
|
+
&.is-checked.is-disabled {
|
|
168
|
+
@apply gl-cursor-not-allowed;
|
|
169
|
+
color: var(--gl-action-disabled-background-color);
|
|
170
|
+
background-color: var(--gl-action-disabled-background-color);
|
|
197
171
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
172
|
+
.toggle-icon {
|
|
173
|
+
color: var(--gl-action-disabled-background-color);
|
|
174
|
+
background-color: var(--gl-action-disabled-foreground-color);
|
|
201
175
|
}
|
|
202
176
|
}
|
|
203
177
|
}
|
|
@@ -174,16 +174,15 @@ export default {
|
|
|
174
174
|
:aria-describedby="helpId"
|
|
175
175
|
:aria-disabled="disabled"
|
|
176
176
|
:class="{
|
|
177
|
-
'gl-toggle': true,
|
|
178
177
|
'is-checked': value,
|
|
179
|
-
'is-disabled': disabled,
|
|
178
|
+
'is-disabled': disabled || isLoading,
|
|
180
179
|
}"
|
|
181
|
-
class="gl-shrink-0"
|
|
180
|
+
class="gl-toggle gl-shrink-0"
|
|
182
181
|
type="button"
|
|
183
182
|
@click.prevent="toggleFeature"
|
|
184
183
|
>
|
|
185
|
-
<gl-loading-icon v-if="isLoading" color="
|
|
186
|
-
<span v-else
|
|
184
|
+
<gl-loading-icon v-if="isLoading" color="dark" class="toggle-loading" />
|
|
185
|
+
<span v-else class="toggle-icon">
|
|
187
186
|
<gl-icon :name="icon" :size="12" />
|
|
188
187
|
</span>
|
|
189
188
|
</button>
|
|
@@ -17,7 +17,6 @@ import GlDuoChatLoader from './components/duo_chat_loader/duo_chat_loader.vue';
|
|
|
17
17
|
import GlDuoChatPredefinedPrompts from './components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue';
|
|
18
18
|
import GlDuoChatConversation from './components/duo_chat_conversation/duo_chat_conversation.vue';
|
|
19
19
|
import {
|
|
20
|
-
CHAT_CLEAN_MESSAGE,
|
|
21
20
|
CHAT_RESET_MESSAGE,
|
|
22
21
|
CHAT_CLEAR_MESSAGE,
|
|
23
22
|
CHAT_INCLUDE_MESSAGE,
|
|
@@ -393,11 +392,7 @@ export default {
|
|
|
393
392
|
return;
|
|
394
393
|
}
|
|
395
394
|
|
|
396
|
-
if (
|
|
397
|
-
![CHAT_RESET_MESSAGE, CHAT_CLEAN_MESSAGE, CHAT_CLEAR_MESSAGE].includes(
|
|
398
|
-
this.caseInsensitivePrompt
|
|
399
|
-
)
|
|
400
|
-
) {
|
|
395
|
+
if (![CHAT_RESET_MESSAGE, CHAT_CLEAR_MESSAGE].includes(this.caseInsensitivePrompt)) {
|
|
401
396
|
this.displaySubmitButton = false;
|
|
402
397
|
}
|
|
403
398
|
|
|
@@ -2,8 +2,8 @@ import { setStoryTimeout } from '../../../../utils/test_utils';
|
|
|
2
2
|
import {
|
|
3
3
|
DOCUMENTATION_SOURCE_TYPES,
|
|
4
4
|
MESSAGE_MODEL_ROLES,
|
|
5
|
+
CHAT_CLEAR_MESSAGE,
|
|
5
6
|
CHAT_RESET_MESSAGE,
|
|
6
|
-
CHAT_CLEAN_MESSAGE,
|
|
7
7
|
CHAT_INCLUDE_MESSAGE,
|
|
8
8
|
} from './constants';
|
|
9
9
|
import { getMockContextItems } from './components/duo_chat_context/mock_context_data';
|
|
@@ -154,7 +154,7 @@ export const SLASH_COMMANDS = [
|
|
|
154
154
|
description: 'Reset conversation, ignore the previous messages.',
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
name:
|
|
157
|
+
name: CHAT_CLEAR_MESSAGE,
|
|
158
158
|
shouldSubmit: true,
|
|
159
159
|
description: 'Delete all messages in this conversation.',
|
|
160
160
|
},
|