@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 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
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 12 Feb 2024 21:20:52 GMT
3
+ * Generated on Thu, 15 Feb 2024 11:59:20 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 12 Feb 2024 21:20:52 GMT
3
+ * Generated on Thu, 15 Feb 2024 11:59:20 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 12 Feb 2024 21:20:52 GMT
3
+ * Generated on Thu, 15 Feb 2024 11:59:20 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#133a03";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 12 Feb 2024 21:20:52 GMT
3
+ * Generated on Thu, 15 Feb 2024 11:59:20 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#ddfab7";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 12 Feb 2024 21:20:52 GMT
3
+ // Generated on Thu, 15 Feb 2024 11:59:20 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Mon, 12 Feb 2024 21:20:52 GMT
3
+ // Generated on Thu, 15 Feb 2024 11:59:20 GMT
4
4
 
5
5
  $gl-line-height-52: 3.25rem;
6
6
  $gl-line-height-44: 2.75rem;