@progress/kendo-react-dateinputs 4.13.0-dev.202111291459 → 4.13.0-dev.202111300702

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.
Files changed (43) hide show
  1. package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
  2. package/dist/es/calendar/components/Calendar.d.ts +43 -9
  3. package/dist/es/calendar/components/Calendar.js +48 -28
  4. package/dist/es/calendar/components/MultiViewCalendar.d.ts +51 -19
  5. package/dist/es/calendar/components/MultiViewCalendar.js +64 -37
  6. package/dist/es/dateinput/DateInput.d.ts +46 -4
  7. package/dist/es/dateinput/DateInput.js +64 -43
  8. package/dist/es/datepicker/DatePicker.d.ts +63 -9
  9. package/dist/es/datepicker/DatePicker.js +68 -47
  10. package/dist/es/daterangepicker/DateRangePicker.d.ts +51 -11
  11. package/dist/es/daterangepicker/DateRangePicker.js +60 -32
  12. package/dist/es/datetimepicker/DateTimePicker.d.ts +54 -4
  13. package/dist/es/datetimepicker/DateTimePicker.js +54 -33
  14. package/dist/es/hooks/usePickerFloatingLabel.d.ts +1 -1
  15. package/dist/es/main.d.ts +8 -8
  16. package/dist/es/main.js +8 -8
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/timepicker/TimePicker.d.ts +58 -4
  19. package/dist/es/timepicker/TimePicker.js +59 -38
  20. package/dist/es/utils.d.ts +4 -0
  21. package/dist/es/utils.js +20 -0
  22. package/dist/npm/calendar/components/Calendar.d.ts +43 -9
  23. package/dist/npm/calendar/components/Calendar.js +48 -28
  24. package/dist/npm/calendar/components/MultiViewCalendar.d.ts +51 -19
  25. package/dist/npm/calendar/components/MultiViewCalendar.js +62 -35
  26. package/dist/npm/dateinput/DateInput.d.ts +46 -4
  27. package/dist/npm/dateinput/DateInput.js +64 -43
  28. package/dist/npm/datepicker/DatePicker.d.ts +63 -9
  29. package/dist/npm/datepicker/DatePicker.js +67 -46
  30. package/dist/npm/daterangepicker/DateRangePicker.d.ts +51 -11
  31. package/dist/npm/daterangepicker/DateRangePicker.js +58 -30
  32. package/dist/npm/datetimepicker/DateTimePicker.d.ts +54 -4
  33. package/dist/npm/datetimepicker/DateTimePicker.js +53 -32
  34. package/dist/npm/hooks/usePickerFloatingLabel.d.ts +1 -1
  35. package/dist/npm/main.d.ts +8 -8
  36. package/dist/npm/main.js +7 -0
  37. package/dist/npm/package-metadata.js +1 -1
  38. package/dist/npm/timepicker/TimePicker.d.ts +58 -4
  39. package/dist/npm/timepicker/TimePicker.js +58 -37
  40. package/dist/npm/utils.d.ts +4 -0
  41. package/dist/npm/utils.js +21 -0
  42. package/dist/systemjs/kendo-react-dateinputs.js +1 -1
  43. package/package.json +14 -9
@@ -40,9 +40,10 @@ var utils_3 = require("../timepicker/utils");
40
40
  var defaults_1 = require("../defaults");
41
41
  var VALIDATION_MESSAGE = 'Please enter a valid value!';
42
42
  // tslint:enable:max-line-length
43
- var DateInput = /** @class */ (function (_super) {
44
- __extends(DateInput, _super);
45
- function DateInput(props) {
43
+ /** @hidden */
44
+ var DateInputWithoutContext = /** @class */ (function (_super) {
45
+ __extends(DateInputWithoutContext, _super);
46
+ function DateInputWithoutContext(props) {
46
47
  var _this = _super.call(this, props) || this;
47
48
  _this.kendoDate = null;
48
49
  _this.paste = false;
@@ -64,7 +65,7 @@ var DateInput = /** @class */ (function (_super) {
64
65
  if (_this.element && _this.element.setCustomValidity) {
65
66
  _this.element.setCustomValidity(_this.validity.valid
66
67
  ? ''
67
- : _this.props.validationMessage || DateInput.defaultProps.validationMessage);
68
+ : _this.props.validationMessage || DateInputWithoutContext.defaultProps.validationMessage);
68
69
  }
69
70
  };
70
71
  _this.updateOnPaste = function (event) {
@@ -202,7 +203,7 @@ var DateInput = /** @class */ (function (_super) {
202
203
  /**
203
204
  * @hidden
204
205
  */
205
- DateInput.prototype.componentDidMount = function () {
206
+ DateInputWithoutContext.prototype.componentDidMount = function () {
206
207
  this.setValidity();
207
208
  if (this.wrapper) {
208
209
  this.wrapper.addEventListener('wheel', this.nativeWheel, { passive: false });
@@ -211,7 +212,7 @@ var DateInput = /** @class */ (function (_super) {
211
212
  /**
212
213
  * @hidden
213
214
  */
214
- DateInput.prototype.componentDidUpdate = function (_, prevState) {
215
+ DateInputWithoutContext.prototype.componentDidUpdate = function (_, prevState) {
215
216
  if (this._lastSelectedSymbol && prevState.focused === this.state.focused) {
216
217
  this.setSelection(this.selectionBySymbol(this._lastSelectedSymbol));
217
218
  }
@@ -223,7 +224,7 @@ var DateInput = /** @class */ (function (_super) {
223
224
  /**
224
225
  * @hidden
225
226
  */
226
- DateInput.prototype.componentWillUnmount = function () {
227
+ DateInputWithoutContext.prototype.componentWillUnmount = function () {
227
228
  if (this.wrapper) {
228
229
  this.wrapper.removeEventListener('wheel', this.nativeWheel);
229
230
  }
@@ -231,13 +232,13 @@ var DateInput = /** @class */ (function (_super) {
231
232
  /**
232
233
  * @hidden
233
234
  */
234
- DateInput.prototype.render = function () {
235
+ DateInputWithoutContext.prototype.render = function () {
235
236
  var _this = this;
236
237
  if (this.props._ref) {
237
238
  this.props._ref.current = this;
238
239
  }
239
240
  var localizationService = kendo_react_intl_1.provideLocalizationService(this);
240
- var props = __assign({}, DateInput.defaultProps, this.props);
241
+ var props = __assign({}, DateInputWithoutContext.defaultProps, this.props);
241
242
  var min = props.min, max = props.max, name = props.name, label = props.label, id = props.id;
242
243
  var currentText = this.text;
243
244
  var text = currentText === this.props.placeholder ? '' : currentText;
@@ -282,7 +283,7 @@ var DateInput = /** @class */ (function (_super) {
282
283
  ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorId: inputId, editorValue: currentText, editorValid: isValid, editorDisabled: this.props.disabled, children: dateinput, style: { width: this.props.width } }))
283
284
  : dateinput;
284
285
  };
285
- Object.defineProperty(DateInput.prototype, "value", {
286
+ Object.defineProperty(DateInputWithoutContext.prototype, "value", {
286
287
  /* Public Getters */
287
288
  /**
288
289
  * Gets the value of the DateInput.
@@ -296,7 +297,7 @@ var DateInput = /** @class */ (function (_super) {
296
297
  enumerable: true,
297
298
  configurable: true
298
299
  });
299
- Object.defineProperty(DateInput.prototype, "name", {
300
+ Object.defineProperty(DateInputWithoutContext.prototype, "name", {
300
301
  /**
301
302
  * Gets the `name` property of the DateInput.
302
303
  */
@@ -306,31 +307,31 @@ var DateInput = /** @class */ (function (_super) {
306
307
  enumerable: true,
307
308
  configurable: true
308
309
  });
309
- Object.defineProperty(DateInput.prototype, "min", {
310
+ Object.defineProperty(DateInputWithoutContext.prototype, "min", {
310
311
  get: function () {
311
312
  return this.props.min !== undefined
312
313
  ? this.props.min
313
- : DateInput.defaultProps.min;
314
+ : DateInputWithoutContext.defaultProps.min;
314
315
  },
315
316
  enumerable: true,
316
317
  configurable: true
317
318
  });
318
- Object.defineProperty(DateInput.prototype, "max", {
319
+ Object.defineProperty(DateInputWithoutContext.prototype, "max", {
319
320
  get: function () {
320
321
  return this.props.max !== undefined
321
322
  ? this.props.max
322
- : DateInput.defaultProps.max;
323
+ : DateInputWithoutContext.defaultProps.max;
323
324
  },
324
325
  enumerable: true,
325
326
  configurable: true
326
327
  });
327
- Object.defineProperty(DateInput.prototype, "text", {
328
+ Object.defineProperty(DateInputWithoutContext.prototype, "text", {
328
329
  /**
329
330
  * @hidden
330
331
  */
331
332
  get: function () {
332
- var props = __assign({}, DateInput.defaultProps, this.props);
333
- var formatPlaceholder = props.formatPlaceholder, format = props.format, value = props.value, defaultValue = props.defaultValue;
333
+ var props = __assign({}, exports.DateInput.defaultProps, this.props);
334
+ var _a = props.formatPlaceholder, formatPlaceholder = _a === void 0 ? DateInputWithoutContext.defaultProps.formatPlaceholder : _a, _b = props.format, format = _b === void 0 ? DateInputWithoutContext.defaultProps.format : _b, value = props.value, defaultValue = props.defaultValue;
334
335
  if (this.kendoDate === null) {
335
336
  this.kendoDate = new models_1.KendoDate(this.intl.bind(this), formatPlaceholder, format);
336
337
  this.kendoDate.setValue(value || defaultValue || null);
@@ -342,9 +343,9 @@ var DateInput = /** @class */ (function (_super) {
342
343
  if (value !== undefined && this.value !== value) {
343
344
  this.kendoDate.setValue(value);
344
345
  }
345
- var _a = this.kendoDate.getTextAndFormat(), currentText = _a.text, currentFormat = _a.format;
346
+ var _c = this.kendoDate.getTextAndFormat(), currentText = _c.text, currentFormat = _c.format;
346
347
  this.currentFormat = currentFormat;
347
- return props.placeholder !== null
348
+ return props.placeholder !== null && props.placeholder !== undefined
348
349
  && !this.state.focused
349
350
  && !this.kendoDate.hasValue()
350
351
  ? props.placeholder
@@ -353,7 +354,7 @@ var DateInput = /** @class */ (function (_super) {
353
354
  enumerable: true,
354
355
  configurable: true
355
356
  });
356
- Object.defineProperty(DateInput.prototype, "validity", {
357
+ Object.defineProperty(DateInputWithoutContext.prototype, "validity", {
357
358
  /**
358
359
  * Represents the validity state into which the DateInput is set.
359
360
  */
@@ -374,7 +375,7 @@ var DateInput = /** @class */ (function (_super) {
374
375
  enumerable: true,
375
376
  configurable: true
376
377
  });
377
- Object.defineProperty(DateInput.prototype, "element", {
378
+ Object.defineProperty(DateInputWithoutContext.prototype, "element", {
378
379
  /**
379
380
  * Gets the element of the DateInput.
380
381
  *
@@ -412,31 +413,31 @@ var DateInput = /** @class */ (function (_super) {
412
413
  enumerable: true,
413
414
  configurable: true
414
415
  });
415
- Object.defineProperty(DateInput.prototype, "validityStyles", {
416
+ Object.defineProperty(DateInputWithoutContext.prototype, "validityStyles", {
416
417
  /**
417
418
  * @hidden
418
419
  */
419
420
  get: function () {
420
421
  return this.props.validityStyles !== undefined
421
422
  ? this.props.validityStyles
422
- : DateInput.defaultProps.validityStyles;
423
+ : DateInputWithoutContext.defaultProps.validityStyles;
423
424
  },
424
425
  enumerable: true,
425
426
  configurable: true
426
427
  });
427
- Object.defineProperty(DateInput.prototype, "required", {
428
+ Object.defineProperty(DateInputWithoutContext.prototype, "required", {
428
429
  /**
429
430
  * @hidden
430
431
  */
431
432
  get: function () {
432
433
  return this.props.required !== undefined
433
434
  ? this.props.required
434
- : DateInput.defaultProps.required;
435
+ : DateInputWithoutContext.defaultProps.required;
435
436
  },
436
437
  enumerable: true,
437
438
  configurable: true
438
439
  });
439
- Object.defineProperty(DateInput.prototype, "wrapper", {
440
+ Object.defineProperty(DateInputWithoutContext.prototype, "wrapper", {
440
441
  /**
441
442
  * @hidden
442
443
  */
@@ -449,10 +450,10 @@ var DateInput = /** @class */ (function (_super) {
449
450
  /**
450
451
  * @hidden
451
452
  */
452
- DateInput.prototype.intl = function () {
453
+ DateInputWithoutContext.prototype.intl = function () {
453
454
  return kendo_react_intl_1.provideIntlService(this);
454
455
  };
455
- Object.defineProperty(DateInput.prototype, "selection", {
456
+ Object.defineProperty(DateInputWithoutContext.prototype, "selection", {
456
457
  /* end handlers */
457
458
  get: function () {
458
459
  var returnValue = { start: 0, end: 0 };
@@ -464,7 +465,7 @@ var DateInput = /** @class */ (function (_super) {
464
465
  enumerable: true,
465
466
  configurable: true
466
467
  });
467
- DateInput.prototype.setSelection = function (selection) {
468
+ DateInputWithoutContext.prototype.setSelection = function (selection) {
468
469
  var _this = this;
469
470
  this._lastSelectedSymbol = this.currentFormat[selection.start];
470
471
  window.requestAnimationFrame(function () {
@@ -473,7 +474,7 @@ var DateInput = /** @class */ (function (_super) {
473
474
  }
474
475
  });
475
476
  };
476
- DateInput.prototype.triggerChange = function (event, oldValue) {
477
+ DateInputWithoutContext.prototype.triggerChange = function (event, oldValue) {
477
478
  this.valueDuringOnChange = this.value;
478
479
  this.forceUpdate();
479
480
  if (this.props.onChange
@@ -489,7 +490,7 @@ var DateInput = /** @class */ (function (_super) {
489
490
  }
490
491
  this.valueDuringOnChange = undefined;
491
492
  };
492
- DateInput.prototype.selectionBySymbol = function (symbol) {
493
+ DateInputWithoutContext.prototype.selectionBySymbol = function (symbol) {
493
494
  var start = -1;
494
495
  var end = 0;
495
496
  for (var i = 0; i < this.currentFormat.length; i++) {
@@ -505,7 +506,7 @@ var DateInput = /** @class */ (function (_super) {
505
506
  }
506
507
  return { start: start, end: end };
507
508
  };
508
- DateInput.prototype.selectionByIndex = function (index) {
509
+ DateInputWithoutContext.prototype.selectionByIndex = function (index) {
509
510
  var selection = { start: index, end: index };
510
511
  for (var i = index, j = index - 1; i < this.currentFormat.length || j >= 0; i++, j--) {
511
512
  if (i < this.currentFormat.length && this.currentFormat[i] !== '_') {
@@ -519,7 +520,7 @@ var DateInput = /** @class */ (function (_super) {
519
520
  }
520
521
  return selection;
521
522
  };
522
- DateInput.prototype.switchDateSegment = function (offset) {
523
+ DateInputWithoutContext.prototype.switchDateSegment = function (offset) {
523
524
  var _a = this.selection, selectionStart = _a.start, selectionEnd = _a.end;
524
525
  if (selectionStart < selectionEnd &&
525
526
  this.currentFormat[selectionStart] !== this.currentFormat[selectionEnd - 1]) {
@@ -553,7 +554,7 @@ var DateInput = /** @class */ (function (_super) {
553
554
  this.setSelection({ start: a, end: b });
554
555
  }
555
556
  };
556
- DateInput.prototype.modifyDateSegmentValue = function (offset, event) {
557
+ DateInputWithoutContext.prototype.modifyDateSegmentValue = function (offset, event) {
557
558
  if (!this.kendoDate) {
558
559
  return;
559
560
  }
@@ -567,7 +568,11 @@ var DateInput = /** @class */ (function (_super) {
567
568
  /**
568
569
  * @hidden
569
570
  */
570
- DateInput.propTypes = {
571
+ DateInputWithoutContext.displayName = 'DateInput';
572
+ /**
573
+ * @hidden
574
+ */
575
+ DateInputWithoutContext.propTypes = {
571
576
  value: PropTypes.instanceOf(Date),
572
577
  format: PropTypes.oneOfType([
573
578
  PropTypes.string,
@@ -625,8 +630,7 @@ var DateInput = /** @class */ (function (_super) {
625
630
  ariaLabelledBy: PropTypes.string,
626
631
  ariaDescribedBy: PropTypes.string,
627
632
  ariaExpanded: PropTypes.oneOfType([
628
- PropTypes.bool,
629
- PropTypes.string
633
+ PropTypes.bool
630
634
  ]),
631
635
  onChange: PropTypes.func,
632
636
  validationMessage: PropTypes.string,
@@ -637,7 +641,7 @@ var DateInput = /** @class */ (function (_super) {
637
641
  /**
638
642
  * @hidden
639
643
  */
640
- DateInput.defaultProps = {
644
+ DateInputWithoutContext.defaultProps = {
641
645
  format: utils_1.defaultFormat,
642
646
  formatPlaceholder: utils_1.defaultFormatPlaceholder,
643
647
  // defaultValue: null as Date | null,
@@ -653,8 +657,25 @@ var DateInput = /** @class */ (function (_super) {
653
657
  placeholder: null
654
658
  // the rest of the properties are undefined by default
655
659
  };
656
- return DateInput;
660
+ return DateInputWithoutContext;
657
661
  }(React.Component));
658
- exports.DateInput = DateInput;
659
- kendo_react_intl_1.registerForIntl(DateInput);
660
- kendo_react_intl_1.registerForLocalization(DateInput);
662
+ exports.DateInputWithoutContext = DateInputWithoutContext;
663
+ /**
664
+ * Represents the PropsContext of the `DateInput` component.
665
+ * Used for global configuration of all `DateInput` instances.
666
+ *
667
+ * For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
668
+ */
669
+ exports.DateInputPropsContext = kendo_react_common_1.createPropsContext();
670
+ ;
671
+ /* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
672
+ /**
673
+ * Represents the KendoReact DateInput Component.
674
+ *
675
+ * Accepts properties of type [DateInputProps]({% slug api_dateinputs_dateinputprops %}).
676
+ * Obtaining the `ref` returns an object of type [DateInputHandle]({% slug api_dateinputs_dateinputhandle %}).
677
+ */
678
+ exports.DateInput = kendo_react_common_1.withPropsContext(exports.DateInputPropsContext, DateInputWithoutContext);
679
+ exports.DateInput.displayName = 'KendoReactDateInput';
680
+ kendo_react_intl_1.registerForIntl(DateInputWithoutContext);
681
+ kendo_react_intl_1.registerForLocalization(DateInputWithoutContext);
@@ -24,7 +24,7 @@ export interface DatePickerProps extends DatePickerSettings, FormComponentProps
24
24
  /**
25
25
  * Sets the default value of the DatePicker ([see example]({% slug default_value_datepicker %})).
26
26
  */
27
- defaultValue?: Date;
27
+ defaultValue?: Date | null;
28
28
  /**
29
29
  * Fires each time the user selects a new value ([see example]({% slug controlled_datepicker %}#toc-controlling-the-date-value)).
30
30
  */
@@ -44,7 +44,12 @@ export interface DatePickerState {
44
44
  show: boolean;
45
45
  focused: boolean;
46
46
  }
47
- export declare class DatePicker extends React.Component<DatePickerProps, DatePickerState> implements FormComponent {
47
+ /** @hidden */
48
+ export declare class DatePickerWithoutContext extends React.Component<DatePickerProps, DatePickerState> implements FormComponent {
49
+ /**
50
+ * @hidden
51
+ */
52
+ static displayName: string;
48
53
  /**
49
54
  * @hidden
50
55
  */
@@ -71,7 +76,7 @@ export declare class DatePicker extends React.Component<DatePickerProps, DatePic
71
76
  second: PropTypes.Requireable<string>;
72
77
  timeZoneName: PropTypes.Requireable<string>;
73
78
  }>>;
74
- formatPlaceholder: PropTypes.Requireable<string | PropTypes.InferProps<{
79
+ formatPlaceholder: PropTypes.Requireable<"narrow" | "short" | "wide" | "formatPattern" | PropTypes.InferProps<{
75
80
  year: PropTypes.Requireable<string>;
76
81
  month: PropTypes.Requireable<string>;
77
82
  day: PropTypes.Requireable<string>;
@@ -107,8 +112,8 @@ export declare class DatePicker extends React.Component<DatePickerProps, DatePic
107
112
  static defaultProps: {
108
113
  defaultShow: boolean;
109
114
  defaultValue: any;
110
- dateInput: React.ComponentType<DateInputProps<DateInput>>;
111
- calendar: React.ComponentType<CalendarProps<Calendar>>;
115
+ dateInput: React.ComponentType<DateInputProps<any>>;
116
+ calendar: React.ComponentType<CalendarProps<any>>;
112
117
  toggleButton: React.ComponentType<ToggleButtonProps>;
113
118
  popup: React.ComponentType<PopupProps>;
114
119
  pickerWrap: React.ComponentType<PickerWrapProps>;
@@ -138,7 +143,7 @@ export declare class DatePicker extends React.Component<DatePickerProps, DatePic
138
143
  private prevShow;
139
144
  constructor(props: DatePickerProps);
140
145
  /**
141
- * Gets the wrapping element of the DatePicker.
146
+ * Gets the wrapping element of the DatePickerWithoutContext.
142
147
  */
143
148
  readonly element: HTMLSpanElement | null;
144
149
  /**
@@ -150,15 +155,15 @@ export declare class DatePicker extends React.Component<DatePickerProps, DatePic
150
155
  */
151
156
  readonly calendar: Calendar | null;
152
157
  /**
153
- * Gets the value of the DatePicker.
158
+ * Gets the value of the DatePickerWithoutContext.
154
159
  */
155
160
  readonly value: Date | null;
156
161
  /**
157
- * Gets the popup state of the DatePicker.
162
+ * Gets the popup state of the DatePickerWithoutContext.
158
163
  */
159
164
  readonly show: boolean;
160
165
  /**
161
- * Gets the `name` property of the DatePicker.
166
+ * Gets the `name` property of the DatePickerWithoutContext.
162
167
  */
163
168
  readonly name: string | undefined;
164
169
  protected readonly min: Date;
@@ -215,3 +220,52 @@ export declare class DatePicker extends React.Component<DatePickerProps, DatePic
215
220
  private handleIconMouseDown;
216
221
  private handleKeyDown;
217
222
  }
223
+ /**
224
+ * Represents the PropsContext of the `DatePicker` component.
225
+ * Used for global configuration of all `DatePicker` instances.
226
+ *
227
+ * For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
228
+ */
229
+ export declare const DatePickerPropsContext: React.Context<(p: DatePickerProps) => DatePickerProps>;
230
+ /**
231
+ * Represent the `ref` of the DatePicker component.
232
+ */
233
+ export interface DatePickerHandle extends Pick<DatePickerWithoutContext, keyof DatePickerWithoutContext> {
234
+ /**
235
+ * Returns the HTML element of the DatePicker component.
236
+ */
237
+ element: HTMLSpanElement | null;
238
+ /**
239
+ * Gets the Calendar component inside the DatePicker component.
240
+ */
241
+ calendar: Calendar | null;
242
+ /**
243
+ * Gets the DateInput component inside the DatePicker component.
244
+ */
245
+ dateInput: DateInput | null;
246
+ /**
247
+ * Gets the `name` property of the DatePicker.
248
+ */
249
+ name: string | undefined;
250
+ /**
251
+ * Gets the popup state of the DatePicker.
252
+ */
253
+ show: boolean;
254
+ /**
255
+ * Represents the validity state into which the DatePicker is set.
256
+ */
257
+ validity: FormComponentValidity;
258
+ /**
259
+ * Gets the value of the DatePicker.
260
+ */
261
+ value: Date | null;
262
+ }
263
+ /** @hidden */
264
+ export declare type DatePicker = DatePickerHandle;
265
+ /**
266
+ * Represents the KendoReact DatePicker Component.
267
+ *
268
+ * Accepts properties of type [DatePickerProps]({% slug api_dateinputs_datepickerprops %}).
269
+ * Obtaining the `ref` returns an object of type [DatePickerHandle]({% slug api_dateinputs_datepickerhandle %}).
270
+ */
271
+ export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<any>>;