@gitlab/ui 122.3.0 → 122.4.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/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/package.json +7 -7
- package/src/components/base/alert/alert.scss +2 -2
- package/src/components/base/avatar/avatar.scss +18 -18
- package/src/components/base/banner/banner.scss +1 -1
- package/src/components/base/drawer/drawer.scss +2 -2
- package/src/components/base/form/form_input/form_input.scss +1 -1
- package/src/components/base/form/form_select/form_select.scss +1 -1
- package/src/components/utilities/truncate_text/truncate_text.scss +1 -1
- package/src/scss/mixins.scss +71 -0
- package/src/vendor/bootstrap/scss/mixins/_breakpoints.scss +0 -21
- package/src/components/regions/dashboard_skeleton/dashboard_skeleton.md +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "122.
|
|
3
|
+
"version": "122.4.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"rollup-plugin-vue/@vue/component-compiler/postcss-modules-sync/generic-names/loader-utils": "3.3.1"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@babel/core": "^7.28.
|
|
99
|
+
"@babel/core": "^7.28.4",
|
|
100
100
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
101
101
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
102
102
|
"@babel/preset-env": "^7.28.3",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"@storybook/vue3": "^7.6.20",
|
|
123
123
|
"@storybook/vue3-webpack5": "^7.6.20",
|
|
124
124
|
"@types/jest-image-snapshot": "^6.4.0",
|
|
125
|
-
"@vue/compat": "^3.5.
|
|
126
|
-
"@vue/compiler-sfc": "^3.5.
|
|
127
|
-
"@vue/server-renderer": "^3.5.
|
|
125
|
+
"@vue/compat": "^3.5.21",
|
|
126
|
+
"@vue/compiler-sfc": "^3.5.21",
|
|
127
|
+
"@vue/server-renderer": "^3.5.21",
|
|
128
128
|
"@vue/test-utils": "1.3.6",
|
|
129
129
|
"@vue/test-utils-vue3": "npm:@vue/test-utils@^2.4.6",
|
|
130
130
|
"@vue/vue2-jest": "29.2.6",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"axe-playwright": "^2.1.0",
|
|
137
137
|
"babel-loader": "^9.2.1",
|
|
138
138
|
"cypress": "14.5.4",
|
|
139
|
-
"cypress-real-events": "^1.
|
|
139
|
+
"cypress-real-events": "^1.15.0",
|
|
140
140
|
"dompurify": "^3.1.2",
|
|
141
141
|
"emoji-regex": "^10.5.0",
|
|
142
142
|
"esbuild": "^0.25.9",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"rollup-plugin-string": "^3.0.0",
|
|
166
166
|
"rollup-plugin-svg": "^2.0.0",
|
|
167
167
|
"rollup-plugin-vue": "^5.1.9",
|
|
168
|
-
"sass": "^1.92.
|
|
168
|
+
"sass": "^1.92.1",
|
|
169
169
|
"sass-loader": "^10.5.2",
|
|
170
170
|
"sass-true": "^9",
|
|
171
171
|
"start-server-and-test": "^2.1.0",
|
|
@@ -101,7 +101,7 @@ $gl-alert-top-border-size: 2px;
|
|
|
101
101
|
.gl-alert-actions {
|
|
102
102
|
@apply gl-flex gl-flex-col gl-flex-wrap gl-gap-y-3;
|
|
103
103
|
@apply gl-mt-3;
|
|
104
|
-
@include gl-
|
|
104
|
+
@include gl-container-width-up(sm) {
|
|
105
105
|
@apply gl-flex-row;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -110,7 +110,7 @@ $gl-alert-top-border-size: 2px;
|
|
|
110
110
|
@apply gl-mr-0 gl-w-full;
|
|
111
111
|
@apply gl-text-base;
|
|
112
112
|
@apply gl-leading-normal;
|
|
113
|
-
@include gl-
|
|
113
|
+
@include gl-container-width-up(sm) {
|
|
114
114
|
@apply gl-mr-3 gl-w-auto;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -103,109 +103,109 @@ $gl-avatar-identicon-texts: var(--gl-avatar-fallback-text-color-red),
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.gl-sm-avatar-s16 {
|
|
106
|
-
@include gl-
|
|
106
|
+
@include gl-container-width-up(sm) {
|
|
107
107
|
@include gl-avatar-s16;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.gl-md-avatar-s16 {
|
|
112
|
-
@include gl-
|
|
112
|
+
@include gl-container-width-up(md) {
|
|
113
113
|
@include gl-avatar-s16;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.gl-lg-avatar-s16 {
|
|
118
|
-
@include gl-
|
|
118
|
+
@include gl-container-width-up(lg) {
|
|
119
119
|
@include gl-avatar-s16;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.gl-sm-avatar-s24 {
|
|
124
|
-
@include gl-
|
|
124
|
+
@include gl-container-width-up(sm) {
|
|
125
125
|
@include gl-avatar-s24;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.gl-md-avatar-s24 {
|
|
130
|
-
@include gl-
|
|
130
|
+
@include gl-container-width-up(md) {
|
|
131
131
|
@include gl-avatar-s24;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.gl-lg-avatar-s24 {
|
|
136
|
-
@include gl-
|
|
136
|
+
@include gl-container-width-up(lg) {
|
|
137
137
|
@include gl-avatar-s24;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.gl-sm-avatar-s32 {
|
|
142
|
-
@include gl-
|
|
142
|
+
@include gl-container-width-up(sm) {
|
|
143
143
|
@include gl-avatar-s32;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.gl-md-avatar-s32 {
|
|
148
|
-
@include gl-
|
|
148
|
+
@include gl-container-width-up(md) {
|
|
149
149
|
@include gl-avatar-s32;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.gl-lg-avatar-s32 {
|
|
154
|
-
@include gl-
|
|
154
|
+
@include gl-container-width-up(lg) {
|
|
155
155
|
@include gl-avatar-s32;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.gl-sm-avatar-s48 {
|
|
160
|
-
@include gl-
|
|
160
|
+
@include gl-container-width-up(sm) {
|
|
161
161
|
@include gl-avatar-s48;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.gl-md-avatar-s48 {
|
|
166
|
-
@include gl-
|
|
166
|
+
@include gl-container-width-up(md) {
|
|
167
167
|
@include gl-avatar-s48;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.gl-lg-avatar-s48 {
|
|
172
|
-
@include gl-
|
|
172
|
+
@include gl-container-width-up(lg) {
|
|
173
173
|
@include gl-avatar-s48;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.gl-sm-avatar-s64 {
|
|
178
|
-
@include gl-
|
|
178
|
+
@include gl-container-width-up(sm) {
|
|
179
179
|
@include gl-avatar-s64;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.gl-md-avatar-s64 {
|
|
184
|
-
@include gl-
|
|
184
|
+
@include gl-container-width-up(md) {
|
|
185
185
|
@include gl-avatar-s64;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.gl-lg-avatar-s64 {
|
|
190
|
-
@include gl-
|
|
190
|
+
@include gl-container-width-up(lg) {
|
|
191
191
|
@include gl-avatar-s64;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.gl-sm-avatar-s96 {
|
|
196
|
-
@include gl-
|
|
196
|
+
@include gl-container-width-up(sm) {
|
|
197
197
|
@include gl-avatar-s96;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.gl-md-avatar-s96 {
|
|
202
|
-
@include gl-
|
|
202
|
+
@include gl-container-width-up(md) {
|
|
203
203
|
@include gl-avatar-s96;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.gl-lg-avatar-s96 {
|
|
208
|
-
@include gl-
|
|
208
|
+
@include gl-container-width-up(lg) {
|
|
209
209
|
@include gl-avatar-s96;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -28,7 +28,7 @@ $gl-drawer-scrim-gradient: linear-gradient(
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.gl-drawer-default {
|
|
31
|
-
@include
|
|
31
|
+
@include gl-container-width-up(md) {
|
|
32
32
|
width: $gl-drawer-width;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -39,7 +39,7 @@ $gl-drawer-scrim-gradient: linear-gradient(
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.gl-drawer-sidebar {
|
|
42
|
-
@include
|
|
42
|
+
@include gl-container-width-up(md) {
|
|
43
43
|
width: $gl-sidebar-width;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
@each $breakpointName, $breakpointSize in $gl-form-input-sizes {
|
|
65
65
|
@if $breakpointName != xs {
|
|
66
66
|
.gl-#{$breakpointName}-form-input-#{$name} {
|
|
67
|
-
@include gl-
|
|
67
|
+
@include gl-container-width-up($breakpointName) {
|
|
68
68
|
max-width: $size;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -106,7 +106,7 @@ See: https://gitlab.com/gitlab-org/gitlab/issues/30055
|
|
|
106
106
|
@each $breakpointName, $breakpointSize in $gl-form-input-sizes {
|
|
107
107
|
@if $breakpointName != xs {
|
|
108
108
|
.gl-#{$breakpointName}-form-select-#{$name} {
|
|
109
|
-
@include gl-
|
|
109
|
+
@include gl-container-width-up($breakpointName) {
|
|
110
110
|
max-width: $size;
|
|
111
111
|
}
|
|
112
112
|
}
|
package/src/scss/mixins.scss
CHANGED
|
@@ -145,6 +145,77 @@
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
@mixin gl-container-width-up($name, $containerName: '', $includeMQFallback: true) {
|
|
149
|
+
$min: map.get($breakpoints, $name);
|
|
150
|
+
@if $min == null {
|
|
151
|
+
@error "#{$name} is not a valid breakpoint for this @container query.";
|
|
152
|
+
}
|
|
153
|
+
@if $min != 0 {
|
|
154
|
+
@container #{$containerName} (min-width: #{$min}) {
|
|
155
|
+
@if & {
|
|
156
|
+
:where(html.with-gl-container-queries) & {
|
|
157
|
+
@content
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
@else {
|
|
161
|
+
:where(html.with-gl-container-queries) {
|
|
162
|
+
@content
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
@if $includeMQFallback {
|
|
167
|
+
@media (min-width: $min) {
|
|
168
|
+
@if & {
|
|
169
|
+
:where(html:not(.with-gl-container-queries)) & {
|
|
170
|
+
@content;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
@else {
|
|
174
|
+
:where(html:not(.with-gl-container-queries)) {
|
|
175
|
+
@content
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
} @else {
|
|
181
|
+
@content;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@mixin gl-container-width-down($name, $containerName: '', $includeMQFallback: true) {
|
|
186
|
+
$max: map.get($breakpoints, $name);
|
|
187
|
+
@if ($max == null or $max == 0) {
|
|
188
|
+
@error "#{$name} is not a valid breakpoint for this @container query.";
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@container #{$containerName} (width < #{$max}) {
|
|
192
|
+
@if & {
|
|
193
|
+
:where(html.with-gl-container-queries) & {
|
|
194
|
+
@content;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
@else {
|
|
198
|
+
:where(html.with-gl-container-queries) {
|
|
199
|
+
@content;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
@if $includeMQFallback {
|
|
204
|
+
@media (width < $max) {
|
|
205
|
+
@if & {
|
|
206
|
+
:where(html:not(.with-gl-container-queries)) & {
|
|
207
|
+
@content;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
@else {
|
|
211
|
+
:where(html:not(.with-gl-container-queries)) {
|
|
212
|
+
@content;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
148
219
|
/**
|
|
149
220
|
* Helper function to resolve font-size value from $gl-font-sizes and
|
|
150
221
|
* $gl-font-sizes-fixed maps.
|
|
@@ -81,27 +81,6 @@
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
// Media that spans multiple breakpoint widths.
|
|
85
|
-
// Makes the @content apply between the min and max breakpoints
|
|
86
|
-
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
87
|
-
$min: breakpoint-min($lower, $breakpoints);
|
|
88
|
-
$max: breakpoint-max($upper, $breakpoints);
|
|
89
|
-
|
|
90
|
-
@if $min != null and $max != null {
|
|
91
|
-
@media (min-width: $min) and (max-width: $max) {
|
|
92
|
-
@content;
|
|
93
|
-
}
|
|
94
|
-
} @else if $max == null {
|
|
95
|
-
@include media-breakpoint-up($lower, $breakpoints) {
|
|
96
|
-
@content;
|
|
97
|
-
}
|
|
98
|
-
} @else if $min == null {
|
|
99
|
-
@include media-breakpoint-down($upper, $breakpoints) {
|
|
100
|
-
@content;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
84
|
// Media between the breakpoint's minimum and maximum widths.
|
|
106
85
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
107
86
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|