@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.js CHANGED
@@ -1249,7 +1249,7 @@ var JalaliDatePicker = ({
1249
1249
  closeOnSelect: false,
1250
1250
  openTo: "day",
1251
1251
  views: views ?? ["year", "month", "day"],
1252
- label,
1252
+ label: variant === "standard" ? "" : label,
1253
1253
  value: field.value ? (0, import_moment_jalaali.default)(field.value) : null,
1254
1254
  format: persian ? "dddd - jDD/jMMMM/jYYYY" : "jYYYY/jMM/jDD",
1255
1255
  slotProps: {
@@ -1275,9 +1275,13 @@ var JalaliDatePicker = ({
1275
1275
  placeholder: field.value || isLoading ? "" : "\u0627\u0646\u062A\u062E\u0627\u0628 \u062A\u0627\u0631\u06CC\u062E ",
1276
1276
  onClick: () => !disabled && !isLoading && setOpen(true),
1277
1277
  variant,
1278
+ ...variant === "standard" && { label: void 0 },
1278
1279
  InputLabelProps: {
1279
1280
  shrink: true,
1280
- style: { color: error ? "#D32F2F" : "inherit" }
1281
+ style: {
1282
+ color: error ? "#D32F2F" : "inherit",
1283
+ ...variant === "standard" && { display: "none" }
1284
+ }
1281
1285
  },
1282
1286
  inputProps: {
1283
1287
  readOnly: true,