optimized-react-component-library-xyz123 0.6.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" }),