change style popover datepicker

This commit is contained in:
Ehsan
2024-10-24 00:36:06 +03:30
parent 94a81e6345
commit 2e8338da6d
5 changed files with 9 additions and 10 deletions
+3 -5
View File
@@ -22,11 +22,9 @@ function ButtonDate({ anchorEl, setAnchorEl, open, id, updateDate, children }) {
}} }}
sx={{ sx={{
"& .MuiPaper-root": { "& .MuiPaper-root": {
padding: { xs: "12px 12px 0", sm: "24px 24px 0" }, background: "transparent !important",
background: "#FFF", border: "none !important",
borderRadius: "8px", // boxShadow: "none !important",
border: "1px solid #EFEFEF",
boxShadow: "0px 1px 24.8px 0px rgba(204, 204, 204, 0.18)",
}, },
}} }}
> >
+1
View File
@@ -3,6 +3,7 @@ import { DatePicker } from "jalaali-react-date-picker";
function DatePickerContent({ type, updateDate, handleClose }) { function DatePickerContent({ type, updateDate, handleClose }) {
return ( return (
<DatePicker <DatePicker
className="!pt-[12px] !px-[12px] sm:!pt-[24px] sm:!px-[24px] !border !border-solid !border-[#EFEFEF] !bg-[#FFF] !rounded-[8px] !overflow-hidden"
dayLabelRender={(e) => ( dayLabelRender={(e) => (
<div className="day-label-bar-inner-rtl"> <div className="day-label-bar-inner-rtl">
<div className="day-label-item !text-[10px] font-semibold">شنبه</div> <div className="day-label-item !text-[10px] font-semibold">شنبه</div>
+3 -3
View File
@@ -58,9 +58,9 @@ function EditField({
<Button <Button
className={`!absolute !left-[8px] !-translate-y-1/2 !min-w-fit !p-1 className={`!absolute !left-[8px] !-translate-y-1/2 !min-w-fit !p-1
${multiline ? "!top-[24px]" : "!top-1/2"}`} ${multiline ? "!top-[24px]" : "!top-1/2"}`}
onClick={() => { // onClick={() => {
// changeData(!data.isEdit, "isEdit", name); // changeData(!data.isEdit, "isEdit", name);
}} // }}
> >
{icon ? icon : iconGray ? <EditGrayA /> : <EditOrangeA />} {icon ? icon : iconGray ? <EditGrayA /> : <EditOrangeA />}
</Button> </Button>
+1 -1
View File
@@ -587,7 +587,7 @@ html {
.panel-jalaali, .panel-jalaali,
.panel-header-rtl, .panel-header-rtl,
.days-body { .days-body {
background: #fafafa !important; background: #fff !important;
} }
} }
@@ -40,7 +40,7 @@ function Form({ setValue, parent, data, setData }) {
return ( return (
<> <>
<div className="mt-[24px] scroll-mui md:mt-[26px] lg:mt-[28px] grid grid-cols-1 md:grid-cols-2 gap-x-[48px] gap-y-[24px]"> <div className="mt-[24px] sm-modal scroll-mui md:mt-[26px] lg:mt-[28px] grid grid-cols-1 md:grid-cols-2 gap-x-[48px] gap-y-[24px]">
<ContentText text="نام و نام خانوادگی"> <ContentText text="نام و نام خانوادگی">
<EditField <EditField
isTransparent={true} isTransparent={true}