optimized-react-component-library-xyz123 0.1.115 → 0.1.116

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
@@ -214,7 +214,7 @@ var PrevieMultipleCheckboxes = ({
214
214
  const previewId = `preview-${question.id}`;
215
215
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
216
216
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
217
- question.answer ? question.options && question.options.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: question.options[0].label }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "preview-answer-list", children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
217
+ question.answer ? question.options && question.options.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: question.options[0].label }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "pts-preview-answer-list", children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
218
218
  var _a2;
219
219
  return (_a2 = question.answer) == null ? void 0 : _a2.includes(option.label);
220
220
  }).map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("li", { children: option.label }, index)) }) }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No Answer" : "Inget svar" }),
@@ -1334,10 +1334,10 @@ var PreviewAddFiles = ({
1334
1334
  }) => {
1335
1335
  const previewId = `preview-${questionObject.Id}`;
1336
1336
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "pts-question-preview pts-addFiles-preview", id: `question-${previewId}`, children: [
1337
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h3", { id: previewId, children: questionObject.Question }),
1338
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "pts-root-answer", children: questionObject.Files && questionObject.Files.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("ul", { "aria-labelledby": previewId, children: questionObject.Files.map((file, index) => {
1337
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dd", { id: previewId, children: questionObject.Id ? questionObject.Question : activatedLanguage === "en" ? "Attached files" : "Bifogade filer" }),
1338
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "pts-root-answer", children: questionObject.Files && questionObject.Files.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dt", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("ul", { "aria-labelledby": previewId, className: "pts-preview-answer-list", children: questionObject.Files.map((file, index) => {
1339
1339
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { children: file.FileName }, `file-${index}-${file.FileName}`);
1340
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No attached files" : "Inga bifogade filer" }) })
1340
+ }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dt", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No attached files" : "Inga bifogade filer" }) })
1341
1341
  ] });
1342
1342
  };
1343
1343