@hellobetterdigitalnz/betterui 0.0.3-241 → 0.0.3-243

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,6 +1,7 @@
1
1
  interface BadgeProps {
2
2
  status?: "pending" | "inProgress" | "complete" | 'draft' | "custom";
3
3
  label: string;
4
+ clickable?: boolean;
4
5
  onClick?: () => void;
5
6
  extraClass?: string;
6
7
  }
@@ -18,14 +18,16 @@ interface NameValueInterface {
18
18
  }
19
19
  interface NameValueHolidayInterface {
20
20
  label: string;
21
- startDate?: any;
22
- endDate?: any;
21
+ startDay?: any;
22
+ endDay?: any;
23
23
  }
24
24
  interface CalendarProps {
25
25
  startOfWeekOn?: "Monday" | "Sunday";
26
26
  events: NameValueInterface[] | any;
27
27
  holidays?: NameValueHolidayInterface[] | any;
28
28
  currentDate?: any;
29
+ showPublicHolidayDayToggle?: boolean;
30
+ showPrepTimeToggle?: boolean;
29
31
  showPrepTime?: boolean;
30
32
  viewChangeAction?: boolean;
31
33
  calendarViewActive?: boolean;
@@ -1,3 +1,3 @@
1
1
  import DayViewProps from "./DayViewProps.tsx";
2
- declare const DayView: ({ date, events, holidays, showPrepTime }: DayViewProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DayView: ({ date, events, showPrepTime }: DayViewProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DayView;
@@ -1,5 +1,5 @@
1
1
  import CalendarProps from "../../CalendarProps.tsx";
2
- interface DayViewProps extends Omit<CalendarProps, 'calendarActionOnclick' | 'listActionOnclick'> {
2
+ interface DayViewProps extends Omit<CalendarProps, 'calendarActionOnclick' | 'listActionOnclick' | 'showPublicHolidayDayToggle' | 'showPrepTimeToggle'> {
3
3
  date: Date;
4
4
  }
5
5
  export default DayViewProps;
@@ -1,5 +1,5 @@
1
1
  import CalendarProps from "../../CalendarProps.tsx";
2
- interface WeekViewProps extends Omit<CalendarProps, 'calendarActionOnclick' | 'listActionOnclick'> {
2
+ interface WeekViewProps extends Omit<CalendarProps, 'calendarActionOnclick' | 'listActionOnclick' | 'showPublicHolidayDayToggle' | 'showPrepTimeToggle'> {
3
3
  date: Date;
4
4
  }
5
5
  export default WeekViewProps;
@@ -4,6 +4,6 @@ interface ModalHeaderProps {
4
4
  canClose?: boolean;
5
5
  canGoBack?: boolean;
6
6
  closeOnclick?: (e: any) => void;
7
- canGoBackOnclick?: () => void;
7
+ canGoBackOnclick?: (e: any) => void;
8
8
  }
9
9
  export default ModalHeaderProps;