primevue-mirror/components/lib/fileupload/style/FileUploadStyle.js

28 lines
1.0 KiB
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => [`p-fileupload p-fileupload-${props.mode} p-component`],
2024-04-20 12:45:44 +00:00
buttonbar: 'p-fileupload-header',
chooseButton: 'p-fileupload-choose-button', // TODO: Also add upload and clear
chooseIcon: 'p-fileupload-choose-icon', // TODO: remove
chooseButtonLabel: 'p-fileupload-choosebutton-label', // TODO: remove
content: 'p-fileupload-content',
2024-04-20 12:45:44 +00:00
emptyContent: 'p-fileupload-empty-content', // TODO: remove
uploadIcon: 'p-fileupload-upload-icon', // TODO: remove
label: 'p-fileupload-button-label', // TODO: remove
fileList: 'p-fileupload-file-list',
file: 'p-fileupload-file',
thumbnail: 'p-fileupload-file-thumbnail',
2024-04-20 12:45:44 +00:00
details: 'p-fileupload-file-info',
fileName: 'p-fileupload-file-name',
fileSize: 'p-fileupload-file-size',
badge: 'p-fileupload-file-badge',
actions: 'p-fileupload-file-actions',
2024-04-20 12:45:44 +00:00
removeButton: 'p-fileupload-file-remove-button'
};
export default BaseStyle.extend({
name: 'fileupload',
classes
});