@leapdevuk/component-toolbox 0.0.43 → 0.0.44

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.
@@ -0,0 +1,43 @@
1
+ import { FC } from 'react';
2
+ import { Locale } from 'date-fns';
3
+ interface IValidationError {
4
+ fromDate: boolean;
5
+ toDate: boolean;
6
+ keepButton: boolean;
7
+ message: string;
8
+ originalValue?: string | null;
9
+ }
10
+ interface ICustomActonProps {
11
+ label: string;
12
+ fromValue: Date;
13
+ toValue: Date;
14
+ }
15
+ interface IAdditionalActionsProps {
16
+ showThisWeek?: boolean;
17
+ showNextWeek?: boolean;
18
+ showLastWeek?: boolean;
19
+ showThisMonth?: boolean;
20
+ showNextMonth?: boolean;
21
+ showLastMonth?: boolean;
22
+ showClear?: boolean;
23
+ customActions?: ICustomActonProps[];
24
+ }
25
+ interface IDatePickerProps {
26
+ disabled?: boolean;
27
+ fullWidth?: boolean;
28
+ isUTC?: boolean;
29
+ startOfDate?: boolean;
30
+ endOfDate?: boolean;
31
+ dateOnly?: boolean;
32
+ onUpdate: (fromDate: string | null, toDate: string | null) => void;
33
+ additionalActions?: IAdditionalActionsProps;
34
+ size?: "small" | "medium";
35
+ validate30Days?: boolean;
36
+ validate?: (value?: any | null) => IValidationError | null;
37
+ fromDate: string | null;
38
+ toDate: string | null;
39
+ locale?: Locale;
40
+ calendars?: 1 | 2 | 3;
41
+ }
42
+ declare const LCTDateRangePicker: FC<IDatePickerProps>;
43
+ export default LCTDateRangePicker;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface IDatePillProps {
3
+ label: string;
4
+ action: () => void;
5
+ }
6
+ declare const DateActionPill: FC<IDatePillProps>;
7
+ export default DateActionPill;
@@ -0,0 +1,6 @@
1
+ export { default as LCTDateRangePicker } from './DateRangePicker';
2
+ export { formatDate as lctFormatDate } from '../datepicker/utils';
3
+ export { getLocalDisplayFormattedDate as lctGetLocalDisplayFormattedDate } from '../datepicker/utils';
4
+ export { getLocalDisplayFormattedDateTime as lctGetLocalDisplayFormattedDateTime } from '../datepicker/utils';
5
+ export { getLocale as lctGetLocale } from '../datepicker/utils';
6
+ export { parseDate as lctParseDate } from '../datepicker/utils';
@@ -2,6 +2,7 @@ export * from './appbar';
2
2
  export * from './button';
3
3
  export * from './currencyinput';
4
4
  export * from './datepicker';
5
+ export * from './daterangepicker';
5
6
  export * from './datagrid';
6
7
  export * from './dialog';
7
8
  export * from './formdialog';