@gitlab/ui 95.5.1 → 96.0.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": "95.5.1",
3
+ "version": "96.0.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -54,10 +54,14 @@ $toggle-height: 2.5 * $grid-size;
54
54
  }
55
55
  }
56
56
 
57
+ .gl-description-label {
58
+ @apply gl-text-subtle;
59
+ }
60
+
57
61
  .gl-help-label {
58
62
  @apply gl-mt-3;
59
- @apply gl-text-gray-500;
60
63
  @apply gl-font-normal;
64
+ @apply gl-text-subtle;
61
65
  }
62
66
 
63
67
  .gl-toggle-label-inline {
@@ -78,6 +82,7 @@ $toggle-height: 2.5 * $grid-size;
78
82
 
79
83
  .gl-toggle-label {
80
84
  @apply gl-font-bold;
85
+ @apply gl-text-strong;
81
86
  }
82
87
 
83
88
  .gl-toggle {
@@ -86,7 +91,8 @@ $toggle-height: 2.5 * $grid-size;
86
91
  @apply gl-justify-center;
87
92
  @apply gl-border-0;
88
93
  @apply gl-cursor-pointer;
89
- @apply gl-bg-gray-600;
94
+ color: var(--gl-toggle-switch-icon-color-unchecked-default);
95
+ background-color: var(--gl-action-strong-neutral-background-color-default);
90
96
  position: relative;
91
97
  width: $toggle-width;
92
98
  height: $toggle-height;
@@ -102,11 +108,19 @@ $toggle-height: 2.5 * $grid-size;
102
108
  @apply gl-bg-transparent;
103
109
  }
104
110
 
105
- &:hover,
106
- &:active,
107
- &:focus,
108
- &:focus:active {
109
- @apply gl-bg-gray-700;
111
+ &:hover {
112
+ color: var(--gl-toggle-switch-icon-color-unchecked-hover);
113
+ background-color: var(--gl-action-strong-neutral-background-color-hover);
114
+ }
115
+
116
+ &:focus {
117
+ color: var(--gl-toggle-switch-icon-color-unchecked-focus);
118
+ background-color: var(--gl-action-strong-neutral-background-color-focus);
119
+ }
120
+
121
+ &:active {
122
+ color: var(--gl-toggle-switch-icon-color-unchecked-active);
123
+ background-color: var(--gl-action-strong-neutral-background-color-active);
110
124
  }
111
125
 
112
126
  &:active,
@@ -121,7 +135,6 @@ $toggle-height: 2.5 * $grid-size;
121
135
 
122
136
  .toggle-icon {
123
137
  @apply gl-rounded-full;
124
- @apply gl-bg-white;
125
138
  position: absolute;
126
139
  @apply gl-inline-flex;
127
140
  @apply gl-items-center;
@@ -130,30 +143,60 @@ $toggle-height: 2.5 * $grid-size;
130
143
  @apply gl-transition-all;
131
144
  @apply gl-justify-center;
132
145
  @apply gl-p-1;
146
+ background-color: var(--gl-action-strong-neutral-foreground-color-default);
147
+
148
+ &:hover {
149
+ background-color: var(--gl-action-strong-neutral-foreground-color-hover);
150
+ }
151
+
152
+ &:focus {
153
+ background-color: var(--gl-action-strong-neutral-foreground-color-focus);
154
+ }
155
+
156
+ &:active {
157
+ background-color: var(--gl-action-strong-neutral-foreground-color-active);
158
+ }
133
159
 
134
160
  > svg {
135
161
  @apply gl-w-4;
136
162
  @apply gl-h-4;
137
- @apply gl-fill-gray-600;
138
163
  @apply gl-align-baseline;
139
164
  }
140
165
  }
141
166
 
142
167
  &.is-checked {
143
- @apply gl-bg-blue-500;
168
+ color: var(--gl-toggle-switch-icon-color-checked-default);
169
+ background-color: var(--gl-action-strong-confirm-background-color-default);
144
170
 
145
- &:hover,
146
- &:active,
147
- &:focus,
148
- &:focus:active {
149
- @apply gl-bg-blue-600;
171
+ &:hover {
172
+ color: var(--gl-toggle-switch-icon-color-checked-hover);
173
+ background-color: var(--gl-action-strong-confirm-background-color-hover);
174
+ }
175
+
176
+ &:focus {
177
+ color: var(--gl-toggle-switch-icon-color-checked-focus);
178
+ background-color: var(--gl-action-strong-confirm-background-color-focus);
179
+ }
180
+
181
+ &:active {
182
+ color: var(--gl-toggle-switch-icon-color-checked-active);
183
+ background-color: var(--gl-action-strong-confirm-background-color-active);
150
184
  }
151
185
 
152
186
  .toggle-icon {
153
187
  transform: translateX($toggle-translate-width);
188
+ background-color: var(--gl-action-strong-confirm-foreground-color-default);
189
+
190
+ &:hover {
191
+ background-color: var(--gl-action-strong-confirm-foreground-color-hover);
192
+ }
193
+
194
+ &:focus {
195
+ background-color: var(--gl-action-strong-confirm-foreground-color-focus);
196
+ }
154
197
 
155
- > svg {
156
- @apply gl-fill-blue-500;
198
+ &:active {
199
+ background-color: var(--gl-action-strong-confirm-foreground-color-active);
157
200
  }
158
201
  }
159
202
  }
@@ -1,5 +1,4 @@
1
1
  export const CHAT_RESET_MESSAGE = '/reset';
2
- export const CHAT_CLEAN_MESSAGE = '/clean';
3
2
  export const CHAT_CLEAR_MESSAGE = '/clear';
4
3
  export const CHAT_INCLUDE_MESSAGE = '/include';
5
4
 
@@ -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: CHAT_CLEAN_MESSAGE,
157
+ name: CHAT_CLEAR_MESSAGE,
158
158
  shouldSubmit: true,
159
159
  description: 'Delete all messages in this conversation.',
160
160
  },