@kystverket/styrbord 1.0.11 → 1.0.12

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.
@@ -5,9 +5,12 @@ export interface DateTimePickerProps {
5
5
  dateTimeFormat?: string;
6
6
  description?: string;
7
7
  error?: string;
8
+ onBlur?: () => void;
8
9
  value: Date | undefined;
9
10
  timeInputLabel?: string;
10
11
  onChange?: (date: Date | undefined) => void;
11
12
  showCalendarIcon?: boolean;
13
+ minDate?: Date;
14
+ maxDate?: Date;
12
15
  }
13
- export declare const DateTimePicker: ({ value, onChange, dateTimeFormat, timeInputLabel, showCalendarIcon, ...props }: DateTimePickerProps) => React.JSX.Element;
16
+ export declare const DateTimePicker: ({ value, onChange, dateTimeFormat, timeInputLabel, showCalendarIcon, minDate, maxDate, ...props }: DateTimePickerProps) => React.JSX.Element;
@@ -17,3 +17,6 @@ export declare const Required: Story;
17
17
  export declare const WithoutDescription: Story;
18
18
  export declare const WithValue: Story;
19
19
  export declare const WithError: Story;
20
+ export declare const WithMinDate: Story;
21
+ export declare const WithMaxDate: Story;
22
+ export declare const WithMinAndMaxDate: Story;
@@ -9,5 +9,7 @@ export interface DatepickerProps {
9
9
  value: Date | undefined;
10
10
  onChange?: (date: Date | undefined) => void;
11
11
  showCalendarIcon?: boolean;
12
+ minDate?: Date;
13
+ maxDate?: Date;
12
14
  }
13
- export declare const Datepicker: ({ value, onChange, dateFormat, showCalendarIcon, ...props }: DatepickerProps) => React.JSX.Element;
15
+ export declare const Datepicker: ({ value, onChange, dateFormat, showCalendarIcon, minDate, maxDate, ...props }: DatepickerProps) => React.JSX.Element;
@@ -17,3 +17,6 @@ export declare const Optional: Story;
17
17
  export declare const OptionalText: Story;
18
18
  export declare const Required: Story;
19
19
  export declare const WithError: Story;
20
+ export declare const WithMinDate: Story;
21
+ export declare const WithMaxDate: Story;
22
+ export declare const WithMinAndMaxDate: Story;