@elliemae/ds-date-time-picker 2.3.0-alpha.8 → 2.3.0-alpha.9

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,165 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
+ /// <reference types="react" />
3
+ declare const DSDateTimePicker: {
4
+ ({ containerProps, className, id, placeholder, date, clearable, onBlur, datePickerProps, timePickerProps, dateInputProps, }: {
5
+ containerProps?: {} | undefined;
6
+ className?: string | undefined;
7
+ id?: string | undefined;
8
+ placeholder?: string | undefined;
9
+ date: any;
10
+ clearable?: boolean | undefined;
11
+ onBlur?: (() => null) | undefined;
12
+ datePickerProps?: {
13
+ disabled: boolean;
14
+ numberOfMonths: number;
15
+ readOnly: boolean;
16
+ enableOutsideDays: boolean;
17
+ transitionDuration: number;
18
+ firstDayOfWeek: number;
19
+ keepOpenOnDateSelect: boolean;
20
+ hideKeyboardShortcutsPanel: boolean;
21
+ onPrevMonthClick: () => null;
22
+ onNextMonthClick: () => null;
23
+ onClose: () => null;
24
+ onchange: () => null;
25
+ onDateChange: () => null;
26
+ phrases: {
27
+ calendarLabel: string;
28
+ roleDescription: string;
29
+ closeDatePicker: string;
30
+ clearDate: string;
31
+ jumpToPrevMonth: string;
32
+ jumpToNextMonth: string;
33
+ keyboardShortcuts: string;
34
+ showKeyboardShortcutsPanel: string;
35
+ hideKeyboardShortcutsPanel: string;
36
+ openThisPanel: string;
37
+ enterKey: string;
38
+ leftArrowRightArrow: string;
39
+ upArrowDownArrow: string;
40
+ pageUpPageDown: string;
41
+ homeEnd: string;
42
+ escape: string;
43
+ questionMark: string;
44
+ selectFocusedDate: string;
45
+ moveFocusByOneDay: string;
46
+ moveFocusByOneWeek: string;
47
+ moveFocusByOneMonth: string;
48
+ moveFocustoStartAndEndOfWeek: string;
49
+ returnFocusToInput: string;
50
+ keyboardForwardNavigationInstructions: string;
51
+ keyboardBackwardNavigationInstructions: string;
52
+ chooseAvailableDate: ({ date }: {
53
+ date: any;
54
+ }) => any;
55
+ dateIsUnavailable: ({ date }: {
56
+ date: any;
57
+ }) => string;
58
+ dateIsSelected: ({ date }: {
59
+ date: any;
60
+ }) => string;
61
+ };
62
+ displayFormatDay: string;
63
+ isDayBlocked: () => boolean;
64
+ isOutsideRange: () => boolean;
65
+ isDayHighlighted: () => boolean;
66
+ zIndex: number;
67
+ } | undefined;
68
+ timePickerProps?: {
69
+ format: string;
70
+ onChange: () => null;
71
+ disabledTimes: undefined;
72
+ minutesInterval: number;
73
+ } | undefined;
74
+ dateInputProps?: {
75
+ onDateInputDateChange: () => null;
76
+ } | undefined;
77
+ }): JSX.Element;
78
+ propTypes: {
79
+ containerProps: {
80
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
81
+ deprecated: import("react-desc").PropTypesDescValidator;
82
+ };
83
+ isRequired: import("react-desc").PropTypesDescValue;
84
+ };
85
+ className: {
86
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
87
+ deprecated: import("react-desc").PropTypesDescValidator;
88
+ };
89
+ isRequired: import("react-desc").PropTypesDescValue;
90
+ };
91
+ id: {
92
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
93
+ deprecated: import("react-desc").PropTypesDescValidator;
94
+ };
95
+ isRequired: import("react-desc").PropTypesDescValue;
96
+ };
97
+ /**
98
+ * on blur callback
99
+ */
100
+ onBlur: {
101
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
102
+ deprecated: import("react-desc").PropTypesDescValidator;
103
+ };
104
+ isRequired: import("react-desc").PropTypesDescValue;
105
+ };
106
+ /**
107
+ * Initial date, by default current date
108
+ */
109
+ date: {
110
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
111
+ deprecated: import("react-desc").PropTypesDescValidator;
112
+ };
113
+ isRequired: import("react-desc").PropTypesDescValue;
114
+ };
115
+ /**
116
+ * Flag to trigger onDateChange on error
117
+ */
118
+ clearable: {
119
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
120
+ deprecated: import("react-desc").PropTypesDescValidator;
121
+ };
122
+ isRequired: import("react-desc").PropTypesDescValue;
123
+ };
124
+ /**
125
+ * DatePicker properties
126
+ */
127
+ datePickerProps: {
128
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
129
+ deprecated: import("react-desc").PropTypesDescValidator;
130
+ };
131
+ isRequired: import("react-desc").PropTypesDescValue;
132
+ };
133
+ /**
134
+ * Input placeholder
135
+ */
136
+ placeholder: {
137
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
138
+ deprecated: import("react-desc").PropTypesDescValidator;
139
+ };
140
+ isRequired: import("react-desc").PropTypesDescValue;
141
+ };
142
+ /**
143
+ * TimePicker properties
144
+ */
145
+ timePickerProps: {
146
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
147
+ deprecated: import("react-desc").PropTypesDescValidator;
148
+ };
149
+ isRequired: import("react-desc").PropTypesDescValue;
150
+ };
151
+ dateInputProps: {
152
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
153
+ deprecated: import("react-desc").PropTypesDescValidator;
154
+ };
155
+ isRequired: import("react-desc").PropTypesDescValue;
156
+ };
157
+ };
158
+ };
159
+ declare const DateTimePickerWithSchema: {
160
+ (props?: unknown): JSX.Element;
161
+ propTypes: unknown;
162
+ toTypescript: () => import("react-desc").TypescriptSchema;
163
+ };
164
+ export { DateTimePickerWithSchema, DSDateTimePicker };
165
+ export default DSDateTimePicker;
@@ -0,0 +1,76 @@
1
+ /// <reference types="react" />
2
+ declare const DSDateTimePickerImpl: ({ onBlur, placeholder, date, clearable, datePickerProps: { disabled, numberOfMonths, readOnly, enableOutsideDays, transitionDuration, firstDayOfWeek, keepOpenOnDateSelect, hideKeyboardShortcutsPanel, onPrevMonthClick, onNextMonthClick, onClose, onChange: onDatePickerChange, onDateChange, onError: onErrorDate, phrases, displayFormatDay, isDayBlocked, isOutsideRange, isDayHighlighted, zIndex, }, timePickerProps: { format, onChange: onChangeTimePicker, disabledTimes, onError: onErrorTime, minutesInterval, }, dateInputProps: { onDateInputDateChange }, }: {
3
+ onBlur?: (() => null) | undefined;
4
+ placeholder: any;
5
+ date: any;
6
+ clearable: any;
7
+ datePickerProps: {
8
+ disabled?: boolean | undefined;
9
+ numberOfMonths?: number | undefined;
10
+ readOnly?: boolean | undefined;
11
+ enableOutsideDays?: boolean | undefined;
12
+ transitionDuration?: number | undefined;
13
+ firstDayOfWeek?: number | undefined;
14
+ keepOpenOnDateSelect?: boolean | undefined;
15
+ hideKeyboardShortcutsPanel?: boolean | undefined;
16
+ onPrevMonthClick?: (() => null) | undefined;
17
+ onNextMonthClick?: (() => null) | undefined;
18
+ onClose?: (() => null) | undefined;
19
+ onChange?: (() => null) | undefined;
20
+ onDateChange?: (() => null) | undefined;
21
+ onError?: (() => null) | undefined;
22
+ phrases?: {
23
+ calendarLabel: string;
24
+ roleDescription: string;
25
+ closeDatePicker: string;
26
+ clearDate: string;
27
+ jumpToPrevMonth: string;
28
+ jumpToNextMonth: string;
29
+ keyboardShortcuts: string;
30
+ showKeyboardShortcutsPanel: string;
31
+ hideKeyboardShortcutsPanel: string;
32
+ openThisPanel: string;
33
+ enterKey: string;
34
+ leftArrowRightArrow: string;
35
+ upArrowDownArrow: string;
36
+ pageUpPageDown: string;
37
+ homeEnd: string;
38
+ escape: string;
39
+ questionMark: string;
40
+ selectFocusedDate: string;
41
+ moveFocusByOneDay: string;
42
+ moveFocusByOneWeek: string;
43
+ moveFocusByOneMonth: string;
44
+ moveFocustoStartAndEndOfWeek: string;
45
+ returnFocusToInput: string;
46
+ keyboardForwardNavigationInstructions: string;
47
+ keyboardBackwardNavigationInstructions: string;
48
+ chooseAvailableDate: ({ date }: {
49
+ date: any;
50
+ }) => any;
51
+ dateIsUnavailable: ({ date }: {
52
+ date: any;
53
+ }) => string;
54
+ dateIsSelected: ({ date }: {
55
+ date: any;
56
+ }) => string;
57
+ } | undefined;
58
+ displayFormatDay?: string | undefined;
59
+ isDayBlocked?: (() => boolean) | undefined;
60
+ isOutsideRange?: (() => boolean) | undefined;
61
+ isDayHighlighted?: (() => boolean) | undefined;
62
+ zIndex?: number | undefined;
63
+ };
64
+ timePickerProps: {
65
+ format?: string | undefined;
66
+ onChange?: (() => null) | undefined;
67
+ disabledTimes?: undefined;
68
+ onError?: (() => null) | undefined;
69
+ minutesInterval?: number | undefined;
70
+ };
71
+ dateInputProps: {
72
+ onDateInputDateChange?: (() => null) | undefined;
73
+ };
74
+ }) => JSX.Element;
75
+ export { DSDateTimePickerImpl };
76
+ export default DSDateTimePickerImpl;
@@ -0,0 +1 @@
1
+ export { default, DSDateTimePicker, DateTimePickerWithSchema } from './DSDateTimePicker';
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ placeholder: string;
3
+ className: string;
4
+ id: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export function themeProviderHOC(Component: any): (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import moment from 'moment';
2
+ export declare const updateDateAndTime: (date: any, time: any) => moment.Moment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-date-time-picker",
3
- "version": "2.3.0-alpha.8",
3
+ "version": "2.3.0-alpha.9",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Date Time Picker",
6
6
  "files": [
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "author": "ICE MT",
51
51
  "dependencies": {
52
- "@elliemae/ds-classnames": "2.3.0-alpha.8",
53
- "@elliemae/ds-date-picker": "2.3.0-alpha.8",
54
- "@elliemae/ds-form": "2.3.0-alpha.8",
55
- "@elliemae/ds-system": "2.3.0-alpha.8",
56
- "@elliemae/ds-time-picker": "2.3.0-alpha.8",
57
- "@elliemae/ds-utilities": "2.3.0-alpha.8",
52
+ "@elliemae/ds-classnames": "2.3.0-alpha.9",
53
+ "@elliemae/ds-date-picker": "2.3.0-alpha.9",
54
+ "@elliemae/ds-form": "2.3.0-alpha.9",
55
+ "@elliemae/ds-system": "2.3.0-alpha.9",
56
+ "@elliemae/ds-time-picker": "2.3.0-alpha.9",
57
+ "@elliemae/ds-utilities": "2.3.0-alpha.9",
58
58
  "lodash": "~4.17.21",
59
59
  "moment": "~2.29.1",
60
60
  "prop-types": "~15.7.2",