@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.mjs CHANGED
@@ -135,7 +135,7 @@ function LicensePlate({
135
135
  outline: "none",
136
136
  border: "none",
137
137
  cursor: readOnly || !!data && readOnly ? "default" : "text",
138
- fontSize: "1rem",
138
+ fontSize: size === "small" ? "1rem" : "1.05rem",
139
139
  fontWeight: 600
140
140
  };
141
141
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
@@ -147,7 +147,7 @@ function LicensePlate({
147
147
  borderRadius: "7px",
148
148
  display: "flex",
149
149
  alignItems: "center",
150
- height: "3.5rem"
150
+ height: size === "small" ? "3rem" : "3.5rem"
151
151
  },
152
152
  dir: "ltr"
153
153
  },
@@ -157,7 +157,7 @@ function LicensePlate({
157
157
  sx: {
158
158
  backgroundColor: "#172554",
159
159
  width: size === "small" ? "30px" : "36px",
160
- height: "52px",
160
+ height: size === "small" ? "44px" : "52px",
161
161
  display: "flex",
162
162
  justifyContent: "center",
163
163
  alignItems: "center",
@@ -170,8 +170,8 @@ function LicensePlate({
170
170
  {
171
171
  src: "/assets/images/iran-flag-dark.svg",
172
172
  alt: "Iran Flag",
173
- width: size === "small" ? 16 : 20,
174
- height: size === "small" ? 12 : 16
173
+ width: size === "small" ? 15 : 18,
174
+ height: size === "small" ? 11 : 14
175
175
  }
176
176
  )
177
177
  )),
@@ -319,7 +319,7 @@ function LicensePlate({
319
319
  sx: {
320
320
  display: "flex",
321
321
  flexDirection: "column-reverse",
322
- gap: size === "small" ? 1 : 0.5,
322
+ gap: 0.5,
323
323
  alignItems: "center"
324
324
  }
325
325
  },
@@ -344,8 +344,8 @@ function LicensePlate({
344
344
  {
345
345
  src: "/assets/images/iran.svg",
346
346
  alt: "Iran",
347
- width: size === "small" ? 25 : 30,
348
- height: size === "small" ? 21 : 26,
347
+ width: size === "small" ? 25 : 28,
348
+ height: size === "small" ? 21 : 24,
349
349
  style: { margin: 0, display: "block" }
350
350
  }
351
351
  )
@@ -1118,7 +1118,8 @@ var JalaliDatePicker = ({
1118
1118
  maxDate,
1119
1119
  minDate,
1120
1120
  clear = true,
1121
- views
1121
+ views,
1122
+ variant = "outlined"
1122
1123
  }) => {
1123
1124
  const today = moment();
1124
1125
  const customLocaleText = {
@@ -1220,6 +1221,7 @@ var JalaliDatePicker = ({
1220
1221
  size,
1221
1222
  placeholder: field.value || isLoading ? "" : "\u0627\u0646\u062A\u062E\u0627\u0628 \u062A\u0627\u0631\u06CC\u062E ",
1222
1223
  onClick: () => !disabled && !isLoading && setOpen(true),
1224
+ variant,
1223
1225
  InputLabelProps: {
1224
1226
  shrink: true,
1225
1227
  style: { color: error ? "#D32F2F" : "inherit" }
@@ -1335,8 +1337,21 @@ var JalaliDatePicker = ({
1335
1337
  sx: {
1336
1338
  width: "100%",
1337
1339
  borderColor: error ? "#D32F2F" : "#C4C4C4",
1338
- "& .MuiOutlinedInput-notchedOutline": {
1339
- borderColor: error ? "#D32F2F" : "#C4C4C4"
1340
+ ...variant === "outlined" && {
1341
+ "& .MuiOutlinedInput-notchedOutline": {
1342
+ borderColor: error ? "#D32F2F" : "#C4C4C4"
1343
+ }
1344
+ },
1345
+ ...variant === "standard" && {
1346
+ "& .MuiInput-underline:before": {
1347
+ borderBottomColor: error ? "#D32F2F" : "#C4C4C4"
1348
+ },
1349
+ "& .MuiInput-underline:hover:not(.Mui-disabled):before": {
1350
+ borderBottomColor: error ? "#D32F2F" : "#C4C4C4"
1351
+ },
1352
+ "& .MuiInput-underline:after": {
1353
+ borderBottomColor: error ? "#D32F2F" : void 0
1354
+ }
1340
1355
  },
1341
1356
  "& .MuiInputBase-root": {
1342
1357
  height: size === "small" ? 40 : 56