@gitlab/ui 93.0.0 → 93.2.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 (116) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/base/alert/alert.js +1 -0
  3. package/dist/components/base/avatar/avatar.js +7 -1
  4. package/dist/components/base/datepicker/datepicker.js +3 -1
  5. package/dist/components/base/drawer/drawer.js +1 -0
  6. package/dist/components/base/form/form_fields/form_fields.js +3 -2
  7. package/dist/components/base/form/form_input/form_input.js +7 -1
  8. package/dist/components/base/form/form_select/form_select.js +7 -1
  9. package/dist/components/base/toast/toast.js +1 -0
  10. package/dist/components/base/token/token.js +1 -0
  11. package/dist/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.js +2 -1
  12. package/dist/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.js +4 -3
  13. package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +8 -8
  14. package/dist/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.js +7 -4
  15. package/dist/components/experimental/duo/chat/duo_chat.js +13 -12
  16. package/dist/index.css +3 -3
  17. package/dist/index.css.map +1 -1
  18. package/dist/tokens/build/js/tokens.dark.js +2 -1
  19. package/dist/tokens/build/js/tokens.js +2 -1
  20. package/dist/tokens/css/tokens.css +1 -0
  21. package/dist/tokens/css/tokens.dark.css +1 -0
  22. package/dist/tokens/js/tokens.dark.js +1 -0
  23. package/dist/tokens/js/tokens.js +1 -0
  24. package/dist/tokens/json/tokens.dark.json +22 -0
  25. package/dist/tokens/json/tokens.json +22 -0
  26. package/dist/tokens/scss/_tokens.dark.scss +1 -0
  27. package/dist/tokens/scss/_tokens.scss +1 -0
  28. package/dist/tokens/scss/_tokens_custom_properties.scss +1 -0
  29. package/dist/tokens/tailwind/tokens.cjs +1 -0
  30. package/dist/utils/set_utils.js +25 -0
  31. package/package.json +1 -1
  32. package/src/components/base/accordion/accordion_item.scss +1 -1
  33. package/src/components/base/alert/alert.scss +8 -8
  34. package/src/components/base/alert/alert.vue +1 -0
  35. package/src/components/base/avatar/avatar.scss +6 -6
  36. package/src/components/base/avatar/avatar.vue +4 -0
  37. package/src/components/base/avatar_labeled/avatar_labeled.scss +9 -9
  38. package/src/components/base/avatar_link/avatar_link.scss +6 -6
  39. package/src/components/base/avatars_inline/avatars_inline.scss +9 -9
  40. package/src/components/base/badge/badge.scss +6 -6
  41. package/src/components/base/banner/banner.scss +1 -1
  42. package/src/components/base/breadcrumb/breadcrumb.scss +8 -8
  43. package/src/components/base/broadcast_message/broadcast_message.scss +9 -9
  44. package/src/components/base/button/button.scss +18 -18
  45. package/src/components/base/card/card.scss +4 -4
  46. package/src/components/base/datepicker/datepicker.scss +14 -14
  47. package/src/components/base/datepicker/datepicker.vue +1 -0
  48. package/src/components/base/daterange_picker/daterange_picker.scss +7 -7
  49. package/src/components/base/drawer/drawer.scss +14 -14
  50. package/src/components/base/drawer/drawer.vue +1 -0
  51. package/src/components/base/dropdown/dropdown.scss +15 -15
  52. package/src/components/base/dropdown/dropdown_item.scss +15 -15
  53. package/src/components/base/dropdown/dropdown_section_header.scss +4 -4
  54. package/src/components/base/filtered_search/filtered_search.scss +9 -9
  55. package/src/components/base/filtered_search/filtered_search_suggestion.scss +2 -2
  56. package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +2 -2
  57. package/src/components/base/filtered_search/filtered_search_token.scss +9 -9
  58. package/src/components/base/filtered_search/filtered_search_token_segment.scss +3 -3
  59. package/src/components/base/form/form_checkbox/form_checkbox.scss +10 -10
  60. package/src/components/base/form/form_fields/form_fields.vue +3 -2
  61. package/src/components/base/form/form_group/form_group.scss +6 -6
  62. package/src/components/base/form/form_input/form_input.scss +2 -2
  63. package/src/components/base/form/form_input/form_input.vue +3 -0
  64. package/src/components/base/form/form_radio_group/form_radio_group.scss +2 -2
  65. package/src/components/base/form/form_select/form_select.scss +3 -3
  66. package/src/components/base/form/form_select/form_select.vue +3 -0
  67. package/src/components/base/infinite_scroll/infinite_scroll.scss +2 -2
  68. package/src/components/base/label/label.scss +12 -12
  69. package/src/components/base/link/link.scss +1 -1
  70. package/src/components/base/loading_icon/loading_icon.scss +4 -4
  71. package/src/components/base/markdown/markdown.scss +14 -14
  72. package/src/components/base/modal/modal.scss +12 -12
  73. package/src/components/base/new_dropdowns/dropdown.scss +21 -17
  74. package/src/components/base/new_dropdowns/dropdown_item.scss +10 -10
  75. package/src/components/base/new_dropdowns/listbox/listbox.scss +4 -4
  76. package/src/components/base/pagination/pagination.scss +5 -5
  77. package/src/components/base/path/path.scss +11 -11
  78. package/src/components/base/popover/popover.scss +1 -1
  79. package/src/components/base/search_box_by_click/search_box_by_click.scss +5 -5
  80. package/src/components/base/search_box_by_type/search_box_by_type.scss +9 -9
  81. package/src/components/base/segmented_control/segmented_control.scss +4 -4
  82. package/src/components/base/table/table.scss +6 -6
  83. package/src/components/base/tabs/tabs/tabs.scss +18 -18
  84. package/src/components/base/toast/toast.js +1 -0
  85. package/src/components/base/toast/toast.scss +10 -10
  86. package/src/components/base/toggle/toggle.scss +17 -17
  87. package/src/components/base/token/token.scss +13 -13
  88. package/src/components/base/token/token.vue +1 -0
  89. package/src/components/base/tooltip/tooltip.scss +3 -3
  90. package/src/components/charts/legend/legend.scss +17 -17
  91. package/src/components/charts/series_label/series_label.scss +6 -6
  92. package/src/components/charts/single_stat/single_stat.scss +1 -1
  93. package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.md +10 -0
  94. package/src/components/experimental/duo/chat/components/duo_chat_conversation/duo_chat_conversation.vue +2 -1
  95. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +1 -1
  96. package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.vue +12 -3
  97. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +4 -4
  98. package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +20 -9
  99. package/src/components/experimental/duo/chat/components/duo_chat_message_sources/duo_chat_message_sources.vue +5 -4
  100. package/src/components/experimental/duo/chat/duo_chat.scss +15 -15
  101. package/src/components/experimental/duo/chat/duo_chat.vue +43 -16
  102. package/src/components/shared_components/charts/tooltip_default_format.scss +5 -5
  103. package/src/scss/typescale/_index.scss +15 -15
  104. package/src/tokens/build/css/tokens.css +1 -0
  105. package/src/tokens/build/css/tokens.dark.css +1 -0
  106. package/src/tokens/build/js/tokens.dark.js +1 -0
  107. package/src/tokens/build/js/tokens.js +1 -0
  108. package/src/tokens/build/json/tokens.dark.json +22 -0
  109. package/src/tokens/build/json/tokens.json +22 -0
  110. package/src/tokens/build/scss/_tokens.dark.scss +1 -0
  111. package/src/tokens/build/scss/_tokens.scss +1 -0
  112. package/src/tokens/build/scss/_tokens_custom_properties.scss +1 -0
  113. package/src/tokens/build/tailwind/tokens.cjs +1 -0
  114. package/src/tokens/text.tokens.json +8 -0
  115. package/src/utils/set_utils.js +24 -0
  116. package/translations.js +33 -0
@@ -43,13 +43,13 @@ body.modal-open {
43
43
  color: var(--gl-text-color-default);
44
44
 
45
45
  > :first-child {
46
- @include gl-rounded-top-left-base;
47
- @include gl-rounded-top-right-base;
46
+ @apply gl-rounded-tl-base;
47
+ @apply gl-rounded-tr-base;
48
48
  }
49
49
 
50
50
  > :last-child {
51
- @include gl-rounded-bottom-left-base;
52
- @include gl-rounded-bottom-right-base;
51
+ @apply gl-rounded-bl-base;
52
+ @apply gl-rounded-br-base;
53
53
  }
54
54
  }
55
55
 
@@ -70,14 +70,14 @@ body.modal-open {
70
70
  @apply gl-p-5;
71
71
  @apply gl-py-3;
72
72
  @include gl-text-left;
73
- @include gl-white-space-normal;
74
- @include gl-font-base;
75
- @include gl-line-height-20;
73
+ @apply gl-whitespace-normal;
74
+ @apply gl-text-base;
75
+ @apply gl-leading-20;
76
76
  }
77
77
 
78
78
  .modal-footer {
79
- @include gl-display-flex;
80
- @include gl-flex-direction-row;
79
+ @apply gl-flex;
80
+ @apply gl-flex-row;
81
81
  @apply gl-p-5;
82
82
  @apply gl-pt-3;
83
83
  @apply gl-border-none;
@@ -97,7 +97,7 @@ body.modal-open {
97
97
  }
98
98
 
99
99
  @include media-breakpoint-down(xs) {
100
- @include gl-flex-direction-column;
100
+ @apply gl-flex-col;
101
101
 
102
102
  .btn + .btn:not(.dropdown-toggle-split),
103
103
  .btn + .btn-group,
@@ -122,8 +122,8 @@ body.modal-open {
122
122
  .modal-dialog {
123
123
  @include gl-mx-auto;
124
124
  @apply gl-my-0;
125
- @include gl-display-flex;
126
- @include gl-align-items-center;
125
+ @apply gl-flex;
126
+ @apply gl-items-center;
127
127
  min-height: calc(100% - 1rem);
128
128
  }
129
129
  }
@@ -1,6 +1,6 @@
1
1
  .gl-new-dropdown {
2
- @include gl-display-inline-flex;
3
- @include gl-vertical-align-middle;
2
+ @apply gl-inline-flex;
3
+ @apply gl-align-middle;
4
4
 
5
5
  .gl-new-dropdown-custom-toggle {
6
6
  *:first-child {
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .gl-new-dropdown-panel {
16
- @include gl-display-none;
16
+ @apply gl-hidden;
17
17
  @include gl-bg-white;
18
18
  @apply gl-border-1 gl-border-solid gl-border-gray-200;
19
19
  @include gl-rounded-lg;
@@ -26,26 +26,26 @@
26
26
  }
27
27
 
28
28
  .gl-new-dropdown-inner {
29
- @include gl-display-flex;
30
- @include gl-flex-direction-column;
29
+ @apply gl-flex;
30
+ @apply gl-flex-col;
31
31
  max-height: $gl-max-dropdown-max-height;
32
32
  }
33
33
 
34
34
  .gl-new-dropdown-contents {
35
35
  position: relative;
36
- @include gl-flex-grow-1;
36
+ @apply gl-grow;
37
37
  @include gl-overflow-y-auto;
38
38
  @apply gl-pl-0;
39
39
  @apply gl-mb-0;
40
40
  @apply gl-py-2;
41
- @include gl-list-style-none;
41
+ @apply gl-list-none;
42
42
 
43
43
  &:focus-visible {
44
44
  @include gl-focus;
45
45
  }
46
46
 
47
47
  ul {
48
- @include gl-list-style-none;
48
+ @apply gl-list-none;
49
49
  }
50
50
  }
51
51
 
@@ -60,20 +60,20 @@
60
60
  }
61
61
 
62
62
  &.gl-new-dropdown-toggle-no-caret .gl-new-dropdown-chevron {
63
- @include gl-display-none;
63
+ @apply gl-hidden;
64
64
  }
65
65
  }
66
66
 
67
67
  .gl-new-dropdown-toggle {
68
68
  .gl-button-text {
69
- @include gl-display-inline-flex;
69
+ @apply gl-inline-flex;
70
70
  }
71
71
  }
72
72
 
73
73
  .gl-new-dropdown-button-text {
74
74
  @include gl-mr-auto;
75
75
  @include gl-overflow-hidden;
76
- @include gl-text-overflow-ellipsis;
76
+ @apply gl-text-ellipsis;
77
77
  }
78
78
 
79
79
  &.btn-sm .gl-icon {
@@ -102,6 +102,10 @@
102
102
 
103
103
  .gl-button-icon.gl-button-icon {
104
104
  @apply gl-mr-0;
105
+
106
+ &.gl-button-loading-indicator {
107
+ @apply gl-mr-2;
108
+ }
105
109
  }
106
110
 
107
111
  &.btn-sm .gl-new-dropdown-chevron {
@@ -187,15 +191,15 @@
187
191
  .btn-group {
188
192
  .gl-new-dropdown:not(:last-child) {
189
193
  .gl-new-dropdown-toggle {
190
- @include gl-rounded-top-right-none;
191
- @include gl-rounded-bottom-right-none;
194
+ @apply gl-rounded-tr-none;
195
+ @apply gl-rounded-br-none;
192
196
  }
193
197
  }
194
198
 
195
199
  .gl-new-dropdown:not(:first-child) {
196
200
  .gl-new-dropdown-toggle {
197
- @include gl-rounded-top-left-none;
198
- @include gl-rounded-bottom-left-none;
201
+ @apply gl-rounded-tl-none;
202
+ @apply gl-rounded-bl-none;
199
203
 
200
204
  // Prevent double borders when buttons are next to each other
201
205
  margin-left: -1px;
@@ -221,14 +225,14 @@
221
225
 
222
226
  .gl-new-dropdown:hover {
223
227
  .gl-new-dropdown-toggle {
224
- @include gl-z-index-1;
228
+ @apply gl-z-1;
225
229
  }
226
230
  }
227
231
 
228
232
  .gl-new-dropdown {
229
233
  .gl-new-dropdown-toggle:focus,
230
234
  .gl-new-dropdown-toggle:active {
231
- @include gl-z-index-1;
235
+ @apply gl-z-1;
232
236
  }
233
237
  }
234
238
  }
@@ -81,36 +81,36 @@
81
81
  @apply gl-border-0;
82
82
  @include gl-w-full;
83
83
  @include gl-bg-transparent;
84
- @include gl-align-items-center;
85
- @include gl-display-flex;
86
- @include gl-font-base;
87
- @include gl-font-weight-normal;
88
- @include gl-line-height-normal;
84
+ @apply gl-items-center;
85
+ @apply gl-flex;
86
+ @apply gl-text-base;
87
+ @apply gl-font-normal;
88
+ @apply gl-leading-normal;
89
89
  @apply gl-px-3;
90
90
  @apply gl-py-0;
91
91
  position: relative;
92
- @include gl-text-decoration-none;
92
+ @apply gl-no-underline;
93
93
  @include gl-text-gray-900;
94
94
  @include gl-text-left;
95
- @include gl-white-space-normal;
95
+ @apply gl-whitespace-normal;
96
96
  @include gl-prefers-reduced-motion-transition;
97
97
  transition: background-color $gl-transition-duration-fast $gl-easing-out-cubic,
98
98
  box-shadow $gl-transition-duration-medium $gl-easing-out-cubic;
99
99
 
100
100
  .gl-new-dropdown-item-check-icon {
101
- @include gl-flex-shrink-0;
101
+ @apply gl-shrink-0;
102
102
  @apply gl-mr-3;
103
103
  @include gl-text-blue-500;
104
104
  }
105
105
 
106
106
  .gl-new-dropdown-item-icon {
107
- @include gl-flex-shrink-0;
107
+ @apply gl-shrink-0;
108
108
  @apply gl-mr-3;
109
109
  }
110
110
 
111
111
  .gl-new-dropdown-item-text-wrapper {
112
112
  @include gl-min-w-0;
113
- @include gl-flex-grow-1;
113
+ @apply gl-grow;
114
114
  @apply gl-py-3;
115
115
  }
116
116
  }
@@ -6,14 +6,14 @@ $clear-button-size: 24px;
6
6
 
7
7
  .gl-listbox-search-input {
8
8
  @include gl-w-full;
9
- @include gl-line-height-normal;
9
+ @apply gl-leading-normal;
10
10
  @include gl-h-auto;
11
11
  @apply gl-border-none;
12
- @include gl-rounded-0;
12
+ @apply gl-rounded-none;
13
13
  padding-left: calc(#{$gl-spacing-scale-7} + #{$gl-spacing-scale-2});
14
14
  padding-right: calc(#{$gl-spacing-scale-6} + #{$gl-spacing-scale-2});
15
15
  @apply gl-py-4;
16
- @include gl-font-base;
16
+ @apply gl-text-base;
17
17
 
18
18
  &:focus {
19
19
  @include gl-focus($inset: true);
@@ -24,7 +24,7 @@ $clear-button-size: 24px;
24
24
  }
25
25
 
26
26
  &::-webkit-search-cancel-button {
27
- @include gl-display-none;
27
+ @apply gl-hidden;
28
28
  }
29
29
  }
30
30
 
@@ -1,5 +1,5 @@
1
1
  .gl-pagination {
2
- @include gl-font-base;
2
+ @apply gl-text-base;
3
3
 
4
4
  a {
5
5
  @include gl-text-gray-900;
@@ -7,7 +7,7 @@
7
7
 
8
8
  .page-link {
9
9
  @apply gl-border-gray-200;
10
- @include gl-line-height-normal;
10
+ @apply gl-leading-normal;
11
11
  @apply gl-px-4;
12
12
  @apply gl-py-3;
13
13
 
@@ -21,7 +21,7 @@
21
21
  box-shadow: inset 0 0 0 1px $gray-400;
22
22
  border-color: $gray-400;
23
23
  background: $gray-50;
24
- @include gl-z-index-1;
24
+ @apply gl-z-1;
25
25
  }
26
26
 
27
27
  &:not(.active):focus {
@@ -41,7 +41,7 @@
41
41
 
42
42
  &,
43
43
  &:active {
44
- @include gl-text-decoration-none;
44
+ @apply gl-no-underline;
45
45
  }
46
46
  }
47
47
 
@@ -50,7 +50,7 @@
50
50
  @include gl-bg-blue-500;
51
51
  @apply gl-border-blue-500;
52
52
  @include gl-text-white;
53
- @include gl-z-index-2;
53
+ @apply gl-z-2;
54
54
  @include gl-shadow-none;
55
55
 
56
56
  &:focus {
@@ -28,13 +28,13 @@ $path-chevron-right-margin: px-to-rem(14px);
28
28
 
29
29
  .gl-path-nav {
30
30
  position: relative;
31
- @include gl-display-flex;
31
+ @apply gl-flex;
32
32
 
33
33
  .gl-path-nav-list {
34
34
  @apply gl-p-1;
35
35
  @apply gl-m-0;
36
- @include gl-list-style-none;
37
- @include gl-display-inline-flex;
36
+ @apply gl-list-none;
37
+ @apply gl-inline-flex;
38
38
  @include gl-overflow-hidden;
39
39
  margin-left: -1px;
40
40
  position: relative;
@@ -54,13 +54,13 @@ $path-chevron-right-margin: px-to-rem(14px);
54
54
  .gl-path-button {
55
55
  @apply gl-pl-5;
56
56
  @apply gl-py-3;
57
- @include gl-display-flex;
58
- @include gl-font-base;
57
+ @apply gl-flex;
58
+ @apply gl-text-base;
59
59
  @include gl-z-index-0;
60
- @include gl-font-weight-bold;
61
- @include gl-line-height-normal;
62
- @include gl-rounded-top-left-base;
63
- @include gl-rounded-bottom-left-base;
60
+ @apply gl-font-bold;
61
+ @apply gl-leading-normal;
62
+ @apply gl-rounded-tl-base;
63
+ @apply gl-rounded-bl-base;
64
64
  @apply gl-border-none;
65
65
  background-color: var(--gl-action-neutral-background-color-default);
66
66
  color: var(--gl-action-neutral-foreground-color-default);
@@ -134,7 +134,7 @@ $path-chevron-right-margin: px-to-rem(14px);
134
134
  .gl-path-fade {
135
135
  @include gl-w-8;
136
136
  @include gl-h-full;
137
- @include gl-z-index-2;
137
+ @apply gl-z-2;
138
138
  bottom: 0;
139
139
  color: var(--gl-text-color-subtle);
140
140
  position: absolute;
@@ -157,7 +157,7 @@ $path-chevron-right-margin: px-to-rem(14px);
157
157
  color: var(--gl-icon-color-subtle);
158
158
 
159
159
  .gl-icon {
160
- @include gl-vertical-align-middle;
160
+ @apply gl-align-middle;
161
161
  }
162
162
  }
163
163
  }
@@ -6,7 +6,7 @@ $gl-popover-max-width: $grid-size * 35;
6
6
  max-width: $gl-popover-max-width;
7
7
  @apply gl-border-none;
8
8
  @include gl-shadow-md;
9
- @include gl-font-sm;
9
+ @apply gl-text-sm;
10
10
 
11
11
  &,
12
12
  .popover-header {
@@ -1,5 +1,5 @@
1
1
  .gl-search-box-by-click {
2
- @include gl-font-base;
2
+ @apply gl-text-base;
3
3
 
4
4
  .gl-search-box-by-click-history > .gl-button {
5
5
  padding-left: $gl-spacing-scale-4 !important;
@@ -7,16 +7,16 @@
7
7
  @apply gl-border-none;
8
8
  border-top-right-radius: 0;
9
9
  border-bottom-right-radius: 0;
10
- @include gl-inset-border-1-gray-400;
10
+ @apply gl-shadow-inner-1-gray-400;
11
11
  }
12
12
 
13
13
  .gl-search-box-by-click-search-button.gl-button:not(:disabled) {
14
- @include gl-inset-border-1-gray-400;
14
+ @apply gl-shadow-inner-1-gray-400;
15
15
  }
16
16
 
17
17
  .gl-search-box-by-click-input {
18
18
  &::-webkit-search-cancel-button {
19
- @include gl-display-none;
19
+ @apply gl-hidden;
20
20
  }
21
21
  }
22
22
 
@@ -25,7 +25,7 @@
25
25
  top: $gl-spacing-scale-2;
26
26
  right: $gl-spacing-scale-2;
27
27
  @apply gl-mr-2;
28
- @include gl-z-index-3;
28
+ @apply gl-z-3;
29
29
  }
30
30
  }
31
31
 
@@ -10,7 +10,7 @@ $gl-search-box-by-type-input-padding: 3.5 * $grid-size;
10
10
  }
11
11
 
12
12
  .gl-search-box-by-type {
13
- @include gl-display-flex;
13
+ @apply gl-flex;
14
14
  position: relative;
15
15
  }
16
16
 
@@ -21,7 +21,7 @@ $gl-search-box-by-type-input-padding: 3.5 * $grid-size;
21
21
  }
22
22
 
23
23
  .gl-search-box-by-type-clear {
24
- @include gl-z-index-3;
24
+ @apply gl-z-3;
25
25
  }
26
26
 
27
27
  .gl-search-box-by-type-input,
@@ -31,16 +31,16 @@ $gl-search-box-by-type-input-padding: 3.5 * $grid-size;
31
31
  padding-left: $gl-search-box-by-type-input-padding;
32
32
 
33
33
  &::-webkit-search-cancel-button {
34
- @include gl-display-none;
34
+ @apply gl-hidden;
35
35
  }
36
36
  }
37
37
 
38
38
  .gl-search-box-by-type-input-borderless,
39
39
  .gl-search-box-by-type-input-borderless.gl-form-input {
40
40
  @apply gl-border-none;
41
- @include gl-font-base;
41
+ @apply gl-text-base;
42
42
  @include gl-h-auto;
43
- @include gl-line-height-normal;
43
+ @apply gl-leading-normal;
44
44
  @apply gl-pl-7;
45
45
  @apply gl-py-4;
46
46
  @include gl-shadow-none;
@@ -57,14 +57,14 @@ $gl-search-box-by-type-input-padding: 3.5 * $grid-size;
57
57
  }
58
58
 
59
59
  &::-webkit-search-cancel-button {
60
- @include gl-display-none;
60
+ @apply gl-hidden;
61
61
  }
62
62
  }
63
63
 
64
64
  .gl-search-box-by-type-right-icons {
65
- @include gl-display-flex;
66
- @include gl-align-items-center;
67
- @include gl-line-height-0;
65
+ @apply gl-flex;
66
+ @apply gl-items-center;
67
+ @apply gl-leading-0;
68
68
  right: $gl-spacing-scale-2;
69
69
  position: absolute;
70
70
  @include gl-h-full;
@@ -33,8 +33,8 @@
33
33
  }
34
34
 
35
35
  .btn-gl-segmented-button {
36
- @include gl-font-base;
37
- @include gl-line-height-normal;
36
+ @apply gl-text-base;
37
+ @apply gl-leading-normal;
38
38
  @include gl-text-gray-900;
39
39
  @include gl-fill-current-color;
40
40
  @include gl-bg-gray-10;
@@ -54,13 +54,13 @@
54
54
  }
55
55
 
56
56
  &.focus {
57
- @include gl-z-index-1;
57
+ @apply gl-z-1;
58
58
  @include gl-btn-gl-segmented-button-focus($gray-400);
59
59
  @include gl-bg-gray-50;
60
60
  }
61
61
 
62
62
  &.active {
63
- @include gl-z-index-2;
63
+ @apply gl-z-2;
64
64
  @include gl-inset-border-2-gray-300;
65
65
  @include gl-bg-white;
66
66
 
@@ -9,13 +9,13 @@ table.gl-table {
9
9
  border-color: var(--gl-border-color-default);
10
10
  @apply gl-p-5;
11
11
  @include gl-bg-transparent;
12
- @include gl-line-height-normal;
13
- @include gl-font-base;
14
- @include gl-vertical-align-top;
12
+ @apply gl-leading-normal;
13
+ @apply gl-text-base;
14
+ @apply gl-align-top;
15
15
  }
16
16
 
17
17
  th {
18
- @include gl-font-weight-bold;
18
+ @apply gl-font-bold;
19
19
  color: var(--gl-text-color-heading);
20
20
 
21
21
  &.gl-text-right > div {
@@ -72,7 +72,7 @@ table.gl-table {
72
72
  content: '';
73
73
  @include gl-h-6;
74
74
  @include gl-w-full;
75
- @include gl-display-block;
75
+ @apply gl-block;
76
76
  }
77
77
 
78
78
  > td[data-label] {
@@ -93,7 +93,7 @@ table.gl-table {
93
93
 
94
94
  div {
95
95
  @include gl-text-right;
96
- @include gl-overflow-wrap-break;
96
+ @apply gl-break-words;
97
97
  }
98
98
  }
99
99
  }
@@ -6,10 +6,10 @@
6
6
  position: relative;
7
7
  @apply gl-px-4;
8
8
  @apply gl-py-5;
9
- @include gl-line-height-normal;
10
- @include gl-font-base;
11
- @include gl-display-flex;
12
- @include gl-justify-content-center;
9
+ @apply gl-leading-normal;
10
+ @apply gl-text-base;
11
+ @apply gl-flex;
12
+ @apply gl-justify-center;
13
13
  @apply gl-border;
14
14
  @include gl-action-neutral-colors;
15
15
  transition:
@@ -64,13 +64,13 @@
64
64
 
65
65
  .gl-tab-content {
66
66
  @apply gl-py-3;
67
- @include gl-font-base;
68
- @include gl-line-height-normal;
67
+ @apply gl-text-base;
68
+ @apply gl-leading-normal;
69
69
  color: var(--gl-text-color-default);
70
70
  }
71
71
 
72
72
  .gl-tab-nav-item-active {
73
- @include gl-font-weight-bold;
73
+ @apply gl-font-bold;
74
74
  z-index: 1;
75
75
 
76
76
  &:active,
@@ -104,28 +104,28 @@
104
104
 
105
105
  .gl-actions-tabs-start {
106
106
  @include gl-w-full;
107
- @include gl-display-flex;
108
- @include gl-flex-direction-column;
107
+ @apply gl-flex;
108
+ @apply gl-flex-col;
109
109
  @apply gl-mt-3;
110
- @include gl-md-display-none;
110
+ @apply md:gl-hidden;
111
111
  }
112
112
 
113
113
  .gl-actions-tabs-end {
114
- @include gl-display-none;
115
- @include gl-flex-grow-1;
116
- @include gl-justify-content-end;
117
- @include gl-align-items-center;
118
- @include gl-flex-direction-row;
114
+ @apply gl-hidden;
115
+ @apply gl-grow;
116
+ @apply gl-justify-end;
117
+ @apply gl-items-center;
118
+ @apply gl-flex-row;
119
119
  @apply gl-mt-0;
120
- @include gl-md-display-flex;
120
+ @apply md:gl-flex;
121
121
  }
122
122
 
123
123
  .gl-actions-tabs-start,
124
124
  .gl-actions-tabs-end {
125
125
  button {
126
126
  @apply gl-mb-3;
127
- @include gl-md-mr-3;
128
- @include gl-md-mb-0;
127
+ @apply md:gl-mr-3;
128
+ @apply md:gl-mb-0;
129
129
  }
130
130
 
131
131
  button:last-child {
@@ -44,6 +44,7 @@ function renderTitle(h, toast, options) {
44
44
  }
45
45
 
46
46
  function showToast(message, options = {}) {
47
+ // eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
47
48
  const id = `gl-toast-${toastsCount}`;
48
49
  toastsCount += 1;
49
50
  const hide = () => {
@@ -20,25 +20,25 @@
20
20
 
21
21
  .gl-toast {
22
22
  @apply gl-rounded-base;
23
- @include gl-font-base;
23
+ @apply gl-text-base;
24
24
  @apply gl-py-5;
25
25
  @apply gl-px-6;
26
- @include gl-line-height-normal;
27
- @include gl-display-flex;
28
- @include gl-align-items-center;
29
- @include gl-justify-content-space-between;
26
+ @apply gl-leading-normal;
27
+ @apply gl-flex;
28
+ @apply gl-items-center;
29
+ @apply gl-justify-between;
30
30
  background-color: var(--gl-feedback-strong-background-color);
31
31
  color: var(--gl-feedback-strong-text-color);
32
32
  }
33
33
 
34
34
  .toast-body {
35
- @include gl-font-weight-300;
35
+ @apply gl-font-300;
36
36
  @apply gl-pr-3;
37
37
  order: 1;
38
38
  }
39
39
 
40
40
  .toast-header {
41
- @include gl-display-flex;
41
+ @apply gl-flex;
42
42
  order: 2;
43
43
  }
44
44
 
@@ -48,9 +48,9 @@
48
48
  @apply gl-m-0;
49
49
  @apply gl-ml-5;
50
50
  @include gl-text-transform-none;
51
- @include gl-font-base;
52
- @include gl-white-space-nowrap;
53
- @include gl-font-weight-bold;
51
+ @apply gl-text-base;
52
+ @apply gl-whitespace-nowrap;
53
+ @apply gl-font-bold;
54
54
  @include gl-cursor-pointer;
55
55
  }
56
56