|
|
@ -3,18 +3,11 @@ |
|
|
|
import React, { useState } from "react"; |
|
|
|
import React, { useState } from "react"; |
|
|
|
import { useForm } from "react-hook-form"; |
|
|
|
import { useForm } from "react-hook-form"; |
|
|
|
|
|
|
|
|
|
|
|
import Input from "../AnimatedInput/Input"; |
|
|
|
import Input from "../../AnimatedInput/Input"; |
|
|
|
import CancleIcon from "../CancleIcon"; |
|
|
|
import CancleIcon from "../../MiniComponents/CancleIcon"; |
|
|
|
import Button from "../Button"; |
|
|
|
import Button from "../../ButtonDesign/Button"; |
|
|
|
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; |
|
|
|
import ProfilePicNextToEachOther from "../../ProfilePicNextToEachOther"; |
|
|
|
import TitleSubtitle from "../TitleSubtitle"; |
|
|
|
import TitleSubtitle from "../../MiniComponents/TitleSubtitle"; |
|
|
|
|
|
|
|
|
|
|
|
import calender from "./calender.svg"; |
|
|
|
|
|
|
|
import cancleIcon from "./cancle-icon.svg"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import documentCloud from "./document-cloud.svg"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import plus from "./plus.svg"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
// const [activeInput, setActiveInput] = useState(false);
|
|
|
|
// const [activeInput, setActiveInput] = useState(false);
|
|
|
@ -42,7 +35,10 @@ const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
<div className="max-w-[920px] mx-auto relative bg-white rounded-lg shadow dark:bg-gray-700"> |
|
|
|
<div className="max-w-[920px] mx-auto relative bg-white rounded-lg shadow dark:bg-gray-700"> |
|
|
|
{/* cancle icon */} |
|
|
|
{/* cancle icon */} |
|
|
|
<div className="flex justify-between items-start p-5 rounded-t"> |
|
|
|
<div className="flex justify-between items-start p-5 rounded-t"> |
|
|
|
<CancleIcon backgroundColor={"bg-[#F8F8F8]"} icon={cancleIcon} /> |
|
|
|
<CancleIcon |
|
|
|
|
|
|
|
backgroundColor={"bg-[#F8F8F8]"} |
|
|
|
|
|
|
|
icon="images/PopupCardcancle-icon.svg" |
|
|
|
|
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* modalBody */} |
|
|
|
{/* modalBody */} |
|
|
|
<div className="mx-5"> |
|
|
|
<div className="mx-5"> |
|
|
@ -65,7 +61,7 @@ const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
register={register("firstName")} |
|
|
|
register={register("firstName")} |
|
|
|
label="تقویم" |
|
|
|
label="تقویم" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
icon={calender} |
|
|
|
icon={"images/PopupCardcalender.svg"} |
|
|
|
borderClassname={`border-2 border-[#06BACE] `} |
|
|
|
borderClassname={`border-2 border-[#06BACE] `} |
|
|
|
inputClassname={`px-4 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
inputClassname={`px-4 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
activePlaceholderClass={"text-[#06BACE] bg-white"} |
|
|
|
activePlaceholderClass={"text-[#06BACE] bg-white"} |
|
|
@ -178,7 +174,7 @@ const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
subtitleClassName={"text-[#B3B3B3]"} |
|
|
|
subtitleClassName={"text-[#B3B3B3]"} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div className="mt-3 relative flex flex-row items-center justify-around border-2 border-dashed border-[#65A9FF] w-full p-4 rounded-md"> |
|
|
|
<div className="mt-3 relative flex flex-row items-center justify-around border-2 border-dashed border-[#65A9FF] w-full p-4 rounded-md"> |
|
|
|
<img src={documentCloud} alt="" /> |
|
|
|
<img src="images/PopupCarddocument-cloud.svg" alt="" /> |
|
|
|
<input |
|
|
|
<input |
|
|
|
type="file" |
|
|
|
type="file" |
|
|
|
className="opacity-0 absolute left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full h-full cursor-pointer" |
|
|
|
className="opacity-0 absolute left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full h-full cursor-pointer" |
|
|
@ -232,7 +228,7 @@ PopupCard.defaultProps = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: null, |
|
|
|
name: null, |
|
|
|
className: "bg-[#dddddd]", |
|
|
|
className: "bg-[#dddddd]", |
|
|
|
icon: calender, |
|
|
|
icon: "images/PopupCardcalender.svg", |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}; |