optimized-react-component-library-xyz123 0.9.4 → 0.10.1

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.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;
@@ -2547,7 +2544,7 @@ 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
  ]
@@ -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: globalLanguageState && globalLanguageState.startButton ? globalLanguageState.startButton : ">>"
2862
+ children: label
2866
2863
  }
2867
2864
  );
2868
2865
  };