@mamrp/components 1.7.37 → 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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -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
|
-
|
|
1392
|
-
|
|
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
|