optimized-react-component-library-xyz123 0.1.136 → 0.1.138
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.css +0 -12
- package/dist/index.d.mts +13 -16
- package/dist/index.d.ts +13 -16
- package/dist/index.js +68 -109
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -108
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +8 -4
- package/src/css/mobileView.css +149 -14
- package/src/css/styles.css +96 -82
package/dist/index.mjs
CHANGED
|
@@ -596,7 +596,7 @@ var SelectedFiles = ({
|
|
|
596
596
|
removeError();
|
|
597
597
|
},
|
|
598
598
|
"aria-label": activatedLanguage === "sv" ? `St\xE4ng felmeddelandet` : `Close error message`,
|
|
599
|
-
children:
|
|
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" }) })
|
|
600
600
|
}
|
|
601
601
|
) })
|
|
602
602
|
] }) }),
|
|
@@ -653,7 +653,7 @@ var SelectedFiles = ({
|
|
|
653
653
|
/* @__PURE__ */ jsx9(Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ jsx9(Col, { className: "makeSpace" }) })
|
|
654
654
|
] }, index) }) }) }, `file-${file.FileName}-${index}`) });
|
|
655
655
|
}) }),
|
|
656
|
-
/* @__PURE__ */ jsx9("div", { ref: theDiv,
|
|
656
|
+
/* @__PURE__ */ jsx9("div", { ref: theDiv, className: "pts-clipboard-container" })
|
|
657
657
|
] });
|
|
658
658
|
};
|
|
659
659
|
var SelectedFilesStandard_default = SelectedFiles;
|
|
@@ -1819,7 +1819,7 @@ var CookieBanner_default = CookieBanner;
|
|
|
1819
1819
|
// src/components/layout/FooterStandard/FooterStandard.tsx
|
|
1820
1820
|
import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1821
1821
|
var Footer = ({ activatedLanguage = "sv" }) => {
|
|
1822
|
-
return /* @__PURE__ */
|
|
1822
|
+
return /* @__PURE__ */ jsx14("footer", { className: "pts-footer-container", children: /* @__PURE__ */ jsxs12("div", { className: "pts-footer-content", children: [
|
|
1823
1823
|
/* @__PURE__ */ jsxs12(
|
|
1824
1824
|
"svg",
|
|
1825
1825
|
{
|
|
@@ -1898,7 +1898,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
) })
|
|
1900
1900
|
] }) })
|
|
1901
|
-
] });
|
|
1901
|
+
] }) });
|
|
1902
1902
|
};
|
|
1903
1903
|
var FooterStandard_default = Footer;
|
|
1904
1904
|
|
|
@@ -2300,7 +2300,7 @@ var Header = ({
|
|
|
2300
2300
|
else return "Svenska";
|
|
2301
2301
|
};
|
|
2302
2302
|
return /* @__PURE__ */ jsxs14("header", { className: "pts-header-container", children: [
|
|
2303
|
-
/* @__PURE__ */ jsx16(
|
|
2303
|
+
/* @__PURE__ */ jsx16("div", { className: "pts-header-logo-container", children: /* @__PURE__ */ jsx16(
|
|
2304
2304
|
"a",
|
|
2305
2305
|
{
|
|
2306
2306
|
className: "pts-header-logo",
|
|
@@ -2309,7 +2309,7 @@ var Header = ({
|
|
|
2309
2309
|
"aria-label": activatedLanguage === "en" ? "PTS logotype (to the homepage on pts.se, opens in new tab)" : "PTS logotyp (till startsidan p\xE5 pts.se, \xF6ppnas i ny flik)",
|
|
2310
2310
|
children: activatedLanguage === "en" ? /* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx16(Logo_en, {}) }) : /* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx16(Logo_sv, {}) })
|
|
2311
2311
|
}
|
|
2312
|
-
),
|
|
2312
|
+
) }),
|
|
2313
2313
|
useLanguage && /* @__PURE__ */ jsxs14(
|
|
2314
2314
|
"button",
|
|
2315
2315
|
{
|
|
@@ -2317,7 +2317,7 @@ var Header = ({
|
|
|
2317
2317
|
className: "pts-languageButton",
|
|
2318
2318
|
onClick: handleLanguageClick,
|
|
2319
2319
|
children: [
|
|
2320
|
-
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx16(LanguageIcon, {}) }),
|
|
2320
|
+
/* @__PURE__ */ jsx16("div", { className: "", children: /* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx16(LanguageIcon, {}) }) }),
|
|
2321
2321
|
/* @__PURE__ */ jsx16("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
|
|
2322
2322
|
activatedLanguage === "en" && /* @__PURE__ */ jsx16("span", { className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
|
|
2323
2323
|
activatedLanguage === "sv" && /* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Change language to English" })
|
|
@@ -2378,73 +2378,26 @@ var SkipLink = () => {
|
|
|
2378
2378
|
};
|
|
2379
2379
|
var SkipLinkStandard_default = SkipLink;
|
|
2380
2380
|
|
|
2381
|
-
// src/components/text-blocks/InfoOnlyStandard/InfoOnlyStandard.tsx
|
|
2382
|
-
import { useEffect as useEffect10 } from "react";
|
|
2383
|
-
import DOMPurify3 from "dompurify";
|
|
2384
|
-
import { Fragment as Fragment14, jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2385
|
-
var cleanText = (text) => DOMPurify3.sanitize(text, { ADD_ATTR: ["target", "class"] });
|
|
2386
|
-
var InfoOnly = ({
|
|
2387
|
-
questionObject,
|
|
2388
|
-
isTouched,
|
|
2389
|
-
visible = true,
|
|
2390
|
-
showErrors = true,
|
|
2391
|
-
showPreview = false,
|
|
2392
|
-
showConfigure = true,
|
|
2393
|
-
tabIndex = -1,
|
|
2394
|
-
activatedLanguage = "sv"
|
|
2395
|
-
}) => {
|
|
2396
|
-
useEffect10(() => {
|
|
2397
|
-
handleSeenText(questionObject);
|
|
2398
|
-
}, []);
|
|
2399
|
-
const handleSeenText = (questionObject2) => {
|
|
2400
|
-
const avoidBugInRedux = "<span style='display:none' />";
|
|
2401
|
-
const e = { target: { value: questionObject2.questionLabel + avoidBugInRedux } };
|
|
2402
|
-
isTouched(e, questionObject2);
|
|
2403
|
-
};
|
|
2404
|
-
return /* @__PURE__ */ jsxs16(Fragment14, { children: [
|
|
2405
|
-
showConfigure && visible && /* @__PURE__ */ jsx19("div", { className: "pts-infoOnly-container", children: /* @__PURE__ */ jsx19("div", { className: "InfoOnlyText", tabIndex, children: questionObject.questionLabel && /* @__PURE__ */ jsx19(
|
|
2406
|
-
"p",
|
|
2407
|
-
{
|
|
2408
|
-
dangerouslySetInnerHTML: {
|
|
2409
|
-
__html: cleanText(questionObject["questionLabel"])
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
) }) }),
|
|
2413
|
-
showPreview && /* @__PURE__ */ jsx19(PreviewInfoOnly, { questionObject })
|
|
2414
|
-
] });
|
|
2415
|
-
};
|
|
2416
|
-
var InfoOnlyStandard_default = InfoOnly;
|
|
2417
|
-
var PreviewInfoOnly = ({ questionObject }) => {
|
|
2418
|
-
return /* @__PURE__ */ jsx19(Fragment14, { children: questionObject.answer && /* @__PURE__ */ jsx19("div", { className: "pts-infoOnly-preview", children: /* @__PURE__ */ jsx19("div", { className: "InfoOnlyText", children: /* @__PURE__ */ jsx19(
|
|
2419
|
-
"p",
|
|
2420
|
-
{
|
|
2421
|
-
dangerouslySetInnerHTML: {
|
|
2422
|
-
__html: cleanText(questionObject["answer"])
|
|
2423
|
-
}
|
|
2424
|
-
}
|
|
2425
|
-
) }) }) });
|
|
2426
|
-
};
|
|
2427
|
-
|
|
2428
2381
|
// src/components/text-blocks/TextHeadlineAndBodyStandard/TextHeadlineAndBodyStandard.tsx
|
|
2429
2382
|
import { createElement } from "react";
|
|
2430
|
-
import
|
|
2431
|
-
import { jsx as
|
|
2383
|
+
import DOMPurify3 from "dompurify";
|
|
2384
|
+
import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2432
2385
|
var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
2433
|
-
return /* @__PURE__ */
|
|
2386
|
+
return /* @__PURE__ */ jsxs16(
|
|
2434
2387
|
"section",
|
|
2435
2388
|
{
|
|
2436
2389
|
className: "pts-textHeadlineAndBody-container",
|
|
2437
2390
|
children: [
|
|
2438
2391
|
data.headline && createElement(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
|
|
2439
|
-
data.body && /* @__PURE__ */
|
|
2440
|
-
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */
|
|
2392
|
+
data.body && /* @__PURE__ */ jsx19("div", { dangerouslySetInnerHTML: { __html: DOMPurify3.sanitize(data.body) } }),
|
|
2393
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx19("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx19("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs16(
|
|
2441
2394
|
"a",
|
|
2442
2395
|
{
|
|
2443
2396
|
href: link.url,
|
|
2444
2397
|
target: "_blank",
|
|
2445
2398
|
rel: "noopener noreferrer",
|
|
2446
2399
|
children: [
|
|
2447
|
-
/* @__PURE__ */
|
|
2400
|
+
/* @__PURE__ */ jsx19("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx19(
|
|
2448
2401
|
"svg",
|
|
2449
2402
|
{
|
|
2450
2403
|
"aria-hidden": "true",
|
|
@@ -2453,7 +2406,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
|
2453
2406
|
height: "10",
|
|
2454
2407
|
viewBox: "0 0 12 10",
|
|
2455
2408
|
fill: "none",
|
|
2456
|
-
children: /* @__PURE__ */
|
|
2409
|
+
children: /* @__PURE__ */ jsx19(
|
|
2457
2410
|
"path",
|
|
2458
2411
|
{
|
|
2459
2412
|
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",
|
|
@@ -2466,7 +2419,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
|
2466
2419
|
]
|
|
2467
2420
|
}
|
|
2468
2421
|
) }, `more-info-${index}`)) }),
|
|
2469
|
-
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */
|
|
2422
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs16(
|
|
2470
2423
|
"a",
|
|
2471
2424
|
{
|
|
2472
2425
|
href: data.linksForMoreInfo[0].url,
|
|
@@ -2474,7 +2427,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
|
2474
2427
|
rel: "noopener noreferrer",
|
|
2475
2428
|
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
2476
2429
|
children: [
|
|
2477
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ jsx19("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx19(
|
|
2478
2431
|
"svg",
|
|
2479
2432
|
{
|
|
2480
2433
|
"aria-hidden": "true",
|
|
@@ -2483,7 +2436,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
|
2483
2436
|
height: "10",
|
|
2484
2437
|
viewBox: "0 0 12 10",
|
|
2485
2438
|
fill: "none",
|
|
2486
|
-
children: /* @__PURE__ */
|
|
2439
|
+
children: /* @__PURE__ */ jsx19(
|
|
2487
2440
|
"path",
|
|
2488
2441
|
{
|
|
2489
2442
|
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",
|
|
@@ -2503,7 +2456,7 @@ var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
|
2503
2456
|
var TextHeadlineAndBodyStandard_default = TextHeadlineAndBody;
|
|
2504
2457
|
|
|
2505
2458
|
// src/components/text-blocks/PrincipleOfPublicityStandard/PrincipleOfPublicityStandard.tsx
|
|
2506
|
-
import { jsx as
|
|
2459
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2507
2460
|
var CONTENT2 = {
|
|
2508
2461
|
en: {
|
|
2509
2462
|
headline: "The principle of publicity and processing of personal data",
|
|
@@ -2538,7 +2491,7 @@ var CONTENT2 = {
|
|
|
2538
2491
|
};
|
|
2539
2492
|
var PrincipleOfPublicity = ({ activatedLanguage = "" }) => {
|
|
2540
2493
|
const currentContent = activatedLanguage === "en" ? CONTENT2.en : CONTENT2.sv;
|
|
2541
|
-
return /* @__PURE__ */
|
|
2494
|
+
return /* @__PURE__ */ jsx20(
|
|
2542
2495
|
TextHeadlineAndBodyStandard_default,
|
|
2543
2496
|
{
|
|
2544
2497
|
data: {
|
|
@@ -2557,19 +2510,19 @@ var PrincipleOfPublicity = ({ activatedLanguage = "" }) => {
|
|
|
2557
2510
|
var PrincipleOfPublicityStandard_default = PrincipleOfPublicity;
|
|
2558
2511
|
|
|
2559
2512
|
// src/components/text-blocks/TextBody/TextBody.tsx
|
|
2560
|
-
import
|
|
2561
|
-
import { jsx as
|
|
2513
|
+
import DOMPurify4 from "dompurify";
|
|
2514
|
+
import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2562
2515
|
var TextBody = ({ data }) => {
|
|
2563
|
-
return /* @__PURE__ */
|
|
2564
|
-
data.body && /* @__PURE__ */
|
|
2565
|
-
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */
|
|
2516
|
+
return /* @__PURE__ */ jsxs17("div", { className: "pts-textBody-container", children: [
|
|
2517
|
+
data.body && /* @__PURE__ */ jsx21("div", { dangerouslySetInnerHTML: { __html: DOMPurify4.sanitize(data.body) } }),
|
|
2518
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx21("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx21("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs17(
|
|
2566
2519
|
"a",
|
|
2567
2520
|
{
|
|
2568
2521
|
href: link.url,
|
|
2569
2522
|
target: "_blank",
|
|
2570
2523
|
rel: "noopener noreferrer",
|
|
2571
2524
|
children: [
|
|
2572
|
-
/* @__PURE__ */
|
|
2525
|
+
/* @__PURE__ */ jsx21("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx21(
|
|
2573
2526
|
"svg",
|
|
2574
2527
|
{
|
|
2575
2528
|
"aria-hidden": "true",
|
|
@@ -2578,7 +2531,7 @@ var TextBody = ({ data }) => {
|
|
|
2578
2531
|
height: "10",
|
|
2579
2532
|
viewBox: "0 0 12 10",
|
|
2580
2533
|
fill: "none",
|
|
2581
|
-
children: /* @__PURE__ */
|
|
2534
|
+
children: /* @__PURE__ */ jsx21(
|
|
2582
2535
|
"path",
|
|
2583
2536
|
{
|
|
2584
2537
|
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",
|
|
@@ -2591,7 +2544,7 @@ var TextBody = ({ data }) => {
|
|
|
2591
2544
|
]
|
|
2592
2545
|
}
|
|
2593
2546
|
) }, `more-info-${index}`)) }),
|
|
2594
|
-
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */
|
|
2547
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs17(
|
|
2595
2548
|
"a",
|
|
2596
2549
|
{
|
|
2597
2550
|
href: data.linksForMoreInfo[0].url,
|
|
@@ -2599,7 +2552,7 @@ var TextBody = ({ data }) => {
|
|
|
2599
2552
|
rel: "noopener noreferrer",
|
|
2600
2553
|
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
2601
2554
|
children: [
|
|
2602
|
-
/* @__PURE__ */
|
|
2555
|
+
/* @__PURE__ */ jsx21("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx21(
|
|
2603
2556
|
"svg",
|
|
2604
2557
|
{
|
|
2605
2558
|
"aria-hidden": "true",
|
|
@@ -2608,7 +2561,7 @@ var TextBody = ({ data }) => {
|
|
|
2608
2561
|
height: "10",
|
|
2609
2562
|
viewBox: "0 0 12 10",
|
|
2610
2563
|
fill: "none",
|
|
2611
|
-
children: /* @__PURE__ */
|
|
2564
|
+
children: /* @__PURE__ */ jsx21(
|
|
2612
2565
|
"path",
|
|
2613
2566
|
{
|
|
2614
2567
|
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",
|
|
@@ -2626,13 +2579,13 @@ var TextBody = ({ data }) => {
|
|
|
2626
2579
|
var TextBody_default = TextBody;
|
|
2627
2580
|
|
|
2628
2581
|
// src/components/stepper/EditPreviewLinkStandard/EditPreviewLinkStandard.tsx
|
|
2629
|
-
import { jsx as
|
|
2582
|
+
import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2630
2583
|
var EditPreviewLink = ({
|
|
2631
2584
|
step,
|
|
2632
2585
|
changeStepHandler,
|
|
2633
2586
|
activatedLanguage = "sv"
|
|
2634
2587
|
}) => {
|
|
2635
|
-
return /* @__PURE__ */
|
|
2588
|
+
return /* @__PURE__ */ jsx22("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs18(
|
|
2636
2589
|
"a",
|
|
2637
2590
|
{
|
|
2638
2591
|
href: "#",
|
|
@@ -2641,7 +2594,7 @@ var EditPreviewLink = ({
|
|
|
2641
2594
|
changeStepHandler(step.step);
|
|
2642
2595
|
},
|
|
2643
2596
|
children: [
|
|
2644
|
-
/* @__PURE__ */
|
|
2597
|
+
/* @__PURE__ */ jsx22(
|
|
2645
2598
|
"svg",
|
|
2646
2599
|
{
|
|
2647
2600
|
"aria-hidden": "true",
|
|
@@ -2651,7 +2604,7 @@ var EditPreviewLink = ({
|
|
|
2651
2604
|
height: "16",
|
|
2652
2605
|
viewBox: "0 0 16 16",
|
|
2653
2606
|
fill: "none",
|
|
2654
|
-
children: /* @__PURE__ */
|
|
2607
|
+
children: /* @__PURE__ */ jsx22(
|
|
2655
2608
|
"path",
|
|
2656
2609
|
{
|
|
2657
2610
|
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",
|
|
@@ -2670,13 +2623,13 @@ var EditPreviewLink = ({
|
|
|
2670
2623
|
var EditPreviewLinkStandard_default = EditPreviewLink;
|
|
2671
2624
|
|
|
2672
2625
|
// src/components/stepper/StartApplicationButton/StartApplicationButton.tsx
|
|
2673
|
-
import { jsx as
|
|
2626
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2674
2627
|
var StartApplicationButton = ({
|
|
2675
2628
|
onClick,
|
|
2676
2629
|
label = "Starta e-tj\xE4nsten",
|
|
2677
2630
|
className = ""
|
|
2678
2631
|
}) => {
|
|
2679
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx23(
|
|
2680
2633
|
"button",
|
|
2681
2634
|
{
|
|
2682
2635
|
type: "button",
|
|
@@ -2689,7 +2642,7 @@ var StartApplicationButton = ({
|
|
|
2689
2642
|
var StartApplicationButton_default = StartApplicationButton;
|
|
2690
2643
|
|
|
2691
2644
|
// src/components/stepper/StepperButtonsStandard/StepperButtonsStandard.tsx
|
|
2692
|
-
import { jsx as
|
|
2645
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2693
2646
|
var StepperButtons = ({
|
|
2694
2647
|
globalLanguageState,
|
|
2695
2648
|
changeStepHandler,
|
|
@@ -2699,9 +2652,17 @@ var StepperButtons = ({
|
|
|
2699
2652
|
activeStep
|
|
2700
2653
|
}) => {
|
|
2701
2654
|
const totalSteps = steps ? steps.length : "";
|
|
2702
|
-
return /* @__PURE__ */
|
|
2703
|
-
activeStep !== 0 && /* @__PURE__ */
|
|
2704
|
-
|
|
2655
|
+
return /* @__PURE__ */ jsxs19("div", { className: "pts-stepperButtons-container", children: [
|
|
2656
|
+
activeStep !== 0 && /* @__PURE__ */ jsx24(
|
|
2657
|
+
"button",
|
|
2658
|
+
{
|
|
2659
|
+
onClick: () => changeStepHandler(activeStep - 1),
|
|
2660
|
+
className: "pts-backButton",
|
|
2661
|
+
type: "button",
|
|
2662
|
+
children: globalLanguageState ? globalLanguageState.backButton : "<<"
|
|
2663
|
+
}
|
|
2664
|
+
),
|
|
2665
|
+
/* @__PURE__ */ jsxs19(
|
|
2705
2666
|
"button",
|
|
2706
2667
|
{
|
|
2707
2668
|
type: activeStep === totalSteps ? "submit" : "button",
|
|
@@ -2718,20 +2679,20 @@ var StepperButtons = ({
|
|
|
2718
2679
|
var StepperButtonsStandard_default = StepperButtons;
|
|
2719
2680
|
|
|
2720
2681
|
// src/components/stepper/StepperStandard/StepperStandard.tsx
|
|
2721
|
-
import
|
|
2722
|
-
import { jsx as
|
|
2682
|
+
import React9 from "react";
|
|
2683
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2723
2684
|
var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
|
|
2724
|
-
return /* @__PURE__ */
|
|
2685
|
+
return /* @__PURE__ */ jsx25("section", { className: "pts-stepper-container", "aria-hidden": "true", children: arraySteps.map((step, index) => {
|
|
2725
2686
|
const isActive = step.step === activeStep;
|
|
2726
2687
|
const lastElement = arraySteps.length;
|
|
2727
2688
|
const isDone = step.step < activeStep;
|
|
2728
|
-
return /* @__PURE__ */
|
|
2729
|
-
/* @__PURE__ */
|
|
2730
|
-
/* @__PURE__ */
|
|
2689
|
+
return /* @__PURE__ */ jsxs20(React9.Fragment, { children: [
|
|
2690
|
+
/* @__PURE__ */ jsxs20("div", { className: "pts-stepper-step", children: [
|
|
2691
|
+
/* @__PURE__ */ jsx25(
|
|
2731
2692
|
"div",
|
|
2732
2693
|
{
|
|
2733
2694
|
className: "pts-stepperDot" + (isActive ? " pts-stepperDotActive" : "") + (isDone ? " pts-stepperDotDone" : ""),
|
|
2734
|
-
children: isDone ? /* @__PURE__ */
|
|
2695
|
+
children: isDone ? /* @__PURE__ */ jsx25(
|
|
2735
2696
|
"svg",
|
|
2736
2697
|
{
|
|
2737
2698
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2739,7 +2700,7 @@ var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
|
|
|
2739
2700
|
height: "12",
|
|
2740
2701
|
viewBox: "0 0 15 12",
|
|
2741
2702
|
fill: "none",
|
|
2742
|
-
children: /* @__PURE__ */
|
|
2703
|
+
children: /* @__PURE__ */ jsx25(
|
|
2743
2704
|
"path",
|
|
2744
2705
|
{
|
|
2745
2706
|
d: "M1.5 5.4375L4.875 10.3125L13.5 1.6875",
|
|
@@ -2752,16 +2713,16 @@ var Stepper = ({ arraySteps = [], activeStep = 1 }) => {
|
|
|
2752
2713
|
) : step.step
|
|
2753
2714
|
}
|
|
2754
2715
|
),
|
|
2755
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ jsx25("div", { className: "pts-shortNameInStepper", children: step.shortNameInStepper })
|
|
2756
2717
|
] }, index),
|
|
2757
|
-
step.step !== lastElement && /* @__PURE__ */
|
|
2718
|
+
step.step !== lastElement && /* @__PURE__ */ jsx25("div", { className: "pts-stepperLine" })
|
|
2758
2719
|
] }, `step-${step.step}`);
|
|
2759
2720
|
}) });
|
|
2760
2721
|
};
|
|
2761
2722
|
var StepperStandard_default = Stepper;
|
|
2762
2723
|
|
|
2763
2724
|
// src/components/validation-and-status/ValidationErrorSummaryList/ValidationErrorSummaryList.tsx
|
|
2764
|
-
import { Fragment as
|
|
2725
|
+
import { Fragment as Fragment14, jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2765
2726
|
var ValidationErrorSummaryList = ({
|
|
2766
2727
|
validationErrorsList,
|
|
2767
2728
|
questions,
|
|
@@ -2798,7 +2759,7 @@ var ValidationErrorSummaryList = ({
|
|
|
2798
2759
|
}, 300);
|
|
2799
2760
|
}
|
|
2800
2761
|
}
|
|
2801
|
-
if (!validationErrorsList.length) return /* @__PURE__ */
|
|
2762
|
+
if (!validationErrorsList.length) return /* @__PURE__ */ jsx26(Fragment14, {});
|
|
2802
2763
|
const filteredIds = filterIdsByGroupCheck(validationErrorsList, questions);
|
|
2803
2764
|
const count = filteredIds.length;
|
|
2804
2765
|
const title = summaryText.replace("{count}", count.toString()).replace(
|
|
@@ -2810,11 +2771,11 @@ var ValidationErrorSummaryList = ({
|
|
|
2810
2771
|
const found = questions.find((item) => item.id === id);
|
|
2811
2772
|
return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
|
|
2812
2773
|
}
|
|
2813
|
-
return /* @__PURE__ */
|
|
2814
|
-
/* @__PURE__ */
|
|
2815
|
-
/* @__PURE__ */
|
|
2816
|
-
/* @__PURE__ */
|
|
2817
|
-
/* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ jsxs21("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2775
|
+
/* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
2776
|
+
/* @__PURE__ */ jsxs21("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
|
|
2777
|
+
/* @__PURE__ */ jsx26("h2", { id: "errorSummary-headline", children: title }),
|
|
2778
|
+
/* @__PURE__ */ jsx26("ul", { id: "errorSummary-ul", children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx26("li", { children: /* @__PURE__ */ jsx26(
|
|
2818
2779
|
"a",
|
|
2819
2780
|
{
|
|
2820
2781
|
href: "#",
|
|
@@ -2832,11 +2793,11 @@ var ValidationErrorSummaryList = ({
|
|
|
2832
2793
|
var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
|
|
2833
2794
|
|
|
2834
2795
|
// src/components/validation-and-status/FormStatusMessagesScreenReader/FormStatusMessagesScreenReader.tsx
|
|
2835
|
-
import { Fragment as
|
|
2796
|
+
import { Fragment as Fragment15, jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2836
2797
|
var FormStatusMessagesScreenReader = ({ formStatus }) => {
|
|
2837
|
-
return /* @__PURE__ */
|
|
2838
|
-
/* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2798
|
+
return /* @__PURE__ */ jsxs22(Fragment15, { children: [
|
|
2799
|
+
/* @__PURE__ */ jsx27("p", { "aria-live": "assertive", children: formStatus === "failed" && /* @__PURE__ */ jsx27("span", { className: "mandatoryAsterisk", children: "N\xE5got gick fel, f\xF6rs\xF6k igen senare eller kontakta oss!" }) }),
|
|
2800
|
+
/* @__PURE__ */ jsx27("div", { "aria-live": "polite", className: "visually-hidden", children: formStatus === "loading" ? "Ditt \xE4rende registreras. Uppdatera eller st\xE4ng inte sidan." : "" })
|
|
2840
2801
|
] });
|
|
2841
2802
|
};
|
|
2842
2803
|
var FormStatusMessagesScreenReader_default = FormStatusMessagesScreenReader;
|
|
@@ -2847,7 +2808,6 @@ export {
|
|
|
2847
2808
|
FooterStandard_default as FooterStandard,
|
|
2848
2809
|
FormStatusMessagesScreenReader_default as FormStatusMessagesScreenReader,
|
|
2849
2810
|
HeaderStandard_default as HeaderStandard,
|
|
2850
|
-
InfoOnlyStandard_default as InfoOnlyStandard,
|
|
2851
2811
|
ModalStandard_default as ModalStandard,
|
|
2852
2812
|
MultipleCheckboxesStandard_default as MultipleCheckboxesStandard,
|
|
2853
2813
|
PrincipleOfPublicityStandard_default as PrincipleOfPublicityStandard,
|