@gitlab/ui 86.15.0 → 87.1.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 (56) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/index.css +2 -2
  3. package/dist/index.css.map +1 -1
  4. package/dist/tokens/build/js/tokens.dark.js +1 -1
  5. package/dist/tokens/build/js/tokens.js +1 -1
  6. package/dist/tokens/css/tokens.css +1 -1
  7. package/dist/tokens/css/tokens.dark.css +1 -1
  8. package/dist/tokens/js/tokens.dark.js +1 -1
  9. package/dist/tokens/js/tokens.js +1 -1
  10. package/dist/tokens/json/tokens.dark.json +2 -2
  11. package/dist/tokens/json/tokens.json +2 -2
  12. package/dist/tokens/scss/_tokens.dark.scss +1 -1
  13. package/dist/tokens/scss/_tokens.scss +1 -1
  14. package/package.json +2 -2
  15. package/src/components/base/broadcast_message/broadcast_message.scss +1 -1
  16. package/src/components/base/button/button.scss +2 -2
  17. package/src/components/base/card/card.scss +4 -4
  18. package/src/components/base/carousel/carousel.scss +1 -2
  19. package/src/components/base/datepicker/datepicker.scss +1 -1
  20. package/src/components/base/daterange_picker/daterange_picker.scss +1 -1
  21. package/src/components/base/drawer/drawer.scss +5 -8
  22. package/src/components/base/dropdown/dropdown.scss +6 -13
  23. package/src/components/base/dropdown/dropdown_divider.scss +1 -3
  24. package/src/components/base/dropdown/dropdown_item.scss +2 -2
  25. package/src/components/base/filtered_search/filtered_search.scss +2 -2
  26. package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +1 -1
  27. package/src/components/base/filtered_search/filtered_search_term.scss +1 -1
  28. package/src/components/base/filtered_search/filtered_search_token_segment.scss +1 -1
  29. package/src/components/base/form/form_input/form_input.scss +1 -1
  30. package/src/components/base/form/form_select/form_select.scss +1 -1
  31. package/src/components/base/label/label.scss +1 -1
  32. package/src/components/base/loading_icon/loading_icon.scss +1 -1
  33. package/src/components/base/modal/modal.scss +3 -3
  34. package/src/components/base/new_dropdowns/dropdown.scss +1 -3
  35. package/src/components/base/new_dropdowns/dropdown_item.scss +3 -3
  36. package/src/components/base/new_dropdowns/listbox/listbox.scss +1 -1
  37. package/src/components/base/pagination/pagination.scss +3 -3
  38. package/src/components/base/path/path.scss +1 -1
  39. package/src/components/base/popover/popover.scss +2 -4
  40. package/src/components/base/search_box_by_click/search_box_by_click.scss +1 -1
  41. package/src/components/base/search_box_by_type/search_box_by_type.scss +1 -1
  42. package/src/components/base/table/table.scss +4 -9
  43. package/src/components/base/tabs/tabs/tabs.scss +36 -11
  44. package/src/components/base/toggle/toggle.scss +1 -1
  45. package/src/components/base/tooltip/tooltip.scss +5 -5
  46. package/src/components/experimental/duo/chat/duo_chat.scss +2 -6
  47. package/src/components/shared_components/clear_icon_button/clear_icon_button.scss +1 -1
  48. package/src/tokens/build/css/tokens.css +1 -1
  49. package/src/tokens/build/css/tokens.dark.css +1 -1
  50. package/src/tokens/build/js/tokens.dark.js +1 -1
  51. package/src/tokens/build/js/tokens.js +1 -1
  52. package/src/tokens/build/json/tokens.dark.json +2 -2
  53. package/src/tokens/build/json/tokens.json +2 -2
  54. package/src/tokens/build/scss/_tokens.dark.scss +1 -1
  55. package/src/tokens/build/scss/_tokens.scss +1 -1
  56. package/src/tokens/text.tokens.json +1 -1
@@ -4,9 +4,7 @@ $gl-popover-max-width: $grid-size * 35;
4
4
 
5
5
  .gl-popover {
6
6
  max-width: $gl-popover-max-width;
7
- @include gl-border-1;
8
- @include gl-border-solid;
9
- @include gl-border-none;
7
+ @apply gl-border-none;
10
8
  @include gl-shadow-md;
11
9
  @include gl-font-sm;
12
10
 
@@ -77,7 +75,7 @@ $gl-popover-max-width: $grid-size * 35;
77
75
  .popover-header {
78
76
  color: var(--gl-text-color-heading);
79
77
  @include gl-heading-scale-200;
80
- @include gl-border-bottom-0;
78
+ @apply gl-border-b-0;
81
79
  @include gl-pb-0;
82
80
  }
83
81
 
@@ -4,7 +4,7 @@
4
4
  .gl-search-box-by-click-history > button {
5
5
  padding-left: $gl-spacing-scale-4 !important;
6
6
  padding-right: $gl-spacing-scale-3 !important;
7
- @include gl-border-none;
7
+ @apply gl-border-none;
8
8
  border-top-right-radius: 0;
9
9
  border-bottom-right-radius: 0;
10
10
  @include gl-inset-border-1-gray-400;
@@ -37,7 +37,7 @@ $gl-search-box-by-type-input-padding: 3.5 * $grid-size;
37
37
 
38
38
  .gl-search-box-by-type-input-borderless,
39
39
  .gl-search-box-by-type-input-borderless.gl-form-input {
40
- @include gl-border-none;
40
+ @apply gl-border-none;
41
41
  @include gl-font-base;
42
42
  @include gl-h-auto;
43
43
  @include gl-line-height-normal;
@@ -5,9 +5,8 @@ table.gl-table {
5
5
  tr {
6
6
  th,
7
7
  td {
8
- @include gl-border-b-solid;
8
+ @apply gl-border-b-solid gl-border-b-1;
9
9
  border-color: var(--gl-border-color-default);
10
- @include gl-border-b-1;
11
10
  @include gl-p-5;
12
11
  @include gl-bg-transparent;
13
12
  @include gl-line-height-normal;
@@ -77,22 +76,18 @@ table.gl-table {
77
76
  }
78
77
 
79
78
  > td[data-label] {
80
- @include gl-border-l-1;
81
- @include gl-border-r-1;
82
- @include gl-border-l-solid;
83
- @include gl-border-r-solid;
79
+ @apply gl-border-l-1 gl-border-r-1 gl-border-l-solid gl-border-r-solid;
84
80
 
85
81
  &::before {
86
82
  @include gl-text-left;
87
83
  }
88
84
 
89
85
  &:first-child {
90
- @include gl-border-t-solid;
91
- @include gl-border-t-1;
86
+ @apply gl-border-t-solid gl-border-t-1;
92
87
  }
93
88
 
94
89
  &:not(:first-child) {
95
- @include gl-border-t-none;
90
+ @apply gl-border-t-0;
96
91
  }
97
92
  }
98
93
 
@@ -1,11 +1,9 @@
1
1
  .gl-tabs-nav {
2
- @include gl-border-solid;
3
- @include gl-border-gray-100;
4
- @include gl-border-0;
5
- @include gl-border-b-1;
2
+ @apply gl-border-solid gl-border-gray-100 gl-border-0 gl-border-b-1;
6
3
  }
7
4
 
8
5
  .gl-tab-nav-item {
6
+ position: relative;
9
7
  @include gl-text-gray-900;
10
8
  @include gl-px-4;
11
9
  @include gl-py-5;
@@ -14,15 +12,37 @@
14
12
  @include gl-display-flex;
15
13
  @include gl-justify-content-center;
16
14
  @include gl-overflow-hidden;
15
+ transition: box-shadow $gl-transition-duration-medium $gl-easing-out-cubic,
16
+ border-radius $gl-transition-duration-fast $gl-easing-out-cubic;
17
+
18
+ &::before {
19
+ content: '';
20
+ position: absolute;
21
+ bottom: 0;
22
+ width: 100%;
23
+ border-bottom: $gl-border-size-2 solid transparent;
24
+ translate: 0 $gl-border-size-2;
25
+ transition: border-bottom $gl-transition-duration-medium $gl-easing-out-cubic,
26
+ translate $gl-transition-duration-medium $gl-easing-out-cubic;
27
+ }
17
28
 
18
- transition: box-shadow 100ms linear;
29
+ @media (prefers-reduced-motion: reduce) {
30
+ &, &::before {
31
+ transition-duration: .01ms;
32
+ }
33
+ }
19
34
 
20
35
  &:hover {
21
36
  @include gl-text-gray-900;
37
+ }
22
38
 
23
- &:not(.gl-tab-nav-item-active) {
24
- @include gl-inset-border-b-2-gray-200;
25
- }
39
+ &:hover:not(.gl-tab-nav-item-active)::before {
40
+ border-bottom-color: $gray-200;
41
+ translate: 0;
42
+ }
43
+
44
+ &:focus {
45
+ border-radius: $gl-border-radius-base;
26
46
  }
27
47
 
28
48
  &.disabled {
@@ -51,13 +71,18 @@
51
71
  .gl-tab-nav-item-active {
52
72
  @include gl-font-weight-bold;
53
73
  @include gl-text-gray-900;
54
- @include gl-inset-border-b-2-blue-500;
74
+ z-index: 1;
55
75
 
56
76
  &:active,
57
77
  &:focus,
58
78
  &:focus:active {
59
- box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $blue-500, $focus-ring;
60
79
  @include gl-outline-none;
80
+ @include gl-focus;
81
+ }
82
+
83
+ &::before {
84
+ border-bottom-color: $blue-500;
85
+ translate: 0;
61
86
  }
62
87
  }
63
88
 
@@ -112,7 +137,7 @@
112
137
 
113
138
  .gl-tabs-fade-icon-button {
114
139
  @include gl-bg-transparent;
115
- @include gl-border-none;
140
+ @apply gl-border-none;
116
141
  @include gl-p-0;
117
142
  @include gl-text-gray-400;
118
143
  @include gl-h-full;
@@ -80,7 +80,7 @@
80
80
  @include gl-display-inline-flex;
81
81
  @include gl-align-items-center;
82
82
  @include gl-justify-content-center;
83
- @include gl-border-0;
83
+ @apply gl-border-0;
84
84
  @include gl-cursor-pointer;
85
85
  @include gl-bg-gray-600;
86
86
  @include gl-p-1;
@@ -17,7 +17,7 @@
17
17
  @include gl-w-2;
18
18
 
19
19
  &::before {
20
- @include gl-border-4;
20
+ @apply gl-border-4;
21
21
  }
22
22
  }
23
23
  }
@@ -31,21 +31,21 @@
31
31
  }
32
32
 
33
33
  .gl-tooltip.bs-tooltip-top .arrow::before {
34
- @include gl-border-b-0;
34
+ @apply gl-border-b-0;
35
35
  border-top-color: var(--gl-feedback-background-color-strong);
36
36
  }
37
37
 
38
38
  .gl-tooltip.bs-tooltip-right .arrow::before {
39
- @include gl-border-l-0;
39
+ @apply gl-border-l-0;
40
40
  border-right-color: var(--gl-feedback-background-color-strong);
41
41
  }
42
42
 
43
43
  .gl-tooltip.bs-tooltip-bottom .arrow::before {
44
- @include gl-border-t-0;
44
+ @apply gl-border-t-0;
45
45
  border-bottom-color: var(--gl-feedback-background-color-strong);
46
46
  }
47
47
 
48
48
  .gl-tooltip.bs-tooltip-left .arrow::before {
49
- @include gl-border-r-0;
49
+ @apply gl-border-r-0;
50
50
  border-left-color: var(--gl-feedback-background-color-strong);
51
51
  }
@@ -50,9 +50,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
50
50
  }
51
51
 
52
52
  .duo-chat-drawer-header {
53
- @include gl-border-b-solid;
54
- @include gl-border-b-gray-100;
55
- @include gl-border-b-1;
53
+ @apply gl-border-b-solid gl-border-b-gray-100 gl-border-b-1;
56
54
  }
57
55
 
58
56
  .duo-chat-drawer-header-sticky {
@@ -70,9 +68,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
70
68
  }
71
69
 
72
70
  .duo-chat-drawer-footer {
73
- @include gl-border-t-solid;
74
- @include gl-border-t-gray-100;
75
- @include gl-border-t-1;
71
+ @apply gl-border-t-solid gl-border-t-gray-100 gl-border-t-1;
76
72
  @include gl-p-5;
77
73
  }
78
74
 
@@ -1,6 +1,6 @@
1
1
  .gl-clear-icon-button {
2
2
  @include gl-bg-transparent;
3
- @include gl-border-none;
3
+ @apply gl-border-none;
4
4
  @include gl-cursor-pointer;
5
5
  @include gl-text-gray-500;
6
6
 
@@ -417,7 +417,7 @@
417
417
  --gl-action-neutral-background-color-hover: rgba(164, 163, 168, 0.16); /* Used for the background of a neutral action in the hover state. */
418
418
  --gl-action-neutral-background-color-default: rgba(164, 163, 168, 0.0); /* Used for the background of a neutral action in the default state. */
419
419
  --gl-text-color-disabled: var(--gl-color-neutral-400); /* Used for disabled text. */
420
- --gl-text-color-success: var(--gl-color-green-600); /* Used for text indicating success or validity. */
420
+ --gl-text-color-success: var(--gl-color-green-600); /* Used for text indicating success, completion, approval, addition, or validity. */
421
421
  --gl-text-color-danger: var(--gl-color-red-600); /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
422
422
  --gl-text-color-link: var(--gl-color-blue-700); /* Used for default text links. */
423
423
  --gl-text-color-heading: var(--gl-color-neutral-950); /* Used for headings level 1-6. */
@@ -417,7 +417,7 @@
417
417
  --gl-action-neutral-background-color-hover: rgba(137, 136, 141, 0.4); /* Used for the background of a neutral action in the hover state. */
418
418
  --gl-action-neutral-background-color-default: rgba(137, 136, 141, 0.0); /* Used for the background of a neutral action in the default state. */
419
419
  --gl-text-color-disabled: var(--gl-color-neutral-400); /* Used for disabled text. */
420
- --gl-text-color-success: var(--gl-color-green-300); /* Used for text indicating success or validity. */
420
+ --gl-text-color-success: var(--gl-color-green-300); /* Used for text indicating success, completion, approval, addition, or validity. */
421
421
  --gl-text-color-danger: var(--gl-color-red-300); /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
422
422
  --gl-text-color-link: var(--gl-color-blue-300); /* Used for default text links. */
423
423
  --gl-text-color-heading: var(--gl-color-neutral-0); /* Used for headings level 1-6. */
@@ -613,5 +613,5 @@ export const GL_TEXT_COLOR_STRONG = '#fff'; // Used for text with the highest co
613
613
  export const GL_TEXT_COLOR_HEADING = '#fff'; // Used for headings level 1-6.
614
614
  export const GL_TEXT_COLOR_LINK = '#63a6e9'; // Used for default text links.
615
615
  export const GL_TEXT_COLOR_DANGER = '#f57f6c'; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
616
- export const GL_TEXT_COLOR_SUCCESS = '#52b87a'; // Used for text indicating success or validity.
616
+ export const GL_TEXT_COLOR_SUCCESS = '#52b87a'; // Used for text indicating success, completion, approval, addition, or validity.
617
617
  export const GL_TEXT_COLOR_DISABLED = '#89888d'; // Used for disabled text.
@@ -613,5 +613,5 @@ export const GL_TEXT_COLOR_STRONG = '#18171d'; // Used for text with the highest
613
613
  export const GL_TEXT_COLOR_HEADING = '#18171d'; // Used for headings level 1-6.
614
614
  export const GL_TEXT_COLOR_LINK = '#0b5cad'; // Used for default text links.
615
615
  export const GL_TEXT_COLOR_DANGER = '#c91c00'; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
616
- export const GL_TEXT_COLOR_SUCCESS = '#217645'; // Used for text indicating success or validity.
616
+ export const GL_TEXT_COLOR_SUCCESS = '#217645'; // Used for text indicating success, completion, approval, addition, or validity.
617
617
  export const GL_TEXT_COLOR_DISABLED = '#89888d'; // Used for disabled text.
@@ -13585,7 +13585,7 @@
13585
13585
  "success": {
13586
13586
  "value": "#52b87a",
13587
13587
  "$type": "color",
13588
- "comment": "Used for text indicating success or validity.",
13588
+ "comment": "Used for text indicating success, completion, approval, addition, or validity.",
13589
13589
  "filePath": "src/tokens/text.tokens.json",
13590
13590
  "isSource": true,
13591
13591
  "original": {
@@ -13594,7 +13594,7 @@
13594
13594
  "dark": "{color.green.300}"
13595
13595
  },
13596
13596
  "$type": "color",
13597
- "comment": "Used for text indicating success or validity."
13597
+ "comment": "Used for text indicating success, completion, approval, addition, or validity."
13598
13598
  },
13599
13599
  "name": "TEXT_COLOR_SUCCESS",
13600
13600
  "attributes": {},
@@ -13585,7 +13585,7 @@
13585
13585
  "success": {
13586
13586
  "value": "#217645",
13587
13587
  "$type": "color",
13588
- "comment": "Used for text indicating success or validity.",
13588
+ "comment": "Used for text indicating success, completion, approval, addition, or validity.",
13589
13589
  "filePath": "src/tokens/text.tokens.json",
13590
13590
  "isSource": true,
13591
13591
  "original": {
@@ -13594,7 +13594,7 @@
13594
13594
  "dark": "{color.green.300}"
13595
13595
  },
13596
13596
  "$type": "color",
13597
- "comment": "Used for text indicating success or validity."
13597
+ "comment": "Used for text indicating success, completion, approval, addition, or validity."
13598
13598
  },
13599
13599
  "name": "TEXT_COLOR_SUCCESS",
13600
13600
  "attributes": {},
@@ -415,7 +415,7 @@ $gl-action-neutral-background-color-active: rgba(137, 136, 141, 0.16); // Used f
415
415
  $gl-action-neutral-background-color-hover: rgba(137, 136, 141, 0.4); // Used for the background of a neutral action in the hover state.
416
416
  $gl-action-neutral-background-color-default: rgba(137, 136, 141, 0.0); // Used for the background of a neutral action in the default state.
417
417
  $gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
418
- $gl-text-color-success: $gl-color-green-300; // Used for text indicating success or validity.
418
+ $gl-text-color-success: $gl-color-green-300; // Used for text indicating success, completion, approval, addition, or validity.
419
419
  $gl-text-color-danger: $gl-color-red-300; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
420
420
  $gl-text-color-link: $gl-color-blue-300; // Used for default text links.
421
421
  $gl-text-color-heading: $gl-color-neutral-0; // Used for headings level 1-6.
@@ -415,7 +415,7 @@ $gl-action-neutral-background-color-active: rgba(83, 81, 88, 0.24); // Used for
415
415
  $gl-action-neutral-background-color-hover: rgba(164, 163, 168, 0.16); // Used for the background of a neutral action in the hover state.
416
416
  $gl-action-neutral-background-color-default: rgba(164, 163, 168, 0.0); // Used for the background of a neutral action in the default state.
417
417
  $gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
418
- $gl-text-color-success: $gl-color-green-600; // Used for text indicating success or validity.
418
+ $gl-text-color-success: $gl-color-green-600; // Used for text indicating success, completion, approval, addition, or validity.
419
419
  $gl-text-color-danger: $gl-color-red-600; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
420
420
  $gl-text-color-link: $gl-color-blue-700; // Used for default text links.
421
421
  $gl-text-color-heading: $gl-color-neutral-950; // Used for headings level 1-6.
@@ -82,7 +82,7 @@
82
82
  "dark": "{color.green.300}"
83
83
  },
84
84
  "$type": "color",
85
- "$description": "Used for text indicating success or validity."
85
+ "$description": "Used for text indicating success, completion, approval, addition, or validity."
86
86
  },
87
87
  "disabled": {
88
88
  "$value": {