@gitlab/ui 79.0.0 → 79.1.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 +8 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/base/filtered_search/filtered_search_suggestion.scss +1 -0
- package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +18 -0
- package/src/components/base/form/form_group/form_group.stories.js +28 -19
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
.gl-filtered-search-suggestion-list.dropdown-menu {
|
|
5
5
|
@include gl-display-block;
|
|
6
6
|
width: $gl-dropdown-width;
|
|
7
|
+
@include gl-p-2;
|
|
8
|
+
@include gl-border-gray-200;
|
|
9
|
+
@include gl-rounded-lg;
|
|
10
|
+
@include gl-shadow-md;
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
.gl-filtered-search-suggestion-list {
|
|
@@ -11,6 +15,20 @@
|
|
|
11
15
|
@include gl-overflow-y-auto;
|
|
12
16
|
max-height: $gl-max-dropdown-max-height;
|
|
13
17
|
|
|
18
|
+
.gl-filtered-search-suggestion,
|
|
19
|
+
.gl-filtered-search-suggestion > a,
|
|
20
|
+
.gl-filtered-search-suggestion > button {
|
|
21
|
+
border-radius: $gl-border-radius-base !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.gl-dropdown-divider {
|
|
25
|
+
@include gl-mx-n2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.gl-spinner-container {
|
|
29
|
+
@include gl-my-2;
|
|
30
|
+
}
|
|
31
|
+
|
|
14
32
|
.gl-filtered-search-suggestion {
|
|
15
33
|
@include gl-p-0;
|
|
16
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { disableControls } from '../../../../utils/stories_utils';
|
|
1
2
|
import GlFormInput from '../form_input/form_input.vue';
|
|
2
3
|
import GlFormTextarea from '../form_textarea/form_textarea.vue';
|
|
3
|
-
import { disableControls } from '../../../../utils/stories_utils';
|
|
4
|
-
import GlFormGroup from './form_group.vue';
|
|
5
4
|
import readme from './form_group.md';
|
|
5
|
+
import GlFormGroup from './form_group.vue';
|
|
6
6
|
|
|
7
7
|
const components = {
|
|
8
8
|
GlFormGroup,
|
|
@@ -24,16 +24,24 @@ const generateProps = ({
|
|
|
24
24
|
description,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const makeBindings = (overrides = {}) =>
|
|
28
|
+
Object.entries({
|
|
29
|
+
':id': "id + '_group'",
|
|
30
|
+
':label-for': 'id',
|
|
31
|
+
':label': 'label',
|
|
32
|
+
':label-description': 'labelDescription',
|
|
33
|
+
':optional': 'optional',
|
|
34
|
+
':optional-text': 'optionalText',
|
|
35
|
+
':description': 'description',
|
|
36
|
+
...overrides,
|
|
37
|
+
})
|
|
38
|
+
.map(([key, value]) => `${key}="${value}"`)
|
|
39
|
+
.join(' ');
|
|
40
|
+
|
|
41
|
+
const wrap = (template, bindingsOverrides = {}) => `
|
|
28
42
|
<gl-form-group
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
:label-description="labelDescription"
|
|
32
|
-
:optional="optional"
|
|
33
|
-
:optional-text="optionalText"
|
|
34
|
-
:description="description"
|
|
35
|
-
${bindings}
|
|
36
|
-
:label-for="id">
|
|
43
|
+
${makeBindings(bindingsOverrides)}
|
|
44
|
+
>
|
|
37
45
|
${template}
|
|
38
46
|
</gl-form-group>
|
|
39
47
|
`;
|
|
@@ -78,14 +86,15 @@ export const WithValidations = (_args, { argTypes }) => ({
|
|
|
78
86
|
components: { ...components, GlFormInput },
|
|
79
87
|
template: `
|
|
80
88
|
<div>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
${wrap('<gl-form-input :id="id + \'-name1\'" :state="false" />', {
|
|
90
|
+
'invalid-feedback': 'This field is required.',
|
|
91
|
+
':label-for': "id + '-name1'",
|
|
92
|
+
})}
|
|
93
|
+
${wrap('<gl-form-input :id="id + \'-name2\'" :state="true" value="Sidney Jones" />', {
|
|
94
|
+
'valid-feedback': 'This field is valid.',
|
|
95
|
+
':id': "'group2'",
|
|
96
|
+
':label-for': "id + '-name2'",
|
|
97
|
+
})}
|
|
89
98
|
</div>
|
|
90
99
|
`,
|
|
91
100
|
});
|