@mamrp/components 1.7.37 → 1.7.41
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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" }
|
|
@@ -1268,7 +1270,8 @@ var JalaliDatePicker = ({
|
|
|
1268
1270
|
display: "flex",
|
|
1269
1271
|
alignItems: "center",
|
|
1270
1272
|
gap: "2px",
|
|
1271
|
-
...clear && field.value && { mr: 4.5 }
|
|
1273
|
+
...variant === "outlined" && clear && field.value && { mr: 4.5 },
|
|
1274
|
+
...variant === "standard" && clear && field.value && { mr: 4.5 }
|
|
1272
1275
|
}
|
|
1273
1276
|
},
|
|
1274
1277
|
/* @__PURE__ */ React8.createElement(Tooltip2, { title: "\u0631\u0648\u0632 \u0642\u0628\u0644" }, /* @__PURE__ */ React8.createElement(
|
|
@@ -1334,9 +1337,36 @@ var JalaliDatePicker = ({
|
|
|
1334
1337
|
},
|
|
1335
1338
|
sx: {
|
|
1336
1339
|
width: "100%",
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
+
...variant === "outlined" && {
|
|
1341
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
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"
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
...variant === "standard" && {
|
|
1358
|
+
"& .MuiInput-underline:before": {
|
|
1359
|
+
borderBottomColor: error ? "#D32F2F" : "rgba(0, 0, 0, 0.42)"
|
|
1360
|
+
},
|
|
1361
|
+
"& .MuiInput-underline:hover:not(.Mui-disabled):before": {
|
|
1362
|
+
borderBottomColor: error ? "#D32F2F" : "rgba(0, 0, 0, 0.87)"
|
|
1363
|
+
},
|
|
1364
|
+
"& .MuiInput-underline:after": {
|
|
1365
|
+
borderBottomColor: error ? "#D32F2F" : "#085938"
|
|
1366
|
+
},
|
|
1367
|
+
"& .MuiInputLabel-root.Mui-focused": {
|
|
1368
|
+
color: "#085938"
|
|
1369
|
+
}
|
|
1340
1370
|
},
|
|
1341
1371
|
"& .MuiInputBase-root": {
|
|
1342
1372
|
height: size === "small" ? 40 : 56
|