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

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" }),
@@ -1308,7 +1308,14 @@ var AddFiles = ({
1308
1308
  removeUploadErrors: handleRemoveErrors
1309
1309
  }
1310
1310
  ),
1311
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropFilesStandard_default, { FilesSelected: onDrop, DropFilesText: dropFilesText, language: activatedLanguage }),
1311
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1312
+ DropFilesStandard_default,
1313
+ {
1314
+ FilesSelected: onDrop,
1315
+ DropFilesText: dropFilesText,
1316
+ language: activatedLanguage
1317
+ }
1318
+ ),
1312
1319
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1313
1320
  SelectedFilesStandard_default,
1314
1321
  {
@@ -1334,10 +1341,10 @@ var PreviewAddFiles = ({
1334
1341
  }) => {
1335
1342
  const previewId = `preview-${questionObject.Id}`;
1336
1343
  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) => {
1344
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dd", { id: previewId, children: questionObject.questionLabel ? questionObject.questionLabel : activatedLanguage === "en" ? "Attached files" : "Bifogade filer" }),
1345
+ /* @__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
1346
  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" }) })
1347
+ }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dt", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No attached files" : "Inga bifogade filer" }) })
1341
1348
  ] });
1342
1349
  };
1343
1350