zaravand-ui 1.1.2 → 1.1.4

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.
@@ -1,7 +1,7 @@
1
1
  import type * as React from "react";
2
2
  export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "type" | "disabled" | "onClick"> {
3
3
  size?: "sm" | "default" | "lg";
4
- variant?: "primary" | "secondary";
4
+ variant?: "primary" | "secondary" | "danger";
5
5
  kind?: "confirm" | "cancel";
6
6
  disabled?: boolean;
7
7
  isLoading?: boolean;
@@ -4,5 +4,5 @@ type DatePickerValue = Date | DateRange | undefined;
4
4
  export declare function formatDatePickerOnChangeValue<TOutput extends DatePickerDateOutputType>(nextValue: DatePickerValue, mode: "single" | "range", typeDateExport: DatePickerDateExportType, typeDateOutput: TOutput): DatePickerOnChangeValue<TOutput>;
5
5
  export declare function formatPersianDate(date: Date): string;
6
6
  export declare function formatPersianDateRangeLabel(dateRange: DateRange | undefined): string | null;
7
- declare function DatePicker<TOutput extends DatePickerDateOutputType = "object">({ className, size, title, required, placeholder, mode, value, defaultValue, onChange, typeDateExport, typeDateOutput, fromDate, toDate, disabledDates, numberOfMonths, calendarSystem, defaultCalendarSystem, onCalendarSystemChange, open, onOpenChange, onInvalid, disabled, id, }: DatePickerProps<TOutput>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DatePicker<TOutput extends DatePickerDateOutputType = "object">({ className, size, title, required, placeholder, mode, allowManualInput, value, defaultValue, onChange, typeDateExport, typeDateOutput, fromDate, toDate, disabledDates, numberOfMonths, calendarSystem, defaultCalendarSystem, onCalendarSystemChange, open, onOpenChange, onInvalid, disabled, id, }: DatePickerProps<TOutput>): import("react/jsx-runtime").JSX.Element;
8
8
  export default DatePicker;
@@ -24,6 +24,12 @@ export interface DatePickerProps<TOutput extends DatePickerDateOutputType = Date
24
24
  required?: boolean;
25
25
  placeholder?: string;
26
26
  mode?: "single" | "range";
27
+ /**
28
+ * When true, allows the user to manually type the date (single mode only)
29
+ * using the `day/month/year` format, in addition to picking it from the calendar.
30
+ * @default false
31
+ */
32
+ allowManualInput?: boolean;
27
33
  value?: Date | DateRange | undefined;
28
34
  defaultValue?: Date | DateRange | undefined;
29
35
  onChange?: (value: DatePickerOnChangeValue<TOutput>) => void;