optimized-react-component-library-xyz123 0.7.1 → 0.7.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.js CHANGED
@@ -635,6 +635,7 @@ var ExploreFiles = ({
635
635
  ),
636
636
  "aria-describedby": `${aboutId} ${questionObject.hasValidationError ? errorId : ""}`.trim(),
637
637
  "aria-label": ariaLabelText,
638
+ type: "button",
638
639
  children: activatedLanguage === "sv" ? "V\xE4lj fil" : "Choose file"
639
640
  }
640
641
  ),
@@ -1978,12 +1979,10 @@ var QuestionGroup = ({
1978
1979
  showPreview = false,
1979
1980
  markQuestionAsDisplayed
1980
1981
  }) => {
1981
- var _a;
1982
1982
  if (!questions || questions.length === 0) {
1983
1983
  return null;
1984
1984
  }
1985
1985
  const firstQuestion = questions[0];
1986
- const groupMandatory = (_a = firstQuestion.validationType) == null ? void 0 : _a.find((e) => e.startsWith("groupCheck-"));
1987
1986
  (0, import_react12.useEffect)(() => {
1988
1987
  questions.forEach((question) => {
1989
1988
  if (question.visible && !question.isDisplayed) {
@@ -2014,10 +2013,7 @@ var QuestionGroup = ({
2014
2013
  "aria-describedby": firstQuestion.hasValidationError ? `${firstQuestion.id}-error` : void 0,
2015
2014
  children: [
2016
2015
  legendLabel && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("legend", { children: [
2017
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "pts-legend", children: [
2018
- legendLabel,
2019
- groupMandatory && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" })
2020
- ] }),
2016
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "pts-legend", children: legendLabel }),
2021
2017
  firstQuestion.hasValidationError && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "sr-only", children: [
2022
2018
  "Valideringsfel. ",
2023
2019
  firstQuestion.validationDefaultMessesege
@@ -2100,15 +2096,7 @@ var CookieBanner = ({
2100
2096
  ]
2101
2097
  }
2102
2098
  ),
2103
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2104
- "a",
2105
- {
2106
- href: "https://pts.se/om-oss/om-pts.se/kakor-pa-webbplatsen/kakor-pa-pts-e-tjanster/",
2107
- target: "_blank",
2108
- rel: "noopener noreferrer",
2109
- children: "Kakor (cookies) p\xE5 pts.se (\xF6ppnas i nytt f\xF6nster)"
2110
- }
2111
- )
2099
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("a", { href: "www.pts.se", target: "_blank", rel: "noopener noreferrer", children: "Kakor (cookies) p\xE5 pts.se (\xF6ppnas i nytt f\xF6nster)" })
2112
2100
  ] }),
2113
2101
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "pts-cookieBanner-Buttons", children: [
2114
2102
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { onClick: () => handleCookieChoice(true), children: "Ja, jag samtycker" }),
@@ -2359,7 +2347,7 @@ var Logo_sv = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { widt
2359
2347
  fill: "#F0AA1E"
2360
2348
  }
2361
2349
  ),
2362
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "currentColor", strokeWidth: "0.8", strokeMiterlimit: "10" })
2350
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "black", strokeWidth: "0.8", strokeMiterlimit: "10" })
2363
2351
  ] });
2364
2352
  var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { width: "189.0", height: "46.67", viewBox: "0 0 189 46.67", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
2365
2353
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
@@ -2376,7 +2364,7 @@ var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { widt
2376
2364
  fill: "#F0AA1E"
2377
2365
  }
2378
2366
  ),
2379
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "currentColor", strokeWidth: "0.8", strokeMiterlimit: "10" }),
2367
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "#141414", strokeWidth: "0.8", strokeMiterlimit: "10" }),
2380
2368
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2381
2369
  "path",
2382
2370
  {