@gitlab/ui 42.18.0 → 42.20.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": "42.18.0",
3
+ "version": "42.20.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@popperjs/core": "^2.11.2",
59
59
  "bootstrap-vue": "2.20.1",
60
- "dompurify": "^2.3.8",
60
+ "dompurify": "^2.3.9",
61
61
  "echarts": "^5.3.2",
62
62
  "iframe-resizer": "^4.3.2",
63
63
  "lodash": "^4.17.20",
@@ -81,7 +81,7 @@
81
81
  "@arkweid/lefthook": "0.7.7",
82
82
  "@babel/core": "^7.10.2",
83
83
  "@babel/preset-env": "^7.10.2",
84
- "@gitlab/eslint-plugin": "13.0.0",
84
+ "@gitlab/eslint-plugin": "13.1.0",
85
85
  "@gitlab/stylelint-config": "4.1.0",
86
86
  "@gitlab/svgs": "2.26.0",
87
87
  "@rollup/plugin-commonjs": "^11.1.0",
@@ -108,7 +108,7 @@
108
108
  "eslint": "8.19.0",
109
109
  "eslint-import-resolver-jest": "3.0.2",
110
110
  "eslint-plugin-cypress": "2.12.1",
111
- "eslint-plugin-storybook": "0.5.13",
111
+ "eslint-plugin-storybook": "0.6.1",
112
112
  "file-loader": "^4.2.0",
113
113
  "glob": "^7.2.0",
114
114
  "identity-obj-proxy": "^3.0.0",
@@ -308,6 +308,7 @@ export const chartTooltipMaxWidth = '32rem'
308
308
  export const glIconChevronLeft = '#{'data:image/svg+xml}'
309
309
  export const glIconChevronRight = '#{'data:image/svg+xml}'
310
310
  export const glIconChevronDown = '#{'data:image/svg+xml}'
311
+ export const glIconSelectChevronDown = 'data'
311
312
  export const defaultIconSize = '1rem'
312
313
  export const glIconSizes = '8 12 14 16 24 32 48 72'
313
314
  export const glDropdownWidth = '15rem'
@@ -1622,6 +1622,18 @@
1622
1622
  ],
1623
1623
  "compiledValue": "#{'data:image/svg+xml}"
1624
1624
  },
1625
+ {
1626
+ "name": "$gl-icon-select-chevron-down",
1627
+ "value": "data:image/svg+xml,%3Csvg width=\"8\" height=\"5\" viewBox=\"0 0 8 5\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.21967 0.21967C0.512563 -0.0732232 0.987437 -0.0732232 1.28033 0.21967L4 2.93934L6.71967 0.21967C7.01256 -0.073223 7.48744 -0.0732229 7.78033 0.21967C8.07322 0.512563 8.07322 0.987437 7.78033 1.28033L4.53033 4.53033C4.23744 4.82322 3.76256 4.82322 3.46967 4.53033L0.21967 1.28033C-0.0732233 0.987437 -0.0732233 0.512563 0.21967 0.21967Z\" fill=\"%23666666\"/%3E%3C/svg%3E%0A",
1628
+ "mapValue": [
1629
+ {
1630
+ "name": "data",
1631
+ "value": "image",
1632
+ "compiledValue": "image"
1633
+ }
1634
+ ],
1635
+ "compiledValue": "data"
1636
+ },
1625
1637
  {
1626
1638
  "name": "$default-icon-size",
1627
1639
  "value": "px-to-rem(16px)",
@@ -21,8 +21,8 @@ See: https://gitlab.com/gitlab-org/gitlab/issues/30055
21
21
  @include gl-border-none;
22
22
  @include gl-appearance-none;
23
23
  @include gl-text-truncate;
24
+ background-image: url($gl-icon-select-chevron-down);
24
25
 
25
- &:active,
26
26
  &:focus,
27
27
  &:focus:active {
28
28
  @include gl-focus($color: $gray-900, $important: true);
@@ -37,10 +37,11 @@ See: https://gitlab.com/gitlab-org/gitlab/issues/30055
37
37
 
38
38
  &.is-valid,
39
39
  &.is-invalid {
40
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
40
+ padding-right: $gl-spacing-scale-2 + $gl-spacing-scale-6;
41
+ background-image: url($gl-icon-select-chevron-down);
41
42
  }
42
43
 
43
- &.is-invalid {
44
+ &.is-invalid:not(:disabled) {
44
45
  @include gl-inset-border-1-red-400;
45
46
 
46
47
  &:focus {
@@ -3040,6 +3040,14 @@
3040
3040
  display: table-cell !important;
3041
3041
  }
3042
3042
  }
3043
+
3044
+ .gl-display-contents {
3045
+ display: contents;
3046
+ }
3047
+
3048
+ .gl-display-contents\! {
3049
+ display: contents !important;
3050
+ }
3043
3051
  .gl-align-items-baseline {
3044
3052
  align-items: baseline;
3045
3053
  }
@@ -204,3 +204,7 @@
204
204
  @include gl-display-table-cell;
205
205
  }
206
206
  }
207
+
208
+ @mixin gl-display-contents {
209
+ display: contents;
210
+ }
@@ -441,6 +441,7 @@ $chart-tooltip-max-width: px-to-rem(512px);
441
441
  $gl-icon-chevron-left: 'data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 0 0 0 1.414l3 3a1 1 0 0 0 1.414-1.414L7.414 8l2.293-2.293a1 1 0 0 0-1.414-1.414l-3 3z"/></svg>';
442
442
  $gl-icon-chevron-right: 'data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill-rule="evenodd" d="M10.707 7.293a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L8.586 8 6.293 5.707a1 1 0 0 1 1.414-1.414l3 3z"/></svg>';
443
443
  $gl-icon-chevron-down: 'data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path fill-rule="evenodd" d="M7.293 10.707a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0-1.414-1.414L8 8.586 5.707 6.293a1 1 0 0 0-1.414 1.414l3 3z"/></svg>';
444
+ $gl-icon-select-chevron-down: 'data:image/svg+xml,%3Csvg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M0.21967 0.21967C0.512563 -0.0732232 0.987437 -0.0732232 1.28033 0.21967L4 2.93934L6.71967 0.21967C7.01256 -0.073223 7.48744 -0.0732229 7.78033 0.21967C8.07322 0.512563 8.07322 0.987437 7.78033 1.28033L4.53033 4.53033C4.23744 4.82322 3.76256 4.82322 3.46967 4.53033L0.21967 1.28033C-0.0732233 0.987437 -0.0732233 0.512563 0.21967 0.21967Z" fill="%23666666"/%3E%3C/svg%3E%0A';
444
445
 
445
446
  // Icons
446
447
  $default-icon-size: px-to-rem(16px);