|
|
@ -27,14 +27,14 @@ function CustomRangeInput({ openCalendar, value }) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="flex flex-row items-center "> |
|
|
|
<div className="flex flex-row items-center "> |
|
|
|
<input |
|
|
|
<input |
|
|
|
className="w-full py-1 text-center text-sm rounded-md border border-gray-200 focus:outline-none focus:border-sky-200 focus:ring-sky-200 focus:ring-1" |
|
|
|
className="w-full py-1 text-center text-sm rounded border border-gray-200 focus:outline-none focus:border-[#0074d9] focus:ring-[#0074d9] focus:ring-1" |
|
|
|
onFocus={openCalendar} |
|
|
|
onFocus={openCalendar} |
|
|
|
value={value[0]} |
|
|
|
value={value[0]} |
|
|
|
readOnly |
|
|
|
readOnly |
|
|
|
/> |
|
|
|
/> |
|
|
|
<p className="mx-2 text-sm">تا</p> |
|
|
|
<p className="mx-2 text-sm">تا</p> |
|
|
|
<input |
|
|
|
<input |
|
|
|
className="w-full py-1 text-center text-sm rounded-md border border-gray-200 focus:outline-none focus:border-sky-200 focus:ring-sky-200 focus:ring-1" |
|
|
|
className="w-full py-1 text-center text-sm rounded border border-gray-200 focus:outline-none focus:border-[#0074d9] focus:ring-[#0074d9] focus:ring-1" |
|
|
|
onFocus={openCalendar} |
|
|
|
onFocus={openCalendar} |
|
|
|
value={value[1]} |
|
|
|
value={value[1]} |
|
|
|
readOnly |
|
|
|
readOnly |
|
|
@ -42,12 +42,10 @@ function CustomRangeInput({ openCalendar, value }) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const TestComponentNew = () => { |
|
|
|
const TestComponentNew = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div className="w-1/2 mx-auto" style={{ direction: "rtl" }}> |
|
|
|
className="bg-pink-100 w-1/2 mx-auto mt-20" |
|
|
|
|
|
|
|
style={{ direction: "rtl" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Calendar calendar={persian} locale={persian_fa} /> |
|
|
|
<Calendar calendar={persian} locale={persian_fa} /> |
|
|
|
<hr className="my-20" /> |
|
|
|
<hr className="my-20" /> |
|
|
|
<DatePicker |
|
|
|
<DatePicker |
|
|
|