optimized-react-component-library-xyz123 0.18.3 → 0.18.5
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/styles.css +17 -0
package/dist/index.js
CHANGED
|
@@ -627,6 +627,7 @@ var ExploreFiles = ({
|
|
|
627
627
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
628
628
|
"button",
|
|
629
629
|
{
|
|
630
|
+
id: `question-${questionObject.id}`,
|
|
630
631
|
ref: buttonInputRef,
|
|
631
632
|
onClick: handleKeyOrClick,
|
|
632
633
|
className: (0, import_clsx.default)(
|
|
@@ -1014,9 +1015,8 @@ var AddFiles = ({
|
|
|
1014
1015
|
const handleRemoveErrors = () => {
|
|
1015
1016
|
setErrorMessageAddingFile([]);
|
|
1016
1017
|
};
|
|
1017
|
-
const questionId = `question-${questionObject.id}`;
|
|
1018
1018
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
1019
|
-
!showPreview && visible && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {
|
|
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: [
|
|
1020
1020
|
questionObject.aboutText && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1021
1021
|
"p",
|
|
1022
1022
|
{
|
|
@@ -1027,7 +1027,7 @@ var AddFiles = ({
|
|
|
1027
1027
|
),
|
|
1028
1028
|
children: [
|
|
1029
1029
|
questionObject.aboutText,
|
|
1030
|
-
questionObject.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "pts-root-mandatoryAsterisk", "aria-
|
|
1030
|
+
questionObject.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "pts-root-mandatoryAsterisk", "aria-label": "Obligatorisk fr\xE5ga", children: [
|
|
1031
1031
|
" ",
|
|
1032
1032
|
"*"
|
|
1033
1033
|
] })
|
|
@@ -3036,7 +3036,7 @@ var ValidationErrorSummaryList = ({
|
|
|
3036
3036
|
if (container) {
|
|
3037
3037
|
container.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
3038
3038
|
setTimeout(() => {
|
|
3039
|
-
const input = container.querySelector("input, textarea, select");
|
|
3039
|
+
const input = container.querySelector("input, textarea, select, button");
|
|
3040
3040
|
if (input) {
|
|
3041
3041
|
input.focus();
|
|
3042
3042
|
}
|