@gitlab/ui 43.6.0 → 43.7.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 +7 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/scss_to_js/scss_variables.js +3 -0
- package/scss_to_js/scss_variables.json +36 -0
- package/src/components/base/button/button.scss +1 -1
- package/src/components/base/form/form_checkbox/form_checkbox.scss +44 -12
- 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/scss/variables.scss +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.7.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"bootstrap": "4.5.3",
|
|
105
105
|
"cypress": "^6.6.0",
|
|
106
106
|
"emoji-regex": "^10.0.0",
|
|
107
|
-
"eslint": "8.
|
|
107
|
+
"eslint": "8.22.0",
|
|
108
108
|
"eslint-import-resolver-jest": "3.0.2",
|
|
109
109
|
"eslint-plugin-cypress": "2.12.1",
|
|
110
110
|
"eslint-plugin-storybook": "0.6.4",
|
|
@@ -308,6 +308,9 @@ export const glIconChevronLeft = ''
|
|
|
308
308
|
export const glIconChevronRight = ''
|
|
309
309
|
export const glIconChevronDown = ''
|
|
310
310
|
export const glIconSelectChevronDown = ''
|
|
311
|
+
export const glIconCheck = ''
|
|
312
|
+
export const glIconIndeterminate = ''
|
|
313
|
+
export const glIconRadio = ''
|
|
311
314
|
export const defaultIconSize = '1rem'
|
|
312
315
|
export const glIconSizes = '8 12 14 16 24 32 48 72'
|
|
313
316
|
export const glDropdownWidth = '15rem'
|
|
@@ -1629,6 +1629,42 @@
|
|
|
1629
1629
|
],
|
|
1630
1630
|
"compiledValue": ""
|
|
1631
1631
|
},
|
|
1632
|
+
{
|
|
1633
|
+
"name": "$gl-icon-check",
|
|
1634
|
+
"value": "data:image/svg+xml,%3Csvg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cpath d=\"M1 3.05299L2.99123 5L7 1\" stroke=\"white\" stroke-width=\"2\"/%3E%3C/svg%3E%0A",
|
|
1635
|
+
"mapValue": [
|
|
1636
|
+
{
|
|
1637
|
+
"name": "data",
|
|
1638
|
+
"value": "image",
|
|
1639
|
+
"compiledValue": "image"
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
"compiledValue": ""
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"name": "$gl-icon-indeterminate",
|
|
1646
|
+
"value": "data:image/svg+xml,%3Csvg width=\"8\" height=\"2\" viewBox=\"0 0 8 2\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cpath d=\"M0 1L8 1\" stroke=\"white\" stroke-width=\"2\"/%3E%3C/svg%3E%0A",
|
|
1647
|
+
"mapValue": [
|
|
1648
|
+
{
|
|
1649
|
+
"name": "data",
|
|
1650
|
+
"value": "image",
|
|
1651
|
+
"compiledValue": "image"
|
|
1652
|
+
}
|
|
1653
|
+
],
|
|
1654
|
+
"compiledValue": ""
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "$gl-icon-radio",
|
|
1658
|
+
"value": "data:image/svg+xml,%3Csvg width=\"6\" height=\"6\" viewBox=\"0 0 6 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Ccircle cx=\"3\" cy=\"3\" r=\"3\" fill=\"white\"/%3E%3C/svg%3E%0A",
|
|
1659
|
+
"mapValue": [
|
|
1660
|
+
{
|
|
1661
|
+
"name": "data",
|
|
1662
|
+
"value": "image",
|
|
1663
|
+
"compiledValue": "image"
|
|
1664
|
+
}
|
|
1665
|
+
],
|
|
1666
|
+
"compiledValue": ""
|
|
1667
|
+
},
|
|
1632
1668
|
{
|
|
1633
1669
|
"name": "$default-icon-size",
|
|
1634
1670
|
"value": "px-to-rem(16px)",
|
|
@@ -79,6 +79,29 @@
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.custom-control-input[type='checkbox']:checked ~ .custom-control-label,
|
|
83
|
+
.custom-control-input[type='checkbox']:indeterminate ~ .custom-control-label,
|
|
84
|
+
.custom-control-input[type='radio']:checked ~ .custom-control-label {
|
|
85
|
+
&::after {
|
|
86
|
+
@include gl-bg-none;
|
|
87
|
+
@include gl-bg-white;
|
|
88
|
+
mask-repeat: no-repeat;
|
|
89
|
+
mask-position: center center;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.custom-control-input[type='checkbox']:checked ~ .custom-control-label::after {
|
|
94
|
+
mask-image: url($gl-icon-check);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.custom-control-input[type='checkbox']:indeterminate ~ .custom-control-label::after {
|
|
98
|
+
mask-image: url($gl-icon-indeterminate);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.custom-control-input[type='radio']:checked ~ .custom-control-label::after {
|
|
102
|
+
mask-image: url($gl-icon-radio);
|
|
103
|
+
}
|
|
104
|
+
|
|
82
105
|
.custom-control-input:not(:disabled):checked ~ .custom-control-label:hover,
|
|
83
106
|
.custom-control-input:not(:disabled):focus:checked ~ .custom-control-label {
|
|
84
107
|
&::before {
|
|
@@ -88,19 +111,15 @@
|
|
|
88
111
|
}
|
|
89
112
|
|
|
90
113
|
&.custom-checkbox {
|
|
91
|
-
.custom-control-input:indeterminate ~ .custom-control-label {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
@include gl-border-blue-500;
|
|
95
|
-
}
|
|
114
|
+
.custom-control-input:indeterminate ~ .custom-control-label::before {
|
|
115
|
+
@include gl-bg-blue-500;
|
|
116
|
+
@include gl-border-blue-500;
|
|
96
117
|
}
|
|
97
118
|
|
|
98
|
-
.custom-control-input:not(:disabled):indeterminate ~ .custom-control-label:hover,
|
|
99
|
-
.custom-control-input:not(:disabled):focus:indeterminate ~ .custom-control-label {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
@include gl-border-blue-700;
|
|
103
|
-
}
|
|
119
|
+
.custom-control-input:not(:disabled):indeterminate ~ .custom-control-label:hover::before,
|
|
120
|
+
.custom-control-input:not(:disabled):focus:indeterminate ~ .custom-control-label::before {
|
|
121
|
+
@include gl-bg-blue-700;
|
|
122
|
+
@include gl-border-blue-700;
|
|
104
123
|
}
|
|
105
124
|
}
|
|
106
125
|
|
|
@@ -108,10 +127,23 @@
|
|
|
108
127
|
@include gl-cursor-not-allowed;
|
|
109
128
|
|
|
110
129
|
&::before {
|
|
111
|
-
@include gl-
|
|
130
|
+
@include gl-bg-gray-50;
|
|
131
|
+
@include gl-border-gray-100;
|
|
112
132
|
@include gl-pointer-events-auto;
|
|
113
133
|
}
|
|
114
134
|
}
|
|
135
|
+
|
|
136
|
+
.custom-control-input:checked:disabled ~ .custom-control-label,
|
|
137
|
+
.custom-control-input:indeterminate:disabled ~ .custom-control-label {
|
|
138
|
+
&::before {
|
|
139
|
+
@include gl-bg-gray-100;
|
|
140
|
+
@include gl-border-gray-100;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&::after {
|
|
144
|
+
@include gl-bg-gray-500;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
115
147
|
}
|
|
116
148
|
|
|
117
149
|
.help-text {
|
package/src/scss/variables.scss
CHANGED
|
@@ -438,6 +438,9 @@ $gl-icon-chevron-left: 'data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" xmlns="
|
|
|
438
438
|
$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>';
|
|
439
439
|
$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>';
|
|
440
440
|
$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';
|
|
441
|
+
$gl-icon-check: 'data:image/svg+xml,%3Csvg width="8" height="7" viewBox="0 0 8 7" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 3.05299L2.99123 5L7 1" stroke="white" stroke-width="2"/%3E%3C/svg%3E%0A';
|
|
442
|
+
$gl-icon-indeterminate: 'data:image/svg+xml,%3Csvg width="8" height="2" viewBox="0 0 8 2" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 1L8 1" stroke="white" stroke-width="2"/%3E%3C/svg%3E%0A';
|
|
443
|
+
$gl-icon-radio: 'data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="3" cy="3" r="3" fill="white"/%3E%3C/svg%3E%0A';
|
|
441
444
|
|
|
442
445
|
// Icons
|
|
443
446
|
$default-icon-size: px-to-rem(16px);
|