next-helios-fe 1.8.90 → 1.8.91
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 +1 -1
- package/package.json +1 -1
- package/src/components/form/input/file.tsx +15 -13
package/package.json
CHANGED
@@ -222,19 +222,21 @@ export const File: React.FC<FileProps> = ({
|
|
222
222
|
<span>or drag and drop</span>
|
223
223
|
</div>
|
224
224
|
)}
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
225
|
+
{options?.maxSizeInMb && (
|
226
|
+
<span
|
227
|
+
className={`text-sm font-light ${
|
228
|
+
tempFile.length !== 0 ? "" : "text-disabled"
|
229
|
+
}`}
|
230
|
+
>
|
231
|
+
{tempFile.length !== 0
|
232
|
+
? `${
|
233
|
+
tempFile[0]?.size < 1000000
|
234
|
+
? `${tempFile[0]?.size / 1000} KB`
|
235
|
+
: `${tempFile[0]?.size / 1000000} MB`
|
236
|
+
}`
|
237
|
+
: `Maximum file size ${options?.maxSizeInMb} MB`}
|
238
|
+
</span>
|
239
|
+
)}
|
238
240
|
</div>
|
239
241
|
</div>
|
240
242
|
</div>
|