@elliemae/ds-date-time-picker 2.0.0-rc.6 → 2.0.0
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.
- package/package.json +16 -9
- package/types/DSDateTimePicker.d.ts +139 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-time-picker",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Time Picker",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -52,21 +52,28 @@
|
|
|
52
52
|
"build": "node ../../scripts/build/build.js"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@elliemae/ds-
|
|
56
|
-
"@elliemae/ds-
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-
|
|
55
|
+
"@elliemae/ds-classnames": "2.0.0",
|
|
56
|
+
"@elliemae/ds-date-picker": "2.0.0",
|
|
57
|
+
"@elliemae/ds-form": "2.0.0",
|
|
58
|
+
"@elliemae/ds-system": "2.0.0",
|
|
59
|
+
"@elliemae/ds-time-picker": "2.0.0",
|
|
60
|
+
"@elliemae/ds-utilities": "2.0.0",
|
|
60
61
|
"lodash": "~4.17.21",
|
|
61
62
|
"moment": "~2.29.1",
|
|
62
63
|
"prop-types": "~15.7.2",
|
|
63
|
-
"react-
|
|
64
|
-
|
|
64
|
+
"react-desc": "^4.1.3"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
68
|
+
"@testing-library/react": "~12.1.2",
|
|
69
|
+
"@testing-library/user-event": "~13.5.0",
|
|
70
|
+
"styled-components": "~5.3.3"
|
|
65
71
|
},
|
|
66
72
|
"peerDependencies": {
|
|
67
73
|
"lodash": "^4.17.21",
|
|
68
74
|
"react": "~17.0.2",
|
|
69
|
-
"react-dom": "^17.0.2"
|
|
75
|
+
"react-dom": "^17.0.2",
|
|
76
|
+
"styled-components": "^5.3.3"
|
|
70
77
|
},
|
|
71
78
|
"publishConfig": {
|
|
72
79
|
"access": "public",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSDateTimePicker: {
|
|
3
4
|
({ containerProps, className, id, placeholder, date, clearable, onBlur, datePickerProps, timePickerProps, dateInputProps, }: {
|
|
@@ -75,36 +76,163 @@ declare const DSDateTimePicker: {
|
|
|
75
76
|
} | undefined;
|
|
76
77
|
}): JSX.Element;
|
|
77
78
|
propTypes: {
|
|
78
|
-
containerProps:
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
containerProps: {
|
|
80
|
+
defaultValue<T = unknown>(arg: T): {
|
|
81
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
+
};
|
|
83
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
className: {
|
|
86
|
+
defaultValue<T = unknown>(arg: T): {
|
|
87
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
89
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
91
|
+
id: {
|
|
92
|
+
defaultValue<T = unknown>(arg: T): {
|
|
93
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
94
|
+
};
|
|
95
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
96
|
+
};
|
|
81
97
|
/**
|
|
82
98
|
* on blur callback
|
|
83
99
|
*/
|
|
84
|
-
onBlur:
|
|
100
|
+
onBlur: {
|
|
101
|
+
defaultValue<T = unknown>(arg: T): {
|
|
102
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
103
|
+
};
|
|
104
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
85
106
|
/**
|
|
86
107
|
* Initial date, by default current date
|
|
87
108
|
*/
|
|
88
|
-
date:
|
|
109
|
+
date: {
|
|
110
|
+
defaultValue<T = unknown>(arg: T): {
|
|
111
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
112
|
+
};
|
|
113
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
89
115
|
/**
|
|
90
116
|
* Flag to trigger onDateChange on error
|
|
91
117
|
*/
|
|
92
|
-
clearable:
|
|
118
|
+
clearable: {
|
|
119
|
+
defaultValue<T = unknown>(arg: T): {
|
|
120
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
121
|
+
};
|
|
122
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
123
|
+
};
|
|
93
124
|
/**
|
|
94
125
|
* DatePicker properties
|
|
95
126
|
*/
|
|
96
|
-
datePickerProps:
|
|
127
|
+
datePickerProps: {
|
|
128
|
+
defaultValue<T = unknown>(arg: T): {
|
|
129
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
130
|
+
};
|
|
131
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
132
|
+
};
|
|
97
133
|
/**
|
|
98
134
|
* Input placeholder
|
|
99
135
|
*/
|
|
100
|
-
placeholder:
|
|
136
|
+
placeholder: {
|
|
137
|
+
defaultValue<T = unknown>(arg: T): {
|
|
138
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
139
|
+
};
|
|
140
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
141
|
+
};
|
|
101
142
|
/**
|
|
102
143
|
* TimePicker properties
|
|
103
144
|
*/
|
|
104
|
-
timePickerProps:
|
|
105
|
-
|
|
145
|
+
timePickerProps: {
|
|
146
|
+
defaultValue<T = unknown>(arg: T): {
|
|
147
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
148
|
+
};
|
|
149
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
150
|
+
};
|
|
151
|
+
dateInputProps: {
|
|
152
|
+
defaultValue<T = unknown>(arg: T): {
|
|
153
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
154
|
+
};
|
|
155
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
156
|
+
};
|
|
106
157
|
};
|
|
107
158
|
};
|
|
108
|
-
declare const DateTimePickerWithSchema:
|
|
159
|
+
declare const DateTimePickerWithSchema: {
|
|
160
|
+
(props?: {
|
|
161
|
+
containerProps?: {} | undefined;
|
|
162
|
+
className?: string | undefined;
|
|
163
|
+
id?: string | undefined;
|
|
164
|
+
placeholder?: string | undefined;
|
|
165
|
+
date: any;
|
|
166
|
+
clearable?: boolean | undefined;
|
|
167
|
+
onBlur?: (() => null) | undefined;
|
|
168
|
+
datePickerProps?: {
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
numberOfMonths: number;
|
|
171
|
+
readOnly: boolean;
|
|
172
|
+
enableOutsideDays: boolean;
|
|
173
|
+
transitionDuration: number;
|
|
174
|
+
firstDayOfWeek: number;
|
|
175
|
+
keepOpenOnDateSelect: boolean;
|
|
176
|
+
hideKeyboardShortcutsPanel: boolean;
|
|
177
|
+
onPrevMonthClick: () => null;
|
|
178
|
+
onNextMonthClick: () => null;
|
|
179
|
+
onClose: () => null;
|
|
180
|
+
onchange: () => null;
|
|
181
|
+
onDateChange: () => null;
|
|
182
|
+
phrases: {
|
|
183
|
+
calendarLabel: string;
|
|
184
|
+
roleDescription: string;
|
|
185
|
+
closeDatePicker: string;
|
|
186
|
+
clearDate: string;
|
|
187
|
+
jumpToPrevMonth: string;
|
|
188
|
+
jumpToNextMonth: string;
|
|
189
|
+
keyboardShortcuts: string;
|
|
190
|
+
showKeyboardShortcutsPanel: string;
|
|
191
|
+
hideKeyboardShortcutsPanel: string;
|
|
192
|
+
openThisPanel: string;
|
|
193
|
+
enterKey: string;
|
|
194
|
+
leftArrowRightArrow: string;
|
|
195
|
+
upArrowDownArrow: string;
|
|
196
|
+
pageUpPageDown: string;
|
|
197
|
+
homeEnd: string;
|
|
198
|
+
escape: string;
|
|
199
|
+
questionMark: string;
|
|
200
|
+
selectFocusedDate: string;
|
|
201
|
+
moveFocusByOneDay: string;
|
|
202
|
+
moveFocusByOneWeek: string;
|
|
203
|
+
moveFocusByOneMonth: string;
|
|
204
|
+
moveFocustoStartAndEndOfWeek: string;
|
|
205
|
+
returnFocusToInput: string;
|
|
206
|
+
keyboardForwardNavigationInstructions: string;
|
|
207
|
+
keyboardBackwardNavigationInstructions: string;
|
|
208
|
+
chooseAvailableDate: ({ date }: {
|
|
209
|
+
date: any;
|
|
210
|
+
}) => any;
|
|
211
|
+
dateIsUnavailable: ({ date }: {
|
|
212
|
+
date: any;
|
|
213
|
+
}) => string;
|
|
214
|
+
dateIsSelected: ({ date }: {
|
|
215
|
+
date: any;
|
|
216
|
+
}) => string;
|
|
217
|
+
};
|
|
218
|
+
displayFormatDay: string;
|
|
219
|
+
isDayBlocked: () => boolean;
|
|
220
|
+
isOutsideRange: () => boolean;
|
|
221
|
+
isDayHighlighted: () => boolean;
|
|
222
|
+
zIndex: number;
|
|
223
|
+
} | undefined;
|
|
224
|
+
timePickerProps?: {
|
|
225
|
+
format: string;
|
|
226
|
+
onChange: () => null;
|
|
227
|
+
disabledTimes: undefined;
|
|
228
|
+
minutesInterval: number;
|
|
229
|
+
} | undefined;
|
|
230
|
+
dateInputProps?: {
|
|
231
|
+
onDateInputDateChange: () => null;
|
|
232
|
+
} | undefined;
|
|
233
|
+
} | undefined): JSX.Element;
|
|
234
|
+
propTypes: unknown;
|
|
235
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
236
|
+
};
|
|
109
237
|
export { DateTimePickerWithSchema };
|
|
110
238
|
export default DSDateTimePicker;
|