@gitlab/ui 43.1.0 → 43.2.2
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 +24 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +11 -11
- package/src/components/base/accordion/accordion.stories.js +0 -1
- package/src/components/base/badge/badge.scss +42 -1
- package/src/components/base/button/button.stories.js +3 -3
- package/src/components/base/daterange_picker/daterange_picker.stories.js +0 -1
- package/src/components/base/markdown/markdown.scss +5 -13
- package/src/components/base/toggle/toggle.stories.js +1 -1
- package/src/scss/functions.scss +10 -0
- package/src/scss/mixins.scss +5 -21
- package/src/scss/mixins.spec.scss +4 -16
- package/src/scss/typescale/_index.scss +4 -10
- package/src/scss/utilities.scss +8 -8
- package/src/scss/utility-mixins/background.scss +3 -3
- package/src/scss/utility-mixins/masks.scss +1 -1
- package/dist/utils/validation_utils.js +0 -14
- package/src/utils/validation_utils.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.2.2",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -79,22 +79,22 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@arkweid/lefthook": "0.7.7",
|
|
82
|
-
"@babel/core": "^7.18.
|
|
83
|
-
"@babel/preset-env": "^7.18.
|
|
82
|
+
"@babel/core": "^7.18.10",
|
|
83
|
+
"@babel/preset-env": "^7.18.10",
|
|
84
84
|
"@gitlab/eslint-plugin": "15.0.0",
|
|
85
85
|
"@gitlab/stylelint-config": "4.1.0",
|
|
86
86
|
"@gitlab/svgs": "2.33.0",
|
|
87
87
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
88
88
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
89
89
|
"@rollup/plugin-replace": "^2.3.2",
|
|
90
|
-
"@storybook/addon-a11y": "6.5.
|
|
91
|
-
"@storybook/addon-docs": "6.5.
|
|
92
|
-
"@storybook/addon-essentials": "6.5.
|
|
93
|
-
"@storybook/addon-storyshots": "6.5.
|
|
94
|
-
"@storybook/addon-storyshots-puppeteer": "6.5.
|
|
95
|
-
"@storybook/addon-viewport": "6.5.
|
|
96
|
-
"@storybook/theming": "6.5.
|
|
97
|
-
"@storybook/vue": "6.5.
|
|
90
|
+
"@storybook/addon-a11y": "6.5.10",
|
|
91
|
+
"@storybook/addon-docs": "6.5.10",
|
|
92
|
+
"@storybook/addon-essentials": "6.5.10",
|
|
93
|
+
"@storybook/addon-storyshots": "6.5.10",
|
|
94
|
+
"@storybook/addon-storyshots-puppeteer": "6.5.10",
|
|
95
|
+
"@storybook/addon-viewport": "6.5.10",
|
|
96
|
+
"@storybook/theming": "6.5.10",
|
|
97
|
+
"@storybook/vue": "6.5.10",
|
|
98
98
|
"@vue/test-utils": "1.3.0",
|
|
99
99
|
"@vue/vue2-jest": "27.0.0",
|
|
100
100
|
"autoprefixer": "^9.7.6",
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
@mixin gl-badge-variant(
|
|
2
2
|
$variant,
|
|
3
3
|
$color,
|
|
4
|
+
$icon-color,
|
|
4
5
|
$bg,
|
|
5
6
|
$hover-color,
|
|
7
|
+
$hover-icon-color,
|
|
6
8
|
$border-color,
|
|
7
9
|
$active-color,
|
|
10
|
+
$active-icon-color,
|
|
8
11
|
$active-bg
|
|
9
12
|
) {
|
|
10
13
|
.gl-badge.badge-#{$variant} {
|
|
11
14
|
background-color: $bg;
|
|
12
15
|
color: $color;
|
|
16
|
+
|
|
17
|
+
.gl-badge-icon {
|
|
18
|
+
color: $icon-color;
|
|
19
|
+
transition: inherit;
|
|
20
|
+
}
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
a.gl-badge.badge-#{$variant} {
|
|
@@ -19,18 +27,30 @@
|
|
|
19
27
|
background-color: $bg;
|
|
20
28
|
box-shadow: inset 0 0 0 $gl-border-size-1 $border-color;
|
|
21
29
|
@include gl-text-decoration-none;
|
|
30
|
+
|
|
31
|
+
.gl-badge-icon {
|
|
32
|
+
color: $hover-icon-color;
|
|
33
|
+
}
|
|
22
34
|
}
|
|
23
35
|
|
|
24
36
|
&:focus {
|
|
25
37
|
color: $hover-color;
|
|
26
38
|
// Needed to override bootstrap's badge variant background
|
|
27
39
|
background-color: $bg;
|
|
40
|
+
|
|
41
|
+
.gl-badge-icon {
|
|
42
|
+
color: $hover-icon-color;
|
|
43
|
+
}
|
|
28
44
|
}
|
|
29
45
|
|
|
30
46
|
&.active,
|
|
31
47
|
&:active {
|
|
32
48
|
color: $active-color;
|
|
33
49
|
background-color: $active-bg;
|
|
50
|
+
|
|
51
|
+
.gl-badge-icon {
|
|
52
|
+
color: $active-icon-color;
|
|
53
|
+
}
|
|
34
54
|
}
|
|
35
55
|
|
|
36
56
|
&:active,
|
|
@@ -78,70 +98,91 @@
|
|
|
78
98
|
@include gl-badge-variant(
|
|
79
99
|
$variant: muted,
|
|
80
100
|
$color: $gray-500,
|
|
101
|
+
$icon-color: $gray-400,
|
|
81
102
|
$bg: $gray-50,
|
|
82
103
|
$hover-color: $gray-600,
|
|
104
|
+
$hover-icon-color: $gray-500,
|
|
83
105
|
$border-color: $gray-200,
|
|
84
|
-
$active-color: $gray-
|
|
106
|
+
$active-color: $gray-700,
|
|
107
|
+
$active-icon-color: $gray-600,
|
|
85
108
|
$active-bg: $gray-100
|
|
86
109
|
);
|
|
87
110
|
|
|
88
111
|
@include gl-badge-variant(
|
|
89
112
|
$variant: neutral,
|
|
90
113
|
$color: $gray-700,
|
|
114
|
+
$icon-color: $gray-500,
|
|
91
115
|
$bg: $gray-100,
|
|
92
116
|
$hover-color: $gray-800,
|
|
117
|
+
$hover-icon-color: $gray-600,
|
|
93
118
|
$border-color: $gray-200,
|
|
94
119
|
$active-color: $gray-900,
|
|
120
|
+
$active-icon-color: $gray-700,
|
|
95
121
|
$active-bg: $gray-200
|
|
96
122
|
);
|
|
97
123
|
|
|
98
124
|
@include gl-badge-variant(
|
|
99
125
|
$variant: info,
|
|
100
126
|
$color: $blue-700,
|
|
127
|
+
$icon-color: $blue-500,
|
|
101
128
|
$bg: $blue-100,
|
|
102
129
|
$hover-color: $blue-800,
|
|
130
|
+
$hover-icon-color: $blue-600,
|
|
103
131
|
$border-color: $blue-200,
|
|
104
132
|
$active-color: $blue-900,
|
|
133
|
+
$active-icon-color: $blue-700,
|
|
105
134
|
$active-bg: $blue-200
|
|
106
135
|
);
|
|
107
136
|
|
|
108
137
|
@include gl-badge-variant(
|
|
109
138
|
$variant: success,
|
|
110
139
|
$color: $green-700,
|
|
140
|
+
$icon-color: $green-500,
|
|
111
141
|
$bg: $green-100,
|
|
112
142
|
$hover-color: $green-800,
|
|
143
|
+
$hover-icon-color: $green-600,
|
|
113
144
|
$border-color: $green-200,
|
|
114
145
|
$active-color: $green-900,
|
|
146
|
+
$active-icon-color: $green-700,
|
|
115
147
|
$active-bg: $green-200
|
|
116
148
|
);
|
|
117
149
|
|
|
118
150
|
@include gl-badge-variant(
|
|
119
151
|
$variant: warning,
|
|
120
152
|
$color: $orange-700,
|
|
153
|
+
$icon-color: $orange-500,
|
|
121
154
|
$bg: $orange-100,
|
|
122
155
|
$hover-color: $orange-800,
|
|
156
|
+
$hover-icon-color: $orange-600,
|
|
123
157
|
$border-color: $orange-200,
|
|
124
158
|
$active-color: $orange-900,
|
|
159
|
+
$active-icon-color: $orange-700,
|
|
125
160
|
$active-bg: $orange-200
|
|
126
161
|
);
|
|
127
162
|
|
|
128
163
|
@include gl-badge-variant(
|
|
129
164
|
$variant: danger,
|
|
130
165
|
$color: $red-700,
|
|
166
|
+
$icon-color: $red-500,
|
|
131
167
|
$bg: $red-100,
|
|
132
168
|
$hover-color: $red-800,
|
|
169
|
+
$hover-icon-color: $red-600,
|
|
133
170
|
$border-color: $red-200,
|
|
134
171
|
$active-color: $red-900,
|
|
172
|
+
$active-icon-color: $red-700,
|
|
135
173
|
$active-bg: $red-200
|
|
136
174
|
);
|
|
137
175
|
|
|
138
176
|
@include gl-badge-variant(
|
|
139
177
|
$variant: tier,
|
|
140
178
|
$color: $purple-700,
|
|
179
|
+
$icon-color: $purple-500,
|
|
141
180
|
$bg: $purple-100,
|
|
142
181
|
$hover-color: $purple-800,
|
|
182
|
+
$hover-icon-color: $purple-600,
|
|
143
183
|
$border-color: $purple-200,
|
|
144
184
|
$active-color: $purple-900,
|
|
185
|
+
$active-icon-color: $purple-700,
|
|
145
186
|
$active-bg: $purple-200
|
|
146
187
|
);
|
|
147
188
|
|
|
@@ -508,15 +508,15 @@ export default {
|
|
|
508
508
|
},
|
|
509
509
|
argTypes: {
|
|
510
510
|
category: {
|
|
511
|
-
options: buttonCategoryOptions,
|
|
511
|
+
options: Object.keys(buttonCategoryOptions),
|
|
512
512
|
control: 'select',
|
|
513
513
|
},
|
|
514
514
|
variant: {
|
|
515
|
-
options: buttonVariantOptions,
|
|
515
|
+
options: Object.keys(buttonVariantOptions),
|
|
516
516
|
control: 'select',
|
|
517
517
|
},
|
|
518
518
|
size: {
|
|
519
|
-
options: buttonSizeOptions,
|
|
519
|
+
options: Object.keys(buttonSizeOptions),
|
|
520
520
|
control: 'select',
|
|
521
521
|
},
|
|
522
522
|
target: {
|
|
@@ -45,22 +45,18 @@
|
|
|
45
45
|
|
|
46
46
|
h1,
|
|
47
47
|
.gl-h1 {
|
|
48
|
-
@include gl-font-size-markdown-h1;
|
|
49
|
-
@include gl-line-height-32;
|
|
50
48
|
@include gl-fluid-font-size(
|
|
51
|
-
$min: $gl-font-size-markdown-h1
|
|
49
|
+
$min: $gl-font-size-markdown-h1,
|
|
52
50
|
$max: $gl-font-size-markdown-h1-xl
|
|
53
51
|
);
|
|
54
|
-
@include gl-fluid-line-height($min: $gl-line-height-
|
|
52
|
+
@include gl-fluid-line-height($min: $gl-line-height-32, $max: $gl-line-height-52);
|
|
55
53
|
@include gl-mt-0;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
h2,
|
|
59
57
|
.gl-h2 {
|
|
60
|
-
@include gl-font-size-markdown-h2;
|
|
61
|
-
@include gl-line-height-28;
|
|
62
58
|
@include gl-fluid-font-size(
|
|
63
|
-
$min: $gl-font-size-markdown-h2
|
|
59
|
+
$min: $gl-font-size-markdown-h2,
|
|
64
60
|
$max: $gl-font-size-markdown-h2-xl
|
|
65
61
|
);
|
|
66
62
|
@include gl-fluid-line-height($min: $gl-line-height-28, $max: $gl-line-height-36);
|
|
@@ -69,10 +65,8 @@
|
|
|
69
65
|
|
|
70
66
|
h3,
|
|
71
67
|
.gl-h3 {
|
|
72
|
-
@include gl-font-size-markdown-h3;
|
|
73
|
-
@include gl-line-height-24;
|
|
74
68
|
@include gl-fluid-font-size(
|
|
75
|
-
$min: $gl-font-size-markdown-h3
|
|
69
|
+
$min: $gl-font-size-markdown-h3,
|
|
76
70
|
$max: $gl-font-size-markdown-h3-xl
|
|
77
71
|
);
|
|
78
72
|
@include gl-fluid-line-height($min: $gl-line-height-24, $max: $gl-line-height-28);
|
|
@@ -239,10 +233,8 @@
|
|
|
239
233
|
|
|
240
234
|
h1,
|
|
241
235
|
.gl-h1 {
|
|
242
|
-
@include gl-font-size-compact-markdown-h1;
|
|
243
|
-
@include gl-line-height-24;
|
|
244
236
|
@include gl-fluid-font-size(
|
|
245
|
-
$min: $gl-font-size-compact-markdown-h1
|
|
237
|
+
$min: $gl-font-size-compact-markdown-h1,
|
|
246
238
|
$max: $gl-font-size-compact-markdown-h1-xl
|
|
247
239
|
);
|
|
248
240
|
@include gl-fluid-line-height($min: $gl-line-height-24, $max: $gl-line-height-28);
|
package/src/scss/functions.scss
CHANGED
|
@@ -49,3 +49,13 @@
|
|
|
49
49
|
@function if-important($important) {
|
|
50
50
|
@return #{if($important, '!important', '')};
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
@function clamp-between($min, $max, $min-width: $breakpoint-md, $max-width: $breakpoint-xl) {
|
|
54
|
+
$min-width: px-to-rem($min-width);
|
|
55
|
+
$max-width: px-to-rem($max-width);
|
|
56
|
+
|
|
57
|
+
$slope: ($max - $min) / ($max-width - $min-width);
|
|
58
|
+
$intersection: (-$min-width * $slope) + $min;
|
|
59
|
+
|
|
60
|
+
@return clamp(#{$min}, #{$intersection} + #{$slope * 100vw}, #{$max});
|
|
61
|
+
}
|
package/src/scss/mixins.scss
CHANGED
|
@@ -21,30 +21,14 @@
|
|
|
21
21
|
* should be numeric.
|
|
22
22
|
*
|
|
23
23
|
* Values are expected in rem units.
|
|
24
|
+
* Fluid range: between 48rem (768px) – 75rem (1200px).
|
|
24
25
|
*
|
|
25
26
|
* @param $property Property name, i.e. line-height, font-size, width, height, etc.
|
|
26
|
-
* @param $
|
|
27
|
-
* @param $
|
|
27
|
+
* @param $min Property value lower bound.
|
|
28
|
+
* @param $max Property value upper bound.
|
|
28
29
|
*/
|
|
29
|
-
@mixin gl-responsive-property(
|
|
30
|
-
$property,
|
|
31
|
-
$property-min,
|
|
32
|
-
$property-max,
|
|
33
|
-
$breakpoint-min: $breakpoint-md,
|
|
34
|
-
$breakpoint-max: $breakpoint-xl
|
|
35
|
-
) {
|
|
36
|
-
$property-range: ($property-max - $property-min) / 1rem;
|
|
37
|
-
$breakpoint-range: px-to-rem($breakpoint-max - $breakpoint-min) / 1rem;
|
|
38
|
-
|
|
39
|
-
@media (min-width: $breakpoint-min) {
|
|
40
|
-
#{$property}: calc(
|
|
41
|
-
#{$property-min} + #{$property-range} * ((100vw - #{$breakpoint-min}) / #{$breakpoint-range})
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (min-width: $breakpoint-max) {
|
|
46
|
-
#{$property}: $property-max;
|
|
47
|
-
}
|
|
30
|
+
@mixin gl-responsive-property($property, $min, $max) {
|
|
31
|
+
#{$property}: clamp-between($min, $max);
|
|
48
32
|
}
|
|
49
33
|
|
|
50
34
|
/**
|
|
@@ -9,14 +9,8 @@
|
|
|
9
9
|
@include gl-fluid-font-size(2rem, 3.5rem);
|
|
10
10
|
}
|
|
11
11
|
@include expect {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-size: calc( 2rem + 1.5 * ((100vw - 768px) / 27));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@media (min-width: 1200px) {
|
|
18
|
-
font-size: 3.5rem;
|
|
19
|
-
}
|
|
12
|
+
// prettier-ignore
|
|
13
|
+
font-size: clamp(2rem, #{-0.66667rem} + #{5.55556vw}, 3.5rem);
|
|
20
14
|
}
|
|
21
15
|
}
|
|
22
16
|
}
|
|
@@ -29,14 +23,8 @@
|
|
|
29
23
|
@include gl-fluid-line-height(2rem, 3.5rem);
|
|
30
24
|
}
|
|
31
25
|
@include expect {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
line-height: calc( 2rem + 1.5 * ((100vw - 768px) / 27));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (min-width: 1200px) {
|
|
38
|
-
line-height: 3.5rem;
|
|
39
|
-
}
|
|
26
|
+
// prettier-ignore
|
|
27
|
+
line-height: clamp(2rem, #{-0.66667rem} + #{5.55556vw}, 3.5rem);
|
|
40
28
|
}
|
|
41
29
|
}
|
|
42
30
|
}
|
|
@@ -26,25 +26,19 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.h-display {
|
|
29
|
-
@include gl-font-size-h-display;
|
|
30
|
-
@include gl-line-height-32;
|
|
31
|
-
@include gl-fluid-font-size($min: $gl-font-size-h-display-md, $max: $gl-font-size-h-display-xl);
|
|
32
|
-
@include gl-fluid-line-height($min: $gl-line-height-36, $max: $gl-line-height-52);
|
|
29
|
+
@include gl-fluid-font-size($min: $gl-font-size-h-display, $max: $gl-font-size-h-display-xl);
|
|
30
|
+
@include gl-fluid-line-height($min: $gl-line-height-32, $max: $gl-line-height-52);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
h1,
|
|
36
34
|
.gl-h1 {
|
|
37
|
-
@include gl-font-size-h1;
|
|
38
|
-
@include gl-line-height-28;
|
|
39
|
-
@include gl-fluid-font-size($min: $gl-font-size-h1-md, $max: $gl-font-size-h1-xl);
|
|
35
|
+
@include gl-fluid-font-size($min: $gl-font-size-h1, $max: $gl-font-size-h1-xl);
|
|
40
36
|
@include gl-fluid-line-height($min: $gl-line-height-28, $max: $gl-line-height-36);
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
h2,
|
|
44
40
|
.gl-h2 {
|
|
45
|
-
@include gl-font-size-h2;
|
|
46
|
-
@include gl-line-height-24;
|
|
47
|
-
@include gl-fluid-font-size($min: $gl-font-size-h2-md, $max: $gl-font-size-h2-xl);
|
|
41
|
+
@include gl-fluid-font-size($min: $gl-font-size-h2, $max: $gl-font-size-h2-xl);
|
|
48
42
|
@include gl-fluid-line-height($min: $gl-line-height-24, $max: $gl-line-height-28);
|
|
49
43
|
}
|
|
50
44
|
|
package/src/scss/utilities.scss
CHANGED
|
@@ -859,27 +859,27 @@
|
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
.gl-bg-chevron-left {
|
|
862
|
-
background-image: url($gl-icon-chevron-left)
|
|
862
|
+
background-image: url('#{$gl-icon-chevron-left}')
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
.gl-bg-chevron-left\! {
|
|
866
|
-
background-image: url($gl-icon-chevron-left) !important
|
|
866
|
+
background-image: url('#{$gl-icon-chevron-left}') !important
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
.gl-bg-chevron-right {
|
|
870
|
-
background-image: url($gl-icon-chevron-right)
|
|
870
|
+
background-image: url('#{$gl-icon-chevron-right}')
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
.gl-bg-chevron-right\! {
|
|
874
|
-
background-image: url($gl-icon-chevron-right) !important
|
|
874
|
+
background-image: url('#{$gl-icon-chevron-right}') !important
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
.gl-bg-chevron-down {
|
|
878
|
-
background-image: url($gl-icon-chevron-down)
|
|
878
|
+
background-image: url('#{$gl-icon-chevron-down}')
|
|
879
879
|
}
|
|
880
880
|
|
|
881
881
|
.gl-bg-chevron-down\! {
|
|
882
|
-
background-image: url($gl-icon-chevron-down) !important
|
|
882
|
+
background-image: url('#{$gl-icon-chevron-down}') !important
|
|
883
883
|
}
|
|
884
884
|
|
|
885
885
|
.gl-backdrop-filter-blur-1 {
|
|
@@ -3643,13 +3643,13 @@
|
|
|
3643
3643
|
list-style-position: inside !important
|
|
3644
3644
|
}
|
|
3645
3645
|
.gl-mask-chevron-down {
|
|
3646
|
-
mask-image: url($gl-icon-chevron-down);
|
|
3646
|
+
mask-image: url('#{$gl-icon-chevron-down}');
|
|
3647
3647
|
mask-repeat: no-repeat;
|
|
3648
3648
|
mask-position: center;
|
|
3649
3649
|
mask-size: cover
|
|
3650
3650
|
}
|
|
3651
3651
|
.gl-mask-chevron-down\! {
|
|
3652
|
-
mask-image: url($gl-icon-chevron-down) !important;
|
|
3652
|
+
mask-image: url('#{$gl-icon-chevron-down}') !important;
|
|
3653
3653
|
mask-repeat: no-repeat !important;
|
|
3654
3654
|
mask-position: center !important;
|
|
3655
3655
|
mask-size: cover !important
|
|
@@ -387,15 +387,15 @@
|
|
|
387
387
|
* naming convention: gl-bg-{image-name}
|
|
388
388
|
*/
|
|
389
389
|
@mixin gl-bg-chevron-left {
|
|
390
|
-
background-image: url($gl-icon-chevron-left);
|
|
390
|
+
background-image: url('#{$gl-icon-chevron-left}');
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
@mixin gl-bg-chevron-right {
|
|
394
|
-
background-image: url($gl-icon-chevron-right);
|
|
394
|
+
background-image: url('#{$gl-icon-chevron-right}');
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
@mixin gl-bg-chevron-down {
|
|
398
|
-
background-image: url($gl-icon-chevron-down);
|
|
398
|
+
background-image: url('#{$gl-icon-chevron-down}');
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
/**
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Creates out of validation configurations from .documentation.js files and creates a readable string out of it
|
|
2
|
-
const getValidationInfoText = function () {
|
|
3
|
-
let validation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4
|
-
|
|
5
|
-
switch (validation.type) {
|
|
6
|
-
case 'range':
|
|
7
|
-
return `${validation.min}-${validation.max}`;
|
|
8
|
-
|
|
9
|
-
default:
|
|
10
|
-
return '';
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { getValidationInfoText };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Creates out of validation configurations from .documentation.js files and creates a readable string out of it
|
|
2
|
-
export const getValidationInfoText = (validation = {}) => {
|
|
3
|
-
switch (validation.type) {
|
|
4
|
-
case 'range':
|
|
5
|
-
return `${validation.min}-${validation.max}`;
|
|
6
|
-
default:
|
|
7
|
-
return '';
|
|
8
|
-
}
|
|
9
|
-
};
|