carbon-react 119.6.1 → 119.6.2
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/esm/__internal__/input/input-presentation.component.d.ts +3 -1
- package/esm/__internal__/input/input-presentation.component.js +3 -0
- package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
- package/esm/__internal__/input/input-presentation.style.js +4 -2
- package/esm/__internal__/popover/popover.component.d.ts +4 -1
- package/esm/components/date/__internal__/date-formats/index.d.ts +3 -6
- package/esm/components/date/__internal__/date-formats/index.js +3 -3
- package/esm/components/date/__internal__/date-picker/date-picker.component.d.ts +38 -0
- package/esm/components/date/__internal__/date-picker/date-picker.component.js +243 -34
- package/esm/components/date/__internal__/date-picker/day-picker.style.d.ts +2 -0
- package/esm/components/date/__internal__/date-picker/index.d.ts +2 -0
- package/esm/components/date/__internal__/navbar/button.style.d.ts +4 -0
- package/esm/components/date/__internal__/navbar/index.d.ts +2 -0
- package/esm/components/date/__internal__/navbar/navbar.component.d.ts +8 -0
- package/esm/components/date/__internal__/navbar/navbar.component.js +7 -9
- package/esm/components/date/__internal__/navbar/navbar.style.d.ts +2 -0
- package/esm/components/date/__internal__/utils.d.ts +14 -0
- package/esm/components/date/__internal__/utils.js +22 -18
- package/esm/components/date/__internal__/weekday/abbr.style.d.ts +2 -0
- package/esm/components/date/__internal__/weekday/index.d.ts +2 -0
- package/esm/components/date/__internal__/weekday/weekday.component.d.ts +8 -0
- package/esm/components/date/__internal__/weekday/weekday.component.js +1 -6
- package/esm/components/date/__internal__/weekday/weekday.style.d.ts +2 -0
- package/esm/components/date/date.component.d.ts +43 -0
- package/esm/components/date/date.component.js +781 -60
- package/esm/components/date/date.style.d.ts +6 -0
- package/esm/components/date/date.style.js +3 -8
- package/esm/components/date/index.d.ts +2 -2
- package/esm/components/date-range/date-range.component.d.ts +88 -0
- package/esm/components/date-range/date-range.component.js +22 -102
- package/esm/components/date-range/date-range.context.d.ts +22 -0
- package/esm/components/date-range/date-range.style.d.ts +6 -0
- package/esm/components/date-range/date-range.style.js +1 -1
- package/esm/components/date-range/index.d.ts +3 -3
- package/esm/components/textbox/textbox.component.js +1 -0
- package/esm/hooks/__internal__/useFloating/useFloating.d.ts +4 -1
- package/lib/__internal__/input/input-presentation.component.d.ts +3 -1
- package/lib/__internal__/input/input-presentation.component.js +3 -0
- package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
- package/lib/__internal__/input/input-presentation.style.js +4 -2
- package/lib/__internal__/popover/popover.component.d.ts +4 -1
- package/lib/components/date/__internal__/date-formats/index.d.ts +3 -6
- package/lib/components/date/__internal__/date-formats/index.js +3 -3
- package/lib/components/date/__internal__/date-picker/date-picker.component.d.ts +38 -0
- package/lib/components/date/__internal__/date-picker/date-picker.component.js +243 -35
- package/lib/components/date/__internal__/date-picker/day-picker.style.d.ts +2 -0
- package/lib/components/date/__internal__/date-picker/index.d.ts +2 -0
- package/lib/components/date/__internal__/navbar/button.style.d.ts +4 -0
- package/lib/components/date/__internal__/navbar/index.d.ts +2 -0
- package/lib/components/date/__internal__/navbar/navbar.component.d.ts +8 -0
- package/lib/components/date/__internal__/navbar/navbar.component.js +8 -9
- package/lib/components/date/__internal__/navbar/navbar.style.d.ts +2 -0
- package/lib/components/date/__internal__/utils.d.ts +14 -0
- package/lib/components/date/__internal__/utils.js +22 -18
- package/lib/components/date/__internal__/weekday/abbr.style.d.ts +2 -0
- package/lib/components/date/__internal__/weekday/index.d.ts +2 -0
- package/lib/components/date/__internal__/weekday/weekday.component.d.ts +8 -0
- package/lib/components/date/__internal__/weekday/weekday.component.js +2 -6
- package/lib/components/date/__internal__/weekday/weekday.style.d.ts +2 -0
- package/lib/components/date/date.component.d.ts +43 -0
- package/lib/components/date/date.component.js +781 -60
- package/lib/components/date/date.style.d.ts +6 -0
- package/lib/components/date/date.style.js +3 -8
- package/lib/components/date/index.d.ts +2 -2
- package/lib/components/date-range/date-range.component.d.ts +88 -0
- package/lib/components/date-range/date-range.component.js +23 -102
- package/lib/components/date-range/date-range.context.d.ts +22 -0
- package/lib/components/date-range/date-range.style.d.ts +6 -0
- package/lib/components/date-range/date-range.style.js +1 -1
- package/lib/components/date-range/index.d.ts +3 -3
- package/lib/components/textbox/textbox.component.js +1 -0
- package/lib/hooks/__internal__/useFloating/useFloating.d.ts +4 -1
- package/package.json +1 -1
- package/esm/components/date/__internal__/date-picker/date-picker.d.ts +0 -27
- package/esm/components/date/__internal__/navbar/navbar.d.ts +0 -8
- package/esm/components/date/__internal__/weekday/weekday.d.ts +0 -13
- package/esm/components/date/date.d.ts +0 -52
- package/esm/components/date-range/date-range-context.d.ts +0 -17
- package/esm/components/date-range/date-range.d.ts +0 -92
- package/lib/components/date/__internal__/date-picker/date-picker.d.ts +0 -27
- package/lib/components/date/__internal__/navbar/navbar.d.ts +0 -8
- package/lib/components/date/__internal__/weekday/weekday.d.ts +0 -13
- package/lib/components/date/date.d.ts +0 -52
- package/lib/components/date-range/date-range-context.d.ts +0 -17
- package/lib/components/date-range/date-range.d.ts +0 -92
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React, { useContext, useEffect, useMemo, useRef, useState, useCallback } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import styledSystemPropTypes from "@styled-system/prop-types";
|
|
5
4
|
import { additionalYears, findMatchedFormatAndValue, formattedValue, formatToISO, isDateValid, parseDate, parseISODate, checkISOFormatAndLength, getSeparator } from "./__internal__/utils";
|
|
6
5
|
import useLocale from "../../hooks/__internal__/useLocale";
|
|
7
6
|
import Events from "../../__internal__/utils/helpers/events";
|
|
8
|
-
import {
|
|
7
|
+
import { filterOutStyledSystemSpacingProps } from "../../style/utils";
|
|
9
8
|
import getFormatData from "./__internal__/date-formats";
|
|
10
9
|
import StyledDateInput from "./date.style";
|
|
11
10
|
import Textbox from "../textbox";
|
|
@@ -14,7 +13,6 @@ import DateRangeContext from "../date-range/date-range.context";
|
|
|
14
13
|
import useClickAwayListener from "../../hooks/__internal__/useClickAwayListener";
|
|
15
14
|
import Logger from "../../__internal__/utils/logger";
|
|
16
15
|
import useFormSpacing from "../../hooks/__internal__/useFormSpacing";
|
|
17
|
-
const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
|
|
18
16
|
let deprecateInputRefWarnTriggered = false;
|
|
19
17
|
const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
20
18
|
let {
|
|
@@ -44,11 +42,12 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
44
42
|
inputWidth,
|
|
45
43
|
labelWidth,
|
|
46
44
|
maxWidth,
|
|
45
|
+
inputName,
|
|
47
46
|
...rest
|
|
48
47
|
} = _ref;
|
|
49
|
-
const wrapperRef = useRef();
|
|
50
|
-
const parentRef = useRef();
|
|
51
|
-
const internalInputRef = useRef();
|
|
48
|
+
const wrapperRef = useRef(null);
|
|
49
|
+
const parentRef = useRef(null);
|
|
50
|
+
const internalInputRef = useRef(null);
|
|
52
51
|
const alreadyFocused = useRef(false);
|
|
53
52
|
const isBlurBlocked = useRef(false);
|
|
54
53
|
const focusedViaPicker = useRef(false);
|
|
@@ -64,7 +63,6 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
64
63
|
inputRefMap,
|
|
65
64
|
setInputRefMap
|
|
66
65
|
} = useContext(DateRangeContext);
|
|
67
|
-
const inputName = dataElement?.split("-")[0];
|
|
68
66
|
const [open, setOpen] = useState(false);
|
|
69
67
|
const [selectedDays, setSelectedDays] = useState(checkISOFormatAndLength(value) ? parseISODate(value) : parseDate(format, value));
|
|
70
68
|
const isInitialValue = useRef(true);
|
|
@@ -81,26 +79,28 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
81
79
|
const [matchedFormat, matchedValue] = findMatchedFormatAndValue(ev.target.value, formats);
|
|
82
80
|
const formattedValueString = ev.type === "blur" ? formattedValue(format, selectedDays) : ev.target.value;
|
|
83
81
|
const rawValue = isDateValid(parseDate(matchedFormat, matchedValue)) ? formatToISO(...additionalYears(matchedFormat, matchedValue)) : computeInvalidRawValue(ev.target.value);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
name
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
id
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
const customEvent = {
|
|
83
|
+
target: {
|
|
84
|
+
...(name && {
|
|
85
|
+
name
|
|
86
|
+
}),
|
|
87
|
+
...(id && {
|
|
88
|
+
id
|
|
89
|
+
}),
|
|
90
|
+
value: {
|
|
91
|
+
formattedValue: formattedValueString,
|
|
92
|
+
rawValue
|
|
93
|
+
}
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
return
|
|
96
|
+
return customEvent;
|
|
97
97
|
};
|
|
98
98
|
const handleClickAway = () => {
|
|
99
99
|
if (open) {
|
|
100
100
|
alreadyFocused.current = true;
|
|
101
|
-
internalInputRef.current
|
|
101
|
+
internalInputRef.current?.focus();
|
|
102
102
|
isBlurBlocked.current = false;
|
|
103
|
-
internalInputRef.current
|
|
103
|
+
internalInputRef.current?.blur();
|
|
104
104
|
setOpen(false);
|
|
105
105
|
alreadyFocused.current = false;
|
|
106
106
|
}
|
|
@@ -143,19 +143,20 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
143
143
|
id,
|
|
144
144
|
name
|
|
145
145
|
} = ev.target;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
name
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
id
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
146
|
+
event = {
|
|
147
|
+
target: {
|
|
148
|
+
...(name && {
|
|
149
|
+
name
|
|
150
|
+
}),
|
|
151
|
+
...(id && {
|
|
152
|
+
id
|
|
153
|
+
}),
|
|
154
|
+
value: {
|
|
155
|
+
formattedValue: ev.target.value,
|
|
156
|
+
rawValue: computeInvalidRawValue(ev.target.value)
|
|
157
|
+
}
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
|
-
event = ev;
|
|
159
160
|
}
|
|
160
161
|
if (isBlurBlocked.current) {
|
|
161
162
|
return;
|
|
@@ -196,27 +197,30 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
196
197
|
}
|
|
197
198
|
};
|
|
198
199
|
const handleMouseDown = ev => {
|
|
199
|
-
handleClickInside(
|
|
200
|
+
handleClickInside();
|
|
200
201
|
if (disabled || readOnly) {
|
|
201
202
|
return;
|
|
202
203
|
}
|
|
203
204
|
if (setInputRefMap) {
|
|
204
205
|
isBlurBlocked.current = true;
|
|
205
206
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
207
|
+
const {
|
|
208
|
+
type
|
|
209
|
+
} = ev.target;
|
|
210
|
+
if (type !== "text") {
|
|
209
211
|
alreadyFocused.current = true;
|
|
210
212
|
setOpen(prev => !prev);
|
|
213
|
+
} else if (!open) {
|
|
214
|
+
setOpen(true);
|
|
211
215
|
}
|
|
212
216
|
};
|
|
213
|
-
const handleIconMouseDown =
|
|
217
|
+
const handleIconMouseDown = ev => {
|
|
214
218
|
isBlurBlocked.current = true;
|
|
215
|
-
handleMouseDown(
|
|
219
|
+
handleMouseDown(ev);
|
|
216
220
|
};
|
|
217
|
-
const handlePickerMouseDown =
|
|
221
|
+
const handlePickerMouseDown = () => {
|
|
218
222
|
isBlurBlocked.current = true;
|
|
219
|
-
handleClickInside(
|
|
223
|
+
handleClickInside();
|
|
220
224
|
};
|
|
221
225
|
const assignInput = useCallback(inputElement => {
|
|
222
226
|
internalInputRef.current = inputElement;
|
|
@@ -228,8 +232,8 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
228
232
|
ref.current = inputElement;
|
|
229
233
|
}
|
|
230
234
|
}
|
|
231
|
-
if (
|
|
232
|
-
setInputRefMap({
|
|
235
|
+
if (inputName && inputRefMap?.[inputName]?.setOpen !== setOpen) {
|
|
236
|
+
setInputRefMap?.({
|
|
233
237
|
[inputName]: {
|
|
234
238
|
isBlurBlocked,
|
|
235
239
|
setOpen
|
|
@@ -304,7 +308,6 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
304
308
|
inputElement: parentRef,
|
|
305
309
|
pickerProps: pickerProps,
|
|
306
310
|
selectedDays: selectedDays,
|
|
307
|
-
setSelectedDays: setSelectedDays,
|
|
308
311
|
onDayClick: handleDayClick,
|
|
309
312
|
minDate: minDate,
|
|
310
313
|
maxDate: maxDate,
|
|
@@ -313,24 +316,742 @@ const DateInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
313
316
|
}));
|
|
314
317
|
});
|
|
315
318
|
DateInput.propTypes = {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
319
|
+
"about": PropTypes.string,
|
|
320
|
+
"accept": PropTypes.string,
|
|
321
|
+
"accessKey": PropTypes.string,
|
|
322
|
+
"adaptiveLabelBreakpoint": PropTypes.number,
|
|
323
|
+
"align": PropTypes.oneOf(["left", "right"]),
|
|
324
|
+
"allowEmptyValue": PropTypes.bool,
|
|
325
|
+
"alt": PropTypes.string,
|
|
326
|
+
"aria-activedescendant": PropTypes.string,
|
|
327
|
+
"aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
328
|
+
"aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
|
|
329
|
+
"aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
330
|
+
"aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
331
|
+
"aria-colcount": PropTypes.number,
|
|
332
|
+
"aria-colindex": PropTypes.number,
|
|
333
|
+
"aria-colspan": PropTypes.number,
|
|
334
|
+
"aria-controls": PropTypes.string,
|
|
335
|
+
"aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
|
|
336
|
+
"aria-describedby": PropTypes.string,
|
|
337
|
+
"aria-details": PropTypes.string,
|
|
338
|
+
"aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
339
|
+
"aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
|
|
340
|
+
"aria-errormessage": PropTypes.string,
|
|
341
|
+
"aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
342
|
+
"aria-flowto": PropTypes.string,
|
|
343
|
+
"aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
344
|
+
"aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
|
|
345
|
+
"aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
346
|
+
"aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
|
|
347
|
+
"aria-keyshortcuts": PropTypes.string,
|
|
348
|
+
"aria-label": PropTypes.string,
|
|
349
|
+
"aria-labelledby": PropTypes.string,
|
|
350
|
+
"aria-level": PropTypes.number,
|
|
351
|
+
"aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
|
|
352
|
+
"aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
353
|
+
"aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
354
|
+
"aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
355
|
+
"aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
|
|
356
|
+
"aria-owns": PropTypes.string,
|
|
357
|
+
"aria-placeholder": PropTypes.string,
|
|
358
|
+
"aria-posinset": PropTypes.number,
|
|
359
|
+
"aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
|
|
360
|
+
"aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
361
|
+
"aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
|
|
362
|
+
"aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
363
|
+
"aria-roledescription": PropTypes.string,
|
|
364
|
+
"aria-rowcount": PropTypes.number,
|
|
365
|
+
"aria-rowindex": PropTypes.number,
|
|
366
|
+
"aria-rowspan": PropTypes.number,
|
|
367
|
+
"aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
368
|
+
"aria-setsize": PropTypes.number,
|
|
369
|
+
"aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
|
|
370
|
+
"aria-valuemax": PropTypes.number,
|
|
371
|
+
"aria-valuemin": PropTypes.number,
|
|
372
|
+
"aria-valuenow": PropTypes.number,
|
|
373
|
+
"aria-valuetext": PropTypes.string,
|
|
374
|
+
"ariaDescribedBy": PropTypes.string,
|
|
375
|
+
"as": PropTypes.elementType,
|
|
376
|
+
"autoCapitalize": PropTypes.string,
|
|
377
|
+
"autoComplete": PropTypes.string,
|
|
378
|
+
"autoCorrect": PropTypes.string,
|
|
379
|
+
"autoFocus": PropTypes.bool,
|
|
380
|
+
"autoSave": PropTypes.string,
|
|
381
|
+
"capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
|
|
382
|
+
"checked": PropTypes.bool,
|
|
383
|
+
"className": PropTypes.string,
|
|
384
|
+
"color": PropTypes.string,
|
|
385
|
+
"content": PropTypes.string,
|
|
386
|
+
"contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
|
|
387
|
+
"contextMenu": PropTypes.string,
|
|
388
|
+
"crossOrigin": PropTypes.oneOf(["", "anonymous", "use-credentials"]),
|
|
389
|
+
"dangerouslySetInnerHTML": PropTypes.shape({
|
|
390
|
+
"__html": PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired
|
|
391
|
+
}),
|
|
392
|
+
"data-component": PropTypes.string,
|
|
393
|
+
"data-element": PropTypes.string,
|
|
394
|
+
"data-role": PropTypes.string,
|
|
395
|
+
"datatype": PropTypes.string,
|
|
396
|
+
"defaultChecked": PropTypes.bool,
|
|
397
|
+
"defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
|
|
398
|
+
"dir": PropTypes.string,
|
|
399
|
+
"disabled": PropTypes.bool,
|
|
400
|
+
"disablePortal": PropTypes.bool,
|
|
401
|
+
"draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
402
|
+
"enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
403
|
+
"error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
404
|
+
"fieldHelp": PropTypes.node,
|
|
405
|
+
"form": PropTypes.string,
|
|
406
|
+
"formAction": PropTypes.string,
|
|
407
|
+
"formEncType": PropTypes.string,
|
|
408
|
+
"formMethod": PropTypes.string,
|
|
409
|
+
"formNoValidate": PropTypes.bool,
|
|
410
|
+
"formTarget": PropTypes.string,
|
|
411
|
+
"height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
412
|
+
"helpAriaLabel": PropTypes.string,
|
|
413
|
+
"hidden": PropTypes.bool,
|
|
414
|
+
"id": PropTypes.string,
|
|
415
|
+
"info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
416
|
+
"inlist": PropTypes.any,
|
|
417
|
+
"inputHint": PropTypes.string,
|
|
418
|
+
"inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
419
|
+
"inputName": PropTypes.oneOf(["end", "start"]),
|
|
420
|
+
"inputRef": PropTypes.func,
|
|
421
|
+
"inputWidth": PropTypes.number,
|
|
422
|
+
"is": PropTypes.string,
|
|
423
|
+
"isOptional": PropTypes.bool,
|
|
424
|
+
"itemID": PropTypes.string,
|
|
425
|
+
"itemProp": PropTypes.string,
|
|
426
|
+
"itemRef": PropTypes.string,
|
|
427
|
+
"itemScope": PropTypes.bool,
|
|
428
|
+
"itemType": PropTypes.string,
|
|
429
|
+
"label": PropTypes.string,
|
|
430
|
+
"labelAlign": PropTypes.oneOf(["left", "right"]),
|
|
431
|
+
"labelHelp": PropTypes.node,
|
|
432
|
+
"labelInline": PropTypes.bool,
|
|
433
|
+
"labelSpacing": PropTypes.oneOf([1, 2]),
|
|
434
|
+
"labelWidth": PropTypes.number,
|
|
435
|
+
"lang": PropTypes.string,
|
|
436
|
+
"list": PropTypes.string,
|
|
437
|
+
"m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
438
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
439
|
+
"description": PropTypes.string,
|
|
440
|
+
"toString": PropTypes.func.isRequired,
|
|
441
|
+
"valueOf": PropTypes.func.isRequired
|
|
442
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
443
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
444
|
+
"description": PropTypes.string,
|
|
445
|
+
"toString": PropTypes.func.isRequired,
|
|
446
|
+
"valueOf": PropTypes.func.isRequired
|
|
447
|
+
}), PropTypes.string]),
|
|
448
|
+
"margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
449
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
450
|
+
"description": PropTypes.string,
|
|
451
|
+
"toString": PropTypes.func.isRequired,
|
|
452
|
+
"valueOf": PropTypes.func.isRequired
|
|
453
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
454
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
455
|
+
"description": PropTypes.string,
|
|
456
|
+
"toString": PropTypes.func.isRequired,
|
|
457
|
+
"valueOf": PropTypes.func.isRequired
|
|
458
|
+
}), PropTypes.string]),
|
|
459
|
+
"marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
460
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
461
|
+
"description": PropTypes.string,
|
|
462
|
+
"toString": PropTypes.func.isRequired,
|
|
463
|
+
"valueOf": PropTypes.func.isRequired
|
|
464
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
465
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
466
|
+
"description": PropTypes.string,
|
|
467
|
+
"toString": PropTypes.func.isRequired,
|
|
468
|
+
"valueOf": PropTypes.func.isRequired
|
|
469
|
+
}), PropTypes.string]),
|
|
470
|
+
"marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
471
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
472
|
+
"description": PropTypes.string,
|
|
473
|
+
"toString": PropTypes.func.isRequired,
|
|
474
|
+
"valueOf": PropTypes.func.isRequired
|
|
475
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
476
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
477
|
+
"description": PropTypes.string,
|
|
478
|
+
"toString": PropTypes.func.isRequired,
|
|
479
|
+
"valueOf": PropTypes.func.isRequired
|
|
480
|
+
}), PropTypes.string]),
|
|
481
|
+
"marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
482
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
483
|
+
"description": PropTypes.string,
|
|
484
|
+
"toString": PropTypes.func.isRequired,
|
|
485
|
+
"valueOf": PropTypes.func.isRequired
|
|
486
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
487
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
488
|
+
"description": PropTypes.string,
|
|
489
|
+
"toString": PropTypes.func.isRequired,
|
|
490
|
+
"valueOf": PropTypes.func.isRequired
|
|
491
|
+
}), PropTypes.string]),
|
|
492
|
+
"marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
493
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
494
|
+
"description": PropTypes.string,
|
|
495
|
+
"toString": PropTypes.func.isRequired,
|
|
496
|
+
"valueOf": PropTypes.func.isRequired
|
|
497
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
498
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
499
|
+
"description": PropTypes.string,
|
|
500
|
+
"toString": PropTypes.func.isRequired,
|
|
501
|
+
"valueOf": PropTypes.func.isRequired
|
|
502
|
+
}), PropTypes.string]),
|
|
503
|
+
"marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
504
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
505
|
+
"description": PropTypes.string,
|
|
506
|
+
"toString": PropTypes.func.isRequired,
|
|
507
|
+
"valueOf": PropTypes.func.isRequired
|
|
508
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
509
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
510
|
+
"description": PropTypes.string,
|
|
511
|
+
"toString": PropTypes.func.isRequired,
|
|
512
|
+
"valueOf": PropTypes.func.isRequired
|
|
513
|
+
}), PropTypes.string]),
|
|
514
|
+
"marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
515
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
516
|
+
"description": PropTypes.string,
|
|
517
|
+
"toString": PropTypes.func.isRequired,
|
|
518
|
+
"valueOf": PropTypes.func.isRequired
|
|
519
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
520
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
521
|
+
"description": PropTypes.string,
|
|
522
|
+
"toString": PropTypes.func.isRequired,
|
|
523
|
+
"valueOf": PropTypes.func.isRequired
|
|
524
|
+
}), PropTypes.string]),
|
|
525
|
+
"max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
526
|
+
"maxDate": PropTypes.string,
|
|
527
|
+
"maxLength": PropTypes.number,
|
|
528
|
+
"maxWidth": PropTypes.string,
|
|
529
|
+
"mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
530
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
531
|
+
"description": PropTypes.string,
|
|
532
|
+
"toString": PropTypes.func.isRequired,
|
|
533
|
+
"valueOf": PropTypes.func.isRequired
|
|
534
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
535
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
536
|
+
"description": PropTypes.string,
|
|
537
|
+
"toString": PropTypes.func.isRequired,
|
|
538
|
+
"valueOf": PropTypes.func.isRequired
|
|
539
|
+
}), PropTypes.string]),
|
|
540
|
+
"min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
541
|
+
"minDate": PropTypes.string,
|
|
542
|
+
"minLength": PropTypes.number,
|
|
543
|
+
"ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
544
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
545
|
+
"description": PropTypes.string,
|
|
546
|
+
"toString": PropTypes.func.isRequired,
|
|
547
|
+
"valueOf": PropTypes.func.isRequired
|
|
548
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
549
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
550
|
+
"description": PropTypes.string,
|
|
551
|
+
"toString": PropTypes.func.isRequired,
|
|
552
|
+
"valueOf": PropTypes.func.isRequired
|
|
553
|
+
}), PropTypes.string]),
|
|
554
|
+
"mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
555
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
556
|
+
"description": PropTypes.string,
|
|
557
|
+
"toString": PropTypes.func.isRequired,
|
|
558
|
+
"valueOf": PropTypes.func.isRequired
|
|
559
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
560
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
561
|
+
"description": PropTypes.string,
|
|
562
|
+
"toString": PropTypes.func.isRequired,
|
|
563
|
+
"valueOf": PropTypes.func.isRequired
|
|
564
|
+
}), PropTypes.string]),
|
|
565
|
+
"mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
566
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
567
|
+
"description": PropTypes.string,
|
|
568
|
+
"toString": PropTypes.func.isRequired,
|
|
569
|
+
"valueOf": PropTypes.func.isRequired
|
|
570
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
571
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
572
|
+
"description": PropTypes.string,
|
|
573
|
+
"toString": PropTypes.func.isRequired,
|
|
574
|
+
"valueOf": PropTypes.func.isRequired
|
|
575
|
+
}), PropTypes.string]),
|
|
576
|
+
"multiple": PropTypes.bool,
|
|
577
|
+
"mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
578
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
579
|
+
"description": PropTypes.string,
|
|
580
|
+
"toString": PropTypes.func.isRequired,
|
|
581
|
+
"valueOf": PropTypes.func.isRequired
|
|
582
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
583
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
584
|
+
"description": PropTypes.string,
|
|
585
|
+
"toString": PropTypes.func.isRequired,
|
|
586
|
+
"valueOf": PropTypes.func.isRequired
|
|
587
|
+
}), PropTypes.string]),
|
|
588
|
+
"my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
|
|
589
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
590
|
+
"description": PropTypes.string,
|
|
591
|
+
"toString": PropTypes.func.isRequired,
|
|
592
|
+
"valueOf": PropTypes.func.isRequired
|
|
593
|
+
}), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
594
|
+
"__@toStringTag": PropTypes.string.isRequired,
|
|
595
|
+
"description": PropTypes.string,
|
|
596
|
+
"toString": PropTypes.func.isRequired,
|
|
597
|
+
"valueOf": PropTypes.func.isRequired
|
|
598
|
+
}), PropTypes.string]),
|
|
599
|
+
"name": PropTypes.string,
|
|
600
|
+
"nonce": PropTypes.string,
|
|
601
|
+
"onAbort": PropTypes.func,
|
|
602
|
+
"onAbortCapture": PropTypes.func,
|
|
603
|
+
"onAnimationEnd": PropTypes.func,
|
|
604
|
+
"onAnimationEndCapture": PropTypes.func,
|
|
605
|
+
"onAnimationIteration": PropTypes.func,
|
|
606
|
+
"onAnimationIterationCapture": PropTypes.func,
|
|
607
|
+
"onAnimationStart": PropTypes.func,
|
|
608
|
+
"onAnimationStartCapture": PropTypes.func,
|
|
609
|
+
"onAuxClick": PropTypes.func,
|
|
610
|
+
"onAuxClickCapture": PropTypes.func,
|
|
611
|
+
"onBeforeInput": PropTypes.func,
|
|
612
|
+
"onBeforeInputCapture": PropTypes.func,
|
|
613
|
+
"onBlur": PropTypes.func,
|
|
614
|
+
"onBlurCapture": PropTypes.func,
|
|
615
|
+
"onCanPlay": PropTypes.func,
|
|
616
|
+
"onCanPlayCapture": PropTypes.func,
|
|
617
|
+
"onCanPlayThrough": PropTypes.func,
|
|
618
|
+
"onCanPlayThroughCapture": PropTypes.func,
|
|
619
|
+
"onChange": PropTypes.func.isRequired,
|
|
620
|
+
"onChangeCapture": PropTypes.func,
|
|
621
|
+
"onClick": PropTypes.func,
|
|
622
|
+
"onClickCapture": PropTypes.func,
|
|
623
|
+
"onCompositionEnd": PropTypes.func,
|
|
624
|
+
"onCompositionEndCapture": PropTypes.func,
|
|
625
|
+
"onCompositionStart": PropTypes.func,
|
|
626
|
+
"onCompositionStartCapture": PropTypes.func,
|
|
627
|
+
"onCompositionUpdate": PropTypes.func,
|
|
628
|
+
"onCompositionUpdateCapture": PropTypes.func,
|
|
629
|
+
"onContextMenu": PropTypes.func,
|
|
630
|
+
"onContextMenuCapture": PropTypes.func,
|
|
631
|
+
"onCopy": PropTypes.func,
|
|
632
|
+
"onCopyCapture": PropTypes.func,
|
|
633
|
+
"onCut": PropTypes.func,
|
|
634
|
+
"onCutCapture": PropTypes.func,
|
|
635
|
+
"onDoubleClick": PropTypes.func,
|
|
636
|
+
"onDoubleClickCapture": PropTypes.func,
|
|
637
|
+
"onDrag": PropTypes.func,
|
|
638
|
+
"onDragCapture": PropTypes.func,
|
|
639
|
+
"onDragEnd": PropTypes.func,
|
|
640
|
+
"onDragEndCapture": PropTypes.func,
|
|
641
|
+
"onDragEnter": PropTypes.func,
|
|
642
|
+
"onDragEnterCapture": PropTypes.func,
|
|
643
|
+
"onDragExit": PropTypes.func,
|
|
644
|
+
"onDragExitCapture": PropTypes.func,
|
|
645
|
+
"onDragLeave": PropTypes.func,
|
|
646
|
+
"onDragLeaveCapture": PropTypes.func,
|
|
647
|
+
"onDragOver": PropTypes.func,
|
|
648
|
+
"onDragOverCapture": PropTypes.func,
|
|
649
|
+
"onDragStart": PropTypes.func,
|
|
650
|
+
"onDragStartCapture": PropTypes.func,
|
|
651
|
+
"onDrop": PropTypes.func,
|
|
652
|
+
"onDropCapture": PropTypes.func,
|
|
653
|
+
"onDurationChange": PropTypes.func,
|
|
654
|
+
"onDurationChangeCapture": PropTypes.func,
|
|
655
|
+
"onEmptied": PropTypes.func,
|
|
656
|
+
"onEmptiedCapture": PropTypes.func,
|
|
657
|
+
"onEncrypted": PropTypes.func,
|
|
658
|
+
"onEncryptedCapture": PropTypes.func,
|
|
659
|
+
"onEnded": PropTypes.func,
|
|
660
|
+
"onEndedCapture": PropTypes.func,
|
|
661
|
+
"onError": PropTypes.func,
|
|
662
|
+
"onErrorCapture": PropTypes.func,
|
|
663
|
+
"onFocus": PropTypes.func,
|
|
664
|
+
"onFocusCapture": PropTypes.func,
|
|
665
|
+
"onGotPointerCapture": PropTypes.func,
|
|
666
|
+
"onGotPointerCaptureCapture": PropTypes.func,
|
|
667
|
+
"onInput": PropTypes.func,
|
|
668
|
+
"onInputCapture": PropTypes.func,
|
|
669
|
+
"onInvalid": PropTypes.func,
|
|
670
|
+
"onInvalidCapture": PropTypes.func,
|
|
671
|
+
"onKeyDown": PropTypes.func,
|
|
672
|
+
"onKeyDownCapture": PropTypes.func,
|
|
673
|
+
"onKeyPress": PropTypes.func,
|
|
674
|
+
"onKeyPressCapture": PropTypes.func,
|
|
675
|
+
"onKeyUp": PropTypes.func,
|
|
676
|
+
"onKeyUpCapture": PropTypes.func,
|
|
677
|
+
"onLoad": PropTypes.func,
|
|
678
|
+
"onLoadCapture": PropTypes.func,
|
|
679
|
+
"onLoadedData": PropTypes.func,
|
|
680
|
+
"onLoadedDataCapture": PropTypes.func,
|
|
681
|
+
"onLoadedMetadata": PropTypes.func,
|
|
682
|
+
"onLoadedMetadataCapture": PropTypes.func,
|
|
683
|
+
"onLoadStart": PropTypes.func,
|
|
684
|
+
"onLoadStartCapture": PropTypes.func,
|
|
685
|
+
"onLostPointerCapture": PropTypes.func,
|
|
686
|
+
"onLostPointerCaptureCapture": PropTypes.func,
|
|
687
|
+
"onMouseDownCapture": PropTypes.func,
|
|
688
|
+
"onMouseEnter": PropTypes.func,
|
|
689
|
+
"onMouseLeave": PropTypes.func,
|
|
690
|
+
"onMouseMove": PropTypes.func,
|
|
691
|
+
"onMouseMoveCapture": PropTypes.func,
|
|
692
|
+
"onMouseOut": PropTypes.func,
|
|
693
|
+
"onMouseOutCapture": PropTypes.func,
|
|
694
|
+
"onMouseOver": PropTypes.func,
|
|
695
|
+
"onMouseOverCapture": PropTypes.func,
|
|
696
|
+
"onMouseUp": PropTypes.func,
|
|
697
|
+
"onMouseUpCapture": PropTypes.func,
|
|
698
|
+
"onPaste": PropTypes.func,
|
|
699
|
+
"onPasteCapture": PropTypes.func,
|
|
700
|
+
"onPause": PropTypes.func,
|
|
701
|
+
"onPauseCapture": PropTypes.func,
|
|
702
|
+
"onPlay": PropTypes.func,
|
|
703
|
+
"onPlayCapture": PropTypes.func,
|
|
704
|
+
"onPlaying": PropTypes.func,
|
|
705
|
+
"onPlayingCapture": PropTypes.func,
|
|
706
|
+
"onPointerCancel": PropTypes.func,
|
|
707
|
+
"onPointerCancelCapture": PropTypes.func,
|
|
708
|
+
"onPointerDown": PropTypes.func,
|
|
709
|
+
"onPointerDownCapture": PropTypes.func,
|
|
710
|
+
"onPointerEnter": PropTypes.func,
|
|
711
|
+
"onPointerEnterCapture": PropTypes.func,
|
|
712
|
+
"onPointerLeave": PropTypes.func,
|
|
713
|
+
"onPointerLeaveCapture": PropTypes.func,
|
|
714
|
+
"onPointerMove": PropTypes.func,
|
|
715
|
+
"onPointerMoveCapture": PropTypes.func,
|
|
716
|
+
"onPointerOut": PropTypes.func,
|
|
717
|
+
"onPointerOutCapture": PropTypes.func,
|
|
718
|
+
"onPointerOver": PropTypes.func,
|
|
719
|
+
"onPointerOverCapture": PropTypes.func,
|
|
720
|
+
"onPointerUp": PropTypes.func,
|
|
721
|
+
"onPointerUpCapture": PropTypes.func,
|
|
722
|
+
"onProgress": PropTypes.func,
|
|
723
|
+
"onProgressCapture": PropTypes.func,
|
|
724
|
+
"onRateChange": PropTypes.func,
|
|
725
|
+
"onRateChangeCapture": PropTypes.func,
|
|
726
|
+
"onReset": PropTypes.func,
|
|
727
|
+
"onResetCapture": PropTypes.func,
|
|
728
|
+
"onScroll": PropTypes.func,
|
|
729
|
+
"onScrollCapture": PropTypes.func,
|
|
730
|
+
"onSeeked": PropTypes.func,
|
|
731
|
+
"onSeekedCapture": PropTypes.func,
|
|
732
|
+
"onSeeking": PropTypes.func,
|
|
733
|
+
"onSeekingCapture": PropTypes.func,
|
|
734
|
+
"onSelect": PropTypes.func,
|
|
735
|
+
"onSelectCapture": PropTypes.func,
|
|
736
|
+
"onStalled": PropTypes.func,
|
|
737
|
+
"onStalledCapture": PropTypes.func,
|
|
738
|
+
"onSubmit": PropTypes.func,
|
|
739
|
+
"onSubmitCapture": PropTypes.func,
|
|
740
|
+
"onSuspend": PropTypes.func,
|
|
741
|
+
"onSuspendCapture": PropTypes.func,
|
|
742
|
+
"onTimeUpdate": PropTypes.func,
|
|
743
|
+
"onTimeUpdateCapture": PropTypes.func,
|
|
744
|
+
"onTouchCancel": PropTypes.func,
|
|
745
|
+
"onTouchCancelCapture": PropTypes.func,
|
|
746
|
+
"onTouchEnd": PropTypes.func,
|
|
747
|
+
"onTouchEndCapture": PropTypes.func,
|
|
748
|
+
"onTouchMove": PropTypes.func,
|
|
749
|
+
"onTouchMoveCapture": PropTypes.func,
|
|
750
|
+
"onTouchStart": PropTypes.func,
|
|
751
|
+
"onTouchStartCapture": PropTypes.func,
|
|
752
|
+
"onTransitionEnd": PropTypes.func,
|
|
753
|
+
"onTransitionEndCapture": PropTypes.func,
|
|
754
|
+
"onVolumeChange": PropTypes.func,
|
|
755
|
+
"onVolumeChangeCapture": PropTypes.func,
|
|
756
|
+
"onWaiting": PropTypes.func,
|
|
757
|
+
"onWaitingCapture": PropTypes.func,
|
|
758
|
+
"onWheel": PropTypes.func,
|
|
759
|
+
"onWheelCapture": PropTypes.func,
|
|
760
|
+
"pattern": PropTypes.string,
|
|
761
|
+
"pickerProps": PropTypes.shape({
|
|
762
|
+
"canChangeMonth": PropTypes.bool,
|
|
763
|
+
"captionElement": PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.shape({
|
|
764
|
+
"childContextTypes": PropTypes.object,
|
|
765
|
+
"contextType": PropTypes.shape({
|
|
766
|
+
"Consumer": PropTypes.func.isRequired,
|
|
767
|
+
"displayName": PropTypes.string,
|
|
768
|
+
"Provider": PropTypes.func.isRequired
|
|
769
|
+
}),
|
|
770
|
+
"contextTypes": PropTypes.object,
|
|
771
|
+
"defaultProps": PropTypes.shape({
|
|
772
|
+
"classNames": PropTypes.object,
|
|
773
|
+
"date": PropTypes.instanceOf(Date),
|
|
774
|
+
"locale": PropTypes.string,
|
|
775
|
+
"localeUtils": PropTypes.object,
|
|
776
|
+
"months": PropTypes.arrayOf(PropTypes.string),
|
|
777
|
+
"onClick": PropTypes.func
|
|
778
|
+
}),
|
|
779
|
+
"displayName": PropTypes.string,
|
|
780
|
+
"getDerivedStateFromError": PropTypes.func,
|
|
781
|
+
"getDerivedStateFromProps": PropTypes.func,
|
|
782
|
+
"propTypes": PropTypes.shape({
|
|
783
|
+
"classNames": PropTypes.func,
|
|
784
|
+
"date": PropTypes.func,
|
|
785
|
+
"locale": PropTypes.func,
|
|
786
|
+
"localeUtils": PropTypes.func,
|
|
787
|
+
"months": PropTypes.func,
|
|
788
|
+
"onClick": PropTypes.func
|
|
789
|
+
})
|
|
790
|
+
})]),
|
|
791
|
+
"className": PropTypes.string,
|
|
792
|
+
"classNames": PropTypes.shape({
|
|
793
|
+
"body": PropTypes.string.isRequired,
|
|
794
|
+
"caption": PropTypes.string.isRequired,
|
|
795
|
+
"container": PropTypes.string.isRequired,
|
|
796
|
+
"day": PropTypes.string.isRequired,
|
|
797
|
+
"disabled": PropTypes.string.isRequired,
|
|
798
|
+
"footer": PropTypes.string.isRequired,
|
|
799
|
+
"interactionDisabled": PropTypes.string.isRequired,
|
|
800
|
+
"month": PropTypes.string.isRequired,
|
|
801
|
+
"months": PropTypes.string.isRequired,
|
|
802
|
+
"navBar": PropTypes.string.isRequired,
|
|
803
|
+
"navButtonInteractionDisabled": PropTypes.string.isRequired,
|
|
804
|
+
"navButtonNext": PropTypes.string.isRequired,
|
|
805
|
+
"navButtonPrev": PropTypes.string.isRequired,
|
|
806
|
+
"outside": PropTypes.string.isRequired,
|
|
807
|
+
"selected": PropTypes.string.isRequired,
|
|
808
|
+
"today": PropTypes.string.isRequired,
|
|
809
|
+
"todayButton": PropTypes.string.isRequired,
|
|
810
|
+
"week": PropTypes.string.isRequired,
|
|
811
|
+
"weekday": PropTypes.string.isRequired,
|
|
812
|
+
"weekdays": PropTypes.string.isRequired,
|
|
813
|
+
"weekdaysRow": PropTypes.string.isRequired,
|
|
814
|
+
"weekNumber": PropTypes.string.isRequired,
|
|
815
|
+
"wrapper": PropTypes.string.isRequired
|
|
816
|
+
}),
|
|
817
|
+
"containerProps": PropTypes.object,
|
|
818
|
+
"dir": PropTypes.string,
|
|
819
|
+
"disabledDays": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
820
|
+
"from": PropTypes.instanceOf(Date),
|
|
821
|
+
"to": PropTypes.instanceOf(Date)
|
|
822
|
+
})])), PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
823
|
+
"from": PropTypes.instanceOf(Date),
|
|
824
|
+
"to": PropTypes.instanceOf(Date)
|
|
825
|
+
})]),
|
|
826
|
+
"enableOutsideDaysClick": PropTypes.bool,
|
|
827
|
+
"firstDayOfWeek": PropTypes.number,
|
|
828
|
+
"fixedWeeks": PropTypes.bool,
|
|
829
|
+
"fromMonth": PropTypes.instanceOf(Date),
|
|
830
|
+
"initialMonth": PropTypes.instanceOf(Date),
|
|
831
|
+
"labels": PropTypes.shape({
|
|
832
|
+
"nextMonth": PropTypes.string.isRequired,
|
|
833
|
+
"previousMonth": PropTypes.string.isRequired
|
|
834
|
+
}),
|
|
835
|
+
"locale": PropTypes.string,
|
|
836
|
+
"localeUtils": PropTypes.shape({
|
|
837
|
+
"formatDate": PropTypes.func.isRequired,
|
|
838
|
+
"formatDay": PropTypes.func.isRequired,
|
|
839
|
+
"formatMonthTitle": PropTypes.func.isRequired,
|
|
840
|
+
"formatWeekdayLong": PropTypes.func.isRequired,
|
|
841
|
+
"formatWeekdayShort": PropTypes.func.isRequired,
|
|
842
|
+
"getFirstDayOfWeek": PropTypes.func.isRequired,
|
|
843
|
+
"getMonths": PropTypes.func.isRequired,
|
|
844
|
+
"parseDate": PropTypes.func.isRequired
|
|
845
|
+
}),
|
|
846
|
+
"modifiers": PropTypes.shape({
|
|
847
|
+
"outside": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
848
|
+
"from": PropTypes.instanceOf(Date),
|
|
849
|
+
"to": PropTypes.instanceOf(Date)
|
|
850
|
+
})])), PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
851
|
+
"from": PropTypes.instanceOf(Date),
|
|
852
|
+
"to": PropTypes.instanceOf(Date)
|
|
853
|
+
})]),
|
|
854
|
+
"today": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
855
|
+
"from": PropTypes.instanceOf(Date),
|
|
856
|
+
"to": PropTypes.instanceOf(Date)
|
|
857
|
+
})])), PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
858
|
+
"from": PropTypes.instanceOf(Date),
|
|
859
|
+
"to": PropTypes.instanceOf(Date)
|
|
860
|
+
})])
|
|
861
|
+
}),
|
|
862
|
+
"modifiersStyles": PropTypes.object,
|
|
863
|
+
"month": PropTypes.instanceOf(Date),
|
|
864
|
+
"months": PropTypes.arrayOf(PropTypes.string),
|
|
865
|
+
"navbarElement": PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.shape({
|
|
866
|
+
"childContextTypes": PropTypes.object,
|
|
867
|
+
"contextType": PropTypes.shape({
|
|
868
|
+
"Consumer": PropTypes.func.isRequired,
|
|
869
|
+
"displayName": PropTypes.string,
|
|
870
|
+
"Provider": PropTypes.func.isRequired
|
|
871
|
+
}),
|
|
872
|
+
"contextTypes": PropTypes.object,
|
|
873
|
+
"defaultProps": PropTypes.shape({
|
|
874
|
+
"className": PropTypes.string,
|
|
875
|
+
"classNames": PropTypes.object,
|
|
876
|
+
"dir": PropTypes.string,
|
|
877
|
+
"labels": PropTypes.object,
|
|
878
|
+
"locale": PropTypes.string,
|
|
879
|
+
"localeUtils": PropTypes.object,
|
|
880
|
+
"month": PropTypes.instanceOf(Date),
|
|
881
|
+
"nextMonth": PropTypes.instanceOf(Date),
|
|
882
|
+
"onNextClick": PropTypes.func,
|
|
883
|
+
"onPreviousClick": PropTypes.func,
|
|
884
|
+
"previousMonth": PropTypes.instanceOf(Date),
|
|
885
|
+
"showNextButton": PropTypes.bool,
|
|
886
|
+
"showPreviousButton": PropTypes.bool
|
|
887
|
+
}),
|
|
888
|
+
"displayName": PropTypes.string,
|
|
889
|
+
"getDerivedStateFromError": PropTypes.func,
|
|
890
|
+
"getDerivedStateFromProps": PropTypes.func,
|
|
891
|
+
"propTypes": PropTypes.shape({
|
|
892
|
+
"className": PropTypes.func,
|
|
893
|
+
"classNames": PropTypes.func,
|
|
894
|
+
"dir": PropTypes.func,
|
|
895
|
+
"labels": PropTypes.func,
|
|
896
|
+
"locale": PropTypes.func,
|
|
897
|
+
"localeUtils": PropTypes.func,
|
|
898
|
+
"month": PropTypes.func,
|
|
899
|
+
"nextMonth": PropTypes.func,
|
|
900
|
+
"onNextClick": PropTypes.func,
|
|
901
|
+
"onPreviousClick": PropTypes.func,
|
|
902
|
+
"previousMonth": PropTypes.func,
|
|
903
|
+
"showNextButton": PropTypes.func,
|
|
904
|
+
"showPreviousButton": PropTypes.func
|
|
905
|
+
})
|
|
906
|
+
})]),
|
|
907
|
+
"numberOfMonths": PropTypes.number,
|
|
908
|
+
"onBlur": PropTypes.func,
|
|
909
|
+
"onCaptionClick": PropTypes.func,
|
|
910
|
+
"onDayClick": PropTypes.func,
|
|
911
|
+
"onDayKeyDown": PropTypes.func,
|
|
912
|
+
"onDayMouseDown": PropTypes.func,
|
|
913
|
+
"onDayMouseEnter": PropTypes.func,
|
|
914
|
+
"onDayMouseLeave": PropTypes.func,
|
|
915
|
+
"onDayMouseUp": PropTypes.func,
|
|
916
|
+
"onDayTouchEnd": PropTypes.func,
|
|
917
|
+
"onDayTouchStart": PropTypes.func,
|
|
918
|
+
"onFocus": PropTypes.func,
|
|
919
|
+
"onKeyDown": PropTypes.func,
|
|
920
|
+
"onMonthChange": PropTypes.func,
|
|
921
|
+
"onTodayButtonClick": PropTypes.func,
|
|
922
|
+
"onWeekClick": PropTypes.func,
|
|
923
|
+
"pagedNavigation": PropTypes.bool,
|
|
924
|
+
"renderDay": PropTypes.func,
|
|
925
|
+
"renderWeek": PropTypes.func,
|
|
926
|
+
"reverseMonths": PropTypes.bool,
|
|
927
|
+
"selectedDays": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
928
|
+
"from": PropTypes.instanceOf(Date),
|
|
929
|
+
"to": PropTypes.instanceOf(Date)
|
|
930
|
+
})])), PropTypes.func, PropTypes.instanceOf(Date), PropTypes.shape({
|
|
931
|
+
"from": PropTypes.instanceOf(Date),
|
|
932
|
+
"to": PropTypes.instanceOf(Date)
|
|
933
|
+
})]),
|
|
934
|
+
"showOutsideDays": PropTypes.bool,
|
|
935
|
+
"showWeekDays": PropTypes.bool,
|
|
936
|
+
"showWeekNumbers": PropTypes.bool,
|
|
937
|
+
"tabIndex": PropTypes.number,
|
|
938
|
+
"todayButton": PropTypes.string,
|
|
939
|
+
"toMonth": PropTypes.instanceOf(Date),
|
|
940
|
+
"weekdayElement": PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.shape({
|
|
941
|
+
"childContextTypes": PropTypes.object,
|
|
942
|
+
"contextType": PropTypes.shape({
|
|
943
|
+
"Consumer": PropTypes.func.isRequired,
|
|
944
|
+
"displayName": PropTypes.string,
|
|
945
|
+
"Provider": PropTypes.func.isRequired
|
|
946
|
+
}),
|
|
947
|
+
"contextTypes": PropTypes.object,
|
|
948
|
+
"defaultProps": PropTypes.shape({
|
|
949
|
+
"className": PropTypes.string,
|
|
950
|
+
"locale": PropTypes.string,
|
|
951
|
+
"localeUtils": PropTypes.object,
|
|
952
|
+
"weekday": PropTypes.number,
|
|
953
|
+
"weekdaysLong": PropTypes.arrayOf(PropTypes.string),
|
|
954
|
+
"weekdaysShort": PropTypes.arrayOf(PropTypes.string)
|
|
955
|
+
}),
|
|
956
|
+
"displayName": PropTypes.string,
|
|
957
|
+
"getDerivedStateFromError": PropTypes.func,
|
|
958
|
+
"getDerivedStateFromProps": PropTypes.func,
|
|
959
|
+
"propTypes": PropTypes.shape({
|
|
960
|
+
"className": PropTypes.func,
|
|
961
|
+
"locale": PropTypes.func,
|
|
962
|
+
"localeUtils": PropTypes.func,
|
|
963
|
+
"weekday": PropTypes.func,
|
|
964
|
+
"weekdaysLong": PropTypes.func,
|
|
965
|
+
"weekdaysShort": PropTypes.func
|
|
966
|
+
})
|
|
967
|
+
})]),
|
|
968
|
+
"weekdaysLong": PropTypes.arrayOf(PropTypes.string),
|
|
969
|
+
"weekdaysShort": PropTypes.arrayOf(PropTypes.string)
|
|
970
|
+
}),
|
|
971
|
+
"positionedChildren": PropTypes.node,
|
|
972
|
+
"prefix": PropTypes.string,
|
|
973
|
+
"property": PropTypes.string,
|
|
974
|
+
"radioGroup": PropTypes.string,
|
|
975
|
+
"readOnly": PropTypes.bool,
|
|
976
|
+
"rel": PropTypes.string,
|
|
977
|
+
"required": PropTypes.bool,
|
|
978
|
+
"resource": PropTypes.string,
|
|
979
|
+
"results": PropTypes.number,
|
|
980
|
+
"rev": PropTypes.string,
|
|
981
|
+
"reverse": PropTypes.bool,
|
|
982
|
+
"role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
|
|
983
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
984
|
+
"anchor": PropTypes.func.isRequired,
|
|
985
|
+
"at": PropTypes.func.isRequired,
|
|
986
|
+
"big": PropTypes.func.isRequired,
|
|
987
|
+
"blink": PropTypes.func.isRequired,
|
|
988
|
+
"bold": PropTypes.func.isRequired,
|
|
989
|
+
"charAt": PropTypes.func.isRequired,
|
|
990
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
991
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
992
|
+
"concat": PropTypes.func.isRequired,
|
|
993
|
+
"endsWith": PropTypes.func.isRequired,
|
|
994
|
+
"fixed": PropTypes.func.isRequired,
|
|
995
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
996
|
+
"fontsize": PropTypes.func.isRequired,
|
|
997
|
+
"includes": PropTypes.func.isRequired,
|
|
998
|
+
"indexOf": PropTypes.func.isRequired,
|
|
999
|
+
"italics": PropTypes.func.isRequired,
|
|
1000
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
1001
|
+
"length": PropTypes.number.isRequired,
|
|
1002
|
+
"link": PropTypes.func.isRequired,
|
|
1003
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
1004
|
+
"match": PropTypes.func.isRequired,
|
|
1005
|
+
"matchAll": PropTypes.func.isRequired,
|
|
1006
|
+
"normalize": PropTypes.func.isRequired,
|
|
1007
|
+
"padEnd": PropTypes.func.isRequired,
|
|
1008
|
+
"padStart": PropTypes.func.isRequired,
|
|
1009
|
+
"repeat": PropTypes.func.isRequired,
|
|
1010
|
+
"replace": PropTypes.func.isRequired,
|
|
1011
|
+
"search": PropTypes.func.isRequired,
|
|
1012
|
+
"slice": PropTypes.func.isRequired,
|
|
1013
|
+
"small": PropTypes.func.isRequired,
|
|
1014
|
+
"split": PropTypes.func.isRequired,
|
|
1015
|
+
"startsWith": PropTypes.func.isRequired,
|
|
1016
|
+
"strike": PropTypes.func.isRequired,
|
|
1017
|
+
"sub": PropTypes.func.isRequired,
|
|
1018
|
+
"substr": PropTypes.func.isRequired,
|
|
1019
|
+
"substring": PropTypes.func.isRequired,
|
|
1020
|
+
"sup": PropTypes.func.isRequired,
|
|
1021
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
1022
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
1023
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
1024
|
+
"toString": PropTypes.func.isRequired,
|
|
1025
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
1026
|
+
"trim": PropTypes.func.isRequired,
|
|
1027
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
1028
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
1029
|
+
"trimRight": PropTypes.func.isRequired,
|
|
1030
|
+
"trimStart": PropTypes.func.isRequired,
|
|
1031
|
+
"valueOf": PropTypes.func.isRequired
|
|
1032
|
+
})]),
|
|
1033
|
+
"security": PropTypes.string,
|
|
1034
|
+
"size": PropTypes.oneOf(["large", "medium", "small"]),
|
|
1035
|
+
"slot": PropTypes.string,
|
|
1036
|
+
"spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
|
|
1037
|
+
"src": PropTypes.string,
|
|
1038
|
+
"step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
1039
|
+
"style": PropTypes.object,
|
|
1040
|
+
"suppressContentEditableWarning": PropTypes.bool,
|
|
1041
|
+
"suppressHydrationWarning": PropTypes.bool,
|
|
1042
|
+
"tabIndex": PropTypes.number,
|
|
1043
|
+
"title": PropTypes.string,
|
|
1044
|
+
"tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
|
|
1045
|
+
"translate": PropTypes.oneOf(["no", "yes"]),
|
|
1046
|
+
"typeof": PropTypes.string,
|
|
1047
|
+
"unselectable": PropTypes.oneOf(["off", "on"]),
|
|
1048
|
+
"validationIconId": PropTypes.string,
|
|
1049
|
+
"validationOnLabel": PropTypes.bool,
|
|
1050
|
+
"value": PropTypes.string.isRequired,
|
|
1051
|
+
"vocab": PropTypes.string,
|
|
1052
|
+
"warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
|
1053
|
+
"width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
334
1054
|
};
|
|
1055
|
+
export { DateInput };
|
|
335
1056
|
DateInput.displayName = "DateInput";
|
|
336
1057
|
export default DateInput;
|