optimized-react-component-library-xyz123 0.1.63 → 0.1.65
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -880,7 +880,6 @@ var ExploreFiles = ({
|
|
|
880
880
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
881
881
|
"div",
|
|
882
882
|
{
|
|
883
|
-
tabIndex: -1,
|
|
884
883
|
className: (0, import_clsx2.default)(
|
|
885
884
|
["form-control"],
|
|
886
885
|
"filePickLabel",
|
|
@@ -961,7 +960,7 @@ var SelectedFiles = ({
|
|
|
961
960
|
}) => {
|
|
962
961
|
const theDiv = (0, import_react6.useRef)(null);
|
|
963
962
|
const remove = (file) => {
|
|
964
|
-
let newFiles = questionObject.
|
|
963
|
+
let newFiles = questionObject.files.filter((f) => f !== file);
|
|
965
964
|
const newCountOfFiles = newFiles.length;
|
|
966
965
|
setNumberOfFiles(newCountOfFiles);
|
|
967
966
|
const e = { target: { value: `${newCountOfFiles} files`, files: newFiles } };
|
|
@@ -1034,7 +1033,7 @@ var SelectedFiles = ({
|
|
|
1034
1033
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "Ta bort felmeddelande f\xF6r uppladdning av filer" })
|
|
1035
1034
|
] })
|
|
1036
1035
|
] }),
|
|
1037
|
-
questionObject.
|
|
1036
|
+
questionObject.files.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.files.map((file, index) => {
|
|
1038
1037
|
const indicatorfileName = file.FileName;
|
|
1039
1038
|
let mobileFirstFileName = file.FileName.split(".").shift();
|
|
1040
1039
|
mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
|
package/dist/index.mjs
CHANGED
|
@@ -815,7 +815,6 @@ var ExploreFiles = ({
|
|
|
815
815
|
/* @__PURE__ */ jsxs7(
|
|
816
816
|
"div",
|
|
817
817
|
{
|
|
818
|
-
tabIndex: -1,
|
|
819
818
|
className: clsx2(
|
|
820
819
|
["form-control"],
|
|
821
820
|
"filePickLabel",
|
|
@@ -896,7 +895,7 @@ var SelectedFiles = ({
|
|
|
896
895
|
}) => {
|
|
897
896
|
const theDiv = useRef3(null);
|
|
898
897
|
const remove = (file) => {
|
|
899
|
-
let newFiles = questionObject.
|
|
898
|
+
let newFiles = questionObject.files.filter((f) => f !== file);
|
|
900
899
|
const newCountOfFiles = newFiles.length;
|
|
901
900
|
setNumberOfFiles(newCountOfFiles);
|
|
902
901
|
const e = { target: { value: `${newCountOfFiles} files`, files: newFiles } };
|
|
@@ -969,7 +968,7 @@ var SelectedFiles = ({
|
|
|
969
968
|
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Ta bort felmeddelande f\xF6r uppladdning av filer" })
|
|
970
969
|
] })
|
|
971
970
|
] }),
|
|
972
|
-
questionObject.
|
|
971
|
+
questionObject.files.length > 0 && /* @__PURE__ */ jsx10("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.files.map((file, index) => {
|
|
973
972
|
const indicatorfileName = file.FileName;
|
|
974
973
|
let mobileFirstFileName = file.FileName.split(".").shift();
|
|
975
974
|
mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
|
package/package.json
CHANGED