optimized-react-component-library-xyz123 0.1.30 → 0.1.32
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 +108 -58
- package/dist/index.mjs +108 -58
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1788,40 +1788,77 @@ var import_react5 = require("react");
|
|
|
1788
1788
|
var import_dompurify5 = __toESM(require("dompurify"));
|
|
1789
1789
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1790
1790
|
var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
1791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
"
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
"
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
viewBox: "0 0 12 10",
|
|
1810
|
-
fill: "none",
|
|
1811
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1812
|
-
"path",
|
|
1791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1792
|
+
"section",
|
|
1793
|
+
{
|
|
1794
|
+
className: "pts-textHeadlineAndBody-container",
|
|
1795
|
+
"aria-labelledby": "textHeadlineAndBody-headline",
|
|
1796
|
+
children: [
|
|
1797
|
+
data.headline && (0, import_react5.createElement)(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
|
|
1798
|
+
data.body && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify5.default.sanitize(data.body) } }),
|
|
1799
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1800
|
+
"a",
|
|
1801
|
+
{
|
|
1802
|
+
href: link.url,
|
|
1803
|
+
target: "_blank",
|
|
1804
|
+
rel: "noopener noreferrer",
|
|
1805
|
+
"aria-label": link.ariaLabel,
|
|
1806
|
+
children: [
|
|
1807
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1808
|
+
"svg",
|
|
1813
1809
|
{
|
|
1814
|
-
|
|
1815
|
-
|
|
1810
|
+
"aria-hidden": "true",
|
|
1811
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1812
|
+
width: "12",
|
|
1813
|
+
height: "10",
|
|
1814
|
+
viewBox: "0 0 12 10",
|
|
1815
|
+
fill: "none",
|
|
1816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1817
|
+
"path",
|
|
1818
|
+
{
|
|
1819
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1820
|
+
fill: "#ffffff"
|
|
1821
|
+
}
|
|
1822
|
+
)
|
|
1816
1823
|
}
|
|
1817
|
-
)
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1824
|
+
) }),
|
|
1825
|
+
link.title
|
|
1826
|
+
]
|
|
1827
|
+
}
|
|
1828
|
+
) }, `more-info-${index}`)) }),
|
|
1829
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1830
|
+
"a",
|
|
1831
|
+
{
|
|
1832
|
+
href: data.linksForMoreInfo[0].url,
|
|
1833
|
+
target: "_blank",
|
|
1834
|
+
rel: "noopener noreferrer",
|
|
1835
|
+
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
1836
|
+
children: [
|
|
1837
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1838
|
+
"svg",
|
|
1839
|
+
{
|
|
1840
|
+
"aria-hidden": "true",
|
|
1841
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1842
|
+
width: "12",
|
|
1843
|
+
height: "10",
|
|
1844
|
+
viewBox: "0 0 12 10",
|
|
1845
|
+
fill: "none",
|
|
1846
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1847
|
+
"path",
|
|
1848
|
+
{
|
|
1849
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1850
|
+
fill: "#ffffff"
|
|
1851
|
+
}
|
|
1852
|
+
)
|
|
1853
|
+
}
|
|
1854
|
+
) }),
|
|
1855
|
+
data.linksForMoreInfo[0].title
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
)
|
|
1859
|
+
]
|
|
1860
|
+
}
|
|
1861
|
+
);
|
|
1825
1862
|
};
|
|
1826
1863
|
var TextHeadlineAndBodyStandard_default = TextHeadlineAndBody;
|
|
1827
1864
|
|
|
@@ -1886,7 +1923,7 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
|
|
|
1886
1923
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "pts-serviceHeadlineAndBody-container", children: [
|
|
1887
1924
|
data.mainHeadline && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h1", { id: "pts-main-service-headline", children: data.mainHeadline }),
|
|
1888
1925
|
activeStep === 1 && data.ingressBody && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify6.default.sanitize(data.ingressBody) } }),
|
|
1889
|
-
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length >
|
|
1926
|
+
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((moreInfo, index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("a", { href: moreInfo.url, target: "_blank", rel: "noopener noreferrer", children: [
|
|
1890
1927
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1891
1928
|
"svg",
|
|
1892
1929
|
{
|
|
@@ -1906,7 +1943,28 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
|
|
|
1906
1943
|
}
|
|
1907
1944
|
),
|
|
1908
1945
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "pts-moreinfo-link-text", children: moreInfo.title })
|
|
1909
|
-
] }) }, moreInfo.title + index)) })
|
|
1946
|
+
] }) }, moreInfo.title + index)) }),
|
|
1947
|
+
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("a", { href: data.linksForMoreInfo[0].url, target: "_blank", rel: "noopener noreferrer", children: [
|
|
1948
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1949
|
+
"svg",
|
|
1950
|
+
{
|
|
1951
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1952
|
+
width: "12",
|
|
1953
|
+
height: "10",
|
|
1954
|
+
viewBox: "0 0 12 10",
|
|
1955
|
+
fill: "none",
|
|
1956
|
+
"aria-hidden": "true",
|
|
1957
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1958
|
+
"path",
|
|
1959
|
+
{
|
|
1960
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1961
|
+
fill: "#ffffff"
|
|
1962
|
+
}
|
|
1963
|
+
)
|
|
1964
|
+
}
|
|
1965
|
+
),
|
|
1966
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "pts-moreinfo-link-text", children: data.linksForMoreInfo[0].title })
|
|
1967
|
+
] })
|
|
1910
1968
|
] });
|
|
1911
1969
|
};
|
|
1912
1970
|
var ServiceHeadlineAndBodyStandard_default = ServiceHeadlineAndBody;
|
|
@@ -2027,29 +2085,21 @@ var ValidationErrorSummaryList = ({
|
|
|
2027
2085
|
const found = formQuestions.find((item) => item.id === id);
|
|
2028
2086
|
return found == null ? void 0 : found.questionLabel;
|
|
2029
2087
|
}
|
|
2030
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2031
|
-
"
|
|
2032
|
-
{
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
className: "errorSummary-text",
|
|
2046
|
-
children: getQuestionLabelById(questionId)
|
|
2047
|
-
}
|
|
2048
|
-
) }, questionId || i)) })
|
|
2049
|
-
] })
|
|
2050
|
-
]
|
|
2051
|
-
}
|
|
2052
|
-
);
|
|
2088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2089
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
2090
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "errorSummary-content", children: [
|
|
2091
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { children: title }),
|
|
2092
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("ul", { children: validationErrorsList.map((questionId, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2093
|
+
"a",
|
|
2094
|
+
{
|
|
2095
|
+
href: `question-${questionId}`,
|
|
2096
|
+
onClick: (e) => scrollToQuestion(questionId),
|
|
2097
|
+
className: "errorSummary-text",
|
|
2098
|
+
children: getQuestionLabelById(questionId)
|
|
2099
|
+
}
|
|
2100
|
+
) }, questionId || i)) })
|
|
2101
|
+
] })
|
|
2102
|
+
] });
|
|
2053
2103
|
};
|
|
2054
2104
|
var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
|
|
2055
2105
|
|
|
@@ -2089,7 +2139,7 @@ var CookieBanner = ({
|
|
|
2089
2139
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "content", children: [
|
|
2090
2140
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h3", { id: "cookie-banner-title", children: "Kakor (cookies)" }),
|
|
2091
2141
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { id: "cookie-banner-description", children: "PTS skulle vilja anv\xE4nda en statistikkaka i syfte att l\xF6pande f\xF6rb\xE4ttra webbplatsen. Samtycker du till det? Du kan n\xE4r som helst \xE4ndra ditt val. F\xF6r att \xE5terkalla ditt samtycke klickar du p\xE5 \u201DKakor\u201D i avsnittet l\xE4ngst ned p\xE5 webbplatsen." }),
|
|
2092
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", {
|
|
2142
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "pts-cookieBanner-Links", children: [
|
|
2093
2143
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2094
2144
|
"svg",
|
|
2095
2145
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1724,40 +1724,77 @@ import { createElement } from "react";
|
|
|
1724
1724
|
import DOMPurify5 from "dompurify";
|
|
1725
1725
|
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1726
1726
|
var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
1727
|
-
return /* @__PURE__ */ jsxs14(
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
"
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
"
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
viewBox: "0 0 12 10",
|
|
1746
|
-
fill: "none",
|
|
1747
|
-
children: /* @__PURE__ */ jsx14(
|
|
1748
|
-
"path",
|
|
1727
|
+
return /* @__PURE__ */ jsxs14(
|
|
1728
|
+
"section",
|
|
1729
|
+
{
|
|
1730
|
+
className: "pts-textHeadlineAndBody-container",
|
|
1731
|
+
"aria-labelledby": "textHeadlineAndBody-headline",
|
|
1732
|
+
children: [
|
|
1733
|
+
data.headline && createElement(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
|
|
1734
|
+
data.body && /* @__PURE__ */ jsx14("div", { dangerouslySetInnerHTML: { __html: DOMPurify5.sanitize(data.body) } }),
|
|
1735
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx14("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx14("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs14(
|
|
1736
|
+
"a",
|
|
1737
|
+
{
|
|
1738
|
+
href: link.url,
|
|
1739
|
+
target: "_blank",
|
|
1740
|
+
rel: "noopener noreferrer",
|
|
1741
|
+
"aria-label": link.ariaLabel,
|
|
1742
|
+
children: [
|
|
1743
|
+
/* @__PURE__ */ jsx14("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx14(
|
|
1744
|
+
"svg",
|
|
1749
1745
|
{
|
|
1750
|
-
|
|
1751
|
-
|
|
1746
|
+
"aria-hidden": "true",
|
|
1747
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1748
|
+
width: "12",
|
|
1749
|
+
height: "10",
|
|
1750
|
+
viewBox: "0 0 12 10",
|
|
1751
|
+
fill: "none",
|
|
1752
|
+
children: /* @__PURE__ */ jsx14(
|
|
1753
|
+
"path",
|
|
1754
|
+
{
|
|
1755
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1756
|
+
fill: "#ffffff"
|
|
1757
|
+
}
|
|
1758
|
+
)
|
|
1752
1759
|
}
|
|
1753
|
-
)
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1760
|
+
) }),
|
|
1761
|
+
link.title
|
|
1762
|
+
]
|
|
1763
|
+
}
|
|
1764
|
+
) }, `more-info-${index}`)) }),
|
|
1765
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs14(
|
|
1766
|
+
"a",
|
|
1767
|
+
{
|
|
1768
|
+
href: data.linksForMoreInfo[0].url,
|
|
1769
|
+
target: "_blank",
|
|
1770
|
+
rel: "noopener noreferrer",
|
|
1771
|
+
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
1772
|
+
children: [
|
|
1773
|
+
/* @__PURE__ */ jsx14("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx14(
|
|
1774
|
+
"svg",
|
|
1775
|
+
{
|
|
1776
|
+
"aria-hidden": "true",
|
|
1777
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1778
|
+
width: "12",
|
|
1779
|
+
height: "10",
|
|
1780
|
+
viewBox: "0 0 12 10",
|
|
1781
|
+
fill: "none",
|
|
1782
|
+
children: /* @__PURE__ */ jsx14(
|
|
1783
|
+
"path",
|
|
1784
|
+
{
|
|
1785
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1786
|
+
fill: "#ffffff"
|
|
1787
|
+
}
|
|
1788
|
+
)
|
|
1789
|
+
}
|
|
1790
|
+
) }),
|
|
1791
|
+
data.linksForMoreInfo[0].title
|
|
1792
|
+
]
|
|
1793
|
+
}
|
|
1794
|
+
)
|
|
1795
|
+
]
|
|
1796
|
+
}
|
|
1797
|
+
);
|
|
1761
1798
|
};
|
|
1762
1799
|
var TextHeadlineAndBodyStandard_default = TextHeadlineAndBody;
|
|
1763
1800
|
|
|
@@ -1822,7 +1859,7 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
|
|
|
1822
1859
|
return /* @__PURE__ */ jsxs15("div", { className: "pts-serviceHeadlineAndBody-container", children: [
|
|
1823
1860
|
data.mainHeadline && /* @__PURE__ */ jsx16("h1", { id: "pts-main-service-headline", children: data.mainHeadline }),
|
|
1824
1861
|
activeStep === 1 && data.ingressBody && /* @__PURE__ */ jsx16("div", { dangerouslySetInnerHTML: { __html: DOMPurify6.sanitize(data.ingressBody) } }),
|
|
1825
|
-
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length >
|
|
1862
|
+
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx16("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((moreInfo, index) => /* @__PURE__ */ jsx16("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs15("a", { href: moreInfo.url, target: "_blank", rel: "noopener noreferrer", children: [
|
|
1826
1863
|
/* @__PURE__ */ jsx16(
|
|
1827
1864
|
"svg",
|
|
1828
1865
|
{
|
|
@@ -1842,7 +1879,28 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
|
|
|
1842
1879
|
}
|
|
1843
1880
|
),
|
|
1844
1881
|
/* @__PURE__ */ jsx16("span", { className: "pts-moreinfo-link-text", children: moreInfo.title })
|
|
1845
|
-
] }) }, moreInfo.title + index)) })
|
|
1882
|
+
] }) }, moreInfo.title + index)) }),
|
|
1883
|
+
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs15("a", { href: data.linksForMoreInfo[0].url, target: "_blank", rel: "noopener noreferrer", children: [
|
|
1884
|
+
/* @__PURE__ */ jsx16(
|
|
1885
|
+
"svg",
|
|
1886
|
+
{
|
|
1887
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1888
|
+
width: "12",
|
|
1889
|
+
height: "10",
|
|
1890
|
+
viewBox: "0 0 12 10",
|
|
1891
|
+
fill: "none",
|
|
1892
|
+
"aria-hidden": "true",
|
|
1893
|
+
children: /* @__PURE__ */ jsx16(
|
|
1894
|
+
"path",
|
|
1895
|
+
{
|
|
1896
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
1897
|
+
fill: "#ffffff"
|
|
1898
|
+
}
|
|
1899
|
+
)
|
|
1900
|
+
}
|
|
1901
|
+
),
|
|
1902
|
+
/* @__PURE__ */ jsx16("span", { className: "pts-moreinfo-link-text", children: data.linksForMoreInfo[0].title })
|
|
1903
|
+
] })
|
|
1846
1904
|
] });
|
|
1847
1905
|
};
|
|
1848
1906
|
var ServiceHeadlineAndBodyStandard_default = ServiceHeadlineAndBody;
|
|
@@ -1963,29 +2021,21 @@ var ValidationErrorSummaryList = ({
|
|
|
1963
2021
|
const found = formQuestions.find((item) => item.id === id);
|
|
1964
2022
|
return found == null ? void 0 : found.questionLabel;
|
|
1965
2023
|
}
|
|
1966
|
-
return /* @__PURE__ */ jsxs18(
|
|
1967
|
-
"
|
|
1968
|
-
{
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
className: "errorSummary-text",
|
|
1982
|
-
children: getQuestionLabelById(questionId)
|
|
1983
|
-
}
|
|
1984
|
-
) }, questionId || i)) })
|
|
1985
|
-
] })
|
|
1986
|
-
]
|
|
1987
|
-
}
|
|
1988
|
-
);
|
|
2024
|
+
return /* @__PURE__ */ jsxs18("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2025
|
+
/* @__PURE__ */ jsx20("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
2026
|
+
/* @__PURE__ */ jsxs18("div", { className: "errorSummary-content", children: [
|
|
2027
|
+
/* @__PURE__ */ jsx20("h2", { children: title }),
|
|
2028
|
+
/* @__PURE__ */ jsx20("ul", { children: validationErrorsList.map((questionId, i) => /* @__PURE__ */ jsx20("li", { children: /* @__PURE__ */ jsx20(
|
|
2029
|
+
"a",
|
|
2030
|
+
{
|
|
2031
|
+
href: `question-${questionId}`,
|
|
2032
|
+
onClick: (e) => scrollToQuestion(questionId),
|
|
2033
|
+
className: "errorSummary-text",
|
|
2034
|
+
children: getQuestionLabelById(questionId)
|
|
2035
|
+
}
|
|
2036
|
+
) }, questionId || i)) })
|
|
2037
|
+
] })
|
|
2038
|
+
] });
|
|
1989
2039
|
};
|
|
1990
2040
|
var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
|
|
1991
2041
|
|
|
@@ -2025,7 +2075,7 @@ var CookieBanner = ({
|
|
|
2025
2075
|
children: /* @__PURE__ */ jsxs19("div", { className: "content", children: [
|
|
2026
2076
|
/* @__PURE__ */ jsx21("h3", { id: "cookie-banner-title", children: "Kakor (cookies)" }),
|
|
2027
2077
|
/* @__PURE__ */ jsx21("p", { id: "cookie-banner-description", children: "PTS skulle vilja anv\xE4nda en statistikkaka i syfte att l\xF6pande f\xF6rb\xE4ttra webbplatsen. Samtycker du till det? Du kan n\xE4r som helst \xE4ndra ditt val. F\xF6r att \xE5terkalla ditt samtycke klickar du p\xE5 \u201DKakor\u201D i avsnittet l\xE4ngst ned p\xE5 webbplatsen." }),
|
|
2028
|
-
/* @__PURE__ */ jsxs19("div", {
|
|
2078
|
+
/* @__PURE__ */ jsxs19("div", { className: "pts-cookieBanner-Links", children: [
|
|
2029
2079
|
/* @__PURE__ */ jsxs19(
|
|
2030
2080
|
"svg",
|
|
2031
2081
|
{
|
package/package.json
CHANGED