optimized-react-component-library-xyz123 0.1.71 → 0.1.72

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 CHANGED
@@ -2299,18 +2299,12 @@ var Header = ({
2299
2299
  children: activatedLanguage === "en" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Logo_en, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Logo_sv, {}) })
2300
2300
  }
2301
2301
  ),
2302
- useLanguage && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2303
- "button",
2304
- {
2305
- "aria-label": activatedLanguage === "en" ? "Change language to Svenska" : "\xC4ndra spr\xE5k till English",
2306
- className: "pts-languageButton",
2307
- onClick: handleLanguageClick,
2308
- children: [
2309
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LanguageIcon, {}) }),
2310
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "pts-languageButton", children: getLanguageLabel() })
2311
- ]
2312
- }
2313
- )
2302
+ useLanguage && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("button", { className: "pts-languageButton", onClick: handleLanguageClick, children: [
2303
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LanguageIcon, {}) }),
2304
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
2305
+ activatedLanguage === "en" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { lang: "sv", className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
2306
+ activatedLanguage === "sv" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { lang: "en", className: "sr-only", children: "Change language to English" })
2307
+ ] })
2314
2308
  ] });
2315
2309
  };
2316
2310
  var HeaderStandard_default = Header;
package/dist/index.mjs CHANGED
@@ -2234,18 +2234,12 @@ var Header = ({
2234
2234
  children: activatedLanguage === "en" ? /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(Logo_en, {}) }) : /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(Logo_sv, {}) })
2235
2235
  }
2236
2236
  ),
2237
- useLanguage && /* @__PURE__ */ jsxs15(
2238
- "button",
2239
- {
2240
- "aria-label": activatedLanguage === "en" ? "Change language to Svenska" : "\xC4ndra spr\xE5k till English",
2241
- className: "pts-languageButton",
2242
- onClick: handleLanguageClick,
2243
- children: [
2244
- /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(LanguageIcon, {}) }),
2245
- /* @__PURE__ */ jsx17("span", { className: "pts-languageButton", children: getLanguageLabel() })
2246
- ]
2247
- }
2248
- )
2237
+ useLanguage && /* @__PURE__ */ jsxs15("button", { className: "pts-languageButton", onClick: handleLanguageClick, children: [
2238
+ /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx17(LanguageIcon, {}) }),
2239
+ /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "pts-languageButton", children: getLanguageLabel() }),
2240
+ activatedLanguage === "en" && /* @__PURE__ */ jsx17("span", { lang: "sv", className: "sr-only", children: "\xC4ndra spr\xE5k till svenska" }),
2241
+ activatedLanguage === "sv" && /* @__PURE__ */ jsx17("span", { lang: "en", className: "sr-only", children: "Change language to English" })
2242
+ ] })
2249
2243
  ] });
2250
2244
  };
2251
2245
  var HeaderStandard_default = Header;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",