CD — Deployment / deploy (push) Successful in 33s
PR automatique de feat/ui-glass-layout-icons vers main. --------- Co-authored-by: xEsiah <[email protected]> Reviewed-on: #21 Reviewed-by: Esiah <[email protected]> Co-authored-by: Gitea Actions <-[email protected]>
149 lines
3.7 KiB
TypeScript
149 lines
3.7 KiB
TypeScript
import type { ImgHTMLAttributes } from "react";
|
|
|
|
type IconProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt"> & {
|
|
filled?: boolean;
|
|
};
|
|
|
|
const ImgIcon = ({
|
|
src,
|
|
className = "",
|
|
...props
|
|
}: { src: string } & IconProps) => (
|
|
<img
|
|
src={src}
|
|
alt=""
|
|
aria-hidden="true"
|
|
className={`inline-block h-4 w-4 object-contain ${className}`}
|
|
{...props}
|
|
/>
|
|
);
|
|
|
|
export const FolderIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/folder.png" {...props} />
|
|
);
|
|
|
|
export const FileIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/document.png" {...props} />
|
|
);
|
|
|
|
export const ImageIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/picture.png" {...props} />
|
|
);
|
|
|
|
export const PlayIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/file.png" {...props} />
|
|
);
|
|
|
|
export const AudioIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/file.png" {...props} />
|
|
);
|
|
|
|
export const ArchiveIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/folder.png" {...props} />
|
|
);
|
|
|
|
export const UploadIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/upload.png" {...props} />
|
|
);
|
|
|
|
export const DownloadIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/download.png" {...props} />
|
|
);
|
|
|
|
export const PlusIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/plus.png" {...props} />
|
|
);
|
|
|
|
export const TrashIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/trash-can.png" {...props} />
|
|
);
|
|
|
|
export const RestoreIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/synchronize.png" {...props} />
|
|
);
|
|
|
|
export const RefreshIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/synchronize.png" {...props} />
|
|
);
|
|
|
|
export const StarIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/favorite.png" {...props} />
|
|
);
|
|
|
|
export const SearchIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/search.png" {...props} />
|
|
);
|
|
|
|
export const UsersIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/accounts.png" {...props} />
|
|
);
|
|
|
|
export const SettingsIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/personal-settings.png" {...props} />
|
|
);
|
|
|
|
export const LogoutIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/sign-out.png" {...props} />
|
|
);
|
|
|
|
export const ShieldIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/accounts.png" {...props} />
|
|
);
|
|
|
|
export const HardDriveIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/storage.png" {...props} />
|
|
);
|
|
|
|
export const ActivityIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/activity.png" {...props} />
|
|
);
|
|
|
|
export const SearchNavIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/search.png" {...props} />
|
|
);
|
|
|
|
export const ShareIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/share.png" {...props} />
|
|
);
|
|
|
|
export const MenuIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/menu.png" {...props} />
|
|
);
|
|
|
|
export const CloseIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/close.png" {...props} />
|
|
);
|
|
|
|
export const ArrowLeftIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/back.png" {...props} />
|
|
);
|
|
|
|
export const ArrowRightIcon = (props: IconProps) => (
|
|
<ImgIcon
|
|
src="/icons/back.png"
|
|
{...props}
|
|
style={{ transform: "rotate(180deg)", ...((props.style as any) || {}) }}
|
|
/>
|
|
);
|
|
|
|
export const PenIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/edit-pencil.png" {...props} />
|
|
);
|
|
|
|
/** Epingle : tete du pushpin en haut, pointe en bas. */
|
|
export const PinIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/file.png" {...props} />
|
|
);
|
|
|
|
export const MoveIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/synchronize.png" {...props} />
|
|
);
|
|
|
|
export const ChatIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/speech-bubble.png" {...props} />
|
|
);
|
|
|
|
export const SendIcon = (props: IconProps) => (
|
|
<ImgIcon src="/icons/send.png" {...props} />
|
|
);
|