@mamrp/components 1.7.46 → 1.7.48
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.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -972,10 +972,16 @@ var TimePickerComponent = ({
|
|
|
972
972
|
TextField2,
|
|
973
973
|
{
|
|
974
974
|
disabled,
|
|
975
|
-
label,
|
|
975
|
+
label: variant === "standard" ? "" : label,
|
|
976
976
|
value,
|
|
977
977
|
onChange: handleInputChange,
|
|
978
978
|
onBlur: handleBlur,
|
|
979
|
+
InputLabelProps: {
|
|
980
|
+
shrink: true,
|
|
981
|
+
style: {
|
|
982
|
+
...variant === "standard" && { display: "none" }
|
|
983
|
+
}
|
|
984
|
+
},
|
|
979
985
|
variant,
|
|
980
986
|
size,
|
|
981
987
|
inputProps: {
|
|
@@ -1833,7 +1839,7 @@ var JalaliDatePicker2 = ({
|
|
|
1833
1839
|
disabled: isLoading || disabled,
|
|
1834
1840
|
openTo: "day",
|
|
1835
1841
|
views: ["year", "month", "day", "hours", "minutes"],
|
|
1836
|
-
label,
|
|
1842
|
+
label: variant === "standard" ? "" : label,
|
|
1837
1843
|
value: field.value ? moment4.utc(field.value).utcOffset(210) : null,
|
|
1838
1844
|
onChange: (newValue) => {
|
|
1839
1845
|
if (newValue) {
|
|
@@ -2022,9 +2028,10 @@ var JalaliDatePicker2 = ({
|
|
|
2022
2028
|
if (!open) setOpen(true);
|
|
2023
2029
|
},
|
|
2024
2030
|
InputLabelProps: {
|
|
2025
|
-
|
|
2031
|
+
shrink: true,
|
|
2026
2032
|
style: {
|
|
2027
|
-
color: error ? "#D32F2F" : "inherit"
|
|
2033
|
+
color: error ? "#D32F2F" : "inherit",
|
|
2034
|
+
...variant === "standard" && { display: "none" }
|
|
2028
2035
|
}
|
|
2029
2036
|
},
|
|
2030
2037
|
InputProps: {
|