@gitlab/ui 94.1.0 → 94.1.1

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 (35) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/index.css +2 -2
  3. package/dist/index.css.map +1 -1
  4. package/package.json +1 -1
  5. package/src/components/base/avatar/avatar.scss +6 -6
  6. package/src/components/base/avatar_link/avatar_link.scss +1 -1
  7. package/src/components/base/avatars_inline/avatars_inline.scss +2 -2
  8. package/src/components/base/badge/badge.scss +1 -1
  9. package/src/components/base/breadcrumb/breadcrumb.scss +1 -1
  10. package/src/components/base/button/button.scss +3 -3
  11. package/src/components/base/drawer/drawer.scss +1 -1
  12. package/src/components/base/dropdown/dropdown.scss +1 -1
  13. package/src/components/base/dropdown/dropdown_divider.scss +1 -1
  14. package/src/components/base/filtered_search/filtered_search.scss +4 -4
  15. package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +2 -2
  16. package/src/components/base/form/form_checkbox/form_checkbox.scss +2 -2
  17. package/src/components/base/infinite_scroll/infinite_scroll.scss +2 -2
  18. package/src/components/base/label/label.scss +5 -5
  19. package/src/components/base/loading_icon/loading_icon.scss +1 -1
  20. package/src/components/base/markdown/markdown.scss +1 -1
  21. package/src/components/base/markdown/markdown_typescale_demo.html +1 -1
  22. package/src/components/base/modal/modal.scss +1 -1
  23. package/src/components/base/nav/nav.scss +1 -1
  24. package/src/components/base/new_dropdowns/dropdown.scss +5 -5
  25. package/src/components/base/path/path.scss +1 -1
  26. package/src/components/base/segmented_control/segmented_control.scss +1 -1
  27. package/src/components/base/table/table.scss +1 -1
  28. package/src/components/base/tabs/tabs/tabs.scss +1 -1
  29. package/src/components/base/toggle/toggle.scss +3 -3
  30. package/src/components/base/token/token.scss +1 -1
  31. package/src/components/charts/legend/legend.scss +4 -4
  32. package/src/components/charts/series_label/series_label.scss +2 -2
  33. package/src/components/experimental/duo/chat/duo_chat.scss +1 -1
  34. package/src/components/shared_components/clear_icon_button/clear_icon_button.scss +1 -1
  35. package/tailwind.defaults.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "94.1.0",
3
+ "version": "94.1.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@ $gl-avatar-identicon-texts: var(--gl-avatar-fallback-text-color-red),
21
21
 
22
22
  @mixin gl-avatar {
23
23
  @apply gl-inline-flex;
24
- @include gl-overflow-hidden;
24
+ @apply gl-overflow-hidden;
25
25
  @apply gl-shrink-0;
26
26
  @apply gl-leading-1;
27
27
  @include gl-object-fit-contain;
@@ -33,7 +33,7 @@ $gl-avatar-identicon-texts: var(--gl-avatar-fallback-text-color-red),
33
33
  @apply gl-w-5;
34
34
  @apply gl-h-5;
35
35
  font-size: map-get($gl-font-sizes, 100);
36
- @include gl-rounded-small;
36
+ @apply gl-rounded-small;
37
37
  }
38
38
 
39
39
  @mixin gl-avatar-s24 {
@@ -54,21 +54,21 @@ $gl-avatar-identicon-texts: var(--gl-avatar-fallback-text-color-red),
54
54
  @apply gl-w-9;
55
55
  @apply gl-h-9;
56
56
  font-size: map-get($gl-font-sizes, 600);
57
- @include gl-rounded-lg;
57
+ @apply gl-rounded-lg;
58
58
  }
59
59
 
60
60
  @mixin gl-avatar-s64 {
61
61
  @apply gl-w-11;
62
62
  @apply gl-h-11;
63
63
  font-size: map-get($gl-font-sizes, 700);
64
- @include gl-rounded-lg;
64
+ @apply gl-rounded-lg;
65
65
  }
66
66
 
67
67
  @mixin gl-avatar-s96 {
68
68
  @apply gl-w-13;
69
69
  @apply gl-h-13;
70
70
  font-size: map-get($gl-font-sizes, 800);
71
- @include gl-rounded-lg;
71
+ @apply gl-rounded-lg;
72
72
  }
73
73
 
74
74
  .gl-avatar {
@@ -208,7 +208,7 @@ $gl-avatar-identicon-texts: var(--gl-avatar-fallback-text-color-red),
208
208
  }
209
209
 
210
210
  .gl-avatar-circle {
211
- @include gl-rounded-full;
211
+ @apply gl-rounded-full;
212
212
  }
213
213
 
214
214
  .gl-avatar-identicon {
@@ -35,7 +35,7 @@
35
35
  outline: none !important;
36
36
 
37
37
  .gl-avatar {
38
- @include gl-focus;
38
+ @apply gl-focus;
39
39
  }
40
40
  }
41
41
  }
@@ -51,7 +51,7 @@
51
51
  @apply gl-text-sm;
52
52
  @apply gl-px-2;
53
53
  @apply gl-leading-normal;
54
- @include gl-rounded-pill;
54
+ @apply gl-rounded-pill;
55
55
  background-color: var(--gl-status-neutral-background-color);
56
56
  color: var(--gl-status-neutral-text-color);
57
57
  height: var(--avatar-size);
@@ -59,6 +59,6 @@
59
59
 
60
60
  &.lg {
61
61
  @apply gl-text-base;
62
- @include gl-rounded-6;
62
+ @apply gl-rounded-6;
63
63
  }
64
64
  }
@@ -63,7 +63,7 @@ $badge-min-width: $gl-spacing-scale-3;
63
63
  &:active,
64
64
  &:focus,
65
65
  &:focus:active {
66
- @include gl-focus;
66
+ @apply gl-focus;
67
67
  }
68
68
  }
69
69
  }
@@ -45,7 +45,7 @@ $breadcrumb-max-width: $grid-size * 16;
45
45
  &:active,
46
46
  &:focus,
47
47
  &:focus:active {
48
- @include gl-focus;
48
+ @apply gl-focus;
49
49
  }
50
50
  }
51
51
  }
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  .gl-button-text {
95
- @include gl-overflow-hidden;
95
+ @apply gl-overflow-hidden;
96
96
  @apply gl-text-ellipsis;
97
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
@@ -322,7 +322,7 @@
322
322
  &:active,
323
323
  &:focus,
324
324
  &:focus:active {
325
- @include gl-focus;
325
+ @apply gl-focus;
326
326
  }
327
327
  }
328
328
  }
@@ -498,7 +498,7 @@
498
498
  &:focus,
499
499
  &:focus:active {
500
500
  @apply gl-bg-transparent;
501
- @include gl-focus;
501
+ @apply gl-focus;
502
502
  }
503
503
 
504
504
  &.disabled,
@@ -13,7 +13,7 @@ $gl-drawer-scrim-gradient: linear-gradient(
13
13
  position: fixed;
14
14
  @apply gl-h-full;
15
15
  @apply gl-w-full;
16
- @include gl-overflow-y-auto;
16
+ @apply gl-overflow-y-auto;
17
17
  @include gl-shadow-lg;
18
18
  @apply gl-text-base;
19
19
  @apply gl-leading-normal;
@@ -133,7 +133,7 @@
133
133
 
134
134
  .gl-dropdown-button-text {
135
135
  @include gl-mr-auto;
136
- @include gl-overflow-hidden;
136
+ @apply gl-overflow-hidden;
137
137
  @apply gl-text-ellipsis;
138
138
  }
139
139
 
@@ -1,5 +1,5 @@
1
1
  @mixin gl-tmp-dropdown-divider-style {
2
- @include gl-overflow-hidden;
2
+ @apply gl-overflow-hidden;
3
3
  @apply gl-h-0;
4
4
  @apply gl-my-2;
5
5
  @apply gl-mx-0;
@@ -3,7 +3,7 @@
3
3
  @apply gl-flex;
4
4
  @apply gl-grow;
5
5
  @apply gl-basis-0;
6
- @include gl-overflow-hidden;
6
+ @apply gl-overflow-hidden;
7
7
  @apply gl-items-center;
8
8
  @apply gl-py-2;
9
9
  @apply gl-pl-4;
@@ -13,17 +13,17 @@
13
13
  @apply gl-rounded-base;
14
14
 
15
15
  .input-group-prepend + & {
16
- @include gl-rounded-left-none;
16
+ @apply gl-rounded-l-none;
17
17
  }
18
18
  }
19
19
 
20
20
  .gl-filtered-search-scrollable-container-with-search-button {
21
- @include gl-rounded-right-none;
21
+ @apply gl-rounded-r-none;
22
22
  }
23
23
 
24
24
  .gl-filtered-search-scrollable {
25
25
  @apply gl-flex;
26
- @include gl-overflow-y-auto;
26
+ @apply gl-overflow-y-auto;
27
27
  @apply gl-w-full;
28
28
  }
29
29
 
@@ -6,13 +6,13 @@
6
6
  width: $gl-dropdown-width;
7
7
  @apply gl-p-2;
8
8
  @apply gl-border-gray-200;
9
- @include gl-rounded-lg;
9
+ @apply gl-rounded-lg;
10
10
  @include gl-shadow-md;
11
11
  }
12
12
 
13
13
  .gl-filtered-search-suggestion-list {
14
14
  position: absolute;
15
- @include gl-overflow-y-auto;
15
+ @apply gl-overflow-y-auto;
16
16
  max-height: $gl-max-dropdown-max-height;
17
17
 
18
18
  .gl-filtered-search-suggestion,
@@ -33,7 +33,7 @@
33
33
  &:active,
34
34
  &:focus,
35
35
  &:focus:active {
36
- @include gl-focus;
36
+ @apply gl-focus;
37
37
  }
38
38
  }
39
39
 
@@ -76,7 +76,7 @@
76
76
  }
77
77
 
78
78
  .custom-control-input:not(:disabled):focus ~ .custom-control-label::before {
79
- @include gl-focus;
79
+ @apply gl-focus;
80
80
  border-color: var(--gl-control-border-color-focus);
81
81
  }
82
82
 
@@ -1,6 +1,6 @@
1
1
  .gl-infinite-scroll-container {
2
- @include gl-overflow-x-hidden;
3
- @include gl-overflow-y-auto;
2
+ @apply gl-overflow-x-hidden;
3
+ @apply gl-overflow-y-auto;
4
4
  @apply gl-text-base;
5
5
  }
6
6
 
@@ -6,9 +6,9 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
6
6
  .gl-label {
7
7
  @apply gl-items-center;
8
8
  background-color: var(--gl-background-color-default);
9
- @include gl-overflow-hidden;
9
+ @apply gl-overflow-hidden;
10
10
  @apply gl-inline-flex;
11
- @include gl-rounded-pill;
11
+ @apply gl-rounded-pill;
12
12
  position: relative;
13
13
  @include gl-max-w-full;
14
14
  @apply gl-text-sm;
@@ -30,7 +30,7 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
30
30
  .gl-label-link {
31
31
  @apply gl-flex;
32
32
  @apply gl-font-normal;
33
- @include gl-overflow-hidden;
33
+ @apply gl-overflow-hidden;
34
34
  @apply gl-text-inherit;
35
35
  @include gl-max-w-full;
36
36
 
@@ -71,12 +71,12 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
71
71
  margin-left: -$label-padding-horizontal-half;
72
72
  margin-right: $label-padding-horizontal-half;
73
73
  @apply gl-p-0;
74
- @include gl-rounded-full;
74
+ @apply gl-rounded-full;
75
75
  @include gl-shadow-none;
76
76
 
77
77
  &:focus,
78
78
  &:active {
79
- @include gl-focus;
79
+ @apply gl-focus;
80
80
  }
81
81
 
82
82
  .gl-icon {
@@ -36,7 +36,7 @@ $gl-loader-dots-size-xl: 1rem;
36
36
  .gl-spinner {
37
37
  position: relative;
38
38
  @apply gl-inline-flex;
39
- @include gl-rounded-full;
39
+ @apply gl-rounded-full;
40
40
  @apply gl-border-solid;
41
41
  @include gl-mx-auto;
42
42
  @apply gl-my-0;
@@ -108,7 +108,7 @@
108
108
  @apply gl-px-4;
109
109
  @include gl-inset-border-1-gray-100;
110
110
  @apply gl-my-7;
111
- @include gl-overflow-auto;
111
+ @apply gl-overflow-auto;
112
112
 
113
113
  code {
114
114
  @apply gl-bg-white;
@@ -140,7 +140,7 @@
140
140
 
141
141
  code {
142
142
  @apply gl-bg-white;
143
- @include gl-rounded-none;
143
+ @apply gl-rounded-none;
144
144
  @apply gl-text-gray-900;
145
145
  @include gl-px-0;
146
146
  @include gl-py-0;
@@ -9,7 +9,7 @@ $modal-box-shadow: 0 4px 16px $t-gray-a-24;
9
9
  }
10
10
 
11
11
  body.modal-open {
12
- @include gl-overflow-hidden;
12
+ @apply gl-overflow-hidden;
13
13
  }
14
14
 
15
15
  .gl-modal {
@@ -1,7 +1,7 @@
1
1
  .nav {
2
2
  &-link {
3
3
  &:focus-visible {
4
- @include gl-focus;
4
+ @apply gl-focus;
5
5
  }
6
6
  }
7
7
  }
@@ -7,7 +7,7 @@
7
7
  @include gl-cursor-pointer;
8
8
 
9
9
  &:focus {
10
- @include gl-focus;
10
+ @apply gl-focus;
11
11
  }
12
12
  }
13
13
  }
@@ -16,7 +16,7 @@
16
16
  @apply gl-hidden;
17
17
  @apply gl-bg-white;
18
18
  @apply gl-border-1 gl-border-solid gl-border-gray-200;
19
- @include gl-rounded-lg;
19
+ @apply gl-rounded-lg;
20
20
  @include gl-shadow-md;
21
21
  top: 0;
22
22
  left: 0;
@@ -34,14 +34,14 @@
34
34
  .gl-new-dropdown-contents {
35
35
  position: relative;
36
36
  @apply gl-grow;
37
- @include gl-overflow-y-auto;
37
+ @apply gl-overflow-y-auto;
38
38
  @apply gl-pl-0;
39
39
  @apply gl-mb-0;
40
40
  @apply gl-py-2;
41
41
  @apply gl-list-none;
42
42
 
43
43
  &:focus-visible {
44
- @include gl-focus;
44
+ @apply gl-focus;
45
45
  }
46
46
 
47
47
  ul {
@@ -72,7 +72,7 @@
72
72
 
73
73
  .gl-new-dropdown-button-text {
74
74
  @include gl-mr-auto;
75
- @include gl-overflow-hidden;
75
+ @apply gl-overflow-hidden;
76
76
  @apply gl-text-ellipsis;
77
77
  }
78
78
 
@@ -35,7 +35,7 @@ $path-chevron-right-margin: px-to-rem(14px);
35
35
  @apply gl-m-0;
36
36
  @apply gl-list-none;
37
37
  @apply gl-inline-flex;
38
- @include gl-overflow-hidden;
38
+ @apply gl-overflow-hidden;
39
39
  margin-left: -1px;
40
40
  position: relative;
41
41
  }
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  &:focus-within {
80
- @include gl-focus;
80
+ @apply gl-focus;
81
81
  }
82
82
 
83
83
  &.disabled,
@@ -39,7 +39,7 @@ table.gl-table {
39
39
  }
40
40
 
41
41
  &:focus-visible {
42
- @include gl-focus;
42
+ @apply gl-focus;
43
43
  position: relative;
44
44
  z-index: 1;
45
45
  }
@@ -158,7 +158,7 @@
158
158
  }
159
159
 
160
160
  .gl-scrollable-tabs-nav {
161
- @include gl-overflow-hidden;
161
+ @apply gl-overflow-hidden;
162
162
  position: relative;
163
163
  @include gl-flex-nowrap;
164
164
  }
@@ -92,7 +92,7 @@ $toggle-height: 2.5 * $grid-size;
92
92
  height: $toggle-height;
93
93
  @include gl-outline-none;
94
94
  user-select: none;
95
- @include gl-rounded-pill;
95
+ @apply gl-rounded-pill;
96
96
  @include gl-transition-slow;
97
97
  @apply gl-leading-normal;
98
98
 
@@ -112,7 +112,7 @@ $toggle-height: 2.5 * $grid-size;
112
112
  &:active,
113
113
  &:focus,
114
114
  &:focus:active {
115
- @include gl-focus;
115
+ @apply gl-focus;
116
116
  }
117
117
 
118
118
  .toggle-loading {
@@ -120,7 +120,7 @@ $toggle-height: 2.5 * $grid-size;
120
120
  }
121
121
 
122
122
  .toggle-icon {
123
- @include gl-rounded-full;
123
+ @apply gl-rounded-full;
124
124
  @apply gl-bg-white;
125
125
  position: absolute;
126
126
  @apply gl-inline-flex;
@@ -1,7 +1,7 @@
1
1
  .gl-token {
2
2
  @apply gl-text-gray-900;
3
3
  @apply gl-bg-gray-100;
4
- @include gl-rounded-small;
4
+ @apply gl-rounded-small;
5
5
  @apply gl-pl-3;
6
6
  @apply gl-inline-flex;
7
7
  @apply gl-flex-col;
@@ -10,7 +10,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
10
10
  .gl-legend-inline {
11
11
  // match the height of gl-legend-tabular (header + body)
12
12
  max-height: $gl-line-height-24 + $legend-body-h;
13
- @include gl-overflow-auto;
13
+ @apply gl-overflow-auto;
14
14
  }
15
15
  }
16
16
 
@@ -59,7 +59,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
59
59
  .gl-legend-tabular-header-cell,
60
60
  .gl-legend-tabular-details-cell {
61
61
  @apply gl-whitespace-nowrap;
62
- @include gl-overflow-hidden;
62
+ @apply gl-overflow-hidden;
63
63
  @apply gl-text-ellipsis;
64
64
  @apply gl-text-right;
65
65
  @apply gl-w-1/8;
@@ -73,7 +73,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
73
73
 
74
74
  .gl-legend-tabular-body {
75
75
  height: $legend-body-h;
76
- @include gl-overflow-y-auto;
76
+ @apply gl-overflow-y-auto;
77
77
  }
78
78
 
79
79
  .gl-legend-tabular-row {
@@ -91,7 +91,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
91
91
  }
92
92
 
93
93
  .gl-legend-tabular-title-cell {
94
- @include gl-overflow-hidden;
94
+ @apply gl-overflow-hidden;
95
95
  @apply gl-w-1/2;
96
96
  }
97
97
  }
@@ -1,7 +1,7 @@
1
1
  .gl-series-label-container {
2
2
  @apply gl-flex;
3
3
  @apply gl-text-base;
4
- @include gl-overflow-hidden;
4
+ @apply gl-overflow-hidden;
5
5
  @apply gl-break-words;
6
6
  }
7
7
 
@@ -18,6 +18,6 @@
18
18
  // In case there are no spaces in the series label -
19
19
  // as there are quite a few possible cases where
20
20
  // Prometheus queries return long labels with no spaces.
21
- @include gl-overflow-hidden;
21
+ @apply gl-overflow-hidden;
22
22
  @apply gl-break-words;
23
23
  }
@@ -41,7 +41,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
41
41
  position: fixed;
42
42
  @apply gl-h-full;
43
43
  @apply gl-w-full;
44
- @include gl-overflow-y-auto;
44
+ @apply gl-overflow-y-auto;
45
45
  @include gl-shadow-lg;
46
46
  @apply gl-text-base;
47
47
  @apply gl-leading-normal;
@@ -5,6 +5,6 @@
5
5
  @apply gl-text-gray-500;
6
6
 
7
7
  &:focus {
8
- @include gl-focus;
8
+ @apply gl-focus;
9
9
  }
10
10
  }
@@ -356,7 +356,8 @@ function addCustomDefinitions({ addComponents, addUtilities }) {
356
356
  },
357
357
  },
358
358
  '.focus': {
359
- 'box-shadow': '0 0 0 1px var(--white, #fff), 0 0 0 3px var(--blue-400, #428fdc)',
359
+ 'box-shadow':
360
+ '0 0 0 1px var(--gl-focus-ring-inner-color), 0 0 0 3px var(--gl-focus-ring-outer-color)',
360
361
  outline: 'none',
361
362
  },
362
363
  '.text-align-inherit': {