@gitlab/ui 95.1.1 → 95.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "95.1.1",
3
+ "version": "95.2.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -107,13 +107,13 @@
107
107
  },
108
108
  "devDependencies": {
109
109
  "@arkweid/lefthook": "0.7.7",
110
- "@babel/core": "^7.25.2",
110
+ "@babel/core": "^7.25.7",
111
111
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
112
112
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
113
- "@babel/preset-env": "^7.25.4",
114
- "@babel/preset-react": "^7.24.7",
113
+ "@babel/preset-env": "^7.25.7",
114
+ "@babel/preset-react": "^7.25.7",
115
115
  "@cypress/grep": "^4.0.1",
116
- "@gitlab/eslint-plugin": "20.2.1",
116
+ "@gitlab/eslint-plugin": "20.3.0",
117
117
  "@gitlab/fonts": "^1.3.0",
118
118
  "@gitlab/stylelint-config": "6.2.2",
119
119
  "@gitlab/svgs": "3.117.0",
@@ -24,7 +24,7 @@ $gl-avatar-identicon-texts: var(--gl-avatar-fallback-text-color-red),
24
24
  @apply gl-overflow-hidden;
25
25
  @apply gl-shrink-0;
26
26
  @apply gl-leading-1;
27
- @include gl-object-fit-contain;
27
+ @apply gl-object-contain;
28
28
  outline: 1px solid var(--gl-avatar-border-color-default);
29
29
  outline-offset: -1px;
30
30
  }
@@ -2,7 +2,7 @@
2
2
  @apply gl-inline-flex;
3
3
 
4
4
  .gl-avatar {
5
- @include gl-transition-property-border-color;
5
+ @apply gl-transition-border-color;
6
6
  @apply gl-duration-slow;
7
7
  @apply gl-ease-ease;
8
8
  }
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .gl-banner-title {
20
- @include gl-heading-scale-500;
20
+ @apply gl-heading-scale-500;
21
21
  @apply gl-mb-3;
22
22
  color: var(--gl-text-color-heading);
23
23
  }
@@ -124,7 +124,7 @@ $gl-broadcast-message-padding-x: var(--gl-broadcast-message-padding-x, 0px);
124
124
  &-text {
125
125
  margin-top: -$gl-spacing-scale-1;
126
126
  margin-bottom: -$gl-spacing-scale-1;
127
- @include gl-overflow-anywhere;
127
+ @apply gl-hyphens-auto gl-break-anywhere;
128
128
  }
129
129
 
130
130
  &-dismiss {
@@ -72,7 +72,7 @@
72
72
  @if $feature-button-border {
73
73
  :focus,
74
74
  &:focus:active {
75
- @include gl-focus;
75
+ @apply gl-focus;
76
76
  }
77
77
  } @else {
78
78
  &:focus {
@@ -101,7 +101,7 @@
101
101
  background-color: var(--gl-button-default-primary-background-color-default);
102
102
  @apply gl-leading-normal;
103
103
  color: var(--gl-button-default-primary-foreground-color-default);
104
- @include gl-fill-current-color;
104
+ @apply gl-fill-current;
105
105
  @apply gl-justify-center;
106
106
  @apply gl-items-center;
107
107
  @apply gl-text-base;
@@ -126,7 +126,7 @@
126
126
  @if $feature-button-border {
127
127
  &:focus,
128
128
  &:focus:active {
129
- @include gl-focus;
129
+ @apply gl-focus;
130
130
  }
131
131
  } @else {
132
132
  @media (forced-colors: active) {
@@ -462,7 +462,7 @@
462
462
 
463
463
  &:hover {
464
464
  @if $feature-button-border {
465
- @include gl-text-green-700;
465
+ @apply gl-text-green-700;
466
466
  border-color: $green-700;
467
467
  background-color: $green-50;
468
468
  } @else {
@@ -616,7 +616,7 @@
616
616
  @apply gl-leading-normal;
617
617
  color: var(--gl-button-link-text-color-default);
618
618
  @if $feature-button-border {
619
- @include gl-px-0;
619
+ @apply gl-px-0;
620
620
  min-height: auto;
621
621
  min-width: auto;
622
622
  text-decoration-thickness: auto;
@@ -139,12 +139,12 @@ $gl-drawer-scrim-gradient: linear-gradient(
139
139
  }
140
140
 
141
141
  .gl-drawer-enter-to {
142
- @include gl-translate-x-0;
142
+ @apply gl-translate-x-0;
143
143
  }
144
144
 
145
145
  .gl-drawer-enter,
146
146
  .gl-drawer-leave-to {
147
- @include gl-translate-x-100;
147
+ @apply gl-translate-x-full;
148
148
  }
149
149
 
150
150
  .gl-drawer-enter-active,
@@ -8,7 +8,7 @@
8
8
  @apply gl-p-0;
9
9
  @apply gl-bg-transparent;
10
10
  @apply gl-border-none;
11
- @include gl-outline-none;
11
+ @apply gl-outline-none;
12
12
  @apply gl-h-6;
13
13
  @apply gl-w-full;
14
14
  min-width: $gl-dropdown-width;
@@ -16,7 +16,7 @@
16
16
  @apply gl-h-full;
17
17
  @apply gl-bg-transparent;
18
18
  @apply gl-border-none;
19
- @include gl-outline-none;
19
+ @apply gl-outline-none;
20
20
  min-width: $gl-dropdown-width;
21
21
  }
22
22
 
@@ -39,7 +39,7 @@ $label-padding-horizontal-half: 0.375 * $grid-size;
39
39
  &:focus:active {
40
40
  @apply gl-text-inherit;
41
41
  @apply gl-shadow-none;
42
- @include gl-outline-none;
42
+ @apply gl-outline-none;
43
43
  }
44
44
  }
45
45
 
@@ -11,37 +11,37 @@
11
11
 
12
12
  h1,
13
13
  .gl-h1 {
14
- @include gl-heading-1;
14
+ @apply gl-heading-1;
15
15
  @apply gl-mt-7;
16
16
  }
17
17
 
18
18
  h2,
19
19
  .gl-h2 {
20
- @include gl-heading-2;
20
+ @apply gl-heading-2;
21
21
  @apply gl-mt-6;
22
22
  }
23
23
 
24
24
  h3,
25
25
  .gl-h3 {
26
- @include gl-heading-3;
26
+ @apply gl-heading-3;
27
27
  @apply gl-mt-6;
28
28
  }
29
29
 
30
30
  h4,
31
31
  .gl-h4 {
32
- @include gl-heading-4;
32
+ @apply gl-heading-4;
33
33
  @apply gl-mt-5;
34
34
  }
35
35
 
36
36
  h5,
37
37
  .gl-h5 {
38
- @include gl-heading-5;
38
+ @apply gl-heading-5;
39
39
  @apply gl-mt-5;
40
40
  }
41
41
 
42
42
  h6,
43
43
  .gl-h6 {
44
- @include gl-heading-6;
44
+ @apply gl-heading-6;
45
45
  @apply gl-mt-5;
46
46
  }
47
47
 
@@ -171,37 +171,37 @@
171
171
 
172
172
  h1,
173
173
  .gl-h1 {
174
- @include gl-heading-1-fixed;
174
+ @apply gl-heading-1-fixed;
175
175
  @apply gl-mt-7;
176
176
  }
177
177
 
178
178
  h2,
179
179
  .gl-h2 {
180
- @include gl-heading-2-fixed;
180
+ @apply gl-heading-2-fixed;
181
181
  @apply gl-mt-6;
182
182
  }
183
183
 
184
184
  h3,
185
185
  .gl-h3 {
186
- @include gl-heading-3-fixed;
186
+ @apply gl-heading-3-fixed;
187
187
  @apply gl-mt-6;
188
188
  }
189
189
 
190
190
  h4,
191
191
  .gl-h4 {
192
- @include gl-heading-4-fixed;
192
+ @apply gl-heading-4-fixed;
193
193
  @apply gl-mt-5;
194
194
  }
195
195
 
196
196
  h5,
197
197
  .gl-h5 {
198
- @include gl-heading-5-fixed;
198
+ @apply gl-heading-5-fixed;
199
199
  @apply gl-mt-5;
200
200
  }
201
201
 
202
202
  h6,
203
203
  .gl-h6 {
204
- @include gl-heading-6-fixed;
204
+ @apply gl-heading-6-fixed;
205
205
  @apply gl-mt-5;
206
206
  }
207
207
 
@@ -58,7 +58,7 @@ body.modal-open {
58
58
  @apply gl-border-none;
59
59
 
60
60
  .modal-title {
61
- @include gl-heading-scale-500;
61
+ @apply gl-heading-scale-500;
62
62
  color: var(--gl-text-color-heading);
63
63
  }
64
64
  }
@@ -36,7 +36,7 @@
36
36
  &:not(.active):focus,
37
37
  &:not(.active):active,
38
38
  &:not(.active).active {
39
- @include gl-focus();
39
+ @apply gl-focus;
40
40
  }
41
41
 
42
42
  &,
@@ -54,7 +54,7 @@
54
54
  @apply gl-shadow-none;
55
55
 
56
56
  &:focus {
57
- @include gl-focus();
57
+ @apply gl-focus;
58
58
  }
59
59
  }
60
60
 
@@ -11,7 +11,7 @@ $path-chevron-right-margin: px-to-rem(14px);
11
11
 
12
12
  // Mixins
13
13
  @mixin gl-path-chevron {
14
- @include gl-reset-bg;
14
+ @apply gl-bg-inherit;
15
15
  content: '';
16
16
  position: absolute;
17
17
  top: $path-chevron-top;
@@ -74,13 +74,13 @@ $gl-popover-max-width: $grid-size * 35;
74
74
 
75
75
  .popover-header {
76
76
  color: var(--gl-text-color-heading);
77
- @include gl-heading-scale-200;
77
+ @apply gl-heading-scale-200;
78
78
  @apply gl-border-b-0;
79
79
  @apply gl-pb-0;
80
80
  }
81
81
 
82
82
  &.has-title .popover-header {
83
- @include gl-overflow-anywhere;
83
+ @apply gl-hyphens-auto gl-break-anywhere;
84
84
  display: flex;
85
85
  align-items: flex-start;
86
86
  justify-content: space-between;
@@ -37,8 +37,8 @@
37
37
  @apply gl-text-base;
38
38
  @apply gl-leading-normal;
39
39
  @apply gl-text-gray-900;
40
- @include gl-fill-current-color;
41
- @include gl-bg-gray-10;
40
+ @apply gl-fill-current;
41
+ @apply gl-bg-gray-10;
42
42
  border-color: $gray-200;
43
43
 
44
44
  &:not(:first-child) {
@@ -51,32 +51,32 @@
51
51
 
52
52
  &:hover {
53
53
  border-color: $gray-400;
54
- @include gl-bg-gray-50;
54
+ @apply gl-bg-gray-50;
55
55
  }
56
56
 
57
57
  &.focus {
58
- @include gl-z-index-1;
58
+ @apply gl-z-1;
59
59
  border-color: $gray-400;
60
- @include gl-focus;
61
- @include gl-bg-gray-50;
60
+ @apply gl-focus;
61
+ @apply gl-bg-gray-50;
62
62
  }
63
63
 
64
64
  &.active {
65
- @include gl-z-index-2;
65
+ @apply gl-z-2;
66
66
  border-color: $gray-400;
67
67
  @include gl-inset-border-1-gray-400;
68
- @include gl-bg-white;
68
+ @apply gl-bg-white;
69
69
 
70
70
  &:hover {
71
71
  @include gl-inset-border-1-gray-400;
72
- @include gl-bg-gray-50;
72
+ @apply gl-bg-gray-50;
73
73
  }
74
74
 
75
75
  &.focus,
76
76
  &.focus:hover {
77
77
  border-color: $gray-400;
78
- @include gl-focus;
79
- @include gl-bg-gray-50;
78
+ @apply gl-focus;
79
+ @apply gl-bg-gray-50;
80
80
  }
81
81
  }
82
82
 
@@ -88,10 +88,10 @@
88
88
  &[disabled],
89
89
  &.disabled:hover,
90
90
  &[disabled]:hover {
91
- @include gl-text-gray-400;
91
+ @apply gl-text-gray-400;
92
92
  border-color: $gray-200;
93
- @include gl-z-index-0;
94
- @include gl-cursor-not-allowed;
93
+ @apply gl-z-0;
94
+ @apply gl-cursor-not-allowed;
95
95
 
96
96
  &:first-child {
97
97
  border-right-color: transparent;
@@ -106,15 +106,15 @@
106
106
  } @else {
107
107
  .gl-segmented-control {
108
108
  label:not(.disabled) {
109
- @include gl-cursor-pointer;
109
+ @apply gl-cursor-pointer;
110
110
  }
111
111
 
112
112
  .btn-gl-segmented-button {
113
- @include gl-font-base;
114
- @include gl-line-height-normal;
115
- @include gl-text-gray-900;
116
- @include gl-fill-current-color;
117
- @include gl-bg-gray-10;
113
+ @apply gl-text-base;
114
+ @apply gl-leading-normal;
115
+ @apply gl-text-gray-900;
116
+ @apply gl-fill-current;
117
+ @apply gl-bg-gray-10;
118
118
  @include gl-inset-border-y-1-gray-200;
119
119
 
120
120
  &:first-child {
@@ -127,34 +127,34 @@
127
127
 
128
128
  &:hover {
129
129
  @include gl-inset-border-2-gray-400;
130
- @include gl-bg-gray-50;
130
+ @apply gl-bg-gray-50;
131
131
  }
132
132
 
133
133
  &.focus {
134
- @include gl-z-index-1;
134
+ @apply gl-z-1;
135
135
  @include gl-btn-gl-segmented-button-focus($gray-400);
136
- @include gl-bg-gray-50;
136
+ @apply gl-bg-gray-50;
137
137
  }
138
138
 
139
139
  &.active {
140
- @include gl-z-index-2;
140
+ @apply gl-z-2;
141
141
  @include gl-inset-border-2-gray-300;
142
- @include gl-bg-white;
142
+ @apply gl-bg-white;
143
143
 
144
144
  &:hover {
145
145
  @include gl-inset-border-2-gray-400;
146
- @include gl-bg-gray-50;
146
+ @apply gl-bg-gray-50;
147
147
  }
148
148
 
149
149
  &.focus,
150
150
  &.focus:hover {
151
151
  @include gl-btn-gl-segmented-button-focus($gray-400);
152
- @include gl-bg-gray-50;
152
+ @apply gl-bg-gray-50;
153
153
  }
154
154
  }
155
155
 
156
156
  &:focus-within {
157
- @include gl-focus;
157
+ @apply gl-focus;
158
158
  }
159
159
 
160
160
  &.disabled,
@@ -35,7 +35,7 @@ $toggle-height: 2.5 * $grid-size;
35
35
  @apply gl-bg-gray-200;
36
36
 
37
37
  .toggle-icon > svg {
38
- @include gl-fill-gray-200;
38
+ @apply gl-fill-gray-200;
39
39
  }
40
40
  }
41
41
 
@@ -43,7 +43,7 @@ $toggle-height: 2.5 * $grid-size;
43
43
  @apply gl-bg-blue-200;
44
44
 
45
45
  .toggle-icon > svg {
46
- @include gl-fill-blue-200;
46
+ @apply gl-fill-blue-200;
47
47
  }
48
48
  }
49
49
 
@@ -90,10 +90,10 @@ $toggle-height: 2.5 * $grid-size;
90
90
  position: relative;
91
91
  width: $toggle-width;
92
92
  height: $toggle-height;
93
- @include gl-outline-none;
93
+ @apply gl-outline-none;
94
94
  user-select: none;
95
95
  @apply gl-rounded-pill;
96
- @include gl-transition-slow;
96
+ @apply gl-duration-slow;
97
97
  @apply gl-leading-normal;
98
98
 
99
99
  &::selection,
@@ -134,8 +134,8 @@ $toggle-height: 2.5 * $grid-size;
134
134
  > svg {
135
135
  @apply gl-w-4;
136
136
  @apply gl-h-4;
137
- @include gl-fill-gray-600;
138
- @include gl-vertical-align-baseline;
137
+ @apply gl-fill-gray-600;
138
+ @apply gl-align-baseline;
139
139
  }
140
140
  }
141
141
 
@@ -153,7 +153,7 @@ $toggle-height: 2.5 * $grid-size;
153
153
  transform: translateX($toggle-translate-width);
154
154
 
155
155
  > svg {
156
- @include gl-fill-blue-500;
156
+ @apply gl-fill-blue-500;
157
157
  }
158
158
  }
159
159
  }
@@ -214,10 +214,25 @@
214
214
  background-color: var(--gl-action-neutral-background-color-focus);
215
215
  border-color: var(--gl-action-neutral-border-color-focus);
216
216
  }
217
-
217
+
218
218
  &:active {
219
219
  color: var(--gl-action-neutral-foreground-color-active);
220
220
  background-color: var(--gl-action-neutral-background-color-active);
221
221
  border-color: var(--gl-action-neutral-border-color-active);
222
222
  }
223
223
  }
224
+
225
+ @mixin gl-prefers-reduced-motion-transition {
226
+ @media (prefers-reduced-motion) {
227
+ transition-duration: .01ms !important;
228
+ transition-delay: 0ms !important;
229
+ }
230
+ }
231
+
232
+ @mixin gl-prefers-reduced-motion-animation {
233
+ @media (prefers-reduced-motion) {
234
+ animation-duration: .01ms !important;
235
+ animation-iteration-count: 1 !important;
236
+ animation-delay: 0ms !important;
237
+ }
238
+ }
@@ -31,6 +31,11 @@ $feature-button-border: true;
31
31
  padding-bottom: 0 !important;
32
32
  }
33
33
 
34
+ .bootstrap-vue-docs {
35
+ @import "../vendor/bootstrap-vue/docs/assets/css/docs.min";
36
+ @import "../vendor/bootstrap-vue/docs/assets/scss/styles";
37
+ }
38
+
34
39
  // This imports the tailwind.css file.
35
40
  // Note that adding `.css` here would break the inline import.
36
41
  // These utilities are imported last, because that's
@@ -73,36 +73,6 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
73
73
  }
74
74
  }
75
75
 
76
- .gl-prefers-reduced-motion-transition {
77
- @media (prefers-reduced-motion) {
78
- transition-duration: .01ms !important;
79
- transition-delay: 0ms !important;
80
- }
81
- }
82
-
83
- .gl-prefers-reduced-motion-transition\! {
84
- @media (prefers-reduced-motion) {
85
- transition-duration: .01ms !important;
86
- transition-delay: 0ms !important;
87
- }
88
- }
89
-
90
- .gl-prefers-reduced-motion-animation {
91
- @media (prefers-reduced-motion) {
92
- animation-duration: .01ms !important;
93
- animation-iteration-count: 1 !important;
94
- animation-delay: 0ms !important;
95
- }
96
- }
97
-
98
- .gl-prefers-reduced-motion-animation\! {
99
- @media (prefers-reduced-motion) {
100
- animation-duration: .01ms !important;
101
- animation-iteration-count: 1 !important;
102
- animation-delay: 0ms !important;
103
- }
104
- }
105
-
106
76
  .gl-spin {
107
77
  animation: gl-spinner-rotate 2s infinite linear;
108
78
  }
@@ -1,18 +1,3 @@
1
- @mixin gl-prefers-reduced-motion-transition {
2
- @media (prefers-reduced-motion) {
3
- transition-duration: .01ms !important;
4
- transition-delay: 0ms !important;
5
- }
6
- }
7
-
8
- @mixin gl-prefers-reduced-motion-animation {
9
- @media (prefers-reduced-motion) {
10
- animation-duration: .01ms !important;
11
- animation-iteration-count: 1 !important;
12
- animation-delay: 0ms !important;
13
- }
14
- }
15
-
16
1
  @keyframes gl-spinner-rotate {
17
2
  0% {
18
3
  transform: rotate(0);
@@ -526,6 +526,7 @@ module.exports = {
526
526
  },
527
527
  transitionProperty: {
528
528
  'box-shadow': 'box-shadow',
529
+ 'border-color': 'border-color',
529
530
  'stroke-opacity': 'stroke-opacity',
530
531
  background: 'background',
531
532
  left: 'left',