@hellobetterdigitalnz/betterui 0.0.3-224 → 0.0.3-226

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.
@@ -3,11 +3,11 @@ interface NameValueInterface {
3
3
  type?: "primary" | "secondary" | undefined;
4
4
  color?: string;
5
5
  startTime?: any;
6
- timeDuration?: any;
7
- bufferTime?: [
8
- preBuffer: any,
9
- postBuffer: any
10
- ];
6
+ timeDuration?: number;
7
+ bufferTime?: {
8
+ preBuffer: number;
9
+ postBuffer: number;
10
+ };
11
11
  }
12
12
  interface NameValueHolidayInterface {
13
13
  label: string;
@@ -19,6 +19,7 @@ interface CalendarProps {
19
19
  events: NameValueInterface[] | any;
20
20
  holidays?: NameValueHolidayInterface[] | any;
21
21
  currentDate?: any;
22
+ showPrepTime?: boolean;
22
23
  }
23
24
  export type { NameValueInterface };
24
25
  export type { NameValueHolidayInterface };
@@ -1,3 +1,3 @@
1
1
  import DayViewProps from "./DayViewProps.tsx";
2
- declare const DayView: ({ date, events, holidays }: DayViewProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DayView: ({ date, events, holidays, showPrepTime }: DayViewProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DayView;
@@ -1,3 +1,3 @@
1
- import WeekViewProps from './WeekViewProps.tsx';
2
- declare const WeekView: ({ events, date, startOfWeekOn }: WeekViewProps) => import("react/jsx-runtime").JSX.Element;
1
+ import WeekViewProps from "./WeekViewProps.tsx";
2
+ declare const WeekView: ({ events, date, startOfWeekOn, showPrepTime }: WeekViewProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default WeekView;
@@ -22,7 +22,7 @@ interface MultiSelectFieldProps {
22
22
  creatable?: boolean;
23
23
  onCreateNew?: (option: string | number, e: any) => void;
24
24
  ariaDescribedby?: string;
25
- onClick?: (e: MouseEvent) => void;
25
+ onClick?: (e: MouseEvent, value?: SelectOption[]) => void;
26
26
  onChange: (value: SelectOption[]) => void;
27
27
  onFocus?: (e: FocusEvent) => void;
28
28
  onBlur?: (e: FocusEvent) => void;