px-react-ui-components 1.1.19 → 1.1.21
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.
|
@@ -52,8 +52,7 @@ function MyFileUpload({
|
|
|
52
52
|
classNameContainer = null,
|
|
53
53
|
classNameItem = null,
|
|
54
54
|
classNameIcon = null,
|
|
55
|
-
|
|
56
|
-
classNameCamera = null,
|
|
55
|
+
classNameButton = null,
|
|
57
56
|
camera = true,
|
|
58
57
|
maxSizeMB = 50,
|
|
59
58
|
onData
|
|
@@ -260,7 +259,7 @@ function MyFileUpload({
|
|
|
260
259
|
children: [acceptlabel, /*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), " ", maxSizeMB, " MB"]
|
|
261
260
|
})]
|
|
262
261
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
263
|
-
className: _MyFileUploadModule.default.myFileUploadContainerItemFile
|
|
262
|
+
className: _MyFileUploadModule.default.myFileUploadContainerItemFile,
|
|
264
263
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
265
264
|
type: "file",
|
|
266
265
|
hidden: true,
|
|
@@ -269,13 +268,13 @@ function MyFileUpload({
|
|
|
269
268
|
multiple: multiple,
|
|
270
269
|
accept: MyFileUploadAcceptTypes
|
|
271
270
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
272
|
-
className: _MyFileUploadModule.default.myFileUploadButton,
|
|
271
|
+
className: _MyFileUploadModule.default.myFileUploadButton + (classNameButton != null ? " " + classNameButton : ''),
|
|
273
272
|
onClick: () => fileInputRef.current.click(),
|
|
274
273
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_md.MdOutlineAttachFile, {})
|
|
275
274
|
})]
|
|
276
275
|
})]
|
|
277
276
|
}), camera && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
278
|
-
className: _MyFileUploadModule.default.myFileUploadContainerItem + (
|
|
277
|
+
className: _MyFileUploadModule.default.myFileUploadContainerItem + (classNameItem != null ? " " + classNameItem : ''),
|
|
279
278
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
280
279
|
className: _MyFileUploadModule.default.myFileUploadContainerItemIcon + (classNameIcon != null ? " " + classNameIcon : ''),
|
|
281
280
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiCamera, {
|
|
@@ -287,10 +286,10 @@ function MyFileUpload({
|
|
|
287
286
|
})
|
|
288
287
|
})]
|
|
289
288
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
290
|
-
className: _MyFileUploadModule.default.myFileUploadContainerItemFile
|
|
289
|
+
className: _MyFileUploadModule.default.myFileUploadContainerItemFile,
|
|
291
290
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
292
291
|
type: "button",
|
|
293
|
-
className: _MyFileUploadModule.default.myFileUploadButton,
|
|
292
|
+
className: _MyFileUploadModule.default.myFileUploadButton + (classNameButton != null ? " " + classNameButton : ''),
|
|
294
293
|
onClick: () => setCameraopen(true),
|
|
295
294
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiCamera, {})
|
|
296
295
|
})
|