optimized-react-component-library-xyz123 0.1.38 → 0.1.39

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
@@ -158,7 +158,7 @@ var MultipleCheckboxes = ({
158
158
  };
159
159
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
160
160
  !showPreview && question.visible && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { id: questionId, className: "pts-root-question pts-multipleCheckboxes-container", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("section", { role: "group", "aria-labelledby": `label-${questionId}`, children: [
161
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("h4", { id: `label-${questionId}`, children: [
161
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("h3", { id: `label-${questionId}`, children: [
162
162
  question.questionLabel,
163
163
  " ",
164
164
  question.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" }),
@@ -252,7 +252,7 @@ var InputTextarea = ({
252
252
  "aria-required": question.isQuestionMandatory,
253
253
  "aria-invalid": question.hasValidationError,
254
254
  maxLength: ((_a = question.questionExtraAttribute) == null ? void 0 : _a.answerMaxLength) || defaultMaxLength,
255
- "aria-describedby": `${question.aboutText ? aboutId : ""} ${question.hasValidationError ? errorId : ""}`.trim(),
255
+ "aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
256
256
  id: inputId
257
257
  }
258
258
  ),
@@ -345,7 +345,7 @@ var TextFieldStandard = ({
345
345
  disabled: (_g = question.questionExtraAttribute) == null ? void 0 : _g.disabled,
346
346
  required: question.isQuestionMandatory,
347
347
  "aria-required": question.isQuestionMandatory,
348
- "aria-describedby": `${question.aboutText ? aboutId : ""} ${question.hasValidationError ? errorId : ""}`.trim(),
348
+ "aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
349
349
  "aria-invalid": question.hasValidationError,
350
350
  "aria-errormessage": question.hasValidationError ? errorId : void 0
351
351
  }
@@ -1222,7 +1222,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1222
1222
  }
1223
1223
  ),
1224
1224
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1225
- "div",
1225
+ "nav",
1226
1226
  {
1227
1227
  className: "pts-footer-linkList",
1228
1228
  "aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
package/dist/index.mjs CHANGED
@@ -94,7 +94,7 @@ var MultipleCheckboxes = ({
94
94
  };
95
95
  return /* @__PURE__ */ jsxs2(Fragment2, { children: [
96
96
  !showPreview && question.visible && /* @__PURE__ */ jsx2("div", { id: questionId, className: "pts-root-question pts-multipleCheckboxes-container", children: /* @__PURE__ */ jsxs2("section", { role: "group", "aria-labelledby": `label-${questionId}`, children: [
97
- /* @__PURE__ */ jsxs2("h4", { id: `label-${questionId}`, children: [
97
+ /* @__PURE__ */ jsxs2("h3", { id: `label-${questionId}`, children: [
98
98
  question.questionLabel,
99
99
  " ",
100
100
  question.isQuestionMandatory && /* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" }),
@@ -188,7 +188,7 @@ var InputTextarea = ({
188
188
  "aria-required": question.isQuestionMandatory,
189
189
  "aria-invalid": question.hasValidationError,
190
190
  maxLength: ((_a = question.questionExtraAttribute) == null ? void 0 : _a.answerMaxLength) || defaultMaxLength,
191
- "aria-describedby": `${question.aboutText ? aboutId : ""} ${question.hasValidationError ? errorId : ""}`.trim(),
191
+ "aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
192
192
  id: inputId
193
193
  }
194
194
  ),
@@ -281,7 +281,7 @@ var TextFieldStandard = ({
281
281
  disabled: (_g = question.questionExtraAttribute) == null ? void 0 : _g.disabled,
282
282
  required: question.isQuestionMandatory,
283
283
  "aria-required": question.isQuestionMandatory,
284
- "aria-describedby": `${question.aboutText ? aboutId : ""} ${question.hasValidationError ? errorId : ""}`.trim(),
284
+ "aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
285
285
  "aria-invalid": question.hasValidationError,
286
286
  "aria-errormessage": question.hasValidationError ? errorId : void 0
287
287
  }
@@ -1158,7 +1158,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
1158
1158
  }
1159
1159
  ),
1160
1160
  /* @__PURE__ */ jsx9(
1161
- "div",
1161
+ "nav",
1162
1162
  {
1163
1163
  className: "pts-footer-linkList",
1164
1164
  "aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
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",