@gitlab/ui 91.15.0 → 92.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 +23 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.js +5 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.js +1 -1
- package/dist/components/experimental/duo/chat/constants.js +2 -1
- package/dist/components/experimental/duo/chat/duo_chat.js +65 -15
- package/dist/components/experimental/duo/chat/mock_data.js +6 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tokens/build/js/tokens.dark.js +3 -4
- package/dist/tokens/build/js/tokens.js +2 -3
- package/dist/tokens/css/tokens.css +1 -2
- package/dist/tokens/css/tokens.dark.css +2 -3
- package/dist/tokens/js/tokens.dark.js +2 -3
- package/dist/tokens/js/tokens.js +1 -2
- package/dist/tokens/json/tokens.dark.json +4 -36
- package/dist/tokens/json/tokens.json +3 -35
- package/dist/tokens/scss/_tokens.dark.scss +2 -3
- package/dist/tokens/scss/_tokens.scss +1 -2
- package/dist/tokens/scss/_tokens_custom_properties.scss +0 -1
- package/package.json +1 -1
- package/src/components/base/modal/modal.scss +1 -1
- package/src/components/base/popover/popover.scss +10 -10
- package/src/components/base/toast/toast.scss +2 -1
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue +5 -0
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.vue +1 -0
- package/src/components/experimental/duo/chat/constants.js +1 -0
- package/src/components/experimental/duo/chat/duo_chat.vue +95 -15
- package/src/components/experimental/duo/chat/mock_data.js +6 -0
- package/src/index.js +1 -0
- package/src/scss/variables.scss +0 -1
- package/src/tokens/build/css/tokens.css +1 -2
- package/src/tokens/build/css/tokens.dark.css +2 -3
- package/src/tokens/build/js/tokens.dark.js +2 -3
- package/src/tokens/build/js/tokens.js +1 -2
- package/src/tokens/build/json/tokens.dark.json +4 -36
- package/src/tokens/build/json/tokens.json +3 -35
- package/src/tokens/build/scss/_tokens.dark.scss +2 -3
- package/src/tokens/build/scss/_tokens.scss +1 -2
- package/src/tokens/build/scss/_tokens_custom_properties.scss +0 -1
- package/src/tokens/feedback.tokens.json +2 -8
- package/src/tokens/contextual/popover.tokens.json +0 -14
|
@@ -10,7 +10,7 @@ $gl-popover-max-width: $grid-size * 35;
|
|
|
10
10
|
|
|
11
11
|
&,
|
|
12
12
|
.popover-header {
|
|
13
|
-
background-color: var(--gl-
|
|
13
|
+
background-color: var(--gl-background-color-overlap);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.popover-body {
|
|
@@ -23,52 +23,52 @@ $gl-popover-max-width: $grid-size * 35;
|
|
|
23
23
|
*/
|
|
24
24
|
> .arrow::before {
|
|
25
25
|
bottom: 1px;
|
|
26
|
-
border-top-color: var(--gl-
|
|
26
|
+
border-top-color: var(--gl-background-color-overlap);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
> .arrow::after {
|
|
30
30
|
bottom: 2px;
|
|
31
|
-
border-top-color: var(--gl-
|
|
31
|
+
border-top-color: var(--gl-background-color-overlap);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&.bs-popover-bottom {
|
|
36
36
|
> .arrow::before {
|
|
37
37
|
top: 1px;
|
|
38
|
-
border-bottom-color: var(--gl-
|
|
38
|
+
border-bottom-color: var(--gl-background-color-overlap);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
> .arrow::after {
|
|
42
42
|
top: 2px;
|
|
43
|
-
border-bottom-color: var(--gl-
|
|
43
|
+
border-bottom-color: var(--gl-background-color-overlap);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
> .popover-header::before {
|
|
47
|
-
border-color: var(--gl-
|
|
47
|
+
border-color: var(--gl-background-color-overlap);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&.bs-popover-right {
|
|
52
52
|
> .arrow::before {
|
|
53
53
|
left: 1px;
|
|
54
|
-
border-right-color: var(--gl-
|
|
54
|
+
border-right-color: var(--gl-background-color-overlap);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
> .arrow::after {
|
|
58
58
|
left: 2px;
|
|
59
|
-
border-right-color: var(--gl-
|
|
59
|
+
border-right-color: var(--gl-background-color-overlap);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&.bs-popover-left {
|
|
64
64
|
> .arrow::before {
|
|
65
65
|
right: 1px;
|
|
66
|
-
border-left-color: var(--gl-
|
|
66
|
+
border-left-color: var(--gl-background-color-overlap);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
> .arrow::after {
|
|
70
70
|
right: 2px;
|
|
71
|
-
border-left-color: var(--gl-
|
|
71
|
+
border-left-color: var(--gl-background-color-overlap);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.gl-toast {
|
|
22
|
-
color: color-yiq($toast-background-color);
|
|
23
22
|
@apply gl-rounded-base;
|
|
24
23
|
@include gl-font-base;
|
|
25
24
|
@include gl-py-5;
|
|
@@ -28,6 +27,8 @@
|
|
|
28
27
|
@include gl-display-flex;
|
|
29
28
|
@include gl-align-items-center;
|
|
30
29
|
@include gl-justify-content-space-between;
|
|
30
|
+
background-color: var(--gl-feedback-strong-background-color);
|
|
31
|
+
color: var(--gl-feedback-strong-text-color);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
.toast-body {
|
|
@@ -88,6 +88,7 @@ export default {
|
|
|
88
88
|
<button
|
|
89
89
|
class="gl-flex gl-w-full gl-items-center gl-border-0 gl-bg-transparent gl-p-0 gl-text-left gl-text-xs gl-lowercase gl-text-gray-500"
|
|
90
90
|
data-testid="chat-context-selections-title"
|
|
91
|
+
type="button"
|
|
91
92
|
@click="toggleCollapse"
|
|
92
93
|
>
|
|
93
94
|
<gl-icon :name="collapseIconName" data-testid="chat-context-collapse-icon" /> {{ title }}
|
|
@@ -15,7 +15,13 @@ import { SafeHtmlDirective as SafeHtml } from '../../../../directives/safe_html/
|
|
|
15
15
|
import GlDuoChatLoader from './components/duo_chat_loader/duo_chat_loader.vue';
|
|
16
16
|
import GlDuoChatPredefinedPrompts from './components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue';
|
|
17
17
|
import GlDuoChatConversation from './components/duo_chat_conversation/duo_chat_conversation.vue';
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
CHAT_CLEAN_MESSAGE,
|
|
20
|
+
CHAT_RESET_MESSAGE,
|
|
21
|
+
CHAT_CLEAR_MESSAGE,
|
|
22
|
+
CHAT_INCLUDE_MESSAGE,
|
|
23
|
+
} from './constants';
|
|
24
|
+
import { INCLUDE_SLASH_COMMAND } from './mock_data';
|
|
19
25
|
|
|
20
26
|
export const i18n = {
|
|
21
27
|
CHAT_DEFAULT_TITLE: 'GitLab Duo Chat',
|
|
@@ -214,6 +220,8 @@ export default {
|
|
|
214
220
|
activeCommandIndex: 0,
|
|
215
221
|
displaySubmitButton: true,
|
|
216
222
|
compositionJustEnded: false,
|
|
223
|
+
contextItemsMenuIsOpen: false,
|
|
224
|
+
contextItemMenuRef: null,
|
|
217
225
|
};
|
|
218
226
|
},
|
|
219
227
|
computed: {
|
|
@@ -241,6 +249,9 @@ export default {
|
|
|
241
249
|
lastMessage() {
|
|
242
250
|
return this.messages?.[this.messages.length - 1];
|
|
243
251
|
},
|
|
252
|
+
caseInsensitivePrompt() {
|
|
253
|
+
return this.prompt.toLowerCase().trim();
|
|
254
|
+
},
|
|
244
255
|
resetDisabled() {
|
|
245
256
|
if (this.isLoading || !this.hasMessages) {
|
|
246
257
|
return true;
|
|
@@ -257,20 +268,36 @@ export default {
|
|
|
257
268
|
);
|
|
258
269
|
},
|
|
259
270
|
filteredSlashCommands() {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
271
|
+
return this.slashCommands
|
|
272
|
+
.filter((c) => c.name.toLowerCase().startsWith(this.caseInsensitivePrompt))
|
|
273
|
+
.filter((c) => {
|
|
274
|
+
if (c.name === CHAT_INCLUDE_MESSAGE) {
|
|
275
|
+
return this.hasContextItemSelectionMenu;
|
|
276
|
+
}
|
|
277
|
+
return true;
|
|
278
|
+
});
|
|
264
279
|
},
|
|
265
280
|
shouldShowSlashCommands() {
|
|
266
|
-
if (!this.withSlashCommands) return false;
|
|
267
|
-
const
|
|
268
|
-
const startsWithSlash = caseInsensitivePrompt.startsWith('/');
|
|
281
|
+
if (!this.withSlashCommands || this.contextItemsMenuIsOpen) return false;
|
|
282
|
+
const startsWithSlash = this.caseInsensitivePrompt.startsWith('/');
|
|
269
283
|
const startsWithSlashCommand = this.slashCommands.some((c) =>
|
|
270
|
-
caseInsensitivePrompt.startsWith(c.name)
|
|
284
|
+
this.caseInsensitivePrompt.startsWith(c.name)
|
|
271
285
|
);
|
|
272
286
|
return startsWithSlash && this.filteredSlashCommands.length && !startsWithSlashCommand;
|
|
273
287
|
},
|
|
288
|
+
shouldShowContextItemSelectionMenu() {
|
|
289
|
+
if (!this.hasContextItemSelectionMenu) {
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const isSlash = this.caseInsensitivePrompt === '/';
|
|
294
|
+
if (!this.caseInsensitivePrompt || isSlash) {
|
|
295
|
+
// if user has removed entire command (or whole command except for '/') we should close context item menu and allow slash command menu to show again
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return INCLUDE_SLASH_COMMAND.name.startsWith(this.caseInsensitivePrompt);
|
|
300
|
+
},
|
|
274
301
|
inputPlaceholder() {
|
|
275
302
|
if (this.chatPromptPlaceholder) {
|
|
276
303
|
return this.chatPromptPlaceholder;
|
|
@@ -280,6 +307,9 @@ export default {
|
|
|
280
307
|
? i18n.CHAT_PROMPT_PLACEHOLDER_WITH_COMMANDS
|
|
281
308
|
: i18n.CHAT_PROMPT_PLACEHOLDER_DEFAULT;
|
|
282
309
|
},
|
|
310
|
+
hasContextItemSelectionMenu() {
|
|
311
|
+
return Boolean(this.contextItemMenuRef);
|
|
312
|
+
},
|
|
283
313
|
},
|
|
284
314
|
watch: {
|
|
285
315
|
isLoading(newVal) {
|
|
@@ -322,28 +352,42 @@ export default {
|
|
|
322
352
|
this.setPromptAndFocus();
|
|
323
353
|
},
|
|
324
354
|
sendChatPrompt() {
|
|
325
|
-
if (!this.displaySubmitButton) {
|
|
355
|
+
if (!this.displaySubmitButton || this.contextItemsMenuIsOpen) {
|
|
326
356
|
return;
|
|
327
357
|
}
|
|
328
358
|
if (this.prompt) {
|
|
329
|
-
if (this.
|
|
359
|
+
if (this.caseInsensitivePrompt === CHAT_RESET_MESSAGE && this.resetDisabled) {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (
|
|
364
|
+
this.caseInsensitivePrompt.startsWith(CHAT_INCLUDE_MESSAGE) &&
|
|
365
|
+
this.hasContextItemSelectionMenu
|
|
366
|
+
) {
|
|
367
|
+
this.contextItemsMenuIsOpen = true;
|
|
330
368
|
return;
|
|
331
369
|
}
|
|
370
|
+
|
|
371
|
+
if (
|
|
372
|
+
![CHAT_RESET_MESSAGE, CHAT_CLEAN_MESSAGE, CHAT_CLEAR_MESSAGE].includes(
|
|
373
|
+
this.caseInsensitivePrompt
|
|
374
|
+
)
|
|
375
|
+
) {
|
|
376
|
+
this.displaySubmitButton = false;
|
|
377
|
+
}
|
|
378
|
+
|
|
332
379
|
/**
|
|
333
380
|
* Emitted when a new user prompt should be sent out.
|
|
334
381
|
*
|
|
335
382
|
* @param {String} prompt The user prompt to send.
|
|
336
383
|
*/
|
|
337
|
-
|
|
338
|
-
if (![CHAT_RESET_MESSAGE, CHAT_CLEAN_MESSAGE, CHAT_CLEAR_MESSAGE].includes(this.prompt)) {
|
|
339
|
-
this.displaySubmitButton = false;
|
|
340
|
-
}
|
|
341
384
|
this.$emit('send-chat-prompt', this.prompt.trim());
|
|
342
385
|
|
|
343
386
|
this.setPromptAndFocus();
|
|
344
387
|
}
|
|
345
388
|
},
|
|
346
389
|
sendPredefinedPrompt(prompt) {
|
|
390
|
+
this.contextItemsMenuIsOpen = false;
|
|
347
391
|
this.prompt = prompt;
|
|
348
392
|
this.sendChatPrompt();
|
|
349
393
|
},
|
|
@@ -379,6 +423,18 @@ export default {
|
|
|
379
423
|
onInputKeyup(e) {
|
|
380
424
|
const { key } = e;
|
|
381
425
|
|
|
426
|
+
if (this.contextItemsMenuIsOpen) {
|
|
427
|
+
if (!this.shouldShowContextItemSelectionMenu) {
|
|
428
|
+
this.contextItemsMenuIsOpen = false;
|
|
429
|
+
}
|
|
430
|
+
this.contextItemMenuRef?.handleKeyUp(e);
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
if (this.caseInsensitivePrompt === INCLUDE_SLASH_COMMAND.name) {
|
|
434
|
+
this.contextItemsMenuIsOpen = true;
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
|
|
382
438
|
if (this.shouldShowSlashCommands) {
|
|
383
439
|
e.preventDefault();
|
|
384
440
|
|
|
@@ -426,6 +482,10 @@ export default {
|
|
|
426
482
|
this.sendChatPrompt();
|
|
427
483
|
} else {
|
|
428
484
|
this.setPromptAndFocus(`${command.name} `);
|
|
485
|
+
|
|
486
|
+
if (command.name === CHAT_INCLUDE_MESSAGE && this.hasContextItemSelectionMenu) {
|
|
487
|
+
this.contextItemsMenuIsOpen = true;
|
|
488
|
+
}
|
|
429
489
|
}
|
|
430
490
|
},
|
|
431
491
|
onInsertCodeSnippet(e) {
|
|
@@ -435,6 +495,13 @@ export default {
|
|
|
435
495
|
*/
|
|
436
496
|
this.$emit('insert-code-snippet', e);
|
|
437
497
|
},
|
|
498
|
+
closeContextItemsMenuOpen() {
|
|
499
|
+
this.contextItemsMenuIsOpen = false;
|
|
500
|
+
this.setPromptAndFocus();
|
|
501
|
+
},
|
|
502
|
+
setContextItemsMenuRef(ref) {
|
|
503
|
+
this.contextItemMenuRef = ref;
|
|
504
|
+
},
|
|
438
505
|
},
|
|
439
506
|
i18n,
|
|
440
507
|
emptySvg,
|
|
@@ -561,6 +628,19 @@ export default {
|
|
|
561
628
|
:class="{ 'duo-chat-drawer-body-scrim-on-footer': !scrolledToBottom }"
|
|
562
629
|
>
|
|
563
630
|
<gl-form data-testid="chat-prompt-form" @submit.stop.prevent="sendChatPrompt">
|
|
631
|
+
<div class="gl-relative gl-max-w-full">
|
|
632
|
+
<!--
|
|
633
|
+
@slot For integrating `<gl-context-items-menu>` component if pinned-context should be available. The following scopedSlot properties are provided: `isOpen`, `onClose`, `setRef`, `focusPrompt`, which should be passed to the `<gl-context-items-menu>` component when rendering, e.g. `<template #context-items-menu="{ isOpen, onClose, setRef, focusPrompt }">` `<gl-duo-chat-context-item-menu :ref="setRef" :open="isOpen" @close="onClose" @focus-prompt="focusPrompt" ...`
|
|
634
|
+
-->
|
|
635
|
+
<slot
|
|
636
|
+
name="context-items-menu"
|
|
637
|
+
:is-open="contextItemsMenuIsOpen"
|
|
638
|
+
:on-close="closeContextItemsMenuOpen"
|
|
639
|
+
:set-ref="setContextItemsMenuRef"
|
|
640
|
+
:focus-prompt="focusChatInput"
|
|
641
|
+
></slot>
|
|
642
|
+
</div>
|
|
643
|
+
|
|
564
644
|
<gl-form-input-group>
|
|
565
645
|
<div
|
|
566
646
|
class="duo-chat-input gl-min-h-8 gl-max-w-full gl-grow gl-rounded-base gl-bg-white gl-align-top gl-shadow-inner-1-gray-400"
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
MESSAGE_MODEL_ROLES,
|
|
5
5
|
CHAT_RESET_MESSAGE,
|
|
6
6
|
CHAT_CLEAN_MESSAGE,
|
|
7
|
+
CHAT_INCLUDE_MESSAGE,
|
|
7
8
|
} from './constants';
|
|
8
9
|
import { getMockContextItems } from './components/duo_chat_context/mock_context_data';
|
|
9
10
|
|
|
@@ -170,3 +171,8 @@ export const SLASH_COMMANDS = [
|
|
|
170
171
|
description: 'Explain the selected snippet.',
|
|
171
172
|
},
|
|
172
173
|
];
|
|
174
|
+
|
|
175
|
+
export const INCLUDE_SLASH_COMMAND = {
|
|
176
|
+
name: CHAT_INCLUDE_MESSAGE,
|
|
177
|
+
description: 'Include additional context in the conversation.',
|
|
178
|
+
};
|
package/src/index.js
CHANGED
|
@@ -100,6 +100,7 @@ export { default as GlAccordionItem } from './components/base/accordion/accordio
|
|
|
100
100
|
export { default as GlExperimentBadge } from './components/experimental/experiment_badge/experiment_badge.vue';
|
|
101
101
|
export { default as GlDuoUserFeedback } from './components/experimental/duo/user_feedback/user_feedback.vue';
|
|
102
102
|
export { default as GlDuoChat } from './components/experimental/duo/chat/duo_chat.vue';
|
|
103
|
+
export { default as GlDuoChatContextItemMenu } from './components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue';
|
|
103
104
|
|
|
104
105
|
// Utilities
|
|
105
106
|
export { default as GlAnimatedNumber } from './components/utilities/animated_number/animated_number.vue';
|
package/src/scss/variables.scss
CHANGED
|
@@ -232,7 +232,6 @@ $focus-ring-outline: $outline-width solid var(--gl-focus-ring-outer-color);
|
|
|
232
232
|
// Toasts
|
|
233
233
|
$toast-max-width: px-to-rem(586px);
|
|
234
234
|
$toast-padding-right: px-to-rem(42px);
|
|
235
|
-
$toast-background-color: #303030;
|
|
236
235
|
|
|
237
236
|
// Chart tooltip
|
|
238
237
|
$chart-tooltip-max-width: px-to-rem(512px);
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
--gl-feedback-strong-link-color: var(--gl-color-blue-300); /* Used for a link on a strong feedback background. */
|
|
479
479
|
--gl-feedback-strong-icon-color: var(--gl-color-neutral-0); /* Used for an icon on a strong feedback background. */
|
|
480
480
|
--gl-feedback-strong-text-color: var(--gl-color-neutral-0); /* Used for text on a strong feedback background. */
|
|
481
|
-
--gl-feedback-strong-background-color: var(--gl-color-neutral-
|
|
481
|
+
--gl-feedback-strong-background-color: var(--gl-color-neutral-800); /* Used for a background associated with strong feedback like a tooltip or toast message. */
|
|
482
482
|
--gl-control-indicator-color-disabled: var(--gl-color-neutral-500); /* Used for disabled checkbox and radio button state indicators. */
|
|
483
483
|
--gl-control-indicator-color-selected: var(--gl-color-neutral-0); /* Used for checkbox and radio button state indicators. */
|
|
484
484
|
--gl-control-border-color-selected-focus: var(--gl-color-blue-700); /* Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus. */
|
|
@@ -503,7 +503,6 @@
|
|
|
503
503
|
--gl-spinner-track-color-default: var(--gl-color-neutral-100); /* Used for the static track (background) of a loading spinner. */
|
|
504
504
|
--gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-50); /* Used for the animated shimmer effect in a skeleton loader. */
|
|
505
505
|
--gl-skeleton-loader-background-color: var(--gl-color-neutral-100); /* Used for the skeleton loader background color. */
|
|
506
|
-
--gl-popover-background-color: var(--gl-color-neutral-0); /* Used for the background color of popover. */
|
|
507
506
|
--gl-link-mention-background-color-current: var(--gl-color-orange-100); /* Used for the mention link background when referencing the current user. */
|
|
508
507
|
--gl-link-mention-background-color-default: var(--gl-color-blue-100); /* Used for the mention link default background. */
|
|
509
508
|
--gl-link-mention-text-color-current: var(--gl-color-orange-800); /* Used for the mention link text color when referencing the current user. */
|
|
@@ -477,8 +477,8 @@
|
|
|
477
477
|
--gl-feedback-neutral-background-color: var(--gl-color-neutral-900); /* Used for the background of a neutral feedback item when there isn't a specific meaning or urgency. */
|
|
478
478
|
--gl-feedback-strong-link-color: var(--gl-color-blue-700); /* Used for a link on a strong feedback background. */
|
|
479
479
|
--gl-feedback-strong-icon-color: var(--gl-color-neutral-900); /* Used for an icon on a strong feedback background. */
|
|
480
|
-
--gl-feedback-strong-text-color: var(--gl-color-neutral-
|
|
481
|
-
--gl-feedback-strong-background-color: var(--gl-color-neutral-
|
|
480
|
+
--gl-feedback-strong-text-color: var(--gl-color-neutral-0); /* Used for text on a strong feedback background. */
|
|
481
|
+
--gl-feedback-strong-background-color: var(--gl-color-neutral-800); /* Used for a background associated with strong feedback like a tooltip or toast message. */
|
|
482
482
|
--gl-control-indicator-color-disabled: var(--gl-color-neutral-400); /* Used for disabled checkbox and radio button state indicators. */
|
|
483
483
|
--gl-control-indicator-color-selected: var(--gl-color-neutral-950); /* Used for checkbox and radio button state indicators. */
|
|
484
484
|
--gl-control-border-color-selected-focus: var(--gl-color-blue-200); /* Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus. */
|
|
@@ -503,7 +503,6 @@
|
|
|
503
503
|
--gl-spinner-track-color-default: var(--gl-color-neutral-800); /* Used for the static track (background) of a loading spinner. */
|
|
504
504
|
--gl-skeleton-loader-shimmer-color: var(--gl-color-neutral-700); /* Used for the animated shimmer effect in a skeleton loader. */
|
|
505
505
|
--gl-skeleton-loader-background-color: var(--gl-color-neutral-800); /* Used for the skeleton loader background color. */
|
|
506
|
-
--gl-popover-background-color: var(--gl-color-neutral-900); /* Used for the background color of popover. */
|
|
507
506
|
--gl-link-mention-background-color-current: var(--gl-color-orange-800); /* Used for the mention link background when referencing the current user. */
|
|
508
507
|
--gl-link-mention-background-color-default: var(--gl-color-blue-800); /* Used for the mention link default background. */
|
|
509
508
|
--gl-link-mention-text-color-current: var(--gl-color-orange-100); /* Used for the mention link text color when referencing the current user. */
|
|
@@ -643,7 +643,6 @@ export const GL_LINK_MENTION_TEXT_COLOR_DEFAULT = '#9dc7f1'; // Used for the men
|
|
|
643
643
|
export const GL_LINK_MENTION_TEXT_COLOR_CURRENT = '#f5d9a8'; // Used for the mention link text color when referencing the current user.
|
|
644
644
|
export const GL_LINK_MENTION_BACKGROUND_COLOR_DEFAULT = '#064787'; // Used for the mention link default background.
|
|
645
645
|
export const GL_LINK_MENTION_BACKGROUND_COLOR_CURRENT = '#703800'; // Used for the mention link background when referencing the current user.
|
|
646
|
-
export const GL_POPOVER_BACKGROUND_COLOR = '#28272d'; // Used for the background color of popover.
|
|
647
646
|
export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#3a383f'; // Used for the skeleton loader background color.
|
|
648
647
|
export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#4c4b51'; // Used for the animated shimmer effect in a skeleton loader.
|
|
649
648
|
export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#3a383f'; // Used for the static track (background) of a loading spinner.
|
|
@@ -838,8 +837,8 @@ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)'; // Use color.alpha.ligh
|
|
|
838
837
|
export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)'; // Use color.alpha.light.4 instead.
|
|
839
838
|
export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)'; // Use color.alpha.light.6 instead.
|
|
840
839
|
export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)'; // Use color.alpha.light.8 instead.
|
|
841
|
-
export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#
|
|
842
|
-
export const GL_FEEDBACK_STRONG_TEXT_COLOR = '#
|
|
840
|
+
export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#3a383f'; // Used for a background associated with strong feedback like a tooltip or toast message.
|
|
841
|
+
export const GL_FEEDBACK_STRONG_TEXT_COLOR = '#fff'; // Used for text on a strong feedback background.
|
|
843
842
|
export const GL_FEEDBACK_STRONG_ICON_COLOR = '#28272d'; // Used for an icon on a strong feedback background.
|
|
844
843
|
export const GL_FEEDBACK_STRONG_LINK_COLOR = '#0b5cad'; // Used for a link on a strong feedback background.
|
|
845
844
|
export const GL_FEEDBACK_NEUTRAL_BACKGROUND_COLOR = '#28272d'; // Used for the background of a neutral feedback item when there isn't a specific meaning or urgency.
|
|
@@ -643,7 +643,6 @@ export const GL_LINK_MENTION_TEXT_COLOR_DEFAULT = '#0b5cad'; // Used for the men
|
|
|
643
643
|
export const GL_LINK_MENTION_TEXT_COLOR_CURRENT = '#703800'; // Used for the mention link text color when referencing the current user.
|
|
644
644
|
export const GL_LINK_MENTION_BACKGROUND_COLOR_DEFAULT = '#cbe2f9'; // Used for the mention link default background.
|
|
645
645
|
export const GL_LINK_MENTION_BACKGROUND_COLOR_CURRENT = '#f5d9a8'; // Used for the mention link background when referencing the current user.
|
|
646
|
-
export const GL_POPOVER_BACKGROUND_COLOR = '#fff'; // Used for the background color of popover.
|
|
647
646
|
export const GL_SKELETON_LOADER_BACKGROUND_COLOR = '#dcdcde'; // Used for the skeleton loader background color.
|
|
648
647
|
export const GL_SKELETON_LOADER_SHIMMER_COLOR = '#ececef'; // Used for the animated shimmer effect in a skeleton loader.
|
|
649
648
|
export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#dcdcde'; // Used for the static track (background) of a loading spinner.
|
|
@@ -838,7 +837,7 @@ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)'; // Use color.alpha.ligh
|
|
|
838
837
|
export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)'; // Use color.alpha.light.4 instead.
|
|
839
838
|
export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)'; // Use color.alpha.light.6 instead.
|
|
840
839
|
export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)'; // Use color.alpha.light.8 instead.
|
|
841
|
-
export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#
|
|
840
|
+
export const GL_FEEDBACK_STRONG_BACKGROUND_COLOR = '#3a383f'; // Used for a background associated with strong feedback like a tooltip or toast message.
|
|
842
841
|
export const GL_FEEDBACK_STRONG_TEXT_COLOR = '#fff'; // Used for text on a strong feedback background.
|
|
843
842
|
export const GL_FEEDBACK_STRONG_ICON_COLOR = '#fff'; // Used for an icon on a strong feedback background.
|
|
844
843
|
export const GL_FEEDBACK_STRONG_LINK_COLOR = '#63a6e9'; // Used for a link on a strong feedback background.
|
|
@@ -14161,32 +14161,6 @@
|
|
|
14161
14161
|
}
|
|
14162
14162
|
}
|
|
14163
14163
|
},
|
|
14164
|
-
"popover": {
|
|
14165
|
-
"background": {
|
|
14166
|
-
"color": {
|
|
14167
|
-
"value": "#28272d",
|
|
14168
|
-
"$type": "color",
|
|
14169
|
-
"comment": "Used for the background color of popover.",
|
|
14170
|
-
"filePath": "src/tokens/contextual/popover.tokens.json",
|
|
14171
|
-
"isSource": true,
|
|
14172
|
-
"original": {
|
|
14173
|
-
"value": {
|
|
14174
|
-
"default": "{color.neutral.0}",
|
|
14175
|
-
"dark": "{color.neutral.900}"
|
|
14176
|
-
},
|
|
14177
|
-
"$type": "color",
|
|
14178
|
-
"comment": "Used for the background color of popover."
|
|
14179
|
-
},
|
|
14180
|
-
"name": "POPOVER_BACKGROUND_COLOR",
|
|
14181
|
-
"attributes": {},
|
|
14182
|
-
"path": [
|
|
14183
|
-
"popover",
|
|
14184
|
-
"background",
|
|
14185
|
-
"color"
|
|
14186
|
-
]
|
|
14187
|
-
}
|
|
14188
|
-
}
|
|
14189
|
-
},
|
|
14190
14164
|
"skeleton-loader": {
|
|
14191
14165
|
"background": {
|
|
14192
14166
|
"color": {
|
|
@@ -19121,16 +19095,13 @@
|
|
|
19121
19095
|
"strong": {
|
|
19122
19096
|
"background": {
|
|
19123
19097
|
"color": {
|
|
19124
|
-
"value": "#
|
|
19098
|
+
"value": "#3a383f",
|
|
19125
19099
|
"$type": "color",
|
|
19126
19100
|
"comment": "Used for a background associated with strong feedback like a tooltip or toast message.",
|
|
19127
19101
|
"filePath": "src/tokens/feedback.tokens.json",
|
|
19128
19102
|
"isSource": true,
|
|
19129
19103
|
"original": {
|
|
19130
|
-
"value": {
|
|
19131
|
-
"default": "{color.neutral.950}",
|
|
19132
|
-
"dark": "{color.neutral.10}"
|
|
19133
|
-
},
|
|
19104
|
+
"value": "{color.neutral.800}",
|
|
19134
19105
|
"$type": "color",
|
|
19135
19106
|
"comment": "Used for a background associated with strong feedback like a tooltip or toast message."
|
|
19136
19107
|
},
|
|
@@ -19146,16 +19117,13 @@
|
|
|
19146
19117
|
},
|
|
19147
19118
|
"text": {
|
|
19148
19119
|
"color": {
|
|
19149
|
-
"value": "#
|
|
19120
|
+
"value": "#fff",
|
|
19150
19121
|
"$type": "color",
|
|
19151
19122
|
"comment": "Used for text on a strong feedback background.",
|
|
19152
19123
|
"filePath": "src/tokens/feedback.tokens.json",
|
|
19153
19124
|
"isSource": true,
|
|
19154
19125
|
"original": {
|
|
19155
|
-
"value": {
|
|
19156
|
-
"default": "{color.neutral.0}",
|
|
19157
|
-
"dark": "{color.neutral.900}"
|
|
19158
|
-
},
|
|
19126
|
+
"value": "{color.neutral.0}",
|
|
19159
19127
|
"$type": "color",
|
|
19160
19128
|
"comment": "Used for text on a strong feedback background."
|
|
19161
19129
|
},
|
|
@@ -14161,32 +14161,6 @@
|
|
|
14161
14161
|
}
|
|
14162
14162
|
}
|
|
14163
14163
|
},
|
|
14164
|
-
"popover": {
|
|
14165
|
-
"background": {
|
|
14166
|
-
"color": {
|
|
14167
|
-
"value": "#fff",
|
|
14168
|
-
"$type": "color",
|
|
14169
|
-
"comment": "Used for the background color of popover.",
|
|
14170
|
-
"filePath": "src/tokens/contextual/popover.tokens.json",
|
|
14171
|
-
"isSource": true,
|
|
14172
|
-
"original": {
|
|
14173
|
-
"value": {
|
|
14174
|
-
"default": "{color.neutral.0}",
|
|
14175
|
-
"dark": "{color.neutral.900}"
|
|
14176
|
-
},
|
|
14177
|
-
"$type": "color",
|
|
14178
|
-
"comment": "Used for the background color of popover."
|
|
14179
|
-
},
|
|
14180
|
-
"name": "POPOVER_BACKGROUND_COLOR",
|
|
14181
|
-
"attributes": {},
|
|
14182
|
-
"path": [
|
|
14183
|
-
"popover",
|
|
14184
|
-
"background",
|
|
14185
|
-
"color"
|
|
14186
|
-
]
|
|
14187
|
-
}
|
|
14188
|
-
}
|
|
14189
|
-
},
|
|
14190
14164
|
"skeleton-loader": {
|
|
14191
14165
|
"background": {
|
|
14192
14166
|
"color": {
|
|
@@ -19121,16 +19095,13 @@
|
|
|
19121
19095
|
"strong": {
|
|
19122
19096
|
"background": {
|
|
19123
19097
|
"color": {
|
|
19124
|
-
"value": "#
|
|
19098
|
+
"value": "#3a383f",
|
|
19125
19099
|
"$type": "color",
|
|
19126
19100
|
"comment": "Used for a background associated with strong feedback like a tooltip or toast message.",
|
|
19127
19101
|
"filePath": "src/tokens/feedback.tokens.json",
|
|
19128
19102
|
"isSource": true,
|
|
19129
19103
|
"original": {
|
|
19130
|
-
"value": {
|
|
19131
|
-
"default": "{color.neutral.950}",
|
|
19132
|
-
"dark": "{color.neutral.10}"
|
|
19133
|
-
},
|
|
19104
|
+
"value": "{color.neutral.800}",
|
|
19134
19105
|
"$type": "color",
|
|
19135
19106
|
"comment": "Used for a background associated with strong feedback like a tooltip or toast message."
|
|
19136
19107
|
},
|
|
@@ -19152,10 +19123,7 @@
|
|
|
19152
19123
|
"filePath": "src/tokens/feedback.tokens.json",
|
|
19153
19124
|
"isSource": true,
|
|
19154
19125
|
"original": {
|
|
19155
|
-
"value": {
|
|
19156
|
-
"default": "{color.neutral.0}",
|
|
19157
|
-
"dark": "{color.neutral.900}"
|
|
19158
|
-
},
|
|
19126
|
+
"value": "{color.neutral.0}",
|
|
19159
19127
|
"$type": "color",
|
|
19160
19128
|
"comment": "Used for text on a strong feedback background."
|
|
19161
19129
|
},
|
|
@@ -475,8 +475,8 @@ $gl-feedback-neutral-text-color: $gl-color-neutral-200; // Used for the text of
|
|
|
475
475
|
$gl-feedback-neutral-background-color: $gl-color-neutral-900; // Used for the background of a neutral feedback item when there isn't a specific meaning or urgency.
|
|
476
476
|
$gl-feedback-strong-link-color: $gl-color-blue-700; // Used for a link on a strong feedback background.
|
|
477
477
|
$gl-feedback-strong-icon-color: $gl-color-neutral-900; // Used for an icon on a strong feedback background.
|
|
478
|
-
$gl-feedback-strong-text-color: $gl-color-neutral-
|
|
479
|
-
$gl-feedback-strong-background-color: $gl-color-neutral-
|
|
478
|
+
$gl-feedback-strong-text-color: $gl-color-neutral-0; // Used for text on a strong feedback background.
|
|
479
|
+
$gl-feedback-strong-background-color: $gl-color-neutral-800; // Used for a background associated with strong feedback like a tooltip or toast message.
|
|
480
480
|
$gl-control-indicator-color-disabled: $gl-color-neutral-400; // Used for disabled checkbox and radio button state indicators.
|
|
481
481
|
$gl-control-indicator-color-selected: $gl-color-neutral-950; // Used for checkbox and radio button state indicators.
|
|
482
482
|
$gl-control-border-color-selected-focus: $gl-color-blue-200; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
|
|
@@ -501,7 +501,6 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
|
|
|
501
501
|
$gl-spinner-track-color-default: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner.
|
|
502
502
|
$gl-skeleton-loader-shimmer-color: $gl-color-neutral-700; // Used for the animated shimmer effect in a skeleton loader.
|
|
503
503
|
$gl-skeleton-loader-background-color: $gl-color-neutral-800; // Used for the skeleton loader background color.
|
|
504
|
-
$gl-popover-background-color: $gl-color-neutral-900; // Used for the background color of popover.
|
|
505
504
|
$gl-link-mention-background-color-current: $gl-color-orange-800; // Used for the mention link background when referencing the current user.
|
|
506
505
|
$gl-link-mention-background-color-default: $gl-color-blue-800; // Used for the mention link default background.
|
|
507
506
|
$gl-link-mention-text-color-current: $gl-color-orange-100; // Used for the mention link text color when referencing the current user.
|
|
@@ -476,7 +476,7 @@ $gl-feedback-neutral-background-color: $gl-color-neutral-50; // Used for the bac
|
|
|
476
476
|
$gl-feedback-strong-link-color: $gl-color-blue-300; // Used for a link on a strong feedback background.
|
|
477
477
|
$gl-feedback-strong-icon-color: $gl-color-neutral-0; // Used for an icon on a strong feedback background.
|
|
478
478
|
$gl-feedback-strong-text-color: $gl-color-neutral-0; // Used for text on a strong feedback background.
|
|
479
|
-
$gl-feedback-strong-background-color: $gl-color-neutral-
|
|
479
|
+
$gl-feedback-strong-background-color: $gl-color-neutral-800; // Used for a background associated with strong feedback like a tooltip or toast message.
|
|
480
480
|
$gl-control-indicator-color-disabled: $gl-color-neutral-500; // Used for disabled checkbox and radio button state indicators.
|
|
481
481
|
$gl-control-indicator-color-selected: $gl-color-neutral-0; // Used for checkbox and radio button state indicators.
|
|
482
482
|
$gl-control-border-color-selected-focus: $gl-color-blue-700; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
|
|
@@ -501,7 +501,6 @@ $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static tra
|
|
|
501
501
|
$gl-spinner-track-color-default: $gl-color-neutral-100; // Used for the static track (background) of a loading spinner.
|
|
502
502
|
$gl-skeleton-loader-shimmer-color: $gl-color-neutral-50; // Used for the animated shimmer effect in a skeleton loader.
|
|
503
503
|
$gl-skeleton-loader-background-color: $gl-color-neutral-100; // Used for the skeleton loader background color.
|
|
504
|
-
$gl-popover-background-color: $gl-color-neutral-0; // Used for the background color of popover.
|
|
505
504
|
$gl-link-mention-background-color-current: $gl-color-orange-100; // Used for the mention link background when referencing the current user.
|
|
506
505
|
$gl-link-mention-background-color-default: $gl-color-blue-100; // Used for the mention link default background.
|
|
507
506
|
$gl-link-mention-text-color-current: $gl-color-orange-800; // Used for the mention link text color when referencing the current user.
|
|
@@ -643,7 +643,6 @@ $gl-link-mention-text-color-default: var(--gl-link-mention-text-color-default);
|
|
|
643
643
|
$gl-link-mention-text-color-current: var(--gl-link-mention-text-color-current);
|
|
644
644
|
$gl-link-mention-background-color-default: var(--gl-link-mention-background-color-default);
|
|
645
645
|
$gl-link-mention-background-color-current: var(--gl-link-mention-background-color-current);
|
|
646
|
-
$gl-popover-background-color: var(--gl-popover-background-color);
|
|
647
646
|
$gl-skeleton-loader-background-color: var(--gl-skeleton-loader-background-color);
|
|
648
647
|
$gl-skeleton-loader-shimmer-color: var(--gl-skeleton-loader-shimmer-color);
|
|
649
648
|
$gl-spinner-track-color-default: var(--gl-spinner-track-color-default);
|
|
@@ -3,20 +3,14 @@
|
|
|
3
3
|
"strong": {
|
|
4
4
|
"background": {
|
|
5
5
|
"color": {
|
|
6
|
-
"$value": {
|
|
7
|
-
"default": "{color.neutral.950}",
|
|
8
|
-
"dark": "{color.neutral.10}"
|
|
9
|
-
},
|
|
6
|
+
"$value": "{color.neutral.800}",
|
|
10
7
|
"$type": "color",
|
|
11
8
|
"$description": "Used for a background associated with strong feedback like a tooltip or toast message."
|
|
12
9
|
}
|
|
13
10
|
},
|
|
14
11
|
"text": {
|
|
15
12
|
"color": {
|
|
16
|
-
"$value": {
|
|
17
|
-
"default": "{color.neutral.0}",
|
|
18
|
-
"dark": "{color.neutral.900}"
|
|
19
|
-
},
|
|
13
|
+
"$value": "{color.neutral.0}",
|
|
20
14
|
"$type": "color",
|
|
21
15
|
"$description": "Used for text on a strong feedback background."
|
|
22
16
|
}
|