@mamrp/components 1.0.47 → 1.0.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.d.mts CHANGED
@@ -92,6 +92,7 @@ interface JalaliDatePickerProps$2 {
92
92
  maxDate?: any;
93
93
  minDate?: any;
94
94
  clear?: boolean;
95
+ views?: ("year" | "month" | "day")[];
95
96
  }
96
97
  declare const JalaliDatePicker$2: React__default.FC<JalaliDatePickerProps$2>;
97
98
 
package/dist/index.d.ts CHANGED
@@ -92,6 +92,7 @@ interface JalaliDatePickerProps$2 {
92
92
  maxDate?: any;
93
93
  minDate?: any;
94
94
  clear?: boolean;
95
+ views?: ("year" | "month" | "day")[];
95
96
  }
96
97
  declare const JalaliDatePicker$2: React__default.FC<JalaliDatePickerProps$2>;
97
98
 
package/dist/index.js CHANGED
@@ -1263,7 +1263,8 @@ var JalaliDatePicker = ({
1263
1263
  isLoading,
1264
1264
  maxDate,
1265
1265
  minDate,
1266
- clear = true
1266
+ clear = true,
1267
+ views
1267
1268
  }) => {
1268
1269
  const today = (0, import_moment_jalaali.default)();
1269
1270
  const [open, setOpen] = (0, import_react7.useState)(false);
@@ -1308,7 +1309,7 @@ var JalaliDatePicker = ({
1308
1309
  disabled: isLoading || disabled,
1309
1310
  closeOnSelect: false,
1310
1311
  openTo: "day",
1311
- views: ["year", "month", "day"],
1312
+ views: views ?? ["year", "month", "day"],
1312
1313
  label,
1313
1314
  value: field.value ? (0, import_moment_jalaali.default)(field.value) : null,
1314
1315
  slotProps: {