optimized-react-component-library-xyz123 0.1.47 → 0.1.49

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.d.mts CHANGED
@@ -58,6 +58,7 @@ interface IQuestion {
58
58
  hideCategory?: boolean;
59
59
  questionLabel?: string;
60
60
  previewLabel?: string;
61
+ validationSummaryLabel?: string;
61
62
  hideQuestion?: boolean;
62
63
  answer?: string;
63
64
  files?: Array<File | {
package/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface IQuestion {
58
58
  hideCategory?: boolean;
59
59
  questionLabel?: string;
60
60
  previewLabel?: string;
61
+ validationSummaryLabel?: string;
61
62
  hideQuestion?: boolean;
62
63
  answer?: string;
63
64
  files?: Array<File | {
package/dist/index.js CHANGED
@@ -1851,30 +1851,40 @@ var EditPreviewLink = ({
1851
1851
  changeStepHandler,
1852
1852
  activatedLanguage = "sv"
1853
1853
  }) => {
1854
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { onClick: () => changeStepHandler(step), children: [
1855
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1856
- "svg",
1857
- {
1858
- "aria-hidden": "true",
1859
- focusable: "false",
1860
- xmlns: "http://www.w3.org/2000/svg",
1861
- width: "16",
1862
- height: "16",
1863
- viewBox: "0 0 16 16",
1864
- fill: "none",
1865
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1866
- "path",
1854
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1855
+ "a",
1856
+ {
1857
+ href: "#",
1858
+ onClick: (e) => {
1859
+ e.preventDefault();
1860
+ changeStepHandler(step);
1861
+ },
1862
+ children: [
1863
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1864
+ "svg",
1867
1865
  {
1868
- d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1869
- stroke: "#6E3282",
1870
- strokeLinecap: "round",
1871
- strokeLinejoin: "round"
1866
+ "aria-hidden": "true",
1867
+ focusable: "false",
1868
+ xmlns: "http://www.w3.org/2000/svg",
1869
+ width: "16",
1870
+ height: "16",
1871
+ viewBox: "0 0 16 16",
1872
+ fill: "none",
1873
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1874
+ "path",
1875
+ {
1876
+ d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1877
+ stroke: "#6E3282",
1878
+ strokeLinecap: "round",
1879
+ strokeLinejoin: "round"
1880
+ }
1881
+ )
1872
1882
  }
1873
- )
1874
- }
1875
- ),
1876
- activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
1877
- ] }) });
1883
+ ),
1884
+ activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
1885
+ ]
1886
+ }
1887
+ ) });
1878
1888
  };
1879
1889
  var EditPreviewLinkStandard_default = EditPreviewLink;
1880
1890
 
@@ -2787,8 +2797,9 @@ var ValidationErrorSummaryList = ({
2787
2797
  const count = filteredIds.length;
2788
2798
  const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
2789
2799
  function getQuestionLabelById(id) {
2800
+ var _a;
2790
2801
  const found = formQuestions.find((item) => item.id === id);
2791
- return found == null ? void 0 : found.questionLabel;
2802
+ return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
2792
2803
  }
2793
2804
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "pts-errorSummary-container pts-root-error", children: [
2794
2805
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
package/dist/index.mjs CHANGED
@@ -1786,30 +1786,40 @@ var EditPreviewLink = ({
1786
1786
  changeStepHandler,
1787
1787
  activatedLanguage = "sv"
1788
1788
  }) => {
1789
- return /* @__PURE__ */ jsx14("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs13("a", { onClick: () => changeStepHandler(step), children: [
1790
- /* @__PURE__ */ jsx14(
1791
- "svg",
1792
- {
1793
- "aria-hidden": "true",
1794
- focusable: "false",
1795
- xmlns: "http://www.w3.org/2000/svg",
1796
- width: "16",
1797
- height: "16",
1798
- viewBox: "0 0 16 16",
1799
- fill: "none",
1800
- children: /* @__PURE__ */ jsx14(
1801
- "path",
1789
+ return /* @__PURE__ */ jsx14("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs13(
1790
+ "a",
1791
+ {
1792
+ href: "#",
1793
+ onClick: (e) => {
1794
+ e.preventDefault();
1795
+ changeStepHandler(step);
1796
+ },
1797
+ children: [
1798
+ /* @__PURE__ */ jsx14(
1799
+ "svg",
1802
1800
  {
1803
- d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1804
- stroke: "#6E3282",
1805
- strokeLinecap: "round",
1806
- strokeLinejoin: "round"
1801
+ "aria-hidden": "true",
1802
+ focusable: "false",
1803
+ xmlns: "http://www.w3.org/2000/svg",
1804
+ width: "16",
1805
+ height: "16",
1806
+ viewBox: "0 0 16 16",
1807
+ fill: "none",
1808
+ children: /* @__PURE__ */ jsx14(
1809
+ "path",
1810
+ {
1811
+ d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1812
+ stroke: "#6E3282",
1813
+ strokeLinecap: "round",
1814
+ strokeLinejoin: "round"
1815
+ }
1816
+ )
1807
1817
  }
1808
- )
1809
- }
1810
- ),
1811
- activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
1812
- ] }) });
1818
+ ),
1819
+ activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
1820
+ ]
1821
+ }
1822
+ ) });
1813
1823
  };
1814
1824
  var EditPreviewLinkStandard_default = EditPreviewLink;
1815
1825
 
@@ -2722,8 +2732,9 @@ var ValidationErrorSummaryList = ({
2722
2732
  const count = filteredIds.length;
2723
2733
  const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
2724
2734
  function getQuestionLabelById(id) {
2735
+ var _a;
2725
2736
  const found = formQuestions.find((item) => item.id === id);
2726
- return found == null ? void 0 : found.questionLabel;
2737
+ return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
2727
2738
  }
2728
2739
  return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
2729
2740
  /* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
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",