@mamrp/components 1.7.45 → 1.7.47

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
@@ -972,12 +972,15 @@ 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
979
  InputLabelProps: {
980
- shrink: true
980
+ shrink: true,
981
+ style: {
982
+ ...variant === "standard" && { display: "none" }
983
+ }
981
984
  },
982
985
  variant,
983
986
  size,
@@ -1836,7 +1839,7 @@ var JalaliDatePicker2 = ({
1836
1839
  disabled: isLoading || disabled,
1837
1840
  openTo: "day",
1838
1841
  views: ["year", "month", "day", "hours", "minutes"],
1839
- label,
1842
+ label: variant === "standard" ? "" : label,
1840
1843
  value: field.value ? moment4.utc(field.value).utcOffset(210) : null,
1841
1844
  onChange: (newValue) => {
1842
1845
  if (newValue) {
@@ -2027,7 +2030,8 @@ var JalaliDatePicker2 = ({
2027
2030
  InputLabelProps: {
2028
2031
  shrink: true,
2029
2032
  style: {
2030
- color: error ? "#D32F2F" : "inherit"
2033
+ color: error ? "#D32F2F" : "inherit",
2034
+ ...variant === "standard" && { display: "none" }
2031
2035
  }
2032
2036
  },
2033
2037
  InputProps: {