@gitlab/ui 74.5.0 → 74.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 +14 -0
- package/dist/components/base/form/form_fields/form_fields.js +11 -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/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/play_utils.js +1 -1
- package/package.json +15 -17
- package/src/components/base/filtered_search/filtered_search.stories.js +1 -2
- package/src/components/base/filtered_search/filtered_search_suggestion_list.stories.js +1 -1
- package/src/components/base/form/form_combobox/form_combobox.stories.js +1 -2
- package/src/components/base/form/form_fields/form_fields.spec.js +16 -0
- package/src/components/base/form/form_fields/form_fields.stories.js +26 -3
- package/src/components/base/form/form_fields/form_fields.vue +12 -1
- package/src/components/base/sorting/sorting.stories.js +1 -2
- package/src/components/base/toast/toast.stories.js +1 -2
- package/src/components/base/token_selector/token_selector.stories.js +1 -2
- package/src/components/base/tooltip/tooltip.stories.js +1 -2
- package/src/scss/utilities.scss +24 -0
- package/src/scss/utility-mixins/background.scss +4 -0
- package/src/scss/utility-mixins/border.scss +4 -0
- package/src/scss/utility-mixins/color.scss +4 -0
- package/src/utils/play_utils.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [74.7.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v74.6.0...v74.7.0) (2024-02-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **add purple-500 class:** Add utility classes for purple-500 ([8a02d5a](https://gitlab.com/gitlab-org/gitlab-ui/commit/8a02d5a03eee42c0014bc9b9ca29b75269ba351e))
|
|
7
|
+
|
|
8
|
+
# [74.6.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v74.5.0...v74.6.0) (2024-02-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **GlFormFields:** Add prop for server field validations ([6c23b37](https://gitlab.com/gitlab-org/gitlab-ui/commit/6c23b37773d0944953d9068de2bcec00a0e74a8f))
|
|
14
|
+
|
|
1
15
|
# [74.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v74.4.0...v74.5.0) (2024-02-12)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -50,6 +50,16 @@ var script = {
|
|
|
50
50
|
formId: {
|
|
51
51
|
type: String,
|
|
52
52
|
required: true
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* Validation errors from the server. Generally passed to the component after making an API call.
|
|
56
|
+
*/
|
|
57
|
+
serverValidations: {
|
|
58
|
+
type: Object,
|
|
59
|
+
required: false,
|
|
60
|
+
default() {
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
53
63
|
}
|
|
54
64
|
},
|
|
55
65
|
data() {
|
|
@@ -64,7 +74,7 @@ var script = {
|
|
|
64
74
|
},
|
|
65
75
|
fieldValidationProps() {
|
|
66
76
|
return mapValues(this.fields, (_, fieldName) => {
|
|
67
|
-
const invalidFeedback = this.fieldValidations[fieldName] || '';
|
|
77
|
+
const invalidFeedback = this.serverValidations[fieldName] || this.fieldValidations[fieldName] || '';
|
|
68
78
|
return {
|
|
69
79
|
invalidFeedback,
|
|
70
80
|
state: invalidFeedback ? false : null
|
package/dist/tokens/js/tokens.js
CHANGED