@linzjs/lui 21.2.0 → 21.3.0
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/lui.esm.js
CHANGED
|
@@ -28300,16 +28300,21 @@ var LuiFileInputBox = function (props) {
|
|
|
28300
28300
|
"You must select a file with extension of",
|
|
28301
28301
|
' ',
|
|
28302
28302
|
extensionsAsHumanReadableList(props.acceptedExtensions),
|
|
28303
|
-
"."))))) : (React__default.createElement(FileUploadInfo, { fileName: file === null || file === void 0 ? void 0 : file.name, fileFormatText: props.fileFormatText, fileDescription: props.fileDescription })))));
|
|
28303
|
+
"."))))) : (React__default.createElement(FileUploadInfo, { fileName: file === null || file === void 0 ? void 0 : file.name, fileFormatText: props.fileFormatText, fileDescription: props.fileDescription, openFileBrowserText: props.openFileBrowserText })))));
|
|
28304
28304
|
};
|
|
28305
28305
|
// Only exported for chromatic
|
|
28306
28306
|
var FileUploadInfo = function (props) {
|
|
28307
|
-
var DragAndDropInstruction = function () {
|
|
28308
|
-
|
|
28309
|
-
|
|
28310
|
-
|
|
28311
|
-
|
|
28312
|
-
|
|
28307
|
+
var DragAndDropInstruction = function () {
|
|
28308
|
+
var _a;
|
|
28309
|
+
return (React__default.createElement("p", { className: "LuiFileInputBox-upload-text" },
|
|
28310
|
+
"Drag and drop your ",
|
|
28311
|
+
props.fileDescription,
|
|
28312
|
+
" into the box",
|
|
28313
|
+
React__default.createElement("br", null),
|
|
28314
|
+
React__default.createElement("span", null,
|
|
28315
|
+
"(", (_a = props.openFileBrowserText) !== null && _a !== void 0 ? _a : 'or upload file manually',
|
|
28316
|
+
")")));
|
|
28317
|
+
};
|
|
28313
28318
|
var WaitingForFileSelection = function () { return (React__default.createElement(React__default.Fragment, null,
|
|
28314
28319
|
React__default.createElement("div", { className: 'LuiFileInputBox-upload-icon-upload' },
|
|
28315
28320
|
React__default.createElement(LuiIcon, { name: "ic_publish", size: 'ns', alt: "Upload" })),
|