optimized-react-component-library-xyz123 0.15.2 → 0.15.4
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 +83 -109
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +95 -121
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +0 -39
- package/src/css/mobileView.css +25 -47
- package/src/css/questions.css +4 -29
- package/src/css/styles.css +13 -61
package/dist/index.mjs
CHANGED
|
@@ -2045,89 +2045,86 @@ var CookieBanner_default = CookieBanner;
|
|
|
2045
2045
|
// src/components/layout/FooterStandard/FooterStandard.tsx
|
|
2046
2046
|
import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2047
2047
|
var Footer = ({ activatedLanguage = "sv" }) => {
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
"
|
|
2048
|
+
return /* @__PURE__ */ jsx16("footer", { className: "pts-footer-container", children: /* @__PURE__ */ jsxs14("div", { className: "pts-footer-content", children: [
|
|
2049
|
+
/* @__PURE__ */ jsxs14(
|
|
2050
|
+
"svg",
|
|
2051
|
+
{
|
|
2052
|
+
"aria-label": activatedLanguage === "en" ? "PTS logotype" : "PTS logotyp",
|
|
2053
|
+
className: "pts-footer-logo",
|
|
2054
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2055
|
+
width: "278",
|
|
2056
|
+
height: "72",
|
|
2057
|
+
viewBox: "0 0 278 72",
|
|
2058
|
+
fill: "none",
|
|
2059
|
+
children: [
|
|
2060
|
+
/* @__PURE__ */ jsx16(
|
|
2061
|
+
"path",
|
|
2062
|
+
{
|
|
2063
|
+
d: "M54 43C54 47.2 51.5 51.1 47.6 52.3C45.8 52.8 44 53 41 53H24.5C21.4 53 21 53.5 21 56.5V63C21 65.4 19.5 67 17.5 67C15.5 67 14 65.4 14 63V58.5C14 56.5 14 54.8 14.2 53.9C14.8 50.5 16.8 47.9 20.1 46.7C21.4 46.2 23.6 45.9 27.9 45.9H42C43.2 45.9 44.4 45.8 44.9 45.6C46.4 45 46.9 44 46.9 42.9C46.9 41.8 46.5 40.7 44.9 40.2C44.4 40 43.2 39.9 42 39.9H19.4C18.5 39.9 17.7 39.9 17.3 39.7C15.8 39.2 14.9 37.8 14.9 36.4C14.9 35 15.8 33.6 17.3 33.1C17.8 32.9 18.3 32.9 19.3 32.9H40.9C44 32.9 46.4 33.1 47.9 33.7C51.8 35.2 53.9 38.4 53.9 42.9L54 43ZM95.7 33.3C95.2 33.1 94.4 33 93.3 33H61.6C60.8 33 60.1 33 59.7 33.2C58 33.7 57 35 57 36.5C57 38 57.8 39.2 59.4 39.7C59.9 39.9 60.7 40 61.6 40H74V63.4C74 65.8 75.6 67 77.5 67C79.4 67 81 65.8 81 63.4V40H93.3C94.5 40 95.1 40 95.5 39.8C97.1 39.3 98 38 98 36.5C98 35 97.2 33.8 95.7 33.3ZM133.5 47.4C131.8 46.5 129.6 46 124.1 46H113.5C111.8 46 110.9 45.9 110.3 45.7C108.6 45.1 108 44 108 43C108 42 108.4 40.8 110.2 40.2C110.7 40 111.6 40 112.5 40H132C132.4 40 133.5 40 133.8 40C135.6 39.7 137 38.6 137 36.6C137 34.6 135.6 33.6 133.9 33.2C133.6 33.2 132.9 33.1 132 33.1H113.5C110.2 33.1 107.8 33.5 106.2 34.2C102.9 35.8 101 39.2 101 43.1C101 47 102.8 50.5 106.4 52.1C108 52.8 110.4 53.1 113.5 53.1H127C128.7 53.1 129.6 53.3 130.2 53.5C131.6 54 132 55.4 132 56.6C132 57.8 131.6 59.3 129.9 59.8C129.3 60 128.1 60.1 126.1 60.1H106.5C105.7 60.1 104.9 60.1 104.5 60.3C102.9 60.7 102 62 102 63.6C102 65.2 103 66.2 104.3 66.7C104.8 66.9 105.9 67.1 106.7 67.1H124C127.7 67.1 130.7 66.9 132.5 66.3C136.6 65.1 138.9 61.2 138.9 56.6C138.9 52 136.8 49.2 133.4 47.5L133.5 47.4Z",
|
|
2064
|
+
fill: "white"
|
|
2065
|
+
}
|
|
2066
|
+
),
|
|
2067
|
+
/* @__PURE__ */ jsx16(
|
|
2068
|
+
"path",
|
|
2069
|
+
{
|
|
2070
|
+
d: "M92.1 15.7L92.5 15C90 11.6 84.1 9.2 78.1 9H76.9C70.9 9.2 65 11.6 62.5 15L62.9 15.7C61.8 15.7 61 16.4 61 17.3L63.3 27C63.5 27.6 63.7 27.9 64.5 27.9H90.5C91.2 27.9 91.5 27.5 91.6 27L93.9 17.3C93.9 16.4 93.1 15.7 92 15.7H92.1ZM69.3 18.8C69.1 18.8 68.8 18.7 68.6 18.7C67.6 18.7 66.9 19.4 66.9 20.3C66.9 21.2 67.6 21.8 68.5 21.8C69.4 21.8 69.3 21.7 69.5 21.4C69.5 22.2 68.6 24 67.4 24H64.9C63.2 24 63 21.7 63 21.5C63.2 21.7 63.7 21.8 64.1 21.8C64.9 21.8 65.6 21.2 65.6 20.3C65.6 19.4 64.9 18.7 63.9 18.7C62.9 18.7 63.5 18.7 63.4 18.7C63.8 18.4 64.2 17.9 64.2 17.3C64.2 16.7 63.9 16.4 63.5 16.1L65.8 15C67.3 12.5 70 10.7 73.3 10C71.5 11.3 70 12.9 68.8 15L69.6 15.7C68.8 15.8 68.2 16.5 68.2 17.3C68.2 18.1 68.6 18.5 69.2 18.8H69.3ZM76.8 18.9C76.6 18.8 76.2 18.7 76 18.7C75 18.7 74.3 19.4 74.3 20.3C74.3 21.2 75 21.8 75.9 21.8C76.8 21.8 76.7 21.7 77 21.5C77 22.3 76.4 24 75 24H72.5C70.9 24 70.5 22 70.5 21.4C70.7 21.6 71.1 21.8 71.6 21.8C72.4 21.8 73.2 21.2 73.2 20.3C73.2 19.4 72.5 18.7 71.5 18.7C70.5 18.7 70.9 18.7 70.8 18.8C71.4 18.5 71.8 18 71.8 17.3C71.8 16.6 71.4 16.1 70.8 15.9L72.6 15C73.1 13.2 74.7 10.6 76.4 9.7C76.2 10.6 76.1 12.5 76.1 15C76.1 15 76.6 15.5 77.1 15.8C76.4 16 75.9 16.6 75.9 17.3C75.9 18 76.3 18.5 76.9 18.8L76.8 18.9ZM82.5 24H80C78.6 24 78 22.3 78 21.5C78.2 21.7 78.6 21.8 79.1 21.8C80 21.8 80.7 21.2 80.7 20.3C80.7 19.4 80 18.7 79 18.7C78 18.7 78.4 18.7 78.2 18.9C78.8 18.7 79.3 18.1 79.3 17.4C79.3 16.7 78.8 16.1 78.1 15.9C78.6 15.6 79.1 15.1 79.1 15.1C79.1 12.6 79 10.7 78.7 9.8C80.5 10.7 82.1 13.2 82.6 15.1L84.4 16C83.9 16.2 83.4 16.8 83.4 17.4C83.4 18 83.8 18.6 84.4 18.9C84.2 18.9 83.9 18.8 83.7 18.8C82.7 18.8 82 19.5 82 20.4C82 21.3 82.7 21.9 83.6 21.9C84.5 21.9 84.4 21.8 84.7 21.5C84.7 22 84.3 24.1 82.7 24.1L82.5 24ZM90 24H87.5C86.2 24 85.4 22.3 85.4 21.4C85.6 21.7 86 21.8 86.5 21.8C87.3 21.8 88 21.2 88 20.3C88 19.4 87.3 18.7 86.3 18.7C85.3 18.7 85.7 18.7 85.6 18.8C86.2 18.5 86.6 18 86.6 17.3C86.6 16.6 86 15.8 85.1 15.7L86 15C84.8 12.9 83.3 11.4 81.5 10C84.7 10.7 87.5 12.4 89 15L91.4 16.1C91 16.4 90.7 16.8 90.7 17.4C90.7 18 91.1 18.6 91.6 18.9C91.5 18.9 91.2 18.8 91 18.8C90 18.8 89.3 19.5 89.3 20.4C89.3 21.3 90 21.9 90.8 21.9C91.6 21.9 91.7 21.8 91.9 21.6C91.9 21.8 91.6 24.1 90 24.1V24ZM77.5 9C76.1 9 75 7.9 75 6.5C75 5.1 75.9 4.3 77 4.1V3H76V2H77V1H78V2H79V3H78V4.1C79.1 4.3 80 5.3 80 6.6C80 7.9 78.9 9.1 77.5 9.1V9Z",
|
|
2071
|
+
fill: "white"
|
|
2072
|
+
}
|
|
2073
|
+
)
|
|
2074
|
+
]
|
|
2075
|
+
}
|
|
2076
|
+
),
|
|
2077
|
+
/* @__PURE__ */ jsx16("nav", { className: "pts-footer-linkList", children: /* @__PURE__ */ jsxs14("ul", { children: [
|
|
2078
|
+
/* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsxs14(
|
|
2079
|
+
"a",
|
|
2053
2080
|
{
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
width: "278",
|
|
2058
|
-
height: "72",
|
|
2059
|
-
viewBox: "0 0 278 72",
|
|
2060
|
-
fill: "none",
|
|
2081
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
|
|
2082
|
+
target: "_blank",
|
|
2083
|
+
rel: "noopener noreferrer",
|
|
2061
2084
|
children: [
|
|
2062
|
-
/* @__PURE__ */ jsx16(
|
|
2063
|
-
|
|
2064
|
-
{
|
|
2065
|
-
d: "M54 43C54 47.2 51.5 51.1 47.6 52.3C45.8 52.8 44 53 41 53H24.5C21.4 53 21 53.5 21 56.5V63C21 65.4 19.5 67 17.5 67C15.5 67 14 65.4 14 63V58.5C14 56.5 14 54.8 14.2 53.9C14.8 50.5 16.8 47.9 20.1 46.7C21.4 46.2 23.6 45.9 27.9 45.9H42C43.2 45.9 44.4 45.8 44.9 45.6C46.4 45 46.9 44 46.9 42.9C46.9 41.8 46.5 40.7 44.9 40.2C44.4 40 43.2 39.9 42 39.9H19.4C18.5 39.9 17.7 39.9 17.3 39.7C15.8 39.2 14.9 37.8 14.9 36.4C14.9 35 15.8 33.6 17.3 33.1C17.8 32.9 18.3 32.9 19.3 32.9H40.9C44 32.9 46.4 33.1 47.9 33.7C51.8 35.2 53.9 38.4 53.9 42.9L54 43ZM95.7 33.3C95.2 33.1 94.4 33 93.3 33H61.6C60.8 33 60.1 33 59.7 33.2C58 33.7 57 35 57 36.5C57 38 57.8 39.2 59.4 39.7C59.9 39.9 60.7 40 61.6 40H74V63.4C74 65.8 75.6 67 77.5 67C79.4 67 81 65.8 81 63.4V40H93.3C94.5 40 95.1 40 95.5 39.8C97.1 39.3 98 38 98 36.5C98 35 97.2 33.8 95.7 33.3ZM133.5 47.4C131.8 46.5 129.6 46 124.1 46H113.5C111.8 46 110.9 45.9 110.3 45.7C108.6 45.1 108 44 108 43C108 42 108.4 40.8 110.2 40.2C110.7 40 111.6 40 112.5 40H132C132.4 40 133.5 40 133.8 40C135.6 39.7 137 38.6 137 36.6C137 34.6 135.6 33.6 133.9 33.2C133.6 33.2 132.9 33.1 132 33.1H113.5C110.2 33.1 107.8 33.5 106.2 34.2C102.9 35.8 101 39.2 101 43.1C101 47 102.8 50.5 106.4 52.1C108 52.8 110.4 53.1 113.5 53.1H127C128.7 53.1 129.6 53.3 130.2 53.5C131.6 54 132 55.4 132 56.6C132 57.8 131.6 59.3 129.9 59.8C129.3 60 128.1 60.1 126.1 60.1H106.5C105.7 60.1 104.9 60.1 104.5 60.3C102.9 60.7 102 62 102 63.6C102 65.2 103 66.2 104.3 66.7C104.8 66.9 105.9 67.1 106.7 67.1H124C127.7 67.1 130.7 66.9 132.5 66.3C136.6 65.1 138.9 61.2 138.9 56.6C138.9 52 136.8 49.2 133.4 47.5L133.5 47.4Z",
|
|
2066
|
-
fill: "white"
|
|
2067
|
-
}
|
|
2068
|
-
),
|
|
2069
|
-
/* @__PURE__ */ jsx16(
|
|
2070
|
-
"path",
|
|
2071
|
-
{
|
|
2072
|
-
d: "M92.1 15.7L92.5 15C90 11.6 84.1 9.2 78.1 9H76.9C70.9 9.2 65 11.6 62.5 15L62.9 15.7C61.8 15.7 61 16.4 61 17.3L63.3 27C63.5 27.6 63.7 27.9 64.5 27.9H90.5C91.2 27.9 91.5 27.5 91.6 27L93.9 17.3C93.9 16.4 93.1 15.7 92 15.7H92.1ZM69.3 18.8C69.1 18.8 68.8 18.7 68.6 18.7C67.6 18.7 66.9 19.4 66.9 20.3C66.9 21.2 67.6 21.8 68.5 21.8C69.4 21.8 69.3 21.7 69.5 21.4C69.5 22.2 68.6 24 67.4 24H64.9C63.2 24 63 21.7 63 21.5C63.2 21.7 63.7 21.8 64.1 21.8C64.9 21.8 65.6 21.2 65.6 20.3C65.6 19.4 64.9 18.7 63.9 18.7C62.9 18.7 63.5 18.7 63.4 18.7C63.8 18.4 64.2 17.9 64.2 17.3C64.2 16.7 63.9 16.4 63.5 16.1L65.8 15C67.3 12.5 70 10.7 73.3 10C71.5 11.3 70 12.9 68.8 15L69.6 15.7C68.8 15.8 68.2 16.5 68.2 17.3C68.2 18.1 68.6 18.5 69.2 18.8H69.3ZM76.8 18.9C76.6 18.8 76.2 18.7 76 18.7C75 18.7 74.3 19.4 74.3 20.3C74.3 21.2 75 21.8 75.9 21.8C76.8 21.8 76.7 21.7 77 21.5C77 22.3 76.4 24 75 24H72.5C70.9 24 70.5 22 70.5 21.4C70.7 21.6 71.1 21.8 71.6 21.8C72.4 21.8 73.2 21.2 73.2 20.3C73.2 19.4 72.5 18.7 71.5 18.7C70.5 18.7 70.9 18.7 70.8 18.8C71.4 18.5 71.8 18 71.8 17.3C71.8 16.6 71.4 16.1 70.8 15.9L72.6 15C73.1 13.2 74.7 10.6 76.4 9.7C76.2 10.6 76.1 12.5 76.1 15C76.1 15 76.6 15.5 77.1 15.8C76.4 16 75.9 16.6 75.9 17.3C75.9 18 76.3 18.5 76.9 18.8L76.8 18.9ZM82.5 24H80C78.6 24 78 22.3 78 21.5C78.2 21.7 78.6 21.8 79.1 21.8C80 21.8 80.7 21.2 80.7 20.3C80.7 19.4 80 18.7 79 18.7C78 18.7 78.4 18.7 78.2 18.9C78.8 18.7 79.3 18.1 79.3 17.4C79.3 16.7 78.8 16.1 78.1 15.9C78.6 15.6 79.1 15.1 79.1 15.1C79.1 12.6 79 10.7 78.7 9.8C80.5 10.7 82.1 13.2 82.6 15.1L84.4 16C83.9 16.2 83.4 16.8 83.4 17.4C83.4 18 83.8 18.6 84.4 18.9C84.2 18.9 83.9 18.8 83.7 18.8C82.7 18.8 82 19.5 82 20.4C82 21.3 82.7 21.9 83.6 21.9C84.5 21.9 84.4 21.8 84.7 21.5C84.7 22 84.3 24.1 82.7 24.1L82.5 24ZM90 24H87.5C86.2 24 85.4 22.3 85.4 21.4C85.6 21.7 86 21.8 86.5 21.8C87.3 21.8 88 21.2 88 20.3C88 19.4 87.3 18.7 86.3 18.7C85.3 18.7 85.7 18.7 85.6 18.8C86.2 18.5 86.6 18 86.6 17.3C86.6 16.6 86 15.8 85.1 15.7L86 15C84.8 12.9 83.3 11.4 81.5 10C84.7 10.7 87.5 12.4 89 15L91.4 16.1C91 16.4 90.7 16.8 90.7 17.4C90.7 18 91.1 18.6 91.6 18.9C91.5 18.9 91.2 18.8 91 18.8C90 18.8 89.3 19.5 89.3 20.4C89.3 21.3 90 21.9 90.8 21.9C91.6 21.9 91.7 21.8 91.9 21.6C91.9 21.8 91.6 24.1 90 24.1V24ZM77.5 9C76.1 9 75 7.9 75 6.5C75 5.1 75.9 4.3 77 4.1V3H76V2H77V1H78V2H79V3H78V4.1C79.1 4.3 80 5.3 80 6.6C80 7.9 78.9 9.1 77.5 9.1V9Z",
|
|
2073
|
-
fill: "white"
|
|
2074
|
-
}
|
|
2075
|
-
)
|
|
2085
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
|
|
2086
|
+
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
|
|
2076
2087
|
]
|
|
2077
2088
|
}
|
|
2078
|
-
),
|
|
2079
|
-
/* @__PURE__ */ jsx16("
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
children:
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
children:
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
children:
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
"a",
|
|
2118
|
-
{
|
|
2119
|
-
href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
|
|
2120
|
-
target: "_blank",
|
|
2121
|
-
rel: "noopener noreferrer",
|
|
2122
|
-
children: [
|
|
2123
|
-
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens in new tab)" : "PTS Kakor (\xF6ppnas i ny flik)" }),
|
|
2124
|
-
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
|
|
2125
|
-
]
|
|
2126
|
-
}
|
|
2127
|
-
) })
|
|
2128
|
-
] }) })
|
|
2129
|
-
] })
|
|
2130
|
-
] });
|
|
2089
|
+
) }),
|
|
2090
|
+
/* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsxs14(
|
|
2091
|
+
"a",
|
|
2092
|
+
{
|
|
2093
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
|
|
2094
|
+
target: "_blank",
|
|
2095
|
+
rel: "noopener noreferrer",
|
|
2096
|
+
children: [
|
|
2097
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Processing of personal data (opens in new tab)" : "PTS Behandling av personuppgifter (\xF6ppnas i ny flik)" }),
|
|
2098
|
+
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Processing of personal data" : "Behandling av personuppgifter" })
|
|
2099
|
+
]
|
|
2100
|
+
}
|
|
2101
|
+
) }),
|
|
2102
|
+
/* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsxs14(
|
|
2103
|
+
"a",
|
|
2104
|
+
{
|
|
2105
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
|
|
2106
|
+
target: "_blank",
|
|
2107
|
+
rel: "noopener noreferrer",
|
|
2108
|
+
children: [
|
|
2109
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Accessibility (opens in new tab)" : "PTS Tillg\xE4nglighetsredog\xF6relse (\xF6ppnas i ny flik)" }),
|
|
2110
|
+
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Accessibility" : "Tillg\xE4nglighetsredog\xF6relse" })
|
|
2111
|
+
]
|
|
2112
|
+
}
|
|
2113
|
+
) }),
|
|
2114
|
+
/* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsxs14(
|
|
2115
|
+
"a",
|
|
2116
|
+
{
|
|
2117
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
|
|
2118
|
+
target: "_blank",
|
|
2119
|
+
rel: "noopener noreferrer",
|
|
2120
|
+
children: [
|
|
2121
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Cookies (opens in new tab)" : "PTS Kakor (\xF6ppnas i ny flik)" }),
|
|
2122
|
+
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Cookies" : "Kakor" })
|
|
2123
|
+
]
|
|
2124
|
+
}
|
|
2125
|
+
) })
|
|
2126
|
+
] }) })
|
|
2127
|
+
] }) });
|
|
2131
2128
|
};
|
|
2132
2129
|
var FooterStandard_default = Footer;
|
|
2133
2130
|
|
|
@@ -2528,7 +2525,7 @@ var Header = ({
|
|
|
2528
2525
|
if (activatedLanguage === "sv") return "English";
|
|
2529
2526
|
else return "Svenska";
|
|
2530
2527
|
};
|
|
2531
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsxs16("header", { className: "pts-header-container", children: [
|
|
2532
2529
|
/* @__PURE__ */ jsx18("div", { className: "pts-header-logo-container", children: /* @__PURE__ */ jsx18(
|
|
2533
2530
|
"a",
|
|
2534
2531
|
{
|
|
@@ -2539,7 +2536,7 @@ var Header = ({
|
|
|
2539
2536
|
children: activatedLanguage === "en" ? /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx18(Logo_en, {}) }) : /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx18(Logo_sv, {}) })
|
|
2540
2537
|
}
|
|
2541
2538
|
) }),
|
|
2542
|
-
|
|
2539
|
+
useLanguage && /* @__PURE__ */ jsxs16(
|
|
2543
2540
|
"button",
|
|
2544
2541
|
{
|
|
2545
2542
|
lang: activatedLanguage === "en" ? "en" : "sv",
|
|
@@ -2552,8 +2549,8 @@ var Header = ({
|
|
|
2552
2549
|
activatedLanguage === "sv" && /* @__PURE__ */ jsx18("span", { className: "sr-only", children: "Change language to English" })
|
|
2553
2550
|
]
|
|
2554
2551
|
}
|
|
2555
|
-
)
|
|
2556
|
-
] })
|
|
2552
|
+
)
|
|
2553
|
+
] });
|
|
2557
2554
|
};
|
|
2558
2555
|
var HeaderStandard_default = Header;
|
|
2559
2556
|
|
|
@@ -2805,13 +2802,13 @@ var TextBody = ({ data }) => {
|
|
|
2805
2802
|
var TextBody_default = TextBody;
|
|
2806
2803
|
|
|
2807
2804
|
// src/components/stepper/EditPreviewLinkStandard/EditPreviewLinkStandard.tsx
|
|
2808
|
-
import { jsx as jsx24
|
|
2805
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2809
2806
|
var EditPreviewLink = ({
|
|
2810
2807
|
step,
|
|
2811
2808
|
changeStepHandler,
|
|
2812
2809
|
activatedLanguage = "sv"
|
|
2813
2810
|
}) => {
|
|
2814
|
-
return /* @__PURE__ */ jsx24("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */
|
|
2811
|
+
return /* @__PURE__ */ jsx24("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsx24(
|
|
2815
2812
|
"a",
|
|
2816
2813
|
{
|
|
2817
2814
|
href: "#",
|
|
@@ -2820,30 +2817,7 @@ var EditPreviewLink = ({
|
|
|
2820
2817
|
e.preventDefault();
|
|
2821
2818
|
changeStepHandler(step.step);
|
|
2822
2819
|
},
|
|
2823
|
-
children:
|
|
2824
|
-
/* @__PURE__ */ jsx24(
|
|
2825
|
-
"svg",
|
|
2826
|
-
{
|
|
2827
|
-
"aria-hidden": "true",
|
|
2828
|
-
focusable: "false",
|
|
2829
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2830
|
-
width: "16",
|
|
2831
|
-
height: "16",
|
|
2832
|
-
viewBox: "0 0 16 16",
|
|
2833
|
-
fill: "none",
|
|
2834
|
-
children: /* @__PURE__ */ jsx24(
|
|
2835
|
-
"path",
|
|
2836
|
-
{
|
|
2837
|
-
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",
|
|
2838
|
-
stroke: "#6E3282",
|
|
2839
|
-
strokeLinecap: "round",
|
|
2840
|
-
strokeLinejoin: "round"
|
|
2841
|
-
}
|
|
2842
|
-
)
|
|
2843
|
-
}
|
|
2844
|
-
),
|
|
2845
|
-
/* @__PURE__ */ jsx24("span", { className: "pts-edit-step-text", children: activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}` })
|
|
2846
|
-
]
|
|
2820
|
+
children: /* @__PURE__ */ jsx24("span", { className: "pts-edit-step-text", children: activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}` })
|
|
2847
2821
|
}
|
|
2848
2822
|
) });
|
|
2849
2823
|
};
|
|
@@ -2869,7 +2843,7 @@ var StartApplicationButton = ({
|
|
|
2869
2843
|
var StartApplicationButton_default = StartApplicationButton;
|
|
2870
2844
|
|
|
2871
2845
|
// src/components/stepper/StepperButtonsStandard/StepperButtonsStandard.tsx
|
|
2872
|
-
import { jsx as jsx26, jsxs as
|
|
2846
|
+
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2873
2847
|
var StepperButtons = ({
|
|
2874
2848
|
globalLanguageState,
|
|
2875
2849
|
changeStepHandler,
|
|
@@ -2879,7 +2853,7 @@ var StepperButtons = ({
|
|
|
2879
2853
|
activeStep
|
|
2880
2854
|
}) => {
|
|
2881
2855
|
const totalSteps = steps ? steps.length : "";
|
|
2882
|
-
return /* @__PURE__ */
|
|
2856
|
+
return /* @__PURE__ */ jsxs20("div", { className: "pts-stepperButtons-container", children: [
|
|
2883
2857
|
activeStep !== 0 && /* @__PURE__ */ jsx26(
|
|
2884
2858
|
"button",
|
|
2885
2859
|
{
|
|
@@ -2889,7 +2863,7 @@ var StepperButtons = ({
|
|
|
2889
2863
|
children: globalLanguageState ? globalLanguageState.backButton : "<<"
|
|
2890
2864
|
}
|
|
2891
2865
|
),
|
|
2892
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ jsxs20(
|
|
2893
2867
|
"button",
|
|
2894
2868
|
{
|
|
2895
2869
|
type: activeStep === totalSteps ? "submit" : "button",
|
|
@@ -2907,14 +2881,14 @@ var StepperButtonsStandard_default = StepperButtons;
|
|
|
2907
2881
|
|
|
2908
2882
|
// src/components/stepper/StepperStandard/StepperStandard.tsx
|
|
2909
2883
|
import React9 from "react";
|
|
2910
|
-
import { jsx as jsx27, jsxs as
|
|
2884
|
+
import { jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2911
2885
|
var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
|
|
2912
2886
|
return /* @__PURE__ */ jsx27("div", { className: "pts-stepper-container", "aria-hidden": "true", children: arraySteps.map((step, index) => {
|
|
2913
2887
|
const isActive = step.step === activeStep;
|
|
2914
2888
|
const lastElement = arraySteps.length;
|
|
2915
2889
|
const isDone = step.step < activeStep;
|
|
2916
|
-
return /* @__PURE__ */
|
|
2917
|
-
/* @__PURE__ */
|
|
2890
|
+
return /* @__PURE__ */ jsxs21(React9.Fragment, { children: [
|
|
2891
|
+
/* @__PURE__ */ jsxs21("div", { className: "pts-stepper-step", children: [
|
|
2918
2892
|
/* @__PURE__ */ jsx27(
|
|
2919
2893
|
"div",
|
|
2920
2894
|
{
|
|
@@ -2949,7 +2923,7 @@ var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
|
|
|
2949
2923
|
var StepperStandard_default = Stepper;
|
|
2950
2924
|
|
|
2951
2925
|
// src/components/validation-and-status/ValidationErrorSummaryList/ValidationErrorSummaryList.tsx
|
|
2952
|
-
import { Fragment as Fragment16, jsx as jsx28, jsxs as
|
|
2926
|
+
import { Fragment as Fragment16, jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2953
2927
|
var ValidationErrorSummaryList = ({
|
|
2954
2928
|
validationErrorsList,
|
|
2955
2929
|
questions,
|
|
@@ -2998,9 +2972,9 @@ var ValidationErrorSummaryList = ({
|
|
|
2998
2972
|
const found = questions.find((item) => item.id === id);
|
|
2999
2973
|
return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
|
|
3000
2974
|
}
|
|
3001
|
-
return /* @__PURE__ */
|
|
2975
|
+
return /* @__PURE__ */ jsxs22("div", { className: `pts-errorSummary-container pts-root-error ${validationErrorsList.length === 0 ? "cleanPadding" : ""}`, children: [
|
|
3002
2976
|
/* @__PURE__ */ jsx28("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
3003
|
-
/* @__PURE__ */
|
|
2977
|
+
/* @__PURE__ */ jsxs22("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
|
|
3004
2978
|
/* @__PURE__ */ jsx28("h2", { id: "errorSummary-headline", children: title }),
|
|
3005
2979
|
/* @__PURE__ */ jsx28("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx28("li", { children: /* @__PURE__ */ jsx28(
|
|
3006
2980
|
"a",
|
|
@@ -3020,10 +2994,10 @@ var ValidationErrorSummaryList = ({
|
|
|
3020
2994
|
var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
|
|
3021
2995
|
|
|
3022
2996
|
// src/components/validation-and-status/FormStatusMessagesScreenReader/FormStatusMessagesScreenReader.tsx
|
|
3023
|
-
import { Fragment as Fragment17, jsx as jsx29, jsxs as
|
|
2997
|
+
import { Fragment as Fragment17, jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3024
2998
|
var FormStatusMessagesScreenReader = ({ formStatus }) => {
|
|
3025
|
-
return /* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */ jsx29("p", { "aria-live": "assertive", children: formStatus === "failed" && /* @__PURE__ */ jsx29("span", { className: "
|
|
2999
|
+
return /* @__PURE__ */ jsxs23(Fragment17, { children: [
|
|
3000
|
+
/* @__PURE__ */ jsx29("p", { "aria-live": "assertive", children: formStatus === "failed" && /* @__PURE__ */ jsx29("span", { className: "mandatoryAsterisk", children: "N\xE5got gick fel, f\xF6rs\xF6k igen senare eller kontakta oss!" }) }),
|
|
3027
3001
|
/* @__PURE__ */ jsx29("div", { "aria-live": "polite", className: "visually-hidden", children: formStatus === "loading" ? "Ditt \xE4rende registreras. Uppdatera eller st\xE4ng inte sidan." : "" })
|
|
3028
3002
|
] });
|
|
3029
3003
|
};
|