@gitlab/ui 94.6.0 → 94.7.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 (96) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/base/breadcrumb/breadcrumb.js +2 -1
  3. package/dist/components/base/dropdown/dropdown.js +1 -1
  4. package/dist/components/base/dropdown/dropdown_item.js +1 -1
  5. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.js +3 -3
  6. package/dist/components/base/new_dropdowns/listbox/listbox.js +4 -4
  7. package/dist/components/base/new_dropdowns/listbox/listbox_group.js +1 -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 +20 -1
  13. package/dist/tokens/build/js/tokens.js +20 -1
  14. package/dist/tokens/css/tokens.css +19 -0
  15. package/dist/tokens/css/tokens.dark.css +19 -0
  16. package/dist/tokens/js/tokens.dark.js +19 -0
  17. package/dist/tokens/js/tokens.js +19 -0
  18. package/dist/tokens/json/tokens.dark.json +457 -0
  19. package/dist/tokens/json/tokens.json +457 -0
  20. package/dist/tokens/scss/_tokens.dark.scss +19 -0
  21. package/dist/tokens/scss/_tokens.scss +19 -0
  22. package/dist/tokens/scss/_tokens_custom_properties.scss +19 -0
  23. package/dist/tokens/tailwind/tokens.cjs +2 -0
  24. package/dist/vendor/bootstrap-vue/src/constants/components.js +1 -4
  25. package/dist/vendor/bootstrap-vue/src/constants/regex.js +1 -6
  26. package/dist/vendor/bootstrap-vue/src/index.js +0 -4
  27. package/dist/vendor/bootstrap-vue/src/utils/string.js +2 -8
  28. package/package.json +1 -1
  29. package/src/components/base/breadcrumb/breadcrumb.vue +2 -1
  30. package/src/components/base/dropdown/dropdown.scss +6 -9
  31. package/src/components/base/dropdown/dropdown.vue +1 -1
  32. package/src/components/base/dropdown/dropdown_divider.scss +1 -1
  33. package/src/components/base/dropdown/dropdown_item.scss +8 -12
  34. package/src/components/base/dropdown/dropdown_item.vue +1 -1
  35. package/src/components/base/dropdown/dropdown_section_header.scss +1 -1
  36. package/src/components/base/filtered_search/filtered_search_suggestion.scss +2 -2
  37. package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +2 -1
  38. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.scss +1 -1
  39. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.vue +3 -3
  40. package/src/components/base/new_dropdowns/dropdown.scss +5 -5
  41. package/src/components/base/new_dropdowns/dropdown_item.scss +29 -12
  42. package/src/components/base/new_dropdowns/listbox/listbox.scss +2 -2
  43. package/src/components/base/new_dropdowns/listbox/listbox.vue +5 -5
  44. package/src/components/base/new_dropdowns/listbox/listbox_group.vue +1 -1
  45. package/src/tokens/build/css/tokens.css +19 -0
  46. package/src/tokens/build/css/tokens.dark.css +19 -0
  47. package/src/tokens/build/js/tokens.dark.js +19 -0
  48. package/src/tokens/build/js/tokens.js +19 -0
  49. package/src/tokens/build/json/tokens.dark.json +457 -0
  50. package/src/tokens/build/json/tokens.json +457 -0
  51. package/src/tokens/build/scss/_tokens.dark.scss +19 -0
  52. package/src/tokens/build/scss/_tokens.scss +19 -0
  53. package/src/tokens/build/scss/_tokens_custom_properties.scss +19 -0
  54. package/src/tokens/build/tailwind/tokens.cjs +2 -0
  55. package/src/tokens/contextual/dropdown.tokens.json +148 -0
  56. package/src/vendor/bootstrap-vue/nuxt/index.js +1 -13
  57. package/src/vendor/bootstrap-vue/nuxt/plugin.template.js +0 -6
  58. package/src/vendor/bootstrap-vue/package.json +1 -4
  59. package/src/vendor/bootstrap-vue/src/_variables.scss +0 -14
  60. package/src/vendor/bootstrap-vue/src/components/breadcrumb/README.md +0 -1
  61. package/src/vendor/bootstrap-vue/src/components/input-group/README.md +1 -1
  62. package/src/vendor/bootstrap-vue/src/components/navbar/README.md +1 -2
  63. package/src/vendor/bootstrap-vue/src/constants/components.js +0 -3
  64. package/src/vendor/bootstrap-vue/src/constants/regex.js +0 -5
  65. package/src/vendor/bootstrap-vue/src/index.d.ts +0 -3
  66. package/src/vendor/bootstrap-vue/src/index.js +0 -9
  67. package/src/vendor/bootstrap-vue/src/index.scss +0 -3
  68. package/src/vendor/bootstrap-vue/src/utils/string.js +1 -8
  69. package/src/vendor/bootstrap-vue/src/utils/string.spec.js +1 -11
  70. package/dist/vendor/bootstrap-vue/src/browser-icons.js +0 -8
  71. package/dist/vendor/bootstrap-vue/src/icons/helpers/icon-base.js +0 -139
  72. package/dist/vendor/bootstrap-vue/src/icons/helpers/make-icon.js +0 -56
  73. package/dist/vendor/bootstrap-vue/src/icons/icon.js +0 -56
  74. package/dist/vendor/bootstrap-vue/src/icons/icons.js +0 -1377
  75. package/dist/vendor/bootstrap-vue/src/icons/iconstack.js +0 -31
  76. package/dist/vendor/bootstrap-vue/src/icons/index.js +0 -4
  77. package/dist/vendor/bootstrap-vue/src/icons/plugin.js +0 -1410
  78. package/dist/vendor/bootstrap-vue/src/icons-only.js +0 -10
  79. package/src/vendor/bootstrap-vue/src/browser-icons.js +0 -9
  80. package/src/vendor/bootstrap-vue/src/icons/README.md +0 -874
  81. package/src/vendor/bootstrap-vue/src/icons/_icons.scss +0 -156
  82. package/src/vendor/bootstrap-vue/src/icons/helpers/icon-base.js +0 -134
  83. package/src/vendor/bootstrap-vue/src/icons/helpers/make-icon.js +0 -48
  84. package/src/vendor/bootstrap-vue/src/icons/icon.js +0 -54
  85. package/src/vendor/bootstrap-vue/src/icons/icons.d.ts +0 -2757
  86. package/src/vendor/bootstrap-vue/src/icons/icons.js +0 -8241
  87. package/src/vendor/bootstrap-vue/src/icons/icons.spec.js +0 -522
  88. package/src/vendor/bootstrap-vue/src/icons/iconstack.js +0 -31
  89. package/src/vendor/bootstrap-vue/src/icons/iconstack.spec.js +0 -161
  90. package/src/vendor/bootstrap-vue/src/icons/index.d.ts +0 -18
  91. package/src/vendor/bootstrap-vue/src/icons/index.js +0 -16
  92. package/src/vendor/bootstrap-vue/src/icons/index.scss +0 -1
  93. package/src/vendor/bootstrap-vue/src/icons/package.json +0 -72782
  94. package/src/vendor/bootstrap-vue/src/icons/plugin.js +0 -4159
  95. package/src/vendor/bootstrap-vue/src/icons-only.js +0 -33
  96. package/src/vendor/bootstrap-vue/src/icons.scss +0 -8
@@ -1,4 +1,4 @@
1
- import { RX_HYPHENATE, RX_UN_KEBAB, RX_UNDERSCORE, RX_LOWER_UPPER, RX_START_SPACE_WORD, RX_REGEXP_REPLACE, RX_TRIM_LEFT, RX_TRIM_RIGHT } from '../constants/regex';
1
+ import { RX_HYPHENATE, RX_UNDERSCORE, RX_LOWER_UPPER, RX_START_SPACE_WORD, RX_REGEXP_REPLACE, RX_TRIM_LEFT, RX_TRIM_RIGHT } from '../constants/regex';
2
2
  import { isString, isUndefinedOrNull, isArray, isPlainObject } from './inspect';
3
3
 
4
4
  // String utilities
@@ -10,12 +10,6 @@ const kebabCase = str => {
10
10
  return str.replace(RX_HYPHENATE, '-$1').toLowerCase();
11
11
  };
12
12
 
13
- // Converts a kebab-case or camelCase string to PascalCase
14
- const pascalCase = str => {
15
- str = kebabCase(str).replace(RX_UN_KEBAB, (_, c) => c ? c.toUpperCase() : '');
16
- return str.charAt(0).toUpperCase() + str.slice(1);
17
- };
18
-
19
13
  // Converts a string, including strings in camelCase or snake_case, into Start Case
20
14
  // It keeps original single quote and hyphen in the word
21
15
  // https://github.com/UrbanCompass/to-start-case
@@ -50,4 +44,4 @@ const trim = str => toString(str).trim();
50
44
  // Lower case a string
51
45
  const lowerCase = str => toString(str).toLowerCase();
52
46
 
53
- export { escapeRegExp, kebabCase, lowerCase, pascalCase, startCase, toString, trim, trimLeft, trimRight, upperFirst };
47
+ export { escapeRegExp, kebabCase, lowerCase, startCase, toString, trim, trimLeft, trimRight, upperFirst };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "94.6.0",
3
+ "version": "94.7.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -121,8 +121,9 @@ export default {
121
121
  this.overflowingItems = [];
122
122
  },
123
123
  async measureAndMakeBreadcrumbsFit() {
124
- this.resizeDone = false;
125
124
  this.resetItems();
125
+ if (!this.autoResize) return;
126
+ this.resizeDone = false;
126
127
 
127
128
  // Wait for DOM update so all items get rendered and can be measured.
128
129
  await this.$nextTick();
@@ -1,8 +1,8 @@
1
1
  .gl-dropdown {
2
2
  .dropdown-menu {
3
- @apply gl-border-1 gl-border-gray-200;
3
+ @apply gl-border-1 gl-border-dropdown;
4
4
  @apply gl-rounded-base;
5
- @apply gl-bg-white;
5
+ @apply gl-bg-dropdown;
6
6
  @apply gl-mt-2;
7
7
  @apply gl-mb-2;
8
8
  @apply gl-p-0;
@@ -38,9 +38,10 @@
38
38
  }
39
39
 
40
40
  .gl-dropdown-header-top {
41
- @apply gl-border-1 gl-border-b-solid gl-border-gray-200;
41
+ @apply gl-border-1 gl-border-b-solid gl-border-dropdown;
42
42
  @apply gl-flex;
43
43
  @apply gl-text-base;
44
+ @apply gl-text-heading;
44
45
  @apply gl-font-bold;
45
46
  @apply gl-justify-center;
46
47
  @apply gl-leading-normal;
@@ -51,11 +52,11 @@
51
52
  }
52
53
 
53
54
  .gl-dropdown-header {
54
- @apply gl-border-b-1 gl-border-b-solid gl-border-b-gray-200;
55
+ @apply gl-border-b-1 gl-border-b-solid gl-border-b-dropdown;
55
56
  }
56
57
 
57
58
  .gl-dropdown-footer {
58
- @apply gl-border-t-1 gl-border-t-solid gl-border-t-gray-200;
59
+ @apply gl-border-t-1 gl-border-t-solid gl-border-t-dropdown;
59
60
  @apply gl-py-3;
60
61
  }
61
62
 
@@ -95,10 +96,6 @@
95
96
  @include mask-chevron-down;
96
97
  }
97
98
 
98
- &.btn-default:not(:disabled)::after {
99
- @apply gl-border-gray-500;
100
- }
101
-
102
99
  &.btn-confirm,
103
100
  &.btn-info,
104
101
  &.btn-success,
@@ -279,7 +279,7 @@ export default {
279
279
  class="gl-justify-content-flex-start gl-flex gl-grow"
280
280
  :class="highlightedItemsTitleClass"
281
281
  >
282
- <span class="gl-font-bold" data-testid="highlighted-items-title">{{
282
+ <span class="gl-font-bold gl-text-strong" data-testid="highlighted-items-title">{{
283
283
  highlightedItemsTitle
284
284
  }}</span>
285
285
  </div>
@@ -4,7 +4,7 @@
4
4
  @apply gl-my-2;
5
5
  @apply gl-mx-0;
6
6
  @apply gl-p-0;
7
- @apply gl-border-t-1 gl-border-t-solid gl-border-t-gray-200;
7
+ @apply gl-border-t-1 gl-border-t-solid gl-border-t-dropdown;
8
8
  }
9
9
 
10
10
  /* Styling when the component is used on its own */
@@ -11,7 +11,7 @@
11
11
  position: relative;
12
12
  @apply gl-rounded-none;
13
13
  @apply gl-shadow-none;
14
- @apply gl-text-gray-900;
14
+ color: var(--gl-dropdown-option-text-color-default);
15
15
  @apply gl-text-left;
16
16
  @apply gl-w-full;
17
17
  @apply gl-whitespace-normal;
@@ -30,7 +30,7 @@
30
30
  .gl-dropdown-item-check-icon {
31
31
  @apply gl-shrink-0;
32
32
  @apply gl-mr-3;
33
- @apply gl-text-gray-700;
33
+ color: var(--gl-dropdown-option-indicator-color-selected-default);
34
34
  }
35
35
 
36
36
  .gl-dropdown-item-icon {
@@ -44,7 +44,7 @@
44
44
 
45
45
  .gl-dropdown-item-text-secondary {
46
46
  @apply gl-m-0;
47
- @apply gl-text-gray-700;
47
+ @apply gl-text-subtle;
48
48
  }
49
49
 
50
50
  .gl-dropdown-item-text-wrapper {
@@ -56,7 +56,7 @@
56
56
 
57
57
  // make sure the text color is not overridden
58
58
  &.text-danger {
59
- @apply gl-text-red-500;
59
+ @apply gl-text-danger;
60
60
  }
61
61
 
62
62
  &.disable-hover {
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  &:disabled {
67
- @apply gl-text-gray-500;
67
+ @apply gl-text-disabled;
68
68
 
69
69
  .gl-new-dropdown-item-check-icon {
70
70
  @apply gl-text-inherit;
@@ -83,17 +83,13 @@
83
83
  &:active,
84
84
  &:focus,
85
85
  &.is-focused {
86
- @apply gl-bg-gray-50;
86
+ background-color: var(--gl-dropdown-option-background-color-unselected-hover);
87
87
  @apply gl-no-underline;
88
- @apply gl-text-gray-900;
88
+ color: var(--gl-dropdown-option-text-color-default);
89
89
 
90
90
  // make sure the text color is not overridden
91
91
  &.text-danger {
92
- @apply gl-text-red-500;
93
- }
94
-
95
- .avatar {
96
- @apply gl-border-white;
92
+ @apply gl-text-danger;
97
93
  }
98
94
  }
99
95
 
@@ -68,7 +68,7 @@ export default {
68
68
  return href || to ? BDropdownItem : BDropdownItemButton;
69
69
  },
70
70
  iconColorCss() {
71
- return variantCssColorMap[this.iconColor] || 'gl-text-gray-700';
71
+ return variantCssColorMap[this.iconColor] || 'gl-fill-icon-default';
72
72
  },
73
73
  shouldShowCheckIcon() {
74
74
  return this.isChecked || this.isCheckItem;
@@ -1,6 +1,6 @@
1
1
  @mixin gl-tmp-dropdown-section-header-style {
2
2
  @apply gl-text-base;
3
- @apply gl-text-gray-900;
3
+ @apply gl-text-heading;
4
4
  @apply gl-leading-normal;
5
5
  @apply gl-text-left;
6
6
  @apply gl-font-bold;
@@ -3,9 +3,9 @@
3
3
  }
4
4
 
5
5
  .gl-filtered-search-suggestion-active {
6
- @apply gl-bg-gray-100;
6
+ background-color: var(--gl-dropdown-option-background-color-selected-default);
7
7
  @apply gl-no-underline;
8
- @apply gl-text-gray-900;
8
+ color: var(--gl-dropdown-option-text-color-default);
9
9
  @apply gl-outline-none;
10
10
  @include gl-focus($inset: true);
11
11
  }
@@ -5,7 +5,8 @@
5
5
  @apply gl-block;
6
6
  width: $gl-dropdown-width;
7
7
  @apply gl-p-2;
8
- @apply gl-border-gray-200;
8
+ @apply gl-bg-dropdown;
9
+ @apply gl-border-dropdown;
9
10
  @apply gl-rounded-lg;
10
11
  @apply gl-shadow-md;
11
12
  }
@@ -7,7 +7,7 @@
7
7
  .gl-new-dropdown-item-content {
8
8
  &:disabled,
9
9
  &[disabled] {
10
- @apply gl-text-gray-500;
10
+ color: var(--gl-dropdown-option-text-color-disabled);
11
11
  cursor: not-allowed;
12
12
  background: none;
13
13
  text-decoration: none;
@@ -8,8 +8,8 @@ import {
8
8
  } from './constants';
9
9
 
10
10
  export const BORDER_CLASSES = {
11
- [borderPositions.top]: 'gl-border-t gl-border-t-gray-200 gl-pt-2 gl-mt-2',
12
- [borderPositions.bottom]: 'gl-border-b gl-border-b-gray-200 gl-pb-2 gl-mb-2',
11
+ [borderPositions.top]: 'gl-border-t gl-border-t-dropdown gl-pt-2 gl-mt-2',
12
+ [borderPositions.bottom]: 'gl-border-b gl-border-b-dropdown gl-pb-2 gl-mb-2',
13
13
  };
14
14
 
15
15
  export default {
@@ -81,7 +81,7 @@ export default {
81
81
  v-if="showHeader"
82
82
  :id="nameId"
83
83
  aria-hidden="true"
84
- class="gl-py-2 gl-pl-4 gl-text-sm gl-font-bold"
84
+ class="gl-py-2 gl-pl-4 gl-text-sm gl-font-bold gl-text-strong"
85
85
  >
86
86
  <slot name="group-label">{{ group.name }}</slot>
87
87
  </div>
@@ -14,8 +14,8 @@
14
14
 
15
15
  .gl-new-dropdown-panel {
16
16
  @apply gl-hidden;
17
- @apply gl-bg-white;
18
- @apply gl-border-1 gl-border-solid gl-border-gray-200;
17
+ @apply gl-bg-dropdown;
18
+ @apply gl-border-1 gl-border-solid gl-border-dropdown;
19
19
  @apply gl-rounded-lg;
20
20
  @apply gl-shadow-md;
21
21
  top: 0;
@@ -154,12 +154,12 @@
154
154
  &.top-scrim-light {
155
155
  height: 2.25rem;
156
156
  border-radius: 0.375rem 0.375rem 0 0;
157
- background: linear-gradient(180deg, $white 0%, $transparent-rgba);
157
+ background: linear-gradient(180deg, var(--gl-dropdown-background-color) 0%, var(--gl-color-alpha-0));
158
158
  }
159
159
 
160
160
  &.top-scrim-dark {
161
161
  height: 0.25rem;
162
- background: linear-gradient(180deg, $t-gray-a-16 0%, $transparent-rgba 100%);
162
+ background: linear-gradient(180deg, var(--gl-shadow-color-default) 0%, var(--gl-color-alpha-0) 100%);
163
163
  }
164
164
  }
165
165
  }
@@ -173,7 +173,7 @@
173
173
  position: relative;
174
174
  top: calc(-2.25rem + #{$dropdown-content-padding});
175
175
  border-radius: 0 0 0.375rem 0.375rem;
176
- background: linear-gradient(180deg, $transparent-rgba 0%, $white);
176
+ background: linear-gradient(180deg, var(--gl-color-alpha-0) 0%, var(--gl-dropdown-background-color));
177
177
  }
178
178
  }
179
179
 
@@ -16,44 +16,61 @@
16
16
  @apply gl-mb-0;
17
17
  }
18
18
 
19
- &:hover,
19
+ &:hover {
20
+ .gl-new-dropdown-item-content {
21
+ color: var(--gl-dropdown-option-text-color-hover);
22
+ background-color: var(--gl-dropdown-option-background-color-unselected-hover);
23
+ }
24
+ }
25
+
20
26
  &:focus {
21
27
  .gl-new-dropdown-item-content {
22
- @apply gl-bg-gray-50;
28
+ color: var(--gl-dropdown-option-text-color-focus);
29
+ background-color: var(--gl-dropdown-option-background-color-unselected-focus);
23
30
  }
24
31
  }
25
32
 
26
33
  &:active,
27
34
  &:focus:active {
28
35
  .gl-new-dropdown-item-content {
29
- @apply gl-bg-gray-100;
36
+ color: var(--gl-dropdown-option-text-color-active);
37
+ background-color: var(--gl-dropdown-option-background-color-unselected-active);
30
38
  }
31
39
  }
32
40
 
33
41
  &[aria-selected="true"] {
34
42
  .gl-new-dropdown-item-content {
35
- @apply gl-bg-gray-50;
43
+ background-color: var(--gl-dropdown-option-background-color-selected-default);
44
+ }
45
+
46
+ &:hover {
47
+ .gl-new-dropdown-item-content {
48
+ background-color: var(--gl-dropdown-option-background-color-selected-hover);
49
+ }
50
+
51
+ .gl-new-dropdown-item-check-icon {
52
+ color: var(--gl-dropdown-option-indicator-color-selected-hover);
53
+ }
36
54
  }
37
55
 
38
- &:hover,
39
56
  &:focus {
40
57
  .gl-new-dropdown-item-content {
41
- @apply gl-bg-gray-100;
58
+ background-color: var(--gl-dropdown-option-background-color-selected-focus);
42
59
  }
43
60
 
44
61
  .gl-new-dropdown-item-check-icon {
45
- @apply gl-text-blue-600
62
+ color: var(--gl-dropdown-option-indicator-color-selected-focus);
46
63
  }
47
64
  }
48
65
 
49
66
  &:active,
50
67
  &:focus:active {
51
68
  .gl-new-dropdown-item-content {
52
- @apply gl-bg-gray-200;
69
+ background-color: var(--gl-dropdown-option-background-color-selected-active);
53
70
  }
54
71
 
55
72
  .gl-new-dropdown-item-check-icon {
56
- @apply gl-text-blue-700
73
+ color: var(--gl-dropdown-option-indicator-color-selected-active);
57
74
  }
58
75
  }
59
76
  }
@@ -80,7 +97,7 @@
80
97
  @apply gl-rounded-base;
81
98
  @apply gl-border-0;
82
99
  @apply gl-w-full;
83
- @apply gl-bg-transparent;
100
+ background-color: var(--gl-dropdown-option-background-color-unselected-default);
84
101
  @apply gl-items-center;
85
102
  @apply gl-flex;
86
103
  @apply gl-text-base;
@@ -90,7 +107,7 @@
90
107
  @apply gl-py-0;
91
108
  position: relative;
92
109
  @apply gl-no-underline;
93
- @apply gl-text-gray-900;
110
+ color: var(--gl-dropdown-option-text-color-default);
94
111
  @apply gl-text-left;
95
112
  @apply gl-whitespace-normal;
96
113
  @include gl-prefers-reduced-motion-transition;
@@ -100,7 +117,7 @@
100
117
  .gl-new-dropdown-item-check-icon {
101
118
  @apply gl-shrink-0;
102
119
  @apply gl-mr-3;
103
- @apply gl-text-blue-500;
120
+ color: var(--gl-dropdown-option-indicator-color-selected-default);
104
121
  }
105
122
 
106
123
  .gl-new-dropdown-item-icon {
@@ -20,7 +20,7 @@ $clear-button-size: 24px;
20
20
  }
21
21
 
22
22
  &::placeholder {
23
- @apply gl-text-gray-400;
23
+ color: var(--gl-control-placeholder-color);
24
24
  }
25
25
 
26
26
  &::-webkit-search-cancel-button {
@@ -42,7 +42,7 @@ $clear-button-size: 24px;
42
42
  position: absolute;
43
43
  top: calc(50% - #{$search-icon-size} / 2);
44
44
  left: $gl-spacing-scale-4;
45
- @apply gl-text-gray-500;
45
+ color: var(--gl-icon-color-subtle);
46
46
  }
47
47
 
48
48
  .gl-listbox-search-clear-button {
@@ -33,8 +33,8 @@ import GlListboxGroup from './listbox_group.vue';
33
33
  import { isOption, itemsValidator, flattenedOptions } from './utils';
34
34
 
35
35
  export const ITEM_SELECTOR = '[role="option"]';
36
- const HEADER_ITEMS_BORDER_CLASSES = ['gl-border-b-1', 'gl-border-b-solid', 'gl-border-b-gray-200'];
37
- const GROUP_TOP_BORDER_CLASSES = ['gl-border-t', 'gl-border-t-gray-200', 'gl-pt-1', 'gl-mt-2'];
36
+ const HEADER_ITEMS_BORDER_CLASSES = ['gl-border-b-1', 'gl-border-b-solid', 'gl-border-b-dropdown'];
37
+ const GROUP_TOP_BORDER_CLASSES = ['gl-border-t', 'gl-border-t-dropdown', 'gl-pt-1', 'gl-mt-2'];
38
38
  export const SEARCH_INPUT_SELECTOR = '.gl-listbox-search-input';
39
39
 
40
40
  export default {
@@ -462,7 +462,7 @@ export default {
462
462
  const toggleClasses = [this.toggleClass];
463
463
 
464
464
  if (!this.hasSelection) {
465
- toggleClasses.push('!gl-text-gray-500');
465
+ toggleClasses.push('!gl-text-subtle');
466
466
  }
467
467
  return toggleClasses;
468
468
  },
@@ -785,7 +785,7 @@ export default {
785
785
  >
786
786
  <div
787
787
  :id="headerId"
788
- class="gl-grow gl-pr-2 gl-text-sm gl-font-bold"
788
+ class="gl-grow gl-pr-2 gl-text-sm gl-font-bold gl-text-strong"
789
789
  data-testid="listbox-header-text"
790
790
  >
791
791
  {{ headerText }}
@@ -927,7 +927,7 @@ export default {
927
927
  <div
928
928
  v-else-if="showNoResultsText"
929
929
  aria-live="assertive"
930
- class="gl-py-3 gl-pl-7 gl-pr-5 gl-text-base gl-text-gray-600"
930
+ class="gl-py-3 gl-pl-7 gl-pr-5 gl-text-base gl-text-subtle"
931
931
  data-testid="listbox-no-results-text"
932
932
  >
933
933
  {{ noResultsText }}
@@ -25,7 +25,7 @@ export default {
25
25
  <li
26
26
  :id="nameId"
27
27
  role="presentation"
28
- class="gl-pb-2 gl-pl-4 gl-pt-3 gl-text-sm gl-font-bold"
28
+ class="gl-pb-2 gl-pl-4 gl-pt-3 gl-text-sm gl-font-bold gl-text-strong"
29
29
  :class="{ 'gl-sr-only': textSrOnly }"
30
30
  >
31
31
  <slot name="group-label">{{ name }}</slot>
@@ -527,6 +527,14 @@
527
527
  --gl-filtered-search-token-data-background-color-default: var(--gl-color-neutral-100); /* Used for the filtered search data background color in the default state. */
528
528
  --gl-filtered-search-token-type-background-color-hover: var(--gl-color-neutral-100); /* Used for the filtered search type token background color in the hover state. */
529
529
  --gl-filtered-search-token-type-background-color-default: var(--gl-color-neutral-50); /* Used for the filtered search type token background color in the default state. */
530
+ --gl-dropdown-option-background-color-selected-active: var(--gl-color-neutral-200); /* Used for the background of a selected dropdown option in the active state. */
531
+ --gl-dropdown-option-background-color-selected-hover: var(--gl-color-neutral-100); /* Used for the background of a selected dropdown option in the hover state. */
532
+ --gl-dropdown-option-background-color-selected-default: var(--gl-color-neutral-50); /* Used for the background of a selected dropdown option in the default state. */
533
+ --gl-dropdown-option-background-color-unselected-active: var(--gl-action-neutral-background-color-active); /* Used for the background of an unselected dropdown option in the active state. */
534
+ --gl-dropdown-option-background-color-unselected-hover: var(--gl-action-neutral-background-color-hover); /* Used for the background of an unselected dropdown option in the hover state. */
535
+ --gl-dropdown-option-background-color-unselected-default: var(--gl-action-neutral-background-color-default); /* Used for the background of an unselected dropdown option in the default state. */
536
+ --gl-dropdown-option-indicator-color-selected-active: var(--gl-color-blue-700); /* Used for the dropdown selected option indicator in the active state. */
537
+ --gl-dropdown-border-color: var(--gl-color-neutral-200); /* Used for the border of a dropdown. */
530
538
  --gl-datepicker-background-color: var(--gl-color-neutral-0); /* Used for the background color of datepicker. */
531
539
  --gl-button-disabled-border-color: var(--gl-color-neutral-100); /* Used for the border of a disabled button. */
532
540
  --gl-button-disabled-background-color: var(--gl-color-neutral-10); /* Used for the background of a disabled button. */
@@ -773,6 +781,14 @@
773
781
  --gl-token-foreground-color: var(--gl-text-color-default); /* Used for the token foreground color. */
774
782
  --gl-table-sorting-icon-color: var(--gl-text-color-heading); /* Used for the color of the sorting icons in the column headers. */
775
783
  --gl-table-row-background-color-hover: var(--gl-background-color-subtle); /* Used for the background of a table row in hover state. */
784
+ --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /* Used for the background of a selected dropdown option in the focus state. */
785
+ --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /* Used for the background of an unselected dropdown option in the focus state. */
786
+ --gl-dropdown-option-indicator-color-selected-focus: var(--gl-control-background-color-selected-focus); /* Used for the dropdown selected option indicator in the focus state. */
787
+ --gl-dropdown-option-indicator-color-selected-hover: var(--gl-control-background-color-selected-hover); /* Used for the dropdown selected option indicator in the hover state. */
788
+ --gl-dropdown-option-indicator-color-selected-default: var(--gl-control-background-color-selected-default); /* Used for the dropdown selected option indicator in the default state. */
789
+ --gl-dropdown-option-text-color-disabled: var(--gl-action-disabled-foreground-color); /* Used for the text of a dropdown option in the disabled state. */
790
+ --gl-dropdown-option-text-color-default: var(--gl-action-neutral-foreground-color-default); /* Used for the text of a dropdown option in the default state. */
791
+ --gl-dropdown-background-color: var(--gl-background-color-overlap); /* Used for the background of a dropdown. */
776
792
  --gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /* Used for the datepicker date text color state indicators. */
777
793
  --gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /* Used for the border of a selected button in the focus state. */
778
794
  --gl-button-selected-background-color-active: var(--gl-button-default-primary-background-color-active); /* Used for the background of a selected button in the active state. */
@@ -872,6 +888,9 @@
872
888
  --gl-action-selected-border-color-default: var(--gl-action-selected-background-color-default); /* Used for the border of a selected action in the default state. */
873
889
  --gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-hover); /* Used for the background of a selected action in the focus state. */
874
890
  --gl-action-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-default); /* Used for the foreground of a selected action in the hover state. */
891
+ --gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /* Used for the text of a dropdown option in the active state. */
892
+ --gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /* Used for the text of a dropdown option in the focus state. */
893
+ --gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /* Used for the text of a dropdown option in the hover state. */
875
894
  --gl-button-selected-background-color-focus: var(--gl-button-default-primary-background-color-focus); /* Used for the background of a selected button in the focus state. */
876
895
  --gl-button-selected-foreground-color-active: var(--gl-button-default-primary-foreground-color-active); /* Used for the foreground of a selected button in the active state. */
877
896
  --gl-button-selected-foreground-color-focus: var(--gl-button-default-primary-foreground-color-focus); /* Used for the foreground of a selected button in the focus state. */
@@ -527,6 +527,14 @@
527
527
  --gl-filtered-search-token-data-background-color-default: var(--gl-color-neutral-800); /* Used for the filtered search data background color in the default state. */
528
528
  --gl-filtered-search-token-type-background-color-hover: var(--gl-color-neutral-800); /* Used for the filtered search type token background color in the hover state. */
529
529
  --gl-filtered-search-token-type-background-color-default: var(--gl-color-neutral-900); /* Used for the filtered search type token background color in the default state. */
530
+ --gl-dropdown-option-background-color-selected-active: var(--gl-color-neutral-900); /* Used for the background of a selected dropdown option in the active state. */
531
+ --gl-dropdown-option-background-color-selected-hover: var(--gl-color-neutral-700); /* Used for the background of a selected dropdown option in the hover state. */
532
+ --gl-dropdown-option-background-color-selected-default: var(--gl-color-neutral-800); /* Used for the background of a selected dropdown option in the default state. */
533
+ --gl-dropdown-option-background-color-unselected-active: var(--gl-action-neutral-background-color-active); /* Used for the background of an unselected dropdown option in the active state. */
534
+ --gl-dropdown-option-background-color-unselected-hover: var(--gl-action-neutral-background-color-hover); /* Used for the background of an unselected dropdown option in the hover state. */
535
+ --gl-dropdown-option-background-color-unselected-default: var(--gl-action-neutral-background-color-default); /* Used for the background of an unselected dropdown option in the default state. */
536
+ --gl-dropdown-option-indicator-color-selected-active: var(--gl-color-neutral-100); /* Used for the dropdown selected option indicator in the active state. */
537
+ --gl-dropdown-border-color: var(--gl-color-neutral-700); /* Used for the border of a dropdown. */
530
538
  --gl-datepicker-background-color: var(--gl-color-neutral-900); /* Used for the background color of datepicker. */
531
539
  --gl-button-disabled-border-color: var(--gl-color-neutral-800); /* Used for the border of a disabled button. */
532
540
  --gl-button-disabled-background-color: var(--gl-color-neutral-950); /* Used for the background of a disabled button. */
@@ -773,6 +781,14 @@
773
781
  --gl-token-foreground-color: var(--gl-text-color-default); /* Used for the token foreground color. */
774
782
  --gl-table-sorting-icon-color: var(--gl-text-color-heading); /* Used for the color of the sorting icons in the column headers. */
775
783
  --gl-table-row-background-color-hover: var(--gl-background-color-subtle); /* Used for the background of a table row in hover state. */
784
+ --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /* Used for the background of a selected dropdown option in the focus state. */
785
+ --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /* Used for the background of an unselected dropdown option in the focus state. */
786
+ --gl-dropdown-option-indicator-color-selected-focus: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the focus state. */
787
+ --gl-dropdown-option-indicator-color-selected-hover: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the hover state. */
788
+ --gl-dropdown-option-indicator-color-selected-default: var(--gl-color-neutral-0); /* Used for the dropdown selected option indicator in the default state. */
789
+ --gl-dropdown-option-text-color-disabled: var(--gl-action-disabled-foreground-color); /* Used for the text of a dropdown option in the disabled state. */
790
+ --gl-dropdown-option-text-color-default: var(--gl-action-neutral-foreground-color-default); /* Used for the text of a dropdown option in the default state. */
791
+ --gl-dropdown-background-color: var(--gl-background-color-overlap); /* Used for the background of a dropdown. */
776
792
  --gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /* Used for the datepicker date text color state indicators. */
777
793
  --gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /* Used for the border of a selected button in the focus state. */
778
794
  --gl-button-selected-background-color-active: var(--gl-button-default-primary-background-color-active); /* Used for the background of a selected button in the active state. */
@@ -872,6 +888,9 @@
872
888
  --gl-action-selected-border-color-default: var(--gl-action-selected-background-color-default); /* Used for the border of a selected action in the default state. */
873
889
  --gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-hover); /* Used for the background of a selected action in the focus state. */
874
890
  --gl-action-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-default); /* Used for the foreground of a selected action in the hover state. */
891
+ --gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /* Used for the text of a dropdown option in the active state. */
892
+ --gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /* Used for the text of a dropdown option in the focus state. */
893
+ --gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /* Used for the text of a dropdown option in the hover state. */
875
894
  --gl-button-selected-background-color-focus: var(--gl-button-default-primary-background-color-focus); /* Used for the background of a selected button in the focus state. */
876
895
  --gl-button-selected-foreground-color-active: var(--gl-button-default-primary-foreground-color-active); /* Used for the foreground of a selected button in the active state. */
877
896
  --gl-button-selected-foreground-color-focus: var(--gl-button-default-primary-foreground-color-focus); /* Used for the foreground of a selected button in the focus state. */
@@ -627,6 +627,25 @@ export const GL_BUTTON_DISABLED_BACKGROUND_COLOR = '#18171d'; // Used for the ba
627
627
  export const GL_BUTTON_DISABLED_BORDER_COLOR = '#3a383f'; // Used for the border of a disabled button.
628
628
  export const GL_DATEPICKER_BACKGROUND_COLOR = '#28272d'; // Used for the background color of datepicker.
629
629
  export const GL_DATEPICKER_DATE_TEXT_COLOR_SELECTED = '#18171d'; // Used for the datepicker date text color state indicators.
630
+ export const GL_DROPDOWN_BACKGROUND_COLOR = '#28272d'; // Used for the background of a dropdown.
631
+ export const GL_DROPDOWN_BORDER_COLOR = '#4c4b51'; // Used for the border of a dropdown.
632
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_DEFAULT = '#ececef'; // Used for the text of a dropdown option in the default state.
633
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_HOVER = '#ececef'; // Used for the text of a dropdown option in the hover state.
634
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_FOCUS = '#ececef'; // Used for the text of a dropdown option in the focus state.
635
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_ACTIVE = '#ececef'; // Used for the text of a dropdown option in the active state.
636
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_DISABLED = '#737278'; // Used for the text of a dropdown option in the disabled state.
637
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_DEFAULT = '#fff'; // Used for the dropdown selected option indicator in the default state.
638
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_HOVER = '#fff'; // Used for the dropdown selected option indicator in the hover state.
639
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_FOCUS = '#fff'; // Used for the dropdown selected option indicator in the focus state.
640
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_ACTIVE = '#dcdcde'; // Used for the dropdown selected option indicator in the active state.
641
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_DEFAULT = 'rgba(137, 136, 141, 0.0)'; // Used for the background of an unselected dropdown option in the default state.
642
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_HOVER = 'rgba(137, 136, 141, 0.4)'; // Used for the background of an unselected dropdown option in the hover state.
643
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_FOCUS = 'rgba(137, 136, 141, 0.4)'; // Used for the background of an unselected dropdown option in the focus state.
644
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_ACTIVE = 'rgba(137, 136, 141, 0.16)'; // Used for the background of an unselected dropdown option in the active state.
645
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_DEFAULT = '#3a383f'; // Used for the background of a selected dropdown option in the default state.
646
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_HOVER = '#4c4b51'; // Used for the background of a selected dropdown option in the hover state.
647
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_FOCUS = '#4c4b51'; // Used for the background of a selected dropdown option in the focus state.
648
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_ACTIVE = '#28272d'; // Used for the background of a selected dropdown option in the active state.
630
649
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_DEFAULT = '#28272d'; // Used for the filtered search type token background color in the default state.
631
650
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_HOVER = '#3a383f'; // Used for the filtered search type token background color in the hover state.
632
651
  export const GL_FILTERED_SEARCH_TOKEN_DATA_BACKGROUND_COLOR_DEFAULT = '#3a383f'; // Used for the filtered search data background color in the default state.
@@ -627,6 +627,25 @@ export const GL_BUTTON_DISABLED_BACKGROUND_COLOR = '#fbfafd'; // Used for the ba
627
627
  export const GL_BUTTON_DISABLED_BORDER_COLOR = '#dcdcde'; // Used for the border of a disabled button.
628
628
  export const GL_DATEPICKER_BACKGROUND_COLOR = '#fff'; // Used for the background color of datepicker.
629
629
  export const GL_DATEPICKER_DATE_TEXT_COLOR_SELECTED = '#fff'; // Used for the datepicker date text color state indicators.
630
+ export const GL_DROPDOWN_BACKGROUND_COLOR = '#fff'; // Used for the background of a dropdown.
631
+ export const GL_DROPDOWN_BORDER_COLOR = '#bfbfc3'; // Used for the border of a dropdown.
632
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_DEFAULT = '#28272d'; // Used for the text of a dropdown option in the default state.
633
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_HOVER = '#28272d'; // Used for the text of a dropdown option in the hover state.
634
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_FOCUS = '#28272d'; // Used for the text of a dropdown option in the focus state.
635
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_ACTIVE = '#28272d'; // Used for the text of a dropdown option in the active state.
636
+ export const GL_DROPDOWN_OPTION_TEXT_COLOR_DISABLED = '#89888d'; // Used for the text of a dropdown option in the disabled state.
637
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_DEFAULT = '#1f75cb'; // Used for the dropdown selected option indicator in the default state.
638
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_HOVER = '#0b5cad'; // Used for the dropdown selected option indicator in the hover state.
639
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_FOCUS = '#0b5cad'; // Used for the dropdown selected option indicator in the focus state.
640
+ export const GL_DROPDOWN_OPTION_INDICATOR_COLOR_SELECTED_ACTIVE = '#0b5cad'; // Used for the dropdown selected option indicator in the active state.
641
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_DEFAULT = 'rgba(164, 163, 168, 0.0)'; // Used for the background of an unselected dropdown option in the default state.
642
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_HOVER = 'rgba(164, 163, 168, 0.16)'; // Used for the background of an unselected dropdown option in the hover state.
643
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_FOCUS = 'rgba(164, 163, 168, 0.16)'; // Used for the background of an unselected dropdown option in the focus state.
644
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_UNSELECTED_ACTIVE = 'rgba(83, 81, 88, 0.24)'; // Used for the background of an unselected dropdown option in the active state.
645
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_DEFAULT = '#ececef'; // Used for the background of a selected dropdown option in the default state.
646
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_HOVER = '#dcdcde'; // Used for the background of a selected dropdown option in the hover state.
647
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_FOCUS = '#dcdcde'; // Used for the background of a selected dropdown option in the focus state.
648
+ export const GL_DROPDOWN_OPTION_BACKGROUND_COLOR_SELECTED_ACTIVE = '#bfbfc3'; // Used for the background of a selected dropdown option in the active state.
630
649
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_DEFAULT = '#ececef'; // Used for the filtered search type token background color in the default state.
631
650
  export const GL_FILTERED_SEARCH_TOKEN_TYPE_BACKGROUND_COLOR_HOVER = '#dcdcde'; // Used for the filtered search type token background color in the hover state.
632
651
  export const GL_FILTERED_SEARCH_TOKEN_DATA_BACKGROUND_COLOR_DEFAULT = '#dcdcde'; // Used for the filtered search data background color in the default state.