@mamrp/components 1.7.40 → 1.7.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1196,7 +1196,7 @@ var JalaliDatePicker = ({
1196
1196
  closeOnSelect: false,
1197
1197
  openTo: "day",
1198
1198
  views: views ?? ["year", "month", "day"],
1199
- label,
1199
+ label: variant === "standard" ? "" : label,
1200
1200
  value: field.value ? moment(field.value) : null,
1201
1201
  format: persian ? "dddd - jDD/jMMMM/jYYYY" : "jYYYY/jMM/jDD",
1202
1202
  slotProps: {
@@ -1270,7 +1270,8 @@ var JalaliDatePicker = ({
1270
1270
  display: "flex",
1271
1271
  alignItems: "center",
1272
1272
  gap: "2px",
1273
- ...clear && field.value && { mr: 4.5 }
1273
+ ...variant === "outlined" && clear && field.value && { mr: 4.5 },
1274
+ ...variant === "standard" && clear && field.value && { mr: 4.5 }
1274
1275
  }
1275
1276
  },
1276
1277
  /* @__PURE__ */ React8.createElement(Tooltip2, { title: "\u0631\u0648\u0632 \u0642\u0628\u0644" }, /* @__PURE__ */ React8.createElement(
@@ -1336,21 +1337,35 @@ var JalaliDatePicker = ({
1336
1337
  },
1337
1338
  sx: {
1338
1339
  width: "100%",
1339
- borderColor: error ? "#D32F2F" : "#C4C4C4",
1340
1340
  ...variant === "outlined" && {
1341
1341
  "& .MuiOutlinedInput-notchedOutline": {
1342
1342
  borderColor: error ? "#D32F2F" : "#C4C4C4"
1343
+ },
1344
+ "& .MuiOutlinedInput-root": {
1345
+ borderRadius: "12px",
1346
+ "&:hover fieldset": {
1347
+ borderColor: error ? "#D32F2F" : "#085938"
1348
+ },
1349
+ "&.Mui-focused fieldset": {
1350
+ borderColor: error ? "#D32F2F" : "#085938"
1351
+ }
1352
+ },
1353
+ "& .MuiInputLabel-root.Mui-focused": {
1354
+ color: "#085938"
1343
1355
  }
1344
1356
  },
1345
1357
  ...variant === "standard" && {
1346
1358
  "& .MuiInput-underline:before": {
1347
- borderBottomColor: error ? "#D32F2F" : "#C4C4C4"
1359
+ borderBottomColor: error ? "#D32F2F" : "rgba(0, 0, 0, 0.42)"
1348
1360
  },
1349
1361
  "& .MuiInput-underline:hover:not(.Mui-disabled):before": {
1350
- borderBottomColor: error ? "#D32F2F" : "#C4C4C4"
1362
+ borderBottomColor: error ? "#D32F2F" : "rgba(0, 0, 0, 0.87)"
1351
1363
  },
1352
1364
  "& .MuiInput-underline:after": {
1353
- borderBottomColor: error ? "#D32F2F" : void 0
1365
+ borderBottomColor: error ? "#D32F2F" : "#085938"
1366
+ },
1367
+ "& .MuiInputLabel-root.Mui-focused": {
1368
+ color: "#085938"
1354
1369
  }
1355
1370
  },
1356
1371
  "& .MuiInputBase-root": {