react-magma-dom 4.10.0-next.26 → 4.10.0-next.28

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,6 +5,7 @@ interface CalendarMonthProps {
5
5
  isInverse?: boolean;
6
6
  handleCloseButtonClick: (event: React.SyntheticEvent) => void;
7
7
  setDateFocused?: (value: boolean) => void;
8
+ dateTimePickerContent?: React.ReactNode;
8
9
  }
9
10
  export declare const CalendarMonth: React.FunctionComponent<CalendarMonthProps>;
10
11
  export {};
@@ -1,5 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { Omit } from '../../utils';
3
+ export interface DatePickerApi {
4
+ openDatePickerManually(event: any): void;
5
+ closeDatePickerManually(event: any): void;
6
+ }
3
7
  export interface DatePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
4
8
  /**
5
9
  * Style properties for the component container element
@@ -88,5 +92,25 @@ export interface DatePickerProps extends Omit<React.InputHTMLAttributes<HTMLInpu
88
92
  * Event that will fire when the text input gains focus
89
93
  */
90
94
  onInputFocus?: (event: React.FocusEvent) => void;
95
+ /**
96
+ * @internal
97
+ */
98
+ dateTimePickerContent?: any;
99
+ /**
100
+ * @internal
101
+ */
102
+ additionalInputContent?: any;
103
+ /**
104
+ * @internal
105
+ */
106
+ apiRef?: React.MutableRefObject<DatePickerApi | undefined>;
107
+ /**
108
+ * @internal
109
+ */
110
+ setAdditionalInputContent?: (value: string) => void;
111
+ /**
112
+ * @internal
113
+ */
114
+ onClear?: (event: React.MouseEvent) => void;
91
115
  }
92
116
  export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,99 @@
1
+ import React from 'react';
2
+ export interface DateTimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue'> {
3
+ /**
4
+ * Default selected date and time values
5
+ */
6
+ defaultValue?: Date;
7
+ /**
8
+ * Content of the error message. If a value is provided, the component will be styled to show an error state
9
+ */
10
+ errorMessage?: React.ReactNode;
11
+ /**
12
+ * Content of the helper message
13
+ */
14
+ helperMessage?: React.ReactNode;
15
+ /**
16
+ * Style properties for the input element
17
+ */
18
+ inputStyle?: React.CSSProperties;
19
+ /**
20
+ * Clear contents of input by clicking a clear button
21
+ * @default false
22
+ */
23
+ isClearable?: boolean;
24
+ /**
25
+ * If true, the component will have inverse styling to better appear on a dark background
26
+ * @default false
27
+ */
28
+ isInverse?: boolean;
29
+ /**
30
+ * Style properties for the label element
31
+ */
32
+ labelStyle?: React.CSSProperties;
33
+ /**
34
+ * Text for label
35
+ */
36
+ labelText: React.ReactNode;
37
+ /**
38
+ * Text for time picker label
39
+ */
40
+ timePickerLabelText?: React.ReactNode;
41
+ /**
42
+ * Text for button label
43
+ */
44
+ buttonLabelText?: React.ReactNode;
45
+ /**
46
+ * Maximum date allowed to be chosen in the calendar
47
+ */
48
+ maxDate?: Date;
49
+ /**
50
+ * Style properties for the helper or error message
51
+ */
52
+ messageStyle?: React.CSSProperties;
53
+ /**
54
+ * Minimum date allowed to be chosen in the calendar
55
+ */
56
+ minDate?: Date;
57
+ /**
58
+ * Text for input placeholder
59
+ */
60
+ placeholder?: string;
61
+ /**
62
+ * If true, this component must have a value
63
+ * @default false
64
+ */
65
+ required?: boolean;
66
+ /**
67
+ * @internal
68
+ */
69
+ testId?: string;
70
+ /**
71
+ * Value of the date input, used when setting the date value externally
72
+ */
73
+ value?: Date;
74
+ /**
75
+ * Event that will fire when day is changed
76
+ */
77
+ onDateChange?: (day: Date, event: React.SyntheticEvent) => void;
78
+ /**
79
+ * Event that will fire when time is changed
80
+ */
81
+ onTimeChange?: (time: string) => void;
82
+ /**
83
+ * Event that will fire when the text input loses focus
84
+ */
85
+ onInputBlur?: (event: React.FocusEvent) => void;
86
+ /**
87
+ * Event that will fire when the text input is changed
88
+ */
89
+ onInputChange?: (event: React.ChangeEvent) => void;
90
+ /**
91
+ * Event that will fire when the text input gains focus
92
+ */
93
+ onInputFocus?: (event: React.FocusEvent) => void;
94
+ /**
95
+ * Event that will fire when the done button is clicked
96
+ */
97
+ onDone?: (event: React.SyntheticEvent) => void;
98
+ }
99
+ export declare const DateTimePicker: React.ForwardRefExoticComponent<DateTimePickerProps & React.RefAttributes<HTMLInputElement>>;
@@ -112,4 +112,5 @@ export interface PopoverContextInterface {
112
112
  }
113
113
  export declare const PopoverContext: React.Context<PopoverContextInterface>;
114
114
  export declare function hasActiveElementsChecker(ref: any): boolean;
115
+ export declare function isElementInteractive(element: EventTarget | null): boolean;
115
116
  export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;