@mamrp/components 1.7.36 → 1.7.40

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.d.mts CHANGED
@@ -100,6 +100,7 @@ interface JalaliDatePickerProps$2 {
100
100
  minDate?: any;
101
101
  clear?: boolean;
102
102
  views?: ("year" | "month" | "day")[];
103
+ variant?: "outlined" | "standard";
103
104
  }
104
105
  declare const JalaliDatePicker$2: React__default.FC<JalaliDatePickerProps$2>;
105
106
 
package/dist/index.d.ts CHANGED
@@ -100,6 +100,7 @@ interface JalaliDatePickerProps$2 {
100
100
  minDate?: any;
101
101
  clear?: boolean;
102
102
  views?: ("year" | "month" | "day")[];
103
+ variant?: "outlined" | "standard";
103
104
  }
104
105
  declare const JalaliDatePicker$2: React__default.FC<JalaliDatePickerProps$2>;
105
106
 
package/dist/index.js CHANGED
@@ -205,7 +205,7 @@ function LicensePlate({
205
205
  outline: "none",
206
206
  border: "none",
207
207
  cursor: readOnly || !!data && readOnly ? "default" : "text",
208
- fontSize: "1rem",
208
+ fontSize: size === "small" ? "1rem" : "1.05rem",
209
209
  fontWeight: 600
210
210
  };
211
211
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
@@ -217,7 +217,7 @@ function LicensePlate({
217
217
  borderRadius: "7px",
218
218
  display: "flex",
219
219
  alignItems: "center",
220
- height: "3.5rem"
220
+ height: size === "small" ? "3rem" : "3.5rem"
221
221
  },
222
222
  dir: "ltr"
223
223
  },
@@ -227,7 +227,7 @@ function LicensePlate({
227
227
  sx: {
228
228
  backgroundColor: "#172554",
229
229
  width: size === "small" ? "30px" : "36px",
230
- height: "52px",
230
+ height: size === "small" ? "44px" : "52px",
231
231
  display: "flex",
232
232
  justifyContent: "center",
233
233
  alignItems: "center",
@@ -240,8 +240,8 @@ function LicensePlate({
240
240
  {
241
241
  src: "/assets/images/iran-flag-dark.svg",
242
242
  alt: "Iran Flag",
243
- width: size === "small" ? 16 : 20,
244
- height: size === "small" ? 12 : 16
243
+ width: size === "small" ? 15 : 18,
244
+ height: size === "small" ? 11 : 14
245
245
  }
246
246
  )
247
247
  )),
@@ -389,7 +389,7 @@ function LicensePlate({
389
389
  sx: {
390
390
  display: "flex",
391
391
  flexDirection: "column-reverse",
392
- gap: size === "small" ? 1 : 0.5,
392
+ gap: 0.5,
393
393
  alignItems: "center"
394
394
  }
395
395
  },
@@ -414,8 +414,8 @@ function LicensePlate({
414
414
  {
415
415
  src: "/assets/images/iran.svg",
416
416
  alt: "Iran",
417
- width: size === "small" ? 25 : 30,
418
- height: size === "small" ? 21 : 26,
417
+ width: size === "small" ? 25 : 28,
418
+ height: size === "small" ? 21 : 24,
419
419
  style: { margin: 0, display: "block" }
420
420
  }
421
421
  )
@@ -1171,7 +1171,8 @@ var JalaliDatePicker = ({
1171
1171
  maxDate,
1172
1172
  minDate,
1173
1173
  clear = true,
1174
- views
1174
+ views,
1175
+ variant = "outlined"
1175
1176
  }) => {
1176
1177
  const today = (0, import_moment_jalaali.default)();
1177
1178
  const customLocaleText = {
@@ -1273,6 +1274,7 @@ var JalaliDatePicker = ({
1273
1274
  size,
1274
1275
  placeholder: field.value || isLoading ? "" : "\u0627\u0646\u062A\u062E\u0627\u0628 \u062A\u0627\u0631\u06CC\u062E ",
1275
1276
  onClick: () => !disabled && !isLoading && setOpen(true),
1277
+ variant,
1276
1278
  InputLabelProps: {
1277
1279
  shrink: true,
1278
1280
  style: { color: error ? "#D32F2F" : "inherit" }
@@ -1388,8 +1390,21 @@ var JalaliDatePicker = ({
1388
1390
  sx: {
1389
1391
  width: "100%",
1390
1392
  borderColor: error ? "#D32F2F" : "#C4C4C4",
1391
- "& .MuiOutlinedInput-notchedOutline": {
1392
- borderColor: error ? "#D32F2F" : "#C4C4C4"
1393
+ ...variant === "outlined" && {
1394
+ "& .MuiOutlinedInput-notchedOutline": {
1395
+ borderColor: error ? "#D32F2F" : "#C4C4C4"
1396
+ }
1397
+ },
1398
+ ...variant === "standard" && {
1399
+ "& .MuiInput-underline:before": {
1400
+ borderBottomColor: error ? "#D32F2F" : "#C4C4C4"
1401
+ },
1402
+ "& .MuiInput-underline:hover:not(.Mui-disabled):before": {
1403
+ borderBottomColor: error ? "#D32F2F" : "#C4C4C4"
1404
+ },
1405
+ "& .MuiInput-underline:after": {
1406
+ borderBottomColor: error ? "#D32F2F" : void 0
1407
+ }
1393
1408
  },
1394
1409
  "& .MuiInputBase-root": {
1395
1410
  height: size === "small" ? 40 : 56