@abgov/jsonforms-components 2.21.0 → 2.21.1
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/index.esm.js +6 -0
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -11812,6 +11812,9 @@ const FullNameDobControl = props => {
|
|
|
11812
11812
|
|
|
11813
11813
|
const FullNameDobReviewControl = props => {
|
|
11814
11814
|
var _a, _b, _c, _d;
|
|
11815
|
+
const {
|
|
11816
|
+
data
|
|
11817
|
+
} = props;
|
|
11815
11818
|
return jsxs(Fragment, {
|
|
11816
11819
|
children: [jsxs(GoAGrid, {
|
|
11817
11820
|
minChildWidth: "0ch",
|
|
@@ -11819,6 +11822,7 @@ const FullNameDobReviewControl = props => {
|
|
|
11819
11822
|
mb: "m",
|
|
11820
11823
|
children: [jsx(GoAFormItem, {
|
|
11821
11824
|
label: "First name",
|
|
11825
|
+
error: (data === null || data === void 0 ? void 0 : data.firstName) === undefined ? 'First name is required' : '',
|
|
11822
11826
|
requirement: "required",
|
|
11823
11827
|
children: jsx(TextWrapDiv, {
|
|
11824
11828
|
children: jsx("div", {
|
|
@@ -11836,6 +11840,7 @@ const FullNameDobReviewControl = props => {
|
|
|
11836
11840
|
})
|
|
11837
11841
|
}), jsx(GoAFormItem, {
|
|
11838
11842
|
label: "Last name",
|
|
11843
|
+
error: (data === null || data === void 0 ? void 0 : data.lastName) === undefined ? 'Last name is required' : '',
|
|
11839
11844
|
requirement: "required",
|
|
11840
11845
|
children: jsx(TextWrapDiv, {
|
|
11841
11846
|
children: jsx("div", {
|
|
@@ -11849,6 +11854,7 @@ const FullNameDobReviewControl = props => {
|
|
|
11849
11854
|
gap: "s",
|
|
11850
11855
|
children: jsx(GoAFormItem, {
|
|
11851
11856
|
label: "Date of birth",
|
|
11857
|
+
error: (data === null || data === void 0 ? void 0 : data.dateOfBirth) === undefined ? 'Date of birth is required' : '',
|
|
11852
11858
|
requirement: "required",
|
|
11853
11859
|
children: jsx(TextWrapDiv, {
|
|
11854
11860
|
children: jsx("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|