optimized-react-component-library-xyz123 0.1.52 → 0.1.54

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 CHANGED
@@ -78,7 +78,7 @@ var InputRadio = ({ question, isTouched, showPreview = false }) => {
78
78
  !showPreview && question.visible && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pts-root-question pts-radioMultiple-container", id: questionId, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
79
79
  "fieldset",
80
80
  {
81
- "aria-invalid": question.hasValidationError ? true : void 0,
81
+ "aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
82
82
  "aria-describedby": question.hasValidationError ? errorId : void 0,
83
83
  "aria-errormessage": question.hasValidationError ? errorId : void 0,
84
84
  children: [
@@ -2805,8 +2805,8 @@ var ValidationErrorSummaryList = ({
2805
2805
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "pts-errorSummary-container pts-root-error", children: [
2806
2806
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
2807
2807
  /* @__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)(
2808
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { id: "errorSummary-headline", children: title }),
2809
+ /* @__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
2810
  "a",
2811
2811
  {
2812
2812
  href: `#question-${questionId}`,
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ var InputRadio = ({ question, isTouched, showPreview = false }) => {
13
13
  !showPreview && question.visible && /* @__PURE__ */ jsx("div", { className: "pts-root-question pts-radioMultiple-container", id: questionId, children: /* @__PURE__ */ jsxs(
14
14
  "fieldset",
15
15
  {
16
- "aria-invalid": question.hasValidationError ? true : void 0,
16
+ "aria-invalid": question.hasValidationError ? question.hasValidationError : void 0,
17
17
  "aria-describedby": question.hasValidationError ? errorId : void 0,
18
18
  "aria-errormessage": question.hasValidationError ? errorId : void 0,
19
19
  children: [
@@ -2740,8 +2740,8 @@ var ValidationErrorSummaryList = ({
2740
2740
  return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
2741
2741
  /* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
2742
2742
  /* @__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(
2743
+ /* @__PURE__ */ jsx26("h2", { id: "errorSummary-headline", children: title }),
2744
+ /* @__PURE__ */ jsx26("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx26("li", { children: /* @__PURE__ */ jsx26(
2745
2745
  "a",
2746
2746
  {
2747
2747
  href: `#question-${questionId}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",