optimized-react-component-library-xyz123 0.1.147 → 0.1.149

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
@@ -635,39 +635,31 @@ var SelectedFiles = ({
635
635
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
636
636
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "pts-errorSummary-container pts-addFile-error-container", children: [
637
637
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
638
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "addFile-error-list-container", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
639
- "ul",
640
- {
641
- "aria-hidden": true,
642
- className: "fileListUnorderedList",
643
- id: "errorSummary-ul",
644
- children: [
645
- " ",
646
- errorMessageAddingFile.map((errorObj, index) => {
647
- const errorFileName = errorObj.FileName;
648
- let mobileFirstFileName = errorObj.FileName.split(".").shift();
649
- mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
650
- const fileType = errorObj.FileName.split(".").pop();
651
- mobileFirstFileName = mobileFirstFileName + "." + fileType;
652
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react5.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fileInListContainer", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fileInList", children: [
653
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Col, { children: windowWidth < 768 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "desktopFileName", children: errorObj.FileName }) }) }),
654
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
655
- import_react_bootstrap.Col,
656
- {
657
- className: "errorMessageAddingFile",
658
- ...activatedLanguage === "sv" ? {
659
- "aria-label": `${errorFileName} ${errorObj.svMessage}`
660
- } : {
661
- "aria-label": `${errorFileName} ${errorObj.enMessage}`
662
- },
663
- children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
664
- }
665
- ) })
666
- ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
667
- })
668
- ]
669
- }
670
- ) }),
638
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "addFile-error-list-container", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("ul", { "aria-hidden": true, className: "fileListUnorderedList", id: "errorSummary-ul", children: [
639
+ " ",
640
+ errorMessageAddingFile.map((errorObj, index) => {
641
+ const errorFileName = errorObj.FileName;
642
+ let mobileFirstFileName = errorObj.FileName.split(".").shift();
643
+ mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
644
+ const fileType = errorObj.FileName.split(".").pop();
645
+ mobileFirstFileName = mobileFirstFileName + "." + fileType;
646
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react5.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fileInListContainer", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fileInList", children: [
647
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Col, { children: windowWidth < 768 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "desktopFileName", children: errorObj.FileName }) }) }),
648
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
649
+ import_react_bootstrap.Col,
650
+ {
651
+ className: "errorMessageAddingFile",
652
+ ...activatedLanguage === "sv" ? {
653
+ "aria-label": `${errorFileName} ${errorObj.svMessage}`
654
+ } : {
655
+ "aria-label": `${errorFileName} ${errorObj.enMessage}`
656
+ },
657
+ children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
658
+ }
659
+ ) })
660
+ ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
661
+ })
662
+ ] }) }),
671
663
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "addFile-error-close-button", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
672
664
  "button",
673
665
  {
@@ -675,8 +667,26 @@ var SelectedFiles = ({
675
667
  onClick: () => {
676
668
  removeError();
677
669
  },
678
- "aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelandet` : `Close error message`,
679
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M0.75 12.75L12.75 0.75M0.75 0.75L12.75 12.75", stroke: "#8E0039", "stroke-width": "1.5", "stroke-linecap": "round" }) })
670
+ "aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelande` : `Close error message`,
671
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
672
+ "svg",
673
+ {
674
+ xmlns: "http://www.w3.org/2000/svg",
675
+ width: "14",
676
+ height: "14",
677
+ viewBox: "0 0 14 14",
678
+ fill: "none",
679
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
680
+ "path",
681
+ {
682
+ d: "M0.75 12.75L12.75 0.75M0.75 0.75L12.75 12.75",
683
+ stroke: "#8E0039",
684
+ "stroke-width": "1.5",
685
+ "stroke-linecap": "round"
686
+ }
687
+ )
688
+ }
689
+ )
680
690
  }
681
691
  ) })
682
692
  ] }) }),
@@ -717,7 +727,8 @@ var SelectedFiles = ({
717
727
  file.FileName,
718
728
  " (",
719
729
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fileSizeText", children: file.FileSize < 1024 * 1024 ? `${Math.round(file.FileSize / 1024)} kB` : `${(file.FileSize / (1024 * 1024)).toFixed(1)} MB` }),
720
- " )"
730
+ " ",
731
+ ")"
721
732
  ] }) }),
722
733
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_bootstrap.Col, { className: "lastCol", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
723
734
  "button",
@@ -2662,6 +2673,7 @@ var EditPreviewLink = ({
2662
2673
  "a",
2663
2674
  {
2664
2675
  href: "#",
2676
+ className: "pts-edit-step-button",
2665
2677
  onClick: (e) => {
2666
2678
  e.preventDefault();
2667
2679
  changeStepHandler(step.step);