@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
46 lines (44 loc) • 1.56 kB
JavaScript
//#region src/components/dropzone/accept-types.ts
const ACCEPT_TYPES = {
csv: "text/csv",
doc: "application/msword",
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
exe: "application/vnd.microsoft.portable-executable",
gif: "image/gif",
html: "text/html",
jpeg: "image/jpeg",
mp3: "audio/mpeg",
mp4: "video/mp4",
mpeg: "video/mpeg",
pdf: "application/pdf",
png: "image/png",
ppt: "application/vnd.ms-powerpoint",
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
svg: "image/svg+xml",
txt: "text/plain",
webp: "image/webp",
xls: "application/vnd.ms-excel",
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
zip: "application/zip"
};
const IMAGE_ACCEPT_TYPE = [
ACCEPT_TYPES.png,
ACCEPT_TYPES.gif,
ACCEPT_TYPES.jpeg,
ACCEPT_TYPES.svg,
ACCEPT_TYPES.webp
];
const PDF_ACCEPT_TYPE = [ACCEPT_TYPES.pdf];
const MS_WORD_ACCEPT_TYPE = [ACCEPT_TYPES.doc, ACCEPT_TYPES.docx];
const MS_EXCEL_ACCEPT_TYPE = [ACCEPT_TYPES.xls, ACCEPT_TYPES.xlsx];
const MS_POWER_POINT_ACCEPT_TYPE = [ACCEPT_TYPES.ppt, ACCEPT_TYPES.pptx];
const EXE_ACCEPT_TYPE = [ACCEPT_TYPES.exe];
//#endregion
exports.ACCEPT_TYPES = ACCEPT_TYPES;
exports.EXE_ACCEPT_TYPE = EXE_ACCEPT_TYPE;
exports.IMAGE_ACCEPT_TYPE = IMAGE_ACCEPT_TYPE;
exports.MS_EXCEL_ACCEPT_TYPE = MS_EXCEL_ACCEPT_TYPE;
exports.MS_POWER_POINT_ACCEPT_TYPE = MS_POWER_POINT_ACCEPT_TYPE;
exports.MS_WORD_ACCEPT_TYPE = MS_WORD_ACCEPT_TYPE;
exports.PDF_ACCEPT_TYPE = PDF_ACCEPT_TYPE;
//# sourceMappingURL=accept-types.cjs.map