@gitlab/ui 113.3.1 → 113.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +5 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/tailwind.css +1 -1
  6. package/dist/tailwind.css.map +1 -1
  7. package/package.json +5 -5
  8. package/src/components/base/animated_icon/animated_icon.scss +2 -2
  9. package/src/components/base/avatar/avatar.scss +12 -9
  10. package/src/components/base/badge/badge.scss +1 -1
  11. package/src/components/base/breadcrumb/breadcrumb.scss +1 -1
  12. package/src/components/base/button/button.scss +4 -4
  13. package/src/components/base/form/form_input/form_input.scss +4 -4
  14. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +14 -4
  15. package/src/components/base/new_dropdowns/dropdown_item.scss +2 -2
  16. package/src/components/base/pagination/pagination.scss +4 -4
  17. package/src/components/charts/single_stat/single_stat.scss +3 -1
  18. package/src/scss/functions.scss +4 -3
  19. package/src/scss/mixins.scss +6 -4
  20. package/src/scss/variables.scss +9 -8
  21. package/src/vendor/bootstrap/scss/_custom-forms.scss +3 -3
  22. package/src/vendor/bootstrap/scss/_dropdown.scss +2 -1
  23. package/src/vendor/bootstrap/scss/_forms.scss +2 -1
  24. package/src/vendor/bootstrap/scss/_functions.scss +36 -30
  25. package/src/vendor/bootstrap/scss/_list-group.scss +2 -1
  26. package/src/vendor/bootstrap/scss/_modal.scss +1 -1
  27. package/src/vendor/bootstrap/scss/_navbar.scss +2 -1
  28. package/src/vendor/bootstrap/scss/_popover.scss +2 -1
  29. package/src/vendor/bootstrap/scss/_root.scss +3 -2
  30. package/src/vendor/bootstrap/scss/_tables.scss +2 -1
  31. package/src/vendor/bootstrap/scss/_variables.scss +21 -17
  32. package/src/vendor/bootstrap/scss/mixins/_alert.scss +3 -2
  33. package/src/vendor/bootstrap/scss/mixins/_background-variant.scss +3 -2
  34. package/src/vendor/bootstrap/scss/mixins/_badge.scss +2 -1
  35. package/src/vendor/bootstrap/scss/mixins/_border-radius.scss +5 -3
  36. package/src/vendor/bootstrap/scss/mixins/_box-shadow.scss +6 -5
  37. package/src/vendor/bootstrap/scss/mixins/_breakpoints.scss +6 -4
  38. package/src/vendor/bootstrap/scss/mixins/_buttons.scss +6 -5
  39. package/src/vendor/bootstrap/scss/mixins/_forms.scss +3 -2
  40. package/src/vendor/bootstrap/scss/mixins/_gradients.scss +2 -1
  41. package/src/vendor/bootstrap/scss/mixins/_grid-framework.scss +2 -1
  42. package/src/vendor/bootstrap/scss/mixins/_grid.scss +4 -3
  43. package/src/vendor/bootstrap/scss/mixins/_list-group.scss +2 -1
  44. package/src/vendor/bootstrap/scss/mixins/_table-row.scss +2 -1
  45. package/src/vendor/bootstrap/scss/mixins/_text-emphasis.scss +2 -1
  46. package/src/vendor/bootstrap/scss/mixins/_transition.scss +5 -4
  47. package/src/vendor/bootstrap/scss/utilities/_display.scss +2 -1
  48. package/src/vendor/bootstrap/scss/utilities/_embed.scss +5 -3
  49. package/src/vendor/bootstrap/scss/utilities/_flex.scss +2 -1
  50. package/src/vendor/bootstrap/scss/utilities/_float.scss +2 -1
  51. package/src/vendor/bootstrap/scss/utilities/_spacing.scss +2 -1
  52. package/src/vendor/bootstrap/scss/utilities/_text.scss +2 -1
  53. package/src/vendor/bootstrap/scss/vendor/_rfs.scss +13 -10
  54. package/src/vendor/bootstrap-vue/src/_variables.scss +3 -1
  55. package/src/vendor/bootstrap-vue/src/components/form-input/_form-input.scss +8 -6
  56. package/src/vendor/bootstrap-vue/src/components/table/_table.scss +5 -2
  57. package/src/vendor/bootstrap-vue/src/components/toast/_toast.scss +4 -2
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  // Tables
2
3
 
3
4
  @mixin table-row-variant($state, $background, $border: null) {
@@ -23,7 +24,7 @@
23
24
  // Hover states for `.table-hover`
24
25
  // Note: this is not available for cells or rows within `thead` or `tfoot`.
25
26
  .table-hover {
26
- $hover-background: darken($background, 5%);
27
+ $hover-background: color.adjust($background, $lightness: -5%);
27
28
 
28
29
  .table-#{$state} {
29
30
  @include hover() {
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  // stylelint-disable declaration-no-important
2
3
 
3
4
  // Typography
@@ -9,7 +10,7 @@
9
10
  @if $emphasized-link-hover-darken-percentage != 0 {
10
11
  a#{$parent} {
11
12
  @include hover-focus() {
12
- color: darken($color, $emphasized-link-hover-darken-percentage) !important;
13
+ color: color.adjust($color, $lightness: -($emphasized-link-hover-darken-percentage)) !important;
13
14
  }
14
15
  }
15
16
  }
@@ -1,10 +1,11 @@
1
+ @use "sass:list";
1
2
  // stylelint-disable property-disallowed-list
2
3
  @mixin transition($transition...) {
3
- @if length($transition) == 0 {
4
+ @if list.length($transition) == 0 {
4
5
  $transition: $transition-base;
5
6
  }
6
7
 
7
- @if length($transition) > 1 {
8
+ @if list.length($transition) > 1 {
8
9
  @each $value in $transition {
9
10
  @if $value == null or $value == none {
10
11
  @warn "The keyword 'none' or 'null' must be used as a single argument.";
@@ -13,11 +14,11 @@
13
14
  }
14
15
 
15
16
  @if $enable-transitions {
16
- @if nth($transition, 1) != null {
17
+ @if list.nth($transition, 1) != null {
17
18
  transition: $transition;
18
19
  }
19
20
 
20
- @if $enable-prefers-reduced-motion-media-query and nth($transition, 1) != null and nth($transition, 1) != none {
21
+ @if $enable-prefers-reduced-motion-media-query and list.nth($transition, 1) != null and list.nth($transition, 1) != none {
21
22
  @media (prefers-reduced-motion: reduce) {
22
23
  transition: none;
23
24
  }
@@ -1,10 +1,11 @@
1
+ @use "sass:map";
1
2
  // stylelint-disable declaration-no-important
2
3
 
3
4
  //
4
5
  // Utilities for common `display` values
5
6
  //
6
7
 
7
- @each $breakpoint in map-keys($grid-breakpoints) {
8
+ @each $breakpoint in map.keys($grid-breakpoints) {
8
9
  @include media-breakpoint-up($breakpoint) {
9
10
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
10
11
 
@@ -1,3 +1,5 @@
1
+ @use "sass:list";
2
+ @use "sass:math";
1
3
  // Credit: Nicolas Gallagher and SUIT CSS.
2
4
 
3
5
  .embed-responsive {
@@ -28,12 +30,12 @@
28
30
  }
29
31
 
30
32
  @each $embed-responsive-aspect-ratio in $embed-responsive-aspect-ratios {
31
- $embed-responsive-aspect-ratio-x: nth($embed-responsive-aspect-ratio, 1);
32
- $embed-responsive-aspect-ratio-y: nth($embed-responsive-aspect-ratio, 2);
33
+ $embed-responsive-aspect-ratio-x: list.nth($embed-responsive-aspect-ratio, 1);
34
+ $embed-responsive-aspect-ratio-y: list.nth($embed-responsive-aspect-ratio, 2);
33
35
 
34
36
  .embed-responsive-#{$embed-responsive-aspect-ratio-x}by#{$embed-responsive-aspect-ratio-y} {
35
37
  &::before {
36
- padding-top: percentage(divide($embed-responsive-aspect-ratio-y, $embed-responsive-aspect-ratio-x));
38
+ padding-top: math.percentage(divide($embed-responsive-aspect-ratio-y, $embed-responsive-aspect-ratio-x));
37
39
  }
38
40
  }
39
41
  }
@@ -1,10 +1,11 @@
1
+ @use "sass:map";
1
2
  // stylelint-disable declaration-no-important
2
3
 
3
4
  // Flex variation
4
5
  //
5
6
  // Custom styles for additional flex alignment options.
6
7
 
7
- @each $breakpoint in map-keys($grid-breakpoints) {
8
+ @each $breakpoint in map.keys($grid-breakpoints) {
8
9
  @include media-breakpoint-up($breakpoint) {
9
10
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
10
11
 
@@ -1,6 +1,7 @@
1
+ @use "sass:map";
1
2
  // stylelint-disable declaration-no-important
2
3
 
3
- @each $breakpoint in map-keys($grid-breakpoints) {
4
+ @each $breakpoint in map.keys($grid-breakpoints) {
4
5
  @include media-breakpoint-up($breakpoint) {
5
6
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
6
7
 
@@ -1,8 +1,9 @@
1
+ @use "sass:map";
1
2
  // stylelint-disable declaration-no-important
2
3
 
3
4
  // Margin and Padding
4
5
 
5
- @each $breakpoint in map-keys($grid-breakpoints) {
6
+ @each $breakpoint in map.keys($grid-breakpoints) {
6
7
  @include media-breakpoint-up($breakpoint) {
7
8
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
8
9
 
@@ -1,3 +1,4 @@
1
+ @use "sass:map";
1
2
  // stylelint-disable declaration-no-important
2
3
 
3
4
  //
@@ -15,7 +16,7 @@
15
16
 
16
17
  // Responsive alignment
17
18
 
18
- @each $breakpoint in map-keys($grid-breakpoints) {
19
+ @each $breakpoint in map.keys($grid-breakpoints) {
19
20
  @include media-breakpoint-up($breakpoint) {
20
21
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
21
22
 
@@ -1,3 +1,6 @@
1
+ @use "sass:map";
2
+ @use "sass:math";
3
+ @use "sass:meta";
1
4
  // stylelint-disable property-blacklist, scss/dollar-variable-default
2
5
 
3
6
  // SCSS RFS mixin
@@ -30,7 +33,7 @@ $rfs-two-dimensional: false !default;
30
33
  // Factor of decrease
31
34
  $rfs-factor: 10 !default;
32
35
 
33
- @if type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
36
+ @if meta.type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
34
37
  @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
35
38
  }
36
39
 
@@ -47,12 +50,12 @@ $rfs-safari-iframe-resize-bug-fix: false !default;
47
50
  $enable-responsive-font-sizes: true !default;
48
51
 
49
52
  // Cache $rfs-base-font-size unit
50
- $rfs-base-font-size-unit: unit($rfs-base-font-size);
53
+ $rfs-base-font-size-unit: math.unit($rfs-base-font-size);
51
54
 
52
55
  @function divide($dividend, $divisor, $precision: 10) {
53
56
  $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
54
- $dividend: abs($dividend);
55
- $divisor: abs($divisor);
57
+ $dividend: math.abs($dividend);
58
+ $divisor: math.abs($divisor);
56
59
  @if $dividend == 0 {
57
60
  @return 0;
58
61
  }
@@ -77,16 +80,16 @@ $rfs-base-font-size-unit: unit($rfs-base-font-size);
77
80
  }
78
81
  }
79
82
  $result: $result * $factor * $sign;
80
- $dividend-unit: unit($dividend);
81
- $divisor-unit: unit($divisor);
83
+ $dividend-unit: math.unit($dividend);
84
+ $divisor-unit: math.unit($divisor);
82
85
  $unit-map: (
83
86
  "px": 1px,
84
87
  "rem": 1rem,
85
88
  "em": 1em,
86
89
  "%": 1%
87
90
  );
88
- @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
89
- $result: $result * map-get($unit-map, $dividend-unit);
91
+ @if ($dividend-unit != $divisor-unit and map.has-key($unit-map, $dividend-unit)) {
92
+ $result: $result * map.get($unit-map, $dividend-unit);
90
93
  }
91
94
  @return $result;
92
95
  }
@@ -100,7 +103,7 @@ $rfs-base-font-size-unit: unit($rfs-base-font-size);
100
103
  }
101
104
 
102
105
  // Cache $rfs-breakpoint unit to prevent multiple calls
103
- $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
106
+ $rfs-breakpoint-unit-cache: math.unit($rfs-breakpoint);
104
107
 
105
108
  // Remove unit from $rfs-breakpoint for calculations
106
109
  @if $rfs-breakpoint-unit-cache == "px" {
@@ -155,7 +158,7 @@ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
155
158
  // Responsive font size mixin
156
159
  @mixin rfs($fs, $important: false) {
157
160
  // Cache $fs unit
158
- $fs-unit: if(type-of($fs) == "number", unit($fs), false);
161
+ $fs-unit: if(meta.type-of($fs) == "number", math.unit($fs), false);
159
162
 
160
163
  // Add !important suffix if needed
161
164
  $rfs-suffix: if($important, " !important", "");
@@ -1,3 +1,5 @@
1
+ @use 'sass:color';
2
+
1
3
  // --- BootstrapVue custom SCSS variables ---
2
4
  //
3
5
  // Users can override these variables in their custom SCSS
@@ -85,7 +87,7 @@ $b-toaster-offset-right: $b-toaster-offset-top !default;
85
87
  // Value from 0 to 1, or 0% to 100%
86
88
  // Bootstrap default is 0.85 (extracted from the `$toast-background-color` value)
87
89
  // Bootstrap does not have this as a variable, so we add it in.
88
- $b-toast-background-opacity: alpha($toast-background-color) !default;
90
+ $b-toast-background-opacity: color.alpha($toast-background-color) !default;
89
91
 
90
92
  // Toast variant levels wrt theme color value
91
93
  $b-toast-bg-level: $alert-bg-level !default;
@@ -1,3 +1,5 @@
1
+ @use 'sass:color';
2
+
1
3
  // Temporary fix for cssnano bug: https://github.com/cssnano/cssnano/issues/712
2
4
  // By moving center to last value in `background-position` property
3
5
  // See: https://github.com/bootstrap-vue/bootstrap-vue/issues/2599
@@ -150,13 +152,13 @@ input[type="color"].form-control:disabled {
150
152
  // Pseudo-elements must be split across multiple rulesets to have an affect
151
153
  &:focus {
152
154
  &::-webkit-slider-thumb {
153
- box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width lighten($color, 35%);
155
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width color.adjust($color, $lightness: 35%);
154
156
  }
155
157
  &::-moz-range-thumb {
156
- box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width lighten($color, 35%);
158
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width color.adjust($color, $lightness: 35%);
157
159
  }
158
160
  &::-ms-thumb {
159
- box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width lighten($color, 35%);
161
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width color.adjust($color, $lightness: 35%);
160
162
  }
161
163
  }
162
164
 
@@ -165,7 +167,7 @@ input[type="color"].form-control:disabled {
165
167
  background-image: none;
166
168
 
167
169
  &:active {
168
- background-color: lighten($color, 35%);
170
+ background-color: color.adjust($color, $lightness: 35%);
169
171
  background-image: none;
170
172
  }
171
173
  }
@@ -179,7 +181,7 @@ input[type="color"].form-control:disabled {
179
181
  background-image: none;
180
182
 
181
183
  &:active {
182
- background-color: lighten($color, 35%);
184
+ background-color: color.adjust($color, $lightness: 35%);
183
185
  background-image: none;
184
186
  }
185
187
  }
@@ -198,7 +200,7 @@ input[type="color"].form-control:disabled {
198
200
  background-image: none;
199
201
 
200
202
  &:active {
201
- background-color: lighten($color, 35%);
203
+ background-color: color.adjust($color, $lightness: 35%);
202
204
  background-image: none;
203
205
  }
204
206
  }
@@ -1,3 +1,6 @@
1
+ @use 'sass:map';
2
+ @use 'sass:string';
3
+
1
4
  // --- General styling ---
2
5
 
3
6
  .table.b-table {
@@ -259,7 +262,7 @@ $bv-escaped-characters: (("<", "%3c"), (">", "%3e"), ("#", "%23"));
259
262
  // But if we want to preserve backwards compatibility with v4.3, we leave this in
260
263
  // See https://codepen.io/kevinweber/pen/dXWoRw
261
264
  @function bv-escape-svg($string) {
262
- @if str-index($string, "data:image/svg+xml") {
265
+ @if string.index($string, "data:image/svg+xml") {
263
266
  @each $char, $encoded in $bv-escaped-characters {
264
267
  $string: str-replace($string, $char, $encoded);
265
268
  }
@@ -380,7 +383,7 @@ $bv-escaped-characters: (("<", "%3c"), (">", "%3e"), ("#", "%23"));
380
383
  @if $bv-enable-table-stacked {
381
384
  .table.b-table {
382
385
  &.b-table-stacked {
383
- @each $breakpoint in map-keys($grid-breakpoints) {
386
+ @each $breakpoint in map.keys($grid-breakpoints) {
384
387
  $next: breakpoint-next($breakpoint, $grid-breakpoints);
385
388
  $infix: breakpoint-infix($next, $grid-breakpoints);
386
389
 
@@ -1,3 +1,5 @@
1
+ @use 'sass:color';
2
+
1
3
  // --- <b-toast> custom SCSS ---
2
4
 
3
5
  // Toast wrapper element class (needed for list transition in toasters)
@@ -45,7 +47,7 @@
45
47
  @mixin b-toast-variant($background, $border, $color) {
46
48
  // Based on alert-variant mixin
47
49
  .toast {
48
- background-color: rgba(lighten($background, 5%), $b-toast-background-opacity);
50
+ background-color: rgba(color.adjust($background, $lightness: 5%), $b-toast-background-opacity);
49
51
  border-color: rgba($border, $b-toast-background-opacity);
50
52
  color: $color;
51
53
 
@@ -62,7 +64,7 @@
62
64
 
63
65
  &.b-toast-solid {
64
66
  .toast {
65
- background-color: rgba(lighten($background, 5%), 1);
67
+ background-color: rgba(color.adjust($background, $lightness: 5%), 1);
66
68
  }
67
69
  }
68
70
  }