optimized-react-component-library-xyz123 0.18.4 → 0.18.6

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
@@ -627,7 +627,6 @@ var ExploreFiles = ({
627
627
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
628
628
  "button",
629
629
  {
630
- id: `question-${questionObject.id}`,
631
630
  ref: buttonInputRef,
632
631
  onClick: handleKeyOrClick,
633
632
  className: (0, import_clsx.default)(
@@ -1016,7 +1015,7 @@ var AddFiles = ({
1016
1015
  setErrorMessageAddingFile([]);
1017
1016
  };
1018
1017
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
1019
- !showPreview && visible && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "root-question addFile-question-container", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { role: "group", children: [
1018
+ !showPreview && visible && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "root-question addFile-question-container", id: `question-${questionObject.id}`, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { role: "group", children: [
1020
1019
  questionObject.aboutText && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1021
1020
  "p",
1022
1021
  {
@@ -1027,7 +1026,7 @@ var AddFiles = ({
1027
1026
  ),
1028
1027
  children: [
1029
1028
  questionObject.aboutText,
1030
- questionObject.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "pts-root-mandatoryAsterisk", "aria-hidden": "true", children: [
1029
+ questionObject.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "pts-root-mandatoryAsterisk", "aria-label": "Obligatorisk fr\xE5ga", children: [
1031
1030
  " ",
1032
1031
  "*"
1033
1032
  ] })
@@ -3036,7 +3035,7 @@ var ValidationErrorSummaryList = ({
3036
3035
  if (container) {
3037
3036
  container.scrollIntoView({ behavior: "smooth", block: "center" });
3038
3037
  setTimeout(() => {
3039
- const input = container.querySelector("input, textarea, select");
3038
+ const input = container.querySelector("input, textarea, select, button");
3040
3039
  if (input) {
3041
3040
  input.focus();
3042
3041
  }