@gitlab/ui 40.6.3 → 40.6.4
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 +9 -9
- package/src/components/base/form/form_group/form_group.scss +2 -0
- package/src/components/base/form/form_group/form_group.stories.js +12 -25
- package/src/components/base/form/form_input/form_input.scss +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "40.6.
|
|
3
|
+
"version": "40.6.4",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -87,15 +87,15 @@
|
|
|
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.
|
|
90
|
+
"@storybook/addon-a11y": "6.5.5",
|
|
91
|
+
"@storybook/addon-docs": "6.5.5",
|
|
92
|
+
"@storybook/addon-essentials": "6.5.5",
|
|
93
93
|
"@storybook/addon-knobs": "6.4.0",
|
|
94
|
-
"@storybook/addon-storyshots": "6.5.
|
|
95
|
-
"@storybook/addon-storyshots-puppeteer": "6.5.
|
|
96
|
-
"@storybook/addon-viewport": "6.5.
|
|
97
|
-
"@storybook/theming": "6.5.
|
|
98
|
-
"@storybook/vue": "6.5.
|
|
94
|
+
"@storybook/addon-storyshots": "6.5.5",
|
|
95
|
+
"@storybook/addon-storyshots-puppeteer": "6.5.5",
|
|
96
|
+
"@storybook/addon-viewport": "6.5.5",
|
|
97
|
+
"@storybook/theming": "6.5.5",
|
|
98
|
+
"@storybook/vue": "6.5.5",
|
|
99
99
|
"@vue/test-utils": "1.3.0",
|
|
100
100
|
"autoprefixer": "^9.7.6",
|
|
101
101
|
"babel-jest": "^26.6.3",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.invalid-feedback,
|
|
21
|
+
.valid-feedback,
|
|
21
22
|
.text-gl-muted {
|
|
22
23
|
@include gl-font-base;
|
|
23
24
|
@include gl-line-height-normal;
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
|
|
26
27
|
.form-control {
|
|
27
28
|
+ .invalid-feedback,
|
|
29
|
+
+ .valid-feedback,
|
|
28
30
|
+ .text-gl-muted,
|
|
29
31
|
&.is-valid + .invalid-feedback + .text-gl-muted {
|
|
30
32
|
// See https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/2806
|
|
@@ -74,31 +74,18 @@ WithLabelDescription.args = generateProps({
|
|
|
74
74
|
export const WithValidations = (_args, { argTypes }) => ({
|
|
75
75
|
props: Object.keys(argTypes),
|
|
76
76
|
components: { ...components, GlFormInput },
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return feedbackText;
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
data() {
|
|
94
|
-
return {
|
|
95
|
-
name: '',
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
template: wrap(
|
|
99
|
-
'<gl-form-input :id="id" :state="state" v-model.trim="name" />',
|
|
100
|
-
':invalid-feedback="invalidFeedback"'
|
|
101
|
-
),
|
|
77
|
+
template: `
|
|
78
|
+
<div>
|
|
79
|
+
${wrap(
|
|
80
|
+
'<gl-form-input :id="id" :state="false" />',
|
|
81
|
+
'invalid-feedback="This field is required."'
|
|
82
|
+
)}
|
|
83
|
+
${wrap(
|
|
84
|
+
'<gl-form-input :id="id" :state="true" value="Sidney Jones" />',
|
|
85
|
+
'valid-feedback="This field is valid."'
|
|
86
|
+
)}
|
|
87
|
+
</div>
|
|
88
|
+
`,
|
|
102
89
|
});
|
|
103
90
|
WithValidations.args = generateProps({
|
|
104
91
|
label: 'Name',
|