@gitlab/ui 94.4.2 → 94.6.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/experimental/duo/chat/components/duo_chat_context/constants.js +4 -1
  3. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.js +10 -3
  4. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.js +12 -21
  5. package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.js +5 -11
  6. package/dist/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +60 -3
  7. package/dist/components/experimental/duo/chat/components/duo_chat_context/utils.js +71 -1
  8. package/dist/index.css +2 -2
  9. package/dist/index.css.map +1 -1
  10. package/dist/tailwind.css +1 -1
  11. package/dist/tailwind.css.map +1 -1
  12. package/dist/tokens/build/js/tokens.dark.js +1 -1
  13. package/dist/tokens/css/tokens.css +1 -1
  14. package/dist/tokens/css/tokens.dark.css +2 -2
  15. package/dist/tokens/js/tokens.dark.js +1 -1
  16. package/dist/tokens/json/tokens.dark.json +6 -3
  17. package/dist/tokens/json/tokens.json +5 -2
  18. package/dist/tokens/scss/_tokens.dark.scss +2 -2
  19. package/dist/tokens/scss/_tokens.scss +1 -1
  20. package/dist/tokens/tailwind/tokens.cjs +1 -1
  21. package/package.json +3 -3
  22. package/src/components/base/avatar_labeled/avatar_labeled.scss +1 -1
  23. package/src/components/base/breadcrumb/breadcrumb.scss +2 -2
  24. package/src/components/base/broadcast_message/broadcast_message.scss +1 -1
  25. package/src/components/base/button/button.scss +6 -6
  26. package/src/components/base/datepicker/datepicker.scss +7 -7
  27. package/src/components/base/daterange_picker/daterange_picker.scss +2 -2
  28. package/src/components/base/drawer/drawer.scss +3 -3
  29. package/src/components/base/dropdown/dropdown.scss +2 -2
  30. package/src/components/base/dropdown/dropdown_item.scss +4 -4
  31. package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +1 -1
  32. package/src/components/base/filtered_search/filtered_search_term.scss +1 -1
  33. package/src/components/base/filtered_search/filtered_search_token.scss +3 -3
  34. package/src/components/base/filtered_search/filtered_search_token_segment.scss +2 -2
  35. package/src/components/base/form/form_checkbox/form_checkbox.scss +4 -4
  36. package/src/components/base/form/form_input/form_input.scss +3 -3
  37. package/src/components/base/form/form_select/form_select.scss +3 -3
  38. package/src/components/base/label/label.scss +4 -4
  39. package/src/components/base/loading_icon/loading_icon.scss +1 -1
  40. package/src/components/base/markdown/markdown.scss +3 -3
  41. package/src/components/base/markdown/markdown_typescale_demo.html +4 -4
  42. package/src/components/base/modal/modal.scss +1 -1
  43. package/src/components/base/new_dropdowns/dropdown.scss +3 -3
  44. package/src/components/base/new_dropdowns/dropdown_item.scss +2 -2
  45. package/src/components/base/pagination/pagination.scss +1 -1
  46. package/src/components/base/path/path.scss +3 -3
  47. package/src/components/base/popover/popover.scss +1 -1
  48. package/src/components/base/search_box_by_type/search_box_by_type.scss +1 -1
  49. package/src/components/base/segmented_control/segmented_control.scss +3 -3
  50. package/src/components/base/skeleton_loader/skeleton_loader.scss +1 -1
  51. package/src/components/base/tabs/tabs/tabs.scss +4 -4
  52. package/src/components/base/toast/toast.scss +1 -1
  53. package/src/components/base/toggle/toggle.scss +3 -3
  54. package/src/components/charts/heatmap/heatmap.scss +1 -1
  55. package/src/components/charts/legend/legend.scss +2 -2
  56. package/src/components/charts/tooltip/tooltip.scss +1 -1
  57. package/src/components/experimental/duo/chat/components/duo_chat_context/constants.js +4 -0
  58. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.vue +19 -6
  59. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.vue +33 -31
  60. package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.vue +16 -18
  61. package/src/components/experimental/duo/chat/components/duo_chat_context/mock_context_data.js +64 -1
  62. package/src/components/experimental/duo/chat/components/duo_chat_context/utils.js +75 -0
  63. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +4 -4
  64. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +2 -2
  65. package/src/components/experimental/duo/chat/duo_chat.scss +4 -4
  66. package/src/components/shared_components/clear_icon_button/clear_icon_button.scss +1 -1
  67. package/src/scss/typescale/_index.scss +2 -2
  68. package/src/tokens/background.tokens.json +5 -2
  69. package/src/tokens/build/css/tokens.css +1 -1
  70. package/src/tokens/build/css/tokens.dark.css +2 -2
  71. package/src/tokens/build/js/tokens.dark.js +1 -1
  72. package/src/tokens/build/json/tokens.dark.json +6 -3
  73. package/src/tokens/build/json/tokens.json +5 -2
  74. package/src/tokens/build/scss/_tokens.dark.scss +2 -2
  75. package/src/tokens/build/scss/_tokens.scss +1 -1
  76. package/src/tokens/build/tailwind/tokens.cjs +1 -1
  77. package/translations.js +6 -3
@@ -2,10 +2,12 @@ import {
2
2
  CONTEXT_ITEM_CATEGORY_ISSUE,
3
3
  CONTEXT_ITEM_CATEGORY_MERGE_REQUEST,
4
4
  CONTEXT_ITEM_CATEGORY_FILE,
5
+ CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
5
6
  } from './constants';
6
7
 
7
8
  export const MOCK_CATEGORIES = [
8
9
  { label: 'Files', value: CONTEXT_ITEM_CATEGORY_FILE, icon: 'document' },
10
+ { label: 'Local Git', value: CONTEXT_ITEM_CATEGORY_LOCAL_GIT, icon: 'git' },
9
11
  { label: 'Issues', value: CONTEXT_ITEM_CATEGORY_ISSUE, icon: 'issues' },
10
12
  { label: 'Merge Requests', value: CONTEXT_ITEM_CATEGORY_MERGE_REQUEST, icon: 'merge-request' },
11
13
  ];
@@ -126,8 +128,69 @@ const mockMergeRequests = [
126
128
  MOCK_CONTEXT_ITEM_MERGE_REQUEST_DISABLED,
127
129
  ];
128
130
 
131
+ export const MOCK_CONTEXT_ITEM_GIT_DIFF = {
132
+ id: '6d88b466-0c38-48d6-b271-deda47f97cee',
133
+ category: CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
134
+ metadata: {
135
+ enabled: true,
136
+ title: 'Current working changes',
137
+ commitId: 'main',
138
+ repositoryName: 'example/garden',
139
+ gitType: 'diff',
140
+ },
141
+ };
142
+ export const MOCK_CONTEXT_ITEM_GIT_COMMIT = {
143
+ id: '20f8caf94cb8f5e5f9dbd1a9ac32702321de201b',
144
+ category: CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
145
+ metadata: {
146
+ enabled: true,
147
+ title: 'fix: some bug fix commit',
148
+ commitId: '20f8caf94cb8f5e5f9dbd1a9ac32702321de201b',
149
+ repositoryName: 'example/garden',
150
+ gitType: 'commit',
151
+ },
152
+ };
153
+
154
+ const mockGitItems = [
155
+ MOCK_CONTEXT_ITEM_GIT_DIFF,
156
+ {
157
+ id: 'diff-example/garden',
158
+ category: CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
159
+ metadata: {
160
+ enabled: true,
161
+ title: 'Diff from default branch',
162
+ commitId: 'main',
163
+ repositoryName: 'example/garden',
164
+ gitType: 'diff',
165
+ },
166
+ },
167
+ MOCK_CONTEXT_ITEM_GIT_COMMIT,
168
+ {
169
+ id: '32b9b56b6de75b32909986755fbc470f20fb6fc0',
170
+ category: CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
171
+ metadata: {
172
+ enabled: true,
173
+ title: 'feat: add cool new feature',
174
+ commitId: '32b9b56b6de75b32909986755fbc470f20fb6fc0',
175
+ repositoryName: 'example/garden',
176
+ gitType: 'commit',
177
+ },
178
+ },
179
+ {
180
+ id: '775d7efdce25c1af48c55abcadbefd1f181b92ce',
181
+ category: CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
182
+ metadata: {
183
+ enabled: true,
184
+ title: 'fix: stop foo from bar when baz because customers ding',
185
+ commitId: '775d7efdce25c1af48c55abcadbefd1f181b92ce',
186
+ repositoryName: 'example/garden',
187
+ gitType: 'commit',
188
+ },
189
+ },
190
+ ];
191
+
129
192
  export const getMockContextItems = () => {
130
- const allItems = [...mockFiles, ...mockIssues, ...mockMergeRequests];
193
+ const allItems = [...mockFiles, ...mockGitItems, ...mockIssues, ...mockMergeRequests];
131
194
 
132
195
  // put disabled items in the back
133
196
  const disabledItems = allItems.filter((item) => !item.metadata.enabled);
@@ -1,3 +1,13 @@
1
+ import { translate } from '../../../../../../utils/i18n';
2
+ import {
3
+ CONTEXT_ITEM_CATEGORY_FILE,
4
+ CONTEXT_ITEM_CATEGORY_ISSUE,
5
+ CONTEXT_ITEM_CATEGORY_LOCAL_GIT,
6
+ CONTEXT_ITEM_CATEGORY_MERGE_REQUEST,
7
+ CONTEXT_ITEM_LOCAL_GIT_COMMIT,
8
+ CONTEXT_ITEM_LOCAL_GIT_DIFF,
9
+ } from './constants';
10
+
1
11
  export function categoryValidator(category) {
2
12
  return Boolean(category && category.value && category.label && category.icon);
3
13
  }
@@ -42,6 +52,71 @@ export function formatMergeRequestId(iid) {
42
52
  return `!${iid}`;
43
53
  }
44
54
 
55
+ function getGitItemIcon(contextItem) {
56
+ const iconMap = {
57
+ [CONTEXT_ITEM_LOCAL_GIT_COMMIT]: 'commit',
58
+ [CONTEXT_ITEM_LOCAL_GIT_DIFF]: 'comparison',
59
+ };
60
+ const { gitType } = contextItem.metadata;
61
+ return iconMap[gitType] || null;
62
+ }
63
+
64
+ /**
65
+ * Gets the icon name for a given contextItem.
66
+ */
67
+ export function getContextItemIcon(contextItem, category = { icon: null }) {
68
+ if (contextItem.category === CONTEXT_ITEM_CATEGORY_LOCAL_GIT) {
69
+ const gitIcon = getGitItemIcon(contextItem);
70
+ if (gitIcon) return gitIcon;
71
+ }
72
+
73
+ if (category.icon) {
74
+ return category.icon;
75
+ }
76
+
77
+ const iconMap = {
78
+ [CONTEXT_ITEM_CATEGORY_FILE]: 'document',
79
+ [CONTEXT_ITEM_CATEGORY_ISSUE]: 'issues',
80
+ [CONTEXT_ITEM_CATEGORY_MERGE_REQUEST]: 'merge-request',
81
+ [CONTEXT_ITEM_CATEGORY_LOCAL_GIT]: 'git',
82
+ };
83
+
84
+ return iconMap[contextItem.category] || null;
85
+ }
86
+
87
+ export function getContextItemTypeLabel(contextItem) {
88
+ if (contextItem.category === CONTEXT_ITEM_CATEGORY_LOCAL_GIT) {
89
+ switch (contextItem.metadata.gitType) {
90
+ case CONTEXT_ITEM_LOCAL_GIT_DIFF:
91
+ return translate('DuoChatContextItemTypeLabel.GitDiff', 'Local Git repository diff');
92
+ case CONTEXT_ITEM_LOCAL_GIT_COMMIT:
93
+ return translate('DuoChatContextItemTypeLabel.GitCommit', 'Local Git repository commit');
94
+ default:
95
+ return translate('DuoChatContextItemTypeLabel.GitDefault', 'Local Git repository');
96
+ }
97
+ }
98
+
99
+ switch (contextItem.category) {
100
+ case CONTEXT_ITEM_CATEGORY_MERGE_REQUEST:
101
+ return translate('DuoChatContextItemTypeLabel.MergeRequest', 'Merge request');
102
+ case CONTEXT_ITEM_CATEGORY_ISSUE:
103
+ return translate('DuoChatContextItemTypeLabel.Issue', 'Issue');
104
+ case CONTEXT_ITEM_CATEGORY_FILE:
105
+ return translate('DuoChatContextItemTypeLabel.File', 'Project file');
106
+ default:
107
+ return '';
108
+ }
109
+ }
110
+
111
+ /**
112
+ * Gets the secondary text line for a git context item, showing repository and commit ID
113
+ */
114
+ export function formatGitItemSecondaryText(contextItem) {
115
+ const { repositoryName, commitId } = contextItem.metadata;
116
+ const separator = commitId ? ' - ' : '';
117
+ return `${repositoryName}${separator}${commitId || ''}`;
118
+ }
119
+
45
120
  /**
46
121
  * Calculates a new index within a range. If the new index would fall out of bounds, wraps to the start/end of the range.
47
122
  * @param {number} currentIndex - The starting index.
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .text-enter {
10
- @include gl-opacity-0;
10
+ @apply gl-opacity-0;
11
11
  }
12
12
 
13
13
  .text-enter-active {
@@ -15,11 +15,11 @@
15
15
  }
16
16
 
17
17
  .text-enter-to {
18
- @include gl-opacity-10;
18
+ @apply gl-opacity-10;
19
19
  }
20
20
 
21
21
  .text-leave {
22
- @include gl-opacity-10;
22
+ @apply gl-opacity-10;
23
23
  }
24
24
 
25
25
  .text-leave-active {
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .text-leave-to {
30
- @include gl-opacity-0;
30
+ @apply gl-opacity-0;
31
31
  }
32
32
 
33
33
  &__dot {
@@ -26,7 +26,7 @@
26
26
  insert-code-snippet {
27
27
  position: absolute;
28
28
  @apply gl-transition-all;
29
- @include gl-opacity-0;
29
+ @apply gl-opacity-0;
30
30
  right: $gl-spacing-scale-3;
31
31
  top: $gl-spacing-scale-3;
32
32
  }
@@ -40,7 +40,7 @@
40
40
  copy-code:focus-within,
41
41
  insert-code-snippet,
42
42
  insert-code-snippet:focus-within {
43
- @include gl-opacity-10;
43
+ @apply gl-opacity-10;
44
44
  }
45
45
  }
46
46
 
@@ -1,7 +1,7 @@
1
1
  $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10);
2
2
 
3
3
  .duo-chat {
4
- @include gl-z-index-999;
4
+ z-index: 999;
5
5
 
6
6
  .message-enter-active,
7
7
  .message-leave-active {
@@ -10,7 +10,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
10
10
 
11
11
  .message-enter,
12
12
  .message-leave-to {
13
- @include gl-opacity-0;
13
+ @apply gl-opacity-0;
14
14
  transform: translateY(10px);
15
15
  }
16
16
 
@@ -42,7 +42,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
42
42
  @apply gl-h-full;
43
43
  @apply gl-w-full;
44
44
  @apply gl-overflow-y-auto;
45
- @include gl-shadow-lg;
45
+ @apply gl-shadow-lg;
46
46
  @apply gl-text-base;
47
47
  @apply gl-leading-normal;
48
48
  @apply gl-flex;
@@ -86,7 +86,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
86
86
  content: '';
87
87
  left: 0;
88
88
  position: absolute;
89
- @include gl-pointer-events-none;
89
+ @apply gl-pointer-events-none;
90
90
  @apply gl-w-full;
91
91
  @apply gl-h-7;
92
92
  }
@@ -1,7 +1,7 @@
1
1
  .gl-clear-icon-button {
2
2
  @apply gl-bg-transparent;
3
3
  @apply gl-border-none;
4
- @include gl-cursor-pointer;
4
+ @apply gl-cursor-pointer;
5
5
  @apply gl-text-gray-500;
6
6
 
7
7
  &:focus {
@@ -2,7 +2,7 @@
2
2
  #{$selector} {
3
3
  @apply gl-text-base;
4
4
  @apply gl-text-gray-900;
5
- @include gl-font-regular;
5
+ @apply gl-font-regular;
6
6
  @apply gl-font-normal;
7
7
  @apply gl-leading-normal;
8
8
  }
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  .monospace {
92
- @include gl-font-monospace;
92
+ @apply gl-font-monospace;
93
93
  }
94
94
 
95
95
  blockquote {
@@ -36,13 +36,16 @@
36
36
  "overlap": {
37
37
  "$value": {
38
38
  "default": "{color.neutral.0}",
39
- "dark": "{color.neutral.800}"
39
+ "dark": "{color.neutral.900}"
40
40
  },
41
41
  "$type": "color",
42
42
  "$description": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
43
43
  },
44
44
  "section": {
45
- "$value": "{background.color.overlap}",
45
+ "$value": {
46
+ "default": "{color.neutral.0}",
47
+ "dark": "{color.neutral.800}"
48
+ },
46
49
  "$type": "color",
47
50
  "$description": "Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes."
48
51
  },
@@ -730,6 +730,7 @@
730
730
  --gl-border-color-subtle: var(--gl-color-neutral-50); /* Used for a subtle border in combination with the default background. */
731
731
  --gl-border-color-default: var(--gl-color-neutral-100); /* Used for the default border color. */
732
732
  --gl-background-color-overlay: var(--gl-color-alpha-dark-24); /* Used for an overlay that covers other content. */
733
+ --gl-background-color-section: var(--gl-color-neutral-0); /* Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes. */
733
734
  --gl-background-color-overlap: var(--gl-color-neutral-0); /* Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content. */
734
735
  --gl-background-color-disabled: var(--gl-color-neutral-10); /* Used to identify a disabled section. */
735
736
  --gl-background-color-strong: var(--gl-color-neutral-50); /* Used to make the background easily stand out from the default. */
@@ -846,7 +847,6 @@
846
847
  --gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /* Used for the background color of a neutral alert. */
847
848
  --gl-alert-neutral-title-color: var(--gl-text-color-heading); /* Used for the title color of a neutral alert. */
848
849
  --gl-border-color-section: var(--gl-border-color-default); /* Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
849
- --gl-background-color-section: var(--gl-background-color-overlap); /* Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes. */
850
850
  --gl-action-strong-neutral-border-color-hover: var(--gl-action-strong-neutral-border-color-default); /* Used for the border of a strong neutral action in the hover state. */
851
851
  --gl-action-strong-neutral-foreground-color-hover: var(--gl-action-strong-neutral-foreground-color-default); /* Used for the foreground of a strong neutral action in the hover state. */
852
852
  --gl-action-strong-neutral-background-color-focus: var(--gl-action-strong-neutral-background-color-hover); /* Used for the background of a strong neutral action in the focus state. */
@@ -730,7 +730,8 @@
730
730
  --gl-border-color-subtle: var(--gl-color-neutral-900); /* Used for a subtle border in combination with the default background. */
731
731
  --gl-border-color-default: var(--gl-color-neutral-800); /* Used for the default border color. */
732
732
  --gl-background-color-overlay: rgba(0,0,0,0.64); /* Used for an overlay that covers other content. */
733
- --gl-background-color-overlap: var(--gl-color-neutral-800); /* Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content. */
733
+ --gl-background-color-section: var(--gl-color-neutral-800); /* Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes. */
734
+ --gl-background-color-overlap: var(--gl-color-neutral-900); /* Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content. */
734
735
  --gl-background-color-disabled: var(--gl-color-neutral-900); /* Used to identify a disabled section. */
735
736
  --gl-background-color-strong: var(--gl-color-neutral-800); /* Used to make the background easily stand out from the default. */
736
737
  --gl-background-color-subtle: var(--gl-color-neutral-900); /* Used to slightly differentiate the background from the default. */
@@ -846,7 +847,6 @@
846
847
  --gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /* Used for the background color of a neutral alert. */
847
848
  --gl-alert-neutral-title-color: var(--gl-text-color-heading); /* Used for the title color of a neutral alert. */
848
849
  --gl-border-color-section: var(--gl-background-color-default); /* Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
849
- --gl-background-color-section: var(--gl-background-color-overlap); /* Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes. */
850
850
  --gl-action-strong-neutral-border-color-hover: var(--gl-action-strong-neutral-border-color-default); /* Used for the border of a strong neutral action in the hover state. */
851
851
  --gl-action-strong-neutral-foreground-color-hover: var(--gl-action-strong-neutral-foreground-color-default); /* Used for the foreground of a strong neutral action in the hover state. */
852
852
  --gl-action-strong-neutral-background-color-focus: var(--gl-action-strong-neutral-background-color-hover); /* Used for the background of a strong neutral action in the focus state. */
@@ -82,7 +82,7 @@ export const GL_BACKGROUND_COLOR_DEFAULT = '#18171d'; // Used for the default ba
82
82
  export const GL_BACKGROUND_COLOR_SUBTLE = '#28272d'; // Used to slightly differentiate the background from the default.
83
83
  export const GL_BACKGROUND_COLOR_STRONG = '#3a383f'; // Used to make the background easily stand out from the default.
84
84
  export const GL_BACKGROUND_COLOR_DISABLED = '#28272d'; // Used to identify a disabled section.
85
- export const GL_BACKGROUND_COLOR_OVERLAP = '#3a383f'; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
85
+ export const GL_BACKGROUND_COLOR_OVERLAP = '#28272d'; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
86
86
  export const GL_BACKGROUND_COLOR_SECTION = '#3a383f'; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
87
87
  export const GL_BACKGROUND_COLOR_OVERLAY = 'rgba(0,0,0,0.64)'; // Used for an overlay that covers other content.
88
88
  export const GL_BORDER_COLOR_DEFAULT = '#3a383f'; // Used for the default border color.
@@ -1869,7 +1869,7 @@
1869
1869
  ]
1870
1870
  },
1871
1871
  "overlap": {
1872
- "value": "#3a383f",
1872
+ "value": "#28272d",
1873
1873
  "$type": "color",
1874
1874
  "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.",
1875
1875
  "filePath": "src/tokens/background.tokens.json",
@@ -1877,7 +1877,7 @@
1877
1877
  "original": {
1878
1878
  "value": {
1879
1879
  "default": "{color.neutral.0}",
1880
- "dark": "{color.neutral.800}"
1880
+ "dark": "{color.neutral.900}"
1881
1881
  },
1882
1882
  "$type": "color",
1883
1883
  "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
@@ -1897,7 +1897,10 @@
1897
1897
  "filePath": "src/tokens/background.tokens.json",
1898
1898
  "isSource": true,
1899
1899
  "original": {
1900
- "value": "{background.color.overlap}",
1900
+ "value": {
1901
+ "default": "{color.neutral.0}",
1902
+ "dark": "{color.neutral.800}"
1903
+ },
1901
1904
  "$type": "color",
1902
1905
  "comment": "Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes."
1903
1906
  },
@@ -1877,7 +1877,7 @@
1877
1877
  "original": {
1878
1878
  "value": {
1879
1879
  "default": "{color.neutral.0}",
1880
- "dark": "{color.neutral.800}"
1880
+ "dark": "{color.neutral.900}"
1881
1881
  },
1882
1882
  "$type": "color",
1883
1883
  "comment": "Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content."
@@ -1897,7 +1897,10 @@
1897
1897
  "filePath": "src/tokens/background.tokens.json",
1898
1898
  "isSource": true,
1899
1899
  "original": {
1900
- "value": "{background.color.overlap}",
1900
+ "value": {
1901
+ "default": "{color.neutral.0}",
1902
+ "dark": "{color.neutral.800}"
1903
+ },
1901
1904
  "$type": "color",
1902
1905
  "comment": "Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes."
1903
1906
  },
@@ -728,7 +728,8 @@ $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border th
728
728
  $gl-border-color-subtle: $gl-color-neutral-900; // Used for a subtle border in combination with the default background.
729
729
  $gl-border-color-default: $gl-color-neutral-800; // Used for the default border color.
730
730
  $gl-background-color-overlay: rgba(0,0,0,0.64); // Used for an overlay that covers other content.
731
- $gl-background-color-overlap: $gl-color-neutral-800; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
731
+ $gl-background-color-section: $gl-color-neutral-800; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
732
+ $gl-background-color-overlap: $gl-color-neutral-900; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
732
733
  $gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
733
734
  $gl-background-color-strong: $gl-color-neutral-800; // Used to make the background easily stand out from the default.
734
735
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
@@ -844,7 +845,6 @@ $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of a
844
845
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
845
846
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
846
847
  $gl-border-color-section: $gl-background-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
847
- $gl-background-color-section: $gl-background-color-overlap; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
848
848
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
849
849
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
850
850
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
@@ -728,6 +728,7 @@ $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border th
728
728
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
729
729
  $gl-border-color-default: $gl-color-neutral-100; // Used for the default border color.
730
730
  $gl-background-color-overlay: $gl-color-alpha-dark-24; // Used for an overlay that covers other content.
731
+ $gl-background-color-section: $gl-color-neutral-0; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
731
732
  $gl-background-color-overlap: $gl-color-neutral-0; // Used for components, like tooltips and drawers, and content, like a sticky header, that overlap other content.
732
733
  $gl-background-color-disabled: $gl-color-neutral-10; // Used to identify a disabled section.
733
734
  $gl-background-color-strong: $gl-color-neutral-50; // Used to make the background easily stand out from the default.
@@ -844,7 +845,6 @@ $gl-alert-info-title-color: $gl-text-color-heading; // Used for the title color
844
845
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
845
846
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
846
847
  $gl-border-color-section: $gl-border-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
847
- $gl-background-color-section: $gl-background-color-overlap; // Used for containers, like a card header, that are visually distinct from the default page background only when necessary to maintain affordance and hierarchy in different modes.
848
848
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
849
849
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
850
850
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
@@ -220,7 +220,7 @@ const backgroundColors = {
220
220
  strong: 'var(--gl-background-color-strong, var(--gl-color-neutral-50, #ececef))',
221
221
  disabled: 'var(--gl-background-color-disabled, var(--gl-color-neutral-10, #fbfafd))',
222
222
  overlap: 'var(--gl-background-color-overlap, var(--gl-color-neutral-0, #fff))',
223
- section: 'var(--gl-background-color-section, var(--gl-background-color-overlap, #fff))',
223
+ section: 'var(--gl-background-color-section, var(--gl-color-neutral-0, #fff))',
224
224
  overlay:
225
225
  'var(--gl-background-color-overlay, var(--gl-color-alpha-dark-24, rgba(05, 05, 06, 0.24)))',
226
226
  };
package/translations.js CHANGED
@@ -3,9 +3,12 @@ export default {
3
3
  'ClearIconButton.title': 'Clear',
4
4
  'CloseButton.title': 'Close',
5
5
  'DuoChatContextItemPopover.DisabledReason': 'This item is disabled',
6
- 'DuoChatContextItemPopover.File': 'Project file',
7
- 'DuoChatContextItemPopover.Issue': 'Issue',
8
- 'DuoChatContextItemPopover.MergeRequest': 'Merge request',
6
+ 'DuoChatContextItemTypeLabel.File': 'Project file',
7
+ 'DuoChatContextItemTypeLabel.GitCommit': 'Local Git repository commit',
8
+ 'DuoChatContextItemTypeLabel.GitDefault': 'Local Git repository',
9
+ 'DuoChatContextItemTypeLabel.GitDiff': 'Local Git repository diff',
10
+ 'DuoChatContextItemTypeLabel.Issue': 'Issue',
11
+ 'DuoChatContextItemTypeLabel.MergeRequest': 'Merge request',
9
12
  'GlAlert.closeButtonTitle': 'Dismiss',
10
13
  'GlBanner.closeButtonTitle': 'Dismiss',
11
14
  'GlBreadcrumb.showMoreLabel': 'Show more breadcrumbs',