optimized-react-component-library-xyz123 0.1.9 → 0.1.11
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 +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +29 -14
- package/dist/index.mjs +29 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -208,8 +208,7 @@ declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPre
|
|
|
208
208
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
209
209
|
|
|
210
210
|
interface EditPreviewLinkProps {
|
|
211
|
-
|
|
212
|
-
arraySteps: any;
|
|
211
|
+
step: number;
|
|
213
212
|
changeStepHandler: any;
|
|
214
213
|
activatedLanguage?: string;
|
|
215
214
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -208,8 +208,7 @@ declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPre
|
|
|
208
208
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
209
209
|
|
|
210
210
|
interface EditPreviewLinkProps {
|
|
211
|
-
|
|
212
|
-
arraySteps: any;
|
|
211
|
+
step: number;
|
|
213
212
|
changeStepHandler: any;
|
|
214
213
|
activatedLanguage?: string;
|
|
215
214
|
}
|
package/dist/index.js
CHANGED
|
@@ -1161,9 +1161,12 @@ var ILanguageSupportinitialState = {
|
|
|
1161
1161
|
|
|
1162
1162
|
// src/NewTextComponentStandard/EditPreviewLinkStandard/EditPreviewLinkStandard.tsx
|
|
1163
1163
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1164
|
-
var EditPreviewLink = ({
|
|
1165
|
-
|
|
1166
|
-
|
|
1164
|
+
var EditPreviewLink = ({
|
|
1165
|
+
step,
|
|
1166
|
+
changeStepHandler,
|
|
1167
|
+
activatedLanguage = "sv"
|
|
1168
|
+
}) => {
|
|
1169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { type: "button", onClick: () => changeStepHandler(step), role: "link", children: [
|
|
1167
1170
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1168
1171
|
"svg",
|
|
1169
1172
|
{
|
|
@@ -1193,7 +1196,7 @@ var EditPreviewLinkStandard_default = EditPreviewLink;
|
|
|
1193
1196
|
// src/NewTextComponentStandard/FooterStandard/FooterStandard.tsx
|
|
1194
1197
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1195
1198
|
var Footer = ({ activatedLanguage = "sv" }) => {
|
|
1196
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("
|
|
1199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("footer", { className: "pts-footer-container", children: [
|
|
1197
1200
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1198
1201
|
"svg",
|
|
1199
1202
|
{
|
|
@@ -1229,14 +1232,22 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1229
1232
|
className: "pts-footer-linkList",
|
|
1230
1233
|
"aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
|
|
1231
1234
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("ul", { children: [
|
|
1232
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("a", { href: "https://www.pts.se/kontakt/", target: "_blank", rel: "noopener noreferrer", children: [
|
|
1233
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
|
|
1234
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
|
|
1235
|
-
] }) }),
|
|
1236
1235
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1237
1236
|
"a",
|
|
1238
1237
|
{
|
|
1239
|
-
href: "https://www.pts.se/
|
|
1238
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
|
|
1239
|
+
target: "_blank",
|
|
1240
|
+
rel: "noopener noreferrer",
|
|
1241
|
+
children: [
|
|
1242
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
|
|
1243
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
|
|
1244
|
+
]
|
|
1245
|
+
}
|
|
1246
|
+
) }),
|
|
1247
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1248
|
+
"a",
|
|
1249
|
+
{
|
|
1250
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
|
|
1240
1251
|
target: "_blank",
|
|
1241
1252
|
rel: "noopener noreferrer",
|
|
1242
1253
|
children: [
|
|
@@ -1248,7 +1259,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1248
1259
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1249
1260
|
"a",
|
|
1250
1261
|
{
|
|
1251
|
-
href: "https://
|
|
1262
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
|
|
1252
1263
|
target: "_blank",
|
|
1253
1264
|
rel: "noopener noreferrer",
|
|
1254
1265
|
children: [
|
|
@@ -1260,7 +1271,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1260
1271
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1261
1272
|
"a",
|
|
1262
1273
|
{
|
|
1263
|
-
href: "https://
|
|
1274
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
|
|
1264
1275
|
target: "_blank",
|
|
1265
1276
|
rel: "noopener noreferrer",
|
|
1266
1277
|
children: [
|
|
@@ -1655,8 +1666,12 @@ var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("svg", { widt
|
|
|
1655
1666
|
|
|
1656
1667
|
// src/NewTextComponentStandard/HeaderStandard/HeaderStandard.tsx
|
|
1657
1668
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1658
|
-
var Header = ({
|
|
1659
|
-
|
|
1669
|
+
var Header = ({
|
|
1670
|
+
activatedLanguage = "sv",
|
|
1671
|
+
useLanguage = true,
|
|
1672
|
+
SetActivatedLanguage = () => {
|
|
1673
|
+
}
|
|
1674
|
+
}) => {
|
|
1660
1675
|
const logoLink = activatedLanguage === "en" ? "https://pts.se/en" : "https://pts.se/";
|
|
1661
1676
|
const handleLanguageClick = () => {
|
|
1662
1677
|
if (activatedLanguage === "sv") {
|
|
@@ -1669,7 +1684,7 @@ var Header = ({ activatedLanguage = "sv", useLanguage = true, SetActivatedLangua
|
|
|
1669
1684
|
if (activatedLanguage === "sv") return "English";
|
|
1670
1685
|
else return "Svenska";
|
|
1671
1686
|
};
|
|
1672
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("
|
|
1687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("header", { className: "pts-header-container", children: [
|
|
1673
1688
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1674
1689
|
"a",
|
|
1675
1690
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1098,9 +1098,12 @@ var ILanguageSupportinitialState = {
|
|
|
1098
1098
|
|
|
1099
1099
|
// src/NewTextComponentStandard/EditPreviewLinkStandard/EditPreviewLinkStandard.tsx
|
|
1100
1100
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1101
|
-
var EditPreviewLink = ({
|
|
1102
|
-
|
|
1103
|
-
|
|
1101
|
+
var EditPreviewLink = ({
|
|
1102
|
+
step,
|
|
1103
|
+
changeStepHandler,
|
|
1104
|
+
activatedLanguage = "sv"
|
|
1105
|
+
}) => {
|
|
1106
|
+
return /* @__PURE__ */ jsx8("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs8("button", { type: "button", onClick: () => changeStepHandler(step), role: "link", children: [
|
|
1104
1107
|
/* @__PURE__ */ jsx8(
|
|
1105
1108
|
"svg",
|
|
1106
1109
|
{
|
|
@@ -1130,7 +1133,7 @@ var EditPreviewLinkStandard_default = EditPreviewLink;
|
|
|
1130
1133
|
// src/NewTextComponentStandard/FooterStandard/FooterStandard.tsx
|
|
1131
1134
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1132
1135
|
var Footer = ({ activatedLanguage = "sv" }) => {
|
|
1133
|
-
return /* @__PURE__ */ jsxs9("
|
|
1136
|
+
return /* @__PURE__ */ jsxs9("footer", { className: "pts-footer-container", children: [
|
|
1134
1137
|
/* @__PURE__ */ jsxs9(
|
|
1135
1138
|
"svg",
|
|
1136
1139
|
{
|
|
@@ -1166,14 +1169,22 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1166
1169
|
className: "pts-footer-linkList",
|
|
1167
1170
|
"aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
|
|
1168
1171
|
children: /* @__PURE__ */ jsxs9("ul", { children: [
|
|
1169
|
-
/* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsxs9("a", { href: "https://www.pts.se/kontakt/", target: "_blank", rel: "noopener noreferrer", children: [
|
|
1170
|
-
/* @__PURE__ */ jsx9("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
|
|
1171
|
-
/* @__PURE__ */ jsx9("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
|
|
1172
|
-
] }) }),
|
|
1173
1172
|
/* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsxs9(
|
|
1174
1173
|
"a",
|
|
1175
1174
|
{
|
|
1176
|
-
href: "https://www.pts.se/
|
|
1175
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/contact/" : "https://www.pts.se/kontakt/",
|
|
1176
|
+
target: "_blank",
|
|
1177
|
+
rel: "noopener noreferrer",
|
|
1178
|
+
children: [
|
|
1179
|
+
/* @__PURE__ */ jsx9("span", { className: "sr-only", children: activatedLanguage === "en" ? "PTS Contact (opens in new tab)" : "PTS Kontakt (\xF6ppnas i ny flik)" }),
|
|
1180
|
+
/* @__PURE__ */ jsx9("span", { "aria-hidden": "true", children: activatedLanguage === "en" ? "Contact" : "Kontakt" })
|
|
1181
|
+
]
|
|
1182
|
+
}
|
|
1183
|
+
) }),
|
|
1184
|
+
/* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsxs9(
|
|
1185
|
+
"a",
|
|
1186
|
+
{
|
|
1187
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/gdpr" : "https://www.pts.se/gdpr/",
|
|
1177
1188
|
target: "_blank",
|
|
1178
1189
|
rel: "noopener noreferrer",
|
|
1179
1190
|
children: [
|
|
@@ -1185,7 +1196,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1185
1196
|
/* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsxs9(
|
|
1186
1197
|
"a",
|
|
1187
1198
|
{
|
|
1188
|
-
href: "https://
|
|
1199
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/accessibility-eservices" : "https://www.pts.se/tillganglighet-etjanster",
|
|
1189
1200
|
target: "_blank",
|
|
1190
1201
|
rel: "noopener noreferrer",
|
|
1191
1202
|
children: [
|
|
@@ -1197,7 +1208,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1197
1208
|
/* @__PURE__ */ jsx9("li", { children: /* @__PURE__ */ jsxs9(
|
|
1198
1209
|
"a",
|
|
1199
1210
|
{
|
|
1200
|
-
href: "https://
|
|
1211
|
+
href: activatedLanguage === "en" ? "https://pts.se/en/cookies-eservices" : "https://www.pts.se/kakor-etjanster",
|
|
1201
1212
|
target: "_blank",
|
|
1202
1213
|
rel: "noopener noreferrer",
|
|
1203
1214
|
children: [
|
|
@@ -1592,8 +1603,12 @@ var Logo_en = () => /* @__PURE__ */ jsxs10("svg", { width: "189.0", height: "46.
|
|
|
1592
1603
|
|
|
1593
1604
|
// src/NewTextComponentStandard/HeaderStandard/HeaderStandard.tsx
|
|
1594
1605
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1595
|
-
var Header = ({
|
|
1596
|
-
|
|
1606
|
+
var Header = ({
|
|
1607
|
+
activatedLanguage = "sv",
|
|
1608
|
+
useLanguage = true,
|
|
1609
|
+
SetActivatedLanguage = () => {
|
|
1610
|
+
}
|
|
1611
|
+
}) => {
|
|
1597
1612
|
const logoLink = activatedLanguage === "en" ? "https://pts.se/en" : "https://pts.se/";
|
|
1598
1613
|
const handleLanguageClick = () => {
|
|
1599
1614
|
if (activatedLanguage === "sv") {
|
|
@@ -1606,7 +1621,7 @@ var Header = ({ activatedLanguage = "sv", useLanguage = true, SetActivatedLangua
|
|
|
1606
1621
|
if (activatedLanguage === "sv") return "English";
|
|
1607
1622
|
else return "Svenska";
|
|
1608
1623
|
};
|
|
1609
|
-
return /* @__PURE__ */ jsxs11("
|
|
1624
|
+
return /* @__PURE__ */ jsxs11("header", { className: "pts-header-container", children: [
|
|
1610
1625
|
/* @__PURE__ */ jsx11(
|
|
1611
1626
|
"a",
|
|
1612
1627
|
{
|