optimized-react-component-library-xyz123 0.1.26 → 0.1.27
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/dist/index.js +6 -13
- package/dist/index.mjs +6 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1047,21 +1047,14 @@ var RenderQuestionGroup = ({
|
|
|
1047
1047
|
className: "pts-root-question-group-fieldset",
|
|
1048
1048
|
"aria-required": questionArray[0].isQuestionMandatory,
|
|
1049
1049
|
"aria-invalid": questionArray[0].hasValidationError,
|
|
1050
|
-
"aria-errormessage": questionArray[0].
|
|
1051
|
-
"aria-describedby": questionArray[0].
|
|
1050
|
+
"aria-errormessage": questionArray[0].questionId + "-error",
|
|
1051
|
+
"aria-describedby": questionArray[0].questionId + "-error",
|
|
1052
1052
|
children: [
|
|
1053
1053
|
legend && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("legend", { children: legend }),
|
|
1054
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1055
|
-
"
|
|
1056
|
-
{
|
|
1057
|
-
|
|
1058
|
-
id: questionArray[0].validationDefaultMessesege + "-error",
|
|
1059
|
-
children: questionArray[0].hasValidationError && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1060
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { "aria-hidden": true, className: "errorDot", children: "!" }),
|
|
1061
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { "aria-label": "Felmeddelande.", className: "errorText", children: questionArray[0].validationDefaultMessesege })
|
|
1062
|
-
] })
|
|
1063
|
-
}
|
|
1064
|
-
),
|
|
1054
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "pts-root-error", id: questionArray[0].questionId + "-error", children: questionArray[0].hasValidationError && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1055
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { "aria-hidden": true, className: "errorDot", children: "!" }),
|
|
1056
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { "aria-label": "Felmeddelande.", className: "errorText", children: questionArray[0].validationDefaultMessesege })
|
|
1057
|
+
] }) }),
|
|
1065
1058
|
questions
|
|
1066
1059
|
]
|
|
1067
1060
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -983,21 +983,14 @@ var RenderQuestionGroup = ({
|
|
|
983
983
|
className: "pts-root-question-group-fieldset",
|
|
984
984
|
"aria-required": questionArray[0].isQuestionMandatory,
|
|
985
985
|
"aria-invalid": questionArray[0].hasValidationError,
|
|
986
|
-
"aria-errormessage": questionArray[0].
|
|
987
|
-
"aria-describedby": questionArray[0].
|
|
986
|
+
"aria-errormessage": questionArray[0].questionId + "-error",
|
|
987
|
+
"aria-describedby": questionArray[0].questionId + "-error",
|
|
988
988
|
children: [
|
|
989
989
|
legend && /* @__PURE__ */ jsx7("legend", { children: legend }),
|
|
990
|
-
/* @__PURE__ */ jsx7(
|
|
991
|
-
"
|
|
992
|
-
{
|
|
993
|
-
|
|
994
|
-
id: questionArray[0].validationDefaultMessesege + "-error",
|
|
995
|
-
children: questionArray[0].hasValidationError && /* @__PURE__ */ jsxs7(Fragment7, { children: [
|
|
996
|
-
/* @__PURE__ */ jsx7("span", { "aria-hidden": true, className: "errorDot", children: "!" }),
|
|
997
|
-
/* @__PURE__ */ jsx7("span", { "aria-label": "Felmeddelande.", className: "errorText", children: questionArray[0].validationDefaultMessesege })
|
|
998
|
-
] })
|
|
999
|
-
}
|
|
1000
|
-
),
|
|
990
|
+
/* @__PURE__ */ jsx7("div", { className: "pts-root-error", id: questionArray[0].questionId + "-error", children: questionArray[0].hasValidationError && /* @__PURE__ */ jsxs7(Fragment7, { children: [
|
|
991
|
+
/* @__PURE__ */ jsx7("span", { "aria-hidden": true, className: "errorDot", children: "!" }),
|
|
992
|
+
/* @__PURE__ */ jsx7("span", { "aria-label": "Felmeddelande.", className: "errorText", children: questionArray[0].validationDefaultMessesege })
|
|
993
|
+
] }) }),
|
|
1001
994
|
questions
|
|
1002
995
|
]
|
|
1003
996
|
}
|
package/package.json
CHANGED