@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.js CHANGED
@@ -1025,12 +1025,15 @@ var TimePickerComponent = ({
1025
1025
  import_material8.TextField,
1026
1026
  {
1027
1027
  disabled,
1028
- label,
1028
+ label: variant === "standard" ? "" : label,
1029
1029
  value,
1030
1030
  onChange: handleInputChange,
1031
1031
  onBlur: handleBlur,
1032
1032
  InputLabelProps: {
1033
- shrink: true
1033
+ shrink: true,
1034
+ style: {
1035
+ ...variant === "standard" && { display: "none" }
1036
+ }
1034
1037
  },
1035
1038
  variant,
1036
1039
  size,
@@ -1889,7 +1892,7 @@ var JalaliDatePicker2 = ({
1889
1892
  disabled: isLoading || disabled,
1890
1893
  openTo: "day",
1891
1894
  views: ["year", "month", "day", "hours", "minutes"],
1892
- label,
1895
+ label: variant === "standard" ? "" : label,
1893
1896
  value: field.value ? import_moment_jalaali2.default.utc(field.value).utcOffset(210) : null,
1894
1897
  onChange: (newValue) => {
1895
1898
  if (newValue) {
@@ -2080,7 +2083,8 @@ var JalaliDatePicker2 = ({
2080
2083
  InputLabelProps: {
2081
2084
  shrink: true,
2082
2085
  style: {
2083
- color: error ? "#D32F2F" : "inherit"
2086
+ color: error ? "#D32F2F" : "inherit",
2087
+ ...variant === "standard" && { display: "none" }
2084
2088
  }
2085
2089
  },
2086
2090
  InputProps: {