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.mjs
CHANGED
|
@@ -545,6 +545,7 @@ var ExploreFiles = ({
|
|
|
545
545
|
/* @__PURE__ */ jsx8(
|
|
546
546
|
"button",
|
|
547
547
|
{
|
|
548
|
+
id: `question-${questionObject.id}`,
|
|
548
549
|
ref: buttonInputRef,
|
|
549
550
|
onClick: handleKeyOrClick,
|
|
550
551
|
className: clsx(
|
|
@@ -932,9 +933,8 @@ var AddFiles = ({
|
|
|
932
933
|
const handleRemoveErrors = () => {
|
|
933
934
|
setErrorMessageAddingFile([]);
|
|
934
935
|
};
|
|
935
|
-
const questionId = `question-${questionObject.id}`;
|
|
936
936
|
return /* @__PURE__ */ jsxs9(Fragment11, { children: [
|
|
937
|
-
!showPreview && visible && /* @__PURE__ */ jsx11("div", {
|
|
937
|
+
!showPreview && visible && /* @__PURE__ */ jsx11("div", { className: "root-question addFile-question-container", children: /* @__PURE__ */ jsxs9("div", { role: "group", children: [
|
|
938
938
|
questionObject.aboutText && /* @__PURE__ */ jsxs9(
|
|
939
939
|
"p",
|
|
940
940
|
{
|
|
@@ -945,7 +945,7 @@ var AddFiles = ({
|
|
|
945
945
|
),
|
|
946
946
|
children: [
|
|
947
947
|
questionObject.aboutText,
|
|
948
|
-
questionObject.isQuestionMandatory && /* @__PURE__ */ jsxs9("span", { className: "pts-root-mandatoryAsterisk", "aria-
|
|
948
|
+
questionObject.isQuestionMandatory && /* @__PURE__ */ jsxs9("span", { className: "pts-root-mandatoryAsterisk", "aria-label": "Obligatorisk fr\xE5ga", children: [
|
|
949
949
|
" ",
|
|
950
950
|
"*"
|
|
951
951
|
] })
|
|
@@ -2957,7 +2957,7 @@ var ValidationErrorSummaryList = ({
|
|
|
2957
2957
|
if (container) {
|
|
2958
2958
|
container.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2959
2959
|
setTimeout(() => {
|
|
2960
|
-
const input = container.querySelector("input, textarea, select");
|
|
2960
|
+
const input = container.querySelector("input, textarea, select, button");
|
|
2961
2961
|
if (input) {
|
|
2962
2962
|
input.focus();
|
|
2963
2963
|
}
|