@mamrp/components 1.7.41 → 1.7.43

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
@@ -1196,7 +1196,7 @@ var JalaliDatePicker = ({
1196
1196
  closeOnSelect: false,
1197
1197
  openTo: "day",
1198
1198
  views: views ?? ["year", "month", "day"],
1199
- label,
1199
+ label: variant === "standard" ? "" : label,
1200
1200
  value: field.value ? moment(field.value) : null,
1201
1201
  format: persian ? "dddd - jDD/jMMMM/jYYYY" : "jYYYY/jMM/jDD",
1202
1202
  slotProps: {
@@ -1222,9 +1222,13 @@ var JalaliDatePicker = ({
1222
1222
  placeholder: field.value || isLoading ? "" : "\u0627\u0646\u062A\u062E\u0627\u0628 \u062A\u0627\u0631\u06CC\u062E ",
1223
1223
  onClick: () => !disabled && !isLoading && setOpen(true),
1224
1224
  variant,
1225
+ ...variant === "standard" && { label: void 0 },
1225
1226
  InputLabelProps: {
1226
1227
  shrink: true,
1227
- style: { color: error ? "#D32F2F" : "inherit" }
1228
+ style: {
1229
+ color: error ? "#D32F2F" : "inherit",
1230
+ ...variant === "standard" && { display: "none" }
1231
+ }
1228
1232
  },
1229
1233
  inputProps: {
1230
1234
  readOnly: true,