optimized-react-component-library-xyz123 0.1.53 → 0.1.55
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 +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79,7 +79,6 @@ var InputRadio = ({ question, isTouched, showPreview = false }) => {
|
|
|
79
79
|
"fieldset",
|
|
80
80
|
{
|
|
81
81
|
"aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
|
|
82
|
-
"aria-describedby": question.hasValidationError ? errorId : void 0,
|
|
83
82
|
"aria-errormessage": question.hasValidationError ? errorId : void 0,
|
|
84
83
|
children: [
|
|
85
84
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("legend", { id: `label-${groupId}`, children: [
|
|
@@ -357,7 +356,7 @@ var TextFieldStandard = ({
|
|
|
357
356
|
disabled: (_i = question.questionExtraAttribute) == null ? void 0 : _i.disabled,
|
|
358
357
|
required: question.isQuestionMandatory,
|
|
359
358
|
"aria-required": question.isQuestionMandatory,
|
|
360
|
-
"aria-describedby": [question.aboutText ? aboutId : null
|
|
359
|
+
"aria-describedby": [question.aboutText ? aboutId : null].filter(Boolean).join(" ") || void 0,
|
|
361
360
|
"aria-invalid": question.hasValidationError,
|
|
362
361
|
"aria-errormessage": question.hasValidationError ? errorId : void 0,
|
|
363
362
|
spellCheck: (_k = (_j = question.questionExtraAttribute) == null ? void 0 : _j.spellCheck) != null ? _k : void 0,
|
|
@@ -2805,8 +2804,8 @@ var ValidationErrorSummaryList = ({
|
|
|
2805
2804
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2806
2805
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
2807
2806
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
|
|
2808
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { children: title }),
|
|
2809
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("ul", { children: filteredIds.map((questionId, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2807
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { id: "errorSummary-headline", children: title }),
|
|
2808
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2810
2809
|
"a",
|
|
2811
2810
|
{
|
|
2812
2811
|
href: `#question-${questionId}`,
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,6 @@ var InputRadio = ({ question, isTouched, showPreview = false }) => {
|
|
|
14
14
|
"fieldset",
|
|
15
15
|
{
|
|
16
16
|
"aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
|
|
17
|
-
"aria-describedby": question.hasValidationError ? errorId : void 0,
|
|
18
17
|
"aria-errormessage": question.hasValidationError ? errorId : void 0,
|
|
19
18
|
children: [
|
|
20
19
|
/* @__PURE__ */ jsxs("legend", { id: `label-${groupId}`, children: [
|
|
@@ -292,7 +291,7 @@ var TextFieldStandard = ({
|
|
|
292
291
|
disabled: (_i = question.questionExtraAttribute) == null ? void 0 : _i.disabled,
|
|
293
292
|
required: question.isQuestionMandatory,
|
|
294
293
|
"aria-required": question.isQuestionMandatory,
|
|
295
|
-
"aria-describedby": [question.aboutText ? aboutId : null
|
|
294
|
+
"aria-describedby": [question.aboutText ? aboutId : null].filter(Boolean).join(" ") || void 0,
|
|
296
295
|
"aria-invalid": question.hasValidationError,
|
|
297
296
|
"aria-errormessage": question.hasValidationError ? errorId : void 0,
|
|
298
297
|
spellCheck: (_k = (_j = question.questionExtraAttribute) == null ? void 0 : _j.spellCheck) != null ? _k : void 0,
|
|
@@ -2740,8 +2739,8 @@ var ValidationErrorSummaryList = ({
|
|
|
2740
2739
|
return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2741
2740
|
/* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
2742
2741
|
/* @__PURE__ */ jsxs23("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
|
|
2743
|
-
/* @__PURE__ */ jsx26("h2", { children: title }),
|
|
2744
|
-
/* @__PURE__ */ jsx26("ul", { children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx26("li", { children: /* @__PURE__ */ jsx26(
|
|
2742
|
+
/* @__PURE__ */ jsx26("h2", { id: "errorSummary-headline", children: title }),
|
|
2743
|
+
/* @__PURE__ */ jsx26("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx26("li", { children: /* @__PURE__ */ jsx26(
|
|
2745
2744
|
"a",
|
|
2746
2745
|
{
|
|
2747
2746
|
href: `#question-${questionId}`,
|
package/package.json
CHANGED