@gitlab/ui 49.7.0 → 49.9.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/CHANGELOG.md +14 -0
- package/dist/components/base/new_dropdowns/listbox/listbox.js +8 -5
- package/dist/components/base/paginated_list/paginated_list.js +1 -1
- package/dist/components/base/path/path.js +1 -1
- package/dist/components/charts/area/area.js +1 -1
- package/dist/components/charts/bar/bar.js +1 -1
- package/dist/components/charts/column/column.js +1 -1
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
- package/dist/components/charts/gauge/gauge.js +1 -1
- package/dist/components/charts/heatmap/heatmap.js +1 -1
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/stacked_column/stacked_column.js +1 -1
- package/dist/components/mixins/toolbox_mixin.js +2 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/use_mock_intersection_observer.js +1 -1
- package/package.json +17 -9
- package/scss_to_js/scss_variables.js +17 -5
- package/scss_to_js/scss_variables.json +70 -10
- package/src/components/base/new_dropdowns/listbox/listbox.vue +10 -7
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +0 -8
- package/src/components/base/paginated_list/paginated_list.vue +4 -3
- package/src/components/base/path/__snapshots__/path.spec.js.snap +0 -30
- package/src/components/base/path/path.vue +1 -2
- package/src/components/charts/area/area.vue +1 -1
- package/src/components/charts/bar/bar.vue +1 -1
- package/src/components/charts/column/column.vue +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -1
- package/src/components/charts/gauge/gauge.vue +1 -1
- package/src/components/charts/heatmap/heatmap.vue +1 -1
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/stacked_column/stacked_column.vue +1 -1
- package/src/components/mixins/toolbox_mixin.js +1 -1
- package/src/components/utilities/intersection_observer/intersection_observer.spec.js +1 -1
- package/src/scss/utilities.scss +24 -0
- package/src/scss/utility-mixins/box-shadow.scss +21 -0
- package/src/scss/variables.scss +19 -5
- package/src/utils/use_mock_intersection_observer.js +1 -3
package/src/scss/utilities.scss
CHANGED
|
@@ -2081,6 +2081,30 @@
|
|
|
2081
2081
|
.gl-shadow-drawer\! {
|
|
2082
2082
|
box-shadow: -4px 0 8px $gray-200 !important
|
|
2083
2083
|
}
|
|
2084
|
+
|
|
2085
|
+
.gl-shadow-sm {
|
|
2086
|
+
box-shadow: 0 1px 2px rgba($gray-950, 0.1)
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
.gl-shadow-sm\! {
|
|
2090
|
+
box-shadow: 0 1px 2px rgba($gray-950, 0.1) !important
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
.gl-shadow-md {
|
|
2094
|
+
box-shadow: 0 2px 8px rgba($gray-950, 0.16), 0 0 2px rgba($gray-950, 0.16)
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
.gl-shadow-md\! {
|
|
2098
|
+
box-shadow: 0 2px 8px rgba($gray-950, 0.16), 0 0 2px rgba($gray-950, 0.16) !important
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
.gl-shadow-lg {
|
|
2102
|
+
box-shadow: 0 4px 12px rgba($gray-950, 0.16), 0 0 4px rgba($gray-950, 0.16)
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
.gl-shadow-lg\! {
|
|
2106
|
+
box-shadow: 0 4px 12px rgba($gray-950, 0.16), 0 0 4px rgba($gray-950, 0.16) !important
|
|
2107
|
+
}
|
|
2084
2108
|
.gl-clearfix {
|
|
2085
2109
|
&::after {
|
|
2086
2110
|
display: block;
|
|
@@ -185,3 +185,24 @@
|
|
|
185
185
|
@mixin gl-shadow-drawer {
|
|
186
186
|
box-shadow: -4px 0 8px $gray-200;
|
|
187
187
|
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* New utilities to match design specs
|
|
191
|
+
* Per https: //gitlab.com/gitlab-org/gitlab-ui/-/issues/615,
|
|
192
|
+
* some of the above could be replaced.
|
|
193
|
+
*
|
|
194
|
+
* These use gray instead of black to align with
|
|
195
|
+
* tinted neutrals.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
@mixin gl-shadow-sm {
|
|
199
|
+
box-shadow: 0 1px 2px rgba($gray-950, 0.1);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@mixin gl-shadow-md {
|
|
203
|
+
box-shadow: 0 2px 8px rgba($gray-950, 0.16), 0 0 2px rgba($gray-950, 0.16);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@mixin gl-shadow-lg {
|
|
207
|
+
box-shadow: 0 4px 12px rgba($gray-950, 0.16), 0 0 4px rgba($gray-950, 0.16);
|
|
208
|
+
}
|
package/src/scss/variables.scss
CHANGED
|
@@ -150,6 +150,19 @@ $gray-800: #434248 !default;
|
|
|
150
150
|
$gray-900: #333238 !default;
|
|
151
151
|
$gray-950: #1f1e24 !default;
|
|
152
152
|
|
|
153
|
+
// Brand colours https://design.gitlab.com/brand-design/color
|
|
154
|
+
$brand-charcoal: #171321 !default;
|
|
155
|
+
$brand-orange-01: #fca326 !default;
|
|
156
|
+
$brand-orange-02: #fc6d26 !default;
|
|
157
|
+
$brand-orange-03: #e24329 !default;
|
|
158
|
+
$brand-purple-01: #a989f5 !default;
|
|
159
|
+
$brand-purple-02: #7759c2 !default;
|
|
160
|
+
$brand-gray-01: #d1d0d3 !default;
|
|
161
|
+
$brand-gray-02: #a2a1a6 !default;
|
|
162
|
+
$brand-gray-03: #74717a !default;
|
|
163
|
+
$brand-gray-04: #45424d !default;
|
|
164
|
+
$brand-gray-05: #2b2838 !default;
|
|
165
|
+
|
|
153
166
|
// The indigo light and indigo dark use $theme-indigo variables.
|
|
154
167
|
$theme-indigo-50: #f1f1ff !default;
|
|
155
168
|
$theme-indigo-100: #dbdbf8 !default;
|
|
@@ -291,11 +304,12 @@ $darken-dark-factor: 10%;
|
|
|
291
304
|
$darken-border-factor: 5%;
|
|
292
305
|
$darken-border-dashed-factor: 25%;
|
|
293
306
|
|
|
294
|
-
$t-gray-a-02: rgba($
|
|
295
|
-
$t-gray-a-04: rgba($
|
|
296
|
-
$t-gray-a-06: rgba($
|
|
297
|
-
$t-gray-a-08: rgba(
|
|
298
|
-
$t-gray-a-
|
|
307
|
+
$t-gray-a-02: rgba($gray-950, 0.02);
|
|
308
|
+
$t-gray-a-04: rgba($gray-950, 0.04);
|
|
309
|
+
$t-gray-a-06: rgba($gray-950, 0.06);
|
|
310
|
+
$t-gray-a-08: rgba($gray-950, 0.08);
|
|
311
|
+
$t-gray-a-16: rgba($gray-950, 0.16);
|
|
312
|
+
$t-gray-a-24: rgba($gray-950, 0.24);
|
|
299
313
|
|
|
300
314
|
// Text
|
|
301
315
|
$gl-text-color: $gray-900 !default;
|
|
@@ -63,7 +63,7 @@ class MockIntersectionObserver extends MockObserver {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const useMockIntersectionObserver = () => {
|
|
66
|
+
export const useMockIntersectionObserver = () => {
|
|
67
67
|
let instances;
|
|
68
68
|
let origObserver;
|
|
69
69
|
|
|
@@ -94,5 +94,3 @@ const useMockIntersectionObserver = () => {
|
|
|
94
94
|
|
|
95
95
|
return { getInstances, trigger };
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
export default useMockIntersectionObserver;
|