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.mjs CHANGED
@@ -555,39 +555,31 @@ var SelectedFiles = ({
555
555
  return /* @__PURE__ */ jsxs7(Fragment9, { children: [
556
556
  /* @__PURE__ */ jsx9("div", { children: errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsxs7("div", { className: "pts-errorSummary-container pts-addFile-error-container", children: [
557
557
  /* @__PURE__ */ jsx9("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
558
- /* @__PURE__ */ jsx9("div", { className: "addFile-error-list-container", children: /* @__PURE__ */ jsxs7(
559
- "ul",
560
- {
561
- "aria-hidden": true,
562
- className: "fileListUnorderedList",
563
- id: "errorSummary-ul",
564
- children: [
565
- " ",
566
- errorMessageAddingFile.map((errorObj, index) => {
567
- const errorFileName = errorObj.FileName;
568
- let mobileFirstFileName = errorObj.FileName.split(".").shift();
569
- mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
570
- const fileType = errorObj.FileName.split(".").pop();
571
- mobileFirstFileName = mobileFirstFileName + "." + fileType;
572
- return /* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsx9(React4.Fragment, { children: /* @__PURE__ */ jsx9("div", { children: /* @__PURE__ */ jsx9("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs7("div", { className: "fileInList", children: [
573
- /* @__PURE__ */ jsx9(Row, { children: /* @__PURE__ */ jsx9(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsx9("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ jsx9("span", { className: "desktopFileName", children: errorObj.FileName }) }) }),
574
- /* @__PURE__ */ jsx9(Row, { children: /* @__PURE__ */ jsx9(
575
- Col,
576
- {
577
- className: "errorMessageAddingFile",
578
- ...activatedLanguage === "sv" ? {
579
- "aria-label": `${errorFileName} ${errorObj.svMessage}`
580
- } : {
581
- "aria-label": `${errorFileName} ${errorObj.enMessage}`
582
- },
583
- children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
584
- }
585
- ) })
586
- ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
587
- })
588
- ]
589
- }
590
- ) }),
558
+ /* @__PURE__ */ jsx9("div", { className: "addFile-error-list-container", children: /* @__PURE__ */ jsxs7("ul", { "aria-hidden": true, className: "fileListUnorderedList", id: "errorSummary-ul", children: [
559
+ " ",
560
+ errorMessageAddingFile.map((errorObj, index) => {
561
+ const errorFileName = errorObj.FileName;
562
+ let mobileFirstFileName = errorObj.FileName.split(".").shift();
563
+ mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
564
+ const fileType = errorObj.FileName.split(".").pop();
565
+ mobileFirstFileName = mobileFirstFileName + "." + fileType;
566
+ return /* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsx9(React4.Fragment, { children: /* @__PURE__ */ jsx9("div", { children: /* @__PURE__ */ jsx9("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs7("div", { className: "fileInList", children: [
567
+ /* @__PURE__ */ jsx9(Row, { children: /* @__PURE__ */ jsx9(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsx9("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ jsx9("span", { className: "desktopFileName", children: errorObj.FileName }) }) }),
568
+ /* @__PURE__ */ jsx9(Row, { children: /* @__PURE__ */ jsx9(
569
+ Col,
570
+ {
571
+ className: "errorMessageAddingFile",
572
+ ...activatedLanguage === "sv" ? {
573
+ "aria-label": `${errorFileName} ${errorObj.svMessage}`
574
+ } : {
575
+ "aria-label": `${errorFileName} ${errorObj.enMessage}`
576
+ },
577
+ children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
578
+ }
579
+ ) })
580
+ ] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
581
+ })
582
+ ] }) }),
591
583
  /* @__PURE__ */ jsx9("div", { className: "addFile-error-close-button", children: /* @__PURE__ */ jsx9(
592
584
  "button",
593
585
  {
@@ -595,8 +587,26 @@ var SelectedFiles = ({
595
587
  onClick: () => {
596
588
  removeError();
597
589
  },
598
- "aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelandet` : `Close error message`,
599
- children: /* @__PURE__ */ jsx9("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsx9("path", { d: "M0.75 12.75L12.75 0.75M0.75 0.75L12.75 12.75", stroke: "#8E0039", "stroke-width": "1.5", "stroke-linecap": "round" }) })
590
+ "aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelande` : `Close error message`,
591
+ children: /* @__PURE__ */ jsx9(
592
+ "svg",
593
+ {
594
+ xmlns: "http://www.w3.org/2000/svg",
595
+ width: "14",
596
+ height: "14",
597
+ viewBox: "0 0 14 14",
598
+ fill: "none",
599
+ children: /* @__PURE__ */ jsx9(
600
+ "path",
601
+ {
602
+ d: "M0.75 12.75L12.75 0.75M0.75 0.75L12.75 12.75",
603
+ stroke: "#8E0039",
604
+ "stroke-width": "1.5",
605
+ "stroke-linecap": "round"
606
+ }
607
+ )
608
+ }
609
+ )
600
610
  }
601
611
  ) })
602
612
  ] }) }),
@@ -637,7 +647,8 @@ var SelectedFiles = ({
637
647
  file.FileName,
638
648
  " (",
639
649
  /* @__PURE__ */ jsx9("span", { className: "fileSizeText", children: file.FileSize < 1024 * 1024 ? `${Math.round(file.FileSize / 1024)} kB` : `${(file.FileSize / (1024 * 1024)).toFixed(1)} MB` }),
640
- " )"
650
+ " ",
651
+ ")"
641
652
  ] }) }),
642
653
  /* @__PURE__ */ jsx9(Col, { className: "lastCol", children: /* @__PURE__ */ jsx9(
643
654
  "button",
@@ -2585,6 +2596,7 @@ var EditPreviewLink = ({
2585
2596
  "a",
2586
2597
  {
2587
2598
  href: "#",
2599
+ className: "pts-edit-step-button",
2588
2600
  onClick: (e) => {
2589
2601
  e.preventDefault();
2590
2602
  changeStepHandler(step.step);