@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
@@ -1,14 +1,14 @@
1
1
  .gl-avatar-link {
2
- @include gl-display-inline-flex;
2
+ @apply gl-inline-flex;
3
3
 
4
4
  .gl-avatar {
5
5
  @include gl-transition-property-border-color;
6
- @include gl-transition-duration-slow;
7
- @include gl-transition-timing-function-ease;
6
+ @apply gl-duration-slow;
7
+ @apply gl-ease-ease;
8
8
  }
9
9
 
10
10
  &:hover {
11
- @include gl-text-decoration-none;
11
+ @apply gl-no-underline;
12
12
 
13
13
  .gl-avatar {
14
14
  outline: 1px solid var(--gl-avatar-border-color-hover);
@@ -16,12 +16,12 @@
16
16
 
17
17
  .gl-avatar-labeled {
18
18
  &-label {
19
- @include gl-text-decoration-underline;
19
+ @apply gl-underline;
20
20
  @include gl-text-decoration-color-gray-900;
21
21
  }
22
22
 
23
23
  &-sublabel {
24
- @include gl-text-decoration-underline;
24
+ @apply gl-underline;
25
25
  @include gl-text-decoration-color-gray-500;
26
26
  }
27
27
  }
@@ -7,7 +7,7 @@
7
7
  // Mask size plus border cutout effect
8
8
  --mask-cutout: calc(var(--avatar-radius) + 1.5px);
9
9
 
10
- @include gl-display-inline-flex;
10
+ @apply gl-inline-flex;
11
11
  }
12
12
 
13
13
  .gl-avatars-inline-sm {
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  .gl-avatars-inline-child {
26
- @include gl-display-inline-flex;
26
+ @apply gl-inline-flex;
27
27
 
28
28
  // Don't include the badge
29
29
  &:not(:last-child) {
@@ -39,18 +39,18 @@
39
39
  // Remove mask on hovered or focused avatar and bring it forward
40
40
  &:not(:last-child):hover,
41
41
  &:not(:last-child):focus-within {
42
- @include gl-z-index-1;
42
+ @apply gl-z-1;
43
43
  mask: none;
44
44
  }
45
45
  }
46
46
 
47
47
  .gl-avatars-inline-badge {
48
- @include gl-display-inline-flex;
49
- @include gl-align-items-center;
50
- @include gl-justify-content-center;
51
- @include gl-font-sm;
48
+ @apply gl-inline-flex;
49
+ @apply gl-items-center;
50
+ @apply gl-justify-center;
51
+ @apply gl-text-sm;
52
52
  @apply gl-px-2;
53
- @include gl-line-height-normal;
53
+ @apply gl-leading-normal;
54
54
  @include gl-rounded-pill;
55
55
  background-color: var(--gl-status-neutral-background-color);
56
56
  color: var(--gl-status-neutral-text-color);
@@ -58,7 +58,7 @@
58
58
  min-width: var(--avatar-size);
59
59
 
60
60
  &.lg {
61
- @include gl-font-base;
61
+ @apply gl-text-base;
62
62
  @include gl-rounded-6;
63
63
  }
64
64
  }
@@ -33,7 +33,7 @@ $badge-min-width: $gl-spacing-scale-3;
33
33
  // Needed to override bootstrap's badge variant background
34
34
  background-color: $hover-background-color;
35
35
  box-shadow: inset 0 0 0 $gl-border-size-1 $hover-border-color;
36
- @include gl-text-decoration-none;
36
+ @apply gl-no-underline;
37
37
 
38
38
  .gl-badge-icon {
39
39
  color: $hover-icon-color;
@@ -71,9 +71,9 @@ $badge-min-width: $gl-spacing-scale-3;
71
71
  /* Basic badge styles */
72
72
 
73
73
  .gl-badge {
74
- @include gl-font-sm;
75
- @include gl-font-weight-normal;
76
- @include gl-line-height-normal;
74
+ @apply gl-text-sm;
75
+ @apply gl-font-normal;
76
+ @apply gl-leading-normal;
77
77
 
78
78
  /*
79
79
  CSS Grid is used here to deal with 3 cases:
@@ -106,7 +106,7 @@ $badge-min-width: $gl-spacing-scale-3;
106
106
  .gl-badge-icon {
107
107
  @include gl-h-5;
108
108
  @include gl-w-5;
109
- @include gl-flex-shrink-0;
109
+ @apply gl-shrink-0;
110
110
  top: auto;
111
111
  }
112
112
 
@@ -247,5 +247,5 @@ $badge-min-width: $gl-spacing-scale-3;
247
247
 
248
248
  .gl-new-dropdown-contents .gl-badge,
249
249
  .gl-tab-nav-item .gl-badge {
250
- @include gl-my-n1;
250
+ @apply -gl-my-1;
251
251
  }
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .gl-banner-illustration {
7
- @include gl-flex-shrink-0;
7
+ @apply gl-shrink-0;
8
8
  @apply gl-mr-6;
9
9
 
10
10
  img {
@@ -2,14 +2,14 @@
2
2
  $breadcrumb-max-width: $grid-size * 16;
3
3
 
4
4
  .gl-breadcrumbs {
5
- @include gl-display-flex;
5
+ @apply gl-flex;
6
6
  }
7
7
 
8
8
  .gl-breadcrumb-list {
9
9
  @include gl-bg-transparent;
10
10
  @apply gl-p-0;
11
- @include gl-align-items-center;
12
- @include gl-line-height-normal;
11
+ @apply gl-items-center;
12
+ @apply gl-leading-normal;
13
13
  @apply gl-m-0;
14
14
  @include gl-flex-nowrap;
15
15
  @include gl-max-w-full;
@@ -17,9 +17,9 @@ $breadcrumb-max-width: $grid-size * 16;
17
17
 
18
18
  // bootstrap overrides
19
19
  .gl-breadcrumb-item {
20
- @include gl-font-sm;
21
- @include gl-line-height-normal;
22
- @include gl-flex-shrink-0;
20
+ @apply gl-text-sm;
21
+ @apply gl-leading-normal;
22
+ @apply gl-shrink-0;
23
23
 
24
24
  &:not(:last-child)::after {
25
25
  color: var(--gl-breadcrumb-separator-color);
@@ -28,7 +28,7 @@ $breadcrumb-max-width: $grid-size * 16;
28
28
  }
29
29
 
30
30
  > a {
31
- @include gl-display-inline-block;
31
+ @apply gl-inline-block;
32
32
  border-radius: $gl-border-radius-base;
33
33
  color: var(--gl-text-color-subtle);
34
34
  text-decoration-thickness: auto;
@@ -52,5 +52,5 @@ $breadcrumb-max-width: $grid-size * 16;
52
52
 
53
53
  .gl-breadcrumb-item:last-child > a {
54
54
  color: var(--gl-text-color-default);
55
- @include gl-font-weight-bold;
55
+ @apply gl-font-bold;
56
56
  }
@@ -9,11 +9,11 @@
9
9
  $gl-broadcast-message-padding-x: var(--gl-broadcast-message-padding-x, 0px);
10
10
 
11
11
  .gl-broadcast-message {
12
- @include gl-display-flex;
13
- @include gl-justify-content-space-between;
14
- @include gl-align-items-flex-start;
15
- @include gl-font-base;
16
- @include gl-line-height-20;
12
+ @apply gl-flex;
13
+ @apply gl-justify-between;
14
+ @apply gl-items-start;
15
+ @apply gl-text-base;
16
+ @apply gl-leading-20;
17
17
  padding-left: calc(#{$gl-spacing-scale-5} + #{$gl-broadcast-message-padding-x});
18
18
  padding-right: calc(#{$gl-spacing-scale-4} + #{$gl-broadcast-message-padding-x});
19
19
  @apply gl-py-5;
@@ -108,8 +108,8 @@ $gl-broadcast-message-padding-x: var(--gl-broadcast-message-padding-x, 0px);
108
108
  }
109
109
 
110
110
  &-content {
111
- @include gl-display-flex;
112
- @include gl-justify-content-center;
111
+ @apply gl-flex;
112
+ @apply gl-justify-center;
113
113
  }
114
114
 
115
115
  &-icon {
@@ -117,7 +117,7 @@ $gl-broadcast-message-padding-x: var(--gl-broadcast-message-padding-x, 0px);
117
117
  line-height: $gl-line-height-16;
118
118
 
119
119
  > svg {
120
- @include gl-vertical-align-bottom;
120
+ @apply gl-align-bottom;
121
121
  }
122
122
  }
123
123
 
@@ -128,7 +128,7 @@ $gl-broadcast-message-padding-x: var(--gl-broadcast-message-padding-x, 0px);
128
128
  }
129
129
 
130
130
  &-dismiss {
131
- @include gl-my-n2;
131
+ @apply -gl-my-2;
132
132
  @apply gl-ml-5;
133
133
  color: inherit !important;
134
134
  }
@@ -61,14 +61,14 @@
61
61
 
62
62
  // low specificity so that display can be overridden to hide buttons
63
63
  .gl-button {
64
- @include gl-display-inline-flex;
64
+ @apply gl-inline-flex;
65
65
  }
66
66
 
67
67
  .gl-button:not(.btn-link) {
68
68
  &:focus,
69
69
  &:active,
70
70
  &:focus:active {
71
- @include gl-text-decoration-none;
71
+ @apply gl-no-underline;
72
72
  }
73
73
  }
74
74
 
@@ -79,13 +79,13 @@
79
79
  @apply gl-py-3;
80
80
  @apply gl-px-4;
81
81
  background-color: var(--gl-button-default-primary-background-color-default);
82
- @include gl-line-height-normal;
82
+ @apply gl-leading-normal;
83
83
  color: var(--gl-button-default-primary-foreground-color-default);
84
84
  @include gl-fill-current-color;
85
85
  @include gl-button-border(var(--gl-button-default-primary-border-color-default));
86
- @include gl-justify-content-center;
87
- @include gl-align-items-center;
88
- @include gl-font-base;
86
+ @apply gl-justify-center;
87
+ @apply gl-items-center;
88
+ @apply gl-text-base;
89
89
 
90
90
  @media (forced-colors: active) {
91
91
  border: 1px solid;
@@ -93,8 +93,8 @@
93
93
 
94
94
  .gl-button-text {
95
95
  @include gl-overflow-hidden;
96
- @include gl-text-overflow-ellipsis;
97
- @include gl-white-space-nowrap;
96
+ @apply gl-text-ellipsis;
97
+ @apply gl-whitespace-nowrap;
98
98
  // Added to address a FF bug which causes cut off text: https://bugzilla.mozilla.org/show_bug.cgi?id=1406552
99
99
  padding-top: 1px;
100
100
  padding-bottom: 1px;
@@ -105,7 +105,7 @@
105
105
  .gl-button-icon {
106
106
  @include gl-h-5;
107
107
  @include gl-w-5;
108
- @include gl-flex-shrink-0;
108
+ @apply gl-shrink-0;
109
109
  @apply gl-mr-2;
110
110
  top: auto;
111
111
  }
@@ -113,7 +113,7 @@
113
113
  gl-emoji {
114
114
  @apply gl-mr-2;
115
115
  position: relative;
116
- @include gl-font-lg;
116
+ @apply gl-text-lg;
117
117
  }
118
118
 
119
119
  &.btn-default,
@@ -370,7 +370,7 @@
370
370
  &.btn-success-tertiary {
371
371
  @include gl-bg-transparent;
372
372
  @include gl-text-green-500;
373
- @include gl-font-weight-normal;
373
+ @apply gl-font-normal;
374
374
  @include gl-inset-border-1-green-500;
375
375
 
376
376
  &:hover {
@@ -400,11 +400,11 @@
400
400
  &.btn-sm {
401
401
  @apply gl-py-2;
402
402
  @apply gl-px-3;
403
- @include gl-line-height-normal;
404
- @include gl-font-base;
403
+ @apply gl-leading-normal;
404
+ @apply gl-text-base;
405
405
 
406
406
  gl-emoji {
407
- @include gl-font-sm;
407
+ @apply gl-text-sm;
408
408
  }
409
409
  }
410
410
 
@@ -442,7 +442,7 @@
442
442
 
443
443
  &.btn-icon {
444
444
  @apply gl-p-3;
445
- @include gl-line-height-normal;
445
+ @apply gl-leading-normal;
446
446
 
447
447
  .gl-button-icon {
448
448
  @apply gl-mr-0;
@@ -477,8 +477,8 @@
477
477
  &.btn-link {
478
478
  @include gl-bg-transparent;
479
479
  @apply gl-border-0;
480
- @include gl-font-base;
481
- @include gl-line-height-normal;
480
+ @apply gl-text-base;
481
+ @apply gl-leading-normal;
482
482
  color: var(--gl-button-link-text-color-default);
483
483
  @apply gl-py-0;
484
484
  @apply gl-px-0;
@@ -491,7 +491,7 @@
491
491
 
492
492
  &:active {
493
493
  color: var(--gl-button-link-text-color-active);
494
- @include gl-text-decoration-underline;
494
+ @apply gl-underline;
495
495
  }
496
496
 
497
497
  &:active,
@@ -2,11 +2,11 @@
2
2
  background-color: var(--gl-background-color-default);
3
3
  @apply gl-border-solid;
4
4
  @apply gl-rounded-base;
5
- @include gl-display-flex;
6
- @include gl-flex-direction-column;
7
- @include gl-overflow-wrap-break;
5
+ @apply gl-flex;
6
+ @apply gl-flex-col;
7
+ @apply gl-break-words;
8
8
  position: relative;
9
- @include gl-font-base;
9
+ @apply gl-text-base;
10
10
  }
11
11
 
12
12
  .gl-card,
@@ -20,14 +20,14 @@ $pd-week-color: var(--gl-text-color-subtle);
20
20
  @import 'pikaday/scss/pikaday';
21
21
 
22
22
  .gl-datepicker-actions {
23
- @include gl-font-sm;
23
+ @apply gl-text-sm;
24
24
  position: absolute;
25
25
  top: 0;
26
26
  bottom: 0;
27
27
  right: 0;
28
- @include gl-display-flex;
29
- @include gl-justify-content-center;
30
- @include gl-align-items-center;
28
+ @apply gl-flex;
29
+ @apply gl-justify-center;
30
+ @apply gl-items-center;
31
31
  @include gl-pointer-events-none;
32
32
  @apply gl-px-2;
33
33
 
@@ -60,7 +60,7 @@ $pd-week-color: var(--gl-text-color-subtle);
60
60
  }
61
61
 
62
62
  .pika-title {
63
- @include gl-line-height-normal;
63
+ @apply gl-leading-normal;
64
64
  @apply gl-mb-5;
65
65
  @include gl-h-5;
66
66
  }
@@ -152,7 +152,7 @@ $pd-week-color: var(--gl-text-color-subtle);
152
152
 
153
153
  .pika-label {
154
154
  @apply gl-rounded-small;
155
- @include gl-font-base;
155
+ @apply gl-text-base;
156
156
  @apply gl-py-0;
157
157
 
158
158
  background-color: var(--gl-action-neutral-background-color-default);
@@ -177,12 +177,12 @@ $pd-week-color: var(--gl-text-color-subtle);
177
177
 
178
178
  th {
179
179
  @apply gl-pb-3;
180
- @include gl-font-weight-bold;
181
- @include gl-line-height-normal;
180
+ @apply gl-font-bold;
181
+ @apply gl-leading-normal;
182
182
  }
183
183
 
184
184
  abbr[title] {
185
- @include gl-text-decoration-none;
185
+ @apply gl-no-underline;
186
186
  @include gl-cursor-default;
187
187
  }
188
188
 
@@ -191,9 +191,9 @@ $pd-week-color: var(--gl-text-color-subtle);
191
191
  @include gl-shadow-none;
192
192
  @apply gl-py-3;
193
193
  @include gl-text-center;
194
- @include gl-line-height-normal;
194
+ @apply gl-leading-normal;
195
195
  @include gl-w-7;
196
- @include gl-font-base;
196
+ @apply gl-text-base;
197
197
 
198
198
  &:hover {
199
199
  box-shadow: inset 0 0 0 $gl-border-size-1 var(--gl-control-border-color-hover);
@@ -205,11 +205,11 @@ $pd-week-color: var(--gl-text-color-subtle);
205
205
  }
206
206
 
207
207
  .is-today > .pika-button {
208
- @include gl-font-weight-bold;
208
+ @apply gl-font-bold;
209
209
  }
210
210
 
211
211
  .is-selected > .pika-button {
212
- @include gl-font-weight-normal;
212
+ @apply gl-font-normal;
213
213
 
214
214
  &:hover {
215
215
  background-color: var(--gl-control-background-color-selected-hover);
@@ -219,7 +219,7 @@ $pd-week-color: var(--gl-text-color-subtle);
219
219
  }
220
220
 
221
221
  .is-selected.is-today > .pika-button {
222
- @include gl-font-weight-bold;
222
+ @apply gl-font-bold;
223
223
  }
224
224
 
225
225
  .is-disabled {
@@ -224,6 +224,7 @@ export default {
224
224
  'gl-datepicker',
225
225
  'd-inline-block',
226
226
  'gl-w-full',
227
+ // eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
227
228
  `gl-form-input-${this.computedWidth}`,
228
229
  ];
229
230
  },
@@ -1,18 +1,18 @@
1
1
  .gl-daterange-picker {
2
- @include gl-line-height-normal;
3
- @include gl-font-base;
2
+ @apply gl-leading-normal;
3
+ @apply gl-text-base;
4
4
  @include gl-font-regular;
5
5
 
6
6
  label {
7
- @include gl-font-weight-bold;
7
+ @apply gl-font-bold;
8
8
  color: var(--gl-text-color-strong);
9
9
  }
10
10
 
11
11
  .gl-daterange-picker-indicator {
12
- @include gl-display-flex;
13
- @include gl-flex-direction-row;
14
- @include gl-align-items-center;
15
- @include gl-align-self-end;
12
+ @apply gl-flex;
13
+ @apply gl-flex-row;
14
+ @apply gl-items-center;
15
+ @apply gl-self-end;
16
16
  @include gl-gap-3;
17
17
  @include gl-h-7;
18
18
  color: var(--gl-text-color-subtle);
@@ -9,16 +9,16 @@ $gl-drawer-scrim-gradient: linear-gradient(
9
9
  .gl-drawer {
10
10
  background-color: var(--drawer-variant-bg-color);
11
11
  right: 0;
12
- @include gl-transition-medium;
12
+ @apply gl-transition-all;
13
13
  position: fixed;
14
14
  @include gl-h-full;
15
15
  @include gl-w-full;
16
16
  @include gl-overflow-y-auto;
17
17
  @include gl-shadow-lg;
18
- @include gl-font-base;
19
- @include gl-line-height-normal;
20
- @include gl-display-flex;
21
- @include gl-flex-direction-column;
18
+ @apply gl-text-base;
19
+ @apply gl-leading-normal;
20
+ @apply gl-flex;
21
+ @apply gl-flex-col;
22
22
 
23
23
  .gl-drawer-header-sticky {
24
24
  background-color: var(--drawer-variant-bg-color);
@@ -69,7 +69,7 @@ $gl-drawer-scrim-gradient: linear-gradient(
69
69
  &::before {
70
70
  background: $gl-drawer-scrim-gradient;
71
71
  top: -$gl-border-size-1;
72
- @include gl-translate-y-n100;
72
+ @apply -gl-translate-y-full;
73
73
  content: '';
74
74
  left: 0;
75
75
  position: absolute;
@@ -92,25 +92,25 @@ $gl-drawer-scrim-gradient: linear-gradient(
92
92
 
93
93
  .gl-drawer-title {
94
94
  color: var(--gl-text-color-heading);
95
- @include gl-display-flex;
96
- @include gl-align-items-center;
97
- @include gl-justify-content-space-between;
95
+ @apply gl-flex;
96
+ @apply gl-items-center;
97
+ @apply gl-justify-between;
98
98
 
99
99
  svg {
100
100
  @include gl-w-5;
101
101
  @include gl-h-5;
102
- @include gl-vertical-align-middle;
102
+ @apply gl-align-middle;
103
103
  }
104
104
  }
105
105
 
106
106
  .gl-drawer-close-button {
107
- @include gl-align-self-start;
108
- @include gl-bg-none;
107
+ @apply gl-self-start;
108
+ @apply gl-bg-transparent;
109
109
  @apply gl-border-none;
110
110
  }
111
111
 
112
112
  .gl-drawer-body {
113
- @include gl-flex-grow-1;
113
+ @apply gl-grow;
114
114
  // prevent safari bug where box shadow is visible
115
115
  // above the drawer when hovering interactive elements
116
116
  // see https://gitlab.com/gitlab-org/gitlab/-/issues/366558
@@ -149,5 +149,5 @@ $gl-drawer-scrim-gradient: linear-gradient(
149
149
 
150
150
  .gl-drawer-enter-active,
151
151
  .gl-drawer-leave-active {
152
- @include gl-transition-medium;
152
+ @apply gl-transition-all;
153
153
  }
@@ -62,6 +62,7 @@ export default {
62
62
  return Boolean(this.$slots.footer);
63
63
  },
64
64
  variantClass() {
65
+ // eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
65
66
  return `gl-drawer-${this.variant}`;
66
67
  },
67
68
  },
@@ -19,8 +19,8 @@
19
19
  }
20
20
 
21
21
  .gl-dropdown-inner {
22
- @include gl-display-flex;
23
- @include gl-flex-direction-column;
22
+ @apply gl-flex;
23
+ @apply gl-flex-col;
24
24
  max-height: $gl-max-dropdown-max-height;
25
25
 
26
26
  > :first-child {
@@ -33,17 +33,17 @@
33
33
  }
34
34
 
35
35
  .gl-dropdown-contents {
36
- @include gl-flex-grow-1;
36
+ @apply gl-grow;
37
37
  overflow-y: auto;
38
38
  }
39
39
 
40
40
  .gl-dropdown-header-top {
41
41
  @apply gl-border-1 gl-border-b-solid gl-border-gray-200;
42
- @include gl-display-flex;
43
- @include gl-font-base;
44
- @include gl-font-weight-bold;
45
- @include gl-justify-content-center;
46
- @include gl-line-height-normal;
42
+ @apply gl-flex;
43
+ @apply gl-text-base;
44
+ @apply gl-font-bold;
45
+ @apply gl-justify-center;
46
+ @apply gl-leading-normal;
47
47
  @apply gl-m-0;
48
48
  @apply gl-mb-3;
49
49
  @apply gl-pb-3;
@@ -62,7 +62,7 @@
62
62
  .dropdown-toggle {
63
63
  // Remove bootstrap's dropdown caret
64
64
  &::after {
65
- @include gl-display-none;
65
+ @apply gl-hidden;
66
66
  }
67
67
 
68
68
  &.gl-button,
@@ -88,7 +88,7 @@
88
88
  &::after {
89
89
  @apply gl-border-0;
90
90
  content: '';
91
- @include gl-display-block;
91
+ @apply gl-block;
92
92
  @include gl-w-5;
93
93
  @include gl-h-5;
94
94
  @include gl-bg-current-color;
@@ -123,24 +123,24 @@
123
123
 
124
124
  .gl-dropdown-toggle {
125
125
  &.btn-block {
126
- @include gl-justify-content-space-between;
126
+ @apply gl-justify-between;
127
127
  }
128
128
 
129
129
  .gl-button-text {
130
- @include gl-display-inline-flex;
130
+ @apply gl-inline-flex;
131
131
  }
132
132
  }
133
133
 
134
134
  .gl-dropdown-button-text {
135
135
  @include gl-mr-auto;
136
136
  @include gl-overflow-hidden;
137
- @include gl-text-overflow-ellipsis;
137
+ @apply gl-text-ellipsis;
138
138
  }
139
139
 
140
140
  // Fix rounded split dropdown button: https://gitlab.com/gitlab-org/gitlab-ui/issues/626
141
141
  &.dropdown.show .dropdown-toggle-split {
142
- @include gl-rounded-top-left-none;
143
- @include gl-rounded-bottom-left-none;
142
+ @apply gl-rounded-tl-none;
143
+ @apply gl-rounded-bl-none;
144
144
  }
145
145
 
146
146
  // The `&.dropdown` is necessary to strengthen the specificity of these selectors