@majapisoftwares/ui 4.1.13 → 4.1.14
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.
|
@@ -127,8 +127,7 @@ function FileInput({ error, className, helpText, onChange, name, limit, label, i
|
|
|
127
127
|
<div className={clsx("flex flex-col gap-4", {
|
|
128
128
|
"md:grid md:grid-cols-2": !!innerValue.length,
|
|
129
129
|
"min-h-[140px]": !!innerValue.length || !readOnly,
|
|
130
|
-
|
|
131
|
-
})}>
|
|
130
|
+
}, filesClassName)}>
|
|
132
131
|
{paginatedValue.map((file, index) => (<PreviewFileComponent key={index} file={file} readOnly={readOnly} handleDeleteClick={handleDeleteClick(file)} downloadText={downloadText} display={fileDisplay} openText={openText} additionalInfo={fileAdditionalInfo} index={index} className={previewFileClassName} filesPerPage={filesPerPage} currentPage={currentPage} {...previewFileProps}/>))}
|
|
133
132
|
{innerValue.length > filesPerPage && (<Pagination className="mx-auto md:col-span-2" currentPage={currentPage} totalItems={innerValue.length} onChangePage={setCurrentPage} itemsPerPage={filesPerPage}/>)}
|
|
134
133
|
{readOnly && !innerValue.length && (<Text variant="secondary">{emptyText}</Text>)}
|