optimized-react-component-library-xyz123 0.9.4 → 0.10.2
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 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/questions.css +3 -1
- package/src/css/styles.css +27 -1
package/dist/index.mjs
CHANGED
|
@@ -1336,7 +1336,6 @@ var createGlobalLanguageSlice = (initialConfig, options) => {
|
|
|
1336
1336
|
activatedLanguage: initialConfig.activatedLanguage,
|
|
1337
1337
|
languageSupport: initialConfig.languageSupport,
|
|
1338
1338
|
languageSupportLoaded: true,
|
|
1339
|
-
startButton: initialLang.startButton,
|
|
1340
1339
|
backButton: initialLang.backButton,
|
|
1341
1340
|
forwardButton: initialLang.forwardButton,
|
|
1342
1341
|
sendButton: initialLang.sendButton
|
|
@@ -1351,7 +1350,6 @@ var createGlobalLanguageSlice = (initialConfig, options) => {
|
|
|
1351
1350
|
{ activatedLanguage: state.activatedLanguage, languageSupport: state.languageSupport },
|
|
1352
1351
|
action.payload
|
|
1353
1352
|
);
|
|
1354
|
-
state.startButton = lang.startButton;
|
|
1355
1353
|
state.backButton = lang.backButton;
|
|
1356
1354
|
state.forwardButton = lang.forwardButton;
|
|
1357
1355
|
state.sendButton = lang.sendButton;
|
|
@@ -1360,7 +1358,6 @@ var createGlobalLanguageSlice = (initialConfig, options) => {
|
|
|
1360
1358
|
state.languageSupport = action.payload.languageSupport;
|
|
1361
1359
|
state.activatedLanguage = action.payload.activatedLanguage;
|
|
1362
1360
|
const lang = pickLang(action.payload, action.payload.activatedLanguage);
|
|
1363
|
-
state.startButton = lang.startButton;
|
|
1364
1361
|
state.backButton = lang.backButton;
|
|
1365
1362
|
state.forwardButton = lang.forwardButton;
|
|
1366
1363
|
state.sendButton = lang.sendButton;
|
|
@@ -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__ */ jsx18("header", { className: "pts-header-container", children: /* @__PURE__ */ jsxs16("div", { className: "pts-header-content", children: [
|
|
2532
2529
|
/* @__PURE__ */ jsx18("div", { className: "pts-header-logo-container", children: /* @__PURE__ */ jsx18(
|
|
2533
2530
|
"a",
|
|
2534
2531
|
{
|
|
@@ -2547,13 +2544,13 @@ var Header = ({
|
|
|
2547
2544
|
onClick: handleLanguageClick,
|
|
2548
2545
|
children: [
|
|
2549
2546
|
/* @__PURE__ */ jsx18("div", { className: "languageIcon", children: /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx18(LanguageIcon, {}) }) }),
|
|
2550
|
-
/* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
|
|
2547
|
+
/* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: "pts-languageButton-text", children: getLanguageLabel() }),
|
|
2551
2548
|
activatedLanguage === "en" && /* @__PURE__ */ jsx18("span", { className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
|
|
2552
2549
|
activatedLanguage === "sv" && /* @__PURE__ */ jsx18("span", { className: "sr-only", children: "Change language to English" })
|
|
2553
2550
|
]
|
|
2554
2551
|
}
|
|
2555
2552
|
)
|
|
2556
|
-
] });
|
|
2553
|
+
] }) });
|
|
2557
2554
|
};
|
|
2558
2555
|
var HeaderStandard_default = Header;
|
|
2559
2556
|
|
|
@@ -2852,8 +2849,8 @@ var EditPreviewLinkStandard_default = EditPreviewLink;
|
|
|
2852
2849
|
// src/components/stepper/StartApplicationButton/StartApplicationButton.tsx
|
|
2853
2850
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2854
2851
|
var StartApplicationButton = ({
|
|
2855
|
-
globalLanguageState,
|
|
2856
2852
|
onClick,
|
|
2853
|
+
label = "Starta e-tj\xE4nsten",
|
|
2857
2854
|
className = ""
|
|
2858
2855
|
}) => {
|
|
2859
2856
|
return /* @__PURE__ */ jsx25(
|
|
@@ -2862,7 +2859,7 @@ var StartApplicationButton = ({
|
|
|
2862
2859
|
type: "button",
|
|
2863
2860
|
className: `pts-forwardButton pts-start-applicationButton ${className}`,
|
|
2864
2861
|
onClick,
|
|
2865
|
-
children:
|
|
2862
|
+
children: label
|
|
2866
2863
|
}
|
|
2867
2864
|
);
|
|
2868
2865
|
};
|